nxd-plugin 1.7.97 → 1.7.99

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 (123) hide show
  1. package/dist/chunks/{component-AiChat-CMbG8e28.mjs → component-AiChat-B2YoRfzz.mjs} +1 -1
  2. package/dist/chunks/{component-AqiMonitor-CVb99opd.mjs → component-AqiMonitor-DWhSDKFM.mjs} +1 -1
  3. package/dist/chunks/{component-ChartCumulativePre-DbbqXqZE.mjs → component-ChartCumulativePre-CYVahvTN.mjs} +2 -2
  4. package/dist/chunks/{component-ChartServiceMaterial-hU5a_G6w.mjs → component-ChartServiceMaterial-CbiB7503.mjs} +2 -2
  5. package/dist/chunks/{component-Duty-BCW6ohuO.mjs → component-Duty-CxH58EY9.mjs} +2 -2
  6. package/dist/chunks/{component-EarlyWarningStatistic-DSp82HGZ.mjs → component-EarlyWarningStatistic-BsgcJent.mjs} +2 -2
  7. package/dist/chunks/{component-EarlyWarningStatistic2-DmHCmtaq.mjs → component-EarlyWarningStatistic2-CEnr2SX2.mjs} +2 -2
  8. package/dist/chunks/component-Forecast72h-6g0PcT0B.mjs +539 -0
  9. package/dist/chunks/{component-GeologyLiveAlarm-0P99V7KX.mjs → component-GeologyLiveAlarm-CzEt43gy.mjs} +2 -2
  10. package/dist/chunks/component-GridForecastMsg-B1CCDv2Y.mjs +203 -0
  11. package/dist/chunks/{component-HDSeaLegend-BSGtGcnh.mjs → component-HDSeaLegend-B2xekirw.mjs} +1 -1
  12. package/dist/chunks/component-HdCameraList-CEOhupnQ.mjs +393 -0
  13. package/dist/chunks/{component-HdForecastProducts-_2ttNo-z.mjs → component-HdForecastProducts-DaeNeMiI.mjs} +2 -2
  14. package/dist/chunks/component-HdHeatChart-DiG-hplN.mjs +372 -0
  15. package/dist/chunks/component-HdHeatChartDialog-C1tPPcVw.mjs +590 -0
  16. package/dist/chunks/component-HdHeatService-UxyMUQp4.mjs +480 -0
  17. package/dist/chunks/component-HdInsectDetailList-BiVgf4Nc.mjs +266 -0
  18. package/dist/chunks/component-HdInsectList-CToVsJiF.mjs +328 -0
  19. package/dist/chunks/{component-HdObservation-DV1mfQsB.mjs → component-HdObservation-BV5jDCZt.mjs} +44 -45
  20. package/dist/chunks/{component-HdPreSituation-DY6gsT_y.mjs → component-HdPreSituation-DY4j43V7.mjs} +6 -6
  21. package/dist/chunks/component-HdQxServiceEffects-DM-KlAru.mjs +262 -0
  22. package/dist/chunks/{component-HdRadarList-BQ1MH8GG.mjs → component-HdRadarList-BdXRt42m.mjs} +3 -3
  23. package/dist/chunks/{component-HdRadarTime-D7ySMzpg.mjs → component-HdRadarTime-OAbsHPlS.mjs} +2 -2
  24. package/dist/chunks/component-HdRisk-tQq0onmA.mjs +236 -0
  25. package/dist/chunks/component-HdSeaCase-DoWAhrNy.mjs +239 -0
  26. package/dist/chunks/{component-HdServiceMarterial-BgIt-ELd.mjs → component-HdServiceMarterial-nCfTCfyI.mjs} +77 -77
  27. package/dist/chunks/{component-HdServiceRequirements-B83V-lQN.mjs → component-HdServiceRequirements-S9zSof01.mjs} +45 -45
  28. package/dist/chunks/component-HdSoil-tr6IWswf.mjs +350 -0
  29. package/dist/chunks/component-HdSoilDetailList-DG-TzCl0.mjs +402 -0
  30. package/dist/chunks/{component-HdStationTem-DdMSzVEC.mjs → component-HdStationTem-DrPBR7fV.mjs} +77 -78
  31. package/dist/chunks/{component-HdSuggestion-CrvAGw81.mjs → component-HdSuggestion-DQO0InyO.mjs} +3 -3
  32. package/dist/chunks/component-HdThreeWeatherTrend-CElSAKJs.mjs +333 -0
  33. package/dist/chunks/component-HdWaveForcast-D3Hm8Dg3.mjs +241 -0
  34. package/dist/chunks/{component-HighQuality-Bsqgp8R-.mjs → component-HighQuality-C_W_iOrU.mjs} +7 -7
  35. package/dist/chunks/{component-HighWayEarlyWarningRed-D0uKUK3B.mjs → component-HighWayEarlyWarningRed-D5iSGN5l.mjs} +2 -2
  36. package/dist/chunks/{component-HighWayFreeze-sGJddgnr.mjs → component-HighWayFreeze-B9v5Z9Yd.mjs} +2 -2
  37. package/dist/chunks/{component-HighwayLiveAlarm-Wm2rCVBb.mjs → component-HighwayLiveAlarm-DjcOZUJv.mjs} +2 -2
  38. package/dist/chunks/{component-HighwayLiveAlarmNew-YjS0FM1d.mjs → component-HighwayLiveAlarmNew-C35RKvL1.mjs} +3 -3
  39. package/dist/chunks/{component-HighwayStations-DRfDmHmK.mjs → component-HighwayStations-U_rU4hJi.mjs} +2 -2
  40. package/dist/chunks/{component-HighwayWeatherForecast-Cp50--Dj.mjs → component-HighwayWeatherForecast-BD547juJ.mjs} +4 -4
  41. package/dist/chunks/{component-IframeWeb-HpaTePnW.mjs → component-IframeWeb-DMn6K9zk.mjs} +1 -1
  42. package/dist/chunks/{component-ImageGeneration-zj2WbvzB.mjs → component-ImageGeneration-BFSnXOdZ.mjs} +2 -2
  43. package/dist/chunks/{component-IntroducePic-BxDMkIyJ.mjs → component-IntroducePic-BmvED_mB.mjs} +2 -2
  44. package/dist/chunks/{component-LithiumBatteryMiningArea-BC05EqiO.mjs → component-LithiumBatteryMiningArea-BM_8uVPy.mjs} +2 -2
  45. package/dist/chunks/{component-MapPopup-DYsV0ICP.mjs → component-MapPopup-CRQjbIZT.mjs} +1 -1
  46. package/dist/chunks/{component-MaterialPreview-DJhj0Gh9.mjs → component-MaterialPreview-Dmg4LG8h.mjs} +2 -2
  47. package/dist/chunks/{component-PieLegend-BsDM9oA_.mjs → component-PieLegend-B90e9FMW.mjs} +1 -1
  48. package/dist/chunks/{component-PrecipitationRanking-B7gEEuCe.mjs → component-PrecipitationRanking-BamBChop.mjs} +9 -9
  49. package/dist/chunks/{component-RadarChart-V_2K97Yw.mjs → component-RadarChart-DrQnSK2_.mjs} +2 -2
  50. package/dist/chunks/{component-RadarLegend-DwjhHZ-N.mjs → component-RadarLegend-UaQXwEdl.mjs} +1 -1
  51. package/dist/chunks/{component-RadarShortTerm-aF13_Zcy.mjs → component-RadarShortTerm-B6DiXwjj.mjs} +4 -4
  52. package/dist/chunks/{component-RadarTime-ZN7o47Mu.mjs → component-RadarTime-CrWj-oVD.mjs} +2 -2
  53. package/dist/chunks/{component-RenderMarkdown-BX-kHqL2.mjs → component-RenderMarkdown-CSoLEsFv.mjs} +2 -2
  54. package/dist/chunks/{component-ReservoirLiveAlarm-WVVwwKYZ.mjs → component-ReservoirLiveAlarm-CJUDC3QW.mjs} +3 -3
  55. package/dist/chunks/{component-ServiceMaterial-9imbipjj.mjs → component-ServiceMaterial-DR7imvMZ.mjs} +2 -2
  56. package/dist/chunks/{component-ServiceMaterialsBtn-693xq1p7.mjs → component-ServiceMaterialsBtn-BWxBKKWn.mjs} +1 -1
  57. package/dist/chunks/{component-StationDialog-C859f8A-.mjs → component-StationDialog-2KObsuJ8.mjs} +4 -4
  58. package/dist/chunks/{component-StationList-BQHnyqox.mjs → component-StationList-CJ7XHlZl.mjs} +10 -14
  59. package/dist/chunks/{component-TimeBasedForecast-DH-OHwXc.mjs → component-TimeBasedForecast-B2ewC_QX.mjs} +4 -4
  60. package/dist/chunks/{component-Typhoon-C6jT8EFX.mjs → component-Typhoon-BQQCoEbU.mjs} +2 -2
  61. package/dist/chunks/{component-WarningLine-D3aVWmUZ.mjs → component-WarningLine-9Y5OJRig.mjs} +2 -2
  62. package/dist/chunks/{component-WarningSignal-CEe242B5.mjs → component-WarningSignal-uXiAUGTl.mjs} +3 -3
  63. package/dist/chunks/{component-WeatherForecast-BfqfB6UO.mjs → component-WeatherForecast-BIeLjzMw.mjs} +4 -4
  64. package/dist/chunks/{component-YCDataMonitor-DROgvkZ-.mjs → component-YCDataMonitor-D8jFTVaA.mjs} +2 -2
  65. package/dist/chunks/{component-YCDataService-BM5kQwax.mjs → component-YCDataService--R26h5UL.mjs} +4 -4
  66. package/dist/chunks/{component-YCHighWaySummary-Bh0IXiDd.mjs → component-YCHighWaySummary-CeYp4g4j.mjs} +2 -2
  67. package/dist/chunks/{component-YCHome-DwYK1Re4.mjs → component-YCHome-DQSDzxCG.mjs} +4 -4
  68. package/dist/chunks/{component-YCHomeLegend-BadxwkzL.mjs → component-YCHomeLegend-DiFftuY3.mjs} +1 -1
  69. package/dist/chunks/{component-YCLoginNew-D5u2lDWS.mjs → component-YCLoginNew-CFJSyKfV.mjs} +3 -3
  70. package/dist/components/Forecast72h/Forecast72h.vue.d.ts +2 -23
  71. package/dist/components/GridForecastMsg/GridForecastMsg.vue.d.ts +24 -0
  72. package/dist/components/HdCameraList/HdCameraList.vue.d.ts +6 -0
  73. package/dist/components/HdHeatChart/HdHeatChart.vue.d.ts +44 -0
  74. package/dist/components/HdHeatChart/mockData.d.ts +12 -0
  75. package/dist/components/HdHeatChartDialog/HdHeatChartDialog.vue.d.ts +52 -0
  76. package/dist/components/HdHeatChartDialog/mockData.d.ts +23 -0
  77. package/dist/components/HdHeatService/HdHeatService.vue.d.ts +8 -20
  78. package/dist/components/HdInsectDetailList/HdInsectDetailList.vue.d.ts +22 -0
  79. package/dist/components/HdInsectList/HdInsectList.vue.d.ts +57 -0
  80. package/dist/components/HdRisk/HdRisk.vue.d.ts +61 -0
  81. package/dist/components/HdSeaCase/HdSeaCase.vue.d.ts +4 -24
  82. package/dist/components/HdSoil/HdSoil.vue.d.ts +55 -0
  83. package/dist/components/HdSoilDetailList/HdSoilDetailList.vue.d.ts +30 -0
  84. package/dist/components/HdThreeWeatherTrend/HdThreeWeatherTrend.vue.d.ts +2 -20
  85. package/dist/components/HdWaveForcast/HdWaveForcast.vue.d.ts +4 -20
  86. package/dist/components/StationList/StationList.vue.d.ts +2 -2
  87. package/dist/index.d.ts +9 -1
  88. package/dist/nxd-plugin.mjs +70 -61
  89. package/dist/styles/component-Forecast72h.css +1 -1
  90. package/dist/styles/component-GridForecastMsg.css +1 -0
  91. package/dist/styles/component-HDSeaLegend.css +1 -1
  92. package/dist/styles/component-HdCameraList.css +1 -1
  93. package/dist/styles/component-HdForecastProducts.css +1 -1
  94. package/dist/styles/component-HdHeatChart.css +1 -0
  95. package/dist/styles/component-HdHeatChartDialog.css +1 -0
  96. package/dist/styles/component-HdHeatService.css +1 -1
  97. package/dist/styles/component-HdInsectDetailList.css +1 -0
  98. package/dist/styles/component-HdInsectList.css +1 -0
  99. package/dist/styles/component-HdObservation.css +1 -1
  100. package/dist/styles/component-HdPreSituation.css +1 -1
  101. package/dist/styles/component-HdQxServiceEffects.css +1 -0
  102. package/dist/styles/component-HdRadarList.css +1 -1
  103. package/dist/styles/component-HdRisk.css +1 -0
  104. package/dist/styles/component-HdSeaCase.css +1 -1
  105. package/dist/styles/component-HdServiceMarterial.css +1 -1
  106. package/dist/styles/component-HdServiceRequirements.css +1 -1
  107. package/dist/styles/component-HdSoil.css +1 -0
  108. package/dist/styles/component-HdSoilDetailList.css +1 -0
  109. package/dist/styles/component-HdStationTem.css +1 -1
  110. package/dist/styles/component-HdSuggestion.css +1 -1
  111. package/dist/styles/component-HdThreeWeatherTrend.css +1 -1
  112. package/dist/styles/component-HdWaveForcast.css +1 -1
  113. package/dist/styles/component-HighQuality.css +1 -1
  114. package/dist/styles/component-PrecipitationRanking.css +1 -1
  115. package/dist/styles/component-StationList.css +1 -1
  116. package/dist/styles/component-YCLoginNew.css +1 -1
  117. package/package.json +1 -1
  118. package/dist/chunks/component-Forecast72h-hi7bHW_J.mjs +0 -543
  119. package/dist/chunks/component-HdCameraList-Cz1OYJEN.mjs +0 -332
  120. package/dist/chunks/component-HdHeatService-BKK-w3Xc.mjs +0 -412
  121. package/dist/chunks/component-HdSeaCase-wnGV704s.mjs +0 -219
  122. package/dist/chunks/component-HdThreeWeatherTrend-Deliswz6.mjs +0 -394
  123. package/dist/chunks/component-HdWaveForcast-CL4Ghg7T.mjs +0 -271
@@ -0,0 +1,402 @@
1
+ import { n as e } from "./component-AqiMonitor-DWhSDKFM.mjs";
2
+ import { r as t } from "./component-AiChat-B2YoRfzz.mjs";
3
+ import { ElConfigProvider as n, ElDatePicker as r, ElLoadingDirective as i, ElTable as a, ElTableColumn as ee } from "element-plus/es";
4
+ import { Fragment as o, Teleport as te, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, getCurrentInstance as m, nextTick as h, normalizeClass as g, onBeforeUnmount as _, onMounted as v, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as ne, watch as C, withCtx as w, withDirectives as T } from "vue";
5
+ import * as re from "echarts";
6
+ import { ElMessage as E } from "element-plus";
7
+ import ie from "element-plus/es/locale/lang/zh-cn.mjs";
8
+ //#region src/components/HdSoilDetailList/HdSoilDetailList.vue?vue&type=script&setup=true&lang.ts
9
+ var D = {
10
+ key: 0,
11
+ class: "HdSoilDetailList"
12
+ }, O = { class: "HdSoilDetailList-panel" }, k = { class: "HdSoilDetailList-header" }, A = { class: "HdSoilDetailList-title" }, j = { class: "HdSoilDetailList-filter" }, ae = {
13
+ key: 0,
14
+ class: "HdSoilDetailList-elementWrap"
15
+ }, oe = { class: "HdSoilDetailList-elementTabs" }, se = ["onClick"], ce = { class: "HdSoilDetailList-modeWrap" }, le = { class: "HdSoilDetailList-body" }, ue = "#f53f3f", M = /* @__PURE__ */ e(/* @__PURE__ */ p({
16
+ __name: "HdSoilDetailList",
17
+ props: {
18
+ mock: {
19
+ type: Boolean,
20
+ default: !1
21
+ },
22
+ baseHttp: { default: "" },
23
+ tableHeight: { default: "56vh" },
24
+ appKey: { default: "" },
25
+ appSalt: { default: "" },
26
+ ids: { default: () => ({}) },
27
+ refreshInterval: { default: 0 }
28
+ },
29
+ emits: ["close"],
30
+ setup(e, { emit: p }) {
31
+ let M = e, de = p, N = m()?.appContext.config.globalProperties.$bus, P = b(!1), F = b(!1), I = b(""), L = b(""), R = b([]), z = b("table"), B = b(null), V = null, H = /* @__PURE__ */ new Date(), fe = /* @__PURE__ */ new Date(H.getTime() - 10080 * 60 * 1e3), U = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")} ${String(e.getHours()).padStart(2, "0")}:${String(e.getMinutes()).padStart(2, "0")}:${String(e.getSeconds()).padStart(2, "0")}`, W = b([U(new Date(fe.setHours(0, 0, 0, 0))), U(new Date(H.setHours(23, 59, 59, 0)))]), pe = s(() => W.value?.[0] || ""), me = s(() => W.value?.[1] || ""), G = [
32
+ {
33
+ label: "10cm(%RH)",
34
+ prop: "soilHumidity1"
35
+ },
36
+ {
37
+ label: "20cm(%RH)",
38
+ prop: "soilHumidity2"
39
+ },
40
+ {
41
+ label: "30cm(%RH)",
42
+ prop: "soilHumidity3"
43
+ },
44
+ {
45
+ label: "40cm(%RH)",
46
+ prop: "soilHumidity4"
47
+ },
48
+ {
49
+ label: "50cm(%RH)",
50
+ prop: "soilHumidity5"
51
+ }
52
+ ], K = [
53
+ {
54
+ label: "10cm(℃)",
55
+ prop: "soilTemperature1"
56
+ },
57
+ {
58
+ label: "20cm(℃)",
59
+ prop: "soilTemperature2"
60
+ },
61
+ {
62
+ label: "30cm(℃)",
63
+ prop: "soilTemperature3"
64
+ },
65
+ {
66
+ label: "40cm(℃)",
67
+ prop: "soilTemperature4"
68
+ },
69
+ {
70
+ label: "50cm(℃)",
71
+ prop: "soilTemperature5"
72
+ }
73
+ ], q = b("humidity"), he = [
74
+ {
75
+ label: "土壤湿度(%)",
76
+ value: "humidity"
77
+ },
78
+ {
79
+ label: "土壤温度(℃)",
80
+ value: "temperature"
81
+ },
82
+ {
83
+ label: "EC值(S/cm)",
84
+ value: "ec"
85
+ },
86
+ {
87
+ label: "PH值(ph)",
88
+ value: "ph"
89
+ }
90
+ ], J = [
91
+ "#f7dc6f",
92
+ "#05ddfa",
93
+ "#a855f7",
94
+ "#7ed321",
95
+ "#165dff"
96
+ ], ge = () => {
97
+ let e = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date(e.getTime() - 10080 * 60 * 1e3);
98
+ W.value = [U(new Date(t.setHours(0, 0, 0, 0))), U(new Date(e.setHours(23, 59, 59, 0)))];
99
+ }, _e = () => {
100
+ P.value = !1, V?.dispose(), V = null, de("close");
101
+ }, Y = (e) => {
102
+ let t = e?.data?.result?.output;
103
+ if (typeof t == "string") try {
104
+ let e = JSON.parse(t);
105
+ return Array.isArray(e.data || e.chartData) ? e.data || e.chartData : [];
106
+ } catch {
107
+ return console.error("HdSoilDetailList output JSON 解析失败", t), [];
108
+ }
109
+ return Array.isArray(t) ? t : [];
110
+ }, ve = (e) => Array.isArray(e) ? e.map((e) => ({
111
+ monitorTime: e.monitorTime || e.dateTime || e.time || e.dataTime || "",
112
+ warningStatus: e.warningStatus || e.earlyWarnState || e.warning || "-",
113
+ soilHumidity1: e.soilHumidity1 ?? e.soil_humidity_1 ?? "-",
114
+ soilHumidity2: e.soilHumidity2 ?? e.soil_humidity_2 ?? "-",
115
+ soilHumidity3: e.soilHumidity3 ?? e.soil_humidity_3 ?? "-",
116
+ soilHumidity4: e.soilHumidity4 ?? e.soil_humidity_4 ?? "-",
117
+ soilHumidity5: e.soilHumidity5 ?? e.soil_humidity_5 ?? "-",
118
+ soilTemperature1: e.soilTemperature1 ?? e.soil_temperature_1 ?? "-",
119
+ soilTemperature2: e.soilTemperature2 ?? e.soil_temperature_2 ?? "-",
120
+ soilTemperature3: e.soilTemperature3 ?? e.soil_temperature_3 ?? "-",
121
+ soilTemperature4: e.soilTemperature4 ?? e.soil_temperature_4 ?? "-",
122
+ soilTemperature5: e.soilTemperature5 ?? e.soil_temperature_5 ?? "-",
123
+ soilPh: e.soilPh ?? e.soil_ph ?? e.ph ?? "-",
124
+ soilEc: e.soilEc ?? e.soil_ec ?? e.ec ?? "-"
125
+ })) : [], X = async () => {
126
+ if (M.mock) return;
127
+ let e = M.ids?.data;
128
+ if (!e?.id) {
129
+ console.warn("HdSoilDetailList 缺少数据工作流配置");
130
+ return;
131
+ }
132
+ F.value = !0;
133
+ try {
134
+ R.value = ve(Y(await t({
135
+ id: e.id,
136
+ baseHttp: M.baseHttp,
137
+ reqType: e.reqType,
138
+ variables: {
139
+ msCode: I.value,
140
+ startTime: pe.value,
141
+ endTime: me.value
142
+ },
143
+ isFormData: e.isFormData,
144
+ appKey: M.appKey,
145
+ appSalt: M.appSalt
146
+ }))), z.value === "chart" && h(() => Q());
147
+ } catch (e) {
148
+ console.error("HdSoilDetailList 调用工作流接口失败", e), E.error("数据加载失败");
149
+ } finally {
150
+ F.value = !1;
151
+ }
152
+ }, Z = (e) => {
153
+ let t = Number(e);
154
+ return e !== "" && e != null && !isNaN(t) ? t : null;
155
+ }, ye = (e, t) => Z(t === "humidity" ? e.soilHumidity1 : t === "temperature" ? e.soilTemperature1 : t === "ec" ? e.soilEc : e.soilPh), Q = () => {
156
+ if (!B.value) return;
157
+ V &&= (V.dispose(), null), V = re.init(B.value);
158
+ let e = R.value.map((e) => e.monitorTime), t = q.value, n = [
159
+ "10厘米",
160
+ "20厘米",
161
+ "30厘米",
162
+ "40厘米",
163
+ "50厘米"
164
+ ], r = [];
165
+ t === "humidity" ? G.forEach((e, t) => {
166
+ r.push({
167
+ name: n[t],
168
+ type: "line",
169
+ smooth: !0,
170
+ data: R.value.map((t) => Z(t[e.prop])),
171
+ itemStyle: { color: J[t] }
172
+ });
173
+ }) : t === "temperature" ? K.forEach((e, t) => {
174
+ r.push({
175
+ name: n[t],
176
+ type: "line",
177
+ smooth: !0,
178
+ data: R.value.map((t) => Z(t[e.prop])),
179
+ itemStyle: { color: J[t] }
180
+ });
181
+ }) : t === "ec" ? r.push({
182
+ name: "EC值(S/cm)",
183
+ type: "line",
184
+ smooth: !0,
185
+ data: R.value.map((e) => Z(e.soilEc)),
186
+ itemStyle: { color: "#00b42a" }
187
+ }) : r.push({
188
+ name: "PH值(ph)",
189
+ type: "line",
190
+ smooth: !0,
191
+ data: R.value.map((e) => Z(e.soilPh)),
192
+ itemStyle: { color: "#a855f7" }
193
+ });
194
+ let i = R.value.map((e, n) => e.warningStatus === "有" ? [n, ye(e, t)] : null).filter((e) => e !== null && e[1] !== null);
195
+ i.length && r.push({
196
+ name: "预警",
197
+ type: "scatter",
198
+ data: i,
199
+ symbolSize: 10,
200
+ itemStyle: { color: ue }
201
+ });
202
+ let a = {
203
+ backgroundColor: "transparent",
204
+ tooltip: { trigger: "axis" },
205
+ legend: {
206
+ textStyle: { color: "#fff" },
207
+ top: 8
208
+ },
209
+ grid: {
210
+ left: 48,
211
+ right: 48,
212
+ top: 56,
213
+ bottom: 72,
214
+ containLabel: !0
215
+ },
216
+ xAxis: {
217
+ type: "category",
218
+ data: e,
219
+ axisLine: { lineStyle: { color: "rgba(255,255,255,0.3)" } },
220
+ axisLabel: {
221
+ color: "rgba(255,255,255,0.8)",
222
+ rotate: 30
223
+ }
224
+ },
225
+ yAxis: {
226
+ type: "value",
227
+ name: {
228
+ humidity: "湿度(%RH)",
229
+ temperature: "温度(℃)",
230
+ ec: "EC值(S/cm)",
231
+ ph: "PH值(ph)"
232
+ }[t],
233
+ nameTextStyle: { color: "#05ddfa" },
234
+ axisLine: { lineStyle: { color: "rgba(255,255,255,0.3)" } },
235
+ axisLabel: { color: "rgba(255,255,255,0.8)" },
236
+ splitLine: { show: !1 }
237
+ },
238
+ series: r
239
+ };
240
+ V.setOption(a);
241
+ }, be = () => {
242
+ if (!R.value.length) {
243
+ E.warning("暂无数据可下载");
244
+ return;
245
+ }
246
+ let e = [[
247
+ "序号",
248
+ "监测时间",
249
+ "预警情况",
250
+ ...G.map((e) => e.label),
251
+ ...K.map((e) => e.label),
252
+ "PH值(ph)",
253
+ "EC值(S/cm)"
254
+ ], ...R.value.map((e, t) => [
255
+ t + 1,
256
+ e.monitorTime,
257
+ e.warningStatus,
258
+ e.soilHumidity1,
259
+ e.soilHumidity2,
260
+ e.soilHumidity3,
261
+ e.soilHumidity4,
262
+ e.soilHumidity5,
263
+ e.soilTemperature1,
264
+ e.soilTemperature2,
265
+ e.soilTemperature3,
266
+ e.soilTemperature4,
267
+ e.soilTemperature5,
268
+ e.soilPh,
269
+ e.soilEc
270
+ ])].map((e) => e.join(",")).join("\n"), t = new Blob(["" + e], { type: "text/csv;charset=utf-8;" }), n = URL.createObjectURL(t), r = document.createElement("a");
271
+ r.href = n, r.download = `土壤墒情详情_${L.value || I.value}.csv`, document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(n);
272
+ }, $ = (e) => {
273
+ e?.componentName === "HdSoilDetailList" && (I.value = e?.msCode || "", L.value = e?.msName || e?.stationName || "", ge(), z.value = "table", P.value = !0, X());
274
+ };
275
+ return C(z, (e) => {
276
+ e === "chart" && h(() => Q());
277
+ }), C(q, () => {
278
+ z.value === "chart" && h(() => Q());
279
+ }), v(() => {
280
+ N?.on("toComponent", $);
281
+ }), _(() => {
282
+ N?.off("toComponent", $), V?.dispose(), V = null;
283
+ }), (t, s) => {
284
+ let p = r, m = n, h = ee, _ = a, v = i;
285
+ return y(), c(te, { to: "body" }, [P.value ? (y(), u("div", D, [d("div", O, [
286
+ d("div", k, [d("span", A, S(L.value), 1), d("button", {
287
+ class: "HdSoilDetailList-close",
288
+ onClick: _e
289
+ }, [...s[3] ||= [d("span", null, "✕", -1)]])]),
290
+ d("div", j, [
291
+ s[5] ||= d("span", { class: "HdSoilDetailList-filterLabel" }, "时间选择", -1),
292
+ f(m, { locale: ne(ie) }, {
293
+ default: w(() => [f(p, {
294
+ style: { width: "280px" },
295
+ modelValue: W.value,
296
+ "onUpdate:modelValue": s[0] ||= (e) => W.value = e,
297
+ type: "datetimerange",
298
+ "range-separator": "至",
299
+ "start-placeholder": "开始时间",
300
+ "end-placeholder": "结束时间",
301
+ "value-format": "YYYY-MM-DD HH:mm:ss",
302
+ format: "YYYY-MM-DD HH:mm:ss",
303
+ "default-time": [new Date(2e3, 0, 1, 0, 0, 0), new Date(2e3, 0, 1, 23, 59, 59)],
304
+ "popper-class": "HdSoilDetailList-datePopper",
305
+ class: "HdSoilDetailList-datePicker"
306
+ }, null, 8, ["modelValue", "default-time"])]),
307
+ _: 1
308
+ }, 8, ["locale"]),
309
+ d("button", {
310
+ class: "HdSoilDetailList-queryBtn",
311
+ onClick: X
312
+ }, "查询"),
313
+ d("button", {
314
+ class: "HdSoilDetailList-downloadBtn",
315
+ onClick: be
316
+ }, "下载"),
317
+ z.value === "chart" ? (y(), u("div", ae, [s[4] ||= d("span", { class: "HdSoilDetailList-elementLabel" }, "要素类型", -1), d("div", oe, [(y(), u(o, null, x(he, (e) => d("button", {
318
+ key: e.value,
319
+ class: g(["HdSoilDetailList-elementTab", { "HdSoilDetailList-elementTab--active": q.value === e.value }]),
320
+ onClick: (t) => q.value = e.value
321
+ }, S(e.label), 11, se)), 64))])])) : l("", !0),
322
+ d("div", ce, [d("button", {
323
+ class: g(["HdSoilDetailList-modeBtn", { "HdSoilDetailList-modeBtn--active": z.value === "table" }]),
324
+ onClick: s[1] ||= (e) => z.value = "table"
325
+ }, "表格模式", 2), d("button", {
326
+ class: g(["HdSoilDetailList-modeBtn", { "HdSoilDetailList-modeBtn--active": z.value === "chart" }]),
327
+ onClick: s[2] ||= (e) => z.value = "chart"
328
+ }, "图表模式", 2)])
329
+ ]),
330
+ d("div", le, [z.value === "table" ? T((y(), c(_, {
331
+ key: 0,
332
+ "element-loading-background": "rgba(0, 0, 0, 0.5)",
333
+ data: R.value,
334
+ class: "HdSoilDetailList-table",
335
+ "max-height": e.tableHeight,
336
+ "empty-text": "暂无数据"
337
+ }, {
338
+ default: w(() => [
339
+ f(h, {
340
+ label: "序号",
341
+ align: "center",
342
+ width: "60"
343
+ }, {
344
+ default: w(({ $index: e }) => [d("span", null, S(e + 1), 1)]),
345
+ _: 1
346
+ }),
347
+ f(h, {
348
+ prop: "monitorTime",
349
+ label: "监测时间",
350
+ align: "center",
351
+ "min-width": "180",
352
+ "show-overflow-tooltip": ""
353
+ }),
354
+ f(h, {
355
+ prop: "warningStatus",
356
+ label: "预警情况",
357
+ align: "center",
358
+ width: "90"
359
+ }, {
360
+ default: w(({ row: e }) => [d("span", { class: g({ "HdSoilDetailList-warning": e.warningStatus === "有" }) }, S(e.warningStatus || "-"), 3)]),
361
+ _: 1
362
+ }),
363
+ (y(), u(o, null, x(G, (e) => f(h, {
364
+ key: e.prop,
365
+ prop: e.prop,
366
+ label: e.label,
367
+ align: "center",
368
+ "min-width": "120"
369
+ }, null, 8, ["prop", "label"])), 64)),
370
+ (y(), u(o, null, x(K, (e) => f(h, {
371
+ key: e.prop,
372
+ prop: e.prop,
373
+ label: e.label,
374
+ align: "center",
375
+ "min-width": "120"
376
+ }, null, 8, ["prop", "label"])), 64)),
377
+ f(h, {
378
+ prop: "soilPh",
379
+ label: "PH值(ph)",
380
+ align: "center",
381
+ "min-width": "90"
382
+ }),
383
+ f(h, {
384
+ prop: "soilEc",
385
+ label: "EC值(S/cm)",
386
+ align: "center",
387
+ "min-width": "120"
388
+ })
389
+ ]),
390
+ _: 1
391
+ }, 8, ["data", "max-height"])), [[v, F.value]]) : T((y(), u("div", {
392
+ key: 1,
393
+ ref_key: "chartRef",
394
+ ref: B,
395
+ class: "HdSoilDetailList-chart"
396
+ }, null, 512)), [[v, F.value]])])
397
+ ])])) : l("", !0)]);
398
+ };
399
+ }
400
+ }), [["__scopeId", "data-v-e2dc739d"]]);
401
+ //#endregion
402
+ export { M as t };