|
@@ -700,37 +700,70 @@ export default {
|
|
}
|
|
}
|
|
}).then(res => {
|
|
}).then(res => {
|
|
res.data.forEach(item => {
|
|
res.data.forEach(item => {
|
|
- this.$notify({
|
|
|
|
- title: '新消息',
|
|
|
|
- position: 'bottom-right',
|
|
|
|
- duration: 30000,
|
|
|
|
- message: that.$createElement(
|
|
|
|
- 'div',
|
|
|
|
- {
|
|
|
|
- style: 'cursor: pointer;text-align: left;',
|
|
|
|
- on: {
|
|
|
|
- click: that.toDetail.bind(
|
|
|
|
- that,
|
|
|
|
- item.adminNoticeType,
|
|
|
|
- item.paidType,
|
|
|
|
- item.adminNoticeType == 'NOTICE' ? item.noticeId : item.orderId,
|
|
|
|
- item.id
|
|
|
|
|
|
+ if (item.adminNoticeType == 'WDTZ') {
|
|
|
|
+ this.$notify({
|
|
|
|
+ title: '新消息',
|
|
|
|
+ position: 'bottom-right',
|
|
|
|
+ duration: 30000,
|
|
|
|
+ message: that.$createElement(
|
|
|
|
+ 'div',
|
|
|
|
+ {
|
|
|
|
+ style: 'cursor: pointer;text-align: left;',
|
|
|
|
+ on: {
|
|
|
|
+ click: that.toDetail.bind(
|
|
|
|
+ that,
|
|
|
|
+ item.adminNoticeType,
|
|
|
|
+ item.paidType,
|
|
|
|
+ item.adminNoticeType == 'NOTICE' ? item.noticeId : item.orderId,
|
|
|
|
+ item.id
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ [
|
|
|
|
+ that.$createElement('span', null, `【网点通知】`),
|
|
|
|
+ that.$createElement(
|
|
|
|
+ 'span',
|
|
|
|
+ {
|
|
|
|
+ style: 'color: #409EFF;'
|
|
|
|
+ },
|
|
|
|
+ ` ` + item.title + { GL: '管理', JS: '技术', QT: '其他', ZC: '政策', ZX: '资讯' }[item.type]
|
|
)
|
|
)
|
|
- }
|
|
|
|
- },
|
|
|
|
- [
|
|
|
|
- that.$createElement('span', null, that.statusFilter(item.adminNoticeType) + ' '),
|
|
|
|
- that.$createElement(
|
|
|
|
- 'span',
|
|
|
|
- {
|
|
|
|
- style: 'color: #409EFF;'
|
|
|
|
- },
|
|
|
|
- ' ' + item.adminNoticeType == 'NOTICE' ? item.title : item.orderId
|
|
|
|
- ),
|
|
|
|
- that.$createElement('span', null, item.adminNoticeType == 'NOTICE' ? '' : item.content)
|
|
|
|
- ]
|
|
|
|
- )
|
|
|
|
- })
|
|
|
|
|
|
+ ]
|
|
|
|
+ )
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ this.$notify({
|
|
|
|
+ title: '新消息',
|
|
|
|
+ position: 'bottom-right',
|
|
|
|
+ duration: 30000,
|
|
|
|
+ message: that.$createElement(
|
|
|
|
+ 'div',
|
|
|
|
+ {
|
|
|
|
+ style: 'cursor: pointer;text-align: left;',
|
|
|
|
+ on: {
|
|
|
|
+ click: that.toDetail.bind(
|
|
|
|
+ that,
|
|
|
|
+ item.adminNoticeType,
|
|
|
|
+ item.paidType,
|
|
|
|
+ item.adminNoticeType == 'NOTICE' ? item.noticeId : item.orderId,
|
|
|
|
+ item.id
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ [
|
|
|
|
+ that.$createElement('span', null, that.statusFilter(item.adminNoticeType) + ' '),
|
|
|
|
+ that.$createElement(
|
|
|
|
+ 'span',
|
|
|
|
+ {
|
|
|
|
+ style: 'color: #409EFF;'
|
|
|
|
+ },
|
|
|
|
+ ' ' + item.adminNoticeType == 'NOTICE' ? item.title : item.orderId
|
|
|
|
+ ),
|
|
|
|
+ that.$createElement('span', null, item.adminNoticeType == 'NOTICE' ? '' : item.content)
|
|
|
|
+ ]
|
|
|
|
+ )
|
|
|
|
+ })
|
|
|
|
+ }
|
|
})
|
|
})
|
|
})
|
|
})
|
|
}, 30000)
|
|
}, 30000)
|