From 0461d71ca4f2032a7ae4d6291a5e6ca11029d251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Mon, 24 Aug 2020 17:15:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B9=B4=E7=BA=A7=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E3=80=81=E6=95=99=E5=B8=88=E6=9F=A5=E8=AF=A2=E8=8D=A3?= =?UTF-8?q?=E8=AA=89=E5=92=8C=E8=AF=BE=E9=A2=98=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/login/view/index/index.html | 10 ++-- app/login/view/index/shangma_log.html | 2 +- app/login/view/student/index.html | 10 ++-- app/login/view/teacher/index.html | 4 +- app/system/controller/SystemBase.php | 10 +++- app/system/validate/SystemBase.php | 9 ++- app/system/view/system_base/edit.html | 56 +++++++++++++++++-- app/teach/model/Banji.php | 7 ++- app/teacherSearchChengji/controller/Index.php | 30 ++++++---- app/tools/controller/System.php | 2 +- app/tools/model/OneStudentChengji.php | 8 +-- .../migrations/20181010035225_system_base.php | 4 +- 12 files changed, 110 insertions(+), 42 deletions(-) diff --git a/app/login/view/index/index.html b/app/login/view/index/index.html index ba23367b..80521f5b 100644 --- a/app/login/view/index/index.html +++ b/app/login/view/index/index.html @@ -39,13 +39,13 @@

- +

- 学生查询 - 教师查询 + 学生入口 + 教师入口
@@ -70,7 +70,7 @@ }, }) } - + //监听提交 form.on('submit(login)', function(data){ mobile = "{$list['mobile']}"; @@ -121,4 +121,4 @@ - \ No newline at end of file + diff --git a/app/login/view/index/shangma_log.html b/app/login/view/index/shangma_log.html index 996a7185..4be22269 100644 --- a/app/login/view/index/shangma_log.html +++ b/app/login/view/index/shangma_log.html @@ -63,7 +63,7 @@
增加各分数段统计、学生查询成绩、教师查询成绩
- 增加年级最大数、班级最大数、班级别名是否开启、学年节点等配置内容 + 增加年级名称、班级最大数、班级别名是否开启、学年节点等配置
取消录入成绩时对十分位的限制
diff --git a/app/login/view/student/index.html b/app/login/view/student/index.html index 8bc9b126..50e6c872 100644 --- a/app/login/view/student/index.html +++ b/app/login/view/student/index.html @@ -25,7 +25,7 @@ (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?1fe9097e79cfcf0c8d4547c3a1ba50e0"; - var s = document.getElementsByTagName("script")[0]; + var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); @@ -44,8 +44,8 @@

- 管理员 - 教师查询 + 管理入口 + 教师入口
@@ -70,7 +70,7 @@ }, }) } - + //监听提交 form.on('submit(login)', function(data){ mobile = "{$list['mobile']}"; @@ -121,4 +121,4 @@ - \ No newline at end of file + diff --git a/app/login/view/teacher/index.html b/app/login/view/teacher/index.html index e87124c9..c830bf1e 100644 --- a/app/login/view/teacher/index.html +++ b/app/login/view/teacher/index.html @@ -44,8 +44,8 @@

- 管理员 - 学生查询 + 管理入口 + 学生入口
diff --git a/app/system/controller/SystemBase.php b/app/system/controller/SystemBase.php index 846f1202..c26c67e5 100644 --- a/app/system/controller/SystemBase.php +++ b/app/system/controller/SystemBase.php @@ -16,7 +16,7 @@ class SystemBase extends AdminBase // 获取用户信息 $sys = new sysbasemod; $list['data'] = $sys - ->field('id, keywords, description, thinks, danwei, grademax, classmax, classalias, xuenian') + ->field('id, keywords, description, thinks, danwei, gradelist, classmax, classalias, xuenian, teacherrongyu, teacherketi') ->order(['id' => 'desc']) ->find(); @@ -46,10 +46,12 @@ class SystemBase extends AdminBase ,'description' ,'thinks' ,'danwei' - ,'grademax' + ,'gradelist' ,'classmax' ,'classalias' ,'xuenian' + ,'teacherrongyu' + ,'teacherketi' ], 'put'); $list['id'] = $id; @@ -69,10 +71,12 @@ class SystemBase extends AdminBase $sysList->description = $list['description']; $sysList->thinks = $list['thinks']; $sysList->danwei = $list['danwei']; - $sysList->grademax = $list['grademax']; + $sysList->gradelist = $list['gradelist']; $sysList->classmax = $list['classmax']; $sysList->classalias = $list['classalias']; $sysList->xuenian = $list['xuenian']; + $sysList->teacherrongyu = $list['teacherrongyu']; + $sysList->teacherketi = $list['teacherketi']; $data = $sysList->save(); // 根据更新结果设置返回提示信息 diff --git a/app/system/validate/SystemBase.php b/app/system/validate/SystemBase.php index cd2aa7e9..7a506b44 100644 --- a/app/system/validate/SystemBase.php +++ b/app/system/validate/SystemBase.php @@ -19,10 +19,11 @@ class SystemBase extends Validate 'thinks|感谢' => 'require|length:1,80', 'danwei|单位' => 'require|length:2,80', 'xuenian|学年节点' => 'require|date', - 'grademax|年级最大数' => 'require|integer', + 'gradelist|年级最大数' => 'require|length:1,200', 'classmax|年级最大数' => 'require|integer', 'classalias|别名' => 'require|boolean', - + 'teacherrongyu|教师查询荣誉' => 'require|boolean', + 'teacherketi|教师查询课题' => 'require|boolean', ]; /** @@ -41,9 +42,11 @@ class SystemBase extends Validate ,'thinks' ,'danwei' ,'xuenian' - ,'grademax' + ,'gradelist' ,'classmax' ,'classalias' + ,'teacherrongyu' + ,'teacherketi' ], ]; } diff --git a/app/system/view/system_base/edit.html b/app/system/view/system_base/edit.html index f4d795ce..9099197b 100644 --- a/app/system/view/system_base/edit.html +++ b/app/system/view/system_base/edit.html @@ -23,12 +23,12 @@
-
@@ -42,7 +42,7 @@
+
+ +
+ + +
+
+
+ +
+ + +
+