Commit 06a2ad95 by 李乾广

修改bug

1 parent d41aa782
...@@ -10,10 +10,10 @@ const tourApi = { ...@@ -10,10 +10,10 @@ const tourApi = {
}, },
// 云控制 // 云控制
ptzStart(params,config) { ptzStart(params,config) {
return req('PUT', `/patrol/through/ptzStart`, params, config) return req('POST', `/patrol/through/ptzStart`, params, config)
}, },
ptzStop(params,config) { ptzStop(params,config) {
return req('PUT', `/patrol/through/ptzStop`, params, config) return req('POST', `/patrol/through/ptzStop`, params, config)
}, },
// 获取设备录像记录 // 获取设备录像记录
getThroughVideoRecord(params, config){ getThroughVideoRecord(params, config){
......
...@@ -130,6 +130,7 @@ export default { ...@@ -130,6 +130,7 @@ export default {
// this.params = obj // this.params = obj
console.log(this.params) console.log(this.params)
document.title = this.params.gateName||'视频详情' document.title = this.params.gateName||'视频详情'
this.params.ptzEnable = ''+this.params.ptzEnable
this.terminalType = this.params.terminalType this.terminalType = this.params.terminalType
this.dateFormatType = this.terminalType == 'ios'||this.terminalType == 'mac' ? 'YYYY/MM/DD':'YYYY-MM-DD'; this.dateFormatType = this.terminalType == 'ios'||this.terminalType == 'mac' ? 'YYYY/MM/DD':'YYYY-MM-DD';
if(this.params.gateUnid) { if(this.params.gateUnid) {
...@@ -162,6 +163,8 @@ export default { ...@@ -162,6 +163,8 @@ export default {
tourApi.getThroughVideoUrl({param:parStr}).then(res => { tourApi.getThroughVideoUrl({param:parStr}).then(res => {
if (res.data&&res.data.code == 200) { if (res.data&&res.data.code == 200) {
this.$refs.vionPlayer.play(res.data.msg); this.$refs.vionPlayer.play(res.data.msg);
} else {
Toast.fail('取流失败');
} }
}) })
}, },
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</div> </div>
<!-- 操作按钮 --> <!-- 操作按钮 -->
<div class="operating-box"> <div class="operating-box">
<van-button v-if="isNoBack&&ptzEnable==1" type="info" size="mini" @click="ptzControlChange">{{ptzControlShow?'隐藏云台':'打开云台'}}</van-button> <van-button v-if="isNoBack&&ptzEnable==='1'" type="info" size="mini" @click="ptzControlChange">{{ptzControlShow?'隐藏云台':'打开云台'}}</van-button>
<van-button v-else-if="!isNoBack" type="info" size="mini" @click="backRealTime">返回实时</van-button> <van-button v-else-if="!isNoBack" type="info" size="mini" @click="backRealTime">返回实时</van-button>
<!-- <div v-if="isNoBack" class="operating-btn" @click="ptzControlChange">{{ptzControlShow?'隐藏云台':'打开云台'}}</div> --> <!-- <div v-if="isNoBack" class="operating-btn" @click="ptzControlChange">{{ptzControlShow?'隐藏云台':'打开云台'}}</div> -->
<!-- <div v-else class="operating-btn" @click="backRealTime">返回实时</div> --> <!-- <div v-else class="operating-btn" @click="backRealTime">返回实时</div> -->
......
...@@ -225,6 +225,11 @@ export default { ...@@ -225,6 +225,11 @@ export default {
this.$refs.vionPlayer.play(res.data.msg); this.$refs.vionPlayer.play(res.data.msg);
} }
// this.splitNumChange() // this.splitNumChange()
} else {
this.$message({
message: res.data.msg||'取流失败',
type: 'warning'
});
} }
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!