累计跟新

main
liukewei 10 months ago
parent 4fdcb1ca20
commit a43d535099

@ -121,10 +121,15 @@ public class EhsMyMessageController extends BaseController
ehsMyMessage.setMyMessageType("0"); ehsMyMessage.setMyMessageType("0");
ehsMyMessage.setMyUserId(SecurityUtils.getUserId()); ehsMyMessage.setMyUserId(SecurityUtils.getUserId());
EhsMyMessage msg = ehsMyMessageService.selectEhsMyMessageByMyMessageMax(ehsMyMessage); EhsMyMessage msg = ehsMyMessageService.selectEhsMyMessageByMyMessageMax(ehsMyMessage);
if(msg == null){
ajr.put("msgHD","0");
}else{
if(msg.getMyMessageState().equals("N")) if(msg.getMyMessageState().equals("N"))
ajr.put("msgHD","1"); ajr.put("msgHD","1");
else else
ajr.put("msgHD","0"); ajr.put("msgHD","0");
}
//分析是否有本人的未读消息通知 //分析是否有本人的未读消息通知
//消息通知的每一记录,我的消息都应该有一条记录,如果没有,说明未读,并向我的消息插入一条记录,并设置为未读 //消息通知的每一记录,我的消息都应该有一条记录,如果没有,说明未读,并向我的消息插入一条记录,并设置为未读
//消息通知模块点击阅读按钮后,需要同时修改我的消息的已读标志 //消息通知模块点击阅读按钮后,需要同时修改我的消息的已读标志

@ -32,13 +32,14 @@
<i class="el-icon-caret-bottom" /> <i class="el-icon-caret-bottom" />
</div> </div>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item> <el-dropdown-item @click.native="goHD(hdMsgCount)">
<router-link :to="{ path: '/ehsHiddenDangerMenu/ehsHiddenDanger', query: {overTime: '10' }}"> <span>隐患消息 <el-badge class="mark" :value="hdMsgCount" /></span>
<!--<router-link :to="{ path: '/ehsHiddenDangerMenu/ehsHiddenDanger', query: {overTime: '10' }}">
隐患消息 隐患消息
<el-badge class="mark" :value="hdMsgCount" /> <el-badge class="mark" :value="hdMsgCount" />
</router-link> </router-link>-->
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item @click.native="setting = true"> <el-dropdown-item @click.native="goMsg(msgCount)">
<span>消息通知</span> <span>消息通知</span>
<el-badge class="mark" :value="msgCount" /> <el-badge class="mark" :value="msgCount" />
</el-dropdown-item> </el-dropdown-item>
@ -121,6 +122,20 @@
} }
}, },
methods: { methods: {
goHD(msgC){
if(msgC!=0){
this.$router.push({
path: '/ehsHiddenDangerMenu/ehsHiddenDanger', query: {overTime: "10" }
});
}
},
goMsg(msgC){
if(msgC!=0){
this.$router.push({
path: '/ehsNoticeMessage/ehsNoticeMessageDept', query: {noticeType: "0" }
});
}
},
getUnread() { getUnread() {
console.log("定时任务"); console.log("定时任务");
getUnread().then(response => { getUnread().then(response => {

Loading…
Cancel
Save