代码补正
This commit is contained in:
parent
78bb5006ab
commit
6875b59daf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user