function findLabelByValue(value, dictionary) {
for (let item of dictionary) {
if (parseInt(item.value) === value) {
return item.label;
}
}
}
value:后端返回的对应的字典数字
dictionary:对应的字典名称
如果有什么不对的地方,欢迎大家指出来
function findLabelByValue(value, dictionary) {
for (let item of dictionary) {
if (parseInt(item.value) === value) {
return item.label;
}
}
}
value:后端返回的对应的字典数字
dictionary:对应的字典名称
如果有什么不对的地方,欢迎大家指出来