提交 30cd2a5e authored 作者: pengxiaohui's avatar pengxiaohui

修改回显数据不统一的问题

上级 6659aa76
......@@ -164,7 +164,7 @@
>准许成员在主持人开始前进入会议</el-checkbox
>
<el-checkbox style="display: block" v-model="form.mute_enable_join">入会自动静音</el-checkbox>
<el-checkbox v-model="form.auto_record" @change="autoRecordChange">自动录制会议</el-checkbox>
<el-checkbox v-model="form.auto_record">自动录制会议</el-checkbox>
<el-radio-group v-model="form.auto_record_type" v-if="form.auto_record">
<el-radio label="local">本地录制</el-radio>
<el-radio label="cloud">云录制</el-radio>
......@@ -250,7 +250,7 @@ export default {
}
const validateErrMsg = (rule, value, callback) => {
// 当开启会议直播时,启用验证,处理callback
if (this.form.isLive) {
if (this.form.enable_live && !value) {
const errMsg = rule.field === 'liveTheme' ? '请输入直播主题' : '请输入直播简介'
callback(new Error(errMsg))
} else {
......@@ -277,9 +277,9 @@ export default {
password: '',
auto_in_waiting_room: false,
allow_in_before_host: true,
auto_record_type: 'none',
auto_record: true,
auto_record_type: 'cloud',
mute_enable_join: false,
auto_record: false,
enable_live: false,
live_subject: '',
live_summary: '',
......@@ -300,8 +300,8 @@ export default {
{ validator: endDateChecked, trigger: 'change' }
],
moderator: [{ required: true, message: '请选择主持人', trigger: 'change' }],
liveTheme: [{ validator: validateErrMsg }],
liveDesc: [{ validator: validateErrMsg }]
live_subject: [{ validator: validateErrMsg }],
live_summary: [{ validator: validateErrMsg }]
},
startDateOptions: {
disabledDate(time) {
......@@ -617,7 +617,7 @@ export default {
}
if (details.password) {
this.form.password = details.password
this.hasPwd = true
this.form.hasPwd = true
}
const setting = details.settings
this.form.auto_in_waiting_room = setting.auto_in_waiting_room
......@@ -627,14 +627,16 @@ export default {
this.form.auto_record = true
}
this.form.mute_enable_join = setting.mute_enable_join
this.form.enable_live = details.enable_live
if (details.enable_live === 1) {
const liveConfig = details.live_config
this.form.live_subject = liveConfig.live_subject
this.form.live_summary = liveConfig.live_summary
this.form.enable_live_password = liveConfig.enable_live_password
this.form.enable_live_password = Boolean(liveConfig.live_password)
this.form.live_password = liveConfig.live_password
this.form.enable_live_im = liveConfig.enable_live_im
this.form.enable_live = true
} else {
this.form.enable_live = false
}
if (Array.isArray(details.managers) && details.managers.length > 0) {
const _managers = details.managers.map(it => it.user_id)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论