mixdashboards 1.1.13 → 1.1.14

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 (360) hide show
  1. package/dist/{AgGridTable-BjGMC3qC.js → AgGridTable-Cr7AVD7d.js} +1 -1
  2. package/dist/{AgGridTable-Bi7O66-r.cjs → AgGridTable-DU6yvOpb.cjs} +1 -1
  3. package/dist/{BaseComponent-9njJjeix.cjs → BaseComponent-CPat9pFl.cjs} +1 -1
  4. package/dist/{BaseComponent-B38Blgw3.js → BaseComponent-DMJmgFIo.js} +3 -3
  5. package/dist/{EChartComponentBase-BwbycwwW.cjs → EChartComponentBase-Cj_dO_ES.cjs} +1 -1
  6. package/dist/{EChartComponentBase-DJScukmS.js → EChartComponentBase-DrDdGF1C.js} +2 -2
  7. package/dist/{EmergencyPlanPanel-BxzP1xYW.cjs → EmergencyPlanPanel-B_zAk2e3.cjs} +1 -1
  8. package/dist/{EmergencyPlanPanel-D3GF-xQQ.js → EmergencyPlanPanel-TBKoqIa0.js} +1 -1
  9. package/dist/{HistoryPlanDialog-DQXCUsy4.cjs → HistoryPlanDialog-92_V1nQB.cjs} +1 -1
  10. package/dist/{HistoryPlanDialog-DpaiRZgi.js → HistoryPlanDialog-HKCYJnCh.js} +1 -1
  11. package/dist/{MixiotAppDetailPage-BGfF3qrm.js → MixiotAppDetailPage-BQZhhM3Q.js} +1 -1
  12. package/dist/{MixiotAppDetailPage-CL1Sd9HJ.cjs → MixiotAppDetailPage-wddBsvgj.cjs} +1 -1
  13. package/dist/{MonitoringMap-Wzsw3hVH.cjs → MonitoringMap-Dh9TWEoX.cjs} +1 -1
  14. package/dist/{MonitoringMap-DQkO116Z.js → MonitoringMap-wOD2eWiY.js} +2 -2
  15. package/dist/{UniverSheet-Bne7JZyr.cjs → UniverSheet-B76C9C3z.cjs} +1 -1
  16. package/dist/{UniverSheet-Cd2a9LPx.js → UniverSheet-BxGZmiAP.js} +2 -2
  17. package/dist/{accelerationChart-BJhVC_l5.cjs → accelerationChart-BHspqWCw.cjs} +1 -1
  18. package/dist/{accelerationChart-BUsbSkwA.js → accelerationChart-T-LB2UqH.js} +2 -2
  19. package/dist/{actionItem-DxB7IvtW.cjs → actionItem-CD6E8s6n.cjs} +1 -1
  20. package/dist/{actionItem-B3B4MFcW.js → actionItem-Ch9jL-8V.js} +2 -2
  21. package/dist/{alarmLevelChart-DC_hx4Pn.cjs → alarmLevelChart-Chh-SGw4.cjs} +1 -1
  22. package/dist/{alarmLevelChart-DC-q2AgI.js → alarmLevelChart-DuQtzr0i.js} +2 -2
  23. package/dist/{alertTable-CHfA0TR-.cjs → alertTable-CnZCtID1.cjs} +1 -1
  24. package/dist/{alertTable-CGRDnNPw.js → alertTable-DoE1UTWF.js} +2 -2
  25. package/dist/{aliasObjectSelectorDemo-DGoLPE4i.cjs → aliasObjectSelectorDemo-BKLLJY3E.cjs} +1 -1
  26. package/dist/{aliasObjectSelectorDemo-DuGQCEcG.js → aliasObjectSelectorDemo-CAKTzbqy.js} +1 -1
  27. package/dist/{annualRainfallChart-Dr8KKYOG.js → annualRainfallChart-C06ujiLk.js} +2 -2
  28. package/dist/{annualRainfallChart-CLxVqN5Z.cjs → annualRainfallChart-CjaFNTTM.cjs} +1 -1
  29. package/dist/{aqi-BmYGSf2e.cjs → aqi-B6CEx8sE.cjs} +1 -1
  30. package/dist/{aqi-rBhSWA_m.js → aqi-CZ2gjTXo.js} +2 -2
  31. package/dist/{aqiIndass-Cpqau5M0.cjs → aqiIndass-CUuczycJ.cjs} +1 -1
  32. package/dist/{aqiIndass-DqJBc799.js → aqiIndass-CV6JefRZ.js} +2 -2
  33. package/dist/{areaDeformCurve-B924KVWX.cjs → areaDeformCurve-C60FahWu.cjs} +1 -1
  34. package/dist/{areaDeformCurve-DpHWg6pf.js → areaDeformCurve-CyG8zh6J.js} +2 -2
  35. package/dist/{arrayCard-C7anoYI-.js → arrayCard-BSI7KqPn.js} +2 -2
  36. package/dist/{arrayCard-Bzjg3HKN.cjs → arrayCard-CLu8UfQy.cjs} +1 -1
  37. package/dist/{audio-DTiS2piX.js → audio-Q13sznt_.js} +2 -2
  38. package/dist/{audio-aADcgdZP.cjs → audio-zKQ44FKN.cjs} +1 -1
  39. package/dist/{bar-D32xICYZ.js → bar-BISEWCfM.js} +2 -2
  40. package/dist/{bar-DqY55XnC.cjs → bar-CNb34Izd.cjs} +1 -1
  41. package/dist/{basicShapeToolbox-D8q86CzB.js → basicShapeToolbox--WQ0UXKa.js} +2 -2
  42. package/dist/{basicShapeToolbox-BvJjH4fV.cjs → basicShapeToolbox-BkPIElK7.cjs} +1 -1
  43. package/dist/{bmp-DU3vm7yj.js → bmp-Ohs2XiTO.js} +2 -2
  44. package/dist/{bmp-DIFGLoNl.cjs → bmp-fBe7llKN.cjs} +1 -1
  45. package/dist/{box-C8pOZXek.cjs → box-BZGYB00G.cjs} +1 -1
  46. package/dist/{box-DTQKGR9g.js → box-UAgHgnGs.js} +2 -2
  47. package/dist/{chartConfigPanel-Bz82sVyH.js → chartConfigPanel-Bw8uepae.js} +1 -1
  48. package/dist/{chartConfigPanel-D4vk7zWs.cjs → chartConfigPanel-WLvSpg3a.cjs} +1 -1
  49. package/dist/{circleBar-B48h_-uK.cjs → circleBar-B1JVQluC.cjs} +1 -1
  50. package/dist/{circleBar-ClO05bgq.js → circleBar-BUtmqZym.js} +2 -2
  51. package/dist/{clock-DB94wQje.cjs → clock-BNJFjC85.cjs} +1 -1
  52. package/dist/{clock-D8ZXhy53.js → clock-DhNe_L29.js} +2 -2
  53. package/dist/{clt-cxeCTOaA.cjs → clt-DS09EYqd.cjs} +1 -1
  54. package/dist/{clt-BX0SNGZr.js → clt-DgElAJo_.js} +2 -2
  55. package/dist/{cmc-BvnYrQrR.cjs → cmc-YYd7u-QY.cjs} +1 -1
  56. package/dist/{cmc-Co13D559.js → cmc-uYTH_bql.js} +2 -2
  57. package/dist/{cmp-B4cYCR4p.js → cmp-DwNUtgiD.js} +2 -2
  58. package/dist/{cmp-Dd56EQ09.cjs → cmp-_LIlSPJ1.cjs} +1 -1
  59. package/dist/{conclusionCard-Bla25-qd.js → conclusionCard-2e7U38q9.js} +2 -2
  60. package/dist/{conclusionCard-Cd3DoD1l.cjs → conclusionCard-BJCT66AX.cjs} +1 -1
  61. package/dist/{controlList-CyT_LYgr.cjs → controlList-Cm7vrNpm.cjs} +1 -1
  62. package/dist/{controlList-Dx4wSpA7.js → controlList-J_DItB3R.js} +3 -3
  63. package/dist/{controlRecordList-DsxYHRrs.cjs → controlRecordList-DwH-MkK_.cjs} +1 -1
  64. package/dist/{controlRecordList-BAI_15ZN.js → controlRecordList-GGUGUMMv.js} +3 -3
  65. package/dist/{controlRecordListAPP-BQlABx3f.js → controlRecordListAPP-C4LPtUXx.js} +2 -2
  66. package/dist/{controlRecordListAPP-Zfiwcrmq.cjs → controlRecordListAPP-CWJlq6Q4.cjs} +1 -1
  67. package/dist/{crd-IsqkYOAy.js → crd-DqDMG-hx.js} +56 -57
  68. package/dist/crd-W0OZyu6Q.cjs +1 -0
  69. package/dist/{ctrBtn-C3OqkyNS.cjs → ctrBtn-CWT3PVMG.cjs} +1 -1
  70. package/dist/{ctrBtn-LwuY-nVR.js → ctrBtn-DSqCP9tA.js} +3 -3
  71. package/dist/{ctrSet-B0nYCdwh.cjs → ctrSet-BKppFnu1.cjs} +1 -1
  72. package/dist/{ctrSet-Qb5XEdD4.js → ctrSet-D-bAunly.js} +3 -3
  73. package/dist/{ctrSwitch-Bps4Ak15.cjs → ctrSwitch-BFJ-KrvY.cjs} +1 -1
  74. package/dist/{ctrSwitch-B3jo3Gx0.js → ctrSwitch-CvuXs2UU.js} +3 -3
  75. package/dist/{dataManagement-CVHalRKp.js → dataManagement-BorUl90l.js} +2 -2
  76. package/dist/{dataManagement-BFxVtU33.cjs → dataManagement-C13-RFUx.cjs} +1 -1
  77. package/dist/{dataReport-Bk79cBkV.cjs → dataReport-Bur1aIJL.cjs} +1 -1
  78. package/dist/{dataReport-B2AiDMdM.js → dataReport-F8EPUK0m.js} +2 -2
  79. package/dist/{dataTable-Dh7s14jM.cjs → dataTable-B1uLxNVm.cjs} +1 -1
  80. package/dist/{dataTable-D9sSJRQn.js → dataTable-Digc4UYG.js} +1 -1
  81. package/dist/{datetime-CEKzNAlD.js → datetime-B2HzR4oW.js} +2 -2
  82. package/dist/{datetime-C25d1bAc.cjs → datetime-JquezhC4.cjs} +1 -1
  83. package/dist/{deepClusterSlipSurface-DODVh-Qw.js → deepClusterSlipSurface-C5KWD61Q.js} +2 -2
  84. package/dist/{deepClusterSlipSurface-BLZL2xX6.cjs → deepClusterSlipSurface-LiAhIFTL.cjs} +1 -1
  85. package/dist/{deepDataMatrix-D_NPV2sQ.cjs → deepDataMatrix-Cf_RcM6k.cjs} +1 -1
  86. package/dist/{deepDataMatrix-9iClruS0.js → deepDataMatrix-CrVKo32h.js} +2 -2
  87. package/dist/{deepDisplacement3D-C6puNK1m.cjs → deepDisplacement3D-CFGsM61z.cjs} +1 -1
  88. package/dist/{deepDisplacement3D-C5YMqHiD.js → deepDisplacement3D-CqpBMdR9.js} +2 -2
  89. package/dist/{deepDisplacementChart-DEn2yqGO.js → deepDisplacementChart-BltwfhE1.js} +3 -3
  90. package/dist/{deepDisplacementChart-DhQO428W.cjs → deepDisplacementChart-Df3FUPCh.cjs} +1 -1
  91. package/dist/{deepDisplacementChart-D-dqPlzq.cjs → deepDisplacementChart-DkjQ4fkv.cjs} +1 -1
  92. package/dist/{deepDisplacementChart-9sQF6tFO.js → deepDisplacementChart-qEVHkptV.js} +2 -2
  93. package/dist/{deepDisplacementView-tzX-vzxO.cjs → deepDisplacementView-CiqJXRCI.cjs} +1 -1
  94. package/dist/{deepDisplacementView-Cux6lFtG.js → deepDisplacementView-a9DN060j.js} +1 -1
  95. package/dist/{deepNodeTemperatureChart-Cyfnw2BR.cjs → deepNodeTemperatureChart-BtcEmexL.cjs} +1 -1
  96. package/dist/{deepNodeTemperatureChart--GH8-4O7.js → deepNodeTemperatureChart-t6-mnDzl.js} +2 -2
  97. package/dist/{deepTangentAngleChart-Dae_3j30.js → deepTangentAngleChart-ZzdLeEzC.js} +2 -2
  98. package/dist/{deepTangentAngleChart-DPMDFXiA.cjs → deepTangentAngleChart-gewuzLOU.cjs} +1 -1
  99. package/dist/{deepTemperatureField-B3Eu4zqv.cjs → deepTemperatureField-BxIxt-TJ.cjs} +1 -1
  100. package/dist/{deepTemperatureField-Cr2e_Ytp.js → deepTemperatureField-yLmp7ory.js} +3 -3
  101. package/dist/{deepTrendChart-8fniZ16K.js → deepTrendChart-BiPoTZsv.js} +2 -2
  102. package/dist/{deepTrendChart-BPYqojQ2.cjs → deepTrendChart-Crqx6O9C.cjs} +1 -1
  103. package/dist/{deviceOnlineStatus-mJ0KVMo4.cjs → deviceOnlineStatus-DiK6L6te.cjs} +1 -1
  104. package/dist/{deviceOnlineStatus-DP7-u5lC.js → deviceOnlineStatus-vMr4Ttoe.js} +2 -2
  105. package/dist/{deviceStatus-B0AxN-cY.cjs → deviceStatus-BWr8xMGE.cjs} +1 -1
  106. package/dist/{deviceStatus-Ih0jQNYO.js → deviceStatus-DQ1mH-tr.js} +2 -2
  107. package/dist/{displacementDataTable-BbZjdMtX.js → displacementDataTable-C1YNWIwQ.js} +2 -2
  108. package/dist/{displacementDataTable-Dkka_jGJ.cjs → displacementDataTable-CX9Hk2mo.cjs} +1 -1
  109. package/dist/{displacementTrajectoryChart-DDwm-jr2.cjs → displacementTrajectoryChart-Bxiam7z3.cjs} +1 -1
  110. package/dist/{displacementTrajectoryChart-BZDSkYoZ.js → displacementTrajectoryChart-DSPVm9mn.js} +2 -2
  111. package/dist/{displacementTrendChart-CUeVa58Q.cjs → displacementTrendChart-4z9j3til.cjs} +1 -1
  112. package/dist/{displacementTrendChart-DZZaVi86.js → displacementTrendChart-DM18rfxN.js} +2 -2
  113. package/dist/{dxf-BOfmTSO8.cjs → dxf-BIvGNyQr.cjs} +1 -1
  114. package/dist/{dxf-DYC74yWV.js → dxf-CZdTRr3-.js} +2 -2
  115. package/dist/{dzc-DUFiz7a_.cjs → dzc-BrR_-vKI.cjs} +1 -1
  116. package/dist/{dzc-BU7yYW4I.js → dzc-b6JbaxSz.js} +2 -2
  117. package/dist/{emergencyPlan-DDb6j7YU.cjs → emergencyPlan-CIHoGe6V.cjs} +1 -1
  118. package/dist/{emergencyPlan-DabL46QK.js → emergencyPlan-Gi2_uHgX.js} +3 -3
  119. package/dist/{evn-DhdColcF.js → evn-B0lZlMO4.js} +2 -2
  120. package/dist/{evn-DrreVqnm.cjs → evn-_5PRwXFL.cjs} +1 -1
  121. package/dist/{evolutionChart-aedDj0mQ.js → evolutionChart-Cg14O4jy.js} +3 -3
  122. package/dist/{evolutionChart-QuGAgjXo.cjs → evolutionChart-xsho6XVP.cjs} +1 -1
  123. package/dist/{fileViewer-oBpWIjGb.js → fileViewer-Cyrv561L.js} +2 -2
  124. package/dist/{fileViewer-CvNnUxUK.cjs → fileViewer-z1v9eLyT.cjs} +1 -1
  125. package/dist/{filterBar-CwHODFoy.cjs → filterBar-BUNhPZd2.cjs} +1 -1
  126. package/dist/{filterBar-DYpEssxC.js → filterBar-DB4bnLZ0.js} +2 -2
  127. package/dist/{fireCombustionCurve-lu2qH6_b.cjs → fireCombustionCurve-Dej-lndv.cjs} +1 -1
  128. package/dist/{fireCombustionCurve-wbKsWk4E.js → fireCombustionCurve-S5aOdnbU.js} +3 -3
  129. package/dist/{fireFilterBar-9_fqGo2q.js → fireFilterBar-CtBV9WL_.js} +2 -2
  130. package/dist/{fireFilterBar-B8su74tt.cjs → fireFilterBar-cB6h_XQy.cjs} +1 -1
  131. package/dist/{fireHistoryTable-pOJz1_Rp.cjs → fireHistoryTable-DOCuy-HR.cjs} +1 -1
  132. package/dist/{fireHistoryTable-C1C95uYN.js → fireHistoryTable-DZZOy0kR.js} +2 -2
  133. package/dist/{gag-BGUeQKJJ.js → gag-B9dx9otC.js} +2 -2
  134. package/dist/{gag-LSkHPD7f.cjs → gag-DkKmJPZ1.cjs} +1 -1
  135. package/dist/{gasStationList-DJTrXjkv.cjs → gasStationList-DisLh5Uj.cjs} +1 -1
  136. package/dist/{gasStationList-4TtBLsqC.js → gasStationList-X2Asa789.js} +2 -2
  137. package/dist/{geo3dViewer-CK89hYK7.cjs → geo3dViewer-CBt6ecb8.cjs} +1 -1
  138. package/dist/{geo3dViewer-DIjv75YP.js → geo3dViewer-CiKzVKzd.js} +3 -3
  139. package/dist/{glbModel-IOIVpCjq.js → glbModel-BnnNfJu8.js} +2 -2
  140. package/dist/{glbModel-BDgY9S4f.cjs → glbModel-vxOxcBfY.cjs} +1 -1
  141. package/dist/{globalObjectSelector-B2dkzNyk.js → globalObjectSelector-BuY_B24m.js} +1 -1
  142. package/dist/{globalObjectSelector-N7s0yyOp.cjs → globalObjectSelector-CGjUMfxb.cjs} +1 -1
  143. package/dist/{gnssFilterBar-BF_tbN4_.js → gnssFilterBar-BAjtjr4i.js} +2 -2
  144. package/dist/{gnssFilterBar-8eSkGWMH.cjs → gnssFilterBar-BFA38iLP.cjs} +1 -1
  145. package/dist/{gnssHistoryTable-DUjRjXoS.js → gnssHistoryTable-Djvc6Jdb.js} +2 -2
  146. package/dist/{gnssHistoryTable-X_cgOa6r.cjs → gnssHistoryTable-WkPj3f6N.cjs} +1 -1
  147. package/dist/{gnssMapView-DnF2bYAD.cjs → gnssMapView-BH3RBHEQ.cjs} +2 -2
  148. package/dist/{gnssMapView-BnwPDey9.js → gnssMapView-DeJLZEJb.js} +4 -4
  149. package/dist/{gnssSectionProfile-D0sbRu3A.js → gnssSectionProfile-CU_czVAF.js} +2 -2
  150. package/dist/{gnssSectionProfile-DoEXHKTy.cjs → gnssSectionProfile-xaVKtgrn.cjs} +1 -1
  151. package/dist/{gnssTimeSeriesChart-glTixABx.js → gnssTimeSeriesChart-BvSyllnp.js} +2 -2
  152. package/dist/{gnssTimeSeriesChart-Csm6PwRv.cjs → gnssTimeSeriesChart-hpXlRHme.cjs} +1 -1
  153. package/dist/{gnssXYTrajectory-4c8JDd_b.cjs → gnssXYTrajectory-CIC6gn9B.cjs} +1 -1
  154. package/dist/{gnssXYTrajectory-BMCO0sb0.js → gnssXYTrajectory-Dmdq-PnT.js} +2 -2
  155. package/dist/{grd-BTGTCp0z.js → grd-B3_37W5r.js} +2 -2
  156. package/dist/{grd-D1enzYOI.cjs → grd-BNh82cJv.cjs} +1 -1
  157. package/dist/{grdIndass-Dn62HL6y.js → grdIndass-C2_cKlqo.js} +2 -2
  158. package/dist/{grdIndass-B6fwa_k8.cjs → grdIndass-UL5YpOVN.cjs} +1 -1
  159. package/dist/{grg-B5128EcW.cjs → grg-RBfTeprb.cjs} +1 -1
  160. package/dist/{grg-DMOF8h8j.js → grg-l-LZiFIi.js} +2 -2
  161. package/dist/{gridview-Ddin99YO.cjs → gridview-DQ3UYvRc.cjs} +1 -1
  162. package/dist/{gridview-Dewc5Eax.js → gridview-DdVcRQDa.js} +2 -2
  163. package/dist/{groundwaterFilterBar-2uj_Hf_Q.cjs → groundwaterFilterBar-CNt_-xoQ.cjs} +1 -1
  164. package/dist/{groundwaterFilterBar-mukvYHDm.js → groundwaterFilterBar-DBMk3gox.js} +2 -2
  165. package/dist/{groundwaterProfileChart-BPTP8WBi.js → groundwaterProfileChart-CJeACUDa.js} +3 -3
  166. package/dist/{groundwaterProfileChart-DDVsfzyr.cjs → groundwaterProfileChart-DPgBwHGo.cjs} +2 -2
  167. package/dist/{groundwaterTimeCurve-Zzn-sEsW.cjs → groundwaterTimeCurve-BJ2-dRCa.cjs} +1 -1
  168. package/dist/{groundwaterTimeCurve-jtQFr0hU.js → groundwaterTimeCurve-DPQlZknH.js} +3 -3
  169. package/dist/{groupCard-B3fp05QD.js → groupCard-CaoCu7P5.js} +2 -2
  170. package/dist/{groupCard-DWjFdiH0.cjs → groupCard-yyzjr8U4.cjs} +1 -1
  171. package/dist/{headerBar-B6lX3WST.cjs → headerBar-B_XVnPEY.cjs} +1 -1
  172. package/dist/{headerBar-BkpSQMNy.js → headerBar-UZR69ix4.js} +2 -2
  173. package/dist/{history-DqPjJP_E.cjs → history-DHsGJFOf.cjs} +1 -1
  174. package/dist/{history-DgSlSTUD.js → history-DptcYt8k.js} +1 -1
  175. package/dist/{index-Bo49zvKb.cjs → index-D9ehIVda.cjs} +8 -8
  176. package/dist/{index-BbXEpgom.js → index-nru6zK5E.js} +1560 -1549
  177. package/dist/{insarDeformChart-8UyVWXTx.cjs → insarDeformChart-D5y2pi6R.cjs} +1 -1
  178. package/dist/{insarDeformChart-DNBHbVuk.js → insarDeformChart-DYrt3aNq.js} +2 -2
  179. package/dist/{insarImageViewer-B8PhDcuG.cjs → insarImageViewer-BGP-ktoS.cjs} +1 -1
  180. package/dist/{insarImageViewer-BeykgIJy.js → insarImageViewer-DuXOrFV0.js} +2 -2
  181. package/dist/{kds-CS473Sia.js → kds-DQW17H8R.js} +2 -2
  182. package/dist/{kds-BJwYrjV_.cjs → kds-Dp4hx0W6.cjs} +1 -1
  183. package/dist/{kpiCard-OMuCQe7O.cjs → kpiCard-0aUt2U5z.cjs} +1 -1
  184. package/dist/{kpiCard-CNgj9P9s.js → kpiCard-DyO-3YLf.js} +2 -2
  185. package/dist/{landslideMap-NaGM5jJE.cjs → landslideMap-2yF_d4_7.cjs} +1 -1
  186. package/dist/{landslideMap-DMNcfDYF.js → landslideMap-D5U5hSkY.js} +3 -3
  187. package/dist/{landslideWarning-V1wB3aWq.cjs → landslideWarning-C2BZY-at.cjs} +1 -1
  188. package/dist/{landslideWarning-DU-dDiiS.js → landslideWarning-bIAgVIIX.js} +5 -5
  189. package/dist/{layerTabs-Bgi7pfof.js → layerTabs-C26xKIu6.js} +2 -2
  190. package/dist/{layerTabs-VfYlv6Ks.cjs → layerTabs-iEkQSuRJ.cjs} +1 -1
  191. package/dist/{leaflet-src-WG2ob5HA.cjs → leaflet-src-DGU8KhZD.cjs} +1 -1
  192. package/dist/{leaflet-src-4AJHN6it.js → leaflet-src-xderqfOz.js} +1 -1
  193. package/dist/{lerc-BDiJ3I_S.js → lerc-CCL-0sUH.js} +2 -2
  194. package/dist/{lerc-CEea2nO1.cjs → lerc-nnW6QG9P.cjs} +1 -1
  195. package/dist/{lin-B_rN6QBj.cjs → lin-psrIdmWq.cjs} +1 -1
  196. package/dist/{lin-BO1pGlXr.js → lin-qPc-DZV1.js} +2 -2
  197. package/dist/{linIndass-B7XnW5XO.cjs → linIndass-C3h0p0ok.cjs} +1 -1
  198. package/dist/{linIndass-BGpoCQ4j.js → linIndass-DHJqj7k0.js} +2 -2
  199. package/dist/{lst-BBl9nn63.js → lst-CI_bABXS.js} +2 -2
  200. package/dist/{lst-BeB_Gi9l.cjs → lst-D3Qmo7He.cjs} +1 -1
  201. package/dist/{manualEntry-C3qifAlP.js → manualEntry-C3A9qrDX.js} +2 -2
  202. package/dist/{manualEntry-BQVUqtm7.cjs → manualEntry-D7SZvGOp.cjs} +1 -1
  203. package/dist/{mapBackground-CDS60ZJC.js → mapBackground-BugTUIga.js} +3 -3
  204. package/dist/{mapBackground-D3-V7S-d.cjs → mapBackground-CYvUGNV6.cjs} +1 -1
  205. package/dist/{mappingList-B0jG2LlO.js → mappingList-70-e0OmS.js} +3 -3
  206. package/dist/{mappingList-DnoAuivo.cjs → mappingList-BJ-loWWS.cjs} +1 -1
  207. package/dist/{markdownViewer-BlXaqjhL.js → markdownViewer-BxSVHMco.js} +2 -2
  208. package/dist/{markdownViewer-BMkbW1Cl.cjs → markdownViewer-D_j1zaJM.cjs} +1 -1
  209. package/dist/materialFileUrl-DkrGz5LQ.cjs +1 -0
  210. package/dist/{materialFileUrl-hKqW_JAq.js → materialFileUrl-SyvwFB5E.js} +5 -4
  211. package/dist/{mix-control-modal-aUWGjwZP.cjs → mix-control-modal-CS-lOybT.cjs} +1 -1
  212. package/dist/{mix-control-modal-BEXucxt5.js → mix-control-modal-DvWbmJn_.js} +1 -1
  213. package/dist/{mixGrid-B5pKpGT3.cjs → mixGrid-BmZ5Qqa9.cjs} +1 -1
  214. package/dist/{mixGrid-DQf7U1_8.js → mixGrid-XI6dlQNw.js} +2 -2
  215. package/dist/mixdashboards.cjs +1 -1
  216. package/dist/mixdashboards.css +1 -1
  217. package/dist/mixdashboards.js +1 -1
  218. package/dist/{mjpegCamera-C6pxWuEr.js → mjpegCamera-BXrFeGm3.js} +2 -2
  219. package/dist/{mjpegCamera-CJgiIk0q.cjs → mjpegCamera-D2-Uc2EO.cjs} +1 -1
  220. package/dist/{monitorAlert-BPd1b_Cx.cjs → monitorAlert-CnP_gjvI.cjs} +1 -1
  221. package/dist/{monitorAlert-ZNF5siqY.js → monitorAlert-TjkxV9nx.js} +2 -2
  222. package/dist/{monitorData-slk6ogNe.cjs → monitorData-BpyzcuzE.cjs} +1 -1
  223. package/dist/{monitorData-DIxZYNVr.js → monitorData-CkD6tz8x.js} +2 -2
  224. package/dist/{monitorSpeedChart-BRwbLD8B.cjs → monitorSpeedChart-BE9wJ8LA.cjs} +1 -1
  225. package/dist/{monitorSpeedChart-DCO39Aka.js → monitorSpeedChart-LMAvdp1a.js} +1 -1
  226. package/dist/{mxa-DFq19ply.js → mxa-BGm4E2oj.js} +2 -2
  227. package/dist/{mxa-Bp4RH0w3.cjs → mxa-CzskPPvU.cjs} +1 -1
  228. package/dist/{myValue-g8shJQA9.cjs → myValue-BeTEf6SX.cjs} +1 -1
  229. package/dist/{myValue-BvItzUMv.js → myValue-BnlcjDSq.js} +2 -2
  230. package/dist/{myValueList-A_UGyNxN.js → myValueList-B5swLYff.js} +2 -2
  231. package/dist/{myValueList-DnZBoJXp.cjs → myValueList-zVkTLQrP.cjs} +1 -1
  232. package/dist/{objectList-DgVJlA1o.js → objectList-BHKtuK_E.js} +225 -213
  233. package/dist/objectList-CVz7jUhV.cjs +1 -0
  234. package/dist/{objectListAPP-CdewSo8l.js → objectListAPP-0Iuanvz-.js} +3 -3
  235. package/dist/{objectListAPP-DxRImk8W.cjs → objectListAPP-BAXwRH73.cjs} +1 -1
  236. package/dist/{percentBar-Cq5ACj9c.cjs → percentBar-Dy_RZ-16.cjs} +1 -1
  237. package/dist/{percentBar-BvmYW_u6.js → percentBar-UaUBa8pT.js} +2 -2
  238. package/dist/{photo-t11P9WKh.js → photo-BN8MzHVR.js} +3 -3
  239. package/dist/{photo-B-kxNdb5.cjs → photo-C7eoToJB.cjs} +1 -1
  240. package/dist/{pie-yTahcSl_.js → pie-C0gZTNM3.js} +2 -2
  241. package/dist/{pie-0s6FwVBt.cjs → pie-CPyctjgS.cjs} +1 -1
  242. package/dist/{placeholder-DBmyvwFn.cjs → placeholder-BHJQm9H3.cjs} +1 -1
  243. package/dist/{placeholder-D_CaQ-hg.js → placeholder-tSU5fQxu.js} +1 -1
  244. package/dist/{pressBtn-CP4kJr-P.js → pressBtn-D4vNvwB7.js} +3 -3
  245. package/dist/{pressBtn-JFezb7Yx.cjs → pressBtn-DmprQWtp.cjs} +1 -1
  246. package/dist/{processTable-BXswsnmt.js → processTable-BfbVj9Rv.js} +2 -2
  247. package/dist/{processTable-DRdI9ExW.cjs → processTable-CItb59hD.cjs} +1 -1
  248. package/dist/{progressBar-Sn6tAxTY.cjs → progressBar-BNArO298.cjs} +1 -1
  249. package/dist/{progressBar-D1Xh5APg.js → progressBar-CeWq1Q8-.js} +2 -2
  250. package/dist/{progressCircle-BMpJVwIE.js → progressCircle-BshtPibr.js} +2 -2
  251. package/dist/{progressCircle-DLk9v_Os.cjs → progressCircle-CFPbq8WS.cjs} +1 -1
  252. package/dist/{qrcode-BDtn3Ql7.cjs → qrcode-DVtk1b5F.cjs} +1 -1
  253. package/dist/{qrcode-BqlqV7Jf.js → qrcode-UsFuP8-Y.js} +2 -2
  254. package/dist/{raceBar-BpvWNCV7.cjs → raceBar-BYLfgaFz.cjs} +1 -1
  255. package/dist/{raceBar-zSL-J18j.js → raceBar-COvS_R8D.js} +2 -2
  256. package/dist/{rad-DSfVfaMa.cjs → rad-CkB-n_ms.cjs} +1 -1
  257. package/dist/{rad-CZhY-L-z.js → rad-D33c2RGY.js} +2 -2
  258. package/dist/{radarMapViewer-B4tTLLyl.js → radarMapViewer-BODSZl1u.js} +2 -2
  259. package/dist/{radarMapViewer-GmzS18dJ.cjs → radarMapViewer-DlFWHDQy.cjs} +1 -1
  260. package/dist/{rainfallFilterBar-ijVmoglb.js → rainfallFilterBar-BFMnGW2A.js} +2 -2
  261. package/dist/{rainfallFilterBar-DHaVjXt5.cjs → rainfallFilterBar-DquisAn6.cjs} +1 -1
  262. package/dist/{rainfallTimeCurve-B3_bl5L6.js → rainfallTimeCurve-C7AGPuwX.js} +3 -3
  263. package/dist/{rainfallTimeCurve-Crz3Adzh.cjs → rainfallTimeCurve-DXFH_dGt.cjs} +1 -1
  264. package/dist/{rangeLin-BOEsEaV1.js → rangeLin-Cda_LTSF.js} +2 -2
  265. package/dist/{rangeLin-DpEbvxsg.cjs → rangeLin-s-_gmKS0.cjs} +1 -1
  266. package/dist/{realtimeEvolutionMap-C2u4a2JL.js → realtimeEvolutionMap-BZGG9sn0.js} +2 -2
  267. package/dist/{realtimeEvolutionMap-BwQJkus6.cjs → realtimeEvolutionMap-DZAGkUNu.cjs} +1 -1
  268. package/dist/{regionBar-BQr-kq-M.js → regionBar-BJL96Emk.js} +2 -2
  269. package/dist/{regionBar-P1fqv7Vb.cjs → regionBar-LMJvgf0X.cjs} +1 -1
  270. package/dist/{request-Bn2gQLgM.js → request-DegJhVlL.js} +1 -1
  271. package/dist/{request-D9N74QdZ.cjs → request-DkP7M6Af.cjs} +1 -1
  272. package/dist/{retainer1-BCh8WSOq.cjs → retainer1-B0ZegRdn.cjs} +1 -1
  273. package/dist/{retainer1-Fnw0-Jvy.js → retainer1-CkOgZNh9.js} +3 -3
  274. package/dist/{retainer2-_3NOOefF.cjs → retainer2-D28sge-m.cjs} +1 -1
  275. package/dist/{retainer2-nPyFv6Hs.js → retainer2-npgiiskx.js} +3 -3
  276. package/dist/{retainerRecordList-BaOTTQQN.cjs → retainerRecordList-B8nyu28l.cjs} +1 -1
  277. package/dist/{retainerRecordList-C_UsUKsQ.js → retainerRecordList-hv5QyWME.js} +3 -3
  278. package/dist/{retainerRecordListAPP-BgKyfAMh.js → retainerRecordListAPP-DkXvtq9K.js} +3 -3
  279. package/dist/{retainerRecordListAPP-CE3l6WrB.cjs → retainerRecordListAPP-WALqHGbm.cjs} +1 -1
  280. package/dist/{ringTopN-Dz0EoM-A.js → ringTopN-Becl3FRO.js} +2 -2
  281. package/dist/{ringTopN-DEv30Ms2.cjs → ringTopN-BknMVZLZ.cjs} +1 -1
  282. package/dist/{riskRegionTable-Dot8zD_6.js → riskRegionTable-Cd_0Rd-M.js} +2 -2
  283. package/dist/{riskRegionTable-BODT2UTF.cjs → riskRegionTable-CyJIOy57.cjs} +1 -1
  284. package/dist/{sankey-CbEUEE5B.js → sankey-DcdzfDDI.js} +2 -2
  285. package/dist/{sankey-CYTyQB-L.cjs → sankey-wr0x7tfw.cjs} +1 -1
  286. package/dist/scd-B7RWxgVJ.cjs +1 -0
  287. package/dist/{scd-Btsiastw.js → scd-vg1A8R5X.js} +344 -348
  288. package/dist/{sideMenu-dnpq3qTF.cjs → sideMenu-BQmUk_pp.cjs} +1 -1
  289. package/dist/{sideMenu-BxJRAAdM.js → sideMenu-r-paLSMO.js} +2 -2
  290. package/dist/{slopeStability-DX7WP5ZW.cjs → slopeStability-C9dfB2fF.cjs} +1 -1
  291. package/dist/{slopeStability-DrooNf1g.js → slopeStability-CCGImuom.js} +2 -2
  292. package/dist/{speedCurve-BT8wnfZI.cjs → speedCurve-BVeqdClI.cjs} +1 -1
  293. package/dist/{speedCurve-CNUJ5ScK.js → speedCurve-Dwf-w3GL.js} +2 -2
  294. package/dist/{stackedBar-X8Y4lVgT.cjs → stackedBar-C0M7bOpV.cjs} +1 -1
  295. package/dist/{stackedBar-nIfO6Aa3.js → stackedBar-lXH6oJX4.js} +2 -2
  296. package/dist/{stationList-D7lGCblu.js → stationList-34Qu34hq.js} +2 -2
  297. package/dist/{stationList-DVzvGGHI.cjs → stationList-DB-Hn4KT.cjs} +1 -1
  298. package/dist/{stressFilterBar-D5xktTRI.cjs → stressFilterBar-BfmLl6RK.cjs} +1 -1
  299. package/dist/{stressFilterBar-DqeqFHm7.js → stressFilterBar-e1E4tOup.js} +2 -2
  300. package/dist/{stressTimeCurve-DfjNQ0rU.js → stressTimeCurve-BUo51IkU.js} +3 -3
  301. package/dist/{stressTimeCurve-Bhhb-eqB.cjs → stressTimeCurve-D_lNCKx9.cjs} +1 -1
  302. package/dist/{swiper-DuNuvT_N.js → swiper-43PBhQqD.js} +2 -2
  303. package/dist/{swiper-XCpwFkWS.cjs → swiper-CrFwcs3m.cjs} +1 -1
  304. package/dist/{tablemanCreate-Cp5DaYUd.cjs → tablemanCreate-1S_EcSDm.cjs} +1 -1
  305. package/dist/{tablemanCreate-Cp9nOGg2.js → tablemanCreate-CpbZDLF6.js} +3 -3
  306. package/dist/{tablemanDetail-3ZMWkdpz.cjs → tablemanDetail-DlTYZCx5.cjs} +1 -1
  307. package/dist/{tablemanDetail-DvZdgdHD.js → tablemanDetail-DyCQ7DyB.js} +4 -4
  308. package/dist/{tablemanList-OLxgUmAi.cjs → tablemanList-BbjUecnu.cjs} +1 -1
  309. package/dist/{tablemanList-DZdb1FUR.js → tablemanList-C6Gtfx1o.js} +4 -4
  310. package/dist/{tablemanTableList-BN6QjYEV.cjs → tablemanTableList-DR_KxUuu.cjs} +1 -1
  311. package/dist/{tablemanTableList-CqsnRIHS.js → tablemanTableList-Dj71HRDW.js} +3 -3
  312. package/dist/{tablemanUpdate-CHs5OgAG.js → tablemanUpdate-BtnIRkBn.js} +3 -3
  313. package/dist/{tablemanUpdate-E3d7A3WM.cjs → tablemanUpdate-CA7JRGBh.cjs} +1 -1
  314. package/dist/{terminalConfigList-BlgcWy40.cjs → terminalConfigList-BDaYrefd.cjs} +1 -1
  315. package/dist/{terminalConfigList-BEBNi1Nl.js → terminalConfigList-Brd1oIU1.js} +3 -3
  316. package/dist/{terminalList-CJpH2Z-r.js → terminalList-B5R-5IYH.js} +3 -3
  317. package/dist/{terminalList-Bl5BPmF9.cjs → terminalList-DyYTp_7j.cjs} +1 -1
  318. package/dist/{terminalListAPP-BpONJQOA.js → terminalListAPP-Cz9-XSy9.js} +3 -3
  319. package/dist/{terminalListAPP-Dgvz8I3j.cjs → terminalListAPP-DQyeShOh.cjs} +1 -1
  320. package/dist/{textbox-CJnSDwg7.js → textbox-AofzoSoM.js} +2 -2
  321. package/dist/{textbox-DR0bQEX7.cjs → textbox-DQg0UmXD.cjs} +1 -1
  322. package/dist/{timeQueryBar-FJDQv-gp.js → timeQueryBar-B62qxOHn.js} +1 -1
  323. package/dist/{timeQueryBar-Cmyan_30.cjs → timeQueryBar-BPKD7Elj.cjs} +1 -1
  324. package/dist/{timeSeries-_RLSUPmg.cjs → timeSeries-Bp_iMD22.cjs} +1 -1
  325. package/dist/{timeSeries-t4uZvXRF.js → timeSeries-Vl1W6ELZ.js} +3 -3
  326. package/dist/{timeSeriesCurve-BxWiI6w-.js → timeSeriesCurve-D8iElxyO.js} +3 -3
  327. package/dist/{timeSeriesCurve-BUuLFQ8A.cjs → timeSeriesCurve-DNYyUKj1.cjs} +1 -1
  328. package/dist/{toggleBtn-Cx44qVci.js → toggleBtn-CizAxinC.js} +2 -2
  329. package/dist/{toggleBtn-BcpJcxpU.cjs → toggleBtn-DOXzintk.cjs} +1 -1
  330. package/dist/{trajectoryConfigPanel-dyo30nx9.js → trajectoryConfigPanel-BYMdJKNX.js} +1 -1
  331. package/dist/{trajectoryConfigPanel-BTUv5OVS.cjs → trajectoryConfigPanel-Bw_l7pKo.cjs} +1 -1
  332. package/dist/{trajectoryScatter-CK4_Z1iU.cjs → trajectoryScatter-DP56FRFE.cjs} +1 -1
  333. package/dist/{trajectoryScatter-BghFGqxH.js → trajectoryScatter-DPbgYMS8.js} +2 -2
  334. package/dist/{universalConfigPanel-yJFrQDBa.js → universalConfigPanel-B3BIF8L5.js} +1 -1
  335. package/dist/{universalConfigPanel-Cvlpgn-j.cjs → universalConfigPanel-DV9h6sMj.cjs} +1 -1
  336. package/dist/{universalTable-CvBC-L9Z.js → universalTable-CQ3B2I-G.js} +2 -2
  337. package/dist/{universalTable-CRJ7Rx0P.cjs → universalTable-Jxfp2RkG.cjs} +1 -1
  338. package/dist/{useTablemanApi-BAt370b-.js → useTablemanApi-Bh5_NFWe.js} +1 -1
  339. package/dist/{useTablemanApi-fqoMpRxe.cjs → useTablemanApi-Df1q1aWI.cjs} +1 -1
  340. package/dist/{useTablemanFormPanel-Cxo0WsI1.cjs → useTablemanFormPanel-Byr9usXu.cjs} +1 -1
  341. package/dist/{useTablemanFormPanel-BKbM39_H.js → useTablemanFormPanel-DRv-m4UQ.js} +2 -2
  342. package/dist/{useTablemanListActions-DRXW-WTa.cjs → useTablemanListActions-DWDKR-3Y.cjs} +1 -1
  343. package/dist/{useTablemanListActions-CYauYy6z.js → useTablemanListActions-DX-_BfWk.js} +3 -3
  344. package/dist/{video-C1N8Ikkh.js → video-C6XgnAxj.js} +2 -2
  345. package/dist/{video-BN19nKK_.cjs → video-D_eGQjE9.cjs} +1 -1
  346. package/dist/{videoMonitor-fkEuZ25x.js → videoMonitor-Cez3ENoV.js} +2 -2
  347. package/dist/{videoMonitor-PKypdwRl.cjs → videoMonitor-_F66e2Ol.cjs} +1 -1
  348. package/dist/{vlu-B8tqM9md.js → vlu-8CrS8YvY.js} +2 -2
  349. package/dist/{vlu-DrABl6SW.cjs → vlu-Cz0gMSym.cjs} +1 -1
  350. package/dist/{warningOverview-_rp_SbLs.js → warningOverview-DfDN7kF-.js} +3 -3
  351. package/dist/{warningOverview-DaTHPveq.cjs → warningOverview-YWMdtsgL.cjs} +1 -1
  352. package/dist/{weather-qvsptrt0.js → weather-BDi6MTCV.js} +2 -2
  353. package/dist/{weather-B_XCWwDa.cjs → weather-p1VDVqeB.cjs} +1 -1
  354. package/dist/{windLin-BDtJUYBu.js → windLin-BpS0UWbr.js} +2 -2
  355. package/dist/{windLin-P84T5W3o.cjs → windLin-CCfJT1_-.cjs} +1 -1
  356. package/package.json +1 -1
  357. package/dist/crd-C6iegy7d.cjs +0 -1
  358. package/dist/materialFileUrl-8YHw7z1T.cjs +0 -1
  359. package/dist/objectList-BcSCvy54.cjs +0 -1
  360. package/dist/scd-DwdWl6Wz.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";var se=Object.defineProperty,ae=Object.defineProperties;var oe=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)=>ae(v,oe(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-Bo49zvKb.cjs");require("element-plus");const ue=require("./EChartComponentBase-BwbycwwW.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,PLATFORM:["pc","screen"]},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 o=(e==null?void 0:e.depth)!==void 0?`${e.depth}m`:`${l+1}`;return`${s}-${o}`},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",a=t instanceof Map?t.get(f)||[]:[];g===0&&(u=a);const r=a.map(x=>x.angle),m=a[a.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 o=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+o,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(a=>{var r;return`${a.seriesName}: ${(r=a.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(" "),[,a,r]=f.split("-"),[m,h]=d.split(":");return`${a}-${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)})},F=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",F),e.on("legendselectchanged",F))});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()},j=()=>{var s,u,o;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=((o=e==null?void 0:e.customChannel)==null?void 0:o.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,o)=>{var d,a;const p=u.fv,i=V(u,o,l),g=Number(e==null?void 0:e[p]);if(!Number.isFinite(g))return;const f=String((a=(d=e==null?void 0:e.time)!=null?d:e==null?void 0:e.datetime)!=null?a: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=j();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 a=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(a)&&a.length){S.value=String(a[a.length-1]),b();return}if(a!=null&&a.endDate||a!=null&&a.end){S.value=String(a.endDate||a.end),b();return}return}const s=c.conf,u=(s==null?void 0:s.data)||[],o=(s==null?void 0:s.common)||{};if(u.length>0&&!(o!=null&&o.multiObject)){const a=E.getObjectId(o,o==null?void 0:o.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(a&&r&&String(a)!==String(r))return}const p=le(t);if(!p.size)return;const i=new Map(k.value);p.forEach((a,r)=>{const m=i.get(r)||[];i.set(r,[...m.slice(-199),...a])}),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 o=e;["statistics","calculate"].includes(u)&&(o=E.formatStatisticsResult(o,t));let p=!1;if((i=o==null?void 0:o.history)!=null&&i.length){const a=new Map;o.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;a.has(O)||a.set(O,new Map);const L=a.get(O);L.has(z)||L.set(z,[]),L.get(z).push({t:x,angle:Y})})}),D.value=Array.from(a.keys()).sort().reverse(),M.value=a,D.value.length>0&&!S.value&&(S.value=D.value[0]),k.value=a.get(S.value)||new Map,p=!0}else{const a=s!=null&&s.multiObject?"":E.getObjectId(s,s==null?void 0:s.useAlias,c.uid),r=a&&((f=(g=o==null?void 0:o[a])==null?void 0:g[u])==null?void 0:f.data)||((d=o==null?void 0:o[u])==null?void 0:d.data)||(o==null?void 0:o.data)||o,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[j()],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`,o=Number((Math.sin(s/3)*50+s%4*6).toFixed(2));t.push({t:u,angle:o})}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:o=>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-da74a3c3"]]);exports.default=Me;
1
+ "use strict";var se=Object.defineProperty,ae=Object.defineProperties;var oe=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)=>ae(v,oe(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-D9ehIVda.cjs");require("element-plus");const ue=require("./EChartComponentBase-Cj_dO_ES.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,PLATFORM:["pc","screen"]},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 o=(e==null?void 0:e.depth)!==void 0?`${e.depth}m`:`${l+1}`;return`${s}-${o}`},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",a=t instanceof Map?t.get(f)||[]:[];g===0&&(u=a);const r=a.map(x=>x.angle),m=a[a.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 o=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+o,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(a=>{var r;return`${a.seriesName}: ${(r=a.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(" "),[,a,r]=f.split("-"),[m,h]=d.split(":");return`${a}-${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)})},F=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",F),e.on("legendselectchanged",F))});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()},j=()=>{var s,u,o;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=((o=e==null?void 0:e.customChannel)==null?void 0:o.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,o)=>{var d,a;const p=u.fv,i=V(u,o,l),g=Number(e==null?void 0:e[p]);if(!Number.isFinite(g))return;const f=String((a=(d=e==null?void 0:e.time)!=null?d:e==null?void 0:e.datetime)!=null?a: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=j();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 a=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(a)&&a.length){S.value=String(a[a.length-1]),b();return}if(a!=null&&a.endDate||a!=null&&a.end){S.value=String(a.endDate||a.end),b();return}return}const s=c.conf,u=(s==null?void 0:s.data)||[],o=(s==null?void 0:s.common)||{};if(u.length>0&&!(o!=null&&o.multiObject)){const a=E.getObjectId(o,o==null?void 0:o.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(a&&r&&String(a)!==String(r))return}const p=le(t);if(!p.size)return;const i=new Map(k.value);p.forEach((a,r)=>{const m=i.get(r)||[];i.set(r,[...m.slice(-199),...a])}),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 o=e;["statistics","calculate"].includes(u)&&(o=E.formatStatisticsResult(o,t));let p=!1;if((i=o==null?void 0:o.history)!=null&&i.length){const a=new Map;o.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;a.has(O)||a.set(O,new Map);const L=a.get(O);L.has(z)||L.set(z,[]),L.get(z).push({t:x,angle:Y})})}),D.value=Array.from(a.keys()).sort().reverse(),M.value=a,D.value.length>0&&!S.value&&(S.value=D.value[0]),k.value=a.get(S.value)||new Map,p=!0}else{const a=s!=null&&s.multiObject?"":E.getObjectId(s,s==null?void 0:s.useAlias,c.uid),r=a&&((f=(g=o==null?void 0:o[a])==null?void 0:g[u])==null?void 0:f.data)||((d=o==null?void 0:o[u])==null?void 0:d.data)||(o==null?void 0:o.data)||o,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[j()],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`,o=Number((Math.sin(s/3)*50+s%4*6).toFixed(2));t.push({t:u,angle:o})}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:o=>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-da74a3c3"]]);exports.default=Me;
@@ -1 +1 @@
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},I=(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-Bo49zvKb.cjs");require("element-plus");const ht=require("./EChartComponentBase-BwbycwwW.cjs"),gt=require("./titleStyle-NSnz6cUg.cjs"),vt=require("./history-DqPjJP_E.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"],Tt={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"深部温度场",NAME_EN:"DeepTemperatureField",ORDER:16,PLATFORM:["pc","screen"]},xt={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:Tt,OPTIONS:xt,DATA:tt,PARAMS:Nt,SOURCE:kt,COMMON:wt},_t=o.defineComponent(I(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,x,b;const l=q.value[(y=m.value)==null?void 0:y[0]]||"-",p=z.value[(x=m.value)==null?void 0:x[1]]||"-",v=(b=m.value)==null?void 0:b[2];return`时间: ${l}<br/>深度: ${p}m<br/>温度: ${v}℃`}},xAxis:{type:"category",data:q.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"),x=String(l.getMinutes()).padStart(2,"0");return`${p}-${v} ${y}:${x}`}if(m&&m.includes(" ")){const[l,p]=m.split(" "),v=l.split("-");if(v.length===3){const[y,x,b]=v,[H,D]=p.split(":");return`${x}-${b} ${H}:${D}`}}return m}}},yAxis:{type:"category",data:z.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 T=new R(r,"deepTemperatureField"),et=T.getEchartId();T.setupLifecycle();const L=T.getStyle(),nt=o.computed(()=>gt.generateTitleStyle(r.conf.options)),C=o.ref([]),A=o.ref([]),q=o.computed(()=>{const e=new Set;return C.value.forEach(t=>e.add(String(t.t))),Array.from(e).sort()}),z=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 q.value.forEach((n,i)=>e.set(n,i)),z.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=T.getChartInstance();e&&e.setOption(T.getChartOption(),!0)})},st=()=>{const e=T.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=()=>{$.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)||L.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())},$=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){$.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),$.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),$.value=s,_(),N()},_=()=>{const e=A.value,t=$.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,x=Number(v.depth),b=Number(l==null?void 0:l[y]);Number.isFinite(x)&&Number.isFinite(b)&&c.push({t:String(p),depth:x,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&&T.setSocketData(r.conf.socketData)}),o.watch(()=>{var e;return(e=r.conf)==null?void 0:e.options},()=>{T.getStyle().value=T.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=I(V({},r),{conf:I(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&&T.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(L).bgColor,borderRadius:`${o.unref(L).radiusSize}px`})},[o.unref(L).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(L).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-4412d160"]]);exports.default=Et;
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},I=(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-D9ehIVda.cjs");require("element-plus");const ht=require("./EChartComponentBase-Cj_dO_ES.cjs"),gt=require("./titleStyle-NSnz6cUg.cjs"),vt=require("./history-DHsGJFOf.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"],Tt={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"深部温度场",NAME_EN:"DeepTemperatureField",ORDER:16,PLATFORM:["pc","screen"]},xt={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:Tt,OPTIONS:xt,DATA:tt,PARAMS:Nt,SOURCE:kt,COMMON:wt},_t=o.defineComponent(I(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,x,b;const l=q.value[(y=m.value)==null?void 0:y[0]]||"-",p=z.value[(x=m.value)==null?void 0:x[1]]||"-",v=(b=m.value)==null?void 0:b[2];return`时间: ${l}<br/>深度: ${p}m<br/>温度: ${v}℃`}},xAxis:{type:"category",data:q.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"),x=String(l.getMinutes()).padStart(2,"0");return`${p}-${v} ${y}:${x}`}if(m&&m.includes(" ")){const[l,p]=m.split(" "),v=l.split("-");if(v.length===3){const[y,x,b]=v,[H,D]=p.split(":");return`${x}-${b} ${H}:${D}`}}return m}}},yAxis:{type:"category",data:z.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 T=new R(r,"deepTemperatureField"),et=T.getEchartId();T.setupLifecycle();const L=T.getStyle(),nt=o.computed(()=>gt.generateTitleStyle(r.conf.options)),C=o.ref([]),A=o.ref([]),q=o.computed(()=>{const e=new Set;return C.value.forEach(t=>e.add(String(t.t))),Array.from(e).sort()}),z=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 q.value.forEach((n,i)=>e.set(n,i)),z.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=T.getChartInstance();e&&e.setOption(T.getChartOption(),!0)})},st=()=>{const e=T.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=()=>{$.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)||L.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())},$=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){$.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),$.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),$.value=s,_(),N()},_=()=>{const e=A.value,t=$.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,x=Number(v.depth),b=Number(l==null?void 0:l[y]);Number.isFinite(x)&&Number.isFinite(b)&&c.push({t:String(p),depth:x,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&&T.setSocketData(r.conf.socketData)}),o.watch(()=>{var e;return(e=r.conf)==null?void 0:e.options},()=>{T.getStyle().value=T.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=I(V({},r),{conf:I(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&&T.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(L).bgColor,borderRadius:`${o.unref(L).radiusSize}px`})},[o.unref(L).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(L).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-4412d160"]]);exports.default=Et;
@@ -32,11 +32,11 @@ import "element-plus/es/components/button/style/css";
32
32
  import "element-plus/es/components/icon/style/css";
33
33
  import { defineComponent as Nt, ref as M, computed as F, watch as P, watchEffect as At, onMounted as kt, openBlock as W, createElementBlock as it, normalizeStyle as st, unref as E, toDisplayString as _t, createCommentVNode as ot, createElementVNode as Y, createVNode as q, withCtx as G, createTextVNode as at, createBlock as wt, renderSlot as Mt, nextTick as rt } from "vue";
34
34
  import { Download as Et } from "@element-plus/icons-vue";
35
- import { l as Rt, V as lt, N as Vt, d as ct, _ as $t } from "./index-BbXEpgom.js";
35
+ import { l as Rt, V as lt, N as Vt, d as ct, _ as $t } from "./index-nru6zK5E.js";
36
36
  import "element-plus";
37
- import { E as Lt } from "./EChartComponentBase-DJScukmS.js";
37
+ import { E as Lt } from "./EChartComponentBase-DrDdGF1C.js";
38
38
  import { g as Ft } from "./titleStyle-BT5GlpAb.js";
39
- import It from "./history-DgSlSTUD.js";
39
+ import It from "./history-DptcYt8k.js";
40
40
  import { A as zt, D as Ht } from "./ele-lin-icon-Dax-ZiWV.js";
41
41
  import { i as jt } from "./install-DNDCMXB3.js";
42
42
  import { u as Bt, i as Ut, a as Pt } from "./installCanvasRenderer-oDYkyVFy.js";
@@ -18,9 +18,9 @@ import "element-plus/es/components/select/style/css";
18
18
  import "element-plus/es/components/option/style/css";
19
19
  import { defineComponent as Jt, ref as w, computed as F, watch as at, watchEffect as Qt, onMounted as te, openBlock as X, createElementBlock as rt, normalizeStyle as _t, unref as H, toDisplayString as ee, createCommentVNode as ne, createElementVNode as ct, createVNode as q, withCtx as ut, Fragment as ie, renderList as se, createBlock as le, createTextVNode as oe, renderSlot as ae, nextTick as Dt } from "vue";
20
20
  import { Download as re } from "@element-plus/icons-vue";
21
- import { l as ce, V as kt, N as ue, _ as me } from "./index-BbXEpgom.js";
21
+ import { l as ce, V as kt, N as ue, _ as me } from "./index-nru6zK5E.js";
22
22
  import "element-plus";
23
- import { E as de } from "./EChartComponentBase-DJScukmS.js";
23
+ import { E as de } from "./EChartComponentBase-DrDdGF1C.js";
24
24
  import { g as fe } from "./titleStyle-BT5GlpAb.js";
25
25
  import { u as pe, i as he, a as ve } from "./installCanvasRenderer-oDYkyVFy.js";
26
26
  import { i as ge } from "./install-DbAuuRVv.js";
@@ -1 +1 @@
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,a,S)=>a in b?Fe(b,a,{enumerable:!0,configurable:!0,writable:!0,value:S}):b[a]=S,ie=(b,a)=>{for(var S in a||(a={}))ze.call(a,S)&&Ce(b,S,a[S]);if(Le)for(var S of Le(a))Be.call(a,S)&&Ce(b,S,a[S]);return b},le=(b,a)=>Me(b,$e(a));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-Bo49zvKb.cjs");require("element-plus");const Pe=require("./EChartComponentBase-BwbycwwW.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,PLATFORM:["pc","screen"]},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 a=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=a.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,r=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:r!==null?r: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(a,"deepTrendChart"),re=k.getEchartId();k.setupLifecycle();const U=k.getStyle(),Ne=o.computed(()=>Ze.generateTitleStyle(a.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"),r=String(i.getDate()).padStart(2,"0");return`${s}-${l}-${r}`},be=e=>{var s;const t=((s=a.conf)==null?void 0:s.data)||[];if(!e.length||!t.length)return e;const n=new Map;e.forEach(l=>{const r=Y(l.time);n.has(r)||n.set(r,[]),n.get(r).push(l)});const i=[];return Array.from(n.entries()).forEach(([l,r])=>{const c={};t.forEach(u=>{const g=u==null?void 0:u.fv;if(!g)return;let f=0,v=0;if(r.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,r)=>String(l.time).localeCompare(String(r.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}),ae=(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,r=Number.isNaN(s)?Number.POSITIVE_INFINITY:s;return n>=l&&n<=r},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=>ae(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"),r=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}-${r} ${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=a.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:a.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(r=>{var g;const c=r==null?void 0:r.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 r=e==null?void 0:e[l];if(r!=null)return r}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(r=>{const c=`${r}_${i}`,u=t==null?void 0:t[c];u!=null&&(e[c]=u)})},fe=e=>{var l;const t=((l=a.conf)==null?void 0:l.data)||[],i=(t[0]||{}).points_fv||"points",s=[];return e.forEach((r,c)=>{var v,h;const u=(r==null?void 0:r[0])||r||{},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=a.conf)==null?void 0:v.data)||[],Ee=String(((h=Ie[0])==null?void 0:h.configPanelId)||"").trim(),ve=[a.uid,re,(d=a.conf)==null?void 0:d.id,(p=a.conf)==null?void 0:p.uid,(C=a.conf)==null?void 0:C.name,(E=a.conf)==null?void 0:E.caption,(N=a.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=>ae(I.time,x));_&&(y.value=_.time)}if(Q&&["s","x","y"].includes(Q)){Z.value=Q,D();return}D();return}const i=a.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,a.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=a.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 r=i!=null&&i.multiObject?"":P.getObjectId(i,i==null?void 0:i.useAlias,a.uid),c=r&&((p=(d=l==null?void 0:l[r])==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(()=>{a.conf.socketData&&k.setSocketData(a.conf.socketData)}),o.watch(()=>{var e;return(e=a.conf)==null?void 0:e.options},()=>{k.getStyle().value=k.extractStyles(),D()},{deep:!0}),o.onMounted(()=>{if(a.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]=r=>y.value=r),placeholder:"选择时间",size:"small",class:"time-select",onChange:ke},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(xe.value,r=>(o.openBlock(),o.createBlock(n,{key:r.value,label:r.label,value:r.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(re)},null,8,We)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),lt=P._export_sfc(it,[["__scopeId","data-v-b061424b"]]);exports.default=lt;
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,a,S)=>a in b?Fe(b,a,{enumerable:!0,configurable:!0,writable:!0,value:S}):b[a]=S,ie=(b,a)=>{for(var S in a||(a={}))ze.call(a,S)&&Ce(b,S,a[S]);if(Le)for(var S of Le(a))Be.call(a,S)&&Ce(b,S,a[S]);return b},le=(b,a)=>Me(b,$e(a));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-D9ehIVda.cjs");require("element-plus");const Pe=require("./EChartComponentBase-Cj_dO_ES.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,PLATFORM:["pc","screen"]},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 a=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=a.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,r=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:r!==null?r: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(a,"deepTrendChart"),re=k.getEchartId();k.setupLifecycle();const U=k.getStyle(),Ne=o.computed(()=>Ze.generateTitleStyle(a.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"),r=String(i.getDate()).padStart(2,"0");return`${s}-${l}-${r}`},be=e=>{var s;const t=((s=a.conf)==null?void 0:s.data)||[];if(!e.length||!t.length)return e;const n=new Map;e.forEach(l=>{const r=Y(l.time);n.has(r)||n.set(r,[]),n.get(r).push(l)});const i=[];return Array.from(n.entries()).forEach(([l,r])=>{const c={};t.forEach(u=>{const g=u==null?void 0:u.fv;if(!g)return;let f=0,v=0;if(r.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,r)=>String(l.time).localeCompare(String(r.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}),ae=(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,r=Number.isNaN(s)?Number.POSITIVE_INFINITY:s;return n>=l&&n<=r},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=>ae(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"),r=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}-${r} ${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=a.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:a.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(r=>{var g;const c=r==null?void 0:r.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 r=e==null?void 0:e[l];if(r!=null)return r}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(r=>{const c=`${r}_${i}`,u=t==null?void 0:t[c];u!=null&&(e[c]=u)})},fe=e=>{var l;const t=((l=a.conf)==null?void 0:l.data)||[],i=(t[0]||{}).points_fv||"points",s=[];return e.forEach((r,c)=>{var v,h;const u=(r==null?void 0:r[0])||r||{},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=a.conf)==null?void 0:v.data)||[],Ee=String(((h=Ie[0])==null?void 0:h.configPanelId)||"").trim(),ve=[a.uid,re,(d=a.conf)==null?void 0:d.id,(p=a.conf)==null?void 0:p.uid,(C=a.conf)==null?void 0:C.name,(E=a.conf)==null?void 0:E.caption,(N=a.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=>ae(I.time,x));_&&(y.value=_.time)}if(Q&&["s","x","y"].includes(Q)){Z.value=Q,D();return}D();return}const i=a.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,a.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=a.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 r=i!=null&&i.multiObject?"":P.getObjectId(i,i==null?void 0:i.useAlias,a.uid),c=r&&((p=(d=l==null?void 0:l[r])==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(()=>{a.conf.socketData&&k.setSocketData(a.conf.socketData)}),o.watch(()=>{var e;return(e=a.conf)==null?void 0:e.options},()=>{k.getStyle().value=k.extractStyles(),D()},{deep:!0}),o.onMounted(()=>{if(a.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]=r=>y.value=r),placeholder:"选择时间",size:"small",class:"time-select",onChange:ke},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(xe.value,r=>(o.openBlock(),o.createBlock(n,{key:r.value,label:r.label,value:r.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(re)},null,8,We)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),lt=P._export_sfc(it,[["__scopeId","data-v-b061424b"]]);exports.default=lt;
@@ -1,2 +1,2 @@
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-Bo49zvKb.cjs");require("element-plus");const q=require("./EChartComponentBase-BwbycwwW.cjs"),z=require("./ele-lin-icon-Dke_1AmT.cjs"),R={class:"panel-header"},$=["id"],H={DEFAULT_ICON:z.DEFAULT_ICON,ACTIVE_ICON:z.ACTIVE_ICON,NAME_CN:"设备在线状态",NAME_EN:"Device Online Status",ORDER:11,PLATFORM:["pc","screen"]},P={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"}}},U=[{name:"设备1",fv:"online_status",fvDeviceName:"",object_id:""}],W=["object_id","name","fv","fvDeviceName"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=200,Q={DEFAULT:H,OPTIONS:P,DATA:U,PARAMS:W,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 q.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)||[]}),F=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}}),j=t.computed(()=>({backgroundColor:p.value.bgColor})),m=l=>{const{online:e,offline:r,total:i}=F.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}}
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-D9ehIVda.cjs");require("element-plus");const q=require("./EChartComponentBase-Cj_dO_ES.cjs"),z=require("./ele-lin-icon-Dke_1AmT.cjs"),R={class:"panel-header"},$=["id"],H={DEFAULT_ICON:z.DEFAULT_ICON,ACTIVE_ICON:z.ACTIVE_ICON,NAME_CN:"设备在线状态",NAME_EN:"Device Online Status",ORDER:11,PLATFORM:["pc","screen"]},P={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"}}},U=[{name:"设备1",fv:"online_status",fvDeviceName:"",object_id:""}],W=["object_id","name","fv","fvDeviceName"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=200,Q={DEFAULT:H,OPTIONS:P,DATA:U,PARAMS:W,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 q.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)||[]}),F=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}}),j=t.computed(()=>({backgroundColor:p.value.bgColor})),m=l=>{const{online:e,offline:r,total:i}=F.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
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(j.value)},[t.createElementVNode("div",R,[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,$),t.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),Y=V._export_sfc(X,[["__scopeId","data-v-5a3fb2e8"]]);exports.default=Y;
@@ -12,9 +12,9 @@ var k = (s, t, n) => t in s ? w(s, t, { enumerable: !0, configurable: !0, writab
12
12
  }, I = (s, t) => L(s, B(t));
13
13
  import { defineComponent as H, computed as S, onMounted as W, watch as P, openBlock as U, createElementBlock as V, normalizeStyle as F, createElementVNode as h, unref as b, toDisplayString as G, renderSlot as q } from "vue";
14
14
  import "html2canvas";
15
- import { _ as J } from "./index-BbXEpgom.js";
15
+ import { _ as J } from "./index-nru6zK5E.js";
16
16
  import "element-plus";
17
- import { E as K } from "./EChartComponentBase-DJScukmS.js";
17
+ import { E as K } from "./EChartComponentBase-DrDdGF1C.js";
18
18
  import { A as Q, D as X } from "./ele-lin-icon-Dax-ZiWV.js";
19
19
  const Y = { class: "panel-header" }, Z = ["id"], ee = {
20
20
  DEFAULT_ICON: X,
@@ -1 +1 @@
1
- "use strict";var x=Object.defineProperty,A=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var h=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(h)for(var s of h(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-9njJjeix.cjs"),y=require("./index-Bo49zvKb.cjs"),V=require("./ele-gag-icon-Ce1hl9NI.cjs"),L={class:"device-status-wrapper"},I={class:"panel-header"},F={class:"header-left"},z={class:"header-title"},H={class:"status-cards"},P=["onClick"],U={class:"status-label"},q={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,PLATFORM:["pc","screen"]},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=>({v2279d942:e.unref(c).bgColor,v282717bb:e.unref(c).borderColor,v0266b85a:e.unref(c).textColor,v919cec46:e.unref(c).accentColor,v09e5435a:e.unref(c).glowEffect?`drop-shadow(0 0 6px ${e.unref(c).accentColor})`:"none",v114e47f4: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}]}),b=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",L,[e.createElementVNode("div",I,[e.createElementVNode("div",F,[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",z,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",U,e.toDisplayString(o.name),1)],12,P))),128))]),e.createElementVNode("div",q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.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)),b.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-d3c9d7b3"]]);exports.default=ne;
1
+ "use strict";var x=Object.defineProperty,A=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var h=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(h)for(var s of h(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-CPat9pFl.cjs"),y=require("./index-D9ehIVda.cjs"),V=require("./ele-gag-icon-Ce1hl9NI.cjs"),L={class:"device-status-wrapper"},I={class:"panel-header"},F={class:"header-left"},z={class:"header-title"},H={class:"status-cards"},P=["onClick"],U={class:"status-label"},q={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,PLATFORM:["pc","screen"]},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=>({v2279d942:e.unref(c).bgColor,v282717bb:e.unref(c).borderColor,v0266b85a:e.unref(c).textColor,v919cec46:e.unref(c).accentColor,v09e5435a:e.unref(c).glowEffect?`drop-shadow(0 0 6px ${e.unref(c).accentColor})`:"none",v114e47f4: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}]}),b=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",L,[e.createElementVNode("div",I,[e.createElementVNode("div",F,[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",z,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",U,e.toDisplayString(o.name),1)],12,P))),128))]),e.createElementVNode("div",q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.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)),b.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-d3c9d7b3"]]);exports.default=ne;
@@ -12,8 +12,8 @@ var j = (u, o, n) => o in u ? T(u, o, { enumerable: !0, configurable: !0, writab
12
12
  }, A = (u, o) => H(u, F(o));
13
13
  import { defineComponent as z, useCssVars as I, unref as v, ref as $, computed as k, openBlock as C, createElementBlock as _, createElementVNode as a, toDisplayString as f, Fragment as N, renderList as O, normalizeStyle as S, createCommentVNode as q, renderSlot as G } from "vue";
14
14
  import "html2canvas";
15
- import { B as J } from "./BaseComponent-B38Blgw3.js";
16
- import { N as K, B as Q, _ as W } from "./index-BbXEpgom.js";
15
+ import { B as J } from "./BaseComponent-DMJmgFIo.js";
16
+ import { N as K, B as Q, _ as W } from "./index-nru6zK5E.js";
17
17
  import { A as X, D as Y } from "./ele-gag-icon-CB5dJeYF.js";
18
18
  const Z = { class: "device-status-wrapper" }, tt = { class: "panel-header" }, et = { class: "header-left" }, ot = { class: "header-title" }, at = { class: "status-cards" }, lt = ["onClick"], ct = { class: "status-label" }, st = { class: "device-list" }, rt = { class: "device-icon" }, nt = { class: "device-info" }, it = { class: "device-name" }, ut = { class: "device-type" }, dt = { class: "device-value" }, vt = { class: "value-text" }, ft = {
19
19
  key: 0,
@@ -36,8 +36,8 @@ import "element-plus/es/components/icon/style/css";
36
36
  import { defineComponent as se, useCssVars as re, unref as C, ref as _, onMounted as ce, computed as y, watch as w, openBlock as P, createElementBlock as j, createElementVNode as v, toDisplayString as S, createVNode as b, withCtx as E, createTextVNode as L, Fragment as ie, renderList as pe, createBlock as ue, renderSlot as de } from "vue";
37
37
  import { Upload as fe } from "@element-plus/icons-vue";
38
38
  import "html2canvas";
39
- import { B as me } from "./BaseComponent-B38Blgw3.js";
40
- import { l as ge, d as he, N as _e, B as be, _ as ve } from "./index-BbXEpgom.js";
39
+ import { B as me } from "./BaseComponent-DMJmgFIo.js";
40
+ import { l as ge, d as he, N as _e, B as be, _ as ve } from "./index-nru6zK5E.js";
41
41
  import { A as De, D as Ce } from "./ele-lst-icon-CKpeRKmk.js";
42
42
  const ye = { class: "displacement-data-table" }, Se = { class: "table-toolbar" }, Ee = { class: "toolbar-title" }, xe = { class: "toolbar-right" }, Te = { class: "search-info" }, Me = { class: "table-container" }, Pe = {
43
43
  DEFAULT_ICON: Ce,
@@ -1 +1 @@
1
- "use strict";var U=Object.defineProperty,R=Object.defineProperties;var $=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},P=(r,l)=>R(r,$(l));var I=(r,l,a)=>K(F(r),a,l);var M=(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-9njJjeix.cjs"),v=require("./index-Bo49zvKb.cjs"),V=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:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"位移数据表",NAME_EN:"Displacement Data Table",ORDER:16,PLATFORM:["pc","screen"]},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(P(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=>({v49341654:e.unref(D).bgColor,v30ba3eee: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 M(this,null,function*(){const{data:t}=this.props.conf;t.some(s=>s.object_id&&s.fv)?(console.log("[DisplacementDataTable] 检测到数据绑定,订阅真实数据"),yield I(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 O=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}),w=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),z=o=>o==null?"-":typeof o=="number"?o.toFixed(3):o,q=o=>{g.value=o},A=o=>{p.value=o,g.value=1},B=()=>{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:B},{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:A,onCurrentChange:q},null,8,["current-page","page-size","total"])])]),e.createElementVNode("div",te,[e.createVNode(_,{data:w.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(O.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(z(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-5bfa4b32"]]);exports.default=ue;
1
+ "use strict";var U=Object.defineProperty,R=Object.defineProperties;var $=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},P=(r,l)=>R(r,$(l));var I=(r,l,a)=>K(F(r),a,l);var M=(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-CPat9pFl.cjs"),v=require("./index-D9ehIVda.cjs"),V=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:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"位移数据表",NAME_EN:"Displacement Data Table",ORDER:16,PLATFORM:["pc","screen"]},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(P(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=>({v49341654:e.unref(D).bgColor,v30ba3eee: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 M(this,null,function*(){const{data:t}=this.props.conf;t.some(s=>s.object_id&&s.fv)?(console.log("[DisplacementDataTable] 检测到数据绑定,订阅真实数据"),yield I(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 O=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}),w=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),z=o=>o==null?"-":typeof o=="number"?o.toFixed(3):o,q=o=>{g.value=o},A=o=>{p.value=o,g.value=1},B=()=>{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:B},{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:A,onCurrentChange:q},null,8,["current-page","page-size","total"])])]),e.createElementVNode("div",te,[e.createVNode(_,{data:w.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(O.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(z(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-5bfa4b32"]]);exports.default=ue;
@@ -1,4 +1,4 @@
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,V=(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-Bo49zvKb.cjs");require("element-plus");const xe=require("./EChartComponentBase-BwbycwwW.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,PLATFORM:["pc","screen"]},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(V({},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"?V({},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;">
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,V=(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-D9ehIVda.cjs");require("element-plus");const xe=require("./EChartComponentBase-Cj_dO_ES.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,PLATFORM:["pc","screen"]},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(V({},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"?V({},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
2
  <div style="font-weight: 600; margin-bottom: 6px;">开始点(参考)</div>
3
3
  <div style="color: #666; line-height: 1.8;">
4
4
  <div>半径: ${r.toFixed(2)}mm</div>
@@ -18,9 +18,9 @@ import "element-plus/es/components/select/style/css";
18
18
  import "element-plus/es/components/option/style/css";
19
19
  import { defineComponent as Rt, ref as X, computed as F, watch as mt, nextTick as ht, onMounted as kt, onUnmounted as Yt, openBlock as $, createElementBlock as q, normalizeStyle as ft, unref as k, toDisplayString as Lt, createCommentVNode as zt, createElementVNode as K, createVNode as H, withCtx as Z, Fragment as Ft, renderList as $t, createBlock as Ht, createTextVNode as Bt, renderSlot as Ut } from "vue";
20
20
  import { Download as Vt } from "@element-plus/icons-vue";
21
- import { l as Wt, N as Xt, B as qt, d as Y, V as Kt, _ as Zt } from "./index-BbXEpgom.js";
21
+ import { l as Wt, N as Xt, B as qt, d as Y, V as Kt, _ as Zt } from "./index-nru6zK5E.js";
22
22
  import "element-plus";
23
- import { E as Gt } from "./EChartComponentBase-DJScukmS.js";
23
+ import { E as Gt } from "./EChartComponentBase-DrDdGF1C.js";
24
24
  import { g as Jt } from "./titleStyle-BT5GlpAb.js";
25
25
  import { A as Qt, D as te } from "./ele-lin-icon-Dax-ZiWV.js";
26
26
  const ee = { class: "mix-body" }, ne = { class: "toolbar" }, ae = ["id"], oe = {