seimin 1 月之前
父節點
當前提交
479f591078

+ 2 - 2
src/app/views/new-statistics/maintenance-statistics/category-one-statistics/category-one-statistics.component.ts

@@ -109,7 +109,7 @@ export class CategoryOneStatisticsComponent implements OnInit, AfterViewInit {
109
       dutyId: this.dutyId || undefined,
109
       dutyId: this.dutyId || undefined,
110
       parentDutyId: this.parentDutyId || undefined,
110
       parentDutyId: this.parentDutyId || undefined,
111
       groupId: this.fieldConfig.fields.groupId || undefined,
111
       groupId: this.fieldConfig.fields.groupId || undefined,
112
-      userId: this.fieldConfig.fields.userId || undefined,
112
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
113
       buildingId: this.fieldConfig.fields.buildingId || undefined,
113
       buildingId: this.fieldConfig.fields.buildingId || undefined,
114
       placeId: this.fieldConfig.fields.floorId || undefined,
114
       placeId: this.fieldConfig.fields.floorId || undefined,
115
       companyId: this.fieldConfig.fields.companyId || undefined,
115
       companyId: this.fieldConfig.fields.companyId || undefined,
@@ -174,7 +174,7 @@ export class CategoryOneStatisticsComponent implements OnInit, AfterViewInit {
174
       dutyId: this.dutyId || undefined,
174
       dutyId: this.dutyId || undefined,
175
       parentDutyId: this.parentDutyId || undefined,
175
       parentDutyId: this.parentDutyId || undefined,
176
       groupId: this.fieldConfig.fields.groupId || undefined,
176
       groupId: this.fieldConfig.fields.groupId || undefined,
177
-      userId: this.fieldConfig.fields.userId || undefined,
177
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
178
       buildingId: this.fieldConfig.fields.buildingId || undefined,
178
       buildingId: this.fieldConfig.fields.buildingId || undefined,
179
       placeId: this.fieldConfig.fields.floorId || undefined,
179
       placeId: this.fieldConfig.fields.floorId || undefined,
180
       companyId: this.fieldConfig.fields.companyId || undefined,
180
       companyId: this.fieldConfig.fields.companyId || undefined,

+ 2 - 2
src/app/views/new-statistics/maintenance-statistics/category-source-statistics/category-source-statistics.component.ts

@@ -109,7 +109,7 @@ export class CategorySourceStatisticsComponent implements OnInit, AfterViewInit
109
       dutyId: this.dutyId || undefined,
109
       dutyId: this.dutyId || undefined,
110
       parentDutyId: this.parentDutyId || undefined,
110
       parentDutyId: this.parentDutyId || undefined,
111
       groupId: this.fieldConfig.fields.groupId || undefined,
111
       groupId: this.fieldConfig.fields.groupId || undefined,
112
-      userId: this.fieldConfig.fields.userId || undefined,
112
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
113
       categoryId: this.fieldConfig.fields.categoryId || undefined,
113
       categoryId: this.fieldConfig.fields.categoryId || undefined,
114
       buildingId: this.fieldConfig.fields.buildingId || undefined,
114
       buildingId: this.fieldConfig.fields.buildingId || undefined,
115
       placeId: this.fieldConfig.fields.floorId || undefined,
115
       placeId: this.fieldConfig.fields.floorId || undefined,
@@ -172,7 +172,7 @@ export class CategorySourceStatisticsComponent implements OnInit, AfterViewInit
172
       dutyId: this.dutyId || undefined,
172
       dutyId: this.dutyId || undefined,
173
       parentDutyId: this.parentDutyId || undefined,
173
       parentDutyId: this.parentDutyId || undefined,
174
       groupId: this.fieldConfig.fields.groupId || undefined,
174
       groupId: this.fieldConfig.fields.groupId || undefined,
175
-      userId: this.fieldConfig.fields.userId || undefined,
175
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
176
       categoryId: this.fieldConfig.fields.categoryId || undefined,
176
       categoryId: this.fieldConfig.fields.categoryId || undefined,
177
       buildingId: this.fieldConfig.fields.buildingId || undefined,
177
       buildingId: this.fieldConfig.fields.buildingId || undefined,
178
       placeId: this.fieldConfig.fields.floorId || undefined,
178
       placeId: this.fieldConfig.fields.floorId || undefined,

+ 2 - 2
src/app/views/new-statistics/maintenance-statistics/category-three-statistics/category-three-statistics.component.ts

@@ -122,7 +122,7 @@ export class CategoryThreeStatisticsComponent implements OnInit, AfterViewInit {
122
       categoryId: this.category2Id || this.category1Id || undefined,
122
       categoryId: this.category2Id || this.category1Id || undefined,
123
       hierarchy: this.category2Id ? 2 : (this.category1Id ? 1 : undefined),
123
       hierarchy: this.category2Id ? 2 : (this.category1Id ? 1 : undefined),
124
       groupId: this.fieldConfig.fields.groupId || undefined,
124
       groupId: this.fieldConfig.fields.groupId || undefined,
125
-      userId: this.fieldConfig.fields.userId || undefined,
125
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
126
       buildingId: this.fieldConfig.fields.buildingId || undefined,
126
       buildingId: this.fieldConfig.fields.buildingId || undefined,
127
       placeId: this.fieldConfig.fields.floorId || undefined,
127
       placeId: this.fieldConfig.fields.floorId || undefined,
128
       companyId: this.fieldConfig.fields.companyId || undefined,
128
       companyId: this.fieldConfig.fields.companyId || undefined,
@@ -189,7 +189,7 @@ export class CategoryThreeStatisticsComponent implements OnInit, AfterViewInit {
189
       categoryId: this.category2Id || this.category1Id || undefined,
189
       categoryId: this.category2Id || this.category1Id || undefined,
190
       hierarchy: this.category2Id ? 2 : (this.category1Id ? 1 : undefined),
190
       hierarchy: this.category2Id ? 2 : (this.category1Id ? 1 : undefined),
191
       groupId: this.fieldConfig.fields.groupId || undefined,
191
       groupId: this.fieldConfig.fields.groupId || undefined,
192
-      userId: this.fieldConfig.fields.userId || undefined,
192
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
193
       buildingId: this.fieldConfig.fields.buildingId || undefined,
193
       buildingId: this.fieldConfig.fields.buildingId || undefined,
194
       placeId: this.fieldConfig.fields.floorId || undefined,
194
       placeId: this.fieldConfig.fields.floorId || undefined,
195
       companyId: this.fieldConfig.fields.companyId || undefined,
195
       companyId: this.fieldConfig.fields.companyId || undefined,

+ 2 - 2
src/app/views/new-statistics/maintenance-statistics/category-two-statistics/category-two-statistics.component.ts

@@ -121,7 +121,7 @@ export class CategoryTwoStatisticsComponent implements OnInit, AfterViewInit {
121
       categoryId: this.category1Id || undefined,
121
       categoryId: this.category1Id || undefined,
122
       hierarchy: this.category1Id ? 1 : undefined,
122
       hierarchy: this.category1Id ? 1 : undefined,
123
       groupId: this.fieldConfig.fields.groupId || undefined,
123
       groupId: this.fieldConfig.fields.groupId || undefined,
124
-      userId: this.fieldConfig.fields.userId || undefined,
124
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
125
       buildingId: this.fieldConfig.fields.buildingId || undefined,
125
       buildingId: this.fieldConfig.fields.buildingId || undefined,
126
       placeId: this.fieldConfig.fields.floorId || undefined,
126
       placeId: this.fieldConfig.fields.floorId || undefined,
127
       companyId: this.fieldConfig.fields.companyId || undefined,
127
       companyId: this.fieldConfig.fields.companyId || undefined,
@@ -188,7 +188,7 @@ export class CategoryTwoStatisticsComponent implements OnInit, AfterViewInit {
188
       categoryId: this.category1Id || undefined,
188
       categoryId: this.category1Id || undefined,
189
       hierarchy: this.category1Id ? 1 : undefined,
189
       hierarchy: this.category1Id ? 1 : undefined,
190
       groupId: this.fieldConfig.fields.groupId || undefined,
190
       groupId: this.fieldConfig.fields.groupId || undefined,
191
-      userId: this.fieldConfig.fields.userId || undefined,
191
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
192
       buildingId: this.fieldConfig.fields.buildingId || undefined,
192
       buildingId: this.fieldConfig.fields.buildingId || undefined,
193
       placeId: this.fieldConfig.fields.floorId || undefined,
193
       placeId: this.fieldConfig.fields.floorId || undefined,
194
       companyId: this.fieldConfig.fields.companyId || undefined,
194
       companyId: this.fieldConfig.fields.companyId || undefined,

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

@@ -120,7 +120,7 @@ export class ConsumableStatisticsComponent implements OnInit, AfterViewInit {
120
       parentDutyId: this.parentDutyId || undefined,
120
       parentDutyId: this.parentDutyId || undefined,
121
       repairDeptId: this.repairDeptId || undefined,
121
       repairDeptId: this.repairDeptId || undefined,
122
       groupId: this.fieldConfig.fields.groupId || undefined,
122
       groupId: this.fieldConfig.fields.groupId || undefined,
123
-      userId: this.fieldConfig.fields.userId || undefined,
123
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
124
       categoryId: this.fieldConfig.fields.categoryId || undefined,
124
       categoryId: this.fieldConfig.fields.categoryId || undefined,
125
       buildingId: this.fieldConfig.fields.buildingId || undefined,
125
       buildingId: this.fieldConfig.fields.buildingId || undefined,
126
       placeId: this.fieldConfig.fields.floorId || undefined,
126
       placeId: this.fieldConfig.fields.floorId || undefined,
@@ -185,7 +185,7 @@ export class ConsumableStatisticsComponent implements OnInit, AfterViewInit {
185
       parentDutyId: this.parentDutyId || undefined,
185
       parentDutyId: this.parentDutyId || undefined,
186
       repairDeptId: this.repairDeptId || undefined,
186
       repairDeptId: this.repairDeptId || undefined,
187
       groupId: this.fieldConfig.fields.groupId || undefined,
187
       groupId: this.fieldConfig.fields.groupId || undefined,
188
-      userId: this.fieldConfig.fields.userId || undefined,
188
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
189
       categoryId: this.fieldConfig.fields.categoryId || undefined,
189
       categoryId: this.fieldConfig.fields.categoryId || undefined,
190
       buildingId: this.fieldConfig.fields.buildingId || undefined,
190
       buildingId: this.fieldConfig.fields.buildingId || undefined,
191
       placeId: this.fieldConfig.fields.floorId || undefined,
191
       placeId: this.fieldConfig.fields.floorId || undefined,

+ 2 - 2
src/app/views/new-statistics/maintenance-statistics/department-evaluate-statistics/department-evaluate-statistics.component.ts

@@ -112,7 +112,7 @@ export class DepartmentEvaluateStatisticsComponent implements OnInit, AfterViewI
112
       parentDutyId: this.parentDutyId || undefined,
112
       parentDutyId: this.parentDutyId || undefined,
113
       deptTypeId: this.deptTypeId || undefined,
113
       deptTypeId: this.deptTypeId || undefined,
114
       groupId: this.fieldConfig.fields.groupId || undefined,
114
       groupId: this.fieldConfig.fields.groupId || undefined,
115
-      userId: this.fieldConfig.fields.userId || undefined,
115
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
116
       categoryId: this.fieldConfig.fields.categoryId || undefined,
116
       categoryId: this.fieldConfig.fields.categoryId || undefined,
117
       buildingId: this.fieldConfig.fields.buildingId || undefined,
117
       buildingId: this.fieldConfig.fields.buildingId || undefined,
118
       placeId: this.fieldConfig.fields.floorId || undefined,
118
       placeId: this.fieldConfig.fields.floorId || undefined,
@@ -176,7 +176,7 @@ export class DepartmentEvaluateStatisticsComponent implements OnInit, AfterViewI
176
       parentDutyId: this.parentDutyId || undefined,
176
       parentDutyId: this.parentDutyId || undefined,
177
       deptTypeId: this.deptTypeId || undefined,
177
       deptTypeId: this.deptTypeId || undefined,
178
       groupId: this.fieldConfig.fields.groupId || undefined,
178
       groupId: this.fieldConfig.fields.groupId || undefined,
179
-      userId: this.fieldConfig.fields.userId || undefined,
179
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
180
       categoryId: this.fieldConfig.fields.categoryId || undefined,
180
       categoryId: this.fieldConfig.fields.categoryId || undefined,
181
       buildingId: this.fieldConfig.fields.buildingId || undefined,
181
       buildingId: this.fieldConfig.fields.buildingId || undefined,
182
       placeId: this.fieldConfig.fields.floorId || undefined,
182
       placeId: this.fieldConfig.fields.floorId || undefined,

+ 2 - 2
src/app/views/new-statistics/maintenance-statistics/department-incident-statistics/department-incident-statistics.component.ts

@@ -112,7 +112,7 @@ export class DepartmentIncidentStatisticsComponent implements OnInit, AfterViewI
112
       parentDutyId: this.parentDutyId || undefined,
112
       parentDutyId: this.parentDutyId || undefined,
113
       deptTypeId: this.deptTypeId || undefined,
113
       deptTypeId: this.deptTypeId || undefined,
114
       groupId: this.fieldConfig.fields.groupId || undefined,
114
       groupId: this.fieldConfig.fields.groupId || undefined,
115
-      userId: this.fieldConfig.fields.userId || undefined,
115
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
116
       categoryId: this.fieldConfig.fields.categoryId || undefined,
116
       categoryId: this.fieldConfig.fields.categoryId || undefined,
117
       buildingId: this.fieldConfig.fields.buildingId || undefined,
117
       buildingId: this.fieldConfig.fields.buildingId || undefined,
118
       placeId: this.fieldConfig.fields.floorId || undefined,
118
       placeId: this.fieldConfig.fields.floorId || undefined,
@@ -176,7 +176,7 @@ export class DepartmentIncidentStatisticsComponent implements OnInit, AfterViewI
176
       parentDutyId: this.parentDutyId || undefined,
176
       parentDutyId: this.parentDutyId || undefined,
177
       deptTypeId: this.deptTypeId || undefined,
177
       deptTypeId: this.deptTypeId || undefined,
178
       groupId: this.fieldConfig.fields.groupId || undefined,
178
       groupId: this.fieldConfig.fields.groupId || undefined,
179
-      userId: this.fieldConfig.fields.userId || undefined,
179
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
180
       categoryId: this.fieldConfig.fields.categoryId || undefined,
180
       categoryId: this.fieldConfig.fields.categoryId || undefined,
181
       buildingId: this.fieldConfig.fields.buildingId || undefined,
181
       buildingId: this.fieldConfig.fields.buildingId || undefined,
182
       placeId: this.fieldConfig.fields.floorId || undefined,
182
       placeId: this.fieldConfig.fields.floorId || undefined,

+ 2 - 2
src/app/views/new-statistics/maintenance-statistics/department-source-statistics/department-source-statistics.component.ts

@@ -112,7 +112,7 @@ export class DepartmentSourceStatisticsComponent implements OnInit, AfterViewIni
112
       parentDutyId: this.parentDutyId || undefined,
112
       parentDutyId: this.parentDutyId || undefined,
113
       deptTypeId: this.deptTypeId || undefined,
113
       deptTypeId: this.deptTypeId || undefined,
114
       groupId: this.fieldConfig.fields.groupId || undefined,
114
       groupId: this.fieldConfig.fields.groupId || undefined,
115
-      userId: this.fieldConfig.fields.userId || undefined,
115
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
116
       categoryId: this.fieldConfig.fields.categoryId || undefined,
116
       categoryId: this.fieldConfig.fields.categoryId || undefined,
117
       buildingId: this.fieldConfig.fields.buildingId || undefined,
117
       buildingId: this.fieldConfig.fields.buildingId || undefined,
118
       placeId: this.fieldConfig.fields.floorId || undefined,
118
       placeId: this.fieldConfig.fields.floorId || undefined,
@@ -176,7 +176,7 @@ export class DepartmentSourceStatisticsComponent implements OnInit, AfterViewIni
176
       parentDutyId: this.parentDutyId || undefined,
176
       parentDutyId: this.parentDutyId || undefined,
177
       deptTypeId: this.deptTypeId || undefined,
177
       deptTypeId: this.deptTypeId || undefined,
178
       groupId: this.fieldConfig.fields.groupId || undefined,
178
       groupId: this.fieldConfig.fields.groupId || undefined,
179
-      userId: this.fieldConfig.fields.userId || undefined,
179
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
180
       categoryId: this.fieldConfig.fields.categoryId || undefined,
180
       categoryId: this.fieldConfig.fields.categoryId || undefined,
181
       buildingId: this.fieldConfig.fields.buildingId || undefined,
181
       buildingId: this.fieldConfig.fields.buildingId || undefined,
182
       placeId: this.fieldConfig.fields.floorId || undefined,
182
       placeId: this.fieldConfig.fields.floorId || undefined,

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

@@ -120,7 +120,7 @@ export class IncidentStatisticsComponent implements OnInit, AfterViewInit {
120
       parentDutyId: this.parentDutyId || undefined,
120
       parentDutyId: this.parentDutyId || undefined,
121
       repairDeptId: this.repairDeptId || undefined,
121
       repairDeptId: this.repairDeptId || undefined,
122
       groupId: this.fieldConfig.fields.groupId || undefined,
122
       groupId: this.fieldConfig.fields.groupId || undefined,
123
-      userId: this.fieldConfig.fields.userId || undefined,
123
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
124
       categoryId: this.fieldConfig.fields.categoryId || undefined,
124
       categoryId: this.fieldConfig.fields.categoryId || undefined,
125
       sourceId: this.fieldConfig.fields.sourceId || undefined,
125
       sourceId: this.fieldConfig.fields.sourceId || undefined,
126
       hierarchy: this.fieldConfig.fields.hierarchy || undefined,
126
       hierarchy: this.fieldConfig.fields.hierarchy || undefined,
@@ -184,7 +184,7 @@ export class IncidentStatisticsComponent implements OnInit, AfterViewInit {
184
       parentDutyId: this.parentDutyId || undefined,
184
       parentDutyId: this.parentDutyId || undefined,
185
       repairDeptId: this.repairDeptId || undefined,
185
       repairDeptId: this.repairDeptId || undefined,
186
       groupId: this.fieldConfig.fields.groupId || undefined,
186
       groupId: this.fieldConfig.fields.groupId || undefined,
187
-      userId: this.fieldConfig.fields.userId || undefined,
187
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
188
       categoryId: this.fieldConfig.fields.categoryId || undefined,
188
       categoryId: this.fieldConfig.fields.categoryId || undefined,
189
       sourceId: this.fieldConfig.fields.sourceId || undefined,
189
       sourceId: this.fieldConfig.fields.sourceId || undefined,
190
       hierarchy: this.fieldConfig.fields.hierarchy || undefined,
190
       hierarchy: this.fieldConfig.fields.hierarchy || undefined,

+ 2 - 2
src/app/views/new-statistics/maintenance-statistics/work-hour-statistics/work-hour-statistics.component.ts

@@ -120,7 +120,7 @@ export class WorkHourStatisticsComponent implements OnInit, AfterViewInit {
120
       parentDutyId: this.parentDutyId || undefined,
120
       parentDutyId: this.parentDutyId || undefined,
121
       repairDeptId: this.repairDeptId || undefined,
121
       repairDeptId: this.repairDeptId || undefined,
122
       groupId: this.fieldConfig.fields.groupId || undefined,
122
       groupId: this.fieldConfig.fields.groupId || undefined,
123
-      userId: this.fieldConfig.fields.userId || undefined,
123
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
124
       categoryId: this.fieldConfig.fields.categoryId || undefined,
124
       categoryId: this.fieldConfig.fields.categoryId || undefined,
125
       buildingId: this.fieldConfig.fields.buildingId || undefined,
125
       buildingId: this.fieldConfig.fields.buildingId || undefined,
126
       placeId: this.fieldConfig.fields.floorId || undefined,
126
       placeId: this.fieldConfig.fields.floorId || undefined,
@@ -185,7 +185,7 @@ export class WorkHourStatisticsComponent implements OnInit, AfterViewInit {
185
       parentDutyId: this.parentDutyId || undefined,
185
       parentDutyId: this.parentDutyId || undefined,
186
       repairDeptId: this.repairDeptId || undefined,
186
       repairDeptId: this.repairDeptId || undefined,
187
       groupId: this.fieldConfig.fields.groupId || undefined,
187
       groupId: this.fieldConfig.fields.groupId || undefined,
188
-      userId: this.fieldConfig.fields.userId || undefined,
188
+      userId: this.fieldConfig.fields.groupId ? (this.fieldConfig.fields.userId || undefined) : undefined,
189
       categoryId: this.fieldConfig.fields.categoryId || undefined,
189
       categoryId: this.fieldConfig.fields.categoryId || undefined,
190
       buildingId: this.fieldConfig.fields.buildingId || undefined,
190
       buildingId: this.fieldConfig.fields.buildingId || undefined,
191
       placeId: this.fieldConfig.fields.floorId || undefined,
191
       placeId: this.fieldConfig.fields.floorId || undefined,