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 "未知数据" + } } }