|  |  | 
 |  |  |             channelType: "", | 
 |  |  |             online: "", | 
 |  |  |             choosed: "", | 
 |  |  |             currentPage: 0, | 
 |  |  |             currentPage: 1, | 
 |  |  |             count: 10, | 
 |  |  |             total: 0, | 
 |  |  |             eventEnanle: false | 
 |  |  | 
 |  |  |         platformId(newData, oldData){ | 
 |  |  |             console.log(newData) | 
 |  |  |             this.initData() | 
 |  |  |              | 
 |  |  |  | 
 |  |  |         }, | 
 |  |  |     }, | 
 |  |  |     methods: { | 
 |  |  | 
 |  |  |                         delete that.gbChoosechannel[key] | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |                   | 
 |  |  |  | 
 |  |  |                  var oldKeys = Object.keys(that.gbChoosechannel); | 
 |  |  |                 if (oldKeys.length > 0) { | 
 |  |  |                     for (let i = 0; i < oldKeys.length; i++) { | 
 |  |  | 
 |  |  |                         delData.push(that.gbChoosechannel[key]) | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |                  | 
 |  |  |  | 
 |  |  |             }else{ | 
 |  |  |                 var oldKeys = Object.keys(that.gbChoosechannel); | 
 |  |  |                 if (oldKeys.length > 0) { | 
 |  |  | 
 |  |  |             if (Object.keys(delData).length >0) { | 
 |  |  |                 console.log(delData) | 
 |  |  |                  that.$axios({ | 
 |  |  |                     method:"post", | 
 |  |  |                     method:"delete", | 
 |  |  |                     url:"/api/gbStream/del", | 
 |  |  |                     data:{ | 
 |  |  |                         gbStreams:  delData, | 
 |  |  | 
 |  |  |                 }).catch(function (error) { | 
 |  |  |                     console.log(error); | 
 |  |  |                 }); | 
 |  |  |  | 
 |  |  |             } | 
 |  |  |  | 
 |  |  |         }, | 
 |  |  | 
 |  |  |         getChannelList: function () { | 
 |  |  |             let that = this; | 
 |  |  |  | 
 |  |  |             this.$axios.get(`/api/gbStream/list`, { | 
 |  |  |                     params: { | 
 |  |  |                         page: that.currentPage, | 
 |  |  |                         count: that.count, | 
 |  |  |                         query: that.searchSrt, | 
 |  |  |                         online: that.online, | 
 |  |  |                         choosed: that.choosed, | 
 |  |  |                         platformId: that.platformId, | 
 |  |  |                         channelType: that.channelType | 
 |  |  |                     } | 
 |  |  |             this.$axios({ | 
 |  |  |                 method: 'get', | 
 |  |  |                 url:`/api/gbStream/list`, | 
 |  |  |                 params: { | 
 |  |  |                     page: that.currentPage, | 
 |  |  |                     count: that.count, | 
 |  |  |                     query: that.searchSrt, | 
 |  |  |                     online: that.online, | 
 |  |  |                     choosed: that.choosed, | 
 |  |  |                     platformId: that.platformId, | 
 |  |  |                     channelType: that.channelType | 
 |  |  |                 } | 
 |  |  |                 }) | 
 |  |  |                 .then(function (res) { | 
 |  |  |                     that.total = res.data.total; | 
 |  |  | 
 |  |  |                                 that.$refs.gbStreamsTable.toggleRowSelection(row, true); | 
 |  |  |                                 chooseGBS.push(row) | 
 |  |  |                                 that.gbChoosechannel[row.app+ "_" + row.stream] = row; | 
 |  |  |                                 | 
 |  |  |  | 
 |  |  |                             } | 
 |  |  |                         } | 
 |  |  |                          that.eventEnanle = true; |