From 275703f0c93a8e604a682ab701b9e1106f771bc3 Mon Sep 17 00:00:00 2001 From: baiqi Date: Mon, 4 Nov 2024 11:00:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B):=20?= =?UTF-8?q?=E8=84=91=E5=9B=BE=E6=A0=B9=E6=8D=AE=E8=A1=A8=E6=A0=BC=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/modules/case-management/featureCase.ts | 7 ++++++- .../business/ms-minders/featureCaseMinder/index.vue | 2 ++ .../caseManagementFeature/components/caseTable.vue | 7 +++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/frontend/src/api/modules/case-management/featureCase.ts b/frontend/src/api/modules/case-management/featureCase.ts index 0002055639..05782ab052 100644 --- a/frontend/src/api/modules/case-management/featureCase.ts +++ b/frontend/src/api/modules/case-management/featureCase.ts @@ -199,7 +199,12 @@ export function saveCaseMinder(data: FeatureCaseMinderUpdateParams) { } // 获取脑图 -export function getCaseMinder(data: { projectId: string; moduleId: string; current: number }) { +export function getCaseMinder(data: { + projectId: string; + moduleId: string; + current: number; + sort?: Record; +}) { return MSR.post>({ url: `${GetCaseMinderUrl}`, data }); } diff --git a/frontend/src/components/business/ms-minders/featureCaseMinder/index.vue b/frontend/src/components/business/ms-minders/featureCaseMinder/index.vue index 5c088a2082..e67f31107f 100644 --- a/frontend/src/components/business/ms-minders/featureCaseMinder/index.vue +++ b/frontend/src/components/business/ms-minders/featureCaseMinder/index.vue @@ -141,6 +141,7 @@ moduleId: string; moduleName: string; modulesCount: Record; // 模块数量 + tableSorter: Record; }>(); const emit = defineEmits<{ (e: 'save'): void; @@ -445,6 +446,7 @@ projectId: appStore.currentProjectId, moduleId: data.id, current: 1, + sort: props.tableSorter, }); const fakeNode = node.children?.find((e) => e.data?.id === 'fakeNode'); // 移除占位的虚拟节点 if (fakeNode) { diff --git a/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue b/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue index a8ff6251a7..29fcd3687a 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue @@ -64,6 +64,7 @@ @change="changeHandler" @cell-click="handleCellClick" @filter-change="filterChange" + @sorter-change="handleSorterChange" >