nxd-plugin 1.7.46 → 1.7.48
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-n1rMcUkd.mjs → component-AqiMonitor-BUy1MSaP.mjs} +14 -14
- package/dist/chunks/{component-HighwayLiveAlarmNew-BfK7FOLK.mjs → component-GeologyLiveAlarm-b35T-VKV.mjs} +207 -207
- package/dist/chunks/{component-HighWayEarlyWarningRed-BnJyShce.mjs → component-HighWayEarlyWarningRed-C07Bu2a2.mjs} +2 -2
- package/dist/chunks/{component-HighWayFreeze-BOV33QgS.mjs → component-HighWayFreeze-BOqfGgAp.mjs} +1 -1
- package/dist/chunks/component-HighwayLiveAlarm-GTnOMO-n.mjs +32322 -0
- package/dist/chunks/component-HighwayLiveAlarmNew-Cq2GC0ay.mjs +684 -0
- package/dist/chunks/{component-HighwayStations-Cmjb6MHu.mjs → component-HighwayStations-D3we6SUy.mjs} +1 -1
- package/dist/chunks/{component-HighwayWeatherForecast-ByPDymqX.mjs → component-HighwayWeatherForecast-BplmvdB0.mjs} +1 -1
- package/dist/chunks/{component-ImageGeneration-SPM2CN6K.mjs → component-ImageGeneration-BesrLds9.mjs} +1891 -1871
- package/dist/chunks/{component-LithiumBatteryMiningArea-C1KfrHaF.mjs → component-LithiumBatteryMiningArea-CLqls8wF.mjs} +154 -154
- package/dist/chunks/{component-MapPopup-B2f0tnVu.mjs → component-MapPopup-B9HGnA3K.mjs} +1 -1
- package/dist/chunks/component-MaterialPreview-p3cNPs6w.mjs +178 -0
- package/dist/chunks/{component-PieLegend-w1YvpVaB.mjs → component-PieLegend-BtguPb2s.mjs} +1 -1
- package/dist/chunks/{component-RadarChart-Dnjp4cbb.mjs → component-RadarChart-BG_3ghVT.mjs} +1 -1
- package/dist/chunks/{component-RadarLegend-Coihcxje.mjs → component-RadarLegend-DOOZkw6V.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-BlI00kHC.mjs → component-RadarShortTerm-n4ICvBMu.mjs} +3 -3
- package/dist/chunks/{component-RadarTime-BnWNJDq1.mjs → component-RadarTime-BPrUMwWz.mjs} +1 -1
- package/dist/chunks/component-ReservoirLiveAlarm-DEwaF83N.mjs +684 -0
- package/dist/chunks/{component-ServiceMaterial-trvjXwHN.mjs → component-ServiceMaterial-DW1I7Fqv.mjs} +1 -1
- package/dist/chunks/{component-ServiceMaterialsBtn-C1ud7xtc.mjs → component-ServiceMaterialsBtn-DqiX5KzU.mjs} +1 -1
- package/dist/chunks/{component-TimeBasedForecast-DR7FkXAn.mjs → component-TimeBasedForecast-B-Y51oZX.mjs} +73 -73
- package/dist/chunks/{component-WarningLine-CWqiXdhZ.mjs → component-WarningLine-BhNa2lgA.mjs} +2 -2
- package/dist/chunks/{component-WarningSignal-CtyCcjNo.mjs → component-WarningSignal-BDZH5FVy.mjs} +2 -2
- package/dist/chunks/{component-WeatherForecast-DTGpJVhm.mjs → component-WeatherForecast-XrVjScRY.mjs} +3 -3
- package/dist/chunks/{component-YCHome-DeLwwN9F.mjs → component-YCHome-CkEc84Y1.mjs} +1 -1
- package/dist/chunks/{component-YCLogin-DtjB2mai.mjs → component-YCLogin-DhBC5b55.mjs} +1 -1
- package/dist/chunks/{component-YCLoginNew-DDPai-9U.mjs → component-YCLoginNew-I_ZnliMh.mjs} +2 -2
- package/dist/chunks/{rolldown-runtime-Dd0fQ6-X.mjs → rolldown-runtime-Cz5NsrRf.mjs} +4 -11
- package/dist/nxd-plugin.mjs +30 -27
- package/dist/src/components/GeologyLiveAlarm/GeologyLiveAlarm.vue.d.ts +74 -0
- package/dist/src/components/MaterialPreview/MaterialPreview.vue.d.ts +2 -0
- package/dist/src/components/ReservoirLiveAlarm/ReservoirLiveAlarm.vue.d.ts +74 -0
- package/dist/src/index.d.ts +4 -1
- package/dist/styles/component-GeologyLiveAlarm.css +1 -0
- package/dist/styles/component-MaterialPreview.css +1 -0
- package/dist/styles/component-ReservoirLiveAlarm.css +1 -0
- package/dist/styles/component-YCLogin.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +2 -2
- package/dist/chunks/component-HighwayLiveAlarm-D_lIKhkC.mjs +0 -76958
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { n as e, r as t } from "./component-AqiMonitor-
|
|
2
|
-
import { n } from "
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { n as e, r as t } from "./component-AqiMonitor-BUy1MSaP.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 ee, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, nextTick as te, normalizeClass as ne, normalizeStyle as p, onBeforeUnmount as m, onMounted as h, openBlock as g, reactive as _, ref as v, renderList as y, toDisplayString as b, unref as x, withCtx as S, withDirectives as re } from "vue";
|
|
4
|
+
import * as ie from "echarts";
|
|
5
5
|
import "element-plus/es/components/loading/style/css";
|
|
6
6
|
import "element-plus/es/components/radio/style/css";
|
|
7
7
|
import "element-plus/es/components/radio-group/style/css";
|
|
8
8
|
import "element-plus/es/components/select/style/css";
|
|
9
9
|
import "element-plus/es/components/option/style/css";
|
|
10
10
|
//#region node_modules/js-base64/base64.mjs
|
|
11
|
-
var
|
|
11
|
+
var C = "3.7.8", w = C, T = typeof Buffer == "function", E = typeof TextDecoder == "function" ? new TextDecoder() : void 0, D = typeof TextEncoder == "function" ? new TextEncoder() : void 0, O = Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="), k = ((e) => {
|
|
12
12
|
let t = {};
|
|
13
13
|
return e.forEach((e, n) => t[e] = n), t;
|
|
14
|
-
})(
|
|
14
|
+
})(O), A = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, j = String.fromCharCode.bind(String), M = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), N = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" : "_"), P = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), F = (e) => {
|
|
15
15
|
let t, n, r, i, a = "", o = e.length % 3;
|
|
16
16
|
for (let o = 0; o < e.length;) {
|
|
17
17
|
if ((n = e.charCodeAt(o++)) > 255 || (r = e.charCodeAt(o++)) > 255 || (i = e.charCodeAt(o++)) > 255) throw TypeError("invalid character found");
|
|
18
|
-
t = n << 16 | r << 8 | i, a +=
|
|
18
|
+
t = n << 16 | r << 8 | i, a += O[t >> 18 & 63] + O[t >> 12 & 63] + O[t >> 6 & 63] + O[t & 63];
|
|
19
19
|
}
|
|
20
20
|
return o ? a.slice(0, o - 3) + "===".substring(o) : a;
|
|
21
|
-
},
|
|
21
|
+
}, I = typeof btoa == "function" ? (e) => btoa(e) : T ? (e) => Buffer.from(e, "binary").toString("base64") : F, L = T ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
22
22
|
let t = 4096, n = [];
|
|
23
|
-
for (let r = 0, i = e.length; r < i; r += t) n.push(
|
|
24
|
-
return
|
|
25
|
-
},
|
|
23
|
+
for (let r = 0, i = e.length; r < i; r += t) n.push(j.apply(null, e.subarray(r, r + t)));
|
|
24
|
+
return I(n.join(""));
|
|
25
|
+
}, R = (e, t = !1) => t ? N(L(e)) : L(e), z = (e) => {
|
|
26
26
|
if (e.length < 2) {
|
|
27
27
|
var t = e.charCodeAt(0);
|
|
28
|
-
return t < 128 ? e : t < 2048 ?
|
|
28
|
+
return t < 128 ? e : t < 2048 ? j(192 | t >>> 6) + j(128 | t & 63) : j(224 | t >>> 12 & 15) + j(128 | t >>> 6 & 63) + j(128 | t & 63);
|
|
29
29
|
} else {
|
|
30
30
|
var t = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
31
|
-
return
|
|
31
|
+
return j(240 | t >>> 18 & 7) + j(128 | t >>> 12 & 63) + j(128 | t >>> 6 & 63) + j(128 | t & 63);
|
|
32
32
|
}
|
|
33
|
-
},
|
|
33
|
+
}, B = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, V = (e) => e.replace(B, z), H = T ? (e) => Buffer.from(e, "utf8").toString("base64") : D ? (e) => L(D.encode(e)) : (e) => I(V(e)), U = (e, t = !1) => t ? N(H(e)) : H(e), W = (e) => U(e, !0), G = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, K = (e) => {
|
|
34
34
|
switch (e.length) {
|
|
35
35
|
case 4:
|
|
36
36
|
var t = ((7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3)) - 65536;
|
|
37
|
-
return
|
|
38
|
-
case 3: return
|
|
39
|
-
default: return
|
|
37
|
+
return j((t >>> 10) + 55296) + j((t & 1023) + 56320);
|
|
38
|
+
case 3: return j((15 & e.charCodeAt(0)) << 12 | (63 & e.charCodeAt(1)) << 6 | 63 & e.charCodeAt(2));
|
|
39
|
+
default: return j((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
|
|
40
40
|
}
|
|
41
|
-
},
|
|
42
|
-
if (e = e.replace(/\s+/g, ""), !
|
|
41
|
+
}, q = (e) => e.replace(G, K), J = (e) => {
|
|
42
|
+
if (e = e.replace(/\s+/g, ""), !A.test(e)) throw TypeError("malformed base64.");
|
|
43
43
|
e += "==".slice(2 - (e.length & 3));
|
|
44
44
|
let t, n, r, i = [];
|
|
45
|
-
for (let a = 0; a < e.length;) t =
|
|
45
|
+
for (let a = 0; a < e.length;) t = k[e.charAt(a++)] << 18 | k[e.charAt(a++)] << 12 | (n = k[e.charAt(a++)]) << 6 | (r = k[e.charAt(a++)]), n === 64 ? i.push(j(t >> 16 & 255)) : r === 64 ? i.push(j(t >> 16 & 255, t >> 8 & 255)) : i.push(j(t >> 16 & 255, t >> 8 & 255, t & 255));
|
|
46
46
|
return i.join("");
|
|
47
|
-
},
|
|
47
|
+
}, Y = typeof atob == "function" ? (e) => atob(P(e)) : T ? (e) => Buffer.from(e, "base64").toString("binary") : J, X = T ? (e) => M(Buffer.from(e, "base64")) : (e) => M(Y(e).split("").map((e) => e.charCodeAt(0))), Z = (e) => X(oe(e)), ae = T ? (e) => Buffer.from(e, "base64").toString("utf8") : E ? (e) => E.decode(X(e)) : (e) => q(Y(e)), oe = (e) => P(e.replace(/[-_]/g, (e) => e == "-" ? "+" : "/")), Q = (e) => ae(oe(e)), se = (e) => {
|
|
48
48
|
if (typeof e != "string") return !1;
|
|
49
49
|
let t = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
50
50
|
return !/[^\s0-9a-zA-Z\+/]/.test(t) || !/[^\s0-9a-zA-Z\-_]/.test(t);
|
|
@@ -58,41 +58,41 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
58
58
|
e("fromBase64", function() {
|
|
59
59
|
return Q(this);
|
|
60
60
|
}), e("toBase64", function(e) {
|
|
61
|
-
return
|
|
61
|
+
return U(this, e);
|
|
62
62
|
}), e("toBase64URI", function() {
|
|
63
|
-
return
|
|
63
|
+
return U(this, !0);
|
|
64
64
|
}), e("toBase64URL", function() {
|
|
65
|
-
return
|
|
65
|
+
return U(this, !0);
|
|
66
66
|
}), e("toUint8Array", function() {
|
|
67
|
-
return
|
|
67
|
+
return Z(this);
|
|
68
68
|
});
|
|
69
69
|
}, ue = function() {
|
|
70
70
|
let e = (e, t) => Object.defineProperty(Uint8Array.prototype, e, ce(t));
|
|
71
71
|
e("toBase64", function(e) {
|
|
72
|
-
return
|
|
72
|
+
return R(this, e);
|
|
73
73
|
}), e("toBase64URI", function() {
|
|
74
|
-
return
|
|
74
|
+
return R(this, !0);
|
|
75
75
|
}), e("toBase64URL", function() {
|
|
76
|
-
return
|
|
76
|
+
return R(this, !0);
|
|
77
77
|
});
|
|
78
78
|
}, $ = {
|
|
79
|
-
version:
|
|
80
|
-
VERSION:
|
|
81
|
-
atob:
|
|
82
|
-
atobPolyfill:
|
|
83
|
-
btoa:
|
|
84
|
-
btoaPolyfill:
|
|
79
|
+
version: C,
|
|
80
|
+
VERSION: w,
|
|
81
|
+
atob: Y,
|
|
82
|
+
atobPolyfill: J,
|
|
83
|
+
btoa: I,
|
|
84
|
+
btoaPolyfill: F,
|
|
85
85
|
fromBase64: Q,
|
|
86
|
-
toBase64:
|
|
87
|
-
encode:
|
|
88
|
-
encodeURI:
|
|
89
|
-
encodeURL:
|
|
90
|
-
utob:
|
|
91
|
-
btou:
|
|
86
|
+
toBase64: U,
|
|
87
|
+
encode: U,
|
|
88
|
+
encodeURI: W,
|
|
89
|
+
encodeURL: W,
|
|
90
|
+
utob: V,
|
|
91
|
+
btou: q,
|
|
92
92
|
decode: Q,
|
|
93
93
|
isValid: se,
|
|
94
|
-
fromUint8Array:
|
|
95
|
-
toUint8Array:
|
|
94
|
+
fromUint8Array: R,
|
|
95
|
+
toUint8Array: Z,
|
|
96
96
|
extendString: le,
|
|
97
97
|
extendUint8Array: ue,
|
|
98
98
|
extendBuiltins: () => {
|
|
@@ -3012,7 +3012,7 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3012
3012
|
"removeMarker"
|
|
3013
3013
|
],
|
|
3014
3014
|
setup(e, { emit: f }) {
|
|
3015
|
-
let
|
|
3015
|
+
let C = e, w = f, T = v(!1), E = v(""), D = v("温度"), O = v([]), k = v(null), A = null, j = _([
|
|
3016
3016
|
{
|
|
3017
3017
|
title: "气温",
|
|
3018
3018
|
isActive: !0
|
|
@@ -3029,47 +3029,47 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3029
3029
|
title: "降水",
|
|
3030
3030
|
isActive: !1
|
|
3031
3031
|
}
|
|
3032
|
-
]),
|
|
3032
|
+
]), M = v({}), N = v([]), P = v("单位:℃"), F = v("_time"), I = v(60), L = v(320), R = _({}), z = _([]), B = v(null);
|
|
3033
3033
|
h(() => {
|
|
3034
|
-
|
|
3035
|
-
|
|
3034
|
+
V(), B.value = setInterval(() => {
|
|
3035
|
+
V();
|
|
3036
3036
|
}, 1e3 * 60 * 10);
|
|
3037
|
-
}),
|
|
3038
|
-
|
|
3037
|
+
}), m(() => {
|
|
3038
|
+
A?.dispose(), A = null, clearInterval(B.value);
|
|
3039
3039
|
});
|
|
3040
|
-
let
|
|
3041
|
-
await
|
|
3042
|
-
},
|
|
3043
|
-
|
|
3044
|
-
}, H = async () => {
|
|
3045
|
-
X(), await G(), await q(), await J();
|
|
3040
|
+
let V = async () => {
|
|
3041
|
+
await W(), Z(), await K(), await J(), await Y();
|
|
3042
|
+
}, H = () => {
|
|
3043
|
+
w("close", "LithiumBatteryMiningArea");
|
|
3046
3044
|
}, U = async () => {
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3045
|
+
Z(), await K(), await J(), await Y();
|
|
3046
|
+
}, W = async () => {
|
|
3047
|
+
T.value = !0, O.value = (await t({
|
|
3048
|
+
appKey: C.appKey,
|
|
3049
|
+
appSalt: C.appSalt,
|
|
3050
|
+
id: C.ids.mingArea.id,
|
|
3051
3051
|
variables: {},
|
|
3052
|
-
baseHttp:
|
|
3053
|
-
reqType:
|
|
3054
|
-
isFormData:
|
|
3055
|
-
})).data.result.output, console.log("获取矿区数据",
|
|
3056
|
-
},
|
|
3057
|
-
|
|
3052
|
+
baseHttp: C.baseHttp,
|
|
3053
|
+
reqType: C.ids.mingArea.reqType,
|
|
3054
|
+
isFormData: C.ids.mingArea.isFormData
|
|
3055
|
+
})).data.result.output, console.log("获取矿区数据", O.value), E.value = O.value[0].name, T.value = !1;
|
|
3056
|
+
}, G = (e) => {
|
|
3057
|
+
j.forEach((t, n) => {
|
|
3058
3058
|
t.isActive = n === e;
|
|
3059
|
-
}),
|
|
3060
|
-
},
|
|
3061
|
-
|
|
3062
|
-
let e = { station_number:
|
|
3063
|
-
appKey:
|
|
3064
|
-
appSalt:
|
|
3065
|
-
id:
|
|
3059
|
+
}), z.length && X();
|
|
3060
|
+
}, K = async () => {
|
|
3061
|
+
T.value = !0;
|
|
3062
|
+
let e = { station_number: O.value.map((e) => e.station_number).join(",") }, n = await t({
|
|
3063
|
+
appKey: C.appKey,
|
|
3064
|
+
appSalt: C.appSalt,
|
|
3065
|
+
id: C.ids.realTime.id,
|
|
3066
3066
|
variables: { str: $.encode(JSON.stringify(e)) },
|
|
3067
|
-
baseHttp:
|
|
3068
|
-
reqType:
|
|
3069
|
-
isFormData:
|
|
3067
|
+
baseHttp: C.baseHttp,
|
|
3068
|
+
reqType: C.ids.realTime.reqType,
|
|
3069
|
+
isFormData: C.ids.realTime.isFormData
|
|
3070
3070
|
});
|
|
3071
|
-
console.log("获取实时数据", n),
|
|
3072
|
-
},
|
|
3071
|
+
console.log("获取实时数据", n), N.value = n.data.result.output, M.value = n.data.result.output.find((e) => e.station_number === O.value.find((e) => e.name === E.value)?.station_number), T.value = !1, q();
|
|
3072
|
+
}, q = () => {
|
|
3073
3073
|
let e = {
|
|
3074
3074
|
clickOpen: !1,
|
|
3075
3075
|
spotObject: [{
|
|
@@ -3080,9 +3080,9 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3080
3080
|
drawArrObj: [],
|
|
3081
3081
|
onlyLayerID: "station_lithium"
|
|
3082
3082
|
};
|
|
3083
|
-
|
|
3084
|
-
let n =
|
|
3085
|
-
|
|
3083
|
+
O.value.forEach((t) => {
|
|
3084
|
+
let n = N.value.find((e) => e.station_number === t.station_number), r = "", i = "";
|
|
3085
|
+
D.value === "降水" && (r = n?.rainfall_1h, i = "mm"), D.value === "温度" && (r = n?.temperature, i = "℃"), D.value === "风速风向" && (r = `${n?.wind_speed}m/s ${n?.wind_direction}`, i = ""), D.value === "湿度" && (r = n?.relative_humidity, i = "%");
|
|
3086
3086
|
let a = `
|
|
3087
3087
|
<div style='display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;'>
|
|
3088
3088
|
<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;'>
|
|
@@ -3101,44 +3101,44 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3101
3101
|
otherData: { markId: "station_lithium" }
|
|
3102
3102
|
};
|
|
3103
3103
|
e.spotObject[0].spotArrone.push(o);
|
|
3104
|
-
}), console.log(e),
|
|
3104
|
+
}), console.log(e), w("addMarker", {
|
|
3105
3105
|
mapMarker: e,
|
|
3106
3106
|
removeMarker: "station_lithium"
|
|
3107
3107
|
});
|
|
3108
|
-
}, q = async () => {
|
|
3109
|
-
w.value = !0;
|
|
3110
|
-
let e = { station_number: D.value.find((e) => e.name === T.value)?.station_number };
|
|
3111
|
-
L = (await t({
|
|
3112
|
-
appKey: S.appKey,
|
|
3113
|
-
appSalt: S.appSalt,
|
|
3114
|
-
id: S.ids.statistic.id,
|
|
3115
|
-
variables: { str: $.encode(JSON.stringify(e)) },
|
|
3116
|
-
baseHttp: S.baseHttp,
|
|
3117
|
-
reqType: S.ids.statistic.reqType,
|
|
3118
|
-
isFormData: S.ids.statistic.isFormData
|
|
3119
|
-
})).data.result.output[0], w.value = !1;
|
|
3120
3108
|
}, J = async () => {
|
|
3121
|
-
|
|
3122
|
-
let e = { station_number:
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3109
|
+
T.value = !0;
|
|
3110
|
+
let e = { station_number: O.value.find((e) => e.name === E.value)?.station_number };
|
|
3111
|
+
R = (await t({
|
|
3112
|
+
appKey: C.appKey,
|
|
3113
|
+
appSalt: C.appSalt,
|
|
3114
|
+
id: C.ids.statistic.id,
|
|
3115
|
+
variables: { str: $.encode(JSON.stringify(e)) },
|
|
3116
|
+
baseHttp: C.baseHttp,
|
|
3117
|
+
reqType: C.ids.statistic.reqType,
|
|
3118
|
+
isFormData: C.ids.statistic.isFormData
|
|
3119
|
+
})).data.result.output[0], T.value = !1;
|
|
3120
|
+
}, Y = async () => {
|
|
3121
|
+
T.value = !0;
|
|
3122
|
+
let e = { station_number: O.value.find((e) => e.name === E.value)?.station_number }, n = await t({
|
|
3123
|
+
appKey: C.appKey,
|
|
3124
|
+
appSalt: C.appSalt,
|
|
3125
|
+
id: C.ids.chart.id,
|
|
3126
3126
|
variables: { str: $.encode(JSON.stringify(e)) },
|
|
3127
|
-
baseHttp:
|
|
3128
|
-
reqType:
|
|
3129
|
-
isFormData:
|
|
3127
|
+
baseHttp: C.baseHttp,
|
|
3128
|
+
reqType: C.ids.chart.reqType,
|
|
3129
|
+
isFormData: C.ids.chart.isFormData
|
|
3130
3130
|
});
|
|
3131
|
-
|
|
3131
|
+
T.value = !1, console.log("获取实况图表数据", n);
|
|
3132
3132
|
let r = n.data.result.output.slice(0, 24);
|
|
3133
3133
|
r.forEach((e) => {
|
|
3134
3134
|
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})`;
|
|
3135
|
-
}),
|
|
3136
|
-
},
|
|
3137
|
-
let e =
|
|
3138
|
-
e === "气温" ? (
|
|
3139
|
-
width:
|
|
3135
|
+
}), z = r, X();
|
|
3136
|
+
}, X = async () => {
|
|
3137
|
+
let e = j.find((e) => e.isActive)?.title || "气温", t = "line", n = [], r = 0, i = 100;
|
|
3138
|
+
e === "气温" ? (P.value = "单位:℃", F.value = "_time", I.value = 60, n = z.map((e) => e._temperature), r = (e) => Math.floor(e.min), i = (e) => Math.ceil(e.max)) : e === "风向风速" ? (P.value = "单位:m/s", F.value = "_windDirectionTime", I.value = 96, n = z.map((e) => e._windSpeed), r = 0, i = (e) => Math.ceil(e.max)) : e === "湿度" ? (P.value = "单位:%", F.value = "_time", I.value = 60, n = z.map((e) => e._humidity), r = 0, i = 100) : (P.value = "单位:mm", F.value = "_time", I.value = 60, t = "bar", n = z.map((e) => e._rainfall), r = 0, i = (e) => Math.ceil(e.max)), L.value = z.length * I.value + 46, await te(), k.value && (A ? A.resize({
|
|
3139
|
+
width: L.value,
|
|
3140
3140
|
height: 210
|
|
3141
|
-
}) :
|
|
3141
|
+
}) : A = ie.init(k.value), A.setOption({
|
|
3142
3142
|
animation: !1,
|
|
3143
3143
|
grid: {
|
|
3144
3144
|
top: 18,
|
|
@@ -3148,7 +3148,7 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3148
3148
|
},
|
|
3149
3149
|
xAxis: {
|
|
3150
3150
|
type: "category",
|
|
3151
|
-
data:
|
|
3151
|
+
data: z.map((e) => e[F.value]),
|
|
3152
3152
|
boundaryGap: !0,
|
|
3153
3153
|
axisLine: {
|
|
3154
3154
|
show: !0,
|
|
@@ -3164,8 +3164,8 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3164
3164
|
},
|
|
3165
3165
|
yAxis: {
|
|
3166
3166
|
type: "value",
|
|
3167
|
-
min:
|
|
3168
|
-
max:
|
|
3167
|
+
min: r,
|
|
3168
|
+
max: i,
|
|
3169
3169
|
axisLine: { show: !1 },
|
|
3170
3170
|
axisTick: { show: !1 },
|
|
3171
3171
|
axisLabel: {
|
|
@@ -3182,7 +3182,7 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3182
3182
|
},
|
|
3183
3183
|
series: [{
|
|
3184
3184
|
type: t,
|
|
3185
|
-
data:
|
|
3185
|
+
data: n,
|
|
3186
3186
|
smooth: !1,
|
|
3187
3187
|
symbol: t === "line" ? "circle" : "none",
|
|
3188
3188
|
symbolSize: 6,
|
|
@@ -3208,9 +3208,9 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3208
3208
|
areaStyle: t === "line" ? { color: "rgba(85, 200, 255, 0.15)" } : void 0
|
|
3209
3209
|
}]
|
|
3210
3210
|
}));
|
|
3211
|
-
},
|
|
3211
|
+
}, Z = () => {
|
|
3212
3212
|
let e = {};
|
|
3213
|
-
|
|
3213
|
+
E.value === "宜春钽铌矿有限公司" && (e = fe), E.value === "宜丰锂电矿区" && (e = pe), E.value === "奉新锂电矿区" && (e = de), w("removePolygon", "areaPolygon");
|
|
3214
3214
|
let t = [];
|
|
3215
3215
|
e.features.forEach((e) => {
|
|
3216
3216
|
e.geometry.coordinates.forEach((e) => {
|
|
@@ -3226,26 +3226,26 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3226
3226
|
});
|
|
3227
3227
|
});
|
|
3228
3228
|
});
|
|
3229
|
-
}),
|
|
3229
|
+
}), w("addPolygon", {
|
|
3230
3230
|
removePolygon: "areaPolygon",
|
|
3231
3231
|
polygonArr: { polygonArr: t }
|
|
3232
3232
|
});
|
|
3233
|
-
let n =
|
|
3234
|
-
|
|
3233
|
+
let n = O.value.find((e) => e.name === E.value);
|
|
3234
|
+
w("toComponent", {
|
|
3235
3235
|
componentName: "TimeBasedForecast",
|
|
3236
3236
|
data: n
|
|
3237
|
-
}),
|
|
3237
|
+
}), w("toComponent", {
|
|
3238
3238
|
componentName: "WeatherForecast",
|
|
3239
3239
|
data: n
|
|
3240
3240
|
});
|
|
3241
3241
|
};
|
|
3242
3242
|
return (e, t) => {
|
|
3243
|
-
let
|
|
3244
|
-
return
|
|
3243
|
+
let f = i, te = a, m = r, h = o, _ = n;
|
|
3244
|
+
return re((g(), c("div", me, [
|
|
3245
3245
|
l("div", he, [
|
|
3246
3246
|
l("div", { class: "LithiumBatteryMiningArea__head-top" }, [t[2] ||= l("div", null, "矿区实况", -1), l("div", {
|
|
3247
3247
|
class: "closeBtn",
|
|
3248
|
-
onClick:
|
|
3248
|
+
onClick: H,
|
|
3249
3249
|
title: "关闭"
|
|
3250
3250
|
})]),
|
|
3251
3251
|
t[9] ||= l("img", {
|
|
@@ -3253,40 +3253,40 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3253
3253
|
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",
|
|
3254
3254
|
alt: ""
|
|
3255
3255
|
}, null, -1),
|
|
3256
|
-
l("div", ge, [t[7] ||= l("span", { class: "setting-label" }, "地图要素:", -1), d(
|
|
3257
|
-
modelValue:
|
|
3258
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
3256
|
+
l("div", ge, [t[7] ||= l("span", { class: "setting-label" }, "地图要素:", -1), d(te, {
|
|
3257
|
+
modelValue: D.value,
|
|
3258
|
+
"onUpdate:modelValue": t[0] ||= (e) => D.value = e,
|
|
3259
3259
|
class: "setting-radios",
|
|
3260
|
-
onChange:
|
|
3260
|
+
onChange: q
|
|
3261
3261
|
}, {
|
|
3262
|
-
default:
|
|
3263
|
-
d(
|
|
3264
|
-
default:
|
|
3262
|
+
default: S(() => [
|
|
3263
|
+
d(f, { value: "温度" }, {
|
|
3264
|
+
default: S(() => [...t[3] ||= [u("温度", -1)]]),
|
|
3265
3265
|
_: 1
|
|
3266
3266
|
}),
|
|
3267
|
-
d(
|
|
3268
|
-
default:
|
|
3267
|
+
d(f, { value: "湿度" }, {
|
|
3268
|
+
default: S(() => [...t[4] ||= [u("湿度", -1)]]),
|
|
3269
3269
|
_: 1
|
|
3270
3270
|
}),
|
|
3271
|
-
d(
|
|
3272
|
-
default:
|
|
3271
|
+
d(f, { value: "风速风向" }, {
|
|
3272
|
+
default: S(() => [...t[5] ||= [u("风速风向", -1)]]),
|
|
3273
3273
|
_: 1
|
|
3274
3274
|
}),
|
|
3275
|
-
d(
|
|
3276
|
-
default:
|
|
3275
|
+
d(f, { value: "降水" }, {
|
|
3276
|
+
default: S(() => [...t[6] ||= [u("降水", -1)]]),
|
|
3277
3277
|
_: 1
|
|
3278
3278
|
})
|
|
3279
3279
|
]),
|
|
3280
3280
|
_: 1
|
|
3281
3281
|
}, 8, ["modelValue"])]),
|
|
3282
|
-
l("div", _e, [t[8] ||= l("span", { class: "LithiumBatteryMiningArea__select-label" }, "矿区选择:", -1), d(
|
|
3283
|
-
modelValue:
|
|
3284
|
-
"onUpdate:modelValue": t[1] ||= (e) =>
|
|
3282
|
+
l("div", _e, [t[8] ||= l("span", { class: "LithiumBatteryMiningArea__select-label" }, "矿区选择:", -1), d(h, {
|
|
3283
|
+
modelValue: E.value,
|
|
3284
|
+
"onUpdate:modelValue": t[1] ||= (e) => E.value = e,
|
|
3285
3285
|
placeholder: "请选择矿区",
|
|
3286
3286
|
class: "dark-select",
|
|
3287
|
-
onChange:
|
|
3287
|
+
onChange: U
|
|
3288
3288
|
}, {
|
|
3289
|
-
default:
|
|
3289
|
+
default: S(() => [(g(!0), c(s, null, y(x(O), (e) => (g(), ee(m, {
|
|
3290
3290
|
key: e.name,
|
|
3291
3291
|
label: e.name,
|
|
3292
3292
|
value: e.name
|
|
@@ -3296,35 +3296,35 @@ var S = "3.7.8", C = S, w = typeof Buffer == "function", T = typeof TextDecoder
|
|
|
3296
3296
|
]),
|
|
3297
3297
|
l("div", ve, [
|
|
3298
3298
|
t[14] ||= l("div", { class: "lithium__realTime-subTitle" }, "实时监测", -1),
|
|
3299
|
-
l("div", ye, [t[10] ||= l("span", { class: "lithium__realTime-label" }, "温度:", -1), l("span", be,
|
|
3300
|
-
l("div", xe, [t[11] ||= l("span", { class: "lithium__realTime-label" }, "湿度:", -1), l("span", Se,
|
|
3301
|
-
l("div", Ce, [t[12] ||= l("span", { class: "lithium__realTime-label" }, "风速风向:", -1), l("span", we,
|
|
3302
|
-
l("div", Te, [t[13] ||= l("span", { class: "lithium__realTime-label" }, "1小时累计降水:", -1), l("span", Ee,
|
|
3299
|
+
l("div", ye, [t[10] ||= l("span", { class: "lithium__realTime-label" }, "温度:", -1), l("span", be, b(x(M).temperature) + "℃", 1)]),
|
|
3300
|
+
l("div", xe, [t[11] ||= l("span", { class: "lithium__realTime-label" }, "湿度:", -1), l("span", Se, b(x(M).relative_humidity) + "%", 1)]),
|
|
3301
|
+
l("div", Ce, [t[12] ||= l("span", { class: "lithium__realTime-label" }, "风速风向:", -1), l("span", we, b(x(M).wind_speed) + "m/s " + b(x(M).wind_direction), 1)]),
|
|
3302
|
+
l("div", Te, [t[13] ||= l("span", { class: "lithium__realTime-label" }, "1小时累计降水:", -1), l("span", Ee, b(x(M).rainfall_1h) + "mm", 1)])
|
|
3303
3303
|
]),
|
|
3304
3304
|
l("div", De, [
|
|
3305
3305
|
t[18] ||= l("div", { class: "lithium__realTime-subTitle" }, "统计信息", -1),
|
|
3306
|
-
l("div", Oe, [t[15] ||= l("span", { class: "lithium__realTime-label" }, "24小时最低温度:", -1), l("span", ke,
|
|
3307
|
-
l("div", Ae, [t[16] ||= l("span", { class: "lithium__realTime-label" }, "24小时最高温度:", -1), l("span", je,
|
|
3308
|
-
l("div", Me, [t[17] ||= l("span", { class: "lithium__realTime-label" }, "24小时累计降水:", -1), l("span", Ne,
|
|
3306
|
+
l("div", Oe, [t[15] ||= l("span", { class: "lithium__realTime-label" }, "24小时最低温度:", -1), l("span", ke, b(x(R).min_temperature_24h) + "℃", 1)]),
|
|
3307
|
+
l("div", Ae, [t[16] ||= l("span", { class: "lithium__realTime-label" }, "24小时最高温度:", -1), l("span", je, b(x(R).max_temperature_24h) + "℃", 1)]),
|
|
3308
|
+
l("div", Me, [t[17] ||= l("span", { class: "lithium__realTime-label" }, "24小时累计降水:", -1), l("span", Ne, b(x(R).rainfall_sum_24h) + "mm", 1)])
|
|
3309
3309
|
]),
|
|
3310
|
-
l("div", Pe, [(g(!0), c(s, null,
|
|
3310
|
+
l("div", Pe, [(g(!0), c(s, null, y(j, (e, t) => (g(), c("div", {
|
|
3311
3311
|
key: e.title,
|
|
3312
3312
|
class: ne(["lithium__realTime-chartOpt-item", { "lithium__realTime-chartOpt-item--active": e.isActive }]),
|
|
3313
|
-
onClick: (e) =>
|
|
3314
|
-
},
|
|
3315
|
-
l("div", Ie, [l("div", Le,
|
|
3313
|
+
onClick: (e) => G(t)
|
|
3314
|
+
}, b(e.title), 11, Fe))), 128))]),
|
|
3315
|
+
l("div", Ie, [l("div", Le, b(P.value), 1), l("div", Re, [l("div", {
|
|
3316
3316
|
class: "lithium__realTime-chart-board",
|
|
3317
|
-
style:
|
|
3317
|
+
style: p({ width: `${L.value}px` })
|
|
3318
3318
|
}, [l("div", {
|
|
3319
3319
|
ref_key: "ref_RealTimeChart",
|
|
3320
|
-
ref:
|
|
3320
|
+
ref: k,
|
|
3321
3321
|
class: "lithium__realTime-echarts",
|
|
3322
|
-
style:
|
|
3323
|
-
width: `${
|
|
3322
|
+
style: p({
|
|
3323
|
+
width: `${L.value}px`,
|
|
3324
3324
|
height: "210px"
|
|
3325
3325
|
})
|
|
3326
3326
|
}, null, 4)], 4)])])
|
|
3327
|
-
])), [[
|
|
3327
|
+
])), [[_, T.value]]);
|
|
3328
3328
|
};
|
|
3329
3329
|
}
|
|
3330
3330
|
}), [["__scopeId", "data-v-c6fff6a5"]]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e } from "./component-AqiMonitor-
|
|
1
|
+
import { n as e } from "./component-AqiMonitor-BUy1MSaP.mjs";
|
|
2
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
3
|
//#region src/components/MapPopup/MapPopup.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var l = { class: "MapPopup__head" }, u = { class: "MapPopup__title" }, d = { class: "MapPopup__body" }, f = ["innerHTML"], p = /* @__PURE__ */ e(/* @__PURE__ */ i({
|