nxd-plugin 1.5.4 → 1.5.6
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-C5_-1nLA.mjs → component-HighwayLiveAlarmNew-C5KlMjlj.mjs} +242 -232
- package/dist/chunks/{component-ImageGeneration-BNWh-LrZ.mjs → component-ImageGeneration-fM3XhtlC.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-CCyVpjFG.mjs → component-RadarShortTerm-BlM8sLMP.mjs} +131 -121
- package/dist/chunks/{component-ServiceMaterialsBtn-DAtuOkqp.mjs → component-ServiceMaterialsBtn-Cis_VgDG.mjs} +1 -1
- package/dist/chunks/{component-YCHome-ClXcF7Y4.mjs → component-YCHome-C5nCaoI3.mjs} +2 -2
- package/dist/chunks/{component-YCLogin-cziiUlrT.mjs → component-YCLogin-Dr5Q9rj3.mjs} +2 -2
- package/dist/chunks/{component-YCLoginNew-vzP6cN1o.mjs → component-YCLoginNew-DY7lAfed.mjs} +2 -2
- package/dist/nxd-plugin.mjs +7 -7
- package/dist/styles/component-HighwayLiveAlarmNew.css +1 -1
- package/dist/styles/component-RadarShortTerm.css +1 -1
- package/dist/styles/component-YCLogin.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
2
|
import { B as e, L as t, S as n, Z as r, c as i, d as a, f as o, it as s, l as c, m as l, n as u, ot as d, r as f, u as p, z as m } from "./component-HighWayFreeze-Ckh45dhq.mjs";
|
|
3
|
-
import { B as h, D as g, F as _, I as v, L as y, M as b, Nt as x, O as S, Rt as C, Ut as w, g as T, i as ee, o as te, p as E, r as D, w as
|
|
4
|
-
import { a as
|
|
5
|
-
import { Fragment as A, computed as j, createBlock as oe, createCommentVNode as M, createElementBlock as N, createElementVNode as P, createTextVNode as F, createVNode as I, defineComponent as L, getCurrentInstance as se, inject as R, isRef as ce, mergeProps as
|
|
3
|
+
import { B as h, D as g, F as _, I as v, L as y, M as b, Nt as x, O as S, Rt as C, Ut as w, g as T, i as ee, o as te, p as E, r as D, w as ne } from "./component-HighWayEarlyWarningRed-C4eUxLai.mjs";
|
|
4
|
+
import { a as O, i as re, n as ie, o as k, r as ae } from "./component-HighwayLiveAlarm-BJQZsDZ2.mjs";
|
|
5
|
+
import { Fragment as A, computed as j, createBlock as oe, createCommentVNode as M, createElementBlock as N, createElementVNode as P, createTextVNode as F, createVNode as I, defineComponent as L, getCurrentInstance as se, inject as R, isRef as ce, mergeProps as z, nextTick as le, normalizeClass as B, normalizeStyle as ue, onBeforeUnmount as de, onMounted as fe, openBlock as V, provide as pe, ref as H, renderList as U, renderSlot as W, resolveDynamicComponent as G, toDisplayString as K, toRaw as me, toRefs as he, unref as q, useSlots as ge, vModelCheckbox as _e, vShow as J, watch as Y, withCtx as X, withDirectives as Z, withModifiers as ve } from "vue";
|
|
6
6
|
//#region node_modules/element-plus/es/components/checkbox/src/checkbox.mjs
|
|
7
|
-
var
|
|
7
|
+
var ye = {
|
|
8
8
|
modelValue: {
|
|
9
9
|
type: [
|
|
10
10
|
Number,
|
|
@@ -70,10 +70,10 @@ var be = {
|
|
|
70
70
|
},
|
|
71
71
|
ariaLabel: String,
|
|
72
72
|
...e(["ariaControls"])
|
|
73
|
-
},
|
|
73
|
+
}, Q = {
|
|
74
74
|
[d]: (e) => w(e) || _(e) || b(e),
|
|
75
75
|
change: (e) => w(e) || _(e) || b(e)
|
|
76
|
-
},
|
|
76
|
+
}, $ = Symbol("checkboxGroupContextKey"), be = g({
|
|
77
77
|
modelValue: {
|
|
78
78
|
type: S(Array),
|
|
79
79
|
default: () => []
|
|
@@ -98,7 +98,7 @@ var be = {
|
|
|
98
98
|
options: { type: S(Array) },
|
|
99
99
|
props: {
|
|
100
100
|
type: S(Object),
|
|
101
|
-
default: () =>
|
|
101
|
+
default: () => Se
|
|
102
102
|
},
|
|
103
103
|
type: {
|
|
104
104
|
type: String,
|
|
@@ -106,15 +106,15 @@ var be = {
|
|
|
106
106
|
default: "checkbox"
|
|
107
107
|
},
|
|
108
108
|
...e(["ariaLabel"])
|
|
109
|
-
}),
|
|
109
|
+
}), xe = {
|
|
110
110
|
[d]: (e) => x(e),
|
|
111
111
|
change: (e) => x(e)
|
|
112
|
-
},
|
|
112
|
+
}, Se = {
|
|
113
113
|
label: "label",
|
|
114
114
|
value: "value",
|
|
115
115
|
disabled: "disabled"
|
|
116
|
-
},
|
|
117
|
-
let n = R(
|
|
116
|
+
}, Ce = ({ model: e, isChecked: t }) => {
|
|
117
|
+
let n = R($, void 0), r = R(o, void 0), i = j(() => {
|
|
118
118
|
let r = n?.max?.value, i = n?.min?.value;
|
|
119
119
|
return !y(r) && e.value.length >= r && !t.value || !y(i) && e.value.length <= i && t.value;
|
|
120
120
|
});
|
|
@@ -122,8 +122,8 @@ var be = {
|
|
|
122
122
|
isDisabled: p(j(() => n === void 0 ? r?.disabled ?? i.value : n.disabled?.value || i.value)),
|
|
123
123
|
isLimitDisabled: i
|
|
124
124
|
};
|
|
125
|
-
},
|
|
126
|
-
let c = R(
|
|
125
|
+
}, we = (e, { model: t, isLimitExceeded: n, hasOwnLabel: r, isDisabled: a, isLabeledByFormItem: o }) => {
|
|
126
|
+
let c = R($, void 0), { formItem: l } = i(), { emit: u } = se();
|
|
127
127
|
function d(t) {
|
|
128
128
|
return [
|
|
129
129
|
!0,
|
|
@@ -144,17 +144,17 @@ var be = {
|
|
|
144
144
|
!1,
|
|
145
145
|
e.falseValue,
|
|
146
146
|
e.falseLabel
|
|
147
|
-
].includes(t.value)), await
|
|
147
|
+
].includes(t.value)), await le(), f(t.value, i)));
|
|
148
148
|
}
|
|
149
149
|
let h = j(() => c?.validateEvent || e.validateEvent);
|
|
150
|
-
return
|
|
151
|
-
h.value && l?.validate("change").catch((e) =>
|
|
150
|
+
return Y(() => e.modelValue, () => {
|
|
151
|
+
h.value && l?.validate("change").catch((e) => ne(e));
|
|
152
152
|
}), {
|
|
153
153
|
handleChange: p,
|
|
154
154
|
onClickRoot: m
|
|
155
155
|
};
|
|
156
|
-
},
|
|
157
|
-
let t =
|
|
156
|
+
}, Te = (e) => {
|
|
157
|
+
let t = H(!1), { emit: n, vnode: r } = se(), i = R($, void 0), a = j(() => y(i) === !1), o = H(!1), s = j(() => {
|
|
158
158
|
let e = r.props ?? {};
|
|
159
159
|
return "modelValue" in e || "model-value" in e;
|
|
160
160
|
}), c = j({
|
|
@@ -170,10 +170,10 @@ var be = {
|
|
|
170
170
|
isGroup: a,
|
|
171
171
|
isLimitExceeded: o
|
|
172
172
|
};
|
|
173
|
-
},
|
|
174
|
-
let r = R(
|
|
173
|
+
}, Ee = (e, t, { model: n }) => {
|
|
174
|
+
let r = R($, void 0), i = H(!1), o = j(() => v(e.value) ? e.label : e.value), s = j(() => {
|
|
175
175
|
let t = n.value;
|
|
176
|
-
return b(t) ? t : x(t) ? C(o.value) ? t.map(
|
|
176
|
+
return b(t) ? t : x(t) ? C(o.value) ? t.map(me).some((e) => h(e, o.value)) : t.map(me).includes(o.value) : t == null ? !!t : t === e.trueValue || t === e.trueLabel;
|
|
177
177
|
});
|
|
178
178
|
return {
|
|
179
179
|
checkboxButtonSize: a(j(() => r?.size?.value), { prop: !0 }),
|
|
@@ -183,15 +183,15 @@ var be = {
|
|
|
183
183
|
hasOwnLabel: j(() => !!t.default || !v(o.value)),
|
|
184
184
|
actualValue: o
|
|
185
185
|
};
|
|
186
|
-
},
|
|
187
|
-
let { formItem: n } = i(), { model: r, isGroup: a, isLimitExceeded: o } =
|
|
186
|
+
}, De = (e, t) => {
|
|
187
|
+
let { formItem: n } = i(), { model: r, isGroup: a, isLimitExceeded: o } = Te(e), { isFocused: s, isChecked: l, checkboxButtonSize: u, checkboxSize: d, hasOwnLabel: f, actualValue: p } = Ee(e, t, { model: r }), { isDisabled: m } = Ce({
|
|
188
188
|
model: r,
|
|
189
189
|
isChecked: l
|
|
190
190
|
}), { inputId: h, isLabeledByFormItem: g } = c(e, {
|
|
191
191
|
formItemContext: n,
|
|
192
192
|
disableIdGeneration: f,
|
|
193
193
|
disableIdManagement: a
|
|
194
|
-
}), { handleChange: _, onClickRoot: y } =
|
|
194
|
+
}), { handleChange: _, onClickRoot: y } = we(e, {
|
|
195
195
|
model: r,
|
|
196
196
|
isLimitExceeded: o,
|
|
197
197
|
hasOwnLabel: f,
|
|
@@ -203,19 +203,19 @@ var be = {
|
|
|
203
203
|
x(r.value) && !r.value.includes(p.value) ? r.value.push(p.value) : r.value = e.trueValue ?? e.trueLabel ?? !0;
|
|
204
204
|
}
|
|
205
205
|
e.checked && t();
|
|
206
|
-
})(),
|
|
206
|
+
})(), O({
|
|
207
207
|
from: "label act as value",
|
|
208
208
|
replacement: "value",
|
|
209
209
|
version: "3.0.0",
|
|
210
210
|
scope: "el-checkbox",
|
|
211
211
|
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
212
|
-
}, j(() => a.value && v(e.value))),
|
|
212
|
+
}, j(() => a.value && v(e.value))), O({
|
|
213
213
|
from: "true-label",
|
|
214
214
|
replacement: "true-value",
|
|
215
215
|
version: "3.0.0",
|
|
216
216
|
scope: "el-checkbox",
|
|
217
217
|
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
218
|
-
}, j(() => !!e.trueLabel)),
|
|
218
|
+
}, j(() => !!e.trueLabel)), O({
|
|
219
219
|
from: "false-label",
|
|
220
220
|
replacement: "false-value",
|
|
221
221
|
version: "3.0.0",
|
|
@@ -235,19 +235,19 @@ var be = {
|
|
|
235
235
|
handleChange: _,
|
|
236
236
|
onClickRoot: y
|
|
237
237
|
};
|
|
238
|
-
},
|
|
238
|
+
}, Oe = [
|
|
239
239
|
"id",
|
|
240
240
|
"indeterminate",
|
|
241
241
|
"name",
|
|
242
242
|
"tabindex",
|
|
243
243
|
"disabled"
|
|
244
|
-
],
|
|
244
|
+
], ke = /* @__PURE__ */ L({
|
|
245
245
|
name: "ElCheckbox",
|
|
246
246
|
__name: "checkbox",
|
|
247
|
-
props:
|
|
248
|
-
emits:
|
|
247
|
+
props: ye,
|
|
248
|
+
emits: Q,
|
|
249
249
|
setup(e) {
|
|
250
|
-
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 } =
|
|
250
|
+
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, ge()), p = j(() => t.trueValue || t.falseValue || t.trueLabel || t.falseLabel ? {
|
|
251
251
|
"true-value": t.trueValue ?? t.trueLabel ?? !0,
|
|
252
252
|
"false-value": t.falseValue ?? t.falseLabel ?? !1
|
|
253
253
|
} : { value: u.value }), m = T("checkbox"), h = j(() => [
|
|
@@ -263,32 +263,32 @@ var be = {
|
|
|
263
263
|
m.is("indeterminate", t.indeterminate),
|
|
264
264
|
m.is("focus", o.value)
|
|
265
265
|
]);
|
|
266
|
-
return (t, i) => (
|
|
267
|
-
for: !
|
|
268
|
-
class:
|
|
266
|
+
return (t, i) => (V(), oe(G(!q(c) && q(r) ? "span" : "label"), {
|
|
267
|
+
for: !q(c) && q(r) ? null : q(n),
|
|
268
|
+
class: B(h.value),
|
|
269
269
|
"aria-controls": e.indeterminate ? e.ariaControls : null,
|
|
270
270
|
"aria-checked": e.indeterminate ? "mixed" : void 0,
|
|
271
271
|
"aria-label": e.ariaLabel,
|
|
272
|
-
onClick:
|
|
272
|
+
onClick: q(f)
|
|
273
273
|
}, {
|
|
274
|
-
default:
|
|
275
|
-
id:
|
|
274
|
+
default: X(() => [P("span", { class: B(g.value) }, [Z(P("input", z({
|
|
275
|
+
id: q(n),
|
|
276
276
|
"onUpdate:modelValue": i[0] ||= (e) => ce(l) ? l.value = e : null,
|
|
277
|
-
class:
|
|
277
|
+
class: q(m).e("original"),
|
|
278
278
|
type: "checkbox",
|
|
279
279
|
indeterminate: e.indeterminate,
|
|
280
280
|
name: e.name,
|
|
281
281
|
tabindex: e.tabindex,
|
|
282
|
-
disabled:
|
|
282
|
+
disabled: q(a)
|
|
283
283
|
}, p.value, {
|
|
284
|
-
onChange: i[1] ||= (...e) =>
|
|
284
|
+
onChange: i[1] ||= (...e) => q(d) && q(d)(...e),
|
|
285
285
|
onFocus: i[2] ||= (e) => o.value = !0,
|
|
286
286
|
onBlur: i[3] ||= (e) => o.value = !1,
|
|
287
|
-
onClick: i[4] ||=
|
|
288
|
-
}), null, 16,
|
|
287
|
+
onClick: i[4] ||= ve(() => {}, ["stop"])
|
|
288
|
+
}), null, 16, Oe), [[_e, q(l)]]), P("span", { class: B(q(m).e("inner")) }, null, 2)], 2), q(c) ? (V(), N("span", {
|
|
289
289
|
key: 0,
|
|
290
|
-
class:
|
|
291
|
-
}, [
|
|
290
|
+
class: B(q(m).e("label"))
|
|
291
|
+
}, [W(t.$slots, "default"), t.$slots.default ? M("v-if", !0) : (V(), N(A, { key: 0 }, [F(K(e.label), 1)], 64))], 2)) : M("v-if", !0)]),
|
|
292
292
|
_: 3
|
|
293
293
|
}, 8, [
|
|
294
294
|
"for",
|
|
@@ -306,13 +306,13 @@ var be = {
|
|
|
306
306
|
], je = /* @__PURE__ */ L({
|
|
307
307
|
name: "ElCheckboxButton",
|
|
308
308
|
__name: "checkbox-button",
|
|
309
|
-
props:
|
|
310
|
-
emits:
|
|
309
|
+
props: ye,
|
|
310
|
+
emits: Q,
|
|
311
311
|
setup(e) {
|
|
312
|
-
let t = e, { isFocused: n, isChecked: r, isDisabled: i, checkboxButtonSize: a, model: o, actualValue: s, handleChange: c } =
|
|
312
|
+
let t = e, { isFocused: n, isChecked: r, isDisabled: i, checkboxButtonSize: a, model: o, actualValue: s, handleChange: c } = De(t, ge()), l = j(() => t.trueValue || t.falseValue || t.trueLabel || t.falseLabel ? {
|
|
313
313
|
"true-value": t.trueValue ?? t.trueLabel ?? !0,
|
|
314
314
|
"false-value": t.falseValue ?? t.falseLabel ?? !1
|
|
315
|
-
} : { value: s.value }), u = R(
|
|
315
|
+
} : { value: s.value }), u = R($, void 0), d = T("checkbox"), f = j(() => {
|
|
316
316
|
let e = u?.fill?.value ?? "";
|
|
317
317
|
return {
|
|
318
318
|
backgroundColor: e,
|
|
@@ -327,32 +327,32 @@ var be = {
|
|
|
327
327
|
d.is("checked", r.value),
|
|
328
328
|
d.is("focus", n.value)
|
|
329
329
|
]);
|
|
330
|
-
return (t, a) => (
|
|
330
|
+
return (t, a) => (V(), N("label", { class: B(p.value) }, [Z(P("input", z({
|
|
331
331
|
"onUpdate:modelValue": a[0] ||= (e) => ce(o) ? o.value = e : null,
|
|
332
|
-
class:
|
|
332
|
+
class: q(d).be("button", "original"),
|
|
333
333
|
type: "checkbox",
|
|
334
334
|
name: e.name,
|
|
335
335
|
tabindex: e.tabindex,
|
|
336
|
-
disabled:
|
|
336
|
+
disabled: q(i)
|
|
337
337
|
}, l.value, {
|
|
338
|
-
onChange: a[1] ||= (...e) =>
|
|
338
|
+
onChange: a[1] ||= (...e) => q(c) && q(c)(...e),
|
|
339
339
|
onFocus: a[2] ||= (e) => n.value = !0,
|
|
340
340
|
onBlur: a[3] ||= (e) => n.value = !1,
|
|
341
|
-
onClick: a[4] ||=
|
|
342
|
-
}), null, 16, Ae), [[_e,
|
|
341
|
+
onClick: a[4] ||= ve(() => {}, ["stop"])
|
|
342
|
+
}), null, 16, Ae), [[_e, q(o)]]), t.$slots.default || e.label ? (V(), N("span", {
|
|
343
343
|
key: 0,
|
|
344
|
-
class:
|
|
345
|
-
style:
|
|
346
|
-
}, [
|
|
344
|
+
class: B(q(d).be("button", "inner")),
|
|
345
|
+
style: ue(q(r) ? f.value : void 0)
|
|
346
|
+
}, [W(t.$slots, "default", {}, () => [F(K(e.label), 1)])], 6)) : M("v-if", !0)], 2));
|
|
347
347
|
}
|
|
348
348
|
}), Me = /* @__PURE__ */ L({
|
|
349
349
|
name: "ElCheckboxGroup",
|
|
350
350
|
__name: "checkbox-group",
|
|
351
|
-
props:
|
|
352
|
-
emits:
|
|
351
|
+
props: be,
|
|
352
|
+
emits: xe,
|
|
353
353
|
setup(e, { emit: t }) {
|
|
354
354
|
let n = e, a = t, o = T("checkbox"), l = p(), { formItem: u } = i(), { inputId: f, isLabeledByFormItem: m } = c(n, { formItemContext: u }), g = async (e) => {
|
|
355
|
-
a(d, e), await
|
|
355
|
+
a(d, e), await le(), a(s, e);
|
|
356
356
|
}, _ = j({
|
|
357
357
|
get() {
|
|
358
358
|
return n.modelValue;
|
|
@@ -361,7 +361,7 @@ var be = {
|
|
|
361
361
|
g(e);
|
|
362
362
|
}
|
|
363
363
|
}), v = j(() => ({
|
|
364
|
-
...
|
|
364
|
+
...Se,
|
|
365
365
|
...n.props
|
|
366
366
|
})), y = (e) => {
|
|
367
367
|
let { label: t, value: n, disabled: r } = v.value, i = {
|
|
@@ -370,16 +370,16 @@ var be = {
|
|
|
370
370
|
disabled: e[r]
|
|
371
371
|
};
|
|
372
372
|
return {
|
|
373
|
-
...
|
|
373
|
+
...k(e, [
|
|
374
374
|
t,
|
|
375
375
|
n,
|
|
376
376
|
r
|
|
377
377
|
]),
|
|
378
378
|
...i
|
|
379
379
|
};
|
|
380
|
-
}, b = j(() => n.type === "button" ? je :
|
|
381
|
-
return
|
|
382
|
-
...r(
|
|
380
|
+
}, b = j(() => n.type === "button" ? je : ke);
|
|
381
|
+
return pe($, {
|
|
382
|
+
...r(he(n), [
|
|
383
383
|
"size",
|
|
384
384
|
"min",
|
|
385
385
|
"max",
|
|
@@ -390,16 +390,16 @@ var be = {
|
|
|
390
390
|
disabled: l,
|
|
391
391
|
modelValue: _,
|
|
392
392
|
changeEvent: g
|
|
393
|
-
}),
|
|
394
|
-
n.validateEvent && !h(e, t) && u?.validate("change").catch((e) =>
|
|
395
|
-
}), (t, n) => (
|
|
396
|
-
id:
|
|
397
|
-
class:
|
|
393
|
+
}), Y(() => n.modelValue, (e, t) => {
|
|
394
|
+
n.validateEvent && !h(e, t) && u?.validate("change").catch((e) => ne(e));
|
|
395
|
+
}), (t, n) => (V(), oe(G(e.tag), {
|
|
396
|
+
id: q(f),
|
|
397
|
+
class: B(q(o).b("group")),
|
|
398
398
|
role: "group",
|
|
399
|
-
"aria-label":
|
|
400
|
-
"aria-labelledby":
|
|
399
|
+
"aria-label": q(m) ? void 0 : e.ariaLabel || "checkbox-group",
|
|
400
|
+
"aria-labelledby": q(m) ? q(u)?.labelId : void 0
|
|
401
401
|
}, {
|
|
402
|
-
default:
|
|
402
|
+
default: X(() => [W(t.$slots, "default", {}, () => [(V(!0), N(A, null, U(e.options, (e, t) => (V(), oe(G(b.value), z({ key: t }, { ref_for: !0 }, y(e)), null, 16))), 128))])]),
|
|
403
403
|
_: 3
|
|
404
404
|
}, 8, [
|
|
405
405
|
"id",
|
|
@@ -408,7 +408,7 @@ var be = {
|
|
|
408
408
|
"aria-labelledby"
|
|
409
409
|
]));
|
|
410
410
|
}
|
|
411
|
-
}), Ne = t(
|
|
411
|
+
}), Ne = t(ke, {
|
|
412
412
|
CheckboxButton: je,
|
|
413
413
|
CheckboxGroup: Me
|
|
414
414
|
});
|
|
@@ -485,7 +485,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
485
485
|
"toMapView"
|
|
486
486
|
],
|
|
487
487
|
setup(e, { emit: t }) {
|
|
488
|
-
let r = e, i = t, a =
|
|
488
|
+
let r = e, i = t, a = H([]), o = H([]), s = {
|
|
489
489
|
降水: {
|
|
490
490
|
field: "rainfall_1h",
|
|
491
491
|
unit: "mm"
|
|
@@ -498,42 +498,43 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
498
498
|
field: "visibility_min",
|
|
499
499
|
unit: "km"
|
|
500
500
|
}
|
|
501
|
-
}, c =
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
e.currentTime = 0;
|
|
501
|
+
}, c = H(""), d = H(!1), p = H(null), m = H(null), h = H("table"), g = H("降水"), _ = H(!0), v = H(!1), y = H("全部"), b = H(["全部"]), x = H("自动站观测时间:--"), S = H({}), C = H([]), w = H({}), T = H({}), E = H({}), D = null, ne = j(() => c.value === Ct ? "#52c41a" : "#ff4d4f"), O = (e) => (e || []).filter((e) => Y(e)).length, k = () => D || (D = new Audio(Pe), D.preload = "auto", D), L = () => {
|
|
502
|
+
let e = k();
|
|
503
|
+
e.volume = 0, e.currentTime = 0;
|
|
505
504
|
let t = e.play();
|
|
506
505
|
if (!t) {
|
|
507
|
-
v.value = !
|
|
506
|
+
v.value = !0;
|
|
508
507
|
return;
|
|
509
508
|
}
|
|
510
509
|
t.then(() => {
|
|
511
|
-
|
|
510
|
+
e.pause(), e.volume = 1;
|
|
512
511
|
}).catch(() => {
|
|
513
|
-
v.value
|
|
512
|
+
v.value = !0;
|
|
514
513
|
});
|
|
515
|
-
},
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
514
|
+
}, se = () => {
|
|
515
|
+
let e = k();
|
|
516
|
+
e.volume = 1, e.currentTime = 0, e.play().catch(() => {});
|
|
517
|
+
}, R = () => {
|
|
518
|
+
let e = k();
|
|
519
|
+
e.volume = 0, e.currentTime = 0;
|
|
520
|
+
let t = e.play();
|
|
521
|
+
if (!t) {
|
|
522
|
+
v.value = !1;
|
|
522
523
|
return;
|
|
523
524
|
}
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
},
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
525
|
+
t.then(() => {
|
|
526
|
+
e.pause(), v.value = !1;
|
|
527
|
+
}).catch(() => {});
|
|
528
|
+
}, ce = j(() => be(y.value === "全部" ? C.value : C.value.filter((e) => e.name === y.value), (e) => $(e.tags)));
|
|
529
|
+
fe(() => {
|
|
530
|
+
z(), p.value = setInterval(() => {
|
|
531
|
+
z();
|
|
531
532
|
}, 1e3 * 60 * 10);
|
|
532
|
-
}),
|
|
533
|
-
p.value && clearInterval(p.value),
|
|
533
|
+
}), de(() => {
|
|
534
|
+
p.value && clearInterval(p.value), D && (D.pause(), D.currentTime = 0), i("removeLine", "line_HighwayLiveAlarmNew"), m.value?.dispose(), m.value = null;
|
|
534
535
|
});
|
|
535
|
-
let
|
|
536
|
-
await
|
|
536
|
+
let z = async () => {
|
|
537
|
+
await W(), d.value = !0;
|
|
537
538
|
let e = await ee({
|
|
538
539
|
appKey: r.appKey,
|
|
539
540
|
appSalt: r.appSalt,
|
|
@@ -546,23 +547,23 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
546
547
|
d.value = !1;
|
|
547
548
|
let t = e.data.result.ds;
|
|
548
549
|
console.log("roads", JSON.parse(JSON.stringify(t))), o.value = t;
|
|
549
|
-
let n =
|
|
550
|
-
|
|
550
|
+
let n = x.value, a = xe(t);
|
|
551
|
+
x.value = a, i("removeDataTitle", n), setTimeout(() => {
|
|
551
552
|
i("addDataTitle", a);
|
|
552
553
|
}, 1e3);
|
|
553
554
|
let s = [], l = [], u = {}, f = [];
|
|
554
555
|
t.forEach((e) => {
|
|
555
|
-
let t =
|
|
556
|
+
let t = Ee(e), n = be(e.zdzds || [], (e) => Y(e)), r = Se(e.zhds || []), i = !!(t.iswarnrainfall_1h || t.iswarntemp || t.iswarnvis);
|
|
556
557
|
i && l.push({
|
|
557
558
|
name: e.name,
|
|
558
559
|
...t
|
|
559
|
-
}), u[e.name] =
|
|
560
|
+
}), u[e.name] = De(e), f.push({
|
|
560
561
|
name: e.name,
|
|
561
562
|
stations: n,
|
|
562
563
|
piles: r,
|
|
563
564
|
pileWarnCount: r.filter((e) => e.isWarn).length,
|
|
564
|
-
warnCount:
|
|
565
|
-
tags:
|
|
565
|
+
warnCount: ke(n),
|
|
566
|
+
tags: Oe(t)
|
|
566
567
|
});
|
|
567
568
|
let a = i ? "#ff4d4f" : "#52c41a";
|
|
568
569
|
s.push({
|
|
@@ -571,14 +572,14 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
571
572
|
itemStyle: { color: a },
|
|
572
573
|
label: { color: a }
|
|
573
574
|
});
|
|
574
|
-
}),
|
|
575
|
-
},
|
|
575
|
+
}), S.value = u, C.value = f, b.value = ["全部", ...f.map((e) => e.name)], b.value.includes(y.value) || (y.value = "全部"), jt(y.value), It(), c.value = Ae(l), L(), l.length > 0 && se(), je(s);
|
|
576
|
+
}, pe = (e) => {
|
|
576
577
|
i("toMapView", {
|
|
577
578
|
lng: e.longitude ? Number(e.longitude) : Number(e.x),
|
|
578
579
|
lat: e.latitude ? Number(e.latitude) : Number(e.y),
|
|
579
580
|
zoom: 11
|
|
580
581
|
});
|
|
581
|
-
},
|
|
582
|
+
}, W = async () => {
|
|
582
583
|
d.value = !0;
|
|
583
584
|
let e = await ee({
|
|
584
585
|
appKey: r.appKey,
|
|
@@ -590,38 +591,37 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
590
591
|
isFormData: r.ids.pieNumber.isFormData
|
|
591
592
|
});
|
|
592
593
|
console.log(e), d.value = !1, a.value = e.data.result.output || [];
|
|
593
|
-
},
|
|
594
|
+
}, G = (e) => {
|
|
594
595
|
let t = Number(e);
|
|
595
596
|
return t < 999999 && t > -999999;
|
|
596
|
-
},
|
|
597
|
+
}, me = (e, t, n = 1) => {
|
|
597
598
|
let r = Number(e);
|
|
598
|
-
return
|
|
599
|
-
},
|
|
599
|
+
return G(r) ? `${r.toFixed(n)}${t}` : "";
|
|
600
|
+
}, he = (e) => {
|
|
600
601
|
let t = Number(e);
|
|
601
|
-
return
|
|
602
|
-
},
|
|
602
|
+
return G(t) ? `${(t / 1e3).toFixed(1)}km` : "";
|
|
603
|
+
}, ge = (e, t = 1) => {
|
|
603
604
|
let n = Number(e);
|
|
604
|
-
return
|
|
605
|
-
},
|
|
605
|
+
return G(n) ? n.toFixed(t) : "--";
|
|
606
|
+
}, _e = (e) => {
|
|
606
607
|
let t = Number(e);
|
|
607
|
-
return
|
|
608
|
-
},
|
|
608
|
+
return G(t) ? (t / 1e3).toFixed(1) : "--";
|
|
609
|
+
}, Y = (e) => e?.iswarnrainfall_1h === 1 || e?.iswarntemp === 1 || e?.iswarnvis === 1, ve = (e) => e?.zdzds?.iswarnpre === 1 || e?.zdzds?.iswarntemp === 1 || e?.zdzds?.iswarnvis === 1, ye = (e) => e?.Name || e?.name || e?.column || "--", Q = (e, t = 1) => {
|
|
609
610
|
let n = Number(e);
|
|
610
|
-
return
|
|
611
|
-
},
|
|
612
|
-
let t = e?.zdzds || {};
|
|
613
|
-
return t.iswarnpre === 1 ? "降水:40mm" : t.iswarntemp === 1 ? `温度:${Se(t.temperature, "℃")}` : t.iswarnvis === 1 ? `能见度:${Se(t.visibility_min, "m")}` : "无";
|
|
614
|
-
}, we = (e) => e.some((e) => e.warn), Te = (e, t) => [...e].sort((e, n) => Number(t(n)) - Number(t(e))), Ee = (e) => {
|
|
611
|
+
return G(n) ? n.toFixed(t) : "--";
|
|
612
|
+
}, $ = (e) => e.some((e) => e.warn), be = (e, t) => [...e].sort((e, n) => Number(t(n)) - Number(t(e))), xe = (e) => {
|
|
615
613
|
let t = (e || []).find((e) => (e?.zdzds || []).length)?.zdzds?.[0]?.observation_time;
|
|
616
614
|
return t ? `自动站观测时间:${String(t).replace("T", " ").slice(0, 13)}时` : "自动站观测时间:--";
|
|
617
|
-
},
|
|
618
|
-
pileNo:
|
|
619
|
-
isWarn:
|
|
620
|
-
|
|
615
|
+
}, Se = (e) => be((e || []).map((e) => ({
|
|
616
|
+
pileNo: ye(e),
|
|
617
|
+
isWarn: ve(e),
|
|
618
|
+
rainfall: Q(e?.zdzds?.rainfall_1h),
|
|
619
|
+
temperature: Q(e?.zdzds?.temperature),
|
|
620
|
+
visibility: _e(e?.zdzds?.visibility_min),
|
|
621
621
|
x: e?.x,
|
|
622
622
|
y: e?.y
|
|
623
|
-
})), (e) => e.isWarn),
|
|
624
|
-
let t = e.zdzds || [], n = e.zhds || [], r =
|
|
623
|
+
})), (e) => e.isWarn), Ce = () => y.value === "全部" ? C.value.flatMap((e) => e.stations || []) : C.value.find((e) => e.name === y.value)?.stations || [], we = (e, t, n) => e.find((e) => e?.[t] === 1 && G(e?.[n])) || e.find((e) => e?.[t] === 1), Te = (e, t) => (e || []).find((e) => e?.zdzds?.[t] === 1), Ee = (e) => {
|
|
624
|
+
let t = e.zdzds || [], n = e.zhds || [], r = we(t, "iswarnrainfall_1h", "rainfall_1h"), i = we(t, "iswarntemp", "temperature"), a = we(t, "iswarnvis", "visibility_min"), o = Te(n, "iswarnpre"), s = Te(n, "iswarntemp"), c = Te(n, "iswarnvis");
|
|
625
625
|
return {
|
|
626
626
|
iswarnrainfall_1h: r || o ? 1 : 0,
|
|
627
627
|
iswarntemp: i || s ? 1 : 0,
|
|
@@ -633,7 +633,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
633
633
|
tempWarnPile: s,
|
|
634
634
|
visWarnPile: c
|
|
635
635
|
};
|
|
636
|
-
},
|
|
636
|
+
}, De = (e) => {
|
|
637
637
|
let t = e.layer_name;
|
|
638
638
|
return {
|
|
639
639
|
oneLayer: {
|
|
@@ -644,33 +644,33 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
644
644
|
visible: !0,
|
|
645
645
|
zIndex: 200
|
|
646
646
|
};
|
|
647
|
-
},
|
|
647
|
+
}, Oe = (e) => [
|
|
648
648
|
{
|
|
649
649
|
label: "降水",
|
|
650
650
|
warn: e.iswarnrainfall_1h === 1,
|
|
651
|
-
value: e.iswarnrainfall_1h ?
|
|
651
|
+
value: e.iswarnrainfall_1h ? me(e.rainfallWarnStation?.rainfall_1h, "mm", 1) : ""
|
|
652
652
|
},
|
|
653
653
|
{
|
|
654
654
|
label: "温度",
|
|
655
655
|
warn: e.iswarntemp === 1,
|
|
656
|
-
value: e.iswarntemp ?
|
|
656
|
+
value: e.iswarntemp ? me(e.tempWarnStation?.temperature, "℃", 1) : ""
|
|
657
657
|
},
|
|
658
658
|
{
|
|
659
659
|
label: "能见度",
|
|
660
660
|
warn: e.iswarnvis === 1,
|
|
661
|
-
value: e.iswarnvis ?
|
|
661
|
+
value: e.iswarnvis ? he(e.visWarnStation?.visibility_min) : ""
|
|
662
662
|
}
|
|
663
|
-
],
|
|
663
|
+
], ke = (e) => ({
|
|
664
664
|
rainfall: e.filter((e) => e?.iswarnrainfall_1h === 1).length,
|
|
665
665
|
temp: e.filter((e) => e?.iswarntemp === 1).length,
|
|
666
666
|
vis: e.filter((e) => e?.iswarnvis === 1).length
|
|
667
|
-
}),
|
|
667
|
+
}), Ae = (e) => e.length ? `当前${e.map((e) => {
|
|
668
668
|
let t = [];
|
|
669
669
|
return e.iswarnrainfall_1h && t.push("降水"), e.iswarntemp && t.push("温度"), e.iswarnvis && t.push("能见度"), `${e.name}高速${t.join("、")}报警`;
|
|
670
|
-
}).join(",")},请合理安排出行!` : Ct,
|
|
670
|
+
}).join(",")},请合理安排出行!` : Ct, je = (e) => {
|
|
671
671
|
let t = document.querySelector(".HighwayLiveAlarmNew-chart");
|
|
672
672
|
if (!t) return;
|
|
673
|
-
m.value ||=
|
|
673
|
+
m.value ||= ie(t);
|
|
674
674
|
let n = {
|
|
675
675
|
tooltip: {
|
|
676
676
|
trigger: "item",
|
|
@@ -699,12 +699,12 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
699
699
|
}]
|
|
700
700
|
};
|
|
701
701
|
m.value.setOption(n);
|
|
702
|
-
},
|
|
703
|
-
h.value = e, e === "chart" && (await
|
|
704
|
-
},
|
|
702
|
+
}, Me = async (e) => {
|
|
703
|
+
h.value = e, e === "chart" && (await le(), m.value?.resize());
|
|
704
|
+
}, wt = (e) => e === "全部" ? Object.values(S.value) : S.value[e] ? [S.value[e]] : [], Tt = () => y.value === "全部" ? o.value : o.value.filter((e) => e.name === y.value), Et = (e) => e?.pointds || e?.pointds$1 || [], Dt = (e, t) => (t === e.length - 1 ? [e[t - 1], e[t]] : [e[t], e[t + 1]]).filter(Boolean).map((e) => ({
|
|
705
705
|
lng: Number(e.x ?? e.longitude),
|
|
706
706
|
lat: Number(e.y ?? e.latitude)
|
|
707
|
-
})).filter((e) => Number.isFinite(e.lng) && Number.isFinite(e.lat)),
|
|
707
|
+
})).filter((e) => Number.isFinite(e.lng) && Number.isFinite(e.lat)), Ot = (e, t) => {
|
|
708
708
|
let n = [
|
|
709
709
|
t?.station_number,
|
|
710
710
|
t?.stationid,
|
|
@@ -725,13 +725,13 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
725
725
|
let a = Number(e?.x ?? e?.longitude), o = Number(e?.y ?? e?.latitude);
|
|
726
726
|
return Number.isFinite(r) && Number.isFinite(i) && Number.isFinite(a) && Number.isFinite(o) && a === r && o === i;
|
|
727
727
|
});
|
|
728
|
-
},
|
|
728
|
+
}, kt = () => {
|
|
729
729
|
i("removeLine", "line_HighwayLiveAlarmNew");
|
|
730
730
|
let e = { lineArr: [] }, t = /* @__PURE__ */ new Set();
|
|
731
|
-
if (
|
|
732
|
-
let r =
|
|
731
|
+
if (Tt().forEach((n) => {
|
|
732
|
+
let r = Et(n);
|
|
733
733
|
if (r.length < 2) return;
|
|
734
|
-
let i = [...(n.zdzds || []).filter((e) =>
|
|
734
|
+
let i = [...(n.zdzds || []).filter((e) => Y(e)), ...(n.zhds || []).filter((e) => ve(e))].map((e) => Ot(r, e)).filter((e) => e >= 0).sort((e, t) => e - t).filter((e, t, n) => t === 0 || e !== n[t - 1]);
|
|
735
735
|
if (!i.length) return;
|
|
736
736
|
let a = (n) => {
|
|
737
737
|
if (n.length !== 2) return;
|
|
@@ -745,7 +745,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
745
745
|
}));
|
|
746
746
|
};
|
|
747
747
|
if (i.length === 1) {
|
|
748
|
-
a(
|
|
748
|
+
a(Dt(r, i[0]));
|
|
749
749
|
return;
|
|
750
750
|
}
|
|
751
751
|
for (let e = 0; e < i.length - 1; e++) a([r[i[e]], r[i[e + 1]]].filter(Boolean).map((e) => ({
|
|
@@ -757,20 +757,20 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
757
757
|
removeLine: "line_HighwayLiveAlarmNew",
|
|
758
758
|
mapLine: e
|
|
759
759
|
});
|
|
760
|
-
},
|
|
761
|
-
let e =
|
|
762
|
-
e && (t[e.name] = !0, n[e.name] = !1, r[e.name] = !0),
|
|
763
|
-
},
|
|
764
|
-
|
|
760
|
+
}, At = () => {
|
|
761
|
+
let e = ce.value.find((e) => $(e.tags)), t = {}, n = {}, r = {};
|
|
762
|
+
e && (t[e.name] = !0, n[e.name] = !1, r[e.name] = !0), w.value = t, T.value = n, E.value = r;
|
|
763
|
+
}, jt = (e) => {
|
|
764
|
+
y.value = e, At(), i("removeLayers", Object.values(S.value).map((e) => e.name)), setTimeout(() => {
|
|
765
765
|
i("addLayers", {
|
|
766
|
-
layers:
|
|
766
|
+
layers: wt(e),
|
|
767
767
|
isRemove: !0
|
|
768
768
|
});
|
|
769
|
-
}, 1e3),
|
|
770
|
-
},
|
|
769
|
+
}, 1e3), Ft(), kt();
|
|
770
|
+
}, Mt = () => s[g.value], Nt = (e, t) => {
|
|
771
771
|
let n = Number(e?.[t]);
|
|
772
|
-
return
|
|
773
|
-
},
|
|
772
|
+
return G(n) ? t === "visibility_min" ? (n / 1e3).toString() : String(e?.[t]) : "";
|
|
773
|
+
}, Pt = (e, t, n) => `
|
|
774
774
|
<div style='display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;'>
|
|
775
775
|
<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;'>
|
|
776
776
|
${t}${n}
|
|
@@ -780,7 +780,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
780
780
|
${e.station_name || "--"}
|
|
781
781
|
</div>
|
|
782
782
|
</div>
|
|
783
|
-
`,
|
|
783
|
+
`, Ft = () => {
|
|
784
784
|
let e = {
|
|
785
785
|
clickOpen: !1,
|
|
786
786
|
spotObject: [{
|
|
@@ -795,9 +795,9 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
795
795
|
}],
|
|
796
796
|
drawArrObj: [],
|
|
797
797
|
onlyLayerID: "station_highway"
|
|
798
|
-
}, t =
|
|
799
|
-
|
|
800
|
-
let i =
|
|
798
|
+
}, t = Mt(), n = t.field, r = t.unit;
|
|
799
|
+
Ce().forEach((t) => {
|
|
800
|
+
let i = Pt(t, Nt(t, n), r), a = {
|
|
801
801
|
lng: t.longitude,
|
|
802
802
|
lat: t.latitude,
|
|
803
803
|
htmlString: i,
|
|
@@ -809,7 +809,7 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
809
809
|
mapMarker: e,
|
|
810
810
|
removeMarker: "station_highway"
|
|
811
811
|
});
|
|
812
|
-
},
|
|
812
|
+
}, It = () => {
|
|
813
813
|
if (!_.value) return i("removeMarker", "pile_highway");
|
|
814
814
|
let e = {
|
|
815
815
|
clickOpen: !0,
|
|
@@ -868,87 +868,87 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
868
868
|
mapMarker: e,
|
|
869
869
|
removeMarker: "pile_highway"
|
|
870
870
|
});
|
|
871
|
-
},
|
|
872
|
-
let t = !!
|
|
873
|
-
|
|
874
|
-
},
|
|
871
|
+
}, Lt = (e) => {
|
|
872
|
+
let t = !!w.value[e];
|
|
873
|
+
w.value[e] = !t, t || (T.value[e] = !1, E.value[e] = !0);
|
|
874
|
+
}, Rt = (e) => {
|
|
875
|
+
T.value[e] = !T.value[e];
|
|
876
|
+
}, zt = (e) => {
|
|
875
877
|
E.value[e] = !E.value[e];
|
|
876
|
-
},
|
|
877
|
-
D.value[e] = !D.value[e];
|
|
878
|
-
}, Wt = () => {
|
|
878
|
+
}, Bt = () => {
|
|
879
879
|
i("close", "HighwayLiveAlarmNew");
|
|
880
880
|
};
|
|
881
881
|
return (e, t) => {
|
|
882
|
-
let r = Ne, i = ae, a =
|
|
883
|
-
return
|
|
884
|
-
|
|
882
|
+
let r = Ne, i = ae, a = re, o = u, s = f, p = l, m = te;
|
|
883
|
+
return Z((V(), N("div", Fe, [
|
|
884
|
+
v.value ? (V(), N("div", Ie, [P("div", { class: "voice-permission-dialog" }, [
|
|
885
885
|
t[5] ||= P("div", { class: "voice-permission-title" }, "播报报警需要授权", -1),
|
|
886
886
|
t[6] ||= P("div", { class: "voice-permission-desc" }, "请点击下方按钮开启播报报警", -1),
|
|
887
887
|
P("button", {
|
|
888
888
|
class: "voice-permission-btn",
|
|
889
|
-
onClick:
|
|
889
|
+
onClick: R
|
|
890
890
|
}, "开启")
|
|
891
891
|
])])) : M("", !0),
|
|
892
892
|
P("div", Le, [P("div", Re, [t[7] ||= P("div", null, "沿线高速公路实况报警", -1), P("div", ze, [P("div", Be, [P("button", {
|
|
893
|
-
class:
|
|
894
|
-
onClick: t[0] ||= (e) =>
|
|
893
|
+
class: B(["switch-btn", { active: h.value === "chart" }]),
|
|
894
|
+
onClick: t[0] ||= (e) => Me("chart")
|
|
895
895
|
}, " 图表 ", 2), P("button", {
|
|
896
|
-
class:
|
|
897
|
-
onClick: t[1] ||= (e) =>
|
|
896
|
+
class: B(["switch-btn", { active: h.value === "table" }]),
|
|
897
|
+
onClick: t[1] ||= (e) => Me("table")
|
|
898
898
|
}, " 表格 ", 2)]), P("div", {
|
|
899
899
|
class: "closeBtn",
|
|
900
|
-
onClick:
|
|
900
|
+
onClick: Bt,
|
|
901
901
|
title: "关闭"
|
|
902
902
|
})])]), t[8] ||= P("img", {
|
|
903
903
|
class: "HighwayLiveAlarmNew-head-line",
|
|
904
904
|
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",
|
|
905
905
|
alt: ""
|
|
906
906
|
}, null, -1)]),
|
|
907
|
-
|
|
907
|
+
Z(P("div", {
|
|
908
908
|
class: "HighwayLiveAlarmNew-summary",
|
|
909
|
-
style:
|
|
910
|
-
},
|
|
911
|
-
|
|
912
|
-
|
|
909
|
+
style: ue({ color: ne.value })
|
|
910
|
+
}, K(c.value), 5), [[J, h.value === "chart"]]),
|
|
911
|
+
Z(P("div", Ve, null, 512), [[J, h.value === "chart"]]),
|
|
912
|
+
Z(P("div", He, [P("div", Ue, [
|
|
913
913
|
P("div", We, [t[10] ||= P("span", { class: "setting-label" }, "桩号展示:", -1), P("div", Ge, [I(r, {
|
|
914
914
|
modelValue: _.value,
|
|
915
915
|
"onUpdate:modelValue": t[2] ||= (e) => _.value = e,
|
|
916
916
|
class: "pile-checkbox",
|
|
917
|
-
onChange:
|
|
917
|
+
onChange: It
|
|
918
918
|
}, {
|
|
919
|
-
default:
|
|
919
|
+
default: X(() => [...t[9] ||= [F(" 显示 ", -1)]]),
|
|
920
920
|
_: 1
|
|
921
921
|
}, 8, ["modelValue"])])]),
|
|
922
922
|
P("div", Ke, [t[14] ||= P("span", { class: "setting-label" }, "地图要素:", -1), I(a, {
|
|
923
923
|
modelValue: g.value,
|
|
924
924
|
"onUpdate:modelValue": t[3] ||= (e) => g.value = e,
|
|
925
925
|
class: "setting-radios",
|
|
926
|
-
onChange:
|
|
926
|
+
onChange: Ft
|
|
927
927
|
}, {
|
|
928
|
-
default:
|
|
928
|
+
default: X(() => [
|
|
929
929
|
I(i, { value: "降水" }, {
|
|
930
|
-
default:
|
|
930
|
+
default: X(() => [...t[11] ||= [F("降水", -1)]]),
|
|
931
931
|
_: 1
|
|
932
932
|
}),
|
|
933
933
|
I(i, { value: "温度" }, {
|
|
934
|
-
default:
|
|
934
|
+
default: X(() => [...t[12] ||= [F("温度", -1)]]),
|
|
935
935
|
_: 1
|
|
936
936
|
}),
|
|
937
937
|
I(i, { value: "能见度" }, {
|
|
938
|
-
default:
|
|
938
|
+
default: X(() => [...t[13] ||= [F("能见度", -1)]]),
|
|
939
939
|
_: 1
|
|
940
940
|
})
|
|
941
941
|
]),
|
|
942
942
|
_: 1
|
|
943
943
|
}, 8, ["modelValue"])]),
|
|
944
944
|
P("div", qe, [t[15] ||= P("span", { class: "setting-label" }, "路线地图:", -1), I(s, {
|
|
945
|
-
modelValue:
|
|
946
|
-
"onUpdate:modelValue": t[4] ||= (e) =>
|
|
945
|
+
modelValue: y.value,
|
|
946
|
+
"onUpdate:modelValue": t[4] ||= (e) => y.value = e,
|
|
947
947
|
placeholder: "请选择路线",
|
|
948
948
|
class: "dark-select",
|
|
949
|
-
onChange:
|
|
949
|
+
onChange: jt
|
|
950
950
|
}, {
|
|
951
|
-
default:
|
|
951
|
+
default: X(() => [(V(!0), N(A, null, U(b.value, (e) => (V(), oe(o, {
|
|
952
952
|
key: e,
|
|
953
953
|
label: e,
|
|
954
954
|
value: e
|
|
@@ -956,69 +956,79 @@ var Pe = "data:audio/mpeg;base64,SUQzBAAAAAAAfVRYWFgAAAAZAAADY29tbWVudAB3d3cuaWd
|
|
|
956
956
|
_: 1
|
|
957
957
|
}, 8, ["modelValue"])])
|
|
958
958
|
])], 512), [[J, h.value === "table"]]),
|
|
959
|
-
|
|
959
|
+
Z(P("div", Je, [t[26] ||= P("div", { class: "table-head" }, [
|
|
960
960
|
P("span", null, "高速名称"),
|
|
961
961
|
P("span", null, "状态要素"),
|
|
962
962
|
P("span", { class: "head-arrow" })
|
|
963
|
-
], -1), P("div", Ye, [(
|
|
963
|
+
], -1), P("div", Ye, [(V(!0), N(A, null, U(ce.value, (e) => (V(), N("div", {
|
|
964
964
|
class: "table-row",
|
|
965
965
|
key: e.name
|
|
966
966
|
}, [
|
|
967
967
|
P("div", {
|
|
968
968
|
class: "table-row-main",
|
|
969
|
-
onClick: (t) =>
|
|
969
|
+
onClick: (t) => Lt(e.name)
|
|
970
970
|
}, [
|
|
971
|
-
P("span", Ze,
|
|
972
|
-
P("div", { class:
|
|
973
|
-
class:
|
|
971
|
+
P("span", Ze, K(e.name), 1),
|
|
972
|
+
P("div", { class: B(["status-tags", { "has-warn": $(e.tags) }]) }, [(V(!0), N(A, null, U(e.tags, (t) => (V(), N("span", {
|
|
973
|
+
class: B(["status-tag", { warn: t.warn }]),
|
|
974
974
|
key: `${e.name}-${t.label}`
|
|
975
|
-
}, [P("span", null,
|
|
975
|
+
}, [P("span", null, K(t.label), 1)], 2))), 128))], 2),
|
|
976
976
|
P("span", {
|
|
977
|
-
class:
|
|
977
|
+
class: B(["expand-arrow", { expanded: w.value[e.name] }]),
|
|
978
978
|
"aria-hidden": "true"
|
|
979
979
|
}, [I(p, null, {
|
|
980
|
-
default:
|
|
980
|
+
default: X(() => [I(q(n))]),
|
|
981
981
|
_: 1
|
|
982
982
|
})], 2)
|
|
983
983
|
], 8, Xe),
|
|
984
|
-
|
|
984
|
+
Z(P("div", {
|
|
985
985
|
class: "station-title",
|
|
986
|
-
onClick: (t) =>
|
|
987
|
-
}, [P("span", null, [t[16] ||= F(" 自动站数据 ", -1),
|
|
988
|
-
default:
|
|
986
|
+
onClick: (t) => Rt(e.name)
|
|
987
|
+
}, [P("span", null, [t[16] ||= F(" 自动站数据 ", -1), O(e.stations) > 0 ? (V(), N("span", $e, " (报警数量:" + K(O(e.stations)) + "个) ", 1)) : M("", !0)]), P("span", { class: B(["panel-arrow", { expanded: T.value[e.name] }]) }, [I(p, null, {
|
|
988
|
+
default: X(() => [I(q(n))]),
|
|
989
989
|
_: 1
|
|
990
|
-
})], 2)], 8, Qe), [[J,
|
|
991
|
-
|
|
990
|
+
})], 2)], 8, Qe), [[J, w.value[e.name]]]),
|
|
991
|
+
Z(P("div", et, [P("div", tt, [
|
|
992
992
|
t[23] ||= P("span", null, "站名", -1),
|
|
993
|
-
P("span", nt, [P("span", rt, [t[17] ||= F(" 降水 ", -1), e.warnCount.rainfall > 0 ? (
|
|
994
|
-
P("span", at, [P("span", ot, [t[19] ||= F(" 温度 ", -1), e.warnCount.temp > 0 ? (
|
|
995
|
-
P("span", ct, [P("span", lt, [t[21] ||= F(" 能见度 ", -1), e.warnCount.vis > 0 ? (
|
|
996
|
-
]), e.stations.length ? (
|
|
997
|
-
class:
|
|
993
|
+
P("span", nt, [P("span", rt, [t[17] ||= F(" 降水 ", -1), e.warnCount.rainfall > 0 ? (V(), N("span", it, K(e.warnCount.rainfall) + "条 ", 1)) : M("", !0)]), t[18] ||= P("span", { class: "unit" }, "(mm)", -1)]),
|
|
994
|
+
P("span", at, [P("span", ot, [t[19] ||= F(" 温度 ", -1), e.warnCount.temp > 0 ? (V(), N("span", st, K(e.warnCount.temp) + "条 ", 1)) : M("", !0)]), t[20] ||= P("span", { class: "unit" }, "(℃)", -1)]),
|
|
995
|
+
P("span", ct, [P("span", lt, [t[21] ||= F(" 能见度 ", -1), e.warnCount.vis > 0 ? (V(), N("span", ut, K(e.warnCount.vis) + "条 ", 1)) : M("", !0)]), t[22] ||= P("span", { class: "unit" }, "(km)", -1)])
|
|
996
|
+
]), e.stations.length ? (V(), N("div", dt, [(V(!0), N(A, null, U(e.stations, (t) => (V(), N("div", {
|
|
997
|
+
class: B(["station-row", { "is-warn": Y(t) }]),
|
|
998
998
|
key: `${e.name}-${t.station_number}`,
|
|
999
|
-
onClick: (e) =>
|
|
999
|
+
onClick: (e) => pe(t)
|
|
1000
1000
|
}, [
|
|
1001
|
-
P("span", null,
|
|
1002
|
-
P("span", pt,
|
|
1003
|
-
P("span", mt,
|
|
1004
|
-
P("span", ht,
|
|
1005
|
-
], 10, ft))), 128))])) : (
|
|
1006
|
-
|
|
1001
|
+
P("span", null, K(t.station_name || "--"), 1),
|
|
1002
|
+
P("span", pt, K(ge(t.rainfall_1h)), 1),
|
|
1003
|
+
P("span", mt, K(ge(t.temperature)), 1),
|
|
1004
|
+
P("span", ht, K(_e(t.visibility_min)), 1)
|
|
1005
|
+
], 10, ft))), 128))])) : (V(), N("div", gt, "暂无站点数据"))], 512), [[J, w.value[e.name] && T.value[e.name]]]),
|
|
1006
|
+
Z(P("div", {
|
|
1007
1007
|
class: "pile-title",
|
|
1008
|
-
onClick: (t) =>
|
|
1009
|
-
}, [P("span", null, [t[24] ||= F(" 桩号数据 ", -1), e.pileWarnCount > 0 ? (
|
|
1010
|
-
default:
|
|
1008
|
+
onClick: (t) => zt(e.name)
|
|
1009
|
+
}, [P("span", null, [t[24] ||= F(" 桩号数据 ", -1), e.pileWarnCount > 0 ? (V(), N("span", vt, " (报警数量:" + K(e.pileWarnCount) + "个)", 1)) : M("", !0)]), P("span", { class: B(["panel-arrow", { expanded: E.value[e.name] }]) }, [I(p, null, {
|
|
1010
|
+
default: X(() => [I(q(n))]),
|
|
1011
1011
|
_: 1
|
|
1012
|
-
})], 2)], 8, _t), [[J,
|
|
1013
|
-
|
|
1014
|
-
|
|
1012
|
+
})], 2)], 8, _t), [[J, w.value[e.name]]]),
|
|
1013
|
+
Z(P("div", yt, [t[25] ||= P("div", { class: "pile-head" }, [
|
|
1014
|
+
P("span", null, "桩号"),
|
|
1015
|
+
P("span", null, "降水"),
|
|
1016
|
+
P("span", null, "温度"),
|
|
1017
|
+
P("span", null, "能见度")
|
|
1018
|
+
], -1), e.piles.length ? (V(), N("div", bt, [(V(!0), N(A, null, U(e.piles, (e) => (V(), N("div", {
|
|
1019
|
+
class: B(["pile-row", { "is-warn": e.isWarn }]),
|
|
1015
1020
|
key: e.pileNo,
|
|
1016
|
-
onClick: (t) =>
|
|
1017
|
-
}, [
|
|
1021
|
+
onClick: (t) => pe(e)
|
|
1022
|
+
}, [
|
|
1023
|
+
P("span", null, K(e.pileNo), 1),
|
|
1024
|
+
P("span", null, K(e.rainfall), 1),
|
|
1025
|
+
P("span", null, K(e.temperature), 1),
|
|
1026
|
+
P("span", null, K(e.visibility), 1)
|
|
1027
|
+
], 10, xt))), 128))])) : (V(), N("div", St, "暂无数据"))], 512), [[J, w.value[e.name] && E.value[e.name]]])
|
|
1018
1028
|
]))), 128))])], 512), [[J, h.value === "table"]])
|
|
1019
1029
|
])), [[m, d.value]]);
|
|
1020
1030
|
};
|
|
1021
1031
|
}
|
|
1022
|
-
}), [["__scopeId", "data-v-
|
|
1032
|
+
}), [["__scopeId", "data-v-9c491c34"]]);
|
|
1023
1033
|
//#endregion
|
|
1024
1034
|
export { Ne as n, wt as t };
|