123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <template>
- <div id="zcfg">
- <el-row>
- <el-col :span="24" class="style">
- <el-col :span="24" class="top">
- <el-col :span="20" class="left">
- <span></span>
- <span>政策法规</span>
- </el-col>
- <el-col :span="4" class="right">
- <i class="el-icon-more"></i>
- </el-col>
- </el-col>
- <el-col :span="24" class="info">
- <el-col :span="24" class="tztgList" v-for="(item, index) in zcfgList" :key="index">
- <el-col :span="20" class="title">
- <span></span>
- {{ item.title }}
- </el-col>
- <el-col :span="4" class="date textOver">
- {{ item.date }}
- </el-col>
- </el-col>
- </el-col>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- import { mapState, createNamespacedHelpers } from 'vuex';
- export default {
- metaInfo() {
- return { title: this.$route.meta.title };
- },
- name: 'zcfg',
- props: { zcfgList: { type: Array } },
- components: {},
- data: function() {
- return {};
- },
- created() {},
- methods: {},
- computed: {
- ...mapState(['user']),
- },
- watch: {},
- };
- </script>
- <style lang="less" scoped>
- .style {
- padding: 0 20px;
- .top {
- height: 50px;
- line-height: 50px;
- border-bottom: 1px solid #ccc;
- margin: 0 0 15px 0;
- .left {
- span:nth-child(1) {
- display: inline-block;
- width: 4px;
- height: 20px;
- background: #005293;
- margin: 0px 10px 0 0;
- position: relative;
- top: 3px;
- }
- span:nth-child(2) {
- font-size: 20px;
- color: #005293;
- }
- }
- .right {
- text-align: right;
- }
- }
- .info {
- height: 255px;
- overflow: hidden;
- .tztgList {
- padding: 0 0 10px 0;
- .title {
- color: #555;
- overflow: hidden;
- text-overflow: ellipsis;
- -webkit-line-clamp: 2;
- word-break: break-all;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- height: 42px;
- span {
- display: inline-block;
- width: 4px;
- height: 4px;
- background: #666;
- border-radius: 90px;
- position: relative;
- top: -4px;
- }
- }
- .date {
- color: #555;
- text-align: right;
- }
- }
- .kjfwList {
- width: 170px;
- height: 53px;
- margin: 0 6px 15px 0;
- .el-image {
- width: 170px;
- height: 53px;
- }
- }
- }
- }
- </style>
|