Ver Fonte

处理培训/演练针对无周期存在已完成任务的情况下,编辑计划界面仅显示取消按钮

jingyuanchao há 1 ano atrás
pai
commit
6f4bb7bb0f
2 ficheiros alterados com 18 adições e 3 exclusões
  1. 9 2
      src/views/core/drill/plan/index.vue
  2. 9 1
      src/views/core/edu/plan/index.vue

+ 9 - 2
src/views/core/drill/plan/index.vue

@@ -480,8 +480,15 @@
           </el-col>
         </el-row>
       </el-form>
-
-      <div slot="footer" class="dialog-footer">
+      <div
+        v-if="form.planCycle == 0 && form.done == 1"
+        slot="footer"
+        class="dialog-footer"
+      >
+        <span>存在已完成任务,无周期任务如需修改,请删除后重新下发。</span>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+      <div v-else slot="footer" class="dialog-footer">
         <el-button type="primary" @click="submitForm">确 定</el-button>
         <el-button @click="cancel">取 消</el-button>
       </div>

+ 9 - 1
src/views/core/edu/plan/index.vue

@@ -519,7 +519,15 @@
         </el-row>
       </el-form>
 
-      <div slot="footer" class="dialog-footer">
+      <div
+        v-if="form.planCycle == 0 && form.done == 1"
+        slot="footer"
+        class="dialog-footer"
+      >
+        <span>存在已完成任务,无周期任务如需修改,请删除后重新下发。</span>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+      <div v-else slot="footer" class="dialog-footer">
         <el-button type="primary" @click="submitForm">确 定</el-button>
         <el-button @click="cancel">取 消</el-button>
       </div>