diff --git a/frontend/src/router/constants.ts b/frontend/src/router/constants.ts index d440700a17..bb80a6692c 100644 --- a/frontend/src/router/constants.ts +++ b/frontend/src/router/constants.ts @@ -54,3 +54,6 @@ export const NO_PROJECT_ROUTE_NAME = 'no-project'; export const WHITEBOARD_INDEX = 'index'; export const WHITE_LIST_NAME = WHITE_LIST.map((el) => el.name); + +// 全屏无资源页面用于分享全屏的页面 +export const NOT_FOUND_RESOURCE = 'notResourceScreen'; diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 1e9313644a..5952bf26b3 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -3,7 +3,15 @@ import { createRouter, createWebHashHistory } from 'vue-router'; import 'nprogress/nprogress.css'; import createRouteGuard from './guard'; import appRoutes from './routes'; -import { INDEX_ROUTE, INVITE_ROUTE, NO_PROJECT, NO_RESOURCE, NOT_FOUND_ROUTE, REDIRECT_MAIN } from './routes/base'; +import { + INDEX_ROUTE, + INVITE_ROUTE, + NO_PROJECT, + NO_RESOURCE, + NOT_FOUND_RESOURCE, + NOT_FOUND_ROUTE, + REDIRECT_MAIN, +} from './routes/base'; import NProgress from 'nprogress'; // progress bar NProgress.configure({ showSpinner: false }); // NProgress Configuration @@ -26,6 +34,7 @@ const router = createRouter({ ...appRoutes, REDIRECT_MAIN, NOT_FOUND_ROUTE, + NOT_FOUND_RESOURCE, INVITE_ROUTE, NO_PROJECT, NO_RESOURCE, diff --git a/frontend/src/router/routes/base.ts b/frontend/src/router/routes/base.ts index 99a95d7264..c2ff99e38a 100644 --- a/frontend/src/router/routes/base.ts +++ b/frontend/src/router/routes/base.ts @@ -69,3 +69,9 @@ export const NO_PROJECT: RouteRecordRaw = { hideInMenu: true, }, }; + +export const NOT_FOUND_RESOURCE: RouteRecordRaw = { + path: '/notResourceScreen', + name: 'notResourceScreen', + component: () => import('@/views/base/not-resource-screen/not-resource-screen.vue'), +}; diff --git a/frontend/src/views/api-test/report/shareCaseIndex.vue b/frontend/src/views/api-test/report/shareCaseIndex.vue index c483475200..f1913a3e8b 100644 --- a/frontend/src/views/api-test/report/shareCaseIndex.vue +++ b/frontend/src/views/api-test/report/shareCaseIndex.vue @@ -9,7 +9,7 @@ import caseReportCom from './component/caseReportCom.vue'; import { getShareReportInfo, reportCaseDetail } from '@/api/modules/api-test/report'; - import { NO_RESOURCE_ROUTE_NAME } from '@/router/constants'; + import { NOT_FOUND_RESOURCE } from '@/router/constants'; import type { ReportDetail } from '@/models/apiTest/report'; @@ -23,7 +23,7 @@ const res = await getShareReportInfo(route.query.shareId as string); if (res.deleted) { router.push({ - name: NO_RESOURCE_ROUTE_NAME, + name: NOT_FOUND_RESOURCE, }); } else { detail.value = await reportCaseDetail(res.reportId, route.query.shareId as string); diff --git a/frontend/src/views/api-test/report/shareSceneIndex.vue b/frontend/src/views/api-test/report/shareSceneIndex.vue index 9391d885a8..36a09cb747 100644 --- a/frontend/src/views/api-test/report/shareSceneIndex.vue +++ b/frontend/src/views/api-test/report/shareSceneIndex.vue @@ -9,7 +9,7 @@ import ShareCom from './component/scenarioCom.vue'; import { getShareReportInfo, reportScenarioDetail } from '@/api/modules/api-test/report'; - import { NO_RESOURCE_ROUTE_NAME } from '@/router/constants'; + import { NOT_FOUND_RESOURCE } from '@/router/constants'; import type { ReportDetail } from '@/models/apiTest/report'; @@ -22,7 +22,7 @@ const res = await getShareReportInfo(route.query.shareId as string); if (res.deleted) { router.push({ - name: NO_RESOURCE_ROUTE_NAME, + name: NOT_FOUND_RESOURCE, }); } else { detail.value = await reportScenarioDetail(res.reportId, route.query.shareId as string); diff --git a/frontend/src/views/base/not-resource-screen/not-resource-screen.vue b/frontend/src/views/base/not-resource-screen/not-resource-screen.vue new file mode 100644 index 0000000000..938f832d75 --- /dev/null +++ b/frontend/src/views/base/not-resource-screen/not-resource-screen.vue @@ -0,0 +1,55 @@ + + + + + diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabBug/tabDefect.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabBug/tabDefect.vue index f4bdb449c6..d853e2c92a 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabBug/tabDefect.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabBug/tabDefect.vue @@ -540,6 +540,15 @@ } } + watch( + () => props.caseId, + (val) => { + if (val) { + getFetch(); + } + } + ); + onMounted(() => { getFetch(); initFilterOptions(); diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabCase/tabCaseTable.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabCase/tabCaseTable.vue index 84bd8e9c1a..8b9c2f2e7b 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabCase/tabCaseTable.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabCase/tabCaseTable.vue @@ -273,7 +273,16 @@ getFetch(); }, 100); - onMounted(async () => { + watch( + () => props.caseId, + (val) => { + if (val) { + getFetch(); + } + } + ); + + onMounted(() => { getFetch(); }); diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabCaseReview.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabCaseReview.vue index ecf5806d21..432c35dbe8 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabCaseReview.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabCaseReview.vue @@ -143,6 +143,15 @@ }); } + watch( + () => props.caseId, + (val) => { + if (val) { + initData(); + } + } + ); + onMounted(() => { initData(); }); diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabChangeHistory.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabChangeHistory.vue index bbe64160a8..6fb2d17863 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabChangeHistory.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabChangeHistory.vue @@ -255,6 +255,15 @@ // } // ); + watch( + () => props.caseId, + (val) => { + if (val) { + initData(); + } + } + ); + onMounted(() => { doCheckIsTip(); initData(); diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabComment/tabCommentIndex.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabComment/tabCommentIndex.vue index be05459ef5..30b858d74d 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabComment/tabCommentIndex.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabComment/tabCommentIndex.vue @@ -228,6 +228,15 @@ return data; } + watch( + () => props.caseId, + (val) => { + if (val) { + getAllCommentList(); + } + } + ); + onMounted(() => { getAllCommentList(); }); diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDemand/associatedDemandTable.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDemand/associatedDemandTable.vue index b321fddba8..a1fb00a9bf 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDemand/associatedDemandTable.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDemand/associatedDemandTable.vue @@ -171,6 +171,15 @@ } } ); + + watch( + () => props.funParams.caseId, + (val) => { + if (val) { + initData(); + } + } + ); diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDependency/tabDependency.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDependency/tabDependency.vue index 4e5a996227..f644f42cf6 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDependency/tabDependency.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDependency/tabDependency.vue @@ -235,6 +235,15 @@ // } // ); + watch( + () => props.caseId, + (val) => { + if (val) { + initData(); + } + } + ); + onMounted(() => { initData(); }); diff --git a/frontend/src/views/project-management/environmental/components/envParams/HttpTab.vue b/frontend/src/views/project-management/environmental/components/envParams/HttpTab.vue index a5a914fc35..4af739fdb9 100644 --- a/frontend/src/views/project-management/environmental/components/envParams/HttpTab.vue +++ b/frontend/src/views/project-management/environmental/components/envParams/HttpTab.vue @@ -5,7 +5,7 @@ t('project.environmental.httpNoWarning') }} -
+
-
+