|
@@ -54,9 +54,14 @@ var vm = new Vue({
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- console.log(this.time)
|
|
|
|
|
|
+ // 如果订阅消息进来时间不清空
|
|
if(this.time !== '') {
|
|
if(this.time !== '') {
|
|
|
|
+ sessionStorage.setItem(this.sessStorageKey, JSON.stringify(this.$data))
|
|
this.setPushTime(this.time)
|
|
this.setPushTime(this.time)
|
|
|
|
+ this.revorceOtherData()
|
|
|
|
+ }else{
|
|
|
|
+ // 清空筛选数据
|
|
|
|
+ this.revorceData()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -119,7 +124,28 @@ var vm = new Vue({
|
|
}
|
|
}
|
|
return !!$data
|
|
return !!$data
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ // 清空筛选数据
|
|
|
|
+ revorceData: function() {
|
|
|
|
+ this.time = ''
|
|
|
|
+ this.area = ''
|
|
|
|
+ this.subtype = ''
|
|
|
|
+ this.subscopeclass = ''
|
|
|
|
+ this.key = ''
|
|
|
|
+ this.buyerclass = ''
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.$nextTick(this.getAjaXParams())
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ revorceOtherData: function() {
|
|
|
|
+ this.area = ''
|
|
|
|
+ this.subtype = ''
|
|
|
|
+ this.subscopeclass = ''
|
|
|
|
+ this.key = ''
|
|
|
|
+ this.buyerclass = ''
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.$nextTick(this.getAjaXParams())
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 订阅推送消息展示数据
|
|
// 订阅推送消息展示数据
|
|
setPushTime: function(time) {
|
|
setPushTime: function(time) {
|
|
console.log(time)
|
|
console.log(time)
|
|
@@ -140,9 +166,7 @@ var vm = new Vue({
|
|
url: '/publicapply/bidcoll/power',
|
|
url: '/publicapply/bidcoll/power',
|
|
type: 'POST',
|
|
type: 'POST',
|
|
success: function(res) {
|
|
success: function(res) {
|
|
- if(res.data.member) {
|
|
|
|
- $(".switch").addClass("only-member");
|
|
|
|
- }
|
|
|
|
|
|
+ // 如果是商机管理、大会员、超级订阅会员有筛选权限
|
|
if(res.data.entniche || res.data.member || res.data.vip > 0) {
|
|
if(res.data.entniche || res.data.member || res.data.vip > 0) {
|
|
_this.screenShow = true
|
|
_this.screenShow = true
|
|
} else {
|
|
} else {
|