Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-system
Project
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
姜雷
dcxy-system
Commits
086fc429
Commit
086fc429
authored
Apr 24, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改首页其他校区选择
parent
c9611609
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
CampusRank.vue
src/containers/Dashboard/CampusRank/CampusRank.vue
+9
-1
CampusRankChart.vue
src/containers/Dashboard/CampusRank/CampusRankChart.vue
+3
-0
chart.vue
src/containers/Dashboard/CustomerRecharge/chart.vue
+3
-3
No files found.
src/containers/Dashboard/CampusRank/CampusRank.vue
View file @
086fc429
...
...
@@ -34,8 +34,9 @@
:data=
"campusRankList"
:changeCampusHandle=
"changeCampusHandle"
:updateCampusName=
"updateCampusName"
:showOtherNameHandle=
"showOtherNameHandle"
/>
<div
class=
"SeviceRatio-title"
>
{{
areaInfo
.
areaName
}}
</div>
<div
class=
"SeviceRatio-title"
>
{{
showOther
?
'其他校区'
:
areaInfo
.
areaName
}}
</div>
</div>
</
template
>
...
...
@@ -54,6 +55,9 @@ export default {
'loading'
,
]),
},
data
()
{
return
{
showOther
:
false
};
},
methods
:
{
...
mapActions
(
'Dashboard'
,
[
'fetchConsumeList'
,
...
...
@@ -70,8 +74,12 @@ export default {
updatePercentList
:
true
,
}).
then
(()
=>
{
this
.
updateCampusName
(
data
);
this
.
showOther
=
false
;
});
},
showOtherNameHandle
()
{
this
.
showOther
=
true
;
},
},
};
</
script
>
src/containers/Dashboard/CampusRank/CampusRankChart.vue
View file @
086fc429
...
...
@@ -24,6 +24,7 @@ export default {
props
:
{
changeCampusHandle
:
{
type
:
Function
},
updateCampusName
:
{
type
:
Function
},
showOtherNameHandle
:
{
type
:
Function
},
},
data
()
{
let
total
=
this
.
data
.
reduce
((
count
,
item
)
=>
count
+
item
.
count
,
0
);
...
...
@@ -115,6 +116,8 @@ export default {
this
.
changeSelected
(
data
);
if
(
data
.
areaId
)
{
this
.
changeCampusHandle
(
data
);
}
else
{
this
.
showOtherNameHandle
();
}
}
},
...
...
src/containers/Dashboard/CustomerRecharge/chart.vue
View file @
086fc429
...
...
@@ -135,7 +135,7 @@ export default {
container
:
'CustomerRechargeChart'
,
forceFit
:
true
,
height
:
this
.
height
,
padding
:
[
30
,
7
0
,
20
,
120
],
padding
:
[
30
,
9
0
,
20
,
120
],
});
this
.
chart
.
source
(
dv
,
{
...
...
@@ -182,7 +182,7 @@ export default {
top
:
true
,
position
:
[
'100%'
,
'0%'
],
content
:
'(人)'
,
offsetX
:
1
0
,
offsetX
:
3
0
,
offsetY
:
-
8
,
});
...
...
@@ -190,7 +190,7 @@ export default {
top
:
true
,
position
:
[
'100%'
,
'100%'
],
content
:
'(元)'
,
offsetX
:
1
0
,
offsetX
:
3
0
,
offsetY
:
8
,
});
...
...
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