From ddcbc904b1b496e2c5a5bfe6e3cf4a285c0eb0a0 Mon Sep 17 00:00:00 2001 From: changjinpeng <185154740@qq.com> Date: Fri, 4 Mar 2022 10:21:27 +0800 Subject: [PATCH] 28025 28011 --- src/apps/AppWorkonline/Detail.vue | 34 ++++++++++++++++--------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/apps/AppWorkonline/Detail.vue b/src/apps/AppWorkonline/Detail.vue index a0f127ca..fc118649 100644 --- a/src/apps/AppWorkonline/Detail.vue +++ b/src/apps/AppWorkonline/Detail.vue @@ -89,7 +89,7 @@
- +
@@ -98,10 +98,7 @@ {{ $dict.getLabel(items.dictionaryCode, items.fieldValue) }} - {{ $dict.getLabel(items.dictionaryCode, itemL) }} - - + {{ $dict.getLabel(items.dictionaryCode, itemL) }}
@@ -174,7 +171,10 @@ {{ item4.fieldValue }}
--> - 审批意见:{{ item.opinion }} + + 审批意见: + {{ item.opinion }} +
@@ -285,20 +285,22 @@ export default { this.inforlist = [[], [], [], [], [], [], [], [], [], []] res.data.tableInfo.tableFieldInfos.map((item) => { - if (item.groupIndex) { - this.inforlist[item.groupIndex - 1].push(item) - } + this.inforlist[item.groupIndex].push(item) if (item.dictionaryCode) { this.dictList.push(item.dictionaryCode) - } - if (item.fieldDataType == 5) { - // item.fieldValue = item.fieldValue.split(',') - } - }) - this.$dict.load(this.dictList).then(() => { - // this.pageShow = true + this.$dict.load(this.dictList) + } + + if (item.fieldDataType == 5) { + item.fieldValue = item.fieldValue && item.fieldValue.split(',') + } + + if (item.fieldDataType == 9) { + console.log(item.dictionaryCode) + console.log(this.$dict.getDict(item.dictionaryCode, item.fieldValue)) + } }) } }