From c0a947102b87c7ab7663d39fcfe37451b40e8586 Mon Sep 17 00:00:00 2001 From: win10 Date: Fri, 11 Sep 2020 16:47:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E7=94=A8=E6=88=B7=E7=99=BB?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/login/controller/Student.php | 8 ---- app/login/view/index/index.html | 29 ++++++------ .../20200616052125_teacher_zhiwu.php | 2 +- .../migrations/20200911063240_ban_zhu_ren.php | 45 +++++++++++++++++++ 4 files changed, 62 insertions(+), 22 deletions(-) create mode 100644 database/migrations/20200911063240_ban_zhu_ren.php diff --git a/app/login/controller/Student.php b/app/login/controller/Student.php index ee2b4d3c..17c88636 100644 --- a/app/login/controller/Student.php +++ b/app/login/controller/Student.php @@ -138,12 +138,4 @@ class Student } return $data; } - - - - - - - - } diff --git a/app/login/view/index/index.html b/app/login/view/index/index.html index 80521f5b..d1d56dcf 100644 --- a/app/login/view/index/index.html +++ b/app/login/view/index/index.html @@ -31,23 +31,27 @@ -
+ diff --git a/database/migrations/20200616052125_teacher_zhiwu.php b/database/migrations/20200616052125_teacher_zhiwu.php index 0b6ac750..eccd4936 100644 --- a/database/migrations/20200616052125_teacher_zhiwu.php +++ b/database/migrations/20200616052125_teacher_zhiwu.php @@ -33,7 +33,7 @@ class TeacherZhiwu extends Migrator // 添加当前表字段 $table - ->addColumn('teacherid','integer',['limit'=>11,'default'=>0,'null'=>false,'comment'=>'教师ID']) + ->addColumn('teacher_id','integer',['limit'=>11,'default'=>0,'null'=>false,'comment'=>'教师ID']) ->addColumn('zhiwu_id','integer',['limit'=>11,'null'=>true,'comment'=>'职务']) ->addColumn('create_time','integer',['limit'=>11,'default'=>'1539158918','null'=>false,'comment'=>'创建时间']) diff --git a/database/migrations/20200911063240_ban_zhu_ren.php b/database/migrations/20200911063240_ban_zhu_ren.php new file mode 100644 index 00000000..27ea7e31 --- /dev/null +++ b/database/migrations/20200911063240_ban_zhu_ren.php @@ -0,0 +1,45 @@ +table('ban_zhu_ren'); + + // 添加当前表字段 + $table + ->addColumn('teacher_id','integer',['limit'=>11,'default'=>0,'null'=>false,'comment'=>'教师ID']) + ->addColumn('zhiwu_id','integer',['limit'=>11,'null'=>true,'comment'=>'职务']) + + ->addColumn('create_time','integer',['limit'=>11,'default'=>'1539158918','null'=>false,'comment'=>'创建时间']) + ->addColumn('update_time','integer',['limit'=>11,'default'=>'1539158918','null'=>false,'comment'=>'更新时间']) + ->addColumn('delete_time','integer',['limit'=>11,'null'=>true,'comment'=>'删除时间']) + ->addColumn('beizhu','string',['limit'=>80,'null'=>true,'comment'=>'备注']) + ->create(); + } +}