diff --git a/src/app/pages/records/oil-unloading-process-list/oil-unloading-process-list.component.ts b/src/app/pages/records/oil-unloading-process-list/oil-unloading-process-list.component.ts index 0c6ffda..a0a972f 100644 --- a/src/app/pages/records/oil-unloading-process-list/oil-unloading-process-list.component.ts +++ b/src/app/pages/records/oil-unloading-process-list/oil-unloading-process-list.component.ts @@ -428,6 +428,9 @@ export class OilUnloadingProcessListComponent implements OnInit { name: '', data: [], type: 'bar', + label: { + show: true + }, itemStyle: { color: { type: 'linear', @@ -449,6 +452,9 @@ export class OilUnloadingProcessListComponent implements OnInit { name: '', data: [], type: 'bar', + label: { + show: true + }, itemStyle: { color: { type: 'linear', diff --git a/src/app/system-management/user/adduser/adduser.component.html b/src/app/system-management/user/adduser/adduser.component.html index 45c5db3..1b0a396 100644 --- a/src/app/system-management/user/adduser/adduser.component.html +++ b/src/app/system-management/user/adduser/adduser.component.html @@ -35,7 +35,7 @@ - 角色 + 角色 diff --git a/src/app/system-management/user/adduser/adduser.component.ts b/src/app/system-management/user/adduser/adduser.component.ts index ba82e66..82ba289 100644 --- a/src/app/system-management/user/adduser/adduser.component.ts +++ b/src/app/system-management/user/adduser/adduser.component.ts @@ -20,8 +20,8 @@ export class AdduserComponent implements OnInit { account: [null, [Validators.required]], name: [null, [Validators.required]], organization: [null, [Validators.required]], - role: [null], - role2: [null], + role: [[], [Validators.required]], + role2: [[]], phonenum: [null, [Validators.required]] }); diff --git a/src/app/system-management/user/edituser/edituser.component.html b/src/app/system-management/user/edituser/edituser.component.html index a1fb0c6..0772a04 100644 --- a/src/app/system-management/user/edituser/edituser.component.html +++ b/src/app/system-management/user/edituser/edituser.component.html @@ -35,7 +35,7 @@ - 角色 + 角色 diff --git a/src/app/system-management/user/edituser/edituser.component.ts b/src/app/system-management/user/edituser/edituser.component.ts index 3af3660..dcb193b 100644 --- a/src/app/system-management/user/edituser/edituser.component.ts +++ b/src/app/system-management/user/edituser/edituser.component.ts @@ -33,7 +33,7 @@ export class EdituserComponent implements OnInit { account: [null, [Validators.required]], name: [null, [Validators.required]], organization: [null, [Validators.required]], - role: [roleData1], + role: [roleData1, [Validators.required]], role2: [roleData2], phonenum: [null, [Validators.required]] }); diff --git a/src/app/system-management/user/user.component.ts b/src/app/system-management/user/user.component.ts index 170a71d..5b860c9 100644 --- a/src/app/system-management/user/user.component.ts +++ b/src/app/system-management/user/user.component.ts @@ -115,6 +115,7 @@ export class UserComponent implements OnInit { } //获取所有组织机构 nodes: any = [] + organization async getAllOrganization() { let OrganizationUnitId = sessionStorage.getItem('isGasStation') == 'true' ? JSON.parse(sessionStorage.getItem('userdataOfgasstation')).organization.id : JSON.parse(sessionStorage.getItem('userdata')).organization.id let params = { @@ -125,6 +126,7 @@ export class UserComponent implements OnInit { this.http.get('/api/services/app/Organization/GetAll', { params: params }).subscribe(async (data: any) => { + this.organization = data.result.items await this.getuser(data.result.items) resolve(data) this.getAllUsers()