From d41dd5d1592f569f52331e722ca313dbead14059 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Wed, 21 Feb 2024 14:36:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=94=A8=E4=BE=8B=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E7=BC=96=E8=BE=91=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/modules/case-management/featureCase.ts | 2 +- .../components/batchEditModal.vue | 15 ++++++++++++--- .../components/caseTable.vue | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/frontend/src/api/modules/case-management/featureCase.ts b/frontend/src/api/modules/case-management/featureCase.ts index 4c8c32305a..804ed94bd0 100644 --- a/frontend/src/api/modules/case-management/featureCase.ts +++ b/frontend/src/api/modules/case-management/featureCase.ts @@ -160,7 +160,7 @@ export function batchDeleteCase(data: BatchDeleteType) { return MSR.post({ url: `${BatchDeleteCaseUrl}`, data }); } // 批量编辑属性 -export function batchEditAttrs(data: BatchEditCaseType) { +export function batchEditAttrs(data: TableQueryParams) { return MSR.post({ url: `${BatchEditCaseUrl}`, data }); } // 批量移动到模块 diff --git a/frontend/src/views/case-management/caseManagementFeature/components/batchEditModal.vue b/frontend/src/views/case-management/caseManagementFeature/components/batchEditModal.vue index e009ea41c1..42b725db53 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/batchEditModal.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/batchEditModal.vue @@ -38,7 +38,13 @@ - + @@ -59,6 +65,7 @@ import useAppStore from '@/store/modules/app'; import type { BatchEditCaseType, CustomAttributes } from '@/models/caseManagement/featureCase'; + import { TableQueryParams } from '@/models/common'; import Message from '@arco-design/web-vue/es/message'; @@ -165,8 +172,10 @@ customField.fieldId = item.field; customField.value = Array.isArray(item.value) ? JSON.stringify(item.value) : item.value; }); - const params: BatchEditCaseType = { - selectIds: props.batchParams.selectedIds as string[], + const { selectedIds, selectAll } = props.batchParams; + const params: TableQueryParams = { + selectedIds, + selectAll, projectId: currentProjectId.value, append: enable as boolean, tags: form.value.tags, diff --git a/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue b/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue index 0fd809aa9d..4a8a0610cd 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue @@ -1038,7 +1038,7 @@ }; function successHandler() { - loadList(); + initData(); emitTableParams(); resetSelector(); }