From d340a37a00c8d5ea2605ca0f40a920efbeb9546f Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期四, 17 十一月 2022 11:31:30 +0800 Subject: [PATCH] Merge branch 'wvp-28181-2.0' into wvp-28181-2.0-multi-network --- web_src/src/components/dialog/chooseChannelForStream.vue | 26 ++++++++++++++------------ 1 files changed, 14 insertions(+), 12 deletions(-) diff --git a/web_src/src/components/dialog/chooseChannelForStream.vue b/web_src/src/components/dialog/chooseChannelForStream.vue index 0bc8f04..8d63dbf 100644 --- a/web_src/src/components/dialog/chooseChannelForStream.vue +++ b/web_src/src/components/dialog/chooseChannelForStream.vue @@ -1,8 +1,8 @@ <template> <div id="chooseChannelFoStream" > <div style="font-size: 17px; color: #606060; white-space: nowrap; line-height: 30px; font-family: monospace;"> - <span v-if="catalogId == null">{{catalogName}}鐨勭洿鎾祦</span> - <span v-if="catalogId != null">{{catalogName}}({{catalogId}})鐨勭洿鎾祦</span> + <span v-if="catalogId == null">{{catalogName}}鐨勭洿鎾�氶亾</span> + <span v-if="catalogId != null">{{catalogName}}({{catalogId}})鐨勭洿鎾�氶亾</span> </div> <div style="background-color: #FFFFFF; margin-bottom: 1rem; position: relative; padding: 0.5rem; text-align: left;font-size: 14px;"> @@ -47,8 +47,8 @@ <el-table-column label="鎿嶄綔" width="100" align="center" fixed="right" > <template slot-scope="scope"> <el-button-group> - <el-button size="mini" icon="el-icon-plus" v-if="!scope.row.platformId" @click="add(scope.row, scope)">娣诲姞</el-button> - <el-button size="mini" icon="el-icon-delete" v-if="scope.row.platformId" type="danger" @click="remove(scope.row, scope)">绉婚櫎</el-button> + <el-button size="mini" icon="el-icon-plus" v-if="catalogId === null" @click="add(scope.row, scope)">娣诲姞</el-button> + <el-button size="mini" icon="el-icon-delete" v-if="catalogId !== null" type="danger" @click="remove(scope.row, scope)">绉婚櫎</el-button> </el-button-group> </template> </el-table-column> @@ -76,6 +76,7 @@ props: ['platformId', 'catalogId', 'catalogName'], created() { this.initData(); + console.log(this.catalogId) }, components: { getCatalog, @@ -173,22 +174,23 @@ page: that.currentPage, count: that.count, query: that.searchSrt, - pushing: that.online, platformId: that.platformId, catalogId: that.catalogId, mediaServerId: that.mediaServerId } }) .then(function (res) { - that.total = res.data.total; - that.gbStreams = res.data.list; - that.gbChoosechannel = {}; - // 闃叉鍑虹幇琛ㄦ牸閿欎綅 - that.$nextTick(() => { + if (res.data.code === 0) { + that.total = res.data.data.total; + that.gbStreams = res.data.data.list; + that.gbChoosechannel = {}; + // 闃叉鍑虹幇琛ㄦ牸閿欎綅 + that.$nextTick(() => { that.$refs.gbStreamsTable.doLayout(); // 榛樿閫変腑 - that.eventEnable = true; - }) + that.eventEnable = true; + }) + } }) .catch(function (error) { console.log(error); -- Gitblit v1.8.0