diff --git a/Application/Admin/Controller/ToolController.class.php b/Application/Admin/Controller/ToolController.class.php index 9f997e287..53f91416e 100644 --- a/Application/Admin/Controller/ToolController.class.php +++ b/Application/Admin/Controller/ToolController.class.php @@ -711,10 +711,9 @@ class ToolController extends ThinkController { $parameter['id'] = $id; } - if (isset($_REQUEST['status']) && $_REQUEST['status'] !== '') { - $status = intval($_REQUEST['status']); - $map['tab_company_info.status'] = $status; - $parameter['status'] = $status; + + if (isset($_REQUEST['partner']) && $_REQUEST['partner'] !== '') { + $map['p.partner'] = ["like","%{$_REQUEST['partner']}%"]; } $page = intval(I('get.p', 0)); @@ -733,6 +732,7 @@ class ToolController extends ThinkController { /* 查询记录总数 */ $count = $model + ->alias('p') ->where($map) ->count(); diff --git a/Application/Admin/View/Tool/company_info.html b/Application/Admin/View/Tool/company_info.html index 2f16e6b1b..cf1db5e15 100644 --- a/Application/Admin/View/Tool/company_info.html +++ b/Application/Admin/View/Tool/company_info.html @@ -42,23 +42,19 @@ 删除 - - - - - - - - - - - - - - - - - +
+
+ +
+ +
+   +
+ +
+ 搜索 +
+