mixdashboards 1.0.71 → 1.0.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (470) hide show
  1. package/dist/{BaseComponent-D5tlYehc.js → BaseComponent-CBagahPU.js} +138 -109
  2. package/dist/BaseComponent-Chnv4fBT.cjs +1 -0
  3. package/dist/{EChartComponentBase-CAabYXSj.js → EChartComponentBase-cFfawl6h.js} +2 -2
  4. package/dist/{EChartComponentBase-D4wMej9X.cjs → EChartComponentBase-dLE5F7Tt.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-Th4ZNdCb.js → EmergencyPlanPanel--jTGG89o.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-D96XjhRq.cjs → EmergencyPlanPanel-BJb-Bbxh.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-rn2Bp0Gx.cjs → HistoryPlanDialog-C-QPdV4V.cjs} +1 -1
  8. package/dist/{HistoryPlanDialog-D2mQLhkO.js → HistoryPlanDialog-DerClU2U.js} +1 -1
  9. package/dist/{MonitoringMap-BZ98NYTJ.cjs → MonitoringMap-B6RMbiIS.cjs} +1 -1
  10. package/dist/{MonitoringMap-Coozb35G.js → MonitoringMap-CNaGsq83.js} +2 -2
  11. package/dist/UniverSheet-CM-vvc23.cjs +1 -0
  12. package/dist/{UniverSheet-CJCunVAM.js → UniverSheet-KI09RqKm.js} +16 -15
  13. package/dist/{accelerationChart-DacjcSHD.js → accelerationChart-D7KNk5fI.js} +61 -59
  14. package/dist/accelerationChart-HBCb2bRW.cjs +6 -0
  15. package/dist/{actionItem-d-4p5HZK.js → actionItem-BmNYzAXu.js} +48 -41
  16. package/dist/actionItem-Bx4mW0jP.cjs +1 -0
  17. package/dist/alarmLevelChart-Cvnw4z1w.cjs +2 -0
  18. package/dist/{alarmLevelChart-DddN1NVy.js → alarmLevelChart-DdSw2s7W.js} +91 -46
  19. package/dist/{alertTable-Q-Waa5jf.js → alertTable-CC3c8DFb.js} +40 -39
  20. package/dist/alertTable-hH6HA9pY.cjs +1 -0
  21. package/dist/aliasObjectSelectorDemo-C7E_fnCf.cjs +1 -0
  22. package/dist/{aliasObjectSelectorDemo-BZygQw9k.js → aliasObjectSelectorDemo-yDiavTpG.js} +11 -10
  23. package/dist/{annualRainfallChart-CthANCvn.js → annualRainfallChart-B9ar8vo8.js} +32 -30
  24. package/dist/annualRainfallChart-C6JLSPIf.cjs +1 -0
  25. package/dist/{aqi-C_HnKsjh.js → aqi-BNc5QCM3.js} +21 -19
  26. package/dist/{aqi-BFW_8xYd.cjs → aqi-DEiCVIVa.cjs} +3 -3
  27. package/dist/aqiIndass-Bowic_Pc.cjs +3 -0
  28. package/dist/{aqiIndass-NVRa3lmj.js → aqiIndass-CAGV8_Uf.js} +41 -40
  29. package/dist/{areaDeformCurve-mQiOHdtN.js → areaDeformCurve-CSpR060t.js} +51 -49
  30. package/dist/areaDeformCurve-CVy23kV2.cjs +1 -0
  31. package/dist/arrayCard-NqoQKcE9.cjs +1 -0
  32. package/dist/{arrayCard-DZitcjMs.js → arrayCard-PPDb7U6X.js} +29 -28
  33. package/dist/{audio-CDAMVEgC.js → audio-BJPFIQIr.js} +42 -41
  34. package/dist/audio-Bw-GaYe1.cjs +1 -0
  35. package/dist/{bar--JrlRud9.js → bar-C38h_mUA.js} +72 -70
  36. package/dist/{bar-C7uQADV1.cjs → bar-Cru6WosS.cjs} +2 -2
  37. package/dist/bmp-BXaEkkpa.cjs +1 -0
  38. package/dist/{bmp-DrVcnYxy.js → bmp-BnSOaFEr.js} +15 -14
  39. package/dist/box-CKuGsh2k.cjs +1 -0
  40. package/dist/{box-szcLhted.js → box-DIHVOqrV.js} +58 -57
  41. package/dist/chartConfigPanel-BVdVXbs6.cjs +1 -0
  42. package/dist/{chartConfigPanel-C32o1gyJ.js → chartConfigPanel-D1rO6SGh.js} +86 -79
  43. package/dist/{circleBar-CeL2rqMJ.cjs → circleBar-BzXqA-Cz.cjs} +3 -3
  44. package/dist/{circleBar-BmTjsLHo.js → circleBar-CBLcp4Xi.js} +27 -25
  45. package/dist/{clock-CuQpD76K.js → clock-4AMfFDGC.js} +35 -34
  46. package/dist/clock-DmWyBpo-.cjs +1 -0
  47. package/dist/clt-CmPPtp9c.cjs +1 -0
  48. package/dist/{clt-XCswxZ6i.js → clt-D5i_8-pq.js} +60 -59
  49. package/dist/cmc-8jH3DGv9.cjs +1 -0
  50. package/dist/{cmc-CXmAv6fz.js → cmc-Cjb5w3om.js} +23 -22
  51. package/dist/{cmp-Duz_v-LC.js → cmp-COJzlQPa.js} +19 -18
  52. package/dist/{cmp-DmpxjexT.cjs → cmp-CpmGtNal.cjs} +2 -2
  53. package/dist/{composite-CWgy-w61.js → composite-CsFgfxih.js} +37 -36
  54. package/dist/{composite-DdHASMFQ.cjs → composite-DLmzZNIj.cjs} +3 -3
  55. package/dist/{conclusionCard-BtB0rARK.js → conclusionCard-BQUlLFde.js} +15 -14
  56. package/dist/conclusionCard-C-TT6znN.cjs +1 -0
  57. package/dist/{controlList-C0AQ8Yb8.js → controlList-5D5UIDQL.js} +40 -38
  58. package/dist/controlList-CIwzKylK.cjs +1 -0
  59. package/dist/{controlRecordList-CSPKG1HU.js → controlRecordList-Cp5mmEQ1.js} +55 -53
  60. package/dist/controlRecordList-uEQ3ohmB.cjs +1 -0
  61. package/dist/controlRecordListAPP-B5d4x_xH.cjs +1 -0
  62. package/dist/controlRecordListAPP-p_skbQVD.js +502 -0
  63. package/dist/{crd-DQruf9o3.js → crd-8gRWMf2Y.js} +14 -13
  64. package/dist/crd-Dfl2XKAx.cjs +1 -0
  65. package/dist/{ctrBtn-jEWTt_f2.js → ctrBtn-BzmFxucy.js} +106 -107
  66. package/dist/ctrBtn-OOgL9esv.cjs +1 -0
  67. package/dist/{ctrSet-C4wCODMY.js → ctrSet-Btg2T9w6.js} +24 -23
  68. package/dist/ctrSet-CifyJt05.cjs +1 -0
  69. package/dist/ctrSwitch-6nMHbIE7.js +206 -0
  70. package/dist/ctrSwitch-C8mwxLPe.cjs +1 -0
  71. package/dist/{dataManagement-BQVZS7Hi.js → dataManagement-BZiSmktM.js} +52 -45
  72. package/dist/dataManagement-sQpuBaDz.cjs +1 -0
  73. package/dist/{dataReport-vP1LBJjE.js → dataReport-CbJzXeCE.js} +25 -24
  74. package/dist/{dataReport-DRopth3A.cjs → dataReport-D9Q9c43B.cjs} +2 -2
  75. package/dist/{dataTable-C2AgSR36.cjs → dataTable-BJ4SVFbu.cjs} +1 -1
  76. package/dist/{dataTable-B1FQ3XIq.js → dataTable-BuBB0b-A.js} +1 -1
  77. package/dist/datetime-B66VgJL1.cjs +1 -0
  78. package/dist/{datetime-DU3rzi1v.js → datetime-DO03QrXz.js} +25 -24
  79. package/dist/deepClusterSlipSurface-BqT55vkY.cjs +1 -0
  80. package/dist/{deepClusterSlipSurface-BHwB0eu9.js → deepClusterSlipSurface-DpSAXgFf.js} +45 -43
  81. package/dist/{deepDataMatrix-C3uKZmon.js → deepDataMatrix-CPrIOv5r.js} +46 -45
  82. package/dist/deepDataMatrix-DZZaTMbD.cjs +1 -0
  83. package/dist/{deepDisplacement3D-BBYgB-rK.cjs → deepDisplacement3D-Cd9nwwPt.cjs} +3 -3
  84. package/dist/{deepDisplacement3D-CDNPul6D.js → deepDisplacement3D-JlMej7-5.js} +9 -7
  85. package/dist/{deepDisplacementChart-C_pwwgIC.js → deepDisplacementChart-BiDt60xI.js} +89 -88
  86. package/dist/deepDisplacementChart-CALM3gna.cjs +5 -0
  87. package/dist/deepDisplacementChart-CEaj2bUV.cjs +6 -0
  88. package/dist/{deepDisplacementChart-C6GQHO-J.js → deepDisplacementChart-CjlGpeHj.js} +54 -52
  89. package/dist/{deepDisplacementView-C837RNer.js → deepDisplacementView-BpUw-b-i.js} +37 -36
  90. package/dist/deepDisplacementView-CoSNzN1q.cjs +8 -0
  91. package/dist/deepNodeTemperatureChart-DPN0rYir.cjs +1 -0
  92. package/dist/{deepNodeTemperatureChart-BcH3ZNi4.js → deepNodeTemperatureChart-DfZq7kLx.js} +50 -48
  93. package/dist/{deepTangentAngleChart-DSpCyIdq.js → deepTangentAngleChart-Ca01hah9.js} +92 -90
  94. package/dist/deepTangentAngleChart-Dg9PJspK.cjs +1 -0
  95. package/dist/deepTemperatureField-BqDB97SW.cjs +1 -0
  96. package/dist/{deepTemperatureField-B2qIHL1-.js → deepTemperatureField-CYBTjhEp.js} +95 -93
  97. package/dist/deepTrendChart-B5BAHTeY.cjs +1 -0
  98. package/dist/{deepTrendChart-DFGSV17a.js → deepTrendChart-DBjxV7_A.js} +56 -54
  99. package/dist/{deviceOnlineStatus-CiIFdo9I.js → deviceOnlineStatus-1eoHCl_-.js} +58 -50
  100. package/dist/deviceOnlineStatus-DHzaAzCp.cjs +2 -0
  101. package/dist/deviceStatus-4BMy4qBD.cjs +1 -0
  102. package/dist/{deviceStatus-Dd1pqVnO.js → deviceStatus-90rQa1uj.js} +61 -60
  103. package/dist/{displacementDataTable-CGIHGxye.js → displacementDataTable-BArwj-xp.js} +52 -51
  104. package/dist/displacementDataTable-BLWjiaRQ.cjs +1 -0
  105. package/dist/{displacementTrajectoryChart-RL97CTML.js → displacementTrajectoryChart-CxOPJVlD.js} +34 -32
  106. package/dist/displacementTrajectoryChart-DfJMOCFJ.cjs +22 -0
  107. package/dist/{displacementTrendChart-Bqnv7hiP.js → displacementTrendChart-4E6cDsX8.js} +49 -48
  108. package/dist/displacementTrendChart-Cuxa5iTp.cjs +5 -0
  109. package/dist/{dxf-BQoArgPS.cjs → dxf-BgklkksV.cjs} +1 -1
  110. package/dist/{dxf-DBu1iA-r.js → dxf-BogwbJID.js} +5 -4
  111. package/dist/{dzc-DMVPjosV.cjs → dzc-CApfzriC.cjs} +2 -2
  112. package/dist/{dzc-7tLxe18d.js → dzc-D7tTBLaA.js} +24 -22
  113. package/dist/emergencyPlan-BuFz4XFc.cjs +1 -0
  114. package/dist/{emergencyPlan-C9Edkw51.js → emergencyPlan-CjbuX-N5.js} +19 -18
  115. package/dist/evn-BcSenXF3.cjs +1 -0
  116. package/dist/{evn-CeLoYCUr.js → evn-DTPm72ZM.js} +23 -22
  117. package/dist/evolutionChart-CrwR8i40.cjs +1 -0
  118. package/dist/{evolutionChart-DAlncdLU.js → evolutionChart-D1dVKWOt.js} +25 -23
  119. package/dist/{fileViewer-BFMFEN2f.js → fileViewer-BNHwlZRa.js} +57 -56
  120. package/dist/fileViewer-BUuST3Rp.cjs +1 -0
  121. package/dist/filterBar-BJzjPFFg.cjs +1 -0
  122. package/dist/{filterBar-qJJKdxYE.js → filterBar-CRJinh5K.js} +44 -43
  123. package/dist/fireCombustionCurve-BGdJ1ybj.cjs +1 -0
  124. package/dist/{fireCombustionCurve-DyRikhHw.js → fireCombustionCurve-BZ6qJ1kq.js} +69 -67
  125. package/dist/fireFilterBar-DZejT0oL.cjs +1 -0
  126. package/dist/{fireFilterBar-DkjBGPXa.js → fireFilterBar-KvvbsCsZ.js} +25 -24
  127. package/dist/{fireHistoryTable-ldXil5up.js → fireHistoryTable-80ygqnOG.js} +73 -65
  128. package/dist/fireHistoryTable-CMSGKb3w.cjs +3 -0
  129. package/dist/gag-1bvAZ5m6.cjs +1 -0
  130. package/dist/{gag-KZfFHn72.js → gag-D2obj7AF.js} +30 -28
  131. package/dist/{gasStationList-Btoo_olJ.js → gasStationList-DM-laJsi.js} +527 -526
  132. package/dist/gasStationList-DjJtXnqL.cjs +1 -0
  133. package/dist/{geo3dViewer-Cif9uFqd.cjs → geo3dViewer-CL_89mQf.cjs} +1 -1
  134. package/dist/{geo3dViewer-iZhkCiTP.js → geo3dViewer-FhmMIvMJ.js} +12 -5
  135. package/dist/{glbModel-MJZgDSJf.js → glbModel-B0nWYYJQ.js} +19 -18
  136. package/dist/{glbModel-2xydaxDT.cjs → glbModel-DakMJal6.cjs} +3 -3
  137. package/dist/{globalObjectSelector-CHtYGpi9.js → globalObjectSelector-Gv4srHhp.js} +79 -78
  138. package/dist/globalObjectSelector-jNzZxdnL.cjs +1 -0
  139. package/dist/{gnssFilterBar-CPis6bUI.js → gnssFilterBar-C4rpyNw3.js} +70 -63
  140. package/dist/gnssFilterBar-kEIW7Tjs.cjs +1 -0
  141. package/dist/{gnssHistoryTable-kHZY48EZ.js → gnssHistoryTable-CyMwQJ7_.js} +58 -50
  142. package/dist/gnssHistoryTable-DRKlP8-b.cjs +3 -0
  143. package/dist/{gnssMapView-BNIkieqL.cjs → gnssMapView-DpExCi0x.cjs} +4 -4
  144. package/dist/{gnssMapView-DXP8yz0v.js → gnssMapView-EVufCGrW.js} +174 -167
  145. package/dist/{gnssSectionProfile-DEUDEvJ1.js → gnssSectionProfile-CaJwF9wp.js} +41 -34
  146. package/dist/gnssSectionProfile-DdcOMdNC.cjs +1 -0
  147. package/dist/{gnssTimeSeriesChart-C_xqd0su.js → gnssTimeSeriesChart-iffDvMNx.js} +57 -49
  148. package/dist/gnssTimeSeriesChart-y11Y8k2-.cjs +1 -0
  149. package/dist/{gnssXYTrajectory-GqgFw_qK.js → gnssXYTrajectory-C_1fuLWn.js} +53 -45
  150. package/dist/gnssXYTrajectory-DGBGGDwi.cjs +5 -0
  151. package/dist/grd-C4hCrpvH.cjs +1 -0
  152. package/dist/{grd-QCuVN1jE.js → grd-FfuMQJb7.js} +43 -42
  153. package/dist/{grdIndass-BEcfZTYw.js → grdIndass-BTbZmPLZ.js} +30 -29
  154. package/dist/grdIndass-CyuRKD5H.cjs +1 -0
  155. package/dist/{grg-CMVrF5tB.js → grg-CcnI5kRY.js} +27 -26
  156. package/dist/grg-Cuxa17d6.cjs +1 -0
  157. package/dist/gridview-CKjBuTRq.cjs +1 -0
  158. package/dist/{gridview-Cd3Tqzph.js → gridview-ffVc5Wvg.js} +32 -31
  159. package/dist/groundwaterFilterBar-D3l7GLVY.cjs +1 -0
  160. package/dist/{groundwaterFilterBar-D7lrbzDC.js → groundwaterFilterBar-DaPR-kbl.js} +13 -12
  161. package/dist/groundwaterProfileChart-BxJKIPXF.cjs +11 -0
  162. package/dist/{groundwaterProfileChart-Bjtqz-Zv.js → groundwaterProfileChart-DoSx7WWp.js} +42 -40
  163. package/dist/groundwaterTimeCurve-Bp5MxM9k.cjs +1 -0
  164. package/dist/{groundwaterTimeCurve-Bu6vgAaC.js → groundwaterTimeCurve-D-SdVYeq.js} +57 -55
  165. package/dist/{groupCard-CPvAsuPb.cjs → groupCard-BzUQ8xY0.cjs} +1 -1
  166. package/dist/{groupCard-DQvEe6cc.js → groupCard-COMEkzIb.js} +29 -28
  167. package/dist/headerBar-iFe0YQKE.cjs +1 -0
  168. package/dist/{headerBar-CGOtSvFn.js → headerBar-ouXO8bzC.js} +48 -47
  169. package/dist/{history-D6C3tSut.js → history-BZ869y2d.js} +18 -18
  170. package/dist/{history-9ToM-rJ6.cjs → history-MxYUUwkm.cjs} +1 -1
  171. package/dist/index-DVqMfQVc.cjs +612 -0
  172. package/dist/{index-Bdq33405.js → index-DwPJu6XM.js} +1159 -1128
  173. package/dist/{insarDeformChart-Ls-cdqaP.js → insarDeformChart-5BhCUq8L.js} +24 -17
  174. package/dist/insarDeformChart-Ca3AMsBk.cjs +1 -0
  175. package/dist/{insarImageViewer-Dnke9JDG.js → insarImageViewer-DHNxmLpa.js} +41 -34
  176. package/dist/insarImageViewer-DWPsoHz6.cjs +1 -0
  177. package/dist/{kds-B4BKGG0r.js → kds-BYZC4pIM.js} +57 -50
  178. package/dist/{kds-BjX5tXhF.cjs → kds-Dpf_3WWj.cjs} +2 -2
  179. package/dist/{kpiCard-C77vHJ_E.js → kpiCard-CStPtl-c.js} +5 -4
  180. package/dist/kpiCard-OLJgA48-.cjs +2 -0
  181. package/dist/{landslideMap-BEkbnCqP.js → landslideMap-BUq0x7rd.js} +34 -33
  182. package/dist/landslideMap-JTdoQjW-.cjs +1 -0
  183. package/dist/{landslideWarning-C5upI2cf.js → landslideWarning-VAn9XGUj.js} +55 -54
  184. package/dist/landslideWarning-ZA5LCsIr.cjs +1 -0
  185. package/dist/{layerTabs-DoGw1Jfv.js → layerTabs-CAJ6f-2W.js} +40 -38
  186. package/dist/layerTabs-CdhowHB1.cjs +1 -0
  187. package/dist/{leaflet-src-BUWIqhPn.cjs → leaflet-src-CxFQ_Cn7.cjs} +1 -1
  188. package/dist/{leaflet-src-DFE_g2gF.js → leaflet-src-DNO2-OsP.js} +1 -1
  189. package/dist/{lerc-CXc9KSRL.js → lerc-bF2jqjoV.js} +2 -2
  190. package/dist/{lerc-BBgQP785.cjs → lerc-qU4WKXeS.cjs} +1 -1
  191. package/dist/{lin-ClO2MqZl.cjs → lin-BHI2KgyW.cjs} +2 -2
  192. package/dist/{lin-Difz8N88.js → lin-DbQw7wZw.js} +20 -18
  193. package/dist/linIndass-CIrObeZT.cjs +2 -0
  194. package/dist/{linIndass-DqXVOBh3.js → linIndass-Cd9Hjzs_.js} +31 -30
  195. package/dist/lst-BRsEe-Hq.cjs +1 -0
  196. package/dist/{lst-4RMMZZkY.js → lst-C3C2m1v_.js} +40 -39
  197. package/dist/{manualEntry-B3_4Z-Lj.js → manualEntry-B8TDMcDg.js} +29 -22
  198. package/dist/manualEntry-C3_WtYz8.cjs +1 -0
  199. package/dist/{mapBackground-B3OHQsXZ.js → mapBackground-BrVIQUcT.js} +21 -20
  200. package/dist/{mapBackground-Bmt-oZt6.cjs → mapBackground-Du7R_ICY.cjs} +2 -2
  201. package/dist/{mappingList-DVj7H206.js → mappingList-BpJUawmv.js} +22 -20
  202. package/dist/mappingList-C5OZ8oUx.cjs +1 -0
  203. package/dist/{markdownViewer-fheM5uV4.js → markdownViewer-CoRrvdY7.js} +16 -15
  204. package/dist/{markdownViewer-BAuNEWRt.cjs → markdownViewer-D96bwxEt.cjs} +2 -2
  205. package/dist/materialFileUrl-CubtnHeq.js +108 -0
  206. package/dist/materialFileUrl-DfPNm265.cjs +1 -0
  207. package/dist/{mix-control-modal-BoYynGT2.cjs → mix-control-modal-DwxwW65v.cjs} +1 -1
  208. package/dist/{mix-control-modal-BBiKe4MM.js → mix-control-modal-Qg_mzyT_.js} +1 -1
  209. package/dist/{mixGrid-BUjP1qv2.js → mixGrid-CtJWul6c.js} +44 -43
  210. package/dist/mixGrid-Hj0OJjkg.cjs +1 -0
  211. package/dist/mixMap-CJzmC0IR.cjs +1 -0
  212. package/dist/{mixMap-DPIwyKuP.js → mixMap-E36SDnEa.js} +36 -35
  213. package/dist/mixModel-BMRxhvWn.cjs +3 -0
  214. package/dist/{mixModel-CIdQp4V9.js → mixModel-_McJ6OuH.js} +30 -29
  215. package/dist/{mixPie-C6OhdOCV.js → mixPie-CMOkAe9p.js} +31 -30
  216. package/dist/mixPie-MAKXeYVp.cjs +2 -0
  217. package/dist/mixdashboards.cjs +1 -1
  218. package/dist/mixdashboards.css +1 -1
  219. package/dist/mixdashboards.js +1 -1
  220. package/dist/mixiotObjectListApi-BaeBL318.js +82 -0
  221. package/dist/mixiotObjectListApi-D9OyHNQ3.cjs +1 -0
  222. package/dist/mjpegCamera-BY7pmbDc.cjs +1 -0
  223. package/dist/{mjpegCamera-Cd1vhZ5v.js → mjpegCamera-Dc4IsJA6.js} +12 -11
  224. package/dist/monitorAlert-DVNvJyTy.cjs +1 -0
  225. package/dist/{monitorAlert-DIJtH557.js → monitorAlert-F8QFOchR.js} +45 -44
  226. package/dist/monitorData-AkPbhJ9q.cjs +1 -0
  227. package/dist/{monitorData-B6jhpzVK.js → monitorData-BzqNIdrW.js} +61 -59
  228. package/dist/{monitorSpeedChart-DF5zvxs9.js → monitorSpeedChart-348U37LW.js} +22 -21
  229. package/dist/{monitorSpeedChart-EIcGs3NX.cjs → monitorSpeedChart-DVH1xihw.cjs} +2 -2
  230. package/dist/{mxa-COxjxwpC.js → mxa-CkJjCHA-.js} +29 -27
  231. package/dist/{mxa-BfwIV49n.cjs → mxa-DShU528J.cjs} +2 -2
  232. package/dist/myValue-BCeycpdO.cjs +1 -0
  233. package/dist/{myValue-Crba15Wc.js → myValue-CEfp19i2.js} +17 -16
  234. package/dist/myValueList-CAPOW8TK.cjs +1 -0
  235. package/dist/{myValueList-m2yaIcuf.js → myValueList-y3GR4AX2.js} +41 -40
  236. package/dist/objectList-4rYQk5uq.cjs +1 -0
  237. package/dist/{objectList-BwZJzrXs.js → objectList-D16yLbzD.js} +538 -599
  238. package/dist/objectListAPP-DCwTyqFp.js +1864 -0
  239. package/dist/objectListAPP-Db5beOAM.cjs +1 -0
  240. package/dist/photo-BV6rkbWO.js +811 -0
  241. package/dist/photo-D67wLRkY.cjs +1 -0
  242. package/dist/{pie-CSLVJv0Y.cjs → pie-BeRwVkTk.cjs} +2 -2
  243. package/dist/{pie-C9MU90ON.js → pie-bNKhq6ak.js} +16 -14
  244. package/dist/{placeholder-CRARTMF4.js → placeholder-_iK4rVyU.js} +26 -25
  245. package/dist/placeholder-zByzfWaH.cjs +1 -0
  246. package/dist/{pressBtn-CkYcW1a8.js → pressBtn-B-rZPXK2.js} +124 -124
  247. package/dist/pressBtn-BjqYIPC-.cjs +1 -0
  248. package/dist/processTable-ByPlSKRJ.cjs +3 -0
  249. package/dist/{processTable-BgAhGGAq.js → processTable-s_y8uups.js} +12 -11
  250. package/dist/{progressBar-BbDFps1r.cjs → progressBar-CRdA7oJT.cjs} +1 -1
  251. package/dist/{progressBar-CIPUVeaf.js → progressBar-DskxZk1P.js} +19 -18
  252. package/dist/{progressCircle-DDc5zsd6.js → progressCircle-BE_Am-AP.js} +13 -12
  253. package/dist/{progressCircle-CgkZ1EC1.cjs → progressCircle-CHe-12Hb.cjs} +1 -1
  254. package/dist/{qrcode-CQbWGVgq.cjs → qrcode-D8cFyUpL.cjs} +1 -1
  255. package/dist/{qrcode-CCu677Ad.js → qrcode-Dgth6KwU.js} +39 -38
  256. package/dist/{raceBar-CzNGSYCt.cjs → raceBar-CeybrpCB.cjs} +3 -3
  257. package/dist/{raceBar-Cn8oPhCE.js → raceBar-DV-3KFg2.js} +18 -16
  258. package/dist/rad-BerkC70H.cjs +1 -0
  259. package/dist/{rad-D_cLWeMk.js → rad-BhsfF0XI.js} +22 -20
  260. package/dist/{radarMapViewer-BaAXjsWx.js → radarMapViewer-C2dde8EN.js} +82 -81
  261. package/dist/radarMapViewer-HWzvBTzT.cjs +1 -0
  262. package/dist/{rainfallFilterBar-Bhpadat8.js → rainfallFilterBar-CiT1mvYh.js} +22 -21
  263. package/dist/rainfallFilterBar-kuAQO0M-.cjs +1 -0
  264. package/dist/rainfallTimeCurve-7uHaSkuE.cjs +1 -0
  265. package/dist/{rainfallTimeCurve-sDYapogL.js → rainfallTimeCurve-BlOnCq2M.js} +58 -56
  266. package/dist/rangeLin-BQeWFL_E.cjs +3 -0
  267. package/dist/{rangeLin-CdMOPwMP.js → rangeLin-BvKd8kEv.js} +32 -31
  268. package/dist/realtimeEvolutionMap-BUnD3JjE.cjs +1 -0
  269. package/dist/{realtimeEvolutionMap-CIH_sZ29.js → realtimeEvolutionMap-DZ6yniwl.js} +46 -44
  270. package/dist/regionBar-mMaN5NEc.cjs +3 -0
  271. package/dist/{regionBar-VB-2GpR0.js → regionBar-vp5D52Jd.js} +14 -13
  272. package/dist/{request-BHfDxLXZ.js → request-CMbwWTDF.js} +9 -9
  273. package/dist/{request-DU8pRyvu.cjs → request-DegEaaCG.cjs} +1 -1
  274. package/dist/retainer1-CF2Tr7Zt.cjs +1 -0
  275. package/dist/{retainer1-C_109Weq.js → retainer1-Xvdlh-B_.js} +17 -16
  276. package/dist/retainer2-BQVUhgcH.cjs +1 -0
  277. package/dist/{retainer2-BiHUTumr.js → retainer2-D3a-c_BA.js} +43 -42
  278. package/dist/{retainerRecordList-Cgil_g8a.js → retainerRecordList-BJbPsJ4D.js} +47 -45
  279. package/dist/retainerRecordList-Rqnoz6_6.cjs +1 -0
  280. package/dist/retainerRecordListAPP-B4IDQK3C.cjs +1 -0
  281. package/dist/retainerRecordListAPP-CNntGyA-.js +1068 -0
  282. package/dist/{ringTopN-C9AH-t3T.js → ringTopN-BFKlXqGX.js} +18 -16
  283. package/dist/ringTopN-CsouIsk1.cjs +1 -0
  284. package/dist/{riskRegionTable-Co1uxMzf.js → riskRegionTable-B6k4uM0_.js} +26 -19
  285. package/dist/riskRegionTable-DttMvHe5.cjs +1 -0
  286. package/dist/sankey-CAuBQaYh.cjs +1 -0
  287. package/dist/{sankey-Bag0ladh.js → sankey-DEQK7uU6.js} +17 -15
  288. package/dist/{scd-D9AiOiPg.js → scd-D5TicpCZ.js} +1282 -1062
  289. package/dist/scd-qaap6hGW.cjs +1 -0
  290. package/dist/{sideMenu-869HFB0p.js → sideMenu-ByyrOOYh.js} +28 -27
  291. package/dist/sideMenu-D-73DoYb.cjs +1 -0
  292. package/dist/{slopeStability-bZ0lHLjZ.js → slopeStability-BtgMH3oW.js} +44 -42
  293. package/dist/slopeStability-CTN6Kpva.cjs +1 -0
  294. package/dist/speedCurve-C5NoQCjK.cjs +1 -0
  295. package/dist/{speedCurve-DZ52XKCk.js → speedCurve-CInn7NAC.js} +43 -41
  296. package/dist/staticLine-BC-zj5yZ.cjs +1 -0
  297. package/dist/{staticLine-CyPnmKCh.js → staticLine-CLqN4lpU.js} +51 -50
  298. package/dist/stressFilterBar-Cpfbmllu.cjs +1 -0
  299. package/dist/{stressFilterBar-BAUt2bGy.js → stressFilterBar-D_QqOHna.js} +46 -45
  300. package/dist/{stressTimeCurve-IW4ArsyA.js → stressTimeCurve-1HXHUj-F.js} +64 -62
  301. package/dist/stressTimeCurve-Bp6Cevk1.cjs +1 -0
  302. package/dist/{swiper-BPS9C2GV.cjs → swiper-B8YZ2VQ2.cjs} +1 -1
  303. package/dist/{swiper-RM0GoZkW.js → swiper-D_y4Fj_D.js} +25 -24
  304. package/dist/terminalConfigList-B39cEptG.cjs +1 -0
  305. package/dist/{terminalConfigList-n7NE5NdJ.js → terminalConfigList-CHbA4y-S.js} +38 -36
  306. package/dist/terminalList-Vf-Dbybr.cjs +1 -0
  307. package/dist/{terminalList-Byb4eLcD.js → terminalList-oJFrGVtT.js} +38 -36
  308. package/dist/terminalListAPP-CdBG8krw.cjs +1 -0
  309. package/dist/terminalListAPP-DWArp2D4.js +1366 -0
  310. package/dist/{textbox-DM1AUWw8.js → textbox-D8nmoGjG.js} +13 -12
  311. package/dist/textbox-DPoyxB4u.cjs +1 -0
  312. package/dist/{timeQueryBar-Tbd9M8UT.js → timeQueryBar-DyC0iHq9.js} +21 -20
  313. package/dist/timeQueryBar-uUGotoTx.cjs +1 -0
  314. package/dist/{timeSeries-DCV2YjC2.cjs → timeSeries-BhlqgEOq.cjs} +2 -2
  315. package/dist/{timeSeries-CdpEx6bf.js → timeSeries-U91gMDDQ.js} +66 -64
  316. package/dist/timeSeriesCurve-CiRMnZRD.cjs +1 -0
  317. package/dist/{timeSeriesCurve-C1AmF6TP.js → timeSeriesCurve-DOhIS88N.js} +68 -66
  318. package/dist/{toggleBtn-BGjXjIuK.cjs → toggleBtn-CuWwHFjD.cjs} +1 -1
  319. package/dist/{toggleBtn-XS9MjfKM.js → toggleBtn-DE35dkxx.js} +46 -44
  320. package/dist/trajectoryConfigPanel-DAbF8oE9.cjs +1 -0
  321. package/dist/{trajectoryConfigPanel-BC90nD1T.js → trajectoryConfigPanel-Ye7NY6rd.js} +35 -34
  322. package/dist/{trajectoryScatter-DF_ESBn8.js → trajectoryScatter-DL7HUNJI.js} +47 -45
  323. package/dist/trajectoryScatter-Dg99HzM3.cjs +1 -0
  324. package/dist/universalConfigPanel-1svBCvD9.cjs +1 -0
  325. package/dist/{universalConfigPanel-DjNTwJkz.js → universalConfigPanel-CkyIDl_x.js} +50 -49
  326. package/dist/{universalTable-BY9vRraC.js → universalTable--dpnyNO2.js} +56 -54
  327. package/dist/universalTable-D8w7FQbl.cjs +2 -0
  328. package/dist/useMixiotPanelSurface-CAZgexY5.cjs +1 -0
  329. package/dist/useMixiotPanelSurface-DRl3cZvc.js +22 -0
  330. package/dist/useTableBodyHeight-CwrQvi7M.js +21 -0
  331. package/dist/useTableBodyHeight-pf87uGjw.cjs +1 -0
  332. package/dist/{video-DDvDGDql.js → video-BmMSRRa_.js} +5 -4
  333. package/dist/{video-8_Sf1uz0.cjs → video-RGIZoUn6.cjs} +2 -2
  334. package/dist/videoMonitor-Bo5T0MT_.cjs +1 -0
  335. package/dist/{videoMonitor-sce5N4Q5.js → videoMonitor-uf6tt2E6.js} +34 -33
  336. package/dist/{vlu-BKeYJtOO.js → vlu-D8l5zE_P.js} +24 -23
  337. package/dist/vlu-DEo_h1qN.cjs +1 -0
  338. package/dist/warningOverview-A5AA_vCc.cjs +1 -0
  339. package/dist/{warningOverview-CG5mwtaO.js → warningOverview-CA0PikjV.js} +31 -30
  340. package/dist/{weather-CWvAqxgX.cjs → weather-D20MGzuJ.cjs} +1 -1
  341. package/dist/{weather-BrX2a1an.js → weather-DuseqeNF.js} +19 -18
  342. package/dist/{windLin-BbbsSwuF.cjs → windLin-BU6Q87dE.cjs} +1 -1
  343. package/dist/{windLin-P4Gs2aBB.js → windLin-D8AUL_dV.js} +58 -57
  344. package/package.json +120 -120
  345. package/dist/BaseComponent-CNXUpPY1.cjs +0 -1
  346. package/dist/UniverSheet-CntkzcVZ.cjs +0 -1
  347. package/dist/accelerationChart-DLV-1mpA.cjs +0 -6
  348. package/dist/actionItem-CFxzHf4E.cjs +0 -1
  349. package/dist/alarmLevelChart-DCC6D1fH.cjs +0 -2
  350. package/dist/alertTable-BREZBeS5.cjs +0 -1
  351. package/dist/aliasObjectSelectorDemo-DunKWEkT.cjs +0 -1
  352. package/dist/annualRainfallChart-BJyoUBDn.cjs +0 -1
  353. package/dist/aqiIndass-B441j8CT.cjs +0 -3
  354. package/dist/areaDeformCurve-Dj405Jil.cjs +0 -1
  355. package/dist/arrayCard-B7zb1dFi.cjs +0 -1
  356. package/dist/audio-BfsYRWbm.cjs +0 -1
  357. package/dist/bmp-DIkLqzRN.cjs +0 -1
  358. package/dist/box-kXjrgG2u.cjs +0 -1
  359. package/dist/chartConfigPanel-DN4LMy8-.cjs +0 -1
  360. package/dist/clock-EbmFBRb-.cjs +0 -1
  361. package/dist/clt-C-9xGiKs.cjs +0 -1
  362. package/dist/cmc-CFa8Q3tu.cjs +0 -1
  363. package/dist/conclusionCard-Dlg5GWlE.cjs +0 -1
  364. package/dist/controlList-C1vhlonT.cjs +0 -1
  365. package/dist/controlRecordList-BhK7KtLR.cjs +0 -1
  366. package/dist/crd-CgxqxwKV.cjs +0 -1
  367. package/dist/ctrBtn-BSJ9c7Pt.cjs +0 -1
  368. package/dist/ctrSet-B9M4yI53.cjs +0 -1
  369. package/dist/ctrSwitch-C6dUn_qm.js +0 -206
  370. package/dist/ctrSwitch-ZvMCYKvG.cjs +0 -1
  371. package/dist/dataManagement-CNrEa_zB.cjs +0 -1
  372. package/dist/datetime-CAyDWKE8.cjs +0 -1
  373. package/dist/deepClusterSlipSurface-DzoyF6i1.cjs +0 -1
  374. package/dist/deepDataMatrix--AstWPiL.cjs +0 -1
  375. package/dist/deepDisplacementChart-BnT1ZdfR.cjs +0 -6
  376. package/dist/deepDisplacementChart-DOPij7KP.cjs +0 -5
  377. package/dist/deepDisplacementView-u1IPcbxN.cjs +0 -8
  378. package/dist/deepNodeTemperatureChart-CD3JbqkA.cjs +0 -1
  379. package/dist/deepTangentAngleChart-BCAauuDY.cjs +0 -1
  380. package/dist/deepTemperatureField-BxuKsrtc.cjs +0 -1
  381. package/dist/deepTrendChart-6L4cCHgh.cjs +0 -1
  382. package/dist/deviceOnlineStatus-WkwzGom4.cjs +0 -2
  383. package/dist/deviceStatus-BoIv8fbr.cjs +0 -1
  384. package/dist/displacementDataTable-BwcxrsuU.cjs +0 -1
  385. package/dist/displacementTrajectoryChart-BOPIBgi5.cjs +0 -22
  386. package/dist/displacementTrendChart-CI8i0oQY.cjs +0 -5
  387. package/dist/emergencyPlan-BRFhMubg.cjs +0 -1
  388. package/dist/evn-B05d7LtF.cjs +0 -1
  389. package/dist/evolutionChart-y2mkLVwU.cjs +0 -1
  390. package/dist/fileViewer-Dy2fdABW.cjs +0 -1
  391. package/dist/filterBar-CcrUdD-O.cjs +0 -1
  392. package/dist/fireCombustionCurve-B-6MZLul.cjs +0 -1
  393. package/dist/fireFilterBar-C9b_Ohvr.cjs +0 -1
  394. package/dist/fireHistoryTable-5sG5FDCD.cjs +0 -3
  395. package/dist/gag-CDX99Ta4.cjs +0 -1
  396. package/dist/gasStationList-Dl9qawf_.cjs +0 -1
  397. package/dist/globalObjectSelector-Bz2XhgxT.cjs +0 -1
  398. package/dist/gnssFilterBar-BT19n0j_.cjs +0 -1
  399. package/dist/gnssHistoryTable-CrS2qO6S.cjs +0 -3
  400. package/dist/gnssSectionProfile-_KbP1NXU.cjs +0 -1
  401. package/dist/gnssTimeSeriesChart-BgFoXAZv.cjs +0 -1
  402. package/dist/gnssXYTrajectory-C1N3RWzp.cjs +0 -5
  403. package/dist/grd-DtDoJOOa.cjs +0 -1
  404. package/dist/grdIndass-ci3JkvGZ.cjs +0 -1
  405. package/dist/grg-C2qVuXYE.cjs +0 -1
  406. package/dist/gridview-BLAlr5uj.cjs +0 -1
  407. package/dist/groundwaterFilterBar-1E1j67JT.cjs +0 -1
  408. package/dist/groundwaterProfileChart-CS9xelz8.cjs +0 -11
  409. package/dist/groundwaterTimeCurve-DYiDLgVY.cjs +0 -1
  410. package/dist/headerBar-OwCxpc4o.cjs +0 -1
  411. package/dist/index-D8dh_6Qd.cjs +0 -612
  412. package/dist/insarDeformChart-CSQ7fc2p.cjs +0 -1
  413. package/dist/insarImageViewer-DvaRS1zr.cjs +0 -1
  414. package/dist/kpiCard-oLpk5d4m.cjs +0 -2
  415. package/dist/landslideMap-CO8o7T8J.cjs +0 -1
  416. package/dist/landslideWarning-BZXa5qTB.cjs +0 -1
  417. package/dist/layerTabs-BxRAsklw.cjs +0 -1
  418. package/dist/linIndass-Bb7UA-zk.cjs +0 -2
  419. package/dist/lst-Dri1MTDI.cjs +0 -1
  420. package/dist/manualEntry-D74dgZv8.cjs +0 -1
  421. package/dist/mappingList-CBN7ArkQ.cjs +0 -1
  422. package/dist/mixGrid-DTj2pmFW.cjs +0 -1
  423. package/dist/mixMap-B4T4R6kA.cjs +0 -1
  424. package/dist/mixModel-BzilRtjf.cjs +0 -3
  425. package/dist/mixPie-DtQm-LGp.cjs +0 -2
  426. package/dist/mjpegCamera-Lu3UHJ83.cjs +0 -1
  427. package/dist/monitorAlert-Ctt2kCxQ.cjs +0 -1
  428. package/dist/monitorData-D_tMbx_Y.cjs +0 -1
  429. package/dist/myValue-FZPOucSS.cjs +0 -1
  430. package/dist/myValueList-XIDK3ove.cjs +0 -1
  431. package/dist/objectList-BtbxHtJj.cjs +0 -1
  432. package/dist/photo-BITvEhKG.cjs +0 -1
  433. package/dist/photo-CjulDHTM.js +0 -873
  434. package/dist/placeholder-3kajeeeb.cjs +0 -1
  435. package/dist/pressBtn-pUcQtd5n.cjs +0 -1
  436. package/dist/processTable-CDulvQlu.cjs +0 -3
  437. package/dist/rad-Dk4PrnyI.cjs +0 -1
  438. package/dist/radarMapViewer-TJIPACdT.cjs +0 -1
  439. package/dist/rainfallFilterBar-Myq0MBCf.cjs +0 -1
  440. package/dist/rainfallTimeCurve-BUI-RlnG.cjs +0 -1
  441. package/dist/rangeLin-DYCZ8wVc.cjs +0 -3
  442. package/dist/realtimeEvolutionMap-BwyQdAhL.cjs +0 -1
  443. package/dist/regionBar-DsxqfirI.cjs +0 -3
  444. package/dist/retainer1-CSqjvY4k.cjs +0 -1
  445. package/dist/retainer2-Bqlwvr53.cjs +0 -1
  446. package/dist/retainerRecordList-DWZ3WDiz.cjs +0 -1
  447. package/dist/ringTopN-Bp0er_zV.cjs +0 -1
  448. package/dist/riskRegionTable-B3bzMaR_.cjs +0 -1
  449. package/dist/sankey-B4BJ4xIo.cjs +0 -1
  450. package/dist/scd-Dgd3KDpk.cjs +0 -1
  451. package/dist/sideMenu-BQ5rrGBr.cjs +0 -1
  452. package/dist/slopeStability-D96aiykf.cjs +0 -1
  453. package/dist/speedCurve-5nWqVAzz.cjs +0 -1
  454. package/dist/staticLine-DUCg-0tI.cjs +0 -1
  455. package/dist/stressFilterBar-CorWdmpQ.cjs +0 -1
  456. package/dist/stressTimeCurve-Bci50Cwv.cjs +0 -1
  457. package/dist/terminalConfigList-O881ke5o.cjs +0 -1
  458. package/dist/terminalList-C9TB2cJH.cjs +0 -1
  459. package/dist/textbox-BMWnbPvz.cjs +0 -1
  460. package/dist/timeQueryBar-C6ZheMvD.cjs +0 -1
  461. package/dist/timeSeriesCurve-DRlr5n3U.cjs +0 -1
  462. package/dist/trajectoryConfigPanel-DJ6fOeb1.cjs +0 -1
  463. package/dist/trajectoryScatter-C7kfSkyS.cjs +0 -1
  464. package/dist/universalConfigPanel-PO1hdgjw.cjs +0 -1
  465. package/dist/universalTable-QAb6UKCq.cjs +0 -2
  466. package/dist/useMixiotPanelSurface-BMNrWBMF.cjs +0 -1
  467. package/dist/useMixiotPanelSurface-DlVkLttU.js +0 -40
  468. package/dist/videoMonitor-BKLD_aQs.cjs +0 -1
  469. package/dist/vlu-C0XLDKKk.cjs +0 -1
  470. package/dist/warningOverview--n7crFnZ.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";var P=Object.defineProperty,W=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var O=(l,t,r)=>t in l?P(l,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[t]=r,M=(l,t)=>{for(var r in t||(t={}))$.call(t,r)&&O(l,r,t[r]);if(D)for(var r of D(t))U.call(t,r)&&O(l,r,t[r]);return l},T=(l,t)=>W(l,A(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),z=require("./ele-box-icon-NZ0BTjhm.cjs"),j=require("./index-D8dh_6Qd.cjs"),q=["data-placeholder-id","data-placeholder-name","data-x","data-y","data-w","data-h"],G={key:0,class:"mix-placeholder__label"},H={class:"mix-placeholder__title"},J={key:0,class:"mix-placeholder__name"},K={class:"mix-placeholder__meta"},Q={key:0,class:"mix-placeholder__pixel"},X={class:"mix-placeholder__pixel-pos"},Y={key:1,class:"mix-placeholder__desc"},Z={key:0,class:"mix-placeholder__name-runtime"},ee={DEFAULT_ICON:z.DEFAULT_ICON,ACTIVE_ICON:z.ACTIVE_ICON,NAME_CN:"占位符",NAME_EN:"Placeholder",ORDER:99},te={placeholderName:{value:"",type:"string",label:"占位符名称"},description:{value:"",type:"string",label:"描述"},bgColor:{value:"rgba(64, 158, 255, 0.08)",type:"color",label:"填充色"},borderColor:{value:"#409EFF",type:"color",label:"边框颜色"},borderWidth:{value:2,type:"number",label:"边框宽度",min:0,max:10},borderStyle:{value:"dashed",type:"radio",label:"边框样式",option:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]},radiusSize:{value:4,type:"number",label:"圆角",min:0,max:50},showLabel:{value:!0,type:"checkbox",label:"显示标签"},showInPreview:{value:!1,type:"checkbox",label:"运行时显示边框"}},oe=[],le={},ae={DEFAULT:ee,OPTIONS:te,SOURCE:oe,COMMON:le},ne=e.defineComponent(T(M({},ae),{__name:"placeholder",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(l){const t=l,r=(o,a)=>{var c,i;const n=(i=(c=t.conf)==null?void 0:c.options)==null?void 0:i[o];return n==null?a:typeof n=="object"&&"value"in n?n.value:n},d=e.computed(()=>({placeholderName:r("placeholderName",""),description:r("description",""),bgColor:r("bgColor","rgba(64, 158, 255, 0.08)"),borderColor:r("borderColor","#409EFF"),borderWidth:Number(r("borderWidth",2))||0,borderStyle:r("borderStyle","dashed"),radiusSize:Number(r("radiusSize",4))||0,showLabel:r("showLabel",!0)!==!1,showInPreview:r("showInPreview",!1)===!0})),_=e.computed(()=>{var o,a;return d.value.placeholderName||((o=t.conf)==null?void 0:o.name)||((a=t.conf)==null?void 0:a.id)||""}),b=e.computed(()=>{var o,a;return d.value.placeholderName||((o=t.conf)==null?void 0:o.caption)||((a=t.conf)==null?void 0:a.name)||""}),F=e.computed(()=>({backgroundColor:d.value.bgColor,borderColor:d.value.borderColor,borderStyle:d.value.borderStyle,borderWidth:`${d.value.borderWidth}px`,borderRadius:`${d.value.radiusSize}px`})),L=e.computed(()=>({borderColor:d.value.borderColor,borderStyle:d.value.borderStyle,borderWidth:`${Math.max(1,d.value.borderWidth)}px`,borderRadius:`${d.value.radiusSize}px`,backgroundColor:"transparent"})),m=e.ref(null),S=e.useTemplateRef("rootRef"),N=()=>{const o=S.value;if(!o)return{gridItem:null,canvas:null};const a=o.closest(".vgl-item")||o.closest(".vue-grid-item"),n=o.closest(".canvas");return{gridItem:a,canvas:n}},x=()=>{const{gridItem:o,canvas:a}=N();if(!o||!a)return;const n=o.getBoundingClientRect(),c=a.getBoundingClientRect(),i=a.offsetWidth||1,u=c.width/i||1,s=u===0?1:u;m.value={left:Math.round((n.left-c.left)/s),top:Math.round((n.top-c.top)/s),width:Math.round(n.width/s),height:Math.round(n.height/s)}},y=o=>{var a,n,c,i,u,s,h,v,f;if(typeof window!="undefined")try{window.dispatchEvent(new CustomEvent(`mix-placeholder:${o}`,{detail:{id:((a=t.conf)==null?void 0:a.id)||"",name:_.value,grid:{x:(c=(n=t.conf)==null?void 0:n.x)!=null?c:0,y:(u=(i=t.conf)==null?void 0:i.y)!=null?u:0,w:(h=(s=t.conf)==null?void 0:s.w)!=null?h:0,h:(f=(v=t.conf)==null?void 0:v.h)!=null?f:0},pixel:m.value,mode:t.mode}}))}catch(g){}};let p=null;return e.onMounted(()=>{e.nextTick(()=>{x(),y("registered");const{gridItem:o}=N();o&&typeof ResizeObserver!="undefined"&&(p=new ResizeObserver(()=>{x(),y("updated")}),p.observe(o))})}),e.onBeforeUnmount(()=>{p==null||p.disconnect(),p=null,y("unregistered")}),e.watch(()=>{var o,a,n,c,i;return[(o=t.conf)==null?void 0:o.x,(a=t.conf)==null?void 0:a.y,(n=t.conf)==null?void 0:n.w,(c=t.conf)==null?void 0:c.h,(i=t.conf)==null?void 0:i.options,t.mode]},()=>{e.nextTick(()=>{x(),y("updated")})},{deep:!0}),(o,a)=>{var n,c,i,u,s,h,v,f,g,w,C,E,k,B,I,R,V;return e.openBlock(),e.createElementBlock("div",{ref_key:"rootRef",ref:S,class:"mix-placeholder",style:e.normalizeStyle({pointerEvents:l.mode==="edit"?"auto":void 0}),"data-placeholder-id":((n=l.conf)==null?void 0:n.id)||"","data-placeholder-name":_.value,"data-x":(i=(c=l.conf)==null?void 0:c.x)!=null?i:0,"data-y":(s=(u=l.conf)==null?void 0:u.y)!=null?s:0,"data-w":(v=(h=l.conf)==null?void 0:h.w)!=null?v:0,"data-h":(g=(f=l.conf)==null?void 0:f.h)!=null?g:0},[l.mode==="edit"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-placeholder__frame mix-placeholder__frame--edit",style:e.normalizeStyle(F.value)},[d.value.showLabel?(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",H,[a[0]||(a[0]=e.createElementVNode("span",{class:"mix-placeholder__tag"},"占位符",-1)),b.value?(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(b.value),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",K,[e.createElementVNode("span",null,"x:"+e.toDisplayString((C=(w=l.conf)==null?void 0:w.x)!=null?C:0),1),e.createElementVNode("span",null,"y:"+e.toDisplayString((k=(E=l.conf)==null?void 0:E.y)!=null?k:0),1),e.createElementVNode("span",null,"w:"+e.toDisplayString((I=(B=l.conf)==null?void 0:B.w)!=null?I:0),1),e.createElementVNode("span",null,"h:"+e.toDisplayString((V=(R=l.conf)==null?void 0:R.h)!=null?V:0),1)]),m.value?(e.openBlock(),e.createElementBlock("div",Q,[e.createTextVNode(e.toDisplayString(m.value.width)+"px × "+e.toDisplayString(m.value.height)+"px ",1),e.createElementVNode("span",X,"@("+e.toDisplayString(m.value.left)+", "+e.toDisplayString(m.value.top)+")",1)])):e.createCommentVNode("",!0),d.value.description?(e.openBlock(),e.createElementBlock("div",Y,e.toDisplayString(d.value.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],4)):d.value.showInPreview?(e.openBlock(),e.createElementBlock("div",{key:1,class:"mix-placeholder__frame mix-placeholder__frame--runtime",style:e.normalizeStyle(L.value)},[d.value.showLabel&&b.value?(e.openBlock(),e.createElementBlock("span",Z,e.toDisplayString(b.value),1)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default",{},void 0,!0)],12,q)}}})),re=j._export_sfc(ne,[["__scopeId","data-v-3a1bcd36"]]);exports.default=re;
@@ -1 +0,0 @@
1
- "use strict";var H=Object.defineProperty,U=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols,J=Object.getPrototypeOf,K=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,W=Reflect.get;var O=(n,l,o)=>l in n?H(n,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[l]=o,Z=(n,l)=>{for(var o in l||(l={}))K.call(l,o)&&O(n,o,l[o]);if(A)for(var o of A(l))Y.call(l,o)&&O(n,o,l[o]);return n},B=(n,l)=>U(n,G(l));var F=(n,l,o)=>W(J(n),o,l);var I=(n,l,o)=>new Promise((m,p)=>{var v=i=>{try{f(o.next(i))}catch(r){p(r)}},C=i=>{try{f(o.throw(i))}catch(r){p(r)}},f=i=>i.done?m(i.value):Promise.resolve(i.value).then(v,C);f((o=o.apply(n,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const Q=require("./BaseComponent-CNXUpPY1.cjs"),L=require("./index-D8dh_6Qd.cjs"),X=require("./titleStyle-NSnz6cUg.cjs"),T=require("./mix-control-modal-BoYynGT2.cjs"),x=require("element-plus"),e2="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%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(-318.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",t2="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%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(-318.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",o2={class:"font-semibold"},l2={class:"flex items-center"},n2={class:"mix-body"},r2={class:"w-full flex flex-wrap content-start"},a2=["onMousedown","onMouseup"],s2={DEFAULT_ICON:e2,ACTIVE_ICON:t2,NAME_CN:"双控",NAME_EN:"Dual Control",ORDER:3},c2={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,method:{value:"alway",type:"select",label:"component.switch.method",options:L.CONTROL_OPTIONS}},j=[{upper:{command:"Control_01",code:0},down:{command:"Control_01",code:1},name:"关机",color:"#c92309",code:0},{upper:{command:"Control_01",code:0},down:{command:"Control_01",code:1},name:"开机",color:"#217406",code:1}],i2=["name","color","upper","down"],d2={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},u2=["mosaic"],m2={DEFAULT:s2,OPTIONS:c2,DATA:j,PARAMS:i2,SOURCE:u2,COMMON:d2},C2=e.defineComponent(B(Z({},m2),{__name:"pressBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""},authorized:{type:Array,default:()=>[]}},setup(n){const l=n,o=e.reactive({authorized:[],password:""}),m=e.reactive({text:"",color:""}),p=e.ref(null),v=e.ref(!0),C=e.ref(!1);class f extends Q.BaseComponent{extractStyles(){var a,d,c,g,u,h,y,_,b,M,k,z,E,N;const{options:t}=this.props.conf;return{bgColor:((a=t==null?void 0:t.bgColor)==null?void 0:a.value)||"#fff",titleColor:((d=t==null?void 0:t.titleColor)==null?void 0:d.value)||"#111",textColor:((c=t==null?void 0:t.textColor)==null?void 0:c.value)||"#fff",titleSize:((g=t==null?void 0:t.titleSize)==null?void 0:g.value)||16,textSize:((u=t==null?void 0:t.textSize)==null?void 0:u.value)||14,itemHeight:((h=t==null?void 0:t.itemHeight)==null?void 0:h.value)||42,radiusSize:(_=(y=t==null?void 0:t.radiusSize)==null?void 0:y.value)!=null?_:8,items:(M=(b=t==null?void 0:t.items)==null?void 0:b.value)!=null?M:2,method:(z=(k=t==null?void 0:t.method)==null?void 0:k.value)!=null?z:"alway",isHideTitle:(N=(E=t==null?void 0:t.isHideTitle)==null?void 0:E.value)!=null?N:!1}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:j}onPreview(){return I(this,null,function*(){yield F(f.prototype,this,"onPreview").call(this);const t=yield T.getAuthorized(this.props);o.authorized=t.authorized,o.password=t.password})}setSocketData(t){var c,g;if(!t)return;const{common:a}=this.props.conf,d=this.extractDataValue(t,a.statusFv);if(d!=null){const u=a.status.find(h=>String(h.code)===String(d));m.text=(c=u==null?void 0:u.text)!=null?c:"",m.color=(g=u==null?void 0:u.color)!=null?g:""}}}const i=new f(l,"pressBtn");i.setupLifecycle();const r=i.getStyle(),V=e.computed(()=>X.generateTitleStyle(l.conf.options)),D=e.computed(()=>`${(100/r.value.items).toFixed(2)||100}%`),w=e.computed(()=>{const s=r.value.method||"alway";return s==="once"&&v.value||s==="alway"&&!C.value}),P=()=>{C.value||(p.value.modal.visible=!0)},R=()=>{C.value=!0,r.value.method==="once"&&(v.value=!1)},$=s=>{if(w.value)return;if(o.authorized.indexOf(s.down.command)===-1){x.ElMessage.error("您没有控制权限!");return}const{common:t}=l.conf,a=JSON.parse(sessionStorage.getItem(L.ALIAS_MAPPING_KEY)||"{}");let c={block_mapping:"pusher",action:"publish_command",object_id:t.useAlias?a[t.object_alias]:t.object_id||l.uid,command:s.down.command.toString(),value:s.down.code.toString()||"",control:o.password,rule:r.value.method};S(c,"down")},q=s=>{if(w.value)return;if(o.authorized.indexOf(s.upper.command)===-1){x.ElMessage.error("您没有控制权限!");return}const{common:t}=l.conf,a=JSON.parse(sessionStorage.getItem(L.ALIAS_MAPPING_KEY)||"{}");let c={block_mapping:"pusher",action:"publish_command",object_id:t.useAlias?a[t.object_alias]:t.object_id||l.uid,command:s.upper.command.toString(),value:s.upper.code.toString()||"",control:o.password,rule:r.value.method};S(c,"up")},S=(s,t)=>{L.api.platform(a=>{a.code===200&&(x.ElMessage.success(a.msg),v.value=!1,r.value.method==="alway"&&t==="up"&&(C.value=!1))},s)};return(s,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(r).bgColor,borderRadius:`${e.unref(r).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(V.value)},[e.createElementVNode("div",o2,e.toDisplayString(n.conf.caption||n.conf.name),1),e.createElementVNode("div",l2,[e.unref(r).method!=="never"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["verify-btn",{disabled:C.value}]),onClick:P},"验证密码",2)):e.createCommentVNode("",!0),m.text?(e.openBlock(),e.createElementBlock("div",{key:1,class:"status-btn",style:e.normalizeStyle({backgroundColor:m.color,color:e.unref(r).textColor})},e.toDisplayString(m.text),5)):e.createCommentVNode("",!0)])],4),e.createElementVNode("div",n2,[e.createElementVNode("div",r2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.conf.data,(a,d)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:d,style:e.normalizeStyle({width:D.value,height:`${e.unref(r).itemHeight}px`,fontSize:`${e.unref(r).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:w.value}]),style:e.normalizeStyle({backgroundColor:a.color,color:e.unref(r).textColor}),onMousedown:c=>$(a),onMouseup:c=>q(a)},e.toDisplayString(a.name),47,a2)],4))),128))])]),e.renderSlot(s.$slots,"default",{},void 0,!0)],4),e.createVNode(T._sfc_main,{ref_key:"controlRef",ref:p,onSubmit:R,password:o.password},null,8,["password"])],64))}})),f2=L._export_sfc(C2,[["__scopeId","data-v-dda3873e"]]);exports.default=f2;
@@ -1,3 +0,0 @@
1
- "use strict";var B=Object.defineProperty,L=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var C=(i,n,a)=>n in i?B(i,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[n]=a,k=(i,n)=>{for(var a in n||(n={}))z.call(n,a)&&C(i,a,n[a]);if(S)for(var a of S(n))F.call(n,a)&&C(i,a,n[a]);return i},w=(i,n)=>L(i,$(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),j=require("./safeI18n-DR20q_h1.cjs"),A=require("./BaseComponent-CNXUpPY1.cjs"),I=require("./index-D8dh_6Qd.cjs"),M=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-evn-icon-DUQMS-9T.cjs"),R={class:"title-text"},U={class:"title-actions"},H=["value"],q={class:"mix-body"},P={class:"pt-thead"},Y={class:"pt-th pt-col-stage"},G={class:"pt-th pt-col-duration"},W={class:"pt-th pt-col-status"},J={class:"pt-td pt-col-stage"},K={class:"pt-td pt-col-duration"},Q={class:"pt-td pt-col-status"},X={key:0,class:"pt-empty"},Z={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"流程效率表",NAME_EN:"Process Table",ORDER:12},ee={bgColor:"#fff",titleColor:"#111",textColor:"#666",radiusSize:8,textSize:13,rowHeight:44,isHideTitle:!1,description:"关注预警发出、任务下达、现场反馈到隐患关闭全过程。",showFilter:!0,defaultLevel:{value:"1",type:"select",label:"component.options.lw_defaultLevel",options:[{label:"component.options.lw_level_1",value:"1"},{label:"component.options.lw_level_2",value:"2"},{label:"component.options.lw_level_3",value:"3"},{label:"component.options.lw_level_4",value:"4"},{label:"component.options.lw_level_all",value:"all"}]},btnText:"数据下载",linkChannel:{value:"landslide",type:"select",label:"component.options.lw_linkChannel",options:[{label:"component.options.lw_linkChannel_landslide",value:"landslide"},{label:"component.options.lw_linkChannel_custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.options.lw_customChannel",showWhen:{linkChannel:"custom"}}},te=[{stage:"预警推送",fv:"",object_id:"",value:1.8,unit:"min",status:"正常",statusType:"normal",level:"1"},{stage:"调度确认",fv:"",object_id:"",value:6.5,unit:"min",status:"可优化",statusType:"warn",level:"1"},{stage:"现场响应",fv:"",object_id:"",value:12.4,unit:"min",status:"波动较大",statusType:"danger",level:"1"},{stage:"隐患关闭",fv:"",object_id:"",value:3.2,unit:"h",status:"持续跟踪",statusType:"info",level:"1"}],le=[{key:"stage",label:"component.options.lw_stage",type:"string"},"fv","object_id",{key:"unit",label:"component.options.lw_unitMinH",type:"string"},{key:"status",label:"component.options.lw_statusText",type:"string"},{key:"statusType",label:"component.options.lw_statusType",type:"select",options:[{label:"component.options.lw_statusType_normal",value:"normal"},{label:"component.options.lw_statusType_warn",value:"warn"},{label:"component.options.lw_statusType_danger",value:"danger"},{label:"component.options.lw_statusType_info",value:"info"}]},{key:"level",label:"component.options.lw_level",type:"select",options:[{label:"component.options.lw_levelShort_1",value:"1"},{label:"component.options.lw_levelShort_2",value:"2"},{label:"component.options.lw_levelShort_3",value:"3"},{label:"component.options.lw_levelShort_4",value:"4"}]}],oe=["mosaic","statistics","calculate"],ne={useAlias:!1,multiObject:!0,source:"statistics"},se={DEFAULT:Z,OPTIONS:ee,DATA:te,PARAMS:le,SOURCE:oe,COMMON:ne},ae=e.defineComponent(w(k({},se),{__name:"processTable",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const n=i,a={normal:{bg:"#e7f7ec",color:"#1f9d4a"},warn:{bg:"#fff5e0",color:"#d97706"},danger:{bg:"#fde8e8",color:"#dc2626"},info:{bg:"#e0ecfd",color:"#2563eb"}};class T extends A.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#666"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",13),rowHeight:this.getOptionValue("rowHeight",44),description:this.getOptionValue("description",""),showFilter:this.getOptionValue("showFilter",!0),defaultLevel:this.getOptionValue("defaultLevel","1"),btnText:this.getOptionValue("btnText",""),linkChannel:this.getOptionValue("linkChannel","landslide"),customChannel:this.getOptionValue("customChannel","")}}getLinkChannel(){const t=this.Style.value;return(t==null?void 0:t.linkChannel)==="custom"?t.customChannel||"":(t==null?void 0:t.linkChannel)||""}setSocketData(t){var r;if(!t)return;(((r=this.props.conf)==null?void 0:r.data)||[]).forEach(m=>{const p=this.extractDataValue(t,m.fv);p!=null&&(m.value=Number(p)||0)})}}const g=new T(n,"processTable");g.setupLifecycle();const{t:c}=j.useSafeI18n(),s=g.getStyle(),b=n.conf,V=e.computed(()=>M.generateTitleStyle(n.conf.options)),x=e.computed(()=>[{label:c("component.options.lw_level_1"),value:"1"},{label:c("component.options.lw_level_2"),value:"2"},{label:c("component.options.lw_level_3"),value:"3"},{label:c("component.options.lw_level_4"),value:"4"},{label:c("component.options.lw_level_all"),value:"all"}]),u=e.ref(s.value.defaultLevel||"1");e.watch(()=>s.value.defaultLevel,l=>{l&&(u.value=l)});const v=e.computed(()=>{var t;const l=((t=n.conf)==null?void 0:t.data)||[];return u.value==="all"?l:l.filter(o=>String(o.level||"1")===String(u.value))});function h(l){const t=l==null?void 0:l.value;if(t==null||t==="")return"--";const o=(l==null?void 0:l.unit)||"",r=typeof t=="number"?Number.isInteger(t)?String(t):t.toFixed(1):String(t);return o?`${r} ${o}`:r}function N(l){const t=a[l]||a.info;return{background:t.bg,color:t.color}}function _(l){const t=String(l!=null?l:"");return/[",\n]/.test(t)?`"${t.replace(/"/g,'""')}"`:t}function O(){const l=new Date,t=o=>String(o).padStart(2,"0");return`${l.getFullYear()}${t(l.getMonth()+1)}${t(l.getDate())}_${t(l.getHours())}${t(l.getMinutes())}${t(l.getSeconds())}`}function D(){if(n.mode!=="preview")return;const l=v.value;if(!l.length)return;const t=["阶段","平均时长","状态"].join(","),o=l.map(f=>[_(f.stage),_(h(f)),_(f.status)].join(",")).join(`
2
- `),r=t+`
3
- `+o,m=u.value==="all"?"全部":`${u.value}级`,p=new Blob(["\uFEFF"+r],{type:"text/csv;charset=utf-8;"}),y=URL.createObjectURL(p),d=document.createElement("a");d.href=y,d.download=`流程效率表_${m}_${O()}.csv`,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(y)}return(l,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(s).bgColor,borderRadius:`${e.unref(s).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(V.value)},[e.createElementVNode("span",R,e.toDisplayString(e.unref(b).caption||e.unref(b).name),1),e.createElementVNode("div",U,[e.unref(s).showFilter?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:0,"onUpdate:modelValue":t[0]||(t[0]=o=>u.value=o),class:"pt-select"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,o=>(e.openBlock(),e.createElementBlock("option",{key:o.value,value:o.value},e.toDisplayString(o.label),9,H))),128))],512)),[[e.vModelSelect,u.value]]):e.createCommentVNode("",!0),e.unref(s).btnText?(e.openBlock(),e.createElementBlock("button",{key:1,class:"pt-btn",onClick:D},e.toDisplayString(e.unref(s).btnText),1)):e.createCommentVNode("",!0)])],4),e.createElementVNode("div",q,[e.unref(s).description?(e.openBlock(),e.createElementBlock("div",{key:0,class:"body-desc",style:e.normalizeStyle({fontSize:`${e.unref(s).textSize}px`,color:e.unref(s).textColor})},e.toDisplayString(e.unref(s).description),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"body-table",style:e.normalizeStyle({fontSize:`${e.unref(s).textSize}px`,color:e.unref(s).textColor})},[e.createElementVNode("div",P,[e.createElementVNode("div",Y,e.toDisplayString(e.unref(c)("component.options.lw_th_stage")),1),e.createElementVNode("div",G,e.toDisplayString(e.unref(c)("component.options.lw_th_duration")),1),e.createElementVNode("div",W,e.toDisplayString(e.unref(c)("component.options.lw_th_status")),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"pt-tr",style:e.normalizeStyle({minHeight:`${e.unref(s).rowHeight}px`})},[e.createElementVNode("div",J,e.toDisplayString(o.stage||"--"),1),e.createElementVNode("div",K,e.toDisplayString(h(o)),1),e.createElementVNode("div",Q,[e.createElementVNode("span",{class:"pt-tag",style:e.normalizeStyle(N(o.statusType))},e.toDisplayString(o.status||"--"),5)])],4))),128)),v.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",X,e.toDisplayString(e.unref(c)("component.options.lw_noData")),1))],4)]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),ie=I._export_sfc(ae,[["__scopeId","data-v-4bb64fc6"]]);exports.default=ie;
@@ -1 +0,0 @@
1
- "use strict";var y=Object.defineProperty,w=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var f=(a,e,o)=>e in a?y(a,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[e]=o,h=(a,e)=>{for(var o in e||(e={}))b.call(e,o)&&f(a,o,e[o]);if(p)for(var o of p(e))_.call(e,o)&&f(a,o,e[o]);return a},m=(a,e)=>w(a,O(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),M=require("./index-D8dh_6Qd.cjs"),E=require("./EChartComponentBase-D4wMej9X.cjs"),N=require("./titleStyle-NSnz6cUg.cjs"),Z=require("./install-B1IEhhn3.cjs"),c=require("./installCanvasRenderer-CyhM1Qpl.cjs"),k=require("./install-DV5cEgNV.cjs"),z=require("./install-CltTFs4e.cjs"),T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%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(-103.000000,%20-964.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",j="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%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(-103.000000,%20-964.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",F={class:"mix-body"},V=["id"],A={DEFAULT_ICON:T,ACTIVE_ICON:j,NAME_CN:"雷达图",NAME_EN:"Radar",ORDER:1},D={titleColor:"#111",textColor:"#111",bgColor:"#fff",borderColor:"#666",radiusSize:8,textSize:12,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},isHideTitle:!1},g=[{name:"参数一",fv:"",object_id:"",max:200},{name:"参数二",fv:"",object_id:"",max:200},{name:"参数三",fv:"",object_id:"",max:200}],q=["name","fv","object_id","max"],R=["mosaic","statistics","calculate"],I={useAlias:!1,multiObject:!1,source:"mosaic"},B={DEFAULT:A,OPTIONS:D,DATA:g,PARAMS:q,SOURCE:R,COMMON:I},$=t.defineComponent(m(h({},B),{__name:"rad",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){c.use([k.install,z.install,c.install,c.install$1,Z.install]);const e=a,o=["#ffffff","#e5e5e5"];class x extends E.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#73bff9"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),points:this.getOptionValue("points",10)}}getChartOption(){const{data:n,name:i,options:l}=this.props.conf;return{title:{show:!1,text:i,x:"center",top:"50%",textStyle:{color:"#fff",fontWeight:"normal",fontSize:28}},tooltip:{trigger:"axis",confine:!0},radar:{shape:l.type.value,axisNameGap:10,alignTicks:!1,splitNumber:4,indicator:n.map(r=>({name:r.name,max:r.max})),center:["50%","50%"],axisLine:{lineStyle:{type:"dashed",color:"#383D42"}},splitLine:{show:!0,lineStyle:{width:1,color:l.borderColor.value}},splitArea:{show:!0,areaStyle:{color:o}},axisName:{fontSize:12,color:l.textColor.value}},series:[{name:i!=null?i:"",type:"radar",tooltip:{trigger:"item"},data:[{name:i,value:[]}],itemStyle:{color:"#3F5FE3"},areaStyle:{color:"#4162ff"}}]}}getDefaultData(){return g}setHistoryData(n){if(!n)return;const i=this.chartObj.getOption();i.series[0].data[0].value=[],n.forEach(l=>{var r;i.series[0].data[0].value.push((r=l.data[0])!=null?r:0)}),this.chartObj.setOption(i)}setSocketData(n){if(!n||!this.chartObj)return;const{data:i}=this.props.conf,l=this.chartObj.getOption();l.series[0].data[0].value=[],i.forEach(r=>{const L=this.extractDataValue(n,r.fv);l.series[0].data[0].value.push(L!=null?L:0)}),this.chartObj.setOption(l)}}const s=new x(e,"radar");s.setupLifecycle();const C=s.getStyle(),v=s.getEchartId(),d=e.conf,S=t.computed(()=>N.generateTitleStyle(e.conf.options));return(u,n)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(C).bgColor,borderRadius:`${t.unref(C).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(S.value)},t.toDisplayString(t.unref(d).caption||t.unref(d).name),5),t.createElementVNode("div",F,[t.createElementVNode("div",{class:"w-full h-full",id:t.unref(v)},null,8,V)]),t.renderSlot(u.$slots,"default",{},void 0,!0)],4))}})),U=M._export_sfc($,[["__scopeId","data-v-e7d9f9aa"]]);exports.default=U;
@@ -1 +0,0 @@
1
- "use strict";var Ct=Object.defineProperty,At=Object.defineProperties;var Nt=Object.getOwnPropertyDescriptors;var Be=Object.getOwnPropertySymbols;var Vt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable;var $e=(k,p,x)=>p in k?Ct(k,p,{enumerable:!0,configurable:!0,writable:!0,value:x}):k[p]=x,De=(k,p)=>{for(var x in p||(p={}))Vt.call(p,x)&&$e(k,x,p[x]);if(Be)for(var x of Be(p))Mt.call(p,x)&&$e(k,x,p[x]);return k},Le=(k,p)=>At(k,Nt(p));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const Rt=require("./BaseComponent-CNXUpPY1.cjs"),Bt=require("./index-D8dh_6Qd.cjs"),Te=require("./ele-lin-icon-Dke_1AmT.cjs"),$t={class:"map-toolbar"},Dt={class:"toolbar-left"},Lt={class:"dropdown-wrapper"},Tt={class:"dropdown-wrapper"},It={class:"dropdown-wrapper"},Pt={class:"model-btn-wrapper"},Ot=["value","checked","onChange"],_t={class:"dropdown-item",style:{"border-bottom":"1px solid #eee","font-weight":"bold"}},Ft=["checked"],zt=["value","checked","onChange"],Ut={style:{padding:"8px","border-bottom":"1px solid #eee",background:"#f8fbff"}},Ht={style:{"max-height":"300px","overflow-y":"auto"}},Wt={class:"dropdown-item",style:{background:"#fafafa"}},jt=["checked"],Yt=["checked","onChange"],qt={class:"dropdown-item",style:{background:"#fafafa"}},Xt=["checked"],Gt=["checked","onChange"],Kt=["checked","onChange"],Zt=["width","height","viewBox"],Jt=["width","height","viewBox"],Qt=["width","height","viewBox"],en=["title","onClick"],tn=["title","onClick"],nn={key:0,class:"draw-toolbar"},ln={class:"draw-tip"},on={DEFAULT_ICON:Te.DEFAULT_ICON,ACTIVE_ICON:Te.ACTIVE_ICON,NAME_CN:"雷达地图查看器",NAME_EN:"Radar Map Viewer",ORDER:2},rn={bgColor:{value:"#0b1a31",type:"color",label:"背景色"},canvasWidth:{value:3e3,type:"number",label:"画布宽度"},canvasHeight:{value:2500,type:"number",label:"画布高度"},geologyModelUrl:{value:"",type:"string",label:"地质模型图片URL"},dtmModelUrl:{value:"",type:"string",label:"DTM面图片URL"},uavModelUrl:{value:"",type:"string",label:"无人机地图URL"},linkChannel:{value:"radarMonitor",type:"select",label:"联动频道",options:[{label:"雷达监测",value:"radarMonitor"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},an=[{name:"雷达1(北)",fv:"",object_id:"",color:"#409EFF",lng:"106.7120",lat:"26.5790",elevation:"1520",region:"南帮",x:1500,y:200,angle:180,targetSide:"bottom"},{name:"雷达2(东)",fv:"",object_id:"",color:"#E6A23C",lng:"106.7180",lat:"26.5810",elevation:"1480",region:"西帮",x:2650,y:1250,angle:270,targetSide:"left"},{name:"雷达3(南)",fv:"",object_id:"",color:"#67C23A",lng:"106.7120",lat:"26.5840",elevation:"1500",region:"北帮",x:1500,y:2300,angle:0,targetSide:"top"},{name:"雷达4(西)",fv:"",object_id:"",color:"#909399",lng:"106.7060",lat:"26.5810",elevation:"1460",region:"东帮",x:350,y:1250,angle:90,targetSide:"right"}],sn=["name","fv","object_id","color","lng","lat","elevation","region","x","y","angle","targetSide"],cn=["mosaic"],un={source:"mosaic"},dn={DEFAULT:on,OPTIONS:rn,DATA:an,PARAMS:sn,SOURCE:cn,COMMON:un},gn=e.defineComponent(Le(De({},dn),{__name:"radarMapViewer",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(k){const p=k;class x extends Rt.BaseComponent{extractStyles(){var i,r,a,v,f,g,d,h;const{options:t}=this.props.conf,l=((i=t==null?void 0:t.linkChannel)==null?void 0:i.value)||"radarMonitor",o=((r=t==null?void 0:t.customChannel)==null?void 0:r.value)||"";return{bgColor:((a=t==null?void 0:t.bgColor)==null?void 0:a.value)||"#0b1a31",canvasWidth:((v=t==null?void 0:t.canvasWidth)==null?void 0:v.value)||3e3,canvasHeight:((f=t==null?void 0:t.canvasHeight)==null?void 0:f.value)||2500,geologyModelUrl:((g=t==null?void 0:t.geologyModelUrl)==null?void 0:g.value)||"",dtmModelUrl:((d=t==null?void 0:t.dtmModelUrl)==null?void 0:d.value)||"",uavModelUrl:((h=t==null?void 0:t.uavModelUrl)==null?void 0:h.value)||"",linkChannel:l==="custom"&&o?o:l}}onLinkEvent(t){Et(t)}}const E=new x(p,"radarMapViewer");E.setupLifecycle();const m=E.getStyle(),c=1500,u=1250,Ie=["#F57676","#FFA500","#E6A23C","#66B1FF","#71C446"],D=[{w:2200,h:1600},{w:1900,h:1400},{w:1600,h:1200},{w:1300,h:1e3},{w:1e3,h:800}],Pe=[{id:"R1",name:"雷达1(北)",region:"南帮",x:c,y:u-1050,angle:180,targetSide:"bottom",isOnline:!0},{id:"R2",name:"雷达2(东)",region:"西帮",x:c+1150,y:u,angle:270,targetSide:"left",isOnline:!0},{id:"R3",name:"雷达3(南)",region:"北帮",x:c,y:u+1050,angle:0,targetSide:"top",isOnline:!0},{id:"R4",name:"雷达4(西)",region:"东帮",x:c-1150,y:u,angle:90,targetSide:"right",isOnline:!1}],Oe=()=>{var t;const n=(t=p.conf)==null?void 0:t.data;return!Array.isArray(n)||n.length===0?Pe:n.map((l,o)=>({id:l.object_id||`R${o+1}`,name:l.name||`雷达${o+1}`,region:l.region||"",x:Number(l.x)||c,y:Number(l.y)||u,angle:Number(l.angle)||0,targetSide:l.targetSide||"bottom",isOnline:l.value!==void 0?!!l.value:!0}))},C=e.computed(()=>Oe()),y=e.ref(null),F=e.ref(null),ce=e.ref(null),W=e.ref(null),X=e.ref(null),ue=e.ref(null),de=e.ref(null),ge=e.ref(null),ve=e.ref(null),z=e.ref({top:"0px",left:"0px",minWidth:"0px"}),S=e.ref(.6),w=e.reactive({x:-300,y:-200}),G=e.ref([]),fe=e.ref([]),T=e.ref(new Set),B=e.ref(null),s=e.reactive({isDrawing:!1,mode:"surface",surfacePoints:[],mixedShapes:[],cursorPos:null,dragStart:null,isDragging:!1});let te=!1,me=0,he=0;const ne=e.computed(()=>["全部",...[...new Set(C.value.map(t=>t.region).filter(Boolean))]]),le=["区域1","区域2","区域3"],oe=["监测线1","监测线2","监测线3"],_e=[{id:"geology",label:"地质模型"},{id:"dtm",label:"DTM面"},{id:"uav",label:"无人机地图"}],L=e.ref(null),b=e.ref([]),A=e.ref([]),I=e.ref([]),P=e.ref([]),N=e.ref(["geology"]),$=e.ref(""),j=e.ref(1),K=e.ref("2025-10-10T13:22"),Z=e.ref("2026-01-18T00:00"),Fe=e.computed(()=>{const n=b.value.filter(t=>t!=="全部");return n.length?b.value.includes("全部")?"已选全部":n.length<=1?n[0]:`已选(${n.length})`:"选择区域"}),pe=e.computed(()=>{const n=b.value.filter(t=>t!=="全部");return!n.length||b.value.includes("全部")?C.value:C.value.filter(t=>n.includes(t.region))}),ze=e.computed(()=>{const n=pe.value.map(t=>t.name);return n.length>0&&n.every(t=>A.value.includes(t))}),Ue=e.computed(()=>{const n=A.value.filter(t=>t!=="全部");return n.length?A.value.includes("全部")?"已选全部":n.length<=1?n[0]:`已选(${n.length})`:"选择设备"}),He=e.computed(()=>{const n=I.value.length+P.value.length;return n===0?"选择/搜索虚拟位置":`已选(${n})`}),We=e.computed(()=>{if(!N.value.length)return"请选择模型";const t={geology:"地质模型",dtm:"DTM面",uav:"无人机地图"}[N.value[0]];return N.value.length>1?t+"...":t}),je={region:ue,radar:de,virt:ge,model:ve},J=n=>{var l;if(L.value===n){L.value=null;return}const t=(l=je[n])==null?void 0:l.value;if(t){const o=t.getBoundingClientRect();n==="model"?z.value={top:o.bottom+2+"px",left:"auto",right:window.innerWidth-o.right+"px",minWidth:o.width+"px"}:z.value={top:o.bottom+2+"px",left:o.left+"px",right:"auto",minWidth:o.width+"px"}}L.value=n},be=n=>{const t=n.target;t!=null&&t.closest(".tp-dropdown")||t!=null&&t.closest(".dropdown-wrapper")||t!=null&&t.closest(".model-btn-wrapper")||(L.value=null)},Ye=(n,t)=>{const l=ne.value.filter(o=>o!=="全部");if(n==="全部")b.value=t?[...ne.value]:[];else{let o=b.value.filter(i=>i!=="全部");t?o.includes(n)||o.push(n):o=o.filter(i=>i!==n),l.every(i=>o.includes(i))&&(o=["全部",...l]),b.value=o}U()},we=(n,t)=>{const l=C.value.map(o=>o.name);if(n==="全部")A.value=t?["全部",...l]:[];else{let o=A.value.filter(i=>i!=="全部");if(t){o.includes(n)||o.push(n);const i=C.value.find(r=>r.name===n);i&&!b.value.includes(i.region)&&(b.value=[...b.value,i.region])}else o=o.filter(i=>i!==n);l.every(i=>o.includes(i))&&(o=["全部",...l]),A.value=o}U()},qe=n=>{I.value=n?[...le]:[],U()},Xe=(n,t)=>{let l=[...I.value];t?l.includes(n)||l.push(n):l=l.filter(o=>o!==n),I.value=l,U()},Ge=n=>{P.value=n?[...oe]:[],U()},Ke=(n,t)=>{let l=[...P.value];t?l.includes(n)||l.push(n):l=l.filter(o=>o!==n),P.value=l,U()},Ze=(n,t)=>{t?N.value.includes(n)||N.value.push(n):N.value=N.value.filter(l=>l!==n),Je()},Je=()=>{const n=F.value;if(!n)return;n.querySelectorAll(".model-overlay").forEach(o=>o.remove());const t={geology:m.value.geologyModelUrl,dtm:m.value.dtmModelUrl,uav:m.value.uavModelUrl};let l=!1;if(N.value.forEach(o=>{const i=t[o];if(i){l=!0;const r=document.createElement("img");r.className="model-overlay",r.src=i,r.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;pointer-events:none;z-index:2;opacity:0.6;",n.insertBefore(r,n.firstChild)}}),l)n.style.filter="none";else{let o="";N.value.includes("uav")&&(o+="saturate(1.5) contrast(1.2) "),N.value.includes("dtm")&&(o+="brightness(1.1) "),n.style.filter=o.trim()||"none"}},re=n=>{j.value=n,E.publish({type:"timeRangeChange",days:n,start:K.value,end:Z.value})},ye=()=>{j.value=0,E.publish({type:"timeRangeChange",days:0,start:K.value,end:Z.value})},Qe=()=>{Ce("point")},Se=n=>{const t=b.value.filter(o=>o!=="全部"),l=A.value.filter(o=>o!=="全部");return!(t.length>0&&!t.includes(n.region)||l.length>0&&!l.includes(n.name))},U=()=>{const n=b.value.filter(l=>l!=="全部"),t=A.value.filter(l=>l!=="全部");if(T.value.clear(),C.value.forEach(l=>{if(!l.isOnline)return;let o=!0;n.length>0&&!n.includes(l.region)&&(o=!1),t.length>0&&!t.includes(l.name)&&(o=!1),o&&T.value.add(l.id)}),et(n),n.length===1){const l=C.value.find(o=>o.region===n[0]);l&&Ee(l)}t.length===1?E.publish({type:"regionFilter",regions:[],radars:[t[0]]}):n.length===1?E.publish({type:"regionFilter",regions:[n[0]],radars:[]}):E.publish({type:"regionFilter",regions:[],radars:[]})},et=n=>{const t=W.value;if(!t||(t.querySelectorAll(".region-highlight").forEach(i=>i.remove()),n.length===0||n.includes("全部")))return;const l="http://www.w3.org/2000/svg",o={北帮:{x:600,y:0,w:1800,h:600},南帮:{x:600,y:1900,w:1800,h:600},东帮:{x:2400,y:600,w:600,h:1300},西帮:{x:0,y:600,w:600,h:1300}};n.forEach(i=>{const r=o[i];if(!r)return;const a=document.createElementNS(l,"rect");a.setAttribute("x",String(r.x)),a.setAttribute("y",String(r.y)),a.setAttribute("width",String(r.w)),a.setAttribute("height",String(r.h)),a.setAttribute("fill","rgba(255, 255, 0, 0.15)"),a.setAttribute("stroke","rgba(255, 255, 0, 0.7)"),a.setAttribute("stroke-width","3"),a.setAttribute("class","region-highlight"),t.appendChild(a)})},tt=e.computed(()=>{const n=b.value.filter(a=>a!=="全部"),t=A.value.filter(a=>a!=="全部"),l=I.value.map(a=>a.replace("区域","")),o=P.value.map(a=>a.replace("监测线","")),i=[...new Set([...l,...o])];let r=fe.value;return B.value?r.filter(a=>a.radarId===B.value):r.filter(a=>!(n.length>0&&!n.includes(a.region)||t.length>0&&!t.includes(a.radarName)||i.length>0&&!i.includes(a.surfaceId)))}),nt=e.computed(()=>s.mode==="surface"?"【面模式】左键点击添加节点,右键闭合区域":"【点模式】左键点击选点,左键拖拽画线,右键结束"),lt=n=>n>=8?0:n>=5?1:n>=3?2:n>=2?3:4,ot=n=>({left:n.x-20+"px",top:n.y-20+"px"}),rt=n=>({left:n.x-1200+"px",top:n.y-2e3+"px",transform:`rotate(${n.angle}deg)`}),at=n=>T.value.has(n),it=n=>{const t=!B.value||n.radarId===B.value;return{left:n.x+"px",top:n.y+"px",backgroundColor:Ie[n.alarmIdx],opacity:t?1:.05,transform:t&&B.value?"scale(1.5)":"scale(1)",zIndex:t?100:1}},ke=()=>{const n=ce.value;if(!n)return;n.innerHTML="";const t="http://www.w3.org/2000/svg",l=["#409EFF","#E6A23C","#F56C6C","#67C23A","#909399"],o=[4,2,2,2,2],i=[.3,.5,.5,.5,.3];D.forEach((f,g)=>{const d=document.createElementNS(t,"rect");d.setAttribute("x",String(c-f.w/2)),d.setAttribute("y",String(u-f.h/2)),d.setAttribute("width",String(f.w)),d.setAttribute("height",String(f.h)),d.setAttribute("fill","none"),d.setAttribute("stroke",l[g]),d.setAttribute("stroke-width",String(o[g])),d.setAttribute("opacity",String(i[g])),n.appendChild(d)});const r=D[0],a=D[4];[[c-r.w/2,u-r.h/2,c-a.w/2,u-a.h/2],[c+r.w/2,u-r.h/2,c+a.w/2,u-a.h/2],[c+r.w/2,u+r.h/2,c+a.w/2,u+a.h/2],[c-r.w/2,u+r.h/2,c-a.w/2,u+a.h/2]].forEach(([f,g,d,h])=>{const V=document.createElementNS(t,"line");V.setAttribute("x1",String(f)),V.setAttribute("y1",String(g)),V.setAttribute("x2",String(d)),V.setAttribute("y2",String(h)),V.setAttribute("stroke","#409EFF"),V.setAttribute("stroke-width","1"),V.setAttribute("opacity","0.2"),n.appendChild(V)})},xe=()=>{const n=[],t=[D[0],D[1],D[2],D[3]];C.value.forEach(l=>{for(let o=0;o<3;o++){const i=t[o],r=t[o+1],a=String(o+1),v=3+Math.floor(Math.random()*2);for(let f=1;f<=v;f++){const g=`${l.id}-S${a}-P${f}`,d=Math.random(),h=i.w+(r.w-i.w)*d,V=i.h+(r.h-i.h)*d;let Y,q;if(l.targetSide==="bottom"){const M=h*.8;Y=c-M/2+Math.random()*M;const R=u+i.h/2,_=u+r.h/2;q=R+(_-R)*d+(Math.random()-.5)*15}else if(l.targetSide==="top"){const M=h*.8;Y=c-M/2+Math.random()*M;const R=u-i.h/2,_=u-r.h/2;q=R+(_-R)*d+(Math.random()-.5)*15}else if(l.targetSide==="left"){const M=V*.8;q=u-M/2+Math.random()*M;const R=c-i.w/2,_=c-r.w/2;Y=R+(_-R)*d+(Math.random()-.5)*15}else{const M=V*.8;q=u-M/2+Math.random()*M;const R=c+i.w/2,_=c+r.w/2;Y=R+(_-R)*d+(Math.random()-.5)*15}const ee=Math.random();let O;ee<.05?O=8+Math.random()*4:ee<.15?O=5+Math.random()*3:ee<.35?O=3+Math.random()*2:ee<.6?O=2+Math.random()*1:O=.1+Math.random()*1.9,n.push({id:g,x:Y,y:q,radarId:l.id,radarName:l.name,region:l.region,surfaceId:a,alarmIdx:lt(O),speed:O.toFixed(2),deviceId:`${l.name}-点${f}`,isOnline:l.isOnline})}}}),fe.value=n},H=()=>{const n=F.value;n&&(n.style.width=m.value.canvasWidth+"px",n.style.height=m.value.canvasHeight+"px",n.style.transform=`translate(${w.x}px, ${w.y}px) scale(${S.value})`)},st=n=>{if(n.button===0){if(s.isDrawing){bt(n);return}te=!0,me=n.clientX-w.x,he=n.clientY-w.y,y.value&&(y.value.style.cursor="grabbing")}},ct=n=>{if(s.isDrawing){s.cursorPos=ae(n),Q();return}te&&(w.x=n.clientX-me,w.y=n.clientY-he,H())},ut=n=>{if(s.isDrawing&&s.mode!=="surface"){wt(n);return}te=!1,y.value&&(y.value.style.cursor=s.isDrawing?"crosshair":"grab")},dt=n=>{s.isDrawing&&Ne()},gt=n=>{const t=y.value;if(!t)return;const l=Math.min(Math.max(.2,S.value+n.deltaY*-.0012),3.5),o=t.getBoundingClientRect(),i=n.clientX-o.left,r=n.clientY-o.top,a=l/S.value;w.x=i-(i-w.x)*a,w.y=r-(r-w.y)*a,S.value=l,H()},ae=n=>{const t=F.value.getBoundingClientRect();return{x:(n.clientX-t.left)/S.value,y:(n.clientY-t.top)/S.value}},vt=n=>{B.value=B.value===n.id?null:n.id,T.value.clear(),B.value?(T.value.add(n.id),Ee(n),ht(n)):(C.value.filter(t=>t.isOnline).forEach(t=>T.value.add(t.id)),mt(),ft()),E.publish({type:"regionFilter",regions:B.value?[n.region]:[],radars:B.value?[n.name]:[]})},Ee=n=>{const t=y.value,l=F.value;if(!t||!l)return;let o=n.x,i=n.y;n.targetSide==="bottom"?i+=600:n.targetSide==="top"?i-=600:n.targetSide==="left"?o-=600:n.targetSide==="right"&&(o+=600),S.value=.9,w.x=t.clientWidth/2-o*S.value,w.y=t.clientHeight/2-i*S.value,l.style.transition="transform 0.6s cubic-bezier(0.2, 0, 0.2, 1)",H(),setTimeout(()=>{l&&(l.style.transition="none")},650)},ft=()=>{const n=F.value;S.value=.6,w.x=-300,w.y=-200,n?(n.style.transition="transform 0.6s cubic-bezier(0.2, 0, 0.2, 1)",H(),setTimeout(()=>{n&&(n.style.transition="none")},650)):H()},mt=()=>{W.value&&(W.value.innerHTML="")},ht=n=>{const t=W.value;if(!t)return;t.innerHTML="";const l="http://www.w3.org/2000/svg",o=D.slice(0,4);for(let i=0;i<3;i++){const r=o[i],a=o[i+1];let v="",f=0,g=0;n.targetSide==="bottom"?(v=[`${c-r.w/2},${u+r.h/2}`,`${c+r.w/2},${u+r.h/2}`,`${c+a.w/2},${u+a.h/2}`,`${c-a.w/2},${u+a.h/2}`].join(" "),f=c,g=u+a.h/2+(r.h/2-a.h/2)/2):n.targetSide==="top"?(v=[`${c-r.w/2},${u-r.h/2}`,`${c+r.w/2},${u-r.h/2}`,`${c+a.w/2},${u-a.h/2}`,`${c-a.w/2},${u-a.h/2}`].join(" "),f=c,g=u-a.h/2-(r.h/2-a.h/2)/2):n.targetSide==="left"?(v=[`${c-r.w/2},${u-r.h/2}`,`${c-r.w/2},${u+r.h/2}`,`${c-a.w/2},${u+a.h/2}`,`${c-a.w/2},${u-a.h/2}`].join(" "),f=c-a.w/2-(r.w/2-a.w/2)/2,g=u):(v=[`${c+r.w/2},${u-r.h/2}`,`${c+r.w/2},${u+r.h/2}`,`${c+a.w/2},${u+a.h/2}`,`${c+a.w/2},${u-a.h/2}`].join(" "),f=c+a.w/2+(r.w/2-a.w/2)/2,g=u);const d=document.createElementNS(l,"polygon");d.setAttribute("points",v),d.setAttribute("fill","rgba(64,158,255,0.25)"),d.setAttribute("stroke","rgba(64,158,255,0.8)"),d.setAttribute("stroke-width","2"),t.appendChild(d);const h=document.createElementNS(l,"text");h.setAttribute("x",String(f)),h.setAttribute("y",String(g)),h.setAttribute("text-anchor","middle"),h.setAttribute("dominant-baseline","middle"),h.setAttribute("fill","#fff"),h.setAttribute("font-size","24"),h.setAttribute("font-weight","bold"),h.style.pointerEvents="none",h.textContent=`区域 ${i+1}`,t.appendChild(h)}},Ce=n=>{s.isDrawing=!0,s.mode=n,s.surfacePoints=[],s.mixedShapes=[],s.cursorPos=null,s.dragStart=null,s.isDragging=!1,y.value&&(y.value.style.cursor="crosshair"),Ae()},pt=()=>{s.isDrawing=!1,y.value&&(y.value.style.cursor="grab"),s.dragStart=null},Ae=()=>{X.value&&(X.value.innerHTML="")},bt=n=>{const t=ae(n);s.mode==="surface"?(s.surfacePoints.push(t),Q()):(s.dragStart=t,s.isDragging=!0)},wt=n=>{if(s.mode==="surface"||!s.dragStart)return;const t=ae(n),l=t.x-s.dragStart.x,o=t.y-s.dragStart.y;Math.sqrt(l*l+o*o)<5?s.mixedShapes.push({type:"point",x:s.dragStart.x,y:s.dragStart.y}):s.mixedShapes.push({type:"line",x1:s.dragStart.x,y1:s.dragStart.y,x2:t.x,y2:t.y}),s.isDragging=!1,s.dragStart=null,Q()},Ne=()=>{if(!s.isDrawing)return;const n=s.mode==="surface"&&s.surfacePoints.length>=3,t=s.mode!=="surface"&&s.mixedShapes.length>0;if(!n&&!t){ie();return}s.isDrawing=!1,y.value&&(y.value.style.cursor="grab"),s.cursorPos=null,Q(!0),E.publish({type:"customAreaComplete"})},yt=()=>Ne(),ie=()=>{pt(),Ae(),E.publish({type:"customAreaCancel"})},Q=(n=!1)=>{const t=X.value;if(!t)return;t.innerHTML="";const l="http://www.w3.org/2000/svg";if(s.mode==="surface"){if(s.surfacePoints.length>0){let o=`M ${s.surfacePoints[0].x} ${s.surfacePoints[0].y}`;for(let r=1;r<s.surfacePoints.length;r++)o+=` L ${s.surfacePoints[r].x} ${s.surfacePoints[r].y}`;!n&&s.cursorPos&&(o+=` L ${s.cursorPos.x} ${s.cursorPos.y}`),n&&(o+=" Z");const i=document.createElementNS(l,"path");i.setAttribute("d",o),i.setAttribute("fill","rgba(152,251,152,0.4)"),i.setAttribute("stroke","#333"),i.setAttribute("stroke-width","1.5"),i.setAttribute("stroke-dasharray","5,5"),t.appendChild(i),s.surfacePoints.forEach(r=>se(t,r.x,r.y,"#333"))}!n&&s.cursorPos&&St(t,s.cursorPos.x,s.cursorPos.y)}else s.mixedShapes.forEach(o=>{o.type==="point"?kt(t,o.x,o.y):Ve(t,o.x1,o.y1,o.x2,o.y2,!1)}),s.isDragging&&s.dragStart&&s.cursorPos&&Ve(t,s.dragStart.x,s.dragStart.y,s.cursorPos.x,s.cursorPos.y,!0)},se=(n,t,l,o)=>{const i=document.createElementNS("http://www.w3.org/2000/svg","circle");i.setAttribute("cx",String(t)),i.setAttribute("cy",String(l)),i.setAttribute("r",String(4/S.value)),i.setAttribute("fill","#fff"),i.setAttribute("stroke",o),n.appendChild(i)},St=(n,t,l)=>{const o="http://www.w3.org/2000/svg";[[t,l-5e3,t,l+5e3],[t-5e3,l,t+5e3,l]].forEach(([r,a,v,f])=>{const g=document.createElementNS(o,"line");g.setAttribute("x1",String(r)),g.setAttribute("y1",String(a)),g.setAttribute("x2",String(v)),g.setAttribute("y2",String(f)),g.setAttribute("stroke","#ffffff"),g.setAttribute("stroke-width","2"),g.setAttribute("stroke-dasharray","8,4"),g.style.filter="drop-shadow(0 0 2px rgba(0,0,0,0.8))",n.appendChild(g)})},kt=(n,t,l)=>{const o="http://www.w3.org/2000/svg",i=10/S.value,r=document.createElementNS(o,"circle");r.setAttribute("cx",String(t)),r.setAttribute("cy",String(l)),r.setAttribute("r",String(i)),r.setAttribute("fill","rgba(230,162,60,0.3)"),r.setAttribute("stroke","#E6A23C"),n.appendChild(r);const a=document.createElementNS(o,"circle");a.setAttribute("cx",String(t)),a.setAttribute("cy",String(l)),a.setAttribute("r",String(4/S.value)),a.setAttribute("fill","#E6A23C"),n.appendChild(a)},Ve=(n,t,l,o,i,r)=>{const v=document.createElementNS("http://www.w3.org/2000/svg","line");v.setAttribute("x1",String(t)),v.setAttribute("y1",String(l)),v.setAttribute("x2",String(o)),v.setAttribute("y2",String(i)),v.setAttribute("stroke","#E6A23C"),v.setAttribute("stroke-width","3"),r&&v.setAttribute("stroke-dasharray","5,5"),n.appendChild(v),se(n,t,l,"#E6A23C"),se(n,o,i,"#E6A23C")},xt=n=>{E.publish({type:"openAnalysis",deviceId:n.id,region:n.region})},Et=n=>{const{payload:t}=n;if(t.type==="customArea"){t.action==="start"?Ce(t.mode||"surface"):t.action==="stop"&&ie();return}},Me=n=>ct(n),Re=n=>ut(n);return e.onMounted(()=>{window.addEventListener("mousemove",Me),window.addEventListener("mouseup",Re),window.addEventListener("click",be),G.value=C.value;const n=C.value.filter(l=>l.isOnline);A.value=n.map(l=>l.name);const t=new Set(n.map(l=>l.region));b.value=Array.from(t),n.forEach(l=>T.value.add(l.id)),e.nextTick(()=>{ke(),xe(),H()})}),e.onUnmounted(()=>{window.removeEventListener("mousemove",Me),window.removeEventListener("mouseup",Re),window.removeEventListener("click",be)}),e.watch(()=>p.conf,()=>{E.init(),G.value=C.value,e.nextTick(()=>{ke(),xe()})},{deep:!0}),(n,t)=>(e.openBlock(),e.createElementBlock("div",{class:"radar-map-wrapper",style:e.normalizeStyle({background:e.unref(m).bgColor})},[e.createElementVNode("div",$t,[e.createElementVNode("div",Dt,[e.createElementVNode("div",Lt,[e.createElementVNode("button",{ref_key:"regionBtnRef",ref:ue,class:"tb-btn",onClick:t[0]||(t[0]=e.withModifiers(l=>J("region"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(Fe.value),1),t[17]||(t[17]=e.createTextVNode(" ▼ ",-1))],512)]),e.createElementVNode("div",Tt,[e.createElementVNode("button",{ref_key:"radarBtnRef",ref:de,class:"tb-btn",onClick:t[1]||(t[1]=e.withModifiers(l=>J("radar"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(Ue.value),1),t[18]||(t[18]=e.createTextVNode(" ▼ ",-1))],512)]),e.createElementVNode("div",It,[e.createElementVNode("button",{ref_key:"virtBtnRef",ref:ge,class:"tb-btn",onClick:t[2]||(t[2]=e.withModifiers(l=>J("virt"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(He.value),1),t[19]||(t[19]=e.createTextVNode(" ▼ ",-1))],512)]),t[20]||(t[20]=e.createElementVNode("div",{class:"divider-v"},null,-1)),e.createElementVNode("button",{class:e.normalizeClass(["tb-btn",{active:j.value===1}]),onClick:t[3]||(t[3]=l=>re(1))},"一天内",2),e.createElementVNode("button",{class:e.normalizeClass(["tb-btn",{active:j.value===7}]),onClick:t[4]||(t[4]=l=>re(7))},"一周内",2),e.createElementVNode("button",{class:e.normalizeClass(["tb-btn",{active:j.value===30}]),onClick:t[5]||(t[5]=l=>re(30))},"一个月内",2),t[21]||(t[21]=e.createElementVNode("span",{class:"time-label"},"时间:",-1)),e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":t[6]||(t[6]=l=>K.value=l),class:"tb-btn time-input",onChange:ye},null,544),[[e.vModelText,K.value]]),t[22]||(t[22]=e.createElementVNode("span",{class:"time-label"},"至",-1)),e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":t[7]||(t[7]=l=>Z.value=l),class:"tb-btn time-input",onChange:ye},null,544),[[e.vModelText,Z.value]])]),e.createElementVNode("div",{class:"toolbar-right"},[e.createElementVNode("button",{class:"btn-profile",onClick:Qe},"剖面图绘制")])]),e.createElementVNode("div",Pt,[e.createElementVNode("button",{ref_key:"modelBtnRef",ref:ve,class:"tb-btn model-btn",onClick:t[8]||(t[8]=e.withModifiers(l=>J("model"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(We.value),1),t[23]||(t[23]=e.createTextVNode(" ▼ ",-1))],512)]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[L.value==="region"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[9]||(t[9]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne.value,l=>(e.openBlock(),e.createElementBlock("label",{key:l,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",value:l,checked:b.value.includes(l),onChange:o=>Ye(l,o.target.checked)},null,40,Ot),e.createElementVNode("span",{style:e.normalizeStyle(l==="全部"?"font-weight:bold;color:#1c3d90":"")},e.toDisplayString(l),5)]))),128))],4)):e.createCommentVNode("",!0),L.value==="radar"?(e.openBlock(),e.createElementBlock("div",{key:1,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[11]||(t[11]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("label",_t,[e.createElementVNode("input",{type:"checkbox",value:"全部",checked:ze.value,onChange:t[10]||(t[10]=l=>we("全部",l.target.checked))},null,40,Ft),t[24]||(t[24]=e.createElementVNode("span",null,"全部雷达",-1))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(pe.value,l=>(e.openBlock(),e.createElementBlock("label",{key:l.id,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",value:l.name,checked:A.value.includes(l.name),onChange:o=>we(l.name,o.target.checked)},null,40,zt),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(l.name)+" ",1),e.createElementVNode("span",{style:e.normalizeStyle({color:l.isOnline?"#71C446":"#999",fontSize:"12px"})},"●",4)])]))),128))],4)):e.createCommentVNode("",!0),L.value==="virt"?(e.openBlock(),e.createElementBlock("div",{key:2,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[15]||(t[15]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",Ut,[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":t[12]||(t[12]=l=>$.value=l),placeholder:"搜索区域或监测线...",style:{width:"100%",padding:"4px 8px",border:"1px solid #ddd","border-radius":"4px","font-size":"12px"}},null,512),[[e.vModelText,$.value]])]),e.createElementVNode("div",Ht,[t[27]||(t[27]=e.createElementVNode("div",{class:"dropdown-group-title"},"虚拟区域",-1)),e.withDirectives(e.createElementVNode("label",Wt,[e.createElementVNode("input",{type:"checkbox",checked:le.every(l=>I.value.includes(l)),onChange:t[13]||(t[13]=l=>qe(l.target.checked))},null,40,jt),t[25]||(t[25]=e.createElementVNode("span",{style:{"font-weight":"bold"}},"全部",-1))],512),[[e.vShow,!$.value||"全部".includes($.value)]]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(le,l=>e.withDirectives(e.createElementVNode("label",{key:l,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",checked:I.value.includes(l),onChange:o=>Xe(l,o.target.checked)},null,40,Yt),e.createElementVNode("span",null,e.toDisplayString(l),1)]),[[e.vShow,!$.value||l.includes($.value)]])),64)),t[28]||(t[28]=e.createElementVNode("div",{class:"dropdown-group-title",style:{"margin-top":"5px"}},"监测线",-1)),e.withDirectives(e.createElementVNode("label",qt,[e.createElementVNode("input",{type:"checkbox",checked:oe.every(l=>P.value.includes(l)),onChange:t[14]||(t[14]=l=>Ge(l.target.checked))},null,40,Xt),t[26]||(t[26]=e.createElementVNode("span",{style:{"font-weight":"bold"}},"全部",-1))],512),[[e.vShow,!$.value||"全部".includes($.value)]]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(oe,l=>e.withDirectives(e.createElementVNode("label",{key:l,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",checked:P.value.includes(l),onChange:o=>Ke(l,o.target.checked)},null,40,Gt),e.createElementVNode("span",null,e.toDisplayString(l),1)]),[[e.vShow,!$.value||l.includes($.value)]])),64))])],4)):e.createCommentVNode("",!0),L.value==="model"?(e.openBlock(),e.createElementBlock("div",{key:3,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[16]||(t[16]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(_e,l=>e.createElementVNode("label",{key:l.id,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",checked:N.value.includes(l.id),onChange:o=>Ze(l.id,o.target.checked)},null,40,Kt),e.createElementVNode("span",null,e.toDisplayString(l.label),1)])),64))],4)):e.createCommentVNode("",!0)])),e.createElementVNode("div",{ref_key:"viewerRef",ref:y,class:"map-viewer",onMousedown:st,onContextmenu:e.withModifiers(dt,["prevent"]),onWheel:e.withModifiers(gt,["prevent"])},[e.createElementVNode("div",{ref_key:"canvasRef",ref:F,class:"map-canvas"},[(e.openBlock(),e.createElementBlock("svg",{ref_key:"baseSvgRef",ref:ce,class:"base-svg",width:e.unref(m).canvasWidth,height:e.unref(m).canvasHeight,viewBox:`0 0 ${e.unref(m).canvasWidth} ${e.unref(m).canvasHeight}`},null,8,Zt)),(e.openBlock(),e.createElementBlock("svg",{ref_key:"highlightSvgRef",ref:W,class:"highlight-svg",width:e.unref(m).canvasWidth,height:e.unref(m).canvasHeight,viewBox:`0 0 ${e.unref(m).canvasWidth} ${e.unref(m).canvasHeight}`},null,8,Jt)),(e.openBlock(),e.createElementBlock("svg",{ref_key:"customSvgRef",ref:X,class:"custom-svg",width:e.unref(m).canvasWidth,height:e.unref(m).canvasHeight,viewBox:`0 0 ${e.unref(m).canvasWidth} ${e.unref(m).canvasHeight}`},null,8,Qt)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,l=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:l.id,class:e.normalizeClass(["radar-station",{offline:!l.isOnline}]),style:e.normalizeStyle(ot(l)),title:`${l.name}(${l.isOnline?"在线":"离线"})`,onClick:e.withModifiers(o=>vt(l),["stop"])},"📡",14,en)),[[e.vShow,Se(l)]])),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,l=>(e.openBlock(),e.createElementBlock("div",{key:"cloud-"+l.id,class:e.normalizeClass(["radar-cloud",{visible:at(l.id)&&Se(l),"no-anim":k.mode==="edit"}]),style:e.normalizeStyle(rt(l))},null,6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(tt.value,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"virtual-point",style:e.normalizeStyle(it(l)),title:`${l.deviceId} | ${l.speed} mm/h`,onClick:e.withModifiers(o=>xt(l),["stop"])},null,12,tn))),128))],512)],544),s.isDrawing?(e.openBlock(),e.createElementBlock("div",nn,[e.createElementVNode("span",ln,e.toDisplayString(nt.value),1),e.createElementVNode("button",{class:"toolbar-btn confirm",onClick:yt},"确定生成"),e.createElementVNode("button",{class:"toolbar-btn",onClick:ie},"取消")])):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default",{},void 0,!0)],4))}})),vn=Bt._export_sfc(gn,[["__scopeId","data-v-082c9f0e"]]);exports.default=vn;
@@ -1 +0,0 @@
1
- "use strict";var A=Object.defineProperty,j=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var y=(i,r,s)=>r in i?A(i,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[r]=s,E=(i,r)=>{for(var s in r||(r={}))T.call(r,s)&&y(i,s,r[s]);if(C)for(var s of C(r))O.call(r,s)&&y(i,s,r[s]);return i},k=(i,r)=>j(i,w(r));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/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),I=require("./BaseComponent-CNXUpPY1.cjs"),g=require("./index-D8dh_6Qd.cjs"),V=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),H={class:"filter-bar"},x={class:"filter-item"},F={class:"filter-item"},q={class:"filter-item"},L={class:"time-range-btns"},U=["onClick"],z={class:"filter-item"},W={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"降雨筛选栏",NAME_EN:"Rainfall Filter Bar",ORDER:1},P={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},$=[{name:"WATER101",object_id:"",region:"北帮"},{name:"WATER102",object_id:"",region:"北帮"},{name:"WATER201",object_id:"",region:"南帮"},{name:"WATER305",object_id:"",region:"东帮"},{name:"WATER410",object_id:"",region:"西帮"}],Q=["name","object_id","region"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=50,X={DEFAULT:W,OPTIONS:P,DATA:$,PARAMS:Q,SOURCE:G,ITEMS:K,COMMON:J},Z=e.defineComponent(k(E({},X),{__name:"rainfallFilterBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const r=i;class s extends I.BaseComponent{extractStyles(){var m,p,n,v;const t=(m=this.props.conf)==null?void 0:m.options,a=((p=t==null?void 0:t.linkChannel)==null?void 0:p.value)||"rainfall",u=((n=t==null?void 0:t.customChannel)==null?void 0:n.value)||"";return{bgColor:((v=t==null?void 0:t.bgColor)==null?void 0:v.value)||"#ffffff",linkChannel:a==="custom"&&u?u:a}}}const b=new s(r,"rainfallFilterBar");b.setupLifecycle();const h=b.getStyle(),d=e.computed(()=>{var t;const l=(t=r.conf)==null?void 0:t.data;return!l||!Array.isArray(l)?[]:l.filter(a=>a.name)}),N=e.computed(()=>{const l=new Set;return d.value.forEach(t=>{t.region&&l.add(t.region)}),Array.from(l)}),_=e.computed(()=>{let l=d.value;return o.region&&(l=l.filter(t=>t.region===o.region)),l.map(t=>({label:t.name,value:t.name}))}),R=[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}],c=d.value[0],o=e.reactive({region:(c==null?void 0:c.region)||"",points:c?[c.name]:[],timeRange:"1d",dateRange:[g.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),g.dayjs().format("YYYY/MM/DD HH:mm")]}),Y=()=>{const l=_.value;o.points=l.length>0?[l[0].value]:[]},B=l=>{o.timeRange=l;const t=g.dayjs(),a=l==="1d"?t.subtract(1,"day"):l==="1w"?t.subtract(1,"week"):t.subtract(1,"month");o.dateRange=[a.format("YYYY/MM/DD HH:mm"),t.format("YYYY/MM/DD HH:mm")]},D=()=>{o.timeRange=""},M=()=>{if(r.mode==="edit"||o.points.length===0)return;const l=d.value.filter(a=>o.points.includes(a.name)),t=[...new Set(l.map(a=>a.object_id).filter(Boolean))];if(t.length===0){console.warn("[降雨筛选栏] 所选监测点未配置 object_id,无法发送联动");return}b.publish({type:"filter",region:o.region,selectedMonitors:o.points,objectId:t[0]||"",objectIds:t,sensors:l.map(a=>({name:a.name,objectId:a.object_id})),timeRange:o.timeRange,dateRange:[...o.dateRange]})},S=e.computed(()=>({backgroundColor:h.value.bgColor}));return(l,t)=>{const a=f.ElOption,u=f.ElSelect,m=f.ElDatePicker,p=f.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"rainfall-filter-bar-wrap",style:e.normalizeStyle(S.value)},[e.createElementVNode("div",H,[e.createElementVNode("div",x,[t[3]||(t[3]=e.createElementVNode("span",{class:"filter-label"},"区域位置:",-1)),e.createVNode(u,{modelValue:o.region,"onUpdate:modelValue":t[0]||(t[0]=n=>o.region=n),placeholder:"全部区域",size:"small",style:{width:"120px"},onChange:Y},{default:e.withCtx(()=>[e.createVNode(a,{label:"全部区域",value:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,n=>(e.openBlock(),e.createBlock(a,{key:n,label:n,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",F,[t[4]||(t[4]=e.createElementVNode("span",{class:"filter-label"},"监测点:",-1)),e.createVNode(u,{modelValue:o.points,"onUpdate:modelValue":t[1]||(t[1]=n=>o.points=n),placeholder:"请选择",size:"small",style:{width:"180px"},multiple:"","collapse-tags":"","collapse-tags-tooltip":""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,n=>(e.openBlock(),e.createBlock(a,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",q,[t[5]||(t[5]=e.createElementVNode("span",{class:"filter-label"},"时间范围:",-1)),e.createElementVNode("div",L,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(R,n=>e.createElementVNode("button",{key:n.value,class:e.normalizeClass(["range-btn",{active:o.timeRange===n.value}]),onClick:v=>B(n.value)},e.toDisplayString(n.label),11,U)),64))])]),e.createElementVNode("div",z,[e.createVNode(m,{modelValue:o.dateRange,"onUpdate:modelValue":t[2]||(t[2]=n=>o.dateRange=n),type:"datetimerange",size:"small",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",style:{width:"340px"},onChange:D},null,8,["modelValue"])]),e.createVNode(p,{type:"primary",size:"small",onClick:M},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("查询",-1)])]),_:1})]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),ee=g._export_sfc(Z,[["__scopeId","data-v-3e5ef7cf"]]);exports.default=ee;
@@ -1 +0,0 @@
1
- "use strict";var ve=Object.defineProperty,he=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var J=Object.getOwnPropertySymbols,be=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,_e=Reflect.get;var Q=(p,a,i)=>a in p?ve(p,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):p[a]=i,X=(p,a)=>{for(var i in a||(a={}))ye.call(a,i)&&Q(p,i,a[i]);if(J)for(var i of J(a))Ce.call(a,i)&&Q(p,i,a[i]);return p},ee=(p,a)=>he(p,ge(a));var F=(p,a,i)=>_e(be(p),i,a);var B=(p,a,i)=>new Promise((N,g)=>{var v=_=>{try{j(i.next(_))}catch(A){g(A)}},S=_=>{try{j(i.throw(_))}catch(A){g(A)}},j=_=>_.done?N(_.value):Promise.resolve(_.value).then(v,S);j((i=i.apply(p,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const t=require("vue"),T=require("./index-D8dh_6Qd.cjs"),xe=require("./EChartComponentBase-D4wMej9X.cjs"),te=require("@element-plus/icons-vue"),oe=require("./ele-lin-icon-Dke_1AmT.cjs"),Se={class:"chart-panel"},Ee={class:"panel-header"},we={class:"header-right"},Ne={class:"indicator-selector-panel"},je={class:"indicator-select-all"},Ve={class:"legend-bar"},ke={class:"legend-items"},Ie=["onClick"],Ae={class:"legend-text"},Me=["id"],Oe={DEFAULT_ICON:oe.DEFAULT_ICON,ACTIVE_ICON:oe.ACTIVE_ICON,NAME_CN:"降雨指标时序曲线",NAME_EN:"Rainfall Time Curve",ORDER:3},De={bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},gridColor:{value:"#f0f0f0",type:"color",label:"网格线颜色"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Te=[{name:"实时降水量(mm)",fv:"",object_id:"",color:"#5470c6",device:""},{name:"累计降水量(mm)",fv:"",object_id:"",color:"#ee6666",device:""}],Le=["name","fv","object_id","color","device"],$e=["mosaic","statistics","calculate"],Be={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},qe=50,Ye={DEFAULT:Oe,OPTIONS:De,DATA:Te,PARAMS:Le,SOURCE:$e,ITEMS:qe,COMMON:Be},Pe=t.defineComponent(ee(X({},Ye),{__name:"rainfallTimeCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const a=p,i=new Map,N=new Map,g=t.ref(new Map),v=t.ref([]);let S=0,j=null;const _=t.computed(()=>{var l,e;return(e=(l=a.conf)==null?void 0:l.common)!=null&&e.object_id?!0:Y.value.some(n=>!!n.object_id)}),A=t.computed(()=>_.value||v.value.length>0);class L extends xe.EChartComponentBase{extractStyles(){var c,f,m,o,u,s,d;const e=(c=this.props.conf)==null?void 0:c.options,n=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"rainfall",r=((m=e==null?void 0:e.customChannel)==null?void 0:m.value)||"";return{bgColor:((o=e==null?void 0:e.bgColor)==null?void 0:o.value)||"#f5f7fa",panelBgColor:((u=e==null?void 0:e.panelBgColor)==null?void 0:u.value)||"#ffffff",textColor:((s=e==null?void 0:e.textColor)==null?void 0:s.value)||"#333333",gridColor:((d=e==null?void 0:e.gridColor)==null?void 0:d.value)||"#f0f0f0",linkChannel:n==="custom"&&r?r:n}}getChartOption(){return H(this.Style.value)}initHistory(){return B(this,null,function*(){const e=this.props.conf;if(!e)return[];e.options||(e.options={});const n=e.options.points,r=Object.prototype.hasOwnProperty.call(e.options,"points");(!n||Number(n)<24)&&(e.options.points=24);try{return yield F(L.prototype,this,"initHistory").call(this)}finally{r?e.options.points=n:delete e.options.points}})}onPreview(){return B(this,null,function*(){var n,r,c,f,m;const e=((r=(n=this.props.conf)==null?void 0:n.common)==null?void 0:r.object_id)||((m=(f=(c=this.props.conf)==null?void 0:c.data)==null?void 0:f[0])==null?void 0:m.object_id)||"";if(e&&v.value.length===0){v.value=[e],yield R([e]);return}yield F(L.prototype,this,"onPreview").call(this)})}setSocketData(e){var m;if(!e)return;const n=e.object_id||e.objectId||"";if(n&&v.value.length>0&&!v.value.includes(n))return;const r=e.datetime?e.datetime.split(".")[0]:T.dayjs().format("YYYY/MM/DD HH:mm"),c=((m=this.props.conf)==null?void 0:m.data)||[],f=v.value.length>1;c.forEach(o=>{if(o.device){const u=this.extractDataValue(e,o.device);if(u!=null&&String(u).trim()){const s=String(u).trim();f&&n?g.value.set(n,s):(N.set(o.name||o.fv,s),n&&g.value.set(n,s))}}}),c.forEach(o=>{if(!o.fv)return;const u=this.extractDataValue(e,o.fv);if(u==null)return;const s=f&&n?`${n}:${o.name||o.fv}`:o.name||o.fv,d=i.get(s);d?(d.times.push(r),d.values.push(parseFloat(u)),d.times.length>200&&(d.times.shift(),d.values.shift())):i.set(s,{times:[r],values:[parseFloat(u)]})}),this.chartObj&&this.chartObj.setOption(H(this.Style.value),!1)}onLinkEvent(e){de(e)}}const C=new L(a,"rainfallTimeCurve");C.setupLifecycle();const q=C.getStyle(),ne=C.getEchartId(),Y=t.computed(()=>{var l;return((l=a.conf)==null?void 0:l.data)||[]}),b=t.computed(()=>{const l=new Set;return Y.value.filter(e=>e.name&&!l.has(e.name)?(l.add(e.name),!0):!1)}),h=t.ref([]);t.watch(b,l=>{l.length>0&&h.value.length===0&&(h.value=l.map(e=>e.fv||e.name))},{immediate:!0});const U=t.computed({get:()=>b.value.length>0&&h.value.length===b.value.length,set:()=>{}}),le=t.computed(()=>{const l=h.value.length;return l>0&&l<b.value.length}),ae=t.computed(()=>{if(h.value.length===0)return"选择监测指标";if(h.value.length===b.value.length)return"全部指标已选";const e=b.value.filter(n=>h.value.includes(n.fv||n.name)).map(n=>n.name).join(", ");return e.length>14?e.substring(0,14)+"...":e}),se=l=>{h.value=l?b.value.map(e=>e.fv||e.name):[],V()},x=t.ref(new Set),re=t.computed(()=>{if(v.value.length>1){const e=[];for(const n of v.value){const r=g.value.get(n)||n.slice(-6);b.value.filter(c=>h.value.includes(c.fv||c.name)).forEach(c=>{e.push({name:`${r}-${c.name}`,color:c.color||"#5470c6",visible:!x.value.has(`${n}:${c.name}`)})})}return e}return b.value.filter(e=>h.value.includes(e.fv||e.name)).map(e=>{const n=N.get(e.name)||g.value.values().next().value||"";return{name:n?`${n}-${e.name}`:e.name,color:e.color||"#5470c6",visible:!x.value.has(e.name)}})}),ie=l=>{const e=l.name.includes("-")?l.name.split("-").slice(1).join("-"):l.name;x.value.has(e)?x.value.delete(e):x.value.add(e),x.value=new Set(x.value),V()},ce=t.computed(()=>({backgroundColor:q.value.bgColor,color:q.value.textColor})),P=()=>{i.clear();const l=T.dayjs();Y.value.forEach((e,n)=>{const r=[],c=[],f=[2800,3200],m=[200,300],o=f[n%2]||3e3,u=m[n%2]||200;for(let s=0;s<100;s++)r.push(l.subtract((100-s)*15,"minute").format("YYYY/MM/DD HH:mm")),c.push(+(o+(Math.random()-.5)*u+Math.sin(s/10)*u*.3).toFixed(2));i.set(e.name,{times:r,values:c})})},H=l=>{if(a.mode!=="edit"&&(!A.value||i.size===0))return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};let e=[];for(const[,o]of i)o.times.length>e.length&&(e=o.times);!e.length&&a.mode==="edit"&&(e=Array.from({length:50},(o,u)=>T.dayjs().subtract((50-u)*15,"minute").format("YYYY/MM/DD HH:mm")));const n={},r=v.value.length>1,c=["#5470c6","#ee6666","#fac858","#91cc75","#73c0de","#3ba272","#fc8452","#9a60b4"];let f=0,m=[];if(r&&a.mode!=="edit")for(const o of v.value){const u=g.value.get(o)||o.slice(-6);b.value.filter(s=>h.value.includes(s.fv||s.name)).forEach(s=>{const d=`${o}:${s.name}`,k=`${u}-${s.name}`,E=s.color||c[f%c.length];n[k]=!x.value.has(d);const $=i.get(d);m.push({name:k,type:"line",smooth:!0,showSymbol:!1,data:($==null?void 0:$.values)||[],lineStyle:{color:E,width:2.5,type:"solid"},itemStyle:{color:E}}),f++})}else m=b.value.filter(o=>h.value.includes(o.fv||o.name)).map(o=>{const u=N.get(o.name)||g.value.values().next().value||"",s=u?`${u}-${o.name}`:o.name;n[s]=!x.value.has(o.name);const d=i.get(o.name);return{name:s,type:"line",smooth:!0,showSymbol:!1,data:(d==null?void 0:d.values)||[],lineStyle:{color:o.color||"#5470c6",width:2.5,type:"solid"},itemStyle:{color:o.color||"#5470c6"}}});return{tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#1c3d90",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},legend:{show:!1,selected:n},grid:{top:15,right:40,bottom:60,left:60},xAxis:{type:"category",data:e,axisLine:{lineStyle:{color:l.gridColor}},axisLabel:{color:l.textColor,fontSize:11,rotate:15,interval:"auto",formatter:o=>{var u;if(o&&o.length>6){const s=o.split(" ");return(((u=s[0])==null?void 0:u.split("/").slice(1).join("/"))||"")+(s[1]?" "+s[1]:"")}return o}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",name:"监测数值",scale:!0,axisLine:{show:!1},axisLabel:{color:l.textColor,fontSize:11},splitLine:{lineStyle:{color:l.gridColor,type:"dashed"}}},dataZoom:[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"slider",height:18,bottom:8,borderColor:"transparent",backgroundColor:"#f0f0f0",fillerColor:"rgba(28, 61, 144, 0.2)",handleStyle:{color:"#1c3d90"},textStyle:{fontSize:10}}],series:m}},V=()=>{const l=C.getChartInstance();l&&l.setOption(H(q.value),!0)},ue=()=>{const l=C.getChartInstance();if(!l)return;const e=document.createElement("a");e.href=l.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`降雨指标时序曲线_${T.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},de=l=>{const{payload:e}=l;if(!e)return;if(e.type==="filter"){e.dateRange&&Array.isArray(e.dateRange)&&e.dateRange.length===2&&(j={start_time:e.dateRange[0],end_time:e.dateRange[1]});const r=e.objectIds&&e.objectIds.length>0?e.objectIds:e.objectId?[e.objectId]:[];r.length>0&&(v.value=r,R(r)),(a.mode==="edit"||r.length===0)&&(P(),V());return}const n=e.objectId||e.object_id;n&&(v.value=[n],R([n]))},R=l=>B(null,null,function*(){var s;if(!l.length||a.mode!=="preview")return;const e=++S;i.clear(),g.value.clear(),N.clear();const n=(s=C.session)==null?void 0:s.value;if(!n)return;const r=a.conf.id;n.componentRequests&&n.componentRequests.delete(r),typeof n.unsubscribeComponent=="function"&&n.unsubscribeComponent(r);const{data:c,common:f}=a.conf,m=l.length>1;j&&(f.historyTimeRange=j),a.conf.options||(a.conf.options={});const o=a.conf.options.points,u=Object.prototype.hasOwnProperty.call(a.conf.options,"points");(!o||Number(o)<24)&&(a.conf.options.points=24);for(const d of l){if(S!==e)return;Array.isArray(c)&&c.forEach(E=>{E.object_id=d}),f.multiObject||(f.object_id=d);try{const E=yield Promise.resolve().then(()=>require("./history-9ToM-rJ6.cjs")),M=yield new E.default().getHistoryData(a,"rainfallTimeCurve");if(S!==e)return;const G=(M==null?void 0:M.history)||(Array.isArray(M)?M:[]);G.length>0&&c.forEach((y,fe)=>{if(!y.fv)return;const K=G[fe];if(!Array.isArray(K))return;const me=[...K].sort((w,O)=>new Date(w.time||w.datetime||"").getTime()-new Date(O.time||O.datetime||"").getTime()),pe=m?`${d}:${y.name||y.fv}`:y.name||y.fv,z=[],W=[];me.forEach(w=>{const O=w.time||w.datetime,Z=w[y.fv];if(O&&Z!=null){const I=parseFloat(Z);isNaN(I)||(z.push(O.split(".")[0]),W.push(I))}if(y.device&&w[y.device]){const I=String(w[y.device]);m||N.set(y.name||y.fv,I),g.value.set(d,I)}}),z.length>0&&i.set(pe,{times:z,values:W})})}catch(E){console.warn("[降雨时序曲线] 历史数据获取失败:",E)}if(S!==e)return;const k=C.getSource();C.subscribeBySource(k,d)}u?a.conf.options.points=o:delete a.conf.options.points,S===e&&(V(),n.registerComponent({id:r,request:null,onUpdate:(d,k)=>{S===e&&d==="realtime"&&C.setSocketData(k)}}))});return t.onMounted(()=>{a.mode==="edit"&&P(),setTimeout(()=>{var l;return(l=C.getChartInstance())==null?void 0:l.resize()},200)}),t.watch(()=>a.conf,()=>{a.mode==="edit"&&(P(),V())},{deep:!0}),(l,e)=>{const n=D.ElIcon,r=D.ElButton,c=D.ElCheckbox,f=D.ElCheckboxGroup,m=D.ElPopover;return t.openBlock(),t.createElementBlock("div",{class:"rainfall-time-curve",style:t.normalizeStyle(ce.value)},[t.createElementVNode("div",Se,[t.createElementVNode("div",Ee,[e[4]||(e[4]=t.createElementVNode("div",{class:"header-left"},[t.createElementVNode("span",{class:"indicator-dot"}),t.createElementVNode("span",{class:"panel-title"},"📊 指标时序演变曲线")],-1)),t.createElementVNode("div",we,[t.createVNode(m,{placement:"bottom-start",width:220,trigger:"click"},{reference:t.withCtx(()=>[t.createVNode(r,{size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(ae.value)+" ",1),t.createVNode(n,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(t.unref(te.ArrowDown))]),_:1})]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",Ne,[t.createElementVNode("div",je,[t.createVNode(c,{modelValue:U.value,"onUpdate:modelValue":e[0]||(e[0]=o=>U.value=o),indeterminate:le.value,onChange:se},{default:t.withCtx(()=>[...e[2]||(e[2]=[t.createTextVNode(" 全部指标 ",-1)])]),_:1},8,["modelValue","indeterminate"])]),t.createVNode(f,{modelValue:h.value,"onUpdate:modelValue":e[1]||(e[1]=o=>h.value=o),onChange:V},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,o=>(t.openBlock(),t.createBlock(c,{key:o.fv,label:o.fv,class:"indicator-checkbox-item"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t.createVNode(r,{size:"small",onClick:ue},{default:t.withCtx(()=>[t.createVNode(n,null,{default:t.withCtx(()=>[t.createVNode(t.unref(te.Download))]),_:1}),e[3]||(e[3]=t.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),t.createElementVNode("div",Ve,[t.createElementVNode("div",ke,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(re.value,o=>(t.openBlock(),t.createElementBlock("span",{key:o.name,class:t.normalizeClass(["legend-item",{disabled:!o.visible}]),onClick:u=>ie(o)},[t.createElementVNode("span",{class:"legend-line",style:t.normalizeStyle({borderTopColor:o.visible?o.color:"#ccc",borderTopStyle:"solid"})},null,4),t.createElementVNode("span",Ae,t.toDisplayString(o.name),1)],10,Ie))),128))])]),t.createElementVNode("div",{id:t.unref(ne),class:"chart-container"},null,8,Me)]),t.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),He=T._export_sfc(Pe,[["__scopeId","data-v-12121aea"]]);exports.default=He;
@@ -1,3 +0,0 @@
1
- "use strict";var P=Object.defineProperty,B=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var z=(c,a,l)=>a in c?P(c,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):c[a]=l,V=(c,a)=>{for(var l in a||(a={}))j.call(a,l)&&z(c,l,a[l]);if(q)for(var l of q(a))G.call(a,l)&&z(c,l,a[l]);return c},k=(c,a)=>B(c,F(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),b=require("./BaseComponent-CNXUpPY1.cjs"),f=require("./index-D8dh_6Qd.cjs"),Z=require("./titleStyle-NSnz6cUg.cjs"),L=require("./ele-dzc-icon-h5wOUHF0.cjs"),J=require("./installMarkArea-CjyaJPLE.cjs"),v=require("./installCanvasRenderer-CyhM1Qpl.cjs"),K=require("./install-C8buXQPI.cjs"),Q=require("./install-CIT6k8Ga.cjs"),W=require("./install-z6wShIZI.cjs"),X=require("./install-CYwVETsi.cjs"),Y=require("./universalTransition-CIN_u2Cu.cjs"),N=require("./echarts-BB8O2KSA.cjs"),ee={DEFAULT_ICON:L.DEFAULT_ICON,ACTIVE_ICON:L.ACTIVE_ICON,NAME_CN:"区间曲线",NAME_EN:"Range Line",ORDER:6},te={titleColor:"#111",bgColor:"#fff",textColor:"#111",lineColor:"#314656",top:30,bottom:40,left:20,right:20,radiusSize:8,textSize:12,points:30,isHideTitle:!1,isSmooth:!1},I=[{name:"参数一",项目编号:"",object_id:""}],ne=["name","项目编号","object_id"],ie=["index","deviation","stability","balance","increment","risk","eigen"],oe={useAlias:!1,null:{type:"0",value:""},source:"index"},ae=1,re={DEFAULT:ee,OPTIONS:te,DATA:I,PARAMS:ne,SOURCE:ie,ITEMS:ae,COMMON:oe},le=n.defineComponent(k(V({},re),{__name:"rangeLin",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(c){v.use([v.install,K.install,Q.install,J.install,W.install,X.install,v.install$1,Y.installUniversalTransition]);const a=n.ref(n.inject("session",null)),l="rangelin_"+Math.random().toString(16).substring(4,12),M=["rgba(255, 173, 177, 0.2)","rgba(208, 201, 116, 0.2)","rgba(28, 118, 140, 1)","rgba(95, 28, 140, 1)","rgba(41, 196, 21, 1)"],A=["rgb(255, 173, 177)","rgb(208, 201, 116)","rgb(28, 118, 140)","rgb(95, 28, 140)","rgb(41, 196, 21)"];let s=null,y=null;const o=c;let r={area:[],pieces:[],data:[],times:[]};class R extends b.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),lineColor:this.getOptionValue("lineColor","#314656"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),points:this.getOptionValue("points",30),isHideTitle:this.getOptionValue("isHideTitle",!1),isSmooth:this.getOptionValue("isSmooth",!1)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:I,o.mode==="edit"&&$(),n.nextTick(()=>{let e=document.querySelector("#"+l);e&&(s||(s=N.init(e),y=f.elementResizeDetectorMaker({strategy:"scroll"}),y.listenTo(e,()=>s==null?void 0:s.resize())),s.setOption(D(),!0))})}onPreview(){T.preview()}cleanup(){y&&y.uninstall(document.querySelector("#"+l)),s&&s.clear(),s&&N.dispose(s),s=null,T.unregister()}}const _=new R(o,"rangeLin");_.setupLifecycle();const p=_.getStyle(),w=n.computed(()=>Z.generateTitleStyle(o.conf.options)),D=()=>{var S,m,C,i;const{data:t,options:e}=o.conf;let d=t[0]||{};var g={tooltip:{trigger:"axis"},xAxis:{type:"category",boundaryGap:!1,data:r.times,axisLabel:{formatter:function(u,h){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(u))return u;let x=u.split(" ");return x[0]+`
2
- `+x[1]},color:p.value.textColor,fontSize:p.value.textSize}},yAxis:{type:"value",axisPointer:{snap:!0}},grid:{top:((S=e==null?void 0:e.top)==null?void 0:S.value)||30,bottom:((m=e==null?void 0:e.bottom)==null?void 0:m.value)||40,left:((C=e==null?void 0:e.left)==null?void 0:C.value)||40,right:((i=e==null?void 0:e.right)==null?void 0:i.value)||20,containLabel:!0},visualMap:{show:!1,dimension:0,pieces:r.pieces},dataZoom:[{type:"slider",start:80,end:100,height:15,bottom:15,borderColor:"#e5e5e5",textStyle:{color:p.value.textColor},labelFormatter:function(u,h){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(h))return h;let x=h.split(" ");return x[0]+`
3
- `+x[1]}},{type:"inside"}],series:[{name:(d==null?void 0:d.name)||"",type:"line",smooth:p.value.isSmooth,data:r.data,markArea:{data:r.area}}]};return g},$=()=>{var d;const t=f.hasDataSource(o.conf);let e=(d=p.value.points)!=null?d:30;r.area=[[{name:"区间一",xAxis:f.getxAxisDataTime(e,o.mode,t)[e-5]},{xAxis:f.getxAxisDataTime(e,o.mode,t)[e-10]}]],r.data=f.getRandomArr({num:e,max:200,min:0,mode:o.mode,hasDataSource:t}),r.times=f.getxAxisDataTime(e,o.mode,t),r.pieces=[{lte:e-10,color:p.value.lineColor},{gt:e-10,lte:e-5,color:A[0]},{gt:e-5,color:p.value.lineColor}]},U=(t,e)=>{let d=Array.from({length:t},(i,u)=>u),g=[];for(let i in e)g.push(...e[i]);let S=new Array(t).fill(!1);for(let[i,u]of g)for(let h=i;h<u;h++)S[h]=!0;return d.filter(i=>!S[i]).reduce((i,u)=>(i.length===0||u-i[i.length-1][1]>1?i.push([u,u]):i[i.length-1][1]=u,i),[])},H=t=>{if(!f.hasDataSource(o.conf))return;r.times=t.times,r.data=t.data,r.area=[],r.pieces=[];let e=0;for(let g in t.range)t.range[g]&&t.range[g].forEach(m=>{r.pieces.push({gte:m[0],lte:m[1],color:A[e]}),r.area.push([{name:g,xAxis:m[0],itemStyle:{color:M[e]}},{xAxis:t.times[m[1]]}])}),e++;let d=U(t.data.length,t.range);d.length&&d.forEach(g=>{r.pieces.push({gte:g[0]-1,lte:g[1]+1,color:p.value.lineColor})}),s==null||s.setOption(D(),!0)},O=t=>{f.hasDataSource(o.conf)},T={preview:()=>b.preview(o,a.value,H,O,"rangeLin"),unregister:()=>b.unregister(o,a.value)};n.watchEffect(()=>{o.conf.socketData&&O(o.conf.socketData)});const E=o.conf;return(t,e)=>(n.openBlock(),n.createElementBlock("div",{class:"mix-component",style:n.normalizeStyle({background:n.unref(p).bgColor,borderRadius:`${n.unref(p).radiusSize}px`})},[n.createElementVNode("div",{class:"mix-title",style:n.normalizeStyle(w.value)},n.toDisplayString(n.unref(E).caption||n.unref(E).name),5),n.createElementVNode("div",{class:"mix-body"},[n.createElementVNode("div",{class:"w-full h-full",id:l})]),n.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),se=f._export_sfc(le,[["__scopeId","data-v-0b726b56"]]);exports.default=se;
@@ -1 +0,0 @@
1
- "use strict";var te=Object.defineProperty,ne=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var W=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var $=(p,i,n)=>i in p?te(p,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):p[i]=n,V=(p,i)=>{for(var n in i||(i={}))ae.call(i,n)&&$(p,n,i[n]);if(W)for(var n of W(i))le.call(i,n)&&$(p,n,i[n]);return p},P=(p,i)=>ne(p,oe(i));var D=(p,i,n)=>new Promise((d,k)=>{var j=b=>{try{N(n.next(b))}catch(O){k(O)}},_=b=>{try{N(n.throw(b))}catch(O){k(O)}},N=b=>b.done?d(b.value):Promise.resolve(b.value).then(j,_);N((n=n.apply(p,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),S=require("./index-D8dh_6Qd.cjs"),se=require("./EChartComponentBase-D4wMej9X.cjs"),X=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),re=["id"],ie={key:0,class:"timeline-player"},ce={key:0},ue={key:1},de=["onClick"],me={class:"timeline-labels"},fe={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"实时裂缝演变分布图",NAME_EN:"RealtimeEvolutionMap",ORDER:3},he={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},minPointSize:{value:6,type:"number",label:"最小散点大小",min:2,max:20},maxPointSize:{value:24,type:"number",label:"最大散点大小",min:10,max:60},baseColor:{value:"#ee6666",type:"color",label:"散点颜色"},playInterval:{value:2e3,type:"number",label:"播放间隔(ms)",min:500,max:1e4},linkChannel:{value:"crack",type:"select",label:"component.linkChannel",options:[{label:"裂缝监测",value:"crack"},{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},pe=[{name:"裂缝写实1",fvX:"",fvY:"",fvWidth:"",fvDeviceName:"",object_id:""}],ve=["name","fvX","fvY","fvWidth","fvDeviceName","object_id"],ye=["mosaic","statistics","calculate"],be={useAlias:!1,multiObject:!0,source:"mosaic"},ge=200,Ce={DEFAULT:fe,OPTIONS:he,DATA:pe,PARAMS:ve,SOURCE:ye,ITEMS:ge,COMMON:be},Se=e.defineComponent(P(V({},Ce),{__name:"realtimeEvolutionMap",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const i=p,n=e.ref([]),d=e.ref(0),k=e.ref(!1),j=e.ref(null);let _=null;const N=e.computed(()=>n.value.length<=1?0:d.value/(n.value.length-1)*100),b=h=>n.value.length<=1?50:h/(n.value.length-1)*100;class O extends se.EChartComponentBase{constructor(){super(...arguments),this.currentObjectId=""}getCurrentObjectId(){return this.currentObjectId}setCurrentObjectId(t){this.currentObjectId=t}extractStyles(){return P(V({},super.extractStyles()),{minPointSize:this.getOptionValue("minPointSize",6),maxPointSize:this.getOptionValue("maxPointSize",24),baseColor:this.getOptionValue("baseColor","#ee6666"),playInterval:this.getOptionValue("playInterval",2e3),linkChannel:this.getOptionValue("linkChannel","crack")})}onPreview(){return D(this,null,function*(){const{common:t,data:s}=this.props.conf,o=this.getSource();if(t.multiObject&&Array.isArray(s)){const l=new Set;for(const r of s){const a=yield this.resolveObjectId(r);!a||l.has(a)||(l.add(a),this.subscribeBySource(o,a,r.uid))}}else{const l=yield this.resolveObjectId();l&&(this.currentObjectId=l,this.subscribeBySource(o,l))}})}onLinkEvent(t){K(t)}generateTimeLabels(){return[]}initHistory(){return D(this,null,function*(){const{data:t}=this.props.conf||{};if(!Array.isArray(t)||!t.length)return[];const s=yield this.resolveObjectId();if(!s)return[];const o=24;return Promise.all(t.map(l=>new Promise(r=>{const a=[l.fvX,l.fvY,l.fvWidth,l.fvDeviceName].filter(Boolean);if(!a.length){r([]);return}S.api.platform(c=>{var u;r(((u=c==null?void 0:c.result)==null?void 0:u.data)||[])},{action:"get_mosaic_list",keys:a,object_id:s,page_index:1,page_size:o})})))})}setHistoryData(t){var r;if(!this.hasData()||!t||!Array.isArray(t))return;const s=((r=this.props.conf)==null?void 0:r.data)||[];if(!Array.isArray(s)||!s.length)return;const o=new Map;if(s.forEach((a,c)=>{const u=t[c];Array.isArray(u)&&u.forEach(m=>{const y=m.time||m.datetime;if(!y)return;const C=parseFloat(m[a.fvX]),g=parseFloat(m[a.fvY]),x=a.fvWidth?m[a.fvWidth]:0,A=parseFloat(x!=null?x:"0");if(isNaN(C)||isNaN(g))return;const f=String(y).split(".")[0];o.has(f)||o.set(f,{label:S.dayjs(f).isValid()?S.dayjs(f).format("HH:mm"):f,time:S.dayjs(f).isValid()?S.dayjs(f).format("MM-DD HH:mm:ss"):f,points:[]}),o.get(f).points.push({name:a.name||`crack_${c}`,x:C,y:g,width:isNaN(A)?0:A})})}),o.size===0)return;const l=Array.from(o.entries()).sort((a,c)=>new Date(a[0]).getTime()-new Date(c[0]).getTime()).map(a=>a[1]).slice(-50);n.value=l,d.value=l.length-1,M()}getChartOption(){const t=this.Style.value;return{backgroundColor:"transparent",tooltip:{trigger:"item",formatter:s=>{if(!s.value)return"";const[o,l,r,a,c]=s.value;return`<b>${r}</b><br/>时间: ${c}<br/>X: ${o}<br/>Y: ${l}<br/>宽度: ${a} mm`}},legend:{show:!0,top:6,right:20,textStyle:{color:t.textColor,fontSize:13,fontWeight:"bold"}},grid:{top:40,left:50,right:30,bottom:20},xAxis:{type:"value",name:"x",nameLocation:"end",nameTextStyle:{color:t.textColor,fontSize:13,fontWeight:"bold"},axisLine:{show:!0,lineStyle:{color:"#999"}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:{type:"value",name:"y",nameLocation:"end",nameTextStyle:{color:t.textColor,fontSize:13,fontWeight:"bold"},axisLine:{show:!0,lineStyle:{color:"#999"}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},series:this.buildCumulativeSeries(t)}}buildCumulativeSeries(t){const s=d.value,o=n.value.slice(0,s+1);if(o.length===0)return[];const l=new Map;o.forEach((f,w)=>{f.points.forEach(I=>{l.has(I.name)||l.set(I.name,[]),l.get(I.name).push({x:I.x,y:I.y,width:I.width,time:f.label,timeIdx:w})})});let r=1/0,a=-1/0;l.forEach(f=>f.forEach(w=>{r=Math.min(r,w.width),a=Math.max(a,w.width)})),r===1/0&&(r=0,a=1);const c=a-r||1,u=t.baseColor||"#ee6666",m=t.minPointSize||6,y=t.maxPointSize||24,C=n.value.length||1,g=[u,"#5470c6","#91cc75","#fac858","#73c0de","#fc8452","#9a60b4"],x=[];let A=0;return l.forEach((f,w)=>{const I=g[A%g.length],Q=f.map(E=>[E.x,E.y,w,E.width,E.time]),Z=E=>{const B=((E[3]||0)-r)/c;return m+B*(y-m)};x.push({name:w,type:"scatter",data:Q,symbolSize:Z,itemStyle:{color:E=>{var R,H;const B=.2+.8*(((H=(R=f[E.dataIndex])==null?void 0:R.timeIdx)!=null?H:0)/(C-1||1));return this.hexToRgba(I,B)}},emphasis:{itemStyle:{borderColor:"#333",borderWidth:2}}}),A++}),x}hexToRgba(t,s){const o=t.replace("#",""),l=parseInt(o.substring(0,2),16),r=parseInt(o.substring(2,4),16),a=parseInt(o.substring(4,6),16);return`rgba(${l},${r},${a},${s})`}setSocketData(t){super.setSocketData(t);const{data:s}=this.props.conf,o=S.dayjs().format("HH:mm"),l=S.dayjs().format("MM-DD HH:mm:ss"),r=[];s.forEach(a=>{const c=this.extractDataValue(t,a.fvX),u=this.extractDataValue(t,a.fvY),m=this.extractDataValue(t,a.fvWidth);if(c!=null&&u!=null){const y=parseFloat(c),C=parseFloat(u),g=m!=null?parseFloat(m):0;!isNaN(y)&&!isNaN(C)&&r.push({name:a.name||"default",x:y,y:C,width:isNaN(g)?0:g})}}),r.length>0&&(n.value.push({label:o,time:l,points:r}),n.value.length>50&&n.value.shift(),(k.value||d.value>=n.value.length-2)&&(d.value=n.value.length-1),M())}}const v=new O(i,"realtimeEvolutionMap");v.setupLifecycle();const T=v.getStyle(),q=v.getEchartId(),Y=()=>{k.value?z():U()},U=()=>{n.value.length<=1||(k.value=!0,_=setInterval(()=>{d.value=d.value<n.value.length-1?d.value+1:0,M()},T.value.playInterval||2e3))},z=()=>{k.value=!1,_&&(clearInterval(_),_=null)},L=h=>{d.value=h,M()},G=h=>{if(!j.value||n.value.length<=1)return;const t=j.value.getBoundingClientRect(),s=(h.clientX-t.left)/t.width;L(Math.max(0,Math.min(Math.round(s*(n.value.length-1)),n.value.length-1)))},M=()=>{const h=v.getChartInstance();h&&h.setOption(v.getChartOption(),!0)};e.watch(d,()=>M());const K=h=>D(null,null,function*(){var c;const{payload:t}=h;if(!t)return;const s=t.objectIds&&t.objectIds.length>0?t.objectIds:t.objectId||t.object_id?[t.objectId||t.object_id]:[];if(!s.length||i.mode!=="preview")return;const o=s.sort().join(",");if(v.getCurrentObjectId()===o)return;v.setCurrentObjectId(o),n.value=[],d.value=0,z();const{data:l}=i.conf,r=(c=v.session)==null?void 0:c.value;if(!r)return;const a=i.conf.id;r.componentRequests&&r.componentRequests.delete(a);for(const u of s)Array.isArray(l)&&l.forEach(m=>{m.object_id=u}),v.subscribeBySource(v.getSource(),u);r.registerComponent({id:a,request:null,onUpdate:(u,m)=>{u==="realtime"&&v.setSocketData(m)}})}),F=()=>{var o;if(i.mode!=="edit")return;const h=((o=i.conf)==null?void 0:o.data)||[],t=S.dayjs(),s=[];for(let l=9;l>=0;l--){const r=t.subtract(l*160,"minute"),a=[];h.forEach((c,u)=>{const m=c.name||`裂缝写实${u+1}`,y=(10-l)/10,C=20+u*20+y*30+(Math.random()-.5)*8,g=15+u*10+y*20+(Math.random()-.5)*8,x=.1+y*2.5+Math.random()*.3;a.push({name:m,x:+C.toFixed(1),y:+g.toFixed(1),width:+x.toFixed(2)})}),s.push({label:r.format("HH:mm"),time:r.format("MM-DD HH:mm:ss"),points:a})}n.value=s,d.value=s.length-1},J=e.computed(()=>({background:T.value.bgColor,color:T.value.textColor}));return e.onMounted(()=>{i.mode==="edit"&&F()}),e.onUnmounted(()=>z()),e.watch(()=>i.conf,()=>{i.mode==="edit"&&F()},{deep:!0}),(h,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component crack-realtime-evolution",style:e.normalizeStyle(J.value)},[t[1]||(t[1]=e.createElementVNode("div",{class:"chart-header"},[e.createElementVNode("span",{class:"chart-title"},"▎实时裂缝演变分布图 (动态轨迹)")],-1)),e.createElementVNode("div",{id:e.unref(q),class:"chart-container"},null,8,re),n.value.length>0?(e.openBlock(),e.createElementBlock("div",ie,[e.createElementVNode("button",{class:"play-btn",onClick:Y},[k.value?(e.openBlock(),e.createElementBlock("span",ce,"⏸")):(e.openBlock(),e.createElementBlock("span",ue,"▶"))]),e.createElementVNode("div",{class:"timeline-track",ref_key:"trackRef",ref:j,onClick:G},[t[0]||(t[0]=e.createElementVNode("div",{class:"track-line"},null,-1)),e.createElementVNode("div",{class:"track-progress",style:e.normalizeStyle({width:N.value+"%"})},null,4),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(s,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:e.normalizeClass(["track-dot",{active:o<=d.value,current:o===d.value}]),style:e.normalizeStyle({left:b(o)+"%"}),onClick:e.withModifiers(l=>L(o),["stop"])},null,14,de))),128))],512),e.createElementVNode("div",me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(s,o)=>(e.openBlock(),e.createElementBlock("span",{key:o,class:e.normalizeClass(["time-label",{active:o<=d.value}]),style:e.normalizeStyle({left:b(o)+"%"})},e.toDisplayString(s.label),7))),128))])])):e.createCommentVNode("",!0),e.renderSlot(h.$slots,"default",{},void 0,!0)],4))}})),ke=S._export_sfc(Se,[["__scopeId","data-v-021dcbda"]]);exports.default=ke;
@@ -1,3 +0,0 @@
1
- "use strict";var B=Object.defineProperty,w=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var S=(i,o,r)=>o in i?B(i,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[o]=r,_=(i,o)=>{for(var r in o||(o={}))z.call(o,r)&&S(i,r,o[r]);if(y)for(var r of y(o))$.call(o,r)&&S(i,r,o[r]);return i},v=(i,o)=>w(i,T(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),I=require("./safeI18n-DR20q_h1.cjs"),j=require("./BaseComponent-CNXUpPY1.cjs"),A=require("./index-D8dh_6Qd.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),k=require("./ele-bar-icon-V94clxg_.cjs"),F={class:"title-text"},L={class:"mix-body"},M={class:"rb-label"},H={class:"rb-pct"},U={key:0,class:"rb-empty"},q={DEFAULT_ICON:k.DEFAULT_ICON,ACTIVE_ICON:k.ACTIVE_ICON,NAME_CN:"区域评估条形图",NAME_EN:"Region Bar",ORDER:13},P={bgColor:"#fff",titleColor:"#111",textColor:"#666",radiusSize:8,textSize:13,rowHeight:32,isHideTitle:!1,description:"支持按矿、区域等维度查看系统运行表现。",barColor:"#3b82f6",barTrackColor:"#eef1f6",maxValue:100,unit:"%",sortDesc:!1,btnText:"数据下载",linkChannel:{value:"landslide",type:"select",label:"component.options.lw_linkChannel",options:[{label:"component.options.lw_linkChannel_landslide",value:"landslide"},{label:"component.options.lw_linkChannel_custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.options.lw_customChannel",showWhen:{linkChannel:"custom"}}},W=[{name:"东帮",fv:"",object_id:"",value:88,color:""},{name:"南帮",fv:"",object_id:"",value:81,color:""},{name:"北帮土场",fv:"",object_id:"",value:93,color:""}],Y=["name","fv","object_id",{key:"color",label:"component.options.lw_barItemColor",type:"color"}],G=["mosaic","statistics","calculate"],J={useAlias:!1,multiObject:!0,source:"statistics"},K={DEFAULT:q,OPTIONS:P,DATA:W,PARAMS:Y,SOURCE:G,COMMON:J},Q=e.defineComponent(v(_({},K),{__name:"regionBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const o=i;class r extends j.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#666"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",13),rowHeight:this.getOptionValue("rowHeight",32),description:this.getOptionValue("description",""),barColor:this.getOptionValue("barColor","#3b82f6"),barTrackColor:this.getOptionValue("barTrackColor","#eef1f6"),maxValue:Number(this.getOptionValue("maxValue",100)),unit:this.getOptionValue("unit",""),sortDesc:this.getOptionValue("sortDesc",!1),btnText:this.getOptionValue("btnText",""),linkChannel:this.getOptionValue("linkChannel","landslide"),customChannel:this.getOptionValue("customChannel","")}}getLinkChannel(){const n=this.Style.value;return(n==null?void 0:n.linkChannel)==="custom"?n.customChannel||"":(n==null?void 0:n.linkChannel)||""}setSocketData(n){var s;if(!n)return;(((s=this.props.conf)==null?void 0:s.data)||[]).forEach(d=>{const c=this.extractDataValue(n,d.fv);c!=null&&(d.value=Number(c)||0)})}}const m=new r(o,"regionBar");m.setupLifecycle();const{t:x}=I.useSafeI18n(),l=m.getStyle(),f=o.conf,V=e.computed(()=>R.generateTitleStyle(o.conf.options)),p=e.computed(()=>{var n;const t=(((n=o.conf)==null?void 0:n.data)||[]).map(a=>({name:a.name,value:Number(a.value)||0,color:a.color||""}));return l.value.sortDesc&&t.sort((a,s)=>s.value-a.value),t});function O(t){const n=l.value.maxValue||100;return{width:Math.max(0,Math.min(100,t.value/n*100))+"%",background:t.color||l.value.barColor}}function g(t){return t==null||t===""?"--":typeof t=="number"?Number.isInteger(t)?String(t):t.toFixed(1):String(t)}function b(t){const n=String(t!=null?t:"");return/[",\n]/.test(n)?`"${n.replace(/"/g,'""')}"`:n}function E(){const t=new Date,n=a=>String(a).padStart(2,"0");return`${t.getFullYear()}${n(t.getMonth()+1)}${n(t.getDate())}_${n(t.getHours())}${n(t.getMinutes())}${n(t.getSeconds())}`}function N(){if(o.mode!=="preview")return;const t=p.value;if(!t.length)return;const n=l.value.unit||"",s=["区域",n?`数值(${n})`:"数值"].join(","),d=t.map(C=>[b(C.name),b(g(C.value))].join(",")).join(`
2
- `),c=s+`
3
- `+d,D=new Blob(["\uFEFF"+c],{type:"text/csv;charset=utf-8;"}),h=URL.createObjectURL(D),u=document.createElement("a");u.href=h,u.download=`区域评估_${E()}.csv`,document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(h)}return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(l).bgColor,borderRadius:`${e.unref(l).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(V.value)},[e.createElementVNode("span",F,e.toDisplayString(e.unref(f).caption||e.unref(f).name),1),e.unref(l).btnText?(e.openBlock(),e.createElementBlock("button",{key:0,class:"rb-btn",onClick:N},e.toDisplayString(e.unref(l).btnText),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("div",L,[e.unref(l).description?(e.openBlock(),e.createElementBlock("div",{key:0,class:"body-desc",style:e.normalizeStyle({fontSize:`${e.unref(l).textSize}px`,color:e.unref(l).textColor})},e.toDisplayString(e.unref(l).description),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"body-list",style:e.normalizeStyle({fontSize:`${e.unref(l).textSize}px`,color:e.unref(l).textColor})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(a,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"rb-row",style:e.normalizeStyle({height:`${e.unref(l).rowHeight}px`})},[e.createElementVNode("span",M,e.toDisplayString(a.name||"--"),1),e.createElementVNode("div",{class:"rb-track",style:e.normalizeStyle({background:e.unref(l).barTrackColor})},[e.createElementVNode("div",{class:"rb-fill",style:e.normalizeStyle(O(a))},null,4)],4),e.createElementVNode("span",H,e.toDisplayString(g(a.value))+e.toDisplayString(e.unref(l).unit),1)],4))),128)),p.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",U,e.toDisplayString(e.unref(x)("component.options.lw_noData")),1))],4)]),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),X=A._export_sfc(Q,[["__scopeId","data-v-67c3edff"]]);exports.default=X;
@@ -1 +0,0 @@
1
- "use strict";var I=Object.defineProperty,V=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var z=(f,r,s)=>r in f?I(f,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):f[r]=s,C=(f,r)=>{for(var s in r||(r={}))Y.call(r,s)&&z(f,s,r[s]);if(M)for(var s of M(r))j.call(r,s)&&z(f,s,r[s]);return f},O=(f,r)=>V(f,R(r));var g=(f,r,s)=>new Promise((t,p)=>{var y=l=>{try{v(s.next(l))}catch(S){p(S)}},b=l=>{try{v(s.throw(l))}catch(S){p(S)}},v=l=>l.done?t(l.value):Promise.resolve(l.value).then(y,b);v((s=s.apply(f,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),A=require("./BaseComponent-CNXUpPY1.cjs"),h=require("./index-D8dh_6Qd.cjs"),H=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-rtn-icon-BrsJIU8J.cjs"),w={class:"mix-body"},k={class:"mix-footer"},P={class:"time-info"},F={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"历程",NAME_EN:"Retainer1",ORDER:1},$={nameSize:16,valueSize:48,timeSize:12,radiusSize:8,bgColor:"#fff",titleColor:"#111",textColor:"#111"},N=[{object_id:"",retainer:"",fv:"",fv_name:"",retainer_code:"",status:[{code:0,text:"结束",color:"#409eff"},{code:1,text:"进行",color:"#f56c6c"}]}],q=["object_id","retainer","fv","fv_name","retainer_code"],L=["mosaic"],U=1,B={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},G={DEFAULT:F,OPTIONS:$,DATA:N,PARAMS:q,SOURCE:L,ITEMS:U,COMMON:B},J=o.defineComponent(O(C({},G),{__name:"retainer1",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(f){const r=f,s="--",t=o.reactive({title:s,statusText:s,statusColor:"#409eff",value:s,fvName:"",startTime:s,endTime:"- - - -",duration:s,status:0,startTimestamp:0}),p=d=>d<10?"0"+d:d,y=d=>d>=3600?`${p(Math.floor(d/3600))}:${p(Math.floor(d/60)%60)}:${p(Math.floor(d%60))}`:`${p(Math.floor(d/60))}:${p(Math.floor(d%60))}`;class b extends A.BaseComponent{constructor(){super(...arguments),this.subscribed=!1,this.durationTimer=null}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",16),valueSize:this.getOptionValue("valueSize",48),timeSize:this.getOptionValue("timeSize",12),radiusSize:this.getOptionValue("radiusSize",8)}}init(){var e,i,c;if(this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=N),this.props.mode==="edit"){const a=((i=this.props.conf.data)==null?void 0:i[0])||{},n=((c=a.status)==null?void 0:c[1])||{text:"进行",color:"#f56c6c"};t.title="设备名称",t.fvName=a.fv_name||a.fv||"FV",t.statusText=n.text,t.statusColor=n.color,t.value="123.45",t.startTime=h.dayjs().subtract(1,"hour").format("YYYY-MM-DD HH:mm:ss"),t.endTime="- - - -",t.duration="01:23"}}startDurationTimer(){this.durationTimer&&clearInterval(this.durationTimer),this.durationTimer=window.setInterval(()=>{if(t.status===1&&t.startTimestamp>0){const e=Math.floor((Date.now()-t.startTimestamp)/1e3);t.duration=y(e)}},1e3)}getPreviewHelper(){return{preview:()=>g(this,null,function*(){try{const i=yield new(yield Promise.resolve().then(()=>require("./history-9ToM-rJ6.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(i)}catch(e){console.error("[Retainer1] 获取历史数据失败:",e)}}),unregister:()=>{this.durationTimer&&(clearInterval(this.durationTimer),this.durationTimer=null)}}}onPreview(){var a;if(this.subscribed)return;const e=this.resolveObjectId();this.subscribeRetainer(e),(((a=this.props.conf.data)==null?void 0:a[0])||{}).fv&&this.subscribeFv(e),this.subscribed=!0}setSocketData(e){if(e){if(e.event==="retainer_result"&&e.source_event){const i=e.source_event;i.retained===1||i.retained==="1"?this.handleRetainerOpen(i):(i.retained===0||i.retained==="0")&&this.handleRetainerClose(i);return}switch(e.event){case"retainer_open":this.handleRetainerOpen(e);break;case"retainer_close":this.handleRetainerClose(e);break;case"retainer_event":this.handleRetainerEvent(e);break;case"recv_fv":this.handleFvData(e);break}}}handleRetainerOpen(e){var n,u;const{conf:i}=this.props,c=((n=i.data)==null?void 0:n[0])||{};t.fvName=c.fv_name||c.fv||"",t.status=1;const a=(u=c.status)==null?void 0:u.find(m=>m.code===1);if(t.statusText=(a==null?void 0:a.text)||"进行",t.statusColor=(a==null?void 0:a.color)||"#f56c6c",t.title=e.label_local||e.label_en||i.name||"--",e.opened_at){t.startTime=h.dayjs(e.opened_at).format("YYYY-MM-DD HH:mm:ss"),t.startTimestamp=h.dayjs(e.opened_at).valueOf();const m=Math.floor((Date.now()-t.startTimestamp)/1e3);t.duration=y(m),this.startDurationTimer()}t.endTime="- - - -"}handleRetainerClose(e){var n,u;const{conf:i}=this.props,c=((n=i.data)==null?void 0:n[0])||{};t.status=0;const a=(u=c.status)==null?void 0:u.find(m=>m.code===0);if(t.statusText=(a==null?void 0:a.text)||"结束",t.statusColor=(a==null?void 0:a.color)||"#409eff",e.close_at&&(t.endTime=h.dayjs(e.close_at).format("YYYY-MM-DD HH:mm:ss")),e.opened_at&&e.close_at){const m=h.dayjs(e.opened_at).valueOf(),T=h.dayjs(e.close_at).valueOf(),D=Math.floor((T-m)/1e3);t.duration=y(D)}this.durationTimer&&(clearInterval(this.durationTimer),this.durationTimer=null)}handleRetainerEvent(e){}handleFvData(e){var a,n;const c=(((a=this.props.conf.data)==null?void 0:a[0])||{}).fv;if(c)try{const u=(n=e.data)==null?void 0:n[c];u!==void 0&&(t.value=u)}catch(u){console.error("[Retainer1] 处理 FV 数据失败:",u)}}setHistoryData(e){var a,n,u;const{conf:i}=this.props,c=((a=i.data)==null?void 0:a[0])||{};try{const m=(u=(n=e==null?void 0:e.history)==null?void 0:n[0])==null?void 0:u[0];m&&this.updateParams(m,c,i)}catch(m){console.error("[Retainer1] setHistoryData error:",m),this.resetParams()}}updateParams(e,i,c){var m,T,D;const a=i.fv;t.fvName=i.fv_name||a||"",t.status=typeof e.status=="string"?parseInt(e.status):(m=e.status)!=null?m:0;const n=(T=i.status)==null?void 0:T.find(_=>_.code===t.status);if(t.statusText=(n==null?void 0:n.text)||(t.status===1?"进行":"结束"),t.statusColor=(n==null?void 0:n.color)||(t.status===1?"#f56c6c":"#409eff"),t.title=e.label_cn||c.name||s,t.startTime=e.start_time?h.dayjs(e.start_time).format("YYYY-MM-DD HH:mm:ss"):s,t.endTime=e.end_time?h.dayjs(e.end_time).format("YYYY-MM-DD HH:mm:ss"):"- - - -",e.start_time){const _=h.dayjs(e.start_time).valueOf();if(t.startTimestamp=_,e.end_time){const x=h.dayjs(e.end_time).valueOf();t.duration=y(Math.floor((x-_)/1e3))}else{const x=Math.floor((Date.now()-_)/1e3);t.duration=y(x),this.startDurationTimer()}}else t.duration="00:00";let u=s;e.mosaic&&Array.isArray(e.mosaic)&&e.mosaic.length>0&&(u=(D=e.mosaic[0][a])!=null?D:s),t.value=u}resetParams(){t.title=s,t.statusText=s,t.statusColor="#409eff",t.value=s,t.startTime=s,t.endTime="- - - -",t.duration=s}}const v=new b(r,"retainer1");v.setupLifecycle();const l=v.getStyle(),S=o.computed(()=>H.generateTitleStyle(r.conf.options));return o.watchEffect(()=>{r.conf.historyData&&v.setHistoryData(r.conf.historyData),r.conf.socketData&&v.setSocketData(r.conf.socketData)}),(d,e)=>(o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(l).bgColor,borderRadius:o.unref(l).radiusSize+"px"})},[o.createElementVNode("div",{class:"mix-title",style:o.normalizeStyle(S.value)},o.toDisplayString(r.conf.caption||t.title),5),o.createElementVNode("div",w,[o.createElementVNode("div",{class:"status-tag",style:o.normalizeStyle({fontSize:o.unref(l).nameSize-2+"px",backgroundColor:t.statusColor,color:"#fff"})},o.toDisplayString(t.fvName?t.fvName+"("+t.statusText+")":t.statusText),5),o.createElementVNode("div",{class:"card-value",style:o.normalizeStyle({fontSize:o.unref(l).valueSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.value),5)]),o.createElementVNode("div",k,[o.createElementVNode("div",P,[o.createElementVNode("div",{class:"time-item",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+"px",color:o.unref(l).titleColor})},o.toDisplayString(t.startTime),5),o.createElementVNode("div",{class:"time-item",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+"px",color:o.unref(l).titleColor})},o.toDisplayString(t.endTime),5)]),o.createElementVNode("div",{class:"duration",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+4+"px",color:o.unref(l).textColor})},o.toDisplayString(t.duration),5)]),o.renderSlot(d.$slots,"default",{},void 0,!0)],4))}})),K=h._export_sfc(J,[["__scopeId","data-v-cab9d0ed"]]);exports.default=K;
@@ -1 +0,0 @@
1
- "use strict";var se=Object.defineProperty,ae=Object.defineProperties;var re=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var G=(v,c,l)=>c in v?se(v,c,{enumerable:!0,configurable:!0,writable:!0,value:l}):v[c]=l,I=(v,c)=>{for(var l in c||(c={}))ce.call(c,l)&&G(v,l,c[l]);if($)for(var l of $(c))le.call(c,l)&&G(v,l,c[l]);return v},R=(v,c)=>ae(v,re(c));var U=(v,c,l)=>new Promise((b,w)=>{var C=D=>{try{M(l.next(D))}catch(S){w(S)}},E=D=>{try{M(l.throw(D))}catch(S){w(S)}},M=D=>D.done?b(D.value):Promise.resolve(D.value).then(C,E);M((l=l.apply(v,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),de=require("./BaseComponent-CNXUpPY1.cjs"),L=require("./index-D8dh_6Qd.cjs"),fe=require("./titleStyle-NSnz6cUg.cjs");require("./index-mAPVa0s4.cjs");const X=require("./ele-rtn-icon-BrsJIU8J.cjs"),he=require("./echarts-BB8O2KSA.cjs"),ue={class:"mix-body"},me={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"历程管理",NAME_EN:"Retainer2",ORDER:2},pe={titleColor:"#111",radiusSize:8,bgColor:"#fff",textColor:"#111",barWidth:30,barGap:0,timeWindow:5,isHideTitle:!0},J=[{name:"历程1",object_id:"",retainer:"",retainer_code:"",color:"#ee6666",showLine:!1,fv:"",lineStyle:"solid",lineWidth:2}],ye=["name","object_id","retainer","retainer_code","color","showLine",{key:"fv",dependent:"showLine"},{key:"lineStyle",dependent:"showLine"},{key:"lineWidth",dependent:"showLine"}],ge=["mosaic"],ve={useAlias:!1,multiObject:!0,showBothModes:!0,source:"mosaic"},be={DEFAULT:me,OPTIONS:pe,DATA:J,PARAMS:ye,SOURCE:ge,COMMON:ve},we=f.defineComponent(R(I({},be),{__name:"retainer2",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){const c=v,l=f.ref(null);let b=null;const w=f.reactive([]),C=p=>w[p];class E extends de.BaseComponent{constructor(){super(...arguments),this.subscribed=!1}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),barWidth:this.getOptionValue("barWidth",30),barGap:this.getOptionValue("barGap",0),timeWindow:this.getOptionValue("timeWindow",5),isHideTitle:this.getOptionValue("isHideTitle",!0)}}init(){var e;this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=J),this.props.mode==="edit"&&M()}getPreviewHelper(){return{preview:()=>U(this,null,function*(){try{const i=yield new(yield Promise.resolve().then(()=>require("./history-9ToM-rJ6.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(i)}catch(e){console.error("[Retainer2] 获取历史数据失败:",e)}}),unregister:()=>{}}}onPreview(){var n;if(this.subscribed)return;const{conf:e}=this.props,{data:i,common:t}=e;if(t.multiObject&&Array.isArray(i)){const o=new Set;i.forEach(s=>{const r=this.resolveObjectId(s);!r||o.has(r)||(o.add(r),this.subscribeRetainer(r),s.showLine&&s.fv&&this.subscribeFv(r))})}else{const o=this.resolveObjectId();this.subscribeRetainer(o),(n=i==null?void 0:i[0])!=null&&n.fv&&this.subscribeFv(o)}this.subscribed=!0}setSocketData(e){if(e)switch(e.event){case"retainer_open":this.handleRetainerOpen(e);break;case"retainer_close":this.handleRetainerClose(e);break;case"retainer_event":this.handleRetainerEvent(e);break;case"recv_fv":this.handleFvData(e);break}}handleRetainerOpen(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(a=>this.resolveObjectId(n!=null&&n.multiObject?a:void 0)===o);if(s===-1)return;let r=C(s);if(!r){const a=t[s];r={name:a.name||`历程${s+1}`,color:a.color||"#409eff",objectId:o,fv:a.fv||"",periods:[],lineData:[],showLine:a.showLine||!1,lineStyle:a.lineStyle||"solid",lineWidth:a.lineWidth||2},w.push(r)}e.opened_at&&r.periods.push({start:e.opened_at,end:null}),O()}handleRetainerClose(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(d=>this.resolveObjectId(n!=null&&n.multiObject?d:void 0)===o);if(s===-1)return;const r=C(s);if(!r)return;const a=r.periods[r.periods.length-1];a&&!a.end&&(a.end=e.close_at||new Date().toISOString()),O()}handleRetainerEvent(e){}handleFvData(e){var d;const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(h=>this.resolveObjectId(n!=null&&n.multiObject?h:void 0)===o);if(s===-1)return;const a=t[s].fv;if(a)try{const h=(d=e.data)==null?void 0:d[a];if(h!==void 0){const g=C(s);if(g&&g.showLine){const u=e.datetime||new Date().toISOString();g.lineData.push({time:u,value:h}),g.lineData.sort((_,T)=>new Date(_.time).getTime()-new Date(T.time).getTime()),O()}}}catch(h){console.error("[Retainer2] 处理 FV 数据失败:",h)}}setHistoryData(e){const{conf:i}=this.props,{data:t,common:n}=i;w.length=0,t.forEach((o,s)=>{var h;const r=this.resolveObjectId(n!=null&&n.multiObject?o:void 0),a=o.fv||"",d={name:o.name||`历程${s+1}`,color:o.color||"#409eff",objectId:r,fv:a,periods:[],lineData:[],showLine:o.showLine||!1,lineStyle:o.lineStyle||"solid",lineWidth:o.lineWidth||2};try{(((h=e==null?void 0:e.history)==null?void 0:h[s])||[]).forEach(u=>{u&&u.start_time&&(d.periods.push({start:u.start_time,end:u.end_time||null}),o.showLine&&a&&u.mosaic&&Array.isArray(u.mosaic)&&u.mosaic.forEach(_=>{const T=_[a];T!==void 0&&_.time&&d.lineData.push({time:_.time,value:T})}))}),d.lineData.sort((u,_)=>new Date(u.time).getTime()-new Date(_.time).getTime())}catch(g){}w.push(d)}),O()}}const M=()=>{const{data:p}=c.conf;w.length=0;const e=L.dayjs();p.forEach((i,t)=>{const n=`edit_object_${t}`,o=[{start:e.subtract(6+t,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(4+t,"hour").format("YYYY-MM-DD HH:mm:ss")},{start:e.subtract(2+t*.5,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(t*.3,"hour").format("YYYY-MM-DD HH:mm:ss")}],s=[];i.showLine&&o.forEach(r=>{const a=L.dayjs(r.start),h=L.dayjs(r.end).diff(a,"minute"),g=Math.max(5,Math.floor(h/10));for(let u=0;u<=g;u++){const _=a.add(h/g*u,"minute");s.push({time:_.format("YYYY-MM-DD HH:mm:ss"),value:150+Math.sin(u*.8+t*2)*50+t*30})}}),w.push({name:i.name||`历程${t+1}`,color:i.color||["#ee6666","#91cc75","#fac858"][t%3],objectId:n,fv:i.fv||"",periods:o,lineData:s,showLine:i.showLine||!1,lineStyle:i.lineStyle||"solid",lineWidth:i.lineWidth||2})})},D=new E(c,"retainer2");D.setupLifecycle();const S=D.getStyle(),W=c.conf,K=f.computed(()=>fe.generateTitleStyle(c.conf.options)),V=()=>w.filter(p=>p.showLine&&p.lineData.length>0),Q=()=>{const p=[],e=V();let i=1;return e.forEach(t=>{t.periods.forEach((n,o)=>{const s=new Date(n.start).getTime(),r=n.end?new Date(n.end).getTime():Date.now(),a=t.lineData.filter(d=>{const h=new Date(d.time).getTime();return h>=s&&h<=r}).map(d=>[new Date(d.time).getTime(),d.value]);a.length>0&&p.push({name:o===0?`${t.name}-曲线`:`${t.name}-曲线-${o+1}`,type:"line",yAxisIndex:i,smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:t.color,width:t.lineWidth,type:t.lineStyle},itemStyle:{color:t.color},data:a})}),i++}),p},Z=p=>{const e=V(),i=e.length,t=[{type:"value",min:0,max:p,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}}];return e.forEach((n,o)=>{const s=n.lineData.map(u=>u.value),r=Math.max(...s),a=Math.min(...s),d=Math.ceil(r*1.1),h=Math.floor(a*.9),g=o*50;t.push({type:"value",position:"right",offset:g,min:h,max:d,axisLine:{show:!0,lineStyle:{color:n.color}},axisTick:{show:!0,lineStyle:{color:n.color}},axisLabel:{color:n.color,fontSize:10},splitLine:{show:!1}})}),{yAxes:t,lineCount:i}},k=()=>{l.value&&(b=he.init(l.value),O())},O=()=>{var P;if(!b)return;const p=w.length||1,e=((P=l.value)==null?void 0:P.clientHeight)||300,i=30,t=10,n=e-i-t,o=S.value.barWidth||30,s=S.value.barGap||0,r=o+s,a=p*r;let d=o,h=s,g=r;if(a>n){const m=n/a;d=Math.max(o*m,10),h=s*m,g=d+h}const u=[];let _=!1;w.forEach((m,y)=>{m.periods.forEach(x=>{const j=new Date(x.start).getTime(),Y=x.end?new Date(x.end).getTime():Date.now();x.end||(_=!0),u.push({name:m.name,value:[j,Y,y],itemStyle:{color:x.end?m.color+"80":m.color}})})});const{yAxes:T,lineCount:N}=Z(p),ee=N>0?20+N*50:20,te={tooltip:{trigger:"axis",formatter:m=>{if(Array.isArray(m)){const y=m.find(x=>x.seriesType==="line");if(y){const x=L.dayjs(y.value[0]).format("YYYY-MM-DD HH:mm:ss");return`${y.seriesName}<br/>时间: ${x}<br/>数值: ${y.value[1]}`}}return""}},grid:{left:40,right:ee,top:t,bottom:i,containLabel:!1},xAxis:R(I({type:"time",position:"bottom"},_?{min:Date.now()-S.value.timeWindow*60*1e3,max:Date.now()}:{}),{axisLine:{show:!0,lineStyle:{color:S.value.titleColor}},axisTick:{show:!0,lineStyle:{color:S.value.titleColor}},axisLabel:{formatter:"{HH}:{mm}",color:S.value.textColor,fontSize:11,margin:8},splitLine:{show:!1}}),yAxis:T,series:[{name:"甘特图",type:"custom",yAxisIndex:0,renderItem:(m,y)=>{var F;const x=y.value(0),j=y.value(1),Y=y.value(2),A=y.coord([x,0])[0],oe=y.coord([j,0])[0],B=m.coordSys.y+m.coordSys.height-(Y+1)*g+h,ne=B+d/2,q=Math.max(oe-A,2),ie=((F=w[Y])==null?void 0:F.name)||"";return{type:"group",children:[{type:"rect",shape:{x:A,y:B,width:q,height:d,r:2},style:y.style()},{type:"text",style:{x:A+q/2,y:ne,text:ie,fill:"#fff",fontSize:11,textAlign:"center",textVerticalAlign:"middle"}}]}},encode:{x:[0,1],y:2,tooltip:[0,1]},tooltip:{formatter:m=>{const y=L.dayjs(m.value[0]).format("YYYY-MM-DD HH:mm:ss"),x=L.dayjs(m.value[1]).format("YYYY-MM-DD HH:mm:ss"),j=m.value[1]>=Date.now()-1e3;return`${m.name}<br/>开始: ${y}<br/>结束: ${j?"进行中":x}`}},data:u},...Q()]};b.setOption(te,!0)},z=()=>{b==null||b.resize()};let H=null;return f.onMounted(()=>{H=new ResizeObserver(()=>{b?b.resize():l.value&&k()}),l.value&&H.observe(l.value),setTimeout(()=>{k()},100),window.addEventListener("resize",z)}),f.onUnmounted(()=>{window.removeEventListener("resize",z),H==null||H.disconnect(),b==null||b.dispose()}),f.watch(()=>c.conf.data,()=>{c.mode==="edit"&&M(),O()},{deep:!0}),f.watch(()=>c.conf.options,()=>{S.value=D.extractStyles(),O()},{deep:!0}),f.watchEffect(()=>{c.conf.historyData&&D.setHistoryData(c.conf.historyData),c.conf.socketData&&D.setSocketData(c.conf.socketData)}),(p,e)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(S).bgColor,borderRadius:f.unref(S).radiusSize+"px"})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(K.value)},f.toDisplayString(f.unref(W).caption||f.unref(W).name),5),f.createElementVNode("div",ue,[f.createElementVNode("div",{class:"timeline-chart",ref_key:"chartRef",ref:l},null,512)]),f.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),De=L._export_sfc(we,[["__scopeId","data-v-8258f73d"]]);exports.default=De;
@@ -1 +0,0 @@
1
- "use strict";var Se=Object.defineProperty,Be=Object.defineProperties;var Ee=Object.getOwnPropertyDescriptors;var ee=Object.getOwnPropertySymbols;var Te=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable;var te=(_,b,d)=>b in _?Se(_,b,{enumerable:!0,configurable:!0,writable:!0,value:d}):_[b]=d,$=(_,b)=>{for(var d in b||(b={}))Te.call(b,d)&&te(_,d,b[d]);if(ee)for(var d of ee(b))je.call(b,d)&&te(_,d,b[d]);return _},W=(_,b)=>Be(_,Ee(b));var S=(_,b,d)=>new Promise((w,I)=>{var B=h=>{try{E(d.next(h))}catch(T){I(T)}},C=h=>{try{E(d.throw(h))}catch(T){I(T)}},E=h=>h.done?w(h.value):Promise.resolve(h.value).then(B,C);E((d=d.apply(_,b)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/timeline/style/css");require("element-plus/es/components/timeline-item/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/alert/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio-button/style/css");const e=require("vue"),k=require("./index-D8dh_6Qd.cjs"),le=require("./useMixiotPanelSurface-BMNrWBMF.cjs"),De=require("./BaseComponent-CNXUpPY1.cjs"),ze=require("./titleStyle-NSnz6cUg.cjs"),N=require("element-plus"),Oe=require("@element-plus/icons-vue"),qe=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),ae=require("./ele-lst-icon-CrxnHZ-A.cjs"),Re={class:"mix-body"},Me={class:"toolbar toolbar-status"},Ae={class:"toolbar"},Fe={key:3},Le={class:"pagination"},Ie={class:"detail-body"},Pe={key:0,class:"detail-events-title"},Ke={DEFAULT_ICON:ae.DEFAULT_ICON,ACTIVE_ICON:ae.ACTIVE_ICON,NAME_CN:"历程记录",NAME_EN:"RetainerRecordList",ORDER:7},He={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{key:"template_id",label:"项目编号",width:140,visible:!0},{key:"label_cn",label:"历程项中文名称",width:140,visible:!0},{key:"label_en",label:"历程项英文名称",width:140,visible:!0},{key:"code",label:"历程项编码",width:120,visible:!0},{key:"category",label:"历程类型",width:100,visible:!0},{key:"object_id",label:"对象编号",width:140,visible:!0},{key:"object_name",label:"对象名称",width:140,visible:!0},{key:"object_alias",label:"对象别名",width:120,visible:!0},{key:"model",label:"型号",width:100,visible:!0},{key:"retained",label:"状态",width:90,visible:!0},{key:"opened_at",label:"开始时间",width:170,visible:!0},{key:"elapsed",label:"持续时间",width:120,visible:!0},{key:"statis_result",label:"统计结果",width:120,visible:!0},{key:"close_at",label:"结束时间",width:170,visible:!0}]},oe=[{name:"历程记录",fv:"",showViewBtn:!0,showExportBtn:!0,template_id:"项目编号",template_id_visible:!0,label_cn:"历程项中文名称",label_cn_visible:!0,label_en:"历程项英文名称",label_en_visible:!0,code:"历程项编码",code_visible:!0,category:"历程类型",category_visible:!0,object_id:"对象编号",object_id_visible:!0,object_name:"对象名称",object_name_visible:!0,object_alias:"对象别名",object_alias_visible:!0,model:"型号",model_visible:!0,retained:"状态",retained_visible:!0,opened_at:"开始时间",opened_at_visible:!0,elapsed:"持续时间",elapsed_visible:!0,statis_result:"统计结果",statis_result_visible:!0,close_at:"结束时间",close_at_visible:!0}],Ue=[{key:"showViewBtn",label:"详情",type:"checkbox",group:"操作组"},{key:"showExportBtn",label:"导出",type:"checkbox",group:"命令组"},{key:"name",label:"参数名称"},{key:"template_id",label:"项目编号",checkable:!0,checkboxKey:"template_id_visible"},{key:"label_cn",label:"历程项中文名称",checkable:!0,checkboxKey:"label_cn_visible"},{key:"label_en",label:"历程项英文名称",checkable:!0,checkboxKey:"label_en_visible"},{key:"code",label:"历程项编码",checkable:!0,checkboxKey:"code_visible"},{key:"category",label:"历程类型",checkable:!0,checkboxKey:"category_visible"},{key:"object_id",label:"对象编号",checkable:!0,checkboxKey:"object_id_visible"},{key:"object_name",label:"对象名称",checkable:!0,checkboxKey:"object_name_visible"},{key:"object_alias",label:"对象别名",checkable:!0,checkboxKey:"object_alias_visible"},{key:"model",label:"型号",checkable:!0,checkboxKey:"model_visible"},{key:"retained",label:"状态",checkable:!0,checkboxKey:"retained_visible"},{key:"opened_at",label:"开始时间",checkable:!0,checkboxKey:"opened_at_visible"},{key:"elapsed",label:"持续时间",checkable:!0,checkboxKey:"elapsed_visible"},{key:"statis_result",label:"统计结果",checkable:!0,checkboxKey:"statis_result_visible"},{key:"close_at",label:"结束时间",checkable:!0,checkboxKey:"close_at_visible"}],Ye=[],$e={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"template_id",label:"setting.gridFields.templateId"},{value:"code",label:"setting.gridFields.code"},{value:"label_cn",label:"setting.gridFields.labelCn"},{value:"label_en",label:"setting.gridFields.labelEn"},{value:"category",label:"setting.gridFields.category"},{value:"object_id",label:"setting.gridFields.objectId"},{value:"object_name",label:"setting.gridFields.objectName"},{value:"object_alias",label:"setting.gridFields.objectAlias"},{value:"model",label:"setting.gridFields.model"},{value:"customer_name",label:"setting.gridFields.customerName"},{value:"opened_at",label:"setting.gridFields.openedAt"}]},We={DEFAULT:Ke,OPTIONS:He,DATA:oe,PARAMS:Ue,SOURCE:Ye,COMMON:$e},Je=e.defineComponent(W($({},We),{__name:"retainerRecordList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{default:"edit"},theme:{},code:{default:""}},setup(_){const b={ALERT:"报警",FAULT:"故障",OTHER:"其他"},d="YYYY-MM-DD HH:mm:ss",w=_;class I extends De.BaseComponent{getDataBool(t,i){var n,s;const a=(s=(n=this.props.conf)==null?void 0:n.data)==null?void 0:s[0];return a&&Object.prototype.hasOwnProperty.call(a,t)&&a[t]!==void 0?!!a[t]:this.getOptionValue(t,i)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showViewBtn:this.getDataBool("showViewBtn",!0),showExportBtn:this.getDataBool("showExportBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(oe));else{const i=this.props.conf.data[0];i.showViewBtn===void 0&&(i.showViewBtn=!0),i.showExportBtn===void 0&&(i.showExportBtn=!0);for(const a of["template_id_visible","label_cn_visible","label_en_visible","code_visible","category_visible","object_id_visible","object_name_visible","object_alias_visible","model_visible","retained_visible","opened_at_visible","elapsed_visible","statis_result_visible","close_at_visible"])i[a]===void 0&&(i[a]=!0)}}needsHistoryData(){return!1}onPreview(){return S(this,null,function*(){this.subscribeMmqEvent("retainer_open","retainer",""),this.subscribeMmqEvent("retainer_close","retainer","")})}setSocketData(t){var n;if(!t)return;let i,a;if(typeof t.event=="string"?(i=t.event,a=typeof t.block=="string"?t.block:void 0):t.event&&typeof t.event=="object"&&(i=t.event.event,a=t.event.block),a==="retainer"&&(i==="retainer_open"||i==="retainer_close")){const s=this;(n=s._retainerTableRefresh)==null||n.call(s);return}}}const B=new I(w,"retainerRecordList");B.setupLifecycle();const C=B.getStyle(),{mixiotPanelClass:E,mixiotPanelRootStyle:h}=le.useMixiotPanelSurface(C),{tableWrapRef:T,tableBodyHeight:ie}=le.useTableBodyHeight(),ne=e.computed(()=>ze.generateTitleStyle(w.conf.options)),re=e.computed(()=>{var i,a,n,s;const o=((a=(i=w.conf)==null?void 0:i.options)==null?void 0:a.columns)||[],t=((s=(n=w.conf)==null?void 0:n.data)==null?void 0:s[0])||{};return(Array.isArray(o)?o:[]).map(v=>{const r=t[v.key],f=t[`${v.key}_visible`];return{prop:v.key,label:r!==void 0&&r!==""?String(r):v.label,width:v.width,minWidth:v.minWidth,visible:f!==void 0?!!f:v.visible!==!1}})}),g=e.reactive({current:1,pageSize:20,total:0}),j=e.ref("1"),D=e.ref([k.dayjs().subtract(1,"month").format(d),k.dayjs().format(d)]),z=e.ref(""),y=e.ref("object_name"),O=e.ref(null),q=e.ref(""),R=e.ref([]),H=e.ref(!1),U=e.ref({});function se(){g.current=1,x()}function ce(){z.value="",O.value=null,q.value=""}function J(o){var i;if(o==null||o==="")return"";const t=String(o);return(i=b[t])!=null?i:t}function P(o){const t=o.retained;return t===1||t==="1"}function de(o,t){const i=o[t];return i==null?"":String(i)}function ue(){return S(this,null,function*(){var o;if(!(Object.keys(U.value).length>0))try{let t=1;const i=2e3;for(;;){const a=yield k.api.post("get_object_list",{page_index:t,page_size:i},!1),n=(o=a==null?void 0:a.result)!=null?o:a,s=Array.isArray(n==null?void 0:n.data)?n.data:[];for(const r of s){const f=r.uid;f&&(U.value[f]={name:r.name,alias:r.alias,model:r.model})}const v=typeof(n==null?void 0:n.total_records)=="number"?n.total_records:s.length;if(!s.length||t*i>=v)break;t++}}catch(t){}})}function be(){const o=[];j.value!=="2"&&o.push(["retained","=",j.value]);const t=D.value;if(t&&t.length===2&&t[0]&&t[1]){const[a,n]=t[0]<=t[1]?t:[t[1],t[0]];o.push(["created",">=",a]),o.push(["created","<=",n])}if(y.value==="opened_at"){const a=O.value;if(a&&a.length===2&&a[0]&&a[1]){const[n,s]=a[0]<=a[1]?a:[a[1],a[0]];o.push(["opened_at",">=",n]),o.push(["opened_at","<=",s])}}else if(y.value==="category"){const a=q.value.trim();a&&o.push(["category","=",a])}else{const a=z.value.trim();a&&o.push([y.value,"like",`%${a}%`])}qe.appendCommonDesignerWhereAnd(w.conf.common,o);const i={page_index:g.current,page_size:g.pageSize};return o.length&&(i.where_and=JSON.stringify(o)),i}function x(){return S(this,null,function*(){var o;H.value=!0;try{yield ue();const t=yield k.api.post("get_retainer_result_list",be(),!0),i=(o=t==null?void 0:t.result)!=null?o:t,a=Array.isArray(i==null?void 0:i.data)?i.data:[];R.value=a.map(s=>{var f,V,F;const v=s.object_id?String(s.object_id):"",r=v?U.value[v]:void 0;return W($({},s),{object_name:(f=s.object_name)!=null?f:r==null?void 0:r.name,object_alias:(V=s.object_alias)!=null?V:r==null?void 0:r.alias,model:(F=s.model)!=null?F:r==null?void 0:r.model})});const n=i==null?void 0:i.total_records;g.total=typeof n=="number"?n:a.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[retainerRecordList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),R.value=[],g.total=0}finally{H.value=!1}})}B._retainerTableRefresh=()=>{x()};const pe=e.computed(()=>R.value);function G(){g.current=1,x()}function _e(){z.value="",O.value=null,q.value="",y.value="object_name",j.value="1",D.value=[k.dayjs().subtract(1,"month").format(d),k.dayjs().format(d)],g.current=1,x()}function me(){g.current=1,x()}function ve(){x()}const K=e.ref(!1),Y=e.ref(!1),M=e.ref(""),c=e.ref(null),A=e.ref([]);function ge(o){return S(this,null,function*(){var i;const t=o.uid;if(!t){N.ElMessage.warning("当前行缺少历程编号,无法拉取详情");return}K.value=!0,Y.value=!0,M.value="",c.value=null,A.value=[];try{const a=yield k.api.post("get_retainer_with_events",{retainer_id:t},!0),n=(i=a==null?void 0:a.result)!=null?i:a;if(a&&a.code!==void 0&&a.code!==200){M.value=String(a.msg||a.info||"详情接口失败");return}c.value=n;const s=n==null?void 0:n.events;A.value=Array.isArray(s)?s:[]}catch(a){M.value="加载历程详情失败"}finally{Y.value=!1}})}function fe(o){const t=i=>String(i).padStart(2,"0");return`${o.getFullYear()}-${t(o.getMonth()+1)}-${t(o.getDate())} ${t(o.getHours())}:${t(o.getMinutes())}:${t(o.getSeconds())}`}function he(){return S(this,null,function*(){const o=D.value;if(!o||o.length<2||!o[0]||!o[1]){N.ElMessage.warning("请先选择创建时间范围后再导出");return}const t=[...new Set(R.value.map(a=>{var n;return String((n=a.object_id)!=null?n:"").trim()}).filter(Boolean))],i=[...new Set(R.value.map(a=>{var n;return String((n=a.template_id)!=null?n:"").trim()}).filter(Boolean))];if(!t.length&&!i.length){N.ElMessage.warning("当前页列表无项目编号或对象编号,请加载数据后再导出");return}try{yield N.ElMessageBox.confirm("将按当前列表中的项目/对象编号及所选创建时间范围提交导出任务(与 mixui 历程导出一致),是否继续?","导出历程数据",{type:"info"})}catch(a){return}try{const a=yield k.api.post("export_retainer_data",{file_name:`retainer_export_${fe(new Date).replace(/[: ]/g,"_")}`,open_at:o[0]<=o[1]?o[0]:o[1],close_at:o[0]<=o[1]?o[1]:o[0],template_ids:i,object_ids:t,character:"utf-8"},!0);if(a.code!==void 0&&a.code!==200){N.ElMessage.warning(a.msg||a.info||"导出请求未成功");return}N.ElMessage.success("导出任务已提交")}catch(a){N.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{x()}),(o,t)=>{const i=u.ElRadioButton,a=u.ElRadioGroup,n=u.ElDatePicker,s=u.ElIcon,v=u.ElInput,r=u.ElOption,f=u.ElSelect,V=u.ElButton,F=u.ElTag,Q=u.ElTableColumn,ye=u.ElTable,ke=u.ElPagination,Ve=u.ElAlert,p=u.ElDescriptionsItem,we=u.ElDescriptions,xe=u.ElTimelineItem,Ne=u.ElTimeline,Ce=u.ElDialog,X=u.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["retainer-record-list mix-component",e.unref(E)]),style:e.normalizeStyle(e.unref(h))},[e.unref(C).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(ne.value)},e.toDisplayString(_.conf.caption||_.conf.name),5)),e.createElementVNode("div",Re,[e.createElementVNode("div",Me,[e.createVNode(a,{modelValue:j.value,"onUpdate:modelValue":t[0]||(t[0]=l=>j.value=l),size:"small",onChange:se},{default:e.withCtx(()=>[e.createVNode(i,{label:"1"},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode("持续历程",-1)])]),_:1}),e.createVNode(i,{label:"0"},{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode("已完结历程",-1)])]),_:1}),e.createVNode(i,{label:"2"},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("全部记录",-1)])]),_:1})]),_:1},8,["modelValue"]),e.createVNode(n,{modelValue:D.value,"onUpdate:modelValue":t[1]||(t[1]=l=>D.value=l),type:"datetimerange","range-separator":"至","start-placeholder":"创建开始","end-placeholder":"创建结束","value-format":"YYYY-MM-DD HH:mm:ss",size:"small",class:"toolbar-created-range"},null,8,["modelValue"])]),e.createElementVNode("div",Ae,[y.value!=="opened_at"&&y.value!=="category"?(e.openBlock(),e.createBlock(v,{key:0,modelValue:z.value,"onUpdate:modelValue":t[2]||(t[2]=l=>z.value=l),placeholder:"输入关键字后搜索(与 mixui 历程记录检索字段一致)",size:"small",class:"toolbar-search",onKeyup:e.withKeys(G,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(s,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Oe.Search))]),_:1})]),_:1},8,["modelValue"])):y.value==="opened_at"?(e.openBlock(),e.createBlock(n,{key:1,modelValue:O.value,"onUpdate:modelValue":t[3]||(t[3]=l=>O.value=l),type:"datetimerange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD HH:mm:ss",size:"small",class:"toolbar-opened-range"},null,8,["modelValue"])):(e.openBlock(),e.createBlock(f,{key:2,modelValue:q.value,"onUpdate:modelValue":t[4]||(t[4]=l=>q.value=l),placeholder:"历程类型",size:"small",class:"toolbar-category",clearable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(b,(l,m)=>e.createVNode(r,{key:m,label:l,value:m},null,8,["label","value"])),64))]),_:1},8,["modelValue"])),e.createVNode(f,{modelValue:y.value,"onUpdate:modelValue":t[5]||(t[5]=l=>y.value=l),size:"small",class:"toolbar-field-select",onChange:ce},{default:e.withCtx(()=>[e.createVNode(r,{label:"项目编号",value:"template_id"}),e.createVNode(r,{label:"历程项编码",value:"code"}),e.createVNode(r,{label:"历程项名称(中文)",value:"label_cn"}),e.createVNode(r,{label:"历程项名称(英文)",value:"label_en"}),e.createVNode(r,{label:"历程类型",value:"category"}),e.createVNode(r,{label:"对象编号",value:"object_id"}),e.createVNode(r,{label:"对象别名",value:"object_alias"}),e.createVNode(r,{label:"对象名称",value:"object_name"}),e.createVNode(r,{label:"对象型号",value:"model"}),e.createVNode(r,{label:"项目名称",value:"customer_name"}),e.createVNode(r,{label:"开始时间",value:"opened_at"})]),_:1},8,["modelValue"]),e.createVNode(V,{type:"primary",onClick:G},{default:e.withCtx(()=>[...t[14]||(t[14]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(V,{onClick:_e},{default:e.withCtx(()=>[...t[15]||(t[15]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(C).showExportBtn?(e.openBlock(),e.createBlock(V,{key:3,type:"success",onClick:he},{default:e.withCtx(()=>[...t[16]||(t[16]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:T,class:"table-wrapper"},[e.createVNode(ye,{data:pe.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(ie)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(re.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.prop},[l.visible?(e.openBlock(),e.createBlock(Q,{key:0,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(m=>{var L,Z;return[l.prop==="category"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(J(m.row.category)),1)],64)):l.prop==="retained"?(e.openBlock(),e.createBlock(F,{key:1,type:P(m.row)?"success":"info",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P(m.row)?"持续":"已完结"),1)]),_:2},1032,["type"])):l.prop==="label_cn"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(String((Z=(L=m.row.label_local)!=null?L:m.row.label_cn)!=null?Z:"")),1)],64)):(e.openBlock(),e.createElementBlock("span",Fe,e.toDisplayString(de(m.row,l.prop)),1))]}),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.unref(C).showViewBtn?(e.openBlock(),e.createBlock(Q,{key:0,label:"操作",width:"100",fixed:"right"},{default:e.withCtx(l=>[e.createVNode(V,{size:"small",onClick:m=>ge(l.row)},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode("详情",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["data","height"])],512),e.createElementVNode("div",Le,[e.createVNode(ke,{"current-page":g.current,"onUpdate:currentPage":t[6]||(t[6]=l=>g.current=l),"page-size":g.pageSize,"onUpdate:pageSize":t[7]||(t[7]=l=>g.pageSize=l),"page-sizes":[20,50,100,200],layout:"total, sizes, prev, pager, next, jumper",total:g.total,onSizeChange:me,onCurrentChange:ve},null,8,["current-page","page-size","total"])])]),e.createVNode(Ce,{modelValue:K.value,"onUpdate:modelValue":t[9]||(t[9]=l=>K.value=l),title:"历程记录详情",width:"720px","destroy-on-close":"",onClosed:t[10]||(t[10]=l=>c.value=null)},{footer:e.withCtx(()=>[e.createVNode(V,{type:"primary",onClick:t[8]||(t[8]=l=>K.value=!1)},{default:e.withCtx(()=>[...t[18]||(t[18]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Ie,[M.value?(e.openBlock(),e.createBlock(Ve,{key:0,type:"error",title:M.value,"show-icon":"",closable:!1,class:"mb-3"},null,8,["title"])):c.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(we,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(p,{label:"历程编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"项目编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.template_id)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"历程项(中文)"},{default:e.withCtx(()=>{var l,m;return[e.createTextVNode(e.toDisplayString((m=(l=c.value.label_local)!=null?l:c.value.label_cn)!=null?m:""),1)]}),_:1}),e.createVNode(p,{label:"历程项(英文)"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.label_en)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"历程项编码"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.code)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"历程类型"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(J(c.value.category)),1)]),_:1}),e.createVNode(p,{label:"对象编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.object_id)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"对象名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.object_name)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"对象别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.object_alias)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"型号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.model)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"状态"},{default:e.withCtx(()=>[e.createVNode(F,{type:P(c.value)?"success":"info",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P(c.value)?"持续":"已完结"),1)]),_:1},8,["type"])]),_:1}),e.createVNode(p,{label:"开始时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.opened_at)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"结束时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.close_at)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"持续时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.elapsed)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"统计结果"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.statis_result)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.description)!=null?l:""),1)]}),_:1})]),_:1}),A.value.length?(e.openBlock(),e.createElementBlock("div",Pe,"事件")):e.createCommentVNode("",!0),A.value.length?(e.openBlock(),e.createBlock(Ne,{key:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(l,m)=>{var L;return e.openBlock(),e.createBlock(xe,{key:m,timestamp:String((L=l.datetime)!=null?L:"")},{default:e.withCtx(()=>[e.createElementVNode("div",null,"状态:"+e.toDisplayString(l.status===1||l.status==="1"?"开启":"关闭"),1)]),_:2},1032,["timestamp"])}),128))]),_:1})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),[[X,Y.value]])]),_:1},8,["modelValue"]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[X,H.value]])}}})),Ge=k._export_sfc(Je,[["__scopeId","data-v-e3433964"]]);exports.default=Ge;
@@ -1 +0,0 @@
1
- "use strict";var x=Object.defineProperty,T=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var S=(i,o,l)=>o in i?x(i,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[o]=l,g=(i,o)=>{for(var l in o||(o={}))V.call(o,l)&&S(i,l,o[l]);if(y)for(var l of y(o))k.call(o,l)&&S(i,l,o[l]);return i},f=(i,o)=>T(i,I(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),A=require("./index-D8dh_6Qd.cjs"),$=require("./EChartComponentBase-D4wMej9X.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),v=require("./ele-pie-icon-BNhXPoUT.cjs"),D=require("./install-nDY6w-GK.cjs"),C=require("./installCanvasRenderer-CyhM1Qpl.cjs"),R=require("./install-DV5cEgNV.cjs"),j={class:"mix-body"},q=["id"],B={class:"ring-list"},L={DEFAULT_ICON:v.DEFAULT_ICON,ACTIVE_ICON:v.ACTIVE_ICON,NAME_CN:"环形TOP排行",NAME_EN:"Ring TopN",ORDER:10},M={bgColor:"#fff",titleColor:"#111",textColor:"#111",radiusSize:8,textSize:13,isHideTitle:!1,mainColor:"#e74c3c",dimColor:"#dde3ec",ringInside:55,ringOutside:80,topCount:3},P=[{name:"降雨",fv:"",object_id:"",value:34},{name:"应力",fv:"",object_id:"",value:29},{name:"煤自燃",fv:"",object_id:"",value:21}],w=["name","fv","object_id"],F=["mosaic","statistics","calculate"],U={useAlias:!1,multiObject:!0,source:"statistics"},H={DEFAULT:L,OPTIONS:M,DATA:P,PARAMS:w,SOURCE:F,COMMON:U},W=e.defineComponent(f(g({},H),{__name:"ringTopN",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){C.use([R.install,C.install,C.install$1,D.install]);const o=i;class l extends $.EChartComponentBase{extractStyles(){return f(g({},super.extractStyles()),{mainColor:this.getOptionValue("mainColor","#e74c3c"),dimColor:this.getOptionValue("dimColor","#dde3ec"),ringInside:this.getOptionValue("ringInside",55),ringOutside:this.getOptionValue("ringOutside",80),topCount:this.getOptionValue("topCount",3)})}getChartOption(){var s;const a=this.Style.value,r=((s=this.props.conf)==null?void 0:s.data)||[],t=r.reduce((d,p)=>d+(Number(p.value)||0),0);return{color:r.map((d,p)=>p===0?a.mainColor:this.shadeColor(a.dimColor,p)),tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},series:[{type:"pie",radius:[`${a.ringInside}%`,`${a.ringOutside}%`],center:["50%","50%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:r.map(d=>({name:d.name,value:Number(d.value)||0}))}],graphic:t>0?[{type:"text",left:"center",top:"center",style:{text:String(t),fontSize:22,fontWeight:600,fill:a.textColor}}]:[]}}shadeColor(a,r){const t=Math.max(.35,1-r*.18);return this.hexToRgba(a,t)}hexToRgba(a,r){const t=a.replace("#","").match(/.{2}/g);if(!t)return a;const[u,s,d]=t.map(p=>parseInt(p,16));return`rgba(${u},${s},${d},${r})`}setSocketData(a){var t;if(!a||!this.chartObj)return;(((t=this.props.conf)==null?void 0:t.data)||[]).forEach(u=>{const s=this.extractDataValue(a,u.fv);s!=null&&(u.value=Number(s)||0)}),this.updateChart(this.getChartOption())}}const m=new l(o,"ringTopN");m.setupLifecycle();const c=m.getStyle(),_=m.getEchartId(),h=o.conf,O=e.computed(()=>z.generateTitleStyle(o.conf.options)),b=e.computed(()=>{var r;const n=((r=o.conf)==null?void 0:r.data)||[],a=c.value.topCount||3;return[...n].map(t=>({name:t.name,value:Number(t.value)||0})).sort((t,u)=>u.value-t.value).slice(0,a)});function N(n){return n===0?c.value.mainColor:"#9aa3b2"}function E(n){return n==null||n===""?"--":String(n)}return e.watch(()=>{var n;return(n=o.conf)==null?void 0:n.data},()=>e.nextTick(()=>{const n=m.getChartInstance();n&&n.setOption(m.getChartOption(),!0)}),{deep:!0}),(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(O.value)},e.toDisplayString(e.unref(h).caption||e.unref(h).name),5),e.createElementVNode("div",j,[e.createElementVNode("div",{class:"ring-chart",id:e.unref(_)},null,8,q),e.createElementVNode("ol",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(r,t)=>(e.openBlock(),e.createElementBlock("li",{key:t,class:"ring-item"},[e.createElementVNode("span",{class:"ring-rank",style:e.normalizeStyle({color:N(t)})},e.toDisplayString(t+1),5),e.createElementVNode("span",{class:"ring-name",style:e.normalizeStyle({color:e.unref(c).textColor})},e.toDisplayString(r.name||"--"),5),e.createElementVNode("span",{class:"ring-value",style:e.normalizeStyle({color:e.unref(c).textColor,fontSize:`${e.unref(c).textSize}px`})},e.toDisplayString(E(r.value)),5)]))),128))])]),e.renderSlot(n.$slots,"default",{},void 0,!0)],4))}})),G=A._export_sfc(W,[["__scopeId","data-v-653822bf"]]);exports.default=G;
@@ -1 +0,0 @@
1
- "use strict";var A=Object.defineProperty,R=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var D=(o,a,n)=>a in o?A(o,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[a]=n,p=(o,a)=>{for(var n in a||(a={}))O.call(a,n)&&D(o,n,a[n]);if(k)for(var n of k(a))M.call(a,n)&&D(o,n,a[n]);return o},f=(o,a)=>R(o,T(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const I=require("./BaseComponent-CNXUpPY1.cjs"),b=require("./index-D8dh_6Qd.cjs"),V=require("./ele-lin-icon-Dke_1AmT.cjs"),B={class:"panel-header"},F={class:"header-left"},L={class:"pagination-box"},q=["disabled"],P={class:"page-text"},U=["disabled"],w={class:"table-wrapper"},$={class:"risk-table"},W={style:{"font-weight":"bold",color:"#333"}},G={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"风险区域划分",NAME_EN:"Risk Region Table",ORDER:20},H={title:{value:"风险区域划分",type:"string",label:"标题"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleFontSize:{value:14,type:"number",label:"标题字体大小",min:12,max:24},pageSize:{value:10,type:"number",label:"每页行数",min:5,max:20},linkChannel:{value:"satellite",type:"select",label:"联动频道",options:[{label:"遥感卫星",value:"satellite"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},J=[{name:"北帮-A01",fv:"",fvDeviceName:"",object_id:"",area:"北帮",val:12.5,limit:8},{name:"北帮-A02",fv:"",fvDeviceName:"",object_id:"",area:"北帮",val:10.8,limit:8},{name:"北帮-A03",fv:"",fvDeviceName:"",object_id:"",area:"北帮",val:9.2,limit:8},{name:"西帮-B01",fv:"",fvDeviceName:"",object_id:"",area:"西帮",val:7.6,limit:8},{name:"中央区-C01",fv:"",fvDeviceName:"",object_id:"",area:"中央区",val:6.4,limit:8},{name:"西帮-B02",fv:"",fvDeviceName:"",object_id:"",area:"西帮",val:5.8,limit:8},{name:"中央区-C02",fv:"",fvDeviceName:"",object_id:"",area:"中央区",val:4.3,limit:10},{name:"南帮-D01",fv:"",fvDeviceName:"",object_id:"",area:"南帮",val:3.2,limit:8},{name:"南帮-D02",fv:"",fvDeviceName:"",object_id:"",area:"南帮",val:2.8,limit:8},{name:"东帮-E01",fv:"",fvDeviceName:"",object_id:"",area:"东帮",val:1.5,limit:15},{name:"东帮-E02",fv:"",fvDeviceName:"",object_id:"",area:"东帮",val:.8,limit:15},{name:"中央区-C03",fv:"",fvDeviceName:"",object_id:"",area:"中央区",val:.2,limit:15}],K=["object_id","name","fv","fvDeviceName","area","val","limit"],Q=["mosaic"],X={useAlias:!1,multiObject:!0,source:"mosaic"},Y=200,Z={DEFAULT:G,OPTIONS:H,DATA:J,PARAMS:K,SOURCE:Q,COMMON:X,ITEMS:Y},ee=e.defineComponent(f(p({},Z),{__name:"riskRegionTable",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(o){const a=o;class n extends I.BaseComponent{extractStyles(){var m,d,_,C,E,y,S,h;const t=(m=this.props.conf)==null?void 0:m.options,l=((d=t==null?void 0:t.linkChannel)==null?void 0:d.value)||"satellite",r=((_=t==null?void 0:t.customChannel)==null?void 0:_.value)||"";return{title:((C=t==null?void 0:t.title)==null?void 0:C.value)||"风险区域划分",bgColor:((E=t==null?void 0:t.bgColor)==null?void 0:E.value)||"#ffffff",textColor:((y=t==null?void 0:t.textColor)==null?void 0:y.value)||"#333333",titleFontSize:((S=t==null?void 0:t.titleFontSize)==null?void 0:S.value)||14,pageSize:((h=t==null?void 0:t.pageSize)==null?void 0:h.value)||10,linkChannel:l==="custom"&&r?r:l}}onLinkEvent(t){}}const v=new n(a,"riskRegionTable");v.setupLifecycle();const c=v.getStyle(),s=e.ref(1),g=new Map,j=e.computed(()=>{var i;return((i=a.conf)==null?void 0:i.data)||[]}),N=e.computed(()=>{const i=j.value;return i.length===0&&a.mode==="edit"?[{area:"北帮",val:12.5,limit:8},{area:"北帮",val:10.8,limit:8},{area:"北帮",val:9.2,limit:8},{area:"西帮",val:7.6,limit:8},{area:"中央区",val:6.4,limit:8},{area:"西帮",val:5.8,limit:8},{area:"中央区",val:4.3,limit:10},{area:"南帮",val:3.2,limit:8},{area:"南帮",val:2.8,limit:8},{area:"东帮",val:1.5,limit:15},{area:"东帮",val:.8,limit:15},{area:"中央区",val:.2,limit:15}].map(t=>f(p({},t),{risk:b.getRiskLevel(t.val,t.limit)})):i.map(t=>{const l=t.object_id||t.name||"",r=g.has(l)?g.get(l):Number(t.val)||0,m=Number(t.limit)||8;return{area:t.area||"未知区域",val:r,limit:m,risk:b.getRiskLevel(r,m)}}).sort((t,l)=>l.val-t.val)}),u=e.computed(()=>Math.max(1,Math.ceil(N.value.length/c.value.pageSize))),z=e.computed(()=>{const i=c.value.pageSize,t=(s.value-1)*i;return N.value.slice(t,t+i)}),x=e.computed(()=>({backgroundColor:c.value.bgColor}));return e.watch(u,i=>{s.value>i&&(s.value=1)}),e.onMounted(()=>{v.init()}),e.onUnmounted(()=>{v.cleanup()}),e.watch(()=>a.conf,()=>{s.value=1},{deep:!0}),(i,t)=>(e.openBlock(),e.createElementBlock("div",{class:"risk-region-table",style:e.normalizeStyle(x.value)},[e.createElementVNode("div",B,[e.createElementVNode("div",F,[t[2]||(t[2]=e.createElementVNode("span",{class:"indicator-dot"},null,-1)),e.createElementVNode("span",{class:"panel-title",style:e.normalizeStyle({color:e.unref(c).textColor,fontSize:e.unref(c).titleFontSize+"px"})},e.toDisplayString(e.unref(c).title),5)]),e.createElementVNode("div",L,[e.createElementVNode("button",{class:"page-btn",disabled:s.value<=1,onClick:t[0]||(t[0]=l=>s.value--)},"<",8,q),e.createElementVNode("span",P,e.toDisplayString(s.value)+" / "+e.toDisplayString(u.value),1),e.createElementVNode("button",{class:"page-btn",disabled:s.value>=u.value,onClick:t[1]||(t[1]=l=>s.value++)},">",8,U)])]),e.createElementVNode("div",w,[e.createElementVNode("table",$,[t[3]||(t[3]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",null,"序号"),e.createElementVNode("th",null,"区域"),e.createElementVNode("th",null,"形变速率(mm/yr)"),e.createElementVNode("th",null,"风险等级")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,(l,r)=>(e.openBlock(),e.createElementBlock("tr",{key:r,class:e.normalizeClass({"tr-high":l.risk.cls==="risk-high"})},[e.createElementVNode("td",null,e.toDisplayString((s.value-1)*e.unref(c).pageSize+r+1),1),e.createElementVNode("td",W,e.toDisplayString(l.area),1),e.createElementVNode("td",{class:e.normalizeClass(l.risk.cls)},e.toDisplayString(l.val.toFixed(2)),3),e.createElementVNode("td",{class:e.normalizeClass(l.risk.cls)},e.toDisplayString(l.risk.level),3)],2))),128))])])]),e.renderSlot(i.$slots,"default",{},void 0,!0)],4))}})),te=b._export_sfc(ee,[["__scopeId","data-v-7ed7f65b"]]);exports.default=te;
@@ -1 +0,0 @@
1
- "use strict";var w=Object.defineProperty,k=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols,E=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,A=Reflect.get;var L=(l,i,t)=>i in l?w(l,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[i]=t,b=(l,i)=>{for(var t in i||(i={}))M.call(i,t)&&L(l,t,i[t]);if(m)for(var t of m(i))z.call(i,t)&&L(l,t,i[t]);return l},S=(l,i)=>k(l,j(i));var y=(l,i,t)=>A(E(l),t,i);var x=(l,i,t)=>new Promise((u,c)=>{var C=n=>{try{d(t.next(n))}catch(f){c(f)}},h=n=>{try{d(t.throw(n))}catch(f){c(f)}},d=n=>n.done?u(n.value):Promise.resolve(n.value).then(C,h);d((t=t.apply(l,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),g=require("./index-D8dh_6Qd.cjs"),D=require("./EChartComponentBase-D4wMej9X.cjs"),V=require("./titleStyle-NSnz6cUg.cjs"),F=require("./install-BvOpNm0Y.cjs"),p=require("./installCanvasRenderer-CyhM1Qpl.cjs"),I=require("./install-DV5cEgNV.cjs"),T=require("./install-CltTFs4e.cjs"),N=require("./install-C8buXQPI.cjs"),Z="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%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(-104.000000,%20-1128.000000)'%20fill='%23000000'%20fill-rule='nonzero'%3e%3cpath%20d='M119.247329,1128.05%20C119.512288,1128.05%20119.731261,1128.24689%20119.765916,1128.50235%20L119.770694,1128.57336%20L119.770694,1143.52664%20C119.770694,1143.81568%20119.536375,1144.05%20119.247329,1144.05%20C118.98237,1144.05%20118.763398,1143.85311%20118.728742,1143.59765%20L118.723965,1143.52664%20L118.72348,1139.79084%20C117.56923,1139.58573%20116.44436,1139.24442%20115.375349,1138.77418%20L114.942038,1138.57503%20C114.252785,1138.8504%20113.580222,1139.16248%20112.927685,1139.50961%20C110.915224,1140.56725%20108.715224,1141.2498%20106.444376,1141.52335%20L106.312021,1141.537%20L106.31275,1143.52664%20C106.31275,1143.81568%20106.078431,1144.05%20105.789385,1144.05%20C105.524426,1144.05%20105.305454,1143.85311%20105.270798,1143.59765%20L105.266021,1143.52664%20L105.266021,1128.57336%20C105.266021,1128.28432%20105.500339,1128.05%20105.789385,1128.05%20C106.054344,1128.05%20106.273317,1128.24689%20106.307972,1128.50235%20L106.31275,1128.57336%20L106.312839,1131.26902%20C107.347402,1131.59714%20108.304953,1132.12257%20109.124935,1132.81923%20L109.369608,1133.03598%20C110.020476,1132.74226%20110.651317,1132.41015%20111.258793,1132.04132%20C113.524576,1130.74832%20116.103627,1130.0653%20118.723624,1130.04997%20L118.723965,1128.57336%20C118.723965,1128.28432%20118.958283,1128.05%20119.247329,1128.05%20Z%20M116.340569,1138.10774%20C117.109995,1138.414%20117.908209,1138.64444%20118.722842,1138.79616%20L118.723417,1137.60828%20C117.915824,1137.70219%20117.118171,1137.86916%20116.340569,1138.10774%20Z%20M109.181023,1134.21088%20C108.292696,1134.57422%20107.371263,1134.85419%20106.429337,1135.04973%20L106.312021,1135.071%20L106.312021,1138.532%20L106.43317,1138.51692%20C108.016878,1138.28807%20109.554229,1137.81981%20110.987274,1137.12854%20L111.414,1136.91449%20L111.831223,1136.70754%20C111.255456,1136.24693%20110.718073,1135.74459%20110.224081,1135.20554%20C109.860262,1134.83672%20109.514802,1134.50961%20109.181023,1134.21088%20Z%20M111.812866,1132.91582%20C111.292171,1133.2279%20110.756457,1133.51328%20110.205723,1133.77196%20C110.46607,1134.01061%20110.726417,1134.27931%20110.998446,1134.56802%20C111.562532,1135.16883%20112.185028,1135.71789%20112.855923,1136.20854%20C114.693593,1135.32818%20116.684743,1134.78626%20118.723539,1134.60487%20L118.723759,1131.06729%20C116.2993,1131.09796%20113.914626,1131.7301%20111.812866,1132.91582%20Z%20M106.31244,1132.33171%20L106.312021,1134.046%20L106.430502,1134.02203%20C107.059661,1133.88024%20107.678353,1133.69786%20108.283159,1133.4749%20C107.696639,1132.98733%20107.028791,1132.60203%20106.31244,1132.33171%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",q="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%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(-104.000000,%20-1128.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M119.247329,1128.05%20C119.512288,1128.05%20119.731261,1128.24689%20119.765916,1128.50235%20L119.770694,1128.57336%20L119.770694,1143.52664%20C119.770694,1143.81568%20119.536375,1144.05%20119.247329,1144.05%20C118.98237,1144.05%20118.763398,1143.85311%20118.728742,1143.59765%20L118.723965,1143.52664%20L118.72348,1139.79084%20C117.56923,1139.58573%20116.44436,1139.24442%20115.375349,1138.77418%20L114.942038,1138.57503%20C114.252785,1138.8504%20113.580222,1139.16248%20112.927685,1139.50961%20C110.915224,1140.56725%20108.715224,1141.2498%20106.444376,1141.52335%20L106.312021,1141.537%20L106.31275,1143.52664%20C106.31275,1143.81568%20106.078431,1144.05%20105.789385,1144.05%20C105.524426,1144.05%20105.305454,1143.85311%20105.270798,1143.59765%20L105.266021,1143.52664%20L105.266021,1128.57336%20C105.266021,1128.28432%20105.500339,1128.05%20105.789385,1128.05%20C106.054344,1128.05%20106.273317,1128.24689%20106.307972,1128.50235%20L106.31275,1128.57336%20L106.312839,1131.26902%20C107.347402,1131.59714%20108.304953,1132.12257%20109.124935,1132.81923%20L109.369608,1133.03598%20C110.020476,1132.74226%20110.651317,1132.41015%20111.258793,1132.04132%20C113.524576,1130.74832%20116.103627,1130.0653%20118.723624,1130.04997%20L118.723965,1128.57336%20C118.723965,1128.28432%20118.958283,1128.05%20119.247329,1128.05%20Z%20M116.340569,1138.10774%20C117.109995,1138.414%20117.908209,1138.64444%20118.722842,1138.79616%20L118.723417,1137.60828%20C117.915824,1137.70219%20117.118171,1137.86916%20116.340569,1138.10774%20Z%20M109.181023,1134.21088%20C108.292696,1134.57422%20107.371263,1134.85419%20106.429337,1135.04973%20L106.312021,1135.071%20L106.312021,1138.532%20L106.43317,1138.51692%20C108.016878,1138.28807%20109.554229,1137.81981%20110.987274,1137.12854%20L111.414,1136.91449%20L111.831223,1136.70754%20C111.255456,1136.24693%20110.718073,1135.74459%20110.224081,1135.20554%20C109.860262,1134.83672%20109.514802,1134.50961%20109.181023,1134.21088%20Z%20M111.812866,1132.91582%20C111.292171,1133.2279%20110.756457,1133.51328%20110.205723,1133.77196%20C110.46607,1134.01061%20110.726417,1134.27931%20110.998446,1134.56802%20C111.562532,1135.16883%20112.185028,1135.71789%20112.855923,1136.20854%20C114.693593,1135.32818%20116.684743,1134.78626%20118.723539,1134.60487%20L118.723759,1131.06729%20C116.2993,1131.09796%20113.914626,1131.7301%20111.812866,1132.91582%20Z%20M106.31244,1132.33171%20L106.312021,1134.046%20L106.430502,1134.02203%20C107.059661,1133.88024%20107.678353,1133.69786%20108.283159,1133.4749%20C107.696639,1132.98733%20107.028791,1132.60203%20106.31244,1132.33171%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",B={class:"mix-body"},$=["id"],R={DEFAULT_ICON:Z,ACTIVE_ICON:q,NAME_CN:"桑基图",NAME_EN:"Sankey",ORDER:1},U={titleColor:"#111",bgColor:"#fff",labelColor:"#111",radiusSize:8,textSize:12,labelWidth:80,isHideTitle:!1},O=[{fv:"S01",name:"参数一",color:"#4162ff",origin:"总起源",object_id:""},{fv:"S02",name:"参数二",color:"#3bbc6a",origin:"总起源",object_id:""},{fv:"S03",name:"参数三",color:"#e24359",origin:"参数一",object_id:""},{fv:"S04",name:"参数四",color:"#fdcd61",origin:"参数一",object_id:""},{fv:"S05",name:"参数五",color:"#44b4ff",origin:"参数二",object_id:""},{fv:"S06",name:"参数六",color:"#3ba272",origin:"参数二",object_id:""}],W=["name","fv","object_id","color","origin"],H=["mosaic","statistics","calculate"],P={useAlias:!1,multiObject:!1,showBothModes:!0,origin:"总起源",originFv:"",source:"mosaic"},G={DEFAULT:R,OPTIONS:U,DATA:O,PARAMS:W,SOURCE:H,COMMON:P},J=o.defineComponent(S(b({},G),{__name:"sankey",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){p.use([I.install,T.install,p.install,N.install,p.install$1,F.install]);const i=l,t={data:[],links:[]};class u extends D.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),labelColor:this.getOptionValue("labelColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),labelWidth:this.getOptionValue("labelWidth",80),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return x(this,null,function*(){yield y(u.prototype,this,"init").call(this),this.formatData()})}getChartOption(){return{animation:!0,series:[{type:"sankey",left:20,top:20,right:this.Style.value.labelWidth,bottom:25,emphasis:{focus:"adjacency"},nodeGap:16,layoutIterations:0,data:t.data,links:t.links,avoidLabelOverlap:!1,label:{position:"right",color:this.Style.value.labelColor,fontSize:this.Style.value.textSize,formatter:s=>{var e;return s.name+" "+((e=s.value)!=null?e:0)}},lineStyle:{color:"source",curveness:.5}}]}}getDefaultData(){return O}formatData(){const{data:s,common:e}=this.props.conf;t.data=[],t.links=[];let a="";e.multiObject||(a=g.getObjectId(e,e.useAlias,this.props.uid)),s.forEach(r=>{let v=e.multiObject?g.getObjectId(r,e.useAlias,this.props.uid):a;t.data.push({name:r.name,itemStyle:{color:r.color,borderColor:r.color},fv:r.fv,object_id:v});const _=this.props.mode==="edit"?1:0;t.links.push({source:r.origin,target:r.name,value:r.value||_,fv:r.fv,object_id:v})}),a=g.getObjectId(e,e.useAlias,this.props.uid),t.data.unshift({name:e==null?void 0:e.origin,fv:e==null?void 0:e.originFv,object_id:a})}setSocketData(s){!s||!this.chartObj||(t.data.forEach(e=>{if(!e.fv)return;const a=this.extractDataValue(s,e.fv);e.value=a!=null?a:e.value}),t.links.forEach(e=>{const a=this.extractDataValue(s,e.fv);e.value=a!=null?a:e.value}),this.chartObj.setOption(this.getChartOption(),!0))}}const c=new u(i,"sankey");c.setupLifecycle();const C=c.getStyle(),h=c.getEchartId(),d=i.conf,n=o.computed(()=>V.generateTitleStyle(i.conf.options));return(f,s)=>(o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(C).bgColor,borderRadius:`${o.unref(C).radiusSize}px`})},[o.createElementVNode("div",{class:"mix-title",style:o.normalizeStyle(n.value)},o.toDisplayString(o.unref(d).caption||o.unref(d).name),5),o.createElementVNode("div",B,[o.createElementVNode("div",{class:"w-full h-full",id:o.unref(h)},null,8,$)]),o.renderSlot(f.$slots,"default",{},void 0,!0)],4))}})),K=g._export_sfc(J,[["__scopeId","data-v-1ac8f209"]]);exports.default=K;