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
a15a203b
Commit
a15a203b
authored
Apr 20, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
请求设备列表添加区域参数
parent
c47641bb
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
10 deletions
+21
-10
CampusRank.vue
src/containers/Dashboard/CampusRank/CampusRank.vue
+3
-3
CampusRankChart.vue
src/containers/Dashboard/CampusRank/CampusRankChart.vue
+1
-1
Dashboard.js
src/containers/Dashboard/Dashboard.js
+15
-4
SeviceRatio.vue
src/containers/Dashboard/SeviceRatio/SeviceRatio.vue
+2
-2
No files found.
src/containers/Dashboard/CampusRank/CampusRank.vue
View file @
a15a203b
...
...
@@ -35,7 +35,7 @@
:changeCampusHandle=
"changeCampusHandle"
:updateCampusName=
"updateCampusName"
/>
<div
class=
"SeviceRatio-title"
>
{{
areaName
}}
</div>
<div
class=
"SeviceRatio-title"
>
{{
area
Info
.
area
Name
}}
</div>
</div>
</
template
>
...
...
@@ -50,7 +50,7 @@ export default {
...
mapGetters
(
'Dashboard'
,
[
'campusRankList'
,
'filters'
,
'area
Name
'
,
'area
Info
'
,
'loading'
,
]),
},
...
...
@@ -69,7 +69,7 @@ export default {
areaId
:
data
.
areaId
,
updatePercentList
:
true
,
}).
then
(()
=>
{
this
.
updateCampusName
(
data
.
areaName
);
this
.
updateCampusName
(
data
);
});
},
},
...
...
src/containers/Dashboard/CampusRank/CampusRankChart.vue
View file @
a15a203b
...
...
@@ -101,7 +101,7 @@ export default {
this
.
chartGeom
.
setSelected
(
this
.
data
[
0
]);
this
.
changeSelected
(
this
.
data
[
0
]);
this
.
updateCampusName
(
this
.
data
[
0
]
.
areaName
);
this
.
updateCampusName
(
this
.
data
[
0
]);
this
.
SelectedDataIndex
=
this
.
data
[
0
];
}
else
{
this
.
updateCampusName
();
...
...
src/containers/Dashboard/Dashboard.js
View file @
a15a203b
...
...
@@ -35,7 +35,10 @@ const state = () => ({
regist
:
false
,
},
consume
:
{
areaInfo
:
{
areaName
:
''
,
areaId
:
undefined
,
},
consumeAfterVos
:
[],
consumeHardVos
:
[],
list
:
[],
...
...
@@ -62,7 +65,7 @@ const getters = {
registePerMonth
:
state
=>
state
.
report
.
registePerMonth
,
activeUser
:
state
=>
state
.
report
.
activeUser
,
titleData
:
state
=>
state
.
title
,
area
Name
:
state
=>
state
.
consume
.
areaName
,
area
Info
:
state
=>
state
.
consume
.
areaInfo
,
consumeAfterVos
:
state
=>
state
.
consume
.
consumeAfterVos
,
consumeHardVos
:
state
=>
state
.
consume
.
consumeHardVos
,
campusRankList
:
state
=>
state
.
consume
.
list
,
...
...
@@ -90,6 +93,7 @@ const actions = {
commit
(
LOADING_SERVICE
,
true
);
}
else
if
(
data
&&
data
.
updateEuipmentList
)
{
entity
.
serviceId
=
data
.
serviceId
;
entity
.
areaId
=
getters
.
areaInfo
.
areaId
;
commit
(
LOADING_EQUIPMENT
,
true
);
}
else
{
commit
(
LOADING_AREA
,
true
);
...
...
@@ -137,8 +141,15 @@ const actions = {
commit
(
GET_TITLE_DATA
,
data
);
});
},
updateCampusName
({
commit
},
name
)
{
commit
(
GET_CAMPUS_DATA
,
name
);
updateCampusName
({
commit
},
data
)
{
if
(
data
)
{
commit
(
GET_CAMPUS_DATA
,
data
);
}
else
{
commit
(
GET_CAMPUS_DATA
,
{
areaId
:
undefined
,
areaName
:
''
,
});
}
},
};
...
...
@@ -196,7 +207,7 @@ const mutations = {
state
.
title
=
data
;
},
[
GET_CAMPUS_DATA
](
state
,
name
)
{
state
.
consume
.
area
Name
=
name
;
state
.
consume
.
area
Info
=
name
;
},
[
LOADING_AREA
](
state
,
fetching
)
{
state
.
loading
.
area
=
fetching
;
...
...
src/containers/Dashboard/SeviceRatio/SeviceRatio.vue
View file @
a15a203b
...
...
@@ -14,7 +14,7 @@
:data=
"seviceRatioList"
:changeServiceHandle=
"changeServiceHandle"
/>
<div
class=
"SeviceRatio-title"
>
{{
areaName
}}
</div>
<div
class=
"SeviceRatio-title"
>
{{
area
Info
.
area
Name
}}
</div>
</div>
</
template
>
...
...
@@ -25,7 +25,7 @@ export default {
name
:
'SeviceRatio'
,
components
:
{
SeviceRatioChart
},
computed
:
{
...
mapGetters
(
'Dashboard'
,
[
'seviceRatioList'
,
'area
Name
'
,
'loading'
]),
...
mapGetters
(
'Dashboard'
,
[
'seviceRatioList'
,
'area
Info
'
,
'loading'
]),
},
methods
:
{
...
mapActions
(
'Dashboard'
,
[
'fetchConsumeList'
]),
...
...
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