123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- @extends('admin/layout')
- @section('header')
- {{--<link rel="stylesheet" href="{{url('css/admin/project/side.css')}}">--}}
- <style>
- .flow_done {
- color: #0d8ddb;
- margin-left: 10px
- }
- .flow_processing {
- color: #FD482C;
- margin-left: 10px
- }
- </style>
- @endsection
- @section('content')
- <body class="gray-bg">
- <div class="row">
- <div class="col-sm-12">
- <div class="wrapper wrapper-content">
- <div class="row animated fadeInRight">
- <div class="col-sm-10">
- <div class="tabs-right">
- <div class="tab-content-boxs">
- <div id="vertical-timeline" class="vertical-container light-timeline">
- @php $catch=false;$schedule=null; @endphp
- @foreach($siteProcesses as $process)
- <div class="vertical-timeline-block">
- <div class="vertical-timeline-icon {{$process->color??''}}">
- <i class="fa {{$process->icon??''}}"></i>
- </div>
- <div class="vertical-timeline-content">
- {{--<h2>会议</h2>--}}
- <p>
- {{$process->title??''}}
- @if($process->active)<span class="flow_done">已完成</span>@endif
- @if((!$process->active&&!$catch)||($schedule==$process->schedule&&!$process->active))
- <span class="flow_processing">待处理</span>
- @endif
- @if($process->identifier=='init_site_schema')
- <span style="float: right">
- <a href="{{url('admin/process/refer-show')}}"
- target="_blank">网站架构参考</a>
- <a href="{{url('admin/process/dimension-show')}}"
- target="_blank">产品分类维度</a>
- </span>
- @endif
- </p>
- @if((!$process->active&&!$catch)||($schedule==$process->schedule&&!$process->active))
- @php $schedule=$process->schedule;$catch=true; @endphp
- @if(($process->can_file??false))
- <a href="javascript:;"
- onclick="units.fileUpload({{$process->site_process_id}})"
- class="btn btn-sm btn-primary"> 文件</a>
- @endif
- @if($process->can_score??false)
- @php $score=json_decode($process->detail,true); @endphp
- <a href="javascript:;"
- onclick="units.score(this,'{{$process->site_process_id}}')"
- class="btn btn-sm btn-info" style="margin-right: 10px"
- data-score="{{$score['score']??''}}"
- >打分</a>
- @endif
- {{--<span class="vertical-date"><small>2月3日</small></span>--}}
- @if($process->can_confirm??false)
- <a href="javascript:;"
- onclick="units.confirm(this,'{{$process->site_process_id}}')"
- class="btn btn-sm btn-info" style="float: left">确认</a>
- @endif
- @if($process->identifier=='develop')
- <a href="javascript:;"
- onclick="units.deploy({{$process->site_process_id}})"
- class="btn btn-sm btn-info"
- style="margin-right: 10px">部署</a>
- @endif
- @endif
- </div>
- </div>
- @endforeach
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- @endsection
- @section('footer')
- <script>
- var units = {
- fileUpload: function (id) {
- layer.open({
- type: 2,
- content: ['/admin/process/file-upload/' + id],
- area: ['50%', '50%'],
- title: '文件上传'
- });
- },
- score: function (_this, id) {
- layer.open({
- title: '打分',
- type: 2,
- content: '/admin/process/score/' + id,
- area: ['40%', '40%']
- });
- },
- confirm: function (_this, id) {
- var config = {type: 'PUT', url: '/admin/process/confirm/' + id};
- config.success = function (result) {
- layer.msg(result.message, {icon: 6, time: 1500}, function () {
- window.location.reload();
- });
- };
- tips.ajax(config);
- },
- deploy: function () {
- layer.alert('展示按钮');
- }
- };
- // $(document).ready(function () {
- // $("#lightVersion").click(function (event) {
- // event.preventDefault();
- // $("#ibox-content").removeClass("ibox-content");
- // $("#vertical-timeline").removeClass("dark-timeline");
- // $("#vertical-timeline").addClass("light-timeline")
- // });
- // $("#darkVersion").click(function (event) {
- // event.preventDefault();
- // $("#ibox-content").addClass("ibox-content");
- // $("#vertical-timeline").removeClass("light-timeline");
- // $("#vertical-timeline").addClass("dark-timeline")
- // });
- // $("#leftVersion").click(function (event) {
- // event.preventDefault();
- // $("#vertical-timeline").toggleClass("center-orientation")
- // })
- // });
- </script>
- @endsection
|