edit
This commit is contained in:
@ -19,6 +19,7 @@ export class AuditAdminComponent implements OnInit {
|
||||
grid: { span: 20 }
|
||||
}
|
||||
};
|
||||
isReadOnly = false;
|
||||
constructor(public msgSrv: NzMessageService, public service: UsermanageService) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
@ -35,9 +36,10 @@ export class AuditAdminComponent implements OnInit {
|
||||
|
||||
initSF(user?: any) {
|
||||
console.log(user);
|
||||
|
||||
|
||||
this.schema = {
|
||||
properties: {
|
||||
expand: { type: 'boolean', ui: { hidden: true } },
|
||||
oldAdminName: {
|
||||
title: '当前管理员',
|
||||
type: 'string',
|
||||
@ -87,7 +89,10 @@ export class AuditAdminComponent implements OnInit {
|
||||
ui: {
|
||||
placeholder: '审核不通过需要说明原因',
|
||||
widget: 'textarea',
|
||||
autosize: { minRows: 3, maxRows: 6 }
|
||||
autosize: { minRows: 3, maxRows: 6 },
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => !this.isReadOnly
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user