From df8f79ba2726b86b409b3c2e2a3acf7b811b76be Mon Sep 17 00:00:00 2001 From: douyage Date: Thu, 13 Aug 2026 14:47:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B7=A1=E8=A7=86=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E7=9A=84=E6=A0=B7=E5=BC=8F=E9=A3=8E=E6=A0=BC=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=AC=E5=85=B1=E7=9A=84=E6=89=93=E5=8C=85?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.htjc6 | 9 ++ .gitignore | 2 + package.json | 1 + public/index.html | 1 - src/assets/styles/date-picker.scss | 149 +++++++++++++++++++ src/assets/styles/sidebar.scss | 12 ++ src/assets/styles/variables.scss | 4 +- src/layout/components/Sidebar/index.vue | 22 ++- src/main.js | 1 + src/permission.js | 11 +- src/router/index.js | 17 ++- src/views/cards/tasksShow/dailyDisplay.vue | 109 ++++++++++++++ src/views/cards/tasksShow/monthlyDisplay.vue | 129 ++++++++++++++++ src/views/cards/tasksShow/yearDisplay.vue | 43 +++--- vue.config.js | 6 +- 15 files changed, 475 insertions(+), 41 deletions(-) create mode 100644 .env.htjc6 create mode 100644 src/assets/styles/date-picker.scss diff --git a/.env.htjc6 b/.env.htjc6 new file mode 100644 index 0000000..fc2b732 --- /dev/null +++ b/.env.htjc6 @@ -0,0 +1,9 @@ +NODE_ENV = 'production' +ENV = 'production' + +VUE_APP_TITLE = 智能巡视 +VUE_APP_BASE_API = '/prod-api' +VUE_APP_NVR_API = 'http://192.168.1.86:28081' + +VUE_APP_PUBLIC_PATH = '/app/htjc6/' +VUE_APP_OUTPUT_DIR = 'dist/app/htjc6' diff --git a/.gitignore b/.gitignore index 78a752d..2e22425 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ .DS_Store node_modules/ dist/ +dist-htjc6/ +release/ npm-debug.log* yarn-debug.log* yarn-error.log* diff --git a/package.json b/package.json index 4d87b20..14af78b 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "scripts": { "dev": "vue-cli-service serve", "build:prod": "vue-cli-service build", + "build:htjc6": "vue-cli-service build --mode htjc6", "build:stage": "vue-cli-service build --mode staging", "preview": "node build/index.js --preview", "lint": "eslint --ext .js,.vue src" diff --git a/public/index.html b/public/index.html index 740ff69..114e98b 100644 --- a/public/index.html +++ b/public/index.html @@ -11,7 +11,6 @@ - diff --git a/src/views/cards/tasksShow/monthlyDisplay.vue b/src/views/cards/tasksShow/monthlyDisplay.vue index 550b5e6..dc89845 100644 --- a/src/views/cards/tasksShow/monthlyDisplay.vue +++ b/src/views/cards/tasksShow/monthlyDisplay.vue @@ -788,4 +788,133 @@ export default { .card-date-editor { background-color: #101d29; } + +/* Blue dashboard theme */ +.month-view { + background: #0b1248; + color: #dceaff; +} + +.month-header { + margin-bottom: 14px; + padding: 10px 0; + border-radius: 0; + background: transparent; +} + +.month-header h2 { + color: #b9d6ff !important; +} + +.nav-btn { + width: 36px; + border: 1px solid #438fe5; + border-radius: 0; + color: #9dcbff; + background: #0b1d58; +} + +.nav-btn:hover { + border-color: #55baff; + color: #ffffff; + background: #123b82; +} + +.calendar-grid { + border: 1px solid #2787ed; + border-radius: 0; + background: #0b174f; +} + +.weekday-header { + padding: 0; + border-bottom: 1px solid #2787ed; + background: #0b174f; +} + +.weekday { + padding: 12px 5px; + border-right: 1px solid #2787ed; + color: #35bcff; +} + +.days-grid, +.days-grid > .day-cell { + background: #101e63 !important; +} + +.days-grid > .day-cell:nth-child(14n + 8), +.days-grid > .day-cell:nth-child(14n + 9), +.days-grid > .day-cell:nth-child(14n + 10), +.days-grid > .day-cell:nth-child(14n + 11), +.days-grid > .day-cell:nth-child(14n + 12), +.days-grid > .day-cell:nth-child(14n + 13), +.days-grid > .day-cell:nth-child(14n + 14) { + background: #13266f !important; +} + +.day-cell { + border-right: 1px solid #2787ed; + border-bottom: 1px solid #2787ed; +} + +.day-cell.empty { + border-right: 1px solid #2787ed; + border-bottom: 1px solid #2787ed; + background: #091442 !important; +} + +.day-number { + color: #8096ce; +} + +.day-cell.today { + z-index: 2; + background: linear-gradient(135deg, rgba(13, 99, 173, 0.72), rgba(13, 65, 139, 0.72)) !important; + border: 2px solid #54ffff !important; + box-shadow: inset 0 0 20px rgba(84, 255, 255, 0.18), 0 0 8px rgba(84, 255, 255, 0.42); +} + +.day-cell.today .day-number { + display: inline-flex; + align-items: center; + gap: 7px; + color: #ffffff; + text-shadow: 0 0 6px rgba(84, 255, 255, 0.75); +} + +.day-cell.today .day-number::after { + content: "今"; + display: inline-grid; + place-items: center; + width: 20px; + height: 20px; + border-radius: 50%; + color: #062653; + background: #54ffff; + font-size: 11px; + line-height: 1; + text-shadow: none; +} + +.status-executing { background-color: #147fc1; } +.status-completed { background-color: #178a70; } +.status-not-executed { background-color: #536c9f; } + +.task-tooltip { + border: 1px solid #438fe5; + border-radius: 2px; + background: #0b1d58; +} + +:deep(.el-date-editor--month), +:deep(.el-input__inner) { + border-radius: 0; + background-color: #0b1d58; +} + +:deep(.el-input__inner) { + border: 1px solid #438fe5; + color: #dceaff; +} diff --git a/src/views/cards/tasksShow/yearDisplay.vue b/src/views/cards/tasksShow/yearDisplay.vue index d725188..f7d5744 100644 --- a/src/views/cards/tasksShow/yearDisplay.vue +++ b/src/views/cards/tasksShow/yearDisplay.vue @@ -186,6 +186,8 @@ export default { diff --git a/vue.config.js b/vue.config.js index 0d46ee5..e1d7c9b 100644 --- a/vue.config.js +++ b/vue.config.js @@ -11,6 +11,8 @@ const name = process.env.VUE_APP_TITLE || '若依管理系统' // 网页标题 const port = process.env.port || process.env.npm_config_port || 80 // 端口 const CopyWebpackPlugin = require("copy-webpack-plugin"); +const appBasePath = process.env.VUE_APP_PUBLIC_PATH || "/"; +const buildOutputDir = process.env.VUE_APP_OUTPUT_DIR || "dist"; // vue.config.js 配置说明 //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions @@ -19,9 +21,9 @@ module.exports = { // 部署生产环境和开发环境下的URL。 // 默认情况下,Vue CLI 会假设你的应用是被部署在一个域名的根路径上 // 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。 - publicPath: process.env.NODE_ENV === "production" ? "/" : "/", + publicPath: appBasePath, // 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist) - outputDir: 'dist', + outputDir: buildOutputDir, // 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下) assetsDir: 'static', // 是否开启eslint保存检测,有效值:ture | false | 'error'