|
@@ -1,6 +1,5 @@
|
1
|
|
-import { Component, OnInit, Output, EventEmitter } from "@angular/core";
|
2
|
|
-import { ActivatedRoute, Router } from "@angular/router";
|
3
|
|
-import { Location } from "@angular/common";
|
|
1
|
+import { Component, OnInit } from "@angular/core";
|
|
2
|
+import { ActivatedRoute } from "@angular/router";
|
4
|
3
|
import { MainService } from "../../services/main.service";
|
5
|
4
|
|
6
|
5
|
@Component({
|
|
@@ -11,8 +10,6 @@ import { MainService } from "../../services/main.service";
|
11
|
10
|
export class AllocationWorkerComponent implements OnInit {
|
12
|
11
|
constructor(
|
13
|
12
|
private route: ActivatedRoute,
|
14
|
|
- private router: Router,
|
15
|
|
- private location: Location,
|
16
|
13
|
private mainService: MainService
|
17
|
14
|
) {}
|
18
|
15
|
|
|
@@ -144,8 +141,6 @@ export class AllocationWorkerComponent implements OnInit {
|
144
|
141
|
};
|
145
|
142
|
}
|
146
|
143
|
that.mainService.assignWorker(postData, flags).subscribe((data) => {
|
147
|
|
- console.log(data);
|
148
|
|
- // that.close();
|
149
|
144
|
that.btnLoading = false;
|
150
|
145
|
if (data.status == 200) {
|
151
|
146
|
that.showPromptModal("分配", true, "");
|
|
@@ -157,7 +152,6 @@ export class AllocationWorkerComponent implements OnInit {
|
157
|
152
|
|
158
|
153
|
// 关闭弹框
|
159
|
154
|
close() {
|
160
|
|
- // this.router.navigateByUrl('dispatchingDesk');
|
161
|
155
|
history.go(-1);
|
162
|
156
|
}
|
163
|
157
|
|