Commit bc288023 by 李耀锟

11

parent c3e9eaa1
......@@ -8,12 +8,12 @@
<el-row :gutter="20" class="mt-15 first-zone-style">
<el-col :span="10" style="padding-left:0;padding-right:0;">
<div >
<el-carousel style="border-radius:8px;" height="250px" indicator-position="outside" :interval="4000">
<el-carousel-item style="border-radius:8px;" v-for="item in imagesBox" :key="item.id">
<div class="carousel-div" style="border-radius:8px;">
<el-image :src="item.idView" style="width:100%;height:100%;"></el-image>
<el-carousel style="border-radius:8px;" height="500px" indicator-position="outside" :interval="4000">
<el-carousel-item style="border-radius:8px;" v-for="(item,index) in headlineRotation" :key="index">
<div class="carousel-div" style="border-radius:8px;" @click="setParams(item)">
<el-image :src="item.attInfoList[0].downloadPath" style="width:100%;height:100%;"></el-image>
<div class="carousel-intro" style="">
南宁中院:市首个族老矛盾调处中心成立
<span>&ensp;{{item.subject}}&ensp;</span>
</div>
</div>
</el-carousel-item>
......@@ -65,6 +65,7 @@
<el-col :span="16" style="">
<div v-for="(item,index) in topList" :key="index" class="k-flex k-space-between work-top-list" @click="setParams(item)">
<div class="article-name" style="">
<span class="right-line">{{item.boardName}}</span>
<span >{{item.subject}}</span>
</div>
<div>{{item.newsTime.substring(5,10)}}</div>
......@@ -454,12 +455,12 @@
</el-row>
</el-col>
<el-col :span="11">
<el-carousel style="border-radius:8px;" height="250px" indicator-position="outside" :interval="4000">
<el-carousel-item style="border-radius:8px;" v-for="item in imagesBox" :key="item.id">
<div class="carousel-div" style="border-radius:8px;" >
<el-image :src="item.idView" style="width:100%;height:100%;"></el-image>
<el-carousel style="border-radius:8px;" height="280px" indicator-position="outside" :interval="4000">
<el-carousel-item style="border-radius:8px;" v-for="item in tableData" :key="item.id">
<div class="carousel-div" style="border-radius:8px;" @click="setParams(item)">
<el-image :src="item.attInfoList[0].downloadPath" style="width:100%;height:100%;"></el-image>
<div class="carousel-intro" style="">
南宁中院:市首个族老矛盾调处中心成立
<span>&ensp;{{item.subject}}&ensp;</span>
</div>
</div>
</el-carousel-item>
......@@ -486,12 +487,12 @@
<!--<el-col :span="8"></el-col>
<el-col :span="8"></el-col>
<el-col :span="8"></el-col>-->
<el-col style="border-radius:5px;" :span="8" v-for="item in imagesBox" :key="item.id">
<div class="imgs-div" style="width:100%;border-radius:8px;" >
<el-image :src="item.idView" style="width:100%;display:block;border-radius:5px;">
<el-col style="border-radius:5px;" :span="8" v-for="item in policeOfficer" :key="item.id" >
<div class="imgs-div" style="width:100%;border-radius:8px;" @click="setParams(item)">
<el-image :src="item.attInfoList[0].downloadPath" style="width:100%;display:block;border-radius:5px;">
</el-image>
<div class="imgs-intro" style="width:100%;border-radius:0 0 5px 5px;">
<span>&ensp;南宁中院:市首个族老矛盾调处中心成立&ensp;</span>
<span>&ensp;{{item.subject}}&ensp;</span>
</div>
</div>
</el-col>
......@@ -911,10 +912,10 @@ export default {
{id:2,idView:require("../../assets/2.png")},
{id:3,idView:require("../../assets/3.png")},
],
policeOfficer:[],
fiveNews: [],
topList:[
],
topList:[],
headlineRotation:[],
topList2:[
{
name:'开展司法教助全集中发放活动尽量克服冠军费德勒冠军费德勒空军航空发货过来会考虑好看',
......@@ -1159,7 +1160,7 @@ export default {
}
},
created(){
this.getBoardTreeFun()
this.getSubLevelBoardF()
this.topListFun()
this.initializationList()
},
......@@ -1174,13 +1175,17 @@ export default {
},
initializationList(){
newsFromBoard({boardId:'129',page:1,size:5}).then(res=>{
this.tableData = res.data.top.records
newsFromBoard({boardId:'1930',page:1,size:5}).then(res=>{
this.tableData = res.data.newsList.records
})
newsFromBoard({boardId:'135',page:1,size:5}).then(res=>{
this.policeOfficer = res.data.newsList.records
})
},
newsFromBoard(val){
newsFromBoard({boardId:val.boardId,page:1,size:5}).then(res=>{
this.topList = res.data.records
this.topList = res.data.newsList.records
})
},
informationSelection(val){
......@@ -1190,10 +1195,13 @@ export default {
topListFun(){
topList({fyId:32,page:1,size:5}).then(res=>{
this.topList = res.data.records
this.headlineRotation = res.data.records
})
},
getBoardTreeFun(){
getBoardTree({deptId:32}).then(res=>{
getSubLevelBoardF(){
getSubLevelBoard({boardId:130}).then(res=>{
console.log(res);
this.dataTreeFile = res.data
})
......@@ -1229,8 +1237,8 @@ export default {
searchEvent(){},
handleNodeClick(data,node,obj){
console.log(data,node,obj);
newsFromBoard({boardId:data.boardId}).then(res=>{
this.tableData = res.data.top.records
newsFromBoard({boardId:data.boardId,page:1,size:5}).then(res=>{
this.tableData = res.data.newsList.records
})
},
......
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