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, name: FullPageEnum.FULL_PAGE,
redirect: '/fullPage/testPlanExportPDF', redirect: '/fullPage/testPlanExportPDF',
component: FULL_PAGE_LAYOUT, component: FULL_PAGE_LAYOUT,
meta: {
hideInMenu: true,
},
children: [ children: [
{ {
path: 'testPlanExportPDF', path: 'testPlanExportPDF',

View File

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