Commit d072ab0f by zhangxw

参数错误修改

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