Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
holo-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinkong
holo-web
Commits
6ba2997c
Commit
6ba2997c
authored
Sep 20, 2024
by
ninglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
按需求改动超限 & 处理bug
parent
2dc3308f
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
743 additions
and
397 deletions
+743
-397
package-lock.json
wj-manage-web/package-lock.json
+321
-85
loopVideo.vue
wj-manage-web/src/components/Standard/loopVideo.vue
+2
-1
messageBoxes.vue
wj-manage-web/src/views/situation/floatData/messageBoxes.vue
+104
-63
index.vue
wj-manage-web/src/views/situation/index.vue
+196
-166
vehicleDetail.vue
wj-manage-web/src/views/situation/mapPopup/vehicleDetail.vue
+13
-0
index.vue
wj-manage-web/src/views/situation/sigalTraceVideos/index.vue
+107
-82
No files found.
wj-manage-web/package-lock.json
View file @
6ba2997c
This diff is collapsed.
Click to expand it.
wj-manage-web/src/components/Standard/loopVideo.vue
View file @
6ba2997c
...
...
@@ -61,7 +61,8 @@ export default {
starttime
:
this
.
replaceTimeGap
(
this
.
timeModel
.
startTime
),
endtime
:
this
.
replaceTimeGap
(
this
.
timeModel
.
endTime
),
});
console
.
log
(
"
video response
"
,
response
);
console
.
log
(
"
video response 请求完成
"
,
response
);
this
.
$emit
(
'
loadEnd
'
)
this
.
videoUrl
=
response
.
content
;
setTimeout
(()
=>
{
this
.
$refs
.
loopVideoPlayer
.
load
();
...
...
wj-manage-web/src/views/situation/floatData/messageBoxes.vue
View file @
6ba2997c
This diff is collapsed.
Click to expand it.
wj-manage-web/src/views/situation/index.vue
View file @
6ba2997c
This diff is collapsed.
Click to expand it.
wj-manage-web/src/views/situation/mapPopup/vehicleDetail.vue
View file @
6ba2997c
...
...
@@ -4,6 +4,7 @@
<div
class=
"vehicleDetailInner"
>
<div
class=
"head"
>
<span
class=
"titleBefore"
></span><span>
{{
model
.
picLicense
||
"
暂无车牌号信息
"
}}
</span>
<div
@
click=
"emitPopupClose"
class=
"el-icon-close"
></div>
</div>
<div
class=
"content"
>
<div
class=
"detailItem"
>
...
...
@@ -71,6 +72,9 @@ export default {
// console.log("model", this.model);
},
methods
:
{
emitPopupClose
(){
this
.
$EventBus
.
$emit
(
"
emitPopupClose
"
,{
id
:
this
.
model
.
id
,
overRun
:
!
this
.
notExceed
});
},
convertDict
(
type
,
value
)
{
for
(
let
item
of
store
.
state
.
dicts
[
type
])
{
if
(
item
.
code
==
value
)
{
...
...
@@ -146,6 +150,15 @@ export default {
color: white;
display: flex;
align-items: center;
position: relative;
div{
position: absolute;
cursor: pointer;
right: 3px;
top: 18px;
font-weight: bold;
font-size: 20px;
}
span {
display: inline-block;
...
...
wj-manage-web/src/views/situation/sigalTraceVideos/index.vue
View file @
6ba2997c
<
template
>
<div
id=
"holo_historyCameraContainer"
class=
"eventCameraContainer"
v-show=
"true"
>
<div
id=
"historyCameraContainer"
class=
"historyCameraContainer"
>
<div
class=
"cameraVideoShow"
:key=
"index"
v-for=
"(item, index) of channels"
v-show=
"true"
:id=
"`videoVisibles$
{item}`">
<loop-video
class=
"holo_his"
ref=
"hisVideo"
:autoplay=
"true"
:timeModel=
"timeDuration"
:channel=
"item"
></loop-video>
</div>
</div>
<div
id=
"holo_historyCameraContainer"
class=
"eventCameraContainer"
v-show=
"true"
>
<div
id=
"historyCameraContainer"
class=
"historyCameraContainer"
>
<div
class=
"cameraVideoShow"
:key=
"index"
v-for=
"(item, index) of urls"
v-show=
"true"
:id=
"`videoVisibles$
{item}`">
<!--
<loop-video
@
loadEnd=
"loadEnd"
class=
"holo_his"
ref=
"hisVideo"
:autoplay=
"true"
:timeModel=
"timeDuration"
:channel=
"item"
></loop-video>
-->
<video
:src=
"item"
style=
"object-fit: fill;width: 100%;height: 100%;"
@
canplay=
"videoCanPlay"
autoplay
muted
loop
class=
"videoControl"
ref=
"loopVideoPlayer"
>
<!--
<source
:src=
"item"
type=
"video/mp4"
/>
-->
<!-- 您的浏览器不支持 video 属性。-->
</video>
</div>
</div>
</div>
</
template
>
<
script
>
import
LoopVideo
from
"
../../../components/Standard/loopVideo.vue
"
;
export
default
{
name
:
"
historyVideos
"
,
components
:
{
LoopVideo
,
},
props
:
{
channels
:
{
type
:
Array
,
default
()
{
return
[
'
2
'
,
'
9
'
]
}
},
timeDuration
:
{
type
:
Object
,
default
()
{
return
{
startTime
:
''
,
endTime
:
''
}
}
},
},
data
()
{
return
{
}
name
:
"
historyVideos
"
,
components
:
{
LoopVideo
,
},
props
:
{
// channels: {
// type: Array,
// default() {
// return ['2', '9']
// }
// },
urls
:
{
type
:
Array
,
default
()
{
return
[]
}
},
computed
:
{},
methods
:
{
// playHisVideos() {
// if (this.$refs.hisVideo) {
// for (let container of this.$refs.hisVideo) {
// container?.startPlay();
// }
// }
// }
// timeDuration: {
// type: Object,
// default() {
// return {
// startTime: '',
// endTime: ''
// }
// }
// },
},
mounted
()
{
console
.
log
(
'
urls
'
,
this
.
urls
)
},
data
()
{
return
{
ready
:
false
}
},
computed
:
{},
methods
:
{
// playHisVideos() {
// if (this.$refs.hisVideo) {
// for (let container of this.$refs.hisVideo) {
// container?.startPlay();
// }
// }
// }
videoCanPlay
()
{
if
(
!
this
.
ready
)
{
this
.
ready
=
true
this
.
$emit
(
'
isReady
'
)
}
},
},
};
</
script
>
<
style
lang=
"less"
scoped
>
.eventCameraContainer {
position: absolute;
width: 600px;
height: 200px;
max-width: 600px;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
display: flex;
margin: 0 auto;
border: 1px solid rgba(83, 146, 189, 1);
background: rgba(10, 26, 41, 0.9);
border-radius: 6px;
.holo_his{
border: 1px solid rgba(255,255,255,0.3);
}
position: absolute;
width: 600px;
height: 200px;
max-width: 600px;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
display: flex;
margin: 0 auto;
border: 1px solid rgba(83, 146, 189, 1);
background: rgba(10, 26, 41, 0.9);
border-radius: 6px;
.historyCameraContainer {
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
height: 100%;
.holo_his {
border: 1px solid rgba(255, 255, 255, 0.3);
.cameraVideoShow {
width: 50%;
height: 100%;
padding: 4px;
}
}
.lessWidthVideo {
width: calc(100% - 6px);
}
.historyCameraContainer {
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
height: 100%;
.cameraVideoShow {
width: 50%;
height: 100%;
padding: 4px;
}
.normalWidthVideo {
width: 100%;
}
.lessWidthVideo {
width: calc(100% - 6px);
}
.noVideo {
pointer-events: none;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
font-size: 32px;
color: #04396f;
.normalWidthVideo {
width: 100%;
}
}
.noVideo {
pointer-events: none;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
font-size: 32px;
color: #04396f;
}
}
</
style
>
\ No newline at end of file
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