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