From d320c8ca2388d583b9d735264939d6843d719350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Fri, 28 Dec 2018 13:06:43 +0800 Subject: [PATCH] =?UTF-8?q?migrate=E3=80=81seed=E3=80=81=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E9=AA=8C=E8=AF=81=E3=80=81=E5=8D=95=E4=BD=8D?= =?UTF-8?q?=E8=8D=A3=E8=AA=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common.php | 4 +- application/http/middleware/YanZheng.php | 2 +- application/kaoshi/view/index/create.html | 28 +- application/kaoshi/view/index/edit.html | 24 +- .../kaoshi/view/more_action/biaoqian.html | 25 +- application/renshi/view/index/create.html | 26 +- application/renshi/view/index/create_all.html | 12 +- application/renshi/view/index/edit.html | 28 +- application/renshi/view/student/create.html | 20 +- .../renshi/view/student/create_all.html | 12 +- application/renshi/view/student/edit.html | 24 +- application/rongyu/controller/DwRongyu.php | 77 +++++- application/rongyu/validate/DwRongyu.php | 24 ++ application/rongyu/view/dw_rongyu/create.html | 250 +++++++++++------- application/rongyu/view/dw_rongyu/index.html | 2 + application/system/model/Fields.php | 5 - application/system/view/category/create.html | 2 +- application/system/view/category/edit.html | 2 +- application/teach/view/banji/create.html | 12 +- application/teach/view/subject/create.html | 11 +- application/teach/view/subject/edit.html | 4 +- application/teach/view/xueqi/create.html | 6 +- application/teach/view/xueqi/edit.html | 6 +- .../migrations/20181010035225_system_base.php | 2 +- .../migrations/20181218041034_dw_rongyu.php | 2 +- database/seeds/Category.php | 12 + database/seeds/Rule.php | 30 +-- database/seeds/School.php | 1 + 28 files changed, 340 insertions(+), 313 deletions(-) create mode 100644 application/rongyu/validate/DwRongyu.php diff --git a/application/common.php b/application/common.php index 9a0b29ad..5e7c0a56 100644 --- a/application/common.php +++ b/application/common.php @@ -155,4 +155,6 @@ function schlist($low='班级',$high='其它级') ->column('id,title,jiancheng'); return $schlist; -} \ No newline at end of file +} + + diff --git a/application/http/middleware/YanZheng.php b/application/http/middleware/YanZheng.php index ca0b6c29..fb9b4b14 100644 --- a/application/http/middleware/YanZheng.php +++ b/application/http/middleware/YanZheng.php @@ -52,7 +52,7 @@ class YanZheng extends Controller $uneed_c = array(); # 荣誉器名首字母要大写 // 排除方法 $uneed_a = array( - 'welcome','update','save', + 'welcome','update','save','upload', 'index','mybanji','banjilist', 'editpassword','updatepassword', // 查询班级成绩、查询年级成绩 diff --git a/application/kaoshi/view/index/create.html b/application/kaoshi/view/index/create.html index d449eaa6..bab9a306 100644 --- a/application/kaoshi/view/index/create.html +++ b/application/kaoshi/view/index/create.html @@ -8,7 +8,7 @@ {php} $school = schlist('班级','区级'); {/php} - {volist name="school" id="vo"} @@ -31,7 +31,7 @@ $xq = new app\teach\model\Xueqi; $xueqi = $xq->where('status',1)->order(['id'=>'desc'])->limit(5)->field('id,title')->select(); {/php} - {volist name="xueqi" id="vo"} @@ -45,7 +45,7 @@
{php}$list = getCategory(109);{/php} - {volist name="list" id="vo"} @@ -67,7 +67,7 @@
{foreach $njlist=nianjilist() as $key=>$vo } {/foreach}
@@ -83,7 +83,7 @@
{foreach $sjlist as $key=>$vo }
@@ -108,18 +108,6 @@ required:true, rangelength:[2,25] }, - zuzhi:{ - required:true, - digits:true - }, - xueqi:{ - required:true, - digits:true - }, - category:{ - required:true, - digits:true - }, bfdate:{ required:true, dateISO:true @@ -128,12 +116,6 @@ required:true, dateISO:true }, - nianji:{ - required:true, - }, - subject:{ - required:true, - }, }; // 设置表单提交方式 diff --git a/application/kaoshi/view/index/edit.html b/application/kaoshi/view/index/edit.html index 65bccfbc..c6be8ce5 100644 --- a/application/kaoshi/view/index/edit.html +++ b/application/kaoshi/view/index/edit.html @@ -8,7 +8,7 @@ {php} $school = schlist('班级','区级'); {/php} - {volist name="school" id="vo"} @@ -31,7 +31,7 @@ $xq = new app\teach\model\Xueqi; $xueqi = $xq->where('status',1)->order(['id'=>'desc'])->limit(5)->field('id,title')->select(); {/php} - {volist name="xueqi" id="vo"} @@ -45,7 +45,7 @@
{php}$category = getCategory(109);{/php} - {volist name="category" id="vo"} @@ -67,7 +67,7 @@
{foreach $njlist=nianjilist() as $key=>$vo } {/foreach}
@@ -84,7 +84,7 @@ {present name="$list['manfenedit'][$vo.id]"}
@@ -120,14 +120,6 @@ required:true, rangelength:[2,25] }, - xueqi:{ - required:true, - rangelength:[1,80] - }, - category:{ - required:true, - digits:true - }, bfdate:{ required:true, dateISO:true @@ -136,12 +128,6 @@ required:true, dateISO:true }, - nianji:{ - required:true, - }, - subject:{ - required:true, - }, }; // 设置表单提交方式 diff --git a/application/kaoshi/view/more_action/biaoqian.html b/application/kaoshi/view/more_action/biaoqian.html index b41a98d7..7cf9f01a 100644 --- a/application/kaoshi/view/more_action/biaoqian.html +++ b/application/kaoshi/view/more_action/biaoqian.html @@ -30,7 +30,7 @@
{php} $school = schlist('校级','校级');{/php} - {volist name="school" id="vo"} @@ -46,7 +46,7 @@ {php} $njlist = nianjiList(); {/php} - {foreach $njlist as $key=>$vo} @@ -78,26 +78,7 @@ {/block} \ No newline at end of file diff --git a/application/rongyu/view/dw_rongyu/index.html b/application/rongyu/view/dw_rongyu/index.html index d67afd3b..7a249568 100644 --- a/application/rongyu/view/dw_rongyu/index.html +++ b/application/rongyu/view/dw_rongyu/index.html @@ -99,6 +99,7 @@ 荣誉类别 奖项 发证单位 + 级别 发证时间 状态 操作 @@ -159,6 +160,7 @@ { "data": "category"}, { "data": "jiangxiang"}, { "data": "fzschool" }, + { "data": "jibie","name":"fzschool"}, { "data": "fzshijian" }, { "data": "status" }, { "data": "id" }, diff --git a/application/system/model/Fields.php b/application/system/model/Fields.php index 00df4ee0..d3ef94fa 100644 --- a/application/system/model/Fields.php +++ b/application/system/model/Fields.php @@ -6,11 +6,6 @@ use app\common\model\Base; class Fields extends Base { - // 最后编辑时间修改器 - public function setBianjitimeAttr($value) - { - return strtotime($value); - } // 编辑时间获取器 public function getBianjitimeAttr($value) diff --git a/application/system/view/category/create.html b/application/system/view/category/create.html index f201a943..bdf08b53 100644 --- a/application/system/view/category/create.html +++ b/application/system/view/category/create.html @@ -13,7 +13,7 @@
{php} $ctp = getCategory();{/php} - {volist name="$ctp" id="vo"} diff --git a/application/system/view/category/edit.html b/application/system/view/category/edit.html index b1d05df1..5adb1531 100644 --- a/application/system/view/category/edit.html +++ b/application/system/view/category/edit.html @@ -13,7 +13,7 @@
{php} $ctp = getCategory();{/php} - {volist name="$ctp" id="vo"} diff --git a/application/teach/view/banji/create.html b/application/teach/view/banji/create.html index 4384fc65..eb61de78 100644 --- a/application/teach/view/banji/create.html +++ b/application/teach/view/banji/create.html @@ -8,7 +8,7 @@ {php} $school = schlist('校级','校级'); {/php} - {volist name="school" id="vo"} @@ -24,7 +24,7 @@ {php} $njlist = nianjiList(); {/php} - {foreach $njlist as $key=>$vo} @@ -50,14 +50,6 @@