nxd-plugin 1.8.18 → 1.8.20
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.
- package/dist/chunks/YCServiceSummary-BtvuJK6i.mjs +2 -0
- package/dist/chunks/{component-AiChat-DyGMpz5Q.mjs → component-AiChat-eZQfj_Yt.mjs} +740 -703
- package/dist/chunks/{component-AqiMonitor-CQTn29-8.mjs → component-AqiMonitor-GecRSbVS.mjs} +1 -1
- package/dist/chunks/{component-ChartCumulativePre-BO1v1Bjk.mjs → component-ChartCumulativePre-CldPuL7s.mjs} +2 -2
- package/dist/chunks/{component-ChartServiceMaterial-DpStK0Jb.mjs → component-ChartServiceMaterial-DxLDMmSP.mjs} +2 -2
- package/dist/chunks/{component-Duty-CJGLzr-m.mjs → component-Duty-B5XqGJa6.mjs} +2 -2
- package/dist/chunks/{component-EarlyWarningStatistic-ChIhpUsj.mjs → component-EarlyWarningStatistic-Cxk6_30Z.mjs} +2 -2
- package/dist/chunks/{component-EarlyWarningStatistic2-Ntabj0O3.mjs → component-EarlyWarningStatistic2-CiIKhhvg.mjs} +2 -2
- package/dist/chunks/component-Forecast72h-D8Hq9xop.mjs +564 -0
- package/dist/chunks/{component-GeologyLiveAlarm-DMPdaI5F.mjs → component-GeologyLiveAlarm-Po9bQd5F.mjs} +2 -2
- package/dist/chunks/{component-GridForecastMsg-HLMnuEAT.mjs → component-GridForecastMsg-CwjT0ESP.mjs} +2 -2
- package/dist/chunks/{component-HDSeaLegend-C3H_-Fta.mjs → component-HDSeaLegend-DvyS7ixZ.mjs} +1 -1
- package/dist/chunks/{component-HdCameraList-ZTUmiEP7.mjs → component-HdCameraList-Xd9H8W06.mjs} +95 -82
- package/dist/chunks/component-HdFarmStation-CgVOFk0d.mjs +231 -0
- package/dist/chunks/{component-HdObservation-ZDPieMjX.mjs → component-HdFarmStationDialog-BPVUbJoh.mjs} +743 -464
- package/dist/chunks/{component-HdForecastProducts-BgaAZUiu.mjs → component-HdForecastProducts-BACFKA-T.mjs} +2 -2
- package/dist/chunks/{component-HdHeatChart-h79JOPxQ.mjs → component-HdHeatChart-D2A-8GOn.mjs} +2 -2
- package/dist/chunks/{component-HdHeatChartDialog-DMPAE8Xw.mjs → component-HdHeatChartDialog-skzuN7ms.mjs} +8 -8
- package/dist/chunks/{component-HdHeatService-CY_6j4jf.mjs → component-HdHeatService-Ctd2hryU.mjs} +2 -2
- package/dist/chunks/{component-HdInsectDetailList-B77361lS.mjs → component-HdInsectDetailList-DjfXF9TM.mjs} +2 -2
- package/dist/chunks/{component-HdInsectList-DJWq8LX7.mjs → component-HdInsectList-9ax_bYM5.mjs} +125 -109
- package/dist/chunks/component-HdObservation-DnvWecu3.mjs +540 -0
- package/dist/chunks/{component-HdPreSituation-dtj-phF9.mjs → component-HdPreSituation-ue6NoeLX.mjs} +4 -4
- package/dist/chunks/{component-HdQxServiceEffects-ByE3W9-C.mjs → component-HdQxServiceEffects-BA9YprJH.mjs} +2 -2
- package/dist/chunks/{component-HdRadarList-BhYlNWNn.mjs → component-HdRadarList-3Ku_EPAc.mjs} +3 -3
- package/dist/chunks/{component-HdRadarTime-BPFQFQY1.mjs → component-HdRadarTime-DJ9remuQ.mjs} +4 -4
- package/dist/chunks/{component-HdRadarTimeLine-CAuqo3zA.mjs → component-HdRadarTimeLine-AioIXBug.mjs} +4 -4
- package/dist/chunks/component-HdRisk-EEYUOp-m.mjs +303 -0
- package/dist/chunks/{component-HdSeaCase-SLplcTIQ.mjs → component-HdSeaCase-wtcKbkHt.mjs} +2 -2
- package/dist/chunks/{component-HdServiceMarterial-Pyv1Hgyg.mjs → component-HdServiceMarterial-DVDh4bGB.mjs} +3 -3
- package/dist/chunks/{component-HdServiceRequirements-C1TomMII.mjs → component-HdServiceRequirements-DE09S30M.mjs} +3 -3
- package/dist/chunks/{component-HdSoil-DAwTp9q5.mjs → component-HdSoil-iwfixKyQ.mjs} +46 -34
- package/dist/chunks/{component-HdSoilDetailList-BAOBs-r6.mjs → component-HdSoilDetailList-BU8dwoxC.mjs} +2 -2
- package/dist/chunks/{component-HdStationTem-Bt8gMR3v.mjs → component-HdStationTem-CXQDp4ci.mjs} +4 -4
- package/dist/chunks/{component-HdSuggestion-C6ziTTKZ.mjs → component-HdSuggestion-tHm1YDjK.mjs} +3 -3
- package/dist/chunks/component-HdThreeWeatherTrend-DMs-kYE2.mjs +273 -0
- package/dist/chunks/{component-HdWaveForcast-BAgLIJ5o.mjs → component-HdWaveForcast-CUYTGP0P.mjs} +66 -66
- package/dist/chunks/{component-HighQuality-B9BN2klR.mjs → component-HighQuality-DxtfroSS.mjs} +2 -2
- package/dist/chunks/{component-HighWayEarlyWarningRed-BKACtnT9.mjs → component-HighWayEarlyWarningRed-CrsIemqD.mjs} +2 -2
- package/dist/chunks/{component-HighWayFreeze-hvUY4ZTE.mjs → component-HighWayFreeze-Cm4-2vG_.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarm-aRC9FTYG.mjs → component-HighwayLiveAlarm-C5qaO18J.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarmNew-BKGQST-V.mjs → component-HighwayLiveAlarmNew-jcRvhac3.mjs} +3 -3
- package/dist/chunks/{component-HighwayStations-AMR6QPFN.mjs → component-HighwayStations-BrXW5rvQ.mjs} +2 -2
- package/dist/chunks/{component-HighwayWeatherForecast-CzJqDupd.mjs → component-HighwayWeatherForecast-DUQ4q-Bi.mjs} +43 -42
- package/dist/chunks/{component-IframeWeb-BS6VJ8f1.mjs → component-IframeWeb-B3VnWZj-.mjs} +1 -1
- package/dist/chunks/{component-ImageGeneration-B3gc74Sv.mjs → component-ImageGeneration-oBto5Eq9.mjs} +1 -1
- package/dist/chunks/{component-IntroducePic-biCcYGK2.mjs → component-IntroducePic-CuwoxRwE.mjs} +2 -2
- package/dist/chunks/{component-LithiumBatteryMiningArea-qREysEH3.mjs → component-LithiumBatteryMiningArea-BIaidiUp.mjs} +2 -2
- package/dist/chunks/{component-MapPopup-i-zUuhws.mjs → component-MapPopup-P8ptttZR.mjs} +1 -1
- package/dist/chunks/{component-MaterialPreview-BLUOsXhG.mjs → component-MaterialPreview-WZIwDNyk.mjs} +2 -2
- package/dist/chunks/{component-PieLegend-NhO_f7iC.mjs → component-PieLegend-CqB44kj5.mjs} +1 -1
- package/dist/chunks/{component-PrecipitationRanking-cxmtPL79.mjs → component-PrecipitationRanking-DTK8WJlr.mjs} +4 -4
- package/dist/chunks/{component-RadarChart-BCsX0Qfv.mjs → component-RadarChart-DjtpuNKC.mjs} +2 -2
- package/dist/chunks/{component-RadarLegend-D8ZGTpku.mjs → component-RadarLegend-DcbbK__o.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-CrHV53oG.mjs → component-RadarShortTerm-8caOV5kH.mjs} +4 -4
- package/dist/chunks/{component-RadarTime-CLfv4ONE.mjs → component-RadarTime-BBxqp1rN.mjs} +2 -2
- package/dist/chunks/{component-RenderMarkdown-DXjI2Dt3.mjs → component-RenderMarkdown-CWPJDN6s.mjs} +2 -2
- package/dist/chunks/{component-ReservoirLiveAlarm-DqwE8pqm.mjs → component-ReservoirLiveAlarm-66CUDeOa.mjs} +3 -3
- package/dist/chunks/{component-ServiceMaterial-uYRmU0z5.mjs → component-ServiceMaterial-CAC77NxJ.mjs} +2 -2
- package/dist/chunks/{component-ServiceMaterialsBtn-BVYUgjET.mjs → component-ServiceMaterialsBtn-C2JJur1T.mjs} +1 -1
- package/dist/chunks/{component-StationDialog-DgnfPEdU.mjs → component-StationDialog-D3s6lP7O.mjs} +5 -6
- package/dist/chunks/{component-StationList-Clj57lo5.mjs → component-StationList-CMhLztb5.mjs} +4 -5
- package/dist/chunks/{component-TimeBasedForecast-CKftV77z.mjs → component-TimeBasedForecast-Bnev7gdd.mjs} +4 -4
- package/dist/chunks/{component-Typhoon-Cfx0pQmJ.mjs → component-Typhoon-DuMAb4Z0.mjs} +2 -2
- package/dist/chunks/{component-WarningLine-DSCnNisF.mjs → component-WarningLine--LOMZXV2.mjs} +2 -2
- package/dist/chunks/{component-WarningSignal-BBmcWZym.mjs → component-WarningSignal-CeKOnKNj.mjs} +3 -3
- package/dist/chunks/{component-WeatherForecast-id_hUWFm.mjs → component-WeatherForecast-DH7uOTs2.mjs} +10 -6
- package/dist/chunks/{component-YCDataMonitor-COyI5fxU.mjs → component-YCDataMonitor-BwJTbDdw.mjs} +2 -2
- package/dist/chunks/{component-YCDataService-Bcjvc6_l.mjs → component-YCDataService-B0U5NRE8.mjs} +4 -4
- package/dist/chunks/{component-YCHighWaySummary-BMnak3MG.mjs → component-YCHighWaySummary-BZS7pCgV.mjs} +2 -2
- package/dist/chunks/{component-YCHome-BIZpF0zw.mjs → component-YCHome-2VOqUGRK.mjs} +4 -4
- package/dist/chunks/{component-YCHomeLegend-BZO9QXdN.mjs → component-YCHomeLegend-usJNx7Jv.mjs} +1 -1
- package/dist/chunks/{component-YCLoginNew-D3zPZcAM.mjs → component-YCLoginNew-Wg_A8wqh.mjs} +3 -3
- package/dist/chunks/component-YCServiceSummary-CXdQVjdO.mjs +15 -0
- package/dist/components/HdFarmStation/HdFarmStation.vue.d.ts +48 -0
- package/dist/components/HdFarmStationDialog/HdFarmStationDialog.vue.d.ts +94 -0
- package/dist/components/HdHeatChart/HdHeatChart.vue.d.ts +1 -1
- package/dist/components/HdRisk/HdRisk.vue.d.ts +1 -0
- package/dist/components/YCServiceSummary/YCServiceSummary.vue.d.ts +2 -0
- package/dist/index.d.ts +5 -1
- package/dist/nxd-plugin.mjs +75 -72
- package/dist/styles/component-AiChat.css +1 -1
- package/dist/styles/component-Forecast72h.css +1 -1
- package/dist/styles/component-HdCameraList.css +1 -1
- package/dist/styles/component-HdFarmStation.css +1 -0
- package/dist/styles/component-HdFarmStationDialog.css +1 -0
- package/dist/styles/component-HdHeatChartDialog.css +1 -1
- package/dist/styles/component-HdInsectList.css +1 -1
- package/dist/styles/component-HdRadarTime.css +1 -1
- package/dist/styles/component-HdRadarTimeLine.css +1 -1
- package/dist/styles/component-HdRisk.css +1 -1
- package/dist/styles/component-HdSoil.css +1 -1
- package/dist/styles/component-HdThreeWeatherTrend.css +1 -1
- package/dist/styles/component-HdWaveForcast.css +1 -1
- package/dist/styles/component-StationDialog.css +1 -1
- package/dist/styles/component-WeatherForecast.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/dist/styles/component-YCServiceSummary.css +1 -0
- package/package.json +1 -1
- package/dist/chunks/component-Forecast72h-s8yBgKV2.mjs +0 -565
- package/dist/chunks/component-HdRisk-BsYZCgLI.mjs +0 -236
- package/dist/chunks/component-HdThreeWeatherTrend-CJMs1P9m.mjs +0 -363
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { n as e } from "./component-AqiMonitor-GecRSbVS.mjs";
|
|
2
|
+
import { i as t } from "./component-AiChat-eZQfj_Yt.mjs";
|
|
3
|
+
import "./component-Forecast72h-D8Hq9xop.mjs";
|
|
4
|
+
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";
|
|
6
|
+
//#region src/assets/img/hd/农业站.png
|
|
7
|
+
var x = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAoCAYAAACB4MgqAAAACXBIWXMAAAsTAAALEwEAmpwYAAADhGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDYgNzkuZGFiYWNiYiwgMjAyMS8wNC8xNC0wMDozOTo0NCAgICAgIC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FbCvuBLZxo2v3iNilDrF36RAbF0W3fs7JeWJDDEIHG3/72PJ9G/gb2AJ2gKfu/Pb2polwZExioyg4cJvmsHdCK9au1XZ72+5agd67N4NtLmU5i3F/Wji0sK6654xy7IzVDU9NvO3IigX2FekwoVgCWrLPsRsd4j5kycnQ/elhxDvEmezQ6d93f0aI86LLrUI8cptQ8wOlONkdMEpZpGRE//ckkVnZXJ8nxpC72HbXe15JxG8jdYBYXz5gCZFBypIDer/cSWN1GGR/8nmijdLnKtBrPa0YBis2A+Z6zzjPTaNkmkG6+B8R9nM0HGoJoQAAAABJRU5ErkJggg==", S = {
|
|
8
|
+
class: "HdFarmStation",
|
|
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({
|
|
14
|
+
__name: "HdFarmStation",
|
|
15
|
+
props: {
|
|
16
|
+
mock: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
},
|
|
20
|
+
baseHttp: { default: "" },
|
|
21
|
+
tableHeight: { default: "300px" },
|
|
22
|
+
appKey: { default: "" },
|
|
23
|
+
appSalt: { default: "" },
|
|
24
|
+
ids: { default: () => ({}) },
|
|
25
|
+
refreshInterval: { default: 300 * 1e3 },
|
|
26
|
+
list: { default: () => [] },
|
|
27
|
+
dataTime: {}
|
|
28
|
+
},
|
|
29
|
+
emits: [
|
|
30
|
+
"close",
|
|
31
|
+
"addMarker",
|
|
32
|
+
"markerClick",
|
|
33
|
+
"removeMarker"
|
|
34
|
+
],
|
|
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" });
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
let e = {
|
|
44
|
+
clickOpen: !0,
|
|
45
|
+
spotObject: [{
|
|
46
|
+
offsetX: -10,
|
|
47
|
+
offsetY: -18,
|
|
48
|
+
spotArrone: [],
|
|
49
|
+
minZoom: 6
|
|
50
|
+
}],
|
|
51
|
+
drawArrObj: [],
|
|
52
|
+
onlyLayerID: "hdFarmStation"
|
|
53
|
+
}, t = 0, n = 0;
|
|
54
|
+
R.value.forEach((r) => {
|
|
55
|
+
let i = Number(r.lon), a = Number(r.lat);
|
|
56
|
+
if (!i || !a || isNaN(i) || isNaN(a)) {
|
|
57
|
+
n++, console.warn("HdFarmStation 跳过无效经纬度:", r.stationName, "lon=", r.lon, "lat=", r.lat);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
t++;
|
|
61
|
+
let o = r.msName || r.stationName, s = `
|
|
62
|
+
<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;">
|
|
64
|
+
<div style="display:flex;flex-direction:column;">
|
|
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">
|
|
66
|
+
${o}
|
|
67
|
+
</div>
|
|
68
|
+
<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, "℃")}
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
`;
|
|
74
|
+
e.spotObject[0].spotArrone.push({
|
|
75
|
+
lng: i,
|
|
76
|
+
lat: a,
|
|
77
|
+
htmlString: s,
|
|
78
|
+
data: r,
|
|
79
|
+
otherData: { markId: "HdFarmStation" }
|
|
80
|
+
});
|
|
81
|
+
}), console.log(`HdFarmStation addMarker 总数=${R.value.length} 有效=${t} 跳过=${n}`, e), j("addMarker", {
|
|
82
|
+
mapMarker: e,
|
|
83
|
+
removeMarker: "HdFarmStation"
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
v(I, () => {
|
|
87
|
+
V();
|
|
88
|
+
});
|
|
89
|
+
let H = (e) => {
|
|
90
|
+
let t = e?.data?.result?.output;
|
|
91
|
+
if (typeof t == "string") try {
|
|
92
|
+
let e = JSON.parse(t);
|
|
93
|
+
return Array.isArray(e?.data) ? e?.data : [];
|
|
94
|
+
} catch {
|
|
95
|
+
return console.error("HdFarmStation output JSON 解析失败", t), [];
|
|
96
|
+
}
|
|
97
|
+
return Array.isArray(t) ? t : [];
|
|
98
|
+
}, U = (e) => Array.isArray(e) ? e.map((e) => ({
|
|
99
|
+
stationName: e.msName || e.stationName || e.cameranum || "",
|
|
100
|
+
msCode: e.msCode || e.monitoring_id || "",
|
|
101
|
+
msName: e.msName || e.stationName || e.cameranum || "",
|
|
102
|
+
lon: e.longitude ?? e.lon ?? e.lng ?? "",
|
|
103
|
+
lat: e.latitude ?? e.lat ?? "",
|
|
104
|
+
airTemperature: e.airTemperature ?? e.tmp ?? e.tem ?? null,
|
|
105
|
+
monitorTime: e.monitorTime || e.dataTime || e.collectTime || "",
|
|
106
|
+
dataTime: e.dataTime || e.monitorTime || e.collectTime || "",
|
|
107
|
+
...e
|
|
108
|
+
})) : [], W = (e) => t({
|
|
109
|
+
id: e.id,
|
|
110
|
+
baseHttp: A.baseHttp,
|
|
111
|
+
reqType: e.reqType,
|
|
112
|
+
variables: {},
|
|
113
|
+
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;
|
|
119
|
+
if (!e?.id) {
|
|
120
|
+
console.warn("HdFarmStation 缺少数据工作流配置");
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
N.value = !0;
|
|
124
|
+
try {
|
|
125
|
+
F.value = U(H(await W(e))), !P.value && F.value.length && (P.value = F.value[0].dataTime || ""), I.value = !0, V();
|
|
126
|
+
} catch (e) {
|
|
127
|
+
console.error("HdFarmStation 调用工作流接口失败", e);
|
|
128
|
+
} finally {
|
|
129
|
+
N.value = !1;
|
|
130
|
+
}
|
|
131
|
+
}, K = (e) => {
|
|
132
|
+
console.log(e, "row");
|
|
133
|
+
let t = e.msCode || "", n = e.msName || "";
|
|
134
|
+
M?.emit("toComponent", {
|
|
135
|
+
componentName: "HdFarmStationDialog",
|
|
136
|
+
msCode: t,
|
|
137
|
+
msName: n
|
|
138
|
+
});
|
|
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) => {
|
|
147
|
+
let t = e.target.closest(".farm-marker");
|
|
148
|
+
if (!t) return;
|
|
149
|
+
e.stopPropagation();
|
|
150
|
+
let n = t.getAttribute("data-markerId")?.replace("farm-", "") || "";
|
|
151
|
+
console.log(n, "dataName");
|
|
152
|
+
let r = F.value.find((e) => e.stationName === n);
|
|
153
|
+
r && K(r);
|
|
154
|
+
}), !0);
|
|
155
|
+
};
|
|
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" });
|
|
162
|
+
}), (t, a) => {
|
|
163
|
+
let u = i, d = r, f = n;
|
|
164
|
+
return b((m(), s("div", S, [
|
|
165
|
+
c("button", {
|
|
166
|
+
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", {
|
|
170
|
+
style: {
|
|
171
|
+
width: "100%",
|
|
172
|
+
"object-fit": "contain",
|
|
173
|
+
"margin-top": "4px"
|
|
174
|
+
},
|
|
175
|
+
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
|
+
alt: ""
|
|
177
|
+
}, 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,
|
|
188
|
+
class: "HdFarmStation-table",
|
|
189
|
+
"max-height": e.tableHeight,
|
|
190
|
+
"empty-text": "暂无数据"
|
|
191
|
+
}, {
|
|
192
|
+
default: y(() => [
|
|
193
|
+
l(u, {
|
|
194
|
+
label: "序号",
|
|
195
|
+
align: "center",
|
|
196
|
+
width: "60"
|
|
197
|
+
}, {
|
|
198
|
+
default: y(({ $index: e }) => [c("span", null, g(e + 1), 1)]),
|
|
199
|
+
_: 1
|
|
200
|
+
}),
|
|
201
|
+
l(u, {
|
|
202
|
+
prop: "stationName",
|
|
203
|
+
label: "站点名称",
|
|
204
|
+
align: "left",
|
|
205
|
+
"min-width": "120",
|
|
206
|
+
"show-overflow-tooltip": ""
|
|
207
|
+
}),
|
|
208
|
+
l(u, {
|
|
209
|
+
prop: "airTemperature",
|
|
210
|
+
label: "气温",
|
|
211
|
+
align: "center",
|
|
212
|
+
"min-width": "80"
|
|
213
|
+
}, {
|
|
214
|
+
default: y(({ row: e }) => [c("span", null, g(B(e.airTemperature, "℃")), 1)]),
|
|
215
|
+
_: 1
|
|
216
|
+
}),
|
|
217
|
+
l(u, {
|
|
218
|
+
prop: "monitorTime",
|
|
219
|
+
label: "监测时间",
|
|
220
|
+
align: "center",
|
|
221
|
+
"min-width": "140"
|
|
222
|
+
})
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
}, 8, ["data", "max-height"])])])
|
|
226
|
+
])), [[f, N.value]]);
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
}), [["__scopeId", "data-v-1bddee7f"]]);
|
|
230
|
+
//#endregion
|
|
231
|
+
export { A as t };
|