From 0d0cf00a3288288f558b63127fc99b2f23e290c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=BE=E6=A0=91?= Date: Thu, 7 Mar 2019 10:55:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8D=A3=E8=AA=89=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E9=99=90=E5=88=B6=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/rongyu/validate/JsRongyuInfo.php | 2 +- application/rongyu/view/js_rongyu_info/create.html | 2 +- application/rongyu/view/js_rongyu_info/edit.html | 2 +- database/migrations/20181221041523_js_rongyu_info.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/rongyu/validate/JsRongyuInfo.php b/application/rongyu/validate/JsRongyuInfo.php index 06d0a9b5..c7d5cc7c 100644 --- a/application/rongyu/validate/JsRongyuInfo.php +++ b/application/rongyu/validate/JsRongyuInfo.php @@ -15,7 +15,7 @@ class JsRongyuInfo extends Validate protected $rule = [ 'id|请先上传图片' => 'require', 'rongyuce|荣誉册ID丢失' => 'require', - 'title|荣册标题' => 'require|length:1,30', + 'title|荣册标题' => 'require|length:1,100', 'hjteachers|获奖人' => 'require|array', 'hjschool|荣誉所在单位' => 'require|number', 'subject|荣誉所属学科' => 'require|number', diff --git a/application/rongyu/view/js_rongyu_info/create.html b/application/rongyu/view/js_rongyu_info/create.html index c1f0307a..a19f5fbf 100644 --- a/application/rongyu/view/js_rongyu_info/create.html +++ b/application/rongyu/view/js_rongyu_info/create.html @@ -112,7 +112,7 @@ // 设置表单验证规则 var myrules = { title:{ - maxlength:40, + maxlength:100, }, hjshijian:{ required:true, diff --git a/application/rongyu/view/js_rongyu_info/edit.html b/application/rongyu/view/js_rongyu_info/edit.html index b3bd874e..210e3825 100644 --- a/application/rongyu/view/js_rongyu_info/edit.html +++ b/application/rongyu/view/js_rongyu_info/edit.html @@ -345,7 +345,7 @@ // 设置表单验证规则 var myrules = { title:{ - maxlength:40, + maxlength:100, }, hjshijian:{ required:true, diff --git a/database/migrations/20181221041523_js_rongyu_info.php b/database/migrations/20181221041523_js_rongyu_info.php index 33a30b7d..fa0a09bd 100644 --- a/database/migrations/20181221041523_js_rongyu_info.php +++ b/database/migrations/20181221041523_js_rongyu_info.php @@ -33,7 +33,7 @@ class JsRongyuInfo extends Migrator // 添加当前表字段 $table - ->addColumn('title','string',['limit'=>30,'null'=>false,'comment'=>'获奖内容标题']) + ->addColumn('title','string',['limit'=>100,'null'=>false,'comment'=>'获奖内容标题']) ->addColumn('rongyuce','integer',['limit'=>11,'null'=>false,'comment'=>'荣誉册']) ->addColumn('bianhao','string',['limit'=>15,'null'=>true,'comment'=>'证书编号']) ->addColumn('hjschool','integer',['limit'=>11,'null'=>false,'comment'=>'证书所属单位'])