mixdashboards 1.0.95 → 1.0.97

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 (369) hide show
  1. package/dist/AgActionsRenderer.vue_vue_type_script_setup_true_lang-CJoNU7fs.js +139 -0
  2. package/dist/AgActionsRenderer.vue_vue_type_script_setup_true_lang-Cojc_jSG.cjs +1 -0
  3. package/dist/{BaseComponent-CIst2h8G.cjs → BaseComponent-C42zZPAg.cjs} +1 -1
  4. package/dist/{BaseComponent-CDynr4Wh.js → BaseComponent-D7kfvQid.js} +3 -3
  5. package/dist/{EChartComponentBase-vS3I7IAs.js → EChartComponentBase-CrdwK43r.js} +2 -2
  6. package/dist/{EChartComponentBase-COpfXxIp.cjs → EChartComponentBase-pfIekVB2.cjs} +1 -1
  7. package/dist/{EmergencyPlanPanel-pImR2o3P.js → EmergencyPlanPanel-CS1QmwbK.js} +1 -1
  8. package/dist/{EmergencyPlanPanel-C8P0GI7X.cjs → EmergencyPlanPanel-CjLGAAbP.cjs} +1 -1
  9. package/dist/{HistoryPlanDialog-CJt9WdEo.js → HistoryPlanDialog-B1wtkugg.js} +1 -1
  10. package/dist/{HistoryPlanDialog-CTBHiL33.cjs → HistoryPlanDialog-jhNV_Oqc.cjs} +1 -1
  11. package/dist/{MixiotAppDetailPage-BlcjJEvU.js → MixiotAppDetailPage-BiZoXtfI.js} +1 -1
  12. package/dist/{MixiotAppDetailPage-Sh5uWfZQ.cjs → MixiotAppDetailPage-CrJRBNfc.cjs} +1 -1
  13. package/dist/{MonitoringMap-Db5Evmst.cjs → MonitoringMap-Btz8PiVj.cjs} +1 -1
  14. package/dist/{MonitoringMap-Tm3_uHk4.js → MonitoringMap-Dzb6SdgR.js} +2 -2
  15. package/dist/{UniverSheet-CnA6FQC4.cjs → UniverSheet-DHfcCwtp.cjs} +1 -1
  16. package/dist/{UniverSheet-BQ80juz0.js → UniverSheet-DuL-rk5s.js} +2 -2
  17. package/dist/{accelerationChart-Bv6urq3Z.js → accelerationChart-B04m3kGz.js} +2 -2
  18. package/dist/{accelerationChart-CVWR4I6j.cjs → accelerationChart-DrJ_eq7I.cjs} +1 -1
  19. package/dist/{actionItem-Db9YTPOf.cjs → actionItem-Zm6EHUHY.cjs} +1 -1
  20. package/dist/{actionItem-eYAPDWJd.js → actionItem-e-PLFmgU.js} +2 -2
  21. package/dist/{alarmLevelChart-1UVCVoqR.js → alarmLevelChart-DdgByLdg.js} +2 -2
  22. package/dist/{alarmLevelChart-spD1sxSo.cjs → alarmLevelChart-Vu7rFfmM.cjs} +1 -1
  23. package/dist/{alertTable-D3vceqRf.cjs → alertTable-C4NnDMYg.cjs} +1 -1
  24. package/dist/{alertTable-Cq-bm31Z.js → alertTable-C5z7ILNj.js} +2 -2
  25. package/dist/{aliasObjectSelectorDemo-CqL71xrB.cjs → aliasObjectSelectorDemo-BoN6KxiC.cjs} +1 -1
  26. package/dist/{aliasObjectSelectorDemo-OMLXF6zO.js → aliasObjectSelectorDemo-C1vc4Qe6.js} +1 -1
  27. package/dist/{annualRainfallChart-D5jvzBdF.cjs → annualRainfallChart-BdFRM0vA.cjs} +1 -1
  28. package/dist/{annualRainfallChart-Bh51Y8J0.js → annualRainfallChart-Cte3Faau.js} +2 -2
  29. package/dist/{aqi-DDvUmbmk.js → aqi-BixnVgn2.js} +9 -9
  30. package/dist/{aqi-6DGC3Omw.cjs → aqi-Cgb3Vwad.cjs} +1 -1
  31. package/dist/{aqiIndass-Dm7Ak1t1.cjs → aqiIndass-Cs9Ihmtw.cjs} +1 -1
  32. package/dist/{aqiIndass-DwJPngho.js → aqiIndass-DgtV1bOL.js} +15 -15
  33. package/dist/{areaDeformCurve-EEudvN8P.cjs → areaDeformCurve-DUTOFO7B.cjs} +1 -1
  34. package/dist/{areaDeformCurve-DaVqM10Q.js → areaDeformCurve-tiJ0tblV.js} +2 -2
  35. package/dist/{arrayCard-BuhSczlA.js → arrayCard-BhMc72ZG.js} +2 -2
  36. package/dist/{arrayCard-CvNWzdkW.cjs → arrayCard-DkZVKQGQ.cjs} +1 -1
  37. package/dist/{audio-D90BXHEx.js → audio-DGJ648Nc.js} +2 -2
  38. package/dist/{audio-BS2BkAD6.cjs → audio-O6bMgHJQ.cjs} +1 -1
  39. package/dist/{bar-DMn6jdR5.js → bar-CEUnNrnA.js} +2 -2
  40. package/dist/{bar-Zfi2zEac.cjs → bar-D1DpfKwR.cjs} +1 -1
  41. package/dist/basicShapeToolbox-COWozQbc.cjs +1 -0
  42. package/dist/{basicShapeToolbox-IpvEWS3m.js → basicShapeToolbox-DuNotFN_.js} +3 -3
  43. package/dist/{bmp-nZQprsKY.cjs → bmp-BdA3u_nP.cjs} +1 -1
  44. package/dist/{bmp-BynLW8Wd.js → bmp-D_qPtSuK.js} +2 -2
  45. package/dist/{box-Dz4r4YYF.js → box-Bny02hiJ.js} +2 -2
  46. package/dist/{box-CSruteex.cjs → box-DDZH_UNM.cjs} +1 -1
  47. package/dist/{chartConfigPanel-DBF3Wx4F.cjs → chartConfigPanel-B9S6EiKT.cjs} +1 -1
  48. package/dist/{chartConfigPanel-f44Qtke-.js → chartConfigPanel-DvzAeXQE.js} +1 -1
  49. package/dist/{circleBar-CO3o8ByN.cjs → circleBar-C-p-P2K3.cjs} +1 -1
  50. package/dist/{circleBar-CtPFr6JX.js → circleBar-ISuDghgH.js} +8 -8
  51. package/dist/{clock-BRzseKic.cjs → clock-BAZ7gHGS.cjs} +1 -1
  52. package/dist/{clock-CchPRNtc.js → clock-o-g0Qpa7.js} +2 -2
  53. package/dist/{clt-BDhAtdJx.js → clt-CVEtdnpX.js} +2 -2
  54. package/dist/{clt-BLpQ1x4t.cjs → clt-DPq4dqmh.cjs} +1 -1
  55. package/dist/{cmc-twJ1AgHU.js → cmc-4m3QyBlX.js} +2 -2
  56. package/dist/{cmc-CvRgThhq.cjs → cmc-B-wg04Ri.cjs} +1 -1
  57. package/dist/{cmp-CO5hLZ1v.js → cmp-DD8sRmv_.js} +11 -11
  58. package/dist/{cmp-B0NosMZN.cjs → cmp-W-8LSAIe.cjs} +1 -1
  59. package/dist/{conclusionCard-B-ekbdhn.cjs → conclusionCard-BrrCOKf2.cjs} +1 -1
  60. package/dist/{conclusionCard-B6pdcA-3.js → conclusionCard-mbP-mRcJ.js} +2 -2
  61. package/dist/controlList-BrZys8D6.js +757 -0
  62. package/dist/controlList-DlqgQ510.cjs +1 -0
  63. package/dist/controlRecordList-B-lHEslj.cjs +1 -0
  64. package/dist/controlRecordList-BfQU3BYg.js +295 -0
  65. package/dist/{controlRecordListAPP-C7MUibBb.js → controlRecordListAPP-CV33yLCF.js} +2 -2
  66. package/dist/{controlRecordListAPP-BdT7UR3c.cjs → controlRecordListAPP-DbSRJUMy.cjs} +1 -1
  67. package/dist/crd-D8-JrYYm.cjs +1 -0
  68. package/dist/{crd-fmbrjZD7.js → crd-DpjRg2wi.js} +52 -50
  69. package/dist/{ctrBtn-W4abaB3U.cjs → ctrBtn-CKhVuncE.cjs} +1 -1
  70. package/dist/{ctrBtn-Dq6mpOsY.js → ctrBtn-DVnTSpMy.js} +3 -3
  71. package/dist/{ctrSet-xd_zIoJ2.cjs → ctrSet-D3HJgviN.cjs} +1 -1
  72. package/dist/{ctrSet-Br_MBjO-.js → ctrSet-DgMrl4yM.js} +3 -3
  73. package/dist/{ctrSwitch-CwPnRe4L.cjs → ctrSwitch-CLQPCuk8.cjs} +1 -1
  74. package/dist/{ctrSwitch-DTzUrEE_.js → ctrSwitch-CabBqoqJ.js} +3 -3
  75. package/dist/{dataManagement-BhEwqXHV.cjs → dataManagement-CmBsCjjz.cjs} +1 -1
  76. package/dist/{dataManagement-C49vYp12.js → dataManagement-DiJg7jlN.js} +2 -2
  77. package/dist/{dataReport-DSDd8eie.js → dataReport-BRKlDrnT.js} +2 -2
  78. package/dist/{dataReport-DYBqw0YQ.cjs → dataReport-C58Z1WyN.cjs} +1 -1
  79. package/dist/{dataTable-D2qgTxpB.js → dataTable-D9pJzwtQ.js} +1 -1
  80. package/dist/{dataTable-Cy-086YO.cjs → dataTable-n4TQYX4v.cjs} +1 -1
  81. package/dist/{datetime-COKFm9L5.js → datetime-B-KYzzjs.js} +2 -2
  82. package/dist/{datetime-DFUVJb4S.cjs → datetime-Cp-aTjx9.cjs} +1 -1
  83. package/dist/{deepClusterSlipSurface-DJzALgcB.js → deepClusterSlipSurface-Cb6AKo_u.js} +5 -5
  84. package/dist/{deepClusterSlipSurface-BPISTQcX.cjs → deepClusterSlipSurface-Cs4au-D7.cjs} +1 -1
  85. package/dist/{deepDataMatrix-w0cfO2B_.js → deepDataMatrix-D18UbgVg.js} +2 -2
  86. package/dist/{deepDataMatrix-Bi3g_bKW.cjs → deepDataMatrix-edH7pl5I.cjs} +1 -1
  87. package/dist/{deepDisplacement3D-C1ttX8aE.js → deepDisplacement3D-C_ezOVqs.js} +2 -2
  88. package/dist/{deepDisplacement3D-CIyaSi0I.cjs → deepDisplacement3D-CjUFL7gl.cjs} +1 -1
  89. package/dist/{deepDisplacementChart-CI7DxjHz.js → deepDisplacementChart-BNVKT9M5.js} +3 -3
  90. package/dist/{deepDisplacementChart-C2iv9NHz.cjs → deepDisplacementChart-COdOOjQT.cjs} +1 -1
  91. package/dist/{deepDisplacementChart-Dk_rmKnV.js → deepDisplacementChart-DlFZBsHh.js} +2 -2
  92. package/dist/{deepDisplacementChart-CYstKBTy.cjs → deepDisplacementChart-Tfqj9khW.cjs} +1 -1
  93. package/dist/{deepDisplacementView-CIffZ686.js → deepDisplacementView-BcYMcimK.js} +1 -1
  94. package/dist/{deepDisplacementView-Dq4b2RbZ.cjs → deepDisplacementView-C5dr_KFf.cjs} +1 -1
  95. package/dist/{deepNodeTemperatureChart-OVbfuoz6.cjs → deepNodeTemperatureChart-CyjWwmRb.cjs} +1 -1
  96. package/dist/{deepNodeTemperatureChart-C2gt2VNw.js → deepNodeTemperatureChart-DZLc9z6n.js} +5 -5
  97. package/dist/{deepTangentAngleChart-DqtJDwQf.js → deepTangentAngleChart-DsyFhBgJ.js} +6 -6
  98. package/dist/{deepTangentAngleChart-C-NNLv4_.cjs → deepTangentAngleChart-a41v2DRO.cjs} +1 -1
  99. package/dist/{deepTemperatureField-BsxBNJ-G.cjs → deepTemperatureField-BKwbER4Z.cjs} +1 -1
  100. package/dist/{deepTemperatureField-BeQX4h51.js → deepTemperatureField-CTtxBHkt.js} +7 -7
  101. package/dist/{deepTrendChart-Dk-eTMyG.cjs → deepTrendChart-B7T-ykiy.cjs} +1 -1
  102. package/dist/{deepTrendChart-sxOxHlRy.js → deepTrendChart-DCJmZ38j.js} +5 -5
  103. package/dist/{deviceOnlineStatus-J3R8H1RD.cjs → deviceOnlineStatus-DJLS5d8V.cjs} +1 -1
  104. package/dist/{deviceOnlineStatus-CKijwYuq.js → deviceOnlineStatus-vvs3IjoT.js} +2 -2
  105. package/dist/{deviceStatus-CnfzQ719.js → deviceStatus-8Y7fqV7j.js} +2 -2
  106. package/dist/{deviceStatus-Bt1e3XlG.cjs → deviceStatus-fsvw50YY.cjs} +1 -1
  107. package/dist/{displacementDataTable-B5thhB6W.cjs → displacementDataTable-CAj6C6ug.cjs} +1 -1
  108. package/dist/{displacementDataTable-CbGeB6cZ.js → displacementDataTable-zCrCdDAk.js} +2 -2
  109. package/dist/{displacementTrajectoryChart-B1p6RdoR.cjs → displacementTrajectoryChart-BArbCJTS.cjs} +1 -1
  110. package/dist/{displacementTrajectoryChart-D6BsvUrc.js → displacementTrajectoryChart-iL4iRKZ2.js} +2 -2
  111. package/dist/{displacementTrendChart-B0GB0r8C.cjs → displacementTrendChart-B_5KOzmg.cjs} +1 -1
  112. package/dist/{displacementTrendChart-D0mhffyM.js → displacementTrendChart-jI9s1jqc.js} +2 -2
  113. package/dist/{dxf-ChDppNsq.cjs → dxf-EOLYvUtK.cjs} +1 -1
  114. package/dist/{dxf-BSWNRcSp.js → dxf-Wr__XlMC.js} +2 -2
  115. package/dist/{dzc-j07WTq_9.js → dzc-BWDvHjPU.js} +12 -12
  116. package/dist/{dzc-CjI1wBLb.cjs → dzc-D8XN73z2.cjs} +1 -1
  117. package/dist/{emergencyPlan-CJljT67A.cjs → emergencyPlan-CI9EkZfn.cjs} +1 -1
  118. package/dist/{emergencyPlan-DWXloQOJ.js → emergencyPlan-DVQEu9zg.js} +3 -3
  119. package/dist/{evn-C85HtXrl.cjs → evn-2U-jKoDM.cjs} +1 -1
  120. package/dist/{evn-DVXNLw3K.js → evn-CkEHDEjn.js} +2 -2
  121. package/dist/{evolutionChart-CiSJ0zjN.js → evolutionChart-DAh8Gy4-.js} +3 -3
  122. package/dist/{evolutionChart-CzqdvPgf.cjs → evolutionChart-DxkVM36e.cjs} +1 -1
  123. package/dist/{fileViewer-AuP1BMOL.cjs → fileViewer-C8XZYud4.cjs} +1 -1
  124. package/dist/{fileViewer-BfvwEeaA.js → fileViewer-CR0Ldpe9.js} +2 -2
  125. package/dist/{filterBar-DxLYIinB.cjs → filterBar-CVm0E6_U.cjs} +1 -1
  126. package/dist/{filterBar-C6XiY3D6.js → filterBar-DWLGgMzl.js} +2 -2
  127. package/dist/{fireCombustionCurve-DZ0aQVHp.js → fireCombustionCurve-w50Ad5Qz.js} +3 -3
  128. package/dist/{fireCombustionCurve-8cJxPiAg.cjs → fireCombustionCurve-yQMkVsEM.cjs} +1 -1
  129. package/dist/{fireFilterBar-ZaI62_tT.cjs → fireFilterBar-DbmtTFOx.cjs} +1 -1
  130. package/dist/{fireFilterBar-BCnSNarb.js → fireFilterBar-Duk7OJ9Y.js} +2 -2
  131. package/dist/{fireHistoryTable-PZdwtN69.cjs → fireHistoryTable-BO6ej88t.cjs} +1 -1
  132. package/dist/{fireHistoryTable-BXC6ZYkJ.js → fireHistoryTable-DPBVjZiJ.js} +2 -2
  133. package/dist/{gag-CbkboK8w.cjs → gag-BMTle0iW.cjs} +1 -1
  134. package/dist/{gag--ZAXdXFK.js → gag-CSAmkyDD.js} +5 -5
  135. package/dist/{gasStationList-DvzI0A1r.js → gasStationList-CQgakcsg.js} +2 -2
  136. package/dist/{gasStationList-Cw7AH91B.cjs → gasStationList-DnQK3yKb.cjs} +1 -1
  137. package/dist/{geo3dViewer-mFrWGimz.cjs → geo3dViewer-BIlig7g_.cjs} +1 -1
  138. package/dist/{geo3dViewer-fK7PZCvz.js → geo3dViewer-mJDVY5cp.js} +3 -3
  139. package/dist/{glbModel-BgqZX5Vh.js → glbModel-BzxP8shl.js} +2 -2
  140. package/dist/{glbModel-iV3SV8Ig.cjs → glbModel-DnWXDJic.cjs} +1 -1
  141. package/dist/{globalObjectSelector-DKw1vigz.cjs → globalObjectSelector-Cp55ZFxL.cjs} +1 -1
  142. package/dist/{globalObjectSelector-EwvayNUM.js → globalObjectSelector-lYWLbEt8.js} +1 -1
  143. package/dist/{gnssFilterBar-Bh0x2hth.js → gnssFilterBar-4yJR6Hid.js} +2 -2
  144. package/dist/{gnssFilterBar-X7HKdDTm.cjs → gnssFilterBar-BcXsjKvN.cjs} +1 -1
  145. package/dist/{gnssHistoryTable-DgH6SjDn.cjs → gnssHistoryTable-CQhYzIkF.cjs} +1 -1
  146. package/dist/{gnssHistoryTable-CRnzvH_A.js → gnssHistoryTable-V6L8Mapo.js} +2 -2
  147. package/dist/{gnssMapView-Dw4_9_Mv.js → gnssMapView-B-uzWumH.js} +4 -4
  148. package/dist/{gnssMapView-WYpkFEvR.cjs → gnssMapView-CCJ_Y4o6.cjs} +2 -2
  149. package/dist/{gnssSectionProfile-DmQNxm5Z.js → gnssSectionProfile-B8Rt-CF9.js} +2 -2
  150. package/dist/{gnssSectionProfile-CkWQ6OJ5.cjs → gnssSectionProfile-B_8IErhJ.cjs} +1 -1
  151. package/dist/{gnssTimeSeriesChart-XHZlhMj6.js → gnssTimeSeriesChart-BaP9brVp.js} +2 -2
  152. package/dist/{gnssTimeSeriesChart-DQgAq0a7.cjs → gnssTimeSeriesChart-IF2Zzgya.cjs} +1 -1
  153. package/dist/{gnssXYTrajectory-CSo1u1n3.js → gnssXYTrajectory-BNXHdP5L.js} +2 -2
  154. package/dist/{gnssXYTrajectory-DGHeShyk.cjs → gnssXYTrajectory-DZXUOtdZ.cjs} +1 -1
  155. package/dist/{grd-CZkreEUN.js → grd-CRF5hQq3.js} +2 -2
  156. package/dist/{grd-v0lK1kF4.cjs → grd-q2JwG1LL.cjs} +1 -1
  157. package/dist/{grdIndass-BT0BFDGR.cjs → grdIndass-B_nXfqqR.cjs} +1 -1
  158. package/dist/{grdIndass-D6yoBQ17.js → grdIndass-C8DPNROD.js} +2 -2
  159. package/dist/{grg-DRWv1y-A.cjs → grg-DHuXQP_O.cjs} +1 -1
  160. package/dist/{grg-DckR9cWt.js → grg-M9MwBK9q.js} +6 -6
  161. package/dist/{gridview-BNsYOW5h.cjs → gridview-DLILP3no.cjs} +1 -1
  162. package/dist/{gridview-BeWxnPvt.js → gridview-DTqcftjZ.js} +2 -2
  163. package/dist/{groundwaterFilterBar-yRYOHhla.js → groundwaterFilterBar-DwrhRk_v.js} +2 -2
  164. package/dist/{groundwaterFilterBar-DlJ6qtXT.cjs → groundwaterFilterBar-zXbia-fX.cjs} +1 -1
  165. package/dist/{groundwaterProfileChart-DH4qqAPc.cjs → groundwaterProfileChart-DrdP76cd.cjs} +2 -2
  166. package/dist/{groundwaterProfileChart-Bt_O3O-n.js → groundwaterProfileChart-PjBzMvbw.js} +3 -3
  167. package/dist/{groundwaterTimeCurve-Ck0jjuL8.js → groundwaterTimeCurve-DInTJEEl.js} +3 -3
  168. package/dist/{groundwaterTimeCurve-BXMGUMmt.cjs → groundwaterTimeCurve-DYk42p1p.cjs} +1 -1
  169. package/dist/{groupCard-D0UsDuiC.js → groupCard-BrNzGFVs.js} +2 -2
  170. package/dist/{groupCard-B-IRFBAh.cjs → groupCard-CNuEYy3p.cjs} +1 -1
  171. package/dist/{headerBar-B1WEFdX3.cjs → headerBar-BEoo20so.cjs} +1 -1
  172. package/dist/{headerBar-D5Xt_cgG.js → headerBar-C5tkesYI.js} +2 -2
  173. package/dist/{history-DQBAOa1f.js → history-D_JkziAv.js} +1 -1
  174. package/dist/{history-CDhWtnKJ.cjs → history-b7zBiHDz.cjs} +1 -1
  175. package/dist/{index-dAR2gb1S.js → index-CaDDNmGU.js} +3725 -3636
  176. package/dist/index-PR_k3tQg.cjs +615 -0
  177. package/dist/{insarDeformChart-Ca-7OxkY.js → insarDeformChart-C5PiLbYU.js} +2 -2
  178. package/dist/{insarDeformChart-Cpj6erLV.cjs → insarDeformChart-DBXyVjKk.cjs} +1 -1
  179. package/dist/{insarImageViewer-B13fJI8O.cjs → insarImageViewer-B9-QQ_De.cjs} +1 -1
  180. package/dist/{insarImageViewer-DPl6v87T.js → insarImageViewer-BEeQiS6N.js} +2 -2
  181. package/dist/{kds-DOWMe1al.js → kds-BoR05GUP.js} +10 -10
  182. package/dist/{kds-BKeCFcf9.cjs → kds-JbCbEtJs.cjs} +1 -1
  183. package/dist/{kpiCard-qgFod_Ua.cjs → kpiCard-7v6bZGP2.cjs} +1 -1
  184. package/dist/{kpiCard-CCFRhtwi.js → kpiCard-BP-GnthE.js} +2 -2
  185. package/dist/{landslideMap-BQlFx7Cv.js → landslideMap-BMu2X2bN.js} +3 -3
  186. package/dist/{landslideMap-BzeioyHt.cjs → landslideMap-D59SrOZE.cjs} +1 -1
  187. package/dist/{landslideWarning-VULyaEXL.cjs → landslideWarning-C_hcQ1wr.cjs} +1 -1
  188. package/dist/{landslideWarning-M7D7Bl_l.js → landslideWarning-DeB2bNpu.js} +5 -5
  189. package/dist/{layerTabs-BlaGgxva.js → layerTabs-ByZZMwks.js} +2 -2
  190. package/dist/{layerTabs-DMUf84AC.cjs → layerTabs-C1XclQOC.cjs} +1 -1
  191. package/dist/{leaflet-src-ClJjz25G.js → leaflet-src-O0MJ0wU5.js} +1 -1
  192. package/dist/{leaflet-src-DV6okrEg.cjs → leaflet-src-w8JmXMPG.cjs} +1 -1
  193. package/dist/{lerc-CI8uTaV0.js → lerc-BSgE4FKp.js} +2 -2
  194. package/dist/{lerc-DgZ-wqgS.cjs → lerc-C0ekD7Me.cjs} +1 -1
  195. package/dist/{lin-B1h1vCEM.cjs → lin-DGOJIF6s.cjs} +1 -1
  196. package/dist/{lin-DoCO7YNv.js → lin-DGafw8zf.js} +11 -11
  197. package/dist/{linIndass-0AjC0BWn.cjs → linIndass-BERNb4X3.cjs} +1 -1
  198. package/dist/{linIndass-CBpi3PAZ.js → linIndass-BLAQz5op.js} +6 -6
  199. package/dist/{lst-Di4jQX13.cjs → lst-BbLp5U-f.cjs} +1 -1
  200. package/dist/{lst-DOQ0I-QM.js → lst-Cb1RdJ3D.js} +2 -2
  201. package/dist/{manualEntry-Cbkj0184.js → manualEntry-C3aJpT9g.js} +2 -2
  202. package/dist/{manualEntry-P8Nl97Qi.cjs → manualEntry-Ztj3fH3A.cjs} +1 -1
  203. package/dist/{mapBackground-DQ9_4u47.js → mapBackground-BPNim3nv.js} +3 -3
  204. package/dist/{mapBackground-B8qmaFhT.cjs → mapBackground-CzRZzD1O.cjs} +1 -1
  205. package/dist/mappingList-B6NYcjIa.js +790 -0
  206. package/dist/mappingList-B_FVwWfC.cjs +1 -0
  207. package/dist/{markdownViewer-CUD-sV4Y.cjs → markdownViewer-BPdAvoWW.cjs} +1 -1
  208. package/dist/{markdownViewer-DoNdzIKf.js → markdownViewer-CSMB8l93.js} +2 -2
  209. package/dist/materialFileUrl-BR6anfF2.cjs +1 -0
  210. package/dist/materialFileUrl-BUkIkwgp.js +108 -0
  211. package/dist/{mix-control-modal-Ckptw_rw.js → mix-control-modal-46dJ4X4L.js} +1 -1
  212. package/dist/{mix-control-modal-C_uKEO_a.cjs → mix-control-modal-oDAz2GZ_.cjs} +1 -1
  213. package/dist/{mixGrid-6zeicQ3c.cjs → mixGrid-1tOrywk7.cjs} +1 -1
  214. package/dist/{mixGrid-CTVvp9QF.js → mixGrid-F-d2hIht.js} +2 -2
  215. package/dist/mixdashboards.cjs +1 -1
  216. package/dist/mixdashboards.css +1 -1
  217. package/dist/mixdashboards.js +1 -1
  218. package/dist/{mjpegCamera-iTrVcLgw.cjs → mjpegCamera-Bzf9Zlb9.cjs} +1 -1
  219. package/dist/{mjpegCamera-Vcjc4TDv.js → mjpegCamera-CAR217Pv.js} +2 -2
  220. package/dist/{monitorAlert-C-4k1_jT.cjs → monitorAlert-BJtWNV53.cjs} +1 -1
  221. package/dist/{monitorAlert-Dr38wAgW.js → monitorAlert-CD2NRVzR.js} +2 -2
  222. package/dist/{monitorData-C1TidDg9.js → monitorData-CviwIANH.js} +2 -2
  223. package/dist/{monitorData-CZVyYd2r.cjs → monitorData-D2rrSoJh.cjs} +1 -1
  224. package/dist/{monitorSpeedChart-17C8sMrk.cjs → monitorSpeedChart-BUfGJsBO.cjs} +1 -1
  225. package/dist/{monitorSpeedChart-BcpBU8eq.js → monitorSpeedChart-DCMb9kVx.js} +1 -1
  226. package/dist/{mxa-CM0cQhnm.js → mxa-CAgh10Ux.js} +6 -6
  227. package/dist/{mxa-Bgnj8E8y.cjs → mxa-CTkUFkJB.cjs} +1 -1
  228. package/dist/{myValue-8ohRFr2E.js → myValue-BwWuUkn0.js} +2 -2
  229. package/dist/{myValue-BLbSXlWk.cjs → myValue-CTtwYm45.cjs} +1 -1
  230. package/dist/{myValueList-CHcuWTTH.cjs → myValueList-8goYepha.cjs} +1 -1
  231. package/dist/{myValueList-COjvkd2-.js → myValueList-D-EbIIcT.js} +2 -2
  232. package/dist/objectList-B6S5Vbt7.js +1824 -0
  233. package/dist/objectList-Dbkam4GS.cjs +1 -0
  234. package/dist/{objectListAPP-bzNJlVaA.js → objectListAPP-6EVjt25O.js} +3 -3
  235. package/dist/{objectListAPP-Dq8fHxp8.cjs → objectListAPP-BRDAVQcL.cjs} +1 -1
  236. package/dist/{percentBar-FUCfrT8V.js → percentBar-CXFGCu39.js} +9 -9
  237. package/dist/{percentBar-SFYgecHA.cjs → percentBar-CllO6t03.cjs} +1 -1
  238. package/dist/photo-Bm9bjJ5L.cjs +1 -0
  239. package/dist/{photo-TgHIe0Ch.js → photo-CISKz3py.js} +4 -4
  240. package/dist/{pie-C48Objcw.js → pie-B3nio1dC.js} +8 -8
  241. package/dist/{pie-BZ77ZyhE.cjs → pie-CsZff0UE.cjs} +1 -1
  242. package/dist/{placeholder-_psD4WXJ.cjs → placeholder-CPgwWlNB.cjs} +1 -1
  243. package/dist/{placeholder-CxNDI9H6.js → placeholder-q3O8Bva5.js} +1 -1
  244. package/dist/{pressBtn-B5Z00Ths.js → pressBtn-BSWda69G.js} +3 -3
  245. package/dist/{pressBtn-DPKQTc72.cjs → pressBtn-Bq1_wegh.cjs} +1 -1
  246. package/dist/{processTable-DHGOo7NC.cjs → processTable-BP4EKe75.cjs} +1 -1
  247. package/dist/{processTable-Dy8AKXfL.js → processTable-C9Q2jiVC.js} +2 -2
  248. package/dist/{progressBar-DAkhmQGk.cjs → progressBar-Bb9apofa.cjs} +1 -1
  249. package/dist/{progressBar-BsbB_lCn.js → progressBar-DGI1hKbd.js} +2 -2
  250. package/dist/{progressCircle-Bo6lG0y4.cjs → progressCircle-BRbfwnB-.cjs} +1 -1
  251. package/dist/{progressCircle-dtQ2Mr98.js → progressCircle-B_yHB1bZ.js} +2 -2
  252. package/dist/{qrcode-PDPXI73T.js → qrcode-B4O103tY.js} +308 -307
  253. package/dist/qrcode-CMYqHUmi.cjs +1 -0
  254. package/dist/{raceBar-CORYOqMg.cjs → raceBar-BBTSuU97.cjs} +1 -1
  255. package/dist/{raceBar-BuuLeY-X.js → raceBar-CJ4qBGhx.js} +6 -6
  256. package/dist/{rad-CNwy6iai.js → rad-DR-duEfw.js} +7 -7
  257. package/dist/{rad-BmQsBbVy.cjs → rad-np3W7CAD.cjs} +1 -1
  258. package/dist/{radarMapViewer-BADJdQo5.js → radarMapViewer-BVtJ2q6c.js} +2 -2
  259. package/dist/{radarMapViewer-CrMIxOBL.cjs → radarMapViewer-kbdzbDKP.cjs} +1 -1
  260. package/dist/{rainfallFilterBar-CiOm_zYw.js → rainfallFilterBar-CYpib1XL.js} +2 -2
  261. package/dist/{rainfallFilterBar-MmjGAJRF.cjs → rainfallFilterBar-DuZwhtKa.cjs} +1 -1
  262. package/dist/{rainfallTimeCurve-BAKEsUwe.js → rainfallTimeCurve-BT4rE2Vc.js} +3 -3
  263. package/dist/{rainfallTimeCurve-C2ysFIbv.cjs → rainfallTimeCurve-DYWpLoT1.cjs} +1 -1
  264. package/dist/{rangeLin-DBV9Ss9P.js → rangeLin-BBcJ9PnJ.js} +7 -7
  265. package/dist/{rangeLin-6kOG5U0P.cjs → rangeLin-ChaYkb8_.cjs} +1 -1
  266. package/dist/{realtimeEvolutionMap-C8Dsp61U.js → realtimeEvolutionMap-CJxCeMCD.js} +2 -2
  267. package/dist/{realtimeEvolutionMap-RVlodvbx.cjs → realtimeEvolutionMap-UFga_5-Z.cjs} +1 -1
  268. package/dist/{regionBar-CuD510qV.cjs → regionBar-CdvwMj9w.cjs} +1 -1
  269. package/dist/{regionBar-sPagXetw.js → regionBar-D2tQM5cu.js} +2 -2
  270. package/dist/{request-DtzGiXvj.cjs → request-CBFwthty.cjs} +1 -1
  271. package/dist/{request-Do8WJeMw.js → request-D0RrTUSz.js} +1 -1
  272. package/dist/{retainer1-C8Do2c08.cjs → retainer1-BGV2MuUp.cjs} +1 -1
  273. package/dist/{retainer1-CrZIpnRg.js → retainer1-YHosRvc1.js} +3 -3
  274. package/dist/{retainer2-BG9yfpJ5.cjs → retainer2-Un2rhmxB.cjs} +1 -1
  275. package/dist/{retainer2-0h4QPS_q.js → retainer2-Wvm3l39y.js} +3 -3
  276. package/dist/retainerRecordList-C_aduEsj.cjs +1 -0
  277. package/dist/retainerRecordList-CqOPgM_e.js +772 -0
  278. package/dist/{retainerRecordListAPP-DPcEWs2r.js → retainerRecordListAPP-CutsTHxC.js} +3 -3
  279. package/dist/{retainerRecordListAPP-DYifrv8O.cjs → retainerRecordListAPP-UOXVHQzs.cjs} +1 -1
  280. package/dist/{ringTopN-DqDVlrjM.js → ringTopN-BhDlEOCJ.js} +5 -5
  281. package/dist/{ringTopN-CrJ_d3bE.cjs → ringTopN-mA9LAgFN.cjs} +1 -1
  282. package/dist/{riskRegionTable-DP2yKg1m.js → riskRegionTable-CYTLnsH-.js} +2 -2
  283. package/dist/{riskRegionTable-DXn7fEY5.cjs → riskRegionTable-Cm9BsaWA.cjs} +1 -1
  284. package/dist/{sankey-Bu-SU7-2.cjs → sankey-BmvrkXRY.cjs} +1 -1
  285. package/dist/{sankey-CT3ba6e5.js → sankey-jU9Dscb_.js} +8 -8
  286. package/dist/{scd-DLEMda1z.js → scd-CGTKGaWO.js} +3 -3
  287. package/dist/{scd-B0uAZi1c.cjs → scd-TQcCDjoj.cjs} +1 -1
  288. package/dist/{sideMenu-NDBmswKS.js → sideMenu-CtdLmpLX.js} +2 -2
  289. package/dist/{sideMenu-D5CiGthZ.cjs → sideMenu-D4uEDc38.cjs} +1 -1
  290. package/dist/{slopeStability-DHEMnZQs.cjs → slopeStability-B-LzCvR7.cjs} +1 -1
  291. package/dist/{slopeStability-Bm83R1CK.js → slopeStability-H7iiOf5G.js} +2 -2
  292. package/dist/{speedCurve-COz1e5fR.cjs → speedCurve-BKMR6Z0r.cjs} +1 -1
  293. package/dist/{speedCurve-DMzIHREh.js → speedCurve-lgD_hG_W.js} +2 -2
  294. package/dist/{stackedBar-Co04v-nd.js → stackedBar-BJu9_GI7.js} +9 -9
  295. package/dist/{stackedBar-Cj1vVULH.cjs → stackedBar-D-goARDv.cjs} +1 -1
  296. package/dist/{stressFilterBar-CFgshgvm.js → stressFilterBar-BOsQJoK_.js} +2 -2
  297. package/dist/{stressFilterBar-wfAWtOIp.cjs → stressFilterBar-D6qiNCAj.cjs} +1 -1
  298. package/dist/{stressTimeCurve-CwMkdryb.js → stressTimeCurve-Bgxr5Wrf.js} +3 -3
  299. package/dist/{stressTimeCurve-BRvsiFhp.cjs → stressTimeCurve-BwZLKFHb.cjs} +1 -1
  300. package/dist/{swiper-DA6nGJfp.js → swiper-CRtoulGh.js} +2 -2
  301. package/dist/{swiper-CPMWAfwl.cjs → swiper-D82oGlpT.cjs} +1 -1
  302. package/dist/syncMixiotListConfig-CD0wWvPU.js +34192 -0
  303. package/dist/syncMixiotListConfig-Cpgnkkws.cjs +200 -0
  304. package/dist/tablemanList-10EHbXgv.cjs +1 -0
  305. package/dist/tablemanList-DmHYElUp.js +888 -0
  306. package/dist/terminalConfigList-D6NiHYBX.js +888 -0
  307. package/dist/terminalConfigList-cHJ-LVj5.cjs +1 -0
  308. package/dist/terminalList-BVovhzGU.cjs +1 -0
  309. package/dist/terminalList-CTBcP9xm.js +1046 -0
  310. package/dist/{terminalListAPP-Bj7pUZTy.cjs → terminalListAPP-Cwe2xdL6.cjs} +1 -1
  311. package/dist/{terminalListAPP-37PqyT3O.js → terminalListAPP-afa_Ibtw.js} +3 -3
  312. package/dist/{textbox-DG4Wr4Zt.js → textbox-BLANVfpn.js} +2 -2
  313. package/dist/{textbox-CawmOfBp.cjs → textbox-D1Qwf3d2.cjs} +1 -1
  314. package/dist/{timeQueryBar-CD-5fWy6.js → timeQueryBar-BHTy_h6G.js} +1 -1
  315. package/dist/{timeQueryBar-Bqc3rENc.cjs → timeQueryBar-CNbq5Bet.cjs} +1 -1
  316. package/dist/{timeSeries-CopKSs1l.cjs → timeSeries-CVz4_Q5W.cjs} +1 -1
  317. package/dist/{timeSeries-BzGYz4rY.js → timeSeries-DSzv8Sp2.js} +3 -3
  318. package/dist/{timeSeriesCurve-m0ics-PW.js → timeSeriesCurve-DSAYjkRU.js} +3 -3
  319. package/dist/{timeSeriesCurve-ejwsuDRh.cjs → timeSeriesCurve-yQo3qHHo.cjs} +1 -1
  320. package/dist/{toggleBtn-C-nuKRcD.js → toggleBtn-COE-GX9z.js} +9 -9
  321. package/dist/{toggleBtn-CSEv5acM.cjs → toggleBtn-CsetEz6X.cjs} +1 -1
  322. package/dist/{trajectoryConfigPanel-Cp-3rnXO.cjs → trajectoryConfigPanel-BS6SAfIu.cjs} +1 -1
  323. package/dist/{trajectoryConfigPanel-Af97dCSS.js → trajectoryConfigPanel-BzJcwd-3.js} +1 -1
  324. package/dist/{trajectoryScatter-De9UG6j1.js → trajectoryScatter-DSj9tCgT.js} +5 -5
  325. package/dist/{trajectoryScatter-BoTLmylA.cjs → trajectoryScatter-ftlV7dd0.cjs} +1 -1
  326. package/dist/{universalConfigPanel-Dit0ntD6.js → universalConfigPanel-BzY0yL6m.js} +1 -1
  327. package/dist/{universalConfigPanel-XvxA7QRD.cjs → universalConfigPanel-DjClEju7.cjs} +1 -1
  328. package/dist/{universalTable-Uu7dh0aG.cjs → universalTable-DPu429rn.cjs} +1 -1
  329. package/dist/{universalTable-BssOWAuT.js → universalTable-JvMM251F.js} +2 -2
  330. package/dist/{video-CJtGAYJU.cjs → video-BZbt1v0N.cjs} +10 -10
  331. package/dist/{video-Mbk0ZeLf.js → video-OJsr6jxT.js} +218 -191
  332. package/dist/{videoMonitor-DmL2qXe0.js → videoMonitor-BcfssQX4.js} +2 -2
  333. package/dist/{videoMonitor-B3pFfxQs.cjs → videoMonitor-DWNh0F6P.cjs} +1 -1
  334. package/dist/{vlu-D32xqnoV.js → vlu-BXyZcEQh.js} +2 -2
  335. package/dist/{vlu-XFWtxEvv.cjs → vlu-BrVly_o-.cjs} +1 -1
  336. package/dist/{warningOverview-COPwxqAR.js → warningOverview-C8qJNEFc.js} +3 -3
  337. package/dist/{warningOverview-DM5hXwpU.cjs → warningOverview-YqxTqkG6.cjs} +1 -1
  338. package/dist/{weather-B-KIS-ju.cjs → weather-Ba0ATW6-.cjs} +1 -1
  339. package/dist/{weather-CdxthMeR.js → weather-Drd-bMhZ.js} +2 -2
  340. package/dist/{windLin-FzPQoyak.cjs → windLin-5NXNHy9D.cjs} +1 -1
  341. package/dist/{windLin-BgUBtwgj.js → windLin-DFzNiUCz.js} +9 -9
  342. package/package.json +4 -4
  343. package/dist/basicShapeToolbox-XDdKQhh3.cjs +0 -1
  344. package/dist/controlList-Dnoaci0A.js +0 -831
  345. package/dist/controlList-dtqVlRpr.cjs +0 -1
  346. package/dist/controlRecordList-B9LUt_5C.cjs +0 -1
  347. package/dist/controlRecordList-D1Q7xLf4.js +0 -356
  348. package/dist/crd-BThv1Z-E.cjs +0 -1
  349. package/dist/index-5jeBLy74.cjs +0 -612
  350. package/dist/mappingList-C5Z35UKc.js +0 -874
  351. package/dist/mappingList-DPzBIPSp.cjs +0 -1
  352. package/dist/materialFileUrl-CubtnHeq.js +0 -108
  353. package/dist/materialFileUrl-DfPNm265.cjs +0 -1
  354. package/dist/objectList-C0VYvS35.js +0 -1949
  355. package/dist/objectList-YyLH8wsA.cjs +0 -1
  356. package/dist/photo-qUJBBWcl.cjs +0 -1
  357. package/dist/qrcode-e5STOK-h.cjs +0 -1
  358. package/dist/retainerRecordList-CRZXn8qs.js +0 -833
  359. package/dist/retainerRecordList-TfKyqBNI.cjs +0 -1
  360. package/dist/syncMixiotListConfig-CiyYjyPz.js +0 -259
  361. package/dist/syncMixiotListConfig-Dke6MCA9.cjs +0 -1
  362. package/dist/tablemanList-BOFkLUE6.cjs +0 -1
  363. package/dist/tablemanList-Cy40wppA.js +0 -954
  364. package/dist/terminalConfigList-BcHRePUS.js +0 -978
  365. package/dist/terminalConfigList-DCT3FbXq.cjs +0 -1
  366. package/dist/terminalList-BTyk3rSA.cjs +0 -1
  367. package/dist/terminalList-Czr6nBtS.js +0 -1163
  368. /package/dist/{vue-router-CRhRQNx-.cjs → useApi-DtucMc-S-CRhRQNx-.cjs} +0 -0
  369. /package/dist/{vue-router-ha66t1D5.js → useApi-DtucMc-S-ha66t1D5.js} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";var ve=Object.defineProperty,ye=Object.defineProperties;var he=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable;var X=(c,n,d)=>n in c?ve(c,n,{enumerable:!0,configurable:!0,writable:!0,value:d}):c[n]=d,J=(c,n)=>{for(var d in n||(n={}))Ne.call(n,d)&&X(c,d,n[d]);if(Q)for(var d of Q(n))xe.call(n,d)&&X(c,d,n[d]);return c},Y=(c,n)=>ye(c,he(n));var b=(c,n,d)=>new Promise((M,V)=>{var W=h=>{try{T(d.next(h))}catch(B){V(B)}},$=h=>{try{T(d.throw(h))}catch(B){V(B)}},T=h=>h.done?M(h.value):Promise.resolve(h.value).then(W,$);T((d=d.apply(c,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");const z=require("./syncMixiotListConfig-Cpgnkkws.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"),Ce=require("./useMixiotPanelSurface-CAZgexY5.cjs"),we=require("./BaseComponent-C42zZPAg.cjs"),_=require("./index-PR_k3tQg.cjs"),be=require("./titleStyle-NSnz6cUg.cjs"),u=require("element-plus"),_e=require("@element-plus/icons-vue"),Se=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),Ee=require("./AgActionsRenderer.vue_vue_type_script_setup_true_lang-Cojc_jSG.cjs"),Z=require("./ele-lst-icon-CrxnHZ-A.cjs"),Te={class:"mix-body"},ke={class:"top-bar"},Oe={class:"view-body"},De={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"控制码列表",NAME_EN:"ControlList",ORDER:3,PLATFORM:["pc","screen"]},Me={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:[]},ee=[{add:!0,view:!0,edit:!0,archive:!0,delete:!0}],Be=[{key:"add",label:"添加控制码",type:"checkbox"}],Ae=[{key:"view",label:"查看",type:"checkbox"},{key:"edit",label:"编辑",type:"checkbox"},{key:"archive",label:"资料备档",type:"checkbox"},{key:"delete",label:"删除",type:"checkbox"}],qe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Le={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"name",label:"setting.gridFields.name"},{value:"uid",label:"setting.gridFields.uid"},{value:"alias",label:"setting.gridFields.objectAlias"},{value:"description",label:"setting.gridFields.description"}]},Ue={DEFAULT:De,OPTIONS:Me,DATA:ee,COMMANDS:Be,OPERATIONS:Ae,SOURCE:qe,COMMON:Le},Fe=e.defineComponent(Y(J({},Ue),{__name:"controlList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""},controlUidList:{default:()=>[]}},setup(c){const n=c;class d extends we.BaseComponent{getDataBool(t,a){var f,s;const r=(s=(f=this.props.conf)==null?void 0:f.data)==null?void 0:s[0];return r&&Object.prototype.hasOwnProperty.call(r,t)&&r[t]!==void 0?!!r[t]:this.getOptionValue(t,a)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),isHideTitle:this.getOptionValue("isHideTitle",!1),add:this.getDataBool("add",!0),view:this.getDataBool("view",!0),edit:this.getDataBool("edit",!0),archive:this.getDataBool("archive",!0),delete:this.getDataBool("delete",!0)}}init(){return b(this,null,function*(){this.applyTheme(),z.setupMixiotListConf(this.props.conf,{add:!0,view:!0,edit:!0,archive:!0,delete:!0},ee),this.Style.value=this.extractStyles()})}}const M=new d(n,"controlList");M.setupLifecycle();const V=M.getStyle(),W=e.computed(()=>z.computeMixiotActionColumnMinWidth(V.value,{view:60,edit:60,archive:88,delete:60})),{mixiotPanelClass:$,mixiotPanelRootStyle:T}=Ce.useMixiotPanelSurface(V),{tableWrapRef:h,tableBodyHeight:B}=useTableBodyHeight(),te=e.computed(()=>be.generateTitleStyle(n.conf.options)),le=e.computed(()=>z.buildMixiotColumnsConfig(n.conf)),N=e.reactive({current:1,pageSize:10,total:0}),A=e.ref(""),j=e.ref("name"),q=e.ref([]),H=e.ref(!1);function oe(){const i={page_index:N.current,page_size:N.pageSize},t=[],a=A.value.trim();return a&&t.push([j.value,"like",`%${a}%`]),Se.appendCommonDesignerWhereAnd(n.conf.common,t),t.length&&(i.where_and=JSON.stringify(t)),i}function x(){return b(this,null,function*(){var i,t;H.value=!0;try{const a=yield _.api.http("control_list",oe(),!0),r=(i=a==null?void 0:a.result)!=null?i:a;let f=Array.isArray(r==null?void 0:r.data)?[...r.data]:[];if((t=n.controlUidList)!=null&&t.length){const m=new Set(n.controlUidList.map(String));f=f.filter(S=>m.has(String(S.uid)))}q.value=f;const s=r==null?void 0:r.total_records;N.total=typeof s=="number"?s:f.length,a&&a.code!==void 0&&a.code!==200&&console.warn("[controlList] 列表接口非成功",a.msg||a.info,a)}catch(a){console.error(a),q.value=[],N.total=0}finally{H.value=!1}})}const ie={AgActionsRenderer:Ee._sfc_main},ae=e.computed(()=>{const i=le.value.filter(t=>t.visible).map(t=>({field:t.prop,headerName:t.label,width:t.width||t.minWidth||120,minWidth:t.minWidth||80}));return i.push({headerName:"操作",minWidth:W.value,pinned:"right",cellRenderer:"AgActionsRenderer",cellRendererParams:{showView:V.value.view,showEdit:V.value.edit,showArchive:V.value.archive,showDelete:V.value.delete,onView:fe,onEdit:de,onArchive:ge,onDelete:Ve}}),i});function ne(){x()}e.computed(()=>q.value);function G(){N.current=1,x()}function re(){A.value="",N.current=1,x()}e.watch(()=>{var i;return(i=n.controlUidList)==null?void 0:i.join(",")},()=>{N.current=1,x()});const k=e.ref(!1),O=e.ref(!1),C=e.ref(!1),o=e.reactive({id:0,uid:"",name:"",alias:"",description:"",script:"[]",template:"[]"});function L(){o.id=0,o.uid="",o.name="",o.alias="",o.description="",o.script="[]",o.template="[]"}function U(i,t){const a=(i==null?void 0:i.trim())||"";if(!a)return t;try{return JSON.stringify(JSON.parse(a))}catch(r){return null}}function se(){L(),k.value=!0}function de(i){return b(this,null,function*(){var t,a,r,f,s,m,S,g,D,E,y,P;L(),O.value=!0,C.value=!0;try{const w=yield _.api.http("control_item",{uid:i.uid},!0),l=(t=w==null?void 0:w.result)!=null?t:w;if(l&&typeof l=="object"){o.id=Number(l.id)||0,o.uid=String((r=(a=l.uid)!=null?a:i.uid)!=null?r:""),o.name=String((f=l.name)!=null?f:""),o.alias=String((s=l.alias)!=null?s:""),o.description=String((m=l.description)!=null?m:"");const R=l.script;o.script=typeof R=="string"?R:R!=null?JSON.stringify(R):"[]";const I=l.template;o.template=typeof I=="string"?I:I!=null?JSON.stringify(I):"[]"}else o.uid=String(i.uid),o.name=String((S=i.name)!=null?S:""),o.alias=String((g=i.alias)!=null?g:""),o.description=String((D=i.description)!=null?D:"")}catch(w){o.uid=String(i.uid),o.name=String((E=i.name)!=null?E:""),o.alias=String((y=i.alias)!=null?y:""),o.description=String((P=i.description)!=null?P:""),u.ElMessage.warning("拉取控制码详情失败,已使用列表行数据编辑")}finally{C.value=!1}})}function ue(){return b(this,null,function*(){var a;if(!((a=o.name)!=null&&a.trim())){u.ElMessage.warning("请填写控制码名称");return}const i=U(o.script,"[]"),t=U(o.template,"[]");if(i===null||t===null){u.ElMessage.error("脚本或模板不是合法 JSON");return}C.value=!0;try{yield _.api.http("control_create",{name:o.name.trim(),alias:o.alias.trim(),description:o.description,script:i,template:t},!0),u.ElMessage.success("添加成功"),k.value=!1,yield x()}catch(r){u.ElMessage.error("添加失败")}finally{C.value=!1}})}function ce(){return b(this,null,function*(){var a;if(!((a=o.name)!=null&&a.trim())){u.ElMessage.warning("请填写控制码名称");return}const i=U(o.script,"[]"),t=U(o.template,"[]");if(i===null||t===null){u.ElMessage.error("脚本或模板不是合法 JSON");return}C.value=!0;try{yield _.api.http("control_update",{id:o.id,uid:o.uid,name:o.name.trim(),alias:o.alias.trim(),description:o.description,script:i,template:t},!0),u.ElMessage.success("保存成功"),O.value=!1,yield x()}catch(r){u.ElMessage.error("保存失败")}finally{C.value=!1}})}const F=e.ref(!1),K=e.ref(!1),p=e.ref(null);function pe(i){if(i==null)return"";if(typeof i=="string")try{return JSON.stringify(JSON.parse(i),null,2)}catch(t){return i}try{return JSON.stringify(i,null,2)}catch(t){return String(i)}}const me=e.computed(()=>p.value?pe(p.value.script):"");function fe(i){return b(this,null,function*(){p.value=null,F.value=!0,K.value=!0;try{const t=yield _.api.http("control_item",{uid:i.uid},!0),a=t==null?void 0:t.result;a&&typeof a=="object"?p.value=a:(p.value=J({},i),u.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){p.value=J({},i),u.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{K.value=!1}})}function ge(i){u.ElMessageBox.confirm(`确认对控制码「${i.name||i.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{u.ElMessage.success("已提交备档(完整流程请在 mixui 控制码管理中操作)")}).catch(()=>{})}function Ve(i){u.ElMessageBox.confirm(`确认删除控制码「${i.name||i.uid}」吗?`,"警告",{type:"warning"}).then(()=>b(null,null,function*(){try{yield _.api.http("control_delete",{uid:i.uid,id:i.id},!0),u.ElMessage.success("删除成功"),yield x()}catch(t){u.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{x()}),(i,t)=>{const a=v.ElOption,r=v.ElSelect,f=v.ElIcon,s=v.ElInput,m=v.ElButton,S=z.__unplugin_components_5,g=v.ElFormItem,D=v.ElForm,E=v.ElDialog,y=v.ElDescriptionsItem,P=v.ElDescriptions,w=v.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-list mix-component",e.unref($)]),style:e.normalizeStyle(e.unref(T))},[e.unref(V).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(te.value)},e.toDisplayString(c.conf.caption||c.conf.name),5)),e.createElementVNode("div",Te,[e.createElementVNode("div",ke,[e.createVNode(r,{modelValue:j.value,"onUpdate:modelValue":t[0]||(t[0]=l=>j.value=l),class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(a,{label:"控制码名称",value:"name"}),e.createVNode(a,{label:"控制码编号",value:"uid"}),e.createVNode(a,{label:"控制码别名",value:"alias"}),e.createVNode(a,{label:"描述",value:"description"})]),_:1},8,["modelValue"]),e.createVNode(s,{modelValue:A.value,"onUpdate:modelValue":t[1]||(t[1]=l=>A.value=l),placeholder:"搜索控制码",class:"toolbar-search",onKeyup:e.withKeys(G,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(f,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(_e.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(m,{type:"primary",onClick:G},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(m,{onClick:re},{default:e.withCtx(()=>[...t[18]||(t[18]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(V).add?(e.openBlock(),e.createBlock(m,{key:0,type:"success",onClick:se},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode("添加控制码",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(S,{"column-defs":ae.value,"row-data":q.value,"show-pagination":!0,pager:N,"auto-fill-columns":!0,components:ie,onPageChange:ne},null,8,["column-defs","row-data","pager"])]),e.renderSlot(i.$slots,"default",{},void 0,!0)],6)),[[w,H.value]]),e.createVNode(E,{modelValue:k.value,"onUpdate:modelValue":t[7]||(t[7]=l=>k.value=l),title:"添加控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(m,{onClick:t[6]||(t[6]=l=>k.value=!1)},{default:e.withCtx(()=>[...t[20]||(t[20]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(m,{type:"primary",loading:C.value,onClick:ue},{default:e.withCtx(()=>[...t[21]||(t[21]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(D,{model:o,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(g,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.name,"onUpdate:modelValue":t[2]||(t[2]=l=>o.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.alias,"onUpdate:modelValue":t[3]||(t[3]=l=>o.alias=l),placeholder:"可选"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.description,"onUpdate:modelValue":t[4]||(t[4]=l=>o.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.script,"onUpdate:modelValue":t[5]||(t[5]=l=>o.script=l),type:"textarea",rows:8,placeholder:"JSON 数组,默认 []"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:O.value,"onUpdate:modelValue":t[14]||(t[14]=l=>O.value=l),title:"编辑控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(m,{onClick:t[13]||(t[13]=l=>O.value=!1)},{default:e.withCtx(()=>[...t[22]||(t[22]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(m,{type:"primary",loading:C.value,onClick:ce},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(D,{model:o,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(g,{label:"控制码编号"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.uid,"onUpdate:modelValue":t[8]||(t[8]=l=>o.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.name,"onUpdate:modelValue":t[9]||(t[9]=l=>o.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.alias,"onUpdate:modelValue":t[10]||(t[10]=l=>o.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.description,"onUpdate:modelValue":t[11]||(t[11]=l=>o.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.script,"onUpdate:modelValue":t[12]||(t[12]=l=>o.script=l),type:"textarea",rows:8},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:F.value,"onUpdate:modelValue":t[16]||(t[16]=l=>F.value=l),title:"控制码详情",width:"720px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(m,{type:"primary",onClick:t[15]||(t[15]=l=>F.value=!1)},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Oe,[p.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(P,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(y,{label:"控制码编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(y,{label:"控制码名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(y,{label:"控制码别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(y,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(y,{label:"更新时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(y,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.description)!=null?l:""),1)]}),_:1})]),_:1}),t[24]||(t[24]=e.createElementVNode("div",{class:"view-block-title"},"控制码脚本",-1)),e.createVNode(s,{"model-value":me.value,type:"textarea",rows:10,readonly:""},null,8,["model-value"])],64)):e.createCommentVNode("",!0)])),[[w,K.value]])]),_:1},8,["modelValue"])],64)}}})),Pe=_._export_sfc(Fe,[["__scopeId","data-v-8fdefb31"]]);exports.default=Pe;
@@ -0,0 +1 @@
1
+ "use strict";var j=Object.defineProperty,H=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var A=(r,l,i)=>l in r?j(r,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[l]=i,O=(r,l)=>{for(var i in l||(l={}))W.call(l,i)&&A(r,i,l[i]);if(q)for(var i of q(l))K.call(l,i)&&A(r,i,l[i]);return r},P=(r,l)=>H(r,U(l));var v=(r,l,i)=>new Promise((h,d)=>{var b=c=>{try{y(i.next(c))}catch(g){d(g)}},x=c=>{try{y(i.throw(c))}catch(g){d(g)}},y=c=>c.done?h(c.value):Promise.resolve(c.value).then(b,x);y((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 B=require("./syncMixiotListConfig-Cpgnkkws.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"),G=require("./useMixiotPanelSurface-CAZgexY5.cjs"),J=require("./BaseComponent-C42zZPAg.cjs"),M=require("./index-PR_k3tQg.cjs"),Q=require("./titleStyle-NSnz6cUg.cjs"),_=require("element-plus"),Y=require("@element-plus/icons-vue"),X=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),L=require("./ele-lst-icon-CrxnHZ-A.cjs"),Z={class:"mix-body"},ee={class:"top-bar"},te={DEFAULT_ICON:L.DEFAULT_ICON,ACTIVE_ICON:L.ACTIVE_ICON,NAME_CN:"控制记录",NAME_EN:"ControlRecordList",ORDER:4,PLATFORM:["pc","screen"]},oe={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:[]},R=[{export:!0}],ne=[{key:"export",label:"导出",type:"checkbox"}],le=[],ae=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ie={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"}]},re={DEFAULT:te,OPTIONS:oe,DATA:R,COMMANDS:ne,OPERATIONS:le,SOURCE:ae,COMMON:ie},se=e.defineComponent(P(O({},re),{__name:"controlRecordList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(r){const l=r;class i extends J.BaseComponent{getDataBool(t,n){var s,p;const a=(p=(s=this.props.conf)==null?void 0:s.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 v(this,null,function*(){this.applyTheme(),B.setupMixiotListConf(this.props.conf,{export:!0},R),this.Style.value=this.extractStyles()})}}const h=new i(l,"controlRecordList");h.setupLifecycle();const d=h.getStyle(),{mixiotPanelClass:b,mixiotPanelRootStyle:x}=G.useMixiotPanelSurface(d),{tableWrapRef:y,tableBodyHeight:c}=useTableBodyHeight(),g=e.computed(()=>Q.generateTitleStyle(l.conf.options));e.computed(()=>B.buildMixiotColumnsConfig(l.conf));const u=e.reactive({current:1,pageSize:10,total:0}),C=e.ref(""),S=e.ref("object_id"),f=e.ref([]),N=e.ref(!1);function I(){const o={page_index:u.current,page_size:u.pageSize},t=[],n=C.value.trim();return n&&t.push([S.value,"like",`%${n}%`]),X.appendCommonDesignerWhereAnd(l.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function V(){return v(this,null,function*(){var o;N.value=!0;try{const t=yield M.api.http("get_control_record_list",I(),!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=>O({},p));const s=n==null?void 0:n.total_records;u.total=typeof s=="number"?s: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=[],u.total=0}finally{N.value=!1}})}e.computed(()=>f.value);function D(){u.current=1,V()}function k(){C.value="",u.current=1,V()}function E(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 F(){return v(this,null,function*(){const o=[...new Set(f.value.map(a=>{var s;return String((s=a.object_id)!=null?s:"").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 M.api.http("export_control_record",{file_name:`control_record_${E(t).replace(/[: ]/g,"_")}`,start_time:E(n),end_time:E(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(()=>{V()}),(o,t)=>{const n=m.ElOption,a=m.ElSelect,s=m.ElIcon,p=m.ElInput,T=m.ElButton,$=B.__unplugin_components_5,z=m.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-record-list mix-component",e.unref(b)]),style:e.normalizeStyle(e.unref(x))},[e.unref(d).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",Z,[e.createElementVNode("div",ee,[e.createVNode(a,{modelValue:S.value,"onUpdate:modelValue":t[0]||(t[0]=w=>S.value=w),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:C.value,"onUpdate:modelValue":t[1]||(t[1]=w=>C.value=w),placeholder:"搜索控制记录",class:"toolbar-search",onKeyup:e.withKeys(D,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(s,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(T,{type:"primary",onClick:D},{default:e.withCtx(()=>[...t[2]||(t[2]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(T,{onClick:k},{default:e.withCtx(()=>[...t[3]||(t[3]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(d).export?(e.openBlock(),e.createBlock(T,{key:0,type:"success",onClick:F},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createVNode($,{"column-defs":o.agColumnDefs,"row-data":f.value,"show-pagination":!0,pager:u,"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)),[[z,N.value]])}}})),ce=M._export_sfc(se,[["__scopeId","data-v-bb5a35fe"]]);exports.default=ce;
@@ -0,0 +1,295 @@
1
+ var Q = Object.defineProperty, Y = Object.defineProperties;
2
+ var X = Object.getOwnPropertyDescriptors;
3
+ var P = Object.getOwnPropertySymbols;
4
+ var Z = Object.prototype.hasOwnProperty, ee = Object.prototype.propertyIsEnumerable;
5
+ var F = (i, n, l) => n in i ? Q(i, n, { enumerable: !0, configurable: !0, writable: !0, value: l }) : i[n] = l, N = (i, n) => {
6
+ for (var l in n || (n = {}))
7
+ Z.call(n, l) && F(i, l, n[l]);
8
+ if (P)
9
+ for (var l of P(n))
10
+ ee.call(n, l) && F(i, l, n[l]);
11
+ return i;
12
+ }, k = (i, n) => Y(i, X(n));
13
+ var b = (i, n, l) => new Promise((h, m) => {
14
+ var x = (c) => {
15
+ try {
16
+ y(l.next(c));
17
+ } catch (g) {
18
+ m(g);
19
+ }
20
+ }, T = (c) => {
21
+ try {
22
+ y(l.throw(c));
23
+ } catch (g) {
24
+ m(g);
25
+ }
26
+ }, y = (c) => c.done ? h(c.value) : Promise.resolve(c.value).then(x, T);
27
+ y((l = l.apply(i, n)).next());
28
+ });
29
+ import { ElSelect as te, ElOption as oe, ElInput as ne, ElIcon as ae, ElButton as le, ElLoadingDirective as ie } from "element-plus/es";
30
+ import "element-plus/es/components/base/style/css";
31
+ import "element-plus/es/components/loading/style/css";
32
+ import { b as re, _ as se, s as ce } from "./syncMixiotListConfig-CD0wWvPU.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 de, computed as R, reactive as me, ref as C, onMounted as ue, withDirectives as pe, openBlock as V, createElementBlock as $, normalizeStyle as I, unref as _, normalizeClass as ge, toDisplayString as fe, createCommentVNode as z, createElementVNode as j, createVNode as r, withCtx as p, withKeys as _e, createTextVNode as M, createBlock as he, renderSlot as ye } from "vue";
39
+ import { u as ve } from "./useMixiotPanelSurface-DRl3cZvc.js";
40
+ import { B as be } from "./BaseComponent-D7kfvQid.js";
41
+ import { a as H, _ as Ce } from "./index-CaDDNmGU.js";
42
+ import { g as Se } from "./titleStyle-BT5GlpAb.js";
43
+ import { ElMessage as S, ElMessageBox as xe } from "element-plus";
44
+ import { Search as Te } from "@element-plus/icons-vue";
45
+ import { a as we } from "./appendCommonDesignerWhereAnd-DwefWNOa.js";
46
+ import { A as Oe, D as Be } from "./ele-lst-icon-CKpeRKmk.js";
47
+ const Ee = { class: "mix-body" }, De = { class: "top-bar" }, Ae = {
48
+ DEFAULT_ICON: Be,
49
+ ACTIVE_ICON: Oe,
50
+ NAME_CN: "控制记录",
51
+ NAME_EN: "ControlRecordList",
52
+ ORDER: 4,
53
+ PLATFORM: ["pc", "screen"]
54
+ }, Ne = {
55
+ panelBgTone: {
56
+ value: "light",
57
+ type: "select",
58
+ label: "component.options.mixiotPanelBgTone",
59
+ options: [
60
+ { label: "component.options.mixiotPanelBgTone_light", value: "light" },
61
+ { label: "component.options.mixiotPanelBgTone_dark", value: "dark" }
62
+ ]
63
+ },
64
+ titleColor: "#111",
65
+ titleSize: 14,
66
+ isHideTitle: !1,
67
+ columns: []
68
+ }, U = [{ export: !0 }], Re = [{ key: "export", label: "导出", type: "checkbox" }], Ve = [], Me = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], Le = {
69
+ isAddCondition: !1,
70
+ conditions: [],
71
+ conditionFilterFields: [
72
+ { value: "object_id", label: "setting.gridFields.objectId" },
73
+ { value: "created_by", label: "setting.gridFields.createdBy" },
74
+ { value: "command", label: "setting.gridFields.commandCode" },
75
+ { value: "command_name", label: "setting.gridFields.commandName" }
76
+ ]
77
+ }, Pe = { DEFAULT: Ae, OPTIONS: Ne, DATA: U, COMMANDS: Re, OPERATIONS: Ve, SOURCE: Me, COMMON: Le }, Fe = /* @__PURE__ */ de(k(N({}, Pe), {
78
+ __name: "controlRecordList",
79
+ props: {
80
+ conf: { default: () => ({ data: [] }) },
81
+ uid: { default: "" },
82
+ mode: {},
83
+ theme: {},
84
+ code: { default: "" }
85
+ },
86
+ setup(i) {
87
+ const n = i;
88
+ class l extends be {
89
+ getDataBool(e, o) {
90
+ var s, u;
91
+ const a = (u = (s = this.props.conf) == null ? void 0 : s.data) == null ? void 0 : u[0];
92
+ return a && Object.prototype.hasOwnProperty.call(a, e) && a[e] !== void 0 ? !!a[e] : this.getOptionValue(e, o);
93
+ }
94
+ extractStyles() {
95
+ return {
96
+ panelBgTone: this.getOptionValue("panelBgTone", "light"),
97
+ titleColor: this.getOptionValue("titleColor", "#111"),
98
+ titleSize: this.getOptionValue("titleSize", 14),
99
+ isHideTitle: this.getOptionValue("isHideTitle", !1),
100
+ export: this.getDataBool("export", !0)
101
+ };
102
+ }
103
+ init() {
104
+ return b(this, null, function* () {
105
+ this.applyTheme(), ce(this.props.conf, { export: !0 }, U), this.Style.value = this.extractStyles();
106
+ });
107
+ }
108
+ }
109
+ const h = new l(n, "controlRecordList");
110
+ h.setupLifecycle();
111
+ const m = h.getStyle(), { mixiotPanelClass: x, mixiotPanelRootStyle: T } = ve(m), { tableWrapRef: y, tableBodyHeight: c } = useTableBodyHeight(), g = R(() => Se(n.conf.options));
112
+ R(() => re(n.conf));
113
+ const d = me({ current: 1, pageSize: 10, total: 0 }), v = C(""), w = C("object_id"), f = C([]), O = C(!1);
114
+ function K() {
115
+ const t = {
116
+ page_index: d.current,
117
+ page_size: d.pageSize
118
+ }, e = [], o = v.value.trim();
119
+ return o && e.push([w.value, "like", `%${o}%`]), we(n.conf.common, e), e.length && (t.where_and = JSON.stringify(e)), t;
120
+ }
121
+ function B() {
122
+ return b(this, null, function* () {
123
+ var t;
124
+ O.value = !0;
125
+ try {
126
+ const e = yield H.http(
127
+ "get_control_record_list",
128
+ K(),
129
+ !0
130
+ ), o = (t = e == null ? void 0 : e.result) != null ? t : e, a = Array.isArray(o == null ? void 0 : o.data) ? o.data : [];
131
+ f.value = a.map((u) => N({}, u));
132
+ const s = o == null ? void 0 : o.total_records;
133
+ d.total = typeof s == "number" ? s : a.length, e && e.code !== void 0 && e.code !== 200 && console.warn("[controlRecordList] 列表接口非成功", e.msg || e.info, e);
134
+ } catch (e) {
135
+ console.error(e), f.value = [], d.total = 0;
136
+ } finally {
137
+ O.value = !1;
138
+ }
139
+ });
140
+ }
141
+ R(() => f.value);
142
+ function L() {
143
+ d.current = 1, B();
144
+ }
145
+ function W() {
146
+ v.value = "", d.current = 1, B();
147
+ }
148
+ function E(t) {
149
+ const e = (o) => String(o).padStart(2, "0");
150
+ return `${t.getFullYear()}-${e(t.getMonth() + 1)}-${e(t.getDate())} ${e(t.getHours())}:${e(t.getMinutes())}:${e(t.getSeconds())}`;
151
+ }
152
+ function q() {
153
+ return b(this, null, function* () {
154
+ const t = [...new Set(f.value.map((a) => {
155
+ var s;
156
+ return String((s = a.object_id) != null ? s : "").trim();
157
+ }).filter(Boolean))];
158
+ if (!t.length) {
159
+ S.warning("当前列表无对象编号,请加载记录后再导出");
160
+ return;
161
+ }
162
+ const e = /* @__PURE__ */ new Date(), o = new Date(e.getTime() - 168 * 3600 * 1e3);
163
+ try {
164
+ yield xe.confirm(
165
+ `将按最近 7 天、当前已加载列表中的 ${t.length} 个对象编号发起导出任务,是否继续?`,
166
+ "导出控制记录",
167
+ { type: "info" }
168
+ );
169
+ } catch (a) {
170
+ return;
171
+ }
172
+ try {
173
+ const a = yield H.http(
174
+ "export_control_record",
175
+ {
176
+ file_name: `control_record_${E(e).replace(/[: ]/g, "_")}`,
177
+ start_time: E(o),
178
+ end_time: E(e),
179
+ object_ids: t
180
+ },
181
+ !0
182
+ );
183
+ if (a.code !== void 0 && a.code !== 200) {
184
+ S.warning(a.msg || a.info || "导出请求未成功");
185
+ return;
186
+ }
187
+ S.success("导出任务已提交");
188
+ } catch (a) {
189
+ S.error("导出请求失败");
190
+ }
191
+ });
192
+ }
193
+ return ue(() => {
194
+ B();
195
+ }), (t, e) => {
196
+ const o = oe, a = te, s = ae, u = ne, D = le, G = se, J = ie;
197
+ return pe((V(), $("div", {
198
+ class: ge(["control-record-list mix-component", _(x)]),
199
+ style: I(_(T))
200
+ }, [
201
+ _(m).isHideTitle ? z("", !0) : (V(), $("div", {
202
+ key: 0,
203
+ class: "mix-title",
204
+ style: I(g.value)
205
+ }, fe(i.conf.caption || i.conf.name), 5)),
206
+ j("div", Ee, [
207
+ j("div", De, [
208
+ r(a, {
209
+ modelValue: w.value,
210
+ "onUpdate:modelValue": e[0] || (e[0] = (A) => w.value = A),
211
+ class: "toolbar-field-select"
212
+ }, {
213
+ default: p(() => [
214
+ r(o, {
215
+ label: "对象编号",
216
+ value: "object_id"
217
+ }),
218
+ r(o, {
219
+ label: "用户名",
220
+ value: "created_by"
221
+ }),
222
+ r(o, {
223
+ label: "控制码指令",
224
+ value: "command"
225
+ }),
226
+ r(o, {
227
+ label: "指令名称",
228
+ value: "command_name"
229
+ })
230
+ ]),
231
+ _: 1
232
+ }, 8, ["modelValue"]),
233
+ r(u, {
234
+ modelValue: v.value,
235
+ "onUpdate:modelValue": e[1] || (e[1] = (A) => v.value = A),
236
+ placeholder: "搜索控制记录",
237
+ class: "toolbar-search",
238
+ onKeyup: _e(L, ["enter"])
239
+ }, {
240
+ prefix: p(() => [
241
+ r(s, { class: "toolbar-search-icon" }, {
242
+ default: p(() => [
243
+ r(_(Te))
244
+ ]),
245
+ _: 1
246
+ })
247
+ ]),
248
+ _: 1
249
+ }, 8, ["modelValue"]),
250
+ r(D, {
251
+ type: "primary",
252
+ onClick: L
253
+ }, {
254
+ default: p(() => [...e[2] || (e[2] = [
255
+ M("搜索", -1)
256
+ ])]),
257
+ _: 1
258
+ }),
259
+ r(D, { onClick: W }, {
260
+ default: p(() => [...e[3] || (e[3] = [
261
+ M("重置", -1)
262
+ ])]),
263
+ _: 1
264
+ }),
265
+ _(m).export ? (V(), he(D, {
266
+ key: 0,
267
+ type: "success",
268
+ onClick: q
269
+ }, {
270
+ default: p(() => [...e[4] || (e[4] = [
271
+ M("导出", -1)
272
+ ])]),
273
+ _: 1
274
+ })) : z("", !0)
275
+ ]),
276
+ r(G, {
277
+ "column-defs": t.agColumnDefs,
278
+ "row-data": f.value,
279
+ "show-pagination": !0,
280
+ pager: d,
281
+ "auto-fill-columns": !0,
282
+ components: t.gridComponents,
283
+ onPageChange: t.onPageChange
284
+ }, null, 8, ["column-defs", "row-data", "pager", "components", "onPageChange"])
285
+ ]),
286
+ ye(t.$slots, "default", {}, void 0, !0)
287
+ ], 6)), [
288
+ [J, O.value]
289
+ ]);
290
+ };
291
+ }
292
+ })), nt = /* @__PURE__ */ Ce(Fe, [["__scopeId", "data-v-bb5a35fe"]]);
293
+ export {
294
+ nt as default
295
+ };
@@ -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-CDynr4Wh.js";
44
- import { a as ue, _ as at } from "./index-dAR2gb1S.js";
43
+ import { B as ot } from "./BaseComponent-D7kfvQid.js";
44
+ import { a as ue, _ as at } from "./index-CaDDNmGU.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-CIst2h8G.cjs"),$=require("./index-5jeBLy74.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-C42zZPAg.cjs"),$=require("./index-PR_k3tQg.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;
@@ -0,0 +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-C42zZPAg.cjs"),G=require("./index-PR_k3tQg.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;