周计划和详细 页面优化

This commit is contained in:
sk1551 2020-09-08 13:42:04 +08:00
parent 13e47aff77
commit c589a0a224
2 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,3 @@
<template >
<router-view />
</template>

View File

@ -4,6 +4,8 @@ import java.util.List;
import com.ruoyi.common.utils.SecurityUtils; import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.project.common.SchoolCommon; import com.ruoyi.project.common.SchoolCommon;
import com.ruoyi.project.system.service.IByClassService;
import com.ruoyi.project.system.service.ISysUserService;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -36,6 +38,10 @@ public class ByPlanweekController extends BaseController {
private IByPlanweekService byPlanweekService; private IByPlanweekService byPlanweekService;
@Autowired @Autowired
private SchoolCommon schoolCommon; private SchoolCommon schoolCommon;
@Autowired
private IByClassService byClassService;
@Autowired
private ISysUserService userService;
/** /**
* 查询周计划(家长和教育部门)列表 * 查询周计划(家长和教育部门)列表
@ -66,7 +72,12 @@ public class ByPlanweekController extends BaseController {
@PreAuthorize("@ss.hasPermi('benyi:planweek:query')") @PreAuthorize("@ss.hasPermi('benyi:planweek:query')")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id) { public AjaxResult getInfo(@PathVariable("id") String id) {
return AjaxResult.success(byPlanweekService.selectByPlanweekById(id)); AjaxResult ajax=AjaxResult.success();
ByPlanweek byPlanweek = byPlanweekService.selectByPlanweekById(id);
ajax.put(AjaxResult.DATA_TAG, byPlanweek);
ajax.put("classname", byClassService.selectByClassById(byPlanweek.getClassid()).getBjmc());
ajax.put("createusername",userService.selectUserById(byPlanweek.getCreateuserid()).getNickName());
return ajax;
} }
/** /**