增加教师、学生密码初始化

This commit is contained in:
巴掌 committed 2020-08-31 20:07:31 +08:00
1 parent c789909aea
commit 9bc6bb01a4
12 files changed
+104 -35

No files matched your search

+4 -5
View File
@@ -10,10 +10,9 @@ use app\teach\model\Subject;
class Index extends BaseControllerr
{
// 初始化控制器
function initialize()
protected function initialize()
{
deump('初始化');
}
// 成绩列表
@@ -21,7 +20,7 @@ class Index extends BaseControllerr
{
// 设置要给模板赋值的信息
$list['webtitle'] = '已录列表';
$list['dataurl'] = '/chengji/luru/data';
$list['dataurl'] = '/luru/index/data';
$list['status'] = '/chengji/index/status';
// 获取学科列表
@@ -70,7 +69,7 @@ class Index extends BaseControllerr
'webtitle' => '扫码录成绩'
,'butname' => '录入'
,'formpost' => 'PUT'
,'url' => '/chengji/malu'
,'url' => '/luru/index/malu'
);
// 模板赋值
+25
View File
@@ -0,0 +1,25 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
// 录入
Route::group('index', function () {
Route::rule('malu', 'Index/malu', 'get'); # 扫码界面
Route::rule('malusave', 'Index/malusave', 'put'); # 扫码保存
Route::rule('read', 'Index/read', 'post'); # 扫码后读取成绩
Route::rule('biaolu', 'Index/biaolu', 'get'); # 表格录入界面
Route::rule('saveall', 'Index/saveAll', 'post'); # 保存表格录入信息
Route::rule('edit/<id>', 'Index/edit', 'get'); # 修改信息
Route::rule('update/<id>', 'Index/update', 'put'); # 更新信息
Route::rule('index', 'Index/index', 'get'); # 成绩获取
Route::rule('data', 'Index/ajaxData', 'post'); # 成绩获取
});
-15
View File
@@ -78,18 +78,3 @@ Route::group('schtj', function () {
Route::rule('tongji','Schtongji/tongji','post'); # 统计各年级成绩
Route::rule('schorder','Schtongji/schOrder','post'); # 统计各班级成绩
});
// 录入
Route::group('luru', function () {
Route::rule('malu', 'Luru/malu', 'get'); # 扫码界面
Route::rule('malusave', 'Luru/malusave', 'put'); # 扫码保存
Route::rule('read', 'Luru/read', 'post'); # 扫码后读取成绩
Route::rule('biaolu', 'Luru/biaolu', 'get'); # 表格录入界面
Route::rule('saveall', 'Luru/saveAll', 'post'); # 保存表格录入信息
Route::rule('edit/<id>', 'Luru/edit', 'get'); # 修改信息
Route::rule('update/<id>', 'Luru/update', 'put'); # 更新信息
Route::rule('index', 'Luru/index', 'get'); # 成绩获取
Route::rule('data', 'Luru/ajaxData', 'post'); # 成绩获取
});
Loaded 3 of 12 files, more files were not shown because too many files have changed in this diff. Show more