fix(xispeak): 统计标签随搜索/筛选/增删改同步刷新

搜索、重置、高级查询、牵头部门/督办状态筛选、增删改、撤回/发起流程后
均重新调用 statusStats,未开始/督办中/已完成标签与当前筛选条件保持一致

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wsm
2026-08-10 17:48:31 +08:00
co-authored by Claude Opus 4.7
parent 81e9ba9afe
commit 0e445d718c
+10
View File
@@ -259,6 +259,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
queryParam.value[k] = params[k];
});
reload();
fetchStatusStats();
}
async function fetchStatusStats() {
@@ -326,6 +327,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
if (res.success) {
createMessage.success(res.message || '删除流程成功');
reload();
fetchStatusStats();
} else {
createMessage.error(res.message || '删除流程失败');
}
@@ -345,6 +347,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
function success() {
selectedRowKeys.value = [];
reload();
fetchStatusStats();
}
/**
@@ -372,6 +375,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
}
}
}
fetchStatusStats();
}
/**
@@ -795,6 +799,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
createMessage.error(`所有部门流程发起失败(共 ${total} 个)`);
}
reload();
fetchStatusStats();
return;
}
@@ -824,6 +829,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
await saveOrUpdateDict({ id: record.id, bpmStatus: '3', supervisionCount: nextSuperviseCount, completionStatus: 0 }, true);
createMessage.success('发起成功');
reload();
fetchStatusStats();
}
async function handlePreviewPic(record) {
@@ -905,6 +911,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
*/
function searchQuery() {
reload({ page: 1 });
fetchStatusStats();
}
// 输入框逐字触发的查询做防抖,查询按钮仍走未防抖的 searchQuery
@@ -920,6 +927,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
selectedImplDept.value = [];
selectedRowKeys.value = [];
reload({ page: 1 });
fetchStatusStats();
}
function handleImplDeptChange(values) {
@@ -929,6 +937,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
delete queryParam.value.implDept;
}
reload({ page: 1 });
fetchStatusStats();
}
function handleBpmStatusChange(value) {
@@ -938,6 +947,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
delete queryParam.value.bpmStatus;
}
reload({ page: 1 });
fetchStatusStats();
}
</script>