提交 cada09d0 authored 作者: pengxiaohui's avatar pengxiaohui

修改会议回填管理员

上级 3dbb2223
......@@ -130,7 +130,7 @@
<el-select
style="width: 100%"
v-model="form.managers"
placeholder="选择管理员"
placeholder="请输入关键字搜索"
size="small"
multiple
filterable
......@@ -229,7 +229,6 @@ export default {
const nowDate = getYMDByDate(now)
const startDateChecked = (rule, value, callback) => {
if (value) {
console.log(value)
const timestamp = Date.parse(value)
if (timestamp < Date.now() - DAY_TIMESTAMP) {
callback(new Error('开始时间必须大于当前时间'))
......@@ -273,6 +272,7 @@ export default {
until_type: 0,
until_date: '',
until_count: 7,
managers: [],
hasPwd: false,
password: '',
auto_in_waiting_room: false,
......@@ -636,6 +636,11 @@ export default {
this.form.live_password = liveConfig.live_password
this.form.enable_live_im = liveConfig.enable_live_im
}
if (Array.isArray(details.managers) && details.managers.length > 0) {
const _managers = details.managers.map(it => it.user_id)
this.form.managers = _managers;
this.userList = details.managers
}
},
async showMeetingDetails(obj) {
const loading = this.$loading({
......@@ -671,10 +676,17 @@ export default {
}).catch()
},
fetchUserList(val) {
if (val) {
const params = {
if (!val) return
let params = {};
if (typeof val === 'string') {
params = {
nickname: val
}
} else {
params = {
nickname: val
}
}
this.searchUsersloading = true
searchUserList(params)
.then(res => {
......@@ -684,7 +696,6 @@ export default {
}
})
.catch(() => {})
}
},
getSubmitParams() {
const form = this.form
......@@ -696,12 +707,6 @@ export default {
end_time: dateFormat(this.endTimestamp),
password: form.password,
meeting_type: form.meeting_type,
recurring_rule: {
recurring_type: form.recurring_type,
until_type: form.until_type,
until_date: form.until_type ? undefined : parseInt(form.until_date / 1000),
until_count: form.until_type ? form.until_count : undefined
},
settings: {
mute_enable_join: form.mute_enable_join,
auto_in_waiting_room: form.auto_in_waiting_room,
......@@ -709,14 +714,24 @@ export default {
auto_record_type: form.auto_record ? form.auto_record_type : 'none'
},
enable_live: form.enable_live,
live_config: {
managers: form.managers.length > 0 ? form.managers : [this.user.id]
}
if (form.meeting_type === 1) {
params.recurring_rule = {
recurring_type: form.recurring_type,
until_type: form.until_type,
until_date: form.until_type ? undefined : parseInt(form.until_date / 1000),
until_count: form.until_type ? form.until_count : undefined
}
}
if (form.enable_live) {
params.live_config = {
live_subject: form.live_subject,
live_summary: form.live_summary,
enable_live_password: form.enable_live_password,
live_password: form.enable_live_password ? form.live_password : undefined,
enable_live_im: form.enable_live_im
},
managers: form.managers.length > 0 ? form.managers : [this.user.id]
}
}
return params
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论