Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
e14004e0
Commit
e14004e0
authored
Aug 30, 2021
by
李萌萌
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pgis_data' of
http://47.92.108.28/changchao/founder_vue
into pgis_data
parents
3539c035
7780aba7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
174 additions
and
0 deletions
+174
-0
public/cfg/cfg.js
+7
-0
src/views/Home.vue
+8
-0
src/views/block/homePageRightButton.vue
+159
-0
No files found.
public/cfg/cfg.js
View file @
e14004e0
...
...
@@ -389,4 +389,11 @@ window.pageConfig = {
],
},
},
buttonData
:
{
registerData
:
[],
manageUserData
:
[],
VisitData
:
[],
modeldata
:
[],
helpData
:
[],
},
};
src/views/Home.vue
View file @
e14004e0
...
...
@@ -17,6 +17,8 @@
<mapPage
v-show=
"!is3D"
></mapPage>
<map3DPage
v-show=
"is3D"
></map3DPage>
<searchBox></searchBox>
<layerArrayBox
v-on:changeMap=
"changeMap"
></layerArrayBox>
<homePageRightButton
@
click=
"changeDetailLayer"
></homePageRightButton>
<layerArrayBox
v-show=
"isShowArrayBox"
v-on:changeMap=
"changeMap"
></layerArrayBox>
<div
:style=
"
{
...
...
@@ -38,6 +40,7 @@ import mapToolBlk from "./block/mapTool.vue";
import
saveBoxBlk
from
"./block/saveBox.vue"
;
import
searchBox
from
"./block/searchBox.vue"
;
import
layerArrayBox
from
"./block/layerArrayBox.vue"
;
import
homePageRightButton
from
"./block/homePageRightButton.vue"
;
export
default
{
name
:
"Home"
,
components
:
{
...
...
@@ -48,12 +51,14 @@ export default {
saveBoxBlk
,
searchBox
,
layerArrayBox
,
homePageRightButton
},
data
()
{
return
{
// 展示地图,true:三维;false:二维
is3D
:
this
.
$root
.
isShow3D
,
isShowSaveBox
:
false
,
showDetail
:
false
,
isShowArrayBox
:
true
,
};
},
...
...
@@ -80,6 +85,9 @@ export default {
changeMap
()
{
this
.
is3D
=
this
.
$root
.
isShow3D
;
},
changeDetailLayer
()
{
this
.
showDetail
=
true
;
}
},
};
</
script
>
...
...
src/views/block/homePageRightButton.vue
0 → 100644
View file @
e14004e0
<
template
>
<div
class=
"homePageRightButton"
>
<div
class=
"rightButton"
>
<button
:class=
"isShowRegister ? 'buttonActive' : ''"
@
click=
"showRegister"
>
注册用户
</button>
<button
:class=
"isShowManageUser ? 'buttonActive' : ''"
@
click=
"showManageUser"
>
管理用户
</button>
<button
:class=
"isShowVisit ? 'buttonActive' : ''"
@
click=
"showVisit"
>
访问流量
</button>
<button
:class=
"isShowModelMessage ? 'buttonActive' : ''"
@
click=
"showModelMessage"
>
模块信息
</button>
<button
:class=
"isShowHelp ? 'buttonActive' : ''"
@
click=
"showHelp"
><i
class=
"el-icon-question"
></i>
帮助
</button>
</div>
<div
class=
"detailBox"
v-show=
"isShoewDetailBox"
>
<div
class=
"boxTitle"
>
<span>
{{
box
.
title
}}
</span>
<div
class=
"closeItem"
@
click=
"closeDetailBox"
>
<i
class=
"el-icon-close"
></i>
</div>
</div>
<div
class=
"boxContent"
>
<el-table
:data=
"tableData"
border
stripe
>
<el-table-column
v-for=
"item in tableData"
:key=
"item.id"
:prop=
"item.label"
label=
"日期"
width=
"180"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
value
}}
</
template
>
</el-table-column>
</el-table>
</div>
<div
class=
"boxPagination"
>
</div>
</div>
</div>
</template>
<
script
>
export
default
{
name
:
"homePageRightButton"
,
components
:
{},
data
()
{
return
{
isShoewDetailBox
:
false
,
isShowRegister
:
false
,
isShowManageUser
:
false
,
isShowVisit
:
false
,
isShowModelMessage
:
false
,
isShowHelp
:
false
,
box
:
{
title
:
""
,
registerArray
:
[],
},
};
},
methods
:
{
closeDetailBox
()
{
this
.
isShoewDetailBox
=
false
;
this
.
isShowRegister
=
false
;
this
.
isShowManageUser
=
false
;
this
.
isShowVisit
=
false
;
this
.
isShowModelMessage
=
false
;
this
.
isShowHelp
=
false
;
},
showRegister
()
{
this
.
closeDetailBox
();
this
.
isShoewDetailBox
=
true
;
this
.
isShowRegister
=
true
;
},
showManageUser
()
{
this
.
closeDetailBox
();
this
.
isShoewDetailBox
=
true
;
this
.
isShowManageUser
=
true
;
},
showVisit
()
{
this
.
closeDetailBox
();
this
.
isShoewDetailBox
=
true
;
this
.
isShowVisit
=
true
;
},
showModelMessage
()
{
this
.
closeDetailBox
();
this
.
isShoewDetailBox
=
true
;
this
.
isShowModelMessage
=
true
;
},
showHelp
()
{
this
.
closeDetailBox
();
this
.
isShoewDetailBox
=
true
;
this
.
isShowHelp
=
true
;
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.rightButton
{
padding
:
10px
;
width
:
140px
;
max-height
:
calc
(
100%
-
200px
);
overflow-y
:
auto
;
position
:
absolute
;
top
:
236px
;
right
:
20px
;
display
:
flex
;
flex-direction
:
column
;
button
{
width
:
119px
;
height
:
40px
;
line-height
:
20px
;
border-radius
:
4px
;
background-color
:
#183250
;
color
:
#D1F1FF
;
font-family
:
MicrosoftYaHei
;
text-align
:
center
;
font-size
:
16px
;
margin-bottom
:
16px
;
}
.buttonActive
{
width
:
119px
;
height
:
40px
;
line-height
:
20px
;
border-radius
:
4px
;
border
:
none
;
background-color
:
#1DB4EF
;
color
:
#fff
;
font-family
:
MicrosoftYaHei
;
text-align
:
center
;
font-size
:
16px
;
}
}
.detailBox
{
width
:
896px
;
height
:
581px
;
position
:
absolute
;
left
:
50%
;
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
background-color
:
#183250
;
display
:
flex
;
flex-direction
:
column
;
.closeItem
{
float
:
right
;
width
:
15px
;
height
:
15px
;
margin
:
23px
;
}
}
</
style
>
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