nxd-plugin 1.5.6 → 1.5.8
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-LithiumBatteryMiningArea-CAWkyWzC.mjs → component-LithiumBatteryMiningArea-C9Il0ueG.mjs} +229 -165
- package/dist/chunks/{component-TimeBasedForecast-XI_q_qXB.mjs → component-TimeBasedForecast-DDM5o66i.mjs} +1 -1
- package/dist/chunks/{component-WeatherForecast-1gjqAkui.mjs → component-WeatherForecast-DLRJjmzt.mjs} +1 -1
- package/dist/chunks/{component-YCLoginNew-DY7lAfed.mjs → component-YCLoginNew-qN1N7pqT.mjs} +1 -1
- package/dist/nxd-plugin.mjs +4 -4
- package/dist/src/components/LithiumBatteryMiningArea/LithiumBatteryMiningArea.vue.d.ts +4 -0
- package/dist/styles/component-LithiumBatteryMiningArea.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,100 +1,100 @@
|
|
|
1
1
|
import "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
2
|
import { n as e, r as t } from "./component-HighWayFreeze-Ckh45dhq.mjs";
|
|
3
3
|
import { i as n, o as r, r as i } from "./component-HighWayEarlyWarningRed-C4eUxLai.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { Fragment as
|
|
4
|
+
import { i as a, n as o, r as ee } from "./component-HighwayLiveAlarm-BJQZsDZ2.mjs";
|
|
5
|
+
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
6
|
//#region node_modules/js-base64/base64.mjs
|
|
7
|
-
var
|
|
7
|
+
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) => {
|
|
8
8
|
let t = {};
|
|
9
9
|
return e.forEach((e, n) => t[e] = n), t;
|
|
10
|
-
})(
|
|
10
|
+
})(D), k = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, A = String.fromCharCode.bind(String), j = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), M = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" : "_"), N = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), P = (e) => {
|
|
11
11
|
let t, n, r, i, a = "", o = e.length % 3;
|
|
12
12
|
for (let o = 0; o < e.length;) {
|
|
13
13
|
if ((n = e.charCodeAt(o++)) > 255 || (r = e.charCodeAt(o++)) > 255 || (i = e.charCodeAt(o++)) > 255) throw TypeError("invalid character found");
|
|
14
|
-
t = n << 16 | r << 8 | i, a +=
|
|
14
|
+
t = n << 16 | r << 8 | i, a += D[t >> 18 & 63] + D[t >> 12 & 63] + D[t >> 6 & 63] + D[t & 63];
|
|
15
15
|
}
|
|
16
16
|
return o ? a.slice(0, o - 3) + "===".substring(o) : a;
|
|
17
|
-
},
|
|
17
|
+
}, F = typeof btoa == "function" ? (e) => btoa(e) : w ? (e) => Buffer.from(e, "binary").toString("base64") : P, I = w ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
18
18
|
let t = 4096, n = [];
|
|
19
|
-
for (let r = 0, i = e.length; r < i; r += t) n.push(
|
|
20
|
-
return
|
|
21
|
-
},
|
|
19
|
+
for (let r = 0, i = e.length; r < i; r += t) n.push(A.apply(null, e.subarray(r, r + t)));
|
|
20
|
+
return F(n.join(""));
|
|
21
|
+
}, L = (e, t = !1) => t ? M(I(e)) : I(e), R = (e) => {
|
|
22
22
|
if (e.length < 2) {
|
|
23
23
|
var t = e.charCodeAt(0);
|
|
24
|
-
return t < 128 ? e : t < 2048 ?
|
|
24
|
+
return t < 128 ? e : t < 2048 ? A(192 | t >>> 6) + A(128 | t & 63) : A(224 | t >>> 12 & 15) + A(128 | t >>> 6 & 63) + A(128 | t & 63);
|
|
25
25
|
} else {
|
|
26
26
|
var t = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
27
|
-
return
|
|
27
|
+
return A(240 | t >>> 18 & 7) + A(128 | t >>> 12 & 63) + A(128 | t >>> 6 & 63) + A(128 | t & 63);
|
|
28
28
|
}
|
|
29
|
-
},
|
|
29
|
+
}, z = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, B = (e) => e.replace(z, R), V = w ? (e) => Buffer.from(e, "utf8").toString("base64") : E ? (e) => I(E.encode(e)) : (e) => F(B(e)), H = (e, t = !1) => t ? M(V(e)) : V(e), U = (e) => H(e, !0), W = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, G = (e) => {
|
|
30
30
|
switch (e.length) {
|
|
31
31
|
case 4:
|
|
32
32
|
var t = ((7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3)) - 65536;
|
|
33
|
-
return
|
|
34
|
-
case 3: return
|
|
35
|
-
default: return
|
|
33
|
+
return A((t >>> 10) + 55296) + A((t & 1023) + 56320);
|
|
34
|
+
case 3: return A((15 & e.charCodeAt(0)) << 12 | (63 & e.charCodeAt(1)) << 6 | 63 & e.charCodeAt(2));
|
|
35
|
+
default: return A((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
|
|
36
36
|
}
|
|
37
|
-
},
|
|
38
|
-
if (e = e.replace(/\s+/g, ""), !
|
|
37
|
+
}, K = (e) => e.replace(W, G), q = (e) => {
|
|
38
|
+
if (e = e.replace(/\s+/g, ""), !k.test(e)) throw TypeError("malformed base64.");
|
|
39
39
|
e += "==".slice(2 - (e.length & 3));
|
|
40
40
|
let t, n, r, i = [];
|
|
41
|
-
for (let a = 0; a < e.length;) t =
|
|
41
|
+
for (let a = 0; a < e.length;) t = O[e.charAt(a++)] << 18 | O[e.charAt(a++)] << 12 | (n = O[e.charAt(a++)]) << 6 | (r = O[e.charAt(a++)]), n === 64 ? i.push(A(t >> 16 & 255)) : r === 64 ? i.push(A(t >> 16 & 255, t >> 8 & 255)) : i.push(A(t >> 16 & 255, t >> 8 & 255, t & 255));
|
|
42
42
|
return i.join("");
|
|
43
|
-
},
|
|
43
|
+
}, J = typeof atob == "function" ? (e) => atob(N(e)) : w ? (e) => Buffer.from(e, "base64").toString("binary") : q, Y = w ? (e) => j(Buffer.from(e, "base64")) : (e) => j(J(e).split("").map((e) => e.charCodeAt(0))), X = (e) => Y(Z(e)), oe = w ? (e) => Buffer.from(e, "base64").toString("utf8") : T ? (e) => T.decode(Y(e)) : (e) => K(J(e)), Z = (e) => N(e.replace(/[-_]/g, (e) => e == "-" ? "+" : "/")), Q = (e) => oe(Z(e)), se = (e) => {
|
|
44
44
|
if (typeof e != "string") return !1;
|
|
45
45
|
let t = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
46
46
|
return !/[^\s0-9a-zA-Z\+/]/.test(t) || !/[^\s0-9a-zA-Z\-_]/.test(t);
|
|
47
|
-
},
|
|
47
|
+
}, ce = (e) => ({
|
|
48
48
|
value: e,
|
|
49
49
|
enumerable: !1,
|
|
50
50
|
writable: !0,
|
|
51
51
|
configurable: !0
|
|
52
|
-
}),
|
|
53
|
-
let e = (e, t) => Object.defineProperty(String.prototype, e,
|
|
52
|
+
}), le = function() {
|
|
53
|
+
let e = (e, t) => Object.defineProperty(String.prototype, e, ce(t));
|
|
54
54
|
e("fromBase64", function() {
|
|
55
|
-
return
|
|
55
|
+
return Q(this);
|
|
56
56
|
}), e("toBase64", function(e) {
|
|
57
|
-
return
|
|
57
|
+
return H(this, e);
|
|
58
58
|
}), e("toBase64URI", function() {
|
|
59
|
-
return
|
|
59
|
+
return H(this, !0);
|
|
60
60
|
}), e("toBase64URL", function() {
|
|
61
|
-
return
|
|
61
|
+
return H(this, !0);
|
|
62
62
|
}), e("toUint8Array", function() {
|
|
63
|
-
return
|
|
63
|
+
return X(this);
|
|
64
64
|
});
|
|
65
|
-
},
|
|
66
|
-
let e = (e, t) => Object.defineProperty(Uint8Array.prototype, e,
|
|
65
|
+
}, ue = function() {
|
|
66
|
+
let e = (e, t) => Object.defineProperty(Uint8Array.prototype, e, ce(t));
|
|
67
67
|
e("toBase64", function(e) {
|
|
68
|
-
return
|
|
68
|
+
return L(this, e);
|
|
69
69
|
}), e("toBase64URI", function() {
|
|
70
|
-
return
|
|
70
|
+
return L(this, !0);
|
|
71
71
|
}), e("toBase64URL", function() {
|
|
72
|
-
return
|
|
72
|
+
return L(this, !0);
|
|
73
73
|
});
|
|
74
|
-
},
|
|
75
|
-
version:
|
|
76
|
-
VERSION:
|
|
77
|
-
atob:
|
|
78
|
-
atobPolyfill:
|
|
79
|
-
btoa:
|
|
80
|
-
btoaPolyfill:
|
|
81
|
-
fromBase64:
|
|
82
|
-
toBase64:
|
|
83
|
-
encode:
|
|
84
|
-
encodeURI:
|
|
85
|
-
encodeURL:
|
|
86
|
-
utob:
|
|
87
|
-
btou:
|
|
88
|
-
decode:
|
|
89
|
-
isValid:
|
|
90
|
-
fromUint8Array:
|
|
91
|
-
toUint8Array:
|
|
92
|
-
extendString:
|
|
93
|
-
extendUint8Array:
|
|
74
|
+
}, $ = {
|
|
75
|
+
version: S,
|
|
76
|
+
VERSION: C,
|
|
77
|
+
atob: J,
|
|
78
|
+
atobPolyfill: q,
|
|
79
|
+
btoa: F,
|
|
80
|
+
btoaPolyfill: P,
|
|
81
|
+
fromBase64: Q,
|
|
82
|
+
toBase64: H,
|
|
83
|
+
encode: H,
|
|
84
|
+
encodeURI: U,
|
|
85
|
+
encodeURL: U,
|
|
86
|
+
utob: B,
|
|
87
|
+
btou: K,
|
|
88
|
+
decode: Q,
|
|
89
|
+
isValid: se,
|
|
90
|
+
fromUint8Array: L,
|
|
91
|
+
toUint8Array: X,
|
|
92
|
+
extendString: le,
|
|
93
|
+
extendUint8Array: ue,
|
|
94
94
|
extendBuiltins: () => {
|
|
95
|
-
|
|
95
|
+
le(), ue();
|
|
96
96
|
}
|
|
97
|
-
},
|
|
97
|
+
}, de = {
|
|
98
98
|
type: "FeatureCollection",
|
|
99
99
|
features: [{
|
|
100
100
|
type: "Feature",
|
|
@@ -1240,7 +1240,7 @@ var v = "3.7.8", y = v, b = typeof Buffer == "function", x = typeof TextDecoder
|
|
|
1240
1240
|
]]]
|
|
1241
1241
|
}
|
|
1242
1242
|
}]
|
|
1243
|
-
},
|
|
1243
|
+
}, fe = {
|
|
1244
1244
|
type: "FeatureCollection",
|
|
1245
1245
|
features: [{
|
|
1246
1246
|
type: "Feature",
|
|
@@ -2260,7 +2260,7 @@ var v = "3.7.8", y = v, b = typeof Buffer == "function", x = typeof TextDecoder
|
|
|
2260
2260
|
]]]
|
|
2261
2261
|
}
|
|
2262
2262
|
}]
|
|
2263
|
-
},
|
|
2263
|
+
}, pe = {
|
|
2264
2264
|
type: "FeatureCollection",
|
|
2265
2265
|
features: [{
|
|
2266
2266
|
type: "Feature",
|
|
@@ -2976,10 +2976,10 @@ var v = "3.7.8", y = v, b = typeof Buffer == "function", x = typeof TextDecoder
|
|
|
2976
2976
|
]]]
|
|
2977
2977
|
}
|
|
2978
2978
|
}]
|
|
2979
|
-
},
|
|
2979
|
+
}, me = {
|
|
2980
2980
|
class: "LithiumBatteryMiningArea",
|
|
2981
2981
|
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
2982
|
-
},
|
|
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__ */ i(/* @__PURE__ */ f({
|
|
2983
2983
|
__name: "LithiumBatteryMiningArea",
|
|
2984
2984
|
props: {
|
|
2985
2985
|
appKey: {
|
|
@@ -3003,10 +3003,12 @@ var v = "3.7.8", y = v, b = typeof Buffer == "function", x = typeof TextDecoder
|
|
|
3003
3003
|
"close",
|
|
3004
3004
|
"removePolygon",
|
|
3005
3005
|
"addPolygon",
|
|
3006
|
-
"toComponent"
|
|
3006
|
+
"toComponent",
|
|
3007
|
+
"addMarker",
|
|
3008
|
+
"removeMarker"
|
|
3007
3009
|
],
|
|
3008
|
-
setup(i, { emit:
|
|
3009
|
-
let
|
|
3010
|
+
setup(i, { emit: f }) {
|
|
3011
|
+
let S = i, C = f, w = v(!1), T = v(""), E = v("温度"), D = v([]), O = v(null), k = null, A = _([
|
|
3010
3012
|
{
|
|
3011
3013
|
title: "气温",
|
|
3012
3014
|
isActive: !0
|
|
@@ -3023,80 +3025,116 @@ var v = "3.7.8", y = v, b = typeof Buffer == "function", x = typeof TextDecoder
|
|
|
3023
3025
|
title: "降水",
|
|
3024
3026
|
isActive: !1
|
|
3025
3027
|
}
|
|
3026
|
-
]),
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3028
|
+
]), j = v({}), M = v([]), N = v("单位:℃"), P = v("_time"), F = v(60), I = v(320), L = _({}), R = _([]), z = v(null);
|
|
3029
|
+
h(() => {
|
|
3030
|
+
B(), z.value = setInterval(() => {
|
|
3031
|
+
B();
|
|
3030
3032
|
}, 1e3 * 60 * 10);
|
|
3031
3033
|
}), re(() => {
|
|
3032
|
-
|
|
3034
|
+
k?.dispose(), k = null, clearInterval(z.value);
|
|
3033
3035
|
});
|
|
3034
|
-
let
|
|
3035
|
-
await
|
|
3036
|
-
},
|
|
3037
|
-
|
|
3038
|
-
},
|
|
3039
|
-
|
|
3040
|
-
},
|
|
3041
|
-
|
|
3042
|
-
appKey:
|
|
3043
|
-
appSalt:
|
|
3044
|
-
id:
|
|
3036
|
+
let B = async () => {
|
|
3037
|
+
await U(), X(), await G(), await q(), await J();
|
|
3038
|
+
}, V = () => {
|
|
3039
|
+
C("close", "LithiumBatteryMiningArea");
|
|
3040
|
+
}, H = async () => {
|
|
3041
|
+
X(), await G(), await q(), await J();
|
|
3042
|
+
}, U = async () => {
|
|
3043
|
+
w.value = !0, D.value = (await n({
|
|
3044
|
+
appKey: S.appKey,
|
|
3045
|
+
appSalt: S.appSalt,
|
|
3046
|
+
id: S.ids.mingArea.id,
|
|
3045
3047
|
variables: {},
|
|
3046
|
-
baseHttp:
|
|
3047
|
-
reqType:
|
|
3048
|
-
isFormData:
|
|
3049
|
-
})).data.result.output, console.log("获取矿区数据",
|
|
3050
|
-
},
|
|
3051
|
-
|
|
3048
|
+
baseHttp: S.baseHttp,
|
|
3049
|
+
reqType: S.ids.mingArea.reqType,
|
|
3050
|
+
isFormData: S.ids.mingArea.isFormData
|
|
3051
|
+
})).data.result.output, console.log("获取矿区数据", D.value), T.value = D.value[0].name, w.value = !1;
|
|
3052
|
+
}, W = (e) => {
|
|
3053
|
+
A.forEach((t, n) => {
|
|
3052
3054
|
t.isActive = n === e;
|
|
3053
|
-
}),
|
|
3054
|
-
},
|
|
3055
|
-
|
|
3056
|
-
let e = { station_number:
|
|
3057
|
-
appKey:
|
|
3058
|
-
appSalt:
|
|
3059
|
-
id:
|
|
3060
|
-
variables: { str:
|
|
3061
|
-
baseHttp:
|
|
3062
|
-
reqType:
|
|
3063
|
-
isFormData:
|
|
3055
|
+
}), R.length && Y();
|
|
3056
|
+
}, G = async () => {
|
|
3057
|
+
w.value = !0;
|
|
3058
|
+
let e = { station_number: D.value.map((e) => e.station_number).join(",") }, t = await n({
|
|
3059
|
+
appKey: S.appKey,
|
|
3060
|
+
appSalt: S.appSalt,
|
|
3061
|
+
id: S.ids.realTime.id,
|
|
3062
|
+
variables: { str: $.encode(JSON.stringify(e)) },
|
|
3063
|
+
baseHttp: S.baseHttp,
|
|
3064
|
+
reqType: S.ids.realTime.reqType,
|
|
3065
|
+
isFormData: S.ids.realTime.isFormData
|
|
3064
3066
|
});
|
|
3065
|
-
console.log("获取实时数据", t),
|
|
3066
|
-
},
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3067
|
+
console.log("获取实时数据", t), M.value = t.data.result.output, j.value = t.data.result.output.find((e) => e.station_number === D.value.find((e) => e.name === T.value)?.station_number), w.value = !1, K();
|
|
3068
|
+
}, K = () => {
|
|
3069
|
+
let e = {
|
|
3070
|
+
clickOpen: !1,
|
|
3071
|
+
spotObject: [{
|
|
3072
|
+
offsetX: -6,
|
|
3073
|
+
offsetY: -24,
|
|
3074
|
+
spotArrone: []
|
|
3075
|
+
}],
|
|
3076
|
+
drawArrObj: [],
|
|
3077
|
+
onlyLayerID: "station_lithium"
|
|
3078
|
+
};
|
|
3079
|
+
D.value.forEach((t) => {
|
|
3080
|
+
let n = M.value.find((e) => e.station_number === t.station_number), r = "", i = "";
|
|
3081
|
+
E.value === "降水" && (r = n?.rainfall_1h, i = "mm"), E.value === "温度" && (r = n?.temperature, i = "℃"), E.value === "风速风向" && (r = `${n?.wind_speed}m/s ${n?.wind_direction}`, i = ""), E.value === "湿度" && (r = n?.relative_humidity, i = "%");
|
|
3082
|
+
let a = `
|
|
3083
|
+
<div style='display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;'>
|
|
3084
|
+
<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;'>
|
|
3085
|
+
${r}${i}
|
|
3086
|
+
</div>
|
|
3087
|
+
<div style='width:8px;height:8px;border-radius:50%;background:#fff;border:1px solid #ccc;padding:2px;display:flex;justify-content:space-around'></div>
|
|
3088
|
+
<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;'>
|
|
3089
|
+
${t.name}
|
|
3090
|
+
</div>
|
|
3091
|
+
</div>
|
|
3092
|
+
`, o = {
|
|
3093
|
+
lng: t.longitude,
|
|
3094
|
+
lat: t.latitude,
|
|
3095
|
+
htmlString: a,
|
|
3096
|
+
data: t,
|
|
3097
|
+
otherData: { markId: "station_lithium" }
|
|
3098
|
+
};
|
|
3099
|
+
e.spotObject[0].spotArrone.push(o);
|
|
3100
|
+
}), console.log(e), C("addMarker", {
|
|
3101
|
+
mapMarker: e,
|
|
3102
|
+
removeMarker: "station_lithium"
|
|
3088
3103
|
});
|
|
3089
|
-
|
|
3104
|
+
}, q = async () => {
|
|
3105
|
+
w.value = !0;
|
|
3106
|
+
let e = { station_number: D.value.find((e) => e.name === T.value)?.station_number };
|
|
3107
|
+
L = (await n({
|
|
3108
|
+
appKey: S.appKey,
|
|
3109
|
+
appSalt: S.appSalt,
|
|
3110
|
+
id: S.ids.statistic.id,
|
|
3111
|
+
variables: { str: $.encode(JSON.stringify(e)) },
|
|
3112
|
+
baseHttp: S.baseHttp,
|
|
3113
|
+
reqType: S.ids.statistic.reqType,
|
|
3114
|
+
isFormData: S.ids.statistic.isFormData
|
|
3115
|
+
})).data.result.output[0], w.value = !1;
|
|
3116
|
+
}, J = async () => {
|
|
3117
|
+
w.value = !0;
|
|
3118
|
+
let e = { station_number: D.value.find((e) => e.name === T.value)?.station_number }, t = await n({
|
|
3119
|
+
appKey: S.appKey,
|
|
3120
|
+
appSalt: S.appSalt,
|
|
3121
|
+
id: S.ids.chart.id,
|
|
3122
|
+
variables: { str: $.encode(JSON.stringify(e)) },
|
|
3123
|
+
baseHttp: S.baseHttp,
|
|
3124
|
+
reqType: S.ids.chart.reqType,
|
|
3125
|
+
isFormData: S.ids.chart.isFormData
|
|
3126
|
+
});
|
|
3127
|
+
w.value = !1, console.log("获取实况图表数据", t);
|
|
3090
3128
|
let r = t.data.result.output.slice(0, 24);
|
|
3091
3129
|
r.forEach((e) => {
|
|
3092
3130
|
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})`;
|
|
3093
|
-
}),
|
|
3094
|
-
},
|
|
3095
|
-
let e =
|
|
3096
|
-
e === "气温" ? (
|
|
3097
|
-
width:
|
|
3131
|
+
}), R = r, Y();
|
|
3132
|
+
}, Y = async () => {
|
|
3133
|
+
let e = A.find((e) => e.isActive)?.title || "气温", t = "line", n = [], r = 0, i = 100;
|
|
3134
|
+
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({
|
|
3135
|
+
width: I.value,
|
|
3098
3136
|
height: 210
|
|
3099
|
-
}) :
|
|
3137
|
+
}) : k = o(O.value), k.setOption({
|
|
3100
3138
|
animation: !1,
|
|
3101
3139
|
grid: {
|
|
3102
3140
|
top: 18,
|
|
@@ -3106,7 +3144,7 @@ var v = "3.7.8", y = v, b = typeof Buffer == "function", x = typeof TextDecoder
|
|
|
3106
3144
|
},
|
|
3107
3145
|
xAxis: {
|
|
3108
3146
|
type: "category",
|
|
3109
|
-
data:
|
|
3147
|
+
data: R.map((e) => e[P.value]),
|
|
3110
3148
|
boundaryGap: !0,
|
|
3111
3149
|
axisLine: {
|
|
3112
3150
|
show: !0,
|
|
@@ -3166,9 +3204,9 @@ var v = "3.7.8", y = v, b = typeof Buffer == "function", x = typeof TextDecoder
|
|
|
3166
3204
|
areaStyle: t === "line" ? { color: "rgba(85, 200, 255, 0.15)" } : void 0
|
|
3167
3205
|
}]
|
|
3168
3206
|
}));
|
|
3169
|
-
},
|
|
3207
|
+
}, X = () => {
|
|
3170
3208
|
let e = {};
|
|
3171
|
-
|
|
3209
|
+
T.value === "宜春钽铌矿有限公司" && (e = fe), T.value === "宜丰锂电矿区" && (e = pe), T.value === "奉新锂电矿区" && (e = de), C("removePolygon", "areaPolygon");
|
|
3172
3210
|
let t = [];
|
|
3173
3211
|
e.features.forEach((e) => {
|
|
3174
3212
|
e.geometry.coordinates.forEach((e) => {
|
|
@@ -3184,41 +3222,67 @@ var v = "3.7.8", y = v, b = typeof Buffer == "function", x = typeof TextDecoder
|
|
|
3184
3222
|
});
|
|
3185
3223
|
});
|
|
3186
3224
|
});
|
|
3187
|
-
}),
|
|
3225
|
+
}), C("addPolygon", {
|
|
3188
3226
|
removePolygon: "areaPolygon",
|
|
3189
3227
|
polygonArr: { polygonArr: t }
|
|
3190
3228
|
});
|
|
3191
|
-
let n =
|
|
3192
|
-
|
|
3229
|
+
let n = D.value.find((e) => e.name === T.value);
|
|
3230
|
+
C("toComponent", {
|
|
3193
3231
|
componentName: "TimeBasedForecast",
|
|
3194
3232
|
data: n
|
|
3195
|
-
}),
|
|
3233
|
+
}), C("toComponent", {
|
|
3196
3234
|
componentName: "WeatherForecast",
|
|
3197
3235
|
data: n
|
|
3198
3236
|
});
|
|
3199
3237
|
};
|
|
3200
3238
|
return (n, i) => {
|
|
3201
|
-
let a = e,
|
|
3202
|
-
return
|
|
3203
|
-
|
|
3204
|
-
|
|
3239
|
+
let o = ee, f = a, p = e, re = t, h = r;
|
|
3240
|
+
return ae((g(), c("div", me, [
|
|
3241
|
+
l("div", he, [
|
|
3242
|
+
l("div", { class: "LithiumBatteryMiningArea__head-top" }, [i[2] ||= l("div", null, "矿区实况", -1), l("div", {
|
|
3205
3243
|
class: "closeBtn",
|
|
3206
|
-
onClick:
|
|
3244
|
+
onClick: V,
|
|
3207
3245
|
title: "关闭"
|
|
3208
3246
|
})]),
|
|
3209
|
-
i[
|
|
3247
|
+
i[9] ||= l("img", {
|
|
3210
3248
|
class: "LithiumBatteryMiningArea__head-line",
|
|
3211
3249
|
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",
|
|
3212
3250
|
alt: ""
|
|
3213
3251
|
}, null, -1),
|
|
3214
|
-
|
|
3215
|
-
modelValue:
|
|
3216
|
-
"onUpdate:modelValue": i[0] ||= (e) =>
|
|
3252
|
+
l("div", ge, [i[7] ||= l("span", { class: "setting-label" }, "地图要素:", -1), d(f, {
|
|
3253
|
+
modelValue: E.value,
|
|
3254
|
+
"onUpdate:modelValue": i[0] ||= (e) => E.value = e,
|
|
3255
|
+
class: "setting-radios",
|
|
3256
|
+
onChange: K
|
|
3257
|
+
}, {
|
|
3258
|
+
default: x(() => [
|
|
3259
|
+
d(o, { value: "温度" }, {
|
|
3260
|
+
default: x(() => [...i[3] ||= [u("温度", -1)]]),
|
|
3261
|
+
_: 1
|
|
3262
|
+
}),
|
|
3263
|
+
d(o, { value: "湿度" }, {
|
|
3264
|
+
default: x(() => [...i[4] ||= [u("湿度", -1)]]),
|
|
3265
|
+
_: 1
|
|
3266
|
+
}),
|
|
3267
|
+
d(o, { value: "风速风向" }, {
|
|
3268
|
+
default: x(() => [...i[5] ||= [u("风速风向", -1)]]),
|
|
3269
|
+
_: 1
|
|
3270
|
+
}),
|
|
3271
|
+
d(o, { value: "降水" }, {
|
|
3272
|
+
default: x(() => [...i[6] ||= [u("降水", -1)]]),
|
|
3273
|
+
_: 1
|
|
3274
|
+
})
|
|
3275
|
+
]),
|
|
3276
|
+
_: 1
|
|
3277
|
+
}, 8, ["modelValue"])]),
|
|
3278
|
+
l("div", _e, [i[8] ||= l("span", { class: "LithiumBatteryMiningArea__select-label" }, "矿区选择:", -1), d(re, {
|
|
3279
|
+
modelValue: T.value,
|
|
3280
|
+
"onUpdate:modelValue": i[1] ||= (e) => T.value = e,
|
|
3217
3281
|
placeholder: "请选择矿区",
|
|
3218
3282
|
class: "dark-select",
|
|
3219
|
-
onChange:
|
|
3283
|
+
onChange: H
|
|
3220
3284
|
}, {
|
|
3221
|
-
default:
|
|
3285
|
+
default: x(() => [(g(!0), c(s, null, ie(b(D), (e) => (g(), te(p, {
|
|
3222
3286
|
key: e.name,
|
|
3223
3287
|
label: e.name,
|
|
3224
3288
|
value: e.name
|
|
@@ -3226,39 +3290,39 @@ var v = "3.7.8", y = v, b = typeof Buffer == "function", x = typeof TextDecoder
|
|
|
3226
3290
|
_: 1
|
|
3227
3291
|
}, 8, ["modelValue"])])
|
|
3228
3292
|
]),
|
|
3229
|
-
|
|
3230
|
-
i[
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3293
|
+
l("div", ve, [
|
|
3294
|
+
i[14] ||= l("div", { class: "lithium__realTime-subTitle" }, "实时监测", -1),
|
|
3295
|
+
l("div", ye, [i[10] ||= l("span", { class: "lithium__realTime-label" }, "温度:", -1), l("span", be, y(b(j).temperature) + "℃", 1)]),
|
|
3296
|
+
l("div", xe, [i[11] ||= l("span", { class: "lithium__realTime-label" }, "湿度:", -1), l("span", Se, y(b(j).relative_humidity) + "%", 1)]),
|
|
3297
|
+
l("div", Ce, [i[12] ||= l("span", { class: "lithium__realTime-label" }, "风速风向:", -1), l("span", we, y(b(j).wind_speed) + "m/s " + y(b(j).wind_direction), 1)]),
|
|
3298
|
+
l("div", Te, [i[13] ||= l("span", { class: "lithium__realTime-label" }, "1小时累计降水:", -1), l("span", Ee, y(b(j).rainfall_1h) + "mm", 1)])
|
|
3235
3299
|
]),
|
|
3236
|
-
|
|
3237
|
-
i[
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3300
|
+
l("div", De, [
|
|
3301
|
+
i[18] ||= l("div", { class: "lithium__realTime-subTitle" }, "统计信息", -1),
|
|
3302
|
+
l("div", Oe, [i[15] ||= l("span", { class: "lithium__realTime-label" }, "24小时最低温度:", -1), l("span", ke, y(b(L).min_temperature_24h) + "℃", 1)]),
|
|
3303
|
+
l("div", Ae, [i[16] ||= l("span", { class: "lithium__realTime-label" }, "24小时最高温度:", -1), l("span", je, y(b(L).max_temperature_24h) + "℃", 1)]),
|
|
3304
|
+
l("div", Me, [i[17] ||= l("span", { class: "lithium__realTime-label" }, "24小时累计降水:", -1), l("span", Ne, y(b(L).rainfall_sum_24h) + "mm", 1)])
|
|
3241
3305
|
]),
|
|
3242
|
-
|
|
3306
|
+
l("div", Pe, [(g(!0), c(s, null, ie(A, (e, t) => (g(), c("div", {
|
|
3243
3307
|
key: e.title,
|
|
3244
3308
|
class: ne(["lithium__realTime-chartOpt-item", { "lithium__realTime-chartOpt-item--active": e.isActive }]),
|
|
3245
|
-
onClick: (e) =>
|
|
3246
|
-
},
|
|
3247
|
-
|
|
3309
|
+
onClick: (e) => W(t)
|
|
3310
|
+
}, y(e.title), 11, Fe))), 128))]),
|
|
3311
|
+
l("div", Ie, [l("div", Le, y(N.value), 1), l("div", Re, [l("div", {
|
|
3248
3312
|
class: "lithium__realTime-chart-board",
|
|
3249
|
-
style:
|
|
3250
|
-
}, [
|
|
3313
|
+
style: m({ width: `${I.value}px` })
|
|
3314
|
+
}, [l("div", {
|
|
3251
3315
|
ref_key: "ref_RealTimeChart",
|
|
3252
|
-
ref:
|
|
3316
|
+
ref: O,
|
|
3253
3317
|
class: "lithium__realTime-echarts",
|
|
3254
|
-
style:
|
|
3255
|
-
width: `${
|
|
3318
|
+
style: m({
|
|
3319
|
+
width: `${I.value}px`,
|
|
3256
3320
|
height: "210px"
|
|
3257
3321
|
})
|
|
3258
3322
|
}, null, 4)], 4)])])
|
|
3259
|
-
])), [[
|
|
3323
|
+
])), [[h, w.value]]);
|
|
3260
3324
|
};
|
|
3261
3325
|
}
|
|
3262
|
-
}), [["__scopeId", "data-v-
|
|
3326
|
+
}), [["__scopeId", "data-v-d1fa5fae"]]);
|
|
3263
3327
|
//#endregion
|
|
3264
|
-
export {
|
|
3328
|
+
export { $ as n, ze as t };
|
|
@@ -3,7 +3,7 @@ import { n as e, r as t } from "./component-HighWayFreeze-Ckh45dhq.mjs";
|
|
|
3
3
|
import { i as n, o as r, r as i } from "./component-HighWayEarlyWarningRed-C4eUxLai.mjs";
|
|
4
4
|
import { n as a } from "./component-HighwayLiveAlarm-BJQZsDZ2.mjs";
|
|
5
5
|
import { A as o, C as s, D as c, E as l, M as u, N as d, O as ee, P as te, S as ne, T as re, _ as ie, a as ae, b as f, c as p, d as m, f as h, g, h as _, i as v, j as oe, k as se, l as ce, m as le, n as ue, o as de, p as fe, r as pe, s as me, u as he, v as ge, w as y, x as b, y as x } from "./component-HighwayWeatherForecast-shTrLuFz.mjs";
|
|
6
|
-
import { n as S } from "./component-LithiumBatteryMiningArea-
|
|
6
|
+
import { n as S } from "./component-LithiumBatteryMiningArea-C9Il0ueG.mjs";
|
|
7
7
|
import { Fragment as C, createElementBlock as w, createElementVNode as T, createVNode as E, defineComponent as D, getCurrentInstance as O, nextTick as k, normalizeStyle as A, onBeforeUnmount as j, onMounted as M, openBlock as N, ref as P, renderList as F, toDisplayString as I, watch as L, withCtx as _e, withDirectives as R } from "vue";
|
|
8
8
|
//#region src/components/TimeBasedForecast/TimeBasedForecast.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var ve = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
2
|
import { i as e, o as t, r as n } from "./component-HighWayEarlyWarningRed-C4eUxLai.mjs";
|
|
3
3
|
import { A as r, C as i, D as a, E as o, M as s, N as ee, O as c, P as l, S as u, T as d, _ as f, a as p, b as te, c as ne, d as re, f as ie, g as m, h, i as g, j as _, k as v, l as y, m as b, n as x, o as S, p as C, r as w, s as T, u as E, v as D, w as O, x as k, y as A } from "./component-HighwayWeatherForecast-shTrLuFz.mjs";
|
|
4
|
-
import { n as j } from "./component-LithiumBatteryMiningArea-
|
|
4
|
+
import { n as j } from "./component-LithiumBatteryMiningArea-C9Il0ueG.mjs";
|
|
5
5
|
import { Fragment as M, createElementBlock as N, createElementVNode as P, defineComponent as F, getCurrentInstance as I, onMounted as L, openBlock as R, ref as z, renderList as B, toDisplayString as V, withDirectives as H } from "vue";
|
|
6
6
|
//#region src/components/WeatherForecast/WeatherForecast.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var U = {
|
|
@@ -3,7 +3,7 @@ import { A as e, M as t, O as n, m as r } from "./component-HighWayFreeze-Ckh45d
|
|
|
3
3
|
import { i, r as a } from "./component-HighWayEarlyWarningRed-C4eUxLai.mjs";
|
|
4
4
|
import { i as o, n as s, r as c } from "./component-YCHome-C5nCaoI3.mjs";
|
|
5
5
|
import { i as l, n as u } from "./component-ImageGeneration-fM3XhtlC.mjs";
|
|
6
|
-
import { n as d } from "./component-LithiumBatteryMiningArea-
|
|
6
|
+
import { n as d } from "./component-LithiumBatteryMiningArea-C9Il0ueG.mjs";
|
|
7
7
|
import { Fragment as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, onMounted as _, openBlock as v, reactive as y, ref as b, renderList as x, unref as S, withCtx as C, withKeys as w } from "vue";
|
|
8
8
|
//#region src/components/YCLoginNew/YCLoginNew.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var T = { class: "YCLoginNew" }, E = { class: "particles" }, D = { class: "login-container" }, O = { class: "login-wrapper" }, k = { class: "login-box" }, A = { class: "login-header" }, j = { class: "header-icon" }, M = { class: "input-icon-box" }, N = { class: "input-icon-box" }, P = /* @__PURE__ */ a(/* @__PURE__ */ g({
|
package/dist/nxd-plugin.mjs
CHANGED
|
@@ -9,10 +9,10 @@ import { t as s } from "./chunks/component-HighwayLiveAlarmNew-C5KlMjlj.mjs";
|
|
|
9
9
|
import { t as c } from "./chunks/component-HighwayStations-C0dO_r1R.mjs";
|
|
10
10
|
import { t as l } from "./chunks/component-HighwayWeatherForecast-shTrLuFz.mjs";
|
|
11
11
|
import { t as u } from "./chunks/component-YCLogin-Dr5Q9rj3.mjs";
|
|
12
|
-
import { t as d } from "./chunks/component-LithiumBatteryMiningArea-
|
|
13
|
-
import { t as f } from "./chunks/component-YCLoginNew-
|
|
14
|
-
import { t as p } from "./chunks/component-TimeBasedForecast-
|
|
15
|
-
import { t as m } from "./chunks/component-WeatherForecast-
|
|
12
|
+
import { t as d } from "./chunks/component-LithiumBatteryMiningArea-C9Il0ueG.mjs";
|
|
13
|
+
import { t as f } from "./chunks/component-YCLoginNew-qN1N7pqT.mjs";
|
|
14
|
+
import { t as p } from "./chunks/component-TimeBasedForecast-DDM5o66i.mjs";
|
|
15
|
+
import { t as m } from "./chunks/component-WeatherForecast-DLRJjmzt.mjs";
|
|
16
16
|
//#region src/index.ts
|
|
17
17
|
var h = { install(h) {
|
|
18
18
|
h.component("HighwayLiveAlarm", n), h.component("HighwayLiveAlarmNew", s), h.component("HighwayStations", c), h.component("HighWayEarlyWarningRed", t), h.component("HighwayWeatherForecast", l), h.component("ServiceMaterialsBtn", o), h.component("YCHome", r), h.component("YCLogin", u), h.component("YCLoginNew", f), h.component("HighWayFreeze", e), h.component("RadarShortTerm", a), h.component("LithiumBatteryMiningArea", d), h.component("TimeBasedForecast", p), h.component("WeatherForecast", m), h.component("ImageGeneration", i);
|