nxd-plugin 1.8.47 → 1.8.49

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.
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./component-YCServiceSummary-_qQSJu5H.mjs";
2
+ export { e as default };
@@ -62,6 +62,7 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
62
62
  },
63
63
  emits: [
64
64
  "close",
65
+ "toComponent",
65
66
  "addMarker",
66
67
  "clearMarker",
67
68
  "addPolygon",
@@ -530,7 +531,12 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
530
531
  qt();
531
532
  }), x(U, () => {
532
533
  Nt();
533
- }, { immediate: !0 }), x(L, (e) => {
534
+ }, { immediate: !0 }), x(U, (e) => {
535
+ e?.category_id && w("toComponent", {
536
+ componentName: "HdServiceMarterial",
537
+ categoryId: e.category_id
538
+ });
539
+ }), x(L, (e) => {
534
540
  e === "chart" && m(() => Z());
535
541
  }), x(R, () => {
536
542
  L.value === "chart" && m(() => Z());
@@ -695,6 +701,6 @@ var ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAA
695
701
  ])), [[_, T.value]]);
696
702
  };
697
703
  }
698
- }), [["__scopeId", "data-v-ba38fdbc"]]);
704
+ }), [["__scopeId", "data-v-e987c655"]]);
699
705
  //#endregion
700
706
  export { ut as t };
@@ -107,11 +107,19 @@ var re = {
107
107
  } finally {
108
108
  F.value = !1;
109
109
  }
110
+ }, Ce = (e) => {
111
+ if (e?.componentName === "HdServiceMarterial") {
112
+ if (e.categoryId) {
113
+ let t = P.value.find((t) => String(t.id) === String(e.categoryId));
114
+ if (!t) return;
115
+ B.value = t.id, Q();
116
+ return;
117
+ }
118
+ $();
119
+ }
110
120
  };
111
121
  return v(() => {
112
- j?.on("toComponent", (e) => {
113
- e.componentName === "HdServiceMarterial" && $();
114
- }), $();
122
+ j?.on("toComponent", Ce), $();
115
123
  }), (e, t) => {
116
124
  let u = n, g = r, _ = a, v = o, b = ee, j = s, M = i;
117
125
  return T((y(), p("div", re, [
@@ -239,6 +247,6 @@ var re = {
239
247
  ])), [[M, F.value]]);
240
248
  };
241
249
  }
242
- }), [["__scopeId", "data-v-8ff5c020"]]);
250
+ }), [["__scopeId", "data-v-89520b3a"]]);
243
251
  //#endregion
244
252
  export { j as t };
@@ -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 };