Commit 63e0d7a7 by zhangxw

督导任务管理修改

1 parent 69203265
...@@ -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;
delete this.searchFormSearch.searchTaskTypeList; delete this.searchFormSearch.searchTaskTypeList;
this.searchFormSearch.taskTypeList = this.searchFormSearch.searchTaskTypeList ? [this.searchFormSearch.searchTaskTypeList] : allowIds;
resolve(); resolve();
}); });
}, },
...@@ -214,7 +214,7 @@ export default { ...@@ -214,7 +214,7 @@ 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; params.taskTypeList = (params.searchTaskTypeList ?? '') === '' ? [params.searchTaskTypeList] : allowIds;
delete params.searchTaskTypeList; delete params.searchTaskTypeList;
return params; return params;
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!