From 6875b59daff4b827eda0d7d64352f49c93824b86 Mon Sep 17 00:00:00 2001 From: xiaofajia <1665375861@qq.com> Date: Fri, 15 Nov 2024 16:59:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=A1=A5=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages-home/service/todoDetail.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) 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