|
@ -87,14 +87,29 @@ const open = (titleName: any, allSchemas: any,getApiPage: any, formField: any, s |
|
|
if (searchCondition) tableObjectRef.value.params = searchCondition; |
|
|
if (searchCondition) tableObjectRef.value.params = searchCondition; |
|
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
// 获得表格的各种操作 |
|
|
const { getList, setSearchParams } = tableMethods |
|
|
const { getList } = tableMethods |
|
|
setSearchParamsRef.value = setSearchParams |
|
|
// setSearchParamsRef.value = setSearchParams |
|
|
|
|
|
setSearchParamsRef.value = tableObject.params |
|
|
getListRef.value = getList |
|
|
getListRef.value = getList |
|
|
getList() |
|
|
getList() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 筛选提交 |
|
|
// 筛选提交 |
|
|
const searchFormClick = (searchData) => { |
|
|
const searchFormClick = (searchData) => { |
|
|
|
|
|
// console.log(99, rowRef.value) |
|
|
|
|
|
// console.log(100, searchData) |
|
|
|
|
|
// console.log(101, tableObjectRef.value.params) |
|
|
|
|
|
|
|
|
|
|
|
// 20240104 修改 判断 当前弹窗 是否有条件 如果有条件 需拼接到 筛选中 searchData.filters |
|
|
|
|
|
if (tableObjectRef.value.params) { |
|
|
|
|
|
Object.keys(tableObjectRef.value.params).forEach(key => { |
|
|
|
|
|
searchData.filters.push({ |
|
|
|
|
|
action: "==", |
|
|
|
|
|
column: key, |
|
|
|
|
|
value: tableObjectRef.value.params[key] |
|
|
|
|
|
}) |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
tableObjectRef.value.params = { |
|
|
tableObjectRef.value.params = { |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
filters: searchData.filters |
|
|
filters: searchData.filters |
|
|