|
|
@@ -142,14 +142,20 @@
|
|
|
icon: 'ibps-icon-reply-all',
|
|
|
label: '回复',
|
|
|
hidden: function (row, index) {
|
|
|
- return (row.canreply === 0 || row.messageType === 'system' || row.messageType === 'bulletin')
|
|
|
+ return (row.canreply === 0 || row.messageType === 'system' || row.messageType === 'bulletin'|| row.subject =='文件发放通知')
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- key: 'remove'
|
|
|
+ key: 'remove',
|
|
|
+ hidden: function (row, index) {
|
|
|
+ return (row.subject =='文件发放通知')
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
- key: 'detail'
|
|
|
+ key: 'detail',
|
|
|
+ hidden: function (row, index) {
|
|
|
+ return (row.subject =='文件发放通知')
|
|
|
+ }
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
@@ -227,10 +233,19 @@
|
|
|
this.search()
|
|
|
break
|
|
|
case 'markRead': // 标记为已读
|
|
|
- ActionUtils.selectedMultiRecord(selection).then(id => {
|
|
|
+ try {
|
|
|
+ data.forEach(el => {
|
|
|
+ if(el.subject='文件发放通知'){
|
|
|
+ throw new Error('所选数据存在文件发放通知,文件发放通知请勿点击已读。')
|
|
|
+ }
|
|
|
+ ActionUtils.selectedMultiRecord(selection).then(id => {
|
|
|
this.handleAlreadyRead(id)
|
|
|
// this.isEnvelope = false
|
|
|
- }).catch(() => {})
|
|
|
+ }).catch(() => { })
|
|
|
+ });
|
|
|
+ } catch (error) {
|
|
|
+ ActionUtils.warning(error.message)
|
|
|
+ }
|
|
|
break
|
|
|
case 'reply': // 回复
|
|
|
ActionUtils.selectedRecord(selection).then(id => {
|