Browse Source

回显数据字典键值修正

tags/v3.3.0
RuoYi 3 years ago
parent
commit
92e5d2a97a
  1. 4
      ruoyi-ui/src/utils/ruoyi.js

4
ruoyi-ui/src/utils/ruoyi.js

@ -87,8 +87,8 @@ export function selectDictLabels(datas, value, separator) { @@ -87,8 +87,8 @@ export function selectDictLabels(datas, value, separator) {
var temp = value.split(currentSeparator);
Object.keys(value.split(currentSeparator)).some((val) => {
Object.keys(datas).some((key) => {
if (datas[key].dictValue == ('' + temp[val])) {
actions.push(datas[key].dictLabel + currentSeparator);
if (datas[key].value == ('' + temp[val])) {
actions.push(datas[key].label + currentSeparator);
}
})
})

Loading…
Cancel
Save