|
@@ -512,7 +512,7 @@ export class OfficeManagementComponent implements OnInit {
|
512
|
512
|
.subscribe((data) => {
|
513
|
513
|
that.btnLoading = false;
|
514
|
514
|
that.delModal = false;
|
515
|
|
- if (data.status == 200) {
|
|
515
|
+ if (data.status == 200 && !data.data[0].msg) {
|
516
|
516
|
if (
|
517
|
517
|
that.listOfData.length == 1 &&
|
518
|
518
|
that.pageIndex == Math.ceil(that.listLength / that.pageSize)
|
|
@@ -522,7 +522,7 @@ export class OfficeManagementComponent implements OnInit {
|
522
|
522
|
}
|
523
|
523
|
that.showPromptModal("删除", true, "");
|
524
|
524
|
} else {
|
525
|
|
- that.showPromptModal("删除", false, data.msg);
|
|
525
|
+ that.showPromptModal("删除", false, data.data[0].msg);
|
526
|
526
|
}
|
527
|
527
|
});
|
528
|
528
|
}
|