Config Page
This commit is contained in:
		| @@ -85,14 +85,14 @@ export const DetailUser = observer(() => { | ||||
|                 <Text strong>Name</Text> | ||||
|               </Col> | ||||
|               <Col span={12}> | ||||
|                 <Text>{store.membership.data.userDetail?.name}</Text> | ||||
|                 <Text>{store.membership.dataDetail.userDetail?.name}</Text> | ||||
|               </Col> | ||||
|               <Col span={12}> | ||||
|                 <Text strong>Username</Text> | ||||
|               </Col> | ||||
|               <Col span={12}> | ||||
|                 <Text> | ||||
|                 {store.membership.data.superior?.username} | ||||
|                 {store.membership.dataDetail.superior?.username} | ||||
|                 </Text> | ||||
|               </Col> | ||||
|               <Col span={12}> | ||||
| @@ -100,21 +100,21 @@ export const DetailUser = observer(() => { | ||||
|               </Col> | ||||
|               <Col span={12}> | ||||
|                 <Text> | ||||
|                 {store.membership.data.roles?.name} | ||||
|                 {store.membership.dataDetail.roles?.name} | ||||
|                 </Text> | ||||
|               </Col> | ||||
|               <Col span={12}> | ||||
|                 <Text strong>Phone Number</Text> | ||||
|               </Col> | ||||
|               <Col span={12}> | ||||
|                 <Text>{store.membership.data.userDetail?.phone_number}</Text> | ||||
|                 <Text>{store.membership.dataDetail.userDetail?.phone_number}</Text> | ||||
|               </Col> | ||||
|               <Col span={12}> | ||||
|                 <Text strong>Status</Text> | ||||
|               </Col> | ||||
|               <Col span={12}> | ||||
|                 <Text> | ||||
|                   {store.authentication.profileData.superior?.isActive === true ? "Inaktif": "Aktif"} | ||||
|                   {store.membership.dataDetail.isActive === true ? "Aktif": "Inaktif"} | ||||
|                 </Text> | ||||
|               </Col> | ||||
|             </Row> | ||||
|   | ||||
| @@ -6,6 +6,7 @@ export class Membership { | ||||
|     pageSize = 10 | ||||
|     data = []; | ||||
|     total_data = 0 | ||||
|     dataDetail=[] | ||||
|  | ||||
|     constructor(ctx) { | ||||
|         this.ctx = ctx; | ||||
| @@ -32,7 +33,7 @@ export class Membership { | ||||
|         try { | ||||
|             const response = await http.get(`/users/`+id); | ||||
|             console.log(response,'Data Detail') | ||||
|             this.data = response.body.data | ||||
|             this.dataDetail = response.body.data | ||||
|             this.total_data = response?.body?.count ?? 0 | ||||
|         } catch (e) { | ||||
|             console.error(e); | ||||
|   | ||||
| @@ -58,7 +58,6 @@ export class Transaction { | ||||
|     async getDataCategories() { | ||||
|         try { | ||||
|             const response = await http.get(`/product/categories?page=${this.pageCategories}&pageSize=${this.pageSizeCategories}`); | ||||
|  | ||||
|             this.dataCategories = response.body.data ?? [] | ||||
|             this.total_dataCategories = response?.body?.count ?? 0 | ||||
|             if (this.dataCategories.length > 0) { | ||||
| @@ -72,7 +71,6 @@ export class Transaction { | ||||
|     async getDataHistoryTransaction() { | ||||
|         try { | ||||
|             const response = await http.get(`/transaction/history?page=${this.pageHistoryTransaction}&pageSize=${this.pageSizeHistoryTransaction}`); | ||||
|  | ||||
|             this.dataHistoryTransaction = response.body.data ?? [] | ||||
|             this.total_dataHistoryTransaction = response?.body?.count ?? 0 | ||||
|         } catch (e) { | ||||
| @@ -82,9 +80,9 @@ export class Transaction { | ||||
|  | ||||
|     async getDataHistoryTopUp(id) { | ||||
|         try { | ||||
|             console.log("Top up") | ||||
|             //console.log("Top up") | ||||
|             const response = await http.get(`/transaction/history-deposit?page=${this.pageHistoryTopUp}&user-destination=${id}`); | ||||
|             console.log(response,"data") | ||||
|             //console.log(response,"data") | ||||
|             this.dataHistoryTopUp = response.body.data ?? [] | ||||
|             this.total_dataHistoryTopUp = response?.body?.count ?? 0 | ||||
|         } catch (e) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user