diff --git a/ruoyi-ui/src/utils/ruoyi.js b/ruoyi-ui/src/utils/ruoyi.js index 3de2d98da..f48dd010a 100644 --- a/ruoyi-ui/src/utils/ruoyi.js +++ b/ruoyi-ui/src/utils/ruoyi.js @@ -73,8 +73,8 @@ export function selectDictLabel(datas, value) { } var actions = [] Object.keys(datas).some((key) => { - if (datas[key].value == ('' + value)) { - actions.push(datas[key].label) + if (datas[key].dictValue == ('' + value)) { + actions.push(datas[key].dictLabel) return true } }) @@ -98,8 +98,8 @@ export function selectDictLabels(datas, value, separator) { Object.keys(value.split(currentSeparator)).some((val) => { var match = false Object.keys(datas).some((key) => { - if (datas[key].value == ('' + temp[val])) { - actions.push(datas[key].label + currentSeparator) + if (datas[key].dictValue == ('' + temp[val])) { + actions.push(datas[key].dictLabel + currentSeparator) match = true } })