From 59f9891a5dd635e46be79def53421ca3936f8b6e Mon Sep 17 00:00:00 2001 From: aaron <> Date: Mon, 3 Mar 2025 21:30:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=B6=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 + src/layouts/BasicLayout.vue | 8 + src/router/index.js | 5 + src/views/system/TimePeriodList.vue | 399 ++++++++++++++++++++++++++++ 4 files changed, 416 insertions(+) create mode 100644 src/views/system/TimePeriodList.vue diff --git a/Dockerfile b/Dockerfile index cac82cd..b5fc669 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,10 @@ FROM node:16 AS builder WORKDIR /app +# 设置环境变量 +ARG NODE_ENV +ENV NODE_ENV=${NODE_ENV} + # 复制 package.json 和 package-lock.json COPY package*.json ./ diff --git a/src/layouts/BasicLayout.vue b/src/layouts/BasicLayout.vue index afc7fe7..d8731db 100644 --- a/src/layouts/BasicLayout.vue +++ b/src/layouts/BasicLayout.vue @@ -109,6 +109,9 @@ 系统配置 + + 时段配置 + @@ -333,6 +336,11 @@ export default defineComponent({ key: 'system-config', title: '系统配置', path: '/system/config' + }, + { + key: 'system-time-periods', + title: '时段配置', + path: '/system/time-periods' } ] }, diff --git a/src/router/index.js b/src/router/index.js index fed9c09..3376c1a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -99,6 +99,11 @@ const routes = [ path: 'config', component: () => import('@/views/system/ConfigList.vue'), meta: { title: '系统配置' } + }, + { + path: 'time-periods', + component: () => import('@/views/system/TimePeriodList.vue'), + meta: { title: '时段配置' } } ] }, diff --git a/src/views/system/TimePeriodList.vue b/src/views/system/TimePeriodList.vue new file mode 100644 index 0000000..f1e15e2 --- /dev/null +++ b/src/views/system/TimePeriodList.vue @@ -0,0 +1,399 @@ + + + + + \ No newline at end of file