From 754e271ad5c1a1d8ea276289e91981aeeb4e37f1 Mon Sep 17 00:00:00 2001 From: miaojiale <1123971748@qq.com> Date: Thu, 6 Apr 2023 17:09:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E5=85=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/followupquery/index.vue | 10 ++++++---- src/views/followupresearch/index.vue | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/views/followupquery/index.vue b/src/views/followupquery/index.vue index e6430b0..580b388 100644 --- a/src/views/followupquery/index.vue +++ b/src/views/followupquery/index.vue @@ -103,10 +103,12 @@ export default { minWidth: 120, value: "riskRank", formatter: (row) => { - return this.$handle.formatDicList( - this.dictMap["risk_level"], - String(row.riskRank) - ) + let riskRank = { + low: "低危", + medium: "中危", + high: "高危", + } + return row.riskRank ? riskRank[row.riskRank] : "--" }, }, { diff --git a/src/views/followupresearch/index.vue b/src/views/followupresearch/index.vue index b5eb958..5b25922 100644 --- a/src/views/followupresearch/index.vue +++ b/src/views/followupresearch/index.vue @@ -100,10 +100,12 @@ export default { minWidth: 120, value: "riskRank", formatter: (row) => { - return this.$handle.formatDicList( - this.dictMap["risk_level"], - String(row.riskRank) - ) + let riskRank = { + low: "低危", + medium: "中危", + high: "高危", + } + return row.riskRank ? riskRank[row.riskRank] : "--" }, }, { -- 2.22.0