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