Pārlūkot izejas kodu

修复选择直播通道缺失了通道类型的问题

648540858 3 gadi atpakaļ
vecāks
revīzija
d68f9c8133

+ 1 - 0
src/main/java/com/genersoft/iot/vmp/service/impl/StreamPushServiceImpl.java

@@ -84,6 +84,7 @@ public class StreamPushServiceImpl implements IStreamPushService {
         streamPushItem.setCreateStamp(item.getCreateStamp());
         streamPushItem.setAliveSecond(item.getAliveSecond());
         streamPushItem.setStatus(true);
+        streamPushItem.setStreamType("push");
         streamPushItem.setVhost(item.getVhost());
         return streamPushItem;
     }

+ 1 - 1
web_src/src/components/PushVideoList.vue

@@ -35,7 +35,7 @@
 					<el-table-column label="操作" width="360" align="center" fixed="right">
 						<template slot-scope="scope">
 							<el-button-group>
-								<el-button size="mini" icon="el-icon-video-play" @click="playPuhsh(scope.row)">播放</el-button>
+								<el-button size="mini" icon="el-icon-video-play" v-if="scope.row.status" @click="playPuhsh(scope.row)">播放</el-button>
 								<el-button size="mini" icon="el-icon-switch-button" type="danger" @click="stopPuhsh(scope.row)">移除</el-button>
 								<el-button size="mini" icon="el-icon-position" type="primary" v-if="!!!scope.row.gbId" @click="addToGB(scope.row)">加入国标</el-button>
 								<el-button size="mini" icon="el-icon-position" type="primary" v-if="!!scope.row.gbId" @click="removeFromGB(scope.row)">移出国标</el-button>