fix(测试计划): 功能用例步骤描述数据回显错误缺陷&筛选后未刷新数字的缺陷&样式细节

--bug=1040872 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001040872
--bug=1040845 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001040845
--bug=1040927 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001040927
This commit is contained in:
teukkk 2024-05-23 14:57:59 +08:00 committed by Craftsman
parent dbbbd88648
commit eea945b034
4 changed files with 15 additions and 3 deletions

View File

@ -600,6 +600,8 @@
executeResult: item.executeResult, executeResult: item.executeResult,
}; };
}); });
} else {
stepData.value = [];
} }
const fileIds = (attachments || []).map((item: any) => item.id); const fileIds = (attachments || []).map((item: any) => item.id);
if (fileIds.length) { if (fileIds.length) {

View File

@ -66,7 +66,7 @@
/> />
</a-form-item> </a-form-item>
<a-form-item field="tags" :label="t('common.tag')" class="w-[436px]"> <a-form-item field="tags" :label="t('common.tag')" class="w-[436px]">
<MsTagsInput v-model:model-value="form.tags" :max-tag-count="10" :max-length="50" /> <MsTagsInput v-model:model-value="form.tags" :max-tag-count="10" />
</a-form-item> </a-form-item>
<a-form-item v-if="!props.planId?.length"> <a-form-item v-if="!props.planId?.length">
<template #label> <template #label>

View File

@ -22,6 +22,7 @@
v-on="propsEvent" v-on="propsEvent"
@batch-action="handleTableBatch" @batch-action="handleTableBatch"
@drag-change="handleDragChange" @drag-change="handleDragChange"
@filter-change="filterChange"
> >
<template #num="{ record }"> <template #num="{ record }">
<MsButton type="text" @click="toCaseDetail(record)">{{ record.num }}</MsButton> <MsButton type="text" @click="toCaseDetail(record)">{{ record.num }}</MsButton>
@ -415,6 +416,15 @@
} }
); );
function filterChange() {
tableParams.value = { ...tableParams.value, filter: propsRes.value.filter };
emit('getModuleCount', {
...tableParams.value,
current: propsRes.value.msPagination?.current,
pageSize: propsRes.value.msPagination?.pageSize,
});
}
const tableSelected = ref<(string | number)[]>([]); // const tableSelected = ref<(string | number)[]>([]); //
const batchParams = ref<BatchActionQueryParams>({ const batchParams = ref<BatchActionQueryParams>({
selectIds: [], selectIds: [],

View File

@ -57,9 +57,9 @@
</a-spin> </a-spin>
</div> </div>
<!-- 右侧 --> <!-- 右侧 -->
<a-spin :loading="caseDetailLoading" class="relative flex h-full flex-1 flex-col"> <a-spin :loading="caseDetailLoading" class="relative flex h-full flex-1 flex-col overflow-hidden">
<div class="flex px-[16px] pt-[16px]"> <div class="flex px-[16px] pt-[16px]">
<div class="mr-[24px] flex flex-1 items-center"> <div class="mr-[24px] flex flex-1 items-center overflow-hidden">
<MsStatusTag :status="caseDetail.status || 'PREPARED'" /> <MsStatusTag :status="caseDetail.status || 'PREPARED'" />
<div class="ml-[8px] mr-[2px] cursor-pointer font-medium text-[rgb(var(--primary-5))]" @click="goCaseDetail" <div class="ml-[8px] mr-[2px] cursor-pointer font-medium text-[rgb(var(--primary-5))]" @click="goCaseDetail"
>[{{ caseDetail.num }}]</div >[{{ caseDetail.num }}]</div