Skip to content

Commit

Permalink
fix 编辑后新增 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaopeiym committed Feb 2, 2021
1 parent 27d26f8 commit 6af952d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions QuartzNetWeb/src/app/task-list/task-list/task-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,7 @@ export class TaskListComponent implements OnInit {

//取消
handleJobCancel() {
this.isJobVisible = false;
this.modalTitle = "新增任务";
this.formReset();
this.formResetClose();
}

//验证
Expand All @@ -262,8 +260,10 @@ export class TaskListComponent implements OnInit {
}
}

//重置
formReset() {
//重置,并关闭对话框
formResetClose() {
this.isJobVisible = false;
this.modalTitle = "新增任务";
this.validateJobForm.reset();
this.validateJobForm.controls["triggerType"].setValue("1");
this.validateJobForm.controls["intervalUnit"].setValue("1");
Expand Down Expand Up @@ -303,8 +303,8 @@ export class TaskListComponent implements OnInit {
if (result.code == 200) {
this.msgInfo("保存任务计划成功!");
this.loadJobInfo();
this.formReset();
this.isJobVisible = false;
this.formResetClose();
//this.isJobVisible = false;
}
else {
this.msgWarning(result.msg);
Expand Down

0 comments on commit 6af952d

Please sign in to comment.