|
@@ -0,0 +1,116 @@
|
|
|
|
+<template>
|
|
|
|
+ <div id="newsRights">
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="24" class="main">
|
|
|
|
+ <el-col :span="24" class="top">
|
|
|
|
+ <el-breadcrumb separator-class="el-icon-arrow-right">
|
|
|
|
+ <el-breadcrumb-item :to="{ path: '/' }"><i class="el-icon-s-home"></i>网站首页</el-breadcrumb-item>
|
|
|
|
+ <el-breadcrumb-item>导航一</el-breadcrumb-item>
|
|
|
|
+ <el-breadcrumb-item>数据列表</el-breadcrumb-item>
|
|
|
|
+ </el-breadcrumb>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24" class="search">
|
|
|
|
+ <div>
|
|
|
|
+ <el-input placeholder="请输入内容" v-model="input3" class="input-with-select">
|
|
|
|
+ <el-button slot="append" icon="el-icon-search"></el-button>
|
|
|
|
+ </el-input>
|
|
|
|
+ </div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24" class="list" v-if="!newsRightList.type">
|
|
|
|
+ <el-col :span="24" class="mainRightList" v-for="(item,index) in newsRightList" :key="index" :type="item.type">
|
|
|
|
+ <el-col :span="24" class="children">
|
|
|
|
+ <el-col :span="20" class="title" @click.native="$router.push({name:'detail',params:{id:item.id}})">
|
|
|
|
+ <p class="textOver">{{item.title}}</p>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="4" class="time">
|
|
|
|
+ {{item.publish_time}}
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+export default {
|
|
|
|
+ name: 'newsRights',
|
|
|
|
+ props: {
|
|
|
|
+ newsRightList: null,
|
|
|
|
+ },
|
|
|
|
+ components: {},
|
|
|
|
+ data: () => ({
|
|
|
|
+ activeName: '0',
|
|
|
|
+ currentPage: 1,
|
|
|
|
+ input3: '',
|
|
|
|
+ }),
|
|
|
|
+ created() { },
|
|
|
|
+ computed: {},
|
|
|
|
+ methods: {
|
|
|
|
+ handleSizeChange(val) {
|
|
|
|
+ // eslint-disable-next-line no-console
|
|
|
|
+ console.log(`每页 ${val} 条`);
|
|
|
|
+ },
|
|
|
|
+ handleCurrentChange(val) {
|
|
|
|
+ // eslint-disable-next-line no-console
|
|
|
|
+ console.log(`当前页: ${val}`);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+<style lang="less" scoped>
|
|
|
|
+p {
|
|
|
|
+ margin: 0;
|
|
|
|
+ padding: 0;
|
|
|
|
+}
|
|
|
|
+.textOver {
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+}
|
|
|
|
+.main {
|
|
|
|
+ width: 880px;
|
|
|
|
+ min-height: 500px;
|
|
|
|
+ margin: 0 0 0 20px;
|
|
|
|
+ background-color: rgba(255, 255, 255, 0.8);
|
|
|
|
+}
|
|
|
|
+.top {
|
|
|
|
+ margin: 10px 0 0 20px;
|
|
|
|
+}
|
|
|
|
+.search {
|
|
|
|
+ margin: 20px 0;
|
|
|
|
+ padding: 0 20px;
|
|
|
|
+}
|
|
|
|
+/deep/.el-input-group {
|
|
|
|
+ width: 40%;
|
|
|
|
+}
|
|
|
|
+/deep/.el-input__inner {
|
|
|
|
+ border: 1px solid #336699;
|
|
|
|
+}
|
|
|
|
+/deep/.el-input-group__append {
|
|
|
|
+ border: 1px solid #336699;
|
|
|
|
+ background-color: #336699;
|
|
|
|
+ color: #fff;
|
|
|
|
+}
|
|
|
|
+.list {
|
|
|
|
+ padding: 0 20px;
|
|
|
|
+}
|
|
|
|
+.children {
|
|
|
|
+ padding: 8px 10px;
|
|
|
|
+ border-bottom: 1px dashed #000;
|
|
|
|
+}
|
|
|
|
+.children:hover .title {
|
|
|
|
+ color: #336699;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+}
|
|
|
|
+.children .title {
|
|
|
|
+ font-size: 18px;
|
|
|
|
+}
|
|
|
|
+.children .time {
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ color: red;
|
|
|
|
+}
|
|
|
|
+</style>
|