fix(报告): 测试计划导出场景明细修复
--bug=1046814 --user=白奇 【测试计划】计划报告-导出后未展示场景明细 https://www.tapd.cn/55049933/s/1582179
This commit is contained in:
parent
377ca6d609
commit
5398e97410
|
@ -183,7 +183,7 @@
|
|||
const route = useRoute();
|
||||
|
||||
const innerCardList = ref<configItem[]>([]);
|
||||
const layoutShowCards = ref<componentItem[]>([]);
|
||||
const layoutShowCards = ref<any[]>([]);
|
||||
|
||||
const detail = ref<PlanReportDetail>({ ...cloneDeep(defaultReportDetail) });
|
||||
const reportId = ref<string>(route.query.id as string);
|
||||
|
@ -657,6 +657,7 @@
|
|||
innerCardList.value = (isGroup.value ? cloneDeep(defaultGroupConfig) : cloneDeep(defaultSingleConfig)).filter(
|
||||
(e: any) => [ReportCardTypeEnum.CUSTOM_CARD, ReportCardTypeEnum.SUMMARY].includes(e.value)
|
||||
);
|
||||
layoutShowCards.value = isGroup.value ? cloneDeep(defaultGroupConfig) : cloneDeep(defaultSingleConfig);
|
||||
}
|
||||
if (isGroup.value) {
|
||||
await initGroupList();
|
||||
|
@ -702,8 +703,8 @@
|
|||
pageRequest.push(initApiList());
|
||||
}
|
||||
if (
|
||||
!isDefaultLayout.value &&
|
||||
layoutShowCards.value.some((e) => e.name === ReportCardTypeEnum.SCENARIO_CASE_DETAIL)
|
||||
isDefaultLayout.value ||
|
||||
(!isDefaultLayout.value && layoutShowCards.value.some((e) => e.name === ReportCardTypeEnum.SCENARIO_CASE_DETAIL))
|
||||
) {
|
||||
pageRequest.push(initScenarioList());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue