diff --git a/.env.production b/.env.production index ff5a80a..0fca4ad 100644 --- a/.env.production +++ b/.env.production @@ -3,9 +3,9 @@ # 页面标题 VITE_APP_TITLE = 计量业务系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:21609 +# VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.83.213:8085 -# VITE_APP_API_BASEURL = http://192.168.2.96:8085 +VITE_APP_API_BASEURL = http://192.168.2.96:8085 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index ff5a80a..0fca4ad 100644 --- a/.env.production +++ b/.env.production @@ -3,9 +3,9 @@ # 页面标题 VITE_APP_TITLE = 计量业务系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:21609 +# VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.83.213:8085 -# VITE_APP_API_BASEURL = http://192.168.2.96:8085 +VITE_APP_API_BASEURL = http://192.168.2.96:8085 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/src/router/modules/workbench.ts b/src/router/modules/workbench.ts index 9d180ea..94ee81a 100644 --- a/src/router/modules/workbench.ts +++ b/src/router/modules/workbench.ts @@ -12,27 +12,32 @@ title: '总工作台', icon: 'icon-workbench', }, - }, - { - path: '/comprehensive', - component: Layout, - // redirect: '/comprehensive/approve', - name: 'Comprehensive', - meta: { - title: '计量综合系统', - icon: 'icon-zh', - }, children: [ { + path: 'bench', + name: 'Bench', + meta: { + title: '总工作台', + sidebar: true, + activeMenu: '/workbench', + }, + }, + { path: 'approve', name: 'Approve', - // component: () => import('@/views/business/board/depComprehensive/list.vue'), meta: { title: '审批提醒', - // auth: '/device/bench', sidebar: true, - // breadcrumb: true, - activeMenu: '/comprehensive', + activeMenu: '/workbench', + }, + }, + { + path: 'workList', + name: 'workList', + meta: { + title: '工作提醒', + sidebar: true, + activeMenu: '/workbench', }, }, ], diff --git a/.env.production b/.env.production index ff5a80a..0fca4ad 100644 --- a/.env.production +++ b/.env.production @@ -3,9 +3,9 @@ # 页面标题 VITE_APP_TITLE = 计量业务系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:21609 +# VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.83.213:8085 -# VITE_APP_API_BASEURL = http://192.168.2.96:8085 +VITE_APP_API_BASEURL = http://192.168.2.96:8085 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/src/router/modules/workbench.ts b/src/router/modules/workbench.ts index 9d180ea..94ee81a 100644 --- a/src/router/modules/workbench.ts +++ b/src/router/modules/workbench.ts @@ -12,27 +12,32 @@ title: '总工作台', icon: 'icon-workbench', }, - }, - { - path: '/comprehensive', - component: Layout, - // redirect: '/comprehensive/approve', - name: 'Comprehensive', - meta: { - title: '计量综合系统', - icon: 'icon-zh', - }, children: [ { + path: 'bench', + name: 'Bench', + meta: { + title: '总工作台', + sidebar: true, + activeMenu: '/workbench', + }, + }, + { path: 'approve', name: 'Approve', - // component: () => import('@/views/business/board/depComprehensive/list.vue'), meta: { title: '审批提醒', - // auth: '/device/bench', sidebar: true, - // breadcrumb: true, - activeMenu: '/comprehensive', + activeMenu: '/workbench', + }, + }, + { + path: 'workList', + name: 'workList', + meta: { + title: '工作提醒', + sidebar: true, + activeMenu: '/workbench', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index fe03729..ed49855 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -43,6 +43,7 @@ const systemRoutes: Route.recordRaw[] = [ { path: '/workbench', + redirect: '/workbench/bench', component: () => import('@/layouts/workBenchLayouts.vue'), meta: { title: '总工作台', @@ -50,7 +51,7 @@ }, children: [ { - path: '', + path: 'bench', name: 'workbench', component: () => import('@/views/workbench.vue'), meta: { @@ -58,18 +59,6 @@ breadcrumb: false, }, }, - ], - }, - { - path: '/comprehensive', - component: () => import('@/layouts/workBenchLayouts.vue'), - redirect: '/comprehensive/approve', - name: 'Comprehensive', - meta: { - title: '计量综合系统', - icon: 'icon-business-system', - }, - children: [ { path: 'approve', name: 'Approve', @@ -78,6 +67,16 @@ title: '审批提醒', sidebar: true, breadcrumb: true, + }, + }, + { + path: 'workList', + name: 'WorkList', + component: () => import('@/views/workbench/workList.vue'), + meta: { + title: '工作提醒', + sidebar: true, + breadcrumb: true, // activeMenu: '/comprehensive', }, }, diff --git a/.env.production b/.env.production index ff5a80a..0fca4ad 100644 --- a/.env.production +++ b/.env.production @@ -3,9 +3,9 @@ # 页面标题 VITE_APP_TITLE = 计量业务系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:21609 +# VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.83.213:8085 -# VITE_APP_API_BASEURL = http://192.168.2.96:8085 +VITE_APP_API_BASEURL = http://192.168.2.96:8085 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/src/router/modules/workbench.ts b/src/router/modules/workbench.ts index 9d180ea..94ee81a 100644 --- a/src/router/modules/workbench.ts +++ b/src/router/modules/workbench.ts @@ -12,27 +12,32 @@ title: '总工作台', icon: 'icon-workbench', }, - }, - { - path: '/comprehensive', - component: Layout, - // redirect: '/comprehensive/approve', - name: 'Comprehensive', - meta: { - title: '计量综合系统', - icon: 'icon-zh', - }, children: [ { + path: 'bench', + name: 'Bench', + meta: { + title: '总工作台', + sidebar: true, + activeMenu: '/workbench', + }, + }, + { path: 'approve', name: 'Approve', - // component: () => import('@/views/business/board/depComprehensive/list.vue'), meta: { title: '审批提醒', - // auth: '/device/bench', sidebar: true, - // breadcrumb: true, - activeMenu: '/comprehensive', + activeMenu: '/workbench', + }, + }, + { + path: 'workList', + name: 'workList', + meta: { + title: '工作提醒', + sidebar: true, + activeMenu: '/workbench', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index fe03729..ed49855 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -43,6 +43,7 @@ const systemRoutes: Route.recordRaw[] = [ { path: '/workbench', + redirect: '/workbench/bench', component: () => import('@/layouts/workBenchLayouts.vue'), meta: { title: '总工作台', @@ -50,7 +51,7 @@ }, children: [ { - path: '', + path: 'bench', name: 'workbench', component: () => import('@/views/workbench.vue'), meta: { @@ -58,18 +59,6 @@ breadcrumb: false, }, }, - ], - }, - { - path: '/comprehensive', - component: () => import('@/layouts/workBenchLayouts.vue'), - redirect: '/comprehensive/approve', - name: 'Comprehensive', - meta: { - title: '计量综合系统', - icon: 'icon-business-system', - }, - children: [ { path: 'approve', name: 'Approve', @@ -78,6 +67,16 @@ title: '审批提醒', sidebar: true, breadcrumb: true, + }, + }, + { + path: 'workList', + name: 'WorkList', + component: () => import('@/views/workbench/workList.vue'), + meta: { + title: '工作提醒', + sidebar: true, + breadcrumb: true, // activeMenu: '/comprehensive', }, }, diff --git a/src/store/modules/websocket.ts b/src/store/modules/websocket.ts index 75232c3..2609e4a 100644 --- a/src/store/modules/websocket.ts +++ b/src/store/modules/websocket.ts @@ -5,8 +5,8 @@ 'websocket', { state: () => ({ - wsUrl: `ws://${import.meta.env.VITE_APP_API_BASEURL.split('://')[1]}/websocket/`, - // wsUrl: 'ws://192.168.2.96:8085/websocket/', + // wsUrl: `ws://${import.meta.env.VITE_APP_API_BASEURL.split('://')[1]}/websocket/`, + wsUrl: 'ws://192.168.2.96:8085/websocket/', websocket: null, // ws连接 wsStatus: false, // websocket连接状态 true为连接 wsPingTimer: null, // 心跳定时器 diff --git a/.env.production b/.env.production index ff5a80a..0fca4ad 100644 --- a/.env.production +++ b/.env.production @@ -3,9 +3,9 @@ # 页面标题 VITE_APP_TITLE = 计量业务系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:21609 +# VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.83.213:8085 -# VITE_APP_API_BASEURL = http://192.168.2.96:8085 +VITE_APP_API_BASEURL = http://192.168.2.96:8085 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/src/router/modules/workbench.ts b/src/router/modules/workbench.ts index 9d180ea..94ee81a 100644 --- a/src/router/modules/workbench.ts +++ b/src/router/modules/workbench.ts @@ -12,27 +12,32 @@ title: '总工作台', icon: 'icon-workbench', }, - }, - { - path: '/comprehensive', - component: Layout, - // redirect: '/comprehensive/approve', - name: 'Comprehensive', - meta: { - title: '计量综合系统', - icon: 'icon-zh', - }, children: [ { + path: 'bench', + name: 'Bench', + meta: { + title: '总工作台', + sidebar: true, + activeMenu: '/workbench', + }, + }, + { path: 'approve', name: 'Approve', - // component: () => import('@/views/business/board/depComprehensive/list.vue'), meta: { title: '审批提醒', - // auth: '/device/bench', sidebar: true, - // breadcrumb: true, - activeMenu: '/comprehensive', + activeMenu: '/workbench', + }, + }, + { + path: 'workList', + name: 'workList', + meta: { + title: '工作提醒', + sidebar: true, + activeMenu: '/workbench', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index fe03729..ed49855 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -43,6 +43,7 @@ const systemRoutes: Route.recordRaw[] = [ { path: '/workbench', + redirect: '/workbench/bench', component: () => import('@/layouts/workBenchLayouts.vue'), meta: { title: '总工作台', @@ -50,7 +51,7 @@ }, children: [ { - path: '', + path: 'bench', name: 'workbench', component: () => import('@/views/workbench.vue'), meta: { @@ -58,18 +59,6 @@ breadcrumb: false, }, }, - ], - }, - { - path: '/comprehensive', - component: () => import('@/layouts/workBenchLayouts.vue'), - redirect: '/comprehensive/approve', - name: 'Comprehensive', - meta: { - title: '计量综合系统', - icon: 'icon-business-system', - }, - children: [ { path: 'approve', name: 'Approve', @@ -78,6 +67,16 @@ title: '审批提醒', sidebar: true, breadcrumb: true, + }, + }, + { + path: 'workList', + name: 'WorkList', + component: () => import('@/views/workbench/workList.vue'), + meta: { + title: '工作提醒', + sidebar: true, + breadcrumb: true, // activeMenu: '/comprehensive', }, }, diff --git a/src/store/modules/websocket.ts b/src/store/modules/websocket.ts index 75232c3..2609e4a 100644 --- a/src/store/modules/websocket.ts +++ b/src/store/modules/websocket.ts @@ -5,8 +5,8 @@ 'websocket', { state: () => ({ - wsUrl: `ws://${import.meta.env.VITE_APP_API_BASEURL.split('://')[1]}/websocket/`, - // wsUrl: 'ws://192.168.2.96:8085/websocket/', + // wsUrl: `ws://${import.meta.env.VITE_APP_API_BASEURL.split('://')[1]}/websocket/`, + wsUrl: 'ws://192.168.2.96:8085/websocket/', websocket: null, // ws连接 wsStatus: false, // websocket连接状态 true为连接 wsPingTimer: null, // 心跳定时器 diff --git a/src/views/workbench.vue b/src/views/workbench.vue index ab194c6..9dea24f 100644 --- a/src/views/workbench.vue +++ b/src/views/workbench.vue @@ -251,9 +251,15 @@ }) // ------------------------------------------------------------------------------ }) +const go = () => { + window.open(`https://share.shanhaibi.com/64914aad87721/?token=${localStorage.token}`) +}