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) { 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.postUpdateCommentUrl, data });
} }
return MSR.post({ url: bugURL.postCreateCommentUrl, data }); return MSR.post({ url: bugURL.postCreateCommentUrl, data });

View File

@ -152,12 +152,6 @@
value: 'tags', value: 'tags',
}, },
]); ]);
// const customOptionList = computed(() => {
// return props.customFields.map((item) => ({
// label: item.fieldName,
// value: item.fieldId,
// }));
// });
const currentVisible = computed({ const currentVisible = computed({
get() { get() {
return props.visible; return props.visible;
@ -237,8 +231,7 @@
append: form.append, append: form.append,
}; };
await updateBatchBug(tmpObj); await updateBatchBug(tmpObj);
Message.success(t('common.deleteSuccess')); Message.success(t('common.updateSuccess'));
handleCancel();
emit('submit'); emit('submit');
} catch (error) { } catch (error) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console

View File

@ -121,6 +121,7 @@
v-model:visible="batchEditVisible" v-model:visible="batchEditVisible"
:select-param="currentSelectParams" :select-param="currentSelectParams"
:custom-fields="customFields" :custom-fields="customFields"
@submit="fetchData"
/> />
</template> </template>
@ -489,16 +490,6 @@
exportVisible.value = true; exportVisible.value = true;
}; };
const jumpToTestPlan = (record: BugListItem) => {
router.push({
name: 'testPlan',
query: {
bugId: record.id,
projectId: projectId.value,
},
});
};
const setExportOptionData = async () => { const setExportOptionData = async () => {
const res = await getExportConfig(projectId.value); const res = await getExportConfig(projectId.value);
exportOptionData.value = res; exportOptionData.value = res;