|
|
|
@ -7,6 +7,9 @@
|
|
|
|
<a-button type="primary" class="plc" @click="goIo">
|
|
|
|
<a-button type="primary" class="plc" @click="goIo">
|
|
|
|
PLC IO表配置
|
|
|
|
PLC IO表配置
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
<a-button type="primary" class="add" @click="videoConfig">
|
|
|
|
|
|
|
|
视频流配置
|
|
|
|
|
|
|
|
</a-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<a-table
|
|
|
|
<a-table
|
|
|
|
style="margin-top:40px"
|
|
|
|
style="margin-top:40px"
|
|
|
|
@ -161,7 +164,32 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
goIo(){
|
|
|
|
goIo(){
|
|
|
|
this.$router.push({ name: "ioTable"});
|
|
|
|
this.$router.push({ name: "ioTable"});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
videoConfig(){
|
|
|
|
|
|
|
|
const that = this
|
|
|
|
|
|
|
|
this.$confirm({
|
|
|
|
|
|
|
|
title: "生成全部视频流",
|
|
|
|
|
|
|
|
content: "确认生成全部视频流?",
|
|
|
|
|
|
|
|
okText: '确认',
|
|
|
|
|
|
|
|
onOk() {
|
|
|
|
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
|
|
|
|
that.downConfig();
|
|
|
|
|
|
|
|
setTimeout(resolve, 1000);
|
|
|
|
|
|
|
|
}).catch(() => console.log('Oops errors!'));
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
cancelText: '取消',
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
downConfig(){
|
|
|
|
|
|
|
|
this.$api.httpApi.videoConfig({
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
components:{
|
|
|
|
components:{
|
|
|
|
Model
|
|
|
|
Model
|
|
|
|
@ -179,5 +207,8 @@ export default {
|
|
|
|
.add{
|
|
|
|
.add{
|
|
|
|
margin-right: 20px;
|
|
|
|
margin-right: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.plc{
|
|
|
|
|
|
|
|
margin-right: 20px;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
|