浏览代码

Merge branch 'master' into develop

maotao 1 月之前
父节点
当前提交
30323be54d

+ 4 - 2
src/app/views/new-statistics/maintenance-statistics/synthesize-statistics/synthesize-statistics.component.html

@@ -9,7 +9,7 @@
9
 		</div>
9
 		</div>
10
 		<div class="operation">
10
 		<div class="operation">
11
 			<button nz-button class="btn default" (click)="search()">搜索</button>
11
 			<button nz-button class="btn default" (click)="search()">搜索</button>
12
-			<button nz-button class="btn default ml8" (click)="search()">重置</button>
12
+			<button nz-button class="btn default ml8" (click)="reset()">重置</button>
13
 		</div>
13
 		</div>
14
 	</div>
14
 	</div>
15
 	<div class="top1-statistics">
15
 	<div class="top1-statistics">
@@ -163,4 +163,6 @@
163
 		</div>
163
 		</div>
164
 	</div>
164
 	</div>
165
 </div>
165
 </div>
166
-<nz-spin nzSimple *ngIf="isLoading"></nz-spin>
166
+<div class="mask-style" *ngIf="isLoading">
167
+	<nz-spin nzSimple class="spin-style"></nz-spin>
168
+</div>

+ 16 - 0
src/app/views/new-statistics/maintenance-statistics/synthesize-statistics/synthesize-statistics.component.less

@@ -204,4 +204,20 @@
204
 			margin-bottom: 8px;
204
 			margin-bottom: 8px;
205
 		}
205
 		}
206
 	}
206
 	}
207
+}
208
+
209
+.mask-style{
210
+	width: 100%;
211
+	height: 100%;
212
+	position: fixed;
213
+	top: 0;
214
+	left: 0;
215
+	z-index: 999;
216
+	display: flex;
217
+	background: rgba(0,0,0,0.2);
218
+	align-items: center;
219
+	justify-content: center;
220
+}
221
+.spin-style{
222
+	z-index:9999;
207
 }
223
 }

+ 9 - 2
src/app/views/new-statistics/maintenance-statistics/synthesize-statistics/synthesize-statistics.component.ts

@@ -396,7 +396,14 @@ export class SynthesizeStatisticsComponent implements OnInit {
396
 	      this.maintainData = result.data || [];
396
 	      this.maintainData = result.data || [];
397
 	    });
397
 	    });
398
 	}
398
 	}
399
-
399
+	
400
+	// 重置
401
+	reset(){
402
+		this.dateRange = [format(startOfMonth(addMonths(new Date(), -1)), 'yyyy-MM-dd HH:mm:ss'), format(endOfMonth(addMonths(new Date(), -1)), 'yyyy-MM-dd HH:mm:ss')];
403
+		this.activeIndex = 0;
404
+		this.search();
405
+	}
406
+	
400
   // 搜索
407
   // 搜索
401
   search() {
408
   search() {
402
 		this.isLoading = true
409
 		this.isLoading = true
@@ -410,7 +417,7 @@ export class SynthesizeStatisticsComponent implements OnInit {
410
   }
417
   }
411
 
418
 
412
   // 日期选择 日
419
   // 日期选择 日
413
-  dateRange: any = [format(startOfMonth(addMonths(new Date(), -2)), 'yyyy-MM-dd HH:mm:ss'), format(endOfMonth(addMonths(new Date(), -1)), 'yyyy-MM-dd HH:mm:ss')]; //发起时间区间 天
420
+  dateRange: any = [format(startOfMonth(addMonths(new Date(), -1)), 'yyyy-MM-dd HH:mm:ss'), format(endOfMonth(addMonths(new Date(), -1)), 'yyyy-MM-dd HH:mm:ss')]; //发起时间区间 天
414
   changeDate(result?): void {
421
   changeDate(result?): void {
415
     result[0] = format(result[0], 'yyyy-MM-dd HH:mm:ss');
422
     result[0] = format(result[0], 'yyyy-MM-dd HH:mm:ss');
416
     result[1] = format(result[1], 'yyyy-MM-dd HH:mm:ss');
423
     result[1] = format(result[1], 'yyyy-MM-dd HH:mm:ss');