Commit 02643229 by 莫晓莉

跳转模块

parent 02425e7a
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
<el-button @click.native="switchBtn(0)" :class="['btn-item',{'sanjiao':activeItem==0}]">今日头条</el-button> <el-button @click.native="switchBtn(0)" :class="['btn-item',{'sanjiao':activeItem==0}]">今日头条</el-button>
<el-button @click.native="switchBtn(1)" :class="['btn-item',{'sanjiao':activeItem==1}]">工作信息</el-button> <el-button @click.native="switchBtn(1)" :class="['btn-item',{'sanjiao':activeItem==1}]">工作信息</el-button>
</div> </div>
<div style="font-size:12px;color: #999999;"> <!-- 工作信息的boardId=1929 -->
<div @click="toMorelist(1929)" style="font-size:12px;color: #999999;">
<span>MORE></span> <span>MORE></span>
</div> </div>
</div> </div>
...@@ -345,7 +346,7 @@ ...@@ -345,7 +346,7 @@
<img class="mr-5 gong-icon" style="" src="../../assets/home/third.png"/> <img class="mr-5 gong-icon" style="" src="../../assets/home/third.png"/>
<div>法院业务</div> <div>法院业务</div>
</div> </div>
<div style="font-size:12px;color: #999999;"> <div @click="toMorelist(130)" style="font-size:12px;color: #999999;">
<span>MORE></span> <span>MORE></span>
</div> </div>
</div> </div>
...@@ -479,7 +480,7 @@ ...@@ -479,7 +480,7 @@
<img class="mr-5 gong-icon" style="" src="../../assets/home/fourth.png"/> <img class="mr-5 gong-icon" style="" src="../../assets/home/fourth.png"/>
<div>干警作品</div> <div>干警作品</div>
</div> </div>
<div style="font-size:12px;color: #999999;"> <div @click="toMorelist(135)" style="font-size:12px;color: #999999;">
<span>MORE></span> <span>MORE></span>
</div> </div>
</div> </div>
...@@ -1137,7 +1138,7 @@ export default { ...@@ -1137,7 +1138,7 @@ export default {
], ],
WorkButton:[{ WorkButton:[{
boardName:'全部', boardName:'全部',
boardId:'', boardId:'1929',
}], }],
videoLiet:[], videoLiet:[],
whole:[], whole:[],
...@@ -1222,7 +1223,7 @@ export default { ...@@ -1222,7 +1223,7 @@ export default {
}else{ }else{
getSubLevelBoard({boardId:1929,}).then(res=>{ getSubLevelBoard({boardId:1929,}).then(res=>{
this.WorkButton = [{ boardName:'全部'}] this.WorkButton = [{ boardName:'全部',boardId:1929}]
res.data.forEach(item => { res.data.forEach(item => {
this.WorkButton.push(item) this.WorkButton.push(item)
}); });
...@@ -1242,6 +1243,16 @@ export default { ...@@ -1242,6 +1243,16 @@ export default {
this.tableData = res.data.newsList.records this.tableData = res.data.newsList.records
}) })
}, },
// 跳转到更所模块
toMorelist(boardId){
this.$router.push({
path: "/list", //跳转路由
query: {
//参数对象
boardId: boardId,
},
});
}
}, },
} }
......
...@@ -347,74 +347,6 @@ export default { ...@@ -347,74 +347,6 @@ export default {
meta: { title: "信息发布系统" }, meta: { title: "信息发布系统" },
}, },
], ],
// configNav: [
// {
// name: "首页",
// path: "/homePage",
// },
// {
// name: "法院新闻",
// path: "/news",
// subItems: [
// { link: "/education", text: "教学管理系统" },
// { link: "/yingxiaozhaosheng", text: "营销招生系统" },
// { link: "", text: "视频直播系统" },
// { link: "", text: "个性化定制服务" },
// ],
// },
// {
// name: "工作信息",
// path: "/show",
// },
// {
// name: "法院业务",
// path: "/aboutour",
// },
// {
// name: "干警作品",
// path: "/aboutour",
// },
// {
// name: "娱乐",
// path: "/aboutour",
// },
// {
// name: "全区法院",
// path: "/aboutour",
// },
// {
// name: "信息发布系统",
// path: "/aboutour",
// },
// ],
// list: [
// {
// id: "1",
// menuName: "项目管理",
// childTree: [
// {
// menuName: "项目进度",
// childTree: [
// {
// menuName: "项目一",
// childTree: [{ menuName: "详细信息" }],
// },
// ],
// },
// {
// menuName: "任务安排",
// },
// ],
// },
// {
// id: "2",
// menuName: "数据统计",
// },
// {
// id: "3",
// menuName: "人员管理",
// },
// ],
}; };
}, },
computed: { computed: {
...@@ -464,10 +396,18 @@ export default { ...@@ -464,10 +396,18 @@ export default {
path: item.path, //跳转路由 path: item.path, //跳转路由
}); });
} }
}else{ }else if(item.name == "homePage" || item.name == "news"){
this.$router.push({ this.$router.push({
path: item.path, //跳转路由 path: item.path, //跳转路由
}); });
}else{
this.$router.push({
path: "/list", //跳转路由
query: {
//参数对象
boardId: item.boardId,
},
});
} }
}, },
// 点击子栏目--跳转到列表 // 点击子栏目--跳转到列表
......
...@@ -17,21 +17,23 @@ ...@@ -17,21 +17,23 @@
<el-row class="mt-20" :gutter="20"> <el-row class="mt-20" :gutter="20">
<!--左边栏目开始--> <!--左边栏目开始-->
<el-col :span="5"> <el-col :span="5">
<div class="list-container" style=""> <div class="list-container" >
<div class="list-title mb-10" style="">按分类查看</div> <div class="list-title mb-10" style="">按分类查看</div>
<!--<ul class="type-list"> <!--<ul class="type-list">
<li><a href="#">最高法通报</a></li> <li><a href="#">最高法通报</a></li>
<li><a href="#">最高人民法院简报</a></li> <li><a href="#">最高人民法院简报</a></li>
</ul>--> </ul>-->
<!-- <el-tree :data="dataTreeFile" :props="defaultProps"></el-tree> --> <!-- <el-tree :data="dataTreeFile" :props="defaultProps"></el-tree> -->
<div style="height: 65vh;over-flow:hidden;overflow:auto;">
<el-tree :data="dataTreeFile" :props="defaultProps" @node-click="handleNodeClick"></el-tree> <el-tree :data="dataTreeFile" :props="defaultProps" @node-click="handleNodeClick"></el-tree>
</div> </div>
</div>
</el-col> </el-col>
<!--左边栏目结束--> <!--左边栏目结束-->
<el-col :span="19"> <el-col :span="19">
<div class="zone-style"> <div class="zone-style">
<div style="min-height: 76vh"> <div style="height: 66vh;over-flow:hidden;overflow:auto;">
<div style=""> <div style="">
<span>当前位置:</span> <span>当前位置:</span>
<!-- <el-breadcrumb style="display:inline-block;" separator-class="el-icon-arrow-right"> <!-- <el-breadcrumb style="display:inline-block;" separator-class="el-icon-arrow-right">
......
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