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'=>'证书所属单位'])