diff --git a/pages-home/service/todoDetail.vue b/pages-home/service/todoDetail.vue index dce61db..0c443fa 100644 --- a/pages-home/service/todoDetail.vue +++ b/pages-home/service/todoDetail.vue @@ -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