| | |
| | | import { getLogininforList, removeLogininfor, exportLogininfor, unlockLogininfor, cleanLogininfor } from '@/services/monitor/logininfor'; |
| | | import DictTag from '@/components/DictTag'; |
| | | import { getDictValueEnum } from '@/services/system/dict'; |
| | | import { request } from '@umijs/max'; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 删除节点 |
| | |
| | | * @param selectedRows |
| | | */ |
| | | const handleRemove = async (selectedRows) => { |
| | | const hide = message.loading('正在删除'); |
| | | if (!selectedRows) return true; |
| | | const hide = message.loading('正在删除'); |
| | | try { |
| | | const resp = await removeLogininfor(selectedRows.map((row) => row.infoId).join(',')); |
| | | hide(); |
| | |
| | | </Button>, |
| | | ]} |
| | | request={(params) => |
| | | getLogininforList({ ...params }).then((res) => { |
| | | request('/api/role/page', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | }, |
| | | data: { ...params } |
| | | }).then((res) => { |
| | | const result = { |
| | | data: res.rows, |
| | | total: res.total, |
| | |
| | | }; |
| | | return result; |
| | | }) |
| | | |
| | | // getLogininforList({ ...params }).then((res) => { |
| | | // const result = { |
| | | // data: res.rows, |
| | | // total: res.total, |
| | | // success: true, |
| | | // }; |
| | | // return result; |
| | | // }) |
| | | } |
| | | columns={columns} |
| | | rowSelection={{ |
New file |
| | |
| | | import { request } from '@umijs/max'; |
New file |
| | |
| | | package com.zy.asrs.wcs.sys.controller; |
| | | |
| | | import com.zy.asrs.framework.common.R; |
| | | import com.zy.asrs.wcs.common.annotation.OperationLog; |
| | | import com.zy.asrs.wcs.sys.entity.User; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * Created by vincent on 2/13/2024 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/api") |
| | | public class RoleController extends BaseController { |
| | | |
| | | @PreAuthorize("hasAuthority('sys:auth:user')") |
| | | @OperationLog |
| | | @PutMapping("/role/page") |
| | | public R updateInfo(@RequestBody User user) { |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.zy.asrs.wcs.sys.controller.param; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Created by vincent on 2/13/2024 |
| | | */ |
| | | @Data |
| | | public class PageParam { |
| | | |
| | | |
| | | |
| | | } |