mixdashboards 1.1.21 → 1.1.23

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 (357) hide show
  1. package/dist/{AgActionsRenderer-3HKXKUJY.js → AgActionsRenderer-5w70myzB.js} +1 -1
  2. package/dist/{AgActionsRenderer-DnPvuT_-.cjs → AgActionsRenderer-DyhCl2zz.cjs} +1 -1
  3. package/dist/{AgGridTable-BQvI6jpO.cjs → AgGridTable-CDcTnAen.cjs} +1 -1
  4. package/dist/{AgGridTable-BQ8M3fDj.js → AgGridTable-CktZxLim.js} +1 -1
  5. package/dist/{BaseComponent-Dn65PXTp.js → BaseComponent-BppXM0zf.js} +3 -3
  6. package/dist/{BaseComponent-DKuQG62G.cjs → BaseComponent-oKNx9Ues.cjs} +1 -1
  7. package/dist/{EChartComponentBase-8GSbyY5P.cjs → EChartComponentBase-EgcDDKn2.cjs} +1 -1
  8. package/dist/{EChartComponentBase-skupRYzl.js → EChartComponentBase-nG6UXIUB.js} +2 -2
  9. package/dist/{EmergencyPlanPanel-DLvOrE5U.cjs → EmergencyPlanPanel-B1eIafEC.cjs} +1 -1
  10. package/dist/{EmergencyPlanPanel-C4OsnsPP.js → EmergencyPlanPanel-D_4Fn5SO.js} +1 -1
  11. package/dist/{HistoryPlanDialog-DI0H_vgZ.js → HistoryPlanDialog-CEwhx44E.js} +1 -1
  12. package/dist/{HistoryPlanDialog--99rPq54.cjs → HistoryPlanDialog-hp8-y_lT.cjs} +1 -1
  13. package/dist/{MixiotAppDetailPage-4mYR4gHm.cjs → MixiotAppDetailPage-BjQ8xhQq.cjs} +1 -1
  14. package/dist/{MixiotAppDetailPage-C_NrtqJU.js → MixiotAppDetailPage-CtW2uh3e.js} +1 -1
  15. package/dist/{MonitoringMap-Gxy8ldt1.js → MonitoringMap-BvcCSGLu.js} +2 -2
  16. package/dist/{MonitoringMap-CstXoU8n.cjs → MonitoringMap-DQvaJ3cy.cjs} +1 -1
  17. package/dist/{UniverSheet-DGNOHAEJ.js → UniverSheet-BkiTo3FI.js} +2 -2
  18. package/dist/{UniverSheet-phDDfwXk.cjs → UniverSheet-DqpoNfxC.cjs} +1 -1
  19. package/dist/{accelerationChart-B_y_8Y4q.cjs → accelerationChart-BlqnD3ZO.cjs} +1 -1
  20. package/dist/{accelerationChart-C4JTCc65.js → accelerationChart-DZFOLlGl.js} +2 -2
  21. package/dist/{actionItem-CGOgCPJR.js → actionItem-BamQ9wHb.js} +2 -2
  22. package/dist/{actionItem-Bdw3MAAf.cjs → actionItem-Dswx8azg.cjs} +1 -1
  23. package/dist/{alarmLevelChart-BQF-4a0s.js → alarmLevelChart-D89lJkJp.js} +2 -2
  24. package/dist/{alarmLevelChart-CY4GqDio.cjs → alarmLevelChart-euP-K6Eh.cjs} +1 -1
  25. package/dist/{alertTable-DgiRdm5f.js → alertTable-C_KEi2iA.js} +2 -2
  26. package/dist/{alertTable-D3riLPwz.cjs → alertTable-ZrYSUz-T.cjs} +1 -1
  27. package/dist/{aliasObjectSelectorDemo-DXFCCnvj.cjs → aliasObjectSelectorDemo-Cfs07tyO.cjs} +1 -1
  28. package/dist/{aliasObjectSelectorDemo-C7gQUdGu.js → aliasObjectSelectorDemo-NiBEw-mA.js} +1 -1
  29. package/dist/{annualRainfallChart-C1yG42iq.js → annualRainfallChart-A95P4AEf.js} +2 -2
  30. package/dist/{annualRainfallChart-D3oUahrK.cjs → annualRainfallChart-Djb5QJ-h.cjs} +1 -1
  31. package/dist/{aqi-DLqM9gGc.js → aqi-CNSzrLpl.js} +2 -2
  32. package/dist/{aqi-B3g_go92.cjs → aqi-COyB9n8o.cjs} +1 -1
  33. package/dist/{aqiIndass-DRYU-FAs.cjs → aqiIndass-7m16-XLR.cjs} +1 -1
  34. package/dist/{aqiIndass-DDtB5_wf.js → aqiIndass-C6chEVOK.js} +2 -2
  35. package/dist/{areaDeformCurve-DaLtFoJT.js → areaDeformCurve-Cvx5K5KZ.js} +2 -2
  36. package/dist/{areaDeformCurve-CnvUJY_x.cjs → areaDeformCurve-Rsny7t_k.cjs} +1 -1
  37. package/dist/{arrayCard-9p0Bkc_e.cjs → arrayCard-C4BO5wUS.cjs} +1 -1
  38. package/dist/{arrayCard-FYb8TmUw.js → arrayCard-XkZcuTc2.js} +2 -2
  39. package/dist/{audio-DGxXcB0a.cjs → audio-Dkj1kTtj.cjs} +1 -1
  40. package/dist/{audio-BBXpJP54.js → audio-DyEuCoVg.js} +2 -2
  41. package/dist/{bar-D26zndUl.js → bar-KH_MWom4.js} +2 -2
  42. package/dist/{bar-btY9Pwkk.cjs → bar-lrGCFy3V.cjs} +1 -1
  43. package/dist/{basicShapeToolbox-XR_NHK87.cjs → basicShapeToolbox-DRXBPX0p.cjs} +1 -1
  44. package/dist/{basicShapeToolbox-Y6mXTA8o.js → basicShapeToolbox-O828p_f2.js} +2 -2
  45. package/dist/{bmp-DlSoc3Rw.cjs → bmp-BcAuwVEV.cjs} +1 -1
  46. package/dist/{bmp-C7tYeLi0.js → bmp-DVP8hR6v.js} +2 -2
  47. package/dist/{box-DroQaZjH.js → box-CIpRedoA.js} +2 -2
  48. package/dist/{box-DyIX9weX.cjs → box-K-VpApOq.cjs} +1 -1
  49. package/dist/{chartConfigPanel-DvTKL5EZ.cjs → chartConfigPanel-CbSTq7Uc.cjs} +1 -1
  50. package/dist/{chartConfigPanel-D4dbsVKj.js → chartConfigPanel-DvLs-ST_.js} +1 -1
  51. package/dist/{circleBar-DCnx8wNj.js → circleBar-BJiYA0I7.js} +2 -2
  52. package/dist/{circleBar-DulXgWd8.cjs → circleBar-BcWg5DUN.cjs} +1 -1
  53. package/dist/{clock-CeM6LdAl.cjs → clock-BkxKCVkd.cjs} +1 -1
  54. package/dist/{clock-B1X6vX22.js → clock-DY-m6uU8.js} +2 -2
  55. package/dist/{clt-IAzRVgiu.js → clt-3BsKSjrA.js} +2 -2
  56. package/dist/{clt-CcpO8rrD.cjs → clt-CzE6V7Mo.cjs} +1 -1
  57. package/dist/{cmc-B4xRwSti.cjs → cmc-B48WvFoD.cjs} +1 -1
  58. package/dist/{cmc-Swd4NfxE.js → cmc-CN3HZPkZ.js} +2 -2
  59. package/dist/{cmp--gCtei5x.js → cmp-BGyKJxgJ.js} +2 -2
  60. package/dist/{cmp-B9Aip3T2.cjs → cmp-DQXfLw3q.cjs} +1 -1
  61. package/dist/{conclusionCard-CRif9GmS.cjs → conclusionCard-BKGc-jAW.cjs} +1 -1
  62. package/dist/{conclusionCard-DQ0HTHsg.js → conclusionCard-Bjjq5ydK.js} +2 -2
  63. package/dist/{controlList-CwLNEkAi.cjs → controlList-DIQaaHzW.cjs} +1 -1
  64. package/dist/{controlList-4TidO_XJ.js → controlList-DbgerZgl.js} +4 -4
  65. package/dist/{controlRecordList-dPW6e4FN.js → controlRecordList-Cm5kuri9.js} +3 -3
  66. package/dist/{controlRecordList-CuvV65TE.cjs → controlRecordList-gX1bBSdd.cjs} +1 -1
  67. package/dist/{controlRecordListAPP-DCzTOeXr.cjs → controlRecordListAPP-BJtuTA_v.cjs} +1 -1
  68. package/dist/{controlRecordListAPP-CObVdW3l.js → controlRecordListAPP-CywYspwG.js} +2 -2
  69. package/dist/{crd-AH_sGivo.cjs → crd-BV-uMbgA.cjs} +1 -1
  70. package/dist/{crd-CEWC005o.js → crd-brsp3q42.js} +2 -2
  71. package/dist/{ctrBtn-8xev-mny.js → ctrBtn-v3TaYFER.js} +3 -3
  72. package/dist/{ctrBtn-nYp9T0n0.cjs → ctrBtn-vLEwc04q.cjs} +1 -1
  73. package/dist/{ctrSet-z_9ztVyG.cjs → ctrSet--QCLNHTM.cjs} +1 -1
  74. package/dist/{ctrSet-3Q4eJSfK.js → ctrSet-CwOz-1q8.js} +3 -3
  75. package/dist/{ctrSwitch-BhqYXTMZ.js → ctrSwitch-B0wzsUx-.js} +3 -3
  76. package/dist/{ctrSwitch-DacpvyBJ.cjs → ctrSwitch-VnJgIwNZ.cjs} +1 -1
  77. package/dist/{dataManagement-BiPhJbF1.js → dataManagement-Buj3liEA.js} +2 -2
  78. package/dist/{dataManagement-DP1Chfo2.cjs → dataManagement-HlKhW6uM.cjs} +1 -1
  79. package/dist/{dataReport-CQaL-d_q.js → dataReport-81aUJpN3.js} +2 -2
  80. package/dist/{dataReport-C_8TF5Dz.cjs → dataReport-DefSBauC.cjs} +1 -1
  81. package/dist/{dataTable-D6-325qb.cjs → dataTable-Do1eIYVl.cjs} +1 -1
  82. package/dist/{dataTable-Bbx5XgV-.js → dataTable-gB3dhTod.js} +1 -1
  83. package/dist/{datetime-CmXZdgkW.js → datetime-BD82Foh8.js} +2 -2
  84. package/dist/{datetime-DBrUO7wD.cjs → datetime-Ci2923_w.cjs} +1 -1
  85. package/dist/{deepClusterSlipSurface-Ch8i2ql5.cjs → deepClusterSlipSurface-C3WuaKgL.cjs} +1 -1
  86. package/dist/{deepClusterSlipSurface-D7o7mgg7.js → deepClusterSlipSurface-DnGCI-37.js} +2 -2
  87. package/dist/{deepDataMatrix-DoM8KUHn.cjs → deepDataMatrix-DqLO9LMn.cjs} +1 -1
  88. package/dist/{deepDataMatrix-D9GCg496.js → deepDataMatrix-T5vhXxB2.js} +2 -2
  89. package/dist/{deepDisplacement3D-C8ZRCP-R.cjs → deepDisplacement3D-9al5iKRo.cjs} +1 -1
  90. package/dist/{deepDisplacement3D-Cjx11pre.js → deepDisplacement3D-CaBrvaDB.js} +2 -2
  91. package/dist/{deepDisplacementChart-BHe83IoB.js → deepDisplacementChart-BiZTrFbd.js} +3 -3
  92. package/dist/{deepDisplacementChart-HuWab3pz.js → deepDisplacementChart-CnP_pT6q.js} +2 -2
  93. package/dist/{deepDisplacementChart-BlcS3DVl.cjs → deepDisplacementChart-Cxt1sX_9.cjs} +1 -1
  94. package/dist/{deepDisplacementChart-r3GIC8hq.cjs → deepDisplacementChart-DsKqhf_D.cjs} +1 -1
  95. package/dist/{deepDisplacementView-BHZQ4s3K.cjs → deepDisplacementView-BnxNFHro.cjs} +1 -1
  96. package/dist/{deepDisplacementView-B4RBH8Ie.js → deepDisplacementView-CCZGM1os.js} +1 -1
  97. package/dist/{deepNodeTemperatureChart-BswYkP9V.cjs → deepNodeTemperatureChart-BHk_DHiI.cjs} +1 -1
  98. package/dist/{deepNodeTemperatureChart-D9maVN-M.js → deepNodeTemperatureChart-D3DPkDpP.js} +2 -2
  99. package/dist/{deepTangentAngleChart-DIWKa8r3.js → deepTangentAngleChart-Ay6ubBII.js} +2 -2
  100. package/dist/{deepTangentAngleChart-DQxOv4Vz.cjs → deepTangentAngleChart-CtkMWMGi.cjs} +1 -1
  101. package/dist/{deepTemperatureField-DlLLcuFb.js → deepTemperatureField-B3a4_a4e.js} +3 -3
  102. package/dist/{deepTemperatureField-2GBzigs_.cjs → deepTemperatureField-DoM1mpkc.cjs} +1 -1
  103. package/dist/{deepTrendChart-CbYdfjcX.cjs → deepTrendChart-8Ffk7Fyh.cjs} +1 -1
  104. package/dist/{deepTrendChart-CdX41nqe.js → deepTrendChart-DrZH4tDh.js} +2 -2
  105. package/dist/{deviceOnlineStatus-BMfNv4fX.cjs → deviceOnlineStatus-BLBrn2kY.cjs} +1 -1
  106. package/dist/{deviceOnlineStatus-BdOeLbLy.js → deviceOnlineStatus-DN14uxWu.js} +2 -2
  107. package/dist/{deviceStatus-CbYBmGvy.cjs → deviceStatus-BhbD8x9n.cjs} +1 -1
  108. package/dist/{deviceStatus-B8Ijgoyf.js → deviceStatus-CizZRyZx.js} +2 -2
  109. package/dist/{displacementDataTable-BI8cE-vY.cjs → displacementDataTable-B7j99TqQ.cjs} +1 -1
  110. package/dist/{displacementDataTable-Cqi5Ql6a.js → displacementDataTable-CEN0P6Hl.js} +2 -2
  111. package/dist/{displacementTrajectoryChart-D1UPR4dt.js → displacementTrajectoryChart-DZL3OfqG.js} +2 -2
  112. package/dist/{displacementTrajectoryChart-DJM_B-gL.cjs → displacementTrajectoryChart-DqoqLg9m.cjs} +1 -1
  113. package/dist/{displacementTrendChart-C4jvpdRY.cjs → displacementTrendChart-5L8B5miy.cjs} +1 -1
  114. package/dist/{displacementTrendChart-Dii90QjN.js → displacementTrendChart-CtFxdr4I.js} +2 -2
  115. package/dist/{dxf-DAAwQlgQ.js → dxf-Db7pX1rT.js} +2 -2
  116. package/dist/{dxf-DsJIwOOJ.cjs → dxf-Mdf7-mCg.cjs} +1 -1
  117. package/dist/{dzc-CpML7WAZ.cjs → dzc-7yMgyL71.cjs} +1 -1
  118. package/dist/{dzc-BjOYTnIF.js → dzc-DUmJRH1P.js} +2 -2
  119. package/dist/{emergencyPlan-DWpGIszu.cjs → emergencyPlan-BAgYZfNI.cjs} +1 -1
  120. package/dist/{emergencyPlan-DeL1roPL.js → emergencyPlan-CZMk_c0e.js} +3 -3
  121. package/dist/{evn-D0ROeiQD.cjs → evn-3POR_VnU.cjs} +1 -1
  122. package/dist/{evn-CUajXlYc.js → evn-D8iCkbir.js} +2 -2
  123. package/dist/{evolutionChart-D23ALmPJ.cjs → evolutionChart-D3FB5zxu.cjs} +1 -1
  124. package/dist/{evolutionChart-B-2W9qVE.js → evolutionChart-DQvwRUdy.js} +3 -3
  125. package/dist/{fileViewer-DHDmo6px.cjs → fileViewer-WkV-zAO7.cjs} +1 -1
  126. package/dist/{fileViewer-D6-jyRWy.js → fileViewer-rCVtd7T0.js} +2 -2
  127. package/dist/{filterBar-Cw-wbtF1.js → filterBar-DlSxn_wD.js} +2 -2
  128. package/dist/{filterBar-Bx0qkR7L.cjs → filterBar-DltIdPWJ.cjs} +1 -1
  129. package/dist/{fireCombustionCurve-wPPE55j_.js → fireCombustionCurve-1y5hK4L5.js} +3 -3
  130. package/dist/{fireCombustionCurve-Dj2o6qcy.cjs → fireCombustionCurve-HawHjc-M.cjs} +1 -1
  131. package/dist/{fireFilterBar-COgdZt2b.js → fireFilterBar-BlqbGOP4.js} +2 -2
  132. package/dist/{fireFilterBar-t-aUk0FZ.cjs → fireFilterBar-DAZT-Bpx.cjs} +1 -1
  133. package/dist/{fireHistoryTable-Em_cwZSy.js → fireHistoryTable-TJBxXMbO.js} +2 -2
  134. package/dist/{fireHistoryTable-BgzroLVi.cjs → fireHistoryTable-Xnho__5M.cjs} +1 -1
  135. package/dist/{gag-Dd-osrR9.js → gag-2bC1SX8z.js} +2 -2
  136. package/dist/{gag-C5gOltT8.cjs → gag-BWyurWbj.cjs} +1 -1
  137. package/dist/{gasStationList-CepcJ9BG.js → gasStationList-ByDfA1ME.js} +3 -3
  138. package/dist/{gasStationList-CKe02Teb.cjs → gasStationList-E8nroJxH.cjs} +1 -1
  139. package/dist/{geo3dViewer-yHqVv2BH.js → geo3dViewer-DWZgiNmX.js} +3 -3
  140. package/dist/{geo3dViewer-CSq4-kE-.cjs → geo3dViewer-DdckADaP.cjs} +1 -1
  141. package/dist/{glbModel-CBM7-1vZ.cjs → glbModel-BuDBHnle.cjs} +1 -1
  142. package/dist/{glbModel-DFDIJi5z.js → glbModel-TWsPG1jm.js} +2 -2
  143. package/dist/{globalObjectSelector-BoBf_njv.js → globalObjectSelector-BfXFpIT4.js} +1 -1
  144. package/dist/{globalObjectSelector-BvK0QxXk.cjs → globalObjectSelector-DkGvaSLm.cjs} +1 -1
  145. package/dist/{gnssFilterBar-C4Ozsjee.js → gnssFilterBar--IPnNd_X.js} +2 -2
  146. package/dist/{gnssFilterBar-BabiLlIC.cjs → gnssFilterBar-DUtrx67L.cjs} +1 -1
  147. package/dist/{gnssHistoryTable-DWICO-OK.js → gnssHistoryTable-BBUFmkql.js} +2 -2
  148. package/dist/{gnssHistoryTable-CEtxui4z.cjs → gnssHistoryTable-DqmU1v9p.cjs} +1 -1
  149. package/dist/{gnssMapView-C5IzKoTF.cjs → gnssMapView-BjxSphVu.cjs} +2 -2
  150. package/dist/{gnssMapView-CgLO6fng.js → gnssMapView-CuYU8-Sb.js} +4 -4
  151. package/dist/{gnssSectionProfile-BFU5_iQa.js → gnssSectionProfile-BO7DLZw4.js} +2 -2
  152. package/dist/{gnssSectionProfile-BcS3AU5H.cjs → gnssSectionProfile-DBzpNVU4.cjs} +1 -1
  153. package/dist/{gnssTimeSeriesChart-2AOe01nY.cjs → gnssTimeSeriesChart-BB0bCkKI.cjs} +1 -1
  154. package/dist/{gnssTimeSeriesChart-Cyc9JVmX.js → gnssTimeSeriesChart-DBsNpdMg.js} +2 -2
  155. package/dist/{gnssXYTrajectory-B3HDdORI.cjs → gnssXYTrajectory-B1OBq_4e.cjs} +1 -1
  156. package/dist/{gnssXYTrajectory-DAjqaaOt.js → gnssXYTrajectory-w4zrq5tm.js} +2 -2
  157. package/dist/{grd-jisN3fY_.cjs → grd-BpRLvbmM.cjs} +1 -1
  158. package/dist/{grd-BdraSTc0.js → grd-Dk8p1C9M.js} +2 -2
  159. package/dist/{grdIndass-BuEWpm2p.js → grdIndass-3Nk4a_rb.js} +2 -2
  160. package/dist/{grdIndass-BxJWHgbc.cjs → grdIndass-UDpY-94l.cjs} +1 -1
  161. package/dist/{grg-BiUyteXn.js → grg-CwPVp18v.js} +2 -2
  162. package/dist/{grg-DHDNZzvS.cjs → grg-Dapz4hmC.cjs} +1 -1
  163. package/dist/{gridview-DsDgxIu-.js → gridview-BPdaWTQ-.js} +2 -2
  164. package/dist/{gridview-C2eGcIgv.cjs → gridview-CEmHdQmQ.cjs} +1 -1
  165. package/dist/{groundwaterFilterBar-CwNVHLoq.js → groundwaterFilterBar-CPmbtMUK.js} +2 -2
  166. package/dist/{groundwaterFilterBar-Dwoyvzll.cjs → groundwaterFilterBar-DdrB2OhL.cjs} +1 -1
  167. package/dist/{groundwaterProfileChart-xVZS96Bs.cjs → groundwaterProfileChart--_aICdsm.cjs} +2 -2
  168. package/dist/{groundwaterProfileChart-pYkKSQRV.js → groundwaterProfileChart-rTFbKcTT.js} +3 -3
  169. package/dist/{groundwaterTimeCurve-CRic1FkR.js → groundwaterTimeCurve-BMhhLifW.js} +3 -3
  170. package/dist/{groundwaterTimeCurve-CCP0yOcn.cjs → groundwaterTimeCurve-DhiEP70g.cjs} +1 -1
  171. package/dist/{groupCard-9mvfU5Qi.cjs → groupCard-BEXXZr5H.cjs} +1 -1
  172. package/dist/{groupCard-DyiQzmSU.js → groupCard-Cd-SjK0D.js} +2 -2
  173. package/dist/{headerBar-CT2WWLFX.js → headerBar-CkP6zJ6m.js} +2 -2
  174. package/dist/{headerBar-BnZZrxdl.cjs → headerBar-DONbsve9.cjs} +1 -1
  175. package/dist/{history-Dm7563t_.cjs → history-CgrmMOpp.cjs} +1 -1
  176. package/dist/{history-CY_TCu9h.js → history-DA3HuWif.js} +1 -1
  177. package/dist/{index-CPTJIw32.js → index-BK7gdNxS.js} +2 -2
  178. package/dist/{index-DoEyCVDU.cjs → index-ucOU7Nfo.cjs} +2 -2
  179. package/dist/{insarDeformChart-D7r5dP7T.cjs → insarDeformChart-DxIuzMiF.cjs} +1 -1
  180. package/dist/{insarDeformChart-Bf6Q1Kll.js → insarDeformChart-ePJmJDWH.js} +2 -2
  181. package/dist/{insarImageViewer-CupmlYkz.js → insarImageViewer-CUl6mPHo.js} +2 -2
  182. package/dist/{insarImageViewer-Cj6ywbUG.cjs → insarImageViewer-D6VvwZOs.cjs} +1 -1
  183. package/dist/{kds-vKrvUAFM.js → kds-DKrmV1Ug.js} +2 -2
  184. package/dist/{kds-BXJfeT1L.cjs → kds-ixp_4Q7d.cjs} +1 -1
  185. package/dist/{kpiCard-SXeIckZe.cjs → kpiCard-Frhjsrok.cjs} +1 -1
  186. package/dist/{kpiCard-DxJnC2K1.js → kpiCard-VfiVkVE5.js} +2 -2
  187. package/dist/{landslideMap-g1sW7hGk.js → landslideMap-BmpgIOKU.js} +3 -3
  188. package/dist/{landslideMap-Byzuh2uI.cjs → landslideMap-Cefd78Hr.cjs} +1 -1
  189. package/dist/{landslideWarning-K2gltHjy.js → landslideWarning-C9w1g1eJ.js} +5 -5
  190. package/dist/{landslideWarning-DBYw20My.cjs → landslideWarning-CJwHD2g-.cjs} +1 -1
  191. package/dist/{layerTabs-pQHCSR8d.cjs → layerTabs-BWcJvu6o.cjs} +1 -1
  192. package/dist/{layerTabs-DhKwbCdm.js → layerTabs-CaYr3bVt.js} +2 -2
  193. package/dist/{leaflet-src-CLsvhZ1a.js → leaflet-src-CG0fL6E7.js} +1 -1
  194. package/dist/{leaflet-src-BNvMLv27.cjs → leaflet-src-cP_Xp59B.cjs} +1 -1
  195. package/dist/{lerc-7GSCiwa9.cjs → lerc-Dxyjp3lu.cjs} +1 -1
  196. package/dist/{lerc-CqUbnv8h.js → lerc-nA_bKo1b.js} +2 -2
  197. package/dist/{lin-D0itRkyl.cjs → lin-C9er-MKT.cjs} +1 -1
  198. package/dist/{lin-Bq35ycag.js → lin-d59CtiiD.js} +2 -2
  199. package/dist/{linIndass-DYq4eFAR.js → linIndass-BDTgMTrg.js} +2 -2
  200. package/dist/{linIndass-DWiz2vOV.cjs → linIndass-DPzJBKg2.cjs} +1 -1
  201. package/dist/{lst-DdajeugL.cjs → lst-CBn0m9tV.cjs} +1 -1
  202. package/dist/{lst-qvTez4v1.js → lst-_ruZrHgl.js} +2 -2
  203. package/dist/{manualEntry-D33u42uH.js → manualEntry-Czhqjh1V.js} +2 -2
  204. package/dist/{manualEntry-s4RAoEru.cjs → manualEntry-XpeHQjMv.cjs} +1 -1
  205. package/dist/{mapBackground-DM72oEn2.js → mapBackground-Byx5BgIh.js} +3 -3
  206. package/dist/{mapBackground-YtkaIPHY.cjs → mapBackground-CXtkx_cW.cjs} +1 -1
  207. package/dist/{mappingList-Dy_UeCUf.js → mappingList-BopA1RgG.js} +4 -4
  208. package/dist/{mappingList-Ch1HZwNc.cjs → mappingList-DF5tjtEH.cjs} +1 -1
  209. package/dist/{markdownViewer-DUjEXMVH.cjs → markdownViewer-ByvWuLpI.cjs} +1 -1
  210. package/dist/{markdownViewer-ZlwNlmLZ.js → markdownViewer-TG5ukdzU.js} +2 -2
  211. package/dist/{mix-control-modal-tXOouBPe.js → mix-control-modal-DLx3NuPd.js} +1 -1
  212. package/dist/{mix-control-modal-B3FrB7Jt.cjs → mix-control-modal-N8G3c3I-.cjs} +1 -1
  213. package/dist/{mixGrid-BU9U3aHI.cjs → mixGrid-BaZ7KaQS.cjs} +1 -1
  214. package/dist/{mixGrid-CogLsRzO.js → mixGrid-Beb6WPO1.js} +2 -2
  215. package/dist/mixdashboards.cjs +1 -1
  216. package/dist/mixdashboards.js +1 -1
  217. package/dist/{mjpegCamera-xUmmLzM-.js → mjpegCamera-BP-IbOTc.js} +2 -2
  218. package/dist/{mjpegCamera-g6FXbrP3.cjs → mjpegCamera-V98e_6FG.cjs} +1 -1
  219. package/dist/{monitorAlert-DZd5lJOJ.cjs → monitorAlert-BVS_Z8Dg.cjs} +1 -1
  220. package/dist/{monitorAlert-DhE_HvpR.js → monitorAlert-C0ZCmaZ_.js} +2 -2
  221. package/dist/{monitorData-CpWVhINV.cjs → monitorData-B1J-ygKQ.cjs} +1 -1
  222. package/dist/{monitorData-BnEkcdiN.js → monitorData-kf9OOmfz.js} +2 -2
  223. package/dist/{monitorSpeedChart-DwsoytUF.cjs → monitorSpeedChart--uIBgS1h.cjs} +1 -1
  224. package/dist/{monitorSpeedChart-CeW-Kk03.js → monitorSpeedChart-C4prba7u.js} +1 -1
  225. package/dist/{mxa-C58deh1I.js → mxa-BGzu1fVC.js} +2 -2
  226. package/dist/{mxa-0DZWI1xK.cjs → mxa-Dme1Zt_A.cjs} +1 -1
  227. package/dist/{myValue-B4ADQTTG.js → myValue-BvQtzCg8.js} +2 -2
  228. package/dist/{myValue-DQLm9XLI.cjs → myValue-G7YgrZEi.cjs} +1 -1
  229. package/dist/{myValueList-DZA9_HEh.cjs → myValueList-BkK57nlP.cjs} +1 -1
  230. package/dist/{myValueList-baXd51uR.js → myValueList-DZnNcwD1.js} +2 -2
  231. package/dist/{objectList-5m0NKALq.js → objectList-C3aDc79p.js} +4 -4
  232. package/dist/{objectList-BHmAruDg.cjs → objectList-CnZ4cQ35.cjs} +1 -1
  233. package/dist/{objectListAPP-COZlfKyw.js → objectListAPP-BPDJsUvS.js} +3 -3
  234. package/dist/{objectListAPP-Cs7Wu_86.cjs → objectListAPP-CPf3_qV6.cjs} +1 -1
  235. package/dist/{percentBar-CPfJrspp.cjs → percentBar-DveWRDZa.cjs} +1 -1
  236. package/dist/{percentBar-BV6nG2iK.js → percentBar-uDksWDo8.js} +2 -2
  237. package/dist/{photo-C4739K_A.cjs → photo-CoFS3w73.cjs} +1 -1
  238. package/dist/{photo-DK4Z23e3.js → photo-DF7-r79s.js} +2 -2
  239. package/dist/{pie-kb79hzax.cjs → pie-BcMX-6hx.cjs} +1 -1
  240. package/dist/{pie-Lx2zjyZY.js → pie-C-lL_OxY.js} +2 -2
  241. package/dist/{placeholder-CAWJju9d.cjs → placeholder-BBIq0zrf.cjs} +1 -1
  242. package/dist/{placeholder-Cv_i5j6V.js → placeholder-BUWbejeA.js} +1 -1
  243. package/dist/{pressBtn-DPp2yGFb.cjs → pressBtn-BdqLTZEg.cjs} +1 -1
  244. package/dist/{pressBtn-DwN7ExMn.js → pressBtn-s3cYVRzz.js} +3 -3
  245. package/dist/{processTable-DRzy2-fX.js → processTable-BMGcrtVo.js} +2 -2
  246. package/dist/{processTable-kGjdZ2SC.cjs → processTable-CtX3EbAy.cjs} +1 -1
  247. package/dist/{progressBar-D5GyaH8h.js → progressBar-DVBbUSKz.js} +2 -2
  248. package/dist/{progressBar-89gQ5oSf.cjs → progressBar-DkxV3lH4.cjs} +1 -1
  249. package/dist/{progressCircle-D6jGTviS.cjs → progressCircle-BTBFvBug.cjs} +1 -1
  250. package/dist/{progressCircle-C0qoN2X2.js → progressCircle-yhA1gSIx.js} +2 -2
  251. package/dist/{qrcode-DutO28qr.cjs → qrcode-BvUtJEcC.cjs} +1 -1
  252. package/dist/{qrcode-B7wIdO7u.js → qrcode-DMALwnTP.js} +2 -2
  253. package/dist/{raceBar-JrtM5isa.js → raceBar-DMVKWWNz.js} +2 -2
  254. package/dist/{raceBar-Kb4Ok0_0.cjs → raceBar-DvsXDDGV.cjs} +1 -1
  255. package/dist/{rad-BKh0I2W8.cjs → rad-BM2lPFkw.cjs} +1 -1
  256. package/dist/{rad-NhNcdAlO.js → rad-DUODmeni.js} +2 -2
  257. package/dist/{radarMapViewer-a-NY9MyR.cjs → radarMapViewer-2lMTV5vh.cjs} +1 -1
  258. package/dist/{radarMapViewer-BrGy_wsI.js → radarMapViewer-MrBQfMft.js} +2 -2
  259. package/dist/{rainfallFilterBar-CiVPGG1P.js → rainfallFilterBar-KgF4B7vU.js} +2 -2
  260. package/dist/{rainfallFilterBar-DlJryHw0.cjs → rainfallFilterBar-uA3YceH3.cjs} +1 -1
  261. package/dist/{rainfallTimeCurve-cYcKHYUj.cjs → rainfallTimeCurve-CrxG_T83.cjs} +1 -1
  262. package/dist/{rainfallTimeCurve-BwrlePpg.js → rainfallTimeCurve-D-n10joM.js} +3 -3
  263. package/dist/{rangeLin-CPKLO87X.js → rangeLin-BidSG4I4.js} +2 -2
  264. package/dist/{rangeLin-B24wJK2h.cjs → rangeLin-CG5Al_0h.cjs} +1 -1
  265. package/dist/{realtimeEvolutionMap-CHQ7-WE1.cjs → realtimeEvolutionMap-0sytTgyc.cjs} +1 -1
  266. package/dist/{realtimeEvolutionMap-ZFozACoZ.js → realtimeEvolutionMap-COR7Iu6m.js} +2 -2
  267. package/dist/{regionBar-Cz4GtJuo.js → regionBar-D83FYXIC.js} +2 -2
  268. package/dist/{regionBar-Dgv2JYSM.cjs → regionBar-DeN3pSgU.cjs} +1 -1
  269. package/dist/{request-aXSa-Jdv.js → request-B8xMI2Yd.js} +1 -1
  270. package/dist/{request-Dm2cf1Aw.cjs → request-P0isWVMj.cjs} +1 -1
  271. package/dist/{retainer1-B4KyW6bw.js → retainer1-DXCh3XD5.js} +3 -3
  272. package/dist/{retainer1-B6byWkE5.cjs → retainer1-QYXjY_-E.cjs} +1 -1
  273. package/dist/{retainer2-X6vRW_D5.js → retainer2-D9URWKd4.js} +3 -3
  274. package/dist/{retainer2-B06eGTYw.cjs → retainer2-DOL6R_wh.cjs} +1 -1
  275. package/dist/{retainerRecordList-C8wYAf_v.cjs → retainerRecordList-BrVOOzTp.cjs} +1 -1
  276. package/dist/{retainerRecordList-DDZSYpCF.js → retainerRecordList-DIJFqgdd.js} +4 -4
  277. package/dist/{retainerRecordListAPP-BHu691JS.cjs → retainerRecordListAPP-Bhhxg_6S.cjs} +1 -1
  278. package/dist/{retainerRecordListAPP-B2Lp-jHM.js → retainerRecordListAPP-CWfMiez9.js} +3 -3
  279. package/dist/{ringTopN-DX7OzPp7.js → ringTopN-71Wbku4t.js} +2 -2
  280. package/dist/{ringTopN-BpJZOE13.cjs → ringTopN-D2GoQZuJ.cjs} +1 -1
  281. package/dist/{riskRegionTable-DziKMS_2.cjs → riskRegionTable-B5dggNUC.cjs} +1 -1
  282. package/dist/{riskRegionTable-D7blgvMi.js → riskRegionTable-BNQTJ2Ge.js} +2 -2
  283. package/dist/{sankey-DjC4IYit.cjs → sankey-CH8gRYkn.cjs} +1 -1
  284. package/dist/{sankey-CmgfktZj.js → sankey-Cx4TqXaN.js} +2 -2
  285. package/dist/{scd-zUFKqN8p.js → scd-Bv-H3GsR.js} +2 -2
  286. package/dist/{scd-QV9whYOR.cjs → scd-C_SMyVrY.cjs} +1 -1
  287. package/dist/{sideMenu-POQpSa8C.cjs → sideMenu-BgvO2fLv.cjs} +1 -1
  288. package/dist/{sideMenu-CI23QNpx.js → sideMenu-CXqsSPSw.js} +2 -2
  289. package/dist/{slopeStability-E55huDws.js → slopeStability-BhAvmLBt.js} +2 -2
  290. package/dist/{slopeStability-Da70drIy.cjs → slopeStability-BoZcq3-T.cjs} +1 -1
  291. package/dist/{speedCurve-BhhUH79z.js → speedCurve-CWlf_Nax.js} +2 -2
  292. package/dist/{speedCurve-DSX1UJeW.cjs → speedCurve-CbrfiREi.cjs} +1 -1
  293. package/dist/{stackedBar-bgd2Ls04.js → stackedBar-BlnGr__w.js} +2 -2
  294. package/dist/{stackedBar-B0kr6QB7.cjs → stackedBar-n3cD2rDv.cjs} +1 -1
  295. package/dist/{stationList-D7k3Lot6.js → stationList-B2yEOYuh.js} +3 -3
  296. package/dist/{stationList-BSPTM0iI.cjs → stationList-CSNVN5HU.cjs} +1 -1
  297. package/dist/{stressFilterBar-Beupo7Zb.js → stressFilterBar-D4Sdfotu.js} +2 -2
  298. package/dist/{stressFilterBar-B3gk67B_.cjs → stressFilterBar-DzQ8jZ-7.cjs} +1 -1
  299. package/dist/{stressTimeCurve-DGBhkdbV.js → stressTimeCurve-DJNdn5mr.js} +3 -3
  300. package/dist/{stressTimeCurve-CbhFLXzA.cjs → stressTimeCurve-TsYsP2md.cjs} +1 -1
  301. package/dist/{swiper-UlVDFht8.cjs → swiper-DN_mRgrR.cjs} +1 -1
  302. package/dist/{swiper-BEau8Ehu.js → swiper-NMnLjniT.js} +2 -2
  303. package/dist/{tablemanCreate-WnNbHft8.js → tablemanCreate-79e2NgHq.js} +3 -3
  304. package/dist/{tablemanCreate-CF_D5gYW.cjs → tablemanCreate-CUU2ivYP.cjs} +1 -1
  305. package/dist/{tablemanDetail-yz3zQnFP.js → tablemanDetail-BJFScfLt.js} +4 -4
  306. package/dist/{tablemanDetail-_SNevfWv.cjs → tablemanDetail-Bn4EaFr9.cjs} +1 -1
  307. package/dist/{tablemanList-CzcVRDtI.js → tablemanList-BQVVSjNO.js} +4 -4
  308. package/dist/{tablemanList-CDJWp9Pu.cjs → tablemanList-UEqR1zbO.cjs} +1 -1
  309. package/dist/{tablemanTableList-Bm2fU0EX.js → tablemanTableList-BjeXb-Ed.js} +4 -4
  310. package/dist/{tablemanTableList-DX76_Wzv.cjs → tablemanTableList-CmNEMn22.cjs} +1 -1
  311. package/dist/{tablemanUpdate-zmDu6tfj.js → tablemanUpdate-CxYk0Q3p.js} +3 -3
  312. package/dist/{tablemanUpdate-wdF6NUSW.cjs → tablemanUpdate-qLGR6MSw.cjs} +1 -1
  313. package/dist/{terminalConfigList-Dpktm7uo.cjs → terminalConfigList-BRH0eNYF.cjs} +1 -1
  314. package/dist/{terminalConfigList-CCTkfKIn.js → terminalConfigList-BW3lNMcL.js} +4 -4
  315. package/dist/{terminalList-DTG1Cd-P.js → terminalList-CVXWY6gA.js} +4 -4
  316. package/dist/{terminalList-DlnAYr5c.cjs → terminalList-DlUCzkNN.cjs} +1 -1
  317. package/dist/{terminalListAPP-DcG5Iu89.cjs → terminalListAPP-CoYPnl5t.cjs} +1 -1
  318. package/dist/{terminalListAPP-BXX0YEmN.js → terminalListAPP-DgZacL77.js} +3 -3
  319. package/dist/{textbox-C5DmbaFz.cjs → textbox-CetvJfK5.cjs} +1 -1
  320. package/dist/{textbox-DyFcEXBF.js → textbox-zvSPeTYI.js} +2 -2
  321. package/dist/{timeQueryBar-OqKVqlTl.cjs → timeQueryBar-49gMRLtt.cjs} +1 -1
  322. package/dist/{timeQueryBar-BbWq3QkA.js → timeQueryBar-BQpYd4ts.js} +1 -1
  323. package/dist/{timeSeries-D_-6XcY8.js → timeSeries-AIs-H2YX.js} +3 -3
  324. package/dist/{timeSeries-BDp-gfRT.cjs → timeSeries-DUsUOOpX.cjs} +1 -1
  325. package/dist/{timeSeriesCurve-KPYndFEq.cjs → timeSeriesCurve-BoGHV9eI.cjs} +1 -1
  326. package/dist/{timeSeriesCurve-DgSGvMqB.js → timeSeriesCurve-BtY0gTLp.js} +3 -3
  327. package/dist/{toggleBtn-DtS2UoB4.cjs → toggleBtn-C7I9t8fL.cjs} +1 -1
  328. package/dist/{toggleBtn-D0JJAMZR.js → toggleBtn-Dvsu4Z4Y.js} +2 -2
  329. package/dist/{trajectoryConfigPanel-DxBIMfEx.js → trajectoryConfigPanel-Da0ER586.js} +1 -1
  330. package/dist/{trajectoryConfigPanel-Bth1LMLN.cjs → trajectoryConfigPanel-SK9LIASn.cjs} +1 -1
  331. package/dist/{trajectoryScatter-DqgFAVSz.js → trajectoryScatter-DavClc31.js} +2 -2
  332. package/dist/{trajectoryScatter-GkbJne40.cjs → trajectoryScatter-X17m903i.cjs} +1 -1
  333. package/dist/{universalConfigPanel-C4Teu_Op.cjs → universalConfigPanel-JWmYt-sl.cjs} +1 -1
  334. package/dist/{universalConfigPanel-BjyXE23U.js → universalConfigPanel-RqBW3pc4.js} +1 -1
  335. package/dist/{universalTable-BVwrJKq8.js → universalTable-CS7vowNy.js} +2 -2
  336. package/dist/{universalTable-D_rkyBG2.cjs → universalTable-MYoWpBsE.cjs} +1 -1
  337. package/dist/{useMixiotPanelPopperClass-DmA-0R1V.cjs → useMixiotPanelPopperClass-BnYZKYDg.cjs} +1 -1
  338. package/dist/{useMixiotPanelPopperClass-C6Y6iPSp.js → useMixiotPanelPopperClass-T_LvWhgr.js} +1 -1
  339. package/dist/{useTablemanApi-CJh5jpVJ.js → useTablemanApi-BIycvQl_.js} +1 -1
  340. package/dist/{useTablemanApi-Big2Hfsi.cjs → useTablemanApi-DMx5UbHw.cjs} +1 -1
  341. package/dist/{useTablemanFormPanel-prjUDI9m.cjs → useTablemanFormPanel-ClBQuigR.cjs} +1 -1
  342. package/dist/{useTablemanFormPanel-CvrN_jY3.js → useTablemanFormPanel-D2f6Nfjx.js} +2 -2
  343. package/dist/{useTablemanListActions-DVQL1pwu.js → useTablemanListActions-Ijr72FDy.js} +5 -5
  344. package/dist/{useTablemanListActions-B9SrCZRt.cjs → useTablemanListActions-f64pv0oB.cjs} +1 -1
  345. package/dist/{video-CdMEjVoF.cjs → video-CY8G2zF1.cjs} +1 -1
  346. package/dist/{video-DDHDy4Eq.js → video-ljtzNp1v.js} +2 -2
  347. package/dist/{videoMonitor-BZcjaMPX.cjs → videoMonitor-BTEUgf20.cjs} +1 -1
  348. package/dist/{videoMonitor-JQ4tj-qi.js → videoMonitor-DQeE-jAV.js} +2 -2
  349. package/dist/{vlu-Bmqrgnj8.js → vlu-B4m0MEBC.js} +2 -2
  350. package/dist/{vlu-39EqfkCs.cjs → vlu-C3kOWtbl.cjs} +1 -1
  351. package/dist/{warningOverview-DOsI-iKt.cjs → warningOverview-C07K822B.cjs} +1 -1
  352. package/dist/{warningOverview-Ctab9k92.js → warningOverview-HPbxxC5u.js} +3 -3
  353. package/dist/{weather-BwTT4bPM.js → weather-BNczIkOs.js} +2 -2
  354. package/dist/{weather-BfV-w4FG.cjs → weather-Cxg6dVwS.cjs} +1 -1
  355. package/dist/{windLin-Dfz6aBio.cjs → windLin-BQI5vPQo.cjs} +1 -1
  356. package/dist/{windLin-DgZctBal.js → windLin-B_U-SZvj.js} +2 -2
  357. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";var te=Object.defineProperty,ne=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var W=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var $=(p,i,n)=>i in p?te(p,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):p[i]=n,V=(p,i)=>{for(var n in i||(i={}))ae.call(i,n)&&$(p,n,i[n]);if(W)for(var n of W(i))le.call(i,n)&&$(p,n,i[n]);return p},P=(p,i)=>ne(p,oe(i));var D=(p,i,n)=>new Promise((m,k)=>{var j=b=>{try{N(n.next(b))}catch(O){k(O)}},_=b=>{try{N(n.throw(b))}catch(O){k(O)}},N=b=>b.done?m(b.value):Promise.resolve(b.value).then(j,_);N((n=n.apply(p,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),S=require("./index-DoEyCVDU.cjs");require("element-plus");const se=require("./EChartComponentBase-8GSbyY5P.cjs"),q=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),re=["id"],ie={key:0,class:"timeline-player"},ce={key:0},ue={key:1},me=["onClick"],de={class:"timeline-labels"},fe={DEFAULT_ICON:q.DEFAULT_ICON,ACTIVE_ICON:q.ACTIVE_ICON,NAME_CN:"实时裂缝演变分布图",NAME_EN:"RealtimeEvolutionMap",ORDER:3,PLATFORM:["pc","screen"]},he={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},minPointSize:{value:6,type:"number",label:"最小散点大小",min:2,max:20},maxPointSize:{value:24,type:"number",label:"最大散点大小",min:10,max:60},baseColor:{value:"#ee6666",type:"color",label:"散点颜色"},playInterval:{value:2e3,type:"number",label:"播放间隔(ms)",min:500,max:1e4},linkChannel:{value:"crack",type:"select",label:"component.linkChannel",options:[{label:"裂缝监测",value:"crack"},{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},pe=[{name:"裂缝写实1",fvX:"",fvY:"",fvWidth:"",fvDeviceName:"",object_id:""}],ve=["name","fvX","fvY","fvWidth","fvDeviceName","object_id"],ye=["mosaic","statistics","calculate"],be={useAlias:!1,multiObject:!0,source:"mosaic"},ge=200,Ce={DEFAULT:fe,OPTIONS:he,DATA:pe,PARAMS:ve,SOURCE:ye,ITEMS:ge,COMMON:be},Se=e.defineComponent(P(V({},Ce),{__name:"realtimeEvolutionMap",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const i=p,n=e.ref([]),m=e.ref(0),k=e.ref(!1),j=e.ref(null);let _=null;const N=e.computed(()=>n.value.length<=1?0:m.value/(n.value.length-1)*100),b=h=>n.value.length<=1?50:h/(n.value.length-1)*100;class O extends se.EChartComponentBase{constructor(){super(...arguments),this.currentObjectId=""}getCurrentObjectId(){return this.currentObjectId}setCurrentObjectId(t){this.currentObjectId=t}extractStyles(){return P(V({},super.extractStyles()),{minPointSize:this.getOptionValue("minPointSize",6),maxPointSize:this.getOptionValue("maxPointSize",24),baseColor:this.getOptionValue("baseColor","#ee6666"),playInterval:this.getOptionValue("playInterval",2e3),linkChannel:this.getOptionValue("linkChannel","crack")})}onPreview(){return D(this,null,function*(){const{common:t,data:s}=this.props.conf,o=this.getSource();if(t.multiObject&&Array.isArray(s)){const l=new Set;for(const r of s){const a=yield this.resolveObjectId(r);!a||l.has(a)||(l.add(a),this.subscribeBySource(o,a,r.uid))}}else{const l=yield this.resolveObjectId();l&&(this.currentObjectId=l,this.subscribeBySource(o,l))}})}onLinkEvent(t){K(t)}generateTimeLabels(){return[]}initHistory(){return D(this,null,function*(){const{data:t}=this.props.conf||{};if(!Array.isArray(t)||!t.length)return[];const s=yield this.resolveObjectId();if(!s)return[];const o=24;return Promise.all(t.map(l=>new Promise(r=>{const a=[l.fvX,l.fvY,l.fvWidth,l.fvDeviceName].filter(Boolean);if(!a.length){r([]);return}S.api.platform(c=>{var u;r(((u=c==null?void 0:c.result)==null?void 0:u.data)||[])},{action:"get_mosaic_list",keys:a,object_id:s,page_index:1,page_size:o})})))})}setHistoryData(t){var r;if(!this.hasData()||!t||!Array.isArray(t))return;const s=((r=this.props.conf)==null?void 0:r.data)||[];if(!Array.isArray(s)||!s.length)return;const o=new Map;if(s.forEach((a,c)=>{const u=t[c];Array.isArray(u)&&u.forEach(d=>{const y=d.time||d.datetime;if(!y)return;const C=parseFloat(d[a.fvX]),g=parseFloat(d[a.fvY]),x=a.fvWidth?d[a.fvWidth]:0,A=parseFloat(x!=null?x:"0");if(isNaN(C)||isNaN(g))return;const f=String(y).split(".")[0];o.has(f)||o.set(f,{label:S.dayjs(f).isValid()?S.dayjs(f).format("HH:mm"):f,time:S.dayjs(f).isValid()?S.dayjs(f).format("MM-DD HH:mm:ss"):f,points:[]}),o.get(f).points.push({name:a.name||`crack_${c}`,x:C,y:g,width:isNaN(A)?0:A})})}),o.size===0)return;const l=Array.from(o.entries()).sort((a,c)=>new Date(a[0]).getTime()-new Date(c[0]).getTime()).map(a=>a[1]).slice(-50);n.value=l,m.value=l.length-1,M()}getChartOption(){const t=this.Style.value;return{backgroundColor:"transparent",tooltip:{trigger:"item",formatter:s=>{if(!s.value)return"";const[o,l,r,a,c]=s.value;return`<b>${r}</b><br/>时间: ${c}<br/>X: ${o}<br/>Y: ${l}<br/>宽度: ${a} mm`}},legend:{show:!0,top:6,right:20,textStyle:{color:t.textColor,fontSize:13,fontWeight:"bold"}},grid:{top:40,left:50,right:30,bottom:20},xAxis:{type:"value",name:"x",nameLocation:"end",nameTextStyle:{color:t.textColor,fontSize:13,fontWeight:"bold"},axisLine:{show:!0,lineStyle:{color:"#999"}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:{type:"value",name:"y",nameLocation:"end",nameTextStyle:{color:t.textColor,fontSize:13,fontWeight:"bold"},axisLine:{show:!0,lineStyle:{color:"#999"}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},series:this.buildCumulativeSeries(t)}}buildCumulativeSeries(t){const s=m.value,o=n.value.slice(0,s+1);if(o.length===0)return[];const l=new Map;o.forEach((f,w)=>{f.points.forEach(I=>{l.has(I.name)||l.set(I.name,[]),l.get(I.name).push({x:I.x,y:I.y,width:I.width,time:f.label,timeIdx:w})})});let r=1/0,a=-1/0;l.forEach(f=>f.forEach(w=>{r=Math.min(r,w.width),a=Math.max(a,w.width)})),r===1/0&&(r=0,a=1);const c=a-r||1,u=t.baseColor||"#ee6666",d=t.minPointSize||6,y=t.maxPointSize||24,C=n.value.length||1,g=[u,"#5470c6","#91cc75","#fac858","#73c0de","#fc8452","#9a60b4"],x=[];let A=0;return l.forEach((f,w)=>{const I=g[A%g.length],Q=f.map(E=>[E.x,E.y,w,E.width,E.time]),Z=E=>{const B=((E[3]||0)-r)/c;return d+B*(y-d)};x.push({name:w,type:"scatter",data:Q,symbolSize:Z,itemStyle:{color:E=>{var R,H;const B=.2+.8*(((H=(R=f[E.dataIndex])==null?void 0:R.timeIdx)!=null?H:0)/(C-1||1));return this.hexToRgba(I,B)}},emphasis:{itemStyle:{borderColor:"#333",borderWidth:2}}}),A++}),x}hexToRgba(t,s){const o=t.replace("#",""),l=parseInt(o.substring(0,2),16),r=parseInt(o.substring(2,4),16),a=parseInt(o.substring(4,6),16);return`rgba(${l},${r},${a},${s})`}setSocketData(t){super.setSocketData(t);const{data:s}=this.props.conf,o=S.dayjs().format("HH:mm"),l=S.dayjs().format("MM-DD HH:mm:ss"),r=[];s.forEach(a=>{const c=this.extractDataValue(t,a.fvX),u=this.extractDataValue(t,a.fvY),d=this.extractDataValue(t,a.fvWidth);if(c!=null&&u!=null){const y=parseFloat(c),C=parseFloat(u),g=d!=null?parseFloat(d):0;!isNaN(y)&&!isNaN(C)&&r.push({name:a.name||"default",x:y,y:C,width:isNaN(g)?0:g})}}),r.length>0&&(n.value.push({label:o,time:l,points:r}),n.value.length>50&&n.value.shift(),(k.value||m.value>=n.value.length-2)&&(m.value=n.value.length-1),M())}}const v=new O(i,"realtimeEvolutionMap");v.setupLifecycle();const T=v.getStyle(),X=v.getEchartId(),Y=()=>{k.value?z():U()},U=()=>{n.value.length<=1||(k.value=!0,_=setInterval(()=>{m.value=m.value<n.value.length-1?m.value+1:0,M()},T.value.playInterval||2e3))},z=()=>{k.value=!1,_&&(clearInterval(_),_=null)},L=h=>{m.value=h,M()},G=h=>{if(!j.value||n.value.length<=1)return;const t=j.value.getBoundingClientRect(),s=(h.clientX-t.left)/t.width;L(Math.max(0,Math.min(Math.round(s*(n.value.length-1)),n.value.length-1)))},M=()=>{const h=v.getChartInstance();h&&h.setOption(v.getChartOption(),!0)};e.watch(m,()=>M());const K=h=>D(null,null,function*(){var c;const{payload:t}=h;if(!t)return;const s=t.objectIds&&t.objectIds.length>0?t.objectIds:t.objectId||t.object_id?[t.objectId||t.object_id]:[];if(!s.length||i.mode!=="preview")return;const o=s.sort().join(",");if(v.getCurrentObjectId()===o)return;v.setCurrentObjectId(o),n.value=[],m.value=0,z();const{data:l}=i.conf,r=(c=v.session)==null?void 0:c.value;if(!r)return;const a=i.conf.id;r.componentRequests&&r.componentRequests.delete(a);for(const u of s)Array.isArray(l)&&l.forEach(d=>{d.object_id=u}),v.subscribeBySource(v.getSource(),u);r.registerComponent({id:a,request:null,onUpdate:(u,d)=>{u==="realtime"&&v.setSocketData(d)}})}),F=()=>{var o;if(i.mode!=="edit")return;const h=((o=i.conf)==null?void 0:o.data)||[],t=S.dayjs(),s=[];for(let l=9;l>=0;l--){const r=t.subtract(l*160,"minute"),a=[];h.forEach((c,u)=>{const d=c.name||`裂缝写实${u+1}`,y=(10-l)/10,C=20+u*20+y*30+(Math.random()-.5)*8,g=15+u*10+y*20+(Math.random()-.5)*8,x=.1+y*2.5+Math.random()*.3;a.push({name:d,x:+C.toFixed(1),y:+g.toFixed(1),width:+x.toFixed(2)})}),s.push({label:r.format("HH:mm"),time:r.format("MM-DD HH:mm:ss"),points:a})}n.value=s,m.value=s.length-1},J=e.computed(()=>({background:T.value.bgColor,color:T.value.textColor}));return e.onMounted(()=>{i.mode==="edit"&&F()}),e.onUnmounted(()=>z()),e.watch(()=>i.conf,()=>{i.mode==="edit"&&F()},{deep:!0}),(h,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component crack-realtime-evolution",style:e.normalizeStyle(J.value)},[t[1]||(t[1]=e.createElementVNode("div",{class:"chart-header"},[e.createElementVNode("span",{class:"chart-title"},"▎实时裂缝演变分布图 (动态轨迹)")],-1)),e.createElementVNode("div",{id:e.unref(X),class:"chart-container"},null,8,re),n.value.length>0?(e.openBlock(),e.createElementBlock("div",ie,[e.createElementVNode("button",{class:"play-btn",onClick:Y},[k.value?(e.openBlock(),e.createElementBlock("span",ce,"⏸")):(e.openBlock(),e.createElementBlock("span",ue,"▶"))]),e.createElementVNode("div",{class:"timeline-track",ref_key:"trackRef",ref:j,onClick:G},[t[0]||(t[0]=e.createElementVNode("div",{class:"track-line"},null,-1)),e.createElementVNode("div",{class:"track-progress",style:e.normalizeStyle({width:N.value+"%"})},null,4),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(s,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:e.normalizeClass(["track-dot",{active:o<=m.value,current:o===m.value}]),style:e.normalizeStyle({left:b(o)+"%"}),onClick:e.withModifiers(l=>L(o),["stop"])},null,14,me))),128))],512),e.createElementVNode("div",de,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(s,o)=>(e.openBlock(),e.createElementBlock("span",{key:o,class:e.normalizeClass(["time-label",{active:o<=m.value}]),style:e.normalizeStyle({left:b(o)+"%"})},e.toDisplayString(s.label),7))),128))])])):e.createCommentVNode("",!0),e.renderSlot(h.$slots,"default",{},void 0,!0)],4))}})),ke=S._export_sfc(Se,[["__scopeId","data-v-c4a95d59"]]);exports.default=ke;
1
+ "use strict";var te=Object.defineProperty,ne=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var W=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var $=(p,i,n)=>i in p?te(p,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):p[i]=n,V=(p,i)=>{for(var n in i||(i={}))ae.call(i,n)&&$(p,n,i[n]);if(W)for(var n of W(i))le.call(i,n)&&$(p,n,i[n]);return p},P=(p,i)=>ne(p,oe(i));var D=(p,i,n)=>new Promise((m,k)=>{var j=b=>{try{N(n.next(b))}catch(O){k(O)}},_=b=>{try{N(n.throw(b))}catch(O){k(O)}},N=b=>b.done?m(b.value):Promise.resolve(b.value).then(j,_);N((n=n.apply(p,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),S=require("./index-ucOU7Nfo.cjs");require("element-plus");const se=require("./EChartComponentBase-EgcDDKn2.cjs"),q=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),re=["id"],ie={key:0,class:"timeline-player"},ce={key:0},ue={key:1},me=["onClick"],de={class:"timeline-labels"},fe={DEFAULT_ICON:q.DEFAULT_ICON,ACTIVE_ICON:q.ACTIVE_ICON,NAME_CN:"实时裂缝演变分布图",NAME_EN:"RealtimeEvolutionMap",ORDER:3,PLATFORM:["pc","screen"]},he={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},minPointSize:{value:6,type:"number",label:"最小散点大小",min:2,max:20},maxPointSize:{value:24,type:"number",label:"最大散点大小",min:10,max:60},baseColor:{value:"#ee6666",type:"color",label:"散点颜色"},playInterval:{value:2e3,type:"number",label:"播放间隔(ms)",min:500,max:1e4},linkChannel:{value:"crack",type:"select",label:"component.linkChannel",options:[{label:"裂缝监测",value:"crack"},{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},pe=[{name:"裂缝写实1",fvX:"",fvY:"",fvWidth:"",fvDeviceName:"",object_id:""}],ve=["name","fvX","fvY","fvWidth","fvDeviceName","object_id"],ye=["mosaic","statistics","calculate"],be={useAlias:!1,multiObject:!0,source:"mosaic"},ge=200,Ce={DEFAULT:fe,OPTIONS:he,DATA:pe,PARAMS:ve,SOURCE:ye,ITEMS:ge,COMMON:be},Se=e.defineComponent(P(V({},Ce),{__name:"realtimeEvolutionMap",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const i=p,n=e.ref([]),m=e.ref(0),k=e.ref(!1),j=e.ref(null);let _=null;const N=e.computed(()=>n.value.length<=1?0:m.value/(n.value.length-1)*100),b=h=>n.value.length<=1?50:h/(n.value.length-1)*100;class O extends se.EChartComponentBase{constructor(){super(...arguments),this.currentObjectId=""}getCurrentObjectId(){return this.currentObjectId}setCurrentObjectId(t){this.currentObjectId=t}extractStyles(){return P(V({},super.extractStyles()),{minPointSize:this.getOptionValue("minPointSize",6),maxPointSize:this.getOptionValue("maxPointSize",24),baseColor:this.getOptionValue("baseColor","#ee6666"),playInterval:this.getOptionValue("playInterval",2e3),linkChannel:this.getOptionValue("linkChannel","crack")})}onPreview(){return D(this,null,function*(){const{common:t,data:s}=this.props.conf,o=this.getSource();if(t.multiObject&&Array.isArray(s)){const l=new Set;for(const r of s){const a=yield this.resolveObjectId(r);!a||l.has(a)||(l.add(a),this.subscribeBySource(o,a,r.uid))}}else{const l=yield this.resolveObjectId();l&&(this.currentObjectId=l,this.subscribeBySource(o,l))}})}onLinkEvent(t){K(t)}generateTimeLabels(){return[]}initHistory(){return D(this,null,function*(){const{data:t}=this.props.conf||{};if(!Array.isArray(t)||!t.length)return[];const s=yield this.resolveObjectId();if(!s)return[];const o=24;return Promise.all(t.map(l=>new Promise(r=>{const a=[l.fvX,l.fvY,l.fvWidth,l.fvDeviceName].filter(Boolean);if(!a.length){r([]);return}S.api.platform(c=>{var u;r(((u=c==null?void 0:c.result)==null?void 0:u.data)||[])},{action:"get_mosaic_list",keys:a,object_id:s,page_index:1,page_size:o})})))})}setHistoryData(t){var r;if(!this.hasData()||!t||!Array.isArray(t))return;const s=((r=this.props.conf)==null?void 0:r.data)||[];if(!Array.isArray(s)||!s.length)return;const o=new Map;if(s.forEach((a,c)=>{const u=t[c];Array.isArray(u)&&u.forEach(d=>{const y=d.time||d.datetime;if(!y)return;const C=parseFloat(d[a.fvX]),g=parseFloat(d[a.fvY]),x=a.fvWidth?d[a.fvWidth]:0,A=parseFloat(x!=null?x:"0");if(isNaN(C)||isNaN(g))return;const f=String(y).split(".")[0];o.has(f)||o.set(f,{label:S.dayjs(f).isValid()?S.dayjs(f).format("HH:mm"):f,time:S.dayjs(f).isValid()?S.dayjs(f).format("MM-DD HH:mm:ss"):f,points:[]}),o.get(f).points.push({name:a.name||`crack_${c}`,x:C,y:g,width:isNaN(A)?0:A})})}),o.size===0)return;const l=Array.from(o.entries()).sort((a,c)=>new Date(a[0]).getTime()-new Date(c[0]).getTime()).map(a=>a[1]).slice(-50);n.value=l,m.value=l.length-1,M()}getChartOption(){const t=this.Style.value;return{backgroundColor:"transparent",tooltip:{trigger:"item",formatter:s=>{if(!s.value)return"";const[o,l,r,a,c]=s.value;return`<b>${r}</b><br/>时间: ${c}<br/>X: ${o}<br/>Y: ${l}<br/>宽度: ${a} mm`}},legend:{show:!0,top:6,right:20,textStyle:{color:t.textColor,fontSize:13,fontWeight:"bold"}},grid:{top:40,left:50,right:30,bottom:20},xAxis:{type:"value",name:"x",nameLocation:"end",nameTextStyle:{color:t.textColor,fontSize:13,fontWeight:"bold"},axisLine:{show:!0,lineStyle:{color:"#999"}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:{type:"value",name:"y",nameLocation:"end",nameTextStyle:{color:t.textColor,fontSize:13,fontWeight:"bold"},axisLine:{show:!0,lineStyle:{color:"#999"}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},series:this.buildCumulativeSeries(t)}}buildCumulativeSeries(t){const s=m.value,o=n.value.slice(0,s+1);if(o.length===0)return[];const l=new Map;o.forEach((f,w)=>{f.points.forEach(I=>{l.has(I.name)||l.set(I.name,[]),l.get(I.name).push({x:I.x,y:I.y,width:I.width,time:f.label,timeIdx:w})})});let r=1/0,a=-1/0;l.forEach(f=>f.forEach(w=>{r=Math.min(r,w.width),a=Math.max(a,w.width)})),r===1/0&&(r=0,a=1);const c=a-r||1,u=t.baseColor||"#ee6666",d=t.minPointSize||6,y=t.maxPointSize||24,C=n.value.length||1,g=[u,"#5470c6","#91cc75","#fac858","#73c0de","#fc8452","#9a60b4"],x=[];let A=0;return l.forEach((f,w)=>{const I=g[A%g.length],Q=f.map(E=>[E.x,E.y,w,E.width,E.time]),Z=E=>{const B=((E[3]||0)-r)/c;return d+B*(y-d)};x.push({name:w,type:"scatter",data:Q,symbolSize:Z,itemStyle:{color:E=>{var R,H;const B=.2+.8*(((H=(R=f[E.dataIndex])==null?void 0:R.timeIdx)!=null?H:0)/(C-1||1));return this.hexToRgba(I,B)}},emphasis:{itemStyle:{borderColor:"#333",borderWidth:2}}}),A++}),x}hexToRgba(t,s){const o=t.replace("#",""),l=parseInt(o.substring(0,2),16),r=parseInt(o.substring(2,4),16),a=parseInt(o.substring(4,6),16);return`rgba(${l},${r},${a},${s})`}setSocketData(t){super.setSocketData(t);const{data:s}=this.props.conf,o=S.dayjs().format("HH:mm"),l=S.dayjs().format("MM-DD HH:mm:ss"),r=[];s.forEach(a=>{const c=this.extractDataValue(t,a.fvX),u=this.extractDataValue(t,a.fvY),d=this.extractDataValue(t,a.fvWidth);if(c!=null&&u!=null){const y=parseFloat(c),C=parseFloat(u),g=d!=null?parseFloat(d):0;!isNaN(y)&&!isNaN(C)&&r.push({name:a.name||"default",x:y,y:C,width:isNaN(g)?0:g})}}),r.length>0&&(n.value.push({label:o,time:l,points:r}),n.value.length>50&&n.value.shift(),(k.value||m.value>=n.value.length-2)&&(m.value=n.value.length-1),M())}}const v=new O(i,"realtimeEvolutionMap");v.setupLifecycle();const T=v.getStyle(),X=v.getEchartId(),Y=()=>{k.value?z():U()},U=()=>{n.value.length<=1||(k.value=!0,_=setInterval(()=>{m.value=m.value<n.value.length-1?m.value+1:0,M()},T.value.playInterval||2e3))},z=()=>{k.value=!1,_&&(clearInterval(_),_=null)},L=h=>{m.value=h,M()},G=h=>{if(!j.value||n.value.length<=1)return;const t=j.value.getBoundingClientRect(),s=(h.clientX-t.left)/t.width;L(Math.max(0,Math.min(Math.round(s*(n.value.length-1)),n.value.length-1)))},M=()=>{const h=v.getChartInstance();h&&h.setOption(v.getChartOption(),!0)};e.watch(m,()=>M());const K=h=>D(null,null,function*(){var c;const{payload:t}=h;if(!t)return;const s=t.objectIds&&t.objectIds.length>0?t.objectIds:t.objectId||t.object_id?[t.objectId||t.object_id]:[];if(!s.length||i.mode!=="preview")return;const o=s.sort().join(",");if(v.getCurrentObjectId()===o)return;v.setCurrentObjectId(o),n.value=[],m.value=0,z();const{data:l}=i.conf,r=(c=v.session)==null?void 0:c.value;if(!r)return;const a=i.conf.id;r.componentRequests&&r.componentRequests.delete(a);for(const u of s)Array.isArray(l)&&l.forEach(d=>{d.object_id=u}),v.subscribeBySource(v.getSource(),u);r.registerComponent({id:a,request:null,onUpdate:(u,d)=>{u==="realtime"&&v.setSocketData(d)}})}),F=()=>{var o;if(i.mode!=="edit")return;const h=((o=i.conf)==null?void 0:o.data)||[],t=S.dayjs(),s=[];for(let l=9;l>=0;l--){const r=t.subtract(l*160,"minute"),a=[];h.forEach((c,u)=>{const d=c.name||`裂缝写实${u+1}`,y=(10-l)/10,C=20+u*20+y*30+(Math.random()-.5)*8,g=15+u*10+y*20+(Math.random()-.5)*8,x=.1+y*2.5+Math.random()*.3;a.push({name:d,x:+C.toFixed(1),y:+g.toFixed(1),width:+x.toFixed(2)})}),s.push({label:r.format("HH:mm"),time:r.format("MM-DD HH:mm:ss"),points:a})}n.value=s,m.value=s.length-1},J=e.computed(()=>({background:T.value.bgColor,color:T.value.textColor}));return e.onMounted(()=>{i.mode==="edit"&&F()}),e.onUnmounted(()=>z()),e.watch(()=>i.conf,()=>{i.mode==="edit"&&F()},{deep:!0}),(h,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component crack-realtime-evolution",style:e.normalizeStyle(J.value)},[t[1]||(t[1]=e.createElementVNode("div",{class:"chart-header"},[e.createElementVNode("span",{class:"chart-title"},"▎实时裂缝演变分布图 (动态轨迹)")],-1)),e.createElementVNode("div",{id:e.unref(X),class:"chart-container"},null,8,re),n.value.length>0?(e.openBlock(),e.createElementBlock("div",ie,[e.createElementVNode("button",{class:"play-btn",onClick:Y},[k.value?(e.openBlock(),e.createElementBlock("span",ce,"⏸")):(e.openBlock(),e.createElementBlock("span",ue,"▶"))]),e.createElementVNode("div",{class:"timeline-track",ref_key:"trackRef",ref:j,onClick:G},[t[0]||(t[0]=e.createElementVNode("div",{class:"track-line"},null,-1)),e.createElementVNode("div",{class:"track-progress",style:e.normalizeStyle({width:N.value+"%"})},null,4),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(s,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:e.normalizeClass(["track-dot",{active:o<=m.value,current:o===m.value}]),style:e.normalizeStyle({left:b(o)+"%"}),onClick:e.withModifiers(l=>L(o),["stop"])},null,14,me))),128))],512),e.createElementVNode("div",de,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(s,o)=>(e.openBlock(),e.createElementBlock("span",{key:o,class:e.normalizeClass(["time-label",{active:o<=m.value}]),style:e.normalizeStyle({left:b(o)+"%"})},e.toDisplayString(s.label),7))),128))])])):e.createCommentVNode("",!0),e.renderSlot(h.$slots,"default",{},void 0,!0)],4))}})),ke=S._export_sfc(Se,[["__scopeId","data-v-c4a95d59"]]);exports.default=ke;
@@ -27,9 +27,9 @@ var P = (h, i, e) => new Promise((u, x) => {
27
27
  A((e = e.apply(h, i)).next());
28
28
  });
29
29
  import { defineComponent as ht, ref as z, computed as G, watch as K, onMounted as pt, onUnmounted as vt, openBlock as k, createElementBlock as w, normalizeStyle as L, createElementVNode as _, unref as bt, Fragment as J, renderList as Q, withModifiers as yt, normalizeClass as Z, toDisplayString as gt, createCommentVNode as xt, renderSlot as Ct } from "vue";
30
- import { a as St, d as j, _ as It } from "./index-CPTJIw32.js";
30
+ import { a as St, d as j, _ as It } from "./index-BK7gdNxS.js";
31
31
  import "element-plus";
32
- import { E as kt } from "./EChartComponentBase-skupRYzl.js";
32
+ import { E as kt } from "./EChartComponentBase-nG6UXIUB.js";
33
33
  import { A as wt, D as _t } from "./ele-vlu-icon-Bg6EHZdJ.js";
34
34
  const Mt = ["id"], jt = {
35
35
  key: 0,
@@ -12,8 +12,8 @@ var V = (i, o, s) => o in i ? j(i, o, { enumerable: !0, configurable: !0, writab
12
12
  }, T = (i, o) => B(i, F(o));
13
13
  import { defineComponent as H, computed as D, openBlock as p, createElementBlock as m, normalizeStyle as u, unref as l, createElementVNode as c, toDisplayString as d, createCommentVNode as C, Fragment as I, renderList as U, renderSlot as P } from "vue";
14
14
  import { u as W } from "./safeI18n-C5fF3KBo.js";
15
- import { B as Y } from "./BaseComponent-Dn65PXTp.js";
16
- import { _ as q } from "./index-CPTJIw32.js";
15
+ import { B as Y } from "./BaseComponent-BppXM0zf.js";
16
+ import { _ as q } from "./index-BK7gdNxS.js";
17
17
  import { g as G } from "./titleStyle-BT5GlpAb.js";
18
18
  import { A as J, D as K } from "./ele-bar-icon-C-GiCs2a.js";
19
19
  const Q = { class: "title-text" }, X = { class: "mix-body" }, Z = { class: "rb-label" }, tt = { class: "rb-pct" }, et = {
@@ -1,3 +1,3 @@
1
- "use strict";var B=Object.defineProperty,T=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var S=(i,o,r)=>o in i?B(i,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[o]=r,_=(i,o)=>{for(var r in o||(o={}))z.call(o,r)&&S(i,r,o[r]);if(y)for(var r of y(o))$.call(o,r)&&S(i,r,o[r]);return i},v=(i,o)=>T(i,w(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),A=require("./safeI18n-D-TYNVsv.cjs"),I=require("./BaseComponent-DKuQG62G.cjs"),j=require("./index-DoEyCVDU.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),k=require("./ele-bar-icon-V94clxg_.cjs"),F={class:"title-text"},L={class:"mix-body"},M={class:"rb-label"},H={class:"rb-pct"},U={key:0,class:"rb-empty"},q={DEFAULT_ICON:k.DEFAULT_ICON,ACTIVE_ICON:k.ACTIVE_ICON,NAME_CN:"区域评估条形图",NAME_EN:"Region Bar",ORDER:13,PLATFORM:["pc","screen"]},P={bgColor:"#fff",titleColor:"#111",textColor:"#666",radiusSize:8,textSize:13,rowHeight:32,isHideTitle:!1,description:"支持按矿、区域等维度查看系统运行表现。",barColor:"#3b82f6",barTrackColor:"#eef1f6",maxValue:100,unit:"%",sortDesc:!1,btnText:"数据下载",linkChannel:{value:"landslide",type:"select",label:"component.options.lw_linkChannel",options:[{label:"component.options.lw_linkChannel_landslide",value:"landslide"},{label:"component.options.lw_linkChannel_custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.options.lw_customChannel",showWhen:{linkChannel:"custom"}}},W=[{name:"东帮",fv:"",object_id:"",value:88,color:""},{name:"南帮",fv:"",object_id:"",value:81,color:""},{name:"北帮土场",fv:"",object_id:"",value:93,color:""}],Y=["name","fv","object_id",{key:"color",label:"component.options.lw_barItemColor",type:"color"}],G=["mosaic","statistics","calculate"],J={useAlias:!1,multiObject:!0,source:"statistics"},K={DEFAULT:q,OPTIONS:P,DATA:W,PARAMS:Y,SOURCE:G,COMMON:J},Q=e.defineComponent(v(_({},K),{__name:"regionBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const o=i;class r extends I.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#666"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",13),rowHeight:this.getOptionValue("rowHeight",32),description:this.getOptionValue("description",""),barColor:this.getOptionValue("barColor","#3b82f6"),barTrackColor:this.getOptionValue("barTrackColor","#eef1f6"),maxValue:Number(this.getOptionValue("maxValue",100)),unit:this.getOptionValue("unit",""),sortDesc:this.getOptionValue("sortDesc",!1),btnText:this.getOptionValue("btnText",""),linkChannel:this.getOptionValue("linkChannel","landslide"),customChannel:this.getOptionValue("customChannel","")}}getLinkChannel(){const n=this.Style.value;return(n==null?void 0:n.linkChannel)==="custom"?n.customChannel||"":(n==null?void 0:n.linkChannel)||""}setSocketData(n){var s;if(!n)return;(((s=this.props.conf)==null?void 0:s.data)||[]).forEach(d=>{const c=this.extractDataValue(n,d.fv);c!=null&&(d.value=Number(c)||0)})}}const m=new r(o,"regionBar");m.setupLifecycle();const{t:x}=A.useSafeI18n(),l=m.getStyle(),f=o.conf,V=e.computed(()=>R.generateTitleStyle(o.conf.options)),p=e.computed(()=>{var n;const t=(((n=o.conf)==null?void 0:n.data)||[]).map(a=>({name:a.name,value:Number(a.value)||0,color:a.color||""}));return l.value.sortDesc&&t.sort((a,s)=>s.value-a.value),t});function O(t){const n=l.value.maxValue||100;return{width:Math.max(0,Math.min(100,t.value/n*100))+"%",background:t.color||l.value.barColor}}function g(t){return t==null||t===""?"--":typeof t=="number"?Number.isInteger(t)?String(t):t.toFixed(1):String(t)}function b(t){const n=String(t!=null?t:"");return/[",\n]/.test(n)?`"${n.replace(/"/g,'""')}"`:n}function E(){const t=new Date,n=a=>String(a).padStart(2,"0");return`${t.getFullYear()}${n(t.getMonth()+1)}${n(t.getDate())}_${n(t.getHours())}${n(t.getMinutes())}${n(t.getSeconds())}`}function N(){if(o.mode!=="preview")return;const t=p.value;if(!t.length)return;const n=l.value.unit||"",s=["区域",n?`数值(${n})`:"数值"].join(","),d=t.map(C=>[b(C.name),b(g(C.value))].join(",")).join(`
1
+ "use strict";var B=Object.defineProperty,T=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var S=(i,o,r)=>o in i?B(i,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[o]=r,_=(i,o)=>{for(var r in o||(o={}))z.call(o,r)&&S(i,r,o[r]);if(y)for(var r of y(o))$.call(o,r)&&S(i,r,o[r]);return i},v=(i,o)=>T(i,w(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),A=require("./safeI18n-D-TYNVsv.cjs"),I=require("./BaseComponent-oKNx9Ues.cjs"),j=require("./index-ucOU7Nfo.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),k=require("./ele-bar-icon-V94clxg_.cjs"),F={class:"title-text"},L={class:"mix-body"},M={class:"rb-label"},H={class:"rb-pct"},U={key:0,class:"rb-empty"},q={DEFAULT_ICON:k.DEFAULT_ICON,ACTIVE_ICON:k.ACTIVE_ICON,NAME_CN:"区域评估条形图",NAME_EN:"Region Bar",ORDER:13,PLATFORM:["pc","screen"]},P={bgColor:"#fff",titleColor:"#111",textColor:"#666",radiusSize:8,textSize:13,rowHeight:32,isHideTitle:!1,description:"支持按矿、区域等维度查看系统运行表现。",barColor:"#3b82f6",barTrackColor:"#eef1f6",maxValue:100,unit:"%",sortDesc:!1,btnText:"数据下载",linkChannel:{value:"landslide",type:"select",label:"component.options.lw_linkChannel",options:[{label:"component.options.lw_linkChannel_landslide",value:"landslide"},{label:"component.options.lw_linkChannel_custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.options.lw_customChannel",showWhen:{linkChannel:"custom"}}},W=[{name:"东帮",fv:"",object_id:"",value:88,color:""},{name:"南帮",fv:"",object_id:"",value:81,color:""},{name:"北帮土场",fv:"",object_id:"",value:93,color:""}],Y=["name","fv","object_id",{key:"color",label:"component.options.lw_barItemColor",type:"color"}],G=["mosaic","statistics","calculate"],J={useAlias:!1,multiObject:!0,source:"statistics"},K={DEFAULT:q,OPTIONS:P,DATA:W,PARAMS:Y,SOURCE:G,COMMON:J},Q=e.defineComponent(v(_({},K),{__name:"regionBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const o=i;class r extends I.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#666"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",13),rowHeight:this.getOptionValue("rowHeight",32),description:this.getOptionValue("description",""),barColor:this.getOptionValue("barColor","#3b82f6"),barTrackColor:this.getOptionValue("barTrackColor","#eef1f6"),maxValue:Number(this.getOptionValue("maxValue",100)),unit:this.getOptionValue("unit",""),sortDesc:this.getOptionValue("sortDesc",!1),btnText:this.getOptionValue("btnText",""),linkChannel:this.getOptionValue("linkChannel","landslide"),customChannel:this.getOptionValue("customChannel","")}}getLinkChannel(){const n=this.Style.value;return(n==null?void 0:n.linkChannel)==="custom"?n.customChannel||"":(n==null?void 0:n.linkChannel)||""}setSocketData(n){var s;if(!n)return;(((s=this.props.conf)==null?void 0:s.data)||[]).forEach(d=>{const c=this.extractDataValue(n,d.fv);c!=null&&(d.value=Number(c)||0)})}}const m=new r(o,"regionBar");m.setupLifecycle();const{t:x}=A.useSafeI18n(),l=m.getStyle(),f=o.conf,V=e.computed(()=>R.generateTitleStyle(o.conf.options)),p=e.computed(()=>{var n;const t=(((n=o.conf)==null?void 0:n.data)||[]).map(a=>({name:a.name,value:Number(a.value)||0,color:a.color||""}));return l.value.sortDesc&&t.sort((a,s)=>s.value-a.value),t});function O(t){const n=l.value.maxValue||100;return{width:Math.max(0,Math.min(100,t.value/n*100))+"%",background:t.color||l.value.barColor}}function g(t){return t==null||t===""?"--":typeof t=="number"?Number.isInteger(t)?String(t):t.toFixed(1):String(t)}function b(t){const n=String(t!=null?t:"");return/[",\n]/.test(n)?`"${n.replace(/"/g,'""')}"`:n}function E(){const t=new Date,n=a=>String(a).padStart(2,"0");return`${t.getFullYear()}${n(t.getMonth()+1)}${n(t.getDate())}_${n(t.getHours())}${n(t.getMinutes())}${n(t.getSeconds())}`}function N(){if(o.mode!=="preview")return;const t=p.value;if(!t.length)return;const n=l.value.unit||"",s=["区域",n?`数值(${n})`:"数值"].join(","),d=t.map(C=>[b(C.name),b(g(C.value))].join(",")).join(`
2
2
  `),c=s+`
3
3
  `+d,D=new Blob(["\uFEFF"+c],{type:"text/csv;charset=utf-8;"}),h=URL.createObjectURL(D),u=document.createElement("a");u.href=h,u.download=`区域评估_${E()}.csv`,document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(h)}return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(l).bgColor,borderRadius:`${e.unref(l).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(V.value)},[e.createElementVNode("span",F,e.toDisplayString(e.unref(f).caption||e.unref(f).name),1),e.unref(l).btnText?(e.openBlock(),e.createElementBlock("button",{key:0,class:"rb-btn",onClick:N},e.toDisplayString(e.unref(l).btnText),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("div",L,[e.unref(l).description?(e.openBlock(),e.createElementBlock("div",{key:0,class:"body-desc",style:e.normalizeStyle({fontSize:`${e.unref(l).textSize}px`,color:e.unref(l).textColor})},e.toDisplayString(e.unref(l).description),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"body-list",style:e.normalizeStyle({fontSize:`${e.unref(l).textSize}px`,color:e.unref(l).textColor})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(a,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"rb-row",style:e.normalizeStyle({height:`${e.unref(l).rowHeight}px`})},[e.createElementVNode("span",M,e.toDisplayString(a.name||"--"),1),e.createElementVNode("div",{class:"rb-track",style:e.normalizeStyle({background:e.unref(l).barTrackColor})},[e.createElementVNode("div",{class:"rb-fill",style:e.normalizeStyle(O(a))},null,4)],4),e.createElementVNode("span",H,e.toDisplayString(g(a.value))+e.toDisplayString(e.unref(l).unit),1)],4))),128)),p.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",U,e.toDisplayString(e.unref(x)("component.options.lw_noData")),1))],4)]),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),X=j._export_sfc(Q,[["__scopeId","data-v-675f1cf2"]]);exports.default=X;
@@ -26,7 +26,7 @@ var B = (o, a, i) => new Promise((e, b) => {
26
26
  }, n = (j) => j.done ? e(j.value) : Promise.resolve(j.value).then(c, _);
27
27
  n((i = i.apply(o, a)).next());
28
28
  });
29
- import { $ as V, a0 as L, Z as y } from "./index-CPTJIw32.js";
29
+ import { $ as V, a0 as L, Z as y } from "./index-BK7gdNxS.js";
30
30
  function U(o, a, i) {
31
31
  return B(this, null, function* () {
32
32
  var n, j, u, I, $, w, A, F;
@@ -1 +1 @@
1
- "use strict";var B=Object.defineProperty,E=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var $=(o,s,i)=>s in o?B(o,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[s]=i,m=(o,s)=>{for(var i in s||(s={}))K.call(s,i)&&$(o,i,s[i]);if(S)for(var i of S(s))R.call(s,i)&&$(o,i,s[i]);return o},I=(o,s)=>E(o,C(s));var k=(o,s,i)=>new Promise((e,b)=>{var c=j=>{try{n(i.next(j))}catch(v){b(v)}},_=j=>{try{n(i.throw(j))}catch(v){b(v)}},n=j=>j.done?e(j.value):Promise.resolve(j.value).then(c,_);n((i=i.apply(o,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-DoEyCVDU.cjs");function P(o,s,i){return k(this,null,function*(){var n,j,v,x,w,A,F,M;const{common:e,data:b,options:c}=o,_=e.source||"mosaic";try{yield u.ensureAliasMappingLoaded();const g={action:"subscribe",component_name:o.type,items:Number(((n=c==null?void 0:c.points)==null?void 0:n.value)||o.points)||1,body:{},actionid:o.id},r=new Map;let y="";const T=t=>{const d=e.useAlias||!e.object_id||!e.objectid,a=d?u.getObjectIdsByAliasPattern(t,s):[],f=u.getObjectId(t,d,s);return a.length>0?a:f?[f]:[]};if(!e.multiObject||e.hideMultiObject){const t=e.object_id!==void 0&&e.object_id!==""?e:b[0]||{};y=u.getObjectId(t,e.useAlias||!e.object_id||!e.objectid,s)}if(!y){const t={object_alias:e.object_alias||e.alias||b[0]&&(b[0].object_alias||b[0].alias)||"",alias:e.alias||e.object_alias||b[0]&&(b[0].alias||b[0].object_alias)||"",object_id:e.object_id||e.objectid||b[0]&&(b[0].object_id||b[0].objectid)||"",objectid:e.objectid||e.object_id||b[0]&&(b[0].objectid||b[0].object_id)||""};y=u.getObjectId(t,!0,s)}let O=[];i==="alertTable"&&((j=c==null?void 0:c.columns)!=null&&j.value)&&(O=c.columns.value.filter(t=>t.useFv).map(t=>t.key));const q=(t,d)=>{const a=I(m({},t),{object_id:d,objectid:d}),f=`${d}_${_}`;if(r.has(f)){const l=r.get(f);if(["progressBar","progressCircle"].includes(i)&&a.maxType==="fv")l.id.push(a.fv,a.max);else{let h=a.fv;i==="cmc"&&(h=a.item_fv),["ctrSwitch"].includes(i)&&(h=a.status_fv),h&&l.id.push(h)}}else{let l=[];i==="alertTable"&&O.length>0?l=O:a.fv&&(l=[a.fv]),i==="evn"&&(l=[a.fv,a.status_fv]),["progressBar","progressCircle"].includes(i)&&a.maxType==="fv"&&(l=[a.fv,a.max]),i==="cmc"&&(l=[a.item_fv]),["ctrSwitch"].includes(i)&&(l=[a.status_fv]),l.length>0&&r.set(f,I(m({},a),{id:l}))}};if(b.forEach((t,d)=>{const a={object_alias:t.object_alias||t.alias||t.object_id||t.objectid||"",alias:t.alias||t.object_alias||t.object_id||t.objectid||"",object_id:t.object_id,objectid:t.objectid},f=T(a);(f.length>0?f:[y].filter(Boolean)).forEach(h=>q(t,h))}),i==="sankey"){const t=u.getObjectId({object_alias:e.object_alias||e.alias||e.object_id,alias:e.alias||e.object_alias||e.object_id,object_id:e.object_id,objectid:e.objectid},e.useAlias,s),d=`${t}_${_}`;r.has(d)?r.get(d).id.push(e.originFv):r.set(d,{object_id:t,id:[e.originFv]})}if(i==="scd"){const t=u.getObjectId({object_alias:(v=c==null?void 0:c.object)==null?void 0:v.value,alias:(x=c==null?void 0:c.object)==null?void 0:x.value,object_id:(w=c==null?void 0:c.object)==null?void 0:w.value,objectid:(A=c==null?void 0:c.object)==null?void 0:A.value},e.useAlias,s),d=`${t}_${_}`;r.has(d)?r.get(d).id.push((M=c==null?void 0:c.statusFv)==null?void 0:M.value):r.set(d,{object_id:t,id:[(F=c==null?void 0:c.statusFv)==null?void 0:F.value]})}for(const[t,d]of r)g.body[_]||(g.body[_]=[]),g.body[_].push({object_id:d.object_id,objectid:d.object_id,key:d.id});return g}catch(g){throw console.error("格式化请求时出错:",g),new Error("请求格式化失败")}})}exports.formatRequest=P;
1
+ "use strict";var B=Object.defineProperty,E=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var $=(o,s,i)=>s in o?B(o,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[s]=i,m=(o,s)=>{for(var i in s||(s={}))K.call(s,i)&&$(o,i,s[i]);if(S)for(var i of S(s))R.call(s,i)&&$(o,i,s[i]);return o},I=(o,s)=>E(o,C(s));var k=(o,s,i)=>new Promise((e,b)=>{var c=j=>{try{n(i.next(j))}catch(v){b(v)}},_=j=>{try{n(i.throw(j))}catch(v){b(v)}},n=j=>j.done?e(j.value):Promise.resolve(j.value).then(c,_);n((i=i.apply(o,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-ucOU7Nfo.cjs");function P(o,s,i){return k(this,null,function*(){var n,j,v,x,w,A,F,M;const{common:e,data:b,options:c}=o,_=e.source||"mosaic";try{yield u.ensureAliasMappingLoaded();const g={action:"subscribe",component_name:o.type,items:Number(((n=c==null?void 0:c.points)==null?void 0:n.value)||o.points)||1,body:{},actionid:o.id},r=new Map;let y="";const T=t=>{const d=e.useAlias||!e.object_id||!e.objectid,a=d?u.getObjectIdsByAliasPattern(t,s):[],f=u.getObjectId(t,d,s);return a.length>0?a:f?[f]:[]};if(!e.multiObject||e.hideMultiObject){const t=e.object_id!==void 0&&e.object_id!==""?e:b[0]||{};y=u.getObjectId(t,e.useAlias||!e.object_id||!e.objectid,s)}if(!y){const t={object_alias:e.object_alias||e.alias||b[0]&&(b[0].object_alias||b[0].alias)||"",alias:e.alias||e.object_alias||b[0]&&(b[0].alias||b[0].object_alias)||"",object_id:e.object_id||e.objectid||b[0]&&(b[0].object_id||b[0].objectid)||"",objectid:e.objectid||e.object_id||b[0]&&(b[0].objectid||b[0].object_id)||""};y=u.getObjectId(t,!0,s)}let O=[];i==="alertTable"&&((j=c==null?void 0:c.columns)!=null&&j.value)&&(O=c.columns.value.filter(t=>t.useFv).map(t=>t.key));const q=(t,d)=>{const a=I(m({},t),{object_id:d,objectid:d}),f=`${d}_${_}`;if(r.has(f)){const l=r.get(f);if(["progressBar","progressCircle"].includes(i)&&a.maxType==="fv")l.id.push(a.fv,a.max);else{let h=a.fv;i==="cmc"&&(h=a.item_fv),["ctrSwitch"].includes(i)&&(h=a.status_fv),h&&l.id.push(h)}}else{let l=[];i==="alertTable"&&O.length>0?l=O:a.fv&&(l=[a.fv]),i==="evn"&&(l=[a.fv,a.status_fv]),["progressBar","progressCircle"].includes(i)&&a.maxType==="fv"&&(l=[a.fv,a.max]),i==="cmc"&&(l=[a.item_fv]),["ctrSwitch"].includes(i)&&(l=[a.status_fv]),l.length>0&&r.set(f,I(m({},a),{id:l}))}};if(b.forEach((t,d)=>{const a={object_alias:t.object_alias||t.alias||t.object_id||t.objectid||"",alias:t.alias||t.object_alias||t.object_id||t.objectid||"",object_id:t.object_id,objectid:t.objectid},f=T(a);(f.length>0?f:[y].filter(Boolean)).forEach(h=>q(t,h))}),i==="sankey"){const t=u.getObjectId({object_alias:e.object_alias||e.alias||e.object_id,alias:e.alias||e.object_alias||e.object_id,object_id:e.object_id,objectid:e.objectid},e.useAlias,s),d=`${t}_${_}`;r.has(d)?r.get(d).id.push(e.originFv):r.set(d,{object_id:t,id:[e.originFv]})}if(i==="scd"){const t=u.getObjectId({object_alias:(v=c==null?void 0:c.object)==null?void 0:v.value,alias:(x=c==null?void 0:c.object)==null?void 0:x.value,object_id:(w=c==null?void 0:c.object)==null?void 0:w.value,objectid:(A=c==null?void 0:c.object)==null?void 0:A.value},e.useAlias,s),d=`${t}_${_}`;r.has(d)?r.get(d).id.push((M=c==null?void 0:c.statusFv)==null?void 0:M.value):r.set(d,{object_id:t,id:[(F=c==null?void 0:c.statusFv)==null?void 0:F.value]})}for(const[t,d]of r)g.body[_]||(g.body[_]=[]),g.body[_].push({object_id:d.object_id,objectid:d.object_id,key:d.id});return g}catch(g){throw console.error("格式化请求时出错:",g),new Error("请求格式化失败")}})}exports.formatRequest=P;
@@ -27,8 +27,8 @@ var I = (f, a, o) => new Promise((t, v) => {
27
27
  _((o = o.apply(f, a)).next());
28
28
  });
29
29
  import { defineComponent as k, reactive as P, computed as F, watchEffect as j, openBlock as B, createElementBlock as L, normalizeStyle as y, unref as d, createElementVNode as p, toDisplayString as D, renderSlot as $ } from "vue";
30
- import { B as U } from "./BaseComponent-Dn65PXTp.js";
31
- import { d as h, _ as W } from "./index-CPTJIw32.js";
30
+ import { B as U } from "./BaseComponent-BppXM0zf.js";
31
+ import { d as h, _ as W } from "./index-BK7gdNxS.js";
32
32
  import { g as q } from "./titleStyle-BT5GlpAb.js";
33
33
  import { A as G, D as J } from "./ele-rtn-icon-CqCKSHIw.js";
34
34
  const K = { class: "mix-body" }, Q = { class: "mix-footer" }, X = { class: "time-info" }, Z = {
@@ -129,7 +129,7 @@ const K = { class: "mix-body" }, Q = { class: "mix-footer" }, X = { class: "time
129
129
  return {
130
130
  preview: () => I(this, null, function* () {
131
131
  try {
132
- const i = yield new (yield import("./history-CY_TCu9h.js")).default().getHistoryData(this.props, this.componentType);
132
+ const i = yield new (yield import("./history-DA3HuWif.js")).default().getHistoryData(this.props, this.componentType);
133
133
  this.setHistoryData(i);
134
134
  } catch (e) {
135
135
  console.error("[Retainer1] 获取历史数据失败:", e);
@@ -1 +1 @@
1
- "use strict";var V=Object.defineProperty,I=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var g=(d,r,s)=>r in d?V(d,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):d[r]=s,C=(d,r)=>{for(var s in r||(r={}))Y.call(r,s)&&g(d,s,r[s]);if(M)for(var s of M(r))j.call(r,s)&&g(d,s,r[s]);return d},z=(d,r)=>I(d,R(r));var O=(d,r,s)=>new Promise((t,p)=>{var y=l=>{try{v(s.next(l))}catch(S){p(S)}},b=l=>{try{v(s.throw(l))}catch(S){p(S)}},v=l=>l.done?t(l.value):Promise.resolve(l.value).then(y,b);v((s=s.apply(d,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),A=require("./BaseComponent-DKuQG62G.cjs"),h=require("./index-DoEyCVDU.cjs"),H=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-rtn-icon-BrsJIU8J.cjs"),w={class:"mix-body"},P={class:"mix-footer"},k={class:"time-info"},F={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"历程",NAME_EN:"Retainer1",ORDER:1,PLATFORM:["pc","screen","mobile"]},B={nameSize:16,valueSize:48,timeSize:12,radiusSize:8,bgColor:"#fff",titleColor:"#111",textColor:"#111",titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},N=[{object_id:"",retainer:"",fv:"",fv_name:"",retainer_code:"",status:[{code:0,text:"结束",color:"#409eff"},{code:1,text:"进行",color:"#f56c6c"}]}],L=["object_id","retainer","fv","fv_name","retainer_code"],$=["mosaic"],q=1,U={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},W={DEFAULT:F,OPTIONS:B,DATA:N,PARAMS:L,SOURCE:$,ITEMS:q,COMMON:U},G=o.defineComponent(z(C({},W),{__name:"retainer1",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(d){const r=d,s="--",t=o.reactive({title:s,statusText:s,statusColor:"#409eff",value:s,fvName:"",startTime:s,endTime:"- - - -",duration:s,status:0,startTimestamp:0}),p=f=>f<10?"0"+f:f,y=f=>f>=3600?`${p(Math.floor(f/3600))}:${p(Math.floor(f/60)%60)}:${p(Math.floor(f%60))}`:`${p(Math.floor(f/60))}:${p(Math.floor(f%60))}`;class b extends A.BaseComponent{constructor(){super(...arguments),this.subscribed=!1,this.durationTimer=null}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",16),valueSize:this.getOptionValue("valueSize",48),timeSize:this.getOptionValue("timeSize",12),radiusSize:this.getOptionValue("radiusSize",8)}}init(){var e,i,c;if(this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=N),this.props.mode==="edit"){const a=((i=this.props.conf.data)==null?void 0:i[0])||{},n=((c=a.status)==null?void 0:c[1])||{text:"进行",color:"#f56c6c"};t.title="设备名称",t.fvName=a.fv_name||a.fv||"FV",t.statusText=n.text,t.statusColor=n.color,t.value="123.45",t.startTime=h.dayjs().subtract(1,"hour").format("YYYY-MM-DD HH:mm:ss"),t.endTime="- - - -",t.duration="01:23"}}startDurationTimer(){this.durationTimer&&clearInterval(this.durationTimer),this.durationTimer=window.setInterval(()=>{if(t.status===1&&t.startTimestamp>0){const e=Math.floor((Date.now()-t.startTimestamp)/1e3);t.duration=y(e)}},1e3)}getPreviewHelper(){return{preview:()=>O(this,null,function*(){try{const i=yield new(yield Promise.resolve().then(()=>require("./history-Dm7563t_.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(i)}catch(e){console.error("[Retainer1] 获取历史数据失败:",e)}}),unregister:()=>{this.durationTimer&&(clearInterval(this.durationTimer),this.durationTimer=null)}}}onPreview(){var a;if(this.subscribed)return;const e=this.resolveObjectId();this.subscribeRetainer(e),(((a=this.props.conf.data)==null?void 0:a[0])||{}).fv&&this.subscribeFv(e),this.subscribed=!0}setSocketData(e){if(e){if(e.event==="retainer_result"&&e.source_event){const i=e.source_event;i.retained===1||i.retained==="1"?this.handleRetainerOpen(i):(i.retained===0||i.retained==="0")&&this.handleRetainerClose(i);return}switch(e.event){case"retainer_open":this.handleRetainerOpen(e);break;case"retainer_close":this.handleRetainerClose(e);break;case"retainer_event":this.handleRetainerEvent(e);break;case"recv_fv":this.handleFvData(e);break}}}handleRetainerOpen(e){var n,u;const{conf:i}=this.props,c=((n=i.data)==null?void 0:n[0])||{};t.fvName=c.fv_name||c.fv||"",t.status=1;const a=(u=c.status)==null?void 0:u.find(m=>m.code===1);if(t.statusText=(a==null?void 0:a.text)||"进行",t.statusColor=(a==null?void 0:a.color)||"#f56c6c",t.title=e.label_local||e.label_en||i.name||"--",e.opened_at){t.startTime=h.dayjs(e.opened_at).format("YYYY-MM-DD HH:mm:ss"),t.startTimestamp=h.dayjs(e.opened_at).valueOf();const m=Math.floor((Date.now()-t.startTimestamp)/1e3);t.duration=y(m),this.startDurationTimer()}t.endTime="- - - -"}handleRetainerClose(e){var n,u;const{conf:i}=this.props,c=((n=i.data)==null?void 0:n[0])||{};t.status=0;const a=(u=c.status)==null?void 0:u.find(m=>m.code===0);if(t.statusText=(a==null?void 0:a.text)||"结束",t.statusColor=(a==null?void 0:a.color)||"#409eff",e.close_at&&(t.endTime=h.dayjs(e.close_at).format("YYYY-MM-DD HH:mm:ss")),e.opened_at&&e.close_at){const m=h.dayjs(e.opened_at).valueOf(),T=h.dayjs(e.close_at).valueOf(),D=Math.floor((T-m)/1e3);t.duration=y(D)}this.durationTimer&&(clearInterval(this.durationTimer),this.durationTimer=null)}handleRetainerEvent(e){}handleFvData(e){var a,n;const c=(((a=this.props.conf.data)==null?void 0:a[0])||{}).fv;if(c)try{const u=(n=e.data)==null?void 0:n[c];u!==void 0&&(t.value=u)}catch(u){console.error("[Retainer1] 处理 FV 数据失败:",u)}}setHistoryData(e){var a,n,u;const{conf:i}=this.props,c=((a=i.data)==null?void 0:a[0])||{};try{const m=(u=(n=e==null?void 0:e.history)==null?void 0:n[0])==null?void 0:u[0];m&&this.updateParams(m,c,i)}catch(m){console.error("[Retainer1] setHistoryData error:",m),this.resetParams()}}updateParams(e,i,c){var m,T,D;const a=i.fv;t.fvName=i.fv_name||a||"",t.status=typeof e.status=="string"?parseInt(e.status):(m=e.status)!=null?m:0;const n=(T=i.status)==null?void 0:T.find(_=>_.code===t.status);if(t.statusText=(n==null?void 0:n.text)||(t.status===1?"进行":"结束"),t.statusColor=(n==null?void 0:n.color)||(t.status===1?"#f56c6c":"#409eff"),t.title=e.label_cn||c.name||s,t.startTime=e.start_time?h.dayjs(e.start_time).format("YYYY-MM-DD HH:mm:ss"):s,t.endTime=e.end_time?h.dayjs(e.end_time).format("YYYY-MM-DD HH:mm:ss"):"- - - -",e.start_time){const _=h.dayjs(e.start_time).valueOf();if(t.startTimestamp=_,e.end_time){const x=h.dayjs(e.end_time).valueOf();t.duration=y(Math.floor((x-_)/1e3))}else{const x=Math.floor((Date.now()-_)/1e3);t.duration=y(x),this.startDurationTimer()}}else t.duration="00:00";let u=s;e.mosaic&&Array.isArray(e.mosaic)&&e.mosaic.length>0&&(u=(D=e.mosaic[0][a])!=null?D:s),t.value=u}resetParams(){t.title=s,t.statusText=s,t.statusColor="#409eff",t.value=s,t.startTime=s,t.endTime="- - - -",t.duration=s}}const v=new b(r,"retainer1");v.setupLifecycle();const l=v.getStyle(),S=o.computed(()=>H.generateTitleStyle(r.conf.options));return o.watchEffect(()=>{r.conf.historyData&&v.setHistoryData(r.conf.historyData),r.conf.socketData&&v.setSocketData(r.conf.socketData)}),(f,e)=>(o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(l).bgColor,borderRadius:o.unref(l).radiusSize+"px"})},[o.createElementVNode("div",{class:"mix-title",style:o.normalizeStyle(S.value)},o.toDisplayString(r.conf.caption||t.title),5),o.createElementVNode("div",w,[o.createElementVNode("div",{class:"status-tag",style:o.normalizeStyle({fontSize:o.unref(l).nameSize-2+"px",backgroundColor:t.statusColor,color:"#fff"})},o.toDisplayString(t.fvName?t.fvName+"("+t.statusText+")":t.statusText),5),o.createElementVNode("div",{class:"card-value",style:o.normalizeStyle({fontSize:o.unref(l).valueSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.value),5)]),o.createElementVNode("div",P,[o.createElementVNode("div",k,[o.createElementVNode("div",{class:"time-item",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.startTime),5),o.createElementVNode("div",{class:"time-item",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.endTime),5)]),o.createElementVNode("div",{class:"duration",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+4+"px",color:o.unref(l).textColor})},o.toDisplayString(t.duration),5)]),o.renderSlot(f.$slots,"default",{},void 0,!0)],4))}})),J=h._export_sfc(G,[["__scopeId","data-v-ac5c0908"]]);exports.default=J;
1
+ "use strict";var V=Object.defineProperty,I=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var g=(d,r,s)=>r in d?V(d,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):d[r]=s,C=(d,r)=>{for(var s in r||(r={}))Y.call(r,s)&&g(d,s,r[s]);if(M)for(var s of M(r))j.call(r,s)&&g(d,s,r[s]);return d},z=(d,r)=>I(d,R(r));var O=(d,r,s)=>new Promise((t,p)=>{var y=l=>{try{v(s.next(l))}catch(S){p(S)}},b=l=>{try{v(s.throw(l))}catch(S){p(S)}},v=l=>l.done?t(l.value):Promise.resolve(l.value).then(y,b);v((s=s.apply(d,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),A=require("./BaseComponent-oKNx9Ues.cjs"),h=require("./index-ucOU7Nfo.cjs"),H=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-rtn-icon-BrsJIU8J.cjs"),w={class:"mix-body"},P={class:"mix-footer"},k={class:"time-info"},F={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"历程",NAME_EN:"Retainer1",ORDER:1,PLATFORM:["pc","screen","mobile"]},B={nameSize:16,valueSize:48,timeSize:12,radiusSize:8,bgColor:"#fff",titleColor:"#111",textColor:"#111",titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},N=[{object_id:"",retainer:"",fv:"",fv_name:"",retainer_code:"",status:[{code:0,text:"结束",color:"#409eff"},{code:1,text:"进行",color:"#f56c6c"}]}],L=["object_id","retainer","fv","fv_name","retainer_code"],$=["mosaic"],q=1,U={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},W={DEFAULT:F,OPTIONS:B,DATA:N,PARAMS:L,SOURCE:$,ITEMS:q,COMMON:U},G=o.defineComponent(z(C({},W),{__name:"retainer1",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(d){const r=d,s="--",t=o.reactive({title:s,statusText:s,statusColor:"#409eff",value:s,fvName:"",startTime:s,endTime:"- - - -",duration:s,status:0,startTimestamp:0}),p=f=>f<10?"0"+f:f,y=f=>f>=3600?`${p(Math.floor(f/3600))}:${p(Math.floor(f/60)%60)}:${p(Math.floor(f%60))}`:`${p(Math.floor(f/60))}:${p(Math.floor(f%60))}`;class b extends A.BaseComponent{constructor(){super(...arguments),this.subscribed=!1,this.durationTimer=null}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",16),valueSize:this.getOptionValue("valueSize",48),timeSize:this.getOptionValue("timeSize",12),radiusSize:this.getOptionValue("radiusSize",8)}}init(){var e,i,c;if(this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=N),this.props.mode==="edit"){const a=((i=this.props.conf.data)==null?void 0:i[0])||{},n=((c=a.status)==null?void 0:c[1])||{text:"进行",color:"#f56c6c"};t.title="设备名称",t.fvName=a.fv_name||a.fv||"FV",t.statusText=n.text,t.statusColor=n.color,t.value="123.45",t.startTime=h.dayjs().subtract(1,"hour").format("YYYY-MM-DD HH:mm:ss"),t.endTime="- - - -",t.duration="01:23"}}startDurationTimer(){this.durationTimer&&clearInterval(this.durationTimer),this.durationTimer=window.setInterval(()=>{if(t.status===1&&t.startTimestamp>0){const e=Math.floor((Date.now()-t.startTimestamp)/1e3);t.duration=y(e)}},1e3)}getPreviewHelper(){return{preview:()=>O(this,null,function*(){try{const i=yield new(yield Promise.resolve().then(()=>require("./history-CgrmMOpp.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(i)}catch(e){console.error("[Retainer1] 获取历史数据失败:",e)}}),unregister:()=>{this.durationTimer&&(clearInterval(this.durationTimer),this.durationTimer=null)}}}onPreview(){var a;if(this.subscribed)return;const e=this.resolveObjectId();this.subscribeRetainer(e),(((a=this.props.conf.data)==null?void 0:a[0])||{}).fv&&this.subscribeFv(e),this.subscribed=!0}setSocketData(e){if(e){if(e.event==="retainer_result"&&e.source_event){const i=e.source_event;i.retained===1||i.retained==="1"?this.handleRetainerOpen(i):(i.retained===0||i.retained==="0")&&this.handleRetainerClose(i);return}switch(e.event){case"retainer_open":this.handleRetainerOpen(e);break;case"retainer_close":this.handleRetainerClose(e);break;case"retainer_event":this.handleRetainerEvent(e);break;case"recv_fv":this.handleFvData(e);break}}}handleRetainerOpen(e){var n,u;const{conf:i}=this.props,c=((n=i.data)==null?void 0:n[0])||{};t.fvName=c.fv_name||c.fv||"",t.status=1;const a=(u=c.status)==null?void 0:u.find(m=>m.code===1);if(t.statusText=(a==null?void 0:a.text)||"进行",t.statusColor=(a==null?void 0:a.color)||"#f56c6c",t.title=e.label_local||e.label_en||i.name||"--",e.opened_at){t.startTime=h.dayjs(e.opened_at).format("YYYY-MM-DD HH:mm:ss"),t.startTimestamp=h.dayjs(e.opened_at).valueOf();const m=Math.floor((Date.now()-t.startTimestamp)/1e3);t.duration=y(m),this.startDurationTimer()}t.endTime="- - - -"}handleRetainerClose(e){var n,u;const{conf:i}=this.props,c=((n=i.data)==null?void 0:n[0])||{};t.status=0;const a=(u=c.status)==null?void 0:u.find(m=>m.code===0);if(t.statusText=(a==null?void 0:a.text)||"结束",t.statusColor=(a==null?void 0:a.color)||"#409eff",e.close_at&&(t.endTime=h.dayjs(e.close_at).format("YYYY-MM-DD HH:mm:ss")),e.opened_at&&e.close_at){const m=h.dayjs(e.opened_at).valueOf(),T=h.dayjs(e.close_at).valueOf(),D=Math.floor((T-m)/1e3);t.duration=y(D)}this.durationTimer&&(clearInterval(this.durationTimer),this.durationTimer=null)}handleRetainerEvent(e){}handleFvData(e){var a,n;const c=(((a=this.props.conf.data)==null?void 0:a[0])||{}).fv;if(c)try{const u=(n=e.data)==null?void 0:n[c];u!==void 0&&(t.value=u)}catch(u){console.error("[Retainer1] 处理 FV 数据失败:",u)}}setHistoryData(e){var a,n,u;const{conf:i}=this.props,c=((a=i.data)==null?void 0:a[0])||{};try{const m=(u=(n=e==null?void 0:e.history)==null?void 0:n[0])==null?void 0:u[0];m&&this.updateParams(m,c,i)}catch(m){console.error("[Retainer1] setHistoryData error:",m),this.resetParams()}}updateParams(e,i,c){var m,T,D;const a=i.fv;t.fvName=i.fv_name||a||"",t.status=typeof e.status=="string"?parseInt(e.status):(m=e.status)!=null?m:0;const n=(T=i.status)==null?void 0:T.find(_=>_.code===t.status);if(t.statusText=(n==null?void 0:n.text)||(t.status===1?"进行":"结束"),t.statusColor=(n==null?void 0:n.color)||(t.status===1?"#f56c6c":"#409eff"),t.title=e.label_cn||c.name||s,t.startTime=e.start_time?h.dayjs(e.start_time).format("YYYY-MM-DD HH:mm:ss"):s,t.endTime=e.end_time?h.dayjs(e.end_time).format("YYYY-MM-DD HH:mm:ss"):"- - - -",e.start_time){const _=h.dayjs(e.start_time).valueOf();if(t.startTimestamp=_,e.end_time){const x=h.dayjs(e.end_time).valueOf();t.duration=y(Math.floor((x-_)/1e3))}else{const x=Math.floor((Date.now()-_)/1e3);t.duration=y(x),this.startDurationTimer()}}else t.duration="00:00";let u=s;e.mosaic&&Array.isArray(e.mosaic)&&e.mosaic.length>0&&(u=(D=e.mosaic[0][a])!=null?D:s),t.value=u}resetParams(){t.title=s,t.statusText=s,t.statusColor="#409eff",t.value=s,t.startTime=s,t.endTime="- - - -",t.duration=s}}const v=new b(r,"retainer1");v.setupLifecycle();const l=v.getStyle(),S=o.computed(()=>H.generateTitleStyle(r.conf.options));return o.watchEffect(()=>{r.conf.historyData&&v.setHistoryData(r.conf.historyData),r.conf.socketData&&v.setSocketData(r.conf.socketData)}),(f,e)=>(o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(l).bgColor,borderRadius:o.unref(l).radiusSize+"px"})},[o.createElementVNode("div",{class:"mix-title",style:o.normalizeStyle(S.value)},o.toDisplayString(r.conf.caption||t.title),5),o.createElementVNode("div",w,[o.createElementVNode("div",{class:"status-tag",style:o.normalizeStyle({fontSize:o.unref(l).nameSize-2+"px",backgroundColor:t.statusColor,color:"#fff"})},o.toDisplayString(t.fvName?t.fvName+"("+t.statusText+")":t.statusText),5),o.createElementVNode("div",{class:"card-value",style:o.normalizeStyle({fontSize:o.unref(l).valueSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.value),5)]),o.createElementVNode("div",P,[o.createElementVNode("div",k,[o.createElementVNode("div",{class:"time-item",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.startTime),5),o.createElementVNode("div",{class:"time-item",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.endTime),5)]),o.createElementVNode("div",{class:"duration",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+4+"px",color:o.unref(l).textColor})},o.toDisplayString(t.duration),5)]),o.renderSlot(f.$slots,"default",{},void 0,!0)],4))}})),J=h._export_sfc(G,[["__scopeId","data-v-ac5c0908"]]);exports.default=J;
@@ -27,8 +27,8 @@ var q = (v, l, c) => new Promise((b, w) => {
27
27
  L((c = c.apply(v, l)).next());
28
28
  });
29
29
  import { defineComponent as he, ref as ue, reactive as me, computed as pe, onMounted as ge, onUnmounted as ye, watch as J, watchEffect as ve, openBlock as be, createElementBlock as we, normalizeStyle as K, unref as A, createElementVNode as I, toDisplayString as De, renderSlot as Se } from "vue";
30
- import { B as xe } from "./BaseComponent-Dn65PXTp.js";
31
- import { d as O, _ as _e } from "./index-CPTJIw32.js";
30
+ import { B as xe } from "./BaseComponent-BppXM0zf.js";
31
+ import { d as O, _ as _e } from "./index-BK7gdNxS.js";
32
32
  import { g as Le } from "./titleStyle-BT5GlpAb.js";
33
33
  import "./index-eIsZnzkc.js";
34
34
  import { A as Me, D as Oe } from "./ele-rtn-icon-CqCKSHIw.js";
@@ -113,7 +113,7 @@ const He = { class: "mix-body" }, Ce = {
113
113
  return {
114
114
  preview: () => q(this, null, function* () {
115
115
  try {
116
- const i = yield new (yield import("./history-CY_TCu9h.js")).default().getHistoryData(this.props, this.componentType);
116
+ const i = yield new (yield import("./history-DA3HuWif.js")).default().getHistoryData(this.props, this.componentType);
117
117
  this.setHistoryData(i);
118
118
  } catch (e) {
119
119
  console.error("[Retainer2] 获取历史数据失败:", e);
@@ -1 +1 @@
1
- "use strict";var se=Object.defineProperty,ae=Object.defineProperties;var re=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var G=(b,l,c)=>l in b?se(b,l,{enumerable:!0,configurable:!0,writable:!0,value:c}):b[l]=c,I=(b,l)=>{for(var c in l||(l={}))le.call(l,c)&&G(b,c,l[c]);if($)for(var c of $(l))ce.call(l,c)&&G(b,c,l[c]);return b},R=(b,l)=>ae(b,re(l));var U=(b,l,c)=>new Promise((w,D)=>{var C=S=>{try{L(c.next(S))}catch(g){D(g)}},E=S=>{try{L(c.throw(S))}catch(g){D(g)}},L=S=>S.done?w(S.value):Promise.resolve(S.value).then(C,E);L((c=c.apply(b,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("vue"),de=require("./BaseComponent-DKuQG62G.cjs"),T=require("./index-DoEyCVDU.cjs"),he=require("./titleStyle-NSnz6cUg.cjs");require("./index-CJgyJTvc.cjs");const X=require("./ele-rtn-icon-BrsJIU8J.cjs"),fe=require("./echarts-BB8O2KSA.cjs"),ue={class:"mix-body"},me={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"历程管理",NAME_EN:"Retainer2",ORDER:2,PLATFORM:["pc","screen","mobile"]},pe={titleColor:"#111",radiusSize:8,bgColor:"#fff",textColor:"#111",barWidth:30,barGap:0,timeWindow:5,isHideTitle:!0,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},J=[{name:"历程1",object_id:"",retainer:"",retainer_code:"",color:"#ee6666",showLine:!1,fv:"",lineStyle:"solid",lineWidth:2}],ye=["name","object_id","retainer","retainer_code","color","showLine",{key:"fv",dependent:"showLine"},{key:"lineStyle",dependent:"showLine"},{key:"lineWidth",dependent:"showLine"}],ge=["mosaic"],ve={useAlias:!1,multiObject:!0,showBothModes:!0,source:"mosaic"},be={DEFAULT:me,OPTIONS:pe,DATA:J,PARAMS:ye,SOURCE:ge,COMMON:ve},we=h.defineComponent(R(I({},be),{__name:"retainer2",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(b){const l=b,c=h.ref(null);let w=null;const D=h.reactive([]),C=p=>D[p];class E extends de.BaseComponent{constructor(){super(...arguments),this.subscribed=!1}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),barWidth:this.getOptionValue("barWidth",30),barGap:this.getOptionValue("barGap",0),timeWindow:this.getOptionValue("timeWindow",5),isHideTitle:this.getOptionValue("isHideTitle",!0)}}init(){var e;this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=J),this.props.mode==="edit"&&L()}getPreviewHelper(){return{preview:()=>U(this,null,function*(){try{const i=yield new(yield Promise.resolve().then(()=>require("./history-Dm7563t_.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(i)}catch(e){console.error("[Retainer2] 获取历史数据失败:",e)}}),unregister:()=>{}}}onPreview(){var n;if(this.subscribed)return;const{conf:e}=this.props,{data:i,common:t}=e;if(t.multiObject&&Array.isArray(i)){const o=new Set;i.forEach(s=>{const r=this.resolveObjectId(s);!r||o.has(r)||(o.add(r),this.subscribeRetainer(r),s.showLine&&s.fv&&this.subscribeFv(r))})}else{const o=this.resolveObjectId();this.subscribeRetainer(o),(n=i==null?void 0:i[0])!=null&&n.fv&&this.subscribeFv(o)}this.subscribed=!0}setSocketData(e){if(e)switch(e.event){case"retainer_open":this.handleRetainerOpen(e);break;case"retainer_close":this.handleRetainerClose(e);break;case"retainer_event":this.handleRetainerEvent(e);break;case"recv_fv":this.handleFvData(e);break}}handleRetainerOpen(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(a=>this.resolveObjectId(n!=null&&n.multiObject?a:void 0)===o);if(s===-1)return;let r=C(s);if(!r){const a=t[s];r={name:a.name||`历程${s+1}`,color:a.color||"#409eff",objectId:o,fv:a.fv||"",periods:[],lineData:[],showLine:a.showLine||!1,lineStyle:a.lineStyle||"solid",lineWidth:a.lineWidth||2},D.push(r)}e.opened_at&&r.periods.push({start:e.opened_at,end:null}),O()}handleRetainerClose(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(d=>this.resolveObjectId(n!=null&&n.multiObject?d:void 0)===o);if(s===-1)return;const r=C(s);if(!r)return;const a=r.periods[r.periods.length-1];a&&!a.end&&(a.end=e.close_at||new Date().toISOString()),O()}handleRetainerEvent(e){}handleFvData(e){var d;const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(f=>this.resolveObjectId(n!=null&&n.multiObject?f:void 0)===o);if(s===-1)return;const a=t[s].fv;if(a)try{const f=(d=e.data)==null?void 0:d[a];if(f!==void 0){const v=C(s);if(v&&v.showLine){const u=e.datetime||new Date().toISOString();v.lineData.push({time:u,value:f}),v.lineData.sort((_,M)=>new Date(_.time).getTime()-new Date(M.time).getTime()),O()}}}catch(f){console.error("[Retainer2] 处理 FV 数据失败:",f)}}setHistoryData(e){const{conf:i}=this.props,{data:t,common:n}=i;D.length=0,t.forEach((o,s)=>{var f;const r=this.resolveObjectId(n!=null&&n.multiObject?o:void 0),a=o.fv||"",d={name:o.name||`历程${s+1}`,color:o.color||"#409eff",objectId:r,fv:a,periods:[],lineData:[],showLine:o.showLine||!1,lineStyle:o.lineStyle||"solid",lineWidth:o.lineWidth||2};try{(((f=e==null?void 0:e.history)==null?void 0:f[s])||[]).forEach(u=>{u&&u.start_time&&(d.periods.push({start:u.start_time,end:u.end_time||null}),o.showLine&&a&&u.mosaic&&Array.isArray(u.mosaic)&&u.mosaic.forEach(_=>{const M=_[a];M!==void 0&&_.time&&d.lineData.push({time:_.time,value:M})}))}),d.lineData.sort((u,_)=>new Date(u.time).getTime()-new Date(_.time).getTime())}catch(v){}D.push(d)}),O()}}const L=()=>{const{data:p}=l.conf;D.length=0;const e=T.dayjs();p.forEach((i,t)=>{const n=`edit_object_${t}`,o=[{start:e.subtract(6+t,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(4+t,"hour").format("YYYY-MM-DD HH:mm:ss")},{start:e.subtract(2+t*.5,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(t*.3,"hour").format("YYYY-MM-DD HH:mm:ss")}],s=[];i.showLine&&o.forEach(r=>{const a=T.dayjs(r.start),f=T.dayjs(r.end).diff(a,"minute"),v=Math.max(5,Math.floor(f/10));for(let u=0;u<=v;u++){const _=a.add(f/v*u,"minute");s.push({time:_.format("YYYY-MM-DD HH:mm:ss"),value:150+Math.sin(u*.8+t*2)*50+t*30})}}),D.push({name:i.name||`历程${t+1}`,color:i.color||["#ee6666","#91cc75","#fac858"][t%3],objectId:n,fv:i.fv||"",periods:o,lineData:s,showLine:i.showLine||!1,lineStyle:i.lineStyle||"solid",lineWidth:i.lineWidth||2})})},S=new E(l,"retainer2");S.setupLifecycle();const g=S.getStyle(),W=l.conf,K=h.computed(()=>he.generateTitleStyle(l.conf.options)),V=()=>D.filter(p=>p.showLine&&p.lineData.length>0),Q=()=>{const p=[],e=V();let i=1;return e.forEach(t=>{t.periods.forEach((n,o)=>{const s=new Date(n.start).getTime(),r=n.end?new Date(n.end).getTime():Date.now(),a=t.lineData.filter(d=>{const f=new Date(d.time).getTime();return f>=s&&f<=r}).map(d=>[new Date(d.time).getTime(),d.value]);a.length>0&&p.push({name:o===0?`${t.name}-曲线`:`${t.name}-曲线-${o+1}`,type:"line",yAxisIndex:i,smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:t.color,width:t.lineWidth,type:t.lineStyle},itemStyle:{color:t.color},data:a})}),i++}),p},Z=p=>{const e=V(),i=e.length,t=[{type:"value",min:0,max:p,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}}];return e.forEach((n,o)=>{const s=n.lineData.map(u=>u.value),r=Math.max(...s),a=Math.min(...s),d=Math.ceil(r*1.1),f=Math.floor(a*.9),v=o*50;t.push({type:"value",position:"right",offset:v,min:f,max:d,axisLine:{show:!0,lineStyle:{color:n.color}},axisTick:{show:!0,lineStyle:{color:n.color}},axisLabel:{color:n.color,fontSize:10},splitLine:{show:!1}})}),{yAxes:t,lineCount:i}},k=()=>{c.value&&(w=fe.init(c.value),O())},O=()=>{var B;if(!w)return;const p=D.length||1,e=((B=c.value)==null?void 0:B.clientHeight)||300,i=30,t=10,n=e-i-t,o=g.value.barWidth||30,s=g.value.barGap||0,r=o+s,a=p*r;let d=o,f=s,v=r;if(a>n){const m=n/a;d=Math.max(o*m,10),f=s*m,v=d+f}const u=[];let _=!1;D.forEach((m,y)=>{m.periods.forEach(x=>{const j=new Date(x.start).getTime(),Y=x.end?new Date(x.end).getTime():Date.now();x.end||(_=!0),u.push({name:m.name,value:[j,Y,y],itemStyle:{color:x.end?m.color+"80":m.color}})})});const{yAxes:M,lineCount:N}=Z(p),ee=N>0?20+N*50:20,te={tooltip:{trigger:"axis",formatter:m=>{if(Array.isArray(m)){const y=m.find(x=>x.seriesType==="line");if(y){const x=T.dayjs(y.value[0]).format("YYYY-MM-DD HH:mm:ss");return`${y.seriesName}<br/>时间: ${x}<br/>数值: ${y.value[1]}`}}return""}},grid:{left:40,right:ee,top:t,bottom:i,containLabel:!1},xAxis:R(I({type:"time",position:"bottom"},_?{min:Date.now()-g.value.timeWindow*60*1e3,max:Date.now()}:{}),{axisLine:{show:!0,lineStyle:{color:g.value.titleColor}},axisTick:{show:!0,lineStyle:{color:g.value.titleColor}},axisLabel:{formatter:"{HH}:{mm}",color:g.value.textColor,fontSize:11,margin:8},splitLine:{show:!1}}),yAxis:M,series:[{name:"甘特图",type:"custom",yAxisIndex:0,renderItem:(m,y)=>{var q;const x=y.value(0),j=y.value(1),Y=y.value(2),A=y.coord([x,0])[0],oe=y.coord([j,0])[0],P=m.coordSys.y+m.coordSys.height-(Y+1)*v+f,ne=P+d/2,F=Math.max(oe-A,2),ie=((q=D[Y])==null?void 0:q.name)||"";return{type:"group",children:[{type:"rect",shape:{x:A,y:P,width:F,height:d,r:2},style:y.style()},{type:"text",style:{x:A+F/2,y:ne,text:ie,fill:g.value.textColor,fontSize:11,textAlign:"center",textVerticalAlign:"middle"}}]}},encode:{x:[0,1],y:2,tooltip:[0,1]},tooltip:{formatter:m=>{const y=T.dayjs(m.value[0]).format("YYYY-MM-DD HH:mm:ss"),x=T.dayjs(m.value[1]).format("YYYY-MM-DD HH:mm:ss"),j=m.value[1]>=Date.now()-1e3;return`${m.name}<br/>开始: ${y}<br/>结束: ${j?"进行中":x}`}},data:u},...Q()]};w.setOption(te,!0)},z=()=>{w==null||w.resize()};let H=null;return h.onMounted(()=>{H=new ResizeObserver(()=>{w?w.resize():c.value&&k()}),c.value&&H.observe(c.value),setTimeout(()=>{k()},100),window.addEventListener("resize",z)}),h.onUnmounted(()=>{window.removeEventListener("resize",z),H==null||H.disconnect(),w==null||w.dispose()}),h.watch(()=>l.conf.data,()=>{l.mode==="edit"&&L(),O()},{deep:!0}),h.watch(()=>l.conf.options,()=>{g.value=S.extractStyles(),O()},{deep:!0}),h.watchEffect(()=>{l.conf.historyData&&S.setHistoryData(l.conf.historyData),l.conf.socketData&&S.setSocketData(l.conf.socketData)}),(p,e)=>(h.openBlock(),h.createElementBlock("div",{class:"mix-component",style:h.normalizeStyle({background:h.unref(g).bgColor,borderRadius:h.unref(g).radiusSize+"px"})},[h.createElementVNode("div",{class:"mix-title",style:h.normalizeStyle(K.value)},h.toDisplayString(h.unref(W).caption||h.unref(W).name),5),h.createElementVNode("div",ue,[h.createElementVNode("div",{class:"timeline-chart",ref_key:"chartRef",ref:c},null,512)]),h.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),De=T._export_sfc(we,[["__scopeId","data-v-7162b702"]]);exports.default=De;
1
+ "use strict";var se=Object.defineProperty,ae=Object.defineProperties;var re=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var G=(b,l,c)=>l in b?se(b,l,{enumerable:!0,configurable:!0,writable:!0,value:c}):b[l]=c,I=(b,l)=>{for(var c in l||(l={}))le.call(l,c)&&G(b,c,l[c]);if($)for(var c of $(l))ce.call(l,c)&&G(b,c,l[c]);return b},R=(b,l)=>ae(b,re(l));var U=(b,l,c)=>new Promise((w,D)=>{var C=S=>{try{L(c.next(S))}catch(g){D(g)}},E=S=>{try{L(c.throw(S))}catch(g){D(g)}},L=S=>S.done?w(S.value):Promise.resolve(S.value).then(C,E);L((c=c.apply(b,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("vue"),de=require("./BaseComponent-oKNx9Ues.cjs"),T=require("./index-ucOU7Nfo.cjs"),he=require("./titleStyle-NSnz6cUg.cjs");require("./index-CJgyJTvc.cjs");const X=require("./ele-rtn-icon-BrsJIU8J.cjs"),fe=require("./echarts-BB8O2KSA.cjs"),ue={class:"mix-body"},me={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"历程管理",NAME_EN:"Retainer2",ORDER:2,PLATFORM:["pc","screen","mobile"]},pe={titleColor:"#111",radiusSize:8,bgColor:"#fff",textColor:"#111",barWidth:30,barGap:0,timeWindow:5,isHideTitle:!0,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},J=[{name:"历程1",object_id:"",retainer:"",retainer_code:"",color:"#ee6666",showLine:!1,fv:"",lineStyle:"solid",lineWidth:2}],ye=["name","object_id","retainer","retainer_code","color","showLine",{key:"fv",dependent:"showLine"},{key:"lineStyle",dependent:"showLine"},{key:"lineWidth",dependent:"showLine"}],ge=["mosaic"],ve={useAlias:!1,multiObject:!0,showBothModes:!0,source:"mosaic"},be={DEFAULT:me,OPTIONS:pe,DATA:J,PARAMS:ye,SOURCE:ge,COMMON:ve},we=h.defineComponent(R(I({},be),{__name:"retainer2",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(b){const l=b,c=h.ref(null);let w=null;const D=h.reactive([]),C=p=>D[p];class E extends de.BaseComponent{constructor(){super(...arguments),this.subscribed=!1}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),barWidth:this.getOptionValue("barWidth",30),barGap:this.getOptionValue("barGap",0),timeWindow:this.getOptionValue("timeWindow",5),isHideTitle:this.getOptionValue("isHideTitle",!0)}}init(){var e;this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=J),this.props.mode==="edit"&&L()}getPreviewHelper(){return{preview:()=>U(this,null,function*(){try{const i=yield new(yield Promise.resolve().then(()=>require("./history-CgrmMOpp.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(i)}catch(e){console.error("[Retainer2] 获取历史数据失败:",e)}}),unregister:()=>{}}}onPreview(){var n;if(this.subscribed)return;const{conf:e}=this.props,{data:i,common:t}=e;if(t.multiObject&&Array.isArray(i)){const o=new Set;i.forEach(s=>{const r=this.resolveObjectId(s);!r||o.has(r)||(o.add(r),this.subscribeRetainer(r),s.showLine&&s.fv&&this.subscribeFv(r))})}else{const o=this.resolveObjectId();this.subscribeRetainer(o),(n=i==null?void 0:i[0])!=null&&n.fv&&this.subscribeFv(o)}this.subscribed=!0}setSocketData(e){if(e)switch(e.event){case"retainer_open":this.handleRetainerOpen(e);break;case"retainer_close":this.handleRetainerClose(e);break;case"retainer_event":this.handleRetainerEvent(e);break;case"recv_fv":this.handleFvData(e);break}}handleRetainerOpen(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(a=>this.resolveObjectId(n!=null&&n.multiObject?a:void 0)===o);if(s===-1)return;let r=C(s);if(!r){const a=t[s];r={name:a.name||`历程${s+1}`,color:a.color||"#409eff",objectId:o,fv:a.fv||"",periods:[],lineData:[],showLine:a.showLine||!1,lineStyle:a.lineStyle||"solid",lineWidth:a.lineWidth||2},D.push(r)}e.opened_at&&r.periods.push({start:e.opened_at,end:null}),O()}handleRetainerClose(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(d=>this.resolveObjectId(n!=null&&n.multiObject?d:void 0)===o);if(s===-1)return;const r=C(s);if(!r)return;const a=r.periods[r.periods.length-1];a&&!a.end&&(a.end=e.close_at||new Date().toISOString()),O()}handleRetainerEvent(e){}handleFvData(e){var d;const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(f=>this.resolveObjectId(n!=null&&n.multiObject?f:void 0)===o);if(s===-1)return;const a=t[s].fv;if(a)try{const f=(d=e.data)==null?void 0:d[a];if(f!==void 0){const v=C(s);if(v&&v.showLine){const u=e.datetime||new Date().toISOString();v.lineData.push({time:u,value:f}),v.lineData.sort((_,M)=>new Date(_.time).getTime()-new Date(M.time).getTime()),O()}}}catch(f){console.error("[Retainer2] 处理 FV 数据失败:",f)}}setHistoryData(e){const{conf:i}=this.props,{data:t,common:n}=i;D.length=0,t.forEach((o,s)=>{var f;const r=this.resolveObjectId(n!=null&&n.multiObject?o:void 0),a=o.fv||"",d={name:o.name||`历程${s+1}`,color:o.color||"#409eff",objectId:r,fv:a,periods:[],lineData:[],showLine:o.showLine||!1,lineStyle:o.lineStyle||"solid",lineWidth:o.lineWidth||2};try{(((f=e==null?void 0:e.history)==null?void 0:f[s])||[]).forEach(u=>{u&&u.start_time&&(d.periods.push({start:u.start_time,end:u.end_time||null}),o.showLine&&a&&u.mosaic&&Array.isArray(u.mosaic)&&u.mosaic.forEach(_=>{const M=_[a];M!==void 0&&_.time&&d.lineData.push({time:_.time,value:M})}))}),d.lineData.sort((u,_)=>new Date(u.time).getTime()-new Date(_.time).getTime())}catch(v){}D.push(d)}),O()}}const L=()=>{const{data:p}=l.conf;D.length=0;const e=T.dayjs();p.forEach((i,t)=>{const n=`edit_object_${t}`,o=[{start:e.subtract(6+t,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(4+t,"hour").format("YYYY-MM-DD HH:mm:ss")},{start:e.subtract(2+t*.5,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(t*.3,"hour").format("YYYY-MM-DD HH:mm:ss")}],s=[];i.showLine&&o.forEach(r=>{const a=T.dayjs(r.start),f=T.dayjs(r.end).diff(a,"minute"),v=Math.max(5,Math.floor(f/10));for(let u=0;u<=v;u++){const _=a.add(f/v*u,"minute");s.push({time:_.format("YYYY-MM-DD HH:mm:ss"),value:150+Math.sin(u*.8+t*2)*50+t*30})}}),D.push({name:i.name||`历程${t+1}`,color:i.color||["#ee6666","#91cc75","#fac858"][t%3],objectId:n,fv:i.fv||"",periods:o,lineData:s,showLine:i.showLine||!1,lineStyle:i.lineStyle||"solid",lineWidth:i.lineWidth||2})})},S=new E(l,"retainer2");S.setupLifecycle();const g=S.getStyle(),W=l.conf,K=h.computed(()=>he.generateTitleStyle(l.conf.options)),V=()=>D.filter(p=>p.showLine&&p.lineData.length>0),Q=()=>{const p=[],e=V();let i=1;return e.forEach(t=>{t.periods.forEach((n,o)=>{const s=new Date(n.start).getTime(),r=n.end?new Date(n.end).getTime():Date.now(),a=t.lineData.filter(d=>{const f=new Date(d.time).getTime();return f>=s&&f<=r}).map(d=>[new Date(d.time).getTime(),d.value]);a.length>0&&p.push({name:o===0?`${t.name}-曲线`:`${t.name}-曲线-${o+1}`,type:"line",yAxisIndex:i,smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:t.color,width:t.lineWidth,type:t.lineStyle},itemStyle:{color:t.color},data:a})}),i++}),p},Z=p=>{const e=V(),i=e.length,t=[{type:"value",min:0,max:p,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}}];return e.forEach((n,o)=>{const s=n.lineData.map(u=>u.value),r=Math.max(...s),a=Math.min(...s),d=Math.ceil(r*1.1),f=Math.floor(a*.9),v=o*50;t.push({type:"value",position:"right",offset:v,min:f,max:d,axisLine:{show:!0,lineStyle:{color:n.color}},axisTick:{show:!0,lineStyle:{color:n.color}},axisLabel:{color:n.color,fontSize:10},splitLine:{show:!1}})}),{yAxes:t,lineCount:i}},k=()=>{c.value&&(w=fe.init(c.value),O())},O=()=>{var B;if(!w)return;const p=D.length||1,e=((B=c.value)==null?void 0:B.clientHeight)||300,i=30,t=10,n=e-i-t,o=g.value.barWidth||30,s=g.value.barGap||0,r=o+s,a=p*r;let d=o,f=s,v=r;if(a>n){const m=n/a;d=Math.max(o*m,10),f=s*m,v=d+f}const u=[];let _=!1;D.forEach((m,y)=>{m.periods.forEach(x=>{const j=new Date(x.start).getTime(),Y=x.end?new Date(x.end).getTime():Date.now();x.end||(_=!0),u.push({name:m.name,value:[j,Y,y],itemStyle:{color:x.end?m.color+"80":m.color}})})});const{yAxes:M,lineCount:N}=Z(p),ee=N>0?20+N*50:20,te={tooltip:{trigger:"axis",formatter:m=>{if(Array.isArray(m)){const y=m.find(x=>x.seriesType==="line");if(y){const x=T.dayjs(y.value[0]).format("YYYY-MM-DD HH:mm:ss");return`${y.seriesName}<br/>时间: ${x}<br/>数值: ${y.value[1]}`}}return""}},grid:{left:40,right:ee,top:t,bottom:i,containLabel:!1},xAxis:R(I({type:"time",position:"bottom"},_?{min:Date.now()-g.value.timeWindow*60*1e3,max:Date.now()}:{}),{axisLine:{show:!0,lineStyle:{color:g.value.titleColor}},axisTick:{show:!0,lineStyle:{color:g.value.titleColor}},axisLabel:{formatter:"{HH}:{mm}",color:g.value.textColor,fontSize:11,margin:8},splitLine:{show:!1}}),yAxis:M,series:[{name:"甘特图",type:"custom",yAxisIndex:0,renderItem:(m,y)=>{var q;const x=y.value(0),j=y.value(1),Y=y.value(2),A=y.coord([x,0])[0],oe=y.coord([j,0])[0],P=m.coordSys.y+m.coordSys.height-(Y+1)*v+f,ne=P+d/2,F=Math.max(oe-A,2),ie=((q=D[Y])==null?void 0:q.name)||"";return{type:"group",children:[{type:"rect",shape:{x:A,y:P,width:F,height:d,r:2},style:y.style()},{type:"text",style:{x:A+F/2,y:ne,text:ie,fill:g.value.textColor,fontSize:11,textAlign:"center",textVerticalAlign:"middle"}}]}},encode:{x:[0,1],y:2,tooltip:[0,1]},tooltip:{formatter:m=>{const y=T.dayjs(m.value[0]).format("YYYY-MM-DD HH:mm:ss"),x=T.dayjs(m.value[1]).format("YYYY-MM-DD HH:mm:ss"),j=m.value[1]>=Date.now()-1e3;return`${m.name}<br/>开始: ${y}<br/>结束: ${j?"进行中":x}`}},data:u},...Q()]};w.setOption(te,!0)},z=()=>{w==null||w.resize()};let H=null;return h.onMounted(()=>{H=new ResizeObserver(()=>{w?w.resize():c.value&&k()}),c.value&&H.observe(c.value),setTimeout(()=>{k()},100),window.addEventListener("resize",z)}),h.onUnmounted(()=>{window.removeEventListener("resize",z),H==null||H.disconnect(),w==null||w.dispose()}),h.watch(()=>l.conf.data,()=>{l.mode==="edit"&&L(),O()},{deep:!0}),h.watch(()=>l.conf.options,()=>{g.value=S.extractStyles(),O()},{deep:!0}),h.watchEffect(()=>{l.conf.historyData&&S.setHistoryData(l.conf.historyData),l.conf.socketData&&S.setSocketData(l.conf.socketData)}),(p,e)=>(h.openBlock(),h.createElementBlock("div",{class:"mix-component",style:h.normalizeStyle({background:h.unref(g).bgColor,borderRadius:h.unref(g).radiusSize+"px"})},[h.createElementVNode("div",{class:"mix-title",style:h.normalizeStyle(K.value)},h.toDisplayString(h.unref(W).caption||h.unref(W).name),5),h.createElementVNode("div",ue,[h.createElementVNode("div",{class:"timeline-chart",ref_key:"chartRef",ref:c},null,512)]),h.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),De=T._export_sfc(we,[["__scopeId","data-v-7162b702"]]);exports.default=De;
@@ -1 +1 @@
1
- "use strict";var ye=Object.defineProperty,xe=Object.defineProperties;var Ne=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var Ce=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var Z=(g,u,c)=>u in g?ye(g,u,{enumerable:!0,configurable:!0,writable:!0,value:c}):g[u]=c,U=(g,u)=>{for(var c in u||(u={}))Ce.call(u,c)&&Z(g,c,u[c]);if(X)for(var c of X(u))we.call(u,c)&&Z(g,c,u[c]);return g},$=(g,u)=>xe(g,Ne(u));var T=(g,u,c)=>new Promise((w,F)=>{var L=f=>{try{E(c.next(f))}catch(k){F(k)}},V=f=>{try{E(c.throw(f))}catch(k){F(k)}},E=f=>f.done?w(f.value):Promise.resolve(f.value).then(L,V);E((c=c.apply(g,u)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/timeline/style/css");require("element-plus/es/components/timeline-item/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/alert/style/css");const Se=require("./AgGridTable-BQvI6jpO.cjs");require("element-plus/es/components/button/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");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio-button/style/css");const e=require("vue"),_=require("./index-DoEyCVDU.cjs"),Te=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Ee=require("./BaseComponent-DKuQG62G.cjs"),ke=require("./titleStyle-NSnz6cUg.cjs"),C=require("element-plus"),De=require("@element-plus/icons-vue"),Be=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),W=require("./syncMixiotListConfig-Elkp8zAs.cjs"),Ae=require("./AgActionsRenderer-DnPvuT_-.cjs"),ee=require("./ele-lst-icon-CrxnHZ-A.cjs"),Oe={class:"mix-body"},Me={class:"toolbar-status"},je={class:"top-bar"},Re={class:"detail-body"},qe={key:0,class:"detail-events-title"},Fe={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"历程记录",NAME_EN:"RetainerRecordList",ORDER:7,PLATFORM:["pc","screen"]},Le={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[]},te=[{export:!0,view:!0}],ze=[{key:"export",label:"导出",type:"checkbox"}],Ie=[{key:"view",label:"详情",type:"checkbox"}],Pe=[],Ye={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"template_id",label:"setting.gridFields.templateId"},{value:"code",label:"setting.gridFields.code"},{value:"label_cn",label:"setting.gridFields.labelCn"},{value:"label_en",label:"setting.gridFields.labelEn"},{value:"category",label:"setting.gridFields.category"},{value:"object_id",label:"setting.gridFields.objectId"},{value:"object_name",label:"setting.gridFields.objectName"},{value:"object_alias",label:"setting.gridFields.objectAlias"},{value:"model",label:"setting.gridFields.model"},{value:"customer_name",label:"setting.gridFields.customerName"},{value:"opened_at",label:"setting.gridFields.openedAt"}]},He={DEFAULT:Fe,OPTIONS:Le,DATA:te,COMMANDS:ze,OPERATIONS:Ie,SOURCE:Pe,COMMON:Ye},Ue=e.defineComponent($(U({},He),{__name:"retainerRecordList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(g){const u={ALERT:"报警",FAULT:"故障",OTHER:"其他"},c="YYYY-MM-DD HH:mm:ss",w=g;class F extends Ee.BaseComponent{getDataBool(t,r){var n,i;const l=(i=(n=this.props.conf)==null?void 0:n.data)==null?void 0:i[0];return l&&Object.prototype.hasOwnProperty.call(l,t)&&l[t]!==void 0?!!l[t]:this.getOptionValue(t,r)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),export:this.getDataBool("export",!0),view:this.getDataBool("view",!0)}}init(){return T(this,null,function*(){this.applyTheme(),W.setupMixiotListConf(this.props.conf,{export:!0,view:!0},te),this.Style.value=this.extractStyles()})}}const L=new F(w,"retainerRecordList");L.setupLifecycle();const V=L.getStyle();e.computed(()=>W.computeMixiotActionColumnMinWidth(V.value,{view:60}));const{mixiotPanelClass:E,mixiotPanelRootStyle:f}=Te.useMixiotPanelSurface(V),k=e.computed(()=>ke.generateTitleStyle(w.conf.options)),ae=e.computed(()=>W.buildMixiotColumnsConfig(w.conf)),b=e.reactive({current:1,pageSize:20,total:0}),D=e.ref("1"),B=e.ref([_.dayjs().subtract(1,"month").format(c),_.dayjs().format(c)]),A=e.ref(""),v=e.ref("object_name"),O=e.ref(null),M=e.ref(""),S=e.ref([]),P=e.ref(!1),Y=e.ref({});function le(){b.current=1,j()}function oe(){A.value="",O.value=null,M.value=""}function ne(o){var r;if(o==null||o==="")return"";const t=String(o);return(r=u[t])!=null?r:t}function G(o){const t=o.retained;return t===1||t==="1"}function ie(){return T(this,null,function*(){var o;if(!(Object.keys(Y.value).length>0))try{let t=1;const r=2e3;for(;;){const l=yield _.api.http("get_object_list",{page_index:t,page_size:r},!1),n=(o=l==null?void 0:l.result)!=null?o:l,i=Array.isArray(n==null?void 0:n.data)?n.data:[];for(const d of i){const y=d.uid;y&&(Y.value[y]={name:d.name,alias:d.alias,model:d.model})}const h=typeof(n==null?void 0:n.total_records)=="number"?n.total_records:i.length;if(!i.length||t*r>=h)break;t++}}catch(t){}})}function re(){const o=[];D.value!=="2"&&o.push(["retained","=",D.value]);const t=B.value;if(t&&t.length===2&&t[0]&&t[1]){const[l,n]=t[0]<=t[1]?t:[t[1],t[0]];o.push(["created",">=",l]),o.push(["created","<=",n])}if(v.value==="opened_at"){const l=O.value;if(l&&l.length===2&&l[0]&&l[1]){const[n,i]=l[0]<=l[1]?l:[l[1],l[0]];o.push(["opened_at",">=",n]),o.push(["opened_at","<=",i])}}else if(v.value==="category"){const l=M.value.trim();l&&o.push(["category","=",l])}else{const l=A.value.trim();l&&o.push([v.value,"like",`%${l}%`])}Be.appendCommonDesignerWhereAnd(w.conf.common,o);const r={page_index:b.current,page_size:b.pageSize};return o.length&&(r.where_and=JSON.stringify(o)),r}function j(){return T(this,null,function*(){var o;P.value=!0;try{yield ie();const t=yield _.api.http("get_retainer_result_list",re(),!0),r=(o=t==null?void 0:t.result)!=null?o:t,l=Array.isArray(r==null?void 0:r.data)?r.data:[];S.value=l.map(i=>{var y,x,I;const h=i.object_id?String(i.object_id):"",d=h?Y.value[h]:void 0;return $(U({},i),{object_name:(y=i.object_name)!=null?y:d==null?void 0:d.name,object_alias:(x=i.object_alias)!=null?x:d==null?void 0:d.alias,model:(I=i.model)!=null?I:d==null?void 0:d.model})});const n=r==null?void 0:r.total_records;b.total=typeof n=="number"?n:l.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[retainerRecordList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),S.value=[],b.total=0}finally{P.value=!1}})}const se={AgActionsRenderer:Ae.AgActionsRenderer},ce=e.computed(()=>{const o=ae.value.filter(t=>t.visible).map(t=>({field:t.prop,headerName:t.label,width:t.width||t.minWidth||120,minWidth:t.minWidth||80}));return o.push({headerName:"操作",minWidth:80,pinned:"right",cellRenderer:"AgActionsRenderer",cellRendererParams:{showView:V.value.view,onView:pe}}),o});function ue(){j()}e.computed(()=>S.value);function K(){b.current=1,j()}function de(){A.value="",O.value=null,M.value="",v.value="object_name",D.value="1",B.value=[_.dayjs().subtract(1,"month").format(c),_.dayjs().format(c)],b.current=1,j()}const z=e.ref(!1),H=e.ref(!1),R=e.ref(""),s=e.ref(null),q=e.ref([]);function pe(o){return T(this,null,function*(){var r;const t=o.uid;if(!t){C.ElMessage.warning("当前行缺少历程编号,无法拉取详情");return}z.value=!0,H.value=!0,R.value="",s.value=null,q.value=[];try{const l=yield _.api.http("get_retainer_with_events",{retainer_id:t},!0),n=(r=l==null?void 0:l.result)!=null?r:l;if(l&&l.code!==void 0&&l.code!==200){R.value=String(l.msg||l.info||"详情接口失败");return}s.value=n;const i=n==null?void 0:n.events;q.value=Array.isArray(i)?i:[]}catch(l){R.value="加载历程详情失败"}finally{H.value=!1}})}function me(o){const t=r=>String(r).padStart(2,"0");return`${o.getFullYear()}-${t(o.getMonth()+1)}-${t(o.getDate())} ${t(o.getHours())}:${t(o.getMinutes())}:${t(o.getSeconds())}`}function ge(){return T(this,null,function*(){const o=B.value;if(!o||o.length<2||!o[0]||!o[1]){C.ElMessage.warning("请先选择创建时间范围后再导出");return}const t=[...new Set(S.value.map(l=>{var n;return String((n=l.object_id)!=null?n:"").trim()}).filter(Boolean))],r=[...new Set(S.value.map(l=>{var n;return String((n=l.template_id)!=null?n:"").trim()}).filter(Boolean))];if(!t.length&&!r.length){C.ElMessage.warning("当前页列表无项目编号或对象编号,请加载数据后再导出");return}try{yield C.ElMessageBox.confirm("将按当前列表中的项目/对象编号及所选创建时间范围提交导出任务(与 mixui 历程导出一致),是否继续?","导出历程数据",{type:"info"})}catch(l){return}try{const l=yield _.api.http("export_retainer_data",{file_name:`retainer_export_${me(new Date).replace(/[: ]/g,"_")}`,open_at:o[0]<=o[1]?o[0]:o[1],close_at:o[0]<=o[1]?o[1]:o[0],template_ids:r,object_ids:t,character:"utf-8"},!0);if(l.code!==void 0&&l.code!==200){C.ElMessage.warning(l.msg||l.info||"导出请求未成功");return}C.ElMessage.success("导出任务已提交")}catch(l){C.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{j()}),(o,t)=>{const r=m.ElRadioButton,l=m.ElRadioGroup,n=m.ElDatePicker,i=m.ElOption,h=m.ElSelect,d=m.ElIcon,y=m.ElInput,x=m.ElButton,I=Se.AgGridTable,fe=m.ElAlert,p=m.ElDescriptionsItem,ve=m.ElTag,_e=m.ElDescriptions,be=m.ElTimelineItem,Ve=m.ElTimeline,he=m.ElDialog,Q=m.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["retainer-record-list mix-component",e.unref(E)]),style:e.normalizeStyle(e.unref(f))},[e.unref(V).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(k.value)},e.toDisplayString(g.conf.caption||g.conf.name),5)),e.createElementVNode("div",Oe,[e.createElementVNode("div",Me,[e.createVNode(l,{modelValue:D.value,"onUpdate:modelValue":t[0]||(t[0]=a=>D.value=a),onChange:le},{default:e.withCtx(()=>[e.createVNode(r,{label:"1"},{default:e.withCtx(()=>[...t[9]||(t[9]=[e.createTextVNode("持续历程",-1)])]),_:1}),e.createVNode(r,{label:"0"},{default:e.withCtx(()=>[...t[10]||(t[10]=[e.createTextVNode("已完结历程",-1)])]),_:1}),e.createVNode(r,{label:"2"},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode("全部记录",-1)])]),_:1})]),_:1},8,["modelValue"]),e.createVNode(n,{modelValue:B.value,"onUpdate:modelValue":t[1]||(t[1]=a=>B.value=a),type:"datetimerange","range-separator":"至","start-placeholder":"创建开始","end-placeholder":"创建结束","value-format":"YYYY-MM-DD HH:mm:ss",class:"toolbar-created-range"},null,8,["modelValue"])]),e.createElementVNode("div",je,[e.createVNode(h,{modelValue:v.value,"onUpdate:modelValue":t[2]||(t[2]=a=>v.value=a),class:"toolbar-field-select",onChange:oe},{default:e.withCtx(()=>[e.createVNode(i,{label:"项目编号",value:"template_id"}),e.createVNode(i,{label:"历程项编码",value:"code"}),e.createVNode(i,{label:"历程项名称(中文)",value:"label_cn"}),e.createVNode(i,{label:"历程项名称(英文)",value:"label_en"}),e.createVNode(i,{label:"历程类型",value:"category"}),e.createVNode(i,{label:"对象编号",value:"object_id"}),e.createVNode(i,{label:"对象别名",value:"object_alias"}),e.createVNode(i,{label:"对象名称",value:"object_name"}),e.createVNode(i,{label:"对象型号",value:"model"}),e.createVNode(i,{label:"项目名称",value:"customer_name"}),e.createVNode(i,{label:"开始时间",value:"opened_at"})]),_:1},8,["modelValue"]),v.value!=="opened_at"&&v.value!=="category"?(e.openBlock(),e.createBlock(y,{key:0,modelValue:A.value,"onUpdate:modelValue":t[3]||(t[3]=a=>A.value=a),placeholder:"输入关键字后搜索(与 mixui 历程记录检索字段一致)",class:"toolbar-search",onKeyup:e.withKeys(K,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(d,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(De.Search))]),_:1})]),_:1},8,["modelValue"])):v.value==="opened_at"?(e.openBlock(),e.createBlock(n,{key:1,modelValue:O.value,"onUpdate:modelValue":t[4]||(t[4]=a=>O.value=a),type:"datetimerange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD HH:mm:ss",class:"toolbar-opened-range"},null,8,["modelValue"])):(e.openBlock(),e.createBlock(h,{key:2,modelValue:M.value,"onUpdate:modelValue":t[5]||(t[5]=a=>M.value=a),placeholder:"历程类型",class:"toolbar-category",clearable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,(a,N)=>e.createVNode(i,{key:N,label:a,value:N},null,8,["label","value"])),64))]),_:1},8,["modelValue"])),e.createVNode(x,{type:"primary",onClick:K},{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(x,{onClick:de},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(V).export?(e.openBlock(),e.createBlock(x,{key:3,type:"success",onClick:ge},{default:e.withCtx(()=>[...t[14]||(t[14]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(I,{"column-defs":ce.value,"row-data":S.value,"show-pagination":!0,pager:b,"auto-fill-columns":!0,components:se,onPageChange:ue},null,8,["column-defs","row-data","pager"])]),e.createVNode(he,{modelValue:z.value,"onUpdate:modelValue":t[7]||(t[7]=a=>z.value=a),title:"历程记录详情",width:"720px","destroy-on-close":"",onClosed:t[8]||(t[8]=a=>s.value=null)},{footer:e.withCtx(()=>[e.createVNode(x,{type:"primary",onClick:t[6]||(t[6]=a=>z.value=!1)},{default:e.withCtx(()=>[...t[15]||(t[15]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Re,[R.value?(e.openBlock(),e.createBlock(fe,{key:0,type:"error",title:R.value,"show-icon":"",closable:!1,class:"mb-3"},null,8,["title"])):s.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(_e,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(p,{label:"历程编号"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.uid)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"项目编号"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.template_id)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"历程项(中文)"},{default:e.withCtx(()=>{var a,N;return[e.createTextVNode(e.toDisplayString((N=(a=s.value.label_local)!=null?a:s.value.label_cn)!=null?N:""),1)]}),_:1}),e.createVNode(p,{label:"历程项(英文)"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.label_en)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"历程项编码"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.code)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"历程类型"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ne(s.value.category)),1)]),_:1}),e.createVNode(p,{label:"对象编号"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.object_id)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"对象名称"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.object_name)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"对象别名"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.object_alias)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"型号"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.model)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"状态"},{default:e.withCtx(()=>[e.createVNode(ve,{type:G(s.value)?"success":"info",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(G(s.value)?"持续":"已完结"),1)]),_:1},8,["type"])]),_:1}),e.createVNode(p,{label:"开始时间"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.opened_at)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"结束时间"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.close_at)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"持续时间"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.elapsed)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"统计结果"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.statis_result)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"描述",span:2},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.description)!=null?a:""),1)]}),_:1})]),_:1}),q.value.length?(e.openBlock(),e.createElementBlock("div",qe,"事件")):e.createCommentVNode("",!0),q.value.length?(e.openBlock(),e.createBlock(Ve,{key:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(a,N)=>{var J;return e.openBlock(),e.createBlock(be,{key:N,timestamp:String((J=a.datetime)!=null?J:"")},{default:e.withCtx(()=>[e.createElementVNode("div",null,"状态:"+e.toDisplayString(a.status===1||a.status==="1"?"开启":"关闭"),1)]),_:2},1032,["timestamp"])}),128))]),_:1})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),[[Q,H.value]])]),_:1},8,["modelValue"]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[Q,P.value]])}}})),$e=_._export_sfc(Ue,[["__scopeId","data-v-7c707e4d"]]);exports.default=$e;
1
+ "use strict";var ye=Object.defineProperty,xe=Object.defineProperties;var Ne=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var Ce=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var Z=(g,u,c)=>u in g?ye(g,u,{enumerable:!0,configurable:!0,writable:!0,value:c}):g[u]=c,U=(g,u)=>{for(var c in u||(u={}))Ce.call(u,c)&&Z(g,c,u[c]);if(X)for(var c of X(u))we.call(u,c)&&Z(g,c,u[c]);return g},$=(g,u)=>xe(g,Ne(u));var T=(g,u,c)=>new Promise((w,F)=>{var L=f=>{try{E(c.next(f))}catch(k){F(k)}},V=f=>{try{E(c.throw(f))}catch(k){F(k)}},E=f=>f.done?w(f.value):Promise.resolve(f.value).then(L,V);E((c=c.apply(g,u)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/timeline/style/css");require("element-plus/es/components/timeline-item/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/alert/style/css");const Se=require("./AgGridTable-CDcTnAen.cjs");require("element-plus/es/components/button/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");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio-button/style/css");const e=require("vue"),_=require("./index-ucOU7Nfo.cjs"),Te=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Ee=require("./BaseComponent-oKNx9Ues.cjs"),ke=require("./titleStyle-NSnz6cUg.cjs"),C=require("element-plus"),De=require("@element-plus/icons-vue"),Be=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),W=require("./syncMixiotListConfig-Elkp8zAs.cjs"),Ae=require("./AgActionsRenderer-DyhCl2zz.cjs"),ee=require("./ele-lst-icon-CrxnHZ-A.cjs"),Oe={class:"mix-body"},Me={class:"toolbar-status"},je={class:"top-bar"},Re={class:"detail-body"},qe={key:0,class:"detail-events-title"},Fe={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"历程记录",NAME_EN:"RetainerRecordList",ORDER:7,PLATFORM:["pc","screen"]},Le={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[]},te=[{export:!0,view:!0}],ze=[{key:"export",label:"导出",type:"checkbox"}],Ie=[{key:"view",label:"详情",type:"checkbox"}],Pe=[],Ye={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"template_id",label:"setting.gridFields.templateId"},{value:"code",label:"setting.gridFields.code"},{value:"label_cn",label:"setting.gridFields.labelCn"},{value:"label_en",label:"setting.gridFields.labelEn"},{value:"category",label:"setting.gridFields.category"},{value:"object_id",label:"setting.gridFields.objectId"},{value:"object_name",label:"setting.gridFields.objectName"},{value:"object_alias",label:"setting.gridFields.objectAlias"},{value:"model",label:"setting.gridFields.model"},{value:"customer_name",label:"setting.gridFields.customerName"},{value:"opened_at",label:"setting.gridFields.openedAt"}]},He={DEFAULT:Fe,OPTIONS:Le,DATA:te,COMMANDS:ze,OPERATIONS:Ie,SOURCE:Pe,COMMON:Ye},Ue=e.defineComponent($(U({},He),{__name:"retainerRecordList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(g){const u={ALERT:"报警",FAULT:"故障",OTHER:"其他"},c="YYYY-MM-DD HH:mm:ss",w=g;class F extends Ee.BaseComponent{getDataBool(t,r){var n,i;const l=(i=(n=this.props.conf)==null?void 0:n.data)==null?void 0:i[0];return l&&Object.prototype.hasOwnProperty.call(l,t)&&l[t]!==void 0?!!l[t]:this.getOptionValue(t,r)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),export:this.getDataBool("export",!0),view:this.getDataBool("view",!0)}}init(){return T(this,null,function*(){this.applyTheme(),W.setupMixiotListConf(this.props.conf,{export:!0,view:!0},te),this.Style.value=this.extractStyles()})}}const L=new F(w,"retainerRecordList");L.setupLifecycle();const V=L.getStyle();e.computed(()=>W.computeMixiotActionColumnMinWidth(V.value,{view:60}));const{mixiotPanelClass:E,mixiotPanelRootStyle:f}=Te.useMixiotPanelSurface(V),k=e.computed(()=>ke.generateTitleStyle(w.conf.options)),ae=e.computed(()=>W.buildMixiotColumnsConfig(w.conf)),b=e.reactive({current:1,pageSize:20,total:0}),D=e.ref("1"),B=e.ref([_.dayjs().subtract(1,"month").format(c),_.dayjs().format(c)]),A=e.ref(""),v=e.ref("object_name"),O=e.ref(null),M=e.ref(""),S=e.ref([]),P=e.ref(!1),Y=e.ref({});function le(){b.current=1,j()}function oe(){A.value="",O.value=null,M.value=""}function ne(o){var r;if(o==null||o==="")return"";const t=String(o);return(r=u[t])!=null?r:t}function G(o){const t=o.retained;return t===1||t==="1"}function ie(){return T(this,null,function*(){var o;if(!(Object.keys(Y.value).length>0))try{let t=1;const r=2e3;for(;;){const l=yield _.api.http("get_object_list",{page_index:t,page_size:r},!1),n=(o=l==null?void 0:l.result)!=null?o:l,i=Array.isArray(n==null?void 0:n.data)?n.data:[];for(const d of i){const y=d.uid;y&&(Y.value[y]={name:d.name,alias:d.alias,model:d.model})}const h=typeof(n==null?void 0:n.total_records)=="number"?n.total_records:i.length;if(!i.length||t*r>=h)break;t++}}catch(t){}})}function re(){const o=[];D.value!=="2"&&o.push(["retained","=",D.value]);const t=B.value;if(t&&t.length===2&&t[0]&&t[1]){const[l,n]=t[0]<=t[1]?t:[t[1],t[0]];o.push(["created",">=",l]),o.push(["created","<=",n])}if(v.value==="opened_at"){const l=O.value;if(l&&l.length===2&&l[0]&&l[1]){const[n,i]=l[0]<=l[1]?l:[l[1],l[0]];o.push(["opened_at",">=",n]),o.push(["opened_at","<=",i])}}else if(v.value==="category"){const l=M.value.trim();l&&o.push(["category","=",l])}else{const l=A.value.trim();l&&o.push([v.value,"like",`%${l}%`])}Be.appendCommonDesignerWhereAnd(w.conf.common,o);const r={page_index:b.current,page_size:b.pageSize};return o.length&&(r.where_and=JSON.stringify(o)),r}function j(){return T(this,null,function*(){var o;P.value=!0;try{yield ie();const t=yield _.api.http("get_retainer_result_list",re(),!0),r=(o=t==null?void 0:t.result)!=null?o:t,l=Array.isArray(r==null?void 0:r.data)?r.data:[];S.value=l.map(i=>{var y,x,I;const h=i.object_id?String(i.object_id):"",d=h?Y.value[h]:void 0;return $(U({},i),{object_name:(y=i.object_name)!=null?y:d==null?void 0:d.name,object_alias:(x=i.object_alias)!=null?x:d==null?void 0:d.alias,model:(I=i.model)!=null?I:d==null?void 0:d.model})});const n=r==null?void 0:r.total_records;b.total=typeof n=="number"?n:l.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[retainerRecordList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),S.value=[],b.total=0}finally{P.value=!1}})}const se={AgActionsRenderer:Ae.AgActionsRenderer},ce=e.computed(()=>{const o=ae.value.filter(t=>t.visible).map(t=>({field:t.prop,headerName:t.label,width:t.width||t.minWidth||120,minWidth:t.minWidth||80}));return o.push({headerName:"操作",minWidth:80,pinned:"right",cellRenderer:"AgActionsRenderer",cellRendererParams:{showView:V.value.view,onView:pe}}),o});function ue(){j()}e.computed(()=>S.value);function K(){b.current=1,j()}function de(){A.value="",O.value=null,M.value="",v.value="object_name",D.value="1",B.value=[_.dayjs().subtract(1,"month").format(c),_.dayjs().format(c)],b.current=1,j()}const z=e.ref(!1),H=e.ref(!1),R=e.ref(""),s=e.ref(null),q=e.ref([]);function pe(o){return T(this,null,function*(){var r;const t=o.uid;if(!t){C.ElMessage.warning("当前行缺少历程编号,无法拉取详情");return}z.value=!0,H.value=!0,R.value="",s.value=null,q.value=[];try{const l=yield _.api.http("get_retainer_with_events",{retainer_id:t},!0),n=(r=l==null?void 0:l.result)!=null?r:l;if(l&&l.code!==void 0&&l.code!==200){R.value=String(l.msg||l.info||"详情接口失败");return}s.value=n;const i=n==null?void 0:n.events;q.value=Array.isArray(i)?i:[]}catch(l){R.value="加载历程详情失败"}finally{H.value=!1}})}function me(o){const t=r=>String(r).padStart(2,"0");return`${o.getFullYear()}-${t(o.getMonth()+1)}-${t(o.getDate())} ${t(o.getHours())}:${t(o.getMinutes())}:${t(o.getSeconds())}`}function ge(){return T(this,null,function*(){const o=B.value;if(!o||o.length<2||!o[0]||!o[1]){C.ElMessage.warning("请先选择创建时间范围后再导出");return}const t=[...new Set(S.value.map(l=>{var n;return String((n=l.object_id)!=null?n:"").trim()}).filter(Boolean))],r=[...new Set(S.value.map(l=>{var n;return String((n=l.template_id)!=null?n:"").trim()}).filter(Boolean))];if(!t.length&&!r.length){C.ElMessage.warning("当前页列表无项目编号或对象编号,请加载数据后再导出");return}try{yield C.ElMessageBox.confirm("将按当前列表中的项目/对象编号及所选创建时间范围提交导出任务(与 mixui 历程导出一致),是否继续?","导出历程数据",{type:"info"})}catch(l){return}try{const l=yield _.api.http("export_retainer_data",{file_name:`retainer_export_${me(new Date).replace(/[: ]/g,"_")}`,open_at:o[0]<=o[1]?o[0]:o[1],close_at:o[0]<=o[1]?o[1]:o[0],template_ids:r,object_ids:t,character:"utf-8"},!0);if(l.code!==void 0&&l.code!==200){C.ElMessage.warning(l.msg||l.info||"导出请求未成功");return}C.ElMessage.success("导出任务已提交")}catch(l){C.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{j()}),(o,t)=>{const r=m.ElRadioButton,l=m.ElRadioGroup,n=m.ElDatePicker,i=m.ElOption,h=m.ElSelect,d=m.ElIcon,y=m.ElInput,x=m.ElButton,I=Se.AgGridTable,fe=m.ElAlert,p=m.ElDescriptionsItem,ve=m.ElTag,_e=m.ElDescriptions,be=m.ElTimelineItem,Ve=m.ElTimeline,he=m.ElDialog,Q=m.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["retainer-record-list mix-component",e.unref(E)]),style:e.normalizeStyle(e.unref(f))},[e.unref(V).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(k.value)},e.toDisplayString(g.conf.caption||g.conf.name),5)),e.createElementVNode("div",Oe,[e.createElementVNode("div",Me,[e.createVNode(l,{modelValue:D.value,"onUpdate:modelValue":t[0]||(t[0]=a=>D.value=a),onChange:le},{default:e.withCtx(()=>[e.createVNode(r,{label:"1"},{default:e.withCtx(()=>[...t[9]||(t[9]=[e.createTextVNode("持续历程",-1)])]),_:1}),e.createVNode(r,{label:"0"},{default:e.withCtx(()=>[...t[10]||(t[10]=[e.createTextVNode("已完结历程",-1)])]),_:1}),e.createVNode(r,{label:"2"},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode("全部记录",-1)])]),_:1})]),_:1},8,["modelValue"]),e.createVNode(n,{modelValue:B.value,"onUpdate:modelValue":t[1]||(t[1]=a=>B.value=a),type:"datetimerange","range-separator":"至","start-placeholder":"创建开始","end-placeholder":"创建结束","value-format":"YYYY-MM-DD HH:mm:ss",class:"toolbar-created-range"},null,8,["modelValue"])]),e.createElementVNode("div",je,[e.createVNode(h,{modelValue:v.value,"onUpdate:modelValue":t[2]||(t[2]=a=>v.value=a),class:"toolbar-field-select",onChange:oe},{default:e.withCtx(()=>[e.createVNode(i,{label:"项目编号",value:"template_id"}),e.createVNode(i,{label:"历程项编码",value:"code"}),e.createVNode(i,{label:"历程项名称(中文)",value:"label_cn"}),e.createVNode(i,{label:"历程项名称(英文)",value:"label_en"}),e.createVNode(i,{label:"历程类型",value:"category"}),e.createVNode(i,{label:"对象编号",value:"object_id"}),e.createVNode(i,{label:"对象别名",value:"object_alias"}),e.createVNode(i,{label:"对象名称",value:"object_name"}),e.createVNode(i,{label:"对象型号",value:"model"}),e.createVNode(i,{label:"项目名称",value:"customer_name"}),e.createVNode(i,{label:"开始时间",value:"opened_at"})]),_:1},8,["modelValue"]),v.value!=="opened_at"&&v.value!=="category"?(e.openBlock(),e.createBlock(y,{key:0,modelValue:A.value,"onUpdate:modelValue":t[3]||(t[3]=a=>A.value=a),placeholder:"输入关键字后搜索(与 mixui 历程记录检索字段一致)",class:"toolbar-search",onKeyup:e.withKeys(K,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(d,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(De.Search))]),_:1})]),_:1},8,["modelValue"])):v.value==="opened_at"?(e.openBlock(),e.createBlock(n,{key:1,modelValue:O.value,"onUpdate:modelValue":t[4]||(t[4]=a=>O.value=a),type:"datetimerange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD HH:mm:ss",class:"toolbar-opened-range"},null,8,["modelValue"])):(e.openBlock(),e.createBlock(h,{key:2,modelValue:M.value,"onUpdate:modelValue":t[5]||(t[5]=a=>M.value=a),placeholder:"历程类型",class:"toolbar-category",clearable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,(a,N)=>e.createVNode(i,{key:N,label:a,value:N},null,8,["label","value"])),64))]),_:1},8,["modelValue"])),e.createVNode(x,{type:"primary",onClick:K},{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(x,{onClick:de},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(V).export?(e.openBlock(),e.createBlock(x,{key:3,type:"success",onClick:ge},{default:e.withCtx(()=>[...t[14]||(t[14]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(I,{"column-defs":ce.value,"row-data":S.value,"show-pagination":!0,pager:b,"auto-fill-columns":!0,components:se,onPageChange:ue},null,8,["column-defs","row-data","pager"])]),e.createVNode(he,{modelValue:z.value,"onUpdate:modelValue":t[7]||(t[7]=a=>z.value=a),title:"历程记录详情",width:"720px","destroy-on-close":"",onClosed:t[8]||(t[8]=a=>s.value=null)},{footer:e.withCtx(()=>[e.createVNode(x,{type:"primary",onClick:t[6]||(t[6]=a=>z.value=!1)},{default:e.withCtx(()=>[...t[15]||(t[15]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Re,[R.value?(e.openBlock(),e.createBlock(fe,{key:0,type:"error",title:R.value,"show-icon":"",closable:!1,class:"mb-3"},null,8,["title"])):s.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(_e,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(p,{label:"历程编号"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.uid)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"项目编号"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.template_id)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"历程项(中文)"},{default:e.withCtx(()=>{var a,N;return[e.createTextVNode(e.toDisplayString((N=(a=s.value.label_local)!=null?a:s.value.label_cn)!=null?N:""),1)]}),_:1}),e.createVNode(p,{label:"历程项(英文)"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.label_en)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"历程项编码"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.code)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"历程类型"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ne(s.value.category)),1)]),_:1}),e.createVNode(p,{label:"对象编号"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.object_id)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"对象名称"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.object_name)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"对象别名"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.object_alias)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"型号"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.model)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"状态"},{default:e.withCtx(()=>[e.createVNode(ve,{type:G(s.value)?"success":"info",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(G(s.value)?"持续":"已完结"),1)]),_:1},8,["type"])]),_:1}),e.createVNode(p,{label:"开始时间"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.opened_at)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"结束时间"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.close_at)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"持续时间"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.elapsed)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"统计结果"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.statis_result)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"描述",span:2},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.description)!=null?a:""),1)]}),_:1})]),_:1}),q.value.length?(e.openBlock(),e.createElementBlock("div",qe,"事件")):e.createCommentVNode("",!0),q.value.length?(e.openBlock(),e.createBlock(Ve,{key:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(a,N)=>{var J;return e.openBlock(),e.createBlock(be,{key:N,timestamp:String((J=a.datetime)!=null?J:"")},{default:e.withCtx(()=>[e.createElementVNode("div",null,"状态:"+e.toDisplayString(a.status===1||a.status==="1"?"开启":"关闭"),1)]),_:2},1032,["timestamp"])}),128))]),_:1})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),[[Q,H.value]])]),_:1},8,["modelValue"]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[Q,P.value]])}}})),$e=_._export_sfc(Ue,[["__scopeId","data-v-7c707e4d"]]);exports.default=$e;
@@ -36,7 +36,7 @@ import "element-plus/es/components/descriptions/style/css";
36
36
  import "element-plus/es/components/tag/style/css";
37
37
  import "element-plus/es/components/descriptions-item/style/css";
38
38
  import "element-plus/es/components/alert/style/css";
39
- import { A as tt } from "./AgGridTable-BQ8M3fDj.js";
39
+ import { A as tt } from "./AgGridTable-CktZxLim.js";
40
40
  import "element-plus/es/components/button/style/css";
41
41
  import "element-plus/es/components/input/style/css";
42
42
  import "element-plus/es/components/icon/style/css";
@@ -46,15 +46,15 @@ import "element-plus/es/components/date-picker/style/css";
46
46
  import "element-plus/es/components/radio-group/style/css";
47
47
  import "element-plus/es/components/radio-button/style/css";
48
48
  import { defineComponent as lt, computed as H, reactive as at, ref as g, onMounted as ot, withDirectives as ce, openBlock as b, createElementBlock as A, normalizeStyle as me, unref as U, normalizeClass as nt, toDisplayString as m, createCommentVNode as $, createElementVNode as q, createVNode as o, withCtx as n, createTextVNode as u, createBlock as O, withKeys as it, Fragment as oe, renderList as pe, renderSlot as rt } from "vue";
49
- import { d as J, a as X, _ as st } from "./index-CPTJIw32.js";
49
+ import { d as J, a as X, _ as st } from "./index-BK7gdNxS.js";
50
50
  import { u as ut } from "./useMixiotPanelSurface-DRl3cZvc.js";
51
- import { B as dt } from "./BaseComponent-Dn65PXTp.js";
51
+ import { B as dt } from "./BaseComponent-BppXM0zf.js";
52
52
  import { g as ct } from "./titleStyle-BT5GlpAb.js";
53
53
  import { ElMessage as j, ElMessageBox as mt } from "element-plus";
54
54
  import { Search as pt } from "@element-plus/icons-vue";
55
55
  import { a as vt } from "./appendCommonDesignerWhereAnd-DwefWNOa.js";
56
56
  import { c as _t, b as ft, s as gt } from "./syncMixiotListConfig-BJm-8v-B.js";
57
- import { A as bt } from "./AgActionsRenderer-3HKXKUJY.js";
57
+ import { A as bt } from "./AgActionsRenderer-5w70myzB.js";
58
58
  import { A as yt, D as ht } from "./ele-lst-icon-CKpeRKmk.js";
59
59
  const St = { class: "mix-body" }, Ct = { class: "toolbar-status" }, Vt = { class: "top-bar" }, Et = { class: "detail-body" }, wt = {
60
60
  key: 0,