系统管理

This commit is contained in:
2024-05-29 13:13:46 +08:00
parent 3228987c40
commit 71a428f034
10 changed files with 766 additions and 446 deletions

View File

@@ -139,3 +139,15 @@ export function getDictDataLabel(dictType, value) {
const dict = getDictData(dictType, value);
return dict ? dict.label : '';
}
// table中用来过滤字典
export function publicFormatter(dictTable) {
const dictDatas = getDictDatas(dictTable)
return function (val) {
const arr = {}
dictDatas.map((item) => {
arr[item.value] = item.label
})
return arr?.[val]
}
}