Merge branch 'dev' of http://47.94.165.164:13000/geg-gas/geg-gas-web into dev
This commit is contained in:
@ -25,7 +25,7 @@
|
||||
height: '300px'
|
||||
}
|
||||
});
|
||||
imgList.value = await getFileList({ folderId: data.filePath });
|
||||
imgList.value = await getFileList({ tableId: data.filePath });
|
||||
});
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
|
||||
@ -302,7 +302,7 @@
|
||||
};
|
||||
});
|
||||
if (baseInfo.value.filePath) {
|
||||
imgList.value = await getFileList({ folderId: baseInfo.value.filePath });
|
||||
imgList.value = await getFileList({ tableId: baseInfo.value.filePath });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
alarmtInfo.value = await getDeviceAlarmCheck(data.id);
|
||||
imgSrc.value = alarmtInfo.value?.state === 0 ? 'check_tip_no1' : 'check_tip_pass1';
|
||||
if (alarmtInfo.value.filePath) {
|
||||
imgList.value = await getFileList({ folderId: alarmtInfo.value.filePath });
|
||||
imgList.value = await getFileList({ tableId: alarmtInfo.value.filePath });
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -49,7 +49,7 @@
|
||||
inspectInfo.value = await getDeviceInspectInfo(data.id);
|
||||
imgSrc.value = inspectInfo.value?.state === 0 ? 'check_tip_no' : 'check_tip_pass';
|
||||
if (inspectInfo.value.filePath) {
|
||||
imgList.value = await getFileList({ folderId: inspectInfo.value.filePath });
|
||||
imgList.value = await getFileList({ tableId: inspectInfo.value.filePath });
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -257,7 +257,7 @@
|
||||
}
|
||||
];
|
||||
if (baseInfo.value.fileId) {
|
||||
imgList.value = await getFileList({ folderId: baseInfo.value.fileId });
|
||||
imgList.value = await getFileList({ tableId: baseInfo.value.fileId });
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@ -528,7 +528,7 @@
|
||||
isReady.value = true;
|
||||
|
||||
if (baseInfo.value.filePath) {
|
||||
imgList.value = await getFileList({ folderId: baseInfo.value.filePath });
|
||||
imgList.value = await getFileList({ tableId: baseInfo.value.filePath });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -612,7 +612,7 @@
|
||||
};
|
||||
});
|
||||
if (baseInfo.value.filePath) {
|
||||
imgList.value = await getFileList({ folderId: baseInfo.value.filePath });
|
||||
imgList.value = await getFileList({ tableId: baseInfo.value.filePath });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -103,10 +103,10 @@
|
||||
}
|
||||
});
|
||||
if (ele1.fieldCode.indexOf('file') > 0 || ele1.fieldCode.indexOf('File') > 0) {
|
||||
const newlist = await getFileList({ folderId: ele1.newValue });
|
||||
const newlist = await getFileList({ tableId: ele1.newValue });
|
||||
fileList.value.push({ id: ele1.newValue, name: newlist.map((item) => item.fileName).join('、') });
|
||||
|
||||
const oldlist = await getFileList({ folderId: ele1.oldValue });
|
||||
const oldlist = await getFileList({ tableId: ele1.oldValue });
|
||||
fileList.value.push({ id: ele1.oldValue, name: oldlist.map((item) => item.fileName).join('、') });
|
||||
}
|
||||
});
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
);
|
||||
async function getImage() {
|
||||
if (props.config.folderId) {
|
||||
let fileList = await getFileList({ folderId: props.config.folderId });
|
||||
let fileList = await getFileList({ tableId: props.config.folderId });
|
||||
if (fileList.length) {
|
||||
imageUrl.value = fileList[0].fileUrl;
|
||||
}
|
||||
|
||||
@ -70,24 +70,24 @@
|
||||
data.show = true;
|
||||
});
|
||||
const submitUpload = (file) => {
|
||||
let folderId = data.info.config.folderId;
|
||||
let tableId = data.info.config.folderId;
|
||||
uploadMultiApi(
|
||||
{
|
||||
name: 'file',
|
||||
file: [file]
|
||||
},
|
||||
folderId
|
||||
tableId
|
||||
).then((res) => {
|
||||
data.info.config.folderId = res[0].folderId;
|
||||
data.info.config.folderId = res[0].tableId;
|
||||
getImage();
|
||||
});
|
||||
};
|
||||
async function getImage() {
|
||||
if (data.info.config.folderId) {
|
||||
let fileList = await getFileList({ folderId: data.info.config.folderId });
|
||||
let fileList = await getFileList({ tableId: data.info.config.folderId });
|
||||
if (fileList.length) {
|
||||
imageUrl.value = fileList[0].fileUrl;
|
||||
data.info.config.folderId = fileList[0].folderId;
|
||||
data.info.config.folderId = fileList[0].tableId;
|
||||
}
|
||||
} else {
|
||||
imageUrl.value = '';
|
||||
|
||||
@ -1178,15 +1178,15 @@
|
||||
};
|
||||
|
||||
const submitUpload = (file) => {
|
||||
let folderId = data.value.options.defaultValue;
|
||||
let tableId = data.value.options.defaultValue;
|
||||
uploadMultiApi(
|
||||
{
|
||||
name: 'file',
|
||||
file: [file]
|
||||
},
|
||||
folderId
|
||||
tableId
|
||||
).then((res) => {
|
||||
data.value.options.defaultValue = res[0].folderId;
|
||||
data.value.options.defaultValue = res[0].tableId;
|
||||
getImage();
|
||||
});
|
||||
};
|
||||
@ -1350,10 +1350,10 @@
|
||||
}
|
||||
async function getImage() {
|
||||
if (data.value.options.defaultValue) {
|
||||
let fileList = await getFileList({ folderId: data.value.options.defaultValue });
|
||||
let fileList = await getFileList({ tableId: data.value.options.defaultValue });
|
||||
if (fileList.length) {
|
||||
imageUrl.value = fileList[0].fileUrl;
|
||||
data.value.options.defaultValue = fileList[0].folderId;
|
||||
data.value.options.defaultValue = fileList[0].tableId;
|
||||
}
|
||||
} else {
|
||||
imageUrl.value = '';
|
||||
|
||||
@ -129,7 +129,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data
|
||||
fileOrg: v.name,
|
||||
filePath: v.url,
|
||||
fileSize: v.fileSize,
|
||||
xjrFileId: v.folderId
|
||||
xjrFileId: v.tableId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user