fix: bug#19132

This commit is contained in:
XieYongHong 2023-10-24 15:48:13 +08:00
parent 7cae540c88
commit f90ee686c1
2 changed files with 7 additions and 2 deletions

View File

@ -192,6 +192,12 @@ const columns = [
hideInTable: true, hideInTable: true,
search: { search: {
type: 'treeSelect', type: 'treeSelect',
componentProps: {
fieldNames: {
label: 'name',
value: 'value',
},
},
options: () => new Promise((resolve) => { options: () => new Promise((resolve) => {
getTreeData_api({ paging: false }).then((resp: any) => { getTreeData_api({ paging: false }).then((resp: any) => {
const formatValue = (list: any[]) => { const formatValue = (list: any[]) => {

View File

@ -263,7 +263,6 @@ const productQuery = (p: any) => {
} }
sorts.push({ name: 'createTime', order: 'desc' }); sorts.push({ name: 'createTime', order: 'desc' });
p.sorts = sorts; p.sorts = sorts;
console.log('productQuery',p)
return queryProductList(p); return queryProductList(p);
}; };