@idmwx/idmui-gl4 1.6.1 → 1.6.2
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/index.js +17 -8
- package/dist/index.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1451,23 +1451,28 @@ const ui = {
|
|
|
1451
1451
|
this.$emit("close");
|
|
1452
1452
|
},
|
|
1453
1453
|
async fetchMeteoData() {
|
|
1454
|
-
var
|
|
1454
|
+
var i, a;
|
|
1455
1455
|
this.loading = !0, this.meteoData = [];
|
|
1456
1456
|
const { weatherModels: t, marineModels: e } = ao.autoPickMeteoModel(this.forecastModel);
|
|
1457
1457
|
let o = {
|
|
1458
|
-
lat: (
|
|
1459
|
-
lng: (
|
|
1458
|
+
lat: (i = this.port) == null ? void 0 : i.lat,
|
|
1459
|
+
lng: (a = this.port) == null ? void 0 : a.lng,
|
|
1460
1460
|
datetime: this.realTime,
|
|
1461
1461
|
pastDays: 1,
|
|
1462
1462
|
forecastDays: 4,
|
|
1463
1463
|
weatherModels: t,
|
|
1464
1464
|
marineModels: e
|
|
1465
|
-
}
|
|
1465
|
+
};
|
|
1466
|
+
await Se.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, o, {
|
|
1466
1467
|
headers: {
|
|
1467
1468
|
Authorization: this.token || this.defaultMeteoToken
|
|
1468
1469
|
}
|
|
1470
|
+
}).then((r) => {
|
|
1471
|
+
var s;
|
|
1472
|
+
(r == null ? void 0 : r.data.code) === 0 ? (this.meteoData = (s = r == null ? void 0 : r.data) == null ? void 0 : s.data, this.initTableData(this.meteoData), this.loading = !1) : this.loading = !1;
|
|
1473
|
+
}).catch(() => {
|
|
1474
|
+
this.loading = !1;
|
|
1469
1475
|
});
|
|
1470
|
-
(i == null ? void 0 : i.data.code) === 0 && (this.meteoData = (s = i == null ? void 0 : i.data) == null ? void 0 : s.data, this.initTableData(this.meteoData)), this.loading = !1;
|
|
1471
1476
|
},
|
|
1472
1477
|
initTableData(t) {
|
|
1473
1478
|
var e, o;
|
|
@@ -1924,7 +1929,7 @@ function yr(t, e, o, i, a, r) {
|
|
|
1924
1929
|
_: 1
|
|
1925
1930
|
});
|
|
1926
1931
|
}
|
|
1927
|
-
const lo = /* @__PURE__ */ q(ui, [["render", yr], ["__scopeId", "data-v-
|
|
1932
|
+
const lo = /* @__PURE__ */ q(ui, [["render", yr], ["__scopeId", "data-v-33d7d92f"]]);
|
|
1928
1933
|
const br = {
|
|
1929
1934
|
name: "IdmPort",
|
|
1930
1935
|
components: {
|
|
@@ -11251,12 +11256,16 @@ const tm = {
|
|
|
11251
11256
|
forecastDays: t.day ?? 7,
|
|
11252
11257
|
weatherModels: e,
|
|
11253
11258
|
marineModels: o
|
|
11254
|
-
}
|
|
11259
|
+
};
|
|
11260
|
+
await Se.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, i, {
|
|
11255
11261
|
headers: {
|
|
11256
11262
|
Authorization: this.token || this.defaultMeteoToken
|
|
11257
11263
|
}
|
|
11264
|
+
}).then((a) => {
|
|
11265
|
+
(a == null ? void 0 : a.data.code) === 0 ? (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.loading = !1) : this.loading = !1;
|
|
11266
|
+
}).catch(() => {
|
|
11267
|
+
this.loading = !1;
|
|
11258
11268
|
});
|
|
11259
|
-
(a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData)), this.loading = !1;
|
|
11260
11269
|
},
|
|
11261
11270
|
async fetchHistoryData(t) {
|
|
11262
11271
|
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
|