Bug Fixing PPOB
This commit is contained in:
parent
0a0043464e
commit
f33b031932
|
@ -56,6 +56,7 @@ export const DetailUser = observer(() => {
|
||||||
await Promise.allSettled([
|
await Promise.allSettled([
|
||||||
store.transaction.getDataHistoryTopUp(id),
|
store.transaction.getDataHistoryTopUp(id),
|
||||||
store.authentication.getProfit(id),
|
store.authentication.getProfit(id),
|
||||||
|
store.authentication.getProfile(),
|
||||||
store.transaction.getDetailHistoryTransaction(id),
|
store.transaction.getDetailHistoryTransaction(id),
|
||||||
store.membership.getDetail(id),
|
store.membership.getDetail(id),
|
||||||
store.role.getData(isAdmin),
|
store.role.getData(isAdmin),
|
||||||
|
|
|
@ -512,7 +512,7 @@ export const Payback = observer(() => {
|
||||||
label="Dari"
|
label="Dari"
|
||||||
rules={[{ required: true, message: "Please input Date!" }]}
|
rules={[{ required: true, message: "Please input Date!" }]}
|
||||||
>
|
>
|
||||||
<DatePicker style={{ width: "100%" }} />
|
<DatePicker style={{ width: "100%" }}/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="end_date"
|
name="end_date"
|
||||||
|
|
|
@ -57,10 +57,9 @@ export class Authentication {
|
||||||
async getProfit(id) {
|
async getProfit(id) {
|
||||||
try {
|
try {
|
||||||
const response = await http.get(`/auth/profile/${id}`);
|
const response = await http.get(`/auth/profile/${id}`);
|
||||||
console.log(response)
|
console.log(response,"Data Gambar Store")
|
||||||
this.dataProfit = response.body ?? [];
|
this.dataProfit = response.body ?? [];
|
||||||
this.listImage = this.dataProfit.userDetail?.image_store ? JSON.parse(this.dataProfit.userDetail?.image_store) : [];
|
this.listImage = this.dataProfit.userDetail?.image_store ? JSON.parse(this.dataProfit.userDetail?.image_store) : [];
|
||||||
|
|
||||||
this.total_data = response?.body?.count ?? 0;
|
this.total_data = response?.body?.count ?? 0;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
@ -70,7 +69,7 @@ export class Authentication {
|
||||||
async getProfile() {
|
async getProfile() {
|
||||||
try {
|
try {
|
||||||
const response = await http.get('/auth/profile');
|
const response = await http.get('/auth/profile');
|
||||||
console.log(response)
|
console.log(response,"Data Profile")
|
||||||
this.profileData = response.body;
|
this.profileData = response.body;
|
||||||
this.imageProfil = this.profileData.userDetail?.image_store ? JSON.parse(this.profileData.userDetail?.image_store) : [];
|
this.imageProfil = this.profileData.userDetail?.image_store ? JSON.parse(this.profileData.userDetail?.image_store) : [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user