yanshichao 1 rok pred
rodič
commit
f6f3cbb325
1 zmenil súbory, kde vykonal 4 pridanie a 2 odobranie
  1. 4 2
      src/views/task/components/project.vue

+ 4 - 2
src/views/task/components/project.vue

@@ -223,7 +223,7 @@ export default {
     },
     // 取消按钮
     cancel() {
-      this.$refs.dut.clearText()
+      this.$refs.dut && this.$refs.dut.clearText()
       this.projectAuditConfigs = []
       this.auditUsers = []
       this.reset();
@@ -344,7 +344,9 @@ export default {
         this.title = "修改项目";
       }))
       await Promise.all(arr)
-      this.$refs.dut.setCheckedNode(this.form.viewable)
+      if (row.type === '项目') {
+        this.$refs.dut.setCheckedNode(this.form.viewable)
+      }
     },
 
     /** 提交按钮 */