一键生成视频流配置文件

taiwan-tingli
yiming 4 years ago
parent a5072f4d6a
commit 14a5bd738c

Binary file not shown.

@ -81,6 +81,11 @@ export default {
url: "/camera",
name: "编辑球机"
},
videoConfig:{
method: "GET",
url: "/camera/downloadConfig",
name: "直播流配置"
},
getChannel: {
method: "POST",
url: "/lychee/stream/push",

@ -7,6 +7,9 @@
<a-button type="primary" class="plc" @click="goIo">
PLC IO表配置
</a-button>
<a-button type="primary" class="add" @click="videoConfig">
视频流配置
</a-button>
</div>
<a-table
style="margin-top:40px"
@ -161,7 +164,32 @@ export default {
},
goIo(){
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:{
Model
@ -179,5 +207,8 @@ export default {
.add{
margin-right: 20px;
}
.plc{
margin-right: 20px;
}
}
</style>

@ -1,10 +1,10 @@
<template>
<div>
<div class="button-box">
<a-button @click="confirmLight('open')">
<a-button type="primary" class="open" @click="confirmLight('open')">
打开光源
</a-button>
<a-button @click="confirmLight('close')">
<a-button type="primary" class="close" @click="confirmLight('close')">
关闭光源
</a-button>
<a-button type="primary" @click="showModel('add','')">
@ -254,7 +254,10 @@ export default {
display: flex;
align-items: center;
justify-content: center;
.add{
.open{
margin-right: 15px;
}
.close{
margin-right: 15px;
}
}

Loading…
Cancel
Save