nxd-plugin 1.8.28 → 1.8.30
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/YCServiceSummary-Dx2AlXiv.mjs +2 -0
- package/dist/chunks/{component-Forecast72h-cgr5tls3.mjs → component-Forecast72h-yd9t3176.mjs} +249 -196
- package/dist/chunks/{component-HdCameraList-NlgDGDxS.mjs → component-HdCameraList-nPxzUdmB.mjs} +1 -1
- package/dist/chunks/{component-HdFarmStation-CUXisRVE.mjs → component-HdFarmStation-BDN_u87-.mjs} +1 -1
- package/dist/chunks/{component-HdFarmStationDialog-BtPMLdBf.mjs → component-HdFarmStationDialog-CMKGe0YJ.mjs} +8 -8
- package/dist/chunks/{component-HdMajorActivity-nIv4HBSm.mjs → component-HdMajorActivity-CyAgx0og.mjs} +222 -225
- package/dist/chunks/{component-HdObservation-CJi_RXM_.mjs → component-HdObservation-CY8TNPK8.mjs} +2 -2
- package/dist/chunks/{component-HdPreSituation-D5rfQ4Tv.mjs → component-HdPreSituation-CLXeQ_lX.mjs} +2 -2
- package/dist/chunks/{component-HdRadarList-C51u7j2s.mjs → component-HdRadarList--85ldZa2.mjs} +1 -1
- package/dist/chunks/{component-HdRisk-C0WY-wCs.mjs → component-HdRisk-HKXfRnuQ.mjs} +1 -1
- package/dist/chunks/{component-HdServiceMarterial-DYQVcfuq.mjs → component-HdServiceMarterial-DJA-s67d.mjs} +1 -1
- package/dist/chunks/{component-HdServiceRequirements-DGn7h63L.mjs → component-HdServiceRequirements-lXtnq5r2.mjs} +1 -1
- package/dist/chunks/{component-HdSoil-BZ4yph45.mjs → component-HdSoil-BtIq7NXx.mjs} +1 -1
- package/dist/chunks/{component-HdStationTem-Cyk1fdpJ.mjs → component-HdStationTem-CRfJb0wr.mjs} +122 -99
- package/dist/chunks/{component-HdSuggestion-CBvCk-c5.mjs → component-HdSuggestion-2aFJRsau.mjs} +1 -1
- package/dist/chunks/{component-HdThreeWeatherTrend-CrxdQnj5.mjs → component-HdThreeWeatherTrend-BWeGlUnt.mjs} +2 -2
- package/dist/chunks/{component-HdWaveForcast-D_Y_AoL1.mjs → component-HdWaveForcast-DgcqZuG9.mjs} +1 -1
- package/dist/chunks/{component-HighQuality-B6JxEYfF.mjs → component-HighQuality-BNvi5OuR.mjs} +59 -54
- package/dist/chunks/{component-HighwayWeatherForecast-UCOCLt-l.mjs → component-HighwayWeatherForecast-BAHrZUA9.mjs} +69 -69
- package/dist/chunks/{component-PrecipitationRanking-cy6YEcr-.mjs → component-PrecipitationRanking-Cp8wK9V7.mjs} +265 -300
- package/dist/chunks/component-StationDialog-CnAIJZcL.mjs +772 -0
- package/dist/chunks/{component-StationList-rA77RHJb.mjs → component-StationList-DvHUcP8A.mjs} +2 -2
- package/dist/chunks/{component-TimeBasedForecast-CTLJVn2P.mjs → component-TimeBasedForecast-DP7ZYRQB.mjs} +34 -34
- package/dist/chunks/{component-WeatherForecast-BTzDg7Mi.mjs → component-WeatherForecast-BhGvmaMS.mjs} +34 -34
- package/dist/chunks/{component-YCDataService-oOkpc1PC.mjs → component-YCDataService-CwOGPL98.mjs} +1 -1
- package/dist/chunks/{component-YCHome-DcmieyM7.mjs → component-YCHome-DRIi7AIB.mjs} +1 -1
- package/dist/chunks/{component-YCServiceSummary-LZ-2GeV8.mjs → component-YCServiceSummary-Dab20ncm.mjs} +2 -1
- package/dist/components/HdStationTem/HdStationTem.vue.d.ts +3 -2
- package/dist/components/PrecipitationRanking/PrecipitationRanking.vue.d.ts +1 -0
- package/dist/nxd-plugin.mjs +26 -26
- package/dist/styles/component-Forecast72h.css +1 -1
- package/dist/styles/component-HdMajorActivity.css +1 -1
- package/dist/styles/component-HdStationTem.css +1 -1
- package/dist/styles/component-HighQuality.css +1 -1
- package/dist/styles/component-PrecipitationRanking.css +1 -1
- package/dist/styles/component-StationDialog.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/dist/styles/component-YCServiceSummary.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/YCServiceSummary-CSklmCPP.mjs +0 -2
- package/dist/chunks/component-StationDialog-NQdthKaR.mjs +0 -737
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { i as e } from "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
2
|
import { i as t, o as n } from "./component-AiChat-COULZNRK.mjs";
|
|
3
|
-
import "./component-Forecast72h-
|
|
4
|
-
import { n as r } from "./component-HdFarmStationDialog-
|
|
5
|
-
import { ElConfigProvider as i, ElDatePicker as a, ElIcon as o, ElLoadingDirective as s, ElTable as c, ElTableColumn as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
import { Download as
|
|
8
|
-
import * as
|
|
9
|
-
import { ElMessage as
|
|
3
|
+
import "./component-Forecast72h-yd9t3176.mjs";
|
|
4
|
+
import { n as r } from "./component-HdFarmStationDialog-CMKGe0YJ.mjs";
|
|
5
|
+
import { ElConfigProvider as i, ElDatePicker as a, ElIcon as o, ElLoadingDirective as s, ElTable as c, ElTableColumn as ee } from "element-plus/es";
|
|
6
|
+
import { Fragment as l, computed as u, createBlock as te, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as ne, createVNode as m, defineComponent as h, getCurrentInstance as g, nextTick as _, normalizeClass as v, onBeforeUnmount as y, onMounted as re, openBlock as b, ref as x, renderList as ie, toDisplayString as S, unref as C, withCtx as w, withDirectives as ae, withModifiers as oe } from "vue";
|
|
7
|
+
import { Download as se, Refresh as ce } from "@element-plus/icons-vue";
|
|
8
|
+
import * as T from "echarts";
|
|
9
|
+
import { ElMessage as E } from "element-plus";
|
|
10
10
|
import "element-plus/dist/index.css";
|
|
11
|
-
import
|
|
11
|
+
import le from "element-plus/es/locale/lang/zh-cn.mjs";
|
|
12
12
|
//#region src/components/PrecipitationRanking/PrecipitationRanking.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
13
|
+
var ue = /* @__PURE__ */ e(r()), de = {
|
|
14
14
|
class: "PrecipitationRanking",
|
|
15
15
|
"element-loading-background": "rgba(0, 0, 0, 0.5)"
|
|
16
|
-
},
|
|
16
|
+
}, fe = { class: "PrecipitationRanking-header" }, pe = { class: "PrecipitationRanking-headerContent" }, me = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "PrecipitationRanking-dataTime"
|
|
19
|
-
},
|
|
19
|
+
}, he = { class: "PrecipitationRanking-toolbar" }, ge = { class: "PrecipitationRanking-actions" }, _e = { class: "PrecipitationRanking-btnGroup" }, ve = { class: "PrecipitationRanking-timeWrap" }, ye = { class: "PrecipitationRanking-timeTags" }, be = ["onClick"], xe = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "PrecipitationRanking-customPanel"
|
|
22
|
-
},
|
|
22
|
+
}, Se = { class: "PrecipitationRanking-content" }, Ce = { class: "PrecipitationRanking-tableWrap" }, we = ["onClick"], Te = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "PrecipitationRanking-trendMask"
|
|
25
|
-
},
|
|
25
|
+
}, Ee = { class: "PrecipitationRanking-trendPopup" }, De = { class: "PrecipitationRanking-trendHeader" }, Oe = { class: "PrecipitationRanking-trendTitle" }, ke = { class: "PrecipitationRanking-trendSubTitle" }, D = /* @__PURE__ */ t(/* @__PURE__ */ h({
|
|
26
26
|
__name: "PrecipitationRanking",
|
|
27
27
|
props: {
|
|
28
28
|
mock: {
|
|
@@ -147,11 +147,11 @@ var ce = /* @__PURE__ */ e(r()), le = {
|
|
|
147
147
|
"view"
|
|
148
148
|
],
|
|
149
149
|
setup(e, { emit: t }) {
|
|
150
|
-
let r =
|
|
150
|
+
let r = g()?.appContext.config.globalProperties.$bus, h = e, D = t, O = x(!1), k = x(!1), A = x([
|
|
151
151
|
"30min",
|
|
152
152
|
"1hour",
|
|
153
153
|
"3hour"
|
|
154
|
-
]),
|
|
154
|
+
]), j = x(!1), M = x(""), N = x([]), P = x([]), F = x([]), I = x(!1), L = x(null), R = x(null), z = null, B = null, V = [
|
|
155
155
|
{
|
|
156
156
|
label: "30分钟",
|
|
157
157
|
value: "30min",
|
|
@@ -177,33 +177,33 @@ var ce = /* @__PURE__ */ e(r()), le = {
|
|
|
177
177
|
value: "12hour",
|
|
178
178
|
field: "precipitation_12hour"
|
|
179
179
|
}
|
|
180
|
-
],
|
|
180
|
+
], Ae = {
|
|
181
181
|
"30min": "precipitation_30min",
|
|
182
182
|
"1hour": "precipitation_1hour",
|
|
183
183
|
"3hour": "precipitation_3hour",
|
|
184
184
|
"6hour": "precipitation_6hour",
|
|
185
185
|
"12hour": "precipitation_12hour"
|
|
186
|
-
},
|
|
186
|
+
}, H = (e, t) => {
|
|
187
187
|
if (t === "custom") return e.customPrecipitation;
|
|
188
|
-
let n =
|
|
188
|
+
let n = Ae[t];
|
|
189
189
|
return n ? e[n] : e.precipitation;
|
|
190
|
-
},
|
|
191
|
-
let e =
|
|
192
|
-
return
|
|
190
|
+
}, U = u(() => {
|
|
191
|
+
let e = V.filter((e) => A.value.includes(e.value));
|
|
192
|
+
return j.value && e.push({
|
|
193
193
|
label: "自定义",
|
|
194
194
|
value: "custom",
|
|
195
195
|
field: "customPrecipitation"
|
|
196
196
|
}), e;
|
|
197
|
-
}),
|
|
198
|
-
let e =
|
|
199
|
-
return e && t ?
|
|
200
|
-
}),
|
|
201
|
-
let e = [...
|
|
202
|
-
let n = Number(
|
|
203
|
-
return (Number(
|
|
197
|
+
}), W = u(() => A.value.length ? A.value[0] : j.value ? "custom" : "30min"), je = u(() => {
|
|
198
|
+
let e = A.value.length > 0, t = j.value && F.value.length === 2 && F.value[0] && F.value[1];
|
|
199
|
+
return e && t ? Me(N.value, P.value) : t ? P.value : N.value;
|
|
200
|
+
}), G = u(() => {
|
|
201
|
+
let e = [...je.value].sort((e, t) => {
|
|
202
|
+
let n = Number(H(e, W.value)) || 0;
|
|
203
|
+
return (Number(H(t, W.value)) || 0) - n;
|
|
204
204
|
});
|
|
205
205
|
return console.log(e, "sortedList"), e;
|
|
206
|
-
}),
|
|
206
|
+
}), K = (e) => e == null || e === "" || e === 9999, q = (e, t) => K(e) ? "--" : t ? `${e}${t}` : String(e), Me = (e, t) => {
|
|
207
207
|
let n = /* @__PURE__ */ new Map(), r = (e) => e.stationName || "";
|
|
208
208
|
return e.forEach((e) => {
|
|
209
209
|
n.set(r(e), { ...e });
|
|
@@ -211,7 +211,7 @@ var ce = /* @__PURE__ */ e(r()), le = {
|
|
|
211
211
|
let t = r(e), i = n.get(t);
|
|
212
212
|
i ? (i.customPrecipitation = e.customPrecipitation ?? e.precipitation, i.monitorTime = e.monitorTime || i.monitorTime) : n.set(t, { ...e });
|
|
213
213
|
}), Array.from(n.values());
|
|
214
|
-
},
|
|
214
|
+
}, J = (e, t = !1) => {
|
|
215
215
|
if (console.log(e, "output"), e && Array.isArray(e.list)) return t ? e.list.map((e) => ({
|
|
216
216
|
...e,
|
|
217
217
|
customPrecipitation: e.sumPre ?? e.precipitation
|
|
@@ -222,7 +222,7 @@ var ce = /* @__PURE__ */ e(r()), le = {
|
|
|
222
222
|
let i = String(t || r), a = n.get(i);
|
|
223
223
|
return a || (a = {
|
|
224
224
|
stationName: r || "",
|
|
225
|
-
stationCode: e.stationId || e.stationCode || ""
|
|
225
|
+
stationCode: e.stationId || e.stationCode || e.stationid || ""
|
|
226
226
|
}, n.set(i, a)), a;
|
|
227
227
|
}, i = (e, t = !1) => {
|
|
228
228
|
if (!e || typeof e != "object") return;
|
|
@@ -232,20 +232,20 @@ var ce = /* @__PURE__ */ e(r()), le = {
|
|
|
232
232
|
!e || typeof e != "object" || (Array.isArray(e) ? e.forEach((e) => a(e, t)) : e.stationName || e.stationId ? i(e, t) : Object.values(e).forEach((e) => a(e, t)));
|
|
233
233
|
};
|
|
234
234
|
return a(e, t), Array.from(n.values());
|
|
235
|
-
},
|
|
235
|
+
}, Ne = (e) => {
|
|
236
236
|
let t = Number(e);
|
|
237
|
-
return
|
|
238
|
-
},
|
|
239
|
-
|
|
240
|
-
}, Pe = (e) => {
|
|
241
|
-
k("rowClick", e);
|
|
237
|
+
return K(e) || isNaN(t) || t === 0 ? "无降水" : t < 10 ? "小雨" : t < 25 ? "中雨" : t < 50 ? "大雨" : t < 100 ? "暴雨" : t < 250 ? "大暴雨" : "特大暴雨";
|
|
238
|
+
}, Pe = () => {
|
|
239
|
+
D("close", "PrecipitationRanking");
|
|
242
240
|
}, Fe = (e) => {
|
|
243
|
-
|
|
244
|
-
|
|
241
|
+
D("rowClick", e);
|
|
242
|
+
}, Ie = (e) => {
|
|
243
|
+
L.value = e, I.value = !0, _(() => {
|
|
244
|
+
Ve();
|
|
245
245
|
});
|
|
246
|
-
},
|
|
247
|
-
|
|
248
|
-
},
|
|
246
|
+
}, Le = () => {
|
|
247
|
+
I.value = !1, z &&= (z.dispose(), null);
|
|
248
|
+
}, Re = () => ({
|
|
249
249
|
times: [
|
|
250
250
|
"02时",
|
|
251
251
|
"03时",
|
|
@@ -303,60 +303,103 @@ var ce = /* @__PURE__ */ e(r()), le = {
|
|
|
303
303
|
30,
|
|
304
304
|
30
|
|
305
305
|
]
|
|
306
|
-
}),
|
|
307
|
-
if (!
|
|
308
|
-
if (
|
|
309
|
-
let e =
|
|
306
|
+
}), ze = async () => {
|
|
307
|
+
if (!L.value) return null;
|
|
308
|
+
if (h.mock) return L.value.trendData || Re();
|
|
309
|
+
let e = Y("trend");
|
|
310
310
|
if (!e) return console.warn("PrecipitationRanking 缺少趋势图工作流配置"), null;
|
|
311
|
+
console.log(L.value, "currentRow.value12");
|
|
311
312
|
try {
|
|
312
|
-
|
|
313
|
+
let t = X(await n({
|
|
313
314
|
id: e.id,
|
|
314
|
-
baseHttp:
|
|
315
|
+
baseHttp: h.baseHttp,
|
|
315
316
|
reqType: e.reqType,
|
|
316
|
-
variables: {
|
|
317
|
-
stationCode: R.value.stationCode,
|
|
318
|
-
stationName: R.value.stationName
|
|
319
|
-
},
|
|
317
|
+
variables: { stationIdC: L.value.stationCode || L.value.stationid || "" },
|
|
320
318
|
isFormData: e.isFormData,
|
|
321
|
-
appKey:
|
|
322
|
-
appSalt:
|
|
323
|
-
}))
|
|
319
|
+
appKey: h.appKey,
|
|
320
|
+
appSalt: h.appSalt
|
|
321
|
+
}));
|
|
322
|
+
if (!t) return null;
|
|
323
|
+
let r = t.situationData || t.situation || [], i = t.forecastData || t.forecast || [], a = (e) => {
|
|
324
|
+
if (!e) return "--";
|
|
325
|
+
let t = e.split(" ");
|
|
326
|
+
return t.length > 1 ? `${t[0].slice(5)} ${t[1].slice(0, 2)}时` : e;
|
|
327
|
+
}, o = [], s = [], c = [];
|
|
328
|
+
return r.forEach((e) => {
|
|
329
|
+
let t = e.datetime_bj || e.data_time || e.time || "", n = Number(e.pre_1h ?? e.pre1h ?? e.precipitation ?? 0);
|
|
330
|
+
o.push(a(t)), s.push(isNaN(n) ? 0 : n);
|
|
331
|
+
}), i.forEach((e) => {
|
|
332
|
+
let t = e.f_time || e.forecast_time || e.data_time || "", n = Number(e.er01 ?? e.precipitation ?? 0);
|
|
333
|
+
o.push(a(t)), c.push(n);
|
|
334
|
+
}), {
|
|
335
|
+
times: o,
|
|
336
|
+
unit: "mm",
|
|
337
|
+
actual: s,
|
|
338
|
+
forecast: c,
|
|
339
|
+
threshold: []
|
|
340
|
+
};
|
|
324
341
|
} catch (e) {
|
|
325
342
|
return console.error("PrecipitationRanking 趋势图数据加载失败", e), null;
|
|
326
343
|
}
|
|
327
|
-
},
|
|
344
|
+
}, Be = (e) => {
|
|
328
345
|
let t = [];
|
|
329
346
|
if (e.actual.forEach((e) => !isNaN(Number(e)) && t.push(Number(e))), e.forecast.forEach((e) => !isNaN(Number(e)) && t.push(Number(e))), e.threshold.forEach((e) => !isNaN(Number(e)) && t.push(Number(e))), !t.length) return;
|
|
330
347
|
let n = Math.max(...t);
|
|
331
348
|
return n <= 0 ? 10 : Math.ceil(n * 1.1);
|
|
332
|
-
},
|
|
333
|
-
if (!
|
|
334
|
-
let e = await
|
|
349
|
+
}, Ve = async () => {
|
|
350
|
+
if (!R.value) return;
|
|
351
|
+
let e = await ze();
|
|
335
352
|
if (!e) return;
|
|
336
|
-
|
|
337
|
-
let t = e.actual.length, n =
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
},
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
353
|
+
z && z.dispose(), z = T.init(R.value);
|
|
354
|
+
let t = e.actual.length, n = new T.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
355
|
+
offset: 0,
|
|
356
|
+
color: "rgba(64, 158, 255, 0.9)"
|
|
357
|
+
}, {
|
|
358
|
+
offset: 1,
|
|
359
|
+
color: "rgba(64, 158, 255, 0.2)"
|
|
360
|
+
}]), r = new T.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
361
|
+
offset: 0,
|
|
362
|
+
color: "rgba(255, 255, 255, 0.9)"
|
|
363
|
+
}, {
|
|
364
|
+
offset: 1,
|
|
365
|
+
color: "rgba(255, 255, 255, 0.2)"
|
|
366
|
+
}]), i = [...e.actual.map((e) => ({
|
|
367
|
+
value: e,
|
|
368
|
+
itemStyle: {
|
|
369
|
+
color: n,
|
|
370
|
+
borderRadius: [
|
|
371
|
+
4,
|
|
372
|
+
4,
|
|
373
|
+
0,
|
|
374
|
+
0
|
|
375
|
+
]
|
|
346
376
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
377
|
+
})), ...e.forecast.map((e) => ({
|
|
378
|
+
value: e,
|
|
379
|
+
itemStyle: {
|
|
380
|
+
color: r,
|
|
381
|
+
borderRadius: [
|
|
382
|
+
4,
|
|
383
|
+
4,
|
|
384
|
+
0,
|
|
385
|
+
0
|
|
386
|
+
]
|
|
354
387
|
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
388
|
+
}))], a = [{
|
|
389
|
+
name: "降水实况",
|
|
390
|
+
icon: "rect",
|
|
391
|
+
itemStyle: { color: "rgba(64, 158, 255, 0.8)" }
|
|
392
|
+
}, {
|
|
393
|
+
name: "预报数据",
|
|
394
|
+
icon: "rect",
|
|
395
|
+
itemStyle: { color: "rgba(255, 255, 255, 0.8)" }
|
|
396
|
+
}], o = e.threshold && e.threshold.length > 0;
|
|
397
|
+
o && a.push({
|
|
398
|
+
name: "阈值",
|
|
399
|
+
icon: "line",
|
|
400
|
+
itemStyle: { color: "#FF4D4F" }
|
|
401
|
+
});
|
|
402
|
+
let s = {
|
|
360
403
|
backgroundColor: "transparent",
|
|
361
404
|
grid: {
|
|
362
405
|
top: 40,
|
|
@@ -365,11 +408,7 @@ var ce = /* @__PURE__ */ e(r()), le = {
|
|
|
365
408
|
left: 48
|
|
366
409
|
},
|
|
367
410
|
legend: {
|
|
368
|
-
data:
|
|
369
|
-
"阈值",
|
|
370
|
-
"降水实况",
|
|
371
|
-
"预测值"
|
|
372
|
-
],
|
|
411
|
+
data: a.map((e) => e.name),
|
|
373
412
|
right: 0,
|
|
374
413
|
top: 0,
|
|
375
414
|
textStyle: {
|
|
@@ -385,27 +424,28 @@ var ce = /* @__PURE__ */ e(r()), le = {
|
|
|
385
424
|
borderColor: "rgba(64, 158, 255, 0.4)",
|
|
386
425
|
textStyle: { color: "#fff" },
|
|
387
426
|
formatter: (n) => {
|
|
388
|
-
let r = n[0]?.axisValue || "", i =
|
|
389
|
-
return n.forEach((
|
|
390
|
-
if (
|
|
391
|
-
let
|
|
392
|
-
i.
|
|
393
|
-
}), `${r}<br/>${
|
|
427
|
+
let r = n[0]?.axisValue || "", i = [];
|
|
428
|
+
return n.forEach((n) => {
|
|
429
|
+
if (n.value === null || n.value === void 0 || isNaN(Number(n.value))) return;
|
|
430
|
+
let r = n.dataIndex < t ? "降水实况" : "预报数据";
|
|
431
|
+
i.push(`${n.marker} ${r}: ${n.value}${e.unit}`);
|
|
432
|
+
}), `${r}<br/>${i.join("<br/>")}`;
|
|
394
433
|
}
|
|
395
434
|
},
|
|
396
435
|
xAxis: {
|
|
397
436
|
type: "category",
|
|
398
|
-
data:
|
|
437
|
+
data: e.times,
|
|
399
438
|
axisLine: { lineStyle: { color: "rgba(255,255,255,0.3)" } },
|
|
400
439
|
axisLabel: {
|
|
401
440
|
color: "rgba(255,255,255,0.7)",
|
|
402
|
-
fontSize:
|
|
441
|
+
fontSize: 10,
|
|
442
|
+
rotate: e.times.length > 12 ? 30 : 0
|
|
403
443
|
},
|
|
404
444
|
axisTick: { show: !1 }
|
|
405
445
|
},
|
|
406
446
|
yAxis: {
|
|
407
447
|
type: "value",
|
|
408
|
-
max:
|
|
448
|
+
max: Be(e),
|
|
409
449
|
name: `单位:${e.unit}`,
|
|
410
450
|
nameTextStyle: {
|
|
411
451
|
color: "rgba(255,255,255,0.7)",
|
|
@@ -424,208 +464,133 @@ var ce = /* @__PURE__ */ e(r()), le = {
|
|
|
424
464
|
splitLine: { show: !1 },
|
|
425
465
|
axisTick: { show: !1 }
|
|
426
466
|
},
|
|
427
|
-
series: [
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
symbol: "none",
|
|
441
|
-
lineStyle: {
|
|
442
|
-
color: "#FF4D4F",
|
|
443
|
-
type: "dashed",
|
|
444
|
-
width: 1
|
|
445
|
-
},
|
|
446
|
-
label: { show: !1 },
|
|
447
|
-
data: a.map((t, n) => ({
|
|
448
|
-
xAxis: t,
|
|
449
|
-
yAxis: e.threshold[n] ?? e.threshold[e.threshold.length - 1] ?? 0
|
|
450
|
-
}))
|
|
451
|
-
}
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
name: "降水实况",
|
|
455
|
-
type: "bar",
|
|
456
|
-
data: o,
|
|
457
|
-
barWidth: "40%",
|
|
458
|
-
itemStyle: {
|
|
459
|
-
color: new D.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
460
|
-
offset: 0,
|
|
461
|
-
color: "rgba(5, 221, 250, 0.85)"
|
|
462
|
-
}, {
|
|
463
|
-
offset: 1,
|
|
464
|
-
color: "rgba(5, 221, 250, 0.15)"
|
|
465
|
-
}]),
|
|
466
|
-
borderRadius: [
|
|
467
|
-
4,
|
|
468
|
-
4,
|
|
469
|
-
0,
|
|
470
|
-
0
|
|
471
|
-
]
|
|
472
|
-
}
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
name: "预测值",
|
|
476
|
-
type: "bar",
|
|
477
|
-
data: s,
|
|
478
|
-
barWidth: "40%",
|
|
479
|
-
itemStyle: {
|
|
480
|
-
color: new D.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
481
|
-
offset: 0,
|
|
482
|
-
color: "rgba(250, 219, 20, 0.85)"
|
|
483
|
-
}, {
|
|
484
|
-
offset: 1,
|
|
485
|
-
color: "rgba(250, 219, 20, 0.15)"
|
|
486
|
-
}]),
|
|
487
|
-
borderRadius: [
|
|
488
|
-
4,
|
|
489
|
-
4,
|
|
490
|
-
0,
|
|
491
|
-
0
|
|
492
|
-
]
|
|
493
|
-
}
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
name: "降水实况",
|
|
497
|
-
type: "line",
|
|
498
|
-
data: c,
|
|
499
|
-
smooth: !0,
|
|
500
|
-
itemStyle: { color: "#05ddfa" },
|
|
501
|
-
lineStyle: { width: 2 },
|
|
502
|
-
symbol: "circle",
|
|
503
|
-
symbolSize: 5,
|
|
504
|
-
areaStyle: { color: new D.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
505
|
-
offset: 0,
|
|
506
|
-
color: "rgba(5, 221, 250, 0.3)"
|
|
507
|
-
}, {
|
|
508
|
-
offset: 1,
|
|
509
|
-
color: "rgba(5, 221, 250, 0.02)"
|
|
510
|
-
}]) }
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
name: "预测值",
|
|
514
|
-
type: "line",
|
|
515
|
-
data: l,
|
|
516
|
-
smooth: !0,
|
|
517
|
-
itemStyle: { color: n },
|
|
518
|
-
lineStyle: {
|
|
519
|
-
type: "dashed",
|
|
520
|
-
width: 2,
|
|
521
|
-
color: n
|
|
522
|
-
},
|
|
523
|
-
symbol: "circle",
|
|
524
|
-
symbolSize: 5
|
|
467
|
+
series: [{
|
|
468
|
+
name: "降水趋势",
|
|
469
|
+
type: "bar",
|
|
470
|
+
data: i,
|
|
471
|
+
barWidth: "50%",
|
|
472
|
+
itemStyle: {
|
|
473
|
+
color: n,
|
|
474
|
+
borderRadius: [
|
|
475
|
+
4,
|
|
476
|
+
4,
|
|
477
|
+
0,
|
|
478
|
+
0
|
|
479
|
+
]
|
|
525
480
|
}
|
|
526
|
-
]
|
|
481
|
+
}]
|
|
527
482
|
};
|
|
528
|
-
|
|
529
|
-
|
|
483
|
+
o && s.series.push({
|
|
484
|
+
name: "阈值",
|
|
485
|
+
type: "line",
|
|
486
|
+
data: e.times.map((t, n) => e.threshold[n] ?? e.threshold[e.threshold.length - 1] ?? 0),
|
|
487
|
+
itemStyle: { color: "#FF4D4F" },
|
|
488
|
+
lineStyle: {
|
|
489
|
+
type: "dashed",
|
|
490
|
+
width: 1
|
|
491
|
+
},
|
|
492
|
+
symbol: "none"
|
|
493
|
+
}), z.setOption(s);
|
|
494
|
+
}, He = ({ rowIndex: e }) => {
|
|
530
495
|
if (e > 2) return "";
|
|
531
|
-
let t =
|
|
496
|
+
let t = G.value[e];
|
|
532
497
|
return !t || !Number(t.precipitation) ? "" : e === 0 ? "PrecipitationRanking-row--top1" : e === 1 ? "PrecipitationRanking-row--top2" : e === 2 ? "PrecipitationRanking-row--top3" : "";
|
|
533
|
-
},
|
|
534
|
-
|
|
535
|
-
},
|
|
536
|
-
let t =
|
|
537
|
-
if (t > -1) (
|
|
498
|
+
}, Ue = () => {
|
|
499
|
+
A.value = ["30min"], j.value = !1, F.value = [], N.value = [], P.value = [];
|
|
500
|
+
}, We = (e) => {
|
|
501
|
+
let t = A.value.indexOf(e);
|
|
502
|
+
if (t > -1) (A.value.length > 1 || j.value) && A.value.splice(t, 1);
|
|
538
503
|
else {
|
|
539
|
-
if (
|
|
540
|
-
|
|
504
|
+
if (A.value.length >= 3) {
|
|
505
|
+
E.warning("最多同时选择3个时段");
|
|
541
506
|
return;
|
|
542
507
|
}
|
|
543
|
-
|
|
508
|
+
A.value.push(e);
|
|
544
509
|
}
|
|
545
510
|
Q();
|
|
546
|
-
},
|
|
547
|
-
if (
|
|
511
|
+
}, Ge = () => {
|
|
512
|
+
if (j.value) j.value = !1, F.value = [], P.value = [], A.value.length || (A.value = ["30min"], Q());
|
|
548
513
|
else {
|
|
549
|
-
if (
|
|
550
|
-
|
|
514
|
+
if (A.value.length >= 3) {
|
|
515
|
+
E.warning("最多同时选择3个时段");
|
|
551
516
|
return;
|
|
552
517
|
}
|
|
553
|
-
|
|
518
|
+
j.value = !0;
|
|
554
519
|
}
|
|
555
|
-
},
|
|
556
|
-
|
|
557
|
-
},
|
|
558
|
-
let t =
|
|
520
|
+
}, Ke = () => {
|
|
521
|
+
F.value?.length === 2 && F.value[0] && F.value[1] ? $() : (P.value = [], A.value.length && Q());
|
|
522
|
+
}, Y = (e) => {
|
|
523
|
+
let t = h.ids[e] || h.ids.data;
|
|
559
524
|
return t?.id ? t : null;
|
|
560
|
-
},
|
|
525
|
+
}, 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, qe = {
|
|
561
526
|
"30min": 30,
|
|
562
527
|
"1hour": 60,
|
|
563
528
|
"3hour": 180,
|
|
564
529
|
"6hour": 360,
|
|
565
530
|
"12hour": 720
|
|
566
|
-
},
|
|
567
|
-
let e = /* @__PURE__ */ new Date(), t = new Date(e), n = Math.max(...
|
|
531
|
+
}, Je = () => {
|
|
532
|
+
let e = /* @__PURE__ */ new Date(), t = new Date(e), n = Math.max(...A.value.map((e) => qe[e] || 30));
|
|
568
533
|
return t.setMinutes(e.getMinutes() - n), {
|
|
569
|
-
startDate:
|
|
570
|
-
endDate:
|
|
534
|
+
startDate: Z(t),
|
|
535
|
+
endDate: Z(e),
|
|
571
536
|
isCustom: "0"
|
|
572
537
|
};
|
|
573
|
-
},
|
|
574
|
-
startDate:
|
|
575
|
-
endDate:
|
|
538
|
+
}, Ye = () => ({
|
|
539
|
+
startDate: F.value[0] ? `${F.value[0]}:00:00` : "",
|
|
540
|
+
endDate: F.value[1] ? `${F.value[1]}:00:00` : "",
|
|
576
541
|
isCustom: "1"
|
|
577
|
-
}),
|
|
542
|
+
}), Z = (e) => {
|
|
578
543
|
let t = (e) => String(e).padStart(2, "0");
|
|
579
544
|
return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`;
|
|
580
545
|
}, Xe = () => {
|
|
581
|
-
let e =
|
|
582
|
-
|
|
546
|
+
let e = h.mockData;
|
|
547
|
+
N.value = e.list || [], M.value = e.dataTime || "";
|
|
583
548
|
}, Ze = async (e) => {
|
|
584
|
-
let t =
|
|
549
|
+
let t = Y("data");
|
|
585
550
|
if (!t) return console.warn("PrecipitationRanking 缺少工作流配置"), [];
|
|
586
|
-
let r =
|
|
551
|
+
let r = X(await n({
|
|
587
552
|
id: t.id,
|
|
588
|
-
baseHttp:
|
|
553
|
+
baseHttp: h.baseHttp,
|
|
589
554
|
reqType: t.reqType,
|
|
590
555
|
variables: e.isCustom == "0" ? { isCustom: e.isCustom } : e.isCustom == "1" ? e : {},
|
|
591
556
|
isFormData: t.isFormData,
|
|
592
|
-
appKey:
|
|
593
|
-
appSalt:
|
|
557
|
+
appKey: h.appKey,
|
|
558
|
+
appSalt: h.appSalt
|
|
594
559
|
}));
|
|
595
|
-
return r?.dataTime && (
|
|
560
|
+
return r?.dataTime && (M.value = r.dataTime), console.log(J(r, e.isCustom == "1"), "output1"), J(r, e.isCustom == "1");
|
|
596
561
|
}, Q = async () => {
|
|
597
|
-
if (!(
|
|
598
|
-
|
|
562
|
+
if (!(h.mock || A.value.length === 0) && Y("data")) try {
|
|
563
|
+
N.value = await Ze(Je());
|
|
599
564
|
} catch (e) {
|
|
600
|
-
console.error("PrecipitationRanking 固定时段数据加载失败", e),
|
|
565
|
+
console.error("PrecipitationRanking 固定时段数据加载失败", e), N.value = [];
|
|
601
566
|
}
|
|
602
567
|
}, Qe = async () => {
|
|
603
|
-
if (!(
|
|
604
|
-
|
|
568
|
+
if (!(h.mock || F.value.length !== 2) && Y("data")) try {
|
|
569
|
+
P.value = await Ze(Ye());
|
|
605
570
|
} catch (e) {
|
|
606
|
-
console.error("PrecipitationRanking 自定义时段数据加载失败", e),
|
|
571
|
+
console.error("PrecipitationRanking 自定义时段数据加载失败", e), P.value = [];
|
|
607
572
|
}
|
|
608
573
|
}, $ = async () => {
|
|
609
|
-
if (
|
|
574
|
+
if (O.value = !0, h.mock) Xe();
|
|
610
575
|
else {
|
|
611
|
-
let e =
|
|
576
|
+
let e = A.value.length > 0, t = j.value && F.value.length === 2 && F.value[0] && F.value[1];
|
|
612
577
|
e && t ? await Promise.all([Q(), Qe()]) : t ? await Qe() : await Q();
|
|
613
578
|
}
|
|
614
|
-
|
|
579
|
+
O.value = !1;
|
|
615
580
|
}, $e = async () => {
|
|
616
|
-
|
|
617
|
-
|
|
581
|
+
k.value = !0, Ue(), await $(), setTimeout(() => {
|
|
582
|
+
k.value = !1;
|
|
618
583
|
}, 500);
|
|
619
584
|
}, et = () => {
|
|
620
|
-
let e =
|
|
585
|
+
let e = U.value.map((e) => e.label + "降水量(mm)"), t = G.value.map((e, t) => {
|
|
621
586
|
let n = {
|
|
622
587
|
序号: t + 1,
|
|
623
588
|
站名: e.stationName,
|
|
624
589
|
行政区: e.district || "--"
|
|
625
590
|
};
|
|
626
|
-
return
|
|
627
|
-
n[t.label + "降水量(mm)"] =
|
|
628
|
-
}), n.降水等级 =
|
|
591
|
+
return U.value.forEach((t) => {
|
|
592
|
+
n[t.label + "降水量(mm)"] = q(H(e, t.value), "");
|
|
593
|
+
}), n.降水等级 = Ne(H(e, W.value)), n.数据时间 = e.monitorTime || M.value || "", n;
|
|
629
594
|
}), n = [
|
|
630
595
|
"序号",
|
|
631
596
|
"站名",
|
|
@@ -637,11 +602,11 @@ var ce = /* @__PURE__ */ e(r()), le = {
|
|
|
637
602
|
8,
|
|
638
603
|
18,
|
|
639
604
|
16,
|
|
640
|
-
...
|
|
605
|
+
...U.value.map(() => 18),
|
|
641
606
|
14,
|
|
642
607
|
20
|
|
643
608
|
];
|
|
644
|
-
new
|
|
609
|
+
new ue.default({
|
|
645
610
|
fileName: `自动站降水排名_${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
646
611
|
datas: [{
|
|
647
612
|
sheetData: t,
|
|
@@ -652,26 +617,26 @@ var ce = /* @__PURE__ */ e(r()), le = {
|
|
|
652
617
|
}]
|
|
653
618
|
}).saveExcel();
|
|
654
619
|
}, tt = () => {
|
|
655
|
-
nt(), !(
|
|
620
|
+
nt(), !(h.refreshInterval <= 0) && (B = setInterval(() => {
|
|
656
621
|
$();
|
|
657
|
-
},
|
|
622
|
+
}, h.refreshInterval));
|
|
658
623
|
}, nt = () => {
|
|
659
|
-
|
|
624
|
+
B &&= (clearInterval(B), null);
|
|
660
625
|
};
|
|
661
|
-
return
|
|
626
|
+
return re(() => {
|
|
662
627
|
r?.on("toComponent", (e) => {
|
|
663
628
|
e.componentName === "PrecipitationRanking" && $();
|
|
664
629
|
}), $(), tt();
|
|
665
|
-
}),
|
|
666
|
-
nt(),
|
|
630
|
+
}), y(() => {
|
|
631
|
+
nt(), z &&= (z.dispose(), null);
|
|
667
632
|
}), (t, n) => {
|
|
668
|
-
let r = o,
|
|
669
|
-
return
|
|
670
|
-
|
|
633
|
+
let r = o, u = a, h = i, g = ee, _ = c, y = s;
|
|
634
|
+
return ae((b(), f("div", de, [
|
|
635
|
+
p("button", {
|
|
671
636
|
class: "PrecipitationRanking-close",
|
|
672
|
-
onClick:
|
|
673
|
-
}, [...n[1] ||= [
|
|
674
|
-
|
|
637
|
+
onClick: Pe
|
|
638
|
+
}, [...n[1] ||= [p("span", null, "✕", -1)]]),
|
|
639
|
+
p("div", fe, [p("div", pe, [n[2] ||= p("h3", { class: "PrecipitationRanking-title" }, "自动站降水排名", -1), M.value ? (b(), f("span", me, "(数据时间:" + S(M.value) + ")", 1)) : d("", !0)]), n[3] ||= p("img", {
|
|
675
640
|
style: {
|
|
676
641
|
width: "100%",
|
|
677
642
|
"object-fit": "contain",
|
|
@@ -680,30 +645,30 @@ var ce = /* @__PURE__ */ e(r()), le = {
|
|
|
680
645
|
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",
|
|
681
646
|
alt: ""
|
|
682
647
|
}, null, -1)]),
|
|
683
|
-
|
|
648
|
+
p("div", he, [p("div", ge, [n[6] ||= p("span", { class: "PrecipitationRanking-toolbarLabel" }, "时间选择", -1), p("div", _e, [p("button", {
|
|
684
649
|
class: "PrecipitationRanking-btn",
|
|
685
650
|
onClick: et
|
|
686
|
-
}, [
|
|
687
|
-
default:
|
|
651
|
+
}, [m(r, { class: "PrecipitationRanking-icon" }, {
|
|
652
|
+
default: w(() => [m(C(se))]),
|
|
688
653
|
_: 1
|
|
689
|
-
}), n[4] ||=
|
|
654
|
+
}), n[4] ||= p("span", null, "导出", -1)]), p("button", {
|
|
690
655
|
class: "PrecipitationRanking-btn",
|
|
691
656
|
onClick: $e
|
|
692
|
-
}, [
|
|
693
|
-
default:
|
|
657
|
+
}, [m(r, { class: "PrecipitationRanking-icon" }, {
|
|
658
|
+
default: w(() => [m(C(ce))]),
|
|
694
659
|
_: 1
|
|
695
|
-
}), n[5] ||=
|
|
660
|
+
}), n[5] ||= p("span", null, "刷新", -1)])])]), p("div", ve, [p("div", ye, [(b(), f(l, null, ie(V, (e) => p("button", {
|
|
696
661
|
key: e.value,
|
|
697
|
-
class:
|
|
698
|
-
onClick: (t) =>
|
|
699
|
-
},
|
|
700
|
-
class:
|
|
701
|
-
onClick:
|
|
662
|
+
class: v(["PrecipitationRanking-timeTag", { "PrecipitationRanking-timeTag--active": A.value.includes(e.value) }]),
|
|
663
|
+
onClick: (t) => We(e.value)
|
|
664
|
+
}, S(e.label), 11, be)), 64)), p("button", {
|
|
665
|
+
class: v(["PrecipitationRanking-timeTag", { "PrecipitationRanking-timeTag--active": j.value }]),
|
|
666
|
+
onClick: Ge
|
|
702
667
|
}, " 自定义 ", 2)])])]),
|
|
703
|
-
|
|
704
|
-
default:
|
|
705
|
-
modelValue:
|
|
706
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
668
|
+
j.value ? (b(), f("div", xe, [n[7] ||= p("span", { class: "PrecipitationRanking-customLabel" }, "时间范围", -1), m(h, { locale: C(le) }, {
|
|
669
|
+
default: w(() => [m(u, {
|
|
670
|
+
modelValue: F.value,
|
|
671
|
+
"onUpdate:modelValue": n[0] ||= (e) => F.value = e,
|
|
707
672
|
type: "datetimerange",
|
|
708
673
|
"range-separator": "至",
|
|
709
674
|
"start-placeholder": "开始时间",
|
|
@@ -713,68 +678,68 @@ var ce = /* @__PURE__ */ e(r()), le = {
|
|
|
713
678
|
clearable: "",
|
|
714
679
|
class: "PrecipitationRanking-datePicker",
|
|
715
680
|
"popper-class": "PrecipitationRanking-datePopper",
|
|
716
|
-
onChange:
|
|
681
|
+
onChange: Ke
|
|
717
682
|
}, null, 8, ["modelValue"])]),
|
|
718
683
|
_: 1
|
|
719
|
-
}, 8, ["locale"])])) :
|
|
720
|
-
|
|
721
|
-
data:
|
|
684
|
+
}, 8, ["locale"])])) : d("", !0),
|
|
685
|
+
p("div", Se, [p("div", Ce, [m(_, {
|
|
686
|
+
data: G.value,
|
|
722
687
|
class: "PrecipitationRanking-table",
|
|
723
688
|
height: e.tableHeight,
|
|
724
689
|
"empty-text": "暂无数据",
|
|
725
|
-
"row-class-name":
|
|
726
|
-
onRowClick:
|
|
690
|
+
"row-class-name": He,
|
|
691
|
+
onRowClick: Fe
|
|
727
692
|
}, {
|
|
728
|
-
default:
|
|
729
|
-
|
|
693
|
+
default: w(() => [
|
|
694
|
+
m(g, {
|
|
730
695
|
label: "序号",
|
|
731
696
|
align: "center",
|
|
732
697
|
width: "70"
|
|
733
698
|
}, {
|
|
734
|
-
default:
|
|
699
|
+
default: w(({ $index: e }) => [p("span", { class: v(["PrecipitationRanking-rank", `PrecipitationRanking-rank--${e + 1}`]) }, S(e + 1), 3)]),
|
|
735
700
|
_: 1
|
|
736
701
|
}),
|
|
737
|
-
|
|
702
|
+
m(g, {
|
|
738
703
|
prop: "stationName",
|
|
739
704
|
label: "站名",
|
|
740
705
|
align: "left",
|
|
741
706
|
"min-width": "80",
|
|
742
707
|
"show-overflow-tooltip": ""
|
|
743
708
|
}),
|
|
744
|
-
(
|
|
709
|
+
(b(!0), f(l, null, ie(U.value, (e) => (b(), te(g, {
|
|
745
710
|
key: e.value,
|
|
746
711
|
label: e.label + "(mm)",
|
|
747
712
|
align: "center",
|
|
748
713
|
"min-width": "100"
|
|
749
714
|
}, {
|
|
750
|
-
default:
|
|
715
|
+
default: w(({ row: t }) => [ne(S(q(H(t, e.value), "")), 1)]),
|
|
751
716
|
_: 2
|
|
752
717
|
}, 1032, ["label"]))), 128)),
|
|
753
|
-
|
|
718
|
+
m(g, {
|
|
754
719
|
label: "趋势",
|
|
755
720
|
align: "center",
|
|
756
721
|
width: "70"
|
|
757
722
|
}, {
|
|
758
|
-
default:
|
|
723
|
+
default: w(({ row: e }) => [p("span", {
|
|
759
724
|
class: "PrecipitationRanking-viewLink",
|
|
760
|
-
onClick:
|
|
761
|
-
}, "查看", 8,
|
|
725
|
+
onClick: oe((t) => Ie(e), ["stop"])
|
|
726
|
+
}, "查看", 8, we)]),
|
|
762
727
|
_: 1
|
|
763
728
|
})
|
|
764
729
|
]),
|
|
765
730
|
_: 1
|
|
766
731
|
}, 8, ["data", "height"])])]),
|
|
767
|
-
|
|
732
|
+
I.value ? (b(), f("div", Te, [p("div", Ee, [p("div", De, [p("div", Oe, [n[8] ||= p("span", null, "趋势图表", -1), p("span", ke, S(L.value?.stationName), 1)]), p("button", {
|
|
768
733
|
class: "PrecipitationRanking-trendClose",
|
|
769
|
-
onClick:
|
|
770
|
-
}, "✕")]),
|
|
734
|
+
onClick: Le
|
|
735
|
+
}, "✕")]), p("div", {
|
|
771
736
|
ref_key: "trendChartRef",
|
|
772
|
-
ref:
|
|
737
|
+
ref: R,
|
|
773
738
|
class: "PrecipitationRanking-trendChart"
|
|
774
|
-
}, null, 512)])])) :
|
|
775
|
-
])), [[
|
|
739
|
+
}, null, 512)])])) : d("", !0)
|
|
740
|
+
])), [[y, O.value]]);
|
|
776
741
|
};
|
|
777
742
|
}
|
|
778
|
-
}), [["__scopeId", "data-v-
|
|
743
|
+
}), [["__scopeId", "data-v-3b8e660b"]]);
|
|
779
744
|
//#endregion
|
|
780
|
-
export {
|
|
745
|
+
export { D as t };
|