nxd-plugin 1.8.51 → 1.8.53

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.
Files changed (44) hide show
  1. package/dist/chunks/GridData-D930GI5r.mjs +2 -0
  2. package/dist/chunks/YCServiceSummary-5zaYlO27.mjs +2 -0
  3. package/dist/chunks/{component-Forecast72h-CD6eT1xe.mjs → component-Forecast72h-PgbN_y9N.mjs} +170 -161
  4. package/dist/chunks/component-GridData-BK4jKmO-.mjs +399 -0
  5. package/dist/chunks/{component-HdCameraList-DuC-_0uH.mjs → component-HdCameraList-Ch0ojKDf.mjs} +1 -1
  6. package/dist/chunks/{component-HdFarmStation-BtYLSMAY.mjs → component-HdFarmStation-BV_kmLzl.mjs} +1 -1
  7. package/dist/chunks/{component-HdMajorActivity-CQ76SEKD.mjs → component-HdMajorActivity-xlp8Zrq1.mjs} +193 -186
  8. package/dist/chunks/{component-HdObservation-DmRN3dBq.mjs → component-HdObservation-DrPL7XVh.mjs} +1 -1
  9. package/dist/chunks/{component-HdPreSituation-KMOE4Mt_.mjs → component-HdPreSituation-D0KUf8I4.mjs} +1 -1
  10. package/dist/chunks/{component-HdRadarList-Cx_cRpjb.mjs → component-HdRadarList-CspWsOEW.mjs} +1 -1
  11. package/dist/chunks/{component-HdRadarTimeLine-CwdMMlPK.mjs → component-HdRadarTimeLine-BvE4Ny20.mjs} +3 -3
  12. package/dist/chunks/{component-HdRisk-Cx_Wuyuy.mjs → component-HdRisk-qQ1jbMi4.mjs} +1 -1
  13. package/dist/chunks/{component-HdServiceMarterial-D4nik4h0.mjs → component-HdServiceMarterial-DAf5Wr6D.mjs} +1 -1
  14. package/dist/chunks/{component-HdServiceRequirements-CrpxYdNK.mjs → component-HdServiceRequirements-CycjsvZT.mjs} +1 -1
  15. package/dist/chunks/{component-HdSoil-eQTGGIkq.mjs → component-HdSoil-BKDaVRnf.mjs} +1 -1
  16. package/dist/chunks/{component-HdStationTem-BCls8KKc.mjs → component-HdStationTem-Cb2YV_fB.mjs} +1 -1
  17. package/dist/chunks/{component-HdSuggestion-BnGlQLfg.mjs → component-HdSuggestion-fajQUBiB.mjs} +1 -1
  18. package/dist/chunks/{component-HdThreeWeatherTrend-D_dPqael.mjs → component-HdThreeWeatherTrend-CeAHvlR3.mjs} +1 -1
  19. package/dist/chunks/{component-HdWaveForcast-B-RPD_5H.mjs → component-HdWaveForcast-DRuTytq8.mjs} +1 -1
  20. package/dist/chunks/{component-HighwayWeatherForecast-BVj7aWS1.mjs → component-HighwayWeatherForecast-CUk0YFO6.mjs} +2 -2
  21. package/dist/chunks/{component-PrecipitationRanking-Ct4OY0FJ.mjs → component-PrecipitationRanking-Nq_SI95N.mjs} +1 -1
  22. package/dist/chunks/{component-StationDialog-_pkrpDnI.mjs → component-StationDialog-B-6V3oc5.mjs} +1 -1
  23. package/dist/chunks/{component-StationList-D4XTo6r2.mjs → component-StationList-qtk1j-fG.mjs} +1 -1
  24. package/dist/chunks/{component-TimeBasedForecast-4ZZ7ZnCH.mjs → component-TimeBasedForecast-DdTGq6GE.mjs} +1 -1
  25. package/dist/chunks/component-WeatherForecast-g9IL5upq.mjs +219 -0
  26. package/dist/chunks/{component-YCDataService-CniJWhHF.mjs → component-YCDataService-DKvMM7rM.mjs} +43 -35
  27. package/dist/chunks/{component-YCHome-BNYalrzu.mjs → component-YCHome-nJZqqhcF.mjs} +1 -1
  28. package/dist/components/HdMajorActivity/HdMajorActivity.vue.d.ts +6 -4
  29. package/dist/components/HdRadarTimeLine/HdRadarTimeLine.vue.d.ts +2 -2
  30. package/dist/components/HdStationTem/HdStationTem.vue.d.ts +2 -2
  31. package/dist/index.d.ts +2 -2
  32. package/dist/nxd-plugin.mjs +27 -28
  33. package/dist/styles/component-Forecast72h.css +1 -1
  34. package/dist/styles/component-GridData.css +1 -1
  35. package/dist/styles/component-HdMajorActivity.css +1 -1
  36. package/dist/styles/component-HdRadarTimeLine.css +1 -1
  37. package/dist/styles/component-WeatherForecast.css +1 -1
  38. package/dist/styles/component-YCDataService.css +1 -1
  39. package/dist/styles/component-YCLoginNew.css +1 -1
  40. package/package.json +1 -1
  41. package/dist/chunks/YCServiceSummary-V18ZZfMw.mjs +0 -2
  42. package/dist/chunks/component-GridData-o7hipw0h.mjs +0 -756
  43. package/dist/chunks/component-WeatherForecast-DqdD9JUX.mjs +0 -208
  44. /package/dist/chunks/{component-YCServiceSummary-B-ixNRkt.mjs → component-YCServiceSummary-BKkRTMKf.mjs} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { g as e, p as t } from "./component-Agent-DwXtdLhK.mjs";
2
- import "./component-Forecast72h-CD6eT1xe.mjs";
2
+ import "./component-Forecast72h-PgbN_y9N.mjs";
3
3
  import { ElCarousel as n, ElCarouselItem as r, ElDatePicker as i, ElImageViewer as ee, ElLoadingDirective as te } from "element-plus/es";
4
- import { Fragment as a, Teleport as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, onMounted as ne, openBlock as g, ref as _, renderList as v, toDisplayString as y, vShow as b, watch as x, withCtx as re, withDirectives as S } from "vue";
4
+ import { Fragment as a, Teleport as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, getCurrentInstance as ne, nextTick as m, normalizeClass as h, onMounted as g, openBlock as _, ref as v, renderList as y, toDisplayString as b, vShow as x, watch as S, withCtx as re, withDirectives as C } from "vue";
5
5
  import * as ie from "echarts";
6
6
  import "element-plus/dist/index.css";
7
7
  //#region src/assets/img/hd/wwindDirection.png
@@ -62,20 +62,21 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
62
62
  },
63
63
  emits: [
64
64
  "close",
65
- "toComponent",
66
65
  "addMarker",
67
66
  "clearMarker",
68
67
  "addPolygon",
69
68
  "removePolygon",
69
+ "addLine",
70
+ "removeLine",
70
71
  "addLayer",
71
72
  "removeLayer",
72
- "mapView"
73
+ "toMapView"
73
74
  ],
74
75
  setup(t, { expose: p, emit: ut }) {
75
- let dt = (/* @__PURE__ */ new Date()).getFullYear(), ft = dt - 20, pt = dt + 10, C = t, w = ut, mt = {
76
+ let w = ne()?.appContext.config.globalProperties.$bus, T = (/* @__PURE__ */ new Date()).getFullYear(), dt = T - 20, ft = T + 10, E = t, D = ut, pt = {
76
77
  青岛国际啤酒节: "重大活动保障-啤酒节",
77
78
  沙滩马拉松: "重大活动保障-马拉松"
78
- }, T = _(!1), E = _([]), D = _(null), O = _(0), k = _(!1), ht = _(0), A = _(!1), j = _(null), M = _(!1), N = _(!1), P = _({}), F = _([]), I = _([]), L = _("chart"), R = _("temperature"), z = _(null), B = null, V = [
79
+ }, O = v(!1), k = v([]), A = v(null), j = v(0), M = v(!1), mt = v(0), N = v(!1), P = v(null), F = v(!1), I = v(!1), L = v({}), R = v([]), z = v([]), B = v("chart"), V = v("temperature"), H = v(null), U = null, ht = [
79
80
  {
80
81
  key: "temperature",
81
82
  label: "温度",
@@ -132,36 +133,36 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
132
133
  forecastColor: "#5B8FF9"
133
134
  }
134
135
  ], gt = s(() => {
135
- let e = P.value, t = K(e.humidity), n = K(e.visibility), r = K(e.windSpeed);
136
+ let e = L.value, t = J(e.humidity), n = J(e.visibility), r = J(e.windSpeed);
136
137
  return n !== null && n < 1e3 && t !== null && t > 90 ? "雾" : n !== null && n < 4e3 ? "霾" : t !== null && t >= 80 ? "阴" : t !== null && t <= 30 ? "晴" : r !== null && r >= 10.8 ? "大风" : "多云";
137
- }), H = s(() => D.value ? E.value.filter((e) => {
138
+ }), W = s(() => A.value ? k.value.filter((e) => {
138
139
  let t = e.year || St(e.start_time);
139
- return String(t) === String(D.value);
140
- }) : E.value), U = s(() => H.value[O.value] || null), _t = s(() => G(U.value?.cover_image)), W = s(() => {
141
- let e = U.value?.images;
142
- return e ? e.split(",").map((e) => G(e.trim())).filter(Boolean) : [];
143
- }), vt = s(() => G(j.value?.cover_image)), yt = s(() => F.value.map((e) => ({
140
+ return String(t) === String(A.value);
141
+ }) : k.value), G = s(() => W.value[j.value] || null), _t = s(() => q(G.value?.cover_image)), K = s(() => {
142
+ let e = G.value?.images;
143
+ return e ? e.split(",").map((e) => q(e.trim())).filter(Boolean) : [];
144
+ }), vt = s(() => q(P.value?.cover_image)), yt = s(() => R.value.map((e) => ({
144
145
  ...e,
145
- time: Y(e.time)
146
+ time: Z(e.time)
146
147
  }))), bt = (e) => {
147
148
  let t = e.getFullYear();
148
- return t < ft || t > pt;
149
+ return t < dt || t > ft;
149
150
  }, xt = () => {
150
- O.value = 0, Jt();
151
+ j.value = 0, Yt();
151
152
  }, St = (e) => {
152
153
  if (!e) return null;
153
154
  let t = new Date(e);
154
155
  return isNaN(t.getTime()) ? null : t.getFullYear();
155
- }, G = (e) => e ? e.startsWith("http://") || e.startsWith("https://") ? e : `${C.imgBaseUrl.replace(/\/$/, "")}${e.startsWith("/") ? e : `/${e}`}` : "", Ct = (e) => {
156
+ }, q = (e) => e ? e.startsWith("http://") || e.startsWith("https://") ? e : `${E.imgBaseUrl.replace(/\/$/, "")}${e.startsWith("/") ? e : `/${e}`}` : "", Ct = (e) => {
156
157
  if (e == null || e === "") return !0;
157
158
  let t = Number(e);
158
159
  return Number.isFinite(t) ? t === -1 || t === 999 || t === 9999 : !1;
159
- }, K = (e) => {
160
+ }, J = (e) => {
160
161
  if (Ct(e)) return null;
161
162
  let t = Number(e);
162
163
  return Number.isFinite(t) ? t : null;
163
- }, q = (e) => Ct(e) ? "--" : String(e), J = (e) => {
164
- let t = K(e);
164
+ }, Y = (e) => Ct(e) ? "--" : String(e), X = (e) => {
165
+ let t = J(e);
165
166
  return t === null ? "--" : [
166
167
  "北风",
167
168
  "东北风",
@@ -172,11 +173,11 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
172
173
  "西风",
173
174
  "西北风"
174
175
  ][Math.round((t % 360 + 360) % 360 / 45) % 8];
175
- }, Y = (e) => {
176
+ }, Z = (e) => {
176
177
  if (!e) return "--";
177
178
  let t = new Date(e);
178
- return isNaN(t.getTime()) ? e : `${t.getFullYear()}-${X(t.getMonth() + 1)}-${X(t.getDate())} ${X(t.getHours())}:00`;
179
- }, X = (e) => e < 10 ? `0${e}` : `${e}`, wt = (e) => `${e.start_time ? e.start_time.split(" ")[0] : "--"} 至 ${e.end_time ? e.end_time.split(" ")[0] : "--"}`, Tt = (e) => {
179
+ return isNaN(t.getTime()) ? e : `${Q(t.getMonth() + 1)}-${Q(t.getDate())} ${Q(t.getHours())}时`;
180
+ }, Q = (e) => e < 10 ? `0${e}` : `${e}`, wt = (e) => `${e.start_time ? e.start_time.split(" ")[0] : "--"} 至 ${e.end_time ? e.end_time.split(" ")[0] : "--"}`, Tt = (e) => {
180
181
  if (e.status === 0) return "未开始";
181
182
  if (e.status === 1) return "进行中";
182
183
  if (e.status === 2) return "已结束";
@@ -186,17 +187,17 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
186
187
  let t = Tt(e);
187
188
  return t === "未开始" ? "HdMajorActivity-status--pending" : t === "进行中" ? "HdMajorActivity-status--active" : "HdMajorActivity-status--ended";
188
189
  }, Dt = () => {
189
- O.value > 0 && O.value--;
190
+ j.value > 0 && j.value--;
190
191
  }, Ot = () => {
191
- O.value < H.value.length - 1 && O.value++;
192
+ j.value < W.value.length - 1 && j.value++;
192
193
  }, kt = (e) => {
193
- ht.value = e, k.value = !0;
194
+ mt.value = e, M.value = !0;
194
195
  }, At = () => {
195
- k.value = !1;
196
+ M.value = !1;
196
197
  }, jt = () => {
197
- w("close", "HdMajorActivity");
198
+ D("close", "HdMajorActivity");
198
199
  }, Mt = () => {
199
- w("clearMarker", "HdMajorActivity"), w("removePolygon", "HdMajorActivity"), w("removeLayer", { name: "HdMajorActivity" });
200
+ D("clearMarker", "HdMajorActivity"), D("removePolygon", "HdMajorActivity"), D("removeLine", "HdMajorActivity"), D("removeLayer", { name: "HdMajorActivity" });
200
201
  }, Nt = (e) => {
201
202
  if (!e) return [];
202
203
  if (Array.isArray(e)) return e;
@@ -208,15 +209,15 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
208
209
  }
209
210
  return [];
210
211
  }, Pt = () => {
211
- let e = U.value;
212
+ let e = G.value;
212
213
  if (!e) {
213
214
  Mt();
214
215
  return;
215
216
  }
216
- Mt(), e.layer_id && C.layerBaseUrl && w("addLayer", {
217
+ Mt(), e.layer_id && E.layerBaseUrl && D("addLayer", {
217
218
  name: "HdMajorActivity",
218
219
  oneLayer: {
219
- mapUrl: C.layerBaseUrl,
220
+ mapUrl: E.layerBaseUrl,
220
221
  type: e.layer_id,
221
222
  opacity: 1
222
223
  },
@@ -224,7 +225,19 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
224
225
  zIndex: 10
225
226
  });
226
227
  let t = Nt(e.area_coordinates);
227
- t.length >= 3 && !e.layer_id && w("addPolygon", {
228
+ t.length >= 2 && e.name?.includes("马拉松") && !e.layer_id ? D("addLine", {
229
+ removeLine: "HdMajorActivity",
230
+ mapLine: { lineArr: [{
231
+ lineJson: t.map(([e, t]) => ({
232
+ lng: e,
233
+ lat: t
234
+ })),
235
+ color: "#FFD700",
236
+ weight: 4,
237
+ otherData: { lineId: "HdMajorActivity" },
238
+ zIndex: 10
239
+ }] }
240
+ }) : t.length >= 3 && !e.layer_id && D("addPolygon", {
228
241
  removePolygon: "HdMajorActivity",
229
242
  polygonArr: [{
230
243
  polygonJson: t.map(([e, t]) => ({
@@ -242,8 +255,8 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
242
255
  });
243
256
  let n = Number(e.center_latitude), r = Number(e.center_longitude);
244
257
  if (Number.isFinite(n) && Number.isFinite(r)) {
245
- let t = e.major_icon ? e.major_icon.trim().startsWith("<") ? e.major_icon : `<img src="${G(e.major_icon)}" width="24" height="24" style="display:block;" alt="" />` : "\n <svg viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"#05ddfa\" stroke=\"#fff\" stroke-width=\"1.5\">\n <path d=\"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z\"/>\n <circle cx=\"12\" cy=\"9\" r=\"2.5\" fill=\"#fff\"/>\n </svg>\n ";
246
- w("addMarker", {
258
+ let t = e.major_icon ? e.major_icon.trim().startsWith("<") ? e.major_icon : `<img src="${q(e.major_icon)}" width="24" height="24" style="display:block;" alt="" />` : "\n <svg viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"#05ddfa\" stroke=\"#fff\" stroke-width=\"1.5\">\n <path d=\"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z\"/>\n <circle cx=\"12\" cy=\"9\" r=\"2.5\" fill=\"#fff\"/>\n </svg>\n ";
259
+ D("addMarker", {
247
260
  mapMarker: {
248
261
  clickOpen: !0,
249
262
  spotObject: [{
@@ -269,41 +282,39 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
269
282
  drawArrObj: []
270
283
  },
271
284
  removeMarker: "HdMajorActivity"
272
- }), w("mapView", {
285
+ }), D("toMapView", {
273
286
  lng: r,
274
287
  lat: n,
275
288
  zoom: 12
276
289
  });
277
290
  }
278
291
  }, Ft = (e) => {
279
- j.value = e, A.value = !0, L.value = "chart", I.value = [e.start_time ? e.start_time.split(" ")[0] : "", e.end_time ? e.end_time.split(" ")[0] : ""], Vt(e), Ht(e);
292
+ P.value = e, N.value = !0, B.value = "chart", z.value = [e.start_time ? e.start_time.split(" ")[0] : "", e.end_time ? e.end_time.split(" ")[0] : ""], Vt(e);
280
293
  }, It = () => {
281
- A.value = !1, j.value = null, B &&= (B.dispose(), null);
294
+ N.value = !1, P.value = null, U &&= (U.dispose(), null);
282
295
  }, Lt = (e) => {
283
- if (!e) return {};
284
- let t = Array.isArray(e) ? e[0] : e;
285
- if (!t || typeof t != "object") return {};
286
- let n = K(t.win_d_s_max);
296
+ if (!e.length) return {};
297
+ let t = e[e.length - 1], n = e.map((e) => J(e.temp)).filter((e) => e !== null);
287
298
  return {
288
- temp: t.tem,
289
- maxTemp: t.tem_max,
290
- minTemp: t.tem_min,
291
- windSpeed: t.win_s_inst_max,
292
- windDirectionAngle: t.win_d_s_max,
293
- windDirection: n === null ? "--" : J(n),
294
- pressure: t.prs,
295
- humidity: t.rhu_min,
296
- visibility: t.vis_min,
297
- updateTime: t.datetime_bj
299
+ temp: t.temp,
300
+ maxTemp: n.length ? Math.max(...n) : void 0,
301
+ minTemp: n.length ? Math.min(...n) : void 0,
302
+ windSpeed: t.windSpeed,
303
+ windDirection: t.windDirection,
304
+ windDirectionAngle: t.windDirectionAngle,
305
+ pressure: t.pressure,
306
+ humidity: t.humidity,
307
+ visibility: t.visibility,
308
+ updateTime: t.time
298
309
  };
299
310
  }, Rt = (e) => {
300
- let t = K(e.win_d_s_max);
311
+ let t = J(e.win_d_s_max);
301
312
  return {
302
313
  time: e.datetime_bj,
303
314
  temp: e.tem,
304
315
  windSpeed: e.win_s_inst_max,
305
316
  windDirectionAngle: e.win_d_s_max,
306
- windDirection: t === null ? "--" : J(t),
317
+ windDirection: t === null ? "--" : X(t),
307
318
  rain: null,
308
319
  humidity: e.rhu_min,
309
320
  pressure: e.prs,
@@ -311,13 +322,13 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
311
322
  type: "real"
312
323
  };
313
324
  }, zt = (e) => {
314
- let t = K(e.eda10_dir);
325
+ let t = J(e.eda10_dir);
315
326
  return {
316
327
  time: e.f_time,
317
328
  temp: e.tmp,
318
329
  windSpeed: e.eda10,
319
330
  windDirectionAngle: e.eda10_dir,
320
- windDirection: t === null ? "--" : J(t),
331
+ windDirection: t === null ? "--" : X(t),
321
332
  rain: e.er01,
322
333
  humidity: e.erh,
323
334
  pressure: null,
@@ -330,58 +341,35 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
330
341
  let n = Array.isArray(t.situationData) ? t.situationData : [], r = Array.isArray(t.forecastData) ? t.forecastData : [];
331
342
  return [...n.map(Rt), ...r.map(zt)].sort((e, t) => new Date(e.time).getTime() - new Date(t.time).getTime());
332
343
  }, Vt = async (t) => {
333
- let n = Q("realTime");
334
- if (!(!n || !t.station_id)) {
335
- M.value = !0;
336
- try {
337
- P.value = Lt($(await e({
338
- id: n.id,
339
- baseHttp: C.baseHttp,
340
- reqType: n.reqType,
341
- variables: {
342
- [C.stationField]: t.station_id,
343
- [C.timeStartField]: t.start_time,
344
- [C.timeEndField]: t.end_time
345
- },
346
- isFormData: n.isFormData,
347
- appKey: C.appKey,
348
- appSalt: C.appSalt
349
- })));
350
- } catch (e) {
351
- console.error("HdMajorActivity 实况数据加载失败", e);
352
- }
353
- M.value = !1;
354
- }
355
- }, Ht = async (t) => {
356
- let n = Q("timeSeries");
344
+ let n = Wt("timeSeries");
357
345
  if (!(!n || !t.station_id)) {
358
- N.value = !0;
346
+ I.value = !0, F.value = !0;
359
347
  try {
360
- F.value = Bt($(await e({
348
+ R.value = Bt(Gt(await e({
361
349
  id: n.id,
362
- baseHttp: C.baseHttp,
350
+ baseHttp: E.baseHttp,
363
351
  reqType: n.reqType,
364
352
  variables: {
365
- [C.stationField]: t.station_id,
366
- [C.timeStartField]: t.start_time,
367
- [C.timeEndField]: t.end_time
353
+ [E.stationField]: t.station_id,
354
+ [E.timeStartField]: t.start_time,
355
+ [E.timeEndField]: t.end_time
368
356
  },
369
357
  isFormData: n.isFormData,
370
- appKey: C.appKey,
371
- appSalt: C.appSalt
372
- }))), N.value = !1, await m(), Z();
358
+ appKey: E.appKey,
359
+ appSalt: E.appSalt
360
+ }))), L.value = Lt(R.value), I.value = !1, F.value = !1, await m(), $();
373
361
  } catch (e) {
374
- console.error("HdMajorActivity 时序数据加载失败", e), N.value = !1;
362
+ console.error("HdMajorActivity 时序数据加载失败", e), I.value = !1, F.value = !1;
375
363
  }
376
364
  }
377
- }, Z = () => {
378
- if (!z.value) return;
379
- B &&= (B.dispose(), null);
380
- let e = F.value;
365
+ }, $ = () => {
366
+ if (!H.value) return;
367
+ U &&= (U.dispose(), null);
368
+ let e = R.value;
381
369
  if (!e.length) return;
382
- let t = V.find((e) => e.key === R.value);
370
+ let t = ht.find((e) => e.key === V.value);
383
371
  if (!t) return;
384
- let n = e.filter((e) => e.type === "real"), r = e.filter((e) => e.type === "forecast"), i = Array.from(new Set([...n, ...r].map((e) => Y(e.time)))), ee = new Map(n.map((e) => [Y(e.time), K(e[t.valueField])])), te = new Map(r.map((e) => [Y(e.time), K(e[t.valueField])])), a = i.map((e) => ee.get(e) ?? null), o = i.map((e) => te.get(e) ?? null), s = t.key === "wind", c = `image://${ae}`, l = new Map(n.map((e) => [Y(e.time), K(e.windDirectionAngle)])), u = new Map(r.map((e) => [Y(e.time), K(e.windDirectionAngle)])), d = (e, t, n) => n ? i.map((n, r) => {
372
+ let n = e.filter((e) => e.type === "real"), r = e.filter((e) => e.type === "forecast"), i = Array.from(new Set([...n, ...r].map((e) => Z(e.time)))), ee = new Map(n.map((e) => [Z(e.time), J(e[t.valueField])])), te = new Map(r.map((e) => [Z(e.time), J(e[t.valueField])])), a = i.map((e) => ee.get(e) ?? null), o = i.map((e) => te.get(e) ?? null), s = t.key === "wind", c = `image://${ae}`, l = new Map(n.map((e) => [Z(e.time), J(e.windDirectionAngle)])), u = new Map(r.map((e) => [Z(e.time), J(e.windDirectionAngle)])), d = (e, t, n) => n ? i.map((n, r) => {
385
373
  let i = t.get(n);
386
374
  return {
387
375
  value: e[r],
@@ -390,7 +378,7 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
390
378
  symbolRotate: i == null ? 0 : -i
391
379
  };
392
380
  }) : e;
393
- B = ie.init(z.value);
381
+ U = ie.init(H.value);
394
382
  let f = {
395
383
  tooltip: {
396
384
  trigger: "axis",
@@ -399,7 +387,7 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
399
387
  return n.forEach((e) => {
400
388
  let n = e.value === null || e.value === void 0 ? "--" : e.value;
401
389
  if (r += `<div>${e.marker} ${e.seriesName}:${n}${t.unit}</div>`, s) {
402
- let t = (e.seriesName === "实况" ? l : u).get(i[e.dataIndex]), n = t == null ? "--" : J(t);
390
+ let t = (e.seriesName === "实况" ? l : u).get(i[e.dataIndex]), n = t == null ? "--" : X(t);
403
391
  r += `<div style="padding-left:16px;">风向:${n}</div>`;
404
392
  }
405
393
  }), r;
@@ -407,12 +395,15 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
407
395
  },
408
396
  legend: {
409
397
  data: ["实况", "预报"],
410
- textStyle: { color: "#fff" }
398
+ textStyle: { color: "#fff" },
399
+ top: 0,
400
+ right: 8
411
401
  },
412
402
  grid: {
413
- left: "3%",
414
- right: "4%",
415
- bottom: "3%",
403
+ left: 48,
404
+ right: 24,
405
+ bottom: 10,
406
+ top: 36,
416
407
  containLabel: !0
417
408
  },
418
409
  xAxis: {
@@ -427,6 +418,16 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
427
418
  yAxis: {
428
419
  type: "value",
429
420
  name: t.unit,
421
+ nameGap: 10,
422
+ nameTextStyle: {
423
+ color: "rgba(255,255,255,0.7)",
424
+ padding: [
425
+ 0,
426
+ 0,
427
+ 0,
428
+ 8
429
+ ]
430
+ },
430
431
  axisLine: { lineStyle: { color: "rgba(255,255,255,0.4)" } },
431
432
  axisLabel: { color: "rgba(255,255,255,0.7)" },
432
433
  splitLine: { show: !1 }
@@ -462,20 +463,20 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
462
463
  } : {}
463
464
  }]
464
465
  };
465
- B.setOption(f), m(() => setTimeout(() => B?.resize(), 80));
466
- }, Ut = !1, Wt = () => {
467
- Ut ||= (document.addEventListener("click", (e) => {
466
+ U.setOption(f), m(() => setTimeout(() => U?.resize(), 80));
467
+ }, Ht = !1, Ut = () => {
468
+ Ht ||= (document.addEventListener("click", (e) => {
468
469
  let t = e.target.closest(".hd-major-marker");
469
470
  if (!t) return;
470
471
  e.stopPropagation();
471
- let n = t.getAttribute("data-markerId")?.replace("major-", "") || "", r = E.value.find((e) => String(e.id) === String(n));
472
+ let n = t.getAttribute("data-markerId")?.replace("major-", "") || "", r = k.value.find((e) => String(e.id) === String(n));
472
473
  r && Ft(r);
473
474
  }), !0);
474
- }, Q = (e) => {
475
- let t = C.ids[e];
475
+ }, Wt = (e) => {
476
+ let t = E.ids[e];
476
477
  return t?.id ? t : null;
477
- }, $ = (e) => e ? e.data === void 0 ? e.result === void 0 ? e : e.result : e.data?.result?.output === void 0 ? e.data?.result === void 0 ? e.data : e.data.result : e.data.result.output : null, Gt = () => D.value ? { [C.yearField]: Number(D.value) } : {}, Kt = () => {
478
- E.value = [{
478
+ }, Gt = (e) => e ? e.data === void 0 ? e.result === void 0 ? e : e.result : e.data?.result?.output === void 0 ? e.data?.result === void 0 ? e.data : e.data.result : e.data.result.output : null, Kt = () => A.value ? { [E.yearField]: Number(A.value) } : {}, qt = () => {
479
+ k.value = [{
479
480
  id: 1,
480
481
  name: "2018上合组织青岛峰会",
481
482
  location: "青岛国际会议中心",
@@ -507,48 +508,54 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
507
508
  center_longitude: 120.1725,
508
509
  station_id: "54943"
509
510
  }];
510
- }, qt = async () => {
511
- let t = Q("data");
511
+ }, Jt = async () => {
512
+ let t = Wt("data");
512
513
  if (!t) {
513
514
  console.warn("HdMajorActivity 缺少工作流配置");
514
515
  return;
515
516
  }
516
517
  try {
517
- let n = $(await e({
518
+ let n = Gt(await e({
518
519
  id: t.id,
519
- baseHttp: C.baseHttp,
520
+ baseHttp: E.baseHttp,
520
521
  reqType: t.reqType,
521
- variables: Gt(),
522
+ variables: Kt(),
522
523
  isFormData: t.isFormData,
523
- appKey: C.appKey,
524
- appSalt: C.appSalt
524
+ appKey: E.appKey,
525
+ appSalt: E.appSalt
525
526
  }));
526
- Array.isArray(n) ? E.value = n : n && Array.isArray(n.list) ? E.value = n.list : E.value = [];
527
+ Array.isArray(n) ? k.value = n : n && Array.isArray(n.list) ? k.value = n.list : k.value = [];
527
528
  } catch (e) {
528
529
  console.error("HdMajorActivity 数据加载失败", e);
529
530
  }
530
- }, Jt = async () => {
531
- T.value = !0, C.mock ? Kt() : await qt(), T.value = !1, Wt();
531
+ }, Yt = async () => {
532
+ O.value = !0, E.mock ? qt() : await Jt(), O.value = !1, Ut();
532
533
  };
533
- return ne(() => {
534
- Jt();
535
- }), x(U, () => {
534
+ return g(() => {
535
+ Yt();
536
+ }), S(G, () => {
536
537
  Pt();
537
- }, { immediate: !0 }), x(U, (e) => {
538
- let t = e?.name ? mt[e.name] : "";
539
- t && w("toComponent", {
538
+ }, { immediate: !0 }), S(G, (e) => {
539
+ let t = e?.name ? pt[e.name] : "";
540
+ t && w?.emit("toComponent", {
540
541
  componentName: "HdServiceMarterial",
541
542
  categoryName: t
543
+ }), e?.station_id && w?.emit("toComponent", {
544
+ componentName: "Forecast72h",
545
+ payload: { stationId: e.station_id }
546
+ }), e?.station_id && w?.emit("toComponent", {
547
+ componentName: "WeatherForecast",
548
+ payload: { stationId: e.station_id }
542
549
  });
543
- }, { immediate: !0 }), x(L, (e) => {
544
- e === "chart" && m(() => Z());
545
- }), x(R, () => {
546
- L.value === "chart" && m(() => Z());
547
- }), x(A, (e) => {
548
- e && L.value === "chart" && m(() => setTimeout(Z, 100));
550
+ }, { immediate: !0 }), S(B, (e) => {
551
+ e === "chart" && m(() => $());
552
+ }), S(V, () => {
553
+ B.value === "chart" && m(() => $());
554
+ }), S(N, (e) => {
555
+ e && B.value === "chart" && m(() => setTimeout($, 100));
549
556
  }), p({ openPopup: Ft }), (e, t) => {
550
- let s = i, p = r, m = n, ne = ee, _ = te;
551
- return S((g(), u("div", oe, [
557
+ let s = i, p = r, ne = n, m = ee, g = te;
558
+ return C((_(), u("div", oe, [
552
559
  d("button", {
553
560
  class: "HdMajorActivity-close",
554
561
  onClick: jt
@@ -560,8 +567,8 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
560
567
  })], -1),
561
568
  d("div", se, [
562
569
  d("div", ce, [t[5] ||= d("span", { class: "HdMajorActivity-yearLabel" }, "年份", -1), f(s, {
563
- modelValue: D.value,
564
- "onUpdate:modelValue": t[0] ||= (e) => D.value = e,
570
+ modelValue: A.value,
571
+ "onUpdate:modelValue": t[0] ||= (e) => A.value = e,
565
572
  type: "year",
566
573
  placeholder: "全部",
567
574
  "value-format": "YYYY",
@@ -574,15 +581,15 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
574
581
  "disabled-date": bt,
575
582
  onChange: xt
576
583
  }, null, 8, ["modelValue"])]),
577
- U.value ? (g(), u("div", le, [
578
- _t.value ? (g(), u("img", {
584
+ G.value ? (_(), u("div", le, [
585
+ _t.value ? (_(), u("img", {
579
586
  key: 0,
580
587
  src: _t.value,
581
588
  alt: "活动封面"
582
- }, null, 8, ue)) : (g(), u("div", de, "暂无封面")),
589
+ }, null, 8, ue)) : (_(), u("div", de, "暂无封面")),
583
590
  d("button", {
584
591
  class: "HdMajorActivity-coverArrow HdMajorActivity-coverArrow--left",
585
- disabled: O.value <= 0,
592
+ disabled: j.value <= 0,
586
593
  onClick: Dt
587
594
  }, [...t[6] ||= [d("svg", {
588
595
  viewBox: "0 0 24 24",
@@ -594,7 +601,7 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
594
601
  }, [d("polyline", { points: "15 18 9 12 15 6" })], -1)]], 8, fe),
595
602
  d("button", {
596
603
  class: "HdMajorActivity-coverArrow HdMajorActivity-coverArrow--right",
597
- disabled: O.value >= H.value.length - 1,
604
+ disabled: j.value >= W.value.length - 1,
598
605
  onClick: Ot
599
606
  }, [...t[7] ||= [d("svg", {
600
607
  viewBox: "0 0 24 24",
@@ -604,17 +611,17 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
604
611
  stroke: "currentColor",
605
612
  "stroke-width": "2"
606
613
  }, [d("polyline", { points: "9 18 15 12 9 6" })], -1)]], 8, pe),
607
- d("div", me, [d("div", he, [d("h4", ge, y(U.value.name), 1), d("div", _e, [t[8] ||= d("span", { class: "HdMajorActivity-coverTimeLabel" }, "服务时间:", -1), d("span", ve, y(wt(U.value)), 1)])]), d("div", null, [d("span", { class: h(["HdMajorActivity-coverStatus", Et(U.value)]) }, y(Tt(U.value)), 3)])])
614
+ d("div", me, [d("div", he, [d("h4", ge, b(G.value.name), 1), d("div", _e, [t[8] ||= d("span", { class: "HdMajorActivity-coverTimeLabel" }, "服务时间:", -1), d("span", ve, b(wt(G.value)), 1)])]), d("div", null, [d("span", { class: h(["HdMajorActivity-coverStatus", Et(G.value)]) }, b(Tt(G.value)), 3)])])
608
615
  ])) : l("", !0),
609
- U.value ? (g(), u("div", ye, [t[9] ||= d("div", { class: "HdMajorActivity-sectionTitle" }, "活动介绍", -1), d("div", be, y(U.value.introduction || "暂无介绍"), 1)])) : l("", !0),
610
- W.value.length ? (g(), u("div", xe, [t[10] ||= d("div", { class: "HdMajorActivity-sectionTitle" }, "活动图片", -1), f(m, {
616
+ G.value ? (_(), u("div", ye, [t[9] ||= d("div", { class: "HdMajorActivity-sectionTitle" }, "活动介绍", -1), d("div", be, b(G.value.introduction || "暂无介绍"), 1)])) : l("", !0),
617
+ K.value.length ? (_(), u("div", xe, [t[10] ||= d("div", { class: "HdMajorActivity-sectionTitle" }, "活动图片", -1), f(ne, {
611
618
  class: "HdMajorActivity-carouselBox",
612
619
  height: "140px",
613
620
  autoplay: !1,
614
621
  "indicator-position": "outside",
615
622
  arrow: "always"
616
623
  }, {
617
- default: re(() => [(g(!0), u(a, null, v(W.value, (e, t) => (g(), c(p, { key: t }, {
624
+ default: re(() => [(_(!0), u(a, null, y(K.value, (e, t) => (_(), c(p, { key: t }, {
618
625
  default: re(() => [d("img", {
619
626
  class: "HdMajorActivity-carouselImage",
620
627
  src: e,
@@ -625,34 +632,34 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
625
632
  }, 1024))), 128))]),
626
633
  _: 1
627
634
  })])) : l("", !0),
628
- !H.value.length && !T.value ? (g(), u("div", Ce, "暂无活动数据")) : l("", !0)
635
+ !W.value.length && !O.value ? (_(), u("div", Ce, "暂无活动数据")) : l("", !0)
629
636
  ]),
630
- (g(), c(o, { to: "body" }, [k.value ? (g(), c(ne, {
637
+ (_(), c(o, { to: "body" }, [M.value ? (_(), c(m, {
631
638
  key: 0,
632
- "url-list": W.value,
633
- "initial-index": ht.value,
639
+ "url-list": K.value,
640
+ "initial-index": mt.value,
634
641
  onClose: At
635
642
  }, null, 8, ["url-list", "initial-index"])) : l("", !0)])),
636
- (g(), c(o, { to: "body" }, [A.value ? (g(), u("div", we, [d("div", Te, [d("div", Ee, [d("span", De, y(j.value?.location || j.value?.name), 1), d("button", {
643
+ (_(), c(o, { to: "body" }, [N.value ? (_(), u("div", we, [d("div", Te, [d("div", Ee, [d("span", De, b(P.value?.location || P.value?.name), 1), d("button", {
637
644
  class: "HdMajorActivity-popupClose",
638
645
  onClick: It
639
- }, [...t[11] ||= [d("span", null, "✕", -1)]])]), d("div", Oe, [d("div", ke, [d("div", Ae, [vt.value ? (g(), u("img", {
646
+ }, [...t[11] ||= [d("span", null, "✕", -1)]])]), d("div", Oe, [d("div", ke, [d("div", Ae, [vt.value ? (_(), u("img", {
640
647
  key: 0,
641
648
  src: vt.value,
642
649
  alt: "封面"
643
- }, null, 8, je)) : (g(), u("div", Me, "暂无封面"))]), d("div", Ne, [d("div", Pe, [t[12] ||= d("span", null, "要素实况", -1), P.value.updateTime ? (g(), u("span", Fe, y(P.value.updateTime) + " 更新", 1)) : l("", !0)]), M.value ? (g(), u("div", Ie, "加载中...")) : (g(), u("div", Le, [
644
- d("div", Re, [t[13] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "天气", -1), d("span", ze, y(gt.value), 1)]),
645
- d("div", Be, [t[14] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "最高温度", -1), d("span", Ve, y(q(P.value.maxTemp)) + "°C", 1)]),
646
- d("div", He, [t[15] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "最低温度", -1), d("span", Ue, y(q(P.value.minTemp)) + "°C", 1)]),
647
- d("div", We, [t[16] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "风速", -1), d("span", Ge, y(q(P.value.windSpeed)) + " m/s", 1)]),
648
- d("div", Ke, [t[17] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "风向", -1), d("span", qe, y(P.value.windDirection || "--"), 1)]),
649
- d("div", Je, [t[18] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "气压", -1), d("span", Ye, y(q(P.value.pressure)) + " hPa", 1)]),
650
- d("div", Xe, [t[19] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "相对湿度", -1), d("span", Ze, y(q(P.value.humidity)) + "%", 1)]),
651
- d("div", Qe, [t[20] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "能见度", -1), d("span", $e, y(q(P.value.visibility)) + " m", 1)])
650
+ }, null, 8, je)) : (_(), u("div", Me, "暂无封面"))]), d("div", Ne, [d("div", Pe, [t[12] ||= d("span", null, "要素实况", -1), L.value.updateTime ? (_(), u("span", Fe, b(L.value.updateTime) + " 更新", 1)) : l("", !0)]), F.value ? (_(), u("div", Ie, "加载中...")) : (_(), u("div", Le, [
651
+ d("div", Re, [t[13] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "天气", -1), d("span", ze, b(gt.value), 1)]),
652
+ d("div", Be, [t[14] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "最高温度", -1), d("span", Ve, b(Y(L.value.maxTemp)) + "°C", 1)]),
653
+ d("div", He, [t[15] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "最低温度", -1), d("span", Ue, b(Y(L.value.minTemp)) + "°C", 1)]),
654
+ d("div", We, [t[16] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "风速", -1), d("span", Ge, b(Y(L.value.windSpeed)) + " m/s", 1)]),
655
+ d("div", Ke, [t[17] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "风向", -1), d("span", qe, b(L.value.windDirection || "--"), 1)]),
656
+ d("div", Je, [t[18] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "气压", -1), d("span", Ye, b(Y(L.value.pressure)) + " hPa", 1)]),
657
+ d("div", Xe, [t[19] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "相对湿度", -1), d("span", Ze, b(Y(L.value.humidity)) + "%", 1)]),
658
+ d("div", Qe, [t[20] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "能见度", -1), d("span", $e, b(Y(L.value.visibility)) + " m", 1)])
652
659
  ]))])]), d("div", et, [
653
660
  d("div", tt, [t[21] ||= d("span", { class: "HdMajorActivity-popupSectionTitle" }, "要素时序", -1), f(s, {
654
- modelValue: I.value,
655
- "onUpdate:modelValue": t[1] ||= (e) => I.value = e,
661
+ modelValue: z.value,
662
+ "onUpdate:modelValue": t[1] ||= (e) => z.value = e,
656
663
  type: "daterange",
657
664
  size: "small",
658
665
  disabled: !0,
@@ -664,22 +671,22 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
664
671
  "popper-class": "HdMajorActivity-yearPopper"
665
672
  }, null, 8, ["modelValue"])]),
666
673
  d("div", nt, [d("button", {
667
- class: h(["HdMajorActivity-popupTab", { "is-active": L.value === "chart" }]),
668
- onClick: t[2] ||= (e) => L.value = "chart"
674
+ class: h(["HdMajorActivity-popupTab", { "is-active": B.value === "chart" }]),
675
+ onClick: t[2] ||= (e) => B.value = "chart"
669
676
  }, "图表", 2), d("button", {
670
- class: h(["HdMajorActivity-popupTab", { "is-active": L.value === "table" }]),
671
- onClick: t[3] ||= (e) => L.value = "table"
677
+ class: h(["HdMajorActivity-popupTab", { "is-active": B.value === "table" }]),
678
+ onClick: t[3] ||= (e) => B.value = "table"
672
679
  }, "表格", 2)]),
673
- S(d("div", rt, [(g(), u(a, null, v(V, (e) => d("button", {
680
+ C(d("div", rt, [(_(), u(a, null, y(ht, (e) => d("button", {
674
681
  key: e.key,
675
- class: h(["HdMajorActivity-popupElementTab", { "is-active": R.value === e.key }]),
676
- onClick: (t) => R.value = e.key
677
- }, y(e.label), 11, it)), 64))], 512), [[b, L.value === "chart"]]),
678
- N.value ? (g(), u("div", at, "加载中...")) : (g(), u("div", ot, [S(d("div", {
682
+ class: h(["HdMajorActivity-popupElementTab", { "is-active": V.value === e.key }]),
683
+ onClick: (t) => V.value = e.key
684
+ }, b(e.label), 11, it)), 64))], 512), [[x, B.value === "chart"]]),
685
+ I.value ? (_(), u("div", at, "加载中...")) : (_(), u("div", ot, [C(d("div", {
679
686
  ref_key: "chartRef",
680
- ref: z,
687
+ ref: H,
681
688
  class: "HdMajorActivity-popupChart"
682
- }, null, 512), [[b, L.value === "chart"]]), S(d("div", st, [d("table", ct, [t[23] ||= d("thead", null, [d("tr", null, [
689
+ }, null, 512), [[x, B.value === "chart"]]), C(d("div", st, [d("table", ct, [t[23] ||= d("thead", null, [d("tr", null, [
683
690
  d("th", null, "时间"),
684
691
  d("th", null, "温度(°C)"),
685
692
  d("th", null, "风速(m/s)"),
@@ -688,23 +695,23 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
688
695
  d("th", null, "相对湿度(%)"),
689
696
  d("th", null, "能见度(km)"),
690
697
  d("th", null, "类型")
691
- ])], -1), d("tbody", null, [(g(!0), u(a, null, v(yt.value, (e, t) => (g(), u("tr", { key: t }, [
692
- d("td", null, y(e.time), 1),
693
- d("td", null, y(q(e.temp)), 1),
694
- d("td", null, y(q(e.windSpeed)), 1),
695
- d("td", null, y(e.windDirection || "--"), 1),
696
- d("td", null, y(q(e.rain)), 1),
697
- d("td", null, y(q(e.humidity)), 1),
698
- d("td", null, y(q(e.visibility)), 1),
699
- d("td", null, [d("span", { class: h(["HdMajorActivity-popupTypeTag", `is-${e.type || "real"}`]) }, y(e.type === "forecast" ? "预报" : "实况"), 3)])
700
- ]))), 128)), yt.value.length ? l("", !0) : (g(), u("tr", lt, [...t[22] ||= [d("td", {
698
+ ])], -1), d("tbody", null, [(_(!0), u(a, null, y(yt.value, (e, t) => (_(), u("tr", { key: t }, [
699
+ d("td", null, b(e.time), 1),
700
+ d("td", null, b(Y(e.temp)), 1),
701
+ d("td", null, b(Y(e.windSpeed)), 1),
702
+ d("td", null, b(e.windDirection || "--"), 1),
703
+ d("td", null, b(Y(e.rain)), 1),
704
+ d("td", null, b(Y(e.humidity)), 1),
705
+ d("td", null, b(Y(e.visibility)), 1),
706
+ d("td", null, [d("span", { class: h(["HdMajorActivity-popupTypeTag", `is-${e.type || "real"}`]) }, b(e.type === "forecast" ? "预报" : "实况"), 3)])
707
+ ]))), 128)), yt.value.length ? l("", !0) : (_(), u("tr", lt, [...t[22] ||= [d("td", {
701
708
  colspan: "8",
702
709
  class: "HdMajorActivity-popupNoData"
703
- }, "暂无数据", -1)]]))])])], 512), [[b, L.value === "table"]])]))
710
+ }, "暂无数据", -1)]]))])])], 512), [[x, B.value === "table"]])]))
704
711
  ])])])])) : l("", !0)]))
705
- ])), [[_, T.value]]);
712
+ ])), [[g, O.value]]);
706
713
  };
707
714
  }
708
- }), [["__scopeId", "data-v-1752b734"]]);
715
+ }), [["__scopeId", "data-v-4265b18e"]]);
709
716
  //#endregion
710
717
  export { ut as t };