zhangjie преди 2 месеца
родител
ревизия
f7f2f20d04

+ 7 - 2
src/modules/mark/components/markParam/MarkParamObjectiveAnswer.vue

@@ -417,7 +417,7 @@ export default {
     objectivePolicyChange(row) {
       row.objectivePolicyScore = undefined;
     },
-    async submit() {
+    async save() {
       if (!this.checkData()) return;
 
       if (this.loading) return;
@@ -440,6 +440,11 @@ export default {
       );
       return true;
     },
+    async submit() {
+      const res = await this.save();
+      if (!res) return;
+      this.$emit("next", 1);
+    },
     // toImport
     async downloadHandle() {
       if (this.downloading) return;
@@ -483,7 +488,7 @@ export default {
         return;
       }
 
-      const res = await this.submit();
+      const res = await this.save();
       if (!res) return;
       this.$emit("prev", step);
     },

+ 7 - 1
src/modules/mark/components/markParam/ModifyMarkParams.vue

@@ -235,7 +235,13 @@ export default {
     nextHandler(step = 1) {
       // 最后一步如何继续下一步就关闭窗口
       if (this.isLastStep) {
-        this.close();
+        this.steps[this.curStepIndex].status = "success";
+        if (!this.finishedSteps.includes(this.curStepIndex)) {
+          this.finishedSteps.push(this.curStepIndex);
+        }
+        this.steps.forEach((item) => {
+          item.disabled = item.status === "wait";
+        });
         return;
       }
 

+ 6 - 2
src/modules/mark/components/markParam/ModifyMarkType.vue

@@ -23,7 +23,7 @@
           @change="doubleEnableChange"
         >
           <el-radio :label="false">单评</el-radio>
-          <el-radio v-if="openDoubleMark" :label="true">双评</el-radio>
+          <el-radio :label="true" :disabled="!openDoubleMark">双评</el-radio>
         </el-radio-group>
       </el-form-item>
       <template v-if="modalForm.doubleEnable">
@@ -37,11 +37,15 @@
             :step="0.01"
             step-strictly
             :controls="false"
+            :disabled="!openDoubleMark"
           >
           </el-input-number>
         </el-form-item>
         <el-form-item label="合分策略:" prop="scorePolicy">
-          <el-select v-model="modalForm.scorePolicy">
+          <el-select
+            v-model="modalForm.scorePolicy"
+            :disabled="!openDoubleMark"
+          >
             <el-option
               v-for="(val, key) in SCORE_POLICY_TYPE"
               :key="key"