see.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {extend name="public/container"}
  2. {block name="content"}
  3. <style>
  4. .backlog-body {
  5. padding: 10px 15px;
  6. background-color: #f8f8f8;
  7. color: #999;
  8. border-radius: 2px;
  9. transition: all .3s;
  10. -webkit-transition: all .3s;
  11. overflow: hidden;
  12. max-height: 84px;
  13. }
  14. .backlog-body h3 {
  15. margin-bottom: 10px;
  16. }
  17. .right-icon {
  18. position: absolute;
  19. right: 10px;
  20. }
  21. .backlog-body p cite {
  22. font-style: normal;
  23. font-size: 17px;
  24. font-weight: 300;
  25. color: #009688;
  26. }
  27. .layuiadmin-badge, .layuiadmin-btn-group, .layuiadmin-span-color {
  28. position: absolute;
  29. right: 15px;
  30. }
  31. .layuiadmin-badge {
  32. top: 50%;
  33. margin-top: -9px;
  34. color: #01AAED;
  35. }
  36. </style>
  37. <div class="layui-fluid">
  38. <div class="layui-row layui-col-space15">
  39. <div class="layui-col-md12 layui-col-sm12 layui-col-lg12">
  40. <div class="layui-card">
  41. <div class="layui-card-header">计划详情</div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="row">
  47. <div class="col-sm-12">
  48. <div class="ibox">
  49. <div class="ibox-content">
  50. <div class="table-responsive">
  51. <div class="layui-btn-container">
  52. <button class="layui-btn layui-btn-sm layui-btn-normal" lay-submit="" lay-filter="search">
  53. <i class="layui-icon layui-icon-refresh layuiadmin-button-btn"></i>刷新
  54. </button>
  55. </div>
  56. <table class="layui-hide" id="List" lay-filter="List"></table>
  57. <script type="text/html" id="user">
  58. {{d.user.nickname}}({{d.uid}})
  59. </script>
  60. <script type="text/html" id="activity">
  61. {{d.activity.nickname}}({{d.aid}})
  62. </script>
  63. <script type="text/html" id="time">
  64. <p>参与时间:{{d._add_time}}</p>
  65. </script>
  66. <!-- <script type="text/html" id="barDemo">-->
  67. <!-- <button type="button" class="layui-btn layui-btn-xs" lay-event="edit"><i-->
  68. <!-- class="layui-icon layui-icon-edit"></i>编辑-->
  69. <!-- </button>-->
  70. <!-- <button type="button" class="layui-btn layui-btn-xs" onclick="dropdown(this)">操作 <span-->
  71. <!-- class="caret"></span></button>-->
  72. <!-- <ul class="layui-nav-child layui-anim layui-anim-upbit">-->
  73. <!-- <li>-->
  74. <!-- <a href="javascript:void(0);" lay-event="see">-->
  75. <!-- <i class="layui-icon layui-icon-edit"></i> 投票人详情</a>-->
  76. <!-- </li>-->
  77. <!-- </ul>-->
  78. <!-- </script>-->
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. <script src="{__ADMIN_PATH}js/layuiList.js"></script>
  85. {/block}
  86. {block name="script"}
  87. <script>
  88. layList.form.render();
  89. layList.tableList('List', "{:Url('get_sub_list',array('id'=>$id))}", function () {
  90. return [
  91. {field: 'id', title: '编号', event: 'id', width: '4%', align: 'center'},
  92. {field: 'user', title: '参与用户', align: 'center', templet: '#user', width: '20%'},
  93. {field: 'status_name', title: '状态', align: 'center', width: '20%'},
  94. {field: 'group_num', title: '点位', width: '20%', align: 'center'},
  95. {field: 'time', title: '时间', templet: '#time'},
  96. ];
  97. });
  98. //监听并执行 uid 的排序
  99. $('.conrelTable').find('button').each(function () {
  100. var type = $(this).data('type');
  101. $(this).on('click', function () {
  102. action[type] && action[type]();
  103. })
  104. })
  105. //下拉框
  106. $(document).click(function (e) {
  107. $('.layui-nav-child').hide();
  108. })
  109. layList.search('search', function (where) {
  110. layList.reload(where, true);
  111. });
  112. function dropdown(that) {
  113. var oEvent = arguments.callee.caller.arguments[0] || event;
  114. oEvent.stopPropagation();
  115. var offset = $(that).offset();
  116. var top = offset.top - $(window).scrollTop();
  117. var index = $(that).parents('tr').data('index');
  118. $('.layui-nav-child').each(function (key) {
  119. if (key != index) {
  120. $(this).hide();
  121. }
  122. })
  123. if ($(document).height() < top + $(that).next('ul').height()) {
  124. $(that).next('ul').css({
  125. 'padding': 10,
  126. 'top': -($(that).parent('td').height() / 2 + $(that).height() + $(that).next('ul').height() / 2),
  127. 'left': offset.left - $(that).parents('td').offset().left - 20,
  128. 'min-width': 'inherit',
  129. 'position': 'absolute'
  130. }).toggle();
  131. } else {
  132. $(that).next('ul').css({
  133. 'padding': 10,
  134. 'top': $(that).parent('td').height() / 2 + $(that).height(),
  135. 'left': offset.left - $(that).parents('td').offset().left - 20,
  136. 'min-width': 'inherit',
  137. 'position': 'absolute'
  138. }).toggle();
  139. }
  140. }
  141. </script>
  142. {/block}