nxd-plugin 1.6.5 → 1.6.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-AqiMonitor-DoGm_NCt.mjs +6718 -0
- package/dist/chunks/component-HighWayEarlyWarningRed-D89gFa50.mjs +2223 -0
- package/dist/chunks/{component-HighWayFreeze-DTZgUHLb.mjs → component-HighWayFreeze-C_Y5P0wN.mjs} +1007 -1006
- package/dist/chunks/{component-HighwayLiveAlarm-DH_Radnp.mjs → component-HighwayLiveAlarm-DMdnrD3c.mjs} +66 -65
- package/dist/chunks/{component-HighwayLiveAlarmNew-BRmrckoI.mjs → component-HighwayLiveAlarmNew--cnSiMgV.mjs} +258 -257
- package/dist/chunks/{component-HighwayStations-BADne1O5.mjs → component-HighwayStations-CNs3P4Vw.mjs} +10 -9
- package/dist/chunks/{component-HighwayWeatherForecast-D3pduycn.mjs → component-HighwayWeatherForecast-Dn6tjaR-.mjs} +33 -32
- package/dist/chunks/{component-ImageGeneration-BWVqHs7l.mjs → component-ImageGeneration-BY0gFwcr.mjs} +4548 -4504
- package/dist/chunks/{component-LithiumBatteryMiningArea-QPD9ERqx.mjs → component-LithiumBatteryMiningArea-Dj1DMKuU.mjs} +16 -15
- package/dist/chunks/component-MapPopup-B2Jmyc6L.mjs +46 -0
- package/dist/chunks/component-RadarChart-CGAMxnMk.mjs +121 -0
- package/dist/chunks/{component-RadarShortTerm-DvYtb48r.mjs → component-RadarShortTerm-Bp09mb4q.mjs} +26 -25
- package/dist/chunks/component-RadarTime-aohD_Dpx.mjs +500 -0
- package/dist/chunks/{component-ServiceMaterialsBtn-IIYNTWxy.mjs → component-ServiceMaterialsBtn-7b7nWW__.mjs} +106 -105
- package/dist/chunks/{component-TimeBasedForecast-9At0jrIg.mjs → component-TimeBasedForecast-By7vsTR3.mjs} +25 -25
- package/dist/chunks/component-WarningSignal-DDOj8BOp.mjs +322 -0
- package/dist/chunks/component-WeatherForecast-B-KJ3IU3.mjs +231 -0
- package/dist/chunks/{component-YCHome-BGMzJhDv.mjs → component-YCHome-CUbCw7zJ.mjs} +143 -142
- package/dist/chunks/{component-YCLogin-CFe09txe.mjs → component-YCLogin-iSv0b64g.mjs} +4 -4
- package/dist/chunks/{component-YCLoginNew-BDpy2huY.mjs → component-YCLoginNew-BFc61ag4.mjs} +9 -9
- package/dist/nxd-plugin.mjs +23 -18
- package/dist/src/components/AqiMonitor/AqiMonitor.vue.d.ts +54 -0
- package/dist/src/components/MapPopup/MapPopup.vue.d.ts +60 -0
- package/dist/src/components/RadarChart/RadarChart.vue.d.ts +54 -0
- package/dist/src/components/RadarTime/RadarTime.vue.d.ts +158 -0
- package/dist/src/components/WarningSignal/WarningSignal.vue.d.ts +60 -0
- package/dist/src/index.d.ts +6 -1
- package/dist/styles/component-AqiMonitor.css +1 -0
- package/dist/styles/component-MapPopup.css +1 -0
- package/dist/styles/component-RadarChart.css +1 -0
- package/dist/styles/component-RadarTime.css +1 -0
- package/dist/styles/component-WarningSignal.css +1 -0
- package/dist/styles/component-WeatherForecast.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-HighWayEarlyWarningRed-B24zorkZ.mjs +0 -8807
- package/dist/chunks/component-WeatherForecast-DFqXrhZl.mjs +0 -146
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
|
-
import { n as e, r as t } from "./component-HighWayFreeze-
|
|
3
|
-
import {
|
|
4
|
-
import { i as a, n as o, r as ee } from "./component-HighwayLiveAlarm-
|
|
2
|
+
import { n as e, r as t } from "./component-HighWayFreeze-C_Y5P0wN.mjs";
|
|
3
|
+
import { a as n, n as r, r as i } from "./component-AqiMonitor-DoGm_NCt.mjs";
|
|
4
|
+
import { i as a, n as o, r as ee } from "./component-HighwayLiveAlarm-DMdnrD3c.mjs";
|
|
5
|
+
import "./component-HighWayEarlyWarningRed-D89gFa50.mjs";
|
|
5
6
|
import { Fragment as s, createBlock as te, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, nextTick as p, normalizeClass as ne, normalizeStyle as m, onBeforeUnmount as re, onMounted as h, openBlock as g, reactive as _, ref as v, renderList as ie, toDisplayString as y, unref as b, withCtx as x, withDirectives as ae } from "vue";
|
|
6
7
|
//#region node_modules/js-base64/base64.mjs
|
|
7
8
|
var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder == "function" ? new TextDecoder() : void 0, E = typeof TextEncoder == "function" ? new TextEncoder() : void 0, D = Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="), O = ((e) => {
|
|
@@ -2979,7 +2980,7 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
2979
2980
|
}, me = {
|
|
2980
2981
|
class: "LithiumBatteryMiningArea",
|
|
2981
2982
|
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
2982
|
-
}, he = { class: "LithiumBatteryMiningArea__head" }, ge = { class: "setting-row" }, _e = { class: "LithiumBatteryMiningArea__select" }, ve = { class: "lithium__realTime-block" }, ye = { class: "lithium__realTime-item" }, be = { class: "lithium__realTime-value" }, xe = { class: "lithium__realTime-item" }, Se = { class: "lithium__realTime-value" }, Ce = { class: "lithium__realTime-item" }, we = { class: "lithium__realTime-value" }, Te = { class: "lithium__realTime-item" }, Ee = { class: "lithium__realTime-value" }, De = { class: "lithium__realTime-block" }, Oe = { class: "lithium__realTime-item" }, ke = { class: "lithium__realTime-value" }, Ae = { class: "lithium__realTime-item" }, je = { class: "lithium__realTime-value" }, Me = { class: "lithium__realTime-item" }, Ne = { class: "lithium__realTime-value" }, Pe = { class: "lithium__realTime-chartOpt" }, Fe = ["onClick"], Ie = { class: "lithium__realTime-chart" }, Le = { class: "lithium__realTime-chart-unit" }, Re = { class: "lithium__realTime-chart-scroll" }, ze = /* @__PURE__ */
|
|
2983
|
+
}, he = { class: "LithiumBatteryMiningArea__head" }, ge = { class: "setting-row" }, _e = { class: "LithiumBatteryMiningArea__select" }, ve = { class: "lithium__realTime-block" }, ye = { class: "lithium__realTime-item" }, be = { class: "lithium__realTime-value" }, xe = { class: "lithium__realTime-item" }, Se = { class: "lithium__realTime-value" }, Ce = { class: "lithium__realTime-item" }, we = { class: "lithium__realTime-value" }, Te = { class: "lithium__realTime-item" }, Ee = { class: "lithium__realTime-value" }, De = { class: "lithium__realTime-block" }, Oe = { class: "lithium__realTime-item" }, ke = { class: "lithium__realTime-value" }, Ae = { class: "lithium__realTime-item" }, je = { class: "lithium__realTime-value" }, Me = { class: "lithium__realTime-item" }, Ne = { class: "lithium__realTime-value" }, Pe = { class: "lithium__realTime-chartOpt" }, Fe = ["onClick"], Ie = { class: "lithium__realTime-chart" }, Le = { class: "lithium__realTime-chart-unit" }, Re = { class: "lithium__realTime-chart-scroll" }, ze = /* @__PURE__ */ r(/* @__PURE__ */ f({
|
|
2983
2984
|
__name: "LithiumBatteryMiningArea",
|
|
2984
2985
|
props: {
|
|
2985
2986
|
appKey: {
|
|
@@ -3007,8 +3008,8 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3007
3008
|
"addMarker",
|
|
3008
3009
|
"removeMarker"
|
|
3009
3010
|
],
|
|
3010
|
-
setup(
|
|
3011
|
-
let S =
|
|
3011
|
+
setup(r, { emit: f }) {
|
|
3012
|
+
let S = r, C = f, w = v(!1), T = v(""), E = v("温度"), D = v([]), O = v(null), k = null, A = _([
|
|
3012
3013
|
{
|
|
3013
3014
|
title: "气温",
|
|
3014
3015
|
isActive: !0
|
|
@@ -3040,7 +3041,7 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3040
3041
|
}, H = async () => {
|
|
3041
3042
|
X(), await G(), await q(), await J();
|
|
3042
3043
|
}, U = async () => {
|
|
3043
|
-
w.value = !0, D.value = (await
|
|
3044
|
+
w.value = !0, D.value = (await i({
|
|
3044
3045
|
appKey: S.appKey,
|
|
3045
3046
|
appSalt: S.appSalt,
|
|
3046
3047
|
id: S.ids.mingArea.id,
|
|
@@ -3055,7 +3056,7 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3055
3056
|
}), R.length && Y();
|
|
3056
3057
|
}, G = async () => {
|
|
3057
3058
|
w.value = !0;
|
|
3058
|
-
let e = { station_number: D.value.map((e) => e.station_number).join(",") }, t = await
|
|
3059
|
+
let e = { station_number: D.value.map((e) => e.station_number).join(",") }, t = await i({
|
|
3059
3060
|
appKey: S.appKey,
|
|
3060
3061
|
appSalt: S.appSalt,
|
|
3061
3062
|
id: S.ids.realTime.id,
|
|
@@ -3104,7 +3105,7 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3104
3105
|
}, q = async () => {
|
|
3105
3106
|
w.value = !0;
|
|
3106
3107
|
let e = { station_number: D.value.find((e) => e.name === T.value)?.station_number };
|
|
3107
|
-
L = (await
|
|
3108
|
+
L = (await i({
|
|
3108
3109
|
appKey: S.appKey,
|
|
3109
3110
|
appSalt: S.appSalt,
|
|
3110
3111
|
id: S.ids.statistic.id,
|
|
@@ -3115,7 +3116,7 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3115
3116
|
})).data.result.output[0], w.value = !1;
|
|
3116
3117
|
}, J = async () => {
|
|
3117
3118
|
w.value = !0;
|
|
3118
|
-
let e = { station_number: D.value.find((e) => e.name === T.value)?.station_number }, t = await
|
|
3119
|
+
let e = { station_number: D.value.find((e) => e.name === T.value)?.station_number }, t = await i({
|
|
3119
3120
|
appKey: S.appKey,
|
|
3120
3121
|
appSalt: S.appSalt,
|
|
3121
3122
|
id: S.ids.chart.id,
|
|
@@ -3125,10 +3126,10 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3125
3126
|
isFormData: S.ids.chart.isFormData
|
|
3126
3127
|
});
|
|
3127
3128
|
w.value = !1, console.log("获取实况图表数据", t);
|
|
3128
|
-
let
|
|
3129
|
-
|
|
3129
|
+
let n = t.data.result.output.slice(0, 24);
|
|
3130
|
+
n.forEach((e) => {
|
|
3130
3131
|
e._time = `${e.observation_time.slice(11, 13)}时`, e._temperature = Number(e.temperature), e._windSpeed = Number(e.wind_speed), e._humidity = e.relative_humidity === "缺测" ? null : Number(e.relative_humidity), e._rainfall = e.rainfall_1h === "缺测" ? null : Number(e.rainfall_1h), e._windDirectionTime = `${e._time}(${e.wind_direction})`;
|
|
3131
|
-
}), R =
|
|
3132
|
+
}), R = n, Y();
|
|
3132
3133
|
}, Y = async () => {
|
|
3133
3134
|
let e = A.find((e) => e.isActive)?.title || "气温", t = "line", n = [], r = 0, i = 100;
|
|
3134
3135
|
e === "气温" ? (N.value = "单位:℃", P.value = "_time", F.value = 60, n = R.map((e) => e._temperature), r = (e) => Math.floor(e.min), i = (e) => Math.ceil(e.max)) : e === "风向风速" ? (N.value = "单位:m/s", P.value = "_windDirectionTime", F.value = 96, n = R.map((e) => e._windSpeed), r = 0, i = (e) => Math.ceil(e.max)) : e === "湿度" ? (N.value = "单位:%", P.value = "_time", F.value = 60, n = R.map((e) => e._humidity), r = 0, i = 100) : (N.value = "单位:mm", P.value = "_time", F.value = 60, t = "bar", n = R.map((e) => e._rainfall), r = 0, i = (e) => Math.ceil(e.max)), I.value = R.length * F.value + 46, await p(), O.value && (k ? k.resize({
|
|
@@ -3235,8 +3236,8 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3235
3236
|
data: n
|
|
3236
3237
|
});
|
|
3237
3238
|
};
|
|
3238
|
-
return (
|
|
3239
|
-
let o = ee, f = a, p = e, re = t, h =
|
|
3239
|
+
return (r, i) => {
|
|
3240
|
+
let o = ee, f = a, p = e, re = t, h = n;
|
|
3240
3241
|
return ae((g(), c("div", me, [
|
|
3241
3242
|
l("div", he, [
|
|
3242
3243
|
l("div", { class: "LithiumBatteryMiningArea__head-top" }, [i[2] ||= l("div", null, "矿区实况", -1), l("div", {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { n as e } from "./component-AqiMonitor-DoGm_NCt.mjs";
|
|
2
|
+
import { createCommentVNode as t, createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeStyle as a, openBlock as o, renderSlot as s, toDisplayString as c } from "vue";
|
|
3
|
+
//#region src/components/MapPopup/MapPopup.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var l = { class: "MapPopup__head" }, u = { class: "MapPopup__title" }, d = { class: "MapPopup__body" }, f = ["innerHTML"], p = /* @__PURE__ */ e(/* @__PURE__ */ i({
|
|
5
|
+
__name: "MapPopup",
|
|
6
|
+
props: {
|
|
7
|
+
title: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: ""
|
|
10
|
+
},
|
|
11
|
+
content: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
width: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "200px"
|
|
18
|
+
},
|
|
19
|
+
maxWidth: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "320px"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
emits: ["close"],
|
|
25
|
+
setup(e, { emit: i }) {
|
|
26
|
+
let p = i, m = () => {
|
|
27
|
+
p("close");
|
|
28
|
+
};
|
|
29
|
+
return (i, p) => (o(), n("div", {
|
|
30
|
+
class: "MapPopup",
|
|
31
|
+
style: a({
|
|
32
|
+
minWidth: e.width,
|
|
33
|
+
maxWidth: e.maxWidth
|
|
34
|
+
})
|
|
35
|
+
}, [r("div", l, [r("span", u, c(e.title), 1), r("span", {
|
|
36
|
+
class: "MapPopup__close",
|
|
37
|
+
onClick: m,
|
|
38
|
+
title: "关闭"
|
|
39
|
+
}, "✕")]), r("div", d, [s(i.$slots, "default", {}, () => [e.content ? (o(), n("div", {
|
|
40
|
+
key: 0,
|
|
41
|
+
innerHTML: e.content
|
|
42
|
+
}, null, 8, f)) : t("", !0)], !0)])], 4));
|
|
43
|
+
}
|
|
44
|
+
}), [["__scopeId", "data-v-942d6425"]]);
|
|
45
|
+
//#endregion
|
|
46
|
+
export { p as t };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
|
+
import { a as e, n as t, r as n } from "./component-AqiMonitor-DoGm_NCt.mjs";
|
|
3
|
+
import { Fragment as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, getCurrentInstance as c, onMounted as l, openBlock as u, ref as d, renderList as f, toDisplayString as p, vModelCheckbox as m, withDirectives as h } from "vue";
|
|
4
|
+
//#region src/components/RadarChart/RadarChart.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var g = {
|
|
6
|
+
class: "RadarChart",
|
|
7
|
+
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
8
|
+
}, _ = { class: "RadarChart__head" }, v = { class: "RadarChart__head-top" }, y = { class: "RadarChart__body" }, b = { class: "display-settings" }, x = { class: "setting-item" }, S = { class: "alarm-count" }, C = { class: "table-container" }, w = { class: "table-scroll-body" }, T = { class: "data-table" }, E = ["title"], D = { style: {
|
|
9
|
+
width: "140px",
|
|
10
|
+
"white-space": "nowrap"
|
|
11
|
+
} }, O = { style: {
|
|
12
|
+
width: "80px",
|
|
13
|
+
"text-align": "center"
|
|
14
|
+
} }, k = { key: 0 }, A = /* @__PURE__ */ t(/* @__PURE__ */ s({
|
|
15
|
+
__name: "RadarChart",
|
|
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
|
+
title: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: "雷达回波dBZ(近两小时)"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
emits: ["close"],
|
|
39
|
+
setup(t, { emit: s }) {
|
|
40
|
+
let A = c()?.appContext.config.globalProperties.$bus, j = t, M = s, N = d(!1), P = d([]), F = d(!0), I = d(0);
|
|
41
|
+
l(() => {
|
|
42
|
+
A?.on("toComponent", (e) => {
|
|
43
|
+
e.componentName === "RadarChart" && L();
|
|
44
|
+
}), L();
|
|
45
|
+
});
|
|
46
|
+
let L = async () => {
|
|
47
|
+
await R();
|
|
48
|
+
}, R = async () => {
|
|
49
|
+
N.value = !0;
|
|
50
|
+
let e = await n({
|
|
51
|
+
appKey: j.appKey,
|
|
52
|
+
appSalt: j.appSalt,
|
|
53
|
+
id: j.ids.data.id,
|
|
54
|
+
variables: {},
|
|
55
|
+
baseHttp: j.baseHttp,
|
|
56
|
+
reqType: j.ids.data.reqType,
|
|
57
|
+
isFormData: j.ids.data.isFormData
|
|
58
|
+
});
|
|
59
|
+
N.value = !1, console.log(e, "雷达数据");
|
|
60
|
+
let t = e.data?.result?.output || [];
|
|
61
|
+
t && t.length > 0 && (P.value = t.map((e) => ({
|
|
62
|
+
...e,
|
|
63
|
+
areaName: e.area_name || e.areaName || "",
|
|
64
|
+
alarmTime: e.alarm_time || e.alarmTime || "",
|
|
65
|
+
dBZValue: e.dbz_value || e.dBZValue || ""
|
|
66
|
+
})), I.value = P.value.filter((e) => Number(e.dBZValue) > 40).length);
|
|
67
|
+
}, z = () => {
|
|
68
|
+
M("close", "RadarChart");
|
|
69
|
+
};
|
|
70
|
+
return (n, s) => {
|
|
71
|
+
let c = e;
|
|
72
|
+
return h((u(), a("div", g, [o("div", _, [o("div", v, [o("div", null, p(t.title), 1), o("div", {
|
|
73
|
+
class: "closeBtn",
|
|
74
|
+
onClick: z,
|
|
75
|
+
title: "关闭"
|
|
76
|
+
})]), s[1] ||= o("img", {
|
|
77
|
+
class: "RadarChart__head-line",
|
|
78
|
+
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",
|
|
79
|
+
alt: ""
|
|
80
|
+
}, null, -1)]), o("div", y, [o("div", b, [
|
|
81
|
+
s[3] ||= o("label", { class: "setting-label" }, "显示设置:", -1),
|
|
82
|
+
o("div", x, [h(o("input", {
|
|
83
|
+
type: "checkbox",
|
|
84
|
+
id: "show-radar",
|
|
85
|
+
class: "setting-checkbox",
|
|
86
|
+
"onUpdate:modelValue": s[0] ||= (e) => F.value = e
|
|
87
|
+
}, null, 512), [[m, F.value]]), s[2] ||= o("label", {
|
|
88
|
+
for: "show-radar",
|
|
89
|
+
class: "setting-checkbox-label"
|
|
90
|
+
}, "显示雷达回波", -1)]),
|
|
91
|
+
o("span", S, "阈值报警:" + p(I.value) + "(个)", 1)
|
|
92
|
+
]), o("div", C, [s[5] ||= o("table", { class: "data-table" }, [o("thead", null, [o("tr", null, [
|
|
93
|
+
o("th", { style: { "text-align": "center" } }, "区域名"),
|
|
94
|
+
o("th", { style: {
|
|
95
|
+
width: "140px",
|
|
96
|
+
"text-align": "center"
|
|
97
|
+
} }, "报警时间"),
|
|
98
|
+
o("th", { style: {
|
|
99
|
+
width: "80px",
|
|
100
|
+
"text-align": "center"
|
|
101
|
+
} }, "dBZ值")
|
|
102
|
+
])])], -1), o("div", w, [o("table", T, [o("tbody", null, [(u(!0), a(r, null, f(P.value, (e, t) => (u(), a("tr", { key: t }, [
|
|
103
|
+
o("td", {
|
|
104
|
+
style: {
|
|
105
|
+
overflow: "hidden",
|
|
106
|
+
"text-overflow": "ellipsis",
|
|
107
|
+
"white-space": "nowrap"
|
|
108
|
+
},
|
|
109
|
+
title: e.areaName
|
|
110
|
+
}, p(e.areaName), 9, E),
|
|
111
|
+
o("td", D, p(e.alarmTime), 1),
|
|
112
|
+
o("td", O, p(e.dBZValue), 1)
|
|
113
|
+
]))), 128)), !P.value || !P.value.length ? (u(), a("tr", k, [...s[4] ||= [o("td", {
|
|
114
|
+
colspan: "4",
|
|
115
|
+
class: "empty-state"
|
|
116
|
+
}, "暂无数据", -1)]])) : i("", !0)])])])])])])), [[c, N.value]]);
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
}), [["__scopeId", "data-v-addcf1b8"]]);
|
|
120
|
+
//#endregion
|
|
121
|
+
export { A as t };
|
package/dist/chunks/{component-RadarShortTerm-DvYtb48r.mjs → component-RadarShortTerm-Bp09mb4q.mjs}
RENAMED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
|
-
import { A as e, S as t, j as n, m as r } from "./component-HighWayFreeze-
|
|
3
|
-
import { i, n as a,
|
|
4
|
-
import "./component-ImageGeneration-
|
|
5
|
-
import { n as ee } from "./component-HighwayLiveAlarmNew
|
|
2
|
+
import { A as e, S as t, j as n, m as r } from "./component-HighWayFreeze-C_Y5P0wN.mjs";
|
|
3
|
+
import { a as i, n as a, r as o } from "./component-AqiMonitor-DoGm_NCt.mjs";
|
|
4
|
+
import "./component-ImageGeneration-BY0gFwcr.mjs";
|
|
5
|
+
import { n as ee } from "./component-HighwayLiveAlarmNew--cnSiMgV.mjs";
|
|
6
|
+
import { n as s } from "./component-HighWayEarlyWarningRed-D89gFa50.mjs";
|
|
6
7
|
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as te, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, nextTick as ne, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as re, onMounted as ie, openBlock as v, ref as y, renderList as b, toDisplayString as x, unref as S, vShow as C, watch as w, withCtx as T, withDirectives as E } from "vue";
|
|
7
8
|
//#region src/components/RadarShortTerm/RadarShortTerm.vue?vue&type=script&setup=true&lang.ts
|
|
8
9
|
var ae = {
|
|
@@ -17,7 +18,7 @@ var ae = {
|
|
|
17
18
|
}, ve = ["onClick"], ye = {
|
|
18
19
|
key: 1,
|
|
19
20
|
class: "pile-empty"
|
|
20
|
-
}, be = { class: "RadarShortTerm-timeline" }, xe = ["title"], Se = { class: "timeline-slider-wrap" }, Ce = { class: "timeline-time-label" }, we = { class: "radarAxis-li" }, Te = ["onClick"], Ee = { class: "radarAxis-li-node-text" }, D = /* @__PURE__ */
|
|
21
|
+
}, be = { class: "RadarShortTerm-timeline" }, xe = ["title"], Se = { class: "timeline-slider-wrap" }, Ce = { class: "timeline-time-label" }, we = { class: "radarAxis-li" }, Te = ["onClick"], Ee = { class: "radarAxis-li-node-text" }, D = /* @__PURE__ */ a(/* @__PURE__ */ h({
|
|
21
22
|
__name: "RadarShortTerm",
|
|
22
23
|
props: {
|
|
23
24
|
appKey: {
|
|
@@ -46,8 +47,8 @@ var ae = {
|
|
|
46
47
|
"showRadarLegend",
|
|
47
48
|
"toMapView"
|
|
48
49
|
],
|
|
49
|
-
setup(
|
|
50
|
-
let D =
|
|
50
|
+
setup(a, { emit: h }) {
|
|
51
|
+
let D = a, O = h, k = y(!0), A = y(!1), j = y(0), M = y(null), N = y([]), P = y({}), F = y({}), I = y({}), L = y(""), R = y(null), z = y(!0), B = y(null), V = y({
|
|
51
52
|
httpurl: "",
|
|
52
53
|
lngStart: void 0,
|
|
53
54
|
latStart: void 0,
|
|
@@ -78,7 +79,7 @@ var ae = {
|
|
|
78
79
|
}), ke(), z.value = !1;
|
|
79
80
|
}, W = async () => {
|
|
80
81
|
z.value = !0;
|
|
81
|
-
let e = await
|
|
82
|
+
let e = await o({
|
|
82
83
|
appKey: D.appKey,
|
|
83
84
|
appSalt: D.appSalt,
|
|
84
85
|
id: D.ids.radar.id,
|
|
@@ -88,7 +89,7 @@ var ae = {
|
|
|
88
89
|
isFormData: D.ids.radar.isFormData
|
|
89
90
|
});
|
|
90
91
|
console.log("雷达", e.data.result);
|
|
91
|
-
let t = await
|
|
92
|
+
let t = await o({
|
|
92
93
|
appKey: D.appKey,
|
|
93
94
|
appSalt: D.appSalt,
|
|
94
95
|
id: D.ids.historyRadar.id,
|
|
@@ -106,27 +107,27 @@ var ae = {
|
|
|
106
107
|
httpurl: r.httpurl,
|
|
107
108
|
...r.extent
|
|
108
109
|
};
|
|
109
|
-
let
|
|
110
|
+
let i = r.frames.slice(-3).map((e, t) => ({
|
|
110
111
|
...e,
|
|
111
112
|
focarcast_time: e.observation_time,
|
|
112
113
|
_isHistory: !0,
|
|
113
114
|
_label: t === 0 ? "-2" : t === 1 ? "-1" : "现在",
|
|
114
115
|
_httpurl: (r.httpurl || "") + (e.observation_time || "").slice(0, 10).replaceAll("-", "") + "/"
|
|
115
|
-
})),
|
|
116
|
+
})), a = n.frames.map((e, t) => ({
|
|
116
117
|
...e,
|
|
117
118
|
_isHistory: !1,
|
|
118
119
|
_label: `+${t + 1}`,
|
|
119
120
|
_httpurl: n.httpurl || ""
|
|
120
121
|
}));
|
|
121
122
|
I.value = {
|
|
122
|
-
ds: [...
|
|
123
|
+
ds: [...i, ...a],
|
|
123
124
|
httpurl: n.httpurl,
|
|
124
125
|
...r.extent
|
|
125
126
|
}, j.value = 2, k.value && setTimeout(() => {
|
|
126
127
|
Z(j.value);
|
|
127
128
|
}, 1e3);
|
|
128
129
|
}, De = async () => {
|
|
129
|
-
let e = await
|
|
130
|
+
let e = await o({
|
|
130
131
|
appKey: D.appKey,
|
|
131
132
|
appSalt: D.appSalt,
|
|
132
133
|
id: D.ids.shortTerm.id,
|
|
@@ -206,7 +207,7 @@ var ae = {
|
|
|
206
207
|
console.log(n), O("addImage", {
|
|
207
208
|
removeImg: "radar_RadarShortTerm",
|
|
208
209
|
data: n
|
|
209
|
-
}), L.value && O("removeDataTitle", L.value), L.value = "雷达观测时间:" +
|
|
210
|
+
}), L.value && O("removeDataTitle", L.value), L.value = "雷达观测时间:" + s(t.focarcast_time).format("YYYY-MM-DD HH:mm "), console.log(L.value), O("addDataTitle", L.value), O("showRadarLegend", !0);
|
|
210
211
|
}, Q = () => {
|
|
211
212
|
M.value &&= (clearInterval(M.value), null);
|
|
212
213
|
}, $ = () => {
|
|
@@ -258,28 +259,28 @@ var ae = {
|
|
|
258
259
|
zoom: 11
|
|
259
260
|
});
|
|
260
261
|
};
|
|
261
|
-
return (
|
|
262
|
-
let s = ee, l = r, h =
|
|
262
|
+
return (a, o) => {
|
|
263
|
+
let s = ee, l = r, h = i;
|
|
263
264
|
return E((v(), d("div", ae, [
|
|
264
|
-
f("div", { class: "RadarShortTerm-head" }, [f("div", { class: "RadarShortTerm-head-top" }, [
|
|
265
|
+
f("div", { class: "RadarShortTerm-head" }, [f("div", { class: "RadarShortTerm-head-top" }, [o[1] ||= f("div", null, "雷达短临预报", -1), f("div", { class: "head-actions" }, [f("div", {
|
|
265
266
|
class: "closeBtn",
|
|
266
267
|
onClick: Ve,
|
|
267
268
|
title: "关闭"
|
|
268
|
-
})])]),
|
|
269
|
+
})])]), o[2] ||= f("img", {
|
|
269
270
|
class: "RadarShortTerm-head-line",
|
|
270
271
|
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",
|
|
271
272
|
alt: ""
|
|
272
273
|
}, null, -1)]),
|
|
273
|
-
f("div", oe, [f("div", se, [f("div", ce, [
|
|
274
|
+
f("div", oe, [f("div", se, [f("div", ce, [o[4] ||= f("span", { class: "setting-label" }, "雷达展示:", -1), f("div", le, [m(s, {
|
|
274
275
|
modelValue: k.value,
|
|
275
|
-
"onUpdate:modelValue":
|
|
276
|
+
"onUpdate:modelValue": o[0] ||= (e) => k.value = e,
|
|
276
277
|
class: "pile-checkbox",
|
|
277
278
|
onChange: Re
|
|
278
279
|
}, {
|
|
279
|
-
default: T(() => [...
|
|
280
|
+
default: T(() => [...o[3] ||= [p(" 显示 ", -1)]]),
|
|
280
281
|
_: 1
|
|
281
282
|
}, 8, ["modelValue"])])])])]),
|
|
282
|
-
f("div", ue, [
|
|
283
|
+
f("div", ue, [o[7] ||= f("div", { class: "table-head" }, [
|
|
283
284
|
f("span", null, "高速名称"),
|
|
284
285
|
f("span", null, "状态要素"),
|
|
285
286
|
f("span", { class: "head-arrow" })
|
|
@@ -307,11 +308,11 @@ var ae = {
|
|
|
307
308
|
E(f("div", {
|
|
308
309
|
class: "pile-title",
|
|
309
310
|
onClick: (t) => Be(e.name)
|
|
310
|
-
}, [f("span", null, [
|
|
311
|
+
}, [f("span", null, [o[5] ||= p(" 桩号数据 ", -1), X(e.piles) > 0 ? (v(), d("span", he, " (报警数量:" + x(X(e.piles)) + "个)", 1)) : te("", !0)]), f("span", { class: g(["panel-arrow", { expanded: F.value[e.name] }]) }, [m(l, null, {
|
|
311
312
|
default: T(() => [m(S(t))]),
|
|
312
313
|
_: 1
|
|
313
314
|
})], 2)], 8, me), [[C, P.value[e.name]]]),
|
|
314
|
-
E(f("div", ge, [
|
|
315
|
+
E(f("div", ge, [o[6] ||= f("div", { class: "pile-head" }, [
|
|
315
316
|
f("span", null, "桩号"),
|
|
316
317
|
f("span", null, "未来R1h"),
|
|
317
318
|
f("span", null, "未来R2h"),
|
|
@@ -344,7 +345,7 @@ var ae = {
|
|
|
344
345
|
onClick: (e) => (j.value = Number(t), Le())
|
|
345
346
|
}, [
|
|
346
347
|
f("i", { style: _({ backgroundColor: e._isHistory ? "" : "#ca9e64" }) }, null, 4),
|
|
347
|
-
E(f("span", null, [...
|
|
348
|
+
E(f("span", null, [...o[8] ||= [f("i", null, null, -1)]], 512), [[C, t === j.value]]),
|
|
348
349
|
f("div", Ee, [f("b", null, x(e._label), 1)])
|
|
349
350
|
], 8, Te), (v(), d(c, null, b(4, (n) => E(f("div", {
|
|
350
351
|
class: "radarAxis-li-point",
|