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