|
|
@@ -221,9 +221,9 @@
|
|
|
const { openMessageBox } = useMessageBox();
|
|
|
const firstLevelDepts = ref<DeptTreeItem[]>([]);
|
|
|
const searchData = reactive({
|
|
|
- reportDeptIds: [],
|
|
|
- status: '',
|
|
|
- taskStage: '',
|
|
|
+ reportDeptIds: null,
|
|
|
+ status: null,
|
|
|
+ taskStage: null,
|
|
|
});
|
|
|
|
|
|
const currentPage = ref(1);
|
|
|
@@ -342,12 +342,9 @@
|
|
|
const getDisposalTableData = async () => {
|
|
|
tableConfig.loading = true;
|
|
|
|
|
|
- const { reportDeptIds, ...otherSearchData } = searchData;
|
|
|
-
|
|
|
const params = {
|
|
|
handleTaskIds: taskIds.value,
|
|
|
- ...otherSearchData,
|
|
|
- ...(reportDeptIds.length > 0 ? { reportDeptIds } : {}),
|
|
|
+ ...searchData,
|
|
|
};
|
|
|
|
|
|
const res = await getDisasterControlTableData(params);
|
|
|
@@ -378,29 +375,26 @@
|
|
|
};
|
|
|
|
|
|
const handleBatchRelease = async (id: number) => {
|
|
|
- const confirmed = await openMessageBox('','确定发布吗?','warn');
|
|
|
+ const confirmed = await openMessageBox('', '确定发布吗?', 'warn');
|
|
|
if (!confirmed) return;
|
|
|
await publishDisasterHandleTask(id);
|
|
|
ElMessage.success('发布成功');
|
|
|
- await getDisposalData();
|
|
|
await getDisposalTableData();
|
|
|
};
|
|
|
|
|
|
const handleBatchWithdraw = async (id: number) => {
|
|
|
- const confirmed = await openMessageBox('','确定撤回吗?','warn');
|
|
|
+ const confirmed = await openMessageBox('', '确定撤回吗?', 'warn');
|
|
|
if (!confirmed) return;
|
|
|
await withdrawDisasterHandleTask(id);
|
|
|
ElMessage.success('撤回成功');
|
|
|
- await getDisposalData();
|
|
|
await getDisposalTableData();
|
|
|
};
|
|
|
|
|
|
const handleBatchDelete = async (id: number) => {
|
|
|
- const confirmed = await openMessageBox('','确定删除吗?','warn');
|
|
|
+ const confirmed = await openMessageBox('', '确定删除吗?', 'warn');
|
|
|
if (!confirmed) return;
|
|
|
await deleteDisasterHandleTask(id);
|
|
|
ElMessage.success('删除成功');
|
|
|
- await getDisposalData();
|
|
|
await getDisposalTableData();
|
|
|
};
|
|
|
|