nxd-plugin 1.8.51 → 1.8.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/chunks/GridData-D930GI5r.mjs +2 -0
  2. package/dist/chunks/YCServiceSummary-5zaYlO27.mjs +2 -0
  3. package/dist/chunks/{component-Forecast72h-CD6eT1xe.mjs → component-Forecast72h-PgbN_y9N.mjs} +170 -161
  4. package/dist/chunks/component-GridData-BK4jKmO-.mjs +399 -0
  5. package/dist/chunks/{component-HdCameraList-DuC-_0uH.mjs → component-HdCameraList-Ch0ojKDf.mjs} +1 -1
  6. package/dist/chunks/{component-HdFarmStation-BtYLSMAY.mjs → component-HdFarmStation-BV_kmLzl.mjs} +1 -1
  7. package/dist/chunks/{component-HdMajorActivity-CQ76SEKD.mjs → component-HdMajorActivity-xlp8Zrq1.mjs} +193 -186
  8. package/dist/chunks/{component-HdObservation-DmRN3dBq.mjs → component-HdObservation-DrPL7XVh.mjs} +1 -1
  9. package/dist/chunks/{component-HdPreSituation-KMOE4Mt_.mjs → component-HdPreSituation-D0KUf8I4.mjs} +1 -1
  10. package/dist/chunks/{component-HdRadarList-Cx_cRpjb.mjs → component-HdRadarList-CspWsOEW.mjs} +1 -1
  11. package/dist/chunks/{component-HdRadarTimeLine-CwdMMlPK.mjs → component-HdRadarTimeLine-BvE4Ny20.mjs} +3 -3
  12. package/dist/chunks/{component-HdRisk-Cx_Wuyuy.mjs → component-HdRisk-qQ1jbMi4.mjs} +1 -1
  13. package/dist/chunks/{component-HdServiceMarterial-D4nik4h0.mjs → component-HdServiceMarterial-DAf5Wr6D.mjs} +1 -1
  14. package/dist/chunks/{component-HdServiceRequirements-CrpxYdNK.mjs → component-HdServiceRequirements-CycjsvZT.mjs} +1 -1
  15. package/dist/chunks/{component-HdSoil-eQTGGIkq.mjs → component-HdSoil-BKDaVRnf.mjs} +1 -1
  16. package/dist/chunks/{component-HdStationTem-BCls8KKc.mjs → component-HdStationTem-Cb2YV_fB.mjs} +1 -1
  17. package/dist/chunks/{component-HdSuggestion-BnGlQLfg.mjs → component-HdSuggestion-fajQUBiB.mjs} +1 -1
  18. package/dist/chunks/{component-HdThreeWeatherTrend-D_dPqael.mjs → component-HdThreeWeatherTrend-CeAHvlR3.mjs} +1 -1
  19. package/dist/chunks/{component-HdWaveForcast-B-RPD_5H.mjs → component-HdWaveForcast-DRuTytq8.mjs} +1 -1
  20. package/dist/chunks/{component-HighwayWeatherForecast-BVj7aWS1.mjs → component-HighwayWeatherForecast-CUk0YFO6.mjs} +2 -2
  21. package/dist/chunks/{component-PrecipitationRanking-Ct4OY0FJ.mjs → component-PrecipitationRanking-Nq_SI95N.mjs} +1 -1
  22. package/dist/chunks/{component-StationDialog-_pkrpDnI.mjs → component-StationDialog-B-6V3oc5.mjs} +1 -1
  23. package/dist/chunks/{component-StationList-D4XTo6r2.mjs → component-StationList-qtk1j-fG.mjs} +1 -1
  24. package/dist/chunks/{component-TimeBasedForecast-4ZZ7ZnCH.mjs → component-TimeBasedForecast-DdTGq6GE.mjs} +1 -1
  25. package/dist/chunks/component-WeatherForecast-g9IL5upq.mjs +219 -0
  26. package/dist/chunks/{component-YCDataService-CniJWhHF.mjs → component-YCDataService-DKvMM7rM.mjs} +43 -35
  27. package/dist/chunks/{component-YCHome-BNYalrzu.mjs → component-YCHome-nJZqqhcF.mjs} +1 -1
  28. package/dist/components/HdMajorActivity/HdMajorActivity.vue.d.ts +6 -4
  29. package/dist/components/HdRadarTimeLine/HdRadarTimeLine.vue.d.ts +2 -2
  30. package/dist/components/HdStationTem/HdStationTem.vue.d.ts +2 -2
  31. package/dist/index.d.ts +2 -2
  32. package/dist/nxd-plugin.mjs +27 -28
  33. package/dist/styles/component-Forecast72h.css +1 -1
  34. package/dist/styles/component-GridData.css +1 -1
  35. package/dist/styles/component-HdMajorActivity.css +1 -1
  36. package/dist/styles/component-HdRadarTimeLine.css +1 -1
  37. package/dist/styles/component-WeatherForecast.css +1 -1
  38. package/dist/styles/component-YCDataService.css +1 -1
  39. package/dist/styles/component-YCLoginNew.css +1 -1
  40. package/package.json +1 -1
  41. package/dist/chunks/YCServiceSummary-V18ZZfMw.mjs +0 -2
  42. package/dist/chunks/component-GridData-o7hipw0h.mjs +0 -756
  43. package/dist/chunks/component-WeatherForecast-DqdD9JUX.mjs +0 -208
  44. /package/dist/chunks/{component-YCServiceSummary-B-ixNRkt.mjs → component-YCServiceSummary-BKkRTMKf.mjs} +0 -0
@@ -0,0 +1,399 @@
1
+ import "./component-AqiMonitor-CiRH3KK9.mjs";
2
+ import { g as e, p as t } from "./component-Agent-DwXtdLhK.mjs";
3
+ import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, onMounted as ee, openBlock as u, reactive as te, ref as d, renderList as f, toDisplayString as p, watch as m } from "vue";
4
+ import { ElMessage as h } from "element-plus";
5
+ import "element-plus/es/components/message/style/css";
6
+ //#region src/components/GridData/GridData.vue?vue&type=script&setup=true&lang.ts
7
+ var g = { class: "GridData" }, _ = { class: "GridData__body" }, v = { class: "GridData__elements" }, y = ["onClick"], b = { class: "GridData__row" }, x = { class: "GridData__row-opts" }, ne = { class: "GridData__layers" }, re = {
8
+ key: 0,
9
+ class: "GridData__legend"
10
+ }, ie = { class: "GridData__legend-head" }, S = { class: "GridData__legend-title" }, C = { class: "GridData__legend-unit" }, w = { class: "GridData__legend-bar" }, ae = { class: "GridData__legend-text" }, T = {
11
+ key: 0,
12
+ class: "GridData__mask"
13
+ }, E = "GridData_grid", D = "GridData_shade", O = /* @__PURE__ */ t(/* @__PURE__ */ s({
14
+ __name: "GridData",
15
+ props: {
16
+ appKey: {
17
+ type: String,
18
+ default: ""
19
+ },
20
+ appSalt: {
21
+ type: String,
22
+ default: ""
23
+ },
24
+ baseHttp: {
25
+ type: String,
26
+ default: ""
27
+ },
28
+ ids: {
29
+ type: Object,
30
+ default: () => ({})
31
+ }
32
+ },
33
+ emits: [
34
+ "close",
35
+ "addClusterMarker",
36
+ "clearClusterMarker",
37
+ "addImage",
38
+ "clearImg"
39
+ ],
40
+ setup(t, { emit: s }) {
41
+ let O = s, k = t, A = [
42
+ "降水",
43
+ "大风",
44
+ "温度",
45
+ "相对湿度",
46
+ "能见度"
47
+ ], j = d("降水"), M = d("live"), N = d("1h"), P = te({
48
+ seban: !1,
49
+ grid: !1
50
+ }), F = d(!1), I = d([]), L = {
51
+ 降水: "er01",
52
+ 大风: "eda10",
53
+ 温度: "tmp",
54
+ 相对湿度: "erh",
55
+ 能见度: "vis"
56
+ }, R = {
57
+ tmp: {
58
+ unit: "摄氏度",
59
+ values: [
60
+ -12,
61
+ -8,
62
+ -6,
63
+ -4,
64
+ -2,
65
+ 0,
66
+ 2,
67
+ 4,
68
+ 6,
69
+ 8,
70
+ 12,
71
+ 16,
72
+ 20,
73
+ 24,
74
+ 26,
75
+ 28,
76
+ 30,
77
+ 32,
78
+ 35,
79
+ 37,
80
+ 39,
81
+ 40,
82
+ 44
83
+ ],
84
+ colors: [
85
+ "#002CF4",
86
+ "#0050EC",
87
+ "#006CEC",
88
+ "#0088F5",
89
+ "#00A5F5",
90
+ "#19C2EF",
91
+ "#30DCEE",
92
+ "#48FFFF",
93
+ "#4FFFBF",
94
+ "#52FE89",
95
+ "#56FE4F",
96
+ "#98FD35",
97
+ "#AAFD34",
98
+ "#C7FC36",
99
+ "#E5FC35",
100
+ "#FFE434",
101
+ "#FFC92F",
102
+ "#FDA72B",
103
+ "#FC8B28",
104
+ "#FC6D24",
105
+ "#FA4C21",
106
+ "#FA3622",
107
+ "#af1404"
108
+ ]
109
+ },
110
+ vis: {
111
+ unit: "m",
112
+ values: [
113
+ .1,
114
+ .2,
115
+ .5,
116
+ 1,
117
+ 2,
118
+ 3,
119
+ 5,
120
+ 10,
121
+ 15,
122
+ 20,
123
+ 30
124
+ ].map((e) => Math.round(e * 1e3)),
125
+ colors: [
126
+ "#722D00",
127
+ "#A000FF",
128
+ "#FF0302",
129
+ "#FF5600",
130
+ "#EFEB35",
131
+ "#78FD38",
132
+ "#78FD38",
133
+ "#36FBB1",
134
+ "#6ACBE8",
135
+ "#9DEAF8",
136
+ "#FFFFFF"
137
+ ]
138
+ },
139
+ wsAvg: {
140
+ unit: "m/s",
141
+ values: [
142
+ 0,
143
+ 2,
144
+ 4,
145
+ 6,
146
+ 8,
147
+ 10,
148
+ 12,
149
+ 16,
150
+ 20,
151
+ 24,
152
+ 28,
153
+ 32,
154
+ 36
155
+ ],
156
+ colors: [
157
+ "rgb(0, 236, 236)",
158
+ "rgb(0, 149, 249)",
159
+ "rgb(4, 82, 175)",
160
+ "rgb(0, 216, 0)",
161
+ "rgb(42, 135, 4)",
162
+ "rgb(255, 255, 0)",
163
+ "rgb(255, 171, 0)",
164
+ "rgb(249, 113, 177)",
165
+ "rgb(253, 0, 0)",
166
+ "rgb(179, 2, 24)",
167
+ "rgb(112, 2, 20)",
168
+ "rgb(232, 2, 247)",
169
+ "rgb(173, 144, 240)"
170
+ ]
171
+ },
172
+ rain_1h: {
173
+ unit: "mm",
174
+ values: [
175
+ .1,
176
+ 2.5,
177
+ 5,
178
+ 10,
179
+ 25,
180
+ 50,
181
+ 100
182
+ ],
183
+ colors: [
184
+ "#d9f9ce",
185
+ "#81f79b",
186
+ "#00d15e",
187
+ "#00b12c",
188
+ "#00aff7",
189
+ "#0009fe",
190
+ "#ed00d4"
191
+ ]
192
+ },
193
+ rhu: {
194
+ unit: "%",
195
+ values: [
196
+ 0,
197
+ 10,
198
+ 20,
199
+ 30,
200
+ 40,
201
+ 50,
202
+ 60,
203
+ 70,
204
+ 80,
205
+ 90,
206
+ 100
207
+ ],
208
+ colors: [
209
+ "#FF5501",
210
+ "#FFAA00",
211
+ "#FFFF03",
212
+ "#B5FF00",
213
+ "#5BFF00",
214
+ "#05FF03",
215
+ "#00FF5A",
216
+ "#00FFAE",
217
+ "#02A2FF",
218
+ "#00AEFF",
219
+ "#0055FF"
220
+ ]
221
+ }
222
+ }, z = {
223
+ 降水: {
224
+ key: "rain_1h",
225
+ title: "降水量"
226
+ },
227
+ 大风: {
228
+ key: "wsAvg",
229
+ title: "风速"
230
+ },
231
+ 温度: {
232
+ key: "tmp",
233
+ title: "温度"
234
+ },
235
+ 相对湿度: {
236
+ key: "rhu",
237
+ title: "相对湿度"
238
+ },
239
+ 能见度: {
240
+ key: "vis",
241
+ title: "能见度"
242
+ }
243
+ }, B = (e) => e.map((e) => `${e}`), V = r(() => j.value === "能见度"), H = r(() => {
244
+ let e = z[j.value], t = e && R[e.key];
245
+ return t ? {
246
+ title: j.value === "降水" ? `${N.value}${e.title}` : e.title,
247
+ unit: t.unit,
248
+ colors: t.colors,
249
+ labels: B(t.values)
250
+ } : null;
251
+ }), U = r(() => {
252
+ let e = H.value;
253
+ return e ? e.colors.map((t, n) => ({
254
+ color: t,
255
+ label: e.labels[n] || ""
256
+ })) : [];
257
+ });
258
+ ee(() => {
259
+ W();
260
+ }), m([M, () => P.grid], () => {
261
+ P.grid ? q() : X(null);
262
+ }), m([M, () => P.seban], () => {
263
+ P.seban ? J() : Z(null);
264
+ }), m(j, () => {
265
+ P.grid && I.value.length && X(Y(I.value)), P.seban && (Z(null), J());
266
+ });
267
+ let W = async () => {
268
+ P.grid && q(), P.seban && J();
269
+ }, G = (e) => {
270
+ let t = k.ids?.[e];
271
+ if (t?.id) return t;
272
+ let n = window.g?.ids?.[e];
273
+ return n ? {
274
+ id: n,
275
+ reqType: "post",
276
+ isFormData: !1
277
+ } : null;
278
+ }, K = async (t, n) => {
279
+ let r = G(t);
280
+ if (!r) return [];
281
+ let i = window.g || {}, a = {
282
+ appKey: k.appKey || i.appKey,
283
+ appSalt: k.appSalt || i.appSalt,
284
+ id: r.id,
285
+ variables: n,
286
+ baseHttp: k.baseHttp || i.BASE_URL,
287
+ reqType: r.reqType || "post",
288
+ isFormData: r.isFormData ?? !1
289
+ };
290
+ F.value = !0;
291
+ let o = null;
292
+ try {
293
+ o = await e(a);
294
+ } catch (e) {
295
+ console.error(e), h.error("数据获取失败");
296
+ } finally {
297
+ F.value = !1;
298
+ }
299
+ let s = o?.data?.result?.output;
300
+ return Array.isArray(s) ? s : [];
301
+ }, q = async () => {
302
+ if (I.value = await K(M.value === "live" ? "realTimeGrid" : "forecastGrid", {}), !I.value.length) {
303
+ h.warning("当前时刻暂无网格数据"), X(null);
304
+ return;
305
+ }
306
+ X(Y(I.value));
307
+ }, J = async () => {
308
+ let e = await K(M.value === "live" ? "realTimeGridImg" : "forecastGridImg", { el: L[j.value] });
309
+ if (!e.length) {
310
+ h.warning("当前时刻暂无色斑图数据"), Z(null);
311
+ return;
312
+ }
313
+ Z(oe(e[0]));
314
+ }, Y = (e) => {
315
+ let t = L[j.value] || "tmp";
316
+ return {
317
+ layerId: E,
318
+ list: e.map((e) => ({
319
+ ...e,
320
+ lng: (e.left_top_lon + e.right_bottom_lon) / 2,
321
+ lat: (e.left_top_lat + e.left_bottom_lat) / 2
322
+ })),
323
+ distance: 40,
324
+ zIndex: 20,
325
+ displayField: t,
326
+ clusterDisplay: "max",
327
+ clusterField: t,
328
+ clusterStyle: [],
329
+ clusterClickZoom: !1
330
+ };
331
+ }, oe = (e) => ({ imgArr: [{
332
+ imgUrl: (window.g?.filePath || "") + e.image_path,
333
+ lngStart: Number(e.lon_min),
334
+ latStart: Number(e.lat_min),
335
+ lngEnd: Number(e.lon_max),
336
+ latEnd: Number(e.lat_max),
337
+ opacity: .8,
338
+ zIndex: 15,
339
+ otherData: { imgId: D }
340
+ }] }), X = (e) => {
341
+ O("clearClusterMarker", E), e && O("addClusterMarker", e);
342
+ }, Z = (e) => {
343
+ O("clearImg", D), e && O("addImage", e);
344
+ }, Q = (e) => {
345
+ F.value || (P[e] = !P[e]);
346
+ }, $ = (e) => {
347
+ F.value || (M.value = e);
348
+ }, se = () => {
349
+ P.grid && X(null), P.seban && Z(null), O("close", "GridData");
350
+ };
351
+ return (e, t) => (u(), a("div", g, [
352
+ o("div", { class: "GridData__head" }, [o("div", { class: "GridData__head-top" }, [t[4] ||= o("div", { class: "GridData__head-title" }, "网格数据", -1), o("div", {
353
+ class: "closeBtn",
354
+ onClick: se,
355
+ title: "关闭"
356
+ })]), t[5] ||= o("img", {
357
+ class: "GridData__head-line",
358
+ 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",
359
+ alt: ""
360
+ }, null, -1)]),
361
+ o("div", _, [
362
+ o("div", v, [(u(), a(n, null, f(A, (e) => o("div", {
363
+ class: c(["GridData__element", { active: j.value === e }]),
364
+ key: e,
365
+ onClick: (t) => j.value = e
366
+ }, p(e), 11, y)), 64))]),
367
+ o("div", b, [t[6] ||= o("div", { class: "GridData__row-label" }, "类型", -1), o("div", x, [o("div", {
368
+ class: c(["GridData__opt", { active: M.value === "live" }]),
369
+ onClick: t[0] ||= (e) => $("live")
370
+ }, "实况 ", 2), o("div", {
371
+ class: c(["GridData__opt", { active: M.value === "forecast" }]),
372
+ onClick: t[1] ||= (e) => $("forecast")
373
+ }, "预报 ", 2)])]),
374
+ o("div", ne, [o("div", {
375
+ class: c(["GridData__layer", { active: P.seban }]),
376
+ onClick: t[2] ||= (e) => Q("seban")
377
+ }, [...t[7] ||= [o("span", { class: "GridData__layer-check" }, null, -1), o("span", { class: "GridData__layer-name" }, "色斑图", -1)]], 2), o("div", {
378
+ class: c(["GridData__layer", { active: P.grid }]),
379
+ onClick: t[3] ||= (e) => Q("grid")
380
+ }, [...t[8] ||= [o("span", { class: "GridData__layer-check" }, null, -1), o("span", { class: "GridData__layer-name" }, "网格", -1)]], 2)]),
381
+ P.seban && H.value ? (u(), a("div", re, [
382
+ o("div", ie, [o("span", S, p(H.value.title), 1), o("span", C, "(" + p(H.value.unit) + ")", 1)]),
383
+ o("div", w, [(u(!0), a(n, null, f(U.value, (e, t) => (u(), a("span", {
384
+ class: "GridData__legend-block",
385
+ key: t,
386
+ style: l({ backgroundColor: e.color })
387
+ }, null, 4))), 128))]),
388
+ o("div", { class: c(["GridData__legend-labels", { "GridData__legend-labels--slant": V.value }]) }, [(u(!0), a(n, null, f(U.value, (e, t) => (u(), a("span", {
389
+ class: "GridData__legend-label",
390
+ key: t
391
+ }, [o("span", ae, p(e.label), 1)]))), 128))], 2)
392
+ ])) : i("", !0)
393
+ ]),
394
+ F.value ? (u(), a("div", T, [...t[9] ||= [o("span", { class: "GridData__mask-spinner" }, null, -1)]])) : i("", !0)
395
+ ]));
396
+ }
397
+ }), [["__scopeId", "data-v-0b438f59"]]);
398
+ //#endregion
399
+ export { O as t };
@@ -1,6 +1,6 @@
1
1
  import { i as e, t } from "./rolldown-runtime-Dd0fQ6-X.mjs";
2
2
  import { a as n, g as r, i, n as a, p as o, r as s } from "./component-Agent-DwXtdLhK.mjs";
3
- import "./component-Forecast72h-CD6eT1xe.mjs";
3
+ import "./component-Forecast72h-PgbN_y9N.mjs";
4
4
  import { Fragment as c, Teleport as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, getCurrentInstance as _, nextTick as v, onMounted as y, onUnmounted as b, openBlock as x, ref as S, renderList as C, toDisplayString as w, unref as T, vModelCheckbox as ee, vModelText as te, vShow as ne, watch as E, withCtx as re, withDirectives as D, withKeys as ie, withModifiers as ae } from "vue";
5
5
  import "element-plus/es/components/select/style/css";
6
6
  import "element-plus/es/components/option/style/css";
@@ -1,5 +1,5 @@
1
1
  import { g as e, p as t } from "./component-Agent-DwXtdLhK.mjs";
2
- import "./component-Forecast72h-CD6eT1xe.mjs";
2
+ import "./component-Forecast72h-PgbN_y9N.mjs";
3
3
  import { ElLoadingDirective as n, ElTable as r, ElTableColumn as i } from "element-plus/es";
4
4
  import { computed as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, getCurrentInstance as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, toDisplayString as h, vModelCheckbox as g, watch as _, withCtx as v, withDirectives as y } from "vue";
5
5
  import "element-plus/dist/index.css";