nxd-plugin 1.8.52 → 1.8.54

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 (21) hide show
  1. package/dist/chunks/component-GeologyLiveAlarm-CXp7NwKr.mjs +386 -0
  2. package/dist/chunks/{component-HdMajorActivity-BS7LJXLj.mjs → component-HdMajorActivity-DBUjo4Rm.mjs} +221 -222
  3. package/dist/chunks/{component-HdRadarTimeLine-CwdMMlPK.mjs → component-HdRadarTimeLine-BvE4Ny20.mjs} +3 -3
  4. package/dist/chunks/{component-HighwayLiveAlarmNew-Dxf6DUyI.mjs → component-HighwayLiveAlarmNew-CcsxClbD.mjs} +1 -1
  5. package/dist/chunks/{component-RadarShortTerm-pixyOE-9.mjs → component-RadarShortTerm-DoiqMpY6.mjs} +181 -161
  6. package/dist/chunks/component-ReservoirLiveAlarm-C8mJSD-4.mjs +387 -0
  7. package/dist/chunks/{component-YCDataService-CniJWhHF.mjs → component-YCDataService-DKvMM7rM.mjs} +43 -35
  8. package/dist/components/HdMajorActivity/HdMajorActivity.vue.d.ts +0 -2
  9. package/dist/components/HdRadarTimeLine/HdRadarTimeLine.vue.d.ts +2 -2
  10. package/dist/components/HdStationTem/HdStationTem.vue.d.ts +2 -2
  11. package/dist/nxd-plugin.mjs +7 -7
  12. package/dist/styles/component-GeologyLiveAlarm.css +1 -1
  13. package/dist/styles/component-HdMajorActivity.css +1 -1
  14. package/dist/styles/component-HdRadarTimeLine.css +1 -1
  15. package/dist/styles/component-RadarShortTerm.css +1 -1
  16. package/dist/styles/component-ReservoirLiveAlarm.css +1 -1
  17. package/dist/styles/component-YCDataService.css +1 -1
  18. package/dist/styles/component-YCLoginNew.css +1 -1
  19. package/package.json +1 -1
  20. package/dist/chunks/component-GeologyLiveAlarm-CKdsxprI.mjs +0 -379
  21. package/dist/chunks/component-ReservoirLiveAlarm-C-NS9Erh.mjs +0 -380
@@ -49,7 +49,7 @@ var se = { class: "HdRadarTimeLine-main" }, ce = { class: "HdRadarTimeLine-contr
49
49
  "close",
50
50
  "radarChange",
51
51
  "addImage",
52
- "clearImage"
52
+ "clearImg"
53
53
  ],
54
54
  setup(t, { emit: d }) {
55
55
  let C = f()?.appContext.config.globalProperties.$bus, w = t, T = d, E = v(null), D = v(null), O = v(null), k = v(null), A = v(!1), j = v(w.initialTime || ""), M = v([]), N = v([]), P = v([]), F = v(""), I = v(0), L = v(!1), R = v(w.initialSpeed), z = v(!1), De = [
@@ -137,7 +137,7 @@ var se = { class: "HdRadarTimeLine-main" }, ce = { class: "HdRadarTimeLine-contr
137
137
  otherData: { imgId: "HdRadarTimeLine" }
138
138
  }] });
139
139
  }, Y = () => {
140
- T("clearImage", "HdRadarTimeLine");
140
+ T("clearImg", "HdRadarTimeLine"), console.log("清除雷达图层");
141
141
  }, Be = (e) => {
142
142
  e.button === 0 && (V = !0, Ue(e), e.preventDefault());
143
143
  }, Ve = (e) => {
@@ -335,6 +335,6 @@ var se = { class: "HdRadarTimeLine-main" }, ce = { class: "HdRadarTimeLine-contr
335
335
  ])], 512);
336
336
  };
337
337
  }
338
- }), [["__scopeId", "data-v-a050629a"]]);
338
+ }), [["__scopeId", "data-v-e33522ac"]]);
339
339
  //#endregion
340
340
  export { C as t };
@@ -1,6 +1,6 @@
1
1
  import "./component-AqiMonitor-CiRH3KK9.mjs";
2
2
  import { g as e, p as t } from "./component-Agent-DwXtdLhK.mjs";
3
- import { n } from "./component-GeologyLiveAlarm-CKdsxprI.mjs";
3
+ import { n } from "./component-GeologyLiveAlarm-CXp7NwKr.mjs";
4
4
  import { ElCheckbox as r, ElIcon as i, ElLoadingDirective as a, ElOption as o, ElRadio as s, ElRadioGroup as c, ElSelect as l } from "element-plus/es";
5
5
  import { Fragment as u, computed as d, createBlock as ee, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, nextTick as te, normalizeClass as v, onBeforeUnmount as ne, onMounted as y, openBlock as b, ref as x, renderList as S, toDisplayString as C, unref as w, vShow as T, withCtx as E, withDirectives as D } from "vue";
6
6
  import { ArrowRight as re } from "@element-plus/icons-vue";
@@ -3,26 +3,26 @@ import { g as e, p as t } from "./component-Agent-DwXtdLhK.mjs";
3
3
  import { n } from "./component-HighWayEarlyWarningRed-BwmqvV6c.mjs";
4
4
  import { t as r } from "./component-RadarLegend-ByCdufPU.mjs";
5
5
  import { ElCheckbox as i, ElIcon as a, ElLoadingDirective as o } from "element-plus/es";
6
- import { Fragment as s, computed as c, createBlock as l, createCommentVNode as ee, createElementBlock as u, createElementVNode as d, createTextVNode as te, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as ne, onMounted as re, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, vShow as S, watch as ie, withCtx as C, withDirectives as w } from "vue";
7
- import { ArrowRight as T, VideoPause as ae, VideoPlay as oe } from "@element-plus/icons-vue";
8
- import * as se from "echarts";
6
+ import { Fragment as s, computed as c, createBlock as l, createCommentVNode as ee, createElementBlock as u, createElementVNode as d, createTextVNode as te, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as ne, onMounted as re, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, vShow as S, watch as C, withCtx as w, withDirectives as T } from "vue";
7
+ import { ArrowRight as E, VideoPause as ie, VideoPlay as ae } from "@element-plus/icons-vue";
8
+ import * as oe from "echarts";
9
9
  import "element-plus/es/components/loading/style/css";
10
10
  import "element-plus/es/components/checkbox/style/css";
11
11
  import "element-plus/es/components/slider/style/css";
12
12
  //#region src/components/RadarShortTerm/RadarShortTerm.vue?vue&type=script&setup=true&lang.ts
13
- var ce = {
13
+ var se = {
14
14
  class: "RadarShortTerm",
15
15
  "element-loading-background": "rgba(0, 0, 0, 0.4)"
16
- }, le = { class: "RadarShortTerm-head" }, ue = { class: "RadarShortTerm-head-top" }, de = { class: "head-actions" }, fe = { class: "view-switch" }, pe = { class: "RadarShortTerm-setting-panel" }, me = { class: "display-setting" }, he = { class: "setting-row setting-row-pile" }, ge = { class: "setting-pile-options" }, _e = { class: "RadarShortTerm-chart" }, ve = { class: "RadarShortTerm-table" }, ye = { class: "table-head" }, be = { class: "table-body" }, xe = ["onClick"], Se = { class: "name" }, Ce = ["onClick"], we = {
16
+ }, ce = { class: "RadarShortTerm-head" }, le = { class: "RadarShortTerm-head-top" }, ue = { class: "head-actions" }, de = { class: "view-switch" }, fe = { class: "RadarShortTerm-setting-panel" }, pe = { class: "display-setting" }, me = { class: "setting-row setting-row-pile" }, he = { class: "setting-pile-options" }, ge = { class: "RadarShortTerm-chart" }, _e = { class: "RadarShortTerm-table" }, ve = { class: "table-head" }, ye = { class: "table-body" }, be = ["onClick"], xe = { class: "name" }, Se = ["onClick"], Ce = {
17
17
  key: 0,
18
18
  style: { color: "red" }
19
- }, Te = { class: "pile-panel" }, Ee = { class: "pile-head" }, De = {
19
+ }, we = { class: "pile-panel" }, Te = { class: "pile-head" }, Ee = {
20
20
  key: 0,
21
21
  class: "pile-body"
22
- }, Oe = ["onClick"], ke = {
22
+ }, De = ["onClick"], Oe = {
23
23
  key: 1,
24
24
  class: "pile-empty"
25
- }, Ae = { class: "RadarShortTerm-timeline" }, je = ["title"], Me = { class: "timeline-slider-wrap" }, Ne = { class: "timeline-time-label" }, Pe = { class: "radarAxis-li" }, Fe = ["onClick"], Ie = { class: "radarAxis-li-node-text" }, E = /* @__PURE__ */ t(/* @__PURE__ */ p({
25
+ }, ke = { class: "RadarShortTerm-timeline" }, Ae = ["title"], je = { class: "timeline-slider-wrap" }, Me = { class: "timeline-time-label" }, Ne = { class: "radarAxis-li" }, Pe = ["onClick"], Fe = { class: "radarAxis-li-node-text" }, D = /* @__PURE__ */ t(/* @__PURE__ */ p({
26
26
  __name: "RadarShortTerm",
27
27
  props: {
28
28
  appKey: {
@@ -62,13 +62,13 @@ var ce = {
62
62
  "changeLoading"
63
63
  ],
64
64
  setup(t, { emit: p }) {
65
- let E = t, D = p, O = v(!0), k = v(!1), A = v(0), j = v(null), M = v([]), N = v({}), P = v({}), F = v({}), I = v(""), L = v(null), R = v(!0), z = v(null), B = v(null), V = v("chart"), H = v(!0), U = v(null), W = v({
65
+ let D = t, O = p, k = v(!0), A = v(!1), j = v(0), M = v(null), N = v([]), P = v({}), F = v({}), I = v({}), L = v(""), R = v(null), z = v(!0), B = v(null), V = v(null), H = v("chart"), U = v(!0), W = v(null), G = v({
66
66
  httpurl: "",
67
67
  lngStart: void 0,
68
68
  latStart: void 0,
69
69
  lngEnd: void 0,
70
70
  latEnd: void 0
71
- }), G = v({
71
+ }), K = v({
72
72
  httpurl: "",
73
73
  lngStart: void 0,
74
74
  latStart: void 0,
@@ -76,25 +76,25 @@ var ce = {
76
76
  latEnd: void 0
77
77
  });
78
78
  re(() => {
79
- K(), z.value = setInterval(() => {
80
- K();
79
+ q(), B.value = setInterval(() => {
80
+ q();
81
81
  }, 1e3 * 60 * 6);
82
82
  }), ne(() => {
83
- Q(), clearInterval(z.value), z.value = null, B.value?.dispose(), B.value = null;
83
+ Q(), clearInterval(B.value), B.value = null, V.value?.dispose(), V.value = null;
84
84
  });
85
- let K = async () => {
86
- R.value = !0, await J();
85
+ let q = async () => {
86
+ z.value = !0, await Le();
87
87
  let e = (await Re()).map((e) => {
88
- let t = Ue(e), n = "";
89
- E.type === "高速" && (n = "zhflds"), E.type === "地质" && (n = "pointflds"), E.type === "水库" && (n = "pointflds");
90
- let r = We(e[n] || []);
88
+ let t = We(e), n = "";
89
+ D.type === "高速" && (n = "zhflds"), D.type === "地质" && (n = "pointflds"), D.type === "水库" && (n = "pointflds");
90
+ let r = Ge(e[n] || []);
91
91
  return {
92
92
  name: e.name,
93
- tags: Ge(t),
93
+ tags: Ke(t),
94
94
  piles: r
95
95
  };
96
96
  });
97
- M.value = e, He(), Le(e.map((e) => {
97
+ N.value = e, Ue(), Ie(e.map((e) => {
98
98
  let t = Z(e.tags);
99
99
  return {
100
100
  value: 1,
@@ -103,11 +103,11 @@ var ce = {
103
103
  label: { color: t ? "#ff4d4f" : "#52c41a" },
104
104
  warnTags: e.tags.filter((e) => e.warn).map((e) => e.label)
105
105
  };
106
- })), R.value = !1;
107
- }, Le = (e) => {
106
+ })), z.value = !1;
107
+ }, Ie = (e) => {
108
108
  let t = document.querySelector(".RadarShortTerm-chart");
109
109
  if (!t) return;
110
- B.value ||= se.init(t);
110
+ V.value ||= oe.init(t);
111
111
  let n = {
112
112
  tooltip: {
113
113
  trigger: "item",
@@ -135,36 +135,36 @@ var ce = {
135
135
  data: e
136
136
  }]
137
137
  };
138
- B.value.setOption(n);
139
- }, q = async (e) => {
140
- V.value = e, e === "chart" && (await m(), B.value?.resize());
141
- }, J = async () => {
142
- R.value = !0;
138
+ V.value.setOption(n);
139
+ }, J = async (e) => {
140
+ H.value = e, e === "chart" && (await m(), V.value?.resize());
141
+ }, Le = async () => {
142
+ z.value = !0;
143
143
  let t = await e({
144
- appKey: E.appKey,
145
- appSalt: E.appSalt,
146
- id: E.ids.radar.id,
144
+ appKey: D.appKey,
145
+ appSalt: D.appSalt,
146
+ id: D.ids.radar.id,
147
147
  variables: {},
148
- baseHttp: E.baseHttp,
149
- reqType: E.ids.radar.reqType,
150
- isFormData: E.ids.radar.isFormData
148
+ baseHttp: D.baseHttp,
149
+ reqType: D.ids.radar.reqType,
150
+ isFormData: D.ids.radar.isFormData
151
151
  });
152
152
  console.log("雷达", t.data.result);
153
153
  let n = await e({
154
- appKey: E.appKey,
155
- appSalt: E.appSalt,
156
- id: E.ids.historyRadar.id,
154
+ appKey: D.appKey,
155
+ appSalt: D.appSalt,
156
+ id: D.ids.historyRadar.id,
157
157
  variables: {},
158
- baseHttp: E.baseHttp,
159
- reqType: E.ids.historyRadar.reqType,
160
- isFormData: E.ids.historyRadar.isFormData
158
+ baseHttp: D.baseHttp,
159
+ reqType: D.ids.historyRadar.reqType,
160
+ isFormData: D.ids.historyRadar.isFormData
161
161
  });
162
- console.log("历史雷达", n.data.result), R.value = !1;
163
- let r = Be(t.data.result), i = Be(n.data.result);
164
- W.value = {
162
+ console.log("历史雷达", n.data.result), z.value = !1;
163
+ let r = Ve(t.data.result), i = Be(n.data.result);
164
+ G.value = {
165
165
  httpurl: r.httpurl,
166
166
  ...r.extent
167
- }, G.value = {
167
+ }, K.value = {
168
168
  httpurl: i.httpurl,
169
169
  ...i.extent
170
170
  }, console.log("historyData", i);
@@ -174,33 +174,33 @@ var ce = {
174
174
  _isHistory: !0,
175
175
  _label: t === n.length - 1 ? "现在" : `-${n.length - 1 - t}`,
176
176
  _httpurl: (i.httpurl || "") + (e.observation_time || "").slice(0, 10).replaceAll("-", "") + "/"
177
- })), o = E.type === "高速" ? [] : r.frames.map((e, t) => ({
177
+ })), o = r.frames.map((e, t) => ({
178
178
  ...e,
179
179
  _isHistory: !1,
180
180
  _label: `+${t + 1}`,
181
181
  _httpurl: r.httpurl || ""
182
182
  })), s = [...a, ...o];
183
- F.value = {
183
+ I.value = {
184
184
  ds: s,
185
185
  httpurl: r.httpurl,
186
186
  ...i.extent
187
- }, A.value = a.length - 1, O.value && (D("clearImgAniArr"), s.forEach((e) => {
188
- let t = Je(e);
189
- t && D("addImageAniArr", { data: { imgArr: [t] } });
187
+ }, j.value = a.length - 1, k.value && (O("clearImgAniArr"), s.forEach((e) => {
188
+ let t = Ye(e);
189
+ t && O("addImageAniArr", { data: { imgArr: [t] } });
190
190
  }), setTimeout(() => {
191
- D("setImgAniShowByIndex", { index: A.value });
192
- let e = s[A.value];
193
- Ye(e), D("showRadarLegend", !0);
191
+ O("setImgAniShowByIndex", { index: j.value });
192
+ let e = s[j.value];
193
+ Xe(e), O("showRadarLegend", !0);
194
194
  }, 1e3));
195
195
  }, Re = async () => {
196
196
  let t = await e({
197
- appKey: E.appKey,
198
- appSalt: E.appSalt,
199
- id: E.ids.shortTerm.id,
197
+ appKey: D.appKey,
198
+ appSalt: D.appSalt,
199
+ id: D.ids.shortTerm.id,
200
200
  variables: {},
201
- baseHttp: E.baseHttp,
202
- reqType: E.ids.shortTerm.reqType,
203
- isFormData: E.ids.shortTerm.isFormData
201
+ baseHttp: D.baseHttp,
202
+ reqType: D.ids.shortTerm.reqType,
203
+ isFormData: D.ids.shortTerm.isFormData
204
204
  });
205
205
  return console.log("短时预报", t.data.result.ds), t.data.result.ds || [];
206
206
  }, ze = (e) => {
@@ -220,23 +220,43 @@ var ce = {
220
220
  httpurl: i,
221
221
  extent: r
222
222
  };
223
- }, Ve = c(() => Ke(M.value, (e) => Z(e.tags))), Y = c(() => F.value?.ds || []), X = c(() => Y.value.map((e) => {
223
+ }, Ve = (e) => {
224
+ let t = (Array.isArray(e?.output) ? e.output : e?.output || []).filter((e) => e?.status === 1 && e?.image_url_outer).sort((e, t) => (e.lead_minutes || 0) - (t.lead_minutes || 0)).map((e) => ({
225
+ file_name: e.image_url_outer,
226
+ focarcast_time: e.valid_start,
227
+ lead_minutes: e.lead_minutes,
228
+ lngStart: e.west_lon,
229
+ latStart: e.south_lat,
230
+ lngEnd: e.east_lon,
231
+ latEnd: e.north_lat
232
+ })), n = t[0] || {};
233
+ return {
234
+ frames: t,
235
+ httpurl: "",
236
+ extent: {
237
+ latStart: n.latStart,
238
+ latEnd: n.latEnd,
239
+ lngStart: n.lngStart,
240
+ lngEnd: n.lngEnd
241
+ }
242
+ };
243
+ }, He = c(() => qe(N.value, (e) => Z(e.tags))), Y = c(() => I.value?.ds || []), X = c(() => Y.value.map((e) => {
224
244
  let t = new Date(e.focarcast_time);
225
245
  return `${String(t.getHours()).padStart(2, "0")}:${String(t.getMinutes()).padStart(2, "0")}`;
226
- })), He = () => {
227
- let e = Ve.value.find((e) => Z(e.tags)), t = {}, n = {};
228
- e && (t[e.name] = !0, n[e.name] = !0), N.value = t, P.value = n;
229
- }, Ue = (e) => {
246
+ })), Ue = () => {
247
+ let e = He.value.find((e) => Z(e.tags)), t = {}, n = {};
248
+ e && (t[e.name] = !0, n[e.name] = !0), P.value = t, F.value = n;
249
+ }, We = (e) => {
230
250
  let t = "";
231
- E.type === "高速" && (t = "zhflds"), E.type === "地质" && (t = "pointflds"), E.type === "水库" && (t = "pointflds");
251
+ D.type === "高速" && (t = "zhflds"), D.type === "地质" && (t = "pointflds"), D.type === "水库" && (t = "pointflds");
232
252
  let n = e[t] || [];
233
253
  return {
234
254
  iswarnpre1h: n.some((e) => e?.iswarnpre1h === 1) ? 1 : 0,
235
255
  iswarnpre2h: n.some((e) => e?.iswarnpre2h === 1) ? 1 : 0,
236
256
  iswarnpre3h: n.some((e) => e?.iswarnpre3h === 1) ? 1 : 0
237
257
  };
238
- }, We = (e) => Ke((e || []).map((e) => ({
239
- pileNo: E.type === "高速" ? `${e.type || ""}${e.Name || ""}` : E.type === "地质" ? e.name : E.type === "水库" ? e.river_name : "",
258
+ }, Ge = (e) => qe((e || []).map((e) => ({
259
+ pileNo: D.type === "高速" ? `${e.type || ""}${e.Name || ""}` : D.type === "地质" ? e.name : D.type === "水库" ? e.river_name : "",
240
260
  isWarn: e?.iswarnpre1h === 1 || e?.iswarnpre2h === 1 || e?.iswarnpre3h === 1,
241
261
  rain1h: e?.rain_1h ?? "-",
242
262
  rain2h: e?.rain_2h ?? "-",
@@ -244,7 +264,7 @@ var ce = {
244
264
  x: e.x,
245
265
  y: e.y,
246
266
  item: e
247
- })), (e) => e.isWarn), Ge = (e) => [
267
+ })), (e) => e.isWarn), Ke = (e) => [
248
268
  {
249
269
  label: "未来R1h",
250
270
  warn: e.iswarnpre1h === 1
@@ -257,48 +277,48 @@ var ce = {
257
277
  label: "未来R3h",
258
278
  warn: e.iswarnpre3h === 1
259
279
  }
260
- ], Z = (e) => e.some((e) => e.warn), Ke = (e, t) => [...e].sort((e, n) => Number(t(n)) - Number(t(e))), qe = (e) => e.filter((e) => e.isWarn).length, Je = (e) => {
280
+ ], Z = (e) => e.some((e) => e.warn), qe = (e, t) => [...e].sort((e, n) => Number(t(n)) - Number(t(e))), Je = (e) => e.filter((e) => e.isWarn).length, Ye = (e) => {
261
281
  if (!e) return null;
262
- let t = e._isHistory ? G.value : W.value, n = String(e?._httpurl || t.httpurl || ""), r = String(e?.file_name || "");
282
+ let t = e._isHistory ? K.value : G.value, n = String(e?._httpurl || t.httpurl || ""), r = String(e?.file_name || "");
263
283
  return {
264
284
  alt: "",
265
285
  imgUrl: r.startsWith("http") ? r : `${n}${r.replace(/^\/+/, "")}`,
266
- lngStart: t.lngStart,
267
- latStart: t.latStart,
268
- lngEnd: t.lngEnd,
269
- latEnd: t.latEnd,
286
+ lngStart: e.lngStart ?? t.lngStart,
287
+ latStart: e.latStart ?? t.latStart,
288
+ lngEnd: e.lngEnd ?? t.lngEnd,
289
+ latEnd: e.latEnd ?? t.latEnd,
270
290
  opacity: 1,
271
291
  zIndex: 1e3,
272
292
  otherData: { imgId: "radar_RadarShortTerm" }
273
293
  };
274
- }, Ye = (e) => {
275
- I.value && D("removeDataTitle", I.value), I.value = "雷达观测时间:" + n(e.focarcast_time).format("YYYY-MM-DD HH:mm "), D("addDataTitle", I.value);
276
294
  }, Xe = (e) => {
277
- D("setImgAniShowByIndex", { index: e });
295
+ L.value && O("removeDataTitle", L.value), L.value = "雷达观测时间:" + n(e.focarcast_time).format("YYYY-MM-DD HH:mm "), O("addDataTitle", L.value);
296
+ }, Ze = (e) => {
297
+ O("setImgAniShowByIndex", { index: e });
278
298
  let t = Y.value[e];
279
- Ye(t);
299
+ Xe(t);
280
300
  }, Q = () => {
281
- j.value &&= (clearInterval(j.value), null);
301
+ M.value &&= (clearInterval(M.value), null);
282
302
  }, $ = () => {
283
- k.value = !1, Q();
284
- }, Ze = () => {
285
- X.value.length <= 1 || (k.value = !0, Q(), H.value && (U.value = A.value, D("changeLoading", !0)), j.value = setInterval(() => {
286
- A.value = (A.value + 1) % X.value.length;
287
- }, 1e3));
303
+ A.value = !1, Q();
288
304
  }, Qe = () => {
289
- if (k.value) {
305
+ X.value.length <= 1 || (A.value = !0, Q(), U.value && (W.value = j.value, O("changeLoading", !0)), M.value = setInterval(() => {
306
+ j.value = (j.value + 1) % X.value.length;
307
+ }, 1e3));
308
+ }, $e = () => {
309
+ if (A.value) {
290
310
  $();
291
311
  return;
292
312
  }
293
- Ze();
313
+ Qe();
294
314
  };
295
- ie(A, (e) => {
296
- Xe(e), H.value && U.value !== null && e === U.value && (H.value = !1, U.value = null, D("changeLoading", !1));
297
- }), ie(A, () => {
315
+ C(j, (e) => {
316
+ Ze(e), U.value && W.value !== null && e === W.value && (U.value = !1, W.value = null, O("changeLoading", !1));
317
+ }), C(j, () => {
298
318
  m(() => {
299
- let e = L.value;
319
+ let e = R.value;
300
320
  if (!e) return;
301
- let t = e.querySelectorAll(".radarAxis-li")[A.value];
321
+ let t = e.querySelectorAll(".radarAxis-li")[j.value];
302
322
  t && t.scrollIntoView({
303
323
  behavior: "smooth",
304
324
  inline: "center",
@@ -306,23 +326,23 @@ var ce = {
306
326
  });
307
327
  });
308
328
  });
309
- let $e = () => {
329
+ let et = () => {
310
330
  $();
311
- }, et = async () => {
312
- if (!O.value) {
313
- D("clearImgAniArr"), D("removeDataTitle", I.value), D("showRadarLegend", !1), $();
331
+ }, tt = async () => {
332
+ if (!k.value) {
333
+ O("clearImgAniArr"), O("removeDataTitle", L.value), O("showRadarLegend", !1), $();
314
334
  return;
315
335
  }
316
- R.value = !0, await J(), R.value = !1;
317
- }, tt = (e) => {
318
- let t = !!N.value[e];
319
- N.value[e] = !t, t || (P.value[e] = !0);
336
+ z.value = !0, await Le(), z.value = !1;
320
337
  }, nt = (e) => {
321
- P.value[e] = !P.value[e];
322
- }, rt = () => {
323
- D("close", "RadarShortTerm");
324
- }, it = (e) => {
325
- D("toMapView", {
338
+ let t = !!P.value[e];
339
+ P.value[e] = !t, t || (F.value[e] = !0);
340
+ }, rt = (e) => {
341
+ F.value[e] = !F.value[e];
342
+ }, it = () => {
343
+ O("close", "RadarShortTerm");
344
+ }, at = (e) => {
345
+ O("toMapView", {
326
346
  lng: Number(e.x),
327
347
  lat: Number(e.y),
328
348
  zoom: 11
@@ -347,121 +367,121 @@ var ce = {
347
367
  };
348
368
  return (e, t) => {
349
369
  let n = i, c = a, p = r, m = o;
350
- return w((_(), u("div", ce, [
351
- d("div", le, [d("div", ue, [d("div", null, b(E.title), 1), d("div", de, [w(d("div", fe, [d("button", {
352
- class: h(["switch-btn", { active: V.value === "chart" }]),
353
- onClick: t[0] ||= (e) => q("chart")
370
+ return T((_(), u("div", se, [
371
+ d("div", ce, [d("div", le, [d("div", null, b(D.title), 1), d("div", ue, [T(d("div", de, [d("button", {
372
+ class: h(["switch-btn", { active: H.value === "chart" }]),
373
+ onClick: t[0] ||= (e) => J("chart")
354
374
  }, " 图表 ", 2), d("button", {
355
- class: h(["switch-btn", { active: V.value === "table" }]),
356
- onClick: t[1] ||= (e) => q("table")
357
- }, " 表格 ", 2)], 512), [[S, E.type !== "高速"]]), d("div", {
375
+ class: h(["switch-btn", { active: H.value === "table" }]),
376
+ onClick: t[1] ||= (e) => J("table")
377
+ }, " 表格 ", 2)], 512), [[S, D.type !== "高速"]]), d("div", {
358
378
  class: "closeBtn",
359
- onClick: rt,
379
+ onClick: it,
360
380
  title: "关闭"
361
381
  })])]), t[3] ||= d("img", {
362
382
  class: "RadarShortTerm-head-line",
363
383
  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",
364
384
  alt: ""
365
385
  }, null, -1)]),
366
- d("div", pe, [d("div", me, [d("div", he, [t[5] ||= d("span", { class: "setting-label" }, "雷达展示:", -1), d("div", ge, [f(n, {
367
- modelValue: O.value,
368
- "onUpdate:modelValue": t[2] ||= (e) => O.value = e,
386
+ d("div", fe, [d("div", pe, [d("div", me, [t[5] ||= d("span", { class: "setting-label" }, "雷达展示:", -1), d("div", he, [f(n, {
387
+ modelValue: k.value,
388
+ "onUpdate:modelValue": t[2] ||= (e) => k.value = e,
369
389
  class: "pile-checkbox",
370
- onChange: et
390
+ onChange: tt
371
391
  }, {
372
- default: C(() => [...t[4] ||= [te(" 显示 ", -1)]]),
392
+ default: w(() => [...t[4] ||= [te(" 显示 ", -1)]]),
373
393
  _: 1
374
394
  }, 8, ["modelValue"])])])])]),
375
- w(d("div", _e, null, 512), [[S, E.type !== "高速" && V.value === "chart"]]),
376
- w(d("div", ve, [d("div", ye, [
377
- w(d("span", null, "高速名称", 512), [[S, E.type === "高速"]]),
378
- w(d("span", null, "隐患类别", 512), [[S, E.type === "地质"]]),
379
- w(d("span", null, "水库类别", 512), [[S, E.type === "水库"]]),
395
+ T(d("div", ge, null, 512), [[S, D.type !== "高速" && H.value === "chart"]]),
396
+ T(d("div", _e, [d("div", ve, [
397
+ T(d("span", null, "高速名称", 512), [[S, D.type === "高速"]]),
398
+ T(d("span", null, "隐患类别", 512), [[S, D.type === "地质"]]),
399
+ T(d("span", null, "水库类别", 512), [[S, D.type === "水库"]]),
380
400
  t[6] ||= d("span", null, "状态要素", -1),
381
401
  t[7] ||= d("span", { class: "head-arrow" }, null, -1)
382
- ]), d("div", be, [(_(!0), u(s, null, y(Ve.value, (e) => (_(), u("div", {
402
+ ]), d("div", ye, [(_(!0), u(s, null, y(He.value, (e) => (_(), u("div", {
383
403
  class: "table-row",
384
404
  key: e.name
385
405
  }, [
386
406
  d("div", {
387
407
  class: "table-row-main",
388
- onClick: (t) => tt(e.name)
408
+ onClick: (t) => nt(e.name)
389
409
  }, [
390
- d("span", Se, b(e.name), 1),
410
+ d("span", xe, b(e.name), 1),
391
411
  d("div", { class: h(["status-tags", { "has-warn": Z(e.tags) }]) }, [(_(!0), u(s, null, y(e.tags, (t) => (_(), u("span", {
392
412
  class: h(["status-tag", { warn: t.warn }]),
393
413
  key: `${e.name}-${t.label}`
394
414
  }, [d("span", null, b(t.label), 1)], 2))), 128))], 2),
395
415
  d("span", {
396
- class: h(["expand-arrow", { expanded: N.value[e.name] }]),
416
+ class: h(["expand-arrow", { expanded: P.value[e.name] }]),
397
417
  "aria-hidden": "true"
398
418
  }, [f(c, null, {
399
- default: C(() => [f(x(T))]),
419
+ default: w(() => [f(x(E))]),
400
420
  _: 1
401
421
  })], 2)
402
- ], 8, xe),
403
- w(d("div", {
422
+ ], 8, be),
423
+ T(d("div", {
404
424
  class: "pile-title",
405
- onClick: (t) => nt(e.name)
425
+ onClick: (t) => rt(e.name)
406
426
  }, [d("span", null, [
407
- w(d("span", null, "桩号数据", 512), [[S, E.type === "高速"]]),
408
- w(d("span", null, "隐患点数据", 512), [[S, E.type === "地质"]]),
409
- w(d("span", null, "水库点数据", 512), [[S, E.type === "水库"]]),
410
- qe(e.piles) > 0 ? (_(), u("span", we, " (报警数量:" + b(qe(e.piles)) + "个)", 1)) : ee("", !0)
411
- ]), d("span", { class: h(["panel-arrow", { expanded: P.value[e.name] }]) }, [f(c, null, {
412
- default: C(() => [f(x(T))]),
427
+ T(d("span", null, "桩号数据", 512), [[S, D.type === "高速"]]),
428
+ T(d("span", null, "隐患点数据", 512), [[S, D.type === "地质"]]),
429
+ T(d("span", null, "水库点数据", 512), [[S, D.type === "水库"]]),
430
+ Je(e.piles) > 0 ? (_(), u("span", Ce, " (报警数量:" + b(Je(e.piles)) + "个)", 1)) : ee("", !0)
431
+ ]), d("span", { class: h(["panel-arrow", { expanded: F.value[e.name] }]) }, [f(c, null, {
432
+ default: w(() => [f(x(E))]),
413
433
  _: 1
414
- })], 2)], 8, Ce), [[S, N.value[e.name]]]),
415
- w(d("div", Te, [d("div", Ee, [
416
- w(d("span", null, "桩号", 512), [[S, E.type === "高速"]]),
417
- w(d("span", null, "隐患点", 512), [[S, E.type === "地质"]]),
418
- w(d("span", null, "水库点", 512), [[S, E.type === "水库"]]),
434
+ })], 2)], 8, Se), [[S, P.value[e.name]]]),
435
+ T(d("div", we, [d("div", Te, [
436
+ T(d("span", null, "桩号", 512), [[S, D.type === "高速"]]),
437
+ T(d("span", null, "隐患点", 512), [[S, D.type === "地质"]]),
438
+ T(d("span", null, "水库点", 512), [[S, D.type === "水库"]]),
419
439
  t[8] ||= d("span", null, "未来R1h", -1),
420
440
  t[9] ||= d("span", null, "未来R2h", -1),
421
441
  t[10] ||= d("span", null, "未来R3h", -1)
422
- ]), e.piles.length ? (_(), u("div", De, [(_(!0), u(s, null, y(e.piles, (e) => (_(), u("div", {
442
+ ]), e.piles.length ? (_(), u("div", Ee, [(_(!0), u(s, null, y(e.piles, (e) => (_(), u("div", {
423
443
  class: h(["pile-row", { "is-warn": e.isWarn }]),
424
444
  key: e.pileNo,
425
- onClick: (t) => it(e)
445
+ onClick: (t) => at(e)
426
446
  }, [
427
447
  d("span", null, b(e.pileNo), 1),
428
448
  d("span", null, b(e.rain1h), 1),
429
449
  d("span", null, b(e.rain2h), 1),
430
450
  d("span", null, b(e.rain3h), 1)
431
- ], 10, Oe))), 128))])) : (_(), u("div", ke, "暂无数据"))], 512), [[S, N.value[e.name] && P.value[e.name]]])
432
- ]))), 128))])], 512), [[S, E.type !== "高速" && V.value === "table"]]),
433
- w(f(p, {
451
+ ], 10, De))), 128))])) : (_(), u("div", Oe, "暂无数据"))], 512), [[S, P.value[e.name] && F.value[e.name]]])
452
+ ]))), 128))])], 512), [[S, D.type !== "高速" && H.value === "table"]]),
453
+ T(f(p, {
434
454
  show: !0,
435
455
  isVertical: !1,
436
456
  class: "RadarShortTerm-legend"
437
- }, null, 512), [[S, O.value]]),
438
- w(d("div", Ae, [d("button", {
457
+ }, null, 512), [[S, k.value]]),
458
+ T(d("div", ke, [d("button", {
439
459
  type: "button",
440
460
  class: "timeline-play-btn",
441
- title: k.value ? "暂停" : "播放",
442
- onClick: Qe
461
+ title: A.value ? "暂停" : "播放",
462
+ onClick: $e
443
463
  }, [f(c, null, {
444
- default: C(() => [k.value ? (_(), l(x(ae), { key: 0 })) : (_(), l(x(oe), { key: 1 }))]),
464
+ default: w(() => [A.value ? (_(), l(x(ie), { key: 0 })) : (_(), l(x(ae), { key: 1 }))]),
445
465
  _: 1
446
- })], 8, je), d("div", Me, [d("span", Ne, b(X.value[A.value] || ""), 1), d("div", {
466
+ })], 8, Ae), d("div", je, [d("span", Me, b(X.value[j.value] || ""), 1), d("div", {
447
467
  class: "radarAxis",
448
468
  ref_key: "ref_radarAxis",
449
- ref: L
450
- }, [(_(!0), u(s, null, y(Y.value, (e, n) => (_(), u("div", Pe, [d("div", {
469
+ ref: R
470
+ }, [(_(!0), u(s, null, y(Y.value, (e, n) => (_(), u("div", Ne, [d("div", {
451
471
  class: "radarAxis-li-node",
452
- onClick: (e) => (A.value = Number(n), $e())
472
+ onClick: (e) => (j.value = Number(n), et())
453
473
  }, [
454
474
  d("i", { style: g({ backgroundColor: e._isHistory ? "" : "#ca9e64" }) }, null, 4),
455
- w(d("span", null, [...t[11] ||= [d("i", null, null, -1)]], 512), [[S, n === A.value]]),
456
- d("div", Ie, [d("b", null, b(e._label), 1)])
457
- ], 8, Fe), (_(), u(s, null, y(4, (t) => w(d("div", {
475
+ T(d("span", null, [...t[11] ||= [d("i", null, null, -1)]], 512), [[S, n === j.value]]),
476
+ d("div", Fe, [d("b", null, b(e._label), 1)])
477
+ ], 8, Pe), (_(), u(s, null, y(4, (t) => T(d("div", {
458
478
  class: "radarAxis-li-point",
459
479
  key: t,
460
480
  style: g({ backgroundColor: e._isHistory ? "" : "#FFD700" })
461
- }, null, 4), [[S, n !== Y.value.length - 1]])), 64))]))), 256))], 512)])], 512), [[S, O.value]])
462
- ])), [[m, R.value]]);
481
+ }, null, 4), [[S, n !== Y.value.length - 1]])), 64))]))), 256))], 512)])], 512), [[S, k.value]])
482
+ ])), [[m, z.value]]);
463
483
  };
464
484
  }
465
- }), [["__scopeId", "data-v-e3caa2d5"]]);
485
+ }), [["__scopeId", "data-v-77e61033"]]);
466
486
  //#endregion
467
- export { E as t };
487
+ export { D as t };