not_found.blade.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. @extends('admin/site/side_layout')
  2. @section('header_extend')
  3. @endsection
  4. @section('right')
  5. <body class="gray-bg">
  6. <div class="wrapper wrapper-content animated fadeInRight">
  7. <div class="row">
  8. <div class="col-sm-12">
  9. <div class="ibox float-e-margins">
  10. <div class="table-responsive">
  11. <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
  12. </div>
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. </body>
  18. @endsection
  19. @section('footer_extend')
  20. <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
  21. <script>
  22. var units = {
  23. openDetail: function (url) {
  24. window.open(url);
  25. },
  26. isHandle: function (taskId, type) {
  27. layer.confirm('确定?', {icon: 3, title: '是否处理'}, function (index, layero) {
  28. layer.close(index);
  29. tips.ajax({
  30. url: '/admin/flow/isHandle/' + taskId,
  31. type: 'post',
  32. data: {type: type},
  33. tableRefresh: '#table',
  34. });
  35. });
  36. },
  37. };
  38. var config = {};
  39. config.url = '/admin/flow/notFound/{{$siteId}}';
  40. config.pageSize = 20;
  41. config.showColumns = true;
  42. config.columns = [ //字段
  43. {
  44. title: '序号', align: 'center', formatter: function (value, item, index) {
  45. return index + 1;
  46. },
  47. width: '10px'
  48. },
  49. {title: '页面地址', field: 'url', align: 'center', width: '120px'},
  50. {title: '父级页面', field: 'father_path', align: 'center'},
  51. {title: 'http状态', field: 'status', align: 'center'},
  52. {title: '更新时间', field: 'create_time', align: 'center'},
  53. {
  54. title: '操作', field: 'id', align: 'center',
  55. formatter: function (value, row) {
  56. var str = '';
  57. if (row.is_handle === 1) {
  58. str += '<button onclick="units.isHandle(' + row.id + ',0)" class="btn btn-md btn-success" style="background: #2a94e0 !important;border: none">已处理</button>&nbsp;';
  59. } else {
  60. str += '<button onclick="units.isHandle(' + row.id + ',1)" class="btn btn-md btn-danger" style="background: #f2003c !important;border: none">未处理</button>&nbsp;';
  61. }
  62. return str;
  63. }
  64. }
  65. ];
  66. tips.bootstrapTable(config);
  67. </script>
  68. @endsection