From 2ad56d32039e772046970273f16e03883c8e083d Mon Sep 17 00:00:00 2001 From: zhoumengru Date: Mon, 1 Sep 2025 16:55:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(web):=20=E6=96=B0=E5=A2=9E=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=95=8C=E9=9D=A2=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新路由配置,调整页面结构 - 优化主题样式,自定义 ant-design 样式 - 新增全局样式,包括滚动条、按钮、模态框等 --- web/.eslintrc.js | 5 +- web/package.json | 2 +- web/public/index.html | 1 + web/src/App.vue | 12 +- web/src/assets/images/fillScreen.png | Bin 0 -> 1435 bytes web/src/assets/images/modalBg.png | Bin 0 -> 23629 bytes web/src/assets/images/titleLine.png | Bin 0 -> 2593 bytes web/src/components/ComTable.vue | 447 ++++++++++++++++++++++++++ web/src/components/SearchBox.vue | 332 +++++++++++++++++++ web/src/components/monitor/device.vue | 176 ++++++++++ web/src/components/monitor/videos.vue | 129 ++++++++ web/src/router/index.js | 77 ++++- web/src/style/antd.scss | 51 ++- web/src/style/color.scss | 6 +- web/src/style/index.scss | 33 ++ web/src/views/MainView.vue | 148 +++++++-- web/src/views/monitor.vue | 188 +++++++++++ web/src/views/sub/monitor.vue | 27 -- web/src/views/system/index.vue | 36 +++ web/src/views/system/policy.vue | 46 +++ web/src/views/system/user.vue | 30 ++ web/vue.config.js | 4 +- 22 files changed, 1677 insertions(+), 73 deletions(-) create mode 100644 web/src/assets/images/fillScreen.png create mode 100644 web/src/assets/images/modalBg.png create mode 100644 web/src/assets/images/titleLine.png create mode 100644 web/src/components/ComTable.vue create mode 100644 web/src/components/SearchBox.vue create mode 100644 web/src/components/monitor/device.vue create mode 100644 web/src/components/monitor/videos.vue create mode 100644 web/src/views/monitor.vue delete mode 100644 web/src/views/sub/monitor.vue create mode 100644 web/src/views/system/index.vue create mode 100644 web/src/views/system/policy.vue create mode 100644 web/src/views/system/user.vue diff --git a/web/.eslintrc.js b/web/.eslintrc.js index 91232e9..ca360bb 100644 --- a/web/.eslintrc.js +++ b/web/.eslintrc.js @@ -15,6 +15,7 @@ module.exports = { }, plugins: ['react', '@typescript-eslint', 'prettier'], // 添加 prettier 插件 rules: { + 'vue/require-explicit-emits': 'off', // 关闭 emits 声明检查 'vue/v-on-event-hyphenation': 'off', 'prettier/prettier': 'off', 'react/react-in-jsx-scope': 'off', // React 17+ 可关闭 JSX 运行时检查 @@ -24,8 +25,8 @@ module.exports = { eqeqeq: 0, // 警告使用全等 quotes: [0, 'single'], // 单引号 singleQuote: 0, - 'no-console': 2, // 不禁用console - 'no-debugger': 2, // 警告debugger + 'no-console': 0, // 不禁用console + 'no-debugger': 0, // 警告debugger 'no-var': 2, // 对var禁止 'no-eval': 0, semi: 0, // 强制使用分号 diff --git a/web/package.json b/web/package.json index d589b1c..ddf89c0 100644 --- a/web/package.json +++ b/web/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { - "serve": "vue-cli-service serve && webpack-dev-server", + "serve": "vue-cli-service serve ", "build": "vue-cli-service build", "lint": "vue-cli-service lint", "show-webpack-version": "webpack --version" diff --git a/web/public/index.html b/web/public/index.html index 3e5a139..4ae8741 100644 --- a/web/public/index.html +++ b/web/public/index.html @@ -6,6 +6,7 @@ <%= htmlWebpackPlugin.options.title %> +