zcfg.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <div id="zcfg">
  3. <el-row>
  4. <el-col :span="24" class="style">
  5. <el-col :span="24" class="top">
  6. <el-col :span="20" class="left">
  7. <span></span>
  8. <span>政策法规</span>
  9. </el-col>
  10. <el-col :span="4" class="right">
  11. <i class="el-icon-more"></i>
  12. </el-col>
  13. </el-col>
  14. <el-col :span="24" class="info">
  15. <el-col :span="24" class="tztgList" v-for="(item, index) in zcfgList" :key="index">
  16. <el-col :span="20" class="title">
  17. <span></span>
  18. {{ item.title }}
  19. </el-col>
  20. <el-col :span="4" class="date textOver">
  21. {{ item.date }}
  22. </el-col>
  23. </el-col>
  24. </el-col>
  25. </el-col>
  26. </el-row>
  27. </div>
  28. </template>
  29. <script>
  30. import { mapState, createNamespacedHelpers } from 'vuex';
  31. export default {
  32. metaInfo() {
  33. return { title: this.$route.meta.title };
  34. },
  35. name: 'zcfg',
  36. props: { zcfgList: { type: Array } },
  37. components: {},
  38. data: function() {
  39. return {};
  40. },
  41. created() {},
  42. methods: {},
  43. computed: {
  44. ...mapState(['user']),
  45. },
  46. watch: {},
  47. };
  48. </script>
  49. <style lang="less" scoped>
  50. .style {
  51. padding: 0 20px;
  52. .top {
  53. height: 50px;
  54. line-height: 50px;
  55. border-bottom: 1px solid #ccc;
  56. margin: 0 0 15px 0;
  57. .left {
  58. span:nth-child(1) {
  59. display: inline-block;
  60. width: 4px;
  61. height: 20px;
  62. background: #005293;
  63. margin: 0px 10px 0 0;
  64. position: relative;
  65. top: 3px;
  66. }
  67. span:nth-child(2) {
  68. font-size: 20px;
  69. color: #005293;
  70. }
  71. }
  72. .right {
  73. text-align: right;
  74. }
  75. }
  76. .info {
  77. height: 255px;
  78. overflow: hidden;
  79. .tztgList {
  80. padding: 0 0 10px 0;
  81. .title {
  82. color: #555;
  83. overflow: hidden;
  84. text-overflow: ellipsis;
  85. -webkit-line-clamp: 2;
  86. word-break: break-all;
  87. display: -webkit-box;
  88. -webkit-box-orient: vertical;
  89. height: 42px;
  90. span {
  91. display: inline-block;
  92. width: 4px;
  93. height: 4px;
  94. background: #666;
  95. border-radius: 90px;
  96. position: relative;
  97. top: -4px;
  98. }
  99. }
  100. .date {
  101. color: #555;
  102. text-align: right;
  103. }
  104. }
  105. .kjfwList {
  106. width: 170px;
  107. height: 53px;
  108. margin: 0 6px 15px 0;
  109. .el-image {
  110. width: 170px;
  111. height: 53px;
  112. }
  113. }
  114. }
  115. }
  116. </style>