nxd-plugin 1.5.5 → 1.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. package/dist/chunks/{component-HighwayLiveAlarmNew-C5_-1nLA.mjs → component-HighwayLiveAlarmNew-C5KlMjlj.mjs} +242 -232
  2. package/dist/chunks/{component-ImageGeneration-BNWh-LrZ.mjs → component-ImageGeneration-fM3XhtlC.mjs} +1 -1
  3. package/dist/chunks/{component-LithiumBatteryMiningArea-CAWkyWzC.mjs → component-LithiumBatteryMiningArea-Bna6jbsi.mjs} +225 -165
  4. package/dist/chunks/{component-RadarShortTerm-D80fLaE-.mjs → component-RadarShortTerm-BlM8sLMP.mjs} +130 -121
  5. package/dist/chunks/{component-ServiceMaterialsBtn-DAtuOkqp.mjs → component-ServiceMaterialsBtn-Cis_VgDG.mjs} +1 -1
  6. package/dist/chunks/{component-TimeBasedForecast-XI_q_qXB.mjs → component-TimeBasedForecast-D996sMjK.mjs} +1 -1
  7. package/dist/chunks/{component-WeatherForecast-1gjqAkui.mjs → component-WeatherForecast-AJtTdM3j.mjs} +1 -1
  8. package/dist/chunks/{component-YCHome-ClXcF7Y4.mjs → component-YCHome-C5nCaoI3.mjs} +2 -2
  9. package/dist/chunks/{component-YCLogin-cziiUlrT.mjs → component-YCLogin-Dr5Q9rj3.mjs} +2 -2
  10. package/dist/chunks/{component-YCLoginNew-vzP6cN1o.mjs → component-YCLoginNew-BM0MdvGN.mjs} +3 -3
  11. package/dist/nxd-plugin.mjs +10 -10
  12. package/dist/src/components/LithiumBatteryMiningArea/LithiumBatteryMiningArea.vue.d.ts +4 -0
  13. package/dist/styles/component-HighwayLiveAlarmNew.css +1 -1
  14. package/dist/styles/component-LithiumBatteryMiningArea.css +1 -1
  15. package/dist/styles/component-RadarShortTerm.css +1 -1
  16. package/dist/styles/component-YCLogin.css +1 -1
  17. package/dist/styles/component-YCLoginNew.css +1 -1
  18. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { i as e, t } from "./rolldown-runtime-Dd0fQ6-X.mjs";
2
2
  import { B as n, D as r, E as i, F as a, H as o, J as s, L as c, T as l, V as u, X as d, Z as f, a as p, at as m, b as h, c as g, d as _, i as v, it as y, l as b, m as x, n as S, ot as C, r as w, rt as ee, st as T, u as E, v as D, w as O, y as te, z as ne } from "./component-HighWayFreeze-Ckh45dhq.mjs";
3
3
  import { At as re, Bt as ie, Ct as ae, D as oe, Dt as se, Et as ce, F as le, Ft as ue, Gt as de, Ht as fe, It as pe, Jt as me, Kt as he, Lt as ge, Mt as _e, Nt as k, O as A, Ot as ve, Pt as ye, Qt as be, Rt as xe, Ut as Se, V as Ce, Vt as we, Wt as Te, Xt as Ee, Yt as De, _ as Oe, an as ke, d as Ae, g as je, gt as Me, jt as Ne, kt as Pe, l as Fe, o as Ie, p as Le, qt as Re, r as ze, rn as Be, s as Ve, sn as He, u as Ue, w as We, wt as Ge, y as Ke, z as qe, zt as Je } from "./component-HighWayEarlyWarningRed-C4eUxLai.mjs";
4
4
  import { a as Ye } from "./component-HighwayLiveAlarm-BJQZsDZ2.mjs";
5
- import { n as Xe } from "./component-HighwayLiveAlarmNew-C5_-1nLA.mjs";
5
+ import { n as Xe } from "./component-HighwayLiveAlarmNew-C5KlMjlj.mjs";
6
6
  import { Fragment as Ze, Text as Qe, computed as j, createBlock as $e, createCommentVNode as et, createElementBlock as M, createElementVNode as N, createTextVNode as tt, createVNode as P, defineComponent as nt, getCurrentInstance as rt, inject as it, markRaw as at, mergeProps as ot, nextTick as st, normalizeClass as F, normalizeStyle as ct, onMounted as lt, openBlock as I, provide as ut, reactive as dt, ref as ft, renderList as pt, renderSlot as mt, resolveDynamicComponent as ht, shallowRef as gt, toDisplayString as _t, toRef as vt, unref as L, useAttrs as yt, useSlots as bt, vShow as xt, watch as St, watchEffect as Ct, withCtx as wt, withDirectives as Tt, withKeys as Et, withModifiers as Dt } from "vue";
7
7
  //#region node_modules/lodash-es/now.js
8
8
  var Ot = function() {
@@ -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 { n as a } from "./component-HighwayLiveAlarm-BJQZsDZ2.mjs";
5
- import { Fragment as o, createBlock as ee, createElementBlock as s, createElementVNode as c, createVNode as te, defineComponent as l, nextTick as u, normalizeClass as ne, normalizeStyle as d, onBeforeUnmount as re, onMounted as ie, openBlock as f, reactive as p, ref as m, renderList as h, toDisplayString as g, unref as _, withCtx as ae, withDirectives as oe } from "vue";
4
+ import { i as a, n as o, r as ee } from "./component-HighwayLiveAlarm-BJQZsDZ2.mjs";
5
+ import { Fragment as te, createBlock as ne, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, nextTick as f, normalizeClass as re, normalizeStyle as p, onBeforeUnmount as m, 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 v = "3.7.8", y = v, b = typeof Buffer == "function", x = typeof TextDecoder == "function" ? new TextDecoder() : void 0, S = typeof TextEncoder == "function" ? new TextEncoder() : void 0, C = Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="), w = ((e) => {
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
- })(C), T = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, E = String.fromCharCode.bind(String), D = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), O = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" : "_"), k = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), A = (e) => {
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 += C[t >> 18 & 63] + C[t >> 12 & 63] + C[t >> 6 & 63] + C[t & 63];
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
- }, j = typeof btoa == "function" ? (e) => btoa(e) : b ? (e) => Buffer.from(e, "binary").toString("base64") : A, M = b ? (e) => Buffer.from(e).toString("base64") : (e) => {
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(E.apply(null, e.subarray(r, r + t)));
20
- return j(n.join(""));
21
- }, N = (e, t = !1) => t ? O(M(e)) : M(e), P = (e) => {
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 ? E(192 | t >>> 6) + E(128 | t & 63) : E(224 | t >>> 12 & 15) + E(128 | t >>> 6 & 63) + E(128 | t & 63);
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 E(240 | t >>> 18 & 7) + E(128 | t >>> 12 & 63) + E(128 | t >>> 6 & 63) + E(128 | t & 63);
27
+ return A(240 | t >>> 18 & 7) + A(128 | t >>> 12 & 63) + A(128 | t >>> 6 & 63) + A(128 | t & 63);
28
28
  }
29
- }, F = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, I = (e) => e.replace(F, P), L = b ? (e) => Buffer.from(e, "utf8").toString("base64") : S ? (e) => M(S.encode(e)) : (e) => j(I(e)), R = (e, t = !1) => t ? O(L(e)) : L(e), z = (e) => R(e, !0), B = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g, V = (e) => {
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 E((t >>> 10) + 55296) + E((t & 1023) + 56320);
34
- case 3: return E((15 & e.charCodeAt(0)) << 12 | (63 & e.charCodeAt(1)) << 6 | 63 & e.charCodeAt(2));
35
- default: return E((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1));
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
- }, H = (e) => e.replace(B, V), U = (e) => {
38
- if (e = e.replace(/\s+/g, ""), !T.test(e)) throw TypeError("malformed base64.");
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 = w[e.charAt(a++)] << 18 | w[e.charAt(a++)] << 12 | (n = w[e.charAt(a++)]) << 6 | (r = w[e.charAt(a++)]), n === 64 ? i.push(E(t >> 16 & 255)) : r === 64 ? i.push(E(t >> 16 & 255, t >> 8 & 255)) : i.push(E(t >> 16 & 255, t >> 8 & 255, t & 255));
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
- }, W = typeof atob == "function" ? (e) => atob(k(e)) : b ? (e) => Buffer.from(e, "base64").toString("binary") : U, G = b ? (e) => D(Buffer.from(e, "base64")) : (e) => D(W(e).split("").map((e) => e.charCodeAt(0))), K = (e) => G(q(e)), se = b ? (e) => Buffer.from(e, "base64").toString("utf8") : x ? (e) => x.decode(G(e)) : (e) => H(W(e)), q = (e) => k(e.replace(/[-_]/g, (e) => e == "-" ? "+" : "/")), J = (e) => se(q(e)), ce = (e) => {
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(se(e)), oe = w ? (e) => Buffer.from(e, "base64").toString("utf8") : T ? (e) => T.decode(Y(e)) : (e) => K(J(e)), se = (e) => N(e.replace(/[-_]/g, (e) => e == "-" ? "+" : "/")), Z = (e) => oe(se(e)), ce = (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
- }, Y = (e) => ({
47
+ }, Q = (e) => ({
48
48
  value: e,
49
49
  enumerable: !1,
50
50
  writable: !0,
51
51
  configurable: !0
52
- }), X = function() {
53
- let e = (e, t) => Object.defineProperty(String.prototype, e, Y(t));
52
+ }), le = function() {
53
+ let e = (e, t) => Object.defineProperty(String.prototype, e, Q(t));
54
54
  e("fromBase64", function() {
55
- return J(this);
55
+ return Z(this);
56
56
  }), e("toBase64", function(e) {
57
- return R(this, e);
57
+ return H(this, e);
58
58
  }), e("toBase64URI", function() {
59
- return R(this, !0);
59
+ return H(this, !0);
60
60
  }), e("toBase64URL", function() {
61
- return R(this, !0);
61
+ return H(this, !0);
62
62
  }), e("toUint8Array", function() {
63
- return K(this);
63
+ return X(this);
64
64
  });
65
- }, Z = function() {
66
- let e = (e, t) => Object.defineProperty(Uint8Array.prototype, e, Y(t));
65
+ }, ue = function() {
66
+ let e = (e, t) => Object.defineProperty(Uint8Array.prototype, e, Q(t));
67
67
  e("toBase64", function(e) {
68
- return N(this, e);
68
+ return L(this, e);
69
69
  }), e("toBase64URI", function() {
70
- return N(this, !0);
70
+ return L(this, !0);
71
71
  }), e("toBase64URL", function() {
72
- return N(this, !0);
72
+ return L(this, !0);
73
73
  });
74
- }, Q = {
75
- version: v,
76
- VERSION: y,
77
- atob: W,
78
- atobPolyfill: U,
79
- btoa: j,
80
- btoaPolyfill: A,
81
- fromBase64: J,
82
- toBase64: R,
83
- encode: R,
84
- encodeURI: z,
85
- encodeURL: z,
86
- utob: I,
87
- btou: H,
88
- decode: J,
74
+ }, $ = {
75
+ version: S,
76
+ VERSION: C,
77
+ atob: J,
78
+ atobPolyfill: q,
79
+ btoa: F,
80
+ btoaPolyfill: P,
81
+ fromBase64: Z,
82
+ toBase64: H,
83
+ encode: H,
84
+ encodeURI: U,
85
+ encodeURL: U,
86
+ utob: B,
87
+ btou: K,
88
+ decode: Z,
89
89
  isValid: ce,
90
- fromUint8Array: N,
91
- toUint8Array: K,
92
- extendString: X,
93
- extendUint8Array: Z,
90
+ fromUint8Array: L,
91
+ toUint8Array: X,
92
+ extendString: le,
93
+ extendUint8Array: ue,
94
94
  extendBuiltins: () => {
95
- X(), Z();
95
+ le(), ue();
96
96
  }
97
- }, le = {
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
- }, ue = {
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
- }, de = {
2979
+ }, me = {
2980
2980
  class: "LithiumBatteryMiningArea",
2981
2981
  "element-loading-background": "rgba(0, 0, 0, 0.4)"
2982
- }, fe = { class: "LithiumBatteryMiningArea__head" }, pe = { class: "LithiumBatteryMiningArea__select" }, me = { class: "lithium__realTime-block" }, he = { class: "lithium__realTime-item" }, ge = { class: "lithium__realTime-value" }, _e = { class: "lithium__realTime-item" }, ve = { class: "lithium__realTime-value" }, ye = { class: "lithium__realTime-item" }, be = { class: "lithium__realTime-value" }, xe = { class: "lithium__realTime-item" }, Se = { class: "lithium__realTime-value" }, Ce = { class: "lithium__realTime-block" }, we = { class: "lithium__realTime-item" }, Te = { class: "lithium__realTime-value" }, Ee = { class: "lithium__realTime-item" }, De = { class: "lithium__realTime-value" }, Oe = { class: "lithium__realTime-item" }, ke = { class: "lithium__realTime-value" }, Ae = { class: "lithium__realTime-chartOpt" }, je = ["onClick"], Me = { class: "lithium__realTime-chart" }, Ne = { class: "lithium__realTime-chart-unit" }, Pe = { class: "lithium__realTime-chart-scroll" }, Fe = /* @__PURE__ */ i(/* @__PURE__ */ l({
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__ */ d({
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: l }) {
3009
- let v = i, y = l, b = m(!1), x = m(""), S = p({}), C = m(null), w = null, T = p([
3010
+ setup(i, { emit: d }) {
3011
+ let S = i, C = d, 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
- ]), E = p({}), D = m("单位:℃"), O = m("_time"), k = m(60), A = m(320), j = p({}), M = p([]), N = m(null);
3027
- ie(() => {
3028
- P(), N.value = setInterval(() => {
3029
- P();
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
- }), re(() => {
3032
- w?.dispose(), w = null, clearInterval(N.value);
3033
+ }), m(() => {
3034
+ k?.dispose(), k = null, clearInterval(z.value);
3033
3035
  });
3034
- let P = async () => {
3035
- await L(), U(), await z(), await B(), await V();
3036
- }, F = () => {
3037
- y("close", "LithiumBatteryMiningArea");
3038
- }, I = async () => {
3039
- U(), await z(), await B(), await V();
3040
- }, L = async () => {
3041
- b.value = !0, S = (await n({
3042
- appKey: v.appKey,
3043
- appSalt: v.appSalt,
3044
- id: v.ids.mingArea.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: v.baseHttp,
3047
- reqType: v.ids.mingArea.reqType,
3048
- isFormData: v.ids.mingArea.isFormData
3049
- })).data.result.output, console.log("获取矿区数据", S), x.value = S[0].name, b.value = !1;
3050
- }, R = (e) => {
3051
- T.forEach((t, n) => {
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
- }), M.length && H();
3054
- }, z = async () => {
3055
- b.value = !0;
3056
- let e = { station_number: S.find((e) => e.name === x.value)?.station_number }, t = await n({
3057
- appKey: v.appKey,
3058
- appSalt: v.appSalt,
3059
- id: v.ids.realTime.id,
3060
- variables: { str: Q.encode(JSON.stringify(e)) },
3061
- baseHttp: v.baseHttp,
3062
- reqType: v.ids.realTime.reqType,
3063
- isFormData: v.ids.realTime.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), E = t.data.result.output[0], b.value = !1;
3066
- }, B = async () => {
3067
- b.value = !0;
3068
- let e = { station_number: S.find((e) => e.name === x.value)?.station_number };
3069
- j = (await n({
3070
- appKey: v.appKey,
3071
- appSalt: v.appSalt,
3072
- id: v.ids.statistic.id,
3073
- variables: { str: Q.encode(JSON.stringify(e)) },
3074
- baseHttp: v.baseHttp,
3075
- reqType: v.ids.statistic.reqType,
3076
- isFormData: v.ids.statistic.isFormData
3077
- })).data.result.output[0], b.value = !1;
3078
- }, V = async () => {
3079
- b.value = !0;
3080
- let e = { station_number: S.find((e) => e.name === x.value)?.station_number }, t = await n({
3081
- appKey: v.appKey,
3082
- appSalt: v.appSalt,
3083
- id: v.ids.chart.id,
3084
- variables: { str: Q.encode(JSON.stringify(e)) },
3085
- baseHttp: v.baseHttp,
3086
- reqType: v.ids.chart.reqType,
3087
- isFormData: v.ids.chart.isFormData
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?.visibility_min === "-" ? "" : (Number(n?.visibility_min) / 1e3).toString(), i = "km");
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
- b.value = !1, console.log("获取实况图表数据", t);
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
- }), M = r, H();
3094
- }, H = async () => {
3095
- let e = T.find((e) => e.isActive)?.title || "气温", t = "line", n = [], r = 0, i = 100;
3096
- e === "气温" ? (D.value = "单位:℃", O.value = "_time", k.value = 60, n = M.map((e) => e._temperature), r = (e) => Math.floor(e.min), i = (e) => Math.ceil(e.max)) : e === "风向风速" ? (D.value = "单位:m/s", O.value = "_windDirectionTime", k.value = 96, n = M.map((e) => e._windSpeed), r = 0, i = (e) => Math.ceil(e.max)) : e === "湿度" ? (D.value = "单位:%", O.value = "_time", k.value = 60, n = M.map((e) => e._humidity), r = 0, i = 100) : (D.value = "单位:mm", O.value = "_time", k.value = 60, t = "bar", n = M.map((e) => e._rainfall), r = 0, i = (e) => Math.ceil(e.max)), A.value = M.length * k.value + 46, await u(), C.value && (w ? w.resize({
3097
- width: A.value,
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 f(), O.value && (k ? k.resize({
3135
+ width: I.value,
3098
3136
  height: 210
3099
- }) : w = a(C.value), w.setOption({
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: M.map((e) => e[O.value]),
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
- }, U = () => {
3207
+ }, X = () => {
3170
3208
  let e = {};
3171
- x.value === "宜春钽铌矿有限公司" && (e = ue), x.value === "宜丰锂电矿区" && (e = $), x.value === "奉新锂电矿区" && (e = le), y("removePolygon", "areaPolygon");
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,63 @@ var v = "3.7.8", y = v, b = typeof Buffer == "function", x = typeof TextDecoder
3184
3222
  });
3185
3223
  });
3186
3224
  });
3187
- }), y("addPolygon", {
3225
+ }), C("addPolygon", {
3188
3226
  removePolygon: "areaPolygon",
3189
3227
  polygonArr: { polygonArr: t }
3190
3228
  });
3191
- let n = S.find((e) => e.name === x.value);
3192
- y("toComponent", {
3229
+ let n = D.value.find((e) => e.name === T.value);
3230
+ C("toComponent", {
3193
3231
  componentName: "TimeBasedForecast",
3194
3232
  data: n
3195
- }), y("toComponent", {
3233
+ }), C("toComponent", {
3196
3234
  componentName: "WeatherForecast",
3197
3235
  data: n
3198
3236
  });
3199
3237
  };
3200
3238
  return (n, i) => {
3201
- let a = e, l = t, u = r;
3202
- return oe((f(), s("div", de, [
3203
- c("div", fe, [
3204
- c("div", { class: "LithiumBatteryMiningArea__head-top" }, [i[1] ||= c("div", null, "矿区实况", -1), c("div", {
3239
+ let o = ee, d = a, f = e, m = t, h = r;
3240
+ return ae((g(), s("div", me, [
3241
+ c("div", he, [
3242
+ c("div", { class: "LithiumBatteryMiningArea__head-top" }, [i[2] ||= c("div", null, "矿区实况", -1), c("div", {
3205
3243
  class: "closeBtn",
3206
- onClick: F,
3244
+ onClick: V,
3207
3245
  title: "关闭"
3208
3246
  })]),
3209
- i[3] ||= c("img", {
3247
+ i[8] ||= c("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
- c("div", pe, [i[2] ||= c("span", { class: "LithiumBatteryMiningArea__select-label" }, "矿区选择:", -1), te(l, {
3215
- modelValue: x.value,
3216
- "onUpdate:modelValue": i[0] ||= (e) => x.value = e,
3252
+ c("div", ge, [i[6] ||= c("span", { class: "setting-label" }, "地图要素:", -1), u(d, {
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
+ u(o, { value: "降水" }, {
3260
+ default: x(() => [...i[3] ||= [l("降水", -1)]]),
3261
+ _: 1
3262
+ }),
3263
+ u(o, { value: "温度" }, {
3264
+ default: x(() => [...i[4] ||= [l("温度", -1)]]),
3265
+ _: 1
3266
+ }),
3267
+ u(o, { value: "能见度" }, {
3268
+ default: x(() => [...i[5] ||= [l("能见度", -1)]]),
3269
+ _: 1
3270
+ })
3271
+ ]),
3272
+ _: 1
3273
+ }, 8, ["modelValue"])]),
3274
+ c("div", _e, [i[7] ||= c("span", { class: "LithiumBatteryMiningArea__select-label" }, "矿区选择:", -1), u(m, {
3275
+ modelValue: T.value,
3276
+ "onUpdate:modelValue": i[1] ||= (e) => T.value = e,
3217
3277
  placeholder: "请选择矿区",
3218
3278
  class: "dark-select",
3219
- onChange: I
3279
+ onChange: H
3220
3280
  }, {
3221
- default: ae(() => [(f(!0), s(o, null, h(_(S), (e) => (f(), ee(a, {
3281
+ default: x(() => [(g(!0), s(te, null, ie(b(D), (e) => (g(), ne(f, {
3222
3282
  key: e.name,
3223
3283
  label: e.name,
3224
3284
  value: e.name
@@ -3226,39 +3286,39 @@ var v = "3.7.8", y = v, b = typeof Buffer == "function", x = typeof TextDecoder
3226
3286
  _: 1
3227
3287
  }, 8, ["modelValue"])])
3228
3288
  ]),
3229
- c("div", me, [
3230
- i[8] ||= c("div", { class: "lithium__realTime-subTitle" }, "实时监测", -1),
3231
- c("div", he, [i[4] ||= c("span", { class: "lithium__realTime-label" }, "温度:", -1), c("span", ge, g(_(E).temperature) + "℃", 1)]),
3232
- c("div", _e, [i[5] ||= c("span", { class: "lithium__realTime-label" }, "湿度:", -1), c("span", ve, g(_(E).relative_humidity) + "%", 1)]),
3233
- c("div", ye, [i[6] ||= c("span", { class: "lithium__realTime-label" }, "风速风向:", -1), c("span", be, g(_(E).wind_speed) + "m/s " + g(_(E).wind_direction), 1)]),
3234
- c("div", xe, [i[7] ||= c("span", { class: "lithium__realTime-label" }, "1小时累计降水:", -1), c("span", Se, g(_(E).rainfall_1h) + "mm", 1)])
3289
+ c("div", ve, [
3290
+ i[13] ||= c("div", { class: "lithium__realTime-subTitle" }, "实时监测", -1),
3291
+ c("div", ye, [i[9] ||= c("span", { class: "lithium__realTime-label" }, "温度:", -1), c("span", be, y(b(j).temperature) + "℃", 1)]),
3292
+ c("div", xe, [i[10] ||= c("span", { class: "lithium__realTime-label" }, "湿度:", -1), c("span", Se, y(b(j).relative_humidity) + "%", 1)]),
3293
+ c("div", Ce, [i[11] ||= c("span", { class: "lithium__realTime-label" }, "风速风向:", -1), c("span", we, y(b(j).wind_speed) + "m/s " + y(b(j).wind_direction), 1)]),
3294
+ c("div", Te, [i[12] ||= c("span", { class: "lithium__realTime-label" }, "1小时累计降水:", -1), c("span", Ee, y(b(j).rainfall_1h) + "mm", 1)])
3235
3295
  ]),
3236
- c("div", Ce, [
3237
- i[12] ||= c("div", { class: "lithium__realTime-subTitle" }, "统计信息", -1),
3238
- c("div", we, [i[9] ||= c("span", { class: "lithium__realTime-label" }, "24小时最低温度:", -1), c("span", Te, g(_(j).min_temperature_24h) + "℃", 1)]),
3239
- c("div", Ee, [i[10] ||= c("span", { class: "lithium__realTime-label" }, "24小时最高温度:", -1), c("span", De, g(_(j).max_temperature_24h) + "℃", 1)]),
3240
- c("div", Oe, [i[11] ||= c("span", { class: "lithium__realTime-label" }, "24小时累计降水:", -1), c("span", ke, g(_(j).rainfall_sum_24h) + "mm", 1)])
3296
+ c("div", De, [
3297
+ i[17] ||= c("div", { class: "lithium__realTime-subTitle" }, "统计信息", -1),
3298
+ c("div", Oe, [i[14] ||= c("span", { class: "lithium__realTime-label" }, "24小时最低温度:", -1), c("span", ke, y(b(L).min_temperature_24h) + "℃", 1)]),
3299
+ c("div", Ae, [i[15] ||= c("span", { class: "lithium__realTime-label" }, "24小时最高温度:", -1), c("span", je, y(b(L).max_temperature_24h) + "℃", 1)]),
3300
+ c("div", Me, [i[16] ||= c("span", { class: "lithium__realTime-label" }, "24小时累计降水:", -1), c("span", Ne, y(b(L).rainfall_sum_24h) + "mm", 1)])
3241
3301
  ]),
3242
- c("div", Ae, [(f(!0), s(o, null, h(T, (e, t) => (f(), s("div", {
3302
+ c("div", Pe, [(g(!0), s(te, null, ie(A, (e, t) => (g(), s("div", {
3243
3303
  key: e.title,
3244
- class: ne(["lithium__realTime-chartOpt-item", { "lithium__realTime-chartOpt-item--active": e.isActive }]),
3245
- onClick: (e) => R(t)
3246
- }, g(e.title), 11, je))), 128))]),
3247
- c("div", Me, [c("div", Ne, g(D.value), 1), c("div", Pe, [c("div", {
3304
+ class: re(["lithium__realTime-chartOpt-item", { "lithium__realTime-chartOpt-item--active": e.isActive }]),
3305
+ onClick: (e) => W(t)
3306
+ }, y(e.title), 11, Fe))), 128))]),
3307
+ c("div", Ie, [c("div", Le, y(N.value), 1), c("div", Re, [c("div", {
3248
3308
  class: "lithium__realTime-chart-board",
3249
- style: d({ width: `${A.value}px` })
3309
+ style: p({ width: `${I.value}px` })
3250
3310
  }, [c("div", {
3251
3311
  ref_key: "ref_RealTimeChart",
3252
- ref: C,
3312
+ ref: O,
3253
3313
  class: "lithium__realTime-echarts",
3254
- style: d({
3255
- width: `${A.value}px`,
3314
+ style: p({
3315
+ width: `${I.value}px`,
3256
3316
  height: "210px"
3257
3317
  })
3258
3318
  }, null, 4)], 4)])])
3259
- ])), [[u, b.value]]);
3319
+ ])), [[h, w.value]]);
3260
3320
  };
3261
3321
  }
3262
- }), [["__scopeId", "data-v-edd2f07c"]]);
3322
+ }), [["__scopeId", "data-v-163b4a03"]]);
3263
3323
  //#endregion
3264
- export { Q as n, Fe as t };
3324
+ export { $ as n, ze as t };