userCenterCollectionCompany.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <template>
  2. <div style="width: 100%;background: #fff;min-height: 700px;color: #666;" class="userCenterMyActivity">
  3. <div style="margin-left: 30px;margin-right: 30px;margin-top: 10px; " class="myActivity">
  4. <div>
  5. <ul>
  6. <li class="myActivityLi" v-for="(item,index) in tableData ">
  7. <div style="display: inline-block;vertical-align:top;width: 100%;">
  8. <div class="title">
  9. <span>{{item.address}}</span>
  10. <span style="color: #ff0000;float: right;font-size: 12px;font-weight: 400;margin-right: 20px;">取消收藏</span>
  11. </div>
  12. <div style="width: 100%;height: 80px;position: relative;" class="margin_top">
  13. <div style="width: 80px;height: 80px;transform: translate(-50%,0%);position: absolute;left: 50%;border-radius: 50px;overflow: hidden;">
  14. <img src="@/assets/img/enterprise/u5255.png" alt="" style="width: 100%;height: 100%;">
  15. </div>
  16. </div>
  17. <div style="color:#999;width: 100%;text-align: center;" class="margin_top">
  18. {{item.address5}}
  19. </div>
  20. <div style="color:#999;width: 100%;text-align: left;font-size: 12px;" class="margin_top">
  21. 三峡集团经营范围包括三峡工程建设和经营管理;长江中上游水资源开发;水利水电技术服务;水利水电
  22. </div>
  23. </div>
  24. </li>
  25. </ul>
  26. </div>
  27. </div>
  28. <div style="margin-left: 250px;">
  29. <el-pagination
  30. style="margin-top: 40px;height: 80px;"
  31. background
  32. layout="prev, pager, next"
  33. :total="1000" @size-change="handleSizeChange"
  34. @current-change="handleCurrentChange">
  35. </el-pagination>
  36. </div>
  37. </div>
  38. </template>
  39. <script>
  40. export default {
  41. name: 'userCenterCollectionCompany',
  42. data () {
  43. return {
  44. formInline: {
  45. user: '',
  46. region: ''
  47. },
  48. tableData: [{
  49. date: '日本大型海上风电项目',
  50. address: '中国 北京市',
  51. startTime: '2020-05-25',
  52. endTime: '2020-05-31',
  53. address5: '中国长江三峡集团有限公司',
  54. },{
  55. date: '2020全球能源互联网大会',
  56. address: '中国 北京市',
  57. startTime: '2020-05-25',
  58. endTime: '2020-05-31',
  59. address5: '中国长江三峡集团有限公司',
  60. },{
  61. date: '2020全球能源互联网大会',
  62. address: '中国 北京市',
  63. startTime: '2020-05-25',
  64. endTime: '2020-05-31',
  65. address5: '中国长江三峡集团有限公司',
  66. },{
  67. date: '2020全球能源互联网大会',
  68. address: '中国 北京市',
  69. startTime: '2020-05-25',
  70. endTime: '2020-05-31',
  71. address5: '中国长江三峡集团有限公司',
  72. },{
  73. date: '2020全球能源互联网大会',
  74. address: '中国 北京市',
  75. startTime: '2020-05-25',
  76. endTime: '2020-05-31',
  77. address5: '中国长江三峡集团有限公司',
  78. },{
  79. date: '2020全球能源互联网大会',
  80. address: '中国 北京市',
  81. startTime: '2020-05-25',
  82. endTime: '2020-05-31',
  83. address5: '中国长江三峡集团有限公司',
  84. }]
  85. }
  86. },
  87. methods:{
  88. // 发布
  89. release(index, rows) {
  90. console.log(index, rows)
  91. },
  92. // 编辑
  93. change(index, rows) {
  94. console.log(index, rows)
  95. },
  96. // 删除
  97. deleteRow(index, rows) {
  98. console.log(index, rows)
  99. },
  100. // 撤回
  101. withdraw(index,rows) {
  102. console.log(index, rows)
  103. },
  104. handleSizeChange(val) {
  105. console.log(`每页 ${val} 条`);
  106. },
  107. handleCurrentChange(val) {
  108. console.log(`当前页: ${val}`);
  109. }
  110. }
  111. }
  112. </script>
  113. <style scoped>
  114. .el-input {
  115. width: 200px ;
  116. }
  117. .el-form-item__content,.el-select {
  118. width: 200px !important;
  119. }
  120. .el-table thead {
  121. background: #eee;
  122. }
  123. .userCenterMyActivity >>> .el-pagination .el-pager li,
  124. .userCenterMyActivity >>> .el-pagination .btn-next,
  125. .userCenterMyActivity >>> .el-pagination .btn-prev{
  126. width: 35px;
  127. height: 35px;
  128. line-height: 35px;
  129. }
  130. .userCenterMyActivity >>> .el-pagination.is-background .el-pager li:not(.disabled).active {
  131. background: #0050d8;
  132. }
  133. .margin_left {
  134. margin-left: 5px;
  135. }
  136. .margin_top{
  137. margin-top: 5px;
  138. }
  139. .myActivityLi {
  140. width: 295px;
  141. float: left;
  142. height: 200px;
  143. margin-bottom: 20px;
  144. border: 1px solid rgba(228, 228, 228, 1);
  145. box-shadow: rgba(228, 228, 228, 1);
  146. }
  147. .myActivityLi .title {
  148. color: #ccc;
  149. margin-left: 10px;
  150. font-size: 14px;
  151. margin-top: 8px;
  152. }
  153. .myActivityLi_data {
  154. color: #666;
  155. font-size: 12px;
  156. margin-top: 5px;
  157. margin-left: 10px;
  158. }
  159. .myActivity ul {
  160. text-align: top;
  161. height: 100%;
  162. display: flex;
  163. display: -webkit-flex; /* Safari */
  164. justify-content:space-between;
  165. flex-wrap:wrap;
  166. }
  167. .el-tag {
  168. height: 22px;
  169. line-height: 22px;
  170. margin-right: 5px;
  171. }
  172. </style>