nxd-plugin 1.8.28 → 1.8.29

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 (37) hide show
  1. package/dist/chunks/{component-Forecast72h-cgr5tls3.mjs → component-Forecast72h-yd9t3176.mjs} +249 -196
  2. package/dist/chunks/{component-HdCameraList-NlgDGDxS.mjs → component-HdCameraList-nPxzUdmB.mjs} +1 -1
  3. package/dist/chunks/{component-HdFarmStation-CUXisRVE.mjs → component-HdFarmStation-BDN_u87-.mjs} +1 -1
  4. package/dist/chunks/{component-HdFarmStationDialog-BtPMLdBf.mjs → component-HdFarmStationDialog-CMKGe0YJ.mjs} +8 -8
  5. package/dist/chunks/{component-HdMajorActivity-nIv4HBSm.mjs → component-HdMajorActivity-CyAgx0og.mjs} +222 -225
  6. package/dist/chunks/{component-HdObservation-CJi_RXM_.mjs → component-HdObservation-CY8TNPK8.mjs} +2 -2
  7. package/dist/chunks/{component-HdPreSituation-D5rfQ4Tv.mjs → component-HdPreSituation-CLXeQ_lX.mjs} +2 -2
  8. package/dist/chunks/{component-HdRadarList-C51u7j2s.mjs → component-HdRadarList--85ldZa2.mjs} +1 -1
  9. package/dist/chunks/{component-HdRisk-C0WY-wCs.mjs → component-HdRisk-HKXfRnuQ.mjs} +1 -1
  10. package/dist/chunks/{component-HdServiceMarterial-DYQVcfuq.mjs → component-HdServiceMarterial-DJA-s67d.mjs} +1 -1
  11. package/dist/chunks/{component-HdServiceRequirements-DGn7h63L.mjs → component-HdServiceRequirements-lXtnq5r2.mjs} +1 -1
  12. package/dist/chunks/{component-HdSoil-BZ4yph45.mjs → component-HdSoil-BtIq7NXx.mjs} +1 -1
  13. package/dist/chunks/{component-HdStationTem-Cyk1fdpJ.mjs → component-HdStationTem-CRfJb0wr.mjs} +122 -99
  14. package/dist/chunks/{component-HdSuggestion-CBvCk-c5.mjs → component-HdSuggestion-2aFJRsau.mjs} +1 -1
  15. package/dist/chunks/{component-HdThreeWeatherTrend-CrxdQnj5.mjs → component-HdThreeWeatherTrend-BWeGlUnt.mjs} +2 -2
  16. package/dist/chunks/{component-HdWaveForcast-D_Y_AoL1.mjs → component-HdWaveForcast-DgcqZuG9.mjs} +1 -1
  17. package/dist/chunks/{component-HighQuality-B6JxEYfF.mjs → component-HighQuality-BNvi5OuR.mjs} +59 -54
  18. package/dist/chunks/{component-HighwayWeatherForecast-UCOCLt-l.mjs → component-HighwayWeatherForecast-BAHrZUA9.mjs} +69 -69
  19. package/dist/chunks/{component-PrecipitationRanking-cy6YEcr-.mjs → component-PrecipitationRanking-Cp8wK9V7.mjs} +265 -300
  20. package/dist/chunks/component-StationDialog-CnAIJZcL.mjs +772 -0
  21. package/dist/chunks/{component-StationList-rA77RHJb.mjs → component-StationList-DvHUcP8A.mjs} +2 -2
  22. package/dist/chunks/{component-TimeBasedForecast-CTLJVn2P.mjs → component-TimeBasedForecast-DP7ZYRQB.mjs} +34 -34
  23. package/dist/chunks/{component-WeatherForecast-BTzDg7Mi.mjs → component-WeatherForecast-BhGvmaMS.mjs} +34 -34
  24. package/dist/chunks/{component-YCDataService-oOkpc1PC.mjs → component-YCDataService-CwOGPL98.mjs} +1 -1
  25. package/dist/chunks/{component-YCHome-DcmieyM7.mjs → component-YCHome-DRIi7AIB.mjs} +1 -1
  26. package/dist/components/HdStationTem/HdStationTem.vue.d.ts +3 -2
  27. package/dist/components/PrecipitationRanking/PrecipitationRanking.vue.d.ts +1 -0
  28. package/dist/nxd-plugin.mjs +25 -25
  29. package/dist/styles/component-Forecast72h.css +1 -1
  30. package/dist/styles/component-HdMajorActivity.css +1 -1
  31. package/dist/styles/component-HdStationTem.css +1 -1
  32. package/dist/styles/component-HighQuality.css +1 -1
  33. package/dist/styles/component-PrecipitationRanking.css +1 -1
  34. package/dist/styles/component-StationDialog.css +1 -1
  35. package/dist/styles/component-YCLoginNew.css +1 -1
  36. package/package.json +1 -1
  37. package/dist/chunks/component-StationDialog-NQdthKaR.mjs +0 -737
@@ -1,46 +1,47 @@
1
1
  import { i as e, o as t } from "./component-AiChat-COULZNRK.mjs";
2
- import { n } from "./component-Forecast72h-cgr5tls3.mjs";
3
- import { ElCarousel as r, ElCarouselItem as i, ElDatePicker as a, ElImageViewer as ee, ElLoadingDirective as te } from "element-plus/es";
4
- import { Fragment as o, Teleport as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, nextTick as h, normalizeClass as g, onMounted as ne, 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";
2
+ import "./component-Forecast72h-yd9t3176.mjs";
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";
5
5
  import * as ie from "echarts";
6
- //#region src/components/HdMajorActivity/HdMajorActivity.vue?vue&type=script&setup=true&lang.ts
7
- var ae = {
6
+ import "element-plus/dist/index.css";
7
+ //#region src/assets/img/hd/wwindDirection.png
8
+ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAGFBMVEX/////qBX/owf/pAT/ogL/ogH/ogD/ogC7UYbMAAAAB3RSTlMDJENqg8HizO9CmQAAAE9JREFUeNpjIBMwmriAgBFcgKUcDErgAqwQgSIkASUQEMAtwAbRUowpgNACttYASQBCo1hbCqRRzRBAUREaGoyqBUgMEwGWMvSIMmKgBAAAftMfdMqbYD0AAAAASUVORK5CYII=", oe = {
8
9
  class: "HdMajorActivity",
9
10
  "element-loading-background": "rgba(0, 0, 0, 0.5)"
10
- }, oe = { class: "HdMajorActivity-body" }, se = { class: "HdMajorActivity-yearBar" }, ce = {
11
+ }, se = { class: "HdMajorActivity-body" }, ce = { class: "HdMajorActivity-yearBar" }, le = {
11
12
  key: 0,
12
13
  class: "HdMajorActivity-cover"
13
- }, le = ["src"], ue = {
14
+ }, ue = ["src"], de = {
14
15
  key: 1,
15
16
  class: "HdMajorActivity-coverPlaceholder"
16
- }, de = ["disabled"], fe = ["disabled"], pe = { class: "HdMajorActivity-coverMask" }, me = { class: "HdMajorActivity-coverTitle" }, he = { class: "HdMajorActivity-coverTime" }, ge = { class: "HdMajorActivity-coverTimeValue" }, _e = {
17
+ }, fe = ["disabled"], pe = ["disabled"], me = { class: "HdMajorActivity-coverMask" }, he = { class: "HdMajorActivity-coverInfo" }, ge = { class: "HdMajorActivity-coverTitle" }, _e = { class: "HdMajorActivity-coverTime" }, ve = { class: "HdMajorActivity-coverTimeValue" }, ye = {
17
18
  key: 1,
18
19
  class: "HdMajorActivity-section"
19
- }, ve = { class: "HdMajorActivity-introduction" }, ye = {
20
+ }, be = { class: "HdMajorActivity-introduction" }, xe = {
20
21
  key: 2,
21
22
  class: "HdMajorActivity-section"
22
- }, be = ["src", "onClick"], xe = {
23
+ }, Se = ["src", "onClick"], Ce = {
23
24
  key: 3,
24
25
  class: "HdMajorActivity-noData"
25
- }, Se = {
26
+ }, we = {
26
27
  key: 0,
27
28
  class: "HdMajorActivity-popupMask"
28
- }, Ce = { class: "HdMajorActivity-popup" }, we = { class: "HdMajorActivity-popupHead" }, Te = { class: "HdMajorActivity-popupHeadTitle" }, Ee = { class: "HdMajorActivity-popupBody" }, De = { class: "HdMajorActivity-popupTop" }, Oe = { class: "HdMajorActivity-popupCover" }, ke = ["src"], Ae = {
29
+ }, Te = { class: "HdMajorActivity-popup" }, Ee = { class: "HdMajorActivity-popupHead" }, De = { class: "HdMajorActivity-popupHeadTitle" }, Oe = { class: "HdMajorActivity-popupBody" }, ke = { class: "HdMajorActivity-popupTop" }, Ae = { class: "HdMajorActivity-popupCover" }, je = ["src"], Me = {
29
30
  key: 1,
30
31
  class: "HdMajorActivity-popupCoverPlaceholder"
31
- }, je = { class: "HdMajorActivity-popupRealtime" }, Me = { class: "HdMajorActivity-popupRealtimeTitle" }, Ne = {
32
+ }, Ne = { class: "HdMajorActivity-popupRealtime" }, Pe = { class: "HdMajorActivity-popupRealtimeTitle" }, Fe = {
32
33
  key: 0,
33
34
  class: "HdMajorActivity-popupRealtimeUpdate"
34
- }, Pe = {
35
+ }, Ie = {
35
36
  key: 0,
36
37
  class: "HdMajorActivity-popupLoading"
37
- }, Fe = {
38
+ }, Le = {
38
39
  key: 1,
39
40
  class: "HdMajorActivity-popupRealtimeGrid"
40
- }, Ie = { class: "HdMajorActivity-popupRealtimeItem" }, Le = { class: "HdMajorActivity-popupRealtimeValue" }, Re = { class: "HdMajorActivity-popupRealtimeItem" }, ze = { class: "HdMajorActivity-popupRealtimeValue" }, Be = { class: "HdMajorActivity-popupRealtimeItem" }, Ve = { class: "HdMajorActivity-popupRealtimeValue" }, He = { class: "HdMajorActivity-popupRealtimeItem" }, Ue = { class: "HdMajorActivity-popupRealtimeValue" }, We = { class: "HdMajorActivity-popupRealtimeItem" }, Ge = { class: "HdMajorActivity-popupRealtimeValue" }, Ke = { class: "HdMajorActivity-popupRealtimeItem" }, qe = { class: "HdMajorActivity-popupRealtimeValue" }, Je = { class: "HdMajorActivity-popupRealtimeItem" }, Ye = { class: "HdMajorActivity-popupRealtimeValue" }, Xe = { class: "HdMajorActivity-popupRealtimeItem" }, Ze = { class: "HdMajorActivity-popupRealtimeValue" }, Qe = { class: "HdMajorActivity-popupSection" }, $e = { class: "HdMajorActivity-popupSectionHead" }, et = { class: "HdMajorActivity-popupTabs" }, tt = { class: "HdMajorActivity-popupElementTabs" }, nt = ["onClick"], rt = {
41
+ }, Re = { class: "HdMajorActivity-popupRealtimeItem" }, ze = { class: "HdMajorActivity-popupRealtimeValue" }, Be = { class: "HdMajorActivity-popupRealtimeItem" }, Ve = { class: "HdMajorActivity-popupRealtimeValue" }, He = { class: "HdMajorActivity-popupRealtimeItem" }, Ue = { class: "HdMajorActivity-popupRealtimeValue" }, We = { class: "HdMajorActivity-popupRealtimeItem" }, Ge = { class: "HdMajorActivity-popupRealtimeValue" }, Ke = { class: "HdMajorActivity-popupRealtimeItem" }, qe = { class: "HdMajorActivity-popupRealtimeValue" }, Je = { class: "HdMajorActivity-popupRealtimeItem" }, Ye = { class: "HdMajorActivity-popupRealtimeValue" }, Xe = { class: "HdMajorActivity-popupRealtimeItem" }, Ze = { class: "HdMajorActivity-popupRealtimeValue" }, Qe = { class: "HdMajorActivity-popupRealtimeItem" }, $e = { class: "HdMajorActivity-popupRealtimeValue" }, et = { class: "HdMajorActivity-popupSection" }, tt = { class: "HdMajorActivity-popupSectionHead" }, nt = { class: "HdMajorActivity-popupTabs" }, rt = { class: "HdMajorActivity-popupElementTabs" }, it = ["onClick"], at = {
41
42
  key: 0,
42
43
  class: "HdMajorActivity-popupLoading"
43
- }, it = { key: 1 }, at = { class: "HdMajorActivity-popupTableWrap" }, ot = { class: "HdMajorActivity-popupTable" }, st = { key: 0 }, ct = /* @__PURE__ */ e(/* @__PURE__ */ m({
44
+ }, ot = { key: 1 }, st = { class: "HdMajorActivity-popupTableWrap" }, ct = { class: "HdMajorActivity-popupTable" }, lt = { key: 0 }, ut = /* @__PURE__ */ e(/* @__PURE__ */ p({
44
45
  __name: "HdMajorActivity",
45
46
  props: {
46
47
  mock: {
@@ -69,8 +70,8 @@ var ae = {
69
70
  "removeLayer",
70
71
  "mapView"
71
72
  ],
72
- setup(e, { expose: m, emit: ct }) {
73
- let lt = (/* @__PURE__ */ new Date()).getFullYear(), ut = lt - 20, dt = lt + 10, w = e, T = ct, E = v(!1), D = v([]), O = v(null), k = v(0), A = v(!1), ft = v(0), j = v(!1), M = v(null), N = v(!1), P = v(!1), F = v({}), I = v([]), L = v([]), R = v("chart"), z = v("temperature"), B = v(null), V = null, pt = [
73
+ setup(e, { expose: p, emit: ut }) {
74
+ let dt = (/* @__PURE__ */ new Date()).getFullYear(), ft = dt - 20, pt = dt + 10, C = e, w = ut, T = _(!1), E = _([]), D = _(null), O = _(0), k = _(!1), mt = _(0), A = _(!1), j = _(null), M = _(!1), N = _(!1), P = _({}), F = _([]), I = _([]), L = _("chart"), R = _("temperature"), z = _(null), B = null, V = [
74
75
  {
75
76
  key: "temperature",
76
77
  label: "温度",
@@ -126,36 +127,36 @@ var ae = {
126
127
  color: "#165DFF",
127
128
  forecastColor: "#5B8FF9"
128
129
  }
129
- ], mt = c(() => {
130
- let e = F.value, t = K(e.humidity), n = K(e.visibility), r = K(e.windSpeed);
130
+ ], ht = s(() => {
131
+ let e = P.value, t = K(e.humidity), n = K(e.visibility), r = K(e.windSpeed);
131
132
  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 ? "大风" : "多云";
132
- }), H = c(() => O.value ? D.value.filter((e) => {
133
- let t = e.year || bt(e.start_time);
134
- return String(t) === String(O.value);
135
- }) : D.value), U = c(() => H.value[k.value] || null), ht = c(() => G(U.value?.cover_image)), W = c(() => {
133
+ }), H = s(() => D.value ? E.value.filter((e) => {
134
+ let t = e.year || xt(e.start_time);
135
+ return String(t) === String(D.value);
136
+ }) : E.value), U = s(() => H.value[O.value] || null), gt = s(() => G(U.value?.cover_image)), W = s(() => {
136
137
  let e = U.value?.images;
137
138
  return e ? e.split(",").map((e) => G(e.trim())).filter(Boolean) : [];
138
- }), gt = c(() => G(M.value?.cover_image)), _t = c(() => I.value.map((e) => ({
139
+ }), _t = s(() => G(j.value?.cover_image)), vt = s(() => F.value.map((e) => ({
139
140
  ...e,
140
141
  time: Y(e.time)
141
- }))), vt = (e) => {
142
+ }))), yt = (e) => {
142
143
  let t = e.getFullYear();
143
- return t < ut || t > dt;
144
- }, yt = () => {
145
- k.value = 0, Kt();
146
- }, bt = (e) => {
144
+ return t < ft || t > pt;
145
+ }, bt = () => {
146
+ O.value = 0, qt();
147
+ }, xt = (e) => {
147
148
  if (!e) return null;
148
149
  let t = new Date(e);
149
150
  return isNaN(t.getTime()) ? null : t.getFullYear();
150
- }, G = (e) => e ? e.startsWith("http://") || e.startsWith("https://") ? e : `${w.imgBaseUrl.replace(/\/$/, "")}${e.startsWith("/") ? e : `/${e}`}` : "", xt = (e) => {
151
+ }, G = (e) => e ? e.startsWith("http://") || e.startsWith("https://") ? e : `${C.imgBaseUrl.replace(/\/$/, "")}${e.startsWith("/") ? e : `/${e}`}` : "", St = (e) => {
151
152
  if (e == null || e === "") return !0;
152
153
  let t = Number(e);
153
154
  return Number.isFinite(t) ? t === -1 || t === 999 || t === 9999 : !1;
154
155
  }, K = (e) => {
155
- if (xt(e)) return null;
156
+ if (St(e)) return null;
156
157
  let t = Number(e);
157
158
  return Number.isFinite(t) ? t : null;
158
- }, q = (e) => xt(e) ? "--" : String(e), J = (e) => {
159
+ }, q = (e) => St(e) ? "--" : String(e), J = (e) => {
159
160
  let t = K(e);
160
161
  return t === null ? "--" : [
161
162
  "北风",
@@ -171,28 +172,28 @@ var ae = {
171
172
  if (!e) return "--";
172
173
  let t = new Date(e);
173
174
  return isNaN(t.getTime()) ? e : `${t.getFullYear()}-${X(t.getMonth() + 1)}-${X(t.getDate())} ${X(t.getHours())}:00`;
174
- }, X = (e) => e < 10 ? `0${e}` : `${e}`, St = (e) => `${e.start_time ? e.start_time.split(" ")[0] : "--"} 至 ${e.end_time ? e.end_time.split(" ")[0] : "--"}`, Ct = (e) => {
175
+ }, X = (e) => e < 10 ? `0${e}` : `${e}`, Ct = (e) => `${e.start_time ? e.start_time.split(" ")[0] : "--"} 至 ${e.end_time ? e.end_time.split(" ")[0] : "--"}`, wt = (e) => {
175
176
  if (e.status === 0) return "未开始";
176
177
  if (e.status === 1) return "进行中";
177
178
  if (e.status === 2) return "已结束";
178
179
  let t = (/* @__PURE__ */ new Date()).getTime(), n = e.start_time ? new Date(e.start_time).getTime() : 0, r = e.end_time ? new Date(e.end_time).getTime() : 0;
179
180
  return n && t < n ? "未开始" : r && t > r ? "已结束" : "进行中";
180
- }, wt = (e) => {
181
- let t = Ct(e);
181
+ }, Tt = (e) => {
182
+ let t = wt(e);
182
183
  return t === "未开始" ? "HdMajorActivity-status--pending" : t === "进行中" ? "HdMajorActivity-status--active" : "HdMajorActivity-status--ended";
183
- }, Tt = () => {
184
- k.value > 0 && k.value--;
185
184
  }, Et = () => {
186
- k.value < H.value.length - 1 && k.value++;
187
- }, Dt = (e) => {
188
- ft.value = e, A.value = !0;
189
- }, Ot = () => {
190
- A.value = !1;
185
+ O.value > 0 && O.value--;
186
+ }, Dt = () => {
187
+ O.value < H.value.length - 1 && O.value++;
188
+ }, Ot = (e) => {
189
+ mt.value = e, k.value = !0;
191
190
  }, kt = () => {
192
- T("close", "HdMajorActivity");
191
+ k.value = !1;
193
192
  }, At = () => {
194
- T("clearMarker", "HdMajorActivity"), T("removePolygon", "HdMajorActivity"), T("removeLayer", { name: "HdMajorActivity" });
195
- }, jt = (e) => {
193
+ w("close", "HdMajorActivity");
194
+ }, jt = () => {
195
+ w("clearMarker", "HdMajorActivity"), w("removePolygon", "HdMajorActivity"), w("removeLayer", { name: "HdMajorActivity" });
196
+ }, Mt = (e) => {
196
197
  if (!e) return [];
197
198
  if (Array.isArray(e)) return e;
198
199
  try {
@@ -202,24 +203,24 @@ var ae = {
202
203
  console.warn("HdMajorActivity 区域坐标解析失败", e);
203
204
  }
204
205
  return [];
205
- }, Mt = () => {
206
+ }, Nt = () => {
206
207
  let e = U.value;
207
208
  if (!e) {
208
- At();
209
+ jt();
209
210
  return;
210
211
  }
211
- At(), e.layer_id && w.layerBaseUrl && T("addLayer", {
212
+ jt(), e.layer_id && C.layerBaseUrl && w("addLayer", {
212
213
  name: "HdMajorActivity",
213
214
  oneLayer: {
214
- mapUrl: w.layerBaseUrl,
215
+ mapUrl: C.layerBaseUrl,
215
216
  type: e.layer_id,
216
217
  opacity: 1
217
218
  },
218
219
  visible: !0,
219
220
  zIndex: 10
220
221
  });
221
- let t = jt(e.area_coordinates);
222
- t.length >= 3 && !e.layer_id && T("addPolygon", {
222
+ let t = Mt(e.area_coordinates);
223
+ t.length >= 3 && !e.layer_id && w("addPolygon", {
223
224
  removePolygon: "HdMajorActivity",
224
225
  polygonArr: [{
225
226
  polygonJson: t.map(([e, t]) => ({
@@ -238,7 +239,7 @@ var ae = {
238
239
  let n = Number(e.center_latitude), r = Number(e.center_longitude);
239
240
  if (Number.isFinite(n) && Number.isFinite(r)) {
240
241
  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 ";
241
- T("addMarker", {
242
+ w("addMarker", {
242
243
  mapMarker: {
243
244
  clickOpen: !0,
244
245
  spotObject: [{
@@ -264,17 +265,17 @@ var ae = {
264
265
  drawArrObj: []
265
266
  },
266
267
  removeMarker: "HdMajorActivity"
267
- }), T("mapView", {
268
+ }), w("mapView", {
268
269
  lng: r,
269
270
  lat: n,
270
271
  zoom: 12
271
272
  });
272
273
  }
273
- }, Nt = (e) => {
274
- M.value = e, j.value = !0, R.value = "chart", L.value = [e.start_time ? e.start_time.split(" ")[0] : "", e.end_time ? e.end_time.split(" ")[0] : ""], zt(e), Bt(e);
275
- }, Pt = () => {
276
- j.value = !1, M.value = null, V &&= (V.dispose(), null);
277
- }, Ft = (e) => {
274
+ }, Pt = (e) => {
275
+ 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] : ""], Bt(e), Vt(e);
276
+ }, Ft = () => {
277
+ A.value = !1, j.value = null, B &&= (B.dispose(), null);
278
+ }, It = (e) => {
278
279
  if (!e) return {};
279
280
  let t = Array.isArray(e) ? e[0] : e;
280
281
  if (!t || typeof t != "object") return {};
@@ -291,7 +292,7 @@ var ae = {
291
292
  visibility: t.vis_min,
292
293
  updateTime: t.datetime_bj
293
294
  };
294
- }, It = (e) => {
295
+ }, Lt = (e) => {
295
296
  let t = K(e.win_d_s_max);
296
297
  return {
297
298
  time: e.datetime_bj,
@@ -305,7 +306,7 @@ var ae = {
305
306
  visibility: e.vis_min,
306
307
  type: "real"
307
308
  };
308
- }, Lt = (e) => {
309
+ }, Rt = (e) => {
309
310
  let t = K(e.eda10_dir);
310
311
  return {
311
312
  time: e.f_time,
@@ -319,82 +320,82 @@ var ae = {
319
320
  visibility: e.vis,
320
321
  type: "forecast"
321
322
  };
322
- }, Rt = (e) => {
323
+ }, zt = (e) => {
323
324
  let t = Array.isArray(e) ? e[0] : e;
324
325
  if (!t || typeof t != "object") return [];
325
326
  let n = Array.isArray(t.situationData) ? t.situationData : [], r = Array.isArray(t.forecastData) ? t.forecastData : [];
326
- return [...n.map(It), ...r.map(Lt)].sort((e, t) => new Date(e.time).getTime() - new Date(t.time).getTime());
327
- }, zt = async (e) => {
327
+ return [...n.map(Lt), ...r.map(Rt)].sort((e, t) => new Date(e.time).getTime() - new Date(t.time).getTime());
328
+ }, Bt = async (e) => {
328
329
  let n = Q("realTime");
329
330
  if (!(!n || !e.station_id)) {
330
- N.value = !0;
331
+ M.value = !0;
331
332
  try {
332
- F.value = Ft($(await t({
333
+ P.value = It($(await t({
333
334
  id: n.id,
334
- baseHttp: w.baseHttp,
335
+ baseHttp: C.baseHttp,
335
336
  reqType: n.reqType,
336
337
  variables: {
337
- [w.stationField]: e.station_id,
338
- [w.timeStartField]: e.start_time,
339
- [w.timeEndField]: e.end_time
338
+ [C.stationField]: e.station_id,
339
+ [C.timeStartField]: e.start_time,
340
+ [C.timeEndField]: e.end_time
340
341
  },
341
342
  isFormData: n.isFormData,
342
- appKey: w.appKey,
343
- appSalt: w.appSalt
343
+ appKey: C.appKey,
344
+ appSalt: C.appSalt
344
345
  })));
345
346
  } catch (e) {
346
347
  console.error("HdMajorActivity 实况数据加载失败", e);
347
348
  }
348
- N.value = !1;
349
+ M.value = !1;
349
350
  }
350
- }, Bt = async (e) => {
351
+ }, Vt = async (e) => {
351
352
  let n = Q("timeSeries");
352
353
  if (!(!n || !e.station_id)) {
353
- P.value = !0;
354
+ N.value = !0;
354
355
  try {
355
- I.value = Rt($(await t({
356
+ F.value = zt($(await t({
356
357
  id: n.id,
357
- baseHttp: w.baseHttp,
358
+ baseHttp: C.baseHttp,
358
359
  reqType: n.reqType,
359
360
  variables: {
360
- [w.stationField]: e.station_id,
361
- [w.timeStartField]: e.start_time,
362
- [w.timeEndField]: e.end_time
361
+ [C.stationField]: e.station_id,
362
+ [C.timeStartField]: e.start_time,
363
+ [C.timeEndField]: e.end_time
363
364
  },
364
365
  isFormData: n.isFormData,
365
- appKey: w.appKey,
366
- appSalt: w.appSalt
367
- }))), P.value = !1, await h(), Z();
366
+ appKey: C.appKey,
367
+ appSalt: C.appSalt
368
+ }))), N.value = !1, await m(), Z();
368
369
  } catch (e) {
369
- console.error("HdMajorActivity 时序数据加载失败", e), P.value = !1;
370
+ console.error("HdMajorActivity 时序数据加载失败", e), N.value = !1;
370
371
  }
371
372
  }
372
373
  }, Z = () => {
373
- if (!B.value) return;
374
- V &&= (V.dispose(), null);
375
- let e = I.value;
374
+ if (!z.value) return;
375
+ B &&= (B.dispose(), null);
376
+ let e = F.value;
376
377
  if (!e.length) return;
377
- let t = pt.find((e) => e.key === z.value);
378
+ let t = V.find((e) => e.key === R.value);
378
379
  if (!t) return;
379
- let r = e.filter((e) => e.type === "real"), i = e.filter((e) => e.type === "forecast"), a = Array.from(new Set([...r, ...i].map((e) => Y(e.time)))), ee = new Map(r.map((e) => [Y(e.time), K(e[t.valueField])])), te = new Map(i.map((e) => [Y(e.time), K(e[t.valueField])])), o = a.map((e) => ee.get(e) ?? null), s = a.map((e) => te.get(e) ?? null), c = t.key === "wind", l = `image://${n}`, u = new Map(r.map((e) => [Y(e.time), K(e.windDirectionAngle)])), d = new Map(i.map((e) => [Y(e.time), K(e.windDirectionAngle)])), f = (e, t, n) => n ? a.map((n, r) => {
380
+ 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) => {
380
381
  let i = t.get(n);
381
382
  return {
382
383
  value: e[r],
383
- symbol: l,
384
+ symbol: c,
384
385
  symbolSize: 18,
385
386
  symbolRotate: i == null ? 0 : -i
386
387
  };
387
388
  }) : e;
388
- V = ie.init(B.value);
389
- let p = {
389
+ B = ie.init(z.value);
390
+ let f = {
390
391
  tooltip: {
391
392
  trigger: "axis",
392
393
  formatter: (e) => {
393
394
  let n = Array.isArray(e) ? e : [e], r = `<div style="font-weight:bold;margin-bottom:4px;">${n[0]?.axisValue}</div>`;
394
395
  return n.forEach((e) => {
395
396
  let n = e.value === null || e.value === void 0 ? "--" : e.value;
396
- if (r += `<div>${e.marker} ${e.seriesName}:${n}${t.unit}</div>`, c) {
397
- let t = (e.seriesName === "实况" ? u : d).get(a[e.dataIndex]), n = t == null ? "--" : J(t);
397
+ if (r += `<div>${e.marker} ${e.seriesName}:${n}${t.unit}</div>`, s) {
398
+ let t = (e.seriesName === "实况" ? l : u).get(i[e.dataIndex]), n = t == null ? "--" : J(t);
398
399
  r += `<div style="padding-left:16px;">风向:${n}</div>`;
399
400
  }
400
401
  }), r;
@@ -412,7 +413,7 @@ var ae = {
412
413
  },
413
414
  xAxis: {
414
415
  type: "category",
415
- data: a,
416
+ data: i,
416
417
  axisLine: { lineStyle: { color: "rgba(255,255,255,0.4)" } },
417
418
  axisLabel: {
418
419
  color: "rgba(255,255,255,0.7)",
@@ -429,12 +430,12 @@ var ae = {
429
430
  series: [{
430
431
  name: "实况",
431
432
  type: t.type,
432
- data: f(o, u, c),
433
+ data: d(a, l, s),
433
434
  smooth: !0,
434
435
  itemStyle: { color: t.color },
435
436
  lineStyle: { width: 2 },
436
- symbol: c ? l : "circle",
437
- symbolSize: c ? 18 : 6,
437
+ symbol: s ? c : "circle",
438
+ symbolSize: s ? 18 : 6,
438
439
  ...t.type === "bar" ? {
439
440
  stack: "total",
440
441
  barMaxWidth: 16
@@ -442,35 +443,35 @@ var ae = {
442
443
  }, {
443
444
  name: "预报",
444
445
  type: t.type,
445
- data: f(s, d, c),
446
+ data: d(o, u, s),
446
447
  smooth: !0,
447
448
  itemStyle: { color: t.forecastColor },
448
449
  lineStyle: {
449
450
  width: 2,
450
451
  type: "dashed"
451
452
  },
452
- symbol: c ? l : "circle",
453
- symbolSize: c ? 18 : 6,
453
+ symbol: s ? c : "circle",
454
+ symbolSize: s ? 18 : 6,
454
455
  ...t.type === "bar" ? {
455
456
  stack: "total",
456
457
  barMaxWidth: 16
457
458
  } : {}
458
459
  }]
459
460
  };
460
- V.setOption(p), h(() => setTimeout(() => V?.resize(), 80));
461
- }, Vt = !1, Ht = () => {
462
- Vt ||= (document.addEventListener("click", (e) => {
461
+ B.setOption(f), m(() => setTimeout(() => B?.resize(), 80));
462
+ }, Ht = !1, Ut = () => {
463
+ Ht ||= (document.addEventListener("click", (e) => {
463
464
  let t = e.target.closest(".hd-major-marker");
464
465
  if (!t) return;
465
466
  e.stopPropagation();
466
- let n = t.getAttribute("data-markerId")?.replace("major-", "") || "", r = D.value.find((e) => String(e.id) === String(n));
467
- r && Nt(r);
467
+ let n = t.getAttribute("data-markerId")?.replace("major-", "") || "", r = E.value.find((e) => String(e.id) === String(n));
468
+ r && Pt(r);
468
469
  }), !0);
469
470
  }, Q = (e) => {
470
- let t = w.ids[e];
471
+ let t = C.ids[e];
471
472
  return t?.id ? t : null;
472
- }, $ = (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, Ut = () => O.value ? { [w.yearField]: Number(O.value) } : {}, Wt = () => {
473
- D.value = [{
473
+ }, $ = (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, Wt = () => D.value ? { [C.yearField]: Number(D.value) } : {}, Gt = () => {
474
+ E.value = [{
474
475
  id: 1,
475
476
  name: "2018上合组织青岛峰会",
476
477
  location: "青岛国际会议中心",
@@ -502,7 +503,7 @@ var ae = {
502
503
  center_longitude: 120.1725,
503
504
  station_id: "54943"
504
505
  }];
505
- }, Gt = async () => {
506
+ }, Kt = async () => {
506
507
  let e = Q("data");
507
508
  if (!e) {
508
509
  console.warn("HdMajorActivity 缺少工作流配置");
@@ -511,46 +512,46 @@ var ae = {
511
512
  try {
512
513
  let n = $(await t({
513
514
  id: e.id,
514
- baseHttp: w.baseHttp,
515
+ baseHttp: C.baseHttp,
515
516
  reqType: e.reqType,
516
- variables: Ut(),
517
+ variables: Wt(),
517
518
  isFormData: e.isFormData,
518
- appKey: w.appKey,
519
- appSalt: w.appSalt
519
+ appKey: C.appKey,
520
+ appSalt: C.appSalt
520
521
  }));
521
- Array.isArray(n) ? D.value = n : n && Array.isArray(n.list) ? D.value = n.list : D.value = [];
522
+ Array.isArray(n) ? E.value = n : n && Array.isArray(n.list) ? E.value = n.list : E.value = [];
522
523
  } catch (e) {
523
524
  console.error("HdMajorActivity 数据加载失败", e);
524
525
  }
525
- }, Kt = async () => {
526
- E.value = !0, w.mock ? Wt() : await Gt(), E.value = !1, Ht();
526
+ }, qt = async () => {
527
+ T.value = !0, C.mock ? Gt() : await Kt(), T.value = !1, Ut();
527
528
  };
528
529
  return ne(() => {
529
- Kt();
530
- }), S(U, () => {
531
- Mt();
532
- }, { immediate: !0 }), S(R, (e) => {
533
- e === "chart" && h(() => Z());
534
- }), S(z, () => {
535
- R.value === "chart" && h(() => Z());
536
- }), S(j, (e) => {
537
- e && R.value === "chart" && h(() => setTimeout(Z, 100));
538
- }), m({ openPopup: Nt }), (e, t) => {
539
- let n = a, c = i, m = r, h = ee, ne = te;
540
- return C((_(), d("div", ae, [
541
- f("button", {
530
+ qt();
531
+ }), x(U, () => {
532
+ Nt();
533
+ }, { immediate: !0 }), x(L, (e) => {
534
+ e === "chart" && m(() => Z());
535
+ }), x(R, () => {
536
+ L.value === "chart" && m(() => Z());
537
+ }), x(A, (e) => {
538
+ e && L.value === "chart" && m(() => setTimeout(Z, 100));
539
+ }), p({ openPopup: Pt }), (e, t) => {
540
+ let s = i, p = r, m = n, ne = ee, _ = te;
541
+ return S((g(), u("div", oe, [
542
+ d("button", {
542
543
  class: "HdMajorActivity-close",
543
- onClick: kt
544
- }, [...t[4] ||= [f("span", null, "✕", -1)]]),
545
- t[24] ||= f("div", { class: "HdMajorActivity-header" }, [f("div", { class: "HdMajorActivity-headerContent" }, [f("h3", { class: "HdMajorActivity-title" }, "重大活动")]), f("img", {
544
+ onClick: At
545
+ }, [...t[4] ||= [d("span", null, "✕", -1)]]),
546
+ t[24] ||= d("div", { class: "HdMajorActivity-header" }, [d("div", { class: "HdMajorActivity-headerContent" }, [d("h3", { class: "HdMajorActivity-title" }, "重大活动")]), d("img", {
546
547
  class: "HdMajorActivity-headerLine",
547
548
  src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbsAAAASBAMAAAAwI22/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAwUExURQAAAAem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/5bu5GYAAAAPdFJOUwAFwAwc2M8ULQYDn/hGXGnV2UoAAAGZSURBVEjH7ZM/S8NAGId/JYGmmeLspptThurk0CHWRXGo0Nk/S50y6CYSHMRF7Efo4uQXEIpbwUnM6OhnEIeChXjv5ZLLXdLtLCX68vDCe0eGJ7/3AJN1VcL+UImB/SruVJwYTqSAW5V3LLyaPR1c+IIdH12OPZiLcyTAjccZEdccZ0Nn4bXpC3KpCuFu5tkdziX3FJxBSBZZdFk9HempCduMk4xSitJTpOgJSSIPrx10YAUB0tYOwrQ1g12k7ZyODIYXZmQpppLV26rtbDFOXVhua2Fn7WTWwUEyAe5Zc2hiLWTTC3jjk8Hw+jrSM9/Z8raKOAtZVmyr9jbpee4lU9hvSUStw6YvOpqwiXlK9d8IL0Oq5tuqvc3KLMs7q9uyCC0y22aKvDVp4u2SjnJ1c+Wecg7h9gV4CFV8NHpEaw7yF2wVGcIa6OBx/Ax3PI6pRWx6Am98alBbpSODNVTxgAbQUpF3KeVv0s80xMUow8N//YVaqWEV9BJDdby2PBUZ1/te0uU0YzeLa623jjrrvaLOep/+str9ACyAtv25BhHcAAAAAElFTkSuQmCC",
548
549
  alt: ""
549
550
  })], -1),
550
- f("div", oe, [
551
- f("div", se, [t[5] ||= f("span", { class: "HdMajorActivity-yearLabel" }, "年份", -1), p(n, {
552
- modelValue: O.value,
553
- "onUpdate:modelValue": t[0] ||= (e) => O.value = e,
551
+ d("div", se, [
552
+ d("div", ce, [t[5] ||= d("span", { class: "HdMajorActivity-yearLabel" }, "年份", -1), f(s, {
553
+ modelValue: D.value,
554
+ "onUpdate:modelValue": t[0] ||= (e) => D.value = e,
554
555
  type: "year",
555
556
  placeholder: "全部",
556
557
  "value-format": "YYYY",
@@ -560,92 +561,88 @@ var ae = {
560
561
  teleported: !1,
561
562
  class: "HdMajorActivity-yearPicker",
562
563
  "popper-class": "HdMajorActivity-yearPopper",
563
- "disabled-date": vt,
564
- onChange: yt
564
+ "disabled-date": yt,
565
+ onChange: bt
565
566
  }, null, 8, ["modelValue"])]),
566
- U.value ? (_(), d("div", ce, [
567
- ht.value ? (_(), d("img", {
567
+ U.value ? (g(), u("div", le, [
568
+ gt.value ? (g(), u("img", {
568
569
  key: 0,
569
- src: ht.value,
570
+ src: gt.value,
570
571
  alt: "活动封面"
571
- }, null, 8, le)) : (_(), d("div", ue, "暂无封面")),
572
- f("button", {
572
+ }, null, 8, ue)) : (g(), u("div", de, "暂无封面")),
573
+ d("button", {
573
574
  class: "HdMajorActivity-coverArrow HdMajorActivity-coverArrow--left",
574
- disabled: k.value <= 0,
575
- onClick: Tt
576
- }, [...t[6] ||= [f("svg", {
575
+ disabled: O.value <= 0,
576
+ onClick: Et
577
+ }, [...t[6] ||= [d("svg", {
577
578
  viewBox: "0 0 24 24",
578
579
  width: "16",
579
580
  height: "16",
580
581
  fill: "none",
581
582
  stroke: "currentColor",
582
583
  "stroke-width": "2"
583
- }, [f("polyline", { points: "15 18 9 12 15 6" })], -1)]], 8, de),
584
- f("button", {
584
+ }, [d("polyline", { points: "15 18 9 12 15 6" })], -1)]], 8, fe),
585
+ d("button", {
585
586
  class: "HdMajorActivity-coverArrow HdMajorActivity-coverArrow--right",
586
- disabled: k.value >= H.value.length - 1,
587
- onClick: Et
588
- }, [...t[7] ||= [f("svg", {
587
+ disabled: O.value >= H.value.length - 1,
588
+ onClick: Dt
589
+ }, [...t[7] ||= [d("svg", {
589
590
  viewBox: "0 0 24 24",
590
591
  width: "16",
591
592
  height: "16",
592
593
  fill: "none",
593
594
  stroke: "currentColor",
594
595
  "stroke-width": "2"
595
- }, [f("polyline", { points: "9 18 15 12 9 6" })], -1)]], 8, fe),
596
- f("div", pe, [
597
- f("span", { class: g(["HdMajorActivity-coverStatus", wt(U.value)]) }, b(Ct(U.value)), 3),
598
- f("h4", me, b(U.value.name), 1),
599
- f("div", he, [t[8] ||= f("span", { class: "HdMajorActivity-coverTimeLabel" }, "服务时间:", -1), f("span", ge, b(St(U.value)), 1)])
600
- ])
601
- ])) : u("", !0),
602
- U.value ? (_(), d("div", _e, [t[9] ||= f("div", { class: "HdMajorActivity-sectionTitle" }, "活动介绍", -1), f("div", ve, b(U.value.introduction || "暂无介绍"), 1)])) : u("", !0),
603
- W.value.length ? (_(), d("div", ye, [t[10] ||= f("div", { class: "HdMajorActivity-sectionTitle" }, "活动图片", -1), p(m, {
596
+ }, [d("polyline", { points: "9 18 15 12 9 6" })], -1)]], 8, pe),
597
+ 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(Ct(U.value)), 1)])]), d("div", null, [d("span", { class: h(["HdMajorActivity-coverStatus", Tt(U.value)]) }, y(wt(U.value)), 3)])])
598
+ ])) : l("", !0),
599
+ U.value ? (g(), u("div", ye, [t[9] ||= d("div", { class: "HdMajorActivity-sectionTitle" }, "活动介绍", -1), d("div", be, y(U.value.introduction || "暂无介绍"), 1)])) : l("", !0),
600
+ W.value.length ? (g(), u("div", xe, [t[10] ||= d("div", { class: "HdMajorActivity-sectionTitle" }, "活动图片", -1), f(m, {
604
601
  class: "HdMajorActivity-carouselBox",
605
602
  height: "140px",
606
603
  autoplay: !1,
607
604
  "indicator-position": "outside",
608
605
  arrow: "always"
609
606
  }, {
610
- default: re(() => [(_(!0), d(o, null, y(W.value, (e, t) => (_(), l(c, { key: t }, {
611
- default: re(() => [f("img", {
607
+ default: re(() => [(g(!0), u(a, null, v(W.value, (e, t) => (g(), c(p, { key: t }, {
608
+ default: re(() => [d("img", {
612
609
  class: "HdMajorActivity-carouselImage",
613
610
  src: e,
614
611
  alt: "活动图片",
615
- onClick: (e) => Dt(t)
616
- }, null, 8, be)]),
612
+ onClick: (e) => Ot(t)
613
+ }, null, 8, Se)]),
617
614
  _: 2
618
615
  }, 1024))), 128))]),
619
616
  _: 1
620
- })])) : u("", !0),
621
- !H.value.length && !E.value ? (_(), d("div", xe, "暂无活动数据")) : u("", !0)
617
+ })])) : l("", !0),
618
+ !H.value.length && !T.value ? (g(), u("div", Ce, "暂无活动数据")) : l("", !0)
622
619
  ]),
623
- (_(), l(s, { to: "body" }, [A.value ? (_(), l(h, {
620
+ (g(), c(o, { to: "body" }, [k.value ? (g(), c(ne, {
624
621
  key: 0,
625
622
  "url-list": W.value,
626
- "initial-index": ft.value,
627
- onClose: Ot
628
- }, null, 8, ["url-list", "initial-index"])) : u("", !0)])),
629
- (_(), l(s, { to: "body" }, [j.value ? (_(), d("div", Se, [f("div", Ce, [f("div", we, [f("span", Te, b(M.value?.location || M.value?.name), 1), f("button", {
623
+ "initial-index": mt.value,
624
+ onClose: kt
625
+ }, null, 8, ["url-list", "initial-index"])) : l("", !0)])),
626
+ (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", {
630
627
  class: "HdMajorActivity-popupClose",
631
- onClick: Pt
632
- }, [...t[11] ||= [f("span", null, "✕", -1)]])]), f("div", Ee, [f("div", De, [f("div", Oe, [gt.value ? (_(), d("img", {
628
+ onClick: Ft
629
+ }, [...t[11] ||= [d("span", null, "✕", -1)]])]), d("div", Oe, [d("div", ke, [d("div", Ae, [_t.value ? (g(), u("img", {
633
630
  key: 0,
634
- src: gt.value,
631
+ src: _t.value,
635
632
  alt: "封面"
636
- }, null, 8, ke)) : (_(), d("div", Ae, "暂无封面"))]), f("div", je, [f("div", Me, [t[12] ||= f("span", null, "要素实况", -1), F.value.updateTime ? (_(), d("span", Ne, b(F.value.updateTime) + " 更新", 1)) : u("", !0)]), N.value ? (_(), d("div", Pe, "加载中...")) : (_(), d("div", Fe, [
637
- f("div", Ie, [t[13] ||= f("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "天气", -1), f("span", Le, b(mt.value), 1)]),
638
- f("div", Re, [t[14] ||= f("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "最高温度", -1), f("span", ze, b(q(F.value.maxTemp)) + "°C", 1)]),
639
- f("div", Be, [t[15] ||= f("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "最低温度", -1), f("span", Ve, b(q(F.value.minTemp)) + "°C", 1)]),
640
- f("div", He, [t[16] ||= f("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "风速", -1), f("span", Ue, b(q(F.value.windSpeed)) + " m/s", 1)]),
641
- f("div", We, [t[17] ||= f("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "风向", -1), f("span", Ge, b(F.value.windDirection || "--"), 1)]),
642
- f("div", Ke, [t[18] ||= f("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "气压", -1), f("span", qe, b(q(F.value.pressure)) + " hPa", 1)]),
643
- f("div", Je, [t[19] ||= f("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "相对湿度", -1), f("span", Ye, b(q(F.value.humidity)) + "%", 1)]),
644
- f("div", Xe, [t[20] ||= f("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "能见度", -1), f("span", Ze, b(q(F.value.visibility)) + " m", 1)])
645
- ]))])]), f("div", Qe, [
646
- f("div", $e, [t[21] ||= f("span", { class: "HdMajorActivity-popupSectionTitle" }, "要素时序", -1), p(n, {
647
- modelValue: L.value,
648
- "onUpdate:modelValue": t[1] ||= (e) => L.value = e,
633
+ }, 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, [
634
+ d("div", Re, [t[13] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "天气", -1), d("span", ze, y(ht.value), 1)]),
635
+ d("div", Be, [t[14] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "最高温度", -1), d("span", Ve, y(q(P.value.maxTemp)) + "°C", 1)]),
636
+ d("div", He, [t[15] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "最低温度", -1), d("span", Ue, y(q(P.value.minTemp)) + "°C", 1)]),
637
+ d("div", We, [t[16] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "风速", -1), d("span", Ge, y(q(P.value.windSpeed)) + " m/s", 1)]),
638
+ d("div", Ke, [t[17] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "风向", -1), d("span", qe, y(P.value.windDirection || "--"), 1)]),
639
+ d("div", Je, [t[18] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "气压", -1), d("span", Ye, y(q(P.value.pressure)) + " hPa", 1)]),
640
+ d("div", Xe, [t[19] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "相对湿度", -1), d("span", Ze, y(q(P.value.humidity)) + "%", 1)]),
641
+ d("div", Qe, [t[20] ||= d("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "能见度", -1), d("span", $e, y(q(P.value.visibility)) + " m", 1)])
642
+ ]))])]), d("div", et, [
643
+ d("div", tt, [t[21] ||= d("span", { class: "HdMajorActivity-popupSectionTitle" }, "要素时序", -1), f(s, {
644
+ modelValue: I.value,
645
+ "onUpdate:modelValue": t[1] ||= (e) => I.value = e,
649
646
  type: "daterange",
650
647
  size: "small",
651
648
  disabled: !0,
@@ -656,48 +653,48 @@ var ae = {
656
653
  class: "HdMajorActivity-popupTimePicker",
657
654
  "popper-class": "HdMajorActivity-yearPopper"
658
655
  }, null, 8, ["modelValue"])]),
659
- f("div", et, [f("button", {
660
- class: g(["HdMajorActivity-popupTab", { "is-active": R.value === "chart" }]),
661
- onClick: t[2] ||= (e) => R.value = "chart"
662
- }, "图表", 2), f("button", {
663
- class: g(["HdMajorActivity-popupTab", { "is-active": R.value === "table" }]),
664
- onClick: t[3] ||= (e) => R.value = "table"
656
+ d("div", nt, [d("button", {
657
+ class: h(["HdMajorActivity-popupTab", { "is-active": L.value === "chart" }]),
658
+ onClick: t[2] ||= (e) => L.value = "chart"
659
+ }, "图表", 2), d("button", {
660
+ class: h(["HdMajorActivity-popupTab", { "is-active": L.value === "table" }]),
661
+ onClick: t[3] ||= (e) => L.value = "table"
665
662
  }, "表格", 2)]),
666
- C(f("div", tt, [(_(), d(o, null, y(pt, (e) => f("button", {
663
+ S(d("div", rt, [(g(), u(a, null, v(V, (e) => d("button", {
667
664
  key: e.key,
668
- class: g(["HdMajorActivity-popupElementTab", { "is-active": z.value === e.key }]),
669
- onClick: (t) => z.value = e.key
670
- }, b(e.label), 11, nt)), 64))], 512), [[x, R.value === "chart"]]),
671
- P.value ? (_(), d("div", rt, "加载中...")) : (_(), d("div", it, [C(f("div", {
665
+ class: h(["HdMajorActivity-popupElementTab", { "is-active": R.value === e.key }]),
666
+ onClick: (t) => R.value = e.key
667
+ }, y(e.label), 11, it)), 64))], 512), [[b, L.value === "chart"]]),
668
+ N.value ? (g(), u("div", at, "加载中...")) : (g(), u("div", ot, [S(d("div", {
672
669
  ref_key: "chartRef",
673
- ref: B,
670
+ ref: z,
674
671
  class: "HdMajorActivity-popupChart"
675
- }, null, 512), [[x, R.value === "chart"]]), C(f("div", at, [f("table", ot, [t[23] ||= f("thead", null, [f("tr", null, [
676
- f("th", null, "时间"),
677
- f("th", null, "温度(°C)"),
678
- f("th", null, "风速(m/s)"),
679
- f("th", null, "风向"),
680
- f("th", null, "小时降水(mm)"),
681
- f("th", null, "相对湿度(%)"),
682
- f("th", null, "能见度(km)"),
683
- f("th", null, "类型")
684
- ])], -1), f("tbody", null, [(_(!0), d(o, null, y(_t.value, (e, t) => (_(), d("tr", { key: t }, [
685
- f("td", null, b(e.time), 1),
686
- f("td", null, b(q(e.temp)), 1),
687
- f("td", null, b(q(e.windSpeed)), 1),
688
- f("td", null, b(e.windDirection || "--"), 1),
689
- f("td", null, b(q(e.rain)), 1),
690
- f("td", null, b(q(e.humidity)), 1),
691
- f("td", null, b(q(e.visibility)), 1),
692
- f("td", null, [f("span", { class: g(["HdMajorActivity-popupTypeTag", `is-${e.type || "real"}`]) }, b(e.type === "forecast" ? "预报" : "实况"), 3)])
693
- ]))), 128)), _t.value.length ? u("", !0) : (_(), d("tr", st, [...t[22] ||= [f("td", {
672
+ }, null, 512), [[b, L.value === "chart"]]), S(d("div", st, [d("table", ct, [t[23] ||= d("thead", null, [d("tr", null, [
673
+ d("th", null, "时间"),
674
+ d("th", null, "温度(°C)"),
675
+ d("th", null, "风速(m/s)"),
676
+ d("th", null, "风向"),
677
+ d("th", null, "小时降水(mm)"),
678
+ d("th", null, "相对湿度(%)"),
679
+ d("th", null, "能见度(km)"),
680
+ d("th", null, "类型")
681
+ ])], -1), d("tbody", null, [(g(!0), u(a, null, v(vt.value, (e, t) => (g(), u("tr", { key: t }, [
682
+ d("td", null, y(e.time), 1),
683
+ d("td", null, y(q(e.temp)), 1),
684
+ d("td", null, y(q(e.windSpeed)), 1),
685
+ d("td", null, y(e.windDirection || "--"), 1),
686
+ d("td", null, y(q(e.rain)), 1),
687
+ d("td", null, y(q(e.humidity)), 1),
688
+ d("td", null, y(q(e.visibility)), 1),
689
+ d("td", null, [d("span", { class: h(["HdMajorActivity-popupTypeTag", `is-${e.type || "real"}`]) }, y(e.type === "forecast" ? "预报" : "实况"), 3)])
690
+ ]))), 128)), vt.value.length ? l("", !0) : (g(), u("tr", lt, [...t[22] ||= [d("td", {
694
691
  colspan: "8",
695
692
  class: "HdMajorActivity-popupNoData"
696
- }, "暂无数据", -1)]]))])])], 512), [[x, R.value === "table"]])]))
697
- ])])])])) : u("", !0)]))
698
- ])), [[ne, E.value]]);
693
+ }, "暂无数据", -1)]]))])])], 512), [[b, L.value === "table"]])]))
694
+ ])])])])) : l("", !0)]))
695
+ ])), [[_, T.value]]);
699
696
  };
700
697
  }
701
- }), [["__scopeId", "data-v-741c4df3"]]);
698
+ }), [["__scopeId", "data-v-ba38fdbc"]]);
702
699
  //#endregion
703
- export { ct as t };
700
+ export { ut as t };