From 474a8e2836f08be0cf765b71e3d1cebf1a429ac5 Mon Sep 17 00:00:00 2001 From: Lufaneng Date: Sat, 7 Jun 2025 11:24:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=A8=A1=E5=BC=8F=E9=9D=99?= =?UTF-8?q?=E6=80=81=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components.d.ts | 5 + src/router/index.js | 6 + src/views/AutomaticMode/index.vue | 971 ++++++++++++++++++++++++++++++ src/views/HandleControl/index.vue | 2 + src/views/Menu/index.vue | 2 +- src/views/ParamsConfig/index.vue | 2 + 6 files changed, 987 insertions(+), 1 deletion(-) create mode 100644 src/views/AutomaticMode/index.vue diff --git a/src/components.d.ts b/src/components.d.ts index bb69ae9..49c6c64 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,13 +9,18 @@ declare module 'vue' { export interface GlobalComponents { ElButton: typeof import('element-plus/es')['ElButton'] ElCard: typeof import('element-plus/es')['ElCard'] + ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] + ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup'] ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] ElDialog: typeof import('element-plus/es')['ElDialog'] ElIcon: typeof import('element-plus/es')['ElIcon'] ElInput: typeof import('element-plus/es')['ElInput'] + ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] ElPagination: typeof import('element-plus/es')['ElPagination'] ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] ElSlider: typeof import('element-plus/es')['ElSlider'] + ElSwitch: typeof import('element-plus/es')['ElSwitch'] + ElTimePicker: typeof import('element-plus/es')['ElTimePicker'] Pagination: typeof import('./components/Pagination/index.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] diff --git a/src/router/index.js b/src/router/index.js index 11b1052..9d2e0d6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -47,6 +47,12 @@ export const routes = [ component: () => import('@/views/ParamsConfig/index.vue'), meta: { title: '参数设置' }, }, + { + path: '/automatic-mode', + name: 'AutomaticMode', + component: () => import('@/views/AutomaticMode/index.vue'), + meta: { title: '自动模式' }, + }, ] const router = createRouter({ diff --git a/src/views/AutomaticMode/index.vue b/src/views/AutomaticMode/index.vue new file mode 100644 index 0000000..e3f522b --- /dev/null +++ b/src/views/AutomaticMode/index.vue @@ -0,0 +1,971 @@ + + + + + + + diff --git a/src/views/HandleControl/index.vue b/src/views/HandleControl/index.vue index 9c482a6..50091e3 100644 --- a/src/views/HandleControl/index.vue +++ b/src/views/HandleControl/index.vue @@ -543,6 +543,7 @@ onUnmounted(() => { .time-info { font-size: 18px; font-weight: 300; + width: 270px; } .page-title h1 { @@ -557,6 +558,7 @@ onUnmounted(() => { min-width: 200px; font-size: 18px; font-weight: 300; + width: 270px; } .control-content { diff --git a/src/views/Menu/index.vue b/src/views/Menu/index.vue index c360b2e..d9da7a9 100644 --- a/src/views/Menu/index.vue +++ b/src/views/Menu/index.vue @@ -65,7 +65,7 @@ const functionCards = [ { key: 'monitor', title: '实时监控', icon: Camera, route: '' }, { key: 'control', title: '手动控制', icon: Operation, route: '/handle-control' }, { key: 'setting', title: '参数设置', icon: Setting, route: '/params-config' }, - { key: 'auto', title: '自动模式', icon: VideoPlay, route: '' }, + { key: 'auto', title: '自动模式', icon: VideoPlay, route: '/automatic-mode' }, { key: 'alarm', title: '报警浏览', icon: Bell, route: '' } ] diff --git a/src/views/ParamsConfig/index.vue b/src/views/ParamsConfig/index.vue index d3bf4e0..6b84302 100644 --- a/src/views/ParamsConfig/index.vue +++ b/src/views/ParamsConfig/index.vue @@ -232,6 +232,7 @@ onUnmounted(() => { .time-info { font-size: 18px; font-weight: 300; + width: 270px; } .page-title h1 { @@ -246,6 +247,7 @@ onUnmounted(() => { min-width: 200px; font-size: 18px; font-weight: 300; + width: 270px; } .control-content {