|
|
@ -87,6 +87,7 @@
|
|
|
|
</u-tabbar-item>
|
|
|
|
</u-tabbar-item>
|
|
|
|
</u-tabbar>
|
|
|
|
</u-tabbar>
|
|
|
|
</scroll-view>
|
|
|
|
</scroll-view>
|
|
|
|
|
|
|
|
<!-- <audio id="myAudio" src="../static/dingdong.mp3" preload="auto" style="display: none;"></audio> -->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -125,14 +126,16 @@
|
|
|
|
lable: 2,
|
|
|
|
lable: 2,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}, {
|
|
|
|
},
|
|
|
|
name: '审核通过',
|
|
|
|
// {
|
|
|
|
badge: {
|
|
|
|
// name: '审核通过',
|
|
|
|
value: 0,
|
|
|
|
// badge: {
|
|
|
|
lable: 3,
|
|
|
|
// value: 0,
|
|
|
|
}
|
|
|
|
// lable: 3,
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
}, ],
|
|
|
|
// },
|
|
|
|
|
|
|
|
],
|
|
|
|
massEventsObj: {
|
|
|
|
massEventsObj: {
|
|
|
|
msgType: "1", //事件类型编码【群体事件】1【同人同诉】2【紧急事件】3【重点人员】4【一人多诉】5
|
|
|
|
msgType: "1", //事件类型编码【群体事件】1【同人同诉】2【紧急事件】3【重点人员】4【一人多诉】5
|
|
|
|
isReport: null, //为未通过 2为已办结 3为作废
|
|
|
|
isReport: null, //为未通过 2为已办结 3为作废
|
|
|
@ -153,6 +156,19 @@
|
|
|
|
}, {
|
|
|
|
}, {
|
|
|
|
count: 0
|
|
|
|
count: 0
|
|
|
|
}, ],
|
|
|
|
}, ],
|
|
|
|
|
|
|
|
msgTypecountTwo: [{
|
|
|
|
|
|
|
|
count: 0
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
count: 0
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
count: 0
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
count: 0
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
count: 0
|
|
|
|
|
|
|
|
}, ],
|
|
|
|
|
|
|
|
innerAudioContext:null,
|
|
|
|
|
|
|
|
Time:null,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -164,6 +180,10 @@
|
|
|
|
this.massEventsObj.current = 1
|
|
|
|
this.massEventsObj.current = 1
|
|
|
|
this.massEventsObj.title = ""
|
|
|
|
this.massEventsObj.title = ""
|
|
|
|
this.getList()
|
|
|
|
this.getList()
|
|
|
|
|
|
|
|
clearInterval(this.Time)
|
|
|
|
|
|
|
|
this.Time = setInterval(()=>{
|
|
|
|
|
|
|
|
this.geteventPageCount()
|
|
|
|
|
|
|
|
},5000)
|
|
|
|
// console.log(e);
|
|
|
|
// console.log(e);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//搜索
|
|
|
|
//搜索
|
|
|
@ -182,6 +202,10 @@
|
|
|
|
//navbarValue 头部标题
|
|
|
|
//navbarValue 头部标题
|
|
|
|
//tabscurrent 区分待审核0, 已上报1 重训练2
|
|
|
|
//tabscurrent 区分待审核0, 已上报1 重训练2
|
|
|
|
// item
|
|
|
|
// item
|
|
|
|
|
|
|
|
clearInterval(this.Time)
|
|
|
|
|
|
|
|
this.Time = setInterval(()=>{
|
|
|
|
|
|
|
|
this.geteventPageCount()
|
|
|
|
|
|
|
|
},5000)
|
|
|
|
uni.navigateTo({
|
|
|
|
uni.navigateTo({
|
|
|
|
url: `/views/jiashicangshenhe/jiashicangshenhe?navbarValue=${this.navbarValue}&tabscurrent=${this.tabscurrent}&innerEventId=${item.innerEventId}`
|
|
|
|
url: `/views/jiashicangshenhe/jiashicangshenhe?navbarValue=${this.navbarValue}&tabscurrent=${this.tabscurrent}&innerEventId=${item.innerEventId}`
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -203,7 +227,11 @@
|
|
|
|
this.tabscurrent = 0
|
|
|
|
this.tabscurrent = 0
|
|
|
|
this.geteventPageCount()
|
|
|
|
this.geteventPageCount()
|
|
|
|
await this.getList();
|
|
|
|
await this.getList();
|
|
|
|
this.goTop()
|
|
|
|
this.goTop();
|
|
|
|
|
|
|
|
clearInterval(this.Time)
|
|
|
|
|
|
|
|
this.Time = setInterval(()=>{
|
|
|
|
|
|
|
|
this.geteventPageCount()
|
|
|
|
|
|
|
|
},5000)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
scroll(e) {
|
|
|
|
scroll(e) {
|
|
|
|
//记录scroll 位置
|
|
|
|
//记录scroll 位置
|
|
|
@ -262,16 +290,40 @@
|
|
|
|
// console.log(res);
|
|
|
|
// console.log(res);
|
|
|
|
this.list1[0].badge.value = res.data
|
|
|
|
this.list1[0].badge.value = res.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
fiveEventCount().then(res => {
|
|
|
|
fiveEventCount().then(res => {
|
|
|
|
this.msgTypecount = res.data
|
|
|
|
this.msgTypecount = [...res.data]
|
|
|
|
this.msgTypecount = this.msgTypecount.sort((a, b) => {
|
|
|
|
this.msgTypecount = this.msgTypecount.sort((a, b) => {
|
|
|
|
return a.msgType - b.msgType;
|
|
|
|
return a.msgType - b.msgType;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
this.isDingdong()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
isDingdong(){
|
|
|
|
|
|
|
|
if(this.msgTypecountTwo[0].count == 0) {
|
|
|
|
|
|
|
|
this.msgTypecountTwo = [...this.msgTypecount]
|
|
|
|
|
|
|
|
this.msgTypecountTwo = this.msgTypecountTwo.sort((a, b) => {
|
|
|
|
|
|
|
|
return a.msgType - b.msgType;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
console.log(this.msgTypecountTwo,"msgTypecountTwo");
|
|
|
|
|
|
|
|
console.log(this.msgTypecount,"msgTypecount");
|
|
|
|
|
|
|
|
// const isDD = this.msgTypecount.some((obj1, index) => obj1.count !== this.msgTypecountTwo[index].count)
|
|
|
|
|
|
|
|
let arr = []
|
|
|
|
|
|
|
|
for (let i = 0; i < this.msgTypecount.length; i++) {
|
|
|
|
|
|
|
|
if (this.msgTypecount[i].count > this.msgTypecountTwo[i].count) {
|
|
|
|
|
|
|
|
arr.push({index:i})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(arr.length > 0) {
|
|
|
|
|
|
|
|
this.msgTypecountTwo = [...this.msgTypecount]
|
|
|
|
|
|
|
|
this.msgTypecountTwo = this.msgTypecountTwo.sort((a, b) => {
|
|
|
|
|
|
|
|
return a.msgType - b.msgType;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.innerAudioContext.play()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// onLoad: function() {
|
|
|
|
// onLoad: function() {
|
|
|
@ -284,12 +336,25 @@
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
onShow() {
|
|
|
|
onShow() {
|
|
|
|
login("admin","Suanfa@2024//**...").then(res=>{
|
|
|
|
login("admin","Suanfa@2024//**...").then(res=>{
|
|
|
|
setToken(res.token)
|
|
|
|
setToken(res.token);
|
|
|
|
|
|
|
|
let src = require("../static/dingdong.mp3")
|
|
|
|
|
|
|
|
this.innerAudioContext = uni.createInnerAudioContext();
|
|
|
|
|
|
|
|
this.innerAudioContext.autoplay = true;
|
|
|
|
|
|
|
|
this.innerAudioContext.src = require("../static/dingdong.mp3");
|
|
|
|
this.getList()
|
|
|
|
this.getList()
|
|
|
|
this.geteventPageCount()
|
|
|
|
this.geteventPageCount()
|
|
|
|
this.$store.dispatch("Deletestate")
|
|
|
|
this.$store.dispatch("Deletestate")
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
beforeDestroy() {
|
|
|
|
|
|
|
|
// 页面销毁时销毁音频上下文
|
|
|
|
|
|
|
|
if (this.innerAudioContext) {
|
|
|
|
|
|
|
|
this.innerAudioContext.destroy();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(this.Time) {
|
|
|
|
|
|
|
|
clearInterval(this.Time)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|