调整附件组件因某些没有name的情况,延期整改申请调整字段问题

This commit is contained in:
yunkexin 2026-05-14 15:18:13 +08:00
parent ead3a2d4c8
commit d2f0b33289
2 changed files with 11 additions and 11 deletions

View File

@ -31,10 +31,10 @@
<u-cell-group :border="false">
<u-cell title="" v-for="(value, key) in uFiles.filter(i => !i.IS_DELETED)" :key="key">
<view slot="icon" style="font-size: 16px;color: #2797ff;" @click="preview(value)"
v-if="value.name.indexOf('png') > -1 || value.name.indexOf('jpg') > -1 || value.name.indexOf('jpeg') > -1|| value.name.indexOf('gif') > -1">
{{value.name}}
v-if="value.name && (value.name.indexOf('png') > -1 || value.name.indexOf('jpg') > -1 || value.name.indexOf('jpeg') > -1|| value.name.indexOf('gif') > -1)">
{{value.name?value.name:'照片'}}
</view>
<u-link slot="icon" :href="baseUrl + value.remotePath" :text="value.name" color="#2797ff"
<u-link slot="icon" :href="baseUrl + value.remotePath" :text="value.name?value.name:'照片'" color="#2797ff"
v-else></u-link>
<u-icon slot="right-icon" size="16" name="trash" @click="delFile(value, key)"></u-icon>
</u-cell>
@ -47,10 +47,10 @@
<u-cell-group :border="false">
<u-cell title="" v-for="(value, key) in uFiles" :key="key">
<view slot="icon" style="font-size: 16px;color: #2797ff;" @click="preview(value)"
v-if="value.name.indexOf('png') > -1 || value.name.indexOf('jpg') > -1 || value.name.indexOf('jpeg') > -1|| value.name.indexOf('gif') > -1">
{{value.name}}
v-if="value.name && (value.name.indexOf('png') > -1 || value.name.indexOf('jpg') > -1 || value.name.indexOf('jpeg') > -1|| value.name.indexOf('gif') > -1)">
{{value.name?value.name:'照片'}}
</view>
<u-link slot="icon" :href="baseUrl + value.remotePath" :text="value.name" color="#2797ff"
<u-link slot="icon" :href="baseUrl + value.remotePath" :text="value.name?value.name:'照片'" color="#2797ff"
v-else></u-link>
<!--wyw 兼顾图片和文件 -->
<!-- <u-link v-if="value.remotePath!=undefined&&value.remotePath.indexOf('.png')>-1" slot="icon"
@ -150,7 +150,7 @@
if (this.uFiles[i].Nav_ImgFile != undefined) {
this.uFiles[i].remotePath = this.uFiles[i].Nav_ImgFile.FILE_PATH
// this.uFiles[i].name = this.uFiles[i].Nav_ImgFile.Nav_File.FILE_NAME
this.uFiles[i].name = this.uFiles[i].Nav_ImgFile.FILE_NAME // wyw 2024-04-17
this.uFiles[i].name = this.uFiles[i].Nav_ImgFile.FILE_NAME?this.uFiles[i].Nav_ImgFile.FILE_NAME:this.uFiles[i].Nav_ImgFile.FILE_PATH.split('/').pop() // wyw 2024-04-17
}
}
}
@ -165,7 +165,7 @@
if (this.uFiles[i].Nav_ImgFile != undefined) {
this.uFiles[i].remotePath = this.uFiles[i].Nav_ImgFile.FILE_PATH
// this.uFiles[i].name = this.uFiles[i].Nav_ImgFile.Nav_File.FILE_NAME
this.uFiles[i].name = this.uFiles[i].Nav_ImgFile.FILE_NAME // wyw 2024-04-17
this.uFiles[i].name = this.uFiles[i].Nav_ImgFile.FILE_NAME?this.uFiles[i].Nav_ImgFile.FILE_NAME:this.uFiles[i].Nav_ImgFile.FILE_PATH.split('/').pop() // wyw 2024-04-17
}
}
}

View File

@ -220,9 +220,9 @@
this.model.ID = this.ID
this.model.HIDDEN_DANGER_RECTIFY_RECORD_ID = res.ID
this.model.CODE = res.Nav_RectifyRecord.CODE
this.model.Nav_RectifyPhotoas = res.Nav_RectifyRecord.Nav_RectifyPhotoas ? res.Nav_RectifyRecord.Nav_RectifyPhotoas : []
this.model.Nav_RectifyPhotoas = res.Nav_RectifyPhotoas ? res.Nav_RectifyPhotoas : []
this.model.Nav_RiskArea = res.Nav_RectifyRecord.Nav_RiskArea ? res.Nav_RectifyRecord.Nav_RiskArea : []
this.model.HIDDEN_DESCRIPTION = res.Nav_RectifyRecord.HIDDEN_DESCRIPTION
this.model.HIDDEN_DESCRIPTION = res.Nav_RectifyRecord.Nav_Question.DESCREPTION
this.model.HIDDEN_PLACE = res.Nav_RectifyRecord.HIDDEN_PLACE
this.model.HIDDEN_LEVEL = res.Nav_RectifyRecord.HIDDEN_LEVEL
this.model.RECITIFY_TIME = uni.$u.timeFormat(res.Nav_RectifyRecord.RECITIFY_TIME, 'yyyy-mm-dd')
@ -313,7 +313,7 @@
this.model.CODE = val.CODE
this.model.Nav_RectifyPhotoas = val.Nav_RectifyPhotoas ? val.Nav_RectifyPhotoas : []
this.model.Nav_RiskArea = val.Nav_RiskArea ? val.Nav_RiskArea : []
this.model.HIDDEN_DESCRIPTION = val.HIDDEN_DESCRIPTION
this.model.HIDDEN_DESCRIPTION = val.Nav_Question.DESCREPTION
this.model.HIDDEN_PLACE = val.HIDDEN_PLACE
this.model.HIDDEN_LEVEL = val.HIDDEN_LEVEL
this.model.RECITIFY_TIME = uni.$u.timeFormat(val.RECITIFY_TIME, 'yyyy-mm-dd')