Browse Source

首页--右上角消息通知、待办数量

master
yunuo970428 2 years ago
parent
commit
0e3f420970
  1. 22
      supervise-portal-ui/src/views/Home/Home.vue

22
supervise-portal-ui/src/views/Home/Home.vue

@ -45,10 +45,12 @@
<el-col style="margin-left: 70px;" :span="10"> -->
<div class="grid-content bg-rtop" style="width: 50%;">
<!-- <img class="anrui" src="@/assets/home/anrui.png"> -->
<div style="display: flex;flex-direction: row;justify-content: space-between;align-items: center">
<span class="rt_title">消息通知</span>
<div>
<a style="text-decoration: none;padding: 10px 20px;background-color: #0a59f7;color: #FFFFFF" target="_blank" href="http://jg.yyundong.com/message/#/message/unreadmessage">更多</a>
<div class="rt_title" >
<div style="display: flex;flex-direction: row;justify-content: space-between;align-items: center">
<span>消息通知</span>
<div>
<a style="text-decoration: none;padding: 5px 15px;background-color: #0294d7;color: #FFFFFF" target="_blank" :href="'http://jg.yyundong.com/message/#/message/unreadmessage?token=' + token" >更多</a>
</div>
</div>
</div>
@ -289,6 +291,7 @@
workCount: ''
},
message_list: [],
token: '',
dialogVisible: false,
form: {
original: '',
@ -310,6 +313,7 @@
beforeCreate() {},
created() {
this.getsPasswordByUserSid()
this.token = getStorage()
},
mounted() {
this.Orgname = window.sessionStorage.getItem('Orgname')
@ -345,11 +349,11 @@
// })
},
getNum() {
// getTodoNum(window.sessionStorage.getItem('userSid')).then(resp => {
// if (resp.success) {
// this.shuliang.workCount = resp.data
// }
// })
getTodoNum(window.sessionStorage.getItem('userSid')).then(resp => {
if (resp.success) {
this.shuliang.workCount = resp.data
}
})
messageNotice(window.sessionStorage.getItem('userSid')).then((resp) => {
if (resp.success && resp.data !== null) {
this.message_list = resp.data

Loading…
Cancel
Save