|
|
@@ -169,7 +169,7 @@
|
|
|
directoryId: [{ required: true, message: '请选择', trigger: 'blur' }],
|
|
|
storagePath: [{ required: true, message: '请选择', trigger: 'blur' }]
|
|
|
},
|
|
|
- nodeDataCode: '',
|
|
|
+ nodeData: null,
|
|
|
templateVisible: false,
|
|
|
folderList: [],
|
|
|
list: [],
|
|
|
@@ -210,13 +210,17 @@
|
|
|
await this.$nextTick(() => {
|
|
|
nodeData = this.$refs.cascaderRef.getCheckedNodes();
|
|
|
});
|
|
|
- this.nodeDataCode = nodeData[0]?.data?.code;
|
|
|
- this.options = await listCode(
|
|
|
- this.fileType == 0 ? nodeData[0]?.data?.code : ''
|
|
|
- );
|
|
|
+ this.nodeData = {
|
|
|
+ id: nodeData[0]?.data?.id,
|
|
|
+ parentId:
|
|
|
+ nodeData[0]?.data?.parentId != 0 ? nodeData[0]?.data?.parentId : ''
|
|
|
+ };
|
|
|
+ this.options = await listCode(this.fileType == 0 ? this.nodeData : '');
|
|
|
|
|
|
if (this.options.length > 0) {
|
|
|
this.form.businessCodeId = this.options[0].id;
|
|
|
+ this.form.codeType=this.options[0].parentId
|
|
|
+
|
|
|
}else{
|
|
|
this.form.businessCodeId=''
|
|
|
}
|
|
|
@@ -236,7 +240,8 @@
|
|
|
pageNum: 1,
|
|
|
size: 100,
|
|
|
parentId: val,
|
|
|
- code: this.fileType == 0 ? this.nodeDataCode : ''
|
|
|
+ objId:this.nodeData?.id,
|
|
|
+ objParentId:this.nodeData?.parentId,
|
|
|
});
|
|
|
this.options = data.list.filter((item) => item.type == 2);
|
|
|
this.form.businessCodeId = '';
|