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 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;

View File

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

View File

@ -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: "" },
];
}
})

View File

@ -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
},
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'
}
},
grid: {
top: '16%',
@ -296,10 +290,8 @@ export default {
type: 'category',
boundaryGap: true,
axisLabel: {
textStyle: {
color: '#B5C5D4',
fontSize: 12
}
},
axisLine: {
show: false
@ -315,10 +307,8 @@ export default {
show: false
},
axisLabel: {
textStyle: {
color: '#B5C5D4',
fontSize: 12
}
fontSize: 12,
},
// y线
splitLine: {

View File

@ -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]: ''