|
@@ -13,107 +13,82 @@
|
|
</div>
|
|
</div>
|
|
<div class="ibox-content">
|
|
<div class="ibox-content">
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
- <div class="row">
|
|
|
|
- <div class="col-sm-4">
|
|
|
|
- <form method="GET" action="" accept-charset="UTF-8">
|
|
|
|
- <div class="input-group">
|
|
|
|
- <input type="text" class="form-control" value="{{Request::get('keyword')}}"
|
|
|
|
- placeholder="请输入关键词"
|
|
|
|
- name="keyword">
|
|
|
|
- <span class="input-group-append">
|
|
|
|
- <button type="submit" class="btn btn-primary"
|
|
|
|
- style="height: 100%">搜索</button>
|
|
|
|
- </span>
|
|
|
|
- </div>
|
|
|
|
- </form>
|
|
|
|
- </div>
|
|
|
|
|
|
|
|
- @if(role('User/Threads/addCallList'))
|
|
|
|
- <div class="col-sm-8 pull-right">
|
|
|
|
|
|
+ @if(role('User/Threads/addCallList'))
|
|
|
|
+ <div class="col-sm-8 pull-right">
|
|
<span id="addCallList" class="btn btn-primary pull-right fa fa-phone"
|
|
<span id="addCallList" class="btn btn-primary pull-right fa fa-phone"
|
|
style="display: none">添加到电话列表</span>
|
|
style="display: none">添加到电话列表</span>
|
|
- </div>
|
|
|
|
- @endif
|
|
|
|
- </div>
|
|
|
|
|
|
+ </div>
|
|
|
|
+ @endif
|
|
</div>
|
|
</div>
|
|
|
|
+ </div>
|
|
|
|
|
|
- <table class="table table-striped table-bordered table-hover dataTables-example dataTable">
|
|
|
|
- <thead>
|
|
|
|
- <tr>
|
|
|
|
- <th><label><input type="checkbox" id="checkAll"> 全选</label>
|
|
|
|
|
|
+ {{--添加过滤条件--}}
|
|
|
|
+ <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_threads">
|
|
|
|
+ <th>
|
|
|
|
+ <select name="process" class="form-control filter_threads">
|
|
|
|
+ <option value="">有无跟进</option>
|
|
|
|
+ <option value="1">有</option>
|
|
|
|
+ <option value="2">无</option>
|
|
|
|
+ </select>
|
|
</th>
|
|
</th>
|
|
- <th class="sorting" data-sort="id"> ID</th>
|
|
|
|
- <th class="sorting"> 联系方式</th>
|
|
|
|
- <th class="sorting" data-sort="ower_id"> 线索拥有者</th>
|
|
|
|
- <th class="sorting">企业名称</th>
|
|
|
|
- <th class="sorting">企业网址</th>
|
|
|
|
- <th class="sorting">注册资本</th>
|
|
|
|
- <th class="sorting"> 最新跟进</th>
|
|
|
|
- <th class="sorting" data-sort="created_at"> 领取时间</th>
|
|
|
|
- <th width="22%">相关操作</th>
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <tbody>
|
|
|
|
- @if(isset($list))
|
|
|
|
- @foreach($list as $key => $item)
|
|
|
|
- <tr>
|
|
|
|
-
|
|
|
|
- <td>
|
|
|
|
- <label><input class="contacts" name='contact_id[]' type="checkbox"
|
|
|
|
- value="{{ $item->id }}"></label>
|
|
|
|
- </td>
|
|
|
|
- <td>{{ $item->id }}</td>
|
|
|
|
- <td>{{ $item->contact?$item->contact->phone:'暂无联系人信息' }}</td>
|
|
|
|
- <td>{{ $item->ower->real_name }}</td>
|
|
|
|
- <td>
|
|
|
|
- <a href="{{ U('Company/Info/view',['id'=> $item->company->id]) }}"> {{ $item->company->companyName }} </a>
|
|
|
|
- </td>
|
|
|
|
- <td><a href="http://{{ $item->company->website }}"
|
|
|
|
- target="_blank">{{ $item->company->website }}</a></td>
|
|
|
|
- <td>{{ $item->company->regCapital }}</td>
|
|
|
|
- <td>{{ $item->latestProgress() }}</td>
|
|
|
|
- <td>{{ $item->created_at }}</td>
|
|
|
|
- <td>
|
|
|
|
- @if(role('User/Threads/update'))
|
|
|
|
- <button onclick="layer.open({type: 2,area: ['25%', '60%'],content: '{{ U('User/Threads/update',['id'=>$item->id])}}'});"
|
|
|
|
- class="btn btn-sm btn-primary ">跟进
|
|
|
|
- </button>
|
|
|
|
-
|
|
|
|
- @endif
|
|
|
|
-
|
|
|
|
- @if(role('User/Threads/destroy'))
|
|
|
|
- <a class="btn btn-sm btn-danger"
|
|
|
|
- href="{{ U('User/Threads/destroy',['id'=>$item->id])}}"
|
|
|
|
- onclick="return confirm('你确定放弃该线索?');">放弃</a>
|
|
|
|
- @endif
|
|
|
|
-
|
|
|
|
- @if(role('User/Threads/view'))
|
|
|
|
-
|
|
|
|
- @endif
|
|
|
|
- </td>
|
|
|
|
- </tr>
|
|
|
|
- @endforeach
|
|
|
|
- @endif
|
|
|
|
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
- <div class="row">
|
|
|
|
- <div class="col-sm-6">
|
|
|
|
- <div class="dataTables_info" id="DataTables_Table_0_info"
|
|
|
|
- role="alert" aria-live="polite" aria-relevant="all">每页{{ $list->count() }}
|
|
|
|
- 条,共{{ $list->lastPage() }}页,总{{ $list->total() }}条。
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="col-sm-6">
|
|
|
|
- <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
|
|
|
|
- {!! $list->setPath('')->appends(Request::all())->render() !!}
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ {{--<th style="width: 40%">--}}
|
|
|
|
+ {{--<div class="row">--}}
|
|
|
|
+
|
|
|
|
+ {{--<div class="col-sm-5" id="data_1">--}}
|
|
|
|
+
|
|
|
|
+ {{--<div class="input-group date">--}}
|
|
|
|
+ {{--<span class="input-group-addon">--}}
|
|
|
|
+ {{--<i class="fa fa-calendar"></i></span>--}}
|
|
|
|
+ {{--<input type="text" id="start" class="form-control" placeholder="领取日期"--}}
|
|
|
|
+ {{--name="start"--}}
|
|
|
|
+ {{--value="{{Request::get('start') ? : ''}}">--}}
|
|
|
|
+ {{--</div>--}}
|
|
|
|
+ {{--</div>--}}
|
|
|
|
+ {{--_--}}
|
|
|
|
+ {{--<div class="col-sm-5" id="data_2">--}}
|
|
|
|
+ {{--<div class="input-group date">--}}
|
|
|
|
+ {{--<span class="input-group-addon">--}}
|
|
|
|
+ {{--<i class="fa fa-calendar"></i></span>--}}
|
|
|
|
+ {{--<input type="text" id="end" class="form-control" placeholder="领取日期"--}}
|
|
|
|
+ {{--name="end"--}}
|
|
|
|
+ {{--value="{{Request::get('end') ? : ''}}">--}}
|
|
|
|
+ {{--</div>--}}
|
|
|
|
+ {{--</div>--}}
|
|
|
|
+ {{--</div>--}}
|
|
|
|
+
|
|
|
|
+ {{--</th>--}}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <th>
|
|
|
|
+
|
|
|
|
+ <div class="input-group">
|
|
|
|
+ <input type="text" class="form-control" value="{{Request::get('keyword')}}"
|
|
|
|
+ placeholder="请输入企业名称"
|
|
|
|
+ name="keyword">
|
|
|
|
+ <span class="input-group-append">
|
|
|
|
+ <button type="submit" class="btn btn-sm btn-default"
|
|
|
|
+ style="height: 100%">搜索</button>
|
|
|
|
+ </span>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </th>
|
|
|
|
+ </form>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
|
|
+
|
|
|
|
+ <div id="threads-list">
|
|
|
|
+ @include('admin.user.threads.data')
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ </div>
|
|
@endsection
|
|
@endsection
|
|
|
|
|
|
@section('js')
|
|
@section('js')
|
|
@@ -170,5 +145,18 @@
|
|
|
|
|
|
console.log(contact_ids)
|
|
console.log(contact_ids)
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+ /*线索筛选*/
|
|
|
|
+ $('.filter_threads').change(function () {
|
|
|
|
+ data = $('#filter_threads').serialize()
|
|
|
|
+ console.log(data)
|
|
|
|
+ $.ajax({
|
|
|
|
+ type: 'get',
|
|
|
|
+ data: data,
|
|
|
|
+ }).done(function (data) {
|
|
|
|
+ console.log(data)
|
|
|
|
+ $('#threads-list').html(data.html)
|
|
|
|
+ })
|
|
|
|
+ })
|
|
</script>
|
|
</script>
|
|
@endsection
|
|
@endsection
|