一键生成视频流配置文件

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

Binary file not shown.

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

@ -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>

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

Loading…
Cancel
Save