邵佳豪 2 years ago
parent
commit
4df7940ab8
  1. 1
      src/app/system-management/role/addrole/addrole.component.ts
  2. 3
      src/app/system-management/role/editrole/editrole.component.ts
  3. 8
      src/app/system-management/role/role.component.ts

1
src/app/system-management/role/addrole/addrole.component.ts

@ -51,7 +51,6 @@ export class AddroleComponent implements OnInit {
params: params, params: params,
}) })
.subscribe((data: any) => { .subscribe((data: any) => {
console.log(666, data);
this.totalCount = data.result.totalCount; this.totalCount = data.result.totalCount;
data.result.items.forEach((element) => { data.result.items.forEach((element) => {
element.key = element.id; element.key = element.id;

3
src/app/system-management/role/editrole/editrole.component.ts

@ -29,8 +29,6 @@ export class EditroleComponent implements OnInit {
multipleValue: any; multipleValue: any;
levelValue; levelValue;
ngOnInit(): void { ngOnInit(): void {
console.log(this.data);
console.log(6666, this.optionList);
this.nodes.length != 0 ? null : this.getAllMenus(); this.nodes.length != 0 ? null : this.getAllMenus();
this.multipleValue = this.data.grantedPermissions; this.multipleValue = this.data.grantedPermissions;
this.levelValue = this.data.organizationsLevel; this.levelValue = this.data.organizationsLevel;
@ -79,7 +77,6 @@ export class EditroleComponent implements OnInit {
params: params, params: params,
}) })
.subscribe((data: any) => { .subscribe((data: any) => {
console.log(666, data);
this.totalCount = data.result.totalCount; this.totalCount = data.result.totalCount;
data.result.items.forEach((element) => { data.result.items.forEach((element) => {
element.key = element.id; element.key = element.id;

8
src/app/system-management/role/role.component.ts

@ -54,7 +54,7 @@ export class RoleComponent implements OnInit {
params: params, params: params,
}) })
.subscribe((data: any) => { .subscribe((data: any) => {
console.log("角色列表", data.result.items); // console.log("角色列表", data.result.items);
this.listOfData = data.result.items; this.listOfData = data.result.items;
}); });
} }
@ -95,7 +95,7 @@ export class RoleComponent implements OnInit {
nzOnOk: async () => { nzOnOk: async () => {
if (instance.validateForm.valid) { if (instance.validateForm.valid) {
await new Promise((resolve, reject) => { await new Promise((resolve, reject) => {
console.log("表单信息", instance.validateForm); // console.log("表单信息", instance.validateForm);
let body = { let body = {
name: instance.validateForm.value.name, name: instance.validateForm.value.name,
DisplayName: instance.validateForm.value.name, DisplayName: instance.validateForm.value.name,
@ -158,7 +158,7 @@ export class RoleComponent implements OnInit {
nzOnOk: async () => { nzOnOk: async () => {
if (instance.validateForm.valid) { if (instance.validateForm.valid) {
await new Promise((resolve, reject) => { await new Promise((resolve, reject) => {
console.log("表单信息", instance.validateForm); // console.log("表单信息", instance.validateForm);
let body = { let body = {
id: item.id, id: item.id,
name: instance.validateForm.value.name, name: instance.validateForm.value.name,
@ -222,7 +222,7 @@ export class RoleComponent implements OnInit {
nzMaskClosable: false, nzMaskClosable: false,
nzOnOk: async () => { nzOnOk: async () => {
await new Promise((resolve) => { await new Promise((resolve) => {
console.log("表单信息", instance.validateForm); // console.log("表单信息", instance.validateForm);
// let arr = [] // let arr = []
// let treeData = instance.nzTreeComponent.getCheckedNodeList() // let treeData = instance.nzTreeComponent.getCheckedNodeList()

Loading…
Cancel
Save