diff --git a/.env.development b/.env.development index 5b0a196..4fbe76a 100644 --- a/.env.development +++ b/.env.development @@ -5,8 +5,8 @@ VUE_APP_TITLE = 共享空间 ENV = 'development' # 共享空间/开发环境 -# VUE_APP_BASE_API = '/dev-api' -VUE_APP_BASE_API = 'http://localhost:8089' +VUE_APP_BASE_API = 'https://testcha.chuangtewl.com/prod-api' +# VUE_APP_BASE_API = 'http://localhost:8089' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/router/index.js b/src/router/index.js index 109d6d8..2d253cf 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -147,6 +147,20 @@ export const dynamicRoutes = [ meta: { title: '用户列表', activeMenu: '/user/user' } } ] + }, + { + path: '/system/deviceDetail', + component: Layout, + hidden: true, + permissions: ['system:dept:list'], + children: [ + { + path: 'index/:deviceId(\\d+)?', // 将参数设置为可选 + component: () => import('@/views/system/device/device_detail'), + name: 'Data', + meta: { title: '设备详情', activeMenu: '/system/device' } + } + ] }, { path: '/system/device/sn', diff --git a/src/views/system/device/device_detail.vue b/src/views/system/device/device_detail.vue new file mode 100644 index 0000000..7f59c61 --- /dev/null +++ b/src/views/system/device/device_detail.vue @@ -0,0 +1,460 @@ + + + + + \ No newline at end of file diff --git a/src/views/system/device/index.vue b/src/views/system/device/index.vue index a786311..9347230 100644 --- a/src/views/system/device/index.vue +++ b/src/views/system/device/index.vue @@ -2,65 +2,37 @@
- + - + - + - + - - + + - - + + - - + + @@ -71,76 +43,63 @@ - 新增 + 新增 - 修改 + 修改 - 删除 + 删除 - 导出 + 导出 - + + + + + + + + + + + + + - +} + +.nav-container { + display: flex; + justify-content: center; +} + +.nav-menu { + margin: 0; + padding: 0; +} + +.el-dialog__body { + padding: 10px 20px; +} + +.el-dialog:not(.is-fullscreen) { + margin-top: 1vh !important; +} + +.el-dialog__header { + padding: 10px 20px !important; +} + \ No newline at end of file