Browse Source

页面修改

wesley 6 years ago
parent
commit
9b957a6562

+ 21 - 5
resources/views/admin/company/info/index.blade.php

xqd xqd xqd
@@ -22,21 +22,25 @@
             margin-right: 20px;
             color: #111
         }
-        .ibox-content{
+
+        .ibox-content {
             background-color: #f5f9fc;
         }
-        #company-list{
+
+        #company-list {
             background-color: #ffffff;
         }
 
-        #filter_table{
+        #filter_table {
             background-color: #ffffff;
             margin: 0 auto 20px auto;
             padding: 30px 5px;
             border-radius: 5px
 
         }
-
+        .bootstrap-tagsinput{
+            width: 90%;
+        }
     </style>
 @endsection
 
@@ -57,6 +61,18 @@
                     <div class="col-xl-7 col-lg-10" id="filter_table">
                         <form method="GET" action="" accept-charset="UTF-8" id="filter_company">
                             {{ csrf_field() }}
+                            <div class="row" style="margin-bottom: 20px">
+                                <div class="col-sm-10 col-sm-offset-2" style="margin: auto">
+                                    <input class="tagsinput form-control" type="text"
+                                           name="companyName" style="display: none;width: 100%"
+                                           placeholder="请输入企业名称关键字" value="{{Request::get('companyName')}}">
+
+                                         <span class="btn btn-default" style="margin: 5px 6px" onclick="filter_company()">搜索</span>
+
+
+                                </div>
+
+                            </div>
                             <div class="row">
                                 <div class="col-sm-2">
                                     <select name="district" class="form-control" onchange="filter_company()">
@@ -119,7 +135,7 @@
 
                     </div>
 
-                    <div id="company-list"  class="col-xl-7 col-lg-10" style="margin: auto">
+                    <div id="company-list" class="col-xl-7 col-lg-10" style="margin: auto">
                         @include('admin.company.info.data')
                     </div>
 

+ 27 - 12
resources/views/admin/company/info/search.blade.php

xqd xqd xqd xqd
@@ -4,19 +4,23 @@
         .chosen-choices input {
             width: 50px !important;
         }
-        .bootstrap-tagsinput{
+
+        .bootstrap-tagsinput {
             width: 100%;
         }
-        .ibox-content,body.gray-bg{
+
+        .ibox-content, body.gray-bg {
             background-color: #f5f9fc;
         }
-        .ibox-content>div{
+
+        .ibox-content > div {
             margin: auto;
             margin-top: 120px;
-            padding:50px;
+            padding: 50px;
             background-color: #ffffff
         }
-        h1{
+
+        h1 {
             padding: 20px 0;
             text-align: center;
             font-weight: 700;
@@ -30,14 +34,17 @@
             padding-right: 2px;
         }
 
-        .ibox-content h3{
+        .ibox-content h3 {
             border-bottom: 1px solid #eee;
             padding: 20px 0 10px 0;
             margin-bottom: 10px;
             font-weight: 400;
         }
 
-        .ibox-content label{color: #bbb;font-size: 14px}
+        .ibox-content label {
+            color: #bbb;
+            font-size: 14px
+        }
     </style>
 @endsection
 
@@ -54,7 +61,7 @@
                     </div>
                 </div>
 
-                <form method="GET" action="{{ U('Company/Info/index') }}" accept-charset="UTF-8">
+                <form method="GET" action="{{ U('Company/Info/index') }}" accept-charset="UTF-8" id="filter_form">
                     <div class="ibox-content">
 
                         <div class="col-md-8">
@@ -146,15 +153,23 @@
                             <div class="form-group">
                                 <div class="row">
                                     <div class="col-sm-12" style="text-align: right">
-                                        <button class="btn btn-outline-primary">筛选
-                                        </button>
+                                        <span class="btn btn-outline-primary" onclick="formsubmit()">筛选
+                                        </span>
                                     </div>
                                 </div>
                             </div>
                         </div>
                     </div>
-            </form>
+                </form>
+            </div>
         </div>
     </div>
-    </div>
+@endsection
+
+@section('js')
+    <script type="text/javascript">
+        function formsubmit() {
+            $('#filter_form').submit()
+        }
+    </script>
 @endsection