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
860b5c15
Commit
860b5c15
authored
Jan 07, 2025
by
方建宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
锅炉工艺图
parent
a94ccd08
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1257 additions
and
197 deletions
+1257
-197
AllBoilerArt.vue
src/components/art/AllBoilerArt.vue
+221
-115
BoilerArt.vue
src/components/art/BoilerArt.vue
+161
-82
boilerArt.js
src/dataJson/RealPage/boilerArt.js
+875
-0
No files found.
src/components/art/AllBoilerArt.vue
View file @
860b5c15
This diff is collapsed.
Click to expand it.
src/components/art/BoilerArt.vue
View file @
860b5c15
...
@@ -127,7 +127,7 @@ import { useRoute } from 'vue-router'
...
@@ -127,7 +127,7 @@ import { useRoute } from 'vue-router'
import
store
from
"../../store/index"
;
import
store
from
"../../store/index"
;
import
http
from
'../../api/http'
;
import
http
from
'../../api/http'
;
import
{
getOneImgUrl
,
getAllImgUrl
}
from
'../../utils/utils'
;
import
{
getOneImgUrl
,
getAllImgUrl
}
from
'../../utils/utils'
;
import
{
boilerArtWork
,
deviceArt
,
deviceArt2
,
deviceArt3
,
pipeArt
,
weatherArt
}
from
'../../dataJson/RealPage/boilerArt'
;
const
props
=
defineProps
([
'id'
,
'refreshTime'
]);
const
props
=
defineProps
([
'id'
,
'refreshTime'
]);
const
route
=
useRoute
()
const
route
=
useRoute
()
const
Boiler
=
ref
();
const
Boiler
=
ref
();
...
@@ -227,23 +227,86 @@ function getSupplysList() {
...
@@ -227,23 +227,86 @@ function getSupplysList() {
}
}
//获取气象实时数据
//获取气象实时数据
// function getweather() {
// http.post("/api/weather/Real", SupplyId.value).then((result) => {
// temperature.value = result.data["temperature"];
// wind.value = result.data["wind"];
// illumination.value = result.data["illumination"];
// humidity.value = result.data["humidity"];
// })
// }
function
getweather
()
{
function
getweather
()
{
http
.
post
(
"/api/weather/Real"
,
SupplyId
.
value
).
then
((
result
)
=>
{
temperature
.
value
=
weatherArt
.
data
[
"temperature"
];
temperature
.
value
=
result
.
data
[
"temperature"
];
wind
.
value
=
weatherArt
.
data
[
"wind"
];
wind
.
value
=
result
.
data
[
"wind"
];
illumination
.
value
=
weatherArt
.
data
[
"illumination"
];
illumination
.
value
=
result
.
data
[
"illumination"
];
humidity
.
value
=
weatherArt
.
data
[
"humidity"
];
humidity
.
value
=
result
.
data
[
"humidity"
];
})
}
}
getBoilerData
();
getBoilerData
();
//获取锅炉实时数据
//获取锅炉实时数据
// function getBoilerData() {
// result.data.realData.forEach(element => {
// BoilerData[element.enName] = element.paramValue;
// })
// result.data.realStatus.forEach(element => {
// status[element.enName] = element.paramValue;
// })
// ExhaustTemp.value = BoilerData["ExhaustTemp"];
// InletPressure.value = BoilerData["InletPressure"];
// InletTemp.value = BoilerData["InletTemp"];
// OutletPressure.value = BoilerData["OutletPressure"];
// OutletTemp.value = BoilerData["OutletTemp"];
// BlastOutletPressure.value = BoilerData["BlastOutletPressure"];
// FirepotPressure.value = BoilerData["FirepotPressure"];
// FirepotTemp.value = BoilerData["FirepotTemp"];
// EconomizerInletTemp.value = BoilerData["EconomizerInletTemp"];
// GasLoad.value = BoilerData["GasLoad"];
// SmokeDetectionT.value = BoilerData["SmokeDetectionT"];
// SmokeDetectionP.value = BoilerData["SmokeDetectionP"];
// SmokeDetectionH2O.value = BoilerData["SmokeDetectionH2O"];
// SmokeDetectionO2.value = BoilerData["SmokeDetectionO2"];
// SmokeDetectionP_diff.value = BoilerData["SmokeDetectionP_diff"];
// SmokeDetectionNO.value = BoilerData["SmokeDetectionNO"];
// NOxEx.value = BoilerData["NOxEx"];
// NOx.value = BoilerData["NOx"];
// OutletInstantaneousFlow.value = BoilerData["OutletInstantaneousFlow"];
// EconomizerInletWaterTemp.value = BoilerData["EconomizerInletWaterTemp"];
// http.post("/api/device/Real", { "enterpriseId": enterpriseId.value, "deviceType": 5 }).then((result) => {
// result.data.realData.forEach(item => {
// if (item.name === "滦河水水表") {
// luanhewater.value = item.tapWaterOutletFlowSum;
// } else {
// underwater.value = item.tapWaterOutletFlowSum;
// }
// })
// })
// http.post("/api/device/Real", { "enterpriseId": enterpriseId.value, "deviceType": 7 }).then((result) => {
// result.data.realData.forEach(item => {
// elecSum.value = item.elecSum;
// })
// })
// http.post("/api/device/Real", { "enterpriseId": enterpriseId.value, "deviceType": 6 }).then((result) => {
// result.data.title.forEach(element => {
// result.data.realData.forEach(item => {
// BoilerData[element.enName] = item[element.enName[0].toLowerCase() + element.enName.substring(1)];
// })
// })
// InstantFlow.value = BoilerData["InstantFlow"];
// SumFlow.value = BoilerData["SumFlow"];
// InstantHeat.value = BoilerData["InstantHeat"];
// SumHeat.value = BoilerData["SumHeat"];
// })
// }
function
getBoilerData
()
{
function
getBoilerData
()
{
http
.
post
(
"/api/Boiler/Artwork"
,
id
.
value
).
then
((
result
)
=>
{
result
.
data
.
realData
.
forEach
(
element
=>
{
boilerArtWork
.
realData
.
forEach
(
element
=>
{
BoilerData
[
element
.
enName
]
=
element
.
paramValue
;
BoilerData
[
element
.
enName
]
=
element
.
paramValue
;
})
})
result
.
data
.
realStatus
.
forEach
(
element
=>
{
boilerArtWork
.
realStatus
.
forEach
(
element
=>
{
status
[
element
.
enName
]
=
element
.
paramValue
;
status
[
element
.
enName
]
=
element
.
paramValue
;
})
})
ExhaustTemp
.
value
=
BoilerData
[
"ExhaustTemp"
];
ExhaustTemp
.
value
=
BoilerData
[
"ExhaustTemp"
];
...
@@ -266,61 +329,77 @@ function getBoilerData() {
...
@@ -266,61 +329,77 @@ function getBoilerData() {
NOx
.
value
=
BoilerData
[
"NOx"
];
NOx
.
value
=
BoilerData
[
"NOx"
];
OutletInstantaneousFlow
.
value
=
BoilerData
[
"OutletInstantaneousFlow"
];
OutletInstantaneousFlow
.
value
=
BoilerData
[
"OutletInstantaneousFlow"
];
EconomizerInletWaterTemp
.
value
=
BoilerData
[
"EconomizerInletWaterTemp"
];
EconomizerInletWaterTemp
.
value
=
BoilerData
[
"EconomizerInletWaterTemp"
];
})
http
.
post
(
"/api/device/Real"
,
{
"enterpriseId"
:
enterpriseId
.
value
,
"deviceType"
:
5
}).
then
((
result
)
=>
{
// 从 deviceArt 获取水表数据
result
.
data
.
realData
.
forEach
(
item
=>
{
deviceArt
.
realData
.
forEach
(
item
=>
{
if
(
item
.
name
===
"滦河水水表"
)
{
if
(
item
.
name
===
"滦河水水表"
)
{
luanhewater
.
value
=
item
.
tapWaterOutletFlowSum
;
luanhewater
.
value
=
item
.
tapWaterOutletFlowSum
;
}
else
{
}
else
{
underwater
.
value
=
item
.
tapWaterOutletFlowSum
;
underwater
.
value
=
item
.
tapWaterOutletFlowSum
;
}
}
})
});
})
http
.
post
(
"/api/device/Real"
,
{
"enterpriseId"
:
enterpriseId
.
value
,
"deviceType"
:
7
}).
then
((
result
)
=>
{
result
.
data
.
realData
.
forEach
(
item
=>
{
elecSum
.
value
=
item
.
elecSum
;
})
})
http
.
post
(
"/api/device/Real"
,
{
"enterpriseId"
:
enterpriseId
.
value
,
"deviceType"
:
6
}).
then
((
result
)
=>
{
// 从 deviceArt2 获取 elecSum 数据
result
.
data
.
title
.
forEach
(
element
=>
{
deviceArt2
.
realData
.
forEach
(
item
=>
{
result
.
data
.
realData
.
forEach
(
item
=>
{
elecSum
.
value
=
item
.
elecSum
;
BoilerData
[
element
.
enName
]
=
item
[
element
.
enName
[
0
].
toLowerCase
()
+
element
.
enName
.
substring
(
1
)];
});
})
})
InstantFlow
.
value
=
BoilerData
[
"InstantFlow"
];
SumFlow
.
value
=
BoilerData
[
"SumFlow"
];
InstantHeat
.
value
=
BoilerData
[
"InstantHeat"
];
SumHeat
.
value
=
BoilerData
[
"SumHeat"
];
})
// 从 deviceArt3 获取瞬时流量和热量数据
deviceArt3
.
realData
.
forEach
(
item
=>
{
InstantFlow
.
value
=
item
.
instantFlow
;
SumFlow
.
value
=
item
.
sumFlow
;
InstantHeat
.
value
=
item
.
instantHeat
;
SumHeat
.
value
=
item
.
sumHeat
;
});
}
}
getPipeData
();
getPipeData
();
//实时数据
// function getPipeData() {
// console.log(JSON.stringify(result));
// result.data.title.forEach(element => {
// result.data.realData.forEach(item => {
// BoilerData[element.enName] = item[element.enName[0].toLowerCase() + element.enName.substring(1)];
// })
// })
// SupplyPipePressure.value = BoilerData["SupplyPipePressure"];
// SupplyPipeTemp.value = BoilerData["SupplyPipeTemp"];
// CirculatingOutPressure.value = BoilerData["CirculatingOutPressure"];
// WaterBoxLiquidLevel.value = BoilerData["WaterBoxLiquidLevel"];
// TroubledWaterSideElecValueBack.value = BoilerData["TroubledWaterSideElecValueBack"];
// FirstDirtSeparatorOutletPressure.value = BoilerData["FirstDirtSeparatorOutletPressure"];
// AfterMixingInletCommonHeaderTemp.value = BoilerData["AfterMixingInletCommonHeaderTemp"];
// FirstDirtSeparatorInletPressure.value = BoilerData["FirstDirtSeparatorInletPressure"];
// MixingPipeTemp.value = BoilerData["MixingPipeTemp"];
// ReturnPipeTemp.value = BoilerData["ReturnPipeTemp"];
// FirstCirculatingFreqBack.value = BoilerData["FirstCirculatingFreqBack"];
// FirstCirculatingElec.value = BoilerData["FirstCirculatingElec"];
// SecondCirculatingFreqBack.value = BoilerData["SecondCirculatingFreqBack"];
// SecondCirculatingElec.value = BoilerData["SecondCirculatingElec"];
// ThirdCirculatingFreqBack.value = BoilerData["ThirdCirculatingFreqBack"];
// ThirdCirculatingElec.value = BoilerData["ThirdCirculatingElec"];
// }
//静态
function
getPipeData
()
{
function
getPipeData
()
{
http
.
post
(
"/api/Pipe/Real"
,
{
"enterpriseId"
:
enterpriseId
.
value
,
"deviceType"
:
1
}).
then
((
result
)
=>
{
pipeRealArt
.
title
.
forEach
(
element
=>
{
result
.
data
.
title
.
forEach
(
element
=>
{
pipeRealArt
.
realData
.
forEach
(
item
=>
{
result
.
data
.
realData
.
forEach
(
item
=>
{
if
(
item
.
id
===
id
.
value
)
{
BoilerData
[
element
.
enName
]
=
item
[
element
.
enName
[
0
].
toLowerCase
()
+
element
.
enName
.
substring
(
1
)];
PipeData
[
element
.
enName
]
=
item
[
element
.
enName
];
})
}
})
});
SupplyPipePressure
.
value
=
BoilerData
[
"SupplyPipePressure"
];
});
SupplyPipeTemp
.
value
=
BoilerData
[
"SupplyPipeTemp"
];
CirculatingOutPressure
.
value
=
BoilerData
[
"CirculatingOutPressure"
];
SupplyClearPressure
.
value
=
PipeData
[
"SupplyClearPressure"
];
WaterBoxLiquidLevel
.
value
=
BoilerData
[
"WaterBoxLiquidLevel"
];
SupplyValuePressure
.
value
=
PipeData
[
"SupplyValuePressure"
];
TroubledWaterSideElecValueBack
.
value
=
BoilerData
[
"TroubledWaterSideElecValueBack"
];
FirstInTemp
.
value
=
PipeData
[
"FirstInTemp"
];
FirstDirtSeparatorOutletPressure
.
value
=
BoilerData
[
"FirstDirtSeparatorOutletPressure"
];
SupplyFlow
.
value
=
PipeData
[
"SupplyFlow"
];
AfterMixingInletCommonHeaderTemp
.
value
=
BoilerData
[
"AfterMixingInletCommonHeaderTemp"
];
SupplyFlowSum
.
value
=
PipeData
[
"SupplyFlowSum"
];
FirstDirtSeparatorInletPressure
.
value
=
BoilerData
[
"FirstDirtSeparatorInletPressure"
];
SupplyHeat
.
value
=
PipeData
[
"SupplyHeat"
];
MixingPipeTemp
.
value
=
BoilerData
[
"MixingPipeTemp"
];
SupplyHeatSum
.
value
=
PipeData
[
"SupplyHeatSum"
];
ReturnPipeTemp
.
value
=
BoilerData
[
"ReturnPipeTemp"
];
FirstOutTemp
.
value
=
PipeData
[
"FirstOutTemp"
];
FirstCirculatingFreqBack
.
value
=
BoilerData
[
"FirstCirculatingFreqBack"
];
BackClearPressure
.
value
=
PipeData
[
"BackClearPressure"
];
FirstCirculatingElec
.
value
=
BoilerData
[
"FirstCirculatingElec"
];
BackFlow
.
value
=
PipeData
[
"BackFlow"
];
SecondCirculatingFreqBack
.
value
=
BoilerData
[
"SecondCirculatingFreqBack"
];
BackFlowSum
.
value
=
PipeData
[
"BackFlowSum"
];
SecondCirculatingElec
.
value
=
BoilerData
[
"SecondCirculatingElec"
];
ThirdCirculatingFreqBack
.
value
=
BoilerData
[
"ThirdCirculatingFreqBack"
];
ThirdCirculatingElec
.
value
=
BoilerData
[
"ThirdCirculatingElec"
];
})
}
}
setInterval
(()
=>
{
setInterval
(()
=>
{
...
...
src/dataJson/RealPage/boilerArt.js
0 → 100644
View file @
860b5c15
This diff is collapsed.
Click to expand it.
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