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 @@ + + + + + + + + {{ currentTime }} {{ week }} + + + 自动模式设置 + + + + + + + + + + + + 模式1 + + + 模式2 + + + 模式3 + + + + + 开始任务 + + + 通道 + 回路 + 亮度 + + + {{ ele }} + 通 + 0 + + + + 定时时间 + 18:00:00 + + + + + + + + + + + + + + + + + + + + 控制模式 + + 自动模式1 + + + + 远程重启 + 刷新 + 新增 + 删除 + + + + + + + + + 日出时间:{{ sunriseTime }} + + + 日落时间:{{ sunsetTime }} + + + + 设备号:{{ commit_uid }} + + + + + + + + 返回主界面 + + + + + + + + + + 亮度调节 + + % + + + + + + + + + + + + + 模式{{ item }} + + + + + + + + + + 模式名称 + + + + + + + + + + + + + + 通道回路 全选 + 通道回路 + + + + + + + + 一键调光 + + + 调光通道{{ item }} + + + % + + + + + + 时间 + + + + + + + + + + + + + + + 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 {