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

修改会议回填管理员

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