From 3cb7d03eb7f036ace17fce4ccaee9aefc2eb60cd Mon Sep 17 00:00:00 2001 From: SunTao <328867980@qq.com> Date: Thu, 15 May 2025 14:39:05 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=8E=BB=E9=99=A4=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 2 +- src/layout/components/Navbar.vue | 68 ++++++++----------- src/views/index.vue | 4 +- src/views/xj/inspection/diease-line/index.vue | 26 +++---- vue.config.js | 2 +- 5 files changed, 39 insertions(+), 63 deletions(-) diff --git a/nginx.conf b/nginx.conf index b2b54f6..47f2e0b 100644 --- a/nginx.conf +++ b/nginx.conf @@ -40,7 +40,7 @@ http { proxy_set_header X-Real-IP $remote_addr; proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass http://192.168.50.208:8080/; + proxy_pass http://123.57.39.12:8080/; } error_page 500 502 503 504 /50x.html; diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 647600a..8453e4c 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -1,17 +1,9 @@ - +
@@ -173,7 +159,7 @@ export default { }; }, mounted() { - this.getMessageList(); + // this.getMessageList(); }, methods: { /* 点击跳转大屏页面 */ @@ -194,32 +180,32 @@ export default { location.href = "/index"; }); }) - .catch(() => {}); + .catch(() => { }); }, /** * @description: 获取消息中心数据 * @return {void} */ - getMessageList() { - this.messageTimer = setInterval(() => { - getNoticeList({ read: 1 }).then(({ code, rows, total }) => { - if (code === 200) { - this.messageList = rows; - this.noticeNum = total; - if(total > 99){ - clearInterval(this.messageTimer); - } - } - }); - }, 120000); - getNoticeList({ read: 1 }).then(({ code, rows, total }) => { - if (code === 200) { - this.messageList = rows; - this.noticeNum = total; - } - }); - }, + // getMessageList() { + // this.messageTimer = setInterval(() => { + // getNoticeList({ read: 1 }).then(({ code, rows, total }) => { + // if (code === 200) { + // this.messageList = rows; + // this.noticeNum = total; + // if (total > 99) { + // clearInterval(this.messageTimer); + // } + // } + // }); + // }, 120000); + // getNoticeList({ read: 1 }).then(({ code, rows, total }) => { + // if (code === 200) { + // this.messageList = rows; + // this.noticeNum = total; + // } + // }); + // }, /** * @description: 消息中心查看更多事件 diff --git a/src/views/index.vue b/src/views/index.vue index 7566b05..c21dd15 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-10-08 09:26:24 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2025-05-12 09:58:02 + * @LastEditTime: 2025-05-14 15:42:37 * @FilePath: \znxjxt-ui\src\views\index.vue * @Description: 系统首页 --> @@ -76,7 +76,7 @@ export default { { name: "螺栓脱落总数", value: data.road, unit: "个" }, { name: "护拦板检测总数 ", value: data.event, unit: "个" }, { name: "轮廓标丢失总数", value: data.bridge, unit: "个" }, - { name: "绿化待处理问题数", value: data.green, unit: "个" }, + // { name: "绿化待处理问题数", value: data.green, unit: "个" }, ]; } }) diff --git a/src/views/xj/inspection/diease-line/index.vue b/src/views/xj/inspection/diease-line/index.vue index 113f713..9635f3f 100644 --- a/src/views/xj/inspection/diease-line/index.vue +++ b/src/views/xj/inspection/diease-line/index.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2025-03-25 11:10:16 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2025-05-12 14:01:29 + * @LastEditTime: 2025-05-15 14:38:45 * @FilePath: \znxjxt-ui\src\views\xj\inspection\diease-line\index.vue * @Description: 护拦板检测-首页-910001 --> @@ -259,12 +259,8 @@ export default { chart.setOption({ tooltip: { trigger: 'axis', - backgroundColor: 'rgba(33,56,77,1)', - borderColor: 'rgba(33,56,77,1)', - textStyle: { - color: '#fff', - fontSize: 14 - }, + color: '#fff', + fontSize: 14, axisPointer: { lineStyle: { color: 'rgba(19,255,241,1)', @@ -280,9 +276,7 @@ export default { itemHeight: 16, itemGap: 25, icon: 'stack', - textStyle: { - color: '#E1E5E6' - } + color: '#E1E5E6' }, grid: { top: '16%', @@ -296,10 +290,8 @@ export default { type: 'category', boundaryGap: true, axisLabel: { - textStyle: { - color: '#B5C5D4', - fontSize: 12 - } + color: '#B5C5D4', + fontSize: 12 }, axisLine: { show: false @@ -315,10 +307,8 @@ export default { show: false }, axisLabel: { - textStyle: { - color: '#B5C5D4', - fontSize: 12 - } + color: '#B5C5D4', + fontSize: 12, }, // y轴分割线的颜色 splitLine: { diff --git a/vue.config.js b/vue.config.js index f547769..c5b8beb 100644 --- a/vue.config.js +++ b/vue.config.js @@ -40,7 +40,7 @@ module.exports = { // 内网 // target: `http://10.60.5.83:8080`, // target: `http://192.168.1.188:8080`, - target: `http://localhost:8081`, + target: `http://localhost:8080`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''