doum
19 小时以前 d8d6661b4736e5de37d4a158b8286509b748d62b
admin/src/components/base/BaseTable.vue
@@ -33,6 +33,7 @@
        sorts: [],
        // 当前页数据
        list: [],
        totalData:{},
        // 分页
        pagination: {
          pageIndex: 1,
@@ -124,6 +125,9 @@
        .then(data => {
          this.tableData.list = data.records
          this.tableData.pagination.total = data.total
          if (this.tableData.pagination.pageIndex === 1) {
            this.tableData.totalData = data.countData || {}
          }
        })
        .catch(e => {
          this.$tip.apiFailed(e)