Tambah Role Customer Service
This commit is contained in:
		| @@ -40,6 +40,9 @@ export class Transaction { | ||||
|   dataHistoryTopUp = []; | ||||
|   total_dataHistoryTopUp = 0; | ||||
|  | ||||
|   dataHistoryTopUpProfile = []; | ||||
|   total_dataHistoryTopUpProfile = 0; | ||||
|  | ||||
|   dataTransaction = []; | ||||
|   dataTransactionB2B = []; | ||||
|   dataTransactionPartner = []; | ||||
| @@ -165,6 +168,19 @@ export class Transaction { | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   async getDataHistoryTopUpProfile(id) { | ||||
|     try { | ||||
|       const response = await http.get( | ||||
|         `/transaction/history-deposit-profile?page=${this.page}&pageSize=${this.pageSize}&user-destination=${id}` | ||||
|       ); | ||||
|       console.log(response,'get data history Profile') | ||||
|       this.dataHistoryTopUpProfile = response.body.data ?? []; | ||||
|       this.total_dataHistoryTopUpProfile = response?.body?.count ?? 0; | ||||
|     } catch (e) { | ||||
|       console.error(e); | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   async create(data) { | ||||
|     try { | ||||
|       const response = await http.post("/product").send(data); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user