zc.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <template>
  2. <view class="m_right">
  3. <view class="m_right_hander">
  4. <button size="mini" class="m_btn_red">添加资产</button>
  5. </view>
  6. <view class="m_right_container">
  7. <table style="width: 100%;border: 1px solid #DDDDDD;border-collapse: collapse">
  8. <thead class="m-table-hander">
  9. <tr>
  10. <th>用户名</th>
  11. <th>班级</th>
  12. <th>学号</th>
  13. <th>电话</th>
  14. <th>ilab账户</th>
  15. <th>注册时间</th>
  16. <th>分数</th>
  17. <th>修改信息</th>
  18. <th>删除</th>
  19. </tr>
  20. </thead>
  21. <tbody>
  22. <tr>
  23. <th style="color: #EA252C;">张小旭</th>
  24. <th>26</th>
  25. <th>CMII09</th>
  26. <th>26</th>
  27. <th>15038728747</th>
  28. <th>2021-01-01</th>
  29. <th>90</th>
  30. <th style="position: relative;"><button type="default" size="mini" class="m_edit">修改</button></th>
  31. <th style="position: relative;"><button type="default" size="mini" class="m_delete">删除</button></th>
  32. </tr>
  33. <tr>
  34. <th style="color: #EA252C;">张小旭</th>
  35. <th>26</th>
  36. <th>CMII09</th>
  37. <th>26</th>
  38. <th>15038728747</th>
  39. <th>2021-01-01</th>
  40. <th>90</th>
  41. <th style="position: relative;"><button type="default" size="mini" class="m_edit">修改</button></th>
  42. <th style="position: relative;"><button type="default" size="mini" class="m_delete">删除</button></th>
  43. </tr>
  44. <tr>
  45. <th style="color: #EA252C;">张小旭</th>
  46. <th>26</th>
  47. <th>CMII09</th>
  48. <th>26</th>
  49. <th>15038728747</th>
  50. <th>2021-01-01</th>
  51. <th>90</th>
  52. <th style="position: relative;"><button type="default" size="mini" class="m_edit">修改</button></th>
  53. <th style="position: relative;"><button type="default" size="mini" class="m_delete">删除</button></th>
  54. </tr>
  55. <tr>
  56. <th style="color: #EA252C;">张小旭</th>
  57. <th>26</th>
  58. <th>CMII09</th>
  59. <th>26</th>
  60. <th>15038728747</th>
  61. <th>2021-01-01</th>
  62. <th>90</th>
  63. <th style="position: relative;"><button type="default" size="mini" class="m_edit">修改</button></th>
  64. <th style="position: relative;"><button type="default" size="mini" class="m_delete">删除</button></th>
  65. </tr>
  66. <tr>
  67. <th style="color: #EA252C;">张小旭</th>
  68. <th>26</th>
  69. <th>CMII09</th>
  70. <th>26</th>
  71. <th>15038728747</th>
  72. <th>2021-01-01</th>
  73. <th>90</th>
  74. <th style="position: relative;"><button type="default" size="mini" class="m_edit">修改</button></th>
  75. <th style="position: relative;"><button type="default" size="mini" class="m_delete">删除</button></th>
  76. </tr>
  77. <tr>
  78. <th style="color: #EA252C;">张小旭</th>
  79. <th>26</th>
  80. <th>CMII09</th>
  81. <th>26</th>
  82. <th>15038728747</th>
  83. <th>2021-01-01</th>
  84. <th>90</th>
  85. <th style="position: relative;"><button type="default" size="mini" class="m_edit">修改</button></th>
  86. <th style="position: relative;"><button type="default" size="mini" class="m_delete">删除</button></th>
  87. </tr>
  88. <tr>
  89. <th style="color: #EA252C;">张小旭</th>
  90. <th>26</th>
  91. <th>CMII09</th>
  92. <th>26</th>
  93. <th>15038728747</th>
  94. <th>2021-01-01</th>
  95. <th>90</th>
  96. <th style="position: relative;"><button type="default" size="mini" class="m_edit">修改</button></th>
  97. <th style="position: relative;"><button type="default" size="mini" class="m_delete">删除</button></th>
  98. </tr>
  99. </tbody>
  100. </table>
  101. </view>
  102. <view class="m_right_footer">
  103. <view class="m_paging">
  104. <text class="m_paging_item m_paging_upper">上一页</text>
  105. <text class="m_paging_item" v-for="i in 8" @click="paging(i)" :class="i==index?'p_act':''">
  106. {{i}}
  107. </text>
  108. <text class="m_paging_item m_paging_lower">下一页</text>
  109. </view>
  110. </view>
  111. </view>
  112. </template>
  113. <script>
  114. export default {
  115. name: "manager_zc",
  116. data() {
  117. return {
  118. index: 1,
  119. }
  120. },
  121. methods: {
  122. paging(obj) {
  123. this.index = obj;
  124. }
  125. }
  126. }
  127. </script>
  128. <style lang="scss">
  129. .m_right {
  130. width: 100%;
  131. margin-top: 5rpx;
  132. padding: 0 150rpx;
  133. background-color: #fff;
  134. box-shadow: 3px 0px 6px 0px rgba(0, 0, 0, 0.1);
  135. .m_right_hander {
  136. text-align: right;
  137. height: 250rpx;
  138. position: relative;
  139. .m_btn_red {
  140. position: absolute;
  141. height: 80rpx;
  142. line-height: 80rpx;
  143. padding: 0 40rpx;
  144. right: 0;
  145. top: 50%;
  146. transform: translateY(-50%);
  147. background: #EA252C;
  148. color: #fff;
  149. }
  150. }
  151. }
  152. tbody tr {
  153. border-top: 2rpx solid #DDDDDD !important;
  154. }
  155. tbody tr th {
  156. font-weight: 400 !important;
  157. height: 140rpx;
  158. line-height: 140rpx;
  159. }
  160. tbody tr:hover {
  161. // color: #fff;
  162. background: #FDEBEC;
  163. // opacity: 0.08;
  164. }
  165. .m-table-hander {
  166. background-color: #FFF8F7;
  167. height: 140rpx;
  168. line-height: 140rpx;
  169. font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
  170. font-weight: bold;
  171. }
  172. .m_edit {
  173. position: absolute;
  174. top: 50%;
  175. left: 50%;
  176. transform: translate(-50%, -50%);
  177. background: rgb(67, 127, 250);
  178. color: rgb(255, 255, 255);
  179. min-width: 130rpx;
  180. }
  181. .m_delete {
  182. position: absolute;
  183. top: 50%;
  184. left: 50%;
  185. min-width: 130rpx;
  186. transform: translate(-50%, -50%);
  187. background: rgb(234, 37, 44);
  188. color: rgb(255, 255, 255);
  189. }
  190. .m_right_footer {
  191. margin-top: 80rpx;
  192. }
  193. .m_paging {
  194. text-align: right;
  195. .m_paging_item {
  196. padding: 10rpx 18rpx;
  197. border: 1rpx solid #DDDDDD;
  198. border-radius: 8rpx;
  199. margin-right: 10rpx;
  200. }
  201. .p_act {
  202. background: #EA252C;
  203. color: #fff;
  204. border: inherit;
  205. }
  206. }
  207. .m_paging_item:hover {
  208. background: #EA252C;
  209. color: #fff;
  210. border: inherit;
  211. }
  212. .m_act1 {
  213. color: #FF0019;
  214. }
  215. </style>