Commit ef1d736d by 莫晓莉

法院新闻

parent 3f98ca83
......@@ -5,8 +5,8 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<!--<title>court-oa-meeting</title>-->
<title>内部信息网</title>
<title>court-oa-meeting</title>
<!-- <title></title> -->
</head>
<body>
<noscript>
......
......@@ -46,4 +46,23 @@ export function newsDetail(data) {
data,
method: 'post'
})
}
\ No newline at end of file
}
// 获取全区法院
export function getAllCourts(data) {
return request({
url: `websiteCluster/web/getAllCourts`,
method: 'GET',
data,
})
}
//获取下级栏目
// export function getSubLevelBoard(data) {
// return request({
// url: `websiteCluster/web/getSubLevelBoard`,
// method: 'POST',
// data,
// })
// }
import request from '@/utils/request'
// 获取栏目下的新闻列表
export const newsFromBoard = (data) => {
return request({
url: 'websiteCluster/web/newsFromBoard',
method: 'POST',
data
})
}
//获取下级栏目
export function getSubLevelBoard(data) {
return request({
url: `websiteCluster/web/getSubLevelBoard`,
data,
method: 'post'
})
}
\ No newline at end of file
import request from '@/utils/request'
//获取栏目树
export function getBoardTree(data) {
return request({
url: `websiteCluster/web/getBoardTree`,
data,
method: 'post'
})
}
//今日头条栏目列表
export function topList(data) {
return request({
url: `websiteCluster/web/topList`,
data,
method: 'post'
})
}
//获取下级栏目
export function getSubLevelBoard(data) {
return request({
url: `websiteCluster/web/getSubLevelBoard`,
data,
method: 'post'
})
}
//获取栏目下的新闻列表
export function newsFromBoard(data) {
return request({
url: `websiteCluster/web/newsFromBoard`,
data,
method: 'post'
})
}
// 文章详情
export function newsDetail(data) {
return request({
// url: `websiteCluster/website/newsDetail`,
url: `websiteCluster/web/newsDetail`,
data,
method: 'post'
})
}
// 获取全区法院
export function getAllCourts(data) {
return request({
url: `websiteCluster/web/getAllCourts`,
method: 'post',
data,
})
}
......@@ -13,12 +13,25 @@ import "./assets/style/kui.scss";
import scroll from 'vue-seamless-scroll'
import Router from 'vue-router'
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
Vue.config.productionTip = false;
Vue.use(ElementUI, {
size: "small", // set element-ui default size
});
// router.beforeEach((to,from,next)=>{
// if(to.meta.title){
// document.title=to.meta.title;
// }
// next();
// })
Vue.use(scroll)
......
......@@ -25,134 +25,6 @@ const constantRouterMap = [
meta: { title: '首页', icon: '' },
component: resolve => require(["@/views/homePage"], resolve),
},
// 首页
// {
// path: "/meetingHome",
// name: "meetingHome",
// component: (resolve) => require(["@/views/meetingHome"], resolve),
// hidden: true,
// },
// 会议室申请
// {
// path: "/meetingApply",
// name: "meetingApply",
// component: (resolve) => require(["@/views/meetingApply"], resolve),
// hidden: true,
// },
// 会议室审核
// {
// path: "/meetingCheck",
// name: "meetingCheck",
// component: (resolve) => require(["@/views/meetingCheck"], resolve),
// hidden: true,
// },
// 会议报名
// {
// path: "/meetingEnter",
// name: "meetingEnter",
// component: (resolve) => require(["@/views/meetingEnter"], resolve),
// hidden: true,
// },
// 我的会议申请
// {
// path: "/myMeetingApply",
// name: "myMeetingApply",
// component: (resolve) => require(["@/views/myMeetingApply"], resolve),
// hidden: true,
// // 我的会议申请-查看签到情况
// children: [
// {
// path: "checkIn",
// name: "checkIn",
// component: (resolve) =>
// require(["@/views/myMeetingApply/checkIn"], resolve),
// hidden: true,
// },
// ],
// },
// 参加会议
// {
// path: "/attendMeeting",
// name: "attendMeeting",
// component: (resolve) => require(["@/views/attendMeeting"], resolve),
// hidden: true,
// },
// 个人笔记
// {
// path: "/personalNote",
// name: "personalNote",
// component: (resolve) => require(["@/views/personalNote"], resolve),
// hidden: true,
// },
// 个人笔记编辑
// {
// path: "/editPersonalNote",
// name: "editPersonalNote",
// component: (resolve) => require(["@/views/personalNote/editPersonalNote"], resolve),
// hidden: true,
// },
// 会议总结资料
// {
// path: "/meetingResourse",
// name: "meetingResourse",
// component: (resolve) => require(["@/views/meetingResourse"], resolve),
// hidden: true,
// // children: [
// // {
// // path: "editResourse",
// // name: "editResourse",
// // component: (resolve) =>require(["@/views/meetingResourse/edit"], resolve),
// // hidden: true,
// // },
// // ],
// },
// 会议总结资料审核
// {
// path: "/meetingResourseCheck",
// name: "meetingResourseCheck",
// component: (resolve) => require(["@/views/meetingResourseCheck"], resolve),
// hidden: true,
// },
// 会议总结资料查询
// {
// path: "/meetingResourseSearch",
// name: "meetingResourseSearch",
// component: (resolve) =>
// require(["@/views/meetingResourseSearch"], resolve),
// hidden: true,
// },
// 会议总览
// {
// path: "/overview",
// name: "overview",
// component: (resolve) => require(["@/views/overview"], resolve),
// hidden: true,
// // children: [
// // // 详情
// // {
// // path: "detail",
// // name: "detail",
// // component: (resolve) => require(["@/views/detail"], resolve),
// // hidden: true,
// // },
// // ],
// },
// 详情
// {
// path: "/detail",
// name: "detail",
// component: (resolve) => require(["@/views/detail"], resolve),
// hidden: true,
// },
//编辑会议总览
// {
// path: "/editResourse",
// name: "editResourse",
// component: (resolve) =>require(["@/views/meetingResourse/edit"], resolve),
// hidden: true,
// },
{
path: "/show",
name: 'show',
......@@ -177,6 +49,12 @@ const constantRouterMap = [
meta: { title: '详情', icon: '' },
component: resolve => require(["@/views/detail"], resolve),
},
{
path: "/manage",
name: 'manage',
meta: { title: '栏目', icon: '' },
component: resolve => require(["@/views/manage"], resolve),
},
// {
// path: "/homePage",
......@@ -187,12 +65,12 @@ const constantRouterMap = [
],
},
{
path: "/manage",
name: 'manage',
meta: { title: '栏目', icon: '' },
component: resolve => require(["@/views/manage"], resolve),
},
// {
// path: "/manage",
// name: 'manage',
// meta: { title: '栏目', icon: '' },
// component: resolve => require(["@/views/manage"], resolve),
// },
{
path: "/verifyLogin",
......
......@@ -12,10 +12,15 @@
style="display: inline-block"
separator-class="el-icon-arrow-right"
>
<el-breadcrumb-item :to="{ path: '/' }"
>首页</el-breadcrumb-item
>
<el-breadcrumb-item>活动管理</el-breadcrumb-item>
<!-- <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
<el-breadcrumb-item>活动管理</el-breadcrumb-item> -->
<el-breadcrumb-item v-for="(v,i) in breadList" :key="i">
<!-- <span v-if="i==breadList.length-1">{{ v.meta.title}}</span>
<router-link v-else>{{ v.meta.title}}</router-link> -->
<!-- <router-link :to="{name: v.name}" >{{ v.meta.title}}</router-link> -->
<router-link :to="v.path" >{{ v.meta.title}}</router-link>
</el-breadcrumb-item>
</el-breadcrumb>
</div>
<!-- 文章内容 -->
......@@ -382,16 +387,30 @@ export default {
],
article:{},
attachList:[],//附件
breadList:[],//面包屑列表
};
},
created() {
this.getBreadcrumb();
var self = this;
self.getParams();
},
//从vuex store获取用户信息判断是否登录
computed:{
...mapGetters(['user']),
},
//监听路由获取面包屑
watch:{
$route(to,from){
this.getBreadcrumb();
}
},
methods: {
// 获取面包屑
getBreadcrumb(){
this.breadList=this.$route.matched.filter(item=>item.meta && item.meta.title);
console.log('this.breadList==',this.breadList);
},
//本月阅读排行
monthClickRanking(){
let params={};
......@@ -422,22 +441,8 @@ export default {
},
returnEvent(item,index){
// if(!user.id){
// this.$message({
// message:'请先登录才可回复!',
// type:'success'
// });
// return;
// }
console.log('回复',);
this.messageDetailData[index].returnFlag=!item.returnFlag;
// for(var i=0;i<this.messageDetailData.length;i++){
// if(i==index){
// this.messageDetailData[i].returnFlag=true;
// }else{
// this.messageDetailData[i].returnFlag=false;
// }
// }
this.$forceUpdate();
console.log('回复==',this.messageDetailData);
},
......@@ -454,13 +459,13 @@ export default {
},
getParams(){//接收函数
console.log(this.$router.history.current.query.newsId)
// this.msg = this.$router.history.current.query.name;
this.newsDetailFun(this.$router.history.current.query.newsId);
this.messageDetail(this.$router.history.current.query.newsId);//获取评论详情
// this.commentRaking();//获取本月评论排行
this.monthClickRanking();//获取本月阅读排行
},
console.log(this.$router.history.current.query.newsId)
// this.msg = this.$router.history.current.query.name;
this.newsDetailFun(this.$router.history.current.query.newsId);
this.messageDetail(this.$router.history.current.query.newsId);//获取评论详情
// this.commentRaking();//获取本月评论排行
this.monthClickRanking();//获取本月阅读排行
},
newsDetailFun(val){
newsDetail({newsId:val}).then(res=>{
let {newsDetail,attachList}=res.data;
......@@ -494,13 +499,9 @@ export default {
//发表评论
commentEvent(type,content,commentId){
var oldContent=content;
// console.log('',newsId);
// console.log('',newsId)
var params={};
// type=1是回复,type=0是发表评论
// this.reCommentContent=
// this.reCommentContent=
if(type==0){
if(this.commentContent==''){
this.$message({
......
......@@ -113,6 +113,7 @@ export default {
this.userInfo = res.user
this.SET_USER(res.user);
setUserInfo(res.user);
sessionStorage.setItem('userInfo',this.userInfo);
});
},
loginOut() {
......
......@@ -8,7 +8,7 @@
<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="500px" indicator-position="outside" :interval="4000">
<el-carousel style="border-radius:8px;" height="400px" indicator-position="outside" :interval="4000">
<el-carousel-item style="border-radius:8px;" v-for="(item,index) in headlineRotation" :key="index">
<div v-if="item.attInfoList.length>0" class="carousel-div" style="border-radius:8px;" @click="setParams(item)">
<el-image :src="item.attInfoList[0].downloadPath" fit="contain" style="width:100%;height:100%;"></el-image>
......@@ -54,7 +54,7 @@
<!--工作信息开始-->
<div v-if="activeItem==1" class="mt-15">
<el-row :gutter="20">
<el-col :span="10" style="">
<el-col :span="8" style="">
<div class="work-tab-list" v-for="(item,index) in WorkButton" :key="index" >
<div class="tab-item" @click="informationSelection(item)">
{{item.boardName}}
......@@ -62,7 +62,7 @@
</div>
</el-col >
<el-col :span="14" style="">
<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>
......@@ -456,7 +456,7 @@
</el-col>
<el-col :span="11">
<el-carousel style="border-radius:8px;" height="280px" indicator-position="outside" :interval="4000">
<el-carousel-item style="border-radius:8px;" v-for="item in tableDataImg" :key="item.id">
<el-carousel-item style="border-radius:8px;" v-for="item in tableData" :key="item.id">
<div v-if="item.attInfoList.length>0" class="carousel-div" style="border-radius:8px;" @click="setParams(item)">
<el-image :src="item.attInfoList[0].downloadPath" fit="contain" style="width:100%;height:100%;"></el-image>
<div class="carousel-intro" style="">
......@@ -748,12 +748,19 @@
</template>
<script>
import {getBoardTree,topList,newsFromBoard,getSubLevelBoard} from "@/api/homePage.js"
import {
getBoardTree,
topList,
newsFromBoard,
getSubLevelBoard,
getAllCourts,//获取全区法院
} from "@/api/homePage.js"
export default {
data() {
return {
allCourtsData:[],//全区法院
input:'',
activeItem:0,
activeItemPolice:0,
......@@ -922,8 +929,23 @@ export default {
date:'09-23'
},
],
tableData: [],
tableDataImg:[],
tableData: [{
date: '2016-05-02 12:00:00',
name: '24',
address: '【广西高院队就】广西高院队伍整顿简报官方首发的广东话合规合法的韩国和跟黑社会呵呵呵回复的环境'
}, {
date: '2016-05-04 12:00:00',
name: '45',
address: '上海市普陀区金沙江路 1517 弄还是个哈哈哈韩国发动机简洁大方'
}, {
date: '2016-05-01 12:00:00',
name: '67',
address: '上海市普陀区金沙江路 1519 弄好好说话'
}, {
date: '2016-05-03 12:00:00',
name: '89',
address: '上海市普陀区金沙江路 1516 弄合适的哈哈和'
}],
// leftList:[
// {
// id:1,
......@@ -1125,9 +1147,18 @@ export default {
created(){
this.getSubLevelBoardF()
this.topListFun()
this.initializationList()
this.initializationList();
// this.getAllCourts();//获取全区法院
},
methods: {
//获取全区法院
getAllCourts(){
getAllCourts().then(res=>{
if(res.success){
this.allCourtsData=res.data;
}
})
},
setParams(val){
this.$router.push({
path:'/detail',//跳转路由
......@@ -1139,7 +1170,7 @@ export default {
},
initializationList(){
newsFromBoard({boardId:'1930',page:1,size:5}).then(res=>{
this.tableDataImg = res.data.newsList.records
this.tableData = res.data.newsList.records
})
newsFromBoard({boardId:'135',page:1,size:5}).then(res=>{
......
<template>
<li class="nav-li">
<span @click="toggle">
{{ model.menuName }}
</span>
<ul class="menu_ul" v-if="isFolder" v-show="open">
<items v-for="(item, index) in model.childTree" :model="item" :key="index"></items>
</ul>
</li>
</template>
<script type="text/javascript">
export default {
// 组件递归必要条件,name属性
name: 'items',
props: ['model'],
data() {
return {
// 控制子列表的显示隐藏
open: false
}
},
computed: {
// 是否还有子列表需要渲染,作为v-if的判断条件
isFolder() {
return this.model.childTree && this.model.childTree.length
}
},
methods: {
// 切换列表显示隐藏的方法
toggle() {
if(this.isFolder) {
this.open = !this.open
}
},
}
}
</script>
<style lang="scss" scoped >
</style>
\ No newline at end of file
<template>
<div>
<!-- <template v-for="(item,index) in item"> -->
<!-- 没有子集 -->
<el-menu-item :index="item.boardId" v-if="!item.children">
<!-- <i class="el-icon-setting"></i> -->
<span slot="title">{{item.meta.title}}</span>
</el-menu-item>
<!-- 有子集的 -->
<el-submenu :index="item.boardId" v-else>
<template slot="title">
<!-- <i :class="item.meta.icon"></i> -->
{{item.meta.title}}
</template>
<sideItem v-for="child in item.children" :key="child.boardId" :item="child"/>
</el-submenu>
<!-- </template> -->
<!-- 有子集的 -->
<!-- <el-submenu :index="item.path" >
<template slot="title">{{item.meta.title}}</template>
<sideItem v-for="child in item.children" :key="child.path" :item="child"/>
</el-submenu> -->
</div>
</template>
<script>
export default {
name:'sideItem',
data(){
return{
}
},
props:['item']
}
</script>
\ No newline at end of file
......@@ -17,7 +17,7 @@
<el-row :gutter="20" class="mt-15 first-zone-style">
<el-col :span="8" style="padding-left:0;padding-right:0;">
<div >
<el-carousel style="border-radius:8px;" height="250px" indicator-position="outside" :interval="4000">
<el-carousel style="border-radius:8px;" height="250px" :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>
......
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