process_1.blade.php 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. @extends('admin/layout')
  2. @section('header')
  3. {{--<link rel="stylesheet" href="{{url('css/admin/project/side.css')}}">--}}
  4. <style>
  5. .flow_done {
  6. color: #0d8ddb;
  7. margin-left: 10px
  8. }
  9. .flow_processing {
  10. color: #FD482C;
  11. margin-left: 10px
  12. }
  13. </style>
  14. @endsection
  15. @section('content')
  16. <body class="gray-bg">
  17. <div class="row">
  18. <div class="col-sm-12">
  19. <div class="wrapper wrapper-content">
  20. <div class="row animated fadeInRight">
  21. <div class="col-sm-10">
  22. <div class="tabs-right">
  23. <div class="tab-content-boxs">
  24. <div id="vertical-timeline" class="vertical-container light-timeline">
  25. @php $catch=false;$schedule=null; @endphp
  26. @foreach($siteProcesses as $process)
  27. <div class="vertical-timeline-block">
  28. <div class="vertical-timeline-icon {{$process->color??''}}">
  29. <i class="fa {{$process->icon??''}}"></i>
  30. </div>
  31. <div class="vertical-timeline-content">
  32. {{--<h2>会议</h2>--}}
  33. <p>
  34. {{$process->title??''}}
  35. @if($process->active)<span class="flow_done">已完成</span>@endif
  36. @if((!$process->active&&!$catch)||($schedule==$process->schedule&&!$process->active))
  37. <span class="flow_processing">待处理</span>
  38. @endif
  39. @if($process->identifier=='init_site_schema')
  40. <span style="float: right">
  41. <a href="{{url('admin/process/refer-show')}}"
  42. target="_blank">网站架构参考</a>
  43. <a href="{{url('admin/process/dimension-show')}}"
  44. target="_blank">产品分类维度</a>
  45. </span>
  46. @endif
  47. </p>
  48. @if((!$process->active&&!$catch)||($schedule==$process->schedule&&!$process->active))
  49. @php $schedule=$process->schedule;$catch=true; @endphp
  50. @if(($process->can_file??false))
  51. <a href="javascript:;"
  52. onclick="units.fileUpload({{$process->site_process_id}})"
  53. class="btn btn-sm btn-primary"> 文件</a>
  54. @endif
  55. @if($process->can_score??false)
  56. @php $score=json_decode($process->detail,true); @endphp
  57. <a href="javascript:;"
  58. onclick="units.score(this,'{{$process->site_process_id}}')"
  59. class="btn btn-sm btn-info" style="margin-right: 10px"
  60. data-score="{{$score['score']??''}}"
  61. >打分</a>
  62. @endif
  63. {{--<span class="vertical-date"><small>2月3日</small></span>--}}
  64. @if($process->can_confirm??false)
  65. <a href="javascript:;"
  66. onclick="units.confirm(this,'{{$process->site_process_id}}')"
  67. class="btn btn-sm btn-info" style="float: left">确认</a>
  68. @endif
  69. @if($process->identifier=='develop')
  70. <a href="javascript:;"
  71. onclick="units.deploy({{$process->site_process_id}})"
  72. class="btn btn-sm btn-info"
  73. style="margin-right: 10px">部署</a>
  74. @endif
  75. @endif
  76. </div>
  77. </div>
  78. @endforeach
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </body>
  88. @endsection
  89. @section('footer')
  90. <script>
  91. var units = {
  92. fileUpload: function (id) {
  93. layer.open({
  94. type: 2,
  95. content: ['/admin/process/file-upload/' + id],
  96. area: ['50%', '50%'],
  97. title: '文件上传'
  98. });
  99. },
  100. score: function (_this, id) {
  101. layer.open({
  102. title: '打分',
  103. type: 2,
  104. content: '/admin/process/score/' + id,
  105. area: ['40%', '40%']
  106. });
  107. },
  108. confirm: function (_this, id) {
  109. var config = {type: 'PUT', url: '/admin/process/confirm/' + id};
  110. config.success = function (result) {
  111. layer.msg(result.message, {icon: 6, time: 1500}, function () {
  112. window.location.reload();
  113. });
  114. };
  115. tips.ajax(config);
  116. },
  117. deploy: function () {
  118. layer.alert('展示按钮');
  119. }
  120. };
  121. // $(document).ready(function () {
  122. // $("#lightVersion").click(function (event) {
  123. // event.preventDefault();
  124. // $("#ibox-content").removeClass("ibox-content");
  125. // $("#vertical-timeline").removeClass("dark-timeline");
  126. // $("#vertical-timeline").addClass("light-timeline")
  127. // });
  128. // $("#darkVersion").click(function (event) {
  129. // event.preventDefault();
  130. // $("#ibox-content").addClass("ibox-content");
  131. // $("#vertical-timeline").removeClass("light-timeline");
  132. // $("#vertical-timeline").addClass("dark-timeline")
  133. // });
  134. // $("#leftVersion").click(function (event) {
  135. // event.preventDefault();
  136. // $("#vertical-timeline").toggleClass("center-orientation")
  137. // })
  138. // });
  139. </script>
  140. @endsection