diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue index f3c1f58..81197fb 100644 --- a/pages/center/consumer/consumerDetail.vue +++ b/pages/center/consumer/consumerDetail.vue @@ -626,11 +626,17 @@ setTimeout(function() { uni.hideLoading(); }, 2000); - uni.showToast({ - icon: 'none', - title: '暂无录音', - duration: 2000 - }); + console.log(this.checkAuthority('设备日志')) + if (this.checkAuthority('设备日志')) { + uni.navigateTo({ + url: `/pages/mine/equipmentLog?id=${item.id}` + }) + } else { + uni.showToast({ + icon: "none", + title: "暂无录音" + }) + } return } else { const parames = { @@ -652,10 +658,17 @@ uni.hideLoading(); }, 2000); if (res == null) { - uni.showToast({ - icon: "none", - title: "暂无音频" - }) + console.log(this.checkAuthority('设备日志')) + if (this.checkAuthority('设备日志')) { + uni.navigateTo({ + url: `/pages/mine/equipmentLog?id=${item.id}` + }) + } else { + uni.showToast({ + icon: "none", + title: "暂无音频" + }) + } return } if (res[0].merge == 0) { diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue index 96a273e..b8d030c 100644 --- a/pages/center/records/index.vue +++ b/pages/center/records/index.vue @@ -659,14 +659,20 @@ uni.setStorageSync("searchobj", item1); //写入缓存 uni.setStorageSync("entrance", 1); //写入缓存 this.$u.post("/corpus/findByPage", parames).then(res => { + setTimeout(function() { + uni.hideLoading(); + }, 2000); if (res == null) { - setTimeout(function() { - uni.hideLoading(); - }, 2000); - uni.showToast({ - icon: "none", - title: "暂无音频" - }) + if (this.checkAuthority('设备日志')) { + uni.navigateTo({ + url: `/pages/mine/equipmentLog?id=${item1.customerId}` + }) + } else { + uni.showToast({ + icon: "none", + title: "暂无音频" + }) + } return } else { setTimeout(function() { diff --git a/pages/mine/ScoringPlaylist.vue b/pages/mine/ScoringPlaylist.vue index cdbbac2..5b2d365 100644 --- a/pages/mine/ScoringPlaylist.vue +++ b/pages/mine/ScoringPlaylist.vue @@ -1,200 +1,195 @@