From 091a2761cf622f12e6c4d7df3fd81977ee8eb1ed Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Tue, 15 Mar 2022 16:03:13 +0800 Subject: [PATCH] 28239 --- .../AppVisitVondolence/components/Detail.vue | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/packages/2.0.5/AppVisitVondolence/components/Detail.vue b/packages/2.0.5/AppVisitVondolence/components/Detail.vue index a5e006f3..9a177782 100644 --- a/packages/2.0.5/AppVisitVondolence/components/Detail.vue +++ b/packages/2.0.5/AppVisitVondolence/components/Detail.vue @@ -16,6 +16,7 @@ + @@ -44,7 +45,7 @@ created () { this.id = this.params.id this.dict.load(['visitCondolenceReality']).then(() => { - this.getInfo(this.params.id) + this.getDictList() }) }, @@ -54,6 +55,21 @@ if (res.code === 0) { this.info = res.data this.info.images = res.data.images ? JSON.parse(res.data.images) : [] + this.info.type = this.dictList.filter(v => v.dictValue === res.data.applicationId)[0].dictName + } + }) + }, + + getDictList () { + this.instance.post(`/app/appapplicationinfo/queryApplicationListByType`).then(res => { + if (res.code == 0) { + this.dictList = res.data.map(v => { + return { + dictValue: v.id, + dictName: v.applicationName + } + }) + this.getInfo(this.params.id) } }) },