<div class="nb-schedule"><div class="hour-select"><div class="hour-select-day"><nb-select [datasource]="selectData" (onChange)="setDay($event)"></nb-select></div><ul class="hour-select-label"><li>投放时段</li><li>未投时段</li></ul></div><div class="hour-table clearfix"><div class="hour-title"><ng-container *ngFor="let item of hours; index as j"><span *ngIf="j % 2 === 0">{{ item }}:00</span></ng-container></div><div class="week-title"><div class="week-item" *ngFor="let item of week; index as j" (click)="checkDay(j)"><nb-checkbox *ngIf="weekSelect[j] === 0" theme="small">{{ item }}</nb-checkbox><nb-checkbox *ngIf="weekSelect[j] === 1" theme="small" intermediate>{{ item }}</nb-checkbox><nb-checkbox *ngIf="weekSelect[j] === 2" theme="small" checked="checked">{{ item }}</nb-checkbox></div></div><table class="table-con"><tr *ngFor="let item1 of week; index as i"><ng-container *ngFor="let item of hours; index as j"><td *ngIf="j < 24"><button title="{{ item }}:00-{{ hours[j + 1] }}:00" [attr.data]="showLabel(i,j)" [ngClass]="{'selected': schedules[i * 24 + j] === 1}" (mousedown)="mousedown(i, j)" (mouseup)="mouseup()" (mouseover)="mouseover(i, j)" (mouseout)="mouseout(i, j)"></button></td></ng-container></tr></table></div></div>