From 55e84c2f0f1ce5c8206203dcefa373d25699e083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=BE=E6=A0=91?= Date: Sun, 7 Feb 2021 09:44:55 +0800 Subject: [PATCH] 0 --- README.md | 32 +++--- app/admin/controller/AuthRule.php | 38 ------- app/admin/model/AuthRule.php | 2 +- app/admin/route/admin.php | 2 - app/admin/view/auth_rule/index.html | 8 -- app/kaohao/view/index/create_all.html | 59 ++++++++++- app/kaoshi/controller/Index.php | 6 +- app/kaoshi/view/index/create.html | 46 ++++++++- app/kaoshi/view/index/index.html | 3 +- app/kaoshi/view/index/more_action.html | 98 ++++++++++++------- app/kaoshi/view/kaoshi_set/create.html | 54 +++++++++- app/middleware/Auth.php | 4 +- app/system/view/system_base/edit.html | 30 +++--- .../20210124053905_rule_add_shenfen.php | 53 ---------- database/seeds/Rule.php | 75 ++++++-------- public/.htaccess | 10 +- public/nginx.htaccess | 7 ++ 17 files changed, 290 insertions(+), 237 deletions(-) delete mode 100644 database/migrations/20210124053905_rule_add_shenfen.php diff --git a/README.md b/README.md index 835f85dc..9b69aa49 100755 --- a/README.md +++ b/README.md @@ -151,35 +151,35 @@ 演示帐号 - 管理员帐号 test1 密码 123456 + 管理员帐号 test1 密码 123456 - 教师帐号 123456 密码123 + 教师帐号 123456 密码123 - 学生帐号 210202201210018213 密码123 + 学生帐号 210202201210018213 密码123 实际中教师帐号为教师手机号,学生帐号为学生身份证号码,默认密码为123 里面隐藏了两个很实用的功能,如果想了解隐藏功能,请下载。 ## 更新内容 - 升级框架ThinkPHP V6.0.5 - 增加数据库还原与下载 - 系统设置中增加系统名称设置 - 修改单位获取和计算优秀率、得分率方法 - 修改系统默认类别 - 增加网页成绩统计项目显示设置(超级管理员) - 增加学科优秀和及格人数、差生率、参与率、全科优秀率、全科优秀人数统计 - 增加统计项目设置 - 兼容Linux操作系统 - 增加基础数据 - 修复已知错误 + 升级框架ThinkPHP V6.0.5 + 增加数据库还原与下载 + 系统设置中增加系统名称设置 + 修改单位获取和计算优秀率、得分率方法 + 修改系统默认类别 + 增加网页成绩统计项目显示设置(超级管理员) + 增加学科优秀和及格人数、差生率、参与率、全科优秀率、全科优秀人数统计 + 增加统计项目设置 + 兼容Linux操作系统 + 增加基础数据 + 修复已知错误 - 更多更新日志(http://www.www.dl-sm.cn.cn/login/log) + 更多更新日志(http://www.www.dl-sm.cn.cn/login/log) ## 升级提示 推荐使用 Navicat 同步表结构和部分表中数据。 -## 更详细信息请查阅官方手册 +## 使用手册 https://www.kancloud.cn/llblax/abcd/789222 diff --git a/app/admin/controller/AuthRule.php b/app/admin/controller/AuthRule.php index ac42a8b3..34fa835b 100755 --- a/app/admin/controller/AuthRule.php +++ b/app/admin/controller/AuthRule.php @@ -190,42 +190,4 @@ class AuthRule extends AdminBase // 返回信息 return json($data); } - - - // 设置权限状态 - public function setTeacher() - { - // 获取id变量 - $id = request()->post('id'); - $value = request()->post('value'); - - // 获取权限信息 - $data = AR::where('id', $id)->update(['teacher' => $value]); - - // 根据更新结果设置返回提示信息 - $data ? $data = ['msg' => '教师权限设置成功', 'val' => 1] - : $data = ['msg' => '数据处理错误', 'val' => 0]; - - // 返回信息 - return json($data); - } - - - // 设置权限状态 - public function setStudent() - { - // 获取id变量 - $id = request()->post('id'); - $value = request()->post('value'); - - // 获取权限信息 - $data = AR::where('id', $id)->update(['student' => $value]); - - // 根据更新结果设置返回提示信息 - $data ? $data = ['msg' => '学生权限设置成功', 'val' => 1] - : $data = ['msg' => '数据处理错误', 'val' => 0]; - - // 返回信息 - return json($data); - } } diff --git a/app/admin/model/AuthRule.php b/app/admin/model/AuthRule.php index 9036e5c6..eac240be 100755 --- a/app/admin/model/AuthRule.php +++ b/app/admin/model/AuthRule.php @@ -49,7 +49,7 @@ class AuthRule extends BaseModel $query->field('id, title'); } ]) - ->field('id, name, title, condition, paixu, ismenu, url, pid, type, status, teacher, student') + ->field('id, name, title, condition, paixu, ismenu, url, pid, type, status') ->select(); return $data; diff --git a/app/admin/route/admin.php b/app/admin/route/admin.php index 069ecd67..83a0bc94 100755 --- a/app/admin/route/admin.php +++ b/app/admin/route/admin.php @@ -39,8 +39,6 @@ Route::group('authrule', function () { Route::rule('update/', 'AuthRule/update', 'put'); # 更新信息 Route::rule('delete/', 'AuthRule/delete', 'delete'); # 删除信息 Route::rule('status', 'AuthRule/setStatus', 'post'); # 删除信息 - Route::rule('teacher', 'AuthRule/setTeacher', 'post'); # 删除信息 - Route::rule('student', 'AuthRule/setStudent', 'post'); # 删除信息 Route::rule('menu/', 'AuthRule/menu', 'get'); # 删除信息 }); diff --git a/app/admin/view/auth_rule/index.html b/app/admin/view/auth_rule/index.html index 7069947c..6a06e516 100755 --- a/app/admin/view/auth_rule/index.html +++ b/app/admin/view/auth_rule/index.html @@ -49,12 +49,6 @@ - - {/block} diff --git a/app/kaoshi/controller/Index.php b/app/kaoshi/controller/Index.php index c126edbb..81198a88 100755 --- a/app/kaoshi/controller/Index.php +++ b/app/kaoshi/controller/Index.php @@ -81,8 +81,8 @@ class Index extends AdminBase { // 设置页面标题 $list['set'] = array( - 'webtitle' => '新建考试' - ,'butname' => '创建' + 'webtitle' => '新建考试向导' + ,'butname' => '下一步' ,'formpost' => 'POST' ,'url' => '/kaoshi/index/save' ); @@ -120,7 +120,7 @@ class Index extends AdminBase // 保存数据 $ks = new KS(); $ksdata = $ks->create($list); - $ksdata ? $data = ['msg' => '添加成功', 'val' => 1] + $ksdata ? $data = ['msg' => '添加成功', 'val' => 1, 'kaoshi_id' => $ksdata->id] : $data = ['msg' => '数据处理错误', 'val' => 0]; // 返回信息 diff --git a/app/kaoshi/view/index/create.html b/app/kaoshi/view/index/create.html index 9c01fdf8..58682a4d 100755 --- a/app/kaoshi/view/index/create.html +++ b/app/kaoshi/view/index/create.html @@ -1,6 +1,14 @@ {extend name=".././view/create.html" /} {block name="form"} +
+
+
+ +
+ 一、填写考试信息 +
+
@@ -89,18 +97,22 @@
-
+ {/block} {block name="myjs"} {/block} diff --git a/app/kaoshi/view/index/index.html b/app/kaoshi/view/index/index.html index 3873f74c..929523ea 100755 --- a/app/kaoshi/view/index/index.html +++ b/app/kaoshi/view/index/index.html @@ -77,7 +77,6 @@ options.cols=[[ //表头 {type:'checkbox', fixed:'left'}, {field:'id', title:'操作', toolbar:'#barDemo', minWidth:120}, - {field:'luru', title:'成绩编辑', minWidth:100, templet:'#luru', sort:true}, {field:'status', title:'状态', minWidth:80, templet:'#jieshu', sort:true}, {field:'title', title:'考试名称', sort:true, minWidth:240}, {field:'xueqi_id', title:'学期', sort:true, minWidth:200, templet:function(d){ @@ -112,7 +111,7 @@ cjgl.delAll(checkStatus, "{$list.delete}", 'mytable'); break; case 'add': - cjgl.add('新建考试', "{$list.create}", '600', '400', false); + cjgl.add('新建考试向导', "{$list.create}", '', '', true); break; }; }); diff --git a/app/kaoshi/view/index/more_action.html b/app/kaoshi/view/index/more_action.html index 2b24c3ec..1db9682f 100755 --- a/app/kaoshi/view/index/more_action.html +++ b/app/kaoshi/view/index/more_action.html @@ -27,47 +27,69 @@ - {php} $kaoshi_id = $list['kaoshi_id'];{/php} -
-
    - {volist name="list.menu" id="vo"} -
  • {$vo.title}
  • - {/volist} -
-
- {volist name="list.menu" id="vo"} -
+ {php}$kaoshi_id =$list['kaoshi_id']; {/php} +
+
    +
  • 一、前期操作
  • +
  • 二、表格录入
  • +
  • 三、成绩统计
  • +
  • 四、统计结果
  • +
+ - +