fix(测试计划): 执行历史执行结果

This commit is contained in:
baiqi 2024-11-19 10:37:23 +08:00 committed by 刘瑞斌
parent 6436a84245
commit 75039a0439
2 changed files with 15 additions and 5 deletions

View File

@ -8,6 +8,9 @@ const FullPage: AppRouteRecordRaw = {
name: FullPageEnum.FULL_PAGE,
redirect: '/fullPage/testPlanExportPDF',
component: FULL_PAGE_LAYOUT,
meta: {
hideInMenu: true,
},
children: [
{
path: 'testPlanExportPDF',

View File

@ -2,8 +2,8 @@
<MsDrawer v-model:visible="visible" :width="1200" :footer="false">
<template #title>
<div class="flex flex-1 items-center gap-[8px] overflow-hidden">
<a-tag :color="executeResultMap[props.planDetail.execResult]?.color">
{{ t(executeResultMap[props.planDetail.execResult]?.label || '-') }}
<a-tag :color="executeResultMap[detail.result]?.color">
{{ t(executeResultMap[detail.result]?.label || '-') }}
</a-tag>
<div class="one-line-text flex-1">{{ detail.taskName }}</div>
</div>
@ -17,7 +17,7 @@
<a-spin :loading="loading" class="block min-h-[200px]">
<MsDescription :descriptions="detail.description" :column="2" :line-gap="8" one-line-value>
<template #value="{ item }">
<execStatus v-if="item.key === 'status'" :status="props.planDetail.execResult" size="small" />
<execStatus v-if="item.key === 'status'" :status="detail.status" size="small" />
<a-select
v-else-if="item.key === 'testPlan'"
v-model:model-value="activePlan"
@ -258,8 +258,7 @@
function searchList() {
currentCaseTable.value.setLoadListParams({
keyword: keyword.value,
reportId: detail.value.reportId,
planId: activePlan.value || detail.value.id,
reportId: activePlan.value || detail.value.reportId,
});
currentCaseTable.value.loadList();
}
@ -346,6 +345,14 @@
);
</script>
<style lang="less">
.no-content {
.arco-tabs-tab:first-child {
margin-left: 0;
}
}
</style>
<style lang="less" scoped>
:deep(.ms-description-item) {
@apply items-center;