| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329 | @extends('admin/layout')@section('header')    <style>        .spaceBtn {            margin-left: 10px;        }        .my-table {            width: 80%;        }        .my-table tr {            border: 1px solid #999;        }        .my-table td {            padding: 8px 5px;        }    </style>@endsection@section('content')    <body class="gray-bg">    <div class="row">        <div class="wrapper wrapper-content animated fadeInRight">            <div class="row">                <div class="col-sm-12">                    <div class="wrapper wrapper-content animated fadeInRight">                        <div class="ibox-content m-b-sm border-bottom">                            <div class="p-xs">                                <div class="pull-left m-r-md">                                    <i class="fa fa-globe text-navy mid-icon"></i>                                </div>                                <h2><span style="font-size: 14px">{{ auth()->user()->nickname }}</span>欢迎来到任务大厅</h2>                                <span>你可以在此选择您的任务。</span>                                <a href="{{url('admin/auth/logoff')}}">退出</a>                                {{--<button type="button" class="btn btn-success" style="margin-left: 10px"--}}                                        {{--onclick="units.calcHistory()">--}}                                    {{--结算历史--}}                                {{--</button>--}}                                <div class="pull-right"><a onclick="units.notice()">注意事项</a></div>                            </div>                        </div>                        <div class="ibox-content m-b-sm border-bottom" style="padding-top: 5px">                            <div class="p-xs">                                <form class="row" id="searchForm" onsubmit="units.search();return false;">                                    <div class="col-sm-6">                                        <div class="input-group">                                            <input type="hidden" name="status" id="status" value="2"> {{--默认状态为翻译中--}}                                            <span class="input-group-btn">                                            <button type="button" class="btn btn-info" onclick="units.status(1,this)">                                                任务大厅                                            </button>                                            <button type="button" class="btn btn-info dim" style="margin-left: 10px"                                                    onclick="units.status(2,this)">                                                翻译中                                            </button>                                            <button type="button" class="btn btn-info" style="margin-left: 10px"                                                    onclick="units.status(3,this)">                                                待审核                                            </button>                                            <button type="button" class="btn btn-info" style="margin-left: 10px"                                                    onclick="units.status(4,this)">                                                审核失败                                            </button>                                            <button type="button" class="btn btn-info" style="margin-left: 10px"                                                    onclick="units.status(5,this)">                                                审核通过                                            </button>                                             <button type="button" class="btn btn-info" style="margin-left: 10px"                                                     onclick="units.status(6,this)">                                                已结算                                            </button>                                        </span>                                        </div>                                    </div>                                    <div class="col-md-4 pull-right">                                        <div class="input-group">                                            <input type="text" placeholder="请输入输入标题或编号" class="input-md form-control"                                                   name="keyword"                                                   id="keyword">                                            <span class="input-group-btn">                                    <button type="button" class="btn btn-md btn-primary"                                            onclick="units.search()"> 搜索</button>                                    <button type="reset" class="btn btn-md btn-primary" style="margin-left: 10px"                                            name="resetBtn"> 重置</button> </span>                                        </div>                                    </div>                                </form>                            </div>                        </div>                        <div class="ibox-content forum-container">                            {{--<div class="forum-title">--}}                            {{--<div class="pull-right forum-desc">--}}                            {{--<samll>总帖子数: 320,800</samll>--}}                            {{--</div>--}}                            {{--<h3>主版</h3>--}}                            {{--<div class="col-sm-6">--}}                            {{--<div class="input-group">--}}                            {{--<span class="input-group-btn">--}}                            {{--<button type="button" class="btn btn-info" onclick="units.status(0)">--}}                            {{--任务大厅--}}                            {{--</button>--}}                            {{--<button type="button" class="btn btn-info" style="margin-left: 10px" onclick="units.status(1)">--}}                            {{--待翻译--}}                            {{--</button>--}}                            {{--<button type="button" class="btn btn-info" style="margin-left: 10px" onclick="units.status(3)">--}}                            {{--待审核--}}                            {{--</button>--}}                            {{--<button type="button" class="btn btn-info" style="margin-left: 10px" onclick="units.status(4)">--}}                            {{--审核失败--}}                            {{--</button>--}}                            {{--<button type="button" class="btn btn-info" style="margin-left: 10px" onclick="units.status(5)">--}}                            {{--审核通过--}}                            {{--</button>--}}                            {{--</span>--}}                            {{--</div>--}}                            {{--</div>--}}                            {{--<div class="col-md-4 pull-right">--}}                            {{--<div class="input-group">--}}                            {{--<input type="text" placeholder="请输入关键词" class="input-md form-control" name="keyword"--}}                            {{--id="keyword">--}}                            {{--<span class="input-group-btn">--}}                            {{--<button type="button" class="btn btn-md btn-primary"--}}                            {{--onclick="units.search()"> 搜索</button>--}}                            {{--<button type="reset" class="btn btn-md btn-primary" style="margin-left: 10px"--}}                            {{--name="resetBtn"> 重置</button> </span>--}}                            {{--</div>--}}                            {{--</div>--}}                            {{--</div>--}}                            <div class="project-list">                                <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>                            </div>                        </div>                    </div>                </div>            </div>        </div>    </div>    {{--<div>--}}    {{--<table class="my-table">--}}    {{--<thead>--}}    {{--<tr>--}}    {{--<td>编号</td>--}}    {{--<td>标题</td>--}}    {{--<td>状态</td>--}}    {{--<td>翻译词数</td>--}}    {{--<td>质量分</td>--}}    {{--<td>站点名称</td>--}}    {{--</tr>--}}    {{--</thead>--}}    {{--<tbody>--}}    {{--@foreach($haveNotSettle as $item)--}}    {{--<tr>--}}    {{--<td>{{$item->id}}</td>--}}    {{--<td>{{$item->title}}</td>--}}    {{--<td>{{$item->status}}</td>--}}    {{--<td>{{$item->translate_words}}</td>--}}    {{--<td>{{$item->pass_score}}</td>--}}    {{--<td>站点</td>--}}    {{--</tr>--}}    {{--@endforeach--}}    {{--</tbody>--}}    {{--</table>--}}    {{--<table class="my-table">--}}    {{--<thead>--}}    {{--<tr>--}}    {{--<td>编号</td>--}}    {{--<td>标题</td>--}}    {{--<td>状态</td>--}}    {{--<td>翻译词数</td>--}}    {{--<td>质量分</td>--}}    {{--<td>站点名称</td>--}}    {{--</tr>--}}    {{--</thead>--}}    {{--<tbody>--}}    {{--@foreach($settleHistory as $inx=>$item)--}}    {{--<tr><td colspan="6"> </td></tr>--}}    {{--<tr>--}}    {{--<td>{{$item->id}}</td>--}}    {{--<td>{{$item->title}}</td>--}}    {{--<td>{{$item->status}}</td>--}}    {{--<td>{{$item->translate_words}}</td>--}}    {{--<td>{{$item->pass_score}}</td>--}}    {{--<td>站点</td>--}}    {{--</tr>--}}    {{--@endforeach--}}    {{--</tbody>--}}    {{--</table>--}}    {{--</div>--}}    </body>    <div class="ibox-content" id="notice-text" style="display: none">        <div>            {!! $notice->content !!}        </div>    </div>@endsection@section('footer')    {{--<script src="{{asset('vendor/ueditor/ueditor.parse.js')}}"></script>--}}    <script>            {{--setTimeout(function () {--}}            {{--uParse('#notice-text',--}}            {{--{--}}            {{--'highlightJsUrl': "{{asset('vendor/ueditor/third-party/SyntaxHighlighter/shCore.js')}}",--}}            {{--'highlightCssUrl': "{{asset('vendor/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css')}}"--}}            {{--})--}}            {{--}, 300);--}}        var units = {                calcHistory: function () {                    layer.open({                        title: "结算历史",                        type: 2,                        content: '/admin/articles/hall-calc-history',                        area: ['60%', '800px']                    });                },                search: function () {                    tips.selectPage();                },                detail: function (id, status) {                    var url = '/admin/articles-hall/' + id;                    if (status === 2 || status === 4) {                        url = '/admin/articles/' + id + '/translate';                    }                    layer.open({                        type: 2,                        content: [url],                        area: ['95%', '100%'],                        title: '',                        closeBtn: 0                    });                },                status: function (status, _this) {                    $(_this).addClass('dim');                    $(_this).siblings().removeClass('dim');                    $("#status").val(status);                    if (status === 5 || status === 6) {                        $('#table').bootstrapTable('showColumn', 'pass_score');                    } else {                        $('#table').bootstrapTable('hideColumn', 'pass_score');                    }                    if (status === 6) {                        $('#table').bootstrapTable('showColumn', ['settle_at','settle_amount']);                        $('#table').bootstrapTable('showColumn', 'settle_amount');                    } else {                        $('#table').bootstrapTable('hideColumn', ['settle_at','settle_amount']);                    }                    tips.tableRefresh();                },                notice: function () {                    layer.open({                        type: 1,                        content: $("#notice-text"),                        title: '注意事项',                        area: ['60%', '80%'],                        closeBtn: 0,                        btn: ['确认']                    });                },                settleHistory: function () {                }            };        var config = {};        config.url = '/admin/articles-hall';        config.columns = [ //字段            {title: '编号', field: 'id', align: 'center'},            {title: '标题', field: 'title', align: 'center'},            {title: '状态', field: 'status_title', align: 'center'},            {title: '过期时间', field: 'expired_at', align: 'center'},            {title: '已翻词数', field: 'translate_words', align: 'center'},            {title: '质量分', field: 'pass_score', align: 'center'},            {title: '结算时间', field: 'settle_at', align: 'center'},            {title: '结算金额', field: 'settle_amount', align: 'center'},            {title: '站点名称', field: 'site_title', align: 'center'},            // {title: '审核时间', field: 'audit_at', align: 'center'},            // {title: '创建时间', field: 'created_at', align: 'center'},            {                title: '操作', field: 'id', align: 'center',                formatter: function (value, row) {                    var str = '', title = '查看';                    if (row.status === 2 || row.status === 4) {                        title = '翻译';                    }                    str += '<button onclick="units.detail(' + value + ',' + row.status + ')" class="btn btn-xs"><span class="glyphicon glyphicon-edit"></span>' + title + '</button>';                    return str;                }            }        ];        tips.bootstrapTable(config);        $('#table').bootstrapTable('hideColumn', ['pass_score', 'settle_at','settle_amount']);        // $('#table').bootstrapTable('hideColumn', 'settle_at');        // $(function () {        //        // });        setTimeout('units.notice();', 500);    </script>@endsection
 |