Compare commits

...

2 Commits

Author SHA1 Message Date
2104eb861c release 1.4.01.2 2025-03-27 21:06:26 +07:00
0674552650 release 1.4.01.1 2025-03-27 18:50:08 +07:00
4 changed files with 11 additions and 12 deletions

View File

@ -6157,7 +6157,7 @@
"_priority": 1073741824,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 363.1807228915663,
"_orthoHeight": 381.2971342383107,
"_near": 1,
"_far": 2000,
"_color": {
@ -9633,7 +9633,7 @@
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 185.9389236634036,
"width": 185.9417589151045,
"height": 25.2
},
"_anchorPoint": {
@ -9666,7 +9666,7 @@
"_string": "Список оборудования",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 22.046875,
"_actualFontSize": 30.819140625000003,
"_fontSize": 17,
"_fontFamily": "Arial",
"_lineHeight": 20,
@ -10395,7 +10395,7 @@
"_string": "Список всех аварий",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 18.15625,
"_actualFontSize": 25.380468750000002,
"_fontSize": 14,
"_fontFamily": "Arial",
"_lineHeight": 16,
@ -10956,7 +10956,7 @@
"_string": "button",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 25.9375,
"_actualFontSize": 36.2578125,
"_fontSize": 20,
"_fontFamily": "Arial",
"_lineHeight": 40,
@ -11264,7 +11264,7 @@
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 131.328125,
"width": 131.29982762335703,
"height": 25.2
},
"_anchorPoint": {
@ -11297,7 +11297,7 @@
"_string": "ScrollView content",
"_horizontalAlign": 0,
"_verticalAlign": 0,
"_actualFontSize": 20.75,
"_actualFontSize": 29.00625,
"_fontSize": 16,
"_fontFamily": "Arial",
"_lineHeight": 20,
@ -12869,7 +12869,6 @@
},
"_enabled": true,
"__prefab": null,
"apiUrl": "http://localhost:3030/api/v2/sensors",
"_id": "fd9cjGJCJCmbVairIJtwxV"
},
{

View File

@ -7,8 +7,8 @@ const { ccclass, property } = _decorator;
export class EquipmentManager extends Component {
public static instance: EquipmentManager;
@property
public apiUrl: string = 'http://localhost:3030/api/v2/sensors';
public apiUrl: string = 'http://192.168.0.219:3030/api/v2/sensors';
private _dataList: apiSensors[] = [];
public totalCount: number = 0;

View File

@ -30,7 +30,7 @@ export class ErrorsStore {
// Асинхронный запрос ошибок с API
async fetchApiErrors(): Promise<void> {
try {
const response = await fetch("http://localhost:3030/api/v2/errors");
const response = await fetch("http://192.168.0.219:3030/api/v2/errors");
if (response.ok) {
const errors = await response.json() as ApiErrorsResponse;
this.apiErrors = errors;

View File

@ -30,7 +30,7 @@ export class SensorDetailStore extends Component {
this.currentSensorName = sensorName;
try {
const response = await fetch("http://localhost:3030/api/v2/sensor-details", {
const response = await fetch("http://192.168.0.219:3030/api/v2/sensor-details", {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ sensorName: sensorName })