|
|
@ -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 => {
|
|
|
|