| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <template>
- <div id="chooseChannel" v-loading="isLoging">
- <el-dialog title="选择通道" top="2rem" width="70%" :close-on-click-modal="false" :visible.sync="showDialog" :destroy-on-close="true" @close="close()">
- <el-tabs v-model="tabActiveName" >
- <el-tab-pane label="国标通道" name="gbChannel">
- <el-container>
- <el-main style="background-color: #FFF;">
- <chooseChannelForGb :chooseChanage=chooseChanage ></chooseChannelForGb>
- </el-main>
- <el-footer>
- <el-button size="mini" type="primary" style="float: right" @click="save()">保存</el-button>
- </el-footer>
- </el-container>
-
-
- </el-tab-pane>
- <el-tab-pane label="直播流通道" name="streamchannel">
- <!-- TODO -->
- </el-tab-pane>
- </el-tabs>
- </el-dialog>
- </div>
- </template>
- <script>
- import chooseChannelForGb from './chooseChannelForGb.vue'
- export default {
- name: 'chooseChannel',
- props: {},
- components: {
- chooseChannelForGb,
- },
- computed: {
- // getPlayerShared: function () {
- // return {
- // sharedUrl: window.location.host + '/' + this.videoUrl,
- // sharedIframe: '<iframe src="' + window.location.host + '/' + this.videoUrl + '"></iframe>',
- // sharedRtmp: this.videoUrl
- // };
- // }
- },
- created() {},
- data() {
- return {
- isLoging: false,
- tabActiveName: "gbChannel",
- platformId: "",
- isLoging: false,
- showDialog: false,
- chooseData: []
-
- };
- },
- methods: {
-
- openDialog: function (platformId, closeCallback) {
- console.log(platformId)
- this.platformId = platformId
- this.showDialog = true
- this.closeCallback = closeCallback
- },
- close: function() {
- },
- search: function() {
- },
- save: function() {
- var that = this;
- this.$axios({
- method:"post",
- url:"/api/platforms/updateChannelForGB",
- data:{
- platformId: that.platformId,
- channelReduces: that.chooseData
- }
- }).then((res)=>{
- if (res.data == true) {
- that.$message({
- showClose: true,
- message: '保存成功,',
- type: 'success'
- });
- }
- }).catch(function (error) {
- console.log(error);
- });
- },
- chooseChanage: function(val) {
- console.log(val)
- this.chooseData = val;
- }
- }
- };
- </script>
- <style>
- </style>
|