nxd-plugin 1.7.43 → 1.7.46

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.
Files changed (42) hide show
  1. package/dist/chunks/{component-AqiMonitor-TeQstcwX.mjs → component-AqiMonitor-n1rMcUkd.mjs} +322 -1911
  2. package/dist/chunks/{component-HighWayEarlyWarningRed-DUSkc5Gq.mjs → component-HighWayEarlyWarningRed-BnJyShce.mjs} +18 -16
  3. package/dist/chunks/component-HighWayFreeze-BOV33QgS.mjs +183 -0
  4. package/dist/chunks/{component-HighwayLiveAlarm-niFJdKW9.mjs → component-HighwayLiveAlarm-D_lIKhkC.mjs} +10150 -10668
  5. package/dist/chunks/{component-HighwayLiveAlarmNew-B-434mfg.mjs → component-HighwayLiveAlarmNew-BfK7FOLK.mjs} +253 -652
  6. package/dist/chunks/component-HighwayStations-Cmjb6MHu.mjs +218 -0
  7. package/dist/chunks/{component-HighwayWeatherForecast-81Gh4M5v.mjs → component-HighwayWeatherForecast-ByPDymqX.mjs} +159 -158
  8. package/dist/chunks/{component-ImageGeneration-DiYbqjwN.mjs → component-ImageGeneration-SPM2CN6K.mjs} +5071 -7620
  9. package/dist/chunks/{component-LithiumBatteryMiningArea-BD-Yp6C8.mjs → component-LithiumBatteryMiningArea-C1KfrHaF.mjs} +51 -48
  10. package/dist/chunks/{component-MapPopup-FAIPuiTd.mjs → component-MapPopup-B2f0tnVu.mjs} +1 -1
  11. package/dist/chunks/{component-PieLegend-DMyswbHi.mjs → component-PieLegend-w1YvpVaB.mjs} +1 -1
  12. package/dist/chunks/{component-RadarChart-BQiq16nx.mjs → component-RadarChart-Dnjp4cbb.mjs} +11 -11
  13. package/dist/chunks/{component-RadarLegend-CFR9njq7.mjs → component-RadarLegend-Coihcxje.mjs} +1 -1
  14. package/dist/chunks/{component-RadarShortTerm-BVj7Jx05.mjs → component-RadarShortTerm-BlI00kHC.mjs} +75 -75
  15. package/dist/chunks/{component-RadarTime-Xnv8piO_.mjs → component-RadarTime-BnWNJDq1.mjs} +14 -14
  16. package/dist/chunks/{component-ServiceMaterial-NQJP1tCA.mjs → component-ServiceMaterial-trvjXwHN.mjs} +1 -1
  17. package/dist/chunks/{component-ServiceMaterialsBtn-959d5IJI.mjs → component-ServiceMaterialsBtn-C1ud7xtc.mjs} +34 -556
  18. package/dist/chunks/{component-TimeBasedForecast-BZ9YrmMt.mjs → component-TimeBasedForecast-DR7FkXAn.mjs} +69 -68
  19. package/dist/chunks/{component-WarningLine-DzD4jX2_.mjs → component-WarningLine-CWqiXdhZ.mjs} +2 -2
  20. package/dist/chunks/{component-WarningSignal-DfRZj6R5.mjs → component-WarningSignal-CtyCcjNo.mjs} +75 -74
  21. package/dist/chunks/component-WeatherForecast-DTGpJVhm.mjs +209 -0
  22. package/dist/chunks/component-YCHome-DeLwwN9F.mjs +426 -0
  23. package/dist/chunks/{component-YCLogin-D0BOD7Uj.mjs → component-YCLogin-DtjB2mai.mjs} +12 -9
  24. package/dist/chunks/{component-YCLoginNew-BIC_obt4.mjs → component-YCLoginNew-DDPai-9U.mjs} +35 -32
  25. package/dist/nxd-plugin.mjs +26 -26
  26. package/dist/styles/component-HighWayEarlyWarningRed.css +1 -1
  27. package/dist/styles/component-HighWayFreeze.css +1 -1
  28. package/dist/styles/component-HighwayLiveAlarm.css +1 -1
  29. package/dist/styles/component-HighwayLiveAlarmNew.css +1 -1
  30. package/dist/styles/component-HighwayStations.css +1 -1
  31. package/dist/styles/component-ImageGeneration.css +1 -1
  32. package/dist/styles/component-RadarShortTerm.css +1 -1
  33. package/dist/styles/component-ServiceMaterialsBtn.css +1 -1
  34. package/dist/styles/component-YCHome.css +1 -1
  35. package/dist/styles/component-YCLogin.css +1 -1
  36. package/dist/styles/component-YCLoginNew.css +1 -1
  37. package/package.json +1 -1
  38. package/dist/chunks/component-HighWayFreeze-BmXHovFq.mjs +0 -4489
  39. package/dist/chunks/component-HighwayStations-Ds0mS1Tc.mjs +0 -32157
  40. package/dist/chunks/component-WeatherForecast-ChQEdik7.mjs +0 -209
  41. package/dist/chunks/component-YCHome-CY61OonH.mjs +0 -1430
  42. package/dist/components/HighwayStations/default.json.d.ts +0 -31945
@@ -0,0 +1,183 @@
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
+ "no-data-text": "暂无数据"
144
+ }, {
145
+ default: x(() => [(_(!0), l(a, null, y(L.value, (e) => (_(), s(o, {
146
+ key: e.name,
147
+ label: e.name,
148
+ value: e.name
149
+ }, null, 8, ["label", "value"]))), 128))]),
150
+ _: 1
151
+ }, 8, ["modelValue"])]),
152
+ u("div", T, [
153
+ t[5] ||= u("span", { class: "HighWayFreeze-label" }, "路段选择:", -1),
154
+ f(p, {
155
+ modelValue: I.value,
156
+ "onUpdate:modelValue": t[1] ||= (e) => I.value = e,
157
+ placeholder: "请选择路段",
158
+ class: "dark-select",
159
+ "no-data-text": "暂无数据"
160
+ }, {
161
+ default: x(() => [(_(!0), l(a, null, y(R.value, (e) => (_(), s(o, {
162
+ key: e,
163
+ label: e,
164
+ value: e
165
+ }, null, 8, ["label", "value"]))), 128))]),
166
+ _: 1
167
+ }, 8, ["modelValue"]),
168
+ u("button", {
169
+ type: "button",
170
+ class: "locate-btn",
171
+ onClick: X
172
+ }, "定位")
173
+ ]),
174
+ u("div", E, [u("div", D, [t[7] ||= 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)])])]), u("div", j, [(_(!0), l(a, null, y(V.value, (e) => (_(), l("div", {
175
+ class: m(["HighWayFreeze-table-row", { "is-warn": e.isWarn }]),
176
+ key: e.pileNo
177
+ }, [u("span", null, b(e.pileNo), 1), u("span", null, b(e.temperature), 1)], 2))), 128))])])
178
+ ])), [[h, P.value]]);
179
+ };
180
+ }
181
+ }), [["__scopeId", "data-v-706cd106"]]);
182
+ //#endregion
183
+ export { M as t };