快捷填充上班时间段
<%=role_data.duty_list[0].onduty_time.substr(0,5)%>
~
<%=role_data.duty_list[0].offduty_time.substr(0,5)%>
|
日期 | 时间段 | 操作 |
<%for(var n = 0, _n = 7, strArr=['1','2','3','4','5','6','7'], days=['周一','周二','周三','周四','周五','周六','周日']; n < _n; n++) {%>
|
<%=days[n]%> |
<%if(role_data.workdays.indexOf(strArr[n])!== -1){%>
<%if(role_data.workday_duty[strArr[n]] && role_data.workday_duty[strArr[n]].length !== 0){%>
<%for(var i = 0, data = role_data.workday_duty[strArr[n]], _i=data.length; i < _i; i++) {%>
<%=data[i].onduty_time.substr(0,5)%> ~ <%=data[i].offduty_time.substr(0,5)%>
次日
<%}%>
<%}else{%>无<%}%>
<%}else{%>休息<%}%>
|
|
<%}%>