2021-01-08 11:04:29 +08:00
|
|
|
<template>
|
|
|
|
<div id="chooseChannel" v-loading="isLoging">
|
|
|
|
|
2021-01-10 20:14:11 +08:00
|
|
|
<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;">
|
2021-01-13 17:08:26 +08:00
|
|
|
<chooseChannelForGb :platformId=platformId ></chooseChannelForGb>
|
2021-01-10 20:14:11 +08:00
|
|
|
</el-main>
|
|
|
|
</el-container>
|
2021-01-13 17:08:26 +08:00
|
|
|
|
|
|
|
|
2021-01-10 20:14:11 +08:00
|
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="直播流通道" name="streamchannel">
|
|
|
|
<!-- TODO -->
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tabs>
|
2021-01-08 11:04:29 +08:00
|
|
|
</el-dialog>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-01-10 20:14:11 +08:00
|
|
|
import chooseChannelForGb from './chooseChannelForGb.vue'
|
2021-01-08 11:04:29 +08:00
|
|
|
export default {
|
|
|
|
name: 'chooseChannel',
|
|
|
|
props: {},
|
|
|
|
components: {
|
2021-01-10 20:14:11 +08:00
|
|
|
chooseChannelForGb,
|
2021-01-08 11:04:29 +08:00
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
// getPlayerShared: function () {
|
|
|
|
// return {
|
|
|
|
// sharedUrl: window.location.host + '/' + this.videoUrl,
|
|
|
|
// sharedIframe: '<iframe src="' + window.location.host + '/' + this.videoUrl + '"></iframe>',
|
|
|
|
// sharedRtmp: this.videoUrl
|
|
|
|
// };
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
isLoging: false,
|
|
|
|
tabActiveName: "gbChannel",
|
2021-01-10 20:14:11 +08:00
|
|
|
platformId: "",
|
2021-01-08 11:04:29 +08:00
|
|
|
isLoging: false,
|
|
|
|
showDialog: false,
|
2021-01-13 17:08:26 +08:00
|
|
|
chooseData: {}
|
|
|
|
|
2021-01-08 11:04:29 +08:00
|
|
|
};
|
|
|
|
},
|
|
|
|
methods: {
|
2021-01-10 20:14:11 +08:00
|
|
|
openDialog: function (platformId, closeCallback) {
|
|
|
|
console.log(platformId)
|
|
|
|
this.platformId = platformId
|
2021-01-08 11:04:29 +08:00
|
|
|
this.showDialog = true
|
|
|
|
this.closeCallback = closeCallback
|
|
|
|
},
|
|
|
|
close: function() {
|
|
|
|
|
|
|
|
},
|
|
|
|
search: function() {
|
|
|
|
|
|
|
|
},
|
2021-01-10 20:14:11 +08:00
|
|
|
save: function() {
|
|
|
|
var that = this;
|
2021-01-08 11:04:29 +08:00
|
|
|
|
2021-01-10 20:14:11 +08:00
|
|
|
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);
|
|
|
|
});
|
2021-01-08 11:04:29 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
</style>
|