|
|
|
@ -138,25 +138,28 @@
|
|
|
|
<img :src="rightUrl" alt="" @mousedown="rightStart" @mouseup="rightStop">
|
|
|
|
<img :src="rightUrl" alt="" @mousedown="rightStart" @mouseup="rightStop">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="direction-item">
|
|
|
|
<div class="direction-item">
|
|
|
|
<img :src="leftDownUrl" alt="" @mousedown="leftDownStart" @mouseup="leftDownStop">
|
|
|
|
<img :src="leftDownUrl" alt="" @mousedown="leftDownStart"
|
|
|
|
|
|
|
|
@mouseup="leftDownStop">
|
|
|
|
<img :src="downUrl" alt="" @mousedown="downStart" @mouseup="downStop">
|
|
|
|
<img :src="downUrl" alt="" @mousedown="downStart" @mouseup="downStop">
|
|
|
|
<img :src="rightDownUrl" alt="" @mousedown="rightDownStart" @mouseup="rightDownStop">
|
|
|
|
<img :src="rightDownUrl" alt="" @mousedown="rightDownStart"
|
|
|
|
|
|
|
|
@mouseup="rightDownStop">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<a-table
|
|
|
|
<div class="config-table">
|
|
|
|
:columns="columns"
|
|
|
|
<h2>球机配置</h2>
|
|
|
|
:row-key="record => record.name"
|
|
|
|
<a-table
|
|
|
|
:data-source="configData"
|
|
|
|
:columns="columns"
|
|
|
|
@change="getConfigIoList"
|
|
|
|
:row-key="record => record.name"
|
|
|
|
class="config-table"
|
|
|
|
:data-source="configData"
|
|
|
|
bordered
|
|
|
|
@change="getConfigIoList"
|
|
|
|
:pagination="false"
|
|
|
|
bordered
|
|
|
|
:scroll="{y: 450 }"
|
|
|
|
:pagination="false"
|
|
|
|
>
|
|
|
|
:scroll="{y:335}"
|
|
|
|
|
|
|
|
>
|
|
|
|
<span slot="name" slot-scope="text,record">
|
|
|
|
<span slot="name" slot-scope="text,record">
|
|
|
|
<a-button type="link" @click="toPtz(record)">{{text}}</a-button>
|
|
|
|
<a-button type="link" @click="toPtz(record)">{{text}}</a-button>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span slot="position" slot-scope="text, record">
|
|
|
|
<span slot="position" slot-scope="text, record">
|
|
|
|
<div v-if="text">
|
|
|
|
<div v-if="text">
|
|
|
|
已写入
|
|
|
|
已写入
|
|
|
|
<a-button type="link" class="plc" @click="coverage(0,record)">
|
|
|
|
<a-button type="link" class="plc" @click="coverage(0,record)">
|
|
|
|
@ -168,7 +171,7 @@
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span slot="focusing" slot-scope="text, record">
|
|
|
|
<span slot="focusing" slot-scope="text, record">
|
|
|
|
<div v-if="text">
|
|
|
|
<div v-if="text">
|
|
|
|
已写入
|
|
|
|
已写入
|
|
|
|
<a-button type="link" class="plc" @click="coverage(1,record)">
|
|
|
|
<a-button type="link" class="plc" @click="coverage(1,record)">
|
|
|
|
@ -180,7 +183,7 @@
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span slot="multiple" slot-scope="text, record">
|
|
|
|
<span slot="multiple" slot-scope="text, record">
|
|
|
|
<div v-if="text">
|
|
|
|
<div v-if="text">
|
|
|
|
已写入
|
|
|
|
已写入
|
|
|
|
<a-button type="link" class="plc" @click="coverage(2,record)">
|
|
|
|
<a-button type="link" class="plc" @click="coverage(2,record)">
|
|
|
|
@ -192,7 +195,7 @@
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span slot="aperture" slot-scope="text, record">
|
|
|
|
<span slot="aperture" slot-scope="text, record">
|
|
|
|
<div v-if="text">
|
|
|
|
<div v-if="text">
|
|
|
|
已写入
|
|
|
|
已写入
|
|
|
|
<a-button type="link" class="plc" @click="coverage(3,record)">
|
|
|
|
<a-button type="link" class="plc" @click="coverage(3,record)">
|
|
|
|
@ -204,7 +207,8 @@
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</a-table>
|
|
|
|
</a-table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</a-modal>
|
|
|
|
</a-modal>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
@ -271,14 +275,6 @@ export default {
|
|
|
|
rtsp:newVal.rtsp
|
|
|
|
rtsp:newVal.rtsp
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}else if (newVal.id && this.type=='test'){
|
|
|
|
|
|
|
|
this.id = newVal.id
|
|
|
|
|
|
|
|
this.mdata = newVal
|
|
|
|
|
|
|
|
console.log(newVal)
|
|
|
|
|
|
|
|
this.$nextTick(()=>{ //this.$nextTick解决不能在表单渲染之前赋值的报错问题
|
|
|
|
|
|
|
|
console.log(newVal.rtsp)
|
|
|
|
|
|
|
|
this.getTestVideo(newVal.rtsp)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}else if (newVal.id && this.type=='config'){
|
|
|
|
}else if (newVal.id && this.type=='config'){
|
|
|
|
this.id = newVal.id
|
|
|
|
this.id = newVal.id
|
|
|
|
this.mdata = newVal
|
|
|
|
this.mdata = newVal
|
|
|
|
@ -325,6 +321,20 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
console.log('mounted执行了')
|
|
|
|
console.log('mounted执行了')
|
|
|
|
|
|
|
|
if (this.$route.query.modelType == 'test') {
|
|
|
|
|
|
|
|
this.isShow = true
|
|
|
|
|
|
|
|
this.id = this.$route.query.modelData.id
|
|
|
|
|
|
|
|
this.type = this.$route.query.modelType
|
|
|
|
|
|
|
|
this.mdata = this.$route.query.modelData
|
|
|
|
|
|
|
|
this.getTestVideo(this.$route.query.modelData.rtsp)
|
|
|
|
|
|
|
|
} else if (this.$route.query.modelType == 'config') {
|
|
|
|
|
|
|
|
this.isShow = true
|
|
|
|
|
|
|
|
this.id = this.$route.query.modelData.id
|
|
|
|
|
|
|
|
this.type = this.$route.query.modelType
|
|
|
|
|
|
|
|
this.mdata = this.$route.query.modelData
|
|
|
|
|
|
|
|
this.getConfigVideo(this.$route.query.modelData.rtsp)
|
|
|
|
|
|
|
|
this.getConfigIoList()
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
handleOk() {
|
|
|
|
handleOk() {
|
|
|
|
@ -368,9 +378,11 @@ export default {
|
|
|
|
console.log('Clicked cancel button');
|
|
|
|
console.log('Clicked cancel button');
|
|
|
|
this.$emit('close', false, {})
|
|
|
|
this.$emit('close', false, {})
|
|
|
|
if(this.type=='test') {
|
|
|
|
if(this.type=='test') {
|
|
|
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
var vlc = document.getElementById('video-test');
|
|
|
|
var vlc = document.getElementById('video-test');
|
|
|
|
vlc.playlist.items.clear()
|
|
|
|
vlc.playlist.items.clear()
|
|
|
|
}else if(this.type=='config') {
|
|
|
|
}else if(this.type=='config') {
|
|
|
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
var vlc = document.getElementById('video-config');
|
|
|
|
var vlc = document.getElementById('video-config');
|
|
|
|
vlc.playlist.items.clear()
|
|
|
|
vlc.playlist.items.clear()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -889,10 +901,17 @@ export default {
|
|
|
|
img{
|
|
|
|
img{
|
|
|
|
cursor: pointer;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.config-table{
|
|
|
|
.config-table {
|
|
|
|
width: 800px;
|
|
|
|
width: 800px;
|
|
|
|
height: 450px;
|
|
|
|
height: 450px;
|
|
|
|
overflow: hidden;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
|
|
|
|
padding: 15px;
|
|
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
|
|
background: #fafafa;
|
|
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.vxgplayer{
|
|
|
|
.vxgplayer{
|
|
|
|
|