diff --git a/src/components/global/settings-drawer.vue b/src/components/global/settings-drawer.vue
index 57ffef6..2c05493 100644
--- a/src/components/global/settings-drawer.vue
+++ b/src/components/global/settings-drawer.vue
@@ -73,7 +73,7 @@ useEventListener('keydown', (event) => {
-
+
布局
diff --git a/src/layouts/app-layout.vue b/src/layouts/app-layout.vue
index 98f5b6f..357cd2a 100644
--- a/src/layouts/app-layout.vue
+++ b/src/layouts/app-layout.vue
@@ -15,8 +15,7 @@ import { useCurrentAlarmsStore } from '@/stores/current-alarms';
import { useUserStore } from '@/stores/user';
import { Client as StompClient } from '@stomp/stompjs';
import { useIsFetching } from '@tanstack/vue-query';
-import { AlertFilled, /* AreaChartOutlined, */ FileTextFilled, HomeFilled, LogoutOutlined, SettingOutlined, VideoCameraFilled } from '@vicons/antd';
-import { ChevronDown, Debug } from '@vicons/carbon';
+import { AlertFilled, BugFilled, CaretDownFilled, EnvironmentFilled, /* AreaChartOutlined, */ FileTextFilled, FundFilled, HddFilled, LogoutOutlined, SettingOutlined } from '@vicons/antd';
import type { AxiosError } from 'axios';
import { destr } from 'destr';
import { NBadge, NButton, NDropdown, NFlex, NIcon, NLayout, NLayoutContent, NLayoutFooter, NLayoutHeader, NLayoutSider, NMenu, NScrollbar, type DropdownOption, type MenuOption } from 'naive-ui';
@@ -98,17 +97,22 @@ const router = useRouter();
const menuOptions = ref([
{
- label: () => h(RouterLink, { to: '/dashboard' }, { default: () => '今日数据看板' }),
+ label: () => h(RouterLink, { to: '/dashboard' }, { default: () => '全线总概览' }),
key: '/dashboard',
- icon: renderIcon(HomeFilled),
+ icon: renderIcon(FundFilled),
},
{
- label: () => h(RouterLink, { to: '/device' }, { default: () => '设备诊断数据' }),
+ label: () => h(RouterLink, { to: '/station' }, { default: () => '车站状态' }),
+ key: '/station',
+ icon: renderIcon(EnvironmentFilled),
+ },
+ {
+ label: () => h(RouterLink, { to: '/device' }, { default: () => '设备诊断' }),
key: '/device',
- icon: renderIcon(VideoCameraFilled),
+ icon: renderIcon(HddFilled),
},
{
- label: () => h(RouterLink, { to: '/alarm' }, { default: () => '设备告警记录' }),
+ label: () => h(RouterLink, { to: '/alarm' }, { default: () => '设备告警' }),
key: '/alarm',
icon: renderIcon(AlertFilled),
},
@@ -135,7 +139,7 @@ const menuOptions = ref([
{
label: () => h(RouterLink, { to: '/debug' }, { default: () => '调试' }),
key: '/debug',
- icon: renderIcon(Debug),
+ icon: renderIcon(BugFilled),
show: import.meta.env.DEV,
},
]);
@@ -199,15 +203,13 @@ const openSettingsDrawer = () => {
{{ userInfo?.nickName ?? '' }}
-
+
-
-
-
+
@@ -221,9 +223,7 @@ const openSettingsDrawer = () => {
-
-
-
+
diff --git a/src/pages/dashboard-page.vue b/src/pages/dashboard-page.vue
index 0853886..f42dbe5 100644
--- a/src/pages/dashboard-page.vue
+++ b/src/pages/dashboard-page.vue
@@ -1,35 +1,23 @@
@@ -89,26 +60,6 @@ const openDeviceParamsConfigModal = (station: Station) => {
@export-online="() => exportDevices({ status: '10' })"
@export-offline="() => exportDevices({ status: '20' })"
/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/src/pages/station-page.vue b/src/pages/station-page.vue
new file mode 100644
index 0000000..73c2bba
--- /dev/null
+++ b/src/pages/station-page.vue
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/router/index.ts b/src/router/index.ts
index ae4d708..8a9fde1 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -17,6 +17,10 @@ const router = createRouter({
path: 'dashboard',
component: () => import('@/pages/dashboard-page.vue'),
},
+ {
+ path: 'station',
+ component: () => import('@/pages/station-page.vue'),
+ },
{
path: 'device',
component: () => import('@/pages/device-page.vue'),