mixdashboards 1.0.71 → 1.0.73

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 (470) hide show
  1. package/dist/{BaseComponent-D5tlYehc.js → BaseComponent-CBagahPU.js} +138 -109
  2. package/dist/BaseComponent-Chnv4fBT.cjs +1 -0
  3. package/dist/{EChartComponentBase-CAabYXSj.js → EChartComponentBase-cFfawl6h.js} +2 -2
  4. package/dist/{EChartComponentBase-D4wMej9X.cjs → EChartComponentBase-dLE5F7Tt.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-Th4ZNdCb.js → EmergencyPlanPanel--jTGG89o.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-D96XjhRq.cjs → EmergencyPlanPanel-BJb-Bbxh.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-rn2Bp0Gx.cjs → HistoryPlanDialog-C-QPdV4V.cjs} +1 -1
  8. package/dist/{HistoryPlanDialog-D2mQLhkO.js → HistoryPlanDialog-DerClU2U.js} +1 -1
  9. package/dist/{MonitoringMap-BZ98NYTJ.cjs → MonitoringMap-B6RMbiIS.cjs} +1 -1
  10. package/dist/{MonitoringMap-Coozb35G.js → MonitoringMap-CNaGsq83.js} +2 -2
  11. package/dist/UniverSheet-CM-vvc23.cjs +1 -0
  12. package/dist/{UniverSheet-CJCunVAM.js → UniverSheet-KI09RqKm.js} +16 -15
  13. package/dist/{accelerationChart-DacjcSHD.js → accelerationChart-D7KNk5fI.js} +61 -59
  14. package/dist/accelerationChart-HBCb2bRW.cjs +6 -0
  15. package/dist/{actionItem-d-4p5HZK.js → actionItem-BmNYzAXu.js} +48 -41
  16. package/dist/actionItem-Bx4mW0jP.cjs +1 -0
  17. package/dist/alarmLevelChart-Cvnw4z1w.cjs +2 -0
  18. package/dist/{alarmLevelChart-DddN1NVy.js → alarmLevelChart-DdSw2s7W.js} +91 -46
  19. package/dist/{alertTable-Q-Waa5jf.js → alertTable-CC3c8DFb.js} +40 -39
  20. package/dist/alertTable-hH6HA9pY.cjs +1 -0
  21. package/dist/aliasObjectSelectorDemo-C7E_fnCf.cjs +1 -0
  22. package/dist/{aliasObjectSelectorDemo-BZygQw9k.js → aliasObjectSelectorDemo-yDiavTpG.js} +11 -10
  23. package/dist/{annualRainfallChart-CthANCvn.js → annualRainfallChart-B9ar8vo8.js} +32 -30
  24. package/dist/annualRainfallChart-C6JLSPIf.cjs +1 -0
  25. package/dist/{aqi-C_HnKsjh.js → aqi-BNc5QCM3.js} +21 -19
  26. package/dist/{aqi-BFW_8xYd.cjs → aqi-DEiCVIVa.cjs} +3 -3
  27. package/dist/aqiIndass-Bowic_Pc.cjs +3 -0
  28. package/dist/{aqiIndass-NVRa3lmj.js → aqiIndass-CAGV8_Uf.js} +41 -40
  29. package/dist/{areaDeformCurve-mQiOHdtN.js → areaDeformCurve-CSpR060t.js} +51 -49
  30. package/dist/areaDeformCurve-CVy23kV2.cjs +1 -0
  31. package/dist/arrayCard-NqoQKcE9.cjs +1 -0
  32. package/dist/{arrayCard-DZitcjMs.js → arrayCard-PPDb7U6X.js} +29 -28
  33. package/dist/{audio-CDAMVEgC.js → audio-BJPFIQIr.js} +42 -41
  34. package/dist/audio-Bw-GaYe1.cjs +1 -0
  35. package/dist/{bar--JrlRud9.js → bar-C38h_mUA.js} +72 -70
  36. package/dist/{bar-C7uQADV1.cjs → bar-Cru6WosS.cjs} +2 -2
  37. package/dist/bmp-BXaEkkpa.cjs +1 -0
  38. package/dist/{bmp-DrVcnYxy.js → bmp-BnSOaFEr.js} +15 -14
  39. package/dist/box-CKuGsh2k.cjs +1 -0
  40. package/dist/{box-szcLhted.js → box-DIHVOqrV.js} +58 -57
  41. package/dist/chartConfigPanel-BVdVXbs6.cjs +1 -0
  42. package/dist/{chartConfigPanel-C32o1gyJ.js → chartConfigPanel-D1rO6SGh.js} +86 -79
  43. package/dist/{circleBar-CeL2rqMJ.cjs → circleBar-BzXqA-Cz.cjs} +3 -3
  44. package/dist/{circleBar-BmTjsLHo.js → circleBar-CBLcp4Xi.js} +27 -25
  45. package/dist/{clock-CuQpD76K.js → clock-4AMfFDGC.js} +35 -34
  46. package/dist/clock-DmWyBpo-.cjs +1 -0
  47. package/dist/clt-CmPPtp9c.cjs +1 -0
  48. package/dist/{clt-XCswxZ6i.js → clt-D5i_8-pq.js} +60 -59
  49. package/dist/cmc-8jH3DGv9.cjs +1 -0
  50. package/dist/{cmc-CXmAv6fz.js → cmc-Cjb5w3om.js} +23 -22
  51. package/dist/{cmp-Duz_v-LC.js → cmp-COJzlQPa.js} +19 -18
  52. package/dist/{cmp-DmpxjexT.cjs → cmp-CpmGtNal.cjs} +2 -2
  53. package/dist/{composite-CWgy-w61.js → composite-CsFgfxih.js} +37 -36
  54. package/dist/{composite-DdHASMFQ.cjs → composite-DLmzZNIj.cjs} +3 -3
  55. package/dist/{conclusionCard-BtB0rARK.js → conclusionCard-BQUlLFde.js} +15 -14
  56. package/dist/conclusionCard-C-TT6znN.cjs +1 -0
  57. package/dist/{controlList-C0AQ8Yb8.js → controlList-5D5UIDQL.js} +40 -38
  58. package/dist/controlList-CIwzKylK.cjs +1 -0
  59. package/dist/{controlRecordList-CSPKG1HU.js → controlRecordList-Cp5mmEQ1.js} +55 -53
  60. package/dist/controlRecordList-uEQ3ohmB.cjs +1 -0
  61. package/dist/controlRecordListAPP-B5d4x_xH.cjs +1 -0
  62. package/dist/controlRecordListAPP-p_skbQVD.js +502 -0
  63. package/dist/{crd-DQruf9o3.js → crd-8gRWMf2Y.js} +14 -13
  64. package/dist/crd-Dfl2XKAx.cjs +1 -0
  65. package/dist/{ctrBtn-jEWTt_f2.js → ctrBtn-BzmFxucy.js} +106 -107
  66. package/dist/ctrBtn-OOgL9esv.cjs +1 -0
  67. package/dist/{ctrSet-C4wCODMY.js → ctrSet-Btg2T9w6.js} +24 -23
  68. package/dist/ctrSet-CifyJt05.cjs +1 -0
  69. package/dist/ctrSwitch-6nMHbIE7.js +206 -0
  70. package/dist/ctrSwitch-C8mwxLPe.cjs +1 -0
  71. package/dist/{dataManagement-BQVZS7Hi.js → dataManagement-BZiSmktM.js} +52 -45
  72. package/dist/dataManagement-sQpuBaDz.cjs +1 -0
  73. package/dist/{dataReport-vP1LBJjE.js → dataReport-CbJzXeCE.js} +25 -24
  74. package/dist/{dataReport-DRopth3A.cjs → dataReport-D9Q9c43B.cjs} +2 -2
  75. package/dist/{dataTable-C2AgSR36.cjs → dataTable-BJ4SVFbu.cjs} +1 -1
  76. package/dist/{dataTable-B1FQ3XIq.js → dataTable-BuBB0b-A.js} +1 -1
  77. package/dist/datetime-B66VgJL1.cjs +1 -0
  78. package/dist/{datetime-DU3rzi1v.js → datetime-DO03QrXz.js} +25 -24
  79. package/dist/deepClusterSlipSurface-BqT55vkY.cjs +1 -0
  80. package/dist/{deepClusterSlipSurface-BHwB0eu9.js → deepClusterSlipSurface-DpSAXgFf.js} +45 -43
  81. package/dist/{deepDataMatrix-C3uKZmon.js → deepDataMatrix-CPrIOv5r.js} +46 -45
  82. package/dist/deepDataMatrix-DZZaTMbD.cjs +1 -0
  83. package/dist/{deepDisplacement3D-BBYgB-rK.cjs → deepDisplacement3D-Cd9nwwPt.cjs} +3 -3
  84. package/dist/{deepDisplacement3D-CDNPul6D.js → deepDisplacement3D-JlMej7-5.js} +9 -7
  85. package/dist/{deepDisplacementChart-C_pwwgIC.js → deepDisplacementChart-BiDt60xI.js} +89 -88
  86. package/dist/deepDisplacementChart-CALM3gna.cjs +5 -0
  87. package/dist/deepDisplacementChart-CEaj2bUV.cjs +6 -0
  88. package/dist/{deepDisplacementChart-C6GQHO-J.js → deepDisplacementChart-CjlGpeHj.js} +54 -52
  89. package/dist/{deepDisplacementView-C837RNer.js → deepDisplacementView-BpUw-b-i.js} +37 -36
  90. package/dist/deepDisplacementView-CoSNzN1q.cjs +8 -0
  91. package/dist/deepNodeTemperatureChart-DPN0rYir.cjs +1 -0
  92. package/dist/{deepNodeTemperatureChart-BcH3ZNi4.js → deepNodeTemperatureChart-DfZq7kLx.js} +50 -48
  93. package/dist/{deepTangentAngleChart-DSpCyIdq.js → deepTangentAngleChart-Ca01hah9.js} +92 -90
  94. package/dist/deepTangentAngleChart-Dg9PJspK.cjs +1 -0
  95. package/dist/deepTemperatureField-BqDB97SW.cjs +1 -0
  96. package/dist/{deepTemperatureField-B2qIHL1-.js → deepTemperatureField-CYBTjhEp.js} +95 -93
  97. package/dist/deepTrendChart-B5BAHTeY.cjs +1 -0
  98. package/dist/{deepTrendChart-DFGSV17a.js → deepTrendChart-DBjxV7_A.js} +56 -54
  99. package/dist/{deviceOnlineStatus-CiIFdo9I.js → deviceOnlineStatus-1eoHCl_-.js} +58 -50
  100. package/dist/deviceOnlineStatus-DHzaAzCp.cjs +2 -0
  101. package/dist/deviceStatus-4BMy4qBD.cjs +1 -0
  102. package/dist/{deviceStatus-Dd1pqVnO.js → deviceStatus-90rQa1uj.js} +61 -60
  103. package/dist/{displacementDataTable-CGIHGxye.js → displacementDataTable-BArwj-xp.js} +52 -51
  104. package/dist/displacementDataTable-BLWjiaRQ.cjs +1 -0
  105. package/dist/{displacementTrajectoryChart-RL97CTML.js → displacementTrajectoryChart-CxOPJVlD.js} +34 -32
  106. package/dist/displacementTrajectoryChart-DfJMOCFJ.cjs +22 -0
  107. package/dist/{displacementTrendChart-Bqnv7hiP.js → displacementTrendChart-4E6cDsX8.js} +49 -48
  108. package/dist/displacementTrendChart-Cuxa5iTp.cjs +5 -0
  109. package/dist/{dxf-BQoArgPS.cjs → dxf-BgklkksV.cjs} +1 -1
  110. package/dist/{dxf-DBu1iA-r.js → dxf-BogwbJID.js} +5 -4
  111. package/dist/{dzc-DMVPjosV.cjs → dzc-CApfzriC.cjs} +2 -2
  112. package/dist/{dzc-7tLxe18d.js → dzc-D7tTBLaA.js} +24 -22
  113. package/dist/emergencyPlan-BuFz4XFc.cjs +1 -0
  114. package/dist/{emergencyPlan-C9Edkw51.js → emergencyPlan-CjbuX-N5.js} +19 -18
  115. package/dist/evn-BcSenXF3.cjs +1 -0
  116. package/dist/{evn-CeLoYCUr.js → evn-DTPm72ZM.js} +23 -22
  117. package/dist/evolutionChart-CrwR8i40.cjs +1 -0
  118. package/dist/{evolutionChart-DAlncdLU.js → evolutionChart-D1dVKWOt.js} +25 -23
  119. package/dist/{fileViewer-BFMFEN2f.js → fileViewer-BNHwlZRa.js} +57 -56
  120. package/dist/fileViewer-BUuST3Rp.cjs +1 -0
  121. package/dist/filterBar-BJzjPFFg.cjs +1 -0
  122. package/dist/{filterBar-qJJKdxYE.js → filterBar-CRJinh5K.js} +44 -43
  123. package/dist/fireCombustionCurve-BGdJ1ybj.cjs +1 -0
  124. package/dist/{fireCombustionCurve-DyRikhHw.js → fireCombustionCurve-BZ6qJ1kq.js} +69 -67
  125. package/dist/fireFilterBar-DZejT0oL.cjs +1 -0
  126. package/dist/{fireFilterBar-DkjBGPXa.js → fireFilterBar-KvvbsCsZ.js} +25 -24
  127. package/dist/{fireHistoryTable-ldXil5up.js → fireHistoryTable-80ygqnOG.js} +73 -65
  128. package/dist/fireHistoryTable-CMSGKb3w.cjs +3 -0
  129. package/dist/gag-1bvAZ5m6.cjs +1 -0
  130. package/dist/{gag-KZfFHn72.js → gag-D2obj7AF.js} +30 -28
  131. package/dist/{gasStationList-Btoo_olJ.js → gasStationList-DM-laJsi.js} +527 -526
  132. package/dist/gasStationList-DjJtXnqL.cjs +1 -0
  133. package/dist/{geo3dViewer-Cif9uFqd.cjs → geo3dViewer-CL_89mQf.cjs} +1 -1
  134. package/dist/{geo3dViewer-iZhkCiTP.js → geo3dViewer-FhmMIvMJ.js} +12 -5
  135. package/dist/{glbModel-MJZgDSJf.js → glbModel-B0nWYYJQ.js} +19 -18
  136. package/dist/{glbModel-2xydaxDT.cjs → glbModel-DakMJal6.cjs} +3 -3
  137. package/dist/{globalObjectSelector-CHtYGpi9.js → globalObjectSelector-Gv4srHhp.js} +79 -78
  138. package/dist/globalObjectSelector-jNzZxdnL.cjs +1 -0
  139. package/dist/{gnssFilterBar-CPis6bUI.js → gnssFilterBar-C4rpyNw3.js} +70 -63
  140. package/dist/gnssFilterBar-kEIW7Tjs.cjs +1 -0
  141. package/dist/{gnssHistoryTable-kHZY48EZ.js → gnssHistoryTable-CyMwQJ7_.js} +58 -50
  142. package/dist/gnssHistoryTable-DRKlP8-b.cjs +3 -0
  143. package/dist/{gnssMapView-BNIkieqL.cjs → gnssMapView-DpExCi0x.cjs} +4 -4
  144. package/dist/{gnssMapView-DXP8yz0v.js → gnssMapView-EVufCGrW.js} +174 -167
  145. package/dist/{gnssSectionProfile-DEUDEvJ1.js → gnssSectionProfile-CaJwF9wp.js} +41 -34
  146. package/dist/gnssSectionProfile-DdcOMdNC.cjs +1 -0
  147. package/dist/{gnssTimeSeriesChart-C_xqd0su.js → gnssTimeSeriesChart-iffDvMNx.js} +57 -49
  148. package/dist/gnssTimeSeriesChart-y11Y8k2-.cjs +1 -0
  149. package/dist/{gnssXYTrajectory-GqgFw_qK.js → gnssXYTrajectory-C_1fuLWn.js} +53 -45
  150. package/dist/gnssXYTrajectory-DGBGGDwi.cjs +5 -0
  151. package/dist/grd-C4hCrpvH.cjs +1 -0
  152. package/dist/{grd-QCuVN1jE.js → grd-FfuMQJb7.js} +43 -42
  153. package/dist/{grdIndass-BEcfZTYw.js → grdIndass-BTbZmPLZ.js} +30 -29
  154. package/dist/grdIndass-CyuRKD5H.cjs +1 -0
  155. package/dist/{grg-CMVrF5tB.js → grg-CcnI5kRY.js} +27 -26
  156. package/dist/grg-Cuxa17d6.cjs +1 -0
  157. package/dist/gridview-CKjBuTRq.cjs +1 -0
  158. package/dist/{gridview-Cd3Tqzph.js → gridview-ffVc5Wvg.js} +32 -31
  159. package/dist/groundwaterFilterBar-D3l7GLVY.cjs +1 -0
  160. package/dist/{groundwaterFilterBar-D7lrbzDC.js → groundwaterFilterBar-DaPR-kbl.js} +13 -12
  161. package/dist/groundwaterProfileChart-BxJKIPXF.cjs +11 -0
  162. package/dist/{groundwaterProfileChart-Bjtqz-Zv.js → groundwaterProfileChart-DoSx7WWp.js} +42 -40
  163. package/dist/groundwaterTimeCurve-Bp5MxM9k.cjs +1 -0
  164. package/dist/{groundwaterTimeCurve-Bu6vgAaC.js → groundwaterTimeCurve-D-SdVYeq.js} +57 -55
  165. package/dist/{groupCard-CPvAsuPb.cjs → groupCard-BzUQ8xY0.cjs} +1 -1
  166. package/dist/{groupCard-DQvEe6cc.js → groupCard-COMEkzIb.js} +29 -28
  167. package/dist/headerBar-iFe0YQKE.cjs +1 -0
  168. package/dist/{headerBar-CGOtSvFn.js → headerBar-ouXO8bzC.js} +48 -47
  169. package/dist/{history-D6C3tSut.js → history-BZ869y2d.js} +18 -18
  170. package/dist/{history-9ToM-rJ6.cjs → history-MxYUUwkm.cjs} +1 -1
  171. package/dist/index-DVqMfQVc.cjs +612 -0
  172. package/dist/{index-Bdq33405.js → index-DwPJu6XM.js} +1159 -1128
  173. package/dist/{insarDeformChart-Ls-cdqaP.js → insarDeformChart-5BhCUq8L.js} +24 -17
  174. package/dist/insarDeformChart-Ca3AMsBk.cjs +1 -0
  175. package/dist/{insarImageViewer-Dnke9JDG.js → insarImageViewer-DHNxmLpa.js} +41 -34
  176. package/dist/insarImageViewer-DWPsoHz6.cjs +1 -0
  177. package/dist/{kds-B4BKGG0r.js → kds-BYZC4pIM.js} +57 -50
  178. package/dist/{kds-BjX5tXhF.cjs → kds-Dpf_3WWj.cjs} +2 -2
  179. package/dist/{kpiCard-C77vHJ_E.js → kpiCard-CStPtl-c.js} +5 -4
  180. package/dist/kpiCard-OLJgA48-.cjs +2 -0
  181. package/dist/{landslideMap-BEkbnCqP.js → landslideMap-BUq0x7rd.js} +34 -33
  182. package/dist/landslideMap-JTdoQjW-.cjs +1 -0
  183. package/dist/{landslideWarning-C5upI2cf.js → landslideWarning-VAn9XGUj.js} +55 -54
  184. package/dist/landslideWarning-ZA5LCsIr.cjs +1 -0
  185. package/dist/{layerTabs-DoGw1Jfv.js → layerTabs-CAJ6f-2W.js} +40 -38
  186. package/dist/layerTabs-CdhowHB1.cjs +1 -0
  187. package/dist/{leaflet-src-BUWIqhPn.cjs → leaflet-src-CxFQ_Cn7.cjs} +1 -1
  188. package/dist/{leaflet-src-DFE_g2gF.js → leaflet-src-DNO2-OsP.js} +1 -1
  189. package/dist/{lerc-CXc9KSRL.js → lerc-bF2jqjoV.js} +2 -2
  190. package/dist/{lerc-BBgQP785.cjs → lerc-qU4WKXeS.cjs} +1 -1
  191. package/dist/{lin-ClO2MqZl.cjs → lin-BHI2KgyW.cjs} +2 -2
  192. package/dist/{lin-Difz8N88.js → lin-DbQw7wZw.js} +20 -18
  193. package/dist/linIndass-CIrObeZT.cjs +2 -0
  194. package/dist/{linIndass-DqXVOBh3.js → linIndass-Cd9Hjzs_.js} +31 -30
  195. package/dist/lst-BRsEe-Hq.cjs +1 -0
  196. package/dist/{lst-4RMMZZkY.js → lst-C3C2m1v_.js} +40 -39
  197. package/dist/{manualEntry-B3_4Z-Lj.js → manualEntry-B8TDMcDg.js} +29 -22
  198. package/dist/manualEntry-C3_WtYz8.cjs +1 -0
  199. package/dist/{mapBackground-B3OHQsXZ.js → mapBackground-BrVIQUcT.js} +21 -20
  200. package/dist/{mapBackground-Bmt-oZt6.cjs → mapBackground-Du7R_ICY.cjs} +2 -2
  201. package/dist/{mappingList-DVj7H206.js → mappingList-BpJUawmv.js} +22 -20
  202. package/dist/mappingList-C5OZ8oUx.cjs +1 -0
  203. package/dist/{markdownViewer-fheM5uV4.js → markdownViewer-CoRrvdY7.js} +16 -15
  204. package/dist/{markdownViewer-BAuNEWRt.cjs → markdownViewer-D96bwxEt.cjs} +2 -2
  205. package/dist/materialFileUrl-CubtnHeq.js +108 -0
  206. package/dist/materialFileUrl-DfPNm265.cjs +1 -0
  207. package/dist/{mix-control-modal-BoYynGT2.cjs → mix-control-modal-DwxwW65v.cjs} +1 -1
  208. package/dist/{mix-control-modal-BBiKe4MM.js → mix-control-modal-Qg_mzyT_.js} +1 -1
  209. package/dist/{mixGrid-BUjP1qv2.js → mixGrid-CtJWul6c.js} +44 -43
  210. package/dist/mixGrid-Hj0OJjkg.cjs +1 -0
  211. package/dist/mixMap-CJzmC0IR.cjs +1 -0
  212. package/dist/{mixMap-DPIwyKuP.js → mixMap-E36SDnEa.js} +36 -35
  213. package/dist/mixModel-BMRxhvWn.cjs +3 -0
  214. package/dist/{mixModel-CIdQp4V9.js → mixModel-_McJ6OuH.js} +30 -29
  215. package/dist/{mixPie-C6OhdOCV.js → mixPie-CMOkAe9p.js} +31 -30
  216. package/dist/mixPie-MAKXeYVp.cjs +2 -0
  217. package/dist/mixdashboards.cjs +1 -1
  218. package/dist/mixdashboards.css +1 -1
  219. package/dist/mixdashboards.js +1 -1
  220. package/dist/mixiotObjectListApi-BaeBL318.js +82 -0
  221. package/dist/mixiotObjectListApi-D9OyHNQ3.cjs +1 -0
  222. package/dist/mjpegCamera-BY7pmbDc.cjs +1 -0
  223. package/dist/{mjpegCamera-Cd1vhZ5v.js → mjpegCamera-Dc4IsJA6.js} +12 -11
  224. package/dist/monitorAlert-DVNvJyTy.cjs +1 -0
  225. package/dist/{monitorAlert-DIJtH557.js → monitorAlert-F8QFOchR.js} +45 -44
  226. package/dist/monitorData-AkPbhJ9q.cjs +1 -0
  227. package/dist/{monitorData-B6jhpzVK.js → monitorData-BzqNIdrW.js} +61 -59
  228. package/dist/{monitorSpeedChart-DF5zvxs9.js → monitorSpeedChart-348U37LW.js} +22 -21
  229. package/dist/{monitorSpeedChart-EIcGs3NX.cjs → monitorSpeedChart-DVH1xihw.cjs} +2 -2
  230. package/dist/{mxa-COxjxwpC.js → mxa-CkJjCHA-.js} +29 -27
  231. package/dist/{mxa-BfwIV49n.cjs → mxa-DShU528J.cjs} +2 -2
  232. package/dist/myValue-BCeycpdO.cjs +1 -0
  233. package/dist/{myValue-Crba15Wc.js → myValue-CEfp19i2.js} +17 -16
  234. package/dist/myValueList-CAPOW8TK.cjs +1 -0
  235. package/dist/{myValueList-m2yaIcuf.js → myValueList-y3GR4AX2.js} +41 -40
  236. package/dist/objectList-4rYQk5uq.cjs +1 -0
  237. package/dist/{objectList-BwZJzrXs.js → objectList-D16yLbzD.js} +538 -599
  238. package/dist/objectListAPP-DCwTyqFp.js +1864 -0
  239. package/dist/objectListAPP-Db5beOAM.cjs +1 -0
  240. package/dist/photo-BV6rkbWO.js +811 -0
  241. package/dist/photo-D67wLRkY.cjs +1 -0
  242. package/dist/{pie-CSLVJv0Y.cjs → pie-BeRwVkTk.cjs} +2 -2
  243. package/dist/{pie-C9MU90ON.js → pie-bNKhq6ak.js} +16 -14
  244. package/dist/{placeholder-CRARTMF4.js → placeholder-_iK4rVyU.js} +26 -25
  245. package/dist/placeholder-zByzfWaH.cjs +1 -0
  246. package/dist/{pressBtn-CkYcW1a8.js → pressBtn-B-rZPXK2.js} +124 -124
  247. package/dist/pressBtn-BjqYIPC-.cjs +1 -0
  248. package/dist/processTable-ByPlSKRJ.cjs +3 -0
  249. package/dist/{processTable-BgAhGGAq.js → processTable-s_y8uups.js} +12 -11
  250. package/dist/{progressBar-BbDFps1r.cjs → progressBar-CRdA7oJT.cjs} +1 -1
  251. package/dist/{progressBar-CIPUVeaf.js → progressBar-DskxZk1P.js} +19 -18
  252. package/dist/{progressCircle-DDc5zsd6.js → progressCircle-BE_Am-AP.js} +13 -12
  253. package/dist/{progressCircle-CgkZ1EC1.cjs → progressCircle-CHe-12Hb.cjs} +1 -1
  254. package/dist/{qrcode-CQbWGVgq.cjs → qrcode-D8cFyUpL.cjs} +1 -1
  255. package/dist/{qrcode-CCu677Ad.js → qrcode-Dgth6KwU.js} +39 -38
  256. package/dist/{raceBar-CzNGSYCt.cjs → raceBar-CeybrpCB.cjs} +3 -3
  257. package/dist/{raceBar-Cn8oPhCE.js → raceBar-DV-3KFg2.js} +18 -16
  258. package/dist/rad-BerkC70H.cjs +1 -0
  259. package/dist/{rad-D_cLWeMk.js → rad-BhsfF0XI.js} +22 -20
  260. package/dist/{radarMapViewer-BaAXjsWx.js → radarMapViewer-C2dde8EN.js} +82 -81
  261. package/dist/radarMapViewer-HWzvBTzT.cjs +1 -0
  262. package/dist/{rainfallFilterBar-Bhpadat8.js → rainfallFilterBar-CiT1mvYh.js} +22 -21
  263. package/dist/rainfallFilterBar-kuAQO0M-.cjs +1 -0
  264. package/dist/rainfallTimeCurve-7uHaSkuE.cjs +1 -0
  265. package/dist/{rainfallTimeCurve-sDYapogL.js → rainfallTimeCurve-BlOnCq2M.js} +58 -56
  266. package/dist/rangeLin-BQeWFL_E.cjs +3 -0
  267. package/dist/{rangeLin-CdMOPwMP.js → rangeLin-BvKd8kEv.js} +32 -31
  268. package/dist/realtimeEvolutionMap-BUnD3JjE.cjs +1 -0
  269. package/dist/{realtimeEvolutionMap-CIH_sZ29.js → realtimeEvolutionMap-DZ6yniwl.js} +46 -44
  270. package/dist/regionBar-mMaN5NEc.cjs +3 -0
  271. package/dist/{regionBar-VB-2GpR0.js → regionBar-vp5D52Jd.js} +14 -13
  272. package/dist/{request-BHfDxLXZ.js → request-CMbwWTDF.js} +9 -9
  273. package/dist/{request-DU8pRyvu.cjs → request-DegEaaCG.cjs} +1 -1
  274. package/dist/retainer1-CF2Tr7Zt.cjs +1 -0
  275. package/dist/{retainer1-C_109Weq.js → retainer1-Xvdlh-B_.js} +17 -16
  276. package/dist/retainer2-BQVUhgcH.cjs +1 -0
  277. package/dist/{retainer2-BiHUTumr.js → retainer2-D3a-c_BA.js} +43 -42
  278. package/dist/{retainerRecordList-Cgil_g8a.js → retainerRecordList-BJbPsJ4D.js} +47 -45
  279. package/dist/retainerRecordList-Rqnoz6_6.cjs +1 -0
  280. package/dist/retainerRecordListAPP-B4IDQK3C.cjs +1 -0
  281. package/dist/retainerRecordListAPP-CNntGyA-.js +1068 -0
  282. package/dist/{ringTopN-C9AH-t3T.js → ringTopN-BFKlXqGX.js} +18 -16
  283. package/dist/ringTopN-CsouIsk1.cjs +1 -0
  284. package/dist/{riskRegionTable-Co1uxMzf.js → riskRegionTable-B6k4uM0_.js} +26 -19
  285. package/dist/riskRegionTable-DttMvHe5.cjs +1 -0
  286. package/dist/sankey-CAuBQaYh.cjs +1 -0
  287. package/dist/{sankey-Bag0ladh.js → sankey-DEQK7uU6.js} +17 -15
  288. package/dist/{scd-D9AiOiPg.js → scd-D5TicpCZ.js} +1282 -1062
  289. package/dist/scd-qaap6hGW.cjs +1 -0
  290. package/dist/{sideMenu-869HFB0p.js → sideMenu-ByyrOOYh.js} +28 -27
  291. package/dist/sideMenu-D-73DoYb.cjs +1 -0
  292. package/dist/{slopeStability-bZ0lHLjZ.js → slopeStability-BtgMH3oW.js} +44 -42
  293. package/dist/slopeStability-CTN6Kpva.cjs +1 -0
  294. package/dist/speedCurve-C5NoQCjK.cjs +1 -0
  295. package/dist/{speedCurve-DZ52XKCk.js → speedCurve-CInn7NAC.js} +43 -41
  296. package/dist/staticLine-BC-zj5yZ.cjs +1 -0
  297. package/dist/{staticLine-CyPnmKCh.js → staticLine-CLqN4lpU.js} +51 -50
  298. package/dist/stressFilterBar-Cpfbmllu.cjs +1 -0
  299. package/dist/{stressFilterBar-BAUt2bGy.js → stressFilterBar-D_QqOHna.js} +46 -45
  300. package/dist/{stressTimeCurve-IW4ArsyA.js → stressTimeCurve-1HXHUj-F.js} +64 -62
  301. package/dist/stressTimeCurve-Bp6Cevk1.cjs +1 -0
  302. package/dist/{swiper-BPS9C2GV.cjs → swiper-B8YZ2VQ2.cjs} +1 -1
  303. package/dist/{swiper-RM0GoZkW.js → swiper-D_y4Fj_D.js} +25 -24
  304. package/dist/terminalConfigList-B39cEptG.cjs +1 -0
  305. package/dist/{terminalConfigList-n7NE5NdJ.js → terminalConfigList-CHbA4y-S.js} +38 -36
  306. package/dist/terminalList-Vf-Dbybr.cjs +1 -0
  307. package/dist/{terminalList-Byb4eLcD.js → terminalList-oJFrGVtT.js} +38 -36
  308. package/dist/terminalListAPP-CdBG8krw.cjs +1 -0
  309. package/dist/terminalListAPP-DWArp2D4.js +1366 -0
  310. package/dist/{textbox-DM1AUWw8.js → textbox-D8nmoGjG.js} +13 -12
  311. package/dist/textbox-DPoyxB4u.cjs +1 -0
  312. package/dist/{timeQueryBar-Tbd9M8UT.js → timeQueryBar-DyC0iHq9.js} +21 -20
  313. package/dist/timeQueryBar-uUGotoTx.cjs +1 -0
  314. package/dist/{timeSeries-DCV2YjC2.cjs → timeSeries-BhlqgEOq.cjs} +2 -2
  315. package/dist/{timeSeries-CdpEx6bf.js → timeSeries-U91gMDDQ.js} +66 -64
  316. package/dist/timeSeriesCurve-CiRMnZRD.cjs +1 -0
  317. package/dist/{timeSeriesCurve-C1AmF6TP.js → timeSeriesCurve-DOhIS88N.js} +68 -66
  318. package/dist/{toggleBtn-BGjXjIuK.cjs → toggleBtn-CuWwHFjD.cjs} +1 -1
  319. package/dist/{toggleBtn-XS9MjfKM.js → toggleBtn-DE35dkxx.js} +46 -44
  320. package/dist/trajectoryConfigPanel-DAbF8oE9.cjs +1 -0
  321. package/dist/{trajectoryConfigPanel-BC90nD1T.js → trajectoryConfigPanel-Ye7NY6rd.js} +35 -34
  322. package/dist/{trajectoryScatter-DF_ESBn8.js → trajectoryScatter-DL7HUNJI.js} +47 -45
  323. package/dist/trajectoryScatter-Dg99HzM3.cjs +1 -0
  324. package/dist/universalConfigPanel-1svBCvD9.cjs +1 -0
  325. package/dist/{universalConfigPanel-DjNTwJkz.js → universalConfigPanel-CkyIDl_x.js} +50 -49
  326. package/dist/{universalTable-BY9vRraC.js → universalTable--dpnyNO2.js} +56 -54
  327. package/dist/universalTable-D8w7FQbl.cjs +2 -0
  328. package/dist/useMixiotPanelSurface-CAZgexY5.cjs +1 -0
  329. package/dist/useMixiotPanelSurface-DRl3cZvc.js +22 -0
  330. package/dist/useTableBodyHeight-CwrQvi7M.js +21 -0
  331. package/dist/useTableBodyHeight-pf87uGjw.cjs +1 -0
  332. package/dist/{video-DDvDGDql.js → video-BmMSRRa_.js} +5 -4
  333. package/dist/{video-8_Sf1uz0.cjs → video-RGIZoUn6.cjs} +2 -2
  334. package/dist/videoMonitor-Bo5T0MT_.cjs +1 -0
  335. package/dist/{videoMonitor-sce5N4Q5.js → videoMonitor-uf6tt2E6.js} +34 -33
  336. package/dist/{vlu-BKeYJtOO.js → vlu-D8l5zE_P.js} +24 -23
  337. package/dist/vlu-DEo_h1qN.cjs +1 -0
  338. package/dist/warningOverview-A5AA_vCc.cjs +1 -0
  339. package/dist/{warningOverview-CG5mwtaO.js → warningOverview-CA0PikjV.js} +31 -30
  340. package/dist/{weather-CWvAqxgX.cjs → weather-D20MGzuJ.cjs} +1 -1
  341. package/dist/{weather-BrX2a1an.js → weather-DuseqeNF.js} +19 -18
  342. package/dist/{windLin-BbbsSwuF.cjs → windLin-BU6Q87dE.cjs} +1 -1
  343. package/dist/{windLin-P4Gs2aBB.js → windLin-D8AUL_dV.js} +58 -57
  344. package/package.json +120 -120
  345. package/dist/BaseComponent-CNXUpPY1.cjs +0 -1
  346. package/dist/UniverSheet-CntkzcVZ.cjs +0 -1
  347. package/dist/accelerationChart-DLV-1mpA.cjs +0 -6
  348. package/dist/actionItem-CFxzHf4E.cjs +0 -1
  349. package/dist/alarmLevelChart-DCC6D1fH.cjs +0 -2
  350. package/dist/alertTable-BREZBeS5.cjs +0 -1
  351. package/dist/aliasObjectSelectorDemo-DunKWEkT.cjs +0 -1
  352. package/dist/annualRainfallChart-BJyoUBDn.cjs +0 -1
  353. package/dist/aqiIndass-B441j8CT.cjs +0 -3
  354. package/dist/areaDeformCurve-Dj405Jil.cjs +0 -1
  355. package/dist/arrayCard-B7zb1dFi.cjs +0 -1
  356. package/dist/audio-BfsYRWbm.cjs +0 -1
  357. package/dist/bmp-DIkLqzRN.cjs +0 -1
  358. package/dist/box-kXjrgG2u.cjs +0 -1
  359. package/dist/chartConfigPanel-DN4LMy8-.cjs +0 -1
  360. package/dist/clock-EbmFBRb-.cjs +0 -1
  361. package/dist/clt-C-9xGiKs.cjs +0 -1
  362. package/dist/cmc-CFa8Q3tu.cjs +0 -1
  363. package/dist/conclusionCard-Dlg5GWlE.cjs +0 -1
  364. package/dist/controlList-C1vhlonT.cjs +0 -1
  365. package/dist/controlRecordList-BhK7KtLR.cjs +0 -1
  366. package/dist/crd-CgxqxwKV.cjs +0 -1
  367. package/dist/ctrBtn-BSJ9c7Pt.cjs +0 -1
  368. package/dist/ctrSet-B9M4yI53.cjs +0 -1
  369. package/dist/ctrSwitch-C6dUn_qm.js +0 -206
  370. package/dist/ctrSwitch-ZvMCYKvG.cjs +0 -1
  371. package/dist/dataManagement-CNrEa_zB.cjs +0 -1
  372. package/dist/datetime-CAyDWKE8.cjs +0 -1
  373. package/dist/deepClusterSlipSurface-DzoyF6i1.cjs +0 -1
  374. package/dist/deepDataMatrix--AstWPiL.cjs +0 -1
  375. package/dist/deepDisplacementChart-BnT1ZdfR.cjs +0 -6
  376. package/dist/deepDisplacementChart-DOPij7KP.cjs +0 -5
  377. package/dist/deepDisplacementView-u1IPcbxN.cjs +0 -8
  378. package/dist/deepNodeTemperatureChart-CD3JbqkA.cjs +0 -1
  379. package/dist/deepTangentAngleChart-BCAauuDY.cjs +0 -1
  380. package/dist/deepTemperatureField-BxuKsrtc.cjs +0 -1
  381. package/dist/deepTrendChart-6L4cCHgh.cjs +0 -1
  382. package/dist/deviceOnlineStatus-WkwzGom4.cjs +0 -2
  383. package/dist/deviceStatus-BoIv8fbr.cjs +0 -1
  384. package/dist/displacementDataTable-BwcxrsuU.cjs +0 -1
  385. package/dist/displacementTrajectoryChart-BOPIBgi5.cjs +0 -22
  386. package/dist/displacementTrendChart-CI8i0oQY.cjs +0 -5
  387. package/dist/emergencyPlan-BRFhMubg.cjs +0 -1
  388. package/dist/evn-B05d7LtF.cjs +0 -1
  389. package/dist/evolutionChart-y2mkLVwU.cjs +0 -1
  390. package/dist/fileViewer-Dy2fdABW.cjs +0 -1
  391. package/dist/filterBar-CcrUdD-O.cjs +0 -1
  392. package/dist/fireCombustionCurve-B-6MZLul.cjs +0 -1
  393. package/dist/fireFilterBar-C9b_Ohvr.cjs +0 -1
  394. package/dist/fireHistoryTable-5sG5FDCD.cjs +0 -3
  395. package/dist/gag-CDX99Ta4.cjs +0 -1
  396. package/dist/gasStationList-Dl9qawf_.cjs +0 -1
  397. package/dist/globalObjectSelector-Bz2XhgxT.cjs +0 -1
  398. package/dist/gnssFilterBar-BT19n0j_.cjs +0 -1
  399. package/dist/gnssHistoryTable-CrS2qO6S.cjs +0 -3
  400. package/dist/gnssSectionProfile-_KbP1NXU.cjs +0 -1
  401. package/dist/gnssTimeSeriesChart-BgFoXAZv.cjs +0 -1
  402. package/dist/gnssXYTrajectory-C1N3RWzp.cjs +0 -5
  403. package/dist/grd-DtDoJOOa.cjs +0 -1
  404. package/dist/grdIndass-ci3JkvGZ.cjs +0 -1
  405. package/dist/grg-C2qVuXYE.cjs +0 -1
  406. package/dist/gridview-BLAlr5uj.cjs +0 -1
  407. package/dist/groundwaterFilterBar-1E1j67JT.cjs +0 -1
  408. package/dist/groundwaterProfileChart-CS9xelz8.cjs +0 -11
  409. package/dist/groundwaterTimeCurve-DYiDLgVY.cjs +0 -1
  410. package/dist/headerBar-OwCxpc4o.cjs +0 -1
  411. package/dist/index-D8dh_6Qd.cjs +0 -612
  412. package/dist/insarDeformChart-CSQ7fc2p.cjs +0 -1
  413. package/dist/insarImageViewer-DvaRS1zr.cjs +0 -1
  414. package/dist/kpiCard-oLpk5d4m.cjs +0 -2
  415. package/dist/landslideMap-CO8o7T8J.cjs +0 -1
  416. package/dist/landslideWarning-BZXa5qTB.cjs +0 -1
  417. package/dist/layerTabs-BxRAsklw.cjs +0 -1
  418. package/dist/linIndass-Bb7UA-zk.cjs +0 -2
  419. package/dist/lst-Dri1MTDI.cjs +0 -1
  420. package/dist/manualEntry-D74dgZv8.cjs +0 -1
  421. package/dist/mappingList-CBN7ArkQ.cjs +0 -1
  422. package/dist/mixGrid-DTj2pmFW.cjs +0 -1
  423. package/dist/mixMap-B4T4R6kA.cjs +0 -1
  424. package/dist/mixModel-BzilRtjf.cjs +0 -3
  425. package/dist/mixPie-DtQm-LGp.cjs +0 -2
  426. package/dist/mjpegCamera-Lu3UHJ83.cjs +0 -1
  427. package/dist/monitorAlert-Ctt2kCxQ.cjs +0 -1
  428. package/dist/monitorData-D_tMbx_Y.cjs +0 -1
  429. package/dist/myValue-FZPOucSS.cjs +0 -1
  430. package/dist/myValueList-XIDK3ove.cjs +0 -1
  431. package/dist/objectList-BtbxHtJj.cjs +0 -1
  432. package/dist/photo-BITvEhKG.cjs +0 -1
  433. package/dist/photo-CjulDHTM.js +0 -873
  434. package/dist/placeholder-3kajeeeb.cjs +0 -1
  435. package/dist/pressBtn-pUcQtd5n.cjs +0 -1
  436. package/dist/processTable-CDulvQlu.cjs +0 -3
  437. package/dist/rad-Dk4PrnyI.cjs +0 -1
  438. package/dist/radarMapViewer-TJIPACdT.cjs +0 -1
  439. package/dist/rainfallFilterBar-Myq0MBCf.cjs +0 -1
  440. package/dist/rainfallTimeCurve-BUI-RlnG.cjs +0 -1
  441. package/dist/rangeLin-DYCZ8wVc.cjs +0 -3
  442. package/dist/realtimeEvolutionMap-BwyQdAhL.cjs +0 -1
  443. package/dist/regionBar-DsxqfirI.cjs +0 -3
  444. package/dist/retainer1-CSqjvY4k.cjs +0 -1
  445. package/dist/retainer2-Bqlwvr53.cjs +0 -1
  446. package/dist/retainerRecordList-DWZ3WDiz.cjs +0 -1
  447. package/dist/ringTopN-Bp0er_zV.cjs +0 -1
  448. package/dist/riskRegionTable-B3bzMaR_.cjs +0 -1
  449. package/dist/sankey-B4BJ4xIo.cjs +0 -1
  450. package/dist/scd-Dgd3KDpk.cjs +0 -1
  451. package/dist/sideMenu-BQ5rrGBr.cjs +0 -1
  452. package/dist/slopeStability-D96aiykf.cjs +0 -1
  453. package/dist/speedCurve-5nWqVAzz.cjs +0 -1
  454. package/dist/staticLine-DUCg-0tI.cjs +0 -1
  455. package/dist/stressFilterBar-CorWdmpQ.cjs +0 -1
  456. package/dist/stressTimeCurve-Bci50Cwv.cjs +0 -1
  457. package/dist/terminalConfigList-O881ke5o.cjs +0 -1
  458. package/dist/terminalList-C9TB2cJH.cjs +0 -1
  459. package/dist/textbox-BMWnbPvz.cjs +0 -1
  460. package/dist/timeQueryBar-C6ZheMvD.cjs +0 -1
  461. package/dist/timeSeriesCurve-DRlr5n3U.cjs +0 -1
  462. package/dist/trajectoryConfigPanel-DJ6fOeb1.cjs +0 -1
  463. package/dist/trajectoryScatter-C7kfSkyS.cjs +0 -1
  464. package/dist/universalConfigPanel-PO1hdgjw.cjs +0 -1
  465. package/dist/universalTable-QAb6UKCq.cjs +0 -2
  466. package/dist/useMixiotPanelSurface-BMNrWBMF.cjs +0 -1
  467. package/dist/useMixiotPanelSurface-DlVkLttU.js +0 -40
  468. package/dist/videoMonitor-BKLD_aQs.cjs +0 -1
  469. package/dist/vlu-C0XLDKKk.cjs +0 -1
  470. package/dist/warningOverview--n7crFnZ.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";var he=Object.defineProperty,Ce=Object.defineProperties;var _e=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var Be=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var H=(v,d,c)=>d in v?he(v,d,{enumerable:!0,configurable:!0,writable:!0,value:c}):v[d]=c,W=(v,d)=>{for(var c in d||(d={}))Be.call(d,c)&&H(v,c,d[c]);if(G)for(var c of G(d))Ne.call(d,c)&&H(v,c,d[c]);return v},Q=(v,d)=>Ce(v,_e(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/button/style/css");const e=require("vue");require("html2canvas");const we=require("./BaseComponent-CNXUpPY1.cjs"),Ee=require("./index-D8dh_6Qd.cjs"),Z=require("./ele-lin-icon-Dke_1AmT.cjs"),xe={key:0,class:"edit-placeholder"},De={class:"mgmt-header"},Te={class:"breadcrumb"},Se={class:"crumb-active"},ze={class:"header-actions"},Ae={class:"mgmt-tabs"},Ue=["onClick"],Ie={class:"mgmt-filter-bar"},Me={class:"filter-label"},Fe={class:"table-area"},Oe={class:"pagination-bar"},Le={class:"modal-form"},qe={class:"form-label"},Pe={class:"dialog-footer"},Re={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"基础数据管理",NAME_EN:"Data Management",ORDER:14},Ye={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},fontSize:{value:13,type:"number",label:"字体大小",min:10,max:20},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},je=[],Xe=["object_id","name","fv","fvDeviceName"],$e=["mosaic"],Ge={useAlias:!1,multiObject:!1,source:"mosaic"},He={DEFAULT:Re,OPTIONS:Ye,DATA:je,PARAMS:Xe,SOURCE:$e,COMMON:Ge},We=e.defineComponent(Q(W({},He),{__name:"dataManagement",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(v){const d=v,c=["时间","安装日期","下载时间","采集时间","设置日期"],E=["北帮","南帮","东帮","西帮","中央区"],U=["陈晓晓","王大力","李工程师","张三"],F=["全部权限","仅数据查询权限","人工录入权限","基础数据管理权限"],O=["国产雷达","进口雷达","GNSS","锚索应力计","土压力计","水位计","流量计","裂缝计","震动计"],L={partition:{title:"分区管理",filters:[{label:"分区名称",key:"名称",type:"input"},{label:"操作人员",key:"人员",type:"select",options:["全部",...U]}],columns:["时间","人员","名称","坐标"],addFields:["时间","人员","名称","坐标"]},device:{title:"设备管理",filters:[{label:"设备编号",key:"编号",type:"input"},{label:"所属区域",key:"所属区域",type:"select",options:["全部",...E]},{label:"设备状态",key:"状态",type:"select",options:["全部","正常","离线"]},{label:"设备类型",key:"类型",type:"select",options:["全部",...O]}],columns:["类型","编号","型号","安装日期","厂商","安装位置","所属区域","所属监测线"],addFields:["类型","编号","型号","安装日期","厂商","安装位置","所属区域","所属监测线","状态"]},radar:{title:"雷达扫描区域管理",filters:[{label:"区域编号",key:"编号",type:"input"},{label:"操作人员",key:"人员",type:"select",options:["全部",...U]},{label:"扫描区域",key:"扫描区域",type:"select",options:["全部",...E]}],columns:["时间","人员","编号","文件名称","圈定位置","扫描区域"],addFields:["时间","人员","编号","文件名称","圈定位置","扫描区域"]},virtual_point:{title:"雷达虚拟设置管理",filters:[{label:"点位编号",key:"编号",type:"input"},{label:"所属区域",key:"所属区域",type:"select",options:["全部",...E]}],columns:["类型","编号","设置日期","所属雷达","设置位置","所属区域","所属监测线","状态"],addFields:["类型","编号","设置日期","所属雷达","设置位置","所属区域","所属监测线","状态"]},satellite:{title:"卫星数据管理",filters:[{label:"数据编号",key:"数据编号",type:"input"},{label:"卫星类型",key:"卫星类型",type:"input"}],columns:["ID","数据名称","数据编号","下载时间","数据大小(MB)","卫星类型"],addFields:["ID","数据名称","数据编号","下载时间","数据大小(MB)","卫星类型"]},map_info:{title:"地图信息管理",filters:[{label:"数据类型",key:"数据类型",type:"select",options:["全部","正射影像","倾斜摄影"]},{label:"采集时间",key:"采集时间",type:"datetime-local"}],columns:["ID","数据名称","数据编号","数据类型","采集时间","覆盖面积(km²)"],addFields:["ID","数据名称","数据编号","数据类型","采集时间","覆盖面积(km²)"]},permission:{title:"权限管理",filters:[{label:"账号名称",key:"用户名",type:"input"},{label:"角色权限",key:"角色权限",type:"select",options:["全部",...F]},{label:"授权状态",key:"授权状态",type:"select",options:["全部","已授权","未授权"]}],columns:["用户ID","用户名","角色权限","授权状态"],addFields:["用户ID","用户名","角色权限","授权状态"]}},J=Object.entries(L).map(([a,l])=>({key:a,title:l.title})),K=()=>({partition:[{时间:"2026-01-19T20:00",人员:"陈晓晓",名称:"北帮一区",坐标:"X:1200, Y:300"}],device:[{类型:"GNSS",编号:"G001",型号:"T9-Pro",安装日期:"2025-12-01T10:00",厂商:"中海达",安装位置:"E:103.5, N:30.5",所属区域:"南帮",所属监测线:"S1",状态:"正常"}],radar:[{时间:"2026-01-15T09:00",人员:"陈晓晓",编号:"RAD-AREA-001",文件名称:"20260115_东帮1区.las",圈定位置:"X:2450.55, Y:1300.12, M:1326.56, N:1256.09......",扫描区域:"东帮"},{时间:"2026-01-17T14:30",人员:"王大力",编号:"RAD-AREA-002",文件名称:"20260117_西帮1区.las",圈定位置:"X:2100.20, Y:1150.45, M:1326.56, N:1256.09......",扫描区域:"西帮"}],virtual_point:[{类型:"虚拟点",编号:"VP-001",设置日期:"2026-01-21T09:30",所属雷达:"RAD-AREA-001",设置位置:"X:500, Y:600, Z:200",所属区域:"北帮",所属监测线:"X1-1",状态:"正常"},{类型:"虚拟面域",编号:"VA-205",设置日期:"2026-01-22T14:15",所属雷达:"RAD-AREA-002",设置位置:"X:1200, Y:800 (覆盖范围)",所属区域:"南帮",所属监测线:"无",状态:"正常"}],satellite:[{ID:"SAT-001",数据名称:"区域A遥感影像",数据编号:"SAT-2023-001",下载时间:"2023-06-10T09:30","数据大小(MB)":"256.5",卫星类型:"高分七号"},{ID:"SAT-002",数据名称:"区域B地形数据",数据编号:"SAT-2023-002",下载时间:"2023-06-15T14:20","数据大小(MB)":"420.3",卫星类型:"资源三号"}],map_info:[{ID:"MAP-001",数据名称:"区域A正射影像",数据编号:"MAP-2023-001",数据类型:"正射影像",采集时间:"2023-05-20T08:00","覆盖面积(km²)":"5.2"},{ID:"MAP-002",数据名称:"区域B倾斜摄影",数据编号:"MAP-2023-002",数据类型:"倾斜摄影",采集时间:"2023-05-25T10:15","覆盖面积(km²)":"3.8"}],permission:[{用户ID:"admin",用户名:"系统管理员",角色权限:"超级管理员",授权状态:"已授权"}]});class ee extends we.BaseComponent{extractStyles(){var m,w,_,C,z,A;const l=(m=this.props.conf)==null?void 0:m.options,s=((w=l==null?void 0:l.linkChannel)==null?void 0:w.value)||"gnss",r=((_=l==null?void 0:l.customChannel)==null?void 0:_.value)||"";return{bgColor:((C=l==null?void 0:l.bgColor)==null?void 0:C.value)||"#ffffff",textColor:((z=l==null?void 0:l.textColor)==null?void 0:z.value)||"#333333",fontSize:((A=l==null?void 0:l.fontSize)==null?void 0:A.value)||13,linkChannel:s==="custom"&&r?r:s}}onLinkEvent(l){}}const x=new ee(d,"dataManagement");x.setupLifecycle();const D=x.getStyle(),i=e.ref("partition"),y=e.computed(()=>L[i.value]),le=e.computed(()=>y.value.columns),k=e.ref({}),p=e.reactive({}),f=e.ref(null),V=e.ref([]),g=e.ref(1),T=10,I=e.ref(null),h=e.ref(!1),u=e.ref("add"),B=e.ref(-1),n=e.reactive({}),N=e.ref(!1),S=e.ref(!1),te=e.computed(()=>u.value==="add"?"新增"+y.value.title:u.value==="edit"?"编辑数据":"详情查看"),ae=e.computed(()=>{var a,l;return(l=(a=f.value)!=null?a:k.value[i.value])!=null?l:[]}),q=e.computed(()=>ae.value),P=e.computed(()=>{const a=(g.value-1)*T;return q.value.slice(a,a+T)}),oe=a=>c.includes(a),R=()=>{const a=new Date,l=a.getTimezoneOffset()*6e4;return new Date(a.getTime()-l).toISOString().slice(0,16)},ne=(a,l)=>a?c.includes(l)?a.replace("T"," "):a:"--",se=a=>["圈定位置","安装位置","设置位置"].includes(a)?200:["文件名称","数据名称"].includes(a)||c.includes(a)?160:110,re=a=>["坐标","安装位置","圈定位置","设置位置"].includes(a)?`请输入${a},每个坐标用,隔开`:`请输入${a}`,Y=a=>{const l=P.value[a];return k.value[i.value].indexOf(l)},ie=a=>{i.value=a,V.value=[],f.value=null,g.value=1,Object.keys(p).forEach(l=>delete p[l])},ue=()=>{const a=k.value[i.value];f.value=a.filter(l=>Object.keys(p).every(s=>{const r=p[s];return!r||r==="全部"?!0:l[s]?String(l[s]).toLowerCase().includes(r.toLowerCase()):!1})),V.value=[],g.value=1},de=()=>{Object.keys(p).forEach(a=>delete p[a]),f.value=null,g.value=1},ce=a=>{V.value=a},me=()=>{if(!V.value.length)return;const a=new Set(V.value);k.value[i.value]=k.value[i.value].filter(l=>!a.has(l)),f.value=null,V.value=[]},M=a=>{if(Object.keys(n).forEach(l=>delete n[l]),a!==void 0&&a>=0){const l=k.value[i.value][a];y.value.addFields.forEach(s=>{n[s]=l[s]||""})}else y.value.addFields.forEach(l=>{n[l]=c.includes(l)?R():""})},pe=()=>{u.value="add",B.value=-1,M(),N.value=!1,S.value=!1,h.value=!0},ve=a=>{u.value="edit",B.value=a,M(a),j(),h.value=!0},ke=a=>{u.value="view",B.value=a,M(a),j(),h.value=!0},j=()=>{i.value==="device"&&X(n.类型),i.value==="virtual_point"&&$(n.类型)},X=a=>{N.value=!!a&&a.includes("雷达"),N.value&&(n.所属监测线="")},$=a=>{S.value=a==="虚拟面域",S.value&&(n.所属监测线="无")},ye=()=>{const a={};y.value.addFields.forEach(l=>{a[l]=n[l]||""}),B.value>=0?k.value[i.value][B.value]=a:k.value[i.value].push(a),f.value=null,h.value=!1},Ve=()=>{var a;(a=I.value)==null||a.click()},be=()=>{var a;(a=I.value)==null||a.click()},fe=a=>{var r;if(!((r=a.target.files)==null?void 0:r[0]))return;const s={};y.value.addFields.forEach(m=>{s[m]=c.includes(m)?R():"导入-"+m}),k.value[i.value].push(s),f.value=null,a.target.value=""};return e.onMounted(()=>{x.init(),d.mode!=="edit"&&(k.value=K())}),e.onUnmounted(()=>{x.cleanup()}),(a,l)=>{const s=b.ElButton,r=b.ElOption,m=b.ElSelect,w=b.ElDatePicker,_=b.ElInput,C=b.ElTableColumn,z=b.ElTable,A=b.ElPagination,ge=b.ElDialog;return e.openBlock(),e.createElementBlock("div",{class:"data-mgmt",style:e.normalizeStyle({backgroundColor:e.unref(D).bgColor,color:e.unref(D).textColor,fontSize:e.unref(D).fontSize+"px"})},[d.mode==="edit"?(e.openBlock(),e.createElementBlock("div",xe,[...l[3]||(l[3]=[e.createElementVNode("div",{class:"placeholder-icon"},"📋",-1),e.createElementVNode("div",{class:"placeholder-title"},"基础数据管理",-1),e.createElementVNode("div",{class:"placeholder-desc"},"包含7个管理模块:分区 / 设备 / 雷达扫描区域 / 雷达虚拟设置 / 卫星数据 / 地图信息 / 权限",-1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",De,[e.createElementVNode("div",Te,[l[4]||(l[4]=e.createTextVNode("基础数据管理 / ",-1)),e.createElementVNode("span",Se,e.toDisplayString(y.value.title),1)]),e.createElementVNode("div",ze,[e.createVNode(s,{size:"small",type:"primary",onClick:pe},{default:e.withCtx(()=>[...l[5]||(l[5]=[e.createTextVNode("+ 新增",-1)])]),_:1}),e.createVNode(s,{size:"small",type:"success",onClick:Ve},{default:e.withCtx(()=>[...l[6]||(l[6]=[e.createTextVNode("📥 导入数据",-1)])]),_:1}),e.createVNode(s,{size:"small",type:"danger",disabled:!V.value.length,onClick:me},{default:e.withCtx(()=>[e.createTextVNode(" 🗑️ 批量删除"+e.toDisplayString(V.value.length?` (${V.value.length})`:""),1)]),_:1},8,["disabled"]),e.createElementVNode("input",{ref_key:"importInput",ref:I,type:"file",style:{display:"none"},onChange:fe},null,544)])]),e.createElementVNode("div",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(J),t=>(e.openBlock(),e.createElementBlock("div",{key:t.key,class:e.normalizeClass(["tab-item",{active:i.value===t.key}]),onClick:o=>ie(t.key)},e.toDisplayString(t.title),11,Ue))),128))]),e.createElementVNode("div",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.filters,t=>(e.openBlock(),e.createElementBlock("div",{key:t.key,class:"filter-group"},[e.createElementVNode("span",Me,e.toDisplayString(t.label)+":",1),t.type==="select"?(e.openBlock(),e.createBlock(m,{key:0,modelValue:p[t.key],"onUpdate:modelValue":o=>p[t.key]=o,size:"small",placeholder:"全部",clearable:"",style:{width:"140px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((t.options||[]).filter(o=>o!=="全部"),o=>(e.openBlock(),e.createBlock(r,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):t.type==="datetime-local"?(e.openBlock(),e.createBlock(w,{key:1,modelValue:p[t.key],"onUpdate:modelValue":o=>p[t.key]=o,type:"datetime",size:"small",placeholder:"选择时间",style:{width:"200px"},"value-format":"YYYY-MM-DDTHH:mm"},null,8,["modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(_,{key:2,modelValue:p[t.key],"onUpdate:modelValue":o=>p[t.key]=o,size:"small",placeholder:"输入搜索...",style:{width:"140px"},clearable:""},null,8,["modelValue","onUpdate:modelValue"]))]))),128)),e.createVNode(s,{size:"small",type:"primary",onClick:ue},{default:e.withCtx(()=>[...l[7]||(l[7]=[e.createTextVNode("查询",-1)])]),_:1}),e.createVNode(s,{size:"small",onClick:de},{default:e.withCtx(()=>[...l[8]||(l[8]=[e.createTextVNode("重置",-1)])]),_:1})]),e.createElementVNode("div",Fe,[e.createVNode(z,{data:P.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},onSelectionChange:ce},{default:e.withCtx(()=>[e.createVNode(C,{type:"selection",width:"40"}),e.createVNode(C,{label:"序号",width:"60",align:"center"},{default:e.withCtx(({$index:t})=>[e.createTextVNode(e.toDisplayString((g.value-1)*T+t+1),1)]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(le.value,t=>(e.openBlock(),e.createBlock(C,{key:t,prop:t,label:t,"min-width":se(t),align:"center"},{default:e.withCtx(({row:o})=>[e.createTextVNode(e.toDisplayString(ne(o[t],t)),1)]),_:2},1032,["prop","label","min-width"]))),128)),e.createVNode(C,{label:"操作","min-width":"120",align:"center",fixed:"right"},{default:e.withCtx(({$index:t})=>[e.createVNode(s,{link:"",type:"primary",size:"small",onClick:o=>ve(Y(t))},{default:e.withCtx(()=>[...l[9]||(l[9]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"]),e.createVNode(s,{link:"",type:"primary",size:"small",onClick:o=>ke(Y(t))},{default:e.withCtx(()=>[...l[10]||(l[10]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]),e.createElementVNode("div",Oe,[e.createVNode(A,{small:"",layout:"prev, pager, next",total:q.value.length,"page-size":T,"current-page":g.value,"onUpdate:currentPage":l[0]||(l[0]=t=>g.value=t)},null,8,["total","current-page"])])]),e.createVNode(ge,{modelValue:h.value,"onUpdate:modelValue":l[2]||(l[2]=t=>h.value=t),title:te.value,width:"520px",top:"8vh","close-on-click-modal":!1,"destroy-on-close":"",style:e.normalizeStyle({fontSize:e.unref(D).fontSize+"px"}),class:"data-mgmt-dialog"},{footer:e.withCtx(()=>[e.createElementVNode("div",Pe,[u.value!=="view"?(e.openBlock(),e.createBlock(s,{key:0,size:"small",type:"success",onClick:be},{default:e.withCtx(()=>[...l[11]||(l[11]=[e.createTextVNode("导入数据",-1)])]),_:1})):e.createCommentVNode("",!0),l[14]||(l[14]=e.createElementVNode("span",{style:{flex:"1"}},null,-1)),e.createVNode(s,{size:"small",onClick:l[1]||(l[1]=t=>h.value=!1)},{default:e.withCtx(()=>[...l[12]||(l[12]=[e.createTextVNode("取消",-1)])]),_:1}),u.value!=="view"?(e.openBlock(),e.createBlock(s,{key:1,size:"small",type:"primary",onClick:ye},{default:e.withCtx(()=>[...l[13]||(l[13]=[e.createTextVNode("确定",-1)])]),_:1})):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.addFields,t=>(e.openBlock(),e.createElementBlock("div",{key:t,class:"form-item"},[e.createElementVNode("label",qe,e.toDisplayString(t),1),oe(t)?(e.openBlock(),e.createBlock(w,{key:0,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,type:"datetime",size:"small",disabled:u.value==="view",style:{width:"100%"},"value-format":"YYYY-MM-DDTHH:mm"},null,8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="device"&&t==="类型"?(e.openBlock(),e.createBlock(m,{key:1,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"},onChange:X},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(O,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="virtual_point"&&t==="类型"?(e.openBlock(),e.createBlock(m,{key:2,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"},onChange:$},{default:e.withCtx(()=>[e.createVNode(r,{label:"虚拟点",value:"虚拟点"}),e.createVNode(r,{label:"虚拟面域",value:"虚拟面域"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="virtual_point"&&t==="所属监测线"?(e.openBlock(),e.createBlock(m,{key:3,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view"||S.value,style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(r,{label:"无",value:"无"}),e.createVNode(r,{label:"X1-1",value:"X1-1"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="状态"||t==="授权状态"?(e.openBlock(),e.createBlock(m,{key:4,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==="状态"?["正常","离线"]:["已授权","未授权"],o=>(e.openBlock(),e.createBlock(r,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])):t==="所属区域"||t==="扫描区域"?(e.openBlock(),e.createBlock(m,{key:5,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(E,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="人员"?(e.openBlock(),e.createBlock(m,{key:6,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(U,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="角色权限"?(e.openBlock(),e.createBlock(m,{key:7,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(F,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="数据类型"?(e.openBlock(),e.createBlock(m,{key:8,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(r,{label:"正射影像",value:"正射影像"}),e.createVNode(r,{label:"倾斜摄影",value:"倾斜摄影"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="device"&&t==="所属监测线"?(e.openBlock(),e.createBlock(_,{key:9,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view"||N.value,placeholder:N.value?"雷达无需填写监测线":"请输入监测线",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","disabled","placeholder"])):(e.openBlock(),e.createBlock(_,{key:10,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",placeholder:re(t),style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","disabled","placeholder"]))]))),128))])]),_:1},8,["modelValue","title","style"])],64)),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),Qe=Ee._export_sfc(We,[["__scopeId","data-v-fdb97efa"]]);exports.default=Qe;
@@ -1 +0,0 @@
1
- "use strict";var D=Object.defineProperty,b=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var d=(n,e,t)=>e in n?D(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,p=(n,e)=>{for(var t in e||(e={}))M.call(e,t)&&d(n,t,e[t]);if(f)for(var t of f(e))z.call(e,t)&&d(n,t,e[t]);return n},v=(n,e)=>b(n,y(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),S=require("./index-D8dh_6Qd.cjs");require("html2canvas");const g=require("./BaseComponent-CNXUpPY1.cjs"),Y=require("./ele-dateTime-icon-BgZ2_KWW.cjs"),T={class:"mix-component"},I={DEFAULT_ICON:Y.DEFAULT_ICON,ACTIVE_ICON:Y.ACTIVE_ICON,NAME_CN:"时间",NAME_EN:"Date Time",ORDER:1},H={bgColor:"#fff",textColor:"#111",textSize:16,radiusSize:8,format:{value:"YYYY-MM-DD HH:mm:ss",type:"select",label:"component.customized.format",options:[{label:"component.customized.dateTimeFormat1",value:"YYYY-MM-DD HH:mm:ss"},{label:"component.customized.dateTimeFormat2",value:"YYYY年MM月DD日 HH:mm:ss"},{label:"component.customized.dateTimeFormat3",value:"YYYY/MM/DD HH:mm:ss"},{label:"component.customized.dateFormat",value:"YYYY-MM-DD"},{label:"component.customized.timeFormat",value:"HH:mm:ss"}]}},O={DEFAULT:I,OPTIONS:H,COMMON:{}},E=o.defineComponent(v(p({},O),{__name:"datetime",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const e=n,t=o.ref("");let l=null;class x extends g.BaseComponent{extractStyles(){const{options:a}=this.props.conf,s=(C,_)=>{const i=a==null?void 0:a[C];return i==null?_:typeof i=="object"&&"value"in i?i.value:i};return{bgColor:s("bgColor","#fff"),textColor:s("textColor","#303133"),textSize:s("textSize",16),radiusSize:s("radiusSize",8)}}init(){super.init(),l&&clearInterval(l),m(),l=setInterval(()=>{m()},1e3)}cleanup(){l&&(clearInterval(l),l=null)}}const m=()=>{const{options:r}=e.conf,a=r==null?void 0:r.format,s=a&&typeof a=="object"&&"value"in a?a.value:a||"YYYY-MM-DD HH:mm:ss";t.value=S.dayjs().format(s)},u=new x(e,"datetime");u.setupLifecycle();const c=u.getStyle();return o.watch(()=>{var r;return(r=e.conf)==null?void 0:r.options},r=>{r&&(c.value=u.extractStyles(),m())},{deep:!0}),(r,a)=>(o.openBlock(),o.createElementBlock("div",T,[o.createElementVNode("div",{class:"flex flex-1 px-[12px] items-center justify-center flex-nowrap",style:o.normalizeStyle({backgroundColor:o.unref(c).bgColor,color:o.unref(c).textColor,borderRadius:`${o.unref(c).radiusSize}px`,fontSize:`${o.unref(c).textSize}px`})},o.toDisplayString(t.value),5),o.renderSlot(r.$slots,"default",{},void 0,!0)]))}})),N=S._export_sfc(E,[["__scopeId","data-v-f7f3fbba"]]);exports.default=N;
@@ -1 +0,0 @@
1
- "use strict";var St=Object.defineProperty,vt=Object.defineProperties;var Nt=Object.getOwnPropertyDescriptors;var et=Object.getOwnPropertySymbols;var bt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var nt=(v,r,N)=>r in v?St(v,r,{enumerable:!0,configurable:!0,writable:!0,value:N}):v[r]=N,st=(v,r)=>{for(var N in r||(r={}))bt.call(r,N)&&nt(v,N,r[N]);if(et)for(var N of et(r))Ct.call(r,N)&&nt(v,N,r[N]);return v},lt=(v,r)=>vt(v,Nt(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ot=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const a=require("vue"),yt=require("@element-plus/icons-vue"),B=require("./index-D8dh_6Qd.cjs"),xt=require("./EChartComponentBase-D4wMej9X.cjs"),Ot=require("./titleStyle-NSnz6cUg.cjs"),at=require("./ele-lin-icon-Dke_1AmT.cjs"),W=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Dt=require("./install-C8buXQPI.cjs"),It=require("./install-CltTFs4e.cjs"),Et=require("./install-CYwVETsi.cjs"),_t={class:"mix-body"},Vt={class:"toolbar"},wt=["id"],kt={DEFAULT_ICON:at.DEFAULT_ICON,ACTIVE_ICON:at.ACTIVE_ICON,NAME_CN:"聚类滑面关联",NAME_EN:"DeepClusterSlipSurface",ORDER:18},At={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:35,left:50,right:40,xName:{value:"时间",type:"string",label:"X轴名称"},yLeftName:{value:"累计位移(mm)",type:"string",label:"左轴名称"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},it=[{name:"累计位移",fv:"disp_130",color:"#5470c6",object_id:""}],Tt=["name","fv","color","object_id"],Lt=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Mt={useAlias:!1,multiObject:!0,source:"mosaic"},$t={DEFAULT:kt,OPTIONS:At,DATA:it,PARAMS:Tt,SOURCE:Lt,COMMON:Mt},Ft=a.defineComponent(lt(st({},$t),{__name:"deepClusterSlipSurface",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){W.use([Dt.install,W.install,It.install,W.install$1,Et.install]);const r=v,N=B.useLinkStore(),w=a.ref([]),M=a.ref(new Map),P=t=>{if(t==null)return"";const e=typeof t=="string"?t:String(t),s=typeof t=="number"||/^\d+$/.test(e)?new Date(Number(t)):new Date(e);if(Number.isNaN(s.getTime()))return e;const i=s.getFullYear(),o=String(s.getMonth()+1).padStart(2,"0"),u=String(s.getDate()).padStart(2,"0"),d=String(s.getHours()).padStart(2,"0"),l=String(s.getMinutes()).padStart(2,"0"),f=String(s.getSeconds()).padStart(2,"0");return`${i}-${o}-${u} ${d}:${l}:${f}`};class rt extends xt.EChartComponentBase{extractStyles(){const e=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),s=e==="custom"&&n?n:e;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",35),left:this.getOptionValue("left",50),right:this.getOptionValue("right",40),xName:this.getOptionValue("xName","时间"),yLeftName:this.getOptionValue("yLeftName","累计位移(mm)"),linkChannel:s}}init(){var e;this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=it),a.nextTick(()=>this.initChart())}setHistoryData(e){tt(e)}setSocketData(e){e&&tt(e)}setPanelConfig(e){this.panelConfig=e||{};const n=this.getChartInstance();n&&n.setOption(this.getChartOption(),!0)}onLinkEvent(e){Z(e)}getChartOption(){var d;const e=((d=r.conf)==null?void 0:d.data)||[],n=this.panelConfig||{},s=Object.keys(n).find(l=>l.endsWith("__yAxis")),i=s&&n[s]||n.range__yAxis||n.range__y||null,o=Number.isFinite(i==null?void 0:i.min)?Number(i==null?void 0:i.min):null,u=Number.isFinite(i==null?void 0:i.max)?Number(i==null?void 0:i.max):null;return{animation:!0,animationDuration:500,animationDurationUpdate:700,animationEasing:"cubicOut",animationEasingUpdate:"cubicInOut",grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},legend:{top:8,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"axis"},xAxis:{type:"category",name:this.Style.value.xName,data:G.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,formatter:l=>F.value==="day"?q(l):P(l)}},yAxis:[{type:"value",name:this.Style.value.yLeftName,min:o!==null?o:null,max:u!==null?u:null,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}}],series:e.filter(l=>!k.value||k.value.length===0?!1:k.value.includes(String(l==null?void 0:l.fv))).map((l,f)=>{const m=(l==null?void 0:l.fv)||`v${f}`,g=new Map;J.value.forEach(c=>{const h=c[m];h!=null&&g.set(String(c.t),Number(h))});const S=G.value.map(c=>g.has(c)?g.get(c):null);return{name:(l==null?void 0:l.name)||`序列${f+1}`,type:"line",smooth:.35,smoothMonotone:"x",showSymbol:!1,emphasis:{focus:"series",scale:!0},data:S,lineStyle:{color:(l==null?void 0:l.color)||"#5470c6",width:2},itemStyle:{color:(l==null?void 0:l.color)||"#5470c6"}}})}}}const x=new rt(r,"deepClusterSlipSurface"),ct=x.getEchartId();x.setupLifecycle();const H=x.getStyle(),ut=a.computed(()=>Ot.generateTitleStyle(r.conf.options)),V=a.ref([]),k=a.ref(null),Y=a.ref(!1),X=a.ref(null),F=a.ref("hour"),K=a.ref([]),R=()=>{var n;if(Y.value||k.value&&k.value.length)return;const e=(((n=r.conf)==null?void 0:n.data)||[]).map(s=>String((s==null?void 0:s.logicKey)||(s==null?void 0:s.fv)||"")).filter(Boolean);k.value=e.length?e:null},U=t=>{if(t==null)return Number.NaN;const e=typeof t=="string"?t.trim():String(t);if(!e)return Number.NaN;if(/^\d+$/.test(e)){const n=Number(e);return e.length<=10?n*1e3:n}return new Date(e).getTime()},q=t=>{const e=U(t);if(Number.isNaN(e))return String(t||"").slice(0,10);const n=new Date(e),s=n.getFullYear(),i=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0");return`${s}-${i}-${o}`},ft=(t,e)=>{if(!(e!=null&&e.startDate)&&!(e!=null&&e.endDate))return!0;const n=U(t);if(Number.isNaN(n))return!0;const s=e.startDate?U(e.startDate):Number.NEGATIVE_INFINITY,i=e.endDate?U(e.endDate):Number.POSITIVE_INFINITY,o=Number.isNaN(s)?Number.NEGATIVE_INFINITY:s,u=Number.isNaN(i)?Number.POSITIVE_INFINITY:i;return n>=o&&n<=u},dt=t=>{var i;const e=((i=r.conf)==null?void 0:i.data)||[];if(!t.length||!e.length)return t;const n=new Map;t.forEach(o=>{const u=q(o.t);n.has(u)||n.set(u,[]),n.get(u).push(o)});const s=[];return Array.from(n.entries()).forEach(([o,u])=>{const d={t:o};let l=!1;e.forEach(f=>{const m=f==null?void 0:f.fv;if(!m)return;let g=0,S=0;u.forEach(c=>{const h=Number(c[m]);Number.isFinite(h)&&(g+=h,S+=1)}),S>0&&(d[m]=Number((g/S).toFixed(6)),l=!0)}),l&&s.push(d)}),s.sort((o,u)=>String(o.t).localeCompare(String(u.t)))},ht=(t,e)=>{const n=String(t||"").trim(),s=String(e||"").trim();return!n||!s?!1:n===s?!0:F.value==="day"?q(n)===q(s):P(n)===P(s)},mt=a.computed(()=>{const t=F.value==="day"?dt(V.value):V.value;if(!t.length)return[];const e=X.value;return!(e!=null&&e.startDate)&&!(e!=null&&e.endDate)?t:t.filter(n=>ft(String(n.t),e))}),J=a.computed(()=>{const t=mt.value;return K.value.length>0?t.filter(e=>K.value.some(n=>ht(String(e.t),n))):t}),G=a.computed(()=>{const t=new Set;return J.value.forEach(e=>t.add(String(e.t))),Array.from(t).sort()});a.computed(()=>G.value.map(t=>F.value==="day"?q(t):P(t)));const z=()=>{a.nextTick(()=>{const t=x.getChartInstance();t&&t.setOption(x.getChartOption(),!0)})},pt=()=>{const t=x.getChartInstance();if(!t)return;const e=t.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=e,n.download=`cluster-slip-${selectedTime.value||Date.now()}.png`,n.click()},Q=()=>{var s,i,o;const t=((s=r.conf)==null?void 0:s.options)||{},e=((i=t==null?void 0:t.linkChannel)==null?void 0:i.value)||H.value.linkChannel||"deepDisplacement",n=((o=t==null?void 0:t.customChannel)==null?void 0:o.value)||"";return e==="custom"&&n?n:e},gt=t=>{var o,u,d;const e=((o=r.conf)==null?void 0:o.data)||[];if(e.length===0)return[];if(Array.isArray(t==null?void 0:t.data))return t.data.map((l,f)=>{var S,c;const m={t:String((c=(S=l==null?void 0:l.time)!=null?S:l==null?void 0:l.datetime)!=null?c:f)};let g=!1;return e.forEach(h=>{const I=h==null?void 0:h.fv;I&&(l==null?void 0:l[I])!==void 0&&(l==null?void 0:l[I])!==null&&(m[I]=Number(l==null?void 0:l[I]),g=!0)}),g?m:null}).filter(Boolean);const s={t:String((d=(u=t==null?void 0:t.time)!=null?u:t==null?void 0:t.datetime)!=null?d:Date.now())};let i=!1;return e.forEach(l=>{const f=l==null?void 0:l.fv;if(!f)return;const m=t==null?void 0:t[f];m!=null&&M.value.set(f,Number(m)),M.value.has(f)&&(s[f]=M.value.get(f),i=!0)}),i?[s]:[]},Z=t=>{var d,l,f,m,g,S;if(!t||!t.payload)return;const e=Q();if((d=t.topic)!=null&&d.channel&&e&&t.topic.channel!==e||!N.shouldHandle(t,"deepClusterSlipSurface"))return;const n=t.payload;if((n==null?void 0:n.type)==="filter"){const c=n.filter||n,h=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id),E=((f=(((l=r.conf)==null?void 0:l.data)||[])[0])==null?void 0:f.configPanelId)||"",C=[r.uid,(m=r.conf)==null?void 0:m.id,(g=r.conf)==null?void 0:g.uid,E].map(y=>String(y||"").trim()).filter(Boolean).includes(String(h||"").trim());if(!h||!C)return;x.setPanelConfig(c);const A=c.nodeList||c.selectList||c.options||c.selectedNodes,_=Array.isArray(A)?A.map(String):null;Y.value=Array.isArray(A),k.value=_&&_.length>0?_:[],Y.value||R();const O=Object.entries(c||{}).find(([y,L])=>{if(!L||typeof L!="object"||Array.isArray(L))return!1;const j=String(y||"").toLowerCase();return j.includes("time")&&j.includes("range")||!!L.startDate&&!!L.endDate}),p=(O==null?void 0:O[1])||c.timeRange||c.range||null;X.value=p&&(p.startDate||p.endDate)?{startDate:p.startDate,endDate:p.endDate}:null;const D=String((p==null?void 0:p.granularity)||(c==null?void 0:c.granularity)||"").toLowerCase();(D==="day"||D==="hour")&&(F.value=D);const T=Object.entries(c||{}).find(([y,L])=>{if(!Array.isArray(L))return!1;const j=String(y||"").toLowerCase();return j.includes("time")||j.includes("date")}),$=c.timeList||c.selectedTimes||(T==null?void 0:T[1]);K.value=Array.isArray($)?$.map(y=>String(y)):[],z();return}const s=r.conf,i=(s==null?void 0:s.data)||[],o=(s==null?void 0:s.common)||{};if(i.length>0&&!(o!=null&&o.multiObject)){const c=B.getObjectId(o,o==null?void 0:o.useAlias,r.uid)||((S=i[0])==null?void 0:S.object_id),h=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(c&&h&&String(c)!==String(h))return}const u=gt(n);u.length&&(V.value=u.length===1?[...V.value.slice(-199),...u]:u,R(),z())},tt=t=>{var l,f,m,g,S,c,h,I;const e=r.conf,n=(e==null?void 0:e.data)||[],s=(e==null?void 0:e.common)||{},i=(s==null?void 0:s.source)||"mosaic";let o=t;["statistics","calculate"].includes(i)&&(o=B.formatStatisticsResult(o,n));const u=n||[],d=[];if((l=o==null?void 0:o.history)!=null&&l.length)o.history.forEach((E,b)=>{var p,D;const C=(E==null?void 0:E[0])||E||{},_={t:String((D=(p=C==null?void 0:C.time)!=null?p:C==null?void 0:C.datetime)!=null?D:b)};let O=!1;u.forEach(T=>{const $=T==null?void 0:T.fv;if(!$)return;const y=C==null?void 0:C[$];y!=null&&(_[$]=Number(y),O=!0)}),O&&d.push(_)}),w.value=d,V.value=[...w.value],R();else{const E=B.getObjectId(s,s==null?void 0:s.useAlias,r.uid)||((f=n[0])==null?void 0:f.object_id),b=E&&((g=(m=o==null?void 0:o[E])==null?void 0:m[i])==null?void 0:g.data)||((S=o==null?void 0:o[i])==null?void 0:S.data)||(o==null?void 0:o.data)||o,A={t:String((h=(c=b==null?void 0:b.time)!=null?c:b==null?void 0:b.datetime)!=null?h:Date.now())};let _=!1;u.forEach(O=>{const p=O==null?void 0:O.fv;if(!p)return;const D=b==null?void 0:b[p];D!=null&&M.value.set(p,Number(D)),M.value.has(p)&&(A[p]=M.value.get(p),_=!0)}),_&&d.push(A),d.length&&(w.value=[...w.value,...d],V.value=[...w.value],R())}!d.length&&!((I=o==null?void 0:o.history)!=null&&I.length)||z()};return a.watch(()=>N.channels[Q()],t=>{t&&Z(t)},{deep:!0}),a.watchEffect(()=>{r.conf.socketData&&x.setSocketData(r.conf.socketData)}),a.watch(()=>{var t;return(t=r.conf)==null?void 0:t.options},()=>{x.getStyle().value=x.extractStyles(),z()},{deep:!0}),a.onMounted(()=>{if(r.mode==="edit"&&!V.value.length){const t=["2026-03-05","2026-03-04","2026-03-03"],e=[];t.forEach(n=>{for(let s=0;s<24;s++){const i=`${n} ${String(s).padStart(2,"0")}:00:00`;e.push({t:i,disp:Number((s*1.8+Math.sin(s/3)*2).toFixed(2)),slip:Number(Math.max(0,Math.min(1,.25+s*.02+Math.sin(s/4)*.08)).toFixed(3))})}}),w.value=e,V.value=[...w.value]}R(),z()}),(t,e)=>{const n=ot.ElIcon,s=ot.ElButton;return a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(H).bgColor,borderRadius:`${a.unref(H).radiusSize}px`})},[a.unref(H).isHideTitle?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"mix-title",style:a.normalizeStyle(ut.value)},a.toDisplayString(v.conf.caption||v.conf.name),5)),a.createElementVNode("div",_t,[a.createElementVNode("div",Vt,[a.createVNode(s,{size:"small",class:"export-btn",onClick:pt},{default:a.withCtx(()=>[a.createVNode(n,null,{default:a.withCtx(()=>[a.createVNode(a.unref(yt.Download))]),_:1}),e[0]||(e[0]=a.createTextVNode(" 导出图 ",-1))]),_:1})]),a.createElementVNode("div",{class:"echart-container",id:a.unref(ct)},null,8,wt)]),a.renderSlot(t.$slots,"default",{},void 0,!0)],4)}}})),Rt=B._export_sfc(Ft,[["__scopeId","data-v-fcf1975e"]]);exports.default=Rt;
@@ -1 +0,0 @@
1
- "use strict";var z=Object.defineProperty,F=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var j=(c,i,r)=>i in c?z(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,A=(c,i)=>{for(var r in i||(i={}))q.call(i,r)&&j(c,r,i[r]);if(M)for(var r of M(i))H.call(i,r)&&j(c,r,i[r]);return c},I=(c,i)=>F(c,$(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const U=require("./BaseComponent-CNXUpPY1.cjs"),C=require("./index-D8dh_6Qd.cjs"),P=require("./titleStyle-NSnz6cUg.cjs"),R=require("./ele-gridview-icon-D3GcssP6.cjs"),G={class:"mix-body"},W={class:"table-wrap"},J={class:"matrix-table"},K={class:"time-col"},Q={key:0},X=["colspan"],Y={DEFAULT_ICON:R.DEFAULT_ICON,ACTIVE_ICON:R.ACTIVE_ICON,NAME_CN:"深部位移矩阵表",NAME_EN:"DeepDataMatrix",ORDER:20},Z={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,maxRows:{value:50,type:"number",label:"最大显示行数"},decimal:{value:3,type:"number",label:"小数位数"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},T=[{name:"合位移",fv:"disp_130",depth:-130,color:"#5470c6",object_id:""},{name:"合位移",fv:"disp_140",depth:-140,color:"#5470c6",object_id:""}],ee=["name","fv","depth","color","object_id"],te=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ne={useAlias:!1,multiObject:!0,source:"mosaic"},le={DEFAULT:Y,OPTIONS:Z,DATA:T,PARAMS:ee,SOURCE:te,COMMON:ne},ae=e.defineComponent(I(A({},le),{__name:"deepDataMatrix",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(c){const i=c,r=C.useLinkStore();class w extends U.BaseComponent{extractStyles(){const n=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),o=n==="custom"&&t?t:n;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),maxRows:this.getOptionValue("maxRows",50),decimal:this.getOptionValue("decimal",3),linkChannel:o}}init(){var n;this.Style.value=this.extractStyles(),this.applyTheme(),(n=this.props.conf.data)!=null&&n.length||(this.props.conf.data=T)}setHistoryData(n){V(n)}setSocketData(n){n&&V(n)}onLinkEvent(n){N(n)}}const v=new w(i,"deepDataMatrix");v.setupLifecycle();const g=v.getStyle(),L=e.computed(()=>P.generateTitleStyle(i.conf.options)),d=e.ref([]),O=e.computed(()=>{const a=new Set;return d.value.forEach(n=>{Object.keys(n.values).forEach(t=>a.add(Number(t)))}),Array.from(a).sort((n,t)=>n-t)}),x=e.computed(()=>{var n,t,o,s,l;const a=Math.max(1,Number((l=(s=(o=(t=(n=i.conf)==null?void 0:n.options)==null?void 0:t.maxRows)==null?void 0:o.value)!=null?s:g.value.maxRows)!=null?l:50));return d.value.slice(Math.max(0,d.value.length-a))}),_=a=>{var t,o,s,l,u;const n=Math.max(0,Number((u=(l=(s=(o=(t=i.conf)==null?void 0:t.options)==null?void 0:o.decimal)==null?void 0:s.value)!=null?l:g.value.decimal)!=null?u:3));return a.toFixed(n)},D=()=>{var o,s,l;const a=((o=i.conf)==null?void 0:o.options)||{},n=((s=a==null?void 0:a.linkChannel)==null?void 0:s.value)||g.value.linkChannel||"deepDisplacement",t=((l=a==null?void 0:a.customChannel)==null?void 0:l.value)||"";return n==="custom"&&t?t:n},S=a=>{var o;const n=((o=i.conf)==null?void 0:o.data)||[],t=[];return a.forEach((s,l)=>{var h,m;const u=String((m=(h=s==null?void 0:s.time)!=null?h:s==null?void 0:s.datetime)!=null?m:l),p={};n.forEach(f=>{const k=f.fv,b=Number(s==null?void 0:s[k]);if(Number.isFinite(b)){const E=-Math.abs(parseFloat(k));p[E]=_(b)}}),Object.keys(p).length&&t.push({time:u,values:p})}),t},N=a=>{var p,h;if(i.mode==="edit"||!a||!a.payload)return;const n=D();if((p=a.topic)!=null&&p.channel&&n&&a.topic.channel!==n||!r.shouldHandle(a,"deepDataMatrix"))return;const t=a.payload;if((t==null?void 0:t.type)==="filter")return;const o=i.conf,s=(o==null?void 0:o.data)||[],l=(o==null?void 0:o.common)||{};if(s.length>0&&!(l!=null&&l.multiObject)){const m=C.getObjectId(l,l==null?void 0:l.useAlias,i.uid)||((h=s[0])==null?void 0:h.object_id),f=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(m&&f&&String(m)!==String(f))return}if(Array.isArray(t==null?void 0:t.data)){const m=S(t.data);m.length&&(d.value=m);return}const u=S([t]);u.length&&(d.value=[...d.value.slice(-199),...u])},V=a=>{var m,f,k,b;const n=i.conf,t=(n==null?void 0:n.data)||[],o=(n==null?void 0:n.common)||{},s=(o==null?void 0:o.source)||"mosaic";let l=a;if(["statistics","calculate"].includes(s)&&(l=C.formatStatisticsResult(l,t)),(m=l==null?void 0:l.history)!=null&&m.length){const E=l.history.map(y=>(y==null?void 0:y[0])||y||{}),B=S(E);B.length&&(d.value=B);return}const u=o!=null&&o.multiObject?"":C.getObjectId(o,o==null?void 0:o.useAlias,i.uid),p=u&&((k=(f=l==null?void 0:l[u])==null?void 0:f[s])==null?void 0:k.data)||((b=l==null?void 0:l[s])==null?void 0:b.data)||(l==null?void 0:l.data)||l,h=S([p]);h.length&&(d.value=[...d.value.slice(-199),...h])};return e.watch(()=>r.channels[D()],a=>{a&&N(a)},{deep:!0}),e.watchEffect(()=>{i.conf.socketData&&v.setSocketData(i.conf.socketData)}),e.watch(()=>{var a;return(a=i.conf)==null?void 0:a.options},()=>{v.getStyle().value=v.extractStyles()},{deep:!0}),e.onMounted(()=>{if(i.mode==="edit"&&!d.value.length){const a=[],n=[-78,-75,-72,-69,-66,-63];for(let t=0;t<8;t++){const o=`2026-03-05 ${String(t).padStart(2,"0")}:00:00`,s={};n.forEach((l,u)=>{const p=5+u*.8+t*.2+Math.sin(t+u)*.3;s[l]=_(p)}),a.push({time:o,values:s})}d.value=a}}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(g).bgColor,borderRadius:`${e.unref(g).radiusSize}px`})},[e.unref(g).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(L.value)},e.toDisplayString(c.conf.caption||c.conf.name),5)),e.createElementVNode("div",G,[e.createElementVNode("div",W,[e.createElementVNode("table",J,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[n[0]||(n[0]=e.createElementVNode("th",{class:"time-col"},"采集时间",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,t=>(e.openBlock(),e.createElementBlock("th",{key:`head-${t}`},e.toDisplayString(t)+"米",1))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(t,o)=>(e.openBlock(),e.createElementBlock("tr",{key:`row-${o}-${t.time}`},[e.createElementVNode("td",K,e.toDisplayString(t.time),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,s=>{var l;return e.openBlock(),e.createElementBlock("td",{key:`cell-${o}-${s}`},e.toDisplayString((l=t.values[s])!=null?l:"--"),1)}),128))]))),128)),x.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("tr",Q,[e.createElementVNode("td",{colspan:Math.max(2,O.value.length+1),class:"empty-cell"},"暂无数据",8,X)]))])])])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4))}})),oe=C._export_sfc(ae,[["__scopeId","data-v-a26bcc53"]]);exports.default=oe;
@@ -1,6 +0,0 @@
1
- "use strict";var ie=Object.defineProperty,oe=Object.defineProperties;var re=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols,ce=Object.getPrototypeOf,ue=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,de=Reflect.get;var W=(_,y,b)=>y in _?ie(_,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):_[y]=b,A=(_,y)=>{for(var b in y||(y={}))ue.call(y,b)&&W(_,b,y[b]);if(G)for(var b of G(y))pe.call(y,b)&&W(_,b,y[b]);return _},U=(_,y)=>oe(_,re(y));var X=(_,y,b)=>de(ce(_),b,y);var Y=(_,y,b)=>new Promise((S,j)=>{var P=g=>{try{x(b.next(g))}catch(O){j(O)}},V=g=>{try{x(b.throw(g))}catch(O){j(O)}},x=g=>g.done?S(g.value):Promise.resolve(g.value).then(P,V);x((b=b.apply(_,y)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const l=require("vue"),he=require("@element-plus/icons-vue");require("html2canvas");const k=require("./index-D8dh_6Qd.cjs"),me=require("./EChartComponentBase-D4wMej9X.cjs"),fe=require("./request-DU8pRyvu.cjs"),Z=require("./ele-lin-icon-Dke_1AmT.cjs"),ve={class:"panel-header"},ye={class:"header-left"},ge={class:"header-title"},be={class:"chart-area"},xe={class:"toolbar"},De=["id"],Ce={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"深部位移图表",NAME_EN:"Deep Displacement Chart",ORDER:1},Se={title:{value:"深部位移图表",type:"string",label:"component.deepDisplacementChart.title"},dispType:{value:"cumulative",type:"select",label:"component.deepDisplacementChart.dispType",options:[{label:"component.deepDisplacementChart.dispTypeOptions.cumulative",value:"cumulative"},{label:"component.deepDisplacementChart.dispTypeOptions.relative",value:"relative"}]},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},xAxisName:{value:"位移量(mm)",type:"string",label:"component.deepDisplacementChart.xAxisName"},yAxisLeftName:{value:"深度(m)",type:"string",label:"component.deepDisplacementChart.yAxisLeftName"},yAxisRightName:{value:"高程(m)",type:"string",label:"component.deepDisplacementChart.yAxisRightName"},baseElevation:{value:688,type:"number",label:"基准高程(m)"},jumpUrl:{value:"",type:"string",label:"component.deepDisplacementChart.jumpUrl"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Ee=[{name:"X位移",fvPrefix:"x",separator:"_",minDepth:0,maxDepth:200,step:1,color:"#4a90d9",object_id:""},{name:"Y位移",fvPrefix:"y",separator:"_",minDepth:0,maxDepth:200,step:1,color:"#f5a623",object_id:""},{name:"Z位移",fvPrefix:"z",separator:"_",minDepth:0,maxDepth:200,step:1,color:"#7ed321",object_id:""}],_e=["name","fv","fvPrefix","separator","minDepth","maxDepth","step","color","object_id"],Ne=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Oe={useAlias:!1,multiObject:!0,source:"mosaic"},je={DEFAULT:Ce,OPTIONS:Se,DATA:Ee,PARAMS:_e,SOURCE:Ne,COMMON:Oe},we=l.defineComponent(U(A({},je),{__name:"deepDisplacementChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(_){const y=_;class b extends me.EChartComponentBase{constructor(){super(...arguments),this.currentObjectId="",this.chartData=new Map,this.timeSeriesData=new Map,this.latestValues=new Map}getRecordValue(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:e!=null&&e.event?this.extractDataValue(e,t):e==null?void 0:e[t]}getDepthValue(e){const t=Number(e);return Number.isFinite(t)?t:null}extractStyles(){var a,o,p,m,f,h,n,d,r,c,v;const{options:e}=this.props.conf,t=((a=e==null?void 0:e.linkChannel)==null?void 0:a.value)||"deepDisplacement",i=((o=e==null?void 0:e.customChannel)==null?void 0:o.value)||"",s=t==="custom"&&i?i:t;return{title:((p=e==null?void 0:e.title)==null?void 0:p.value)||"深部位移图表",dispType:((m=e==null?void 0:e.dispType)==null?void 0:m.value)||"cumulative",bgColor:((f=e==null?void 0:e.bgColor)==null?void 0:f.value)||"#ffffff",textColor:((h=e==null?void 0:e.textColor)==null?void 0:h.value)||"#333333",xAxisName:((n=e==null?void 0:e.xAxisName)==null?void 0:n.value)||"位移量(mm)",yAxisLeftName:((d=e==null?void 0:e.yAxisLeftName)==null?void 0:d.value)||"深度(m)",yAxisRightName:((r=e==null?void 0:e.yAxisRightName)==null?void 0:r.value)||"高程(m)",baseElevation:((c=e==null?void 0:e.baseElevation)==null?void 0:c.value)||688,jumpUrl:((v=e==null?void 0:e.jumpUrl)==null?void 0:v.value)||"",linkChannel:s}}getDefaultData(){return[{name:"合位移",fv:"disp_130",depth:-130,color:"#4a90d9",object_id:""},{name:"合位移",fv:"disp_140",depth:-140,color:"#4a90d9",object_id:""}]}initHistory(){return Y(this,null,function*(){const e=this.props.conf;if(!e)return[];e.options||(e.options={});const t=e.options.points,i=Object.prototype.hasOwnProperty.call(e.options,"points");(!t||Number(t)<24)&&(e.options.points=24);try{return yield X(b.prototype,this,"initHistory").call(this)}finally{i?e.options.points=t:delete e.options.points}})}setHistoryData(e){var o,p,m;const{data:t,common:i}=this.props.conf;if(!t||t.length===0)return;const s=(i==null?void 0:i.source)||"mosaic";["statistics","calculate"].includes(s)&&(e=k.formatStatisticsResult(e,t));const a=k.handleNullData(e,this.props,"history");if(a){console.log("[DeepDisplacementChart] history raw sample:",((p=(o=a.history)==null?void 0:o[0])==null?void 0:p[0])||((m=a.history)==null?void 0:m[0])||a.history);try{if(this.chartData.clear(),this.timeSeriesData.clear(),g.value=[],O.value=[],!a.history||!Array.isArray(a.history))return;const f=[...new Set(t.map(r=>{var c;return String((c=r.object_id)!=null?c:"")}))],h=Array.isArray(a.history)?a.history:[],n=r=>{const c=t.map((C,D)=>D).filter(C=>{var D,w;return String((w=(D=t[C])==null?void 0:D.object_id)!=null?w:"")===r});if(!c.length)return[];const v=c[0],E=Array.isArray(h[v])?h[v]:[],N=[];return E.forEach((C,D)=>{const w=C&&typeof C=="object"?A({},C):{};c.forEach(R=>{var $,H;const q=($=h[R])==null?void 0:$[D],F=(H=t[R])==null?void 0:H.fv;F&&q&&typeof q=="object"&&Object.prototype.hasOwnProperty.call(q,F)&&(w[F]=q[F])}),N.push(w)}),N},d=f.map(r=>n(r));if(this.processMultiObjectHistory(d,t,f),T(),!x.value&&g.value.length&&(x.value=g.value[g.value.length-1]),console.log("[DeepDisplacementChart] 选中时间:",x.value),console.log("[DeepDisplacementChart] timeSeriesData 中的时间点:",Array.from(this.timeSeriesData.keys())),x.value&&this.timeSeriesData.has(x.value)){const r=this.timeSeriesData.get(x.value);console.log("[DeepDisplacementChart] 选中时间的数据,线:",Array.from((r==null?void 0:r.keys())||[])),this.chartData=new Map(r||new Map)}console.log("[DeepDisplacementChart] 最终 chartData 中的线:",Array.from(this.chartData.keys())),L.value++}catch(f){console.error("[DeepDisplacementChart] 解析历史数据失败:",f)}}}processHistoryRecords(e,t){e.forEach(i=>{var o;const s=(o=i==null?void 0:i.time)!=null?o:i==null?void 0:i.datetime;if(!s)return;const a=new Map;if(t.forEach(p=>{const m=p.fv,f=p.depth,h=p.name||"未命名",n=this.getRecordValue(i,m),d=Number(n);if(n!=null&&Number.isFinite(f)){const c=(this.extractStyles().baseElevation||688)+f;a.has(h)||a.set(h,[]),a.get(h).push({depth:f,elevation:c,value:Number.isFinite(d)?d:0})}}),a.size>0){const p=new Map;a.forEach((m,f)=>{m.sort((h,n)=>n.depth-h.depth),p.set(f,m)}),this.timeSeriesData.set(String(s),p),I(s)}})}processMultiObjectHistory(e,t,i){const s=e[0]||[];s.length&&s.forEach((a,o)=>{var f;const p=(f=a==null?void 0:a.time)!=null?f:a==null?void 0:a.datetime;if(!p)return;const m=new Map;if(t.forEach(h=>{const n=h.fv,d=h.depth,r=h.name||"未命名",c=h.object_id,v=i.indexOf(c);if(v===-1||!e[v])return;const E=e[v];if(!E[o])return;const N=E[o],C=this.getRecordValue(N,n),D=Number(C);if(C!=null&&Number.isFinite(d)){const R=(this.extractStyles().baseElevation||688)+d;m.has(r)||m.set(r,[]),m.get(r).push({depth:d,elevation:R,value:D})}}),m.size>0){const h=new Map;m.forEach((n,d)=>{n.sort((r,c)=>c.depth-r.depth),h.set(d,n)}),this.timeSeriesData.set(String(p),h),I(p)}})}setSocketData(e){var i,s;if(!e)return;const{data:t}=this.props.conf;if(!(!t||t.length===0))try{const a=(s=(i=e==null?void 0:e.time)!=null?i:e==null?void 0:e.datetime)!=null?s:Date.now(),o=new Map;console.log("[DeepDisplacementChart] realtime raw:",e),t.forEach(m=>{const f=m.fv,h=this.getDepthValue(m.depth),n=m.name||"未命名",d=this.extractDataValue(e,f);console.log("[DeepDisplacementChart] realtime fv:",f,"rawValue:",d),d!=null&&Number.isFinite(Number(d))&&this.latestValues.set(f,Number(d));const r=this.latestValues.get(f);if(r!==void 0&&h!==null){const v=(this.extractStyles().baseElevation||688)+h;o.has(n)||o.set(n,[]),o.get(n).push({depth:h,elevation:v,value:r})}});const p=new Map;o.forEach((m,f)=>{m.sort((h,n)=>n.depth-h.depth),p.set(f,m)}),p.size>0&&(console.log("[DeepDisplacementChart] realtime series keys:",Array.from(p.keys())),console.log("[DeepDisplacementChart] realtime series data:",Array.from(p.entries())),this.timeSeriesData.set(String(a),p),I(a),this.chartData=p,L.value++)}catch(a){console.error("[DeepDisplacementChart] 解析实时数据失败:",a)}}setCurrentObjectId(e){this.currentObjectId=e}getCurrentObjectId(){return this.currentObjectId}getChartOption(){var r;const e=this.extractStyles(),t=((r=this.props.conf)==null?void 0:r.data)||[],i=x.value;i&&this.timeSeriesData.has(i)&&(this.chartData=new Map(this.timeSeriesData.get(i)||new Map));const s=[];let a=[],o=[];this.chartData.forEach((c,v)=>{if(c.length===0)return;c.forEach(D=>{D.depth!==void 0&&a.push(D.depth),D.elevation!==void 0&&o.push(D.elevation)});const E=[...c].sort((D,w)=>(w.depth||0)-(D.depth||0)),N=t.find(D=>D.name===v),C=(N==null?void 0:N.color)||"#4a90d9";s.push({name:v,type:"line",data:E.map(D=>[D.value||0,D.depth||0]),smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:C,width:2},itemStyle:{color:C,borderColor:"#fff",borderWidth:2},yAxisIndex:0})}),s.length===0&&this.getMockData().forEach(v=>{s.push({name:v.name,type:"line",data:v.data,smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:v.color,width:2},itemStyle:{color:v.color,borderColor:"#fff",borderWidth:2},yAxisIndex:0}),v.data.forEach(E=>a.push(E[1]))});const p=a.length>0?Math.min(...a):-80,m=a.length>0?Math.max(...a):0,f=o.length>0?Math.min(...o):810,h=o.length>0?Math.max(...o):890,n=h||890,d=c=>n+c;return{grid:{left:80,right:80,top:36,bottom:88},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:c=>{if(!c||c.length===0)return"";const v=c[0].data[1],E=d(v);let N=`<div style="padding:8px;max-width:300px;">
2
- <div style="font-weight:600;margin-bottom:6px;">深度: ${v}m</div>
3
- <div style="color:#666;margin-bottom:6px;">高程: ${E.toFixed(2)}m</div>`;return c.forEach(C=>{N+=`<div style="display:flex;align-items:center;margin:2px 0;">
4
- <span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:${C.color};margin-right:6px;"></span>
5
- <span style="flex:1;">${C.seriesName}: ${C.data[0].toFixed(2)} mm</span>
6
- </div>`}),N+="</div>",N}},legend:{type:"scroll",orient:"horizontal",bottom:10,itemWidth:16,itemHeight:10,itemGap:10,textStyle:{color:e.textColor,fontSize:12}},xAxis:{type:"value",name:e.xAxisName,nameLocation:"middle",nameGap:30,nameTextStyle:{color:e.textColor,fontSize:12},axisLine:{lineStyle:{color:"#ddd"}},axisLabel:{color:e.textColor,fontSize:11},splitLine:{lineStyle:{color:"#f0f0f0",type:"dashed"}}},yAxis:[{type:"value",name:e.yAxisLeftName,nameLocation:"middle",nameGap:50,nameTextStyle:{color:e.textColor,fontSize:12},position:"left",min:p-1,max:m+1,inverse:!1,axisLine:{lineStyle:{color:"#ddd"}},axisLabel:{color:e.textColor,fontSize:11},splitLine:{lineStyle:{color:"#f0f0f0",type:"dashed"}}},{type:"value",name:e.yAxisRightName,nameLocation:"middle",nameGap:50,nameTextStyle:{color:e.textColor,fontSize:12},position:"right",min:f-1,max:h+1,inverse:!1,axisLine:{lineStyle:{color:"#ddd"}},axisLabel:{color:e.textColor,fontSize:11,formatter:c=>c.toFixed(2)},splitLine:{show:!1}}],series:s}}getMockData(){var i;const e=((i=this.props.conf)==null?void 0:i.data)||this.getDefaultData(),t=[];return e.forEach((s,a)=>{const o=[];for(let p=0;p<=25;p++){const m=-p*3,f=(a+1)*5+p*.5;o.push([f+Math.sin(p*.3)*2,m])}t.push({name:s.name||`曲线${a+1}`,color:s.color||"#4a90d9",data:o})}),t}onLinkEvent(e){le(e)}}const S=new b(y,"deepDisplacementChart");S.setupLifecycle();const j=S.getStyle(),P=S.getEchartId(),V=l.inject("session",null),x=l.ref(""),g=l.ref([]),O=l.ref([]),M=l.ref(null),J=u=>{if(u==null||u==="")return null;const e=typeof u=="string"?u:String(u);if(/^\d+$/.test(e))return k.dayjs(Number(e));const t=k.dayjs(e);return t.isValid()?t:null},K=(u,e)=>{const t=s=>{if(!s)return null;const a=k.dayjs(s);return a.isValid()?s.length<=10?a.startOf("day"):a:null},i=s=>{if(!s)return null;const a=k.dayjs(s);return a.isValid()?s.length<=10?a.endOf("day"):a:null};return{start:t(u),end:i(e)}},T=()=>{if(!M.value){g.value=[...O.value];return}const{start:u,end:e,timeList:t}=M.value;if(t&&t.length>0){const i=new Set(t);g.value=O.value.filter(s=>{const a=String(s).split(" ")[0];return i.has(a)||i.has(String(s))})}else if(u||e){const{start:i,end:s}=K(u,e);g.value=O.value.filter(a=>{const o=J(a);return!(!o||!o.isValid()||i&&o.isBefore(i)||s&&o.isAfter(s))})}else g.value=[...O.value];x.value&&!g.value.includes(x.value)&&(x.value=g.value[g.value.length-1]||"")},I=(u,e=!0)=>{if(u==null||u==="")return;const t=String(u);O.value.includes(t)||(O.value=[...O.value,t]),T(),e&&(x.value=t)},Q=()=>{z()},ee=()=>{const u=S.getChartInstance();if(!u)return;const e=u.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t=document.createElement("a");t.href=e,t.download=`deep-displacement-${x.value||Date.now()}.png`,t.click()},te=l.ref(null),L=l.ref(0),ae=l.computed(()=>({backgroundColor:j.value.bgColor,color:j.value.textColor})),ne=()=>{if(y.mode==="edit")return;const u=j.value.jumpUrl;u&&window.open(u,"_blank")},z=()=>{const u=S.getChartInstance();if(u){const e=S.getChartOption();u.setOption(e,!0)}};l.watch(()=>y.conf,()=>{S.init(),l.nextTick(()=>z())},{deep:!0}),l.watch(()=>j.value.dispType,()=>{l.nextTick(()=>z())}),l.watch(L,()=>{l.nextTick(()=>z())});const se=u=>{if(!V||!u||y.mode!=="preview")return;const e=S.getCurrentObjectId();if(e===u)return;console.log(`[deepDisplacementChart] 切换订阅: ${e} → ${u}`),S.setCurrentObjectId(u);const t=U(A({},y.conf),{data:y.conf.data.map(s=>U(A({},s),{object_id:u}))}),i=fe.formatRequest(t,y.uid,"deepDisplacementChart");V.registerComponent({id:y.conf.id,request:i,onUpdate:(s,a)=>{s==="realtime"&&S.setSocketData(a)}})},le=u=>{var m,f,h;console.log("[deepDisplacementChart] 收到联动事件:",u);const{payload:e}=u;if(!e)return;if(e.type==="filter"){const n=e.timeRange||e.dateRange||e.timeRangeValue,d=e.timeList||e.selectedTimes,r={};Array.isArray(d)&&d.length>0?r.timeList=d:Array.isArray(n)&&n.length?(r.start=String(n[0]),r.end=String(n[n.length-1])):(n!=null&&n.startDate||n!=null&&n.start||n!=null&&n.endDate||n!=null&&n.end)&&(r.start=String(n.startDate||n.start||"")||void 0,r.end=String(n.endDate||n.end||"")||void 0),Object.keys(r).length>0?(M.value=r,T(),!x.value&&g.value.length&&(x.value=g.value[g.value.length-1])):(M.value=null,T());return}const{objectId:t,deviceId:i}=e,s=y.conf,a=(s==null?void 0:s.data)||[],o=(s==null?void 0:s.common)||{};if(a.length>0&&!(o!=null&&o.multiObject)){const n=k.getObjectId(o,o==null?void 0:o.useAlias,y.uid)||((m=a[0])==null?void 0:m.object_id),d=t||(e==null?void 0:e.object_id);if(n&&d&&String(n)!==String(d))return}te.value=e;let p=null;if(t&&(p=a.find(n=>String(n.object_id)===String(t))),!p&&i&&(p=a.find(n=>n.deviceId===i||n.name===i)),p&&e){console.log(`[deepDisplacementChart] 匹配 object_id=${t}, 更新图表数据`);const n=new Map;if(a.forEach(d=>{if(String(d.object_id)!==String(t))return;const r=d.fv,c=d.depth,v=d.name||"未命名",E=S.getRecordValue(e,r);if(E!=null&&Number.isFinite(Number(E))&&Number.isFinite(c)){const C=(S.extractStyles().baseElevation||688)+c;n.has(v)||n.set(v,[]),n.get(v).push({depth:c,elevation:C,value:Number(E)})}}),n.size>0){const d=String((h=(f=e==null?void 0:e.time)!=null?f:e==null?void 0:e.datetime)!=null?h:Date.now()),r=new Map;n.forEach((c,v)=>{c.sort((E,N)=>N.depth-E.depth),r.set(v,c)}),I(d),S.timeSeriesData.set(d,r),S.chartData=r,L.value++}}t&&se(t)};return l.onMounted(()=>{S.init()}),l.onUnmounted(()=>{S.cleanup()}),(u,e)=>{const t=B.ElOption,i=B.ElSelect,s=B.ElIcon,a=B.ElButton;return l.openBlock(),l.createElementBlock("div",{class:"deep-displacement-chart-wrapper",style:l.normalizeStyle(ae.value)},[l.createElementVNode("div",ve,[l.createElementVNode("div",ye,[e[1]||(e[1]=l.createElementVNode("div",{class:"header-indicator"},null,-1)),l.createElementVNode("span",ge,l.toDisplayString(l.unref(j).title),1)])]),l.createElementVNode("div",be,[l.createElementVNode("div",xe,[l.createVNode(i,{modelValue:x.value,"onUpdate:modelValue":e[0]||(e[0]=o=>x.value=o),placeholder:"选择时间",size:"small",class:"time-select",onChange:Q},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(g.value,o=>(l.openBlock(),l.createBlock(t,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l.createVNode(a,{size:"small",class:"export-btn",onClick:ee},{default:l.withCtx(()=>[l.createVNode(s,null,{default:l.withCtx(()=>[l.createVNode(l.unref(he.Download))]),_:1}),e[2]||(e[2]=l.createTextVNode(" 导出图 ",-1))]),_:1})]),l.createElementVNode("div",{id:l.unref(P),class:"chart-container",style:l.normalizeStyle({cursor:l.unref(j).jumpUrl?"pointer":"default"}),onClick:ne},null,12,De)]),l.renderSlot(u.$slots,"default",{},void 0,!0)],4)}}})),ke=k._export_sfc(we,[["__scopeId","data-v-361e49fb"]]);exports.default=ke;
@@ -1,5 +0,0 @@
1
- "use strict";var J=Object.defineProperty,Q=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols,ee=Object.getPrototypeOf,te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ae=Reflect.get;var q=(d,i,a)=>i in d?J(d,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):d[i]=a,U=(d,i)=>{for(var a in i||(i={}))te.call(i,a)&&q(d,a,i[a]);if(V)for(var a of V(i))oe.call(i,a)&&q(d,a,i[a]);return d},K=(d,i)=>Q(d,Y(i));var F=(d,i,a)=>ae(ee(d),a,i);var G=(d,i,a)=>new Promise((N,m)=>{var R=D=>{try{_(a.next(D))}catch(A){m(A)}},p=D=>{try{_(a.throw(D))}catch(A){m(A)}},_=D=>D.done?N(D.value):Promise.resolve(D.value).then(R,p);_((a=a.apply(d,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("html2canvas");const ne=require("./BaseComponent-CNXUpPY1.cjs"),z=require("./index-D8dh_6Qd.cjs");require("./index-mAPVa0s4.cjs");const Z=require("./ele-mxa-icon-fgN0MLnh.cjs"),se=require("./echarts-BB8O2KSA.cjs"),le={class:"deep-displacement-chart"},ie={class:"chart-header"},ce={class:"chart-title"},re={class:"chart-subtitle"},de={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"深部位移曲线图",NAME_EN:"Deep Displacement Chart",ORDER:13},pe={title:{value:"ZK10-深部位移01",type:"string",label:"component.deepDisplacement.title"},depth:{value:152,type:"number",label:"component.deepDisplacement.depth",min:1,max:500},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},points:{value:30,type:"number",label:"component.options.points",min:5,max:100}},fe=[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth",color:"#4a90d9"}],he=["configPanelId","name","object_id","points_fv","fv","depth_fv","color"],ue=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],me={useAlias:!1,multiObject:!1,source:"mosaic"},ge={DEFAULT:de,OPTIONS:pe,DATA:fe,PARAMS:he,SOURCE:ue,COMMON:me},ve=o.defineComponent(K(U({},ge),{__name:"deepDisplacementChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(d){o.useCssVars(t=>({v7db3a074:o.unref(O).bgColor,v764b7b0c:o.unref(O).textColor}));const i=z.useLinkStore(),a=d,N=o.ref({selectedTimes:[],startDate:"",endDate:""}),m=o.ref(new Map),R=`dispChart_${Date.now()}_${Math.random().toString(36).slice(2,8)}`;let p=null,_=null;const D=["#4a90d9","#67c23a","#e6a23c","#f56c6c","#909399","#00bcd4","#9c27b0","#ff9800","#795548","#607d8b"];class A extends ne.BaseComponent{extractStyles(){var n,s,y,f,g;const{options:e}=this.props.conf;return{title:((n=e==null?void 0:e.title)==null?void 0:n.value)||"ZK10-深部位移01",depth:((s=e==null?void 0:e.depth)==null?void 0:s.value)||152,bgColor:((y=e==null?void 0:e.bgColor)==null?void 0:y.value)||"#ffffff",textColor:((f=e==null?void 0:e.textColor)==null?void 0:f.value)||"#333333",points:((g=e==null?void 0:e.points)==null?void 0:g.value)||30}}getDefaultData(){return[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth",color:"#4a90d9"}]}getMockData(){var y;const e=((y=this.props.conf)==null?void 0:y.data)||this.getDefaultData(),n=["2026-01-15","2026-01-14","2026-01-13","2026-01-12","2026-01-11"],s=new Map;return e.forEach((f,g)=>{const I=new Map;n.forEach((T,h)=>{const l=[],x=(n.length-1-h)*5;for(let r=0;r<=30;r++){const S=-122-r,c=(10+x+g*3)*(1+r*.03);l.push({depth:S,value:c+Math.sin(r*.2+g)*2})}I.set(T,l)}),s.set(f.name,I)}),s}onPreview(){return G(this,null,function*(){const{data:e}=this.props.conf;e.some(s=>s.object_id&&s.fv)?(console.log("[DeepDisplacementChart] 检测到数据绑定,订阅真实数据"),yield F(A.prototype,this,"onPreview").call(this)):(console.log("[DeepDisplacementChart] 未配置数据源,使用模拟数据"),this.getMockData().forEach((y,f)=>m.value.set(f,y)),P())})}setHistoryData(e){var I,T;const{data:n,common:s}=this.props.conf;if(!n||n.length===0||!n.some(h=>h.object_id&&h.fv))return;const f=(s==null?void 0:s.source)||"mosaic";["statistics","calculate"].includes(f)&&(e=z.formatStatisticsResult(e,n));const g=z.handleNullData(e,this.props,"history");if(g){try{m.value.clear();const h=n.find(c=>c.object_id);if(!h)return;const l=n.indexOf(h),x=((I=g.history)==null?void 0:I[l])||[],r=h.points_fv||"points";x.length>0&&Array.isArray((T=x[0])==null?void 0:T[r])?n.forEach(c=>{if(!c.object_id||!c.fv)return;const k=new Map,E=new Map;x.forEach(b=>{const M=(b.time||b.datetime||"").split(" ")[0];E.has(M)||E.set(M,[]),(b[r]||[]).forEach(u=>{var C,$,j;E.get(M).push({depth:($=(C=u[c.depth_fv])!=null?C:u.depth)!=null?$:0,value:(j=u[c.fv])!=null?j:0})})}),E.forEach((b,v)=>{const M=new Map;b.forEach(u=>M.set(u.depth,u.value));const w=Array.from(M.entries()).map(([u,C])=>({depth:u,value:C})).sort((u,C)=>C.depth-u.depth);k.set(v,w)}),m.value.set(c.name,k)}):n.forEach((c,k)=>{var M;if(!c.object_id||!c.fv)return;const E=((M=g.history)==null?void 0:M[k])||[],b=new Map,v=new Map;E.forEach(w=>{var $,j;const C=(w.time||w.datetime||"").split(" ")[0];v.has(C)||v.set(C,[]),v.get(C).push({depth:($=w[c.depth_fv])!=null?$:0,value:(j=w[c.fv])!=null?j:0})}),v.forEach((w,u)=>{b.set(u,w)}),m.value.set(c.name,b)})}catch(h){console.error("[Chart] 解析历史数据失败:",h)}P()}}setSocketData(e){e&&console.log("[DeepDisplacementChart] 收到实时数据:",e)}}const L=new A(a,"deepDisplacementChart");(!a.conf.data||a.conf.data.length===0)&&(a.conf.data=L.getDefaultData()),L.setupLifecycle();const O=L.getStyle(),H=o.computed(()=>{const t=N.value.selectedTimes||[];if(t.length===0)return"";const e=[...t].sort(),n=e[0],s=e[e.length-1];return`${n} ~ ${s} [${t.length}天]`}),B=()=>{var h;const t=O.value,e=N.value,n=((h=a.conf)==null?void 0:h.data)||L.getDefaultData();let s=e.selectedTimes||[];if(m.value.size===0&&L.getMockData().forEach((x,r)=>m.value.set(r,x)),s.length===0&&m.value.size>0){const l=m.value.values().next().value;l&&(s=Array.from(l.keys()))}s=[...s].sort().reverse();const y=[];let f=[],g=0;n.forEach(l=>{const x=m.value.get(l.name);if(!x)return;const r=l.color||D[g%D.length];g++,s.forEach((S,c)=>{const k=x.get(S)||[];if(k.length===0)return;k.forEach(v=>f.push(v.depth));const E=1-c*.15,b=r;y.push({name:`${l.name} (${S})`,type:"line",data:k.map(v=>[v.value,v.depth]),smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:b,width:2,opacity:E},itemStyle:{color:b,opacity:E}})})}),f.length===0&&(f=[-122,-152]);const I=Math.min(...f),T=Math.max(...f);return{grid:{left:60,right:140,top:30,bottom:60},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:l=>{if(!l||l.length===0)return"";let r=`<div style="padding:8px;max-width:280px;">
2
- <div style="font-weight:600;margin-bottom:6px;">深度: ${l[0].data[1]}m</div>`;return l.forEach(S=>{r+=`<div style="display:flex;align-items:center;margin:2px 0;">
3
- <span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:${S.color};margin-right:6px;"></span>
4
- <span style="flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">${S.seriesName}: ${S.data[0].toFixed(3)} mm</span>
5
- </div>`}),r+="</div>",r}},legend:{type:"scroll",orient:"vertical",right:10,bottom:60,itemWidth:16,itemHeight:10,itemGap:6,textStyle:{color:t.textColor,fontSize:10},formatter:l=>l.length>15?l.slice(0,15)+"...":l},xAxis:{type:"value",name:"位移量 (mm)",nameLocation:"middle",nameGap:30,nameTextStyle:{color:t.textColor,fontSize:12},axisLine:{lineStyle:{color:"#ddd"}},axisLabel:{color:t.textColor,fontSize:10},splitLine:{lineStyle:{color:"#f0f0f0",type:"dashed"}}},yAxis:{type:"value",name:"深度 (m)",nameLocation:"middle",nameGap:40,nameTextStyle:{color:t.textColor,fontSize:12},min:I-1,max:T+1,inverse:!1,axisLine:{lineStyle:{color:"#ddd"}},axisLabel:{color:t.textColor,fontSize:10},splitLine:{lineStyle:{color:"#f0f0f0",type:"dashed"}}},series:y}},P=()=>{p&&(p.clear(),p.setOption(B(),!0))},X=o.computed(()=>{var e,n;return((n=(((e=a.conf)==null?void 0:e.data)||[])[0])==null?void 0:n.configPanelId)||""});o.watch(()=>i.channels.deepDisplacement,t=>{var n;if(!t||t.source==="deepDisplacementChart")return;const e=X.value;e&&t.objectId===e&&(t.type==="config"?(console.log("[Chart] 收到配置变化:",t.fv),N.value=t.fv,o.nextTick(P)):t.type==="export"&&(console.log("[Chart] 收到导出请求:",t.fv),((n=t.fv)==null?void 0:n.type)==="static"&&W()))},{deep:!0});const W=()=>{if(p){const t=p.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e=document.createElement("a");e.download=`${O.value.title}-深部位移曲线图.png`,e.href=t,e.click()}};return o.onMounted(()=>{o.nextTick(()=>{const t=document.getElementById(R);t&&(p=se.init(t),p.setOption(B()),_=new ResizeObserver(()=>p==null?void 0:p.resize()),_.observe(t.parentElement))})}),o.onBeforeUnmount(()=>{_==null||_.disconnect(),p==null||p.dispose()}),o.watch(()=>{var t;return(t=a.conf)==null?void 0:t.data},()=>{o.nextTick(P)},{deep:!0}),(t,e)=>(o.openBlock(),o.createElementBlock("div",le,[o.createElementVNode("div",ie,[o.createElementVNode("div",ce,o.toDisplayString(o.unref(O).title)+"(深度"+o.toDisplayString(o.unref(O).depth)+"米)",1),o.createElementVNode("div",re,o.toDisplayString(H.value),1)]),o.createElementVNode("div",{id:R,class:"chart-area"}),o.renderSlot(t.$slots,"default",{},void 0,!0)]))}})),ye=z._export_sfc(ve,[["__scopeId","data-v-d04a5a0b"]]);exports.default=ye;
@@ -1,8 +0,0 @@
1
- "use strict";var Y=Object.defineProperty,j=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var O=(c,i,s)=>i in c?Y(c,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):c[i]=s,q=(c,i)=>{for(var s in i||(i={}))X.call(i,s)&&O(c,s,i[s]);if(L)for(var s of L(i))Z.call(i,s)&&O(c,s,i[s]);return c},P=(c,i)=>j(c,F(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/button/style/css");const e=require("vue"),V=require("./index-D8dh_6Qd.cjs");require("./index-mAPVa0s4.cjs");const T=require("./ele-gridview-icon-D3GcssP6.cjs"),H=require("./echarts-BB8O2KSA.cjs"),W={class:"deep-displacement-view"},G={class:"view-toolbar"},J={class:"time-display"},K={class:"view-header"},Q={class:"view-title"},ee={class:"view-time"},te={class:"chart-container"},oe={key:0,class:"no-data"},le={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"深部位移三视图",NAME_EN:"Deep Displacement View",ORDER:12},ne={title:{value:"深部位移三视图",type:"string",label:"component.deepDisplacement.title"},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},lineColor:{value:"#4a90d9",type:"color",label:"component.deepDisplacement.lineColor"},gridColor:{value:"#e5e5e5",type:"color",label:"component.deepDisplacement.gridColor"},pointColor:{value:"#4a90d9",type:"color",label:"component.deepDisplacement.pointColor"}},ae=[{configPanelId:""}],ie=["configPanelId"],re=[],se={useAlias:!1,multiObject:!1,source:""},de={DEFAULT:le,OPTIONS:ne,DATA:ae,PARAMS:ie,SOURCE:re,COMMON:se},ce=e.defineComponent(P(q({},de),{__name:"deepDisplacementView",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){e.useCssVars(t=>({v28f3e125:u.value.bgColor,v527e537d:u.value.textColor,v25488d16:u.value.lineColor}));const i=V.useLinkStore(),s=c,z=[{label:"俯视图",value:"top"},{label:"主视图",value:"front"},{label:"侧视图",value:"side"}],N={top:"俯视图",front:"主视图",side:"侧视图"},f=e.ref("top"),b=e.ref(""),B=e.computed(()=>V.dayjs().format("YYYY-MM-DD HH:mm:ss")),M=`deepDisplacementView_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,v=e.ref([]),_=e.computed(()=>v.value&&v.value.length>0);let d=null,g=null;const u=e.computed(()=>{var l,n,m,r,p,x,y;const{options:t,data:o}=s.conf||{};return{title:((l=t==null?void 0:t.title)==null?void 0:l.value)||"深部位移三视图",configPanelId:((n=o==null?void 0:o[0])==null?void 0:n.configPanelId)||"",bgColor:((m=t==null?void 0:t.bgColor)==null?void 0:m.value)||"#ffffff",textColor:((r=t==null?void 0:t.textColor)==null?void 0:r.value)||"#333333",lineColor:((p=t==null?void 0:t.lineColor)==null?void 0:p.value)||"#4a90d9",gridColor:((x=t==null?void 0:t.gridColor)==null?void 0:x.value)||"#e5e5e5",pointColor:((y=t==null?void 0:t.pointColor)==null?void 0:y.value)||"#4a90d9"}}),R=t=>{const o=v.value;if(!o||o.length===0)return{};const l=u.value;let n=[],m=[],r="",p="";t==="front"?(n=o.map(a=>a.x),m=o.map(a=>a.depth),r="X (mm)",p="Z (mm)"):t==="side"?(n=o.map(a=>a.y),m=o.map(a=>a.depth),r="Y (mm)",p="Z (mm)"):(n=o.map(a=>a.x),m=o.map(a=>a.y),r="X (mm)",p="Y (mm)");const x=Math.min(...n),y=Math.max(...n),C=Math.min(...m),I=Math.max(...m),A=Math.max(Math.abs(x),Math.abs(y),15e3),k=t==="top"?Math.max(Math.abs(C),Math.abs(I),15e3):Math.abs(C-I)*1.1;return{grid:{left:60,right:50,top:20,bottom:60},tooltip:{trigger:"item",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:a=>{const S=a.dataIndex,h=o[S];return`<div style="padding: 8px;">
2
- <div style="font-weight: 600; margin-bottom: 6px;">深度: ${h.depth}m</div>
3
- <div style="color: #666; line-height: 1.8;">
4
- <div>高程: ${h.elevation}m</div>
5
- <div>X: ${h.x}</div>
6
- <div>Y: ${h.y}</div>
7
- </div>
8
- </div>`}},dataZoom:[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"inside",yAxisIndex:0,filterMode:"none"},{type:"slider",xAxisIndex:0,bottom:5,height:15,showDetail:!0,filterMode:"none"},{type:"slider",yAxisIndex:0,right:5,width:15,showDetail:!0,filterMode:"none"}],xAxis:{type:"value",name:r,nameLocation:"end",nameTextStyle:{color:l.textColor,fontSize:11},min:-A,max:A,axisLine:{lineStyle:{color:l.gridColor}},axisLabel:{color:l.textColor,fontSize:10,formatter:a=>a.toLocaleString()},splitLine:{lineStyle:{color:l.gridColor,type:"dashed"}}},yAxis:{type:"value",name:p,nameLocation:"end",nameTextStyle:{color:l.textColor,fontSize:11},min:t==="top"?-k:C-Math.abs(C)*.1,max:t==="top"?k:0,axisLine:{lineStyle:{color:l.gridColor}},axisLabel:{color:l.textColor,fontSize:10,formatter:a=>a.toLocaleString()},splitLine:{lineStyle:{color:l.gridColor,type:"dashed"}}},series:[{type:"line",data:n.map((a,S)=>[a,m[S]]),smooth:!1,symbol:"circle",symbolSize:6,lineStyle:{color:l.lineColor,width:2},itemStyle:{color:l.pointColor,borderColor:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,borderColor:l.lineColor}}}]}},D=()=>{d&&_.value&&(d.clear(),d.setOption(R(f.value),!0))},$=()=>{D()};e.watch(()=>i.channels.deepDisplacement3D,t=>{if(!t||t.topic.source==="deepDisplacementView")return;const o=u.value.configPanelId;if(!o||t.payload.objectId!==o)return;const l=t.payload;if(l.type==="data"){console.log("[View] 收到数据, payload:",l.fv);const n=l.fv;n!=null&&n.data&&Array.isArray(n.data)&&(v.value=[...n.data],n.time&&(b.value=n.time),e.nextTick(D))}},{deep:!0});const w=()=>{const t=u.value.configPanelId;t&&i.publish("deepDisplacement3D","deepDisplacementView",{objectId:t,type:"request",fv:{}})},U=()=>{if(d&&_.value){const t=d.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),o=document.createElement("a");o.download=`${u.value.title}-${N[f.value]}.png`,o.href=t,o.click()}};return e.onMounted(()=>{e.nextTick(()=>{const t=document.getElementById(M);t&&(d=H.init(t),g=new ResizeObserver(()=>d==null?void 0:d.resize()),g.observe(t.parentElement)),w()})}),e.onBeforeUnmount(()=>{g==null||g.disconnect(),d==null||d.dispose()}),e.watch(()=>u.value.configPanelId,w),e.watch(v,D,{deep:!0}),(t,o)=>{const l=E.ElButton,n=E.ElOption,m=E.ElSelect;return e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("div",G,[e.createElementVNode("span",J,e.toDisplayString(b.value||"等待数据..."),1),e.createVNode(l,{size:"small",onClick:U},{default:e.withCtx(()=>[...o[1]||(o[1]=[e.createTextVNode("导出",-1)])]),_:1}),e.createVNode(m,{modelValue:f.value,"onUpdate:modelValue":o[0]||(o[0]=r=>f.value=r),size:"small",class:"view-select",onChange:$},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(z,r=>e.createVNode(n,{key:r.value,label:r.label,value:r.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),e.createElementVNode("div",K,[e.createElementVNode("div",Q,e.toDisplayString(u.value.title)+"-"+e.toDisplayString(N[f.value]),1),e.createElementVNode("div",ee,e.toDisplayString(b.value||B.value),1),o[2]||(o[2]=e.createElementVNode("div",{class:"view-legend"},[e.createElementVNode("span",{class:"legend-line"}),e.createElementVNode("span",null,"姿态")],-1))]),e.createElementVNode("div",te,[_.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",oe,[...o[3]||(o[3]=[e.createElementVNode("div",{class:"no-data-icon"},"📊",-1),e.createElementVNode("div",{class:"no-data-text"},"请设置配置面板ID以获取数据",-1),e.createElementVNode("div",{class:"no-data-hint"},'在数据面板中设置"configPanelId",填入3D组件的uid',-1)])])),e.createElementVNode("div",{id:M,class:"view-chart"})]),e.renderSlot(t.$slots,"default",{},void 0,!0)])}}})),me=V._export_sfc(ce,[["__scopeId","data-v-20558d51"]]);exports.default=me;
@@ -1 +0,0 @@
1
- "use strict";var oe=Object.defineProperty,se=Object.defineProperties;var ae=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var P=(p,i,f)=>i in p?oe(p,i,{enumerable:!0,configurable:!0,writable:!0,value:f}):p[i]=f,G=(p,i)=>{for(var f in i||(i={}))ie.call(i,f)&&P(p,f,i[f]);if(U)for(var f of U(i))ce.call(i,f)&&P(p,f,i[f]);return p},K=(p,i)=>se(p,ae(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const o=require("vue"),re=require("@element-plus/icons-vue"),V=require("./index-D8dh_6Qd.cjs"),ue=require("./EChartComponentBase-D4wMej9X.cjs"),he=require("./titleStyle-NSnz6cUg.cjs"),W=require("./ele-lin-icon-Dke_1AmT.cjs"),R=require("./installCanvasRenderer-CyhM1Qpl.cjs"),de=require("./install-C8buXQPI.cjs"),pe=require("./install-CltTFs4e.cjs"),fe=require("./install-CYwVETsi.cjs"),me={class:"mix-body"},ge={class:"toolbar"},ve=["id"],Ce={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"节点温度图",NAME_EN:"DeepNodeTemperatureChart",ORDER:19},Se={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:35,left:50,right:30,xName:{value:"时间",type:"string",label:"X轴名称"},yName:{value:"温度(℃)",type:"string",label:"Y轴名称"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},X=[{name:"-130m",fv:"temp_130",depth:-130,color:"#5470c6",object_id:""},{name:"-140m",fv:"temp_140",depth:-140,color:"#91cc75",object_id:""}],be=["name","fv","depth","color","object_id"],Ne=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Oe={useAlias:!1,multiObject:!0,source:"mosaic"},ke={DEFAULT:Ce,OPTIONS:Se,DATA:X,PARAMS:be,SOURCE:Ne,COMMON:Oe},ye=o.defineComponent(K(G({},ke),{__name:"deepNodeTemperatureChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){R.use([de.install,R.install,pe.install,R.install$1,fe.install]);const i=p,f=V.useLinkStore(),d=o.ref(""),x=o.ref([]),k=o.ref(new Map);class Y extends ue.EChartComponentBase{extractStyles(){const n=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),l=n==="custom"&&t?t:n;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",35),left:this.getOptionValue("left",50),right:this.getOptionValue("right",30),xName:this.getOptionValue("xName","时间"),yName:this.getOptionValue("yName","温度(℃)"),linkChannel:l}}init(){var n;this.Style.value=this.extractStyles(),this.applyTheme(),(n=this.props.conf.data)!=null&&n.length||(this.props.conf.data=X),o.nextTick(()=>this.initChart())}setHistoryData(n){B(n)}setSocketData(n){n&&B(n)}onLinkEvent(n){F(n)}getChartOption(){var t;const n=((t=i.conf)==null?void 0:t.data)||[];return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},legend:{top:8,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"axis"},xAxis:{type:"category",name:this.Style.value.xName,data:z.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize}},yAxis:{type:"value",name:this.Style.value.yName,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:n.map((l,a)=>({name:(l==null?void 0:l.name)||`节点${a+1}`,type:"line",smooth:!0,data:Z(l==null?void 0:l.depth),lineStyle:{color:(l==null?void 0:l.color)||T[a%T.length],width:2},itemStyle:{color:(l==null?void 0:l.color)||T[a%T.length]}}))}}}const C=new Y(i,"deepNodeTemperatureChart"),J=C.getEchartId();C.setupLifecycle();const D=C.getStyle(),Q=o.computed(()=>he.generateTitleStyle(i.conf.options)),S=o.ref([]),T=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272"],z=o.computed(()=>{if(d.value&&k.value.has(d.value)){const n=k.value.get(d.value)||[],t=new Set;return n.forEach(l=>t.add(l.t)),Array.from(t)}const e=new Set;return S.value.forEach(n=>e.add(n.t)),Array.from(e)}),Z=e=>{const n=Number(e),t=new Map;return(d.value&&k.value.has(d.value)?k.value.get(d.value)||[]:S.value).forEach(a=>{Math.abs(a.depth-n)<.1&&t.set(a.t,a.temp)}),z.value.map(a=>{var s;return(s=t.get(a))!=null?s:null})},N=()=>{o.nextTick(()=>{const e=C.getChartInstance();e&&e.setOption(C.getChartOption(),!0)})},ee=()=>N(),te=()=>{const e=C.getChartInstance();if(!e)return;const n=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t=document.createElement("a");t.href=n,t.download=`node-temperature-${d.value||Date.now()}.png`,t.click()},L=()=>{var l,a,s;const e=((l=i.conf)==null?void 0:l.options)||{},n=((a=e==null?void 0:e.linkChannel)==null?void 0:a.value)||D.value.linkChannel||"deepDisplacement",t=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return n==="custom"&&t?t:n},ne=e=>{var a,s,u;const n=((a=i.conf)==null?void 0:a.data)||[],t=[];if(Array.isArray(e==null?void 0:e.data))return e.data.forEach((r,b)=>{var c,O;const v=String((O=(c=r==null?void 0:r.time)!=null?c:r==null?void 0:r.datetime)!=null?O:b);n.forEach(E=>{const A=E.fv,m=E.depth,h=Number(r==null?void 0:r[A]);Number.isFinite(m)&&Number.isFinite(h)&&t.push({t:v,depth:m,temp:h})})}),t;const l=String((u=(s=e==null?void 0:e.time)!=null?s:e==null?void 0:e.datetime)!=null?u:Date.now());return n.forEach(r=>{const b=r.fv,v=r.depth,c=Number(e==null?void 0:e[b]);Number.isFinite(v)&&Number.isFinite(c)&&t.push({t:l,depth:v,temp:c})}),t},F=e=>{var r,b,v;if(i.mode==="edit"||!e||!e.payload)return;const n=L();if((r=e.topic)!=null&&r.channel&&n&&e.topic.channel!==n||!f.shouldHandle(e,"deepNodeTemperatureChart"))return;const t=e.payload;if((t==null?void 0:t.type)==="filter"){const c=t.timeRange||t.dateRange||t.timeRangeValue;if((b=t.selectedTimes)!=null&&b.length){d.value=String(t.selectedTimes[t.selectedTimes.length-1]),N();return}if(Array.isArray(c)&&c.length){d.value=String(c[c.length-1]),N();return}if(c!=null&&c.endDate||c!=null&&c.end){d.value=String(c.endDate||c.end),N();return}return}const l=i.conf,a=(l==null?void 0:l.data)||[],s=(l==null?void 0:l.common)||{};if(a.length>0&&!(s!=null&&s.multiObject)){const c=V.getObjectId(s,s==null?void 0:s.useAlias,i.uid)||((v=a[0])==null?void 0:v.object_id),O=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(c&&O&&String(c)!==String(O))return}const u=ne(t);u.length&&(S.value=u.length<20?[...S.value.slice(-500),...u]:u,N())},B=e=>{var r,b,v,c,O,E,A;const n=i.conf,t=(n==null?void 0:n.data)||[],l=(n==null?void 0:n.common)||{},a=(l==null?void 0:l.source)||"mosaic";let s=e;["statistics","calculate"].includes(a)&&(s=V.formatStatisticsResult(s,t));const u=[];if((r=s==null?void 0:s.history)!=null&&r.length){const m=new Map;s.history.forEach((h,q)=>{var _,M;const g=(h==null?void 0:h[0])||h||{},I=String((M=(_=g==null?void 0:g.time)!=null?_:g==null?void 0:g.datetime)!=null?M:q),y=I.split(" ")[0];t.forEach($=>{const le=$.fv,j=$.depth,H=Number(g==null?void 0:g[le]);Number.isFinite(j)&&Number.isFinite(H)&&(m.has(y)||m.set(y,[]),m.get(y).push({t:I,depth:j,temp:H}))})}),x.value=Array.from(m.keys()).sort().reverse(),k.value=m,x.value.length>0&&!d.value&&(d.value=x.value[0]),S.value=m.get(d.value)||[]}else{const m=l!=null&&l.multiObject?"":V.getObjectId(l,l==null?void 0:l.useAlias,i.uid),h=m&&((v=(b=s==null?void 0:s[m])==null?void 0:b[a])==null?void 0:v.data)||((c=s==null?void 0:s[a])==null?void 0:c.data)||(s==null?void 0:s.data)||s,q=String((E=(O=h==null?void 0:h.time)!=null?O:h==null?void 0:h.datetime)!=null?E:Date.now());t.forEach(g=>{const I=g.fv,y=g.depth,_=Number(h==null?void 0:h[I]);Number.isFinite(y)&&Number.isFinite(_)&&u.push({t:q,depth:y,temp:_})}),S.value=[...S.value.slice(-500),...u]}!u.length&&!((A=s==null?void 0:s.history)!=null&&A.length)||N()};return o.watch(()=>f.channels[L()],e=>{e&&F(e)},{deep:!0}),o.watchEffect(()=>{i.conf.socketData&&C.setSocketData(i.conf.socketData)}),o.watch(()=>{var e;return(e=i.conf)==null?void 0:e.options},()=>{C.getStyle().value=C.extractStyles(),N()},{deep:!0}),o.onMounted(()=>{if(i.mode==="edit"&&!S.value.length){const e=[-1,-10,-20,-30],n=["2026-03-05","2026-03-04","2026-03-03"];n.forEach(t=>{const l=[];for(let a=0;a<24;a++){const s=`${t} ${String(a).padStart(2,"0")}:00:00`;e.forEach((u,r)=>{l.push({t:s,depth:u,temp:Number((18+r*1.5+Math.sin(a/4+r)*2).toFixed(2))})})}k.value.set(t,l)}),x.value=n,d.value=n[0],S.value=k.value.get(n[0])||[]}N()}),(e,n)=>{const t=w.ElOption,l=w.ElSelect,a=w.ElIcon,s=w.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(D).bgColor,borderRadius:`${o.unref(D).radiusSize}px`})},[o.unref(D).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(Q.value)},o.toDisplayString(p.conf.caption||p.conf.name),5)),o.createElementVNode("div",me,[o.createElementVNode("div",ge,[o.createVNode(l,{modelValue:d.value,"onUpdate:modelValue":n[0]||(n[0]=u=>d.value=u),placeholder:"选择时间",size:"small",class:"time-select",onChange:ee},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.value,u=>(o.openBlock(),o.createBlock(t,{key:u,label:u,value:u},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(s,{size:"small",class:"export-btn",onClick:te},{default:o.withCtx(()=>[o.createVNode(a,null,{default:o.withCtx(()=>[o.createVNode(o.unref(re.Download))]),_:1}),n[1]||(n[1]=o.createTextVNode(" 导出图 ",-1))]),_:1})]),o.createElementVNode("div",{class:"echart-container",id:o.unref(J)},null,8,ve)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),xe=V._export_sfc(ye,[["__scopeId","data-v-bbfa78df"]]);exports.default=xe;
@@ -1 +0,0 @@
1
- "use strict";var se=Object.defineProperty,oe=Object.defineProperties;var ae=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var G=(v,c,C)=>c in v?se(v,c,{enumerable:!0,configurable:!0,writable:!0,value:C}):v[c]=C,B=(v,c)=>{for(var C in c||(c={}))ie.call(c,C)&&G(v,C,c[C]);if(K)for(var C of K(c))ce.call(c,C)&&G(v,C,c[C]);return v},q=(v,c)=>oe(v,ae(c));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const n=require("vue"),re=require("@element-plus/icons-vue"),E=require("./index-D8dh_6Qd.cjs"),ue=require("./EChartComponentBase-D4wMej9X.cjs"),he=require("./titleStyle-NSnz6cUg.cjs"),X=require("./ele-lin-icon-Dke_1AmT.cjs"),de=require("./install-kGXY_57n.cjs"),R=require("./installCanvasRenderer-CyhM1Qpl.cjs"),ge=require("./install-C8buXQPI.cjs"),fe=require("./install-CltTFs4e.cjs"),pe=require("./install-CYwVETsi.cjs"),me={class:"mix-body"},ve={class:"toolbar"},Ce={key:0,class:"custom-legend"},Se=["onClick"],ye={class:"legend-text"},be=["id"],ke={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"深部切线角",NAME_EN:"DeepTangentAngleChart",ORDER:17},xe={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:40,left:50,right:30,xName:{value:"时间",type:"string",label:"X轴名称"},yName:{value:"切线角(°)",type:"string",label:"Y轴名称"},yMin:{value:-90,type:"number",label:"Y轴最小值"},yMax:{value:90,type:"number",label:"Y轴最大值"},showThresholdBand:{value:!0,type:"switch",label:"显示阈值带"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},J=[{name:"切线角",fv:"angle_130",depth:-130,color:"#5470c6",object_id:""},{name:"切线角",fv:"angle_140",depth:-140,color:"#5470c6",object_id:""}],Oe=["name","fv","depth","color","object_id"],Ne=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],_e={useAlias:!1,multiObject:!0,source:"mosaic"},Ee={DEFAULT:ke,OPTIONS:xe,DATA:J,PARAMS:Oe,SOURCE:Ne,COMMON:_e},Ve=n.defineComponent(q(B({},Ee),{__name:"deepTangentAngleChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){R.use([ge.install,R.install,fe.install,de.install,R.install$1,pe.install]);const c=v,C=E.useLinkStore(),V=(e,l,t)=>{const s=(e==null?void 0:e.name)||`切线角${l+1}`;if(t.filter(p=>((p==null?void 0:p.name)||"")===s).length<=1)return s;const a=(e==null?void 0:e.depth)!==void 0?`${e.depth}m`:`${l+1}`;return`${s}-${a}`},S=n.ref(""),D=n.ref([]),M=n.ref(new Map);class Q extends ue.EChartComponentBase{extractStyles(){const l=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),s=l==="custom"&&t?t:l;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",40),left:this.getOptionValue("left",50),right:this.getOptionValue("right",30),xName:this.getOptionValue("xName","时间"),yName:this.getOptionValue("yName","切线角(°)"),yMin:this.getOptionValue("yMin",-90),yMax:this.getOptionValue("yMax",90),showThresholdBand:this.getOptionValue("showThresholdBand",!0),linkChannel:s}}init(){var l;this.Style.value=this.extractStyles(),this.applyTheme(),(l=this.props.conf.data)!=null&&l.length||(this.props.conf.data=J),n.nextTick(()=>this.initChart())}setHistoryData(l){U(l)}setSocketData(l){l&&U(l)}onLinkEvent(l){H(l)}getChartOption(){var p;const l=((p=c.conf)==null?void 0:p.data)||[],t=S.value&&M.value.has(S.value)?M.value.get(S.value)||new Map:k.value,s=[];let u=[];if(l.forEach((i,g)=>{const f=V(i,g,l),d=(i==null?void 0:i.color)||"#5470c6",o=t instanceof Map?t.get(f)||[]:[];g===0&&(u=o);const r=o.map(x=>x.angle),m=o[o.length-1],h=_.value[f]!==!1;h&&s.push({name:f,type:"line",data:r,smooth:!1,symbol:"circle",symbolSize:6,lineStyle:{color:d,width:2},itemStyle:{color:d},markArea:void 0,markPoint:m&&h?{symbol:"circle",symbolSize:8,label:{show:!0,formatter:f,position:"right",color:d,fontSize:12},data:[{coord:[m.t,m.angle]}]}:void 0})}),!u.length&&t instanceof Map){const i=Array.from(t.keys())[0];u=i?t.get(i)||[]:[]}const a=this.Style.value.showThresholdBand?90:0;return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right+a,containLabel:!0},tooltip:{trigger:"axis",formatter:i=>{var d;if(!(i!=null&&i.length))return"";const g=((d=i[0])==null?void 0:d.axisValue)||"-",f=i.map(o=>{var r;return`${o.seriesName}: ${(r=o.data)!=null?r:"-"}°`});return`${g}<br/>${f.join("<br/>")}`}},xAxis:{type:"category",name:this.Style.value.xName,data:u.map(i=>i.t),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,formatter:i=>{if(!i)return i;const g=E.dayjs(i);if(g.isValid())return g.format("MM-DD HH:mm");if(i.includes(" ")){const[f,d]=i.split(" "),[,o,r]=f.split("-"),[m,h]=d.split(":");return`${o}-${r} ${m}:${h}`}return i}}},yAxis:{type:"value",name:this.Style.value.yName,min:Number(this.Style.value.yMin),max:Number(this.Style.value.yMax),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:s}}}const y=new Q(c,"deepTangentAngleChart"),Z=y.getEchartId();y.setupLifecycle();const A=y.getStyle(),ee=n.computed(()=>he.generateTitleStyle(c.conf.options)),k=n.ref(new Map),_=n.ref({}),P=n.computed(()=>{var l;const e=((l=c.conf)==null?void 0:l.data)||[];return e.map((t,s)=>({name:V(t,s,e),color:(t==null?void 0:t.color)||"#5470c6"}))}),b=()=>{n.nextTick(()=>{const e=y.getChartInstance();e&&e.setOption(y.getChartOption(),!0)})},j=e=>{_.value=(e==null?void 0:e.selected)||{},b()},te=e=>{_.value=q(B({},_.value),{[e]:_.value[e]===!1}),b()};n.watch(()=>y.getChartInstance(),e=>{e&&(e.off("legendselectchanged",j),e.on("legendselectchanged",j))});const ne=()=>{const e=y.getChartInstance();if(!e)return;const l=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t=document.createElement("a");t.href=l,t.download=`tangent-angle-${S.value||Date.now()}.png`,t.click()},F=()=>{var s,u,a;const e=((s=c.conf)==null?void 0:s.options)||{},l=((u=e==null?void 0:e.linkChannel)==null?void 0:u.value)||A.value.linkChannel||"deepDisplacement",t=((a=e==null?void 0:e.customChannel)==null?void 0:a.value)||"";return l==="custom"&&t?t:l},le=e=>{var s;const l=((s=c.conf)==null?void 0:s.data)||[],t=new Map;return l.length&&l.forEach((u,a)=>{var d,o;const p=u.fv,i=V(u,a,l),g=Number(e==null?void 0:e[p]);if(!Number.isFinite(g))return;const f=String((o=(d=e==null?void 0:e.time)!=null?d:e==null?void 0:e.datetime)!=null?o:Date.now());t.has(i)||t.set(i,[]),t.get(i).push({t:f,angle:g})}),t},H=e=>{var g,f,d;if(c.mode==="edit"||!e||!e.payload)return;const l=F();if((g=e.topic)!=null&&g.channel&&l&&e.topic.channel!==l||!C.shouldHandle(e,"deepTangentAngleChart"))return;const t=e.payload;if((t==null?void 0:t.type)==="filter"){const o=t.timeRange||t.dateRange||t.timeRangeValue;if((f=t.selectedTimes)!=null&&f.length){S.value=String(t.selectedTimes[t.selectedTimes.length-1]),b();return}if(Array.isArray(o)&&o.length){S.value=String(o[o.length-1]),b();return}if(o!=null&&o.endDate||o!=null&&o.end){S.value=String(o.endDate||o.end),b();return}return}const s=c.conf,u=(s==null?void 0:s.data)||[],a=(s==null?void 0:s.common)||{};if(u.length>0&&!(a!=null&&a.multiObject)){const o=E.getObjectId(a,a==null?void 0:a.useAlias,c.uid)||((d=u[0])==null?void 0:d.object_id),r=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(o&&r&&String(o)!==String(r))return}const p=le(t);if(!p.size)return;const i=new Map(k.value);p.forEach((o,r)=>{const m=i.get(r)||[];i.set(r,[...m.slice(-199),...o])}),k.value=i,b()},U=e=>{var i,g,f,d;const l=c.conf,t=(l==null?void 0:l.data)||[],s=(l==null?void 0:l.common)||{},u=(s==null?void 0:s.source)||"mosaic";let a=e;["statistics","calculate"].includes(u)&&(a=E.formatStatisticsResult(a,t));let p=!1;if((i=a==null?void 0:a.history)!=null&&i.length){const o=new Map;a.history.forEach((r,m)=>{var N,T;const h=(r==null?void 0:r[0])||r||{},x=String((T=(N=h==null?void 0:h.time)!=null?N:h==null?void 0:h.datetime)!=null?T:m),O=x.split(" ")[0];t.forEach((w,I)=>{const $=w.fv,z=V(w,I,t),Y=Number(h==null?void 0:h[$]);if(!Number.isFinite(Y))return;o.has(O)||o.set(O,new Map);const L=o.get(O);L.has(z)||L.set(z,[]),L.get(z).push({t:x,angle:Y})})}),D.value=Array.from(o.keys()).sort().reverse(),M.value=o,D.value.length>0&&!S.value&&(S.value=D.value[0]),k.value=o.get(S.value)||new Map,p=!0}else{const o=s!=null&&s.multiObject?"":E.getObjectId(s,s==null?void 0:s.useAlias,c.uid),r=o&&((f=(g=a==null?void 0:a[o])==null?void 0:g[u])==null?void 0:f.data)||((d=a==null?void 0:a[u])==null?void 0:d.data)||(a==null?void 0:a.data)||a,m=new Map;if(t.forEach((h,x)=>{var I,$;const O=h.fv,N=V(h,x,t),T=Number(r==null?void 0:r[O]);if(!Number.isFinite(T))return;const w=String(($=(I=r==null?void 0:r.time)!=null?I:r==null?void 0:r.datetime)!=null?$:Date.now());m.has(N)||m.set(N,[]),m.get(N).push({t:w,angle:T})}),m.size>0){const h=new Map(k.value);m.forEach((x,O)=>{const N=h.get(O)||[];h.set(O,[...N.slice(-199),...x])}),k.value=h,p=!0}}p&&b()};return n.watch(()=>C.channels[F()],e=>{e&&H(e)},{deep:!0}),n.watchEffect(()=>{c.conf.socketData&&y.setSocketData(c.conf.socketData)}),n.watch(()=>{var e;return(e=c.conf)==null?void 0:e.options},()=>{y.getStyle().value=y.extractStyles(),b()},{deep:!0}),n.onMounted(()=>{if(c.mode==="edit"&&!k.value.length){const e=["2026-03-05","2026-03-04","2026-03-03"];e.forEach(l=>{const t=[];for(let s=0;s<24;s++){const u=`${l} ${String(s).padStart(2,"0")}:00:00`,a=Number((Math.sin(s/3)*50+s%4*6).toFixed(2));t.push({t:u,angle:a})}M.value.set(l,t)}),D.value=e,S.value=e[0],k.value=M.value.get(e[0])||[]}b()}),(e,l)=>{const t=W.ElIcon,s=W.ElButton;return n.openBlock(),n.createElementBlock("div",{class:"mix-component",style:n.normalizeStyle({background:n.unref(A).bgColor,borderRadius:`${n.unref(A).radiusSize}px`})},[n.unref(A).isHideTitle?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"mix-title",style:n.normalizeStyle(ee.value)},n.toDisplayString(v.conf.caption||v.conf.name),5)),n.createElementVNode("div",me,[n.createElementVNode("div",ve,[n.createVNode(s,{size:"small",class:"export-btn",onClick:ne},{default:n.withCtx(()=>[n.createVNode(t,null,{default:n.withCtx(()=>[n.createVNode(n.unref(re.Download))]),_:1}),l[0]||(l[0]=n.createTextVNode(" 导出图 ",-1))]),_:1})]),P.value.length?(n.openBlock(),n.createElementBlock("div",Ce,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(P.value,u=>(n.openBlock(),n.createElementBlock("span",{key:u.name,class:n.normalizeClass(["legend-item",{inactive:_.value[u.name]===!1}]),onClick:a=>te(u.name)},[n.createElementVNode("span",{class:"legend-dot",style:n.normalizeStyle({backgroundColor:u.color})},null,4),n.createElementVNode("span",ye,n.toDisplayString(u.name),1)],10,Se))),128))])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"echart-container",id:n.unref(Z)},null,8,be)]),n.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),Me=E._export_sfc(Ve,[["__scopeId","data-v-3f556520"]]);exports.default=Me;
@@ -1 +0,0 @@
1
- "use strict";var ct=Object.defineProperty,ut=Object.defineProperties;var dt=Object.getOwnPropertyDescriptors;var J=Object.getOwnPropertySymbols;var mt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var K=(g,r,f)=>r in g?ct(g,r,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[r]=f,V=(g,r)=>{for(var f in r||(r={}))mt.call(r,f)&&K(g,f,r[f]);if(J)for(var f of J(r))pt.call(r,f)&&K(g,f,r[f]);return g},L=(g,r)=>ut(g,dt(r));var Q=(g,r,f)=>new Promise((F,M)=>{var k=O=>{try{w(f.next(O))}catch(R){M(R)}},j=O=>{try{w(f.throw(O))}catch(R){M(R)}},w=O=>O.done?F(O.value):Promise.resolve(O.value).then(k,j);w((f=f.apply(g,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const o=require("vue"),ft=require("@element-plus/icons-vue"),E=require("./index-D8dh_6Qd.cjs"),ht=require("./EChartComponentBase-D4wMej9X.cjs"),gt=require("./titleStyle-NSnz6cUg.cjs"),vt=require("./history-9ToM-rJ6.cjs"),Z=require("./ele-lin-icon-Dke_1AmT.cjs"),yt=require("./install-LtoYukZU.cjs"),B=require("./installCanvasRenderer-CyhM1Qpl.cjs"),St=require("./install-C8buXQPI.cjs"),bt=require("./install-CIT6k8Ga.cjs"),Ct={class:"mix-body"},Dt={class:"toolbar"},Ot=["id"],xt={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"深部温度场",NAME_EN:"DeepTemperatureField",ORDER:16},Tt={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:30,left:50,right:60,visualMin:{value:0,type:"number",label:"温度最小值"},visualMax:{value:40,type:"number",label:"温度最大值"},points:{value:200,type:"number",label:"历史数据条数"},showDebugClear:{value:!1,type:"switch",label:"显示清空过滤按钮"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},tt=[{name:"温度场",fv:"temp_130",depth:-130,color:"#5470c6",object_id:""},{name:"温度场",fv:"temp_140",depth:-140,color:"#5470c6",object_id:""}],Nt=["name","fv","depth","color","object_id"],kt=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],wt={useAlias:!1,multiObject:!0,source:"mosaic"},At={DEFAULT:xt,OPTIONS:Tt,DATA:tt,PARAMS:Nt,SOURCE:kt,COMMON:wt},_t=o.defineComponent(L(V({},At),{__name:"deepTemperatureField",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(g){B.use([St.install,B.install,bt.install,B.install$1,yt.install]);const r=g,f=E.useLinkStore(),F=new vt.default,M=o.ref(!1),k=o.ref("");o.ref([]);const j=e=>{if(e==null)return"";const t=typeof e=="string"?e:String(e),i=typeof e=="number"||/^\d+$/.test(t)?new Date(Number(e)):new Date(t);if(Number.isNaN(i.getTime()))return t;const a=i.getFullYear(),s=String(i.getMonth()+1).padStart(2,"0"),c=String(i.getDate()).padStart(2,"0"),d=String(i.getHours()).padStart(2,"0"),h=String(i.getMinutes()).padStart(2,"0"),u=String(i.getSeconds()).padStart(2,"0");return`${a}-${s}-${c} ${d}:${h}:${u}`},w=e=>{if(e==null)return null;const t=String(e);return/^\d+$/.test(t)?E.dayjs(Number(t)):E.dayjs(e)},O=(e,t)=>{const n=e?w(e):null,i=t?w(t):null,a=!!(e&&String(e).includes(" ")),s=!!(t&&String(t).includes(" "));return{start:n?a?n:n.startOf("day"):null,end:i?s?i:i.endOf("day"):null}};class R extends ht.EChartComponentBase{extractStyles(){const t=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),i=t==="custom"&&n?n:t;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",30),left:this.getOptionValue("left",50),right:this.getOptionValue("right",60),visualMin:this.getOptionValue("visualMin",0),visualMax:this.getOptionValue("visualMax",40),showDebugClear:this.getOptionValue("showDebugClear",!1),linkChannel:i}}init(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=tt),o.nextTick(()=>this.initChart())}setHistoryData(t){W(t)}setSocketData(t){t&&W(t)}onLinkEvent(t){P(t)}getChartOption(){var i,a,s,c,d,h,u,S;const t=Number((c=(s=(a=(i=r.conf)==null?void 0:i.options)==null?void 0:a.visualMin)==null?void 0:s.value)!=null?c:this.Style.value.visualMin),n=Number((S=(u=(h=(d=r.conf)==null?void 0:d.options)==null?void 0:h.visualMax)==null?void 0:u.value)!=null?S:this.Style.value.visualMax);return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},tooltip:{position:"top",formatter:m=>{var y,T,b;const l=z.value[(y=m.value)==null?void 0:y[0]]||"-",p=q.value[(T=m.value)==null?void 0:T[1]]||"-",v=(b=m.value)==null?void 0:b[2];return`时间: ${l}<br/>深度: ${p}m<br/>温度: ${v}℃`}},xAxis:{type:"category",data:z.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,rotate:45,formatter:m=>{if(/^\d+$/.test(m)){const l=new Date(Number(m)),p=String(l.getMonth()+1).padStart(2,"0"),v=String(l.getDate()).padStart(2,"0"),y=String(l.getHours()).padStart(2,"0"),T=String(l.getMinutes()).padStart(2,"0");return`${p}-${v} ${y}:${T}`}if(m&&m.includes(" ")){const[l,p]=m.split(" "),v=l.split("-");if(v.length===3){const[y,T,b]=v,[H,D]=p.split(":");return`${T}-${b} ${H}:${D}`}}return m}}},yAxis:{type:"category",data:q.value.map(m=>String(m)),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize}},visualMap:{min:Number.isFinite(t)?t:0,max:Number.isFinite(n)?n:40,calculable:!0,orient:"vertical",right:8,top:"middle"},series:[{name:"温度场",type:"heatmap",data:it.value,label:{show:!1},emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.4)"}}}]}}}const x=new R(r,"deepTemperatureField"),et=x.getEchartId();x.setupLifecycle();const $=x.getStyle(),nt=o.computed(()=>gt.generateTitleStyle(r.conf.options)),C=o.ref([]),A=o.ref([]),z=o.computed(()=>{const e=new Set;return C.value.forEach(t=>e.add(String(t.t))),Array.from(e).sort()}),q=o.computed(()=>{const e=new Set;return C.value.forEach(t=>e.add(Number(t.depth))),Array.from(e).sort((t,n)=>t-n)}),it=o.computed(()=>{const e=new Map,t=new Map;return z.value.forEach((n,i)=>e.set(n,i)),q.value.forEach((n,i)=>t.set(n,i)),C.value.map(n=>{const i=e.get(String(n.t)),a=t.get(Number(n.depth)),s=Number(n.temp);return i===void 0||a===void 0||!Number.isFinite(s)?null:[i,a,s]}).filter(Boolean)}),N=()=>{o.nextTick(()=>{const e=x.getChartInstance();e&&e.setOption(x.getChartOption(),!0)})},st=()=>{const e=x.getChartInstance();if(!e)return;const t=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=t,n.download=`temperature-field-${Date.now()}.png`,n.click()},ot=()=>{I.value=null,_(),N()},U=()=>{var i,a,s;const e=((i=r.conf)==null?void 0:i.options)||{},t=((a=e==null?void 0:e.linkChannel)==null?void 0:a.value)||$.value.linkChannel||"deepDisplacement",n=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return t==="custom"&&n?n:t},P=e=>{var h,u,S,m;if(r.mode==="edit"||!e||!e.payload)return;const t=U();if((h=e.topic)!=null&&h.channel&&t&&e.topic.channel!==t||!f.shouldHandle(e,"deepTemperatureField"))return;const n=e.payload,i=r.conf,a=(i==null?void 0:i.data)||[],s=(i==null?void 0:i.common)||{};if(n.type==="filter"){const l=(u=n.filter)!=null?u:n;console.log("[deepTemperatureField] 收到筛选配置:",l);const p=String((l==null?void 0:l.objectId)||(l==null?void 0:l.object_id)||"").trim();p&&p!==k.value&&(k.value=p,A.value=[],C.value=[],Y()),rt(l);return}if(a.length>0&&!(s!=null&&s.multiObject)){const l=E.getObjectId(s,s==null?void 0:s.useAlias,r.uid)||((S=a[0])==null?void 0:S.object_id),p=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(l&&p&&String(l)!==String(p))return}const c=j((n==null?void 0:n.time)||(n==null?void 0:n.datetime)||((m=e.topic)==null?void 0:m.time)||Date.now()),d=[];a.forEach(l=>{const p=l.fv,v=Number(l.depth),y=Number(n==null?void 0:n[p]);Number.isFinite(v)&&Number.isFinite(y)&&d.push({t:c,depth:v,temp:y})}),d.length&&(A.value=[...A.value,...d],_(),N())},I=o.ref(null),at=o.computed(()=>{var i,a;const e=(a=(i=r.conf)==null?void 0:i.common)==null?void 0:a.historyTimeRange;if(!e)return null;const t=e.startDate||e.start_time||"",n=e.endDate||e.end_time||"";return!t&&!n?null:{startDate:t,endDate:n}}),rt=e=>{var c;if(!e){I.value=null,_(),N();return}console.log("[deepTemperatureField] 收到配置数据类型:",typeof e,e);const t=Array.isArray(e)?null:e||null;if(t){const d=t.timeRange||t.dateRange,h=t.timeList||t.selectedTimes,u={};d&&(u.startDate=d.startDate||d.start||d[0],u.endDate=d.endDate||d.end||d[1]),Array.isArray(h)&&h.length>0&&(u.timeList=h),I.value=u,_(),N();return}const n=Array.isArray(e)?e:[];if(n.length===0){console.warn("[deepTemperatureField] 配置为空或格式错误");return}const i=n.find(d=>d.type==="timeRange"),a=n.find(d=>d.type==="timeList"),s={};i&&(s.startDate=i.startDate,s.endDate=i.endDate),a&&((c=a.selectedTimes)==null?void 0:c.length)>0&&(s.timeList=a.selectedTimes),I.value=s,_(),N()},_=()=>{const e=A.value,t=I.value,n=at.value;if(t!=null&&t.timeList&&t.timeList.length>0){const i=new Set(t.timeList);C.value=e.filter(a=>{const s=String(a.t).split(" ")[0];return i.has(s)||i.has(String(a.t))});return}if(t!=null&&t.startDate||t!=null&&t.endDate){const{start:i,end:a}=O(t.startDate,t.endDate);C.value=e.filter(s=>{const c=w(s.t);return!(!c||!c.isValid()||i&&c.isBefore(i)||a&&c.isAfter(a))});return}if(n!=null&&n.startDate||n!=null&&n.endDate){const{start:i,end:a}=O(n.startDate,n.endDate);C.value=e.filter(s=>{const c=w(s.t);return!(!c||!c.isValid()||i&&c.isBefore(i)||a&&c.isAfter(a))});return}C.value=e},W=e=>{var d,h,u,S;const t=r.conf,n=(t==null?void 0:t.data)||[],i=(t==null?void 0:t.common)||{},a=(i==null?void 0:i.source)||"mosaic";let s=e;["statistics","calculate"].includes(a)&&(s=E.formatStatisticsResult(s,n));const c=[];if((d=s==null?void 0:s.history)!=null&&d.length)s.history.forEach((m,l)=>{const p=n==null?void 0:n[l];if(!p)return;const v=p.fv,y=Number(p.depth);if(!Number.isFinite(y)||!v)return;(Array.isArray(m)?m:[m]).forEach((b,H)=>{const D=(b==null?void 0:b[0])||b||{},lt=(D==null?void 0:D.time)||(D==null?void 0:D.datetime)||H,G=Number(D==null?void 0:D[v]);Number.isFinite(G)&&c.push({t:String(lt),depth:y,temp:G})})}),A.value=c;else{const m=i!=null&&i.multiObject?"":E.getObjectId(i,i==null?void 0:i.useAlias,r.uid),l=m&&((u=(h=s==null?void 0:s[m])==null?void 0:h[a])==null?void 0:u.data)||((S=s==null?void 0:s[a])==null?void 0:S.data)||(s==null?void 0:s.data)||s,p=(l==null?void 0:l.time)||(l==null?void 0:l.datetime)||Date.now();n.forEach(v=>{const y=v.fv,T=Number(v.depth),b=Number(l==null?void 0:l[y]);Number.isFinite(T)&&Number.isFinite(b)&&c.push({t:String(p),depth:T,temp:b})}),c.length&&(A.value=[...A.value,...c])}c.length&&(_(),N())};o.watch(()=>f.channels[U()],e=>{e&&P(e)},{deep:!0}),o.watchEffect(()=>{r.conf.socketData&&x.setSocketData(r.conf.socketData)}),o.watch(()=>{var e;return(e=r.conf)==null?void 0:e.options},()=>{x.getStyle().value=x.extractStyles(),N()},{deep:!0}),o.watch(()=>{var e,t;return(t=(e=r.conf)==null?void 0:e.common)==null?void 0:t.historyTimeRange},()=>{_(),N()},{deep:!0});const Y=()=>Q(null,null,function*(){var e,t,n,i,a;try{const s=r.conf||{},c=V({},s.common||{}),d=Array.isArray(s.data)?s.data.map(S=>V({},S)):[];k.value&&(c.multiObject=!1,c.useAlias=!1,c.object_id=k.value,d.forEach(S=>{S.object_id=k.value}));const h=L(V({},r),{conf:L(V({},s),{common:c,data:d})});console.info("[deepTemperatureField] 开始拉取历史数据",{uid:r.uid,source:(t=(e=r.conf)==null?void 0:e.common)==null?void 0:t.source,historyTimeRange:(i=(n=r.conf)==null?void 0:n.common)==null?void 0:i.historyTimeRange,linkedObjectId:k.value||""});const u=yield F.getHistoryData(h,"deepTemperatureField");M.value=!0,console.info("[deepTemperatureField] 历史数据返回",{hasResult:!!u,historyLen:Array.isArray(u==null?void 0:u.history)?u.history.length:0,firstHistoryRows:Array.isArray((a=u==null?void 0:u.history)==null?void 0:a[0])?u.history[0].length:0}),u&&x.setHistoryData(u)}catch(s){M.value=!0,console.warn("[deepTemperatureField] 拉取历史数据失败:",s)}});return o.onMounted(()=>{if(r.mode==="edit"&&!C.value.length){const e=["2026-03-10 00:44:43","2026-03-10 02:44:40","2026-03-10 04:44:40","2026-03-10 06:44:40","2026-03-10 08:44:40","2026-03-10 09:44:44"],t=[-122,-124,-126,-128,-130,-132,-134,-136,-138,-140,-142,-144,-146,-148,-150,-152];e.forEach(n=>{t.forEach(i=>{const a=Number((5+Math.abs(i)*.05+Math.random()*2).toFixed(2));C.value.push({t:n,depth:i,temp:a})})}),A.value=[...C.value]}Y(),N()}),(e,t)=>{const n=X.ElIcon,i=X.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref($).bgColor,borderRadius:`${o.unref($).radiusSize}px`})},[o.unref($).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(nt.value)},o.toDisplayString(g.conf.caption||g.conf.name),5)),o.createElementVNode("div",Ct,[o.createElementVNode("div",Dt,[o.createVNode(i,{size:"small",class:"export-btn",onClick:st},{default:o.withCtx(()=>[o.createVNode(n,null,{default:o.withCtx(()=>[o.createVNode(o.unref(ft.Download))]),_:1}),t[0]||(t[0]=o.createTextVNode(" 导出图 ",-1))]),_:1}),o.unref($).showDebugClear?(o.openBlock(),o.createBlock(i,{key:0,size:"small",class:"clear-btn",onClick:ot},{default:o.withCtx(()=>[...t[1]||(t[1]=[o.createTextVNode(" 清空过滤 ",-1)])]),_:1})):o.createCommentVNode("",!0)]),o.createElementVNode("div",{class:"echart-container",id:o.unref(et)},null,8,Ot)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),Et=E._export_sfc(_t,[["__scopeId","data-v-eae2696a"]]);exports.default=Et;
@@ -1 +0,0 @@
1
- "use strict";var Fe=Object.defineProperty,Me=Object.defineProperties;var $e=Object.getOwnPropertyDescriptors;var Le=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable;var Ce=(b,r,S)=>r in b?Fe(b,r,{enumerable:!0,configurable:!0,writable:!0,value:S}):b[r]=S,ie=(b,r)=>{for(var S in r||(r={}))ze.call(r,S)&&Ce(b,S,r[S]);if(Le)for(var S of Le(r))Be.call(r,S)&&Ce(b,S,r[S]);return b},le=(b,r)=>Me(b,$e(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const o=require("vue"),qe=require("@element-plus/icons-vue"),P=require("./index-D8dh_6Qd.cjs"),Pe=require("./EChartComponentBase-D4wMej9X.cjs"),Ze=require("./titleStyle-NSnz6cUg.cjs"),se=require("./installCanvasRenderer-CyhM1Qpl.cjs"),He=require("./install-C8buXQPI.cjs"),Ue=require("./install-CltTFs4e.cjs"),Ye=require("./install-CYwVETsi.cjs"),je="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e趋势%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-299.000000,%20-723.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M313.60741,723.132248%20C314.376525,723.132248%20315,723.755729%20315,724.524838%20L315,724.524838%20L315,737.73953%20C315,738.508647%20314.376527,739.13212%20313.60741,739.13212%20L313.60741,739.13212%20L300.392953,739.13212%20C299.623869,739.13212%20299.000384,738.508663%20299.000363,737.739585%20L299.000363,737.739585%20L299,724.524856%20C299,723.755744%20299.623475,723.132248%20300.39259,723.132248%20L300.39259,723.132248%20Z%20M302.67,728.130248%20L300.316,728.132248%20L300.317244,737.739549%20C300.317245,737.770894%20300.336313,737.797797%20300.363485,737.80929%20L300.392953,737.815239%20L302.67,737.814248%20L302.67,728.130248%20Z%20M313.682,728.120248%20L303.987,728.129248%20L303.987,737.814248%20L313.60741,737.815239%20C313.638778,737.815239%20313.665681,737.796179%20313.677171,737.769004%20L313.683119,737.73953%20L313.683,728.944248%20L313.682972,728.929735%20L313.682,728.120248%20Z%20M310.871101,729.12887%20L310.952715,729.198297%20L312.604552,730.850134%20C312.861689,731.107271%20312.861689,731.524172%20312.604552,731.781309%20C312.373129,732.012732%20312.012296,732.035875%20311.754991,731.850736%20L311.673377,731.781309%20L311.145,731.253248%20L311.145752,734.805978%20C311.145752,735.139321%20310.898043,735.414808%20310.576658,735.458408%20L310.487311,735.464419%20L307.124,735.464248%20L307.649042,735.98918%20C307.906179,736.246317%20307.906179,736.663219%20307.649042,736.920356%20C307.417619,737.151779%20307.056787,737.174921%20306.799482,736.989783%20L306.717867,736.920356%20L305.066031,735.268519%20L305.054021,735.255814%20C305.041374,735.242301%20305.029291,735.228255%20305.017807,735.213713%20L305.066031,735.268519%20C305.034539,735.237027%20305.006903,735.203139%20304.983125,735.167441%20C304.9807,735.16179%20304.977592,735.156913%20304.974547,735.151993%20C304.832434,734.927859%20304.840126,734.636431%20304.996604,734.418958%20L305.066031,734.337344%20L306.717867,732.685507%20C306.975004,732.428371%20307.391905,732.428371%20307.649042,732.685507%20C307.880466,732.916931%20307.903608,733.277763%20307.718469,733.535068%20L307.649042,733.616683%20L307.117,734.147248%20L309.828389,734.1469%20L309.828,731.252248%20L309.300879,731.781309%20C309.043742,732.038446%20308.626841,732.038446%20308.369704,731.781309%20C308.13828,731.549886%20308.115138,731.189053%20308.300277,730.931748%20L308.369704,730.850134%20L310.02154,729.198297%20C310.252963,728.966874%20310.613796,728.943732%20310.871101,729.12887%20Z%20M313.60741,724.449129%20L300.39259,724.449129%20C300.350778,724.449129%20300.316881,724.483027%20300.316881,724.524838%20L300.316881,724.524838%20L300.316,726.815248%20L313.682,726.803248%20L313.682972,725.258988%20L313.683,725.246248%20L313.683119,724.524838%20C313.683119,724.493474%20313.664056,724.46657%20313.636882,724.455078%20L313.60741,724.449129%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Re="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e趋势%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-299.000000,%20-723.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M313.60741,723.132248%20C314.376525,723.132248%20315,723.755729%20315,724.524838%20L315,724.524838%20L315,737.73953%20C315,738.508647%20314.376527,739.13212%20313.60741,739.13212%20L313.60741,739.13212%20L300.392953,739.13212%20C299.623869,739.13212%20299.000384,738.508663%20299.000363,737.739585%20L299.000363,737.739585%20L299,724.524856%20C299,723.755744%20299.623475,723.132248%20300.39259,723.132248%20L300.39259,723.132248%20Z%20M302.67,728.130248%20L300.316,728.132248%20L300.317244,737.739549%20C300.317245,737.770894%20300.336313,737.797797%20300.363485,737.80929%20L300.392953,737.815239%20L302.67,737.814248%20L302.67,728.130248%20Z%20M313.682,728.120248%20L303.987,728.129248%20L303.987,737.814248%20L313.60741,737.815239%20C313.638778,737.815239%20313.665681,737.796179%20313.677171,737.769004%20L313.683119,737.73953%20L313.683,728.944248%20L313.682972,728.929735%20L313.682,728.120248%20Z%20M310.871101,729.12887%20L310.952715,729.198297%20L312.604552,730.850134%20C312.861689,731.107271%20312.861689,731.524172%20312.604552,731.781309%20C312.373129,732.012732%20312.012296,732.035875%20311.754991,731.850736%20L311.673377,731.781309%20L311.145,731.253248%20L311.145752,734.805978%20C311.145752,735.139321%20310.898043,735.414808%20310.576658,735.458408%20L310.487311,735.464419%20L307.124,735.464248%20L307.649042,735.98918%20C307.906179,736.246317%20307.906179,736.663219%20307.649042,736.920356%20C307.417619,737.151779%20307.056787,737.174921%20306.799482,736.989783%20L306.717867,736.920356%20L305.066031,735.268519%20L305.054021,735.255814%20C305.041374,735.242301%20305.029291,735.228255%20305.017807,735.213713%20L305.066031,735.268519%20C305.034539,735.237027%20305.006903,735.203139%20304.983125,735.167441%20C304.9807,735.16179%20304.977592,735.156913%20304.974547,735.151993%20C304.832434,734.927859%20304.840126,734.636431%20304.996604,734.418958%20L305.066031,734.337344%20L306.717867,732.685507%20C306.975004,732.428371%20307.391905,732.428371%20307.649042,732.685507%20C307.880466,732.916931%20307.903608,733.277763%20307.718469,733.535068%20L307.649042,733.616683%20L307.117,734.147248%20L309.828389,734.1469%20L309.828,731.252248%20L309.300879,731.781309%20C309.043742,732.038446%20308.626841,732.038446%20308.369704,731.781309%20C308.13828,731.549886%20308.115138,731.189053%20308.300277,730.931748%20L308.369704,730.850134%20L310.02154,729.198297%20C310.252963,728.966874%20310.613796,728.943732%20310.871101,729.12887%20Z%20M313.60741,724.449129%20L300.39259,724.449129%20C300.350778,724.449129%20300.316881,724.483027%20300.316881,724.524838%20L300.316881,724.524838%20L300.316,726.815248%20L313.682,726.803248%20L313.682972,725.258988%20L313.683,725.246248%20L313.683119,724.524838%20C313.683119,724.493474%20313.664056,724.46657%20313.636882,724.455078%20L313.60741,724.449129%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ge={class:"mix-body"},Ke={class:"toolbar"},We=["id"],Xe={DEFAULT_ICON:je,ACTIVE_ICON:Re,NAME_CN:"深部趋势图",NAME_EN:"DeepTrendChart",ORDER:21},Je={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:56,bottom:52,left:64,right:36,xName:{value:"位移量",type:"string",label:"X轴名称"},yName:{value:"高程(m)",type:"string",label:"Y轴名称"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Se=[{name:"累计位移",fv:"disp_130",depth:-130,color:"#5470c6",object_id:""},{name:"累计位移",fv:"disp_140",depth:-140,color:"#5470c6",object_id:""}],Qe=["name","fv","depth","color","object_id"],et=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],tt={useAlias:!1,multiObject:!0,source:"mosaic"},nt={DEFAULT:Xe,OPTIONS:Je,DATA:Se,PARAMS:Qe,SOURCE:et,COMMON:tt},it=o.defineComponent(le(ie({},nt),{__name:"deepTrendChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(b){se.use([He.install,se.install,Ue.install,se.install$1,Ye.install]);const r=b,S=P.useLinkStore(),O=o.ref([]),m=o.ref([]),y=o.ref(""),V=o.ref([]),Z=o.ref("s"),oe=o.ref(null),H=o.ref("hour");class ye extends Pe.EChartComponentBase{constructor(){super(...arguments),this.panelConfig={}}extractStyles(){const t=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),i=t==="custom"&&n?n:t;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",56),bottom:this.getOptionValue("bottom",52),left:this.getOptionValue("left",64),right:this.getOptionValue("right",36),xName:this.getOptionValue("xName","位移量"),yName:this.getOptionValue("yName","高程(m)"),linkChannel:i}}init(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=Se),o.nextTick(()=>this.initChart())}setHistoryData(t){pe(t)}setSocketData(t){t&&pe(t)}onLinkEvent(t){he(t)}setPanelConfig(t){this.panelConfig=t||{}}getChartOption(){var g;M.value;const t=((g=r.conf)==null?void 0:g.data)||[],n=this.panelConfig||{},i=n.range__xAxis||n.range__x||n.range||null,s=n.range__yAxis||null,l=Number.isFinite(i==null?void 0:i.min)?Number(i==null?void 0:i.min):null,a=Number.isFinite(i==null?void 0:i.max)?Number(i==null?void 0:i.max):null,c=Number.isFinite(s==null?void 0:s.min)?Number(s==null?void 0:s.min):null,u=Number.isFinite(s==null?void 0:s.max)?Number(s==null?void 0:s.max):null;return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},legend:{top:4,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"item",formatter:f=>{var v,h,d,p;return`位移量: ${(h=(v=f==null?void 0:f.value)==null?void 0:v[0])!=null?h:"-"}<br/>高程: ${(p=(d=f==null?void 0:f.value)==null?void 0:d[1])!=null?p:"-"}m`}},xAxis:{type:"value",name:this.Style.value.xName,nameLocation:"middle",nameGap:28,position:"bottom",min:l!==null?l:null,max:a!==null?a:null,axisLine:{onZero:!1},axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},yAxis:{type:"value",name:this.Style.value.yName,min:c!==null?c:null,max:u!==null?u:null,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:(()=>{const f=ue.value.length?ue.value:M.value?[M.value]:[];if(!f.length)return[];const v=new Map;t.forEach((d,p)=>{const C=(d==null?void 0:d.name)||`序列${p+1}`;v.has(C)||v.set(C,{name:C,color:d==null?void 0:d.color,items:[]}),v.get(C).items.push(d)});const h=[];return f.forEach(d=>{const p=((d==null?void 0:d.points)||[])[0]||{};Array.from(v.values()).forEach(C=>{const E=C.items.map(N=>{var q,L;const w=N==null?void 0:N.fv,R=me(p,w,Z.value),z=Number(R),B=Number((L=(q=N==null?void 0:N.depth)!=null?q:p==null?void 0:p.depth)!=null?L:p==null?void 0:p.elevation);return!Number.isFinite(z)||!Number.isFinite(B)?null:[z,B]}).filter(Boolean).sort((N,w)=>N[1]-w[1]);h.push({name:C.name,type:"line",data:E,showSymbol:!0,symbolSize:6,lineStyle:{color:C.color||"#5470c6",width:2},itemStyle:{color:C.color||"#5470c6"}})})}),h})()}}}const k=new ye(r,"deepTrendChart"),ae=k.getEchartId();k.setupLifecycle();const U=k.getStyle(),Ne=o.computed(()=>Ze.generateTitleStyle(r.conf.options)),Y=e=>{const t=String(e||"");if(!t)return"";const n=de(t);if(Number.isNaN(n))return t.slice(0,10);const i=new Date(n),s=i.getFullYear(),l=String(i.getMonth()+1).padStart(2,"0"),a=String(i.getDate()).padStart(2,"0");return`${s}-${l}-${a}`},be=e=>{var s;const t=((s=r.conf)==null?void 0:s.data)||[];if(!e.length||!t.length)return e;const n=new Map;e.forEach(l=>{const a=Y(l.time);n.has(a)||n.set(a,[]),n.get(a).push(l)});const i=[];return Array.from(n.entries()).forEach(([l,a])=>{const c={};t.forEach(u=>{const g=u==null?void 0:u.fv;if(!g)return;let f=0,v=0;if(a.forEach(h=>{const d=((h==null?void 0:h.points)||[])[0]||{},p=Number(me(d,g,Z.value));Number.isFinite(p)&&(f+=p,v+=1)}),v>0){const h=Number((f/v).toFixed(6)),d=$(g,Z.value);c[g]=h,c[d]=h}}),Object.keys(c).length>0&&i.push({time:l,points:[c]})}),i.sort((l,a)=>String(l.time).localeCompare(String(a.time)))},F=o.computed(()=>H.value==="day"?be(m.value):m.value),xe=o.computed(()=>ce.value.map(e=>({value:e.time,label:H.value==="day"?Y(e.time):W(e.time)}))),M=o.computed(()=>{const e=y.value,t=F.value;return t.find(n=>n.time===e)||t[t.length-1]||null}),re=(e,t)=>{const n=String(e||"").trim(),i=String(t||"").trim();if(!n||!i)return!1;if(n===i)return!0;const s=W(n),l=W(i);return s&&l&&s===l?!0:H.value!=="day"?!1:Y(n)===Y(i)},_e=(e,t)=>{if(!(t!=null&&t.startDate)&&!(t!=null&&t.endDate))return!0;const n=new Date(e).getTime();if(Number.isNaN(n))return!0;const i=t.startDate?new Date(t.startDate).getTime():Number.NEGATIVE_INFINITY,s=t.endDate?new Date(t.endDate).getTime():Number.POSITIVE_INFINITY;if(Number.isNaN(i)&&Number.isNaN(s))return!0;const l=Number.isNaN(i)?Number.NEGATIVE_INFINITY:i,a=Number.isNaN(s)?Number.POSITIVE_INFINITY:s;return n>=l&&n<=a},ce=o.computed(()=>{if(!F.value.length)return[];const e=oe.value;return!(e!=null&&e.startDate)&&!(e!=null&&e.endDate)?F.value:F.value.filter(t=>_e(t.time,e))}),ue=o.computed(()=>{const e=ce.value;if(V.value.length>0)return e.filter(t=>V.value.some(n=>re(t.time,n)));if(e.length>0){const t=e.find(n=>n.time===y.value);return t?[t]:[e[e.length-1]]}return M.value?[M.value]:[]});o.watch(()=>m.value.length,()=>{!V.value.length&&m.value.length&&(y.value=m.value[m.value.length-1].time)});const de=e=>{if(e==null)return Number.NaN;const t=typeof e=="string"?e.trim():String(e);if(!t)return Number.NaN;if(/^\d+$/.test(t)){const n=Number(t);return t.length<=10?n*1e3:n}return new Date(t).getTime()},W=e=>{if(e==null)return"";const t=typeof e=="string"?e:String(e),n=de(e),i=Number.isNaN(n)?null:new Date(n);if(!i||Number.isNaN(i.getTime()))return t;const s=i.getFullYear(),l=String(i.getMonth()+1).padStart(2,"0"),a=String(i.getDate()).padStart(2,"0"),c=String(i.getHours()).padStart(2,"0"),u=String(i.getMinutes()).padStart(2,"0"),g=String(i.getSeconds()).padStart(2,"0");return`${s}-${l}-${a} ${c}:${u}:${g}`},D=()=>{o.nextTick(()=>{const e=k.getChartInstance();e&&e.setOption(k.getChartOption(),!0)})},ke=()=>D(),De=()=>{const e=k.getChartInstance();if(!e)return;const t=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=t,n.download=`deep-trend-${y.value||Date.now()}.png`,n.click()},X=()=>{var i,s,l;const e=((i=r.conf)==null?void 0:i.options)||{},t=((s=e==null?void 0:e.linkChannel)==null?void 0:s.value)||U.value.linkChannel||"deepDisplacement",n=((l=e==null?void 0:e.customChannel)==null?void 0:l.value)||"";return t==="custom"&&n?n:t},j=()=>{const e=X();if(!e)return;const t=F.value.map(n=>n.time);S.publish(e,"deepTrendChart",{objectId:r.uid||"",type:"timeList",timeList:t})},J=(e,t,n="points")=>{const i=e==null?void 0:e[n];if(Array.isArray(i)&&i.length)return i;const s={};let l=!1;return t.forEach(a=>{var g;const c=a==null?void 0:a.fv;if(!c)return;Oe(s,e,c),(s[c]!==void 0||s[$(c,"s")]!==void 0||s[$(c,"x")]!==void 0||s[$(c,"y")]!==void 0)&&(l=!0);const u=(g=e==null?void 0:e.elevation)!=null?g:e==null?void 0:e.depth;u!=null&&(s.elevation=u,s.depth=u)}),l?[s]:[]},$=(e,t)=>{if(!e)return e;const n=e.match(/_(\d+)$/);return n?`${t}_${n[1]}`:e},me=(e,t,n)=>{if(!e||!t)return;const s=[$(t,n),`${t}_${n}`,`${n}_${t}`].filter(Boolean);for(const l of s){const a=e==null?void 0:e[l];if(a!=null)return a}if(n==="s"){const l=e==null?void 0:e[t];if(l!=null)return l}},Oe=(e,t,n)=>{var l;if(!e||!t||!n)return;const i=(l=n.match(/_(\d+)$/))==null?void 0:l[1],s=t==null?void 0:t[n];s!=null&&(e[n]=s),i&&["s","x","y"].forEach(a=>{const c=`${a}_${i}`,u=t==null?void 0:t[c];u!=null&&(e[c]=u)})},fe=e=>{var l;const t=((l=r.conf)==null?void 0:l.data)||[],i=(t[0]||{}).points_fv||"points",s=[];return e.forEach((a,c)=>{var v,h;const u=(a==null?void 0:a[0])||a||{},g=String((h=(v=u==null?void 0:u.time)!=null?v:u==null?void 0:u.datetime)!=null?h:c),f=J(u,t,i);f.length&&s.push({time:g,points:f})}),s},he=e=>{var f,v,h,d,p,C,E,N,w,R,z,B,q;if(!e||!e.payload)return;const t=X();if((f=e.topic)!=null&&f.channel&&t&&e.topic.channel!==t||!S.shouldHandle(e,"deepTrendChart"))return;const n=e.payload;if((n==null?void 0:n.type)==="filter"){const L=n.filter||n,A=Object.entries(L||{}).find(([x,_])=>{if(typeof _!="string")return!1;if(String(x||"").toLowerCase().includes("direction"))return!0;const Ae=String(_).toLowerCase();return["s","x","y"].includes(Ae)}),Te=L.direction||L.displacementDirection||(A==null?void 0:A[1])||"",Q={s:"s",x:"x",y:"y"}[String(Te).toLowerCase()],G=String((n==null?void 0:n.objectId)||(n==null?void 0:n.object_id)||"").trim(),Ie=((v=r.conf)==null?void 0:v.data)||[],Ee=String(((h=Ie[0])==null?void 0:h.configPanelId)||"").trim(),ve=[r.uid,ae,(d=r.conf)==null?void 0:d.id,(p=r.conf)==null?void 0:p.uid,(C=r.conf)==null?void 0:C.name,(E=r.conf)==null?void 0:E.caption,(N=r.conf)==null?void 0:N.type,Ee,"deepTrendChart","DeepTrendChart","深部趋势图"].map(x=>String(x||"").trim()).filter(Boolean),Ve=new Set(ve),we=new Set(ve.map(x=>x.toLowerCase()));if(!(!G||Ve.has(G)||we.has(G.toLowerCase())||G.startsWith("deepTrendChart_")))return;const ee=Object.entries(L||{}).find(([x,_])=>{if(!_||typeof _!="object"||Array.isArray(_))return!1;const I=String(x||"").toLowerCase();return I.includes("time")&&I.includes("range")||!!_.startDate&&!!_.endDate}),T=(ee==null?void 0:ee[1])||L.timeRange||L.range||null;oe.value=T&&(T.startDate||T.endDate)?{startDate:T.startDate,endDate:T.endDate}:null;const te=String((T==null?void 0:T.granularity)||(L==null?void 0:L.granularity)||"").toLowerCase();(te==="day"||te==="hour")&&(H.value=te);const ne=Object.entries(L||{}).find(([x,_])=>{if(!Array.isArray(_))return!1;const I=String(x||"").toLowerCase();return I.includes("time")||I.includes("date")}),ge=L.timeList||L.selectedTimes||(ne==null?void 0:ne[1]);if(k.setPanelConfig(L),Array.isArray(ge)&&(V.value=ge.map(x=>String(x)),V.value.length>0)){const x=V.value[0],_=m.value.find(I=>re(I.time,x));_&&(y.value=_.time)}if(Q&&["s","x","y"].includes(Q)){Z.value=Q,D();return}D();return}const i=r.conf,s=(i==null?void 0:i.data)||[],l=(i==null?void 0:i.common)||{};if(s.length>0&&!(l!=null&&l.multiObject)){const L=P.getObjectId(l,l==null?void 0:l.useAlias,r.uid)||((w=s[0])==null?void 0:w.object_id),A=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(L&&A&&String(L)!==String(A))return}if(Array.isArray(n==null?void 0:n.history)){O.value=fe(n.history),m.value=[...O.value],m.value.length&&(y.value=m.value[m.value.length-1].time),j(),D();return}const c=(s[0]||{}).points_fv||"points",u=String((q=(B=(R=n==null?void 0:n.time)!=null?R:n==null?void 0:n.datetime)!=null?B:(z=e.topic)==null?void 0:z.time)!=null?q:Date.now()),g=J(n,s,c);g.length&&(O.value=[...O.value.slice(-199),{time:u,points:g}],m.value=[...O.value],y.value=u,j(),D())},pe=e=>{var h,d,p,C,E,N;const t=r.conf,n=(t==null?void 0:t.data)||[],i=(t==null?void 0:t.common)||{},s=(i==null?void 0:i.source)||"mosaic";let l=e;if(["statistics","calculate"].includes(s)&&(l=P.formatStatisticsResult(l,n)),(h=l==null?void 0:l.history)!=null&&h.length){m.value=fe(l.history),m.value.length&&(y.value=m.value[m.value.length-1].time),j(),D();return}const a=i!=null&&i.multiObject?"":P.getObjectId(i,i==null?void 0:i.useAlias,r.uid),c=a&&((p=(d=l==null?void 0:l[a])==null?void 0:d[s])==null?void 0:p.data)||((C=l==null?void 0:l[s])==null?void 0:C.data)||(l==null?void 0:l.data)||l,g=(n[0]||{}).points_fv||"points",f=String((N=(E=c==null?void 0:c.time)!=null?E:c==null?void 0:c.datetime)!=null?N:Date.now()),v=J(c,n,g);v.length&&(O.value=[...O.value.slice(-199),{time:f,points:v}],m.value=[...O.value],y.value=f,j(),D())};return o.watch(()=>S.channels[X()],e=>{e&&he(e)},{deep:!0}),o.watchEffect(()=>{r.conf.socketData&&k.setSocketData(r.conf.socketData)}),o.watch(()=>{var e;return(e=r.conf)==null?void 0:e.options},()=>{k.getStyle().value=k.extractStyles(),D()},{deep:!0}),o.onMounted(()=>{if(r.mode==="edit"&&!m.value.length){const e=[{elevation:1024.94,disp:0,relative_disp:-1},{elevation:994.94,disp:3,relative_disp:0},{elevation:964.94,disp:6,relative_disp:1},{elevation:934.94,disp:9,relative_disp:2},{elevation:904.94,disp:12,relative_disp:3}];m.value=[{time:"2026-01-20 15:29:59",points:e},{time:"2026-01-20 16:29:59",points:e.map(t=>le(ie({},t),{disp:t.disp+1}))}],y.value=m.value[0].time}!y.value&&m.value.length&&(y.value=m.value[m.value.length-1].time),D()}),(e,t)=>{const n=K.ElOption,i=K.ElSelect,s=K.ElIcon,l=K.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(U).bgColor,borderRadius:`${o.unref(U).radiusSize}px`})},[o.unref(U).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(Ne.value)},o.toDisplayString(b.conf.caption||b.conf.name),5)),o.createElementVNode("div",Ge,[o.createElementVNode("div",Ke,[o.createVNode(i,{modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=a=>y.value=a),placeholder:"选择时间",size:"small",class:"time-select",onChange:ke},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(xe.value,a=>(o.openBlock(),o.createBlock(n,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(l,{size:"small",class:"export-btn",onClick:De},{default:o.withCtx(()=>[o.createVNode(s,null,{default:o.withCtx(()=>[o.createVNode(o.unref(qe.Download))]),_:1}),t[1]||(t[1]=o.createTextVNode(" 导出图 ",-1))]),_:1})]),o.createElementVNode("div",{class:"echart-container",id:o.unref(ae)},null,8,We)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),lt=P._export_sfc(it,[["__scopeId","data-v-b1d84352"]]);exports.default=lt;
@@ -1,2 +0,0 @@
1
- "use strict";var M=Object.defineProperty,T=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var I=(c,n,a)=>n in c?M(c,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[n]=a,x=(c,n)=>{for(var a in n||(n={}))w.call(n,a)&&I(c,a,n[a]);if(A)for(var a of A(n))B.call(n,a)&&I(c,a,n[a]);return c},N=(c,n)=>T(c,L(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const V=require("./index-D8dh_6Qd.cjs"),$=require("./EChartComponentBase-D4wMej9X.cjs"),z=require("./ele-lin-icon-Dke_1AmT.cjs"),q={class:"panel-header"},R=["id"],H={DEFAULT_ICON:z.DEFAULT_ICON,ACTIVE_ICON:z.ACTIVE_ICON,NAME_CN:"设备在线状态",NAME_EN:"Device Online Status",ORDER:11},U={title:{value:"设备在线状态",type:"string",label:"标题"},bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleFontSize:{value:16,type:"number",label:"标题字体大小",min:12,max:24},onlineColor:{value:"#67C23A",type:"color",label:"在线颜色"},offlineColor:{value:"#C0C4CC",type:"color",label:"离线颜色"},centerFontSize:{value:32,type:"number",label:"中心数字大小",min:18,max:48},centerColor:{value:"#1a3a6b",type:"color",label:"中心数字颜色"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},W=[{name:"设备1",fv:"online_status",fvDeviceName:"",object_id:""}],P=["object_id","name","fv","fvDeviceName"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=200,Q={DEFAULT:H,OPTIONS:U,DATA:W,PARAMS:P,SOURCE:G,COMMON:J,ITEMS:K},X=t.defineComponent(N(x({},Q),{__name:"deviceOnlineStatus",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){const n=c,a=new Map;class k extends $.EChartComponentBase{extractStyles(){var o,u,s,d,f,h,C,y,g,O,_,E;const e=(o=this.props.conf)==null?void 0:o.options,r=((u=e==null?void 0:e.linkChannel)==null?void 0:u.value)||"gnss",i=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return{title:((d=e==null?void 0:e.title)==null?void 0:d.value)||"设备在线状态",bgColor:((f=e==null?void 0:e.bgColor)==null?void 0:f.value)||"#f5f7fa",panelBgColor:((h=e==null?void 0:e.panelBgColor)==null?void 0:h.value)||"#ffffff",textColor:((C=e==null?void 0:e.textColor)==null?void 0:C.value)||"#333333",titleFontSize:((y=e==null?void 0:e.titleFontSize)==null?void 0:y.value)||16,onlineColor:((g=e==null?void 0:e.onlineColor)==null?void 0:g.value)||"#67C23A",offlineColor:((O=e==null?void 0:e.offlineColor)==null?void 0:O.value)||"#C0C4CC",centerFontSize:((_=e==null?void 0:e.centerFontSize)==null?void 0:_.value)||32,centerColor:((E=e==null?void 0:e.centerColor)==null?void 0:E.value)||"#1a3a6b",linkChannel:r==="custom"&&i?i:r}}getChartOption(){return m(this.Style.value)}setHistoryData(e){var i;if(!e||!this.chartObj)return;const r=((i=this.props.conf)==null?void 0:i.data)||[];!Array.isArray(r)||!r.length||(r.forEach((o,u)=>{if(!o.fv)return;const s=Array.isArray(e)?e[u]:null,d=Array.isArray(s)&&s.length?s[0]:null;if(!d)return;const f=d[o.fv];if(f==null)return;const h=f===1||f===!0||f==="online"||f==="1"||f==="true",C=o.object_id||o.name||"";C&&a.set(C,h)}),this.chartObj.setOption(m(this.Style.value),!0))}setSocketData(e){var i;if(!e)return;(((i=this.props.conf)==null?void 0:i.data)||[]).forEach(o=>{if(!o.fv)return;const u=o.object_id||o.name||"";if(!u)return;const s=this.extractDataValue(e,o.fv);if(s!=null){const d=s===1||s===!0||s==="online"||s==="1"||s==="true";a.set(u,d)}}),this.chartObj&&this.chartObj.setOption(m(this.Style.value),!0)}onLinkEvent(e){}}const v=new k(n,"deviceOnlineStatus");v.setupLifecycle();const p=v.getStyle(),D=v.getEchartId(),b=t.computed(()=>{var l;return((l=n.conf)==null?void 0:l.data)||[]}),j=t.computed(()=>{if(b.value.length===0&&n.mode==="edit")return{online:23,offline:3,total:26};let e=0,r=0;return b.value.forEach(i=>{const o=i.object_id||i.name||"";a.get(o)===!1?r++:e++}),{online:e,offline:r,total:e+r}}),F=t.computed(()=>({backgroundColor:p.value.bgColor})),m=l=>{const{online:e,offline:r,total:i}=j.value;return{backgroundColor:"transparent",tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},legend:{bottom:10,itemWidth:10,itemHeight:10,itemGap:20,textStyle:{fontSize:13,color:l.textColor},formatter:o=>`${o} ${o==="在线"?e:r}`},series:[{type:"pie",radius:["50%","72%"],center:["50%","45%"],avoidLabelOverlap:!1,label:{show:!0,position:"center",formatter:()=>`{num|${i}}
2
- {txt|设备总数}`,rich:{num:{fontSize:l.centerFontSize,fontWeight:"bold",color:l.centerColor,lineHeight:l.centerFontSize+10},txt:{fontSize:13,color:"#999",lineHeight:22}}},labelLine:{show:!1},itemStyle:{borderRadius:4,borderColor:"#fff",borderWidth:2},data:[{value:e,name:"在线",itemStyle:{color:l.onlineColor}},{value:r,name:"离线",itemStyle:{color:l.offlineColor}}]}]}},S=()=>{for(let e=0;e<23;e++)a.set(`dev-${e}`,!0);for(let e=23;e<26;e++)a.set(`dev-${e}`,!1);const l=v.getChartInstance();l&&l.setOption(m(p.value),!0)};return t.onMounted(()=>{n.mode==="edit"&&S(),setTimeout(()=>{var l;return(l=v.getChartInstance())==null?void 0:l.resize()},200)}),t.watch(()=>n.conf,()=>{n.mode==="edit"&&S()},{deep:!0}),(l,e)=>(t.openBlock(),t.createElementBlock("div",{class:"device-online-status",style:t.normalizeStyle(F.value)},[t.createElementVNode("div",q,[e[0]||(e[0]=t.createElementVNode("span",{class:"indicator-dot"},null,-1)),t.createElementVNode("span",{class:"panel-title",style:t.normalizeStyle({color:t.unref(p).textColor,fontSize:t.unref(p).titleFontSize+"px"})},t.toDisplayString(t.unref(p).title),5)]),t.createElementVNode("div",{id:t.unref(D),class:"chart-container"},null,8,R),t.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),Y=V._export_sfc(X,[["__scopeId","data-v-a8771396"]]);exports.default=Y;
@@ -1 +0,0 @@
1
- "use strict";var x=Object.defineProperty,A=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var S=(u,a,s)=>a in u?x(u,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[a]=s,E=(u,a)=>{for(var s in a||(a={}))M.call(a,s)&&S(u,s,a[s]);if(b)for(var s of b(a))R.call(a,s)&&S(u,s,a[s]);return u},N=(u,a)=>A(u,O(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const T=require("./BaseComponent-CNXUpPY1.cjs"),y=require("./index-D8dh_6Qd.cjs"),V=require("./ele-gag-icon-Ce1hl9NI.cjs"),I={class:"device-status-wrapper"},L={class:"panel-header"},z={class:"header-left"},F={class:"header-title"},H={class:"status-cards"},U=["onClick"],q={class:"status-label"},P={class:"device-list"},$={class:"device-icon"},G={class:"device-info"},J={class:"device-name"},K={class:"device-type"},Q={class:"device-value"},W={class:"value-text"},X={key:0,class:"no-data"},Y={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"设备运行状态",NAME_EN:"Device Status",ORDER:8},Z={title:{value:"监测设备运行状态",type:"string",label:"component.deviceStatus.title"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.deviceStatus.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.deviceStatus.accentColor"},glowEffect:{value:!0,type:"checkbox",label:"component.deviceStatus.glowEffect"},normalColor:{value:"#2ecc71",type:"color",label:"component.deviceStatus.normalColor"},warnColor:{value:"#f39c12",type:"color",label:"component.deviceStatus.warnColor"},errorColor:{value:"#e74c3c",type:"color",label:"component.deviceStatus.errorColor"}},ee=[{name:"温度传感器-01",type:"温度传感器",icon:"🌡",fv:"temperature",object_id:"",unit:"°C",value:25.1,status:0},{name:"压力传感器-01",type:"压力传感器",icon:"⏱",fv:"pressure",object_id:"",unit:"MPa",value:1.3,status:0},{name:"位移传感器-01",type:"位移传感器",icon:"↔",fv:"displacement",object_id:"",unit:"mm",value:2.1,status:1},{name:"振动传感器-01",type:"振动传感器",icon:"〰",fv:"vibration",object_id:"",unit:"Hz",value:.1,status:0}],te=["name","type","icon","fv","object_id","unit","status"],oe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ae={useAlias:!1,multiObject:!0,source:"mosaic"},le={DEFAULT:Y,OPTIONS:Z,DATA:ee,PARAMS:te,SOURCE:oe,COMMON:ae},ce=e.defineComponent(N(E({},le),{__name:"deviceStatus",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(u){e.useCssVars(l=>({d75d9a62:e.unref(c).bgColor,v77263a70:e.unref(c).borderColor,v5bcde2a7:e.unref(c).textColor,v537754ea:e.unref(c).accentColor,cd65bab2:e.unref(c).glowEffect?`drop-shadow(0 0 6px ${e.unref(c).accentColor})`:"none",v16f8f25a:e.unref(c).glowEffect?`0 0 10px ${e.unref(c).accentColor}`:"none"}));const a=u;class s extends T.BaseComponent{extractStyles(){var o,i,n,r,C,d,_,f,m,v;const{options:t}=this.props.conf;return{title:((o=t==null?void 0:t.title)==null?void 0:o.value)||"监测设备运行状态",bgColor:((i=t==null?void 0:t.bgColor)==null?void 0:i.value)||"#1a2a3a",borderColor:((n=t==null?void 0:t.borderColor)==null?void 0:n.value)||"#2a4a6a",textColor:((r=t==null?void 0:t.textColor)==null?void 0:r.value)||"#ffffff",accentColor:((C=t==null?void 0:t.accentColor)==null?void 0:C.value)||"#00d4ff",glowEffect:(_=(d=t==null?void 0:t.glowEffect)==null?void 0:d.value)!=null?_:!0,normalColor:((f=t==null?void 0:t.normalColor)==null?void 0:f.value)||"#2ecc71",warnColor:((m=t==null?void 0:t.warnColor)==null?void 0:m.value)||"#f39c12",errorColor:((v=t==null?void 0:t.errorColor)==null?void 0:v.value)||"#e74c3c"}}setHistoryData(t){const{data:o,common:i}=this.props.conf;if(!o.some(d=>d.object_id&&d.fv))return;const r=i.source||"mosaic";["statistics","calculate"].includes(r)&&(t=y.formatStatisticsResult(t,o));let C=y.handleNullData(t,this.props,"history");o.forEach((d,_)=>{var f,m;if(!(!d.object_id||!d.fv))try{const v=(m=(f=C.history[_])==null?void 0:f[0])==null?void 0:m[d.fv];v!=null&&(d.value=v)}catch(v){}})}setSocketData(t){if(!t)return;const{data:o}=this.props.conf;o.some(n=>n.object_id&&n.fv)&&o.forEach(n=>{if(!n.object_id||!n.fv)return;const r=this.extractDataValue(t,n.fv);r!=null&&(n.value=r)})}}const g=new s(a,"deviceStatus");(!a.conf.data||a.conf.data.length===0)&&(a.conf.data=[{name:"温度传感器-01",type:"温度传感器",icon:"🌡",fv:"",object_id:"",unit:"°C",value:25.1,status:0},{name:"压力传感器-01",type:"压力传感器",icon:"⏱",fv:"",object_id:"",unit:"MPa",value:1.3,status:0},{name:"位移传感器-01",type:"位移传感器",icon:"↔",fv:"",object_id:"",unit:"mm",value:2.1,status:1},{name:"振动传感器-01",type:"振动传感器",icon:"〰",fv:"",object_id:"",unit:"Hz",value:.1,status:0}]),g.setupLifecycle();const c=g.getStyle(),p=e.ref(null),D=e.computed(()=>{var n;const l=((n=a.conf)==null?void 0:n.data)||[],t=l.filter(r=>r.status===0).length,o=l.filter(r=>r.status===1).length,i=l.filter(r=>r.status===2).length;return[{name:"正常",count:t,color:c.value.normalColor},{name:"警告",count:o,color:c.value.warnColor},{name:"异常",count:i,color:c.value.errorColor}]}),h=e.computed(()=>{var t;const l=((t=a.conf)==null?void 0:t.data)||[];return p.value===null?l:l.filter(o=>o.status===p.value)}),k=()=>console.log("实时更新"),B=l=>{p.value=p.value===l?null:l},w=l=>{const t=[c.value.normalColor,c.value.warnColor,c.value.errorColor];return t[l]||t[0]},j=l=>{const t=["正常","警告","异常"];return t[l]||t[0]};return(l,t)=>(e.openBlock(),e.createElementBlock("div",I,[e.createElementVNode("div",L,[e.createElementVNode("div",z,[t[0]||(t[0]=e.createElementVNode("svg",{class:"header-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("circle",{cx:"12",cy:"12",r:"3"}),e.createElementVNode("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})],-1)),e.createElementVNode("span",F,e.toDisplayString(e.unref(c).title),1)]),e.createElementVNode("button",{class:"realtime-btn",onClick:k}," 实时更新 ")]),e.createElementVNode("div",H,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,(o,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"status-card",style:e.normalizeStyle({borderTopColor:o.color}),onClick:n=>B(i)},[e.createElementVNode("div",{class:"status-count",style:e.normalizeStyle({color:o.color})},e.toDisplayString(o.count),5),e.createElementVNode("div",q,e.toDisplayString(o.name),1)],12,U))),128))]),e.createElementVNode("div",P,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"device-item"},[e.createElementVNode("div",$,e.toDisplayString(o.icon),1),e.createElementVNode("div",G,[e.createElementVNode("div",J,e.toDisplayString(o.name),1),e.createElementVNode("div",K,e.toDisplayString(o.type),1)]),e.createElementVNode("div",Q,[e.createElementVNode("div",W,e.toDisplayString(o.value)+" "+e.toDisplayString(o.unit),1),e.createElementVNode("div",{class:"status-tag",style:e.normalizeStyle({background:w(o.status)})},e.toDisplayString(j(o.status)),5)])]))),128)),h.value.length===0?(e.openBlock(),e.createElementBlock("div",X," 暂无设备数据 ")):e.createCommentVNode("",!0)]),e.renderSlot(l.$slots,"default",{},void 0,!0)]))}})),ne=y._export_sfc(ce,[["__scopeId","data-v-732244ee"]]);exports.default=ne;
@@ -1 +0,0 @@
1
- "use strict";var U=Object.defineProperty,$=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols,F=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,K=Reflect.get;var x=(r,l,a)=>l in r?U(r,l,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[l]=a,T=(r,l)=>{for(var a in l||(l={}))H.call(l,a)&&x(r,a,l[a]);if(N)for(var a of N(l))Y.call(l,a)&&x(r,a,l[a]);return r},I=(r,l)=>$(r,R(l));var P=(r,l,a)=>K(F(r),a,l);var V=(r,l,a)=>new Promise((g,p)=>{var C=d=>{try{f(a.next(d))}catch(m){p(m)}},y=d=>{try{f(a.throw(d))}catch(m){p(m)}},f=d=>d.done?g(d.value):Promise.resolve(d.value).then(C,y);f((a=a.apply(r,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),X=require("@element-plus/icons-vue");require("html2canvas");const Z=require("./BaseComponent-CNXUpPY1.cjs"),v=require("./index-D8dh_6Qd.cjs"),M=require("./ele-lst-icon-CrxnHZ-A.cjs"),W={class:"displacement-data-table"},G={class:"table-toolbar"},J={class:"toolbar-title"},Q={class:"toolbar-right"},ee={class:"search-info"},te={class:"table-container"},ae={DEFAULT_ICON:M.DEFAULT_ICON,ACTIVE_ICON:M.ACTIVE_ICON,NAME_CN:"位移数据表",NAME_EN:"Displacement Data Table",ORDER:16},oe={title:{value:"深部位移数据表",type:"string",label:"component.deepDisplacement.title"},pageSize:{value:10,type:"number",label:"component.options.itemsPerPage",min:5,max:100},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},headerColor:{value:"#f5f7fa",type:"color",label:"component.deepDisplacement.headerColor"}},ne=[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth"}],le=["configPanelId","name","object_id","points_fv","fv","depth_fv"],se=["mosaic","statistics","calculate"],re={useAlias:!1,multiObject:!1,source:"mosaic"},ce={DEFAULT:ae,OPTIONS:oe,DATA:ne,PARAMS:le,SOURCE:se,COMMON:re},ie=e.defineComponent(I(T({},ce),{__name:"displacementDataTable",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){e.useCssVars(o=>({v5e516c27:e.unref(D).bgColor,b2b5b402:e.unref(D).textColor}));const l=v.useLinkStore(),a=r,g=e.ref(1),p=e.ref(10),C=e.ref("0.039"),y=e.ref(400),f=e.ref([]),d=e.ref([]);class m extends Z.BaseComponent{extractStyles(){var n,s,i,u,_;const{options:t}=this.props.conf;return{title:((n=t==null?void 0:t.title)==null?void 0:n.value)||"深部位移数据表",pageSize:((s=t==null?void 0:t.pageSize)==null?void 0:s.value)||10,bgColor:((i=t==null?void 0:t.bgColor)==null?void 0:i.value)||"#ffffff",textColor:((u=t==null?void 0:t.textColor)==null?void 0:u.value)||"#333333",headerColor:((_=t==null?void 0:t.headerColor)==null?void 0:_.value)||"#f5f7fa"}}getDefaultData(){return[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth"}]}getMockData(){var i;const t=((i=this.props.conf)==null?void 0:i.data)||this.getDefaultData(),n=[-152,-151,-150,-149,-148,-147,-146,-145,-144,-143,-142];d.value=n;const s=[];for(let u=0;u<50;u++){const c={time:v.dayjs().subtract(u,"hour").format("YYYY-MM-DD HH:mm:ss")};t.forEach(E=>{n.forEach(j=>{const L=Math.random()*5;c[`${E.name}_${Math.abs(j)}`]=L+Math.random()})}),s.push(c)}return s}onPreview(){return V(this,null,function*(){const{data:t}=this.props.conf;t.some(s=>s.object_id&&s.fv)?(console.log("[DisplacementDataTable] 检测到数据绑定,订阅真实数据"),yield P(m.prototype,this,"onPreview").call(this)):(console.log("[DisplacementDataTable] 未配置数据源,使用模拟数据"),f.value=this.getMockData())})}setHistoryData(t){const{data:n,common:s}=this.props.conf;if(!n||n.length===0||!n.some(c=>c.object_id&&c.fv))return;const u=(s==null?void 0:s.source)||"mosaic";["statistics","calculate"].includes(u)&&(t=v.formatStatisticsResult(t,n)),v.handleNullData(t,this.props,"history")}setSocketData(t){console.log("[DisplacementDataTable] 收到实时数据")}}const h=new m(a,"displacementDataTable");(!a.conf.data||a.conf.data.length===0)&&(a.conf.data=h.getDefaultData()),h.setupLifecycle();const D=h.getStyle();e.onMounted(()=>{p.value=D.value.pageSize,f.value=h.getMockData()});const k=e.computed(()=>{var t,n;return((n=(((t=a.conf)==null?void 0:t.data)||[])[0])==null?void 0:n.configPanelId)||""});e.watch(()=>l.channels.deepDisplacement,o=>{if(!o||o.topic.source==="displacementDataTable")return;const t=k.value;if(!t)return;const{payload:n}=o;n.objectId===t&&n.type==="config"&&console.log("[DataTable] 收到配置:",n.fv)},{deep:!0});const w=e.computed(()=>{var n;const o=((n=a.conf)==null?void 0:n.data)||h.getDefaultData(),t=[];return o.forEach(s=>{d.value.forEach(i=>{t.push({prop:`${s.name}_${Math.abs(i)}`,label:`${s.name} (${i}m)`})})}),t}),z=e.computed(()=>{const o=(g.value-1)*p.value,t=o+p.value;return f.value.slice(o,t)}),S=e.computed(()=>f.value.length),O=o=>o==null?"-":typeof o=="number"?o.toFixed(3):o,q=o=>{g.value=o},B=o=>{p.value=o,g.value=1},A=()=>{console.log("导出表格")};return e.watch(()=>{var o;return(o=a.conf)==null?void 0:o.data},()=>{f.value=h.getMockData()},{deep:!0}),(o,t)=>{const n=b.ElIcon,s=b.ElButton,i=b.ElPagination,u=b.ElTableColumn,_=b.ElTable;return e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("div",G,[e.createElementVNode("div",J,e.toDisplayString(e.unref(D).title),1),e.createVNode(s,{size:"small",onClick:A},{default:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.Upload))]),_:1}),t[2]||(t[2]=e.createTextVNode(" 导出表 ",-1))]),_:1}),e.createElementVNode("div",Q,[e.createElementVNode("span",ee,"搜索耗时 "+e.toDisplayString(C.value)+"秒 总共 "+e.toDisplayString(S.value)+" 条数据",1),e.createVNode(i,{"current-page":g.value,"onUpdate:currentPage":t[0]||(t[0]=c=>g.value=c),"page-size":p.value,"onUpdate:pageSize":t[1]||(t[1]=c=>p.value=c),"page-sizes":[10,20,50,100],total:S.value,layout:"prev, pager, next, sizes",small:"",onSizeChange:B,onCurrentChange:q},null,8,["current-page","page-size","total"])])]),e.createElementVNode("div",te,[e.createVNode(_,{data:z.value,height:y.value,border:"",stripe:"",size:"small","header-cell-style":{background:"#f5f7fa",color:"#333",fontWeight:600}},{default:e.withCtx(()=>[e.createVNode(u,{prop:"time",label:"采集时间",width:"160",fixed:"left"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,c=>(e.openBlock(),e.createBlock(u,{key:c.prop,prop:c.prop,label:c.label,width:"100",align:"right"},{default:e.withCtx(({row:E})=>[e.createTextVNode(e.toDisplayString(O(E[c.prop])),1)]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data","height"])]),e.renderSlot(o.$slots,"default",{},void 0,!0)])}}})),ue=v._export_sfc(ie,[["__scopeId","data-v-71109cab"]]);exports.default=ue;
@@ -1,22 +0,0 @@
1
- "use strict";var ve=Object.defineProperty,be=Object.defineProperties;var Ce=Object.getOwnPropertyDescriptors;var ae=Object.getOwnPropertySymbols;var Se=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable;var oe=(g,d,p)=>d in g?ve(g,d,{enumerable:!0,configurable:!0,writable:!0,value:p}):g[d]=p,q=(g,d)=>{for(var p in d||(d={}))Se.call(d,p)&&oe(g,p,d[p]);if(ae)for(var p of ae(d))je.call(d,p)&&oe(g,p,d[p]);return g},ie=(g,d)=>be(g,Ce(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const i=require("vue"),De=require("@element-plus/icons-vue"),w=require("./index-D8dh_6Qd.cjs"),xe=require("./EChartComponentBase-D4wMej9X.cjs"),_e=require("./titleStyle-NSnz6cUg.cjs"),re=require("./ele-lin-icon-Dke_1AmT.cjs"),Pe={class:"mix-body"},Ne={class:"toolbar"},we=["id"],Oe={DEFAULT_ICON:re.DEFAULT_ICON,ACTIVE_ICON:re.ACTIVE_ICON,NAME_CN:"地层运移轨迹图",NAME_EN:"Displacement Trajectory Chart",ORDER:2},Te={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,startPointRadius:{value:0,type:"number",label:"开始点半径(mm)"},startPointAngle:{value:0,type:"number",label:"开始点角度(°)"},showStartPoint:{value:!0,type:"boolean",label:"显示开始点"},endPointRadius:{value:0,type:"number",label:"结束点半径(mm)"},endPointAngle:{value:0,type:"number",label:"结束点角度(°)"},showEndPoint:{value:!0,type:"boolean",label:"显示结束点"},showTrajectory:{value:!0,type:"boolean",label:"显示轨迹线"},showDirection:{value:!1,type:"boolean",label:"显示方向箭头"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Ie=[{configPanelId:"",name:"-123米",fv_radius:"合结果",fv_angle:"距移方向",depth:-123,object_id:"",color:"#5470c6"},{configPanelId:"",name:"-124米",fv_radius:"合结果",fv_angle:"距移方向",depth:-124,object_id:"",color:"#91cc75"}],Ee=["configPanelId","name","fv_radius","fv_angle","depth","object_id","color"],Ae=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ke={useAlias:!1,multiObject:!0,source:"mosaic"},Me={DEFAULT:Oe,OPTIONS:Te,DATA:Ie,PARAMS:Ee,SOURCE:Ae,COMMON:ke},Re=i.defineComponent(ie(q({},Me),{__name:"displacementTrajectoryChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(g){const d=g,p=i.ref(""),R=i.ref([]),le=n=>{if(n==null||n==="")return null;if(typeof n=="number"||typeof n=="string"&&n.trim()!==""&&!Number.isNaN(Number(n))){let l=Number(n);return l<1e12&&(l*=1e3),w.dayjs(l)}const t=w.dayjs(n);return t.isValid()?t:null},$=n=>{const e=le(n);return e?{label:e.format("YYYY-MM-DD HH:mm:ss"),date:e.format("YYYY-MM-DD"),value:e.valueOf()}:{label:n?String(n):"",date:"",value:0}},se=(n,e,t)=>{if(!n||n.length===0)return!0;const l=t!=null?String(t):"";return n.some(a=>{const r=String(a);return r===e.date||r===e.label||r===l||r===String(e.value)})},Y=n=>n==null?"":String(n).replace(/[a-zA-Z\s]/g,"").replace(/[^0-9.\-]/g,"");class ce extends xe.EChartComponentBase{constructor(){super(...arguments),this.trajectoryData=[],this.panelConfig={}}addTrajectoryPoint(e,t,l,a){const r=$(t),s=e.depth,h=Number(a),j=Number.isFinite(h)?(h%360+360)%360:0,y=j*Math.PI/180,c=Number(l)*Math.cos(y),m=Number(l)*Math.sin(y);this.trajectoryData.push({seriesName:e.name||`${s}m`,color:e.color||"#5470c6",time:r.label||String(t!=null?t:""),timeLabel:r.label||String(t!=null?t:""),timeValue:r.value,date:r.date,depth:s,dispX:c,dispY:m,radius:Number(l),angle:j})}extractStyles(){var t,l,a,r,s,h,j,y,c,m,D,N,v,u;const{options:e}=this.props.conf;return{bgColor:((t=e==null?void 0:e.bgColor)==null?void 0:t.value)||"#fff",titleColor:((l=e==null?void 0:e.titleColor)==null?void 0:l.value)||"#111",textColor:((a=e==null?void 0:e.textColor)==null?void 0:a.value)||"#111",radiusSize:((r=e==null?void 0:e.radiusSize)==null?void 0:r.value)||8,textSize:((s=e==null?void 0:e.textSize)==null?void 0:s.value)||12,isHideTitle:((h=e==null?void 0:e.isHideTitle)==null?void 0:h.value)||!1,startPointRadius:((j=e==null?void 0:e.startPointRadius)==null?void 0:j.value)||0,startPointAngle:((y=e==null?void 0:e.startPointAngle)==null?void 0:y.value)||0,showStartPoint:((c=e==null?void 0:e.showStartPoint)==null?void 0:c.value)!==!1,endPointRadius:((m=e==null?void 0:e.endPointRadius)==null?void 0:m.value)||0,endPointAngle:((D=e==null?void 0:e.endPointAngle)==null?void 0:D.value)||0,showEndPoint:((N=e==null?void 0:e.showEndPoint)==null?void 0:N.value)!==!1,showTrajectory:((v=e==null?void 0:e.showTrajectory)==null?void 0:v.value)!==!1,showDirection:((u=e==null?void 0:e.showDirection)==null?void 0:u.value)||!1}}getDefaultData(){return[{configPanelId:"",name:"-123米",fv_radius:"合结果",fv_angle:"距移方向",depth:-123,object_id:"",color:"#5470c6"},{configPanelId:"",name:"-124米",fv_radius:"合结果",fv_angle:"距移方向",depth:-124,object_id:"",color:"#91cc75"}]}setPanelConfig(e){console.log("[TrajectoryChart] 应用控制面板配置:",e),this.panelConfig=e||{},this.updateChart()}setHistoryData(e){const{data:t,common:l}=this.props.conf;if(!t||t.length===0)return;const a=(l==null?void 0:l.source)||"mosaic";["statistics","calculate"].includes(a)&&(e=w.formatStatisticsResult(e,t));const r=w.handleNullData(e,this.props,"history");if(r)try{if(this.trajectoryData=[],!r.history||r.history.length===0)return;const s=[...new Set(t.map(c=>{var m;return String((m=c.object_id)!=null?m:"")}))],h=Array.isArray(r.history)?r.history:[],j=c=>{const m=t.map((u,b)=>b).filter(u=>{var b,_;return String((_=(b=t[u])==null?void 0:b.object_id)!=null?_:"")===c});if(!m.length)return[];const D=m[0],N=Array.isArray(h[D])?h[D]:[],v=[];return N.forEach((u,b)=>{const _=u&&typeof u=="object"?q({},u):{};m.forEach(C=>{var M,x,O;const f=(M=h[C])==null?void 0:M[b];if(!f||typeof f!="object")return;const I=(x=t[C])==null?void 0:x.fv_radius,E=(O=t[C])==null?void 0:O.fv_angle;I&&(_[I]=f==null?void 0:f[I]),E&&(_[E]=f==null?void 0:f[E])}),v.push(_)}),v};if(r.history=s.map(c=>j(c)),!0){const c=r.history[0]||[];if(c.length===0)return;const m=[...new Set(c.map(u=>$(u.time||u.timestamp).date).filter(Boolean))];R.value=m.sort((u,b)=>new Date(b).getTime()-new Date(u).getTime());const{selectedTimes:D,startDate:N,endDate:v}=this.panelConfig;c.forEach((u,b)=>{const _=$(u.time||u.timestamp),C=_.date;if(D&&D.length>0){if(!se(D,_,u.time||u.timestamp))return}else if(N&&v&&(C<N||C>v))return;t.forEach(f=>{const I=f.fv_radius,E=f.fv_angle,M=f.object_id,x=s.indexOf(M);if(x===-1||!r.history[x])return;const O=r.history[x];if(!O[b])return;const A=O[b],L=A==null?void 0:A[I],k=A==null?void 0:A[E];L==null||k===void 0||k===null||this.addTrajectoryPoint(f,u.time||u.timestamp,L,k)})})}this.trajectoryData.sort((c,m)=>c.timeValue-m.timeValue)}catch(s){console.error("[TrajectoryChart] 解析历史数据失败:",s)}}setSocketData(e){var a,r,s;if(!e)return;const{data:t}=this.props.conf;if(!t||t.length===0)return;const l=(s=(r=(a=e.time)!=null?a:e.timestamp)!=null?r:e.datetime)!=null?s:w.dayjs().format("YYYY-MM-DD HH:mm:ss");t.forEach(h=>{const j=h.fv_radius,y=h.fv_angle,c=this.extractDataValue(e,j),m=this.extractDataValue(e,y);c==null||m===void 0||m===null||this.addTrajectoryPoint(h,l,c,m)}),this.trajectoryData.length>500&&this.trajectoryData.shift(),this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)}getChartOption(){var W,X,K,Z,G,J,Q,ee,te;const e=this.extractStyles(),t=this.trajectoryData;let l=e.showStartPoint,a=e.showEndPoint;e.showDirection;let r=e.startPointRadius,s=e.startPointAngle,h=e.endPointRadius,j=e.endPointAngle;if(this.panelConfig.displayOptions){const o=this.panelConfig.displayOptions;o.showStartPoint!==void 0&&(l=o.showStartPoint),o.showEndPoint!==void 0&&(a=o.showEndPoint),o.showDirection!==void 0&&o.showDirection}const y=[...t].sort((o,S)=>new Date(o.time).getTime()-new Date(S.time).getTime()),c=((W=this.panelConfig)==null?void 0:W.nodeList)||((X=this.panelConfig)==null?void 0:X.modelList)||((K=this.panelConfig)==null?void 0:K.selectList)||((Z=this.panelConfig)==null?void 0:Z.selectedNodes),m=Array.isArray(c)?c.map(o=>String(o)):c!=null&&String(c)!==""?[String(c)]:[],D=(((G=this.props.conf)==null?void 0:G.data)||[]).map(o=>String((o==null?void 0:o.name)||"")).filter(Boolean),N=m.flatMap(o=>{const S=Number(o);return Number.isFinite(S)&&S>=1&&S<=D.length?[D[S-1]]:[o]}),v=N.map(o=>Y(o)).filter(Boolean),u=v.length>0,b=u?y.filter(o=>{const S=String(o.seriesName),T=Y(S),z=Y(o.depth);if(N.includes(S)||T&&v.includes(T)||z&&v.includes(z))return!0;const ne=Y(Math.abs(Number(o.depth)));return ne&&v.includes(ne)}):y,_=u?b:y,C=((J=this.panelConfig)==null?void 0:J.range__radius)||((Q=this.panelConfig)==null?void 0:Q.radiusRange)||((ee=this.panelConfig)==null?void 0:ee.range)||((te=this.panelConfig)==null?void 0:te.valueRange),f=C==null?void 0:C.min,I=C==null?void 0:C.max,E=Number.isFinite(f)?Number(f):null,M=Number.isFinite(I)?Number(I):null,x=_.filter(o=>Number.isFinite(o.radius)&&Number.isFinite(o.angle));let O=Math.max(...x.map(o=>o.radius),50);O=Math.max(O,r,h);const A=M!==null?M:Math.ceil(O/10)*10+10,L=E!==null?E:0,k=[];return x.length>0&&k.push({name:"轨迹点",type:"scatter",coordinateSystem:"polar",data:x.map(o=>[o.radius,o.angle]),symbol:"circle",symbolSize:8,itemStyle:{color:"#ff9800",borderColor:"#fff",borderWidth:1}}),l&&k.push({name:"开始点",type:"scatter",coordinateSystem:"polar",data:[[r,s]],symbol:"circle",symbolSize:12,itemStyle:{color:"#67c23a",borderColor:"#fff",borderWidth:2},z:10}),a&&k.push({name:"结束点",type:"scatter",coordinateSystem:"polar",data:[[h,j]],symbol:"circle",symbolSize:12,itemStyle:{color:"#f56c6c",borderColor:"#fff",borderWidth:2},z:10}),{backgroundColor:"transparent",polar:{center:["50%","50%"],radius:"70%"},angleAxis:{type:"value",startAngle:90,min:0,max:360,interval:30,clockwise:!1,axisLine:{show:!0,lineStyle:{color:"#ddd"}},axisLabel:{color:e.textColor,fontSize:11,formatter:o=>o===0||o===360?"东":o===90?"北":o===180?"西":o===270?"南":o.toString()},splitLine:{show:!0,lineStyle:{color:"#e0e0e0",type:"dashed"}}},radiusAxis:{type:"value",min:L,max:A,axisLabel:{color:e.textColor,fontSize:11,formatter:o=>`${o}mm`},splitLine:{show:!0,lineStyle:{color:"#e0e0e0",type:"dashed"}},axisLine:{show:!0,lineStyle:{color:"#ddd"}}},series:k,tooltip:{trigger:"item",formatter:o=>{if(o.seriesName==="开始点")return`<div style="padding: 8px;">
2
- <div style="font-weight: 600; margin-bottom: 6px;">开始点(参考)</div>
3
- <div style="color: #666; line-height: 1.8;">
4
- <div>半径: ${r.toFixed(2)}mm</div>
5
- <div>角度: ${s.toFixed(2)}°</div>
6
- </div>
7
- </div>`;if(o.seriesName==="结束点")return`<div style="padding: 8px;">
8
- <div style="font-weight: 600; margin-bottom: 6px;">结束点(参考)</div>
9
- <div style="color: #666; line-height: 1.8;">
10
- <div>半径: ${h.toFixed(2)}mm</div>
11
- <div>角度: ${j.toFixed(2)}°</div>
12
- </div>
13
- </div>`;const S=o.dataIndex;if(S!==void 0&&x[S]){const T=x[S],z=T.angle.toFixed(2);return`<div style="padding: 8px;">
14
- <div style="font-weight: 600; margin-bottom: 6px;">时间: ${T.time}</div>
15
- <div style="color: #666; line-height: 1.8;">
16
- <div>深度: ${T.depth}m</div>
17
- <div>半径: ${T.radius.toFixed(2)}mm</div>
18
- <div>角度: ${z}°</div>
19
- <div>X: ${T.dispX.toFixed(2)}mm</div>
20
- <div>Y: ${T.dispY.toFixed(2)}mm</div>
21
- </div>
22
- </div>`}return`${o.seriesName}<br/>半径: ${o.value[0].toFixed(2)}mm<br/>角度: ${o.value[1].toFixed(2)}°`}},legend:{data:[y.length>0?"轨迹点":null,l?"开始点":null,a?"结束点":null,null].filter(Boolean),bottom:10,show:!0,textStyle:{color:e.textColor}}}}getMockData(){const e=[];for(let t=0;t<10;t++){const l=t*30*Math.PI/180,a=5+t*3;e.push({time:w.dayjs().subtract(10-t,"day").format("YYYY-MM-DD"),radius:a,angle:l,dispX:a*Math.cos(l),dispY:a*Math.sin(l)})}return e}updateChart(){const e=this.getChartInstance();if(e){const t=this.getChartOption();e.setOption(t,!0)}}onLinkEvent(e){ye(e)}}const P=new ce(d,"displacementTrajectoryChart");P.setupLifecycle();const B=P.getStyle(),de=P.getEchartId(),ue=i.computed(()=>_e.generateTitleStyle(d.conf.options)),me=w.useLinkStore(),he=i.ref(""),H=i.computed(()=>{var e,t;return((t=(((e=d.conf)==null?void 0:e.data)||[])[0])==null?void 0:t.configPanelId)||""}),fe=i.computed(()=>{var n;return d.uid||((n=d.conf)==null?void 0:n.id)||""}),V=()=>{const n=P.getChartInstance();if(n){const e=P.getChartOption();n.setOption(e,!0)}},pe=n=>{console.log("Selected time:",n)},ge=()=>{const n=P.getChartInstance();if(n){const e=n.getDataURL({type:"png",backgroundColor:"#fff",pixelRatio:2}),t=document.createElement("a");t.download=`地层运移轨迹图_${w.dayjs().format("YYYYMMDD_HHmmss")}.png`,t.href=e,t.click()}};i.computed(()=>{var a,r,s;const n=((a=d.conf)==null?void 0:a.options)||{},e=((r=n==null?void 0:n.linkChannel)==null?void 0:r.value)||"deepDisplacement",t=((s=n==null?void 0:n.customChannel)==null?void 0:s.value)||"";return[e==="custom"&&t?t:e]}).value.forEach(n=>{i.watch(()=>me.channels[n],e=>{var r,s;if(!e||e.topic.source==="displacementTrajectoryChart")return;const t=H.value,l=fe.value,{payload:a}=e;console.log("[TrajectoryChart] 收到频道事件:",n,{eventType:a==null?void 0:a.type,eventObjectId:a==null?void 0:a.objectId,myConfigPanelId:t,myUid:l,fullPayload:a}),a.type==="filter"&&a.objectId===t?(console.log("[TrajectoryChart] ✅ 匹配成功(configPanelId):",t,a.filter),U((r=a.filter)!=null?r:a)):a.type==="filter"&&t&&console.log("[TrajectoryChart] ❌ 匹配失败(configPanelId):",{expected:t,received:a.objectId}),a.type==="filter"&&a.objectId===l&&(console.log("[TrajectoryChart] ✅ 匹配成功(uid):",l,a.filter),U((s=a.filter)!=null?s:a))},{deep:!0})});const U=n=>{console.log("[TrajectoryChart] 收到控制面板配置:",n),P.setPanelConfig(n);const e=(n==null?void 0:n.timeRange)||(n==null?void 0:n.dateRange);if(e){const l=e.startDate||e.start||e[0],a=e.endDate||e.end||e[1];l&&a&&(he.value=`${l} ~ ${a}`)}const t=(n==null?void 0:n.timeList)||(n==null?void 0:n.selectedTimes);Array.isArray(t)&&(R.value=t,R.value.length>0&&!p.value&&(p.value=R.value[0])),i.nextTick(V)};i.watch(()=>d.conf,()=>{P.init(),i.nextTick(V)},{deep:!0}),i.onMounted(()=>{P.init(),console.log("[TrajectoryChart] 组件挂载:",{uid:d.uid,configPanelId:H.value,conf:d.conf}),V()}),i.onUnmounted(()=>{P.cleanup()});const ye=n=>{var r;if(!n||!n.payload)return;const{payload:e}=n,t=d.conf,l=(t==null?void 0:t.data)||[],a=(t==null?void 0:t.common)||{};if(l.length>0&&!(a!=null&&a.multiObject)){const s=w.getObjectId(a,a==null?void 0:a.useAlias,d.uid)||((r=l[0])==null?void 0:r.object_id),h=(e==null?void 0:e.objectId)||(e==null?void 0:e.object_id);if(s&&h&&String(s)!==String(h))return}console.log("[TrajectoryChart] 收到联动事件:",n)};return(n,e)=>{const t=F.ElOption,l=F.ElSelect,a=F.ElIcon,r=F.ElButton;return i.openBlock(),i.createElementBlock("div",{class:"mix-component",style:i.normalizeStyle({background:i.unref(B).bgColor,borderRadius:`${i.unref(B).radiusSize}px`})},[i.unref(B).isHideTitle?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"mix-title",style:i.normalizeStyle(ue.value)},i.toDisplayString(g.conf.caption||g.conf.name),5)),i.createElementVNode("div",Pe,[i.createElementVNode("div",Ne,[i.createVNode(l,{modelValue:p.value,"onUpdate:modelValue":e[0]||(e[0]=s=>p.value=s),placeholder:"选择时间",size:"small",class:"time-select",onChange:pe},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(R.value,s=>(i.openBlock(),i.createBlock(t,{key:s,label:s,value:s},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i.createVNode(r,{size:"small",class:"export-btn",onClick:ge},{default:i.withCtx(()=>[i.createVNode(a,null,{default:i.withCtx(()=>[i.createVNode(i.unref(De.Download))]),_:1}),e[1]||(e[1]=i.createTextVNode(" 导出图 ",-1))]),_:1})]),i.createElementVNode("div",{id:i.unref(de),class:"chart-container"},null,8,we)]),i.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),Le=w._export_sfc(Re,[["__scopeId","data-v-311493b7"]]);exports.default=Le;