mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-19 09:55:16 +08:00
17 lines
351 B
JavaScript
17 lines
351 B
JavaScript
/**
|
|
* 根据字典值获取名称
|
|
* @param value
|
|
* @param options
|
|
* @returns {string}
|
|
*/
|
|
export function getDictName(value,options) {
|
|
let actions = [];
|
|
Object.keys(options).some((key) => {
|
|
if (options[key].dictValue == ('' + value)) {
|
|
actions.push(options[key].dictLabel);
|
|
return true;
|
|
}
|
|
})
|
|
return actions.join('');
|
|
}
|