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,218 @@
|
|
|
1
|
+
import { n as e, r as t } from "./component-AqiMonitor-n1rMcUkd.mjs";
|
|
2
|
+
import { ElLoadingDirective as n, ElOption as r, ElRadio as i, ElRadioGroup as a, ElSelect as o } from "element-plus/es";
|
|
3
|
+
import { Fragment as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, isRef as h, normalizeClass as g, onBeforeUnmount as _, onMounted as v, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, withCtx as w, withDirectives as T } from "vue";
|
|
4
|
+
import "element-plus/es/components/loading/style/css";
|
|
5
|
+
import "element-plus/es/components/radio/style/css";
|
|
6
|
+
import "element-plus/es/components/radio-group/style/css";
|
|
7
|
+
import "element-plus/es/components/select/style/css";
|
|
8
|
+
import "element-plus/es/components/option/style/css";
|
|
9
|
+
//#region src/components/HighwayStations/HighwayStations.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var E = {
|
|
11
|
+
class: "HighwayStations",
|
|
12
|
+
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
13
|
+
}, D = { class: "HighwayStations-road" }, O = { class: "table-container" }, k = { class: "data-table" }, A = { key: 0 }, j = /* @__PURE__ */ e(/* @__PURE__ */ m({
|
|
14
|
+
__name: "HighwayStations",
|
|
15
|
+
props: {
|
|
16
|
+
tokenInterface: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: ""
|
|
19
|
+
},
|
|
20
|
+
tokenInterfaceParams: {
|
|
21
|
+
type: Object,
|
|
22
|
+
default: () => ({})
|
|
23
|
+
},
|
|
24
|
+
tokenInterfaceType: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "post"
|
|
27
|
+
},
|
|
28
|
+
tokenInterfaceIsFormData: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !1
|
|
31
|
+
},
|
|
32
|
+
dataInterface: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: ""
|
|
35
|
+
},
|
|
36
|
+
dataInterfaceParams: {
|
|
37
|
+
type: Object,
|
|
38
|
+
default: () => ({})
|
|
39
|
+
},
|
|
40
|
+
dataInterfaceType: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: "post"
|
|
43
|
+
},
|
|
44
|
+
dataInterfaceIsFormData: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: !1
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
setup(e, { emit: m }) {
|
|
50
|
+
let j = m, M = e, N = b(""), P = b([]), F = b("降水"), I = b([]), L = b(!1), R = null;
|
|
51
|
+
v(() => {
|
|
52
|
+
z(), R = setInterval(() => {
|
|
53
|
+
z();
|
|
54
|
+
}, 1e3 * 60 * 10);
|
|
55
|
+
}), _(() => {
|
|
56
|
+
clearInterval(R);
|
|
57
|
+
});
|
|
58
|
+
let z = async () => {
|
|
59
|
+
L.value = !0, P.value = (await t({
|
|
60
|
+
url: M.dataInterface,
|
|
61
|
+
method: M.dataInterfaceType,
|
|
62
|
+
params: M.dataInterfaceParams,
|
|
63
|
+
isFormData: M.dataInterfaceIsFormData,
|
|
64
|
+
tokenInterface: M.tokenInterface,
|
|
65
|
+
tokenInterfaceParams: M.tokenInterfaceParams,
|
|
66
|
+
tokenInterfaceType: M.tokenInterfaceType,
|
|
67
|
+
tokenInterfaceIsFormData: M.tokenInterfaceIsFormData
|
|
68
|
+
}))?.ds || [], L.value = !1, P.value.unshift({ name: "全部" }), N.value = P.value[0]?.name || "", console.log(P.value), V(N.value);
|
|
69
|
+
}, B = () => {
|
|
70
|
+
j("close", "HighwayStations");
|
|
71
|
+
}, V = (e) => {
|
|
72
|
+
if (e === "全部") {
|
|
73
|
+
let e = [];
|
|
74
|
+
P.value.filter((e) => e.name !== "全部").forEach((t) => {
|
|
75
|
+
console.log(t), e.push(...t.zdzds);
|
|
76
|
+
}), I.value = e;
|
|
77
|
+
} else I.value = P.value.find((t) => t.name === e)?.zdzds || [];
|
|
78
|
+
H();
|
|
79
|
+
}, H = () => {
|
|
80
|
+
let e = {
|
|
81
|
+
clickOpen: !1,
|
|
82
|
+
spotObject: [{
|
|
83
|
+
offsetX: -6,
|
|
84
|
+
offsetY: -24,
|
|
85
|
+
spotArrone: []
|
|
86
|
+
}, {
|
|
87
|
+
offsetX: -6,
|
|
88
|
+
offsetY: -24,
|
|
89
|
+
spotArrone: [],
|
|
90
|
+
minZoom: 9
|
|
91
|
+
}],
|
|
92
|
+
drawArrObj: [],
|
|
93
|
+
onlyLayerID: "station_highway"
|
|
94
|
+
}, t = F.value === "降水" ? "rainfall_1h" : F.value === "温度" ? "temperature" : F.value === "能见度" ? "visibility" : "wind_speed", n = F.value === "降水" ? "mm" : F.value === "温度" ? "℃" : F.value === "能见度" ? "km" : "m/s";
|
|
95
|
+
I.value.forEach((r) => {
|
|
96
|
+
let i = "";
|
|
97
|
+
r[t] !== null && r[t] !== 999999 && (i = t === "visibility" ? r[t] / 1e3 + "" : r[t]);
|
|
98
|
+
let a = `
|
|
99
|
+
<div style='display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;'>
|
|
100
|
+
<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;'>
|
|
101
|
+
${i}${n}
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<div style='width:8px;height:8px;border-radius:50%;background:#fff;border:1px solid #ccc;padding:2px;display:flex;justify-content:space-around'>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
<div style='color:#414445;font-size:12px;transform:translateX(-50%) 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;position:absolute;bottom: -14px;left: 50%;white-space: nowrap;'>
|
|
108
|
+
${r.station_name}
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
`, o = {
|
|
112
|
+
lng: r.longitude,
|
|
113
|
+
lat: r.latitude,
|
|
114
|
+
htmlString: a,
|
|
115
|
+
data: r,
|
|
116
|
+
otherData: { markId: "station_highway" }
|
|
117
|
+
};
|
|
118
|
+
r.station_number.charAt(0) === "5" ? e.spotObject[0].spotArrone.push(o) : e.spotObject[1].spotArrone.push(o);
|
|
119
|
+
}), j("addMarker", {
|
|
120
|
+
mapMarker: e,
|
|
121
|
+
removeMarker: "station_highway"
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
return (e, t) => {
|
|
125
|
+
let m = r, _ = o, v = i, b = a, j = n;
|
|
126
|
+
return T((y(), u("div", E, [
|
|
127
|
+
d("div", { class: "HighwayStations-head" }, [d("div", { class: "HighwayStations-head-top" }, [t[2] ||= d("div", null, "沿线自动站数据", -1), d("div", {
|
|
128
|
+
class: "closeBtn",
|
|
129
|
+
onClick: B
|
|
130
|
+
})]), t[3] ||= d("img", {
|
|
131
|
+
class: "HighwayStations-head-line",
|
|
132
|
+
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",
|
|
133
|
+
alt: ""
|
|
134
|
+
}, null, -1)]),
|
|
135
|
+
d("div", D, [t[4] ||= f(" 路线选择: ", -1), p(_, {
|
|
136
|
+
modelValue: C(N),
|
|
137
|
+
"onUpdate:modelValue": t[0] ||= (e) => h(N) ? N.value = e : N = e,
|
|
138
|
+
placeholder: "请选择路线",
|
|
139
|
+
teleported: !1,
|
|
140
|
+
class: "dark-select",
|
|
141
|
+
onChange: V
|
|
142
|
+
}, {
|
|
143
|
+
default: w(() => [(y(!0), u(s, null, x(C(P), (e) => (y(), c(m, {
|
|
144
|
+
key: e.name,
|
|
145
|
+
label: e.name,
|
|
146
|
+
value: e.name
|
|
147
|
+
}, null, 8, ["label", "value"]))), 128))]),
|
|
148
|
+
_: 1
|
|
149
|
+
}, 8, ["modelValue"])]),
|
|
150
|
+
t[11] ||= d("div", null, "显示设置:", -1),
|
|
151
|
+
p(b, {
|
|
152
|
+
modelValue: C(F),
|
|
153
|
+
"onUpdate:modelValue": t[1] ||= (e) => h(F) ? F.value = e : F = e,
|
|
154
|
+
onChange: H
|
|
155
|
+
}, {
|
|
156
|
+
default: w(() => [
|
|
157
|
+
p(v, {
|
|
158
|
+
value: "降水",
|
|
159
|
+
style: {
|
|
160
|
+
color: "#ccc",
|
|
161
|
+
"margin-right": "20px"
|
|
162
|
+
}
|
|
163
|
+
}, {
|
|
164
|
+
default: w(() => [...t[5] ||= [f("降水(mm)", -1)]]),
|
|
165
|
+
_: 1
|
|
166
|
+
}),
|
|
167
|
+
p(v, {
|
|
168
|
+
value: "温度",
|
|
169
|
+
style: {
|
|
170
|
+
color: "#ccc",
|
|
171
|
+
"margin-right": "20px"
|
|
172
|
+
}
|
|
173
|
+
}, {
|
|
174
|
+
default: w(() => [...t[6] ||= [f("温度(℃)", -1)]]),
|
|
175
|
+
_: 1
|
|
176
|
+
}),
|
|
177
|
+
p(v, {
|
|
178
|
+
value: "能见度",
|
|
179
|
+
style: {
|
|
180
|
+
color: "#ccc",
|
|
181
|
+
"margin-right": "20px"
|
|
182
|
+
}
|
|
183
|
+
}, {
|
|
184
|
+
default: w(() => [...t[7] ||= [f("能见度(kkm)", -1)]]),
|
|
185
|
+
_: 1
|
|
186
|
+
}),
|
|
187
|
+
p(v, {
|
|
188
|
+
value: "大风",
|
|
189
|
+
style: { color: "#ccc" }
|
|
190
|
+
}, {
|
|
191
|
+
default: w(() => [...t[8] ||= [f("大风(m/s)", -1)]]),
|
|
192
|
+
_: 1
|
|
193
|
+
})
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
}, 8, ["modelValue"]),
|
|
197
|
+
d("div", O, [d("table", k, [t[10] ||= d("thead", null, [d("tr", null, [
|
|
198
|
+
d("th", null, "站名"),
|
|
199
|
+
d("th", null, "降水"),
|
|
200
|
+
d("th", null, "温度"),
|
|
201
|
+
d("th", null, "能见度"),
|
|
202
|
+
d("th", null, "大风")
|
|
203
|
+
])], -1), d("tbody", null, [(y(!0), u(s, null, x(C(I), (e, t) => (y(), u("tr", { key: t }, [
|
|
204
|
+
d("td", null, S(e.station_name || "--"), 1),
|
|
205
|
+
d("td", { class: g({ active: C(F) === "降水" }) }, S(e.rainfall_1h !== null && e.rainfall_1h !== 999999 ? e.rainfall_1h : "--"), 3),
|
|
206
|
+
d("td", { class: g({ active: C(F) === "温度" }) }, S(e.temperature !== null && e.temperature !== 999999 ? e.temperature : "--"), 3),
|
|
207
|
+
d("td", { class: g({ active: C(F) === "能见度" }) }, S(e.visibility !== null && e.visibility !== 999999 ? e.visibility / 1e3 : "--"), 3),
|
|
208
|
+
d("td", { class: g({ active: C(F) === "大风" }) }, S(e.wind_speed !== null && e.wind_speed !== 999999 ? e.wind_speed : "--"), 3)
|
|
209
|
+
]))), 128)), C(I).length ? l("", !0) : (y(), u("tr", A, [...t[9] ||= [d("td", {
|
|
210
|
+
colspan: "5",
|
|
211
|
+
class: "empty-state"
|
|
212
|
+
}, "暂无数据", -1)]]))])])])
|
|
213
|
+
])), [[j, C(L)]]);
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
}), [["__scopeId", "data-v-99a6c0fb"]]);
|
|
217
|
+
//#endregion
|
|
218
|
+
export { j as t };
|