安全环保检查增加内容图片

dev-2.0
shan ao 2025-10-23 21:30:22 +08:00
parent 88ccf6c84c
commit f56f9a0e89
1 changed files with 4 additions and 2 deletions

View File

@ -602,7 +602,7 @@ export default {
} }
for (let i = 0; i < resData.pd.situationList.length; i++) { for (let i = 0; i < resData.pd.situationList.length; i++) {
if (resData.pd.situationList[i].IMAGE_PATH) { if (resData.pd.situationList[i].IMAGE_PATH) {
resData.pd.situationList[i].IMAGE = [{ url: this.$store.state.filePath + resData.pd.situationList[i].IMAGE_PATH}]; resData.pd.situationList[i].IMAGE = [{ url: this.$store.state.filePath + resData.pd.situationList[i].IMAGE_PATH, imagePath: situation.IMAGE_PATH}];
} }
} }
console.log(resData.pd.inspectorVerifyList) console.log(resData.pd.inspectorVerifyList)
@ -744,7 +744,9 @@ export default {
return return
} }
let imagePath = ''; let imagePath = '';
if (this.form.situationList[i].IMAGE.length) { if (this.form.situationList[i].IMAGE[0]?.imagePath) {
imagePath = this.form.situationList[i].IMAGE[0].imagePath
} else if (this.form.situationList[i].IMAGE.length) {
const { imgUrl } = await uploadSmd({ const { imgUrl } = await uploadSmd({
filePath: this.form.situationList[i].IMAGE[0].url, filePath: this.form.situationList[i].IMAGE[0].url,
name: "file", name: "file",