Browse Source

[完善]中台筛选条件

test-assets
邵佳豪 6 months ago
parent
commit
ebc4346ef0
  1. 5
      src/app/pages/singlelogin/singlelogin.component.ts
  2. 4
      src/app/system-management/user-binding/user-binding.component.html
  3. 15
      src/app/system-management/user-binding/user-binding.component.scss
  4. 4
      src/app/system-management/user-binding/user-binding.component.ts

5
src/app/pages/singlelogin/singlelogin.component.ts

@ -31,11 +31,11 @@ export class SingleloginComponent implements OnInit {
// this.setCookie(obj);
let token = this.getCookie("SAG_USER_TOKEN");
token = token.replace(/%3D/g, "=");
if (!token) {
alert("获取失败!");
alert("未获取到token!");
return;
} else {
token = token.replace(/%3D/g, "=");
this.sinToken = token;
await this.getCurrentUserInfo();
await this.getAuthOrganInfos();
@ -298,5 +298,4 @@ export class SingleloginComponent implements OnInit {
}
return menuList;
}
}

4
src/app/system-management/user-binding/user-binding.component.html

@ -46,7 +46,9 @@
<span><i nz-icon nzType="search"></i> {{listConfig.totalCount}}名用户</span>
</div>
<div class="righttop">
<label class="isBinding" nz-checkbox [(ngModel)]="listConfig.IsBindingLocal" (ngModelChange)="submitForm()">是否绑定本地用户</label>
<form nz-form [formGroup]="validateForm" (ngSubmit)="submitForm()">
<nz-form-item>
<nz-form-control>
<nz-input-group nzPrefixIcon="search">
@ -63,7 +65,7 @@
[nzPageSize]='16'>
<thead>
<tr>
<th></th>
<th [width]="'5%'"></th>
<th>账号</th>
<th>账号id</th>
<th>绑定的本地用户id</th>

15
src/app/system-management/user-binding/user-binding.component.scss

@ -1,7 +1,7 @@
.userBox {
width: 100%;
height: 100%;
background: #FFFFFF;
background: #ffffff;
box-sizing: border-box;
padding: 20px;
overflow: hidden;
@ -64,7 +64,7 @@
margin-top: 12px;
display: flex;
justify-content: space-between;
color: #000D21;
color: #000d21;
box-sizing: border-box;
padding: 0 10px;
background: rgba(145, 204, 255, 0.2);
@ -122,7 +122,7 @@
.lefttop {
span:nth-child(1) {
color: #000D21;
color: #000d21;
margin-right: 16px;
}
@ -133,7 +133,10 @@
.righttop {
display: flex;
// align-items: center;
.isBinding{
margin-top: 6px;
}
button {
margin-left: 16px;
}
@ -148,7 +151,6 @@
flex: 1;
overflow-y: auto;
overflow: auto;
}
.pagination {
@ -161,7 +163,7 @@
.ortype {
width: 36px;
height: 20px;
background: #2399FF;
background: #2399ff;
opacity: 1;
border-radius: 2px;
font-size: 12px;
@ -169,4 +171,3 @@
color: #fff;
text-align: center;
}

4
src/app/system-management/user-binding/user-binding.component.ts

@ -44,6 +44,7 @@ export class UserBindingComponent implements OnInit {
IsContainsChildren: true,
searchValue: "",
OrganizationUnitId: "",
IsBindingLocal: true,
};
getAllUsers() {
this.listConfig.loading = true;
@ -54,7 +55,7 @@ export class UserBindingComponent implements OnInit {
SkipCount: String(this.SkipCount),
MaxResultCount: String(this.MaxResultCount),
// OrganizationUnitId: this.OrganizationUnitId,
// IsBindingLocal: true,
IsBindingLocal: this.listConfig.IsBindingLocal,
// IsActive:true,
// IsContainsChildren: String(this.listConfig.IsContainsChildren),
};
@ -69,6 +70,7 @@ export class UserBindingComponent implements OnInit {
this.listConfig.loading = false;
});
}
SkipCount: number = 0; //0 16 32 48
MaxResultCount: number = 16;
pageChange($event) {

Loading…
Cancel
Save