mixdashboards 1.0.92 → 1.0.94

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 (341) hide show
  1. package/dist/{BaseComponent-DjjN5Pou.cjs → BaseComponent-CJ3CP33o.cjs} +1 -1
  2. package/dist/{BaseComponent-B59M7tSp.js → BaseComponent-DQKmWNg3.js} +7 -7
  3. package/dist/{EChartComponentBase-DKvdFD6q.js → EChartComponentBase-DDIaxwYZ.js} +5 -5
  4. package/dist/{EChartComponentBase-B7QBSj3i.cjs → EChartComponentBase-krpMZZqF.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-Cs1MBIiZ.js → EmergencyPlanPanel-DOQyw3ut.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-DErLqKVJ.cjs → EmergencyPlanPanel-np1ogg97.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-oF5o0tdo.js → HistoryPlanDialog-BPfCayU2.js} +1 -1
  8. package/dist/{HistoryPlanDialog-Bh17elAK.cjs → HistoryPlanDialog-Cf24tdc7.cjs} +1 -1
  9. package/dist/{MixiotAppDetailPage-Ct0K17Vp.cjs → MixiotAppDetailPage-BpnbknVi.cjs} +1 -1
  10. package/dist/{MixiotAppDetailPage-DUkgCfVD.js → MixiotAppDetailPage-v_pqsB9G.js} +1 -1
  11. package/dist/{MonitoringMap-DVrV7u6c.js → MonitoringMap-Bw2T1si1.js} +2 -2
  12. package/dist/{MonitoringMap-Dxcwn8rF.cjs → MonitoringMap-dheAZzQE.cjs} +1 -1
  13. package/dist/{UniverSheet-DocH4IMy.js → UniverSheet-B6hZh5pm.js} +2 -2
  14. package/dist/{UniverSheet-CEB2dyPX.cjs → UniverSheet-BtzJLlYy.cjs} +1 -1
  15. package/dist/{accelerationChart-XC8g0CHb.cjs → accelerationChart-Cnd-dMDP.cjs} +1 -1
  16. package/dist/{accelerationChart-DX69nYON.js → accelerationChart-DHYX8g4h.js} +16 -16
  17. package/dist/{actionItem-wACA6UiF.cjs → actionItem-Th4srrc7.cjs} +1 -1
  18. package/dist/{actionItem-Be6q1uls.js → actionItem-jUGiIM9X.js} +2 -2
  19. package/dist/{alarmLevelChart-CHTvWW6X.js → alarmLevelChart-C4bioZHO.js} +2 -2
  20. package/dist/{alarmLevelChart-BRXoKULM.cjs → alarmLevelChart-TRtNoosF.cjs} +1 -1
  21. package/dist/{alertTable-CurveODa.js → alertTable-DfkVfHQW.js} +2 -2
  22. package/dist/{alertTable-DccPPmFd.cjs → alertTable-Hg2OuJqQ.cjs} +1 -1
  23. package/dist/{aliasObjectSelectorDemo-DvOo6NSg.js → aliasObjectSelectorDemo-DgU9r_-i.js} +4 -4
  24. package/dist/{aliasObjectSelectorDemo-Cxo9aCwz.cjs → aliasObjectSelectorDemo-UsWROEy1.cjs} +1 -1
  25. package/dist/{annualRainfallChart-Ub5oA_SQ.js → annualRainfallChart-Bp3EK6l0.js} +2 -2
  26. package/dist/{annualRainfallChart-DJLAkjKJ.cjs → annualRainfallChart-DYPD1pYV.cjs} +1 -1
  27. package/dist/{aqi-Ct8QcCo_.js → aqi-4RKBFJGx.js} +6 -6
  28. package/dist/{aqi-C0-b1zEb.cjs → aqi-xz4tyeqa.cjs} +1 -1
  29. package/dist/{aqiIndass-Dk77_lgt.js → aqiIndass-CayXfAC7.js} +19 -19
  30. package/dist/{aqiIndass-sUpgW4iQ.cjs → aqiIndass-t9VLR1g8.cjs} +1 -1
  31. package/dist/{areaDeformCurve-CNcCdOSs.js → areaDeformCurve-B44i3xnq.js} +2 -2
  32. package/dist/{areaDeformCurve-DUAMysnf.cjs → areaDeformCurve-D_92mFHc.cjs} +1 -1
  33. package/dist/{arrayCard-BADJRc30.cjs → arrayCard-DuC-f-6p.cjs} +1 -1
  34. package/dist/{arrayCard-DDGY9UsN.js → arrayCard-qSBkh9Sx.js} +2 -2
  35. package/dist/{audio-Dy0swEd9.js → audio-CpIxmXqe.js} +2 -2
  36. package/dist/{audio-xYxZCe68.cjs → audio-DJ4D3OVa.cjs} +1 -1
  37. package/dist/{bar-BXErI_ok.cjs → bar-BEHZDtG6.cjs} +1 -1
  38. package/dist/{bar-CIyxCiOI.js → bar-E-GDQOS9.js} +14 -14
  39. package/dist/{bmp-CA9wRPnh.cjs → bmp-DPnUiyw9.cjs} +1 -1
  40. package/dist/{bmp-sd5D0l8a.js → bmp-DdjjQbjw.js} +2 -2
  41. package/dist/{box-BsYnV8Bx.js → box-BHDmMqvo.js} +12 -12
  42. package/dist/{box-C6ln8N0y.cjs → box-By9Dason.cjs} +1 -1
  43. package/dist/{chartConfigPanel-C7aianX3.js → chartConfigPanel-BgMlKFNl.js} +1 -1
  44. package/dist/{chartConfigPanel-CMz54Q6v.cjs → chartConfigPanel-DVTRFAKV.cjs} +1 -1
  45. package/dist/{circleBar-B30Atdea.js → circleBar-Bmn-7b6a.js} +2 -2
  46. package/dist/{circleBar-BX5t2nMJ.cjs → circleBar-Ddyx9kpB.cjs} +1 -1
  47. package/dist/{clock-B-8CrowZ.js → clock-CflJfg1S.js} +2 -2
  48. package/dist/{clock-BXtwHRm9.cjs → clock-cQgCDu_3.cjs} +1 -1
  49. package/dist/{clt-BpuHyjGH.cjs → clt-Byo01zR6.cjs} +1 -1
  50. package/dist/{clt-DMm1Nw5a.js → clt-C2TyVj4q.js} +2 -2
  51. package/dist/{cmc-D5i6gU2D.cjs → cmc-CAWyEhl_.cjs} +1 -1
  52. package/dist/{cmc-6PspnRIQ.js → cmc-CbewFTQI.js} +14 -14
  53. package/dist/{cmp-BgunaL09.cjs → cmp-C9yzfEEf.cjs} +1 -1
  54. package/dist/{cmp-ClpSjWb2.js → cmp-trXYKJPO.js} +2 -2
  55. package/dist/{conclusionCard-BdP1uREl.cjs → conclusionCard-B1IIERg5.cjs} +1 -1
  56. package/dist/{conclusionCard-DfxTxHpK.js → conclusionCard-Dn-8k_po.js} +2 -2
  57. package/dist/{controlList-19cc2oTV.cjs → controlList-CPsTHFpz.cjs} +1 -1
  58. package/dist/{controlList-BxIsykAO.js → controlList-CSi3jV4i.js} +9 -9
  59. package/dist/{controlRecordList-rmzJkEDS.js → controlRecordList-BYEn8U1n.js} +5 -5
  60. package/dist/{controlRecordList-CDhkRSsH.cjs → controlRecordList-CLW7DgQU.cjs} +1 -1
  61. package/dist/{controlRecordListAPP-BD-gf2Bs.cjs → controlRecordListAPP-DIG123vR.cjs} +1 -1
  62. package/dist/{controlRecordListAPP-BX4kK2av.js → controlRecordListAPP-LombQOkp.js} +5 -5
  63. package/dist/{crd-ArYQwkHS.cjs → crd-B11CRPhP.cjs} +1 -1
  64. package/dist/{crd-lDL2KOAW.js → crd-Dw0h0kyO.js} +2 -2
  65. package/dist/{ctrBtn-BiEZgseO.js → ctrBtn-omvA52Uy.js} +20 -20
  66. package/dist/{ctrBtn-CGcvGakl.cjs → ctrBtn-ywTH8YBe.cjs} +1 -1
  67. package/dist/{ctrSet-C1-mq1-v.js → ctrSet-C47fAIpX.js} +16 -16
  68. package/dist/{ctrSet-B0WPaxn_.cjs → ctrSet-CYNUFrlS.cjs} +1 -1
  69. package/dist/{ctrSwitch-CUySXlTR.cjs → ctrSwitch-BdQ94cD3.cjs} +1 -1
  70. package/dist/{ctrSwitch-C_13szcJ.js → ctrSwitch-COZH3Xki.js} +19 -19
  71. package/dist/{dataManagement-DvJNb0TV.js → dataManagement-6A9BhO_z.js} +2 -2
  72. package/dist/{dataManagement-DhqIIR6y.cjs → dataManagement-BAhLGUrU.cjs} +1 -1
  73. package/dist/{dataReport-DYUj8pwD.cjs → dataReport-C013gISr.cjs} +1 -1
  74. package/dist/{dataReport-CwlKwjnX.js → dataReport-DSphGSM3.js} +2 -2
  75. package/dist/{dataTable-CXZF0lrW.cjs → dataTable-DAnK1_fd.cjs} +1 -1
  76. package/dist/{dataTable-C4gJg-yV.js → dataTable-uggcjK7Q.js} +1 -1
  77. package/dist/{datetime-CaDdSDdw.cjs → datetime-BWympowa.cjs} +1 -1
  78. package/dist/{datetime-ZRAJmN_d.js → datetime-D9gnfOdg.js} +2 -2
  79. package/dist/{deepClusterSlipSurface-C6yzS5dc.cjs → deepClusterSlipSurface-C18NcKeC.cjs} +1 -1
  80. package/dist/{deepClusterSlipSurface-BSycbE_x.js → deepClusterSlipSurface-DAp7f9nM.js} +24 -24
  81. package/dist/{deepDataMatrix-CuOJSX0e.js → deepDataMatrix-BFyrd1Xs.js} +13 -13
  82. package/dist/{deepDataMatrix-Cx_0i6Bn.cjs → deepDataMatrix-CnQqNgbw.cjs} +1 -1
  83. package/dist/{deepDisplacement3D-CIAFF6Mk.cjs → deepDisplacement3D-Cr9R2oU9.cjs} +1 -1
  84. package/dist/{deepDisplacement3D-O5A29Yh9.js → deepDisplacement3D-DRVOXAbG.js} +2 -2
  85. package/dist/{deepDisplacementChart-gAD_by8F.cjs → deepDisplacementChart-CqG7YPHv.cjs} +1 -1
  86. package/dist/{deepDisplacementChart-cg7TaHvl.js → deepDisplacementChart-fSIiAvtU.js} +63 -63
  87. package/dist/{deepDisplacementChart-CmwxF9VA.cjs → deepDisplacementChart-fvkxms5F.cjs} +1 -1
  88. package/dist/{deepDisplacementChart-CSTT_OoR.js → deepDisplacementChart-n_7q9VJo.js} +20 -20
  89. package/dist/{deepDisplacementView-Cu5sp5x1.cjs → deepDisplacementView-BGRQwhPs.cjs} +1 -1
  90. package/dist/{deepDisplacementView-Dhkq7R8X.js → deepDisplacementView-DABga_r4.js} +1 -1
  91. package/dist/{deepNodeTemperatureChart-D2QFPyLj.cjs → deepNodeTemperatureChart-Ceaqx0Md.cjs} +1 -1
  92. package/dist/{deepNodeTemperatureChart-BHtKQN-w.js → deepNodeTemperatureChart-DH25aSkV.js} +2 -2
  93. package/dist/{deepTangentAngleChart-ByQlg92Q.js → deepTangentAngleChart-CcEM6kbr.js} +13 -13
  94. package/dist/{deepTangentAngleChart-CjT7UKjk.cjs → deepTangentAngleChart-DRakLdpC.cjs} +1 -1
  95. package/dist/{deepTemperatureField-xV_PNi2G.js → deepTemperatureField-CXo3VM3s.js} +52 -52
  96. package/dist/{deepTemperatureField-DTgK45eZ.cjs → deepTemperatureField-DKdTaecu.cjs} +1 -1
  97. package/dist/{deepTrendChart-DBgmMUOQ.cjs → deepTrendChart-DjApOBNe.cjs} +1 -1
  98. package/dist/{deepTrendChart-BHkS7cqD.js → deepTrendChart-NeIMArTR.js} +16 -16
  99. package/dist/{deviceOnlineStatus-mIDsyFai.cjs → deviceOnlineStatus-B3073oKp.cjs} +1 -1
  100. package/dist/{deviceOnlineStatus-x2HGgX0Z.js → deviceOnlineStatus-bMmaZwOo.js} +2 -2
  101. package/dist/{deviceStatus-fFBNgUnk.js → deviceStatus-CuMgyh0r.js} +7 -7
  102. package/dist/{deviceStatus-CAz7UNXA.cjs → deviceStatus-WYPNhueL.cjs} +1 -1
  103. package/dist/{displacementDataTable-sqXNQCuo.cjs → displacementDataTable-BQoCDlqo.cjs} +1 -1
  104. package/dist/{displacementDataTable-DH1joAGy.js → displacementDataTable-PEEXI5aB.js} +11 -11
  105. package/dist/{displacementTrajectoryChart-DOplm2WI.cjs → displacementTrajectoryChart-BgWXNpIP.cjs} +1 -1
  106. package/dist/{displacementTrajectoryChart-DMrT8etH.js → displacementTrajectoryChart-CxdhS7G_.js} +32 -32
  107. package/dist/{displacementTrendChart-Do55_BUl.cjs → displacementTrendChart-5fu0V6Lz.cjs} +1 -1
  108. package/dist/{displacementTrendChart-CaMNDm-f.js → displacementTrendChart-BojyAmE2.js} +17 -17
  109. package/dist/{dxf-BYb_mxfH.js → dxf-CgpUTadv.js} +2 -2
  110. package/dist/{dxf-BdzF3xvx.cjs → dxf-DuJP6IFj.cjs} +1 -1
  111. package/dist/{dzc-DqNO6VS1.js → dzc-CMtt910G.js} +5 -5
  112. package/dist/{dzc-z6FhUmlo.cjs → dzc-MN8YHrIQ.cjs} +1 -1
  113. package/dist/{emergencyPlan-vgQTrH0X.cjs → emergencyPlan-DCKeHU5X.cjs} +1 -1
  114. package/dist/{emergencyPlan-BXf-0LRs.js → emergencyPlan-DFpC2v0J.js} +3 -3
  115. package/dist/{evn-D0pZ7eVz.cjs → evn-B_t1PAAb.cjs} +1 -1
  116. package/dist/{evn-YODKEBYe.js → evn-tgak_Gtq.js} +2 -2
  117. package/dist/{evolutionChart-CgmxWf_V.js → evolutionChart-C4WZZXZK.js} +3 -3
  118. package/dist/{evolutionChart-ZBuYVuoc.cjs → evolutionChart-DfHuTjZb.cjs} +1 -1
  119. package/dist/{fileViewer-C5n7F8hK.cjs → fileViewer-CNtLmyDt.cjs} +1 -1
  120. package/dist/{fileViewer-D6W4lYC9.js → fileViewer-gtQ6v3ab.js} +2 -2
  121. package/dist/{filterBar-BtyW3O3r.cjs → filterBar-Ck62WVT4.cjs} +1 -1
  122. package/dist/{filterBar-B2EcSFW2.js → filterBar-km1uxSn-.js} +2 -2
  123. package/dist/{fireCombustionCurve-XhkLz9eJ.cjs → fireCombustionCurve-C2YhGsVF.cjs} +1 -1
  124. package/dist/{fireCombustionCurve-BYa_t1Kj.js → fireCombustionCurve-CXZMU6mP.js} +3 -3
  125. package/dist/{fireFilterBar-CDPaQTVh.js → fireFilterBar-Ch3Tn3rr.js} +2 -2
  126. package/dist/{fireFilterBar-kskVSjRC.cjs → fireFilterBar-E_q7YyzX.cjs} +1 -1
  127. package/dist/{fireHistoryTable-D1WHAdJO.js → fireHistoryTable-Bo0NOq7N.js} +2 -2
  128. package/dist/{fireHistoryTable-BfFWM7dn.cjs → fireHistoryTable-CljUtT_x.cjs} +1 -1
  129. package/dist/{gag-CDs2jAvl.cjs → gag-CRcph8A7.cjs} +1 -1
  130. package/dist/{gag-LfKVICbO.js → gag-DgvTasnt.js} +2 -2
  131. package/dist/{gasStationList-DyKzPbSS.js → gasStationList-0-yV6E9M.js} +9 -9
  132. package/dist/{gasStationList-BJJcB5dZ.cjs → gasStationList-BKNG2Io8.cjs} +1 -1
  133. package/dist/{geo3dViewer-BlkAAm5j.js → geo3dViewer-DKNeHhJN.js} +3 -3
  134. package/dist/{geo3dViewer-BboRCk5B.cjs → geo3dViewer-DLReQ9-s.cjs} +1 -1
  135. package/dist/{glbModel-71er-YKJ.cjs → glbModel-B4L4XRYs.cjs} +1 -1
  136. package/dist/{glbModel-BSELk7OE.js → glbModel-CMx1K7LV.js} +2 -2
  137. package/dist/{globalObjectSelector-CIKfqySc.cjs → globalObjectSelector-CNwLE8_0.cjs} +1 -1
  138. package/dist/{globalObjectSelector-C4NjRabc.js → globalObjectSelector-ClUjobt2.js} +1 -1
  139. package/dist/{gnssFilterBar-Bo88FW_c.cjs → gnssFilterBar-BT6IvBC6.cjs} +1 -1
  140. package/dist/{gnssFilterBar-CuMX4SEH.js → gnssFilterBar-CgcgxJKy.js} +2 -2
  141. package/dist/{gnssHistoryTable-wyhk4inh.js → gnssHistoryTable-PArk3wLl.js} +2 -2
  142. package/dist/{gnssHistoryTable-CRcIb3xh.cjs → gnssHistoryTable-V0sopHb0.cjs} +1 -1
  143. package/dist/{gnssMapView-C-75Vfyz.cjs → gnssMapView-DHDmtovh.cjs} +2 -2
  144. package/dist/{gnssMapView-CRuNei47.js → gnssMapView-DYbUmKjS.js} +4 -4
  145. package/dist/{gnssSectionProfile-EBXvV8gc.js → gnssSectionProfile-DS_DB9Ai.js} +2 -2
  146. package/dist/{gnssSectionProfile-CgsLq7IS.cjs → gnssSectionProfile-xYBPivIx.cjs} +1 -1
  147. package/dist/{gnssTimeSeriesChart-i-v1cVV5.js → gnssTimeSeriesChart-B4-rNUXi.js} +2 -2
  148. package/dist/{gnssTimeSeriesChart-CqHugQiR.cjs → gnssTimeSeriesChart-s0v_GPXl.cjs} +1 -1
  149. package/dist/{gnssXYTrajectory-6dtkerlD.js → gnssXYTrajectory-B87pyC2f.js} +2 -2
  150. package/dist/{gnssXYTrajectory-_6bzeTg4.cjs → gnssXYTrajectory-C6EypJSe.cjs} +1 -1
  151. package/dist/{grd-tqFAnZ2D.js → grd-BmhzMkFW.js} +14 -14
  152. package/dist/{grd-DkBg7xHz.cjs → grd-BsFPCARf.cjs} +1 -1
  153. package/dist/{grdIndass-D8hdCjom.cjs → grdIndass-CPUB9rkw.cjs} +1 -1
  154. package/dist/{grdIndass-Ddqpb62w.js → grdIndass-V9pcvGHw.js} +2 -2
  155. package/dist/{grg-sYQS2KAB.js → grg-DJBOmrCT.js} +12 -12
  156. package/dist/{grg-Hc2N_7ub.cjs → grg-DYx3uqxw.cjs} +1 -1
  157. package/dist/{gridview-DanekIAf.js → gridview-A_2r5oMD.js} +2 -2
  158. package/dist/{gridview-BBh3AukP.cjs → gridview-Dmf7WK8F.cjs} +1 -1
  159. package/dist/{groundwaterFilterBar-B0OfbZ8w.cjs → groundwaterFilterBar-Cx2UjJOa.cjs} +1 -1
  160. package/dist/{groundwaterFilterBar-BWbvoN3g.js → groundwaterFilterBar-QYmLEQQ-.js} +2 -2
  161. package/dist/{groundwaterProfileChart-JaRBS63n.js → groundwaterProfileChart-D9a7xk1o.js} +3 -3
  162. package/dist/{groundwaterProfileChart-B9BjKAH8.cjs → groundwaterProfileChart-DB9z4nS_.cjs} +2 -2
  163. package/dist/{groundwaterTimeCurve-BrGWoCOP.cjs → groundwaterTimeCurve-CTre1KFz.cjs} +1 -1
  164. package/dist/{groundwaterTimeCurve-ljem_m3k.js → groundwaterTimeCurve-ClGX5Vr7.js} +3 -3
  165. package/dist/{groupCard-DHkR3fkl.js → groupCard-7ijH_G6N.js} +2 -2
  166. package/dist/{groupCard-DRmbMQK2.cjs → groupCard-CQfI0hkB.cjs} +1 -1
  167. package/dist/{headerBar-BqPszkVG.js → headerBar-DBqyxn7r.js} +2 -2
  168. package/dist/{headerBar-CSvua7HJ.cjs → headerBar-DsCblHFn.cjs} +1 -1
  169. package/dist/{history-5ZH7SlIA.cjs → history-BHbiezXx.cjs} +1 -1
  170. package/dist/{history-CTYZgtKO.js → history-I6Sbd46e.js} +21 -21
  171. package/dist/index-B8X4_OUp.cjs +612 -0
  172. package/dist/{index-C596S3FR.js → index-yfWcELw0.js} +3358 -3276
  173. package/dist/{insarDeformChart-KcW3eGy0.js → insarDeformChart-2lM46TpO.js} +2 -2
  174. package/dist/{insarDeformChart-IP_FpqTn.cjs → insarDeformChart-DD735ZeO.cjs} +1 -1
  175. package/dist/{insarImageViewer-Y4zOC2Dl.cjs → insarImageViewer-BefRXgj3.cjs} +1 -1
  176. package/dist/{insarImageViewer-eoizq5PE.js → insarImageViewer-Cr0q07Gh.js} +2 -2
  177. package/dist/{kds-Ypv2B0fV.cjs → kds-DQFNJAHh.cjs} +1 -1
  178. package/dist/{kds-CLvXYpcx.js → kds-DbGYv9V3.js} +21 -21
  179. package/dist/{kpiCard-CIoPFCa0.js → kpiCard-BBUGn40l.js} +2 -2
  180. package/dist/{kpiCard-BzbMfAnY.cjs → kpiCard-DqE9XLLY.cjs} +1 -1
  181. package/dist/{landslideMap-DNj_UrIs.cjs → landslideMap-B1Osza1s.cjs} +1 -1
  182. package/dist/{landslideMap-B_YGvpMe.js → landslideMap-DBKRG3WQ.js} +15 -15
  183. package/dist/{landslideWarning-B210-Aym.cjs → landslideWarning-CCMOSmbu.cjs} +1 -1
  184. package/dist/{landslideWarning-CXEzKv8a.js → landslideWarning-CZWafalo.js} +32 -32
  185. package/dist/{layerTabs-BIjyBFlq.cjs → layerTabs-CkjTvUpD.cjs} +1 -1
  186. package/dist/{layerTabs-CbfEIbQc.js → layerTabs-ekv5hlF1.js} +2 -2
  187. package/dist/{leaflet-src-B33B2nYW.js → leaflet-src-BASNts_W.js} +1 -1
  188. package/dist/{leaflet-src-CtfSNn4i.cjs → leaflet-src-DOoIS56v.cjs} +1 -1
  189. package/dist/{lerc-CtKLZwuA.js → lerc-C3rGJ3AS.js} +2 -2
  190. package/dist/{lerc-c41VJU5B.cjs → lerc-CJAX-VmU.cjs} +1 -1
  191. package/dist/{lin-yzg8CIhc.js → lin-B989UqR-.js} +5 -5
  192. package/dist/{lin-BpWVq023.cjs → lin-C3G8ojS4.cjs} +1 -1
  193. package/dist/{linIndass-Cdl831hz.cjs → linIndass-B_EZudgP.cjs} +1 -1
  194. package/dist/{linIndass-Bfhb4vFC.js → linIndass-B_MyZtDT.js} +13 -13
  195. package/dist/{lst-Cy3wv6ZP.cjs → lst-Du3HzAAS.cjs} +1 -1
  196. package/dist/{lst-D3vSkXZB.js → lst-yEYuUFNo.js} +2 -2
  197. package/dist/{manualEntry-CcyyNoct.js → manualEntry-BrCbc4dN.js} +2 -2
  198. package/dist/{manualEntry-B__l4SN8.cjs → manualEntry-Dpe4mmqt.cjs} +1 -1
  199. package/dist/{mapBackground-BXRaTXR3.cjs → mapBackground-7fpabNWg.cjs} +1 -1
  200. package/dist/{mapBackground-kHBqDQUI.js → mapBackground-KMQe81yq.js} +3 -3
  201. package/dist/{mappingList-BHlm_asK.js → mappingList-BETmoArV.js} +9 -9
  202. package/dist/{mappingList-BbMAwf4p.cjs → mappingList-C6YqJzCD.cjs} +1 -1
  203. package/dist/{markdownViewer-P-EDWaDf.cjs → markdownViewer-By1PCCx9.cjs} +1 -1
  204. package/dist/{markdownViewer-C2nPOliq.js → markdownViewer-DEum5Sq3.js} +2 -2
  205. package/dist/{mix-control-modal-BYzwSJN9.cjs → mix-control-modal-CIKQuHLu.cjs} +1 -1
  206. package/dist/{mix-control-modal-BlxlEQke.js → mix-control-modal-C_YrfKMR.js} +13 -13
  207. package/dist/{mixGrid-C7QVCY-e.js → mixGrid-Dcpdjhog.js} +11 -11
  208. package/dist/{mixGrid-BEAf-HMl.cjs → mixGrid-WAdZ9FOt.cjs} +1 -1
  209. package/dist/mixdashboards.cjs +1 -1
  210. package/dist/mixdashboards.css +1 -1
  211. package/dist/mixdashboards.js +2 -2
  212. package/dist/{mjpegCamera-xiXWBGwD.cjs → mjpegCamera-5S_zSDRC.cjs} +1 -1
  213. package/dist/{mjpegCamera-BSBOqNGL.js → mjpegCamera-n40ZBceZ.js} +2 -2
  214. package/dist/{monitorAlert-F8brZ-G5.cjs → monitorAlert-BYckQyen.cjs} +1 -1
  215. package/dist/{monitorAlert-KX7ihBCC.js → monitorAlert-Bn96eK5y.js} +20 -20
  216. package/dist/{monitorData-BQZmh2L9.js → monitorData-ChffwZY9.js} +14 -14
  217. package/dist/{monitorData-MmsF7_2B.cjs → monitorData-DqT0oZsT.cjs} +1 -1
  218. package/dist/{monitorSpeedChart-D4yHpJuy.cjs → monitorSpeedChart-B_OjKwHx.cjs} +1 -1
  219. package/dist/{monitorSpeedChart-DsBjKn13.js → monitorSpeedChart-DAG8aM7s.js} +1 -1
  220. package/dist/{mxa-zx1c67sf.js → mxa-D558Kd9S.js} +2 -2
  221. package/dist/{mxa-NGOyTXCo.cjs → mxa-DN2nuVsn.cjs} +1 -1
  222. package/dist/{myValue-CB5_VkLC.js → myValue-CIRtQF6N.js} +2 -2
  223. package/dist/{myValue-BEiGcJm4.cjs → myValue-GiODK3JU.cjs} +1 -1
  224. package/dist/{myValueList-DWAoId4n.js → myValueList-CDHZwFfs.js} +2 -2
  225. package/dist/{myValueList-CmJh3rOk.cjs → myValueList-CM7tw3MA.cjs} +1 -1
  226. package/dist/{objectList-B7VoUJhX.js → objectList-CPWt8cfw.js} +442 -442
  227. package/dist/objectList-Hts0S3rP.cjs +1 -0
  228. package/dist/objectList.tabs-BRCf7OY9.cjs +1 -0
  229. package/dist/objectList.tabs-PfI3XJbJ.js +20 -0
  230. package/dist/{objectListAPP-CILIOX7J.js → objectListAPP-Bm1O9FK8.js} +530 -530
  231. package/dist/objectListAPP-CUFdlUaI.cjs +1 -0
  232. package/dist/{percentBar-wFjS3qnX.cjs → percentBar-TXsRXDGf.cjs} +1 -1
  233. package/dist/{percentBar-Cjt-eHhh.js → percentBar-nYq4n6rA.js} +15 -15
  234. package/dist/{photo-BwRXd_a1.js → photo-CfVWLD7p.js} +23 -23
  235. package/dist/{photo-DPr9_bHE.cjs → photo-lw0wfZLf.cjs} +1 -1
  236. package/dist/{pie-Bhsb7wCM.js → pie-5XFtIfvu.js} +2 -2
  237. package/dist/{pie-BJAslcMQ.cjs → pie-f8erramO.cjs} +1 -1
  238. package/dist/{placeholder-BMTCy9hN.js → placeholder-B0FLbT-i.js} +1 -1
  239. package/dist/{placeholder-DG7hytzw.cjs → placeholder-hqS8Zku3.cjs} +1 -1
  240. package/dist/{pressBtn-DcTfh3zH.js → pressBtn-C_HN1xp4.js} +13 -13
  241. package/dist/{pressBtn-2VAEfSxb.cjs → pressBtn-DXmPUIPV.cjs} +1 -1
  242. package/dist/{processTable-DEuk6vh1.cjs → processTable-BKYUhG3i.cjs} +1 -1
  243. package/dist/{processTable-CSPIzkPI.js → processTable-kUYXEht3.js} +2 -2
  244. package/dist/{progressBar-BgG6adaw.cjs → progressBar-C20IpdwG.cjs} +1 -1
  245. package/dist/{progressBar-CUx2nTzK.js → progressBar-I0SoSWvW.js} +2 -2
  246. package/dist/{progressCircle-BrasnqQa.js → progressCircle-CXa4PxsM.js} +2 -2
  247. package/dist/{progressCircle-Bp5c_Ozg.cjs → progressCircle-g5Jvkl2j.cjs} +1 -1
  248. package/dist/{qrcode-8CEAtCTd.cjs → qrcode-B9gsCPu6.cjs} +1 -1
  249. package/dist/{qrcode-Ds0zkoW0.js → qrcode-D4rppepA.js} +2 -2
  250. package/dist/{raceBar-HxcGIxXh.js → raceBar-673aVpec.js} +15 -15
  251. package/dist/{raceBar-DYhf88PA.cjs → raceBar-DeTBOgp9.cjs} +1 -1
  252. package/dist/{rad-d6E_p3or.cjs → rad-BYdK1-pr.cjs} +1 -1
  253. package/dist/{rad-Dt01D6Sq.js → rad-DMxztkfm.js} +2 -2
  254. package/dist/{radarMapViewer-CIl0E9Jr.cjs → radarMapViewer-Byho9Cy4.cjs} +1 -1
  255. package/dist/{radarMapViewer-DTNiqhPT.js → radarMapViewer-c31u_6-s.js} +2 -2
  256. package/dist/{rainfallFilterBar-Cyr-lcNk.cjs → rainfallFilterBar-DEyqJlhg.cjs} +1 -1
  257. package/dist/{rainfallFilterBar-CgvbQoZt.js → rainfallFilterBar-DP5QcEYa.js} +2 -2
  258. package/dist/{rainfallTimeCurve-BlcizpvR.js → rainfallTimeCurve-D1j1jY4q.js} +3 -3
  259. package/dist/{rainfallTimeCurve-CIobctHL.cjs → rainfallTimeCurve-DFBCodU-.cjs} +1 -1
  260. package/dist/{rangeLin-DjAibGQu.js → rangeLin-DIHwJYbw.js} +24 -24
  261. package/dist/{rangeLin-DnXF_LSw.cjs → rangeLin-qjiBWOUN.cjs} +1 -1
  262. package/dist/{realtimeEvolutionMap-DTq8vTEn.cjs → realtimeEvolutionMap-B1lqsqTu.cjs} +1 -1
  263. package/dist/{realtimeEvolutionMap-NNOUj7CK.js → realtimeEvolutionMap-HFYMlPEo.js} +2 -2
  264. package/dist/{regionBar-HNGYQOk4.js → regionBar-Vew5aANa.js} +2 -2
  265. package/dist/{regionBar-Dn2vPvxX.cjs → regionBar-Y-zCbc5M.cjs} +1 -1
  266. package/dist/{request-73XS8hJO.js → request-C426jmB-.js} +15 -15
  267. package/dist/{request-7CmMbSly.cjs → request-Dfwbc0Ix.cjs} +1 -1
  268. package/dist/{retainer1-_IveOR-G.cjs → retainer1-DZ0d512Q.cjs} +1 -1
  269. package/dist/{retainer1-Dl97htVm.js → retainer1-exoaRu1C.js} +3 -3
  270. package/dist/{retainer2-DBA-LNsh.cjs → retainer2-CbOuAuXM.cjs} +1 -1
  271. package/dist/{retainer2-CCyx95eL.js → retainer2-e5auct4d.js} +3 -3
  272. package/dist/{retainerRecordList-DLjc3O0S.js → retainerRecordList-C6p0YgbS.js} +7 -7
  273. package/dist/{retainerRecordList-BJukB31J.cjs → retainerRecordList-CN5rlQCz.cjs} +1 -1
  274. package/dist/{retainerRecordListAPP-BRClySi7.js → retainerRecordListAPP-BLZP1qfM.js} +11 -11
  275. package/dist/{retainerRecordListAPP-CzUJnr0y.cjs → retainerRecordListAPP-BMfNUL2Y.cjs} +1 -1
  276. package/dist/{ringTopN-B6UXfAQ7.js → ringTopN-B46FO90p.js} +2 -2
  277. package/dist/{ringTopN-BtTdkj35.cjs → ringTopN-Cs-W2GHE.cjs} +1 -1
  278. package/dist/{riskRegionTable-DUbIlT4A.cjs → riskRegionTable-CEMe-j-s.cjs} +1 -1
  279. package/dist/{riskRegionTable-BSNKIgmm.js → riskRegionTable-Dcq9GokX.js} +12 -12
  280. package/dist/{sankey-r7fJCig2.cjs → sankey-BUZeqik5.cjs} +1 -1
  281. package/dist/{sankey-CpXpQ28Y.js → sankey-N4N0atYu.js} +8 -8
  282. package/dist/{scd-Cd1dYi0u.cjs → scd-BxELsSzZ.cjs} +1 -1
  283. package/dist/{scd-BDii1Ody.js → scd-pyN1iu0v.js} +2 -2
  284. package/dist/{sideMenu-KGl1TMT9.js → sideMenu-kdSIC9Q9.js} +2 -2
  285. package/dist/{sideMenu-DdTBrLti.cjs → sideMenu-yek1FXug.cjs} +1 -1
  286. package/dist/{slopeStability-BNZYNDeI.cjs → slopeStability-CFgG5z4k.cjs} +1 -1
  287. package/dist/{slopeStability-KHaHZRF9.js → slopeStability-D0kdENCl.js} +26 -26
  288. package/dist/{speedCurve-DfOOKhu3.js → speedCurve-ByKQYhAP.js} +2 -2
  289. package/dist/{speedCurve-JI7BabEv.cjs → speedCurve-DC30NdWH.cjs} +1 -1
  290. package/dist/{stackedBar-Cwh6eyNj.js → stackedBar-BWe-Gg-j.js} +9 -9
  291. package/dist/{stackedBar-Ch22oNx5.cjs → stackedBar-C_Mzs6KH.cjs} +1 -1
  292. package/dist/{stressFilterBar-DqkA3vpk.cjs → stressFilterBar-69oPb8K0.cjs} +1 -1
  293. package/dist/{stressFilterBar-DYJ6SRbJ.js → stressFilterBar-AxrkNFiu.js} +2 -2
  294. package/dist/{stressTimeCurve-CcgQKn6E.js → stressTimeCurve-CWj8LApY.js} +3 -3
  295. package/dist/{stressTimeCurve-BAM1gLA_.cjs → stressTimeCurve-ULJR6xC7.cjs} +1 -1
  296. package/dist/{swiper-i98iNjVH.js → swiper-BhGhklI6.js} +2 -2
  297. package/dist/{swiper-BI5SC0Tw.cjs → swiper-DG3JtxJa.cjs} +1 -1
  298. package/dist/tablemanList-BpNOi9yE.cjs +1 -0
  299. package/dist/tablemanList-CHg84US8.js +1024 -0
  300. package/dist/{terminalConfigList-BF_eQVQm.js → terminalConfigList-CwAsPCXS.js} +42 -42
  301. package/dist/{terminalConfigList-C8E0B9h5.cjs → terminalConfigList-DJcXdYE0.cjs} +1 -1
  302. package/dist/{terminalList-bqT8olPQ.cjs → terminalList-CbRTo3t2.cjs} +1 -1
  303. package/dist/{terminalList-I7u9vU9s.js → terminalList-pqc72wpO.js} +45 -45
  304. package/dist/{terminalListAPP-Dyj6JV0Y.cjs → terminalListAPP-DAJnN1LF.cjs} +1 -1
  305. package/dist/{terminalListAPP-C8pAt4tP.js → terminalListAPP-DnkjJnKB.js} +17 -17
  306. package/dist/{textbox-o3LGkbm7.js → textbox-ClIdpIhw.js} +2 -2
  307. package/dist/{textbox-DAwUjKVj.cjs → textbox-jioFEUOp.cjs} +1 -1
  308. package/dist/{timeQueryBar-CGivKT2Q.cjs → timeQueryBar-0b_LfSSk.cjs} +1 -1
  309. package/dist/{timeQueryBar-J9eYrlap.js → timeQueryBar-BsAOi911.js} +1 -1
  310. package/dist/{timeSeries-BRz6aekM.cjs → timeSeries-BypOZwTe.cjs} +1 -1
  311. package/dist/{timeSeries-Cl5hKmMr.js → timeSeries-Cij4RwSS.js} +3 -3
  312. package/dist/{timeSeriesCurve-0YqHtEOS.js → timeSeriesCurve-CbNkVXI6.js} +3 -3
  313. package/dist/{timeSeriesCurve-CfLJKtYF.cjs → timeSeriesCurve-fOO2r9gV.cjs} +1 -1
  314. package/dist/{toggleBtn-CbJdpQ_Y.cjs → toggleBtn-BhQia411.cjs} +1 -1
  315. package/dist/{toggleBtn-IrlxxdCc.js → toggleBtn-mPMmYtY4.js} +2 -2
  316. package/dist/{trajectoryConfigPanel-C_lfSjMt.cjs → trajectoryConfigPanel-BDFc6t60.cjs} +1 -1
  317. package/dist/{trajectoryConfigPanel-ajFhmZqM.js → trajectoryConfigPanel-BaO4pluQ.js} +1 -1
  318. package/dist/{trajectoryScatter-DgIewXbg.cjs → trajectoryScatter-CXxpfjmG.cjs} +1 -1
  319. package/dist/{trajectoryScatter-CmWtyq7S.js → trajectoryScatter-DeMwvDfW.js} +2 -2
  320. package/dist/{universalConfigPanel-uIrVPthg.js → universalConfigPanel-7ZN2XUD_.js} +1 -1
  321. package/dist/{universalConfigPanel-BeAzvqBa.cjs → universalConfigPanel-G6QYCr_9.cjs} +1 -1
  322. package/dist/{universalTable-Bq7Kd7fL.js → universalTable-C6rgJ9ql.js} +2 -2
  323. package/dist/{universalTable-DCl0jAda.cjs → universalTable-CjWekzt0.cjs} +1 -1
  324. package/dist/{video-Dbw-JZre.js → video-CkjKwH7G.js} +2 -2
  325. package/dist/{video-8HMZlBYI.cjs → video-DmdF1vxW.cjs} +1 -1
  326. package/dist/{videoMonitor-DhdgNBSb.js → videoMonitor-BcI798fT.js} +13 -13
  327. package/dist/{videoMonitor-2hwOLldO.cjs → videoMonitor-CcBhoOxP.cjs} +1 -1
  328. package/dist/{vlu-CQcWvMK-.js → vlu-CYJV_aWu.js} +2 -2
  329. package/dist/{vlu-DfPaVton.cjs → vlu-HjzXfkGC.cjs} +1 -1
  330. package/dist/{warningOverview-uOag_nZW.js → warningOverview-BhzPVBZI.js} +3 -3
  331. package/dist/{warningOverview-BskwWe2j.cjs → warningOverview-DlfyTr4g.cjs} +1 -1
  332. package/dist/{weather-B1md9HVk.cjs → weather-BX8CgyGy.cjs} +1 -1
  333. package/dist/{weather-CvebIEMR.js → weather-DMlM1tya.js} +2 -2
  334. package/dist/{windLin-Bhrf1Iwf.cjs → windLin-B_DYUbT3.cjs} +1 -1
  335. package/dist/{windLin-CLDJ1Cyh.js → windLin-ColVnL0M.js} +42 -42
  336. package/package.json +1 -1
  337. package/dist/index-CLrFRvna.cjs +0 -612
  338. package/dist/mixiotObjectListApi-C7R9sYdy.js +0 -214
  339. package/dist/mixiotObjectListApi-DhTZ5v0p.cjs +0 -1
  340. package/dist/objectList-BYIX-gD7.cjs +0 -1
  341. package/dist/objectListAPP-B9zJ8-Wa.cjs +0 -1
@@ -27,9 +27,9 @@ var L = (o, e, t) => new Promise((u, c) => {
27
27
  l((t = t.apply(o, e)).next());
28
28
  });
29
29
  import { defineComponent as k, ref as E, computed as Z, openBlock as $, createElementBlock as T, normalizeStyle as M, unref as g, createElementVNode as v, toDisplayString as D, renderSlot as A, nextTick as j } from "vue";
30
- import { a as V, _ as B } from "./index-C596S3FR.js";
30
+ import { a as V, _ as B } from "./index-yfWcELw0.js";
31
31
  import { ElMessage as R } from "element-plus";
32
- import { E as W } from "./EChartComponentBase-DKvdFD6q.js";
32
+ import { E as W } from "./EChartComponentBase-DDIaxwYZ.js";
33
33
  import { g as U } from "./titleStyle-BT5GlpAb.js";
34
34
  import { i as H, c as J } from "./install-CY89Nrxl.js";
35
35
  import { i as q } from "./install-B_v5XJLG.js";
@@ -1 +1 @@
1
- "use strict";var O=Object.defineProperty,A=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var g=(l,t,o)=>t in l?O(l,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[t]=o,C=(l,t)=>{for(var o in t||(t={}))k.call(t,o)&&g(l,o,t[o]);if(b)for(var o of b(t))w.call(t,o)&&g(l,o,t[o]);return l},v=(l,t)=>A(l,V(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./BaseComponent-DjjN5Pou.cjs"),T=require("./index-CLrFRvna.cjs"),I=require("./titleStyle-NSnz6cUg.cjs"),y=require("./ele-evn-icon-DUQMS-9T.cjs"),N={class:"title-text"},z={class:"mix-body"},L={DEFAULT_ICON:y.DEFAULT_ICON,ACTIVE_ICON:y.ACTIVE_ICON,NAME_CN:"识别结论卡",NAME_EN:"Conclusion Card",ORDER:14,PLATFORM:["pc","screen"]},D={bgColor:"#fff8e1",titleColor:"#1f2329",textColor:"#333",radiusSize:8,textSize:13,isHideTitle:!1,content:"南帮区域误报率持续偏高,建议优先复核春耕样本范围与扰动数据剔除规则。",lineHeight:1.6,btnText:"策略编辑",btnAction:{value:"publish",type:"select",label:"component.options.lw_btnAction",options:[{label:"component.options.lw_btnAction_publish",value:"publish"},{label:"component.options.lw_btnAction_modal",value:"modal"},{label:"component.options.lw_btnAction_navigate",value:"navigate"}]},modalLayerId:{value:"",type:"string",label:"component.options.lw_modalLayerId",dependent:"btnAction",dependentValue:"modal"},navigateUrl:{value:"",type:"string",label:"component.options.lw_navigateUrl",dependent:"btnAction",dependentValue:"navigate"},linkChannel:{value:"landslide",type:"select",label:"component.options.lw_linkChannel",options:[{label:"component.options.lw_linkChannel_landslide",value:"landslide"},{label:"component.options.lw_linkChannel_custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.options.lw_customChannel",showWhen:{linkChannel:"custom"}}},U=[{name:"结论文本",fv:"",object_id:""}],M=["name","fv","object_id"],H=["mosaic","statistics","calculate"],j={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},B={DEFAULT:L,OPTIONS:D,DATA:U,PARAMS:M,SOURCE:H,COMMON:j},R=e.defineComponent(v(C({},B),{__name:"conclusionCard",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){const t=l,o=e.ref("");class _ extends E.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff8e1"),titleColor:this.getOptionValue("titleColor","#1f2329"),textColor:this.getOptionValue("textColor","#333"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",13),content:this.getOptionValue("content",""),lineHeight:this.getOptionValue("lineHeight",1.6),btnText:this.getOptionValue("btnText",""),btnAction:this.getOptionValue("btnAction","publish"),modalLayerId:this.getOptionValue("modalLayerId",""),navigateUrl:this.getOptionValue("navigateUrl",""),linkChannel:this.getOptionValue("linkChannel","landslide"),customChannel:this.getOptionValue("customChannel","")}}getLinkChannel(){const n=this.Style.value;return(n==null?void 0:n.linkChannel)==="custom"?n.customChannel||"":(n==null?void 0:n.linkChannel)||""}setSocketData(n){var r,u;if(!n)return;const i=(u=(r=this.props.conf)==null?void 0:r.data)==null?void 0:u[0];if(!(i!=null&&i.fv))return;const c=this.extractDataValue(n,i.fv);c!=null&&c!==""&&(o.value=String(c))}setHistoryData(n){var r,u,f,h;if(!n||!Array.isArray(n.history))return;const i=(u=(r=this.props.conf)==null?void 0:r.data)==null?void 0:u[0];if(!(i!=null&&i.fv))return;const c=(h=(f=n.history)==null?void 0:f[0])==null?void 0:h[0];c&&c[i.fv]&&(o.value=String(c[i.fv]))}}const p=new _(t,"conclusionCard");p.setupLifecycle();const a=p.getStyle(),d=t.conf,S=e.computed(()=>I.generateTitleStyle(t.conf.options)),m=e.computed(()=>o.value||a.value.content||"--");function x(){if(t.mode!=="preview")return;const s=a.value;switch(s.btnAction){case"modal":s.modalLayerId&&window.dispatchEvent(new CustomEvent("mix-modal",{detail:{action:"show",layerId:s.modalLayerId,sheetIndex:-1}}));break;case"navigate":s.navigateUrl&&window.open(s.navigateUrl,"_blank");break;default:p.publish({type:"conclusion-action",title:d.caption||d.name,content:m.value,action:s.btnText})}}return(s,n)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(a).bgColor,borderRadius:`${e.unref(a).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(S.value)},[e.createElementVNode("span",N,e.toDisplayString(e.unref(d).caption||e.unref(d).name),1),e.unref(a).btnText?(e.openBlock(),e.createElementBlock("button",{key:0,class:"cc-btn",onClick:x},e.toDisplayString(e.unref(a).btnText),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("div",z,[e.createElementVNode("p",{class:"body-content",style:e.normalizeStyle({fontSize:`${e.unref(a).textSize}px`,color:e.unref(a).textColor,lineHeight:e.unref(a).lineHeight})},e.toDisplayString(m.value),5)]),e.renderSlot(s.$slots,"default",{},void 0,!0)],4))}})),q=T._export_sfc(R,[["__scopeId","data-v-35c5f9d1"]]);exports.default=q;
1
+ "use strict";var O=Object.defineProperty,A=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var g=(l,t,o)=>t in l?O(l,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[t]=o,C=(l,t)=>{for(var o in t||(t={}))k.call(t,o)&&g(l,o,t[o]);if(b)for(var o of b(t))w.call(t,o)&&g(l,o,t[o]);return l},v=(l,t)=>A(l,V(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./BaseComponent-CJ3CP33o.cjs"),T=require("./index-B8X4_OUp.cjs"),I=require("./titleStyle-NSnz6cUg.cjs"),y=require("./ele-evn-icon-DUQMS-9T.cjs"),N={class:"title-text"},z={class:"mix-body"},L={DEFAULT_ICON:y.DEFAULT_ICON,ACTIVE_ICON:y.ACTIVE_ICON,NAME_CN:"识别结论卡",NAME_EN:"Conclusion Card",ORDER:14,PLATFORM:["pc","screen"]},D={bgColor:"#fff8e1",titleColor:"#1f2329",textColor:"#333",radiusSize:8,textSize:13,isHideTitle:!1,content:"南帮区域误报率持续偏高,建议优先复核春耕样本范围与扰动数据剔除规则。",lineHeight:1.6,btnText:"策略编辑",btnAction:{value:"publish",type:"select",label:"component.options.lw_btnAction",options:[{label:"component.options.lw_btnAction_publish",value:"publish"},{label:"component.options.lw_btnAction_modal",value:"modal"},{label:"component.options.lw_btnAction_navigate",value:"navigate"}]},modalLayerId:{value:"",type:"string",label:"component.options.lw_modalLayerId",dependent:"btnAction",dependentValue:"modal"},navigateUrl:{value:"",type:"string",label:"component.options.lw_navigateUrl",dependent:"btnAction",dependentValue:"navigate"},linkChannel:{value:"landslide",type:"select",label:"component.options.lw_linkChannel",options:[{label:"component.options.lw_linkChannel_landslide",value:"landslide"},{label:"component.options.lw_linkChannel_custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.options.lw_customChannel",showWhen:{linkChannel:"custom"}}},U=[{name:"结论文本",fv:"",object_id:""}],M=["name","fv","object_id"],H=["mosaic","statistics","calculate"],j={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},B={DEFAULT:L,OPTIONS:D,DATA:U,PARAMS:M,SOURCE:H,COMMON:j},R=e.defineComponent(v(C({},B),{__name:"conclusionCard",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){const t=l,o=e.ref("");class _ extends E.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff8e1"),titleColor:this.getOptionValue("titleColor","#1f2329"),textColor:this.getOptionValue("textColor","#333"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",13),content:this.getOptionValue("content",""),lineHeight:this.getOptionValue("lineHeight",1.6),btnText:this.getOptionValue("btnText",""),btnAction:this.getOptionValue("btnAction","publish"),modalLayerId:this.getOptionValue("modalLayerId",""),navigateUrl:this.getOptionValue("navigateUrl",""),linkChannel:this.getOptionValue("linkChannel","landslide"),customChannel:this.getOptionValue("customChannel","")}}getLinkChannel(){const n=this.Style.value;return(n==null?void 0:n.linkChannel)==="custom"?n.customChannel||"":(n==null?void 0:n.linkChannel)||""}setSocketData(n){var r,u;if(!n)return;const i=(u=(r=this.props.conf)==null?void 0:r.data)==null?void 0:u[0];if(!(i!=null&&i.fv))return;const c=this.extractDataValue(n,i.fv);c!=null&&c!==""&&(o.value=String(c))}setHistoryData(n){var r,u,f,h;if(!n||!Array.isArray(n.history))return;const i=(u=(r=this.props.conf)==null?void 0:r.data)==null?void 0:u[0];if(!(i!=null&&i.fv))return;const c=(h=(f=n.history)==null?void 0:f[0])==null?void 0:h[0];c&&c[i.fv]&&(o.value=String(c[i.fv]))}}const p=new _(t,"conclusionCard");p.setupLifecycle();const a=p.getStyle(),d=t.conf,S=e.computed(()=>I.generateTitleStyle(t.conf.options)),m=e.computed(()=>o.value||a.value.content||"--");function x(){if(t.mode!=="preview")return;const s=a.value;switch(s.btnAction){case"modal":s.modalLayerId&&window.dispatchEvent(new CustomEvent("mix-modal",{detail:{action:"show",layerId:s.modalLayerId,sheetIndex:-1}}));break;case"navigate":s.navigateUrl&&window.open(s.navigateUrl,"_blank");break;default:p.publish({type:"conclusion-action",title:d.caption||d.name,content:m.value,action:s.btnText})}}return(s,n)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(a).bgColor,borderRadius:`${e.unref(a).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(S.value)},[e.createElementVNode("span",N,e.toDisplayString(e.unref(d).caption||e.unref(d).name),1),e.unref(a).btnText?(e.openBlock(),e.createElementBlock("button",{key:0,class:"cc-btn",onClick:x},e.toDisplayString(e.unref(a).btnText),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("div",z,[e.createElementVNode("p",{class:"body-content",style:e.normalizeStyle({fontSize:`${e.unref(a).textSize}px`,color:e.unref(a).textColor,lineHeight:e.unref(a).lineHeight})},e.toDisplayString(m.value),5)]),e.renderSlot(s.$slots,"default",{},void 0,!0)],4))}})),q=T._export_sfc(R,[["__scopeId","data-v-35c5f9d1"]]);exports.default=q;
@@ -11,8 +11,8 @@ var _ = (o, t, n) => t in o ? T(o, t, { enumerable: !0, configurable: !0, writab
11
11
  return o;
12
12
  }, x = (o, t) => I(o, E(t));
13
13
  import { defineComponent as N, ref as D, computed as S, openBlock as A, createElementBlock as O, normalizeStyle as h, unref as s, createElementVNode as d, toDisplayString as f, createCommentVNode as U, renderSlot as H } from "vue";
14
- import { B as M } from "./BaseComponent-B59M7tSp.js";
15
- import { _ as R } from "./index-C596S3FR.js";
14
+ import { B as M } from "./BaseComponent-DQKmWNg3.js";
15
+ import { _ as R } from "./index-yfWcELw0.js";
16
16
  import { g as j } from "./titleStyle-BT5GlpAb.js";
17
17
  import { A as B, D as F } from "./ele-evn-icon-MWzAujnD.js";
18
18
  const P = { class: "title-text" }, $ = { class: "mix-body" }, W = {
@@ -1 +1 @@
1
- "use strict";var Ve=Object.defineProperty,he=Object.defineProperties;var ye=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var be=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var X=(m,s,c)=>s in m?Ve(m,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[s]=c,J=(m,s)=>{for(var c in s||(s={}))be.call(s,c)&&X(m,c,s[c]);if(G)for(var c of G(s))we.call(s,c)&&X(m,c,s[c]);return m},Y=(m,s)=>he(m,ye(s));var _=(m,s,c)=>new Promise((M,w)=>{var R=C=>{try{T(c.next(C))}catch(O){w(O)}},$=C=>{try{T(c.throw(C))}catch(O){w(O)}},T=C=>C.done?M(C.value):Promise.resolve(C.value).then(R,$);T((c=c.apply(m,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),Ce=require("./useTableBodyHeight-pf87uGjw.cjs"),Ne=require("./useMixiotPanelSurface-CAZgexY5.cjs"),xe=require("./BaseComponent-DjjN5Pou.cjs"),B=require("./index-CLrFRvna.cjs"),ke=require("./titleStyle-NSnz6cUg.cjs"),p=require("element-plus"),Se=require("@element-plus/icons-vue"),_e=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),Z=require("./ele-lst-icon-CrxnHZ-A.cjs"),Be={class:"mix-body"},Ee={class:"toolbar"},Te={class:"pagination"},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"]},ze={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{key:"uid",label:"控制码编号",width:160,visible:!0},{key:"alias",label:"控制码别名",width:140,visible:!0},{key:"name",label:"控制码名称",width:160,visible:!0},{key:"description",label:"描述",minWidth:160,visible:!0},{key:"created",label:"创建时间",width:170,visible:!0},{key:"last_modified",label:"更新时间",width:170,visible:!0}]},ee=[{name:"控制码名称",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0,uid:"控制码编号",uid_visible:!0,alias:"控制码别名",alias_visible:!0,description:"描述",description_visible:!0,created:"创建时间",created_visible:!0,last_modified:"更新时间",last_modified_visible:!0}],Ae=[{key:"showAddBtn",label:"添加控制码",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组"},{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showArchiveBtn",label:"资料备档",type:"checkbox",group:"操作组"},{key:"showDeleteBtn",label:"删除",type:"checkbox",group:"操作组"},{key:"name",label:"参数名称"},{key:"uid",label:"控制码编号",checkable:!0,checkboxKey:"uid_visible"},{key:"alias",label:"控制码别名",checkable:!0,checkboxKey:"alias_visible"},{key:"description",label:"描述",checkable:!0,checkboxKey:"description_visible"},{key:"created",label:"创建时间",checkable:!0,checkboxKey:"created_visible"},{key:"last_modified",label:"更新时间",checkable:!0,checkboxKey:"last_modified_visible"}],qe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Me={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:ze,DATA:ee,PARAMS:Ae,SOURCE:qe,COMMON:Me},Le=e.defineComponent(Y(J({},Ue),{__name:"controlList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""},controlUidList:{default:()=>[]}},setup(m){const s=m;class c extends xe.BaseComponent{getDataBool(t,a){var d,u;const n=(u=(d=this.props.conf)==null?void 0:d.data)==null?void 0:u[0];return n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0?!!n[t]:this.getOptionValue(t,a)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showAddBtn:this.getDataBool("showAddBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(ee));else{const a=this.props.conf.data[0],n={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[u,r]of Object.entries(n))a[u]===void 0&&(a[u]=r);const d={uid_visible:!0,alias_visible:!0,description_visible:!0,created_visible:!0,last_modified_visible:!0};for(const[u,r]of Object.entries(d))a[u]===void 0&&(a[u]=r)}}}const M=new c(s,"controlList");M.setupLifecycle();const w=M.getStyle(),{mixiotPanelClass:R,mixiotPanelRootStyle:$}=Ne.useMixiotPanelSurface(w),{tableWrapRef:T,tableBodyHeight:C}=Ce.useTableBodyHeight(),O=e.computed(()=>ke.generateTitleStyle(s.conf.options)),te=e.computed(()=>{var a,n,d,u;const o=((n=(a=s.conf)==null?void 0:a.options)==null?void 0:n.columns)||[],t=((u=(d=s.conf)==null?void 0:d.data)==null?void 0:u[0])||{};return(Array.isArray(o)?o:[]).map(r=>{const y=t[r.key],k=t[`${r.key}_visible`];return{prop:r.key,label:y!==void 0&&y!==""?String(y):r.label,width:r.width,minWidth:r.minWidth,visible:k!==void 0?!!k:r.visible!==!1}})}),g=e.reactive({current:1,pageSize:10,total:0}),U=e.ref(""),j=e.ref("name"),W=e.ref([]),H=e.ref(!1);function le(){const o={page_index:g.current,page_size:g.pageSize},t=[],a=U.value.trim();return a&&t.push([j.value,"like",`%${a}%`]),_e.appendCommonDesignerWhereAnd(s.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function N(){return _(this,null,function*(){var o,t;H.value=!0;try{const a=yield B.api.post("control_list",le(),!0),n=(o=a==null?void 0:a.result)!=null?o:a;let d=Array.isArray(n==null?void 0:n.data)?[...n.data]:[];if((t=s.controlUidList)!=null&&t.length){const r=new Set(s.controlUidList.map(String));d=d.filter(y=>r.has(String(y.uid)))}W.value=d;const u=n==null?void 0:n.total_records;g.total=typeof u=="number"?u:d.length,a&&a.code!==void 0&&a.code!==200&&console.warn("[controlList] 列表接口非成功",a.msg||a.info,a)}catch(a){console.error(a),W.value=[],g.total=0}finally{H.value=!1}})}const ie=e.computed(()=>W.value);function oe(o,t){const a=o[t];return a==null?"":String(a)}function Q(){g.current=1,N()}function ae(){U.value="",g.current=1,N()}function ne(){g.current=1,N()}function re(){N()}e.watch(()=>{var o;return(o=s.controlUidList)==null?void 0:o.join(",")},()=>{g.current=1,N()});const D=e.ref(!1),z=e.ref(!1),x=e.ref(!1),i=e.reactive({id:0,uid:"",name:"",alias:"",description:"",script:"[]",template:"[]"});function L(){i.id=0,i.uid="",i.name="",i.alias="",i.description="",i.script="[]",i.template="[]"}function F(o,t){const a=(o==null?void 0:o.trim())||"";if(!a)return t;try{return JSON.stringify(JSON.parse(a))}catch(n){return null}}function se(){L(),D.value=!0}function de(o){return _(this,null,function*(){var t,a,n,d,u,r,y,k,I,V,A,E;L(),z.value=!0,x.value=!0;try{const h=yield B.api.post("control_item",{uid:o.uid},!0),b=(t=h==null?void 0:h.result)!=null?t:h;if(b&&typeof b=="object"){i.id=Number(b.id)||0,i.uid=String((n=(a=b.uid)!=null?a:o.uid)!=null?n:""),i.name=String((d=b.name)!=null?d:""),i.alias=String((u=b.alias)!=null?u:""),i.description=String((r=b.description)!=null?r:"");const S=b.script;i.script=typeof S=="string"?S:S!=null?JSON.stringify(S):"[]";const l=b.template;i.template=typeof l=="string"?l:l!=null?JSON.stringify(l):"[]"}else i.uid=String(o.uid),i.name=String((y=o.name)!=null?y:""),i.alias=String((k=o.alias)!=null?k:""),i.description=String((I=o.description)!=null?I:"")}catch(h){i.uid=String(o.uid),i.name=String((V=o.name)!=null?V:""),i.alias=String((A=o.alias)!=null?A:""),i.description=String((E=o.description)!=null?E:""),p.ElMessage.warning("拉取控制码详情失败,已使用列表行数据编辑")}finally{x.value=!1}})}function ue(){return _(this,null,function*(){var a;if(!((a=i.name)!=null&&a.trim())){p.ElMessage.warning("请填写控制码名称");return}const o=F(i.script,"[]"),t=F(i.template,"[]");if(o===null||t===null){p.ElMessage.error("脚本或模板不是合法 JSON");return}x.value=!0;try{yield B.api.post("control_create",{name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:o,template:t},!0),p.ElMessage.success("添加成功"),D.value=!1,yield N()}catch(n){p.ElMessage.error("添加失败")}finally{x.value=!1}})}function ce(){return _(this,null,function*(){var a;if(!((a=i.name)!=null&&a.trim())){p.ElMessage.warning("请填写控制码名称");return}const o=F(i.script,"[]"),t=F(i.template,"[]");if(o===null||t===null){p.ElMessage.error("脚本或模板不是合法 JSON");return}x.value=!0;try{yield B.api.post("control_update",{id:i.id,uid:i.uid,name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:o,template:t},!0),p.ElMessage.success("保存成功"),z.value=!1,yield N()}catch(n){p.ElMessage.error("保存失败")}finally{x.value=!1}})}const P=e.ref(!1),K=e.ref(!1),v=e.ref(null);function pe(o){if(o==null)return"";if(typeof o=="string")try{return JSON.stringify(JSON.parse(o),null,2)}catch(t){return o}try{return JSON.stringify(o,null,2)}catch(t){return String(o)}}const me=e.computed(()=>v.value?pe(v.value.script):"");function fe(o){return _(this,null,function*(){v.value=null,P.value=!0,K.value=!0;try{const t=yield B.api.post("control_item",{uid:o.uid},!0),a=t==null?void 0:t.result;a&&typeof a=="object"?v.value=a:(v.value=J({},o),p.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){v.value=J({},o),p.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{K.value=!1}})}function ge(o){p.ElMessageBox.confirm(`确认对控制码「${o.name||o.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{p.ElMessage.success("已提交备档(完整流程请在 mixui 控制码管理中操作)")}).catch(()=>{})}function ve(o){p.ElMessageBox.confirm(`确认删除控制码「${o.name||o.uid}」吗?`,"警告",{type:"warning"}).then(()=>_(null,null,function*(){try{yield B.api.post("control_delete",{uid:o.uid,id:o.id},!0),p.ElMessage.success("删除成功"),yield N()}catch(t){p.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{N()}),(o,t)=>{const a=f.ElIcon,n=f.ElInput,d=f.ElOption,u=f.ElSelect,r=f.ElButton,y=f.ElTableColumn,k=f.ElTable,I=f.ElPagination,V=f.ElFormItem,A=f.ElForm,E=f.ElDialog,h=f.ElDescriptionsItem,b=f.ElDescriptions,S=f.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(R)]),style:e.normalizeStyle(e.unref($))},[e.unref(w).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(O.value)},e.toDisplayString(m.conf.caption||m.conf.name),5)),e.createElementVNode("div",Be,[e.createElementVNode("div",Ee,[e.createVNode(n,{modelValue:U.value,"onUpdate:modelValue":t[0]||(t[0]=l=>U.value=l),placeholder:"搜索控制码",size:"small",class:"toolbar-search",onKeyup:e.withKeys(Q,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(a,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Se.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(u,{modelValue:j.value,"onUpdate:modelValue":t[1]||(t[1]=l=>j.value=l),size:"small",class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(d,{label:"控制码名称",value:"name"}),e.createVNode(d,{label:"控制码编号",value:"uid"}),e.createVNode(d,{label:"控制码别名",value:"alias"}),e.createVNode(d,{label:"描述",value:"description"})]),_:1},8,["modelValue"]),e.createVNode(r,{type:"primary",onClick:Q},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(r,{onClick:ae},{default:e.withCtx(()=>[...t[20]||(t[20]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(w).showAddBtn?(e.openBlock(),e.createBlock(r,{key:0,type:"success",onClick:se},{default:e.withCtx(()=>[...t[21]||(t[21]=[e.createTextVNode("添加控制码",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:T,class:"table-wrapper"},[e.createVNode(k,{data:ie.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(te.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.prop},[l.visible?(e.openBlock(),e.createBlock(y,{key:0,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(q=>[e.createElementVNode("span",null,e.toDisplayString(oe(q.row,l.prop)),1)]),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(y,{label:"操作","min-width":"220",fixed:"right"},{default:e.withCtx(l=>[e.unref(w).showViewBtn?(e.openBlock(),e.createBlock(r,{key:0,size:"small",onClick:q=>fe(l.row)},{default:e.withCtx(()=>[...t[22]||(t[22]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showEditBtn?(e.openBlock(),e.createBlock(r,{key:1,size:"small",type:"primary",onClick:q=>de(l.row)},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showArchiveBtn?(e.openBlock(),e.createBlock(r,{key:2,size:"small",type:"info",onClick:q=>ge(l.row)},{default:e.withCtx(()=>[...t[24]||(t[24]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showDeleteBtn?(e.openBlock(),e.createBlock(r,{key:3,size:"small",type:"danger",onClick:q=>ve(l.row)},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data","height"])],512),e.createElementVNode("div",Te,[e.createVNode(I,{"current-page":g.current,"onUpdate:currentPage":t[2]||(t[2]=l=>g.current=l),"page-size":g.pageSize,"onUpdate:pageSize":t[3]||(t[3]=l=>g.pageSize=l),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:g.total,onSizeChange:ne,onCurrentChange:re},null,8,["current-page","page-size","total"])])]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[S,H.value]]),e.createVNode(E,{modelValue:D.value,"onUpdate:modelValue":t[9]||(t[9]=l=>D.value=l),title:"添加控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(r,{onClick:t[8]||(t[8]=l=>D.value=!1)},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(r,{type:"primary",loading:x.value,onClick:ue},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(A,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(V,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.name,"onUpdate:modelValue":t[4]||(t[4]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.alias,"onUpdate:modelValue":t[5]||(t[5]=l=>i.alias=l),placeholder:"可选"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.description,"onUpdate:modelValue":t[6]||(t[6]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.script,"onUpdate:modelValue":t[7]||(t[7]=l=>i.script=l),type:"textarea",rows:8,placeholder:"JSON 数组,默认 []"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:z.value,"onUpdate:modelValue":t[16]||(t[16]=l=>z.value=l),title:"编辑控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(r,{onClick:t[15]||(t[15]=l=>z.value=!1)},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(r,{type:"primary",loading:x.value,onClick:ce},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(A,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(V,{label:"控制码编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.uid,"onUpdate:modelValue":t[10]||(t[10]=l=>i.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.name,"onUpdate:modelValue":t[11]||(t[11]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.alias,"onUpdate:modelValue":t[12]||(t[12]=l=>i.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.description,"onUpdate:modelValue":t[13]||(t[13]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.script,"onUpdate:modelValue":t[14]||(t[14]=l=>i.script=l),type:"textarea",rows:8},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:P.value,"onUpdate:modelValue":t[18]||(t[18]=l=>P.value=l),title:"控制码详情",width:"720px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(r,{type:"primary",onClick:t[17]||(t[17]=l=>P.value=!1)},{default:e.withCtx(()=>[...t[31]||(t[31]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Oe,[v.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(b,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(h,{label:"控制码编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"控制码名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"控制码别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"更新时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.description)!=null?l:""),1)]}),_:1})]),_:1}),t[30]||(t[30]=e.createElementVNode("div",{class:"view-block-title"},"控制码脚本",-1)),e.createVNode(n,{"model-value":me.value,type:"textarea",rows:10,readonly:""},null,8,["model-value"])],64)):e.createCommentVNode("",!0)])),[[S,K.value]])]),_:1},8,["modelValue"])],64)}}})),Fe=B._export_sfc(Le,[["__scopeId","data-v-95b08a91"]]);exports.default=Fe;
1
+ "use strict";var ve=Object.defineProperty,Ve=Object.defineProperties;var ye=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var be=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var X=(m,s,c)=>s in m?ve(m,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[s]=c,J=(m,s)=>{for(var c in s||(s={}))be.call(s,c)&&X(m,c,s[c]);if(G)for(var c of G(s))we.call(s,c)&&X(m,c,s[c]);return m},Y=(m,s)=>Ve(m,ye(s));var _=(m,s,c)=>new Promise((M,w)=>{var R=C=>{try{T(c.next(C))}catch(O){w(O)}},$=C=>{try{T(c.throw(C))}catch(O){w(O)}},T=C=>C.done?M(C.value):Promise.resolve(C.value).then(R,$);T((c=c.apply(m,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),Ce=require("./useTableBodyHeight-pf87uGjw.cjs"),Ne=require("./useMixiotPanelSurface-CAZgexY5.cjs"),xe=require("./BaseComponent-CJ3CP33o.cjs"),B=require("./index-B8X4_OUp.cjs"),ke=require("./titleStyle-NSnz6cUg.cjs"),p=require("element-plus"),Se=require("@element-plus/icons-vue"),_e=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),Z=require("./ele-lst-icon-CrxnHZ-A.cjs"),Be={class:"mix-body"},Ee={class:"toolbar"},Te={class:"pagination"},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"]},ze={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{key:"uid",label:"控制码编号",width:160,visible:!0},{key:"alias",label:"控制码别名",width:140,visible:!0},{key:"name",label:"控制码名称",width:160,visible:!0},{key:"description",label:"描述",minWidth:160,visible:!0},{key:"created",label:"创建时间",width:170,visible:!0},{key:"last_modified",label:"更新时间",width:170,visible:!0}]},ee=[{name:"控制码名称",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0,uid:"控制码编号",uid_visible:!0,alias:"控制码别名",alias_visible:!0,description:"描述",description_visible:!0,created:"创建时间",created_visible:!0,last_modified:"更新时间",last_modified_visible:!0}],Ae=[{key:"showAddBtn",label:"添加控制码",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组"},{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showArchiveBtn",label:"资料备档",type:"checkbox",group:"操作组"},{key:"showDeleteBtn",label:"删除",type:"checkbox",group:"操作组"},{key:"name",label:"参数名称"},{key:"uid",label:"控制码编号",checkable:!0,checkboxKey:"uid_visible"},{key:"alias",label:"控制码别名",checkable:!0,checkboxKey:"alias_visible"},{key:"description",label:"描述",checkable:!0,checkboxKey:"description_visible"},{key:"created",label:"创建时间",checkable:!0,checkboxKey:"created_visible"},{key:"last_modified",label:"更新时间",checkable:!0,checkboxKey:"last_modified_visible"}],qe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Me={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:ze,DATA:ee,PARAMS:Ae,SOURCE:qe,COMMON:Me},Le=e.defineComponent(Y(J({},Ue),{__name:"controlList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""},controlUidList:{default:()=>[]}},setup(m){const s=m;class c extends xe.BaseComponent{getDataBool(t,a){var d,u;const n=(u=(d=this.props.conf)==null?void 0:d.data)==null?void 0:u[0];return n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0?!!n[t]:this.getOptionValue(t,a)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showAddBtn:this.getDataBool("showAddBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(ee));else{const a=this.props.conf.data[0],n={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[u,r]of Object.entries(n))a[u]===void 0&&(a[u]=r);const d={uid_visible:!0,alias_visible:!0,description_visible:!0,created_visible:!0,last_modified_visible:!0};for(const[u,r]of Object.entries(d))a[u]===void 0&&(a[u]=r)}}}const M=new c(s,"controlList");M.setupLifecycle();const w=M.getStyle(),{mixiotPanelClass:R,mixiotPanelRootStyle:$}=Ne.useMixiotPanelSurface(w),{tableWrapRef:T,tableBodyHeight:C}=Ce.useTableBodyHeight(),O=e.computed(()=>ke.generateTitleStyle(s.conf.options)),te=e.computed(()=>{var a,n,d,u;const o=((n=(a=s.conf)==null?void 0:a.options)==null?void 0:n.columns)||[],t=((u=(d=s.conf)==null?void 0:d.data)==null?void 0:u[0])||{};return(Array.isArray(o)?o:[]).map(r=>{const y=t[r.key],k=t[`${r.key}_visible`];return{prop:r.key,label:y!==void 0&&y!==""?String(y):r.label,width:r.width,minWidth:r.minWidth,visible:k!==void 0?!!k:r.visible!==!1}})}),g=e.reactive({current:1,pageSize:10,total:0}),U=e.ref(""),j=e.ref("name"),W=e.ref([]),H=e.ref(!1);function le(){const o={page_index:g.current,page_size:g.pageSize},t=[],a=U.value.trim();return a&&t.push([j.value,"like",`%${a}%`]),_e.appendCommonDesignerWhereAnd(s.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function N(){return _(this,null,function*(){var o,t;H.value=!0;try{const a=yield B.api.http("control_list",le(),!0),n=(o=a==null?void 0:a.result)!=null?o:a;let d=Array.isArray(n==null?void 0:n.data)?[...n.data]:[];if((t=s.controlUidList)!=null&&t.length){const r=new Set(s.controlUidList.map(String));d=d.filter(y=>r.has(String(y.uid)))}W.value=d;const u=n==null?void 0:n.total_records;g.total=typeof u=="number"?u:d.length,a&&a.code!==void 0&&a.code!==200&&console.warn("[controlList] 列表接口非成功",a.msg||a.info,a)}catch(a){console.error(a),W.value=[],g.total=0}finally{H.value=!1}})}const ie=e.computed(()=>W.value);function oe(o,t){const a=o[t];return a==null?"":String(a)}function Q(){g.current=1,N()}function ae(){U.value="",g.current=1,N()}function ne(){g.current=1,N()}function re(){N()}e.watch(()=>{var o;return(o=s.controlUidList)==null?void 0:o.join(",")},()=>{g.current=1,N()});const D=e.ref(!1),z=e.ref(!1),x=e.ref(!1),i=e.reactive({id:0,uid:"",name:"",alias:"",description:"",script:"[]",template:"[]"});function L(){i.id=0,i.uid="",i.name="",i.alias="",i.description="",i.script="[]",i.template="[]"}function F(o,t){const a=(o==null?void 0:o.trim())||"";if(!a)return t;try{return JSON.stringify(JSON.parse(a))}catch(n){return null}}function se(){L(),D.value=!0}function de(o){return _(this,null,function*(){var t,a,n,d,u,r,y,k,I,v,A,E;L(),z.value=!0,x.value=!0;try{const V=yield B.api.http("control_item",{uid:o.uid},!0),b=(t=V==null?void 0:V.result)!=null?t:V;if(b&&typeof b=="object"){i.id=Number(b.id)||0,i.uid=String((n=(a=b.uid)!=null?a:o.uid)!=null?n:""),i.name=String((d=b.name)!=null?d:""),i.alias=String((u=b.alias)!=null?u:""),i.description=String((r=b.description)!=null?r:"");const S=b.script;i.script=typeof S=="string"?S:S!=null?JSON.stringify(S):"[]";const l=b.template;i.template=typeof l=="string"?l:l!=null?JSON.stringify(l):"[]"}else i.uid=String(o.uid),i.name=String((y=o.name)!=null?y:""),i.alias=String((k=o.alias)!=null?k:""),i.description=String((I=o.description)!=null?I:"")}catch(V){i.uid=String(o.uid),i.name=String((v=o.name)!=null?v:""),i.alias=String((A=o.alias)!=null?A:""),i.description=String((E=o.description)!=null?E:""),p.ElMessage.warning("拉取控制码详情失败,已使用列表行数据编辑")}finally{x.value=!1}})}function ue(){return _(this,null,function*(){var a;if(!((a=i.name)!=null&&a.trim())){p.ElMessage.warning("请填写控制码名称");return}const o=F(i.script,"[]"),t=F(i.template,"[]");if(o===null||t===null){p.ElMessage.error("脚本或模板不是合法 JSON");return}x.value=!0;try{yield B.api.http("control_create",{name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:o,template:t},!0),p.ElMessage.success("添加成功"),D.value=!1,yield N()}catch(n){p.ElMessage.error("添加失败")}finally{x.value=!1}})}function ce(){return _(this,null,function*(){var a;if(!((a=i.name)!=null&&a.trim())){p.ElMessage.warning("请填写控制码名称");return}const o=F(i.script,"[]"),t=F(i.template,"[]");if(o===null||t===null){p.ElMessage.error("脚本或模板不是合法 JSON");return}x.value=!0;try{yield B.api.http("control_update",{id:i.id,uid:i.uid,name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:o,template:t},!0),p.ElMessage.success("保存成功"),z.value=!1,yield N()}catch(n){p.ElMessage.error("保存失败")}finally{x.value=!1}})}const P=e.ref(!1),K=e.ref(!1),h=e.ref(null);function pe(o){if(o==null)return"";if(typeof o=="string")try{return JSON.stringify(JSON.parse(o),null,2)}catch(t){return o}try{return JSON.stringify(o,null,2)}catch(t){return String(o)}}const me=e.computed(()=>h.value?pe(h.value.script):"");function fe(o){return _(this,null,function*(){h.value=null,P.value=!0,K.value=!0;try{const t=yield B.api.http("control_item",{uid:o.uid},!0),a=t==null?void 0:t.result;a&&typeof a=="object"?h.value=a:(h.value=J({},o),p.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){h.value=J({},o),p.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{K.value=!1}})}function ge(o){p.ElMessageBox.confirm(`确认对控制码「${o.name||o.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{p.ElMessage.success("已提交备档(完整流程请在 mixui 控制码管理中操作)")}).catch(()=>{})}function he(o){p.ElMessageBox.confirm(`确认删除控制码「${o.name||o.uid}」吗?`,"警告",{type:"warning"}).then(()=>_(null,null,function*(){try{yield B.api.http("control_delete",{uid:o.uid,id:o.id},!0),p.ElMessage.success("删除成功"),yield N()}catch(t){p.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{N()}),(o,t)=>{const a=f.ElIcon,n=f.ElInput,d=f.ElOption,u=f.ElSelect,r=f.ElButton,y=f.ElTableColumn,k=f.ElTable,I=f.ElPagination,v=f.ElFormItem,A=f.ElForm,E=f.ElDialog,V=f.ElDescriptionsItem,b=f.ElDescriptions,S=f.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(R)]),style:e.normalizeStyle(e.unref($))},[e.unref(w).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(O.value)},e.toDisplayString(m.conf.caption||m.conf.name),5)),e.createElementVNode("div",Be,[e.createElementVNode("div",Ee,[e.createVNode(n,{modelValue:U.value,"onUpdate:modelValue":t[0]||(t[0]=l=>U.value=l),placeholder:"搜索控制码",size:"small",class:"toolbar-search",onKeyup:e.withKeys(Q,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(a,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Se.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(u,{modelValue:j.value,"onUpdate:modelValue":t[1]||(t[1]=l=>j.value=l),size:"small",class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(d,{label:"控制码名称",value:"name"}),e.createVNode(d,{label:"控制码编号",value:"uid"}),e.createVNode(d,{label:"控制码别名",value:"alias"}),e.createVNode(d,{label:"描述",value:"description"})]),_:1},8,["modelValue"]),e.createVNode(r,{type:"primary",onClick:Q},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(r,{onClick:ae},{default:e.withCtx(()=>[...t[20]||(t[20]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(w).showAddBtn?(e.openBlock(),e.createBlock(r,{key:0,type:"success",onClick:se},{default:e.withCtx(()=>[...t[21]||(t[21]=[e.createTextVNode("添加控制码",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:T,class:"table-wrapper"},[e.createVNode(k,{data:ie.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(te.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.prop},[l.visible?(e.openBlock(),e.createBlock(y,{key:0,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(q=>[e.createElementVNode("span",null,e.toDisplayString(oe(q.row,l.prop)),1)]),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(y,{label:"操作","min-width":"220",fixed:"right"},{default:e.withCtx(l=>[e.unref(w).showViewBtn?(e.openBlock(),e.createBlock(r,{key:0,size:"small",onClick:q=>fe(l.row)},{default:e.withCtx(()=>[...t[22]||(t[22]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showEditBtn?(e.openBlock(),e.createBlock(r,{key:1,size:"small",type:"primary",onClick:q=>de(l.row)},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showArchiveBtn?(e.openBlock(),e.createBlock(r,{key:2,size:"small",type:"info",onClick:q=>ge(l.row)},{default:e.withCtx(()=>[...t[24]||(t[24]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showDeleteBtn?(e.openBlock(),e.createBlock(r,{key:3,size:"small",type:"danger",onClick:q=>he(l.row)},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data","height"])],512),e.createElementVNode("div",Te,[e.createVNode(I,{"current-page":g.current,"onUpdate:currentPage":t[2]||(t[2]=l=>g.current=l),"page-size":g.pageSize,"onUpdate:pageSize":t[3]||(t[3]=l=>g.pageSize=l),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:g.total,onSizeChange:ne,onCurrentChange:re},null,8,["current-page","page-size","total"])])]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[S,H.value]]),e.createVNode(E,{modelValue:D.value,"onUpdate:modelValue":t[9]||(t[9]=l=>D.value=l),title:"添加控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(r,{onClick:t[8]||(t[8]=l=>D.value=!1)},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(r,{type:"primary",loading:x.value,onClick:ue},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(A,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(v,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.name,"onUpdate:modelValue":t[4]||(t[4]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(v,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.alias,"onUpdate:modelValue":t[5]||(t[5]=l=>i.alias=l),placeholder:"可选"},null,8,["modelValue"])]),_:1}),e.createVNode(v,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.description,"onUpdate:modelValue":t[6]||(t[6]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(v,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.script,"onUpdate:modelValue":t[7]||(t[7]=l=>i.script=l),type:"textarea",rows:8,placeholder:"JSON 数组,默认 []"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:z.value,"onUpdate:modelValue":t[16]||(t[16]=l=>z.value=l),title:"编辑控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(r,{onClick:t[15]||(t[15]=l=>z.value=!1)},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(r,{type:"primary",loading:x.value,onClick:ce},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(A,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(v,{label:"控制码编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.uid,"onUpdate:modelValue":t[10]||(t[10]=l=>i.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(v,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.name,"onUpdate:modelValue":t[11]||(t[11]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(v,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.alias,"onUpdate:modelValue":t[12]||(t[12]=l=>i.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(v,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.description,"onUpdate:modelValue":t[13]||(t[13]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(v,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.script,"onUpdate:modelValue":t[14]||(t[14]=l=>i.script=l),type:"textarea",rows:8},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:P.value,"onUpdate:modelValue":t[18]||(t[18]=l=>P.value=l),title:"控制码详情",width:"720px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(r,{type:"primary",onClick:t[17]||(t[17]=l=>P.value=!1)},{default:e.withCtx(()=>[...t[31]||(t[31]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Oe,[h.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(b,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(V,{label:"控制码编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=h.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(V,{label:"控制码名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=h.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(V,{label:"控制码别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=h.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(V,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=h.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(V,{label:"更新时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=h.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(V,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=h.value.description)!=null?l:""),1)]}),_:1})]),_:1}),t[30]||(t[30]=e.createElementVNode("div",{class:"view-block-title"},"控制码脚本",-1)),e.createVNode(n,{"model-value":me.value,type:"textarea",rows:10,readonly:""},null,8,["model-value"])],64)):e.createCommentVNode("",!0)])),[[S,K.value]])]),_:1},8,["modelValue"])],64)}}})),Fe=B._export_sfc(Le,[["__scopeId","data-v-7f69f02d"]]);exports.default=Fe;
@@ -45,8 +45,8 @@ import "element-plus/es/components/icon/style/css";
45
45
  import { defineComponent as Ge, computed as Y, reactive as de, ref as k, watch as Xe, onMounted as Ye, openBlock as y, createElementBlock as T, Fragment as Z, withDirectives as pe, normalizeStyle as ce, unref as C, normalizeClass as Ze, toDisplayString as z, createCommentVNode as E, createElementVNode as L, createVNode as o, withKeys as et, withCtx as n, createTextVNode as c, createBlock as F, renderList as tt, renderSlot as lt } from "vue";
46
46
  import { u as it } from "./useTableBodyHeight-CwrQvi7M.js";
47
47
  import { u as ot } from "./useMixiotPanelSurface-DRl3cZvc.js";
48
- import { B as at } from "./BaseComponent-B59M7tSp.js";
49
- import { a as J, _ as nt } from "./index-C596S3FR.js";
48
+ import { B as at } from "./BaseComponent-DQKmWNg3.js";
49
+ import { a as J, _ as nt } from "./index-yfWcELw0.js";
50
50
  import { g as st } from "./titleStyle-BT5GlpAb.js";
51
51
  import { ElMessage as v, ElMessageBox as me } from "element-plus";
52
52
  import { Search as rt } from "@element-plus/icons-vue";
@@ -222,7 +222,7 @@ const ct = { class: "mix-body" }, mt = { class: "toolbar" }, ft = { class: "pagi
222
222
  var i, e;
223
223
  oe.value = !0;
224
224
  try {
225
- const a = yield J.post(
225
+ const a = yield J.http(
226
226
  "control_list",
227
227
  be(),
228
228
  !0
@@ -297,7 +297,7 @@ const ct = { class: "mix-body" }, mt = { class: "toolbar" }, ft = { class: "pagi
297
297
  var e, a, s, d, p, r, _, A, G, h, j, U;
298
298
  H(), M.value = !0, O.value = !0;
299
299
  try {
300
- const w = yield J.post("control_item", { uid: i.uid }, !0), V = (e = w == null ? void 0 : w.result) != null ? e : w;
300
+ const w = yield J.http("control_item", { uid: i.uid }, !0), V = (e = w == null ? void 0 : w.result) != null ? e : w;
301
301
  if (V && typeof V == "object") {
302
302
  l.id = Number(V.id) || 0, l.uid = String((s = (a = V.uid) != null ? a : i.uid) != null ? s : ""), l.name = String((d = V.name) != null ? d : ""), l.alias = String((p = V.alias) != null ? p : ""), l.description = String((r = V.description) != null ? r : "");
303
303
  const D = V.script;
@@ -327,7 +327,7 @@ const ct = { class: "mix-body" }, mt = { class: "toolbar" }, ft = { class: "pagi
327
327
  }
328
328
  O.value = !0;
329
329
  try {
330
- yield J.post(
330
+ yield J.http(
331
331
  "control_create",
332
332
  {
333
333
  name: l.name.trim(),
@@ -359,7 +359,7 @@ const ct = { class: "mix-body" }, mt = { class: "toolbar" }, ft = { class: "pagi
359
359
  }
360
360
  O.value = !0;
361
361
  try {
362
- yield J.post(
362
+ yield J.http(
363
363
  "control_update",
364
364
  {
365
365
  id: l.id,
@@ -399,7 +399,7 @@ const ct = { class: "mix-body" }, mt = { class: "toolbar" }, ft = { class: "pagi
399
399
  return N(this, null, function* () {
400
400
  g.value = null, Q.value = !0, ae.value = !0;
401
401
  try {
402
- const e = yield J.post("control_item", { uid: i.uid }, !0), a = e == null ? void 0 : e.result;
402
+ const e = yield J.http("control_item", { uid: i.uid }, !0), a = e == null ? void 0 : e.result;
403
403
  a && typeof a == "object" ? g.value = a : (g.value = X({}, i), v.warning("未返回详情,已显示列表行数据"));
404
404
  } catch (e) {
405
405
  g.value = X({}, i), v.warning("加载详情失败,已显示列表行数据");
@@ -417,7 +417,7 @@ const ct = { class: "mix-body" }, mt = { class: "toolbar" }, ft = { class: "pagi
417
417
  function Ee(i) {
418
418
  me.confirm(`确认删除控制码「${i.name || i.uid}」吗?`, "警告", { type: "warning" }).then(() => N(null, null, function* () {
419
419
  try {
420
- yield J.post("control_delete", { uid: i.uid, id: i.id }, !0), v.success("删除成功"), yield x();
420
+ yield J.http("control_delete", { uid: i.uid, id: i.id }, !0), v.success("删除成功"), yield x();
421
421
  } catch (e) {
422
422
  v.error("删除失败");
423
423
  }
@@ -896,7 +896,7 @@ const ct = { class: "mix-body" }, mt = { class: "toolbar" }, ft = { class: "pagi
896
896
  ], 64);
897
897
  };
898
898
  }
899
- })), Gt = /* @__PURE__ */ nt(Vt, [["__scopeId", "data-v-95b08a91"]]);
899
+ })), Gt = /* @__PURE__ */ nt(Vt, [["__scopeId", "data-v-7f69f02d"]]);
900
900
  export {
901
901
  Gt as default
902
902
  };
@@ -41,8 +41,8 @@ import "element-plus/es/components/icon/style/css";
41
41
  import { defineComponent as Ce, computed as $, reactive as xe, ref as O, onMounted as Ee, withDirectives as ze, openBlock as _, createElementBlock as w, normalizeStyle as G, unref as g, normalizeClass as Be, toDisplayString as I, createCommentVNode as H, createElementVNode as T, createVNode as u, withKeys as Oe, withCtx as b, createTextVNode as V, createBlock as U, Fragment as X, renderList as Te, renderSlot as Ve } from "vue";
42
42
  import { u as je } from "./useTableBodyHeight-CwrQvi7M.js";
43
43
  import { u as Re } from "./useMixiotPanelSurface-DRl3cZvc.js";
44
- import { B as Ae } from "./BaseComponent-B59M7tSp.js";
45
- import { a as Z, _ as De } from "./index-C596S3FR.js";
44
+ import { B as Ae } from "./BaseComponent-DQKmWNg3.js";
45
+ import { a as Z, _ as De } from "./index-yfWcELw0.js";
46
46
  import { g as Ne } from "./titleStyle-BT5GlpAb.js";
47
47
  import { ElMessage as j, ElMessageBox as Le } from "element-plus";
48
48
  import { Search as Pe } from "@element-plus/icons-vue";
@@ -214,7 +214,7 @@ const $e = { class: "mix-body" }, Ie = { class: "toolbar" }, He = { key: 1 }, Ue
214
214
  var o;
215
215
  N.value = !0;
216
216
  try {
217
- const e = yield Z.post(
217
+ const e = yield Z.http(
218
218
  "get_control_record_list",
219
219
  oe(),
220
220
  !0
@@ -271,7 +271,7 @@ const $e = { class: "mix-body" }, Ie = { class: "toolbar" }, He = { key: 1 }, Ue
271
271
  return;
272
272
  }
273
273
  try {
274
- const i = yield Z.post(
274
+ const i = yield Z.http(
275
275
  "export_control_record",
276
276
  {
277
277
  file_name: `control_record_${L(e).replace(/[: ]/g, "_")}`,
@@ -438,7 +438,7 @@ const $e = { class: "mix-body" }, Ie = { class: "toolbar" }, He = { key: 1 }, Ue
438
438
  ]);
439
439
  };
440
440
  }
441
- })), wt = /* @__PURE__ */ De(Xe, [["__scopeId", "data-v-6c8480ae"]]);
441
+ })), wt = /* @__PURE__ */ De(Xe, [["__scopeId", "data-v-b92ec67a"]]);
442
442
  export {
443
443
  wt as default
444
444
  };
@@ -1 +1 @@
1
- "use strict";var X=Object.defineProperty,Z=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var P=(c,i,r)=>i in c?X(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,j=(c,i)=>{for(var r in i||(i={}))te.call(i,r)&&P(c,r,i[r]);if(M)for(var r of M(i))oe.call(i,r)&&P(c,r,i[r]);return c},F=(c,i)=>Z(c,ee(i));var D=(c,i,r)=>new Promise((k,_)=>{var E=b=>{try{g(r.next(b))}catch(h){_(h)}},B=b=>{try{g(r.throw(b))}catch(h){_(h)}},g=b=>b.done?k(b.value):Promise.resolve(b.value).then(E,B);g((r=r.apply(c,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),ae=require("./useTableBodyHeight-pf87uGjw.cjs"),le=require("./useMixiotPanelSurface-CAZgexY5.cjs"),ie=require("./BaseComponent-DjjN5Pou.cjs"),R=require("./index-CLrFRvna.cjs"),ne=require("./titleStyle-NSnz6cUg.cjs"),y=require("element-plus"),re=require("@element-plus/icons-vue"),se=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),I=require("./ele-lst-icon-CrxnHZ-A.cjs"),ce={class:"mix-body"},ue={class:"toolbar"},de={key:1},pe={class:"pagination"},me={DEFAULT_ICON:I.DEFAULT_ICON,ACTIVE_ICON:I.ACTIVE_ICON,NAME_CN:"控制记录",NAME_EN:"ControlRecordList",ORDER:4,PLATFORM:["pc","screen"]},be={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:"object_id",label:"对象编号",width:140,visible:!0},{key:"created_by",label:"用户名",width:120,visible:!0},{key:"command",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},{key:"created",label:"控制时间",width:180,visible:!0}]},$=[{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}],_e=[{key:"showExportBtn",label:"导出按钮",type:"checkbox",group:"命令组"},{key:"name",label:"参数名称"},{key:"object_id_label",label:"对象编号",checkable:!0,checkboxKey:"object_id_visible"},{key:"created_by",label:"用户名",checkable:!0,checkboxKey:"created_by_visible"},{key:"command",label:"控制码指令",checkable:!0,checkboxKey:"command_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"},{key:"created",label:"控制时间",checkable:!0,checkboxKey:"created_visible"}],ge=["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"}]},ve={DEFAULT:me,OPTIONS:be,DATA:$,PARAMS:_e,SOURCE:ge,COMMON:he},fe=e.defineComponent(F(j({},ve),{__name:"controlRecordList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(c){const i=c;class r extends ie.BaseComponent{getDataBool(t,o){var n,p;const l=(p=(n=this.props.conf)==null?void 0:n.data)==null?void 0:p[0];return l&&Object.prototype.hasOwnProperty.call(l,t)&&l[t]!==void 0?!!l[t]:this.getOptionValue(t,o)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),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($));else{const o=this.props.conf.data[0];o.showExportBtn===void 0&&(o.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[n,p]of Object.entries(l))o[n]===void 0&&(o[n]=p)}}}const k=new r(i,"controlRecordList");k.setupLifecycle();const _=k.getStyle(),{mixiotPanelClass:E,mixiotPanelRootStyle:B}=le.useMixiotPanelSurface(_),{tableWrapRef:g,tableBodyHeight:b}=ae.useTableBodyHeight(),h=e.computed(()=>ne.generateTitleStyle(i.conf.options)),K=e.computed(()=>{var o,l,n,p;const a=((l=(o=i.conf)==null?void 0:o.options)==null?void 0:l.columns)||[],t=((p=(n=i.conf)==null?void 0:n.data)==null?void 0:p[0])||{};return(Array.isArray(a)?a:[]).map(u=>{var V;let S=u.key;u.key==="object_id"&&(S="object_id_label");const f=(V=t[S])!=null?V:t[u.key],O=u.key==="object_id"?"object_id_visible":`${u.key}_visible`,x=t[O];return{prop:u.key,label:f!==void 0&&f!==""?String(f):u.label,width:u.width,minWidth:u.minWidth,visible:x!==void 0?!!x:u.visible!==!1}})}),d=e.reactive({current:1,pageSize:10,total:0}),w=e.ref(""),N=e.ref("object_id"),C=e.ref([]),T=e.ref(!1);function H(){const a={page_index:d.current,page_size:d.pageSize},t=[],o=w.value.trim();return o&&t.push([N.value,"like",`%${o}%`]),se.appendCommonDesignerWhereAnd(i.conf.common,t),t.length&&(a.where_and=JSON.stringify(t)),a}function A(a){const t=a.error;return t===""||t===null||t===void 0}function v(){return D(this,null,function*(){var a;T.value=!0;try{const t=yield R.api.post("get_control_record_list",H(),!0),o=(a=t==null?void 0:t.result)!=null?a:t,l=Array.isArray(o==null?void 0:o.data)?o.data:[];C.value=l.map(p=>j({},p));const n=o==null?void 0:o.total_records;d.total=typeof n=="number"?n:l.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[controlRecordList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),C.value=[],d.total=0}finally{T.value=!1}})}const U=e.computed(()=>C.value);function W(a,t){const o=a[t];return o==null?"":String(o)}function L(){d.current=1,v()}function J(){w.value="",d.current=1,v()}function Q(){d.current=1,v()}function Y(){v()}function z(a){const t=o=>String(o).padStart(2,"0");return`${a.getFullYear()}-${t(a.getMonth()+1)}-${t(a.getDate())} ${t(a.getHours())}:${t(a.getMinutes())}:${t(a.getSeconds())}`}function G(){return D(this,null,function*(){const a=[...new Set(C.value.map(l=>{var n;return String((n=l.object_id)!=null?n:"").trim()}).filter(Boolean))];if(!a.length){y.ElMessage.warning("当前列表无对象编号,请加载记录后再导出");return}const t=new Date,o=new Date(t.getTime()-168*3600*1e3);try{yield y.ElMessageBox.confirm(`将按最近 7 天、当前已加载列表中的 ${a.length} 个对象编号发起导出任务,是否继续?`,"导出控制记录",{type:"info"})}catch(l){return}try{const l=yield R.api.post("export_control_record",{file_name:`control_record_${z(t).replace(/[: ]/g,"_")}`,start_time:z(o),end_time:z(t),object_ids:a},!0);if(l.code!==void 0&&l.code!==200){y.ElMessage.warning(l.msg||l.info||"导出请求未成功");return}y.ElMessage.success("导出任务已提交")}catch(l){y.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{v()}),(a,t)=>{const o=m.ElIcon,l=m.ElInput,n=m.ElOption,p=m.ElSelect,u=m.ElButton,S=m.ElTag,f=m.ElTableColumn,O=m.ElTable,x=m.ElPagination,V=m.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-record-list mix-component",e.unref(E)]),style:e.normalizeStyle(e.unref(B))},[e.unref(_).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(h.value)},e.toDisplayString(c.conf.caption||c.conf.name),5)),e.createElementVNode("div",ce,[e.createElementVNode("div",ue,[e.createVNode(l,{modelValue:w.value,"onUpdate:modelValue":t[0]||(t[0]=s=>w.value=s),placeholder:"搜索控制记录",size:"small",class:"toolbar-search",onKeyup:e.withKeys(L,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(o,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(re.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(p,{modelValue:N.value,"onUpdate:modelValue":t[1]||(t[1]=s=>N.value=s),size:"small",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(u,{type:"primary",onClick:L},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(u,{onClick:J},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(_).showExportBtn?(e.openBlock(),e.createBlock(u,{key:0,type:"success",onClick:G},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:g,class:"table-wrapper"},[e.createVNode(O,{data:U.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(b)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(K.value,s=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s.prop},[s.visible?(e.openBlock(),e.createBlock(f,{key:0,prop:s.prop,label:s.label,width:s.width,"min-width":s.minWidth},{default:e.withCtx(q=>[s.prop==="status"?(e.openBlock(),e.createBlock(S,{key:0,type:A(q.row)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A(q.row)?"成功":"失败"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",de,e.toDisplayString(W(q.row,s.prop)),1))]),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128))]),_:1},8,["data","height"])],512),e.createElementVNode("div",pe,[e.createVNode(x,{"current-page":d.current,"onUpdate:currentPage":t[2]||(t[2]=s=>d.current=s),"page-size":d.pageSize,"onUpdate:pageSize":t[3]||(t[3]=s=>d.pageSize=s),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:d.total,onSizeChange:Q,onCurrentChange:Y},null,8,["current-page","page-size","total"])])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],6)),[[V,T.value]])}}})),ye=R._export_sfc(fe,[["__scopeId","data-v-6c8480ae"]]);exports.default=ye;
1
+ "use strict";var X=Object.defineProperty,Z=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var P=(c,i,r)=>i in c?X(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,j=(c,i)=>{for(var r in i||(i={}))te.call(i,r)&&P(c,r,i[r]);if(M)for(var r of M(i))oe.call(i,r)&&P(c,r,i[r]);return c},F=(c,i)=>Z(c,ee(i));var D=(c,i,r)=>new Promise((k,_)=>{var E=b=>{try{g(r.next(b))}catch(h){_(h)}},B=b=>{try{g(r.throw(b))}catch(h){_(h)}},g=b=>b.done?k(b.value):Promise.resolve(b.value).then(E,B);g((r=r.apply(c,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),ae=require("./useTableBodyHeight-pf87uGjw.cjs"),le=require("./useMixiotPanelSurface-CAZgexY5.cjs"),ie=require("./BaseComponent-CJ3CP33o.cjs"),R=require("./index-B8X4_OUp.cjs"),ne=require("./titleStyle-NSnz6cUg.cjs"),y=require("element-plus"),re=require("@element-plus/icons-vue"),se=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),I=require("./ele-lst-icon-CrxnHZ-A.cjs"),ce={class:"mix-body"},ue={class:"toolbar"},de={key:1},pe={class:"pagination"},me={DEFAULT_ICON:I.DEFAULT_ICON,ACTIVE_ICON:I.ACTIVE_ICON,NAME_CN:"控制记录",NAME_EN:"ControlRecordList",ORDER:4,PLATFORM:["pc","screen"]},be={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:"object_id",label:"对象编号",width:140,visible:!0},{key:"created_by",label:"用户名",width:120,visible:!0},{key:"command",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},{key:"created",label:"控制时间",width:180,visible:!0}]},$=[{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}],_e=[{key:"showExportBtn",label:"导出按钮",type:"checkbox",group:"命令组"},{key:"name",label:"参数名称"},{key:"object_id_label",label:"对象编号",checkable:!0,checkboxKey:"object_id_visible"},{key:"created_by",label:"用户名",checkable:!0,checkboxKey:"created_by_visible"},{key:"command",label:"控制码指令",checkable:!0,checkboxKey:"command_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"},{key:"created",label:"控制时间",checkable:!0,checkboxKey:"created_visible"}],ge=["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"}]},ve={DEFAULT:me,OPTIONS:be,DATA:$,PARAMS:_e,SOURCE:ge,COMMON:he},fe=e.defineComponent(F(j({},ve),{__name:"controlRecordList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(c){const i=c;class r extends ie.BaseComponent{getDataBool(t,o){var n,p;const l=(p=(n=this.props.conf)==null?void 0:n.data)==null?void 0:p[0];return l&&Object.prototype.hasOwnProperty.call(l,t)&&l[t]!==void 0?!!l[t]:this.getOptionValue(t,o)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),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($));else{const o=this.props.conf.data[0];o.showExportBtn===void 0&&(o.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[n,p]of Object.entries(l))o[n]===void 0&&(o[n]=p)}}}const k=new r(i,"controlRecordList");k.setupLifecycle();const _=k.getStyle(),{mixiotPanelClass:E,mixiotPanelRootStyle:B}=le.useMixiotPanelSurface(_),{tableWrapRef:g,tableBodyHeight:b}=ae.useTableBodyHeight(),h=e.computed(()=>ne.generateTitleStyle(i.conf.options)),K=e.computed(()=>{var o,l,n,p;const a=((l=(o=i.conf)==null?void 0:o.options)==null?void 0:l.columns)||[],t=((p=(n=i.conf)==null?void 0:n.data)==null?void 0:p[0])||{};return(Array.isArray(a)?a:[]).map(u=>{var V;let S=u.key;u.key==="object_id"&&(S="object_id_label");const f=(V=t[S])!=null?V:t[u.key],O=u.key==="object_id"?"object_id_visible":`${u.key}_visible`,x=t[O];return{prop:u.key,label:f!==void 0&&f!==""?String(f):u.label,width:u.width,minWidth:u.minWidth,visible:x!==void 0?!!x:u.visible!==!1}})}),d=e.reactive({current:1,pageSize:10,total:0}),w=e.ref(""),N=e.ref("object_id"),C=e.ref([]),T=e.ref(!1);function H(){const a={page_index:d.current,page_size:d.pageSize},t=[],o=w.value.trim();return o&&t.push([N.value,"like",`%${o}%`]),se.appendCommonDesignerWhereAnd(i.conf.common,t),t.length&&(a.where_and=JSON.stringify(t)),a}function A(a){const t=a.error;return t===""||t===null||t===void 0}function v(){return D(this,null,function*(){var a;T.value=!0;try{const t=yield R.api.http("get_control_record_list",H(),!0),o=(a=t==null?void 0:t.result)!=null?a:t,l=Array.isArray(o==null?void 0:o.data)?o.data:[];C.value=l.map(p=>j({},p));const n=o==null?void 0:o.total_records;d.total=typeof n=="number"?n:l.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[controlRecordList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),C.value=[],d.total=0}finally{T.value=!1}})}const U=e.computed(()=>C.value);function W(a,t){const o=a[t];return o==null?"":String(o)}function L(){d.current=1,v()}function J(){w.value="",d.current=1,v()}function Q(){d.current=1,v()}function Y(){v()}function z(a){const t=o=>String(o).padStart(2,"0");return`${a.getFullYear()}-${t(a.getMonth()+1)}-${t(a.getDate())} ${t(a.getHours())}:${t(a.getMinutes())}:${t(a.getSeconds())}`}function G(){return D(this,null,function*(){const a=[...new Set(C.value.map(l=>{var n;return String((n=l.object_id)!=null?n:"").trim()}).filter(Boolean))];if(!a.length){y.ElMessage.warning("当前列表无对象编号,请加载记录后再导出");return}const t=new Date,o=new Date(t.getTime()-168*3600*1e3);try{yield y.ElMessageBox.confirm(`将按最近 7 天、当前已加载列表中的 ${a.length} 个对象编号发起导出任务,是否继续?`,"导出控制记录",{type:"info"})}catch(l){return}try{const l=yield R.api.http("export_control_record",{file_name:`control_record_${z(t).replace(/[: ]/g,"_")}`,start_time:z(o),end_time:z(t),object_ids:a},!0);if(l.code!==void 0&&l.code!==200){y.ElMessage.warning(l.msg||l.info||"导出请求未成功");return}y.ElMessage.success("导出任务已提交")}catch(l){y.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{v()}),(a,t)=>{const o=m.ElIcon,l=m.ElInput,n=m.ElOption,p=m.ElSelect,u=m.ElButton,S=m.ElTag,f=m.ElTableColumn,O=m.ElTable,x=m.ElPagination,V=m.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-record-list mix-component",e.unref(E)]),style:e.normalizeStyle(e.unref(B))},[e.unref(_).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(h.value)},e.toDisplayString(c.conf.caption||c.conf.name),5)),e.createElementVNode("div",ce,[e.createElementVNode("div",ue,[e.createVNode(l,{modelValue:w.value,"onUpdate:modelValue":t[0]||(t[0]=s=>w.value=s),placeholder:"搜索控制记录",size:"small",class:"toolbar-search",onKeyup:e.withKeys(L,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(o,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(re.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(p,{modelValue:N.value,"onUpdate:modelValue":t[1]||(t[1]=s=>N.value=s),size:"small",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(u,{type:"primary",onClick:L},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(u,{onClick:J},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(_).showExportBtn?(e.openBlock(),e.createBlock(u,{key:0,type:"success",onClick:G},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:g,class:"table-wrapper"},[e.createVNode(O,{data:U.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(b)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(K.value,s=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s.prop},[s.visible?(e.openBlock(),e.createBlock(f,{key:0,prop:s.prop,label:s.label,width:s.width,"min-width":s.minWidth},{default:e.withCtx(q=>[s.prop==="status"?(e.openBlock(),e.createBlock(S,{key:0,type:A(q.row)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A(q.row)?"成功":"失败"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",de,e.toDisplayString(W(q.row,s.prop)),1))]),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128))]),_:1},8,["data","height"])],512),e.createElementVNode("div",pe,[e.createVNode(x,{"current-page":d.current,"onUpdate:currentPage":t[2]||(t[2]=s=>d.current=s),"page-size":d.pageSize,"onUpdate:pageSize":t[3]||(t[3]=s=>d.pageSize=s),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:d.total,onSizeChange:Q,onCurrentChange:Y},null,8,["current-page","page-size","total"])])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],6)),[[V,T.value]])}}})),ye=R._export_sfc(fe,[["__scopeId","data-v-b92ec67a"]]);exports.default=ye;
@@ -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-DjjN5Pou.cjs"),$=require("./index-CLrFRvna.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.post("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.post("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-2cfbb4e9"]]);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-CJ3CP33o.cjs"),$=require("./index-B8X4_OUp.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;
@@ -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-B59M7tSp.js";
44
- import { a as ue, _ as at } from "./index-C596S3FR.js";
43
+ import { B as ot } from "./BaseComponent-DQKmWNg3.js";
44
+ import { a as ue, _ as at } from "./index-yfWcELw0.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";
@@ -238,7 +238,7 @@ const mt = {
238
238
  function ee(t) {
239
239
  return x(this, null, function* () {
240
240
  var f;
241
- const e = yield ue.post(
241
+ const e = yield ue.http(
242
242
  "get_control_record_list",
243
243
  ge(),
244
244
  !0
@@ -370,7 +370,7 @@ const mt = {
370
370
  return;
371
371
  }
372
372
  try {
373
- const a = yield ue.post(
373
+ const a = yield ue.http(
374
374
  "export_control_record",
375
375
  {
376
376
  file_name: `control_record_${q(e).replace(/[: ]/g, "_")}`,
@@ -571,7 +571,7 @@ const mt = {
571
571
  ], 6);
572
572
  };
573
573
  }
574
- })), eo = /* @__PURE__ */ at(Pt, [["__scopeId", "data-v-2cfbb4e9"]]);
574
+ })), eo = /* @__PURE__ */ at(Pt, [["__scopeId", "data-v-2d8d3031"]]);
575
575
  export {
576
576
  eo as default
577
577
  };
@@ -1 +1 @@
1
- "use strict";var F=Object.defineProperty,L=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var T=(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)&&T(p,l,i[l]);if(I)for(var l of I(i))j.call(i,l)&&T(p,l,i[l]);return p},x=(p,i)=>L(p,D(i));var V=(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 t=require("vue"),R=require("./BaseComponent-DjjN5Pou.cjs"),B=require("./index-CLrFRvna.cjs"),$=require("./titleStyle-NSnz6cUg.cjs"),_=require("./ele-crd-icon-BvNgAPKW.cjs"),M={class:"card-item-inner"},W={class:"value-main"},U={key:0,class:"value-unit"},O="--",q={DEFAULT_ICON:_.DEFAULT_ICON,ACTIVE_ICON:_.ACTIVE_ICON,NAME_CN:"基础卡片",NAME_EN:"Card",ORDER:1,PLATFORM:["pc","screen","mobile"]},J={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"}]}},K=[{name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1,valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"}],Q=["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}],X=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime","summary"],Y={useAlias:!1,multiObject:!1,source:"mosaic",object_id:"",object_alias:""},Z={DEFAULT:q,OPTIONS:J,DATA:K,PARAMS:Q,SOURCE:X,COMMON:Y},ee=t.defineComponent(x(y({},Z),{__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 V(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=t.computed(()=>$.generateTitleStyle(l.conf.options)),m=t.computed(()=>{const e=S.value||{},n=parseFloat(String(e.fontSize||"14"))||14,o=String(e.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({},e),{minHeight:`${r}px`})}),u=t.computed(()=>{const e=c.value,n=Number(e.topGradientHeight)||2,o=e.topGradientStart||"#f5a623";return{height:`${n}px`,background:`linear-gradient(90deg, ${o}, transparent)`}}),f=t.computed(()=>{const e=c.value;return!!e.showTopGradient&&e.topGradientPosition==="aboveTitle"}),G=t.computed(()=>{const e=c.value;return!!e.showTopGradient&&e.topGradientPosition!=="aboveTitle"}),N=t.computed(()=>c.value.paramsLayout==="vertical"),k=t.computed(()=>{var o;const e=c.value,n=e.bgIconPosition==="right";return{opacity:(o=e.bgIconOpacity)!=null?o:.06,fontSize:`${Number(e.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(e){const n=Number(e==null?void 0:e.areaWeight),o=Number.isFinite(n)&&n>0?n:1,a=Number(e==null?void 0:e.cellPadding),s={flex:`${o} 1 0`,minWidth:"0",minHeight:"0"};return Number.isFinite(a)&&a>0&&(s.padding=`${a}px`),s}function E(e){const n=c.value,o=Number(e==null?void 0:e.valueFontSize),a=Number.isFinite(o)&&o>0?o:n.valueSize,s=typeof(e==null?void 0:e.valueTextColor)=="string"?e.valueTextColor.trim():"",r=e==null?void 0:e.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(e){const n=c.value,o=Number(e==null?void 0:e.nameFontSize),a=Number.isFinite(o)&&o>0?o:n.nameSize;return{color:(typeof(e==null?void 0:e.nameTextColor)=="string"?e.nameTextColor.trim():"")||n.labelColor,fontSize:`${a}px`}}function z(){const e=c.value.defaultBgIcon,n=typeof e=="string"?e.trim():"";return n?B.decodeIconFromStorage(n):""}const v=e=>{var s,r,d,b;if(!e)return{value:O,name:"--",unit:""};const n=(s=e.name)!=null?s:"",o=typeof e.unit=="string"?e.unit.trim():"";return e.isText?{value:(((r=e.flag)==null?void 0:r.find(w=>String(w.code)==String(e.value)))||{}).text||O,name:n,unit:o}:{value:(b=(d=e.value)!=null?d:e.default)!=null?b:0,name:n,unit:o}},C=l.conf;return(e,n)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(c).bgColor,borderRadius:t.unref(c).radiusSize+"px"})},[f.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"mix-component-top-gradient",style:t.normalizeStyle(u.value)},null,4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(m.value)},t.toDisplayString(t.unref(C).caption||t.unref(C).name),5),t.createElementVNode("div",{class:t.normalizeClass(["mix-body",{"mix-body--params-vertical":N.value}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(C).data,(o,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"card-item",style:t.normalizeStyle(A(o))},[t.createElementVNode("div",{class:"card-item-surface",style:t.normalizeStyle({background:t.unref(c).bgColor})},null,4),G.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card-item-top-gradient",style:t.normalizeStyle(u.value)},null,4)):t.createCommentVNode("",!0),t.createElementVNode("div",M,[t.createElementVNode("div",{class:"value",style:t.normalizeStyle(E(o))},[t.createElementVNode("span",W,t.toDisplayString(v(o).value),1),v(o).unit?(t.openBlock(),t.createElementBlock("span",U,t.toDisplayString(v(o).unit),1)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:"name",style:t.normalizeStyle(P(o))},t.toDisplayString(v(o).name),5)])],4))),128)),t.unref(c).showBgIcon&&z()?(t.openBlock(),t.createElementBlock("div",{key:0,class:"mix-body-bg-icon",style:t.normalizeStyle(k.value)},t.toDisplayString(z()),5)):t.createCommentVNode("",!0)],2),t.renderSlot(e.$slots,"default",{},void 0,!0)],4))}})),te=B._export_sfc(ee,[["__scopeId","data-v-6d1afa33"]]);exports.default=te;
1
+ "use strict";var F=Object.defineProperty,L=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var T=(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)&&T(p,l,i[l]);if(I)for(var l of I(i))j.call(i,l)&&T(p,l,i[l]);return p},x=(p,i)=>L(p,D(i));var V=(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 t=require("vue"),R=require("./BaseComponent-CJ3CP33o.cjs"),B=require("./index-B8X4_OUp.cjs"),$=require("./titleStyle-NSnz6cUg.cjs"),_=require("./ele-crd-icon-BvNgAPKW.cjs"),M={class:"card-item-inner"},W={class:"value-main"},U={key:0,class:"value-unit"},O="--",q={DEFAULT_ICON:_.DEFAULT_ICON,ACTIVE_ICON:_.ACTIVE_ICON,NAME_CN:"基础卡片",NAME_EN:"Card",ORDER:1,PLATFORM:["pc","screen","mobile"]},J={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"}]}},K=[{name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1,valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"}],Q=["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}],X=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime","summary"],Y={useAlias:!1,multiObject:!1,source:"mosaic",object_id:"",object_alias:""},Z={DEFAULT:q,OPTIONS:J,DATA:K,PARAMS:Q,SOURCE:X,COMMON:Y},ee=t.defineComponent(x(y({},Z),{__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 V(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=t.computed(()=>$.generateTitleStyle(l.conf.options)),m=t.computed(()=>{const e=S.value||{},n=parseFloat(String(e.fontSize||"14"))||14,o=String(e.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({},e),{minHeight:`${r}px`})}),u=t.computed(()=>{const e=c.value,n=Number(e.topGradientHeight)||2,o=e.topGradientStart||"#f5a623";return{height:`${n}px`,background:`linear-gradient(90deg, ${o}, transparent)`}}),f=t.computed(()=>{const e=c.value;return!!e.showTopGradient&&e.topGradientPosition==="aboveTitle"}),G=t.computed(()=>{const e=c.value;return!!e.showTopGradient&&e.topGradientPosition!=="aboveTitle"}),N=t.computed(()=>c.value.paramsLayout==="vertical"),k=t.computed(()=>{var o;const e=c.value,n=e.bgIconPosition==="right";return{opacity:(o=e.bgIconOpacity)!=null?o:.06,fontSize:`${Number(e.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(e){const n=Number(e==null?void 0:e.areaWeight),o=Number.isFinite(n)&&n>0?n:1,a=Number(e==null?void 0:e.cellPadding),s={flex:`${o} 1 0`,minWidth:"0",minHeight:"0"};return Number.isFinite(a)&&a>0&&(s.padding=`${a}px`),s}function E(e){const n=c.value,o=Number(e==null?void 0:e.valueFontSize),a=Number.isFinite(o)&&o>0?o:n.valueSize,s=typeof(e==null?void 0:e.valueTextColor)=="string"?e.valueTextColor.trim():"",r=e==null?void 0:e.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(e){const n=c.value,o=Number(e==null?void 0:e.nameFontSize),a=Number.isFinite(o)&&o>0?o:n.nameSize;return{color:(typeof(e==null?void 0:e.nameTextColor)=="string"?e.nameTextColor.trim():"")||n.labelColor,fontSize:`${a}px`}}function z(){const e=c.value.defaultBgIcon,n=typeof e=="string"?e.trim():"";return n?B.decodeIconFromStorage(n):""}const v=e=>{var s,r,d,b;if(!e)return{value:O,name:"--",unit:""};const n=(s=e.name)!=null?s:"",o=typeof e.unit=="string"?e.unit.trim():"";return e.isText?{value:(((r=e.flag)==null?void 0:r.find(w=>String(w.code)==String(e.value)))||{}).text||O,name:n,unit:o}:{value:(b=(d=e.value)!=null?d:e.default)!=null?b:0,name:n,unit:o}},C=l.conf;return(e,n)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(c).bgColor,borderRadius:t.unref(c).radiusSize+"px"})},[f.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"mix-component-top-gradient",style:t.normalizeStyle(u.value)},null,4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(m.value)},t.toDisplayString(t.unref(C).caption||t.unref(C).name),5),t.createElementVNode("div",{class:t.normalizeClass(["mix-body",{"mix-body--params-vertical":N.value}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(C).data,(o,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"card-item",style:t.normalizeStyle(A(o))},[t.createElementVNode("div",{class:"card-item-surface",style:t.normalizeStyle({background:t.unref(c).bgColor})},null,4),G.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card-item-top-gradient",style:t.normalizeStyle(u.value)},null,4)):t.createCommentVNode("",!0),t.createElementVNode("div",M,[t.createElementVNode("div",{class:"value",style:t.normalizeStyle(E(o))},[t.createElementVNode("span",W,t.toDisplayString(v(o).value),1),v(o).unit?(t.openBlock(),t.createElementBlock("span",U,t.toDisplayString(v(o).unit),1)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:"name",style:t.normalizeStyle(P(o))},t.toDisplayString(v(o).name),5)])],4))),128)),t.unref(c).showBgIcon&&z()?(t.openBlock(),t.createElementBlock("div",{key:0,class:"mix-body-bg-icon",style:t.normalizeStyle(k.value)},t.toDisplayString(z()),5)):t.createCommentVNode("",!0)],2),t.renderSlot(e.$slots,"default",{},void 0,!0)],4))}})),te=B._export_sfc(ee,[["__scopeId","data-v-6d1afa33"]]);exports.default=te;
@@ -27,8 +27,8 @@ var w = (c, l, n) => new Promise((_, b) => {
27
27
  h((n = n.apply(c, l)).next());
28
28
  });
29
29
  import { defineComponent as q, computed as d, openBlock as g, createElementBlock as f, normalizeStyle as u, unref as m, createCommentVNode as z, createElementVNode as y, toDisplayString as C, normalizeClass as J, Fragment as K, renderList as Q, renderSlot as X } from "vue";
30
- import { B as Y } from "./BaseComponent-B59M7tSp.js";
31
- import { y as Z, _ as tt } from "./index-C596S3FR.js";
30
+ import { B as Y } from "./BaseComponent-DQKmWNg3.js";
31
+ import { q as Z, _ as tt } from "./index-yfWcELw0.js";
32
32
  import { g as et } from "./titleStyle-BT5GlpAb.js";
33
33
  import { A as ot, D as nt } from "./ele-crd-icon-BXxB7P3T.js";
34
34
  const at = { class: "card-item-inner" }, lt = { class: "value-main" }, it = {