nxd-plugin 1.7.84 → 1.7.86
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/component-Forecast72h-TFBSlUgI.mjs +543 -0
- package/dist/chunks/{component-HdObservation-CM6HUrQ3.mjs → component-HdObservation-rcQFHEfW.mjs} +1 -1
- package/dist/chunks/{component-HdPreSituation-CJ8-wiRO.mjs → component-HdPreSituation-CnRwuRGg.mjs} +2 -2
- package/dist/chunks/{component-HdRadarTime-C4ZArOUM.mjs → component-HdRadarTime-Gcn9dJky.mjs} +177 -146
- package/dist/chunks/{component-HdServiceMarterial-pSFQUH2x.mjs → component-HdServiceMarterial-ehquoNg2.mjs} +6 -5
- package/dist/chunks/{component-HdServiceRequirements-BjuiyyC5.mjs → component-HdServiceRequirements-Bd4HJrpn.mjs} +1 -1
- package/dist/chunks/{component-HdStationTem-Dit7Y8lu.mjs → component-HdStationTem-CbJkt6Ww.mjs} +2 -2
- package/dist/chunks/{component-HdSuggestion-B_abfzRO.mjs → component-HdSuggestion-_JNJhwSK.mjs} +1 -1
- package/dist/chunks/{component-HdThreeWeatherTrend-B2qzvOzb.mjs → component-HdThreeWeatherTrend-HlRMLWm8.mjs} +1 -1
- package/dist/chunks/{component-HdWaveForcast-D8UZrHzF.mjs → component-HdWaveForcast-jNK-H1b1.mjs} +1 -1
- package/dist/chunks/{component-HighwayWeatherForecast-BQrNGF7m.mjs → component-HighwayWeatherForecast-CDLKFRNB.mjs} +119 -119
- package/dist/chunks/{component-PrecipitationRanking-C63n87WI.mjs → component-PrecipitationRanking-BOm_vb1L.mjs} +203 -121
- package/dist/chunks/{component-StationDialog-Ck8zd52d.mjs → component-StationDialog-CnJuYTfB.mjs} +123 -113
- package/dist/chunks/{component-StationList-BvoVJwAU.mjs → component-StationList-BcnqOIZY.mjs} +70 -68
- package/dist/chunks/{component-TimeBasedForecast-BaPiit4s.mjs → component-TimeBasedForecast-C1yk1Iu-.mjs} +33 -33
- package/dist/chunks/{component-WeatherForecast-DWdNramU.mjs → component-WeatherForecast-BRml38Ik.mjs} +33 -33
- package/dist/chunks/{component-YCDataService-CD042ss7.mjs → component-YCDataService-B4PPV3Dp.mjs} +1 -1
- package/dist/chunks/{component-YCHome-DjpIzt-5.mjs → component-YCHome-C-_Hf_oA.mjs} +1 -1
- package/dist/components/HdRadarTime/HdRadarTime.vue.d.ts +4 -2
- package/dist/nxd-plugin.mjs +21 -21
- package/dist/styles/component-Forecast72h.css +1 -1
- package/dist/styles/component-HdRadarTime.css +1 -1
- package/dist/styles/component-HdServiceMarterial.css +1 -1
- package/dist/styles/component-PrecipitationRanking.css +1 -1
- package/dist/styles/component-StationDialog.css +1 -1
- package/dist/styles/component-StationList.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/component-Forecast72h-BkVZSGhE.mjs +0 -427
- /package/dist/chunks/{component-ServiceMaterialsBtn-CTWGd-Is.mjs → component-ServiceMaterialsBtn-C9m-epfv.mjs} +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-Cz5NsrRf.mjs";
|
|
2
2
|
import { n as t } from "./component-AqiMonitor-C_V1Nuf_.mjs";
|
|
3
3
|
import { i as n } from "./component-AiChat-BXNBLM1G.mjs";
|
|
4
|
-
import "./component-Forecast72h-
|
|
5
|
-
import { n as r } from "./component-HdObservation-
|
|
6
|
-
import { ElConfigProvider as i, ElDatePicker as a, ElIcon as
|
|
7
|
-
import { Fragment as
|
|
8
|
-
import { Download as
|
|
9
|
-
import * as
|
|
10
|
-
import { ElMessage as
|
|
11
|
-
import
|
|
4
|
+
import "./component-Forecast72h-TFBSlUgI.mjs";
|
|
5
|
+
import { n as r } from "./component-HdObservation-rcQFHEfW.mjs";
|
|
6
|
+
import { ElConfigProvider as i, ElDatePicker as a, ElIcon as o, ElLoadingDirective as s, ElTable as c, ElTableColumn as l } from "element-plus/es";
|
|
7
|
+
import { Fragment as u, computed as d, createBlock as ee, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as te, createVNode as h, defineComponent as g, getCurrentInstance as _, nextTick as v, normalizeClass as y, normalizeStyle as ne, onBeforeUnmount as b, onMounted as re, openBlock as x, ref as S, renderList as C, toDisplayString as w, unref as T, withCtx as E, withDirectives as ie, withModifiers as ae } from "vue";
|
|
8
|
+
import { Download as oe, Refresh as se } from "@element-plus/icons-vue";
|
|
9
|
+
import * as D from "echarts";
|
|
10
|
+
import { ElMessage as ce } from "element-plus";
|
|
11
|
+
import le from "element-plus/es/locale/lang/zh-cn.mjs";
|
|
12
12
|
import "element-plus/dist/index.css";
|
|
13
13
|
//#region src/components/PrecipitationRanking/PrecipitationRanking.vue?vue&type=script&setup=true&lang.ts
|
|
14
|
-
var
|
|
14
|
+
var ue = /* @__PURE__ */ e(r()), de = {
|
|
15
15
|
class: "PrecipitationRanking",
|
|
16
16
|
"element-loading-background": "rgba(0, 0, 0, 0.5)"
|
|
17
|
-
},
|
|
17
|
+
}, fe = { class: "PrecipitationRanking-header" }, pe = { class: "PrecipitationRanking-headerContent" }, me = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "PrecipitationRanking-dataTime"
|
|
20
|
-
},
|
|
20
|
+
}, he = { class: "PrecipitationRanking-toolbar" }, ge = { class: "PrecipitationRanking-actions" }, _e = { class: "PrecipitationRanking-btnGroup" }, ve = { class: "PrecipitationRanking-timeWrap" }, ye = { class: "PrecipitationRanking-timeTags" }, be = ["onClick"], xe = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "PrecipitationRanking-customPanel"
|
|
23
|
-
},
|
|
23
|
+
}, Se = { class: "PrecipitationRanking-content" }, Ce = { class: "PrecipitationRanking-tableWrap" }, we = ["onClick"], Te = {
|
|
24
24
|
key: 1,
|
|
25
25
|
class: "PrecipitationRanking-trendMask"
|
|
26
|
-
},
|
|
26
|
+
}, Ee = { class: "PrecipitationRanking-trendPopup" }, De = { class: "PrecipitationRanking-trendHeader" }, Oe = { class: "PrecipitationRanking-trendTitle" }, ke = { class: "PrecipitationRanking-trendSubTitle" }, O = /* @__PURE__ */ t(/* @__PURE__ */ g({
|
|
27
27
|
__name: "PrecipitationRanking",
|
|
28
28
|
props: {
|
|
29
29
|
mock: {
|
|
@@ -148,7 +148,7 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
148
148
|
"view"
|
|
149
149
|
],
|
|
150
150
|
setup(e, { emit: t }) {
|
|
151
|
-
let r =
|
|
151
|
+
let r = _()?.appContext.config.globalProperties.$bus, g = e, O = t, k = S(!1), A = S(!1), j = S(["30min"]), M = S(!1), N = S(""), P = S([]), F = S([]), I = S(!1), L = S(null), R = S(null), z = null, B = null, V = [
|
|
152
152
|
{
|
|
153
153
|
label: "30分钟",
|
|
154
154
|
value: "30min",
|
|
@@ -184,14 +184,14 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
184
184
|
if (t === "custom") return e.precipitation;
|
|
185
185
|
let n = Ae[t];
|
|
186
186
|
return n ? e[n] : e.precipitation;
|
|
187
|
-
}, U =
|
|
187
|
+
}, U = d(() => {
|
|
188
188
|
let e = V.filter((e) => j.value.includes(e.value));
|
|
189
189
|
return M.value && e.push({
|
|
190
190
|
label: "自定义",
|
|
191
191
|
value: "custom",
|
|
192
192
|
field: "precipitation"
|
|
193
193
|
}), e;
|
|
194
|
-
}), W =
|
|
194
|
+
}), W = d(() => j.value.length ? j.value[0] : M.value ? "custom" : "30min"), G = d(() => [...P.value].sort((e, t) => {
|
|
195
195
|
let n = Number(H(e, W.value)) || 0;
|
|
196
196
|
return (Number(H(t, W.value)) || 0) - n;
|
|
197
197
|
})), K = (e) => e == null || e === "" || e === 9999, q = (e, t) => K(e) ? "--" : t ? `${e}${t}` : String(e), J = (e) => {
|
|
@@ -205,7 +205,7 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
205
205
|
}, Ne = (e) => {
|
|
206
206
|
O("rowClick", e);
|
|
207
207
|
}, Pe = (e) => {
|
|
208
|
-
L.value = e, I.value = !0,
|
|
208
|
+
L.value = e, I.value = !0, v(() => {
|
|
209
209
|
ze();
|
|
210
210
|
});
|
|
211
211
|
}, Fe = () => {
|
|
@@ -270,21 +270,21 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
270
270
|
]
|
|
271
271
|
}), Le = async () => {
|
|
272
272
|
if (!L.value) return null;
|
|
273
|
-
if (
|
|
273
|
+
if (g.mock) return L.value.trendData || Ie();
|
|
274
274
|
let e = Y("trend");
|
|
275
275
|
if (!e) return console.warn("PrecipitationRanking 缺少趋势图工作流配置"), null;
|
|
276
276
|
try {
|
|
277
277
|
return X(await n({
|
|
278
278
|
id: e.id,
|
|
279
|
-
baseHttp:
|
|
279
|
+
baseHttp: g.baseHttp,
|
|
280
280
|
reqType: e.reqType,
|
|
281
281
|
variables: {
|
|
282
282
|
stationCode: L.value.stationCode,
|
|
283
283
|
stationName: L.value.stationName
|
|
284
284
|
},
|
|
285
285
|
isFormData: e.isFormData,
|
|
286
|
-
appKey:
|
|
287
|
-
appSalt:
|
|
286
|
+
appKey: g.appKey,
|
|
287
|
+
appSalt: g.appSalt
|
|
288
288
|
})) || null;
|
|
289
289
|
} catch (e) {
|
|
290
290
|
return console.error("PrecipitationRanking 趋势图数据加载失败", e), null;
|
|
@@ -298,15 +298,30 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
298
298
|
if (!R.value) return;
|
|
299
299
|
let e = await Le();
|
|
300
300
|
if (!e) return;
|
|
301
|
-
z && z.dispose(), z =
|
|
302
|
-
let t = e.actual.length, n =
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
301
|
+
z && z.dispose(), z = D.init(R.value);
|
|
302
|
+
let t = e.actual.length, n = "#FADB14", r = (e) => {
|
|
303
|
+
let t = e.replace(/(\d+)时$/, "$1:00:00").replace(/(\d+)时(\d+)分$/, "$1:$2:00"), n = new Date(t);
|
|
304
|
+
return isNaN(n.getTime()) ? null : n;
|
|
305
|
+
}, i = (() => {
|
|
306
|
+
if (!e.times.length || !e.forecast.length) return [];
|
|
307
|
+
let t = r(e.times[e.times.length - 1]), n = 36e5;
|
|
308
|
+
if (e.times.length > 1) {
|
|
309
|
+
let i = r(e.times[e.times.length - 2]);
|
|
310
|
+
t && i && (n = t.getTime() - i.getTime());
|
|
311
|
+
}
|
|
312
|
+
let i = [];
|
|
313
|
+
for (let r = 0; r < e.forecast.length; r++) if (t) {
|
|
314
|
+
let e = new Date(t.getTime() + n * (r + 1));
|
|
315
|
+
i.push(`${String(e.getHours()).padStart(2, "0")}时`);
|
|
316
|
+
} else {
|
|
317
|
+
let t = e.times[e.times.length - 1].match(/(\d+)/), n = t ? parseInt(t[1]) : 0;
|
|
318
|
+
n = (n + r + 1) % 24, i.push(`${String(n).padStart(2, "0")}时`);
|
|
319
|
+
}
|
|
320
|
+
return i;
|
|
321
|
+
})(), a = [...e.times, ...i], o = [...e.actual, ...e.forecast.map(() => null)], s = [...e.actual.map(() => null), ...e.forecast], c = [...e.actual, ...e.forecast.map(() => null)], l = Array(a.length).fill(null);
|
|
322
|
+
l[t - 1] = e.actual[t - 1];
|
|
323
|
+
for (let n = 0; n < e.forecast.length; n++) l[t + n] = e.forecast[n];
|
|
324
|
+
let u = {
|
|
310
325
|
backgroundColor: "transparent",
|
|
311
326
|
grid: {
|
|
312
327
|
top: 40,
|
|
@@ -315,7 +330,11 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
315
330
|
left: 48
|
|
316
331
|
},
|
|
317
332
|
legend: {
|
|
318
|
-
data: [
|
|
333
|
+
data: [
|
|
334
|
+
"阈值",
|
|
335
|
+
"降水实况",
|
|
336
|
+
"预测值"
|
|
337
|
+
],
|
|
319
338
|
right: 0,
|
|
320
339
|
top: 0,
|
|
321
340
|
textStyle: {
|
|
@@ -330,14 +349,18 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
330
349
|
backgroundColor: "rgba(6, 32, 56, 0.95)",
|
|
331
350
|
borderColor: "rgba(64, 158, 255, 0.4)",
|
|
332
351
|
textStyle: { color: "#fff" },
|
|
333
|
-
formatter: (n) =>
|
|
334
|
-
let r = n
|
|
335
|
-
return
|
|
336
|
-
|
|
352
|
+
formatter: (n) => {
|
|
353
|
+
let r = n[0]?.axisValue || "", i = /* @__PURE__ */ new Map();
|
|
354
|
+
return n.forEach((e) => {
|
|
355
|
+
if (e.seriesName === "预测值" && e.dataIndex === t - 1 || e.value === null || e.value === void 0 || isNaN(Number(e.value))) return;
|
|
356
|
+
let n = `${e.seriesName}:${e.value}`;
|
|
357
|
+
i.has(n) || i.set(n, e);
|
|
358
|
+
}), `${r}<br/>${Array.from(i.values()).map((t) => `${t.marker} ${t.seriesName}: ${t.value}${e.unit}`).join("<br/>")}`;
|
|
359
|
+
}
|
|
337
360
|
},
|
|
338
361
|
xAxis: {
|
|
339
362
|
type: "category",
|
|
340
|
-
data:
|
|
363
|
+
data: a,
|
|
341
364
|
axisLine: { lineStyle: { color: "rgba(255,255,255,0.3)" } },
|
|
342
365
|
axisLabel: {
|
|
343
366
|
color: "rgba(255,255,255,0.7)",
|
|
@@ -366,49 +389,108 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
366
389
|
splitLine: { show: !1 },
|
|
367
390
|
axisTick: { show: !1 }
|
|
368
391
|
},
|
|
369
|
-
series: [
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
type: "dashed",
|
|
376
|
-
width: 1
|
|
377
|
-
},
|
|
378
|
-
symbol: "none",
|
|
379
|
-
markLine: {
|
|
380
|
-
silent: !0,
|
|
381
|
-
symbol: "none",
|
|
392
|
+
series: [
|
|
393
|
+
{
|
|
394
|
+
name: "阈值",
|
|
395
|
+
type: "line",
|
|
396
|
+
data: a.map((t, n) => e.threshold[n] ?? e.threshold[e.threshold.length - 1] ?? 0),
|
|
397
|
+
itemStyle: { color: "#FF4D4F" },
|
|
382
398
|
lineStyle: {
|
|
383
|
-
color: "#FF4D4F",
|
|
384
399
|
type: "dashed",
|
|
385
400
|
width: 1
|
|
386
401
|
},
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
402
|
+
symbol: "none",
|
|
403
|
+
markLine: {
|
|
404
|
+
silent: !0,
|
|
405
|
+
symbol: "none",
|
|
406
|
+
lineStyle: {
|
|
407
|
+
color: "#FF4D4F",
|
|
408
|
+
type: "dashed",
|
|
409
|
+
width: 1
|
|
410
|
+
},
|
|
411
|
+
label: { show: !1 },
|
|
412
|
+
data: a.map((t, n) => ({
|
|
413
|
+
xAxis: t,
|
|
414
|
+
yAxis: e.threshold[n] ?? e.threshold[e.threshold.length - 1] ?? 0
|
|
415
|
+
}))
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
name: "降水实况",
|
|
420
|
+
type: "bar",
|
|
421
|
+
data: o,
|
|
422
|
+
barWidth: "40%",
|
|
423
|
+
itemStyle: {
|
|
424
|
+
color: new D.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
425
|
+
offset: 0,
|
|
426
|
+
color: "rgba(5, 221, 250, 0.85)"
|
|
427
|
+
}, {
|
|
428
|
+
offset: 1,
|
|
429
|
+
color: "rgba(5, 221, 250, 0.15)"
|
|
430
|
+
}]),
|
|
431
|
+
borderRadius: [
|
|
432
|
+
4,
|
|
433
|
+
4,
|
|
434
|
+
0,
|
|
435
|
+
0
|
|
436
|
+
]
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
name: "预测值",
|
|
441
|
+
type: "bar",
|
|
442
|
+
data: s,
|
|
443
|
+
barWidth: "40%",
|
|
444
|
+
itemStyle: {
|
|
445
|
+
color: new D.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
446
|
+
offset: 0,
|
|
447
|
+
color: "rgba(250, 219, 20, 0.85)"
|
|
448
|
+
}, {
|
|
449
|
+
offset: 1,
|
|
450
|
+
color: "rgba(250, 219, 20, 0.15)"
|
|
451
|
+
}]),
|
|
452
|
+
borderRadius: [
|
|
453
|
+
4,
|
|
454
|
+
4,
|
|
455
|
+
0,
|
|
456
|
+
0
|
|
457
|
+
]
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
name: "降水实况",
|
|
462
|
+
type: "line",
|
|
463
|
+
data: c,
|
|
464
|
+
smooth: !0,
|
|
465
|
+
itemStyle: { color: "#05ddfa" },
|
|
466
|
+
lineStyle: { width: 2 },
|
|
467
|
+
symbol: "circle",
|
|
468
|
+
symbolSize: 5,
|
|
469
|
+
areaStyle: { color: new D.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
470
|
+
offset: 0,
|
|
471
|
+
color: "rgba(5, 221, 250, 0.3)"
|
|
472
|
+
}, {
|
|
473
|
+
offset: 1,
|
|
474
|
+
color: "rgba(5, 221, 250, 0.02)"
|
|
475
|
+
}]) }
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
name: "预测值",
|
|
479
|
+
type: "line",
|
|
480
|
+
data: l,
|
|
481
|
+
smooth: !0,
|
|
482
|
+
itemStyle: { color: n },
|
|
483
|
+
lineStyle: {
|
|
484
|
+
type: "dashed",
|
|
485
|
+
width: 2,
|
|
486
|
+
color: n
|
|
487
|
+
},
|
|
488
|
+
symbol: "circle",
|
|
489
|
+
symbolSize: 5
|
|
392
490
|
}
|
|
393
|
-
|
|
394
|
-
name: "降水趋势",
|
|
395
|
-
type: "line",
|
|
396
|
-
data: n,
|
|
397
|
-
smooth: !0,
|
|
398
|
-
itemStyle: { color: "#05ddfa" },
|
|
399
|
-
lineStyle: { width: 2 },
|
|
400
|
-
symbol: "circle",
|
|
401
|
-
symbolSize: 5,
|
|
402
|
-
areaStyle: { color: new w.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
403
|
-
offset: 0,
|
|
404
|
-
color: "rgba(5, 221, 250, 0.3)"
|
|
405
|
-
}, {
|
|
406
|
-
offset: 1,
|
|
407
|
-
color: "rgba(5, 221, 250, 0.02)"
|
|
408
|
-
}]) }
|
|
409
|
-
}]
|
|
491
|
+
]
|
|
410
492
|
};
|
|
411
|
-
z.setOption(
|
|
493
|
+
z.setOption(u);
|
|
412
494
|
}, Be = ({ rowIndex: e }) => {
|
|
413
495
|
if (e > 2) return "";
|
|
414
496
|
let t = G.value[e];
|
|
@@ -420,7 +502,7 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
420
502
|
if (t > -1) (j.value.length > 1 || M.value) && j.value.splice(t, 1);
|
|
421
503
|
else {
|
|
422
504
|
if (j.value.length >= 3) {
|
|
423
|
-
|
|
505
|
+
ce.warning("最多同时选择3个时段");
|
|
424
506
|
return;
|
|
425
507
|
}
|
|
426
508
|
j.value.push(e);
|
|
@@ -431,7 +513,7 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
431
513
|
}, We = () => {
|
|
432
514
|
F.value?.length === 2 && Q();
|
|
433
515
|
}, Y = (e) => {
|
|
434
|
-
let t =
|
|
516
|
+
let t = g.ids[e] || g.ids.data;
|
|
435
517
|
return t?.id ? t : null;
|
|
436
518
|
}, X = (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, Ge = {
|
|
437
519
|
"30min": 30,
|
|
@@ -455,7 +537,7 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
455
537
|
let t = (e) => String(e).padStart(2, "0");
|
|
456
538
|
return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`;
|
|
457
539
|
}, qe = () => {
|
|
458
|
-
let e =
|
|
540
|
+
let e = g.mockData;
|
|
459
541
|
P.value = e.list || [], N.value = e.dataTime || "";
|
|
460
542
|
}, Je = async () => {
|
|
461
543
|
let e = Y("data");
|
|
@@ -466,7 +548,7 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
466
548
|
try {
|
|
467
549
|
let { startTime: t, endTime: r, types: i } = Ke(), a = X(await n({
|
|
468
550
|
id: e.id,
|
|
469
|
-
baseHttp:
|
|
551
|
+
baseHttp: g.baseHttp,
|
|
470
552
|
reqType: e.reqType,
|
|
471
553
|
variables: {
|
|
472
554
|
startTime: t,
|
|
@@ -474,15 +556,15 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
474
556
|
types: i
|
|
475
557
|
},
|
|
476
558
|
isFormData: e.isFormData,
|
|
477
|
-
appKey:
|
|
478
|
-
appSalt:
|
|
559
|
+
appKey: g.appKey,
|
|
560
|
+
appSalt: g.appSalt
|
|
479
561
|
}));
|
|
480
562
|
a && (P.value = Array.isArray(a.list) ? a.list : [], N.value = a.dataTime || "");
|
|
481
563
|
} catch (e) {
|
|
482
564
|
console.error("PrecipitationRanking 数据加载失败", e);
|
|
483
565
|
}
|
|
484
566
|
}, Q = async () => {
|
|
485
|
-
k.value = !0,
|
|
567
|
+
k.value = !0, g.mock ? qe() : await Je(), k.value = !1;
|
|
486
568
|
}, Ye = async () => {
|
|
487
569
|
A.value = !0, Ve(), await Q(), setTimeout(() => {
|
|
488
570
|
A.value = !1;
|
|
@@ -512,7 +594,7 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
512
594
|
14,
|
|
513
595
|
20
|
|
514
596
|
];
|
|
515
|
-
new
|
|
597
|
+
new ue.default({
|
|
516
598
|
fileName: `自动站降水排名_${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
517
599
|
datas: [{
|
|
518
600
|
sheetData: t,
|
|
@@ -523,26 +605,26 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
523
605
|
}]
|
|
524
606
|
}).saveExcel();
|
|
525
607
|
}, Ze = () => {
|
|
526
|
-
$(), !(
|
|
608
|
+
$(), !(g.refreshInterval <= 0) && (B = setInterval(() => {
|
|
527
609
|
Q();
|
|
528
|
-
},
|
|
610
|
+
}, g.refreshInterval));
|
|
529
611
|
}, $ = () => {
|
|
530
612
|
B &&= (clearInterval(B), null);
|
|
531
613
|
};
|
|
532
|
-
return
|
|
614
|
+
return re(() => {
|
|
533
615
|
r?.on("toComponent", (e) => {
|
|
534
616
|
e.componentName === "PrecipitationRanking" && Q();
|
|
535
617
|
}), Q(), Ze();
|
|
536
|
-
}),
|
|
618
|
+
}), b(() => {
|
|
537
619
|
$(), z &&= (z.dispose(), null);
|
|
538
620
|
}), (t, n) => {
|
|
539
|
-
let r =
|
|
540
|
-
return
|
|
541
|
-
|
|
621
|
+
let r = o, d = a, g = i, _ = l, v = c, b = s;
|
|
622
|
+
return ie((x(), p("div", de, [
|
|
623
|
+
m("button", {
|
|
542
624
|
class: "PrecipitationRanking-close",
|
|
543
625
|
onClick: Me
|
|
544
|
-
}, [...n[1] ||= [
|
|
545
|
-
|
|
626
|
+
}, [...n[1] ||= [m("span", null, "✕", -1)]]),
|
|
627
|
+
m("div", fe, [m("div", pe, [n[2] ||= m("h3", { class: "PrecipitationRanking-title" }, "自动站降水排名", -1), N.value ? (x(), p("span", me, "(数据时间:" + w(N.value) + ")", 1)) : f("", !0)]), n[3] ||= m("img", {
|
|
546
628
|
style: {
|
|
547
629
|
width: "100%",
|
|
548
630
|
"object-fit": "contain",
|
|
@@ -551,28 +633,28 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
551
633
|
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",
|
|
552
634
|
alt: ""
|
|
553
635
|
}, null, -1)]),
|
|
554
|
-
|
|
636
|
+
m("div", he, [m("div", ge, [n[6] ||= m("span", { class: "PrecipitationRanking-toolbarLabel" }, "时间选择", -1), m("div", _e, [m("button", {
|
|
555
637
|
class: "PrecipitationRanking-btn",
|
|
556
638
|
onClick: Xe
|
|
557
|
-
}, [
|
|
558
|
-
default:
|
|
639
|
+
}, [h(r, { class: "PrecipitationRanking-icon" }, {
|
|
640
|
+
default: E(() => [h(T(oe))]),
|
|
559
641
|
_: 1
|
|
560
|
-
}), n[4] ||=
|
|
642
|
+
}), n[4] ||= m("span", null, "导出", -1)]), m("button", {
|
|
561
643
|
class: "PrecipitationRanking-btn",
|
|
562
644
|
onClick: Ye
|
|
563
|
-
}, [
|
|
564
|
-
default:
|
|
645
|
+
}, [h(r, { class: "PrecipitationRanking-icon" }, {
|
|
646
|
+
default: E(() => [h(T(se))]),
|
|
565
647
|
_: 1
|
|
566
|
-
}), n[5] ||=
|
|
648
|
+
}), n[5] ||= m("span", null, "刷新", -1)])])]), m("div", ve, [m("div", ye, [(x(), p(u, null, C(V, (e) => m("button", {
|
|
567
649
|
key: e.value,
|
|
568
|
-
class:
|
|
650
|
+
class: y(["PrecipitationRanking-timeTag", { "PrecipitationRanking-timeTag--active": j.value.includes(e.value) }]),
|
|
569
651
|
onClick: (t) => He(e.value)
|
|
570
|
-
},
|
|
571
|
-
class:
|
|
652
|
+
}, w(e.label), 11, be)), 64)), m("button", {
|
|
653
|
+
class: y(["PrecipitationRanking-timeTag", { "PrecipitationRanking-timeTag--active": M.value }]),
|
|
572
654
|
onClick: Ue
|
|
573
655
|
}, " 自定义 ", 2)])])]),
|
|
574
|
-
M.value ? (
|
|
575
|
-
default:
|
|
656
|
+
M.value ? (x(), p("div", xe, [n[7] ||= m("span", { class: "PrecipitationRanking-customLabel" }, "时间范围", -1), h(g, { locale: T(le) }, {
|
|
657
|
+
default: E(() => [h(d, {
|
|
576
658
|
modelValue: F.value,
|
|
577
659
|
"onUpdate:modelValue": n[0] ||= (e) => F.value = e,
|
|
578
660
|
type: "datetimerange",
|
|
@@ -587,8 +669,8 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
587
669
|
onChange: We
|
|
588
670
|
}, null, 8, ["modelValue"])]),
|
|
589
671
|
_: 1
|
|
590
|
-
}, 8, ["locale"])])) :
|
|
591
|
-
|
|
672
|
+
}, 8, ["locale"])])) : f("", !0),
|
|
673
|
+
m("div", Se, [m("div", Ce, [h(v, {
|
|
592
674
|
data: G.value,
|
|
593
675
|
class: "PrecipitationRanking-table",
|
|
594
676
|
height: e.tableHeight,
|
|
@@ -596,63 +678,63 @@ var pe = /* @__PURE__ */ e(r()), me = {
|
|
|
596
678
|
"row-class-name": Be,
|
|
597
679
|
onRowClick: Ne
|
|
598
680
|
}, {
|
|
599
|
-
default:
|
|
600
|
-
|
|
681
|
+
default: E(() => [
|
|
682
|
+
h(_, {
|
|
601
683
|
label: "序号",
|
|
602
684
|
align: "center",
|
|
603
685
|
width: "70"
|
|
604
686
|
}, {
|
|
605
|
-
default:
|
|
687
|
+
default: E(({ $index: e }) => [m("span", { class: y(["PrecipitationRanking-rank", `PrecipitationRanking-rank--${e + 1}`]) }, w(e + 1), 3)]),
|
|
606
688
|
_: 1
|
|
607
689
|
}),
|
|
608
|
-
|
|
690
|
+
h(_, {
|
|
609
691
|
prop: "stationName",
|
|
610
692
|
label: "站名",
|
|
611
693
|
align: "left",
|
|
612
694
|
"min-width": "80"
|
|
613
695
|
}),
|
|
614
|
-
(
|
|
696
|
+
(x(!0), p(u, null, C(U.value, (e) => (x(), ee(_, {
|
|
615
697
|
key: e.value,
|
|
616
698
|
label: e.label + "(mm)",
|
|
617
699
|
align: "center",
|
|
618
700
|
"min-width": "120"
|
|
619
701
|
}, {
|
|
620
|
-
default:
|
|
702
|
+
default: E(({ row: t }) => [te(w(q(H(t, e.value), "")), 1)]),
|
|
621
703
|
_: 2
|
|
622
704
|
}, 1032, ["label"]))), 128)),
|
|
623
|
-
|
|
705
|
+
h(_, {
|
|
624
706
|
label: "降水等级",
|
|
625
707
|
align: "center",
|
|
626
708
|
"min-width": "100"
|
|
627
709
|
}, {
|
|
628
|
-
default:
|
|
710
|
+
default: E(({ row: e }) => [m("span", { style: ne({ color: je(H(e, W.value)) }) }, w(J(H(e, W.value))), 5)]),
|
|
629
711
|
_: 1
|
|
630
712
|
}),
|
|
631
|
-
|
|
713
|
+
h(_, {
|
|
632
714
|
label: "趋势",
|
|
633
715
|
align: "center",
|
|
634
716
|
width: "70"
|
|
635
717
|
}, {
|
|
636
|
-
default:
|
|
718
|
+
default: E(({ row: e }) => [m("span", {
|
|
637
719
|
class: "PrecipitationRanking-viewLink",
|
|
638
|
-
onClick:
|
|
639
|
-
}, "查看", 8,
|
|
720
|
+
onClick: ae((t) => Pe(e), ["stop"])
|
|
721
|
+
}, "查看", 8, we)]),
|
|
640
722
|
_: 1
|
|
641
723
|
})
|
|
642
724
|
]),
|
|
643
725
|
_: 1
|
|
644
726
|
}, 8, ["data", "height"])])]),
|
|
645
|
-
I.value ? (
|
|
727
|
+
I.value ? (x(), p("div", Te, [m("div", Ee, [m("div", De, [m("div", Oe, [n[8] ||= m("span", null, "趋势图表", -1), m("span", ke, w(L.value?.stationName), 1)]), m("button", {
|
|
646
728
|
class: "PrecipitationRanking-trendClose",
|
|
647
729
|
onClick: Fe
|
|
648
|
-
}, "✕")]),
|
|
730
|
+
}, "✕")]), m("div", {
|
|
649
731
|
ref_key: "trendChartRef",
|
|
650
732
|
ref: R,
|
|
651
733
|
class: "PrecipitationRanking-trendChart"
|
|
652
|
-
}, null, 512)])])) :
|
|
653
|
-
])), [[
|
|
734
|
+
}, null, 512)])])) : f("", !0)
|
|
735
|
+
])), [[b, k.value]]);
|
|
654
736
|
};
|
|
655
737
|
}
|
|
656
|
-
}), [["__scopeId", "data-v-
|
|
738
|
+
}), [["__scopeId", "data-v-d0df459c"]]);
|
|
657
739
|
//#endregion
|
|
658
740
|
export { O as t };
|