nxd-plugin 1.8.46 → 1.8.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/chunks/GridData-DKQLl2Yn.mjs +2 -0
  2. package/dist/chunks/YCServiceSummary-BNOAFpyZ.mjs +2 -0
  3. package/dist/chunks/{component-Agent-CAxRiXVu.mjs → component-Agent-DwXtdLhK.mjs} +114 -106
  4. package/dist/chunks/{component-AiChat-go3CScRo.mjs → component-AiChat-Cj1xCAtL.mjs} +1 -1
  5. package/dist/chunks/{component-AqiMonitor-BJXlyOxH.mjs → component-AqiMonitor-CiRH3KK9.mjs} +1 -1
  6. package/dist/chunks/{component-ChartCumulativePre-CPImPMtx.mjs → component-ChartCumulativePre-jgepn88x.mjs} +2 -2
  7. package/dist/chunks/{component-ChartServiceMaterial-DCgeleQL.mjs → component-ChartServiceMaterial-CE9IfnBv.mjs} +2 -2
  8. package/dist/chunks/{component-Duty-Cj3jYko4.mjs → component-Duty-BsFsOk0K.mjs} +2 -2
  9. package/dist/chunks/{component-EarlyWarningStatistic-Dj7-DooY.mjs → component-EarlyWarningStatistic-8yavuyPf.mjs} +2 -2
  10. package/dist/chunks/{component-EarlyWarningStatistic2-CGrO7gCL.mjs → component-EarlyWarningStatistic2-DppX7jcV.mjs} +2 -2
  11. package/dist/chunks/{component-Forecast72h-BDEacrN0.mjs → component-Forecast72h-CD6eT1xe.mjs} +1 -1
  12. package/dist/chunks/{component-GeologyLiveAlarm-Ck08qE3U.mjs → component-GeologyLiveAlarm-CKdsxprI.mjs} +2 -2
  13. package/dist/chunks/component-GridData-o7hipw0h.mjs +756 -0
  14. package/dist/chunks/{component-GridForecastMsg-nkheA7h9.mjs → component-GridForecastMsg-BooZUH5C.mjs} +1 -1
  15. package/dist/chunks/{component-HDSeaLegend-CCiQnc3X.mjs → component-HDSeaLegend-DgPHlKXO.mjs} +2 -2
  16. package/dist/chunks/{component-HdCameraList-BddqV2QN.mjs → component-HdCameraList-DuC-_0uH.mjs} +2 -2
  17. package/dist/chunks/{component-HdFarmStation-CrNTC69J.mjs → component-HdFarmStation-BtYLSMAY.mjs} +2 -2
  18. package/dist/chunks/{component-HdFarmStationDialog-OU6FdHI4.mjs → component-HdFarmStationDialog-BHxuJEsh.mjs} +1 -1
  19. package/dist/chunks/{component-HdForecastProducts-Bkp2m76s.mjs → component-HdForecastProducts-BnI8u5s4.mjs} +1 -1
  20. package/dist/chunks/{component-HdHeatChart-K9XTDoxy.mjs → component-HdHeatChart-CuqWcjET.mjs} +1 -1
  21. package/dist/chunks/{component-HdHeatChartDialog-BWHIGeaR.mjs → component-HdHeatChartDialog-pXLf6f_w.mjs} +2 -2
  22. package/dist/chunks/{component-HdHeatService-DMj3UpNe.mjs → component-HdHeatService-CBo6v1T6.mjs} +1 -1
  23. package/dist/chunks/{component-HdInsectDetailList-CLuhOSWM.mjs → component-HdInsectDetailList-MrAoHbsv.mjs} +1 -1
  24. package/dist/chunks/{component-HdInsectList-SR9MrrWw.mjs → component-HdInsectList-Dswl1k3W.mjs} +1 -1
  25. package/dist/chunks/{component-HdMajorActivity-BbkuZ3pW.mjs → component-HdMajorActivity-Dcgr5Lp_.mjs} +2 -2
  26. package/dist/chunks/{component-HdObservation-Cj1TbKDr.mjs → component-HdObservation-DmRN3dBq.mjs} +3 -3
  27. package/dist/chunks/{component-HdPreSituation-BOjuRB8B.mjs → component-HdPreSituation-KMOE4Mt_.mjs} +3 -3
  28. package/dist/chunks/{component-HdQxServiceEffects-DK_FJEmE.mjs → component-HdQxServiceEffects-CZZHRjNN.mjs} +1 -1
  29. package/dist/chunks/{component-HdRadarList-DZmnTNTN.mjs → component-HdRadarList-Cx_cRpjb.mjs} +3 -3
  30. package/dist/chunks/{component-HdRadarTime-Cn8kLA9j.mjs → component-HdRadarTime-D6ZLrCfA.mjs} +1 -1
  31. package/dist/chunks/{component-HdRadarTimeLine-B9KzZ0sT.mjs → component-HdRadarTimeLine-CwdMMlPK.mjs} +1 -1
  32. package/dist/chunks/{component-HdRisk-DLvN1ReK.mjs → component-HdRisk-Cx_Wuyuy.mjs} +2 -2
  33. package/dist/chunks/{component-HdSeaCase-cGapDdCH.mjs → component-HdSeaCase-C9gN_sjI.mjs} +1 -1
  34. package/dist/chunks/{component-HdServiceMarterial-BHPhw4Za.mjs → component-HdServiceMarterial-CT_sdZkH.mjs} +2 -2
  35. package/dist/chunks/{component-HdServiceRequirements-D1XB4dxh.mjs → component-HdServiceRequirements-CrpxYdNK.mjs} +2 -2
  36. package/dist/chunks/{component-HdSoil-CRecGN33.mjs → component-HdSoil-eQTGGIkq.mjs} +2 -2
  37. package/dist/chunks/{component-HdSoilDetailList-DbBRfuvO.mjs → component-HdSoilDetailList-B1VZ5iDc.mjs} +1 -1
  38. package/dist/chunks/{component-HdStationTem-BxEvMZKy.mjs → component-HdStationTem-BCls8KKc.mjs} +3 -3
  39. package/dist/chunks/{component-HdSuggestion-ZF_A8QJj.mjs → component-HdSuggestion-BnGlQLfg.mjs} +2 -2
  40. package/dist/chunks/{component-HdThreeWeatherTrend-C-YzuGub.mjs → component-HdThreeWeatherTrend-D_dPqael.mjs} +3 -3
  41. package/dist/chunks/{component-HdWaveForcast-Bk3SKlnr.mjs → component-HdWaveForcast-B-RPD_5H.mjs} +2 -2
  42. package/dist/chunks/{component-HighQuality-Caba7jDy.mjs → component-HighQuality-BpOhQkvl.mjs} +1 -1
  43. package/dist/chunks/{component-HighWayEarlyWarningRed-BJCUNxvZ.mjs → component-HighWayEarlyWarningRed-BwmqvV6c.mjs} +2 -2
  44. package/dist/chunks/{component-HighWayFreeze-B-K-UGUx.mjs → component-HighWayFreeze-DyDyOInt.mjs} +2 -2
  45. package/dist/chunks/{component-HighwayLiveAlarm-VUsOlz-6.mjs → component-HighwayLiveAlarm-DDhriJHu.mjs} +2 -2
  46. package/dist/chunks/{component-HighwayLiveAlarmNew-DSJwUZjW.mjs → component-HighwayLiveAlarmNew-Dxf6DUyI.mjs} +3 -3
  47. package/dist/chunks/{component-HighwayStations-Bcop09xe.mjs → component-HighwayStations-B-h6dG6Y.mjs} +2 -2
  48. package/dist/chunks/{component-HighwayWeatherForecast-i9LhEzub.mjs → component-HighwayWeatherForecast-BVj7aWS1.mjs} +5 -5
  49. package/dist/chunks/{component-IframeWeb-DfNcuMhw.mjs → component-IframeWeb-B2CTwN6w.mjs} +1 -1
  50. package/dist/chunks/{component-ImageGeneration-DVUghC8G.mjs → component-ImageGeneration-70AuumKi.mjs} +560 -321
  51. package/dist/chunks/{component-IntroducePic-CVSFpdsQ.mjs → component-IntroducePic-Bo227tKg.mjs} +1 -1
  52. package/dist/chunks/{component-LithiumBatteryMiningArea-Cypkj4BH.mjs → component-LithiumBatteryMiningArea-BDFvxMfk.mjs} +2 -2
  53. package/dist/chunks/{component-MapPopup-DgdHZtEE.mjs → component-MapPopup-vqI8jKFt.mjs} +1 -1
  54. package/dist/chunks/{component-MaterialPreview-DYY0A9il.mjs → component-MaterialPreview-CUz2PkU0.mjs} +1 -1
  55. package/dist/chunks/{component-PieLegend-B9IbTtgM.mjs → component-PieLegend-BIImVR6x.mjs} +1 -1
  56. package/dist/chunks/{component-PrecipitationRanking-C1SiHePw.mjs → component-PrecipitationRanking-Ct4OY0FJ.mjs} +3 -3
  57. package/dist/chunks/{component-RadarChart-jfRsO_e5.mjs → component-RadarChart-7kA3pjCB.mjs} +2 -2
  58. package/dist/chunks/{component-RadarLegend-D8bpZUG7.mjs → component-RadarLegend-ByCdufPU.mjs} +1 -1
  59. package/dist/chunks/{component-RadarShortTerm-CPV04O7Y.mjs → component-RadarShortTerm-pixyOE-9.mjs} +4 -4
  60. package/dist/chunks/{component-RadarTime-DMDNBgXp.mjs → component-RadarTime-DuIABgoI.mjs} +2 -2
  61. package/dist/chunks/{component-RenderMarkdown-6mcPpawU.mjs → component-RenderMarkdown-Bn2qLtnE.mjs} +2 -2
  62. package/dist/chunks/{component-ReservoirLiveAlarm-4lhpOle1.mjs → component-ReservoirLiveAlarm-C-NS9Erh.mjs} +3 -3
  63. package/dist/chunks/{component-ServiceMaterial-DlkZAyjh.mjs → component-ServiceMaterial-BVatsrsj.mjs} +2 -2
  64. package/dist/chunks/{component-ServiceMaterialsBtn-BbDyaUrK.mjs → component-ServiceMaterialsBtn-BgMw_lBj.mjs} +2 -2
  65. package/dist/chunks/{component-StationDialog-BlyiU8y4.mjs → component-StationDialog-_pkrpDnI.mjs} +3 -3
  66. package/dist/chunks/{component-StationList-DSmfGdBz.mjs → component-StationList-D4XTo6r2.mjs} +3 -3
  67. package/dist/chunks/{component-TimeBasedForecast-BGDjpUnz.mjs → component-TimeBasedForecast-4ZZ7ZnCH.mjs} +4 -4
  68. package/dist/chunks/{component-Typhoon-BG_WfKEI.mjs → component-Typhoon-DKmZhXAu.mjs} +2 -2
  69. package/dist/chunks/{component-WarningLine-DSj25DNY.mjs → component-WarningLine-B-2b5J3R.mjs} +2 -2
  70. package/dist/chunks/{component-WarningSignal-BiKwmQVC.mjs → component-WarningSignal-Dv03xQ5u.mjs} +3 -3
  71. package/dist/chunks/{component-WeatherForecast-B8PrFpv0.mjs → component-WeatherForecast-DqdD9JUX.mjs} +4 -4
  72. package/dist/chunks/{component-YCDataMonitor-BbkgMPoo.mjs → component-YCDataMonitor-BPflVY09.mjs} +1 -1
  73. package/dist/chunks/component-YCDataService-CniJWhHF.mjs +580 -0
  74. package/dist/chunks/{component-YCHighWaySummary-CB3sEooz.mjs → component-YCHighWaySummary-CvW4Oc_G.mjs} +2 -2
  75. package/dist/chunks/{component-YCHome-pFXXcjjB.mjs → component-YCHome-BNYalrzu.mjs} +4 -4
  76. package/dist/chunks/{component-YCHomeLegend-BYmh2cQ5.mjs → component-YCHomeLegend-CpA6i_j6.mjs} +2 -2
  77. package/dist/chunks/{component-YCLoginNew-BnkvuCcd.mjs → component-YCLoginNew-BfAbQH6O.mjs} +2 -2
  78. package/dist/chunks/{component-YCServiceSummary-B7o9Xpv_.mjs → component-YCServiceSummary-_qQSJu5H.mjs} +264 -167
  79. package/dist/components/GridData/GridData.vue.d.ts +50 -3
  80. package/dist/nxd-plugin.mjs +73 -73
  81. package/dist/styles/component-Agent.css +1 -1
  82. package/dist/styles/component-GridData.css +1 -1
  83. package/dist/styles/component-YCDataService.css +1 -1
  84. package/dist/styles/component-YCLoginNew.css +1 -1
  85. package/dist/styles/component-YCServiceSummary.css +1 -1
  86. package/package.json +1 -1
  87. package/dist/chunks/GridData-BV6wWY9y.mjs +0 -2
  88. package/dist/chunks/YCServiceSummary-RXbZiFJQ.mjs +0 -2
  89. package/dist/chunks/component-GridData-BkGj8Dsc.mjs +0 -70
  90. package/dist/chunks/component-YCDataService-CDMO1O3G.mjs +0 -412
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nxd-plugin",
3
- "version": "1.8.46",
3
+ "version": "1.8.48",
4
4
  "main": "dist/nxd-plugin.mjs",
5
5
  "module": "dist/nxd-plugin.mjs",
6
6
  "types": "dist/src/index.d.ts",
@@ -1,2 +0,0 @@
1
- import { t as e } from "./component-GridData-BkGj8Dsc.mjs";
2
- export { e as default };
@@ -1,2 +0,0 @@
1
- import { t as e } from "./component-YCServiceSummary-B7o9Xpv_.mjs";
2
- export { e as default };
@@ -1,70 +0,0 @@
1
- import "./component-AqiMonitor-BJXlyOxH.mjs";
2
- import { p as e } from "./component-Agent-CAxRiXVu.mjs";
3
- import { Fragment as t, createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeClass as a, onMounted as o, openBlock as s, reactive as c, ref as l, renderList as u, toDisplayString as d } from "vue";
4
- //#region src/components/GridData/GridData.vue?vue&type=script&setup=true&lang.ts
5
- var f = { class: "GridData" }, p = { class: "GridData__body" }, m = { class: "GridData__elements" }, h = ["onClick"], g = { class: "GridData__row" }, _ = { class: "GridData__row-opts" }, v = { class: "GridData__row" }, y = { class: "GridData__row-opts" }, b = ["onClick"], x = { class: "GridData__layers" }, S = /* @__PURE__ */ e(/* @__PURE__ */ i({
6
- __name: "GridData",
7
- emits: ["close"],
8
- setup(e, { emit: i }) {
9
- let S = i, C = [
10
- "降水",
11
- "大风",
12
- "温度",
13
- "相对湿度",
14
- "能见度"
15
- ], w = l("降水"), T = l("live"), E = [
16
- "1h",
17
- "2h",
18
- "3h",
19
- "6h",
20
- "12h",
21
- "24h",
22
- "48h"
23
- ], D = l("1h"), O = c({
24
- seban: !1,
25
- grid: !1
26
- });
27
- o(() => {
28
- k();
29
- });
30
- let k = async () => {}, A = () => {
31
- S("close", "GridData");
32
- };
33
- return (e, i) => (s(), n("div", f, [r("div", { class: "GridData__head" }, [r("div", { class: "GridData__head-top" }, [i[4] ||= r("div", { class: "GridData__head-title" }, "网格数据", -1), r("div", {
34
- class: "closeBtn",
35
- onClick: A,
36
- title: "关闭"
37
- })]), i[5] ||= r("img", {
38
- class: "GridData__head-line",
39
- 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",
40
- alt: ""
41
- }, null, -1)]), r("div", p, [
42
- r("div", m, [(s(), n(t, null, u(C, (e) => r("div", {
43
- class: a(["GridData__element", { active: w.value === e }]),
44
- key: e,
45
- onClick: (t) => w.value = e
46
- }, d(e), 11, h)), 64))]),
47
- r("div", g, [i[6] ||= r("div", { class: "GridData__row-label" }, "类型", -1), r("div", _, [r("div", {
48
- class: a(["GridData__opt", { active: T.value === "live" }]),
49
- onClick: i[0] ||= (e) => T.value = "live"
50
- }, "实况 ", 2), r("div", {
51
- class: a(["GridData__opt", { active: T.value === "forecast" }]),
52
- onClick: i[1] ||= (e) => T.value = "forecast"
53
- }, "预报 ", 2)])]),
54
- r("div", v, [i[7] ||= r("div", { class: "GridData__row-label" }, "小时", -1), r("div", y, [(s(), n(t, null, u(E, (e) => r("div", {
55
- class: a(["GridData__opt", { active: D.value === e }]),
56
- key: e,
57
- onClick: (t) => D.value = e
58
- }, d(e), 11, b)), 64))])]),
59
- r("div", x, [r("div", {
60
- class: a(["GridData__layer", { active: O.seban }]),
61
- onClick: i[2] ||= (e) => O.seban = !O.seban
62
- }, [...i[8] ||= [r("span", { class: "GridData__layer-check" }, null, -1), r("span", { class: "GridData__layer-name" }, "色斑图", -1)]], 2), r("div", {
63
- class: a(["GridData__layer", { active: O.grid }]),
64
- onClick: i[3] ||= (e) => O.grid = !O.grid
65
- }, [...i[9] ||= [r("span", { class: "GridData__layer-check" }, null, -1), r("span", { class: "GridData__layer-name" }, "网格", -1)]], 2)])
66
- ])]));
67
- }
68
- }), [["__scopeId", "data-v-457faea3"]]);
69
- //#endregion
70
- export { S as t };
@@ -1,412 +0,0 @@
1
- import { g as e, p as t } from "./component-Agent-CAxRiXVu.mjs";
2
- import { a as n } from "./component-HdFarmStationDialog-OU6FdHI4.mjs";
3
- import { t as r } from "./component-YCDataMonitor-BbkgMPoo.mjs";
4
- import { ElConfigProvider as i, ElDatePicker as a, ElInput as o, ElLoadingDirective as s } from "element-plus/es";
5
- import { Fragment as c, computed as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, normalizeClass as g, onBeforeUnmount as _, onMounted as v, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, vShow as w, withCtx as T, withDirectives as E } from "vue";
6
- import "element-plus/es/components/loading/style/css";
7
- import "element-plus/es/components/input/style/css";
8
- import D from "element-plus/es/locale/lang/zh-cn";
9
- import "element-plus/es/components/date-picker/style/css";
10
- //#region src/components/YCRealTimeTable/YCRealTimeTable.vue?vue&type=script&setup=true&lang.ts
11
- var O = {
12
- class: "YCRealTimeTable",
13
- "element-loading-background": "rgba(0, 0, 0, 0.3)"
14
- }, k = { class: "YCRealTimeTable-summary" }, A = { class: "summary-table" }, j = { class: "summary-head" }, ee = { class: "summary-body" }, te = { class: "summary-cell summary-cell-label" }, ne = { class: "YCRealTimeTable-toolbar" }, re = { class: "filter-group" }, M = { class: "YCRealTimeTable-detail" }, N = { class: "detail-table" }, P = { class: "detail-head" }, F = ["onClick"], I = { class: "detail-body" }, L = { class: "detail-cell detail-cell-index" }, R = { class: "detail-cell" }, z = { class: "detail-cell" }, B = { class: "detail-cell" }, V = { class: "detail-cell" }, H = { class: "detail-cell" }, U = { class: "detail-cell" }, W = { class: "detail-cell" }, G = { class: "detail-cell" }, K = /* @__PURE__ */ t(/* @__PURE__ */ h({
15
- __name: "YCRealTimeTable",
16
- props: {
17
- appKey: {
18
- type: String,
19
- default: ""
20
- },
21
- appSalt: {
22
- type: String,
23
- default: ""
24
- },
25
- baseHttp: {
26
- type: String,
27
- default: ""
28
- },
29
- ids: {
30
- type: Object,
31
- default: () => ({})
32
- }
33
- },
34
- setup(t) {
35
- let r = t, i = b(!1), a = b([]), h = [
36
- "5分钟降水量",
37
- "当前小时雨量(测试)",
38
- "1小时雨量",
39
- "3小时雨量",
40
- "20时至当前雨量",
41
- "24小时雨量",
42
- "极大风速",
43
- "能见度",
44
- "最小能见度"
45
- ], C = b([]), w = b([]), T = [
46
- {
47
- key: "index",
48
- label: "序号",
49
- sortable: !1
50
- },
51
- {
52
- key: "county",
53
- label: "县名",
54
- sortable: !1
55
- },
56
- {
57
- key: "station",
58
- label: "站名",
59
- sortable: !1
60
- },
61
- {
62
- key: "time",
63
- label: "时间",
64
- sortable: !0
65
- },
66
- {
67
- key: "rain24",
68
- label: "24小时雨量",
69
- sortable: !0
70
- },
71
- {
72
- key: "rain20",
73
- label: "20时至现在雨量",
74
- sortable: !0
75
- },
76
- {
77
- key: "rain3",
78
- label: "3小时雨量",
79
- sortable: !0
80
- },
81
- {
82
- key: "rain1",
83
- label: "1小时雨量",
84
- sortable: !0
85
- },
86
- {
87
- key: "rainCurrent",
88
- label: "当前小时雨量",
89
- sortable: !0
90
- },
91
- {
92
- key: "rain5m",
93
- label: "5分钟降水量",
94
- sortable: !0
95
- },
96
- {
97
- key: "temp",
98
- label: "气温",
99
- sortable: !0
100
- },
101
- {
102
- key: "windDir",
103
- label: "极大风向",
104
- sortable: !1
105
- },
106
- {
107
- key: "windSpeed",
108
- label: "极大风速",
109
- sortable: !0
110
- },
111
- {
112
- key: "humidity",
113
- label: "湿度",
114
- sortable: !0
115
- },
116
- {
117
- key: "pressure",
118
- label: "气压",
119
- sortable: !0
120
- },
121
- {
122
- key: "_voltage",
123
- label: "电压",
124
- sortable: !0
125
- }
126
- ], D = b(!0), K = b(""), q = b(""), J = b(null), Y = b(null), X = b(null), Z = l(() => {
127
- let e = w.value;
128
- D.value || (e = e.filter((e) => e.county === "袁州区"));
129
- let t = K.value.trim();
130
- t && (e = e.filter((e) => e.county.includes(t)));
131
- let n = q.value.trim();
132
- return n && (e = e.filter((e) => e.station.includes(n))), e;
133
- }), ie = l(() => {
134
- let e = [...Z.value];
135
- if (!J.value || !Y.value) return e;
136
- let t = J.value;
137
- return e.sort((e, n) => {
138
- let r = e[t], i = n[t], a = r === null || r === "" || r === void 0, o = i === null || i === "" || i === void 0;
139
- if (a && o) return 0;
140
- if (a) return 1;
141
- if (o) return -1;
142
- let s, c;
143
- if (t === "time") {
144
- if (s = $(String(r)), c = $(String(i)), s < 0 && c < 0) return 0;
145
- if (s < 0) return 1;
146
- if (c < 0) return -1;
147
- } else s = Number(r), c = Number(i);
148
- return Y.value === "asc" ? s - c : c - s;
149
- });
150
- });
151
- v(() => {
152
- Q(), X.value = setInterval(() => {
153
- Q();
154
- }, 1e3 * 60 * 10);
155
- }), _(() => {
156
- clearInterval(X.value), X.value = null;
157
- });
158
- let Q = async () => {
159
- i.value = !0;
160
- let t = await e({
161
- appKey: r.appKey,
162
- appSalt: r.appSalt,
163
- id: r.ids.YCRealTimeTable_data.id,
164
- variables: {},
165
- baseHttp: r.baseHttp,
166
- reqType: r.ids.YCRealTimeTable_data.reqType,
167
- isFormData: r.ids.YCRealTimeTable_data.isFormData
168
- }), o = t.data.result.output || "{}", s = JSON.parse(o);
169
- console.log("res_output", s.data);
170
- let c = t.data.result.voltage || [], l = new Map(c.map((e) => [e.station_id, e])), { nationalStations: u, otherStations: d } = s.data || {
171
- nationalStations: [],
172
- otherStations: []
173
- };
174
- a.value = (u || []).map((e) => e.stationName);
175
- let f = (e) => e == null || e === "" ? "" : e;
176
- C.value = h.map((e) => (u || []).map((t) => {
177
- switch (e) {
178
- case "5分钟降水量": return {
179
- value: f(t.rain5m),
180
- isWarn: t.rain5mThreshold === 1
181
- };
182
- case "当前小时雨量(测试)": return {
183
- value: f(t.currentHourRain),
184
- isWarn: t.currentHourRainThreshold === 1
185
- };
186
- case "1小时雨量": return {
187
- value: f(t.rain1h),
188
- isWarn: t.rain1hThreshold === 1
189
- };
190
- case "3小时雨量": return {
191
- value: f(t.rain3h),
192
- isWarn: t.rain3hThreshold === 1
193
- };
194
- case "20时至当前雨量": return {
195
- value: f(t.rain20ToNow),
196
- isWarn: !1
197
- };
198
- case "24小时雨量": return {
199
- value: f(t.rain24h),
200
- isWarn: !1
201
- };
202
- case "极大风速": return {
203
- value: f(t.winSInstMax),
204
- isWarn: !1
205
- };
206
- case "能见度": return {
207
- value: f(t.visHor1mi),
208
- isWarn: t.visHor1miThreshold === 1
209
- };
210
- case "最小能见度": return {
211
- value: f(t.visMin),
212
- isWarn: !1
213
- };
214
- default: return {
215
- value: "",
216
- isWarn: !1
217
- };
218
- }
219
- })), w.value = (d || []).map((e) => {
220
- let t = "";
221
- if (e.datetime) {
222
- let n = e.datetime.match(/(\d{2}):(\d{2}):\d{2}$/);
223
- n && (t = `${n[1]}时${n[2]}分`);
224
- }
225
- let r = l.get(e.stationIdC), i = r ? f(r.ua) : "", a = r ? Number(r.ua) < Number(r.warning_ua) : !1;
226
- return {
227
- county: e.cnty || "",
228
- station: e.stationName || "",
229
- time: t,
230
- rain24: f(e.rain24h),
231
- rain20: f(e.rain20ToNow),
232
- rain3: f(e.rain3h),
233
- rain3Warn: e.rain3hThreshold === 1,
234
- rain1: f(e.rain1h),
235
- rain1Warn: e.rain1hThreshold === 1,
236
- rainCurrent: f(e.currentHourRain),
237
- rainCurrentWarn: e.currentHourRainThreshold === 1,
238
- rain5m: f(e.rain5m),
239
- rain5mWarn: e.rain5mThreshold === 1,
240
- temp: f(e.tem),
241
- tempWarn: e.temThreshold === 1,
242
- windDir: e.winDInstMax ? n(e.winDInstMax) : "",
243
- windSpeed: f(e.winSInstMax),
244
- windSpeedWarn: e.winSInstMaxThreshold === 1,
245
- humidity: f(e.rhu),
246
- pressure: f(e.prs),
247
- _voltage: i,
248
- _voltageWarn: a
249
- };
250
- }), setTimeout(() => {
251
- i.value = !1;
252
- }, 300);
253
- }, $ = (e) => {
254
- if (!e) return -1;
255
- let t = e.match(/(\d+)时(\d+)分/);
256
- return t ? Number(t[1]) * 60 + Number(t[2]) : -1;
257
- }, ae = (e, t) => t == null || t === "" ? "" : t, oe = (e) => {
258
- J.value === e ? Y.value === "desc" ? Y.value = "asc" : Y.value === "asc" ? (J.value = null, Y.value = null) : Y.value = "desc" : (J.value = e, Y.value = "desc");
259
- };
260
- return (e, t) => {
261
- let n = o, r = s;
262
- return E((y(), d("div", O, [
263
- f("div", k, [f("div", A, [f("div", j, [t[3] ||= f("div", { class: "summary-cell summary-cell-label" }, "监测要素", -1), (y(!0), d(c, null, x(a.value, (e, t) => (y(), d("div", {
264
- class: "summary-cell",
265
- key: t
266
- }, S(e), 1))), 128))]), f("div", ee, [(y(), d(c, null, x(h, (e, t) => f("div", {
267
- class: "summary-row",
268
- key: e
269
- }, [f("div", te, S(e), 1), (y(!0), d(c, null, x(a.value, (n, r) => (y(), d("div", {
270
- class: g(["summary-cell", { "is-warn": C.value[t]?.[r]?.isWarn }]),
271
- key: r
272
- }, S(ae(e, C.value[t]?.[r]?.value)), 3))), 128))])), 64))])])]),
273
- f("div", ne, [f("div", re, [
274
- f("button", {
275
- class: g(["city-btn", { active: D.value }]),
276
- onClick: t[0] ||= (e) => D.value = !D.value
277
- }, "全市", 2),
278
- m(n, {
279
- modelValue: K.value,
280
- "onUpdate:modelValue": t[1] ||= (e) => K.value = e,
281
- placeholder: "县名搜索",
282
- clearable: "",
283
- class: "filter-input"
284
- }, null, 8, ["modelValue"]),
285
- m(n, {
286
- modelValue: q.value,
287
- "onUpdate:modelValue": t[2] ||= (e) => q.value = e,
288
- placeholder: "站名搜索",
289
- clearable: "",
290
- class: "filter-input"
291
- }, null, 8, ["modelValue"])
292
- ])]),
293
- f("div", M, [f("div", N, [f("div", P, [(y(), d(c, null, x(T, (e) => f("div", {
294
- class: g(["detail-cell", {
295
- "is-sortable": e.sortable,
296
- "is-active": J.value === e.key
297
- }]),
298
- key: e.key,
299
- onClick: (t) => e.sortable && oe(e.key)
300
- }, [p(S(e.label) + " ", 1), e.sortable ? (y(), d("span", {
301
- key: 0,
302
- class: g(["sort-icon", J.value === e.key ? Y.value : ""])
303
- }, null, 2)) : u("", !0)], 10, F)), 64))]), f("div", I, [(y(!0), d(c, null, x(ie.value, (e, t) => (y(), d("div", {
304
- class: "detail-row",
305
- key: `${e.county}-${e.station}-${t}`
306
- }, [
307
- f("div", L, S(t + 1), 1),
308
- f("div", R, S(e.county), 1),
309
- f("div", z, S(e.station), 1),
310
- f("div", B, S(e.time), 1),
311
- f("div", V, S(e.rain24), 1),
312
- f("div", H, S(e.rain20), 1),
313
- f("div", { class: g(["detail-cell", { "is-warn": e.rain3Warn }]) }, S(e.rain3), 3),
314
- f("div", { class: g(["detail-cell", { "is-warn": e.rain1Warn }]) }, S(e.rain1), 3),
315
- f("div", { class: g(["detail-cell", { "is-warn": e.rainCurrentWarn }]) }, S(e.rainCurrent), 3),
316
- f("div", { class: g(["detail-cell", { "is-warn": e.rain5mWarn }]) }, S(e.rain5m), 3),
317
- f("div", { class: g(["detail-cell", { "is-warn": e.tempWarn }]) }, S(e.temp), 3),
318
- f("div", U, S(e.windDir), 1),
319
- f("div", { class: g(["detail-cell", { "is-warn": e.windSpeedWarn }]) }, S(e.windSpeed), 3),
320
- f("div", W, S(e.humidity), 1),
321
- f("div", G, S(e.pressure), 1),
322
- f("div", { class: g(["detail-cell", { "is-warn": e._voltageWarn }]) }, S(e._voltage), 3)
323
- ]))), 128))])])])
324
- ])), [[r, i.value]]);
325
- };
326
- }
327
- }), [["__scopeId", "data-v-88256bff"]]), q = { class: "YCDataService" }, J = { class: "YCDataService-topbar" }, Y = { class: "page-switch" }, X = {
328
- key: 0,
329
- class: "YCDataService-filter"
330
- }, Z = /* @__PURE__ */ t(/* @__PURE__ */ h({
331
- __name: "YCDataService",
332
- props: {
333
- appKey: {
334
- type: String,
335
- default: ""
336
- },
337
- appSalt: {
338
- type: String,
339
- default: ""
340
- },
341
- baseHttp: {
342
- type: String,
343
- default: ""
344
- },
345
- ids: {
346
- type: Object,
347
- default: () => ({})
348
- }
349
- },
350
- setup(e) {
351
- let t = b("dataService"), n = b((/* @__PURE__ */ new Date()).toISOString().slice(0, 10)), o = b(null), s = () => {
352
- o.value?.handleSearch?.();
353
- };
354
- v(() => {
355
- c();
356
- });
357
- let c = async () => {};
358
- return (c, l) => {
359
- let p = a, h = i;
360
- return y(), d("div", q, [
361
- f("div", J, [f("div", Y, [f("div", {
362
- class: g(["page-switch-item", { active: t.value === "dataService" }]),
363
- onClick: l[0] ||= (e) => t.value = "dataService"
364
- }, " 数据服务 ", 2), f("div", {
365
- class: g(["page-switch-item", { active: t.value === "dataMonitor" }]),
366
- onClick: l[1] ||= (e) => t.value = "dataMonitor"
367
- }, " 数据质量检查 ", 2)]), t.value === "dataMonitor" ? (y(), d("div", X, [m(h, { locale: C(D) }, {
368
- default: T(() => [m(p, {
369
- modelValue: n.value,
370
- "onUpdate:modelValue": l[2] ||= (e) => n.value = e,
371
- type: "date",
372
- placeholder: "选择日期",
373
- "value-format": "YYYY-MM-DD",
374
- class: "date-picker"
375
- }, null, 8, ["modelValue"])]),
376
- _: 1
377
- }, 8, ["locale"]), f("button", {
378
- class: "search-btn",
379
- onClick: s
380
- }, "查询")])) : u("", !0)]),
381
- E(m(K, {
382
- appKey: e.appKey,
383
- appSalt: e.appSalt,
384
- baseHttp: e.baseHttp,
385
- ids: e.ids
386
- }, null, 8, [
387
- "appKey",
388
- "appSalt",
389
- "baseHttp",
390
- "ids"
391
- ]), [[w, t.value === "dataService"]]),
392
- E(m(r, {
393
- ref_key: "dataMonitorRef",
394
- ref: o,
395
- appKey: e.appKey,
396
- appSalt: e.appSalt,
397
- baseHttp: e.baseHttp,
398
- ids: e.ids,
399
- date: n.value
400
- }, null, 8, [
401
- "appKey",
402
- "appSalt",
403
- "baseHttp",
404
- "ids",
405
- "date"
406
- ]), [[w, t.value === "dataMonitor"]])
407
- ]);
408
- };
409
- }
410
- }), [["__scopeId", "data-v-7ea3b34c"]]);
411
- //#endregion
412
- export { Z as t };