|
@@ -86,7 +86,7 @@ function getList() {
|
|
|
let newlist = res.find(ele => ele.filesTypeName == '三录材料')?.childrenList || [];
|
|
|
list.value.xct = newlist.find(ele => ele.filesTypeName == '现场图')?.childrenList || [];
|
|
|
pmtId.value = list.value.xct.find(ele => ele.filesTypeName == '平面图').filesTypeId
|
|
|
- fmtId.value = list.value.xct.find(ele => ele.filesTypeName == '方面图').filesTypeId
|
|
|
+ fmtId.value = list.value.xct.find(ele => ele.filesTypeName == '方位图').filesTypeId
|
|
|
console.log('list.value', list.value)
|
|
|
})
|
|
|
}
|
|
@@ -153,7 +153,7 @@ const saveHandler = async () => {
|
|
|
args.inAdd || (body.filesId = props.value!.fileId);
|
|
|
const { data } = await uploadNewFile(body);
|
|
|
console.log('args1', args, body, data, pmtId.value, fmtId.value);
|
|
|
- const rse = await addByMediaLiBrary({ ...body, caseId: args.caseId,filesTypeId: args.type == BoardType.scene ? fmtId.value : pmtId.value, uploadId: data.id });
|
|
|
+ const rse = await addByMediaLiBrary({ ...body, caseId: args.caseId,filesTypeId: args.type != BoardType.scene ? fmtId.value : pmtId.value, uploadId: data.id });
|
|
|
console.log('args2',rse, { ...body,caseId: args.caseId, type: args.type, id: data.id });
|
|
|
if (args.inAdd) {
|
|
|
router.replace({
|