| | |
| | | </div> |
| | | </div> |
| | | <div class="pam-add-schedule cursor--pointer" |
| | | :class="{'disable':!checkFormHasDone(syncScheduleList[syncScheduleList.length-1])|| syncScheduleList.length ===7}" |
| | | :class="{'disable':!checkFormHasDone(syncScheduleList[syncScheduleList && syncScheduleList.length && syncScheduleList.length - 1])|| syncScheduleList.length ===7}" |
| | | @click="addNewSchedule"> |
| | | <i class="icon-add"></i> |
| | | 新增時段 |
| | |
| | | } |
| | | |
| | | checkFormHasDone(item:scheduleDto):boolean{ |
| | | return item.selectWeekOptions.length>0 && item.selectTimesOptions.length>0; |
| | | if (!item) return false; |
| | | return item.selectWeekOptions?.length>0 && item.selectTimesOptions?.length>0; |
| | | } |
| | | |
| | | titleFormatByIndex(index:number):string{ |