diff --git a/.env.development b/.env.development index 08e52d3..f38eac0 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.development b/.env.development index 08e52d3..f38eac0 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index aac9caa..b436983 100644 --- a/.env.production +++ b/.env.production @@ -3,7 +3,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.development b/.env.development index 08e52d3..f38eac0 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index aac9caa..b436983 100644 --- a/.env.production +++ b/.env.production @@ -3,7 +3,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/src/router/modules/alarm.ts b/src/router/modules/alarm.ts new file mode 100644 index 0000000..8d17114 --- /dev/null +++ b/src/router/modules/alarm.ts @@ -0,0 +1,33 @@ +// 报警管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/alarm', + component: Layout, + redirect: '/alarm/alarmlist', + name: 'alarm', + meta: { + title: '报警管理', + icon: 'ep:key', + auth: '/alarm', + }, + children: [ + { + path: 'alarmlist', + name: 'alarmlist', + component: () => import('@/views/alarm/index.vue'), + meta: { + title: '报警管理', + auth: '/alarm', + sidebar: false, + breadcrumb: true, + activeMenu: '/alarm', + }, + }, + ], + }, +] + +export default routes diff --git a/.env.development b/.env.development index 08e52d3..f38eac0 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index aac9caa..b436983 100644 --- a/.env.production +++ b/.env.production @@ -3,7 +3,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/src/router/modules/alarm.ts b/src/router/modules/alarm.ts new file mode 100644 index 0000000..8d17114 --- /dev/null +++ b/src/router/modules/alarm.ts @@ -0,0 +1,33 @@ +// 报警管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/alarm', + component: Layout, + redirect: '/alarm/alarmlist', + name: 'alarm', + meta: { + title: '报警管理', + icon: 'ep:key', + auth: '/alarm', + }, + children: [ + { + path: 'alarmlist', + name: 'alarmlist', + component: () => import('@/views/alarm/index.vue'), + meta: { + title: '报警管理', + auth: '/alarm', + sidebar: false, + breadcrumb: true, + activeMenu: '/alarm', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/dashboard.ts b/src/router/modules/dashboard.ts new file mode 100644 index 0000000..b52526b --- /dev/null +++ b/src/router/modules/dashboard.ts @@ -0,0 +1,33 @@ +// 首页看板 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/dashboard', + component: Layout, + redirect: '/dashboard/board', + name: 'Dashboard', + meta: { + title: '首页看板', + icon: 'ep:key', + auth: '/dashboard', + }, + children: [ + { + path: 'board', + name: 'board', + component: () => import('@/views/dashboard/index.vue'), + meta: { + title: '首页看板', + auth: '/dashboard', + sidebar: false, + breadcrumb: true, + activeMenu: '/dashboard', + }, + }, + ], + }, +] + +export default routes diff --git a/.env.development b/.env.development index 08e52d3..f38eac0 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index aac9caa..b436983 100644 --- a/.env.production +++ b/.env.production @@ -3,7 +3,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/src/router/modules/alarm.ts b/src/router/modules/alarm.ts new file mode 100644 index 0000000..8d17114 --- /dev/null +++ b/src/router/modules/alarm.ts @@ -0,0 +1,33 @@ +// 报警管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/alarm', + component: Layout, + redirect: '/alarm/alarmlist', + name: 'alarm', + meta: { + title: '报警管理', + icon: 'ep:key', + auth: '/alarm', + }, + children: [ + { + path: 'alarmlist', + name: 'alarmlist', + component: () => import('@/views/alarm/index.vue'), + meta: { + title: '报警管理', + auth: '/alarm', + sidebar: false, + breadcrumb: true, + activeMenu: '/alarm', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/dashboard.ts b/src/router/modules/dashboard.ts new file mode 100644 index 0000000..b52526b --- /dev/null +++ b/src/router/modules/dashboard.ts @@ -0,0 +1,33 @@ +// 首页看板 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/dashboard', + component: Layout, + redirect: '/dashboard/board', + name: 'Dashboard', + meta: { + title: '首页看板', + icon: 'ep:key', + auth: '/dashboard', + }, + children: [ + { + path: 'board', + name: 'board', + component: () => import('@/views/dashboard/index.vue'), + meta: { + title: '首页看板', + auth: '/dashboard', + sidebar: false, + breadcrumb: true, + activeMenu: '/dashboard', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts new file mode 100644 index 0000000..483d664 --- /dev/null +++ b/src/router/modules/device.ts @@ -0,0 +1,33 @@ +// 设备管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/device', + component: Layout, + redirect: '/device/devicelist', + name: 'device', + meta: { + title: '设备管理', + icon: 'ep:key', + auth: '/device', + }, + children: [ + { + path: 'devicelist', + name: 'devicelist', + component: () => import('@/views/device/index.vue'), + meta: { + title: '设备管理', + auth: '/device', + sidebar: false, + breadcrumb: true, + activeMenu: '/device', + }, + }, + ], + }, +] + +export default routes diff --git a/.env.development b/.env.development index 08e52d3..f38eac0 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index aac9caa..b436983 100644 --- a/.env.production +++ b/.env.production @@ -3,7 +3,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/src/router/modules/alarm.ts b/src/router/modules/alarm.ts new file mode 100644 index 0000000..8d17114 --- /dev/null +++ b/src/router/modules/alarm.ts @@ -0,0 +1,33 @@ +// 报警管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/alarm', + component: Layout, + redirect: '/alarm/alarmlist', + name: 'alarm', + meta: { + title: '报警管理', + icon: 'ep:key', + auth: '/alarm', + }, + children: [ + { + path: 'alarmlist', + name: 'alarmlist', + component: () => import('@/views/alarm/index.vue'), + meta: { + title: '报警管理', + auth: '/alarm', + sidebar: false, + breadcrumb: true, + activeMenu: '/alarm', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/dashboard.ts b/src/router/modules/dashboard.ts new file mode 100644 index 0000000..b52526b --- /dev/null +++ b/src/router/modules/dashboard.ts @@ -0,0 +1,33 @@ +// 首页看板 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/dashboard', + component: Layout, + redirect: '/dashboard/board', + name: 'Dashboard', + meta: { + title: '首页看板', + icon: 'ep:key', + auth: '/dashboard', + }, + children: [ + { + path: 'board', + name: 'board', + component: () => import('@/views/dashboard/index.vue'), + meta: { + title: '首页看板', + auth: '/dashboard', + sidebar: false, + breadcrumb: true, + activeMenu: '/dashboard', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts new file mode 100644 index 0000000..483d664 --- /dev/null +++ b/src/router/modules/device.ts @@ -0,0 +1,33 @@ +// 设备管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/device', + component: Layout, + redirect: '/device/devicelist', + name: 'device', + meta: { + title: '设备管理', + icon: 'ep:key', + auth: '/device', + }, + children: [ + { + path: 'devicelist', + name: 'devicelist', + component: () => import('@/views/device/index.vue'), + meta: { + title: '设备管理', + auth: '/device', + sidebar: false, + breadcrumb: true, + activeMenu: '/device', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/person.ts b/src/router/modules/person.ts new file mode 100644 index 0000000..53d011c --- /dev/null +++ b/src/router/modules/person.ts @@ -0,0 +1,33 @@ +// 人员管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/person', + component: Layout, + redirect: '/person/personlist', + name: 'person', + meta: { + title: '人员管理', + icon: 'ep:key', + auth: '/person', + }, + children: [ + { + path: 'personlist', + name: 'personlist', + component: () => import('@/views/person/index.vue'), + meta: { + title: '人员管理', + auth: '/person', + sidebar: false, + breadcrumb: true, + activeMenu: '/person', + }, + }, + ], + }, +] + +export default routes diff --git a/.env.development b/.env.development index 08e52d3..f38eac0 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index aac9caa..b436983 100644 --- a/.env.production +++ b/.env.production @@ -3,7 +3,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/src/router/modules/alarm.ts b/src/router/modules/alarm.ts new file mode 100644 index 0000000..8d17114 --- /dev/null +++ b/src/router/modules/alarm.ts @@ -0,0 +1,33 @@ +// 报警管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/alarm', + component: Layout, + redirect: '/alarm/alarmlist', + name: 'alarm', + meta: { + title: '报警管理', + icon: 'ep:key', + auth: '/alarm', + }, + children: [ + { + path: 'alarmlist', + name: 'alarmlist', + component: () => import('@/views/alarm/index.vue'), + meta: { + title: '报警管理', + auth: '/alarm', + sidebar: false, + breadcrumb: true, + activeMenu: '/alarm', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/dashboard.ts b/src/router/modules/dashboard.ts new file mode 100644 index 0000000..b52526b --- /dev/null +++ b/src/router/modules/dashboard.ts @@ -0,0 +1,33 @@ +// 首页看板 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/dashboard', + component: Layout, + redirect: '/dashboard/board', + name: 'Dashboard', + meta: { + title: '首页看板', + icon: 'ep:key', + auth: '/dashboard', + }, + children: [ + { + path: 'board', + name: 'board', + component: () => import('@/views/dashboard/index.vue'), + meta: { + title: '首页看板', + auth: '/dashboard', + sidebar: false, + breadcrumb: true, + activeMenu: '/dashboard', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts new file mode 100644 index 0000000..483d664 --- /dev/null +++ b/src/router/modules/device.ts @@ -0,0 +1,33 @@ +// 设备管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/device', + component: Layout, + redirect: '/device/devicelist', + name: 'device', + meta: { + title: '设备管理', + icon: 'ep:key', + auth: '/device', + }, + children: [ + { + path: 'devicelist', + name: 'devicelist', + component: () => import('@/views/device/index.vue'), + meta: { + title: '设备管理', + auth: '/device', + sidebar: false, + breadcrumb: true, + activeMenu: '/device', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/person.ts b/src/router/modules/person.ts new file mode 100644 index 0000000..53d011c --- /dev/null +++ b/src/router/modules/person.ts @@ -0,0 +1,33 @@ +// 人员管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/person', + component: Layout, + redirect: '/person/personlist', + name: 'person', + meta: { + title: '人员管理', + icon: 'ep:key', + auth: '/person', + }, + children: [ + { + path: 'personlist', + name: 'personlist', + component: () => import('@/views/person/index.vue'), + meta: { + title: '人员管理', + auth: '/person', + sidebar: false, + breadcrumb: true, + activeMenu: '/person', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/scene.ts b/src/router/modules/scene.ts new file mode 100644 index 0000000..65921ab --- /dev/null +++ b/src/router/modules/scene.ts @@ -0,0 +1,33 @@ +// 现场管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/scene', + component: Layout, + redirect: '/scene/scenelist', + name: 'Scene', + meta: { + title: '现场管理', + icon: 'ep:key', + auth: '/scene', + }, + children: [ + { + path: 'scenelist', + name: 'scenelist', + component: () => import('@/views/scene/index.vue'), + meta: { + title: '现场管理', + auth: '/scene', + sidebar: false, + breadcrumb: true, + activeMenu: '/scene', + }, + }, + ], + }, +] + +export default routes diff --git a/.env.development b/.env.development index 08e52d3..f38eac0 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index aac9caa..b436983 100644 --- a/.env.production +++ b/.env.production @@ -3,7 +3,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/src/router/modules/alarm.ts b/src/router/modules/alarm.ts new file mode 100644 index 0000000..8d17114 --- /dev/null +++ b/src/router/modules/alarm.ts @@ -0,0 +1,33 @@ +// 报警管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/alarm', + component: Layout, + redirect: '/alarm/alarmlist', + name: 'alarm', + meta: { + title: '报警管理', + icon: 'ep:key', + auth: '/alarm', + }, + children: [ + { + path: 'alarmlist', + name: 'alarmlist', + component: () => import('@/views/alarm/index.vue'), + meta: { + title: '报警管理', + auth: '/alarm', + sidebar: false, + breadcrumb: true, + activeMenu: '/alarm', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/dashboard.ts b/src/router/modules/dashboard.ts new file mode 100644 index 0000000..b52526b --- /dev/null +++ b/src/router/modules/dashboard.ts @@ -0,0 +1,33 @@ +// 首页看板 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/dashboard', + component: Layout, + redirect: '/dashboard/board', + name: 'Dashboard', + meta: { + title: '首页看板', + icon: 'ep:key', + auth: '/dashboard', + }, + children: [ + { + path: 'board', + name: 'board', + component: () => import('@/views/dashboard/index.vue'), + meta: { + title: '首页看板', + auth: '/dashboard', + sidebar: false, + breadcrumb: true, + activeMenu: '/dashboard', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts new file mode 100644 index 0000000..483d664 --- /dev/null +++ b/src/router/modules/device.ts @@ -0,0 +1,33 @@ +// 设备管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/device', + component: Layout, + redirect: '/device/devicelist', + name: 'device', + meta: { + title: '设备管理', + icon: 'ep:key', + auth: '/device', + }, + children: [ + { + path: 'devicelist', + name: 'devicelist', + component: () => import('@/views/device/index.vue'), + meta: { + title: '设备管理', + auth: '/device', + sidebar: false, + breadcrumb: true, + activeMenu: '/device', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/person.ts b/src/router/modules/person.ts new file mode 100644 index 0000000..53d011c --- /dev/null +++ b/src/router/modules/person.ts @@ -0,0 +1,33 @@ +// 人员管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/person', + component: Layout, + redirect: '/person/personlist', + name: 'person', + meta: { + title: '人员管理', + icon: 'ep:key', + auth: '/person', + }, + children: [ + { + path: 'personlist', + name: 'personlist', + component: () => import('@/views/person/index.vue'), + meta: { + title: '人员管理', + auth: '/person', + sidebar: false, + breadcrumb: true, + activeMenu: '/person', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/scene.ts b/src/router/modules/scene.ts new file mode 100644 index 0000000..65921ab --- /dev/null +++ b/src/router/modules/scene.ts @@ -0,0 +1,33 @@ +// 现场管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/scene', + component: Layout, + redirect: '/scene/scenelist', + name: 'Scene', + meta: { + title: '现场管理', + icon: 'ep:key', + auth: '/scene', + }, + children: [ + { + path: 'scenelist', + name: 'scenelist', + component: () => import('@/views/scene/index.vue'), + meta: { + title: '现场管理', + auth: '/scene', + sidebar: false, + breadcrumb: true, + activeMenu: '/scene', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/routes.ts b/src/router/routes.ts index 6b3a30b..bd209b4 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -1,6 +1,11 @@ import { setupLayouts } from 'virtual:generated-layouts' import generatedRoutes from 'virtual:generated-pages' import systemRoute from './modules/system' +import dashboard from './modules/dashboard' +import scene from './modules/scene' +import device from './modules/device' +import person from './modules/person' +import alarm from './modules/alarm' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' // 固定路由(默认路由) @@ -104,6 +109,56 @@ const asyncRoutes: Route.recordMainRaw[] = [ { meta: { + title: '首页看板', + icon: '', + auth: '/dashboard', + }, + children: [ + ...dashboard, + ], + }, + { + meta: { + title: '现场管理', + icon: '', + auth: '/scene', + }, + children: [ + ...scene, + ], + }, + { + meta: { + title: '设备管理', + icon: '', + auth: '/device', + }, + children: [ + ...device, + ], + }, + { + meta: { + title: '人员管理', + icon: '', + auth: '/person', + }, + children: [ + ...person, + ], + }, + { + meta: { + title: '报警管理', + icon: '', + auth: '/alarm', + }, + children: [ + ...alarm, + ], + }, + { + meta: { title: '系统设置', icon: '', auth: '/system', diff --git a/.env.development b/.env.development index 08e52d3..f38eac0 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index aac9caa..b436983 100644 --- a/.env.production +++ b/.env.production @@ -3,7 +3,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/src/router/modules/alarm.ts b/src/router/modules/alarm.ts new file mode 100644 index 0000000..8d17114 --- /dev/null +++ b/src/router/modules/alarm.ts @@ -0,0 +1,33 @@ +// 报警管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/alarm', + component: Layout, + redirect: '/alarm/alarmlist', + name: 'alarm', + meta: { + title: '报警管理', + icon: 'ep:key', + auth: '/alarm', + }, + children: [ + { + path: 'alarmlist', + name: 'alarmlist', + component: () => import('@/views/alarm/index.vue'), + meta: { + title: '报警管理', + auth: '/alarm', + sidebar: false, + breadcrumb: true, + activeMenu: '/alarm', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/dashboard.ts b/src/router/modules/dashboard.ts new file mode 100644 index 0000000..b52526b --- /dev/null +++ b/src/router/modules/dashboard.ts @@ -0,0 +1,33 @@ +// 首页看板 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/dashboard', + component: Layout, + redirect: '/dashboard/board', + name: 'Dashboard', + meta: { + title: '首页看板', + icon: 'ep:key', + auth: '/dashboard', + }, + children: [ + { + path: 'board', + name: 'board', + component: () => import('@/views/dashboard/index.vue'), + meta: { + title: '首页看板', + auth: '/dashboard', + sidebar: false, + breadcrumb: true, + activeMenu: '/dashboard', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts new file mode 100644 index 0000000..483d664 --- /dev/null +++ b/src/router/modules/device.ts @@ -0,0 +1,33 @@ +// 设备管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/device', + component: Layout, + redirect: '/device/devicelist', + name: 'device', + meta: { + title: '设备管理', + icon: 'ep:key', + auth: '/device', + }, + children: [ + { + path: 'devicelist', + name: 'devicelist', + component: () => import('@/views/device/index.vue'), + meta: { + title: '设备管理', + auth: '/device', + sidebar: false, + breadcrumb: true, + activeMenu: '/device', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/person.ts b/src/router/modules/person.ts new file mode 100644 index 0000000..53d011c --- /dev/null +++ b/src/router/modules/person.ts @@ -0,0 +1,33 @@ +// 人员管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/person', + component: Layout, + redirect: '/person/personlist', + name: 'person', + meta: { + title: '人员管理', + icon: 'ep:key', + auth: '/person', + }, + children: [ + { + path: 'personlist', + name: 'personlist', + component: () => import('@/views/person/index.vue'), + meta: { + title: '人员管理', + auth: '/person', + sidebar: false, + breadcrumb: true, + activeMenu: '/person', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/scene.ts b/src/router/modules/scene.ts new file mode 100644 index 0000000..65921ab --- /dev/null +++ b/src/router/modules/scene.ts @@ -0,0 +1,33 @@ +// 现场管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/scene', + component: Layout, + redirect: '/scene/scenelist', + name: 'Scene', + meta: { + title: '现场管理', + icon: 'ep:key', + auth: '/scene', + }, + children: [ + { + path: 'scenelist', + name: 'scenelist', + component: () => import('@/views/scene/index.vue'), + meta: { + title: '现场管理', + auth: '/scene', + sidebar: false, + breadcrumb: true, + activeMenu: '/scene', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/routes.ts b/src/router/routes.ts index 6b3a30b..bd209b4 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -1,6 +1,11 @@ import { setupLayouts } from 'virtual:generated-layouts' import generatedRoutes from 'virtual:generated-pages' import systemRoute from './modules/system' +import dashboard from './modules/dashboard' +import scene from './modules/scene' +import device from './modules/device' +import person from './modules/person' +import alarm from './modules/alarm' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' // 固定路由(默认路由) @@ -104,6 +109,56 @@ const asyncRoutes: Route.recordMainRaw[] = [ { meta: { + title: '首页看板', + icon: '', + auth: '/dashboard', + }, + children: [ + ...dashboard, + ], + }, + { + meta: { + title: '现场管理', + icon: '', + auth: '/scene', + }, + children: [ + ...scene, + ], + }, + { + meta: { + title: '设备管理', + icon: '', + auth: '/device', + }, + children: [ + ...device, + ], + }, + { + meta: { + title: '人员管理', + icon: '', + auth: '/person', + }, + children: [ + ...person, + ], + }, + { + meta: { + title: '报警管理', + icon: '', + auth: '/alarm', + }, + children: [ + ...alarm, + ], + }, + { + meta: { title: '系统设置', icon: '', auth: '/system', diff --git a/src/views/alarm/index.vue b/src/views/alarm/index.vue new file mode 100644 index 0000000..44fe758 --- /dev/null +++ b/src/views/alarm/index.vue @@ -0,0 +1,6 @@ + + + diff --git a/.env.development b/.env.development index 08e52d3..f38eac0 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index aac9caa..b436983 100644 --- a/.env.production +++ b/.env.production @@ -3,7 +3,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/src/router/modules/alarm.ts b/src/router/modules/alarm.ts new file mode 100644 index 0000000..8d17114 --- /dev/null +++ b/src/router/modules/alarm.ts @@ -0,0 +1,33 @@ +// 报警管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/alarm', + component: Layout, + redirect: '/alarm/alarmlist', + name: 'alarm', + meta: { + title: '报警管理', + icon: 'ep:key', + auth: '/alarm', + }, + children: [ + { + path: 'alarmlist', + name: 'alarmlist', + component: () => import('@/views/alarm/index.vue'), + meta: { + title: '报警管理', + auth: '/alarm', + sidebar: false, + breadcrumb: true, + activeMenu: '/alarm', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/dashboard.ts b/src/router/modules/dashboard.ts new file mode 100644 index 0000000..b52526b --- /dev/null +++ b/src/router/modules/dashboard.ts @@ -0,0 +1,33 @@ +// 首页看板 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/dashboard', + component: Layout, + redirect: '/dashboard/board', + name: 'Dashboard', + meta: { + title: '首页看板', + icon: 'ep:key', + auth: '/dashboard', + }, + children: [ + { + path: 'board', + name: 'board', + component: () => import('@/views/dashboard/index.vue'), + meta: { + title: '首页看板', + auth: '/dashboard', + sidebar: false, + breadcrumb: true, + activeMenu: '/dashboard', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts new file mode 100644 index 0000000..483d664 --- /dev/null +++ b/src/router/modules/device.ts @@ -0,0 +1,33 @@ +// 设备管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/device', + component: Layout, + redirect: '/device/devicelist', + name: 'device', + meta: { + title: '设备管理', + icon: 'ep:key', + auth: '/device', + }, + children: [ + { + path: 'devicelist', + name: 'devicelist', + component: () => import('@/views/device/index.vue'), + meta: { + title: '设备管理', + auth: '/device', + sidebar: false, + breadcrumb: true, + activeMenu: '/device', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/person.ts b/src/router/modules/person.ts new file mode 100644 index 0000000..53d011c --- /dev/null +++ b/src/router/modules/person.ts @@ -0,0 +1,33 @@ +// 人员管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/person', + component: Layout, + redirect: '/person/personlist', + name: 'person', + meta: { + title: '人员管理', + icon: 'ep:key', + auth: '/person', + }, + children: [ + { + path: 'personlist', + name: 'personlist', + component: () => import('@/views/person/index.vue'), + meta: { + title: '人员管理', + auth: '/person', + sidebar: false, + breadcrumb: true, + activeMenu: '/person', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/scene.ts b/src/router/modules/scene.ts new file mode 100644 index 0000000..65921ab --- /dev/null +++ b/src/router/modules/scene.ts @@ -0,0 +1,33 @@ +// 现场管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/scene', + component: Layout, + redirect: '/scene/scenelist', + name: 'Scene', + meta: { + title: '现场管理', + icon: 'ep:key', + auth: '/scene', + }, + children: [ + { + path: 'scenelist', + name: 'scenelist', + component: () => import('@/views/scene/index.vue'), + meta: { + title: '现场管理', + auth: '/scene', + sidebar: false, + breadcrumb: true, + activeMenu: '/scene', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/routes.ts b/src/router/routes.ts index 6b3a30b..bd209b4 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -1,6 +1,11 @@ import { setupLayouts } from 'virtual:generated-layouts' import generatedRoutes from 'virtual:generated-pages' import systemRoute from './modules/system' +import dashboard from './modules/dashboard' +import scene from './modules/scene' +import device from './modules/device' +import person from './modules/person' +import alarm from './modules/alarm' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' // 固定路由(默认路由) @@ -104,6 +109,56 @@ const asyncRoutes: Route.recordMainRaw[] = [ { meta: { + title: '首页看板', + icon: '', + auth: '/dashboard', + }, + children: [ + ...dashboard, + ], + }, + { + meta: { + title: '现场管理', + icon: '', + auth: '/scene', + }, + children: [ + ...scene, + ], + }, + { + meta: { + title: '设备管理', + icon: '', + auth: '/device', + }, + children: [ + ...device, + ], + }, + { + meta: { + title: '人员管理', + icon: '', + auth: '/person', + }, + children: [ + ...person, + ], + }, + { + meta: { + title: '报警管理', + icon: '', + auth: '/alarm', + }, + children: [ + ...alarm, + ], + }, + { + meta: { title: '系统设置', icon: '', auth: '/system', diff --git a/src/views/alarm/index.vue b/src/views/alarm/index.vue new file mode 100644 index 0000000..44fe758 --- /dev/null +++ b/src/views/alarm/index.vue @@ -0,0 +1,6 @@ + + + diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue new file mode 100644 index 0000000..8afc1aa --- /dev/null +++ b/src/views/dashboard/index.vue @@ -0,0 +1,6 @@ + + + diff --git a/.env.development b/.env.development index 08e52d3..f38eac0 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index aac9caa..b436983 100644 --- a/.env.production +++ b/.env.production @@ -3,7 +3,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/src/router/modules/alarm.ts b/src/router/modules/alarm.ts new file mode 100644 index 0000000..8d17114 --- /dev/null +++ b/src/router/modules/alarm.ts @@ -0,0 +1,33 @@ +// 报警管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/alarm', + component: Layout, + redirect: '/alarm/alarmlist', + name: 'alarm', + meta: { + title: '报警管理', + icon: 'ep:key', + auth: '/alarm', + }, + children: [ + { + path: 'alarmlist', + name: 'alarmlist', + component: () => import('@/views/alarm/index.vue'), + meta: { + title: '报警管理', + auth: '/alarm', + sidebar: false, + breadcrumb: true, + activeMenu: '/alarm', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/dashboard.ts b/src/router/modules/dashboard.ts new file mode 100644 index 0000000..b52526b --- /dev/null +++ b/src/router/modules/dashboard.ts @@ -0,0 +1,33 @@ +// 首页看板 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/dashboard', + component: Layout, + redirect: '/dashboard/board', + name: 'Dashboard', + meta: { + title: '首页看板', + icon: 'ep:key', + auth: '/dashboard', + }, + children: [ + { + path: 'board', + name: 'board', + component: () => import('@/views/dashboard/index.vue'), + meta: { + title: '首页看板', + auth: '/dashboard', + sidebar: false, + breadcrumb: true, + activeMenu: '/dashboard', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts new file mode 100644 index 0000000..483d664 --- /dev/null +++ b/src/router/modules/device.ts @@ -0,0 +1,33 @@ +// 设备管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/device', + component: Layout, + redirect: '/device/devicelist', + name: 'device', + meta: { + title: '设备管理', + icon: 'ep:key', + auth: '/device', + }, + children: [ + { + path: 'devicelist', + name: 'devicelist', + component: () => import('@/views/device/index.vue'), + meta: { + title: '设备管理', + auth: '/device', + sidebar: false, + breadcrumb: true, + activeMenu: '/device', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/person.ts b/src/router/modules/person.ts new file mode 100644 index 0000000..53d011c --- /dev/null +++ b/src/router/modules/person.ts @@ -0,0 +1,33 @@ +// 人员管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/person', + component: Layout, + redirect: '/person/personlist', + name: 'person', + meta: { + title: '人员管理', + icon: 'ep:key', + auth: '/person', + }, + children: [ + { + path: 'personlist', + name: 'personlist', + component: () => import('@/views/person/index.vue'), + meta: { + title: '人员管理', + auth: '/person', + sidebar: false, + breadcrumb: true, + activeMenu: '/person', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/scene.ts b/src/router/modules/scene.ts new file mode 100644 index 0000000..65921ab --- /dev/null +++ b/src/router/modules/scene.ts @@ -0,0 +1,33 @@ +// 现场管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/scene', + component: Layout, + redirect: '/scene/scenelist', + name: 'Scene', + meta: { + title: '现场管理', + icon: 'ep:key', + auth: '/scene', + }, + children: [ + { + path: 'scenelist', + name: 'scenelist', + component: () => import('@/views/scene/index.vue'), + meta: { + title: '现场管理', + auth: '/scene', + sidebar: false, + breadcrumb: true, + activeMenu: '/scene', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/routes.ts b/src/router/routes.ts index 6b3a30b..bd209b4 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -1,6 +1,11 @@ import { setupLayouts } from 'virtual:generated-layouts' import generatedRoutes from 'virtual:generated-pages' import systemRoute from './modules/system' +import dashboard from './modules/dashboard' +import scene from './modules/scene' +import device from './modules/device' +import person from './modules/person' +import alarm from './modules/alarm' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' // 固定路由(默认路由) @@ -104,6 +109,56 @@ const asyncRoutes: Route.recordMainRaw[] = [ { meta: { + title: '首页看板', + icon: '', + auth: '/dashboard', + }, + children: [ + ...dashboard, + ], + }, + { + meta: { + title: '现场管理', + icon: '', + auth: '/scene', + }, + children: [ + ...scene, + ], + }, + { + meta: { + title: '设备管理', + icon: '', + auth: '/device', + }, + children: [ + ...device, + ], + }, + { + meta: { + title: '人员管理', + icon: '', + auth: '/person', + }, + children: [ + ...person, + ], + }, + { + meta: { + title: '报警管理', + icon: '', + auth: '/alarm', + }, + children: [ + ...alarm, + ], + }, + { + meta: { title: '系统设置', icon: '', auth: '/system', diff --git a/src/views/alarm/index.vue b/src/views/alarm/index.vue new file mode 100644 index 0000000..44fe758 --- /dev/null +++ b/src/views/alarm/index.vue @@ -0,0 +1,6 @@ + + + diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue new file mode 100644 index 0000000..8afc1aa --- /dev/null +++ b/src/views/dashboard/index.vue @@ -0,0 +1,6 @@ + + + diff --git a/src/views/device/index.vue b/src/views/device/index.vue new file mode 100644 index 0000000..a7bd609 --- /dev/null +++ b/src/views/device/index.vue @@ -0,0 +1,6 @@ + + + diff --git a/.env.development b/.env.development index 08e52d3..f38eac0 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index aac9caa..b436983 100644 --- a/.env.production +++ b/.env.production @@ -3,7 +3,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/src/router/modules/alarm.ts b/src/router/modules/alarm.ts new file mode 100644 index 0000000..8d17114 --- /dev/null +++ b/src/router/modules/alarm.ts @@ -0,0 +1,33 @@ +// 报警管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/alarm', + component: Layout, + redirect: '/alarm/alarmlist', + name: 'alarm', + meta: { + title: '报警管理', + icon: 'ep:key', + auth: '/alarm', + }, + children: [ + { + path: 'alarmlist', + name: 'alarmlist', + component: () => import('@/views/alarm/index.vue'), + meta: { + title: '报警管理', + auth: '/alarm', + sidebar: false, + breadcrumb: true, + activeMenu: '/alarm', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/dashboard.ts b/src/router/modules/dashboard.ts new file mode 100644 index 0000000..b52526b --- /dev/null +++ b/src/router/modules/dashboard.ts @@ -0,0 +1,33 @@ +// 首页看板 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/dashboard', + component: Layout, + redirect: '/dashboard/board', + name: 'Dashboard', + meta: { + title: '首页看板', + icon: 'ep:key', + auth: '/dashboard', + }, + children: [ + { + path: 'board', + name: 'board', + component: () => import('@/views/dashboard/index.vue'), + meta: { + title: '首页看板', + auth: '/dashboard', + sidebar: false, + breadcrumb: true, + activeMenu: '/dashboard', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts new file mode 100644 index 0000000..483d664 --- /dev/null +++ b/src/router/modules/device.ts @@ -0,0 +1,33 @@ +// 设备管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/device', + component: Layout, + redirect: '/device/devicelist', + name: 'device', + meta: { + title: '设备管理', + icon: 'ep:key', + auth: '/device', + }, + children: [ + { + path: 'devicelist', + name: 'devicelist', + component: () => import('@/views/device/index.vue'), + meta: { + title: '设备管理', + auth: '/device', + sidebar: false, + breadcrumb: true, + activeMenu: '/device', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/person.ts b/src/router/modules/person.ts new file mode 100644 index 0000000..53d011c --- /dev/null +++ b/src/router/modules/person.ts @@ -0,0 +1,33 @@ +// 人员管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/person', + component: Layout, + redirect: '/person/personlist', + name: 'person', + meta: { + title: '人员管理', + icon: 'ep:key', + auth: '/person', + }, + children: [ + { + path: 'personlist', + name: 'personlist', + component: () => import('@/views/person/index.vue'), + meta: { + title: '人员管理', + auth: '/person', + sidebar: false, + breadcrumb: true, + activeMenu: '/person', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/scene.ts b/src/router/modules/scene.ts new file mode 100644 index 0000000..65921ab --- /dev/null +++ b/src/router/modules/scene.ts @@ -0,0 +1,33 @@ +// 现场管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/scene', + component: Layout, + redirect: '/scene/scenelist', + name: 'Scene', + meta: { + title: '现场管理', + icon: 'ep:key', + auth: '/scene', + }, + children: [ + { + path: 'scenelist', + name: 'scenelist', + component: () => import('@/views/scene/index.vue'), + meta: { + title: '现场管理', + auth: '/scene', + sidebar: false, + breadcrumb: true, + activeMenu: '/scene', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/routes.ts b/src/router/routes.ts index 6b3a30b..bd209b4 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -1,6 +1,11 @@ import { setupLayouts } from 'virtual:generated-layouts' import generatedRoutes from 'virtual:generated-pages' import systemRoute from './modules/system' +import dashboard from './modules/dashboard' +import scene from './modules/scene' +import device from './modules/device' +import person from './modules/person' +import alarm from './modules/alarm' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' // 固定路由(默认路由) @@ -104,6 +109,56 @@ const asyncRoutes: Route.recordMainRaw[] = [ { meta: { + title: '首页看板', + icon: '', + auth: '/dashboard', + }, + children: [ + ...dashboard, + ], + }, + { + meta: { + title: '现场管理', + icon: '', + auth: '/scene', + }, + children: [ + ...scene, + ], + }, + { + meta: { + title: '设备管理', + icon: '', + auth: '/device', + }, + children: [ + ...device, + ], + }, + { + meta: { + title: '人员管理', + icon: '', + auth: '/person', + }, + children: [ + ...person, + ], + }, + { + meta: { + title: '报警管理', + icon: '', + auth: '/alarm', + }, + children: [ + ...alarm, + ], + }, + { + meta: { title: '系统设置', icon: '', auth: '/system', diff --git a/src/views/alarm/index.vue b/src/views/alarm/index.vue new file mode 100644 index 0000000..44fe758 --- /dev/null +++ b/src/views/alarm/index.vue @@ -0,0 +1,6 @@ + + + diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue new file mode 100644 index 0000000..8afc1aa --- /dev/null +++ b/src/views/dashboard/index.vue @@ -0,0 +1,6 @@ + + + diff --git a/src/views/device/index.vue b/src/views/device/index.vue new file mode 100644 index 0000000..a7bd609 --- /dev/null +++ b/src/views/device/index.vue @@ -0,0 +1,6 @@ + + + diff --git a/src/views/person/index.vue b/src/views/person/index.vue new file mode 100644 index 0000000..8223770 --- /dev/null +++ b/src/views/person/index.vue @@ -0,0 +1,6 @@ + + + diff --git a/.env.development b/.env.development index 08e52d3..f38eac0 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index aac9caa..b436983 100644 --- a/.env.production +++ b/.env.production @@ -3,7 +3,7 @@ # 页面标题 VITE_APP_TITLE = 后台管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:11411 +VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/src/router/modules/alarm.ts b/src/router/modules/alarm.ts new file mode 100644 index 0000000..8d17114 --- /dev/null +++ b/src/router/modules/alarm.ts @@ -0,0 +1,33 @@ +// 报警管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/alarm', + component: Layout, + redirect: '/alarm/alarmlist', + name: 'alarm', + meta: { + title: '报警管理', + icon: 'ep:key', + auth: '/alarm', + }, + children: [ + { + path: 'alarmlist', + name: 'alarmlist', + component: () => import('@/views/alarm/index.vue'), + meta: { + title: '报警管理', + auth: '/alarm', + sidebar: false, + breadcrumb: true, + activeMenu: '/alarm', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/dashboard.ts b/src/router/modules/dashboard.ts new file mode 100644 index 0000000..b52526b --- /dev/null +++ b/src/router/modules/dashboard.ts @@ -0,0 +1,33 @@ +// 首页看板 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/dashboard', + component: Layout, + redirect: '/dashboard/board', + name: 'Dashboard', + meta: { + title: '首页看板', + icon: 'ep:key', + auth: '/dashboard', + }, + children: [ + { + path: 'board', + name: 'board', + component: () => import('@/views/dashboard/index.vue'), + meta: { + title: '首页看板', + auth: '/dashboard', + sidebar: false, + breadcrumb: true, + activeMenu: '/dashboard', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts new file mode 100644 index 0000000..483d664 --- /dev/null +++ b/src/router/modules/device.ts @@ -0,0 +1,33 @@ +// 设备管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/device', + component: Layout, + redirect: '/device/devicelist', + name: 'device', + meta: { + title: '设备管理', + icon: 'ep:key', + auth: '/device', + }, + children: [ + { + path: 'devicelist', + name: 'devicelist', + component: () => import('@/views/device/index.vue'), + meta: { + title: '设备管理', + auth: '/device', + sidebar: false, + breadcrumb: true, + activeMenu: '/device', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/person.ts b/src/router/modules/person.ts new file mode 100644 index 0000000..53d011c --- /dev/null +++ b/src/router/modules/person.ts @@ -0,0 +1,33 @@ +// 人员管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/person', + component: Layout, + redirect: '/person/personlist', + name: 'person', + meta: { + title: '人员管理', + icon: 'ep:key', + auth: '/person', + }, + children: [ + { + path: 'personlist', + name: 'personlist', + component: () => import('@/views/person/index.vue'), + meta: { + title: '人员管理', + auth: '/person', + sidebar: false, + breadcrumb: true, + activeMenu: '/person', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/scene.ts b/src/router/modules/scene.ts new file mode 100644 index 0000000..65921ab --- /dev/null +++ b/src/router/modules/scene.ts @@ -0,0 +1,33 @@ +// 现场管理 +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') +const routes: Route.recordRaw[] = [ + { + path: '/scene', + component: Layout, + redirect: '/scene/scenelist', + name: 'Scene', + meta: { + title: '现场管理', + icon: 'ep:key', + auth: '/scene', + }, + children: [ + { + path: 'scenelist', + name: 'scenelist', + component: () => import('@/views/scene/index.vue'), + meta: { + title: '现场管理', + auth: '/scene', + sidebar: false, + breadcrumb: true, + activeMenu: '/scene', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/routes.ts b/src/router/routes.ts index 6b3a30b..bd209b4 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -1,6 +1,11 @@ import { setupLayouts } from 'virtual:generated-layouts' import generatedRoutes from 'virtual:generated-pages' import systemRoute from './modules/system' +import dashboard from './modules/dashboard' +import scene from './modules/scene' +import device from './modules/device' +import person from './modules/person' +import alarm from './modules/alarm' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' // 固定路由(默认路由) @@ -104,6 +109,56 @@ const asyncRoutes: Route.recordMainRaw[] = [ { meta: { + title: '首页看板', + icon: '', + auth: '/dashboard', + }, + children: [ + ...dashboard, + ], + }, + { + meta: { + title: '现场管理', + icon: '', + auth: '/scene', + }, + children: [ + ...scene, + ], + }, + { + meta: { + title: '设备管理', + icon: '', + auth: '/device', + }, + children: [ + ...device, + ], + }, + { + meta: { + title: '人员管理', + icon: '', + auth: '/person', + }, + children: [ + ...person, + ], + }, + { + meta: { + title: '报警管理', + icon: '', + auth: '/alarm', + }, + children: [ + ...alarm, + ], + }, + { + meta: { title: '系统设置', icon: '', auth: '/system', diff --git a/src/views/alarm/index.vue b/src/views/alarm/index.vue new file mode 100644 index 0000000..44fe758 --- /dev/null +++ b/src/views/alarm/index.vue @@ -0,0 +1,6 @@ + + + diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue new file mode 100644 index 0000000..8afc1aa --- /dev/null +++ b/src/views/dashboard/index.vue @@ -0,0 +1,6 @@ + + + diff --git a/src/views/device/index.vue b/src/views/device/index.vue new file mode 100644 index 0000000..a7bd609 --- /dev/null +++ b/src/views/device/index.vue @@ -0,0 +1,6 @@ + + + diff --git a/src/views/person/index.vue b/src/views/person/index.vue new file mode 100644 index 0000000..8223770 --- /dev/null +++ b/src/views/person/index.vue @@ -0,0 +1,6 @@ + + + diff --git a/src/views/scene/index.vue b/src/views/scene/index.vue new file mode 100644 index 0000000..d05ad27 --- /dev/null +++ b/src/views/scene/index.vue @@ -0,0 +1,6 @@ + + +