|
@@ -5,9 +5,9 @@
|
|
|
top="0"
|
|
|
:close-on-click-modal="false"
|
|
|
:close-on-press-escape="false"
|
|
|
+ :show-close="false"
|
|
|
append-to-body
|
|
|
fullscreen
|
|
|
- :before-close="beforeClose"
|
|
|
@open="initData"
|
|
|
>
|
|
|
<div slot="title">
|
|
@@ -15,6 +15,7 @@
|
|
|
<span
|
|
|
>课程名称:{{ instance.courseName }}({{ instance.courseCode }})</span
|
|
|
>
|
|
|
+ <button class="el-dialog__headerbtn" @click="cancel"></button>
|
|
|
</div>
|
|
|
|
|
|
<div class="mb-4 tab-btns">
|
|
@@ -131,9 +132,6 @@ export default {
|
|
|
"initStore",
|
|
|
]),
|
|
|
async initData() {
|
|
|
- this.initStore();
|
|
|
- this.selectMenu("structure");
|
|
|
-
|
|
|
const basicPaperInfo = {
|
|
|
...this.instance,
|
|
|
openClassReading: !!this.instance.openClassReading,
|
|
@@ -185,6 +183,7 @@ export default {
|
|
|
);
|
|
|
this.setObjectiveStructure(objectiveStructure);
|
|
|
|
|
|
+ this.selectMenu("structure");
|
|
|
this.dataReady = true;
|
|
|
},
|
|
|
async updateMarkStatus() {
|
|
@@ -330,21 +329,14 @@ export default {
|
|
|
}).catch(() => {});
|
|
|
if (res !== "confirm") return;
|
|
|
|
|
|
+ this.initStore();
|
|
|
+ this.dataReady = false;
|
|
|
+ this.$emit("modified");
|
|
|
this.modalIsShow = false;
|
|
|
},
|
|
|
open() {
|
|
|
this.modalIsShow = true;
|
|
|
},
|
|
|
- async beforeClose(done) {
|
|
|
- const res = await this.$confirm("确定要退出阅卷参数编辑吗?", "提示", {
|
|
|
- type: "warning",
|
|
|
- }).catch(() => {});
|
|
|
- if (res !== "confirm") return;
|
|
|
-
|
|
|
- this.dataReady = false;
|
|
|
- this.$emit("modified");
|
|
|
- done();
|
|
|
- },
|
|
|
confirm() {
|
|
|
if (this.isLastStep) {
|
|
|
this.selectMenu(this.tabs[0].val);
|