|
@@ -15,7 +15,7 @@
|
|
|
<el-input v-model="postForm.channel_name" placeholder="" style="width: 300px;" />
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="channel_id" style="" label="频道id">
|
|
|
- <el-input v-model="postForm.channel_id" placeholder="" style="width: 300px;" />
|
|
|
+ <el-input v-model="postForm.channel_id" placeholder="" style="width: 300px;" @input="onInputInput()" />
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="channel_auth_code" style="" label="频道授权码">
|
|
|
<el-input v-model="postForm.channel_auth_code" placeholder="" style="width: 300px;" />
|
|
@@ -24,10 +24,12 @@
|
|
|
</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="redirct_url" style="" label="会畅授权跳转链接">
|
|
|
- <el-input v-model="postForm.redirct_url" placeholder="" style="width: 600px;" />
|
|
|
+ <el-input v-model="postForm.redirct_url" placeholder="https://webcast.bizconfstreaming.com/soa-mdl?channelId=频道id" style="width: 600px;" />
|
|
|
+ <span style="margin-left: 10px;color: fuchsia;">(根据频道id自动设置)</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="auth_redirct_url" style="" label="乙方跳转链接">
|
|
|
- <el-input v-model="postForm.auth_redirct_url" placeholder="" style="width: 600px;" />
|
|
|
+ <el-input v-model="postForm.auth_redirct_url" placeholder="https://webcast.bizconfstreaming.com/soa-mdl/index/user/login?channelId=频道id" style="width: 600px;" />
|
|
|
+ <span style="margin-left: 10px;color: fuchsia;">(根据频道id自动设置)</span>
|
|
|
</el-form-item>
|
|
|
<el-row>
|
|
|
<el-button v-if="!isEdit" v-loading="loading" type="success" @click="submitForm">
|
|
@@ -50,7 +52,10 @@ import { fetchSetting, updateSetting, getAuthCode, createChannel } from '@/api/s
|
|
|
|
|
|
const defaultForm = {
|
|
|
channel_id: '',
|
|
|
- channel_auth_code: ''
|
|
|
+ channel_auth_code: '',
|
|
|
+ channel_name: '',
|
|
|
+ auth_redirct_url: '',
|
|
|
+ redirct_url: ''
|
|
|
}
|
|
|
|
|
|
export default {
|
|
@@ -108,6 +113,10 @@ export default {
|
|
|
console.log(err)
|
|
|
})
|
|
|
},
|
|
|
+ onInputInput() {
|
|
|
+ this.postForm.auth_redirct_url = 'https://webcast.bizconfstreaming.com/soa-mdl/index/user/login?channelId=' + this.postForm.channel_id
|
|
|
+ this.postForm.redirct_url = 'https://webcast.bizconfstreaming.com/soa-mdl?channelId=' + this.postForm.channel_id
|
|
|
+ },
|
|
|
updateArticle() {
|
|
|
updateSetting(this.postForm).then(response => {
|
|
|
this.$notify({
|
|
@@ -122,9 +131,9 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getAuthCode() {
|
|
|
- if (!this.postForm.channel_id || this.postForm.channel_id.length === 0) {
|
|
|
+ if (!this.postForm.channel_id || this.postForm.channel_name.length === 0 || this.postForm.channel_id.length === 0) {
|
|
|
this.$message({
|
|
|
- message: '获取授权码前,必须填写频道id',
|
|
|
+ message: '获取授权码前,必须填写频道id和频道名称',
|
|
|
type: 'warning'
|
|
|
})
|
|
|
return
|