| | |
| | | } |
| | | |
| | | useEffect(() => { |
| | | const handleResize = () => setBoxHeight(window.innerHeight - 368); |
| | | const handleResize = () => setBoxHeight(window.innerHeight - 420); |
| | | window.addEventListener('resize', handleResize); |
| | | handleResize(); |
| | | |
| | |
| | | > |
| | | <Row gutter={[16, 24]}> |
| | | <Col lg={6} md={24}> |
| | | <Card title="部门" style={{ width: '100%', height: 'calc(100vh - 200px)' }}> |
| | | <Card title="部门" style={{ width: '100%', height: 'calc(100vh - 252px)' }}> |
| | | <Input |
| | | style={{ marginBottom: 10 }} |
| | | placeholder="请输入" |
| | |
| | | }) |
| | | }} |
| | | /> |
| | | <div style={{ height: 'calc(100vh - 350px)', overflowY: 'auto' }}> |
| | | <div style={{ height: 'calc(100vh - 402px)', overflowY: 'auto' }}> |
| | | {deptTreeLoading ? ( |
| | | <Skeleton active /> |
| | | ) : ( |
| | |
| | | public R page(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<Role, BaseParam> pageParam = new PageParam<>(baseParam, Role.class); |
| | | return R.ok().add(roleService.page(pageParam, pageParam.buildWrapper(true))); |
| | | return R.ok().add(roleService.page(pageParam, pageParam.buildWrapper(true, (wrapper) -> wrapper.orderByAsc("create_time")))); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:role:list')") |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.*; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | | @RequestMapping("/api") |
| | |
| | | public R page(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<User, BaseParam> pageParam = new PageParam<>(baseParam, User.class); |
| | | return R.ok().add(userService.page(pageParam, pageParam.buildWrapper(true))); |
| | | return R.ok().add(userService.page(pageParam, pageParam.buildWrapper(true, wrapper -> wrapper.orderByAsc("create_time")))); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:user:list')") |
| | |
| | | or su.phone like concat('%',#{param.condition},'%') |
| | | ) |
| | | </if> |
| | | order by su.create_time desc |
| | | order by su.create_time |
| | | </select> |
| | | |
| | | </mapper> |