Explorar el Código

处理回显数组

gangyj hace 2 años
padre
commit
fce113b94b

+ 4 - 2
src/views/manager/archivetree.vue

@@ -1272,7 +1272,7 @@ export default {
         this.form.isInterfaceNode = res.data.isInterfaceNode   //是否接口节点
         this.form.interfaceType = res.data.interfaceType   //选择接口类型
         this.form.associationType = res.data.associationType   //关联类型
-        this.form.majorDataType = res.data.majorDataType   //内业资料类型
+        this.form.majorDataType = res.data.majorDataType.split(',')   //内业资料类型
         this.form.displayHierarchy = res.data.displayHierarchy   //显示层级
         
         this.form.projectType = res.data.projectType   //工程类型
@@ -1323,7 +1323,9 @@ export default {
         interfaceType: '',  //选择接口类型
         associationType: '',  //关联类型
         majorDataType: [],  //内业资料类型
-        displayHierarchy: ''  //显示层级
+        displayHierarchy: '',  //显示层级
+
+        fileType:[],//文件类型
       }
       this.$refs.form.resetFields();
       this.form.id = ''

+ 4 - 2
src/views/manager/projectinfo/archivetreeRule.vue

@@ -1275,7 +1275,7 @@ export default {
         this.form.isInterfaceNode = res.data.isInterfaceNode   //是否接口节点
         this.form.interfaceType = res.data.interfaceType   //选择接口类型
         this.form.associationType = res.data.associationType   //关联类型
-        this.form.majorDataType = res.data.majorDataType   //内业资料类型
+        this.form.majorDataType = res.data.majorDataType.split(',')   //内业资料类型
         this.form.displayHierarchy = res.data.displayHierarchy   //显示层级
 
         this.form.projectType = res.data.projectType   //工程类型
@@ -1327,7 +1327,9 @@ export default {
         interfaceType: '',  //选择接口类型
         associationType: '',  //关联类型
         majorDataType: [],  //内业资料类型
-        displayHierarchy: ''  //显示层级
+        displayHierarchy: '',  //显示层级
+
+        fileType:[],//文件类型
       }
       this.$refs.form.resetFields();
       this.form.id = ''