This commit is contained in:
wangshiming
2022-02-15 14:19:43 +08:00
parent 3d06073501
commit 1d23af8af6
7 changed files with 34 additions and 30 deletions

View File

@ -223,17 +223,20 @@ export class FreightComponentsUserComponent implements OnInit {
text: '查看',
click: (item: any) => {
this.router.navigate(['./view', item.appUserId], { relativeTo: this.ar });
}
},
acl: { ability: ['USERCENTER-FREIGHT-USER-view'] },
},
{
text: '冻结',
iif: item => item.stateLocked === 0,
click: (item: any) => this.userAction(0, [item.appUserId])
click: (item: any) => this.userAction(0, [item.appUserId]),
acl: { ability: ['USERCENTER-FREIGHT-USER-lock'] },
},
{
text: '启用',
iif: item => item.stateLocked === 1,
click: (item: any) => this.userAction(1, [item.appUserId])
click: (item: any) => this.userAction(1, [item.appUserId]),
acl: { ability: ['USERCENTER-FREIGHT-USER-lock'] },
}
]
}