keyword.blade.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. @extends('admin/layout')
  2. @section('content')
  3. <body class="gray-bg">
  4. <div class="wrapper wrapper-content animated fadeInRight">
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <div class="ibox float-e-margins">
  8. <div class="ibox-content">
  9. <div class="table-responsive">
  10. <table id="table" class="table table-condensed" data-mobile-responsive="true"></table>
  11. </div>
  12. </div>
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. </body>
  18. @endsection
  19. @section('footer')
  20. <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
  21. <script>
  22. var units = {
  23. getIdsBySelections: function () {
  24. var selections = $("#table").bootstrapTable('getSelections');
  25. var ids = [];
  26. $.each(selections, function (inx, val) {
  27. ids.push(val.id);
  28. });
  29. return ids;
  30. },
  31. };
  32. var config = {};
  33. config.url = '/admin/sites/' + "{{$siteId}}" + '/keyword';
  34. config.columns = [ //字段
  35. {
  36. title: '序号', align: 'center', formatter: function (value, item, index) {
  37. return index + 1;
  38. }
  39. },
  40. {title: '项目名称', field: 'project_name', align: 'center'},
  41. {title: '项目状态', field: 'project_status_text', align: 'center'},
  42. {title: '中文关键词', field: 'chinese_keyword', align: 'center'},
  43. {title: '英文关键词', field: 'keyword', align: 'center'},
  44. {title: 'google_rank', field: 'google_rank', align: 'center'},
  45. {title: 'resules', field: 'resules', align: 'center'},
  46. {title: '数据同步时间', field: 'time', align: 'center'},
  47. {title: '下次同步时间', field: 'next_time', align: 'center'},
  48. {title: '排名系统', field: 'number_title', align: 'center'},
  49. ];
  50. tips.bootstrapTable(config);
  51. config.onLoadSuccess = function (data) {
  52. $("#sum_total").text(data.sum_total);
  53. };
  54. laydate.render({
  55. elem: '#start_at', //指定元素
  56. type: 'datetime'
  57. });
  58. laydate.render({
  59. elem: '#end_at', //指定元素
  60. type: 'datetime'
  61. });
  62. </script>
  63. @endsection