提交 96b42fd0 authored 作者: pengxiaohui's avatar pengxiaohui

修改周期会议取消会议日期次数回显

上级 21cbbe4c
...@@ -422,9 +422,9 @@ export default { ...@@ -422,9 +422,9 @@ export default {
if (val && val.startDate) { if (val && val.startDate) {
this.userList = this.users this.userList = this.users
this.deepSet(this.form, val) this.deepSet(this.form, val)
if (val.meeting_type === 1) { // if (val.meeting_type === 1) {
val.recurring_rule.until_type === 0 ? this.setUntilCount() : this.setUntilDate() // val.recurring_rule.until_type === 0 ? this.setUntilCount() : this.setUntilDate()
} // }
} }
}, },
immediate: true, immediate: true,
......
...@@ -70,10 +70,17 @@ export default ({ ...@@ -70,10 +70,17 @@ export default ({
recurring_type: recurringRule.recurring_type, recurring_type: recurringRule.recurring_type,
until_type: recurringRule.until_type until_type: recurringRule.until_type
} }
const subMeetings = details.sub_meetings
if (recurringRule.until_type === 0) { if (recurringRule.until_type === 0) {
reviewData.recurring_rule.until_date = timeTrans(recurringRule.until_date) - DAY_TIMESTAMP reviewData.recurring_rule.until_date = timeTrans(recurringRule.until_date).getTime() - DAY_TIMESTAMP
reviewData.recurring_rule.until_count = subMeetings.length || 1
} else { } else {
reviewData.recurring_rule.until_count = recurringRule.until_count reviewData.recurring_rule.until_count = recurringRule.until_count
let time = 0
subMeetings.forEach(item => {
if (item.start_time > time) time = item.start_time
})
reviewData.recurring_rule.until_date = timeTrans(time).getTime() - DAY_TIMESTAMP
} }
} }
if (details.password) { if (details.password) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论