Browse Source

bug修复

chenrui 3 years ago
parent
commit
612f507c79
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/views/setting/notice/list.vue

+ 6 - 2
src/views/setting/notice/list.vue

@@ -94,7 +94,8 @@ export default {
       if (a !== b && a) {
         // 新未读消息
         if (a.type == 'no_read_count') {
-          this.resetSearchForm()
+          this.resetData()
+          this.handelSearch()
         }
       }
     }
@@ -156,6 +157,10 @@ export default {
     },
     //  重置
     resetSearchForm () {
+      this.resetData()
+      this.handelSearch(1)
+    },
+    resetData () {
       this.$refs.rangeDate.resetDate()
       this.queryParam.beginDate = ''
       this.queryParam.endDate = ''
@@ -164,7 +169,6 @@ export default {
       this.pageSize = 10
       this.paginationProps.total = 0
       this.paginationProps.current = 1
-      this.handelSearch(1)
     },
     //  详情
     handleDetail (row) {