Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
ZhangJianFrontEnd
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
vue-project
ZhangJian
ZhangJianFrontEnd
Commits
0664cad6
Commit
0664cad6
authored
Aug 11, 2021
by
wuxiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
d3ce4bbc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
Center.vue
src/pages/index/Center.vue
+14
-7
index.vue
src/pages/index/index.vue
+1
-0
No files found.
src/pages/index/Center.vue
View file @
0664cad6
...
...
@@ -3,7 +3,7 @@
<div
class=
"survey-content"
>
<div
class=
"item"
v-for=
"(g, l) in survey"
:key=
"l"
>
<count-to
:endVal=
"g.value"
/>
<p>
{{
g
.
name
}}
</p>
<p>
{{
g
.
key
}}
</p>
</div>
</div>
<div
class=
"china-map-warp"
>
...
...
@@ -34,14 +34,15 @@ export default {
TitleLine
,
ChinaMap
},
props
:
{
centerData
:
{
default
:
{},
type
:
Object
}
},
data
()
{
return
{
survey
:
[
{
name
:
'学员数'
,
value
:
31721
},
{
name
:
'班级数'
,
value
:
105
},
{
name
:
'二级协会数'
,
value
:
15
}
],
survey
:
[],
chinaMapConfig
:
{
base
:
{},
seriesData
:
[]
...
...
@@ -53,9 +54,15 @@ export default {
mounted
()
{
this
.
getInitChinaMap
()
this
.
initSurvey
()
},
methods
:
{
initSurvey
()
{
if
(
this
.
centerData
&&
this
.
centerData
.
survey
&&
this
.
centerData
.
survey
.
list
)
{
this
.
survey
=
this
.
centerData
.
survey
.
list
||
[]
}
},
getInitChinaMap
()
{
let
series
=
[]
let
maps
=
[[
'南通'
,
this
.
chinaDatas
]]
...
...
src/pages/index/index.vue
View file @
0664cad6
...
...
@@ -71,6 +71,7 @@ export default {
}
// 中间数据
this
.
centerData
=
{
survey
:
data
.
p11
||
{}
// 中间概况数据
}
// 右侧数据
this
.
rightData
=
{
...
...
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