fix(测试计划): 修复测试计划styleBug补充关联用例表标签字段&修复table选中当前页清空问题

This commit is contained in:
xinxin.wu 2024-06-20 15:40:46 +08:00 committed by Craftsman
parent 54057a2fb9
commit 14ae7659eb
4 changed files with 21 additions and 13 deletions

View File

@ -151,6 +151,13 @@
width: 150,
showDrag: true,
},
{
title: 'common.tag',
slotName: 'tags',
dataIndex: 'tags',
isTag: true,
width: 300,
},
{
title: 'caseManagement.featureCase.tableColumnCreateUser',
slotName: 'createName',

View File

@ -458,7 +458,8 @@ export default function useTableProps<T>(
// 清空选中项
resetSelector(false);
} else if (v === SelectAllEnum.CURRENT) {
// 选中当前页面所有数据
// 先清空选中项选,当再选中当前页面所有数据,
propsRes.value.selectedKeys.clear();
collectIds(data as MsTableDataItem<T>[], rowKey);
} else if (v === SelectAllEnum.ALL) {
// 全选所有页的时候先清空排除项,再选中所有数据

View File

@ -2,7 +2,7 @@
<MsDetailDrawer
ref="detailDrawerRef"
v-model:visible="showDrawerVisible"
:width="850"
:width="880"
:footer="false"
:mask="false"
:title="t('caseManagement.featureCase.caseDetailTitle', { id: detailInfo?.num, name: detailInfo?.name })"

View File

@ -22,8 +22,8 @@
<a-radio :value="testPlanTypeEnum.GROUP" class="show-type-icon p-[2px]">{{
t('testPlan.testPlanIndex.testPlanGroup')
}}</a-radio>
</a-radio-group></div
>
</a-radio-group>
</div>
<div class="mr-[24px]">
<a-switch v-model="isArchived" size="small" type="line" @change="archivedChangeHandler" />
<span class="ml-1 text-[var(--color-text-3)]">{{ t('testPlan.testPlanGroup.seeArchived') }}</span>
@ -110,16 +110,16 @@
<span :class="getIconClass(record)">{{ record.childrenCount || 0 }}</span>
</div>
<div v-if="record.type === testPlanTypeEnum.TEST_PLAN" :class="`one-line-text ${hasIndent(record)}`"
><MsButton type="text" @click="openDetail(record.id)"
<div v-if="record.type === testPlanTypeEnum.TEST_PLAN" :class="`one-line-text ${hasIndent(record)}`">
<MsButton type="text" @click="openDetail(record.id)"
><a-tooltip :content="record.num.toString()"
><span>{{ record.num }}</span></a-tooltip
></MsButton
></div
>
<a-tooltip v-else :content="record.num.toString()"
><div :class="`one-line-text ${hasIndent(record)}`">{{ record.num }}</div></a-tooltip
>
>
</div>
<a-tooltip v-else :content="record.num.toString()">
<div :class="`one-line-text ${hasIndent(record)}`">{{ record.num }}</div>
</a-tooltip>
<a-tooltip position="right" :disabled="!getSchedule(record.id)" :mouse-enter-delay="300">
<MsTag
v-if="getSchedule(record.id)"
@ -160,9 +160,9 @@
</template>
<template #moduleId="{ record }">
<a-tooltip :content="getModules(record.moduleId, props.moduleTree)" position="top">
<span class="one-line-text inline-block">
<div class="one-line-text">
{{ getModules(record.moduleId, props.moduleTree) }}
</span>
</div>
</a-tooltip>
</template>
<template #planStartToEndTime="{ record }">