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
bd21bfd6
Commit
bd21bfd6
authored
Sep 30, 2024
by
hubaoshan
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
f182416c
e83c2d35
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
779 additions
and
46 deletions
+779
-46
screenDisplay.vue
src/components/screenDisplay.vue
+50
-3
videoComponents.vue
src/components/videoComponents.vue
+38
-27
videoComponentsTwo.vue
src/components/videoComponentsTwo.vue
+676
-0
OnekeyStartStopPage.vue
src/views/RemotePage/OnekeyStartStopPage.vue
+15
-16
No files found.
src/components/screenDisplay.vue
View file @
bd21bfd6
...
...
@@ -422,14 +422,14 @@ import AMapLoader from "@amap/amap-jsapi-loader";
</div>
<div
v-show=
"mapLevel === 3"
>
<div
class=
"thirdLeftLayer"
>
<div
class=
"thirdLeftLayer_one"
>
<div
class=
"thirdLeftLayer_one"
ref=
"myContainer"
>
<div
class=
"title_row"
>
<div
class=
"titleStyleTwoVideo"
><p>
换热站监控
</p></div>
<div
class=
"moreInfo"
@
click=
"PreviousVideo()"
>
上一个
</div>
<div
class=
"moreInfo"
@
click=
"nextVideo()"
>
下一个
</div>
<div
class=
"moreInfo"
@
click=
"moreVideo()"
>
更多》
</div>
</div>
<video-components
:queryParams=
"queryParams"
:stopParams=
"stopParams"
/>
<video-components
:
divWidth=
"divWidth"
:divHeight=
"divHeight"
:
queryParams=
"queryParams"
:stopParams=
"stopParams"
/>
</div>
<div
class=
"thirdLeftLayer_one"
>
...
...
@@ -483,6 +483,13 @@ import AMapLoader from "@amap/amap-jsapi-loader";
</vue3ScrollSeamless>
</div>
</div>
<div
class=
"videoInfo"
v-show=
"videoOpen"
>
<div
class=
"alarmInfo_header"
>
<div
class=
"alarmInfo_title"
>
换热站监控
</div>
<div
class=
"alarmInfo_close"
@
click=
"handleVideoClose"
>
X
</div>
</div>
<video-components-two
:queryParams=
"queryParamsAll"
:stopParams=
"stopParamsAll"
/>
</div>
<div
class=
"alarmInfo"
v-if=
"open"
>
<div
class=
"alarmInfo_header"
>
<div
class=
"alarmInfo_title"
>
报警信息轮播
</div>
...
...
@@ -520,6 +527,7 @@ import { ElLoading } from "element-plus";
import
{
ElMessage
}
from
"element-plus"
;
const
m
=
detectZoom
();
import
videoComponents
from
'./videoComponents.vue'
import
videoComponentsTwo
from
'./videoComponentsTwo.vue'
import
{
vue3ScrollSeamless
}
from
"vue3-scroll-seamless"
;
import
{
postServicCenterList
,
...
...
@@ -548,6 +556,7 @@ import {defineComponent} from "vue";
export
default
defineComponent
({
components
:
{
videoComponents
,
videoComponentsTwo
,
vue3ScrollSeamless
},
watch
:
{
...
...
@@ -572,7 +581,11 @@ export default defineComponent({
return
{
videoNum
:
0
,
queryParams
:
''
,
divWidth
:
''
,
divHeight
:
''
,
queryParamsAll
:
''
,
stopParams
:
0
,
stopParamsAll
:
0
,
showVideo
:
false
,
VideoInfo
:
{
selectOptions
:
[],
...
...
@@ -581,6 +594,7 @@ export default defineComponent({
playVideoList
:
[]
},
open
:
false
,
videoOpen
:
false
,
items
:
[
'Item 1'
,
'Item 2'
,
'Item 3'
,
'Item 4'
],
currentIndex
:
0
,
heatSourceList
:
[],
// 热源趋势echarts展示
...
...
@@ -2961,12 +2975,32 @@ export default defineComponent({
})
const
videoList
=
[]
videoList
.
push
(
this
.
VideoInfo
.
playVideoList
[
this
.
videoNum
])
this
.
getDivWidth
()
this
.
queryParams
=
JSON
.
stringify
(
videoList
)
})
},
getDivWidth
()
{
const
container
=
this
.
$refs
.
myContainer
;
this
.
divWidth
=
container
.
offsetWidth
*
0.9
;
// 获取元素的宽度,包括元素的padding,不包括border、margin和滚动条
this
.
divHeight
=
container
.
offsetHeight
*
0.8
;
// 获取元素的宽度,包括元素的padding,不包括border、margin和滚动条
},
// 更多视频
moreVideo
()
{
this
.
videoOpen
=
true
this
.
queryParams
=
''
this
.
stopParams
+=
1
console
.
log
(
'this.VideoInfo.playVideoList'
,
this
.
VideoInfo
.
playVideoList
)
this
.
queryParamsAll
=
JSON
.
stringify
(
this
.
VideoInfo
.
playVideoList
)
},
// 关闭更多视频弹窗
handleVideoClose
()
{
this
.
queryParamsAll
=
''
this
.
stopParamsAll
+=
1
this
.
videoOpen
=
false
const
videoList
=
[]
videoList
.
push
(
this
.
VideoInfo
.
playVideoList
[
this
.
videoNum
])
this
.
getDivWidth
()
this
.
queryParams
=
JSON
.
stringify
(
videoList
)
},
// 下一个视频
nextVideo
()
{
...
...
@@ -3870,6 +3904,18 @@ export default defineComponent({
left
:
30%
;
top
:
17%
;
}
.videoInfo
{
width
:
100%
;
height
:
100%
;
border
:
rgba
(
129
,
210
,
230
,
0
.5
)
solid
1px
;
//padding: 0 0 0 10px;
background
:
linear-gradient
(
318deg
,
rgba
(
29
,
70
,
128
,
0
.8
)
0%
,
rgba
(
13
,
23
,
76
,
0
.8
)
100%
);
color
:
white
;
position
:
absolute
;
z-index
:
9
;
//left: 13%;
//top: 10%;
}
.alarmTable
{
margin-bottom
:
20px
;
width
:
750px
;
...
...
@@ -3988,6 +4034,7 @@ export default defineComponent({
/*border: rgba(129, 210, 230, 0.5) solid 1px;*/
}
.thirdLeftLayer_one
{
width
:
100%
;
margin-bottom
:
11px
;
height
:
32%
;
border
:
rgba
(
129
,
210
,
230
,
0
.5
)
solid
1px
;
...
...
src/components/videoComponents.vue
View file @
bd21bfd6
...
...
@@ -97,6 +97,14 @@ const pProps = defineProps({
type
:
String
,
required
:
true
,
},
divWidth
:
{
type
:
Number
,
required
:
true
,
},
divHeight
:
{
type
:
Number
,
required
:
true
,
},
stopParams
:
{
type
:
String
,
required
:
true
,
...
...
@@ -106,8 +114,8 @@ const pProps = defineProps({
//声明公用变量
var
initCount
=
0
;
var
pubKey
=
''
;
var
playWnd_width
=
window
.
innerWidth
-
1570
;
var
playWnd_height
=
window
.
innerHeight
-
720
;
var
playWnd_width
=
pProps
.
divWidth
;
var
playWnd_height
=
pProps
.
divHeight
;
var
oWebControl
;
var
videoIp
=
"218.69.97.198"
;;
var
videoPort
=
1443
;
...
...
@@ -128,12 +136,12 @@ function down(){
window
.
open
(
filepath
);
}
function
resetVideoWidth
(){
var
menuWidth
=
localStorage
.
getItem
(
"tabWidth"
);
if
(
!
menuWidth
||
menuWidth
===
''
||
!
Number
(
menuWidth
)){
playWnd_w
idth
=
window
.
innerWidth
-
1570
;
}
else
{
playWnd_w
idth
=
window
.
innerWidth
-
Number
(
menuWidth
);
}
//
var menuWidth=localStorage.getItem("tabWidth");
//
if(!menuWidth || menuWidth ==='' || !Number(menuWidth)){
// pProps.divW
idth = window.innerWidth - 1570;
//
}else{
// pProps.divW
idth = window.innerWidth - Number(menuWidth);
//
}
console
.
log
(
'playVW'
,
playWnd_width
);
}
...
...
@@ -288,7 +296,7 @@ function initPlugin() {
cbIntegrationCallBack
:
cbIntegrationCallBack
});
oWebControl
.
JS_CreateWnd
(
"playWnd"
,
p
layWnd_width
,
playWnd_h
eight
).
then
(
function
()
{
//JS_CreateWnd创建视频播放窗口,宽高可设定
oWebControl
.
JS_CreateWnd
(
"playWnd"
,
p
Props
.
divWidth
,
pProps
.
divH
eight
).
then
(
function
()
{
//JS_CreateWnd创建视频播放窗口,宽高可设定
init
();
// 创建播放实例成功后初始化
});
},
function
()
{
// 启动插件服务失败
...
...
@@ -400,7 +408,7 @@ function init() {
buttonIDs
:
buttonIDs
//自定义工具条按钮
})
}).
then
(
function
(
oData
)
{
oWebControl
.
JS_Resize
(
p
layWnd_width
,
playWnd_h
eight
);
// 初始化后resize一次,规避firefox下首次显示窗口后插件窗口未与DIV窗口重合问题
oWebControl
.
JS_Resize
(
p
Props
.
divWidth
,
pProps
.
divH
eight
);
// 初始化后resize一次,规避firefox下首次显示窗口后插件窗口未与DIV窗口重合问题
});
});
}
...
...
@@ -432,7 +440,7 @@ function setEncrypt(value) {
$
(
window
).
resize
(
function
()
{
resetVideoWidth
();
if
(
oWebControl
!=
null
)
{
oWebControl
.
JS_Resize
(
p
layWnd_width
,
playWnd_h
eight
);
oWebControl
.
JS_Resize
(
p
Props
.
divWidth
,
pProps
.
divH
eight
);
setWndCover
();
}
});
...
...
@@ -440,7 +448,7 @@ $(window).resize(function () {
function
resizeVideo
()
{
resetVideoWidth
();
if
(
oWebControl
!=
null
)
{
oWebControl
.
JS_Resize
(
p
layWnd_width
,
playWnd_h
eight
);
oWebControl
.
JS_Resize
(
p
Props
.
divWidth
,
pProps
.
divH
eight
);
setWndCover
();
}
}
...
...
@@ -449,7 +457,7 @@ function resizeVideo() {
$
(
window
).
scroll
(
function
()
{
resetVideoWidth
();
if
(
oWebControl
!=
null
)
{
oWebControl
.
JS_Resize
(
p
layWnd_width
,
playWnd_h
eight
);
oWebControl
.
JS_Resize
(
p
Props
.
divWidth
,
pProps
.
divH
eight
);
setWndCover
();
}
});
...
...
@@ -465,23 +473,23 @@ function setWndCover() {
var
iCoverRight
=
(
oDivRect
.
right
-
iWidth
>
0
)
?
Math
.
round
(
oDivRect
.
right
-
iWidth
)
:
0
;
var
iCoverBottom
=
(
oDivRect
.
bottom
-
iHeight
>
0
)
?
Math
.
round
(
oDivRect
.
bottom
-
iHeight
)
:
0
;
iCoverLeft
=
(
iCoverLeft
>
p
layWnd_width
)
?
playWnd_w
idth
:
iCoverLeft
;
iCoverTop
=
(
iCoverTop
>
p
layWnd_height
)
?
playWnd_h
eight
:
iCoverTop
;
iCoverRight
=
(
iCoverRight
>
p
layWnd_width
)
?
playWnd_w
idth
:
iCoverRight
;
iCoverBottom
=
(
iCoverBottom
>
p
layWnd_height
)
?
playWnd_h
eight
:
iCoverBottom
;
iCoverLeft
=
(
iCoverLeft
>
p
Props
.
divWidth
)
?
pProps
.
divW
idth
:
iCoverLeft
;
iCoverTop
=
(
iCoverTop
>
p
Props
.
divHeight
)
?
pProps
.
divH
eight
:
iCoverTop
;
iCoverRight
=
(
iCoverRight
>
p
Props
.
divWidth
)
?
pProps
.
divW
idth
:
iCoverRight
;
iCoverBottom
=
(
iCoverBottom
>
p
Props
.
divHeight
)
?
pProps
.
divH
eight
:
iCoverBottom
;
oWebControl
.
JS_RepairPartWindow
(
0
,
0
,
p
layWnd_width
+
1
,
playWnd_h
eight
);
// 多1个像素点防止还原后边界缺失一个像素条
oWebControl
.
JS_RepairPartWindow
(
0
,
0
,
p
Props
.
divWidth
+
1
,
pProps
.
divH
eight
);
// 多1个像素点防止还原后边界缺失一个像素条
if
(
iCoverLeft
!=
0
)
{
oWebControl
.
JS_CuttingPartWindow
(
0
,
0
,
iCoverLeft
,
p
layWnd_h
eight
);
oWebControl
.
JS_CuttingPartWindow
(
0
,
0
,
iCoverLeft
,
p
Props
.
divH
eight
);
}
if
(
iCoverTop
!=
0
)
{
oWebControl
.
JS_CuttingPartWindow
(
0
,
0
,
p
layWnd_w
idth
+
1
,
iCoverTop
);
// 多剪掉一个像素条,防止出现剪掉一部分窗口后出现一个像素条
oWebControl
.
JS_CuttingPartWindow
(
0
,
0
,
p
Props
.
divW
idth
+
1
,
iCoverTop
);
// 多剪掉一个像素条,防止出现剪掉一部分窗口后出现一个像素条
}
if
(
iCoverRight
!=
0
)
{
oWebControl
.
JS_CuttingPartWindow
(
p
layWnd_width
-
iCoverRight
,
0
,
iCoverRight
,
playWnd_h
eight
);
oWebControl
.
JS_CuttingPartWindow
(
p
Props
.
divWidth
-
iCoverRight
,
0
,
iCoverRight
,
pProps
.
divH
eight
);
}
if
(
iCoverBottom
!=
0
)
{
oWebControl
.
JS_CuttingPartWindow
(
0
,
p
layWnd_height
-
iCoverBottom
,
playWnd_w
idth
,
iCoverBottom
);
oWebControl
.
JS_CuttingPartWindow
(
0
,
p
Props
.
divHeight
-
iCoverBottom
,
pProps
.
divW
idth
,
iCoverBottom
);
}
}
...
...
@@ -634,13 +642,16 @@ function playVideotest(cameraIndexCode) {
watch
(
()
=>
pProps
.
queryParams
,
async
(
newData
)
=>
{
await
initIp
();
//ip
initPlugin
();
showPlay
()
const
params
=
JSON
.
parse
(
pProps
.
queryParams
)
// const params = ['31c0d567dd1944d5b4ea3eddf94f740b']
console
.
log
(
'params'
,
params
)
getVideoFromVideoList
(
params
)
if
(
params
&&
params
.
length
>
0
)
{
await
initIp
();
//ip
initPlugin
();
showPlay
()
console
.
log
(
'params'
,
params
)
console
.
log
(
'divWidth'
,
pProps
.
divWidth
)
getVideoFromVideoList
(
params
)
}
}
)
...
...
src/components/videoComponentsTwo.vue
0 → 100644
View file @
bd21bfd6
This diff is collapsed.
Click to expand it.
src/views/RemotePage/OnekeyStartStopPage.vue
View file @
bd21bfd6
...
...
@@ -17,6 +17,7 @@
<div
style=
""
>
换热站机组:
<el-cascader
ref=
"cascaderRef"
:options=
"options"
v-model=
"transferId"
filterable
...
...
@@ -31,7 +32,7 @@
<!--
<el-input
v-model=
"limit"
v-text=
"limit"
style=
"width: 150px;"
v-float-number
></el-input>
(米)-->
</div>
<!--
<div
class=
"demo-button"
>
-->
<!--
<el-button
type=
"primary"
:loading=
"isLoading"
@
click=
"TransferOpen
"
>
一键启动
</el-button>
-->
<!--
<el-button
type=
"primary"
:loading=
"isLoading"
@
click=
"getSteps
"
>
一键启动
</el-button>
-->
<!--
<el-button
type=
"primary"
:loading=
"isLoading"
@
click=
"TransferClose"
>
一键停止
</el-button>
-->
<!--
</div>
-->
</div>
...
...
@@ -105,6 +106,7 @@ import {useRoute} from "vue-router";
import
{
selectOneStartStop
}
from
'../../api/oneKeyStartStop/index.js'
import
{
getAlarmNumData
}
from
"../../api/AIStation/Extinguisher"
;
const
enterpriseId
=
ref
(
null
);
const
cascaderRef
=
ref
(
null
);
const
isLoading
=
ref
(
false
);
const
activeStep
=
ref
(
-
1
);
const
saveActiveStep
=
ref
(
-
1
);
...
...
@@ -266,7 +268,6 @@ function setContentHeight() {
//获取换热机组列表
function
getSupplys
()
{
var
result
=
store
.
getters
.
getEnterprise
();
console
.
log
(
'result'
,
result
[
0
].
serviceCenterList
[
0
].
supplyList
[
0
].
transferList
)
enterpriseId
.
value
=
store
.
getters
.
getEnterpriseId
();
if
(
result
)
{
const
setNum
=
result
[
0
].
serviceCenterList
[
0
].
supplyList
[
0
].
transferList
.
length
...
...
@@ -843,19 +844,11 @@ async function OnekeyStopEnd() {
}
}
let
getStepsParams
=
{}
// 查询启停进度
function
getSteps
()
{
if
(
transferId
.
value
===
'9ad563a2-cf55-4ffa-a878-f9c85af106e1'
)
{
getStepsParams
=
{
unitId
:
options
[
0
].
children
[
0
].
children
[
0
].
value
,
stationId
:
options
[
0
].
children
[
0
].
children
[
0
].
stationId
}
}
else
{
getStepsParams
=
{
unitId
:
options
[
0
].
children
[
0
].
children
[
1
].
value
,
stationId
:
options
[
0
].
children
[
0
].
children
[
1
].
stationId
}
const
getStepsParams
=
{
unitId
:
cascaderRef
.
value
.
getCheckedNodes
()[
0
].
data
.
value
,
stationId
:
cascaderRef
.
value
.
getCheckedNodes
()[
0
].
data
.
stationId
}
selectOneStartStop
(
getStepsParams
).
then
(
res
=>
{
activeStep
.
value
=
-
1
...
...
@@ -863,6 +856,7 @@ function getSteps() {
if
(
saveActiveStep
.
value
>
-
1
)
{
startPercent
[
saveActiveStep
.
value
-
1
].
color
=
"rgb(127 127 127)"
;
}
console
.
log
(
'saveStopStep.value'
,
saveStopStep
.
value
)
if
(
saveStopStep
.
value
>
-
1
)
{
stopPercent
.
value
[
saveStopStep
.
value
].
color
=
"rgb(127 127 127)"
;
}
...
...
@@ -877,8 +871,10 @@ function getSteps() {
}
// 一键停止
if
(
res
.
data
.
stopStepsFlag
===
true
)
{
var
result
=
store
.
getters
.
getEnterprise
();
const
setNum
=
result
[
0
].
serviceCenterList
[
0
].
supplyList
[
0
].
transferList
.
length
// 北区 1:1 2:2 3:5 4:6 5:7
if
(
transferId
.
value
===
'34d8847c-489c-4879-bcdd-b69c44d8ca50'
)
{
if
(
setNum
>
1
)
{
if
(
res
.
data
.
stopSteps
===
1
||
res
.
data
.
stopSteps
===
2
)
{
activeCloseStep
.
value
=
res
.
data
.
stopSteps
}
else
{
...
...
@@ -888,8 +884,11 @@ function getSteps() {
activeCloseStep
.
value
=
res
.
data
.
stopSteps
}
}
else
if
(
res
.
data
.
stopStepsFlag
===
false
)
{
var
result
=
store
.
getters
.
getEnterprise
();
const
setNum
=
result
[
0
].
serviceCenterList
[
0
].
supplyList
[
0
].
transferList
.
length
console
.
log
(
'setNum'
,
setNum
)
// 北区 1:1 2:2 3:5 4:6 5:7
if
(
transferId
.
value
===
'34d8847c-489c-4879-bcdd-b69c44d8ca50'
)
{
if
(
setNum
>
1
)
{
if
(
res
.
data
.
stopSteps
===
1
||
res
.
data
.
stopSteps
===
2
)
{
activeCloseStep
.
value
=
res
.
data
.
stopSteps
-
1
stopPercent
.
value
[
res
.
data
.
stopSteps
-
1
].
color
=
"rgb(176 63 63)"
;
...
...
@@ -897,7 +896,7 @@ function getSteps() {
}
else
{
activeCloseStep
.
value
=
res
.
data
.
stopSteps
-
3
stopPercent
.
value
[
res
.
data
.
stopSteps
-
3
].
color
=
"rgb(176 63 63)"
;
saveStopStep
.
value
=
res
.
data
.
stopSteps
s
-
3
saveStopStep
.
value
=
res
.
data
.
stopSteps
-
3
}
}
else
{
activeCloseStep
.
value
=
res
.
data
.
stopSteps
-
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