index copy.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <template>
  2. <div id="index">
  3. <el-col :span="24" class="main">
  4. <el-col :span="12" class="left">
  5. <el-col :span="1" class="leftTitle">
  6. <p>展<br />示<br />成<br />果</p>
  7. <p></p>
  8. </el-col>
  9. <el-col :span="23" class="infoLeft">
  10. <el-table :data="resultTable" stripe style="width: 96%" border>
  11. <el-table-column prop="time" label="时间"> </el-table-column>
  12. <el-table-column prop="name" label="项目名称" :show-overflow-tooltip="true"> </el-table-column>
  13. <el-table-column prop="sell_unit" label="营销单位" :show-overflow-tooltip="true"> </el-table-column>
  14. <el-table-column prop="buy_unit" label="采购单位" :show-overflow-tooltip="true"> </el-table-column>
  15. </el-table>
  16. </el-col>
  17. <el-col :span="24" class="leftListDown"><span></span><span @click="turnToList('展示成果')">MORE</span></el-col>
  18. </el-col>
  19. <el-col :span="12" class="right">
  20. <el-col :span="24" class="rightListTop"><span @click="turnToList('达成意愿')">MORE</span><span></span></el-col>
  21. <el-col :span="23" class="infoRight">
  22. <el-table :data="willTable" stripe style="width: 96%" border>
  23. <el-table-column prop="time" label="时间"> </el-table-column>
  24. <el-table-column prop="name" label="项目名称" :show-overflow-tooltip="true"> </el-table-column>
  25. <el-table-column prop="sell_unit" label="营销单位" :show-overflow-tooltip="true"> </el-table-column>
  26. <el-table-column prop="buy_unit" label="采购单位" :show-overflow-tooltip="true"> </el-table-column>
  27. </el-table>
  28. </el-col>
  29. <el-col :span="1" class="rightTitle">
  30. <p></p>
  31. <p>达<br />成<br />意<br />愿</p>
  32. </el-col>
  33. </el-col>
  34. <el-col :span="24">
  35. <el-image :src="dongtaiImage" class="dongtaiImage"></el-image>
  36. </el-col>
  37. <el-col :span="12" class="left">
  38. <el-col :span="1" class="leftTitle">
  39. <p>洽<br />谈<br />合<br />作</p>
  40. <p></p>
  41. </el-col>
  42. <el-col :span="23" class="infoRight">
  43. <el-table :data="cooperationTable" stripe style="width: 96%" border>
  44. <el-table-column prop="time" label="时间"> </el-table-column>
  45. <el-table-column prop="name" label="项目名称" :show-overflow-tooltip="true"> </el-table-column>
  46. <el-table-column prop="sell_unit" label="营销单位" :show-overflow-tooltip="true"> </el-table-column>
  47. <el-table-column prop="buy_unit" label="采购单位" :show-overflow-tooltip="true"> </el-table-column>
  48. </el-table>
  49. </el-col>
  50. <el-col :span="24" class="leftListDown"><span></span><span @click="turnToList('洽谈合作')">MORE</span></el-col>
  51. </el-col>
  52. <el-col :span="12" class="right">
  53. <el-col :span="24" class="rightListTop"><span @click="turnToList('发布需求')">MORE</span><span></span></el-col>
  54. <el-col :span="23" class="infoLeft">
  55. <el-table :data="demandTable" stripe style="width: 96%" border>
  56. <el-table-column prop="time" label="时间"> </el-table-column>
  57. <el-table-column prop="name" label="项目名称" :show-overflow-tooltip="true"> </el-table-column>
  58. <el-table-column prop="sell_unit" label="营销单位" :show-overflow-tooltip="true"> </el-table-column>
  59. <el-table-column prop="buy_unit" label="采购单位" :show-overflow-tooltip="true"> </el-table-column>
  60. </el-table>
  61. </el-col>
  62. <el-col :span="1" class="rightTitle">
  63. <p></p>
  64. <p>发<br />布<br />需<br />求</p>
  65. </el-col>
  66. </el-col>
  67. </el-col>
  68. </div>
  69. </template>
  70. <script>
  71. export default {
  72. name: 'index',
  73. props: {},
  74. components: {},
  75. data: () => ({
  76. dongtaiImage: require('@/assets/live/main2.png'),
  77. resultTable: [
  78. { time: '2020-5-10', name: '测试项目名称测试项目名称', sell_unit: '营销单位营销单位', buy_unit: '采购单位采购单位' },
  79. { time: '2020-5-10', name: '测试项目名称', sell_unit: '营销单位', buy_unit: '采购单位' },
  80. { time: '2020-5-10', name: '测试项目名称', sell_unit: '营销单位', buy_unit: '采购单位' },
  81. { time: '2020-5-10', name: '测试项目名称', sell_unit: '营销单位', buy_unit: '采购单位' },
  82. { time: '2020-5-10', name: '测试项目名称', sell_unit: '营销单位', buy_unit: '采购单位' },
  83. { time: '2020-5-10', name: '测试项目名称', sell_unit: '营销单位', buy_unit: '采购单位' },
  84. { time: '2020-5-10', name: '测试项目名称', sell_unit: '营销单位', buy_unit: '采购单位' },
  85. { time: '2020-5-10', name: '测试项目名称', sell_unit: '营销单位', buy_unit: '采购单位' },
  86. { time: '2020-5-10', name: '测试项目名称', sell_unit: '营销单位', buy_unit: '采购单位' },
  87. { time: '2020-5-10', name: '测试项目名称', sell_unit: '营销单位', buy_unit: '采购单位' },
  88. ],
  89. willTable: [
  90. { time: '2020-5-10', name: '测试项目名称', sell_unit: '营销单位', buy_unit: '采购单位' },
  91. { time: '2020-5-10', name: '十条数据', sell_unit: '营销单位', buy_unit: '采购单位' },
  92. ],
  93. cooperationTable: [
  94. { time: '2020-5-10', name: '测试项目名称', sell_unit: '营销单位', buy_unit: '采购单位' },
  95. { time: '2020-5-10', name: '十条数据', sell_unit: '营销单位', buy_unit: '采购单位' },
  96. ],
  97. demandTable: [
  98. { time: '2020-5-10', name: '测试项目名称', sell_unit: '营销单位', buy_unit: '采购单位' },
  99. { time: '2020-5-10', name: '十条数据', sell_unit: '营销单位', buy_unit: '采购单位' },
  100. ],
  101. }),
  102. created() {},
  103. computed: {
  104. pageTitle() {
  105. return `${this.$route.meta.title}`;
  106. },
  107. },
  108. metaInfo() {
  109. return { title: this.$route.meta.title };
  110. },
  111. methods: {
  112. turnToList(column_name) {
  113. this.$router.push({ path: '/dynamic/list', query: { column_name: column_name } });
  114. },
  115. },
  116. };
  117. </script>
  118. <style lang="less" scoped>
  119. .dongtaiImage {
  120. width: 100%;
  121. height: 100%;
  122. }
  123. .main {
  124. width: 80%;
  125. margin: 0 auto;
  126. float: none;
  127. }
  128. .left {
  129. float: left;
  130. height: 500px;
  131. margin: 30px 0 30px 0;
  132. overflow: hidden;
  133. }
  134. .leftTitle {
  135. text-align: center;
  136. position: relative;
  137. }
  138. .leftTitle p:first-child {
  139. font-size: 18px;
  140. color: #044b79;
  141. font-weight: bold;
  142. }
  143. .leftTitle p:last-child {
  144. float: left;
  145. width: 2px;
  146. height: 402px;
  147. background-color: #044b79;
  148. margin: 0 5px;
  149. position: absolute;
  150. left: 9px;
  151. }
  152. .infoLeft {
  153. height: 480px;
  154. padding: 0 10px;
  155. }
  156. .leftListDown {
  157. position: relative;
  158. }
  159. .leftListDown span:first-child {
  160. display: inline-block;
  161. width: 80%;
  162. height: 3px;
  163. background: rgba(4, 75, 121, 0.37);
  164. margin: 0 10px 0 0;
  165. position: absolute;
  166. left: -10px;
  167. top: 10px;
  168. }
  169. .leftListDown span:last-child {
  170. font-size: 16px;
  171. float: right;
  172. padding: 0 15px 0 0;
  173. color: #044b79;
  174. font-weight: 700;
  175. cursor: pointer;
  176. }
  177. .right {
  178. float: right;
  179. height: 500px;
  180. overflow: hidden;
  181. margin: 30px 0 30px 0;
  182. }
  183. .rightListTop {
  184. position: relative;
  185. }
  186. .rightListTop span:first-child {
  187. font-size: 16px;
  188. float: left;
  189. padding: 0 0 0 15px;
  190. color: #044b79;
  191. font-weight: 700;
  192. cursor: pointer;
  193. }
  194. .rightListTop span:last-child {
  195. display: inline-block;
  196. width: 80%;
  197. height: 3px;
  198. background: rgba(4, 75, 121, 0.37);
  199. margin: 0 10px 0 0;
  200. position: absolute;
  201. right: -10px;
  202. top: 10px;
  203. }
  204. .infoRight {
  205. height: 480px;
  206. padding: 0 10px;
  207. }
  208. .rightTitle {
  209. text-align: center;
  210. }
  211. .rightTitle p:first-child {
  212. width: 2px;
  213. height: 370px;
  214. background: #044b79;
  215. position: relative;
  216. left: 10px;
  217. top: -20px;
  218. }
  219. .rightTitle p:last-child {
  220. font-size: 18px;
  221. font-weight: bold;
  222. color: #044b79;
  223. }
  224. /deep/.el-table td {
  225. text-align: center;
  226. padding: 0;
  227. height: 40px;
  228. }
  229. /deep/.el-table th {
  230. text-align: center;
  231. padding: 0;
  232. height: 40px;
  233. }
  234. /deep/ .el-table {
  235. // min-height: 500px;
  236. margin: 0 10px 10px 10px;
  237. top: 10px;
  238. }
  239. </style>