Commit f2c01991 by xiexiaoqin

fix: 修复重复规则显示不正确

parent b927cb63
export function getSelectRepeatId(recurrenceModel, repeatList) { export function getSelectRepeatId(recurrenceModel, repeatList) {
let id = 0;
for (let i = 0; i < repeatList.length; i++) { for (let i = 0; i < repeatList.length; i++) {
if (repeatList[i].recurrenceModel.model === recurrenceModel.model) { if (repeatList[i].recurrenceModel.model === recurrenceModel.model) {
if (recurrenceModel.model === "weekly" && recurrenceModel.weekDayList.length === repeatList[i].recurrenceModel.weekDayList.length) { if (recurrenceModel.model === "weekly") {
return repeatList[i].id if (recurrenceModel.weekDayList.length === repeatList[i].recurrenceModel.weekDayList.length) {
id = repeatList[i].id;
}
} else {
id = repeatList[i].id;
} }
return repeatList[i].id
} }
} }
return 0 return id;
} }
export function getInitialPsarticipants(participants) { export function getInitialPsarticipants(participants) {
let people = {} let people = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment