edit
This commit is contained in:
@ -36,7 +36,7 @@
|
||||
<ng-template #extraTemplate>
|
||||
<div class="mr-sm">
|
||||
<button nz-button nzDanger [nzLoading]="service.http.loading" (click)="openDrawer()">筛选</button>
|
||||
<button nz-button nzDanger (click)="exprot()"> 导出</button>
|
||||
<button nz-button nzDanger (click)="exprot()" acl [acl-ability]="['FINANCIAL-ABNORMAL-export']"> 导出</button>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
|
||||
@ -171,6 +171,7 @@ export class AbnormalGoldComponent extends BasicTableComponent implements OnInit
|
||||
buttons: [
|
||||
{
|
||||
text: '查看',
|
||||
acl: { ability: ['FINANCIAL-ABNORMAL-view'] },
|
||||
click: item => this.router.navigate(['/financial-management/abnormal-gold/detail/' + item.id])
|
||||
}
|
||||
]
|
||||
|
||||
@ -207,6 +207,7 @@ export class PlatformAccountComponent extends BasicTableComponent implements OnI
|
||||
{
|
||||
text: '提现',
|
||||
click: item => this.withdraw(item),
|
||||
acl: { ability: ['FINANCIAL-PLATFORM-withdraw'] },
|
||||
iif: _record => _record.bankType !== '1'
|
||||
},
|
||||
// {
|
||||
@ -216,6 +217,7 @@ export class PlatformAccountComponent extends BasicTableComponent implements OnI
|
||||
{
|
||||
text: '查看银行卡',
|
||||
click: item => this.viewBankcard(item),
|
||||
acl: { ability: ['FINANCIAL-PLATFORM-viewBankcard'] },
|
||||
iif: _record => _record.bankType !== '1'
|
||||
}
|
||||
]
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
<label class="page_title"> <label class="driver">|</label> 交易流水</label>
|
||||
<div class="mr-sm">
|
||||
<button nz-button nzDanger [nzLoading]="service.http.loading" (click)="openDrawer()">筛选</button>
|
||||
<button nz-button nzDanger (click)="exportList()"> 导出</button>
|
||||
<button nz-button nzDanger (click)="exportList()" acl [acl-ability]="['FINANCIAL-TRANSACTION-export']"> 导出</button>
|
||||
</div>
|
||||
</div>
|
||||
<st #st [data]="service.$api_get_account_blance" [columns]="columns" [req]="{ process: beforeReq }" [page]="{}"
|
||||
|
||||
@ -210,6 +210,7 @@ export class TransactionFlowComponent extends BasicTableComponent {
|
||||
{
|
||||
text: '查看回单',
|
||||
iif: item => item.tradeType !== '9' && item.tradeType !== '10',
|
||||
acl: { ability: ['FINANCIAL-TRANSACTION-receiptApply'] },
|
||||
click: item =>
|
||||
this.service.getReceiptUrl(item.receiptUrl, {
|
||||
bankType: item.bankType,
|
||||
|
||||
@ -251,10 +251,12 @@ export class WithdrawalsRecordComponent extends BasicTableComponent {
|
||||
{
|
||||
text: '审核',
|
||||
iif: item => item.refundStatus === '1',
|
||||
acl: { ability: ['FINANCIAL-WITHDRAWALS-audit'] },
|
||||
click: item => this.auditAction(item)
|
||||
},
|
||||
{
|
||||
text: '详情<br>',
|
||||
acl: { ability: ['FINANCIAL-WITHDRAWALS-view'] },
|
||||
click: item =>
|
||||
this.router.navigate([`/financial-management/withdrawals-record/detail/${item.id}`], {
|
||||
queryParams: { type: item.accountType }
|
||||
@ -262,6 +264,7 @@ export class WithdrawalsRecordComponent extends BasicTableComponent {
|
||||
},
|
||||
{
|
||||
text: '查看回单',
|
||||
acl: { ability: ['FINANCIAL-WITHDRAWALS-receiptApply'] },
|
||||
iif: item => item.refundStatus === '3',
|
||||
click: item =>
|
||||
this.service.getReceiptUrl(item.receiptUrl, {
|
||||
|
||||
@ -55,7 +55,7 @@ const routes: Routes = [
|
||||
data: { guard: { ability: ['FINANCIAL-PLATFORM-DETAIL-detail'] } }
|
||||
},
|
||||
{ path: 'recharge-record', component: RechargeRecordComponent, data: { guard: { ability: ['FINANCIAL-RECHARGE-list'] } } },
|
||||
{ path: 'withdrawals-record', component: WithdrawalsRecordComponent },
|
||||
{ path: 'withdrawals-record', component: WithdrawalsRecordComponent, data: { guard: { ability: ['FINANCIAL-WITHDRAWALS-list'] } } },
|
||||
{ path: 'withdrawals-record/detail/:id', component: WithdrawalsDetailComponent },
|
||||
{ path: 'refund-record', component: RefundRecordComponent },
|
||||
{ path: 'voucher-management', component: VoucherManagementComponent, data: { guard: { ability: ['FINANCIAL-VOUCHER-list'] } } },
|
||||
@ -72,10 +72,10 @@ const routes: Routes = [
|
||||
},
|
||||
{ path: 'cost-management/expenses-receivable/:id', component: ExpensesReceivableComponent },
|
||||
{ path: 'cost-management/expenses-payable/:id', component: ExpensesPayableComponent },
|
||||
{ path: 'abnormal-gold', component: AbnormalGoldComponent },
|
||||
{ path: 'abnormal-gold', component: AbnormalGoldComponent , data: { guard: { ability: ['FINANCIAL-ABNORMAL-list'] } } },
|
||||
{ path: 'abnormal-gold/detail/:id', component: AbnormalGoldDetailComponent },
|
||||
{ path: 'payment-record', component: PaymentRecordComponent },
|
||||
{ path: 'transaction-flow', component: TransactionFlowComponent },
|
||||
{ path: 'transaction-flow', component: TransactionFlowComponent , data: { guard: { ability: ['FINANCIAL-TRANSACTION-list'] } } },
|
||||
{ path: 'payment-order', component: PaymentOrderComponent, data: { guard: { ability: ['FINANCIAL-PAYMENT-ORDER-list'] } } },
|
||||
{ path: 'payment-order/detail/:id', component: PaymentOrderDetailComponent },
|
||||
{ path: 'receipt-order', component: ReceiptOrderComponent, data: { guard: { ability: ['FINANCIAL-RECEIPT-list'] } } },
|
||||
|
||||
Reference in New Issue
Block a user