Commit 9a921db3 by 莫晓莉

55

parent 5071f593
......@@ -160,7 +160,7 @@
<!-- 法院业务右边轮播轮播图 -->
<el-col :span="11">
<el-carousel style="border-radius:8px;" height="280px" :interval="4000">
<el-carousel-item style="border-radius:8px;" v-for="(item,index) in tableData.slice(0,3)" :key="item.id">
<el-carousel-item style="border-radius:8px;" v-for="(item,index) in tableDataAll.slice(0,3)" :key="item.id">
<div v-if="item.attInfoList && index<3" class="carousel-div" style="border-radius:8px;" @click="setParams(item)">
<el-image v-if="item.attInfoList[0] && item.attInfoList[0].downloadPath" :src="item.attInfoList[0].downloadPath" fit="contain" style="width:100%;height:100%;"></el-image>
<div class="carousel-intro" style="">
......@@ -484,6 +484,7 @@ export default {
date:'09-23'
},
],
tableDataAll:[],//法院业务轮播图
tableData: [
// {
// date: '2016-05-02 12:00:00',
......@@ -714,6 +715,7 @@ export default {
getBoardAndSubAllNews({boardId:130,page:1,size:10}).then(res=>{
if(res.success){
this.tableData=res.data.records;
this.tableDataAll=res.data.records;
}
})
......
......@@ -305,7 +305,7 @@ export default {
},
{
name: "work",
path: "/list",
path: "",
boardId: 135,
meta: { title: "干警作品" },
},
......@@ -313,18 +313,18 @@ export default {
name: "fun",
path: "",
meta: { title: "娱乐" },
children: [
{
name: "fun1",
path: "",
meta: { title: "休闲娱乐" },
},
{
name: "fun2",
path: "",
meta: { title: "论坛交流" },
},
],
// children: [
// {
// name: "fun1",
// path: "",
// meta: { title: "休闲娱乐" },
// },
// {
// name: "fun2",
// path: "",
// meta: { title: "论坛交流" },
// },
// ],
},
{
name: "allCourt",
......@@ -352,11 +352,15 @@ export default {
this.getSubLevelBoard(2, 130); //法院业务
},
methods: {
//1、点击一级导航
menuRouterClick(item, index) {
console.log("menuRouterClick-index==", index);
console.log("menuRouterClick-item==", item);
this.classA = index;
console.log('this.routesList==',this.routesList);
// this.classA = index;
console.log("this.classA==", this.classA);
this.classA = index;
item=this.routesList[this.classA];
// return;
if (item.name == "manage") {
// var url=process.env.VUE_APP_LOGIN_API+'/manage'
......@@ -364,11 +368,12 @@ export default {
// window.open("/#/manage");
var userInfo=sessionStorage.getItem('userInfo');
console.log('user==',userInfo);
if(!userInfo){
this.$message({
message:'请先登录!',
type:'error'
type:'error',
});
return;
......@@ -384,7 +389,8 @@ export default {
}else if(item.name == "fun"){
this.$message({
message:'维护中...',
type:'error'
type:'error',
duration:1000
});
return;
}else{
......@@ -397,25 +403,29 @@ export default {
},
});
}
},
// 点击子栏目--跳转到列表
// 2、点击二级子栏目--跳转到列表
menuselected(item, subItem) {
// alert('item');
console.log("点击子菜单1==", item);
console.log("点击子菜单2==", subItem);
// this.routesList.forEach()
console.log('this.routesList==',this.routesList);
for (var i = 0; i < this.routesList.length; i++) {
if (this.routesList[i].name == item.name) {
this.classA = i;
}
}
if(item.name="fun"){
this.$message({
message:'维护中...',
type:'error'
});
return;
}
// if(item.name="fun"){
// this.$message({
// message:'开发中...',
// type:'error'
// });
// return;
// }
this.$router.push({
path: "/list", //跳转路由
query: {
......@@ -426,6 +436,7 @@ export default {
});
},
// treeNavSwitch(){},
//获取全区法院
......
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