mixdashboards 1.0.73 → 1.0.74

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 (417) hide show
  1. package/dist/BaseComponent-CaCkjmmb.cjs +1 -0
  2. package/dist/{BaseComponent-CBagahPU.js → BaseComponent-NnwLq7Cf.js} +148 -122
  3. package/dist/{EChartComponentBase-cFfawl6h.js → EChartComponentBase-C3gcATBZ.js} +3 -3
  4. package/dist/{EChartComponentBase-dLE5F7Tt.cjs → EChartComponentBase-D7_ZiE7P.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel--jTGG89o.js → EmergencyPlanPanel-0EfbQlQm.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-BJb-Bbxh.cjs → EmergencyPlanPanel-XDtQc5aN.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-C-QPdV4V.cjs → HistoryPlanDialog-fbBtPeVt.cjs} +1 -1
  8. package/dist/{HistoryPlanDialog-DerClU2U.js → HistoryPlanDialog-ihGqWXNI.js} +1 -1
  9. package/dist/{MarkerView-CtWJi5UZ.js → MarkerView-DDN8S7xE.js} +7 -7
  10. package/dist/{MonitoringMap-CNaGsq83.js → MonitoringMap-DysFrw3B.js} +2 -2
  11. package/dist/{MonitoringMap-B6RMbiIS.cjs → MonitoringMap-UT2OL3ca.cjs} +1 -1
  12. package/dist/{RoamController-DmBIwcAZ.js → RoamController-1rzpYesL.js} +1 -1
  13. package/dist/{UniverSheet-KI09RqKm.js → UniverSheet-CMWL98B8.js} +2 -2
  14. package/dist/{UniverSheet-CM-vvc23.cjs → UniverSheet-DeZ-y5mH.cjs} +1 -1
  15. package/dist/{VisualMapping-D-MA7S0X.js → VisualMapping-GwxHIgr-.js} +1 -1
  16. package/dist/{accelerationChart-HBCb2bRW.cjs → accelerationChart-BGjzOc4I.cjs} +1 -1
  17. package/dist/{accelerationChart-D7KNk5fI.js → accelerationChart-JNRxAqU5.js} +23 -23
  18. package/dist/{actionItem-Bx4mW0jP.cjs → actionItem-DDlL4pxR.cjs} +1 -1
  19. package/dist/{actionItem-BmNYzAXu.js → actionItem-DnrNafUu.js} +2 -2
  20. package/dist/{alarmLevelChart-Cvnw4z1w.cjs → alarmLevelChart-B4TglthF.cjs} +1 -1
  21. package/dist/{alarmLevelChart-DdSw2s7W.js → alarmLevelChart-D4ZPyGyd.js} +2 -2
  22. package/dist/{alertTable-CC3c8DFb.js → alertTable-IwL3PIbe.js} +2 -2
  23. package/dist/{alertTable-hH6HA9pY.cjs → alertTable-WmivR3n_.cjs} +1 -1
  24. package/dist/{aliasObjectSelectorDemo-yDiavTpG.js → aliasObjectSelectorDemo-DCcqetww.js} +9 -9
  25. package/dist/{aliasObjectSelectorDemo-C7E_fnCf.cjs → aliasObjectSelectorDemo-zcElLG44.cjs} +1 -1
  26. package/dist/{annualRainfallChart-B9ar8vo8.js → annualRainfallChart-CNqrXKJZ.js} +3 -3
  27. package/dist/{annualRainfallChart-C6JLSPIf.cjs → annualRainfallChart-DspMrDxt.cjs} +1 -1
  28. package/dist/{aqi-DEiCVIVa.cjs → aqi-B1bcKY5p.cjs} +1 -1
  29. package/dist/{aqi-BNc5QCM3.js → aqi-CdGE9-CD.js} +10 -10
  30. package/dist/{aqiIndass-Bowic_Pc.cjs → aqiIndass-BZpPo1tj.cjs} +1 -1
  31. package/dist/{aqiIndass-CAGV8_Uf.js → aqiIndass-CuKfMaYn.js} +30 -30
  32. package/dist/{areaDeformCurve-CSpR060t.js → areaDeformCurve-Chn4CE8w.js} +4 -4
  33. package/dist/{areaDeformCurve-CVy23kV2.cjs → areaDeformCurve-bNNNS8Cb.cjs} +1 -1
  34. package/dist/{arrayCard-NqoQKcE9.cjs → arrayCard-BYZWRop3.cjs} +1 -1
  35. package/dist/{arrayCard-PPDb7U6X.js → arrayCard-CVVWnZDk.js} +2 -2
  36. package/dist/{audio-Bw-GaYe1.cjs → audio-BeYg08W5.cjs} +1 -1
  37. package/dist/{audio-BJPFIQIr.js → audio-YTfr7Lqf.js} +2 -2
  38. package/dist/{axisAlignTicks-BqVUa467.js → axisAlignTicks-Chqgi59U.js} +2 -2
  39. package/dist/bar-1K14ZPKy.cjs +2 -0
  40. package/dist/bar-YhAAV2al.js +309 -0
  41. package/dist/bmp-Uj7Bu61U.js +2080 -0
  42. package/dist/bmp-vWIH5Cu7.cjs +1 -0
  43. package/dist/{box-DIHVOqrV.js → box-C8RIfuID.js} +2 -2
  44. package/dist/{box-CKuGsh2k.cjs → box-Cdzw27uU.cjs} +1 -1
  45. package/dist/{chartConfigPanel-BVdVXbs6.cjs → chartConfigPanel-D3voTkdQ.cjs} +1 -1
  46. package/dist/{chartConfigPanel-D1rO6SGh.js → chartConfigPanel-DLa3heKy.js} +1 -1
  47. package/dist/{circleBar-CBLcp4Xi.js → circleBar-DUSP-iMF.js} +15 -15
  48. package/dist/{circleBar-BzXqA-Cz.cjs → circleBar-Dc_qd4gk.cjs} +1 -1
  49. package/dist/{clock-DmWyBpo-.cjs → clock-0USfNfTc.cjs} +1 -1
  50. package/dist/{clock-4AMfFDGC.js → clock-Dk1zjBcJ.js} +2 -2
  51. package/dist/clt-BCHpLoab.cjs +1 -0
  52. package/dist/clt-Ba9Ov5WY.js +296 -0
  53. package/dist/cmc-CdDCboSm.cjs +1 -0
  54. package/dist/{cmc-Cjb5w3om.js → cmc-CsVB4uz3.js} +71 -63
  55. package/dist/cmp-BPM8lMqg.cjs +6 -0
  56. package/dist/{cmp-COJzlQPa.js → cmp-D4ZO7mz7.js} +54 -55
  57. package/dist/{conclusionCard-C-TT6znN.cjs → conclusionCard-BVHHtpxH.cjs} +1 -1
  58. package/dist/{conclusionCard-BQUlLFde.js → conclusionCard-BYR-fH4f.js} +2 -2
  59. package/dist/{controlList-5D5UIDQL.js → controlList-DYV1wgUY.js} +2 -2
  60. package/dist/{controlList-CIwzKylK.cjs → controlList-DsEyes9v.cjs} +1 -1
  61. package/dist/{controlRecordList-Cp5mmEQ1.js → controlRecordList-CBGpB41d.js} +2 -2
  62. package/dist/{controlRecordList-uEQ3ohmB.cjs → controlRecordList-j0pBrQiU.cjs} +1 -1
  63. package/dist/{controlRecordListAPP-B5d4x_xH.cjs → controlRecordListAPP-BktJCkFK.cjs} +1 -1
  64. package/dist/{controlRecordListAPP-p_skbQVD.js → controlRecordListAPP-CSt8rFZX.js} +2 -2
  65. package/dist/{crd-Dfl2XKAx.cjs → crd-C8IqmHc6.cjs} +1 -1
  66. package/dist/{crd-8gRWMf2Y.js → crd-Di7EfiY1.js} +2 -2
  67. package/dist/{createSeriesData-E53TTCAt.js → createSeriesData-BUgbWEWK.js} +2 -2
  68. package/dist/{createSeriesDataSimply-Bsly4zZA.js → createSeriesDataSimply-C7bzYYow.js} +2 -2
  69. package/dist/{ctrBtn-BzmFxucy.js → ctrBtn-BzMHJHA9.js} +94 -89
  70. package/dist/ctrBtn-Cj-AqUKM.cjs +1 -0
  71. package/dist/ctrSet-CnDBng-I.cjs +1 -0
  72. package/dist/ctrSet-DMkuRDFI.js +234 -0
  73. package/dist/ctrSwitch-BRfl35Aw.cjs +1 -0
  74. package/dist/{ctrSwitch-6nMHbIE7.js → ctrSwitch-FJgD05b0.js} +94 -88
  75. package/dist/{cursorHelper-DE0KU4_J.js → cursorHelper-BFbblC6t.js} +1 -1
  76. package/dist/{customGraphicKeyframeAnimation-BJ_z0kB3.js → customGraphicKeyframeAnimation-veqkTlqy.js} +17 -17
  77. package/dist/{dataManagement-BZiSmktM.js → dataManagement-CQoqc9Rh.js} +2 -2
  78. package/dist/{dataManagement-sQpuBaDz.cjs → dataManagement-CXbeNggN.cjs} +1 -1
  79. package/dist/{dataReport-D9Q9c43B.cjs → dataReport-BkIDOCdC.cjs} +1 -1
  80. package/dist/{dataReport-CbJzXeCE.js → dataReport-l2SE8HZx.js} +2 -2
  81. package/dist/{dataSample-BXwc06Sb.js → dataSample-Czrba8EC.js} +1 -1
  82. package/dist/{dataTable-BJ4SVFbu.cjs → dataTable-BdttKfHG.cjs} +1 -1
  83. package/dist/{dataTable-BuBB0b-A.js → dataTable-jf6qXfJJ.js} +1 -1
  84. package/dist/{datetime-B66VgJL1.cjs → datetime-BH9orUUf.cjs} +1 -1
  85. package/dist/{datetime-DO03QrXz.js → datetime-eht4XkmD.js} +2 -2
  86. package/dist/{deepClusterSlipSurface-BqT55vkY.cjs → deepClusterSlipSurface-CF_MN7sO.cjs} +1 -1
  87. package/dist/{deepClusterSlipSurface-DpSAXgFf.js → deepClusterSlipSurface-D2d52L50.js} +6 -6
  88. package/dist/{deepDataMatrix-CPrIOv5r.js → deepDataMatrix-DY1WmgGR.js} +7 -7
  89. package/dist/{deepDataMatrix-DZZaTMbD.cjs → deepDataMatrix-DqbCqz8d.cjs} +1 -1
  90. package/dist/{deepDisplacement3D-JlMej7-5.js → deepDisplacement3D-CuVVhd0X.js} +20 -21
  91. package/dist/{deepDisplacement3D-Cd9nwwPt.cjs → deepDisplacement3D-D3-KOmef.cjs} +60 -60
  92. package/dist/{deepDisplacementChart-CEaj2bUV.cjs → deepDisplacementChart-BwBojI9h.cjs} +1 -1
  93. package/dist/{deepDisplacementChart-CjlGpeHj.js → deepDisplacementChart-C_3eHTmR.js} +25 -25
  94. package/dist/{deepDisplacementChart-BiDt60xI.js → deepDisplacementChart-DFosjAQL.js} +4 -4
  95. package/dist/{deepDisplacementChart-CALM3gna.cjs → deepDisplacementChart-DzikjpBz.cjs} +1 -1
  96. package/dist/{deepDisplacementView-BpUw-b-i.js → deepDisplacementView-BNQaheci.js} +3 -3
  97. package/dist/{deepDisplacementView-CoSNzN1q.cjs → deepDisplacementView-gJdi6U9B.cjs} +1 -1
  98. package/dist/{deepNodeTemperatureChart-DfZq7kLx.js → deepNodeTemperatureChart-C5d-tyOA.js} +22 -22
  99. package/dist/{deepNodeTemperatureChart-DPN0rYir.cjs → deepNodeTemperatureChart-oMknBT7e.cjs} +1 -1
  100. package/dist/{deepTangentAngleChart-Ca01hah9.js → deepTangentAngleChart-C35d0nBR.js} +18 -18
  101. package/dist/{deepTangentAngleChart-Dg9PJspK.cjs → deepTangentAngleChart-C7b7sEab.cjs} +1 -1
  102. package/dist/{deepTemperatureField-BqDB97SW.cjs → deepTemperatureField-BnWHpVPm.cjs} +1 -1
  103. package/dist/{deepTemperatureField-CYBTjhEp.js → deepTemperatureField-DbGy0vHS.js} +25 -25
  104. package/dist/{deepTrendChart-B5BAHTeY.cjs → deepTrendChart-D676owsq.cjs} +1 -1
  105. package/dist/{deepTrendChart-DBjxV7_A.js → deepTrendChart-DdCYjiWZ.js} +18 -18
  106. package/dist/{deviceOnlineStatus-1eoHCl_-.js → deviceOnlineStatus-BH-2-UBD.js} +2 -2
  107. package/dist/{deviceOnlineStatus-DHzaAzCp.cjs → deviceOnlineStatus-DSuaeFZj.cjs} +1 -1
  108. package/dist/{deviceStatus-90rQa1uj.js → deviceStatus-CxjbfqGK.js} +15 -15
  109. package/dist/{deviceStatus-4BMy4qBD.cjs → deviceStatus-ySE9suGE.cjs} +1 -1
  110. package/dist/{displacementDataTable-BArwj-xp.js → displacementDataTable-CAYYafN7.js} +17 -17
  111. package/dist/{displacementDataTable-BLWjiaRQ.cjs → displacementDataTable-DwutxypE.cjs} +1 -1
  112. package/dist/{displacementTrajectoryChart-CxOPJVlD.js → displacementTrajectoryChart-ClUAsle_.js} +14 -14
  113. package/dist/{displacementTrajectoryChart-DfJMOCFJ.cjs → displacementTrajectoryChart-zya-qu9n.cjs} +1 -1
  114. package/dist/{displacementTrendChart-Cuxa5iTp.cjs → displacementTrendChart-DZj52qRD.cjs} +1 -1
  115. package/dist/{displacementTrendChart-4E6cDsX8.js → displacementTrendChart-xqe9LMp8.js} +17 -17
  116. package/dist/{dxf-BgklkksV.cjs → dxf-Cmr9xmL0.cjs} +1 -1
  117. package/dist/{dxf-BogwbJID.js → dxf-tZgpovsn.js} +2 -2
  118. package/dist/{dzc-CApfzriC.cjs → dzc-BwCEpLKp.cjs} +1 -1
  119. package/dist/{dzc-D7tTBLaA.js → dzc-C0VMyvsH.js} +9 -9
  120. package/dist/{echarts-BVht3HHb.js → echarts-Bp7QN4X6.js} +90 -90
  121. package/dist/{emergencyPlan-BuFz4XFc.cjs → emergencyPlan-CQtYRB5n.cjs} +1 -1
  122. package/dist/{emergencyPlan-CjbuX-N5.js → emergencyPlan-j1icRflR.js} +3 -3
  123. package/dist/{evn-DTPm72ZM.js → evn-B2F6pbqY.js} +2 -2
  124. package/dist/{evn-BcSenXF3.cjs → evn-B6WNZ0pv.cjs} +1 -1
  125. package/dist/{evolutionChart-D1dVKWOt.js → evolutionChart-C1rPjVsB.js} +5 -5
  126. package/dist/{evolutionChart-CrwR8i40.cjs → evolutionChart-q9UtSs9r.cjs} +1 -1
  127. package/dist/{fileViewer-BNHwlZRa.js → fileViewer-Bj4FYg5G.js} +13 -13
  128. package/dist/{fileViewer-BUuST3Rp.cjs → fileViewer-ZO55zvWU.cjs} +1 -1
  129. package/dist/{filterBar-CRJinh5K.js → filterBar-CIYpcc9y.js} +2 -2
  130. package/dist/{filterBar-BJzjPFFg.cjs → filterBar-D7js_Q7g.cjs} +1 -1
  131. package/dist/{fireCombustionCurve-BGdJ1ybj.cjs → fireCombustionCurve-CiVXjt9E.cjs} +1 -1
  132. package/dist/{fireCombustionCurve-BZ6qJ1kq.js → fireCombustionCurve-DEHjb7Lp.js} +3 -3
  133. package/dist/{fireFilterBar-KvvbsCsZ.js → fireFilterBar-BzgnlY5d.js} +2 -2
  134. package/dist/{fireFilterBar-DZejT0oL.cjs → fireFilterBar-CkQU9Yaf.cjs} +1 -1
  135. package/dist/{fireHistoryTable-80ygqnOG.js → fireHistoryTable-BoAArvjx.js} +2 -2
  136. package/dist/{fireHistoryTable-CMSGKb3w.cjs → fireHistoryTable-JCY4nLos.cjs} +1 -1
  137. package/dist/gag-CrUeBa30.cjs +1 -0
  138. package/dist/gag-DCGVulGC.js +168 -0
  139. package/dist/{gasStationList-DjJtXnqL.cjs → gasStationList-CN2y3zri.cjs} +1 -1
  140. package/dist/{gasStationList-DM-laJsi.js → gasStationList-CifrfkH0.js} +3 -3
  141. package/dist/{geo3dViewer-CL_89mQf.cjs → geo3dViewer-BSAjBg2m.cjs} +1 -1
  142. package/dist/{geo3dViewer-FhmMIvMJ.js → geo3dViewer-Du775tJ7.js} +3 -3
  143. package/dist/{glbModel-B0nWYYJQ.js → glbModel-2uTNL367.js} +2 -2
  144. package/dist/{glbModel-DakMJal6.cjs → glbModel-Cm1M6hko.cjs} +1 -1
  145. package/dist/{globalObjectSelector-Gv4srHhp.js → globalObjectSelector-CEpO2o2w.js} +1 -1
  146. package/dist/{globalObjectSelector-jNzZxdnL.cjs → globalObjectSelector-W_YToM6x.cjs} +1 -1
  147. package/dist/{gnssFilterBar-kEIW7Tjs.cjs → gnssFilterBar-BSHEfiyz.cjs} +1 -1
  148. package/dist/{gnssFilterBar-C4rpyNw3.js → gnssFilterBar-DZYOL5nC.js} +2 -2
  149. package/dist/{gnssHistoryTable-DRKlP8-b.cjs → gnssHistoryTable-Ct98Vz6i.cjs} +1 -1
  150. package/dist/{gnssHistoryTable-CyMwQJ7_.js → gnssHistoryTable-naChmXHT.js} +2 -2
  151. package/dist/{gnssMapView-DpExCi0x.cjs → gnssMapView-CCW4_-Sn.cjs} +2 -2
  152. package/dist/{gnssMapView-EVufCGrW.js → gnssMapView-DouWOPLF.js} +6 -6
  153. package/dist/{gnssSectionProfile-CaJwF9wp.js → gnssSectionProfile-Be-THvQP.js} +4 -4
  154. package/dist/{gnssSectionProfile-DdcOMdNC.cjs → gnssSectionProfile-hzXQ4KzJ.cjs} +1 -1
  155. package/dist/{gnssTimeSeriesChart-y11Y8k2-.cjs → gnssTimeSeriesChart-CbMxKxjG.cjs} +1 -1
  156. package/dist/{gnssTimeSeriesChart-iffDvMNx.js → gnssTimeSeriesChart-DoMBz4zf.js} +2 -2
  157. package/dist/{gnssXYTrajectory-DGBGGDwi.cjs → gnssXYTrajectory-BNwqQna4.cjs} +1 -1
  158. package/dist/{gnssXYTrajectory-C_1fuLWn.js → gnssXYTrajectory-Bg2B89Vw.js} +2 -2
  159. package/dist/{grd-C4hCrpvH.cjs → grd-C-x23C0E.cjs} +1 -1
  160. package/dist/{grd-FfuMQJb7.js → grd-XTVPofQw.js} +17 -17
  161. package/dist/{grdIndass-BTbZmPLZ.js → grdIndass-CYawTr5K.js} +2 -2
  162. package/dist/{grdIndass-CyuRKD5H.cjs → grdIndass-h7STZwba.cjs} +1 -1
  163. package/dist/{grg-CcnI5kRY.js → grg-BZPHOdr_.js} +16 -16
  164. package/dist/{grg-Cuxa17d6.cjs → grg-DMRsgNoC.cjs} +1 -1
  165. package/dist/{gridview-CKjBuTRq.cjs → gridview-BAqXV-TI.cjs} +1 -1
  166. package/dist/{gridview-ffVc5Wvg.js → gridview-C_Lqcw3n.js} +2 -2
  167. package/dist/{groundwaterFilterBar-DaPR-kbl.js → groundwaterFilterBar-Dq216QFO.js} +2 -2
  168. package/dist/{groundwaterFilterBar-D3l7GLVY.cjs → groundwaterFilterBar-RcVBt_vt.cjs} +1 -1
  169. package/dist/{groundwaterProfileChart-DoSx7WWp.js → groundwaterProfileChart-7LN3wfLM.js} +3 -3
  170. package/dist/{groundwaterProfileChart-BxJKIPXF.cjs → groundwaterProfileChart-D31MpfdN.cjs} +2 -2
  171. package/dist/{groundwaterTimeCurve-Bp5MxM9k.cjs → groundwaterTimeCurve-C65gdinn.cjs} +1 -1
  172. package/dist/{groundwaterTimeCurve-D-SdVYeq.js → groundwaterTimeCurve-CJgvt43Z.js} +3 -3
  173. package/dist/{groupCard-COMEkzIb.js → groupCard-BpjcijZW.js} +2 -2
  174. package/dist/{groupCard-BzUQ8xY0.cjs → groupCard-DNOawK4_.cjs} +1 -1
  175. package/dist/{headerBar-ouXO8bzC.js → headerBar-Bnv8ylmr.js} +2 -2
  176. package/dist/{headerBar-iFe0YQKE.cjs → headerBar-CNWKR951.cjs} +1 -1
  177. package/dist/{history-BZ869y2d.js → history-DdkBOj8L.js} +24 -24
  178. package/dist/{history-MxYUUwkm.cjs → history-xZTq1lUB.cjs} +1 -1
  179. package/dist/index-BzWbqJIl.cjs +612 -0
  180. package/dist/index-CJgyJTvc.cjs +11 -0
  181. package/dist/{index-DwPJu6XM.js → index-D5BukPPY.js} +1805 -1642
  182. package/dist/{index-ButoLLAe.js → index-eIsZnzkc.js} +2753 -2122
  183. package/dist/{insarDeformChart-5BhCUq8L.js → insarDeformChart-BKgJHbFe.js} +2 -2
  184. package/dist/{insarDeformChart-Ca3AMsBk.cjs → insarDeformChart-DIvxdDkN.cjs} +1 -1
  185. package/dist/{insarImageViewer-DWPsoHz6.cjs → insarImageViewer-Bray3mKg.cjs} +1 -1
  186. package/dist/{insarImageViewer-DHNxmLpa.js → insarImageViewer-qI5GBqkU.js} +2 -2
  187. package/dist/{install-FDYiy_gL.js → install-B_v5XJLG.js} +5 -5
  188. package/dist/{install-9_V0b6vf.js → install-BfNaEf5I.js} +24 -24
  189. package/dist/{install-B0x4IqQr.js → install-By9bYCXw.js} +11 -11
  190. package/dist/{install-hfre7yvV.js → install-CEl1AYgZ.js} +2 -2
  191. package/dist/{install-BzdOSCzO.js → install-CIdzgJ44.js} +109 -109
  192. package/dist/{install-oGjJ0_bF.js → install-CJ_UX-RT.js} +44 -44
  193. package/dist/{install-BifpoHNI.js → install-CY89Nrxl.js} +5 -5
  194. package/dist/{install-BUu5ESB7.js → install-Cmw0VV-B.js} +72 -72
  195. package/dist/{install-MS3ZY7fF.js → install-CqrIgcb1.js} +7 -7
  196. package/dist/{install-D1QM80AD.js → install-DNDCMXB3.js} +2 -2
  197. package/dist/install-DbAuuRVv.js +8 -0
  198. package/dist/{install-CBde4hAM.js → install-DdM8j5Ll.js} +1 -1
  199. package/dist/{install-B2TChEcT.js → install-DwcX1eNi.js} +4 -4
  200. package/dist/{install-C_3uGWLu.js → install-FXyLnlJE.js} +9 -9
  201. package/dist/{install-C9Cdzkc6.js → install-UooD2LwU.js} +29 -29
  202. package/dist/{install-Cx1i_m0k.js → install-ZJfH__Vo.js} +11 -11
  203. package/dist/{install-8XfFtnlL.js → install-uPZUxWT9.js} +19 -19
  204. package/dist/{installCanvasRenderer-CLT2hquJ.js → installCanvasRenderer-oDYkyVFy.js} +4 -4
  205. package/dist/{installMarkArea-Cdg4iciO.js → installMarkArea-DaDitBR7.js} +15 -15
  206. package/dist/{installMarkLine-BgE0YACE.js → installMarkLine-CHCnywAM.js} +10 -10
  207. package/dist/{installSimple-BWTCwMdY.js → installSimple-CB2Y4Ri7.js} +3 -3
  208. package/dist/{kds-Dpf_3WWj.cjs → kds-BibvGW1n.cjs} +1 -1
  209. package/dist/{kds-BYZC4pIM.js → kds-C1Chb0fa.js} +30 -30
  210. package/dist/{kpiCard-CStPtl-c.js → kpiCard-KuMZjN55.js} +2 -2
  211. package/dist/{kpiCard-OLJgA48-.cjs → kpiCard-tnfcEXOn.cjs} +1 -1
  212. package/dist/{labelHelper-Cd8oB-sZ.js → labelHelper-DccEpjmd.js} +1 -1
  213. package/dist/{landslideMap-BUq0x7rd.js → landslideMap-B4vzymkZ.js} +15 -15
  214. package/dist/{landslideMap-JTdoQjW-.cjs → landslideMap-DlMSDibx.cjs} +1 -1
  215. package/dist/{landslideWarning-VAn9XGUj.js → landslideWarning-BYlaEzUr.js} +5 -5
  216. package/dist/{landslideWarning-ZA5LCsIr.cjs → landslideWarning-DtOMb7U_.cjs} +1 -1
  217. package/dist/{layerTabs-CAJ6f-2W.js → layerTabs-BG0gTvo8.js} +2 -2
  218. package/dist/{layerTabs-CdhowHB1.cjs → layerTabs-DQm_b2aH.cjs} +1 -1
  219. package/dist/{leaflet-src-DNO2-OsP.js → leaflet-src-DVXepwmU.js} +1 -1
  220. package/dist/{leaflet-src-CxFQ_Cn7.cjs → leaflet-src-qPfpknMO.cjs} +1 -1
  221. package/dist/{lerc-qU4WKXeS.cjs → lerc-CITZZDb7.cjs} +1 -1
  222. package/dist/{lerc-bF2jqjoV.js → lerc-Z6kWrF7V.js} +2 -2
  223. package/dist/{lin-BHI2KgyW.cjs → lin-CW8Q8u-z.cjs} +1 -1
  224. package/dist/{lin-DbQw7wZw.js → lin-zJYjIE2f.js} +11 -11
  225. package/dist/{linIndass-Cd9Hjzs_.js → linIndass-27mWriLs.js} +16 -16
  226. package/dist/{linIndass-CIrObeZT.cjs → linIndass-CQaikC7I.cjs} +1 -1
  227. package/dist/{lst-C3C2m1v_.js → lst-BqXNkXrQ.js} +2 -2
  228. package/dist/{lst-BRsEe-Hq.cjs → lst-Cu-ohx2m.cjs} +1 -1
  229. package/dist/{manualEntry-B8TDMcDg.js → manualEntry-BPEmSok7.js} +2 -2
  230. package/dist/{manualEntry-C3_WtYz8.cjs → manualEntry-zj6TEXL7.cjs} +1 -1
  231. package/dist/{mapBackground-BrVIQUcT.js → mapBackground-BhcSOZ_h.js} +3 -3
  232. package/dist/{mapBackground-Du7R_ICY.cjs → mapBackground-CRI873EC.cjs} +1 -1
  233. package/dist/{mappingList-BpJUawmv.js → mappingList-CvG8EIIC.js} +2 -2
  234. package/dist/{mappingList-C5OZ8oUx.cjs → mappingList-DGgPl4t4.cjs} +1 -1
  235. package/dist/{markdownViewer-CoRrvdY7.js → markdownViewer-D9JqGyeI.js} +6 -6
  236. package/dist/{markdownViewer-D96bwxEt.cjs → markdownViewer-DvbUv7kn.cjs} +1 -1
  237. package/dist/mix-control-modal-DaRWnX3S.js +160 -0
  238. package/dist/mix-control-modal-DpAs-GHi.cjs +1 -0
  239. package/dist/{mixGrid-Hj0OJjkg.cjs → mixGrid-CHne1dXO.cjs} +1 -1
  240. package/dist/{mixGrid-CtJWul6c.js → mixGrid-FBiMFT4V.js} +4 -4
  241. package/dist/mixdashboards.cjs +1 -1
  242. package/dist/mixdashboards.css +1 -1
  243. package/dist/mixdashboards.js +1 -1
  244. package/dist/mixiotObjectListApi-BwIQvSS-.js +67 -0
  245. package/dist/mixiotObjectListApi-ClirV2tM.cjs +1 -0
  246. package/dist/{mjpegCamera-Dc4IsJA6.js → mjpegCamera-D2quqZNc.js} +2 -2
  247. package/dist/{mjpegCamera-BY7pmbDc.cjs → mjpegCamera-D32gJ5oN.cjs} +1 -1
  248. package/dist/{monitorAlert-DVNvJyTy.cjs → monitorAlert-CxC81qAu.cjs} +1 -1
  249. package/dist/{monitorAlert-F8QFOchR.js → monitorAlert-D4qszzHh.js} +12 -12
  250. package/dist/{monitorData-AkPbhJ9q.cjs → monitorData-CVkL2ukF.cjs} +1 -1
  251. package/dist/{monitorData-BzqNIdrW.js → monitorData-DnWDsgTT.js} +13 -13
  252. package/dist/{monitorSpeedChart-348U37LW.js → monitorSpeedChart-CHpQsrDt.js} +3 -3
  253. package/dist/{monitorSpeedChart-DVH1xihw.cjs → monitorSpeedChart-CKxwWE0i.cjs} +1 -1
  254. package/dist/{mxa-CkJjCHA-.js → mxa-Cbnwonqc.js} +7 -7
  255. package/dist/{mxa-DShU528J.cjs → mxa-UU7rQDd8.cjs} +1 -1
  256. package/dist/{myValue-CEfp19i2.js → myValue-DBxx1jtk.js} +2 -2
  257. package/dist/{myValue-BCeycpdO.cjs → myValue-DzARZpdg.cjs} +1 -1
  258. package/dist/{myValueList-CAPOW8TK.cjs → myValueList-BVbeDsWn.cjs} +1 -1
  259. package/dist/{myValueList-y3GR4AX2.js → myValueList-BbtPVr5y.js} +2 -2
  260. package/dist/{objectList-D16yLbzD.js → objectList-Cpu0yqsK.js} +4 -4
  261. package/dist/{objectList-4rYQk5uq.cjs → objectList-D5E8PU66.cjs} +1 -1
  262. package/dist/objectListAPP-CYxy9UjL.js +2247 -0
  263. package/dist/objectListAPP-Cr4uoJuN.cjs +1 -0
  264. package/dist/{photo-D67wLRkY.cjs → photo-BRMACjXO.cjs} +1 -1
  265. package/dist/{photo-BV6rkbWO.js → photo-DPOhq559.js} +2 -2
  266. package/dist/{pie-BeRwVkTk.cjs → pie-B7HO9F24.cjs} +1 -1
  267. package/dist/{pie-bNKhq6ak.js → pie-CUqy6VGE.js} +10 -10
  268. package/dist/{placeholder-zByzfWaH.cjs → placeholder-D-BpaT59.cjs} +1 -1
  269. package/dist/{placeholder-_iK4rVyU.js → placeholder-DsyLsZM5.js} +1 -1
  270. package/dist/{points-DkG9FRF9.js → points-Cddz0rX-.js} +15 -15
  271. package/dist/{pressBtn-BjqYIPC-.cjs → pressBtn-DZz7PZ7o.cjs} +1 -1
  272. package/dist/{pressBtn-B-rZPXK2.js → pressBtn-IefW25bT.js} +138 -108
  273. package/dist/{processTable-s_y8uups.js → processTable-Bm2HnUrZ.js} +2 -2
  274. package/dist/{processTable-ByPlSKRJ.cjs → processTable-kVFr2ntb.cjs} +1 -1
  275. package/dist/{progressBar-CRdA7oJT.cjs → progressBar-00yP_jc2.cjs} +1 -1
  276. package/dist/{progressBar-DskxZk1P.js → progressBar-C7RKpdcE.js} +37 -29
  277. package/dist/{progressCircle-BE_Am-AP.js → progressCircle-BBkwMkI0.js} +47 -39
  278. package/dist/{progressCircle-CHe-12Hb.cjs → progressCircle-CzqibMlZ.cjs} +1 -1
  279. package/dist/{qrcode-D8cFyUpL.cjs → qrcode-4NUAsx0h.cjs} +1 -1
  280. package/dist/{qrcode-Dgth6KwU.js → qrcode-DaHlY7Vv.js} +2 -2
  281. package/dist/raceBar-BVsHg94d.cjs +2 -0
  282. package/dist/{raceBar-DV-3KFg2.js → raceBar-WhOgwnlP.js} +116 -120
  283. package/dist/{rad-BhsfF0XI.js → rad-BlEn2Yx1.js} +6 -6
  284. package/dist/{rad-BerkC70H.cjs → rad-sMtJPs8L.cjs} +1 -1
  285. package/dist/{radarMapViewer-C2dde8EN.js → radarMapViewer-C1_FFYFi.js} +2 -2
  286. package/dist/{radarMapViewer-HWzvBTzT.cjs → radarMapViewer-CzhHFpRX.cjs} +1 -1
  287. package/dist/{rainfallFilterBar-CiT1mvYh.js → rainfallFilterBar-Bt2TbXV6.js} +2 -2
  288. package/dist/{rainfallFilterBar-kuAQO0M-.cjs → rainfallFilterBar-F7DU_nqK.cjs} +1 -1
  289. package/dist/{rainfallTimeCurve-BlOnCq2M.js → rainfallTimeCurve-C5tBf1lx.js} +3 -3
  290. package/dist/{rainfallTimeCurve-7uHaSkuE.cjs → rainfallTimeCurve-DaXSW7dI.cjs} +1 -1
  291. package/dist/{rangeLin-BvKd8kEv.js → rangeLin-Bral8Ev4.js} +16 -16
  292. package/dist/{rangeLin-BQeWFL_E.cjs → rangeLin-Cr4NRYc9.cjs} +1 -1
  293. package/dist/{realtimeEvolutionMap-BUnD3JjE.cjs → realtimeEvolutionMap-CCisvZz8.cjs} +1 -1
  294. package/dist/{realtimeEvolutionMap-DZ6yniwl.js → realtimeEvolutionMap-xJwuPatp.js} +2 -2
  295. package/dist/{regionBar-mMaN5NEc.cjs → regionBar-C8myvRfQ.cjs} +1 -1
  296. package/dist/{regionBar-vp5D52Jd.js → regionBar-D1iKcs2-.js} +2 -2
  297. package/dist/{request-CMbwWTDF.js → request-C-rUicMg.js} +5 -5
  298. package/dist/{request-DegEaaCG.cjs → request-Cxljxwu9.cjs} +1 -1
  299. package/dist/{retainer1-Xvdlh-B_.js → retainer1-BvzeaTtU.js} +84 -76
  300. package/dist/retainer1-CC6TO-vq.cjs +1 -0
  301. package/dist/{retainer2-D3a-c_BA.js → retainer2-BeakFCgo.js} +101 -93
  302. package/dist/retainer2-CmdgkB1y.cjs +1 -0
  303. package/dist/{retainerRecordList-BJbPsJ4D.js → retainerRecordList-C7lDliOb.js} +2 -2
  304. package/dist/{retainerRecordList-Rqnoz6_6.cjs → retainerRecordList-C9xVt3Yk.cjs} +1 -1
  305. package/dist/retainerRecordListAPP-BRmG7UnF.cjs +1 -0
  306. package/dist/{retainerRecordListAPP-CNntGyA-.js → retainerRecordListAPP-Cjip5JHS.js} +44 -42
  307. package/dist/{ringTopN-BFKlXqGX.js → ringTopN-BaKY-79s.js} +5 -5
  308. package/dist/{ringTopN-CsouIsk1.cjs → ringTopN-Wfvu1-jE.cjs} +1 -1
  309. package/dist/{riskRegionTable-DttMvHe5.cjs → riskRegionTable-C7ee9wQX.cjs} +1 -1
  310. package/dist/{riskRegionTable-B6k4uM0_.js → riskRegionTable-ovBbwMl2.js} +2 -2
  311. package/dist/{sankey-CAuBQaYh.cjs → sankey-BmWOGLSZ.cjs} +1 -1
  312. package/dist/{sankey-DEQK7uU6.js → sankey-K5BLueeX.js} +7 -7
  313. package/dist/{sausage-xU3hOdxD.js → sausage-DTfIyvVP.js} +1 -1
  314. package/dist/{scd-qaap6hGW.cjs → scd-CCNgUI2Q.cjs} +1 -1
  315. package/dist/{scd-D5TicpCZ.js → scd-CMVoKjwE.js} +2 -2
  316. package/dist/{sectorHelper-DIlWFMnU.js → sectorHelper-Ba-1dnRr.js} +1 -1
  317. package/dist/{sideMenu-D-73DoYb.cjs → sideMenu-BbiMVHw1.cjs} +1 -1
  318. package/dist/{sideMenu-ByyrOOYh.js → sideMenu-L_dYXVgD.js} +2 -2
  319. package/dist/{slopeStability-CTN6Kpva.cjs → slopeStability-BWVxuRRV.cjs} +1 -1
  320. package/dist/{slopeStability-BtgMH3oW.js → slopeStability-WUcwG1vB.js} +22 -22
  321. package/dist/{speedCurve-C5NoQCjK.cjs → speedCurve-QTXe81e1.cjs} +1 -1
  322. package/dist/{speedCurve-CInn7NAC.js → speedCurve-uwPuIJp0.js} +4 -4
  323. package/dist/{stressFilterBar-D_QqOHna.js → stressFilterBar-CnFNp7BR.js} +2 -2
  324. package/dist/{stressFilterBar-Cpfbmllu.cjs → stressFilterBar-DcqWlqsx.cjs} +1 -1
  325. package/dist/{stressTimeCurve-Bp6Cevk1.cjs → stressTimeCurve-C-qycuZ2.cjs} +1 -1
  326. package/dist/{stressTimeCurve-1HXHUj-F.js → stressTimeCurve-C3r3LUBt.js} +3 -3
  327. package/dist/{swiper-D_y4Fj_D.js → swiper-JShIvM0E.js} +2 -2
  328. package/dist/{swiper-B8YZ2VQ2.cjs → swiper-wWrsPbDA.cjs} +1 -1
  329. package/dist/{terminalConfigList-CHbA4y-S.js → terminalConfigList-DVhEvcTB.js} +2 -2
  330. package/dist/{terminalConfigList-B39cEptG.cjs → terminalConfigList-nQqB1W5s.cjs} +1 -1
  331. package/dist/terminalList-BkMuHXZw.cjs +1 -0
  332. package/dist/{terminalList-oJFrGVtT.js → terminalList-wAz6t4Ib.js} +77 -77
  333. package/dist/terminalListAPP-CePxWgcL.cjs +1 -0
  334. package/dist/terminalListAPP-DuLN2OVq.js +1935 -0
  335. package/dist/{textbox-DPoyxB4u.cjs → textbox-BBi-Lg1Z.cjs} +1 -1
  336. package/dist/{textbox-D8nmoGjG.js → textbox-DxXuhIyj.js} +2 -2
  337. package/dist/{timeQueryBar-uUGotoTx.cjs → timeQueryBar-BCTeL04F.cjs} +1 -1
  338. package/dist/{timeQueryBar-DyC0iHq9.js → timeQueryBar-DtngkLJX.js} +1 -1
  339. package/dist/{timeSeries-U91gMDDQ.js → timeSeries-CrdyAYs2.js} +3 -3
  340. package/dist/{timeSeries-BhlqgEOq.cjs → timeSeries-DJZnExBA.cjs} +1 -1
  341. package/dist/{timeSeriesCurve-DOhIS88N.js → timeSeriesCurve-8_exdGlQ.js} +3 -3
  342. package/dist/{timeSeriesCurve-CiRMnZRD.cjs → timeSeriesCurve-8_n0JJyf.cjs} +1 -1
  343. package/dist/{toggleBtn-CuWwHFjD.cjs → toggleBtn-B6dJ5cAt.cjs} +1 -1
  344. package/dist/{toggleBtn-DE35dkxx.js → toggleBtn-DExYfMvi.js} +7 -7
  345. package/dist/{trajectoryConfigPanel-DAbF8oE9.cjs → trajectoryConfigPanel-B2fwoe-I.cjs} +1 -1
  346. package/dist/{trajectoryConfigPanel-Ye7NY6rd.js → trajectoryConfigPanel-Ce1SoMtw.js} +1 -1
  347. package/dist/{trajectoryScatter-Dg99HzM3.cjs → trajectoryScatter-CVLEXMPO.cjs} +1 -1
  348. package/dist/{trajectoryScatter-DL7HUNJI.js → trajectoryScatter-h32teAQ0.js} +6 -6
  349. package/dist/{universalConfigPanel-CkyIDl_x.js → universalConfigPanel-CxbrIc2Z.js} +1 -1
  350. package/dist/{universalConfigPanel-1svBCvD9.cjs → universalConfigPanel-cRzJmx3l.cjs} +1 -1
  351. package/dist/{universalTable--dpnyNO2.js → universalTable-BssAi-QH.js} +2 -2
  352. package/dist/{universalTable-D8w7FQbl.cjs → universalTable-V604pFVr.cjs} +1 -1
  353. package/dist/{universalTransition-Bv7ibBUh.js → universalTransition-tYQs2a4D.js} +2 -2
  354. package/dist/{video-RGIZoUn6.cjs → video-B8JeGpBc.cjs} +1 -1
  355. package/dist/{video-BmMSRRa_.js → video-BjmIbrRS.js} +2 -2
  356. package/dist/{videoMonitor-Bo5T0MT_.cjs → videoMonitor-B6FzkJlS.cjs} +1 -1
  357. package/dist/{videoMonitor-uf6tt2E6.js → videoMonitor-CVkFwlZq.js} +4 -4
  358. package/dist/{vlu-D8l5zE_P.js → vlu-CHHDngO6.js} +2 -2
  359. package/dist/{vlu-DEo_h1qN.cjs → vlu-Dv1vt9r0.cjs} +1 -1
  360. package/dist/{warningOverview-A5AA_vCc.cjs → warningOverview-4M-WX3Ob.cjs} +1 -1
  361. package/dist/{warningOverview-CA0PikjV.js → warningOverview-DDOm2wwB.js} +3 -3
  362. package/dist/{weather-D20MGzuJ.cjs → weather-BGrOQFPM.cjs} +1 -1
  363. package/dist/{weather-DuseqeNF.js → weather-CETxcsJS.js} +2 -2
  364. package/dist/{windLin-D8AUL_dV.js → windLin-B3YXltBn.js} +10 -10
  365. package/dist/{windLin-BU6Q87dE.cjs → windLin-B6uEtUnB.cjs} +1 -1
  366. package/package.json +1 -1
  367. package/dist/BaseComponent-Chnv4fBT.cjs +0 -1
  368. package/dist/bar-C38h_mUA.js +0 -246
  369. package/dist/bar-Cru6WosS.cjs +0 -2
  370. package/dist/bmp-BXaEkkpa.cjs +0 -1
  371. package/dist/bmp-BnSOaFEr.js +0 -226
  372. package/dist/clt-CmPPtp9c.cjs +0 -1
  373. package/dist/clt-D5i_8-pq.js +0 -293
  374. package/dist/cmc-8jH3DGv9.cjs +0 -1
  375. package/dist/cmp-CpmGtNal.cjs +0 -6
  376. package/dist/composite-CbsUYl-u.js +0 -136
  377. package/dist/composite-Cf24lSyN.cjs +0 -1
  378. package/dist/composite-CsFgfxih.js +0 -323
  379. package/dist/composite-DLmzZNIj.cjs +0 -3
  380. package/dist/ctrBtn-OOgL9esv.cjs +0 -1
  381. package/dist/ctrSet-Btg2T9w6.js +0 -247
  382. package/dist/ctrSet-CifyJt05.cjs +0 -1
  383. package/dist/ctrSwitch-C8mwxLPe.cjs +0 -1
  384. package/dist/ele-cmp-icon-CEP91RUe.js +0 -5
  385. package/dist/ele-cmp-icon-yUlU6c_Q.cjs +0 -1
  386. package/dist/gag-1bvAZ5m6.cjs +0 -1
  387. package/dist/gag-D2obj7AF.js +0 -160
  388. package/dist/index-DVqMfQVc.cjs +0 -612
  389. package/dist/index-mAPVa0s4.cjs +0 -11
  390. package/dist/install-BBrAry2m.js +0 -8
  391. package/dist/install-BRjgycz_.cjs +0 -1
  392. package/dist/install-BamnGDPb.cjs +0 -1
  393. package/dist/install-D7znHb-b.js +0 -604
  394. package/dist/install-DWm3j_D3.js +0 -38
  395. package/dist/mix-control-modal-DwxwW65v.cjs +0 -1
  396. package/dist/mix-control-modal-Qg_mzyT_.js +0 -145
  397. package/dist/mixMap-CJzmC0IR.cjs +0 -1
  398. package/dist/mixMap-E36SDnEa.js +0 -258
  399. package/dist/mixModel-BMRxhvWn.cjs +0 -3
  400. package/dist/mixModel-_McJ6OuH.js +0 -251
  401. package/dist/mixPie-CMOkAe9p.js +0 -168
  402. package/dist/mixPie-MAKXeYVp.cjs +0 -2
  403. package/dist/mixiotObjectListApi-BaeBL318.js +0 -82
  404. package/dist/mixiotObjectListApi-D9OyHNQ3.cjs +0 -1
  405. package/dist/no-image-icon-CPA7RKkF.cjs +0 -1
  406. package/dist/no-image-icon-n2ZlEjxS.js +0 -1864
  407. package/dist/objectListAPP-DCwTyqFp.js +0 -1864
  408. package/dist/objectListAPP-Db5beOAM.cjs +0 -1
  409. package/dist/raceBar-CeybrpCB.cjs +0 -4
  410. package/dist/retainer1-CF2Tr7Zt.cjs +0 -1
  411. package/dist/retainer2-BQVUhgcH.cjs +0 -1
  412. package/dist/retainerRecordListAPP-B4IDQK3C.cjs +0 -1
  413. package/dist/staticLine-BC-zj5yZ.cjs +0 -1
  414. package/dist/staticLine-CLqN4lpU.js +0 -362
  415. package/dist/terminalList-Vf-Dbybr.cjs +0 -1
  416. package/dist/terminalListAPP-CdBG8krw.cjs +0 -1
  417. package/dist/terminalListAPP-DWArp2D4.js +0 -1366
@@ -12,10 +12,10 @@ var T = (r, a, l) => a in r ? L(r, a, { enumerable: !0, configurable: !0, writab
12
12
  }, d = (r, a) => W(r, U(a));
13
13
  import { defineComponent as X, reactive as H, computed as O, onMounted as $, onBeforeUnmount as K, openBlock as q, createElementBlock as G, normalizeStyle as J, createVNode as Q, renderSlot as Y } from "vue";
14
14
  import "html2canvas";
15
- import { B as Z } from "./BaseComponent-CBagahPU.js";
16
- import { _ as ee } from "./index-DwPJu6XM.js";
15
+ import { B as Z } from "./BaseComponent-NnwLq7Cf.js";
16
+ import { _ as ee } from "./index-D5BukPPY.js";
17
17
  import { g as te, M as le } from "./mockData-DcqLnbJF.js";
18
- import { E as ae } from "./EmergencyPlanPanel--jTGG89o.js";
18
+ import { E as ae } from "./EmergencyPlanPanel-0EfbQlQm.js";
19
19
  import { A as oe, D as ne } from "./ele-evn-icon-MWzAujnD.js";
20
20
  const re = {
21
21
  DEFAULT_ICON: ne,
@@ -27,8 +27,8 @@ var T = (l, e, o) => new Promise((y, p) => {
27
27
  v((o = o.apply(l, e)).next());
28
28
  });
29
29
  import { defineComponent as F, ref as U, computed as k, openBlock as B, createElementBlock as Y, normalizeStyle as m, unref as f, createElementVNode as S, toDisplayString as g, renderSlot as $ } from "vue";
30
- import { B as H } from "./BaseComponent-CBagahPU.js";
31
- import { d as P, _ as w } from "./index-DwPJu6XM.js";
30
+ import { B as H } from "./BaseComponent-NnwLq7Cf.js";
31
+ import { d as P, _ as w } from "./index-D5BukPPY.js";
32
32
  import { g as q } from "./titleStyle-BT5GlpAb.js";
33
33
  import { A as G, D as J } from "./ele-evn-icon-MWzAujnD.js";
34
34
  const K = { class: "mix-body" }, Q = { class: "mix-footer" }, M = "--", W = {
@@ -1 +1 @@
1
- "use strict";var T=Object.defineProperty,M=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var O=(l,o,a)=>o in l?T(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,z=(l,o)=>{for(var a in o||(o={}))j.call(o,a)&&O(l,a,o[a]);if(E)for(var a of E(o))L.call(o,a)&&O(l,a,o[a]);return l},V=(l,o)=>M(l,I(o));var A=(l,o,a)=>new Promise((y,S)=>{var u=r=>{try{p(a.next(r))}catch(f){S(f)}},v=r=>{try{p(a.throw(r))}catch(f){S(f)}},p=r=>r.done?y(r.value):Promise.resolve(r.value).then(u,v);p((a=a.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),F=require("./BaseComponent-Chnv4fBT.cjs"),N=require("./index-DVqMfQVc.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),b=require("./ele-evn-icon-DUQMS-9T.cjs"),U={class:"mix-body"},q={class:"mix-footer"},D="--",$={DEFAULT_ICON:b.DEFAULT_ICON,ACTIVE_ICON:b.ACTIVE_ICON,NAME_CN:"状态卡片",NAME_EN:"State",ORDER:3,PLATFORM:["pc","screen","mobile"]},k={nameSize:14,valueSize:36,timeSize:12,radiusSize:8,bgColor:"#fff",titleColor:"#111",textColor:"#111"},B=[{fv:"",status_fv:"",object_id:"",status:[{code:0,text:"离线",color:"#a40e0e"}]}],P=["fv","status_fv"],Y=["mosaic"],H={useAlias:!1,source:"mosaic",multiObject:!1,hideMultiObject:!0},w=1,G={DEFAULT:$,OPTIONS:k,DATA:B,PARAMS:P,SOURCE:Y,ITEMS:w,COMMON:H},J=t.defineComponent(V(z({},G),{__name:"evn",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){const o=l,a=t.ref(N.dayjs().format("YYYY-MM-DD HH:mm:ss"));class y extends F.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",14),valueSize:this.getOptionValue("valueSize",36),timeSize:this.getOptionValue("timeSize",12),radiusSize:this.getOptionValue("radiusSize",8)}}init(){return A(this,null,function*(){var s;this.Style.value=this.extractStyles(),this.applyTheme(),(s=this.props.conf.data)!=null&&s.length||(this.props.conf.data=[{fv:"",status_fv:"",object_id:"",status:[{code:0,text:"离线",color:"#a40e0e"}]}])})}setHistoryData(s){if(!s)return;const{data:n}=this.props.conf;!n||!Array.isArray(n)||!n.length||n.forEach((e,c)=>{var h,_,m;try{const i=(_=(h=s==null?void 0:s.history)==null?void 0:h[c])==null?void 0:_[0];if(!i)return;const g=e==null?void 0:e.fv,C=e==null?void 0:e.status_fv;if(g){const d=i==null?void 0:i[g];d!=null&&(e.value=d)}if(C){const d=i==null?void 0:i[C];d!=null&&(e.statusValue=d)}const x=(m=i==null?void 0:i.time)!=null?m:i==null?void 0:i.datetime;x&&(a.value=x)}catch(i){}})}setSocketData(s){if(!s)return;const{data:n}=this.props.conf;!n||!Array.isArray(n)||n.forEach(e=>{var c;try{e.value=(c=this.extractDataValue(s,e.fv))!=null?c:D,e.statusValue=this.extractDataValue(s,e.status_fv),s.datetime&&(a.value=s.datetime)}catch(h){e.value=D}})}}const S=new y(o,"evn");S.setupLifecycle();const u=S.getStyle(),v=o.conf,p=t.computed(()=>R.generateTitleStyle(o.conf.options)),r=()=>{var e;const{data:f}=o.conf,s=f[0];let n={color:"",text:""};return(e=s==null?void 0:s.status)==null||e.forEach(c=>{String(c.code)===String(s.statusValue)&&(n={text:c.text,color:c.color})}),n};return(f,s)=>{var n,e,c;return t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(u).bgColor,borderRadius:`${t.unref(u).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(p.value)},t.toDisplayString(t.unref(v).caption||r().text),5),t.createElementVNode("div",U,[t.createElementVNode("div",{class:"body-value",style:t.normalizeStyle({fontSize:`${t.unref(u).valueSize}px`,color:t.unref(u).textColor})},t.toDisplayString((c=(e=(n=t.unref(v))==null?void 0:n.data)==null?void 0:e[0])==null?void 0:c.value),5)]),t.createElementVNode("div",q,[t.createElementVNode("div",{class:"footer-time",style:t.normalizeStyle({fontSize:`${t.unref(u).timeSize}px`,color:t.unref(u).titleColor})},t.toDisplayString(a.value),5)]),t.renderSlot(f.$slots,"default",{},void 0,!0)],4)}}})),K=N._export_sfc(J,[["__scopeId","data-v-690a9e92"]]);exports.default=K;
1
+ "use strict";var T=Object.defineProperty,M=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var O=(l,o,a)=>o in l?T(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,z=(l,o)=>{for(var a in o||(o={}))j.call(o,a)&&O(l,a,o[a]);if(E)for(var a of E(o))L.call(o,a)&&O(l,a,o[a]);return l},V=(l,o)=>M(l,I(o));var A=(l,o,a)=>new Promise((y,S)=>{var u=r=>{try{p(a.next(r))}catch(f){S(f)}},v=r=>{try{p(a.throw(r))}catch(f){S(f)}},p=r=>r.done?y(r.value):Promise.resolve(r.value).then(u,v);p((a=a.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),F=require("./BaseComponent-CaCkjmmb.cjs"),N=require("./index-BzWbqJIl.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),b=require("./ele-evn-icon-DUQMS-9T.cjs"),U={class:"mix-body"},q={class:"mix-footer"},D="--",$={DEFAULT_ICON:b.DEFAULT_ICON,ACTIVE_ICON:b.ACTIVE_ICON,NAME_CN:"状态卡片",NAME_EN:"State",ORDER:3,PLATFORM:["pc","screen","mobile"]},k={nameSize:14,valueSize:36,timeSize:12,radiusSize:8,bgColor:"#fff",titleColor:"#111",textColor:"#111"},B=[{fv:"",status_fv:"",object_id:"",status:[{code:0,text:"离线",color:"#a40e0e"}]}],P=["fv","status_fv"],Y=["mosaic"],H={useAlias:!1,source:"mosaic",multiObject:!1,hideMultiObject:!0},w=1,G={DEFAULT:$,OPTIONS:k,DATA:B,PARAMS:P,SOURCE:Y,ITEMS:w,COMMON:H},J=t.defineComponent(V(z({},G),{__name:"evn",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){const o=l,a=t.ref(N.dayjs().format("YYYY-MM-DD HH:mm:ss"));class y extends F.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",14),valueSize:this.getOptionValue("valueSize",36),timeSize:this.getOptionValue("timeSize",12),radiusSize:this.getOptionValue("radiusSize",8)}}init(){return A(this,null,function*(){var s;this.Style.value=this.extractStyles(),this.applyTheme(),(s=this.props.conf.data)!=null&&s.length||(this.props.conf.data=[{fv:"",status_fv:"",object_id:"",status:[{code:0,text:"离线",color:"#a40e0e"}]}])})}setHistoryData(s){if(!s)return;const{data:n}=this.props.conf;!n||!Array.isArray(n)||!n.length||n.forEach((e,c)=>{var h,_,m;try{const i=(_=(h=s==null?void 0:s.history)==null?void 0:h[c])==null?void 0:_[0];if(!i)return;const g=e==null?void 0:e.fv,C=e==null?void 0:e.status_fv;if(g){const d=i==null?void 0:i[g];d!=null&&(e.value=d)}if(C){const d=i==null?void 0:i[C];d!=null&&(e.statusValue=d)}const x=(m=i==null?void 0:i.time)!=null?m:i==null?void 0:i.datetime;x&&(a.value=x)}catch(i){}})}setSocketData(s){if(!s)return;const{data:n}=this.props.conf;!n||!Array.isArray(n)||n.forEach(e=>{var c;try{e.value=(c=this.extractDataValue(s,e.fv))!=null?c:D,e.statusValue=this.extractDataValue(s,e.status_fv),s.datetime&&(a.value=s.datetime)}catch(h){e.value=D}})}}const S=new y(o,"evn");S.setupLifecycle();const u=S.getStyle(),v=o.conf,p=t.computed(()=>R.generateTitleStyle(o.conf.options)),r=()=>{var e;const{data:f}=o.conf,s=f[0];let n={color:"",text:""};return(e=s==null?void 0:s.status)==null||e.forEach(c=>{String(c.code)===String(s.statusValue)&&(n={text:c.text,color:c.color})}),n};return(f,s)=>{var n,e,c;return t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(u).bgColor,borderRadius:`${t.unref(u).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(p.value)},t.toDisplayString(t.unref(v).caption||r().text),5),t.createElementVNode("div",U,[t.createElementVNode("div",{class:"body-value",style:t.normalizeStyle({fontSize:`${t.unref(u).valueSize}px`,color:t.unref(u).textColor})},t.toDisplayString((c=(e=(n=t.unref(v))==null?void 0:n.data)==null?void 0:e[0])==null?void 0:c.value),5)]),t.createElementVNode("div",q,[t.createElementVNode("div",{class:"footer-time",style:t.normalizeStyle({fontSize:`${t.unref(u).timeSize}px`,color:t.unref(u).titleColor})},t.toDisplayString(a.value),5)]),t.renderSlot(f.$slots,"default",{},void 0,!0)],4)}}})),K=N._export_sfc(J,[["__scopeId","data-v-690a9e92"]]);exports.default=K;
@@ -31,12 +31,12 @@ import "element-plus/es/components/base/style/css";
31
31
  import "element-plus/es/components/button/style/css";
32
32
  import { defineComponent as lt, ref as T, computed as R, watch as ut, openBlock as dt, createElementBlock as ht, normalizeStyle as ft, createElementVNode as E, toDisplayString as q, createVNode as mt, withCtx as pt, createTextVNode as vt, unref as bt, renderSlot as yt } from "vue";
33
33
  import { u as gt } from "./safeI18n-CXZgGKWp.js";
34
- import { d as N, _ as Ct } from "./index-DwPJu6XM.js";
34
+ import { d as N, _ as Ct } from "./index-D5BukPPY.js";
35
35
  import "element-plus";
36
- import { E as jt } from "./EChartComponentBase-cFfawl6h.js";
37
- import "./index-ButoLLAe.js";
36
+ import { E as jt } from "./EChartComponentBase-C3gcATBZ.js";
37
+ import "./index-eIsZnzkc.js";
38
38
  import { A as Dt, D as Ot } from "./ele-vlu-icon-Bg6EHZdJ.js";
39
- import { cn as G } from "./echarts-BVht3HHb.js";
39
+ import { cn as G } from "./echarts-Bp7QN4X6.js";
40
40
  const wt = { class: "chart-header" }, It = { class: "chart-title" }, _t = { class: "chart-actions" }, St = ["id"], xt = {
41
41
  DEFAULT_ICON: Ot,
42
42
  ACTIVE_ICON: Dt,
@@ -350,7 +350,7 @@ const wt = { class: "chart-header" }, It = { class: "chart-title" }, _t = { clas
350
350
  h.object_id = o;
351
351
  }), m.multiObject || (m.object_id = o);
352
352
  try {
353
- const h = yield import("./history-BZ869y2d.js"), w = yield new h.default().getHistoryData(n, "evolutionChart");
353
+ const h = yield import("./history-DdkBOj8L.js"), w = yield new h.default().getHistoryData(n, "evolutionChart");
354
354
  if (j !== a) {
355
355
  S = !1;
356
356
  return;
@@ -1 +1 @@
1
- "use strict";var te=Object.defineProperty,oe=Object.defineProperties;var ne=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var B=(b,h,n)=>h in b?te(b,h,{enumerable:!0,configurable:!0,writable:!0,value:n}):b[h]=n,L=(b,h)=>{for(var n in h||(h={}))se.call(h,n)&&B(b,n,h[n]);if(z)for(var n of z(h))ae.call(h,n)&&B(b,n,h[n]);return b},M=(b,h)=>oe(b,ne(h));var V=(b,h,n)=>new Promise((y,C)=>{var D=i=>{try{k(n.next(i))}catch(S){C(S)}},O=i=>{try{k(n.throw(i))}catch(S){C(S)}},k=i=>i.done?y(i.value):Promise.resolve(i.value).then(D,O);k((n=n.apply(b,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ce=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");const u=require("vue"),ie=require("./safeI18n-DR20q_h1.cjs"),N=require("./index-DVqMfQVc.cjs");require("element-plus");const re=require("./EChartComponentBase-dLE5F7Tt.cjs");require("./index-mAPVa0s4.cjs");const W=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),Y=require("./echarts-BB8O2KSA.cjs"),le={class:"chart-header"},ue={class:"chart-title"},de={class:"chart-actions"},he=["id"],fe={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"裂缝演变图",NAME_EN:"EvolutionChart",ORDER:2,PLATFORM:["pc","screen"]},me={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleSize:{value:14,type:"number",label:"component.options.titleSize"},showLegend:{value:!0,type:"switch",label:"component.options.showLegend"},showDataZoom:{value:!0,type:"switch",label:"component.crack.showDataZoom"},lineWidth:{value:3,type:"number",label:"component.options.lineWidth"},showArea:{value:!0,type:"switch",label:"component.line.showArea"},linkChannel:{value:"crack",type:"select",label:"component.linkChannel",options:[{label:"裂缝监测",value:"crack"},{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"深部位移",value:"deepDisplacement"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},pe=[{name:"宽度累计变化量",fv:"",fvDeviceName:"",object_id:""}],ve=["name","fv","fvDeviceName","object_id"],be=["mosaic","statistics","calculate"],ye={useAlias:!1,multiObject:!0,source:"mosaic"},ge=50,Ce={DEFAULT:fe,OPTIONS:me,DATA:pe,PARAMS:ve,SOURCE:be,ITEMS:ge,COMMON:ye},je=u.defineComponent(M(L({},Ce),{__name:"evolutionChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(b){const{t:h}=ie.useSafeI18n({"component.crack.evolutionChart":"裂缝演变图","component.crack.exportImage":"导出图像","component.crack.widthCumulativeChangeUnit":"宽度累计变化量(mm)"}),n=b,y=u.ref(new Map),C=u.ref(new Map),D=u.ref([]);let O=0;class k extends re.EChartComponentBase{constructor(){super(...arguments),this.deviceColors=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4"],this.yAxisLabel="",this.currentObjectId=""}getCurrentObjectId(){return this.currentObjectId}setCurrentObjectId(e){this.currentObjectId=e}extractStyles(){const e=this.getOptionValue("linkChannel","crack"),r=this.getOptionValue("customChannel","");return M(L({},super.extractStyles()),{showLegend:this.getOptionValue("showLegend",!0),showDataZoom:this.getOptionValue("showDataZoom",!0),lineWidth:this.getOptionValue("lineWidth",3),showArea:this.getOptionValue("showArea",!0),linkChannel:e==="custom"&&r?r:e})}setYAxisLabel(e){this.yAxisLabel=e}needsHistoryData(){return!1}onPreview(){return V(this,null,function*(){const{common:e,data:r}=this.props.conf,a=[];if(e.multiObject&&Array.isArray(r)){const c=new Set;for(const g of r){const l=yield this.resolveObjectId(g);!l||c.has(l)||(c.add(l),a.push(l))}}else{const c=yield this.resolveObjectId();c&&(this.currentObjectId=c,a.push(c))}a.length>0&&T({payload:{type:"filter",objectIds:a}})})}onLinkEvent(e){T(e)}getChartOption(){const{data:e,common:r}=this.props.conf,a=this.Style.value,c=D.value,g=c.length>1;let l;if(this.props.mode==="edit"){l=[];for(let s=30;s>=0;s--)l.push(N.dayjs().subtract(s,"day").format("MM-DD"))}else{const s=new Set;if(g)for(const d of c)e.forEach(t=>{const o=`${d}-${t.name||t.fv||"default"}`;(y.value.get(o)||[]).forEach(f=>s.add(f.time))});else e.forEach(d=>{const t=r.multiObject?this.resolveObjectId(d):this.currentObjectId||this.resolveObjectId();if(!t)return;const o=`${t}-${d.name||d.fv||"default"}`;(y.value.get(o)||[]).forEach(f=>s.add(f.time))});l=Array.from(s).sort()}const p=[];let m=0;if(g&&this.props.mode!=="edit")for(const s of c){const d=C.value.get(s)||s.slice(-6);for(const t of e){const o=this.deviceColors[m%this.deviceColors.length],v=`${s}-${t.name||t.fv||"default"}`,f=`${d}-${t.name||t.fv||"default"}`;p.push({name:f,type:"line",smooth:!0,showSymbol:!0,symbol:"circle",symbolSize:6,connectNulls:!0,lineStyle:{color:o,width:a.lineWidth},itemStyle:{color:o},areaStyle:a.showArea?{color:new Y.LinearGradient(0,0,0,1,[{offset:0,color:`${o}4D`},{offset:1,color:`${o}0D`}])}:void 0,data:this.getEvolutionData(v,l)}),m++}}else e.filter(s=>(r.multiObject?this.resolveObjectId(s):this.currentObjectId||this.resolveObjectId())||this.props.mode==="edit").forEach((s,d)=>{const t=this.deviceColors[d%this.deviceColors.length],o=r.multiObject?this.resolveObjectId(s):this.currentObjectId||this.resolveObjectId(),v=`${o}-${s.name||s.fv||"default"}`,f=s.name||s.fv||"default",A=o&&C.value.get(o)||"",w=A?`${A}-${f}`:f;p.push({name:w,type:"line",smooth:!0,showSymbol:!0,symbol:"circle",symbolSize:6,connectNulls:!0,lineStyle:{color:t,width:a.lineWidth},itemStyle:{color:t},areaStyle:a.showArea?{color:new Y.LinearGradient(0,0,0,1,[{offset:0,color:`${t}4D`},{offset:1,color:`${t}0D`}])}:void 0,data:this.getEvolutionData(v,l)})});return{tooltip:{trigger:"axis",axisPointer:{type:"cross"},formatter:s=>{let d=`<div style="font-weight: bold;">${s[0].axisValue}</div>`;return s.forEach(t=>{var o;d+=`<div>${t.marker} ${t.seriesName}: ${(o=t.value)!=null?o:"--"} mm</div>`}),d}},legend:{show:a.showLegend,type:"scroll",top:10,textStyle:{color:a.textColor}},grid:{top:60,left:60,right:40,bottom:a.showDataZoom?80:40},xAxis:{type:"category",data:l,axisLabel:{interval:"auto",rotate:15,fontSize:10,color:a.textColor}},yAxis:{type:"value",name:this.yAxisLabel||"宽度累计变化量(mm)",nameTextStyle:{color:a.textColor},axisLabel:{color:a.textColor},splitLine:{lineStyle:{type:"dashed",opacity:.5}}},dataZoom:a.showDataZoom?[{type:"inside"},{type:"slider",bottom:10,height:15}]:[],series:p}}generateTimeLabels(){return[]}getEvolutionData(e,r){if(this.props.mode==="edit"){const c=[];for(let p=30;p>=0;p--)c.push(N.dayjs().subtract(p,"day").format("MM-DD"));const g=.1,l=.02+Math.random()*.03;return Array.from({length:c.length},(p,m)=>{const s=g+l*m;return parseFloat(s.toFixed(2))})}return(y.value.get(e)||[]).map(c=>c.value)}setSocketData(e){if(!e)return;const r=e.object_id||e.objectId||"";if(r&&D.value.length>0&&!D.value.includes(r))return;super.setSocketData(e);const{data:a,common:c}=this.props.conf,g=N.dayjs().format("MM-DD HH:mm:ss"),l=D.value.length>1;a.forEach((m,s)=>{const d=l&&r?r:c.multiObject?this.resolveObjectId(m):this.currentObjectId||this.resolveObjectId();if(!d)return;if(m.fvDeviceName){const o=this.extractDataValue(e,m.fvDeviceName);o?C.value.set(d,String(o)):e.data&&e.data[m.fvDeviceName]&&C.value.set(d,String(e.data[m.fvDeviceName]))}let t=m.value;if((!t||t==="--")&&(t=this.extractDataValue(e,m.fv)),t!=null&&t!=="--"){const o=`${d}-${m.name||m.fv||"default"}`,v=y.value.get(o)||[],f=typeof t=="number"?t:parseFloat(t);if(isNaN(f))return;v.push({time:g,value:f}),v.length>200&&v.shift(),y.value.set(o,v)}});const p=this.getChartInstance();p&&p.setOption(this.getChartOption())}}const i=new k(n,"evolutionChart");i.setYAxisLabel(h("component.crack.widthCumulativeChangeUnit")),i.setupLifecycle();const S=i.getStyle(),Z=i.getEchartId();let $=null,x=!1;const T=j=>V(null,null,function*(){var t;const{payload:e}=j;if(!e)return;e.dateRange&&Array.isArray(e.dateRange)&&e.dateRange.length===2&&($={start_time:e.dateRange[0],end_time:e.dateRange[1]});const r=e.objectIds&&e.objectIds.length>0?e.objectIds:e.objectId||e.object_id?[e.objectId||e.object_id]:[];if(!r.length||n.mode!=="preview")return;x=!0;const a=++O;D.value=r,i.setCurrentObjectId([...r].sort().join(",")),y.value.clear(),C.value.clear();const c=(t=i.session)==null?void 0:t.value;if(!c){x=!1;return}const g=n.conf.id;c.componentRequests&&c.componentRequests.delete(g),typeof c.unsubscribeComponent=="function"&&c.unsubscribeComponent(g);const{data:l,common:p}=n.conf;$&&(p.historyTimeRange=$),n.conf.options||(n.conf.options={});const m=n.conf.options.points,s=Object.prototype.hasOwnProperty.call(n.conf.options,"points");(!m||Number(m)<24)&&(n.conf.options.points=24);for(const o of r){if(O!==a){x=!1;return}Array.isArray(l)&&l.forEach(f=>{f.object_id=o}),p.multiObject||(p.object_id=o);try{const f=yield Promise.resolve().then(()=>require("./history-MxYUUwkm.cjs")),w=yield new f.default().getHistoryData(n,"evolutionChart");if(O!==a){x=!1;return}const R=(w==null?void 0:w.history)||(Array.isArray(w)?w:[]);R.length>0&&l.forEach((_,X)=>{if(!_.fv)return;const q=`${o}-${_.name||_.fv||"default"}`,P=R[X];if(!Array.isArray(P)){y.value.set(q,[]);return}const ee=[...P].sort((I,E)=>new Date(I.time||I.datetime||"").getTime()-new Date(E.time||E.datetime||"").getTime()),H=[];ee.forEach(I=>{const E=I.time||I.datetime,U=I[_.fv];if(E&&U!=null){const F=parseFloat(U);isNaN(F)||H.push({time:N.dayjs(E).format("MM-DD HH:mm:ss"),value:F})}_.fvDeviceName&&I[_.fvDeviceName]&&C.value.set(o,String(I[_.fvDeviceName]))}),y.value.set(q,H)})}catch(f){console.warn("[裂缝演变图] 历史数据获取失败:",f)}if(O!==a){x=!1;return}const v=i.getSource();i.subscribeBySource(v,o),l&&Array.isArray(l)&&l.forEach(f=>{const A=`${o}-${f.name||f.fv||"default"}`;y.value.has(A)||y.value.set(A,[])})}if(s?n.conf.options.points=m:delete n.conf.options.points,x=!1,O!==a)return;const d=i.getChartInstance();d&&d.setOption(i.getChartOption(),!0),c.registerComponent({id:g,request:null,onUpdate:(o,v)=>{O===a&&o==="realtime"&&i.setSocketData(v)}})}),G=u.computed(()=>({background:S.value.bgColor,color:S.value.textColor})),J=u.computed(()=>h("component.crack.evolutionChart")),K=u.computed(()=>h("component.crack.exportImage"));u.watch(()=>h("component.crack.widthCumulativeChangeUnit"),j=>{i.setYAxisLabel(j),i.init()});const Q=()=>{const j=i.getChartInstance();if(!j)return;const e=document.createElement("a");e.href=j.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`${h("component.crack.evolutionChart")}_${N.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()};return(j,e)=>{const r=ce.ElButton;return u.openBlock(),u.createElementBlock("div",{class:"mix-component crack-evolution",style:u.normalizeStyle(G.value)},[u.createElementVNode("div",le,[u.createElementVNode("span",ue,"📊 "+u.toDisplayString(J.value),1),u.createElementVNode("div",de,[u.createVNode(r,{size:"small",onClick:Q},{default:u.withCtx(()=>[u.createTextVNode("💾 "+u.toDisplayString(K.value),1)]),_:1})])]),u.createElementVNode("div",{id:u.unref(Z),class:"chart-container"},null,8,he),u.renderSlot(j.$slots,"default",{},void 0,!0)],4)}}})),Oe=N._export_sfc(je,[["__scopeId","data-v-da6b39e5"]]);exports.default=Oe;
1
+ "use strict";var te=Object.defineProperty,oe=Object.defineProperties;var ne=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var B=(b,h,n)=>h in b?te(b,h,{enumerable:!0,configurable:!0,writable:!0,value:n}):b[h]=n,L=(b,h)=>{for(var n in h||(h={}))se.call(h,n)&&B(b,n,h[n]);if(z)for(var n of z(h))ae.call(h,n)&&B(b,n,h[n]);return b},M=(b,h)=>oe(b,ne(h));var V=(b,h,n)=>new Promise((y,C)=>{var D=i=>{try{k(n.next(i))}catch(S){C(S)}},O=i=>{try{k(n.throw(i))}catch(S){C(S)}},k=i=>i.done?y(i.value):Promise.resolve(i.value).then(D,O);k((n=n.apply(b,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ce=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");const u=require("vue"),ie=require("./safeI18n-DR20q_h1.cjs"),N=require("./index-BzWbqJIl.cjs");require("element-plus");const re=require("./EChartComponentBase-D7_ZiE7P.cjs");require("./index-CJgyJTvc.cjs");const W=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),Y=require("./echarts-BB8O2KSA.cjs"),le={class:"chart-header"},ue={class:"chart-title"},de={class:"chart-actions"},he=["id"],fe={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"裂缝演变图",NAME_EN:"EvolutionChart",ORDER:2,PLATFORM:["pc","screen"]},me={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleSize:{value:14,type:"number",label:"component.options.titleSize"},showLegend:{value:!0,type:"switch",label:"component.options.showLegend"},showDataZoom:{value:!0,type:"switch",label:"component.crack.showDataZoom"},lineWidth:{value:3,type:"number",label:"component.options.lineWidth"},showArea:{value:!0,type:"switch",label:"component.line.showArea"},linkChannel:{value:"crack",type:"select",label:"component.linkChannel",options:[{label:"裂缝监测",value:"crack"},{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"深部位移",value:"deepDisplacement"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},pe=[{name:"宽度累计变化量",fv:"",fvDeviceName:"",object_id:""}],ve=["name","fv","fvDeviceName","object_id"],be=["mosaic","statistics","calculate"],ye={useAlias:!1,multiObject:!0,source:"mosaic"},ge=50,Ce={DEFAULT:fe,OPTIONS:me,DATA:pe,PARAMS:ve,SOURCE:be,ITEMS:ge,COMMON:ye},je=u.defineComponent(M(L({},Ce),{__name:"evolutionChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(b){const{t:h}=ie.useSafeI18n({"component.crack.evolutionChart":"裂缝演变图","component.crack.exportImage":"导出图像","component.crack.widthCumulativeChangeUnit":"宽度累计变化量(mm)"}),n=b,y=u.ref(new Map),C=u.ref(new Map),D=u.ref([]);let O=0;class k extends re.EChartComponentBase{constructor(){super(...arguments),this.deviceColors=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4"],this.yAxisLabel="",this.currentObjectId=""}getCurrentObjectId(){return this.currentObjectId}setCurrentObjectId(e){this.currentObjectId=e}extractStyles(){const e=this.getOptionValue("linkChannel","crack"),r=this.getOptionValue("customChannel","");return M(L({},super.extractStyles()),{showLegend:this.getOptionValue("showLegend",!0),showDataZoom:this.getOptionValue("showDataZoom",!0),lineWidth:this.getOptionValue("lineWidth",3),showArea:this.getOptionValue("showArea",!0),linkChannel:e==="custom"&&r?r:e})}setYAxisLabel(e){this.yAxisLabel=e}needsHistoryData(){return!1}onPreview(){return V(this,null,function*(){const{common:e,data:r}=this.props.conf,a=[];if(e.multiObject&&Array.isArray(r)){const c=new Set;for(const g of r){const l=yield this.resolveObjectId(g);!l||c.has(l)||(c.add(l),a.push(l))}}else{const c=yield this.resolveObjectId();c&&(this.currentObjectId=c,a.push(c))}a.length>0&&T({payload:{type:"filter",objectIds:a}})})}onLinkEvent(e){T(e)}getChartOption(){const{data:e,common:r}=this.props.conf,a=this.Style.value,c=D.value,g=c.length>1;let l;if(this.props.mode==="edit"){l=[];for(let s=30;s>=0;s--)l.push(N.dayjs().subtract(s,"day").format("MM-DD"))}else{const s=new Set;if(g)for(const d of c)e.forEach(t=>{const o=`${d}-${t.name||t.fv||"default"}`;(y.value.get(o)||[]).forEach(f=>s.add(f.time))});else e.forEach(d=>{const t=r.multiObject?this.resolveObjectId(d):this.currentObjectId||this.resolveObjectId();if(!t)return;const o=`${t}-${d.name||d.fv||"default"}`;(y.value.get(o)||[]).forEach(f=>s.add(f.time))});l=Array.from(s).sort()}const p=[];let m=0;if(g&&this.props.mode!=="edit")for(const s of c){const d=C.value.get(s)||s.slice(-6);for(const t of e){const o=this.deviceColors[m%this.deviceColors.length],v=`${s}-${t.name||t.fv||"default"}`,f=`${d}-${t.name||t.fv||"default"}`;p.push({name:f,type:"line",smooth:!0,showSymbol:!0,symbol:"circle",symbolSize:6,connectNulls:!0,lineStyle:{color:o,width:a.lineWidth},itemStyle:{color:o},areaStyle:a.showArea?{color:new Y.LinearGradient(0,0,0,1,[{offset:0,color:`${o}4D`},{offset:1,color:`${o}0D`}])}:void 0,data:this.getEvolutionData(v,l)}),m++}}else e.filter(s=>(r.multiObject?this.resolveObjectId(s):this.currentObjectId||this.resolveObjectId())||this.props.mode==="edit").forEach((s,d)=>{const t=this.deviceColors[d%this.deviceColors.length],o=r.multiObject?this.resolveObjectId(s):this.currentObjectId||this.resolveObjectId(),v=`${o}-${s.name||s.fv||"default"}`,f=s.name||s.fv||"default",A=o&&C.value.get(o)||"",w=A?`${A}-${f}`:f;p.push({name:w,type:"line",smooth:!0,showSymbol:!0,symbol:"circle",symbolSize:6,connectNulls:!0,lineStyle:{color:t,width:a.lineWidth},itemStyle:{color:t},areaStyle:a.showArea?{color:new Y.LinearGradient(0,0,0,1,[{offset:0,color:`${t}4D`},{offset:1,color:`${t}0D`}])}:void 0,data:this.getEvolutionData(v,l)})});return{tooltip:{trigger:"axis",axisPointer:{type:"cross"},formatter:s=>{let d=`<div style="font-weight: bold;">${s[0].axisValue}</div>`;return s.forEach(t=>{var o;d+=`<div>${t.marker} ${t.seriesName}: ${(o=t.value)!=null?o:"--"} mm</div>`}),d}},legend:{show:a.showLegend,type:"scroll",top:10,textStyle:{color:a.textColor}},grid:{top:60,left:60,right:40,bottom:a.showDataZoom?80:40},xAxis:{type:"category",data:l,axisLabel:{interval:"auto",rotate:15,fontSize:10,color:a.textColor}},yAxis:{type:"value",name:this.yAxisLabel||"宽度累计变化量(mm)",nameTextStyle:{color:a.textColor},axisLabel:{color:a.textColor},splitLine:{lineStyle:{type:"dashed",opacity:.5}}},dataZoom:a.showDataZoom?[{type:"inside"},{type:"slider",bottom:10,height:15}]:[],series:p}}generateTimeLabels(){return[]}getEvolutionData(e,r){if(this.props.mode==="edit"){const c=[];for(let p=30;p>=0;p--)c.push(N.dayjs().subtract(p,"day").format("MM-DD"));const g=.1,l=.02+Math.random()*.03;return Array.from({length:c.length},(p,m)=>{const s=g+l*m;return parseFloat(s.toFixed(2))})}return(y.value.get(e)||[]).map(c=>c.value)}setSocketData(e){if(!e)return;const r=e.object_id||e.objectId||"";if(r&&D.value.length>0&&!D.value.includes(r))return;super.setSocketData(e);const{data:a,common:c}=this.props.conf,g=N.dayjs().format("MM-DD HH:mm:ss"),l=D.value.length>1;a.forEach((m,s)=>{const d=l&&r?r:c.multiObject?this.resolveObjectId(m):this.currentObjectId||this.resolveObjectId();if(!d)return;if(m.fvDeviceName){const o=this.extractDataValue(e,m.fvDeviceName);o?C.value.set(d,String(o)):e.data&&e.data[m.fvDeviceName]&&C.value.set(d,String(e.data[m.fvDeviceName]))}let t=m.value;if((!t||t==="--")&&(t=this.extractDataValue(e,m.fv)),t!=null&&t!=="--"){const o=`${d}-${m.name||m.fv||"default"}`,v=y.value.get(o)||[],f=typeof t=="number"?t:parseFloat(t);if(isNaN(f))return;v.push({time:g,value:f}),v.length>200&&v.shift(),y.value.set(o,v)}});const p=this.getChartInstance();p&&p.setOption(this.getChartOption())}}const i=new k(n,"evolutionChart");i.setYAxisLabel(h("component.crack.widthCumulativeChangeUnit")),i.setupLifecycle();const S=i.getStyle(),Z=i.getEchartId();let $=null,x=!1;const T=j=>V(null,null,function*(){var t;const{payload:e}=j;if(!e)return;e.dateRange&&Array.isArray(e.dateRange)&&e.dateRange.length===2&&($={start_time:e.dateRange[0],end_time:e.dateRange[1]});const r=e.objectIds&&e.objectIds.length>0?e.objectIds:e.objectId||e.object_id?[e.objectId||e.object_id]:[];if(!r.length||n.mode!=="preview")return;x=!0;const a=++O;D.value=r,i.setCurrentObjectId([...r].sort().join(",")),y.value.clear(),C.value.clear();const c=(t=i.session)==null?void 0:t.value;if(!c){x=!1;return}const g=n.conf.id;c.componentRequests&&c.componentRequests.delete(g),typeof c.unsubscribeComponent=="function"&&c.unsubscribeComponent(g);const{data:l,common:p}=n.conf;$&&(p.historyTimeRange=$),n.conf.options||(n.conf.options={});const m=n.conf.options.points,s=Object.prototype.hasOwnProperty.call(n.conf.options,"points");(!m||Number(m)<24)&&(n.conf.options.points=24);for(const o of r){if(O!==a){x=!1;return}Array.isArray(l)&&l.forEach(f=>{f.object_id=o}),p.multiObject||(p.object_id=o);try{const f=yield Promise.resolve().then(()=>require("./history-xZTq1lUB.cjs")),w=yield new f.default().getHistoryData(n,"evolutionChart");if(O!==a){x=!1;return}const R=(w==null?void 0:w.history)||(Array.isArray(w)?w:[]);R.length>0&&l.forEach((_,X)=>{if(!_.fv)return;const q=`${o}-${_.name||_.fv||"default"}`,P=R[X];if(!Array.isArray(P)){y.value.set(q,[]);return}const ee=[...P].sort((I,E)=>new Date(I.time||I.datetime||"").getTime()-new Date(E.time||E.datetime||"").getTime()),H=[];ee.forEach(I=>{const E=I.time||I.datetime,U=I[_.fv];if(E&&U!=null){const F=parseFloat(U);isNaN(F)||H.push({time:N.dayjs(E).format("MM-DD HH:mm:ss"),value:F})}_.fvDeviceName&&I[_.fvDeviceName]&&C.value.set(o,String(I[_.fvDeviceName]))}),y.value.set(q,H)})}catch(f){console.warn("[裂缝演变图] 历史数据获取失败:",f)}if(O!==a){x=!1;return}const v=i.getSource();i.subscribeBySource(v,o),l&&Array.isArray(l)&&l.forEach(f=>{const A=`${o}-${f.name||f.fv||"default"}`;y.value.has(A)||y.value.set(A,[])})}if(s?n.conf.options.points=m:delete n.conf.options.points,x=!1,O!==a)return;const d=i.getChartInstance();d&&d.setOption(i.getChartOption(),!0),c.registerComponent({id:g,request:null,onUpdate:(o,v)=>{O===a&&o==="realtime"&&i.setSocketData(v)}})}),G=u.computed(()=>({background:S.value.bgColor,color:S.value.textColor})),J=u.computed(()=>h("component.crack.evolutionChart")),K=u.computed(()=>h("component.crack.exportImage"));u.watch(()=>h("component.crack.widthCumulativeChangeUnit"),j=>{i.setYAxisLabel(j),i.init()});const Q=()=>{const j=i.getChartInstance();if(!j)return;const e=document.createElement("a");e.href=j.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`${h("component.crack.evolutionChart")}_${N.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()};return(j,e)=>{const r=ce.ElButton;return u.openBlock(),u.createElementBlock("div",{class:"mix-component crack-evolution",style:u.normalizeStyle(G.value)},[u.createElementVNode("div",le,[u.createElementVNode("span",ue,"📊 "+u.toDisplayString(J.value),1),u.createElementVNode("div",de,[u.createVNode(r,{size:"small",onClick:Q},{default:u.withCtx(()=>[u.createTextVNode("💾 "+u.toDisplayString(K.value),1)]),_:1})])]),u.createElementVNode("div",{id:u.unref(Z),class:"chart-container"},null,8,he),u.renderSlot(j.$slots,"default",{},void 0,!0)],4)}}})),Oe=N._export_sfc(je,[["__scopeId","data-v-da6b39e5"]]);exports.default=Oe;
@@ -27,8 +27,8 @@ var S = (c, d, a) => new Promise((M, _) => {
27
27
  p((a = a.apply(c, d)).next());
28
28
  });
29
29
  import { defineComponent as fe, ref as h, getCurrentInstance as me, computed as G, onMounted as he, onBeforeUnmount as we, openBlock as i, createElementBlock as r, normalizeStyle as ye, unref as xe, createElementVNode as o, normalizeClass as J, toDisplayString as w, createCommentVNode as y, createStaticVNode as ge, Fragment as P, renderList as R, createTextVNode as K, renderSlot as Ve } from "vue";
30
- import { B as _e } from "./BaseComponent-CBagahPU.js";
31
- import { u as Ce, h as be, i as Le, a as Te, F as ke, _ as He } from "./index-DwPJu6XM.js";
30
+ import { B as _e } from "./BaseComponent-NnwLq7Cf.js";
31
+ import { u as Ce, i as be, j as Le, a as Te, F as ke, _ as He } from "./index-D5BukPPY.js";
32
32
  import { ElMessage as U } from "element-plus";
33
33
  import { A as Se, D as Ae } from "./ele-vdo-icon-DcWebTR5.js";
34
34
  const Ue = { class: "mix-body" }, Me = { class: "upload-content" }, Ee = { class: "upload-title" }, Fe = {
@@ -43,7 +43,7 @@ const Ue = { class: "mix-body" }, Me = { class: "upload-content" }, Ee = { class
43
43
  }, Oe = {
44
44
  key: 0,
45
45
  class: "file-controls"
46
- }, Pe = { class: "file-info" }, Re = { class: "file-details" }, Be = { class: "file-name" }, Ie = { class: "file-type" }, $e = { class: "control-buttons" }, je = { class: "viewer-content" }, Xe = {
46
+ }, Pe = { class: "file-info" }, Re = { class: "file-details" }, Be = { class: "file-name" }, je = { class: "file-type" }, Ie = { class: "control-buttons" }, $e = { class: "viewer-content" }, Xe = {
47
47
  key: 0,
48
48
  class: "pdf-viewer"
49
49
  }, Ze = ["src"], ze = {
@@ -127,7 +127,7 @@ const Ue = { class: "mix-body" }, Me = { class: "upload-content" }, Ee = { class
127
127
  }, te = () => {
128
128
  var t;
129
129
  (t = v.value) == null || t.click();
130
- }, I = (t) => S(null, null, function* () {
130
+ }, j = (t) => S(null, null, function* () {
131
131
  var g, O, k;
132
132
  const e = t.target, l = (g = e == null ? void 0 : e.files) == null ? void 0 : g[0];
133
133
  if (!l) return;
@@ -172,9 +172,9 @@ const Ue = { class: "mix-body" }, Me = { class: "upload-content" }, Ee = { class
172
172
  }), D = (t, e) => {
173
173
  var l;
174
174
  (l = a.conf) != null && l.options && (a.conf.options[t] || (a.conf.options[t] = { value: "", type: "string", label: "" }), a.conf.options[t].value = e);
175
- }, $ = (t) => {
175
+ }, I = (t) => {
176
176
  t.preventDefault(), t.stopPropagation();
177
- }, j = (t) => {
177
+ }, $ = (t) => {
178
178
  var s;
179
179
  t.preventDefault(), t.stopPropagation();
180
180
  const l = (s = t.dataTransfer) == null ? void 0 : s.files;
@@ -182,7 +182,7 @@ const Ue = { class: "mix-body" }, Me = { class: "upload-content" }, Ee = { class
182
182
  const f = l[0], g = F(f.name);
183
183
  if (["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt"].includes(g)) {
184
184
  const k = new DataTransfer();
185
- k.items.add(f), v.value && (v.value.files = k.files, I({ target: v.value }));
185
+ k.items.add(f), v.value && (v.value.files = k.files, j({ target: v.value }));
186
186
  } else
187
187
  U.warning("不支持的文件格式");
188
188
  }
@@ -225,13 +225,13 @@ const Ue = { class: "mix-body" }, Me = { class: "upload-content" }, Ee = { class
225
225
  var t, e;
226
226
  if (a.mode !== "preview") {
227
227
  const l = (e = (t = x == null ? void 0 : x.proxy) == null ? void 0 : t.$el) == null ? void 0 : e.querySelector(".upload-area");
228
- l && (l.addEventListener("dragover", $), l.addEventListener("drop", j));
228
+ l && (l.addEventListener("dragover", I), l.addEventListener("drop", $));
229
229
  }
230
230
  }), we(() => {
231
231
  var e, l;
232
232
  m && URL.revokeObjectURL(m);
233
233
  const t = (l = (e = x == null ? void 0 : x.proxy) == null ? void 0 : e.$el) == null ? void 0 : l.querySelector(".upload-area");
234
- t && (t.removeEventListener("dragover", $), t.removeEventListener("drop", j));
234
+ t && (t.removeEventListener("dragover", I), t.removeEventListener("drop", $));
235
235
  }), (t, e) => (i(), r("div", {
236
236
  class: "mix-component",
237
237
  style: ye({ borderRadius: `${xe(E).radiusSize}px` })
@@ -247,7 +247,7 @@ const Ue = { class: "mix-body" }, Me = { class: "upload-content" }, Ee = { class
247
247
  ref: v,
248
248
  type: "file",
249
249
  accept: Q,
250
- onChange: I,
250
+ onChange: j,
251
251
  style: { display: "none" }
252
252
  }, null, 544),
253
253
  o("div", Me, [
@@ -273,9 +273,9 @@ const Ue = { class: "mix-body" }, Me = { class: "upload-content" }, Ee = { class
273
273
  o("div", Pe, [
274
274
  o("div", Re, [
275
275
  o("span", Be, w(p.value || u.value), 1),
276
- o("span", Ie, w(n.value.toUpperCase()), 1)
276
+ o("span", je, w(n.value.toUpperCase()), 1)
277
277
  ]),
278
- o("div", $e, [
278
+ o("div", Ie, [
279
279
  u.value ? (i(), r("button", {
280
280
  key: 0,
281
281
  class: "control-btn",
@@ -308,7 +308,7 @@ const Ue = { class: "mix-body" }, Me = { class: "upload-content" }, Ee = { class
308
308
  ])
309
309
  ])
310
310
  ])) : y("", !0),
311
- o("div", je, [
311
+ o("div", $e, [
312
312
  n.value === "pdf" ? (i(), r("div", Xe, [
313
313
  o("iframe", {
314
314
  src: Y.value,
@@ -1 +1 @@
1
- "use strict";var te=Object.defineProperty,oe=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var ne=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var R=(r,c,a)=>c in r?te(r,c,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[c]=a,I=(r,c)=>{for(var a in c||(c={}))ne.call(c,a)&&R(r,a,c[a]);if(P)for(var a of P(c))ae.call(c,a)&&R(r,a,c[a]);return r},j=(r,c)=>oe(r,le(c));var B=(r,c,a)=>new Promise((S,y)=>{var T=s=>{try{d(a.next(s))}catch(p){y(p)}},i=s=>{try{d(a.throw(s))}catch(p){y(p)}},d=s=>s.done?S(s.value):Promise.resolve(s.value).then(T,i);d((a=a.apply(r,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),se=require("./BaseComponent-Chnv4fBT.cjs"),E=require("./index-DVqMfQVc.cjs"),_=require("element-plus"),$=require("./ele-vdo-icon-Bgp9gaT6.cjs"),re={class:"mix-body"},ce={class:"upload-content"},ie={class:"upload-title"},de={key:0,class:"upload-hint"},pe={key:1,class:"upload-formats"},ue={key:1,class:"viewer-container"},me={key:0,class:"file-controls"},ve={class:"file-info"},fe={class:"file-details"},Ve={class:"file-name"},Ee={class:"file-type"},ye={class:"control-buttons"},he={class:"viewer-content"},ke={key:0,class:"pdf-viewer"},we=["src"],ge={key:1,class:"word-viewer"},xe=["innerHTML"],Ne={key:1,class:"loading-content"},Be={key:2,class:"excel-viewer"},Ce={key:0,class:"excel-content"},_e={key:0,class:"sheet-tabs"},Se=["onClick"],Te={class:"excel-table-wrapper"},Le={class:"excel-table"},be={key:1,class:"loading-content"},He={key:3,class:"ppt-viewer"},Me={class:"ppt-fallback"},De={class:"file-name-display"},Ae={key:4,class:"text-viewer"},Ue={class:"text-content"},Fe={key:5,class:"unsupported-viewer"},Oe={class:"unsupported-content"},Pe={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},Re={DEFAULT_ICON:$.DEFAULT_ICON,ACTIVE_ICON:$.ACTIVE_ICON,NAME_CN:"文件查看器",NAME_EN:"File Viewer",ORDER:3,PLATFORM:["pc","screen","mobile"]},Ie={fileUrl:{value:"",type:"string",label:"component.fileViewer.fileUrl",placeholder:"component.fileViewer.uploadPlaceholder"},fileName:{value:"",type:"string",label:"component.fileViewer.fileName",placeholder:"component.fileViewer.uploadPlaceholder"},fileType:{value:"",type:"string",label:"component.fileViewer.fileType",placeholder:"component.fileViewer.autoDetect"},showToolbar:!0},je=[],$e=[],Xe=[],qe=null,ze={DEFAULT:Re,OPTIONS:Ie,DATA:je,PARAMS:$e,SOURCE:Xe,COMMON:qe},Ze=e.defineComponent(j(I({},ze),{__name:"fileViewer",props:{conf:{type:Object,required:!0},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const c=E.useCounterStore(),a=r;class S extends se.BaseComponent{extractStyles(){return{radiusSize:this.getOptionValue("radiusSize",0),showToolbar:this.getOptionValue("showToolbar",!0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),z()}}const y=new S(a,"fileViewer");y.setupLifecycle();const T=y.getStyle(),i=e.ref(""),d=e.ref(""),s=e.ref(""),p=e.ref(null),D=e.ref(!1),h=e.ref(""),X=".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt";let m="";const k=e.ref(""),w=e.ref([]),C=e.ref([]),g=e.ref(0),v=e.getCurrentInstance();e.computed(()=>["doc","docx","xls","xlsx","ppt","pptx"].includes(s.value));const q=e.computed(()=>s.value==="pdf"&&i.value?i.value:""),L=o=>{var t;return o&&((t=o.split(".").pop())==null?void 0:t.toLowerCase())||""},z=()=>{var o,t,l,n,u;(l=(t=(o=a.conf)==null?void 0:o.options)==null?void 0:t.fileUrl)!=null&&l.value&&(i.value=a.conf.options.fileUrl.value,d.value=((n=a.conf.options.fileName)==null?void 0:n.value)||"",s.value=((u=a.conf.options.fileType)==null?void 0:u.value)||L(d.value),s.value==="txt"&&G())},Z=()=>{var o;(o=p.value)==null||o.click()},A=o=>B(null,null,function*(){var f,M,x;const t=o.target,l=(f=t==null?void 0:t.files)==null?void 0:f[0];if(!l)return;const n=L(l.name);if(!["pdf","doc","docx","xls","xlsx","ppt","pptx","txt"].includes(n)){_.ElMessage.warning("不支持的文件格式,请选择 PDF、Office 文档或文本文件");return}d.value=l.name,s.value=n,m&&URL.revokeObjectURL(m),m=URL.createObjectURL(l),i.value=m,n==="txt"?W(l):n==="docx"||n==="doc"?yield K(l):(n==="xlsx"||n==="xls")&&(yield Q(l));try{D.value=!0;const V=yield E.fileToDataUrl(l),Y=E.getFileExtension(l.name),N=yield E.api.post("upload",{dashboard_uid:c.pageData.id,file_data:V,file_type:Y,user_id:((M=c.session.userInfo)==null?void 0:M.id)||""},!0);if(N.code===200&&((x=N.result)!=null&&x.relative_path)){const ee=E.FILE_URL+N.result.relative_path;b("fileUrl",ee),b("fileName",N.result.file_name||l.name),b("fileType",n),_.ElMessage.success("文件上传成功")}else throw new Error(N.msg||"上传失败")}catch(V){console.error("文件上传失败:",V),_.ElMessage.error("文件上传失败: "+((V==null?void 0:V.message)||"未知错误"))}finally{D.value=!1,p.value&&(p.value.value="")}}),W=o=>{const t=new FileReader;t.onload=l=>{var n;h.value=((n=l.target)==null?void 0:n.result)||"",i.value="text-content"},t.readAsText(o,"UTF-8")},G=()=>B(null,null,function*(){if(i.value&&s.value==="txt")try{const o=yield fetch(i.value);h.value=yield o.text()}catch(o){console.error("加载文本内容失败:",o),h.value="无法加载文本内容"}}),b=(o,t)=>{var l;(l=a.conf)!=null&&l.options&&(a.conf.options[o]||(a.conf.options[o]={value:"",type:"string",label:""}),a.conf.options[o].value=t)},U=o=>{o.preventDefault(),o.stopPropagation()},F=o=>{var n;o.preventDefault(),o.stopPropagation();const l=(n=o.dataTransfer)==null?void 0:n.files;if(l&&l.length>0){const u=l[0],f=L(u.name);if(["pdf","doc","docx","xls","xlsx","ppt","pptx","txt"].includes(f)){const x=new DataTransfer;x.items.add(u),p.value&&(p.value.files=x.files,A({target:p.value}))}else _.ElMessage.warning("不支持的文件格式")}},J=()=>{m&&URL.revokeObjectURL(m),i.value="",d.value="",s.value="",h.value="",m="",k.value="",w.value=[],C.value=[],g.value=0},O=o=>new Promise((t,l)=>{if(document.querySelector(`script[src="${o}"]`)){t();return}const n=document.createElement("script");n.src=o,n.onload=()=>t(),n.onerror=()=>l(new Error(`Failed to load script: ${o}`)),document.head.appendChild(n)}),K=o=>B(null,null,function*(){try{yield O("https://cdn.jsdelivr.net/npm/mammoth@1.6.0/mammoth.browser.min.js");const t=yield o.arrayBuffer(),l=yield window.mammoth.convertToHtml({arrayBuffer:t});k.value=l.value}catch(t){console.error("解析 Word 文档失败:",t),k.value='<p style="color: #ef4444; text-align: center;">文档解析失败,请下载后查看</p>'}}),Q=o=>B(null,null,function*(){try{yield O("https://cdn.jsdelivr.net/npm/xlsx@0.18.5/dist/xlsx.full.min.js");const t=yield o.arrayBuffer(),l=window.XLSX.read(t,{type:"array"});C.value=l.SheetNames,w.value=l.SheetNames.map(n=>{const u=l.Sheets[n];return window.XLSX.utils.sheet_to_json(u,{header:1,defval:""})}),g.value=0}catch(t){console.error("解析 Excel 文档失败:",t),w.value=[]}}),H=()=>{const o=m||(i.value!=="text-content"?i.value:"");if(o){const t=document.createElement("a");t.href=o,t.download=d.value||"download",document.body.appendChild(t),t.click(),document.body.removeChild(t)}};return e.onMounted(()=>{var o,t;if(a.mode!=="preview"){const l=(t=(o=v==null?void 0:v.proxy)==null?void 0:o.$el)==null?void 0:t.querySelector(".upload-area");l&&(l.addEventListener("dragover",U),l.addEventListener("drop",F))}}),e.onBeforeUnmount(()=>{var t,l;m&&URL.revokeObjectURL(m);const o=(l=(t=v==null?void 0:v.proxy)==null?void 0:t.$el)==null?void 0:l.querySelector(".upload-area");o&&(o.removeEventListener("dragover",U),o.removeEventListener("drop",F))}),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({borderRadius:`${e.unref(T).radiusSize}px`})},[e.createElementVNode("div",re,[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["upload-area",{"preview-mode":r.mode==="preview"}]),onClick:t[0]||(t[0]=l=>r.mode!=="preview"&&Z())},[e.createElementVNode("input",{ref_key:"fileInputRef",ref:p,type:"file",accept:X,onChange:A,style:{display:"none"}},null,544),e.createElementVNode("div",ce,[t[2]||(t[2]=e.createElementVNode("div",{class:"upload-icon"},[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"32",height:"32",fill:"currentColor"},[e.createElementVNode("path",{d:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z"})])],-1)),e.createElementVNode("h3",ie,e.toDisplayString(r.mode==="preview"?o.$t("component.fileViewer.noFile"):o.$t("component.fileViewer.uploadText")),1),r.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",de,e.toDisplayString(o.$t("component.fileViewer.uploadHint")),1)):e.createCommentVNode("",!0),r.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",pe,[...t[1]||(t[1]=[e.createStaticVNode('<span class="format-tag" data-v-2ac858de>PDF</span><span class="format-tag" data-v-2ac858de>DOC</span><span class="format-tag" data-v-2ac858de>DOCX</span><span class="format-tag" data-v-2ac858de>XLS</span><span class="format-tag" data-v-2ac858de>XLSX</span><span class="format-tag" data-v-2ac858de>PPT</span><span class="format-tag" data-v-2ac858de>PPTX</span><span class="format-tag" data-v-2ac858de>TXT</span>',8)])])):e.createCommentVNode("",!0)])],2)),i.value?(e.openBlock(),e.createElementBlock("div",ue,[r.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",me,[e.createElementVNode("div",ve,[e.createElementVNode("div",fe,[e.createElementVNode("span",Ve,e.toDisplayString(d.value||i.value),1),e.createElementVNode("span",Ee,e.toDisplayString(s.value.toUpperCase()),1)]),e.createElementVNode("div",ye,[i.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"control-btn",onClick:H,title:"下载文件"},[...t[3]||(t[3]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"})],-1)])])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"control-btn",onClick:J,title:"更换文件"},[...t[4]||(t[4]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",he,[s.value==="pdf"?(e.openBlock(),e.createElementBlock("div",ke,[e.createElementVNode("iframe",{src:q.value,class:"pdf-frame",frameborder:"0"},null,8,we)])):s.value==="docx"||s.value==="doc"?(e.openBlock(),e.createElementBlock("div",ge,[k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"docx-content",innerHTML:k.value},null,8,xe)):(e.openBlock(),e.createElementBlock("div",Ne,[...t[5]||(t[5]=[e.createElementVNode("div",{class:"loading-spinner"},null,-1),e.createElementVNode("p",null,"正在解析文档...",-1)])]))])):s.value==="xlsx"||s.value==="xls"?(e.openBlock(),e.createElementBlock("div",Be,[w.value.length>0?(e.openBlock(),e.createElementBlock("div",Ce,[C.value.length>1?(e.openBlock(),e.createElementBlock("div",_e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,n)=>(e.openBlock(),e.createElementBlock("button",{key:n,class:e.normalizeClass(["sheet-tab",{active:g.value===n}]),onClick:u=>g.value=n},e.toDisplayString(l),11,Se))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",Te,[e.createElementVNode("table",Le,[e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value[g.value],(l,n)=>(e.openBlock(),e.createElementBlock("tr",{key:n},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l,(u,f)=>(e.openBlock(),e.createElementBlock("td",{key:f},e.toDisplayString(u),1))),128))]))),128))])])])])):(e.openBlock(),e.createElementBlock("div",be,[...t[6]||(t[6]=[e.createElementVNode("div",{class:"loading-spinner"},null,-1),e.createElementVNode("p",null,"正在解析表格...",-1)])]))])):s.value==="pptx"||s.value==="ppt"?(e.openBlock(),e.createElementBlock("div",He,[e.createElementVNode("div",Me,[t[8]||(t[8]=e.createElementVNode("div",{class:"fallback-icon"},[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"64",height:"64",fill:"currentColor"},[e.createElementVNode("path",{d:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M8,12H16V14H8V12M8,16H13V18H8V16"})])],-1)),t[9]||(t[9]=e.createElementVNode("h3",null,"PowerPoint 演示文稿",-1)),e.createElementVNode("p",De,e.toDisplayString(d.value),1),t[10]||(t[10]=e.createElementVNode("p",{class:"ppt-tip"},"PPT 格式暂不支持在线预览,请下载后查看",-1)),e.createElementVNode("button",{class:"download-btn",onClick:H},[...t[7]||(t[7]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"})],-1),e.createTextVNode(" 下载文件 ",-1)])])])])):s.value==="txt"?(e.openBlock(),e.createElementBlock("div",Ae,[e.createElementVNode("pre",Ue,e.toDisplayString(h.value),1)])):(e.openBlock(),e.createElementBlock("div",Fe,[e.createElementVNode("div",Oe,[(e.openBlock(),e.createElementBlock("svg",Pe,[...t[11]||(t[11]=[e.createElementVNode("path",{d:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z"},null,-1)])])),t[13]||(t[13]=e.createElementVNode("h3",null,"无法预览此文件",-1)),e.createElementVNode("p",null,e.toDisplayString(s.value.toUpperCase())+" 格式暂不支持在线预览",1),e.createElementVNode("button",{class:"download-btn",onClick:H},[...t[12]||(t[12]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"})],-1),e.createTextVNode(" 下载文件 ",-1)])])])]))])])):e.createCommentVNode("",!0)]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4))}})),We=E._export_sfc(Ze,[["__scopeId","data-v-2ac858de"]]);exports.default=We;
1
+ "use strict";var te=Object.defineProperty,oe=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var ne=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var R=(r,c,a)=>c in r?te(r,c,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[c]=a,I=(r,c)=>{for(var a in c||(c={}))ne.call(c,a)&&R(r,a,c[a]);if(P)for(var a of P(c))ae.call(c,a)&&R(r,a,c[a]);return r},j=(r,c)=>oe(r,le(c));var B=(r,c,a)=>new Promise((S,y)=>{var T=s=>{try{d(a.next(s))}catch(p){y(p)}},i=s=>{try{d(a.throw(s))}catch(p){y(p)}},d=s=>s.done?S(s.value):Promise.resolve(s.value).then(T,i);d((a=a.apply(r,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),se=require("./BaseComponent-CaCkjmmb.cjs"),E=require("./index-BzWbqJIl.cjs"),_=require("element-plus"),$=require("./ele-vdo-icon-Bgp9gaT6.cjs"),re={class:"mix-body"},ce={class:"upload-content"},ie={class:"upload-title"},de={key:0,class:"upload-hint"},pe={key:1,class:"upload-formats"},ue={key:1,class:"viewer-container"},me={key:0,class:"file-controls"},ve={class:"file-info"},fe={class:"file-details"},Ve={class:"file-name"},Ee={class:"file-type"},ye={class:"control-buttons"},he={class:"viewer-content"},ke={key:0,class:"pdf-viewer"},we=["src"],ge={key:1,class:"word-viewer"},xe=["innerHTML"],Ne={key:1,class:"loading-content"},Be={key:2,class:"excel-viewer"},Ce={key:0,class:"excel-content"},_e={key:0,class:"sheet-tabs"},Se=["onClick"],Te={class:"excel-table-wrapper"},Le={class:"excel-table"},be={key:1,class:"loading-content"},He={key:3,class:"ppt-viewer"},Me={class:"ppt-fallback"},De={class:"file-name-display"},Ae={key:4,class:"text-viewer"},Ue={class:"text-content"},Fe={key:5,class:"unsupported-viewer"},Oe={class:"unsupported-content"},Pe={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},Re={DEFAULT_ICON:$.DEFAULT_ICON,ACTIVE_ICON:$.ACTIVE_ICON,NAME_CN:"文件查看器",NAME_EN:"File Viewer",ORDER:3,PLATFORM:["pc","screen","mobile"]},Ie={fileUrl:{value:"",type:"string",label:"component.fileViewer.fileUrl",placeholder:"component.fileViewer.uploadPlaceholder"},fileName:{value:"",type:"string",label:"component.fileViewer.fileName",placeholder:"component.fileViewer.uploadPlaceholder"},fileType:{value:"",type:"string",label:"component.fileViewer.fileType",placeholder:"component.fileViewer.autoDetect"},showToolbar:!0},je=[],$e=[],Xe=[],qe=null,ze={DEFAULT:Re,OPTIONS:Ie,DATA:je,PARAMS:$e,SOURCE:Xe,COMMON:qe},Ze=e.defineComponent(j(I({},ze),{__name:"fileViewer",props:{conf:{type:Object,required:!0},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const c=E.useCounterStore(),a=r;class S extends se.BaseComponent{extractStyles(){return{radiusSize:this.getOptionValue("radiusSize",0),showToolbar:this.getOptionValue("showToolbar",!0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),z()}}const y=new S(a,"fileViewer");y.setupLifecycle();const T=y.getStyle(),i=e.ref(""),d=e.ref(""),s=e.ref(""),p=e.ref(null),D=e.ref(!1),h=e.ref(""),X=".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt";let m="";const k=e.ref(""),w=e.ref([]),C=e.ref([]),g=e.ref(0),v=e.getCurrentInstance();e.computed(()=>["doc","docx","xls","xlsx","ppt","pptx"].includes(s.value));const q=e.computed(()=>s.value==="pdf"&&i.value?i.value:""),L=o=>{var t;return o&&((t=o.split(".").pop())==null?void 0:t.toLowerCase())||""},z=()=>{var o,t,l,n,u;(l=(t=(o=a.conf)==null?void 0:o.options)==null?void 0:t.fileUrl)!=null&&l.value&&(i.value=a.conf.options.fileUrl.value,d.value=((n=a.conf.options.fileName)==null?void 0:n.value)||"",s.value=((u=a.conf.options.fileType)==null?void 0:u.value)||L(d.value),s.value==="txt"&&G())},Z=()=>{var o;(o=p.value)==null||o.click()},A=o=>B(null,null,function*(){var f,M,x;const t=o.target,l=(f=t==null?void 0:t.files)==null?void 0:f[0];if(!l)return;const n=L(l.name);if(!["pdf","doc","docx","xls","xlsx","ppt","pptx","txt"].includes(n)){_.ElMessage.warning("不支持的文件格式,请选择 PDF、Office 文档或文本文件");return}d.value=l.name,s.value=n,m&&URL.revokeObjectURL(m),m=URL.createObjectURL(l),i.value=m,n==="txt"?W(l):n==="docx"||n==="doc"?yield K(l):(n==="xlsx"||n==="xls")&&(yield Q(l));try{D.value=!0;const V=yield E.fileToDataUrl(l),Y=E.getFileExtension(l.name),N=yield E.api.post("upload",{dashboard_uid:c.pageData.id,file_data:V,file_type:Y,user_id:((M=c.session.userInfo)==null?void 0:M.id)||""},!0);if(N.code===200&&((x=N.result)!=null&&x.relative_path)){const ee=E.FILE_URL+N.result.relative_path;b("fileUrl",ee),b("fileName",N.result.file_name||l.name),b("fileType",n),_.ElMessage.success("文件上传成功")}else throw new Error(N.msg||"上传失败")}catch(V){console.error("文件上传失败:",V),_.ElMessage.error("文件上传失败: "+((V==null?void 0:V.message)||"未知错误"))}finally{D.value=!1,p.value&&(p.value.value="")}}),W=o=>{const t=new FileReader;t.onload=l=>{var n;h.value=((n=l.target)==null?void 0:n.result)||"",i.value="text-content"},t.readAsText(o,"UTF-8")},G=()=>B(null,null,function*(){if(i.value&&s.value==="txt")try{const o=yield fetch(i.value);h.value=yield o.text()}catch(o){console.error("加载文本内容失败:",o),h.value="无法加载文本内容"}}),b=(o,t)=>{var l;(l=a.conf)!=null&&l.options&&(a.conf.options[o]||(a.conf.options[o]={value:"",type:"string",label:""}),a.conf.options[o].value=t)},U=o=>{o.preventDefault(),o.stopPropagation()},F=o=>{var n;o.preventDefault(),o.stopPropagation();const l=(n=o.dataTransfer)==null?void 0:n.files;if(l&&l.length>0){const u=l[0],f=L(u.name);if(["pdf","doc","docx","xls","xlsx","ppt","pptx","txt"].includes(f)){const x=new DataTransfer;x.items.add(u),p.value&&(p.value.files=x.files,A({target:p.value}))}else _.ElMessage.warning("不支持的文件格式")}},J=()=>{m&&URL.revokeObjectURL(m),i.value="",d.value="",s.value="",h.value="",m="",k.value="",w.value=[],C.value=[],g.value=0},O=o=>new Promise((t,l)=>{if(document.querySelector(`script[src="${o}"]`)){t();return}const n=document.createElement("script");n.src=o,n.onload=()=>t(),n.onerror=()=>l(new Error(`Failed to load script: ${o}`)),document.head.appendChild(n)}),K=o=>B(null,null,function*(){try{yield O("https://cdn.jsdelivr.net/npm/mammoth@1.6.0/mammoth.browser.min.js");const t=yield o.arrayBuffer(),l=yield window.mammoth.convertToHtml({arrayBuffer:t});k.value=l.value}catch(t){console.error("解析 Word 文档失败:",t),k.value='<p style="color: #ef4444; text-align: center;">文档解析失败,请下载后查看</p>'}}),Q=o=>B(null,null,function*(){try{yield O("https://cdn.jsdelivr.net/npm/xlsx@0.18.5/dist/xlsx.full.min.js");const t=yield o.arrayBuffer(),l=window.XLSX.read(t,{type:"array"});C.value=l.SheetNames,w.value=l.SheetNames.map(n=>{const u=l.Sheets[n];return window.XLSX.utils.sheet_to_json(u,{header:1,defval:""})}),g.value=0}catch(t){console.error("解析 Excel 文档失败:",t),w.value=[]}}),H=()=>{const o=m||(i.value!=="text-content"?i.value:"");if(o){const t=document.createElement("a");t.href=o,t.download=d.value||"download",document.body.appendChild(t),t.click(),document.body.removeChild(t)}};return e.onMounted(()=>{var o,t;if(a.mode!=="preview"){const l=(t=(o=v==null?void 0:v.proxy)==null?void 0:o.$el)==null?void 0:t.querySelector(".upload-area");l&&(l.addEventListener("dragover",U),l.addEventListener("drop",F))}}),e.onBeforeUnmount(()=>{var t,l;m&&URL.revokeObjectURL(m);const o=(l=(t=v==null?void 0:v.proxy)==null?void 0:t.$el)==null?void 0:l.querySelector(".upload-area");o&&(o.removeEventListener("dragover",U),o.removeEventListener("drop",F))}),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({borderRadius:`${e.unref(T).radiusSize}px`})},[e.createElementVNode("div",re,[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["upload-area",{"preview-mode":r.mode==="preview"}]),onClick:t[0]||(t[0]=l=>r.mode!=="preview"&&Z())},[e.createElementVNode("input",{ref_key:"fileInputRef",ref:p,type:"file",accept:X,onChange:A,style:{display:"none"}},null,544),e.createElementVNode("div",ce,[t[2]||(t[2]=e.createElementVNode("div",{class:"upload-icon"},[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"32",height:"32",fill:"currentColor"},[e.createElementVNode("path",{d:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z"})])],-1)),e.createElementVNode("h3",ie,e.toDisplayString(r.mode==="preview"?o.$t("component.fileViewer.noFile"):o.$t("component.fileViewer.uploadText")),1),r.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",de,e.toDisplayString(o.$t("component.fileViewer.uploadHint")),1)):e.createCommentVNode("",!0),r.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",pe,[...t[1]||(t[1]=[e.createStaticVNode('<span class="format-tag" data-v-2ac858de>PDF</span><span class="format-tag" data-v-2ac858de>DOC</span><span class="format-tag" data-v-2ac858de>DOCX</span><span class="format-tag" data-v-2ac858de>XLS</span><span class="format-tag" data-v-2ac858de>XLSX</span><span class="format-tag" data-v-2ac858de>PPT</span><span class="format-tag" data-v-2ac858de>PPTX</span><span class="format-tag" data-v-2ac858de>TXT</span>',8)])])):e.createCommentVNode("",!0)])],2)),i.value?(e.openBlock(),e.createElementBlock("div",ue,[r.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",me,[e.createElementVNode("div",ve,[e.createElementVNode("div",fe,[e.createElementVNode("span",Ve,e.toDisplayString(d.value||i.value),1),e.createElementVNode("span",Ee,e.toDisplayString(s.value.toUpperCase()),1)]),e.createElementVNode("div",ye,[i.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"control-btn",onClick:H,title:"下载文件"},[...t[3]||(t[3]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"})],-1)])])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"control-btn",onClick:J,title:"更换文件"},[...t[4]||(t[4]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",he,[s.value==="pdf"?(e.openBlock(),e.createElementBlock("div",ke,[e.createElementVNode("iframe",{src:q.value,class:"pdf-frame",frameborder:"0"},null,8,we)])):s.value==="docx"||s.value==="doc"?(e.openBlock(),e.createElementBlock("div",ge,[k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"docx-content",innerHTML:k.value},null,8,xe)):(e.openBlock(),e.createElementBlock("div",Ne,[...t[5]||(t[5]=[e.createElementVNode("div",{class:"loading-spinner"},null,-1),e.createElementVNode("p",null,"正在解析文档...",-1)])]))])):s.value==="xlsx"||s.value==="xls"?(e.openBlock(),e.createElementBlock("div",Be,[w.value.length>0?(e.openBlock(),e.createElementBlock("div",Ce,[C.value.length>1?(e.openBlock(),e.createElementBlock("div",_e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,n)=>(e.openBlock(),e.createElementBlock("button",{key:n,class:e.normalizeClass(["sheet-tab",{active:g.value===n}]),onClick:u=>g.value=n},e.toDisplayString(l),11,Se))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",Te,[e.createElementVNode("table",Le,[e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value[g.value],(l,n)=>(e.openBlock(),e.createElementBlock("tr",{key:n},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l,(u,f)=>(e.openBlock(),e.createElementBlock("td",{key:f},e.toDisplayString(u),1))),128))]))),128))])])])])):(e.openBlock(),e.createElementBlock("div",be,[...t[6]||(t[6]=[e.createElementVNode("div",{class:"loading-spinner"},null,-1),e.createElementVNode("p",null,"正在解析表格...",-1)])]))])):s.value==="pptx"||s.value==="ppt"?(e.openBlock(),e.createElementBlock("div",He,[e.createElementVNode("div",Me,[t[8]||(t[8]=e.createElementVNode("div",{class:"fallback-icon"},[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"64",height:"64",fill:"currentColor"},[e.createElementVNode("path",{d:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M8,12H16V14H8V12M8,16H13V18H8V16"})])],-1)),t[9]||(t[9]=e.createElementVNode("h3",null,"PowerPoint 演示文稿",-1)),e.createElementVNode("p",De,e.toDisplayString(d.value),1),t[10]||(t[10]=e.createElementVNode("p",{class:"ppt-tip"},"PPT 格式暂不支持在线预览,请下载后查看",-1)),e.createElementVNode("button",{class:"download-btn",onClick:H},[...t[7]||(t[7]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"})],-1),e.createTextVNode(" 下载文件 ",-1)])])])])):s.value==="txt"?(e.openBlock(),e.createElementBlock("div",Ae,[e.createElementVNode("pre",Ue,e.toDisplayString(h.value),1)])):(e.openBlock(),e.createElementBlock("div",Fe,[e.createElementVNode("div",Oe,[(e.openBlock(),e.createElementBlock("svg",Pe,[...t[11]||(t[11]=[e.createElementVNode("path",{d:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z"},null,-1)])])),t[13]||(t[13]=e.createElementVNode("h3",null,"无法预览此文件",-1)),e.createElementVNode("p",null,e.toDisplayString(s.value.toUpperCase())+" 格式暂不支持在线预览",1),e.createElementVNode("button",{class:"download-btn",onClick:H},[...t[12]||(t[12]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"})],-1),e.createTextVNode(" 下载文件 ",-1)])])])]))])])):e.createCommentVNode("",!0)]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4))}})),We=E._export_sfc(Ze,[["__scopeId","data-v-2ac858de"]]);exports.default=We;
@@ -21,8 +21,8 @@ import "element-plus/es/components/select/style/css";
21
21
  import "element-plus/es/components/option/style/css";
22
22
  import { defineComponent as ke, ref as d, computed as f, onMounted as he, onBeforeUnmount as we, openBlock as c, createElementBlock as b, normalizeStyle as F, createElementVNode as s, createVNode as i, withCtx as p, Fragment as U, renderList as K, createBlock as P, normalizeClass as _e, unref as Ye, Teleport as De, withDirectives as Me, withModifiers as W, createTextVNode as C, toDisplayString as G, createCommentVNode as q, vShow as xe, renderSlot as Se } from "vue";
23
23
  import { ArrowDown as Ae } from "@element-plus/icons-vue";
24
- import { B as Ve } from "./BaseComponent-CBagahPU.js";
25
- import { d as Ee, _ as Oe } from "./index-DwPJu6XM.js";
24
+ import { B as Ve } from "./BaseComponent-NnwLq7Cf.js";
25
+ import { d as Ee, _ as Oe } from "./index-D5BukPPY.js";
26
26
  import { A as Re, D as Te } from "./ele-vlu-icon-Bg6EHZdJ.js";
27
27
  const He = { class: "filter-left-group" }, Be = { class: "filter-item" }, je = { class: "filter-item" }, Ie = ["onClick"], Ne = { class: "item-label" }, ze = {
28
28
  key: 0,
@@ -1 +1 @@
1
- "use strict";var J=Object.defineProperty,X=Object.defineProperties;var Z=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var O=(s,a,r)=>a in s?J(s,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[a]=r,R=(s,a)=>{for(var r in a||(a={}))ee.call(a,r)&&O(s,r,a[r]);if(A)for(var r of A(a))te.call(a,r)&&O(s,r,a[r]);return s},H=(s,a)=>X(s,Z(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),le=require("@element-plus/icons-vue"),oe=require("./BaseComponent-Chnv4fBT.cjs"),j=require("./index-DVqMfQVc.cjs"),I=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),ne={class:"filter-left-group"},ae={class:"filter-item"},re={class:"filter-item"},ie=["onClick"],se={class:"item-label"},ue={key:0,class:"item-region"},de={key:0,class:"monitor-dropdown-empty"},ce={class:"filter-item time-range"},me={DEFAULT_ICON:I.DEFAULT_ICON,ACTIVE_ICON:I.ACTIVE_ICON,NAME_CN:"筛选条件栏",NAME_EN:"FilterBar",ORDER:4,PLATFORM:["pc","screen"]},pe={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},borderColor:{value:"#e8ecef",type:"color",label:"边框颜色"},padding:{value:15,type:"number",label:"component.options.padding"},defaultQuickTime:{value:"today",type:"select",label:"默认快捷时间",options:[{label:"一天内",value:"today"},{label:"一周内",value:"week"},{label:"一个月内",value:"month"},{label:"一年内",value:"year"},{label:"无",value:""}]},linkChannel:{value:"crack",type:"select",label:"component.linkChannel",options:[{label:"裂缝监测",value:"crack"},{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"深部位移",value:"deepDisplacement"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},ve=[{name:"CRACK4",fv:"",object_id:"",region:"中央区"},{name:"CRACK15",fv:"",object_id:"",region:"北帮"},{name:"CRACK26",fv:"",object_id:"",region:"南帮"},{name:"CRACK37",fv:"",object_id:"",region:"西帮"},{name:"CRACK48",fv:"",object_id:"",region:"东帮"}],fe=["name","fv","object_id","region"],ye=[],ge={useAlias:!1,multiObject:!0,source:"mosaic"},Ce=50,be={DEFAULT:me,OPTIONS:pe,DATA:ve,PARAMS:fe,SOURCE:ye,ITEMS:Ce,COMMON:ge},ke=e.defineComponent(H(R({},be),{__name:"filterBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(s){const a=s,r=e.ref(""),i=e.ref([]),d=e.ref(""),y=e.ref(""),u=e.ref("today"),m=e.ref(!1),g=e.ref(null),V=e.ref(null),h=e.ref({}),p=e.computed(()=>{const l=a.conf.data;return!l||!Array.isArray(l)?[]:l.filter(t=>t.name)}),q=e.computed(()=>{const l=new Set;return p.value.forEach(t=>{t.region&&l.add(t.region)}),Array.from(l)}),v=e.computed(()=>r.value?p.value.filter(l=>l.region===r.value):p.value),w=e.computed(()=>i.value.length===0?"":i.value.join("、")),N=e.computed(()=>{const l=v.value;return l.length>0&&l.every(t=>i.value.includes(t.name))}),z=e.computed(()=>{const l=v.value,t=l.filter(n=>i.value.includes(n.name)).length;return t>0&&t<l.length});class L extends oe.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#ffffff"),textColor:this.getOptionValue("textColor","#333333"),borderColor:this.getOptionValue("borderColor","#e8ecef"),padding:this.getOptionValue("padding",15),linkChannel:this.getOptionValue("linkChannel","crack"),defaultQuickTime:this.getOptionValue("defaultQuickTime","today")}}init(){this.Style.value=this.extractStyles(),this.applyTheme();const t=this.Style.value.defaultQuickTime||"today";u.value=t,Y(t),this.props.mode==="preview"&&p.value.length>0&&i.value.length===0&&(i.value=[p.value[0].name],S())}setSocketData(t){}}const k=new L(a,"filterBar");k.setupLifecycle();const C=k.getStyle(),$=e.computed(()=>({background:C.value.bgColor,color:C.value.textColor,padding:`${C.value.padding}px 25px`,borderBottom:`1px solid ${C.value.borderColor}`})),x=()=>{m.value=!m.value,m.value&&F()};function F(){if(!g.value)return;const l=g.value.getBoundingClientRect();h.value={position:"fixed",top:`${l.bottom+4}px`,left:`${l.left}px`,zIndex:"9999"}}const E=l=>{const t=g.value,n=V.value;t&&!t.contains(l.target)&&n&&!n.contains(l.target)&&(m.value=!1)};e.onMounted(()=>{document.addEventListener("click",E)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",E)});const _=()=>{const l=v.value;if(N.value){const t=l.map(n=>n.name);i.value=i.value.filter(n=>!t.includes(n))}else{const t=new Set(i.value);l.forEach(n=>t.add(n.name)),i.value=Array.from(t)}},M=l=>{const t=i.value.indexOf(l.name);t>-1?i.value.splice(t,1):i.value.push(l.name)},Q=()=>{};function Y(l){const t=j.dayjs();switch(y.value=t.format("YYYY/MM/DD HH:mm"),l){case"today":d.value=t.subtract(1,"day").format("YYYY/MM/DD HH:mm");break;case"week":d.value=t.subtract(7,"day").format("YYYY/MM/DD HH:mm");break;case"month":d.value=t.subtract(1,"month").format("YYYY/MM/DD HH:mm");break;case"year":d.value=t.subtract(1,"year").format("YYYY/MM/DD HH:mm");break}}const b=l=>{u.value=l,Y(l)},D=()=>{u.value=""},S=()=>{if(a.mode!=="preview")return;const l=p.value.filter(n=>i.value.includes(n.name)),t=[...new Set(l.map(n=>n.object_id).filter(Boolean))];k.publish({type:"filter",region:r.value,selectedMonitors:i.value,objectId:t.length===1?t[0]:t[0]||"",objectIds:t,timeRange:u.value||"custom",dateRange:[d.value,y.value]})},U=()=>{S()};return(l,t)=>{const n=c.ElOption,P=c.ElSelect,K=c.ElIcon,W=c.ElInput,B=c.ElCheckbox,f=c.ElButton,T=c.ElDatePicker;return e.openBlock(),e.createElementBlock("div",{class:"mix-component crack-filter-bar",style:e.normalizeStyle($.value)},[e.createElementVNode("div",ne,[e.createElementVNode("div",ae,[t[8]||(t[8]=e.createElementVNode("span",{class:"filter-label"},"区域位置:",-1)),e.createVNode(P,{modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=o=>r.value=o),placeholder:"全部区域",size:"default",style:{width:"120px"},onChange:Q},{default:e.withCtx(()=>[e.createVNode(n,{label:"全部区域",value:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,o=>(e.openBlock(),e.createBlock(n,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",re,[t[10]||(t[10]=e.createElementVNode("span",{class:"filter-label"},"监测点:",-1)),e.createElementVNode("div",{class:"monitor-select-wrapper",ref_key:"monitorWrapperRef",ref:g},[e.createVNode(W,{modelValue:w.value,"onUpdate:modelValue":t[1]||(t[1]=o=>w.value=o),placeholder:"输入编号(如11)或选择",size:"default",style:{width:"180px"},readonly:"",onClick:x,onFocus:x},{suffix:e.withCtx(()=>[e.createVNode(K,{class:e.normalizeClass(["dropdown-arrow",{"is-open":m.value}])},{default:e.withCtx(()=>[e.createVNode(e.unref(le.ArrowDown))]),_:1},8,["class"])]),_:1},8,["modelValue"]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.withDirectives(e.createElementVNode("div",{class:"monitor-dropdown",style:e.normalizeStyle(h.value),ref_key:"dropdownRef",ref:V},[e.createElementVNode("div",{class:"monitor-dropdown-item",onClick:e.withModifiers(_,["stop"])},[e.createVNode(B,{"model-value":N.value,indeterminate:z.value,onChange:_},null,8,["model-value","indeterminate"]),t[9]||(t[9]=e.createElementVNode("span",{class:"item-label",style:{"font-weight":"bold"}},"全选",-1))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,o=>(e.openBlock(),e.createElementBlock("div",{key:o.name,class:"monitor-dropdown-item",onClick:e.withModifiers(G=>M(o),["stop"])},[e.createVNode(B,{"model-value":i.value.includes(o.name),onChange:G=>M(o)},null,8,["model-value","onChange"]),e.createElementVNode("span",se,[e.createTextVNode(e.toDisplayString(o.name)+" ",1),o.region?(e.openBlock(),e.createElementBlock("span",ue,"("+e.toDisplayString(o.region)+")",1)):e.createCommentVNode("",!0)])],8,ie))),128)),v.value.length===0?(e.openBlock(),e.createElementBlock("div",de," 暂无监测点,请在右侧数据面板配置 ")):e.createCommentVNode("",!0)],4),[[e.vShow,m.value]])]))],512)]),e.createVNode(f,{type:u.value==="today"?"primary":"default",size:"default",onClick:t[2]||(t[2]=o=>b("today"))},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode("一天内",-1)])]),_:1},8,["type"]),e.createVNode(f,{type:u.value==="week"?"primary":"default",size:"default",onClick:t[3]||(t[3]=o=>b("week"))},{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode("一周内",-1)])]),_:1},8,["type"]),e.createVNode(f,{type:u.value==="month"?"primary":"default",size:"default",onClick:t[4]||(t[4]=o=>b("month"))},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("一个月内",-1)])]),_:1},8,["type"]),e.createVNode(f,{type:u.value==="year"?"primary":"default",size:"default",onClick:t[5]||(t[5]=o=>b("year"))},{default:e.withCtx(()=>[...t[14]||(t[14]=[e.createTextVNode("一年内",-1)])]),_:1},8,["type"]),e.createElementVNode("div",ce,[t[15]||(t[15]=e.createElementVNode("span",{class:"filter-label"},"时间范围:",-1)),e.createVNode(T,{modelValue:d.value,"onUpdate:modelValue":t[6]||(t[6]=o=>d.value=o),type:"datetime",placeholder:"开始时间",size:"default",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm",style:{width:"175px"},onChange:D},null,8,["modelValue"]),t[16]||(t[16]=e.createElementVNode("span",{class:"time-separator"},"至",-1)),e.createVNode(T,{modelValue:y.value,"onUpdate:modelValue":t[7]||(t[7]=o=>y.value=o),type:"datetime",placeholder:"结束时间",size:"default",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm",style:{width:"175px"},onChange:D},null,8,["modelValue"])]),e.createVNode(f,{type:"primary",size:"default",onClick:U},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode("查询",-1)])]),_:1})]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),Ve=j._export_sfc(ke,[["__scopeId","data-v-476c8b69"]]);exports.default=Ve;
1
+ "use strict";var J=Object.defineProperty,X=Object.defineProperties;var Z=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var O=(s,a,r)=>a in s?J(s,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[a]=r,R=(s,a)=>{for(var r in a||(a={}))ee.call(a,r)&&O(s,r,a[r]);if(A)for(var r of A(a))te.call(a,r)&&O(s,r,a[r]);return s},H=(s,a)=>X(s,Z(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),le=require("@element-plus/icons-vue"),oe=require("./BaseComponent-CaCkjmmb.cjs"),j=require("./index-BzWbqJIl.cjs"),I=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),ne={class:"filter-left-group"},ae={class:"filter-item"},re={class:"filter-item"},ie=["onClick"],se={class:"item-label"},ue={key:0,class:"item-region"},de={key:0,class:"monitor-dropdown-empty"},ce={class:"filter-item time-range"},me={DEFAULT_ICON:I.DEFAULT_ICON,ACTIVE_ICON:I.ACTIVE_ICON,NAME_CN:"筛选条件栏",NAME_EN:"FilterBar",ORDER:4,PLATFORM:["pc","screen"]},pe={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},borderColor:{value:"#e8ecef",type:"color",label:"边框颜色"},padding:{value:15,type:"number",label:"component.options.padding"},defaultQuickTime:{value:"today",type:"select",label:"默认快捷时间",options:[{label:"一天内",value:"today"},{label:"一周内",value:"week"},{label:"一个月内",value:"month"},{label:"一年内",value:"year"},{label:"无",value:""}]},linkChannel:{value:"crack",type:"select",label:"component.linkChannel",options:[{label:"裂缝监测",value:"crack"},{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"深部位移",value:"deepDisplacement"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},ve=[{name:"CRACK4",fv:"",object_id:"",region:"中央区"},{name:"CRACK15",fv:"",object_id:"",region:"北帮"},{name:"CRACK26",fv:"",object_id:"",region:"南帮"},{name:"CRACK37",fv:"",object_id:"",region:"西帮"},{name:"CRACK48",fv:"",object_id:"",region:"东帮"}],fe=["name","fv","object_id","region"],ye=[],ge={useAlias:!1,multiObject:!0,source:"mosaic"},Ce=50,be={DEFAULT:me,OPTIONS:pe,DATA:ve,PARAMS:fe,SOURCE:ye,ITEMS:Ce,COMMON:ge},ke=e.defineComponent(H(R({},be),{__name:"filterBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(s){const a=s,r=e.ref(""),i=e.ref([]),d=e.ref(""),y=e.ref(""),u=e.ref("today"),m=e.ref(!1),g=e.ref(null),V=e.ref(null),h=e.ref({}),p=e.computed(()=>{const l=a.conf.data;return!l||!Array.isArray(l)?[]:l.filter(t=>t.name)}),q=e.computed(()=>{const l=new Set;return p.value.forEach(t=>{t.region&&l.add(t.region)}),Array.from(l)}),v=e.computed(()=>r.value?p.value.filter(l=>l.region===r.value):p.value),w=e.computed(()=>i.value.length===0?"":i.value.join("、")),N=e.computed(()=>{const l=v.value;return l.length>0&&l.every(t=>i.value.includes(t.name))}),z=e.computed(()=>{const l=v.value,t=l.filter(n=>i.value.includes(n.name)).length;return t>0&&t<l.length});class L extends oe.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#ffffff"),textColor:this.getOptionValue("textColor","#333333"),borderColor:this.getOptionValue("borderColor","#e8ecef"),padding:this.getOptionValue("padding",15),linkChannel:this.getOptionValue("linkChannel","crack"),defaultQuickTime:this.getOptionValue("defaultQuickTime","today")}}init(){this.Style.value=this.extractStyles(),this.applyTheme();const t=this.Style.value.defaultQuickTime||"today";u.value=t,Y(t),this.props.mode==="preview"&&p.value.length>0&&i.value.length===0&&(i.value=[p.value[0].name],S())}setSocketData(t){}}const k=new L(a,"filterBar");k.setupLifecycle();const C=k.getStyle(),$=e.computed(()=>({background:C.value.bgColor,color:C.value.textColor,padding:`${C.value.padding}px 25px`,borderBottom:`1px solid ${C.value.borderColor}`})),x=()=>{m.value=!m.value,m.value&&F()};function F(){if(!g.value)return;const l=g.value.getBoundingClientRect();h.value={position:"fixed",top:`${l.bottom+4}px`,left:`${l.left}px`,zIndex:"9999"}}const E=l=>{const t=g.value,n=V.value;t&&!t.contains(l.target)&&n&&!n.contains(l.target)&&(m.value=!1)};e.onMounted(()=>{document.addEventListener("click",E)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",E)});const _=()=>{const l=v.value;if(N.value){const t=l.map(n=>n.name);i.value=i.value.filter(n=>!t.includes(n))}else{const t=new Set(i.value);l.forEach(n=>t.add(n.name)),i.value=Array.from(t)}},M=l=>{const t=i.value.indexOf(l.name);t>-1?i.value.splice(t,1):i.value.push(l.name)},Q=()=>{};function Y(l){const t=j.dayjs();switch(y.value=t.format("YYYY/MM/DD HH:mm"),l){case"today":d.value=t.subtract(1,"day").format("YYYY/MM/DD HH:mm");break;case"week":d.value=t.subtract(7,"day").format("YYYY/MM/DD HH:mm");break;case"month":d.value=t.subtract(1,"month").format("YYYY/MM/DD HH:mm");break;case"year":d.value=t.subtract(1,"year").format("YYYY/MM/DD HH:mm");break}}const b=l=>{u.value=l,Y(l)},D=()=>{u.value=""},S=()=>{if(a.mode!=="preview")return;const l=p.value.filter(n=>i.value.includes(n.name)),t=[...new Set(l.map(n=>n.object_id).filter(Boolean))];k.publish({type:"filter",region:r.value,selectedMonitors:i.value,objectId:t.length===1?t[0]:t[0]||"",objectIds:t,timeRange:u.value||"custom",dateRange:[d.value,y.value]})},U=()=>{S()};return(l,t)=>{const n=c.ElOption,P=c.ElSelect,K=c.ElIcon,W=c.ElInput,B=c.ElCheckbox,f=c.ElButton,T=c.ElDatePicker;return e.openBlock(),e.createElementBlock("div",{class:"mix-component crack-filter-bar",style:e.normalizeStyle($.value)},[e.createElementVNode("div",ne,[e.createElementVNode("div",ae,[t[8]||(t[8]=e.createElementVNode("span",{class:"filter-label"},"区域位置:",-1)),e.createVNode(P,{modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=o=>r.value=o),placeholder:"全部区域",size:"default",style:{width:"120px"},onChange:Q},{default:e.withCtx(()=>[e.createVNode(n,{label:"全部区域",value:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,o=>(e.openBlock(),e.createBlock(n,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",re,[t[10]||(t[10]=e.createElementVNode("span",{class:"filter-label"},"监测点:",-1)),e.createElementVNode("div",{class:"monitor-select-wrapper",ref_key:"monitorWrapperRef",ref:g},[e.createVNode(W,{modelValue:w.value,"onUpdate:modelValue":t[1]||(t[1]=o=>w.value=o),placeholder:"输入编号(如11)或选择",size:"default",style:{width:"180px"},readonly:"",onClick:x,onFocus:x},{suffix:e.withCtx(()=>[e.createVNode(K,{class:e.normalizeClass(["dropdown-arrow",{"is-open":m.value}])},{default:e.withCtx(()=>[e.createVNode(e.unref(le.ArrowDown))]),_:1},8,["class"])]),_:1},8,["modelValue"]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.withDirectives(e.createElementVNode("div",{class:"monitor-dropdown",style:e.normalizeStyle(h.value),ref_key:"dropdownRef",ref:V},[e.createElementVNode("div",{class:"monitor-dropdown-item",onClick:e.withModifiers(_,["stop"])},[e.createVNode(B,{"model-value":N.value,indeterminate:z.value,onChange:_},null,8,["model-value","indeterminate"]),t[9]||(t[9]=e.createElementVNode("span",{class:"item-label",style:{"font-weight":"bold"}},"全选",-1))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,o=>(e.openBlock(),e.createElementBlock("div",{key:o.name,class:"monitor-dropdown-item",onClick:e.withModifiers(G=>M(o),["stop"])},[e.createVNode(B,{"model-value":i.value.includes(o.name),onChange:G=>M(o)},null,8,["model-value","onChange"]),e.createElementVNode("span",se,[e.createTextVNode(e.toDisplayString(o.name)+" ",1),o.region?(e.openBlock(),e.createElementBlock("span",ue,"("+e.toDisplayString(o.region)+")",1)):e.createCommentVNode("",!0)])],8,ie))),128)),v.value.length===0?(e.openBlock(),e.createElementBlock("div",de," 暂无监测点,请在右侧数据面板配置 ")):e.createCommentVNode("",!0)],4),[[e.vShow,m.value]])]))],512)]),e.createVNode(f,{type:u.value==="today"?"primary":"default",size:"default",onClick:t[2]||(t[2]=o=>b("today"))},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode("一天内",-1)])]),_:1},8,["type"]),e.createVNode(f,{type:u.value==="week"?"primary":"default",size:"default",onClick:t[3]||(t[3]=o=>b("week"))},{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode("一周内",-1)])]),_:1},8,["type"]),e.createVNode(f,{type:u.value==="month"?"primary":"default",size:"default",onClick:t[4]||(t[4]=o=>b("month"))},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("一个月内",-1)])]),_:1},8,["type"]),e.createVNode(f,{type:u.value==="year"?"primary":"default",size:"default",onClick:t[5]||(t[5]=o=>b("year"))},{default:e.withCtx(()=>[...t[14]||(t[14]=[e.createTextVNode("一年内",-1)])]),_:1},8,["type"]),e.createElementVNode("div",ce,[t[15]||(t[15]=e.createElementVNode("span",{class:"filter-label"},"时间范围:",-1)),e.createVNode(T,{modelValue:d.value,"onUpdate:modelValue":t[6]||(t[6]=o=>d.value=o),type:"datetime",placeholder:"开始时间",size:"default",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm",style:{width:"175px"},onChange:D},null,8,["modelValue"]),t[16]||(t[16]=e.createElementVNode("span",{class:"time-separator"},"至",-1)),e.createVNode(T,{modelValue:y.value,"onUpdate:modelValue":t[7]||(t[7]=o=>y.value=o),type:"datetime",placeholder:"结束时间",size:"default",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm",style:{width:"175px"},onChange:D},null,8,["modelValue"])]),e.createVNode(f,{type:"primary",size:"default",onClick:U},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode("查询",-1)])]),_:1})]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),Ve=j._export_sfc(ke,[["__scopeId","data-v-476c8b69"]]);exports.default=Ve;
@@ -1 +1 @@
1
- "use strict";var he=Object.defineProperty,ge=Object.defineProperties;var be=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols,ye=Object.getPrototypeOf,Ce=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,xe=Reflect.get;var J=(v,l,c)=>l in v?he(v,l,{enumerable:!0,configurable:!0,writable:!0,value:c}):v[l]=c,Q=(v,l)=>{for(var c in l||(l={}))Ce.call(l,c)&&J(v,c,l[c]);if(Z)for(var c of Z(l))_e.call(l,c)&&J(v,c,l[c]);return v},X=(v,l)=>ge(v,be(l));var ee=(v,l,c)=>xe(ye(v),c,l);var z=(v,l,c)=>new Promise((w,C)=>{var M=_=>{try{N(c.next(_))}catch(V){C(V)}},h=_=>{try{N(c.throw(_))}catch(V){C(V)}},N=_=>_.done?w(_.value):Promise.resolve(_.value).then(M,h);N((c=c.apply(v,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=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-DVqMfQVc.cjs");require("element-plus");const Se=require("./EChartComponentBase-dLE5F7Tt.cjs"),te=require("@element-plus/icons-vue"),oe=require("./ele-lin-icon-Dke_1AmT.cjs"),Ee={class:"chart-panel"},je={class:"panel-header"},we={class:"header-right"},Ne={class:"indicator-selector-panel"},Ve={class:"indicator-select-all"},ke={class:"legend-bar"},Ie={class:"legend-items"},Ae=["onClick"],Me={class:"legend-text"},Oe=["id"],De={DEFAULT_ICON:oe.DEFAULT_ICON,ACTIVE_ICON:oe.ACTIVE_ICON,NAME_CN:"煤自燃关键指标时序曲线",NAME_EN:"Fire Combustion Curve",ORDER:2,PLATFORM:["pc","screen"]},Le={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:"fire",type:"select",label:"component.linkChannel",options:[{label:"煤自燃监测",value:"fire"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Te=[{name:"温度(℃)",fv:"",object_id:"",color:"#ee6666",deviceFv:""},{name:"一氧化碳浓度(ppm)",fv:"",object_id:"",color:"#fac858",deviceFv:""},{name:"氧气浓度(%)",fv:"",object_id:"",color:"#5470c6",deviceFv:""}],Fe=["name","fv","object_id","color","deviceFv"],$e=["mosaic","statistics","calculate"],qe={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Be=50,Ye={DEFAULT:De,OPTIONS:Le,DATA:Te,PARAMS:Fe,SOURCE:$e,ITEMS:Be,COMMON:qe},Re=t.defineComponent(X(Q({},Ye),{__name:"fireCombustionCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){const l=v,c=new Map,w=new Map;let C=0;class M extends Se.EChartComponentBase{extractStyles(){var i,f,m,o,u,s,d;const e=(i=this.props.conf)==null?void 0:i.options,n=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"fire",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 Y(this.Style.value)}needsHistoryData(){return!1}onPreview(){return z(this,null,function*(){var n,r,i,f,m;const e=((r=(n=this.props.conf)==null?void 0:n.common)==null?void 0:r.object_id)||((m=(f=(i=this.props.conf)==null?void 0:i.data)==null?void 0:f[0])==null?void 0:m.object_id)||"";if(e&&b.value.length===0){b.value=[e],$.value=e,yield R([e]);return}yield ee(M.prototype,this,"onPreview").call(this)})}setSocketData(e){var m;if(!e)return;const n=e.object_id||e.objectId||"";if(n&&b.value.length>0&&!b.value.includes(n))return;const r=e.datetime?e.datetime.split(".")[0]:T.dayjs().format("YYYY/MM/DD HH:mm"),i=((m=this.props.conf)==null?void 0:m.data)||[],f=b.value.length>1;i.forEach(o=>{if(o.deviceFv){const u=this.extractDataValue(e,o.deviceFv);if(u!=null&&String(u).trim()){const s=String(u).trim();f&&n?S.value.set(n,s):(w.set(o.name||o.fv,s),n&&S.value.set(n,s))}}}),i.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=c.get(s);d?(d.times.push(r),d.values.push(parseFloat(u)),d.times.length>200&&(d.times.shift(),d.values.shift())):c.set(s,{times:[r],values:[parseFloat(u)]})}),this.chartObj&&this.chartObj.setOption(Y(this.Style.value),!1)}onLinkEvent(e){fe(e)}}const h=new M(l,"fireCombustionCurve");h.setupLifecycle();const N=h.getStyle(),_=h.getEchartId(),V=t.computed(()=>{var a;return((a=l.conf)==null?void 0:a.data)||[]}),g=t.computed(()=>{const a=new Set;return V.value.filter(e=>e.name&&!a.has(e.name)?(a.add(e.name),!0):!1)}),p=t.ref([]);t.watch(g,a=>{a.length>0&&p.value.length===0&&(p.value=a.map(e=>e.fv||e.name))},{immediate:!0});const H=t.computed({get:()=>g.value.length>0&&p.value.length===g.value.length,set:()=>{}}),ne=t.computed(()=>{const a=p.value.length;return a>0&&a<g.value.length}),ae=t.computed(()=>{if(p.value.length===0)return"选择监测指标";if(p.value.length===g.value.length)return"全部指标";const e=g.value.filter(n=>p.value.includes(n.fv||n.name)).map(n=>n.name).join(", ");return e.length>14?e.substring(0,14)+"...":e}),le=a=>{p.value=a?g.value.map(e=>e.fv||e.name):[],k()},x=t.ref(new Set),se=t.computed(()=>{if(b.value.length>1){const e=[];for(const n of b.value){const r=S.value.get(n)||n.slice(-6);g.value.filter(i=>p.value.includes(i.fv||i.name)).forEach(i=>{e.push({name:`${r}-${i.name}`,color:i.color||"#5470c6",visible:!x.value.has(`${n}:${i.name}`)})})}return e}return g.value.filter(e=>p.value.includes(e.fv||e.name)).map(e=>{const n=w.get(e.name)||S.value.values().next().value||"";return{name:n?`${n}-${e.name}`:e.name,color:e.color||"#5470c6",visible:!x.value.has(e.name)}})}),re=a=>{const e=a.name.includes("-")?a.name.split("-").slice(1).join("-"):a.name;x.value.has(e)?x.value.delete(e):x.value.add(e),x.value=new Set(x.value),k()},b=t.ref([]),ce=t.computed(()=>{var a,e,n;return(e=(a=l.conf)==null?void 0:a.common)!=null&&e.object_id||(n=l.conf)!=null&&n.object_id?!0:V.value.some(r=>!!r.object_id)}),ie=t.computed(()=>ce.value||b.value.length>0),S=t.ref(new Map),$=t.ref("");let q=null;const ue=t.computed(()=>({backgroundColor:N.value.bgColor,color:N.value.textColor})),B=()=>{c.clear();const a=T.dayjs();V.value.forEach((e,n)=>{const r=[],i=[],f=[85,50,10],m=[3,5,1.5],o=f[n%3]||20,u=m[n%3]||3;for(let s=0;s<100;s++)r.push(a.subtract((100-s)*15,"minute").format("YYYY/MM/DD HH:mm")),i.push(+(o+(Math.random()-.5)*u+Math.sin(s/10)*u*.4).toFixed(2));c.set(e.name,{times:r,values:i})})},Y=a=>{if(l.mode!=="edit"){if(!ie.value)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};if(c.size===0)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]}}let e=[];for(const[,o]of c)o.times.length>e.length&&(e=o.times);!e.length&&l.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=b.value.length>1,i=["#ee6666","#fac858","#5470c6","#91cc75","#73c0de","#3ba272","#fc8452","#9a60b4"];let f=0,m=[];if(r&&l.mode!=="edit")for(const o of b.value){const u=S.value.get(o)||o.slice(-6);g.value.filter(s=>p.value.includes(s.fv||s.name)).forEach(s=>{const d=`${o}:${s.name}`,I=`${u}-${s.name}`,E=s.color||i[f%i.length];n[I]=!x.value.has(d);const F=c.get(d);m.push({name:I,type:"line",smooth:!0,showSymbol:!1,data:(F==null?void 0:F.values)||[],lineStyle:{color:E,width:2.5,type:"solid"},itemStyle:{color:E}}),f++})}else m=g.value.filter(o=>p.value.includes(o.fv||o.name)).map(o=>{const u=w.get(o.name)||S.value.values().next().value||"",s=u?`${u}-${o.name}`:o.name;n[s]=!x.value.has(o.name);const d=c.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:a.gridColor}},axisLabel:{color:a.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:a.textColor,fontSize:11},splitLine:{lineStyle:{color:a.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}},k=()=>{const a=h.getChartInstance();a&&a.setOption(Y(N.value),!0)},de=()=>{const a=h.getChartInstance();if(!a)return;const e=document.createElement("a");e.href=a.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`煤自燃关键指标时序曲线_${T.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},fe=a=>{const{payload:e}=a;if(!e)return;if(e.type==="filter"){const r=e.objectIds&&e.objectIds.length>0?e.objectIds:e.objectId?[e.objectId]:[];e.dateRange&&Array.isArray(e.dateRange)&&e.dateRange.length===2&&(q={start_time:e.dateRange[0],end_time:e.dateRange[1]}),r.length>0&&(b.value=r,$.value=[...r].sort().join(","),R(r)),(l.mode==="edit"||r.length===0)&&(B(),k());return}const n=e.objectId||e.object_id;n&&(b.value=[n],$.value=n,R([n]))},R=a=>z(null,null,function*(){var s;if(!a.length||l.mode!=="preview")return;const e=++C;c.clear(),S.value.clear(),w.clear();const n=(s=h.session)==null?void 0:s.value;if(!n)return;const r=l.conf.id;n.componentRequests&&n.componentRequests.delete(r),typeof n.unsubscribeComponent=="function"&&n.unsubscribeComponent(r);const{data:i,common:f}=l.conf,m=a.length>1;q&&(f.historyTimeRange=q),l.conf.options||(l.conf.options={});const o=l.conf.options.points,u=Object.prototype.hasOwnProperty.call(l.conf.options,"points");(!o||Number(o)<24)&&(l.conf.options.points=24);for(const d of a){if(C!==e)return;Array.isArray(i)&&i.forEach(E=>{E.object_id=d}),f.multiObject||(f.object_id=d);try{const E=yield Promise.resolve().then(()=>require("./history-MxYUUwkm.cjs")),O=yield new E.default().getHistoryData(l,"fireCombustionCurve");if(C!==e)return;const U=(O==null?void 0:O.history)||(Array.isArray(O)?O:[]);U.length>0&&i.forEach((y,me)=>{if(!y.fv)return;const G=U[me];if(!Array.isArray(G))return;const ve=[...G].sort((j,D)=>new Date(j.time||j.datetime||"").getTime()-new Date(D.time||D.datetime||"").getTime()),pe=m?`${d}:${y.name||y.fv}`:y.name||y.fv,P=[],K=[];ve.forEach(j=>{const D=j.time||j.datetime,W=j[y.fv];if(D&&W!=null){const A=parseFloat(W);isNaN(A)||(P.push(D.split(".")[0]),K.push(A))}if(y.deviceFv&&j[y.deviceFv]){const A=String(j[y.deviceFv]);m||w.set(y.name||y.fv,A),S.value.set(d,A)}}),P.length>0&&c.set(pe,{times:P,values:K})})}catch(E){console.warn("[煤自燃曲线] 历史数据获取失败:",E)}if(C!==e)return;const I=h.getSource();h.subscribeBySource(I,d)}u?l.conf.options.points=o:delete l.conf.options.points,C===e&&(k(),n.registerComponent({id:r,request:null,onUpdate:(d,I)=>{C===e&&d==="realtime"&&h.setSocketData(I)}}))});return t.onMounted(()=>{l.mode==="edit"&&B(),setTimeout(()=>{var a;return(a=h.getChartInstance())==null?void 0:a.resize()},200)}),t.watch(()=>l.conf,()=>{l.mode==="edit"&&(B(),k())},{deep:!0}),(a,e)=>{const n=L.ElIcon,r=L.ElButton,i=L.ElCheckbox,f=L.ElCheckboxGroup,m=L.ElPopover;return t.openBlock(),t.createElementBlock("div",{class:"fire-combustion-curve",style:t.normalizeStyle(ue.value)},[t.createElementVNode("div",Ee,[t.createElementVNode("div",je,[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",Ve,[t.createVNode(i,{modelValue:H.value,"onUpdate:modelValue":e[0]||(e[0]=o=>H.value=o),indeterminate:ne.value,onChange:le},{default:t.withCtx(()=>[...e[2]||(e[2]=[t.createTextVNode(" 全部指标 ",-1)])]),_:1},8,["modelValue","indeterminate"])]),t.createVNode(f,{modelValue:p.value,"onUpdate:modelValue":e[1]||(e[1]=o=>p.value=o),onChange:k},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value,o=>(t.openBlock(),t.createBlock(i,{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:de},{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",ke,[t.createElementVNode("div",Ie,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(se.value,o=>(t.openBlock(),t.createElementBlock("span",{key:o.name,class:t.normalizeClass(["legend-item",{disabled:!o.visible}]),onClick:u=>re(o)},[t.createElementVNode("span",{class:"legend-line",style:t.normalizeStyle({borderTopColor:o.visible?o.color:"#ccc"})},null,4),t.createElementVNode("span",Me,t.toDisplayString(o.name),1)],10,Ae))),128))])]),t.createElementVNode("div",{id:t.unref(_),class:"chart-container"},null,8,Oe)]),t.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),Pe=T._export_sfc(Re,[["__scopeId","data-v-e355abb5"]]);exports.default=Pe;
1
+ "use strict";var he=Object.defineProperty,ge=Object.defineProperties;var be=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols,ye=Object.getPrototypeOf,Ce=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,xe=Reflect.get;var J=(v,l,c)=>l in v?he(v,l,{enumerable:!0,configurable:!0,writable:!0,value:c}):v[l]=c,Q=(v,l)=>{for(var c in l||(l={}))Ce.call(l,c)&&J(v,c,l[c]);if(Z)for(var c of Z(l))_e.call(l,c)&&J(v,c,l[c]);return v},X=(v,l)=>ge(v,be(l));var ee=(v,l,c)=>xe(ye(v),c,l);var z=(v,l,c)=>new Promise((w,C)=>{var M=_=>{try{N(c.next(_))}catch(V){C(V)}},h=_=>{try{N(c.throw(_))}catch(V){C(V)}},N=_=>_.done?w(_.value):Promise.resolve(_.value).then(M,h);N((c=c.apply(v,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=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-BzWbqJIl.cjs");require("element-plus");const Se=require("./EChartComponentBase-D7_ZiE7P.cjs"),te=require("@element-plus/icons-vue"),oe=require("./ele-lin-icon-Dke_1AmT.cjs"),Ee={class:"chart-panel"},je={class:"panel-header"},we={class:"header-right"},Ne={class:"indicator-selector-panel"},Ve={class:"indicator-select-all"},ke={class:"legend-bar"},Ie={class:"legend-items"},Ae=["onClick"],Me={class:"legend-text"},Oe=["id"],De={DEFAULT_ICON:oe.DEFAULT_ICON,ACTIVE_ICON:oe.ACTIVE_ICON,NAME_CN:"煤自燃关键指标时序曲线",NAME_EN:"Fire Combustion Curve",ORDER:2,PLATFORM:["pc","screen"]},Le={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:"fire",type:"select",label:"component.linkChannel",options:[{label:"煤自燃监测",value:"fire"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Te=[{name:"温度(℃)",fv:"",object_id:"",color:"#ee6666",deviceFv:""},{name:"一氧化碳浓度(ppm)",fv:"",object_id:"",color:"#fac858",deviceFv:""},{name:"氧气浓度(%)",fv:"",object_id:"",color:"#5470c6",deviceFv:""}],Fe=["name","fv","object_id","color","deviceFv"],$e=["mosaic","statistics","calculate"],qe={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Be=50,Ye={DEFAULT:De,OPTIONS:Le,DATA:Te,PARAMS:Fe,SOURCE:$e,ITEMS:Be,COMMON:qe},Re=t.defineComponent(X(Q({},Ye),{__name:"fireCombustionCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){const l=v,c=new Map,w=new Map;let C=0;class M extends Se.EChartComponentBase{extractStyles(){var i,f,m,o,u,s,d;const e=(i=this.props.conf)==null?void 0:i.options,n=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"fire",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 Y(this.Style.value)}needsHistoryData(){return!1}onPreview(){return z(this,null,function*(){var n,r,i,f,m;const e=((r=(n=this.props.conf)==null?void 0:n.common)==null?void 0:r.object_id)||((m=(f=(i=this.props.conf)==null?void 0:i.data)==null?void 0:f[0])==null?void 0:m.object_id)||"";if(e&&b.value.length===0){b.value=[e],$.value=e,yield R([e]);return}yield ee(M.prototype,this,"onPreview").call(this)})}setSocketData(e){var m;if(!e)return;const n=e.object_id||e.objectId||"";if(n&&b.value.length>0&&!b.value.includes(n))return;const r=e.datetime?e.datetime.split(".")[0]:T.dayjs().format("YYYY/MM/DD HH:mm"),i=((m=this.props.conf)==null?void 0:m.data)||[],f=b.value.length>1;i.forEach(o=>{if(o.deviceFv){const u=this.extractDataValue(e,o.deviceFv);if(u!=null&&String(u).trim()){const s=String(u).trim();f&&n?S.value.set(n,s):(w.set(o.name||o.fv,s),n&&S.value.set(n,s))}}}),i.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=c.get(s);d?(d.times.push(r),d.values.push(parseFloat(u)),d.times.length>200&&(d.times.shift(),d.values.shift())):c.set(s,{times:[r],values:[parseFloat(u)]})}),this.chartObj&&this.chartObj.setOption(Y(this.Style.value),!1)}onLinkEvent(e){fe(e)}}const h=new M(l,"fireCombustionCurve");h.setupLifecycle();const N=h.getStyle(),_=h.getEchartId(),V=t.computed(()=>{var a;return((a=l.conf)==null?void 0:a.data)||[]}),g=t.computed(()=>{const a=new Set;return V.value.filter(e=>e.name&&!a.has(e.name)?(a.add(e.name),!0):!1)}),p=t.ref([]);t.watch(g,a=>{a.length>0&&p.value.length===0&&(p.value=a.map(e=>e.fv||e.name))},{immediate:!0});const H=t.computed({get:()=>g.value.length>0&&p.value.length===g.value.length,set:()=>{}}),ne=t.computed(()=>{const a=p.value.length;return a>0&&a<g.value.length}),ae=t.computed(()=>{if(p.value.length===0)return"选择监测指标";if(p.value.length===g.value.length)return"全部指标";const e=g.value.filter(n=>p.value.includes(n.fv||n.name)).map(n=>n.name).join(", ");return e.length>14?e.substring(0,14)+"...":e}),le=a=>{p.value=a?g.value.map(e=>e.fv||e.name):[],k()},x=t.ref(new Set),se=t.computed(()=>{if(b.value.length>1){const e=[];for(const n of b.value){const r=S.value.get(n)||n.slice(-6);g.value.filter(i=>p.value.includes(i.fv||i.name)).forEach(i=>{e.push({name:`${r}-${i.name}`,color:i.color||"#5470c6",visible:!x.value.has(`${n}:${i.name}`)})})}return e}return g.value.filter(e=>p.value.includes(e.fv||e.name)).map(e=>{const n=w.get(e.name)||S.value.values().next().value||"";return{name:n?`${n}-${e.name}`:e.name,color:e.color||"#5470c6",visible:!x.value.has(e.name)}})}),re=a=>{const e=a.name.includes("-")?a.name.split("-").slice(1).join("-"):a.name;x.value.has(e)?x.value.delete(e):x.value.add(e),x.value=new Set(x.value),k()},b=t.ref([]),ce=t.computed(()=>{var a,e,n;return(e=(a=l.conf)==null?void 0:a.common)!=null&&e.object_id||(n=l.conf)!=null&&n.object_id?!0:V.value.some(r=>!!r.object_id)}),ie=t.computed(()=>ce.value||b.value.length>0),S=t.ref(new Map),$=t.ref("");let q=null;const ue=t.computed(()=>({backgroundColor:N.value.bgColor,color:N.value.textColor})),B=()=>{c.clear();const a=T.dayjs();V.value.forEach((e,n)=>{const r=[],i=[],f=[85,50,10],m=[3,5,1.5],o=f[n%3]||20,u=m[n%3]||3;for(let s=0;s<100;s++)r.push(a.subtract((100-s)*15,"minute").format("YYYY/MM/DD HH:mm")),i.push(+(o+(Math.random()-.5)*u+Math.sin(s/10)*u*.4).toFixed(2));c.set(e.name,{times:r,values:i})})},Y=a=>{if(l.mode!=="edit"){if(!ie.value)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};if(c.size===0)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]}}let e=[];for(const[,o]of c)o.times.length>e.length&&(e=o.times);!e.length&&l.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=b.value.length>1,i=["#ee6666","#fac858","#5470c6","#91cc75","#73c0de","#3ba272","#fc8452","#9a60b4"];let f=0,m=[];if(r&&l.mode!=="edit")for(const o of b.value){const u=S.value.get(o)||o.slice(-6);g.value.filter(s=>p.value.includes(s.fv||s.name)).forEach(s=>{const d=`${o}:${s.name}`,I=`${u}-${s.name}`,E=s.color||i[f%i.length];n[I]=!x.value.has(d);const F=c.get(d);m.push({name:I,type:"line",smooth:!0,showSymbol:!1,data:(F==null?void 0:F.values)||[],lineStyle:{color:E,width:2.5,type:"solid"},itemStyle:{color:E}}),f++})}else m=g.value.filter(o=>p.value.includes(o.fv||o.name)).map(o=>{const u=w.get(o.name)||S.value.values().next().value||"",s=u?`${u}-${o.name}`:o.name;n[s]=!x.value.has(o.name);const d=c.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:a.gridColor}},axisLabel:{color:a.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:a.textColor,fontSize:11},splitLine:{lineStyle:{color:a.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}},k=()=>{const a=h.getChartInstance();a&&a.setOption(Y(N.value),!0)},de=()=>{const a=h.getChartInstance();if(!a)return;const e=document.createElement("a");e.href=a.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`煤自燃关键指标时序曲线_${T.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},fe=a=>{const{payload:e}=a;if(!e)return;if(e.type==="filter"){const r=e.objectIds&&e.objectIds.length>0?e.objectIds:e.objectId?[e.objectId]:[];e.dateRange&&Array.isArray(e.dateRange)&&e.dateRange.length===2&&(q={start_time:e.dateRange[0],end_time:e.dateRange[1]}),r.length>0&&(b.value=r,$.value=[...r].sort().join(","),R(r)),(l.mode==="edit"||r.length===0)&&(B(),k());return}const n=e.objectId||e.object_id;n&&(b.value=[n],$.value=n,R([n]))},R=a=>z(null,null,function*(){var s;if(!a.length||l.mode!=="preview")return;const e=++C;c.clear(),S.value.clear(),w.clear();const n=(s=h.session)==null?void 0:s.value;if(!n)return;const r=l.conf.id;n.componentRequests&&n.componentRequests.delete(r),typeof n.unsubscribeComponent=="function"&&n.unsubscribeComponent(r);const{data:i,common:f}=l.conf,m=a.length>1;q&&(f.historyTimeRange=q),l.conf.options||(l.conf.options={});const o=l.conf.options.points,u=Object.prototype.hasOwnProperty.call(l.conf.options,"points");(!o||Number(o)<24)&&(l.conf.options.points=24);for(const d of a){if(C!==e)return;Array.isArray(i)&&i.forEach(E=>{E.object_id=d}),f.multiObject||(f.object_id=d);try{const E=yield Promise.resolve().then(()=>require("./history-xZTq1lUB.cjs")),O=yield new E.default().getHistoryData(l,"fireCombustionCurve");if(C!==e)return;const U=(O==null?void 0:O.history)||(Array.isArray(O)?O:[]);U.length>0&&i.forEach((y,me)=>{if(!y.fv)return;const G=U[me];if(!Array.isArray(G))return;const ve=[...G].sort((j,D)=>new Date(j.time||j.datetime||"").getTime()-new Date(D.time||D.datetime||"").getTime()),pe=m?`${d}:${y.name||y.fv}`:y.name||y.fv,P=[],K=[];ve.forEach(j=>{const D=j.time||j.datetime,W=j[y.fv];if(D&&W!=null){const A=parseFloat(W);isNaN(A)||(P.push(D.split(".")[0]),K.push(A))}if(y.deviceFv&&j[y.deviceFv]){const A=String(j[y.deviceFv]);m||w.set(y.name||y.fv,A),S.value.set(d,A)}}),P.length>0&&c.set(pe,{times:P,values:K})})}catch(E){console.warn("[煤自燃曲线] 历史数据获取失败:",E)}if(C!==e)return;const I=h.getSource();h.subscribeBySource(I,d)}u?l.conf.options.points=o:delete l.conf.options.points,C===e&&(k(),n.registerComponent({id:r,request:null,onUpdate:(d,I)=>{C===e&&d==="realtime"&&h.setSocketData(I)}}))});return t.onMounted(()=>{l.mode==="edit"&&B(),setTimeout(()=>{var a;return(a=h.getChartInstance())==null?void 0:a.resize()},200)}),t.watch(()=>l.conf,()=>{l.mode==="edit"&&(B(),k())},{deep:!0}),(a,e)=>{const n=L.ElIcon,r=L.ElButton,i=L.ElCheckbox,f=L.ElCheckboxGroup,m=L.ElPopover;return t.openBlock(),t.createElementBlock("div",{class:"fire-combustion-curve",style:t.normalizeStyle(ue.value)},[t.createElementVNode("div",Ee,[t.createElementVNode("div",je,[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",Ve,[t.createVNode(i,{modelValue:H.value,"onUpdate:modelValue":e[0]||(e[0]=o=>H.value=o),indeterminate:ne.value,onChange:le},{default:t.withCtx(()=>[...e[2]||(e[2]=[t.createTextVNode(" 全部指标 ",-1)])]),_:1},8,["modelValue","indeterminate"])]),t.createVNode(f,{modelValue:p.value,"onUpdate:modelValue":e[1]||(e[1]=o=>p.value=o),onChange:k},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value,o=>(t.openBlock(),t.createBlock(i,{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:de},{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",ke,[t.createElementVNode("div",Ie,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(se.value,o=>(t.openBlock(),t.createElementBlock("span",{key:o.name,class:t.normalizeClass(["legend-item",{disabled:!o.visible}]),onClick:u=>re(o)},[t.createElementVNode("span",{class:"legend-line",style:t.normalizeStyle({borderTopColor:o.visible?o.color:"#ccc"})},null,4),t.createElementVNode("span",Me,t.toDisplayString(o.name),1)],10,Ae))),128))])]),t.createElementVNode("div",{id:t.unref(_),class:"chart-container"},null,8,Oe)]),t.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),Pe=T._export_sfc(Re,[["__scopeId","data-v-e355abb5"]]);exports.default=Pe;
@@ -34,9 +34,9 @@ import "element-plus/es/components/checkbox/style/css";
34
34
  import "element-plus/es/components/button/style/css";
35
35
  import "element-plus/es/components/icon/style/css";
36
36
  import { defineComponent as Ve, computed as j, ref as V, watch as ce, onMounted as Ye, openBlock as Y, createElementBlock as H, normalizeStyle as ue, createElementVNode as p, createVNode as w, withCtx as A, createTextVNode as Z, Fragment as fe, renderList as de, createBlock as Re, toDisplayString as J, unref as Q, normalizeClass as He, renderSlot as ze } from "vue";
37
- import { d as z, _ as Pe } from "./index-DwPJu6XM.js";
37
+ import { d as z, _ as Pe } from "./index-D5BukPPY.js";
38
38
  import "element-plus";
39
- import { E as Be } from "./EChartComponentBase-cFfawl6h.js";
39
+ import { E as Be } from "./EChartComponentBase-C3gcATBZ.js";
40
40
  import { ArrowDown as Ue, Download as qe } from "@element-plus/icons-vue";
41
41
  import { A as Ge, D as Ke } from "./ele-lin-icon-Dax-ZiWV.js";
42
42
  const We = { class: "chart-panel" }, Ze = { class: "panel-header" }, Je = { class: "header-right" }, Qe = { class: "indicator-selector-panel" }, Xe = { class: "indicator-select-all" }, et = { class: "legend-bar" }, tt = { class: "legend-items" }, ot = ["onClick"], nt = { class: "legend-text" }, at = ["id"], lt = {
@@ -357,7 +357,7 @@ const We = { class: "chart-panel" }, Ze = { class: "panel-header" }, Je = { clas
357
357
  k.object_id = u;
358
358
  }), f.multiObject || (f.object_id = u);
359
359
  try {
360
- const k = yield import("./history-BZ869y2d.js"), $ = yield new k.default().getHistoryData(a, "fireCombustionCurve");
360
+ const k = yield import("./history-DdkBOj8L.js"), $ = yield new k.default().getHistoryData(a, "fireCombustionCurve");
361
361
  if (C !== e) return;
362
362
  const ee = ($ == null ? void 0 : $.history) || (Array.isArray($) ? $ : []);
363
363
  ee.length > 0 && i.forEach((y, Se) => {
@@ -17,8 +17,8 @@ import "element-plus/es/components/date-picker/style/css";
17
17
  import "element-plus/es/components/select/style/css";
18
18
  import "element-plus/es/components/option/style/css";
19
19
  import { defineComponent as W, computed as b, reactive as q, openBlock as c, createElementBlock as v, normalizeStyle as G, createElementVNode as i, createVNode as d, withCtx as y, Fragment as h, renderList as R, createBlock as F, normalizeClass as J, toDisplayString as K, createTextVNode as X, renderSlot as Z } from "vue";
20
- import { B as ee } from "./BaseComponent-CBagahPU.js";
21
- import { d as Y, _ as te } from "./index-DwPJu6XM.js";
20
+ import { B as ee } from "./BaseComponent-NnwLq7Cf.js";
21
+ import { d as Y, _ as te } from "./index-D5BukPPY.js";
22
22
  import { A as le, D as ne } from "./ele-vlu-icon-Bg6EHZdJ.js";
23
23
  const oe = { class: "filter-bar" }, ae = { class: "filter-item" }, se = { class: "filter-item" }, re = { class: "filter-item" }, ie = { class: "time-range-btns" }, ce = ["onClick"], me = { class: "filter-item" }, ue = {
24
24
  DEFAULT_ICON: ne,
@@ -1 +1 @@
1
- "use strict";var F=Object.defineProperty,I=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var y=(i,r,s)=>r in i?F(i,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[r]=s,E=(i,r)=>{for(var s in r||(r={}))w.call(r,s)&&y(i,s,r[s]);if(C)for(var s of C(r))A.call(r,s)&&y(i,s,r[s]);return i},k=(i,r)=>I(i,j(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"),O=require("./BaseComponent-Chnv4fBT.cjs"),g=require("./index-DVqMfQVc.cjs"),V=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),H={class:"filter-bar"},T={class:"filter-item"},x={class:"filter-item"},q={class:"filter-item"},L={class:"time-range-btns"},U=["onClick"],z={class:"filter-item"},P={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"煤自燃筛选栏",NAME_EN:"Fire Filter Bar",ORDER:1,PLATFORM:["pc","screen"]},$={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},linkChannel:{value:"fire",type:"select",label:"component.linkChannel",options:[{label:"煤自燃监测",value:"fire"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Q=[{name:"FIRE115",object_id:"",region:"北帮"},{name:"FIRE116",object_id:"",region:"北帮"},{name:"FIRE201",object_id:"",region:"南帮"},{name:"FIRE305",object_id:"",region:"东帮"},{name:"FIRE410",object_id:"",region:"西帮"}],W=["name","object_id","region"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=50,X={DEFAULT:P,OPTIONS:$,DATA:Q,PARAMS:W,SOURCE:G,ITEMS:K,COMMON:J},Z=e.defineComponent(k(E({},X),{__name:"fireFilterBar",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 O.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)||"fire",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,"fireFilterBar");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")]},M=()=>{o.timeRange=""},D=()=>{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:"fire-filter-bar-wrap",style:e.normalizeStyle(S.value)},[e.createElementVNode("div",H,[e.createElementVNode("div",T,[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",x,[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:M},null,8,["modelValue"])]),e.createVNode(p,{type:"primary",size:"small",onClick:D},{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-f1448663"]]);exports.default=ee;
1
+ "use strict";var F=Object.defineProperty,I=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var y=(i,r,s)=>r in i?F(i,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[r]=s,E=(i,r)=>{for(var s in r||(r={}))w.call(r,s)&&y(i,s,r[s]);if(C)for(var s of C(r))A.call(r,s)&&y(i,s,r[s]);return i},k=(i,r)=>I(i,j(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"),O=require("./BaseComponent-CaCkjmmb.cjs"),g=require("./index-BzWbqJIl.cjs"),V=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),H={class:"filter-bar"},T={class:"filter-item"},x={class:"filter-item"},q={class:"filter-item"},L={class:"time-range-btns"},U=["onClick"],z={class:"filter-item"},P={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"煤自燃筛选栏",NAME_EN:"Fire Filter Bar",ORDER:1,PLATFORM:["pc","screen"]},$={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},linkChannel:{value:"fire",type:"select",label:"component.linkChannel",options:[{label:"煤自燃监测",value:"fire"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Q=[{name:"FIRE115",object_id:"",region:"北帮"},{name:"FIRE116",object_id:"",region:"北帮"},{name:"FIRE201",object_id:"",region:"南帮"},{name:"FIRE305",object_id:"",region:"东帮"},{name:"FIRE410",object_id:"",region:"西帮"}],W=["name","object_id","region"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=50,X={DEFAULT:P,OPTIONS:$,DATA:Q,PARAMS:W,SOURCE:G,ITEMS:K,COMMON:J},Z=e.defineComponent(k(E({},X),{__name:"fireFilterBar",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 O.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)||"fire",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,"fireFilterBar");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")]},M=()=>{o.timeRange=""},D=()=>{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:"fire-filter-bar-wrap",style:e.normalizeStyle(S.value)},[e.createElementVNode("div",H,[e.createElementVNode("div",T,[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",x,[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:M},null,8,["modelValue"])]),e.createVNode(p,{type:"primary",size:"small",onClick:D},{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-f1448663"]]);exports.default=ee;
@@ -33,9 +33,9 @@ import "element-plus/es/components/select/style/css";
33
33
  import "element-plus/es/components/option/style/css";
34
34
  import { defineComponent as je, ref as F, reactive as re, computed as T, onMounted as xe, onUnmounted as ke, watch as Se, openBlock as C, createElementBlock as j, normalizeStyle as Ee, createElementVNode as r, createVNode as R, withCtx as ce, Fragment as J, renderList as G, normalizeClass as de, toDisplayString as N, createCommentVNode as He, renderSlot as Ie } from "vue";
35
35
  import "html2canvas";
36
- import { d as y, a as Re, _ as Ae } from "./index-DwPJu6XM.js";
36
+ import { d as y, a as Re, _ as Ae } from "./index-D5BukPPY.js";
37
37
  import "element-plus";
38
- import { E as Oe } from "./EChartComponentBase-cFfawl6h.js";
38
+ import { E as Oe } from "./EChartComponentBase-C3gcATBZ.js";
39
39
  import { A as Fe, D as Te } from "./ele-lin-icon-Dax-ZiWV.js";
40
40
  const Ne = { class: "table-section" }, Le = { class: "table-section-header" }, $e = { class: "table-toolbar" }, Ve = { class: "table-scroll-wrapper" }, Pe = { class: "report-table" }, Ue = { key: 0 }, Ke = ["colspan"], Be = { class: "table-pagination" }, qe = { class: "page-info" }, ze = { class: "page-controls" }, We = ["disabled"], Xe = { class: "page-num" }, Je = ["disabled"], Ge = {
41
41
  DEFAULT_ICON: Te,