fix(xispeak): 统计标签随搜索/筛选/增删改同步刷新
搜索、重置、高级查询、牵头部门/督办状态筛选、增删改、撤回/发起流程后 均重新调用 statusStats,未开始/督办中/已完成标签与当前筛选条件保持一致 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -259,6 +259,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
|
|||||||
queryParam.value[k] = params[k];
|
queryParam.value[k] = params[k];
|
||||||
});
|
});
|
||||||
reload();
|
reload();
|
||||||
|
fetchStatusStats();
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchStatusStats() {
|
async function fetchStatusStats() {
|
||||||
@@ -326,6 +327,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
createMessage.success(res.message || '删除流程成功');
|
createMessage.success(res.message || '删除流程成功');
|
||||||
reload();
|
reload();
|
||||||
|
fetchStatusStats();
|
||||||
} else {
|
} else {
|
||||||
createMessage.error(res.message || '删除流程失败');
|
createMessage.error(res.message || '删除流程失败');
|
||||||
}
|
}
|
||||||
@@ -345,6 +347,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
|
|||||||
function success() {
|
function success() {
|
||||||
selectedRowKeys.value = [];
|
selectedRowKeys.value = [];
|
||||||
reload();
|
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} 个)`);
|
createMessage.error(`所有部门流程发起失败(共 ${total} 个)`);
|
||||||
}
|
}
|
||||||
reload();
|
reload();
|
||||||
|
fetchStatusStats();
|
||||||
return;
|
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);
|
await saveOrUpdateDict({ id: record.id, bpmStatus: '3', supervisionCount: nextSuperviseCount, completionStatus: 0 }, true);
|
||||||
createMessage.success('发起成功');
|
createMessage.success('发起成功');
|
||||||
reload();
|
reload();
|
||||||
|
fetchStatusStats();
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handlePreviewPic(record) {
|
async function handlePreviewPic(record) {
|
||||||
@@ -905,6 +911,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
|
|||||||
*/
|
*/
|
||||||
function searchQuery() {
|
function searchQuery() {
|
||||||
reload({ page: 1 });
|
reload({ page: 1 });
|
||||||
|
fetchStatusStats();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 输入框逐字触发的查询做防抖,查询按钮仍走未防抖的 searchQuery
|
// 输入框逐字触发的查询做防抖,查询按钮仍走未防抖的 searchQuery
|
||||||
@@ -920,6 +927,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
|
|||||||
selectedImplDept.value = [];
|
selectedImplDept.value = [];
|
||||||
selectedRowKeys.value = [];
|
selectedRowKeys.value = [];
|
||||||
reload({ page: 1 });
|
reload({ page: 1 });
|
||||||
|
fetchStatusStats();
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleImplDeptChange(values) {
|
function handleImplDeptChange(values) {
|
||||||
@@ -929,6 +937,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
|
|||||||
delete queryParam.value.implDept;
|
delete queryParam.value.implDept;
|
||||||
}
|
}
|
||||||
reload({ page: 1 });
|
reload({ page: 1 });
|
||||||
|
fetchStatusStats();
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleBpmStatusChange(value) {
|
function handleBpmStatusChange(value) {
|
||||||
@@ -938,6 +947,7 @@ import { PARTY_COMMITTEE_DEPT_ID, SDW_LEADER_ROLE_ID } from '/@/constant/supervi
|
|||||||
delete queryParam.value.bpmStatus;
|
delete queryParam.value.bpmStatus;
|
||||||
}
|
}
|
||||||
reload({ page: 1 });
|
reload({ page: 1 });
|
||||||
|
fetchStatusStats();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user