@idmwx/idmui-gl4 0.9.2 → 0.9.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 CHANGED
@@ -7883,14 +7883,6 @@ const vs = {
7883
7883
  return Intl.DateTimeFormat().resolvedOptions().timeZone || "Asia/Shanghai";
7884
7884
  }
7885
7885
  },
7886
- watch: {
7887
- dateTime: {
7888
- handler() {
7889
- this.handleSetDateTime(this.dateTime);
7890
- },
7891
- immediate: !0
7892
- }
7893
- },
7894
7886
  watch: {
7895
7887
  timeZone: {
7896
7888
  handler(t, e) {
@@ -8242,6 +8234,11 @@ const Cs = {
8242
8234
  }) : this.handleCloseForm();
8243
8235
  }
8244
8236
  },
8237
+ realTime: {
8238
+ handler() {
8239
+ this.realTime && (this.form.dateTime = this.realTime);
8240
+ }
8241
+ },
8245
8242
  forecastModel: {
8246
8243
  handler() {
8247
8244
  this.form.forecastModel = this.forecastModel;
@@ -8255,6 +8252,7 @@ const Cs = {
8255
8252
  }
8256
8253
  },
8257
8254
  mounted() {
8255
+ console.log(this.form.dateTime);
8258
8256
  },
8259
8257
  methods: {
8260
8258
  handleMenuToggle() {
@@ -8270,7 +8268,7 @@ const Cs = {
8270
8268
  lng: this.form.lng
8271
8269
  };
8272
8270
  const i = D();
8273
- ((o = D(this.realTime)) == null ? void 0 : o.diff(i, "d", !0)) >= 0 ? await this.fetchMeteoData(this.form) : await this.fetchHistoryData(this.form), this.initTableData(this.meteoData), this.handleRender();
8271
+ ((o = D(this.realTime)) == null ? void 0 : o.diff(i, "d", !0)) >= 0 ? await this.fetchMeteoData(this.form) : await this.fetchHistoryData(this.form);
8274
8272
  }
8275
8273
  });
8276
8274
  },
@@ -8308,7 +8306,7 @@ const Cs = {
8308
8306
  Authorization: this.token || this.defaultMeteoToken
8309
8307
  }
8310
8308
  });
8311
- (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data), this.loading = !1;
8309
+ (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.initTableData(this.meteoData), this.handleRender()), this.loading = !1;
8312
8310
  },
8313
8311
  async fetchHistoryData(t) {
8314
8312
  this.loading = !0, this.meteoData = [];
@@ -8325,7 +8323,7 @@ const Cs = {
8325
8323
  Authorization: this.token || this.defaultMeteoToken
8326
8324
  }
8327
8325
  });
8328
- (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data), this.loading = !1;
8326
+ (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.initTableData(this.meteoData), this.handleRender()), this.loading = !1;
8329
8327
  },
8330
8328
  initTableData(t) {
8331
8329
  var o, i, a, r, s, n, c, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve;
@@ -8423,9 +8421,10 @@ function Ws(t, e, o, i, a, r) {
8423
8421
  class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
8424
8422
  onClick: r.handleMenuToggle
8425
8423
  }), {
8426
- default: u(() => e[8] || (e[8] = [
8427
- l("i", { class: "iconfont icon-a-Spotweather text-h4" }, null, -1)
8428
- ])),
8424
+ default: u(() => [
8425
+ W(y(o.realTime) + " ", 1),
8426
+ e[8] || (e[8] = l("i", { class: "iconfont icon-a-Spotweather text-h4" }, null, -1))
8427
+ ]),
8429
8428
  _: 2,
8430
8429
  __: [8]
8431
8430
  }, 1040, ["class", "onClick"])
@@ -9862,7 +9861,6 @@ const sn = /* @__PURE__ */ Z(qs, [["render", ln]]), nn = {
9862
9861
  emits: [],
9863
9862
  data() {
9864
9863
  return {
9865
- realTime: void 0,
9866
9864
  weatherCheckList: [],
9867
9865
  otherCheckList: [],
9868
9866
  layerVersion: 0,
@@ -9903,7 +9901,6 @@ function mn(t, e, o, i, a, r) {
9903
9901
  token: o.token,
9904
9902
  "default-meteo-token": a.defaultMeteoToken,
9905
9903
  map: o.map,
9906
- "real-time": a.realTime,
9907
9904
  "before-layer": "empty-layer-1",
9908
9905
  gateway: a.gateway,
9909
9906
  "assist-gateway": a.assistGateway,
@@ -9913,12 +9910,11 @@ function mn(t, e, o, i, a, r) {
9913
9910
  onOtherCheckList: e[0] || (e[0] = (f) => {
9914
9911
  a.otherCheckList = f, a.layerVersion = a.layerVersion + 1;
9915
9912
  })
9916
- }), null, 16, ["token", "default-meteo-token", "map", "real-time", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
9913
+ }), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
9917
9914
  h(n, B({
9918
9915
  ref: "idmWeatherLayers",
9919
9916
  map: o.map,
9920
9917
  "before-layer": "empty-layer-2",
9921
- "real-time": a.realTime,
9922
9918
  token: o.token,
9923
9919
  "default-meteo-token": a.defaultMeteoToken,
9924
9920
  gateway: a.gateway,
@@ -9932,19 +9928,18 @@ function mn(t, e, o, i, a, r) {
9932
9928
  onWeatherCheckList: e[2] || (e[2] = (f) => {
9933
9929
  a.weatherCheckList = f, a.layerVersion = a.layerVersion + 1;
9934
9930
  })
9935
- }), null, 16, ["map", "real-time", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
9931
+ }), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
9936
9932
  h(c, B({
9937
9933
  map: o.map,
9938
9934
  token: o.token,
9939
9935
  "default-meteo-token": a.defaultMeteoToken,
9940
9936
  tropicals: a.tropicals,
9941
9937
  "before-layer": "empty-layer-3",
9942
- "real-time": a.realTime,
9943
9938
  gateway: a.gateway,
9944
9939
  "assist-gateway": a.assistGateway,
9945
9940
  "forecast-model": o.forecastModel,
9946
9941
  "map-feather": o.mapFeather
9947
- }, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "real-time", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
9942
+ }, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
9948
9943
  h(g, B({
9949
9944
  map: o.map,
9950
9945
  "map-feather": o.mapFeather
@@ -9952,20 +9947,17 @@ function mn(t, e, o, i, a, r) {
9952
9947
  h(p, B({
9953
9948
  ref: "idmSpot",
9954
9949
  map: o.map,
9955
- "real-time": a.realTime,
9956
9950
  token: o.token,
9957
9951
  gateway: a.gateway,
9958
9952
  "forecast-model": o.forecastModel,
9959
9953
  "map-feather": o.mapFeather
9960
- }, t.$attrs), null, 16, ["map", "real-time", "token", "gateway", "forecast-model", "map-feather"]),
9954
+ }, t.$attrs), null, 16, ["map", "token", "gateway", "forecast-model", "map-feather"]),
9961
9955
  h(d, B({
9962
9956
  ref: "idmBottomBar",
9963
9957
  "forecast-model": o.forecastModel,
9964
9958
  "weather-check-list": a.weatherCheckList,
9965
9959
  "map-feather": o.mapFeather
9966
- }, t.$attrs, {
9967
- onRealTime: e[3] || (e[3] = (f) => a.realTime = f)
9968
- }), null, 16, ["forecast-model", "weather-check-list", "map-feather"])
9960
+ }, t.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather"])
9969
9961
  ], 512);
9970
9962
  }
9971
9963
  const hn = /* @__PURE__ */ Z(nn, [["render", mn]]);