代码补正

This commit is contained in:
xiaofajia 2024-11-15 16:59:26 +08:00
parent 78bb5006ab
commit 6875b59daf

View File

@ -204,12 +204,22 @@ export default {
method: 'get'
})
this.info = res.data
if (this.info.repairWork){
this.getWorkToText()
}
await this.getTicketById(this.info.ticketId)
if (this.info.images && this.info.images.length > 0) {
this.getImageUrls(this.info.images)
}
}catch{}
},
getWorkToText(){
getDictTextByCodeAndValue('repair_work_type', this.info.repairWork).then(value => {
this.info.repairWork = value
}).catch(() => {
this.info.repairWork = "未知"
})
},
getImageUrls(val) {
this.imageUrls = [...val.split(",").map(item => {
return config.baseImageUrl + item