浏览代码

并卷规则修改

duy 2 月之前
父节点
当前提交
09507bd55f
共有 2 个文件被更改,包括 37 次插入19 次删除
  1. 18 2
      src/views/manager/archivetree.vue
  2. 19 17
      src/views/manager/projectinfo/archivetreeRule.vue

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

@@ -42,7 +42,7 @@
 
                   >
                     <!-- <span style="text-overflow: ellipsis;width:101%;">{{ data.title }}</span> -->
-                    <span v-if="data.title&&data.title.length<=30">{{data.title | ellipsis}}</span>
+                 
 
                    
                     {{ data.title }}
@@ -653,7 +653,7 @@ export default {
         storageType:'',//储存类型
         expDataType:[],//文件类型
         archiveAutoType:1,//并卷规则
-        storageTime:'3',//保管期限
+        storageTime:'',//保管期限
       },
       rules: {
         nodeName: [{ required: true, message: '请输入节点名称', trigger: 'blur' }],
@@ -1194,6 +1194,8 @@ export default {
         this.defaultExpanded = [data.id]
       }
       this.form.archiveAutoType=1
+      this.form.storageTime='3'
+     
       this.treeTap = true
     },
     async edittree (data,node) {//编辑树
@@ -1267,6 +1269,8 @@ export default {
 
         this.form.projectType = res.data.projectType   //工程类型
         this.form.storageType = res.data.storageType   //储存类型
+        this.form.archiveAutoType = res.data.archiveAutoType   //最高1  分类2  独立3
+        this.form.storageTime = res.data.storageTime 
 
         if(res.data.expDataType){
           this.form.expDataType = res.data.expDataType.split(',')   //文件类型
@@ -1379,6 +1383,8 @@ export default {
 
                     projectType:this.form.projectType, //工程类型
                     storageType:this.form.storageType, //储存类型
+                    archiveAutoType:this.form.archiveAutoType,//并卷规则
+                    storageTime:this.form.storageTime,//存储时间
                   })
                 } else {
                   this.baocun({
@@ -1393,6 +1399,8 @@ export default {
 
                     projectType:this.form.projectType, //工程类型
                     storageType:this.form.storageType, //储存类型
+                    archiveAutoType:this.form.archiveAutoType,//并卷规则
+                    storageTime:this.form.storageTime,//存储时间
                   })
                 }
               } else {
@@ -1405,6 +1413,8 @@ export default {
                   isStorageNode: this.form.isStorageNode,  //是否为存储节点
 
                   projectType:this.form.projectType, //工程类型
+                  archiveAutoType:this.form.archiveAutoType,//并卷规则
+                  storageTime:this.form.storageTime,//存储时间
                 })
               }
             } else if (this.form.nodeType == 1) {
@@ -1421,6 +1431,8 @@ export default {
 
                   projectType:this.form.projectType, //工程类型
                   storageType:this.form.storageType, //储存类型
+                  archiveAutoType:this.form.archiveAutoType,//并卷规则
+                  storageTime:this.form.storageTime,//存储时间
                 })
               }else if(this.form.associationType == 2){
                 //试验资料
@@ -1435,6 +1447,8 @@ export default {
                   expDataType:this.form.expDataType.join(','),//文件类型
                   projectType:this.form.projectType, //工程类型
                   storageType:this.form.storageType, //储存类型
+                  archiveAutoType:this.form.archiveAutoType,//并卷规则
+                  storageTime:this.form.storageTime,//存储时间
                 })
               }else {
                 this.baocun({
@@ -1447,6 +1461,8 @@ export default {
 
                   projectType:this.form.projectType, //工程类型
                   storageType:this.form.storageType, //储存类型
+                  archiveAutoType:this.form.archiveAutoType,//并卷规则
+                  storageTime:this.form.storageTime,//存储时间
                 })
               }
             }

+ 19 - 17
src/views/manager/projectinfo/archivetreeRule.vue

@@ -546,7 +546,7 @@ export default {
         storageType:'',//储存类型
         expDataTypes:[],//文件类型
         contractLogTypes: [],
-        storageTime:'3',
+        storageTime:'',
         archiveAutoType:1,//并卷规则
       },
       rules: {
@@ -808,21 +808,7 @@ export default {
     }
   },
   computed:{
-    setName(){
-      let name = '';
-      switch (this.archiveAutoType) {
-        case 1:
-          name = '设置最高并卷层级';
-          break;
-        case 2:
-          name = '设置分类并卷层级';
-          break;
-        case 3:
-          name = '设置单独并卷层级';
-          break;
-      }
-      return name;
-    }
+
   },
   methods: {
     //切换tabs
@@ -997,6 +983,7 @@ export default {
       this.form.contractLogTypes = []
       this.form.expDataTypes = []
       this.form.archiveAutoType=1
+      this.form.storageTime='3'
       this.treeTap = true
     },
     async edittree (data,node) {//编辑树
@@ -1051,7 +1038,7 @@ export default {
     async archiveTreeDetail (data) {//详情接口
       console.log(data);
       const { data: res } = await archiveTreeDetail({ id: data.id })
-      console.log(res);
+      console.log(res.data.archiveAutoType,'archiveAutoType');
       if (res.code == 200) {
         this.form.nodeName = res.data.fullName  //节点名称
         this.form.nodeType = res.data.nodeType   // 节点类型  2 = 数字化上传文件
@@ -1066,6 +1053,8 @@ export default {
 
         this.form.projectType = res.data.projectType   //工程类型
         this.form.storageType = res.data.storageType   //储存类型
+        this.form.archiveAutoType = res.data.archiveAutoType   //最高1  分类2  独立3
+        this.form.storageTime = res.data.storageTime 
 
         if(res.data.contractTrialType){
           this.form.expDataTypes = res.data.contractTrialType.split(',')   //文件类型
@@ -1174,6 +1163,8 @@ export default {
                     projectType:this.form.projectType, //工程类型
                     storageType:this.form.storageType, //储存类型
                     projectId:this.projectId,//项目id
+                    archiveAutoType:this.form.archiveAutoType,//并卷规则
+                    storageTime:this.form.storageTime,//存储时间
                   })
                 } else {
                   this.baocun({
@@ -1189,6 +1180,8 @@ export default {
                     projectType:this.form.projectType, //工程类型
                     storageType:this.form.storageType, //储存类型
                     projectId:this.projectId,//项目id
+                    archiveAutoType:this.form.archiveAutoType,//并卷规则
+                    storageTime:this.form.storageTime,//存储时间
                   })
                 }
               } else {
@@ -1202,6 +1195,9 @@ export default {
 
                   projectType:this.form.projectType, //工程类型
                   projectId:this.projectId,//项目id
+                  archiveAutoType:this.form.archiveAutoType,//并卷规则
+                  storageTime:this.form.storageTime,//存储时间
+               
                 })
               }
             } else if (this.form.nodeType == 1) {
@@ -1219,6 +1215,8 @@ export default {
                   projectType:this.form.projectType, //工程类型
                   storageType:this.form.storageType, //储存类型
                   projectId:this.projectId,//项目id
+                  archiveAutoType:this.form.archiveAutoType,//并卷规则
+                  storageTime:this.form.storageTime,//存储时间
                 })
               } else if(this.form.associationType == 2){
                 //试验资料
@@ -1234,6 +1232,8 @@ export default {
                   storageType: this.form.storageType, //储存类型
                   projectId: this.projectId,//项目id
                   contractLogType: this.form.contractLogTypes.join(','),
+                  archiveAutoType:this.form.archiveAutoType,//并卷规则
+                  storageTime:this.form.storageTime,//存储时间
                 })
               }else {
                 this.baocun({
@@ -1247,6 +1247,8 @@ export default {
                   storageType:this.form.storageType, //储存类型
                   projectId:this.projectId,//项目id
                   contractLogType: this.form.contractLogTypes.join(','),
+                  archiveAutoType:this.form.archiveAutoType,//并卷规则
+                  storageTime:this.form.storageTime,//存储时间
                 })
               }
             }