123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <template>
- <div id="rightcont">
- <el-col class="zhengce">
- <el-col :span="24" class="topTitle">
- {{ columnName }}
- </el-col>
- <el-col :span="24" class="info">
- <el-table :data="canmoData" stripe style="width: 100%">
- <el-table-column label="名称" align="center">
- <template slot-scope="scoped">
- <el-tooltip effect="dark" content="点击显示详情" placement="left">
- <el-col :span="24" @click.native="clickDetailcm(scoped.row)">{{ scoped.row.name }}</el-col>
- </el-tooltip>
- </template>
- </el-table-column>
- <el-table-column prop="infotype" label="信息类型" align="center"> </el-table-column>
- <el-table-column prop="user_name" label="发布人" align="center"> </el-table-column>
- </el-table>
- <el-col class="page" :span="24">
- <el-pagination
- @size-change="handleSizeChange"
- @current-change="handleCurrentChange"
- :current-page="currentPage"
- layout="total, prev, pager, next, jumper"
- :total="total"
- >
- </el-pagination>
- </el-col>
- </el-col>
- </el-col>
- </div>
- </template>
- <script>
- export default {
- name: 'rightcont',
- props: {
- canmoData: null,
- columnName: null,
- contentList: null,
- total: null,
- },
- components: {},
- data: () => ({
- currentPage: 1,
- }),
- created() {},
- computed: {},
- methods: {
- handleSizeChange(val) {
- console.log(`每页 ${val} 条`);
- },
- handleCurrentChange(val) {
- console.log(`当前页: ${val}`);
- },
- clickDetailcm(row) {
- this.$emit('detail', { data: row });
- },
- },
- };
- </script>
- <style lang="less" scoped>
- .zhengce {
- height: 660px;
- padding: 20px;
- overflow: hidden;
- }
- .topTitle {
- font-size: 22px;
- color: #22529a;
- margin: 0 0 20px 0;
- }
- .info {
- height: 570px;
- overflow: hidden;
- }
- .info ul {
- height: 510px;
- overflow: hidden;
- padding: 0 0 0 20px;
- }
- .info ul li {
- float: left;
- width: 100%;
- padding: 0 0 13px 0;
- }
- .info ul li .title {
- font-size: 16px;
- color: #60636d;
- }
- .info ul li .date {
- font-size: 16px;
- color: #a8abb7;
- text-align: right;
- }
- .info ul li:hover {
- cursor: pointer;
- }
- .info ul li:hover .title {
- color: #22529a;
- }
- .info ul li:hover .date {
- color: #22529a;
- }
- .page {
- padding: 11px 0;
- text-align: center;
- }
- /deep/.el-table td {
- padding: 8px 0;
- }
- /deep/.el-table th {
- padding: 8px 0;
- background-color: #f5f4f4;
- }
- /deep/ .el-table th.is-leaf {
- border-bottom: none;
- color: #000;
- }
- /deep/.el-table td {
- border-bottom: none;
- }
- </style>
|