Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
E
energyai_vue
Project
Project
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
葛齐林
energyai_vue
Commits
be42c2ea
Commit
be42c2ea
authored
Apr 15, 2021
by
co_dengxiongwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面调整
parent
0a2f5062
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
88 additions
and
480 deletions
+88
-480
page.vue
src/pages/analysis/energy/page.vue
+70
-71
index.vue
src/pages/analysis/indoor/index.vue
+7
-1
config.js
src/pages/eq/hall/config.js
+7
-165
page.vue
src/pages/eq/hall/page.vue
+0
-1
config.js
src/pages/eq/office/config.js
+4
-242
No files found.
src/pages/analysis/energy/page.vue
View file @
be42c2ea
...
...
@@ -2,24 +2,6 @@
<div
class=
"energy-page"
>
<cardList
cardListTitle=
"能耗数据分析"
>
<div
slot=
"right"
>
<!--
<span
:class=
"activeIndex === index ? 'active-hight-linght' : ''"
class=
"date-text"
@
click=
"activehandle(item, index)"
v-for=
"(item, index) in dateList"
:key=
"item.value"
>
{{
item
.
label
}}
</span
>
-->
<!--
<el-date-picker
size=
"mini"
type=
"daterange"
range-separator=
"~"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
-->
<!--
</el-date-picker>
-->
<!--
<i
style=
" padding-left:20px;padding-right: 20px;color:#21acfc"
class=
"el-icon-s-unfold"
></i>
-->
<!--
<i
class=
"el-icon-printer"
style=
"color:#21acfc"
></i>
-->
<el-button
size=
"mini"
type=
"primary"
@
click=
"toPowerPage"
>
图形/列表
</el-button
>
...
...
@@ -27,6 +9,15 @@
<div
slot=
"content"
style=
"height: calc(100% - 70px)"
>
<div>
<el-tabs
class=
"en-tabs"
v-model=
"activetap"
>
<el-tab-pane
:label=
"item.label"
:name=
"item.value"
v-for=
"(item, index) in energyTabList"
:key=
"index"
></el-tab-pane>
</el-tabs>
</div>
<div>
<el-form
:inline=
"true"
size=
"mini"
style=
"padding-top: 15px"
>
<!--
<el-form-item
label=
"时间范围:"
>
<el-date-picker
...
...
@@ -55,28 +46,25 @@
<el-button
size=
"mini"
type=
"primary"
@
click=
"handleDate(index
)"
@
click=
"handleDate(item.id
)"
v-for=
"(item, index) in typeList"
:key=
"index"
:class=
"[index
== currentActive ? 'isActive' : '']"
:class=
"[item.id
== currentActive ? 'isActive' : '']"
>
{{
item
.
name
}}
</el-button>
</el-form-item>
</el-form>
<el-tab-pane
:label=
"item.label"
:name=
"item.value"
v-for=
"(item, index) in energyTabList"
:key=
"index"
></el-tab-pane>
</el-tabs>
</div>
<div
style=
"height: calc(100% - 70px)"
>
<!--
<chart
yAxisName=
'单位:kwh'
></chart>
-->
<chart
id=
"111"
:data=
"data"
title=
"能耗数据"
color=
"#21ACFC"
yAxisName=
'单位:kwh'
></chart>
<chart
id=
"111"
:data=
"data"
title=
"能耗数据"
color=
"#21ACFC"
yAxisName=
"单位:kwh"
></chart>
</div>
</div>
</cardList>
...
...
@@ -97,68 +85,79 @@ export default {
},
data
()
{
return
{
startTime
:
''
,
endTime
:
''
,
activeIndex
:
1
,
activetap
:
'01'
,
activetap
:
'1'
,
typeList
:
[
{
name
:
'当日'
},
{
name
:
'本周'
},
{
name
:
'当月'
},
{
name
:
'今年'
}
],
currentActive
:
'0'
,
data
:
[
[
'2019-8-14 8:00:00'
,
70
],
[
'2019-8-14 8:00:01'
,
60
],
[
'2019-8-14 8:00:02'
,
30
],
[
'2019-8-14 8:00:03'
,
79
],
[
'2019-8-14 8:00:06'
,
10
],
[
'2019-8-14 8:00:20'
,
31
]
{
name
:
'当日'
,
id
:
1
},
{
name
:
'本周'
,
id
:
2
},
{
name
:
'当月'
,
id
:
3
},
{
name
:
'今年'
,
id
:
4
}
],
currentActive
:
1
,
data
:
[],
energyTabList
:
[
{
value
:
'
0
1'
,
value
:
'1'
,
label
:
'全部'
},
{
value
:
'
02
'
,
value
:
'
b6af764f2a6e454490a6b1b3c9057e57
'
,
label
:
'排风机'
},
{
value
:
'
0
3'
,
value
:
'
ece0b8b2db27411886254e81134988a
3'
,
label
:
'机房空调(220V)'
},
{
value
:
'
04
'
,
value
:
'
b47661ca1d454f9792ba5369f3cb2bc5
'
,
label
:
'机房空调(380V)'
},
{
value
:
'
05
'
,
value
:
'
c788ce98c1f248f590434394da485ce4
'
,
label
:
'防火卷帘门'
},
{
value
:
'
06
'
,
value
:
'
b45827c068254695864ee3c1d42573cb
'
,
label
:
'风冷热泵机组'
},
{
value
:
'
07
'
,
value
:
'
303310efddb34a2e9bf269bdff8a7dc5
'
,
label
:
'室内机风柜'
},
{
value
:
'
08
'
,
value
:
'
173466a2cf9a42a6a17b2bdfbeae36d5
'
,
label
:
'多联室外机'
}
]
}
},
watch
:
{
activetap
()
{
this
.
getDataList
()
}
},
mounted
()
{
this
.
getDataList
()
},
methods
:
{
activehandle
(
item
,
index
)
{
this
.
activeIndex
=
index
getDataList
()
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/analysis/getEnergyFx'
),
method
:
'get'
,
params
:
this
.
$http
.
adornParams
({
resourceType
:
this
.
activetap
,
//资源点类型
type
:
this
.
currentActive
})
}).
then
((
data
)
=>
{
if
(
data
&&
data
.
code
===
0
)
{
// console.log('数据', data)
this
.
data
=
data
.
list
}
})
},
// 当日 ,本周
handleDate
(
i
)
{
this
.
currentActive
=
i
this
.
getDataList
()
},
toPowerPage
()
{
this
.
$router
.
push
({
...
...
src/pages/analysis/indoor/index.vue
View file @
be42c2ea
...
...
@@ -48,15 +48,20 @@ export default {
]
}
},
mounted
()
{
this
.
getDataList
()
},
methods
:
{
tabClick
(
tab
,
event
)
{
console
.
log
(
tab
,
event
)
// console.log(tab, event)
this
.
getDataList
()
},
getDataList
()
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/analysis/getSnqxzInfoTj'
),
method
:
'get'
,
params
:
this
.
$http
.
adornParams
({
resourceId
:
''
,
region
:
Number
(
this
.
activeName
),
//区域类型
type
:
this
.
currentActive
})
...
...
@@ -73,6 +78,7 @@ export default {
// 当日 ,本周
handleDate
(
i
)
{
this
.
currentActive
=
i
this
.
getDataList
()
}
}
}
...
...
src/pages/eq/hall/config.js
View file @
be42c2ea
export
const
tableColumsOne
=
[
{
align
:
'center'
,
prop
:
'
A
'
,
prop
:
'
name
'
,
label
:
'设备名称'
,
width
:
132
},
{
align
:
'center'
,
prop
:
'
B
'
,
prop
:
'
deployLocation
'
,
label
:
'设备位置'
// width: 112,
},
{
align
:
'center'
,
prop
:
'
C
'
,
prop
:
'
status
'
,
label
:
'设备状态'
,
width
:
182
},
...
...
@@ -31,7 +31,7 @@
},
{
align
:
'center'
,
prop
:
'
F
'
,
prop
:
'
code
'
,
label
:
'设备编号'
,
width
:
132
}
...
...
@@ -46,7 +46,7 @@
},
{
align
:
'center'
,
prop
:
'
stationName
'
,
prop
:
'
deployLocation
'
,
label
:
'设备位置'
// width: 112,
},
...
...
@@ -58,7 +58,7 @@
},
{
align
:
'center'
,
prop
:
'
D
'
,
prop
:
'
status
'
,
label
:
'设备状态'
,
width
:
182
},
...
...
@@ -76,166 +76,8 @@
},
{
align
:
'center'
,
prop
:
'
G
'
,
prop
:
'
code
'
,
label
:
'设备编号'
,
width
:
132
}
]
export
const
tableDataOne
=
[
{
A
:
'风冷热泵机组'
,
B
:
'左侧办公房屋'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'风冷热泵机组'
,
B
:
'左侧办公房屋'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'风冷热泵机组'
,
B
:
'左侧办公房屋'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'风冷热泵机组'
,
B
:
'左侧办公房屋'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'风冷热泵机组'
,
B
:
'左侧办公房屋'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
}
]
export
const
tableDataTwo
=
[
{
A
:
'室内机风柜'
,
B
:
'屋面'
,
C
:
'110'
,
D
:
'开启'
,
E
:
'10'
,
F
:
'100'
,
G
:
'JK-1'
},
{
A
:
'室内机风柜'
,
B
:
'屋面'
,
C
:
'110'
,
D
:
'开启'
,
E
:
'10'
,
F
:
'100'
,
G
:
'JK-1'
},
{
A
:
'室内机风柜'
,
B
:
'屋面'
,
C
:
'110'
,
D
:
'开启'
,
E
:
'10'
,
F
:
'100'
,
G
:
'JK-1'
},
{
A
:
'室内机风柜'
,
B
:
'屋面'
,
C
:
'110'
,
D
:
'开启'
,
E
:
'10'
,
F
:
'100'
,
G
:
'JK-1'
},
{
A
:
'室内机风柜'
,
B
:
'屋面'
,
C
:
'110'
,
D
:
'开启'
,
E
:
'10'
,
F
:
'100'
,
G
:
'JK-1'
},
{
A
:
'室内机风柜'
,
B
:
'屋面'
,
C
:
'110'
,
D
:
'开启'
,
E
:
'10'
,
F
:
'100'
,
G
:
'JK-1'
}
]
export
const
tableDataThree
=
[
{
A
:
'水泵'
,
B
:
'通信机械室'
,
C
:
'110'
,
D
:
'开启'
,
E
:
'10'
,
F
:
'100'
,
G
:
'JK-1'
},
{
A
:
'水泵'
,
B
:
'通信机械室'
,
C
:
'110'
,
D
:
'开启'
,
E
:
'10'
,
F
:
'100'
,
G
:
'JK-1'
},
{
A
:
'水泵'
,
B
:
'通信机械室'
,
C
:
'110'
,
D
:
'开启'
,
E
:
'10'
,
F
:
'100'
,
G
:
'JK-1'
},
{
A
:
'水泵'
,
B
:
'通信机械室'
,
C
:
'110'
,
D
:
'开启'
,
E
:
'10'
,
F
:
'100'
,
G
:
'JK-1'
},
{
A
:
'水泵'
,
B
:
'通信机械室'
,
C
:
'110'
,
D
:
'开启'
,
E
:
'10'
,
F
:
'100'
,
G
:
'JK-1'
},
{
A
:
' 水泵'
,
B
:
'通信机械室'
,
C
:
'110'
,
D
:
'开启'
,
E
:
'10'
,
F
:
'100'
,
G
:
'JK-1'
}
]
src/pages/eq/hall/page.vue
View file @
be42c2ea
...
...
@@ -259,7 +259,6 @@ export default {
if
(
data
&&
data
.
code
===
0
)
{
console
.
log
(
'数据'
,
data
)
this
.
tableData
=
data
.
page
.
rows
// this.tableColums = crecords
this
.
totalSize
=
data
.
page
.
total
}
else
{
...
...
src/pages/eq/office/config.js
View file @
be42c2ea
export
const
tableColumsOne
=
[
{
align
:
'center'
,
prop
:
'
A
'
,
prop
:
'
name
'
,
label
:
'设备名称'
,
width
:
132
},
{
align
:
'center'
,
prop
:
'
B
'
,
prop
:
'
deployLocation
'
,
label
:
'设备位置'
// width: 150
},
{
align
:
'center'
,
prop
:
'
C
'
,
prop
:
'
status
'
,
label
:
'设备状态'
,
width
:
182
},
...
...
@@ -31,246 +31,8 @@
},
{
align
:
'center'
,
prop
:
'
F
'
,
prop
:
'
code
'
,
label
:
'设备编号'
,
width
:
132
}
]
export
const
tableDataOne
=
[
{
A
:
'排风机'
,
B
:
'左侧办公房屋'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'DLW-A1'
},
{
A
:
'排风机'
,
B
:
'左侧办公房屋'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'DLW-A1'
},
{
A
:
'排风机'
,
B
:
'左侧办公房屋'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'DLW-A1'
},
{
A
:
'排风机'
,
B
:
'左侧办公房屋'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'DLW-A1'
}
]
export
const
tableDataTwo
=
[
{
A
:
'机房空调(220V)'
,
B
:
'左侧旅客服务房屋'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'DLW-A1'
},
{
A
:
'机房空调(220V)'
,
B
:
'左侧旅客服务房屋'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'DLW-A1'
},
{
A
:
'机房空调(220V)'
,
B
:
'左侧旅客服务房屋'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'DLW-A1'
},
{
A
:
'机房空调(220V)'
,
B
:
'左侧旅客服务房屋'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'DLW-A1'
}
]
export
const
tableDataThree
=
[
{
A
:
'机房空调(380V)'
,
B
:
'通信机械室'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'机房空调(380V)'
,
B
:
'通信机械室'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'机房空调(380V)'
,
B
:
'通信机械室'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'机房空调(380V)'
,
B
:
'通信机械室'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'机房空调(380V)'
,
B
:
'通信机械室'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
}
]
export
const
tableDataFour
=
[
{
A
:
'防火卷帘门'
,
B
:
'售票厅'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'防火卷帘门'
,
B
:
'售票厅'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
}
]
export
const
tableDataFive
=
[
{
A
:
'多联室内机'
,
B
:
'左侧办公房屋'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'多联室内机'
,
B
:
'左侧办公房屋'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'多联室内机'
,
B
:
'左侧办公房屋'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'多联室内机'
,
B
:
'左侧办公房屋'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
}
]
export
const
tableDataSix
=
[
{
A
:
'多联室外机'
,
B
:
'屋面'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'多联室外机'
,
B
:
'屋面'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'多联室外机'
,
B
:
'屋面'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'多联室外机'
,
B
:
'屋面'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
}
]
export
const
tableDataSeven
=
[
{
A
:
'换气扇'
,
B
:
'VIP候车室'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'换气扇'
,
B
:
'VIP候车室'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'换气扇'
,
B
:
'VIP候车室'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-1'
},
{
A
:
'换气扇'
,
B
:
'VIP候车室'
,
C
:
'开启'
,
D
:
'10'
,
E
:
'100'
,
F
:
'JK-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