edit
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<nz-card class="content-box">
|
||||
|
||||
<div class="d-flex align-items-center mb-sm" style="justify-content: flex-end;">
|
||||
<button nz-button nzType="primary" (click)="menuAction('新增角色')">新增</button>
|
||||
<button nz-button nzType="primary" (click)="menuAction('新增组织')">新增</button>
|
||||
</div>
|
||||
|
||||
<nz-table #expandTable [nzData]="listOfMapData" nzTableLayout="fixed" nzBordered nzSize="small"
|
||||
@ -9,8 +9,8 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<!-- <th nzWidth="70px" nzAlign="center">#</th> -->
|
||||
<th>角色名称</th>
|
||||
<th>角色描述</th>
|
||||
<th>组织名称</th>
|
||||
<th>组织描述</th>
|
||||
<th>创建人手机号</th>
|
||||
<th nzAlign="center">创建时间</th>
|
||||
<th nzAlign="center" nzWidth="250px">操作</th>
|
||||
@ -36,7 +36,7 @@
|
||||
<nz-divider nzType="vertical"></nz-divider>
|
||||
<a (click)="deleteAction(item)">删除</a>
|
||||
<nz-divider nzType="vertical"></nz-divider>
|
||||
<a (click)="menuAction(null,item.id)">新增子角色</a>
|
||||
<a (click)="menuAction(null,item.id)">新增子组织</a>
|
||||
<br>
|
||||
<nz-divider nzType="vertical"></nz-divider>
|
||||
<a (click)="configureAPIauth(item)">配置接口权限</a>
|
||||
|
||||
@ -19,7 +19,7 @@ export class OrganizationManagementComponent implements OnInit {
|
||||
infoUrl: this.service.$api_getRoleInfo,
|
||||
addUrl: this.service.$api_save_role,
|
||||
updateUrl: this.service.$api_update_role,
|
||||
title: '角色管理',
|
||||
title: '组织管理',
|
||||
type: 'user'
|
||||
};
|
||||
constructor(public service: SystemService, private modal: NzModalService) {
|
||||
@ -86,7 +86,7 @@ export class OrganizationManagementComponent implements OnInit {
|
||||
nzOnOk: () => {
|
||||
this.service.request(this.params.deleteUrl, [item.id]).subscribe(res => {
|
||||
if (res) {
|
||||
this.service.msgSrv.success('删除角色成功');
|
||||
this.service.msgSrv.success('删除组织成功');
|
||||
this.loadMemu();
|
||||
}
|
||||
});
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<div class="modal-header">
|
||||
<div class="modal-title">{{ params.id === 0 ? '新增角色' : '编辑角色' }}</div>
|
||||
<div class="modal-title">{{ params.id === 0 ? '新增组织' : '编辑组织' }}</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@ -31,21 +31,21 @@ export class OrganizationModalComponent implements OnInit {
|
||||
this.schema = {
|
||||
properties: {
|
||||
roleName: {
|
||||
title: '角色名称',
|
||||
title: '组织名称',
|
||||
type: 'string',
|
||||
maxLength: 20,
|
||||
ui: {
|
||||
placeholder: '请输入角色名称'
|
||||
placeholder: '请输入组织名称'
|
||||
}
|
||||
},
|
||||
roleDescription: {
|
||||
title: '角色描述',
|
||||
title: '组织描述',
|
||||
type: 'string',
|
||||
maxLength: 50,
|
||||
ui: {
|
||||
autosize: { minRows: 3 },
|
||||
hidden: this.params.lookType === 'detail',
|
||||
placeholder: '请输入角色描述',
|
||||
placeholder: '请输入组织描述',
|
||||
widget: 'textarea'
|
||||
}
|
||||
}
|
||||
@ -66,7 +66,7 @@ export class OrganizationModalComponent implements OnInit {
|
||||
}
|
||||
sure() {
|
||||
if (!this.sf?.valid) {
|
||||
this.service.msgSrv.warning('角色名称不能为空');
|
||||
this.service.msgSrv.warning('组织名称不能为空');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user