From c4cd4fd66576d06c71abd1252a8c6a9a65b8bcc2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?=
Date: Wed, 17 Mar 2021 19:29:23 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 2 +-
app/login/view/index/shangma_log.html | 3 ++-
app/student/view/index/index.html | 5 ++++-
app/system/controller/Category.php | 3 ++-
app/teach/controller/Banji.php | 18 ++++++++++++++++++
app/teach/route/teach.php | 1 +
app/teach/view/banji/index.html | 18 ++++++++++--------
app/tools/model/OneStudentChengji.php | 2 +-
database/seeds/Category.php | 1 +
9 files changed, 40 insertions(+), 13 deletions(-)
diff --git a/README.md b/README.md
index 108d0c5c..aadd838c 100755
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@
言归正传
- 这是一款注重优化成绩采集方法、丰富成绩分析维度的小学成绩统计系统,力争做到符合教师工作习惯、使用方法简单、数据分析多样、分析结果科学,为教师的试卷分析、教育科研提供数据参考。
+ 教学质量是学校教学的生命线,只有能够客观分析自己教学成败得失的教师才是一个合格的老师。这是一款注重优化成绩采集方法、丰富成绩分析维度的小学成绩统计系统,力争做到符合教师工作习惯、使用方法简单、数据分析多样、分析结果科学,为教师的试卷分析、教育科研提供数据参考。
开发者是一名非计算机专业的小学教师,只因工作遇到了兴趣,才有了这个小项目。为了让自己统计成绩工作变得更优雅,才边学边写这个成绩统计项目。信息录入与输出简单,支持在线单条录入和表格录入、表格输出,尽量让所有信息可管理。在操作设计中,遵循 Giles Colborne 的简约至上原则,尽量做到三步便可到达要操作的位置。统计维度参考华东师范大学教育学系王孝玲教授著作的《教育统计学》第五版。前端采用X-adminV2.2,后端采用ThinkPHP V6.0.7框架开发。
diff --git a/app/login/view/index/shangma_log.html b/app/login/view/index/shangma_log.html
index a7b68535..6436cb0c 100755
--- a/app/login/view/index/shangma_log.html
+++ b/app/login/view/index/shangma_log.html
@@ -72,7 +72,8 @@
优化雷达图学科显示、成绩位置算法、部分统计表显示等
增加学生帐号显示成绩或等级设置
增加良好分数线,优秀、良好、合格的人数比例
- 增加教师和学生时的帐号、电话和身份证号的重复验证
+ 增加教师和学生时的帐号、电话和身份证号的重复验证
+ 增加查看班级学生名单
diff --git a/app/student/view/index/index.html b/app/student/view/index/index.html
index cd5c111d..503301dd 100755
--- a/app/student/view/index/index.html
+++ b/app/student/view/index/index.html
@@ -27,7 +27,7 @@
@@ -39,6 +39,9 @@
+{present name="list.banji_id"}
+
+{/present}
{/block}
{block name="table"}
diff --git a/app/system/controller/Category.php b/app/system/controller/Category.php
index 42187d47..3eccc150 100755
--- a/app/system/controller/Category.php
+++ b/app/system/controller/Category.php
@@ -218,7 +218,8 @@ class Category extends AdminBase
{
// 获取表单数据
$src = request()->only([
- 'p_id'
+ 'limit' => '100'
+ ,'p_id'
], 'post');
// 查询类别
$category = new \app\system\model\Category;
diff --git a/app/teach/controller/Banji.php b/app/teach/controller/Banji.php
index f86ebdf1..488ea6a4 100755
--- a/app/teach/controller/Banji.php
+++ b/app/teach/controller/Banji.php
@@ -67,6 +67,24 @@ class Banji extends AdminBase
}
+ // 显示学生列表
+ public function student($banji_id)
+ {
+ // 设置要给模板赋值的信息
+ $list['webtitle'] = '学生列表';
+ $list['dataurl'] = '/student/index/data';
+ $list['status'] = '/student/index/status';
+ $list['kaoshi'] = '/student/index/kaoshi';
+ $list['banji_id'] = $banji_id;
+
+ // 模板赋值
+ $this->view->assign('list', $list);
+
+ // 渲染模板
+ return $this->view->fetch('student@index/index');
+ }
+
+
/**
* 创建班级
*
diff --git a/app/teach/route/teach.php b/app/teach/route/teach.php
index a49f0879..b6290894 100755
--- a/app/teach/route/teach.php
+++ b/app/teach/route/teach.php
@@ -27,6 +27,7 @@ Route::group('xueqi', function () {
// 班级管理
Route::group('banji', function () {
Route::rule('','banji/index','get'); # 信息列表
+ Route::rule('student/','banji/student','get'); # 信息列表
Route::rule('data','banji/ajaxdata','post'); # 获取数据
Route::rule('create','banji/create','get'); # 添加信息
Route::rule('save','banji/save','post'); # 保存信息
diff --git a/app/teach/view/banji/index.html b/app/teach/view/banji/index.html
index 1a79a017..29042e63 100755
--- a/app/teach/view/banji/index.html
+++ b/app/teach/view/banji/index.html
@@ -47,9 +47,12 @@
-
+
+
+
+
@@ -75,12 +78,8 @@ layui.use(['table', 'mytable', 'createInput', 'form'], function() {
options.cols = [
[ //表头
{ type: 'checkbox', fixed: 'left' },
- { field: 'id', title: 'ID', minWidth: 100, sort: true },
- {
- field: 'banjiTitle',
- title: '班级名称',
- minWidth: 100,
- },
+ { field: 'id', title: 'ID', minWidth: 100, sort: true, fixed:'left' },
+ {field: 'banjiTitle',title: '班级名称',minWidth: 100, fixed:'left'},
{ field: 'alias', title: '别名', minWidth: 60, edit: 'text' },
{
field: 'banzhuren',
@@ -112,7 +111,7 @@ layui.use(['table', 'mytable', 'createInput', 'form'], function() {
{ field: 'paixu', title: '排序', sort: true },
{ field: "gl_student_count", title: '学生数', sort: true },
{ field: 'status', title: '状态', templet: '#status', sort: true },
- { field: 'id', title: '操作', toolbar: '#barDemo', minWidth: 180 }
+ { field: 'id', title: '操作', toolbar: '#barDemo', minWidth: 200}
]
];
@@ -161,6 +160,9 @@ layui.use(['table', 'mytable', 'createInput', 'form'], function() {
case 'banzhuren': //编辑
parent.xadmin.add_tab('班主任', '/teach/banzhuren/index/' + obj.data.id, '', '', true);
break;
+ case 'student': //编辑
+ parent.xadmin.add_tab('学生名单', '/teach/banji/student/' + obj.data.id, '', '', true);
+ break;
};
});
diff --git a/app/tools/model/OneStudentChengji.php b/app/tools/model/OneStudentChengji.php
index a2246e5f..76d271da 100755
--- a/app/tools/model/OneStudentChengji.php
+++ b/app/tools/model/OneStudentChengji.php
@@ -523,7 +523,7 @@ class OneStudentChengji extends BaseModel
'xAxis' => [
'type' => 'value'
,'data' => ''
- ,'scale' => true
+ // ,'scale' => true
]
,'yAxis' => [
'type' => 'category'
diff --git a/database/seeds/Category.php b/database/seeds/Category.php
index 8d412728..ee36b9b7 100755
--- a/database/seeds/Category.php
+++ b/database/seeds/Category.php
@@ -309,6 +309,7 @@ class Category extends Seeder
['id' => 12302,'title' => '学期评语','p_id' => 123,'paixu' => 2,'isupdate' => 0],
['id' => 12303,'title' => '月评语','p_id' => 123,'paixu' => 3,'isupdate' => 0],
['id' => 12304,'title' => '周评语','p_id' => 123,'paixu' => 4,'isupdate' => 0],
+ ['id' => 12305,'title' => '日常评语','p_id' => 123,'paixu' => 5,'isupdate' => 0],
// 考试查看范围
['id' => 124
,'title' => '查看考试范围'