diff --git a/src/api/apis/apis.js b/src/api/apis/apis.js index 3f0da5c..fa4985a 100644 --- a/src/api/apis/apis.js +++ b/src/api/apis/apis.js @@ -1562,4 +1562,46 @@ export default { data }); }, + + // 删除即时测考试 + deleteReport(data) { + return service({ + url: setUpUrls.deleteReport, + method: "POST", + data + }); + }, + // 设置单班科目分析低分区间 + setLowRange(data) { + return service({ + url: setUpUrls.setLowRange, + method: "POST", + data + }); + }, + // 查询即时测多班对比情况详情 + examMultiClassReport(data) { + return service({ + url: setUpUrls.examMultiClassReport, + method: "POST", + data + }); + }, + // 导出即时测多班报表 + exportExamMultiReport(data) { + return service({ + url: setUpUrls.exportExamMultiReport, + method: "POST", + data + }); + }, + // 查询即时测多班默认等级列表 + defaultLevels(data) { + return service({ + url: setUpUrls.defaultLevels, + method: "POST", + data + }); + }, + }; diff --git a/src/api/urls/apis.js b/src/api/urls/apis.js index ced6ae2..18587c7 100644 --- a/src/api/urls/apis.js +++ b/src/api/urls/apis.js @@ -405,4 +405,15 @@ export default { // 删除班级信息 removeClass: "/api_html/school/manager/delClass", + + //删除即时测考试 + deleteReport: "/api_html/teaching/deleteReport", + //设置单班科目分析低分区间 + setLowRange: "/api_html/teaching/setLowRange", + //查询即时测多班对比情况详情 + examMultiClassReport: "/api_html/teaching/examMultiClassReport", + //导出即时测多班报表 + exportExamMultiReport: "/api_html/teaching/exportExamMultiReport", + //查询即时测多班默认等级列表 + defaultLevels: "/api_html/teaching/defaultLevels", } diff --git a/src/assets/css/index.scss b/src/assets/css/index.scss index 6c688a4..0b5d78e 100644 --- a/src/assets/css/index.scss +++ b/src/assets/css/index.scss @@ -149,6 +149,10 @@ margin: 10px; } +.down-box { + padding-left: 160px; +} + .down-txt { display: flex; align-items: center; @@ -180,12 +184,13 @@ ul { } .cascader-clazz { - .el-cascader-menu{ + .el-cascader-menu { .el-checkbox { display: none; } } - .el-cascader-menu:nth-child(3){ + + .el-cascader-menu:nth-child(3) { .el-checkbox { display: block; } diff --git a/src/components/backBox.vue b/src/components/backBox.vue index 63308f5..1e6ce9e 100644 --- a/src/components/backBox.vue +++ b/src/components/backBox.vue @@ -11,20 +11,29 @@ - - \ No newline at end of file diff --git a/src/views/basic/examinationPaper/index.vue b/src/views/basic/examinationPaper/index.vue deleted file mode 100644 index 6c3fe42..0000000 --- a/src/views/basic/examinationPaper/index.vue +++ /dev/null @@ -1,537 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/basic/examinationPaper/recycle.vue b/src/views/basic/examinationPaper/recycle.vue deleted file mode 100644 index 110986a..0000000 --- a/src/views/basic/examinationPaper/recycle.vue +++ /dev/null @@ -1,411 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/basic/setUp/account.vue b/src/views/basic/setUp/account.vue index 58ed870..b8d3638 100644 --- a/src/views/basic/setUp/account.vue +++ b/src/views/basic/setUp/account.vue @@ -350,7 +350,7 @@ - 模板下载 。

-
+ diff --git a/src/views/basic/setUp/archived.vue b/src/views/basic/setUp/archived.vue index 89d0b56..7e1b9be 100644 --- a/src/views/basic/setUp/archived.vue +++ b/src/views/basic/setUp/archived.vue @@ -78,7 +78,7 @@
  • -

    -
    +
  • - 导出未分配教师。

    -
    +
  • diff --git a/src/views/basic/setUp/clazz.vue b/src/views/basic/setUp/clazz.vue index ae01e44..71ed7b4 100644 --- a/src/views/basic/setUp/clazz.vue +++ b/src/views/basic/setUp/clazz.vue @@ -89,12 +89,12 @@ :visible.sync="diaUp" width="600" > - +

    通过Excel名单导入班级名单,点击 模板下载

    -
    + diff --git a/src/views/basic/setUp/student.vue b/src/views/basic/setUp/student.vue index c7c5ff0..2e0ae18 100644 --- a/src/views/basic/setUp/student.vue +++ b/src/views/basic/setUp/student.vue @@ -322,7 +322,7 @@ :visible.sync="diaUp" width="600" > - 模板下载 。

    -
    + diff --git a/src/views/basic/setUp/teacher.vue b/src/views/basic/setUp/teacher.vue index bd9f177..e29d037 100644 --- a/src/views/basic/setUp/teacher.vue +++ b/src/views/basic/setUp/teacher.vue @@ -258,7 +258,7 @@ :visible.sync="diaUp" width="600" > - 模板下载 。

    -
    + diff --git a/src/views/basic/test/analysis.vue b/src/views/basic/test/analysis.vue index 1f471d1..2a2021c 100644 --- a/src/views/basic/test/analysis.vue +++ b/src/views/basic/test/analysis.vue @@ -460,7 +460,7 @@ :visible.sync="diaUp" width="600" > - + - + diff --git a/src/views/basic/test/index.vue b/src/views/basic/test/index.vue index 4a99ebd..658a85c 100644 --- a/src/views/basic/test/index.vue +++ b/src/views/basic/test/index.vue @@ -481,7 +481,7 @@

    -

    第二步:上传完成编辑的模板文件并导入。

    -
    + diff --git a/src/views/examinationPaper/add.vue b/src/views/examinationPaper/add.vue index 0e3535c..3df8442 100644 --- a/src/views/examinationPaper/add.vue +++ b/src/views/examinationPaper/add.vue @@ -354,37 +354,6 @@

    - 保存
    - -
    - - - {{ - stem.screenshot || stem.answerScreenshot ? "重新上传" : "选择照片" - }} - -
    -
    - 关闭弹窗 -
    -
    - -
    - - - - - - - - - - - - - - - - - -
    -
    - 取 消 - 确 定 -
    -
    @@ -1003,8 +909,6 @@ export default { }, tagList: [], diaSetAns: false, //答案开关 - dialogStem: false, //截图开关 - dialogTag: false, //打标开关 formAns: { listIndex: 0, //大题位置 endIndex: 0, //相同题目最后一位题目的questionIndex @@ -1014,17 +918,6 @@ export default { answerOptions: [], //答案选项 answerList: "", //答案列表-字符串 }, - stem: { - type: 1, //类型 - index: 0, //大题位置 - indexs: 0, //小题位置 - screenshot: "", //题干图片id - answerScreenshot: "", //题干解析图片id - screenshotSrc: "", //题干图片地址显示用保存时删除 - answerScreenshotSrc: "", //题干解析图片地址显示用保存时删除 - difficultyFactor: 0, //题目难度 - knowledge: null, //知识点 - }, type: 1, //1-创建,2-复制答题卡 dialogVisible: false, //测验类型设置弹窗 addQuestionVisible: false, //添加大题弹窗 @@ -1068,64 +961,7 @@ export default { } }, methods: { - //上传截图 - openStem(obj, type, index, indexs) { - this.stem.type = type; - this.stem.index = index; - this.stem.indexs = indexs; - if (type == 1) { - this.stem.screenshot = obj.screenshot || ""; - this.stem.screenshotSrc = obj.screenshotSrc || ""; - this.stem.answerScreenshot = ""; - this.stem.answerScreenshotSrc = ""; - } else { - this.stem.screenshot = ""; - this.stem.screenshotSrc = ""; - this.stem.answerScreenshot = obj.answerScreenshot || ""; - this.stem.answerScreenshotSrc = obj.answerScreenshotSrc || ""; - } - this.dialogStem = true; - }, - //难度,知识点 - openTag(obj, type, index, indexs) { - this.stem = { ...this.stem, obj }; - this.stem.type = type; - this.stem.index = index; - this.stem.indexs = indexs; - this.stem.knowledge = (obj.knowledge && obj.knowledge.split(",")) || []; - this.stem.difficultyFactor = obj.difficultyFactor || ""; - this.dialogTag = true; - }, - //图片上传成功 - upSuccess(res, file) { - if (res && res.status == 0) { - let keys = this.stem.type == 1 ? "screenshot" : "answerScreenshot"; - this.stem[keys + "Src"] = res.data.url; - this.stem[keys] = res.data.resId; - this.form.questionList[this.stem.index].subQuestions[this.stem.indexs][ - keys - ] = this.stem[keys]; - this.form.questionList[this.stem.index].subQuestions[this.stem.indexs][ - keys + "Src" - ] = this.stem[keys + "Src"]; - this.$message.success("上传成功"); - } else { - this.$message.error(res.info); - } - }, - //保存难度、知识点 - setKnowledge() { - this.form.questionList[this.stem.index].subQuestions[ - this.stem.indexs - ].knowledge = this.stem.knowledge.join(","); - this.form.questionList[this.stem.index].subQuestions[ - this.stem.indexs - ].difficultyFactor = this.stem.difficultyFactor; - this.dialogTag = false; - }, - upError(res) { - this.$message.error("上传失败"); - }, + linkBack() { this.$confirm( (this.type == 2 ? "修改复制的" : "组建的") + @@ -2195,15 +2031,4 @@ export default { } } } -.upload-box { - .upload-demo { - text-align: center; - } - .stem-pic { - display: block; - margin: 0 auto 20px; - height: 200px; - object-fit: cover; - } -} \ No newline at end of file diff --git a/src/views/basic/examinationPaper/add.vue b/src/views/examinationPaper/addAsk.vue index 6f3e240..37c805f 100644 --- a/src/views/basic/examinationPaper/add.vue +++ b/src/views/examinationPaper/addAsk.vue @@ -6,94 +6,44 @@
    - +
    - + - + - {{ item.typeName }} + {{ + item.typeName }} - + - - - + + + - {{ item.label }} + {{ + item.label }} - + - + 任课班级分享 全年级分享 @@ -101,52 +51,24 @@
    - 取消 + 取消 下一步
    - +

    - + - + - - + + @@ -155,25 +77,13 @@

    - + - + @@ -185,52 +95,20 @@

    -
    +

    - - + + {{ setBigNum(index) }}、 - - - + + + - 共:{{ question.subQuestions.length }}题 - 共:{{ setScore(question) }}分 + 共:{{ setScore(question) }}分

      @@ -242,18 +120,11 @@
      选项设置
      操作
      -
    • +
    • {{ setNum(index, indexs) }}
      - + @@ -261,121 +132,65 @@
      - +

      --

      - +

      --

      - - + +

      - {{ option }} + {{ option }}

      - {{ option }} + {{ option }}

      -

      - - +

      + +

      - - + + + + + + + + + + +
    • 添加
      - + @@ -392,216 +207,102 @@

      - + 添加大题

      - 取消 + 取消 上一步 - 下一步 + 下一步
      - +
      - + - + - - + + - + - - + + - + - - + + - +

      - - + +

      - @@ -872,29 +492,7 @@ export default { }, data() { return { - type: 1, //1-创建,2-复制答题卡 - dialogVisible: false, //测验类型设置弹窗 - addQuestionVisible: false, //添加大题弹窗 - questionForm: { ...questionForm }, - questionFormRules: { - questionTitle: [ - { required: true, message: "请输入大题名称", trigger: "blur" }, - { - min: 1, - max: 30, - message: "长度在 1 到 30 个字符", - trigger: "blur", - }, - ], - }, - questionOptions: [ - { label: "单选题", value: 2 }, - { label: "多选题", value: 3 }, - { label: "判断题", value: 4 }, - { label: "主观题", value: 5 }, - ], - rightOptions: ["A", "B", "C", "D", "E", "F", "G"], - addSubQuestionsType: "", + role: "", step: 0, //步骤 gradeList: [], //年级 subjectList: [], //科目 @@ -904,11 +502,11 @@ export default { //答题卡详情 title: "", tagId: "", - gradeName: "", subjectName: "", examsDuration: 90, - sharingType: 0, questionList: [], + gradeName: "", + sharingType: 0, }, formRules: { //答题卡验证 @@ -921,7 +519,6 @@ export default { trigger: "blur", }, ], - gradeName: [{ required: true, message: "请选择年级", trigger: "blur" }], subjectName: [ { required: true, message: "请选择科目", trigger: "blur" }, ], @@ -930,7 +527,8 @@ export default { ], }, tagList: [], - diaSetAns: false, + diaSetAns: false, //答案开关 + dialogStem: false, //截图开关 formAns: { listIndex: 0, //大题位置 endIndex: 0, //相同题目最后一位题目的questionIndex @@ -940,11 +538,48 @@ export default { answerOptions: [], //答案选项 answerList: "", //答案列表-字符串 }, + stem: { + index: 0, //大题位置 + indexs: 0, //小题位置 + screenshot: "", //题干图片id + screenshotSrc: "", //题干图片地址显示用保存时删除 + }, + type: 1, //1-创建,2-复制答题卡 + dialogVisible: false, //测验类型设置弹窗 + addQuestionVisible: false, //添加大题弹窗 + questionForm: { ...questionForm }, + questionFormRules: { + questionTitle: [ + { required: true, message: "请输入大题名称", trigger: "blur" }, + { + min: 1, + max: 30, + message: "长度在 1 到 30 个字符", + trigger: "blur", + }, + ], + }, + questionOptions: [ + { label: "单选题", value: 2 }, + { label: "多选题", value: 3 }, + { label: "判断题", value: 4 }, + { label: "主观题", value: 5 }, + ], + rightOptions: ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J"], + addSubQuestionsType: "", }; }, async created() { this.type = this.$route.query.type ? this.$route.query.type : 1; - await this._GradeList(); + this.role = + this.$store.getters.info.showRole || + this.$store.getters.info.permissions[0].role; + if (this.role != "ROLE_PERSONAL") { + this.formRules.gradeName = [ + { required: true, message: "请选择年级", trigger: "blur" }, + ]; + await this._GradeList(); + } await this._QuerySubjectList(this.gradeList[0]); await this._TypeList(); if (this.type == 2) { @@ -952,10 +587,43 @@ export default { } }, methods: { + //上传截图 + openStem(obj, index, indexs) { + this.stem.index = index; + this.stem.indexs = indexs; + if (type == 1) { + this.stem.screenshot = obj.screenshot || ""; + this.stem.screenshotSrc = obj.screenshotSrc || ""; + } else { + this.stem.screenshot = ""; + this.stem.screenshotSrc = ""; + } + this.dialogStem = true; + }, + //图片上传成功 + upSuccess(res, file) { + if (res && res.status == 0) { + this.stem.screenshotSrc = res.data.url; + this.stem.screenshot = res.data.resId; + this.form.questionList[this.stem.index].subQuestions[this.stem.indexs][ + keys + ] = this.stem.screenshot; + this.form.questionList[this.stem.index].subQuestions[this.stem.indexs][ + keys + "Src" + ] = this.stem.screenshotSrc; + this.$message.success("上传成功"); + } else { + this.$message.error(res.info); + } + }, + + upError(res) { + this.$message.error("上传失败"); + }, linkBack() { this.$confirm( (this.type == 2 ? "修改复制的" : "组建的") + - "答题卡未保存,确认退出吗?", + "答题卡未保存,确认退出吗?", "提示", { confirmButtonText: "取消", @@ -968,7 +636,7 @@ export default { type: "warning", } ) - .then(() => {}) + .then(() => { }) .catch(() => { this.$router.push({ path: "/examinationPaper", @@ -1046,12 +714,12 @@ export default { return txt; }, + //切换题型清空答案 setQuestionForm(val) { - //切换题型清空答案 this.questionForm.answerList = ""; }, + //减少题数设置答案 changeQesNum(val) { - //减少题数设置答案 if ( this.questionForm.questionType == 2 || this.questionForm.questionType == 4 @@ -1061,15 +729,14 @@ export default { val ); } else { - console.log(this.questionForm.answerList.split(",")); this.questionForm.answerList = this.questionForm.answerList .split(",") .splice(0, val) .join(","); } }, + //初始化要修改的答案 setFormAns(indexs, index) { - //初始化要修改的答案 this.formAns = { ...this.form.questionList[index].subQuestions[indexs] }; this.formAns.listIndex = index; let startIndex = this.formAns.index + 1 - this.formAns.subNum; //批量设置大难开始位置 @@ -1108,8 +775,8 @@ export default { }; } }, + //多选答案设置 setMultiple(obj, answer, type) { - //多选答案设置 let elements = type == 1 ? this.$refs["formAnsIpt2"].$el.children[0] @@ -1136,8 +803,8 @@ export default { elements.focus(); elements.selectionStart = resault.startPos; }, + //批量修改答案 saveFormAns() { - //批量修改答案 let EndIndex; let subNum = this.formAns.subNum - 1; this.form.questionList[this.formAns.listIndex].subQuestions.some( @@ -1160,8 +827,8 @@ export default { this.formAns.answerList[subNum - i] == "✓" ? 1 : this.formAns.answerList[subNum - i] == "✗" - ? 2 - : ""; + ? 2 + : ""; } this.form.questionList[this.formAns.listIndex].subQuestions[ EndIndex - i @@ -1169,31 +836,9 @@ export default { } this.diaSetAns = false; }, - // keydownAnswer(event) { - // //快速答案设置禁止输入 - // if ( - // event.key == "Meta" || - // event.key == "CapsLock" || - // event.key == "Shift" || - // event.key == "Enter" || - // event.key == "Alt" || - // event.key == "Backspace" || - // event.key == "Delete" || - // event.key == "ArrowUp" || - // event.key == "ArrowDown" || - // event.key == "ArrowLeft" || - // event.key == "v" || - // event.key == "V" || - // event.key == "ArrowRight" - // ) { - // return; - // } else { - // event.returnValue = ""; - // } - // }, keydownAnswer(event, type, isAddBig) { - let answerA = "ABCDEFG"; - let answer_a = "abcdefg"; + let answerA = "ABCDEFGHIJ"; + let answer_a = "abcdefghij"; if (isAddBig) { answerA = answerA.substring(0, this.questionForm.selectNum); answer_a = answer_a.substring(0, this.questionForm.selectNum); @@ -1260,6 +905,10 @@ export default { this.step = 1; }, setStep1() { + if (this.subjectList.length == 0) { + this.$message.warning("暂无绑定年级信息,请先联系管理员设置。"); + return; + } this.$refs["forms"].validate((valid) => { // 验证通过:保存 if (valid) { @@ -1275,13 +924,6 @@ export default { this.$message.warning("请添加题目!"); return; } - // let valid = ""; - // this.form.questionList.map((item, index) => { - // if (!item.questionTitle) { - // valid += index + 1 + "、"; - // } - // }); - // if (!valid) { //添加题目ID、序号 this.form.questionList.map((item, index) => { item.questionType = 0; @@ -1346,16 +988,11 @@ export default { ); } } - console.log(types); }); this.step = 2; return; - // } else { - // this.$message.error( - // `大题名称不能为空,请检查第${valid.slice(0, -1)}大题!` - // ); - // } }, + //删除批量操作数据 formatQuestionList() { for (let i = 0; i < this.form.questionList.length; i++) { for ( @@ -1373,8 +1010,8 @@ export default { this.questionForm = { ...questionForm }; this.addQuestionVisible = true; }, + //添加大题 addQuestion() { - //添加大题 let subQuestions = []; let questionsOptions = { ...subQuesOptions, @@ -1412,8 +1049,8 @@ export default { this.questionForm.answerList[i] == "✓" ? 1 : this.questionForm.answerList[i] == "✗" - ? 2 - : ""; + ? 2 + : ""; } else if (questionsOptions.questionType == 3) { answer = this.questionForm.answerList.split(",")[i] || ""; } else if (questionsOptions.questionType == 2) { @@ -1431,10 +1068,8 @@ export default { }); this.addQuestionVisible = false; }, + //删除小题 delTabData(subIndex, index) { - //删除小题 - console.log(subIndex); - console.log(index); this.form.questionList[index].subQuestions.splice(subIndex, 1); }, setScore(question) { @@ -1443,21 +1078,6 @@ export default { }, 0); return Number(score).toFixed(2); }, - equalScore(question) { - let score = 0; - let bools = true; - for (let i = 0; i < question.subQuestions.length; i++) { - if (i == 0) { - score = question.subQuestions[i].score; - } else { - if (score != question.subQuestions[i].score) { - bools = false; - break; - } - } - } - return bools; - }, changeAddSubQuestions(val, question) { if (val) { let questionsOptions = { @@ -1488,8 +1108,8 @@ export default { this.addSubQuestionsType = ""; } }, + //切换多题型-小题题型 changeSubQuestions(val, subQuestions) { - //切换多题型-小题题型 const that = this; subQuestions.score = 1; subQuestions.partScore = 0; @@ -1515,17 +1135,17 @@ export default { break; } }, + //添加选项 addOptions(subQuestions) { - //添加选项 let length = subQuestions.answerOptions.split(",").length; - if (length > 6) return; + if (length > 9) return; subQuestions.selectNum = length + 1; subQuestions.answerOptions = this.rightOptions .slice(0, subQuestions.selectNum) .join(","); }, + //删除选项 removeOptions(subQuestions) { - //删除选项 let length = subQuestions.answerOptions.split(",").length; if (length < 3) return; subQuestions.selectNum = length - 1; @@ -1537,8 +1157,8 @@ export default { subQuestions.selectNum ); }, + //设置多选答案 changAnswer(sub, option) { - //设置多选答案 let str = new RegExp(option, "g"); if (sub.correctAnswer?.includes(option)) { sub.correctAnswer = sub.correctAnswer.replace(str, ""); @@ -1564,7 +1184,11 @@ export default { return; } //修改测验类型 - const { data, status, info } = await this.$request.editPaperType({ + let editPaperType = + this.role == "ROLE_PERSONAL" + ? this.$request.pModifyPaperType + : this.$request.editPaperType; + const { data, status, info } = await editPaperType({ tagId: obj.id, tag: obj.typeName, }); @@ -1578,7 +1202,11 @@ export default { }, async removeTypeName(obj) { //删除测验类型 - const { data, status, info } = await this.$request.delPaperType({ + let delPaperType = + this.role == "ROLE_PERSONAL" + ? this.$request.pDelPaperType + : this.$request.delPaperType; + const { data, status, info } = await delPaperType({ tagId: obj.id, }); if (status == 0) { @@ -1606,7 +1234,11 @@ export default { return; } //添加测验类型 - const { data, status, info } = await this.$request.addPaperType({ + let addPaperType = + this.role == "ROLE_PERSONAL" + ? this.$request.pAddPaperType + : this.$request.addPaperType; + const { data, status, info } = await addPaperType({ tag: this.answerTypeName, }); if (status == 0) { @@ -1626,8 +1258,17 @@ export default { let formDatas = deepClone(this.form); for (let i = 0; i < formDatas.questionList.length; i++) { delete formDatas.questionList[i].show; + for (let j = 0; j < formDatas.questionList[i].subQuestions; j++) { + if (!!formDatas.questionList[i].subQuestions[j].screenshotSrc) { + delete formDatas.questionList[i].subQuestions[j].screenshotSrc; + } + } } - const { data, status, info } = await this.$request.addPaper({ + let addPaper = + this.role == "ROLE_PERSONAL" + ? this.$request.pAddPaper + : this.$request.addPaper; + const { data, status, info } = await addPaper({ ...formDatas, }); this.saveLoading = false; @@ -1645,8 +1286,11 @@ export default { }, async _TypeList() { //测验类型查询 - const { data, status, info } = await this.$request.fetchTypeNames({ - gradeName: this.form.gradeName, + let fetchTypeNames = + this.role == "ROLE_PERSONAL" + ? this.$request.pPaperTagList + : this.$request.fetchTypeNames; + const { data, status, info } = await fetchTypeNames({ type: 1, }); if (status == 0) { @@ -1678,38 +1322,67 @@ export default { }, async _QuerySubjectList(grade) { //查询科目列表 - const { data, status, info } = await this.$request.fetchSubjectList({ - gradeName: grade, - }); + if (!grade) { + return; + } + let query = {}; + let fetchSubjectList = + this.role == "ROLE_PERSONAL" + ? this.$request.pSubjectList + : this.$request.fetchSubjectList; + if (this.role != "ROLE_PERSONAL") { + query.gradeName = grade; + } + const { data, status, info } = await fetchSubjectList({ ...query }); if (status === 0) { this.subjectList = data.subjectNames?.map((item) => { return { - value: item, - label: item, + value: this.role == "ROLE_PERSONAL" ? item.subjectName : item, + label: this.role == "ROLE_PERSONAL" ? item.subjectName : item, }; }) || []; - console.log(this.subjectList); if (this.subjectList.length) { this.form.subjectName = this.subjectList[0].value; } - console.log(this.form); } else { this.$message.error(info); } }, async _QueryDetail() { //查询答题卡详情 - const { data, status, info } = await this.$request.fetchPaperDetail({ + let fetchPaperDetail = + this.role == "ROLE_PERSONAL" + ? this.$request.pPaperDetail + : this.$request.fetchPaperDetail; + const { data, status, info } = await fetchPaperDetail({ paperId: this.$route.query.paperId, }); if (status == 0) { this.form.title = data.title + "_副本"; this.form.tagId = data.tagId === 0 ? "" : data.tagId; - this.form.subjectName = data.subjectName; - this.form.gradeName = data.gradeName; + if (this.subjectList.length) { + this.subjectList.map((item) => { + if (item.label == data.subjectName) { + this.form.subjectName = item.value; + } + }); + } else { + this.form.subjectName = ""; + } this.form.examsDuration = data.examsDuration; - this.form.sharingType = data.sharingType; + if (this.role != "ROLE_PERSONAL") { + this.form.sharingType = data.sharingType; + if (this.gradeList.length) { + this.gradeList.map((item) => { + if (item == data.gradeName) { + this.form.gradeName = data.gradeName; + } + }); + } else { + this.form.gradeName = ""; + } + } this.form.questionList = data.questionList?.map((item) => { let subQuestions = item.subQuestions?.map((items) => { @@ -1720,6 +1393,8 @@ export default { selectNum: items.answerOptions.split(",").length, answerOptions: items.answerOptions || "A,B,C,D", correctAnswer: items.correctAnswer, + screenshot: items.screenshot || "", + screenshotSrc: items.screenshot || "", }; }) || []; return { @@ -1740,30 +1415,42 @@ export default { .red { color: #f30; } + .qs-options { flex: 1; + .ipt { margin-bottom: 5px; } + .answer-box { .answer-s { cursor: pointer; user-select: none; + margin-bottom: 10px; + &:first-of-type { margin-left: 0; } } } + + .answer-box2 { + margin-bottom: 10px; + } + .delButton { text-indent: -9999999px; border-color: #ff6868; - background: #ff6868 url("../../../assets/images/arrow.png") no-repeat center; + background: #ff6868 url("../../assets/images/arrow.png") no-repeat center; background-size: 19px; color: transparent; } + .answer-s.ac { border: none; } + .ac { border-color: #ff6868; background: #ff6868; @@ -1774,6 +1461,7 @@ export default { .sel2 { width: 480px; } + .set-ans-btn { width: 100%; padding: 10px 0 10px 630px; @@ -1781,23 +1469,28 @@ export default { border-right: 1px solid #e2e2e2; border-bottom: 1px solid #e2e2e2; } + .content-box { width: 100%; height: 100%; overflow-y: auto; } + .content { width: 100%; box-sizing: border-box; - padding: 0 50px; + padding: 0 24px; + .ml-20 { margin-left: 20px; } + .btn-box { text-align: right; margin-left: 140px; } } + .dia-content { .dia-tit { font-size: 20px; @@ -1805,27 +1498,33 @@ export default { font-weight: 700; text-align: center; } + .add-type { width: 100%; margin-bottom: 10px; + .js-set { margin: 2.5px 10px 0 0; font-size: 14px; } } + .add-btn { margin-left: 20px; } } + .el-message-box { :deep(.el-button--default) { color: #fff; } } + .add-box { display: flex; justify-content: center; align-items: center; + .add-question { display: flex; justify-content: center; @@ -1834,84 +1533,103 @@ export default { font-weight: bolder; padding: 2px; cursor: pointer; + .s1 { margin-left: 6px; } + :deep(.el-icon-plus) { font-size: 24px; font-weight: 900; } + :deep(.el-button--mini.is-circle) { padding: 3px; } } } + .dialog-footer { text-align: center; + :deep(.el-button) { border-radius: 20px; padding: 8px 20px 7px; margin: 0 12px; } } + .question-box { margin-bottom: 20px; } + .question-title { line-height: 40px; display: flex; align-items: center; margin-bottom: 12px; + .m20 { - margin-left: 20px; + margin: 0 20px; } + .ipt { width: 300px; margin: 0 16px 0 10px; + :deep(.el-input__inner) { border-radius: 20px; border-color: #667ffd; background: rgba($color: #667ffd, $alpha: 0.05); } } + .delete { margin-right: 8px; } + .title-txt { margin-right: 20px; font-size: 16px; font-weight: 700; } + .el-icon-caret-right { font-size: 24px; color: #888; transition: all 0.4s; margin-right: 12px; cursor: pointer; + &.active { transform: rotate(90deg); } } } + .questions-ul { border-left: 1px solid #e2e2e2; border-top: 1px solid #e2e2e2; } + .el-input-number { width: 140px; } + .answer-title { text-align: center; font-size: 20px; color: #333; font-weight: 700; padding-bottom: 20px; + .totals { font-size: 16px; color: #888; font-weight: normal; } } + .answer-box { .answer-s { display: inline-block; @@ -1924,6 +1642,7 @@ export default { color: #333; text-align: center; line-height: 30px; + &.active { background: #5e78fa; border-color: #5e78fa; @@ -1931,6 +1650,7 @@ export default { } } } + .qs-options { .answer-s { display: inline-block; @@ -1944,6 +1664,7 @@ export default { text-align: center; line-height: 30px; cursor: pointer; + &.active { background: #5e78fa; border-color: #5e78fa; @@ -1951,11 +1672,13 @@ export default { } } } + .sub-questions { width: 100%; display: flex; border-bottom: 1px solid #e2e2e2; - & > div { + + &>div { min-height: 40px; padding: 5px; flex-shrink: 0; @@ -1964,30 +1687,38 @@ export default { justify-content: center; align-items: center; } + .qs-num { - width: 80px; + width: 70px; } + .qs-type { width: 160px; } + .qs-score, .qs-partScore { width: 160px; } + .qs-options { flex: 1; } + .qs-set { - width: 80px; + width: 60px; } + .qs-options2 { text-align: left; justify-content: flex-start; padding-left: 20px; + .answer-s { cursor: pointer; } } + :deep(.el-select) { .el-input__inner { border-radius: 20px; @@ -1997,9 +1728,23 @@ export default { line-height: 32px; background: rgba($color: #667ffd, $alpha: 0.05); } + .el-input__icon { line-height: 32px; } } } + +.upload-box { + .upload-demo { + text-align: center; + } + + .stem-pic { + display: block; + margin: 0 auto 20px; + height: 200px; + object-fit: cover; + } +} \ No newline at end of file diff --git a/src/views/examinationPaper/edit.vue b/src/views/examinationPaper/edit.vue index 778aa7d..0cbfe7e 100644 --- a/src/views/examinationPaper/edit.vue +++ b/src/views/examinationPaper/edit.vue @@ -141,39 +141,6 @@

      -
    @@ -274,35 +241,6 @@

    -
  • @@ -395,77 +333,6 @@ 取 消
    - -
    - - - {{ - stem.screenshot || stem.answerScreenshot ? "重新上传" : "选择照片" - }} - -
    -
    - 关闭弹窗 -
    -
    - -
    - - - - - - - - - - - - - - - - - -
    -
    - 取 消 - 确 定 -
    -
    @@ -476,19 +343,6 @@ export default { data() { return { role: "", - dialogStem: false, - dialogTag: false, - stem: { - type: 1, //类型 - index: 0, //大题位置 - indexs: 0, //小题位置 - screenshot: "", //题干图片id - answerScreenshot: "", //题干解析图片id - screenshotSrc: "", //题干图片地址显示用保存时删除 - answerScreenshotSrc: "", //题干解析图片地址显示用保存时删除 - difficultyFactor: 0, //题目难度 - knowledge: [], //知识点 - }, title: "", type: 1, questionList: [], @@ -542,77 +396,6 @@ export default { this._QueryDetail(); }, methods: { - openStem(obj, type, index, indexs) { - //上传截图 - this.stem.type = type; - this.stem.index = index; - this.stem.indexs = indexs; - if (type == 1) { - this.stem.screenshot = obj.screenshot || ""; - this.stem.screenshotSrc = obj.screenshotSrc || ""; - this.stem.answerScreenshot = ""; - this.stem.answerScreenshotSrc = ""; - } else { - this.stem.screenshot = ""; - this.stem.screenshotSrc = ""; - this.stem.answerScreenshot = obj.answerScreenshot || ""; - this.stem.answerScreenshotSrc = obj.answerScreenshotSrc || ""; - } - this.dialogStem = true; - }, - openTag(obj, type, index, indexs) { - //难度,知识点 - this.stem = { ...this.stem, obj }; - this.stem.type = type; - this.stem.index = index; - this.stem.indexs = indexs; - this.stem.knowledge = (obj.knowledge && obj.knowledge.split(",")) || []; - this.stem.difficultyFactor = obj.difficultyFactor || ""; - this.dialogTag = true; - }, - upSuccess(res, file) { - //图片上传成功 - if (res && res.status == 0) { - let keys = this.stem.type == 1 ? "screenshot" : "answerScreenshot"; - this.stem[keys + "Src"] = res.data.url; - this.stem[keys] = res.data.resId; - if (this.questionList[0].subQuestions) { - this.questionList[this.stem.index].subQuestions[this.stem.indexs][ - keys - ] = this.stem[keys]; - this.questionList[this.stem.index].subQuestions[this.stem.indexs][ - keys + "Src" - ] = this.stem[keys + "Src"]; - } else { - this.questionList[this.stem.index][keys] = this.stem[keys]; - this.questionList[this.stem.index][keys + "Src"] = - this.stem[keys + "Src"]; - } - this.$message.success("上传成功"); - } else { - this.$message.error(res.info); - } - }, - setKnowledge() { - //保存难度、知识点 - if (typeof this.stem.indexs != undefined) { - this.questionList[this.stem.index].subQuestions[ - this.stem.indexs - ].knowledge = this.stem.knowledge.join(","); - this.questionList[this.stem.index].subQuestions[ - this.stem.indexs - ].difficultyFactor = this.stem.difficultyFactor; - } else { - this.questionList[this.stem.index].knowledge = - this.stem.knowledge.join(","); - this.questionList[this.stem.index].difficultyFactor = - this.stem.difficultyFactor; - } - this.dialogTag = false; - }, - upError(res) { - this.$message.error("上传失败"); - }, linkBack() { this.$router.go(-1); }, @@ -1255,15 +1038,4 @@ export default { } } } -.upload-box { - .upload-demo { - text-align: center; - } - .stem-pic { - display: block; - margin: 0 auto 20px; - height: 200px; - object-fit: cover; - } -} \ No newline at end of file diff --git a/src/views/basic/examinationPaper/edit.vue b/src/views/examinationPaper/editAsk.vue index 4736cc5..c12f926 100644 --- a/src/views/basic/examinationPaper/edit.vue +++ b/src/views/examinationPaper/editAsk.vue @@ -2,7 +2,7 @@
    @@ -14,8 +14,12 @@ }}老师修改了答案

    -
    -

    {{ form.title || title }}

    +
    +

    + 试卷名称: + +

    +

    {{ form.title }}

    卷面总分:{{ allScore }}分

    +
    + + + + + + + + + +
    @@ -242,7 +310,8 @@ 取消 保存
    - 取 消 + +
    + + + {{ + stem.screenshot || stem.answerScreenshot ? "重新上传" : "选择照片" + }} + +
    +
    + 关闭弹窗 +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    +
    + 取 消 + 确 定 +
    +
    @@ -336,6 +476,21 @@ export default { data() { return { role: "", + dialogStem: false, + dialogTag: false, + stem: { + type: 1, //类型 + index: 0, //大题位置 + indexs: 0, //小题位置 + screenshot: "", //题干图片id + answerScreenshot: "", //题干解析图片id + screenshotSrc: "", //题干图片地址显示用保存时删除 + answerScreenshotSrc: "", //题干解析图片地址显示用保存时删除 + difficultyFactor: 0, //题目难度 + knowledge: [], //知识点 + }, + title: "", + type: 1, questionList: [], form: { //答题卡详情 @@ -347,8 +502,6 @@ export default { share: 1, questionList: [], }, - title: "", - type: 1, paperModifyLog: { realName: "", modifiedTime: "", @@ -374,7 +527,7 @@ export default { return a + (Number(b.score) || 0); }, 0); } else { - score += item.score; + score += (item.score || 0); } }, 0); return Number(score).toFixed(2); @@ -385,14 +538,83 @@ export default { this.$store.getters.info.showRole || this.$store.getters.info.permissions[0].role; this.type = this.$route.query.type || 1; - this.title = this.$route.query.title || ""; + this.form.title = this.$route.query.title || ""; this._QueryDetail(); }, methods: { + openStem(obj, type, index, indexs) { + //上传截图 + this.stem.type = type; + this.stem.index = index; + this.stem.indexs = indexs; + if (type == 1) { + this.stem.screenshot = obj.screenshot || ""; + this.stem.screenshotSrc = obj.screenshotSrc || ""; + this.stem.answerScreenshot = ""; + this.stem.answerScreenshotSrc = ""; + } else { + this.stem.screenshot = ""; + this.stem.screenshotSrc = ""; + this.stem.answerScreenshot = obj.answerScreenshot || ""; + this.stem.answerScreenshotSrc = obj.answerScreenshotSrc || ""; + } + this.dialogStem = true; + }, + openTag(obj, type, index, indexs) { + //难度,知识点 + this.stem = { ...this.stem, obj }; + this.stem.type = type; + this.stem.index = index; + this.stem.indexs = indexs; + this.stem.knowledge = (obj.knowledge && obj.knowledge.split(",")) || []; + this.stem.difficultyFactor = obj.difficultyFactor || ""; + this.dialogTag = true; + }, + upSuccess(res, file) { + //图片上传成功 + if (res && res.status == 0) { + let keys = this.stem.type == 1 ? "screenshot" : "answerScreenshot"; + this.stem[keys + "Src"] = res.data.url; + this.stem[keys] = res.data.resId; + if (this.questionList[0].subQuestions) { + this.questionList[this.stem.index].subQuestions[this.stem.indexs][ + keys + ] = this.stem[keys]; + this.questionList[this.stem.index].subQuestions[this.stem.indexs][ + keys + "Src" + ] = this.stem[keys + "Src"]; + } else { + this.questionList[this.stem.index][keys] = this.stem[keys]; + this.questionList[this.stem.index][keys + "Src"] = + this.stem[keys + "Src"]; + } + this.$message.success("上传成功"); + } else { + this.$message.error(res.info); + } + }, + setKnowledge() { + //保存难度、知识点 + if (typeof this.stem.indexs != undefined) { + this.questionList[this.stem.index].subQuestions[ + this.stem.indexs + ].knowledge = this.stem.knowledge.join(","); + this.questionList[this.stem.index].subQuestions[ + this.stem.indexs + ].difficultyFactor = this.stem.difficultyFactor; + } else { + this.questionList[this.stem.index].knowledge = + this.stem.knowledge.join(","); + this.questionList[this.stem.index].difficultyFactor = + this.stem.difficultyFactor; + } + this.dialogTag = false; + }, + upError(res) { + this.$message.error("上传失败"); + }, linkBack() { - this.$router.push({ - path: "/examinationPaper", - }); + this.$router.go(-1); }, setSubPro(type) { let tit; @@ -563,7 +785,7 @@ export default { let startIndex = this.formAns.endIndex - this.formAns.subNum; this.formAns.listIndex = indexs; let answerList = ""; - this.questionList[index].map((item, subIdx) => { + this.questionList.map((item, subIdx) => { if (subIdx >= startIndex) { answerList += this.setAnswer(item.questionType, item.correctAnswer); if (subIdx != indexs) { @@ -633,12 +855,25 @@ export default { for (let j = 0; j < this.questionList[i].subQuestions.length; j++) { if (this.questionList[i].subQuestions[j].qusType) { this.questionList[i].subQuestions.splice(j, 1); + } else { + if (!!this.questionList[i].subQuestions[j].answerScreenshotSrc) { + delete this.questionList[i].subQuestions[j].answerScreenshotSrc; + } + if (!!this.questionList[i].subQuestions[j].screenshotSrc) { + delete this.questionList[i].subQuestions[j].screenshotSrc; + } } } } else { if (this.questionList[i].qusType) { this.questionList.splice(i, 1); i--; + if (!!this.questionList[i].answerScreenshotSrc) { + delete this.questionList[i].answerScreenshotSrc; + } + if (!!this.questionList[i].screenshotSrc) { + delete this.questionList[i].screenshotSrc; + } } } } @@ -678,11 +913,14 @@ export default { questionList: questionList, }; } - const { data, status, info } = await modifyPaper(params); + const { data, status, info } = await modifyPaper({ + title: this.form.title, + ...params, + }); if (status == 0) { this.$router.go(-1); } else { - this.$message.error(info); + this.$message.error(message); } }, async _QueryDetail() { @@ -713,12 +951,18 @@ export default { }; const { data, status, info } = await detail(params); if (status == 0) { - this.form = deepClone(data); - this.questionList = deepClone(this.form.questionList || data.list); - this.paperModifyLog = { - ...this.paperModifyLog, - ...this.form.paperModifyLog, - }; + if (this.type == 1) { + this.paperModifyLog = { + ...this.paperModifyLog, + ...this.form.paperModifyLog, + }; + this.form = deepClone(data); + this.questionList = deepClone(this.form.questionList); + } else { + this.questionList = data.list.sort((a, b) => { + return a.questionIndex - b.questionIndex; + }); + } if (!!this.questionList[0]?.subQuestions) { this.questionList?.map((item) => { let types = [{}]; @@ -833,7 +1077,7 @@ export default { types[i].answerList = types[i].answerList.slice(0, -1); } if (types[i].subNum >= 5) { - item.subQuestions.splice( + this.questionList.splice( types[i].index + i + 1, 0, deepClone(types[i]) @@ -841,7 +1085,6 @@ export default { } } } - console.log(this.questionList); } else { this.$message.error(info); } @@ -854,7 +1097,7 @@ export default { .content { width: 100%; box-sizing: border-box; - padding: 0 50px; + padding: 0 50px 60px; .ml-20 { margin-left: 20px; } @@ -863,7 +1106,7 @@ export default { position: fixed; right: 40px; bottom: 20px; - padding: 10px 0 20px; + padding: 10px 0 5px; background: #fff; text-align: right; margin-left: 140px; @@ -890,10 +1133,26 @@ export default { color: #333; font-weight: 700; padding: 20px 0; + &.t-left { + text-align: left; + } .totals { font-size: 16px; - color: #888; + color: #666; + font-weight: normal; + } + .name-box { + display: flex; + white-space: nowrap; + align-items: center; + margin-bottom: 10px; + font-size: 16px; font-weight: normal; + :deep(.el-input__inner) { + font-size: 16px; + color: #333; + font-weight: 700; + } } } .question-title { @@ -926,7 +1185,9 @@ export default { .el-input-number { width: 140px; } - +.delete { + margin-left: 8px; +} .questions-ul { border-left: 1px solid #e2e2e2; border-top: 1px solid #e2e2e2; @@ -955,12 +1216,12 @@ export default { .qs-partScore { width: 160px; } + .qs-set { + width: 180px; + } .qs-options { flex: 1; } - .qs-set { - width: 80px; - } .qs-options2 { text-align: left; justify-content: flex-start; @@ -994,4 +1255,15 @@ export default { } } } +.upload-box { + .upload-demo { + text-align: center; + } + .stem-pic { + display: block; + margin: 0 auto 20px; + height: 200px; + object-fit: cover; + } +} \ No newline at end of file diff --git a/src/views/examinationPaper/index.vue b/src/views/examinationPaper/index.vue index e68dabe..1ec108e 100644 --- a/src/views/examinationPaper/index.vue +++ b/src/views/examinationPaper/index.vue @@ -5,88 +5,47 @@ 备题组卷 +
    + + 备题 + 组卷 + +

    + + 导入课件 + + + 添加试卷 + + 导入试卷 + 手动创建 + + +

    +
    - - + + - - + + - - {{ item.label }} - - - - + + +
    @@ -94,6 +53,7 @@ 回收站内已有{{ archivedTotal }}份答题卡, 点击查看>>

    +
    - +
    - + @@ -206,6 +124,19 @@ 取 消 + + +
    +

    第一步:导出菁优网试卷或 + 模板下载 。 +

    +

    第二步:上传完成编辑好的试卷。

    +
    +
    + +
    @@ -222,14 +153,12 @@ export default { query: { classId: "", subjectName: "", - tagId: "", title: "", }, classList: [], subjectList: [], - typeList: [], archivedTotal: 0, //已归档答题卡数量 - tableData: null, + tableData: [], shareForm: { id: "", sharingType: 0, //0-任课班级/1-全年级 @@ -242,6 +171,11 @@ export default { total: 0, page: 1, size: 20, + + // v1.5 + diaUp: false, + examinationPaperType: 1,//题型类型 + url: "xxxxx",//上传文档地址 }; }, async created() { @@ -250,14 +184,13 @@ export default { this.$store.getters.info.showRole || this.$store.getters.info.permissions[0].role; this.userName = this.$store.getters.info.name || ""; - this._QueryClassList2() - await this._QueryClassList(); - if (!this.query.classId) { - return; - } - await this._QuerySubjectList(); - this._QueryData(); - this._QueryTypeList(); + // this._QueryClassList2() + // await this._QueryClassList(); + // if (!this.query.classId) { + // return; + // } + // await this._QuerySubjectList(); + // this._QueryData(); }, methods: { refreshStic() { @@ -352,34 +285,6 @@ export default { await this._QuerySubjectList(); this._QueryData(false); }, - // 查找答题卡类型 - async _QueryTypeList() { - if (!this.query.classId) return; - let fetchTypeNames = - this.role == "ROLE_PERSONAL" - ? this.$request.pPaperTagList - : this.$request.fetchTypeNames; - - const { data, status, info } = await fetchTypeNames({ - classId: this.query.classId, - type: 0, - }); - if (status === 0) { - this.typeList = - data.list.map((item) => { - return { - value: item.tagId, - label: item.tag, - }; - }) || []; - this.typeList.unshift({ - value: "", - label: "请选择标签", - }); - } else { - this.$message.error(info); - } - }, // 查找班级 async _QueryClassList2() { this.loading = true; @@ -453,8 +358,6 @@ export default { query = { ...this.query }; } else { query = { title: this.query.title }; - this.query.tagId = ""; - // this.query.subjectName = ""; } query.classId = this.query.classId; query.subjectName = this.query.subjectName; @@ -490,6 +393,41 @@ export default { this.$message.error(info); } }, + + + //v1.5 + upSuccess(res) { + //导入成功 + this.$message.closeAll(); + this.$message({ + showClose: true, + message: `成功(${res.data.success})`, + type: "success", + duration: 5000, + }); + this.diaUp = false; + + }, + handleAdd(value) { + if (value == 2) { + this.toAdd() + } else { + this.diaUp = true + } + }, + + + async downExcel() { + let data = await this.$request.teacherTemplate(); + if (data && !data.code) { + let blob = new Blob([data], { + type: "application/vnd.ms-excel;charset=utf-8", + }); + downloadFile(`试卷模版.xlsx`, blob); + } else { + this.$message.error(data.info); + } + }, }, }; @@ -503,11 +441,13 @@ export default { color: #999; margin-bottom: 10px; } + .content { margin: 0 20px; background: #f8f8f8; padding: 12px; border-radius: 20px; + .item { display: flex; align-items: center; @@ -518,9 +458,11 @@ export default { border-radius: 20px; background: #fff; margin-bottom: 12px; + &:last-of-type { margin-bottom: 0; } + .pic-box { width: 80px; height: 80px; @@ -531,12 +473,14 @@ export default { text-align: center; color: #fff; font-weight: 500; + .i-box { padding-top: 10px; font-size: 32px; margin-bottom: 3px; } } + .info { min-height: 80px; flex: 1; @@ -544,14 +488,17 @@ export default { display: flex; flex-direction: column; justify-content: space-between; + .s-line { padding: 0 5px; color: #e2e2e2; } + .title { font-size: 16px; color: #222; font-weight: 500; + .label { display: inline-block; font-size: 12px; @@ -563,61 +510,83 @@ export default { transform: translateY(-2px); } } + .person { color: #666; } } + .clazz { font-size: 14px; font-weight: 500; position: relative; position: relative; + &.active { color: #667ffd; } + .el-icon-success { position: absolute; right: 0; top: -5px; color: #667ffd; } + &:last-of-type { .el-icon-success { right: -18px; } } } + .btn-box { flex-shrink: 0; + .edit { margin-right: 12px; } } + .icon-refresh { margin-left: 20px; cursor: pointer; + &:hover { color: #2e9afe; } } } } + .answer-header { .sel-box { .sel { min-width: 160px; } + :deep(.el-cascader__tags) { flex-wrap: nowrap; } } } + .dialog-footer { text-align: center; + :deep(.el-button) { border-radius: 20px; padding: 8px 20px 7px; margin: 0 12px; } } + +// v1.5 +.examinationPaper-type { + padding: 16px 40px 0 20px; + width: 100%; + box-sizing: border-box; + display: flex; + justify-content: space-between; +} \ No newline at end of file diff --git a/src/views/layout/layout.vue b/src/views/layout/layout.vue index 126047b..11cdb77 100644 --- a/src/views/layout/layout.vue +++ b/src/views/layout/layout.vue @@ -42,10 +42,6 @@ export default { code: "", }; }, - created() { - // this.initRouter(); - console.log(this.$route.meta.keepAlive) - }, methods: { initRouter() { this.code = getURLParams("code") || this.$store.getters.code; diff --git a/src/views/personal/setUp/student.vue b/src/views/personal/setUp/student.vue index a9eaf35..4680e2a 100644 --- a/src/views/personal/setUp/student.vue +++ b/src/views/personal/setUp/student.vue @@ -195,12 +195,12 @@ - +

    通过Excel名单导入学生模板,点击 模板下载

    -
    + diff --git a/src/views/personal/test/analysis.vue b/src/views/personal/test/analysis.vue index 5f3a427..fa4c492 100644 --- a/src/views/personal/test/analysis.vue +++ b/src/views/personal/test/analysis.vue @@ -403,7 +403,7 @@ - + - + diff --git a/src/views/personal/test/index.vue b/src/views/personal/test/index.vue index aa6e0b3..157fee2 100644 --- a/src/views/personal/test/index.vue +++ b/src/views/personal/test/index.vue @@ -413,7 +413,7 @@

    -

    第二步:上传完成编辑的模板文件并导入。

    -
    +