mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 13:26:45 +08:00
-- 下载投票模板
This commit is contained in:
@@ -144,6 +144,8 @@
|
|||||||
</span>
|
</span>
|
||||||
</a-tag>
|
</a-tag>
|
||||||
</div>
|
</div>
|
||||||
|
<button class="xkbtn" @click="downloadTemplate">下载模板
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="main_item" style="margin-top: -25px">
|
<div class="main_item" style="margin-top: -25px">
|
||||||
@@ -176,15 +178,15 @@
|
|||||||
</a-drawer>
|
</a-drawer>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { reactive, toRefs } from "vue";
|
import {reactive, toRefs} from "vue";
|
||||||
import CreateVote from "./CreateVote.vue";
|
import CreateVote from "./CreateVote.vue";
|
||||||
import * as api from "../../api/indexVote";
|
import * as api from "../../api/indexVote";
|
||||||
import { message } from "ant-design-vue";
|
import {message} from "ant-design-vue";
|
||||||
import { RouterEditTask } from "@/api/indexTask";
|
import {RouterEditTask} from "@/api/indexTask";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import * as apiTask from "../../api/indexTaskadd";
|
import * as apiTask from "../../api/indexTaskadd";
|
||||||
import { addTempTask } from "../../api/indexTaskadd";
|
import {addTempTask} from "../../api/indexTaskadd";
|
||||||
import { baseVoteupload } from "../../api/indexEval";
|
import {baseVoteupload} from "../../api/indexEval";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "AddVote",
|
name: "AddVote",
|
||||||
@@ -320,7 +322,7 @@ export default {
|
|||||||
|
|
||||||
//删除题干信息接口
|
//删除题干信息接口
|
||||||
const dleVoteStem = () => {
|
const dleVoteStem = () => {
|
||||||
api.deleteVoteStem({ voteStemId: state.ballotId }).then(() => {
|
api.deleteVoteStem({voteStemId: state.ballotId}).then(() => {
|
||||||
message.success("删除题干信息成功");
|
message.success("删除题干信息成功");
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -470,8 +472,14 @@ export default {
|
|||||||
state.ballotId = null;
|
state.ballotId = null;
|
||||||
console.log(e);
|
console.log(e);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function downloadTemplate() {
|
||||||
|
window.open('/manageApi/投票基础数据模版.xlsx')
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
|
downloadTemplate,
|
||||||
showDrawerCreVote,
|
showDrawerCreVote,
|
||||||
afterVisibleChange,
|
afterVisibleChange,
|
||||||
closeDrawer,
|
closeDrawer,
|
||||||
@@ -699,6 +707,7 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
margin-bottom: 32px;
|
margin-bottom: 32px;
|
||||||
|
|
||||||
.textarea {
|
.textarea {
|
||||||
width: 423px;
|
width: 423px;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user