|
@@ -82,7 +82,9 @@
|
|
<!-- v-if="isshoe" -->
|
|
<!-- v-if="isshoe" -->
|
|
<el-col :span='14' style="padding-left: 30px; background-color: #fff;border-radius: 10px;padding: 20px; height: 100vh;" >
|
|
<el-col :span='14' style="padding-left: 30px; background-color: #fff;border-radius: 10px;padding: 20px; height: 100vh;" >
|
|
<div style="display: flex;align-items: center;justify-content: space-between;margin-bottom: 18px;">
|
|
<div style="display: flex;align-items: center;justify-content: space-between;margin-bottom: 18px;">
|
|
- <p style="margin: 0;border-left: 6px solid #03BF8A;margin-left: -20px;padding-left: 10px;font-weight: 800;">实时预览</p>
|
|
|
|
|
|
+ <p style="margin: 0;border-left: 6px solid #03BF8A;margin-left: -20px;padding-left: 10px;font-weight: 800;">实时预览
|
|
|
|
+
|
|
|
|
+ </p>
|
|
<div>
|
|
<div>
|
|
|
|
|
|
<!-- <el-button type="danger" plain>删除</el-button>
|
|
<!-- <el-button type="danger" plain>删除</el-button>
|
|
@@ -93,6 +95,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="dflext mb10">
|
|
<div class="dflext mb10">
|
|
|
|
+
|
|
<div>
|
|
<div>
|
|
<el-button type="primary" @click="clickEnableDraw">绘图</el-button>
|
|
<el-button type="primary" @click="clickEnableDraw">绘图</el-button>
|
|
<el-button type="primary" plain @click="clickAddSnapPolygon">添加图形</el-button>
|
|
<el-button type="primary" plain @click="clickAddSnapPolygon">添加图形</el-button>
|
|
@@ -107,8 +110,10 @@
|
|
</div>
|
|
</div>
|
|
<!-- <el-button type="primary" plain @click="clickCapturePic">抓图</el-button> -->
|
|
<!-- <el-button type="primary" plain @click="clickCapturePic">抓图</el-button> -->
|
|
</div>
|
|
</div>
|
|
|
|
+ <span style="font-size: 12px;color: red;">先点击绘图按钮,在点击添加图片按钮开始绘制,若绘制多个框每次绘制前需点击添加图片按钮,绘制完成后点击获取坐标点
|
|
|
|
+ 。</span>
|
|
<div style="width: 100%; height: 480px;">
|
|
<div style="width: 100%; height: 480px;">
|
|
- <div v-if="isfse" id="divPlugin" style="width: 100%; height: 480px;" ></div>
|
|
|
|
|
|
+ <div v-if="isfse" id="divPlugin" style="width: 100%; height: 440px;" ></div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -343,7 +348,7 @@ export default {
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.isfse = false
|
|
this.isfse = false
|
|
- this.getList();
|
|
|
|
|
|
+ // this.getList();
|
|
this.getListtd()
|
|
this.getListtd()
|
|
window.onresize = () => {
|
|
window.onresize = () => {
|
|
this.changeTableMaxHeight()
|
|
this.changeTableMaxHeight()
|
|
@@ -383,7 +388,21 @@ export default {
|
|
let queryParams = {}
|
|
let queryParams = {}
|
|
listChannelNumbernopa().then(response => {
|
|
listChannelNumbernopa().then(response => {
|
|
this.channelNumberList = response.rows
|
|
this.channelNumberList = response.rows
|
|
- this.total = response.total
|
|
|
|
|
|
+ if(this.channelNumberList.length !=0){
|
|
|
|
+ let snghs = this.channelNumberList[0].videoAddress.split('@')
|
|
|
|
+ let snghst = snghs[1].split(':')
|
|
|
|
+ let snsgduan = snghst[1].split('/')
|
|
|
|
+ console.log(snghs,snghst,snsgduan)
|
|
|
|
+ let sgse={'ip':snghst[0],'duank':snsgduan[0],
|
|
|
|
+ 'account':this.channelNumberList[0].account,
|
|
|
|
+ 'password':this.channelNumberList[0].password,
|
|
|
|
+ }
|
|
|
|
+ this.getVideo(sgse)
|
|
|
|
+ WebVideoCtrl.I_ShowPlugin()
|
|
|
|
+ this.loading = false
|
|
|
|
+ }
|
|
|
|
+ // getWarnManage(this.$route.query.id).then(response => {
|
|
|
|
+ // this.form = response.data
|
|
this.loading = false
|
|
this.loading = false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -618,14 +637,23 @@ export default {
|
|
this.isfse = false
|
|
this.isfse = false
|
|
if(WebVideoCtrl){
|
|
if(WebVideoCtrl){
|
|
console.log(this.szDeviceIdentify)
|
|
console.log(this.szDeviceIdentify)
|
|
|
|
+ this.clickDelAllSnapPolygon()
|
|
WebVideoCtrl.I_Logout(this.szDeviceIdentify)
|
|
WebVideoCtrl.I_Logout(this.szDeviceIdentify)
|
|
WebVideoCtrl.I_StopAllPlay()
|
|
WebVideoCtrl.I_StopAllPlay()
|
|
WebVideoCtrl.I_DestroyPlugin()
|
|
WebVideoCtrl.I_DestroyPlugin()
|
|
WebVideoCtrl.I_Resize()
|
|
WebVideoCtrl.I_Resize()
|
|
}
|
|
}
|
|
- // WebVideoCtrl.I_StopAllPlay()
|
|
|
|
|
|
+ let snghs = val.videoAddress.split('@')
|
|
|
|
+ let snghst = snghs[1].split(':')
|
|
|
|
+ let snsgduan = snghst[1].split('/')
|
|
|
|
+ console.log(snghs,snghst,snsgduan)
|
|
|
|
+ let sgse={'ip':snghst[0],'duank':snsgduan[0],
|
|
|
|
+ 'account':val.account,
|
|
|
|
+ 'password':val.password,
|
|
|
|
+ }
|
|
|
|
+ this.getVideo(sgse)
|
|
|
|
+ WebVideoCtrl.I_ShowPlugin()
|
|
// this.clickStartRealPlay('192.168.101.64', '80',1, 0, 1);
|
|
// this.clickStartRealPlay('192.168.101.64', '80',1, 0, 1);
|
|
- this.getVideo()
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
@@ -670,8 +698,6 @@ export default {
|
|
this.player.play()
|
|
this.player.play()
|
|
console.log('播放')
|
|
console.log('播放')
|
|
},900)
|
|
},900)
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
}, 500);
|
|
}, 500);
|
|
},
|
|
},
|
|
@@ -751,7 +777,11 @@ export default {
|
|
this.loading = true
|
|
this.loading = true
|
|
// getWarnManage(this.$route.query.id).then(response => {
|
|
// getWarnManage(this.$route.query.id).then(response => {
|
|
// this.form = response.data
|
|
// this.form = response.data
|
|
-
|
|
|
|
|
|
+ const url = new URL('rtsp://admin:zxy123456@192.168.101.64:554/h264/ch1/main/av_stream');
|
|
|
|
+ const auth = url.username + ':' + url.password;
|
|
|
|
+ console.log(url.username,url.password,8)
|
|
|
|
+ // this.username = url.username;
|
|
|
|
+ // this.password = url.password;
|
|
this.getVideo()
|
|
this.getVideo()
|
|
WebVideoCtrl.I_ShowPlugin()
|
|
WebVideoCtrl.I_ShowPlugin()
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -1160,7 +1190,8 @@ export default {
|
|
getVideo(row) {
|
|
getVideo(row) {
|
|
var that=this;
|
|
var that=this;
|
|
this.isfse = true
|
|
this.isfse = true
|
|
- this.initVideoPlay('192.168.101.64', '80', 'admin', 'zxy123456','divPlugin')
|
|
|
|
|
|
+ console.log(row)
|
|
|
|
+ this.initVideoPlay(row.ip, '80', row.account, row.password,'divPlugin')
|
|
},
|
|
},
|
|
// 有插件
|
|
// 有插件
|
|
initVideoPlay(ip, port, username, password,id) {
|
|
initVideoPlay(ip, port, username, password,id) {
|