安全环保检查增加内容图片
parent
88ccf6c84c
commit
f56f9a0e89
|
|
@ -602,7 +602,7 @@ export default {
|
|||
}
|
||||
for (let i = 0; i < resData.pd.situationList.length; i++) {
|
||||
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)
|
||||
|
|
@ -744,7 +744,9 @@ export default {
|
|||
return
|
||||
}
|
||||
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({
|
||||
filePath: this.form.situationList[i].IMAGE[0].url,
|
||||
name: "file",
|
||||
|
|
|
|||
Loading…
Reference in New Issue