This commit is contained in:
Taric Xin
2022-04-26 15:36:41 +08:00
parent 75f9653524
commit 359b34dcfa
4 changed files with 12 additions and 12 deletions

View File

@ -1,7 +1,7 @@
<nz-card class="content-box"> <nz-card class="content-box">
<div class="d-flex align-items-center mb-sm" style="justify-content: flex-end;"> <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> </div>
<nz-table #expandTable [nzData]="listOfMapData" nzTableLayout="fixed" nzBordered nzSize="small" <nz-table #expandTable [nzData]="listOfMapData" nzTableLayout="fixed" nzBordered nzSize="small"
@ -9,8 +9,8 @@
<thead> <thead>
<tr> <tr>
<!-- <th nzWidth="70px" nzAlign="center">#</th> --> <!-- <th nzWidth="70px" nzAlign="center">#</th> -->
<th>角色名称</th> <th>组织名称</th>
<th>角色描述</th> <th>组织描述</th>
<th>创建人手机号</th> <th>创建人手机号</th>
<th nzAlign="center">创建时间</th> <th nzAlign="center">创建时间</th>
<th nzAlign="center" nzWidth="250px">操作</th> <th nzAlign="center" nzWidth="250px">操作</th>
@ -36,7 +36,7 @@
<nz-divider nzType="vertical"></nz-divider> <nz-divider nzType="vertical"></nz-divider>
<a (click)="deleteAction(item)">删除</a> <a (click)="deleteAction(item)">删除</a>
<nz-divider nzType="vertical"></nz-divider> <nz-divider nzType="vertical"></nz-divider>
<a (click)="menuAction(null,item.id)">新增子角色</a> <a (click)="menuAction(null,item.id)">新增子组织</a>
<br> <br>
<nz-divider nzType="vertical"></nz-divider> <nz-divider nzType="vertical"></nz-divider>
<a (click)="configureAPIauth(item)">配置接口权限</a> <a (click)="configureAPIauth(item)">配置接口权限</a>

View File

@ -19,7 +19,7 @@ export class OrganizationManagementComponent implements OnInit {
infoUrl: this.service.$api_getRoleInfo, infoUrl: this.service.$api_getRoleInfo,
addUrl: this.service.$api_save_role, addUrl: this.service.$api_save_role,
updateUrl: this.service.$api_update_role, updateUrl: this.service.$api_update_role,
title: '角色管理', title: '组织管理',
type: 'user' type: 'user'
}; };
constructor(public service: SystemService, private modal: NzModalService) { constructor(public service: SystemService, private modal: NzModalService) {
@ -86,7 +86,7 @@ export class OrganizationManagementComponent implements OnInit {
nzOnOk: () => { nzOnOk: () => {
this.service.request(this.params.deleteUrl, [item.id]).subscribe(res => { this.service.request(this.params.deleteUrl, [item.id]).subscribe(res => {
if (res) { if (res) {
this.service.msgSrv.success('删除角色成功'); this.service.msgSrv.success('删除组织成功');
this.loadMemu(); this.loadMemu();
} }
}); });

View File

@ -1,5 +1,5 @@
<div class="modal-header"> <div class="modal-header">
<div class="modal-title">{{ params.id === 0 ? '新增角色' : '编辑角色' }}</div> <div class="modal-title">{{ params.id === 0 ? '新增组织' : '编辑组织' }}</div>
</div> </div>

View File

@ -31,21 +31,21 @@ export class OrganizationModalComponent implements OnInit {
this.schema = { this.schema = {
properties: { properties: {
roleName: { roleName: {
title: '角色名称', title: '组织名称',
type: 'string', type: 'string',
maxLength: 20, maxLength: 20,
ui: { ui: {
placeholder: '请输入角色名称' placeholder: '请输入组织名称'
} }
}, },
roleDescription: { roleDescription: {
title: '角色描述', title: '组织描述',
type: 'string', type: 'string',
maxLength: 50, maxLength: 50,
ui: { ui: {
autosize: { minRows: 3 }, autosize: { minRows: 3 },
hidden: this.params.lookType === 'detail', hidden: this.params.lookType === 'detail',
placeholder: '请输入角色描述', placeholder: '请输入组织描述',
widget: 'textarea' widget: 'textarea'
} }
} }
@ -66,7 +66,7 @@ export class OrganizationModalComponent implements OnInit {
} }
sure() { sure() {
if (!this.sf?.valid) { if (!this.sf?.valid) {
this.service.msgSrv.warning('角色名称不能为空'); this.service.msgSrv.warning('组织名称不能为空');
return; return;
} }