Commit d072ab0f by zhangxw

参数错误修改

1 parent 63e0d7a7
...@@ -194,8 +194,8 @@ export default { ...@@ -194,8 +194,8 @@ export default {
"special": [4] "special": [4]
} }
const allowIds = allowMap[this.tabList.find(i => i.key == this.activeName)?.key] || []; const allowIds = allowMap[this.tabList.find(i => i.key == this.activeName)?.key] || [];
this.searchFormSearch.taskTypeList = (this.searchFormSearch.searchTaskTypeList ?? '') === '' ? [this.searchFormSearch.searchTaskTypeList] : allowIds; this.searchFormSearch.taskTypeList = (this.searchFormSearch.searchTaskTypeList ?? '') !== '' ? [this.searchFormSearch.searchTaskTypeList] : allowIds;
delete this.searchFormSearch.searchTaskTypeList; delete this.searchFormSearch.searchTaskTypeList
resolve(); resolve();
}); });
}, },
...@@ -214,7 +214,8 @@ export default { ...@@ -214,7 +214,8 @@ export default {
} }
const allowIds = allowMap[this.tabList.find(i => i.key === this.activeName)?.key] || []; const allowIds = allowMap[this.tabList.find(i => i.key === this.activeName)?.key] || [];
const params = Util.deepClone(this.searchForm); const params = Util.deepClone(this.searchForm);
params.taskTypeList = (params.searchTaskTypeList ?? '') === '' ? [params.searchTaskTypeList] : allowIds; console.log(params, 'params')
params.taskTypeList = (params.searchTaskTypeList ?? '') !== '' ? [params.searchTaskTypeList] : allowIds;
delete params.searchTaskTypeList; delete params.searchTaskTypeList;
return params; return params;
}, },
...@@ -223,7 +224,7 @@ export default { ...@@ -223,7 +224,7 @@ export default {
this.updateTaskTypeOptionsByTab(event.label || ""); this.updateTaskTypeOptionsByTab(event.label || "");
}, },
handleSearch() { handleSearch() {
this.$refs.supervisionTaskTable?.refreshTable(); this.$refs.supervisionTaskTable?.refreshTable(true, true);
this.getStaticsData(); this.getStaticsData();
}, },
handleReset() { handleReset() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!