From be13854fb14c066c8432a7eb8d520d4cd1a35283 Mon Sep 17 00:00:00 2001 From: paidaxing444 <12qwaszx> Date: Sat, 7 Nov 2020 11:55:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=BC=E5=84=BF=E8=AF=84=E4=BC=B0-=E5=9B=BE?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/router/index.js | 15 ++ .../src/views/benyi/assessment/history.vue | 241 ++++++++++++++++++ ruoyi-ui/src/views/benyi/assessment/index.vue | 11 +- .../src/views/benyi/assessment/student.vue | 12 +- .../benyi/domain/ByAssessmentchild.java | 16 ++ .../mybatis/benyi/ByAssessmentchildMapper.xml | 7 +- 6 files changed, 289 insertions(+), 13 deletions(-) diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index 1af3c2e1c..e8d310b34 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -439,6 +439,21 @@ export const constantRoutes = [{ } }] }, + { + path: '/benyi/assessmentchildhistory', + component: Layout, + hidden: true, + children: [{ + path: 'student/:id(\\d+)', + component: () => + import ('@/views/benyi/assessment/history'), + name: 'assessmentchildhistory', + meta: { + title: '幼儿评估图表', + icon: '' + } + }] + }, { path: '/job', component: Layout, diff --git a/ruoyi-ui/src/views/benyi/assessment/history.vue b/ruoyi-ui/src/views/benyi/assessment/history.vue index e69de29bb..4e9ab7339 100644 --- a/ruoyi-ui/src/views/benyi/assessment/history.vue +++ b/ruoyi-ui/src/views/benyi/assessment/history.vue @@ -0,0 +1,241 @@ + + + + + {{ this.childName }}同学,评估结果图表 + + + + + + + + + 评估建议 + + + + 1. 具有健康的体态 + + + + 身高和体重适宜 + + + 参考标准: + 男孩:身高:94.9-111.7厘米,体重:12.7-21.2公斤 + 女孩:身高:94.1-111.3厘米,体重:12.3-21.5公斤 + + + + 在提醒下能自然坐直、站直 + + + + + + + 2. 情绪安定愉快 + + + + 情绪比较稳定,很少因一点小事哭闹不止 + + + + + + 有比较强烈的情绪反应时,能在成人的安抚下逐渐平静下来 + + + + + + + + 配置管理 + 角色管理 + + + + + \ No newline at end of file diff --git a/ruoyi-ui/src/views/benyi/assessment/index.vue b/ruoyi-ui/src/views/benyi/assessment/index.vue index d44d0a693..5cc722d79 100644 --- a/ruoyi-ui/src/views/benyi/assessment/index.vue +++ b/ruoyi-ui/src/views/benyi/assessment/index.vue @@ -43,7 +43,16 @@ prop="classid" :formatter="classFormat" /> - + + + + {{ scope.row.name }} + + + { if (response.code === 200) { this.msgSuccess("评估成功"); diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByAssessmentchild.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByAssessmentchild.java index 7bc2ce3bd..ca425b70a 100644 --- a/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByAssessmentchild.java +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByAssessmentchild.java @@ -59,6 +59,13 @@ public class ByAssessmentchild extends BaseEntity { * 临时创建用 */ private String items; + /** + * 适用范围 + */ + + @Excel(name = "适用范围") + private String scope; + public void setId(Long id) { this.id = id; @@ -124,6 +131,14 @@ public class ByAssessmentchild extends BaseEntity { return items; } + public void setScope(String scope) { + this.scope = scope; + } + + public String getScope() { + return scope; + } + @Override public String toString() { @@ -137,6 +152,7 @@ public class ByAssessmentchild extends BaseEntity { .append("userid", getUserid()) .append("createTime", getCreateTime()) .append("items", getItems()) + .append("scope", getScope()) .toString(); } } \ No newline at end of file diff --git a/ruoyi/src/main/resources/mybatis/benyi/ByAssessmentchildMapper.xml b/ruoyi/src/main/resources/mybatis/benyi/ByAssessmentchildMapper.xml index 80dae6667..d82071606 100644 --- a/ruoyi/src/main/resources/mybatis/benyi/ByAssessmentchildMapper.xml +++ b/ruoyi/src/main/resources/mybatis/benyi/ByAssessmentchildMapper.xml @@ -13,10 +13,11 @@ + - select id, childid, classid, contentid, type, xn, userid, create_time from by_assessmentchild + select id, childid, classid, contentid, type, xn, userid, create_time, scope from by_assessmentchild @@ -46,6 +47,7 @@ xn, userid, create_time, + scope, #{childid}, @@ -55,6 +57,8 @@ #{xn}, #{userid}, #{createTime}, + #{scope}, + @@ -68,6 +72,7 @@ xn = #{xn}, userid = #{userid}, create_time = #{createTime}, + scope = #{scope}, where id = #{id}
+ {{ this.childName }}同学,评估结果图表 +
+ 1. 具有健康的体态 +
+ 身高和体重适宜 +
男孩:身高:94.9-111.7厘米,体重:12.7-21.2公斤
女孩:身高:94.1-111.3厘米,体重:12.3-21.5公斤
在提醒下能自然坐直、站直 +
+ 2. 情绪安定愉快 +
+ 情绪比较稳定,很少因一点小事哭闹不止 +
+ 有比较强烈的情绪反应时,能在成人的安抚下逐渐平静下来 +