MrShi
2 天以前 44363d47ed8e2bc0a649833692d47740a877b49e
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)