fix(测试计划): 修复测试计划关联用例bug

This commit is contained in:
xinxin.wu 2024-12-16 17:31:58 +08:00 committed by Craftsman
parent 8104540ebd
commit 91d850a36a
2 changed files with 3 additions and 4 deletions

View File

@ -135,9 +135,9 @@
@check="checkNode"
>
<div class="flex items-center justify-between">
<a-checkbox v-model:model-value="isCheckedAll" :indeterminate="indeterminate" @change="checkAllModule">{{
t('ms.case.associate.allData')
}}</a-checkbox>
<a-checkbox v-model:model-value="isCheckedAll" :indeterminate="indeterminate" @change="checkAllModule">
{{ t('ms.case.associate.allData') }}
</a-checkbox>
<span class="pr-[8px] text-[var(--color-text-brand)]">
{{ modulesCount.all }}
</span>

View File

@ -209,7 +209,6 @@ export default function useModuleSelections<T>(
const resultIds = (moduleSelectedMap.value[moduleId] || []).filter((id) => !selectedProps.excludeIds.has(id));
// 取消加了排除ids此刻全选状态为false并且排除当前页ids则从所有列表里边收集到模块ids
resultIds.forEach((e) => {
innerSelectedModulesMaps[moduleId].selectIds.add(e);
innerSelectedModulesMaps[moduleId].excludeIds.delete(e);
});
}