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
67d66c42
Commit
67d66c42
authored
Oct 23, 2021
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
66
parent
53f5ea8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
63 deletions
+87
-63
src/views/homePage/index.vue
+5
-5
src/views/zone/index.vue
+82
-58
No files found.
src/views/homePage/index.vue
View file @
67d66c42
...
@@ -44,11 +44,11 @@
...
@@ -44,11 +44,11 @@
</div>
</div>
</div>
</div>
<div
v-for=
"(item,index) in topList"
:key=
"index"
class=
"k-flex k-space-between top-list"
@
click=
"setParams(item)"
>
<div
v-for=
"(item,index) in topList"
:key=
"index"
class=
"k-flex k-space-between top-list"
@
click=
"setParams(item)"
>
<div
class=
"article-name"
>
<div
class=
"article-name
k-flex k-align-center
"
>
<span
class=
"right-line"
>
{{
item
.
boardName
}}
</span>
<span
class=
"right-line"
>
{{
item
.
boardName
}}
</span>
<span
>
{{
item
.
subject
}}
</span
>
<div
class=
"k-all"
style=
"overflow:hidden;text-overflow:ellipsis;"
>
{{
item
.
subject
}}
</div
>
</div>
</div>
<div
v-if=
"item.newsTime
"
>
{{
item
.
newsTime
.
substring
(
5
,
10
)
}}
</div>
<div
v-if=
"item.newsTime"
style=
"white-space:nowrap;
"
>
{{
item
.
newsTime
.
substring
(
5
,
10
)
}}
</div>
</div>
</div>
</div>
</div>
<!--今日头条结束-->
<!--今日头条结束-->
...
@@ -1079,7 +1079,7 @@ color:#fff;
...
@@ -1079,7 +1079,7 @@ color:#fff;
}
}
.right-line
{
.right-line
{
display
:
inline-block
;
display
:
inline-block
;
width
:
20%
;
//
width
:
20%
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
padding-right
:
2px
;
padding-right
:
2px
;
...
...
src/views/zone/index.vue
View file @
67d66c42
...
@@ -19,63 +19,67 @@
...
@@ -19,63 +19,67 @@
<el-col
:span=
"19"
>
<el-col
:span=
"19"
>
<div
class=
"zone-style"
>
<div
class=
"zone-style"
>
<div
style=
"min-height:76vh;"
>
<div
style=
"min-height:76vh;"
>
<el-table
<div
class=
"mb-10"
style=
"font-size:12px;font-weight:bold;"
>
法院新闻:
{{
menuName
}}
</div>
:header-cell-style=
"
{'text-align':'center','font-size':'15px','color':'black'}"
<!--
<el-breadcrumb-item
v-for=
"(v,i) in breadList"
:key=
"i"
>
:cell-style="{'font-size':'13px','border-bottom':'none'}"
<router-link
:to=
"v.path"
>
{{
v
.
meta
.
title
}}
</router-link>
:data="moreNewsList"
</el-breadcrumb-item>
-->
highlight-current-row
<el-table
style="width: 100%">
:header-cell-style=
"
{'text-align':'center','font-size':'15px','color':'black'}"
<el-table-column
:cell-style="{'font-size':'13px','border-bottom':'none'}"
align=
"left"
:data="moreNewsList"
property=
"subject"
highlight-current-row
label=
"标题"
>
style="width: 100%">
</el-table-column>
<el-table-column
<el-table-column
align=
"left"
align=
"center"
property=
"subject"
property=
"newsTime"
label=
"标题"
>
label=
"时间"
</el-table-column>
width=
"150"
>
<el-table-column
</el-table-column>
align=
"center"
<el-table-column
property=
"newsTime"
align=
"center"
label=
"时间"
property=
"clickCount"
width=
"150"
>
label=
"点击"
</el-table-column>
width=
"120"
>
<el-table-column
</el-table-column>
align=
"center"
<el-table-column
property=
"clickCount"
align=
"center"
label=
"点击"
property=
"commentCount"
width=
"120"
>
label=
"评论"
</el-table-column>
width=
"50"
>
<el-table-column
</el-table-column>
align=
"center"
<el-table-column
property=
"commentCount"
label=
"操作"
label=
"评论"
width=
"50"
width=
"50"
>
align=
"center"
</el-table-column>
>
<el-table-column
<template
slot-scope=
"scope"
>
label=
"操作"
<el-button
width=
"50"
@
click=
"setParams(scope.row)"
align=
"center"
type=
"text"
>
size=
"mini"
>
<template
slot-scope=
"scope"
>
查看
<el-button
</el-button>
@
click=
"setParams(scope.row)"
</
template
>
type=
"text"
</el-table-column>
size=
"mini"
>
</el-table>
查看
</el-button>
<div
style=
"margin-top:10px;"
>
</
template
>
<el-pagination
</el-table-column>
prev-text=
"上一页"
</el-table>
next-text=
"下一页"
layout=
"total,sizes,prev, pager, next,jumper"
<div
style=
"margin-top:10px;"
>
:total=
"pageInfo.total"
<el-pagination
:page-size=
"pageInfo.size"
prev-text=
"上一页"
:current-page=
"pageInfo.page"
next-text=
"下一页"
@
current-change=
"pageChange"
layout=
"total,sizes,prev, pager, next,jumper"
@
size-change=
"sizeChange"
:total=
"pageInfo.total"
/>
:page-size=
"pageInfo.size"
</div>
:current-page=
"pageInfo.page"
@
current-change=
"pageChange"
@
size-change=
"sizeChange"
/>
</div>
</div>
</div>
</div>
</div>
...
@@ -98,6 +102,8 @@ export default {
...
@@ -98,6 +102,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
menuName
:
''
,
breadList
:[],
//面包屑列表
pageInfo
:{
pageInfo
:{
page
:
1
,
page
:
1
,
size
:
10
,
size
:
10
,
...
@@ -109,33 +115,48 @@ export default {
...
@@ -109,33 +115,48 @@ export default {
},
},
created
()
{
created
()
{
//
this.getLatestNewOfGXCourt
();
//
this.getBreadcrumb
();
var
type
=
this
.
$route
.
query
.
type
;
var
type
=
this
.
$route
.
query
.
type
;
if
(
type
==
'vedio'
){
if
(
type
==
'vedio'
){
this
.
getVedio
();
this
.
getVedio
();
this
.
menuName
=
'音视频点播'
}
else
if
(
type
==
'top'
){
}
else
if
(
type
==
'top'
){
this
.
topListFun
();
//今日头条
this
.
topListFun
();
//今日头条
this
.
menuName
=
'今日头条'
}
else
if
(
type
==
'all'
){
}
else
if
(
type
==
'all'
){
this
.
getLatestNewOfGXCourt
();
//获取全区速递
this
.
getLatestNewOfGXCourt
();
//获取全区速递
this
.
menuName
=
'全区速递'
}
}
},
},
//监听路由获取面包屑
//监听路由获取面包屑
watch
:
{
watch
:
{
$route
()
{
$route
()
{
if
(
this
.
$route
.
query
.
type
)
{
if
(
this
.
$route
.
query
.
type
)
{
// this.getBreadcrumb();
var
type
=
this
.
$route
.
query
.
type
;
var
type
=
this
.
$route
.
query
.
type
;
if
(
type
==
'vedio'
){
if
(
type
==
'vedio'
){
this
.
getVedio
();
this
.
getVedio
();
this
.
menuName
=
'音视频点播'
}
else
if
(
type
==
'top'
){
}
else
if
(
type
==
'top'
){
this
.
topListFun
();
//今日头条
this
.
topListFun
();
//今日头条
this
.
menuName
=
'今日头条'
}
else
if
(
type
==
'all'
){
}
else
if
(
type
==
'all'
){
this
.
getLatestNewOfGXCourt
();
//获取全区速递
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;
// this.pageInfo.deptId=32;
...
@@ -199,10 +220,13 @@ export default {
...
@@ -199,10 +220,13 @@ export default {
this
.
pageInfo
.
total
=
0
;
this
.
pageInfo
.
total
=
0
;
if
(
type
==
'vedio'
){
if
(
type
==
'vedio'
){
this
.
getVedio
();
this
.
getVedio
();
this
.
menuName
=
'音视频点播'
}
else
if
(
type
==
'top'
){
}
else
if
(
type
==
'top'
){
this
.
topListFun
();
//今日头条
this
.
topListFun
();
//今日头条
this
.
menuName
=
'今日头条'
}
else
if
(
type
==
'all'
){
}
else
if
(
type
==
'all'
){
this
.
getLatestNewOfGXCourt
();
//获取全区速递
this
.
getLatestNewOfGXCourt
();
//获取全区速递
this
.
menuName
=
'全区速递'
}
}
}
}
...
...
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