@@ -313,6 +335,14 @@ export default function TelemetryView({ idWell }) {
{options}
+
+ Статус:
+
+
diff --git a/src/services/api/models/StatWellDto.ts b/src/services/api/models/StatWellDto.ts
index 9e2353f..0ef8103 100644
--- a/src/services/api/models/StatWellDto.ts
+++ b/src/services/api/models/StatWellDto.ts
@@ -10,6 +10,7 @@ export type StatWellDto = {
id?: number;
caption?: string | null;
wellType?: string | null;
+ idState?: number;
state?: string | null;
lastTelemetryDate?: string;
sections?: Array | null;
diff --git a/src/services/api/models/WellDto.ts b/src/services/api/models/WellDto.ts
index c1ad790..ebc03bc 100644
--- a/src/services/api/models/WellDto.ts
+++ b/src/services/api/models/WellDto.ts
@@ -12,6 +12,7 @@ export type WellDto = {
latitude?: number | null;
longitude?: number | null;
wellType?: string | null;
+ idWellType?: number;
idState?: number;
lastTelemetryDate?: string;
telemetry?: TelemetryDto;
diff --git a/src/services/api/services/WellService.ts b/src/services/api/services/WellService.ts
index c5ff465..d71b14c 100644
--- a/src/services/api/services/WellService.ts
+++ b/src/services/api/services/WellService.ts
@@ -44,6 +44,25 @@ export class WellService {
return result.body;
}
+ /**
+ * Возвращает информацию о требуемой скважине
+ * @param idWell Id требуемой скважины
+ * @returns WellDto Success
+ * @throws ApiError
+ */
+ public static async get(
+ idWell?: number,
+ ): Promise {
+ const result = await __request({
+ method: 'GET',
+ path: `/api/well/getWell`,
+ query: {
+ 'idWell': idWell,
+ },
+ });
+ return result.body;
+ }
+
/**
* Возвращает список скважин, передающих телеметрию в данный момент
* @returns WellDto Success