0.5.2 修复首页看不见数据的问题
This commit is contained in:
parent
0c21bcabf9
commit
d1cf7a1939
|
@ -1,6 +1,7 @@
|
||||||
package com.ruoyi.web.dashboard;
|
package com.ruoyi.web.dashboard;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
@ -19,6 +20,7 @@ public class DashboardController extends BaseController {
|
||||||
|
|
||||||
// 获取统计数据
|
// 获取统计数据
|
||||||
@GetMapping("/brief")
|
@GetMapping("/brief")
|
||||||
|
@PreAuthorize("@ss.hasPermi('dashboard:brief')")
|
||||||
public AjaxResult brief(BriefQuery query) {
|
public AjaxResult brief(BriefQuery query) {
|
||||||
query.setScope(true);
|
query.setScope(true);
|
||||||
return AjaxResult.success(dashboardService.selectBrief(query));
|
return AjaxResult.success(dashboardService.selectBrief(query));
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.ruoyi.web.dashboard;
|
package com.ruoyi.web.dashboard;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
@ -20,12 +21,14 @@ public class DashboardProjectController {
|
||||||
|
|
||||||
// 获取每月项目数和完成数的数据
|
// 获取每月项目数和完成数的数据
|
||||||
@GetMapping("/month")
|
@GetMapping("/month")
|
||||||
|
@PreAuthorize("@ss.hasPermi('dashboard:project:month')")
|
||||||
public AjaxResult month(MonthProjectQuery query) {
|
public AjaxResult month(MonthProjectQuery query) {
|
||||||
return AjaxResult.success(dashboardProjectService.selectMonthProject(query));
|
return AjaxResult.success(dashboardProjectService.selectMonthProject(query));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取项目比率
|
// 获取项目比率
|
||||||
@GetMapping("/rate")
|
@GetMapping("/rate")
|
||||||
|
@PreAuthorize("@ss.hasPermi('dashboard:project:rate')")
|
||||||
public AjaxResult rate() {
|
public AjaxResult rate() {
|
||||||
return AjaxResult.success(dashboardProjectService.selectProjectRate());
|
return AjaxResult.success(dashboardProjectService.selectProjectRate());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user