钟日健
2022-02-09 110073ec25b794432a487a850317b7f20e0b6c9f
多选题答案录入多逗号修改
2 files modified
11 ■■■■■ changed files
src/views/exam/addsubject.vue 3 ●●●● patch | view | raw | blame | history
src/views/exam/subject.vue 8 ●●●●● patch | view | raw | blame | history
src/views/exam/addsubject.vue
@@ -870,12 +870,13 @@
    },
    //多选题提交(新增)数据
    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 = [
        {
src/views/exam/subject.vue
@@ -111,7 +111,9 @@
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,
@@ -371,14 +373,14 @@
        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);