From 3f16669cf3523adff17a328ceb1ee1b7100b1fc0 Mon Sep 17 00:00:00 2001 From: PQZ Date: Sat, 19 Oct 2024 18:07:46 +0800 Subject: [PATCH] 1 --- utils/utils.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils/utils.js b/utils/utils.js index 032c2b9..67e3e5c 100644 --- a/utils/utils.js +++ b/utils/utils.js @@ -146,6 +146,13 @@ export function getDictTextByCodeAndValue(dictCode,value){ } } }) + }else{ + let dictObj = dictArray.find(item=>item.value==value) + if(dictObj){ + return dictObj.label + }else{ + return "未知数据" + } } }