From a34b347ad33001fbdb4d1d22165ad15e6dae11dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E6=97=B6=E4=BB=A3=E7=9A=84=E5=B0=8F=E9=9D=92?= =?UTF-8?q?=E5=B9=B4=E5=91=80?= <497157812@qq.com> Date: Sat, 17 Jul 2021 22:58:23 +0800 Subject: [PATCH] Update ReportDashboardController.java --- .../dashboard/controller/ReportDashboardController.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dashboard/controller/ReportDashboardController.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dashboard/controller/ReportDashboardController.java index e586c7a0..15e376b2 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dashboard/controller/ReportDashboardController.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dashboard/controller/ReportDashboardController.java @@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.*; **/ @RestController @Api(tags = "大屏设计管理") +@Permission(code = "bigScreenManage", name = "大屏报表") @RequestMapping("/reportDashboard") public class ReportDashboardController { @@ -31,7 +32,7 @@ public class ReportDashboardController { * @return */ @GetMapping({"/{reportCode}"}) - @Permission(code = "DETAIL", name = "明细") + @Permission(code = "view", name = "查看大屏") public ResponseBean detail(@PathVariable("reportCode") String reportCode) { return ResponseBean.builder().data(reportDashboardService.getDetail(reportCode)).build(); } @@ -42,7 +43,7 @@ public class ReportDashboardController { * @return */ @PostMapping - @Permission(code = "INSERT", name = "新增") + @Permission(code = "design", name = "设计大屏") @GaeaAuditLog(pageTitle = "新增") public ResponseBean insert(@RequestBody ReportDashboardObjectDto dto) { reportDashboardService.insertDashboard(dto); @@ -56,7 +57,7 @@ public class ReportDashboardController { * @return */ @PostMapping("/getData") - @Permission(code = "DETAIL", name = "明细图表数据") + @Permission(code = "view", name = "查看大屏") public ResponseBean getData(@RequestBody ChartDto dto) { return ResponseBean.builder().data(reportDashboardService.getChartData(dto)).build(); }