Commit 9a921db3 by 莫晓莉

55

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