|
@@ -34,7 +34,7 @@
|
|
<div class="env-certain">
|
|
<div class="env-certain">
|
|
<div class="env-certain-top">
|
|
<div class="env-certain-top">
|
|
<div class="kuang">
|
|
<div class="kuang">
|
|
- <iframe :src="'static/jinm/index.html?'+'1'+','+ cameraOne +','+ cameraTwo + ',' +'100%' + ',' + '0'" style="width: 100%; height: 100%;" frameborder="0" allowfullscreen="true"></iframe>
|
|
|
|
|
|
+ <iframe v-if="isVideo" :src="'static/jinm/index.html?'+'1'+','+ wsUrl +','+ rtspUrl + ',' +'100%' + ',' + '0'" style="width: 100%; height: 100%;" frameborder="0" allowfullscreen="true"></iframe>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -90,7 +90,7 @@
|
|
<script>
|
|
<script>
|
|
import ProBoard from '../Production/board/ProBoard.vue'
|
|
import ProBoard from '../Production/board/ProBoard.vue'
|
|
import ChartDashboard from './charts/ChartDashboard.vue'
|
|
import ChartDashboard from './charts/ChartDashboard.vue'
|
|
-import { getEnvList } from "@/utils/api";
|
|
|
|
|
|
+import { getEnvList, getBaseVideo } from "@/utils/api";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "Environment",
|
|
name: "Environment",
|
|
@@ -137,32 +137,12 @@ export default {
|
|
unit: 'mg/L'
|
|
unit: 'mg/L'
|
|
},
|
|
},
|
|
costLoading: true,
|
|
costLoading: true,
|
|
- cameraOne: 'ws://36.26.62.70:9080/camera_relay?tcpaddr=admin%3Ahmkj6688%40172.16.3.201',
|
|
|
|
- cameraTwo: 'rtsp://admin:hmkj6688@172.16.3.201/cam/realmonitor?channel=1&subtype=0',
|
|
|
|
- list: [
|
|
|
|
- {
|
|
|
|
- id: 1,
|
|
|
|
- cameraOne: 'ws://36.26.62.70:9080/camera_relay?tcpaddr=admin%3Ahmkj6688%40172.16.3.201',
|
|
|
|
- cameraTwo: 'rtsp://admin:hmkj6688@172.16.3.201/cam/realmonitor?channel=1&subtype=0',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- id: 2,
|
|
|
|
- cameraOne: 'ws://36.26.62.70:9080/camera_relay?tcpaddr=admin%3Ahmkj6688%40172.16.3.198',
|
|
|
|
- cameraTwo: 'rtsp://admin:hmkj6688@172.16.3.198/cam/realmonitor?channel=1&subtype=0',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- id: 3,
|
|
|
|
- cameraOne: 'ws://36.26.62.70:9080/camera_relay?tcpaddr=admin%3Ahmkj6688%40172.16.3.197',
|
|
|
|
- cameraTwo: 'rtsp://admin:hmkj6688@172.16.3.197/cam/realmonitor?channel=1&subtype=0',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- id: 4,
|
|
|
|
- cameraOne: 'ws://36.26.62.70:9080/camera_relay?tcpaddr=admin%3Ahmkj6688%40172.16.3.203',
|
|
|
|
- cameraTwo: 'rtsp://admin:hmkj6688@172.16.3.203/cam/realmonitor?channel=1&subtype=0',
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ wsUrl: '',
|
|
|
|
+ rtspUrl: '',
|
|
|
|
+ list: [],
|
|
timer: null,
|
|
timer: null,
|
|
- num: 1
|
|
|
|
|
|
+ num: 1,
|
|
|
|
+ isVideo: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -176,6 +156,17 @@ export default {
|
|
}
|
|
}
|
|
this.costLoading = false;
|
|
this.costLoading = false;
|
|
})
|
|
})
|
|
|
|
+ let params = {
|
|
|
|
+ type: 2
|
|
|
|
+ }
|
|
|
|
+ getBaseVideo(params).then(res => {
|
|
|
|
+ this.isVideo = true;
|
|
|
|
+ if(res.code === 10000) {
|
|
|
|
+ this.list = res.data;
|
|
|
|
+ this.wsUrl = res.data[0].wsUrl;
|
|
|
|
+ this.rtspUrl = res.data[0].rtspUrl;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -185,8 +176,8 @@ export default {
|
|
if(that.num > 3) {
|
|
if(that.num > 3) {
|
|
that.num = 0;
|
|
that.num = 0;
|
|
}
|
|
}
|
|
- that.cameraOne = that.list[that.num].cameraOne;
|
|
|
|
- that.cameraTwo = that.list[that.num].cameraTwo;
|
|
|
|
|
|
+ that.wsUrl = that.list[that.num].wsUrl;
|
|
|
|
+ that.rtspUrl = that.list[that.num].rtspUrl;
|
|
that.num++;
|
|
that.num++;
|
|
}, 60000)
|
|
}, 60000)
|
|
},
|
|
},
|