cfort 3 anos atrás
pai
commit
04098da7e7

+ 63 - 65
src/layout/header-aside/components/header-message/index.vue

@@ -98,72 +98,70 @@ export default {
                 ],
                 requestPage: { limit: 5, pageNo: 1, totalCount: 0 },
                 sorts: []
-            })
-                .then((response) => {
-                    const data = response.data
+            }).then((response) => {
+                const data = response.data
 
-                    this.messageList = data.dataResult
-                    this.messageCount = data.pageResult ? data.pageResult.totalCount : 0
-                    this.countNumber = data.pageResult.totalCount
-                    // if (this.countNumber == 0) {
-                    //     // if(response.data.pageResult.totalCount>0){
-                    //     //     this.$message.warning('您有'+response.data.pageResult.totalCount+'条未处理的 [ 待审批 / 被驳回任务消息 ],请及时处理!!!')
-                    //     // }
-                    // } else if (this.countNumber < data.pageResult.totalCount) {
-                    //     //如果上次记录数量低于本次  进行提醒,准备待办
-                    //     let _this = this
-                    //     let h = this.$createElement
-                    //     let num = data.pageResult.totalCount - this.countNumber
-                    //     this.infoMessage = this.$notify({
-                    //         title: '您有新的待办任务产生!',
-                    //         message: h('p', null, [
-                    //             h('span', null, '任务内容: ' + data.dataResult[0].subject),
-                    //             h('br'),
-                    //             h('span', null, '生成时间: '),
-                    //             h('span', { style: 'color: #FF8C00;font-size:12px;' }, data.dataResult[0].createTime),
-                    //             h('br'),
-                    //             h('el-button', {
-                    //                 attrs: {
-                    //                     size: 'mini',
-                    //                     type: 'primary',
-                    //                     plain: true
-                    //                 },
-                    //                 on: {
-                    //                     click: () => {
-                    //                         _this.cancelInfo()
-                    //                     }
-                    //                 }
-                    //             }, '进入办理'),
-                    //             h('el-button', {
-                    //                 attrs: {
-                    //                     size: 'mini',
-                    //                     plain: true
-                    //                 },
-                    //                 on: {
-                    //                     click: () => {
-                    //                         _this.$notify.closeAll()
-                    //                     } // 路由加载之后,调用关闭消息弹窗的方法
-                    //                 }
-                    //             }, '忽略全部')
-                    //         ]),
-                    //         type: 'warning',
-                    //         duration: 0
-                    //     })
-                    // }
-                    // if (this.countNumber == 0) {
-                    //     this.countNumber = data.pageResult.totalCount
-                    //     // setInterval(() => {
-                    //     //     if(this.isControl &&  response.message == "获取收到的内部消息列表成功!"){
-                    //     //         this.loadData()
-                    //     //     }
-                    //     // }, 60000)
-                    // } else {
-                    //     this.countNumber = data.pageResult.totalCount
-                    // }
-                })
-                .catch(() => {
-                    this.isControl = false
-                })
+                this.messageList = data.dataResult
+                this.messageCount = data.pageResult ? data.pageResult.totalCount : 0
+                this.countNumber = data.pageResult.totalCount
+                // if (this.countNumber == 0) {
+                //     // if(response.data.pageResult.totalCount>0){
+                //     //     this.$message.warning('您有'+response.data.pageResult.totalCount+'条未处理的 [ 待审批 / 被驳回任务消息 ],请及时处理!!!')
+                //     // }
+                // } else if (this.countNumber < data.pageResult.totalCount) {
+                //     //如果上次记录数量低于本次  进行提醒,准备待办
+                //     let _this = this
+                //     let h = this.$createElement
+                //     let num = data.pageResult.totalCount - this.countNumber
+                //     this.infoMessage = this.$notify({
+                //         title: '您有新的待办任务产生!',
+                //         message: h('p', null, [
+                //             h('span', null, '任务内容: ' + data.dataResult[0].subject),
+                //             h('br'),
+                //             h('span', null, '生成时间: '),
+                //             h('span', { style: 'color: #FF8C00;font-size:12px;' }, data.dataResult[0].createTime),
+                //             h('br'),
+                //             h('el-button', {
+                //                 attrs: {
+                //                     size: 'mini',
+                //                     type: 'primary',
+                //                     plain: true
+                //                 },
+                //                 on: {
+                //                     click: () => {
+                //                         _this.cancelInfo()
+                //                     }
+                //                 }
+                //             }, '进入办理'),
+                //             h('el-button', {
+                //                 attrs: {
+                //                     size: 'mini',
+                //                     plain: true
+                //                 },
+                //                 on: {
+                //                     click: () => {
+                //                         _this.$notify.closeAll()
+                //                     } // 路由加载之后,调用关闭消息弹窗的方法
+                //                 }
+                //             }, '忽略全部')
+                //         ]),
+                //         type: 'warning',
+                //         duration: 0
+                //     })
+                // }
+                // if (this.countNumber == 0) {
+                //     this.countNumber = data.pageResult.totalCount
+                //     // setInterval(() => {
+                //     //     if(this.isControl &&  response.message == "获取收到的内部消息列表成功!"){
+                //     //         this.loadData()
+                //     //     }
+                //     // }, 60000)
+                // } else {
+                //     this.countNumber = data.pageResult.totalCount
+                // }
+            }).catch(() => {
+                this.isControl = false
+            })
         },
         cancelInfo() {
             this.$router.push('/officeDesk/pendingItems')