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