nxd-plugin 1.3.4 → 1.3.5

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 (22) hide show
  1. package/dist/chunks/{component-HighwayWeatherForecast-DdNgGl6A.mjs → component-HighwayWeatherForecast-DfD4TY_f.mjs} +65 -65
  2. package/dist/chunks/component-LithiumBatteryMiningArea-D0xC13R9.mjs +5288 -0
  3. package/dist/chunks/component-TimeBasedForecast-jWDSjLo1.mjs +345 -0
  4. package/dist/chunks/component-WeatherForecast-Cl188OT3.mjs +219 -0
  5. package/dist/components/LithiumBatteryMiningArea/miningArea.json.d.ts +59 -0
  6. package/dist/components/LithiumBatteryMiningArea/realTimeData.json.d.ts +2144 -0
  7. package/dist/components/LithiumBatteryMiningArea//345/245/211/346/226/260/345/216/277.json.d.ts +4529 -0
  8. package/dist/components/LithiumBatteryMiningArea//345/256/234/344/270/260/345/216/277.json.d.ts +2809 -0
  9. package/dist/components/LithiumBatteryMiningArea//350/242/201/345/267/236/345/214/272.json.d.ts +4025 -0
  10. package/dist/components/TimeBasedForecast/hourForecast.json.d.ts +147 -0
  11. package/dist/components/WeatherForecast/weatherForecast.json.d.ts +113 -0
  12. package/dist/nxd-plugin.mjs +7 -4
  13. package/dist/src/components/LithiumBatteryMiningArea/LithiumBatteryMiningArea.vue.d.ts +12 -0
  14. package/dist/src/components/TimeBasedForecast/TimeBasedForecast.vue.d.ts +8 -0
  15. package/dist/src/components/WeatherForecast/WeatherForecast.vue.d.ts +18 -0
  16. package/dist/src/index.d.ts +4 -1
  17. package/dist/styles/component-LithiumBatteryMiningArea.css +1 -0
  18. package/dist/styles/component-TimeBasedForecast.css +1 -0
  19. package/dist/styles/component-WeatherForecast.css +1 -0
  20. package/dist/styles/component-YCLogin.css +1 -1
  21. package/dist/styles/component-YCLoginNew.css +1 -1
  22. package/package.json +1 -1
@@ -0,0 +1,345 @@
1
+ import "./rolldown-runtime-Dd0fQ6-X.mjs";
2
+ import { n as e, r as t } from "./component-HighWayFreeze-ByAF7JQ7.mjs";
3
+ import { o as n, r } from "./component-HighWayEarlyWarningRed-yaXptPl1.mjs";
4
+ import { n as i } from "./component-HighwayLiveAlarm-BrYDfT9C.mjs";
5
+ import { A as a, C as o, D as s, E as c, M as l, N as u, O as ee, P as te, S as ne, T as re, _ as ie, a as ae, b as oe, c as d, d as f, f as p, g as m, h, i as g, j as _, k as se, l as ce, m as le, n as ue, o as de, p as fe, r as v, s as y, u as b, v as x, w as S, x as C, y as w } from "./component-HighwayWeatherForecast-DfD4TY_f.mjs";
6
+ import { Fragment as T, createElementBlock as E, createElementVNode as D, createVNode as O, defineComponent as k, nextTick as A, normalizeStyle as j, onBeforeUnmount as M, onMounted as N, openBlock as P, ref as F, renderList as I, toDisplayString as L, unref as R, watch as z, withCtx as B, withDirectives as V } from "vue";
7
+ var H = {
8
+ msg: "success",
9
+ code: 0,
10
+ startTime: "2026/05/08 08:00:00",
11
+ diagonal: [
12
+ {
13
+ lng: 115,
14
+ lat: 28.7
15
+ },
16
+ {
17
+ lng: 115.05,
18
+ lat: 28.7
19
+ },
20
+ {
21
+ lng: 115.05,
22
+ lat: 28.650002
23
+ },
24
+ {
25
+ lng: 115,
26
+ lat: 28.650002
27
+ }
28
+ ],
29
+ ds: [
30
+ {
31
+ temper: 25.8,
32
+ weather: "阴",
33
+ observation_time: "2026/05/10 11:00:00",
34
+ address: "",
35
+ wind_direction: 126.9,
36
+ wind_speed: .5,
37
+ rh: 58,
38
+ precip: 0,
39
+ weatherPhenomenon: "2",
40
+ vis: 15600,
41
+ wind_direction_txt: "东南风",
42
+ cloud: 99,
43
+ wind_grade: 1
44
+ },
45
+ {
46
+ wind_direction_txt: "西风",
47
+ wind_direction: 291.8,
48
+ weatherPhenomenon: "2",
49
+ address: "",
50
+ rh: 52,
51
+ precip: 0,
52
+ observation_time: "2026/05/10 14:00:00",
53
+ weather: "阴",
54
+ wind_grade: 1,
55
+ wind_speed: .5,
56
+ cloud: 100,
57
+ vis: 21700,
58
+ temper: 28.3
59
+ },
60
+ {
61
+ wind_direction_txt: "南风",
62
+ weather: "阴",
63
+ temper: 27.3,
64
+ precip: 0,
65
+ cloud: 100,
66
+ weatherPhenomenon: "2",
67
+ wind_grade: 1,
68
+ address: "",
69
+ observation_time: "2026/05/10 17:00:00",
70
+ vis: 16500,
71
+ rh: 58,
72
+ wind_direction: 158.2,
73
+ wind_speed: .5
74
+ },
75
+ {
76
+ observation_time: "2026/05/10 20:00:00",
77
+ wind_direction_txt: "西风",
78
+ weatherPhenomenon: "2",
79
+ address: "",
80
+ wind_grade: 1,
81
+ rh: 75,
82
+ weather: "阴",
83
+ wind_speed: .9,
84
+ temper: 20.9,
85
+ cloud: 100,
86
+ wind_direction: 276.3,
87
+ precip: 0,
88
+ vis: 11400
89
+ },
90
+ {
91
+ wind_speed: .7,
92
+ weatherPhenomenon: "2",
93
+ wind_direction_txt: "南风",
94
+ cloud: 98,
95
+ precip: 0,
96
+ address: "",
97
+ vis: 8400,
98
+ observation_time: "2026/05/10 23:00:00",
99
+ temper: 18.5,
100
+ wind_direction: 164.1,
101
+ wind_grade: 1,
102
+ weather: "阴",
103
+ rh: 84
104
+ },
105
+ {
106
+ temper: 17.1,
107
+ wind_speed: .4,
108
+ cloud: 97,
109
+ rh: 93,
110
+ wind_direction: 236.3,
111
+ precip: 0,
112
+ address: "",
113
+ wind_direction_txt: "西南风",
114
+ weatherPhenomenon: "2",
115
+ observation_time: "2026/05/11 02:00:00",
116
+ wind_grade: 1,
117
+ vis: 5500,
118
+ weather: "阴"
119
+ },
120
+ {
121
+ wind_direction: 76,
122
+ precip: 0,
123
+ vis: 6100,
124
+ wind_direction_txt: "东风",
125
+ temper: 17,
126
+ wind_speed: .4,
127
+ wind_grade: 1,
128
+ weatherPhenomenon: "2",
129
+ observation_time: "2026/05/11 05:00:00",
130
+ weather: "阴",
131
+ cloud: 93,
132
+ address: "",
133
+ rh: 87
134
+ },
135
+ {
136
+ address: "",
137
+ weatherPhenomenon: "2",
138
+ wind_grade: 1,
139
+ wind_speed: .6,
140
+ precip: 0,
141
+ weather: "阴",
142
+ wind_direction_txt: "南风",
143
+ rh: 80,
144
+ vis: 6700,
145
+ temper: 21.3,
146
+ wind_direction: 189.5,
147
+ cloud: 88,
148
+ observation_time: "2026/05/11 08:00:00"
149
+ }
150
+ ]
151
+ }, U = {
152
+ class: "TimeBasedForecast",
153
+ "element-loading-background": "rgba(0, 0, 0, 0.4)"
154
+ }, pe = { class: "TimeBasedForecast__meta" }, me = { class: "TimeBasedForecast__control" }, he = { class: "TimeBasedForecast__time" }, ge = { class: "TimeBasedForecast__content" }, _e = { class: "TimeBasedForecast__scroll" }, ve = { class: "TimeBasedForecast__dates" }, ye = { class: "TimeBasedForecast__date" }, be = { class: "TimeBasedForecast__hour" }, xe = { class: "TimeBasedForecast__chart" }, Se = { class: "TimeBasedForecast__table" }, Ce = { class: "TimeBasedForecast__row TimeBasedForecast__row--icon" }, we = ["src", "alt"], Te = { class: "TimeBasedForecast__row" }, Ee = { class: "TimeBasedForecast__row" }, De = { class: "TimeBasedForecast__row" }, Oe = 78, W = 112, G = /* @__PURE__ */ r(/* @__PURE__ */ k({
155
+ __name: "TimeBasedForecast",
156
+ emits: ["close"],
157
+ setup(r, { emit: k }) {
158
+ let G = k, K = F(null), q = null, ke = [
159
+ "24小时预报",
160
+ "48小时预报",
161
+ "72小时预报",
162
+ "96小时预报",
163
+ "120小时预报",
164
+ "144小时预报",
165
+ "168小时预报"
166
+ ], J = F("24小时预报"), Ae = H.startTime.slice(0, 16), Y = F([]), X = F([]), Z = F(0), je = F(!1);
167
+ N(() => {
168
+ Me();
169
+ }), M(() => {
170
+ q?.dispose(), q = null;
171
+ }), z(J, async () => {
172
+ Q(), await $();
173
+ });
174
+ let Me = async () => {
175
+ await Pe(), Q(), await $();
176
+ }, Ne = () => {
177
+ G("close", "TimeBasedForecast");
178
+ }, Pe = async () => {
179
+ Y.value = H.ds.map((e) => {
180
+ let [t, n] = e.observation_time.split(" "), r = t.split("/");
181
+ return {
182
+ ...e,
183
+ _date: `${r[2]}日`,
184
+ _time: n.slice(0, 5),
185
+ _temp: Number(e.temper),
186
+ _weatherIcon: new URL((/* @__PURE__ */ Object.assign({
187
+ "../../assets/img/weatherIcon/0.gif": te,
188
+ "../../assets/img/weatherIcon/1.gif": u,
189
+ "../../assets/img/weatherIcon/10.gif": l,
190
+ "../../assets/img/weatherIcon/11.gif": _,
191
+ "../../assets/img/weatherIcon/12.gif": a,
192
+ "../../assets/img/weatherIcon/13.gif": se,
193
+ "../../assets/img/weatherIcon/14.gif": ee,
194
+ "../../assets/img/weatherIcon/15.gif": s,
195
+ "../../assets/img/weatherIcon/16.gif": c,
196
+ "../../assets/img/weatherIcon/17.gif": re,
197
+ "../../assets/img/weatherIcon/18.gif": S,
198
+ "../../assets/img/weatherIcon/19.gif": o,
199
+ "../../assets/img/weatherIcon/2.gif": ne,
200
+ "../../assets/img/weatherIcon/20.gif": C,
201
+ "../../assets/img/weatherIcon/21.gif": oe,
202
+ "../../assets/img/weatherIcon/22.gif": w,
203
+ "../../assets/img/weatherIcon/23.gif": x,
204
+ "../../assets/img/weatherIcon/24.gif": ie,
205
+ "../../assets/img/weatherIcon/25.gif": m,
206
+ "../../assets/img/weatherIcon/26.gif": h,
207
+ "../../assets/img/weatherIcon/27.gif": le,
208
+ "../../assets/img/weatherIcon/28.gif": fe,
209
+ "../../assets/img/weatherIcon/29.gif": p,
210
+ "../../assets/img/weatherIcon/3.gif": f,
211
+ "../../assets/img/weatherIcon/30.gif": b,
212
+ "../../assets/img/weatherIcon/31.gif": ce,
213
+ "../../assets/img/weatherIcon/4.gif": d,
214
+ "../../assets/img/weatherIcon/5.gif": y,
215
+ "../../assets/img/weatherIcon/53.gif": de,
216
+ "../../assets/img/weatherIcon/6.gif": ae,
217
+ "../../assets/img/weatherIcon/7.gif": g,
218
+ "../../assets/img/weatherIcon/8.gif": v,
219
+ "../../assets/img/weatherIcon/9.gif": ue
220
+ }))[`../../assets/img/weatherIcon/${e.weatherPhenomenon}.gif`], import.meta.url).href,
221
+ _windSpeed: `${e.wind_grade}级`
222
+ };
223
+ });
224
+ }, Q = () => {
225
+ let e = Number(J.value.replace("小时预报", "")), t = Math.max(1, Math.ceil(e / 3));
226
+ X.value = Y.value.slice(0, t), Z.value = Math.max(X.value.length * Oe, 320);
227
+ }, $ = async () => {
228
+ await A(), K.value && (q ? q.resize({
229
+ width: Z.value,
230
+ height: W
231
+ }) : q = i(K.value), q.setOption({
232
+ animation: !1,
233
+ grid: {
234
+ top: 30,
235
+ right: 0,
236
+ bottom: 8,
237
+ left: 0
238
+ },
239
+ xAxis: {
240
+ type: "category",
241
+ data: X.value.map((e, t) => t),
242
+ show: !1
243
+ },
244
+ yAxis: {
245
+ type: "value",
246
+ show: !1,
247
+ scale: !0
248
+ },
249
+ series: [{
250
+ type: "line",
251
+ data: X.value.map((e) => e._temp),
252
+ smooth: !0,
253
+ symbol: "circle",
254
+ symbolSize: 6,
255
+ clip: !1,
256
+ lineStyle: {
257
+ color: "#4da8ff",
258
+ width: 2
259
+ },
260
+ itemStyle: {
261
+ color: "#4da8ff",
262
+ borderColor: "#9ed0ff"
263
+ },
264
+ label: {
265
+ show: !0,
266
+ position: "top",
267
+ distance: 8,
268
+ color: "#d6ecff",
269
+ fontSize: 12,
270
+ formatter: ({ value: e }) => `${e}℃`
271
+ }
272
+ }]
273
+ }));
274
+ };
275
+ return (r, i) => {
276
+ let a = e, o = t, s = n;
277
+ return V((P(), E("div", U, [
278
+ D("div", { class: "TimeBasedForecast__head" }, [D("div", { class: "TimeBasedForecast__head-top" }, [i[1] ||= D("div", null, "分时段预报", -1), D("div", {
279
+ class: "closeBtn",
280
+ onClick: Ne,
281
+ title: "关闭"
282
+ })]), i[2] ||= D("img", {
283
+ class: "TimeBasedForecast__head-line",
284
+ 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",
285
+ alt: ""
286
+ }, null, -1)]),
287
+ D("div", pe, [D("div", me, [i[3] ||= D("span", { class: "TimeBasedForecast__label" }, "预报时效:", -1), O(o, {
288
+ modelValue: J.value,
289
+ "onUpdate:modelValue": i[0] ||= (e) => J.value = e,
290
+ class: "dark-select",
291
+ "popper-class": "dark-select-popper"
292
+ }, {
293
+ default: B(() => [(P(), E(T, null, I(ke, (e) => O(a, {
294
+ key: e,
295
+ label: e,
296
+ value: e
297
+ }, null, 8, ["label", "value"])), 64))]),
298
+ _: 1
299
+ }, 8, ["modelValue"])]), D("div", he, L(R(Ae)), 1)]),
300
+ D("div", ge, [D("div", _e, [D("div", {
301
+ class: "TimeBasedForecast__board",
302
+ style: j({ width: `${Z.value}px` })
303
+ }, [
304
+ D("div", ve, [(P(!0), E(T, null, I(X.value, (e) => (P(), E("div", {
305
+ key: `${e._date}-${e._time}`,
306
+ class: "TimeBasedForecast__dateItem"
307
+ }, [D("div", ye, L(e._date), 1), D("div", be, L(e._time), 1)]))), 128))]),
308
+ D("div", xe, [D("div", {
309
+ ref_key: "ref_ForecastChart",
310
+ ref: K,
311
+ class: "TimeBasedForecast__echarts",
312
+ style: j({
313
+ width: `${Z.value}px`,
314
+ height: `${W}px`
315
+ })
316
+ }, null, 4)]),
317
+ D("div", Se, [
318
+ D("div", Ce, [(P(!0), E(T, null, I(X.value, (e) => (P(), E("div", {
319
+ key: `icon-${e._date}-${e._time}`,
320
+ class: "TimeBasedForecast__cell"
321
+ }, [D("img", {
322
+ class: "TimeBasedForecast__weatherIcon",
323
+ src: e._weatherIcon,
324
+ alt: e.weather
325
+ }, null, 8, we)]))), 128))]),
326
+ D("div", Te, [(P(!0), E(T, null, I(X.value, (e) => (P(), E("div", {
327
+ key: `weather-${e._date}-${e._time}`,
328
+ class: "TimeBasedForecast__cell"
329
+ }, L(e.weather), 1))), 128))]),
330
+ D("div", Ee, [(P(!0), E(T, null, I(X.value, (e) => (P(), E("div", {
331
+ key: `direction-${e._date}-${e._time}`,
332
+ class: "TimeBasedForecast__cell"
333
+ }, L(e.wind_direction_txt), 1))), 128))]),
334
+ D("div", De, [(P(!0), E(T, null, I(X.value, (e) => (P(), E("div", {
335
+ key: `speed-${e._date}-${e._time}`,
336
+ class: "TimeBasedForecast__cell"
337
+ }, L(e._windSpeed), 1))), 128))])
338
+ ])
339
+ ], 4)])])
340
+ ])), [[s, je.value]]);
341
+ };
342
+ }
343
+ }), [["__scopeId", "data-v-5a17d7e5"]]);
344
+ //#endregion
345
+ export { G as t };
@@ -0,0 +1,219 @@
1
+ import "./rolldown-runtime-Dd0fQ6-X.mjs";
2
+ import { o as e, r as t } from "./component-HighWayEarlyWarningRed-yaXptPl1.mjs";
3
+ import { A as ee, C as n, D as r, E as i, M as a, N as o, O as s, P as c, S as l, T as u, _ as d, a as f, b as p, c as m, d as h, f as g, g as _, h as v, i as y, j as b, k as x, l as S, m as C, n as w, o as T, p as E, r as D, s as O, u as k, v as A, w as j, x as M, y as N } from "./component-HighwayWeatherForecast-DfD4TY_f.mjs";
4
+ import { Fragment as P, createElementBlock as F, createElementVNode as I, defineComponent as L, onMounted as R, openBlock as z, ref as B, renderList as V, toDisplayString as H, withDirectives as U } from "vue";
5
+ var W = {
6
+ msg: "success",
7
+ code: 0,
8
+ ds: [
9
+ {
10
+ temperMax: "21.6",
11
+ observation_time: "2026/05/08 08:00:00",
12
+ wind_speed_value: "2.4",
13
+ weatherPhenomenonTwo: "2",
14
+ latitude: 27.7017,
15
+ wind_direction: "西北风",
16
+ weatherPhenomenon: "7",
17
+ temperMin: "17.0",
18
+ hour: 24,
19
+ weather: "阴转小雨",
20
+ wind_speed: "<3级",
21
+ wind_direction_value: "323.6",
22
+ longitude: 114.474
23
+ },
24
+ {
25
+ temperMax: "23.5",
26
+ observation_time: "2026/05/08 08:00:00",
27
+ wind_speed_value: "0.6",
28
+ weatherPhenomenonTwo: "2",
29
+ latitude: 27.7017,
30
+ wind_direction: "北风转东风",
31
+ weatherPhenomenon: "2",
32
+ temperMin: "15.5",
33
+ hour: 48,
34
+ weather: "阴",
35
+ wind_speed: "<3级",
36
+ wind_direction_value: "80.5",
37
+ longitude: 114.474
38
+ },
39
+ {
40
+ temperMax: "28.5",
41
+ observation_time: "2026/05/08 08:00:00",
42
+ wind_speed_value: "1.6",
43
+ weatherPhenomenonTwo: "2",
44
+ latitude: 27.7017,
45
+ wind_direction: "西北风",
46
+ weatherPhenomenon: "2",
47
+ temperMin: "17.9",
48
+ hour: 72,
49
+ weather: "阴",
50
+ wind_speed: "<3级",
51
+ wind_direction_value: "307.6",
52
+ longitude: 114.474
53
+ },
54
+ {
55
+ temperMax: "30.0",
56
+ observation_time: "2026/05/08 08:00:00",
57
+ wind_speed_value: "0.5",
58
+ weatherPhenomenonTwo: "2",
59
+ latitude: 27.7017,
60
+ wind_direction: "东南风转东风",
61
+ weatherPhenomenon: "7",
62
+ temperMin: "20.3",
63
+ hour: 96,
64
+ weather: "阴转小雨",
65
+ wind_speed: "<3级",
66
+ wind_direction_value: "111.8",
67
+ longitude: 114.474
68
+ },
69
+ {
70
+ temperMax: "31.1",
71
+ observation_time: "2026/05/08 08:00:00",
72
+ wind_speed_value: "1.4",
73
+ weatherPhenomenonTwo: "2",
74
+ latitude: 27.7017,
75
+ wind_direction: "东南风转西北风",
76
+ weatherPhenomenon: "7",
77
+ temperMin: "20.6",
78
+ hour: 120,
79
+ weather: "阴转小雨",
80
+ wind_speed: "<3级",
81
+ wind_direction_value: "294.8",
82
+ longitude: 114.474
83
+ },
84
+ {
85
+ temperMax: "25.7",
86
+ observation_time: "2026/05/08 08:00:00",
87
+ wind_speed_value: "0.4",
88
+ weatherPhenomenonTwo: "7",
89
+ latitude: 27.7017,
90
+ wind_direction: "西南风",
91
+ weatherPhenomenon: "8",
92
+ temperMin: "20.7",
93
+ hour: 144,
94
+ weather: "小雨转中雨",
95
+ wind_speed: "<3级",
96
+ wind_direction_value: "236.3",
97
+ longitude: 114.474
98
+ },
99
+ {
100
+ temperMax: "27.3",
101
+ observation_time: "2026/05/08 08:00:00",
102
+ wind_speed_value: "1.9",
103
+ weatherPhenomenonTwo: "2",
104
+ latitude: 27.7017,
105
+ wind_direction: "西南风",
106
+ weatherPhenomenon: "7",
107
+ temperMin: "20.8",
108
+ hour: 168,
109
+ weather: "阴转小雨",
110
+ wind_speed: "<3级",
111
+ wind_direction_value: "212.0",
112
+ longitude: 114.474
113
+ }
114
+ ]
115
+ }, G = {
116
+ class: "WeatherForecast",
117
+ "element-loading-background": "rgba(0, 0, 0, 0.4)"
118
+ }, K = { class: "WeatherForecast__head" }, q = { class: "WeatherForecast__head-top" }, J = { class: "WeatherForecast__body" }, Y = { class: "WeatherForecast__wrap" }, X = ["src", "alt"], Z = /* @__PURE__ */ t(/* @__PURE__ */ L({
119
+ __name: "WeatherForecast",
120
+ props: { title: {
121
+ type: String,
122
+ default: "天气预报"
123
+ } },
124
+ emits: ["close"],
125
+ setup(t, { emit: L }) {
126
+ let Z = L, Q = B(!1), $ = B([]);
127
+ R(() => {
128
+ te();
129
+ });
130
+ let te = async () => {
131
+ await re();
132
+ }, ne = () => {
133
+ Z("close", "WeatherForecast");
134
+ }, re = async () => {
135
+ let e = Array.isArray(W.ds) ? W.ds : [], t = [
136
+ "日",
137
+ "一",
138
+ "二",
139
+ "三",
140
+ "四",
141
+ "五",
142
+ "六"
143
+ ];
144
+ $.value = e.map((e, P) => {
145
+ let F = new Date(e.observation_time.replace(/\//g, "-"));
146
+ F.setDate(F.getDate() + P);
147
+ let I = `${F.getMonth() + 1}`.padStart(2, "0"), L = `${F.getDate()}`.padStart(2, "0");
148
+ return {
149
+ ...e,
150
+ _date: `${I}-${L}`,
151
+ _week: `周${t[F.getDay()]}`,
152
+ _icon: new URL((/* @__PURE__ */ Object.assign({
153
+ "../../assets/img/weatherIcon/0.gif": c,
154
+ "../../assets/img/weatherIcon/1.gif": o,
155
+ "../../assets/img/weatherIcon/10.gif": a,
156
+ "../../assets/img/weatherIcon/11.gif": b,
157
+ "../../assets/img/weatherIcon/12.gif": ee,
158
+ "../../assets/img/weatherIcon/13.gif": x,
159
+ "../../assets/img/weatherIcon/14.gif": s,
160
+ "../../assets/img/weatherIcon/15.gif": r,
161
+ "../../assets/img/weatherIcon/16.gif": i,
162
+ "../../assets/img/weatherIcon/17.gif": u,
163
+ "../../assets/img/weatherIcon/18.gif": j,
164
+ "../../assets/img/weatherIcon/19.gif": n,
165
+ "../../assets/img/weatherIcon/2.gif": l,
166
+ "../../assets/img/weatherIcon/20.gif": M,
167
+ "../../assets/img/weatherIcon/21.gif": p,
168
+ "../../assets/img/weatherIcon/22.gif": N,
169
+ "../../assets/img/weatherIcon/23.gif": A,
170
+ "../../assets/img/weatherIcon/24.gif": d,
171
+ "../../assets/img/weatherIcon/25.gif": _,
172
+ "../../assets/img/weatherIcon/26.gif": v,
173
+ "../../assets/img/weatherIcon/27.gif": C,
174
+ "../../assets/img/weatherIcon/28.gif": E,
175
+ "../../assets/img/weatherIcon/29.gif": g,
176
+ "../../assets/img/weatherIcon/3.gif": h,
177
+ "../../assets/img/weatherIcon/30.gif": k,
178
+ "../../assets/img/weatherIcon/31.gif": S,
179
+ "../../assets/img/weatherIcon/4.gif": m,
180
+ "../../assets/img/weatherIcon/5.gif": O,
181
+ "../../assets/img/weatherIcon/53.gif": T,
182
+ "../../assets/img/weatherIcon/6.gif": f,
183
+ "../../assets/img/weatherIcon/7.gif": y,
184
+ "../../assets/img/weatherIcon/8.gif": D,
185
+ "../../assets/img/weatherIcon/9.gif": w
186
+ }))[`../../assets/img/weatherIcon/${e.weatherPhenomenon}.gif`], import.meta.url).href
187
+ };
188
+ });
189
+ };
190
+ return (ee, n) => {
191
+ let r = e;
192
+ return U((z(), F("div", G, [I("div", K, [I("div", q, [I("div", null, H(t.title), 1), I("div", {
193
+ class: "closeBtn",
194
+ onClick: ne,
195
+ title: "关闭"
196
+ })]), n[0] ||= I("img", {
197
+ class: "WeatherForecast__head-line",
198
+ 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",
199
+ alt: ""
200
+ }, null, -1)]), I("div", J, [I("div", Y, [(z(!0), F(P, null, V($.value, (e) => (z(), F("div", {
201
+ class: "WeatherForecast__item",
202
+ key: `${e.observation_time}-${e.hour}`
203
+ }, [
204
+ I("div", null, H(e._date), 1),
205
+ I("div", null, H(e._week), 1),
206
+ I("img", {
207
+ src: e._icon,
208
+ alt: e.weather
209
+ }, null, 8, X),
210
+ I("div", null, H(e.weather), 1),
211
+ I("div", null, H(e.temperMin) + "~" + H(e.temperMax) + "℃", 1),
212
+ I("div", null, H(e.wind_direction), 1),
213
+ I("div", null, H(e.wind_speed), 1)
214
+ ]))), 128))])])])), [[r, Q.value]]);
215
+ };
216
+ }
217
+ }), [["__scopeId", "data-v-76539554"]]);
218
+ //#endregion
219
+ export { Z as t };
@@ -0,0 +1,59 @@
1
+ declare const _default: {
2
+ "msg": "success",
3
+ "code": 0,
4
+ "ds": [
5
+ {
6
+ "id": 43,
7
+ "longitude": 114.474,
8
+ "latitude": 27.7017,
9
+ "stationNumber": "J5277",
10
+ "province": "江西省",
11
+ "city": "宜春市",
12
+ "cnty": "袁州区",
13
+ "backgroundImage": "http://10.118.134.189:8080/ore_information_png/宜春钽铌矿有限公司.png",
14
+ "recommendStartTime": "2023/01/01 00:00:00",
15
+ "recommendEndTime": "2023/12/31 23:59:59",
16
+ "inputTime": "2023/01/01 00:00:00",
17
+ "updateTime": "2023/12/21 02:20:43",
18
+ "title": "景区天气实况",
19
+ "name": "宜春钽铌矿有限公司",
20
+ "description": "矿山于1972年定名为宜春钽铌矿,主厂房由江西省冶金建设公司二处承担施工;于1971年开始基本建设,采、运、选主体工程及相应的辅助工程、生活设施于1976年基本建成,1977年基建收尾并组织试生产,1982年7月到1984年末进行一期工程攻关、改造、调试,1986年竣工验收投产。1999年8月企业隶属于中国稀有稀土金属集团公司直管。2000年随在赣中央有色金属企事业单位下放地方管理,现隶属于江西钨业集团有限公司,为江西省属重点企业。矿山生产工艺先进,技术设备精良,企业管理上乘。多年来,宜春钽铌矿为国家和地方的经济发展作出了积极贡献。行后荣获江西省文明单位、全国五一劳动奖状、全国厂务公开先进单位、全国模范职工之家等荣誉称号。"
21
+ },
22
+ {
23
+ "id": 44,
24
+ "longitude": 114.9667,
25
+ "latitude": 28.5333,
26
+ "stationNumber": "J5069",
27
+ "province": "江西省",
28
+ "city": "宜春市",
29
+ "cnty": "宜丰县",
30
+ "backgroundImage": "http://10.118.134.189:8080/ore_information_png/宜丰锂电矿区.png",
31
+ "recommendStartTime": "2023/01/01 00:00:00",
32
+ "recommendEndTime": "2023/12/31 23:59:59",
33
+ "inputTime": "2023/01/01 00:00:00",
34
+ "updateTime": "2023/12/31 23:59:59",
35
+ "title": "景区天气实况",
36
+ "name": "宜丰锂电矿区",
37
+ "description": "宜丰县位于钦杭成矿带江西段,区域内矿产资源丰富,其中铜、铅、锌、锂(锂云母)、陶瓷土等矿产储量占比均在宜春市前列,尤其以含锂瓷石矿种为区域特色矿产,在全省地位突出;金属矿床中共伴生矿产较多,开发潜力大,综合利用价值高。"
38
+ },
39
+ {
40
+ "id": 45,
41
+ "longitude": 115.0053,
42
+ "latitude": 28.6767,
43
+ "stationNumber": "J5142",
44
+ "province": "江西省",
45
+ "city": "宜春市",
46
+ "cnty": "奉新县",
47
+ "backgroundImage": "http://10.118.134.189:8080/ore_information_png/奉新锂电矿区.png",
48
+ "recommendStartTime": "2023/01/01 00:00:00",
49
+ "recommendEndTime": "2023/12/31 23:59:59",
50
+ "inputTime": "2023/01/01 00:00:00",
51
+ "updateTime": "2023/12/31 23:59:59",
52
+ "title": "景区天气实况",
53
+ "name": "奉新锂电矿区",
54
+ "description": "奉新县位于九岭钨-钼-锡-铜-金-铅锌-矾-萤石-高岭土成矿亚带,成矿地质条件优越,矿产资源较丰富,是江西省稀有金属尤其是锂、铷的重要矿产基地之一。目前已发现铜、铝、铁、锂、铷、铯、萤石、高岭土、陶瓷土、长石、玻璃用石英、矿泉水、地热水、饰面用花岗岩、建筑石料用板岩、建筑石料用凝灰岩、砖瓦用粘土、砖瓦用页岩等矿产20种。陶瓷土矿伴生锂、铷、铯稀有金属是奉新县矿产资源的一大特色。矿产资源丰富的有陶瓷土、长石、饰面用花岗岩;矿产资源潜力大的有地热水、建筑石料用花岗岩等。"
55
+ }
56
+ ]
57
+ };
58
+
59
+ export default _default;