648540858
2022-02-07 e0028a87cb4fc37759c9c33ecd20591fe6dd0aa7
web_src/src/components/dialog/chooseChannel.vue
@@ -20,14 +20,14 @@
            <el-tab-pane label="国标通道" name="gbChannel">
              <el-container>
                <el-main style="background-color: #FFF;">
                  <chooseChannelForGb ref="chooseChannelForGb" :platformId=platformId :updateChoosedCallback="updateChooseChannelCallback"></chooseChannelForGb>
                  <chooseChannelForGb ref="chooseChannelForGb" :catalogId="catalogId" :platformId=platformId :updateChoosedCallback="updateChooseChannelCallback"></chooseChannelForGb>
                </el-main>
              </el-container>
            </el-tab-pane>
            <el-tab-pane label="直播流通道" name="streamchannel">
              <el-container>
                <el-main style="background-color: #FFF;">
                  <chooseChannelFoStream ref="chooseChannelFoStream" :platformId=platformId :updateChoosedCallback="updateChooseChannelCallback"></chooseChannelFoStream>
                  <chooseChannelFoStream ref="chooseChannelFoStream" :catalogId="catalogId" :platformId=platformId :updateChoosedCallback="updateChooseChannelCallback"></chooseChannelFoStream>
                </el-main>
              </el-container>
            </el-tab-pane>
@@ -52,13 +52,7 @@
        chooseChannelForCatalog,
    },
    computed: {
        // getPlayerShared: function () {
        //     return {
        //         sharedUrl: window.location.host + '/' + this.videoUrl,
        //         sharedIframe: '<iframe src="' + window.location.host + '/' + this.videoUrl + '"></iframe>',
        //         sharedRtmp: this.videoUrl
        //     };
        // }
    },
    data() {
        return {
@@ -70,7 +64,8 @@
            platformName: "",
            defaultCatalogId: "",
            showDialog: false,
            chooseData: {}
            chooseData: {},
            winHeight: window.innerHeight - 250,
        };
    },
@@ -83,14 +78,6 @@
            this.closeCallback = closeCallback
        },
        tabClick (tab, event){
          console.log(tab.label)
          if (tab.label === "gbChannel") {
            this.$refs.chooseChannelForGb.catalogIdChange(this.catalogId);
            this.$refs.chooseChannelForGb.initData();
          }else {
            this.$refs.chooseChannelFoStream.catalogIdChange(this.catalogId);
            this.$refs.chooseChannelFoStream.initData();
          }
        },
        close: function() {
@@ -124,17 +111,10 @@
        catalogIdChange: function (id) {
            console.log("中间模块收到: " + id)
            this.catalogId = id;
            if (this.tabActiveName === "gbChannel") {
              this.$refs.chooseChannelForGb.catalogIdChange(id);
            }else {
              this.$refs.chooseChannelFoStream.catalogIdChange(id);
            }
        },
        updateChooseChannelCallback (id, nodeIds){
        updateChooseChannelCallback (id){
          console.log("中间模块收到选择通道变化: " + id)
          console.log("中间模块收到选择通道变化: " + nodeIds)
          console.log("中间模块收到选择通道变化: " + typeof (nodeIds))
          this.$refs.chooseChannelForCatalog.refreshCatalogById(id, nodeIds)
          this.$refs.chooseChannelForCatalog.refreshCatalogById(id)
        }
    }
};