diff --git a/src/views/system/user/listUser.vue b/src/views/system/user/listUser.vue index 44beb6b..20c1408 100644 --- a/src/views/system/user/listUser.vue +++ b/src/views/system/user/listUser.vue @@ -3,96 +3,77 @@ -
+
组织机构
- + + +
-
- - - - - - - - - 搜索 - - - 新增 - 修改 - 删除 - 重置密码 - 角色分配 - - - - -
+ + + + + + + + + - - - - - - - - - - - - - - - - - - - -
- -
+ + + +
@@ -124,7 +105,7 @@ beginTime: '', endTime: '', deptid: '', - page: 1, + offset: 1, limit: 20, sort: 'id' }, @@ -153,8 +134,7 @@ }, { text: '真实姓名', - value: 'name', - width: 50 + value: 'name' }, { text: '角色', @@ -351,14 +331,14 @@ this.listQuery.deptid = data.id this.fetchData() }, - // 改变页容量 - handleSizeChange(val) { - this.listQuery.limit = val - this.fetchData() - }, - // 改变当前页 - handleCurrentChange(val) { - this.listQuery.offset = val + // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 + changePage(val) { + if (val && val.size) { + this.listQuery.limit = val.size + } + if (val && val.page) { + this.listQuery.offset = val.page + } this.fetchData() }, // 在嵌套列表list中删除指定元素 @@ -404,4 +384,18 @@ .el-range-separator{ width: 7% !important; } + .el-scrollbar{ + min-height: calc(100vh - 260px); + max-height: calc(100vh - 170px); + } + .table{ + min-height: calc(100vh - 265px); + } + +