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
6b668c7f
Commit
6b668c7f
authored
Apr 19, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复调整消费占比时运营商更新错误
parent
f55b32e0
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 @
6b668c7f
...
@@ -5,13 +5,13 @@
...
@@ -5,13 +5,13 @@
<operator-select
<operator-select
:accessType=
"1"
:accessType=
"1"
:value=
"filters.operateId"
:value=
"filters.operateId"
@
input=
"val =>
fetchConsumeList
(
{ operateId: val })"
@
input=
"val =>
changeFilterHandle
(
{ operateId: val })"
/>
/>
</search-item>
</search-item>
<el-radio-group
<el-radio-group
class=
"Dashboard-Radio"
class=
"Dashboard-Radio"
:value=
"filters.timeType"
:value=
"filters.timeType"
@
input=
"val =>
fetchConsumeList
(
{ timeType: val })"
@
input=
"val =>
changeFilterHandle
(
{ timeType: val })"
>
>
<el-radio
<el-radio
class=
"Dashboard-Radio-item"
class=
"Dashboard-Radio-item"
...
@@ -47,7 +47,17 @@ export default {
...
@@ -47,7 +47,17 @@ export default {
...
mapGetters
(
'Dashboard'
,
[
'campusRankList'
,
'filters'
,
'areaName'
]),
...
mapGetters
(
'Dashboard'
,
[
'campusRankList'
,
'filters'
,
'areaName'
]),
},
},
methods
:
{
methods
:
{
...
mapActions
(
'Dashboard'
,
[
'fetchConsumeList'
,
'updateCampusName'
]),
...
mapActions
(
'Dashboard'
,
[
'fetchConsumeList'
,
'updateCampusName'
,
'updateFilters'
,
]),
changeFilterHandle
(
data
)
{
this
.
updateFilters
(
data
);
this
.
fetchConsumeList
().
then
(()
=>
{
this
.
updateCampusName
(
data
.
areaName
);
});
},
changeCampusHandle
(
data
)
{
changeCampusHandle
(
data
)
{
this
.
fetchConsumeList
({
this
.
fetchConsumeList
({
areaId
:
data
.
areaId
,
areaId
:
data
.
areaId
,
...
...
src/containers/Dashboard/CampusRank/CampusRankChart.vue
View file @
6b668c7f
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
前十校区:
<span>
{{
topTen
}}
</span>
前十校区:
<span>
{{
topTen
}}
</span>
</
template
>
</
template
>
<
template
v-else-if=
"this.data.length"
>
<
template
v-else-if=
"this.data.length"
>
校区汇总:
<span>
{{
topTen
}}
</span>
校区汇总:
<span>
{{
topTen
.
toFixed
(
2
)
}}
</span>
</
template
>
</
template
>
</div>
</div>
</div>
</div>
...
...
src/containers/Dashboard/Dashboard.js
View file @
6b668c7f
...
@@ -60,17 +60,7 @@ const getters = {
...
@@ -60,17 +60,7 @@ const getters = {
};
};
const
actions
=
{
const
actions
=
{
fetchConsumeList
({
commit
,
dispatch
,
getters
},
data
)
{
fetchConsumeList
({
commit
,
getters
},
data
)
{
if
(
data
)
{
const
{
timeType
,
operateId
}
=
data
;
(
timeType
||
timeType
==
0
)
&&
dispatch
(
'updateFilters'
,
{
timeType
:
timeType
,
});
dispatch
(
'updateFilters'
,
{
operateId
,
});
}
let
entity
=
getFilters
(
getters
.
filters
);
let
entity
=
getFilters
(
getters
.
filters
);
switch
(
entity
.
timeType
)
{
switch
(
entity
.
timeType
)
{
case
1
:
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