Merge pull request #887 from bigbeef/wvp-28181-2.0

fix:修复拉流代理配置展示问题:音频、录制、无人观看
This commit is contained in:
648540858 2023-06-09 23:18:15 +08:00 committed by GitHub
commit d93947c657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,25 +58,25 @@
<el-table-column label="音频" min-width="120" > <el-table-column label="音频" min-width="120" >
<template slot-scope="scope"> <template slot-scope="scope">
<div slot="reference" class="name-wrapper"> <div slot="reference" class="name-wrapper">
<el-tag size="medium" v-if="scope.row.enable_audio">已启用</el-tag> <el-tag size="medium" v-if="scope.row.enableAudio">已启用</el-tag>
<el-tag size="medium" type="info" v-if="!scope.row.enable_audio">未启用</el-tag> <el-tag size="medium" type="info" v-if="!scope.row.enableAudio">未启用</el-tag>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="录制" min-width="120" > <el-table-column label="录制" min-width="120" >
<template slot-scope="scope"> <template slot-scope="scope">
<div slot="reference" class="name-wrapper"> <div slot="reference" class="name-wrapper">
<el-tag size="medium" v-if="scope.row.enable_mp4">已启用</el-tag> <el-tag size="medium" v-if="scope.row.enableMp4">已启用</el-tag>
<el-tag size="medium" type="info" v-if="!scope.row.enable_mp4">未启用</el-tag> <el-tag size="medium" type="info" v-if="!scope.row.enableMp4">未启用</el-tag>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="无人观看" min-width="160" > <el-table-column label="无人观看" min-width="160" >
<template slot-scope="scope"> <template slot-scope="scope">
<div slot="reference" class="name-wrapper"> <div slot="reference" class="name-wrapper">
<el-tag size="medium" v-if="scope.row.enable_remove_none_reader">移除</el-tag> <el-tag size="medium" v-if="scope.row.enableRemoveNoneReader">移除</el-tag>
<el-tag size="medium" v-if="scope.row.enable_disable_none_reader">停用</el-tag> <el-tag size="medium" v-if="scope.row.enableDisableNoneReader">停用</el-tag>
<el-tag size="medium" type="info" v-if="!scope.row.enable_remove_none_reader && !scope.row.enable_disable_none_reader">不做处理</el-tag> <el-tag size="medium" type="info" v-if="!scope.row.enableRemoveNoneReader && !scope.row.enableDisableNoneReader">不做处理</el-tag>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@ -245,18 +245,25 @@
}, },
deleteStreamProxy: function(row){ deleteStreamProxy: function(row){
let that = this; let that = this;
that.$axios({ this.$confirm('确定删除此代理吗?', '提示', {
method:"delete", confirmButtonText: '确定',
url:"/api/proxy/del", cancelButtonText: '取消',
params:{ type: 'warning'
app: row.app, }).then(() => {
stream: row.stream that.$axios({
} method:"delete",
}).then((res)=>{ url:"/api/proxy/del",
that.initData() params:{
}).catch(function (error) { app: row.app,
console.log(error); stream: row.stream
}); }
}).then((res)=>{
that.initData()
}).catch(function (error) {
console.log(error);
});
}).catch(() => {
});
}, },
start: function(row){ start: function(row){
this.stopUpdateList() this.stopUpdateList()