@@ -157,10 +157,12 @@ export default { | |||
.getBasicTableList(Object.assign({}, this.page, this.searchParams)) | |||
.then((res) => { | |||
let data = res.data.data; | |||
this.dataList = this.reduceData(data); | |||
this.count=data.total | |||
this.dataList = this.reduceData(data.records); | |||
}) | |||
.catch((e) => { | |||
this.dataList = []; | |||
this.count=0 | |||
}) | |||
.finally(() => { | |||
this.loading = false; |
@@ -14,6 +14,7 @@ | |||
:data="dataList" | |||
:height="tableHeight" | |||
border | |||
:span-method="arraySpanMethod" | |||
> | |||
<el-table-column | |||
type="index" | |||
@@ -148,7 +149,8 @@ export default { | |||
.getRewardList(Object.assign({}, this.page, this.searchParams)) | |||
.then((res) => { | |||
let data = res.data.data; | |||
this.dataList = this.reduceData(data); | |||
this.count = data.total; | |||
this.dataList = this.reduceData(data.records); | |||
}) | |||
.catch((e) => { | |||
this.dataList = []; |
@@ -248,7 +248,7 @@ export default { | |||
.finally(() => { | |||
this.loading = false; | |||
}); | |||
}, | |||
}, | |||
edit(row) { | |||
this.showEdit = true; | |||
}, |