瀏覽代碼

提交过的阶段,选项不能再次修改

11wqe1 10 月之前
父節點
當前提交
bd9cb5ce19
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/components/pages/pblCourse/component/work.vue

+ 3 - 2
src/components/pages/pblCourse/component/work.vue

@@ -71,6 +71,7 @@
               v-for="(item, index) in task.answerArray
                 ? task.answerArray[taskIndex].option
                 : []"
+              :disabled="phase.doPhase > phase.atPhase"
               :key="index + '' + taskIndex"
               size="medium "
               :label="index"
@@ -206,9 +207,9 @@ export default {
       this.$forceUpdate();
     },
     submitTask() {
-    //   console.log(this.phase.doPhase, this.phase.atPhase);
+      //   console.log(this.phase.doPhase, this.phase.atPhase);
       if (this.phase.doPhase == 5) {
-		return this.$message("所有阶段已经完成");
+        return this.$message("所有阶段已经完成");
       }
       if (this.phase.doPhase > this.phase.atPhase || this.phase.doPhase >= 5)
         return this.$message.error("该阶段已提交过了");