|  |  |  | 
|---|
|  |  |  | return R.ok(userService.selectPage(new Page<>(curr, limit), wrapper)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/mat/page/auth") | 
|---|
|  |  |  | @RequestMapping(value = "/user/page/auth") | 
|---|
|  |  |  | @ManagerAuth | 
|---|
|  |  |  | public R page(@RequestParam(defaultValue = "1")Integer curr, | 
|---|
|  |  |  | @RequestParam(defaultValue = "10")Integer limit, | 
|---|
|  |  |  | 
|---|
|  |  |  | onlyIconControl: true, | 
|---|
|  |  |  | data: res.data, | 
|---|
|  |  |  | click: function (obj) { | 
|---|
|  |  |  | console.log(obj) | 
|---|
|  |  |  | currentDeptId = obj.data.id; | 
|---|
|  |  |  | currentDeptName = obj.data.title.split(" - ")[0]; | 
|---|
|  |  |  | // currentTemSsbm = obj.data.title.split(" - ")[1]; | 
|---|
|  |  |  | selObj = obj; | 
|---|
|  |  |  | $('#organizationTree').find('.ew-tree-click').removeClass('ew-tree-click'); | 
|---|
|  |  |  | $(obj.elem).children('.layui-tree-entry').addClass('ew-tree-click'); | 
|---|
|  |  |  | tableIns.reload({ | 
|---|
|  |  |  | insTb2.reload({ | 
|---|
|  |  |  | where: {dept_id: obj.data.id}, | 
|---|
|  |  |  | page: {curr: 1} | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | treeData = res.data; | 
|---|
|  |  |  | if (isEmpty(condition) && init) { | 
|---|
|  |  |  | tableIns.reload({ | 
|---|
|  |  |  | insTb2.reload({ | 
|---|
|  |  |  | where: {dept_id: ""}, | 
|---|
|  |  |  | page: {curr: 1} | 
|---|
|  |  |  | }); | 
|---|