This commit is contained in:
Taric Xin
2022-04-28 17:30:08 +08:00
parent f7995739c3
commit 6047fde637
3 changed files with 8 additions and 5 deletions

View File

@ -40,7 +40,8 @@
<label class="page_title"> <label class="driver">|</label> 充值记录</label> <label class="page_title"> <label class="driver">|</label> 充值记录</label>
<div class="mr-sm"> <div class="mr-sm">
<button nz-button nzDanger [nzLoading]="service.http.loading" (click)="openDrawer()">筛选</button> <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-RECHARGE-export']">
导出</button>
</div> </div>
</div> </div>
<st #st [data]="service.$api_get_recharge_page" [columns]="columns" [req]="{ process: beforeReq }" [page]="{}" <st #st [data]="service.$api_get_recharge_page" [columns]="columns" [req]="{ process: beforeReq }" [page]="{}"

View File

@ -119,7 +119,7 @@ export class RechargeRecordComponent extends BasicTableComponent implements OnIn
title: '账户名称', title: '账户名称',
ui: { ui: {
placeholder: '请输入', placeholder: '请输入',
autocomplete: 'off', autocomplete: 'off'
} }
}, },
accountType: { accountType: {
@ -133,7 +133,7 @@ export class RechargeRecordComponent extends BasicTableComponent implements OnIn
], ],
ui: { ui: {
widget: 'select', widget: 'select',
placeholder: '请选择', placeholder: '请选择'
}, },
default: '' default: ''
}, },
@ -157,7 +157,7 @@ export class RechargeRecordComponent extends BasicTableComponent implements OnIn
], ],
ui: { ui: {
widget: 'select', widget: 'select',
placeholder: '请选择', placeholder: '请选择'
}, },
default: '' default: ''
} }
@ -195,6 +195,7 @@ export class RechargeRecordComponent extends BasicTableComponent implements OnIn
{ type: 'divider' }, { type: 'divider' },
{ {
text: '查看回单<br>', text: '查看回单<br>',
acl: { ability: ['FINANCIAL-RECHARGE-receiptApply'] },
click: item => click: item =>
this.service.getReceiptUrl(item.receiptUrl, { this.service.getReceiptUrl(item.receiptUrl, {
bankType: item.bankType, bankType: item.bankType,
@ -207,6 +208,7 @@ export class RechargeRecordComponent extends BasicTableComponent implements OnIn
}, },
{ {
text: '添加备注', text: '添加备注',
acl: { ability: ['FINANCIAL-RECHARGE-addRemark'] },
click: item => this.addRemark(item) click: item => this.addRemark(item)
} }
] ]

View File

@ -50,7 +50,7 @@ const routes: Routes = [
component: PlatformAccountDetailComponent, component: PlatformAccountDetailComponent,
data: { guard: { ability: ['FINANCIAL-PLATFORM-DETAIL-detail'] } } data: { guard: { ability: ['FINANCIAL-PLATFORM-DETAIL-detail'] } }
}, },
{ path: 'recharge-record', component: RechargeRecordComponent }, { path: 'recharge-record', component: RechargeRecordComponent, data: { guard: { ability: ['FINANCIAL-RECHARGE-list'] } } },
{ path: 'withdrawals-record', component: WithdrawalsRecordComponent }, { path: 'withdrawals-record', component: WithdrawalsRecordComponent },
{ path: 'withdrawals-record/detail/:id', component: WithdrawalsDetailComponent }, { path: 'withdrawals-record/detail/:id', component: WithdrawalsDetailComponent },
{ path: 'refund-record', component: RefundRecordComponent }, { path: 'refund-record', component: RefundRecordComponent },