From 4126f634baf8be303ac4309b072f413b232e3919 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Thu, 30 Jul 2020 18:14:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96selectDictLabel=E6=96=B9?= =?UTF-8?q?=E6=B3=95=EF=BC=8C=E6=95=B0=E7=BB=84=E8=BF=AD=E4=BB=A3=E5=99=A8?= =?UTF-8?q?=E6=8D=A2=E4=B8=BAsome?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/utils/ruoyi.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-ui/src/utils/ruoyi.js b/ruoyi-ui/src/utils/ruoyi.js index f834ddab..80119921 100644 --- a/ruoyi-ui/src/utils/ruoyi.js +++ b/ruoyi-ui/src/utils/ruoyi.js @@ -68,10 +68,10 @@ export function addDateRange(params, dateRange) { // 回显数据字典 export function selectDictLabel(datas, value) { var actions = []; - Object.keys(datas).map((key) => { + Object.keys(datas).some((key) => { if (datas[key].dictValue == ('' + value)) { actions.push(datas[key].dictLabel); - return false; + return true; } }) return actions.join(''); @@ -144,4 +144,4 @@ export function tansParams(params) { } }) return result -} \ No newline at end of file +}