Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-manage-shell
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-manage-shell
Commits
36b03cd0
Commit
36b03cd0
authored
Apr 19, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'test'
修复调整消费占比时运营商更新错误 See merge request
!15
parents
43de3064
6b668c7f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
CampusRank.vue
src/containers/Dashboard/CampusRank/CampusRank.vue
+13
-3
CampusRankChart.vue
src/containers/Dashboard/CampusRank/CampusRankChart.vue
+1
-1
Dashboard.js
src/containers/Dashboard/Dashboard.js
+1
-11
No files found.
src/containers/Dashboard/CampusRank/CampusRank.vue
View file @
36b03cd0
...
...
@@ -5,13 +5,13 @@
<operator-select
:accessType=
"1"
:value=
"filters.operateId"
@
input=
"val =>
fetchConsumeList
(
{ operateId: val })"
@
input=
"val =>
changeFilterHandle
(
{ operateId: val })"
/>
</search-item>
<el-radio-group
class=
"Dashboard-Radio"
:value=
"filters.timeType"
@
input=
"val =>
fetchConsumeList
(
{ timeType: val })"
@
input=
"val =>
changeFilterHandle
(
{ timeType: val })"
>
<el-radio
class=
"Dashboard-Radio-item"
...
...
@@ -47,7 +47,17 @@ export default {
...
mapGetters
(
'Dashboard'
,
[
'campusRankList'
,
'filters'
,
'areaName'
]),
},
methods
:
{
...
mapActions
(
'Dashboard'
,
[
'fetchConsumeList'
,
'updateCampusName'
]),
...
mapActions
(
'Dashboard'
,
[
'fetchConsumeList'
,
'updateCampusName'
,
'updateFilters'
,
]),
changeFilterHandle
(
data
)
{
this
.
updateFilters
(
data
);
this
.
fetchConsumeList
().
then
(()
=>
{
this
.
updateCampusName
(
data
.
areaName
);
});
},
changeCampusHandle
(
data
)
{
this
.
fetchConsumeList
({
areaId
:
data
.
areaId
,
...
...
src/containers/Dashboard/CampusRank/CampusRankChart.vue
View file @
36b03cd0
...
...
@@ -7,7 +7,7 @@
前十校区:
<span>
{{
topTen
}}
</span>
</
template
>
<
template
v-else-if=
"this.data.length"
>
校区汇总:
<span>
{{
topTen
}}
</span>
校区汇总:
<span>
{{
topTen
.
toFixed
(
2
)
}}
</span>
</
template
>
</div>
</div>
...
...
src/containers/Dashboard/Dashboard.js
View file @
36b03cd0
...
...
@@ -60,17 +60,7 @@ const getters = {
};
const
actions
=
{
fetchConsumeList
({
commit
,
dispatch
,
getters
},
data
)
{
if
(
data
)
{
const
{
timeType
,
operateId
}
=
data
;
(
timeType
||
timeType
==
0
)
&&
dispatch
(
'updateFilters'
,
{
timeType
:
timeType
,
});
dispatch
(
'updateFilters'
,
{
operateId
,
});
}
fetchConsumeList
({
commit
,
getters
},
data
)
{
let
entity
=
getFilters
(
getters
.
filters
);
switch
(
entity
.
timeType
)
{
case
1
:
...
...
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