Explorar el Código

fix:添加消息未读跟文件发放的逻辑关联

liujiayin hace 2 años
padre
commit
e9fc38d401

+ 14 - 3
src/views/platform/message/inner/detail/dialog.vue

@@ -126,6 +126,13 @@ export default {
                 this.handleCallback(true)
             })
         },
+        getId(arr){
+            let idArrs=[]
+            for(var i of arr){
+                idArrs.push(i.id)
+            }
+            return idArrs.join(',')
+        },
         // 消息确认,受控文件用
         confirmMsg () {
             // TODO
@@ -136,22 +143,26 @@ export default {
                 showClose: false,
                 closeOnClickModal: false
             }).then(() => {
+                console.log('userInfo',this.$store.getters.userInfo)
                 // TODO 受控文件逻辑处理
                 const perInfosId = this.$store.getters.userInfo.user.id
-                const perInfosorgId = this.$store.getters.userInfo.org.id
+                const perInfosName = this.$store.getters.userInfo.user.name
+                // const perInfosorgId = this.$store.getters.userInfo.org.id
+                const perInfosPositions = this.$store.getters.userInfo.positions
+
                 const sql = "select qian_zi_tu_wen_ FROM t_ryjbqk WHERE parent_id_ = '" + perInfosId + "'"
                 curdPost('sql', sql).then((ryjbqkRes) => {
                     const ryjbqkDatas = ryjbqkRes.variables.data
                     const tempObj = {
                         id_: generateUUID(),
                         parent_id_: this.tableId,
-                        tong_zhi_bu_men_i: perInfosorgId,
+                        tong_zhi_bu_men_: this.getId(perInfosPositions),
                         que_ren_qian_ming: JSON.stringify([{
                             id: ryjbqkDatas[0].qian_zi_tu_wen_,
                             fileName: '确认签名'
                         }]),
                         que_ren_ri_qi_: this.$common.getNow(10),
-                        qian_ming_id_: ryjbqkDatas[0].qian_zi_tu_wen_
+                        que_ren_ren_xing_: perInfosName
                     }
                     const returnParams = {
                         tableName: this.tableName.slice(0, this.tableName.indexOf('(')), // 字符串 "表名(发放时间)"

+ 9 - 3
src/views/platform/message/inner/receive.vue

@@ -165,14 +165,20 @@ export default {
                             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==="文件发放通知")
+                            }
                         }
                     ]
                 }