This commit is contained in:
@@ -161,7 +161,8 @@ export function renderDict(value: number | string, dictName: string) {
|
||||
}
|
||||
export function renderDictValue(value: number | string, dictName: string) {
|
||||
const dictInfo = getDictOptions(dictName);
|
||||
return dictInfo[0].label??'';
|
||||
const matchedItem = dictInfo.find((item) => item.value == value);
|
||||
return matchedItem ? matchedItem.label : value;
|
||||
}
|
||||
export function renderIconSpan(
|
||||
icon: ComponentType,
|
||||
|
Reference in New Issue
Block a user