diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue index 0f63a5fed..61149c805 100644 --- a/ruoyi-ui/src/layout/components/Navbar.vue +++ b/ruoyi-ui/src/layout/components/Navbar.vue @@ -13,6 +13,10 @@ - this.chart.setOption({ - tooltip: { - trigger: 'axis', - axisPointer: { // 坐标轴指示器,坐标轴触发有效 - type: 'shadow' // 默认为直线,可选为:'line' | 'shadow' - } - }, - grid: { - top: 10, - left: '2%', - right: '2%', - bottom: '3%', - containLabel: true - }, - xAxis: [{ - type: 'category', - data: ['班级A', '班级B', '班级C', '班级D', '班级E', '班级F', '班级G'], - axisTick: { - alignWithLabel: true - } - }], - yAxis: [{ - type: 'value', - axisTick: { - show: false - } - }], - series: [{ - name: '幼儿出勤率', - type: 'bar', - stack: 'vistors', - barWidth: '60%', - data: [30, 29, 28, 31, 33, 18, 20], - animationDuration - }, { - name: '教师出勤率', - type: 'bar', - stack: 'vistors', - barWidth: '60%', - data: [3, 3, 3, 3, 2, 3, 3], - animationDuration - }] - }) + + diff --git a/ruoyi-ui/src/views/dashboard/PieChart.vue b/ruoyi-ui/src/views/dashboard/PieChart.vue index 521d3da9c..0c072281d 100644 --- a/ruoyi-ui/src/views/dashboard/PieChart.vue +++ b/ruoyi-ui/src/views/dashboard/PieChart.vue @@ -23,7 +23,7 @@ export default { }, height: { type: String, - default: "300px" + default: "480px" } }, data() { diff --git a/ruoyi-ui/src/views/dashboard/RaddarChart.vue b/ruoyi-ui/src/views/dashboard/RaddarChart.vue index 9831abfec..c67647e81 100644 --- a/ruoyi-ui/src/views/dashboard/RaddarChart.vue +++ b/ruoyi-ui/src/views/dashboard/RaddarChart.vue @@ -1,116 +1,75 @@ + + diff --git a/ruoyi-ui/src/views/system/user/index.vue b/ruoyi-ui/src/views/system/user/index.vue index 657f44058..57327da57 100644 --- a/ruoyi-ui/src/views/system/user/index.vue +++ b/ruoyi-ui/src/views/system/user/index.vue @@ -477,7 +477,7 @@ export default { getTreeselect() { treeselect().then(response => { this.deptOptions = response.data; - console.log(this.deptOptions); + //console.log(this.deptOptions); }); }, // 筛选节点 diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByDayFlowDetailController.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByDayFlowDetailController.java index 9ae4186db..020bf12aa 100644 --- a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByDayFlowDetailController.java +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByDayFlowDetailController.java @@ -44,7 +44,7 @@ public class ByDayFlowDetailController extends BaseController { startPage(); List list = byDayFlowDetailService.selectByDayFlowDetailList(byDayFlowDetail); - System.out.println("-------------------------------"+list); + //System.out.println("-------------------------------"+list); return getDataTable(list); } @@ -76,7 +76,7 @@ public class ByDayFlowDetailController extends BaseController */ @GetMapping("/treeselect") public AjaxResult treeselect(ByDayFlowDetail byDayFlowDetail) { - List byDayFlowDetails = byDayFlowDetailService.selectByDayFlowDetailList(byDayFlowDetail); + List byDayFlowDetails = byDayFlowDetailService.selectByDayFlowDetailListTree(byDayFlowDetail); return AjaxResult.success(byDayFlowDetailService.buildDayFlowDetailTreeSelect(byDayFlowDetails)); } diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByDayFlowDetail.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByDayFlowDetail.java index 3dc7e0e16..c9a5bd9d2 100644 --- a/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByDayFlowDetail.java +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByDayFlowDetail.java @@ -22,7 +22,7 @@ public class ByDayFlowDetail extends BaseEntity private Long id; /** 树状父类ID */ - private Long parentid; + private Long parentId; /** 树状子类 */ private List children = new ArrayList(); @@ -155,16 +155,16 @@ public class ByDayFlowDetail extends BaseEntity .append("updateUser", getUpdateUser()) .append("createTime", getCreateTime()) .append("updateTime", getUpdateTime()) - .append("parentid", getParentid()) + .append("parentid", getParentId()) .toString(); } - public Long getParentid() { - return parentid; + public Long getParentId() { + return parentId; } - public void setParentid(Long parentid) { - this.parentid = parentid; + public void setParentId(Long parentId) { + this.parentId = parentId; } public List getChildren() { diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByDayFlowDetailMapper.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByDayFlowDetailMapper.java index 6ea959679..43ea0af22 100644 --- a/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByDayFlowDetailMapper.java +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByDayFlowDetailMapper.java @@ -27,6 +27,14 @@ public interface ByDayFlowDetailMapper */ public List selectByDayFlowDetailList(ByDayFlowDetail byDayFlowDetail); + /** + * 查询一日流程树 + * + * @param byDayFlowDetail 一日流程 + * @return 一日流程树集合 + */ + public List selectByDayFlowDetailListTree(ByDayFlowDetail byDayFlowDetail); + /** * 根据ID查询所有子部门 * diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByDayFlowDetailService.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByDayFlowDetailService.java index 2f0c69810..069bdf5f4 100644 --- a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByDayFlowDetailService.java +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByDayFlowDetailService.java @@ -29,6 +29,14 @@ public interface IByDayFlowDetailService */ public List selectByDayFlowDetailList(ByDayFlowDetail byDayFlowDetail); + /** + * 查询一日流程列表树 + * + * @param byDayFlowDetail 一日流程 + * @return 一日流程树集合 + */ + public List selectByDayFlowDetailListTree(ByDayFlowDetail byDayFlowDetail); + /** * 构建前端所需要树结构 * diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByDayFlowDetailServiceImpl.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByDayFlowDetailServiceImpl.java index b53dd7f38..d39a6abc6 100644 --- a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByDayFlowDetailServiceImpl.java +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByDayFlowDetailServiceImpl.java @@ -50,6 +50,18 @@ public class ByDayFlowDetailServiceImpl implements IByDayFlowDetailService return byDayFlowDetailMapper.selectByDayFlowDetailList(byDayFlowDetail); } + /** + * 查询一日流程列表树 + * + * @param byDayFlowDetail 一日流程 + * @return 一日流程树集合 + */ + @Override + public List selectByDayFlowDetailListTree(ByDayFlowDetail byDayFlowDetail) + { + return byDayFlowDetailMapper.selectByDayFlowDetailListTree(byDayFlowDetail); + } + /** * 构建前端所需要树结构 * @@ -58,17 +70,19 @@ public class ByDayFlowDetailServiceImpl implements IByDayFlowDetailService */ @Override public List buildDayFlowDetailTree(List byDayFlowDetails) { + System.out.println("start---"); List returnList = new ArrayList(); List tempList = new ArrayList(); for (ByDayFlowDetail byDayFlowDetail : byDayFlowDetails) { - tempList.add(byDayFlowDetail.getParentid()); + tempList.add(byDayFlowDetail.getId()); } for (Iterator iterator = byDayFlowDetails.iterator(); iterator.hasNext();) { ByDayFlowDetail byDayFlowDetail = (ByDayFlowDetail) iterator.next(); + System.out.println("test==="+!tempList.contains(byDayFlowDetail.getParentId())); // 如果是顶级节点, 遍历该父节点的所有子节点 - if (!tempList.contains(byDayFlowDetail.getParentid())) + if (!tempList.contains(byDayFlowDetail.getParentId())) { recursionFn(byDayFlowDetails, byDayFlowDetail); returnList.add(byDayFlowDetail); @@ -127,8 +141,9 @@ public class ByDayFlowDetailServiceImpl implements IByDayFlowDetailService while (it.hasNext()) { ByDayFlowDetail n = (ByDayFlowDetail) it.next(); - if (StringUtils.isNotNull(n.getParentid()) && n.getParentid().longValue() == t.getId().longValue()) + if (StringUtils.isNotNull(n.getParentId()) && n.getParentId().longValue() == t.getId().longValue()) { + //System.out.println("parentid="+n.getParentId().longValue()+"---"+t.getId().longValue()); tlist.add(n); } } diff --git a/ruoyi/src/main/java/com/ruoyi/project/system/controller/ByClassController.java b/ruoyi/src/main/java/com/ruoyi/project/system/controller/ByClassController.java index 77214357b..71f99887e 100644 --- a/ruoyi/src/main/java/com/ruoyi/project/system/controller/ByClassController.java +++ b/ruoyi/src/main/java/com/ruoyi/project/system/controller/ByClassController.java @@ -42,7 +42,7 @@ public class ByClassController extends BaseController { /** * 查询班级信息列表 */ - @PreAuthorize("@ss.hasPermi('system:class:list')") + @PreAuthorize("@ss.hasPermi('system:class:list')"+ "||@ss.hasPermi('system:school:list')") @GetMapping("/list") public TableDataInfo list(ByClass byClass) { startPage(); diff --git a/ruoyi/src/main/java/com/ruoyi/project/system/controller/ByTeacherJbxxController.java b/ruoyi/src/main/java/com/ruoyi/project/system/controller/ByTeacherJbxxController.java index 9320ee1d0..b01dae4a9 100644 --- a/ruoyi/src/main/java/com/ruoyi/project/system/controller/ByTeacherJbxxController.java +++ b/ruoyi/src/main/java/com/ruoyi/project/system/controller/ByTeacherJbxxController.java @@ -65,7 +65,7 @@ public class ByTeacherJbxxController extends BaseController /** * 查询教师基本信息列表 */ - @PreAuthorize("@ss.hasPermi('system:teacher:list')") + @PreAuthorize("@ss.hasPermi('system:teacher:list')"+ "||@ss.hasPermi('system:user:list')") @GetMapping("/listgroupxw") public TableDataInfo listGroupXw(ByTeacherJbxx byTeacherJbxx) { diff --git a/ruoyi/src/main/resources/mybatis/benyi/ByDayFlowDetailMapper.xml b/ruoyi/src/main/resources/mybatis/benyi/ByDayFlowDetailMapper.xml index bf1384489..eca40f48f 100644 --- a/ruoyi/src/main/resources/mybatis/benyi/ByDayFlowDetailMapper.xml +++ b/ruoyi/src/main/resources/mybatis/benyi/ByDayFlowDetailMapper.xml @@ -7,6 +7,7 @@ + @@ -23,6 +24,13 @@ from by_day_flow_detail + + select * from( +select dict_value+9999 id,dict_label name,0 parent_id,dict_sort sort_number from sys_dict_data where dict_type='sys_dayflow_type' +union all +select id,name,flow_type+9999,sort_number from by_day_flow_detail ) t + + + +