Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
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
海康威视
web-project
Commits
a0e76e82
Commit
a0e76e82
authored
Aug 16, 2024
by
朱超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
换热站趋势图
parent
1d10a0e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
20 deletions
+55
-20
analysis.js
src/api/analysis.js
+14
-0
TransferEnergyView.vue
src/views/HandlerPage/TransferEnergyView.vue
+41
-20
No files found.
src/api/analysis.js
View file @
a0e76e82
...
@@ -78,6 +78,20 @@ export const postSecTrafficUc = params => {
...
@@ -78,6 +78,20 @@ export const postSecTrafficUc = params => {
})
})
}
}
//板换效率趋势一
export
const
postFirEffiTrendUc
=
params
=>
{
return
http
.
post
(
`/api/analysis/external/FirEffiTrendUc`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
error
);
})
}
//板换效率趋势二
export
const
postSecEffiTrendUc
=
params
=>
{
return
http
.
post
(
`/api/analysis/external/SecEffiTrendUc`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
error
);
})
}
//热量分析报表
//热量分析报表
export
const
postHeatAnalysis
=
params
=>
{
export
const
postHeatAnalysis
=
params
=>
{
return
http
.
post
(
`/api/analysis/report/HeatAnalysis`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
return
http
.
post
(
`/api/analysis/report/HeatAnalysis`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
...
...
src/views/HandlerPage/TransferEnergyView.vue
View file @
a0e76e82
...
@@ -88,28 +88,11 @@
...
@@ -88,28 +88,11 @@
<el-option
label=
"换热站板换效率"
:value=
"7"
/>
<el-option
label=
"换热站板换效率"
:value=
"7"
/>
<el-option
label=
"换热站二网均温"
:value=
"8"
/>
<el-option
label=
"换热站二网均温"
:value=
"8"
/>
<el-option
label=
"二网温差"
:value=
"9"
/>
<el-option
label=
"二网温差"
:value=
"9"
/>
<el-option
label=
"二网均温"
:value=
"8"
/>
<el-option
label=
"二网万平米流量"
:value=
"11"
/>
<el-option
label=
"二网万平米流量"
:value=
"11"
/>
<el-option
label=
"板换效率趋势一"
:value=
"12"
/>
<el-option
label=
"板换效率趋势二"
:value=
"13"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<!--
<el-form-item
label=
"用量环比类型"
v-show=
"energyTypeDis"
>
<el-select
v-model=
"enertyInfo.energyType"
placeholder=
"请选择"
>
<el-option
label=
"耗水"
:value=
"2"
/>
<el-option
label=
"耗热"
:value=
"3"
/>
<el-option
label=
"耗电"
:value=
"4"
/>
</el-select>
</el-form-item>
-->
<!--
<el-form-item>
<el-button
type=
"primary"
@
click=
"sendClick"
style=
"margin: 15px 0 0 0;"
>
查询
</el-button>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"exportTableToExcel"
style=
"margin: 15px 0 0 0;"
>
导出表格
</el-button
>
</el-form-item>
-->
<div
style=
"position: absolute; right: 2%"
>
<div
style=
"position: absolute; right: 2%"
>
<el-button
<el-button
type=
"primary"
type=
"primary"
...
@@ -168,6 +151,8 @@ import {
...
@@ -168,6 +151,8 @@ import {
postSecAvgTUc
,
postSecAvgTUc
,
postSecAbsTUc
,
postSecAbsTUc
,
postSecTrafficUc
,
postSecTrafficUc
,
postFirEffiTrendUc
,
postSecEffiTrendUc
,
}
from
"../../api/analysis"
;
}
from
"../../api/analysis"
;
const
options
=
reactive
([]);
const
options
=
reactive
([]);
const
enterpriseId
=
ref
();
const
enterpriseId
=
ref
();
...
@@ -260,7 +245,7 @@ function exportTableToExcel() {
...
@@ -260,7 +245,7 @@ function exportTableToExcel() {
type
:
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"
,
type
:
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"
,
});
});
const
downloadUrl
=
URL
.
createObjectURL
(
dataBlob
);
const
downloadUrl
=
URL
.
createObjectURL
(
dataBlob
);
saveAs
(
dataBlob
,
"
tableData
.xlsx"
);
saveAs
(
dataBlob
,
"
换热站趋势图
.xlsx"
);
ElMessage
.
success
(
"导出成功!请稍后。。。"
);
ElMessage
.
success
(
"导出成功!请稍后。。。"
);
}
}
...
@@ -410,6 +395,12 @@ function sendClick() {
...
@@ -410,6 +395,12 @@ function sendClick() {
case
11
:
case
11
:
postSecTrafficUcFun
();
//二网万平米流量
postSecTrafficUcFun
();
//二网万平米流量
break
;
break
;
case
12
:
postFirEffiTrendUcFun
();
break
;
case
13
:
postSecEffiTrendUcFun
();
break
;
}
}
enertyTab
.
value
=
"能耗值("
+
company
.
value
+
")"
;
enertyTab
.
value
=
"能耗值("
+
company
.
value
+
")"
;
}
else
{
}
else
{
...
@@ -621,6 +612,36 @@ function postSecTrafficUcFun() {
...
@@ -621,6 +612,36 @@ function postSecTrafficUcFun() {
});
});
}
}
function
postFirEffiTrendUcFun
()
{
tabloading
.
value
=
true
;
postFirEffiTrendUc
(
enertyInfo
).
then
((
res
)
=>
{
echarts
.
dispose
(
document
.
getElementById
(
"echartsLayer"
));
if
(
res
.
success
===
true
)
{
pageInitFun
(
res
);
}
else
if
(
res
.
status
==
9
)
{
setInterval
(
function
()
{
tabloading
.
value
=
false
;
this
.
postFirEffiTrendUcFun
();
},
600000
);
}
});
}
function
postSecEffiTrendUcFun
()
{
tabloading
.
value
=
true
;
postSecEffiTrendUc
(
enertyInfo
).
then
((
res
)
=>
{
echarts
.
dispose
(
document
.
getElementById
(
"echartsLayer"
));
if
(
res
.
success
===
true
)
{
pageInitFun
(
res
);
}
else
if
(
res
.
status
==
9
)
{
setInterval
(
function
()
{
tabloading
.
value
=
false
;
this
.
postFirEffiTrendUcFun
();
},
600000
);
}
});
}
function
pageInitFun
(
res
)
{
function
pageInitFun
(
res
)
{
tableData
.
length
=
0
;
tableData
.
length
=
0
;
res
.
data
.
hourWater
.
forEach
((
element
)
=>
{
res
.
data
.
hourWater
.
forEach
((
element
)
=>
{
...
...
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