diff --git a/application/common/model/Base.php b/application/common/model/Base.php index c5789679..fb6f15ca 100644 --- a/application/common/model/Base.php +++ b/application/common/model/Base.php @@ -17,10 +17,10 @@ class Base extends Model use SoftDelete; protected $deleteTime = 'delete_time'; - // 状态获取器 - public function getStatusAttr($value) - { - $status =array('1'=>'已启用','0'=>'已停用'); - return $status[$value]; - } + // // 状态获取器 + // public function getStatusAttr($value) + // { + // $status =array('1'=>'已启用','0'=>'已停用'); + // return $status[$value]; + // } } diff --git a/application/common/view/list.html b/application/common/view/list.html index 6fccc240..5d687179 100644 --- a/application/common/view/list.html +++ b/application/common/view/list.html @@ -41,52 +41,124 @@ {block name="myjs"}{/block} \ No newline at end of file diff --git a/application/system/controller/School.php b/application/system/controller/School.php index 23952f70..e87027dc 100644 --- a/application/system/controller/School.php +++ b/application/system/controller/School.php @@ -34,7 +34,7 @@ class School extends Base 'field'=>'update_time', 'order'=>'asc', 'xingzhi'=>'' - ]); + ],'POST'); // 实例化 $sch = new sch; @@ -90,7 +90,7 @@ class School extends Base // 获取表单数据 $list = request() - ->only(['title','jiancheng','biaoshi','xingzhi','jibie','xueduan','paixu'],'post'); + ->only(['title','jiancheng','biaoshi','xingzhi','jibie','xueduan','paixu'=>999],'post'); // 验证表单数据 diff --git a/application/system/view/school/create.html b/application/system/view/school/create.html index afe7274b..6691068d 100644 --- a/application/system/view/school/create.html +++ b/application/system/view/school/create.html @@ -1,7 +1,7 @@ {extend name="common@create" /} {block name="form"} -
+
+ autocomplete="off" class="layui-input" value="999" >
-
@@ -107,51 +107,61 @@ {block name="myjs"} {/block} diff --git a/application/system/view/school/index.html b/application/system/view/school/index.html index 1db717db..fccaa077 100644 --- a/application/system/view/school/index.html +++ b/application/system/view/school/index.html @@ -1,133 +1,156 @@ {extend name="common@list" /} {block name="nav"} - - 系统管理 - 单位管理 - 单位列表 - + + 系统管理 + 单位管理 + 单位列表 + {/block} {block name="search"} - - - - - -
+
+ + + + +
{/block} {block name="table"} -
+
{/block} {block name="myjs"} - - - - - - - + + + + + - - + + + }); + {/block} \ No newline at end of file