|
@@ -193,6 +193,7 @@ export class OfficeManagementComponent implements OnInit {
|
193
|
193
|
|
194
|
194
|
// 切换楼栋信息
|
195
|
195
|
floors: Array<any> = []; //楼层
|
|
196
|
+ floorLoading: boolean = false;
|
196
|
197
|
changeBuilding(buildingId?, obj?) {
|
197
|
198
|
var that = this;
|
198
|
199
|
that.floors = [];
|
|
@@ -207,7 +208,9 @@ export class OfficeManagementComponent implements OnInit {
|
207
|
208
|
let data = {
|
208
|
209
|
buildingId: bid,
|
209
|
210
|
};
|
|
211
|
+ this.floorLoading = true;
|
210
|
212
|
that.mainService.getBuildingOrFloor("floor", data).subscribe((data) => {
|
|
213
|
+ this.floorLoading = false;
|
211
|
214
|
this.message.remove(this.maskFlag);
|
212
|
215
|
this.maskFlag = false;
|
213
|
216
|
this.modal = true;
|
|
@@ -500,7 +503,6 @@ export class OfficeManagementComponent implements OnInit {
|
500
|
503
|
confirmDel() {
|
501
|
504
|
var that = this;
|
502
|
505
|
that.btnLoading = true;
|
503
|
|
- that.delModal = false;
|
504
|
506
|
that.mainService
|
505
|
507
|
.coopData(
|
506
|
508
|
"rmvData",
|
|
@@ -509,6 +511,7 @@ export class OfficeManagementComponent implements OnInit {
|
509
|
511
|
)
|
510
|
512
|
.subscribe((data) => {
|
511
|
513
|
that.btnLoading = false;
|
|
514
|
+ that.delModal = false;
|
512
|
515
|
if (data.status == 200) {
|
513
|
516
|
if (
|
514
|
517
|
that.listOfData.length == 1 &&
|