nxd-plugin 1.7.2 → 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-KR4OZB7F.mjs → component-HighwayLiveAlarmNew-W2DKwrPk.mjs} +241 -232
- package/dist/chunks/{component-ImageGeneration-Ch_ajmOP.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-DbRVspkX.mjs → component-ServiceMaterialsBtn-DjUo4Hsx.mjs} +1 -1
- package/dist/chunks/{component-YCHome-CJTR9axy.mjs → component-YCHome-B2wOG1EV.mjs} +474 -445
- package/dist/chunks/{component-YCLogin-BJEVO5e9.mjs → component-YCLogin-DWhvv-rf.mjs} +2 -2
- package/dist/chunks/{component-YCLoginNew-CWtDmJk-.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-Dxq3c_j-.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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
2
|
import { I as e, K as t, L as n, P as r, Q as i, S as a, c as o, d as s, et as c, f as l, l as u, m as d, n as f, r as p, u as m } from "./component-HighWayFreeze-C_Y5P0wN.mjs";
|
|
3
|
-
import { C as h, D as g, E as _, F as v, Ht as y, I as b, Lt as ee, Mt as x, P as S, a as te, f as C, h as w, j as T, n as E, r as ne, z as
|
|
4
|
-
import { a as
|
|
3
|
+
import { C as h, D as g, E as _, F as v, Ht as y, I as b, Lt as ee, Mt as x, P as S, a as te, f as C, h as w, j as T, n as E, r as ne, z as D } from "./component-AqiMonitor-DoGm_NCt.mjs";
|
|
4
|
+
import { a as re, i as ie, n as ae, o as oe, r as se } from "./component-HighwayLiveAlarm-DMdnrD3c.mjs";
|
|
5
5
|
import "./component-HighWayEarlyWarningRed-D89gFa50.mjs";
|
|
6
|
-
import { Fragment as O, computed as k, createBlock as ce, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createTextVNode as N, createVNode as P, defineComponent as F, getCurrentInstance as le, inject as I, isRef as ue, mergeProps as L, nextTick as de, normalizeClass as R, normalizeStyle as fe, onBeforeUnmount as pe, onMounted as me, openBlock as z, provide as he, ref as B, renderList as V, renderSlot as
|
|
6
|
+
import { Fragment as O, computed as k, createBlock as ce, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createTextVNode as N, createVNode as P, defineComponent as F, getCurrentInstance as le, inject as I, isRef as ue, mergeProps as L, nextTick as de, normalizeClass as R, normalizeStyle as fe, onBeforeUnmount as pe, onMounted as me, openBlock as z, provide as he, ref as B, renderList as V, renderSlot as H, resolveDynamicComponent as ge, toDisplayString as U, toRaw as W, toRefs as _e, unref as G, useSlots as ve, vModelCheckbox as K, vShow as q, watch as ye, withCtx as J, withDirectives as Y, withModifiers as X } from "vue";
|
|
7
7
|
//#region node_modules/element-plus/es/components/checkbox/src/checkbox.mjs
|
|
8
|
-
var
|
|
8
|
+
var be = {
|
|
9
9
|
modelValue: {
|
|
10
10
|
type: [
|
|
11
11
|
Number,
|
|
@@ -71,7 +71,7 @@ var xe = {
|
|
|
71
71
|
},
|
|
72
72
|
ariaLabel: String,
|
|
73
73
|
...n(["ariaControls"])
|
|
74
|
-
},
|
|
74
|
+
}, xe = {
|
|
75
75
|
[c]: (e) => y(e) || S(e) || T(e),
|
|
76
76
|
change: (e) => y(e) || S(e) || T(e)
|
|
77
77
|
}, Z = Symbol("checkboxGroupContextKey"), Se = _({
|
|
@@ -123,7 +123,7 @@ var xe = {
|
|
|
123
123
|
isDisabled: m(k(() => n === void 0 ? r?.disabled ?? i.value : n.disabled?.value || i.value)),
|
|
124
124
|
isLimitDisabled: i
|
|
125
125
|
};
|
|
126
|
-
},
|
|
126
|
+
}, Ee = (e, { model: t, isLimitExceeded: n, hasOwnLabel: r, isDisabled: a, isLabeledByFormItem: s }) => {
|
|
127
127
|
let c = I(Z, void 0), { formItem: l } = o(), { emit: u } = le();
|
|
128
128
|
function d(t) {
|
|
129
129
|
return [
|
|
@@ -148,13 +148,13 @@ var xe = {
|
|
|
148
148
|
].includes(t.value)), await de(), f(t.value, i)));
|
|
149
149
|
}
|
|
150
150
|
let g = k(() => c?.validateEvent || e.validateEvent);
|
|
151
|
-
return
|
|
151
|
+
return ye(() => e.modelValue, () => {
|
|
152
152
|
g.value && l?.validate("change").catch((e) => h(e));
|
|
153
153
|
}), {
|
|
154
154
|
handleChange: p,
|
|
155
155
|
onClickRoot: m
|
|
156
156
|
};
|
|
157
|
-
},
|
|
157
|
+
}, Q = (e) => {
|
|
158
158
|
let t = B(!1), { emit: n, vnode: r } = le(), i = I(Z, void 0), a = k(() => b(i) === !1), o = B(!1), s = k(() => {
|
|
159
159
|
let e = r.props ?? {};
|
|
160
160
|
return "modelValue" in e || "model-value" in e;
|
|
@@ -171,10 +171,10 @@ var xe = {
|
|
|
171
171
|
isGroup: a,
|
|
172
172
|
isLimitExceeded: o
|
|
173
173
|
};
|
|
174
|
-
},
|
|
174
|
+
}, $ = (e, t, { model: n }) => {
|
|
175
175
|
let r = I(Z, void 0), i = B(!1), a = k(() => v(e.value) ? e.label : e.value), o = k(() => {
|
|
176
176
|
let t = n.value;
|
|
177
|
-
return T(t) ? t : x(t) ? ee(a.value) ? t.map(
|
|
177
|
+
return T(t) ? t : x(t) ? ee(a.value) ? t.map(W).some((e) => D(e, a.value)) : t.map(W).includes(a.value) : t == null ? !!t : t === e.trueValue || t === e.trueLabel;
|
|
178
178
|
});
|
|
179
179
|
return {
|
|
180
180
|
checkboxButtonSize: s(k(() => r?.size?.value), { prop: !0 }),
|
|
@@ -185,14 +185,14 @@ var xe = {
|
|
|
185
185
|
actualValue: a
|
|
186
186
|
};
|
|
187
187
|
}, De = (e, t) => {
|
|
188
|
-
let { formItem: n } = o(), { model: r, isGroup: i, isLimitExceeded: a } =
|
|
188
|
+
let { formItem: n } = o(), { model: r, isGroup: i, isLimitExceeded: a } = Q(e), { isFocused: s, isChecked: c, checkboxButtonSize: l, checkboxSize: d, hasOwnLabel: f, actualValue: p } = $(e, t, { model: r }), { isDisabled: m } = Te({
|
|
189
189
|
model: r,
|
|
190
190
|
isChecked: c
|
|
191
191
|
}), { inputId: h, isLabeledByFormItem: g } = u(e, {
|
|
192
192
|
formItemContext: n,
|
|
193
193
|
disableIdGeneration: f,
|
|
194
194
|
disableIdManagement: i
|
|
195
|
-
}), { handleChange: _, onClickRoot: y } =
|
|
195
|
+
}), { handleChange: _, onClickRoot: y } = Ee(e, {
|
|
196
196
|
model: r,
|
|
197
197
|
isLimitExceeded: a,
|
|
198
198
|
hasOwnLabel: f,
|
|
@@ -204,19 +204,19 @@ var xe = {
|
|
|
204
204
|
x(r.value) && !r.value.includes(p.value) ? r.value.push(p.value) : r.value = e.trueValue ?? e.trueLabel ?? !0;
|
|
205
205
|
}
|
|
206
206
|
e.checked && t();
|
|
207
|
-
})(),
|
|
207
|
+
})(), re({
|
|
208
208
|
from: "label act as value",
|
|
209
209
|
replacement: "value",
|
|
210
210
|
version: "3.0.0",
|
|
211
211
|
scope: "el-checkbox",
|
|
212
212
|
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
213
|
-
}, k(() => i.value && v(e.value))),
|
|
213
|
+
}, k(() => i.value && v(e.value))), re({
|
|
214
214
|
from: "true-label",
|
|
215
215
|
replacement: "true-value",
|
|
216
216
|
version: "3.0.0",
|
|
217
217
|
scope: "el-checkbox",
|
|
218
218
|
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
219
|
-
}, k(() => !!e.trueLabel)),
|
|
219
|
+
}, k(() => !!e.trueLabel)), re({
|
|
220
220
|
from: "false-label",
|
|
221
221
|
replacement: "false-value",
|
|
222
222
|
version: "3.0.0",
|
|
@@ -245,10 +245,10 @@ var xe = {
|
|
|
245
245
|
], ke = /* @__PURE__ */ F({
|
|
246
246
|
name: "ElCheckbox",
|
|
247
247
|
__name: "checkbox",
|
|
248
|
-
props:
|
|
249
|
-
emits:
|
|
248
|
+
props: be,
|
|
249
|
+
emits: xe,
|
|
250
250
|
setup(e) {
|
|
251
|
-
let t = e, { inputId: n, isLabeledByFormItem: r, isChecked: i, isDisabled: a, isFocused: o, checkboxSize: s, hasOwnLabel: c, model: l, actualValue: u, handleChange: d, onClickRoot: f } = De(t,
|
|
251
|
+
let t = e, { inputId: n, isLabeledByFormItem: r, isChecked: i, isDisabled: a, isFocused: o, checkboxSize: s, hasOwnLabel: c, model: l, actualValue: u, handleChange: d, onClickRoot: f } = De(t, ve()), p = k(() => t.trueValue || t.falseValue || t.trueLabel || t.falseLabel ? {
|
|
252
252
|
"true-value": t.trueValue ?? t.trueLabel ?? !0,
|
|
253
253
|
"false-value": t.falseValue ?? t.falseLabel ?? !1
|
|
254
254
|
} : { value: u.value }), m = w("checkbox"), h = k(() => [
|
|
@@ -264,32 +264,32 @@ var xe = {
|
|
|
264
264
|
m.is("indeterminate", t.indeterminate),
|
|
265
265
|
m.is("focus", o.value)
|
|
266
266
|
]);
|
|
267
|
-
return (t, i) => (z(), ce(
|
|
268
|
-
for: !
|
|
267
|
+
return (t, i) => (z(), ce(ge(!G(c) && G(r) ? "span" : "label"), {
|
|
268
|
+
for: !G(c) && G(r) ? null : G(n),
|
|
269
269
|
class: R(h.value),
|
|
270
270
|
"aria-controls": e.indeterminate ? e.ariaControls : null,
|
|
271
271
|
"aria-checked": e.indeterminate ? "mixed" : void 0,
|
|
272
272
|
"aria-label": e.ariaLabel,
|
|
273
|
-
onClick:
|
|
273
|
+
onClick: G(f)
|
|
274
274
|
}, {
|
|
275
275
|
default: J(() => [M("span", { class: R(g.value) }, [Y(M("input", L({
|
|
276
|
-
id:
|
|
276
|
+
id: G(n),
|
|
277
277
|
"onUpdate:modelValue": i[0] ||= (e) => ue(l) ? l.value = e : null,
|
|
278
|
-
class:
|
|
278
|
+
class: G(m).e("original"),
|
|
279
279
|
type: "checkbox",
|
|
280
280
|
indeterminate: e.indeterminate,
|
|
281
281
|
name: e.name,
|
|
282
282
|
tabindex: e.tabindex,
|
|
283
|
-
disabled:
|
|
283
|
+
disabled: G(a)
|
|
284
284
|
}, p.value, {
|
|
285
|
-
onChange: i[1] ||= (...e) =>
|
|
285
|
+
onChange: i[1] ||= (...e) => G(d) && G(d)(...e),
|
|
286
286
|
onFocus: i[2] ||= (e) => o.value = !0,
|
|
287
287
|
onBlur: i[3] ||= (e) => o.value = !1,
|
|
288
|
-
onClick: i[4] ||=
|
|
289
|
-
}), null, 16, Oe), [[
|
|
288
|
+
onClick: i[4] ||= X(() => {}, ["stop"])
|
|
289
|
+
}), null, 16, Oe), [[K, G(l)]]), M("span", { class: R(G(m).e("inner")) }, null, 2)], 2), G(c) ? (z(), j("span", {
|
|
290
290
|
key: 0,
|
|
291
|
-
class: R(
|
|
292
|
-
}, [
|
|
291
|
+
class: R(G(m).e("label"))
|
|
292
|
+
}, [H(t.$slots, "default"), t.$slots.default ? A("v-if", !0) : (z(), j(O, { key: 0 }, [N(U(e.label), 1)], 64))], 2)) : A("v-if", !0)]),
|
|
293
293
|
_: 3
|
|
294
294
|
}, 8, [
|
|
295
295
|
"for",
|
|
@@ -307,10 +307,10 @@ var xe = {
|
|
|
307
307
|
], je = /* @__PURE__ */ F({
|
|
308
308
|
name: "ElCheckboxButton",
|
|
309
309
|
__name: "checkbox-button",
|
|
310
|
-
props:
|
|
311
|
-
emits:
|
|
310
|
+
props: be,
|
|
311
|
+
emits: xe,
|
|
312
312
|
setup(e) {
|
|
313
|
-
let t = e, { isFocused: n, isChecked: r, isDisabled: i, checkboxButtonSize: a, model: o, actualValue: s, handleChange: c } = De(t,
|
|
313
|
+
let t = e, { isFocused: n, isChecked: r, isDisabled: i, checkboxButtonSize: a, model: o, actualValue: s, handleChange: c } = De(t, ve()), l = k(() => t.trueValue || t.falseValue || t.trueLabel || t.falseLabel ? {
|
|
314
314
|
"true-value": t.trueValue ?? t.trueLabel ?? !0,
|
|
315
315
|
"false-value": t.falseValue ?? t.falseLabel ?? !1
|
|
316
316
|
} : { value: s.value }), u = I(Z, void 0), d = w("checkbox"), f = k(() => {
|
|
@@ -330,21 +330,21 @@ var xe = {
|
|
|
330
330
|
]);
|
|
331
331
|
return (t, a) => (z(), j("label", { class: R(p.value) }, [Y(M("input", L({
|
|
332
332
|
"onUpdate:modelValue": a[0] ||= (e) => ue(o) ? o.value = e : null,
|
|
333
|
-
class:
|
|
333
|
+
class: G(d).be("button", "original"),
|
|
334
334
|
type: "checkbox",
|
|
335
335
|
name: e.name,
|
|
336
336
|
tabindex: e.tabindex,
|
|
337
|
-
disabled:
|
|
337
|
+
disabled: G(i)
|
|
338
338
|
}, l.value, {
|
|
339
|
-
onChange: a[1] ||= (...e) =>
|
|
339
|
+
onChange: a[1] ||= (...e) => G(c) && G(c)(...e),
|
|
340
340
|
onFocus: a[2] ||= (e) => n.value = !0,
|
|
341
341
|
onBlur: a[3] ||= (e) => n.value = !1,
|
|
342
|
-
onClick: a[4] ||=
|
|
343
|
-
}), null, 16, Ae), [[
|
|
342
|
+
onClick: a[4] ||= X(() => {}, ["stop"])
|
|
343
|
+
}), null, 16, Ae), [[K, G(o)]]), t.$slots.default || e.label ? (z(), j("span", {
|
|
344
344
|
key: 0,
|
|
345
|
-
class: R(
|
|
346
|
-
style: fe(
|
|
347
|
-
}, [
|
|
345
|
+
class: R(G(d).be("button", "inner")),
|
|
346
|
+
style: fe(G(r) ? f.value : void 0)
|
|
347
|
+
}, [H(t.$slots, "default", {}, () => [N(U(e.label), 1)])], 6)) : A("v-if", !0)], 2));
|
|
348
348
|
}
|
|
349
349
|
}), Me = /* @__PURE__ */ F({
|
|
350
350
|
name: "ElCheckboxGroup",
|
|
@@ -380,7 +380,7 @@ var xe = {
|
|
|
380
380
|
};
|
|
381
381
|
}, b = k(() => r.type === "button" ? je : ke);
|
|
382
382
|
return he(Z, {
|
|
383
|
-
...t(
|
|
383
|
+
...t(_e(r), [
|
|
384
384
|
"size",
|
|
385
385
|
"min",
|
|
386
386
|
"max",
|
|
@@ -391,16 +391,16 @@ var xe = {
|
|
|
391
391
|
disabled: l,
|
|
392
392
|
modelValue: _,
|
|
393
393
|
changeEvent: g
|
|
394
|
-
}),
|
|
395
|
-
r.validateEvent && !
|
|
396
|
-
}), (t, n) => (z(), ce(
|
|
397
|
-
id:
|
|
398
|
-
class: R(
|
|
394
|
+
}), ye(() => r.modelValue, (e, t) => {
|
|
395
|
+
r.validateEvent && !D(e, t) && d?.validate("change").catch((e) => h(e));
|
|
396
|
+
}), (t, n) => (z(), ce(ge(e.tag), {
|
|
397
|
+
id: G(f),
|
|
398
|
+
class: R(G(s).b("group")),
|
|
399
399
|
role: "group",
|
|
400
|
-
"aria-label":
|
|
401
|
-
"aria-labelledby":
|
|
400
|
+
"aria-label": G(p) ? void 0 : e.ariaLabel || "checkbox-group",
|
|
401
|
+
"aria-labelledby": G(p) ? G(d)?.labelId : void 0
|
|
402
402
|
}, {
|
|
403
|
-
default: J(() => [
|
|
403
|
+
default: J(() => [H(t.$slots, "default", {}, () => [(z(!0), j(O, null, V(e.options, (e, t) => (z(), ce(ge(b.value), L({ key: t }, { ref_for: !0 }, y(e)), null, 16))), 128))])]),
|
|
404
404
|
_: 3
|
|
405
405
|
}, 8, [
|
|
406
406
|
"id",
|
|
@@ -422,13 +422,16 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
422
422
|
}, Ie = {
|
|
423
423
|
key: 0,
|
|
424
424
|
class: "voice-permission-mask"
|
|
425
|
-
}, Le = { class: "HighwayLiveAlarmNew-head" }, Re = { class: "HighwayLiveAlarmNew-head-top" }, ze = { class: "head-actions" }, Be = { class: "view-switch" }, Ve = { class: "HighwayLiveAlarmNew-chart" }, He = { class: "HighwayLiveAlarmNew-setting-panel" }, Ue = { class: "display-setting" }, We = {
|
|
425
|
+
}, Le = { class: "HighwayLiveAlarmNew-head" }, Re = { class: "HighwayLiveAlarmNew-head-top" }, ze = { class: "head-actions" }, Be = { class: "view-switch" }, Ve = { class: "HighwayLiveAlarmNew-chart" }, He = { class: "HighwayLiveAlarmNew-setting-panel" }, Ue = { class: "display-setting" }, We = { style: { display: "flex" } }, Ge = {
|
|
426
|
+
class: "setting-row setting-row-pile",
|
|
427
|
+
style: { flex: "1" }
|
|
428
|
+
}, Ke = { class: "setting-pile-options" }, qe = {
|
|
429
|
+
class: "setting-row setting-row-pile",
|
|
430
|
+
style: { flex: "1" }
|
|
431
|
+
}, Je = { class: "setting-pile-options" }, Ye = { class: "setting-row" }, Xe = { class: "setting-row" }, Ze = { class: "HighwayLiveAlarmNew-table" }, Qe = { class: "table-body" }, $e = ["onClick"], et = { class: "name" }, tt = ["onClick"], nt = {
|
|
426
432
|
key: 0,
|
|
427
433
|
style: { color: "red" }
|
|
428
|
-
},
|
|
429
|
-
key: 0,
|
|
430
|
-
class: "warn-count"
|
|
431
|
-
}, at = { class: "metric-head" }, ot = { class: "label" }, st = {
|
|
434
|
+
}, rt = { class: "station-panel" }, it = { class: "station-head" }, at = { class: "metric-head" }, ot = { class: "label" }, st = {
|
|
432
435
|
key: 0,
|
|
433
436
|
class: "warn-count"
|
|
434
437
|
}, ct = { class: "metric-head" }, lt = { class: "label" }, ut = {
|
|
@@ -437,22 +440,25 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
437
440
|
}, dt = { class: "metric-head" }, ft = { class: "label" }, pt = {
|
|
438
441
|
key: 0,
|
|
439
442
|
class: "warn-count"
|
|
440
|
-
}, mt = {
|
|
443
|
+
}, mt = { class: "metric-head" }, ht = { class: "label" }, gt = {
|
|
444
|
+
key: 0,
|
|
445
|
+
class: "warn-count"
|
|
446
|
+
}, _t = {
|
|
441
447
|
key: 0,
|
|
442
448
|
class: "station-body"
|
|
443
|
-
},
|
|
449
|
+
}, vt = ["onClick"], yt = { class: "metric-value" }, bt = { class: "metric-value" }, xt = { class: "metric-value" }, St = { class: "metric-value" }, Ct = {
|
|
444
450
|
key: 1,
|
|
445
451
|
class: "station-empty"
|
|
446
|
-
},
|
|
452
|
+
}, wt = ["onClick"], Tt = {
|
|
447
453
|
key: 0,
|
|
448
454
|
style: { color: "red" }
|
|
449
|
-
},
|
|
455
|
+
}, Et = { class: "pile-panel" }, Dt = {
|
|
450
456
|
key: 0,
|
|
451
457
|
class: "pile-body"
|
|
452
|
-
},
|
|
458
|
+
}, Ot = ["onClick"], kt = {
|
|
453
459
|
key: 1,
|
|
454
460
|
class: "pile-empty"
|
|
455
|
-
},
|
|
461
|
+
}, At = "当前高速无任何报警,请放心出行。", jt = /* @__PURE__ */ E(/* @__PURE__ */ F({
|
|
456
462
|
__name: "HighwayLiveAlarmNew",
|
|
457
463
|
props: {
|
|
458
464
|
appKey: {
|
|
@@ -486,7 +492,8 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
486
492
|
"removeMarker",
|
|
487
493
|
"addDataTitle",
|
|
488
494
|
"removeDataTitle",
|
|
489
|
-
"toMapView"
|
|
495
|
+
"toMapView",
|
|
496
|
+
"toComponent"
|
|
490
497
|
],
|
|
491
498
|
setup(e, { emit: t }) {
|
|
492
499
|
let n = e, r = t, i = B([]), o = B([]), s = {
|
|
@@ -502,42 +509,42 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
502
509
|
field: "visibility_min",
|
|
503
510
|
unit: "km"
|
|
504
511
|
}
|
|
505
|
-
}, c = B(""), l = B(!1), u = B(null), m = B(null), h = B("table"), g = B("降水"), _ = B(!0), v = B(!
|
|
506
|
-
let
|
|
507
|
-
|
|
508
|
-
let
|
|
509
|
-
if (!
|
|
510
|
-
|
|
512
|
+
}, c = B(""), l = B(!1), u = B(null), m = B(null), h = B("table"), g = B("降水"), _ = B(!0), v = B(!0), y = B(!1), b = B("全部"), ee = B(["全部"]), x = B("自动站观测时间:--"), S = B({}), C = B([]), w = B({}), T = B({}), E = B({}), D = null, re = k(() => c.value === At ? "#52c41a" : "#ff4d4f"), oe = (e) => (e || []).filter((e) => X(e)).length, F = () => D || (D = new Audio(Pe), D.preload = "auto", D), le = () => new Promise((e) => {
|
|
513
|
+
let t = F();
|
|
514
|
+
t.volume = 0, t.currentTime = 0;
|
|
515
|
+
let n = t.play();
|
|
516
|
+
if (!n) {
|
|
517
|
+
y.value = !0, e();
|
|
511
518
|
return;
|
|
512
519
|
}
|
|
513
|
-
|
|
514
|
-
|
|
520
|
+
n.then(() => {
|
|
521
|
+
t.pause(), t.volume = 1, e();
|
|
515
522
|
}).catch(() => {
|
|
516
|
-
|
|
523
|
+
y.value = !0, e();
|
|
517
524
|
});
|
|
518
|
-
},
|
|
519
|
-
let e =
|
|
525
|
+
}), I = () => {
|
|
526
|
+
let e = F();
|
|
520
527
|
e.volume = 1, e.currentTime = 0, e.play().catch(() => {});
|
|
521
|
-
},
|
|
522
|
-
let e =
|
|
528
|
+
}, ue = () => {
|
|
529
|
+
let e = F();
|
|
523
530
|
e.volume = 0, e.currentTime = 0;
|
|
524
531
|
let t = e.play();
|
|
525
532
|
if (!t) {
|
|
526
|
-
|
|
533
|
+
y.value = !1;
|
|
527
534
|
return;
|
|
528
535
|
}
|
|
529
536
|
t.then(() => {
|
|
530
|
-
e.pause(),
|
|
537
|
+
e.pause(), y.value = !1, c.value !== At && I();
|
|
531
538
|
}).catch(() => {});
|
|
532
|
-
},
|
|
539
|
+
}, L = k(() => Ce(b.value === "全部" ? C.value : C.value.filter((e) => e.name === b.value), (e) => Se(e.tags)));
|
|
533
540
|
me(() => {
|
|
534
|
-
|
|
535
|
-
|
|
541
|
+
he(), u.value = setInterval(() => {
|
|
542
|
+
he();
|
|
536
543
|
}, 1e3 * 60 * 10);
|
|
537
544
|
}), pe(() => {
|
|
538
|
-
u.value && clearInterval(u.value),
|
|
545
|
+
u.value && clearInterval(u.value), D && (D.pause(), D.currentTime = 0), r("removeLine", "line_HighwayLiveAlarmNew"), m.value?.dispose(), m.value = null;
|
|
539
546
|
});
|
|
540
|
-
let
|
|
547
|
+
let he = async () => {
|
|
541
548
|
await ge(), l.value = !0;
|
|
542
549
|
let e = await ne({
|
|
543
550
|
appKey: n.appKey,
|
|
@@ -551,23 +558,23 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
551
558
|
l.value = !1;
|
|
552
559
|
let t = e.data.result.ds;
|
|
553
560
|
console.log("得到所有道路", JSON.parse(JSON.stringify(t))), o.value = t;
|
|
554
|
-
let i =
|
|
555
|
-
|
|
561
|
+
let i = x.value, a = we(t);
|
|
562
|
+
x.value = a, r("removeDataTitle", i), setTimeout(() => {
|
|
556
563
|
r("addDataTitle", a);
|
|
557
564
|
}, 1e3);
|
|
558
565
|
let s = [], u = [], d = {}, f = [];
|
|
559
566
|
t.forEach((e) => {
|
|
560
|
-
let t =
|
|
567
|
+
let t = De(e), n = Ce(e.zdzds || [], (e) => X(e)), r = Te(e.zhds || []), i = !!(t.iswarnrainfall_1h || t.iswarnrainfall_6h || t.iswarntemp || t.iswarnvis);
|
|
561
568
|
i && u.push({
|
|
562
569
|
name: e.name,
|
|
563
570
|
...t
|
|
564
|
-
}), d[e.name] =
|
|
571
|
+
}), d[e.name] = Oe(e), f.push({
|
|
565
572
|
name: e.name,
|
|
566
573
|
stations: n,
|
|
567
574
|
piles: r,
|
|
568
575
|
pileWarnCount: r.filter((e) => e.isWarn).length,
|
|
569
|
-
warnCount:
|
|
570
|
-
tags:
|
|
576
|
+
warnCount: Ae(n),
|
|
577
|
+
tags: ke(t)
|
|
571
578
|
});
|
|
572
579
|
let a = i ? "#ff4d4f" : "#52c41a";
|
|
573
580
|
s.push({
|
|
@@ -576,8 +583,8 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
576
583
|
itemStyle: { color: a },
|
|
577
584
|
label: { color: a }
|
|
578
585
|
});
|
|
579
|
-
}),
|
|
580
|
-
},
|
|
586
|
+
}), S.value = d, C.value = f, ee.value = ["全部", ...f.map((e) => e.name)], ee.value.includes(b.value) || (b.value = "全部"), zt(b.value), Gt(), c.value = je(u), await le(), u.length > 0 && I(), Me(s);
|
|
587
|
+
}, H = (e) => {
|
|
581
588
|
r("toMapView", {
|
|
582
589
|
lng: e.longitude ? Number(e.longitude) : Number(e.x),
|
|
583
590
|
lat: e.latitude ? Number(e.latitude) : Number(e.y),
|
|
@@ -595,37 +602,37 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
595
602
|
isFormData: n.ids.pieNumber.isFormData
|
|
596
603
|
});
|
|
597
604
|
l.value = !1, i.value = e.data.result.output || [], console.log("得到所有桩号", i.value);
|
|
598
|
-
},
|
|
605
|
+
}, W = (e) => {
|
|
599
606
|
let t = Number(e);
|
|
600
607
|
return t < 999999 && t > -999999;
|
|
601
608
|
}, _e = (e, t, n = 1) => {
|
|
602
609
|
let r = Number(e);
|
|
603
|
-
return
|
|
610
|
+
return W(r) ? `${r.toFixed(n)}${t}` : "";
|
|
604
611
|
}, ve = (e) => {
|
|
605
612
|
let t = Number(e);
|
|
606
|
-
return
|
|
607
|
-
},
|
|
613
|
+
return W(t) ? `${(t / 1e3).toFixed(1)}km` : "";
|
|
614
|
+
}, K = (e, t = 1) => {
|
|
608
615
|
let n = Number(e);
|
|
609
|
-
return
|
|
616
|
+
return W(n) ? n.toFixed(t) : "--";
|
|
610
617
|
}, ye = (e) => {
|
|
611
618
|
let t = Number(e);
|
|
612
|
-
return
|
|
613
|
-
},
|
|
619
|
+
return W(t) ? (t / 1e3).toFixed(1) : "--";
|
|
620
|
+
}, X = (e) => e?.iswarnpre === 1 || e?.iswarnpre_6 === 1 || e?.iswarntemp === 1 || e?.iswarnvis === 1, be = (e) => e?.zdzds?.iswarnpre === 1 || e?.zdzds?.iswarnpre_6 === 1 || e?.zdzds?.iswarntemp === 1 || e?.zdzds?.iswarnvis === 1, xe = (e) => e?.Name || e?.name || e?.column || "--", Z = (e, t = 1) => {
|
|
614
621
|
let n = Number(e);
|
|
615
|
-
return
|
|
616
|
-
},
|
|
622
|
+
return W(n) ? n.toFixed(t) : "--";
|
|
623
|
+
}, Se = (e) => e.some((e) => e.warn), Ce = (e, t) => [...e].sort((e, n) => Number(t(n)) - Number(t(e))), we = (e) => {
|
|
617
624
|
let t = (e || []).find((e) => (e?.zdzds || []).length)?.zdzds?.[0]?.observation_time;
|
|
618
625
|
return t ? `自动站观测时间:${String(t).replace("T", " ").slice(0, 13)}时` : "自动站观测时间:--";
|
|
619
|
-
},
|
|
626
|
+
}, Te = (e) => Ce((e || []).map((e) => ({
|
|
620
627
|
pileNo: xe(e),
|
|
621
628
|
isWarn: be(e),
|
|
622
|
-
rainfall:
|
|
623
|
-
rainfall_6h:
|
|
624
|
-
temperature:
|
|
629
|
+
rainfall: Z(e?.zdzds?.rainfall_1h),
|
|
630
|
+
rainfall_6h: Z(e?.zdzds?.rainfall_6h),
|
|
631
|
+
temperature: Z(e?.zdzds?.temperature),
|
|
625
632
|
visibility: ye(e?.zdzds?.visibility_min),
|
|
626
633
|
x: e?.x,
|
|
627
634
|
y: e?.y
|
|
628
|
-
})), (e) => e.isWarn),
|
|
635
|
+
})), (e) => e.isWarn), Ee = () => b.value === "全部" ? C.value.flatMap((e) => e.stations || []) : C.value.find((e) => e.name === b.value)?.stations || [], Q = (e, t, n) => e.find((e) => e?.[t] === 1 && W(e?.[n])) || e.find((e) => e?.[t] === 1), $ = (e, t) => (e || []).find((e) => e?.zdzds?.[t] === 1), De = (e) => {
|
|
629
636
|
let t = e.zdzds || [], n = e.zhds || [], r = Q(t, "iswarnpre", "rainfall_1h"), i = Q(t, "iswarnpre_6", "rainfall_6h"), a = Q(t, "iswarntemp", "temperature"), o = Q(t, "iswarnvis", "visibility_min"), s = $(n, "iswarnpre"), c = $(n, "iswarnpre_6"), l = $(n, "iswarntemp"), u = $(n, "iswarnvis");
|
|
630
637
|
return {
|
|
631
638
|
iswarnrainfall_1h: r || s ? 1 : 0,
|
|
@@ -641,7 +648,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
641
648
|
tempWarnPile: l,
|
|
642
649
|
visWarnPile: u
|
|
643
650
|
};
|
|
644
|
-
},
|
|
651
|
+
}, Oe = (e) => {
|
|
645
652
|
let t = e.layer_name;
|
|
646
653
|
return {
|
|
647
654
|
oneLayer: {
|
|
@@ -652,7 +659,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
652
659
|
visible: !0,
|
|
653
660
|
zIndex: 200
|
|
654
661
|
};
|
|
655
|
-
},
|
|
662
|
+
}, ke = (e) => {
|
|
656
663
|
let t = e.iswarnrainfall_1h === 1 || e.iswarnrainfall_6h === 1;
|
|
657
664
|
return [
|
|
658
665
|
{
|
|
@@ -671,15 +678,15 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
671
678
|
value: e.iswarnvis ? ve(e.visWarnStation?.visibility_min) : ""
|
|
672
679
|
}
|
|
673
680
|
];
|
|
674
|
-
},
|
|
681
|
+
}, Ae = (e) => ({
|
|
675
682
|
rainfall_1h: e.filter((e) => e?.iswarnpre === 1).length,
|
|
676
683
|
rainfall_6h: e.filter((e) => e?.iswarnpre_6 === 1).length,
|
|
677
684
|
temp: e.filter((e) => e?.iswarntemp === 1).length,
|
|
678
685
|
vis: e.filter((e) => e?.iswarnvis === 1).length
|
|
679
|
-
}),
|
|
686
|
+
}), je = (e) => e.length ? `当前${e.map((e) => {
|
|
680
687
|
let t = [];
|
|
681
688
|
return (e.iswarnrainfall_1h || e.iswarnrainfall_6h) && t.push("降水"), e.iswarntemp && t.push("温度"), e.iswarnvis && t.push("能见度"), `${e.name}高速${t.join("、")}报警`;
|
|
682
|
-
}).join(",")},请合理安排出行!` :
|
|
689
|
+
}).join(",")},请合理安排出行!` : At, Me = (e) => {
|
|
683
690
|
let t = document.querySelector(".HighwayLiveAlarmNew-chart");
|
|
684
691
|
if (!t) return;
|
|
685
692
|
m.value ||= ae(t);
|
|
@@ -711,24 +718,12 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
711
718
|
}]
|
|
712
719
|
};
|
|
713
720
|
m.value.setOption(n);
|
|
714
|
-
},
|
|
721
|
+
}, jt = async (e) => {
|
|
715
722
|
h.value = e, e === "chart" && (await de(), m.value?.resize());
|
|
716
|
-
},
|
|
717
|
-
if (e.length < 3) return [e];
|
|
718
|
-
let t = [], n = [e[0]];
|
|
719
|
-
for (let r = 1; r < e.length - 1; r++) {
|
|
720
|
-
let i = e[r - 1], a = e[r], o = e[r + 1], s = Number(i.x ?? i.longitude) - Number(a.x ?? a.longitude), c = Number(i.y ?? i.latitude) - Number(a.y ?? a.latitude), l = Number(o.x ?? o.longitude) - Number(a.x ?? a.longitude), u = Number(o.y ?? o.latitude) - Number(a.y ?? a.latitude), d = Math.sqrt(s * s + c * c), f = Math.sqrt(l * l + u * u);
|
|
721
|
-
if (d > 0 && f > 0 && (s * l + c * u) / (d * f) < -.5) {
|
|
722
|
-
n.push(a), t.push(n), n = [a];
|
|
723
|
-
continue;
|
|
724
|
-
}
|
|
725
|
-
n.push(a);
|
|
726
|
-
}
|
|
727
|
-
return n.push(e[e.length - 1]), t.push(n), t;
|
|
728
|
-
}, Mt = (e, t) => (t === e.length - 1 ? [e[t - 1], e[t]] : [e[t], e[t + 1]]).filter(Boolean).map((e) => ({
|
|
723
|
+
}, Mt = (e) => e === "全部" ? Object.values(S.value) : S.value[e] ? [S.value[e]] : [], Nt = () => b.value === "全部" ? o.value : o.value.filter((e) => e.name === b.value), Pt = (e) => e?.pointds || e?.pointds$1 || [], Ft = (e, t) => (t === e.length - 1 ? [e[t - 1], e[t]] : [e[t], e[t + 1]]).filter(Boolean).map((e) => ({
|
|
729
724
|
lng: Number(e.x ?? e.longitude),
|
|
730
725
|
lat: Number(e.y ?? e.latitude)
|
|
731
|
-
})).filter((e) => Number.isFinite(e.lng) && Number.isFinite(e.lat)),
|
|
726
|
+
})).filter((e) => Number.isFinite(e.lng) && Number.isFinite(e.lat)), It = (e, t) => {
|
|
732
727
|
let n = [
|
|
733
728
|
t?.station_number,
|
|
734
729
|
t?.stationid,
|
|
@@ -749,13 +744,17 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
749
744
|
let a = Number(e?.x ?? e?.longitude), o = Number(e?.y ?? e?.latitude);
|
|
750
745
|
return Number.isFinite(r) && Number.isFinite(i) && Number.isFinite(a) && Number.isFinite(o) && a === r && o === i;
|
|
751
746
|
});
|
|
752
|
-
},
|
|
747
|
+
}, Lt = () => {
|
|
753
748
|
r("removeLine", "line_HighwayLiveAlarmNew");
|
|
754
749
|
let e = { lineArr: [] }, t = /* @__PURE__ */ new Set();
|
|
755
|
-
if (
|
|
756
|
-
let r =
|
|
750
|
+
if (Nt().forEach((n) => {
|
|
751
|
+
let r = Pt(n);
|
|
757
752
|
if (r.length < 2) return;
|
|
758
|
-
let i =
|
|
753
|
+
let i = r.filter((e) => e.name === n.name);
|
|
754
|
+
if (i.length < 2) return;
|
|
755
|
+
let a = [...(n.zdzds || []).filter((e) => X(e)), ...(n.zhds || []).filter((e) => be(e))].map((e) => It(i, e)).filter((e) => e >= 0).sort((e, t) => e - t).filter((e, t, n) => t === 0 || e !== n[t - 1]);
|
|
756
|
+
if (!a.length) return;
|
|
757
|
+
let o = (n) => {
|
|
759
758
|
if (n.length !== 2) return;
|
|
760
759
|
let r = `${n[0].lng},${n[0].lat}|${n[1].lng},${n[1].lat}`;
|
|
761
760
|
t.has(r) || (t.add(r), e.lineArr.push({
|
|
@@ -766,45 +765,42 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
766
765
|
otherData: { lineId: "line_HighwayLiveAlarmNew" }
|
|
767
766
|
}));
|
|
768
767
|
};
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
n.length === 2 && o(n);
|
|
785
|
-
}
|
|
786
|
-
}
|
|
768
|
+
if (a.length === 1) {
|
|
769
|
+
o(Ft(i, a[0]));
|
|
770
|
+
return;
|
|
771
|
+
}
|
|
772
|
+
for (let e = 0; e < a.length - 1; e++) {
|
|
773
|
+
let t = a[e], n = a[e + 1];
|
|
774
|
+
for (let e = t; e < n; e++) {
|
|
775
|
+
let t = {
|
|
776
|
+
lng: Number(i[e].x ?? i[e].longitude),
|
|
777
|
+
lat: Number(i[e].y ?? i[e].latitude)
|
|
778
|
+
}, n = {
|
|
779
|
+
lng: Number(i[e + 1].x ?? i[e + 1].longitude),
|
|
780
|
+
lat: Number(i[e + 1].y ?? i[e + 1].latitude)
|
|
781
|
+
};
|
|
782
|
+
Number.isFinite(t.lng) && Number.isFinite(t.lat) && Number.isFinite(n.lng) && Number.isFinite(n.lat) && o([t, n]);
|
|
787
783
|
}
|
|
788
|
-
}
|
|
784
|
+
}
|
|
789
785
|
}), !e.lineArr.length) return r("removeLine", "line_HighwayLiveAlarmNew");
|
|
790
786
|
r("addLine", {
|
|
791
787
|
removeLine: "line_HighwayLiveAlarmNew",
|
|
792
788
|
mapLine: e
|
|
793
789
|
});
|
|
794
|
-
},
|
|
795
|
-
let e =
|
|
796
|
-
e && (t[e.name] = !0, n[e.name] = !1, r[e.name] = !0),
|
|
797
|
-
},
|
|
798
|
-
|
|
790
|
+
}, Rt = () => {
|
|
791
|
+
let e = L.value.find((e) => Se(e.tags)), t = {}, n = {}, r = {};
|
|
792
|
+
e && (t[e.name] = !0, n[e.name] = !1, r[e.name] = !0), w.value = t, T.value = n, E.value = r;
|
|
793
|
+
}, zt = (e) => {
|
|
794
|
+
b.value = e, Rt(), r("removeLayers", Object.values(S.value).map((e) => e.name)), setTimeout(() => {
|
|
799
795
|
r("addLayers", {
|
|
800
|
-
layers:
|
|
796
|
+
layers: Mt(e),
|
|
801
797
|
isRemove: !0
|
|
802
798
|
});
|
|
803
|
-
}, 1e3),
|
|
804
|
-
},
|
|
799
|
+
}, 1e3), Ut(), Lt();
|
|
800
|
+
}, Bt = () => s[g.value], Vt = (e, t) => {
|
|
805
801
|
let n = Number(e?.[t]);
|
|
806
|
-
return
|
|
807
|
-
},
|
|
802
|
+
return W(n) ? t === "visibility_min" ? (n / 1e3).toString() : String(e?.[t]) : "";
|
|
803
|
+
}, Ht = (e, t, n) => `
|
|
808
804
|
<div style='display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;'>
|
|
809
805
|
<div style='color:blue;font-size:14px;font-bold:true;transform:scale(0.9);text-shadow:1px 0 #fff,-1px 0 #fff,0 1px #fff,0 -1px #fff,1px 1px #fff,-1px -1px #fff,1px -1px #fff,-1px 1px #fff;'>
|
|
810
806
|
${t}${n}
|
|
@@ -814,7 +810,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
814
810
|
${e.station_name || "--"}
|
|
815
811
|
</div>
|
|
816
812
|
</div>
|
|
817
|
-
`,
|
|
813
|
+
`, Ut = () => {
|
|
818
814
|
let e = {
|
|
819
815
|
clickOpen: !1,
|
|
820
816
|
spotObject: [{
|
|
@@ -829,9 +825,9 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
829
825
|
}],
|
|
830
826
|
drawArrObj: [],
|
|
831
827
|
onlyLayerID: "station_highway"
|
|
832
|
-
}, t =
|
|
833
|
-
|
|
834
|
-
let r =
|
|
828
|
+
}, t = Bt(), n = t.field, i = t.unit;
|
|
829
|
+
Ee().forEach((t) => {
|
|
830
|
+
let r = Ht(t, Vt(t, n), i), a = {
|
|
835
831
|
lng: t.longitude,
|
|
836
832
|
lat: t.latitude,
|
|
837
833
|
htmlString: r,
|
|
@@ -843,7 +839,12 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
843
839
|
mapMarker: e,
|
|
844
840
|
removeMarker: "station_highway"
|
|
845
841
|
});
|
|
846
|
-
},
|
|
842
|
+
}, Wt = () => {
|
|
843
|
+
r("toComponent", {
|
|
844
|
+
componentName: "PieLegend",
|
|
845
|
+
show: v.value
|
|
846
|
+
});
|
|
847
|
+
}, Gt = () => {
|
|
847
848
|
if (!_.value) return r("removeMarker", "pile_highway");
|
|
848
849
|
let e = {
|
|
849
850
|
clickOpen: !0,
|
|
@@ -902,38 +903,38 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
902
903
|
mapMarker: e,
|
|
903
904
|
removeMarker: "pile_highway"
|
|
904
905
|
});
|
|
905
|
-
},
|
|
906
|
-
let t = !!
|
|
907
|
-
|
|
908
|
-
},
|
|
909
|
-
w.value[e] = !w.value[e];
|
|
910
|
-
}, Wt = (e) => {
|
|
906
|
+
}, Kt = (e) => {
|
|
907
|
+
let t = !!w.value[e];
|
|
908
|
+
w.value[e] = !t, t || (T.value[e] = !1, E.value[e] = !0);
|
|
909
|
+
}, qt = (e) => {
|
|
911
910
|
T.value[e] = !T.value[e];
|
|
912
|
-
},
|
|
911
|
+
}, Jt = (e) => {
|
|
912
|
+
E.value[e] = !E.value[e];
|
|
913
|
+
}, Yt = () => {
|
|
913
914
|
r("close", "HighwayLiveAlarmNew");
|
|
914
915
|
};
|
|
915
916
|
return (e, t) => {
|
|
916
917
|
let n = Ne, r = se, i = ie, o = f, s = p, u = d, m = te;
|
|
917
918
|
return Y((z(), j("div", Fe, [
|
|
918
|
-
|
|
919
|
-
t[
|
|
920
|
-
t[
|
|
919
|
+
y.value ? (z(), j("div", Ie, [M("div", { class: "voice-permission-dialog" }, [
|
|
920
|
+
t[6] ||= M("div", { class: "voice-permission-title" }, "播报报警需要授权", -1),
|
|
921
|
+
t[7] ||= M("div", { class: "voice-permission-desc" }, "请点击下方按钮开启播报报警", -1),
|
|
921
922
|
M("button", {
|
|
922
923
|
class: "voice-permission-btn",
|
|
923
|
-
onClick:
|
|
924
|
+
onClick: ue
|
|
924
925
|
}, "开启")
|
|
925
926
|
])])) : A("", !0),
|
|
926
|
-
M("div", Le, [M("div", Re, [t[
|
|
927
|
+
M("div", Le, [M("div", Re, [t[8] ||= M("div", null, "沿线高速公路实况报警", -1), M("div", ze, [M("div", Be, [M("button", {
|
|
927
928
|
class: R(["switch-btn", { active: h.value === "chart" }]),
|
|
928
|
-
onClick: t[0] ||= (e) =>
|
|
929
|
+
onClick: t[0] ||= (e) => jt("chart")
|
|
929
930
|
}, " 图表 ", 2), M("button", {
|
|
930
931
|
class: R(["switch-btn", { active: h.value === "table" }]),
|
|
931
|
-
onClick: t[1] ||= (e) =>
|
|
932
|
+
onClick: t[1] ||= (e) => jt("table")
|
|
932
933
|
}, " 表格 ", 2)]), M("div", {
|
|
933
934
|
class: "closeBtn",
|
|
934
|
-
onClick:
|
|
935
|
+
onClick: Yt,
|
|
935
936
|
title: "关闭"
|
|
936
|
-
})])]), t[
|
|
937
|
+
})])]), t[9] ||= M("img", {
|
|
937
938
|
class: "HighwayLiveAlarmNew-head-line",
|
|
938
939
|
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",
|
|
939
940
|
alt: ""
|
|
@@ -941,132 +942,140 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
941
942
|
Y(M("div", {
|
|
942
943
|
class: "HighwayLiveAlarmNew-summary",
|
|
943
944
|
style: fe({ color: re.value })
|
|
944
|
-
}, U(c.value), 5), [[
|
|
945
|
-
Y(M("div", Ve, null, 512), [[
|
|
945
|
+
}, U(c.value), 5), [[q, h.value === "chart"]]),
|
|
946
|
+
Y(M("div", Ve, null, 512), [[q, h.value === "chart"]]),
|
|
946
947
|
Y(M("div", He, [M("div", Ue, [
|
|
947
|
-
M("div", We, [t[
|
|
948
|
+
M("div", We, [M("div", Ge, [t[11] ||= M("span", { class: "setting-label" }, "桩号展示:", -1), M("div", Ke, [P(n, {
|
|
948
949
|
modelValue: _.value,
|
|
949
950
|
"onUpdate:modelValue": t[2] ||= (e) => _.value = e,
|
|
950
951
|
class: "pile-checkbox",
|
|
951
|
-
onChange:
|
|
952
|
+
onChange: Gt
|
|
953
|
+
}, {
|
|
954
|
+
default: J(() => [...t[10] ||= [N(" 显示 ", -1)]]),
|
|
955
|
+
_: 1
|
|
956
|
+
}, 8, ["modelValue"])])]), M("div", qe, [t[13] ||= M("span", { class: "setting-label" }, "桩号图例:", -1), M("div", Je, [P(n, {
|
|
957
|
+
modelValue: v.value,
|
|
958
|
+
"onUpdate:modelValue": t[3] ||= (e) => v.value = e,
|
|
959
|
+
class: "pile-checkbox",
|
|
960
|
+
onChange: Wt
|
|
952
961
|
}, {
|
|
953
|
-
default: J(() => [...t[
|
|
962
|
+
default: J(() => [...t[12] ||= [N(" 显示 ", -1)]]),
|
|
954
963
|
_: 1
|
|
955
|
-
}, 8, ["modelValue"])])]),
|
|
956
|
-
M("div",
|
|
964
|
+
}, 8, ["modelValue"])])])]),
|
|
965
|
+
M("div", Ye, [t[17] ||= M("span", { class: "setting-label" }, "地图要素:", -1), P(i, {
|
|
957
966
|
modelValue: g.value,
|
|
958
|
-
"onUpdate:modelValue": t[
|
|
967
|
+
"onUpdate:modelValue": t[4] ||= (e) => g.value = e,
|
|
959
968
|
class: "setting-radios",
|
|
960
|
-
onChange:
|
|
969
|
+
onChange: Ut
|
|
961
970
|
}, {
|
|
962
971
|
default: J(() => [
|
|
963
972
|
P(r, { value: "降水" }, {
|
|
964
|
-
default: J(() => [...t[
|
|
973
|
+
default: J(() => [...t[14] ||= [N("降水", -1)]]),
|
|
965
974
|
_: 1
|
|
966
975
|
}),
|
|
967
976
|
P(r, { value: "温度" }, {
|
|
968
|
-
default: J(() => [...t[
|
|
977
|
+
default: J(() => [...t[15] ||= [N("温度", -1)]]),
|
|
969
978
|
_: 1
|
|
970
979
|
}),
|
|
971
980
|
P(r, { value: "能见度" }, {
|
|
972
|
-
default: J(() => [...t[
|
|
981
|
+
default: J(() => [...t[16] ||= [N("能见度", -1)]]),
|
|
973
982
|
_: 1
|
|
974
983
|
})
|
|
975
984
|
]),
|
|
976
985
|
_: 1
|
|
977
986
|
}, 8, ["modelValue"])]),
|
|
978
|
-
M("div",
|
|
979
|
-
modelValue:
|
|
980
|
-
"onUpdate:modelValue": t[
|
|
987
|
+
M("div", Xe, [t[18] ||= M("span", { class: "setting-label" }, "路线地图:", -1), P(s, {
|
|
988
|
+
modelValue: b.value,
|
|
989
|
+
"onUpdate:modelValue": t[5] ||= (e) => b.value = e,
|
|
981
990
|
placeholder: "请选择路线",
|
|
982
991
|
class: "dark-select",
|
|
983
|
-
onChange:
|
|
992
|
+
onChange: zt
|
|
984
993
|
}, {
|
|
985
|
-
default: J(() => [(z(!0), j(O, null, V(
|
|
994
|
+
default: J(() => [(z(!0), j(O, null, V(ee.value, (e) => (z(), ce(o, {
|
|
986
995
|
key: e,
|
|
987
996
|
label: e,
|
|
988
997
|
value: e
|
|
989
998
|
}, null, 8, ["label", "value"]))), 128))]),
|
|
990
999
|
_: 1
|
|
991
1000
|
}, 8, ["modelValue"])])
|
|
992
|
-
])], 512), [[
|
|
993
|
-
Y(M("div",
|
|
1001
|
+
])], 512), [[q, h.value === "table"]]),
|
|
1002
|
+
Y(M("div", Ze, [t[31] ||= M("div", { class: "table-head" }, [
|
|
994
1003
|
M("span", null, "高速名称"),
|
|
995
1004
|
M("span", null, "状态要素"),
|
|
996
1005
|
M("span", { class: "head-arrow" })
|
|
997
|
-
], -1), M("div",
|
|
1006
|
+
], -1), M("div", Qe, [(z(!0), j(O, null, V(L.value, (e) => (z(), j("div", {
|
|
998
1007
|
class: "table-row",
|
|
999
1008
|
key: e.name
|
|
1000
1009
|
}, [
|
|
1001
1010
|
M("div", {
|
|
1002
1011
|
class: "table-row-main",
|
|
1003
|
-
onClick: (t) =>
|
|
1012
|
+
onClick: (t) => Kt(e.name)
|
|
1004
1013
|
}, [
|
|
1005
|
-
M("span",
|
|
1006
|
-
M("div", { class: R(["status-tags", { "has-warn":
|
|
1014
|
+
M("span", et, U(e.name), 1),
|
|
1015
|
+
M("div", { class: R(["status-tags", { "has-warn": Se(e.tags) }]) }, [(z(!0), j(O, null, V(e.tags, (t) => (z(), j("span", {
|
|
1007
1016
|
class: R(["status-tag", { warn: t.warn }]),
|
|
1008
1017
|
key: `${e.name}-${t.label}`
|
|
1009
1018
|
}, [M("span", null, U(t.label), 1)], 2))), 128))], 2),
|
|
1010
1019
|
M("span", {
|
|
1011
|
-
class: R(["expand-arrow", { expanded:
|
|
1020
|
+
class: R(["expand-arrow", { expanded: w.value[e.name] }]),
|
|
1012
1021
|
"aria-hidden": "true"
|
|
1013
1022
|
}, [P(u, null, {
|
|
1014
|
-
default: J(() => [P(
|
|
1023
|
+
default: J(() => [P(G(a))]),
|
|
1015
1024
|
_: 1
|
|
1016
1025
|
})], 2)
|
|
1017
|
-
], 8,
|
|
1026
|
+
], 8, $e),
|
|
1018
1027
|
Y(M("div", {
|
|
1019
1028
|
class: "station-title",
|
|
1020
|
-
onClick: (t) =>
|
|
1021
|
-
}, [M("span", null, [t[
|
|
1022
|
-
default: J(() => [P(
|
|
1029
|
+
onClick: (t) => qt(e.name)
|
|
1030
|
+
}, [M("span", null, [t[19] ||= N(" 自动站数据 ", -1), oe(e.stations) > 0 ? (z(), j("span", nt, " (报警数量:" + U(oe(e.stations)) + "个) ", 1)) : A("", !0)]), M("span", { class: R(["panel-arrow", { expanded: T.value[e.name] }]) }, [P(u, null, {
|
|
1031
|
+
default: J(() => [P(G(a))]),
|
|
1023
1032
|
_: 1
|
|
1024
|
-
})], 2)], 8,
|
|
1025
|
-
Y(M("div",
|
|
1026
|
-
t[
|
|
1027
|
-
M("span",
|
|
1028
|
-
M("span",
|
|
1029
|
-
M("span",
|
|
1030
|
-
M("span",
|
|
1031
|
-
]), e.stations.length ? (z(), j("div",
|
|
1032
|
-
class: R(["station-row", { "is-warn":
|
|
1033
|
+
})], 2)], 8, tt), [[q, w.value[e.name]]]),
|
|
1034
|
+
Y(M("div", rt, [M("div", it, [
|
|
1035
|
+
t[28] ||= M("span", null, "站名", -1),
|
|
1036
|
+
M("span", at, [M("span", ot, [t[20] ||= N(" 1h降水 ", -1), e.warnCount.rainfall_1h > 0 ? (z(), j("span", st, U(e.warnCount.rainfall_1h) + "条 ", 1)) : A("", !0)]), t[21] ||= M("span", { class: "unit" }, "(mm)", -1)]),
|
|
1037
|
+
M("span", ct, [M("span", lt, [t[22] ||= N(" 6h降水 ", -1), e.warnCount.rainfall_6h > 0 ? (z(), j("span", ut, U(e.warnCount.rainfall_6h) + "条 ", 1)) : A("", !0)]), t[23] ||= M("span", { class: "unit" }, "(mm)", -1)]),
|
|
1038
|
+
M("span", dt, [M("span", ft, [t[24] ||= N(" 温度 ", -1), e.warnCount.temp > 0 ? (z(), j("span", pt, U(e.warnCount.temp) + "条 ", 1)) : A("", !0)]), t[25] ||= M("span", { class: "unit" }, "(℃)", -1)]),
|
|
1039
|
+
M("span", mt, [M("span", ht, [t[26] ||= N(" 能见度 ", -1), e.warnCount.vis > 0 ? (z(), j("span", gt, U(e.warnCount.vis) + "条 ", 1)) : A("", !0)]), t[27] ||= M("span", { class: "unit" }, "(km)", -1)])
|
|
1040
|
+
]), e.stations.length ? (z(), j("div", _t, [(z(!0), j(O, null, V(e.stations, (t) => (z(), j("div", {
|
|
1041
|
+
class: R(["station-row", { "is-warn": X(t) }]),
|
|
1033
1042
|
key: `${e.name}-${t.station_number}`,
|
|
1034
|
-
onClick: (e) =>
|
|
1043
|
+
onClick: (e) => H(t)
|
|
1035
1044
|
}, [
|
|
1036
1045
|
M("span", null, U(t.station_name || "--"), 1),
|
|
1037
|
-
M("span",
|
|
1038
|
-
M("span",
|
|
1039
|
-
M("span",
|
|
1040
|
-
M("span",
|
|
1041
|
-
], 10,
|
|
1046
|
+
M("span", yt, U(K(t.rainfall_1h)), 1),
|
|
1047
|
+
M("span", bt, U(K(t.rainfall_6h)), 1),
|
|
1048
|
+
M("span", xt, U(K(t.temperature)), 1),
|
|
1049
|
+
M("span", St, U(ye(t.visibility_min)), 1)
|
|
1050
|
+
], 10, vt))), 128))])) : (z(), j("div", Ct, "暂无站点数据"))], 512), [[q, w.value[e.name] && T.value[e.name]]]),
|
|
1042
1051
|
Y(M("div", {
|
|
1043
1052
|
class: "pile-title",
|
|
1044
|
-
onClick: (t) =>
|
|
1045
|
-
}, [M("span", null, [t[
|
|
1046
|
-
default: J(() => [P(
|
|
1053
|
+
onClick: (t) => Jt(e.name)
|
|
1054
|
+
}, [M("span", null, [t[29] ||= N(" 桩号数据 ", -1), e.pileWarnCount > 0 ? (z(), j("span", Tt, " (报警数量:" + U(e.pileWarnCount) + "个)", 1)) : A("", !0)]), M("span", { class: R(["panel-arrow", { expanded: E.value[e.name] }]) }, [P(u, null, {
|
|
1055
|
+
default: J(() => [P(G(a))]),
|
|
1047
1056
|
_: 1
|
|
1048
|
-
})], 2)], 8,
|
|
1049
|
-
Y(M("div",
|
|
1057
|
+
})], 2)], 8, wt), [[q, w.value[e.name]]]),
|
|
1058
|
+
Y(M("div", Et, [t[30] ||= M("div", { class: "pile-head" }, [
|
|
1050
1059
|
M("span", null, "桩号"),
|
|
1051
1060
|
M("span", null, "1h降水"),
|
|
1052
1061
|
M("span", null, "6h降水"),
|
|
1053
1062
|
M("span", null, "温度"),
|
|
1054
1063
|
M("span", null, "能见度")
|
|
1055
|
-
], -1), e.piles.length ? (z(), j("div",
|
|
1064
|
+
], -1), e.piles.length ? (z(), j("div", Dt, [(z(!0), j(O, null, V(e.piles, (e) => (z(), j("div", {
|
|
1056
1065
|
class: R(["pile-row", { "is-warn": e.isWarn }]),
|
|
1057
1066
|
key: e.pileNo,
|
|
1058
|
-
onClick: (t) =>
|
|
1067
|
+
onClick: (t) => H(e)
|
|
1059
1068
|
}, [
|
|
1060
1069
|
M("span", null, U(e.pileNo), 1),
|
|
1061
1070
|
M("span", null, U(e.rainfall), 1),
|
|
1062
1071
|
M("span", null, U(e.rainfall_6h), 1),
|
|
1063
1072
|
M("span", null, U(e.temperature), 1),
|
|
1064
1073
|
M("span", null, U(e.visibility), 1)
|
|
1065
|
-
], 10,
|
|
1066
|
-
]))), 128))])], 512), [[
|
|
1074
|
+
], 10, Ot))), 128))])) : (z(), j("div", kt, "暂无数据"))], 512), [[q, w.value[e.name] && E.value[e.name]]])
|
|
1075
|
+
]))), 128))])], 512), [[q, h.value === "table"]])
|
|
1067
1076
|
])), [[m, l.value]]);
|
|
1068
1077
|
};
|
|
1069
1078
|
}
|
|
1070
|
-
}), [["__scopeId", "data-v-
|
|
1079
|
+
}), [["__scopeId", "data-v-c8516d64"]]);
|
|
1071
1080
|
//#endregion
|
|
1072
|
-
export { Ne as n,
|
|
1081
|
+
export { Ne as n, jt as t };
|