回显数据字典键值修正

This commit is contained in:
RuoYi 2021-11-01 14:40:00 +08:00
parent 3ae5ec92a5
commit 181f62c15e

View File

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