医护随身报警,视频联动

main
zhangqun 2 years ago
parent 1d704ea7f8
commit 2659ff5255
  1. 8
      src/api/wirelessintrusion/wirelessintrusion.js
  2. 10
      src/views/wirelessintrusion/warn/record.vue
  3. 4
      vue.config.js

@ -195,4 +195,12 @@ export const queryLiveBack = (params) => {
method: 'get',
params: params
})
}
//查询摄像头设备
export const getDeviceCamera = (params) => {
return request({
url: '/api/safeCare/callBack/getDeviceCamera',
method: 'get',
params: params
})
}

@ -29,7 +29,7 @@
<div class="video_box">
<el-row :gutter="20">
<el-col :span="6" v-for="item in videoData" :key="item.id">
<VideoPlayer :name="item.name" :id="item.id" :code="item.cameraIndexCode"
<VideoPlayer :name="item.name" :id="item.id" :code="item.sn"
:url="'https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv'"
:playbackUrl="'https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv'" />
</el-col>
@ -327,9 +327,9 @@ export default {
if (token == 'undefined' || !token) {
bizLogin({ appKey: 'Arf7bd4f26', appSecret: 'kb207044c8' }).then(res => {
window.sessionStorage.setItem('bizToken', res.data.data.token);
bizDeviceList(res.data.data.token, { 'params[pmac]': row.deviceId }).then(res2 => {
getDeviceCamera(res.data.data.token, { sn: row.hostSerialNumber }).then(res2 => {
const data = res2.data;
this.videoData = data.rows;
this.videoData = data;
if (this.videoData.length === 0) {
this.$message.warning('未查询到该报警点摄像头');
}
@ -339,14 +339,14 @@ export default {
});
})
} else {
bizDeviceList(token, { 'params[pmac]': row.deviceId }).then(res2 => {
getDeviceCamera(res.data.data.token, { sn: row.hostSerialNumber }).then(res2 => {
if (res2.data.code == 401) {
window.sessionStorage.removeItem('bizToken');
this.linkVideo(row);
}
else if (res2.data.code == 200) {
const data = res2.data;
this.videoData = data.rows;
this.videoData = data;
if (this.videoData.length === 0) {
this.$message.warning('未查询到该报警点摄像头');
}

@ -39,8 +39,8 @@ module.exports = {
proxy: {
"/api": {
//本地服务接口地址
target: 'http://192.168.1.34:81',
// target: 'http://192.168.3.32:81',
// target: 'http://192.168.1.34:81',
target: 'http://192.168.3.32:81',
// target: 'http://192.168.1.102:81',
ws: true,
pathRewrite: {

Loading…
Cancel
Save