Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
蒋秀川
/
miniProject
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 06a2ad95
authored
Sep 27, 2023
by
李乾广
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改bug
1 parent
d41aa782
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
h5/src/api/index.js
h5/src/views/extension/index.vue
h5/src/views/extension/videoTime.vue
h5/src/views/pc/index.vue
h5/src/api/index.js
View file @
06a2ad9
...
...
@@ -10,10 +10,10 @@ const tourApi = {
},
// 云控制
ptzStart
(
params
,
config
)
{
return
req
(
'P
U
T'
,
`/patrol/through/ptzStart`
,
params
,
config
)
return
req
(
'P
OS
T'
,
`/patrol/through/ptzStart`
,
params
,
config
)
},
ptzStop
(
params
,
config
)
{
return
req
(
'P
U
T'
,
`/patrol/through/ptzStop`
,
params
,
config
)
return
req
(
'P
OS
T'
,
`/patrol/through/ptzStop`
,
params
,
config
)
},
// 获取设备录像记录
getThroughVideoRecord
(
params
,
config
){
...
...
h5/src/views/extension/index.vue
View file @
06a2ad9
...
...
@@ -130,6 +130,7 @@ export default {
// this.params = obj
console
.
log
(
this
.
params
)
document
.
title
=
this
.
params
.
gateName
||
'视频详情'
this
.
params
.
ptzEnable
=
''
+
this
.
params
.
ptzEnable
this
.
terminalType
=
this
.
params
.
terminalType
this
.
dateFormatType
=
this
.
terminalType
==
'ios'
||
this
.
terminalType
==
'mac'
?
'YYYY/MM/DD'
:
'YYYY-MM-DD'
;
if
(
this
.
params
.
gateUnid
)
{
...
...
@@ -162,6 +163,8 @@ export default {
tourApi
.
getThroughVideoUrl
({
param
:
parStr
}).
then
(
res
=>
{
if
(
res
.
data
&&
res
.
data
.
code
==
200
)
{
this
.
$refs
.
vionPlayer
.
play
(
res
.
data
.
msg
);
}
else
{
Toast
.
fail
(
'取流失败'
);
}
})
},
...
...
h5/src/views/extension/videoTime.vue
View file @
06a2ad9
...
...
@@ -31,7 +31,7 @@
</div>
<!-- 操作按钮 -->
<div
class=
"operating-box"
>
<van-button
v-if=
"isNoBack&&ptzEnable==
1
"
type=
"info"
size=
"mini"
@
click=
"ptzControlChange"
>
{{
ptzControlShow
?
'隐藏云台'
:
'打开云台'
}}
</van-button>
<van-button
v-if=
"isNoBack&&ptzEnable==
='1'
"
type=
"info"
size=
"mini"
@
click=
"ptzControlChange"
>
{{
ptzControlShow
?
'隐藏云台'
:
'打开云台'
}}
</van-button>
<van-button
v-else-if=
"!isNoBack"
type=
"info"
size=
"mini"
@
click=
"backRealTime"
>
返回实时
</van-button>
<!--
<div
v-if=
"isNoBack"
class=
"operating-btn"
@
click=
"ptzControlChange"
>
{{
ptzControlShow
?
'隐藏云台'
:
'打开云台'
}}
</div>
-->
<!--
<div
v-else
class=
"operating-btn"
@
click=
"backRealTime"
>
返回实时
</div>
-->
...
...
h5/src/views/pc/index.vue
View file @
06a2ad9
...
...
@@ -225,7 +225,12 @@ export default {
this
.
$refs
.
vionPlayer
.
play
(
res
.
data
.
msg
);
}
// this.splitNumChange()
}
}
else
{
this
.
$message
({
message
:
res
.
data
.
msg
||
'取流失败'
,
type
:
'warning'
});
}
})
},
// 分屏时选中屏数自动改变
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment