nxd-plugin 1.7.3 → 1.7.4
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-HighwayLiveAlarmNew-Br-t28Hr.mjs → component-HighwayLiveAlarmNew-W2DKwrPk.mjs} +222 -202
- package/dist/chunks/{component-ImageGeneration-DSUc0Jzf.mjs → component-ImageGeneration-9XdsjkaE.mjs} +1 -1
- package/dist/chunks/component-RadarLegend-DQp5wjbz.mjs +89 -0
- package/dist/chunks/component-RadarShortTerm-CZEP_KxT.mjs +373 -0
- package/dist/chunks/{component-ServiceMaterialsBtn-DzeJfuGW.mjs → component-ServiceMaterialsBtn-DjUo4Hsx.mjs} +1 -1
- package/dist/chunks/{component-YCHome-4jtJSQOh.mjs → component-YCHome-B2wOG1EV.mjs} +474 -445
- package/dist/chunks/{component-YCLogin-3JpsBCAJ.mjs → component-YCLogin-DWhvv-rf.mjs} +2 -2
- package/dist/chunks/{component-YCLoginNew-BZvJGYAm.mjs → component-YCLoginNew-CPPSTPXH.mjs} +2 -2
- package/dist/nxd-plugin.mjs +15 -15
- package/dist/src/components/HighwayLiveAlarmNew/HighwayLiveAlarmNew.vue.d.ts +2 -0
- package/dist/src/components/LithiumBatteryMiningArea/LithiumBatteryMiningArea.vue.d.ts +2 -2
- package/dist/styles/component-HighwayLiveAlarmNew.css +1 -1
- package/dist/styles/component-RadarLegend.css +1 -0
- package/dist/styles/component-RadarShortTerm.css +1 -1
- package/dist/styles/component-YCHome.css +1 -1
- package/dist/styles/component-YCLogin.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/component-RadarShortTerm-CidtgjJ5.mjs +0 -367
- /package/dist/chunks/{component-MapPopup-B2Jmyc6L.mjs → component-MapPopup-0uM1uyql.mjs} +0 -0
- /package/dist/chunks/{component-RadarChart-CGAMxnMk.mjs → component-RadarChart-Dz5sm2q5.mjs} +0 -0
- /package/dist/chunks/{component-RadarTime-YYlhiftO.mjs → component-RadarTime--DUvLJh2.mjs} +0 -0
- /package/dist/chunks/{component-ServiceMaterial-Bx9kF9Yi.mjs → component-ServiceMaterial-D9i1nsOr.mjs} +0 -0
- /package/dist/chunks/{component-TimeBasedForecast-D4syarmJ.mjs → component-TimeBasedForecast-Bc4EOR8R.mjs} +0 -0
- /package/dist/chunks/{component-WarningLine-D5PmJ8Si.mjs → component-WarningLine-C5AGlCZR.mjs} +0 -0
- /package/dist/chunks/{component-WarningSignal-Dj3r1iCu.mjs → component-WarningSignal-BaKdzl4i.mjs} +0 -0
- /package/dist/chunks/{component-WeatherForecast-CYzKbPGG.mjs → component-WeatherForecast-BzF3E06F.mjs} +0 -0
|
@@ -2,7 +2,7 @@ import { i as e, t } from "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
|
2
2
|
import { $ as n, C as r, E as i, G as a, I as o, K as s, L as c, M as l, P as u, Q as d, R as f, T as p, W as m, Z as h, a as g, b as _, c as v, d as y, et as b, i as x, l as S, m as C, n as w, r as ee, tt as T, u as E, v as D, w as O, y as te, z as ne } from "./component-HighWayFreeze-C_Y5P0wN.mjs";
|
|
3
3
|
import { At as re, B as ie, Bt as ae, C as oe, Ct as se, D as k, Dt as ce, E as le, Et as ue, Ft as de, Gt as fe, Ht as pe, It as me, Jt as he, Kt as ge, Lt as _e, Mt as ve, Nt as ye, Ot as be, P as xe, Pt as Se, R as Ce, Rt as we, St as Te, Tt as Ee, Ut as De, Vt as Oe, Wt as ke, Yt as Ae, Zt as je, a as Me, c as Ne, f as Pe, g as Fe, h as Ie, ht as Le, in as Re, jt as ze, kt as Be, l as Ve, n as He, nn as Ue, o as We, on as Ge, qt as Ke, u as qe, v as Je, zt as Ye } from "./component-AqiMonitor-DoGm_NCt.mjs";
|
|
4
4
|
import { a as Xe } from "./component-HighwayLiveAlarm-DMdnrD3c.mjs";
|
|
5
|
-
import { n as Ze } from "./component-HighwayLiveAlarmNew-
|
|
5
|
+
import { n as Ze } from "./component-HighwayLiveAlarmNew-W2DKwrPk.mjs";
|
|
6
6
|
import "./component-HighWayEarlyWarningRed-D89gFa50.mjs";
|
|
7
7
|
import { Fragment as Qe, Text as $e, computed as A, createApp as et, createBlock as tt, createCommentVNode as nt, createElementBlock as j, createElementVNode as M, createTextVNode as rt, createVNode as N, defineComponent as it, getCurrentInstance as at, h as ot, inject as st, markRaw as ct, mergeProps as lt, nextTick as ut, normalizeClass as P, normalizeStyle as dt, onMounted as ft, openBlock as F, provide as pt, reactive as mt, ref as ht, renderList as gt, renderSlot as _t, resolveDynamicComponent as vt, shallowRef as yt, toDisplayString as I, toRef as bt, unref as L, useAttrs as xt, useSlots as St, vShow as Ct, watch as wt, watchEffect as Tt, withCtx as Et, withDirectives as R, withKeys as Dt, withModifiers as Ot } from "vue";
|
|
8
8
|
//#region node_modules/lodash-es/now.js
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { n as e } from "./component-AqiMonitor-DoGm_NCt.mjs";
|
|
2
|
+
import { Fragment as t, createElementBlock as n, createElementVNode as r, defineComponent as i, getCurrentInstance as a, normalizeClass as o, normalizeStyle as s, onMounted as c, openBlock as l, ref as u, renderList as d, toDisplayString as f, vShow as p, withDirectives as m } from "vue";
|
|
3
|
+
//#region src/components/RadarLegend/RadarLegend.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var h = { class: "RadarLegend-colorList" }, g = { class: "valueText" }, _ = /* @__PURE__ */ e(/* @__PURE__ */ i({
|
|
5
|
+
__name: "RadarLegend",
|
|
6
|
+
props: {
|
|
7
|
+
show: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: !0
|
|
10
|
+
},
|
|
11
|
+
isVertical: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !0
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
setup(e) {
|
|
17
|
+
let i = a()?.appContext.config.globalProperties.$bus, _ = e, v = u(), y = [
|
|
18
|
+
{
|
|
19
|
+
color: "rgb(192, 192, 253)",
|
|
20
|
+
value: "0"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
color: "rgb(122, 114, 238)",
|
|
24
|
+
value: "5"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
color: "rgb(30, 38, 208)",
|
|
28
|
+
value: "10"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
color: "rgb(166, 252, 168)",
|
|
32
|
+
value: "15"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
color: "rgb(0, 235, 0)",
|
|
36
|
+
value: "20"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
color: "rgb(16, 146, 26)",
|
|
40
|
+
value: "25"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
color: "rgb(252, 244, 100)",
|
|
44
|
+
value: "30"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
color: "rgb(200, 200, 2)",
|
|
48
|
+
value: "35"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
color: "rgb(140, 140, 0)",
|
|
52
|
+
value: "40"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
color: "rgb(254, 172, 172)",
|
|
56
|
+
value: "45"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
color: "rgb(254, 100, 92)",
|
|
60
|
+
value: "50"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
color: "rgb(238, 2, 48)",
|
|
64
|
+
value: "55"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
color: "rgb(212, 142, 254)",
|
|
68
|
+
value: "60"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
color: "rgb(170, 36, 250)",
|
|
72
|
+
value: "65"
|
|
73
|
+
}
|
|
74
|
+
];
|
|
75
|
+
return c(() => {
|
|
76
|
+
v.value = _.show, i?.on("toComponent", (e) => {
|
|
77
|
+
e.componentName === "RadarLegend" && (v.value = e.show);
|
|
78
|
+
});
|
|
79
|
+
}), (i, a) => m((l(), n("div", { class: o(["RadarLegend", { "RadarLegend--horizontal": !e.isVertical }]) }, [a[0] ||= r("div", { class: "RadarLegend-header" }, [r("div", { class: "RadarLegend-title" }, "雷达回波"), r("div", { class: "RadarLegend-unit" }, "单位:dBZ")], -1), r("div", h, [(l(), n(t, null, d(y, (e) => r("div", {
|
|
80
|
+
key: e.value,
|
|
81
|
+
class: "RadarLegend-colorList-color"
|
|
82
|
+
}, [r("div", {
|
|
83
|
+
class: "colorBox",
|
|
84
|
+
style: s({ backgroundColor: e.color })
|
|
85
|
+
}, null, 4), r("div", g, f(e.value), 1)])), 64))])], 2)), [[p, v.value]]);
|
|
86
|
+
}
|
|
87
|
+
}), [["__scopeId", "data-v-69db75e9"]]);
|
|
88
|
+
//#endregion
|
|
89
|
+
export { _ as t };
|
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
import "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
|
+
import { A as e, S as t, j as n, m as r } from "./component-HighWayFreeze-C_Y5P0wN.mjs";
|
|
3
|
+
import { a as i, n as a, r as o } from "./component-AqiMonitor-DoGm_NCt.mjs";
|
|
4
|
+
import "./component-ImageGeneration-9XdsjkaE.mjs";
|
|
5
|
+
import { n as s } from "./component-HighwayLiveAlarmNew-W2DKwrPk.mjs";
|
|
6
|
+
import { n as c } from "./component-HighWayEarlyWarningRed-D89gFa50.mjs";
|
|
7
|
+
import { t as ee } from "./component-RadarLegend-DQp5wjbz.mjs";
|
|
8
|
+
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as te, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, nextTick as _, normalizeClass as v, normalizeStyle as ne, onBeforeUnmount as re, onMounted as ie, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, vShow as w, watch as T, withCtx as E, withDirectives as D } from "vue";
|
|
9
|
+
//#region src/components/RadarShortTerm/RadarShortTerm.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var ae = {
|
|
11
|
+
class: "RadarShortTerm",
|
|
12
|
+
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
13
|
+
}, oe = { class: "RadarShortTerm-setting-panel" }, se = { class: "display-setting" }, ce = { class: "setting-row setting-row-pile" }, le = { class: "setting-pile-options" }, ue = { class: "RadarShortTerm-table" }, de = { class: "table-body" }, fe = ["onClick"], pe = { class: "name" }, me = ["onClick"], he = {
|
|
14
|
+
key: 0,
|
|
15
|
+
style: { color: "red" }
|
|
16
|
+
}, ge = { class: "pile-panel" }, _e = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "pile-body"
|
|
19
|
+
}, ve = ["onClick"], ye = {
|
|
20
|
+
key: 1,
|
|
21
|
+
class: "pile-empty"
|
|
22
|
+
}, be = { class: "RadarShortTerm-timeline" }, xe = ["title"], Se = { class: "timeline-slider-wrap" }, Ce = { class: "timeline-time-label" }, we = { class: "radarAxis-li" }, Te = ["onClick"], Ee = { class: "radarAxis-li-node-text" }, O = /* @__PURE__ */ a(/* @__PURE__ */ g({
|
|
23
|
+
__name: "RadarShortTerm",
|
|
24
|
+
props: {
|
|
25
|
+
appKey: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: ""
|
|
28
|
+
},
|
|
29
|
+
appSalt: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: ""
|
|
32
|
+
},
|
|
33
|
+
baseHttp: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: ""
|
|
36
|
+
},
|
|
37
|
+
ids: {
|
|
38
|
+
type: Object,
|
|
39
|
+
default: () => ({})
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
emits: [
|
|
43
|
+
"close",
|
|
44
|
+
"addDataTitle",
|
|
45
|
+
"removeDataTitle",
|
|
46
|
+
"showRadarLegend",
|
|
47
|
+
"toMapView",
|
|
48
|
+
"addImageAniArr",
|
|
49
|
+
"clearImgAniArr",
|
|
50
|
+
"setImgAniShowByIndex",
|
|
51
|
+
"changeLoading"
|
|
52
|
+
],
|
|
53
|
+
setup(a, { emit: g }) {
|
|
54
|
+
let O = a, k = g, A = b(!0), j = b(!1), M = b(0), N = b(null), P = b([]), F = b({}), I = b({}), L = b({}), R = b(""), z = b(null), B = b(!0), V = b(null), H = b(!0), U = b(null), W = b({
|
|
55
|
+
httpurl: "",
|
|
56
|
+
lngStart: void 0,
|
|
57
|
+
latStart: void 0,
|
|
58
|
+
lngEnd: void 0,
|
|
59
|
+
latEnd: void 0
|
|
60
|
+
}), G = b({
|
|
61
|
+
httpurl: "",
|
|
62
|
+
lngStart: void 0,
|
|
63
|
+
latStart: void 0,
|
|
64
|
+
lngEnd: void 0,
|
|
65
|
+
latEnd: void 0
|
|
66
|
+
});
|
|
67
|
+
ie(() => {
|
|
68
|
+
K(), V.value = setInterval(() => {
|
|
69
|
+
K();
|
|
70
|
+
}, 1e3 * 60 * 10);
|
|
71
|
+
}), re(() => {
|
|
72
|
+
Q(), clearInterval(V.value), V.value = null;
|
|
73
|
+
});
|
|
74
|
+
let K = async () => {
|
|
75
|
+
B.value = !0, await q(), P.value = (await De()).map((e) => {
|
|
76
|
+
let t = je(e), n = Me(e.zhflds || []);
|
|
77
|
+
return {
|
|
78
|
+
name: e.name,
|
|
79
|
+
tags: Ne(t),
|
|
80
|
+
piles: n
|
|
81
|
+
};
|
|
82
|
+
}), Ae(), B.value = !1;
|
|
83
|
+
}, q = async () => {
|
|
84
|
+
B.value = !0;
|
|
85
|
+
let e = await o({
|
|
86
|
+
appKey: O.appKey,
|
|
87
|
+
appSalt: O.appSalt,
|
|
88
|
+
id: O.ids.radar.id,
|
|
89
|
+
variables: {},
|
|
90
|
+
baseHttp: O.baseHttp,
|
|
91
|
+
reqType: O.ids.radar.reqType,
|
|
92
|
+
isFormData: O.ids.radar.isFormData
|
|
93
|
+
});
|
|
94
|
+
console.log("雷达", e.data.result);
|
|
95
|
+
let t = await o({
|
|
96
|
+
appKey: O.appKey,
|
|
97
|
+
appSalt: O.appSalt,
|
|
98
|
+
id: O.ids.historyRadar.id,
|
|
99
|
+
variables: {},
|
|
100
|
+
baseHttp: O.baseHttp,
|
|
101
|
+
reqType: O.ids.historyRadar.reqType,
|
|
102
|
+
isFormData: O.ids.historyRadar.isFormData
|
|
103
|
+
});
|
|
104
|
+
console.log("历史雷达", t.data.result), B.value = !1;
|
|
105
|
+
let n = J(e.data.result), r = J(t.data.result);
|
|
106
|
+
W.value = {
|
|
107
|
+
httpurl: n.httpurl,
|
|
108
|
+
...n.extent
|
|
109
|
+
}, G.value = {
|
|
110
|
+
httpurl: r.httpurl,
|
|
111
|
+
...r.extent
|
|
112
|
+
};
|
|
113
|
+
let i = r.frames.slice(-3).map((e, t) => ({
|
|
114
|
+
...e,
|
|
115
|
+
focarcast_time: e.observation_time,
|
|
116
|
+
_isHistory: !0,
|
|
117
|
+
_label: t === 0 ? "-2" : t === 1 ? "-1" : "现在",
|
|
118
|
+
_httpurl: (r.httpurl || "") + (e.observation_time || "").slice(0, 10).replaceAll("-", "") + "/"
|
|
119
|
+
})), a = n.frames.map((e, t) => ({
|
|
120
|
+
...e,
|
|
121
|
+
_isHistory: !1,
|
|
122
|
+
_label: `+${t + 1}`,
|
|
123
|
+
_httpurl: n.httpurl || ""
|
|
124
|
+
})), s = [...i, ...a];
|
|
125
|
+
L.value = {
|
|
126
|
+
ds: s,
|
|
127
|
+
httpurl: n.httpurl,
|
|
128
|
+
...r.extent
|
|
129
|
+
}, M.value = 2, A.value && (k("clearImgAniArr"), s.forEach((e) => {
|
|
130
|
+
let t = Ie(e);
|
|
131
|
+
t && k("addImageAniArr", { data: { imgArr: [t] } });
|
|
132
|
+
}), setTimeout(() => {
|
|
133
|
+
k("setImgAniShowByIndex", { index: M.value });
|
|
134
|
+
let e = s[M.value];
|
|
135
|
+
Le(e), k("showRadarLegend", !0);
|
|
136
|
+
}, 1e3));
|
|
137
|
+
}, De = async () => {
|
|
138
|
+
let e = await o({
|
|
139
|
+
appKey: O.appKey,
|
|
140
|
+
appSalt: O.appSalt,
|
|
141
|
+
id: O.ids.shortTerm.id,
|
|
142
|
+
variables: {},
|
|
143
|
+
baseHttp: O.baseHttp,
|
|
144
|
+
reqType: O.ids.shortTerm.reqType,
|
|
145
|
+
isFormData: O.ids.shortTerm.isFormData
|
|
146
|
+
});
|
|
147
|
+
return console.log("短时预报", e.data.result.ds), e.data.result.ds || [];
|
|
148
|
+
}, Oe = (e) => {
|
|
149
|
+
let t = String(e || "").split(",").map((e) => Number(e.trim()));
|
|
150
|
+
return {
|
|
151
|
+
latStart: t[0],
|
|
152
|
+
latEnd: t[1],
|
|
153
|
+
lngStart: t[2],
|
|
154
|
+
lngEnd: t[3]
|
|
155
|
+
};
|
|
156
|
+
}, J = (e) => {
|
|
157
|
+
let t = Array.isArray(e?.ds) ? e : e?.ds, n = Array.isArray(t?.ds) ? t.ds : [];
|
|
158
|
+
n = [...n].reverse();
|
|
159
|
+
let r = Oe(n[0]?.extendstr || ""), i = t?.httpUrl || t?.httpurl || "";
|
|
160
|
+
return {
|
|
161
|
+
frames: n,
|
|
162
|
+
httpurl: i,
|
|
163
|
+
extent: r
|
|
164
|
+
};
|
|
165
|
+
}, ke = u(() => Pe(P.value, (e) => Z(e.tags))), Y = u(() => L.value?.ds || []), X = u(() => Y.value.map((e) => {
|
|
166
|
+
let t = new Date(e.focarcast_time);
|
|
167
|
+
return `${String(t.getHours()).padStart(2, "0")}:${String(t.getMinutes()).padStart(2, "0")}`;
|
|
168
|
+
})), Ae = () => {
|
|
169
|
+
let e = ke.value.find((e) => Z(e.tags)), t = {}, n = {};
|
|
170
|
+
e && (t[e.name] = !0, n[e.name] = !0), F.value = t, I.value = n;
|
|
171
|
+
}, je = (e) => {
|
|
172
|
+
let t = e.zhflds || [];
|
|
173
|
+
return {
|
|
174
|
+
iswarnpre1h: t.some((e) => e?.iswarnpre1h === 1) ? 1 : 0,
|
|
175
|
+
iswarnpre2h: t.some((e) => e?.iswarnpre2h === 1) ? 1 : 0,
|
|
176
|
+
iswarnpre3h: t.some((e) => e?.iswarnpre3h === 1) ? 1 : 0
|
|
177
|
+
};
|
|
178
|
+
}, Me = (e) => Pe((e || []).map((e) => ({
|
|
179
|
+
pileNo: `${e.type || ""}${e.Name || ""}`,
|
|
180
|
+
isWarn: e?.iswarnpre1h === 1 || e?.iswarnpre2h === 1 || e?.iswarnpre3h === 1,
|
|
181
|
+
rain1h: e?.rain_1h ?? "-",
|
|
182
|
+
rain2h: e?.rain_2h ?? "-",
|
|
183
|
+
rain3h: e?.rain_3h ?? "-",
|
|
184
|
+
x: e.x,
|
|
185
|
+
y: e.y
|
|
186
|
+
})), (e) => e.isWarn), Ne = (e) => [
|
|
187
|
+
{
|
|
188
|
+
label: "未来R1h",
|
|
189
|
+
warn: e.iswarnpre1h === 1
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
label: "未来R2h",
|
|
193
|
+
warn: e.iswarnpre2h === 1
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
label: "未来R3h",
|
|
197
|
+
warn: e.iswarnpre3h === 1
|
|
198
|
+
}
|
|
199
|
+
], Z = (e) => e.some((e) => e.warn), Pe = (e, t) => [...e].sort((e, n) => Number(t(n)) - Number(t(e))), Fe = (e) => e.filter((e) => e.isWarn).length, Ie = (e) => {
|
|
200
|
+
if (!e) return null;
|
|
201
|
+
let t = e._isHistory ? G.value : W.value, n = String(e?._httpurl || t.httpurl || ""), r = String(e?.file_name || "");
|
|
202
|
+
return {
|
|
203
|
+
alt: "",
|
|
204
|
+
imgUrl: r.startsWith("http") ? r : `${n}${r.replace(/^\/+/, "")}`,
|
|
205
|
+
lngStart: t.lngStart,
|
|
206
|
+
latStart: t.latStart,
|
|
207
|
+
lngEnd: t.lngEnd,
|
|
208
|
+
latEnd: t.latEnd,
|
|
209
|
+
opacity: 1,
|
|
210
|
+
zIndex: 1e3,
|
|
211
|
+
otherData: { imgId: "radar_RadarShortTerm" }
|
|
212
|
+
};
|
|
213
|
+
}, Le = (e) => {
|
|
214
|
+
R.value && k("removeDataTitle", R.value), R.value = "雷达观测时间:" + c(e.focarcast_time).format("YYYY-MM-DD HH:mm "), k("addDataTitle", R.value);
|
|
215
|
+
}, Re = (e) => {
|
|
216
|
+
k("setImgAniShowByIndex", { index: e });
|
|
217
|
+
let t = Y.value[e];
|
|
218
|
+
Le(t);
|
|
219
|
+
}, Q = () => {
|
|
220
|
+
N.value &&= (clearInterval(N.value), null);
|
|
221
|
+
}, $ = () => {
|
|
222
|
+
j.value = !1, Q();
|
|
223
|
+
}, ze = () => {
|
|
224
|
+
X.value.length <= 1 || (j.value = !0, Q(), H.value && (U.value = M.value, k("changeLoading", !0)), N.value = setInterval(() => {
|
|
225
|
+
M.value = (M.value + 1) % X.value.length;
|
|
226
|
+
}, 1e3));
|
|
227
|
+
}, Be = () => {
|
|
228
|
+
if (j.value) {
|
|
229
|
+
$();
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
ze();
|
|
233
|
+
};
|
|
234
|
+
T(M, (e) => {
|
|
235
|
+
Re(e), H.value && U.value !== null && e === U.value && (H.value = !1, U.value = null, k("changeLoading", !1));
|
|
236
|
+
}), T(M, () => {
|
|
237
|
+
_(() => {
|
|
238
|
+
let e = z.value;
|
|
239
|
+
if (!e) return;
|
|
240
|
+
let t = e.querySelectorAll(".radarAxis-li")[M.value];
|
|
241
|
+
t && t.scrollIntoView({
|
|
242
|
+
behavior: "smooth",
|
|
243
|
+
inline: "center",
|
|
244
|
+
block: "nearest"
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
let Ve = () => {
|
|
249
|
+
$();
|
|
250
|
+
}, He = async () => {
|
|
251
|
+
if (!A.value) {
|
|
252
|
+
k("clearImgAniArr"), k("removeDataTitle", R.value), k("showRadarLegend", !1), $();
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
B.value = !0, await q(), B.value = !1;
|
|
256
|
+
}, Ue = (e) => {
|
|
257
|
+
let t = !!F.value[e];
|
|
258
|
+
F.value[e] = !t, t || (I.value[e] = !0);
|
|
259
|
+
}, We = (e) => {
|
|
260
|
+
I.value[e] = !I.value[e];
|
|
261
|
+
}, Ge = () => {
|
|
262
|
+
k("close", "RadarShortTerm");
|
|
263
|
+
}, Ke = (e) => {
|
|
264
|
+
k("toMapView", {
|
|
265
|
+
lng: Number(e.x),
|
|
266
|
+
lat: Number(e.y),
|
|
267
|
+
zoom: 11
|
|
268
|
+
});
|
|
269
|
+
};
|
|
270
|
+
return (a, o) => {
|
|
271
|
+
let c = s, u = r, g = ee, _ = i;
|
|
272
|
+
return D((y(), f("div", ae, [
|
|
273
|
+
p("div", { class: "RadarShortTerm-head" }, [p("div", { class: "RadarShortTerm-head-top" }, [o[1] ||= p("div", null, "雷达短临预报", -1), p("div", { class: "head-actions" }, [p("div", {
|
|
274
|
+
class: "closeBtn",
|
|
275
|
+
onClick: Ge,
|
|
276
|
+
title: "关闭"
|
|
277
|
+
})])]), o[2] ||= p("img", {
|
|
278
|
+
class: "RadarShortTerm-head-line",
|
|
279
|
+
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",
|
|
280
|
+
alt: ""
|
|
281
|
+
}, null, -1)]),
|
|
282
|
+
p("div", oe, [p("div", se, [p("div", ce, [o[4] ||= p("span", { class: "setting-label" }, "雷达展示:", -1), p("div", le, [h(c, {
|
|
283
|
+
modelValue: A.value,
|
|
284
|
+
"onUpdate:modelValue": o[0] ||= (e) => A.value = e,
|
|
285
|
+
class: "pile-checkbox",
|
|
286
|
+
onChange: He
|
|
287
|
+
}, {
|
|
288
|
+
default: E(() => [...o[3] ||= [m(" 显示 ", -1)]]),
|
|
289
|
+
_: 1
|
|
290
|
+
}, 8, ["modelValue"])])])])]),
|
|
291
|
+
p("div", ue, [o[7] ||= p("div", { class: "table-head" }, [
|
|
292
|
+
p("span", null, "高速名称"),
|
|
293
|
+
p("span", null, "状态要素"),
|
|
294
|
+
p("span", { class: "head-arrow" })
|
|
295
|
+
], -1), p("div", de, [(y(!0), f(l, null, x(ke.value, (e) => (y(), f("div", {
|
|
296
|
+
class: "table-row",
|
|
297
|
+
key: e.name
|
|
298
|
+
}, [
|
|
299
|
+
p("div", {
|
|
300
|
+
class: "table-row-main",
|
|
301
|
+
onClick: (t) => Ue(e.name)
|
|
302
|
+
}, [
|
|
303
|
+
p("span", pe, S(e.name), 1),
|
|
304
|
+
p("div", { class: v(["status-tags", { "has-warn": Z(e.tags) }]) }, [(y(!0), f(l, null, x(e.tags, (t) => (y(), f("span", {
|
|
305
|
+
class: v(["status-tag", { warn: t.warn }]),
|
|
306
|
+
key: `${e.name}-${t.label}`
|
|
307
|
+
}, [p("span", null, S(t.label), 1)], 2))), 128))], 2),
|
|
308
|
+
p("span", {
|
|
309
|
+
class: v(["expand-arrow", { expanded: F.value[e.name] }]),
|
|
310
|
+
"aria-hidden": "true"
|
|
311
|
+
}, [h(u, null, {
|
|
312
|
+
default: E(() => [h(C(t))]),
|
|
313
|
+
_: 1
|
|
314
|
+
})], 2)
|
|
315
|
+
], 8, fe),
|
|
316
|
+
D(p("div", {
|
|
317
|
+
class: "pile-title",
|
|
318
|
+
onClick: (t) => We(e.name)
|
|
319
|
+
}, [p("span", null, [o[5] ||= m(" 桩号数据 ", -1), Fe(e.piles) > 0 ? (y(), f("span", he, " (报警数量:" + S(Fe(e.piles)) + "个)", 1)) : te("", !0)]), p("span", { class: v(["panel-arrow", { expanded: I.value[e.name] }]) }, [h(u, null, {
|
|
320
|
+
default: E(() => [h(C(t))]),
|
|
321
|
+
_: 1
|
|
322
|
+
})], 2)], 8, me), [[w, F.value[e.name]]]),
|
|
323
|
+
D(p("div", ge, [o[6] ||= p("div", { class: "pile-head" }, [
|
|
324
|
+
p("span", null, "桩号"),
|
|
325
|
+
p("span", null, "未来R1h"),
|
|
326
|
+
p("span", null, "未来R2h"),
|
|
327
|
+
p("span", null, "未来R3h")
|
|
328
|
+
], -1), e.piles.length ? (y(), f("div", _e, [(y(!0), f(l, null, x(e.piles, (e) => (y(), f("div", {
|
|
329
|
+
class: v(["pile-row", { "is-warn": e.isWarn }]),
|
|
330
|
+
key: e.pileNo,
|
|
331
|
+
onClick: (t) => Ke(e)
|
|
332
|
+
}, [
|
|
333
|
+
p("span", null, S(e.pileNo), 1),
|
|
334
|
+
p("span", null, S(e.rain1h), 1),
|
|
335
|
+
p("span", null, S(e.rain2h), 1),
|
|
336
|
+
p("span", null, S(e.rain3h), 1)
|
|
337
|
+
], 10, ve))), 128))])) : (y(), f("div", ye, "暂无数据"))], 512), [[w, F.value[e.name] && I.value[e.name]]])
|
|
338
|
+
]))), 128))])]),
|
|
339
|
+
D(h(g, {
|
|
340
|
+
show: !0,
|
|
341
|
+
isVertical: !1,
|
|
342
|
+
class: "RadarShortTerm-legend"
|
|
343
|
+
}, null, 512), [[w, A.value]]),
|
|
344
|
+
D(p("div", be, [p("button", {
|
|
345
|
+
type: "button",
|
|
346
|
+
class: "timeline-play-btn",
|
|
347
|
+
title: j.value ? "暂停" : "播放",
|
|
348
|
+
onClick: Be
|
|
349
|
+
}, [h(u, null, {
|
|
350
|
+
default: E(() => [j.value ? (y(), d(C(e), { key: 0 })) : (y(), d(C(n), { key: 1 }))]),
|
|
351
|
+
_: 1
|
|
352
|
+
})], 8, xe), p("div", Se, [p("span", Ce, S(X.value[M.value] || ""), 1), p("div", {
|
|
353
|
+
class: "radarAxis",
|
|
354
|
+
ref_key: "ref_radarAxis",
|
|
355
|
+
ref: z
|
|
356
|
+
}, [(y(!0), f(l, null, x(Y.value, (e, t) => (y(), f("div", we, [p("div", {
|
|
357
|
+
class: "radarAxis-li-node",
|
|
358
|
+
onClick: (e) => (M.value = Number(t), Ve())
|
|
359
|
+
}, [
|
|
360
|
+
p("i", { style: ne({ backgroundColor: e._isHistory ? "" : "#ca9e64" }) }, null, 4),
|
|
361
|
+
D(p("span", null, [...o[8] ||= [p("i", null, null, -1)]], 512), [[w, t === M.value]]),
|
|
362
|
+
p("div", Ee, [p("b", null, S(e._label), 1)])
|
|
363
|
+
], 8, Te), (y(), f(l, null, x(4, (n) => D(p("div", {
|
|
364
|
+
class: "radarAxis-li-point",
|
|
365
|
+
key: n,
|
|
366
|
+
style: ne({ backgroundColor: e._isHistory ? "" : "#ca9e64" })
|
|
367
|
+
}, null, 4), [[w, t !== Y.value.length - 1]])), 64))]))), 256))], 512)])], 512), [[w, A.value]])
|
|
368
|
+
])), [[_, B.value]]);
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
}), [["__scopeId", "data-v-ef868a08"]]);
|
|
372
|
+
//#endregion
|
|
373
|
+
export { O as t };
|
|
@@ -2,7 +2,7 @@ import "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
|
2
2
|
import { B as e, H as t, N as n, P as r, U as i, V as a, et as o, h as s, m as c, o as l, s as u, y as d } from "./component-HighWayFreeze-C_Y5P0wN.mjs";
|
|
3
3
|
import { C as f, D as p, E as m, Lt as h, Mt as g, Nt as _, Tt as v, _ as y, b, c as ee, g as x, h as S, in as te, j as C, n as w, p as ne, un as T, v as E, w as D, x as O, y as k } from "./component-AqiMonitor-DoGm_NCt.mjs";
|
|
4
4
|
import { a as A } from "./component-HighwayLiveAlarm-DMdnrD3c.mjs";
|
|
5
|
-
import { n as re } from "./component-ImageGeneration-
|
|
5
|
+
import { n as re } from "./component-ImageGeneration-9XdsjkaE.mjs";
|
|
6
6
|
import "./component-HighWayEarlyWarningRed-D89gFa50.mjs";
|
|
7
7
|
import { Fragment as j, Transition as M, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as I, createElementVNode as L, createSlots as ie, createTextVNode as R, createVNode as z, defineComponent as B, getCurrentInstance as ae, h as oe, inject as V, isRef as H, mergeProps as U, nextTick as se, normalizeClass as W, normalizeStyle as G, onBeforeUnmount as K, onMounted as q, onScopeDispose as ce, openBlock as J, provide as le, ref as Y, renderSlot as X, resolveDynamicComponent as ue, toDisplayString as de, unref as Z, useSlots as fe, vShow as pe, watch as Q, watchEffect as me, withCtx as $, withDirectives as he } from "vue";
|
|
8
8
|
//#region node_modules/element-plus/es/hooks/use-draggable/index.mjs
|