jiaoyi.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <div id="jiaoyi">
  3. <el-row>
  4. <el-col :span="24" class="info">
  5. <el-col :span="24" class="topInfo">
  6. <el-col :span="23" class="left">{{ title }}</el-col>
  7. <el-col :span="1" class="more">
  8. <el-link :underline="false"><el-image :src="more"></el-image></el-link>
  9. </el-col>
  10. </el-col>
  11. <el-col :span="24" class="list">
  12. <el-table :data="tableData" style="width: 100%">
  13. <el-table-column prop="market" label="营销单位" align="center"> </el-table-column>
  14. <el-table-column prop="make" label="采购单位" align="center"> </el-table-column>
  15. <el-table-column prop="product" label="产品交易" align="center"> </el-table-column>
  16. <el-table-column prop="deal" label="交易状态" align="center"> </el-table-column>
  17. </el-table>
  18. </el-col>
  19. </el-col>
  20. </el-row>
  21. </div>
  22. </template>
  23. <script>
  24. export default {
  25. name: 'jiaoyi',
  26. props: {
  27. tableData: null,
  28. },
  29. components: {},
  30. data: () => ({
  31. title: '交易展示',
  32. more: require('@/assets/更多.png'),
  33. }),
  34. created() {},
  35. computed: {},
  36. methods: {},
  37. };
  38. </script>
  39. <style lang="less" scoped>
  40. .info {
  41. padding: 20px;
  42. }
  43. .topInfo {
  44. height: 30px;
  45. line-height: 30px;
  46. margin: 0 0 10px 0;
  47. }
  48. .topInfo .left {
  49. font-size: 22px;
  50. color: #22529a;
  51. font-weight: bold;
  52. }
  53. .topInfo .more {
  54. height: 30px;
  55. text-align: right;
  56. padding: 10px 0;
  57. }
  58. /deep/.el-table td {
  59. padding: 2px 0;
  60. }
  61. /deep/.el-table th {
  62. padding: 2px 0;
  63. background-color: #f3f3f3;
  64. }
  65. /deep/.el-table__row:nth-child(2n) {
  66. background-color: #f3f3f3;
  67. }
  68. /deep/.el-table .cell {
  69. text-overflow: ellipsis;
  70. overflow: hidden;
  71. white-space: nowrap;
  72. }
  73. </style>