Config Menu

This commit is contained in:
2021-12-23 11:53:07 +07:00
parent 6b22d2e264
commit ce2d2e1072
16 changed files with 572 additions and 507 deletions

View File

@@ -28,6 +28,16 @@ export class Membership {
console.error(e);
}
}
async getDetail(id) {
try {
const response = await http.get(`/users/`+id);
console.log(response,'Data Detail')
this.data = response.body.data
this.total_data = response?.body?.count ?? 0
} catch (e) {
console.error(e);
}
}
async getDataBySuperior() {
try {

View File

@@ -84,7 +84,7 @@ export class Transaction {
try {
console.log("Top up")
const response = await http.get(`/transaction/history-deposit?page=${this.pageHistoryTopUp}&user-destination=${id}`);
console.log(response,"data")
this.dataHistoryTopUp = response.body.data ?? []
this.total_dataHistoryTopUp = response?.body?.count ?? 0
} catch (e) {