feature:自动化代码增加数据源配置功能

This commit is contained in:
pixelmaxQM
2024-04-27 21:35:29 +08:00
parent 6c62d73afb
commit d9a43ea1d6
12 changed files with 207 additions and 59 deletions
+5
View File
@@ -22,6 +22,11 @@ export const filterDict = (value, options) => {
return rowLabel && rowLabel[0] && rowLabel[0].label
}
export const filterDataSource = (dataSource, value) => {
const rowLabel = dataSource && dataSource.find(item => item.value === value)
return rowLabel.label
}
export const getDictFunc = async(type) => {
const dicts = await getDict(type)
return dicts