Perbaikan Project PPOB

This commit is contained in:
2022-01-03 13:44:11 +07:00
parent 6201ce4ad0
commit c95bd3eca3
4 changed files with 23 additions and 6 deletions

View File

@@ -8,6 +8,7 @@ export class Authentication {
isLoginLoading = false;
ctx;
profileData = {};
dataProfit=[]
constructor(ctx) {
this.ctx = ctx;
@@ -51,6 +52,17 @@ export class Authentication {
}
}
async getProfit(id) {
try {
const response = await http.get(`/auth/profile/${id}`);
console.log(response)
this.dataProfit = response.body ?? [];
this.total_data = response?.body?.count ?? 0;
} catch (e) {
console.error(e);
}
}
async getProfile() {
try {
const response = await http.get('/auth/profile');

View File

@@ -40,6 +40,7 @@ export class Transaction {
dataTransactionB2B = [];
dataTransactionPartner = [];
//filter
visibleModalFilterTransaction = false;
filterStart = null;
@@ -51,6 +52,7 @@ export class Transaction {
makeAutoObservable(this);
}
async getData() {
try {
const response = await http.get(