From 6e6cfa5be0ec38e4a637737568169b2cb7091f85 Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Mon, 17 Feb 2025 16:28:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/routers/modules/staticRouter.ts | 116 +++++++++--------- .../testScript/components/testScriptPopup.vue | 1 - .../src/views/machine/testScript/index.vue | 1 + .../plan/planList/components/devTransfer.vue | 12 +- .../plan/planList/components/planPopup.vue | 6 +- frontend/src/views/plan/planList/index.vue | 5 + 6 files changed, 76 insertions(+), 65 deletions(-) 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/machine/testScript/components/testScriptPopup.vue b/frontend/src/views/machine/testScript/components/testScriptPopup.vue index 808a5c9..c1bb050 100644 --- a/frontend/src/views/machine/testScript/components/testScriptPopup.vue +++ b/frontend/src/views/machine/testScript/components/testScriptPopup.vue @@ -97,7 +97,6 @@ const save = () => {} // 打开弹窗,可能是新增,也可能是编辑 const open = async (sign: string, row: any, currentMode: string, id: string) => { - const result = await getDictTreeByCode({ code: 'Script_Indicator_Items' }) const allOptions = convertToOptions(result.data as Dict.ResDictTree[]) diff --git a/frontend/src/views/machine/testScript/index.vue b/frontend/src/views/machine/testScript/index.vue index ac6e05f..e509b95 100644 --- a/frontend/src/views/machine/testScript/index.vue +++ b/frontend/src/views/machine/testScript/index.vue @@ -152,6 +152,7 @@ const openDialog = (titleType: string, row: Partial = state: { title: '新增检测脚本', row: row, mode: modeStore.currentMode } }) } else { + testScriptPopup.value?.open(titleType, row, modeStore.currentMode, '') } } diff --git a/frontend/src/views/plan/planList/components/devTransfer.vue b/frontend/src/views/plan/planList/components/devTransfer.vue index 7770a8f..5722731 100644 --- a/frontend/src/views/plan/planList/components/devTransfer.vue +++ b/frontend/src/views/plan/planList/components/devTransfer.vue @@ -4,10 +4,10 @@
+ :filter-method="filterMethod" + filter-placeholder="请输入内容搜索" + :data="allData" + :titles="['未绑定设备', '已绑定设备']">