nxd-plugin 1.8.46 → 1.8.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.
Files changed (90) hide show
  1. package/dist/chunks/GridData-DKQLl2Yn.mjs +2 -0
  2. package/dist/chunks/YCServiceSummary-BNOAFpyZ.mjs +2 -0
  3. package/dist/chunks/{component-Agent-CAxRiXVu.mjs → component-Agent-DwXtdLhK.mjs} +114 -106
  4. package/dist/chunks/{component-AiChat-go3CScRo.mjs → component-AiChat-Cj1xCAtL.mjs} +1 -1
  5. package/dist/chunks/{component-AqiMonitor-BJXlyOxH.mjs → component-AqiMonitor-CiRH3KK9.mjs} +1 -1
  6. package/dist/chunks/{component-ChartCumulativePre-CPImPMtx.mjs → component-ChartCumulativePre-jgepn88x.mjs} +2 -2
  7. package/dist/chunks/{component-ChartServiceMaterial-DCgeleQL.mjs → component-ChartServiceMaterial-CE9IfnBv.mjs} +2 -2
  8. package/dist/chunks/{component-Duty-Cj3jYko4.mjs → component-Duty-BsFsOk0K.mjs} +2 -2
  9. package/dist/chunks/{component-EarlyWarningStatistic-Dj7-DooY.mjs → component-EarlyWarningStatistic-8yavuyPf.mjs} +2 -2
  10. package/dist/chunks/{component-EarlyWarningStatistic2-CGrO7gCL.mjs → component-EarlyWarningStatistic2-DppX7jcV.mjs} +2 -2
  11. package/dist/chunks/{component-Forecast72h-BDEacrN0.mjs → component-Forecast72h-CD6eT1xe.mjs} +1 -1
  12. package/dist/chunks/{component-GeologyLiveAlarm-Ck08qE3U.mjs → component-GeologyLiveAlarm-CKdsxprI.mjs} +2 -2
  13. package/dist/chunks/component-GridData-o7hipw0h.mjs +756 -0
  14. package/dist/chunks/{component-GridForecastMsg-nkheA7h9.mjs → component-GridForecastMsg-BooZUH5C.mjs} +1 -1
  15. package/dist/chunks/{component-HDSeaLegend-CCiQnc3X.mjs → component-HDSeaLegend-DgPHlKXO.mjs} +2 -2
  16. package/dist/chunks/{component-HdCameraList-BddqV2QN.mjs → component-HdCameraList-DuC-_0uH.mjs} +2 -2
  17. package/dist/chunks/{component-HdFarmStation-CrNTC69J.mjs → component-HdFarmStation-BtYLSMAY.mjs} +2 -2
  18. package/dist/chunks/{component-HdFarmStationDialog-OU6FdHI4.mjs → component-HdFarmStationDialog-BHxuJEsh.mjs} +1 -1
  19. package/dist/chunks/{component-HdForecastProducts-Bkp2m76s.mjs → component-HdForecastProducts-BnI8u5s4.mjs} +1 -1
  20. package/dist/chunks/{component-HdHeatChart-K9XTDoxy.mjs → component-HdHeatChart-CuqWcjET.mjs} +1 -1
  21. package/dist/chunks/{component-HdHeatChartDialog-BWHIGeaR.mjs → component-HdHeatChartDialog-pXLf6f_w.mjs} +2 -2
  22. package/dist/chunks/{component-HdHeatService-DMj3UpNe.mjs → component-HdHeatService-CBo6v1T6.mjs} +1 -1
  23. package/dist/chunks/{component-HdInsectDetailList-CLuhOSWM.mjs → component-HdInsectDetailList-MrAoHbsv.mjs} +1 -1
  24. package/dist/chunks/{component-HdInsectList-SR9MrrWw.mjs → component-HdInsectList-Dswl1k3W.mjs} +1 -1
  25. package/dist/chunks/{component-HdMajorActivity-BbkuZ3pW.mjs → component-HdMajorActivity-Dcgr5Lp_.mjs} +2 -2
  26. package/dist/chunks/{component-HdObservation-Cj1TbKDr.mjs → component-HdObservation-DmRN3dBq.mjs} +3 -3
  27. package/dist/chunks/{component-HdPreSituation-BOjuRB8B.mjs → component-HdPreSituation-KMOE4Mt_.mjs} +3 -3
  28. package/dist/chunks/{component-HdQxServiceEffects-DK_FJEmE.mjs → component-HdQxServiceEffects-CZZHRjNN.mjs} +1 -1
  29. package/dist/chunks/{component-HdRadarList-DZmnTNTN.mjs → component-HdRadarList-Cx_cRpjb.mjs} +3 -3
  30. package/dist/chunks/{component-HdRadarTime-Cn8kLA9j.mjs → component-HdRadarTime-D6ZLrCfA.mjs} +1 -1
  31. package/dist/chunks/{component-HdRadarTimeLine-B9KzZ0sT.mjs → component-HdRadarTimeLine-CwdMMlPK.mjs} +1 -1
  32. package/dist/chunks/{component-HdRisk-DLvN1ReK.mjs → component-HdRisk-Cx_Wuyuy.mjs} +2 -2
  33. package/dist/chunks/{component-HdSeaCase-cGapDdCH.mjs → component-HdSeaCase-C9gN_sjI.mjs} +1 -1
  34. package/dist/chunks/{component-HdServiceMarterial-BHPhw4Za.mjs → component-HdServiceMarterial-CT_sdZkH.mjs} +2 -2
  35. package/dist/chunks/{component-HdServiceRequirements-D1XB4dxh.mjs → component-HdServiceRequirements-CrpxYdNK.mjs} +2 -2
  36. package/dist/chunks/{component-HdSoil-CRecGN33.mjs → component-HdSoil-eQTGGIkq.mjs} +2 -2
  37. package/dist/chunks/{component-HdSoilDetailList-DbBRfuvO.mjs → component-HdSoilDetailList-B1VZ5iDc.mjs} +1 -1
  38. package/dist/chunks/{component-HdStationTem-BxEvMZKy.mjs → component-HdStationTem-BCls8KKc.mjs} +3 -3
  39. package/dist/chunks/{component-HdSuggestion-ZF_A8QJj.mjs → component-HdSuggestion-BnGlQLfg.mjs} +2 -2
  40. package/dist/chunks/{component-HdThreeWeatherTrend-C-YzuGub.mjs → component-HdThreeWeatherTrend-D_dPqael.mjs} +3 -3
  41. package/dist/chunks/{component-HdWaveForcast-Bk3SKlnr.mjs → component-HdWaveForcast-B-RPD_5H.mjs} +2 -2
  42. package/dist/chunks/{component-HighQuality-Caba7jDy.mjs → component-HighQuality-BpOhQkvl.mjs} +1 -1
  43. package/dist/chunks/{component-HighWayEarlyWarningRed-BJCUNxvZ.mjs → component-HighWayEarlyWarningRed-BwmqvV6c.mjs} +2 -2
  44. package/dist/chunks/{component-HighWayFreeze-B-K-UGUx.mjs → component-HighWayFreeze-DyDyOInt.mjs} +2 -2
  45. package/dist/chunks/{component-HighwayLiveAlarm-VUsOlz-6.mjs → component-HighwayLiveAlarm-DDhriJHu.mjs} +2 -2
  46. package/dist/chunks/{component-HighwayLiveAlarmNew-DSJwUZjW.mjs → component-HighwayLiveAlarmNew-Dxf6DUyI.mjs} +3 -3
  47. package/dist/chunks/{component-HighwayStations-Bcop09xe.mjs → component-HighwayStations-B-h6dG6Y.mjs} +2 -2
  48. package/dist/chunks/{component-HighwayWeatherForecast-i9LhEzub.mjs → component-HighwayWeatherForecast-BVj7aWS1.mjs} +5 -5
  49. package/dist/chunks/{component-IframeWeb-DfNcuMhw.mjs → component-IframeWeb-B2CTwN6w.mjs} +1 -1
  50. package/dist/chunks/{component-ImageGeneration-DVUghC8G.mjs → component-ImageGeneration-70AuumKi.mjs} +560 -321
  51. package/dist/chunks/{component-IntroducePic-CVSFpdsQ.mjs → component-IntroducePic-Bo227tKg.mjs} +1 -1
  52. package/dist/chunks/{component-LithiumBatteryMiningArea-Cypkj4BH.mjs → component-LithiumBatteryMiningArea-BDFvxMfk.mjs} +2 -2
  53. package/dist/chunks/{component-MapPopup-DgdHZtEE.mjs → component-MapPopup-vqI8jKFt.mjs} +1 -1
  54. package/dist/chunks/{component-MaterialPreview-DYY0A9il.mjs → component-MaterialPreview-CUz2PkU0.mjs} +1 -1
  55. package/dist/chunks/{component-PieLegend-B9IbTtgM.mjs → component-PieLegend-BIImVR6x.mjs} +1 -1
  56. package/dist/chunks/{component-PrecipitationRanking-C1SiHePw.mjs → component-PrecipitationRanking-Ct4OY0FJ.mjs} +3 -3
  57. package/dist/chunks/{component-RadarChart-jfRsO_e5.mjs → component-RadarChart-7kA3pjCB.mjs} +2 -2
  58. package/dist/chunks/{component-RadarLegend-D8bpZUG7.mjs → component-RadarLegend-ByCdufPU.mjs} +1 -1
  59. package/dist/chunks/{component-RadarShortTerm-CPV04O7Y.mjs → component-RadarShortTerm-pixyOE-9.mjs} +4 -4
  60. package/dist/chunks/{component-RadarTime-DMDNBgXp.mjs → component-RadarTime-DuIABgoI.mjs} +2 -2
  61. package/dist/chunks/{component-RenderMarkdown-6mcPpawU.mjs → component-RenderMarkdown-Bn2qLtnE.mjs} +2 -2
  62. package/dist/chunks/{component-ReservoirLiveAlarm-4lhpOle1.mjs → component-ReservoirLiveAlarm-C-NS9Erh.mjs} +3 -3
  63. package/dist/chunks/{component-ServiceMaterial-DlkZAyjh.mjs → component-ServiceMaterial-BVatsrsj.mjs} +2 -2
  64. package/dist/chunks/{component-ServiceMaterialsBtn-BbDyaUrK.mjs → component-ServiceMaterialsBtn-BgMw_lBj.mjs} +2 -2
  65. package/dist/chunks/{component-StationDialog-BlyiU8y4.mjs → component-StationDialog-_pkrpDnI.mjs} +3 -3
  66. package/dist/chunks/{component-StationList-DSmfGdBz.mjs → component-StationList-D4XTo6r2.mjs} +3 -3
  67. package/dist/chunks/{component-TimeBasedForecast-BGDjpUnz.mjs → component-TimeBasedForecast-4ZZ7ZnCH.mjs} +4 -4
  68. package/dist/chunks/{component-Typhoon-BG_WfKEI.mjs → component-Typhoon-DKmZhXAu.mjs} +2 -2
  69. package/dist/chunks/{component-WarningLine-DSj25DNY.mjs → component-WarningLine-B-2b5J3R.mjs} +2 -2
  70. package/dist/chunks/{component-WarningSignal-BiKwmQVC.mjs → component-WarningSignal-Dv03xQ5u.mjs} +3 -3
  71. package/dist/chunks/{component-WeatherForecast-B8PrFpv0.mjs → component-WeatherForecast-DqdD9JUX.mjs} +4 -4
  72. package/dist/chunks/{component-YCDataMonitor-BbkgMPoo.mjs → component-YCDataMonitor-BPflVY09.mjs} +1 -1
  73. package/dist/chunks/component-YCDataService-CniJWhHF.mjs +580 -0
  74. package/dist/chunks/{component-YCHighWaySummary-CB3sEooz.mjs → component-YCHighWaySummary-CvW4Oc_G.mjs} +2 -2
  75. package/dist/chunks/{component-YCHome-pFXXcjjB.mjs → component-YCHome-BNYalrzu.mjs} +4 -4
  76. package/dist/chunks/{component-YCHomeLegend-BYmh2cQ5.mjs → component-YCHomeLegend-CpA6i_j6.mjs} +2 -2
  77. package/dist/chunks/{component-YCLoginNew-BnkvuCcd.mjs → component-YCLoginNew-BfAbQH6O.mjs} +2 -2
  78. package/dist/chunks/{component-YCServiceSummary-B7o9Xpv_.mjs → component-YCServiceSummary-_qQSJu5H.mjs} +264 -167
  79. package/dist/components/GridData/GridData.vue.d.ts +50 -3
  80. package/dist/nxd-plugin.mjs +73 -73
  81. package/dist/styles/component-Agent.css +1 -1
  82. package/dist/styles/component-GridData.css +1 -1
  83. package/dist/styles/component-YCDataService.css +1 -1
  84. package/dist/styles/component-YCLoginNew.css +1 -1
  85. package/dist/styles/component-YCServiceSummary.css +1 -1
  86. package/package.json +1 -1
  87. package/dist/chunks/GridData-BV6wWY9y.mjs +0 -2
  88. package/dist/chunks/YCServiceSummary-RXbZiFJQ.mjs +0 -2
  89. package/dist/chunks/component-GridData-BkGj8Dsc.mjs +0 -70
  90. package/dist/chunks/component-YCDataService-CDMO1O3G.mjs +0 -412
@@ -0,0 +1,580 @@
1
+ import { g as e, p as t } from "./component-Agent-DwXtdLhK.mjs";
2
+ import { a as n } from "./component-HdFarmStationDialog-BHxuJEsh.mjs";
3
+ import { t as r } from "./component-YCDataMonitor-BPflVY09.mjs";
4
+ import { ElConfigProvider as i, ElDatePicker as a, ElInput as o, ElLoadingDirective as s } from "element-plus/es";
5
+ import { Fragment as c, Teleport as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as ee, createVNode as h, defineComponent as g, normalizeClass as _, onBeforeUnmount as te, onMounted as v, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, vShow as w, watch as ne, withCtx as T, withDirectives as E } from "vue";
6
+ import "element-plus/es/components/loading/style/css";
7
+ import { ElMessage as D } from "element-plus";
8
+ import "element-plus/es/components/message/style/css";
9
+ import "element-plus/es/components/input/style/css";
10
+ import O from "element-plus/es/locale/lang/zh-cn";
11
+ import "element-plus/es/components/date-picker/style/css";
12
+ //#region src/components/YCRealTimeTable/YCRealTimeTable.vue?vue&type=script&setup=true&lang.ts
13
+ var re = {
14
+ class: "YCRealTimeTable",
15
+ "element-loading-background": "rgba(0, 0, 0, 0.3)"
16
+ }, ie = { class: "YCRealTimeTable-summary" }, ae = { class: "summary-table" }, oe = { class: "summary-head" }, se = { class: "summary-body" }, ce = { class: "summary-cell summary-cell-label" }, le = { class: "YCRealTimeTable-toolbar" }, ue = { class: "filter-group" }, de = { class: "YCRealTimeTable-detail" }, fe = { class: "detail-table" }, pe = { class: "detail-head" }, k = ["onClick"], A = { class: "detail-body" }, j = { class: "detail-cell detail-cell-index" }, M = { class: "detail-cell" }, N = { class: "detail-cell" }, P = { class: "detail-cell" }, F = { class: "detail-cell" }, I = {
17
+ key: 0,
18
+ class: "dialog-overlay threshold-overlay"
19
+ }, L = { class: "dialog-box threshold-box" }, R = { class: "dialog-header" }, z = { class: "dialog-body" }, B = { class: "threshold-group" }, me = { class: "threshold-form" }, he = { class: "threshold-item" }, ge = { class: "threshold-item" }, _e = { class: "threshold-item" }, ve = { class: "threshold-item" }, ye = { class: "threshold-item" }, be = { class: "threshold-item" }, xe = { class: "threshold-group" }, V = { class: "threshold-form" }, Se = { class: "threshold-item" }, Ce = { class: "threshold-item" }, we = { class: "threshold-group" }, Te = { class: "threshold-form" }, Ee = { class: "threshold-item" }, De = { class: "threshold-item" }, Oe = { class: "threshold-item" }, ke = { class: "threshold-footer" }, Ae = ["disabled"], H = /* @__PURE__ */ t(/* @__PURE__ */ g({
20
+ __name: "YCRealTimeTable",
21
+ props: {
22
+ appKey: {
23
+ type: String,
24
+ default: ""
25
+ },
26
+ appSalt: {
27
+ type: String,
28
+ default: ""
29
+ },
30
+ baseHttp: {
31
+ type: String,
32
+ default: ""
33
+ },
34
+ ids: {
35
+ type: Object,
36
+ default: () => ({})
37
+ }
38
+ },
39
+ setup(t) {
40
+ let r = t, i = b(!1), a = b([]), g = [
41
+ "5分钟降水量",
42
+ "当前小时雨量",
43
+ "1小时雨量",
44
+ "3小时雨量",
45
+ "20时至当前雨量",
46
+ "24小时雨量",
47
+ "极大风速",
48
+ "能见度",
49
+ "最小能见度"
50
+ ], C = b([]), w = b([]), T = [
51
+ {
52
+ key: "index",
53
+ label: "序号",
54
+ sortable: !1
55
+ },
56
+ {
57
+ key: "county",
58
+ label: "县名",
59
+ sortable: !1
60
+ },
61
+ {
62
+ key: "station",
63
+ label: "站名",
64
+ sortable: !1
65
+ },
66
+ {
67
+ key: "time",
68
+ label: "时间",
69
+ sortable: !0
70
+ },
71
+ {
72
+ key: "rain24",
73
+ label: "24小时雨量",
74
+ sortable: !0
75
+ },
76
+ {
77
+ key: "rain20",
78
+ label: "20时至现在雨量",
79
+ sortable: !0
80
+ },
81
+ {
82
+ key: "rain3",
83
+ label: "3小时雨量",
84
+ sortable: !0
85
+ },
86
+ {
87
+ key: "rain1",
88
+ label: "1小时雨量",
89
+ sortable: !0
90
+ },
91
+ {
92
+ key: "rainCurrent",
93
+ label: "当前小时雨量",
94
+ sortable: !0
95
+ },
96
+ {
97
+ key: "rain5m",
98
+ label: "5分钟降水量",
99
+ sortable: !0
100
+ },
101
+ {
102
+ key: "temp",
103
+ label: "气温",
104
+ sortable: !0
105
+ },
106
+ {
107
+ key: "windDir",
108
+ label: "极大风向",
109
+ sortable: !1
110
+ },
111
+ {
112
+ key: "windSpeed",
113
+ label: "极大风速",
114
+ sortable: !0
115
+ },
116
+ {
117
+ key: "humidity",
118
+ label: "湿度",
119
+ sortable: !0
120
+ },
121
+ {
122
+ key: "pressure",
123
+ label: "气压",
124
+ sortable: !0
125
+ },
126
+ {
127
+ key: "_voltage",
128
+ label: "电压",
129
+ sortable: !0
130
+ }
131
+ ], O = b(!0), H = b(""), U = b(""), W = b(null), G = b(null), K = b(null), q = b({}), J = b(!1), Y = b(!1), X = b({
132
+ rain24hMax: "",
133
+ rain20ToNowMax: "",
134
+ rain3hMax: "",
135
+ rain1hMax: "",
136
+ currentHourRainMax: "",
137
+ rain5mMax: "",
138
+ temMin: "",
139
+ temMax: "",
140
+ rhuMax: "",
141
+ prsMax: "",
142
+ windSpeedMax: ""
143
+ }), je = u(() => {
144
+ let e = w.value;
145
+ O.value || (e = e.filter((e) => e.county === "袁州区"));
146
+ let t = H.value.trim();
147
+ t && (e = e.filter((e) => e.county.includes(t)));
148
+ let n = U.value.trim();
149
+ return n && (e = e.filter((e) => e.station.includes(n))), e;
150
+ }), Me = u(() => {
151
+ let e = [...je.value];
152
+ if (!W.value || !G.value) return e;
153
+ let t = W.value;
154
+ return e.sort((e, n) => {
155
+ let r = e[t], i = n[t], a = r === null || r === "" || r === void 0, o = i === null || i === "" || i === void 0;
156
+ if (a && o) return 0;
157
+ if (a) return 1;
158
+ if (o) return -1;
159
+ let s, c;
160
+ if (t === "time") {
161
+ if (s = Q(String(r)), c = Q(String(i)), s < 0 && c < 0) return 0;
162
+ if (s < 0) return 1;
163
+ if (c < 0) return -1;
164
+ } else s = Number(r), c = Number(i);
165
+ return G.value === "asc" ? s - c : c - s;
166
+ });
167
+ });
168
+ v(() => {
169
+ Z(), K.value = setInterval(() => {
170
+ Z();
171
+ }, 1e3 * 60 * 10);
172
+ }), te(() => {
173
+ clearInterval(K.value), K.value = null, document.body.style.overflow = "";
174
+ });
175
+ let Z = async () => {
176
+ i.value = !0;
177
+ let t = await e({
178
+ appKey: r.appKey,
179
+ appSalt: r.appSalt,
180
+ id: r.ids.YCRealTimeTable_data.id,
181
+ variables: {},
182
+ baseHttp: r.baseHttp,
183
+ reqType: r.ids.YCRealTimeTable_data.reqType,
184
+ isFormData: r.ids.YCRealTimeTable_data.isFormData
185
+ }), o = t.data.result.threshold;
186
+ q.value = Array.isArray(o) ? o[0] || {} : o || {};
187
+ let s = t.data.result.output || "{}", c = JSON.parse(s);
188
+ console.log("res_output", c.data);
189
+ let l = t.data.result.voltage || [], u = new Map(l.map((e) => [e.station_id, e])), { nationalStations: d, otherStations: f } = c.data || {
190
+ nationalStations: [],
191
+ otherStations: []
192
+ };
193
+ a.value = (d || []).map((e) => e.stationName);
194
+ let p = (e) => e == null || e === "" ? "" : e;
195
+ C.value = g.map((e) => (d || []).map((t) => {
196
+ switch (e) {
197
+ case "5分钟降水量": return {
198
+ value: p(t.rain5m),
199
+ isWarn: t.rain5mThreshold === 1
200
+ };
201
+ case "当前小时雨量": return {
202
+ value: p(t.currentHourRain),
203
+ isWarn: t.currentHourRainThreshold === 1
204
+ };
205
+ case "1小时雨量": return {
206
+ value: p(t.rain1h),
207
+ isWarn: t.rain1hThreshold === 1
208
+ };
209
+ case "3小时雨量": return {
210
+ value: p(t.rain3h),
211
+ isWarn: t.rain3hThreshold === 1
212
+ };
213
+ case "20时至当前雨量": return {
214
+ value: p(t.rain20ToNow),
215
+ isWarn: !1
216
+ };
217
+ case "24小时雨量": return {
218
+ value: p(t.rain24h),
219
+ isWarn: !1
220
+ };
221
+ case "极大风速": return {
222
+ value: p(t.winSInstMax),
223
+ isWarn: !1
224
+ };
225
+ case "能见度": return {
226
+ value: p(t.visHor1mi),
227
+ isWarn: t.visHor1miThreshold === 1
228
+ };
229
+ case "最小能见度": return {
230
+ value: p(t.visMin),
231
+ isWarn: !1
232
+ };
233
+ default: return {
234
+ value: "",
235
+ isWarn: !1
236
+ };
237
+ }
238
+ })), w.value = (f || []).map((e) => {
239
+ let t = "";
240
+ if (e.datetime) {
241
+ let n = e.datetime.match(/(\d{2}):(\d{2}):\d{2}$/);
242
+ n && (t = `${n[1]}时${n[2]}分`);
243
+ }
244
+ let r = u.get(e.stationIdC), i = r ? p(r.ua) : "", a = r ? Number(r.ua) < Number(r.warning_ua) : !1;
245
+ return {
246
+ county: e.cnty || "",
247
+ station: e.stationName || "",
248
+ time: t,
249
+ rain24: p(e.rain24h),
250
+ rain24Warn: $(e.rain24h, q.value.rain24hMax),
251
+ rain20: p(e.rain20ToNow),
252
+ rain20Warn: $(e.rain20ToNow, q.value.rain20ToNowMax),
253
+ rain3: p(e.rain3h),
254
+ rain3Warn: $(e.rain3h, q.value.rain3hMax),
255
+ rain1: p(e.rain1h),
256
+ rain1Warn: $(e.rain1h, q.value.rain1hMax),
257
+ rainCurrent: p(e.currentHourRain),
258
+ rainCurrentWarn: $(e.currentHourRain, q.value.currentHourRainMax),
259
+ rain5m: p(e.rain5m),
260
+ rain5mWarn: $(e.rain5m, q.value.rain5mMax),
261
+ temp: p(e.tem),
262
+ tempWarn: $(e.tem, q.value.temMin, "min") || $(e.tem, q.value.temMax),
263
+ windDir: e.winDInstMax ? n(e.winDInstMax) : "",
264
+ windSpeed: p(e.winSInstMax),
265
+ windSpeedWarn: $(e.winSInstMax, q.value.windSpeedMax),
266
+ humidity: p(e.rhu),
267
+ humidityWarn: $(e.rhu, q.value.rhuMax),
268
+ pressure: p(e.prs),
269
+ pressureWarn: $(e.prs, q.value.prsMax),
270
+ _voltage: i,
271
+ _voltageWarn: a
272
+ };
273
+ }), setTimeout(() => {
274
+ i.value = !1;
275
+ }, 300);
276
+ }, Q = (e) => {
277
+ if (!e) return -1;
278
+ let t = e.match(/(\d+)时(\d+)分/);
279
+ return t ? Number(t[1]) * 60 + Number(t[2]) : -1;
280
+ }, $ = (e, t, n = "max") => {
281
+ if (e == null || e === "" || t == null || t === "") return !1;
282
+ let r = Number(e), i = Number(t);
283
+ return Number.isNaN(r) || Number.isNaN(i) ? !1 : n === "max" ? r > i : r < i;
284
+ }, Ne = (e, t) => t == null || t === "" ? "" : t, Pe = (e) => {
285
+ W.value === e ? G.value === "desc" ? G.value = "asc" : G.value === "asc" ? (W.value = null, G.value = null) : G.value = "desc" : (W.value = e, G.value = "desc");
286
+ }, Fe = () => {
287
+ let e = q.value;
288
+ X.value = {
289
+ rain24hMax: e.rain24hMax == null ? "" : String(e.rain24hMax),
290
+ rain20ToNowMax: e.rain20ToNowMax == null ? "" : String(e.rain20ToNowMax),
291
+ rain3hMax: e.rain3hMax == null ? "" : String(e.rain3hMax),
292
+ rain1hMax: e.rain1hMax == null ? "" : String(e.rain1hMax),
293
+ currentHourRainMax: e.currentHourRainMax == null ? "" : String(e.currentHourRainMax),
294
+ rain5mMax: e.rain5mMax == null ? "" : String(e.rain5mMax),
295
+ temMin: e.temMin == null ? "" : String(e.temMin),
296
+ temMax: e.temMax == null ? "" : String(e.temMax),
297
+ rhuMax: e.rhuMax == null ? "" : String(e.rhuMax),
298
+ prsMax: e.prsMax == null ? "" : String(e.prsMax),
299
+ windSpeedMax: e.windSpeedMax == null ? "" : String(e.windSpeedMax)
300
+ }, J.value = !0;
301
+ }, Ie = async () => {
302
+ for (let [e, t] of Object.entries(X.value)) if (!(t === "" || t == null) && Number.isNaN(Number(t))) {
303
+ D.warning("阈值必须为数字");
304
+ return;
305
+ }
306
+ let t = X.value.temMin, n = X.value.temMax;
307
+ if (t !== "" && t != null && n !== "" && n != null && Number(t) >= Number(n)) {
308
+ D.warning("最低气温需小于最高气温");
309
+ return;
310
+ }
311
+ Y.value = !0;
312
+ try {
313
+ let t = r.ids.YCRealTimeTable_saveThreshold;
314
+ if (!t?.id) {
315
+ D.warning("未配置保存阈值工作流");
316
+ return;
317
+ }
318
+ await e({
319
+ appKey: r.appKey,
320
+ appSalt: r.appSalt,
321
+ baseHttp: r.baseHttp,
322
+ id: t.id,
323
+ reqType: t.reqType,
324
+ isFormData: t.isFormData,
325
+ variables: {
326
+ id: 1,
327
+ ...X.value
328
+ }
329
+ }), D.success("阈值保存成功"), J.value = !1, await Z();
330
+ } catch {
331
+ D.error("阈值保存失败");
332
+ } finally {
333
+ Y.value = !1;
334
+ }
335
+ };
336
+ return ne(J, (e) => {
337
+ document.body.style.overflow = e ? "hidden" : "";
338
+ }), (e, t) => {
339
+ let n = o, r = s;
340
+ return E((y(), p("div", re, [
341
+ m("div", ie, [m("div", ae, [m("div", oe, [t[16] ||= m("div", { class: "summary-cell summary-cell-label" }, "监测要素", -1), (y(!0), p(c, null, x(a.value, (e, t) => (y(), p("div", {
342
+ class: "summary-cell",
343
+ key: t
344
+ }, S(e), 1))), 128))]), m("div", se, [(y(), p(c, null, x(g, (e, t) => m("div", {
345
+ class: "summary-row",
346
+ key: e
347
+ }, [m("div", ce, S(e), 1), (y(!0), p(c, null, x(a.value, (n, r) => (y(), p("div", {
348
+ class: _(["summary-cell", { "is-warn": C.value[t]?.[r]?.isWarn }]),
349
+ key: r
350
+ }, S(Ne(e, C.value[t]?.[r]?.value)), 3))), 128))])), 64))])])]),
351
+ m("div", le, [m("div", ue, [
352
+ m("button", {
353
+ class: _(["city-btn", { active: O.value }]),
354
+ onClick: t[0] ||= (e) => O.value = !O.value
355
+ }, "全市", 2),
356
+ h(n, {
357
+ modelValue: H.value,
358
+ "onUpdate:modelValue": t[1] ||= (e) => H.value = e,
359
+ placeholder: "县名搜索",
360
+ clearable: "",
361
+ class: "filter-input"
362
+ }, null, 8, ["modelValue"]),
363
+ h(n, {
364
+ modelValue: U.value,
365
+ "onUpdate:modelValue": t[2] ||= (e) => U.value = e,
366
+ placeholder: "站名搜索",
367
+ clearable: "",
368
+ class: "filter-input"
369
+ }, null, 8, ["modelValue"]),
370
+ m("button", {
371
+ class: "threshold-btn",
372
+ onClick: Fe
373
+ }, "设置阈值")
374
+ ])]),
375
+ m("div", de, [m("div", fe, [m("div", pe, [(y(), p(c, null, x(T, (e) => m("div", {
376
+ class: _(["detail-cell", {
377
+ "is-sortable": e.sortable,
378
+ "is-active": W.value === e.key
379
+ }]),
380
+ key: e.key,
381
+ onClick: (t) => e.sortable && Pe(e.key)
382
+ }, [ee(S(e.label) + " ", 1), e.sortable ? (y(), p("span", {
383
+ key: 0,
384
+ class: _(["sort-icon", W.value === e.key ? G.value : ""])
385
+ }, null, 2)) : f("", !0)], 10, k)), 64))]), m("div", A, [(y(!0), p(c, null, x(Me.value, (e, t) => (y(), p("div", {
386
+ class: "detail-row",
387
+ key: `${e.county}-${e.station}-${t}`
388
+ }, [
389
+ m("div", j, S(t + 1), 1),
390
+ m("div", M, S(e.county), 1),
391
+ m("div", N, S(e.station), 1),
392
+ m("div", P, S(e.time), 1),
393
+ m("div", { class: _(["detail-cell", { "is-warn": e.rain24Warn }]) }, S(e.rain24), 3),
394
+ m("div", { class: _(["detail-cell", { "is-warn": e.rain20Warn }]) }, S(e.rain20), 3),
395
+ m("div", { class: _(["detail-cell", { "is-warn": e.rain3Warn }]) }, S(e.rain3), 3),
396
+ m("div", { class: _(["detail-cell", { "is-warn": e.rain1Warn }]) }, S(e.rain1), 3),
397
+ m("div", { class: _(["detail-cell", { "is-warn": e.rainCurrentWarn }]) }, S(e.rainCurrent), 3),
398
+ m("div", { class: _(["detail-cell", { "is-warn": e.rain5mWarn }]) }, S(e.rain5m), 3),
399
+ m("div", { class: _(["detail-cell", { "is-warn": e.tempWarn }]) }, S(e.temp), 3),
400
+ m("div", F, S(e.windDir), 1),
401
+ m("div", { class: _(["detail-cell", { "is-warn": e.windSpeedWarn }]) }, S(e.windSpeed), 3),
402
+ m("div", { class: _(["detail-cell", { "is-warn": e.humidityWarn }]) }, S(e.humidity), 3),
403
+ m("div", { class: _(["detail-cell", { "is-warn": e.pressureWarn }]) }, S(e.pressure), 3),
404
+ m("div", { class: _(["detail-cell", { "is-warn": e._voltageWarn }]) }, S(e._voltage), 3)
405
+ ]))), 128))])])]),
406
+ (y(), d(l, { to: "body" }, [J.value ? (y(), p("div", I, [m("div", L, [
407
+ m("div", R, [t[17] ||= m("span", { class: "dialog-title" }, "阈值设置", -1), m("button", {
408
+ class: "dialog-close",
409
+ onClick: t[3] ||= (e) => J.value = !1
410
+ }, "×")]),
411
+ m("div", z, [
412
+ m("div", B, [t[24] ||= m("div", { class: "threshold-group-title" }, "降水量阈值(mm)", -1), m("div", me, [
413
+ m("div", he, [t[18] ||= m("label", { class: "threshold-label" }, "24小时雨量", -1), h(n, {
414
+ modelValue: X.value.rain24hMax,
415
+ "onUpdate:modelValue": t[4] ||= (e) => X.value.rain24hMax = e,
416
+ type: "number",
417
+ placeholder: "留空不判定"
418
+ }, null, 8, ["modelValue"])]),
419
+ m("div", ge, [t[19] ||= m("label", { class: "threshold-label" }, "20时至现在雨量", -1), h(n, {
420
+ modelValue: X.value.rain20ToNowMax,
421
+ "onUpdate:modelValue": t[5] ||= (e) => X.value.rain20ToNowMax = e,
422
+ type: "number",
423
+ placeholder: "留空不判定"
424
+ }, null, 8, ["modelValue"])]),
425
+ m("div", _e, [t[20] ||= m("label", { class: "threshold-label" }, "3小时雨量", -1), h(n, {
426
+ modelValue: X.value.rain3hMax,
427
+ "onUpdate:modelValue": t[6] ||= (e) => X.value.rain3hMax = e,
428
+ type: "number",
429
+ placeholder: "留空不判定"
430
+ }, null, 8, ["modelValue"])]),
431
+ m("div", ve, [t[21] ||= m("label", { class: "threshold-label" }, "1小时雨量", -1), h(n, {
432
+ modelValue: X.value.rain1hMax,
433
+ "onUpdate:modelValue": t[7] ||= (e) => X.value.rain1hMax = e,
434
+ type: "number",
435
+ placeholder: "留空不判定"
436
+ }, null, 8, ["modelValue"])]),
437
+ m("div", ye, [t[22] ||= m("label", { class: "threshold-label" }, "当前小时雨量", -1), h(n, {
438
+ modelValue: X.value.currentHourRainMax,
439
+ "onUpdate:modelValue": t[8] ||= (e) => X.value.currentHourRainMax = e,
440
+ type: "number",
441
+ placeholder: "留空不判定"
442
+ }, null, 8, ["modelValue"])]),
443
+ m("div", be, [t[23] ||= m("label", { class: "threshold-label" }, "5分钟降水量", -1), h(n, {
444
+ modelValue: X.value.rain5mMax,
445
+ "onUpdate:modelValue": t[9] ||= (e) => X.value.rain5mMax = e,
446
+ type: "number",
447
+ placeholder: "留空不判定"
448
+ }, null, 8, ["modelValue"])])
449
+ ])]),
450
+ m("div", xe, [t[27] ||= m("div", { class: "threshold-group-title" }, "气温阈值(℃)", -1), m("div", V, [m("div", Se, [t[25] ||= m("label", { class: "threshold-label" }, "最低气温", -1), h(n, {
451
+ modelValue: X.value.temMin,
452
+ "onUpdate:modelValue": t[10] ||= (e) => X.value.temMin = e,
453
+ type: "number",
454
+ placeholder: "留空不判定"
455
+ }, null, 8, ["modelValue"])]), m("div", Ce, [t[26] ||= m("label", { class: "threshold-label" }, "最高气温", -1), h(n, {
456
+ modelValue: X.value.temMax,
457
+ "onUpdate:modelValue": t[11] ||= (e) => X.value.temMax = e,
458
+ type: "number",
459
+ placeholder: "留空不判定"
460
+ }, null, 8, ["modelValue"])])])]),
461
+ m("div", we, [t[31] ||= m("div", { class: "threshold-group-title" }, "其他要素阈值", -1), m("div", Te, [
462
+ m("div", Ee, [t[28] ||= m("label", { class: "threshold-label" }, "湿度上限(%)", -1), h(n, {
463
+ modelValue: X.value.rhuMax,
464
+ "onUpdate:modelValue": t[12] ||= (e) => X.value.rhuMax = e,
465
+ type: "number",
466
+ placeholder: "留空不判定"
467
+ }, null, 8, ["modelValue"])]),
468
+ m("div", De, [t[29] ||= m("label", { class: "threshold-label" }, "气压上限(hPa)", -1), h(n, {
469
+ modelValue: X.value.prsMax,
470
+ "onUpdate:modelValue": t[13] ||= (e) => X.value.prsMax = e,
471
+ type: "number",
472
+ placeholder: "留空不判定"
473
+ }, null, 8, ["modelValue"])]),
474
+ m("div", Oe, [t[30] ||= m("label", { class: "threshold-label" }, "极大风速上限(m/s)", -1), h(n, {
475
+ modelValue: X.value.windSpeedMax,
476
+ "onUpdate:modelValue": t[14] ||= (e) => X.value.windSpeedMax = e,
477
+ type: "number",
478
+ placeholder: "留空不判定"
479
+ }, null, 8, ["modelValue"])])
480
+ ])]),
481
+ t[32] ||= m("div", { class: "threshold-tip" }, "留空表示该项不做阈值判定;等于阈值不告警。", -1)
482
+ ]),
483
+ m("div", ke, [m("button", {
484
+ class: "threshold-btn-cancel",
485
+ onClick: t[15] ||= (e) => J.value = !1
486
+ }, "取消"), m("button", {
487
+ class: "threshold-btn-save",
488
+ disabled: Y.value,
489
+ onClick: Ie
490
+ }, S(Y.value ? "保存中..." : "保存"), 9, Ae)])
491
+ ])])) : f("", !0)]))
492
+ ])), [[r, i.value]]);
493
+ };
494
+ }
495
+ }), [["__scopeId", "data-v-ff97e66c"]]), U = { class: "YCDataService" }, W = { class: "YCDataService-topbar" }, G = { class: "page-switch" }, K = {
496
+ key: 0,
497
+ class: "YCDataService-filter"
498
+ }, q = /* @__PURE__ */ t(/* @__PURE__ */ g({
499
+ __name: "YCDataService",
500
+ props: {
501
+ appKey: {
502
+ type: String,
503
+ default: ""
504
+ },
505
+ appSalt: {
506
+ type: String,
507
+ default: ""
508
+ },
509
+ baseHttp: {
510
+ type: String,
511
+ default: ""
512
+ },
513
+ ids: {
514
+ type: Object,
515
+ default: () => ({})
516
+ }
517
+ },
518
+ setup(e) {
519
+ let t = b("dataService"), n = b((/* @__PURE__ */ new Date()).toISOString().slice(0, 10)), o = b(null), s = () => {
520
+ o.value?.handleSearch?.();
521
+ };
522
+ v(() => {
523
+ c();
524
+ });
525
+ let c = async () => {};
526
+ return (c, l) => {
527
+ let u = a, d = i;
528
+ return y(), p("div", U, [
529
+ m("div", W, [m("div", G, [m("div", {
530
+ class: _(["page-switch-item", { active: t.value === "dataService" }]),
531
+ onClick: l[0] ||= (e) => t.value = "dataService"
532
+ }, " 数据服务 ", 2), m("div", {
533
+ class: _(["page-switch-item", { active: t.value === "dataMonitor" }]),
534
+ onClick: l[1] ||= (e) => t.value = "dataMonitor"
535
+ }, " 数据质量检查 ", 2)]), t.value === "dataMonitor" ? (y(), p("div", K, [h(d, { locale: C(O) }, {
536
+ default: T(() => [h(u, {
537
+ modelValue: n.value,
538
+ "onUpdate:modelValue": l[2] ||= (e) => n.value = e,
539
+ type: "date",
540
+ placeholder: "选择日期",
541
+ "value-format": "YYYY-MM-DD",
542
+ class: "date-picker"
543
+ }, null, 8, ["modelValue"])]),
544
+ _: 1
545
+ }, 8, ["locale"]), m("button", {
546
+ class: "search-btn",
547
+ onClick: s
548
+ }, "查询")])) : f("", !0)]),
549
+ E(h(H, {
550
+ appKey: e.appKey,
551
+ appSalt: e.appSalt,
552
+ baseHttp: e.baseHttp,
553
+ ids: e.ids
554
+ }, null, 8, [
555
+ "appKey",
556
+ "appSalt",
557
+ "baseHttp",
558
+ "ids"
559
+ ]), [[w, t.value === "dataService"]]),
560
+ E(h(r, {
561
+ ref_key: "dataMonitorRef",
562
+ ref: o,
563
+ appKey: e.appKey,
564
+ appSalt: e.appSalt,
565
+ baseHttp: e.baseHttp,
566
+ ids: e.ids,
567
+ date: n.value
568
+ }, null, 8, [
569
+ "appKey",
570
+ "appSalt",
571
+ "baseHttp",
572
+ "ids",
573
+ "date"
574
+ ]), [[w, t.value === "dataMonitor"]])
575
+ ]);
576
+ };
577
+ }
578
+ }), [["__scopeId", "data-v-7ea3b34c"]]);
579
+ //#endregion
580
+ export { q as t };
@@ -1,5 +1,5 @@
1
- import "./component-AqiMonitor-BJXlyOxH.mjs";
2
- import { g as e, p as t } from "./component-Agent-CAxRiXVu.mjs";
1
+ import "./component-AqiMonitor-CiRH3KK9.mjs";
2
+ import { g as e, p as t } from "./component-Agent-DwXtdLhK.mjs";
3
3
  import { createElementBlock as n, createElementVNode as r, createTextVNode as i, defineComponent as a, onBeforeUnmount as o, onMounted as s, openBlock as c, ref as l, toDisplayString as u } from "vue";
4
4
  //#region src/components/YCHighWaySummary/YCHighWaySummary.vue?vue&type=script&setup=true&lang.ts
5
5
  var d = { class: "YCHighWaySummary" }, f = { class: "YCHighWaySummary__body" }, p = { class: "YCHighWaySummary__section" }, m = /* @__PURE__ */ t(/* @__PURE__ */ a({
@@ -1,7 +1,7 @@
1
- import { g as e, p as t } from "./component-Agent-CAxRiXVu.mjs";
2
- import "./component-Forecast72h-BDEacrN0.mjs";
3
- import { n } from "./component-AiChat-go3CScRo.mjs";
4
- import { n as r } from "./component-LithiumBatteryMiningArea-Cypkj4BH.mjs";
1
+ import { g as e, p as t } from "./component-Agent-DwXtdLhK.mjs";
2
+ import "./component-Forecast72h-CD6eT1xe.mjs";
3
+ import { n } from "./component-AiChat-Cj1xCAtL.mjs";
4
+ import { n as r } from "./component-LithiumBatteryMiningArea-BDFvxMfk.mjs";
5
5
  import { ElButton as i, ElDialog as ee, ElForm as te, ElFormItem as ne, ElIcon as re, ElInput as ie } from "element-plus/es";
6
6
  import { Fragment as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createStaticVNode as u, createTextVNode as d, createVNode as f, normalizeClass as p, normalizeStyle as ae, 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, withKeys as oe, withModifiers as se } from "vue";
7
7
  import { ArrowLeft as ce, ArrowRight as le, Lock as ue, User as de } from "@element-plus/icons-vue";
@@ -1,5 +1,5 @@
1
- import "./component-AqiMonitor-BJXlyOxH.mjs";
2
- import { p as e } from "./component-Agent-CAxRiXVu.mjs";
1
+ import "./component-AqiMonitor-CiRH3KK9.mjs";
2
+ import { p as e } from "./component-Agent-DwXtdLhK.mjs";
3
3
  import { createElementBlock as t, createElementVNode as n, createStaticVNode as r, onMounted as i, openBlock as a } from "vue";
4
4
  //#endregion
5
5
  //#region src/components/YCHomeLegend/YCHomeLegend.vue
@@ -1,5 +1,5 @@
1
- import { _ as e, g as t, p as n, y as r } from "./component-Agent-CAxRiXVu.mjs";
2
- import { n as i } from "./component-LithiumBatteryMiningArea-Cypkj4BH.mjs";
1
+ import { _ as e, g as t, p as n, y as r } from "./component-Agent-DwXtdLhK.mjs";
2
+ import { n as i } from "./component-LithiumBatteryMiningArea-BDFvxMfk.mjs";
3
3
  import { ElButton as ee, ElForm as a, ElFormItem as o, ElIcon as s, ElInput as te } from "element-plus/es";
4
4
  import { Fragment as ne, createBlock as c, createElementBlock as l, createElementVNode as u, createTextVNode as re, createVNode as d, defineComponent as f, onBeforeUnmount as p, onMounted as ie, openBlock as m, reactive as h, ref as g, renderList as _, toDisplayString as v, unref as y, withCtx as b, withKeys as ae } from "vue";
5
5
  import { Lock as x, Message as oe, Platform as se, User as S } from "@element-plus/icons-vue";