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
7fd97069
Commit
7fd97069
authored
Jul 29, 2024
by
qjeslks
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitee.com/tj-wang-yahui/AMS_HeatSys_Vue_V10
parents
d1e5eb30
2e81d878
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
19 deletions
+18
-19
VideoViewPage.vue
src/views/Video/VideoViewPage.vue
+18
-19
No files found.
src/views/Video/VideoViewPage.vue
View file @
7fd97069
...
...
@@ -57,30 +57,15 @@
<
script
setup
>
// ../OutputFile/VideoWebPlugin.zip
import
{
ref
,
reactive
,
onMounted
,
onUnmounted
,
provide
,
computed
,
handleError
}
from
'vue'
import
DataForm
from
'../../components/DataForm.vue'
;
import
{
ref
,
reactive
,
onMounted
,
onUnmounted
,
provide
,
computed
,
handleError
}
from
'vue'
import
{
useRoute
}
from
'vue-router'
import
http
from
'../../api/http'
import
store
from
"../../store/index"
;
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
// import '/jquery-1.12.4.min.js';
// import '/jsencrypt.min.js';
// import '/web-control_1.2.5.min.js'
//import {$} from '@/assets/script/video/jquery-1.12.4.min.js'
import
{
onBeforeRouteLeave
,
onBeforeRouteUpdate
}
from
'vue-router'
import
$
from
'jquery'
import
{
JSEncrypt
}
from
'jsencrypt'
import
{
WebControl
}
from
'../../assets/script/video/web-control.esm.min.js'
// import { WebControl } from 'web-control';
// import {WebControl} from 'web-control';
import
{
Search
,
ArrowLeft
,
ArrowRight
,
Warning
}
from
'@element-plus/icons-vue'
import
CfgSupply
from
'../../components/CfgSupply.vue'
;
// import { ca } from 'element-plus/es/locale';
import
{
onActivated
,
onDeactivated
}
from
'vue'
onActivated
(()
=>
{
showPlay
();
...
...
@@ -90,14 +75,19 @@ onDeactivated(() => {
})
const
route
=
useRoute
();
console
.
log
(
route
.
query
.
id
)
onBeforeRouteUpdate
((
to
,
from
)
=>
{
var
r
=
useRoute
();
if
(
r
.
query
.
id
){
VideoInfo
.
value
=
r
.
query
.
id
;
getVideoFromVideoList
(
r
.
query
.
id
);
}
})
//声明公用变量
var
initCount
=
0
;
var
pubKey
=
''
;
var
playWnd_width
=
window
.
innerWidth
-
200
;
console
.
log
(
app
)
var
playWnd_height
=
window
.
innerHeight
-
220
;
var
oWebControl
;
var
videoIp
;
...
...
@@ -609,6 +599,15 @@ function playVideotest(cameraIndexCode) {
}
// watch(()=>route.params.id, watchEvent, { immediate: true })
// //监听回调函数
// function watchEvent(id){
// if(!VideoInfo.playVideoList){
// return;
// }
// getVideoFromVideoList(id);
// }
defineExpose
({
hidePlay
,
...
...
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