Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
court-inner
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
莫晓莉
court-inner
Commits
217936bc
Commit
217936bc
authored
Nov 03, 2021
by
杨琪琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
信息发布系统--修复查询,实现收报信息
parent
6ab3fcfb
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
414 additions
and
349 deletions
+414
-349
src/api/manage/manage.js
+21
-2
src/router/routers.js
+1
-1
src/views/home.vue
+2
-1
src/views/homePage/index.vue
+0
-1
src/views/layout/menu--yy.vue
+137
-106
src/views/layout/menu.vue
+86
-64
src/views/manage/index.vue
+0
-0
src/views/news -old/index.vue
+2
-7
src/views/news/index.vue
+6
-3
src/views/zone/index.vue
+159
-164
No files found.
src/api/manage/manage.js
View file @
217936bc
...
...
@@ -77,8 +77,8 @@ export const assInfoList = (data) => {
}
//获取收报信息列表
export
const
getSBList
=
(
data
)
=>
{
//获取收报信息列表
---接收
export
const
getSB
Receive
List
=
(
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
})
}
//日志详情
...
...
src/router/routers.js
View file @
217936bc
...
...
@@ -52,7 +52,7 @@ const constantRouterMap = [
{
path
:
"/manage"
,
name
:
'manage'
,
meta
:
{
title
:
'
栏目
'
,
icon
:
''
},
meta
:
{
title
:
'
信息发布系统
'
,
icon
:
''
},
component
:
resolve
=>
require
([
"@/views/manage"
],
resolve
),
},
{
...
...
src/views/home.vue
View file @
217936bc
...
...
@@ -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
);
});
}
...
...
src/views/homePage/index.vue
View file @
217936bc
...
...
@@ -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=
""
>
...
...
src/views/layout/menu--yy.vue
View file @
217936bc
<
template
>
<div>
<el-row
>
<el-row
>
<el-col
class=
"my-menu"
:span=
"18"
:offset=
"3"
>
<div
class=
"nav k-flex-between-center"
>
<div
class=
"nav-a"
>
<ul
class=
"nav-a-ul"
>
<li
class=
"nav-a-li"
:class=
"classA == index ? 'active' : '' "
@
click=
"selected(index)"
v-for=
"(item,index) in configNav"
:key=
"index"
>
<router-link
:to=
'item.path'
class=
"nav-a-text"
@
click=
"showToggle(index)"
>
{{
item
.
name
}}
</router-link>
<div
v-if=
"item.subItems"
class=
"submenu-container"
>
<ul
class=
"menu_ul"
:class=
"
{'active' :index===isShow}">
<li
class=
"menu_li"
v-for =
"(nav,index) in item.subItems"
:class=
"classB == nav ? 'active' : '' "
@
click=
"menuselected(nav)"
:key=
"index"
>
<router-link
class=
"menu_ul_text"
:to=
"nav.link"
:class=
"
{'active':nav.link == linkClick}" @click = "treeNavSwitch(nav)">
{{
nav
.
text
}}
</router-link>
<li
class=
"nav-a-li"
:class=
"classA == index ? 'active' : ''"
@
click=
"selected(index)"
v-for=
"(item, index) in configNav"
:key=
"index"
>
<router-link
:to=
"item.path"
class=
"nav-a-text"
@
click=
"showToggle(index)"
>
{{
item
.
name
}}
</router-link
>
<div
v-if=
"item.subItems"
class=
"submenu-container"
>
<ul
class=
"menu_ul"
:class=
"
{ active: index === isShow }">
<li
class=
"menu_li"
v-for=
"(nav, index) in item.subItems"
:class=
"classB == nav ? 'active' : ''"
@
click=
"menuselected(nav)"
:key=
"index"
>
<router-link
class=
"menu_ul_text"
:to=
"nav.link"
:class=
"
{ active: nav.link == linkClick }"
@click="treeNavSwitch(nav)"
>
{{
nav
.
text
}}
</router-link
>
</li>
</ul>
</div>
</li>
</ul>
</div>
<div
class=
"k-flex seach-input k-align-center"
style=
"width:180px;"
>
<el-input
placeholder=
"请输入内容"
clearable
>
<i
@
click=
"searchEvent"
slot=
"suffix"
class=
"el-input__icon el-icon-search"
></i>
<div
class=
"k-flex seach-input k-align-center"
style=
"width: 180px"
>
<el-input
placeholder=
"请输入内容"
clearable
>
<i
@
click=
"searchEvent"
slot=
"suffix"
class=
"el-input__icon el-icon-search"
></i>
</el-input>
</div>
</div>
...
...
@@ -32,8 +56,8 @@
</
template
>
<
script
>
export
default
{
data
()
{
return
{
data
()
{
return
{
classA
:
0
,
classB
:
0
,
isShow
:
0
,
...
...
@@ -41,83 +65,96 @@ export default {
configNav
:
[
{
name
:
"首页"
,
path
:
'homePage'
,
path
:
"homePage"
,
},
{
name
:
"法院新闻"
,
path
:
''
,
subItems
:
[
{
link
:
'/education'
,
text
:
'教学管理系统'
},
{
link
:
'/yingxiaozhaosheng'
,
text
:
'营销招生系统'
},
{
link
:
''
,
text
:
'视频直播系统'
},
{
link
:
''
,
text
:
'个性化定制服务'
}
]
path
:
""
,
subItems
:
[
{
link
:
"/education"
,
text
:
"教学管理系统"
},
{
link
:
"/yingxiaozhaosheng"
,
text
:
"营销招生系统"
},
{
link
:
""
,
text
:
"视频直播系统"
},
{
link
:
""
,
text
:
"个性化定制服务"
},
],
},
{
name
:
"工作信息"
,
path
:
'/show'
,
path
:
"/show"
,
},
{
name
:
"法院业务"
,
path
:
'/aboutour'
,
path
:
"/aboutour"
,
},
{
name
:
"干警作品"
,
path
:
'/aboutour'
,
path
:
"/aboutour"
,
},
{
name
:
"娱乐"
,
path
:
'/aboutour'
,
path
:
"/aboutour"
,
},
{
name
:
"全区法院"
,
path
:
'/aboutour'
,
path
:
"/aboutour"
,
},
{
name
:
"信息发布系统"
,
path
:
'/aboutour'
,
],
pFlag
:
false
,
// 是否显示信息发布系统
};
},
]
}
created
(){
this
.
isPublishOut
();
},
methods
:{
selected
(){},
menuselected
(){},
}
}
methods
:
{
selected
()
{},
menuselected
()
{},
// 是否显示信息发布系统
isPublishOut
()
{
this
.
pFlag
=
window
.
sessionStorage
.
getItem
(
"publishFlag"
);
console
.
log
(
'-=-====-=-=-=======-==-是否显示信息发布系统'
,
this
.
pFlag
);
// if(this.pFlag){
// var pObj = {
// name: "信息发布系统",
// path: "/aboutour",
// };
// this.configNav.push(pObj);
// }
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
//
路由导航
//
.el-menu--horizontal
>
.el-menu-item
{
//
background-color
:
rgb
(
58
,
94
,
131
);
//
color
:
#fff
;
//
}
//
.el-menu--horizontal
>
.el-menu-item
{
//
border-bottom
:
none
;
//
background
:
rgb
(
58
,
94
,
131
);
//
}
//
.el-menu--horizontal
>
.el-menu-item
{
//
background
:
rgb
(
22
,
22
,
22
)
!important
;
//
height
:
40px
;
//
line-height
:
40px
;
//
margin-right
:
10px
;
//
border-radius
:
5px
5px
0
0
;
//
font-size
:
12px
;
//
font-weight
:
bold
;
//
路由导航
//
.el-menu--horizontal
>
.el-menu-item
{
//
background-color
:
rgb
(
58
,
94
,
131
);
//
color
:
#fff
;
//
}
//
.el-menu--horizontal
>
.el-menu-item
{
//
border-bottom
:
none
;
//
background
:
rgb
(
58
,
94
,
131
);
//
}
//
.el-menu--horizontal
>
.el-menu-item
{
//
background
:
rgb
(
22
,
22
,
22
)
!important
;
//
height
:
40px
;
//
line-height
:
40px
;
//
margin-right
:
10px
;
//
border-radius
:
5px
5px
0
0
;
//
font-size
:
12px
;
//
font-weight
:
bold
;
//
}
//
.el-menu--horizontal
>
.el-menu-item.is-active
{
//
background-color
:
rgb
(
58
,
94
,
131
)
!important
;
//
}
//
.el-menu.el-menu--horizontal
{
//
border-bottom
:
none
;
//
}
//
.icon-size
{
//
font-size
:
15px
;
margin-right
:
5px
;
//
}
ul
,
li
{
padding
:
0
;
margin
:
0
;
//
}
//
.el-menu--horizontal
>
.el-menu-item.is-active
{
//
background-color
:
rgb
(
58
,
94
,
131
)
!important
;
//
}
//
.el-menu.el-menu--horizontal
{
//
border-bottom
:
none
;
//
}
//
.icon-size
{
//
font-size
:
15px
;
margin-right
:
5px
;
//
}
ul
,
li
{
padding
:
0
;
margin
:
0
;
}
.nav
{
width
:
100%
;
...
...
@@ -129,11 +166,11 @@ export default {
border-bottom
:
none
;
line-height
:
65px
;
//
padding
:
5px
0
;
background
:
#
D
33237
;
box-sizing
:
border-box
;
background
:
#
d
33237
;
box-sizing
:
border-box
;
//
box-sizing
:
border-box
;
border-radius
:
7px
;
padding
:
0
15px
;
border-radius
:
7px
;
padding
:
0
15px
;
}
.nav-a
{
cursor
:
pointer
;
...
...
@@ -141,28 +178,27 @@ export default {
//
margin-left
:
50px
;
letter-spacing
:
4px
;
position
:
relative
;
text-align
:
center
;
text-align
:
center
;
}
.nav-a-ul
{
list-style
:
none
;
line-height
:
50px
;
line-height
:
50px
;
}
.nav-a-li
{
position
:
relative
;
display
:
inline-block
;
//
margin-left
:
30px
;
//
height
:
60px
;
margin
:
0
20px
;
margin
:
0
20px
;
}
.nav-a-text
{
font-size
:
14px
;
color
:
#fff
;
//
line-height
:
58px
;
font-weight
:
bold
;
font-weight
:
bold
;
text-decoration
:
none
;
}
.menu_ul
{
.menu_ul
{
list-style
:
none
;
background
:
#fff
;
border-radius
:
3px
;
...
...
@@ -181,26 +217,24 @@ export default {
//
left
:
67px
;
//
left
:
0
;
//
display
:
none
;
margin-top
:
10px
;
margin-top
:
10px
;
width
:
100%
;
position
:
absolute
;
width
:
300px
;
border
:
1px
solid
#ccc
;
border-radius
:
5px
;
padding
:
15px
;
z-index
:
19
;
position
:
absolute
;
width
:
300px
;
border
:
1px
solid
#ccc
;
border-radius
:
5px
;
padding
:
15px
;
z-index
:
19
;
background
:
#fff
;
box-shadow
:
-5px
0px
20px
5px
rgba
(
0
,
0
,
0
,
0.05
);
box-shadow
:
-5px
0px
20px
5px
rgba
(
0
,
0
,
0
,
0.05
);
}
.menu_li
{
float
:
left
;
float
:
left
;
height
:
30px
;
line-height
:
30px
;
padding
:
0
10px
;
margin-bottom
:
10px
;
border-right
:
1px
solid
#eee
;
padding
:
0
10px
;
margin-bottom
:
10px
;
border-right
:
1px
solid
#eee
;
//
padding-left
:
12px
;
}
.menu_ul_text
{
...
...
@@ -208,18 +242,16 @@ export default {
color
:
#666
;
letter-spacing
:
0
;
line-height
:
30px
;
height
:
30px
;
height
:
30px
;
text-decoration
:
none
;
padding-left
:
6px
;
}
.nav-a-li
:hover
{
.nav-a-li
:hover
{
position
:
absolute
;
//
display
:
inline-block
;
//
border-bottom
:
2px
solid
#fff
!important
;
border-bottom
:
2px
solid
red
!important
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
.nav-a-li.active
{
//
border-bottom
:
2px
solid
#fff
;
...
...
@@ -236,25 +268,24 @@ export default {
.menu_ul_text
:hover
{
color
:
#2589ff
;
}
.menu_li.active
.menu_ul_text
{
.menu_li.active
.menu_ul_text
{
color
:
#2589ff
;
}
.search-container
{
.search-container
{
//
position
:
relative
;
width
:
100%
;
height
:
500px
;
background-image
:
url(../../assets/pic.jpg)
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
}
.index-div
{
position
:
absolute
;
.index-div
{
position
:
absolute
;
width
:
100%
;
border-radius
:
5px
;
top
:
30%
;
top
:
30%
;
}
.indexConFind
{
.indexConFind
{
//
position
:
absolute
;
width
:
60%
;
height
:
180px
;
...
...
@@ -263,7 +294,7 @@ export default {
//
top
:
20%
;
border-radius
:
5px
;
}
.seach-input
{
width
:
60%
;
.seach-input
{
width
:
60%
;
}
</
style
>
src/views/layout/menu.vue
View file @
217936bc
...
...
@@ -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
:
[
children
:
[
{
name
:
"top"
,
path
:
''
,
boardId
:
''
,
type
:
'top'
,
meta
:{
title
:
'今日头条'
,},
path
:
""
,
boardId
:
""
,
type
:
"top"
,
meta
:
{
title
:
"今日头条"
},
},
{
name
:
"all"
,
path
:
''
,
type
:
'all'
,
meta
:{
title
:
'全区速递'
,
},
path
:
""
,
type
:
"all"
,
meta
:
{
title
:
"全区速递"
},
},
{
name
:
"vedio"
,
path
:
''
,
boardId
:
1965
,
type
:
'vedio'
,
meta
:{
title
:
'视频点播'
,
},
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,76 +377,101 @@ 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
);
var
userInfo
=
sessionStorage
.
getItem
(
"userInfo"
);
var
publishFlag
=
sessionStorage
.
getItem
(
"publishFlag"
);
console
.
log
(
"user=="
,
userInfo
);
if
(
!
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"
)
{
}
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
)
{
...
...
@@ -459,30 +486,29 @@ export default {
// });
// return;
// }
if
(
subItem
.
name
==
'top'
||
subItem
.
name
==
'all'
||
subItem
.
name
==
'vedio'
){
if
(
subItem
.
name
==
"top"
||
subItem
.
name
==
"all"
||
subItem
.
name
==
"vedio"
)
{
this
.
$router
.
push
({
path
:
"/zone"
,
//跳转路由
query
:
{
//参数对象
boardId
:
subItem
.
boardId
,
type
:
subItem
.
type
type
:
subItem
.
type
,
},
});
}
else
{
}
else
{
this
.
$router
.
push
({
path
:
"/list"
,
//跳转路由
query
:
{
//参数对象
boardId
:
subItem
.
boardId
,
type
:
'sub'
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
>
src/views/manage/index.vue
View file @
217936bc
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/views/news -old/index.vue
View file @
217936bc
...
...
@@ -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"
>
...
...
@@ -220,11 +220,6 @@
</div>
</div>
</el-col>
</el-row>
...
...
src/views/news/index.vue
View file @
217936bc
...
...
@@ -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
);
}
...
...
src/views/zone/index.vue
View file @
217936bc
<
template
>
<div
>
<el-row
>
<div>
<el-row>
<el-col
:span=
"18"
:offset=
"3"
>
<el-row
class=
"mt-20"
:gutter=
"20"
>
<!--左边栏目开始-->
...
...
@@ -18,57 +18,65 @@
<el-col
:span=
"19"
>
<div
class=
"zone-style"
>
<div
style=
"min-height:76vh;"
>
<div
class=
"mb-10"
style=
"font-size:12px;font-weight:bold;"
>
法院新闻:
{{
menuName
}}
</div>
<div
style=
"min-height: 76vh"
>
<div
class=
"mb-10"
style=
"font-size: 12px; font-weight: bold"
>
法院新闻:
{{
menuName
}}
</div>
<!--
<el-breadcrumb-item
v-for=
"(v,i) in breadList"
:key=
"i"
>
<router-link
:to=
"v.path"
>
{{
v
.
meta
.
title
}}
</router-link>
</el-breadcrumb-item>
-->
<el-table
:header-cell-style=
"
{'text-align':'center','font-size':'15px','color':'black'}"
:cell-style="{'font-size':'13px','border-bottom':'none'}"
:header-cell-style=
"
{
'text-align': 'center',
'font-size': '15px',
color: 'black',
}"
:cell-style="{ 'font-size': '13px', 'border-bottom': 'none' }"
:data="moreNewsList"
highlight-current-row
style="width: 100%">
<el-table-column
align=
"left"
property=
"subject"
label=
"标题"
>
style="width: 100%"
>
<el-table-column
align=
"left"
property=
"subject"
label=
"标题"
>
</el-table-column>
<el-table-column
align=
"center"
property=
"newsTime"
label=
"时间"
width=
"150"
>
width=
"150"
>
</el-table-column>
<el-table-column
align=
"center"
property=
"clickCount"
label=
"点击"
width=
"120"
>
width=
"120"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.clickCount == null"
>
0
</span>
<span
v-else
>
{{
scope
.
row
.
clickCount
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
property=
"commentCount"
label=
"评论"
width=
"50"
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"50"
align=
"center"
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"50"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-button
@
click=
"setParams(scope.row)"
type=
"text"
size=
"mini"
>
size=
"mini"
>
查看
</el-button>
</
template
>
</el-table-column>
</el-table>
<div
style=
"margin-top:
10px;
"
>
<div
style=
"margin-top:
10px
"
>
<el-pagination
prev-text=
"上一页"
next-text=
"下一页"
...
...
@@ -80,12 +88,9 @@
@
size-change=
"sizeChange"
/>
</div>
</div>
</div>
</el-col>
</el-row>
</el-col>
</el-row>
...
...
@@ -94,38 +99,37 @@
<
script
>
import
{
newsFromBoard
,
latestNewOfGXCourt
,
//获取全区速递
topList
,
//今日头条
}
from
"@/api/homePage.js"
latestNewOfGXCourt
,
//获取全区速递
topList
,
//今日头条
}
from
"@/api/homePage.js"
;
export
default
{
name
:
"show"
,
data
()
{
return
{
menuName
:
''
,
breadList
:[],
//面包屑列表
pageInfo
:
{
page
:
1
,
size
:
10
,
total
:
0
menuName
:
""
,
breadList
:
[],
//面包屑列表
pageInfo
:
{
page
:
1
,
size
:
10
,
total
:
0
,
},
moreNewsList
:[],
//搜索出来的新闻
}
moreNewsList
:
[],
//搜索出来的新闻
};
},
created
()
{
// this.getBreadcrumb();
var
type
=
this
.
$route
.
query
.
type
;
if
(
type
==
'vedio'
)
{
var
type
=
this
.
$route
.
query
.
type
;
if
(
type
==
"vedio"
)
{
this
.
getVedio
();
this
.
menuName
=
'音视频点播'
}
else
if
(
type
==
'top'
)
{
this
.
topListFun
();
//今日头条
this
.
menuName
=
'今日头条'
}
else
if
(
type
==
'all'
)
{
this
.
getLatestNewOfGXCourt
();
//获取全区速递
this
.
menuName
=
'全区速递'
this
.
menuName
=
"音视频点播"
;
}
else
if
(
type
==
"top"
)
{
this
.
topListFun
();
//今日头条
this
.
menuName
=
"今日头条"
;
}
else
if
(
type
==
"all"
)
{
this
.
getLatestNewOfGXCourt
();
//获取全区速递
this
.
menuName
=
"全区速递"
;
}
},
//监听路由获取面包屑
...
...
@@ -133,72 +137,67 @@ export default {
$route
()
{
if
(
this
.
$route
.
query
.
type
)
{
// this.getBreadcrumb();
var
type
=
this
.
$route
.
query
.
type
;
if
(
type
==
'vedio'
)
{
var
type
=
this
.
$route
.
query
.
type
;
if
(
type
==
"vedio"
)
{
this
.
getVedio
();
this
.
menuName
=
'音视频点播'
}
else
if
(
type
==
'top'
)
{
this
.
topListFun
();
//今日头条
this
.
menuName
=
'今日头条'
}
else
if
(
type
==
'all'
)
{
this
.
getLatestNewOfGXCourt
();
//获取全区速递
this
.
menuName
=
'全区速递 '
this
.
menuName
=
"音视频点播"
;
}
else
if
(
type
==
"top"
)
{
this
.
topListFun
();
//今日头条
this
.
menuName
=
"今日头条"
;
}
else
if
(
type
==
"all"
)
{
this
.
getLatestNewOfGXCourt
();
//获取全区速递
this
.
menuName
=
"全区速递 "
;
}
}
},
},
methods
:
{
methods
:
{
// 获取面包屑
// getBreadcrumb(){
// this.breadList=this.$route.matched.filter(item=>item.meta && item.meta.title);
// console.log('this.breadList==',this.breadList);
// },
//全区速递
getLatestNewOfGXCourt
()
{
getLatestNewOfGXCourt
()
{
// this.pageInfo.deptId=32;
latestNewOfGXCourt
(
this
.
pageInfo
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
moreNewsList
=
res
.
data
.
records
;
this
.
pageInfo
.
total
=
res
.
data
.
total
;
latestNewOfGXCourt
(
this
.
pageInfo
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
moreNewsList
=
res
.
data
.
records
;
this
.
pageInfo
.
total
=
res
.
data
.
total
;
}
})
});
},
//今日头条
topListFun
()
{
this
.
pageInfo
.
fyId
=
32
;
topList
(
this
.
pageInfo
).
then
(
res
=>
{
topListFun
()
{
this
.
pageInfo
.
fyId
=
32
;
topList
(
this
.
pageInfo
).
then
((
res
)
=>
{
// this.topList = res.data.records
// this.headlineRotation = res.data.records
this
.
moreNewsList
=
res
.
data
.
records
;
this
.
pageInfo
.
total
=
res
.
data
.
total
;
})
this
.
moreNewsList
=
res
.
data
.
records
;
this
.
pageInfo
.
total
=
res
.
data
.
total
;
});
},
// 视频点播
// 视频点播boardId是1965
getVedio
()
{
this
.
pageInfo
.
fyId
=
1965
;
newsFromBoard
(
this
.
pageInfo
).
then
(
res
=>
{
getVedio
()
{
this
.
pageInfo
.
fyId
=
1965
;
newsFromBoard
(
this
.
pageInfo
).
then
((
res
)
=>
{
// this.videoLiet = res.data.newsList.records
this
.
moreNewsList
=
res
.
data
.
newsList
.
records
;
this
.
pageInfo
.
total
=
res
.
data
.
total
;
})
this
.
moreNewsList
=
res
.
data
.
newsList
.
records
;
this
.
pageInfo
.
total
=
res
.
data
.
total
;
});
},
pageChange
(
e
)
{
this
.
pageInfo
.
page
=
e
;
// this.getLatestNewOfGXCourt();
var
type
=
this
.
$route
.
query
.
type
;
if
(
type
==
'vedio'
)
{
var
type
=
this
.
$route
.
query
.
type
;
if
(
type
==
"vedio"
)
{
this
.
getVedio
();
}
else
if
(
type
==
'top'
)
{
this
.
topListFun
();
//今日头条
}
else
if
(
type
==
'all'
)
{
this
.
getLatestNewOfGXCourt
();
//获取全区速递
}
else
if
(
type
==
"top"
)
{
this
.
topListFun
();
//今日头条
}
else
if
(
type
==
"all"
)
{
this
.
getLatestNewOfGXCourt
();
//获取全区速递
}
},
sizeChange
(
e
)
{
...
...
@@ -206,106 +205,102 @@ export default {
this
.
pageChange
(
1
);
},
// 查看详情
setParams
(
val
)
{
setParams
(
val
)
{
this
.
$router
.
push
({
path
:
'/detail'
,
//跳转路由
query
:{
//参数对象
newsId
:
val
.
newsId
}
path
:
"/detail"
,
//跳转路由
query
:
{
//参数对象
newsId
:
val
.
newsId
,
},
});
},
switchMenu
(
type
)
{
this
.
pageInfo
.
page
=
1
;
this
.
pageInfo
.
size
=
10
;
this
.
pageInfo
.
total
=
0
;
if
(
type
==
'vedio'
)
{
switchMenu
(
type
)
{
this
.
pageInfo
.
page
=
1
;
this
.
pageInfo
.
size
=
10
;
this
.
pageInfo
.
total
=
0
;
if
(
type
==
"vedio"
)
{
this
.
getVedio
();
this
.
menuName
=
'音视频点播'
}
else
if
(
type
==
'top'
)
{
this
.
topListFun
();
//今日头条
this
.
menuName
=
'今日头条'
}
else
if
(
type
==
'all'
)
{
this
.
getLatestNewOfGXCourt
();
//获取全区速递
this
.
menuName
=
'全区速递'
this
.
menuName
=
"音视频点播"
;
}
else
if
(
type
==
"top"
)
{
this
.
topListFun
();
//今日头条
this
.
menuName
=
"今日头条"
;
}
else
if
(
type
==
"all"
)
{
this
.
getLatestNewOfGXCourt
();
//获取全区速递
this
.
menuName
=
"全区速递"
;
}
}
}
}
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
//
树形菜单图标
start-----------------------
.el-tree
{
background
:
transparent
;
.el-tree
{
background
:
transparent
;
}
.el-tree
/
deep
/
.el-tree-node__expand-icon.expanded
{
.el-tree
/
deep
/
.el-tree-node__expand-icon.expanded
{
-webkit-transform
:
rotate
(
0deg
);
transform
:
rotate
(
0deg
);
}
/*//有子节点 且未展开*/
.el-tree
/
deep
/
.el-icon-caret-right
:before
{
}
/*//有子节点 且未展开*/
.el-tree
/
deep
/
.el-icon-caret-right
:before
{
background
:
url("../../assets/wjjg.png")
no-repeat
0
3px
;
content
:
''
;
content
:
""
;
display
:
block
;
width
:
16px
;
height
:
16px
;
font-size
:
16px
;
background-size
:
16px
;
}
/*//有子节点 且已展开*/
.el-tree
/
deep
/
.el-tree-node__expand-icon.expanded.el-icon-caret-right
:before
{
}
/*//有子节点 且已展开*/
.el-tree
/
deep
/
.el-tree-node__expand-icon.expanded.el-icon-caret-right
:before
{
background
:
url("../../assets/wjjk.png")
no-repeat
0
3px
;
content
:
''
;
content
:
""
;
display
:
block
;
width
:
16px
;
height
:
16px
;
font-size
:
16px
;
background-size
:
16px
;
}
/*//没有子节点*/
.el-tree
/
deep
/
.el-tree-node__expand-icon.is-leaf
::before
{
}
/*//没有子节点*/
.el-tree
/
deep
/
.el-tree-node__expand-icon.is-leaf
::before
{
background
:
url("../../assets/wj.png")
no-repeat
0
3px
;
content
:
''
;
content
:
""
;
display
:
block
;
width
:
16px
;
height
:
16px
;
font-size
:
16px
;
background-size
:
16px
;
}
}
//
树形菜单图标
end-----------------------
.top-info
{
margin
:
15px
0
;
border-bottom
:
2px
solid
#34bab2
;
padding-bottom
:
15px
;
.top-info
{
margin
:
15px
0
;
border-bottom
:
2px
solid
#34bab2
;
padding-bottom
:
15px
;
}
.fist-text
{
display
:
inline-block
;
width
:
26px
;
height
:
26px
;
line-height
:
26px
;
text-align
:
center
;
font-size
:
15px
;
color
:
#fff
;
border-radius
:
50%
;
background
:
#1a3784
;
margin-right
:
3px
;
.fist-text
{
display
:
inline-block
;
width
:
26px
;
height
:
26px
;
line-height
:
26px
;
text-align
:
center
;
font-size
:
15px
;
color
:
#fff
;
border-radius
:
50%
;
background
:
#1a3784
;
margin-right
:
3px
;
}
.list-container
{
.list-container
{
//
border
:
2px
solid
#34bab2
;
//
padding
:
15px
15px
;
//
margin-top
:
40px
;
}
.list-title
{
border-bottom
:
1px
dashed
#ccc
;
.list-title
{
border-bottom
:
1px
dashed
#ccc
;
line-height
:
35px
;
}
//
列表
start
.type-list
li
{
.type-list
li
{
list-style-type
:
square
;
//
color
:
#0099ff
;
color
:
blue
;
...
...
@@ -313,39 +308,38 @@ export default {
line-height
:
35px
;
border-bottom
:
1px
dashed
#ccc
;
}
.type-list
li
a
{
.type-list
li
a
{
color
:
#333
;
font-size
:
14px
;
text-decoration
:
none
;
text-decoration
:
none
;
}
.type-list
li
:hover
{
.type-list
li
:hover
{
//
color
:
#ff6900
;
color
:
red
;
}
.type-list
li
:hover
a
{
.type-list
li
:hover
a
{
//
color
:
#ff6900
color
:
red
;
color
:
red
;
}
.type-list
li
:last-of-type
{
border-bottom
:
none
;
}
.type-list
li
:last-of-type
{
border-bottom
:
none
;}
//
列表
end
ul
{
ul
{
margin
:
0px
;
padding
:
0px
;
padding-left
:
15px
;
}
.zone-style
{
background-color
:
#fff
;
padding
:
15px
15px
;
border-radius
:
5px
;
box-shadow
:
-5px
0px
20px
5px
rgba
(
0
,
0
,
0
,
0.05
);
}
}
.zone-style
{
background-color
:
#fff
;
padding
:
15px
15px
;
border-radius
:
5px
;
box-shadow
:
-5px
0px
20px
5px
rgba
(
0
,
0
,
0
,
0.05
);
}
::v-deep
{
.el-table
th
:
first-child
>
.
cell
{
text-align
:
left
!important
;
}
::v-deep
{
.el-table
th
:
first-child
>
.
cell
{
text-align
:
left
!important
;
}
}
</
style
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment