Commit 06a2ad95 by 李乾广

修改bug

1 parent d41aa782
......@@ -10,10 +10,10 @@ const tourApi = {
},
// 云控制
ptzStart(params,config) {
return req('PUT', `/patrol/through/ptzStart`, params, config)
return req('POST', `/patrol/through/ptzStart`, params, config)
},
ptzStop(params,config) {
return req('PUT', `/patrol/through/ptzStop`, params, config)
return req('POST', `/patrol/through/ptzStop`, params, config)
},
// 获取设备录像记录
getThroughVideoRecord(params, config){
......
......@@ -130,6 +130,7 @@ export default {
// this.params = obj
console.log(this.params)
document.title = this.params.gateName||'视频详情'
this.params.ptzEnable = ''+this.params.ptzEnable
this.terminalType = this.params.terminalType
this.dateFormatType = this.terminalType == 'ios'||this.terminalType == 'mac' ? 'YYYY/MM/DD':'YYYY-MM-DD';
if(this.params.gateUnid) {
......@@ -162,6 +163,8 @@ export default {
tourApi.getThroughVideoUrl({param:parStr}).then(res => {
if (res.data&&res.data.code == 200) {
this.$refs.vionPlayer.play(res.data.msg);
} else {
Toast.fail('取流失败');
}
})
},
......
......@@ -31,7 +31,7 @@
</div>
<!-- 操作按钮 -->
<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>
<!-- <div v-if="isNoBack" class="operating-btn" @click="ptzControlChange">{{ptzControlShow?'隐藏云台':'打开云台'}}</div> -->
<!-- <div v-else class="operating-btn" @click="backRealTime">返回实时</div> -->
......
......@@ -225,7 +225,12 @@ export default {
this.$refs.vionPlayer.play(res.data.msg);
}
// 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!