| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331 | @extends('admin/layout')@section('header')@endsection<style type="text/css">    table.tftable {        font-size: 12px;        color: #333333;        width: 100%;        border-width: 1px;        border-color: #9dcc7a;        border-collapse: collapse;    }    table.tftable th {        font-size: 12px;        background-color: #abd28e;        border-width: 1px;        padding: 8px;        border-style: solid;        border-color: #9dcc7a;        text-align: left;    }    table.tftable tr {        background-color: #ffffff;    }    table.tftable td {        font-size: 12px;        border-width: 1px;        padding: 8px;        border-style: solid;        border-color: #9dcc7a;    }    .fenish {        background: #1D976C;        color: #fff;    }    .blue {        background: #6DD5FA;        color: #fff;    }    #tfhover tbody tr td:nth-child(2) {        position: relative;        padding-left: 35px;    }    .fa {        position: absolute;        left: 10px;        top: 0;        color: #ddd;        transform: translateY(-50%);        top: 50%;        font-size: 18px !important;        cursor: pointer;    }    .first-numb {        color: palevioletred;    }</style><div style="margin-left: 10px">    <form action="{{url('/admin/flow/progressRate')}}" method="post" id="form1">        <div style="display: flex;padding: 10px 0;">            <input type="text" placeholder="请输入域名或项目名称" class="input-md form-control" name="keyword"                   value="{{$result['keyword']??''}}"                   style="width: 260px;">            <select name="manageHelperId" id="manageHelperId" title="" class="form-control"                    style="width: 150px;float: right"                    onchange="units.selectPage();">                <option value="">请选择项目经理</option>                @foreach($userList as $item)                    @if($item->role_id==25)                        <option                            value="{{$item->id}}"                            @if(!empty($result['manageHelperId']) && $result['manageHelperId']==$item->id) selected @endif>{{$item->nickname}}</option>                    @endif                @endforeach            </select>            <select name="editorId" id="editorId" title="" class="form-control"                    style="width: 150px;float: right" onchange="units.selectPage();">                <option value="">请选择采编</option>                @foreach($userList as $item)                    @if($item->role_id==2)                        <option                            value="{{$item->id}}" @if(!empty($result['editorId']) && $result['editorId']==$item->id) selected @endif>{{$item->nickname}}</option>                    @endif                @endforeach            </select>            <select name="webId" id="webId" title="" class="form-control"                    style="width: 150px;float: right" onchange="units.selectPage();">                <option value="">请选择前端</option>                @foreach($userList as $item)                    @if($item->role_id==14)                        <option value="{{$item->id}}"                                @if(!empty($result['webId']) && $result['webId']==$item->id) selected @endif>{{$item->nickname}}</option>                    @endif                @endforeach            </select>            <select name="plannerId" id="plannerId" title="" class="form-control"                    style="width: 150px;float: right" onchange="units.selectPage();">                <option value="">请选择策划师</option>                @foreach($userList as $item)                    @if($item->role_id==29)                        <option value="{{$item->id}}"                                @if(!empty($result['plannerId']) && $result['plannerId']==$item->id) selected @endif>{{$item->nickname}}</option>                    @endif                @endforeach            </select>            <select data-placeholder="选择项目阶级..." style="width:200px;" name="sort" class="form-control">                <option value="">选择项目阶级</option>                <option value="0">请选择阶段</option>                <option value="1">上线阶段</option>                <option value="2">测试站阶段</option>                <option value="3">设计阶段策划师跟进</option>                <option value="4">架构阶段</option>                <option value="5">暂停项目</option>            </select>            <input style="margin-left: 10px" type="submit" class="btn btn-primary" value="搜索">            <button style="margin-left: 10px" type="button" class="btn btn-primary reset"> 重置</button>            <button style="margin-left: 10px" type="button" class=" btn btn-primary button"> 保存</button>            <a href="{{url('/admin/flow/progressRateExport')}}" style="margin-left: 10px"               class=" btn btn-primary">导出</a>        </div>    </form></div><table id="tfhover" class="tftable" border="1">    <thead>    <tr>        <th colspan="22" style="text-align: center">            项目总进度        </th>    </tr>    <tr>        <th colspan="8">项目配置</th>        <th colspan="4">采编进度</th>        <th colspan="7">策划师进度</th>    </tr>    <tr>        <th style="width: 3%;">序号</th>        <th style="width: 10%;">项目</th>        <th style="width: 10%;">阶级</th>        <th style="width: 5%;">项目经理</th>        <th style="width: 5%;">策划师</th>        <th style="width: 5%;">采编</th>        <th style="width: 10%;">备注</th>        <th style="width: 3%;">架构&确定域名</th>        <th>建站前期</th>        <th>资料</th>        <th>测试站</th>        <th>上线</th>        <th>关键词初选</th>        <th>关键词地图</th>        <th>TDK</th>        <th>页面策划</th>    </tr>    </thead>    <tbody>    @foreach($siteList as $key=>$value)        <tr>            <td>                {{$key+1}}            </td>            <td data-a="{{$value->id}}" data-rank="{{$value->rank}}">                <i @if($value->rank==1)class="fa fa-heart first-numb" @else class="fa fa-heart" @endif></i>                <a onclick="units.openDetail('{{$value->id}}','{{$value->cn_title}}')">{{$value->cn_title}}</a>            </td>            <td>                <select class="form-control" style="width:150px;">                    <option value="0" @if($value->sort==0) selected="selected"@endif>请选择阶段</option>                    <option value="1" @if($value->sort==1) selected="selected"@endif>上线阶段</option>                    <option value="2" @if($value->sort==2) selected="selected"@endif>测试站阶段</option>                    <option value="3" @if($value->sort==3) selected="selected"@endif>设计阶段策划师跟进</option>                    <option value="4" @if($value->sort==4) selected="selected"@endif>架构阶段</option>                    <option value="5" @if($value->sort==5) selected="selected"@endif>暂停项目</option>                </select>            </td>            <td>{{$value->project_manager}}</td>            <td>{{$value->planner}}</td>            <td>{{$value->editing}}</td>            <td><textarea style="border: none;width: 100%">{{$value->memo}}</textarea></td>            <td @if($value->info==1)class="fenish"@endif>{{$value->domain}}</td>            <td @if($value->prophase==1)class="fenish"@endif >建站前期</td>            <td @if($value->data==1)class="fenish"@endif>资料</td>            <td @if($value->test==1)class="fenish"@endif>测试站</td>            <td @if($value->online==1)class="fenish"@endif>上线</td>            <td @if($value->is_keywords==1)class="fenish"@endif>关键词初选</td>            <td @if($value->is_keywords_map==1)class="fenish"@endif>关键词地图</td>            <td @if($value->is_tdk==1)class="fenish"@endif>TDK</td>            <td @if($value->page_planning==1)class="fenish"@endif>页面策划</td>        </tr>    @endforeach    </tbody></table>@section('footer')    <script>        window.onload = function () {            var tfrow = document.getElementById('tfhover').rows.length;            var tbRow = [];            for (var i = 1; i < tfrow; i++) {                tbRow[i] = document.getElementById('tfhover').rows[i];                tbRow[i].onmouseover = function () {                    this.style.backgroundColor = '#f3f8aa';                };                tbRow[i].onmouseout = function () {                    this.style.backgroundColor = '#ffffff';                };            }        };        $('#tfhover tbody tr td:nth-child(2) i').click(function () {            var rank = 0;            if ($(this).hasClass('first-numb')) {                $(this).removeClass('first-numb');            } else {                rank = 1;                $(this).addClass('first-numb');            }            var siteId = $(this).parent().attr('data-a');            var ajaxConfig = {                url: '/admin/flow/setSiteIdByRankId',                type: 'post',                data: {siteId: siteId, type: 4, rank: rank},                success: function (result) {                    layer.msg(result.message, {icon: 6, time: 1000}, function () {                        window.location.reload();                    });                }            };            tips.ajax(ajaxConfig);        });        var units = {            openDetail: function (id, title) {                tips.page('/admin/sites/' + id + '/overview', title);            },        };        //重置        $(function () {            $('.reset').click(function () {                $('#manageHelperId').val('');                $('#editorId').val('');                $('#webId').val('');                $('#plannerId').val('');                $('#schedule').val('');                $('#form1').submit();            });        });        $('#tfhover tbody tr td').click(function () {            $(this).toggleClass("fenish");            if ($(this).hasClass("fenish")) {                $(this).attr("data-a", "1");            } else {                $(this).attr("data-a", "0");            }        });        $('#tfhover tbody tr td:first-child').unbind('click');        $('#tfhover tbody tr td:nth-child(2)').unbind('click');        $('#tfhover tbody tr td:nth-child(3)').unbind('click');        $('#tfhover tbody tr td:nth-child(4)').unbind('click');        $('#tfhover tbody tr td:nth-child(5)').unbind('click');        $('#tfhover tbody tr td:nth-child(6)').unbind('click');        $('#tfhover tbody tr td:nth-child(7)').unbind('click');        $('#tfhover tbody tr td:nth-child(8)').unbind('click');        $('#tfhover tbody tr td:nth-child(9)').unbind('click');        $('#tfhover tbody tr td:nth-child(10)').unbind('click');        $('#tfhover tbody tr td:nth-child(11)').unbind('click');        $('#tfhover tbody tr td:nth-child(12)').unbind('click');        $('#tfhover tbody tr td:nth-child(13)').unbind('click');        $('#tfhover tbody tr td:nth-child(14)').unbind('click');        $('#tfhover tbody tr td:nth-child(15)').unbind('click');        $('#tfhover tbody tr td:nth-child(16)').unbind('click');        $(".button").click(function () {            var list = [];            $("#tfhover tbody").find("tr").each(function () {                var tdArr = $(this).children();                var site_id = tdArr.eq(1).attr('data-a');                var rank = tdArr.eq(1).attr('data-rank');                var memo = tdArr.eq(6).find('textarea').val();                var sort = tdArr.eq(2).find('select').val();                var array = {};                array.site_id = site_id;                array.rank = rank;                array.memo = memo;                array.sort = sort;                list.push(array);            });            var ajaxConfig = {                url: '/admin/flow/progressRate',                type: 'post',                data: {list: JSON.stringify(list)},                success: function (result) {                    layer.msg(result.message, {icon: 6, time: 1000}, function () {                        window.location.reload();                    });                }            };            tips.ajax(ajaxConfig);        });    </script>@endsection
 |