修复:调整table数据处理时满足条件后未跳出循环导致的相关问题
This commit is contained in:
parent
907881eb7a
commit
4e7e0a256b
@ -80,11 +80,12 @@ Vue.prototype.$convertField = function(fieldValue, enumList, converFormat, isLis
|
||||
Vue.prototype.$convertSpecifiedField = function(dataDict, enumList, key, value, fieldList) {
|
||||
if (dataDict && enumList && fieldList && enumList.length && fieldList.length) {
|
||||
fieldList.forEach(field => {
|
||||
enumList.forEach(elem => {
|
||||
if (elem[key] === dataDict[field]) {
|
||||
dataDict[field] = elem[value];
|
||||
for (let i = 0; i < enumList.length; i++) {
|
||||
if (enumList[i][key] === dataDict[field]) {
|
||||
dataDict[field] = enumList[i][value];
|
||||
return;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user