货品下拉框等改多选

This commit is contained in:
mll
2026-03-13 15:11:22 +08:00
parent b9c60b8c48
commit b6d970175e

View File

@@ -306,7 +306,8 @@ const initTable = async () => {
pageNo:1 pageNo:1
} }
config.filterable= true config.filterable= true
// config.props ={ label:config.prop , value:config.prop } config.multiple= true
config.collapseTags=true
config.dicFormatter= (res) => { //请求数据格式化 config.dicFormatter= (res) => { //请求数据格式化
const arr=[...new Set(res.records.map(item=>item[config.prop]))] const arr=[...new Set(res.records.map(item=>item[config.prop]))]
return arr.map(item=>({label:item,value:item})) return arr.map(item=>({label:item,value:item}))