fix: 🧩 树状结构支持多选

This commit is contained in:
2025-06-06 14:05:40 +08:00
parent f2ee833412
commit 6f8a3e72a5
25 changed files with 96 additions and 85 deletions

View File

@@ -87,9 +87,10 @@ export const useTable = (
// 处理查询参数,可以给查询参数加自定义前缀操作
let nowSearchParam: Table.StateProps["searchParam"] = {};
// 防止手动清空输入框携带参数(这里可以自定义查询参数前缀)
console.log(state.searchParam, "=state.searchParam=");
for (let key in state.searchParam) {
//剔除日期参数
if (key !== "Time" && key !== "Time1") {
if (key !== "Time" && key !== "Time1" && key !== "treeIds") {
// * 某些情况下参数为 false/0 也应该携带参数
if (state.searchParam[key] || state.searchParam[key] === false || state.searchParam[key] === 0) {
nowSearchParam[key] = state.searchParam[key];