操作日志和数据同步用户体验及逻辑优化
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<ul [hidden]='statusParamsTree.status!=3' id="treeDemo" class="ztree"></ul>
|
||||
</div>
|
||||
<!-- <div nz-col nzSpan="1"></div> -->
|
||||
<div class="system-main-content card" id="main-box">
|
||||
<div class="system-main-content card" id="main-box-user">
|
||||
<div class="search-box">
|
||||
<div class="dip mr-4">
|
||||
<nz-form-item>
|
||||
|
||||
@@ -45,10 +45,10 @@ export class UserManagementComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
// 页面监听 动态改变表单高度
|
||||
$('#tree-box').css('height',(document.documentElement.clientHeight-106+'px'));
|
||||
$('#main-box').css('height',(document.documentElement.clientHeight-106+'px'));
|
||||
$('#main-box-user').css('height',(document.documentElement.clientHeight-106+'px'));
|
||||
$(window).resize(function(){
|
||||
$('#tree-box').css('height',(document.documentElement.clientHeight-126+'px'));
|
||||
$('#main-box').css('height',(document.documentElement.clientHeight-126+'px'));
|
||||
$('#main-box-user').css('height',(document.documentElement.clientHeight-126+'px'));
|
||||
})
|
||||
this.initTree();
|
||||
this.queryTable();
|
||||
@@ -96,15 +96,16 @@ export class UserManagementComponent implements OnInit {
|
||||
this.visible = false;
|
||||
}
|
||||
//重置,重置搜索条件
|
||||
reset(){
|
||||
this.search.page_index=1;
|
||||
this.search.page_size=10;
|
||||
this.search.real_name='';
|
||||
this.search.login_name='';
|
||||
this.queryTable();
|
||||
}
|
||||
// reset(){
|
||||
// this.search.page_index=1;
|
||||
// this.search.page_size=10;
|
||||
// this.search.real_name='';
|
||||
// this.search.login_name='';
|
||||
// this.queryTable();
|
||||
// }
|
||||
//获取列表
|
||||
queryTable():void{
|
||||
this.search.page_index=1;
|
||||
this.statusParamsTable.status=1;
|
||||
this.http.get('/sysapi/setting/user/list',this.search).subscribe((json)=>{
|
||||
if(json.is_success){
|
||||
|
||||
Reference in New Issue
Block a user