fix(用例管理): 修复批量编辑缺少模块参数,会更新全部用例问题

--bug=1035962 --user=王旭 【用例管理】功能用例-批量编辑自定义字段失败 https://www.tapd.cn/55049933/s/1477982
This commit is contained in:
WangXu10 2024-03-20 14:05:07 +08:00 committed by Craftsman
parent df980ac47c
commit 95f2ff2312
2 changed files with 10 additions and 1 deletions

View File

@ -77,6 +77,8 @@
const props = defineProps<{
visible: boolean;
batchParams: BatchActionQueryParams;
activeFolder: string;
offspringIds: string[];
}>();
const emits = defineEmits<{
@ -181,6 +183,7 @@
projectId: currentProjectId.value,
append: enable as boolean,
tags: form.value.tags,
moduleIds: props.activeFolder === 'all' ? [] : [props.activeFolder, ...props.offspringIds],
customField: form.value.selectedAttrsId === 'systemTags' ? {} : customField,
};
await batchEditAttrs(params);

View File

@ -306,7 +306,13 @@
></FeatureCaseTree>
</a-modal>
<ExportExcelDrawer v-model:visible="showExportExcelVisible" />
<BatchEditModal v-model:visible="showEditModel" :batch-params="batchParams" @success="successHandler" />
<BatchEditModal
v-model:visible="showEditModel"
:batch-params="batchParams"
:active-folder="props.activeFolder"
:offspring-ids="props.offspringIds"
@success="successHandler"
/>
<CaseDetailDrawer
v-model:visible="showDetailDrawer"
:detail-id="activeDetailId"