feature:自动化代码增加数据源配置功能
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user