diff --git a/app/middleware/Auth.php b/app/middleware/Auth.php index 3f08ef75..b4f79773 100755 --- a/app/middleware/Auth.php +++ b/app/middleware/Auth.php @@ -126,7 +126,6 @@ class Auth 'luru/index/ajaxdataonline', # 获取试卷标签数据 // 系统设置 'system/school/srcschool', # 获学校 - 'system/category/srcchildren', # 获学校 ); diff --git a/app/studentSearchChengji/view/index/index.html b/app/studentSearchChengji/view/index/index.html index cbd2742e..5e2b8289 100755 --- a/app/studentSearchChengji/view/index/index.html +++ b/app/studentSearchChengji/view/index/index.html @@ -57,7 +57,7 @@
- 系统帮助
+ 系统帮助
切换帐号
diff --git a/app/system/controller/Category.php b/app/system/controller/Category.php index 3eccc150..5784a93e 100755 --- a/app/system/controller/Category.php +++ b/app/system/controller/Category.php @@ -211,25 +211,5 @@ class Category extends AdminBase // 返回信息 return json($data); } - - - // 获取类别 - public function srcChildren() - { - // 获取表单数据 - $src = request()->only([ - 'limit' => '100' - ,'p_id' - ], 'post'); - // 查询类别 - $category = new \app\system\model\Category; - $data = $category->srcChild($src) - ->visible([ - 'id' - ,'title' - ]); - $data = reSetObject($data, $src); - - return json($data); - } + } diff --git a/app/system/route/system.php b/app/system/route/system.php index d8710ebb..b1578b53 100755 --- a/app/system/route/system.php +++ b/app/system/route/system.php @@ -50,7 +50,6 @@ Route::group('category', function () { Route::rule('update/', 'Category/update', 'put'); # 更新信息 Route::rule('delete', 'Category/delete', 'delete'); # 删除信息 Route::rule('status', 'Category/setStatus', 'post'); # 删除信息 - Route::rule('children', 'Category/srcChildren', 'post'); # 获取数据 }); diff --git a/app/tools/controller/Teach.php b/app/tools/controller/Teach.php new file mode 100644 index 00000000..ed070ceb --- /dev/null +++ b/app/tools/controller/Teach.php @@ -0,0 +1,29 @@ +only([ + 'limit' => '100' + ,'p_id' + ], 'post'); + // 查询类别 + $category = new \app\system\model\Category; + $data = $category->srcChild($src) + ->visible([ + 'id' + ,'title' + ]); + $data = reSetObject($data, $src); + + return json($data); + } +} diff --git a/app/tools/route/tools.php b/app/tools/route/tools.php index 1a6679aa..1d6480f9 100755 --- a/app/tools/route/tools.php +++ b/app/tools/route/tools.php @@ -44,3 +44,9 @@ Route::group('teacherinfo', function () { Route::rule('srckt','TeacherInfo/srcKt','post'); # 获取课题数据 Route::rule('srcbzr','TeacherInfo/srcBzr','post'); # 获取课题数据 }); + + +// 查询老师荣誉和课题 +Route::group('teach', function () { + Route::rule('children','Teach/srcChildren','post'); # 获取荣誉数据 +}); diff --git a/database/migrations/20181102003411_student.php b/database/migrations/20181102003411_student.php index e10d58b3..3d5d967b 100755 --- a/database/migrations/20181102003411_student.php +++ b/database/migrations/20181102003411_student.php @@ -37,7 +37,7 @@ class Student extends Migrator ->addColumn('sex','boolean',['limit'=>1,'default'=>1,'null'=>false,'comment'=>'性别']) ->addColumn('shengri','integer',['limit'=>11,'default'=>'1539158918','null'=>false,'comment'=>'生日']) ->addColumn('shenfenzhenghao','string',['limit'=>18,'default'=>'N1539158918','null'=>false,'comment'=>'身份证号']) - ->addColumn('password','string',['limit'=>137,'null'=>false,'default'=>'$apr1$RSUodBwI$zOhVq9RQWfQDOW2sbeCDS1','comment'=>'登录密码']) + ->addColumn('password','string',['limit'=>137,'null'=>false,'default'=>'$apr1$oz6tgaAl$ix4GBv0VxcnVJPIiodXUY/','comment'=>'登录密码']) ->addColumn('denglucishu','integer',['limit'=>5,'default'=>0,'null'=>false,'comment'=>'登录次数']) ->addColumn('lastip','string',['limit'=>55,'default'=>'127.0.0.1','null'=>false,'comment'=>'最后一次登录IP']) ->addColumn('ip','string',['limit'=>55,'default'=>'127.0.0.1','null'=>false,'comment'=>'登录IP']) diff --git a/public/static/x-admin2.2/js/createInput.js b/public/static/x-admin2.2/js/createInput.js index c48a6c62..72a61019 100644 --- a/public/static/x-admin2.2/js/createInput.js +++ b/public/static/x-admin2.2/js/createInput.js @@ -17,7 +17,7 @@ layui.extend({ categorySelect: function(myid, pid, value = '', hasNull = true) { $('#' + myid).children().remove(); $.ajax({ - url: '/system/category/children', + url: '/tools/teach/children', type: 'POST', data: { p_id: pid