From 4c97a220f5622a04dbd0ece3f23aadb722b6825b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Mon, 8 Mar 2021 15:54:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/rongyu/controller/Danwei.php | 2 +- app/rongyu/controller/Jiaoshi.php | 2 +- app/rongyu/controller/JsRongyuInfo.php | 2 +- app/rongyu/route/rongyu.php | 6 +- app/rongyu/view/danwei/index.html | 82 ++++++++++++++------------ 5 files changed, 51 insertions(+), 43 deletions(-) diff --git a/app/rongyu/controller/Danwei.php b/app/rongyu/controller/Danwei.php index 365152fe..9a5e2bc1 100755 --- a/app/rongyu/controller/Danwei.php +++ b/app/rongyu/controller/Danwei.php @@ -323,7 +323,7 @@ class Danwei extends AdminBase * @param int $id * @return \think\Response */ - public function delete($id) + public function delete() { // 整理数据 $id = request()->delete('id'); diff --git a/app/rongyu/controller/Jiaoshi.php b/app/rongyu/controller/Jiaoshi.php index 525f21f3..7a11e18e 100755 --- a/app/rongyu/controller/Jiaoshi.php +++ b/app/rongyu/controller/Jiaoshi.php @@ -191,7 +191,7 @@ class Jiaoshi extends AdminBase * @param int $id * @return \think\Response */ - public function delete($id) + public function delete() { // 整理数据 $id = request()->delete('id'); diff --git a/app/rongyu/controller/JsRongyuInfo.php b/app/rongyu/controller/JsRongyuInfo.php index 4a6bd354..0df7cb67 100755 --- a/app/rongyu/controller/JsRongyuInfo.php +++ b/app/rongyu/controller/JsRongyuInfo.php @@ -386,7 +386,7 @@ class JsRongyuInfo extends AdminBase * @param int $id * @return \think\Response */ - public function delete($id) + public function delete() { // 整理数据 $id = request()->delete('id'); diff --git a/app/rongyu/route/rongyu.php b/app/rongyu/route/rongyu.php index cfacf428..b04cce6e 100755 --- a/app/rongyu/route/rongyu.php +++ b/app/rongyu/route/rongyu.php @@ -18,7 +18,7 @@ Route::group('danwei', function () { Route::rule('save', 'Danwei/save', 'post'); # 保存信息 Route::rule('edit/', 'Danwei/edit', 'get'); # 修改信息 Route::rule('update/', 'Danwei/update', 'put'); # 更新信息 - Route::rule('delete/' ,'Danwei/delete', 'delete'); # 删除信息 + Route::rule('delete' ,'Danwei/delete', 'delete'); # 删除信息 Route::rule('status', 'Danwei/setStatus', 'post'); # 删除信息 Route::rule('upload', 'Danwei/upload', 'post'); # 上传图片 Route::rule('createall', 'Danwei/createAll', 'get'); # 批量导入 @@ -35,7 +35,7 @@ Route::group('jiaoshi', function () { // Route::rule('read/','Jiaoshi/read','get'); # 读取信息 Route::rule('edit/','Jiaoshi/edit','get'); # 修改信息 Route::rule('update/','Jiaoshi/update','put'); # 更新信息 - Route::rule('delete/','Jiaoshi/delete','delete'); # 删除信息 + Route::rule('delete','Jiaoshi/delete','delete'); # 删除信息 Route::rule('status','Jiaoshi/setStatus','post'); # 删除信息 }); @@ -49,7 +49,7 @@ Route::group('jsryinfo', function () { Route::rule('save','JsRongyuInfo/save','post'); # 保存信息 Route::rule('edit/','JsRongyuInfo/edit','get'); # 修改信息 Route::rule('update/','JsRongyuInfo/update','put'); # 更新信息 - Route::rule('delete/','JsRongyuInfo/delete','delete'); # 删除信息 + Route::rule('delete','JsRongyuInfo/delete','delete'); # 删除信息 Route::rule('status','JsRongyuInfo/setStatus','post'); # 删除信息 Route::rule('createall/','JsRongyuInfo/createAll','get'); # 批量导入 Route::rule('saveall/','JsRongyuInfo/saveAll','post'); # 批量保存 diff --git a/app/rongyu/view/danwei/index.html b/app/rongyu/view/danwei/index.html index 0d1c42c7..9990bd38 100755 --- a/app/rongyu/view/danwei/index.html +++ b/app/rongyu/view/danwei/index.html @@ -19,36 +19,29 @@ autocomplete="off" class="layui-input" placeholder="输入关键字并回车"> -
- -
- - {php} $category = categoryChildren(112);{/php} - {volist name="category" id="vo"} - - {/volist} -
-
+
- -
- - {php} $school = danweiJibie('区级','其它级'); {/php} - {volist name="school" id="vo"} - - {/volist} -
+ +
+
-
- -
- - {php} $school = danweiJibie('校级','区级'); {/php} - {volist name="school" id="vo"} - - {/volist} -
+
+
+ +
+
+
+
+ +
+ +
+
+ {/block} {block name="table"}
@@ -75,7 +68,22 @@