fix(测试计划): 报告导出场景测试点修复
This commit is contained in:
parent
1c06c44ba8
commit
0070de70bc
|
@ -846,6 +846,7 @@
|
||||||
executeUser: { cellWidth: 120 / PAGE_PDF_WIDTH_RATIO },
|
executeUser: { cellWidth: 120 / PAGE_PDF_WIDTH_RATIO },
|
||||||
bugCount: { cellWidth: 100 / PAGE_PDF_WIDTH_RATIO },
|
bugCount: { cellWidth: 100 / PAGE_PDF_WIDTH_RATIO },
|
||||||
};
|
};
|
||||||
|
const scenarioColumnStyles = cloneDeep(apiColumnStyles);
|
||||||
if (!isGroup.value && !testPlanReportStore.getTestStatus(isGroup.value, ReportCardTypeEnum.API_CASE_DETAIL)) {
|
if (!isGroup.value && !testPlanReportStore.getTestStatus(isGroup.value, ReportCardTypeEnum.API_CASE_DETAIL)) {
|
||||||
delete apiColumnStyles.collectionName;
|
delete apiColumnStyles.collectionName;
|
||||||
delete apiColumnStyles.planName;
|
delete apiColumnStyles.planName;
|
||||||
|
@ -871,10 +872,22 @@
|
||||||
})) as RowInput[],
|
})) as RowInput[],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (!isGroup.value && !testPlanReportStore.getTestStatus(isGroup.value, ReportCardTypeEnum.SCENARIO_CASE_DETAIL)) {
|
||||||
|
delete scenarioColumnStyles.collectionName;
|
||||||
|
delete scenarioColumnStyles.planName;
|
||||||
|
scenarioColumnStyles.name.cellWidth = 500 / PAGE_PDF_WIDTH_RATIO;
|
||||||
|
} else if (
|
||||||
|
isGroup.value &&
|
||||||
|
!testPlanReportStore.getTestStatus(isGroup.value, ReportCardTypeEnum.SCENARIO_CASE_DETAIL)
|
||||||
|
) {
|
||||||
|
delete scenarioColumnStyles.collectionName;
|
||||||
|
scenarioColumnStyles.name.cellWidth = 360 / PAGE_PDF_WIDTH_RATIO;
|
||||||
|
scenarioColumnStyles.planName.cellWidth = 140 / PAGE_PDF_WIDTH_RATIO;
|
||||||
|
}
|
||||||
if (fullScenarioList.value.length > 0) {
|
if (fullScenarioList.value.length > 0) {
|
||||||
tableArr.push({
|
tableArr.push({
|
||||||
tableId: 'scenario',
|
tableId: 'scenario',
|
||||||
columnStyles: apiColumnStyles,
|
columnStyles: scenarioColumnStyles,
|
||||||
columns: scenarioColumns.map((item) => ({
|
columns: scenarioColumns.map((item) => ({
|
||||||
...item,
|
...item,
|
||||||
title: t(item.title as string),
|
title: t(item.title as string),
|
||||||
|
|
Loading…
Reference in New Issue