mixdashboards 1.1.12 → 1.1.13

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 (361) hide show
  1. package/dist/{AgGridTable-HD819tdR.cjs → AgGridTable-Bi7O66-r.cjs} +1 -1
  2. package/dist/{AgGridTable-nAGZ7EH9.js → AgGridTable-BjGMC3qC.js} +1 -1
  3. package/dist/{BaseComponent-DJDC3N1j.cjs → BaseComponent-9njJjeix.cjs} +1 -1
  4. package/dist/{BaseComponent-Czscoh5u.js → BaseComponent-B38Blgw3.js} +3 -3
  5. package/dist/{EChartComponentBase-DTgKUpc5.cjs → EChartComponentBase-BwbycwwW.cjs} +1 -1
  6. package/dist/{EChartComponentBase-D7dng7iR.js → EChartComponentBase-DJScukmS.js} +2 -2
  7. package/dist/{EmergencyPlanPanel-DrA-Ra41.cjs → EmergencyPlanPanel-BxzP1xYW.cjs} +1 -1
  8. package/dist/{EmergencyPlanPanel-fgufYdpl.js → EmergencyPlanPanel-D3GF-xQQ.js} +1 -1
  9. package/dist/{HistoryPlanDialog-B97jCXpL.cjs → HistoryPlanDialog-DQXCUsy4.cjs} +1 -1
  10. package/dist/{HistoryPlanDialog-D5KMySdq.js → HistoryPlanDialog-DpaiRZgi.js} +1 -1
  11. package/dist/{MixiotAppDetailPage-BoVBQmRp.js → MixiotAppDetailPage-BGfF3qrm.js} +1 -1
  12. package/dist/{MixiotAppDetailPage-BWfa2etu.cjs → MixiotAppDetailPage-CL1Sd9HJ.cjs} +1 -1
  13. package/dist/{MonitoringMap-BZXSLqxf.js → MonitoringMap-DQkO116Z.js} +2 -2
  14. package/dist/{MonitoringMap-BJkUI1pD.cjs → MonitoringMap-Wzsw3hVH.cjs} +1 -1
  15. package/dist/{UniverSheet-D_6uk1JD.cjs → UniverSheet-Bne7JZyr.cjs} +1 -1
  16. package/dist/{UniverSheet-BUN2z8VE.js → UniverSheet-Cd2a9LPx.js} +2 -2
  17. package/dist/{accelerationChart-Dp7AGEHG.cjs → accelerationChart-BJhVC_l5.cjs} +1 -1
  18. package/dist/{accelerationChart-4Mqw0sHl.js → accelerationChart-BUsbSkwA.js} +2 -2
  19. package/dist/{actionItem-BoRHosoc.js → actionItem-B3B4MFcW.js} +2 -2
  20. package/dist/{actionItem-DscCZQ48.cjs → actionItem-DxB7IvtW.cjs} +1 -1
  21. package/dist/{alarmLevelChart-B16mk8qS.js → alarmLevelChart-DC-q2AgI.js} +2 -2
  22. package/dist/{alarmLevelChart-5The333F.cjs → alarmLevelChart-DC_hx4Pn.cjs} +1 -1
  23. package/dist/{alertTable-DKcW7PFG.js → alertTable-CGRDnNPw.js} +2 -2
  24. package/dist/{alertTable-CadCjxaO.cjs → alertTable-CHfA0TR-.cjs} +1 -1
  25. package/dist/{aliasObjectSelectorDemo-BPFTAHv4.cjs → aliasObjectSelectorDemo-DGoLPE4i.cjs} +1 -1
  26. package/dist/{aliasObjectSelectorDemo-Bf3MRVJv.js → aliasObjectSelectorDemo-DuGQCEcG.js} +1 -1
  27. package/dist/{annualRainfallChart-lCOmHSa_.cjs → annualRainfallChart-CLxVqN5Z.cjs} +1 -1
  28. package/dist/{annualRainfallChart-COE-1nNd.js → annualRainfallChart-Dr8KKYOG.js} +2 -2
  29. package/dist/{aqi-CIk5X_nw.cjs → aqi-BmYGSf2e.cjs} +1 -1
  30. package/dist/{aqi-DePtdnZP.js → aqi-rBhSWA_m.js} +2 -2
  31. package/dist/{aqiIndass-Cw7v9YpQ.cjs → aqiIndass-Cpqau5M0.cjs} +1 -1
  32. package/dist/{aqiIndass-CQQJSQqp.js → aqiIndass-DqJBc799.js} +2 -2
  33. package/dist/{areaDeformCurve-Bm0KbS3X.cjs → areaDeformCurve-B924KVWX.cjs} +1 -1
  34. package/dist/{areaDeformCurve-DwvEX03i.js → areaDeformCurve-DpHWg6pf.js} +2 -2
  35. package/dist/{arrayCard-Bn6Yq9l2.cjs → arrayCard-Bzjg3HKN.cjs} +1 -1
  36. package/dist/{arrayCard-DjH4PcOf.js → arrayCard-C7anoYI-.js} +2 -2
  37. package/dist/{audio-DqvJi-vV.js → audio-DTiS2piX.js} +2 -2
  38. package/dist/{audio-Dkv8VaJ-.cjs → audio-aADcgdZP.cjs} +1 -1
  39. package/dist/{bar-ClZLZ4qE.js → bar-D32xICYZ.js} +2 -2
  40. package/dist/{bar-Bf2Xd3Qm.cjs → bar-DqY55XnC.cjs} +1 -1
  41. package/dist/{basicShapeToolbox-DepnqGgg.cjs → basicShapeToolbox-BvJjH4fV.cjs} +1 -1
  42. package/dist/{basicShapeToolbox-BHkBW7aZ.js → basicShapeToolbox-D8q86CzB.js} +2 -2
  43. package/dist/{bmp-DqZ6htuk.cjs → bmp-DIFGLoNl.cjs} +1 -1
  44. package/dist/{bmp-DA9Nmg3e.js → bmp-DU3vm7yj.js} +2 -2
  45. package/dist/{box-DigZa0tF.cjs → box-C8pOZXek.cjs} +1 -1
  46. package/dist/{box-Dg-IjzND.js → box-DTQKGR9g.js} +2 -2
  47. package/dist/{chartConfigPanel-jvvu8lrK.js → chartConfigPanel-Bz82sVyH.js} +1 -1
  48. package/dist/{chartConfigPanel-DPISQMIb.cjs → chartConfigPanel-D4vk7zWs.cjs} +1 -1
  49. package/dist/{circleBar-3F_4en8C.cjs → circleBar-B48h_-uK.cjs} +1 -1
  50. package/dist/{circleBar-DKjyAM3b.js → circleBar-ClO05bgq.js} +2 -2
  51. package/dist/{clock-CbAU2bN_.js → clock-D8ZXhy53.js} +2 -2
  52. package/dist/{clock-CDQGERCL.cjs → clock-DB94wQje.cjs} +1 -1
  53. package/dist/{clt-DVwOetod.js → clt-BX0SNGZr.js} +2 -2
  54. package/dist/{clt-C7ytgefy.cjs → clt-cxeCTOaA.cjs} +1 -1
  55. package/dist/{cmc-Bqo2Dcet.cjs → cmc-BvnYrQrR.cjs} +1 -1
  56. package/dist/{cmc-Cv2iAlzd.js → cmc-Co13D559.js} +2 -2
  57. package/dist/{cmp-CQcusIbt.js → cmp-B4cYCR4p.js} +2 -2
  58. package/dist/{cmp--UxNWXcc.cjs → cmp-Dd56EQ09.cjs} +1 -1
  59. package/dist/{conclusionCard-DtQqAdoD.js → conclusionCard-Bla25-qd.js} +2 -2
  60. package/dist/{conclusionCard-D99-lvE-.cjs → conclusionCard-Cd3DoD1l.cjs} +1 -1
  61. package/dist/controlList-CyT_LYgr.cjs +1 -0
  62. package/dist/{controlList-tjiYNkvr.js → controlList-Dx4wSpA7.js} +125 -125
  63. package/dist/controlRecordList-BAI_15ZN.js +296 -0
  64. package/dist/controlRecordList-DsxYHRrs.cjs +1 -0
  65. package/dist/{controlRecordListAPP-DhmaLGHR.js → controlRecordListAPP-BQlABx3f.js} +2 -2
  66. package/dist/{controlRecordListAPP-BAeBSJVf.cjs → controlRecordListAPP-Zfiwcrmq.cjs} +1 -1
  67. package/dist/{crd-DLhcKjCB.cjs → crd-C6iegy7d.cjs} +1 -1
  68. package/dist/{crd-Bc2QGGgg.js → crd-IsqkYOAy.js} +2 -2
  69. package/dist/{ctrBtn-Bcyy5Udc.cjs → ctrBtn-C3OqkyNS.cjs} +1 -1
  70. package/dist/{ctrBtn-DCWyMx44.js → ctrBtn-LwuY-nVR.js} +3 -3
  71. package/dist/{ctrSet-DzVLCodN.cjs → ctrSet-B0nYCdwh.cjs} +1 -1
  72. package/dist/{ctrSet-CFDc3igH.js → ctrSet-Qb5XEdD4.js} +3 -3
  73. package/dist/{ctrSwitch-DxfFj9fY.js → ctrSwitch-B3jo3Gx0.js} +3 -3
  74. package/dist/{ctrSwitch-B6bXoe3E.cjs → ctrSwitch-Bps4Ak15.cjs} +1 -1
  75. package/dist/{dataManagement-DF32IOUJ.cjs → dataManagement-BFxVtU33.cjs} +1 -1
  76. package/dist/{dataManagement-B_RNPSET.js → dataManagement-CVHalRKp.js} +2 -2
  77. package/dist/{dataReport-Ca5kqAiN.js → dataReport-B2AiDMdM.js} +2 -2
  78. package/dist/{dataReport-B8Sf7izf.cjs → dataReport-Bk79cBkV.cjs} +1 -1
  79. package/dist/{dataTable-BNr1pEO5.js → dataTable-D9sSJRQn.js} +1 -1
  80. package/dist/{dataTable-CQuW1G6J.cjs → dataTable-Dh7s14jM.cjs} +1 -1
  81. package/dist/{datetime-MvzoAmzb.cjs → datetime-C25d1bAc.cjs} +1 -1
  82. package/dist/{datetime-C30NWm5x.js → datetime-CEKzNAlD.js} +2 -2
  83. package/dist/{deepClusterSlipSurface-OXbQquqP.cjs → deepClusterSlipSurface-BLZL2xX6.cjs} +1 -1
  84. package/dist/{deepClusterSlipSurface-DTv8RLbP.js → deepClusterSlipSurface-DODVh-Qw.js} +2 -2
  85. package/dist/{deepDataMatrix-2a1wNcHl.js → deepDataMatrix-9iClruS0.js} +2 -2
  86. package/dist/{deepDataMatrix-C8S4Jzo0.cjs → deepDataMatrix-D_NPV2sQ.cjs} +1 -1
  87. package/dist/{deepDisplacement3D-HkBOsn7t.js → deepDisplacement3D-C5YMqHiD.js} +2 -2
  88. package/dist/{deepDisplacement3D-DriT8bC2.cjs → deepDisplacement3D-C6puNK1m.cjs} +1 -1
  89. package/dist/{deepDisplacementChart-BUDAXIas.js → deepDisplacementChart-9sQF6tFO.js} +2 -2
  90. package/dist/{deepDisplacementChart-DpmribHR.cjs → deepDisplacementChart-D-dqPlzq.cjs} +1 -1
  91. package/dist/{deepDisplacementChart-BluIVQfL.js → deepDisplacementChart-DEn2yqGO.js} +3 -3
  92. package/dist/{deepDisplacementChart-DOnrdJfy.cjs → deepDisplacementChart-DhQO428W.cjs} +1 -1
  93. package/dist/{deepDisplacementView-C8ejaLBn.js → deepDisplacementView-Cux6lFtG.js} +1 -1
  94. package/dist/{deepDisplacementView-CDVumR_F.cjs → deepDisplacementView-tzX-vzxO.cjs} +1 -1
  95. package/dist/{deepNodeTemperatureChart-BaAju6OI.js → deepNodeTemperatureChart--GH8-4O7.js} +2 -2
  96. package/dist/{deepNodeTemperatureChart-6urdc5U2.cjs → deepNodeTemperatureChart-Cyfnw2BR.cjs} +1 -1
  97. package/dist/{deepTangentAngleChart-Ct88jXTV.cjs → deepTangentAngleChart-DPMDFXiA.cjs} +1 -1
  98. package/dist/{deepTangentAngleChart-Dy3suL_k.js → deepTangentAngleChart-Dae_3j30.js} +2 -2
  99. package/dist/{deepTemperatureField-CLwPoNZP.cjs → deepTemperatureField-B3Eu4zqv.cjs} +1 -1
  100. package/dist/{deepTemperatureField-mRdNCEMh.js → deepTemperatureField-Cr2e_Ytp.js} +3 -3
  101. package/dist/{deepTrendChart-DbSqAyDa.js → deepTrendChart-8fniZ16K.js} +2 -2
  102. package/dist/{deepTrendChart-tzRoK1qN.cjs → deepTrendChart-BPYqojQ2.cjs} +1 -1
  103. package/dist/{deviceOnlineStatus-C2Wh3EKy.js → deviceOnlineStatus-DP7-u5lC.js} +2 -2
  104. package/dist/{deviceOnlineStatus-CObChVau.cjs → deviceOnlineStatus-mJ0KVMo4.cjs} +1 -1
  105. package/dist/{deviceStatus-BRQ1cqPX.cjs → deviceStatus-B0AxN-cY.cjs} +1 -1
  106. package/dist/{deviceStatus-CGERf3iy.js → deviceStatus-Ih0jQNYO.js} +2 -2
  107. package/dist/{displacementDataTable-uyRGO9XR.js → displacementDataTable-BbZjdMtX.js} +2 -2
  108. package/dist/{displacementDataTable-D78HYkkv.cjs → displacementDataTable-Dkka_jGJ.cjs} +1 -1
  109. package/dist/{displacementTrajectoryChart-DB1PoEXJ.js → displacementTrajectoryChart-BZDSkYoZ.js} +2 -2
  110. package/dist/{displacementTrajectoryChart-C7HV_QR6.cjs → displacementTrajectoryChart-DDwm-jr2.cjs} +1 -1
  111. package/dist/{displacementTrendChart--5YqKKG-.cjs → displacementTrendChart-CUeVa58Q.cjs} +1 -1
  112. package/dist/{displacementTrendChart-D9CDhIVV.js → displacementTrendChart-DZZaVi86.js} +2 -2
  113. package/dist/{dxf-DJOGj2ML.cjs → dxf-BOfmTSO8.cjs} +1 -1
  114. package/dist/{dxf-CVRAv2X8.js → dxf-DYC74yWV.js} +2 -2
  115. package/dist/{dzc-4HJywPB7.js → dzc-BU7yYW4I.js} +2 -2
  116. package/dist/{dzc-Cce9viSS.cjs → dzc-DUFiz7a_.cjs} +1 -1
  117. package/dist/{emergencyPlan-DxV3q__u.cjs → emergencyPlan-DDb6j7YU.cjs} +1 -1
  118. package/dist/{emergencyPlan-Cdq9Tvtc.js → emergencyPlan-DabL46QK.js} +3 -3
  119. package/dist/{evn-k13V4ieQ.js → evn-DhdColcF.js} +2 -2
  120. package/dist/{evn-DtUR2qTB.cjs → evn-DrreVqnm.cjs} +1 -1
  121. package/dist/{evolutionChart-CQGeaAsX.cjs → evolutionChart-QuGAgjXo.cjs} +1 -1
  122. package/dist/{evolutionChart-BUAM__4R.js → evolutionChart-aedDj0mQ.js} +3 -3
  123. package/dist/{fileViewer-B9sKfXYb.cjs → fileViewer-CvNnUxUK.cjs} +1 -1
  124. package/dist/{fileViewer-OycF744y.js → fileViewer-oBpWIjGb.js} +2 -2
  125. package/dist/{filterBar-d5Bd0diy.cjs → filterBar-CwHODFoy.cjs} +1 -1
  126. package/dist/{filterBar-eeSXcDXt.js → filterBar-DYpEssxC.js} +2 -2
  127. package/dist/{fireCombustionCurve-CFk_VVDh.cjs → fireCombustionCurve-lu2qH6_b.cjs} +1 -1
  128. package/dist/{fireCombustionCurve-Bqo0TM2X.js → fireCombustionCurve-wbKsWk4E.js} +3 -3
  129. package/dist/{fireFilterBar-DI5acP0s.js → fireFilterBar-9_fqGo2q.js} +2 -2
  130. package/dist/{fireFilterBar-Doz_8h8x.cjs → fireFilterBar-B8su74tt.cjs} +1 -1
  131. package/dist/{fireHistoryTable-C0B4Fmzn.js → fireHistoryTable-C1C95uYN.js} +2 -2
  132. package/dist/{fireHistoryTable-xaDxKqKV.cjs → fireHistoryTable-pOJz1_Rp.cjs} +1 -1
  133. package/dist/{gag-CcEl0eYO.js → gag-BGUeQKJJ.js} +2 -2
  134. package/dist/{gag-Dw1fUKrC.cjs → gag-LSkHPD7f.cjs} +1 -1
  135. package/dist/{gasStationList-omM6P-PM.js → gasStationList-4TtBLsqC.js} +2 -2
  136. package/dist/{gasStationList-B1Po2ZsT.cjs → gasStationList-DJTrXjkv.cjs} +1 -1
  137. package/dist/{geo3dViewer-CTuToF4V.cjs → geo3dViewer-CK89hYK7.cjs} +1 -1
  138. package/dist/{geo3dViewer-CT1r2jtI.js → geo3dViewer-DIjv75YP.js} +3 -3
  139. package/dist/{glbModel-BWD7hdXt.cjs → glbModel-BDgY9S4f.cjs} +1 -1
  140. package/dist/{glbModel-B2ENiwvX.js → glbModel-IOIVpCjq.js} +2 -2
  141. package/dist/{globalObjectSelector-B-mP0irr.js → globalObjectSelector-B2dkzNyk.js} +1 -1
  142. package/dist/{globalObjectSelector-C8L0iu4X.cjs → globalObjectSelector-N7s0yyOp.cjs} +1 -1
  143. package/dist/{gnssFilterBar-Dwxzvpoi.cjs → gnssFilterBar-8eSkGWMH.cjs} +1 -1
  144. package/dist/{gnssFilterBar-CvmRI34J.js → gnssFilterBar-BF_tbN4_.js} +2 -2
  145. package/dist/{gnssHistoryTable-4NiskFYi.js → gnssHistoryTable-DUjRjXoS.js} +2 -2
  146. package/dist/{gnssHistoryTable-DmUS0bVK.cjs → gnssHistoryTable-X_cgOa6r.cjs} +1 -1
  147. package/dist/{gnssMapView-DCZ00hV9.js → gnssMapView-BnwPDey9.js} +4 -4
  148. package/dist/{gnssMapView-D_4Xe87Z.cjs → gnssMapView-DnF2bYAD.cjs} +2 -2
  149. package/dist/{gnssSectionProfile-CIEj6D_4.js → gnssSectionProfile-D0sbRu3A.js} +2 -2
  150. package/dist/{gnssSectionProfile-BdCAYBOE.cjs → gnssSectionProfile-DoEXHKTy.cjs} +1 -1
  151. package/dist/{gnssTimeSeriesChart-DwYU51n-.cjs → gnssTimeSeriesChart-Csm6PwRv.cjs} +1 -1
  152. package/dist/{gnssTimeSeriesChart-Bz36zvsC.js → gnssTimeSeriesChart-glTixABx.js} +2 -2
  153. package/dist/{gnssXYTrajectory-CpNDyLak.cjs → gnssXYTrajectory-4c8JDd_b.cjs} +1 -1
  154. package/dist/{gnssXYTrajectory-BdZRBPAr.js → gnssXYTrajectory-BMCO0sb0.js} +2 -2
  155. package/dist/{grd-C7prHOo7.js → grd-BTGTCp0z.js} +2 -2
  156. package/dist/{grd-CmYNXpaT.cjs → grd-D1enzYOI.cjs} +1 -1
  157. package/dist/{grdIndass-gl3k5cDB.cjs → grdIndass-B6fwa_k8.cjs} +1 -1
  158. package/dist/{grdIndass-cPmN14WG.js → grdIndass-Dn62HL6y.js} +2 -2
  159. package/dist/{grg-CnIEbT4n.cjs → grg-B5128EcW.cjs} +1 -1
  160. package/dist/{grg-DogeoUFD.js → grg-DMOF8h8j.js} +2 -2
  161. package/dist/{gridview-LCc51MgK.cjs → gridview-Ddin99YO.cjs} +1 -1
  162. package/dist/{gridview-kXII6eSo.js → gridview-Dewc5Eax.js} +2 -2
  163. package/dist/{groundwaterFilterBar-BtkhWjro.cjs → groundwaterFilterBar-2uj_Hf_Q.cjs} +1 -1
  164. package/dist/{groundwaterFilterBar-Dxlqxgcd.js → groundwaterFilterBar-mukvYHDm.js} +2 -2
  165. package/dist/{groundwaterProfileChart-CXdxFmWa.js → groundwaterProfileChart-BPTP8WBi.js} +3 -3
  166. package/dist/{groundwaterProfileChart-wiaIpxSx.cjs → groundwaterProfileChart-DDVsfzyr.cjs} +2 -2
  167. package/dist/{groundwaterTimeCurve-CPOjCK5O.cjs → groundwaterTimeCurve-Zzn-sEsW.cjs} +1 -1
  168. package/dist/{groundwaterTimeCurve-yCk7ZC3W.js → groundwaterTimeCurve-jtQFr0hU.js} +3 -3
  169. package/dist/{groupCard-Cj5Vzqzs.js → groupCard-B3fp05QD.js} +2 -2
  170. package/dist/{groupCard-DYKbZRg4.cjs → groupCard-DWjFdiH0.cjs} +1 -1
  171. package/dist/{headerBar-DR3ZSA2F.cjs → headerBar-B6lX3WST.cjs} +1 -1
  172. package/dist/{headerBar-BfZBY98Y.js → headerBar-BkpSQMNy.js} +2 -2
  173. package/dist/{history-mnG9_L6M.js → history-DgSlSTUD.js} +1 -1
  174. package/dist/{history-CiY07roO.cjs → history-DqPjJP_E.cjs} +1 -1
  175. package/dist/{index-DU4OIZEL.js → index-BbXEpgom.js} +2468 -2486
  176. package/dist/{index-BwtkVH_e.cjs → index-Bo49zvKb.cjs} +10 -10
  177. package/dist/{insarDeformChart-Dndk2HVd.cjs → insarDeformChart-8UyVWXTx.cjs} +1 -1
  178. package/dist/{insarDeformChart-D_p7noCD.js → insarDeformChart-DNBHbVuk.js} +2 -2
  179. package/dist/{insarImageViewer-DP_KfQaB.cjs → insarImageViewer-B8PhDcuG.cjs} +1 -1
  180. package/dist/{insarImageViewer-DScfbTZ5.js → insarImageViewer-BeykgIJy.js} +2 -2
  181. package/dist/{kds-B0Fit0Fq.cjs → kds-BJwYrjV_.cjs} +1 -1
  182. package/dist/{kds-D4z2zyZo.js → kds-CS473Sia.js} +2 -2
  183. package/dist/{kpiCard-D_gw4X0a.js → kpiCard-CNgj9P9s.js} +2 -2
  184. package/dist/{kpiCard-DjPf1qHE.cjs → kpiCard-OMuCQe7O.cjs} +1 -1
  185. package/dist/{landslideMap-DcjEu1ZO.js → landslideMap-DMNcfDYF.js} +3 -3
  186. package/dist/{landslideMap-DP0shvsC.cjs → landslideMap-NaGM5jJE.cjs} +1 -1
  187. package/dist/{landslideWarning-DBJXzY-N.js → landslideWarning-DU-dDiiS.js} +5 -5
  188. package/dist/{landslideWarning-BA_Sb0zk.cjs → landslideWarning-V1wB3aWq.cjs} +1 -1
  189. package/dist/{layerTabs-DxueDjyU.js → layerTabs-Bgi7pfof.js} +2 -2
  190. package/dist/{layerTabs-TpEk0WFR.cjs → layerTabs-VfYlv6Ks.cjs} +1 -1
  191. package/dist/{leaflet-src-DJJgts7k.js → leaflet-src-4AJHN6it.js} +1 -1
  192. package/dist/{leaflet-src-4S656x1-.cjs → leaflet-src-WG2ob5HA.cjs} +1 -1
  193. package/dist/{lerc-G5h0UNPO.js → lerc-BDiJ3I_S.js} +2 -2
  194. package/dist/{lerc-31FBETaU.cjs → lerc-CEea2nO1.cjs} +1 -1
  195. package/dist/{lin-BPYGMn8m.js → lin-BO1pGlXr.js} +2 -2
  196. package/dist/{lin-C4-NK6Nf.cjs → lin-B_rN6QBj.cjs} +1 -1
  197. package/dist/{linIndass-YB7bHhkE.cjs → linIndass-B7XnW5XO.cjs} +1 -1
  198. package/dist/{linIndass-Dirvz5Z7.js → linIndass-BGpoCQ4j.js} +2 -2
  199. package/dist/{lst-Biogy6C2.js → lst-BBl9nn63.js} +2 -2
  200. package/dist/{lst-C_KPRJrQ.cjs → lst-BeB_Gi9l.cjs} +1 -1
  201. package/dist/{manualEntry-FwaqtMKg.cjs → manualEntry-BQVUqtm7.cjs} +1 -1
  202. package/dist/{manualEntry-BwN0di-Q.js → manualEntry-C3qifAlP.js} +2 -2
  203. package/dist/{mapBackground-BScSVH7e.js → mapBackground-CDS60ZJC.js} +3 -3
  204. package/dist/{mapBackground-I0qYmxI7.cjs → mapBackground-D3-V7S-d.cjs} +1 -1
  205. package/dist/{mappingList-DscuhC-L.js → mappingList-B0jG2LlO.js} +114 -114
  206. package/dist/mappingList-DnoAuivo.cjs +1 -0
  207. package/dist/{markdownViewer-DXVR2den.cjs → markdownViewer-BMkbW1Cl.cjs} +1 -1
  208. package/dist/{markdownViewer-RlFrcE7Q.js → markdownViewer-BlXaqjhL.js} +2 -2
  209. package/dist/{mix-control-modal-DzYQkr3y.js → mix-control-modal-BEXucxt5.js} +1 -1
  210. package/dist/{mix-control-modal-CJGiZ9Xp.cjs → mix-control-modal-aUWGjwZP.cjs} +1 -1
  211. package/dist/{mixGrid-DLzTyDZW.cjs → mixGrid-B5pKpGT3.cjs} +1 -1
  212. package/dist/{mixGrid-DevBPAsP.js → mixGrid-DQf7U1_8.js} +2 -2
  213. package/dist/mixdashboards.cjs +1 -1
  214. package/dist/mixdashboards.css +1 -1
  215. package/dist/mixdashboards.js +1 -1
  216. package/dist/{mjpegCamera-GsCP7ABf.js → mjpegCamera-C6pxWuEr.js} +2 -2
  217. package/dist/{mjpegCamera-7rG6onnX.cjs → mjpegCamera-CJgiIk0q.cjs} +1 -1
  218. package/dist/{monitorAlert-DyBmNIK5.cjs → monitorAlert-BPd1b_Cx.cjs} +1 -1
  219. package/dist/{monitorAlert-olF_ZdWq.js → monitorAlert-ZNF5siqY.js} +2 -2
  220. package/dist/{monitorData-dac_cUje.js → monitorData-DIxZYNVr.js} +2 -2
  221. package/dist/{monitorData-C1ZKCQCG.cjs → monitorData-slk6ogNe.cjs} +1 -1
  222. package/dist/{monitorSpeedChart-CelQ4DJQ.cjs → monitorSpeedChart-BRwbLD8B.cjs} +1 -1
  223. package/dist/{monitorSpeedChart-Bf9D1fKQ.js → monitorSpeedChart-DCO39Aka.js} +1 -1
  224. package/dist/{mxa-Bt7zKhqy.cjs → mxa-Bp4RH0w3.cjs} +1 -1
  225. package/dist/{mxa-CUJAT-Lb.js → mxa-DFq19ply.js} +2 -2
  226. package/dist/{myValue-Bm7nNapa.js → myValue-BvItzUMv.js} +2 -2
  227. package/dist/{myValue-BXcCb5p-.cjs → myValue-g8shJQA9.cjs} +1 -1
  228. package/dist/{myValueList-Dx8W8cJR.js → myValueList-A_UGyNxN.js} +2 -2
  229. package/dist/{myValueList-ClgUHkPF.cjs → myValueList-DnZBoJXp.cjs} +1 -1
  230. package/dist/{objectList-CasWv0FC.cjs → objectList-BcSCvy54.cjs} +1 -1
  231. package/dist/{objectList-ByeMsv8T.js → objectList-DgVJlA1o.js} +3 -3
  232. package/dist/{objectListAPP-DMO3acgZ.js → objectListAPP-CdewSo8l.js} +3 -3
  233. package/dist/{objectListAPP-Dx5caqQJ.cjs → objectListAPP-DxRImk8W.cjs} +1 -1
  234. package/dist/{percentBar-CdJqOi2x.js → percentBar-BvmYW_u6.js} +2 -2
  235. package/dist/{percentBar-wbGZHR1S.cjs → percentBar-Cq5ACj9c.cjs} +1 -1
  236. package/dist/{photo-BiK9C6_R.cjs → photo-B-kxNdb5.cjs} +1 -1
  237. package/dist/{photo-qhSg3zN6.js → photo-t11P9WKh.js} +2 -2
  238. package/dist/{pie-C5oKve2Q.cjs → pie-0s6FwVBt.cjs} +1 -1
  239. package/dist/{pie-D260otXM.js → pie-yTahcSl_.js} +2 -2
  240. package/dist/{placeholder-7rPzvsFC.cjs → placeholder-DBmyvwFn.cjs} +1 -1
  241. package/dist/{placeholder-BKDd--YC.js → placeholder-D_CaQ-hg.js} +1 -1
  242. package/dist/{pressBtn-CHnT9hZ7.js → pressBtn-CP4kJr-P.js} +3 -3
  243. package/dist/{pressBtn-IanV1FIr.cjs → pressBtn-JFezb7Yx.cjs} +1 -1
  244. package/dist/{processTable-BdRhFBQ5.js → processTable-BXswsnmt.js} +2 -2
  245. package/dist/{processTable-Vy1IyYJ6.cjs → processTable-DRdI9ExW.cjs} +1 -1
  246. package/dist/{progressBar-JGt97LIB.js → progressBar-D1Xh5APg.js} +2 -2
  247. package/dist/{progressBar-DF7KsLLl.cjs → progressBar-Sn6tAxTY.cjs} +1 -1
  248. package/dist/{progressCircle-DqSe38tf.js → progressCircle-BMpJVwIE.js} +2 -2
  249. package/dist/{progressCircle-CN73ocS0.cjs → progressCircle-DLk9v_Os.cjs} +1 -1
  250. package/dist/{qrcode-B5HPHLiJ.cjs → qrcode-BDtn3Ql7.cjs} +1 -1
  251. package/dist/{qrcode-BzgKD1bJ.js → qrcode-BqlqV7Jf.js} +2 -2
  252. package/dist/{raceBar-D2m4cDwN.cjs → raceBar-BpvWNCV7.cjs} +1 -1
  253. package/dist/{raceBar-ocjvVrDW.js → raceBar-zSL-J18j.js} +2 -2
  254. package/dist/{rad-CK47aw7W.js → rad-CZhY-L-z.js} +2 -2
  255. package/dist/{rad-BK7rira8.cjs → rad-DSfVfaMa.cjs} +1 -1
  256. package/dist/{radarMapViewer-BzO9flTu.js → radarMapViewer-B4tTLLyl.js} +2 -2
  257. package/dist/{radarMapViewer-DIStQXd6.cjs → radarMapViewer-GmzS18dJ.cjs} +1 -1
  258. package/dist/{rainfallFilterBar-Dv3ItR-7.cjs → rainfallFilterBar-DHaVjXt5.cjs} +1 -1
  259. package/dist/{rainfallFilterBar-D5pr31or.js → rainfallFilterBar-ijVmoglb.js} +2 -2
  260. package/dist/{rainfallTimeCurve-CSG1Q4c1.js → rainfallTimeCurve-B3_bl5L6.js} +3 -3
  261. package/dist/{rainfallTimeCurve-8kyuntWB.cjs → rainfallTimeCurve-Crz3Adzh.cjs} +1 -1
  262. package/dist/{rangeLin-DJhAhoc0.js → rangeLin-BOEsEaV1.js} +2 -2
  263. package/dist/{rangeLin-DlvyhF-D.cjs → rangeLin-DpEbvxsg.cjs} +1 -1
  264. package/dist/{realtimeEvolutionMap-BfOYVSQW.cjs → realtimeEvolutionMap-BwQJkus6.cjs} +1 -1
  265. package/dist/{realtimeEvolutionMap-BNHTopBp.js → realtimeEvolutionMap-C2u4a2JL.js} +2 -2
  266. package/dist/{regionBar-BLKEA5Z0.js → regionBar-BQr-kq-M.js} +2 -2
  267. package/dist/{regionBar-Djw33KyC.cjs → regionBar-P1fqv7Vb.cjs} +1 -1
  268. package/dist/{request-T8yWp5yj.js → request-Bn2gQLgM.js} +1 -1
  269. package/dist/{request-BluBK5cj.cjs → request-D9N74QdZ.cjs} +1 -1
  270. package/dist/{retainer1-DIiJodMB.cjs → retainer1-BCh8WSOq.cjs} +1 -1
  271. package/dist/{retainer1-CTiX53Tb.js → retainer1-Fnw0-Jvy.js} +3 -3
  272. package/dist/{retainer2-DwhDAkaF.cjs → retainer2-_3NOOefF.cjs} +1 -1
  273. package/dist/{retainer2-DZJwLW1P.js → retainer2-nPyFv6Hs.js} +3 -3
  274. package/dist/retainerRecordList-BaOTTQQN.cjs +1 -0
  275. package/dist/{retainerRecordList-CQRtb3HZ.js → retainerRecordList-C_UsUKsQ.js} +142 -142
  276. package/dist/{retainerRecordListAPP-Cv6ZsKox.js → retainerRecordListAPP-BgKyfAMh.js} +3 -3
  277. package/dist/{retainerRecordListAPP-DKTHCZ0W.cjs → retainerRecordListAPP-CE3l6WrB.cjs} +1 -1
  278. package/dist/{ringTopN-TvU4Dky-.cjs → ringTopN-DEv30Ms2.cjs} +1 -1
  279. package/dist/{ringTopN-8mnA4ob3.js → ringTopN-Dz0EoM-A.js} +2 -2
  280. package/dist/{riskRegionTable-De0J5B7R.cjs → riskRegionTable-BODT2UTF.cjs} +1 -1
  281. package/dist/{riskRegionTable-9C6mkoJJ.js → riskRegionTable-Dot8zD_6.js} +2 -2
  282. package/dist/{sankey-BpY9ML75.cjs → sankey-CYTyQB-L.cjs} +1 -1
  283. package/dist/{sankey-hio8XdQS.js → sankey-CbEUEE5B.js} +2 -2
  284. package/dist/{scd-BARna3lD.js → scd-Btsiastw.js} +2 -2
  285. package/dist/{scd-BdHO3SYR.cjs → scd-DwdWl6Wz.cjs} +1 -1
  286. package/dist/{sideMenu-CU5SdOaK.js → sideMenu-BxJRAAdM.js} +2 -2
  287. package/dist/{sideMenu-Cvm6Y1nv.cjs → sideMenu-dnpq3qTF.cjs} +1 -1
  288. package/dist/{slopeStability-SzTknABn.cjs → slopeStability-DX7WP5ZW.cjs} +1 -1
  289. package/dist/{slopeStability-C500RQxy.js → slopeStability-DrooNf1g.js} +2 -2
  290. package/dist/{speedCurve-ClsHxLjw.cjs → speedCurve-BT8wnfZI.cjs} +1 -1
  291. package/dist/{speedCurve-CEwrLjGA.js → speedCurve-CNUJ5ScK.js} +2 -2
  292. package/dist/{stackedBar-PpVQmu_f.cjs → stackedBar-X8Y4lVgT.cjs} +1 -1
  293. package/dist/{stackedBar-Brau0_ok.js → stackedBar-nIfO6Aa3.js} +2 -2
  294. package/dist/{stationList-C3mM3ApG.js → stationList-D7lGCblu.js} +2 -2
  295. package/dist/{stationList-Ywg4HS56.cjs → stationList-DVzvGGHI.cjs} +1 -1
  296. package/dist/{stressFilterBar-CmHLiXf2.cjs → stressFilterBar-D5xktTRI.cjs} +1 -1
  297. package/dist/{stressFilterBar-BytjEnSA.js → stressFilterBar-DqeqFHm7.js} +2 -2
  298. package/dist/{stressTimeCurve-DbYSiyp1.cjs → stressTimeCurve-Bhhb-eqB.cjs} +1 -1
  299. package/dist/{stressTimeCurve-C8kFVDYi.js → stressTimeCurve-DfjNQ0rU.js} +3 -3
  300. package/dist/{swiper-CkCqhmFM.js → swiper-DuNuvT_N.js} +2 -2
  301. package/dist/{swiper-CUWDOYi3.cjs → swiper-XCpwFkWS.cjs} +1 -1
  302. package/dist/{tablemanCreate-2k1eE7H8.cjs → tablemanCreate-Cp5DaYUd.cjs} +1 -1
  303. package/dist/{tablemanCreate-CMZgX2uJ.js → tablemanCreate-Cp9nOGg2.js} +3 -3
  304. package/dist/{tablemanDetail-B_amfNkX.cjs → tablemanDetail-3ZMWkdpz.cjs} +1 -1
  305. package/dist/{tablemanDetail-co_Q7xHR.js → tablemanDetail-DvZdgdHD.js} +4 -4
  306. package/dist/{tablemanList-NkW8OpAQ.js → tablemanList-DZdb1FUR.js} +4 -4
  307. package/dist/{tablemanList-C5CG1Z_t.cjs → tablemanList-OLxgUmAi.cjs} +1 -1
  308. package/dist/{tablemanTableList-CbK0Qu2E.cjs → tablemanTableList-BN6QjYEV.cjs} +1 -1
  309. package/dist/{tablemanTableList-QVedppzS.js → tablemanTableList-CqsnRIHS.js} +3 -3
  310. package/dist/{tablemanUpdate-Cr5w5ELd.js → tablemanUpdate-CHs5OgAG.js} +3 -3
  311. package/dist/{tablemanUpdate-eimnWXQn.cjs → tablemanUpdate-E3d7A3WM.cjs} +1 -1
  312. package/dist/{terminalConfigList-DRt8XV7h.js → terminalConfigList-BEBNi1Nl.js} +146 -146
  313. package/dist/terminalConfigList-BlgcWy40.cjs +1 -0
  314. package/dist/terminalList-Bl5BPmF9.cjs +1 -0
  315. package/dist/{terminalList-CHl3hZTh.js → terminalList-CJpH2Z-r.js} +23 -23
  316. package/dist/{terminalListAPP-BSwCwgJu.js → terminalListAPP-BpONJQOA.js} +3 -3
  317. package/dist/{terminalListAPP-BQG0F491.cjs → terminalListAPP-Dgvz8I3j.cjs} +1 -1
  318. package/dist/{textbox-DSJd60o5.js → textbox-CJnSDwg7.js} +2 -2
  319. package/dist/{textbox-DNXnOEfz.cjs → textbox-DR0bQEX7.cjs} +1 -1
  320. package/dist/{timeQueryBar-DS_5n1oF.cjs → timeQueryBar-Cmyan_30.cjs} +1 -1
  321. package/dist/{timeQueryBar-BGEPXTOP.js → timeQueryBar-FJDQv-gp.js} +1 -1
  322. package/dist/{timeSeries-BQpqhi63.cjs → timeSeries-_RLSUPmg.cjs} +1 -1
  323. package/dist/{timeSeries-zUlfvHmW.js → timeSeries-t4uZvXRF.js} +3 -3
  324. package/dist/{timeSeriesCurve-ovc_xdoj.cjs → timeSeriesCurve-BUuLFQ8A.cjs} +1 -1
  325. package/dist/{timeSeriesCurve-Dbr_3sJm.js → timeSeriesCurve-BxWiI6w-.js} +3 -3
  326. package/dist/{toggleBtn-CjdUge2U.cjs → toggleBtn-BcpJcxpU.cjs} +1 -1
  327. package/dist/{toggleBtn-I83YB-PO.js → toggleBtn-Cx44qVci.js} +2 -2
  328. package/dist/{trajectoryConfigPanel-BIA2y6qD.cjs → trajectoryConfigPanel-BTUv5OVS.cjs} +1 -1
  329. package/dist/{trajectoryConfigPanel-CvmIIt8k.js → trajectoryConfigPanel-dyo30nx9.js} +1 -1
  330. package/dist/{trajectoryScatter-C3x-y428.js → trajectoryScatter-BghFGqxH.js} +2 -2
  331. package/dist/{trajectoryScatter-D1z1IMa0.cjs → trajectoryScatter-CK4_Z1iU.cjs} +1 -1
  332. package/dist/{universalConfigPanel-D8LPOrV9.cjs → universalConfigPanel-Cvlpgn-j.cjs} +1 -1
  333. package/dist/{universalConfigPanel-BkysUy8B.js → universalConfigPanel-yJFrQDBa.js} +1 -1
  334. package/dist/{universalTable-C76uUfeF.cjs → universalTable-CRJ7Rx0P.cjs} +1 -1
  335. package/dist/{universalTable-6-S9swsP.js → universalTable-CvBC-L9Z.js} +2 -2
  336. package/dist/{useTablemanApi-104WbAHd.js → useTablemanApi-BAt370b-.js} +1 -1
  337. package/dist/{useTablemanApi-BuMq5Q_k.cjs → useTablemanApi-fqoMpRxe.cjs} +1 -1
  338. package/dist/{useTablemanFormPanel-CWKnnrOS.js → useTablemanFormPanel-BKbM39_H.js} +2 -2
  339. package/dist/{useTablemanFormPanel-D3ATdUhB.cjs → useTablemanFormPanel-Cxo0WsI1.cjs} +1 -1
  340. package/dist/{useTablemanListActions-DozXrkvP.js → useTablemanListActions-CYauYy6z.js} +3 -3
  341. package/dist/{useTablemanListActions-5QcnKKj4.cjs → useTablemanListActions-DRXW-WTa.cjs} +1 -1
  342. package/dist/{video-BsYeKGOo.cjs → video-BN19nKK_.cjs} +1 -1
  343. package/dist/{video-C_bAd-rR.js → video-C1N8Ikkh.js} +2 -2
  344. package/dist/{videoMonitor-Bn40fiFL.cjs → videoMonitor-PKypdwRl.cjs} +1 -1
  345. package/dist/{videoMonitor-CbXYP6FT.js → videoMonitor-fkEuZ25x.js} +2 -2
  346. package/dist/{vlu-BxkDbM5S.js → vlu-B8tqM9md.js} +2 -2
  347. package/dist/{vlu-Erw-xe3f.cjs → vlu-DrABl6SW.cjs} +1 -1
  348. package/dist/{warningOverview-CbtRe7Tt.cjs → warningOverview-DaTHPveq.cjs} +1 -1
  349. package/dist/{warningOverview-C2eLQeLA.js → warningOverview-_rp_SbLs.js} +3 -3
  350. package/dist/{weather-D9tQevqb.cjs → weather-B_XCWwDa.cjs} +1 -1
  351. package/dist/{weather-y0g4_vta.js → weather-qvsptrt0.js} +2 -2
  352. package/dist/{windLin-DQgRe_l6.js → windLin-BDtJUYBu.js} +2 -2
  353. package/dist/{windLin-2PZJ-EHv.cjs → windLin-P84T5W3o.cjs} +1 -1
  354. package/package.json +1 -1
  355. package/dist/controlList-C2PPceHN.cjs +0 -1
  356. package/dist/controlRecordList-DFhrQByh.cjs +0 -1
  357. package/dist/controlRecordList-DW16uBgK.js +0 -296
  358. package/dist/mappingList-D4b8jI07.cjs +0 -1
  359. package/dist/retainerRecordList-zpiedsCc.cjs +0 -1
  360. package/dist/terminalConfigList-D2_X_G-D.cjs +0 -1
  361. package/dist/terminalList-BkWNnmvR.cjs +0 -1
@@ -0,0 +1,296 @@
1
+ var J = Object.defineProperty, Q = Object.defineProperties;
2
+ var W = Object.getOwnPropertyDescriptors;
3
+ var R = Object.getOwnPropertySymbols;
4
+ var Y = Object.prototype.hasOwnProperty, X = Object.prototype.propertyIsEnumerable;
5
+ var L = (i, n, l) => n in i ? J(i, n, { enumerable: !0, configurable: !0, writable: !0, value: l }) : i[n] = l, A = (i, n) => {
6
+ for (var l in n || (n = {}))
7
+ Y.call(n, l) && L(i, l, n[l]);
8
+ if (R)
9
+ for (var l of R(n))
10
+ X.call(n, l) && L(i, l, n[l]);
11
+ return i;
12
+ }, P = (i, n) => Q(i, W(n));
13
+ var v = (i, n, l) => new Promise((h, m) => {
14
+ var C = (r) => {
15
+ try {
16
+ g(l.next(r));
17
+ } catch (d) {
18
+ m(d);
19
+ }
20
+ }, S = (r) => {
21
+ try {
22
+ g(l.throw(r));
23
+ } catch (d) {
24
+ m(d);
25
+ }
26
+ }, g = (r) => r.done ? h(r.value) : Promise.resolve(r.value).then(C, S);
27
+ g((l = l.apply(i, n)).next());
28
+ });
29
+ import { ElSelect as Z, ElOption as ee, ElInput as te, ElIcon as oe, ElButton as ne, ElLoadingDirective as ae } from "element-plus/es";
30
+ import "element-plus/es/components/base/style/css";
31
+ import "element-plus/es/components/loading/style/css";
32
+ import { A as le } from "./AgGridTable-BjGMC3qC.js";
33
+ import "element-plus/es/components/button/style/css";
34
+ import "element-plus/es/components/input/style/css";
35
+ import "element-plus/es/components/icon/style/css";
36
+ import "element-plus/es/components/select/style/css";
37
+ import "element-plus/es/components/option/style/css";
38
+ import { defineComponent as ie, computed as B, reactive as re, ref as y, onMounted as se, withDirectives as ce, openBlock as N, createElementBlock as F, normalizeStyle as k, unref as _, normalizeClass as de, toDisplayString as me, createCommentVNode as $, createElementVNode as I, createVNode as s, withCtx as p, withKeys as ue, createTextVNode as V, createBlock as pe, renderSlot as ge } from "vue";
39
+ import { u as fe } from "./useMixiotPanelSurface-DRl3cZvc.js";
40
+ import { B as _e } from "./BaseComponent-B38Blgw3.js";
41
+ import { a as z, _ as he } from "./index-BbXEpgom.js";
42
+ import { g as ve } from "./titleStyle-BT5GlpAb.js";
43
+ import { ElMessage as b, ElMessageBox as ye } from "element-plus";
44
+ import { Search as be } from "@element-plus/icons-vue";
45
+ import { a as Ce } from "./appendCommonDesignerWhereAnd-DwefWNOa.js";
46
+ import { b as Se, s as xe } from "./syncMixiotListConfig-BJm-8v-B.js";
47
+ import { A as Te, D as we } from "./ele-lst-icon-CKpeRKmk.js";
48
+ const Oe = { class: "mix-body" }, Ee = { class: "top-bar" }, De = {
49
+ DEFAULT_ICON: we,
50
+ ACTIVE_ICON: Te,
51
+ NAME_CN: "控制记录",
52
+ NAME_EN: "ControlRecordList",
53
+ ORDER: 4,
54
+ PLATFORM: ["pc", "screen"]
55
+ }, Ae = {
56
+ panelBgTone: {
57
+ value: "light",
58
+ type: "select",
59
+ label: "component.options.mixiotPanelBgTone",
60
+ options: [
61
+ { label: "component.options.mixiotPanelBgTone_light", value: "light" },
62
+ { label: "component.options.mixiotPanelBgTone_dark", value: "dark" }
63
+ ]
64
+ },
65
+ titleColor: "#111",
66
+ titleSize: 14,
67
+ isHideTitle: !1,
68
+ columns: []
69
+ }, j = [{ export: !0 }], Be = [{ key: "export", label: "导出", type: "checkbox" }], Ne = [], Ve = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], Me = {
70
+ isAddCondition: !1,
71
+ conditions: [],
72
+ conditionFilterFields: [
73
+ { value: "object_id", label: "setting.gridFields.objectId" },
74
+ { value: "created_by", label: "setting.gridFields.createdBy" },
75
+ { value: "command", label: "setting.gridFields.commandCode" },
76
+ { value: "command_name", label: "setting.gridFields.commandName" }
77
+ ]
78
+ }, Re = { DEFAULT: De, OPTIONS: Ae, DATA: j, COMMANDS: Be, OPERATIONS: Ne, SOURCE: Ve, COMMON: Me }, Le = /* @__PURE__ */ ie(P(A({}, Re), {
79
+ __name: "controlRecordList",
80
+ props: {
81
+ conf: { default: () => ({ data: [] }) },
82
+ uid: { default: "" },
83
+ mode: {},
84
+ theme: {},
85
+ code: { default: "" }
86
+ },
87
+ setup(i) {
88
+ const n = i;
89
+ class l extends _e {
90
+ getDataBool(e, o) {
91
+ var c, u;
92
+ const a = (u = (c = this.props.conf) == null ? void 0 : c.data) == null ? void 0 : u[0];
93
+ return a && Object.prototype.hasOwnProperty.call(a, e) && a[e] !== void 0 ? !!a[e] : this.getOptionValue(e, o);
94
+ }
95
+ extractStyles() {
96
+ return {
97
+ panelBgTone: this.getOptionValue("panelBgTone", "light"),
98
+ titleColor: this.getOptionValue("titleColor", "#111"),
99
+ titleSize: this.getOptionValue("titleSize", 14),
100
+ isHideTitle: this.getOptionValue("isHideTitle", !1),
101
+ export: this.getDataBool("export", !0)
102
+ };
103
+ }
104
+ init() {
105
+ return v(this, null, function* () {
106
+ this.applyTheme(), xe(this.props.conf, { export: !0 }, j), this.Style.value = this.extractStyles();
107
+ });
108
+ }
109
+ }
110
+ const h = new l(n, "controlRecordList");
111
+ h.setupLifecycle();
112
+ const m = h.getStyle(), { mixiotPanelClass: C, mixiotPanelRootStyle: S } = fe(m), g = B(() => ve(n.conf.options));
113
+ B(() => Se(n.conf));
114
+ const r = re({ current: 1, pageSize: 10, total: 0 }), d = y(""), x = y("object_id"), f = y([]), T = y(!1);
115
+ function H() {
116
+ const t = {
117
+ page_index: r.current,
118
+ page_size: r.pageSize
119
+ }, e = [], o = d.value.trim();
120
+ return o && e.push([x.value, "like", `%${o}%`]), Ce(n.conf.common, e), e.length && (t.where_and = JSON.stringify(e)), t;
121
+ }
122
+ function w() {
123
+ return v(this, null, function* () {
124
+ var t;
125
+ T.value = !0;
126
+ try {
127
+ const e = yield z.http(
128
+ "get_control_record_list",
129
+ H(),
130
+ !0
131
+ ), o = (t = e == null ? void 0 : e.result) != null ? t : e, a = Array.isArray(o == null ? void 0 : o.data) ? o.data : [];
132
+ f.value = a.map((u) => A({}, u));
133
+ const c = o == null ? void 0 : o.total_records;
134
+ r.total = typeof c == "number" ? c : a.length, e && e.code !== void 0 && e.code !== 200 && console.warn("[controlRecordList] 列表接口非成功", e.msg || e.info, e);
135
+ } catch (e) {
136
+ console.error(e), f.value = [], r.total = 0;
137
+ } finally {
138
+ T.value = !1;
139
+ }
140
+ });
141
+ }
142
+ B(() => f.value);
143
+ function M() {
144
+ r.current = 1, w();
145
+ }
146
+ function U() {
147
+ d.value = "", r.current = 1, w();
148
+ }
149
+ function O(t) {
150
+ const e = (o) => String(o).padStart(2, "0");
151
+ return `${t.getFullYear()}-${e(t.getMonth() + 1)}-${e(t.getDate())} ${e(t.getHours())}:${e(t.getMinutes())}:${e(t.getSeconds())}`;
152
+ }
153
+ function G() {
154
+ return v(this, null, function* () {
155
+ const t = [...new Set(f.value.map((a) => {
156
+ var c;
157
+ return String((c = a.object_id) != null ? c : "").trim();
158
+ }).filter(Boolean))];
159
+ if (!t.length) {
160
+ b.warning("当前列表无对象编号,请加载记录后再导出");
161
+ return;
162
+ }
163
+ const e = /* @__PURE__ */ new Date(), o = new Date(e.getTime() - 168 * 3600 * 1e3);
164
+ try {
165
+ yield ye.confirm(
166
+ `将按最近 7 天、当前已加载列表中的 ${t.length} 个对象编号发起导出任务,是否继续?`,
167
+ "导出控制记录",
168
+ { type: "info" }
169
+ );
170
+ } catch (a) {
171
+ return;
172
+ }
173
+ try {
174
+ const a = yield z.http(
175
+ "export_control_record",
176
+ {
177
+ file_name: `control_record_${O(e).replace(/[: ]/g, "_")}`,
178
+ start_time: O(o),
179
+ end_time: O(e),
180
+ object_ids: t
181
+ },
182
+ !0
183
+ );
184
+ if (a.code !== void 0 && a.code !== 200) {
185
+ b.warning(a.msg || a.info || "导出请求未成功");
186
+ return;
187
+ }
188
+ b.success("导出任务已提交");
189
+ } catch (a) {
190
+ b.error("导出请求失败");
191
+ }
192
+ });
193
+ }
194
+ return se(() => {
195
+ w();
196
+ }), (t, e) => {
197
+ const o = ee, a = Z, c = oe, u = te, E = ne, K = le, q = ae;
198
+ return ce((N(), F("div", {
199
+ class: de(["control-record-list mix-component", _(C)]),
200
+ style: k(_(S))
201
+ }, [
202
+ _(m).isHideTitle ? $("", !0) : (N(), F("div", {
203
+ key: 0,
204
+ class: "mix-title",
205
+ style: k(g.value)
206
+ }, me(i.conf.caption || i.conf.name), 5)),
207
+ I("div", Oe, [
208
+ I("div", Ee, [
209
+ s(a, {
210
+ modelValue: x.value,
211
+ "onUpdate:modelValue": e[0] || (e[0] = (D) => x.value = D),
212
+ class: "toolbar-field-select"
213
+ }, {
214
+ default: p(() => [
215
+ s(o, {
216
+ label: "对象编号",
217
+ value: "object_id"
218
+ }),
219
+ s(o, {
220
+ label: "用户名",
221
+ value: "created_by"
222
+ }),
223
+ s(o, {
224
+ label: "控制码指令",
225
+ value: "command"
226
+ }),
227
+ s(o, {
228
+ label: "指令名称",
229
+ value: "command_name"
230
+ })
231
+ ]),
232
+ _: 1
233
+ }, 8, ["modelValue"]),
234
+ s(u, {
235
+ modelValue: d.value,
236
+ "onUpdate:modelValue": e[1] || (e[1] = (D) => d.value = D),
237
+ placeholder: "搜索控制记录",
238
+ class: "toolbar-search",
239
+ onKeyup: ue(M, ["enter"])
240
+ }, {
241
+ prefix: p(() => [
242
+ s(c, { class: "toolbar-search-icon" }, {
243
+ default: p(() => [
244
+ s(_(be))
245
+ ]),
246
+ _: 1
247
+ })
248
+ ]),
249
+ _: 1
250
+ }, 8, ["modelValue"]),
251
+ s(E, {
252
+ type: "primary",
253
+ onClick: M
254
+ }, {
255
+ default: p(() => [...e[2] || (e[2] = [
256
+ V("搜索", -1)
257
+ ])]),
258
+ _: 1
259
+ }),
260
+ s(E, { onClick: U }, {
261
+ default: p(() => [...e[3] || (e[3] = [
262
+ V("重置", -1)
263
+ ])]),
264
+ _: 1
265
+ }),
266
+ _(m).export ? (N(), pe(E, {
267
+ key: 0,
268
+ type: "success",
269
+ onClick: G
270
+ }, {
271
+ default: p(() => [...e[4] || (e[4] = [
272
+ V("导出", -1)
273
+ ])]),
274
+ _: 1
275
+ })) : $("", !0)
276
+ ]),
277
+ s(K, {
278
+ "column-defs": t.agColumnDefs,
279
+ "row-data": f.value,
280
+ "show-pagination": !0,
281
+ pager: r,
282
+ "auto-fill-columns": !0,
283
+ components: t.gridComponents,
284
+ onPageChange: t.onPageChange
285
+ }, null, 8, ["column-defs", "row-data", "pager", "components", "onPageChange"])
286
+ ]),
287
+ ge(t.$slots, "default", {}, void 0, !0)
288
+ ], 6)), [
289
+ [q, T.value]
290
+ ]);
291
+ };
292
+ }
293
+ })), ot = /* @__PURE__ */ he(Le, [["__scopeId", "data-v-3028da90"]]);
294
+ export {
295
+ ot as default
296
+ };
@@ -0,0 +1 @@
1
+ "use strict";var $=Object.defineProperty,z=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var M=(r,l,i)=>l in r?$(r,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[l]=i,E=(r,l)=>{for(var i in l||(l={}))U.call(l,i)&&M(r,i,l[i]);if(B)for(var i of B(l))H.call(l,i)&&M(r,i,l[i]);return r},q=(r,l)=>z(r,j(l));var y=(r,l,i)=>new Promise((h,u)=>{var C=s=>{try{g(i.next(s))}catch(d){u(d)}},v=s=>{try{g(i.throw(s))}catch(d){u(d)}},g=s=>s.done?h(s.value):Promise.resolve(s.value).then(C,v);g((i=i.apply(r,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");const G=require("./AgGridTable-Bi7O66-r.cjs");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),K=require("./useMixiotPanelSurface-CAZgexY5.cjs"),W=require("./BaseComponent-9njJjeix.cjs"),w=require("./index-Bo49zvKb.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),_=require("element-plus"),Q=require("@element-plus/icons-vue"),Y=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),A=require("./syncMixiotListConfig-Elkp8zAs.cjs"),D=require("./ele-lst-icon-CrxnHZ-A.cjs"),X={class:"mix-body"},Z={class:"top-bar"},ee={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"控制记录",NAME_EN:"ControlRecordList",ORDER:4,PLATFORM:["pc","screen"]},te={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},titleColor:"#111",titleSize:14,isHideTitle:!1,columns:[]},P=[{export:!0}],oe=[{key:"export",label:"导出",type:"checkbox"}],ne=[],le=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ae={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"object_id",label:"setting.gridFields.objectId"},{value:"created_by",label:"setting.gridFields.createdBy"},{value:"command",label:"setting.gridFields.commandCode"},{value:"command_name",label:"setting.gridFields.commandName"}]},ie={DEFAULT:ee,OPTIONS:te,DATA:P,COMMANDS:oe,OPERATIONS:ne,SOURCE:le,COMMON:ae},re=e.defineComponent(q(E({},ie),{__name:"controlRecordList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(r){const l=r;class i extends W.BaseComponent{getDataBool(t,n){var c,p;const a=(p=(c=this.props.conf)==null?void 0:c.data)==null?void 0:p[0];return a&&Object.prototype.hasOwnProperty.call(a,t)&&a[t]!==void 0?!!a[t]:this.getOptionValue(t,n)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),isHideTitle:this.getOptionValue("isHideTitle",!1),export:this.getDataBool("export",!0)}}init(){return y(this,null,function*(){this.applyTheme(),A.setupMixiotListConf(this.props.conf,{export:!0},P),this.Style.value=this.extractStyles()})}}const h=new i(l,"controlRecordList");h.setupLifecycle();const u=h.getStyle(),{mixiotPanelClass:C,mixiotPanelRootStyle:v}=K.useMixiotPanelSurface(u),g=e.computed(()=>J.generateTitleStyle(l.conf.options));e.computed(()=>A.buildMixiotColumnsConfig(l.conf));const s=e.reactive({current:1,pageSize:10,total:0}),d=e.ref(""),b=e.ref("object_id"),f=e.ref([]),x=e.ref(!1);function L(){const o={page_index:s.current,page_size:s.pageSize},t=[],n=d.value.trim();return n&&t.push([b.value,"like",`%${n}%`]),Y.appendCommonDesignerWhereAnd(l.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function S(){return y(this,null,function*(){var o;x.value=!0;try{const t=yield w.api.http("get_control_record_list",L(),!0),n=(o=t==null?void 0:t.result)!=null?o:t,a=Array.isArray(n==null?void 0:n.data)?n.data:[];f.value=a.map(p=>E({},p));const c=n==null?void 0:n.total_records;s.total=typeof c=="number"?c:a.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[controlRecordList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),f.value=[],s.total=0}finally{x.value=!1}})}e.computed(()=>f.value);function O(){s.current=1,S()}function R(){d.value="",s.current=1,S()}function N(o){const t=n=>String(n).padStart(2,"0");return`${o.getFullYear()}-${t(o.getMonth()+1)}-${t(o.getDate())} ${t(o.getHours())}:${t(o.getMinutes())}:${t(o.getSeconds())}`}function I(){return y(this,null,function*(){const o=[...new Set(f.value.map(a=>{var c;return String((c=a.object_id)!=null?c:"").trim()}).filter(Boolean))];if(!o.length){_.ElMessage.warning("当前列表无对象编号,请加载记录后再导出");return}const t=new Date,n=new Date(t.getTime()-168*3600*1e3);try{yield _.ElMessageBox.confirm(`将按最近 7 天、当前已加载列表中的 ${o.length} 个对象编号发起导出任务,是否继续?`,"导出控制记录",{type:"info"})}catch(a){return}try{const a=yield w.api.http("export_control_record",{file_name:`control_record_${N(t).replace(/[: ]/g,"_")}`,start_time:N(n),end_time:N(t),object_ids:o},!0);if(a.code!==void 0&&a.code!==200){_.ElMessage.warning(a.msg||a.info||"导出请求未成功");return}_.ElMessage.success("导出任务已提交")}catch(a){_.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{S()}),(o,t)=>{const n=m.ElOption,a=m.ElSelect,c=m.ElIcon,p=m.ElInput,V=m.ElButton,k=G.AgGridTable,F=m.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-record-list mix-component",e.unref(C)]),style:e.normalizeStyle(e.unref(v))},[e.unref(u).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(g.value)},e.toDisplayString(r.conf.caption||r.conf.name),5)),e.createElementVNode("div",X,[e.createElementVNode("div",Z,[e.createVNode(a,{modelValue:b.value,"onUpdate:modelValue":t[0]||(t[0]=T=>b.value=T),class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(n,{label:"对象编号",value:"object_id"}),e.createVNode(n,{label:"用户名",value:"created_by"}),e.createVNode(n,{label:"控制码指令",value:"command"}),e.createVNode(n,{label:"指令名称",value:"command_name"})]),_:1},8,["modelValue"]),e.createVNode(p,{modelValue:d.value,"onUpdate:modelValue":t[1]||(t[1]=T=>d.value=T),placeholder:"搜索控制记录",class:"toolbar-search",onKeyup:e.withKeys(O,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(c,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Q.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(V,{type:"primary",onClick:O},{default:e.withCtx(()=>[...t[2]||(t[2]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(V,{onClick:R},{default:e.withCtx(()=>[...t[3]||(t[3]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(u).export?(e.openBlock(),e.createBlock(V,{key:0,type:"success",onClick:I},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(k,{"column-defs":o.agColumnDefs,"row-data":f.value,"show-pagination":!0,pager:s,"auto-fill-columns":!0,components:o.gridComponents,onPageChange:o.onPageChange},null,8,["column-defs","row-data","pager","components","onPageChange"])]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[F,x.value]])}}})),se=w._export_sfc(re,[["__scopeId","data-v-3028da90"]]);exports.default=se;
@@ -40,8 +40,8 @@ import "element-plus/es/components/button/style/css";
40
40
  import "element-plus/es/components/icon/style/css";
41
41
  import { defineComponent as qe, computed as C, ref as Q, reactive as Ge, onMounted as Qe, openBlock as m, createElementBlock as _, normalizeStyle as Y, unref as b, normalizeClass as Z, createElementVNode as S, toDisplayString as k, createVNode as s, withCtx as p, createTextVNode as O, createBlock as re, createCommentVNode as N, withDirectives as Ye, withKeys as Ze, Fragment as ce, renderList as de, withModifiers as Xe, renderSlot as et } from "vue";
42
42
  import { u as tt } from "./useMixiotPanelSurface-DRl3cZvc.js";
43
- import { B as ot } from "./BaseComponent-Czscoh5u.js";
44
- import { a as ue, _ as at } from "./index-DU4OIZEL.js";
43
+ import { B as ot } from "./BaseComponent-B38Blgw3.js";
44
+ import { a as ue, _ as at } from "./index-BbXEpgom.js";
45
45
  import { g as lt } from "./titleStyle-BT5GlpAb.js";
46
46
  import { ElMessage as z, ElMessageBox as nt } from "element-plus";
47
47
  import { Plus as it, Search as st, ArrowDown as rt } from "@element-plus/icons-vue";
@@ -1 +1 @@
1
- "use strict";var ke=Object.defineProperty,Ce=Object.defineProperties;var xe=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var Se=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;var Y=(u,i,s)=>i in u?ke(u,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[i]=s,D=(u,i)=>{for(var s in i||(i={}))Se.call(i,s)&&Y(u,s,i[s]);if(Q)for(var s of Q(i))Ee.call(i,s)&&Y(u,s,i[s]);return u},Z=(u,i)=>Ce(u,xe(i));var h=(u,i,s)=>new Promise((S,v)=>{var O=m=>{try{y(s.next(m))}catch(g){v(g)}},T=m=>{try{y(s.throw(m))}catch(g){v(g)}},y=m=>m.done?S(m.value):Promise.resolve(m.value).then(O,T);y((s=s.apply(u,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=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/tag/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/dropdown/style/css");require("element-plus/es/components/dropdown-menu/style/css");require("element-plus/es/components/dropdown-item/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),we=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Ve=require("./BaseComponent-DJDC3N1j.cjs"),$=require("./index-BwtkVH_e.cjs"),Be=require("./titleStyle-NSnz6cUg.cjs"),x=require("element-plus"),F=require("@element-plus/icons-vue"),Ne=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),Le=require("./useMixiotAppScrollLoad-BfiNo4UY.cjs"),X=require("./ele-lst-icon-CrxnHZ-A.cjs"),De={key:0,class:"app-title-row"},Oe={class:"mix-app-body"},Te={class:"app-toolbar-row"},Pe={key:0,class:"app-card-top"},Ae={class:"app-card-name"},Me={class:"app-field-label"},Re={class:"app-field-value"},je=["onClick"],qe={key:0,class:"app-scroll-foot"},ze={key:1,class:"app-scroll-foot"},Ie={key:2,class:"app-scroll-foot"},Fe={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"控制记录",NAME_EN:"ControlRecordListAPP",ORDER:4,PLATFORM:["mobile"]},$e={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:"command",label:"控制码指令",width:140,visible:!0},{key:"created_by",label:"用户名",width:120,visible:!0},{key:"created",label:"控制时间",width:180,visible:!0},{key:"object_id",label:"对象编号",width:140,visible:!0},{key:"command_name",label:"指令名称",width:140,visible:!0},{key:"value",label:"控制值",width:120,visible:!0},{key:"status",label:"下发状态",width:100,visible:!0}]},ee=[{name:"控制记录",fv:"",object_id:"",unit:"",default:"",isText:!1,showExportBtn:!0,object_id_label:"对象编号",object_id_visible:!0,created_by:"用户名",created_by_visible:!0,command:"控制码指令",command_visible:!0,command_name:"指令名称",command_name_visible:!0,value:"控制值",value_visible:!0,status:"下发状态",status_visible:!0,created:"控制时间",created_visible:!0,appCardDefaultLines:3}],Ke=[{key:"appCardDefaultLines",label:"APP卡片默认展示行数(默认3行:控制码指令、用户名、控制时间)",type:"number"},{key:"showExportBtn",label:"导出按钮",type:"checkbox",group:"命令组"},{key:"name",label:"参数名称"},{key:"command",label:"控制码指令",checkable:!0,checkboxKey:"command_visible"},{key:"created_by",label:"用户名",checkable:!0,checkboxKey:"created_by_visible"},{key:"created",label:"控制时间",checkable:!0,checkboxKey:"created_visible"},{key:"object_id_label",label:"对象编号",checkable:!0,checkboxKey:"object_id_visible"},{key:"command_name",label:"指令名称",checkable:!0,checkboxKey:"command_name_visible"},{key:"value",label:"控制值",checkable:!0,checkboxKey:"value_visible"},{key:"status",label:"下发状态",checkable:!0,checkboxKey:"status_visible"}],Ue=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],He={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"object_id",label:"setting.gridFields.objectId"},{value:"created_by",label:"setting.gridFields.createdBy"},{value:"command",label:"setting.gridFields.commandCode"},{value:"command_name",label:"setting.gridFields.commandName"}]},We={DEFAULT:Fe,OPTIONS:$e,DATA:ee,PARAMS:Ke,SOURCE:Ue,COMMON:He},Je=e.defineComponent(Z(D({},We),{__name:"controlRecordListAPP",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(u){const i=u;class s extends Ve.BaseComponent{getDataBool(t,n){var a,c;const l=(c=(a=this.props.conf)==null?void 0:a.data)==null?void 0:c[0];return l&&Object.prototype.hasOwnProperty.call(l,t)&&l[t]!==void 0?!!l[t]:this.getOptionValue(t,n)}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),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(ee));else{const n=this.props.conf.data[0];n.showExportBtn===void 0&&(n.showExportBtn=!0);const l={object_id_visible:!0,created_by_visible:!0,command_visible:!0,command_name_visible:!0,value_visible:!0,status_visible:!0,created_visible:!0};for(const[a,c]of Object.entries(l))n[a]===void 0&&(n[a]=c);(n.appCardDefaultLines===void 0||n.appCardDefaultLines===null||n.appCardDefaultLines==="")&&(n.appCardDefaultLines=3)}}}const S=new s(i,"controlRecordListAPP");S.setupLifecycle();const v=S.getStyle(),{mixiotPanelClass:O,mixiotPanelRootStyle:T}=we.useMixiotPanelSurface(v),y=e.computed(()=>Be.generateTitleStyle(i.conf.options)),m=e.computed(()=>{var n,l,a,c;const o=((l=(n=i.conf)==null?void 0:n.options)==null?void 0:l.columns)||[],t=((c=(a=i.conf)==null?void 0:a.data)==null?void 0:c[0])||{};return(Array.isArray(o)?o:[]).map(r=>{var B;let p=r.key;r.key==="object_id"&&(p="object_id_label");const b=(B=t[p])!=null?B:t[r.key],I=r.key==="object_id"?"object_id_visible":`${r.key}_visible`,C=t[I];return{prop:r.key,label:b!==void 0&&b!==""?String(b):r.label,width:r.width,minWidth:r.minWidth,visible:C!==void 0?!!C:r.visible!==!1}})}),g=10,{listLoading:P,listLoadingMore:te,hasMore:A,totalRecords:K,pageIndex:oe,resetListPagination:ne,pageRequestParams:le,updateAfterPage:ae,onListScroll:ie,runLoadMore:re}=Le.useMixiotAppScrollLoad(g),E=e.ref(""),w=e.ref("object_id"),f=e.ref([]);function se(){const o=D({},le()),t=[],n=E.value.trim();return n&&t.push([w.value,"like",`%${n}%`]),Ne.appendCommonDesignerWhereAnd(i.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function V(o){const t=o.error;return t===""||t===null||t===void 0}function U(o){return h(this,null,function*(){var p;const t=yield $.api.http("get_control_record_list",se(),!0),n=(p=t==null?void 0:t.result)!=null?p:t,l=Array.isArray(n==null?void 0:n.data)?n.data:[],a=l.map(b=>D({},b));o?f.value=[...f.value,...a]:f.value=a;const c=n==null?void 0:n.total_records,r=typeof c=="number"?c:void 0;ae(l.length,r,f.value.length),t&&t.code!==void 0&&t.code!==200&&console.warn("[controlRecordList] 列表接口非成功",t.msg||t.info,t)})}function M(){return h(this,null,function*(){ne(),oe.value=1,P.value=!0;try{yield U(!1)}catch(o){console.error(o),f.value=[],K.value=0,A.value=!1}finally{P.value=!1}})}function ce(){return h(this,null,function*(){yield re(()=>h(null,null,function*(){try{yield U(!0)}catch(o){throw console.error(o),o}}))})}function de(o){ie(o,ce)}const ue=e.computed(()=>f.value);function pe(o,t){const n=o[t];return n==null?"":String(n)}const me=e.computed(()=>{var o,t;return((t=(o=i.conf)==null?void 0:o.data)==null?void 0:t[0])||{}}),H=e.computed(()=>{const o=me.value,t=Number(o.appCardDefaultLines);return Number.isFinite(t)&&t>=1?Math.min(Math.floor(t),30):3}),k=e.reactive({}),R=["command","created_by","created","object_id","command_name","value"],fe=e.computed(()=>{var o;return{backgroundColor:v.value.bgColor,borderRadius:`${(o=v.value.radiusSize)!=null?o:8}px`}});function j(o,t){var n,l;return`${t}-${String((n=o.object_id)!=null?n:"")}-${String((l=o.created)!=null?l:"")}`}function W(o,t){return!!k[j(o,t)]}function _e(o,t){const n=j(o,t);k[n]=!k[n]}function q(o){var n;return String((n=o.command_name)!=null?n:"").trim()}function J(o){const t=[],n=[];for(const l of R)n.includes(l)||n.push(l);for(const l of m.value)!l.visible||l.prop==="status"||n.includes(l.prop)||n.push(l.prop);for(const l of n){const a=m.value.find(c=>c.prop===l&&c.visible);!a||l==="status"||t.push({prop:l,label:a.label,text:pe(o,l)})}return t}function be(o,t){const n=J(o);if(W(o,t))return n;const l=H.value,a=[];for(const r of R){const p=n.find(b=>b.prop===r);p&&a.push(p)}if(a.length>=l)return a.slice(0,l);const c=n.filter(r=>!R.includes(r.prop));return[...a,...c].slice(0,l)}function ve(o,t){return J(o).length>H.value}function G(){M()}function he(){E.value="",w.value="object_id";for(const o of Object.keys(k))delete k[o];M()}function ye(o){o==="reset"?he():o==="export"&&ge()}function z(o){const t=n=>String(n).padStart(2,"0");return`${o.getFullYear()}-${t(o.getMonth()+1)}-${t(o.getDate())} ${t(o.getHours())}:${t(o.getMinutes())}:${t(o.getSeconds())}`}function ge(){return h(this,null,function*(){const o=[...new Set(f.value.map(l=>{var a;return String((a=l.object_id)!=null?a:"").trim()}).filter(Boolean))];if(!o.length){x.ElMessage.warning("当前列表无对象编号,请加载记录后再导出");return}const t=new Date,n=new Date(t.getTime()-168*3600*1e3);try{yield x.ElMessageBox.confirm(`将按最近 7 天、当前已加载列表中的 ${o.length} 个对象编号发起导出任务,是否继续?`,"导出控制记录",{type:"info"})}catch(l){return}try{const l=yield $.api.http("export_control_record",{file_name:`control_record_${z(t).replace(/[: ]/g,"_")}`,start_time:z(n),end_time:z(t),object_ids:o},!0);if(l.code!==void 0&&l.code!==200){x.ElMessage.warning(l.msg||l.info||"导出请求未成功");return}x.ElMessage.success("导出任务已提交")}catch(l){x.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{M()}),(o,t)=>{const n=_.ElIcon,l=_.ElButton,a=_.ElDropdownItem,c=_.ElDropdownMenu,r=_.ElDropdown,p=_.ElOption,b=_.ElSelect,I=_.ElInput,C=_.ElTag,B=_.ElLoadingDirective;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-record-list-app mixiot-list-app mix-component",e.unref(O)]),style:e.normalizeStyle(e.unref(T))},[e.unref(v).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",De,[e.createElementVNode("div",{class:"app-title-text",style:e.normalizeStyle(y.value)},e.toDisplayString(u.conf.caption||u.conf.name),5),e.createVNode(r,{trigger:"click",onCommand:ye},{dropdown:e.withCtx(()=>[e.createVNode(c,null,{default:e.withCtx(()=>[e.createVNode(a,{command:"reset"},{default:e.withCtx(()=>[...t[2]||(t[2]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(v).showExportBtn?(e.openBlock(),e.createBlock(a,{key:0,command:"export"},{default:e.withCtx(()=>[...t[3]||(t[3]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),_:1})]),default:e.withCtx(()=>[e.createVNode(l,{size:"small",circle:""},{default:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.Plus))]),_:1})]),_:1})]),_:1})])),e.withDirectives((e.openBlock(),e.createElementBlock("div",Oe,[e.createElementVNode("div",Te,[e.createVNode(b,{modelValue:w.value,"onUpdate:modelValue":t[0]||(t[0]=d=>w.value=d),class:"app-field-select"},{default:e.withCtx(()=>[e.createVNode(p,{label:"对象编号",value:"object_id"}),e.createVNode(p,{label:"用户名",value:"created_by"}),e.createVNode(p,{label:"控制码指令",value:"command"}),e.createVNode(p,{label:"指令名称",value:"command_name"})]),_:1},8,["modelValue"]),e.createVNode(I,{modelValue:E.value,"onUpdate:modelValue":t[1]||(t[1]=d=>E.value=d),placeholder:"输入关键词搜索",clearable:"",class:"app-search-input",onKeyup:e.withKeys(G,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.Search))]),_:1})]),append:e.withCtx(()=>[e.createVNode(l,{type:"primary",class:"app-toolbar-search-btn",onClick:G},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("搜索",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",{class:"app-card-scroll",onScroll:de},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ue.value,(d,N)=>(e.openBlock(),e.createElementBlock("div",{key:j(d,N),class:"app-object-card",style:e.normalizeStyle(fe.value)},[q(d)?(e.openBlock(),e.createElementBlock("div",Pe,[e.createElementVNode("div",Ae,e.toDisplayString(q(d)),1),e.createVNode(C,{type:V(d)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V(d)?"成功":"失败"),1)]),_:2},1032,["type"])])):(e.openBlock(),e.createBlock(C,{key:1,class:"app-card-status-corner",type:V(d)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V(d)?"成功":"失败"),1)]),_:2},1032,["type"])),e.createElementVNode("div",{class:e.normalizeClass(["app-card-fields",{"has-corner-status":!q(d)}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(be(d,N),L=>(e.openBlock(),e.createElementBlock("div",{key:L.prop,class:"app-field-line"},[e.createElementVNode("span",Me,e.toDisplayString(L.label),1),e.createElementVNode("span",Re,e.toDisplayString(L.text),1)]))),128))],2),ve(d)?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(["app-card-expand-bottom",{open:W(d,N)}]),onClick:e.withModifiers(L=>_e(d,N),["stop"])},[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.ArrowDown))]),_:1})],10,je)):e.createCommentVNode("",!0)],4))),128)),e.unref(te)?(e.openBlock(),e.createElementBlock("div",qe,"加载中…")):f.value.length&&!e.unref(A)?(e.openBlock(),e.createElementBlock("div",ze," 已加载全部 "+e.toDisplayString(e.unref(K))+" 条 ",1)):f.value.length&&e.unref(A)?(e.openBlock(),e.createElementBlock("div",Ie," 已加载 "+e.toDisplayString(f.value.length)+" 条,上拉加载更多 ",1)):e.createCommentVNode("",!0)],32)])),[[B,e.unref(P)]]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)}}})),Ge=$._export_sfc(Je,[["__scopeId","data-v-2d8d3031"]]);exports.default=Ge;
1
+ "use strict";var ke=Object.defineProperty,Ce=Object.defineProperties;var xe=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var Se=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;var Y=(u,i,s)=>i in u?ke(u,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[i]=s,D=(u,i)=>{for(var s in i||(i={}))Se.call(i,s)&&Y(u,s,i[s]);if(Q)for(var s of Q(i))Ee.call(i,s)&&Y(u,s,i[s]);return u},Z=(u,i)=>Ce(u,xe(i));var h=(u,i,s)=>new Promise((S,v)=>{var O=m=>{try{y(s.next(m))}catch(g){v(g)}},T=m=>{try{y(s.throw(m))}catch(g){v(g)}},y=m=>m.done?S(m.value):Promise.resolve(m.value).then(O,T);y((s=s.apply(u,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=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/tag/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/dropdown/style/css");require("element-plus/es/components/dropdown-menu/style/css");require("element-plus/es/components/dropdown-item/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),we=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Ve=require("./BaseComponent-9njJjeix.cjs"),$=require("./index-Bo49zvKb.cjs"),Be=require("./titleStyle-NSnz6cUg.cjs"),x=require("element-plus"),F=require("@element-plus/icons-vue"),Ne=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),Le=require("./useMixiotAppScrollLoad-BfiNo4UY.cjs"),X=require("./ele-lst-icon-CrxnHZ-A.cjs"),De={key:0,class:"app-title-row"},Oe={class:"mix-app-body"},Te={class:"app-toolbar-row"},Pe={key:0,class:"app-card-top"},Ae={class:"app-card-name"},Me={class:"app-field-label"},Re={class:"app-field-value"},je=["onClick"],qe={key:0,class:"app-scroll-foot"},ze={key:1,class:"app-scroll-foot"},Ie={key:2,class:"app-scroll-foot"},Fe={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"控制记录",NAME_EN:"ControlRecordListAPP",ORDER:4,PLATFORM:["mobile"]},$e={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:"command",label:"控制码指令",width:140,visible:!0},{key:"created_by",label:"用户名",width:120,visible:!0},{key:"created",label:"控制时间",width:180,visible:!0},{key:"object_id",label:"对象编号",width:140,visible:!0},{key:"command_name",label:"指令名称",width:140,visible:!0},{key:"value",label:"控制值",width:120,visible:!0},{key:"status",label:"下发状态",width:100,visible:!0}]},ee=[{name:"控制记录",fv:"",object_id:"",unit:"",default:"",isText:!1,showExportBtn:!0,object_id_label:"对象编号",object_id_visible:!0,created_by:"用户名",created_by_visible:!0,command:"控制码指令",command_visible:!0,command_name:"指令名称",command_name_visible:!0,value:"控制值",value_visible:!0,status:"下发状态",status_visible:!0,created:"控制时间",created_visible:!0,appCardDefaultLines:3}],Ke=[{key:"appCardDefaultLines",label:"APP卡片默认展示行数(默认3行:控制码指令、用户名、控制时间)",type:"number"},{key:"showExportBtn",label:"导出按钮",type:"checkbox",group:"命令组"},{key:"name",label:"参数名称"},{key:"command",label:"控制码指令",checkable:!0,checkboxKey:"command_visible"},{key:"created_by",label:"用户名",checkable:!0,checkboxKey:"created_by_visible"},{key:"created",label:"控制时间",checkable:!0,checkboxKey:"created_visible"},{key:"object_id_label",label:"对象编号",checkable:!0,checkboxKey:"object_id_visible"},{key:"command_name",label:"指令名称",checkable:!0,checkboxKey:"command_name_visible"},{key:"value",label:"控制值",checkable:!0,checkboxKey:"value_visible"},{key:"status",label:"下发状态",checkable:!0,checkboxKey:"status_visible"}],Ue=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],He={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"object_id",label:"setting.gridFields.objectId"},{value:"created_by",label:"setting.gridFields.createdBy"},{value:"command",label:"setting.gridFields.commandCode"},{value:"command_name",label:"setting.gridFields.commandName"}]},We={DEFAULT:Fe,OPTIONS:$e,DATA:ee,PARAMS:Ke,SOURCE:Ue,COMMON:He},Je=e.defineComponent(Z(D({},We),{__name:"controlRecordListAPP",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(u){const i=u;class s extends Ve.BaseComponent{getDataBool(t,n){var a,c;const l=(c=(a=this.props.conf)==null?void 0:a.data)==null?void 0:c[0];return l&&Object.prototype.hasOwnProperty.call(l,t)&&l[t]!==void 0?!!l[t]:this.getOptionValue(t,n)}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),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(ee));else{const n=this.props.conf.data[0];n.showExportBtn===void 0&&(n.showExportBtn=!0);const l={object_id_visible:!0,created_by_visible:!0,command_visible:!0,command_name_visible:!0,value_visible:!0,status_visible:!0,created_visible:!0};for(const[a,c]of Object.entries(l))n[a]===void 0&&(n[a]=c);(n.appCardDefaultLines===void 0||n.appCardDefaultLines===null||n.appCardDefaultLines==="")&&(n.appCardDefaultLines=3)}}}const S=new s(i,"controlRecordListAPP");S.setupLifecycle();const v=S.getStyle(),{mixiotPanelClass:O,mixiotPanelRootStyle:T}=we.useMixiotPanelSurface(v),y=e.computed(()=>Be.generateTitleStyle(i.conf.options)),m=e.computed(()=>{var n,l,a,c;const o=((l=(n=i.conf)==null?void 0:n.options)==null?void 0:l.columns)||[],t=((c=(a=i.conf)==null?void 0:a.data)==null?void 0:c[0])||{};return(Array.isArray(o)?o:[]).map(r=>{var B;let p=r.key;r.key==="object_id"&&(p="object_id_label");const b=(B=t[p])!=null?B:t[r.key],I=r.key==="object_id"?"object_id_visible":`${r.key}_visible`,C=t[I];return{prop:r.key,label:b!==void 0&&b!==""?String(b):r.label,width:r.width,minWidth:r.minWidth,visible:C!==void 0?!!C:r.visible!==!1}})}),g=10,{listLoading:P,listLoadingMore:te,hasMore:A,totalRecords:K,pageIndex:oe,resetListPagination:ne,pageRequestParams:le,updateAfterPage:ae,onListScroll:ie,runLoadMore:re}=Le.useMixiotAppScrollLoad(g),E=e.ref(""),w=e.ref("object_id"),f=e.ref([]);function se(){const o=D({},le()),t=[],n=E.value.trim();return n&&t.push([w.value,"like",`%${n}%`]),Ne.appendCommonDesignerWhereAnd(i.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function V(o){const t=o.error;return t===""||t===null||t===void 0}function U(o){return h(this,null,function*(){var p;const t=yield $.api.http("get_control_record_list",se(),!0),n=(p=t==null?void 0:t.result)!=null?p:t,l=Array.isArray(n==null?void 0:n.data)?n.data:[],a=l.map(b=>D({},b));o?f.value=[...f.value,...a]:f.value=a;const c=n==null?void 0:n.total_records,r=typeof c=="number"?c:void 0;ae(l.length,r,f.value.length),t&&t.code!==void 0&&t.code!==200&&console.warn("[controlRecordList] 列表接口非成功",t.msg||t.info,t)})}function M(){return h(this,null,function*(){ne(),oe.value=1,P.value=!0;try{yield U(!1)}catch(o){console.error(o),f.value=[],K.value=0,A.value=!1}finally{P.value=!1}})}function ce(){return h(this,null,function*(){yield re(()=>h(null,null,function*(){try{yield U(!0)}catch(o){throw console.error(o),o}}))})}function de(o){ie(o,ce)}const ue=e.computed(()=>f.value);function pe(o,t){const n=o[t];return n==null?"":String(n)}const me=e.computed(()=>{var o,t;return((t=(o=i.conf)==null?void 0:o.data)==null?void 0:t[0])||{}}),H=e.computed(()=>{const o=me.value,t=Number(o.appCardDefaultLines);return Number.isFinite(t)&&t>=1?Math.min(Math.floor(t),30):3}),k=e.reactive({}),R=["command","created_by","created","object_id","command_name","value"],fe=e.computed(()=>{var o;return{backgroundColor:v.value.bgColor,borderRadius:`${(o=v.value.radiusSize)!=null?o:8}px`}});function j(o,t){var n,l;return`${t}-${String((n=o.object_id)!=null?n:"")}-${String((l=o.created)!=null?l:"")}`}function W(o,t){return!!k[j(o,t)]}function _e(o,t){const n=j(o,t);k[n]=!k[n]}function q(o){var n;return String((n=o.command_name)!=null?n:"").trim()}function J(o){const t=[],n=[];for(const l of R)n.includes(l)||n.push(l);for(const l of m.value)!l.visible||l.prop==="status"||n.includes(l.prop)||n.push(l.prop);for(const l of n){const a=m.value.find(c=>c.prop===l&&c.visible);!a||l==="status"||t.push({prop:l,label:a.label,text:pe(o,l)})}return t}function be(o,t){const n=J(o);if(W(o,t))return n;const l=H.value,a=[];for(const r of R){const p=n.find(b=>b.prop===r);p&&a.push(p)}if(a.length>=l)return a.slice(0,l);const c=n.filter(r=>!R.includes(r.prop));return[...a,...c].slice(0,l)}function ve(o,t){return J(o).length>H.value}function G(){M()}function he(){E.value="",w.value="object_id";for(const o of Object.keys(k))delete k[o];M()}function ye(o){o==="reset"?he():o==="export"&&ge()}function z(o){const t=n=>String(n).padStart(2,"0");return`${o.getFullYear()}-${t(o.getMonth()+1)}-${t(o.getDate())} ${t(o.getHours())}:${t(o.getMinutes())}:${t(o.getSeconds())}`}function ge(){return h(this,null,function*(){const o=[...new Set(f.value.map(l=>{var a;return String((a=l.object_id)!=null?a:"").trim()}).filter(Boolean))];if(!o.length){x.ElMessage.warning("当前列表无对象编号,请加载记录后再导出");return}const t=new Date,n=new Date(t.getTime()-168*3600*1e3);try{yield x.ElMessageBox.confirm(`将按最近 7 天、当前已加载列表中的 ${o.length} 个对象编号发起导出任务,是否继续?`,"导出控制记录",{type:"info"})}catch(l){return}try{const l=yield $.api.http("export_control_record",{file_name:`control_record_${z(t).replace(/[: ]/g,"_")}`,start_time:z(n),end_time:z(t),object_ids:o},!0);if(l.code!==void 0&&l.code!==200){x.ElMessage.warning(l.msg||l.info||"导出请求未成功");return}x.ElMessage.success("导出任务已提交")}catch(l){x.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{M()}),(o,t)=>{const n=_.ElIcon,l=_.ElButton,a=_.ElDropdownItem,c=_.ElDropdownMenu,r=_.ElDropdown,p=_.ElOption,b=_.ElSelect,I=_.ElInput,C=_.ElTag,B=_.ElLoadingDirective;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-record-list-app mixiot-list-app mix-component",e.unref(O)]),style:e.normalizeStyle(e.unref(T))},[e.unref(v).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",De,[e.createElementVNode("div",{class:"app-title-text",style:e.normalizeStyle(y.value)},e.toDisplayString(u.conf.caption||u.conf.name),5),e.createVNode(r,{trigger:"click",onCommand:ye},{dropdown:e.withCtx(()=>[e.createVNode(c,null,{default:e.withCtx(()=>[e.createVNode(a,{command:"reset"},{default:e.withCtx(()=>[...t[2]||(t[2]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(v).showExportBtn?(e.openBlock(),e.createBlock(a,{key:0,command:"export"},{default:e.withCtx(()=>[...t[3]||(t[3]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),_:1})]),default:e.withCtx(()=>[e.createVNode(l,{size:"small",circle:""},{default:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.Plus))]),_:1})]),_:1})]),_:1})])),e.withDirectives((e.openBlock(),e.createElementBlock("div",Oe,[e.createElementVNode("div",Te,[e.createVNode(b,{modelValue:w.value,"onUpdate:modelValue":t[0]||(t[0]=d=>w.value=d),class:"app-field-select"},{default:e.withCtx(()=>[e.createVNode(p,{label:"对象编号",value:"object_id"}),e.createVNode(p,{label:"用户名",value:"created_by"}),e.createVNode(p,{label:"控制码指令",value:"command"}),e.createVNode(p,{label:"指令名称",value:"command_name"})]),_:1},8,["modelValue"]),e.createVNode(I,{modelValue:E.value,"onUpdate:modelValue":t[1]||(t[1]=d=>E.value=d),placeholder:"输入关键词搜索",clearable:"",class:"app-search-input",onKeyup:e.withKeys(G,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.Search))]),_:1})]),append:e.withCtx(()=>[e.createVNode(l,{type:"primary",class:"app-toolbar-search-btn",onClick:G},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("搜索",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",{class:"app-card-scroll",onScroll:de},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ue.value,(d,N)=>(e.openBlock(),e.createElementBlock("div",{key:j(d,N),class:"app-object-card",style:e.normalizeStyle(fe.value)},[q(d)?(e.openBlock(),e.createElementBlock("div",Pe,[e.createElementVNode("div",Ae,e.toDisplayString(q(d)),1),e.createVNode(C,{type:V(d)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V(d)?"成功":"失败"),1)]),_:2},1032,["type"])])):(e.openBlock(),e.createBlock(C,{key:1,class:"app-card-status-corner",type:V(d)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V(d)?"成功":"失败"),1)]),_:2},1032,["type"])),e.createElementVNode("div",{class:e.normalizeClass(["app-card-fields",{"has-corner-status":!q(d)}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(be(d,N),L=>(e.openBlock(),e.createElementBlock("div",{key:L.prop,class:"app-field-line"},[e.createElementVNode("span",Me,e.toDisplayString(L.label),1),e.createElementVNode("span",Re,e.toDisplayString(L.text),1)]))),128))],2),ve(d)?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(["app-card-expand-bottom",{open:W(d,N)}]),onClick:e.withModifiers(L=>_e(d,N),["stop"])},[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.ArrowDown))]),_:1})],10,je)):e.createCommentVNode("",!0)],4))),128)),e.unref(te)?(e.openBlock(),e.createElementBlock("div",qe,"加载中…")):f.value.length&&!e.unref(A)?(e.openBlock(),e.createElementBlock("div",ze," 已加载全部 "+e.toDisplayString(e.unref(K))+" 条 ",1)):f.value.length&&e.unref(A)?(e.openBlock(),e.createElementBlock("div",Ie," 已加载 "+e.toDisplayString(f.value.length)+" 条,上拉加载更多 ",1)):e.createCommentVNode("",!0)],32)])),[[B,e.unref(P)]]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)}}})),Ge=$._export_sfc(Je,[["__scopeId","data-v-2d8d3031"]]);exports.default=Ge;
@@ -1 +1 @@
1
- "use strict";var F=Object.defineProperty,L=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var V=(p,i,l)=>i in p?F(p,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):p[i]=l,y=(p,i)=>{for(var l in i||(i={}))H.call(i,l)&&V(p,l,i[l]);if(T)for(var l of T(i))j.call(i,l)&&V(p,l,i[l]);return p},x=(p,i)=>L(p,D(i));var O=(p,i,l)=>new Promise((h,g)=>{var c=u=>{try{m(l.next(u))}catch(f){g(f)}},S=u=>{try{m(l.throw(u))}catch(f){g(f)}},m=u=>u.done?h(u.value):Promise.resolve(u.value).then(c,S);m((l=l.apply(p,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),R=require("./BaseComponent-DJDC3N1j.cjs"),G=require("./index-BwtkVH_e.cjs"),$=require("./titleStyle-NSnz6cUg.cjs"),_=require("./ele-crd-icon-BvNgAPKW.cjs"),M={class:"value-main"},W={key:0,class:"value-unit"},B="--",U={DEFAULT_ICON:_.DEFAULT_ICON,ACTIVE_ICON:_.ACTIVE_ICON,NAME_CN:"基础卡片",NAME_EN:"Card",ORDER:1,PLATFORM:["pc","screen","mobile"]},q={titleColor:"#111",titleSize:14,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,labelColor:"#111",textColor:"#111",bgColor:"#fff",valueSize:28,nameSize:14,radiusSize:8,isHideTitle:!0,showTopGradient:!1,topGradientStart:{value:"#f5a623",type:"color",label:"component.options.topGradientStart",dependent:"showTopGradient"},topGradientHeight:{value:2,type:"number",min:1,max:16,label:"component.options.topGradientHeight",dependent:"showTopGradient"},topGradientPosition:{value:"cardItem",type:"select",label:"component.options.topGradientPosition",dependent:"showTopGradient",options:[{label:"component.options.topGradientPosition_cardItem",value:"cardItem"},{label:"component.options.topGradientPosition_aboveTitle",value:"aboveTitle"}]},showBgIcon:!1,defaultBgIcon:{value:"",type:"text",label:"component.options.defaultBgIcon",dependent:"showBgIcon"},bgIconOpacity:{value:.06,type:"number",min:0,max:1,step:.01,label:"component.options.bgIconOpacity",dependent:"showBgIcon"},bgIconSize:{value:40,type:"number",min:8,max:120,label:"component.options.bgIconSize",dependent:"showBgIcon"},bgIconPosition:{value:"right",type:"select",label:"component.options.bgIconPosition",dependent:"showBgIcon",options:[{label:"component.options.bgIconPosition_right",value:"right"},{label:"component.options.bgIconPosition_left",value:"left"}]},paramsLayout:{value:"horizontal",type:"select",label:"component.options.paramsLayout",options:[{label:"component.options.paramsLayout_horizontal",value:"horizontal"},{label:"component.options.paramsLayout_vertical",value:"vertical"}]}},J=[{name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1,valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"}],K=["name","fv","object_id","unit","default","isText",{key:"valueFontSize",type:"number",label:"component.options.crdValueFontSize",group:"component.options.crdGroupCellStyle",groupCollapsedByDefault:!0,min:0,max:120},{key:"nameFontSize",type:"number",label:"component.options.crdNameFontSize",group:"component.options.crdGroupCellStyle",min:0,max:120},{key:"valueTextColor",type:"color",label:"component.options.crdValueTextColor",group:"component.options.crdGroupCellStyle"},{key:"valueAlign",type:"select",label:"component.options.crdValueAlign",group:"component.options.crdGroupCellStyle",options:[{label:"component.options.crdValueAlign_left",value:"left"},{label:"component.options.crdValueAlign_center",value:"center"},{label:"component.options.crdValueAlign_right",value:"right"}]},{key:"nameTextColor",type:"color",label:"component.options.crdNameTextColor",group:"component.options.crdGroupCellStyle"},{key:"areaWeight",type:"number",label:"component.options.crdAreaWeight",group:"component.options.crdGroupCellStyle",min:1,max:32},{key:"cellPadding",type:"number",label:"component.options.crdCellPadding",group:"component.options.crdGroupCellStyle",min:0,max:64}],Q=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime","summary"],X={useAlias:!1,multiObject:!1,source:"mosaic",object_id:"",object_alias:""},Y={DEFAULT:U,OPTIONS:q,DATA:J,PARAMS:K,SOURCE:Q,COMMON:X},Z=e.defineComponent(x(y({},Y),{__name:"crd",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const i={valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"},l=p;class h extends R.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),labelColor:this.getOptionValue("labelColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",14),valueSize:this.getOptionValue("valueSize",28),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!0),showTopGradient:this.getOptionValue("showTopGradient",!1),topGradientStart:this.getOptionValue("topGradientStart","#f5a623"),topGradientHeight:this.getOptionValue("topGradientHeight",2),topGradientPosition:this.getOptionValue("topGradientPosition","cardItem"),showBgIcon:this.getOptionValue("showBgIcon",!1),defaultBgIcon:this.getOptionValue("defaultBgIcon",""),bgIconOpacity:this.getOptionValue("bgIconOpacity",.06),bgIconSize:this.getOptionValue("bgIconSize",40),bgIconPosition:this.getOptionValue("bgIconPosition","right"),paramsLayout:this.getOptionValue("paramsLayout","horizontal")}}init(){return O(this,null,function*(){var o;this.Style.value=this.extractStyles(),this.applyTheme();const n={name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1};if(!((o=this.props.conf.data)!=null&&o.length))this.props.conf.data=[y(y({},n),i)];else for(const a of this.props.conf.data)if(!(!a||typeof a!="object"))for(const[s,r]of Object.entries(i))a[s]===void 0&&(a[s]=r)})}setHistoryData(n){if(!n)return;const{data:o}=this.props.conf;!Array.isArray(o)||!o.length||o.forEach((a,s)=>{try{const r=n[s].data[0];r!=null&&(a.value=r)}catch(r){}})}}const g=new h(l,"crd");g.setupLifecycle();const c=g.getStyle(),S=e.computed(()=>$.generateTitleStyle(l.conf.options)),m=e.computed(()=>{const t=S.value||{},n=parseFloat(String(t.fontSize||"14"))||14,o=String(t.padding||"").split(" ").filter(Boolean),a=o.length>0&&parseFloat(o[0])||0,s=Math.ceil(n*1.5),r=Math.max(0,s+a*2);return x(y({},t),{minHeight:`${r}px`})}),u=e.computed(()=>{const t=c.value,n=Number(t.topGradientHeight)||2,o=t.topGradientStart||"#f5a623";return{height:`${n}px`,background:`linear-gradient(90deg, ${o}, transparent)`}}),f=e.computed(()=>{const t=c.value;return!!t.showTopGradient&&t.topGradientPosition==="aboveTitle"}),N=e.computed(()=>{const t=c.value;return!!t.showTopGradient&&t.topGradientPosition!=="aboveTitle"}),z=e.computed(()=>c.value.paramsLayout==="vertical"),k=e.computed(()=>{var o;const t=c.value,n=t.bgIconPosition==="right";return{opacity:(o=t.bgIconOpacity)!=null?o:.06,fontSize:`${Number(t.bgIconSize)||40}px`,display:"flex",alignItems:"center",justifyContent:n?"flex-end":"flex-start",paddingRight:n?"12px":void 0,paddingLeft:n?void 0:"12px"}});function A(t){const n=Number(t==null?void 0:t.areaWeight),o=Number.isFinite(n)&&n>0?n:1,a=Number(t==null?void 0:t.cellPadding),s={flex:`${o} 1 0`,minWidth:"0",minHeight:"0"};return Number.isFinite(a)&&a>0&&(s.padding=`${a}px`),s}function E(t){const n=c.value,o=Number(t==null?void 0:t.valueFontSize),a=Number.isFinite(o)&&o>0?o:n.valueSize,s=typeof(t==null?void 0:t.valueTextColor)=="string"?t.valueTextColor.trim():"",r=t==null?void 0:t.valueAlign,d=r==="left"||r==="right"||r==="center"?r:"center",b=d==="left"?"flex-start":d==="right"?"flex-end":"center";return{color:s||n.textColor,fontSize:`${a}px`,width:"100%",justifyContent:b,textAlign:d}}function P(t){const n=c.value,o=Number(t==null?void 0:t.nameFontSize),a=Number.isFinite(o)&&o>0?o:n.nameSize;return{color:(typeof(t==null?void 0:t.nameTextColor)=="string"?t.nameTextColor.trim():"")||n.labelColor,fontSize:`${a}px`}}function I(){const t=c.value.defaultBgIcon,n=typeof t=="string"?t.trim():"";return n?G.decodeIconFromStorage(n):""}const v=t=>{var s,r,d,b;if(!t)return{value:B,name:"--",unit:""};const n=(s=t.name)!=null?s:"",o=typeof t.unit=="string"?t.unit.trim():"";return t.isText?{value:(((r=t.flag)==null?void 0:r.find(w=>String(w.code)==String(t.value)))||{}).text||B,name:n,unit:o}:{value:(b=(d=t.value)!=null?d:t.default)!=null?b:0,name:n,unit:o}},C=l.conf;return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:e.unref(c).radiusSize+"px"})},[f.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-component-top-gradient",style:e.normalizeStyle(u.value)},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(m.value)},e.toDisplayString(e.unref(C).caption||e.unref(C).name),5),e.createElementVNode("div",{class:e.normalizeClass(["mix-body",{"mix-body--params-vertical":z.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C).data,(o,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:"card-item",style:e.normalizeStyle(A(o))},[e.createElementVNode("div",{class:"card-item-surface",style:e.normalizeStyle({background:e.unref(c).bgColor})},null,4),N.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"card-item-top-gradient",style:e.normalizeStyle(u.value)},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["card-item-inner",{"card-item-inner--row":z.value}])},[e.createElementVNode("div",{class:"value",style:e.normalizeStyle(E(o))},[e.createElementVNode("span",M,e.toDisplayString(v(o).value),1),v(o).unit?(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(v(o).unit),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("div",{class:"name",style:e.normalizeStyle(P(o))},e.toDisplayString(v(o).name),5)],2)],4))),128)),e.unref(c).showBgIcon&&I()?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-body-bg-icon",style:e.normalizeStyle(k.value)},e.toDisplayString(I()),5)):e.createCommentVNode("",!0)],2),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),ee=G._export_sfc(Z,[["__scopeId","data-v-5ea5da48"]]);exports.default=ee;
1
+ "use strict";var F=Object.defineProperty,L=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var V=(p,i,l)=>i in p?F(p,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):p[i]=l,y=(p,i)=>{for(var l in i||(i={}))H.call(i,l)&&V(p,l,i[l]);if(T)for(var l of T(i))j.call(i,l)&&V(p,l,i[l]);return p},x=(p,i)=>L(p,D(i));var O=(p,i,l)=>new Promise((h,g)=>{var c=u=>{try{m(l.next(u))}catch(f){g(f)}},S=u=>{try{m(l.throw(u))}catch(f){g(f)}},m=u=>u.done?h(u.value):Promise.resolve(u.value).then(c,S);m((l=l.apply(p,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),R=require("./BaseComponent-9njJjeix.cjs"),G=require("./index-Bo49zvKb.cjs"),$=require("./titleStyle-NSnz6cUg.cjs"),_=require("./ele-crd-icon-BvNgAPKW.cjs"),M={class:"value-main"},W={key:0,class:"value-unit"},B="--",U={DEFAULT_ICON:_.DEFAULT_ICON,ACTIVE_ICON:_.ACTIVE_ICON,NAME_CN:"基础卡片",NAME_EN:"Card",ORDER:1,PLATFORM:["pc","screen","mobile"]},q={titleColor:"#111",titleSize:14,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,labelColor:"#111",textColor:"#111",bgColor:"#fff",valueSize:28,nameSize:14,radiusSize:8,isHideTitle:!0,showTopGradient:!1,topGradientStart:{value:"#f5a623",type:"color",label:"component.options.topGradientStart",dependent:"showTopGradient"},topGradientHeight:{value:2,type:"number",min:1,max:16,label:"component.options.topGradientHeight",dependent:"showTopGradient"},topGradientPosition:{value:"cardItem",type:"select",label:"component.options.topGradientPosition",dependent:"showTopGradient",options:[{label:"component.options.topGradientPosition_cardItem",value:"cardItem"},{label:"component.options.topGradientPosition_aboveTitle",value:"aboveTitle"}]},showBgIcon:!1,defaultBgIcon:{value:"",type:"text",label:"component.options.defaultBgIcon",dependent:"showBgIcon"},bgIconOpacity:{value:.06,type:"number",min:0,max:1,step:.01,label:"component.options.bgIconOpacity",dependent:"showBgIcon"},bgIconSize:{value:40,type:"number",min:8,max:120,label:"component.options.bgIconSize",dependent:"showBgIcon"},bgIconPosition:{value:"right",type:"select",label:"component.options.bgIconPosition",dependent:"showBgIcon",options:[{label:"component.options.bgIconPosition_right",value:"right"},{label:"component.options.bgIconPosition_left",value:"left"}]},paramsLayout:{value:"horizontal",type:"select",label:"component.options.paramsLayout",options:[{label:"component.options.paramsLayout_horizontal",value:"horizontal"},{label:"component.options.paramsLayout_vertical",value:"vertical"}]}},J=[{name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1,valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"}],K=["name","fv","object_id","unit","default","isText",{key:"valueFontSize",type:"number",label:"component.options.crdValueFontSize",group:"component.options.crdGroupCellStyle",groupCollapsedByDefault:!0,min:0,max:120},{key:"nameFontSize",type:"number",label:"component.options.crdNameFontSize",group:"component.options.crdGroupCellStyle",min:0,max:120},{key:"valueTextColor",type:"color",label:"component.options.crdValueTextColor",group:"component.options.crdGroupCellStyle"},{key:"valueAlign",type:"select",label:"component.options.crdValueAlign",group:"component.options.crdGroupCellStyle",options:[{label:"component.options.crdValueAlign_left",value:"left"},{label:"component.options.crdValueAlign_center",value:"center"},{label:"component.options.crdValueAlign_right",value:"right"}]},{key:"nameTextColor",type:"color",label:"component.options.crdNameTextColor",group:"component.options.crdGroupCellStyle"},{key:"areaWeight",type:"number",label:"component.options.crdAreaWeight",group:"component.options.crdGroupCellStyle",min:1,max:32},{key:"cellPadding",type:"number",label:"component.options.crdCellPadding",group:"component.options.crdGroupCellStyle",min:0,max:64}],Q=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime","summary"],X={useAlias:!1,multiObject:!1,source:"mosaic",object_id:"",object_alias:""},Y={DEFAULT:U,OPTIONS:q,DATA:J,PARAMS:K,SOURCE:Q,COMMON:X},Z=e.defineComponent(x(y({},Y),{__name:"crd",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const i={valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"},l=p;class h extends R.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),labelColor:this.getOptionValue("labelColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",14),valueSize:this.getOptionValue("valueSize",28),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!0),showTopGradient:this.getOptionValue("showTopGradient",!1),topGradientStart:this.getOptionValue("topGradientStart","#f5a623"),topGradientHeight:this.getOptionValue("topGradientHeight",2),topGradientPosition:this.getOptionValue("topGradientPosition","cardItem"),showBgIcon:this.getOptionValue("showBgIcon",!1),defaultBgIcon:this.getOptionValue("defaultBgIcon",""),bgIconOpacity:this.getOptionValue("bgIconOpacity",.06),bgIconSize:this.getOptionValue("bgIconSize",40),bgIconPosition:this.getOptionValue("bgIconPosition","right"),paramsLayout:this.getOptionValue("paramsLayout","horizontal")}}init(){return O(this,null,function*(){var o;this.Style.value=this.extractStyles(),this.applyTheme();const n={name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1};if(!((o=this.props.conf.data)!=null&&o.length))this.props.conf.data=[y(y({},n),i)];else for(const a of this.props.conf.data)if(!(!a||typeof a!="object"))for(const[s,r]of Object.entries(i))a[s]===void 0&&(a[s]=r)})}setHistoryData(n){if(!n)return;const{data:o}=this.props.conf;!Array.isArray(o)||!o.length||o.forEach((a,s)=>{try{const r=n[s].data[0];r!=null&&(a.value=r)}catch(r){}})}}const g=new h(l,"crd");g.setupLifecycle();const c=g.getStyle(),S=e.computed(()=>$.generateTitleStyle(l.conf.options)),m=e.computed(()=>{const t=S.value||{},n=parseFloat(String(t.fontSize||"14"))||14,o=String(t.padding||"").split(" ").filter(Boolean),a=o.length>0&&parseFloat(o[0])||0,s=Math.ceil(n*1.5),r=Math.max(0,s+a*2);return x(y({},t),{minHeight:`${r}px`})}),u=e.computed(()=>{const t=c.value,n=Number(t.topGradientHeight)||2,o=t.topGradientStart||"#f5a623";return{height:`${n}px`,background:`linear-gradient(90deg, ${o}, transparent)`}}),f=e.computed(()=>{const t=c.value;return!!t.showTopGradient&&t.topGradientPosition==="aboveTitle"}),N=e.computed(()=>{const t=c.value;return!!t.showTopGradient&&t.topGradientPosition!=="aboveTitle"}),z=e.computed(()=>c.value.paramsLayout==="vertical"),k=e.computed(()=>{var o;const t=c.value,n=t.bgIconPosition==="right";return{opacity:(o=t.bgIconOpacity)!=null?o:.06,fontSize:`${Number(t.bgIconSize)||40}px`,display:"flex",alignItems:"center",justifyContent:n?"flex-end":"flex-start",paddingRight:n?"12px":void 0,paddingLeft:n?void 0:"12px"}});function A(t){const n=Number(t==null?void 0:t.areaWeight),o=Number.isFinite(n)&&n>0?n:1,a=Number(t==null?void 0:t.cellPadding),s={flex:`${o} 1 0`,minWidth:"0",minHeight:"0"};return Number.isFinite(a)&&a>0&&(s.padding=`${a}px`),s}function E(t){const n=c.value,o=Number(t==null?void 0:t.valueFontSize),a=Number.isFinite(o)&&o>0?o:n.valueSize,s=typeof(t==null?void 0:t.valueTextColor)=="string"?t.valueTextColor.trim():"",r=t==null?void 0:t.valueAlign,d=r==="left"||r==="right"||r==="center"?r:"center",b=d==="left"?"flex-start":d==="right"?"flex-end":"center";return{color:s||n.textColor,fontSize:`${a}px`,width:"100%",justifyContent:b,textAlign:d}}function P(t){const n=c.value,o=Number(t==null?void 0:t.nameFontSize),a=Number.isFinite(o)&&o>0?o:n.nameSize;return{color:(typeof(t==null?void 0:t.nameTextColor)=="string"?t.nameTextColor.trim():"")||n.labelColor,fontSize:`${a}px`}}function I(){const t=c.value.defaultBgIcon,n=typeof t=="string"?t.trim():"";return n?G.decodeIconFromStorage(n):""}const v=t=>{var s,r,d,b;if(!t)return{value:B,name:"--",unit:""};const n=(s=t.name)!=null?s:"",o=typeof t.unit=="string"?t.unit.trim():"";return t.isText?{value:(((r=t.flag)==null?void 0:r.find(w=>String(w.code)==String(t.value)))||{}).text||B,name:n,unit:o}:{value:(b=(d=t.value)!=null?d:t.default)!=null?b:0,name:n,unit:o}},C=l.conf;return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:e.unref(c).radiusSize+"px"})},[f.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-component-top-gradient",style:e.normalizeStyle(u.value)},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(m.value)},e.toDisplayString(e.unref(C).caption||e.unref(C).name),5),e.createElementVNode("div",{class:e.normalizeClass(["mix-body",{"mix-body--params-vertical":z.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C).data,(o,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:"card-item",style:e.normalizeStyle(A(o))},[e.createElementVNode("div",{class:"card-item-surface",style:e.normalizeStyle({background:e.unref(c).bgColor})},null,4),N.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"card-item-top-gradient",style:e.normalizeStyle(u.value)},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["card-item-inner",{"card-item-inner--row":z.value}])},[e.createElementVNode("div",{class:"value",style:e.normalizeStyle(E(o))},[e.createElementVNode("span",M,e.toDisplayString(v(o).value),1),v(o).unit?(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(v(o).unit),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("div",{class:"name",style:e.normalizeStyle(P(o))},e.toDisplayString(v(o).name),5)],2)],4))),128)),e.unref(c).showBgIcon&&I()?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-body-bg-icon",style:e.normalizeStyle(k.value)},e.toDisplayString(I()),5)):e.createCommentVNode("",!0)],2),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),ee=G._export_sfc(Z,[["__scopeId","data-v-5ea5da48"]]);exports.default=ee;
@@ -27,8 +27,8 @@ var F = (c, l, n) => new Promise((_, b) => {
27
27
  h((n = n.apply(c, l)).next());
28
28
  });
29
29
  import { defineComponent as J, computed as d, openBlock as g, createElementBlock as m, normalizeStyle as u, unref as f, createCommentVNode as z, createElementVNode as y, toDisplayString as C, normalizeClass as N, Fragment as K, renderList as Q, renderSlot as X } from "vue";
30
- import { B as Y } from "./BaseComponent-Czscoh5u.js";
31
- import { q as Z, _ as tt } from "./index-DU4OIZEL.js";
30
+ import { B as Y } from "./BaseComponent-B38Blgw3.js";
31
+ import { q as Z, _ as tt } from "./index-BbXEpgom.js";
32
32
  import { g as et } from "./titleStyle-BT5GlpAb.js";
33
33
  import { A as ot, D as nt } from "./ele-crd-icon-BXxB7P3T.js";
34
34
  const at = { class: "value-main" }, lt = {
@@ -1 +1 @@
1
- "use strict";var A=Object.defineProperty,F=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols,L=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,j=Reflect.get;var O=(l,o,t)=>o in l?A(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,z=(l,o)=>{for(var t in o||(o={}))P.call(o,t)&&O(l,t,o[t]);if(k)for(var t of k(o))I.call(o,t)&&O(l,t,o[t]);return l},N=(l,o)=>F(l,M(o));var w=(l,o,t)=>j(L(l),t,o);var S=(l,o,t)=>new Promise((p,d)=>{var f=r=>{try{u(t.next(r))}catch(c){d(c)}},C=r=>{try{u(t.throw(r))}catch(c){d(c)}},u=r=>r.done?p(r.value):Promise.resolve(r.value).then(f,C);u((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const D=require("./BaseComponent-DJDC3N1j.cjs"),v=require("./index-BwtkVH_e.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),y=require("./mix-control-modal-CJGiZ9Xp.cjs"),H=require("element-plus"),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='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-213.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M225.674156,1208.89481%20C225.944595,1209.04924%20226.205387,1209.21954%20226.455068,1209.40467%20C226.881095,1209.72052%20227.273774,1210.07876%20227.626647,1210.47337%20C228.878628,1211.87353%20229.582251,1213.67438%20229.582251,1215.58182%20C229.582251,1219.84629%20226.083331,1223.3%20221.771264,1223.3%20C217.459198,1223.3%20213.960278,1219.84629%20213.960278,1215.58182%20C213.960278,1213.67437%20214.663898,1211.87352%20215.9159,1210.47335%20C216.268755,1210.07876%20216.661433,1209.72052%20217.087434,1209.40469%20C217.337142,1209.21954%20217.597933,1209.04924%20217.868372,1208.89481%20C218.16979,1208.7227%20218.55366,1208.82753%20218.725771,1209.12895%20C218.897882,1209.43036%20218.793058,1209.81423%20218.49164,1209.98634%20C218.264609,1210.11598%20218.045681,1210.25894%20217.836048,1210.41438%20C217.478472,1210.67948%20217.148907,1210.98015%20216.85287,1211.31119%20C215.804685,1212.48343%20215.217218,1213.98699%20215.217218,1215.58182%20C215.217218,1219.14841%20218.149754,1222.04306%20221.771264,1222.04306%20C225.392775,1222.04306%20228.32531,1219.14841%20228.32531,1215.58182%20C228.32531,1213.987%20227.73784,1212.48344%20226.689675,1211.31121%20C226.393622,1210.98015%20226.064056,1210.67948%20225.706453,1210.41436%20C225.496847,1210.25894%20225.27792,1210.11598%20225.050889,1209.98634%20C224.749471,1209.81423%20224.644647,1209.43036%20224.816758,1209.12895%20C224.988868,1208.82753%20225.372739,1208.7227%20225.674156,1208.89481%20Z%20M221.771264,1207.3%20C222.089434,1207.3%20222.352382,1207.53643%20222.393997,1207.84319%20L222.399735,1207.92847%20L222.399735,1215.48901%20C222.399735,1215.83611%20222.118359,1216.11748%20221.771264,1216.11748%20C221.453094,1216.11748%20221.190147,1215.88105%20221.148531,1215.57429%20L221.142794,1215.48901%20L221.142794,1207.92847%20C221.142794,1207.58138%20221.42417,1207.3%20221.771264,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M115.0528,1208.89481%20C115.323239,1209.04924%20115.58403,1209.21954%20115.833711,1209.40467%20C116.259739,1209.72052%20116.652418,1210.07876%20117.00529,1210.47337%20C118.257271,1211.87353%20118.960894,1213.67438%20118.960894,1215.58182%20C118.960894,1219.84629%20115.461974,1223.3%20111.149908,1223.3%20C106.837841,1223.3%20103.338921,1219.84629%20103.338921,1215.58182%20C103.338921,1213.67437%20104.042541,1211.87352%20105.294544,1210.47335%20C105.647398,1210.07876%20106.040077,1209.72052%20106.466077,1209.40469%20C106.715786,1209.21954%20106.976577,1209.04924%20107.247016,1208.89481%20C107.548433,1208.7227%20107.932304,1208.82753%20108.104414,1209.12895%20C108.276525,1209.43036%20108.171701,1209.81423%20107.870284,1209.98634%20C107.643252,1210.11598%20107.424325,1210.25894%20107.214692,1210.41438%20C106.857116,1210.67948%20106.52755,1210.98015%20106.231514,1211.31119%20C105.183328,1212.48343%20104.595862,1213.98699%20104.595862,1215.58182%20C104.595862,1219.14841%20107.528398,1222.04306%20111.149908,1222.04306%20C114.771418,1222.04306%20117.703954,1219.14841%20117.703954,1215.58182%20C117.703954,1213.987%20117.116484,1212.48344%20116.068318,1211.31121%20C115.772265,1210.98015%20115.4427,1210.67948%20115.085097,1210.41436%20C114.875491,1210.25894%20114.656563,1210.11598%20114.429532,1209.98634%20C114.128115,1209.81423%20114.023291,1209.43036%20114.195401,1209.12895%20C114.367512,1208.82753%20114.751382,1208.7227%20115.0528,1208.89481%20Z%20M111.149908,1207.3%20C111.468078,1207.3%20111.731026,1207.53643%20111.772641,1207.84319%20L111.778378,1207.92847%20L111.778378,1215.48901%20C111.778378,1215.83611%20111.497002,1216.11748%20111.149908,1216.11748%20C110.831738,1216.11748%20110.56879,1215.88105%20110.527175,1215.57429%20L110.521438,1215.48901%20L110.521438,1207.92847%20C110.521438,1207.58138%20110.802813,1207.3%20111.149908,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",U={class:"font-semibold flex items-center justify-between"},Z={class:"mix-body"},W={class:"w-full flex flex-wrap content-start"},G=["onClick"],J={DEFAULT_ICON:q,ACTIVE_ICON:$,NAME_CN:"按键",NAME_EN:"Button",ORDER:2,PLATFORM:["pc","screen","mobile"]},K={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:v.CONTROL_OPTIONS}},V=[{command:"Control_01",name:"关机",color:"#c92309",code:"0"},{command:"Control_01",name:"开机",color:"#217406",code:"1"}],Y=["name","command","color","code"],Q=["mosaic"],X={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},e2={DEFAULT:J,OPTIONS:K,DATA:V,PARAMS:Y,SOURCE:Q,COMMON:X},t2=e.defineComponent(N(z({},e2),{__name:"ctrBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(l){const o=l,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),p=e.reactive({rule:"",code:"",command:""}),d=e.reactive({text:"",color:""}),f=e.ref(null),C=e.ref(!0);class u extends D.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#fff"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",42),radiusSize:this.getOptionValue("radiusSize",8),items:this.getOptionValue("items",2),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return S(this,null,function*(){w(u.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:V})}onPreview(){return S(this,null,function*(){yield w(u.prototype,this,"onPreview").call(this);const n=yield y.getAuthorized(this.props);t.authorized=n.authorized,t.password=n.password})}setSocketData(n){var g,x;if(!n)return;const{common:i}=this.props.conf,s=this.extractDataValue(n,i.statusFv);if(s!=null){const m=i.status.find(h=>String(h.code)===String(s));d.text=(g=m==null?void 0:m.text)!=null?g:"",d.color=(x=m==null?void 0:m.color)!=null?x:""}}}const r=new u(o,"ctrBtn");r.setupLifecycle();const c=r.getStyle(),E=e.computed(()=>R.generateTitleStyle(o.conf.options)),B=e.computed(()=>`${(100/c.value.items).toFixed(2)||100}%`),b=a=>!y.checkPermission(t.authorized,a.command),T=a=>{var s;if(b(a))return;const{options:n}=o.conf;let i=((s=n==null?void 0:n.method)==null?void 0:s.value)||"alway";p.rule=i,p.code=String(a.code),p.command=a.command,i==="alway"||i==="once"&&C.value?f.value.modal.visible=!0:_()},_=()=>{const{code:a,rule:n,command:i}=p,{common:s}=o.conf,g=JSON.parse(sessionStorage.getItem(v.ALIAS_MAPPING_KEY)||"{}");let m={block_mapping:"mapping",action:"publish_command",object_id:s.useAlias?g[s.object_alias]:s.object_id||o.uid,command:i,value:a,rule:n,control:t.password};v.api.platform(h=>{h.code===200&&(H.ElMessage.success(h.msg),f.value.modal.visible=!1,C.value=!1)},m)};return(a,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(E.value)},[e.createElementVNode("div",U,[e.createTextVNode(e.toDisplayString(l.conf.caption||l.conf.name)+" ",1),d.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"status-btn",style:e.normalizeStyle({backgroundColor:d.color,color:e.unref(c).textColor})},e.toDisplayString(d.text),5)):e.createCommentVNode("",!0)])],4),e.createElementVNode("div",Z,[e.createElementVNode("div",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.data,(i,s)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:s,style:e.normalizeStyle({width:B.value,height:`${e.unref(c).itemHeight}px`,fontSize:`${e.unref(c).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:b(i)}]),style:e.normalizeStyle({backgroundColor:i.color,color:e.unref(c).textColor}),onClick:g=>T(i)},e.toDisplayString(i.name),15,G)],4))),128))])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4),e.createVNode(y._sfc_main,{ref_key:"controlRef",ref:f,onSubmit:_,password:t.password},null,8,["password"])],64))}})),o2=v._export_sfc(t2,[["__scopeId","data-v-061fd8dc"]]);exports.default=o2;
1
+ "use strict";var A=Object.defineProperty,F=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols,L=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,j=Reflect.get;var O=(l,o,t)=>o in l?A(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,z=(l,o)=>{for(var t in o||(o={}))P.call(o,t)&&O(l,t,o[t]);if(k)for(var t of k(o))I.call(o,t)&&O(l,t,o[t]);return l},N=(l,o)=>F(l,M(o));var w=(l,o,t)=>j(L(l),t,o);var S=(l,o,t)=>new Promise((p,d)=>{var f=r=>{try{u(t.next(r))}catch(c){d(c)}},C=r=>{try{u(t.throw(r))}catch(c){d(c)}},u=r=>r.done?p(r.value):Promise.resolve(r.value).then(f,C);u((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const D=require("./BaseComponent-9njJjeix.cjs"),v=require("./index-Bo49zvKb.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),y=require("./mix-control-modal-aUWGjwZP.cjs"),H=require("element-plus"),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='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-213.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M225.674156,1208.89481%20C225.944595,1209.04924%20226.205387,1209.21954%20226.455068,1209.40467%20C226.881095,1209.72052%20227.273774,1210.07876%20227.626647,1210.47337%20C228.878628,1211.87353%20229.582251,1213.67438%20229.582251,1215.58182%20C229.582251,1219.84629%20226.083331,1223.3%20221.771264,1223.3%20C217.459198,1223.3%20213.960278,1219.84629%20213.960278,1215.58182%20C213.960278,1213.67437%20214.663898,1211.87352%20215.9159,1210.47335%20C216.268755,1210.07876%20216.661433,1209.72052%20217.087434,1209.40469%20C217.337142,1209.21954%20217.597933,1209.04924%20217.868372,1208.89481%20C218.16979,1208.7227%20218.55366,1208.82753%20218.725771,1209.12895%20C218.897882,1209.43036%20218.793058,1209.81423%20218.49164,1209.98634%20C218.264609,1210.11598%20218.045681,1210.25894%20217.836048,1210.41438%20C217.478472,1210.67948%20217.148907,1210.98015%20216.85287,1211.31119%20C215.804685,1212.48343%20215.217218,1213.98699%20215.217218,1215.58182%20C215.217218,1219.14841%20218.149754,1222.04306%20221.771264,1222.04306%20C225.392775,1222.04306%20228.32531,1219.14841%20228.32531,1215.58182%20C228.32531,1213.987%20227.73784,1212.48344%20226.689675,1211.31121%20C226.393622,1210.98015%20226.064056,1210.67948%20225.706453,1210.41436%20C225.496847,1210.25894%20225.27792,1210.11598%20225.050889,1209.98634%20C224.749471,1209.81423%20224.644647,1209.43036%20224.816758,1209.12895%20C224.988868,1208.82753%20225.372739,1208.7227%20225.674156,1208.89481%20Z%20M221.771264,1207.3%20C222.089434,1207.3%20222.352382,1207.53643%20222.393997,1207.84319%20L222.399735,1207.92847%20L222.399735,1215.48901%20C222.399735,1215.83611%20222.118359,1216.11748%20221.771264,1216.11748%20C221.453094,1216.11748%20221.190147,1215.88105%20221.148531,1215.57429%20L221.142794,1215.48901%20L221.142794,1207.92847%20C221.142794,1207.58138%20221.42417,1207.3%20221.771264,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M115.0528,1208.89481%20C115.323239,1209.04924%20115.58403,1209.21954%20115.833711,1209.40467%20C116.259739,1209.72052%20116.652418,1210.07876%20117.00529,1210.47337%20C118.257271,1211.87353%20118.960894,1213.67438%20118.960894,1215.58182%20C118.960894,1219.84629%20115.461974,1223.3%20111.149908,1223.3%20C106.837841,1223.3%20103.338921,1219.84629%20103.338921,1215.58182%20C103.338921,1213.67437%20104.042541,1211.87352%20105.294544,1210.47335%20C105.647398,1210.07876%20106.040077,1209.72052%20106.466077,1209.40469%20C106.715786,1209.21954%20106.976577,1209.04924%20107.247016,1208.89481%20C107.548433,1208.7227%20107.932304,1208.82753%20108.104414,1209.12895%20C108.276525,1209.43036%20108.171701,1209.81423%20107.870284,1209.98634%20C107.643252,1210.11598%20107.424325,1210.25894%20107.214692,1210.41438%20C106.857116,1210.67948%20106.52755,1210.98015%20106.231514,1211.31119%20C105.183328,1212.48343%20104.595862,1213.98699%20104.595862,1215.58182%20C104.595862,1219.14841%20107.528398,1222.04306%20111.149908,1222.04306%20C114.771418,1222.04306%20117.703954,1219.14841%20117.703954,1215.58182%20C117.703954,1213.987%20117.116484,1212.48344%20116.068318,1211.31121%20C115.772265,1210.98015%20115.4427,1210.67948%20115.085097,1210.41436%20C114.875491,1210.25894%20114.656563,1210.11598%20114.429532,1209.98634%20C114.128115,1209.81423%20114.023291,1209.43036%20114.195401,1209.12895%20C114.367512,1208.82753%20114.751382,1208.7227%20115.0528,1208.89481%20Z%20M111.149908,1207.3%20C111.468078,1207.3%20111.731026,1207.53643%20111.772641,1207.84319%20L111.778378,1207.92847%20L111.778378,1215.48901%20C111.778378,1215.83611%20111.497002,1216.11748%20111.149908,1216.11748%20C110.831738,1216.11748%20110.56879,1215.88105%20110.527175,1215.57429%20L110.521438,1215.48901%20L110.521438,1207.92847%20C110.521438,1207.58138%20110.802813,1207.3%20111.149908,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",U={class:"font-semibold flex items-center justify-between"},Z={class:"mix-body"},W={class:"w-full flex flex-wrap content-start"},G=["onClick"],J={DEFAULT_ICON:q,ACTIVE_ICON:$,NAME_CN:"按键",NAME_EN:"Button",ORDER:2,PLATFORM:["pc","screen","mobile"]},K={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:v.CONTROL_OPTIONS}},V=[{command:"Control_01",name:"关机",color:"#c92309",code:"0"},{command:"Control_01",name:"开机",color:"#217406",code:"1"}],Y=["name","command","color","code"],Q=["mosaic"],X={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},e2={DEFAULT:J,OPTIONS:K,DATA:V,PARAMS:Y,SOURCE:Q,COMMON:X},t2=e.defineComponent(N(z({},e2),{__name:"ctrBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(l){const o=l,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),p=e.reactive({rule:"",code:"",command:""}),d=e.reactive({text:"",color:""}),f=e.ref(null),C=e.ref(!0);class u extends D.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#fff"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",42),radiusSize:this.getOptionValue("radiusSize",8),items:this.getOptionValue("items",2),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return S(this,null,function*(){w(u.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:V})}onPreview(){return S(this,null,function*(){yield w(u.prototype,this,"onPreview").call(this);const n=yield y.getAuthorized(this.props);t.authorized=n.authorized,t.password=n.password})}setSocketData(n){var g,x;if(!n)return;const{common:i}=this.props.conf,s=this.extractDataValue(n,i.statusFv);if(s!=null){const m=i.status.find(h=>String(h.code)===String(s));d.text=(g=m==null?void 0:m.text)!=null?g:"",d.color=(x=m==null?void 0:m.color)!=null?x:""}}}const r=new u(o,"ctrBtn");r.setupLifecycle();const c=r.getStyle(),E=e.computed(()=>R.generateTitleStyle(o.conf.options)),B=e.computed(()=>`${(100/c.value.items).toFixed(2)||100}%`),b=a=>!y.checkPermission(t.authorized,a.command),T=a=>{var s;if(b(a))return;const{options:n}=o.conf;let i=((s=n==null?void 0:n.method)==null?void 0:s.value)||"alway";p.rule=i,p.code=String(a.code),p.command=a.command,i==="alway"||i==="once"&&C.value?f.value.modal.visible=!0:_()},_=()=>{const{code:a,rule:n,command:i}=p,{common:s}=o.conf,g=JSON.parse(sessionStorage.getItem(v.ALIAS_MAPPING_KEY)||"{}");let m={block_mapping:"mapping",action:"publish_command",object_id:s.useAlias?g[s.object_alias]:s.object_id||o.uid,command:i,value:a,rule:n,control:t.password};v.api.platform(h=>{h.code===200&&(H.ElMessage.success(h.msg),f.value.modal.visible=!1,C.value=!1)},m)};return(a,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(E.value)},[e.createElementVNode("div",U,[e.createTextVNode(e.toDisplayString(l.conf.caption||l.conf.name)+" ",1),d.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"status-btn",style:e.normalizeStyle({backgroundColor:d.color,color:e.unref(c).textColor})},e.toDisplayString(d.text),5)):e.createCommentVNode("",!0)])],4),e.createElementVNode("div",Z,[e.createElementVNode("div",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.data,(i,s)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:s,style:e.normalizeStyle({width:B.value,height:`${e.unref(c).itemHeight}px`,fontSize:`${e.unref(c).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:b(i)}]),style:e.normalizeStyle({backgroundColor:i.color,color:e.unref(c).textColor}),onClick:g=>T(i)},e.toDisplayString(i.name),15,G)],4))),128))])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4),e.createVNode(y._sfc_main,{ref_key:"controlRef",ref:f,onSubmit:_,password:t.password},null,8,["password"])],64))}})),o2=v._export_sfc(t2,[["__scopeId","data-v-061fd8dc"]]);exports.default=o2;
@@ -28,10 +28,10 @@ var y = (o, e, t) => new Promise((u, r) => {
28
28
  });
29
29
  import { defineComponent as G, reactive as O, ref as L, computed as M, openBlock as v, createElementBlock as b, Fragment as B, createElementVNode as p, normalizeStyle as h, unref as f, createTextVNode as J, toDisplayString as k, createCommentVNode as K, renderList as Y, normalizeClass as q, renderSlot as Q, createVNode as X } from "vue";
30
30
  import "html2canvas";
31
- import { B as t2 } from "./BaseComponent-Czscoh5u.js";
32
- import { a1 as e2, w as o2, a as i2, _ as s2 } from "./index-DU4OIZEL.js";
31
+ import { B as t2 } from "./BaseComponent-B38Blgw3.js";
32
+ import { a1 as e2, w as o2, a as i2, _ as s2 } from "./index-BbXEpgom.js";
33
33
  import { g as l2 } from "./titleStyle-BT5GlpAb.js";
34
- import { _ as n2, g as a2, c as c2 } from "./mix-control-modal-DzYQkr3y.js";
34
+ import { _ as n2, g as a2, c as c2 } from "./mix-control-modal-BEXucxt5.js";
35
35
  import { ElMessage as r2 } from "element-plus";
36
36
  const d2 = "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(-213.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M225.674156,1208.89481%20C225.944595,1209.04924%20226.205387,1209.21954%20226.455068,1209.40467%20C226.881095,1209.72052%20227.273774,1210.07876%20227.626647,1210.47337%20C228.878628,1211.87353%20229.582251,1213.67438%20229.582251,1215.58182%20C229.582251,1219.84629%20226.083331,1223.3%20221.771264,1223.3%20C217.459198,1223.3%20213.960278,1219.84629%20213.960278,1215.58182%20C213.960278,1213.67437%20214.663898,1211.87352%20215.9159,1210.47335%20C216.268755,1210.07876%20216.661433,1209.72052%20217.087434,1209.40469%20C217.337142,1209.21954%20217.597933,1209.04924%20217.868372,1208.89481%20C218.16979,1208.7227%20218.55366,1208.82753%20218.725771,1209.12895%20C218.897882,1209.43036%20218.793058,1209.81423%20218.49164,1209.98634%20C218.264609,1210.11598%20218.045681,1210.25894%20217.836048,1210.41438%20C217.478472,1210.67948%20217.148907,1210.98015%20216.85287,1211.31119%20C215.804685,1212.48343%20215.217218,1213.98699%20215.217218,1215.58182%20C215.217218,1219.14841%20218.149754,1222.04306%20221.771264,1222.04306%20C225.392775,1222.04306%20228.32531,1219.14841%20228.32531,1215.58182%20C228.32531,1213.987%20227.73784,1212.48344%20226.689675,1211.31121%20C226.393622,1210.98015%20226.064056,1210.67948%20225.706453,1210.41436%20C225.496847,1210.25894%20225.27792,1210.11598%20225.050889,1209.98634%20C224.749471,1209.81423%20224.644647,1209.43036%20224.816758,1209.12895%20C224.988868,1208.82753%20225.372739,1208.7227%20225.674156,1208.89481%20Z%20M221.771264,1207.3%20C222.089434,1207.3%20222.352382,1207.53643%20222.393997,1207.84319%20L222.399735,1207.92847%20L222.399735,1215.48901%20C222.399735,1215.83611%20222.118359,1216.11748%20221.771264,1216.11748%20C221.453094,1216.11748%20221.190147,1215.88105%20221.148531,1215.57429%20L221.142794,1215.48901%20L221.142794,1207.92847%20C221.142794,1207.58138%20221.42417,1207.3%20221.771264,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", m2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M115.0528,1208.89481%20C115.323239,1209.04924%20115.58403,1209.21954%20115.833711,1209.40467%20C116.259739,1209.72052%20116.652418,1210.07876%20117.00529,1210.47337%20C118.257271,1211.87353%20118.960894,1213.67438%20118.960894,1215.58182%20C118.960894,1219.84629%20115.461974,1223.3%20111.149908,1223.3%20C106.837841,1223.3%20103.338921,1219.84629%20103.338921,1215.58182%20C103.338921,1213.67437%20104.042541,1211.87352%20105.294544,1210.47335%20C105.647398,1210.07876%20106.040077,1209.72052%20106.466077,1209.40469%20C106.715786,1209.21954%20106.976577,1209.04924%20107.247016,1208.89481%20C107.548433,1208.7227%20107.932304,1208.82753%20108.104414,1209.12895%20C108.276525,1209.43036%20108.171701,1209.81423%20107.870284,1209.98634%20C107.643252,1210.11598%20107.424325,1210.25894%20107.214692,1210.41438%20C106.857116,1210.67948%20106.52755,1210.98015%20106.231514,1211.31119%20C105.183328,1212.48343%20104.595862,1213.98699%20104.595862,1215.58182%20C104.595862,1219.14841%20107.528398,1222.04306%20111.149908,1222.04306%20C114.771418,1222.04306%20117.703954,1219.14841%20117.703954,1215.58182%20C117.703954,1213.987%20117.116484,1212.48344%20116.068318,1211.31121%20C115.772265,1210.98015%20115.4427,1210.67948%20115.085097,1210.41436%20C114.875491,1210.25894%20114.656563,1210.11598%20114.429532,1209.98634%20C114.128115,1209.81423%20114.023291,1209.43036%20114.195401,1209.12895%20C114.367512,1208.82753%20114.751382,1208.7227%20115.0528,1208.89481%20Z%20M111.149908,1207.3%20C111.468078,1207.3%20111.731026,1207.53643%20111.772641,1207.84319%20L111.778378,1207.92847%20L111.778378,1215.48901%20C111.778378,1215.83611%20111.497002,1216.11748%20111.149908,1216.11748%20C110.831738,1216.11748%20110.56879,1215.88105%20110.527175,1215.57429%20L110.521438,1215.48901%20L110.521438,1207.92847%20C110.521438,1207.58138%20110.802813,1207.3%20111.149908,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", u2 = { class: "font-semibold flex items-center justify-between" }, p2 = { class: "mix-body" }, f2 = { class: "w-full flex flex-wrap content-start" }, g2 = ["onClick"], C2 = {
37
37
  DEFAULT_ICON: d2,
@@ -1 +1 @@
1
- "use strict";var j=Object.defineProperty,L=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols,F=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,W=Reflect.get;var w=(a,t,o)=>t in a?j(a,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[t]=o,z=(a,t)=>{for(var o in t||(t={}))U.call(t,o)&&w(a,o,t[o]);if(x)for(var o of x(t))$.call(t,o)&&w(a,o,t[o]);return a},A=(a,t)=>L(a,R(t));var T=(a,t,o)=>W(F(a),o,t);var O=(a,t,o)=>new Promise((f,h)=>{var u=s=>{try{r(o.next(s))}catch(d){h(d)}},_=s=>{try{r(o.throw(s))}catch(d){h(d)}},r=s=>s.done?f(s.value):Promise.resolve(s.value).then(u,_);r((o=o.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),H=require("./BaseComponent-DJDC3N1j.cjs"),b=require("./index-BwtkVH_e.cjs"),G=require("./titleStyle-NSnz6cUg.cjs"),E=require("./mix-control-modal-CJGiZ9Xp.cjs"),I=require("element-plus"),M=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),J={class:"font-[600]"},K={class:"submint"},Y={DEFAULT_ICON:M.DEFAULT_ICON,ACTIVE_ICON:M.ACTIVE_ICON,NAME_CN:"参数控件",NAME_EN:"Parameter Control",ORDER:1,PLATFORM:["pc","screen","mobile"]},Q={bgColor:"#fff",titleColor:"#111",textColor:"#111",titleSize:14,textSize:14,labelWidth:100,radiusSize:8,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.params.verifyMethod",options:"CONTROL_OPTIONS"}},X=[{command:"Control_01",name:"参数一",unit:"",fv:""}],Z=["name","fv","command","unit"],ee=["mosaic"],te={useAlias:!1,multiObject:!1,hideMultiObject:!0},le={DEFAULT:Y,OPTIONS:Q,DATA:X,PARAMS:Z,SOURCE:ee,COMMON:te},oe=e.defineComponent(A(z({},le),{__name:"ctrSet",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""},socketData:{type:Object,default:()=>({})}},setup(a){const t=a,o="--";class f extends H.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),titleSize:this.getOptionValue("titleSize",14),textSize:this.getOptionValue("textSize",12),labelWidth:this.getOptionValue("labelWidth",100),radiusSize:this.getOptionValue("radiusSize",4),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return O(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme()})}onPreview(){return O(this,null,function*(){yield T(f.prototype,this,"onPreview").call(this);const n=yield E.getAuthorized(this.props);r.authorized=n.authorized,r.password=n.password})}setSocketData(n){if(!n)return;const{data:i}=this.props.conf;i.forEach(m=>{const c=this.extractDataValue(n,m.fv);m.value=c!=null?c:o})}}const h=new f(t,"ctrSet");h.setupLifecycle();const u=h.getStyle(),_=e.computed(()=>G.generateTitleStyle(t.conf.options)),r=e.reactive({authorized:{type:"black_list",list:[]},password:""}),s=e.ref([]),d=e.ref(null),C=e.ref(!0),D=e.computed(()=>{var l;return((l=t.conf.data)==null?void 0:l.length)===1}),P=l=>!E.checkPermission(r.authorized,l.command),V=e.computed(()=>s.value.filter(l=>l).length===0);e.computed(()=>{var n,i;const{data:l}=t.conf;return(((n=l==null?void 0:l[0])==null?void 0:n.value)||o)+" "+(((i=l==null?void 0:l[0])==null?void 0:i.unit)||"")});const B=()=>{var i;const{options:l}=t.conf,n=((i=l==null?void 0:l.method)==null?void 0:i.value)||"alway";n==="alway"||n==="once"&&C.value?d.value.modal.visible=!0:N()},N=()=>{var p,y;const{common:l,data:n,options:i}=t.conf,m=JSON.parse(sessionStorage.getItem(b.ALIAS_MAPPING_KEY)||"{}")||{},c=l.useAlias?m[l.object_alias]:l.object_id||t.uid;if(D.value){const S={block_mapping:"mapping",action:"publish_command",object_id:c,command:n[0].command,value:s.value[0],control:r.password,rule:((p=i==null?void 0:i.method)==null?void 0:p.value)||"alway"};b.api.platform(g=>{g.code===200&&(I.ElMessage.success(g.msg),d.value.modal.visible=!1,C.value=!1)},S)}else{const S=[];s.value.forEach((v,q)=>{v&&S.push({object_id:c,command:n[q].command,value:v})});const g={block_mapping:"mapping",action:"publish_command_plus",publishes:S,control:r.password,rule:((y=i==null?void 0:i.method)==null?void 0:y.value)||"alway"};b.api.platform(v=>{v.code===200&&(I.ElMessage.success(v.msg),d.value.modal.visible=!1,C.value=!1)},g)}};return(l,n)=>{const i=k.ElInput,m=k.ElButton;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(u).bgColor,borderRadius:`${e.unref(u).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title flex-1",style:e.normalizeStyle(_.value)},[e.createElementVNode("div",J,e.toDisplayString(a.conf.caption||a.conf.name),1)],4),e.createElementVNode("div",{class:"mix-body",style:e.normalizeStyle({height:e.unref(u).isHideTitle?"100%":"calc(100% - 42px)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.conf.data,(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:"set-item",key:p,style:e.normalizeStyle({fontSize:`${e.unref(u).textSize}px`,color:e.unref(u).textColor})},[e.createElementVNode("div",{class:"item-name",style:e.normalizeStyle({width:`${e.unref(u).labelWidth}px`})},e.toDisplayString(c.name),5),e.createVNode(i,{modelValue:s.value[p],"onUpdate:modelValue":y=>s.value[p]=y,disabled:P(c)},null,8,["modelValue","onUpdate:modelValue","disabled"]),e.createVNode(i,{value:c.value?`${c.value} ${c.unit}`:o,style:{width:"100px","margin-left":"12px"},readonly:""},null,8,["value"])],4))),128)),e.createElementVNode("div",K,[e.createVNode(m,{type:V.value?"default":"primary",onClick:B,disabled:V.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])],4),e.renderSlot(l.$slots,"default",{},void 0,!0)],4),e.createVNode(E._sfc_main,{ref_key:"controlRef",ref:d,onSubmit:N,password:r.password},null,8,["password"])],64)}}})),ae=b._export_sfc(oe,[["__scopeId","data-v-9fb911b4"]]);exports.default=ae;
1
+ "use strict";var j=Object.defineProperty,L=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols,F=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,W=Reflect.get;var w=(a,t,o)=>t in a?j(a,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[t]=o,z=(a,t)=>{for(var o in t||(t={}))U.call(t,o)&&w(a,o,t[o]);if(x)for(var o of x(t))$.call(t,o)&&w(a,o,t[o]);return a},A=(a,t)=>L(a,R(t));var T=(a,t,o)=>W(F(a),o,t);var O=(a,t,o)=>new Promise((f,h)=>{var u=s=>{try{r(o.next(s))}catch(d){h(d)}},_=s=>{try{r(o.throw(s))}catch(d){h(d)}},r=s=>s.done?f(s.value):Promise.resolve(s.value).then(u,_);r((o=o.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),H=require("./BaseComponent-9njJjeix.cjs"),b=require("./index-Bo49zvKb.cjs"),G=require("./titleStyle-NSnz6cUg.cjs"),E=require("./mix-control-modal-aUWGjwZP.cjs"),I=require("element-plus"),M=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),J={class:"font-[600]"},K={class:"submint"},Y={DEFAULT_ICON:M.DEFAULT_ICON,ACTIVE_ICON:M.ACTIVE_ICON,NAME_CN:"参数控件",NAME_EN:"Parameter Control",ORDER:1,PLATFORM:["pc","screen","mobile"]},Q={bgColor:"#fff",titleColor:"#111",textColor:"#111",titleSize:14,textSize:14,labelWidth:100,radiusSize:8,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.params.verifyMethod",options:"CONTROL_OPTIONS"}},X=[{command:"Control_01",name:"参数一",unit:"",fv:""}],Z=["name","fv","command","unit"],ee=["mosaic"],te={useAlias:!1,multiObject:!1,hideMultiObject:!0},le={DEFAULT:Y,OPTIONS:Q,DATA:X,PARAMS:Z,SOURCE:ee,COMMON:te},oe=e.defineComponent(A(z({},le),{__name:"ctrSet",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""},socketData:{type:Object,default:()=>({})}},setup(a){const t=a,o="--";class f extends H.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),titleSize:this.getOptionValue("titleSize",14),textSize:this.getOptionValue("textSize",12),labelWidth:this.getOptionValue("labelWidth",100),radiusSize:this.getOptionValue("radiusSize",4),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return O(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme()})}onPreview(){return O(this,null,function*(){yield T(f.prototype,this,"onPreview").call(this);const n=yield E.getAuthorized(this.props);r.authorized=n.authorized,r.password=n.password})}setSocketData(n){if(!n)return;const{data:i}=this.props.conf;i.forEach(m=>{const c=this.extractDataValue(n,m.fv);m.value=c!=null?c:o})}}const h=new f(t,"ctrSet");h.setupLifecycle();const u=h.getStyle(),_=e.computed(()=>G.generateTitleStyle(t.conf.options)),r=e.reactive({authorized:{type:"black_list",list:[]},password:""}),s=e.ref([]),d=e.ref(null),C=e.ref(!0),D=e.computed(()=>{var l;return((l=t.conf.data)==null?void 0:l.length)===1}),P=l=>!E.checkPermission(r.authorized,l.command),V=e.computed(()=>s.value.filter(l=>l).length===0);e.computed(()=>{var n,i;const{data:l}=t.conf;return(((n=l==null?void 0:l[0])==null?void 0:n.value)||o)+" "+(((i=l==null?void 0:l[0])==null?void 0:i.unit)||"")});const B=()=>{var i;const{options:l}=t.conf,n=((i=l==null?void 0:l.method)==null?void 0:i.value)||"alway";n==="alway"||n==="once"&&C.value?d.value.modal.visible=!0:N()},N=()=>{var p,y;const{common:l,data:n,options:i}=t.conf,m=JSON.parse(sessionStorage.getItem(b.ALIAS_MAPPING_KEY)||"{}")||{},c=l.useAlias?m[l.object_alias]:l.object_id||t.uid;if(D.value){const S={block_mapping:"mapping",action:"publish_command",object_id:c,command:n[0].command,value:s.value[0],control:r.password,rule:((p=i==null?void 0:i.method)==null?void 0:p.value)||"alway"};b.api.platform(g=>{g.code===200&&(I.ElMessage.success(g.msg),d.value.modal.visible=!1,C.value=!1)},S)}else{const S=[];s.value.forEach((v,q)=>{v&&S.push({object_id:c,command:n[q].command,value:v})});const g={block_mapping:"mapping",action:"publish_command_plus",publishes:S,control:r.password,rule:((y=i==null?void 0:i.method)==null?void 0:y.value)||"alway"};b.api.platform(v=>{v.code===200&&(I.ElMessage.success(v.msg),d.value.modal.visible=!1,C.value=!1)},g)}};return(l,n)=>{const i=k.ElInput,m=k.ElButton;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(u).bgColor,borderRadius:`${e.unref(u).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title flex-1",style:e.normalizeStyle(_.value)},[e.createElementVNode("div",J,e.toDisplayString(a.conf.caption||a.conf.name),1)],4),e.createElementVNode("div",{class:"mix-body",style:e.normalizeStyle({height:e.unref(u).isHideTitle?"100%":"calc(100% - 42px)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.conf.data,(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:"set-item",key:p,style:e.normalizeStyle({fontSize:`${e.unref(u).textSize}px`,color:e.unref(u).textColor})},[e.createElementVNode("div",{class:"item-name",style:e.normalizeStyle({width:`${e.unref(u).labelWidth}px`})},e.toDisplayString(c.name),5),e.createVNode(i,{modelValue:s.value[p],"onUpdate:modelValue":y=>s.value[p]=y,disabled:P(c)},null,8,["modelValue","onUpdate:modelValue","disabled"]),e.createVNode(i,{value:c.value?`${c.value} ${c.unit}`:o,style:{width:"100px","margin-left":"12px"},readonly:""},null,8,["value"])],4))),128)),e.createElementVNode("div",K,[e.createVNode(m,{type:V.value?"default":"primary",onClick:B,disabled:V.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])],4),e.renderSlot(l.$slots,"default",{},void 0,!0)],4),e.createVNode(E._sfc_main,{ref_key:"controlRef",ref:d,onSubmit:N,password:r.password},null,8,["password"])],64)}}})),ae=b._export_sfc(oe,[["__scopeId","data-v-9fb911b4"]]);exports.default=ae;