index_for_site.blade.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. @extends('admin/site/side_layout')
  2. @section('header_extend')
  3. @endsection
  4. @section('right')
  5. @hasAuth('sites-report-edit')
  6. {{-- <button type="button" class="btn btn-info" onclick="units.report()">月报</button>
  7. <button type="button" class="btn btn-primary" onclick="units.afresh()">重新生成</button>
  8. <button type="button" class="btn btn-info" onclick="units.promoteReport()" style="margin-left: 50px">推广月报</button>
  9. <button type="button" class="btn btn-primary" onclick="units.promoteAfresh()">重新生成</button>
  10. <button type="button" class="btn btn-success" onclick="units.flowReport()" style="margin-left: 50px">流程报表</button>
  11. <button type="button" class="btn btn-success" onclick="units.clearLastMonthData()" >清除上月数据</button>--}}
  12. @endHasAuth
  13. {{--<iframe--}}
  14. {{--src="https://rank.yinqingli.cn/webmaster/report?projectId={{base64_encode($site->old_id)}}"--}}
  15. {{--frameborder="0" width="100%" height="800px"></iframe>--}}
  16. @endsection
  17. @section('footer_extend')
  18. <script>
  19. /* var units = {
  20. report: function () {
  21. window.open('https://rank.yinqingli.cn/webmaster/report?projectId=' + "{{base64_encode($site->old_id)}}");
  22. },
  23. afresh: function () {
  24. window.open('https://rank.yinqingli.cn/webmaster/report?noCache=1&projectId=' + "{{base64_encode($site->old_id)}}");
  25. },
  26. promoteReport: function () {
  27. window.open('https://rank.yinqingli.cn/pr/report?projectId=' + "{{base64_encode($site->old_id)}}");
  28. },
  29. promoteAfresh: function () {
  30. window.open('https://rank.yinqingli.cn/pr/report?noCache=1&projectId=' + "{{base64_encode($site->old_id)}}");
  31. },
  32. flowReport: function () {
  33. window.open('/wap/{{base64_encode($siteId)}}/flow');
  34. },
  35. clearLastMonthData: function () {
  36. var ajaxConfig = {
  37. url: '/admin/site/clearLastMonthData/{{$siteId}}',
  38. type: 'get',
  39. success: function () {
  40. layer.msg('操作成功', {
  41. icon: 1,
  42. time: 1500 //2秒关闭(如果不配置,默认是3秒)
  43. }, function () {
  44. window.location.reload()
  45. });
  46. }
  47. };
  48. tips.ajax(ajaxConfig);
  49. },
  50. };*/
  51. </script>
  52. @endsection