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
7721f82c
Commit
7721f82c
authored
Sep 24, 2024
by
hubaoshan
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
9dd157c6
2d1856c2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
30 deletions
+68
-30
RecyclePump.js
src/api/AIStation/RecyclePump.js
+1
-1
token.js
src/api/AIStation/token.js
+9
-3
screenDisplay.vue
src/components/screenDisplay.vue
+58
-26
No files found.
src/api/AIStation/RecyclePump.js
View file @
7721f82c
...
@@ -31,5 +31,5 @@ export const exportRecyclePumpAlarmData = (item) => {
...
@@ -31,5 +31,5 @@ export const exportRecyclePumpAlarmData = (item) => {
// return httpTwo.get(`/busFireExtinguisher/test3`,'','',{responseType:'blob'})
// return httpTwo.get(`/busFireExtinguisher/test3`,'','',{responseType:'blob'})
// }
// }
export
const
getAudio
=
(
item
)
=>
{
export
const
getAudio
=
(
item
)
=>
{
return
httpTwo
.
get
(
`/busFireExtinguisher/test
3
?audioUrl=
${
item
}
`
,
''
,
''
,{
responseType
:
'blob'
})
return
httpTwo
.
get
(
`/busFireExtinguisher/test
4
?audioUrl=
${
item
}
`
,
''
,
''
,{
responseType
:
'blob'
})
}
}
src/api/AIStation/token.js
View file @
7721f82c
import
httpTwo
from
'../httpTwo'
import
httpTwo
from
'../httpTwo'
import
qs
from
"qs"
;
import
qs
from
"qs"
;
import
{
encrypt
}
from
'../../utils/jsencrypt.js'
import
{
encrypt
,
encryptTwo
}
from
'../../utils/jsencrypt.js'
// 获取随机uuid
// 获取随机uuid
export
const
getAuthUUID
=
params
=>
{
export
const
getAuthUUID
=
params
=>
{
...
@@ -17,8 +17,14 @@ export const createToken = params => {
...
@@ -17,8 +17,14 @@ export const createToken = params => {
const
sign
=
qs
.
stringify
({
const
sign
=
qs
.
stringify
({
sign
:
encrypt
(
params
)
sign
:
encrypt
(
params
)
})
})
const
headers
=
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
console
.
log
(
'params'
,
params
)
return
httpTwo
.
post
(
`/auth/createToken`
,
sign
,
headers
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
const
data
=
{
userId
:
encryptTwo
(
params
.
userId
),
username
:
encryptTwo
(
params
.
username
),
uuid
:
encryptTwo
(
params
.
uuid
),
}
// const headers = {'Content-Type': 'application/x-www-form-urlencoded'}
return
httpTwo
.
post
(
`/auth/createToken`
,
data
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
})
})
}
}
...
...
src/components/screenDisplay.vue
View file @
7721f82c
...
@@ -320,9 +320,10 @@ import AMapLoader from "@amap/amap-jsapi-loader";
...
@@ -320,9 +320,10 @@ import AMapLoader from "@amap/amap-jsapi-loader";
<div
v-show=
"mapLevel === 2"
>
<div
v-show=
"mapLevel === 2"
>
<div
class=
"secondLeftLayer"
>
<div
class=
"secondLeftLayer"
>
<div
class=
"secondLeftLayer_one"
>
<div
class=
"secondLeftLayer_one"
>
<div
style=
"display: flex;justify-content: space-between;width: 100%"
>
<div
style=
"width: 100%"
>
<div
class=
"secondLeftLayer_title"
><p>
热源趋势曲线
</p></div>
<!--
<div
class=
"secondLeftLayer_title"
><p>
热源趋势曲线
</p></div>
-->
<div
style=
"display: flex;align-items: center;padding-right: 2%"
>
<div
class=
"titleStyleTwo"
><p>
热源趋势曲线
</p></div>
<div
style=
"display: flex;align-items: center;justify-content: end; padding-right: 2%"
>
<ul
v-for=
"(item,index) in heatSourceBtnList"
:key=
"index"
>
<ul
v-for=
"(item,index) in heatSourceBtnList"
:key=
"index"
>
<li
<li
:class=
"[item.value === heatType ? 'activeBtn' : 'normalBtn']"
:class=
"[item.value === heatType ? 'activeBtn' : 'normalBtn']"
...
@@ -336,11 +337,13 @@ import AMapLoader from "@amap/amap-jsapi-loader";
...
@@ -336,11 +337,13 @@ import AMapLoader from "@amap/amap-jsapi-loader";
<div
class=
"secondLeftLayer1"
id=
"secondLeftLayer1"
></div>
<div
class=
"secondLeftLayer1"
id=
"secondLeftLayer1"
></div>
</div>
</div>
<div
class=
"secondLeftLayer_two"
>
<div
class=
"secondLeftLayer_two"
>
<div
class=
"secondLeftLayer_title"
><p>
一次侧补水量曲线
</p></div>
<!--
<div
class=
"secondLeftLayer_title"
><p>
一次侧补水量曲线
</p></div>
-->
<div
class=
"titleStyleTwo"
><p>
一次侧补水量曲线
</p></div>
<div
class=
"secondLeftLayer2"
id=
"secondLeftLayer2"
></div>
<div
class=
"secondLeftLayer2"
id=
"secondLeftLayer2"
></div>
</div>
</div>
<div
class=
"secondLeftLayer_three"
>
<div
class=
"secondLeftLayer_three"
>
<div
class=
"secondLeftLayer_title"
><p>
二次侧机组补水量排名
</p></div>
<!--
<div
class=
"secondLeftLayer_title"
><p>
二次侧机组补水量排名
</p></div>
-->
<div
class=
"titleStyleTwo"
><p>
二次侧机组补水量排名
</p></div>
<div
class=
"table-container"
>
<div
class=
"table-container"
>
<div
class=
"table-row"
v-for=
"(item,index) in waterRankList"
:key=
"index"
>
<div
class=
"table-row"
v-for=
"(item,index) in waterRankList"
:key=
"index"
>
<div
:title=
"item.transferName"
class=
"table-cell label"
>
{{
item
.
transferName
}}
</div>
<div
:title=
"item.transferName"
class=
"table-cell label"
>
{{
item
.
transferName
}}
</div>
...
@@ -351,30 +354,32 @@ import AMapLoader from "@amap/amap-jsapi-loader";
...
@@ -351,30 +354,32 @@ import AMapLoader from "@amap/amap-jsapi-loader";
</div>
</div>
<div
class=
"secondRightLayer"
>
<div
class=
"secondRightLayer"
>
<div
class=
"secondLeftLayer_four"
>
<div
class=
"secondLeftLayer_four"
>
<div
class=
"secondLeftLayer_title"
><p>
当日实时能耗数据
</p></div>
<!--
<div
class=
"secondLeftLayer_title"
><p>
当日实时能耗数据
</p></div>
-->
<div
class=
"titleStyleTwo"
><p>
当日实时能耗数据
</p></div>
<div
class=
"secondLeftLayer_fourContent"
>
<div
class=
"secondLeftLayer_fourContent"
>
<div
class=
"fourRow"
>
<div
class=
"fourRow"
>
<div
class=
"fourRow_label"
>
热耗
</div>
<div
class=
"fourRow_label"
>
热耗
</div>
<div
class=
"fourRow_value"
>
{{
dayEnergyForm
.
heat
||
'0'
}}
w/m²
</div>
<div
class=
"fourRow_value"
>
{{
formatDecimal
(
dayEnergyForm
.
heat
)
||
'0'
}}
w/m²
</div>
</div>
</div>
<div
class=
"fourRow"
>
<div
class=
"fourRow"
>
<div
class=
"fourRow_label"
>
度日热耗
</div>
<div
class=
"fourRow_label"
>
度日热耗
</div>
<div
class=
"fourRow_value"
>
{{
dayEnergyForm
.
dayheat
||
'0'
}}
w/(m².°c)
</div>
<div
class=
"fourRow_value"
>
{{
formatDecimal
(
dayEnergyForm
.
dayheat
)
||
'0'
}}
w/(m².°c)
</div>
</div>
</div>
<div
class=
"fourRow"
>
<div
class=
"fourRow"
>
<div
class=
"fourRow_label"
>
水耗
</div>
<div
class=
"fourRow_label"
>
水耗
</div>
<div
class=
"fourRow_value"
>
{{
dayEnergyForm
.
water
||
'0'
}}
kg/m²·天
</div>
<div
class=
"fourRow_value"
>
{{
formatDecimal
(
dayEnergyForm
.
water
)
||
'0'
}}
kg/m²
</div>
</div>
</div>
<div
class=
"fourRow"
>
<div
class=
"fourRow"
>
<div
class=
"fourRow_label"
>
电耗
</div>
<div
class=
"fourRow_label"
>
电耗
</div>
<div
class=
"fourRow_value"
>
{{
dayEnergyForm
.
elec
||
'0'
}}
kWh/m²·天
</div>
<div
class=
"fourRow_value"
>
{{
formatDecimal
(
dayEnergyForm
.
elec
)
||
'0'
}}
kWh/m²
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"secondLeftLayer_fifth"
>
<div
class=
"secondLeftLayer_fifth"
>
<div
style=
"display: flex;justify-content: space-between;padding: 10px"
>
<div
>
<div
class=
"secondLeftLayer_title"
><p>
机组排名
</p></div>
<!--
<div
class=
"secondLeftLayer_title"
><p>
机组排名
</p></div>
-->
<div
style=
"display: flex;align-items: center"
>
<div
class=
"titleStyleTwo"
><p>
机组排名
</p></div>
<div
style=
"display: flex;align-items: center;justify-content: end"
>
<ul
v-for=
"(item,index) in rankTypeBtnList"
:key=
"index"
>
<ul
v-for=
"(item,index) in rankTypeBtnList"
:key=
"index"
>
<li
<li
:class=
"[item.value === RankType ? 'activeBtn' : 'normalBtn']"
:class=
"[item.value === RankType ? 'activeBtn' : 'normalBtn']"
...
@@ -394,7 +399,7 @@ import AMapLoader from "@amap/amap-jsapi-loader";
...
@@ -394,7 +399,7 @@ import AMapLoader from "@amap/amap-jsapi-loader";
<div
:title=
"item.transferName"
class=
"table-cellTwo label"
>
<div
:title=
"item.transferName"
class=
"table-cellTwo label"
>
{{
item
.
transferName
}}
{{
item
.
transferName
}}
</div>
</div>
<div
class=
"table-cellTwo value"
>
{{
item
.
record
}}
</div>
<div
class=
"table-cellTwo value"
>
{{
parseFloat
(
item
.
record
).
toFixed
(
1
)
}}
</div>
</div>
</div>
</div>
</div>
...
@@ -402,7 +407,8 @@ import AMapLoader from "@amap/amap-jsapi-loader";
...
@@ -402,7 +407,8 @@ import AMapLoader from "@amap/amap-jsapi-loader";
</div>
</div>
<div
class=
"bottomLayerTwo"
>
<div
class=
"bottomLayerTwo"
>
<div
class=
"title_row"
>
<div
class=
"title_row"
>
<div
class=
"secondLeftLayer_title"
><p>
报警信息轮播
</p></div>
<!--
<div
class=
"secondLeftLayer_title"
><p>
报警信息轮播
</p></div>
-->
<div
class=
"titleStyleTwo"
><p>
报警信息轮播
</p></div>
<div
class=
"moreInfo"
@
click=
"handleShowMore('1')"
>
更多》
</div>
<div
class=
"moreInfo"
@
click=
"handleShowMore('1')"
>
更多》
</div>
</div>
</div>
<vue3ScrollSeamless
class=
"scroll-wrap border text-color"
:classOptions=
"classOptions"
:dataList=
"alarmDataList"
>
<vue3ScrollSeamless
class=
"scroll-wrap border text-color"
:classOptions=
"classOptions"
:dataList=
"alarmDataList"
>
...
@@ -417,47 +423,47 @@ import AMapLoader from "@amap/amap-jsapi-loader";
...
@@ -417,47 +423,47 @@ import AMapLoader from "@amap/amap-jsapi-loader";
<div
v-show=
"mapLevel === 3"
>
<div
v-show=
"mapLevel === 3"
>
<div
class=
"thirdLeftLayer"
>
<div
class=
"thirdLeftLayer"
>
<div
class=
"thirdLeftLayer_one"
>
<div
class=
"thirdLeftLayer_one"
>
<div
class=
"
secondLeftLayer_title
"
><p>
换热站监控
</p></div>
<div
class=
"
titleStyleTwo
"
><p>
换热站监控
</p></div>
</div>
</div>
<div
class=
"thirdLeftLayer_one"
>
<div
class=
"thirdLeftLayer_one"
>
<div
class=
"
secondLeftLayer_title
"
><p>
电气柜监视
</p></div>
<div
class=
"
titleStyleTwo
"
><p>
电气柜监视
</p></div>
</div>
</div>
<div
class=
"thirdLeftLayer_one"
>
<div
class=
"thirdLeftLayer_one"
>
<div
class=
"
secondLeftLayer_title
"
><p>
循环泵听诊
</p></div>
<div
class=
"
titleStyleTwo
"
><p>
循环泵听诊
</p></div>
</div>
</div>
</div>
</div>
<div
class=
"thirdRightLayer"
>
<div
class=
"thirdRightLayer"
>
<div
class=
"thirdLeftLayer_one"
>
<div
class=
"thirdLeftLayer_one"
>
<div
class=
"
secondLeftLayer_title
"
><p>
当日实时能耗数据
</p></div>
<div
class=
"
titleStyleTwo
"
><p>
当日实时能耗数据
</p></div>
<div
class=
"secondLeftLayer_fourContent"
>
<div
class=
"secondLeftLayer_fourContent"
>
<div
class=
"fourRow"
>
<div
class=
"fourRow"
>
<div
class=
"fourRow_label"
>
热耗
</div>
<div
class=
"fourRow_label"
>
热耗
</div>
<div
class=
"fourRow_value"
>
{{
thirdDayEnergyForm
.
heat
||
'0'
}}
w/m²
</div>
<div
class=
"fourRow_value"
>
{{
formatDecimal
(
thirdDayEnergyForm
.
heat
)
||
'0'
}}
w/m²
</div>
</div>
</div>
<div
class=
"fourRow"
>
<div
class=
"fourRow"
>
<div
class=
"fourRow_label"
>
度日热耗
</div>
<div
class=
"fourRow_label"
>
度日热耗
</div>
<div
class=
"fourRow_value"
>
{{
thirdDayEnergyForm
.
dayheat
||
'0'
}}
w/(m².°c)
</div>
<div
class=
"fourRow_value"
>
{{
formatDecimal
(
thirdDayEnergyForm
.
dayheat
)
||
'0'
}}
w/(m².°c)
</div>
</div>
</div>
<div
class=
"fourRow"
>
<div
class=
"fourRow"
>
<div
class=
"fourRow_label"
>
水耗
</div>
<div
class=
"fourRow_label"
>
水耗
</div>
<div
class=
"fourRow_value"
>
{{
thirdDayEnergyForm
.
water
||
'0'
}}
kg/m²·天
</div>
<div
class=
"fourRow_value"
>
{{
formatDecimal
(
thirdDayEnergyForm
.
water
)
||
'0'
}}
kg/m²
</div>
</div>
</div>
<div
class=
"fourRow"
>
<div
class=
"fourRow"
>
<div
class=
"fourRow_label"
>
电耗
</div>
<div
class=
"fourRow_label"
>
电耗
</div>
<div
class=
"fourRow_value"
>
{{
thirdDayEnergyForm
.
elec
||
'0'
}}
kWh/m²·天
</div>
<div
class=
"fourRow_value"
>
{{
formatDecimal
(
thirdDayEnergyForm
.
elec
)
||
'0'
}}
kWh/m²
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"thirdLeftLayer_one"
>
<div
class=
"thirdLeftLayer_one"
>
<div
class=
"
secondLeftLayer_title
"
><p>
管道光纤测漏温度曲线
</p></div>
<div
class=
"
titleStyleTwo
"
><p>
管道光纤测漏温度曲线
</p></div>
</div>
</div>
<div
class=
"thirdLeftLayer_one"
>
<div
class=
"thirdLeftLayer_one"
>
<div
class=
"
secondLeftLayer_title
"
><p>
灭火器仪表监视
</p></div>
<div
class=
"
titleStyleTwo
"
><p>
灭火器仪表监视
</p></div>
</div>
</div>
</div>
</div>
<div
class=
"bottomLayerTwo"
>
<div
class=
"bottomLayerTwo"
>
<div
class=
"title_row"
>
<div
class=
"title_row"
>
<div
class=
"
secondLeftLayer_title
"
><p>
报警信息轮播
</p></div>
<div
class=
"
titleStyleTwo
"
><p>
报警信息轮播
</p></div>
<div
class=
"moreInfo"
@
click=
"handleShowMore('2')"
>
更多》
</div>
<div
class=
"moreInfo"
@
click=
"handleShowMore('2')"
>
更多》
</div>
</div>
</div>
<vue3ScrollSeamless
class=
"scroll-wrap border text-color"
:classOptions=
"classOptions"
:dataList=
"alarmDataTwoList"
>
<vue3ScrollSeamless
class=
"scroll-wrap border text-color"
:classOptions=
"classOptions"
:dataList=
"alarmDataTwoList"
>
...
@@ -637,6 +643,7 @@ export default defineComponent({
...
@@ -637,6 +643,7 @@ export default defineComponent({
fullscreenLoading
:
false
,
fullscreenLoading
:
false
,
};
};
},
},
created
()
{
created
()
{
let
timeOff
=
true
;
let
timeOff
=
true
;
// 创建定时任务
// 创建定时任务
...
@@ -664,6 +671,20 @@ export default defineComponent({
...
@@ -664,6 +671,20 @@ export default defineComponent({
};
};
},
},
methods
:
{
methods
:
{
formatDecimal
(
value
)
{
// 将输入值转换为数字
const
num
=
parseFloat
(
value
);
if
(
!
isNaN
(
num
))
{
// 检查是否有小数部分
const
parts
=
num
.
toString
().
split
(
'.'
);
if
(
parts
.
length
>
1
)
{
// 如果有小数部分,保留最多六位小数
return
`
${
parts
[
0
]}
.
${
parts
[
1
].
slice
(
0
,
6
)}
`
;
// 仅保留前六位小数
}
return
parts
[
0
];
// 没有小数部分,返回整数部分
}
return
''
;
// 返回空字符串以保证无效输入时的表现
},
handleToDetail
()
{
handleToDetail
()
{
this
.
$router
.
push
(
"/Alarm"
)
this
.
$router
.
push
(
"/Alarm"
)
},
},
...
@@ -2426,6 +2447,17 @@ export default defineComponent({
...
@@ -2426,6 +2447,17 @@ export default defineComponent({
letter-spacing
:
3px
;
letter-spacing
:
3px
;
font-size
:
120%
;
font-size
:
120%
;
}
}
.gis_content
.titleStyleTwo
{
width
:
95%
;
height
:
35px
;
background
:
url("/imgs/Gis/title_bg.png")
top
left
no-repeat
;
}
.gis_content
.titleStyleTwo
p
{
padding
:
0
.5%
0
0
2%
;
color
:
#19f7ff
;
letter-spacing
:
3px
;
font-size
:
120%
;
}
.gis_content
.ulList
li
{
.gis_content
.ulList
li
{
display
:
flex
;
display
:
flex
;
width
:
90%
;
width
:
90%
;
...
...
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