edit
This commit is contained in:
		| @ -3,4 +3,20 @@ | ||||
|     [res]="{ reName: { list: 'data.records', total: 'data.total' } }" | ||||
|     [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }" | ||||
|     [loading]="service.http.loading" [scroll]="{ y: '370px' }"> | ||||
|     <ng-template st-row="ltdName" let-item let-index="index"> | ||||
|         <ng-container *ngIf="isCanCreate; else elsePATemplate"> | ||||
|             <a (click)="createPA(item)">{{ item.promotersTelephone || '添加' }}</a> | ||||
|         </ng-container> | ||||
|         <ng-template #elsePATemplate> | ||||
|             {{ item.promotersTelephone }} | ||||
|         </ng-template> | ||||
|     </ng-template> | ||||
|     <ng-template st-row="bankTypeLabel" let-item let-index="index"> | ||||
|         <ng-container *ngIf="isCanCreate; else elsePFTemplate"> | ||||
|             <a (click)="createPF(item)">{{ item.promotersTelephone || '添加' }}</a> | ||||
|         </ng-container> | ||||
|         <ng-template #elsePFTemplate> | ||||
|             {{ item.promotersTelephone }} | ||||
|         </ng-template> | ||||
|     </ng-template> | ||||
| </st> | ||||
| @ -6,7 +6,7 @@ import { BaseService } from '../../services'; | ||||
| @Component({ | ||||
|   selector: 'app-account-detail', | ||||
|   templateUrl: './account-detail.component.html', | ||||
|   providers:[CurrencyPipe] | ||||
|   providers: [CurrencyPipe] | ||||
| }) | ||||
| export class AccountDetailComponent implements OnInit { | ||||
|   @ViewChild('st', { static: true }) | ||||
| @ -16,14 +16,14 @@ export class AccountDetailComponent implements OnInit { | ||||
|   url = ''; | ||||
|  | ||||
|   isCanCreate = false; | ||||
|   constructor(public service: BaseService, private currencyPipe: CurrencyPipe) {} | ||||
|  | ||||
|   ngOnInit(): void { | ||||
|     setTimeout(() => { | ||||
|       this.initST(); | ||||
|     }, 200); | ||||
|   constructor(public service: BaseService, private currencyPipe: CurrencyPipe) { | ||||
|     this.initST(); | ||||
|   } | ||||
|  | ||||
|   ngOnInit(): void {} | ||||
|   createPA(item: any) {} | ||||
|   createPF(item: any) {} | ||||
|  | ||||
|   beforeReq = (requestOptions: STRequestOptions) => { | ||||
|     return requestOptions; | ||||
|   }; | ||||
| @ -33,13 +33,13 @@ export class AccountDetailComponent implements OnInit { | ||||
|       { title: '网络货运人', index: 'phone', className: 'text-center' }, | ||||
|       { | ||||
|         title: '平安账户余额', | ||||
|         index: 'ltdName', | ||||
|         render: 'ltdName', | ||||
|         type: 'currency', | ||||
|         format: item => `${this.currencyPipe.transform(item.availableBalance)}` | ||||
|       }, | ||||
|       { | ||||
|         title: '浦发账户余额', | ||||
|         index: 'bankTypeLabel', | ||||
|         render: 'bankTypeLabel', | ||||
|         type: 'currency', | ||||
|         format: item => `${this.currencyPipe.transform(item.availableBalance)}` | ||||
|       } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user