diff --git a/frontend/src/enums/tableEnum.ts b/frontend/src/enums/tableEnum.ts index bcf3258786..44a232344b 100644 --- a/frontend/src/enums/tableEnum.ts +++ b/frontend/src/enums/tableEnum.ts @@ -94,11 +94,14 @@ export enum TableKeyEnum { JSON_SCHEMA = 'jsonSchema', TEST_PLAN_REPORT_FUNCTIONAL_TABLE = 'testPlanReportFunctionTable', TEST_PLAN_REPORT_FUNCTIONAL_TABLE_GROUP = 'testPlanReportFunctionTableGroup', + TEST_PLAN_REPORT_FUNCTIONAL_TABLE_NOT_PREVIEW = 'testPlanReportFunctionTableNotPreview', TEST_PLAN_REPORT_API_TABLE = 'testPlanReportApiTable', + TEST_PLAN_REPORT_API_TABLE_NOT_PREVIEW = 'testPlanReportApiTableNotPreview', TEST_PLAN_REPORT_API_TABLE_GROUP = 'testPlanReportApiTableGroup', TEST_PLAN_REPORT_SCENARIO_TABLE = 'testPlanReportScenarioTable', TEST_PLAN_REPORT_SCENARIO_TABLE_GROUP = 'testPlanReportScenarioTableGroup', TEST_PLAN_REPORT_BUG_TABLE_DETAIL = 'testPlanReportBugDetailTable', + TEST_PLAN_REPORT_BUG_TABLE_DETAIL_NOT_PREVIEW = 'testPlanReportBugDetailTableNotPreview', TEST_PLAN_REPORT_BUG_TABLE_DETAIL_GROUP = 'testPlanReportBugDetailTableGroup', } diff --git a/frontend/src/views/case-management/components/linkDefectDrawer.vue b/frontend/src/views/case-management/components/linkDefectDrawer.vue index 5d774d53b9..d4debb0859 100644 --- a/frontend/src/views/case-management/components/linkDefectDrawer.vue +++ b/frontend/src/views/case-management/components/linkDefectDrawer.vue @@ -263,6 +263,7 @@ () => props.visible, (val) => { if (val) { + keyword.value = ''; currentCaseTable.value.resetSelector(); getFetch(); } diff --git a/frontend/src/views/test-plan/report/detail/component/system-card/apiAndScenarioTable.vue b/frontend/src/views/test-plan/report/detail/component/system-card/apiAndScenarioTable.vue index c2eab4925f..08ea319282 100644 --- a/frontend/src/views/test-plan/report/detail/component/system-card/apiAndScenarioTable.vue +++ b/frontend/src/views/test-plan/report/detail/component/system-card/apiAndScenarioTable.vue @@ -194,10 +194,10 @@ }; const tableKey = computed(() => { - if (isGroup.value) { - return keyMap.GROUP[props.activeType]; + if (props.isPreview) { + return isGroup.value ? keyMap.GROUP[props.activeType] : keyMap.TEST_PLAN[props.activeType]; } - return keyMap.TEST_PLAN[props.activeType]; + return TableKeyEnum.TEST_PLAN_REPORT_API_TABLE_NOT_PREVIEW; }); const useApiTable = useTable(getApiPage, { diff --git a/frontend/src/views/test-plan/report/detail/component/system-card/bugTable.vue b/frontend/src/views/test-plan/report/detail/component/system-card/bugTable.vue index 08933e3c00..35e863552e 100644 --- a/frontend/src/views/test-plan/report/detail/component/system-card/bugTable.vue +++ b/frontend/src/views/test-plan/report/detail/component/system-card/bugTable.vue @@ -116,11 +116,14 @@ return !props.shareId ? getReportBugList : getReportShareBugList; }; - const tableKey = computed(() => - isGroup.value - ? TableKeyEnum.TEST_PLAN_REPORT_BUG_TABLE_DETAIL_GROUP - : TableKeyEnum.TEST_PLAN_REPORT_BUG_TABLE_DETAIL - ); + const tableKey = computed(() => { + if (props.isPreview) { + return isGroup.value + ? TableKeyEnum.TEST_PLAN_REPORT_BUG_TABLE_DETAIL_GROUP + : TableKeyEnum.TEST_PLAN_REPORT_BUG_TABLE_DETAIL; + } + return TableKeyEnum.TEST_PLAN_REPORT_BUG_TABLE_DETAIL_NOT_PREVIEW; + }); const { propsRes, propsEvent, loadList, setLoadListParams } = useTable(reportBugList(), { tableKey: tableKey.value, scroll: { x: '100%' }, diff --git a/frontend/src/views/test-plan/report/detail/component/system-card/featureCaseTable.vue b/frontend/src/views/test-plan/report/detail/component/system-card/featureCaseTable.vue index 1775e38286..76eb2322cc 100644 --- a/frontend/src/views/test-plan/report/detail/component/system-card/featureCaseTable.vue +++ b/frontend/src/views/test-plan/report/detail/component/system-card/featureCaseTable.vue @@ -203,11 +203,14 @@ return !props.shareId ? getReportFeatureCaseList : getReportShareFeatureCaseList; }; - const tableKey = computed(() => - isGroup.value - ? TableKeyEnum.TEST_PLAN_REPORT_FUNCTIONAL_TABLE_GROUP - : TableKeyEnum.TEST_PLAN_REPORT_FUNCTIONAL_TABLE - ); + const tableKey = computed(() => { + if (props.isPreview) { + return isGroup.value + ? TableKeyEnum.TEST_PLAN_REPORT_FUNCTIONAL_TABLE_GROUP + : TableKeyEnum.TEST_PLAN_REPORT_FUNCTIONAL_TABLE; + } + return TableKeyEnum.TEST_PLAN_REPORT_FUNCTIONAL_TABLE_NOT_PREVIEW; + }); const { propsRes, propsEvent, loadList, setLoadListParams } = useTable(reportFeatureCaseList(), { tableKey: tableKey.value, columns: columns.value,