project.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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>
  11. <icon type="" style="color:#EA252C;" class="font_family" :class="checke?'icon-fuxuankuang_weixuanzhong4':'icon-fuxuankuang-true'"></icon>
  12. </th>
  13. <th>项目名称</th>
  14. <th>项目创建人</th>
  15. <th>项目创建时间</th>
  16. <th>项目描述</th>
  17. <th>项目推荐</th>
  18. <th>上线</th>
  19. <th>删除</th>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. <tr>
  24. <th>
  25. <icon type="" style="color:#EA252C;" class="font_family" :class="checke?'icon-fuxuankuang_weixuanzhong4':'icon-fuxuankuang-true'"></icon>
  26. </th>
  27. <th>CMII09</th>
  28. <th>张小旭</th>
  29. <th>2021-01-01</th>
  30. <th>CMII09</th>
  31. <th>CMII09</th>
  32. <th style="position: relative;"><button type="default" size="mini" class="m_online">上线</button></th>
  33. <th style="position: relative;"><button type="default" size="mini" class="m_delete">删除</button></th>
  34. </tr>
  35. <tr>
  36. <th>
  37. <icon type="" style="color:#EA252C;" class="font_family" :class="checke?'icon-fuxuankuang_weixuanzhong4':'icon-fuxuankuang-true'"></icon>
  38. </th>
  39. <th>CMII09</th>
  40. <th>张小旭</th>
  41. <th>2021-01-01</th>
  42. <th>CMII09</th>
  43. <th>CMII09</th>
  44. <th style="position: relative;"><button type="default" size="mini" class="m_offline">下线</button></th>
  45. <th style="position: relative;"><button type="default" size="mini" class="m_delete">删除</button></th>
  46. </tr>
  47. <tr>
  48. <th>
  49. <icon type="" style="color:#EA252C;" class="font_family" :class="checke?'icon-fuxuankuang_weixuanzhong4':'icon-fuxuankuang-true'"></icon>
  50. </th>
  51. <th>CMII09</th>
  52. <th>张小旭</th>
  53. <th>2021-01-01</th>
  54. <th>CMII09</th>
  55. <th>CMII09</th>
  56. <th style="position: relative;"><button type="default" size="mini" class="m_online">上线</button></th>
  57. <th style="position: relative;"><button type="default" size="mini" class="m_delete">删除</button></th>
  58. </tr>
  59. <tr>
  60. <th>
  61. <icon type="" style="color:#EA252C;" class="font_family" :class="checke?'icon-fuxuankuang_weixuanzhong4':'icon-fuxuankuang-true'"></icon>
  62. </th>
  63. <th>CMII09</th>
  64. <th>张小旭</th>
  65. <th>2021-01-01</th>
  66. <th>CMII09</th>
  67. <th>CMII09</th>
  68. <th style="position: relative;"><button type="default" size="mini" class="m_offline">下线</button></th>
  69. <th style="position: relative;"><button type="default" size="mini" class="m_delete">删除</button></th>
  70. </tr>
  71. <tr>
  72. <th>
  73. <icon type="" style="color:#EA252C;" class="font_family" :class="checke?'icon-fuxuankuang_weixuanzhong4':'icon-fuxuankuang-true'"></icon>
  74. </th>
  75. <th>CMII09</th>
  76. <th>张小旭</th>
  77. <th>2021-01-01</th>
  78. <th>CMII09</th>
  79. <th>CMII09</th>
  80. <th style="position: relative;"><button type="default" size="mini" class="m_online">上线</button></th>
  81. <th style="position: relative;"><button type="default" size="mini" class="m_delete">删除</button></th>
  82. </tr>
  83. <tr>
  84. <th>
  85. <icon type="" style="color:#EA252C;" class="font_family" :class="checke?'icon-fuxuankuang_weixuanzhong4':'icon-fuxuankuang-true'"></icon>
  86. </th>
  87. <th>CMII09</th>
  88. <th>张小旭</th>
  89. <th>2021-01-01</th>
  90. <th>CMII09</th>
  91. <th>CMII09</th>
  92. <th style="position: relative;"><button type="default" size="mini" class="m_offline">下线</button></th>
  93. <th style="position: relative;"><button type="default" size="mini" class="m_delete">删除</button></th>
  94. </tr>
  95. <tr>
  96. <th>
  97. <icon type="" style="color:#EA252C;" class="font_family" :class="checke?'icon-fuxuankuang_weixuanzhong4':'icon-fuxuankuang-true'"></icon>
  98. </th>
  99. <th>CMII09</th>
  100. <th>张小旭</th>
  101. <th>2021-01-01</th>
  102. <th>CMII09</th>
  103. <th>CMII09</th>
  104. <th style="position: relative;"><button type="default" size="mini" class="m_online">上线</button></th>
  105. <th style="position: relative;"><button type="default" size="mini" class="m_delete">删除</button></th>
  106. </tr>
  107. </tbody>
  108. </table>
  109. </view>
  110. <view class="m_right_footer">
  111. <view class="m_paging">
  112. <text class="m_paging_item m_paging_upper">上一页</text>
  113. <text class="m_paging_item" :key="i" v-for="i in 8" @click="paging(i)" :class="i==index?'p_act':''">
  114. {{i}}
  115. </text>
  116. <text class="m_paging_item m_paging_lower">下一页</text>
  117. </view>
  118. </view>
  119. </view>
  120. </template>
  121. <script>
  122. export default {
  123. name: "project",
  124. data() {
  125. return {
  126. index: 1,
  127. checke: false
  128. }
  129. },
  130. methods: {
  131. paging(obj) {
  132. this.index = obj;
  133. }
  134. }
  135. }
  136. </script>
  137. <style lang="scss">
  138. @import '../../assets/icon/iconfont.css';
  139. .m_right {
  140. width: 100%;
  141. margin-top: 5rpx;
  142. padding: 0 150rpx;
  143. background-color: #fff;
  144. box-shadow: 3px 0px 6px 0px rgba(0, 0, 0, 0.1);
  145. .m_right_hander {
  146. text-align: right;
  147. height: 250rpx;
  148. position: relative;
  149. .m_btn_red {
  150. position: absolute;
  151. height: 80rpx;
  152. line-height: 80rpx;
  153. padding: 0 40rpx;
  154. right: 0;
  155. top: 50%;
  156. transform: translateY(-50%);
  157. background: #EA252C;
  158. color: #fff;
  159. }
  160. }
  161. }
  162. tbody tr {
  163. border-top: 2rpx solid #DDDDDD !important;
  164. }
  165. tbody tr th {
  166. font-weight: 400 !important;
  167. height: 140rpx;
  168. line-height: 140rpx;
  169. }
  170. tbody tr:hover {
  171. // color: #fff;
  172. background: #FDEBEC;
  173. // opacity: 0.08;
  174. }
  175. .m-table-hander {
  176. background-color: #FFF8F7;
  177. height: 140rpx;
  178. line-height: 140rpx;
  179. font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
  180. font-weight: bold;
  181. }
  182. .m_edit {
  183. position: absolute;
  184. top: 50%;
  185. left: 50%;
  186. transform: translate(-50%, -50%);
  187. background: rgb(67, 127, 250);
  188. color: rgb(255, 255, 255);
  189. min-width: 130rpx;
  190. }
  191. .m_delete {
  192. position: absolute;
  193. top: 50%;
  194. left: 50%;
  195. min-width: 130rpx;
  196. transform: translate(-50%, -50%);
  197. background: rgb(234, 37, 44);
  198. color: rgb(255, 255, 255);
  199. }
  200. .m_online {
  201. background: #437FFA;
  202. position: absolute;
  203. top: 50%;
  204. left: 50%;
  205. min-width: 130rpx;
  206. transform: translate(-50%, -50%);
  207. color: rgb(255, 255, 255);
  208. }
  209. .m_offline {
  210. background: #FD813B;
  211. position: absolute;
  212. top: 50%;
  213. left: 50%;
  214. min-width: 130rpx;
  215. transform: translate(-50%, -50%);
  216. color: rgb(255, 255, 255);
  217. }
  218. .m_right_footer {
  219. margin-top: 80rpx;
  220. }
  221. .m_paging {
  222. text-align: right;
  223. .m_paging_item {
  224. padding: 10rpx 18rpx;
  225. border: 1rpx solid #DDDDDD;
  226. border-radius: 8rpx;
  227. margin-right: 10rpx;
  228. }
  229. .p_act {
  230. background: #EA252C;
  231. color: #fff;
  232. border: inherit;
  233. }
  234. }
  235. .m_paging_item:hover {
  236. background: #EA252C;
  237. color: #fff;
  238. border: inherit;
  239. }
  240. .m_act1 {
  241. color: #FF0019;
  242. }
  243. </style>