Ver código fonte

Merge branch 'master' of http://47.110.251.215:3000/web/saber

duy 2 anos atrás
pai
commit
9c61a7f293

+ 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, //储存类型
               })

+ 9 - 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 = [];
         }
@@ -1384,6 +1384,7 @@ export default {
 
                   projectType:this.form.projectType, //工程类型
                   storageType:this.form.storageType, //储存类型
+                  projectId:this.projectId,//项目id
                 })
               } else {
                 this.baocun({
@@ -1398,6 +1399,7 @@ export default {
 
                   projectType:this.form.projectType, //工程类型
                   storageType:this.form.storageType, //储存类型
+                  projectId:this.projectId,//项目id
                 })
               }
             } else {
@@ -1410,6 +1412,7 @@ export default {
                 isStorageNode: this.form.isStorageNode,  //是否为存储节点
 
                 projectType:this.form.projectType, //工程类型
+                projectId:this.projectId,//项目id
               })
             }
           } else if (this.form.nodeType == 1) {
@@ -1426,6 +1429,7 @@ export default {
 
                 projectType:this.form.projectType, //工程类型
                 storageType:this.form.storageType, //储存类型
+                projectId:this.projectId,//项目id
               })
             } else if(this.form.associationType == 2){
               //试验资料
@@ -1437,9 +1441,10 @@ 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
               })
             }else {
               this.baocun({
@@ -1452,6 +1457,7 @@ export default {
 
                 projectType:this.form.projectType, //工程类型
                 storageType:this.form.storageType, //储存类型
+                projectId:this.projectId,//项目id
               })
             }
           }