Browse Source

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

pull/276/head
648540858 3 years ago
parent
commit
d68f9c8133
  1. 1
      src/main/java/com/genersoft/iot/vmp/service/impl/StreamPushServiceImpl.java
  2. 2
      web_src/src/components/PushVideoList.vue

1
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.setCreateStamp(item.getCreateStamp());
streamPushItem.setAliveSecond(item.getAliveSecond()); streamPushItem.setAliveSecond(item.getAliveSecond());
streamPushItem.setStatus(true); streamPushItem.setStatus(true);
streamPushItem.setStreamType("push");
streamPushItem.setVhost(item.getVhost()); streamPushItem.setVhost(item.getVhost());
return streamPushItem; return streamPushItem;
} }

2
web_src/src/components/PushVideoList.vue

@ -35,7 +35,7 @@
<el-table-column label="操作" width="360" align="center" fixed="right"> <el-table-column label="操作" width="360" align="center" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button-group> <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-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="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> <el-button size="mini" icon="el-icon-position" type="primary" v-if="!!scope.row.gbId" @click="removeFromGB(scope.row)">移出国标</el-button>

Loading…
Cancel
Save