瀏覽代碼

逗号分割

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

+ 3 - 3
src/views/manager/archivetree.vue

@@ -1280,8 +1280,8 @@ export default {
         this.form.projectType = res.data.projectType   //工程类型
         this.form.storageType = res.data.storageType   //储存类型
 
-        if(Array.isArray(res.data.expDataType)){
-          this.form.expDataType = res.data.expDataType   //文件类型
+        if(res.data.expDataType){
+          this.form.expDataType = res.data.expDataType.split(',')   //文件类型
         }else{
           this.form.expDataType = [];
         }
@@ -1433,7 +1433,7 @@ export default {
                 postType: this.form.postType,  //岗位类型
                 associationType: this.form.associationType,  //关联类型
                 
-                expDataType:this.form.expDataType,//文件类型
+                expDataType:this.form.expDataType.join(','),//文件类型
                 projectType:this.form.projectType, //工程类型
                 storageType:this.form.storageType, //储存类型
               })

+ 3 - 3
src/views/manager/projectinfo/archivetreeRule.vue

@@ -1283,8 +1283,8 @@ export default {
         this.form.projectType = res.data.projectType   //工程类型
         this.form.storageType = res.data.storageType   //储存类型
 
-        if(Array.isArray(res.data.expDataType)){
-          this.form.expDataType = res.data.expDataType   //文件类型
+        if(res.data.expDataType){
+          this.form.expDataType = res.data.expDataType.split(',')   //文件类型
         }else{
           this.form.expDataType = [];
         }
@@ -1441,7 +1441,7 @@ export default {
                 postType: this.form.postType,  //岗位类型
                 associationType: this.form.associationType,  //关联类型
                 
-                expDataType:this.form.expDataType,//文件类型
+                expDataType:this.form.expDataType.join(','),//文件类型
                 projectType:this.form.projectType, //工程类型
                 storageType:this.form.storageType, //储存类型
                 projectId:this.projectId,//项目id