nxd-plugin 1.8.21 → 1.8.23

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 (106) hide show
  1. package/dist/chunks/YCServiceSummary-D9qP6hLO.mjs +2 -0
  2. package/dist/chunks/{component-AiChat-C_DePYiS.mjs → component-AiChat-BwP3zj0h.mjs} +1167 -884
  3. package/dist/chunks/{component-AqiMonitor-B4ZLQZOd.mjs → component-AqiMonitor-Cga2wb4h.mjs} +27 -31
  4. package/dist/chunks/{component-ChartCumulativePre-DQqNwEkp.mjs → component-ChartCumulativePre-CkQrY-fM.mjs} +2 -2
  5. package/dist/chunks/{component-ChartServiceMaterial-BSXCSmjT.mjs → component-ChartServiceMaterial-BSfXMgj4.mjs} +2 -2
  6. package/dist/chunks/{component-Duty-DnkxgYav.mjs → component-Duty-DLMdCDNu.mjs} +2 -2
  7. package/dist/chunks/{component-EarlyWarningStatistic-DZIISSb4.mjs → component-EarlyWarningStatistic-CHCmDM5w.mjs} +2 -2
  8. package/dist/chunks/{component-EarlyWarningStatistic2-vSCEWtaq.mjs → component-EarlyWarningStatistic2-D_Uc9rbm.mjs} +2 -2
  9. package/dist/chunks/{component-Forecast72h-DicwnEaB.mjs → component-Forecast72h-CwDS2BCV.mjs} +91 -92
  10. package/dist/chunks/{component-GeologyLiveAlarm-DcLkKxQi.mjs → component-GeologyLiveAlarm-TXjC0N1b.mjs} +2 -2
  11. package/dist/chunks/{component-GridForecastMsg-B1J5xBf1.mjs → component-GridForecastMsg-J7V2m_bm.mjs} +1 -2
  12. package/dist/chunks/{component-HDSeaLegend-ubUWj-K6.mjs → component-HDSeaLegend-BbW1vk-L.mjs} +2 -1
  13. package/dist/chunks/{component-HdCameraList-DE5T_NCe.mjs → component-HdCameraList-ya7gQWsk.mjs} +84 -101
  14. package/dist/chunks/{component-HdFarmStation-Dr16UrnR.mjs → component-HdFarmStation-DbvF94Z6.mjs} +77 -81
  15. package/dist/chunks/{component-HdFarmStationDialog-DNAo261X.mjs → component-HdFarmStationDialog-p3vjS1JB.mjs} +265 -282
  16. package/dist/chunks/{component-HdForecastProducts-DW94eZkZ.mjs → component-HdForecastProducts-2ZXLMLdw.mjs} +1 -2
  17. package/dist/chunks/{component-HdHeatChart-QyRCV140.mjs → component-HdHeatChart-CM4uhNsK.mjs} +1 -2
  18. package/dist/chunks/{component-HdHeatChartDialog-CwUk9qQm.mjs → component-HdHeatChartDialog-CxIaxIg5.mjs} +2 -3
  19. package/dist/chunks/{component-HdHeatService-Cbsa46Kg.mjs → component-HdHeatService-BNRBwLEC.mjs} +1 -2
  20. package/dist/chunks/{component-HdInsectDetailList-Br06iK7W.mjs → component-HdInsectDetailList-CNfJip9R.mjs} +1 -2
  21. package/dist/chunks/{component-HdInsectList-Djo-0pVh.mjs → component-HdInsectList-D0fRM6cx.mjs} +1 -2
  22. package/dist/chunks/component-HdMajorActivity-C95MgI5Y.mjs +704 -0
  23. package/dist/chunks/{component-HdObservation-5k_0GZGV.mjs → component-HdObservation-DUMGmfJN.mjs} +3 -4
  24. package/dist/chunks/{component-HdPreSituation-B0yXJZVG.mjs → component-HdPreSituation-IILymZ3h.mjs} +3 -4
  25. package/dist/chunks/{component-HdQxServiceEffects-Ds1vj_DV.mjs → component-HdQxServiceEffects-B-C0VBH3.mjs} +1 -2
  26. package/dist/chunks/{component-HdRadarList-NLZ0YNV8.mjs → component-HdRadarList-DSMrSb-T.mjs} +3 -3
  27. package/dist/chunks/{component-HdRadarTime-D7-YoOkE.mjs → component-HdRadarTime-FEhuGBEg.mjs} +1 -2
  28. package/dist/chunks/{component-HdRadarTimeLine-CJ0_ejKf.mjs → component-HdRadarTimeLine-UfzKKTgp.mjs} +1 -2
  29. package/dist/chunks/{component-HdRisk-fuJNWgJD.mjs → component-HdRisk-B3N71NoC.mjs} +2 -3
  30. package/dist/chunks/{component-HdSeaCase-D21rq9pv.mjs → component-HdSeaCase-Cim-Y8hP.mjs} +1 -2
  31. package/dist/chunks/{component-HdServiceMarterial-CgcHHy6J.mjs → component-HdServiceMarterial-BxifbLBR.mjs} +2 -3
  32. package/dist/chunks/{component-HdServiceRequirements-D2EdgZjN.mjs → component-HdServiceRequirements-BawMn0jA.mjs} +2 -3
  33. package/dist/chunks/{component-HdSoil-D58PIu6D.mjs → component-HdSoil-DaGj6RPD.mjs} +2 -3
  34. package/dist/chunks/{component-HdSoilDetailList-BpbPwCjd.mjs → component-HdSoilDetailList-fBu8i74J.mjs} +1 -2
  35. package/dist/chunks/{component-HdStationTem-qqZ5UXom.mjs → component-HdStationTem-DgGFJ20c.mjs} +3 -4
  36. package/dist/chunks/{component-HdSuggestion-Dbdlr5zS.mjs → component-HdSuggestion-BnpgzKkp.mjs} +2 -3
  37. package/dist/chunks/{component-HdThreeWeatherTrend-zSmR2LIO.mjs → component-HdThreeWeatherTrend-Bmire4sm.mjs} +3 -4
  38. package/dist/chunks/{component-HdWaveForcast-DllKzNgu.mjs → component-HdWaveForcast-Bc3sB9Fn.mjs} +2 -3
  39. package/dist/chunks/{component-HighQuality-BNVnCK0d.mjs → component-HighQuality-DjDZKwMT.mjs} +1 -2
  40. package/dist/chunks/{component-HighWayEarlyWarningRed-CwzMQCqp.mjs → component-HighWayEarlyWarningRed-CzBI_AJA.mjs} +2 -2
  41. package/dist/chunks/{component-HighWayFreeze-Ds2Hz7pR.mjs → component-HighWayFreeze-sFMx0umE.mjs} +2 -2
  42. package/dist/chunks/{component-HighwayLiveAlarm-Do4pwmnJ.mjs → component-HighwayLiveAlarm-Ozq7Y8qF.mjs} +2 -2
  43. package/dist/chunks/{component-HighwayLiveAlarmNew-DoWns_RH.mjs → component-HighwayLiveAlarmNew-ByL2OYk0.mjs} +3 -3
  44. package/dist/chunks/{component-HighwayStations-BBQa33JX.mjs → component-HighwayStations-DXj5h1vg.mjs} +2 -2
  45. package/dist/chunks/{component-HighwayWeatherForecast-C-kwyE6Q.mjs → component-HighwayWeatherForecast-6I714FL1.mjs} +69 -69
  46. package/dist/chunks/{component-IframeWeb-uP8unwJj.mjs → component-IframeWeb-DDYUNdVl.mjs} +1 -1
  47. package/dist/chunks/{component-ImageGeneration-CLAge4U1.mjs → component-ImageGeneration-C0K8D1lM.mjs} +2 -1
  48. package/dist/chunks/{component-IntroducePic-C8X8Y6hx.mjs → component-IntroducePic-Bzsjmjql.mjs} +1 -2
  49. package/dist/chunks/{component-LithiumBatteryMiningArea-xc5REiPe.mjs → component-LithiumBatteryMiningArea-ClvF3vsD.mjs} +2 -2
  50. package/dist/chunks/{component-MapPopup-DXRLi4wJ.mjs → component-MapPopup-BnKmR10m.mjs} +1 -1
  51. package/dist/chunks/{component-MaterialPreview-B9iSbEIO.mjs → component-MaterialPreview-DG5VgGJp.mjs} +1 -2
  52. package/dist/chunks/{component-PieLegend-DPwAQJxO.mjs → component-PieLegend-Y_AZPS0g.mjs} +1 -1
  53. package/dist/chunks/{component-PrecipitationRanking-CwP3NZlf.mjs → component-PrecipitationRanking-71G9U_UP.mjs} +3 -4
  54. package/dist/chunks/{component-RadarChart-BxEzHVOE.mjs → component-RadarChart-u6Xs1TTB.mjs} +2 -2
  55. package/dist/chunks/{component-RadarLegend-DVoe6ojQ.mjs → component-RadarLegend-9ahVi99l.mjs} +1 -1
  56. package/dist/chunks/{component-RadarShortTerm-7v_EauV4.mjs → component-RadarShortTerm-wwvpXBvp.mjs} +4 -4
  57. package/dist/chunks/{component-RadarTime-CT8WOoJR.mjs → component-RadarTime-BqkIprmh.mjs} +2 -2
  58. package/dist/chunks/{component-RenderMarkdown-CxAwaqBM.mjs → component-RenderMarkdown-Cip_f4e8.mjs} +2 -2
  59. package/dist/chunks/{component-ReservoirLiveAlarm-CWkaa2z8.mjs → component-ReservoirLiveAlarm-D6fDm2mR.mjs} +3 -3
  60. package/dist/chunks/{component-ServiceMaterial-CNjEwMGZ.mjs → component-ServiceMaterial-DHdRLUhG.mjs} +2 -2
  61. package/dist/chunks/{component-ServiceMaterialsBtn-DWBa1Hpa.mjs → component-ServiceMaterialsBtn-B6fjh9Bc.mjs} +2 -1
  62. package/dist/chunks/{component-StationDialog-usekZclX.mjs → component-StationDialog-DP9cwrI_.mjs} +2 -3
  63. package/dist/chunks/{component-StationList-B0bav8JG.mjs → component-StationList-Cfmz5c3d.mjs} +3 -4
  64. package/dist/chunks/{component-TimeBasedForecast-l0RpjVYi.mjs → component-TimeBasedForecast-DIBNCv4O.mjs} +36 -36
  65. package/dist/chunks/{component-Typhoon-Cf8qko_n.mjs → component-Typhoon-4Oj6wl91.mjs} +16 -16
  66. package/dist/chunks/{component-WarningLine-B2HyTDUW.mjs → component-WarningLine-XjCN_f4w.mjs} +2 -2
  67. package/dist/chunks/{component-WarningSignal-Cy8MQ6oC.mjs → component-WarningSignal-DPUOC73O.mjs} +3 -3
  68. package/dist/chunks/{component-WeatherForecast-B-MV7oqR.mjs → component-WeatherForecast-Cl3G0gZG.mjs} +36 -36
  69. package/dist/chunks/{component-YCDataMonitor-p7tSzU_b.mjs → component-YCDataMonitor-Cmugq2Hc.mjs} +1 -2
  70. package/dist/chunks/{component-YCDataService-BBVuyu-D.mjs → component-YCDataService-Veq9EEB6.mjs} +3 -4
  71. package/dist/chunks/{component-YCHighWaySummary-BH34LVVj.mjs → component-YCHighWaySummary-BfcLGdxr.mjs} +2 -2
  72. package/dist/chunks/{component-YCHome-CtSa__qB.mjs → component-YCHome-BgGFtVlS.mjs} +3 -4
  73. package/dist/chunks/{component-YCHomeLegend-DqzGcZgD.mjs → component-YCHomeLegend-jG8vwIka.mjs} +2 -1
  74. package/dist/chunks/{component-YCLoginNew-zgG8m4VV.mjs → component-YCLoginNew-BKMD-5TL.mjs} +9 -10
  75. package/dist/chunks/component-YCServiceSummary-C2K81UiN.mjs +869 -0
  76. package/dist/components/AiChat/AiChat.vue.d.ts +18 -0
  77. package/dist/components/AiChat/AiChatResponse.vue.d.ts +2 -0
  78. package/dist/components/AiChat/AiChatThinking.vue.d.ts +4 -0
  79. package/dist/components/AiChat/types.d.ts +1 -0
  80. package/dist/components/HdCameraList/HdCameraList.vue.d.ts +0 -10
  81. package/dist/components/HdFarmStationDialog/HdFarmStationDialog.vue.d.ts +0 -69
  82. package/dist/components/HdMajorActivity/HdMajorActivity.vue.d.ts +74 -0
  83. package/dist/components/YCServiceSummary/YCAIChatPanel.vue.d.ts +22 -2
  84. package/dist/components/YCServiceSummary/YCServiceSummary.vue.d.ts +21 -2
  85. package/dist/components/YCServiceSummary/YCServiceSummaryGeologyRefineAnalysis.vue.d.ts +24 -0
  86. package/dist/components/YCServiceSummary/YCServiceSummaryGeologyTrafficAnalysis.vue.d.ts +24 -0
  87. package/dist/components/YCServiceSummary/YCServiceSummaryRefineAnalysis.vue.d.ts +21 -2
  88. package/dist/components/YCServiceSummary/YCServiceSummaryReservoirRefineAnalysis.vue.d.ts +24 -0
  89. package/dist/components/YCServiceSummary/YCServiceSummaryReservoirTrafficAnalysis.vue.d.ts +24 -0
  90. package/dist/components/YCServiceSummary/YCServiceSummaryTrafficAnalysis.vue.d.ts +21 -2
  91. package/dist/index.d.ts +2 -1
  92. package/dist/nxd-plugin.mjs +75 -74
  93. package/dist/styles/component-AiChat.css +1 -1
  94. package/dist/styles/component-Forecast72h.css +1 -1
  95. package/dist/styles/component-HdCameraList.css +1 -1
  96. package/dist/styles/component-HdFarmStation.css +1 -1
  97. package/dist/styles/component-HdFarmStationDialog.css +1 -1
  98. package/dist/styles/component-HdInsectDetailList.css +1 -1
  99. package/dist/styles/component-HdMajorActivity.css +1 -0
  100. package/dist/styles/component-YCLoginNew.css +1 -1
  101. package/dist/styles/component-YCServiceSummary.css +1 -1
  102. package/dist/utils/request.d.ts +1 -0
  103. package/package.json +1 -1
  104. package/dist/chunks/YCServiceSummary-9W7E-cRv.mjs +0 -2
  105. package/dist/chunks/component-YCServiceSummary-KF3yjd4u.mjs +0 -354
  106. package/dist/components/YCServiceSummary/types.d.ts +0 -14
@@ -1,16 +1,13 @@
1
- import { n as e } from "./component-AqiMonitor-B4ZLQZOd.mjs";
2
- import { i as t } from "./component-AiChat-C_DePYiS.mjs";
3
- import "./component-Forecast72h-DicwnEaB.mjs";
1
+ import { i as e, o as t } from "./component-AiChat-BwP3zj0h.mjs";
2
+ import "./component-Forecast72h-CwDS2BCV.mjs";
4
3
  import { ElLoadingDirective as n, ElTable as r, ElTableColumn as i } from "element-plus/es";
5
- import { computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, onBeforeUnmount as f, onMounted as p, openBlock as m, ref as h, toDisplayString as g, vModelCheckbox as _, watch as v, withCtx as y, withDirectives as b } from "vue";
4
+ import { computed as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, getCurrentInstance as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, toDisplayString as h, vModelCheckbox as g, watch as _, withCtx as v, withDirectives as y } from "vue";
5
+ import "element-plus/dist/index.css";
6
6
  //#region src/assets/img/hd/农业站.png
7
- var x = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAoCAMAAAC2PjgYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAaVBMVEVHcEwSHQD///8SHQASHQASHQASHQD7/PsSHQASHQASHQASHQD///8SHQASHQASHQASHQD///9xd2YSHQD///9LUz3+/v4SHQD9/f3Dxb7Z29b////t///b//+///+Y/v9w/v9M/v8w/f/X4jOHAAAAG3RSTlMABgsOFCAqMDM+R1hoaXyJlZ6nt7m4xNXi4+86+u2YAAABcklEQVR42o3SbU/CMBiF4XNOV4saX4hKUP7/L1Q+EKWPdrRpRlvkDsmSca151hVzJMNml9u8bnfLNgE1ks5NSQ/bFCsQchQ9Qo64CcvkAwqHSLkJKAnnCb7+R9KpGhCGZcSqcAp0cu4SF4Lq6qLa1b8PJQAOd4UTJOlQOe38DQhfV4eSrunEbb/ff32WaQpPnphQo9lpRID5jtzsK6tlo3hbbyn6w3zt8s7wKww5E2fIla0ccciwKG/liLPlhL+a162c+vyApsOYd5a/MAyE3pkfcqJ75se8f+av50LQkBPW+VAjDrWc8EPOlgvhEq++nvkx727lkLM3/GrEoe7wGnGie+Yv8nYrEzcYfrq83UpO/vb+8fnlY3dFa9D51d3D0/Pb0m/f2+e3a5GinEQSeS4DQJDImVm0eIzR5vuO6SfMRSTOxeeO+NNmmYukCKIsj9kTdXkkjROHiKKTb4+BIWkYIBjiMQ2Xs3JZlHWO/1Ve/BcfbY/c93OAOwAAAABJRU5ErkJggg==", S = {
7
+ var b = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAoCAMAAAC2PjgYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAaVBMVEVHcEwSHQD///8SHQASHQASHQASHQD7/PsSHQASHQASHQASHQD///8SHQASHQASHQASHQD///9xd2YSHQD///9LUz3+/v4SHQD9/f3Dxb7Z29b////t///b//+///+Y/v9w/v9M/v8w/f/X4jOHAAAAG3RSTlMABgsOFCAqMDM+R1hoaXyJlZ6nt7m4xNXi4+86+u2YAAABcklEQVR42o3SbU/CMBiF4XNOV4saX4hKUP7/L1Q+EKWPdrRpRlvkDsmSca151hVzJMNml9u8bnfLNgE1ks5NSQ/bFCsQchQ9Qo64CcvkAwqHSLkJKAnnCb7+R9KpGhCGZcSqcAp0cu4SF4Lq6qLa1b8PJQAOd4UTJOlQOe38DQhfV4eSrunEbb/ff32WaQpPnphQo9lpRID5jtzsK6tlo3hbbyn6w3zt8s7wKww5E2fIla0ccciwKG/liLPlhL+a162c+vyApsOYd5a/MAyE3pkfcqJ75se8f+av50LQkBPW+VAjDrWc8EPOlgvhEq++nvkx727lkLM3/GrEoe7wGnGie+Yv8nYrEzcYfrq83UpO/vb+8fnlY3dFa9D51d3D0/Pb0m/f2+e3a5GinEQSeS4DQJDImVm0eIzR5vuO6SfMRSTOxeeO+NNmmYukCKIsj9kTdXkkjROHiKKTb4+BIWkYIBjiMQ2Xs3JZlHWO/1Ve/BcfbY/c93OAOwAAAABJRU5ErkJggg==", x = {
8
8
  class: "HdFarmStation",
9
9
  "element-loading-background": "rgba(0, 0, 0, 0.5)"
10
- }, C = { class: "HdFarmStation-header" }, w = { class: "HdFarmStation-headerContent" }, T = {
11
- key: 0,
12
- class: "HdFarmStation-dataTime"
13
- }, E = { class: "HdFarmStation-toolbar" }, D = { class: "HdFarmStation-check" }, O = { class: "HdFarmStation-content" }, k = { class: "HdFarmStation-tableWrap" }, A = /* @__PURE__ */ e(/* @__PURE__ */ u({
10
+ }, S = { class: "HdFarmStation-header" }, C = { class: "HdFarmStation-headerContent" }, w = { class: "HdFarmStation-toolbar" }, T = { class: "HdFarmStation-check" }, E = { class: "HdFarmStation-content" }, D = { class: "HdFarmStation-tableWrap" }, O = /* @__PURE__ */ e(/* @__PURE__ */ l({
14
11
  __name: "HdFarmStation",
15
12
  props: {
16
13
  mock: {
@@ -32,12 +29,12 @@ var x = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAoCAMAAAC2PjgYAAAAC
32
29
  "markerClick",
33
30
  "removeMarker"
34
31
  ],
35
- setup(e, { emit: u }) {
36
- let A = e, j = u, M = d()?.appContext.config.globalProperties.$bus, N = h(!1), P = h(A.dataTime || ""), F = h([]), I = h(!0), L = null, R = a(() => A.list.length ? A.list : F.value), z = () => {
37
- j("close"), I.value = !1;
38
- }, B = (e, t) => e == null || e === "" || Number(e) >= 9999 ? "--" : t ? `${e}${t}` : String(e), V = () => {
39
- if (!I.value) {
40
- j("addMarker", { removeMarker: "HdFarmStation" });
32
+ setup(e, { emit: l }) {
33
+ let O = e, k = l, A = u()?.appContext.config.globalProperties.$bus, j = m(!1), M = m(O.dataTime || ""), N = m([]), P = m(!0), F = null, I = a(() => O.list.length ? O.list : N.value), L = () => {
34
+ k("close"), P.value = !1;
35
+ }, R = (e, t) => e == null || e === "" || Number(e) >= 9999 ? "--" : t ? `${e}${t}` : String(e), z = () => {
36
+ if (!P.value) {
37
+ k("addMarker", { removeMarker: "HdFarmStation" });
41
38
  return;
42
39
  }
43
40
  let e = {
@@ -51,7 +48,7 @@ var x = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAoCAMAAAC2PjgYAAAAC
51
48
  drawArrObj: [],
52
49
  onlyLayerID: "hdFarmStation"
53
50
  }, t = 0, n = 0;
54
- R.value.forEach((r) => {
51
+ I.value.forEach((r) => {
55
52
  let i = Number(r.lon), a = Number(r.lat);
56
53
  if (!i || !a || isNaN(i) || isNaN(a)) {
57
54
  n++, console.warn("HdFarmStation 跳过无效经纬度:", r.stationName, "lon=", r.lon, "lat=", r.lat);
@@ -60,13 +57,13 @@ var x = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAoCAMAAAC2PjgYAAAAC
60
57
  t++;
61
58
  let o = r.msName || r.stationName, s = `
62
59
  <div data-markerId="farm-${o}" class="farm-marker" style="display:flex;align-items:center;cursor:pointer;" title="${o}">
63
- <img src="${x}" alt="" style="width:20px;height:20px;margin-right:4px;">
60
+ <img src="${b}" alt="" style="width:20px;height:20px;margin-right:4px;">
64
61
  <div style="display:flex;flex-direction:column;">
65
62
  <div style="color:#fff;font-size:12px;line-height:1.4;text-shadow:1px 0 #000,-1px 0 #000,0 1px #000,0 -1px #000,1px 1px #000,-1px -1px #000,1px -1px #000,-1px 1px #000">
66
63
  ${o}
67
64
  </div>
68
65
  <div style="color:#fff;font-size:12px;line-height:1.4;text-shadow:1px 0 #000,-1px 0 #000,0 1px #000,0 -1px #000,1px 1px #000,-1px -1px #000,1px -1px #000,-1px 1px #000">
69
- ${B(r.airTemperature, "℃")}
66
+ ${R(r.airTemperature, "℃")}
70
67
  </div>
71
68
  </div>
72
69
  </div>
@@ -78,15 +75,15 @@ var x = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAoCAMAAAC2PjgYAAAAC
78
75
  data: r,
79
76
  otherData: { markId: "HdFarmStation" }
80
77
  });
81
- }), console.log(`HdFarmStation addMarker 总数=${R.value.length} 有效=${t} 跳过=${n}`, e), j("addMarker", {
78
+ }), console.log(`HdFarmStation addMarker 总数=${I.value.length} 有效=${t} 跳过=${n}`, e), k("addMarker", {
82
79
  mapMarker: e,
83
80
  removeMarker: "HdFarmStation"
84
81
  });
85
82
  };
86
- v(I, () => {
87
- V();
83
+ _(P, () => {
84
+ z();
88
85
  });
89
- let H = (e) => {
86
+ let B = (e) => {
90
87
  let t = e?.data?.result?.output;
91
88
  if (typeof t == "string") try {
92
89
  let e = JSON.parse(t);
@@ -95,7 +92,7 @@ var x = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAoCAMAAAC2PjgYAAAAC
95
92
  return console.error("HdFarmStation output JSON 解析失败", t), [];
96
93
  }
97
94
  return Array.isArray(t) ? t : [];
98
- }, U = (e) => Array.isArray(e) ? e.map((e) => ({
95
+ }, V = (e) => Array.isArray(e) ? e.map((e) => ({
99
96
  stationName: e.msName || e.stationName || e.cameranum || "",
100
97
  msCode: e.msCode || e.monitoring_id || "",
101
98
  msName: e.msName || e.stationName || e.cameranum || "",
@@ -105,68 +102,75 @@ var x = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAoCAMAAAC2PjgYAAAAC
105
102
  monitorTime: e.monitorTime || e.dataTime || e.collectTime || "",
106
103
  dataTime: e.dataTime || e.monitorTime || e.collectTime || "",
107
104
  ...e
108
- })) : [], W = (e) => t({
105
+ })) : [], H = (e) => t({
109
106
  id: e.id,
110
- baseHttp: A.baseHttp,
107
+ baseHttp: O.baseHttp,
111
108
  reqType: e.reqType,
112
109
  variables: {},
113
110
  isFormData: e.isFormData,
114
- appKey: A.appKey,
115
- appSalt: A.appSalt
116
- }), G = async () => {
117
- if (A.mock) return;
118
- let e = A.ids?.data;
111
+ appKey: O.appKey,
112
+ appSalt: O.appSalt
113
+ }), U = async () => {
114
+ if (O.mock) return;
115
+ let e = O.ids?.data;
119
116
  if (!e?.id) {
120
117
  console.warn("HdFarmStation 缺少数据工作流配置");
121
118
  return;
122
119
  }
123
- N.value = !0;
120
+ j.value = !0;
124
121
  try {
125
- F.value = U(H(await W(e))), !P.value && F.value.length && (P.value = F.value[0].dataTime || ""), I.value = !0, V();
122
+ N.value = V(B(await H(e))), !M.value && N.value.length && (M.value = N.value[0].dataTime || ""), P.value = !0, z();
126
123
  } catch (e) {
127
124
  console.error("HdFarmStation 调用工作流接口失败", e);
128
125
  } finally {
129
- N.value = !1;
126
+ j.value = !1;
130
127
  }
131
- }, K = (e) => {
128
+ }, W = (e) => {
132
129
  console.log(e, "row");
133
130
  let t = e.msCode || "", n = e.msName || "";
134
- M?.emit("toComponent", {
131
+ A?.emit("toComponent", {
135
132
  componentName: "HdFarmStationDialog",
136
133
  msCode: t,
137
134
  msName: n
138
135
  });
139
- }, q = () => {
140
- J(), !(A.refreshInterval <= 0) && (L = setInterval(() => {
141
- G();
142
- }, A.refreshInterval));
143
- }, J = () => {
144
- L &&= (clearInterval(L), null);
145
- }, Y = !1, X = () => {
146
- Y ||= (document.addEventListener("click", (e) => {
136
+ }, G = () => {
137
+ K(), !(O.refreshInterval <= 0) && (F = setInterval(() => {
138
+ U();
139
+ }, O.refreshInterval));
140
+ }, K = () => {
141
+ F &&= (clearInterval(F), null);
142
+ }, q = !1, J = () => {
143
+ q ||= (document.addEventListener("click", (e) => {
147
144
  let t = e.target.closest(".farm-marker");
148
145
  if (!t) return;
149
146
  e.stopPropagation();
150
147
  let n = t.getAttribute("data-markerId")?.replace("farm-", "") || "";
151
148
  console.log(n, "dataName");
152
- let r = F.value.find((e) => e.stationName === n);
153
- r && K(r);
149
+ let r = N.value.find((e) => e.stationName === n);
150
+ r && W(r);
154
151
  }), !0);
155
152
  };
156
- return p(() => {
157
- X(), M?.on("toComponent", (e) => {
158
- e.componentName === "HdFarmStation" && G();
159
- }), G(), q();
160
- }), f(() => {
161
- J(), j("addMarker", { removeMarker: "HdFarmStation" });
153
+ return f(() => {
154
+ J(), A?.on("toComponent", (e) => {
155
+ e.componentName === "HdFarmStation" && U();
156
+ }), U(), G();
157
+ }), d(() => {
158
+ K(), k("addMarker", { removeMarker: "HdFarmStation" });
162
159
  }), (t, a) => {
163
- let u = i, d = r, f = n;
164
- return b((m(), s("div", S, [
165
- c("button", {
160
+ let l = i, u = r, d = n;
161
+ return y((p(), o("div", x, [
162
+ s("button", {
166
163
  class: "HdFarmStation-close",
167
- onClick: z
168
- }, [...a[1] ||= [c("span", null, "✕", -1)]]),
169
- c("div", C, [c("div", w, [a[2] ||= c("h3", { class: "HdFarmStation-title" }, "农业站列表", -1), P.value ? (m(), s("span", T, "(数据时间:" + g(P.value) + "", 1)) : o("", !0)]), a[3] ||= c("img", {
164
+ onClick: L
165
+ }, [...a[1] ||= [s("span", null, "✕", -1)]]),
166
+ s("div", S, [s("div", C, [a[4] ||= s("h3", { class: "HdFarmStation-title" }, "农业站列表", -1), s("div", w, [s("label", T, [
167
+ y(s("input", {
168
+ "onUpdate:modelValue": a[0] ||= (e) => P.value = e,
169
+ type: "checkbox"
170
+ }, null, 512), [[g, P.value]]),
171
+ a[2] ||= s("span", { class: "HdFarmStation-checkBox" }, null, -1),
172
+ a[3] ||= s("span", { class: "HdFarmStation-checkLabel" }, "地图标记", -1)
173
+ ])])]), a[5] ||= s("img", {
170
174
  style: {
171
175
  width: "100%",
172
176
  "object-fit": "contain",
@@ -175,57 +179,49 @@ var x = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAoCAMAAAC2PjgYAAAAC
175
179
  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",
176
180
  alt: ""
177
181
  }, null, -1)]),
178
- c("div", E, [c("label", D, [
179
- b(c("input", {
180
- "onUpdate:modelValue": a[0] ||= (e) => I.value = e,
181
- type: "checkbox"
182
- }, null, 512), [[_, I.value]]),
183
- a[4] ||= c("span", { class: "HdFarmStation-checkBox" }, null, -1),
184
- a[5] ||= c("span", { class: "HdFarmStation-checkLabel" }, "地图标记", -1)
185
- ])]),
186
- c("div", O, [c("div", k, [l(d, {
187
- data: R.value,
182
+ s("div", E, [s("div", D, [c(u, {
183
+ data: I.value,
188
184
  class: "HdFarmStation-table",
189
185
  "max-height": e.tableHeight,
190
186
  "empty-text": "暂无数据"
191
187
  }, {
192
- default: y(() => [
193
- l(u, {
188
+ default: v(() => [
189
+ c(l, {
194
190
  label: "序号",
195
191
  align: "center",
196
- width: "60"
192
+ width: "50"
197
193
  }, {
198
- default: y(({ $index: e }) => [c("span", null, g(e + 1), 1)]),
194
+ default: v(({ $index: e }) => [s("span", null, h(e + 1), 1)]),
199
195
  _: 1
200
196
  }),
201
- l(u, {
197
+ c(l, {
202
198
  prop: "stationName",
203
199
  label: "站点名称",
204
200
  align: "left",
205
- "min-width": "120",
201
+ "min-width": "100",
206
202
  "show-overflow-tooltip": ""
207
203
  }),
208
- l(u, {
204
+ c(l, {
209
205
  prop: "airTemperature",
210
206
  label: "气温",
211
207
  align: "center",
212
- "min-width": "80"
208
+ "min-width": "70"
213
209
  }, {
214
- default: y(({ row: e }) => [c("span", null, g(B(e.airTemperature, "℃")), 1)]),
210
+ default: v(({ row: e }) => [s("span", null, h(R(e.airTemperature, "℃")), 1)]),
215
211
  _: 1
216
212
  }),
217
- l(u, {
213
+ c(l, {
218
214
  prop: "monitorTime",
219
215
  label: "监测时间",
220
216
  align: "center",
221
- "min-width": "140"
217
+ "min-width": "160"
222
218
  })
223
219
  ]),
224
220
  _: 1
225
221
  }, 8, ["data", "max-height"])])])
226
- ])), [[f, N.value]]);
222
+ ])), [[d, j.value]]);
227
223
  };
228
224
  }
229
- }), [["__scopeId", "data-v-1bddee7f"]]);
225
+ }), [["__scopeId", "data-v-845eb6e7"]]);
230
226
  //#endregion
231
- export { A as t };
227
+ export { O as t };