|
@@ -968,9 +968,10 @@ export default {
|
|
|
}
|
|
|
console.log(this.$route, 'this.route')
|
|
|
console.log('获取到的orgCode+++++++++++++' + this.orgcodezs)
|
|
|
- let timer=setTimeout(()=>{
|
|
|
+ this.getinformation()
|
|
|
+ let timer=setInterval(()=>{
|
|
|
this.getinformation()
|
|
|
- },2000)
|
|
|
+ },1000*60)
|
|
|
},
|
|
|
destroyed() {
|
|
|
// 销毁浏览器返回监听
|
|
@@ -1177,6 +1178,7 @@ export default {
|
|
|
this.taskAllNum = res.data.data
|
|
|
}
|
|
|
})
|
|
|
+ this.getinformation()
|
|
|
},
|
|
|
// 判断是否为公司其他平台模块且处于开发模式
|
|
|
isDev(url) {
|
|
@@ -2645,7 +2647,9 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
updatecss() {
|
|
|
- if(this.badgeshow==false){
|
|
|
+ console.log("taskAllNum")
|
|
|
+ console.log(this.taskAllNum)
|
|
|
+ if(!this.taskAllNum){
|
|
|
console.log("进入了弹出框的判断1")
|
|
|
this.socketshow = false
|
|
|
}else{
|
|
@@ -2661,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/getNoticeAll', { userId: this.userId })
|
|
|
.then(res => {
|
|
|
- this.noticedata = res.data.data
|
|
|
- this.taskAllNum = res.data.data.length
|
|
|
+ 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) {
|