Browse Source

Merge branch 'master' of http://119.23.210.103:3000/wy/mj_firm_former

zhangjingyuan 2 years ago
parent
commit
12fef55251
1 changed files with 20 additions and 5 deletions
  1. 20 5
      src/views/platform/message/inner/receive.vue

+ 20 - 5
src/views/platform/message/inner/receive.vue

@@ -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 => {