Quellcode durchsuchen

任务类型新增BUG修复

seimin vor 3 Jahren
Ursprung
Commit
ed93b4d310

+ 5 - 1
src/app/views/task-type-management/task-type-management.component.ts

@@ -930,6 +930,10 @@ export class TaskTypeManagementComponent implements OnInit {
930 930
         }
931 931
       }
932 932
     }
933
+    if (!this.taskData.taskType.classesIds) {
934
+      that.showPromptModal(that.add ? "新增" : "编辑", false, "请选择关联班次");
935
+      return;
936
+    }
933 937
     if (this.taskData.taskType.classesIds.length == 0) {
934 938
       that.showPromptModal(that.add ? "新增" : "编辑", false, "请选择关联班次");
935 939
       return;
@@ -1629,7 +1633,7 @@ export class TaskTypeManagementComponent implements OnInit {
1629 1633
     this.yLoading = true;
1630 1634
     that.mainService.getDictionary("list", this.jyfsType).subscribe((data) => {
1631 1635
       this.yNum--;
1632
-      if(this.yNum === 0){
1636
+      if (this.yNum === 0) {
1633 1637
         this.yLoading = false;
1634 1638
       }
1635 1639
       this.checkoutData = data;