|
@@ -325,6 +325,7 @@
|
|
|
>
|
|
|
</el-breadcrumb>
|
|
|
</div>
|
|
|
+ <!--通知信息-->
|
|
|
<div
|
|
|
class="sl-header-li-websocket"
|
|
|
@mouseenter="updatecss"
|
|
@@ -338,7 +339,7 @@
|
|
|
:hidden="badgeshow"
|
|
|
>
|
|
|
<el-button type="text" size="small" @click="goMyTaskPage"
|
|
|
- >通知信息</el-button
|
|
|
+ > <i class="el-icon-message-solid" style="width:30px;height: 30px;"></i></el-button
|
|
|
>
|
|
|
</el-badge>
|
|
|
<div
|
|
@@ -968,6 +969,9 @@ export default {
|
|
|
console.log(this.$route, 'this.route')
|
|
|
console.log('获取到的orgCode+++++++++++++' + this.orgcodezs)
|
|
|
this.getinformation()
|
|
|
+ let timer=setInterval(()=>{
|
|
|
+ this.getinformation()
|
|
|
+ },1000*60)
|
|
|
},
|
|
|
destroyed() {
|
|
|
// 销毁浏览器返回监听
|
|
@@ -1174,6 +1178,7 @@ export default {
|
|
|
this.taskAllNum = res.data.data
|
|
|
}
|
|
|
})
|
|
|
+ this.getinformation()
|
|
|
},
|
|
|
// 判断是否为公司其他平台模块且处于开发模式
|
|
|
isDev(url) {
|
|
@@ -2642,7 +2647,15 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
updatecss() {
|
|
|
- this.socketshow = true
|
|
|
+ console.log("taskAllNum")
|
|
|
+ console.log(this.taskAllNum)
|
|
|
+ if(!this.taskAllNum){
|
|
|
+ console.log("进入了弹出框的判断1")
|
|
|
+ this.socketshow = false
|
|
|
+ }else{
|
|
|
+ console.log("进入了弹出框的判断2")
|
|
|
+ this.socketshow=true
|
|
|
+ }
|
|
|
//let height = document.body.clientHeight - 125
|
|
|
/*this.$nextTick(() => {
|
|
|
$('.Web_Notice')[0].style.height = height + 'px;'
|
|
@@ -2652,12 +2665,23 @@ export default {
|
|
|
this.socketshow = false
|
|
|
},
|
|
|
getinformation() {
|
|
|
+ this.taskAllNum=0
|
|
|
+ this.noticedata=[]
|
|
|
console.log('获取到的userId----------------' + this.userId)
|
|
|
this.axios
|
|
|
- .post('/api/v1/ams/getNotice', { userId: this.userId })
|
|
|
+ .post('/api/v1/ams/getNoticeAll', { userId: this.userId })
|
|
|
.then(res => {
|
|
|
- this.noticedata = res.data.data
|
|
|
- this.taskAllNum = res.data.data[0].taskAllNum
|
|
|
+ console.log("进入了获取数据的方法")
|
|
|
+ res.data.data.forEach((e)=>{
|
|
|
+ console.log("进入了数据的遍历")
|
|
|
+ if(e.status==0&&e.insertusername!='销售审核'){
|
|
|
+ console.log("进入了数据的插入")
|
|
|
+ this.taskAllNum++;
|
|
|
+ this.noticedata.push(e)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ //this.taskAllNum = res.data.data.length
|
|
|
+ console.log("获取到的数据")
|
|
|
console.log(this.noticedata)
|
|
|
console.log(this.taskAllNum)
|
|
|
if (this.taskAllNum != null) {
|