123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- @extends('admin/layout')
- @section('header')
- <link href="{{asset('css/plugins/switchery/switchery.css')}}" rel="stylesheet">
- <style>
- .btn-danger, .btn-primary, .btn-info {
- background: #2a94e0 !important;
- border-color: #2a94e0 !important;
- }
- .table-striped > tbody > tr:nth-of-type(odd) {
- background: #f8f8f8 !important;
- }
- .table-striped > tbody > tr .btn {
- background: none !important;
- }
- .table-striped > tbody > tr td {
- font-size: 14px !important;
- }
- .table-striped > tbody > tr:hover {
- background: #ffebd8 !important;
- }
- .table-striped > tbody > tr:hover .btn {
- background: #2a94e0 !important;
- color: #fff !important;
- }
- .table-striped > tbody > tr:hover .btn .glyphicon {
- color: #fff !important;
- }
- </style>
- @endsection
- @section('content')
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <form class="row" id="searchForm" onsubmit="units.search();return false;">
- <div class="input-group">
- <select name="optimizationEditingId" id="optimizationEditingId" title=""
- class="form-control"
- style="width: 150px;float: right" onchange="units.selectPage();">
- <option value="">请选择优化师/优化采编</option>
- <option value="-1">所有优化师/优化采编</option>
- @foreach($roles as $key=>$item)
- @if($item->role_id==\App\Http\Models\Role::TYPE_OPTIMIZATION_EDITING)
- <option value="{{$item->id}}">{{$item->nickname}}</option>
- @endif
- @endforeach
- </select>
- <select name="optimizationId" id="optimizationId" title="" class="form-control"
- style="width: 150px;float: right" onchange="units.selectPage();">
- <option value="">请选择优化组长</option>
- <option value="-1">所有优化组长</option>
- @foreach($roles as $key=>$item)
- @if($item->role_id==\App\Http\Models\Role::TYPE_OPTIMIZER)
- <option value="{{$item->id}}">{{$item->nickname}}</option>
- @endif
- @endforeach
- </select>
- <span class="input-group-btn">
- <button type="button" class="btn btn-md btn-primary"
- onclick="units.search()"> 搜索</button>
- <button type="button" class="btn btn-md" style="margin-left: 10px"
- name="btnReset"> 重置</button>
- </div>
- </form>
- <hr>
- <div class="table-responsive">
- <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- @endsection
- @section('footer')
- <script>
- var units = {
- selectPage: function () {
- tips.selectPage();
- },
- search: function () {
- tips.selectPage();
- },
- openDetail: function (id, title) {
- tips.page('/admin/sites/' + id + '/overview', title);
- }
- };
- var config = {};
- config.url = '/admin/flow/optimizationPersonnel';
- config.pageSize = 50;
- config.columns = [ //字段
- {
- title: '序号', align: 'center', formatter: function (value, item, index) {
- return index + 1;
- },
- },
- {title: '姓名', field: 'nickname', align: 'center'},
- {title: '职位', field: 'role', align: 'center'},
- {title: '项目总数', field: 'count', align: 'center'},
- {title: '实施期个数', field: 'implementCount', align: 'center'},
- {title: '服务期个数', field: 'serverCount', align: 'center'},
- {title: '年度达标数', field: 'reachCount', align: 'center'},
- {title: '年度续费数', field: 'renewalCount', align: 'center'},
- ];
- tips.bootstrapTable(config);
- </script>
- @endsection
|