assets.vue 4.5 KB

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