nxd-plugin 1.7.42 → 1.7.45
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-AqiMonitor-DoGm_NCt.mjs → component-AqiMonitor-n1rMcUkd.mjs} +323 -1912
- package/dist/chunks/{component-HighWayEarlyWarningRed-D89gFa50.mjs → component-HighWayEarlyWarningRed-BnJyShce.mjs} +18 -16
- package/dist/chunks/component-HighWayFreeze-ByxdEM06.mjs +181 -0
- package/dist/chunks/{component-HighwayLiveAlarm-DMdnrD3c.mjs → component-HighwayLiveAlarm-D_lIKhkC.mjs} +10150 -10667
- package/dist/chunks/{component-HighwayLiveAlarmNew-W2DKwrPk.mjs → component-HighwayLiveAlarmNew-DbEuUJW6.mjs} +243 -649
- package/dist/chunks/component-HighwayStations-Cmjb6MHu.mjs +218 -0
- package/dist/chunks/{component-HighwayWeatherForecast-Dn6tjaR-.mjs → component-HighwayWeatherForecast-ByPDymqX.mjs} +159 -158
- package/dist/chunks/{component-ImageGeneration-9XdsjkaE.mjs → component-ImageGeneration-SPM2CN6K.mjs} +5010 -7558
- package/dist/chunks/{component-LithiumBatteryMiningArea-Dj1DMKuU.mjs → component-LithiumBatteryMiningArea-C1KfrHaF.mjs} +51 -48
- package/dist/chunks/{component-MapPopup-0uM1uyql.mjs → component-MapPopup-B2f0tnVu.mjs} +1 -1
- package/dist/chunks/{component-PieLegend-JVqrszxO.mjs → component-PieLegend-w1YvpVaB.mjs} +1 -1
- package/dist/chunks/{component-RadarChart-Dz5sm2q5.mjs → component-RadarChart-Dnjp4cbb.mjs} +11 -11
- package/dist/chunks/{component-RadarLegend-BKm_34Tm.mjs → component-RadarLegend-Coihcxje.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-CyMCE9wz.mjs → component-RadarShortTerm-BlI00kHC.mjs} +86 -85
- package/dist/chunks/{component-RadarTime--DUvLJh2.mjs → component-RadarTime-BnWNJDq1.mjs} +14 -14
- package/dist/chunks/{component-ServiceMaterial-D9i1nsOr.mjs → component-ServiceMaterial-trvjXwHN.mjs} +1 -1
- package/dist/chunks/{component-ServiceMaterialsBtn-DjUo4Hsx.mjs → component-ServiceMaterialsBtn-C1ud7xtc.mjs} +34 -556
- package/dist/chunks/{component-TimeBasedForecast-Bc4EOR8R.mjs → component-TimeBasedForecast-DR7FkXAn.mjs} +69 -68
- package/dist/chunks/{component-WarningLine-C5AGlCZR.mjs → component-WarningLine-CWqiXdhZ.mjs} +2 -2
- package/dist/chunks/{component-WarningSignal-BaKdzl4i.mjs → component-WarningSignal-CtyCcjNo.mjs} +75 -74
- package/dist/chunks/component-WeatherForecast-DTGpJVhm.mjs +209 -0
- package/dist/chunks/component-YCHome-DeLwwN9F.mjs +426 -0
- package/dist/chunks/{component-YCLogin-DWhvv-rf.mjs → component-YCLogin-DtjB2mai.mjs} +52 -47
- package/dist/chunks/component-YCLoginNew-DDPai-9U.mjs +183 -0
- package/dist/nxd-plugin.mjs +26 -26
- package/dist/styles/component-HighWayEarlyWarningRed.css +1 -1
- package/dist/styles/component-HighWayFreeze.css +1 -1
- package/dist/styles/component-HighwayLiveAlarm.css +1 -1
- package/dist/styles/component-HighwayLiveAlarmNew.css +1 -1
- package/dist/styles/component-HighwayStations.css +1 -1
- package/dist/styles/component-ImageGeneration.css +1 -1
- package/dist/styles/component-RadarShortTerm.css +1 -1
- package/dist/styles/component-ServiceMaterialsBtn.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 +3 -3
- package/dist/chunks/component-HighWayFreeze-C_Y5P0wN.mjs +0 -4730
- package/dist/chunks/component-HighwayStations-CNs3P4Vw.mjs +0 -32157
- package/dist/chunks/component-WeatherForecast-BzF3E06F.mjs +0 -209
- package/dist/chunks/component-YCHome-B2wOG1EV.mjs +0 -1768
- package/dist/chunks/component-YCLoginNew-CPPSTPXH.mjs +0 -178
- package/dist/components/HighwayStations/default.json.d.ts +0 -31945
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { n as e, r as t } from "./component-AqiMonitor-n1rMcUkd.mjs";
|
|
2
|
+
import { ElLoadingDirective as n, ElOption as r, ElSelect as i } from "element-plus/es";
|
|
3
|
+
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, normalizeClass as m, onBeforeUnmount as h, onMounted as g, openBlock as _, ref as v, renderList as y, toDisplayString as b, withCtx as x, withDirectives as S } from "vue";
|
|
4
|
+
import "element-plus/es/components/loading/style/css";
|
|
5
|
+
import "element-plus/es/components/select/style/css";
|
|
6
|
+
import "element-plus/es/components/option/style/css";
|
|
7
|
+
//#region src/components/HighWayFreeze/HighWayFreeze.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var C = {
|
|
9
|
+
class: "HighWayFreeze",
|
|
10
|
+
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
11
|
+
}, w = { class: "HighWayFreeze-row" }, T = { class: "HighWayFreeze-row" }, E = { class: "HighWayFreeze-table" }, D = { class: "HighWayFreeze-table-head" }, O = { class: "metric-head" }, k = { class: "label" }, A = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "warn-count"
|
|
14
|
+
}, j = { class: "HighWayFreeze-table-body" }, M = /* @__PURE__ */ e(/* @__PURE__ */ p({
|
|
15
|
+
__name: "HighWayFreeze",
|
|
16
|
+
props: {
|
|
17
|
+
appKey: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
20
|
+
},
|
|
21
|
+
appSalt: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
},
|
|
25
|
+
baseHttp: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: ""
|
|
28
|
+
},
|
|
29
|
+
ids: {
|
|
30
|
+
type: Object,
|
|
31
|
+
default: () => ({})
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
emits: [
|
|
35
|
+
"close",
|
|
36
|
+
"addLine",
|
|
37
|
+
"removeLine",
|
|
38
|
+
"toMapView"
|
|
39
|
+
],
|
|
40
|
+
setup(e, { emit: p }) {
|
|
41
|
+
let M = e, N = p, P = v(!1), F = v(""), I = v("上段"), L = v([]), R = v([
|
|
42
|
+
"上段",
|
|
43
|
+
"中段",
|
|
44
|
+
"下段"
|
|
45
|
+
]), z = v([]), B = v(null), V = o(() => J((z.value.find((e) => e.road_name === F.value && e.name === I.value)?.pointds || []).map((e, t) => ({
|
|
46
|
+
pileNo: `路线${t + 1}`,
|
|
47
|
+
temperature: q(e?.zdzds?.temperature),
|
|
48
|
+
isWarn: e?.zdzds?.iswarntemp === 1
|
|
49
|
+
})), (e) => e.isWarn)), H = o(() => V.value.filter((e) => e.isWarn).length);
|
|
50
|
+
g(() => {
|
|
51
|
+
U(), B.value = setInterval(() => {
|
|
52
|
+
U();
|
|
53
|
+
}, 1e3 * 60 * 10);
|
|
54
|
+
}), h(() => {
|
|
55
|
+
clearInterval(B.value);
|
|
56
|
+
});
|
|
57
|
+
let U = async () => {
|
|
58
|
+
await K();
|
|
59
|
+
}, W = () => {
|
|
60
|
+
N("close", "HighWayFreeze");
|
|
61
|
+
}, G = (e) => {
|
|
62
|
+
F.value = e;
|
|
63
|
+
let t = z.value.filter((e) => e.road_name === F.value);
|
|
64
|
+
t.some((e) => e.name === I.value) || (I.value = t[0]?.name || R.value[0]);
|
|
65
|
+
}, K = async () => {
|
|
66
|
+
P.value = !0;
|
|
67
|
+
let e = (await t({
|
|
68
|
+
appKey: M.appKey,
|
|
69
|
+
appSalt: M.appSalt,
|
|
70
|
+
id: M.ids.data.id,
|
|
71
|
+
variables: {},
|
|
72
|
+
baseHttp: M.baseHttp,
|
|
73
|
+
reqType: M.ids.data.reqType,
|
|
74
|
+
isFormData: M.ids.data.isFormData
|
|
75
|
+
})).data.result.ds || [];
|
|
76
|
+
console.log("道路结冰", e), z.value = e, L.value = [...new Set(e.map((e) => e.road_name))].filter(Boolean).map((e) => ({ name: e })), L.value.some((e) => e.name === F.value) || (F.value = L.value[0]?.name || "");
|
|
77
|
+
let n = e.filter((e) => e.road_name === F.value);
|
|
78
|
+
n.some((e) => e.name === I.value) || (I.value = n[0]?.name || R.value[0]), Y(), P.value = !1;
|
|
79
|
+
}, q = (e) => e == null || e === "" ? "--" : String(e), J = (e, t) => [...e].sort((e, n) => Number(t(n)) - Number(t(e))), Y = () => {
|
|
80
|
+
N("removeLine", "line_HighWayFreeze");
|
|
81
|
+
let e = { lineArr: [] };
|
|
82
|
+
if (z.value.forEach((t) => {
|
|
83
|
+
let n = t?.pointds || [], r = n.filter((e) => e?.zdzds?.iswarntemp === 1);
|
|
84
|
+
if (r.length >= 2) {
|
|
85
|
+
for (let t = 0; t < r.length - 1; t++) {
|
|
86
|
+
let n = [r[t], r[t + 1]].map((e) => ({
|
|
87
|
+
lng: Number(e.x),
|
|
88
|
+
lat: Number(e.y)
|
|
89
|
+
})).filter((e) => Number.isFinite(e.lng) && Number.isFinite(e.lat));
|
|
90
|
+
n.length === 2 && e.lineArr.push({
|
|
91
|
+
bAni: !1,
|
|
92
|
+
color: "#ff4d4f",
|
|
93
|
+
weight: 6,
|
|
94
|
+
lineJson: n,
|
|
95
|
+
otherData: { lineId: "line_HighWayFreeze" }
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
if (r.length !== 1) return;
|
|
101
|
+
let i = r[0], a = n.findIndex((e) => e.id === i.id), o = (a === n.length - 1 ? [n[a - 1], i] : [i, n[a + 1]]).filter(Boolean).map((e) => ({
|
|
102
|
+
lng: Number(e.x),
|
|
103
|
+
lat: Number(e.y)
|
|
104
|
+
})).filter((e) => Number.isFinite(e.lng) && Number.isFinite(e.lat));
|
|
105
|
+
o.length === 2 && e.lineArr.push({
|
|
106
|
+
bAni: !1,
|
|
107
|
+
color: "#ff4d4f",
|
|
108
|
+
weight: 4,
|
|
109
|
+
lineJson: o,
|
|
110
|
+
otherData: { lineId: "line_HighWayFreeze" }
|
|
111
|
+
});
|
|
112
|
+
}), !e.lineArr.length) return N("removeLine", "line_HighWayFreeze");
|
|
113
|
+
N("addLine", {
|
|
114
|
+
removeLine: "line_HighWayFreeze",
|
|
115
|
+
mapLine: e
|
|
116
|
+
});
|
|
117
|
+
}, X = () => {
|
|
118
|
+
let e = z.value.find((e) => e.road_name === F.value && e.name === I.value)?.pointds?.[0];
|
|
119
|
+
e && N("toMapView", {
|
|
120
|
+
lng: Number(e.x),
|
|
121
|
+
lat: Number(e.y),
|
|
122
|
+
zoom: 11
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
return (e, t) => {
|
|
126
|
+
let o = r, p = i, h = n;
|
|
127
|
+
return S((_(), l("div", C, [
|
|
128
|
+
u("div", { class: "HighWayFreeze-head" }, [u("div", { class: "HighWayFreeze-head-top" }, [t[2] ||= u("div", null, "隐患路段道路结冰实况报警", -1), u("div", {
|
|
129
|
+
class: "closeBtn",
|
|
130
|
+
onClick: W,
|
|
131
|
+
title: "关闭"
|
|
132
|
+
})]), t[3] ||= u("img", {
|
|
133
|
+
class: "HighWayFreeze-head-line",
|
|
134
|
+
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",
|
|
135
|
+
alt: ""
|
|
136
|
+
}, null, -1)]),
|
|
137
|
+
u("div", w, [t[4] ||= u("span", { class: "HighWayFreeze-label" }, "路线选择:", -1), f(p, {
|
|
138
|
+
modelValue: F.value,
|
|
139
|
+
"onUpdate:modelValue": t[0] ||= (e) => F.value = e,
|
|
140
|
+
placeholder: "请选择路线",
|
|
141
|
+
class: "dark-select",
|
|
142
|
+
onChange: G
|
|
143
|
+
}, {
|
|
144
|
+
default: x(() => [(_(!0), l(a, null, y(L.value, (e) => (_(), s(o, {
|
|
145
|
+
key: e.name,
|
|
146
|
+
label: e.name,
|
|
147
|
+
value: e.name
|
|
148
|
+
}, null, 8, ["label", "value"]))), 128))]),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 8, ["modelValue"])]),
|
|
151
|
+
u("div", T, [
|
|
152
|
+
t[5] ||= u("span", { class: "HighWayFreeze-label" }, "路段选择:", -1),
|
|
153
|
+
f(p, {
|
|
154
|
+
modelValue: I.value,
|
|
155
|
+
"onUpdate:modelValue": t[1] ||= (e) => I.value = e,
|
|
156
|
+
placeholder: "请选择路段",
|
|
157
|
+
class: "dark-select"
|
|
158
|
+
}, {
|
|
159
|
+
default: x(() => [(_(!0), l(a, null, y(R.value, (e) => (_(), s(o, {
|
|
160
|
+
key: e,
|
|
161
|
+
label: e,
|
|
162
|
+
value: e
|
|
163
|
+
}, null, 8, ["label", "value"]))), 128))]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, ["modelValue"]),
|
|
166
|
+
u("button", {
|
|
167
|
+
type: "button",
|
|
168
|
+
class: "locate-btn",
|
|
169
|
+
onClick: X
|
|
170
|
+
}, "定位")
|
|
171
|
+
]),
|
|
172
|
+
u("div", E, [u("div", D, [t[8] ||= u("span", null, "路段", -1), u("span", O, [u("span", k, [t[6] ||= d(" 温度 ", -1), H.value > 0 ? (_(), l("span", A, "报警:" + b(H.value) + "条", 1)) : c("", !0)]), t[7] ||= u("span", { class: "unit" }, "(℃)", -1)])]), u("div", j, [(_(!0), l(a, null, y(V.value, (e) => (_(), l("div", {
|
|
173
|
+
class: m(["HighWayFreeze-table-row", { "is-warn": e.isWarn }]),
|
|
174
|
+
key: e.pileNo
|
|
175
|
+
}, [u("span", null, b(e.pileNo), 1), u("span", null, b(e.temperature), 1)], 2))), 128))])])
|
|
176
|
+
])), [[h, P.value]]);
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
}), [["__scopeId", "data-v-9f1159ca"]]);
|
|
180
|
+
//#endregion
|
|
181
|
+
export { M as t };
|