diff --git a/dist.zip b/dist.zip
deleted file mode 100644
index e1473f9..0000000
Binary files a/dist.zip and /dev/null differ
diff --git a/public/index.html b/public/index.html
index fe2c68b..2313cf1 100644
--- a/public/index.html
+++ b/public/index.html
@@ -10,12 +10,12 @@
-
昆船垛机视觉系统
+ 堆垛机视觉系统
diff --git a/src/api/http/http-api.js b/src/api/http/http-api.js
index 2216346..08708fe 100644
--- a/src/api/http/http-api.js
+++ b/src/api/http/http-api.js
@@ -66,6 +66,16 @@ export default {
url: "/realTime/allCameras",
name: "获取全部球机"
},
+ allCamerasByArea:{
+ method: "GET",
+ url: "/realTime/allCamerasByArea",
+ name: "根据库区查询球机"
+ },
+ getAllAreas:{
+ method: "GET",
+ url: "/realTime/allAreas",
+ name: "获取全部库区"
+ },
getWallStyle:{
method: "GET",
url: "/realTime/wallStyle",
diff --git a/src/views/realTimeMonitoring/index.vue b/src/views/realTimeMonitoring/index.vue
index 5e195ca..239a6a9 100644
--- a/src/views/realTimeMonitoring/index.vue
+++ b/src/views/realTimeMonitoring/index.vue
@@ -1,66 +1,67 @@
-
+
+
+
-
-
+
+
+
+
+
![]()
+
变倍
+
![]()
+
+
+
![]()
+
变焦
+
![]()
+
+
+
![]()
+
光圈
+
![]()
+
+
+
+
+
+
![]()
+
![]()
+
+
+
+
- marginBottom: ((selectTab.videoStyleRow * selectTab.videoStyleColumn - index - 1) >= selectTab.videoStyleColumn) ? '20px': 0
- }"
- >
-
-
-
-
-
![]()
-
变倍
-
![]()
-
-
-
![]()
-
变焦
-
![]()
-
-
-
![]()
-
光圈
-
![]()
-
-
-
-
-
-
![]()
-
![]()
-
-
-
-
-
-
-
+
+
diff --git a/src/views/roadwayManage/index.vue b/src/views/roadwayManage/index.vue
index 19b085c..c18c13c 100644
--- a/src/views/roadwayManage/index.vue
+++ b/src/views/roadwayManage/index.vue
@@ -98,6 +98,10 @@ const columns = [
title: '巷道标识',
dataIndex: 'plcId',
},
+ {
+ title: '库区',
+ dataIndex: 'area',
+ },
{
title: '光源IP',
scopedSlots: { customRender: 'lightSourceIp' }
diff --git a/src/views/roadwayManage/model.vue b/src/views/roadwayManage/model.vue
index 0eccc36..4961b34 100644
--- a/src/views/roadwayManage/model.vue
+++ b/src/views/roadwayManage/model.vue
@@ -25,6 +25,15 @@
v-decorator="['plcId', { rules: [{ required: true, message: '请输入巷道标识!' }] }]"
/>
+
+
+
@@ -277,7 +286,8 @@ export default {
camera1Id:newVal.camera1Id,
camera2Id:newVal.camera2Id,
camera1Name:newVal.camera1Name,
- camera2Name:newVal.camera2Name
+ camera2Name:newVal.camera2Name,
+ area:newVal.area
})
})
}
diff --git a/src/views/videoWall/index.vue b/src/views/videoWall/index.vue
index 34e2846..ca73bb9 100644
--- a/src/views/videoWall/index.vue
+++ b/src/views/videoWall/index.vue
@@ -3,6 +3,12 @@
全屏
退出全屏
+
+
+
+
+
+
@@ -35,7 +41,9 @@ export default {
isFullscreen: false,
originHeight: 0,
fullHeight: 0,
- players: []
+ players: [],
+ areas:[],
+ activeKey: ''
}
},
//watch: {},
@@ -51,7 +59,8 @@ export default {
this.getWallStyle();
this.$nextTick(() => {
- this.getAllCameras()
+
+ this.getAllAreas()
});
let isFullscreen =
document.fullscreenElement ||
@@ -124,13 +133,62 @@ export default {
console.log(err)
})
},
+ getAllAreas(){
+ this.$api.httpApi.getAllAreas({
+ data: {}
+ }).then(res => {
+ if(res.code == 200) {
+ this.areas = res.data;
+
+ if(this.areas.length == 0){
+ this.getAllCameras()
+ }else{
+ this.activeKey = this.areas[0]
+ this.tabChange();
+ }
+ }
+ }).catch(err => {
+ console.log(err)
+ })
+ },
destory(){
for(let player of this.players){
console.log("stop")
player.destroy()
}
+ this.players = []
+ },
+ tabChange(){
+ this.destory();
+ this.$api.httpApi.allCamerasByArea({
+ params:{
+ area:this.activeKey
+ }
+
+ }).then(res => {
+ if(res.code == 200) {
+ let cameras = res.data;
+ for(let i = 1;i<=cameras.length;i++){
+ let rowIndex = Math.floor((i-1) / this.column) + 1;
+ if(rowIndex > this.row){
+ return
+ }
+ let columnIndex = i % this.column;
+ if(columnIndex == 0){
+ columnIndex = this.column;
+ }
+ let idName = rowIndex + "-" + columnIndex;
+ console.log("idName:"+idName);
+ let server = cameras[i-1].rtcServer+":"+ cameras[i-1].rtcServerPort
+ let video = document.getElementById(idName);
+ let player = new WebRtcPlayer(server,video,"camera"+cameras[i-1].id);
+ this.players.push(player);
+ }
+ }
+ }).catch(err => {
+ console.log(err)
+ })
},
-
full () {
if(this.isFullscreen){
this.exitfullscreen()