Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kd_control
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
zhanglw
kd_control
Commits
d0daf7a3
Commit
d0daf7a3
authored
Jul 04, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
乐橙云视频
parent
fefb398e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
29 deletions
+38
-29
.env.development
.env.development
+6
-6
config.json
public/config/config.json
+1
-1
carsEZUIKitJs.vue
src/components/ezuikit/carsEZUIKitJs.vue
+20
-11
Map.vue
src/components/mars3d/Map.vue
+8
-8
index.vue
src/views/MLargeScreen/index.vue
+3
-3
No files found.
.env.development
View file @
d0daf7a3
...
...
@@ -5,14 +5,14 @@ ENV = 'development'
#VUE_APP_BASE_API = 'http://39.164.225.220:5002'
#VUE_APP_LOCAL_API = 'http://39.164.225.220:5002'
#
VUE_APP_BASE_API = 'http://192.168.3.23:9092'
#
VUE_APP_LOCAL_API = 'http://192.168.3.23:9092'
VUE_APP_BASE_API = 'http://192.168.3.23:9092'
VUE_APP_LOCAL_API = 'http://192.168.3.23:9092'
VUE_APP_BASE_API = 'http://192.168.3.216:9092'
VUE_APP_LOCAL_API = 'http://192.168.3.216:9092'
#
VUE_APP_BASE_API = 'http://192.168.3.216:9092'
#
VUE_APP_LOCAL_API = 'http://192.168.3.216:9092'
VUE_APP_LOCAL_API2 = 'http://192.168.3.2
16
:9092/'
VUE_APP_WS_API = 'ws://192.168.3.2
16
:9092/webSocket'
VUE_APP_LOCAL_API2 = 'http://192.168.3.2
3
:9092/'
VUE_APP_WS_API = 'ws://192.168.3.2
3
:9092/webSocket'
# 是否启用 babel-plugin-dynamic-import-node插件
VUE_CLI_BABEL_TRANSPILE_MODULES = true
public/config/config.json
View file @
d0daf7a3
{
"map3d"
:
{
"scene"
:
{
"center"
:
{
"lat"
:
3
7.4900
,
"lng"
:
122.04849
,
"alt"
:
1000
,
"heading"
:
360
,
"pitch"
:
-90
},
"center"
:
{
"lat"
:
3
5.683
,
"lng"
:
114.14911
,
"alt"
:
1000
,
"heading"
:
360
,
"pitch"
:
-90
},
"scene3DOnly"
:
false
,
"shadows"
:
false
,
"removeDblClick"
:
true
,
...
...
src/components/ezuikit/carsEZUIKitJs.vue
View file @
d0daf7a3
...
...
@@ -167,15 +167,8 @@ export default {
};
},
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
getCode
();
this
.
videoPlayer
=
videojs
(
'
videoRealtime
'
,
{
bigPlayButton
:
false
,
textTrackDisplay
:
false
,
posterImage
:
true
,
errorDisplay
:
false
,
controlBar
:
true
},
function
()
{
console
.
log
(
'
video ready!
'
)
})
},
methods
:
{
...
...
@@ -191,8 +184,24 @@ export default {
})
},
videoPlay
(){
this
.
videoPlayer
.
src
({
src
:
this
.
cameraSrc
,
type
:
'
application/x-mpegURL
'
});
this
.
$nextTick
(()
=>
{
if
(
this
.
videoPlayer
)
{
this
.
videoPlayer
.
src
({
src
:
this
.
cameraSrc
,
type
:
'
application/x-mpegURL
'
});
this
.
videoPlayer
.
play
();
}
else
{
this
.
videoPlayer
=
videojs
(
'
videoRealtime
'
,
{
bigPlayButton
:
false
,
textTrackDisplay
:
false
,
posterImage
:
true
,
errorDisplay
:
false
,
controlBar
:
true
},
()
=>
{
this
.
videoPlayer
.
src
({
src
:
this
.
cameraSrc
,
type
:
'
application/x-mpegURL
'
});
this
.
videoPlayer
.
play
();
console
.
log
(
'
video ready!
'
)
})
}
})
},
handleNodeClick
(
data
)
{
this
.
$parent
.
closeHkView
();
...
...
src/components/mars3d/Map.vue
View file @
d0daf7a3
...
...
@@ -41,8 +41,8 @@ export default {
weilanName
:[],
areaColorData
:[],
allCarInforData
:[],
defaultjd
:
11
7.121
11
,
defaultwd
:
3
6.679
,
defaultjd
:
11
4.149
11
,
defaultwd
:
3
5.683
,
}
},
...
...
src/views/MLargeScreen/index.vue
View file @
d0daf7a3
...
...
@@ -77,7 +77,7 @@
<div
class=
"monitorCover1"
v-show=
"monitorCover1Show"
>
<div
class=
"monitorCover1_closePic"
@
click=
"closeMonitorCoverFn"
></div>
<video
id=
"videoRealtime"
class=
"video-js vjs-default-skin vjs-big-play-centered monitorCover1_Video"
controls
preload=
"auto"
data-setup=
"
{}">
<video
id=
"videoRealtime
_i
"
class=
"video-js vjs-default-skin vjs-big-play-centered monitorCover1_Video"
controls
preload=
"auto"
data-setup=
"
{}">
您的浏览器不支持:HTML5 video.
</video>
</div>
...
...
@@ -209,7 +209,7 @@ export default {
},
20000
)
//与嵌入的地图页面进行交互
window
.
addEventListener
(
'
message
'
,
this
.
handleMessage
);
this
.
videoPlayer
=
videojs
(
'
videoRealtime
'
,
{
this
.
videoPlayer
=
videojs
(
'
videoRealtime
_i
'
,
{
bigPlayButton
:
false
,
textTrackDisplay
:
false
,
posterImage
:
true
,
...
...
@@ -491,7 +491,7 @@ export default {
//与iframe的页面进行数据交互
handleMessage
(
event
){
//event.data为传递的参数
//这里的判断是因为此方法会多次触发,通过参数是否存在可以判断是否为子页面传递的参数,再做出相应的操作
if
(
event
.
data
.
data
.
hasOwnProperty
(
"
url
"
)){
if
(
event
.
data
&&
event
.
data
.
data
&&
event
.
data
.
data
.
hasOwnProperty
(
"
url
"
)){
if
(
event
.
data
.
data
.
url
==
'
监控
'
){
let
number
=
event
.
data
.
data
.
data
;
HttpReq
.
truckDispatching
.
jkcarMonitorFind
({
carNumber
:
number
}).
then
((
res
)
=>
{
...
...
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