diff --git a/frontend/src/api/plan/plan.ts b/frontend/src/api/plan/plan.ts index 62418db..9fcd542 100644 --- a/frontend/src/api/plan/plan.ts +++ b/frontend/src/api/plan/plan.ts @@ -86,7 +86,7 @@ export const downloadDevData = (params: Device.ReqDevReportParams) => { return http.download(`/report/downloadReport`, params) } -export const staticsAnalyse = (params: { planId: string }) => { - return http.download(`/adPlan/analyse?planId=${params.planId}`) +export const staticsAnalyse = (params: { id: string[] }) => { + return http.download('/adPlan/analyse', params) } diff --git a/frontend/src/routers/modules/staticRouter.ts b/frontend/src/routers/modules/staticRouter.ts index eb0a877..0062fc8 100644 --- a/frontend/src/routers/modules/staticRouter.ts +++ b/frontend/src/routers/modules/staticRouter.ts @@ -27,64 +27,64 @@ export const staticRouter: RouteRecordRaw[] = [ name: "plan", redirect: "/plan/planList", children: [ - { - path: "/plan/planList", - name: "planList", - component: () => import("@/views/plan/planList/index.vue"), - meta: { - title: "检测计划列表", - icon: "List", - isLink: "", - isHide: false, - isFull: false, - isAffix: false, - isKeepAlive: true,//缓存改成true - }, - }, - { - path: "/plan/singlePlanList", - name: "singlePlanList", - component: () => import("@/views/plan/singlePlanList/index.vue"), - meta: { - title: "单个计划列表", - icon: "List", - isLink: "", - isHide: false, - isFull: false, - isAffix: false, - isKeepAlive: true, - }, - }, - { - path: "/plan/preTest", - name: "preTest", - component: () => import("@/views/plan/preTest/index.vue"), - meta: { - title: "预检测", - icon: "List", - isLink: "", - isHide: false, - isFull: false, - isAffix: false, - isKeepAlive: false, - }, - }, - { - path: "/plan/autoTest", - name: "autoTest", - component: () => import("@/views/plan/autoTest/index.vue"), - meta: { - title: "自动检测", - icon: "List", - isLink: "", - hideTab:true, - parentPath:'/system/proTable', - isHide: false, - isFull: false, - isAffix: false, - isKeepAlive: true, - }, - }, + // { + // path: "/plan/planList", + // name: "planList", + // component: () => import("@/views/plan/planList/index.vue"), + // meta: { + // title: "检测计划列表", + // icon: "List", + // isLink: "", + // isHide: false, + // isFull: false, + // isAffix: false, + // isKeepAlive: true,//缓存改成true + // }, + // }, + // { + // path: "/plan/singlePlanList", + // name: "singlePlanList", + // component: () => import("@/views/plan/singlePlanList/index.vue"), + // meta: { + // title: "单个计划列表", + // icon: "List", + // isLink: "", + // isHide: false, + // isFull: false, + // isAffix: false, + // isKeepAlive: true, + // }, + // }, + // { + // path: "/plan/preTest", + // name: "preTest", + // component: () => import("@/views/plan/preTest/index.vue"), + // meta: { + // title: "预检测", + // icon: "List", + // isLink: "", + // isHide: false, + // isFull: false, + // isAffix: false, + // isKeepAlive: false, + // }, + // }, + // { + // path: "/plan/autoTest", + // name: "autoTest", + // component: () => import("@/views/plan/autoTest/index.vue"), + // meta: { + // title: "自动检测", + // icon: "List", + // isLink: "", + // hideTab:true, + // parentPath:'/system/proTable', + // isHide: false, + // isFull: false, + // isAffix: false, + // isKeepAlive: true, + // }, + // }, { path: "/machine/testScriptAdd", name: "testScriptAdd", diff --git a/frontend/src/views/home/components/test.vue b/frontend/src/views/home/components/test.vue index 2f327b8..8826f9e 100644 --- a/frontend/src/views/home/components/test.vue +++ b/frontend/src/views/home/components/test.vue @@ -2,10 +2,17 @@
+ + + + + 初始化中 + + 继续检测 +
检测用时:{{ timeView }}
检测项进度
@@ -143,7 +151,7 @@