瀏覽代碼

归档树节点 处理回显

gangyj 2 年之前
父節點
當前提交
97fc35ee98
共有 2 個文件被更改,包括 12 次插入2 次删除
  1. 6 1
      src/views/manager/archivetree.vue
  2. 6 1
      src/views/manager/projectinfo/archivetreeRule.vue

+ 6 - 1
src/views/manager/archivetree.vue

@@ -1279,7 +1279,12 @@ export default {
         
         this.form.projectType = res.data.projectType   //工程类型
         this.form.storageType = res.data.storageType   //储存类型
-        this.form.fileType = res.data.fileType   //文件类型
+
+        if(Array.isArray(res.data.fileType)){
+          this.form.fileType = res.data.fileType   //文件类型
+        }else{
+          this.form.fileType = [];
+        }
       }
     },
     async archiveTreetree4 () {//全加载左侧树

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

@@ -1282,7 +1282,12 @@ export default {
 
         this.form.projectType = res.data.projectType   //工程类型
         this.form.storageType = res.data.storageType   //储存类型
-        this.form.fileType = res.data.fileType   //文件类型
+        
+        if(Array.isArray(res.data.fileType)){
+          this.form.fileType = res.data.fileType   //文件类型
+        }else{
+          this.form.fileType = [];
+        }
       }
     },
     async archiveTreetree4 () {//全加载左侧树