From b60a50dca557482ba2c9dfbea4f58c223e6e7eaf Mon Sep 17 00:00:00 2001 From: Lxq <19852720163@163.com> Date: Thu, 18 Dec 2025 15:15:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E7=95=8C=E9=9D=A2+=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rc_autoplc_front/.env.development | 2 +- rc_autoplc_front/.env.production | 2 +- rc_autoplc_front/src/api/position.ts | 2 +- rc_autoplc_front/src/router/index.ts | 50 +-- rc_autoplc_front/src/views/Layout.vue | 191 ++++++++++ .../src/views/manage-log/index.vue | 336 +++++++++--------- 6 files changed, 383 insertions(+), 200 deletions(-) create mode 100644 rc_autoplc_front/src/views/Layout.vue diff --git a/rc_autoplc_front/.env.development b/rc_autoplc_front/.env.development index 8aaa774..4d37822 100644 --- a/rc_autoplc_front/.env.development +++ b/rc_autoplc_front/.env.development @@ -1 +1 @@ -VITE_API_URL=http://192.168.110.204:9090 +VITE_API_URL=http://223.71.122.54:9090 diff --git a/rc_autoplc_front/.env.production b/rc_autoplc_front/.env.production index 8aaa774..4d37822 100644 --- a/rc_autoplc_front/.env.production +++ b/rc_autoplc_front/.env.production @@ -1 +1 @@ -VITE_API_URL=http://192.168.110.204:9090 +VITE_API_URL=http://223.71.122.54:9090 diff --git a/rc_autoplc_front/src/api/position.ts b/rc_autoplc_front/src/api/position.ts index 50053d7..c131d2a 100644 --- a/rc_autoplc_front/src/api/position.ts +++ b/rc_autoplc_front/src/api/position.ts @@ -25,7 +25,7 @@ export function positionupd(data: any) { export function positionlist(data: any) { return request({ - url: '/position/listPpage', + url: '/position/listPage', method: 'get', params: data, }) diff --git a/rc_autoplc_front/src/router/index.ts b/rc_autoplc_front/src/router/index.ts index f1a2835..ab5d519 100644 --- a/rc_autoplc_front/src/router/index.ts +++ b/rc_autoplc_front/src/router/index.ts @@ -5,28 +5,34 @@ const router = createRouter({ routes: [ { path: '/', - name: 'user', - component: () => import('../views/user/index.vue'), - }, - { - path: '/role', - name: 'role', - component: () => import('../views/role/index.vue'), - }, - { - path: '/department', - name: 'department', - component: () => import('../views/department/index.vue'), - }, - { - path: '/position', - name: 'position', - component: () => import('../views/position/index.vue'), - }, - { - path: '/manage-log', - name: 'manage-log', - component: () => import('../views/manage-log/index.vue'), + component: () => import('../views/Layout.vue'), + children: [ + { + path: '/user', + name: 'user', + component: () => import('../views/user/index.vue'), + }, + { + path: '/role', + name: 'role', + component: () => import('../views/role/index.vue'), + }, + { + path: '/department', + name: 'department', + component: () => import('../views/department/index.vue'), + }, + { + path: '/position', + name: 'position', + component: () => import('../views/position/index.vue'), + }, + { + path: '/manage-log', + name: 'manage-log', + component: () => import('../views/manage-log/index.vue'), + }, + ], }, ], }) diff --git a/rc_autoplc_front/src/views/Layout.vue b/rc_autoplc_front/src/views/Layout.vue new file mode 100644 index 0000000..df964a6 --- /dev/null +++ b/rc_autoplc_front/src/views/Layout.vue @@ -0,0 +1,191 @@ + + + + + + diff --git a/rc_autoplc_front/src/views/manage-log/index.vue b/rc_autoplc_front/src/views/manage-log/index.vue index d662b3b..8451ae8 100644 --- a/rc_autoplc_front/src/views/manage-log/index.vue +++ b/rc_autoplc_front/src/views/manage-log/index.vue @@ -1,20 +1,28 @@