fix style
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { STComponent, STColumn, STChange } from '@delon/abc/st';
|
||||
import { SFComponent, SFSchema } from '@delon/form';
|
||||
import { SettingsService } from '@delon/theme';
|
||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||
import { SystemService } from '../../services/system.service';
|
||||
import { SystemStaffStaffModalComponent } from './staff-modal/staff-modal.component';
|
||||
@ -35,8 +36,13 @@ export class StaffManagementComponent implements OnInit {
|
||||
{
|
||||
title: '最后登录时间',
|
||||
index: 'lastLoginDate',
|
||||
<<<<<<< HEAD
|
||||
className: 'text-center',
|
||||
type: 'date'
|
||||
=======
|
||||
type: 'date',
|
||||
format: item => `${item.lastLoginDate || '-'}`
|
||||
>>>>>>> 9894aafcc1c3326f1d6dcb9a0c3eb42079a623a9
|
||||
},
|
||||
{
|
||||
title: '成员状态',
|
||||
@ -55,31 +61,31 @@ export class StaffManagementComponent implements OnInit {
|
||||
{
|
||||
text: '编辑',
|
||||
click: item => this.staffAction(item),
|
||||
acl: { ability: ['SYSTEM-STAFF-edit'] },
|
||||
acl: { ability: ['SYSTEM-STAFF-edit'] }
|
||||
},
|
||||
{
|
||||
text: '恢复',
|
||||
iif: item => item.stateLocked === 1,
|
||||
iif: item => item.stateLocked === 1 && item.telephone !== this.user.phone,
|
||||
click: item => this.action(item, 2),
|
||||
acl: { ability: ['SYSTEM-STAFF-lock'] },
|
||||
acl: { ability: ['SYSTEM-STAFF-lock'] }
|
||||
},
|
||||
{
|
||||
text: '冻结',
|
||||
iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1,
|
||||
iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1 && item.telephone !== this.user.phone,
|
||||
click: item => this.action(item, 1),
|
||||
acl: { ability: ['SYSTEM-STAFF-lock'] },
|
||||
acl: { ability: ['SYSTEM-STAFF-lock'] }
|
||||
},
|
||||
{
|
||||
text: '超管转授',
|
||||
iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1,
|
||||
click: item => this.transpowerAction(item),
|
||||
acl: { ability: ['SYSTEM-STAFF-shiftAdmin'] },
|
||||
acl: { ability: ['SYSTEM-STAFF-shiftAdmin'] }
|
||||
},
|
||||
{
|
||||
text: '删除',
|
||||
iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1,
|
||||
iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1 && item.telephone !== this.user.phone,
|
||||
click: item => this.action(item, 3),
|
||||
acl: { ability: ['SYSTEM-STAFF-delete'] },
|
||||
acl: { ability: ['SYSTEM-STAFF-delete'] }
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -92,7 +98,9 @@ export class StaffManagementComponent implements OnInit {
|
||||
2: { title: '确认恢复?', text: '恢复后用户在本系统的权限将一并重新开启。' },
|
||||
3: { title: '确认删除?', text: '删除后该用户ID将在本系统中将无法登录使用并删除,请谨慎操作!' }
|
||||
};
|
||||
constructor(public service: SystemService, private nzModalService: NzModalService) {}
|
||||
|
||||
user = this.setting.user;
|
||||
constructor(public service: SystemService, private nzModalService: NzModalService, private setting: SettingsService) {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user