nxd-plugin 1.8.21 → 1.8.23

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 (106) hide show
  1. package/dist/chunks/YCServiceSummary-D9qP6hLO.mjs +2 -0
  2. package/dist/chunks/{component-AiChat-C_DePYiS.mjs → component-AiChat-BwP3zj0h.mjs} +1167 -884
  3. package/dist/chunks/{component-AqiMonitor-B4ZLQZOd.mjs → component-AqiMonitor-Cga2wb4h.mjs} +27 -31
  4. package/dist/chunks/{component-ChartCumulativePre-DQqNwEkp.mjs → component-ChartCumulativePre-CkQrY-fM.mjs} +2 -2
  5. package/dist/chunks/{component-ChartServiceMaterial-BSXCSmjT.mjs → component-ChartServiceMaterial-BSfXMgj4.mjs} +2 -2
  6. package/dist/chunks/{component-Duty-DnkxgYav.mjs → component-Duty-DLMdCDNu.mjs} +2 -2
  7. package/dist/chunks/{component-EarlyWarningStatistic-DZIISSb4.mjs → component-EarlyWarningStatistic-CHCmDM5w.mjs} +2 -2
  8. package/dist/chunks/{component-EarlyWarningStatistic2-vSCEWtaq.mjs → component-EarlyWarningStatistic2-D_Uc9rbm.mjs} +2 -2
  9. package/dist/chunks/{component-Forecast72h-DicwnEaB.mjs → component-Forecast72h-CwDS2BCV.mjs} +91 -92
  10. package/dist/chunks/{component-GeologyLiveAlarm-DcLkKxQi.mjs → component-GeologyLiveAlarm-TXjC0N1b.mjs} +2 -2
  11. package/dist/chunks/{component-GridForecastMsg-B1J5xBf1.mjs → component-GridForecastMsg-J7V2m_bm.mjs} +1 -2
  12. package/dist/chunks/{component-HDSeaLegend-ubUWj-K6.mjs → component-HDSeaLegend-BbW1vk-L.mjs} +2 -1
  13. package/dist/chunks/{component-HdCameraList-DE5T_NCe.mjs → component-HdCameraList-ya7gQWsk.mjs} +84 -101
  14. package/dist/chunks/{component-HdFarmStation-Dr16UrnR.mjs → component-HdFarmStation-DbvF94Z6.mjs} +77 -81
  15. package/dist/chunks/{component-HdFarmStationDialog-DNAo261X.mjs → component-HdFarmStationDialog-p3vjS1JB.mjs} +265 -282
  16. package/dist/chunks/{component-HdForecastProducts-DW94eZkZ.mjs → component-HdForecastProducts-2ZXLMLdw.mjs} +1 -2
  17. package/dist/chunks/{component-HdHeatChart-QyRCV140.mjs → component-HdHeatChart-CM4uhNsK.mjs} +1 -2
  18. package/dist/chunks/{component-HdHeatChartDialog-CwUk9qQm.mjs → component-HdHeatChartDialog-CxIaxIg5.mjs} +2 -3
  19. package/dist/chunks/{component-HdHeatService-Cbsa46Kg.mjs → component-HdHeatService-BNRBwLEC.mjs} +1 -2
  20. package/dist/chunks/{component-HdInsectDetailList-Br06iK7W.mjs → component-HdInsectDetailList-CNfJip9R.mjs} +1 -2
  21. package/dist/chunks/{component-HdInsectList-Djo-0pVh.mjs → component-HdInsectList-D0fRM6cx.mjs} +1 -2
  22. package/dist/chunks/component-HdMajorActivity-C95MgI5Y.mjs +704 -0
  23. package/dist/chunks/{component-HdObservation-5k_0GZGV.mjs → component-HdObservation-DUMGmfJN.mjs} +3 -4
  24. package/dist/chunks/{component-HdPreSituation-B0yXJZVG.mjs → component-HdPreSituation-IILymZ3h.mjs} +3 -4
  25. package/dist/chunks/{component-HdQxServiceEffects-Ds1vj_DV.mjs → component-HdQxServiceEffects-B-C0VBH3.mjs} +1 -2
  26. package/dist/chunks/{component-HdRadarList-NLZ0YNV8.mjs → component-HdRadarList-DSMrSb-T.mjs} +3 -3
  27. package/dist/chunks/{component-HdRadarTime-D7-YoOkE.mjs → component-HdRadarTime-FEhuGBEg.mjs} +1 -2
  28. package/dist/chunks/{component-HdRadarTimeLine-CJ0_ejKf.mjs → component-HdRadarTimeLine-UfzKKTgp.mjs} +1 -2
  29. package/dist/chunks/{component-HdRisk-fuJNWgJD.mjs → component-HdRisk-B3N71NoC.mjs} +2 -3
  30. package/dist/chunks/{component-HdSeaCase-D21rq9pv.mjs → component-HdSeaCase-Cim-Y8hP.mjs} +1 -2
  31. package/dist/chunks/{component-HdServiceMarterial-CgcHHy6J.mjs → component-HdServiceMarterial-BxifbLBR.mjs} +2 -3
  32. package/dist/chunks/{component-HdServiceRequirements-D2EdgZjN.mjs → component-HdServiceRequirements-BawMn0jA.mjs} +2 -3
  33. package/dist/chunks/{component-HdSoil-D58PIu6D.mjs → component-HdSoil-DaGj6RPD.mjs} +2 -3
  34. package/dist/chunks/{component-HdSoilDetailList-BpbPwCjd.mjs → component-HdSoilDetailList-fBu8i74J.mjs} +1 -2
  35. package/dist/chunks/{component-HdStationTem-qqZ5UXom.mjs → component-HdStationTem-DgGFJ20c.mjs} +3 -4
  36. package/dist/chunks/{component-HdSuggestion-Dbdlr5zS.mjs → component-HdSuggestion-BnpgzKkp.mjs} +2 -3
  37. package/dist/chunks/{component-HdThreeWeatherTrend-zSmR2LIO.mjs → component-HdThreeWeatherTrend-Bmire4sm.mjs} +3 -4
  38. package/dist/chunks/{component-HdWaveForcast-DllKzNgu.mjs → component-HdWaveForcast-Bc3sB9Fn.mjs} +2 -3
  39. package/dist/chunks/{component-HighQuality-BNVnCK0d.mjs → component-HighQuality-DjDZKwMT.mjs} +1 -2
  40. package/dist/chunks/{component-HighWayEarlyWarningRed-CwzMQCqp.mjs → component-HighWayEarlyWarningRed-CzBI_AJA.mjs} +2 -2
  41. package/dist/chunks/{component-HighWayFreeze-Ds2Hz7pR.mjs → component-HighWayFreeze-sFMx0umE.mjs} +2 -2
  42. package/dist/chunks/{component-HighwayLiveAlarm-Do4pwmnJ.mjs → component-HighwayLiveAlarm-Ozq7Y8qF.mjs} +2 -2
  43. package/dist/chunks/{component-HighwayLiveAlarmNew-DoWns_RH.mjs → component-HighwayLiveAlarmNew-ByL2OYk0.mjs} +3 -3
  44. package/dist/chunks/{component-HighwayStations-BBQa33JX.mjs → component-HighwayStations-DXj5h1vg.mjs} +2 -2
  45. package/dist/chunks/{component-HighwayWeatherForecast-C-kwyE6Q.mjs → component-HighwayWeatherForecast-6I714FL1.mjs} +69 -69
  46. package/dist/chunks/{component-IframeWeb-uP8unwJj.mjs → component-IframeWeb-DDYUNdVl.mjs} +1 -1
  47. package/dist/chunks/{component-ImageGeneration-CLAge4U1.mjs → component-ImageGeneration-C0K8D1lM.mjs} +2 -1
  48. package/dist/chunks/{component-IntroducePic-C8X8Y6hx.mjs → component-IntroducePic-Bzsjmjql.mjs} +1 -2
  49. package/dist/chunks/{component-LithiumBatteryMiningArea-xc5REiPe.mjs → component-LithiumBatteryMiningArea-ClvF3vsD.mjs} +2 -2
  50. package/dist/chunks/{component-MapPopup-DXRLi4wJ.mjs → component-MapPopup-BnKmR10m.mjs} +1 -1
  51. package/dist/chunks/{component-MaterialPreview-B9iSbEIO.mjs → component-MaterialPreview-DG5VgGJp.mjs} +1 -2
  52. package/dist/chunks/{component-PieLegend-DPwAQJxO.mjs → component-PieLegend-Y_AZPS0g.mjs} +1 -1
  53. package/dist/chunks/{component-PrecipitationRanking-CwP3NZlf.mjs → component-PrecipitationRanking-71G9U_UP.mjs} +3 -4
  54. package/dist/chunks/{component-RadarChart-BxEzHVOE.mjs → component-RadarChart-u6Xs1TTB.mjs} +2 -2
  55. package/dist/chunks/{component-RadarLegend-DVoe6ojQ.mjs → component-RadarLegend-9ahVi99l.mjs} +1 -1
  56. package/dist/chunks/{component-RadarShortTerm-7v_EauV4.mjs → component-RadarShortTerm-wwvpXBvp.mjs} +4 -4
  57. package/dist/chunks/{component-RadarTime-CT8WOoJR.mjs → component-RadarTime-BqkIprmh.mjs} +2 -2
  58. package/dist/chunks/{component-RenderMarkdown-CxAwaqBM.mjs → component-RenderMarkdown-Cip_f4e8.mjs} +2 -2
  59. package/dist/chunks/{component-ReservoirLiveAlarm-CWkaa2z8.mjs → component-ReservoirLiveAlarm-D6fDm2mR.mjs} +3 -3
  60. package/dist/chunks/{component-ServiceMaterial-CNjEwMGZ.mjs → component-ServiceMaterial-DHdRLUhG.mjs} +2 -2
  61. package/dist/chunks/{component-ServiceMaterialsBtn-DWBa1Hpa.mjs → component-ServiceMaterialsBtn-B6fjh9Bc.mjs} +2 -1
  62. package/dist/chunks/{component-StationDialog-usekZclX.mjs → component-StationDialog-DP9cwrI_.mjs} +2 -3
  63. package/dist/chunks/{component-StationList-B0bav8JG.mjs → component-StationList-Cfmz5c3d.mjs} +3 -4
  64. package/dist/chunks/{component-TimeBasedForecast-l0RpjVYi.mjs → component-TimeBasedForecast-DIBNCv4O.mjs} +36 -36
  65. package/dist/chunks/{component-Typhoon-Cf8qko_n.mjs → component-Typhoon-4Oj6wl91.mjs} +16 -16
  66. package/dist/chunks/{component-WarningLine-B2HyTDUW.mjs → component-WarningLine-XjCN_f4w.mjs} +2 -2
  67. package/dist/chunks/{component-WarningSignal-Cy8MQ6oC.mjs → component-WarningSignal-DPUOC73O.mjs} +3 -3
  68. package/dist/chunks/{component-WeatherForecast-B-MV7oqR.mjs → component-WeatherForecast-Cl3G0gZG.mjs} +36 -36
  69. package/dist/chunks/{component-YCDataMonitor-p7tSzU_b.mjs → component-YCDataMonitor-Cmugq2Hc.mjs} +1 -2
  70. package/dist/chunks/{component-YCDataService-BBVuyu-D.mjs → component-YCDataService-Veq9EEB6.mjs} +3 -4
  71. package/dist/chunks/{component-YCHighWaySummary-BH34LVVj.mjs → component-YCHighWaySummary-BfcLGdxr.mjs} +2 -2
  72. package/dist/chunks/{component-YCHome-CtSa__qB.mjs → component-YCHome-BgGFtVlS.mjs} +3 -4
  73. package/dist/chunks/{component-YCHomeLegend-DqzGcZgD.mjs → component-YCHomeLegend-jG8vwIka.mjs} +2 -1
  74. package/dist/chunks/{component-YCLoginNew-zgG8m4VV.mjs → component-YCLoginNew-BKMD-5TL.mjs} +9 -10
  75. package/dist/chunks/component-YCServiceSummary-C2K81UiN.mjs +869 -0
  76. package/dist/components/AiChat/AiChat.vue.d.ts +18 -0
  77. package/dist/components/AiChat/AiChatResponse.vue.d.ts +2 -0
  78. package/dist/components/AiChat/AiChatThinking.vue.d.ts +4 -0
  79. package/dist/components/AiChat/types.d.ts +1 -0
  80. package/dist/components/HdCameraList/HdCameraList.vue.d.ts +0 -10
  81. package/dist/components/HdFarmStationDialog/HdFarmStationDialog.vue.d.ts +0 -69
  82. package/dist/components/HdMajorActivity/HdMajorActivity.vue.d.ts +74 -0
  83. package/dist/components/YCServiceSummary/YCAIChatPanel.vue.d.ts +22 -2
  84. package/dist/components/YCServiceSummary/YCServiceSummary.vue.d.ts +21 -2
  85. package/dist/components/YCServiceSummary/YCServiceSummaryGeologyRefineAnalysis.vue.d.ts +24 -0
  86. package/dist/components/YCServiceSummary/YCServiceSummaryGeologyTrafficAnalysis.vue.d.ts +24 -0
  87. package/dist/components/YCServiceSummary/YCServiceSummaryRefineAnalysis.vue.d.ts +21 -2
  88. package/dist/components/YCServiceSummary/YCServiceSummaryReservoirRefineAnalysis.vue.d.ts +24 -0
  89. package/dist/components/YCServiceSummary/YCServiceSummaryReservoirTrafficAnalysis.vue.d.ts +24 -0
  90. package/dist/components/YCServiceSummary/YCServiceSummaryTrafficAnalysis.vue.d.ts +21 -2
  91. package/dist/index.d.ts +2 -1
  92. package/dist/nxd-plugin.mjs +75 -74
  93. package/dist/styles/component-AiChat.css +1 -1
  94. package/dist/styles/component-Forecast72h.css +1 -1
  95. package/dist/styles/component-HdCameraList.css +1 -1
  96. package/dist/styles/component-HdFarmStation.css +1 -1
  97. package/dist/styles/component-HdFarmStationDialog.css +1 -1
  98. package/dist/styles/component-HdInsectDetailList.css +1 -1
  99. package/dist/styles/component-HdMajorActivity.css +1 -0
  100. package/dist/styles/component-YCLoginNew.css +1 -1
  101. package/dist/styles/component-YCServiceSummary.css +1 -1
  102. package/dist/utils/request.d.ts +1 -0
  103. package/package.json +1 -1
  104. package/dist/chunks/YCServiceSummary-9W7E-cRv.mjs +0 -2
  105. package/dist/chunks/component-YCServiceSummary-KF3yjd4u.mjs +0 -354
  106. package/dist/components/YCServiceSummary/types.d.ts +0 -14
@@ -0,0 +1,704 @@
1
+ import { i as e, o as t } from "./component-AiChat-BwP3zj0h.mjs";
2
+ import { n } from "./component-Forecast72h-CwDS2BCV.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";
5
+ import * as ie from "echarts";
6
+ //#region src/components/HdMajorActivity/HdMajorActivity.vue?vue&type=script&setup=true&lang.ts
7
+ var ae = {
8
+ class: "HdMajorActivity",
9
+ "element-loading-background": "rgba(0, 0, 0, 0.5)"
10
+ }, oe = { class: "HdMajorActivity-body" }, se = { class: "HdMajorActivity-yearBar" }, ce = {
11
+ key: 0,
12
+ class: "HdMajorActivity-cover"
13
+ }, le = ["src"], ue = {
14
+ key: 1,
15
+ 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
+ key: 1,
18
+ class: "HdMajorActivity-section"
19
+ }, ve = { class: "HdMajorActivity-introduction" }, ye = {
20
+ key: 2,
21
+ class: "HdMajorActivity-section"
22
+ }, be = ["src", "onClick"], xe = {
23
+ key: 3,
24
+ class: "HdMajorActivity-noData"
25
+ }, Se = {
26
+ key: 0,
27
+ 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
+ key: 1,
30
+ class: "HdMajorActivity-popupCoverPlaceholder"
31
+ }, je = { class: "HdMajorActivity-popupRealtime" }, Me = { class: "HdMajorActivity-popupRealtimeTitle" }, Ne = {
32
+ key: 0,
33
+ class: "HdMajorActivity-popupRealtimeUpdate"
34
+ }, Pe = {
35
+ key: 0,
36
+ class: "HdMajorActivity-popupLoading"
37
+ }, Fe = {
38
+ key: 1,
39
+ 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
+ key: 0,
42
+ class: "HdMajorActivity-popupLoading"
43
+ }, it = { key: 1 }, at = { class: "HdMajorActivity-popupTableWrap" }, ot = { class: "HdMajorActivity-popupTable" }, st = { key: 0 }, ct = /* @__PURE__ */ e(/* @__PURE__ */ m({
44
+ __name: "HdMajorActivity",
45
+ props: {
46
+ mock: {
47
+ type: Boolean,
48
+ default: !1
49
+ },
50
+ baseHttp: { default: "" },
51
+ appKey: { default: "" },
52
+ appSalt: { default: "" },
53
+ imgBaseUrl: { default: "" },
54
+ ids: { default: () => ({}) },
55
+ refreshInterval: { default: 0 },
56
+ yearField: { default: "year" },
57
+ stationField: { default: "stationIdC" },
58
+ timeStartField: { default: "startTime" },
59
+ timeEndField: { default: "endTime" },
60
+ layerBaseUrl: { default: "" }
61
+ },
62
+ emits: [
63
+ "close",
64
+ "addMarker",
65
+ "clearMarker",
66
+ "addPolygon",
67
+ "removePolygon",
68
+ "addLayer",
69
+ "removeLayer",
70
+ "mapView"
71
+ ],
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 = [
74
+ {
75
+ key: "temperature",
76
+ label: "温度",
77
+ valueField: "temp",
78
+ unit: "°C",
79
+ type: "line",
80
+ realField: "tem",
81
+ forecastField: "tmp",
82
+ color: "#FF7D00",
83
+ forecastColor: "#FFC72C"
84
+ },
85
+ {
86
+ key: "humidity",
87
+ label: "湿度",
88
+ valueField: "humidity",
89
+ unit: "%",
90
+ type: "line",
91
+ realField: "rhu_min",
92
+ forecastField: "erh",
93
+ color: "#00B42A",
94
+ forecastColor: "#7CFC00"
95
+ },
96
+ {
97
+ key: "wind",
98
+ label: "风向风速",
99
+ valueField: "windSpeed",
100
+ unit: "m/s",
101
+ type: "line",
102
+ realField: "win_s_inst_max",
103
+ forecastField: "eda10",
104
+ color: "#05ddfa",
105
+ forecastColor: "#00FFFF"
106
+ },
107
+ {
108
+ key: "visibility",
109
+ label: "能见度",
110
+ valueField: "visibility",
111
+ unit: "m",
112
+ type: "line",
113
+ realField: "vis_min",
114
+ forecastField: "vis",
115
+ color: "#F7BA1E",
116
+ forecastColor: "#FFD700"
117
+ },
118
+ {
119
+ key: "rain",
120
+ label: "降水",
121
+ valueField: "rain",
122
+ unit: "mm",
123
+ type: "bar",
124
+ realField: "",
125
+ forecastField: "er01",
126
+ color: "#165DFF",
127
+ forecastColor: "#5B8FF9"
128
+ }
129
+ ], mt = c(() => {
130
+ let e = F.value, t = K(e.humidity), n = K(e.visibility), r = K(e.windSpeed);
131
+ 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(() => {
136
+ let e = U.value?.images;
137
+ 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
+ ...e,
140
+ time: Y(e.time)
141
+ }))), vt = (e) => {
142
+ let t = e.getFullYear();
143
+ return t < ut || t > dt;
144
+ }, yt = () => {
145
+ k.value = 0, Gt();
146
+ }, bt = (e) => {
147
+ if (!e) return null;
148
+ let t = new Date(e);
149
+ 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
+ if (e == null || e === "") return !0;
152
+ let t = Number(e);
153
+ return Number.isFinite(t) ? t === -1 || t === 999 || t === 9999 : !1;
154
+ }, K = (e) => {
155
+ if (xt(e)) return null;
156
+ let t = Number(e);
157
+ return Number.isFinite(t) ? t : null;
158
+ }, q = (e) => xt(e) ? "--" : String(e), J = (e) => {
159
+ let t = K(e);
160
+ return t === null ? "--" : [
161
+ "北风",
162
+ "东北风",
163
+ "东风",
164
+ "东南风",
165
+ "南风",
166
+ "西南风",
167
+ "西风",
168
+ "西北风"
169
+ ][Math.round((t % 360 + 360) % 360 / 45) % 8];
170
+ }, Y = (e) => {
171
+ if (!e) return "--";
172
+ let t = new Date(e);
173
+ 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
+ if (e.status === 0) return "未开始";
176
+ if (e.status === 1) return "进行中";
177
+ if (e.status === 2) return "已结束";
178
+ 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
+ return n && t < n ? "未开始" : r && t > r ? "已结束" : "进行中";
180
+ }, wt = (e) => {
181
+ let t = Ct(e);
182
+ return t === "未开始" ? "HdMajorActivity-status--pending" : t === "进行中" ? "HdMajorActivity-status--active" : "HdMajorActivity-status--ended";
183
+ }, Tt = () => {
184
+ k.value > 0 && k.value--;
185
+ }, 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;
191
+ }, kt = () => {
192
+ T("close", "HdMajorActivity");
193
+ }, At = () => {
194
+ T("clearMarker", "HdMajorActivity"), T("removePolygon", "HdMajorActivity"), T("removeLayer", { name: "HdMajorActivity" });
195
+ }, jt = (e) => {
196
+ if (!e) return [];
197
+ if (Array.isArray(e)) return e;
198
+ try {
199
+ let t = JSON.parse(e);
200
+ if (Array.isArray(t)) return t;
201
+ } catch {
202
+ console.warn("HdMajorActivity 区域坐标解析失败", e);
203
+ }
204
+ return [];
205
+ }, Mt = () => {
206
+ let e = U.value;
207
+ if (!e) {
208
+ At();
209
+ return;
210
+ }
211
+ At(), e.layer_id && w.layerBaseUrl && T("addLayer", {
212
+ name: "HdMajorActivity",
213
+ oneLayer: {
214
+ mapUrl: w.layerBaseUrl,
215
+ type: e.layer_id,
216
+ opacity: 1
217
+ },
218
+ visible: !0,
219
+ zIndex: 10
220
+ });
221
+ let t = jt(e.area_coordinates);
222
+ t.length >= 3 && !e.layer_id && T("addPolygon", {
223
+ removePolygon: "HdMajorActivity",
224
+ polygonArr: [{
225
+ polygonJson: t.map(([e, t]) => ({
226
+ lng: e,
227
+ lat: t
228
+ })),
229
+ lineColor: "#FFD700",
230
+ color: "#FFD700",
231
+ weight: 2,
232
+ fillColor: "#FFD700",
233
+ fillOpacity: .2,
234
+ otherData: { polyId: "HdMajorActivity" },
235
+ zIndex: 10
236
+ }]
237
+ });
238
+ let n = Number(e.center_latitude), r = Number(e.center_longitude);
239
+ Number.isFinite(n) && Number.isFinite(r) && (T("addMarker", {
240
+ mapMarker: {
241
+ clickOpen: !0,
242
+ spotObject: [{
243
+ offsetX: -12,
244
+ offsetY: -24,
245
+ minZoom: 10,
246
+ spotArrone: [{
247
+ lng: r,
248
+ lat: n,
249
+ htmlString: `
250
+ <div class="hd-major-marker" title="${e.location}" style="position:relative;display:inline-block;width:24px;height:24px;cursor:pointer;">
251
+ <svg viewBox="0 0 24 24" width="24" height="24" fill="#05ddfa" stroke="#fff" stroke-width="1.5">
252
+ <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"/>
253
+ <circle cx="12" cy="9" r="2.5" fill="#fff"/>
254
+ </svg>
255
+ </div>
256
+ <div style="color:#fff;font-size:10px;text-shadow:0 0 5px #000;">${e.location}</div>
257
+ `,
258
+ data: e,
259
+ otherData: {
260
+ markId: "HdMajorActivity",
261
+ activityId: e.id
262
+ }
263
+ }]
264
+ }],
265
+ drawArrObj: []
266
+ },
267
+ removeMarker: "HdMajorActivity"
268
+ }), T("mapView", {
269
+ lng: r,
270
+ lat: n,
271
+ zoom: 12
272
+ }));
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) => {
278
+ if (!e) return {};
279
+ let t = Array.isArray(e) ? e[0] : e;
280
+ if (!t || typeof t != "object") return {};
281
+ let n = K(t.win_d_s_max);
282
+ return {
283
+ temp: t.tem,
284
+ maxTemp: t.tem_max,
285
+ minTemp: t.tem_min,
286
+ windSpeed: t.win_s_inst_max,
287
+ windDirectionAngle: t.win_d_s_max,
288
+ windDirection: n === null ? "--" : J(n),
289
+ pressure: t.prs,
290
+ humidity: t.rhu_min,
291
+ visibility: t.vis_min,
292
+ updateTime: t.datetime_bj
293
+ };
294
+ }, It = (e) => {
295
+ let t = K(e.win_d_s_max);
296
+ return {
297
+ time: e.datetime_bj,
298
+ temp: e.tem,
299
+ windSpeed: e.win_s_inst_max,
300
+ windDirectionAngle: e.win_d_s_max,
301
+ windDirection: t === null ? "--" : J(t),
302
+ rain: null,
303
+ humidity: e.rhu_min,
304
+ pressure: e.prs,
305
+ visibility: e.vis_min,
306
+ type: "real"
307
+ };
308
+ }, Lt = (e) => {
309
+ let t = K(e.eda10_dir);
310
+ return {
311
+ time: e.f_time,
312
+ temp: e.tmp,
313
+ windSpeed: e.eda10,
314
+ windDirectionAngle: e.eda10_dir,
315
+ windDirection: t === null ? "--" : J(t),
316
+ rain: e.er01,
317
+ humidity: e.erh,
318
+ pressure: null,
319
+ visibility: e.vis,
320
+ type: "forecast"
321
+ };
322
+ }, Rt = (e) => {
323
+ let t = Array.isArray(e) ? e[0] : e;
324
+ if (!t || typeof t != "object") return [];
325
+ 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) => {
328
+ let n = Q("realTime");
329
+ if (!(!n || !e.station_id)) {
330
+ N.value = !0;
331
+ try {
332
+ F.value = Ft($(await t({
333
+ id: n.id,
334
+ baseHttp: w.baseHttp,
335
+ reqType: n.reqType,
336
+ variables: {
337
+ [w.stationField]: e.station_id,
338
+ [w.timeStartField]: e.start_time,
339
+ [w.timeEndField]: e.end_time
340
+ },
341
+ isFormData: n.isFormData,
342
+ appKey: w.appKey,
343
+ appSalt: w.appSalt
344
+ })));
345
+ } catch (e) {
346
+ console.error("HdMajorActivity 实况数据加载失败", e);
347
+ }
348
+ N.value = !1;
349
+ }
350
+ }, Bt = async (e) => {
351
+ let n = Q("timeSeries");
352
+ if (!(!n || !e.station_id)) {
353
+ P.value = !0;
354
+ try {
355
+ I.value = Rt($(await t({
356
+ id: n.id,
357
+ baseHttp: w.baseHttp,
358
+ reqType: n.reqType,
359
+ variables: {
360
+ [w.stationField]: e.station_id,
361
+ [w.timeStartField]: e.start_time,
362
+ [w.timeEndField]: e.end_time
363
+ },
364
+ isFormData: n.isFormData,
365
+ appKey: w.appKey,
366
+ appSalt: w.appSalt
367
+ }))), P.value = !1, await h(), Z();
368
+ } catch (e) {
369
+ console.error("HdMajorActivity 时序数据加载失败", e), P.value = !1;
370
+ }
371
+ }
372
+ }, Z = () => {
373
+ if (!B.value) return;
374
+ V &&= (V.dispose(), null);
375
+ let e = I.value;
376
+ if (!e.length) return;
377
+ let t = pt.find((e) => e.key === z.value);
378
+ 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 i = t.get(n);
381
+ return {
382
+ value: e[r],
383
+ symbol: l,
384
+ symbolSize: 18,
385
+ symbolRotate: i == null ? 0 : -i
386
+ };
387
+ }) : e;
388
+ V = ie.init(B.value);
389
+ let p = {
390
+ tooltip: {
391
+ trigger: "axis",
392
+ formatter: (e) => {
393
+ let n = Array.isArray(e) ? e : [e], r = `<div style="font-weight:bold;margin-bottom:4px;">${n[0]?.axisValue}</div>`;
394
+ return n.forEach((e) => {
395
+ 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);
398
+ r += `<div style="padding-left:16px;">风向:${n}</div>`;
399
+ }
400
+ }), r;
401
+ }
402
+ },
403
+ legend: {
404
+ data: ["实况", "预报"],
405
+ textStyle: { color: "#fff" }
406
+ },
407
+ grid: {
408
+ left: "3%",
409
+ right: "4%",
410
+ bottom: "3%",
411
+ containLabel: !0
412
+ },
413
+ xAxis: {
414
+ type: "category",
415
+ data: a,
416
+ axisLine: { lineStyle: { color: "rgba(255,255,255,0.4)" } },
417
+ axisLabel: {
418
+ color: "rgba(255,255,255,0.7)",
419
+ rotate: 30
420
+ }
421
+ },
422
+ yAxis: {
423
+ type: "value",
424
+ name: t.unit,
425
+ axisLine: { lineStyle: { color: "rgba(255,255,255,0.4)" } },
426
+ axisLabel: { color: "rgba(255,255,255,0.7)" },
427
+ splitLine: { show: !1 }
428
+ },
429
+ series: [{
430
+ name: "实况",
431
+ type: t.type,
432
+ data: f(o, u, c),
433
+ smooth: !0,
434
+ itemStyle: { color: t.color },
435
+ lineStyle: { width: 2 },
436
+ symbol: c ? l : "circle",
437
+ symbolSize: c ? 18 : 6,
438
+ ...t.type === "bar" ? {
439
+ stack: "total",
440
+ barMaxWidth: 16
441
+ } : {}
442
+ }, {
443
+ name: "预报",
444
+ type: t.type,
445
+ data: f(s, d, c),
446
+ smooth: !0,
447
+ itemStyle: { color: t.forecastColor },
448
+ lineStyle: {
449
+ width: 2,
450
+ type: "dashed"
451
+ },
452
+ symbol: c ? l : "circle",
453
+ symbolSize: c ? 18 : 6,
454
+ ...t.type === "bar" ? {
455
+ stack: "total",
456
+ barMaxWidth: 16
457
+ } : {}
458
+ }]
459
+ };
460
+ V.setOption(p), h(() => setTimeout(() => V?.resize(), 80));
461
+ }, Vt = (e) => {
462
+ let t = e?.ds || e;
463
+ if (t?.otherData?.markId === "HdMajorActivity") {
464
+ let e = t.data || t, n = D.value.find((n) => String(n.id) === String(e.id || t?.otherData?.activityId));
465
+ n && Nt(n);
466
+ }
467
+ }, Q = (e) => {
468
+ let t = w.ids[e];
469
+ return t?.id ? t : null;
470
+ }, $ = (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, Ht = () => O.value ? { [w.yearField]: Number(O.value) } : {}, Ut = () => {
471
+ D.value = [{
472
+ id: 1,
473
+ name: "2018上合组织青岛峰会",
474
+ location: "青岛国际会议中心",
475
+ start_time: "2018-06-09 00:00:00",
476
+ end_time: "2018-06-10 00:00:00",
477
+ cover_image: "",
478
+ images: "",
479
+ introduction: "上海合作组织成员国元首理事会会议。",
480
+ status: 2,
481
+ year: 2018,
482
+ area_coordinates: "[[120.3825,36.0612],[120.3912,36.0612],[120.3912,36.0558],[120.3825,36.0558]]",
483
+ center_latitude: 36.0585,
484
+ center_longitude: 120.3868,
485
+ station_id: "54943"
486
+ }, {
487
+ id: 2,
488
+ name: "啤酒节",
489
+ location: "青岛会议中心",
490
+ start_time: "2026-09-02 00:00:00",
491
+ end_time: "2026-09-03 00:00:00",
492
+ cover_image: "",
493
+ images: "",
494
+ introduction: "青岛国际啤酒节。",
495
+ status: 1,
496
+ year: 2026,
497
+ layer_id: "",
498
+ area_coordinates: "[[120.168,35.951],[120.1725,35.9495],[120.177,35.951],[120.1725,35.9525]]",
499
+ center_latitude: 35.9508,
500
+ center_longitude: 120.1725,
501
+ station_id: "54943"
502
+ }];
503
+ }, Wt = async () => {
504
+ let e = Q("data");
505
+ if (!e) {
506
+ console.warn("HdMajorActivity 缺少工作流配置");
507
+ return;
508
+ }
509
+ try {
510
+ let n = $(await t({
511
+ id: e.id,
512
+ baseHttp: w.baseHttp,
513
+ reqType: e.reqType,
514
+ variables: Ht(),
515
+ isFormData: e.isFormData,
516
+ appKey: w.appKey,
517
+ appSalt: w.appSalt
518
+ }));
519
+ Array.isArray(n) ? D.value = n : n && Array.isArray(n.list) ? D.value = n.list : D.value = [];
520
+ } catch (e) {
521
+ console.error("HdMajorActivity 数据加载失败", e);
522
+ }
523
+ }, Gt = async () => {
524
+ E.value = !0, w.mock ? Ut() : await Wt(), E.value = !1;
525
+ };
526
+ return ne(() => {
527
+ Gt();
528
+ }), S(U, () => {
529
+ Mt();
530
+ }, { immediate: !0 }), S(R, (e) => {
531
+ e === "chart" && h(() => Z());
532
+ }), S(z, () => {
533
+ R.value === "chart" && h(() => Z());
534
+ }), S(j, (e) => {
535
+ e && R.value === "chart" && h(() => setTimeout(Z, 100));
536
+ }), m({
537
+ openPopup: Nt,
538
+ onMapMarkerClick: Vt
539
+ }), (e, t) => {
540
+ let n = a, c = i, m = r, h = ee, ne = te;
541
+ return C((_(), d("div", ae, [
542
+ f("button", {
543
+ class: "HdMajorActivity-close",
544
+ onClick: kt
545
+ }, [...t[4] ||= [f("span", null, "✕", -1)]]),
546
+ t[24] ||= f("div", { class: "HdMajorActivity-header" }, [f("div", { class: "HdMajorActivity-headerContent" }, [f("h3", { class: "HdMajorActivity-title" }, "重大活动")]), f("img", {
547
+ class: "HdMajorActivity-headerLine",
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",
549
+ alt: ""
550
+ })], -1),
551
+ f("div", oe, [
552
+ f("div", se, [t[5] ||= f("span", { class: "HdMajorActivity-yearLabel" }, "年份", -1), p(n, {
553
+ modelValue: O.value,
554
+ "onUpdate:modelValue": t[0] ||= (e) => O.value = e,
555
+ type: "year",
556
+ placeholder: "全部",
557
+ "value-format": "YYYY",
558
+ format: "YYYY",
559
+ size: "small",
560
+ clearable: !0,
561
+ teleported: !1,
562
+ class: "HdMajorActivity-yearPicker",
563
+ "popper-class": "HdMajorActivity-yearPopper",
564
+ "disabled-date": vt,
565
+ onChange: yt
566
+ }, null, 8, ["modelValue"])]),
567
+ U.value ? (_(), d("div", ce, [
568
+ ht.value ? (_(), d("img", {
569
+ key: 0,
570
+ src: ht.value,
571
+ alt: "活动封面"
572
+ }, null, 8, le)) : (_(), d("div", ue, "暂无封面")),
573
+ f("button", {
574
+ class: "HdMajorActivity-coverArrow HdMajorActivity-coverArrow--left",
575
+ disabled: k.value <= 0,
576
+ onClick: Tt
577
+ }, [...t[6] ||= [f("svg", {
578
+ viewBox: "0 0 24 24",
579
+ width: "16",
580
+ height: "16",
581
+ fill: "none",
582
+ stroke: "currentColor",
583
+ "stroke-width": "2"
584
+ }, [f("polyline", { points: "15 18 9 12 15 6" })], -1)]], 8, de),
585
+ f("button", {
586
+ class: "HdMajorActivity-coverArrow HdMajorActivity-coverArrow--right",
587
+ disabled: k.value >= H.value.length - 1,
588
+ onClick: Et
589
+ }, [...t[7] ||= [f("svg", {
590
+ viewBox: "0 0 24 24",
591
+ width: "16",
592
+ height: "16",
593
+ fill: "none",
594
+ stroke: "currentColor",
595
+ "stroke-width": "2"
596
+ }, [f("polyline", { points: "9 18 15 12 9 6" })], -1)]], 8, fe),
597
+ f("div", pe, [
598
+ f("span", { class: g(["HdMajorActivity-coverStatus", wt(U.value)]) }, b(Ct(U.value)), 3),
599
+ f("h4", me, b(U.value.name), 1),
600
+ f("div", he, [t[8] ||= f("span", { class: "HdMajorActivity-coverTimeLabel" }, "服务时间:", -1), f("span", ge, b(St(U.value)), 1)])
601
+ ])
602
+ ])) : u("", !0),
603
+ U.value ? (_(), d("div", _e, [t[9] ||= f("div", { class: "HdMajorActivity-sectionTitle" }, "活动介绍", -1), f("div", ve, b(U.value.introduction || "暂无介绍"), 1)])) : u("", !0),
604
+ W.value.length ? (_(), d("div", ye, [t[10] ||= f("div", { class: "HdMajorActivity-sectionTitle" }, "活动图片", -1), p(m, {
605
+ class: "HdMajorActivity-carouselBox",
606
+ height: "140px",
607
+ autoplay: !1,
608
+ "indicator-position": "outside",
609
+ arrow: "always"
610
+ }, {
611
+ default: re(() => [(_(!0), d(o, null, y(W.value, (e, t) => (_(), l(c, { key: t }, {
612
+ default: re(() => [f("img", {
613
+ class: "HdMajorActivity-carouselImage",
614
+ src: e,
615
+ alt: "活动图片",
616
+ onClick: (e) => Dt(t)
617
+ }, null, 8, be)]),
618
+ _: 2
619
+ }, 1024))), 128))]),
620
+ _: 1
621
+ })])) : u("", !0),
622
+ !H.value.length && !E.value ? (_(), d("div", xe, "暂无活动数据")) : u("", !0)
623
+ ]),
624
+ (_(), l(s, { to: "body" }, [A.value ? (_(), l(h, {
625
+ key: 0,
626
+ "url-list": W.value,
627
+ "initial-index": ft.value,
628
+ onClose: Ot
629
+ }, null, 8, ["url-list", "initial-index"])) : u("", !0)])),
630
+ (_(), 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", {
631
+ class: "HdMajorActivity-popupClose",
632
+ onClick: Pt
633
+ }, [...t[11] ||= [f("span", null, "✕", -1)]])]), f("div", Ee, [f("div", De, [f("div", Oe, [gt.value ? (_(), d("img", {
634
+ key: 0,
635
+ src: gt.value,
636
+ alt: "封面"
637
+ }, 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, [
638
+ f("div", Ie, [t[13] ||= f("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "天气", -1), f("span", Le, b(mt.value), 1)]),
639
+ f("div", Re, [t[14] ||= f("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "最高温度", -1), f("span", ze, b(q(F.value.maxTemp)) + "°C", 1)]),
640
+ f("div", Be, [t[15] ||= f("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "最低温度", -1), f("span", Ve, b(q(F.value.minTemp)) + "°C", 1)]),
641
+ f("div", He, [t[16] ||= f("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "风速", -1), f("span", Ue, b(q(F.value.windSpeed)) + " m/s", 1)]),
642
+ f("div", We, [t[17] ||= f("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "风向", -1), f("span", Ge, b(F.value.windDirection || "--"), 1)]),
643
+ f("div", Ke, [t[18] ||= f("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "气压", -1), f("span", qe, b(q(F.value.pressure)) + " hPa", 1)]),
644
+ f("div", Je, [t[19] ||= f("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "相对湿度", -1), f("span", Ye, b(q(F.value.humidity)) + "%", 1)]),
645
+ f("div", Xe, [t[20] ||= f("span", { class: "HdMajorActivity-popupRealtimeLabel" }, "能见度", -1), f("span", Ze, b(q(F.value.visibility)) + " m", 1)])
646
+ ]))])]), f("div", Qe, [
647
+ f("div", $e, [t[21] ||= f("span", { class: "HdMajorActivity-popupSectionTitle" }, "要素时序", -1), p(n, {
648
+ modelValue: L.value,
649
+ "onUpdate:modelValue": t[1] ||= (e) => L.value = e,
650
+ type: "daterange",
651
+ size: "small",
652
+ disabled: !0,
653
+ "value-format": "YYYY-MM-DD",
654
+ format: "YYYY-MM-DD",
655
+ "start-placeholder": "开始日期",
656
+ "end-placeholder": "结束日期",
657
+ class: "HdMajorActivity-popupTimePicker",
658
+ "popper-class": "HdMajorActivity-yearPopper"
659
+ }, null, 8, ["modelValue"])]),
660
+ f("div", et, [f("button", {
661
+ class: g(["HdMajorActivity-popupTab", { "is-active": R.value === "chart" }]),
662
+ onClick: t[2] ||= (e) => R.value = "chart"
663
+ }, "图表", 2), f("button", {
664
+ class: g(["HdMajorActivity-popupTab", { "is-active": R.value === "table" }]),
665
+ onClick: t[3] ||= (e) => R.value = "table"
666
+ }, "表格", 2)]),
667
+ C(f("div", tt, [(_(), d(o, null, y(pt, (e) => f("button", {
668
+ key: e.key,
669
+ class: g(["HdMajorActivity-popupElementTab", { "is-active": z.value === e.key }]),
670
+ onClick: (t) => z.value = e.key
671
+ }, b(e.label), 11, nt)), 64))], 512), [[x, R.value === "chart"]]),
672
+ P.value ? (_(), d("div", rt, "加载中...")) : (_(), d("div", it, [C(f("div", {
673
+ ref_key: "chartRef",
674
+ ref: B,
675
+ class: "HdMajorActivity-popupChart"
676
+ }, null, 512), [[x, R.value === "chart"]]), C(f("div", at, [f("table", ot, [t[23] ||= f("thead", null, [f("tr", null, [
677
+ f("th", null, "时间"),
678
+ f("th", null, "温度(°C)"),
679
+ f("th", null, "风速(m/s)"),
680
+ f("th", null, "风向"),
681
+ f("th", null, "小时降水(mm)"),
682
+ f("th", null, "相对湿度(%)"),
683
+ f("th", null, "能见度(km)"),
684
+ f("th", null, "类型")
685
+ ])], -1), f("tbody", null, [(_(!0), d(o, null, y(_t.value, (e, t) => (_(), d("tr", { key: t }, [
686
+ f("td", null, b(e.time), 1),
687
+ f("td", null, b(q(e.temp)), 1),
688
+ f("td", null, b(q(e.windSpeed)), 1),
689
+ f("td", null, b(e.windDirection || "--"), 1),
690
+ f("td", null, b(q(e.rain)), 1),
691
+ f("td", null, b(q(e.humidity)), 1),
692
+ f("td", null, b(q(e.visibility)), 1),
693
+ f("td", null, [f("span", { class: g(["HdMajorActivity-popupTypeTag", `is-${e.type || "real"}`]) }, b(e.type === "forecast" ? "预报" : "实况"), 3)])
694
+ ]))), 128)), _t.value.length ? u("", !0) : (_(), d("tr", st, [...t[22] ||= [f("td", {
695
+ colspan: "8",
696
+ class: "HdMajorActivity-popupNoData"
697
+ }, "暂无数据", -1)]]))])])], 512), [[x, R.value === "table"]])]))
698
+ ])])])])) : u("", !0)]))
699
+ ])), [[ne, E.value]]);
700
+ };
701
+ }
702
+ }), [["__scopeId", "data-v-b0a214e6"]]);
703
+ //#endregion
704
+ export { ct as t };