-
-
-
+
+
新增
@@ -30,15 +28,6 @@
-
-
- onExpand(record, e)">
-
-
-
-
-
-
@@ -92,7 +81,6 @@
-
@@ -131,6 +119,7 @@
updateLaunchType,
saveOrUpdateDict,
bgXiSpeakFeedbackList,
+ withDrawXiSpeak,
} from './BgXiSpeak.api';
const FLOW_CODE = 'dev_bg_xi_speak_001';
@@ -171,6 +160,7 @@
const showSdwLeaderSelect = computed(() => queryParam.value.needSdwApproval === '1');
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
+ designScope: 'bg-xispeak-template',
tableProps: {
title: '习总书记重要讲话指示批示情况',
api: list,
@@ -178,13 +168,7 @@
canResize: false,
useSearchForm: false,
isTreeTable: true,
- indentSize: 24, // 和 Jeecg 原生树形缩进保持一致
- expandIconColumnIndex: 0,
clickToRowSelect: true,
- treeProps: {
- children: 'children',
- indent: 24, // 和 indentSize 保持一致,保证缩进对齐
- },
actionColumn: {
width: 120,
fixed: 'right',
@@ -195,7 +179,6 @@
},
afterFetch: (result) => {
if (result && result.length > 0) {
- // 为有子节点的记录设置 children(用于显示展开图标)
result.forEach((item) => {
if (item.hasChild == '1' && (!item.children || item.children.length === 0)) {
item.children = [{ id: item.id + '_loadChild', name: 'loading...', isLoading: true }];
@@ -279,6 +262,16 @@
await deleteBgXiSpeak({ id: record.id }, success);
}
+ async function handleWithDraw(record) {
+ const res = await withDrawXiSpeak({ id: record.id });
+ if (res.success) {
+ createMessage.success(res.message || '删除流程成功');
+ reload();
+ } else {
+ createMessage.error(res.message || '删除流程失败');
+ }
+ }
+
/**
* 批量删除事件
*/
@@ -476,6 +469,15 @@
label: '查询督办流程',
onClick: handleQueryProcess.bind(null, record),
},
+ {
+ label: '删除关联流程',
+ popConfirm: {
+ title: '确定删除该记录关联的所有运行中流程吗?',
+ confirm: handleWithDraw.bind(null, record),
+ placement: 'topLeft',
+ },
+ ifShow: !!record.bpmStatus && record.bpmStatus !== '1',
+ },
{
label: selectedFeedbackId.value === record.id ? '收起反馈信息' : '查看反馈',
onClick: handleViewFeedback.bind(null, record),
@@ -755,199 +757,6 @@