|
@@ -1,4 +1,35 @@
|
|
|
@extends('admin.layouts.app')
|
|
@extends('admin.layouts.app')
|
|
|
|
|
+@section('header')
|
|
|
|
|
+ <style>
|
|
|
|
|
+ .company-info {
|
|
|
|
|
+ border: 1px solid #eee;
|
|
|
|
|
+ padding: 10px 0;
|
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
|
+ border-radius: 5px
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .company-info p {
|
|
|
|
|
+ margin-bottom: 0;
|
|
|
|
|
+ font-size: 14px
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .company-info p label {
|
|
|
|
|
+ color: #aaa;
|
|
|
|
|
+ font-weight: 400
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .company-info p span {
|
|
|
|
|
+ margin-right: 20px;
|
|
|
|
|
+ color: #111
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ #filter_table {
|
|
|
|
|
+ margin: 0 auto 20px auto;
|
|
|
|
|
+ border-radius: 5px;
|
|
|
|
|
+ border: 1px solid #eee;
|
|
|
|
|
+ }
|
|
|
|
|
+ </style>
|
|
|
|
|
+@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
@section('content')
|
|
|
<div class="row">
|
|
<div class="row">
|
|
@@ -19,82 +50,93 @@
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- {{--@if(role('Company/Info/create'))--}}
|
|
|
|
|
- {{--<div class="col-sm-8 pull-right">--}}
|
|
|
|
|
- {{--<a href="{{ U('Company/Info/create')}}" class="btn btn-primary pull-right">添加</a>--}}
|
|
|
|
|
- {{--</div>--}}
|
|
|
|
|
- {{--@endif--}}
|
|
|
|
|
|
|
+ @if(role('Company/Info/collection'))
|
|
|
|
|
+ <div class="col-sm-8 pull-right">
|
|
|
|
|
+ <span class="btn btn-warning pull-right" onclick="save_collection()">保存为我的公海
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ @endif
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <table class="table table-striped table-bordered table-hover dataTables-example dataTable">
|
|
|
|
|
- <tr>
|
|
|
|
|
- <th> 过滤条件</th>
|
|
|
|
|
- <form method="GET" action="" accept-charset="UTF-8" id="filter_company">
|
|
|
|
|
- <th>
|
|
|
|
|
- <select name="district" class="form-control" onchange="filter_company()">
|
|
|
|
|
- <option value="">所在地区</option>
|
|
|
|
|
- <option value="成都">成都</option>
|
|
|
|
|
- <option value="上海">上海</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </th>
|
|
|
|
|
- <th>
|
|
|
|
|
- <select name="industry" class="form-control" onchange="filter_company()">
|
|
|
|
|
- <option value="">所属行业</option>
|
|
|
|
|
- <option value="软件开发">软件开发</option>
|
|
|
|
|
- <option value="信息传输">信息传输</option>
|
|
|
|
|
- <option value="互联网">互联网</option>
|
|
|
|
|
- <option value="批发和零售业">批发和零售业</option>
|
|
|
|
|
- <option value="软件和信息技术服务业">软件和信息技术服务业</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </th>
|
|
|
|
|
- <th>
|
|
|
|
|
- <select name="regCapital" class="form-control" onchange="filter_company()">
|
|
|
|
|
- <option value="">注册资本</option>
|
|
|
|
|
- <option value="-50">小于50万</option>
|
|
|
|
|
- <option value="50-100">50~100万</option>
|
|
|
|
|
- <option value="100-500">100~500万</option>
|
|
|
|
|
- <option value="500-1000">500~1000万</option>
|
|
|
|
|
- <option value="1000-">1000万以上</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </th>
|
|
|
|
|
- <th>
|
|
|
|
|
- <select name="startDate" class="form-control" onchange="filter_company()">
|
|
|
|
|
- <option value="">成立年限</option>
|
|
|
|
|
- <option value="2014">2014</option>
|
|
|
|
|
- <option value="2017">2017</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </th>
|
|
|
|
|
- <th>
|
|
|
|
|
- <select name="entType" class="form-control" onchange="filter_company()">
|
|
|
|
|
- <option value="">企业类型</option>
|
|
|
|
|
- <option value="有限责任公司">有限责任公司(中外合资)</option>
|
|
|
|
|
- <option value="有限责任公司(中外合资)">有限责任公司(中外合资)</option>
|
|
|
|
|
- <option value="有限责任公司(台港澳法人独资)">有限责任公司(台港澳法人独资)</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </th>
|
|
|
|
|
- <th>
|
|
|
|
|
- <select name="openStatus" class="form-control" onchange="filter_company()">
|
|
|
|
|
- <option value="">企业状态</option>
|
|
|
|
|
- <option value="开业">开业</option>
|
|
|
|
|
- <option value="">企业状态</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </th>
|
|
|
|
|
-
|
|
|
|
|
- <th>
|
|
|
|
|
- <div class="input-group">
|
|
|
|
|
- <input type="text" class="form-control" value="{{Request::get('companyName')}}"
|
|
|
|
|
- placeholder="请输入企业名称"
|
|
|
|
|
- name="companyName">
|
|
|
|
|
- <span class="input-group-append">
|
|
|
|
|
|
|
+ <div class="col-sm-7" id="filter_table">
|
|
|
|
|
+ <table class="table table-striped table-bordered table-hover dataTables-example dataTable">
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <th> 过滤条件</th>
|
|
|
|
|
+ <form method="GET" action="" accept-charset="UTF-8" id="filter_company">
|
|
|
|
|
+ {{ csrf_field() }}
|
|
|
|
|
+ <th>
|
|
|
|
|
+ <select name="district" class="form-control" onchange="filter_company()">
|
|
|
|
|
+ <option value="">所在地区</option>
|
|
|
|
|
+ @foreach($fields['district'] as $district)
|
|
|
|
|
+ <option value="{{$district['value']}}"
|
|
|
|
|
+ @if($district['value'] == Request::get('district')) selected @endif>{{$district['name']}}</option>
|
|
|
|
|
+ @endforeach
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th>
|
|
|
|
|
+ <select name="industry" class="form-control" onchange="filter_company()">
|
|
|
|
|
+ <option value="">所属行业</option>
|
|
|
|
|
+ @foreach($fields['industry'] as $industry)
|
|
|
|
|
+ <option value="{{$industry['value']}}"
|
|
|
|
|
+ @if($industry['value'] == Request::get('industry')) selected @endif>{{$industry['name']}}</option>
|
|
|
|
|
+ @endforeach
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th>
|
|
|
|
|
+ <select name="regCapital" class="form-control" onchange="filter_company()">
|
|
|
|
|
+ <option value="">注册资本</option>
|
|
|
|
|
+ @foreach($fields['regCapital'] as $regCapital)
|
|
|
|
|
+ <option value="{{$regCapital['value']}}"
|
|
|
|
|
+ @if($regCapital['value']== Request::get('regCapital')) selected @endif>{{$regCapital['name']}}</option>
|
|
|
|
|
+ @endforeach
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th>
|
|
|
|
|
+ <select name="startDate" class="form-control" onchange="filter_company()">
|
|
|
|
|
+ <option value="">成立年限</option>
|
|
|
|
|
+ @foreach($fields['startDate'] as $startDate)
|
|
|
|
|
+ <option value="{{$startDate['value']}}"
|
|
|
|
|
+ @if($startDate['value']== Request::get('startDate')) selected @endif>{{$startDate['name']}}</option>
|
|
|
|
|
+ @endforeach
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th>
|
|
|
|
|
+ <select name="entType" class="form-control" onchange="filter_company()">
|
|
|
|
|
+ <option value="">企业类型</option>
|
|
|
|
|
+ @foreach($fields['entType'] as $entType)
|
|
|
|
|
+ <option value="{{$entType['value']}}"
|
|
|
|
|
+ @if($entType['value']== Request::get('entType')) selected @endif>{{$entType['name']}}</option>
|
|
|
|
|
+ @endforeach
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th>
|
|
|
|
|
+ <select name="openStatus" class="form-control" onchange="filter_company()">
|
|
|
|
|
+ <option value="">企业状态</option>
|
|
|
|
|
+ @foreach($fields['openStatus'] as $openStatus)
|
|
|
|
|
+ <option value="{{$openStatus['value']}}"
|
|
|
|
|
+ @if($openStatus['value']== Request::get('openStatus')) selected @endif>{{$openStatus['name']}}</option>
|
|
|
|
|
+ @endforeach
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </th>
|
|
|
|
|
+
|
|
|
|
|
+ <th>
|
|
|
|
|
+ <div class="input-group">
|
|
|
|
|
+ <input type="text" class="form-control"
|
|
|
|
|
+ value="{{Request::get('companyName')}}"
|
|
|
|
|
+ placeholder="请输入企业名称"
|
|
|
|
|
+ name="companyName">
|
|
|
|
|
+ <span class="input-group-append">
|
|
|
<span class="btn btn-sm btn-default"
|
|
<span class="btn btn-sm btn-default"
|
|
|
style="height: 100%" onclick="filter_company()">搜索</span>
|
|
style="height: 100%" onclick="filter_company()">搜索</span>
|
|
|
</span>
|
|
</span>
|
|
|
- </div>
|
|
|
|
|
- </th>
|
|
|
|
|
- </form>
|
|
|
|
|
- </tr>
|
|
|
|
|
- </table>
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </th>
|
|
|
|
|
+ </form>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ </table>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
<div id="company-list">
|
|
<div id="company-list">
|
|
|
@include('admin.company.info.data')
|
|
@include('admin.company.info.data')
|
|
@@ -109,7 +151,7 @@
|
|
|
@section('js')
|
|
@section('js')
|
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
|
/*对字段进行过滤*/
|
|
/*对字段进行过滤*/
|
|
|
- function filter_company(){
|
|
|
|
|
|
|
+ function filter_company() {
|
|
|
data = $('#filter_company').serialize()
|
|
data = $('#filter_company').serialize()
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: 'get',
|
|
type: 'get',
|
|
@@ -119,6 +161,22 @@
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /*保存公海*/
|
|
|
|
|
+ function save_collection() {
|
|
|
|
|
+ data = $('#filter_company').serialize()
|
|
|
|
|
+ $.ajax({
|
|
|
|
|
+ url: '{{ U('Company/Info/add_collection') }}',
|
|
|
|
|
+ type: 'post',
|
|
|
|
|
+ data: data,
|
|
|
|
|
+ success: function (data) {
|
|
|
|
|
+ if (data == 200) {
|
|
|
|
|
+ layer.msg('保存公海成功!', {icon: 1})
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/*Ajax分页*/
|
|
/*Ajax分页*/
|
|
|
$('body').on('click', '.pagination a', function (e) {
|
|
$('body').on('click', '.pagination a', function (e) {
|
|
|
e.preventDefault();
|
|
e.preventDefault();
|