功能变化: 优化selector-table组件

pull/107/head
李强 2023-08-21 22:40:50 +08:00
parent fbb1ae1c04
commit 48ee0f79cc
1 changed files with 5 additions and 1 deletions

View File

@ -237,13 +237,17 @@ export default {
}
if (val && val.toString().length > 0) {
// value
const { url, value, label } = this.dict
let { url, value, label } = this.dict
params[value] = val
const queryList = ['id', label, value]
this._elProps.tableConfig.columns.map(res => {
queryList.push(res.prop)
})
params.query = `{${Array.from(new Set(queryList)).join(',')}}`
if (typeof url === 'function') {
const form = this.d2CrudContext.getForm()
url = url(this.dict, { form })
}
return request({
url: url,
params: params,