优化编码信息信息页面

This commit is contained in:
panlinlin 2021-04-13 11:33:26 +08:00
parent 53de34af68
commit 14e4eaa553
2 changed files with 6 additions and 8 deletions

View File

@ -96,12 +96,6 @@
<version>1.2.10</version> <version>1.2.10</version>
</dependency> </dependency>
<!-- <dependency>-->
<!-- <groupId>org.apache.commons</groupId>-->
<!-- <artifactId>commons-lang3</artifactId>-->
<!-- <version>3.11</version>-->
<!-- </dependency>-->
<!--Swagger3 --> <!--Swagger3 -->
<!--在线文档 --> <!--在线文档 -->
<dependency> <dependency>

View File

@ -105,12 +105,13 @@
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="编码信息" name="codec" v-loading="tracksLoading"> <el-tab-pane label="编码信息" name="codec" v-loading="tracksLoading">
<p> <p>
无法播放或者没有声音?&nbsp&nbsp&nbsp试一试 无法播放或者没有声音?&nbsp&nbsp&nbsp试一试&nbsp
<el-button size="mini" type="primary" v-if="!coverPlaying" @click="coverPlay">转码播放</el-button> <el-button size="mini" type="primary" v-if="!coverPlaying" @click="coverPlay">转码播放</el-button>
<el-button size="mini" type="danger" v-if="coverPlaying" @click="convertStopClick">停止转码</el-button> <el-button size="mini" type="danger" v-if="coverPlaying" @click="convertStopClick">停止转码</el-button>
</p> </p>
<div class="trank" > <div class="trank" >
<div v-for="(item, index) in tracks" style="width: 50%; float: left"> <p v-if="tracksNotLoaded" style="text-align: center;padding-top: 3rem;">暂无数据</p>
<div v-for="(item, index) in tracks" style="width: 50%; float: left" loading>
<span > {{index}}</span> <span > {{index}}</span>
<div class="trankInfo" v-if="item.codec_type == 0"> <div class="trankInfo" v-if="item.codec_type == 0">
<p>格式: {{item.codec_id_name}}</p> <p>格式: {{item.codec_id_name}}</p>
@ -189,6 +190,7 @@ export default {
recordPlay: "", recordPlay: "",
showPtz: true, showPtz: true,
showRrecord: true, showRrecord: true,
tracksNotLoaded: false,
}; };
}, },
methods: { methods: {
@ -197,6 +199,7 @@ export default {
var that = this; var that = this;
that.tracks = []; that.tracks = [];
that.tracksLoading = true; that.tracksLoading = true;
that.tracksNotLoaded = false;
if (tab.name == "codec") { if (tab.name == "codec") {
this.$axios({ this.$axios({
method: 'get', method: 'get',
@ -206,6 +209,7 @@ export default {
if (res.data.code == 0 && res.data.online) { if (res.data.code == 0 && res.data.online) {
that.tracks = res.data.tracks; that.tracks = res.data.tracks;
}else{ }else{
that.tracksNotLoaded = true;
that.$message({ that.$message({
showClose: true, showClose: true,
message: '获取编码信息失败,', message: '获取编码信息失败,',