edit
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
<sf #sf [compact]="true" [ui]="ui" [schema]="schema" [button]="'none'">
|
||||
<sf #sf [compact]="true" [ui]="ui" [schema]="schema" [button]="'none'" *ngIf="schema">
|
||||
<ng-template sf-template="creditPhoto" let-me let-ui="ui" let-schema="schema">
|
||||
<img [src]="i.creditPhoto" alt="" />
|
||||
</ng-template>
|
||||
|
||||
@ -38,7 +38,6 @@ export class AuditAdminComponent implements OnInit {
|
||||
}
|
||||
|
||||
initSF(user?: any) {
|
||||
console.log(user);
|
||||
this.schema = {
|
||||
properties: {
|
||||
oldAdminName: {
|
||||
@ -89,7 +88,7 @@ export class AuditAdminComponent implements OnInit {
|
||||
ui: {
|
||||
placeholder: '审核不通过需要说明原因',
|
||||
widget: 'textarea',
|
||||
autosize: { minRows: 2, maxRows: 6 }
|
||||
autosize: { minRows: 3, maxRows: 6 }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
/**
|
||||
* 查看详情
|
||||
*/
|
||||
View(record: any) {
|
||||
ViewAdimin(record: any) {
|
||||
const modal = this.modal.create({
|
||||
nzContent: AuditAdminComponent,
|
||||
nzComponentParams: { i: { ...record } },
|
||||
@ -119,6 +119,12 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
View(record: any) {
|
||||
this.router.navigate(['./view', record.id], {
|
||||
relativeTo: this.ar
|
||||
});
|
||||
}
|
||||
|
||||
// 切换Tab
|
||||
changeTab(item: any) {
|
||||
this.tabType = item.type;
|
||||
@ -201,7 +207,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
fixed: 'right',
|
||||
width: '180px',
|
||||
className: 'text-center',
|
||||
buttons: [{ text: '审核', click: _record => this.View(_record) }]
|
||||
buttons: [{ text: '审核', click: _record => this.ViewAdimin(_record) }]
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user