mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-05 05:29:29 +08:00
fix(测试计划): 功能用例脑图批量操作修复
--bug=1047364 --user=白奇 【测试计划】-脑图执行-多选用例子节点后,会出现添加缺陷按钮 https://www.tapd.cn/55049933/s/1594780
This commit is contained in:
parent
e25ba8a7b3
commit
d07388c788
@ -117,14 +117,14 @@
|
||||
show-step-detail-trigger
|
||||
/>
|
||||
</template>
|
||||
<template #batchMenu>
|
||||
<template v-if="canShowBatchAddDefect" #batchMenu>
|
||||
<a-dropdown trigger="hover" position="bl">
|
||||
<MsButton
|
||||
v-if="props.canEdit && hasAllPermission(['PROJECT_BUG:READ', 'PROJECT_TEST_PLAN:READ+EXECUTE'])"
|
||||
type="icon"
|
||||
class="ms-minder-node-float-menu-icon-button"
|
||||
>
|
||||
<MsIcon type="icon-icon_bug" class="text-[var(--color-text-4)]" />
|
||||
<MsIcon type="icon-icon_bug" class="text-[rgb(var(--danger-6))]" />
|
||||
</MsButton>
|
||||
<template #content>
|
||||
<a-doption v-permission="['PROJECT_BUG:READ+ADD']" value="new" @click="showBatchAddDefect">
|
||||
@ -980,8 +980,14 @@
|
||||
setPriorityView(true, 'P');
|
||||
}
|
||||
|
||||
function handleNodeBatchSelect() {
|
||||
const canShowBatchAddDefect = ref(false);
|
||||
function handleNodeBatchSelect(nodes: MinderJsonNode[]) {
|
||||
isMinderOperation.value = true;
|
||||
if (nodes.every((node) => isModuleOrCollection(node.data) || node.data?.caseId)) {
|
||||
canShowBatchAddDefect.value = true;
|
||||
} else {
|
||||
canShowBatchAddDefect.value = false;
|
||||
}
|
||||
}
|
||||
|
||||
function showBatchAddDefect() {
|
||||
|
Loading…
Reference in New Issue
Block a user