소스 검색

修改数据

zhuxinbo 5 년 전
부모
커밋
d5c070a3e9
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/views/modules/Statistics/alipayStatistics.vue

+ 2 - 0
src/views/modules/Statistics/alipayStatistics.vue

@@ -427,6 +427,7 @@ export default {
     onTabChange(key, type) {
       console.log(key, type)
       this[type] = key
+      this.data = []
       if (key == 'day') {
         this.columns = columns
         this.data.push({ ...this.dataAll.dailyAccountReport, key: 1 })
@@ -440,6 +441,7 @@ export default {
         })
       }
       this.ipagination.total = this.data.length
+      this.ipagination.current = 1
     },
     disabledDate(current) {
       return current && current > moment().subtract(1, 'day')