rightqita.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <template>
  2. <div id="rightcont">
  3. <el-col class="zhengce">
  4. <el-col :span="24" class="topTitle">
  5. {{ columnName }}
  6. </el-col>
  7. <el-col :span="24" class="info">
  8. <el-table :data="canmoData" stripe style="width: 100%">
  9. <el-table-column label="名称" align="center">
  10. <template slot-scope="scoped">
  11. <el-tooltip effect="dark" content="点击显示详情" placement="left">
  12. <el-col :span="24" @click.native="clickDetailcm(scoped.row)">{{ scoped.row.name }}</el-col>
  13. </el-tooltip>
  14. </template>
  15. </el-table-column>
  16. <el-table-column prop="infotype" label="信息类型" align="center"> </el-table-column>
  17. <el-table-column prop="user_name" label="发布人" align="center"> </el-table-column>
  18. </el-table>
  19. <el-col class="page" :span="24">
  20. <el-pagination
  21. @size-change="handleSizeChange"
  22. @current-change="handleCurrentChange"
  23. :current-page="currentPage"
  24. layout="total, prev, pager, next, jumper"
  25. :total="total"
  26. >
  27. </el-pagination>
  28. </el-col>
  29. </el-col>
  30. </el-col>
  31. </div>
  32. </template>
  33. <script>
  34. export default {
  35. name: 'rightcont',
  36. props: {
  37. canmoData: null,
  38. columnName: null,
  39. contentList: null,
  40. total: null,
  41. },
  42. components: {},
  43. data: () => ({
  44. currentPage: 1,
  45. }),
  46. created() {},
  47. computed: {},
  48. methods: {
  49. handleSizeChange(val) {
  50. console.log(`每页 ${val} 条`);
  51. },
  52. handleCurrentChange(val) {
  53. console.log(`当前页: ${val}`);
  54. },
  55. clickDetailcm(row) {
  56. this.$emit('detail', { data: row });
  57. },
  58. },
  59. };
  60. </script>
  61. <style lang="less" scoped>
  62. .zhengce {
  63. height: 660px;
  64. padding: 20px;
  65. overflow: hidden;
  66. }
  67. .topTitle {
  68. font-size: 22px;
  69. color: #22529a;
  70. margin: 0 0 20px 0;
  71. }
  72. .info {
  73. height: 570px;
  74. overflow: hidden;
  75. }
  76. .info ul {
  77. height: 510px;
  78. overflow: hidden;
  79. padding: 0 0 0 20px;
  80. }
  81. .info ul li {
  82. float: left;
  83. width: 100%;
  84. padding: 0 0 13px 0;
  85. }
  86. .info ul li .title {
  87. font-size: 16px;
  88. color: #60636d;
  89. }
  90. .info ul li .date {
  91. font-size: 16px;
  92. color: #a8abb7;
  93. text-align: right;
  94. }
  95. .info ul li:hover {
  96. cursor: pointer;
  97. }
  98. .info ul li:hover .title {
  99. color: #22529a;
  100. }
  101. .info ul li:hover .date {
  102. color: #22529a;
  103. }
  104. .page {
  105. padding: 11px 0;
  106. text-align: center;
  107. }
  108. /deep/.el-table td {
  109. padding: 8px 0;
  110. }
  111. /deep/.el-table th {
  112. padding: 8px 0;
  113. background-color: #f5f4f4;
  114. }
  115. /deep/ .el-table th.is-leaf {
  116. border-bottom: none;
  117. color: #000;
  118. }
  119. /deep/.el-table td {
  120. border-bottom: none;
  121. }
  122. </style>