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