nxd-plugin 1.7.63 → 1.7.64
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.
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { n as e, r as t } from "./component-AqiMonitor-DbEiA-eq.mjs";
|
|
2
2
|
import { n } from "./component-HighwayWeatherForecast-jJgs1nWv.mjs";
|
|
3
3
|
import { ElInput as r, ElLoadingDirective as i } from "element-plus/es";
|
|
4
|
-
import { Fragment as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, normalizeClass as p,
|
|
4
|
+
import { Fragment as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, normalizeClass as p, onBeforeUnmount as m, onMounted as h, openBlock as g, ref as _, renderList as v, toDisplayString as y, withDirectives as b } from "vue";
|
|
5
5
|
import "element-plus/es/components/loading/style/css";
|
|
6
6
|
import "element-plus/es/components/input/style/css";
|
|
7
7
|
//#region src/components/YCRealTimeTable/YCRealTimeTable.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
8
|
+
var x = {
|
|
9
9
|
class: "YCRealTimeTable",
|
|
10
10
|
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
11
|
-
},
|
|
11
|
+
}, S = { class: "YCRealTimeTable-summary" }, C = { class: "summary-table" }, w = { class: "summary-head" }, T = { class: "summary-body" }, E = { class: "summary-cell summary-cell-label" }, D = { class: "YCRealTimeTable-toolbar" }, O = { class: "filter-group" }, ee = { class: "YCRealTimeTable-detail" }, te = { class: "detail-table" }, ne = { class: "detail-head" }, k = ["onClick"], A = { class: "detail-body" }, j = { class: "detail-cell detail-cell-index" }, M = { class: "detail-cell" }, N = { class: "detail-cell" }, P = { class: "detail-cell" }, F = { class: "detail-cell" }, I = { class: "detail-cell" }, L = { class: "detail-cell" }, R = { class: "detail-cell" }, z = { class: "detail-cell" }, B = /* @__PURE__ */ e(/* @__PURE__ */ f({
|
|
12
12
|
__name: "YCRealTimeTable",
|
|
13
13
|
props: {
|
|
14
14
|
appKey: {
|
|
@@ -29,7 +29,7 @@ var b = {
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
setup(e) {
|
|
32
|
-
let f = e,
|
|
32
|
+
let f = e, B = _(!1), V = _([]), H = [
|
|
33
33
|
"当前小时雨量(测试)",
|
|
34
34
|
"1小时雨量",
|
|
35
35
|
"3小时雨量",
|
|
@@ -38,7 +38,7 @@ var b = {
|
|
|
38
38
|
"极大风速",
|
|
39
39
|
"能见度",
|
|
40
40
|
"最小能见度"
|
|
41
|
-
],
|
|
41
|
+
], U = _([]), W = _([]), G = [
|
|
42
42
|
{
|
|
43
43
|
key: "index",
|
|
44
44
|
label: "序号",
|
|
@@ -109,17 +109,17 @@ var b = {
|
|
|
109
109
|
label: "气压",
|
|
110
110
|
sortable: !0
|
|
111
111
|
}
|
|
112
|
-
],
|
|
113
|
-
let e =
|
|
114
|
-
|
|
115
|
-
let t =
|
|
112
|
+
], K = _(!0), q = _(""), J = _(""), Y = _(null), X = _(null), Z = _(null), re = o(() => {
|
|
113
|
+
let e = W.value;
|
|
114
|
+
K.value || (e = e.filter((e) => e.county === "袁州区"));
|
|
115
|
+
let t = q.value.trim();
|
|
116
116
|
t && (e = e.filter((e) => e.county.includes(t)));
|
|
117
|
-
let n =
|
|
117
|
+
let n = J.value.trim();
|
|
118
118
|
return n && (e = e.filter((e) => e.station.includes(n))), e;
|
|
119
|
-
}),
|
|
120
|
-
let e = [...
|
|
121
|
-
if (!
|
|
122
|
-
let t =
|
|
119
|
+
}), ie = o(() => {
|
|
120
|
+
let e = [...re.value];
|
|
121
|
+
if (!Y.value || !X.value) return e;
|
|
122
|
+
let t = Y.value;
|
|
123
123
|
return e.sort((e, n) => {
|
|
124
124
|
let r = e[t], i = n[t], a = r === null || r === "" || r === void 0, o = i === null || i === "" || i === void 0;
|
|
125
125
|
if (a && o) return 0;
|
|
@@ -131,14 +131,18 @@ var b = {
|
|
|
131
131
|
if (s < 0) return 1;
|
|
132
132
|
if (c < 0) return -1;
|
|
133
133
|
} else s = Number(r), c = Number(i);
|
|
134
|
-
return
|
|
134
|
+
return X.value === "asc" ? s - c : c - s;
|
|
135
135
|
});
|
|
136
136
|
});
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
h(() => {
|
|
138
|
+
Q(), Z.value = setInterval(() => {
|
|
139
|
+
Q();
|
|
140
|
+
}, 1e3 * 60 * 10);
|
|
141
|
+
}), m(() => {
|
|
142
|
+
clearInterval(Z.value), Z.value = null;
|
|
139
143
|
});
|
|
140
|
-
let
|
|
141
|
-
|
|
144
|
+
let Q = async () => {
|
|
145
|
+
B.value = !0;
|
|
142
146
|
let e = (await t({
|
|
143
147
|
appKey: f.appKey,
|
|
144
148
|
appSalt: f.appSalt,
|
|
@@ -153,9 +157,9 @@ var b = {
|
|
|
153
157
|
nationalStations: [],
|
|
154
158
|
otherStations: []
|
|
155
159
|
};
|
|
156
|
-
|
|
160
|
+
V.value = (i || []).map((e) => e.stationName);
|
|
157
161
|
let o = (e) => e == null || e === "" ? "" : e;
|
|
158
|
-
|
|
162
|
+
U.value = H.map((e) => (i || []).map((t) => {
|
|
159
163
|
switch (e) {
|
|
160
164
|
case "当前小时雨量(测试)": return {
|
|
161
165
|
value: o(t.currentHourRain),
|
|
@@ -194,7 +198,7 @@ var b = {
|
|
|
194
198
|
isWarn: !1
|
|
195
199
|
};
|
|
196
200
|
}
|
|
197
|
-
})),
|
|
201
|
+
})), W.value = (a || []).map((e) => {
|
|
198
202
|
let t = "";
|
|
199
203
|
if (e.datetime) {
|
|
200
204
|
let n = e.datetime.match(/(\d{2}):(\d{2}):\d{2}$/);
|
|
@@ -221,80 +225,80 @@ var b = {
|
|
|
221
225
|
pressure: o(e.prs)
|
|
222
226
|
};
|
|
223
227
|
}), setTimeout(() => {
|
|
224
|
-
|
|
228
|
+
B.value = !1;
|
|
225
229
|
}, 300);
|
|
226
230
|
}, $ = (e) => {
|
|
227
231
|
if (!e) return -1;
|
|
228
232
|
let t = e.match(/(\d+)时(\d+)分/);
|
|
229
233
|
return t ? Number(t[1]) * 60 + Number(t[2]) : -1;
|
|
230
|
-
},
|
|
231
|
-
|
|
234
|
+
}, ae = (e, t) => t == null || t === "" ? "" : t, oe = (e) => {
|
|
235
|
+
Y.value === e ? X.value === "desc" ? X.value = "asc" : X.value === "asc" ? (Y.value = null, X.value = null) : X.value = "desc" : (Y.value = e, X.value = "desc");
|
|
232
236
|
};
|
|
233
237
|
return (e, t) => {
|
|
234
238
|
let n = r, o = i;
|
|
235
|
-
return
|
|
236
|
-
l("div",
|
|
239
|
+
return b((g(), c("div", x, [
|
|
240
|
+
l("div", S, [l("div", C, [l("div", w, [t[3] ||= l("div", { class: "summary-cell summary-cell-label" }, "监测要素", -1), (g(!0), c(a, null, v(V.value, (e, t) => (g(), c("div", {
|
|
237
241
|
class: "summary-cell",
|
|
238
242
|
key: t
|
|
239
|
-
},
|
|
243
|
+
}, y(e), 1))), 128))]), l("div", T, [(g(), c(a, null, v(H, (e, t) => l("div", {
|
|
240
244
|
class: "summary-row",
|
|
241
245
|
key: e
|
|
242
|
-
}, [l("div",
|
|
243
|
-
class: p(["summary-cell", { "is-warn":
|
|
246
|
+
}, [l("div", E, y(e), 1), (g(!0), c(a, null, v(V.value, (n, r) => (g(), c("div", {
|
|
247
|
+
class: p(["summary-cell", { "is-warn": U.value[t]?.[r]?.isWarn }]),
|
|
244
248
|
key: r
|
|
245
|
-
},
|
|
246
|
-
l("div",
|
|
249
|
+
}, y(ae(e, U.value[t]?.[r]?.value)), 3))), 128))])), 64))])])]),
|
|
250
|
+
l("div", D, [l("div", O, [
|
|
247
251
|
l("button", {
|
|
248
|
-
class: p(["city-btn", { active:
|
|
249
|
-
onClick: t[0] ||= (e) =>
|
|
252
|
+
class: p(["city-btn", { active: K.value }]),
|
|
253
|
+
onClick: t[0] ||= (e) => K.value = !K.value
|
|
250
254
|
}, "全市", 2),
|
|
251
255
|
d(n, {
|
|
252
|
-
modelValue:
|
|
253
|
-
"onUpdate:modelValue": t[1] ||= (e) =>
|
|
256
|
+
modelValue: q.value,
|
|
257
|
+
"onUpdate:modelValue": t[1] ||= (e) => q.value = e,
|
|
254
258
|
placeholder: "县名搜索",
|
|
255
259
|
clearable: "",
|
|
256
260
|
class: "filter-input"
|
|
257
261
|
}, null, 8, ["modelValue"]),
|
|
258
262
|
d(n, {
|
|
259
|
-
modelValue:
|
|
260
|
-
"onUpdate:modelValue": t[2] ||= (e) =>
|
|
263
|
+
modelValue: J.value,
|
|
264
|
+
"onUpdate:modelValue": t[2] ||= (e) => J.value = e,
|
|
261
265
|
placeholder: "站名搜索",
|
|
262
266
|
clearable: "",
|
|
263
267
|
class: "filter-input"
|
|
264
268
|
}, null, 8, ["modelValue"])
|
|
265
269
|
])]),
|
|
266
|
-
l("div",
|
|
270
|
+
l("div", ee, [l("div", te, [l("div", ne, [(g(), c(a, null, v(G, (e) => l("div", {
|
|
267
271
|
class: p(["detail-cell", {
|
|
268
272
|
"is-sortable": e.sortable,
|
|
269
|
-
"is-active":
|
|
273
|
+
"is-active": Y.value === e.key
|
|
270
274
|
}]),
|
|
271
275
|
key: e.key,
|
|
272
|
-
onClick: (t) => e.sortable &&
|
|
273
|
-
}, [u(
|
|
276
|
+
onClick: (t) => e.sortable && oe(e.key)
|
|
277
|
+
}, [u(y(e.label) + " ", 1), e.sortable ? (g(), c("span", {
|
|
274
278
|
key: 0,
|
|
275
|
-
class: p(["sort-icon",
|
|
276
|
-
}, null, 2)) : s("", !0)], 10,
|
|
279
|
+
class: p(["sort-icon", Y.value === e.key ? X.value : ""])
|
|
280
|
+
}, null, 2)) : s("", !0)], 10, k)), 64))]), l("div", A, [(g(!0), c(a, null, v(ie.value, (e, t) => (g(), c("div", {
|
|
277
281
|
class: "detail-row",
|
|
278
282
|
key: `${e.county}-${e.station}-${t}`
|
|
279
283
|
}, [
|
|
280
|
-
l("div",
|
|
281
|
-
l("div",
|
|
282
|
-
l("div",
|
|
283
|
-
l("div",
|
|
284
|
-
l("div",
|
|
285
|
-
l("div",
|
|
286
|
-
l("div", { class: p(["detail-cell", { "is-warn": e.rain3Warn }]) },
|
|
287
|
-
l("div", { class: p(["detail-cell", { "is-warn": e.rain1Warn }]) },
|
|
288
|
-
l("div", { class: p(["detail-cell", { "is-warn": e.rainCurrentWarn }]) },
|
|
289
|
-
l("div", { class: p(["detail-cell", { "is-warn": e.tempWarn }]) },
|
|
290
|
-
l("div",
|
|
291
|
-
l("div", { class: p(["detail-cell", { "is-warn": e.windSpeedWarn }]) },
|
|
292
|
-
l("div",
|
|
293
|
-
l("div",
|
|
284
|
+
l("div", j, y(t + 1), 1),
|
|
285
|
+
l("div", M, y(e.county), 1),
|
|
286
|
+
l("div", N, y(e.station), 1),
|
|
287
|
+
l("div", P, y(e.time), 1),
|
|
288
|
+
l("div", F, y(e.rain24), 1),
|
|
289
|
+
l("div", I, y(e.rain20), 1),
|
|
290
|
+
l("div", { class: p(["detail-cell", { "is-warn": e.rain3Warn }]) }, y(e.rain3), 3),
|
|
291
|
+
l("div", { class: p(["detail-cell", { "is-warn": e.rain1Warn }]) }, y(e.rain1), 3),
|
|
292
|
+
l("div", { class: p(["detail-cell", { "is-warn": e.rainCurrentWarn }]) }, y(e.rainCurrent), 3),
|
|
293
|
+
l("div", { class: p(["detail-cell", { "is-warn": e.tempWarn }]) }, y(e.temp), 3),
|
|
294
|
+
l("div", L, y(e.windDir), 1),
|
|
295
|
+
l("div", { class: p(["detail-cell", { "is-warn": e.windSpeedWarn }]) }, y(e.windSpeed), 3),
|
|
296
|
+
l("div", R, y(e.humidity), 1),
|
|
297
|
+
l("div", z, y(e.pressure), 1)
|
|
294
298
|
]))), 128))])])])
|
|
295
|
-
])), [[o,
|
|
299
|
+
])), [[o, B.value]]);
|
|
296
300
|
};
|
|
297
301
|
}
|
|
298
|
-
}), [["__scopeId", "data-v-
|
|
302
|
+
}), [["__scopeId", "data-v-928a0ae4"]]);
|
|
299
303
|
//#endregion
|
|
300
|
-
export {
|
|
304
|
+
export { B as t };
|
package/dist/nxd-plugin.mjs
CHANGED
|
@@ -31,7 +31,7 @@ import { t as k } from "./chunks/component-EarlyWarningStatistic-DvAmY7Gh.mjs";
|
|
|
31
31
|
import { t as A } from "./chunks/component-ChartRealTimePre-6qop27YL.mjs";
|
|
32
32
|
import { t as j } from "./chunks/component-ChartCumulativePre-B-8gpBKH.mjs";
|
|
33
33
|
import { t as M } from "./chunks/component-ChartServiceMaterial-BJmsK4Yo.mjs";
|
|
34
|
-
import { t as N } from "./chunks/component-YCRealTimeTable-
|
|
34
|
+
import { t as N } from "./chunks/component-YCRealTimeTable-SCMyM6ky.mjs";
|
|
35
35
|
//#region src/index.ts
|
|
36
36
|
var P = { install(P) {
|
|
37
37
|
P.component("HighwayLiveAlarm", t), P.component("HighwayLiveAlarmNew", r), P.component("HighwayStations", i), P.component("HighWayEarlyWarningRed", a), P.component("HighwayWeatherForecast", o), P.component("ServiceMaterialsBtn", s), P.component("YCHome", c), P.component("YCLoginNew", u), P.component("HighWayFreeze", d), P.component("RadarShortTerm", p), P.component("LithiumBatteryMiningArea", l), P.component("TimeBasedForecast", m), P.component("WeatherForecast", h), P.component("ImageGeneration", g), P.component("WarningSignal", _), P.component("RadarChart", v), P.component("AqiMonitor", e), P.component("MapPopup", y), P.component("RadarTime", b), P.component("ServiceMaterial", x), P.component("WarningLine", S), P.component("RadarLegend", f), P.component("PieLegend", C), P.component("GeologyLiveAlarm", n), P.component("MaterialPreview", w), P.component("ReservoirLiveAlarm", T), P.component("IframeWeb", E), P.component("Duty", D), P.component("RenderMarkdown", O), P.component("EarlyWarningStatistic", k), P.component("ChartRealTimePre", A), P.component("ChartCumulativePre", j), P.component("ChartServiceMaterial", M), P.component("YCRealTimeTable", N);
|