|
@@ -6,6 +6,7 @@ import { format, addMonths, startOfMonth, endOfMonth, startOfDay, endOfDay } fro
|
6
|
6
|
import { Component, OnInit, HostListener, AfterViewInit } from "@angular/core";
|
7
|
7
|
import { MainService } from 'src/app/services/main.service';
|
8
|
8
|
import { ActivatedRoute } from '@angular/router';
|
|
9
|
+import cloneDeep from 'lodash-es/cloneDeep'
|
9
|
10
|
@Component({
|
10
|
11
|
selector: "app-department-business-statistics",
|
11
|
12
|
templateUrl: "./department-business-statistics.component.html",
|
|
@@ -111,6 +112,7 @@ export class DepartmentBusinessStatisticsComponent implements OnInit, AfterViewI
|
111
|
112
|
getList(num?: number, field?: string, sort?: string) {
|
112
|
113
|
this.mainService.getDictionary('list', 'statistics_date_type').subscribe((data) => {
|
113
|
114
|
let dictionaryList = data || [];
|
|
115
|
+ dictionaryList = cloneDeep(dictionaryList);
|
114
|
116
|
let flag = dictionaryList.some((item) => item.value === 'dateOther');
|
115
|
117
|
!flag && dictionaryList.push({id: 0, name: '其他', value: 'dateOther'});
|
116
|
118
|
this.dictionaryList = dictionaryList;
|