feat(缺陷管理): 批量编辑
This commit is contained in:
parent
f9fbae540d
commit
be1d118de7
|
@ -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 });
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue