fix: detail product

This commit is contained in:
caturbgs
2021-12-23 12:06:38 +07:00
parent 4ba8f07f93
commit a16f42145b
3 changed files with 34 additions and 45 deletions

View File

@@ -22,14 +22,15 @@ export class Transaction {
filterSubCategory = null;
pageHistoryTransaction = 0;
pageHistoryTopUp = 0;
pageSizeHistoryTransaction = 10
dataHistoryTransaction = [];
total_dataHistoryTransaction = 0;
dataHistoryTopUp=[];
pageHistoryTopUp = 0;
pageSizeHistoryTopUp = 10;
dataHistoryTopUp = [];
total_dataHistoryTopUp = 0;
constructor(ctx) {
this.ctx = ctx;
makeAutoObservable(this);
@@ -80,9 +81,7 @@ export class Transaction {
async getDataHistoryTopUp(id) {
try {
//console.log("Top up")
const response = await http.get(`/transaction/history-deposit?page=${this.pageHistoryTopUp}&user-destination=${id}`);
//console.log(response,"data")
const response = await http.get(`/transaction/history-deposit?page=${this.pageHistoryTopUp}&pageSize=${this.pageSizeHistoryTopUp}&user-destination=${id}`);
this.dataHistoryTopUp = response.body.data ?? []
this.total_dataHistoryTopUp = response?.body?.count ?? 0
} catch (e) {