Browse Source

BUG修复

seimin 3 years ago
parent
commit
9b0e3c8cfa
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/app/views/round-robin/round-robin.component.html

+ 3 - 2
src/app/views/round-robin/round-robin.component.html

@@ -46,7 +46,8 @@
46 46
             <td>{{ data.title }}</td>
47 47
             <td>{{ data.taskType.taskName }}</td>
48 48
             <td [ngSwitch]="data.timeStep">
49
-              <ng-container *ngSwitchCase="'day'">每日{{data.dayType == 0?'':'('+dayType[data.dayType]+')'}}</ng-container>
49
+              <ng-container *ngSwitchCase="'day'">每日{{data.dayType == 0?'':'('+dayType[data.dayType]+')'}}
50
+              </ng-container>
50 51
               <ng-container *ngSwitchCase="'week'">每周{{data.dayType == 0?'':'('+dayType[data.dayType]+')'}}
51 52
               </ng-container>
52 53
               <ng-container *ngSwitchCase="'month'">每月{{data.dayType == 0?'':'('+dayType[data.dayType]+')'}}
@@ -110,7 +111,7 @@
110 111
                 (nzOpenChange)="changeFormTasktype($event)" (ngModelChange)="selectedTasktypeHandler($event)">
111 112
                 <ng-container *ngFor="let data of roundRobinTypes">
112 113
                   <nz-option *ngIf="!isLoading" [nzLabel]="data.taskName" [nzValue]="data.id"
113
-                    [nzDisabled]="!data.carryingCourses[0].departmentStrategy||!data.carryingCourses[1].departmentStrategy">
114
+                    [nzDisabled]="data.carryingCourses&&(!data.carryingCourses[0].departmentStrategy||!data.carryingCourses[1].departmentStrategy)">
114 115
                   </nz-option>
115 116
                 </ng-container>
116 117
                 <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>