Merge branch 'develop' of https://gitlab.com/empatnusabangsa/ppob/ppob-frontend into develop
This commit is contained in:
commit
f01740f3c7
|
@ -391,7 +391,7 @@ export const PartnerComponent = observer((props) => {
|
||||||
)}
|
)}
|
||||||
{((idData && isChangePassword) || !idData) && (
|
{((idData && isChangePassword) || !idData) && (
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="password_account"
|
name="password"
|
||||||
label="Password Account"
|
label="Password Account"
|
||||||
rules={[
|
rules={[
|
||||||
idData
|
idData
|
||||||
|
|
|
@ -129,11 +129,11 @@ export const ProductComponent = observer((props) => {
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
if (store.authentication.userData.role !== "Admin") columns.pop();
|
if (store.authentication.userData.role !== "Admin") columns.pop();
|
||||||
if (store.authentication.userData.role !== "Admin") delete columns[2];
|
if (store.authentication.userData.role === "Admin Partner") delete columns[2];
|
||||||
if (store.authentication.userData.role === "Admin Partner") delete columns[3];
|
if (store.authentication.userData.role === "Admin Partner") delete columns[3];
|
||||||
|
if (store.authentication.userData.role != "Admin Partner") delete columns[4];
|
||||||
if (store.authentication.userData.role !== "Admin") delete columns[6];
|
if (store.authentication.userData.role !== "Admin") delete columns[6];
|
||||||
if (store.authentication.userData.role === "Admin Partner") delete columns[7];
|
if (store.authentication.userData.role === "Admin Partner") delete columns[7];
|
||||||
if (store.authentication.userData.role === "Admin") delete columns[4];
|
|
||||||
if (store.authentication.userData.role !== "Admin") delete columns[8];
|
if (store.authentication.userData.role !== "Admin") delete columns[8];
|
||||||
if (store.authentication.userData.role === "Admin Partner") delete columns[5];
|
if (store.authentication.userData.role === "Admin Partner") delete columns[5];
|
||||||
|
|
||||||
|
|
|
@ -537,7 +537,7 @@ export const Membership = observer(() => {
|
||||||
value={filterMembership}
|
value={filterMembership}
|
||||||
>
|
>
|
||||||
{store.membership.data.map((item) => (
|
{store.membership.data.map((item) => (
|
||||||
<Option value={item.name} key={item.name}>
|
<Option value={item.id} key={item.id}>
|
||||||
{item.name}
|
{item.name}
|
||||||
</Option>
|
</Option>
|
||||||
))}
|
))}
|
||||||
|
|
|
@ -131,13 +131,13 @@ export const Profile = observer(() => {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Tujuan",
|
title: "Tujuan",
|
||||||
dataIndex: "tujuan",
|
dataIndex: "transaction_destination",
|
||||||
key: "tujuan",
|
key: "transaction_destination",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "ID Transaksi",
|
title: "Kode Transaksi",
|
||||||
dataIndex: "id_transaksi",
|
dataIndex: "transaction_code",
|
||||||
key: "id_transaksi",
|
key: "transaction_code",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Status",
|
title: "Status",
|
||||||
|
@ -146,13 +146,13 @@ export const Profile = observer(() => {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "No Seri",
|
title: "No Seri",
|
||||||
dataIndex: "no_seri",
|
dataIndex: "seri_number",
|
||||||
key: "no_seri",
|
key: "seri_number",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "IDTrx Mitra",
|
title: "IDTrx Mitra",
|
||||||
dataIndex: "idtrx_mitra",
|
dataIndex: "partner_transaction_code",
|
||||||
key: "idtrx_mitra",
|
key: "partner_transaction_code",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Transaction Date",
|
title: "Transaction Date",
|
||||||
|
@ -256,7 +256,7 @@ export const Profile = observer(() => {
|
||||||
{new Intl.NumberFormat("id-ID", {
|
{new Intl.NumberFormat("id-ID", {
|
||||||
style: "currency",
|
style: "currency",
|
||||||
currency: "IDR",
|
currency: "IDR",
|
||||||
}).format(store.authentication.profileData?.wallet || 0)}
|
}).format(store.authentication.profileData?.profit || 0)}
|
||||||
</Text>
|
</Text>
|
||||||
</Col>
|
</Col>
|
||||||
<Col></Col>
|
<Col></Col>
|
||||||
|
|
|
@ -21,7 +21,7 @@ export class Membership {
|
||||||
|
|
||||||
async getData() {
|
async getData() {
|
||||||
try {
|
try {
|
||||||
const response = await http.get(`/users?page=${this.page}&pageSize=${this.pageSize}&superrior=${this.filterMembership}&type=${this.filterPartner}`);
|
const response = await http.get(`/users?page=${this.page}&pageSize=${this.pageSize}&superior=${this.filterMembership}&type=${this.filterPartner}`);
|
||||||
// console.log(this.filterMembership)
|
// console.log(this.filterMembership)
|
||||||
// console.log(this.filterPartner)
|
// console.log(this.filterPartner)
|
||||||
// console.log(response)
|
// console.log(response)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user