浏览代码

Merge branch 'zzd' of ssh://was.baoshi56.com:10022/var/git/bswas

LD 5 年之前
父节点
当前提交
7c3de4fbb3
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2 1
      app/Http/Controllers/CustomerBaseController.php
  2. 1 0
      resources/views/customer/customer/index.blade.php

+ 2 - 1
app/Http/Controllers/CustomerBaseController.php

@@ -30,7 +30,8 @@ class CustomerBaseController extends Controller
         }]);
         $owners = app("OwnerService")->getIntersectPermitting(['id','name','customer_id']);
         $tags = CustomerTag::query()->orderByDesc('count')->get(["id","name"]);
-        return response()->view('customer.customer.index',compact("customers","owners","tags"));
+        $params = $request->input();
+        return response()->view('customer.customer.index',compact("customers","owners","tags","params"));
     }
 
     /**

+ 1 - 0
resources/views/customer/customer/index.blade.php

@@ -145,6 +145,7 @@
                     </td>
                 </tr>
             </table>
+            {{$customers->appends($params)->links()}}
         </div>
     </div>
 @stop