feat(缺陷管理): 批量编辑

This commit is contained in:
RubyLiu 2024-02-07 18:08:07 +08:00 committed by Craftsman
parent f9fbae540d
commit be1d118de7
3 changed files with 3 additions and 19 deletions

View File

@ -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 });

View File

@ -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

View File

@ -121,6 +121,7 @@
v-model:visible="batchEditVisible"
:select-param="currentSelectParams"
:custom-fields="customFields"
@submit="fetchData"
/>
</template>
@ -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;