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
9a921db3
Commit
9a921db3
authored
Oct 23, 2021
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
55
parent
5071f593
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
26 deletions
+39
-26
src/views/homePage/index.vue
+3
-1
src/views/layout/menu.vue
+36
-25
No files found.
src/views/homePage/index.vue
View file @
9a921db3
...
@@ -160,7 +160,7 @@
...
@@ -160,7 +160,7 @@
<!-- 法院业务右边轮播轮播图 -->
<!-- 法院业务右边轮播轮播图 -->
<el-col
:span=
"11"
>
<el-col
:span=
"11"
>
<el-carousel
style=
"border-radius:8px;"
height=
"280px"
:interval=
"4000"
>
<el-carousel
style=
"border-radius:8px;"
height=
"280px"
:interval=
"4000"
>
<el-carousel-item
style=
"border-radius:8px;"
v-for=
"(item,index) in tableData.slice(0,3)"
:key=
"item.id"
>
<el-carousel-item
style=
"border-radius:8px;"
v-for=
"(item,index) in tableData
All
.slice(0,3)"
:key=
"item.id"
>
<div
v-if=
"item.attInfoList && index
<3
"
class=
"carousel-div"
style=
"border-radius:8px;"
@
click=
"setParams(item)"
>
<div
v-if=
"item.attInfoList && index
<3
"
class=
"carousel-div"
style=
"border-radius:8px;"
@
click=
"setParams(item)"
>
<el-image
v-if=
"item.attInfoList[0] && item.attInfoList[0].downloadPath"
:src=
"item.attInfoList[0].downloadPath"
fit=
"contain"
style=
"width:100%;height:100%;"
></el-image>
<el-image
v-if=
"item.attInfoList[0] && item.attInfoList[0].downloadPath"
:src=
"item.attInfoList[0].downloadPath"
fit=
"contain"
style=
"width:100%;height:100%;"
></el-image>
<div
class=
"carousel-intro"
style=
""
>
<div
class=
"carousel-intro"
style=
""
>
...
@@ -484,6 +484,7 @@ export default {
...
@@ -484,6 +484,7 @@ export default {
date
:
'09-23'
date
:
'09-23'
},
},
],
],
tableDataAll
:[],
//法院业务轮播图
tableData
:
[
tableData
:
[
// {
// {
// date: '2016-05-02 12:00:00',
// date: '2016-05-02 12:00:00',
...
@@ -714,6 +715,7 @@ export default {
...
@@ -714,6 +715,7 @@ export default {
getBoardAndSubAllNews
({
boardId
:
130
,
page
:
1
,
size
:
10
}).
then
(
res
=>
{
getBoardAndSubAllNews
({
boardId
:
130
,
page
:
1
,
size
:
10
}).
then
(
res
=>
{
if
(
res
.
success
){
if
(
res
.
success
){
this
.
tableData
=
res
.
data
.
records
;
this
.
tableData
=
res
.
data
.
records
;
this
.
tableDataAll
=
res
.
data
.
records
;
}
}
})
})
...
...
src/views/layout/menu.vue
View file @
9a921db3
...
@@ -305,7 +305,7 @@ export default {
...
@@ -305,7 +305,7 @@ export default {
},
},
{
{
name
:
"work"
,
name
:
"work"
,
path
:
"
/list
"
,
path
:
""
,
boardId
:
135
,
boardId
:
135
,
meta
:
{
title
:
"干警作品"
},
meta
:
{
title
:
"干警作品"
},
},
},
...
@@ -313,18 +313,18 @@ export default {
...
@@ -313,18 +313,18 @@ export default {
name
:
"fun"
,
name
:
"fun"
,
path
:
""
,
path
:
""
,
meta
:
{
title
:
"娱乐"
},
meta
:
{
title
:
"娱乐"
},
children
:
[
//
children: [
{
//
{
name
:
"fun1"
,
//
name: "fun1",
path
:
""
,
//
path: "",
meta
:
{
title
:
"休闲娱乐"
},
//
meta: { title: "休闲娱乐" },
},
//
},
{
//
{
name
:
"fun2"
,
//
name: "fun2",
path
:
""
,
//
path: "",
meta
:
{
title
:
"论坛交流"
},
//
meta: { title: "论坛交流" },
},
//
},
],
//
],
},
},
{
{
name
:
"allCourt"
,
name
:
"allCourt"
,
...
@@ -352,11 +352,15 @@ export default {
...
@@ -352,11 +352,15 @@ export default {
this
.
getSubLevelBoard
(
2
,
130
);
//法院业务
this
.
getSubLevelBoard
(
2
,
130
);
//法院业务
},
},
methods
:
{
methods
:
{
//1、点击一级导航
menuRouterClick
(
item
,
index
)
{
menuRouterClick
(
item
,
index
)
{
console
.
log
(
"menuRouterClick-index=="
,
index
);
console
.
log
(
"menuRouterClick-index=="
,
index
);
console
.
log
(
"menuRouterClick-item=="
,
item
);
console
.
log
(
"menuRouterClick-item=="
,
item
);
this
.
classA
=
index
;
console
.
log
(
'this.routesList=='
,
this
.
routesList
);
// this.classA = index;
console
.
log
(
"this.classA=="
,
this
.
classA
);
console
.
log
(
"this.classA=="
,
this
.
classA
);
this
.
classA
=
index
;
item
=
this
.
routesList
[
this
.
classA
];
// return;
// return;
if
(
item
.
name
==
"manage"
)
{
if
(
item
.
name
==
"manage"
)
{
// var url=process.env.VUE_APP_LOGIN_API+'/manage'
// var url=process.env.VUE_APP_LOGIN_API+'/manage'
...
@@ -368,7 +372,8 @@ export default {
...
@@ -368,7 +372,8 @@ export default {
if
(
!
userInfo
){
if
(
!
userInfo
){
this
.
$message
({
this
.
$message
({
message
:
'请先登录!'
,
message
:
'请先登录!'
,
type
:
'error'
type
:
'error'
,
});
});
return
;
return
;
...
@@ -384,7 +389,8 @@ export default {
...
@@ -384,7 +389,8 @@ export default {
}
else
if
(
item
.
name
==
"fun"
){
}
else
if
(
item
.
name
==
"fun"
){
this
.
$message
({
this
.
$message
({
message
:
'维护中...'
,
message
:
'维护中...'
,
type
:
'error'
type
:
'error'
,
duration
:
1000
});
});
return
;
return
;
}
else
{
}
else
{
...
@@ -397,25 +403,29 @@ export default {
...
@@ -397,25 +403,29 @@ export default {
},
},
});
});
}
}
},
},
//
点击
子栏目--跳转到列表
//
2、点击二级
子栏目--跳转到列表
menuselected
(
item
,
subItem
)
{
menuselected
(
item
,
subItem
)
{
// alert('item');
// alert('item');
console
.
log
(
"点击子菜单1=="
,
item
);
console
.
log
(
"点击子菜单1=="
,
item
);
console
.
log
(
"点击子菜单2=="
,
subItem
);
console
.
log
(
"点击子菜单2=="
,
subItem
);
// this.routesList.forEach()
console
.
log
(
'this.routesList=='
,
this
.
routesList
);
for
(
var
i
=
0
;
i
<
this
.
routesList
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
this
.
routesList
.
length
;
i
++
)
{
if
(
this
.
routesList
[
i
].
name
==
item
.
name
)
{
if
(
this
.
routesList
[
i
].
name
==
item
.
name
)
{
this
.
classA
=
i
;
this
.
classA
=
i
;
}
}
}
}
if
(
item
.
name
=
"fun"
){
this
.
$message
({
// if(item.name="fun"){
message
:
'维护中...'
,
// this.$message({
type
:
'error'
// message:'开发中...',
});
// type:'error'
return
;
// });
}
// return;
// }
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/list"
,
//跳转路由
path
:
"/list"
,
//跳转路由
query
:
{
query
:
{
...
@@ -426,6 +436,7 @@ export default {
...
@@ -426,6 +436,7 @@ export default {
});
});
},
},
// treeNavSwitch(){},
// treeNavSwitch(){},
//获取全区法院
//获取全区法院
...
...
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