переработка выбора
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
PatchRequestTypeInput,
|
||||
PatchTemplateRouteInput,
|
||||
PatchTemplateRouteStepInput,
|
||||
RequestListPartition,
|
||||
RequestType,
|
||||
RequestTypeListSeries,
|
||||
ResolveTemplateRouteQuery,
|
||||
@@ -47,7 +48,13 @@ export class ApprovalRouteApi {
|
||||
// портала, которому нужен весь список адресов разом, а не по одному запросу
|
||||
// на тип.
|
||||
listsAll: (): Promise<RequestTypeListSeries[]> =>
|
||||
this.http.get<RequestTypeListSeries[]>('/api/request-types/lists')
|
||||
this.http.get<RequestTypeListSeries[]>('/api/request-types/lists'),
|
||||
|
||||
// Вся серия партиций ОДНОГО типа заявки (архив + текущая) — нужна экрану
|
||||
// редактирования заявок: заявка может лежать в любой из них, не только в
|
||||
// текущей (см. requestManageService.ts).
|
||||
lists: (requestTypeId: number): Promise<RequestListPartition[]> =>
|
||||
this.http.get<RequestListPartition[]>(`/api/request-types/${requestTypeId}/lists`)
|
||||
};
|
||||
|
||||
public readonly templateRoutes = {
|
||||
|
||||
Reference in New Issue
Block a user