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

fix:修复拉流代理配置展示问题:音频、录制、无人观看
pull/889/head
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
1 changed files with 26 additions and 19 deletions

View File

@ -58,25 +58,25 @@
<el-table-column label="音频" min-width="120" >
<template slot-scope="scope">
<div slot="reference" class="name-wrapper">
<el-tag size="medium" v-if="scope.row.enable_audio"></el-tag>
<el-tag size="medium" type="info" 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.enableAudio"></el-tag>
</div>
</template>
</el-table-column>
<el-table-column label="录制" min-width="120" >
<template slot-scope="scope">
<div slot="reference" class="name-wrapper">
<el-tag size="medium" v-if="scope.row.enable_mp4"></el-tag>
<el-tag size="medium" type="info" 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.enableMp4"></el-tag>
</div>
</template>
</el-table-column>
<el-table-column label="无人观看" min-width="160" >
<template slot-scope="scope">
<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.enable_disable_none_reader"></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" v-if="scope.row.enableRemoveNoneReader"></el-tag>
<el-tag size="medium" v-if="scope.row.enableDisableNoneReader"></el-tag>
<el-tag size="medium" type="info" v-if="!scope.row.enableRemoveNoneReader && !scope.row.enableDisableNoneReader"></el-tag>
</div>
</template>
</el-table-column>
@ -245,6 +245,11 @@
},
deleteStreamProxy: function(row){
let that = this;
this.$confirm('确定删除此代理吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
that.$axios({
method:"delete",
url:"/api/proxy/del",
@ -256,6 +261,8 @@
that.initData()
}).catch(function (error) {
console.log(error);
});
}).catch(() => {
});
},
start: function(row){