增加统计项目

This commit is contained in:
巴掌 committed 2020-12-18 12:19:33 +08:00
1 parent 98e15deeac
commit 0b926d92fc
21 files changed
+686 -167

No files matched your search

@@ -42,9 +42,10 @@ class SystemBase extends Migrator
->addColumn('xuenian','integer',['limit'=>11,'null'=>false,'default'=>523206000,'comment'=>'划分学年节点'])
->addColumn('xueqishang','integer',['limit'=>11,'null'=>false,'default'=>523206000,'comment'=>'划分上学期节点'])
->addColumn('xueqixia','integer',['limit'=>11,'null'=>false,'default'=>523206000,'comment'=>'划分下学期节点'])
->addColumn('classalias','boolean',['limit'=>1,'default'=>0,'null'=>false,'comment'=>'是否开启班级另名'])
->addColumn('classalias','boolean',['limit'=>1,'default'=>0,'null'=>false,'comment'=>'是否开启班级别名'])
->addColumn('teacherrongyu','boolean',['limit'=>1,'default'=>0,'null'=>false,'comment'=>'教师查看个人荣誉'])
->addColumn('teacherketi','boolean',['limit'=>1,'default'=>0,'null'=>false,'comment'=>'教师查看个人课题'])
->addColumn('studefen','boolean',['limit'=>1,'default'=>0,'null'=>false,'comment'=>'是否允许学生查看分数'])
->addColumn('create_time','integer',['limit'=>11,'null'=>false,'default'=>1539158918,'comment'=>'创建时间'])
->addColumn('update_time','integer',['limit'=>11,'null'=>false,'default'=>1539158918,'comment'=>'更新时间'])
->addColumn('delete_time','integer',['limit'=>11,'null'=>true,'comment'=>'删除时间'])
@@ -0,0 +1,46 @@
<?php
use think\migration\Migrator;
use think\migration\db\Column;
class TongJiXingmu extends Migrator
{
/**
* Change Method.
*
* Write your reversible migrations using this method.
*
* More information on writing migrations is available here:
* http://docs.phinx.org/en/latest/migrations.html#the-abstractmigration-class
*
* The following commands can be used in this method and Phinx will
* automatically reverse them when rolling back:
*
* createTable
* renameTable
* addColumn
* renameColumn
* addIndex
* addForeignKey
*
* Remember to call "create()" or "update()" and NOT "save()" when working
* with the Table class.
*/
public function change()
{
$table = $this->table('tongji_xiangmu');
// 添加当前表字段
$table
->addColumn('catgory_id','integer',['limit'=>11,'default'=>0,'null'=>false,'comment'=>'类别id'])
->addColumn('title','string',['limit'=>100,'default'=>'a','null'=>false,'default'=>0,'comment'=>'名称'])
->addColumn('biaoshi','string',['limit'=>100,'default'=>'a','null'=>false,'default'=>0,'comment'=>'标识'])
->addColumn('tongji','boolean',['limit'=>1,'default'=>0,'null'=>false,'comment'=>'默认是否参加统计'])
->addColumn('status','boolean',['limit'=>1,'default'=>'1','null'=>false,'comment'=>'0=禁用,1=正常'])
->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();
}
}
+3 -53
View File
@@ -1168,7 +1168,7 @@ class Rule extends Seeder
['id' => 703
,'title' => '文件管理'
,'name' => 'system/fields/index'
,'paixu' => 3
,'paixu' => 2
,'ismenu' => 1
,'pid' => 7
,'url' => '/system/file'
@@ -1188,7 +1188,7 @@ class Rule extends Seeder
['id' => 704
,'title' => '数据备份'
,'name' => 'system/backup/index'
,'paixu' => 5
,'paixu' => 4
,'ismenu' => 1
,'pid' => 7
,'url' => '/system/backup/index'
@@ -1221,7 +1221,7 @@ class Rule extends Seeder
['id' => 705
,'title' => '系统设置'
,'name' => 'system/systembase/edit'
,'paixu' => 6
,'paixu' => 5
,'ismenu' => 1
,'pid' => 7
,'url' => '/system/'
@@ -1232,56 +1232,6 @@ class Rule extends Seeder
,'paixu' => 1
,'pid' => 705
],
['id' => 706
,'title' => '统计项目'
,'name' => 'kaoshi/tongjixiangmu/index'
,'paixu' => 4
,'ismenu' => 1
,'pid' => 7
,'url' => '/kaoshi/tjxm/index'
],
['id' => 70601
,'title' => '添加'
,'name' => 'kaoshi/tongjixiangmu/create'
,'paixu' => 1
,'pid' => 706
],
['id' => 70602
,'title' => '保存'
,'name' => 'kaoshi/tongjixiangmu/save'
,'paixu' => 2
,'pid' => 706
],
['id' => 70603
,'title' => '编辑'
,'name' => 'kaoshi/tongjixiangmu/edit'
,'paixu' => 3
,'pid' => 706
],
['id' => 70604
,'title' => '更新'
,'name' => 'kaoshi/tongjixiangmu/update'
,'paixu' => 4
,'pid' => 706
],
['id' => 70605
,'title' => '参与统计'
,'name' => 'kaoshi/tongjixiangmu/tongji'
,'paixu' => 5
,'pid' => 706
],
['id' => 70606
,'title' => '添加'
,'name' => 'kaoshi/tongjixiangmu/setstatus'
,'paixu' => 6
,'pid' => 706
],
['id' => 70607
,'title' => 'shanchu'
,'name' => 'kaoshi/tongjixiangmu/delete'
,'paixu' => 7
,'pid' => 706
],
/*======================================================================
* 考试管理
Loaded 3 of 21 files, more files were not shown because too many files have changed in this diff. Show more