This commit is contained in:
Taric Xin
2022-02-16 17:32:07 +08:00
parent c0801a94d6
commit 9e58dddf07
2 changed files with 56 additions and 49 deletions

View File

@ -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
}
}
}
}