Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
卡
卡车调度系统
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
caicaicai
卡车调度系统
Commits
c3170788
Commit
c3170788
authored
Mar 03, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
a4cbe12c
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
595 additions
and
70 deletions
+595
-70
common.js
src/assets/js/common.js
+16
-0
EZUIKitJs.vue
src/components/ezuikit/EZUIKitJs.vue
+39
-64
carsEZUIKitJs.vue
src/components/ezuikit/carsEZUIKitJs.vue
+536
-0
index.vue
...telligentDispatchManagement/carManualScheduling/index.vue
+1
-1
index.vue
...ispatchManagement/carManualSchedulingManagement/index.vue
+1
-1
index.vue
...ntelligentDispatchManagement/carVoiceSupplement/index.vue
+1
-1
index.vue
src/views/monitoringManagement/carVideo/index.vue
+1
-2
index.vue
src/views/monitoringManagement/mineVideo/index.vue
+0
-1
No files found.
src/assets/js/common.js
View file @
c3170788
...
@@ -464,6 +464,22 @@ var HttpReq = function(){
...
@@ -464,6 +464,22 @@ var HttpReq = function(){
data
:
data
,
data
:
data
,
})
})
},
},
//视频监控——矿山监控——摄像头萤石云视频监控获取token
mineMonitoringGetTokenaQuery
:
function
(
param
){
return
request
({
url
:
'
/cameraDetail/token
'
,
method
:
'
get
'
,
params
:
param
,
})
},
//视频监控——矿山监控——摄像头视频监控云台控制判断有无
mineMonitoringHowYuntaiQuery
:
function
(
param
){
return
request
({
url
:
'
/cameraDetail/yuntai
'
,
method
:
'
get
'
,
params
:
param
,
})
},
//视频监控——车辆监控管理——车队管理
//视频监控——车辆监控管理——车队管理
carMonitoringFleetQuery
:
function
(
param
){
carMonitoringFleetQuery
:
function
(
param
){
return
request
({
return
request
({
...
...
src/components/ezuikit/EZUIKitJs.vue
View file @
c3170788
<
template
>
<
template
>
<div
style=
"background: white"
>
<div>
<el-container>
<el-container>
<el-header
style=
"font-size: 20px; font-weight: bold"
<el-header
style=
"font-size: 20px; font-weight: bold"
>
>
鑫海矿业监控视频
</el-header
卡车调度系统矿山监控视频
>
</el-header>
<el-container>
<el-container>
<el-aside
width=
"230px"
style=
"height:
86
vh"
>
<el-aside
width=
"230px"
style=
"height:
79
vh"
>
<el-tree
<el-tree
:data=
"videoData"
:data=
"videoData"
:props=
"defaultProps"
:props=
"defaultProps"
...
@@ -62,16 +61,7 @@
...
@@ -62,16 +61,7 @@
<
script
>
<
script
>
// import Hls from "hls.js"
// import Hls from "hls.js"
// import EZUIKit from "ezuikit-js";
// import EZUIKit from "ezuikit-js";
// import { httpGet, httpPost, httpPostForJson } from "@/common/httpBean.js";
import
{
Tools
,
HttpReq
,
Dates
}
from
'
@/assets/js/common.js
'
;
// import {
// mainCameraDetail,
// cameraDetailToken,
// cameraDetailDahuatoken,
// mainCamera,
// startCamera,
// stopCamera,
// cameraDetailYuntai,
// } from "@/axios/api.js";
var
noPtzhls
=
null
;
var
noPtzhls
=
null
;
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -102,31 +92,27 @@ export default {
...
@@ -102,31 +92,27 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
getCode
();
this
.
getCode
();
this
.
getDaHua
();
//
this.getDaHua();
this
.
getAccessToken
();
//
this.getAccessToken();
},
},
methods
:
{
methods
:
{
getAccessToken
()
{
getAccessToken
()
{
httpGet
(
cameraDetailToken
).
then
(
res
=>
{
let
param
=
{};
this
.
accessToken
=
res
.
data
.
accessToken
;
HttpReq
.
truckDispatching
.
mineMonitoringGetTokenaQuery
(
param
).
then
((
res
)
=>
{
});
this
.
accessToken
=
res
.
data
.
accessToken
;
})
},
},
getCode
()
{
getCode
()
{
//分区数据
//分区数据
httpGet
(
mainCamera
,
{
size
:
999
}).
then
((
res
)
=>
{
HttpReq
.
truckDispatching
.
mineMonitoringPartitionQuery
({
size
:
999
}).
then
((
res
)
=>
{
//console.log(res);
let
data1
=
[];
let
data1
=
[];
res
.
content
.
forEach
((
item
)
=>
{
res
.
content
.
forEach
((
item
)
=>
{
item
.
label
=
item
.
name
;
item
.
label
=
item
.
name
;
data1
.
push
(
item
);
data1
.
push
(
item
);
});
});
//this.videoData = data1;
if
(
res
!=
""
)
{
if
(
res
!=
""
)
{
//总摄像头数据
//总摄像头数据
httpGet
(
mainCameraDetail
,
{
size
:
999
}).
then
((
res
)
=>
{
HttpReq
.
truckDispatching
.
mineMonitoringCameraQuery
({
size
:
999
}).
then
((
res
)
=>
{
let
fenqu1
=
[];
let
fenqu2
=
[];
let
fenqu3
=
[];
let
fenquName
=
[];
let
fenquName
=
[];
res
.
content
.
forEach
((
item
,
index
)
=>
{
res
.
content
.
forEach
((
item
,
index
)
=>
{
item
.
ref
=
"
video
"
+
index
;
item
.
ref
=
"
video
"
+
index
;
...
@@ -134,31 +120,19 @@ export default {
...
@@ -134,31 +120,19 @@ export default {
item
.
label
=
item
.
cameraName
;
item
.
label
=
item
.
cameraName
;
fenquName
.
push
(
item
);
fenquName
.
push
(
item
);
});
});
fenquName
.
forEach
(
function
(
item
)
{
data1
.
forEach
((
item
)
=>
{
if
(
item
.
cameraId
==
1
)
{
item
.
children
=
[];
fenqu1
.
push
(
item
);
fenquName
.
forEach
((
itemSon
,
index
)
=>
{
}
else
if
(
item
.
cameraId
==
2
)
{
if
(
item
.
id
==
itemSon
.
cameraId
){
fenqu2
.
push
(
item
);
item
.
children
.
push
(
itemSon
);
}
else
{
}
fenqu3
.
push
(
item
);
})
}
});
let
videoData1
=
data1
;
videoData1
.
forEach
((
item
)
=>
{
if
(
item
.
id
==
1
)
{
item
.
children
=
fenqu1
;
}
else
if
(
item
.
id
==
2
)
{
item
.
children
=
fenqu2
;
}
else
{
item
.
children
=
fenqu3
;
}
});
});
this
.
videoData
=
videoD
ata1
;
this
.
videoData
=
d
ata1
;
console
.
log
(
this
.
videoData
);
console
.
log
(
this
.
videoData
);
})
;
})
}
}
});
})
},
},
handleNodeClick
(
data
)
{
handleNodeClick
(
data
)
{
console
.
log
(
data
);
console
.
log
(
data
);
...
@@ -184,8 +158,8 @@ export default {
...
@@ -184,8 +158,8 @@ export default {
item
.
hls
.
loadSource
(
item
.
url
)
item
.
hls
.
loadSource
(
item
.
url
)
item
.
hls
.
attachMedia
(
that
.
$refs
[
item
.
ref
][
0
]);
item
.
hls
.
attachMedia
(
that
.
$refs
[
item
.
ref
][
0
]);
item
.
hls
.
on
(
Hls
.
Events
.
MANIFEST_PARSED
,
function
()
{
item
.
hls
.
on
(
Hls
.
Events
.
MANIFEST_PARSED
,
function
()
{
that
.
$refs
[
item
.
ref
][
0
].
play
();
that
.
$refs
[
item
.
ref
][
0
].
play
();
});
});
})
})
})
})
...
@@ -203,8 +177,8 @@ export default {
...
@@ -203,8 +177,8 @@ export default {
item
.
hls
.
loadSource
(
item
.
url
)
item
.
hls
.
loadSource
(
item
.
url
)
item
.
hls
.
attachMedia
(
that
.
$refs
[
item
.
ref
][
0
]);
item
.
hls
.
attachMedia
(
that
.
$refs
[
item
.
ref
][
0
]);
item
.
hls
.
on
(
Hls
.
Events
.
MANIFEST_PARSED
,
function
()
{
item
.
hls
.
on
(
Hls
.
Events
.
MANIFEST_PARSED
,
function
()
{
that
.
$refs
[
item
.
ref
][
0
].
play
();
that
.
$refs
[
item
.
ref
][
0
].
play
();
});
});
})
})
})
})
...
@@ -315,15 +289,15 @@ export default {
...
@@ -315,15 +289,15 @@ export default {
}
else
{
}
else
{
this
.
btnChildren
=
false
;
this
.
btnChildren
=
false
;
if
(
data
.
brand
==
1
)
{
if
(
data
.
brand
==
1
)
{
httpGet
(
cameraDetailYuntai
,
{
ip
:
data
.
cameraIp
}).
then
((
res
)
=>
{
HttpReq
.
truckDispatching
.
mineMonitoringHowYuntaiQuery
(
{
ip
:
data
.
cameraIp
}).
then
((
res
)
=>
{
if
(
!
res
){
if
(
!
res
){
let
noPtzVideo
=
document
.
getElementById
(
'
noPtzVideo
'
);
let
noPtzVideo
=
document
.
getElementById
(
'
noPtzVideo
'
);
noPtzhls
=
new
Hls
();
noPtzhls
=
new
Hls
();
noPtzhls
.
loadSource
(
data
.
url
);
noPtzhls
.
loadSource
(
data
.
url
);
noPtzhls
.
attachMedia
(
noPtzVideo
);
noPtzhls
.
attachMedia
(
noPtzVideo
);
noPtzhls
.
on
(
Hls
.
Events
.
MANIFEST_PARSED
,
function
()
{
noPtzhls
.
on
(
Hls
.
Events
.
MANIFEST_PARSED
,
function
()
{
noPtzVideo
.
play
();
noPtzVideo
.
play
();
});
});
this
.
isChildren1
=
false
;
this
.
isChildren1
=
false
;
this
.
isChildren2
=
false
;
this
.
isChildren2
=
false
;
this
.
isChildren3
=
false
;
this
.
isChildren3
=
false
;
...
@@ -344,7 +318,6 @@ export default {
...
@@ -344,7 +318,6 @@ export default {
if
(
noPtzhls
!=
null
){
if
(
noPtzhls
!=
null
){
noPtzhls
.
destroy
();
noPtzhls
.
destroy
();
}
}
}
}
})
})
}
else
if
(
data
.
brand
==
2
)
{
}
else
if
(
data
.
brand
==
2
)
{
...
@@ -381,8 +354,7 @@ export default {
...
@@ -381,8 +354,7 @@ export default {
}
}
},
},
getDaHua
()
{
getDaHua
()
{
httpGet
(
mainCameraDetail
,
{
page
:
0
,
size
:
100
}).
then
((
res
)
=>
{
HttpReq
.
truckDispatching
.
mineMonitoringCameraQuery
({
page
:
0
,
size
:
100
}).
then
((
res
)
=>
{
let
that
=
this
;
let
dahua
=
[];
let
dahua
=
[];
res
.
content
.
forEach
(
function
(
item
)
{
res
.
content
.
forEach
(
function
(
item
)
{
if
(
item
.
brand
==
2
)
{
if
(
item
.
brand
==
2
)
{
...
@@ -390,7 +362,7 @@ export default {
...
@@ -390,7 +362,7 @@ export default {
}
}
});
});
this
.
dahuaData
=
dahua
;
this
.
dahuaData
=
dahua
;
});
})
},
},
upPage
()
{
upPage
()
{
let
that
=
this
;
let
that
=
this
;
...
@@ -505,14 +477,17 @@ export default {
...
@@ -505,14 +477,17 @@ export default {
background-color
:
#fffef9
;
background-color
:
#fffef9
;
color
:
#333
;
color
:
#333
;
text-align
:
center
;
text-align
:
center
;
padding
:
0
;
margin-bottom
:
0px
;
}
}
.el-main
{
.el-main
{
background-color
:
white
;
background-color
:
white
;
color
:
#333
;
color
:
#333
;
text-align
:
center
;
text-align
:
center
;
height
:
86
vh
;
height
:
79
vh
;
overflow
:
hidden
;
overflow
:
hidden
;
width
:
73vw
;
}
}
.el-tree-node__content
{
.el-tree-node__content
{
...
...
src/components/ezuikit/carsEZUIKitJs.vue
0 → 100644
View file @
c3170788
This diff is collapsed.
Click to expand it.
src/views/
car
Management/carManualScheduling/index.vue
→
src/views/
IntelligentDispatch
Management/carManualScheduling/index.vue
View file @
c3170788
...
@@ -223,7 +223,7 @@ import Axios from 'axios'
...
@@ -223,7 +223,7 @@ import Axios from 'axios'
import
EZUIKit
from
"
ezuikit-js
"
;
import
EZUIKit
from
"
ezuikit-js
"
;
export
default
{
export
default
{
name
:
'
c
arManualScheduling
'
,
name
:
'
C
arManualScheduling
'
,
components
:
{
components
:
{
DateRangePicker
,
cuAmap
DateRangePicker
,
cuAmap
},
},
...
...
src/views/
car
Management/carManualSchedulingManagement/index.vue
→
src/views/
IntelligentDispatch
Management/carManualSchedulingManagement/index.vue
View file @
c3170788
...
@@ -223,7 +223,7 @@ import Axios from 'axios'
...
@@ -223,7 +223,7 @@ import Axios from 'axios'
import
EZUIKit
from
"
ezuikit-js
"
;
import
EZUIKit
from
"
ezuikit-js
"
;
export
default
{
export
default
{
name
:
'
c
arManualSchedulingManagement
'
,
name
:
'
C
arManualSchedulingManagement
'
,
components
:
{
components
:
{
DateRangePicker
,
cuAmap
DateRangePicker
,
cuAmap
},
},
...
...
src/views/
car
Management/carVoiceSupplement/index.vue
→
src/views/
IntelligentDispatch
Management/carVoiceSupplement/index.vue
View file @
c3170788
...
@@ -223,7 +223,7 @@ import Axios from 'axios'
...
@@ -223,7 +223,7 @@ import Axios from 'axios'
import
EZUIKit
from
"
ezuikit-js
"
;
import
EZUIKit
from
"
ezuikit-js
"
;
export
default
{
export
default
{
name
:
'
c
arVoiceSupplement
'
,
name
:
'
C
arVoiceSupplement
'
,
components
:
{
components
:
{
DateRangePicker
,
cuAmap
DateRangePicker
,
cuAmap
},
},
...
...
src/views/monitoringManagement/carVideo/index.vue
View file @
c3170788
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
EZUIKitJs
from
'
../../../components/ezuikit/EZUIKitJs.vue
'
import
EZUIKitJs
from
'
../../../components/ezuikit/
cars
EZUIKitJs.vue
'
export
default
{
export
default
{
components
:
{
components
:
{
EZUIKitJs
EZUIKitJs
...
@@ -15,7 +15,6 @@ export default {
...
@@ -15,7 +15,6 @@ export default {
<
style
scoped
>
<
style
scoped
>
#app
{
#app
{
background-color
:
white
;
font-family
:
Avenir
,
Helvetica
,
Arial
,
sans-serif
;
font-family
:
Avenir
,
Helvetica
,
Arial
,
sans-serif
;
-webkit-font-smoothing
:
antialiased
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
-moz-osx-font-smoothing
:
grayscale
;
...
...
src/views/monitoringManagement/mineVideo/index.vue
View file @
c3170788
...
@@ -15,7 +15,6 @@ export default {
...
@@ -15,7 +15,6 @@ export default {
<
style
scoped
>
<
style
scoped
>
#app
{
#app
{
background-color
:
white
;
font-family
:
Avenir
,
Helvetica
,
Arial
,
sans-serif
;
font-family
:
Avenir
,
Helvetica
,
Arial
,
sans-serif
;
-webkit-font-smoothing
:
antialiased
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
-moz-osx-font-smoothing
:
grayscale
;
...
...
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