货品下拉框等改多选
This commit is contained in:
@@ -306,7 +306,8 @@ const initTable = async () => {
|
||||
pageNo:1
|
||||
}
|
||||
config.filterable= true
|
||||
// config.props ={ label:config.prop , value:config.prop }
|
||||
config.multiple= true
|
||||
config.collapseTags=true
|
||||
config.dicFormatter= (res) => { //请求数据格式化
|
||||
const arr=[...new Set(res.records.map(item=>item[config.prop]))]
|
||||
return arr.map(item=>({label:item,value:item}))
|
||||
|
||||
Reference in New Issue
Block a user