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.
- package/dist/chunks/GridData-D930GI5r.mjs +2 -0
- package/dist/chunks/YCServiceSummary-5zaYlO27.mjs +2 -0
- package/dist/chunks/{component-Forecast72h-CD6eT1xe.mjs → component-Forecast72h-PgbN_y9N.mjs} +170 -161
- package/dist/chunks/component-GridData-BK4jKmO-.mjs +399 -0
- package/dist/chunks/{component-HdCameraList-DuC-_0uH.mjs → component-HdCameraList-Ch0ojKDf.mjs} +1 -1
- package/dist/chunks/{component-HdFarmStation-BtYLSMAY.mjs → component-HdFarmStation-BV_kmLzl.mjs} +1 -1
- package/dist/chunks/{component-HdMajorActivity-CQ76SEKD.mjs → component-HdMajorActivity-xlp8Zrq1.mjs} +193 -186
- package/dist/chunks/{component-HdObservation-DmRN3dBq.mjs → component-HdObservation-DrPL7XVh.mjs} +1 -1
- package/dist/chunks/{component-HdPreSituation-KMOE4Mt_.mjs → component-HdPreSituation-D0KUf8I4.mjs} +1 -1
- package/dist/chunks/{component-HdRadarList-Cx_cRpjb.mjs → component-HdRadarList-CspWsOEW.mjs} +1 -1
- package/dist/chunks/{component-HdRadarTimeLine-CwdMMlPK.mjs → component-HdRadarTimeLine-BvE4Ny20.mjs} +3 -3
- package/dist/chunks/{component-HdRisk-Cx_Wuyuy.mjs → component-HdRisk-qQ1jbMi4.mjs} +1 -1
- package/dist/chunks/{component-HdServiceMarterial-D4nik4h0.mjs → component-HdServiceMarterial-DAf5Wr6D.mjs} +1 -1
- package/dist/chunks/{component-HdServiceRequirements-CrpxYdNK.mjs → component-HdServiceRequirements-CycjsvZT.mjs} +1 -1
- package/dist/chunks/{component-HdSoil-eQTGGIkq.mjs → component-HdSoil-BKDaVRnf.mjs} +1 -1
- package/dist/chunks/{component-HdStationTem-BCls8KKc.mjs → component-HdStationTem-Cb2YV_fB.mjs} +1 -1
- package/dist/chunks/{component-HdSuggestion-BnGlQLfg.mjs → component-HdSuggestion-fajQUBiB.mjs} +1 -1
- package/dist/chunks/{component-HdThreeWeatherTrend-D_dPqael.mjs → component-HdThreeWeatherTrend-CeAHvlR3.mjs} +1 -1
- package/dist/chunks/{component-HdWaveForcast-B-RPD_5H.mjs → component-HdWaveForcast-DRuTytq8.mjs} +1 -1
- package/dist/chunks/{component-HighwayWeatherForecast-BVj7aWS1.mjs → component-HighwayWeatherForecast-CUk0YFO6.mjs} +2 -2
- package/dist/chunks/{component-PrecipitationRanking-Ct4OY0FJ.mjs → component-PrecipitationRanking-Nq_SI95N.mjs} +1 -1
- package/dist/chunks/{component-StationDialog-_pkrpDnI.mjs → component-StationDialog-B-6V3oc5.mjs} +1 -1
- package/dist/chunks/{component-StationList-D4XTo6r2.mjs → component-StationList-qtk1j-fG.mjs} +1 -1
- package/dist/chunks/{component-TimeBasedForecast-4ZZ7ZnCH.mjs → component-TimeBasedForecast-DdTGq6GE.mjs} +1 -1
- package/dist/chunks/component-WeatherForecast-g9IL5upq.mjs +219 -0
- package/dist/chunks/{component-YCDataService-CniJWhHF.mjs → component-YCDataService-DKvMM7rM.mjs} +43 -35
- package/dist/chunks/{component-YCHome-BNYalrzu.mjs → component-YCHome-nJZqqhcF.mjs} +1 -1
- package/dist/components/HdMajorActivity/HdMajorActivity.vue.d.ts +6 -4
- package/dist/components/HdRadarTimeLine/HdRadarTimeLine.vue.d.ts +2 -2
- package/dist/components/HdStationTem/HdStationTem.vue.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/nxd-plugin.mjs +27 -28
- package/dist/styles/component-Forecast72h.css +1 -1
- package/dist/styles/component-GridData.css +1 -1
- package/dist/styles/component-HdMajorActivity.css +1 -1
- package/dist/styles/component-HdRadarTimeLine.css +1 -1
- package/dist/styles/component-WeatherForecast.css +1 -1
- package/dist/styles/component-YCDataService.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/YCServiceSummary-V18ZZfMw.mjs +0 -2
- package/dist/chunks/component-GridData-o7hipw0h.mjs +0 -756
- package/dist/chunks/component-WeatherForecast-DqdD9JUX.mjs +0 -208
- /package/dist/chunks/{component-YCServiceSummary-B-ixNRkt.mjs → component-YCServiceSummary-BKkRTMKf.mjs} +0 -0
|
@@ -1,756 +0,0 @@
|
|
|
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 ee, onMounted as te, openBlock as l, reactive as ne, ref as u, renderList as d, toDisplayString as f, watch as p } from "vue";
|
|
4
|
-
import { ElMessage as m } 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 h = { class: "GridData" }, g = { class: "GridData__body" }, _ = { class: "GridData__elements" }, v = ["onClick"], y = { class: "GridData__row" }, re = { class: "GridData__row-opts" }, ie = { class: "GridData__layers" }, ae = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "GridData__legend"
|
|
10
|
-
}, oe = { class: "GridData__legend-head" }, b = { class: "GridData__legend-title" }, x = { class: "GridData__legend-unit" }, S = { class: "GridData__legend-items" }, se = { class: "GridData__legend-label" }, C = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "GridData__mask"
|
|
13
|
-
}, w = "GridData_grid", T = "GridData_shade", E = /* @__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 E = s, D = t, ce = [
|
|
42
|
-
"降水",
|
|
43
|
-
"大风",
|
|
44
|
-
"温度",
|
|
45
|
-
"相对湿度",
|
|
46
|
-
"能见度"
|
|
47
|
-
], O = u("降水"), k = u("live"), A = u("1h"), j = ne({
|
|
48
|
-
seban: !1,
|
|
49
|
-
grid: !1
|
|
50
|
-
}), M = u(!1), N = u([]), P = {
|
|
51
|
-
降水: "er01",
|
|
52
|
-
大风: "eda10",
|
|
53
|
-
温度: "tmp",
|
|
54
|
-
相对湿度: "erh",
|
|
55
|
-
能见度: "vis"
|
|
56
|
-
}, F = [
|
|
57
|
-
[
|
|
58
|
-
130,
|
|
59
|
-
30,
|
|
60
|
-
180,
|
|
61
|
-
240
|
|
62
|
-
],
|
|
63
|
-
[
|
|
64
|
-
80,
|
|
65
|
-
50,
|
|
66
|
-
180,
|
|
67
|
-
240
|
|
68
|
-
],
|
|
69
|
-
[
|
|
70
|
-
40,
|
|
71
|
-
80,
|
|
72
|
-
200,
|
|
73
|
-
240
|
|
74
|
-
],
|
|
75
|
-
[
|
|
76
|
-
30,
|
|
77
|
-
130,
|
|
78
|
-
220,
|
|
79
|
-
240
|
|
80
|
-
],
|
|
81
|
-
[
|
|
82
|
-
80,
|
|
83
|
-
180,
|
|
84
|
-
240,
|
|
85
|
-
240
|
|
86
|
-
],
|
|
87
|
-
[
|
|
88
|
-
130,
|
|
89
|
-
220,
|
|
90
|
-
240,
|
|
91
|
-
240
|
|
92
|
-
],
|
|
93
|
-
[
|
|
94
|
-
180,
|
|
95
|
-
240,
|
|
96
|
-
200,
|
|
97
|
-
240
|
|
98
|
-
],
|
|
99
|
-
[
|
|
100
|
-
230,
|
|
101
|
-
240,
|
|
102
|
-
150,
|
|
103
|
-
240
|
|
104
|
-
],
|
|
105
|
-
[
|
|
106
|
-
250,
|
|
107
|
-
220,
|
|
108
|
-
100,
|
|
109
|
-
240
|
|
110
|
-
],
|
|
111
|
-
[
|
|
112
|
-
250,
|
|
113
|
-
170,
|
|
114
|
-
50,
|
|
115
|
-
240
|
|
116
|
-
],
|
|
117
|
-
[
|
|
118
|
-
250,
|
|
119
|
-
120,
|
|
120
|
-
30,
|
|
121
|
-
240
|
|
122
|
-
],
|
|
123
|
-
[
|
|
124
|
-
230,
|
|
125
|
-
60,
|
|
126
|
-
20,
|
|
127
|
-
240
|
|
128
|
-
],
|
|
129
|
-
[
|
|
130
|
-
180,
|
|
131
|
-
30,
|
|
132
|
-
30,
|
|
133
|
-
240
|
|
134
|
-
]
|
|
135
|
-
], I = [
|
|
136
|
-
"<-30",
|
|
137
|
-
"-30~-20",
|
|
138
|
-
"-20~-10",
|
|
139
|
-
"-10~0",
|
|
140
|
-
"0~5",
|
|
141
|
-
"5~10",
|
|
142
|
-
"10~15",
|
|
143
|
-
"15~20",
|
|
144
|
-
"20~25",
|
|
145
|
-
"25~30",
|
|
146
|
-
"30~35",
|
|
147
|
-
"35~40",
|
|
148
|
-
"≥40"
|
|
149
|
-
], L = [
|
|
150
|
-
[
|
|
151
|
-
180,
|
|
152
|
-
30,
|
|
153
|
-
30,
|
|
154
|
-
240
|
|
155
|
-
],
|
|
156
|
-
[
|
|
157
|
-
230,
|
|
158
|
-
100,
|
|
159
|
-
30,
|
|
160
|
-
240
|
|
161
|
-
],
|
|
162
|
-
[
|
|
163
|
-
250,
|
|
164
|
-
180,
|
|
165
|
-
50,
|
|
166
|
-
240
|
|
167
|
-
],
|
|
168
|
-
[
|
|
169
|
-
250,
|
|
170
|
-
220,
|
|
171
|
-
100,
|
|
172
|
-
240
|
|
173
|
-
],
|
|
174
|
-
[
|
|
175
|
-
230,
|
|
176
|
-
240,
|
|
177
|
-
150,
|
|
178
|
-
240
|
|
179
|
-
],
|
|
180
|
-
[
|
|
181
|
-
180,
|
|
182
|
-
240,
|
|
183
|
-
200,
|
|
184
|
-
240
|
|
185
|
-
],
|
|
186
|
-
[
|
|
187
|
-
130,
|
|
188
|
-
220,
|
|
189
|
-
240,
|
|
190
|
-
240
|
|
191
|
-
],
|
|
192
|
-
[
|
|
193
|
-
80,
|
|
194
|
-
180,
|
|
195
|
-
240,
|
|
196
|
-
240
|
|
197
|
-
],
|
|
198
|
-
[
|
|
199
|
-
40,
|
|
200
|
-
130,
|
|
201
|
-
220,
|
|
202
|
-
240
|
|
203
|
-
],
|
|
204
|
-
[
|
|
205
|
-
30,
|
|
206
|
-
80,
|
|
207
|
-
200,
|
|
208
|
-
240
|
|
209
|
-
]
|
|
210
|
-
], R = [
|
|
211
|
-
"<10",
|
|
212
|
-
"10~20",
|
|
213
|
-
"20~30",
|
|
214
|
-
"30~40",
|
|
215
|
-
"40~50",
|
|
216
|
-
"50~60",
|
|
217
|
-
"60~70",
|
|
218
|
-
"70~80",
|
|
219
|
-
"80~90",
|
|
220
|
-
"≥90"
|
|
221
|
-
], z = [
|
|
222
|
-
[
|
|
223
|
-
0,
|
|
224
|
-
0,
|
|
225
|
-
0,
|
|
226
|
-
0
|
|
227
|
-
],
|
|
228
|
-
[
|
|
229
|
-
180,
|
|
230
|
-
240,
|
|
231
|
-
200,
|
|
232
|
-
240
|
|
233
|
-
],
|
|
234
|
-
[
|
|
235
|
-
130,
|
|
236
|
-
220,
|
|
237
|
-
240,
|
|
238
|
-
240
|
|
239
|
-
],
|
|
240
|
-
[
|
|
241
|
-
80,
|
|
242
|
-
180,
|
|
243
|
-
240,
|
|
244
|
-
240
|
|
245
|
-
],
|
|
246
|
-
[
|
|
247
|
-
40,
|
|
248
|
-
130,
|
|
249
|
-
220,
|
|
250
|
-
240
|
|
251
|
-
],
|
|
252
|
-
[
|
|
253
|
-
30,
|
|
254
|
-
80,
|
|
255
|
-
200,
|
|
256
|
-
240
|
|
257
|
-
],
|
|
258
|
-
[
|
|
259
|
-
80,
|
|
260
|
-
50,
|
|
261
|
-
180,
|
|
262
|
-
240
|
|
263
|
-
],
|
|
264
|
-
[
|
|
265
|
-
130,
|
|
266
|
-
30,
|
|
267
|
-
180,
|
|
268
|
-
240
|
|
269
|
-
],
|
|
270
|
-
[
|
|
271
|
-
180,
|
|
272
|
-
30,
|
|
273
|
-
130,
|
|
274
|
-
240
|
|
275
|
-
],
|
|
276
|
-
[
|
|
277
|
-
230,
|
|
278
|
-
60,
|
|
279
|
-
60,
|
|
280
|
-
240
|
|
281
|
-
],
|
|
282
|
-
[
|
|
283
|
-
250,
|
|
284
|
-
120,
|
|
285
|
-
30,
|
|
286
|
-
240
|
|
287
|
-
],
|
|
288
|
-
[
|
|
289
|
-
180,
|
|
290
|
-
30,
|
|
291
|
-
30,
|
|
292
|
-
240
|
|
293
|
-
]
|
|
294
|
-
], B = [
|
|
295
|
-
"0",
|
|
296
|
-
"0~2",
|
|
297
|
-
"2~4",
|
|
298
|
-
"4~6",
|
|
299
|
-
"6~8",
|
|
300
|
-
"8~10",
|
|
301
|
-
"10~12",
|
|
302
|
-
"12~14",
|
|
303
|
-
"14~17",
|
|
304
|
-
"17~20",
|
|
305
|
-
"20~25",
|
|
306
|
-
"≥25"
|
|
307
|
-
], V = [
|
|
308
|
-
[
|
|
309
|
-
112,
|
|
310
|
-
37,
|
|
311
|
-
1,
|
|
312
|
-
240
|
|
313
|
-
],
|
|
314
|
-
[
|
|
315
|
-
155,
|
|
316
|
-
0,
|
|
317
|
-
254,
|
|
318
|
-
240
|
|
319
|
-
],
|
|
320
|
-
[
|
|
321
|
-
251,
|
|
322
|
-
1,
|
|
323
|
-
1,
|
|
324
|
-
240
|
|
325
|
-
],
|
|
326
|
-
[
|
|
327
|
-
255,
|
|
328
|
-
87,
|
|
329
|
-
2,
|
|
330
|
-
240
|
|
331
|
-
],
|
|
332
|
-
[
|
|
333
|
-
254,
|
|
334
|
-
177,
|
|
335
|
-
79,
|
|
336
|
-
240
|
|
337
|
-
],
|
|
338
|
-
[
|
|
339
|
-
255,
|
|
340
|
-
253,
|
|
341
|
-
3,
|
|
342
|
-
240
|
|
343
|
-
],
|
|
344
|
-
[
|
|
345
|
-
116,
|
|
346
|
-
253,
|
|
347
|
-
48,
|
|
348
|
-
240
|
|
349
|
-
],
|
|
350
|
-
[
|
|
351
|
-
150,
|
|
352
|
-
222,
|
|
353
|
-
246,
|
|
354
|
-
240
|
|
355
|
-
],
|
|
356
|
-
[
|
|
357
|
-
197,
|
|
358
|
-
237,
|
|
359
|
-
255,
|
|
360
|
-
240
|
|
361
|
-
],
|
|
362
|
-
[
|
|
363
|
-
253,
|
|
364
|
-
253,
|
|
365
|
-
253,
|
|
366
|
-
0
|
|
367
|
-
]
|
|
368
|
-
], H = [
|
|
369
|
-
"<200",
|
|
370
|
-
"200~500",
|
|
371
|
-
"500~1000",
|
|
372
|
-
"1000~2000",
|
|
373
|
-
"2000~3000",
|
|
374
|
-
"3000~5000",
|
|
375
|
-
"5000~10000",
|
|
376
|
-
"10000~20000",
|
|
377
|
-
"20000~30000",
|
|
378
|
-
"≥30000"
|
|
379
|
-
], U = [
|
|
380
|
-
[
|
|
381
|
-
0,
|
|
382
|
-
0,
|
|
383
|
-
0,
|
|
384
|
-
0
|
|
385
|
-
],
|
|
386
|
-
[
|
|
387
|
-
166,
|
|
388
|
-
242,
|
|
389
|
-
142,
|
|
390
|
-
255
|
|
391
|
-
],
|
|
392
|
-
[
|
|
393
|
-
60,
|
|
394
|
-
186,
|
|
395
|
-
60,
|
|
396
|
-
255
|
|
397
|
-
],
|
|
398
|
-
[
|
|
399
|
-
96,
|
|
400
|
-
184,
|
|
401
|
-
254,
|
|
402
|
-
255
|
|
403
|
-
],
|
|
404
|
-
[
|
|
405
|
-
0,
|
|
406
|
-
166,
|
|
407
|
-
255,
|
|
408
|
-
255
|
|
409
|
-
],
|
|
410
|
-
[
|
|
411
|
-
0,
|
|
412
|
-
117,
|
|
413
|
-
255,
|
|
414
|
-
255
|
|
415
|
-
],
|
|
416
|
-
[
|
|
417
|
-
0,
|
|
418
|
-
0,
|
|
419
|
-
224,
|
|
420
|
-
255
|
|
421
|
-
],
|
|
422
|
-
[
|
|
423
|
-
250,
|
|
424
|
-
0,
|
|
425
|
-
250,
|
|
426
|
-
255
|
|
427
|
-
],
|
|
428
|
-
[
|
|
429
|
-
124,
|
|
430
|
-
6,
|
|
431
|
-
65,
|
|
432
|
-
255
|
|
433
|
-
]
|
|
434
|
-
], le = [
|
|
435
|
-
[
|
|
436
|
-
0,
|
|
437
|
-
0,
|
|
438
|
-
0,
|
|
439
|
-
0
|
|
440
|
-
],
|
|
441
|
-
[
|
|
442
|
-
166,
|
|
443
|
-
242,
|
|
444
|
-
143,
|
|
445
|
-
255
|
|
446
|
-
],
|
|
447
|
-
[
|
|
448
|
-
61,
|
|
449
|
-
186,
|
|
450
|
-
61,
|
|
451
|
-
255
|
|
452
|
-
],
|
|
453
|
-
[
|
|
454
|
-
97,
|
|
455
|
-
184,
|
|
456
|
-
255,
|
|
457
|
-
255
|
|
458
|
-
],
|
|
459
|
-
[
|
|
460
|
-
0,
|
|
461
|
-
0,
|
|
462
|
-
255,
|
|
463
|
-
255
|
|
464
|
-
],
|
|
465
|
-
[
|
|
466
|
-
250,
|
|
467
|
-
0,
|
|
468
|
-
250,
|
|
469
|
-
255
|
|
470
|
-
],
|
|
471
|
-
[
|
|
472
|
-
128,
|
|
473
|
-
0,
|
|
474
|
-
64,
|
|
475
|
-
255
|
|
476
|
-
],
|
|
477
|
-
[
|
|
478
|
-
255,
|
|
479
|
-
170,
|
|
480
|
-
0,
|
|
481
|
-
255
|
|
482
|
-
],
|
|
483
|
-
[
|
|
484
|
-
255,
|
|
485
|
-
102,
|
|
486
|
-
0,
|
|
487
|
-
255
|
|
488
|
-
],
|
|
489
|
-
[
|
|
490
|
-
230,
|
|
491
|
-
0,
|
|
492
|
-
0,
|
|
493
|
-
255
|
|
494
|
-
],
|
|
495
|
-
[
|
|
496
|
-
80,
|
|
497
|
-
45,
|
|
498
|
-
10,
|
|
499
|
-
255
|
|
500
|
-
]
|
|
501
|
-
], W = {
|
|
502
|
-
"1h": [
|
|
503
|
-
.1,
|
|
504
|
-
1.6,
|
|
505
|
-
7,
|
|
506
|
-
15,
|
|
507
|
-
20,
|
|
508
|
-
30,
|
|
509
|
-
40,
|
|
510
|
-
50
|
|
511
|
-
],
|
|
512
|
-
"2h": [
|
|
513
|
-
.1,
|
|
514
|
-
3,
|
|
515
|
-
10,
|
|
516
|
-
15,
|
|
517
|
-
25,
|
|
518
|
-
35,
|
|
519
|
-
50,
|
|
520
|
-
70
|
|
521
|
-
],
|
|
522
|
-
"3h": [
|
|
523
|
-
.1,
|
|
524
|
-
3,
|
|
525
|
-
10,
|
|
526
|
-
15,
|
|
527
|
-
25,
|
|
528
|
-
35,
|
|
529
|
-
50,
|
|
530
|
-
70
|
|
531
|
-
],
|
|
532
|
-
"6h": [
|
|
533
|
-
.1,
|
|
534
|
-
4,
|
|
535
|
-
13,
|
|
536
|
-
25,
|
|
537
|
-
35,
|
|
538
|
-
45,
|
|
539
|
-
60,
|
|
540
|
-
120
|
|
541
|
-
],
|
|
542
|
-
"12h": [
|
|
543
|
-
.1,
|
|
544
|
-
4,
|
|
545
|
-
13,
|
|
546
|
-
25,
|
|
547
|
-
35,
|
|
548
|
-
45,
|
|
549
|
-
60,
|
|
550
|
-
120
|
|
551
|
-
],
|
|
552
|
-
"24h": [
|
|
553
|
-
.1,
|
|
554
|
-
10,
|
|
555
|
-
25,
|
|
556
|
-
50,
|
|
557
|
-
100,
|
|
558
|
-
250,
|
|
559
|
-
400,
|
|
560
|
-
600,
|
|
561
|
-
800,
|
|
562
|
-
1e3
|
|
563
|
-
],
|
|
564
|
-
"48h": [
|
|
565
|
-
.1,
|
|
566
|
-
10,
|
|
567
|
-
25,
|
|
568
|
-
50,
|
|
569
|
-
100,
|
|
570
|
-
250,
|
|
571
|
-
400,
|
|
572
|
-
600,
|
|
573
|
-
800,
|
|
574
|
-
1e3
|
|
575
|
-
]
|
|
576
|
-
}, ue = {
|
|
577
|
-
大风: {
|
|
578
|
-
title: "风速",
|
|
579
|
-
unit: "m/s",
|
|
580
|
-
colors: z,
|
|
581
|
-
labels: B
|
|
582
|
-
},
|
|
583
|
-
温度: {
|
|
584
|
-
title: "温度",
|
|
585
|
-
unit: "°C",
|
|
586
|
-
colors: F,
|
|
587
|
-
labels: I
|
|
588
|
-
},
|
|
589
|
-
相对湿度: {
|
|
590
|
-
title: "相对湿度",
|
|
591
|
-
unit: "%",
|
|
592
|
-
colors: L,
|
|
593
|
-
labels: R
|
|
594
|
-
},
|
|
595
|
-
能见度: {
|
|
596
|
-
title: "能见度",
|
|
597
|
-
unit: "m",
|
|
598
|
-
colors: V,
|
|
599
|
-
labels: H
|
|
600
|
-
}
|
|
601
|
-
}, de = (e, t) => Array.from({ length: t }, (n, r) => r === 0 ? `≤${e[0]}` : r === t - 1 ? `≥${e[e.length - 1]}` : `${e[r - 1]}~${e[r]}`), G = r(() => {
|
|
602
|
-
if (O.value === "降水") {
|
|
603
|
-
let e = A.value === "24h" || A.value === "48h" ? le : U, t = W[A.value] || W["1h"];
|
|
604
|
-
return {
|
|
605
|
-
title: `${A.value}降水量`,
|
|
606
|
-
unit: "mm",
|
|
607
|
-
colors: e,
|
|
608
|
-
labels: de(t, e.length)
|
|
609
|
-
};
|
|
610
|
-
}
|
|
611
|
-
return ue[O.value] || null;
|
|
612
|
-
}), fe = r(() => {
|
|
613
|
-
let e = G.value;
|
|
614
|
-
return e ? e.colors.map((t, n) => ({
|
|
615
|
-
color: `rgba(${t[0]},${t[1]},${t[2]},${t[3] / 255})`,
|
|
616
|
-
label: e.labels[n] || "",
|
|
617
|
-
empty: t[3] === 0
|
|
618
|
-
})).reverse() : [];
|
|
619
|
-
});
|
|
620
|
-
te(() => {
|
|
621
|
-
pe();
|
|
622
|
-
}), p([k, () => j.grid], () => {
|
|
623
|
-
j.grid ? q() : X(null);
|
|
624
|
-
}), p([k, () => j.seban], () => {
|
|
625
|
-
j.seban ? J() : Z(null);
|
|
626
|
-
}), p(O, () => {
|
|
627
|
-
j.grid && N.value.length && X(Y(N.value)), j.seban && (Z(null), J());
|
|
628
|
-
});
|
|
629
|
-
let pe = async () => {
|
|
630
|
-
j.grid && q(), j.seban && J();
|
|
631
|
-
}, me = (e) => {
|
|
632
|
-
let t = D.ids?.[e];
|
|
633
|
-
if (t?.id) return t;
|
|
634
|
-
let n = window.g?.ids?.[e];
|
|
635
|
-
return n ? {
|
|
636
|
-
id: n,
|
|
637
|
-
reqType: "post",
|
|
638
|
-
isFormData: !1
|
|
639
|
-
} : null;
|
|
640
|
-
}, K = async (t, n) => {
|
|
641
|
-
let r = me(t);
|
|
642
|
-
if (!r) return [];
|
|
643
|
-
let i = window.g || {}, a = {
|
|
644
|
-
appKey: D.appKey || i.appKey,
|
|
645
|
-
appSalt: D.appSalt || i.appSalt,
|
|
646
|
-
id: r.id,
|
|
647
|
-
variables: n,
|
|
648
|
-
baseHttp: D.baseHttp || i.BASE_URL,
|
|
649
|
-
reqType: r.reqType || "post",
|
|
650
|
-
isFormData: r.isFormData ?? !1
|
|
651
|
-
};
|
|
652
|
-
M.value = !0;
|
|
653
|
-
let o = null;
|
|
654
|
-
try {
|
|
655
|
-
o = await e(a);
|
|
656
|
-
} catch (e) {
|
|
657
|
-
console.error(e), m.error("数据获取失败");
|
|
658
|
-
} finally {
|
|
659
|
-
M.value = !1;
|
|
660
|
-
}
|
|
661
|
-
let s = o?.data?.result?.output;
|
|
662
|
-
return Array.isArray(s) ? s : [];
|
|
663
|
-
}, q = async () => {
|
|
664
|
-
if (N.value = await K(k.value === "live" ? "realTimeGrid" : "forecastGrid", {}), !N.value.length) {
|
|
665
|
-
m.warning("当前时刻暂无网格数据"), X(null);
|
|
666
|
-
return;
|
|
667
|
-
}
|
|
668
|
-
X(Y(N.value));
|
|
669
|
-
}, J = async () => {
|
|
670
|
-
let e = await K(k.value === "live" ? "realTimeGridImg" : "forecastGridImg", { el: P[O.value] });
|
|
671
|
-
if (!e.length) {
|
|
672
|
-
m.warning("当前时刻暂无色斑图数据"), Z(null);
|
|
673
|
-
return;
|
|
674
|
-
}
|
|
675
|
-
Z(he(e[0]));
|
|
676
|
-
}, Y = (e) => {
|
|
677
|
-
let t = P[O.value] || "tmp";
|
|
678
|
-
return {
|
|
679
|
-
layerId: w,
|
|
680
|
-
list: e.map((e) => ({
|
|
681
|
-
...e,
|
|
682
|
-
lng: (e.left_top_lon + e.right_bottom_lon) / 2,
|
|
683
|
-
lat: (e.left_top_lat + e.left_bottom_lat) / 2
|
|
684
|
-
})),
|
|
685
|
-
distance: 40,
|
|
686
|
-
zIndex: 20,
|
|
687
|
-
displayField: t,
|
|
688
|
-
clusterDisplay: "max",
|
|
689
|
-
clusterField: t,
|
|
690
|
-
clusterStyle: [],
|
|
691
|
-
clusterClickZoom: !1
|
|
692
|
-
};
|
|
693
|
-
}, he = (e) => ({ imgArr: [{
|
|
694
|
-
imgUrl: (window.g?.filePath || "") + e.image_path,
|
|
695
|
-
lngStart: Number(e.lon_min),
|
|
696
|
-
latStart: Number(e.lat_min),
|
|
697
|
-
lngEnd: Number(e.lon_max),
|
|
698
|
-
latEnd: Number(e.lat_max),
|
|
699
|
-
opacity: .8,
|
|
700
|
-
zIndex: 15,
|
|
701
|
-
otherData: { imgId: T }
|
|
702
|
-
}] }), X = (e) => {
|
|
703
|
-
E("clearClusterMarker", w), e && E("addClusterMarker", e);
|
|
704
|
-
}, Z = (e) => {
|
|
705
|
-
E("clearImg", T), e && E("addImage", e);
|
|
706
|
-
}, Q = (e) => {
|
|
707
|
-
M.value || (j[e] = !j[e]);
|
|
708
|
-
}, $ = (e) => {
|
|
709
|
-
M.value || (k.value = e);
|
|
710
|
-
}, ge = () => {
|
|
711
|
-
j.grid && X(null), j.seban && Z(null), E("close", "GridData");
|
|
712
|
-
};
|
|
713
|
-
return (e, t) => (l(), a("div", h, [
|
|
714
|
-
o("div", { class: "GridData__head" }, [o("div", { class: "GridData__head-top" }, [t[4] ||= o("div", { class: "GridData__head-title" }, "网格数据", -1), o("div", {
|
|
715
|
-
class: "closeBtn",
|
|
716
|
-
onClick: ge,
|
|
717
|
-
title: "关闭"
|
|
718
|
-
})]), t[5] ||= o("img", {
|
|
719
|
-
class: "GridData__head-line",
|
|
720
|
-
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",
|
|
721
|
-
alt: ""
|
|
722
|
-
}, null, -1)]),
|
|
723
|
-
o("div", g, [
|
|
724
|
-
o("div", _, [(l(), a(n, null, d(ce, (e) => o("div", {
|
|
725
|
-
class: c(["GridData__element", { active: O.value === e }]),
|
|
726
|
-
key: e,
|
|
727
|
-
onClick: (t) => O.value = e
|
|
728
|
-
}, f(e), 11, v)), 64))]),
|
|
729
|
-
o("div", y, [t[6] ||= o("div", { class: "GridData__row-label" }, "类型", -1), o("div", re, [o("div", {
|
|
730
|
-
class: c(["GridData__opt", { active: k.value === "live" }]),
|
|
731
|
-
onClick: t[0] ||= (e) => $("live")
|
|
732
|
-
}, "实况 ", 2), o("div", {
|
|
733
|
-
class: c(["GridData__opt", { active: k.value === "forecast" }]),
|
|
734
|
-
onClick: t[1] ||= (e) => $("forecast")
|
|
735
|
-
}, "预报 ", 2)])]),
|
|
736
|
-
o("div", ie, [o("div", {
|
|
737
|
-
class: c(["GridData__layer", { active: j.seban }]),
|
|
738
|
-
onClick: t[2] ||= (e) => Q("seban")
|
|
739
|
-
}, [...t[7] ||= [o("span", { class: "GridData__layer-check" }, null, -1), o("span", { class: "GridData__layer-name" }, "色斑图", -1)]], 2), o("div", {
|
|
740
|
-
class: c(["GridData__layer", { active: j.grid }]),
|
|
741
|
-
onClick: t[3] ||= (e) => Q("grid")
|
|
742
|
-
}, [...t[8] ||= [o("span", { class: "GridData__layer-check" }, null, -1), o("span", { class: "GridData__layer-name" }, "网格", -1)]], 2)]),
|
|
743
|
-
j.seban && G.value ? (l(), a("div", ae, [o("div", oe, [o("span", b, f(G.value.title), 1), o("span", x, "(" + f(G.value.unit) + ")", 1)]), o("div", S, [(l(!0), a(n, null, d(fe.value, (e, t) => (l(), a("div", {
|
|
744
|
-
class: "GridData__legend-item",
|
|
745
|
-
key: t
|
|
746
|
-
}, [o("span", {
|
|
747
|
-
class: c(["GridData__legend-color", { "GridData__legend-color--empty": e.empty }]),
|
|
748
|
-
style: ee({ backgroundColor: e.color })
|
|
749
|
-
}, null, 6), o("span", se, f(e.label), 1)]))), 128))])])) : i("", !0)
|
|
750
|
-
]),
|
|
751
|
-
M.value ? (l(), a("div", C, [...t[9] ||= [o("span", { class: "GridData__mask-spinner" }, null, -1)]])) : i("", !0)
|
|
752
|
-
]));
|
|
753
|
-
}
|
|
754
|
-
}), [["__scopeId", "data-v-bb670cb0"]]);
|
|
755
|
-
//#endregion
|
|
756
|
-
export { E as t };
|