Commit d054e68b by 莫晓莉

细节

parent 02643229
...@@ -76,3 +76,23 @@ export function searchForNews(data) { ...@@ -76,3 +76,23 @@ export function searchForNews(data) {
}) })
} }
//获取栏目及子栏目全部新闻列表
export function getBoardAndSubAllNews(data) {
return request({
url: `websiteCluster/web/getBoardAndSubAllNews`,
method: 'POST',
data,
})
}
// 获取指定栏目树
export function getSelectedBoardTree(data) {
return request({
url: `websiteCluster/web/getSelectedBoardTree`,
method: 'POST',
data,
})
}
...@@ -315,7 +315,7 @@ export default { ...@@ -315,7 +315,7 @@ export default {
}, },
{ {
name: "work", name: "work",
path: "", path: "/list",
boardId: 135, boardId: 135,
meta: { title: "干警作品" }, meta: { title: "干警作品" },
}, },
...@@ -374,6 +374,7 @@ export default { ...@@ -374,6 +374,7 @@ export default {
// }, // },
menuRouterClick(item, index) { menuRouterClick(item, index) {
console.log("menuRouterClick-index==", index); console.log("menuRouterClick-index==", index);
console.log("menuRouterClick-item==", item);
this.classA = index; this.classA = index;
console.log("this.classA==", this.classA); console.log("this.classA==", this.classA);
// return; // return;
......
...@@ -531,8 +531,9 @@ ...@@ -531,8 +531,9 @@
<el-row class="mt-10"> <el-row class="mt-10">
<!-- 创建未提交审核为5,提交审核为4,审核不通过为3,通过已发布为1 --> <!-- 创建未提交审核为5,提交审核为4,审核不通过为3,通过已发布为1 -->
<el-button type="primary" size="mini" @click="sbBatch">批量打开</el-button> <el-button type="primary" size="mini" @click="sbBatch">批量打开</el-button>
<el-button type="primary" size="mini" @click="sbBatchUseOrNot(0)">批量采用</el-button> <!-- 是否采用,3为采用,2为不采用即已阅 -->
<el-button type="primary" size="mini" @click="sbBatchUseOrNot(1)">批量不采用</el-button> <el-button type="primary" size="mini" @click="sbBatchUseOrNot(3)">批量采用</el-button>
<el-button type="primary" size="mini" @click="sbBatchUseOrNot(2)">批量不采用</el-button>
</el-row> </el-row>
<div style="margin-top:10px;"> <div style="margin-top:10px;">
<el-pagination <el-pagination
...@@ -1500,6 +1501,7 @@ export default { ...@@ -1500,6 +1501,7 @@ export default {
}, },
// 收报批量采用不采用 // 收报批量采用不采用
sbBatchUseOrNot(status){ sbBatchUseOrNot(status){
// 是否采用,3为采用,2为不采用即已阅
let params={}; let params={};
params.isUse=status; params.isUse=status;
params.newsIds=this.multipleSelection3; params.newsIds=this.multipleSelection3;
...@@ -1508,9 +1510,9 @@ export default { ...@@ -1508,9 +1510,9 @@ export default {
if(res.success){ if(res.success){
this.getReportList();//刷新列表 this.getReportList();//刷新列表
var msg='收报批量采用成功!'; var msg='收报批量采用成功!';
if(status==0){ if(status==2){
msg='收报批量不采用成功!'; msg='收报批量不采用成功!';
}else if(status==1){ }else if(status==3){
msg='收报批量采用成功!'; msg='收报批量采用成功!';
} }
this.$message({ this.$message({
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<el-row :gutter="20" class="mt-15 first-zone-style"> <el-row :gutter="20" class="mt-15 first-zone-style">
<el-col :span="8" style="padding-left:0;padding-right:0;"> <el-col :span="8" style="padding-left:0;padding-right:0;">
<div > <div >
<el-carousel style="border-radius:8px;" height="250px" :interval="4000"> <el-carousel style="border-radius:8px;" height="280px" :interval="4000">
<el-carousel-item style="border-radius:8px;" v-for="item in newestList" :key="item.newsId"> <el-carousel-item style="border-radius:8px;" v-for="item in newestList" :key="item.newsId">
<div class="carousel-div" style="border-radius:8px;" @click="setParams(item)"> <div class="carousel-div" style="border-radius:8px;" @click="setParams(item)">
<el-image :src="item.attInfoList.downloadPath" style="width:100%;height:100%;"></el-image> <el-image :src="item.attInfoList.downloadPath" style="width:100%;height:100%;"></el-image>
...@@ -32,14 +32,14 @@ ...@@ -32,14 +32,14 @@
<div class="mt-10 zone-style"> <div class="mt-10 zone-style">
<div class="mb-15 k-flex-between-center"> <div class="mb-15 k-flex-between-center">
<div class="k-flex k-align-center"> <div class="k-flex k-align-center">
<img class="mr-5 gong-icon" style="" src="../../assets/home/gonggao.png"></img> <el-image class="mr-5 gong-icon" style="" :src="require('../../assets/news/1.png')"></el-image>
<div>新闻总类排行</div> <div>新闻总类排行</div>
</div> </div>
<div style="font-size:12px;color: #999999;"> <div style="font-size:12px;color: #999999;">
<!--<span>MORE></span>--> <!--<span>MORE></span>-->
<el-button @click="fyxwClickRaking(1)">今天</el-button> <el-button :class="[{'active-btn':activeBtn==1}]" style="" @click="fyxwClickRaking(1)">今天</el-button>
<el-button @click="fyxwClickRaking(2)">一周</el-button> <el-button :class="[{'active-btn':activeBtn==2}]" @click="fyxwClickRaking(2)">一周</el-button>
<el-button @click="fyxwClickRaking(3)">一个月</el-button> <el-button :class="[{'active-btn':activeBtn==3}]" @click="fyxwClickRaking(3)">一个月</el-button>
</div> </div>
</div> </div>
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<!--今日头条开始--> <!--今日头条开始-->
<div v-if="activeItem==3"> <div v-if="activeItem==3">
<div class="mt-10 mb-5 k-flex k-align-center"> <div class="mt-10 mb-5 k-flex k-align-center">
<img class="mr-5 gong-icon" style="" src="../../assets/home/gonggao.png"></img> <el-image class="mr-5 gong-icon" style="width:13px;height:13px;" :src="require('../../assets/home/gonggao.png')"></el-image>
<div class="gonggao-text"> <div class="gonggao-text">
<span >教育整顿进行时</span> <span >教育整顿进行时</span>
<span>鹿心社与自治区级政法机关领导班子成立交付给来访登记过了多久</span> <span>鹿心社与自治区级政法机关领导班子成立交付给来访登记过了多久</span>
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
<div class="zone-style"> <div class="zone-style">
<div class="k-flex-between-center"> <div class="k-flex-between-center">
<div class="k-flex k-align-center"> <div class="k-flex k-align-center">
<img class="mr-5 gong-icon" style="" src="../../assets/home/gonggao.png"></img> <el-image class="mr-5 gong-icon" style="" :src="require('../../assets/news/3.png')"></el-image>
<div>精彩回顾</div> <div>精彩回顾</div>
</div> </div>
<div style="font-size:12px;color: #999999;"> <div style="font-size:12px;color: #999999;">
...@@ -215,10 +215,10 @@ ...@@ -215,10 +215,10 @@
<div class="zone-style"> <div class="zone-style">
<div class="k-flex-between-center"> <div class="k-flex-between-center">
<div class="k-flex k-align-center"> <div class="k-flex k-align-center">
<img class="mr-5 gong-icon" style="" src="../../assets/home/gonggao.png"></img> <el-image class="mr-5 gong-icon" style="" :src="require('../../assets/news/2.png')"></el-image>
<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>
...@@ -269,6 +269,7 @@ import { ...@@ -269,6 +269,7 @@ import {
export default { export default {
data() { data() {
return { return {
activeBtn:1,//新闻分类排行
pageInfo:{ pageInfo:{
page:1, page:1,
size:6, size:6,
...@@ -445,6 +446,16 @@ export default { ...@@ -445,6 +446,16 @@ export default {
}, },
methods: { methods: {
// 跳转到更所模块
toMorelist(boardId){
this.$router.push({
path: "/list", //跳转路由
query: {
//参数对象
boardId: boardId,
},
});
},
// 获取最新消息和关注自己法院 // 获取最新消息和关注自己法院
fyxwfromCourt(type){ fyxwfromCourt(type){
...@@ -470,7 +481,7 @@ export default { ...@@ -470,7 +481,7 @@ export default {
}, },
//法院新闻排行 //法院新闻排行
fyxwClickRaking(type){ fyxwClickRaking(type){
this.activeBtn=type;
var params={}; var params={};
// type为1按日,2按月,3按周 // type为1按日,2按月,3按周
if(type==1){ if(type==1){
...@@ -539,6 +550,16 @@ export default { ...@@ -539,6 +550,16 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep{
// 设置轮播图指示器大小
.el-carousel__button{
width:5px;
}
}
.active-btn{
background:#D33237;
color:#fff;
}
// 第一栏 // 第一栏
.first-zone-style{ .first-zone-style{
margin-left:0!important; margin-left:0!important;
...@@ -600,8 +621,8 @@ export default { ...@@ -600,8 +621,8 @@ export default {
} }
// 公告 // 公告
.gong-icon{ .gong-icon{
width:13px; width:15px;
height:13px; height:15px;
} }
.gonggao-text{ .gonggao-text{
white-space:nowrap; white-space:nowrap;
......
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