巷道增加光源配置

taiwan-tingli
yiming 4 years ago
parent 573c303157
commit a5072f4d6a

Binary file not shown.

@ -72,6 +72,10 @@ const columns = [
title: 'PLC-ID', title: 'PLC-ID',
dataIndex: 'plcId', dataIndex: 'plcId',
}, },
{
title: '光源IP',
dataIndex: 'lightSourceIp',
},
{ {
title: '左货架类型', title: '左货架类型',
dataIndex: 'leftType', dataIndex: 'leftType',

@ -38,6 +38,18 @@
/> />
</a-form-item> </a-form-item>
</div> </div>
<div class="across-layout">
<a-form-item label="光源IP" :label-col="formItemAcrossLayout.labelCol">
<a-input
v-decorator="['lightSourceIp']"
/>
</a-form-item>
<a-form-item label="光源 PORT" :label-col="formItemAcrossLayout.labelCol">
<a-input
v-decorator="['lightSourcePort']"
/>
</a-form-item>
</div>
<a-divider></a-divider> <a-divider></a-divider>
<div class="leftType"> <div class="leftType">
@ -242,6 +254,8 @@ export default {
plcId: newVal.plcId, plcId: newVal.plcId,
plcIp: newVal.plcIp, plcIp: newVal.plcIp,
plcPort: newVal.plcPort, plcPort: newVal.plcPort,
lightSourceIp: newVal.lightSourceIp,
lightSourcePort: newVal.lightSourcePort,
leftType: newVal.leftType === null ? '' : newVal.leftType === 0 ? '单伸' : '双伸', leftType: newVal.leftType === null ? '' : newVal.leftType === 0 ? '单伸' : '双伸',
leftRow: newVal.leftRow, leftRow: newVal.leftRow,
leftColumn: newVal.leftColumn, leftColumn: newVal.leftColumn,

@ -34,7 +34,8 @@ export default {
videoH: 0, videoH: 0,
isFullscreen: false, isFullscreen: false,
originHeight: 0, originHeight: 0,
fullHeight: 0 fullHeight: 0,
players: []
} }
}, },
//watch: {}, //watch: {},
@ -43,6 +44,9 @@ export default {
return( this.clientHeight/ this.row ) + 'px'; return( this.clientHeight/ this.row ) + 'px';
} }
}, },
destroyed() {
this.destory()
},
mounted () { mounted () {
this.getWallStyle(); this.getWallStyle();
@ -111,14 +115,19 @@ export default {
console.log("idName:"+idName); console.log("idName:"+idName);
let video = document.getElementById(idName); let video = document.getElementById(idName);
let player = new WebRtcPlayer(video,"camera"+cameras[i-1].id); let player = new WebRtcPlayer(video,"camera"+cameras[i-1].id);
//player.play('camera'+cameras[i-1].id); this.players.push(player);
} }
} }
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
}) })
}, },
destory(){
for(let player of this.players){
console.log("stop")
player.destroy()
}
},
full () { full () {
if(this.isFullscreen){ if(this.isFullscreen){

Loading…
Cancel
Save