Commit 67d66c42 by 莫晓莉

66

parent 53f5ea8f
...@@ -44,11 +44,11 @@ ...@@ -44,11 +44,11 @@
</div> </div>
</div> </div>
<div v-for="(item,index) in topList" :key="index" class="k-flex k-space-between top-list" @click="setParams(item)"> <div v-for="(item,index) in topList" :key="index" class="k-flex k-space-between top-list" @click="setParams(item)">
<div class="article-name"> <div class="article-name k-flex k-align-center">
<span class="right-line">{{item.boardName}}</span> <span class="right-line">{{item.boardName}}</span>
<span >{{item.subject}}</span> <div class="k-all" style="overflow:hidden;text-overflow:ellipsis;">{{item.subject}}</div>
</div> </div>
<div v-if="item.newsTime">{{item.newsTime.substring(5,10)}}</div> <div v-if="item.newsTime" style="white-space:nowrap;">{{item.newsTime.substring(5,10)}}</div>
</div> </div>
</div> </div>
<!--今日头条结束--> <!--今日头条结束-->
...@@ -1079,7 +1079,7 @@ color:#fff; ...@@ -1079,7 +1079,7 @@ color:#fff;
} }
.right-line{ .right-line{
display:inline-block; display:inline-block;
width:20%; // width:20%;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
padding-right:2px; padding-right:2px;
......
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
<el-col :span="19"> <el-col :span="19">
<div class="zone-style"> <div class="zone-style">
<div style="min-height:76vh;"> <div style="min-height:76vh;">
<div class="mb-10" style="font-size:12px;font-weight:bold;">法院新闻:{{ menuName }}</div>
<!-- <el-breadcrumb-item v-for="(v,i) in breadList" :key="i">
<router-link :to="v.path" >{{ v.meta.title}}</router-link>
</el-breadcrumb-item> -->
<el-table <el-table
:header-cell-style="{'text-align':'center','font-size':'15px','color':'black'}" :header-cell-style="{'text-align':'center','font-size':'15px','color':'black'}"
:cell-style="{'font-size':'13px','border-bottom':'none'}" :cell-style="{'font-size':'13px','border-bottom':'none'}"
...@@ -98,6 +102,8 @@ export default { ...@@ -98,6 +102,8 @@ export default {
data() { data() {
return { return {
menuName:'',
breadList:[],//面包屑列表
pageInfo:{ pageInfo:{
page:1, page:1,
size:10, size:10,
...@@ -109,33 +115,48 @@ export default { ...@@ -109,33 +115,48 @@ export default {
}, },
created() { created() {
// this.getLatestNewOfGXCourt(); // this.getBreadcrumb();
var type=this.$route.query.type; var type=this.$route.query.type;
if(type=='vedio'){ if(type=='vedio'){
this.getVedio(); this.getVedio();
this.menuName='音视频点播'
}else if(type=='top'){ }else if(type=='top'){
this.topListFun();//今日头条 this.topListFun();//今日头条
this.menuName='今日头条'
}else if(type=='all'){ }else if(type=='all'){
this.getLatestNewOfGXCourt();//获取全区速递 this.getLatestNewOfGXCourt();//获取全区速递
this.menuName='全区速递'
} }
}, },
//监听路由获取面包屑 //监听路由获取面包屑
watch: { watch: {
$route() { $route() {
if (this.$route.query.type) { if (this.$route.query.type) {
// this.getBreadcrumb();
var type=this.$route.query.type; var type=this.$route.query.type;
if(type=='vedio'){ if(type=='vedio'){
this.getVedio(); this.getVedio();
this.menuName='音视频点播'
}else if(type=='top'){ }else if(type=='top'){
this.topListFun();//今日头条 this.topListFun();//今日头条
this.menuName='今日头条'
}else if(type=='all'){ }else if(type=='all'){
this.getLatestNewOfGXCourt();//获取全区速递 this.getLatestNewOfGXCourt();//获取全区速递
this.menuName='全区速递 '
} }
} }
}, },
}, },
methods:{ methods:{
// 获取面包屑
// getBreadcrumb(){
// this.breadList=this.$route.matched.filter(item=>item.meta && item.meta.title);
// console.log('this.breadList==',this.breadList);
// },
//全区速递 //全区速递
getLatestNewOfGXCourt(){ getLatestNewOfGXCourt(){
// this.pageInfo.deptId=32; // this.pageInfo.deptId=32;
...@@ -199,10 +220,13 @@ export default { ...@@ -199,10 +220,13 @@ export default {
this.pageInfo.total=0; this.pageInfo.total=0;
if(type=='vedio'){ if(type=='vedio'){
this.getVedio(); this.getVedio();
this.menuName='音视频点播'
}else if(type=='top'){ }else if(type=='top'){
this.topListFun();//今日头条 this.topListFun();//今日头条
this.menuName='今日头条'
}else if(type=='all'){ }else if(type=='all'){
this.getLatestNewOfGXCourt();//获取全区速递 this.getLatestNewOfGXCourt();//获取全区速递
this.menuName='全区速递'
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment