| | |
| | | }, |
| | | //多选题提交(新增)数据 |
| | | submitCheckbox(row, done, loading) { |
| | | // debugger; |
| | | var that = this; |
| | | row["choicesType"] = this.choicesType; |
| | | row["creator"] = this.userInfo.user_name; |
| | | row['score'] = 2; |
| | | // row.tktype = row.tktype.join(","); |
| | | row.answer = row.answer.join(","); |
| | | row.answer = row.answer.join(",").replace(/^,+/,"").replace(/,+$/,""); |
| | | //选项信息 |
| | | const examSubjectOptions = [ |
| | | { |
| | |
| | | import { getList, remove } from "@/api/examapi/subject"; |
| | | |
| | | import addsubject from "./addsubject.vue"; |
| | | import { mapGetters } from "vuex"; |
| | | import { mapGetters,mapState } from "vuex"; |
| | | import Qs from "qs"; |
| | | import { getToken } from "@/util/auth"; |
| | | export default { |
| | | components: { |
| | | addsubject, |
| | |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }).then(() => { |
| | | window.open(`/api/apply/export-apply?examId=${this.$route.query.id}`); |
| | | window.open(`/api/apply/export-apply?examId=${this.$route.query.id}&${this.website.tokenHeader}=${getToken()}`); |
| | | }); |
| | | }, |
| | | handleImport() { |
| | | this.excelBox = true; |
| | | }, |
| | | handleTemplate() { |
| | | window.open(`/api/examSubjectChoices/export-template`); |
| | | window.open(`/api/examSubjectChoices/export-template?${this.website.tokenHeader}=${getToken()}`); |
| | | }, |
| | | uploadAfter(res, done, loading, column) { |
| | | window.console.log(column); |