合并one
This commit is contained in:
commit
a2aa5f5aeb
28 files changed
+1065
-96
No files matched your search
@@ -36,6 +36,8 @@ class FenGong extends Migrator
|
||||
->addColumn('banji_id','integer',['limit'=>11,'null'=>true,'comment'=>'学科ID'])
|
||||
->addColumn('subject_id','integer',['limit'=>11,'null'=>true,'comment'=>'学科ID'])
|
||||
->addColumn('teacher_id','integer',['limit'=>11,'null'=>true,'comment'=>'教师ID'])
|
||||
->addColumn('bfdate','integer',['limit'=>11,'null'=>true,'comment'=>'开始日期'])
|
||||
->addColumn('xueqi_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'=>'删除时间'])
|
||||
|
||||
@@ -46,6 +46,21 @@ class EditAdminStudent extends Migrator
|
||||
->update();
|
||||
}
|
||||
|
||||
// 教师任务分工
|
||||
$table = $this->table('fen_gong');
|
||||
$column = $table->hasColumn('bfdate');
|
||||
if (!$column) {
|
||||
$table
|
||||
->addColumn('bfdate','integer',['limit'=>11,'null'=>true,'comment'=>'开始日期'])
|
||||
->update();
|
||||
}
|
||||
column = $table->hasColumn('xueqi_id');
|
||||
if (!$column) {
|
||||
$table
|
||||
->addColumn('xueqi_id','integer',['limit'=>11,'null'=>true,'comment'=>'开始日期'])
|
||||
->update();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1058,6 +1058,57 @@ class Rule extends Seeder
|
||||
,'paixu' => 7
|
||||
,'pid' => 505
|
||||
],
|
||||
['id' => 506
|
||||
,'title' => '任务分工'
|
||||
,'name' => 'teach/fengong/index'
|
||||
,'paixu' => 6
|
||||
,'ismenu' => 1
|
||||
,'pid' => 6
|
||||
,'url' => '/teach/fengong'
|
||||
],
|
||||
// 学科列表权限
|
||||
['id' => 50601
|
||||
,'title' => '添加'
|
||||
,'name' => 'teach/fengong/create'
|
||||
,'paixu' => 1
|
||||
,'pid' => 506
|
||||
],
|
||||
['id' => 50602
|
||||
,'title' => '保存'
|
||||
,'name' => 'teach/fengong/save'
|
||||
,'paixu' => 2
|
||||
,'pid' => 506
|
||||
],
|
||||
['id' => 50603
|
||||
,'title' => '删除'
|
||||
,'name' => 'teach/fengong/delete'
|
||||
,'paixu' => 3
|
||||
,'pid' => 506
|
||||
],
|
||||
['id' => 50604
|
||||
,'title' => '编辑'
|
||||
,'name' => 'teach/fengong/edit'
|
||||
,'paixu' => 4
|
||||
,'pid' => 506
|
||||
],
|
||||
['id' => 50605
|
||||
,'title' => '更新'
|
||||
,'name' => 'teach/fengong/update'
|
||||
,'paixu' => 5
|
||||
,'pid' => 506
|
||||
],
|
||||
['id' => 50606
|
||||
,'title' => '查看'
|
||||
,'name' => 'teach/fengong/read'
|
||||
,'paixu' => 6
|
||||
,'pid' => 506
|
||||
],
|
||||
['id' => 50607
|
||||
,'title' => '状态'
|
||||
,'name' => 'teach/fengong/setstatus'
|
||||
,'paixu' => 7
|
||||
,'pid' => 506
|
||||
],
|
||||
|
||||
/*======================================================================
|
||||
* 考试管理
|
||||
|
||||
Reference in new issue
Block a user