Commit 217936bc by 杨琪琪

信息发布系统--修复查询,实现收报信息

parent 6ab3fcfb
......@@ -77,8 +77,8 @@ export const assInfoList = (data) => {
}
//获取收报信息列表
export const getSBList = (data) => {
//获取收报信息列表---接收
export const getSBReceiveList = (data) => {
return request({
url: 'websiteCluster/website/getSBList',
method: 'POST',
......@@ -86,6 +86,16 @@ export const getSBList = (data) => {
})
}
//获取收报信息列表---报送
export const getSBSubmittedList = (data) => {
return request({
url: 'websiteCluster/website/getReportList',
method: 'POST',
data
})
}
//管理列表--新闻详情
export const newsDetail = (data) => {
return request({
......@@ -165,6 +175,15 @@ export const sbBatch = (data) => {
})
}
// 收报批量采用或不采用
export const sbBatchUseOrNot = (data) => {
return request({
url: 'websiteCluster/website/sbBatchUseOrNot',
method: 'POST',
data
})
}
//日志详情
......
......@@ -52,7 +52,7 @@ const constantRouterMap = [
{
path: "/manage",
name: 'manage',
meta: { title: '栏目', icon: '' },
meta: { title: '信息发布系统', icon: '' },
component: resolve => require(["@/views/manage"], resolve),
},
{
......
......@@ -124,6 +124,7 @@ export default {
loginOut() {
logout().then((res) => {
removeToken();
window.localStorage.removeItem('publishFlag');
// this.$router.push("/");
location.href = res.data;
});
......@@ -135,7 +136,7 @@ export default {
location.href = process.env.VUE_APP_LOGIN_API
},
enableTurnOnSystem(){
enableTurnOnSystem({fyId:32}).then((res) => {
enableTurnOnSystem().then((res) => {
sessionStorage.setItem('publishFlag',res.success);
});
}
......
......@@ -60,7 +60,6 @@
<div style="font-size:8px;" class="tab-item" :class="[workActive==index? 'tab-item-active':'']" @click="informationSelection(item,index)">
{{item.boardName}}
</div>
</div>
</el-col >
<el-col :span="16" style="">
......
......@@ -14,7 +14,7 @@
<el-link
@click.native="menuRouterClick(item, index)"
class="nav-a-text"
:underline="false"
:underline="false"
>{{ item.meta.title }}</el-link
>
<div
......@@ -31,7 +31,7 @@
>
<el-link
class="menu_ul_text"
:underline="false"
:underline="false"
:class="{ active: nav.path == linkClick }"
>{{ nav.meta.title }}</el-link
>
......@@ -78,7 +78,11 @@
</div>
<div class="k-flex seach-input k-align-center" style="width: 180px">
<el-input v-model="searchSubject" placeholder="请输入内容" clearable>
<el-input
v-model="searchSubject"
placeholder="请输入内容"
clearable
>
<i
@click="searchEvent"
slot="suffix"
......@@ -231,13 +235,14 @@ import items from "./items.vue";
import {
getAllCourts, //获取全区法院
getSubLevelBoard, //获取子栏目
searchForNews,//搜索新闻
searchForNews, //搜索新闻
enableTurnOnSystem,
} from "@/api/homePage.js";
export default {
components: { sideItem, items },
data() {
return {
searchSubject:'',//搜索内容
searchSubject: "", //搜索内容
allCourtsData: [], //全区法院
childFlag: false,
activeIndex: "/homePage",
......@@ -255,29 +260,28 @@ export default {
name: "news",
path: "/news",
meta: { title: "法院新闻" },
children:[
{
name: "top",
path:'',
boardId:'',
type:'top',
meta:{title:'今日头条',},
},
{
name: "all",
path:'',
type:'all',
meta:{title:'全区速递',},
},
{
name: "vedio",
path:'',
boardId:1965,
type:'vedio',
meta:{title:'视频点播',},
},
]
children: [
{
name: "top",
path: "",
boardId: "",
type: "top",
meta: { title: "今日头条" },
},
{
name: "all",
path: "",
type: "all",
meta: { title: "全区速递" },
},
{
name: "vedio",
path: "",
boardId: 1965,
type: "vedio",
meta: { title: "视频点播" },
},
],
// children:[
// {
// name: "news",
......@@ -354,12 +358,8 @@ export default {
path: "",
meta: { title: "全区法院" },
},
{
name: "manage",
path: "/manage",
meta: { title: "信息发布系统" },
},
],
pFlag: false, // 是否显示信息发布系统
};
},
computed: {
......@@ -367,6 +367,8 @@ export default {
...mapGetters(["user"]),
},
created() {
// this.isPublishOut();
this.enableTurnOnSystem();
this.getAllCourts(); //获取全区法院
// this.getSubLevelBoard(1, 129); //法院新闻
this.getSubLevelBoard(2, 1929); //工作信息
......@@ -375,77 +377,102 @@ export default {
this.getSubLevelBoard(2, 130); //法院业务
},
methods: {
// 是否显示信息发布系统
enableTurnOnSystem() {
enableTurnOnSystem().then((res) => {
if (res.success) {
var pObj = {
name: "manage",
path: "/manage",
meta: { title: "信息发布系统" },
};
this.routesList.push(pObj);
}
});
},
// // 是否显示信息发布系统
// isPublishOut() {
// this.pFlag = window.sessionStorage.getItem("publishFlag");
// console.log(
// "-=-==-=-==-==-=-=-=-=-==-=是否显示信息发布系统1111111",
// this.pFlag
// );
// if (this.pFlag == "true") {
// var pObj = {
// name: "manage",
// path: "/manage",
// meta: { title: "信息发布系统" },
// };
// this.routesList.push(pObj);
// }
// },
//1、点击一级导航
menuRouterClick(item, index) {
console.log("menuRouterClick-index==", index);
console.log("menuRouterClick-item==", item);
console.log('this.routesList==',this.routesList);
console.log("this.routesList==", this.routesList);
// this.classA = index;
console.log("this.classA==", this.classA);
this.classA = index;
item=this.routesList[this.classA];
item = this.routesList[this.classA];
// return;
if (item.name == "manage") {
// var url=process.env.VUE_APP_LOGIN_API+'/manage'
// window.open(url)
// window.open("/#/manage");
var userInfo=sessionStorage.getItem('userInfo');
var publishFlag=sessionStorage.getItem('publishFlag');
console.log('user==',userInfo);
if(!userInfo){
var userInfo = sessionStorage.getItem("userInfo");
var publishFlag = sessionStorage.getItem("publishFlag");
console.log("user==", userInfo);
if (!userInfo) {
this.$message({
message:'请先登录!',
type:'error',
message: "请先登录!",
type: "error",
});
return;
}else{
console.log('publishFlag=',publishFlag);
if(publishFlag){
} else {
console.log("publishFlag=", publishFlag);
if (publishFlag) {
this.$router.push({
path: item.path, //跳转路由
});
}else{
} else {
this.$message({
message:'您的账号没有权限!',
type:'error',
message: "您的账号没有权限!",
type: "error",
});
return;
}
}
}else if(item.name == "homePage" || item.name == "news"){
} else if (item.name == "homePage" || item.name == "news") {
this.$router.push({
path: item.path, //跳转路由
});
}else if(item.name == "fun"){
path: item.path, //跳转路由
});
} else if (item.name == "fun") {
this.$message({
message:'维护中...',
type:'error',
duration:1000
message: "维护中...",
type: "error",
duration: 1000,
});
return;
}else{
} else {
this.$router.push({
path: "/list", //跳转路由
query: {
//参数对象
boardId: item.boardId,
type:'menu'
type: "menu",
},
});
}
},
// 2、点击二级子栏目--跳转到列表
menuselected(item, subItem) {
// alert('item');
console.log("点击子菜单1==", item);
console.log("点击子菜单2==", subItem);
console.log('this.routesList==',this.routesList);
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;
......@@ -459,30 +486,29 @@ export default {
// });
// return;
// }
if(subItem.name=='top' || subItem.name=='all' || subItem.name=='vedio'){
this.$router.push({
path: "/zone", //跳转路由
query: {
//参数对象
boardId: subItem.boardId,
type:subItem.type
},
});
}else{
this.$router.push({
path: "/list", //跳转路由
query: {
//参数对象
boardId: subItem.boardId,
type:'sub'
},
});
if (
subItem.name == "top" ||
subItem.name == "all" ||
subItem.name == "vedio"
) {
this.$router.push({
path: "/zone", //跳转路由
query: {
//参数对象
boardId: subItem.boardId,
type: subItem.type,
},
});
} else {
this.$router.push({
path: "/list", //跳转路由
query: {
//参数对象
boardId: subItem.boardId,
type: "sub",
},
});
}
},
// treeNavSwitch(){},
//获取全区法院
......@@ -544,7 +570,6 @@ export default {
subject: this.searchSubject,
},
});
},
toNews() {
console.log(4556);
......@@ -574,7 +599,6 @@ export default {
.el-menu--horizontal > .el-submenu .el-submenu__title {
font-size: 13px;
}
}
// $childs: false;
......@@ -698,7 +722,7 @@ li {
border-bottom: 2px solid #ffd04b;
}
.main-active .nav-a-text {
color: #ffd04b!important;
color: #ffd04b !important;
}
.menu_ul_text:hover {
......@@ -714,7 +738,7 @@ li {
width: 170px;
border-radius: 5px;
bottom: -65;
z-index:19;
z-index: 19;
}
.nav-a-li:hover .submenu-container-first {
display: block;
......@@ -756,7 +780,7 @@ li {
.search-container {
width: 100%;
height: 500px;
background-image: url('../../assets/pic.jpg');
background-image: url("../../assets/pic.jpg");
background-repeat: no-repeat;
background-size: 100% 100%;
}
......@@ -776,6 +800,4 @@ li {
.seach-input {
width: 60%;
}
</style>
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -92,13 +92,13 @@
<el-row :gutter="10">
<el-col :span="12">
<el-image style="" :src="require('../../assets/pic.jpg')"></el-image>
</el-col :span="12">
</el-col>
<el-col :span="12">
<div>
结果立刻发动进攻类库的结构来看到付即可购房贷款逛街看到路上经过考虑工具开发架构框架
<span style="color:red;font-size:10px;">[详细]</span>
</div>
</el-col :span="12">
</el-col>
</el-row>
<ul class="business-ul">
......@@ -219,11 +219,6 @@
</div>
</div>
</div>
</el-col>
</el-row>
......
......@@ -130,7 +130,7 @@
</el-col >
<el-col :span="12">
<div v-if="highlightsData[0]" class="re-see">
<div class="hightlight-v" v-html="highlightsData[0].content"></div>
<div class="hightlight-v" v-html="highlightsData[0].content" @click="setParams(highlightsData[0])"></div>
<span @click="setParams(highlightsData[0])" style="color:red;font-size:10px;">[详细]</span>
</div>
</el-col >
......@@ -272,10 +272,10 @@ export default {
if(type==1){
params.byDay='1';//按日
}
if(type==2){
if(type==3){
params.byMonth='1';//按月
}
if(type==3){
if(type==2){
params.byWeek='1';//按周
}
......@@ -535,6 +535,7 @@ ul{
margin-right:5px;
position:relative;
color:black;
cursor: default;
}
.line-div{
position:absolute;
......@@ -745,9 +746,11 @@ ul{
}
@keyframes infiniteScroll {
// 动画开始时间
0% {
transform: translate3d(0, 0, 0);
}
// 动画结束时间
100% {
transform: translate3d(-100%, 0, 0);
}
......
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