rez_core 1.0.77 → 1.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module/meta/controller/entity.controller.d.ts +1 -1
- package/dist/module/meta/controller/entity.controller.js +5 -3
- package/dist/module/meta/controller/entity.controller.js.map +1 -1
- package/dist/module/meta/service/entity-list.service.d.ts +1 -1
- package/dist/module/meta/service/entity-list.service.js +4 -1
- package/dist/module/meta/service/entity-list.service.js.map +1 -1
- package/dist/module/meta/service/entity-service-impl.service.d.ts +1 -1
- package/dist/module/meta/service/entity-service-impl.service.js +2 -2
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/meta/controller/entity.controller.ts +4 -0
- package/src/module/meta/service/entity-list.service.ts +6 -0
- package/src/module/meta/service/entity-service-impl.service.ts +4 -0
package/package.json
CHANGED
|
@@ -132,6 +132,8 @@ export class EntityController {
|
|
|
132
132
|
@Query('sort_order') sortOrder?: string,
|
|
133
133
|
@Query('page') page: number = 0,
|
|
134
134
|
@Query('size') size: number = 1,
|
|
135
|
+
@Query('tab_column') tabColumn?: string,
|
|
136
|
+
@Query('tab_value') tabValue?: string,
|
|
135
137
|
) {
|
|
136
138
|
return res
|
|
137
139
|
.status(HttpStatus.OK)
|
|
@@ -144,6 +146,8 @@ export class EntityController {
|
|
|
144
146
|
sortOrder,
|
|
145
147
|
page,
|
|
146
148
|
size,
|
|
149
|
+
tabColumn,
|
|
150
|
+
tabValue
|
|
147
151
|
),
|
|
148
152
|
);
|
|
149
153
|
}
|
|
@@ -23,6 +23,8 @@ export class EntityListService {
|
|
|
23
23
|
sortOrder: string | undefined,
|
|
24
24
|
pageNumber: number,
|
|
25
25
|
pageSize: number,
|
|
26
|
+
tabColumn?: string,
|
|
27
|
+
tabValue?: string,
|
|
26
28
|
): Promise<EntityListData> {
|
|
27
29
|
let entityListData = new EntityListData();
|
|
28
30
|
|
|
@@ -35,6 +37,10 @@ export class EntityListService {
|
|
|
35
37
|
if (1 != entityTable.is_proc) {
|
|
36
38
|
let totalCount = await this.getTotalCount(entityTable, filters);
|
|
37
39
|
entityListData.entity_tabs = totalCount as EntityTab[];
|
|
40
|
+
|
|
41
|
+
if (tabColumn && tabValue) {
|
|
42
|
+
filters[tabColumn] = tabValue;
|
|
43
|
+
}
|
|
38
44
|
entityListData.entity_list = await this.getFilteredList(
|
|
39
45
|
entityTable,
|
|
40
46
|
filters,
|
|
@@ -165,6 +165,8 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
|
|
|
165
165
|
sortOrder: string | undefined,
|
|
166
166
|
pageNumber: number,
|
|
167
167
|
pageSize: number,
|
|
168
|
+
tabColumn?: string,
|
|
169
|
+
tabValue?: string,
|
|
168
170
|
): Promise<EntityListData> {
|
|
169
171
|
return await this.entityListService.getFilterDataWithTabs(
|
|
170
172
|
entityType,
|
|
@@ -174,6 +176,8 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
|
|
|
174
176
|
sortOrder,
|
|
175
177
|
pageNumber,
|
|
176
178
|
pageSize,
|
|
179
|
+
tabColumn,
|
|
180
|
+
tabValue
|
|
177
181
|
);
|
|
178
182
|
}
|
|
179
183
|
|