mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 15:01:23 +08:00
Update addNotice component judge
This commit is contained in:
@@ -42,7 +42,6 @@ public class WorkController {
|
|||||||
@GetMapping("/todo")
|
@GetMapping("/todo")
|
||||||
public ResponseResult getTodo() {
|
public ResponseResult getTodo() {
|
||||||
Long userId = WebUtil.getLoginUser().getUser().getId();
|
Long userId = WebUtil.getLoginUser().getUser().getId();
|
||||||
System.out.println(userId);
|
|
||||||
return ResponseResult.build(ResponseCode.DATABASE_SELECT_OK, "success", workService.getTodo(userId));
|
return ResponseResult.build(ResponseCode.DATABASE_SELECT_OK, "success", workService.getTodo(userId));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,13 +64,11 @@ public class WorkController {
|
|||||||
|
|
||||||
@DeleteMapping("/{id}")
|
@DeleteMapping("/{id}")
|
||||||
public ResponseResult deleteById(@PathVariable Long id) {
|
public ResponseResult deleteById(@PathVariable Long id) {
|
||||||
System.out.println(id);
|
|
||||||
return ResponseResult.build(ResponseCode.DATABASE_DELETE_OK, "success", workService.deleteByWorkId(id));
|
return ResponseResult.build(ResponseCode.DATABASE_DELETE_OK, "success", workService.deleteByWorkId(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/setStatus")
|
@PutMapping("/setStatus")
|
||||||
public ResponseResult updateStatus(@RequestBody UserWork userWork) {
|
public ResponseResult updateStatus(@RequestBody UserWork userWork) {
|
||||||
System.out.println(userWork);
|
|
||||||
userWork.setUserId(WebUtil.getLoginUser().getUser().getId());
|
userWork.setUserId(WebUtil.getLoginUser().getUser().getId());
|
||||||
return ResponseResult.build(ResponseCode.DATABASE_UPDATE_OK, "success", workService.updateStatus(userWork));
|
return ResponseResult.build(ResponseCode.DATABASE_UPDATE_OK, "success", workService.updateStatus(userWork));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
min-width: 600px;
|
min-width: 600px;
|
||||||
min-height: 600px;
|
min-height: 600px;
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
.main-table {
|
.main-table {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -110,10 +110,10 @@ export default {
|
|||||||
{ required: true, message: '请输入公告标题', trigger: 'blur' },
|
{ required: true, message: '请输入公告标题', trigger: 'blur' },
|
||||||
{ min: 2, max: 50, message: '长度在 2 到 50 个字符', trigger: 'blur' }
|
{ min: 2, max: 50, message: '长度在 2 到 50 个字符', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
type: [
|
typeId: [
|
||||||
{ type:'array',required: true, message: '请选择公告类型', trigger: 'change' }
|
{ type:'array',required: true, message: '请选择公告类型', trigger: 'change' }
|
||||||
],
|
],
|
||||||
startTime: [
|
sendTime: [
|
||||||
{ type: 'date', required: true, message: '请选择生效时间', trigger: 'change' }
|
{ type: 'date', required: true, message: '请选择生效时间', trigger: 'change' }
|
||||||
],
|
],
|
||||||
endTime: [
|
endTime: [
|
||||||
|
|||||||
Reference in New Issue
Block a user