From be1d118de753db89b04feb034a0503ec6e08982f Mon Sep 17 00:00:00 2001 From: RubyLiu Date: Wed, 7 Feb 2024 18:08:07 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/modules/bug-management/index.ts | 2 +- .../bug-management/components/batchEditModal.vue | 9 +-------- frontend/src/views/bug-management/index.vue | 11 +---------- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/frontend/src/api/modules/bug-management/index.ts b/frontend/src/api/modules/bug-management/index.ts index 58e754fe02..7334aeb733 100644 --- a/frontend/src/api/modules/bug-management/index.ts +++ b/frontend/src/api/modules/bug-management/index.ts @@ -97,7 +97,7 @@ export function followBug(id: string, isFollow: boolean) { // 创建评论 export function createOrUpdateComment(data: CommentParams) { - if (data.id) { + if (data.id || data.event !== 'REPLAY') { return MSR.post({ url: bugURL.postUpdateCommentUrl, data }); } return MSR.post({ url: bugURL.postCreateCommentUrl, data }); diff --git a/frontend/src/views/bug-management/components/batchEditModal.vue b/frontend/src/views/bug-management/components/batchEditModal.vue index 8182628351..fc7ac25fa4 100644 --- a/frontend/src/views/bug-management/components/batchEditModal.vue +++ b/frontend/src/views/bug-management/components/batchEditModal.vue @@ -152,12 +152,6 @@ value: 'tags', }, ]); - // const customOptionList = computed(() => { - // return props.customFields.map((item) => ({ - // label: item.fieldName, - // value: item.fieldId, - // })); - // }); const currentVisible = computed({ get() { return props.visible; @@ -237,8 +231,7 @@ append: form.append, }; await updateBatchBug(tmpObj); - Message.success(t('common.deleteSuccess')); - handleCancel(); + Message.success(t('common.updateSuccess')); emit('submit'); } catch (error) { // eslint-disable-next-line no-console diff --git a/frontend/src/views/bug-management/index.vue b/frontend/src/views/bug-management/index.vue index a0f323ddef..3720aa8cec 100644 --- a/frontend/src/views/bug-management/index.vue +++ b/frontend/src/views/bug-management/index.vue @@ -121,6 +121,7 @@ v-model:visible="batchEditVisible" :select-param="currentSelectParams" :custom-fields="customFields" + @submit="fetchData" /> @@ -489,16 +490,6 @@ exportVisible.value = true; }; - const jumpToTestPlan = (record: BugListItem) => { - router.push({ - name: 'testPlan', - query: { - bugId: record.id, - projectId: projectId.value, - }, - }); - }; - const setExportOptionData = async () => { const res = await getExportConfig(projectId.value); exportOptionData.value = res;