123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- @extends('admin/layout')
- @section('header')
- <link href="{{asset('css/plugins/switchery/switchery.css')}}" rel="stylesheet">
- <style>
- .btn-danger, .btn-primary, .btn-info {
- background: #009688 !important;
- border-color: #009688 !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: #009688 !important;
- color: #fff !important;
- }
- .table-striped > tbody > tr:hover .btn .glyphicon {
- color: #fff !important;
- }
- </style>
- @endsection
- @section('content')
- @php $authUser=auth()->user() @endphp
- <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="col-md-8 pull-right">--}}
- <div class="input-group">
- {{-- <select name="managerId" id="managerId" title="" class="form-control"
- style="width: 150px;float: right" onchange="units.selectPage();">
- <option value="">请选择项目经理</option>
- @foreach($managers as $item)
- <option value="{{$item->id}}">{{$item->nickname}}</option>
- @endforeach
- </select>--}}
- <select name="is_complete" id="is_complete" title=""
- class="form-control"
- style="width: 150px;float: right"
- onchange="units.selectPage();">
- <option value="0">请选择当月完成情况</option>
- <option value="1">完成</option>
- <option value="2">未完成</option>
- <option value="3">当月发布量0</option>
- </select>
- <select name="chinese_completion" id="chinese_completion" title="" class="form-control"
- style="width: 150px;float: right" onchange="units.selectPage();">
- <option value="0">请选择中文完成情况</option>
- <option value="1">超过2月库存</option>
- <option value="2">不足2月库存</option>
- <option value="3">不足1月库存</option>
- <option value="4">无库存</option>
- <option value="5">中文未反馈</option>
- </select>
- <select name="optimizerEditingId" id="optimizerEditingId" title="" class="form-control"
- style="width: 150px;float: right"
- onchange="units.selectPage();">
- <option value="">请选择优化师/优化采编</option>
- @foreach($optimizerEditing as $item)
- <option value="{{$item->id}}">{{$item->nickname}}</option>
- @endforeach
- </select>
- <select name="optimizerId" id="optimizerId" title="" class="form-control"
- style="width: 150px;float: right"
- onchange="units.selectPage();">
- <option value="">请选择优化组长</option>
- @foreach($optimizers as $item)
- <option value="{{$item->id}}">{{$item->nickname}}</option>
- @endforeach
- </select>
- <select name="articleEditingId" id="articleEditingId" title="" class="form-control"
- style="width: 150px;float: right"
- onchange="units.selectPage();">
- <option value="">请选择软文采编</option>
- @foreach($articleEditing as $item)
- <option value="{{$item->id}}">{{$item->nickname}}</option>
- @endforeach
- </select>
- <select name="serverId" id="serverId" title="" class="form-control"
- style="width: 150px;float: right" onchange="units.selectPage();">
- <option value="">请选择客服</option>
- @foreach($services as $item)
- <option value="{{$item->id}}">{{$item->nickname}}</option>
- @endforeach
- </select>
- <select name="siteStatus" id="siteStatus" title="" class="form-control"
- style="width: 150px;float: right" onchange="units.selectPage();">
- <option value="">请选择项目状态</option>
- @foreach($sitesStatus as $inx=>$item)
- @if(in_array($inx,[2,3,5]))
- <option value="{{$inx}}">{{$item}}</option>
- @endif
- @endforeach
- </select>
- <input type="text" placeholder="请输入域名或项目名称" class="input-md form-control"
- name="keyword"
- id="keyword" style="width: 200px;float: right">
- <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 btn-primary" style="margin-left: 10px"
- name="btnReset"> 重置</button>
- </span>
- </div>
- </form>
- <hr>
- <div class="table-responsive">
- <span style="color: #d0648a">
- 软文指标:为合同数和续费篇数之和<br>
- 更新月份:该项目软文最新更新的日期,点击排序查看各项目更新情况<br>
- 中文文章:数据显示为本月更新之后剩余的中文文章数量能满足之后月份更新的月数<br>
- 本月未更新篇数:{{$notUpdated}}<br>
- 中文查找未完成项目数:{{$sites}}(提前两个月)<br>
- </span>
- <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- @endsection
- @section('footer')
- <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
- <script>
- laydate.render({
- elem: '#monthRange'
- , type: 'month'
- , range: '→'
- , format: 'yyyy-MM'
- });
- 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/analyze/index/monitor_article';
- config.pageSize = 20;
- config.showColumns = true;
- config.columns = [ //字段
- {
- title: '序号', align: 'center', formatter: function (value, item, index) {
- return index + 1;
- }
- },
- {title: '公司', field: 'cn_title', align: 'center'},
- {title: '网站', field: 'domain', align: 'center'},
- /*{title: '预计续费时间', field: 'expect_renewal_at', align: 'center', sortable: true},*/
- {title: '项目阶段', field: 'statusTitle', align: 'center'},
- {title: '中文待定总数', field: 'undetermined', align: 'center'},
- {title: '中文文章', field: 'chineseArticles', align: 'center', sortable: true},
- {
- title: '软文指标', field: 'article_goal', align: 'center', sortable: true,
- formatter: function (value, row) {
- return row.article_goal + row.article_renewal_quantity;
- }
- },
- {title: '软文发布量', field: 'publishArticle', align: 'center', sortable: true},
- {title: '每月待更新软文数', field: 'articles_updates_per_month', align: 'center', sortable: true},
- {title: '当月发布量', field: 'publishThisMonth', align: 'center', sortable: true},
- {title: '更新月份', field: 'updateMonth', align: 'center', sortable: true},
- {title: '客服经理', field: 'server_title', align: 'center', visible: false},
- {title: '优化组长', field: 'optimizerTitle', align: 'center'},
- {title: '优化师/优化采编', field: 'optimizerEditing', align: 'center'},
- {title: '软文采编', field: 'articleEditing', align: 'center'},
- {title: '是否特殊软文', field: 'spec_article', align: 'center', visible: false},
- {
- title: '操作', field: 'id', align: 'center',
- formatter: function (value, row) {
- return '<button onclick="units.openDetail(' + value + ',\'' + row.cn_title + '\')" class="btn btn-xs"><span class="glyphicon glyphicon-menu-hamburger"></span>详情</button><br>';
- }
- }
- ];
- tips.bootstrapTable(config);
- </script>
- @endsection
|