mixdashboards 1.0.70 → 1.0.71

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 (342) hide show
  1. package/dist/{BaseComponent-Cco_5i96.cjs → BaseComponent-CNXUpPY1.cjs} +1 -1
  2. package/dist/{BaseComponent-DQe7HYdV.js → BaseComponent-D5tlYehc.js} +3 -3
  3. package/dist/{EChartComponentBase-dEfA3X9b.js → EChartComponentBase-CAabYXSj.js} +2 -2
  4. package/dist/{EChartComponentBase-BaBnJ8bP.cjs → EChartComponentBase-D4wMej9X.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-wz6hpU6V.cjs → EmergencyPlanPanel-D96XjhRq.cjs} +1 -1
  6. package/dist/{EmergencyPlanPanel-DSznPaVv.js → EmergencyPlanPanel-Th4ZNdCb.js} +1 -1
  7. package/dist/{HistoryPlanDialog-BTgBCdS8.js → HistoryPlanDialog-D2mQLhkO.js} +1 -1
  8. package/dist/{HistoryPlanDialog-B-LHlgcj.cjs → HistoryPlanDialog-rn2Bp0Gx.cjs} +1 -1
  9. package/dist/{MonitoringMap-C-2l_lqx.cjs → MonitoringMap-BZ98NYTJ.cjs} +1 -1
  10. package/dist/{MonitoringMap-DXBLJnDo.js → MonitoringMap-Coozb35G.js} +2 -2
  11. package/dist/{UniverSheet-C7dsXjKx.js → UniverSheet-CJCunVAM.js} +2 -2
  12. package/dist/{UniverSheet-LB-08tc-.cjs → UniverSheet-CntkzcVZ.cjs} +1 -1
  13. package/dist/{accelerationChart-D1SoP45I.cjs → accelerationChart-DLV-1mpA.cjs} +1 -1
  14. package/dist/{accelerationChart-SBxtVHbe.js → accelerationChart-DacjcSHD.js} +2 -2
  15. package/dist/{actionItem-DfIM5UH4.cjs → actionItem-CFxzHf4E.cjs} +1 -1
  16. package/dist/{actionItem-B8IcKGNl.js → actionItem-d-4p5HZK.js} +2 -2
  17. package/dist/{alarmLevelChart-H8iauEiv.cjs → alarmLevelChart-DCC6D1fH.cjs} +1 -1
  18. package/dist/{alarmLevelChart-CQz77Q40.js → alarmLevelChart-DddN1NVy.js} +2 -2
  19. package/dist/{alertTable-Cx-fC6uh.cjs → alertTable-BREZBeS5.cjs} +1 -1
  20. package/dist/{alertTable-Cv29mm-v.js → alertTable-Q-Waa5jf.js} +2 -2
  21. package/dist/{aliasObjectSelectorDemo-Bu8MwH5r.js → aliasObjectSelectorDemo-BZygQw9k.js} +1 -1
  22. package/dist/{aliasObjectSelectorDemo-etPGYsSr.cjs → aliasObjectSelectorDemo-DunKWEkT.cjs} +1 -1
  23. package/dist/{annualRainfallChart-BGQ985hs.cjs → annualRainfallChart-BJyoUBDn.cjs} +1 -1
  24. package/dist/{annualRainfallChart-DX58eJRx.js → annualRainfallChart-CthANCvn.js} +2 -2
  25. package/dist/appendCommonDesignerWhereAnd-DwefWNOa.js +11 -0
  26. package/dist/appendCommonDesignerWhereAnd-Q-EhDJXE.cjs +1 -0
  27. package/dist/{aqi-B2fpfbL7.cjs → aqi-BFW_8xYd.cjs} +1 -1
  28. package/dist/{aqi-DeaKS-k8.js → aqi-C_HnKsjh.js} +2 -2
  29. package/dist/{aqiIndass-B7qQDf8x.cjs → aqiIndass-B441j8CT.cjs} +1 -1
  30. package/dist/{aqiIndass-DhZefO08.js → aqiIndass-NVRa3lmj.js} +2 -2
  31. package/dist/{areaDeformCurve-Ocbn3_kI.cjs → areaDeformCurve-Dj405Jil.cjs} +1 -1
  32. package/dist/{areaDeformCurve-C4hXBtGd.js → areaDeformCurve-mQiOHdtN.js} +2 -2
  33. package/dist/{arrayCard-DlsKpcwB.cjs → arrayCard-B7zb1dFi.cjs} +1 -1
  34. package/dist/{arrayCard-BpUOS-ss.js → arrayCard-DZitcjMs.js} +2 -2
  35. package/dist/{audio-DxNmXkbs.cjs → audio-BfsYRWbm.cjs} +1 -1
  36. package/dist/{audio-C6CngKS8.js → audio-CDAMVEgC.js} +2 -2
  37. package/dist/{bar-DNPkWaNw.js → bar--JrlRud9.js} +2 -2
  38. package/dist/{bar-D1M8bJyN.cjs → bar-C7uQADV1.cjs} +1 -1
  39. package/dist/{bmp-Bzs9zJnc.cjs → bmp-DIkLqzRN.cjs} +1 -1
  40. package/dist/{bmp-YmFKfLFa.js → bmp-DrVcnYxy.js} +2 -2
  41. package/dist/{box-OJmqI3Q7.cjs → box-kXjrgG2u.cjs} +1 -1
  42. package/dist/{box-Dk54UC-q.js → box-szcLhted.js} +2 -2
  43. package/dist/{chartConfigPanel-GHB5Hl5O.js → chartConfigPanel-C32o1gyJ.js} +1 -1
  44. package/dist/{chartConfigPanel-CZoaPWy_.cjs → chartConfigPanel-DN4LMy8-.cjs} +1 -1
  45. package/dist/{circleBar-K137GzFV.js → circleBar-BmTjsLHo.js} +2 -2
  46. package/dist/{circleBar-B5IZlML0.cjs → circleBar-CeL2rqMJ.cjs} +1 -1
  47. package/dist/{clock-2JczyJVw.js → clock-CuQpD76K.js} +2 -2
  48. package/dist/{clock-CBL1_q-5.cjs → clock-EbmFBRb-.cjs} +1 -1
  49. package/dist/{clt-BORPsc1B.cjs → clt-C-9xGiKs.cjs} +1 -1
  50. package/dist/{clt-ChGE4ePR.js → clt-XCswxZ6i.js} +2 -2
  51. package/dist/{cmc-DcpgTPp1.cjs → cmc-CFa8Q3tu.cjs} +1 -1
  52. package/dist/{cmc-KJdEjBLk.js → cmc-CXmAv6fz.js} +2 -2
  53. package/dist/{cmp-CcyWf3Uh.cjs → cmp-DmpxjexT.cjs} +1 -1
  54. package/dist/{cmp-sOgqvBdl.js → cmp-Duz_v-LC.js} +2 -2
  55. package/dist/{composite-Ch7011-M.js → composite-CWgy-w61.js} +2 -2
  56. package/dist/{composite-CQKIpLlE.cjs → composite-DdHASMFQ.cjs} +1 -1
  57. package/dist/{conclusionCard-DzJV5dVQ.js → conclusionCard-BtB0rARK.js} +2 -2
  58. package/dist/{conclusionCard-DAvkvrFd.cjs → conclusionCard-Dlg5GWlE.cjs} +1 -1
  59. package/dist/{controlList-VNBp52-S.js → controlList-C0AQ8Yb8.js} +119 -113
  60. package/dist/controlList-C1vhlonT.cjs +1 -0
  61. package/dist/controlRecordList-BhK7KtLR.cjs +1 -0
  62. package/dist/{controlRecordList-BwgBUDph.js → controlRecordList-CSPKG1HU.js} +113 -107
  63. package/dist/{crd-CMq-eX9E.cjs → crd-CgxqxwKV.cjs} +1 -1
  64. package/dist/{crd-BgzuVyLH.js → crd-DQruf9o3.js} +2 -2
  65. package/dist/{ctrBtn-BBpiMhLv.cjs → ctrBtn-BSJ9c7Pt.cjs} +1 -1
  66. package/dist/{ctrBtn-BEFSVeUb.js → ctrBtn-jEWTt_f2.js} +3 -3
  67. package/dist/{ctrSet-CIqM9s8f.cjs → ctrSet-B9M4yI53.cjs} +1 -1
  68. package/dist/{ctrSet-CDe4sV-6.js → ctrSet-C4wCODMY.js} +3 -3
  69. package/dist/{ctrSwitch-TZ380RwZ.js → ctrSwitch-C6dUn_qm.js} +3 -3
  70. package/dist/{ctrSwitch-BT6EXPWY.cjs → ctrSwitch-ZvMCYKvG.cjs} +1 -1
  71. package/dist/{dataManagement-Dc_cJb_I.js → dataManagement-BQVZS7Hi.js} +2 -2
  72. package/dist/{dataManagement-CIt71PpI.cjs → dataManagement-CNrEa_zB.cjs} +1 -1
  73. package/dist/{dataReport-Brb3-u9M.cjs → dataReport-DRopth3A.cjs} +1 -1
  74. package/dist/{dataReport-CqEWzKs_.js → dataReport-vP1LBJjE.js} +2 -2
  75. package/dist/{dataTable-CxNmTfCe.js → dataTable-B1FQ3XIq.js} +1 -1
  76. package/dist/{dataTable-Dumu1ipq.cjs → dataTable-C2AgSR36.cjs} +1 -1
  77. package/dist/{datetime-CiUh6ijW.cjs → datetime-CAyDWKE8.cjs} +1 -1
  78. package/dist/{datetime-DznwpQpB.js → datetime-DU3rzi1v.js} +2 -2
  79. package/dist/{deepClusterSlipSurface-BM14AV0q.js → deepClusterSlipSurface-BHwB0eu9.js} +2 -2
  80. package/dist/{deepClusterSlipSurface-DV0J99z4.cjs → deepClusterSlipSurface-DzoyF6i1.cjs} +1 -1
  81. package/dist/{deepDataMatrix-CnZamNgJ.cjs → deepDataMatrix--AstWPiL.cjs} +1 -1
  82. package/dist/{deepDataMatrix-DlHVpRsU.js → deepDataMatrix-C3uKZmon.js} +2 -2
  83. package/dist/{deepDisplacement3D-DBPZVGVq.cjs → deepDisplacement3D-BBYgB-rK.cjs} +1 -1
  84. package/dist/{deepDisplacement3D-CFQGFzKB.js → deepDisplacement3D-CDNPul6D.js} +2 -2
  85. package/dist/{deepDisplacementChart-WRoRNeUp.cjs → deepDisplacementChart-BnT1ZdfR.cjs} +1 -1
  86. package/dist/{deepDisplacementChart-BIC1BdeL.js → deepDisplacementChart-C6GQHO-J.js} +3 -3
  87. package/dist/{deepDisplacementChart-CUHtskLG.js → deepDisplacementChart-C_pwwgIC.js} +2 -2
  88. package/dist/{deepDisplacementChart-DV1CAZdr.cjs → deepDisplacementChart-DOPij7KP.cjs} +1 -1
  89. package/dist/{deepDisplacementView-CqYa0axl.js → deepDisplacementView-C837RNer.js} +1 -1
  90. package/dist/{deepDisplacementView-Cvw33ulf.cjs → deepDisplacementView-u1IPcbxN.cjs} +1 -1
  91. package/dist/{deepNodeTemperatureChart-CXdObUS6.js → deepNodeTemperatureChart-BcH3ZNi4.js} +2 -2
  92. package/dist/{deepNodeTemperatureChart-Dv_OX5B4.cjs → deepNodeTemperatureChart-CD3JbqkA.cjs} +1 -1
  93. package/dist/{deepTangentAngleChart-DswXRUYT.cjs → deepTangentAngleChart-BCAauuDY.cjs} +1 -1
  94. package/dist/{deepTangentAngleChart-Bud2CMVY.js → deepTangentAngleChart-DSpCyIdq.js} +2 -2
  95. package/dist/{deepTemperatureField-GoQvQtaO.js → deepTemperatureField-B2qIHL1-.js} +3 -3
  96. package/dist/{deepTemperatureField-ChALQ2aa.cjs → deepTemperatureField-BxuKsrtc.cjs} +1 -1
  97. package/dist/{deepTrendChart-CDrMdwWQ.cjs → deepTrendChart-6L4cCHgh.cjs} +1 -1
  98. package/dist/{deepTrendChart-ChnQuB43.js → deepTrendChart-DFGSV17a.js} +2 -2
  99. package/dist/{deviceOnlineStatus-BfNCdYOx.js → deviceOnlineStatus-CiIFdo9I.js} +2 -2
  100. package/dist/{deviceOnlineStatus-Bn3LQ4Sr.cjs → deviceOnlineStatus-WkwzGom4.cjs} +1 -1
  101. package/dist/{deviceStatus-Brj4MjDf.cjs → deviceStatus-BoIv8fbr.cjs} +1 -1
  102. package/dist/{deviceStatus-B38Ae5a2.js → deviceStatus-Dd1pqVnO.js} +2 -2
  103. package/dist/{displacementDataTable-BUNOEGGA.cjs → displacementDataTable-BwcxrsuU.cjs} +1 -1
  104. package/dist/{displacementDataTable-CcPsYHhN.js → displacementDataTable-CGIHGxye.js} +2 -2
  105. package/dist/{displacementTrajectoryChart-CigBPamm.cjs → displacementTrajectoryChart-BOPIBgi5.cjs} +1 -1
  106. package/dist/{displacementTrajectoryChart--FVjlHL3.js → displacementTrajectoryChart-RL97CTML.js} +2 -2
  107. package/dist/{displacementTrendChart-IVjBPyEn.js → displacementTrendChart-Bqnv7hiP.js} +2 -2
  108. package/dist/{displacementTrendChart-BglcCr0q.cjs → displacementTrendChart-CI8i0oQY.cjs} +1 -1
  109. package/dist/{dxf-GBy0lc-E.cjs → dxf-BQoArgPS.cjs} +1 -1
  110. package/dist/{dxf-sH3BLfYm.js → dxf-DBu1iA-r.js} +2 -2
  111. package/dist/{dzc-Bl1t-Dk2.js → dzc-7tLxe18d.js} +2 -2
  112. package/dist/{dzc-HaFIs3kj.cjs → dzc-DMVPjosV.cjs} +1 -1
  113. package/dist/{emergencyPlan-Dm3xgpLZ.cjs → emergencyPlan-BRFhMubg.cjs} +1 -1
  114. package/dist/{emergencyPlan-BBCNfl7v.js → emergencyPlan-C9Edkw51.js} +3 -3
  115. package/dist/{evn-xtk2AfOE.cjs → evn-B05d7LtF.cjs} +1 -1
  116. package/dist/{evn-oE5QPAvh.js → evn-CeLoYCUr.js} +2 -2
  117. package/dist/{evolutionChart-IQgcbpZI.js → evolutionChart-DAlncdLU.js} +3 -3
  118. package/dist/{evolutionChart-BCALB3_C.cjs → evolutionChart-y2mkLVwU.cjs} +1 -1
  119. package/dist/{fileViewer-CNUWWWrf.js → fileViewer-BFMFEN2f.js} +2 -2
  120. package/dist/{fileViewer-Bm3pBZ7F.cjs → fileViewer-Dy2fdABW.cjs} +1 -1
  121. package/dist/{filterBar-8-3I-fv2.cjs → filterBar-CcrUdD-O.cjs} +1 -1
  122. package/dist/{filterBar-D0IMAQEi.js → filterBar-qJJKdxYE.js} +2 -2
  123. package/dist/{fireCombustionCurve-q_KJLBvC.cjs → fireCombustionCurve-B-6MZLul.cjs} +1 -1
  124. package/dist/{fireCombustionCurve-DIMaL6k_.js → fireCombustionCurve-DyRikhHw.js} +3 -3
  125. package/dist/{fireFilterBar-BduYgLR_.cjs → fireFilterBar-C9b_Ohvr.cjs} +1 -1
  126. package/dist/{fireFilterBar-mh__CAEd.js → fireFilterBar-DkjBGPXa.js} +2 -2
  127. package/dist/{fireHistoryTable-V7JBdrE2.cjs → fireHistoryTable-5sG5FDCD.cjs} +1 -1
  128. package/dist/{fireHistoryTable-BGIGhRzQ.js → fireHistoryTable-ldXil5up.js} +2 -2
  129. package/dist/{gag-ClHWS-GR.cjs → gag-CDX99Ta4.cjs} +1 -1
  130. package/dist/{gag-h6YZVeKt.js → gag-KZfFHn72.js} +2 -2
  131. package/dist/{gasStationList-D8fl4Or-.js → gasStationList-Btoo_olJ.js} +61 -54
  132. package/dist/gasStationList-Dl9qawf_.cjs +1 -0
  133. package/dist/{geo3dViewer-V0VzcLih.cjs → geo3dViewer-Cif9uFqd.cjs} +1 -1
  134. package/dist/{geo3dViewer-BMXatRLz.js → geo3dViewer-iZhkCiTP.js} +3 -3
  135. package/dist/{glbModel-CXvjMqNn.cjs → glbModel-2xydaxDT.cjs} +1 -1
  136. package/dist/{glbModel-B2byj6re.js → glbModel-MJZgDSJf.js} +2 -2
  137. package/dist/{globalObjectSelector-BgZLIHmK.cjs → globalObjectSelector-Bz2XhgxT.cjs} +1 -1
  138. package/dist/{globalObjectSelector-BZ3_5CPd.js → globalObjectSelector-CHtYGpi9.js} +1 -1
  139. package/dist/{gnssFilterBar-Cf7cWGlI.cjs → gnssFilterBar-BT19n0j_.cjs} +1 -1
  140. package/dist/{gnssFilterBar-CpF9e6YM.js → gnssFilterBar-CPis6bUI.js} +2 -2
  141. package/dist/{gnssHistoryTable-rdM2a20c.cjs → gnssHistoryTable-CrS2qO6S.cjs} +1 -1
  142. package/dist/{gnssHistoryTable-MRP8Beo0.js → gnssHistoryTable-kHZY48EZ.js} +2 -2
  143. package/dist/{gnssMapView-CaUtuUpJ.cjs → gnssMapView-BNIkieqL.cjs} +2 -2
  144. package/dist/{gnssMapView-BkoTIlXN.js → gnssMapView-DXP8yz0v.js} +4 -4
  145. package/dist/{gnssSectionProfile-Dg8ItwhD.js → gnssSectionProfile-DEUDEvJ1.js} +2 -2
  146. package/dist/{gnssSectionProfile-BBr8cQ5Q.cjs → gnssSectionProfile-_KbP1NXU.cjs} +1 -1
  147. package/dist/{gnssTimeSeriesChart-nqn-schc.cjs → gnssTimeSeriesChart-BgFoXAZv.cjs} +1 -1
  148. package/dist/{gnssTimeSeriesChart-BD_By4pr.js → gnssTimeSeriesChart-C_xqd0su.js} +2 -2
  149. package/dist/{gnssXYTrajectory-BEuA8xeM.cjs → gnssXYTrajectory-C1N3RWzp.cjs} +1 -1
  150. package/dist/{gnssXYTrajectory-BJc805eq.js → gnssXYTrajectory-GqgFw_qK.js} +2 -2
  151. package/dist/grd-DtDoJOOa.cjs +1 -0
  152. package/dist/{grd-CdgF9LSJ.js → grd-QCuVN1jE.js} +31 -30
  153. package/dist/{grdIndass-BE3WXRar.js → grdIndass-BEcfZTYw.js} +2 -2
  154. package/dist/{grdIndass-BCgyoujO.cjs → grdIndass-ci3JkvGZ.cjs} +1 -1
  155. package/dist/{grg-DC1jm6BJ.cjs → grg-C2qVuXYE.cjs} +1 -1
  156. package/dist/{grg-DOWXpsOd.js → grg-CMVrF5tB.js} +2 -2
  157. package/dist/{gridview-EqB4I5wC.cjs → gridview-BLAlr5uj.cjs} +1 -1
  158. package/dist/{gridview-CVmSPr7U.js → gridview-Cd3Tqzph.js} +2 -2
  159. package/dist/{groundwaterFilterBar-CWv6BCI6.cjs → groundwaterFilterBar-1E1j67JT.cjs} +1 -1
  160. package/dist/{groundwaterFilterBar-CviSH5Qr.js → groundwaterFilterBar-D7lrbzDC.js} +2 -2
  161. package/dist/{groundwaterProfileChart-D-Egf7gH.js → groundwaterProfileChart-Bjtqz-Zv.js} +3 -3
  162. package/dist/{groundwaterProfileChart-hbl7Skoa.cjs → groundwaterProfileChart-CS9xelz8.cjs} +2 -2
  163. package/dist/{groundwaterTimeCurve-B2S9jv9c.js → groundwaterTimeCurve-Bu6vgAaC.js} +3 -3
  164. package/dist/{groundwaterTimeCurve-BSKxN3Mw.cjs → groundwaterTimeCurve-DYiDLgVY.cjs} +1 -1
  165. package/dist/{groupCard-BSYmzKXi.cjs → groupCard-CPvAsuPb.cjs} +1 -1
  166. package/dist/{groupCard-fDda5bn9.js → groupCard-DQvEe6cc.js} +2 -2
  167. package/dist/{headerBar-BNC53vaM.js → headerBar-CGOtSvFn.js} +2 -2
  168. package/dist/{headerBar-Dv7imnYo.cjs → headerBar-OwCxpc4o.cjs} +1 -1
  169. package/dist/{history-BC29QEMC.cjs → history-9ToM-rJ6.cjs} +1 -1
  170. package/dist/{history-71NIpUTt.js → history-D6C3tSut.js} +1 -1
  171. package/dist/{index-BSsB7QzO.js → index-Bdq33405.js} +2026 -2039
  172. package/dist/{index-Do1YWdUS.cjs → index-D8dh_6Qd.cjs} +12 -12
  173. package/dist/{insarDeformChart-DBj0COZA.cjs → insarDeformChart-CSQ7fc2p.cjs} +1 -1
  174. package/dist/{insarDeformChart-DagNC51a.js → insarDeformChart-Ls-cdqaP.js} +2 -2
  175. package/dist/{insarImageViewer-D8lq9Hv9.js → insarImageViewer-Dnke9JDG.js} +2 -2
  176. package/dist/{insarImageViewer-D3Z46bMc.cjs → insarImageViewer-DvaRS1zr.cjs} +1 -1
  177. package/dist/{kds-dfE3zwZ-.js → kds-B4BKGG0r.js} +2 -2
  178. package/dist/{kds-3BWXq_Zj.cjs → kds-BjX5tXhF.cjs} +1 -1
  179. package/dist/{kpiCard-C7BwYNoj.js → kpiCard-C77vHJ_E.js} +2 -2
  180. package/dist/{kpiCard-DsIkae_A.cjs → kpiCard-oLpk5d4m.cjs} +1 -1
  181. package/dist/{landslideMap-BrLLkxBj.js → landslideMap-BEkbnCqP.js} +3 -3
  182. package/dist/{landslideMap-B6KMbgUh.cjs → landslideMap-CO8o7T8J.cjs} +1 -1
  183. package/dist/{landslideWarning-HDs4IJhS.cjs → landslideWarning-BZXa5qTB.cjs} +1 -1
  184. package/dist/{landslideWarning-CCB3FuKv.js → landslideWarning-C5upI2cf.js} +5 -5
  185. package/dist/{layerTabs-CIJNyC8N.cjs → layerTabs-BxRAsklw.cjs} +1 -1
  186. package/dist/{layerTabs-DmXSaX2o.js → layerTabs-DoGw1Jfv.js} +2 -2
  187. package/dist/{leaflet-src-CFMznK-4.cjs → leaflet-src-BUWIqhPn.cjs} +1 -1
  188. package/dist/{leaflet-src-Cz3-WkcA.js → leaflet-src-DFE_g2gF.js} +1 -1
  189. package/dist/{lerc-DOm8fUIl.cjs → lerc-BBgQP785.cjs} +1 -1
  190. package/dist/{lerc-CVXsRBRF.js → lerc-CXc9KSRL.js} +2 -2
  191. package/dist/{lin-CDBqcgpY.cjs → lin-ClO2MqZl.cjs} +1 -1
  192. package/dist/{lin-Br_VXsJO.js → lin-Difz8N88.js} +2 -2
  193. package/dist/{linIndass-B9ZXCjvV.cjs → linIndass-Bb7UA-zk.cjs} +1 -1
  194. package/dist/{linIndass-Bzid42kL.js → linIndass-DqXVOBh3.js} +2 -2
  195. package/dist/{lst-DHw7jJvt.js → lst-4RMMZZkY.js} +2 -2
  196. package/dist/{lst-D1Vdrqbd.cjs → lst-Dri1MTDI.cjs} +1 -1
  197. package/dist/{manualEntry-C3d0PuIP.js → manualEntry-B3_4Z-Lj.js} +2 -2
  198. package/dist/{manualEntry-DPiWw70L.cjs → manualEntry-D74dgZv8.cjs} +1 -1
  199. package/dist/{mapBackground-BmEmh-IX.js → mapBackground-B3OHQsXZ.js} +3 -3
  200. package/dist/{mapBackground-CW9t63hH.cjs → mapBackground-Bmt-oZt6.cjs} +1 -1
  201. package/dist/mappingList-CBN7ArkQ.cjs +1 -0
  202. package/dist/{mappingList-rtj1fZta.js → mappingList-DVj7H206.js} +142 -136
  203. package/dist/{markdownViewer-mV81tsCM.cjs → markdownViewer-BAuNEWRt.cjs} +1 -1
  204. package/dist/{markdownViewer-BW9CC15r.js → markdownViewer-fheM5uV4.js} +2 -2
  205. package/dist/{mix-control-modal-R-d17GgO.js → mix-control-modal-BBiKe4MM.js} +1 -1
  206. package/dist/{mix-control-modal-C-XaUBM9.cjs → mix-control-modal-BoYynGT2.cjs} +1 -1
  207. package/dist/{mixGrid-Dh1GWlPe.js → mixGrid-BUjP1qv2.js} +233 -225
  208. package/dist/mixGrid-DTj2pmFW.cjs +1 -0
  209. package/dist/{mixMap-JeV_KU8B.cjs → mixMap-B4T4R6kA.cjs} +1 -1
  210. package/dist/{mixMap-InWuappO.js → mixMap-DPIwyKuP.js} +2 -2
  211. package/dist/{mixModel-CPu_Nnzl.cjs → mixModel-BzilRtjf.cjs} +1 -1
  212. package/dist/{mixModel-DKGYpc0t.js → mixModel-CIdQp4V9.js} +2 -2
  213. package/dist/{mixPie-DuL4kFfE.js → mixPie-C6OhdOCV.js} +2 -2
  214. package/dist/{mixPie-B8iIy6vW.cjs → mixPie-DtQm-LGp.cjs} +1 -1
  215. package/dist/mixdashboards.cjs +1 -1
  216. package/dist/mixdashboards.css +1 -1
  217. package/dist/mixdashboards.js +1 -1
  218. package/dist/{mjpegCamera-CLn1xHqz.js → mjpegCamera-Cd1vhZ5v.js} +2 -2
  219. package/dist/{mjpegCamera-CBDFxk1W.cjs → mjpegCamera-Lu3UHJ83.cjs} +1 -1
  220. package/dist/{monitorAlert-GYcH2lWI.cjs → monitorAlert-Ctt2kCxQ.cjs} +1 -1
  221. package/dist/{monitorAlert-v3YHyJ9n.js → monitorAlert-DIJtH557.js} +2 -2
  222. package/dist/{monitorData-CfcxdZcd.js → monitorData-B6jhpzVK.js} +2 -2
  223. package/dist/{monitorData-B7ZFUGOk.cjs → monitorData-D_tMbx_Y.cjs} +1 -1
  224. package/dist/{monitorSpeedChart-7xx0tfQ_.js → monitorSpeedChart-DF5zvxs9.js} +1 -1
  225. package/dist/{monitorSpeedChart-C7HwlTr8.cjs → monitorSpeedChart-EIcGs3NX.cjs} +1 -1
  226. package/dist/{mxa-CjPqkUmG.cjs → mxa-BfwIV49n.cjs} +1 -1
  227. package/dist/{mxa-CDGZ91O2.js → mxa-COxjxwpC.js} +2 -2
  228. package/dist/{myValue-DjPA08OX.js → myValue-Crba15Wc.js} +2 -2
  229. package/dist/{myValue-BS3GCO4s.cjs → myValue-FZPOucSS.cjs} +1 -1
  230. package/dist/{myValueList-CHkCKevc.cjs → myValueList-XIDK3ove.cjs} +1 -1
  231. package/dist/{myValueList-C7A5aAh9.js → myValueList-m2yaIcuf.js} +2 -2
  232. package/dist/objectList-BtbxHtJj.cjs +1 -0
  233. package/dist/{objectList-D0tDSws-.js → objectList-BwZJzrXs.js} +252 -229
  234. package/dist/{photo-Cu5K8SR1.cjs → photo-BITvEhKG.cjs} +1 -1
  235. package/dist/{photo-DBEKwlxs.js → photo-CjulDHTM.js} +2 -2
  236. package/dist/{pie-CNzWqzxt.js → pie-C9MU90ON.js} +2 -2
  237. package/dist/{pie-DNaiYJw-.cjs → pie-CSLVJv0Y.cjs} +1 -1
  238. package/dist/{placeholder-CmVISGcF.cjs → placeholder-3kajeeeb.cjs} +1 -1
  239. package/dist/{placeholder-sfIWt-Xp.js → placeholder-CRARTMF4.js} +1 -1
  240. package/dist/{pressBtn-DLQBhBFE.js → pressBtn-CkYcW1a8.js} +3 -3
  241. package/dist/{pressBtn-QGaltOl4.cjs → pressBtn-pUcQtd5n.cjs} +1 -1
  242. package/dist/{processTable-CgNob2sD.js → processTable-BgAhGGAq.js} +2 -2
  243. package/dist/{processTable-g9yoTp4_.cjs → processTable-CDulvQlu.cjs} +1 -1
  244. package/dist/{progressBar-Bdp-TJpQ.cjs → progressBar-BbDFps1r.cjs} +1 -1
  245. package/dist/{progressBar-BB2IqJY4.js → progressBar-CIPUVeaf.js} +2 -2
  246. package/dist/{progressCircle-F4z0eEN5.cjs → progressCircle-CgkZ1EC1.cjs} +1 -1
  247. package/dist/{progressCircle-BQ-JSIxI.js → progressCircle-DDc5zsd6.js} +2 -2
  248. package/dist/{qrcode-D0PnYT1n.js → qrcode-CCu677Ad.js} +2 -2
  249. package/dist/{qrcode-C4JX_M2R.cjs → qrcode-CQbWGVgq.cjs} +1 -1
  250. package/dist/raceBar-Cn8oPhCE.js +354 -0
  251. package/dist/raceBar-CzNGSYCt.cjs +4 -0
  252. package/dist/{rad-Bx3jcHPe.js → rad-D_cLWeMk.js} +2 -2
  253. package/dist/{rad-CpIyATZD.cjs → rad-Dk4PrnyI.cjs} +1 -1
  254. package/dist/{radarMapViewer-znDIY1Dj.js → radarMapViewer-BaAXjsWx.js} +2 -2
  255. package/dist/{radarMapViewer-CbGubI4Y.cjs → radarMapViewer-TJIPACdT.cjs} +1 -1
  256. package/dist/{rainfallFilterBar-3a9Q3HL_.js → rainfallFilterBar-Bhpadat8.js} +2 -2
  257. package/dist/{rainfallFilterBar-Du3Sgp7X.cjs → rainfallFilterBar-Myq0MBCf.cjs} +1 -1
  258. package/dist/{rainfallTimeCurve-D2w9bpwZ.cjs → rainfallTimeCurve-BUI-RlnG.cjs} +1 -1
  259. package/dist/{rainfallTimeCurve-BF2Ic5kC.js → rainfallTimeCurve-sDYapogL.js} +3 -3
  260. package/dist/{rangeLin-C32kwDdl.js → rangeLin-CdMOPwMP.js} +2 -2
  261. package/dist/{rangeLin-B_GwGg5T.cjs → rangeLin-DYCZ8wVc.cjs} +1 -1
  262. package/dist/{realtimeEvolutionMap-BYga2Sy1.cjs → realtimeEvolutionMap-BwyQdAhL.cjs} +1 -1
  263. package/dist/{realtimeEvolutionMap-CJGxgUkx.js → realtimeEvolutionMap-CIH_sZ29.js} +2 -2
  264. package/dist/{regionBar-CdddgYWu.cjs → regionBar-DsxqfirI.cjs} +1 -1
  265. package/dist/{regionBar-CZY8lddM.js → regionBar-VB-2GpR0.js} +2 -2
  266. package/dist/{request-DpwHQGd5.js → request-BHfDxLXZ.js} +1 -1
  267. package/dist/{request-C78CBVAN.cjs → request-DU8pRyvu.cjs} +1 -1
  268. package/dist/{retainer1-BuvX8Di7.cjs → retainer1-CSqjvY4k.cjs} +1 -1
  269. package/dist/{retainer1-D019fwD_.js → retainer1-C_109Weq.js} +3 -3
  270. package/dist/{retainer2-B-TexO-Y.js → retainer2-BiHUTumr.js} +3 -3
  271. package/dist/{retainer2-DCHahmfG.cjs → retainer2-Bqlwvr53.cjs} +1 -1
  272. package/dist/{retainerRecordList-BrYisw1I.js → retainerRecordList-Cgil_g8a.js} +217 -199
  273. package/dist/retainerRecordList-DWZ3WDiz.cjs +1 -0
  274. package/dist/{ringTopN-DiMEspqe.cjs → ringTopN-Bp0er_zV.cjs} +1 -1
  275. package/dist/{ringTopN-U-y_5F23.js → ringTopN-C9AH-t3T.js} +2 -2
  276. package/dist/{riskRegionTable-CBkZwBO7.cjs → riskRegionTable-B3bzMaR_.cjs} +1 -1
  277. package/dist/{riskRegionTable-aMJshw4k.js → riskRegionTable-Co1uxMzf.js} +2 -2
  278. package/dist/{sankey-B5cYZsvX.cjs → sankey-B4BJ4xIo.cjs} +1 -1
  279. package/dist/{sankey-DDfakV6y.js → sankey-Bag0ladh.js} +2 -2
  280. package/dist/{scd-Dw_bUW6m.js → scd-D9AiOiPg.js} +2 -2
  281. package/dist/{scd-DFHgvimo.cjs → scd-Dgd3KDpk.cjs} +1 -1
  282. package/dist/{sideMenu-CmpGVPM3.js → sideMenu-869HFB0p.js} +2 -2
  283. package/dist/{sideMenu-DJsAP45g.cjs → sideMenu-BQ5rrGBr.cjs} +1 -1
  284. package/dist/{slopeStability-CfzgDTeZ.cjs → slopeStability-D96aiykf.cjs} +1 -1
  285. package/dist/{slopeStability-D4eSUWT9.js → slopeStability-bZ0lHLjZ.js} +2 -2
  286. package/dist/{speedCurve-vIlHrolF.cjs → speedCurve-5nWqVAzz.cjs} +1 -1
  287. package/dist/{speedCurve-BbThyw5u.js → speedCurve-DZ52XKCk.js} +2 -2
  288. package/dist/{staticLine-uqwL7J2F.js → staticLine-CyPnmKCh.js} +2 -2
  289. package/dist/{staticLine-CFONgNJ0.cjs → staticLine-DUCg-0tI.cjs} +1 -1
  290. package/dist/{stressFilterBar-BC_6NNeh.js → stressFilterBar-BAUt2bGy.js} +2 -2
  291. package/dist/{stressFilterBar-CbK5TMGs.cjs → stressFilterBar-CorWdmpQ.cjs} +1 -1
  292. package/dist/{stressTimeCurve-DGa6Amlf.cjs → stressTimeCurve-Bci50Cwv.cjs} +1 -1
  293. package/dist/{stressTimeCurve-DL2UIABb.js → stressTimeCurve-IW4ArsyA.js} +3 -3
  294. package/dist/{swiper-D99S451G.cjs → swiper-BPS9C2GV.cjs} +1 -1
  295. package/dist/{swiper-DcI2laNu.js → swiper-RM0GoZkW.js} +2 -2
  296. package/dist/terminalConfigList-O881ke5o.cjs +1 -0
  297. package/dist/{terminalConfigList-CHP04a15.js → terminalConfigList-n7NE5NdJ.js} +217 -207
  298. package/dist/{terminalList-B4GdtArc.js → terminalList-Byb4eLcD.js} +245 -233
  299. package/dist/terminalList-C9TB2cJH.cjs +1 -0
  300. package/dist/{textbox-DWkIbuKy.cjs → textbox-BMWnbPvz.cjs} +1 -1
  301. package/dist/{textbox-DM7EtQFC.js → textbox-DM1AUWw8.js} +2 -2
  302. package/dist/{timeQueryBar-B6dhhKsw.cjs → timeQueryBar-C6ZheMvD.cjs} +1 -1
  303. package/dist/{timeQueryBar-4eYHDx7k.js → timeQueryBar-Tbd9M8UT.js} +1 -1
  304. package/dist/{timeSeries-D8S_d2lD.js → timeSeries-CdpEx6bf.js} +3 -3
  305. package/dist/{timeSeries-SKsJlO9O.cjs → timeSeries-DCV2YjC2.cjs} +1 -1
  306. package/dist/{timeSeriesCurve-HqTd55Tr.js → timeSeriesCurve-C1AmF6TP.js} +3 -3
  307. package/dist/{timeSeriesCurve-D_oEL3m7.cjs → timeSeriesCurve-DRlr5n3U.cjs} +1 -1
  308. package/dist/{toggleBtn-BOQw1iDG.cjs → toggleBtn-BGjXjIuK.cjs} +1 -1
  309. package/dist/{toggleBtn-D7cHFqWb.js → toggleBtn-XS9MjfKM.js} +2 -2
  310. package/dist/{trajectoryConfigPanel-CfDPGItH.js → trajectoryConfigPanel-BC90nD1T.js} +1 -1
  311. package/dist/{trajectoryConfigPanel-yZcJkv1P.cjs → trajectoryConfigPanel-DJ6fOeb1.cjs} +1 -1
  312. package/dist/{trajectoryScatter-aRV9sebu.cjs → trajectoryScatter-C7kfSkyS.cjs} +1 -1
  313. package/dist/{trajectoryScatter-CPFvxmxe.js → trajectoryScatter-DF_ESBn8.js} +2 -2
  314. package/dist/{universalConfigPanel-Drfltp0O.js → universalConfigPanel-DjNTwJkz.js} +1 -1
  315. package/dist/{universalConfigPanel-COMoO1kb.cjs → universalConfigPanel-PO1hdgjw.cjs} +1 -1
  316. package/dist/{universalTable-GfZa1yH9.js → universalTable-BY9vRraC.js} +2 -2
  317. package/dist/{universalTable-BwSUhV4N.cjs → universalTable-QAb6UKCq.cjs} +1 -1
  318. package/dist/{video-kK74GALx.cjs → video-8_Sf1uz0.cjs} +1 -1
  319. package/dist/{video-Dyp2zhVq.js → video-DDvDGDql.js} +2 -2
  320. package/dist/{videoMonitor-PXczYaaJ.cjs → videoMonitor-BKLD_aQs.cjs} +1 -1
  321. package/dist/{videoMonitor-BkelK0u9.js → videoMonitor-sce5N4Q5.js} +2 -2
  322. package/dist/{vlu-BBvampip.js → vlu-BKeYJtOO.js} +2 -2
  323. package/dist/{vlu-fvmCrEzu.cjs → vlu-C0XLDKKk.cjs} +1 -1
  324. package/dist/{warningOverview-CKMdru1u.cjs → warningOverview--n7crFnZ.cjs} +1 -1
  325. package/dist/{warningOverview-CH-TMirz.js → warningOverview-CG5mwtaO.js} +3 -3
  326. package/dist/{weather-dQzojon4.js → weather-BrX2a1an.js} +2 -2
  327. package/dist/{weather-BCLGeV-Q.cjs → weather-CWvAqxgX.cjs} +1 -1
  328. package/dist/{windLin-Bby_6ueU.cjs → windLin-BbbsSwuF.cjs} +1 -1
  329. package/dist/{windLin-9DCax9Ze.js → windLin-P4Gs2aBB.js} +2 -2
  330. package/package.json +120 -120
  331. package/dist/controlList-C9P4g5xx.cjs +0 -1
  332. package/dist/controlRecordList-a-h5hoBa.cjs +0 -1
  333. package/dist/gasStationList-BPa4_DUz.cjs +0 -1
  334. package/dist/grd-aUyI_B6g.cjs +0 -1
  335. package/dist/mappingList-B9PdmcFg.cjs +0 -1
  336. package/dist/mixGrid-DrmqVYse.cjs +0 -1
  337. package/dist/objectList-DxnLRd33.cjs +0 -1
  338. package/dist/raceBar-DYG9jwPy.js +0 -244
  339. package/dist/raceBar-GXOy9QCR.cjs +0 -3
  340. package/dist/retainerRecordList-DRZ-jXXI.cjs +0 -1
  341. package/dist/terminalConfigList-7DiStuBl.cjs +0 -1
  342. package/dist/terminalList-CjEIRV3W.cjs +0 -1
@@ -1,244 +0,0 @@
1
- var b = Object.defineProperty, A = Object.defineProperties;
2
- var v = Object.getOwnPropertyDescriptors;
3
- var C = Object.getOwnPropertySymbols;
4
- var T = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
5
- var g = (n, i, o) => i in n ? b(n, i, { enumerable: !0, configurable: !0, writable: !0, value: o }) : n[i] = o, u = (n, i) => {
6
- for (var o in i || (i = {}))
7
- T.call(i, o) && g(n, o, i[o]);
8
- if (C)
9
- for (var o of C(i))
10
- w.call(i, o) && g(n, o, i[o]);
11
- return n;
12
- }, f = (n, i) => A(n, v(i));
13
- var L = (n, i, o) => new Promise((l, c) => {
14
- var m = (r) => {
15
- try {
16
- d(o.next(r));
17
- } catch (t) {
18
- c(t);
19
- }
20
- }, h = (r) => {
21
- try {
22
- d(o.throw(r));
23
- } catch (t) {
24
- c(t);
25
- }
26
- }, d = (r) => r.done ? l(r.value) : Promise.resolve(r.value).then(m, h);
27
- d((o = o.apply(n, i)).next());
28
- });
29
- import { defineComponent as O, computed as R, openBlock as _, createElementBlock as D, normalizeStyle as y, unref as p, createElementVNode as x, toDisplayString as E, renderSlot as H, nextTick as k } from "vue";
30
- import { n as M, C as z, _ as $ } from "./index-BSsB7QzO.js";
31
- import { E as B } from "./EChartComponentBase-dEfA3X9b.js";
32
- import { g as F } from "./titleStyle-BT5GlpAb.js";
33
- import { u as I, i as N, a as U } from "./installCanvasRenderer-CLT2hquJ.js";
34
- import { i as Z } from "./install-CBde4hAM.js";
35
- import { i as V } from "./install-hfre7yvV.js";
36
- import { i as j } from "./install-BBrAry2m.js";
37
- import { i as W } from "./install-MS3ZY7fF.js";
38
- const P = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", q = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", G = { class: "mix-body" }, J = ["id"], K = {
39
- DEFAULT_ICON: P,
40
- ACTIVE_ICON: q,
41
- NAME_CN: "排行",
42
- NAME_EN: "Ranking",
43
- ORDER: 1
44
- }, Q = {
45
- titleColor: "#111",
46
- textColor: "#111",
47
- bgColor: "#fff",
48
- top: 30,
49
- bottom: 40,
50
- left: 50,
51
- right: 30,
52
- radiusSize: 8,
53
- textSize: 12,
54
- barWidth: 50,
55
- direction: {
56
- value: "x",
57
- type: "radio",
58
- option: [
59
- { value: "x", label: "component.options.x" },
60
- { value: "y", label: "component.options.y" }
61
- ],
62
- label: "component.options.direction"
63
- },
64
- realSort: !1,
65
- sortType: {
66
- value: "desc",
67
- type: "radio",
68
- option: [
69
- { value: "desc", label: "component.options.desc" },
70
- { value: "asc", label: "component.options.asc" }
71
- ],
72
- label: "component.options.sortType",
73
- dependent: "realSort"
74
- },
75
- isHideTitle: !1
76
- }, X = [{ name: "参数一", fv: "", color: "#4162ff" }], Y = ["name", "fv", "color"], tt = ["mosaic"], et = {
77
- useAlias: !1,
78
- multiObject: !1,
79
- source: "mosaic"
80
- }, it = {
81
- DEFAULT: K,
82
- OPTIONS: Q,
83
- DATA: X,
84
- PARAMS: Y,
85
- SOURCE: tt,
86
- COMMON: et
87
- }, ot = /* @__PURE__ */ O(f(u({}, it), {
88
- __name: "raceBar",
89
- props: {
90
- conf: { type: Object, default: () => ({ data: [] }) },
91
- uid: { type: String, default: "" },
92
- mode: { type: String, default: "edit" },
93
- theme: { type: String, default: "light" }
94
- },
95
- setup(n) {
96
- I([
97
- Z,
98
- V,
99
- N,
100
- j,
101
- U,
102
- W
103
- ]);
104
- const i = n;
105
- class o extends B {
106
- constructor() {
107
- super(...arguments), this.CHART = {
108
- data: [],
109
- items: [],
110
- colors: [],
111
- times: []
112
- };
113
- }
114
- extractStyles() {
115
- return f(u({}, super.extractStyles()), {
116
- barWidth: this.getOptionValue("barWidth", 50),
117
- direction: this.getOptionValue("direction", "x"),
118
- realSort: this.getOptionValue("realSort", !1),
119
- sortType: this.getOptionValue("sortType", "desc")
120
- });
121
- }
122
- init() {
123
- return L(this, null, function* () {
124
- this.Style.value = this.extractStyles(), this.applyTheme(), this.ensureData(), this.initChartData(), yield k(), this.initChart();
125
- });
126
- }
127
- initChartData() {
128
- const t = this.props.conf;
129
- this.CHART = { data: [], items: [], colors: [], times: [] }, t.data.forEach((s, a) => {
130
- const e = M({
131
- num: 1,
132
- mode: this.props.mode,
133
- hasDataSource: this.hasData()
134
- });
135
- this.CHART.colors.push(s.color || z[a]), this.CHART.data.push(s.value || e[0]), this.CHART.items.push(s.name);
136
- });
137
- }
138
- getChartOption() {
139
- const t = this.Style.value;
140
- this.props.conf;
141
- const s = this.CHART;
142
- let a = {
143
- grid: {
144
- top: t.top,
145
- bottom: t.bottom,
146
- left: t.left,
147
- right: t.right,
148
- containLabel: !1
149
- },
150
- tooltip: {
151
- show: !0,
152
- formatter: (e) => s.times[e.dataIndex] ? `${s.times[e.dataIndex]}
153
- ${e.name}:${e.data}` : `${e.name}:${e.data}`
154
- },
155
- xAxis: {
156
- max: "dataMax",
157
- axisLine: { show: !0, color: t.textColor },
158
- axisTick: { show: !0 },
159
- splitLine: { lineStyle: {} },
160
- axisLabel: {
161
- color: t.textColor,
162
- fontSize: t.textSize,
163
- formatter: (e) => e.length > 4 ? e.substr(0, 4) : e
164
- }
165
- },
166
- yAxis: {
167
- axisLabel: {
168
- formatter: (e) => e.length > 5 ? e.substr(0, 5) + `
169
- ` + e.substr(5) : e,
170
- color: t.textColor,
171
- fontSize: t.textSize
172
- },
173
- axisLine: { lineStyle: { color: t.textColor } },
174
- splitLine: { lineStyle: {} },
175
- animationDuration: 300,
176
- animationDurationUpdate: 300
177
- },
178
- series: [
179
- {
180
- realtimeSort: t.realSort,
181
- type: "bar",
182
- barWidth: t.barWidth + "%",
183
- data: s.data,
184
- label: {
185
- show: !0,
186
- position: "right",
187
- valueAnimation: !0,
188
- color: t.textColor,
189
- fontSize: t.textSize
190
- },
191
- itemStyle: {
192
- color: (e) => s.colors[e.dataIndex] || "#5470c6"
193
- }
194
- }
195
- ],
196
- animationDuration: 0,
197
- animationDurationUpdate: 500,
198
- animationEasing: "linear",
199
- animationEasingUpdate: "linear"
200
- };
201
- return t.direction === "x" ? (a.yAxis.data = s.items, t.realSort && (a.yAxis.inverse = t.sortType === "desc"), a.series[0].label.position = "right", a.xAxis.splitLine.lineStyle.type = "dashed") : (a.xAxis.data = s.items, t.realSort && (a.xAxis.inverse = t.sortType === "asc"), a.series[0].label.position = "top", a.yAxis.splitLine.lineStyle.type = "dashed", delete a.yAxis.type), a;
202
- }
203
- setHistoryData(t) {
204
- t && t != null && t.length && (this.CHART.data = [], this.CHART.times = [], t.forEach((s) => {
205
- var a;
206
- this.CHART.data.push((a = s.data[0]) != null ? a : "--"), this.CHART.times.push(s.time[0] || "");
207
- }), this.chartObj.setOption(this.getChartOption(), !0));
208
- }
209
- setSocketData(t) {
210
- if (!this.hasData() || !t || !this.chartObj) return;
211
- const { data: s } = this.props.conf;
212
- this.CHART.data = [], this.CHART.times = [], s.forEach((a) => {
213
- const e = this.extractDataValue(t, a.fv), S = t.datetime || "";
214
- this.CHART.data.push(e != null ? e : "--"), this.CHART.times.push(S);
215
- }), this.chartObj.setOption(this.getChartOption(), !0);
216
- }
217
- }
218
- const l = new o(i, "raceBar");
219
- l.setupLifecycle();
220
- const c = l.getStyle(), m = l.getEchartId(), h = i.conf, d = R(() => F(i.conf.options));
221
- return (r, t) => (_(), D("div", {
222
- class: "mix-component",
223
- style: y({
224
- background: p(c).bgColor,
225
- borderRadius: `${p(c).radiusSize}px`
226
- })
227
- }, [
228
- x("div", {
229
- class: "mix-title",
230
- style: y(d.value)
231
- }, E(p(h).caption || p(h).name), 5),
232
- x("div", G, [
233
- x("div", {
234
- class: "w-full h-full",
235
- id: p(m)
236
- }, null, 8, J)
237
- ]),
238
- H(r.$slots, "default", {}, void 0, !0)
239
- ], 4));
240
- }
241
- })), ut = /* @__PURE__ */ $(ot, [["__scopeId", "data-v-6b949b4e"]]);
242
- export {
243
- ut as default
244
- };
@@ -1,3 +0,0 @@
1
- "use strict";var b=Object.defineProperty,v=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var L=(l,i,o)=>i in l?b(l,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[i]=o,m=(l,i)=>{for(var o in i||(i={}))T.call(i,o)&&L(l,o,i[o]);if(g)for(var o of g(i))w.call(i,o)&&L(l,o,i[o]);return l},f=(l,i)=>v(l,A(i));var y=(l,i,o)=>new Promise((c,d)=>{var u=r=>{try{h(o.next(r))}catch(t){d(t)}},p=r=>{try{h(o.throw(r))}catch(t){d(t)}},h=r=>r.done?c(r.value):Promise.resolve(r.value).then(u,p);h((o=o.apply(l,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),C=require("./index-Do1YWdUS.cjs"),O=require("./EChartComponentBase-BaBnJ8bP.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),x=require("./installCanvasRenderer-CyhM1Qpl.cjs"),_=require("./install-DV5cEgNV.cjs"),E=require("./install-CltTFs4e.cjs"),D=require("./install-C8buXQPI.cjs"),H=require("./install-Ch5d8i37.cjs"),k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",M="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",z={class:"mix-body"},$=["id"],B={DEFAULT_ICON:k,ACTIVE_ICON:M,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1},N={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:50,right:30,radiusSize:8,textSize:12,barWidth:50,direction:{value:"x",type:"radio",option:[{value:"x",label:"component.options.x"},{value:"y",label:"component.options.y"}],label:"component.options.direction"},realSort:!1,sortType:{value:"desc",type:"radio",option:[{value:"desc",label:"component.options.desc"},{value:"asc",label:"component.options.asc"}],label:"component.options.sortType",dependent:"realSort"},isHideTitle:!1},F=[{name:"参数一",fv:"",color:"#4162ff"}],I=["name","fv","color"],q=["mosaic"],V={useAlias:!1,multiObject:!1,source:"mosaic"},U={DEFAULT:B,OPTIONS:N,DATA:F,PARAMS:I,SOURCE:q,COMMON:V},Z=a.defineComponent(f(m({},U),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){x.use([_.install,E.install,x.install,D.install,x.install$1,H.install]);const i=l;class o extends O.EChartComponentBase{constructor(){super(...arguments),this.CHART={data:[],items:[],colors:[],times:[]}}extractStyles(){return f(m({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){return y(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.initChartData(),yield a.nextTick(),this.initChart()})}initChartData(){const t=this.props.conf;this.CHART={data:[],items:[],colors:[],times:[]},t.data.forEach((n,s)=>{const e=C.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(n.color||C.COLORS[s]),this.CHART.data.push(n.value||e[0]),this.CHART.items.push(n.name)})}getChartOption(){const t=this.Style.value;this.props.conf;const n=this.CHART;let s={grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!1},tooltip:{show:!0,formatter:e=>n.times[e.dataIndex]?`${n.times[e.dataIndex]}
2
- ${e.name}:${e.data}`:`${e.name}:${e.data}`},xAxis:{max:"dataMax",axisLine:{show:!0,color:t.textColor},axisTick:{show:!0},splitLine:{lineStyle:{}},axisLabel:{color:t.textColor,fontSize:t.textSize,formatter:e=>e.length>4?e.substr(0,4):e}},yAxis:{axisLabel:{formatter:e=>e.length>5?e.substr(0,5)+`
3
- `+e.substr(5):e,color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}},splitLine:{lineStyle:{}},animationDuration:300,animationDurationUpdate:300},series:[{realtimeSort:t.realSort,type:"bar",barWidth:t.barWidth+"%",data:n.data,label:{show:!0,position:"right",valueAnimation:!0,color:t.textColor,fontSize:t.textSize},itemStyle:{color:e=>n.colors[e.dataIndex]||"#5470c6"}}],animationDuration:0,animationDurationUpdate:500,animationEasing:"linear",animationEasingUpdate:"linear"};return t.direction==="x"?(s.yAxis.data=n.items,t.realSort&&(s.yAxis.inverse=t.sortType==="desc"),s.series[0].label.position="right",s.xAxis.splitLine.lineStyle.type="dashed"):(s.xAxis.data=n.items,t.realSort&&(s.xAxis.inverse=t.sortType==="asc"),s.series[0].label.position="top",s.yAxis.splitLine.lineStyle.type="dashed",delete s.yAxis.type),s}setHistoryData(t){t&&t!=null&&t.length&&(this.CHART.data=[],this.CHART.times=[],t.forEach(n=>{var s;this.CHART.data.push((s=n.data[0])!=null?s:"--"),this.CHART.times.push(n.time[0]||"")}),this.chartObj.setOption(this.getChartOption(),!0))}setSocketData(t){if(!this.hasData()||!t||!this.chartObj)return;const{data:n}=this.props.conf;this.CHART.data=[],this.CHART.times=[],n.forEach(s=>{const e=this.extractDataValue(t,s.fv),S=t.datetime||"";this.CHART.data.push(e!=null?e:"--"),this.CHART.times.push(S)}),this.chartObj.setOption(this.getChartOption(),!0)}}const c=new o(i,"raceBar");c.setupLifecycle();const d=c.getStyle(),u=c.getEchartId(),p=i.conf,h=a.computed(()=>R.generateTitleStyle(i.conf.options));return(r,t)=>(a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(d).bgColor,borderRadius:`${a.unref(d).radiusSize}px`})},[a.createElementVNode("div",{class:"mix-title",style:a.normalizeStyle(h.value)},a.toDisplayString(a.unref(p).caption||a.unref(p).name),5),a.createElementVNode("div",z,[a.createElementVNode("div",{class:"w-full h-full",id:a.unref(u)},null,8,$)]),a.renderSlot(r.$slots,"default",{},void 0,!0)],4))}})),j=C._export_sfc(Z,[["__scopeId","data-v-6b949b4e"]]);exports.default=j;
@@ -1 +0,0 @@
1
- "use strict";var Se=Object.defineProperty,Be=Object.defineProperties;var Ee=Object.getOwnPropertyDescriptors;var ee=Object.getOwnPropertySymbols;var Te=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable;var te=(_,p,u)=>p in _?Se(_,p,{enumerable:!0,configurable:!0,writable:!0,value:u}):_[p]=u,$=(_,p)=>{for(var u in p||(p={}))Te.call(p,u)&&te(_,u,p[u]);if(ee)for(var u of ee(p))De.call(p,u)&&te(_,u,p[u]);return _},W=(_,p)=>Be(_,Ee(p));var S=(_,p,u)=>new Promise((N,I)=>{var B=h=>{try{E(u.next(h))}catch(T){I(T)}},C=h=>{try{E(u.throw(h))}catch(T){I(T)}},E=h=>h.done?N(h.value):Promise.resolve(h.value).then(B,C);E((u=u.apply(_,p)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/timeline/style/css");require("element-plus/es/components/timeline-item/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/alert/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio-button/style/css");const e=require("vue"),V=require("./index-Do1YWdUS.cjs"),le=require("./useMixiotPanelSurface-BMNrWBMF.cjs"),je=require("./BaseComponent-Cco_5i96.cjs"),ze=require("./titleStyle-NSnz6cUg.cjs"),k=require("element-plus"),Oe=require("@element-plus/icons-vue"),ae=require("./ele-lst-icon-CrxnHZ-A.cjs"),Me={class:"mix-body"},qe={class:"toolbar toolbar-status"},Re={class:"toolbar"},Ae={key:3},Le={class:"pagination"},Pe={class:"detail-body"},Ie={key:0,class:"detail-events-title"},Fe={DEFAULT_ICON:ae.DEFAULT_ICON,ACTIVE_ICON:ae.ACTIVE_ICON,NAME_CN:"历程记录",NAME_EN:"RetainerRecordList",ORDER:7},Ke={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{key:"template_id",label:"项目编号",width:140,visible:!0},{key:"label_cn",label:"历程项中文名称",width:140,visible:!0},{key:"label_en",label:"历程项英文名称",width:140,visible:!0},{key:"code",label:"历程项编码",width:120,visible:!0},{key:"category",label:"历程类型",width:100,visible:!0},{key:"object_id",label:"对象编号",width:140,visible:!0},{key:"object_name",label:"对象名称",width:140,visible:!0},{key:"object_alias",label:"对象别名",width:120,visible:!0},{key:"model",label:"型号",width:100,visible:!0},{key:"retained",label:"状态",width:90,visible:!0},{key:"opened_at",label:"开始时间",width:170,visible:!0},{key:"elapsed",label:"持续时间",width:120,visible:!0},{key:"statis_result",label:"统计结果",width:120,visible:!0},{key:"close_at",label:"结束时间",width:170,visible:!0}]},oe=[{name:"历程记录",fv:"",showViewBtn:!0,showExportBtn:!0,template_id:"项目编号",template_id_visible:!0,label_cn:"历程项中文名称",label_cn_visible:!0,label_en:"历程项英文名称",label_en_visible:!0,code:"历程项编码",code_visible:!0,category:"历程类型",category_visible:!0,object_id:"对象编号",object_id_visible:!0,object_name:"对象名称",object_name_visible:!0,object_alias:"对象别名",object_alias_visible:!0,model:"型号",model_visible:!0,retained:"状态",retained_visible:!0,opened_at:"开始时间",opened_at_visible:!0,elapsed:"持续时间",elapsed_visible:!0,statis_result:"统计结果",statis_result_visible:!0,close_at:"结束时间",close_at_visible:!0}],He=[{key:"showViewBtn",label:"详情",type:"checkbox",group:"操作组"},{key:"showExportBtn",label:"导出",type:"checkbox",group:"命令组"},{key:"name",label:"参数名称"},{key:"template_id",label:"项目编号",checkable:!0,checkboxKey:"template_id_visible"},{key:"label_cn",label:"历程项中文名称",checkable:!0,checkboxKey:"label_cn_visible"},{key:"label_en",label:"历程项英文名称",checkable:!0,checkboxKey:"label_en_visible"},{key:"code",label:"历程项编码",checkable:!0,checkboxKey:"code_visible"},{key:"category",label:"历程类型",checkable:!0,checkboxKey:"category_visible"},{key:"object_id",label:"对象编号",checkable:!0,checkboxKey:"object_id_visible"},{key:"object_name",label:"对象名称",checkable:!0,checkboxKey:"object_name_visible"},{key:"object_alias",label:"对象别名",checkable:!0,checkboxKey:"object_alias_visible"},{key:"model",label:"型号",checkable:!0,checkboxKey:"model_visible"},{key:"retained",label:"状态",checkable:!0,checkboxKey:"retained_visible"},{key:"opened_at",label:"开始时间",checkable:!0,checkboxKey:"opened_at_visible"},{key:"elapsed",label:"持续时间",checkable:!0,checkboxKey:"elapsed_visible"},{key:"statis_result",label:"统计结果",checkable:!0,checkboxKey:"statis_result_visible"},{key:"close_at",label:"结束时间",checkable:!0,checkboxKey:"close_at_visible"}],Ue=[],Ye={},$e={DEFAULT:Fe,OPTIONS:Ke,DATA:oe,PARAMS:He,SOURCE:Ue,COMMON:Ye},We=e.defineComponent(W($({},$e),{__name:"retainerRecordList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{default:"edit"},theme:{},code:{default:""}},setup(_){const p={ALERT:"报警",FAULT:"故障",OTHER:"其他"},u="YYYY-MM-DD HH:mm:ss",N=_;class I extends je.BaseComponent{getDataBool(t,i){var r,s;const a=(s=(r=this.props.conf)==null?void 0:r.data)==null?void 0:s[0];return a&&Object.prototype.hasOwnProperty.call(a,t)&&a[t]!==void 0?!!a[t]:this.getOptionValue(t,i)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showViewBtn:this.getDataBool("showViewBtn",!0),showExportBtn:this.getDataBool("showExportBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(oe));else{const i=this.props.conf.data[0];i.showViewBtn===void 0&&(i.showViewBtn=!0),i.showExportBtn===void 0&&(i.showExportBtn=!0);for(const a of["template_id_visible","label_cn_visible","label_en_visible","code_visible","category_visible","object_id_visible","object_name_visible","object_alias_visible","model_visible","retained_visible","opened_at_visible","elapsed_visible","statis_result_visible","close_at_visible"])i[a]===void 0&&(i[a]=!0)}}needsHistoryData(){return!1}onPreview(){return S(this,null,function*(){this.subscribeMmqEvent("retainer_open","retainer",""),this.subscribeMmqEvent("retainer_close","retainer","")})}setSocketData(t){var r;if(!t)return;let i,a;if(typeof t.event=="string"?(i=t.event,a=typeof t.block=="string"?t.block:void 0):t.event&&typeof t.event=="object"&&(i=t.event.event,a=t.event.block),a==="retainer"&&(i==="retainer_open"||i==="retainer_close")){const s=this;(r=s._retainerTableRefresh)==null||r.call(s);return}}}const B=new I(N,"retainerRecordList");B.setupLifecycle();const C=B.getStyle(),{mixiotPanelClass:E,mixiotPanelRootStyle:h}=le.useMixiotPanelSurface(C),{tableWrapRef:T,tableBodyHeight:ie}=le.useTableBodyHeight(),re=e.computed(()=>ze.generateTitleStyle(N.conf.options)),ne=e.computed(()=>{var i,a,r,s;const o=((a=(i=N.conf)==null?void 0:i.options)==null?void 0:a.columns)||[],t=((s=(r=N.conf)==null?void 0:r.data)==null?void 0:s[0])||{};return(Array.isArray(o)?o:[]).map(m=>{const n=t[m.key],f=t[`${m.key}_visible`];return{prop:m.key,label:n!==void 0&&n!==""?String(n):m.label,width:m.width,minWidth:m.minWidth,visible:f!==void 0?!!f:m.visible!==!1}})}),g=e.reactive({current:1,pageSize:20,total:0}),D=e.ref("1"),j=e.ref([V.dayjs().subtract(1,"month").format(u),V.dayjs().format(u)]),z=e.ref(""),y=e.ref("object_name"),O=e.ref(null),M=e.ref(""),q=e.ref([]),H=e.ref(!1),U=e.ref({});function se(){g.current=1,x()}function ce(){z.value="",O.value=null,M.value=""}function J(o){var i;if(o==null||o==="")return"";const t=String(o);return(i=p[t])!=null?i:t}function F(o){const t=o.retained;return t===1||t==="1"}function ue(o,t){const i=o[t];return i==null?"":String(i)}function de(){return S(this,null,function*(){var o;if(!(Object.keys(U.value).length>0))try{let t=1;const i=2e3;for(;;){const a=yield V.api.post("get_object_list",{page_index:t,page_size:i},!1),r=(o=a==null?void 0:a.result)!=null?o:a,s=Array.isArray(r==null?void 0:r.data)?r.data:[];for(const n of s){const f=n.uid;f&&(U.value[f]={name:n.name,alias:n.alias,model:n.model})}const m=typeof(r==null?void 0:r.total_records)=="number"?r.total_records:s.length;if(!s.length||t*i>=m)break;t++}}catch(t){}})}function pe(){const o=[];D.value!=="2"&&o.push(["retained","=",D.value]);const t=j.value;if(t&&t.length===2&&t[0]&&t[1]){const[a,r]=t[0]<=t[1]?t:[t[1],t[0]];o.push(["created",">=",a]),o.push(["created","<=",r])}if(y.value==="opened_at"){const a=O.value;if(a&&a.length===2&&a[0]&&a[1]){const[r,s]=a[0]<=a[1]?a:[a[1],a[0]];o.push(["opened_at",">=",r]),o.push(["opened_at","<=",s])}}else if(y.value==="category"){const a=M.value.trim();a&&o.push(["category","=",a])}else{const a=z.value.trim();a&&o.push([y.value,"like",`%${a}%`])}const i={page_index:g.current,page_size:g.pageSize};return o.length&&(i.where_and=JSON.stringify(o)),i}function x(){return S(this,null,function*(){var o;H.value=!0;try{yield de();const t=yield V.api.post("get_retainer_result_list",pe(),!0),i=(o=t==null?void 0:t.result)!=null?o:t,a=Array.isArray(i==null?void 0:i.data)?i.data:[];q.value=a.map(s=>{var f,w,L;const m=s.object_id?String(s.object_id):"",n=m?U.value[m]:void 0;return W($({},s),{object_name:(f=s.object_name)!=null?f:n==null?void 0:n.name,object_alias:(w=s.object_alias)!=null?w:n==null?void 0:n.alias,model:(L=s.model)!=null?L:n==null?void 0:n.model})});const r=i==null?void 0:i.total_records;g.total=typeof r=="number"?r:a.length,t&&t.code!==void 0&&t.code!==200&&k.ElMessage.warning(t.msg||t.info||"列表接口返回非成功状态")}catch(t){console.error(t),q.value=[],g.total=0,k.ElMessage.error("加载历程记录失败")}finally{H.value=!1}})}B._retainerTableRefresh=()=>{x()};const be=e.computed(()=>q.value);function G(){g.current=1,x()}function _e(){z.value="",O.value=null,M.value="",y.value="object_name",D.value="1",j.value=[V.dayjs().subtract(1,"month").format(u),V.dayjs().format(u)],g.current=1,x()}function ve(){g.current=1,x()}function me(){x()}const K=e.ref(!1),Y=e.ref(!1),R=e.ref(""),c=e.ref(null),A=e.ref([]);function ge(o){return S(this,null,function*(){var i;const t=o.uid;if(!t){k.ElMessage.warning("当前行缺少历程编号,无法拉取详情");return}K.value=!0,Y.value=!0,R.value="",c.value=null,A.value=[];try{const a=yield V.api.post("get_retainer_with_events",{retainer_id:t},!0),r=(i=a==null?void 0:a.result)!=null?i:a;if(a&&a.code!==void 0&&a.code!==200){R.value=String(a.msg||a.info||"详情接口失败");return}c.value=r;const s=r==null?void 0:r.events;A.value=Array.isArray(s)?s:[]}catch(a){R.value="加载历程详情失败"}finally{Y.value=!1}})}function fe(o){const t=i=>String(i).padStart(2,"0");return`${o.getFullYear()}-${t(o.getMonth()+1)}-${t(o.getDate())} ${t(o.getHours())}:${t(o.getMinutes())}:${t(o.getSeconds())}`}function he(){return S(this,null,function*(){const o=j.value;if(!o||o.length<2||!o[0]||!o[1]){k.ElMessage.warning("请先选择创建时间范围后再导出");return}const t=[...new Set(q.value.map(a=>{var r;return String((r=a.object_id)!=null?r:"").trim()}).filter(Boolean))],i=[...new Set(q.value.map(a=>{var r;return String((r=a.template_id)!=null?r:"").trim()}).filter(Boolean))];if(!t.length&&!i.length){k.ElMessage.warning("当前页列表无项目编号或对象编号,请加载数据后再导出");return}try{yield k.ElMessageBox.confirm("将按当前列表中的项目/对象编号及所选创建时间范围提交导出任务(与 mixui 历程导出一致),是否继续?","导出历程数据",{type:"info"})}catch(a){return}try{const a=yield V.api.post("export_retainer_data",{file_name:`retainer_export_${fe(new Date).replace(/[: ]/g,"_")}`,open_at:o[0]<=o[1]?o[0]:o[1],close_at:o[0]<=o[1]?o[1]:o[0],template_ids:i,object_ids:t,character:"utf-8"},!0);if(a.code!==void 0&&a.code!==200){k.ElMessage.warning(a.msg||a.info||"导出请求未成功");return}k.ElMessage.success("导出任务已提交")}catch(a){k.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{x()}),(o,t)=>{const i=d.ElRadioButton,a=d.ElRadioGroup,r=d.ElDatePicker,s=d.ElIcon,m=d.ElInput,n=d.ElOption,f=d.ElSelect,w=d.ElButton,L=d.ElTag,Q=d.ElTableColumn,ye=d.ElTable,ke=d.ElPagination,Ve=d.ElAlert,b=d.ElDescriptionsItem,we=d.ElDescriptions,xe=d.ElTimelineItem,Ne=d.ElTimeline,Ce=d.ElDialog,X=d.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["retainer-record-list mix-component",e.unref(E)]),style:e.normalizeStyle(e.unref(h))},[e.unref(C).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(re.value)},e.toDisplayString(_.conf.caption||_.conf.name),5)),e.createElementVNode("div",Me,[e.createElementVNode("div",qe,[e.createVNode(a,{modelValue:D.value,"onUpdate:modelValue":t[0]||(t[0]=l=>D.value=l),size:"small",onChange:se},{default:e.withCtx(()=>[e.createVNode(i,{label:"1"},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode("持续历程",-1)])]),_:1}),e.createVNode(i,{label:"0"},{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode("已完结历程",-1)])]),_:1}),e.createVNode(i,{label:"2"},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("全部记录",-1)])]),_:1})]),_:1},8,["modelValue"]),e.createVNode(r,{modelValue:j.value,"onUpdate:modelValue":t[1]||(t[1]=l=>j.value=l),type:"datetimerange","range-separator":"至","start-placeholder":"创建开始","end-placeholder":"创建结束","value-format":"YYYY-MM-DD HH:mm:ss",size:"small",class:"toolbar-created-range"},null,8,["modelValue"])]),e.createElementVNode("div",Re,[y.value!=="opened_at"&&y.value!=="category"?(e.openBlock(),e.createBlock(m,{key:0,modelValue:z.value,"onUpdate:modelValue":t[2]||(t[2]=l=>z.value=l),placeholder:"输入关键字后搜索(与 mixui 历程记录检索字段一致)",size:"small",class:"toolbar-search",onKeyup:e.withKeys(G,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(s,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Oe.Search))]),_:1})]),_:1},8,["modelValue"])):y.value==="opened_at"?(e.openBlock(),e.createBlock(r,{key:1,modelValue:O.value,"onUpdate:modelValue":t[3]||(t[3]=l=>O.value=l),type:"datetimerange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD HH:mm:ss",size:"small",class:"toolbar-opened-range"},null,8,["modelValue"])):(e.openBlock(),e.createBlock(f,{key:2,modelValue:M.value,"onUpdate:modelValue":t[4]||(t[4]=l=>M.value=l),placeholder:"历程类型",size:"small",class:"toolbar-category",clearable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(p,(l,v)=>e.createVNode(n,{key:v,label:l,value:v},null,8,["label","value"])),64))]),_:1},8,["modelValue"])),e.createVNode(f,{modelValue:y.value,"onUpdate:modelValue":t[5]||(t[5]=l=>y.value=l),size:"small",class:"toolbar-field-select",onChange:ce},{default:e.withCtx(()=>[e.createVNode(n,{label:"项目编号",value:"template_id"}),e.createVNode(n,{label:"历程项编码",value:"code"}),e.createVNode(n,{label:"历程项名称(中文)",value:"label_cn"}),e.createVNode(n,{label:"历程项名称(英文)",value:"label_en"}),e.createVNode(n,{label:"历程类型",value:"category"}),e.createVNode(n,{label:"对象编号",value:"object_id"}),e.createVNode(n,{label:"对象别名",value:"object_alias"}),e.createVNode(n,{label:"对象名称",value:"object_name"}),e.createVNode(n,{label:"对象型号",value:"model"}),e.createVNode(n,{label:"项目名称",value:"customer_name"}),e.createVNode(n,{label:"开始时间",value:"opened_at"})]),_:1},8,["modelValue"]),e.createVNode(w,{type:"primary",onClick:G},{default:e.withCtx(()=>[...t[14]||(t[14]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(w,{onClick:_e},{default:e.withCtx(()=>[...t[15]||(t[15]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(C).showExportBtn?(e.openBlock(),e.createBlock(w,{key:3,type:"success",onClick:he},{default:e.withCtx(()=>[...t[16]||(t[16]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:T,class:"table-wrapper"},[e.createVNode(ye,{data:be.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(ie)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.prop},[l.visible?(e.openBlock(),e.createBlock(Q,{key:0,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(v=>{var P,Z;return[l.prop==="category"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(J(v.row.category)),1)],64)):l.prop==="retained"?(e.openBlock(),e.createBlock(L,{key:1,type:F(v.row)?"success":"info",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(F(v.row)?"持续":"已完结"),1)]),_:2},1032,["type"])):l.prop==="label_cn"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(String((Z=(P=v.row.label_local)!=null?P:v.row.label_cn)!=null?Z:"")),1)],64)):(e.openBlock(),e.createElementBlock("span",Ae,e.toDisplayString(ue(v.row,l.prop)),1))]}),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.unref(C).showViewBtn?(e.openBlock(),e.createBlock(Q,{key:0,label:"操作",width:"100",fixed:"right"},{default:e.withCtx(l=>[e.createVNode(w,{size:"small",onClick:v=>ge(l.row)},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode("详情",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["data","height"])],512),e.createElementVNode("div",Le,[e.createVNode(ke,{"current-page":g.current,"onUpdate:currentPage":t[6]||(t[6]=l=>g.current=l),"page-size":g.pageSize,"onUpdate:pageSize":t[7]||(t[7]=l=>g.pageSize=l),"page-sizes":[20,50,100,200],layout:"total, sizes, prev, pager, next, jumper",total:g.total,onSizeChange:ve,onCurrentChange:me},null,8,["current-page","page-size","total"])])]),e.createVNode(Ce,{modelValue:K.value,"onUpdate:modelValue":t[9]||(t[9]=l=>K.value=l),title:"历程记录详情",width:"720px","destroy-on-close":"",onClosed:t[10]||(t[10]=l=>c.value=null)},{footer:e.withCtx(()=>[e.createVNode(w,{type:"primary",onClick:t[8]||(t[8]=l=>K.value=!1)},{default:e.withCtx(()=>[...t[18]||(t[18]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Pe,[R.value?(e.openBlock(),e.createBlock(Ve,{key:0,type:"error",title:R.value,"show-icon":"",closable:!1,class:"mb-3"},null,8,["title"])):c.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(we,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(b,{label:"历程编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(b,{label:"项目编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.template_id)!=null?l:""),1)]}),_:1}),e.createVNode(b,{label:"历程项(中文)"},{default:e.withCtx(()=>{var l,v;return[e.createTextVNode(e.toDisplayString((v=(l=c.value.label_local)!=null?l:c.value.label_cn)!=null?v:""),1)]}),_:1}),e.createVNode(b,{label:"历程项(英文)"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.label_en)!=null?l:""),1)]}),_:1}),e.createVNode(b,{label:"历程项编码"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.code)!=null?l:""),1)]}),_:1}),e.createVNode(b,{label:"历程类型"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(J(c.value.category)),1)]),_:1}),e.createVNode(b,{label:"对象编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.object_id)!=null?l:""),1)]}),_:1}),e.createVNode(b,{label:"对象名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.object_name)!=null?l:""),1)]}),_:1}),e.createVNode(b,{label:"对象别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.object_alias)!=null?l:""),1)]}),_:1}),e.createVNode(b,{label:"型号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.model)!=null?l:""),1)]}),_:1}),e.createVNode(b,{label:"状态"},{default:e.withCtx(()=>[e.createVNode(L,{type:F(c.value)?"success":"info",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(F(c.value)?"持续":"已完结"),1)]),_:1},8,["type"])]),_:1}),e.createVNode(b,{label:"开始时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.opened_at)!=null?l:""),1)]}),_:1}),e.createVNode(b,{label:"结束时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.close_at)!=null?l:""),1)]}),_:1}),e.createVNode(b,{label:"持续时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.elapsed)!=null?l:""),1)]}),_:1}),e.createVNode(b,{label:"统计结果"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.statis_result)!=null?l:""),1)]}),_:1}),e.createVNode(b,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.description)!=null?l:""),1)]}),_:1})]),_:1}),A.value.length?(e.openBlock(),e.createElementBlock("div",Ie,"事件")):e.createCommentVNode("",!0),A.value.length?(e.openBlock(),e.createBlock(Ne,{key:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(l,v)=>{var P;return e.openBlock(),e.createBlock(xe,{key:v,timestamp:String((P=l.datetime)!=null?P:"")},{default:e.withCtx(()=>[e.createElementVNode("div",null,"状态:"+e.toDisplayString(l.status===1||l.status==="1"?"开启":"关闭"),1)]),_:2},1032,["timestamp"])}),128))]),_:1})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),[[X,Y.value]])]),_:1},8,["modelValue"]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[X,H.value]])}}})),Je=V._export_sfc(We,[["__scopeId","data-v-5c148497"]]);exports.default=Je;
@@ -1 +0,0 @@
1
- "use strict";var xe=Object.defineProperty,Ce=Object.defineProperties;var Ne=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var _e=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable;var Z=(f,u,p)=>u in f?xe(f,u,{enumerable:!0,configurable:!0,writable:!0,value:p}):f[u]=p,z=(f,u)=>{for(var p in u||(u={}))_e.call(u,p)&&Z(f,p,u[p]);if(Y)for(var p of Y(u))ke.call(u,p)&&Z(f,p,u[p]);return f},K=(f,u)=>Ce(f,Ne(u));var _=(f,u,p)=>new Promise((M,V)=>{var $=b=>{try{T(p.next(b))}catch(A){V(A)}},R=b=>{try{T(p.throw(b))}catch(A){V(A)}},T=b=>b.done?M(b.value):Promise.resolve(b.value).then($,R);T((p=p.apply(f,u)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=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/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),ee=require("./useMixiotPanelSurface-BMNrWBMF.cjs"),Be=require("./BaseComponent-Cco_5i96.cjs"),k=require("./index-Do1YWdUS.cjs"),Se=require("./titleStyle-NSnz6cUg.cjs"),d=require("element-plus"),Ee=require("@element-plus/icons-vue"),te=require("./ele-lst-icon-CrxnHZ-A.cjs"),Te={class:"mix-body"},Ae={class:"toolbar"},De={class:"pagination"},Ue={class:"view-body"},Oe={DEFAULT_ICON:te.DEFAULT_ICON,ACTIVE_ICON:te.ACTIVE_ICON,NAME_CN:"终端配置列表",NAME_EN:"TerminalConfigList",ORDER:6},ze={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{key:"uid",label:"终端配置编号",width:140,visible:!0},{key:"alias",label:"终端配置别名",width:120,visible:!0},{key:"name",label:"终端配置名称",width:140,visible:!0},{key:"lua_version",label:"LUA版本号",width:110,visible:!0},{key:"tag",label:"标签",width:120,visible:!0},{key:"description",label:"描述",minWidth:140,visible:!0},{key:"last_modified",label:"最后修改时间",width:170,visible:!0},{key:"created",label:"创建时间",width:170,visible:!0}]},le=[{name:"终端配置名称",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showBatchUpgradeBtn:!0,showDownloadBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0,uid:"终端配置编号",uid_visible:!0,alias:"终端配置别名",alias_visible:!0,name_visible:!0,lua_version:"LUA版本号",lua_version_visible:!0,tag:"标签",tag_visible:!0,description:"描述",description_visible:!0,last_modified:"最后修改时间",last_modified_visible:!0,created:"创建时间",created_visible:!0}],Me=[{key:"showAddBtn",label:"添加",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组"},{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showBatchUpgradeBtn",label:"批量升级",type:"checkbox",group:"操作组"},{key:"showDownloadBtn",label:"下载",type:"checkbox",group:"操作组"},{key:"showArchiveBtn",label:"资料备档",type:"checkbox",group:"操作组"},{key:"showDeleteBtn",label:"删除",type:"checkbox",group:"操作组"},{key:"name",label:"参数名称"},{key:"uid",label:"终端配置编号",checkable:!0,checkboxKey:"uid_visible"},{key:"alias",label:"终端配置别名",checkable:!0,checkboxKey:"alias_visible"},{key:"name",label:"终端配置名称",checkable:!0,checkboxKey:"name_visible"},{key:"lua_version",label:"LUA版本号",checkable:!0,checkboxKey:"lua_version_visible"},{key:"tag",label:"标签",checkable:!0,checkboxKey:"tag_visible"},{key:"description",label:"描述",checkable:!0,checkboxKey:"description_visible"},{key:"last_modified",label:"最后修改时间",checkable:!0,checkboxKey:"last_modified_visible"},{key:"created",label:"创建时间",checkable:!0,checkboxKey:"created_visible"}],Ie=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],qe={},Le={DEFAULT:Oe,OPTIONS:ze,DATA:le,PARAMS:Me,SOURCE:Ie,COMMON:qe},Pe=e.defineComponent(K(z({},Le),{__name:"terminalConfigList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(f){const u=f;class p extends Be.BaseComponent{getDataBool(t,i){var m,y;const n=(y=(m=this.props.conf)==null?void 0:m.data)==null?void 0:y[0];return n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0?!!n[t]:this.getOptionValue(t,i)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showAddBtn:this.getDataBool("showAddBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showBatchUpgradeBtn:this.getDataBool("showBatchUpgradeBtn",!0),showDownloadBtn:this.getDataBool("showDownloadBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(le));else{const i=this.props.conf.data[0],n={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showBatchUpgradeBtn:!0,showDownloadBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[m,y]of Object.entries(n))i[m]===void 0&&(i[m]=y)}}}const M=new p(u,"terminalConfigList");M.setupLifecycle();const V=M.getStyle(),{mixiotPanelClass:$,mixiotPanelRootStyle:R}=ee.useMixiotPanelSurface(V),{tableWrapRef:T,tableBodyHeight:b}=ee.useTableBodyHeight(),A=e.computed(()=>Se.generateTitleStyle(u.conf.options)),ae=e.computed(()=>{var i,n,m,y;const o=((n=(i=u.conf)==null?void 0:i.options)==null?void 0:n.columns)||[],t=((y=(m=u.conf)==null?void 0:m.data)==null?void 0:y[0])||{};return(Array.isArray(o)?o:[]).map(s=>{const x=t[s.key],E=`${s.key}_visible`,B=t[E];return{prop:s.key,label:x!==void 0&&x!==""?String(x):s.label,width:s.width,minWidth:s.minWidth,visible:B!==void 0?!!B:s.visible!==!1}})}),h=e.reactive({current:1,pageSize:10,total:0}),I=e.ref(""),F=e.ref("name"),q=e.ref([]),j=e.ref(!1);function oe(){const o=[],t=I.value.trim();return t&&o.push([F.value,"like",`%${t}%`]),{page_index:h.current,page_size:h.pageSize,where_and:JSON.stringify(o)}}function v(){return _(this,null,function*(){var o;j.value=!0;try{const t=yield k.api.post("terminal_config_list",oe(),!0),i=(o=t==null?void 0:t.result)!=null?o:t;q.value=Array.isArray(i==null?void 0:i.data)?[...i.data]:[];const n=i==null?void 0:i.total_records;h.total=typeof n=="number"?n:q.value.length,t&&t.code!==void 0&&t.code!==200&&d.ElMessage.warning(t.msg||t.info||"列表接口返回非成功状态")}catch(t){console.error(t),q.value=[],h.total=0,d.ElMessage.error("加载终端配置列表失败")}finally{j.value=!1}})}const ie=e.computed(()=>q.value);function H(o){if(o==null||o==="")return"";if(Array.isArray(o))return o.join(", ");if(typeof o=="string")try{const t=JSON.parse(o);return Array.isArray(t)?t.join(", "):o}catch(t){return o}return String(o)}function ne(o,t){if(t==="tag")return H(o.tag);const i=o[t];return i==null?"":String(i)}function W(){h.current=1,v()}function re(){I.value="",h.current=1,v()}function se(){h.current=1,v()}function de(){v()}const D=e.ref(!1),U=e.ref(!1),N=e.ref(!1),a=e.reactive({id:0,uid:"",name:"",alias:"",tagInput:"",description:"",terminal_script:"",config_script:"",addition:"[]",reference:"",hardware:"",is_available:1});function ue(){const o=a.tagInput.trim();return o?o.split(",").map(t=>t.trim()).filter(Boolean):[]}function ce(o){if(o==null){a.tagInput="";return}if(Array.isArray(o)){a.tagInput=o.join(", ");return}if(typeof o=="string")try{const t=JSON.parse(o);a.tagInput=Array.isArray(t)?t.join(", "):o}catch(t){a.tagInput=o}}function L(){a.id=0,a.uid="",a.name="",a.alias="",a.tagInput="",a.description="",a.terminal_script="",a.config_script="",a.addition="[]",a.reference="",a.hardware="",a.is_available=1}function pe(){var t;const o=((t=a.addition)==null?void 0:t.trim())||"[]";try{return JSON.parse(o)}catch(i){throw new Error("扩展信息需为合法 JSON")}}function Q(){const o=pe();return{id:a.id,uid:a.uid.trim(),name:a.name.trim(),alias:a.alias.trim(),description:a.description,tag:ue(),terminal_script:a.terminal_script,config_script:a.config_script,addition:o,reference:a.reference,hardware:a.hardware,is_available:a.is_available}}function me(){L(),a.addition="[]",D.value=!0}function fe(o){return _(this,null,function*(){var t,i,n,m,y,s,x,E,B,c,O;L(),U.value=!0,N.value=!0;try{const C=yield k.api.post("terminal_config_item",{uid:o.uid},!0),r=(t=C==null?void 0:C.result)!=null?t:C;if(r&&typeof r=="object"){if(a.id=Number(r.id)||0,a.uid=String((n=(i=r.uid)!=null?i:o.uid)!=null?n:""),a.name=String((m=r.name)!=null?m:""),a.alias=String((y=r.alias)!=null?y:""),ce(r.tag),a.description=String((s=r.description)!=null?s:""),a.terminal_script=String((x=r.terminal_script)!=null?x:""),a.config_script=String((E=r.config_script)!=null?E:""),r.addition!==void 0&&r.addition!==null)if(typeof r.addition=="string")try{a.addition=JSON.stringify(JSON.parse(r.addition),null,2)}catch(G){a.addition=String(r.addition)}else a.addition=JSON.stringify(r.addition,null,2);else a.addition="[]";a.reference=String((B=r.reference)!=null?B:""),a.hardware=String((c=r.hardware)!=null?c:""),a.is_available=r.is_available!==void 0?Number(r.is_available):1}}catch(C){a.uid=String(o.uid),a.name=String((O=o.name)!=null?O:""),d.ElMessage.warning("拉取配置详情失败,已使用列表行数据")}finally{N.value=!1}})}function ge(){return _(this,null,function*(){var t;if(!((t=a.name)!=null&&t.trim())){d.ElMessage.warning("请填写配置名称");return}let o;try{o=K(z({},Q()),{id:0})}catch(i){d.ElMessage.warning((i==null?void 0:i.message)||"扩展信息格式错误");return}N.value=!0;try{yield k.api.post("terminal_config_create",o,!0),d.ElMessage.success("添加成功"),D.value=!1,yield v()}catch(i){d.ElMessage.error("添加失败")}finally{N.value=!1}})}function we(){return _(this,null,function*(){var t;if(!((t=a.name)!=null&&t.trim())){d.ElMessage.warning("请填写配置名称");return}let o;try{o=Q()}catch(i){d.ElMessage.warning((i==null?void 0:i.message)||"扩展信息格式错误");return}N.value=!0;try{yield k.api.post("terminal_config_update",o,!0),d.ElMessage.success("保存成功"),U.value=!1,yield v()}catch(i){d.ElMessage.error("保存失败")}finally{N.value=!1}})}const P=e.ref(!1),J=e.ref(!1),w=e.ref(null);function Ve(o){return _(this,null,function*(){w.value=null,P.value=!0,J.value=!0;try{const t=yield k.api.post("terminal_config_item",{uid:o.uid},!0),i=t==null?void 0:t.result;i&&typeof i=="object"?w.value=i:(w.value=z({},o),d.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){w.value=z({},o),d.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{J.value=!1}})}function he(o){return _(this,null,function*(){try{(yield k.api.post("upgrade_config_lua",{uid:o.uid},!0)).code===200&&(d.ElMessage.success("已触发批量升级"),yield v())}catch(t){d.ElMessage.error("批量升级请求失败(参数可能与后端约定不一致,可在 mixui 终端管理中操作)")}})}function ye(o){const t=o.lua_file;if(!t){d.ElMessage.warning("无 LUA 文件地址");return}if(/^https?:\/\//i.test(t)){window.open(t,"_blank");return}const i=(localStorage.getItem("globalApiUrl")||"").replace(/\/$/,""),n=i?`${i}/${t.replace(/^\//,"")}`:t;window.open(n,"_blank")}function be(o){d.ElMessageBox.confirm(`确认对配置「${o.name||o.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{d.ElMessage.success("完整备档流程请在 mixui「终端管理」中操作")}).catch(()=>{})}function ve(o){d.ElMessageBox.confirm(`确认删除终端配置「${o.name||o.uid}」吗?`,"警告",{type:"warning"}).then(()=>_(null,null,function*(){try{yield k.api.post("terminal_config_delete",{uid:o.uid,id:o.id},!0),d.ElMessage.success("删除成功"),yield v()}catch(t){d.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{v()}),(o,t)=>{const i=g.ElIcon,n=g.ElInput,m=g.ElOption,y=g.ElSelect,s=g.ElButton,x=g.ElTableColumn,E=g.ElTable,B=g.ElPagination,c=g.ElFormItem,O=g.ElForm,C=g.ElDialog,r=g.ElDescriptionsItem,G=g.ElDescriptions,X=g.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["terminal-config-list mix-component",e.unref($)]),style:e.normalizeStyle(e.unref(R))},[e.unref(V).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(A.value)},e.toDisplayString(f.conf.caption||f.conf.name),5)),e.createElementVNode("div",Te,[e.createElementVNode("div",Ae,[e.createVNode(n,{modelValue:I.value,"onUpdate:modelValue":t[0]||(t[0]=l=>I.value=l),placeholder:"搜索终端配置",size:"small",class:"toolbar-search",onKeyup:e.withKeys(W,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(i,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ee.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(y,{modelValue:F.value,"onUpdate:modelValue":t[1]||(t[1]=l=>F.value=l),size:"small",class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(m,{label:"配置名称",value:"name"}),e.createVNode(m,{label:"配置编号",value:"uid"}),e.createVNode(m,{label:"配置别名",value:"alias"}),e.createVNode(m,{label:"标签",value:"tag"})]),_:1},8,["modelValue"]),e.createVNode(s,{type:"primary",onClick:W},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(s,{onClick:re},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(V).showAddBtn?(e.openBlock(),e.createBlock(s,{key:0,type:"success",onClick:me},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("添加",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:T,class:"table-wrapper"},[e.createVNode(E,{data:ie.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(b)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ae.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.prop},[l.visible?(e.openBlock(),e.createBlock(x,{key:0,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(S=>[e.createElementVNode("span",null,e.toDisplayString(ne(S.row,l.prop)),1)]),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(x,{label:"操作","min-width":"340",fixed:"right"},{default:e.withCtx(l=>[e.unref(V).showViewBtn?(e.openBlock(),e.createBlock(s,{key:0,size:"small",onClick:S=>Ve(l.row)},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showEditBtn?(e.openBlock(),e.createBlock(s,{key:1,size:"small",type:"primary",onClick:S=>fe(l.row)},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showBatchUpgradeBtn?(e.openBlock(),e.createBlock(s,{key:2,size:"small",onClick:S=>he(l.row)},{default:e.withCtx(()=>[...t[30]||(t[30]=[e.createTextVNode("批量升级",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showDownloadBtn?(e.openBlock(),e.createBlock(s,{key:3,size:"small",onClick:S=>ye(l.row)},{default:e.withCtx(()=>[...t[31]||(t[31]=[e.createTextVNode("下载",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showArchiveBtn?(e.openBlock(),e.createBlock(s,{key:4,size:"small",type:"info",onClick:S=>be(l.row)},{default:e.withCtx(()=>[...t[32]||(t[32]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showDeleteBtn?(e.openBlock(),e.createBlock(s,{key:5,size:"small",type:"danger",onClick:S=>ve(l.row)},{default:e.withCtx(()=>[...t[33]||(t[33]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data","height"])],512),e.createElementVNode("div",De,[e.createVNode(B,{"current-page":h.current,"onUpdate:currentPage":t[2]||(t[2]=l=>h.current=l),"page-size":h.pageSize,"onUpdate:pageSize":t[3]||(t[3]=l=>h.pageSize=l),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:h.total,onSizeChange:se,onCurrentChange:de},null,8,["current-page","page-size","total"])])]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[X,j.value]]),e.createVNode(C,{modelValue:D.value,"onUpdate:modelValue":t[12]||(t[12]=l=>D.value=l),title:"添加终端配置",width:"900px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(s,{onClick:t[11]||(t[11]=l=>D.value=!1)},{default:e.withCtx(()=>[...t[34]||(t[34]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:N.value,onClick:ge},{default:e.withCtx(()=>[...t[35]||(t[35]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(O,{model:a,"label-width":"130px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"配置名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.name,"onUpdate:modelValue":t[4]||(t[4]=l=>a.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"配置别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.alias,"onUpdate:modelValue":t[5]||(t[5]=l=>a.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.tagInput,"onUpdate:modelValue":t[6]||(t[6]=l=>a.tagInput=l),placeholder:"多个标签用英文逗号分隔"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Aprus脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.terminal_script,"onUpdate:modelValue":t[7]||(t[7]=l=>a.terminal_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Config脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.config_script,"onUpdate:modelValue":t[8]||(t[8]=l=>a.config_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"扩展信息"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.addition,"onUpdate:modelValue":t[9]||(t[9]=l=>a.addition=l),type:"textarea",rows:4,placeholder:"JSON,默认 []"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.description,"onUpdate:modelValue":t[10]||(t[10]=l=>a.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(C,{modelValue:U.value,"onUpdate:modelValue":t[22]||(t[22]=l=>U.value=l),title:"编辑终端配置",width:"900px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(s,{onClick:t[21]||(t[21]=l=>U.value=!1)},{default:e.withCtx(()=>[...t[36]||(t[36]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:N.value,onClick:we},{default:e.withCtx(()=>[...t[37]||(t[37]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(O,{model:a,"label-width":"130px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"配置编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.uid,"onUpdate:modelValue":t[13]||(t[13]=l=>a.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"配置名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.name,"onUpdate:modelValue":t[14]||(t[14]=l=>a.name=l)},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"配置别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.alias,"onUpdate:modelValue":t[15]||(t[15]=l=>a.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.tagInput,"onUpdate:modelValue":t[16]||(t[16]=l=>a.tagInput=l),placeholder:"多个标签用英文逗号分隔"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Aprus脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.terminal_script,"onUpdate:modelValue":t[17]||(t[17]=l=>a.terminal_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Config脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.config_script,"onUpdate:modelValue":t[18]||(t[18]=l=>a.config_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"扩展信息"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.addition,"onUpdate:modelValue":t[19]||(t[19]=l=>a.addition=l),type:"textarea",rows:4},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.description,"onUpdate:modelValue":t[20]||(t[20]=l=>a.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(C,{modelValue:P.value,"onUpdate:modelValue":t[24]||(t[24]=l=>P.value=l),title:"终端配置详情",width:"800px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(s,{type:"primary",onClick:t[23]||(t[23]=l=>P.value=!1)},{default:e.withCtx(()=>[...t[38]||(t[38]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Ue,[w.value?(e.openBlock(),e.createBlock(G,{key:0,column:2,border:""},{default:e.withCtx(()=>[e.createVNode(r,{label:"配置编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"配置名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"配置别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"LUA版本"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.lua_version)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"标签",span:2},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(H(w.value.tag)),1)]),_:1}),e.createVNode(r,{label:"最后修改"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.description)!=null?l:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)])),[[X,J.value]])]),_:1},8,["modelValue"])],64)}}})),$e=k._export_sfc(Pe,[["__scopeId","data-v-5e3ea2d6"]]);exports.default=$e;
@@ -1 +0,0 @@
1
- "use strict";var Ue=Object.defineProperty,De=Object.defineProperties;var Te=Object.getOwnPropertyDescriptors;var oe=Object.getOwnPropertySymbols;var Me=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable;var ne=(k,d,f)=>d in k?Ue(k,d,{enumerable:!0,configurable:!0,writable:!0,value:f}):k[d]=f,q=(k,d)=>{for(var f in d||(d={}))Me.call(d,f)&&ne(k,f,d[f]);if(oe)for(var f of oe(d))Ae.call(d,f)&&ne(k,f,d[f]);return k},ee=(k,d)=>De(k,Te(d));var V=(k,d,f)=>new Promise((I,y)=>{var X=B=>{try{D(f.next(B))}catch(T){y(T)}},W=B=>{try{D(f.throw(B))}catch(T){y(T)}},D=B=>B.done?I(B.value):Promise.resolve(B.value).then(X,W);D((f=f.apply(k,d)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=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/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),re=require("./useMixiotPanelSurface-BMNrWBMF.cjs"),Le=require("./BaseComponent-Cco_5i96.cjs"),_=require("./index-Do1YWdUS.cjs"),Oe=require("./titleStyle-NSnz6cUg.cjs"),u=require("element-plus"),ze=require("@element-plus/icons-vue"),se=require("./ele-lst-icon-CrxnHZ-A.cjs"),qe={class:"mix-body"},Ie={class:"toolbar"},Re={key:1},Fe={class:"pagination"},$e={class:"view-body"},Ke={DEFAULT_ICON:se.DEFAULT_ICON,ACTIVE_ICON:se.ACTIVE_ICON,NAME_CN:"终端列表",NAME_EN:"TerminalList",ORDER:5},Pe={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{key:"name",label:"终端名称",width:140,visible:!0},{key:"uid",label:"终端编号",width:140,visible:!0},{key:"alias",label:"终端别名",width:120,visible:!0},{key:"type",label:"终端类型",width:160,visible:!0},{key:"config_id",label:"终端配置编号",width:130,visible:!0},{key:"online",label:"终端状态",width:100,visible:!0},{key:"csq",label:"信号值",width:90,visible:!0},{key:"last_publish_time",label:"最近上报时间",width:170,visible:!0},{key:"last_online_time",label:"上一次连接时间",width:170,visible:!0},{key:"nominal.ICCID",label:"流量卡号",width:160,visible:!0},{key:"nominal.LUA",label:"LUA版本号",width:120,visible:!0},{key:"nominal.MCU",label:"MCU版本号",width:120,visible:!0},{key:"maker",label:"生产厂家",width:120,visible:!0},{key:"description",label:"描述",minWidth:140,visible:!0},{key:"created",label:"创建时间",width:170,visible:!0}]},ue=[{name:"终端名称",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showImportBtn:!0,showBatchRefreshBtn:!0,showViewBtn:!0,showEditBtn:!0,showSyncBtn:!0,showRestartBtn:!0,showUpgradeBtn:!0,showDownloadBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0,uid:"终端编号",uid_visible:!0,alias:"终端别名",alias_visible:!0,type:"终端类型",type_visible:!0,config_id:"终端配置编号",config_id_visible:!0,online:"终端状态",online_visible:!0,csq:"信号值",csq_visible:!0,last_publish_time:"最近上报时间",last_publish_time_visible:!0,last_online_time:"上一次连接时间",last_online_time_visible:!0,"nominal.ICCID":"流量卡号","nominal.ICCID_visible":!0,"nominal.LUA":"LUA版本号","nominal.LUA_visible":!0,"nominal.MCU":"MCU版本号","nominal.MCU_visible":!0,maker:"生产厂家",maker_visible:!0,description:"描述",description_visible:!0,created:"创建时间",created_visible:!0}],je=[{key:"showAddBtn",label:"添加终端",type:"checkbox",group:"命令组"},{key:"showImportBtn",label:"导入",type:"checkbox",group:"命令组"},{key:"showBatchRefreshBtn",label:"批量刷新",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组"},{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showSyncBtn",label:"刷新",type:"checkbox",group:"操作组"},{key:"showRestartBtn",label:"重启",type:"checkbox",group:"操作组"},{key:"showUpgradeBtn",label:"升级",type:"checkbox",group:"操作组"},{key:"showDownloadBtn",label:"下载",type:"checkbox",group:"操作组"},{key:"showArchiveBtn",label:"资料备档",type:"checkbox",group:"操作组"},{key:"showDeleteBtn",label:"删除",type:"checkbox",group:"操作组"},{key:"name",label:"参数名称"},{key:"uid",label:"终端编号",checkable:!0,checkboxKey:"uid_visible"},{key:"alias",label:"终端别名",checkable:!0,checkboxKey:"alias_visible"},{key:"type",label:"终端类型",checkable:!0,checkboxKey:"type_visible"},{key:"config_id",label:"终端配置编号",checkable:!0,checkboxKey:"config_id_visible"},{key:"online",label:"终端状态",checkable:!0,checkboxKey:"online_visible"},{key:"csq",label:"信号值",checkable:!0,checkboxKey:"csq_visible"},{key:"last_publish_time",label:"最近上报时间",checkable:!0,checkboxKey:"last_publish_time_visible"},{key:"last_online_time",label:"上一次连接时间",checkable:!0,checkboxKey:"last_online_time_visible"},{key:"nominal.ICCID",label:"流量卡号",checkable:!0,checkboxKey:"nominal.ICCID_visible"},{key:"nominal.LUA",label:"LUA版本号",checkable:!0,checkboxKey:"nominal.LUA_visible"},{key:"nominal.MCU",label:"MCU版本号",checkable:!0,checkboxKey:"nominal.MCU_visible"},{key:"maker",label:"生产厂家",checkable:!0,checkboxKey:"maker_visible"},{key:"description",label:"描述",checkable:!0,checkboxKey:"description_visible"},{key:"created",label:"创建时间",checkable:!0,checkboxKey:"created_visible"}],Xe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],We={},He={DEFAULT:Ke,OPTIONS:Pe,DATA:ue,PARAMS:je,SOURCE:Xe,COMMON:We},Je=e.defineComponent(ee(q({},He),{__name:"terminalList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""},terminalUidList:{default:()=>[]},terminalOnlineFilter:{default:null}},setup(k){const d=k;class f extends Le.BaseComponent{getDataBool(t,o){var r,c;const n=(c=(r=this.props.conf)==null?void 0:r.data)==null?void 0:c[0];return n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0?!!n[t]:this.getOptionValue(t,o)}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),showAddBtn:this.getDataBool("showAddBtn",!0),showImportBtn:this.getDataBool("showImportBtn",!0),showBatchRefreshBtn:this.getDataBool("showBatchRefreshBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showSyncBtn:this.getDataBool("showSyncBtn",!0),showRestartBtn:this.getDataBool("showRestartBtn",!0),showUpgradeBtn:this.getDataBool("showUpgradeBtn",!0),showDownloadBtn:this.getDataBool("showDownloadBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(ue));else{const o=this.props.conf.data[0],n={showAddBtn:!0,showImportBtn:!0,showBatchRefreshBtn:!0,showViewBtn:!0,showEditBtn:!0,showSyncBtn:!0,showRestartBtn:!0,showUpgradeBtn:!0,showDownloadBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[r,c]of Object.entries(n))o[r]===void 0&&(o[r]=c)}}}const I=new f(d,"terminalList");I.setupLifecycle();const y=I.getStyle(),{mixiotPanelClass:X,mixiotPanelRootStyle:W}=re.useMixiotPanelSurface(y),{tableWrapRef:D,tableBodyHeight:B}=re.useTableBodyHeight(),T=e.computed(()=>Oe.generateTitleStyle(d.conf.options)),de=e.computed(()=>{var o,n,r,c;const i=((n=(o=d.conf)==null?void 0:o.options)==null?void 0:n.columns)||[],t=((c=(r=d.conf)==null?void 0:r.data)==null?void 0:c[0])||{};return(Array.isArray(i)?i:[]).map(s=>{const C=t[s.key],S=`${s.key}_visible`,E=t[S];return{prop:s.key,label:C!==void 0&&C!==""?String(C):s.label,width:s.width,minWidth:s.minWidth,visible:E!==void 0?!!E:s.visible!==!1}})}),H=[{label:"Mixlinker Aprus-M",value:"Mixlinker Aprus-M"},{label:"Mixlinker Aprus-X",value:"Mixlinker Aprus-X"},{label:"Mixlinker Aprus-AS",value:"Mixlinker Aprus-AS"},{label:"第三方终端",value:"Other"},{label:"数据模拟",value:"Mixlinker DataSimulate"},{label:"UFS",value:"UFS"}];function te(i){if(i==null||i==="")return"";const t=String(i),o=H.find(n=>n.value===t);return o?o.label:t}function M(i,t){return t.split(".").reduce((o,n)=>{if(!(o==null||typeof o!="object"))return o[n]},i)}function J(i){const t=i.online;return t===1||t===!0||t==="1"}const v=e.reactive({current:1,pageSize:10,total:0}),R=e.ref(""),Q=e.ref("name"),G=e.ref([]),Y=e.ref(!1);function ce(){const i=[["uid","!=","fidiser"]],t=R.value.trim();return t&&i.push([Q.value,"like",`%${t}%`]),(d.terminalOnlineFilter===0||d.terminalOnlineFilter===1)&&i.push(["online","=",d.terminalOnlineFilter]),{page_index:v.current,page_size:v.pageSize,where_and:JSON.stringify(i)}}function x(){return V(this,null,function*(){var i,t;Y.value=!0;try{const o=yield _.api.post("terminal_list",ce(),!0),n=(i=o==null?void 0:o.result)!=null?i:o;let r=Array.isArray(n==null?void 0:n.data)?[...n.data]:[];if((t=d.terminalUidList)!=null&&t.length){const s=new Set(d.terminalUidList.map(String));r=r.filter(C=>s.has(String(C.uid)))}G.value=r;const c=n==null?void 0:n.total_records;v.total=typeof c=="number"?c:r.length,o&&o.code!==void 0&&o.code!==200&&u.ElMessage.warning(o.msg||o.info||"列表接口返回非成功状态")}catch(o){console.error(o),G.value=[],v.total=0,u.ElMessage.error("加载终端列表失败")}finally{Y.value=!1}})}const me=e.computed(()=>G.value);function pe(i,t){if(t==="type")return te(i.type);const o=M(i,t);return o==null?"":String(o)}function le(){v.current=1,x()}function fe(){R.value="",v.current=1,x()}function be(){v.current=1,x()}function he(){x()}e.watch(()=>{var i;return[(i=d.terminalUidList)==null?void 0:i.join(","),d.terminalOnlineFilter].join("|")},()=>{v.current=1,x()});function ye(){u.ElMessage.info("批量导入终端请在 mixui「终端管理」中使用导入功能")}function ke(){u.ElMessage.info("批量刷新请在 mixui「终端管理」中操作(需 user_action 接口)")}const A=e.ref(!1),L=e.ref(!1),N=e.ref(!1),F=e.ref([]),a=e.reactive({id:0,uid:"",name:"",alias:"",type:"Mixlinker Aprus-X",config_id:"",maker:"",description:"",rsa_privatekey:"",auto_upgrade:0,is_available:1});function ae(){return V(this,null,function*(){var i;try{const t=yield _.api.post("terminal_config_list",{select:["id","uid","name"]},!0),o=(i=t==null?void 0:t.result)!=null?i:t;F.value=Array.isArray(o==null?void 0:o.data)?o.data:[]}catch(t){F.value=[]}})}function $(){a.id=0,a.uid="",a.name="",a.alias="",a.type="Mixlinker Aprus-X",a.config_id="",a.maker="",a.description="",a.rsa_privatekey="",a.auto_upgrade=0,a.is_available=1}function ge(){return V(this,null,function*(){$(),yield ae(),A.value=!0})}function we(i){return V(this,null,function*(){var t,o,n,r,c,s,C,S,E,P,b,O,U,p,j,z,l;$(),L.value=!0,N.value=!0,yield ae();try{const h=yield _.api.post("terminal_item",{uid:i.uid},!0),w=(t=h==null?void 0:h.result)!=null?t:h;w&&typeof w=="object"?(a.id=Number(w.id)||0,a.uid=String((n=(o=w.uid)!=null?o:i.uid)!=null?n:""),a.name=String((r=w.name)!=null?r:""),a.alias=String((c=w.alias)!=null?c:""),a.type=String((s=w.type)!=null?s:"Mixlinker Aprus-X"),a.config_id=String((C=w.config_id)!=null?C:""),a.maker=String((S=w.maker)!=null?S:""),a.description=String((E=w.description)!=null?E:""),a.rsa_privatekey=String((P=w.rsa_privatekey)!=null?P:""),a.auto_upgrade=Number(w.auto_upgrade)||0,a.is_available=w.is_available!==void 0?Number(w.is_available):1):(a.uid=String(i.uid),a.name=String((b=i.name)!=null?b:""),a.alias=String((O=i.alias)!=null?O:""),a.type=String((U=i.type)!=null?U:"Mixlinker Aprus-X"),a.config_id=String((p=i.config_id)!=null?p:""),a.maker=String((j=i.maker)!=null?j:""),a.description=String((z=i.description)!=null?z:""))}catch(h){a.uid=String(i.uid),a.name=String((l=i.name)!=null?l:""),u.ElMessage.warning("拉取终端详情失败,已使用列表行数据编辑")}finally{N.value=!1}})}function ie(){return{id:a.id,uid:a.uid.trim(),name:a.name.trim(),alias:a.alias.trim(),description:a.description,type:a.type,maker:a.maker,config_id:a.config_id,rsa_privatekey:a.rsa_privatekey,auto_upgrade:a.auto_upgrade,is_available:a.is_available,addition:"[]"}}function ve(){return V(this,null,function*(){var i,t;if(!((i=a.uid)!=null&&i.trim())||!((t=a.name)!=null&&t.trim())){u.ElMessage.warning("请填写终端编号与名称");return}N.value=!0;try{yield _.api.post("terminal_create",ee(q({},ie()),{id:0}),!0),u.ElMessage.success("添加成功"),A.value=!1,yield x()}catch(o){u.ElMessage.error("添加失败")}finally{N.value=!1}})}function Ve(){return V(this,null,function*(){var i;if(!((i=a.name)!=null&&i.trim())){u.ElMessage.warning("请填写终端名称");return}N.value=!0;try{yield _.api.post("terminal_update",ie(),!0),u.ElMessage.success("保存成功"),L.value=!1,yield x()}catch(t){u.ElMessage.error("保存失败")}finally{N.value=!1}})}const K=e.ref(!1),Z=e.ref(!1),m=e.ref(null);function xe(i){return V(this,null,function*(){m.value=null,K.value=!0,Z.value=!0;try{const t=yield _.api.post("terminal_item",{uid:i.uid},!0),o=t==null?void 0:t.result;o&&typeof o=="object"?m.value=o:(m.value=q({},i),u.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){m.value=q({},i),u.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{Z.value=!1}})}function _e(i){return V(this,null,function*(){try{(yield _.api.post("terminal_sync",{terminal_id:i.uid},!0)).code===200&&(u.ElMessage.success("已触发同步"),yield x())}catch(t){u.ElMessage.error("同步失败")}})}function Ce(i){return V(this,null,function*(){try{(yield _.api.post("terminal_restart",{terminal_id:i.uid,command:"Reboot"},!0)).code===200&&(u.ElMessage.success("已下发重启指令"),yield x())}catch(t){u.ElMessage.error("重启指令失败")}})}function Be(i){return V(this,null,function*(){var r,c;const t=String((r=i.uid)!=null?r:""),o=String((c=i.type)!=null?c:""),n=t.startsWith("AX")||o==="Mixlinker Aprus-X"||o.includes("Aprus-X")?"AXUpgrade":"Upgrade";try{(yield _.api.post("upgrade_lua",{terminal_id:i.uid,command:n,value:"LUA"},!0)).code===200&&(u.ElMessage.success("已下发升级指令"),yield x())}catch(s){u.ElMessage.error("升级指令失败")}})}function Ne(i){return V(this,null,function*(){var t;try{const o=yield _.api.post("download_last_lua_file",{terminal_id:i.uid},!0),n=(t=o==null?void 0:o.result)!=null?t:o==null?void 0:o.data;if(n instanceof Blob){const r=URL.createObjectURL(n),c=document.createElement("a");c.href=r,c.download=`${i.uid}.lua`,c.click(),URL.revokeObjectURL(r),u.ElMessage.success("已开始下载")}else u.ElMessage.warning("未收到文件数据,请在 mixui 中下载")}catch(o){u.ElMessage.error("下载失败")}})}function Se(i){u.ElMessageBox.confirm(`确认对终端「${i.name||i.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{u.ElMessage.success("已提交备档(完整流程请在 mixui 终端管理中操作)")}).catch(()=>{})}function Ee(i){u.ElMessageBox.confirm(`确认删除终端「${i.name||i.uid}」吗?`,"警告",{type:"warning"}).then(()=>V(null,null,function*(){try{yield _.api.post("terminal_delete",{uid:i.uid,id:i.id},!0),u.ElMessage.success("删除成功"),yield x()}catch(t){u.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{x()}),(i,t)=>{const o=g.ElIcon,n=g.ElInput,r=g.ElOption,c=g.ElSelect,s=g.ElButton,C=g.ElTag,S=g.ElTableColumn,E=g.ElTable,P=g.ElPagination,b=g.ElFormItem,O=g.ElForm,U=g.ElDialog,p=g.ElDescriptionsItem,j=g.ElDescriptions,z=g.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["terminal-list mix-component",e.unref(X)]),style:e.normalizeStyle(e.unref(W))},[e.unref(y).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(T.value)},e.toDisplayString(k.conf.caption||k.conf.name),5)),e.createElementVNode("div",qe,[e.createElementVNode("div",Ie,[e.createVNode(n,{modelValue:R.value,"onUpdate:modelValue":t[0]||(t[0]=l=>R.value=l),placeholder:"搜索终端",size:"small",class:"toolbar-search",onKeyup:e.withKeys(le,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(o,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(ze.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(c,{modelValue:Q.value,"onUpdate:modelValue":t[1]||(t[1]=l=>Q.value=l),size:"small",class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(r,{label:"终端名称",value:"name"}),e.createVNode(r,{label:"终端编号",value:"uid"}),e.createVNode(r,{label:"终端别名",value:"alias"}),e.createVNode(r,{label:"描述",value:"description"}),e.createVNode(r,{label:"生产厂家",value:"maker"}),e.createVNode(r,{label:"终端配置编号",value:"config_id"})]),_:1},8,["modelValue"]),e.createVNode(s,{type:"primary",onClick:le},{default:e.withCtx(()=>[...t[24]||(t[24]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(s,{onClick:fe},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(y).showAddBtn?(e.openBlock(),e.createBlock(s,{key:0,type:"success",onClick:ge},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("添加终端",-1)])]),_:1})):e.createCommentVNode("",!0),e.unref(y).showImportBtn?(e.openBlock(),e.createBlock(s,{key:1,onClick:ye},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("导入",-1)])]),_:1})):e.createCommentVNode("",!0),e.unref(y).showBatchRefreshBtn?(e.openBlock(),e.createBlock(s,{key:2,onClick:ke},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("批量刷新",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:D,class:"table-wrapper"},[e.createVNode(E,{data:me.value,style:{width:"100%"},height:e.unref(B)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(de.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.prop},[l.visible?(e.openBlock(),e.createBlock(S,{key:0,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(h=>[l.prop==="online"?(e.openBlock(),e.createBlock(C,{key:0,type:J(h.row)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(J(h.row)?"在线":"离线"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",Re,e.toDisplayString(pe(h.row,l.prop)),1))]),_:2},1032,["label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(S,{label:"操作","min-width":"320",fixed:"right"},{default:e.withCtx(l=>[e.unref(y).showViewBtn?(e.openBlock(),e.createBlock(s,{key:0,size:"small",onClick:h=>xe(l.row)},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showEditBtn?(e.openBlock(),e.createBlock(s,{key:1,size:"small",type:"primary",onClick:h=>we(l.row)},{default:e.withCtx(()=>[...t[30]||(t[30]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showSyncBtn?(e.openBlock(),e.createBlock(s,{key:2,size:"small",onClick:h=>_e(l.row)},{default:e.withCtx(()=>[...t[31]||(t[31]=[e.createTextVNode("刷新",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showRestartBtn?(e.openBlock(),e.createBlock(s,{key:3,size:"small",onClick:h=>Ce(l.row)},{default:e.withCtx(()=>[...t[32]||(t[32]=[e.createTextVNode("重启",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showUpgradeBtn?(e.openBlock(),e.createBlock(s,{key:4,size:"small",onClick:h=>Be(l.row)},{default:e.withCtx(()=>[...t[33]||(t[33]=[e.createTextVNode("升级",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showDownloadBtn?(e.openBlock(),e.createBlock(s,{key:5,size:"small",onClick:h=>Ne(l.row)},{default:e.withCtx(()=>[...t[34]||(t[34]=[e.createTextVNode("下载",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showArchiveBtn?(e.openBlock(),e.createBlock(s,{key:6,size:"small",type:"info",onClick:h=>Se(l.row)},{default:e.withCtx(()=>[...t[35]||(t[35]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showDeleteBtn?(e.openBlock(),e.createBlock(s,{key:7,size:"small",type:"danger",onClick:h=>Ee(l.row)},{default:e.withCtx(()=>[...t[36]||(t[36]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data","height"])],512),e.createElementVNode("div",Fe,[e.createVNode(P,{"current-page":v.current,"onUpdate:currentPage":t[2]||(t[2]=l=>v.current=l),"page-size":v.pageSize,"onUpdate:pageSize":t[3]||(t[3]=l=>v.pageSize=l),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:v.total,onSizeChange:be,onCurrentChange:he},null,8,["current-page","page-size","total"])])]),e.renderSlot(i.$slots,"default",{},void 0,!0)],6)),[[z,Y.value]]),e.createVNode(U,{modelValue:A.value,"onUpdate:modelValue":t[12]||(t[12]=l=>A.value=l),title:"添加终端",width:"640px","destroy-on-close":"",onClosed:$},{footer:e.withCtx(()=>[e.createVNode(s,{onClick:t[11]||(t[11]=l=>A.value=!1)},{default:e.withCtx(()=>[...t[37]||(t[37]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:N.value,onClick:ve},{default:e.withCtx(()=>[...t[38]||(t[38]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(O,{model:a,"label-width":"120px"},{default:e.withCtx(()=>[e.createVNode(b,{label:"终端编号",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.uid,"onUpdate:modelValue":t[4]||(t[4]=l=>a.uid=l),placeholder:"必填,唯一编号"},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.name,"onUpdate:modelValue":t[5]||(t[5]=l=>a.name=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.alias,"onUpdate:modelValue":t[6]||(t[6]=l=>a.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端类型",required:""},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:a.type,"onUpdate:modelValue":t[7]||(t[7]=l=>a.type=l),class:"w-full",filterable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(H,l=>e.createVNode(r,{key:l.value,label:l.label,value:l.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端配置"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:a.config_id,"onUpdate:modelValue":t[8]||(t[8]=l=>a.config_id=l),class:"w-full",filterable:"",clearable:"",placeholder:"请选择"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,l=>(e.openBlock(),e.createBlock(r,{key:l.uid,label:l.name,value:l.uid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(b,{label:"生产厂家"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.maker,"onUpdate:modelValue":t[9]||(t[9]=l=>a.maker=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.description,"onUpdate:modelValue":t[10]||(t[10]=l=>a.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(U,{modelValue:L.value,"onUpdate:modelValue":t[21]||(t[21]=l=>L.value=l),title:"编辑终端",width:"640px","destroy-on-close":"",onClosed:$},{footer:e.withCtx(()=>[e.createVNode(s,{onClick:t[20]||(t[20]=l=>L.value=!1)},{default:e.withCtx(()=>[...t[39]||(t[39]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:N.value,onClick:Ve},{default:e.withCtx(()=>[...t[40]||(t[40]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(O,{model:a,"label-width":"120px"},{default:e.withCtx(()=>[e.createVNode(b,{label:"终端编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.uid,"onUpdate:modelValue":t[13]||(t[13]=l=>a.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.name,"onUpdate:modelValue":t[14]||(t[14]=l=>a.name=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.alias,"onUpdate:modelValue":t[15]||(t[15]=l=>a.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端类型",required:""},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:a.type,"onUpdate:modelValue":t[16]||(t[16]=l=>a.type=l),class:"w-full",filterable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(H,l=>e.createVNode(r,{key:l.value,label:l.label,value:l.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端配置"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:a.config_id,"onUpdate:modelValue":t[17]||(t[17]=l=>a.config_id=l),class:"w-full",filterable:"",clearable:"",placeholder:"请选择"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,l=>(e.openBlock(),e.createBlock(r,{key:l.uid,label:l.name,value:l.uid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(b,{label:"生产厂家"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.maker,"onUpdate:modelValue":t[18]||(t[18]=l=>a.maker=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.description,"onUpdate:modelValue":t[19]||(t[19]=l=>a.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(U,{modelValue:K.value,"onUpdate:modelValue":t[23]||(t[23]=l=>K.value=l),title:"终端详情",width:"760px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(s,{type:"primary",onClick:t[22]||(t[22]=l=>K.value=!1)},{default:e.withCtx(()=>[...t[41]||(t[41]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",$e,[m.value?(e.openBlock(),e.createBlock(j,{key:0,column:2,border:""},{default:e.withCtx(()=>[e.createVNode(p,{label:"终端编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"终端名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"终端别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"终端类型"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(te(m.value.type)),1)]),_:1}),e.createVNode(p,{label:"终端配置编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.config_id)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"终端状态"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(J(m.value)?"在线":"离线"),1)]),_:1}),e.createVNode(p,{label:"信号值"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=M(m.value,"csq"))!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"最近上报时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.last_publish_time)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"上一次连接时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.last_online_time)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"流量卡号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=M(m.value,"nominal.ICCID"))!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"LUA版本"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=M(m.value,"nominal.LUA"))!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"MCU版本"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=M(m.value,"nominal.MCU"))!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"生产厂家"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.maker)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.description)!=null?l:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)])),[[z,Z.value]])]),_:1},8,["modelValue"])],64)}}})),Qe=_._export_sfc(Je,[["__scopeId","data-v-f56d9cbf"]]);exports.default=Qe;