@idmwx/idmui-gl4 2.1.2 → 2.1.4
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 +12 -10
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11995,7 +11995,7 @@ const om = {
|
|
|
11995
11995
|
},
|
|
11996
11996
|
currentTimestamp: {
|
|
11997
11997
|
handler() {
|
|
11998
|
-
this.
|
|
11998
|
+
this.currentDateTimeZ = M(this.currentTimestamp).utc().format("yyyy-MM-DD HH:00[Z]"), this.$emit("dateTime", this.currentDateTimeZ), this.$emit("currentTimestamp", this.currentTimestamp), this.currentDateTime = `${M.tz(this.currentTimestamp, this.timeZoneName).clone().format("yyyy-MM-DD : HH:00")}`;
|
|
11999
11999
|
},
|
|
12000
12000
|
immediate: !0
|
|
12001
12001
|
},
|
|
@@ -13440,15 +13440,13 @@ const um = {
|
|
|
13440
13440
|
((o = M(this.realTime)) == null ? void 0 : o.diff(t, "d", !0)) >= 0 ? await this.fetchForecastData(this.form) : await this.fetchHistoryData(this.form);
|
|
13441
13441
|
},
|
|
13442
13442
|
async fetchForecastData(t) {
|
|
13443
|
-
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.form.followId = t.followId, this.handleDrawInfoMarker([t.lng, t.lat]), console.log(this.followList);
|
|
13444
|
-
debugger;
|
|
13445
|
-
this.meteoData = [];
|
|
13443
|
+
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.form.followId = t.followId, this.handleDrawInfoMarker([t.lng, t.lat]), console.log(111, this.followList), this.meteoData = [];
|
|
13446
13444
|
const { weatherModels: e, marineModels: o } = To.autoPickMeteoModel(t.forecastModel);
|
|
13447
13445
|
let i = {
|
|
13448
13446
|
lat: t.lat,
|
|
13449
13447
|
lng: t.lng,
|
|
13450
13448
|
datetime: M(t.dateTime).utc().format(),
|
|
13451
|
-
forecastDays: t.day ??
|
|
13449
|
+
forecastDays: t.day ?? 3,
|
|
13452
13450
|
weatherModels: e,
|
|
13453
13451
|
marineModels: o
|
|
13454
13452
|
};
|
|
@@ -13463,21 +13461,25 @@ const um = {
|
|
|
13463
13461
|
});
|
|
13464
13462
|
},
|
|
13465
13463
|
async fetchHistoryData(t) {
|
|
13466
|
-
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.form.followId = t.followId, this.handleDrawInfoMarker([t.lng, t.lat]), this.meteoData = [];
|
|
13464
|
+
this.loading = !0, this.showMeteo = !0, this.form.lng = t.lng, this.form.lat = t.lat, this.form.followId = t.followId, this.handleDrawInfoMarker([t.lng, t.lat]), console.log(222, this.followList), this.meteoData = [];
|
|
13467
13465
|
const { weatherModels: e, marineModels: o } = To.autoPickMeteoModel(t.forecastModel), i = {
|
|
13468
13466
|
lat: t.lat,
|
|
13469
13467
|
lng: t.lng,
|
|
13470
13468
|
datetime: M(t.dateTime).utc().format(),
|
|
13471
|
-
forecastDays:
|
|
13469
|
+
forecastDays: 2,
|
|
13472
13470
|
pastDays: 1,
|
|
13473
13471
|
weatherModels: e,
|
|
13474
13472
|
marineModels: o
|
|
13475
|
-
}
|
|
13473
|
+
};
|
|
13474
|
+
await Ae.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, i, {
|
|
13476
13475
|
headers: {
|
|
13477
13476
|
Authorization: this.token || this.defaultMeteoToken
|
|
13478
13477
|
}
|
|
13479
|
-
})
|
|
13480
|
-
|
|
13478
|
+
}).then((a) => {
|
|
13479
|
+
(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;
|
|
13480
|
+
}).catch(() => {
|
|
13481
|
+
this.loading = !1;
|
|
13482
|
+
}), this.loading = !1;
|
|
13481
13483
|
},
|
|
13482
13484
|
initTableData(t) {
|
|
13483
13485
|
var o, i, a, r, l, m, c, f, d, b, v, L, k, P, y, B, D, T, z, w, C, _, R, F, V, X, Y, Q, $, J, se, le, pe, ie, ce, ue, me, he, O, te, be;
|