diff --git a/application/chengji/controller/Index.php b/application/chengji/controller/Index.php index 555cadb8..5f4c4fea 100644 --- a/application/chengji/controller/Index.php +++ b/application/chengji/controller/Index.php @@ -6,5 +6,9 @@ use app\common\controller\Base; class Index extends Base { - + // 导出参加考试学生二维码 + public function erweima() + { + return $this->fetch(); + } } diff --git a/application/chengji/model/Chengji.php b/application/chengji/model/Chengji.php new file mode 100644 index 00000000..108950af --- /dev/null +++ b/application/chengji/model/Chengji.php @@ -0,0 +1,13 @@ + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + {php}$list = getCategory(108);{/php} + + +
+
+
+ +
+ + ~ + +
+
+
+
+ +
+
+ +{/block} +{block name="yanzheng"} + +{/block} \ No newline at end of file diff --git a/application/renshi/controller/Student.php b/application/renshi/controller/Student.php index 7675749b..c9c9f937 100644 --- a/application/renshi/controller/Student.php +++ b/application/renshi/controller/Student.php @@ -346,9 +346,23 @@ class Student extends Base return json($data); } + // 下载表格模板 public function download() { $download = new \think\response\Download('student_template.xlsx'); return $download->name('student_template.xlsx'); } + + // 查询参加考试学生名单 + public function ckStudents() + { + + } + + // 导出数据 + public function outCankao($data) + { + + } + } diff --git a/application/renshi/model/Student.php b/application/renshi/model/Student.php index fd04b3ac..0eeef3d4 100644 --- a/application/renshi/model/Student.php +++ b/application/renshi/model/Student.php @@ -2,7 +2,9 @@ namespace app\renshi\model; +// 引用数据模型基类 use app\common\model\Base; +// 引用班级数据模型类 use app\teach\model\Banji; class Student extends Base diff --git a/application/teach/model/Banji.php b/application/teach/model/Banji.php index b10c4622..3268ac28 100644 --- a/application/teach/model/Banji.php +++ b/application/teach/model/Banji.php @@ -2,6 +2,7 @@ namespace app\teach\model; +// 引用数据模型基类 use app\common\model\Base; class Banji extends Base diff --git a/application/teach/model/Kaoshi.php b/application/teach/model/Kaoshi.php index 3bf5a0bb..07063ace 100644 --- a/application/teach/model/Kaoshi.php +++ b/application/teach/model/Kaoshi.php @@ -2,6 +2,7 @@ namespace app\teach\model; +// 引用数据模型基类 use app\common\model\Base; diff --git a/application/teach/view/kaoshi/create.html b/application/teach/view/kaoshi/create.html index 45bece14..e5ab9aa3 100644 --- a/application/teach/view/kaoshi/create.html +++ b/application/teach/view/kaoshi/create.html @@ -1,6 +1,23 @@ {extend name="common@create" /} {block name="formaa"}
+
+ +
+ + {php} + $school = new app\system\model\School; + $school = $school->where('status',1)->field('id,title')->all(); + {/php} + + +
+
diff --git a/database/seeds/Category.php b/database/seeds/Category.php index 0cfed37c..cd1a33c0 100644 --- a/database/seeds/Category.php +++ b/database/seeds/Category.php @@ -58,12 +58,14 @@ class Category extends Seeder ['title'=>'教育行政部门','pid'=>101,'paixu'=>8], ['title'=>'其他教育机构','pid'=>101,'paixu'=>9], // 单位级别 - ['title'=>'校级','pid'=>102,'paixu'=>1], - ['title'=>'区级','pid'=>102,'paixu'=>2], - ['title'=>'市级','pid'=>102,'paixu'=>3], - ['title'=>'省级','pid'=>102,'paixu'=>4], - ['title'=>'部级','pid'=>102,'paixu'=>5], - ['title'=>'其它级','pid'=>102,'paixu'=>6], + ['title'=>'班级','pid'=>102,'paixu'=>1], + ['title'=>'教研组','pid'=>102,'paixu'=>2], + ['title'=>'校级','pid'=>102,'paixu'=>3], + ['title'=>'区级','pid'=>102,'paixu'=>4], + ['title'=>'市级','pid'=>102,'paixu'=>5], + ['title'=>'省级','pid'=>102,'paixu'=>6], + ['title'=>'部级','pid'=>102,'paixu'=>7], + ['title'=>'其它级','pid'=>102,'paixu'=>8], // 大学段 ['title'=>'幼儿园','pid'=>103,'paixu'=>1], ['title'=>'小学','pid'=>103,'paixu'=>2], diff --git a/database/seeds/Rule.php b/database/seeds/Rule.php index 3816f0c2..ddc758d6 100644 --- a/database/seeds/Rule.php +++ b/database/seeds/Rule.php @@ -20,7 +20,8 @@ class Rule extends Seeder ['id'=>1,'title'=>'系统管理','name' =>'system','paixu' =>5,'ismenu'=>true,'font' =>'Hui-iconfont-system'], ['id'=>2,'title' =>'管理员管理','name'=>'admin','paixu' =>4,'ismenu' =>true,'font'=>'Hui-iconfont-root'], ['id'=>3,'title' =>'教务管理','name'=>'teach','paixu' =>3,'ismenu' =>true,'font'=>'Hui-iconfont-yuyin2'], - ['id'=>4,'title' =>'师生名单','name'=>'renshi','paixu' =>2,'ismenu' =>true,'font'=>'Hui-iconfont-user-group'], + ['id'=>4,'title' =>'师生名单','name'=>'renshi','paixu' =>2,'ismenu' =>true,'font'=>'Hui-iconfont-user-group'], + ['id'=>5,'title' =>'成绩采集','name'=>'chengji','paixu' =>1,'ismenu' =>true,'font'=>'Hui-iconfont-yuedu'], // 二级菜单 // 系统设置 ['id'=>11,'title'=>'类别管理','name'=>'system/Category/index','paixu'=>1,'ismenu' =>true,'pid' =>1,'url'=>'/category',], @@ -38,6 +39,10 @@ class Rule extends Seeder // 人事管理 ['id'=>41,'title'=>'教师列表','name'=>'renshi/Index/index','paixu'=>1,'ismenu' =>true,'pid' =>4,'url'=>'/teacher',], ['id'=>42,'title'=>'学生列表','name'=>'renshi/Student/index','paixu'=>2,'ismenu' =>true,'pid' =>4,'url'=>'/student',], + // 成绩采集 + ['id'=>51,'title'=>'扫码录入','name'=>'chengji/Index/malu','paixu'=>1,'ismenu' =>true,'pid' =>5,'url'=>'/chengji',], + ['id'=>52,'title'=>'表格录入','name'=>'chengji/Student/biaolu','paixu'=>2,'ismenu' =>true,'pid' =>5,'url'=>'/chengji',], + ['id'=>53,'title'=>'生成二维码','name'=>'chengji/Student/erweima','paixu'=>3,'ismenu' =>true,'pid' =>5,'url'=>'/chengji',], // 教务管理 diff --git a/route/chengji.php b/route/chengji.php index 9311ccc7..2ef09ccd 100644 --- a/route/chengji.php +++ b/route/chengji.php @@ -10,7 +10,7 @@ // +---------------------------------------------------------------------- //系统设置路由 -Route::resource('chengji','chengji/Index'); +Route::get('chengji/erweima','chengji/Index/erweima');