ZaiZai 10 miesięcy temu
rodzic
commit
0886d41279
1 zmienionych plików z 10 dodań i 1 usunięć
  1. 10 1
      src/views/manager/projectinfo/archivetreeRule.vue

+ 10 - 1
src/views/manager/projectinfo/archivetreeRule.vue

@@ -1258,6 +1258,7 @@ export default {
       if (this.filterText) {
         this.defaultExpanded = [data.id]
       }
+      this.form.contractLogTypes = []
       this.treeTap = true
     },
     async edittree (data,node) {//编辑树
@@ -1274,7 +1275,7 @@ export default {
       this.form.id = data.id
       this.form.parentId = ''
       this.treeNode = data
-      this.treeParent=node.parent.data
+      this.treeParent = node.parent.data
       this.treeTap = true
     },
     deletetree (node) {//删除树
@@ -1336,6 +1337,14 @@ export default {
         }else{
           this.form.majorDataType = [];
         }
+        //日志类型
+        let str
+        if (res.data.contractLogType) {
+          str = res.data.contractLogType
+        } else {
+          str = ''
+        }
+        this.form.contractLogTypes = str.split(',')
       }
     },
     async archiveTreetree4 () {//全加载左侧树