diff --git a/ruoyi-ui/src/api/system/home.js b/ruoyi-ui/src/api/system/home.js
new file mode 100644
index 000000000..0da022ae4
--- /dev/null
+++ b/ruoyi-ui/src/api/system/home.js
@@ -0,0 +1,9 @@
+import request from '@/utils/request'
+
+// 查询信息
+export function info() {
+ return request({
+ url: '/system/home/info',
+ method: 'get',
+ })
+}
\ No newline at end of file
diff --git a/ruoyi-ui/src/views/benyi/assessment/history.vue b/ruoyi-ui/src/views/benyi/assessment/history.vue
index 2b0adbcf8..45f5d771f 100644
--- a/ruoyi-ui/src/views/benyi/assessment/history.vue
+++ b/ruoyi-ui/src/views/benyi/assessment/history.vue
@@ -56,25 +56,17 @@
>
{{ itemMb.sort }}. {{ itemMb.name }}
+ >{{ itemMb.name }}(未满足评估标准)
+
+
+ 教育建议 {{ itemMb.jyjy }}
-
-
- 建议{{ i + 1 }}.{{ itemYs.jyjy }}
-
-
p.parentId == itemFzly.id
)"
- :key="itemMb.id"
+ :key="index"
v-show="
assessmentcontentList.filter(
(p) => p.parentId == itemMb.id
@@ -85,7 +77,7 @@
>
{{ itemMb.sort }}. {{ itemMb.name }} (满足标准)
+ >{{ itemMb.name }} (满足评估标准)
@@ -131,25 +123,17 @@
>
{{ itemMb.sort }}. {{ itemMb.name }}
+ >{{ itemMb.name }}(未满足评估标准)
+
+
+ 教育建议 {{ itemMb.jyjy }}
-
-
- 建议{{ i + 1 }}.{{ itemYs.jyjy }}
-
-
p.parentId == itemFzly.id
)"
- :key="itemMb.id"
+ :key="index"
v-show="
assessmentcontentList.filter(
(p) => p.parentId == itemMb.id
@@ -160,7 +144,7 @@
>
{{ itemMb.sort }}. {{ itemMb.name }} (满足标准)
+ >{{ itemMb.name }} (满足评估标准)
@@ -209,25 +193,17 @@
>
{{ itemMb.sort }}. {{ itemMb.name }}
+ >{{ itemMb.name }}(未满足评估标准)
+
+
+ 教育建议 {{ itemMb.jyjy }}
-
-
- 建议{{ i + 1 }}.{{ itemYs.jyjy }}
-
-
p.parentId == itemFzly.id
)"
- :key="itemMb.id"
+ :key="index"
v-show="
assessmentcontentList.filter(
(p) => p.parentId == itemMb.id
@@ -238,7 +214,7 @@
>
{{ itemMb.sort }}. {{ itemMb.name }} (满足标准)
+ >{{ itemMb.name }} (满足评估标准)
@@ -287,25 +263,17 @@
>
{{ itemMb.sort }}. {{ itemMb.name }}
+ >{{ itemMb.name }}(未满足评估标准)
+
+
+ 教育建议 {{ itemMb.jyjy }}
-
-
- 建议{{ i + 1 }}.{{ itemYs.jyjy }}
-
-
p.parentId == itemFzly.id
)"
- :key="itemMb.id"
+ :key="index"
v-show="
assessmentcontentList.filter(
(p) => p.parentId == itemMb.id
@@ -316,7 +284,7 @@
>
{{ itemMb.sort }}. {{ itemMb.name }} (满足标准)
+ >{{ itemMb.name }} (满足评估标准)
@@ -365,25 +333,17 @@
>
{{ itemMb.sort }}. {{ itemMb.name }}
+ >{{ itemMb.name }}(未满足评估标准)
+
+
+ 教育建议 {{ itemMb.jyjy }}
-
-
- 建议{{ i + 1 }}.{{ itemYs.jyjy }}
-
-
p.parentId == itemFzly.id
)"
- :key="itemMb.id"
+ :key="index"
v-show="
assessmentcontentList.filter(
(p) => p.parentId == itemMb.id
@@ -394,7 +354,7 @@
>
{{ itemMb.sort }}. {{ itemMb.name }} (满足标准)
+ >{{ itemMb.name }} (满足评估标准)
diff --git a/ruoyi-ui/src/views/dashboard/LineChart.vue b/ruoyi-ui/src/views/dashboard/LineChart.vue
index 73e77d3e3..7bb5e9d3e 100644
--- a/ruoyi-ui/src/views/dashboard/LineChart.vue
+++ b/ruoyi-ui/src/views/dashboard/LineChart.vue
@@ -86,6 +86,9 @@ export default {
},
setOptions() {
this.chart.setOption({
+ title: {
+ text: "考勤统计",
+ },
xAxis: {
data: this.classOptions,
boundaryGap: false,
diff --git a/ruoyi-ui/src/views/dashboard/PieChart.vue b/ruoyi-ui/src/views/dashboard/PieChart.vue
index 0c072281d..372645c85 100644
--- a/ruoyi-ui/src/views/dashboard/PieChart.vue
+++ b/ruoyi-ui/src/views/dashboard/PieChart.vue
@@ -65,6 +65,9 @@ export default {
this.chart = echarts.init(this.$el, "macarons");
this.chart.setOption({
+ title: {
+ text: "教职工学历统计",
+ },
tooltip: {
trigger: "item",
formatter: "{a}
{b} : {c} ({d}%)"
diff --git a/ruoyi-ui/src/views/dashboard/RaddarChart.vue b/ruoyi-ui/src/views/dashboard/RaddarChart.vue
index c67647e81..eef87fd6b 100644
--- a/ruoyi-ui/src/views/dashboard/RaddarChart.vue
+++ b/ruoyi-ui/src/views/dashboard/RaddarChart.vue
@@ -1,66 +1,76 @@
-
+
- 欢迎来到 {{deptName}} 管理系统
+ 欢迎来到 {{ deptName }} 管理系统
- 班级总数:{{classTotal}}
- 教职工总数:{{userTotal}}
- 幼儿总数:0
- 今日园历活动数:0
- 学习视频数:0
+ 班级总数:{{ classTotal }}
+ 教职工总数:{{ userTotal }}
+ 幼儿总数:{{ childTotal }}
+
+ 学习视频数:{{ videoTotal }}
diff --git a/ruoyi/src/main/java/com/ruoyi/project/system/controller/HomeController.java b/ruoyi/src/main/java/com/ruoyi/project/system/controller/HomeController.java
new file mode 100644
index 000000000..51592ab07
--- /dev/null
+++ b/ruoyi/src/main/java/com/ruoyi/project/system/controller/HomeController.java
@@ -0,0 +1,57 @@
+package com.ruoyi.project.system.controller;
+
+import com.ruoyi.common.utils.SecurityUtils;
+import com.ruoyi.framework.web.controller.BaseController;
+import com.ruoyi.framework.web.domain.AjaxResult;
+import com.ruoyi.project.benyi.domain.ByChild;
+import com.ruoyi.project.benyi.domain.ByTrainVideo;
+import com.ruoyi.project.benyi.service.IByChildService;
+import com.ruoyi.project.benyi.service.IByTrainVideoService;
+import com.ruoyi.project.common.SchoolCommon;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+/**
+ * 班级信息Controller
+ *
+ * @author tsbz
+ * @date 2020-11-30
+ */
+@RestController
+@RequestMapping("/system/home")
+public class HomeController extends BaseController {
+
+ @Autowired
+ private IByChildService byChildService;
+ @Autowired
+ private IByTrainVideoService byTrainVideoService;
+ @Autowired
+ private SchoolCommon schoolCommon;
+
+ @GetMapping("/info")
+ public AjaxResult getInfo() {
+ AjaxResult ajaxResult = AjaxResult.success();
+
+ ByChild byChild = new ByChild();
+ byChild.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
+ //判断是否为班主任
+ String classId = schoolCommon.getClassId();
+ if (!schoolCommon.isStringEmpty(classId)) {
+ byChild.setClassid(classId);
+ }
+ List listchild = byChildService.selectByChildList(byChild);
+ ajaxResult.put("childcount", listchild.size());//获取当前用户的幼儿总数
+
+ ByTrainVideo byTrainVideo=new ByTrainVideo();
+ List listvideo = byTrainVideoService.selectByTrainVideoList(byTrainVideo);
+ ajaxResult.put("videocount", listvideo.size());//获取视频总数
+
+
+ return ajaxResult;
+ }
+
+}