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;