fix:去除消息查询

This commit is contained in:
SunTao 2025-05-15 14:39:05 +08:00
parent 2bd65a8b2a
commit 3cb7d03eb7
5 changed files with 39 additions and 63 deletions

View File

@ -40,7 +40,7 @@ http {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 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; error_page 500 502 503 504 /50x.html;

View File

@ -1,17 +1,9 @@
<template> <template>
<div class="navbar"> <div class="navbar">
<hamburger <hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container"
id="hamburger-container" @toggleClick="toggleSideBar" />
:is-active="sidebar.opened"
class="hamburger-container"
@toggleClick="toggleSideBar"
/>
<breadcrumb <breadcrumb id="breadcrumb-container" class="breadcrumb-container" v-if="!topNav" />
id="breadcrumb-container"
class="breadcrumb-container"
v-if="!topNav"
/>
<top-nav id="topmenu-container" class="topmenu-container" v-if="topNav" /> <top-nav id="topmenu-container" class="topmenu-container" v-if="topNav" />
<div class="right-menu"> <div class="right-menu">
@ -20,7 +12,7 @@
<i class="el-icon-data-analysis" @click="goBigScreen"></i> <i class="el-icon-data-analysis" @click="goBigScreen"></i>
</div> --> </div> -->
<!-- <search id="header-search" class="right-menu-item" /> --> <!-- <search id="header-search" class="right-menu-item" /> -->
<div class="header-news"> <!-- <div class="header-news">
<el-popover <el-popover
placement="bottom-end" placement="bottom-end"
width="400" width="400"
@ -40,7 +32,6 @@
@click="handleMessageItemClick(item.notificationType)" @click="handleMessageItemClick(item.notificationType)"
> >
<div class="index"> <div class="index">
<!-- <i v-if="item.title === '成功'" style="color: #67c23a" class="el-icon-success"></i> -->
<i <i
v-if="item.notificationType === 'REMIND'" v-if="item.notificationType === 'REMIND'"
style="color: #e6a23c" style="color: #e6a23c"
@ -51,7 +42,6 @@
style="color: #909399" style="color: #909399"
class="el-icon-warning" class="el-icon-warning"
></i> ></i>
<!-- <i v-if="item.title === '错误'" style="color: #f56c6c" class="el-icon-error"></i> -->
</div> </div>
<div class="time"> <div class="time">
<span>{{ item.createdTime }}</span> <span>{{ item.createdTime }}</span>
@ -82,11 +72,10 @@
class="item" class="item"
> >
<i class="el-icon-bell"> <i class="el-icon-bell">
<!-- <div class="num">{{ noticeNum }}</div> -->
</i> </i>
</el-badge> </el-badge>
</el-popover> </el-popover>
</div> </div> -->
<screenfull id="screenfull" class="right-menu-item hover-effect" /> <screenfull id="screenfull" class="right-menu-item hover-effect" />
<!-- <el-tooltip content="布局大小" effect="dark" placement="bottom"> <!-- <el-tooltip content="布局大小" effect="dark" placement="bottom">
@ -94,10 +83,7 @@
</el-tooltip> --> </el-tooltip> -->
</template> </template>
<el-dropdown <el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
class="avatar-container right-menu-item hover-effect"
trigger="click"
>
<div class="avatar-wrapper"> <div class="avatar-wrapper">
<img :src="avatar" class="user-avatar" /> <img :src="avatar" class="user-avatar" />
<i class="el-icon-caret-bottom" /> <i class="el-icon-caret-bottom" />
@ -173,7 +159,7 @@ export default {
}; };
}, },
mounted() { mounted() {
this.getMessageList(); // this.getMessageList();
}, },
methods: { methods: {
/* 点击跳转大屏页面 */ /* 点击跳转大屏页面 */
@ -194,32 +180,32 @@ export default {
location.href = "/index"; location.href = "/index";
}); });
}) })
.catch(() => {}); .catch(() => { });
}, },
/** /**
* @description: 获取消息中心数据 * @description: 获取消息中心数据
* @return {void} * @return {void}
*/ */
getMessageList() { // getMessageList() {
this.messageTimer = setInterval(() => { // this.messageTimer = setInterval(() => {
getNoticeList({ read: 1 }).then(({ code, rows, total }) => { // getNoticeList({ read: 1 }).then(({ code, rows, total }) => {
if (code === 200) { // if (code === 200) {
this.messageList = rows; // this.messageList = rows;
this.noticeNum = total; // this.noticeNum = total;
if(total > 99){ // if (total > 99) {
clearInterval(this.messageTimer); // clearInterval(this.messageTimer);
} // }
} // }
}); // });
}, 120000); // }, 120000);
getNoticeList({ read: 1 }).then(({ code, rows, total }) => { // getNoticeList({ read: 1 }).then(({ code, rows, total }) => {
if (code === 200) { // if (code === 200) {
this.messageList = rows; // this.messageList = rows;
this.noticeNum = total; // this.noticeNum = total;
} // }
}); // });
}, // },
/** /**
* @description: 消息中心查看更多事件 * @description: 消息中心查看更多事件

View File

@ -2,7 +2,7 @@
* @Author: SunTao 328867980@qq.com * @Author: SunTao 328867980@qq.com
* @Date: 2024-10-08 09:26:24 * @Date: 2024-10-08 09:26:24
* @LastEditors: SunTao 328867980@qq.com * @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 * @FilePath: \znxjxt-ui\src\views\index.vue
* @Description: 系统首页 * @Description: 系统首页
--> -->
@ -76,7 +76,7 @@ export default {
{ name: "螺栓脱落总数", value: data.road, unit: "个" }, { name: "螺栓脱落总数", value: data.road, unit: "个" },
{ name: "护拦板检测总数 ", value: data.event, unit: "个" }, { name: "护拦板检测总数 ", value: data.event, unit: "个" },
{ name: "轮廓标丢失总数", value: data.bridge, unit: "个" }, { name: "轮廓标丢失总数", value: data.bridge, unit: "个" },
{ name: "绿化待处理问题数", value: data.green, unit: "个" }, // { name: "绿", value: data.green, unit: "" },
]; ];
} }
}) })

View File

@ -2,7 +2,7 @@
* @Author: SunTao 328867980@qq.com * @Author: SunTao 328867980@qq.com
* @Date: 2025-03-25 11:10:16 * @Date: 2025-03-25 11:10:16
* @LastEditors: SunTao 328867980@qq.com * @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 * @FilePath: \znxjxt-ui\src\views\xj\inspection\diease-line\index.vue
* @Description: 护拦板检测-首页-910001 * @Description: 护拦板检测-首页-910001
--> -->
@ -259,12 +259,8 @@ export default {
chart.setOption({ chart.setOption({
tooltip: { tooltip: {
trigger: 'axis', trigger: 'axis',
backgroundColor: 'rgba(33,56,77,1)',
borderColor: 'rgba(33,56,77,1)',
textStyle: {
color: '#fff', color: '#fff',
fontSize: 14 fontSize: 14,
},
axisPointer: { axisPointer: {
lineStyle: { lineStyle: {
color: 'rgba(19,255,241,1)', color: 'rgba(19,255,241,1)',
@ -280,9 +276,7 @@ export default {
itemHeight: 16, itemHeight: 16,
itemGap: 25, itemGap: 25,
icon: 'stack', icon: 'stack',
textStyle: {
color: '#E1E5E6' color: '#E1E5E6'
}
}, },
grid: { grid: {
top: '16%', top: '16%',
@ -296,10 +290,8 @@ export default {
type: 'category', type: 'category',
boundaryGap: true, boundaryGap: true,
axisLabel: { axisLabel: {
textStyle: {
color: '#B5C5D4', color: '#B5C5D4',
fontSize: 12 fontSize: 12
}
}, },
axisLine: { axisLine: {
show: false show: false
@ -315,10 +307,8 @@ export default {
show: false show: false
}, },
axisLabel: { axisLabel: {
textStyle: {
color: '#B5C5D4', color: '#B5C5D4',
fontSize: 12 fontSize: 12,
}
}, },
// y线 // y线
splitLine: { splitLine: {

View File

@ -40,7 +40,7 @@ module.exports = {
// 内网 // 内网
// target: `http://10.60.5.83:8080`, // target: `http://10.60.5.83:8080`,
// target: `http://192.168.1.188:8080`, // target: `http://192.168.1.188:8080`,
target: `http://localhost:8081`, target: `http://localhost:8080`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''