mixdashboards 1.0.75 → 1.0.76

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 (331) hide show
  1. package/dist/{BaseComponent-BXAJUoaf.cjs → BaseComponent-BmhMoM4H.cjs} +1 -1
  2. package/dist/{BaseComponent-BlCsb-HW.js → BaseComponent-CQaDWNO0.js} +8 -8
  3. package/dist/{EChartComponentBase-BPiPzdtw.cjs → EChartComponentBase-D9EUh4BZ.cjs} +1 -1
  4. package/dist/{EChartComponentBase-DPWPg81w.js → EChartComponentBase-i76OGL3z.js} +2 -2
  5. package/dist/{EmergencyPlanPanel-Cv06qTDX.js → EmergencyPlanPanel-B9S3Ru5-.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-CU0gJiFM.cjs → EmergencyPlanPanel-BiAHvTfh.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-CiRVXFaZ.cjs → HistoryPlanDialog-BU4GayEm.cjs} +1 -1
  8. package/dist/{HistoryPlanDialog-BALmXGdQ.js → HistoryPlanDialog-CbbeFm-i.js} +1 -1
  9. package/dist/{MonitoringMap-BuVJ-ir-.js → MonitoringMap-B6tXBdvK.js} +2 -2
  10. package/dist/{MonitoringMap-BXxlfEQV.cjs → MonitoringMap-FGDoA0fw.cjs} +1 -1
  11. package/dist/{UniverSheet-CDug4m6W.cjs → UniverSheet-D7y2pceH.cjs} +1 -1
  12. package/dist/{UniverSheet-GnlJ56Io.js → UniverSheet-D8sflrTb.js} +2 -2
  13. package/dist/{accelerationChart-BQkfynh-.cjs → accelerationChart-DTlwSA0N.cjs} +1 -1
  14. package/dist/{accelerationChart-lWscOOUn.js → accelerationChart-bch4O3t-.js} +14 -14
  15. package/dist/{actionItem-B4nl_rf_.js → actionItem-Cw67YwsR.js} +2 -2
  16. package/dist/{actionItem-6eYNuhg3.cjs → actionItem-cdsgUvaC.cjs} +1 -1
  17. package/dist/{alarmLevelChart-Mq8iVSI0.cjs → alarmLevelChart-BMjTLxB5.cjs} +1 -1
  18. package/dist/{alarmLevelChart-CiobE56j.js → alarmLevelChart-BynSRHG2.js} +2 -2
  19. package/dist/{alertTable-f0pzyZBg.cjs → alertTable-3VhkUZSf.cjs} +1 -1
  20. package/dist/{alertTable-CMlVY_8H.js → alertTable-CiwuaydQ.js} +2 -2
  21. package/dist/{aliasObjectSelectorDemo-C1bpTa2y.cjs → aliasObjectSelectorDemo-BLoecZkV.cjs} +1 -1
  22. package/dist/{aliasObjectSelectorDemo-DqZ0EfVH.js → aliasObjectSelectorDemo-DfdRxb4I.js} +1 -1
  23. package/dist/{annualRainfallChart-_mJM58W4.js → annualRainfallChart-CHcr4-0D.js} +2 -2
  24. package/dist/{annualRainfallChart-BbYOeEs_.cjs → annualRainfallChart-DKR-A_PT.cjs} +1 -1
  25. package/dist/{aqi-yjjoBI4W.cjs → aqi-D7VqP1QE.cjs} +1 -1
  26. package/dist/{aqi-jYtMHp4c.js → aqi-Gu-pAovO.js} +4 -4
  27. package/dist/{aqiIndass-BPnJN1L7.js → aqiIndass-Bjj6n1aj.js} +18 -18
  28. package/dist/{aqiIndass-DuxFgiJF.cjs → aqiIndass-nfYUZ3UM.cjs} +1 -1
  29. package/dist/{areaDeformCurve-BM8ClfUa.cjs → areaDeformCurve-fpGWmq05.cjs} +1 -1
  30. package/dist/{areaDeformCurve-DNleJiVH.js → areaDeformCurve-nwlcUBDv.js} +2 -2
  31. package/dist/{arrayCard-jITzZi-r.js → arrayCard-TfcgLrHv.js} +2 -2
  32. package/dist/{arrayCard-BxpqdLMV.cjs → arrayCard-UoDqAGbN.cjs} +1 -1
  33. package/dist/{audio-CH5r-0gF.js → audio-BYgGYoEr.js} +2 -2
  34. package/dist/{audio-BuyKXQ0N.cjs → audio-DdUv9Ot-.cjs} +1 -1
  35. package/dist/bar-CkBXc7t1.cjs +2 -0
  36. package/dist/{bar-BtlkgC6a.js → bar-SfGiFl1r.js} +75 -67
  37. package/dist/{bmp-C2DUdhaT.js → bmp-BbtdzIrI.js} +2 -2
  38. package/dist/{bmp-DLIPXhyT.cjs → bmp-CY-Hb2x1.cjs} +1 -1
  39. package/dist/{box-CVcPOlKk.cjs → box-B4C_mirv.cjs} +1 -1
  40. package/dist/{box-BgwIB1Bl.js → box-CV41cJuX.js} +2 -2
  41. package/dist/{chartConfigPanel-ByzQkeYT.js → chartConfigPanel-D650rSn7.js} +1 -1
  42. package/dist/{chartConfigPanel-BdVphXRS.cjs → chartConfigPanel-DBlqAbbH.cjs} +1 -1
  43. package/dist/{circleBar-DBCX2g0i.cjs → circleBar-DkV7xPBl.cjs} +1 -1
  44. package/dist/{circleBar-CFV6RoS1.js → circleBar-U3iXMQr5.js} +2 -2
  45. package/dist/{clock--G7VfksN.cjs → clock-CjgMeOhp.cjs} +1 -1
  46. package/dist/{clock-ilY2WqEO.js → clock-zKVUU8pu.js} +2 -2
  47. package/dist/{clt-4fAQmG5V.js → clt-BsIA-YPQ.js} +2 -2
  48. package/dist/{clt-DOAntJi9.cjs → clt-DwI8i7zI.cjs} +1 -1
  49. package/dist/{cmc-CehLriLD.cjs → cmc-BX9ichBB.cjs} +1 -1
  50. package/dist/{cmc-Bhyw5-iw.js → cmc-CgpHejR2.js} +2 -2
  51. package/dist/{cmp-znNaGWlx.js → cmp-CS34lG7V.js} +2 -2
  52. package/dist/{cmp-BL3VD7Pn.cjs → cmp-CTqtxzo4.cjs} +1 -1
  53. package/dist/{conclusionCard-B5DhxboF.js → conclusionCard-N6pA6Q9P.js} +2 -2
  54. package/dist/{conclusionCard-K6CSG9A7.cjs → conclusionCard-wvtJmV_8.cjs} +1 -1
  55. package/dist/{controlList-CyE_bM7S.cjs → controlList-BUAMdHA3.cjs} +1 -1
  56. package/dist/{controlList-DoaSMBIh.js → controlList-Zz5ABe5b.js} +2 -2
  57. package/dist/{controlRecordList-CDKRXU47.cjs → controlRecordList-CMR4y_Ml.cjs} +1 -1
  58. package/dist/{controlRecordList-DwXUWAgm.js → controlRecordList-Dx0zj7js.js} +2 -2
  59. package/dist/{controlRecordListAPP-cODkXLeg.cjs → controlRecordListAPP-ZDCKmz_8.cjs} +1 -1
  60. package/dist/{controlRecordListAPP-CP-tQ4o_.js → controlRecordListAPP-bL9oqWzQ.js} +2 -2
  61. package/dist/{crd-D9Djs_9M.cjs → crd-8tMwNlgx.cjs} +1 -1
  62. package/dist/{crd-BJJ9sEBi.js → crd-DZPpD6XY.js} +2 -2
  63. package/dist/{ctrBtn-zECsVsC6.js → ctrBtn-6Ql9ulTr.js} +10 -10
  64. package/dist/{ctrBtn-Ci7BkiOn.cjs → ctrBtn-eCu0UDtW.cjs} +1 -1
  65. package/dist/{ctrSet-DQTACQn1.js → ctrSet-BwFVH1Mk.js} +3 -3
  66. package/dist/{ctrSet-DZrpF9pM.cjs → ctrSet-pX-zVivo.cjs} +1 -1
  67. package/dist/{ctrSwitch-BDy8B1lF.cjs → ctrSwitch-D95SI-aJ.cjs} +1 -1
  68. package/dist/{ctrSwitch-CrEAuL-v.js → ctrSwitch-b6hHf4QF.js} +11 -11
  69. package/dist/{dataManagement-D6SM8zVY.cjs → dataManagement-DubA1TV1.cjs} +1 -1
  70. package/dist/{dataManagement-ivUDfZ3f.js → dataManagement-VucRLCK4.js} +2 -2
  71. package/dist/{dataReport-CryAeh7C.js → dataReport-CALIw14D.js} +2 -2
  72. package/dist/{dataReport-CFJ5aMrb.cjs → dataReport-CkF5J7X1.cjs} +1 -1
  73. package/dist/{dataTable-BBW0i51h.js → dataTable-C1rBH_p9.js} +1 -1
  74. package/dist/{dataTable-IKk8N9i9.cjs → dataTable-C2q_CX5D.cjs} +1 -1
  75. package/dist/{datetime-BPoSIL-3.js → datetime-Cq8scz5Q.js} +2 -2
  76. package/dist/{datetime-CGUnVeRE.cjs → datetime-TBTeWqlf.cjs} +1 -1
  77. package/dist/{deepClusterSlipSurface-rZIUqLLp.cjs → deepClusterSlipSurface-CFaxRVmM.cjs} +1 -1
  78. package/dist/{deepClusterSlipSurface-jt74ODxX.js → deepClusterSlipSurface-Cm50wbjv.js} +2 -2
  79. package/dist/{deepDataMatrix-DyK--0cJ.cjs → deepDataMatrix-CAYSav3X.cjs} +1 -1
  80. package/dist/{deepDataMatrix-B1rr5lNY.js → deepDataMatrix-DyStA98d.js} +7 -7
  81. package/dist/{deepDisplacement3D-DdSfiM8c.cjs → deepDisplacement3D-B3Iju2KK.cjs} +1 -1
  82. package/dist/{deepDisplacement3D-BnWitDOk.js → deepDisplacement3D-Bat-Wc3i.js} +2 -2
  83. package/dist/{deepDisplacementChart-BxdiiuUe.cjs → deepDisplacementChart-C-Tr4DdI.cjs} +1 -1
  84. package/dist/{deepDisplacementChart-DY3PLNdf.cjs → deepDisplacementChart-CX9ALM89.cjs} +1 -1
  85. package/dist/{deepDisplacementChart-BQ3nFJLH.js → deepDisplacementChart-CYMpNu_W.js} +25 -25
  86. package/dist/{deepDisplacementChart-lIfyzMpq.js → deepDisplacementChart-D5rHoC9r.js} +26 -26
  87. package/dist/{deepDisplacementView-C0r4oIIk.cjs → deepDisplacementView-DTSsODJQ.cjs} +1 -1
  88. package/dist/{deepDisplacementView-BsddlCKN.js → deepDisplacementView-DnjwQmEW.js} +1 -1
  89. package/dist/{deepNodeTemperatureChart-DrqwFmDg.cjs → deepNodeTemperatureChart-C9NRJ49Y.cjs} +1 -1
  90. package/dist/{deepNodeTemperatureChart-C1RVbMT1.js → deepNodeTemperatureChart-CLKg72UA.js} +32 -32
  91. package/dist/{deepTangentAngleChart-Hs9wfNfb.cjs → deepTangentAngleChart-C9aFSFrD.cjs} +1 -1
  92. package/dist/{deepTangentAngleChart-BSifjEIw.js → deepTangentAngleChart-DklHYHhm.js} +13 -13
  93. package/dist/{deepTemperatureField-Bz9X6xx5.cjs → deepTemperatureField-CXBL4_LS.cjs} +1 -1
  94. package/dist/{deepTemperatureField-BSsTui64.js → deepTemperatureField-CcnVGgbf.js} +3 -3
  95. package/dist/{deepTrendChart-apQrMrj6.js → deepTrendChart-De7ebpk4.js} +14 -14
  96. package/dist/{deepTrendChart-B3q-lEJw.cjs → deepTrendChart-OGW08BX-.cjs} +1 -1
  97. package/dist/{deviceOnlineStatus-DABeXKWW.cjs → deviceOnlineStatus-DarcMtY4.cjs} +1 -1
  98. package/dist/{deviceOnlineStatus-kFsHXR6n.js → deviceOnlineStatus-_3Txb8Tg.js} +2 -2
  99. package/dist/{deviceStatus-BE2Pszt3.cjs → deviceStatus-BiJw8rnz.cjs} +1 -1
  100. package/dist/{deviceStatus-TNP-PLi-.js → deviceStatus-CL6E-pQ0.js} +10 -10
  101. package/dist/{displacementDataTable-BD45feZR.cjs → displacementDataTable-DmAqr-JK.cjs} +1 -1
  102. package/dist/{displacementDataTable-kZBxmOLa.js → displacementDataTable-tKtGe2xd.js} +11 -11
  103. package/dist/{displacementTrajectoryChart-DmuezhG8.cjs → displacementTrajectoryChart-DG2YdSqq.cjs} +1 -1
  104. package/dist/{displacementTrajectoryChart-BjbgbY-z.js → displacementTrajectoryChart-Dh6oPB0p.js} +22 -22
  105. package/dist/{displacementTrendChart-BjIXnttw.js → displacementTrendChart-BHORe0qO.js} +36 -36
  106. package/dist/{displacementTrendChart-iXH_pVRS.cjs → displacementTrendChart-CT140vXG.cjs} +1 -1
  107. package/dist/{dxf-DMZPfCEF.cjs → dxf-CVa4Vfm3.cjs} +1 -1
  108. package/dist/{dxf-Cne0HiZv.js → dxf-CjcHSJq-.js} +2 -2
  109. package/dist/{dzc-BHGWFMVE.js → dzc-DDXNSuie.js} +6 -6
  110. package/dist/{dzc-Xii4wMjP.cjs → dzc-DK16oTVj.cjs} +1 -1
  111. package/dist/{emergencyPlan-B1znDbbO.cjs → emergencyPlan-D0AMuD-3.cjs} +1 -1
  112. package/dist/{emergencyPlan-CdFHCDZY.js → emergencyPlan-Vim4E6h7.js} +3 -3
  113. package/dist/{evn-UM09m5js.js → evn-CdMN8gIC.js} +2 -2
  114. package/dist/{evn-DQIIN0A9.cjs → evn-D2mdSoFB.cjs} +1 -1
  115. package/dist/{evolutionChart-DDtDzRIE.cjs → evolutionChart-I8XVW05I.cjs} +1 -1
  116. package/dist/{evolutionChart-Dm3nLcz6.js → evolutionChart-P0l6P0Bc.js} +3 -3
  117. package/dist/{fileViewer-CoTW7CWz.cjs → fileViewer-D7sAA8-W.cjs} +1 -1
  118. package/dist/{fileViewer-C1Ky9Ydw.js → fileViewer-DvntGv0b.js} +2 -2
  119. package/dist/{filterBar-BNr5i0ab.js → filterBar-8gex5oR-.js} +2 -2
  120. package/dist/{filterBar-DPG_jFL8.cjs → filterBar-GSTji96g.cjs} +1 -1
  121. package/dist/{fireCombustionCurve-DpcQ13zK.js → fireCombustionCurve-B3jAhOft.js} +3 -3
  122. package/dist/{fireCombustionCurve-z2iMEkbd.cjs → fireCombustionCurve-DrMmHf3N.cjs} +1 -1
  123. package/dist/{fireFilterBar-BFJeB-8m.js → fireFilterBar-CH6iK0Xg.js} +2 -2
  124. package/dist/{fireFilterBar-iXGBx5Zi.cjs → fireFilterBar-Dy9DcHij.cjs} +1 -1
  125. package/dist/{fireHistoryTable-E9Gx4Gqf.js → fireHistoryTable-CHxHqPs0.js} +2 -2
  126. package/dist/{fireHistoryTable-BE79laqx.cjs → fireHistoryTable-n6L3juWp.cjs} +1 -1
  127. package/dist/{gag-naUs2e3c.js → gag-BsO4kmp1.js} +2 -2
  128. package/dist/{gag-Ce_-YYka.cjs → gag-BzjuwBvY.cjs} +1 -1
  129. package/dist/{gasStationList-Kbha10pX.js → gasStationList-7JzUcISs.js} +214 -276
  130. package/dist/gasStationList-QwqTDEAG.cjs +1 -0
  131. package/dist/{geo3dViewer-CnAgLJ_6.cjs → geo3dViewer-Cf-jHpvF.cjs} +1 -1
  132. package/dist/{geo3dViewer-CMISZOfo.js → geo3dViewer-doEpUC_J.js} +3 -3
  133. package/dist/{glbModel-Bw25mL_R.js → glbModel-BgFIj_es.js} +2 -2
  134. package/dist/{glbModel-CS8qUhON.cjs → glbModel-C6L--3dO.cjs} +1 -1
  135. package/dist/{globalObjectSelector-BcLO38lZ.js → globalObjectSelector-CdfiXRjg.js} +1 -1
  136. package/dist/{globalObjectSelector-BwoQjJGq.cjs → globalObjectSelector-P_irB0rv.cjs} +1 -1
  137. package/dist/{gnssFilterBar-CfqJBy4d.cjs → gnssFilterBar-CIwyv2yc.cjs} +1 -1
  138. package/dist/{gnssFilterBar-bS10JYoi.js → gnssFilterBar-DPNshMIx.js} +2 -2
  139. package/dist/{gnssHistoryTable-CPs_w2gf.js → gnssHistoryTable-C7x4-Tpp.js} +2 -2
  140. package/dist/{gnssHistoryTable-CyingjiU.cjs → gnssHistoryTable-j5FL6oYs.cjs} +1 -1
  141. package/dist/{gnssMapView-DD_L9jE0.js → gnssMapView-BWcS4hqj.js} +4 -4
  142. package/dist/{gnssMapView-KvzwIbK1.cjs → gnssMapView-_VaJWBcE.cjs} +2 -2
  143. package/dist/{gnssSectionProfile-DxkEsZQx.cjs → gnssSectionProfile-DGbTO7lV.cjs} +1 -1
  144. package/dist/{gnssSectionProfile-DGYWQKML.js → gnssSectionProfile-hpyiGI-6.js} +2 -2
  145. package/dist/{gnssTimeSeriesChart-KVg2GW1C.cjs → gnssTimeSeriesChart-CNT6xaNs.cjs} +1 -1
  146. package/dist/{gnssTimeSeriesChart-1bLKTD-e.js → gnssTimeSeriesChart-rL9oG1ly.js} +2 -2
  147. package/dist/{gnssXYTrajectory-B-d6rq3V.js → gnssXYTrajectory-B1LZAepw.js} +2 -2
  148. package/dist/{gnssXYTrajectory-B-0h71U8.cjs → gnssXYTrajectory-CwAjhPRc.cjs} +1 -1
  149. package/dist/{grd-CqeXHXO2.js → grd-BLab9IY0.js} +20 -20
  150. package/dist/{grd-CbvQkv0q.cjs → grd-rJXqEimt.cjs} +1 -1
  151. package/dist/{grdIndass-BaHBsp5T.js → grdIndass-gGrZ7gRV.js} +6 -6
  152. package/dist/{grdIndass-_-7wqVjL.cjs → grdIndass-niY4UOwz.cjs} +1 -1
  153. package/dist/{grg-DmN25aj-.cjs → grg-C1L5yeyY.cjs} +1 -1
  154. package/dist/{grg-Cgpfx9kR.js → grg-Dnro7bLg.js} +6 -6
  155. package/dist/{gridview-B0haH8LS.js → gridview-BhjWlD0J.js} +2 -2
  156. package/dist/{gridview-DYYpW2MH.cjs → gridview-DxUsv2ny.cjs} +1 -1
  157. package/dist/{groundwaterFilterBar-mcMEwt9B.cjs → groundwaterFilterBar-C-2e7S04.cjs} +1 -1
  158. package/dist/{groundwaterFilterBar-ClXMXCj6.js → groundwaterFilterBar-bNhTkX1C.js} +2 -2
  159. package/dist/{groundwaterProfileChart-BoRVOmen.cjs → groundwaterProfileChart-BxKGPuOe.cjs} +2 -2
  160. package/dist/{groundwaterProfileChart-Cfwfua8-.js → groundwaterProfileChart-dhzmwfwz.js} +3 -3
  161. package/dist/{groundwaterTimeCurve-BOarX2wf.js → groundwaterTimeCurve-BtzP6icm.js} +3 -3
  162. package/dist/{groundwaterTimeCurve-Czt7iLlt.cjs → groundwaterTimeCurve-CTQPlTUr.cjs} +1 -1
  163. package/dist/{groupCard-2aS7lgg2.js → groupCard-D00ElZoy.js} +63 -53
  164. package/dist/{groupCard-DjUIJShv.cjs → groupCard-D4gdaVqR.cjs} +1 -1
  165. package/dist/{headerBar-u-0s0z16.js → headerBar-DEHj8fJr.js} +2 -2
  166. package/dist/{headerBar-5nL0hMXs.cjs → headerBar-MFw1W0qa.cjs} +1 -1
  167. package/dist/{history-BtX7uNYs.js → history-BRkb914v.js} +16 -16
  168. package/dist/{history-B-Ynlm5z.cjs → history-D1R2RAZQ.cjs} +1 -1
  169. package/dist/index-77aUdspY.cjs +612 -0
  170. package/dist/{index-DomNEEyv.js → index-BZpYmpDy.js} +3569 -2983
  171. package/dist/{insarDeformChart-KECXbG_n.cjs → insarDeformChart-5EVWIkpL.cjs} +1 -1
  172. package/dist/{insarDeformChart-DVGZUwaX.js → insarDeformChart-pbOnnoN-.js} +2 -2
  173. package/dist/{insarImageViewer-BMk5v36R.js → insarImageViewer-D3bbQA6g.js} +2 -2
  174. package/dist/{insarImageViewer-CdJyowUc.cjs → insarImageViewer-DQJBN4YM.cjs} +1 -1
  175. package/dist/{kds-DU8wNnhT.cjs → kds-D5seJB3L.cjs} +1 -1
  176. package/dist/{kds-CawaHOXh.js → kds-gTJOwHbM.js} +21 -21
  177. package/dist/{kpiCard-CAuX9-zP.cjs → kpiCard-Bz-fg6sL.cjs} +1 -1
  178. package/dist/{kpiCard-B5ZueB0g.js → kpiCard-Cx6VNK6L.js} +2 -2
  179. package/dist/{landslideMap-DGkSLtbi.js → landslideMap-5erIcZo7.js} +15 -15
  180. package/dist/{landslideMap-CImGVGDr.cjs → landslideMap-D7_QpwmM.cjs} +1 -1
  181. package/dist/{landslideWarning-C8cHW-2p.cjs → landslideWarning-C3FZqrxT.cjs} +1 -1
  182. package/dist/{landslideWarning-BeQUD3uJ.js → landslideWarning-CzaddgWf.js} +14 -14
  183. package/dist/{layerTabs-DxX6yqOO.cjs → layerTabs-Dc1Xb11W.cjs} +1 -1
  184. package/dist/{layerTabs-CBr-oH28.js → layerTabs-DqbOykS2.js} +2 -2
  185. package/dist/{leaflet-src-BXugYdBe.js → leaflet-src-BY2SMh9y.js} +1 -1
  186. package/dist/{leaflet-src-VXn1CZcu.cjs → leaflet-src-Brb8KUL5.cjs} +1 -1
  187. package/dist/{lerc-td9bbpKy.js → lerc-Chm_GVte.js} +2 -2
  188. package/dist/{lerc-DJGGksD3.cjs → lerc-DGuyYCKG.cjs} +1 -1
  189. package/dist/{lin-vrv9_1Gw.cjs → lin-8x2j8aGa.cjs} +1 -1
  190. package/dist/{lin-DlD92hLY.js → lin-tqtSA5ci.js} +9 -9
  191. package/dist/{linIndass-DRZUPyVA.js → linIndass-DHFymSVI.js} +12 -12
  192. package/dist/{linIndass-BhvIJJ_-.cjs → linIndass-Dxo_bzrZ.cjs} +1 -1
  193. package/dist/{lst-BsGZwd4K.cjs → lst-BV6EbDPs.cjs} +1 -1
  194. package/dist/{lst-DHBMHjOM.js → lst-BejIuO0f.js} +2 -2
  195. package/dist/{manualEntry-zdYpuGoU.cjs → manualEntry-Bt4cs6kn.cjs} +1 -1
  196. package/dist/{manualEntry-gGLZH2mN.js → manualEntry-DObI0OAq.js} +2 -2
  197. package/dist/{mapBackground-DBXKXI9j.js → mapBackground-Cuym5Dqr.js} +3 -3
  198. package/dist/{mapBackground-U2NX5fCU.cjs → mapBackground-oVOBK3zr.cjs} +1 -1
  199. package/dist/{mappingList-vLJbxZcd.cjs → mappingList-BEWAqLd4.cjs} +1 -1
  200. package/dist/{mappingList-D4KRWEkc.js → mappingList-Dzq0zMfs.js} +2 -2
  201. package/dist/{markdownViewer-DzZnOTO-.js → markdownViewer-Bz50jkb6.js} +2 -2
  202. package/dist/{markdownViewer-XvNb3eNT.cjs → markdownViewer-V5b1xhPh.cjs} +1 -1
  203. package/dist/{mix-control-modal-DjD4xOuc.js → mix-control-modal-DzVLdO3S.js} +7 -7
  204. package/dist/{mix-control-modal-DQnZbDGs.cjs → mix-control-modal-I6DqPm04.cjs} +1 -1
  205. package/dist/{mixGrid-CLEdWr86.cjs → mixGrid-_ur8VKLD.cjs} +1 -1
  206. package/dist/{mixGrid-uzRHR_XB.js → mixGrid-tVSdKPms.js} +2 -2
  207. package/dist/mixdashboards.cjs +1 -1
  208. package/dist/mixdashboards.css +1 -1
  209. package/dist/mixdashboards.js +1 -1
  210. package/dist/{mixiotObjectListApi-DCuG7zc-.cjs → mixiotObjectListApi-BUQ-RZ3L.cjs} +1 -1
  211. package/dist/{mixiotObjectListApi-DP6wrrOJ.js → mixiotObjectListApi-D5vNNWgT.js} +1 -1
  212. package/dist/{mjpegCamera-D416oWYH.cjs → mjpegCamera-CjWe8BEK.cjs} +1 -1
  213. package/dist/{mjpegCamera-y_pW209K.js → mjpegCamera-DnAPpFJU.js} +2 -2
  214. package/dist/{monitorAlert-BOJ4UrnO.js → monitorAlert-B-fTYPn6.js} +11 -11
  215. package/dist/{monitorAlert-Bq1MEu6y.cjs → monitorAlert-qmVSQ1lc.cjs} +1 -1
  216. package/dist/{monitorData-CTVzSwsd.js → monitorData-Dopc660L.js} +7 -7
  217. package/dist/{monitorData-eE9QUfb3.cjs → monitorData-YhGSUq3H.cjs} +1 -1
  218. package/dist/{monitorSpeedChart-CnKy9z8m.cjs → monitorSpeedChart-Brj_YHsO.cjs} +1 -1
  219. package/dist/{monitorSpeedChart-CUZat2mO.js → monitorSpeedChart-Dsvr_QPB.js} +1 -1
  220. package/dist/{mxa-ueyMsY-m.cjs → mxa-BzdI7BLB.cjs} +1 -1
  221. package/dist/{mxa-DDJJIW_n.js → mxa-D4WkyBYZ.js} +7 -7
  222. package/dist/{myValue-BdJdeV7Y.cjs → myValue-C0tq-asC.cjs} +1 -1
  223. package/dist/{myValue-jZIrcY-B.js → myValue-DYtBtOJ2.js} +2 -2
  224. package/dist/{myValueList-KoXkIHn0.cjs → myValueList-BJctRTNd.cjs} +1 -1
  225. package/dist/{myValueList-DYPYb3FQ.js → myValueList-Ddpn1S68.js} +2 -2
  226. package/dist/{objectList-Ct6UzSuD.cjs → objectList-Csf0hVwo.cjs} +1 -1
  227. package/dist/{objectList-CGYOZD6e.js → objectList-G4wXFDwe.js} +3 -3
  228. package/dist/{objectListAPP-DrymYbRw.js → objectListAPP-BrmUj4At.js} +3 -3
  229. package/dist/{objectListAPP-D0dHuEhF.cjs → objectListAPP-UZN4iuTn.cjs} +1 -1
  230. package/dist/{photo-DC0tNbgw.js → photo-BEPeK7U8.js} +2 -2
  231. package/dist/{photo-siDcsoGU.cjs → photo-BYH_qg5O.cjs} +1 -1
  232. package/dist/{pie-D9J75dIT.cjs → pie-B57zDxJV.cjs} +1 -1
  233. package/dist/{pie-I_Gqoxg_.js → pie-CEVKe1lL.js} +2 -2
  234. package/dist/{placeholder-BPjcnXBR.cjs → placeholder-BezBEQGo.cjs} +1 -1
  235. package/dist/{placeholder-BsmPsTrK.js → placeholder-Bwv3VyEg.js} +1 -1
  236. package/dist/{pressBtn-CXasqSG5.js → pressBtn-1LCNz2gE.js} +3 -3
  237. package/dist/{pressBtn-DkR5yC7c.cjs → pressBtn-CJZTyY8I.cjs} +1 -1
  238. package/dist/{processTable-CprS7V6w.js → processTable-CHDazqah.js} +2 -2
  239. package/dist/{processTable-D2upRmGB.cjs → processTable-HtDeg1by.cjs} +1 -1
  240. package/dist/{progressBar-CHGUKjOk.cjs → progressBar-BP4SmPZK.cjs} +1 -1
  241. package/dist/{progressBar-BnDhCqnO.js → progressBar-C3NcWUrS.js} +2 -2
  242. package/dist/{progressCircle-DTSsucDj.js → progressCircle-Bo9-Qva_.js} +2 -2
  243. package/dist/{progressCircle-C7U0fPQv.cjs → progressCircle-CDqK1iFt.cjs} +1 -1
  244. package/dist/{qrcode-B65TN3DU.js → qrcode-VmYwvClG.js} +2 -2
  245. package/dist/{qrcode-COSof3Xg.cjs → qrcode-qD6tOm4F.cjs} +1 -1
  246. package/dist/{raceBar-B-Dg_JeH.js → raceBar-DR2-luKW.js} +2 -2
  247. package/dist/{raceBar-DUTC68PY.cjs → raceBar-uAs91hyk.cjs} +1 -1
  248. package/dist/{rad-CQS9cZyM.js → rad-1Jy1KDzt.js} +2 -2
  249. package/dist/{rad-C-5BUzw2.cjs → rad-D7-YZJNO.cjs} +1 -1
  250. package/dist/{radarMapViewer-8GICTIhi.js → radarMapViewer-ByQXe0Mu.js} +2 -2
  251. package/dist/{radarMapViewer-Bnzk9-oK.cjs → radarMapViewer-KPhNE5XX.cjs} +1 -1
  252. package/dist/{rainfallFilterBar-2PbsD0mU.js → rainfallFilterBar-C1obotPf.js} +2 -2
  253. package/dist/{rainfallFilterBar-BAFB2Yla.cjs → rainfallFilterBar-CVQpQp82.cjs} +1 -1
  254. package/dist/{rainfallTimeCurve-D8deMaZA.js → rainfallTimeCurve-B2rEx3T_.js} +3 -3
  255. package/dist/{rainfallTimeCurve-pNf06cfu.cjs → rainfallTimeCurve-DU2tt-Ls.cjs} +1 -1
  256. package/dist/{rangeLin-D1_RCrEG.cjs → rangeLin-COsJkCky.cjs} +1 -1
  257. package/dist/{rangeLin-DiCVHBXe.js → rangeLin-CdfUCFQr.js} +2 -2
  258. package/dist/{realtimeEvolutionMap-BwDjG4Cd.cjs → realtimeEvolutionMap-B7GT8MOq.cjs} +1 -1
  259. package/dist/{realtimeEvolutionMap-BZ3odAWj.js → realtimeEvolutionMap-aR63xPW_.js} +2 -2
  260. package/dist/{regionBar-BZVsJdo6.cjs → regionBar-BYF7IaGA.cjs} +1 -1
  261. package/dist/{regionBar-C_C5cX2r.js → regionBar-DB-secNe.js} +2 -2
  262. package/dist/{request-CsiNbn80.js → request-CBsG4ipL.js} +7 -7
  263. package/dist/{request-B1HlG30f.cjs → request-CvdHjG34.cjs} +1 -1
  264. package/dist/{retainer1-CzyGsNUK.cjs → retainer1-1CFk4InO.cjs} +1 -1
  265. package/dist/{retainer1-DROmtfRa.js → retainer1-CMzTlM5Z.js} +3 -3
  266. package/dist/{retainer2-BCAnjUE9.js → retainer2-DW4ewYX7.js} +3 -3
  267. package/dist/{retainer2-1BaKVlim.cjs → retainer2-DliOH7it.cjs} +1 -1
  268. package/dist/{retainerRecordList-DIdk5Q5E.js → retainerRecordList-Bcm6leuD.js} +2 -2
  269. package/dist/{retainerRecordList-Ct_yDZds.cjs → retainerRecordList-DV7Tx39d.cjs} +1 -1
  270. package/dist/{retainerRecordListAPP-Bi6Ax0r6.js → retainerRecordListAPP-BDRwp8T3.js} +2 -2
  271. package/dist/{retainerRecordListAPP-DUqNtCCN.cjs → retainerRecordListAPP-CJ-u0Tj2.cjs} +1 -1
  272. package/dist/{ringTopN-BSWAdbso.js → ringTopN-Duq0pzm_.js} +2 -2
  273. package/dist/{ringTopN-CIusnN5O.cjs → ringTopN-rd2UwH9f.cjs} +1 -1
  274. package/dist/{riskRegionTable-Lmup8bDM.js → riskRegionTable-BE_ggcEV.js} +7 -7
  275. package/dist/{riskRegionTable-0fHQGnVM.cjs → riskRegionTable-CbPB8mlY.cjs} +1 -1
  276. package/dist/{sankey-D8Erc_QS.cjs → sankey-BqBn6_rx.cjs} +1 -1
  277. package/dist/{sankey-D99KciIH.js → sankey-CnKm9PZe.js} +5 -5
  278. package/dist/{scd-0yZCqQT2.js → scd-BaBLoem8.js} +2 -2
  279. package/dist/{scd-Bkse6tqJ.cjs → scd-BgJ5P7co.cjs} +1 -1
  280. package/dist/{sideMenu-B8Wf4m_8.cjs → sideMenu-BgiQL2P1.cjs} +1 -1
  281. package/dist/{sideMenu-DZ2bbsp7.js → sideMenu-CUal1UQY.js} +2 -2
  282. package/dist/{slopeStability-B8u5QQaS.js → slopeStability-B9YbQLCE.js} +24 -24
  283. package/dist/{slopeStability-D2XSPa-Q.cjs → slopeStability-Y2tDzJeh.cjs} +1 -1
  284. package/dist/{speedCurve-BD8ajqAX.js → speedCurve-DERBMtE1.js} +2 -2
  285. package/dist/{speedCurve-CMZGeXjF.cjs → speedCurve-Kll2RRJ8.cjs} +1 -1
  286. package/dist/{stressFilterBar-Chq7rovQ.cjs → stressFilterBar-BGI4gVfE.cjs} +1 -1
  287. package/dist/{stressFilterBar-Dpn3RUli.js → stressFilterBar-CHRWFnpP.js} +2 -2
  288. package/dist/{stressTimeCurve-D-wPq_W1.cjs → stressTimeCurve-DE5KiXEt.cjs} +1 -1
  289. package/dist/{stressTimeCurve-SRlS-9iL.js → stressTimeCurve-hrlqSYS3.js} +3 -3
  290. package/dist/{swiper-BBV8vKRh.cjs → swiper-CnGllhBQ.cjs} +1 -1
  291. package/dist/{swiper-DIFY95yz.js → swiper-DNHC412s.js} +2 -2
  292. package/dist/{terminalConfigList-Dom3--nE.js → terminalConfigList-BlHAsyCm.js} +2 -2
  293. package/dist/{terminalConfigList-DwA9ITHL.cjs → terminalConfigList-C45EANO4.cjs} +1 -1
  294. package/dist/{terminalList-ClsF5hyg.cjs → terminalList-CNI3_FGb.cjs} +1 -1
  295. package/dist/{terminalList-DpB3UlZG.js → terminalList-UGjkhyf4.js} +2 -2
  296. package/dist/{terminalListAPP-Bu_KM5lV.cjs → terminalListAPP-6fPXF-yJ.cjs} +1 -1
  297. package/dist/{terminalListAPP-U6qqbtPw.js → terminalListAPP-CIJZMdxI.js} +2 -2
  298. package/dist/{textbox-DLDf0rM6.js → textbox-BD_LQ0EN.js} +2 -2
  299. package/dist/{textbox-CbF9pAtK.cjs → textbox-yNPnOaan.cjs} +1 -1
  300. package/dist/{timeQueryBar-CE9N3lDg.cjs → timeQueryBar-3qiV0IV9.cjs} +1 -1
  301. package/dist/{timeQueryBar-ZAH6gs8Q.js → timeQueryBar-B-uPtN25.js} +1 -1
  302. package/dist/{timeSeries-0oO4KLxQ.cjs → timeSeries-BTUuojvj.cjs} +1 -1
  303. package/dist/{timeSeries-DvHAA0wU.js → timeSeries-DdQI4oZU.js} +19 -19
  304. package/dist/{timeSeriesCurve-BTuPg-3z.cjs → timeSeriesCurve-Cj_FbK4x.cjs} +1 -1
  305. package/dist/{timeSeriesCurve-Dyl9b667.js → timeSeriesCurve-TGXshTzl.js} +3 -3
  306. package/dist/{toggleBtn-CZoTmwAw.js → toggleBtn-BMxqm5WG.js} +2 -2
  307. package/dist/{toggleBtn-qDOJLJ7K.cjs → toggleBtn-BXcQfnTB.cjs} +1 -1
  308. package/dist/{trajectoryConfigPanel-CxV8Ed97.cjs → trajectoryConfigPanel-CqoKO0hL.cjs} +1 -1
  309. package/dist/{trajectoryConfigPanel-DwZvvYAl.js → trajectoryConfigPanel-uRLWdXUb.js} +1 -1
  310. package/dist/{trajectoryScatter-CEFp9PB3.js → trajectoryScatter-DPE4cC8N.js} +2 -2
  311. package/dist/{trajectoryScatter-Dd8Ppxae.cjs → trajectoryScatter-Dph8PSdN.cjs} +1 -1
  312. package/dist/{universalConfigPanel-BAppgtmC.js → universalConfigPanel-CI1CuBmr.js} +1 -1
  313. package/dist/{universalConfigPanel-C7tTPczg.cjs → universalConfigPanel-Db-pC67o.cjs} +1 -1
  314. package/dist/{universalTable-3JLC8oEV.js → universalTable-DMrgtBrw.js} +2 -2
  315. package/dist/{universalTable-COmdNAnW.cjs → universalTable-dQObEQog.cjs} +1 -1
  316. package/dist/{video-BtR163lf.js → video-DEhLie80.js} +2 -2
  317. package/dist/{video-8vSuQilp.cjs → video-DbsKQhVD.cjs} +1 -1
  318. package/dist/{videoMonitor-CdTNqBTI.js → videoMonitor-BS6_LYUb.js} +12 -12
  319. package/dist/{videoMonitor-BZwJZvno.cjs → videoMonitor-DLBtivXO.cjs} +1 -1
  320. package/dist/{vlu-AozGL50n.cjs → vlu-DXk_wQf-.cjs} +1 -1
  321. package/dist/{vlu-DqeEDfiN.js → vlu-DaSjPY3I.js} +2 -2
  322. package/dist/{warningOverview-CV_pqizm.js → warningOverview-CKCEs_Jj.js} +3 -3
  323. package/dist/{warningOverview-CRaFyOXe.cjs → warningOverview-DAUlXzr0.cjs} +1 -1
  324. package/dist/{weather-CLXe9W0L.cjs → weather-BAI0IWNH.cjs} +1 -1
  325. package/dist/{weather-iTeslV81.js → weather-XUj6pFwM.js} +2 -2
  326. package/dist/{windLin-u983PAHI.js → windLin-Bt4q2eUT.js} +2 -2
  327. package/dist/{windLin-BCMqmXdY.cjs → windLin-C9dsCT1w.cjs} +1 -1
  328. package/package.json +1 -1
  329. package/dist/bar-vpJvlBYX.cjs +0 -2
  330. package/dist/gasStationList-jfKZeg4P.cjs +0 -1
  331. package/dist/index-Cvu9nAQq.cjs +0 -612
@@ -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-BlCsb-HW.js";
15
- import { _ as R } from "./index-DomNEEyv.js";
14
+ import { B as M } from "./BaseComponent-CQaDWNO0.js";
15
+ import { _ as R } from "./index-BZpYmpDy.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 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-BXAJUoaf.cjs"),T=require("./index-Cvu9nAQq.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-BmhMoM4H.cjs"),T=require("./index-77aUdspY.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 +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-BXAJUoaf.cjs"),B=require("./index-Cvu9nAQq.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,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-BmhMoM4H.cjs"),B=require("./index-77aUdspY.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;
@@ -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-BlCsb-HW.js";
49
- import { a as J, _ as nt } from "./index-DomNEEyv.js";
48
+ import { B as at } from "./BaseComponent-CQaDWNO0.js";
49
+ import { a as J, _ as nt } from "./index-BZpYmpDy.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";
@@ -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-BXAJUoaf.cjs"),R=require("./index-Cvu9nAQq.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-BmhMoM4H.cjs"),R=require("./index-77aUdspY.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;
@@ -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-BlCsb-HW.js";
45
- import { a as Z, _ as De } from "./index-DomNEEyv.js";
44
+ import { B as Ae } from "./BaseComponent-CQaDWNO0.js";
45
+ import { a as Z, _ as De } from "./index-BZpYmpDy.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";
@@ -1 +1 @@
1
- "use strict";var pe=Object.defineProperty,me=Object.defineProperties;var _e=Object.getOwnPropertyDescriptors;var W=Object.getOwnPropertySymbols;var fe=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable;var J=(p,r,c)=>r in p?pe(p,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):p[r]=c,q=(p,r)=>{for(var c in r||(r={}))fe.call(r,c)&&J(p,c,r[c]);if(W)for(var c of W(r))be.call(r,c)&&J(p,c,r[c]);return p},Q=(p,r)=>me(p,_e(r));var M=(p,r,c)=>new Promise((S,b)=>{var D=_=>{try{v(c.next(_))}catch(s){b(s)}},O=_=>{try{v(c.throw(_))}catch(s){b(s)}},v=_=>_.done?S(_.value):Promise.resolve(_.value).then(D,O);v((c=c.apply(p,r)).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/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"),ge=require("./useMixiotPanelSurface-CAZgexY5.cjs"),ve=require("./BaseComponent-BXAJUoaf.cjs"),$=require("./index-Cvu9nAQq.cjs"),he=require("./titleStyle-NSnz6cUg.cjs"),x=require("element-plus"),F=require("@element-plus/icons-vue"),ye=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),Y=require("./ele-lst-icon-CrxnHZ-A.cjs"),Ce={key:0,class:"app-title-row"},ke={class:"mix-app-body"},xe={class:"app-toolbar-row"},Se={class:"app-card-scroll"},we={key:0,class:"app-card-top"},Ee={class:"app-card-name"},Ve={class:"app-field-label"},Ne={class:"app-field-value"},Be=["onClick"],ze={class:"pagination"},De={class:"pagination-row pagination-row--meta"},Oe={class:"pagination-row pagination-row--pager"},Te={DEFAULT_ICON:Y.DEFAULT_ICON,ACTIVE_ICON:Y.ACTIVE_ICON,NAME_CN:"控制记录",NAME_EN:"ControlRecordListAPP",ORDER:4,PLATFORM:["mobile"]},Le={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{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}]},G=[{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}],Pe=[{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"}],Ae=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],je={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"object_id",label:"setting.gridFields.objectId"},{value:"created_by",label:"setting.gridFields.createdBy"},{value:"command",label:"setting.gridFields.commandCode"},{value:"command_name",label:"setting.gridFields.commandName"}]},Re={DEFAULT:Te,OPTIONS:Le,DATA:G,PARAMS:Pe,SOURCE:Ae,COMMON:je},qe=e.defineComponent(Q(q({},Re),{__name:"controlRecordListAPP",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(p){const r=p;class c extends ve.BaseComponent{getDataBool(t,n){var l,d;const a=(d=(l=this.props.conf)==null?void 0:l.data)==null?void 0:d[0];return a&&Object.prototype.hasOwnProperty.call(a,t)&&a[t]!==void 0?!!a[t]:this.getOptionValue(t,n)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),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(G));else{const n=this.props.conf.data[0];n.showExportBtn===void 0&&(n.showExportBtn=!0);const a={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[l,d]of Object.entries(a))n[l]===void 0&&(n[l]=d);(n.appCardDefaultLines===void 0||n.appCardDefaultLines===null||n.appCardDefaultLines==="")&&(n.appCardDefaultLines=3)}}}const S=new c(r,"controlRecordListAPP");S.setupLifecycle();const b=S.getStyle(),{mixiotPanelClass:D,mixiotPanelRootStyle:O}=ge.useMixiotPanelSurface(b),v=e.computed(()=>he.generateTitleStyle(r.conf.options)),_=e.computed(()=>{var n,a,l,d;const o=((a=(n=r.conf)==null?void 0:n.options)==null?void 0:a.columns)||[],t=((d=(l=r.conf)==null?void 0:l.data)==null?void 0:d[0])||{};return(Array.isArray(o)?o:[]).map(u=>{var k;let f=u.key;u.key==="object_id"&&(f="object_id_label");const g=(k=t[f])!=null?k:t[u.key],R=u.key==="object_id"?"object_id_visible":`${u.key}_visible`,C=t[R];return{prop:u.key,label:g!==void 0&&g!==""?String(g):u.label,width:u.width,minWidth:u.minWidth,visible:C!==void 0?!!C:u.visible!==!1}})}),s=e.reactive({current:1,pageSize:10,total:0}),w=e.ref(""),E=e.ref("object_id"),V=e.ref([]),T=e.ref(!1);function X(){const o={page_index:s.current,page_size:s.pageSize},t=[],n=w.value.trim();return n&&t.push([E.value,"like",`%${n}%`]),ye.appendCommonDesignerWhereAnd(r.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function N(o){const t=o.error;return t===""||t===null||t===void 0}function h(){return M(this,null,function*(){var o;T.value=!0;try{const t=yield $.api.post("get_control_record_list",X(),!0),n=(o=t==null?void 0:t.result)!=null?o:t,a=Array.isArray(n==null?void 0:n.data)?n.data:[];V.value=a.map(d=>q({},d));const l=n==null?void 0:n.total_records;s.total=typeof l=="number"?l:a.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[controlRecordList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),V.value=[],s.total=0}finally{T.value=!1}})}const Z=e.computed(()=>V.value);function ee(o,t){const n=o[t];return n==null?"":String(n)}const te=e.computed(()=>{var o,t;return((t=(o=r.conf)==null?void 0:o.data)==null?void 0:t[0])||{}}),I=e.computed(()=>{const o=te.value,t=Number(o.appCardDefaultLines);return Number.isFinite(t)&&t>=1?Math.min(Math.floor(t),30):3}),y=e.reactive({}),L=["command","created_by","created","object_id","command_name","value"],oe=e.computed(()=>{var o;return{backgroundColor:b.value.bgColor,borderRadius:`${(o=b.value.radiusSize)!=null?o:8}px`}});function P(o,t){var n,a;return`${t}-${String((n=o.object_id)!=null?n:"")}-${String((a=o.created)!=null?a:"")}`}function K(o,t){return!!y[P(o,t)]}function ne(o,t){const n=P(o,t);y[n]=!y[n]}function A(o){var n;return String((n=o.command_name)!=null?n:"").trim()}function U(o){const t=[],n=[];for(const a of L)n.includes(a)||n.push(a);for(const a of _.value)!a.visible||a.prop==="status"||n.includes(a.prop)||n.push(a.prop);for(const a of n){const l=_.value.find(d=>d.prop===a&&d.visible);!l||a==="status"||t.push({prop:a,label:l.label,text:ee(o,a)})}return t}function ae(o,t){const n=U(o);if(K(o,t))return n;const a=I.value,l=[];for(const u of L){const f=n.find(g=>g.prop===u);f&&l.push(f)}if(l.length>=a)return l.slice(0,a);const d=n.filter(u=>!L.includes(u.prop));return[...l,...d].slice(0,a)}function le(o,t){return U(o).length>I.value}function H(){s.current=1,h()}function ie(){w.value="",E.value="object_id";for(const o of Object.keys(y))delete y[o];s.current=1,h()}function re(o){o==="reset"?ie():o==="export"&&de()}function se(){s.current=1,h()}function ce(){h()}function j(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 de(){return M(this,null,function*(){const o=[...new Set(V.value.map(a=>{var l;return String((l=a.object_id)!=null?l:"").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(a){return}try{const a=yield $.api.post("export_control_record",{file_name:`control_record_${j(t).replace(/[: ]/g,"_")}`,start_time:j(n),end_time:j(t),object_ids:o},!0);if(a.code!==void 0&&a.code!==200){x.ElMessage.warning(a.msg||a.info||"导出请求未成功");return}x.ElMessage.success("导出任务已提交")}catch(a){x.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{h()}),(o,t)=>{const n=m.ElIcon,a=m.ElButton,l=m.ElDropdownItem,d=m.ElDropdownMenu,u=m.ElDropdown,f=m.ElOption,g=m.ElSelect,R=m.ElInput,C=m.ElTag,k=m.ElPagination,ue=m.ElLoadingDirective;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-record-list-app mixiot-list-app mix-component",e.unref(D)]),style:e.normalizeStyle(e.unref(O))},[e.unref(b).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ce,[e.createElementVNode("div",{class:"app-title-text",style:e.normalizeStyle(v.value)},e.toDisplayString(p.conf.caption||p.conf.name),5),e.createVNode(u,{trigger:"click",onCommand:re},{dropdown:e.withCtx(()=>[e.createVNode(d,null,{default:e.withCtx(()=>[e.createVNode(l,{command:"reset"},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(b).showExportBtn?(e.openBlock(),e.createBlock(l,{key:0,command:"export"},{default:e.withCtx(()=>[...t[7]||(t[7]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),_:1})]),default:e.withCtx(()=>[e.createVNode(a,{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",ke,[e.createElementVNode("div",xe,[e.createVNode(g,{modelValue:E.value,"onUpdate:modelValue":t[0]||(t[0]=i=>E.value=i),class:"app-field-select"},{default:e.withCtx(()=>[e.createVNode(f,{label:"对象编号",value:"object_id"}),e.createVNode(f,{label:"用户名",value:"created_by"}),e.createVNode(f,{label:"控制码指令",value:"command"}),e.createVNode(f,{label:"指令名称",value:"command_name"})]),_:1},8,["modelValue"]),e.createVNode(R,{modelValue:w.value,"onUpdate:modelValue":t[1]||(t[1]=i=>w.value=i),placeholder:"输入关键词搜索",clearable:"",class:"app-search-input",onKeyup:e.withKeys(H,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.Search))]),_:1})]),append:e.withCtx(()=>[e.createVNode(a,{type:"primary",class:"app-toolbar-search-btn",onClick:H},{default:e.withCtx(()=>[...t[8]||(t[8]=[e.createTextVNode("搜索",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Se,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Z.value,(i,B)=>(e.openBlock(),e.createElementBlock("div",{key:P(i,B),class:"app-object-card",style:e.normalizeStyle(oe.value)},[A(i)?(e.openBlock(),e.createElementBlock("div",we,[e.createElementVNode("div",Ee,e.toDisplayString(A(i)),1),e.createVNode(C,{type:N(i)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N(i)?"成功":"失败"),1)]),_:2},1032,["type"])])):(e.openBlock(),e.createBlock(C,{key:1,class:"app-card-status-corner",type:N(i)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N(i)?"成功":"失败"),1)]),_:2},1032,["type"])),e.createElementVNode("div",{class:e.normalizeClass(["app-card-fields",{"has-corner-status":!A(i)}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ae(i,B),z=>(e.openBlock(),e.createElementBlock("div",{key:z.prop,class:"app-field-line"},[e.createElementVNode("span",Ve,e.toDisplayString(z.label),1),e.createElementVNode("span",Ne,e.toDisplayString(z.text),1)]))),128))],2),le(i)?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(["app-card-expand-bottom",{open:K(i,B)}]),onClick:e.withModifiers(z=>ne(i,B),["stop"])},[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.ArrowDown))]),_:1})],10,Be)):e.createCommentVNode("",!0)],4))),128))]),e.createElementVNode("div",ze,[e.createElementVNode("div",De,[e.createVNode(k,{"current-page":s.current,"onUpdate:currentPage":t[2]||(t[2]=i=>s.current=i),"page-size":s.pageSize,"onUpdate:pageSize":t[3]||(t[3]=i=>s.pageSize=i),"page-sizes":[10,20,50,100],layout:"total, sizes",total:s.total,onSizeChange:se},null,8,["current-page","page-size","total"])]),e.createElementVNode("div",Oe,[e.createVNode(k,{"current-page":s.current,"onUpdate:currentPage":t[4]||(t[4]=i=>s.current=i),"page-size":s.pageSize,"onUpdate:pageSize":t[5]||(t[5]=i=>s.pageSize=i),"page-sizes":[10,20,50,100],layout:"prev, pager, next, jumper",total:s.total,onCurrentChange:ce},null,8,["current-page","page-size","total"])])])])),[[ue,T.value]]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)}}})),Me=$._export_sfc(qe,[["__scopeId","data-v-04b3a8ae"]]);exports.default=Me;
1
+ "use strict";var pe=Object.defineProperty,me=Object.defineProperties;var _e=Object.getOwnPropertyDescriptors;var W=Object.getOwnPropertySymbols;var fe=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable;var J=(p,r,c)=>r in p?pe(p,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):p[r]=c,q=(p,r)=>{for(var c in r||(r={}))fe.call(r,c)&&J(p,c,r[c]);if(W)for(var c of W(r))be.call(r,c)&&J(p,c,r[c]);return p},Q=(p,r)=>me(p,_e(r));var M=(p,r,c)=>new Promise((S,b)=>{var D=_=>{try{v(c.next(_))}catch(s){b(s)}},O=_=>{try{v(c.throw(_))}catch(s){b(s)}},v=_=>_.done?S(_.value):Promise.resolve(_.value).then(D,O);v((c=c.apply(p,r)).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/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"),ge=require("./useMixiotPanelSurface-CAZgexY5.cjs"),ve=require("./BaseComponent-BmhMoM4H.cjs"),$=require("./index-77aUdspY.cjs"),he=require("./titleStyle-NSnz6cUg.cjs"),x=require("element-plus"),F=require("@element-plus/icons-vue"),ye=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),Y=require("./ele-lst-icon-CrxnHZ-A.cjs"),Ce={key:0,class:"app-title-row"},ke={class:"mix-app-body"},xe={class:"app-toolbar-row"},Se={class:"app-card-scroll"},we={key:0,class:"app-card-top"},Ee={class:"app-card-name"},Ve={class:"app-field-label"},Ne={class:"app-field-value"},Be=["onClick"],ze={class:"pagination"},De={class:"pagination-row pagination-row--meta"},Oe={class:"pagination-row pagination-row--pager"},Te={DEFAULT_ICON:Y.DEFAULT_ICON,ACTIVE_ICON:Y.ACTIVE_ICON,NAME_CN:"控制记录",NAME_EN:"ControlRecordListAPP",ORDER:4,PLATFORM:["mobile"]},Le={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{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}]},G=[{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}],Pe=[{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"}],Ae=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],je={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"object_id",label:"setting.gridFields.objectId"},{value:"created_by",label:"setting.gridFields.createdBy"},{value:"command",label:"setting.gridFields.commandCode"},{value:"command_name",label:"setting.gridFields.commandName"}]},Re={DEFAULT:Te,OPTIONS:Le,DATA:G,PARAMS:Pe,SOURCE:Ae,COMMON:je},qe=e.defineComponent(Q(q({},Re),{__name:"controlRecordListAPP",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(p){const r=p;class c extends ve.BaseComponent{getDataBool(t,n){var l,d;const a=(d=(l=this.props.conf)==null?void 0:l.data)==null?void 0:d[0];return a&&Object.prototype.hasOwnProperty.call(a,t)&&a[t]!==void 0?!!a[t]:this.getOptionValue(t,n)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),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(G));else{const n=this.props.conf.data[0];n.showExportBtn===void 0&&(n.showExportBtn=!0);const a={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[l,d]of Object.entries(a))n[l]===void 0&&(n[l]=d);(n.appCardDefaultLines===void 0||n.appCardDefaultLines===null||n.appCardDefaultLines==="")&&(n.appCardDefaultLines=3)}}}const S=new c(r,"controlRecordListAPP");S.setupLifecycle();const b=S.getStyle(),{mixiotPanelClass:D,mixiotPanelRootStyle:O}=ge.useMixiotPanelSurface(b),v=e.computed(()=>he.generateTitleStyle(r.conf.options)),_=e.computed(()=>{var n,a,l,d;const o=((a=(n=r.conf)==null?void 0:n.options)==null?void 0:a.columns)||[],t=((d=(l=r.conf)==null?void 0:l.data)==null?void 0:d[0])||{};return(Array.isArray(o)?o:[]).map(u=>{var k;let f=u.key;u.key==="object_id"&&(f="object_id_label");const g=(k=t[f])!=null?k:t[u.key],R=u.key==="object_id"?"object_id_visible":`${u.key}_visible`,C=t[R];return{prop:u.key,label:g!==void 0&&g!==""?String(g):u.label,width:u.width,minWidth:u.minWidth,visible:C!==void 0?!!C:u.visible!==!1}})}),s=e.reactive({current:1,pageSize:10,total:0}),w=e.ref(""),E=e.ref("object_id"),V=e.ref([]),T=e.ref(!1);function X(){const o={page_index:s.current,page_size:s.pageSize},t=[],n=w.value.trim();return n&&t.push([E.value,"like",`%${n}%`]),ye.appendCommonDesignerWhereAnd(r.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function N(o){const t=o.error;return t===""||t===null||t===void 0}function h(){return M(this,null,function*(){var o;T.value=!0;try{const t=yield $.api.post("get_control_record_list",X(),!0),n=(o=t==null?void 0:t.result)!=null?o:t,a=Array.isArray(n==null?void 0:n.data)?n.data:[];V.value=a.map(d=>q({},d));const l=n==null?void 0:n.total_records;s.total=typeof l=="number"?l:a.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[controlRecordList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),V.value=[],s.total=0}finally{T.value=!1}})}const Z=e.computed(()=>V.value);function ee(o,t){const n=o[t];return n==null?"":String(n)}const te=e.computed(()=>{var o,t;return((t=(o=r.conf)==null?void 0:o.data)==null?void 0:t[0])||{}}),I=e.computed(()=>{const o=te.value,t=Number(o.appCardDefaultLines);return Number.isFinite(t)&&t>=1?Math.min(Math.floor(t),30):3}),y=e.reactive({}),L=["command","created_by","created","object_id","command_name","value"],oe=e.computed(()=>{var o;return{backgroundColor:b.value.bgColor,borderRadius:`${(o=b.value.radiusSize)!=null?o:8}px`}});function P(o,t){var n,a;return`${t}-${String((n=o.object_id)!=null?n:"")}-${String((a=o.created)!=null?a:"")}`}function K(o,t){return!!y[P(o,t)]}function ne(o,t){const n=P(o,t);y[n]=!y[n]}function A(o){var n;return String((n=o.command_name)!=null?n:"").trim()}function U(o){const t=[],n=[];for(const a of L)n.includes(a)||n.push(a);for(const a of _.value)!a.visible||a.prop==="status"||n.includes(a.prop)||n.push(a.prop);for(const a of n){const l=_.value.find(d=>d.prop===a&&d.visible);!l||a==="status"||t.push({prop:a,label:l.label,text:ee(o,a)})}return t}function ae(o,t){const n=U(o);if(K(o,t))return n;const a=I.value,l=[];for(const u of L){const f=n.find(g=>g.prop===u);f&&l.push(f)}if(l.length>=a)return l.slice(0,a);const d=n.filter(u=>!L.includes(u.prop));return[...l,...d].slice(0,a)}function le(o,t){return U(o).length>I.value}function H(){s.current=1,h()}function ie(){w.value="",E.value="object_id";for(const o of Object.keys(y))delete y[o];s.current=1,h()}function re(o){o==="reset"?ie():o==="export"&&de()}function se(){s.current=1,h()}function ce(){h()}function j(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 de(){return M(this,null,function*(){const o=[...new Set(V.value.map(a=>{var l;return String((l=a.object_id)!=null?l:"").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(a){return}try{const a=yield $.api.post("export_control_record",{file_name:`control_record_${j(t).replace(/[: ]/g,"_")}`,start_time:j(n),end_time:j(t),object_ids:o},!0);if(a.code!==void 0&&a.code!==200){x.ElMessage.warning(a.msg||a.info||"导出请求未成功");return}x.ElMessage.success("导出任务已提交")}catch(a){x.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{h()}),(o,t)=>{const n=m.ElIcon,a=m.ElButton,l=m.ElDropdownItem,d=m.ElDropdownMenu,u=m.ElDropdown,f=m.ElOption,g=m.ElSelect,R=m.ElInput,C=m.ElTag,k=m.ElPagination,ue=m.ElLoadingDirective;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-record-list-app mixiot-list-app mix-component",e.unref(D)]),style:e.normalizeStyle(e.unref(O))},[e.unref(b).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ce,[e.createElementVNode("div",{class:"app-title-text",style:e.normalizeStyle(v.value)},e.toDisplayString(p.conf.caption||p.conf.name),5),e.createVNode(u,{trigger:"click",onCommand:re},{dropdown:e.withCtx(()=>[e.createVNode(d,null,{default:e.withCtx(()=>[e.createVNode(l,{command:"reset"},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(b).showExportBtn?(e.openBlock(),e.createBlock(l,{key:0,command:"export"},{default:e.withCtx(()=>[...t[7]||(t[7]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),_:1})]),default:e.withCtx(()=>[e.createVNode(a,{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",ke,[e.createElementVNode("div",xe,[e.createVNode(g,{modelValue:E.value,"onUpdate:modelValue":t[0]||(t[0]=i=>E.value=i),class:"app-field-select"},{default:e.withCtx(()=>[e.createVNode(f,{label:"对象编号",value:"object_id"}),e.createVNode(f,{label:"用户名",value:"created_by"}),e.createVNode(f,{label:"控制码指令",value:"command"}),e.createVNode(f,{label:"指令名称",value:"command_name"})]),_:1},8,["modelValue"]),e.createVNode(R,{modelValue:w.value,"onUpdate:modelValue":t[1]||(t[1]=i=>w.value=i),placeholder:"输入关键词搜索",clearable:"",class:"app-search-input",onKeyup:e.withKeys(H,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.Search))]),_:1})]),append:e.withCtx(()=>[e.createVNode(a,{type:"primary",class:"app-toolbar-search-btn",onClick:H},{default:e.withCtx(()=>[...t[8]||(t[8]=[e.createTextVNode("搜索",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Se,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Z.value,(i,B)=>(e.openBlock(),e.createElementBlock("div",{key:P(i,B),class:"app-object-card",style:e.normalizeStyle(oe.value)},[A(i)?(e.openBlock(),e.createElementBlock("div",we,[e.createElementVNode("div",Ee,e.toDisplayString(A(i)),1),e.createVNode(C,{type:N(i)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N(i)?"成功":"失败"),1)]),_:2},1032,["type"])])):(e.openBlock(),e.createBlock(C,{key:1,class:"app-card-status-corner",type:N(i)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N(i)?"成功":"失败"),1)]),_:2},1032,["type"])),e.createElementVNode("div",{class:e.normalizeClass(["app-card-fields",{"has-corner-status":!A(i)}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ae(i,B),z=>(e.openBlock(),e.createElementBlock("div",{key:z.prop,class:"app-field-line"},[e.createElementVNode("span",Ve,e.toDisplayString(z.label),1),e.createElementVNode("span",Ne,e.toDisplayString(z.text),1)]))),128))],2),le(i)?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(["app-card-expand-bottom",{open:K(i,B)}]),onClick:e.withModifiers(z=>ne(i,B),["stop"])},[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.ArrowDown))]),_:1})],10,Be)):e.createCommentVNode("",!0)],4))),128))]),e.createElementVNode("div",ze,[e.createElementVNode("div",De,[e.createVNode(k,{"current-page":s.current,"onUpdate:currentPage":t[2]||(t[2]=i=>s.current=i),"page-size":s.pageSize,"onUpdate:pageSize":t[3]||(t[3]=i=>s.pageSize=i),"page-sizes":[10,20,50,100],layout:"total, sizes",total:s.total,onSizeChange:se},null,8,["current-page","page-size","total"])]),e.createElementVNode("div",Oe,[e.createVNode(k,{"current-page":s.current,"onUpdate:currentPage":t[4]||(t[4]=i=>s.current=i),"page-size":s.pageSize,"onUpdate:pageSize":t[5]||(t[5]=i=>s.pageSize=i),"page-sizes":[10,20,50,100],layout:"prev, pager, next, jumper",total:s.total,onCurrentChange:ce},null,8,["current-page","page-size","total"])])])])),[[ue,T.value]]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)}}})),Me=$._export_sfc(qe,[["__scopeId","data-v-04b3a8ae"]]);exports.default=Me;
@@ -41,8 +41,8 @@ import "element-plus/es/components/button/style/css";
41
41
  import "element-plus/es/components/icon/style/css";
42
42
  import { defineComponent as Fe, computed as S, reactive as ie, ref as V, onMounted as Ke, openBlock as _, createElementBlock as g, normalizeStyle as Q, unref as k, normalizeClass as Y, createElementVNode as v, toDisplayString as C, createVNode as r, withCtx as m, createTextVNode as O, createBlock as le, createCommentVNode as G, withDirectives as Ie, withKeys as Ue, Fragment as se, renderList as re, withModifiers as He, renderSlot as Je } from "vue";
43
43
  import { u as We } from "./useMixiotPanelSurface-DRl3cZvc.js";
44
- import { B as qe } from "./BaseComponent-BlCsb-HW.js";
45
- import { a as ce, _ as Qe } from "./index-DomNEEyv.js";
44
+ import { B as qe } from "./BaseComponent-CQaDWNO0.js";
45
+ import { a as ce, _ as Qe } from "./index-BZpYmpDy.js";
46
46
  import { g as Ye } from "./titleStyle-BT5GlpAb.js";
47
47
  import { ElMessage as M, ElMessageBox as Ge } from "element-plus";
48
48
  import { Plus as Xe, Search as Ze, ArrowDown as et } from "@element-plus/icons-vue";
@@ -1 +1 @@
1
- "use strict";var L=Object.defineProperty,D=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var _=(p,i,a)=>i in p?L(p,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):p[i]=a,b=(p,i)=>{for(var a in i||(i={}))j.call(i,a)&&_(p,a,i[a]);if(V)for(var a of V(i))R.call(i,a)&&_(p,a,i[a]);return p},I=(p,i)=>D(p,H(i));var O=(p,i,a)=>new Promise((S,m)=>{var c=u=>{try{f(a.next(u))}catch(y){m(y)}},C=u=>{try{f(a.throw(u))}catch(y){m(y)}},f=u=>u.done?S(u.value):Promise.resolve(u.value).then(c,C);f((a=a.apply(p,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),$=require("./BaseComponent-BXAJUoaf.cjs"),N=require("./index-Cvu9nAQq.cjs"),M=require("./titleStyle-NSnz6cUg.cjs"),B=require("./ele-crd-icon-BvNgAPKW.cjs"),W={class:"card-item-inner"},U={class:"value-main"},q={key:0,class:"value-unit"},G="--",J={DEFAULT_ICON:B.DEFAULT_ICON,ACTIVE_ICON:B.ACTIVE_ICON,NAME_CN:"基础卡片",NAME_EN:"Card",ORDER:1,PLATFORM:["pc","screen","mobile"]},K={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"}]}},Q=[{name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1,valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"}],X=["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}],Y=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime","summary"],Z={useAlias:!1,multiObject:!1,source:"mosaic",object_id:"",object_alias:""},ee={DEFAULT:J,OPTIONS:K,DATA:Q,PARAMS:X,SOURCE:Y,COMMON:Z},te=t.defineComponent(I(b({},ee),{__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"},a=p;class S extends $.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),labelColor:this.getOptionValue("labelColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",14),valueSize:this.getOptionValue("valueSize",28),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!0),showTopGradient:this.getOptionValue("showTopGradient",!1),topGradientStart:this.getOptionValue("topGradientStart","#f5a623"),topGradientHeight:this.getOptionValue("topGradientHeight",2),topGradientPosition:this.getOptionValue("topGradientPosition","cardItem"),showBgIcon:this.getOptionValue("showBgIcon",!1),defaultBgIcon:this.getOptionValue("defaultBgIcon",""),bgIconOpacity:this.getOptionValue("bgIconOpacity",.06),bgIconSize:this.getOptionValue("bgIconSize",40),bgIconPosition:this.getOptionValue("bgIconPosition","right"),paramsLayout:this.getOptionValue("paramsLayout","horizontal")}}init(){return O(this,null,function*(){var o;this.Style.value=this.extractStyles(),this.applyTheme();const n={name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1};if(!((o=this.props.conf.data)!=null&&o.length))this.props.conf.data=[b(b({},n),i)];else for(const l of this.props.conf.data)if(!(!l||typeof l!="object"))for(const[r,s]of Object.entries(i))l[r]===void 0&&(l[r]=s)})}setHistoryData(n){if(!n)return;const{data:o}=this.props.conf;!Array.isArray(o)||!o.length||o.forEach((l,r)=>{var s,g;try{const d=(g=(s=n==null?void 0:n.history)==null?void 0:s[r])==null?void 0:g[0];if(!d)return;const z=l==null?void 0:l.fv;if(!z)return;const v=d==null?void 0:d[z];v!=null&&(l.value=v)}catch(d){}})}}const m=new S(a,"crd");m.setupLifecycle();const c=m.getStyle(),C=t.computed(()=>M.generateTitleStyle(a.conf.options)),f=t.computed(()=>{const e=C.value||{},n=parseFloat(String(e.fontSize||"14"))||14,o=String(e.padding||"").split(" ").filter(Boolean),l=o.length>0&&parseFloat(o[0])||0,r=Math.ceil(n*1.5),s=Math.max(0,r+l*2);return I(b({},e),{minHeight:`${s}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)`}}),y=t.computed(()=>{const e=c.value;return!!e.showTopGradient&&e.topGradientPosition==="aboveTitle"}),k=t.computed(()=>{const e=c.value;return!!e.showTopGradient&&e.topGradientPosition!=="aboveTitle"}),A=t.computed(()=>c.value.paramsLayout==="vertical"),E=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 P(e){const n=Number(e==null?void 0:e.areaWeight),o=Number.isFinite(n)&&n>0?n:1,l=Number(e==null?void 0:e.cellPadding),r={flex:`${o} 1 0`,minWidth:"0",minHeight:"0"};return Number.isFinite(l)&&l>0&&(r.padding=`${l}px`),r}function w(e){const n=c.value,o=Number(e==null?void 0:e.valueFontSize),l=Number.isFinite(o)&&o>0?o:n.valueSize,r=typeof(e==null?void 0:e.valueTextColor)=="string"?e.valueTextColor.trim():"",s=e==null?void 0:e.valueAlign,g=s==="left"||s==="right"||s==="center"?s:"center",d=g==="left"?"flex-start":g==="right"?"flex-end":"center";return{color:r||n.textColor,fontSize:`${l}px`,width:"100%",justifyContent:d,textAlign:g}}function F(e){const n=c.value,o=Number(e==null?void 0:e.nameFontSize),l=Number.isFinite(o)&&o>0?o:n.nameSize;return{color:(typeof(e==null?void 0:e.nameTextColor)=="string"?e.nameTextColor.trim():"")||n.labelColor,fontSize:`${l}px`}}function T(){const e=c.value.defaultBgIcon,n=typeof e=="string"?e.trim():"";return n?N.decodeIconFromStorage(n):""}const h=e=>{var r,s,g,d;if(!e)return{value:G,name:"--",unit:""};const n=(r=e.name)!=null?r:"",o=typeof e.unit=="string"?e.unit.trim():"";return e.isText?{value:(((s=e.flag)==null?void 0:s.find(v=>String(v.code)==String(e.value)))||{}).text||G,name:n,unit:o}:{value:(d=(g=e.value)!=null?g:e.default)!=null?d:0,name:n,unit:o}},x=a.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"})},[y.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(f.value)},t.toDisplayString(t.unref(x).caption||t.unref(x).name),5),t.createElementVNode("div",{class:t.normalizeClass(["mix-body",{"mix-body--params-vertical":A.value}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(x).data,(o,l)=>(t.openBlock(),t.createElementBlock("div",{key:l,class:"card-item",style:t.normalizeStyle(P(o))},[t.createElementVNode("div",{class:"card-item-surface",style:t.normalizeStyle({background:t.unref(c).bgColor})},null,4),k.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",W,[t.createElementVNode("div",{class:"value",style:t.normalizeStyle(w(o))},[t.createElementVNode("span",U,t.toDisplayString(h(o).value),1),h(o).unit?(t.openBlock(),t.createElementBlock("span",q,t.toDisplayString(h(o).unit),1)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:"name",style:t.normalizeStyle(F(o))},t.toDisplayString(h(o).name),5)])],4))),128)),t.unref(c).showBgIcon&&T()?(t.openBlock(),t.createElementBlock("div",{key:0,class:"mix-body-bg-icon",style:t.normalizeStyle(E.value)},t.toDisplayString(T()),5)):t.createCommentVNode("",!0)],2),t.renderSlot(e.$slots,"default",{},void 0,!0)],4))}})),oe=N._export_sfc(te,[["__scopeId","data-v-c5fcb39d"]]);exports.default=oe;
1
+ "use strict";var L=Object.defineProperty,D=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var _=(p,i,a)=>i in p?L(p,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):p[i]=a,b=(p,i)=>{for(var a in i||(i={}))j.call(i,a)&&_(p,a,i[a]);if(V)for(var a of V(i))R.call(i,a)&&_(p,a,i[a]);return p},I=(p,i)=>D(p,H(i));var O=(p,i,a)=>new Promise((S,m)=>{var c=u=>{try{f(a.next(u))}catch(y){m(y)}},C=u=>{try{f(a.throw(u))}catch(y){m(y)}},f=u=>u.done?S(u.value):Promise.resolve(u.value).then(c,C);f((a=a.apply(p,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),$=require("./BaseComponent-BmhMoM4H.cjs"),N=require("./index-77aUdspY.cjs"),M=require("./titleStyle-NSnz6cUg.cjs"),B=require("./ele-crd-icon-BvNgAPKW.cjs"),W={class:"card-item-inner"},U={class:"value-main"},q={key:0,class:"value-unit"},G="--",J={DEFAULT_ICON:B.DEFAULT_ICON,ACTIVE_ICON:B.ACTIVE_ICON,NAME_CN:"基础卡片",NAME_EN:"Card",ORDER:1,PLATFORM:["pc","screen","mobile"]},K={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"}]}},Q=[{name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1,valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"}],X=["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}],Y=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime","summary"],Z={useAlias:!1,multiObject:!1,source:"mosaic",object_id:"",object_alias:""},ee={DEFAULT:J,OPTIONS:K,DATA:Q,PARAMS:X,SOURCE:Y,COMMON:Z},te=t.defineComponent(I(b({},ee),{__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"},a=p;class S extends $.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),labelColor:this.getOptionValue("labelColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",14),valueSize:this.getOptionValue("valueSize",28),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!0),showTopGradient:this.getOptionValue("showTopGradient",!1),topGradientStart:this.getOptionValue("topGradientStart","#f5a623"),topGradientHeight:this.getOptionValue("topGradientHeight",2),topGradientPosition:this.getOptionValue("topGradientPosition","cardItem"),showBgIcon:this.getOptionValue("showBgIcon",!1),defaultBgIcon:this.getOptionValue("defaultBgIcon",""),bgIconOpacity:this.getOptionValue("bgIconOpacity",.06),bgIconSize:this.getOptionValue("bgIconSize",40),bgIconPosition:this.getOptionValue("bgIconPosition","right"),paramsLayout:this.getOptionValue("paramsLayout","horizontal")}}init(){return O(this,null,function*(){var o;this.Style.value=this.extractStyles(),this.applyTheme();const n={name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1};if(!((o=this.props.conf.data)!=null&&o.length))this.props.conf.data=[b(b({},n),i)];else for(const l of this.props.conf.data)if(!(!l||typeof l!="object"))for(const[r,s]of Object.entries(i))l[r]===void 0&&(l[r]=s)})}setHistoryData(n){if(!n)return;const{data:o}=this.props.conf;!Array.isArray(o)||!o.length||o.forEach((l,r)=>{var s,g;try{const d=(g=(s=n==null?void 0:n.history)==null?void 0:s[r])==null?void 0:g[0];if(!d)return;const z=l==null?void 0:l.fv;if(!z)return;const v=d==null?void 0:d[z];v!=null&&(l.value=v)}catch(d){}})}}const m=new S(a,"crd");m.setupLifecycle();const c=m.getStyle(),C=t.computed(()=>M.generateTitleStyle(a.conf.options)),f=t.computed(()=>{const e=C.value||{},n=parseFloat(String(e.fontSize||"14"))||14,o=String(e.padding||"").split(" ").filter(Boolean),l=o.length>0&&parseFloat(o[0])||0,r=Math.ceil(n*1.5),s=Math.max(0,r+l*2);return I(b({},e),{minHeight:`${s}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)`}}),y=t.computed(()=>{const e=c.value;return!!e.showTopGradient&&e.topGradientPosition==="aboveTitle"}),k=t.computed(()=>{const e=c.value;return!!e.showTopGradient&&e.topGradientPosition!=="aboveTitle"}),A=t.computed(()=>c.value.paramsLayout==="vertical"),E=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 P(e){const n=Number(e==null?void 0:e.areaWeight),o=Number.isFinite(n)&&n>0?n:1,l=Number(e==null?void 0:e.cellPadding),r={flex:`${o} 1 0`,minWidth:"0",minHeight:"0"};return Number.isFinite(l)&&l>0&&(r.padding=`${l}px`),r}function w(e){const n=c.value,o=Number(e==null?void 0:e.valueFontSize),l=Number.isFinite(o)&&o>0?o:n.valueSize,r=typeof(e==null?void 0:e.valueTextColor)=="string"?e.valueTextColor.trim():"",s=e==null?void 0:e.valueAlign,g=s==="left"||s==="right"||s==="center"?s:"center",d=g==="left"?"flex-start":g==="right"?"flex-end":"center";return{color:r||n.textColor,fontSize:`${l}px`,width:"100%",justifyContent:d,textAlign:g}}function F(e){const n=c.value,o=Number(e==null?void 0:e.nameFontSize),l=Number.isFinite(o)&&o>0?o:n.nameSize;return{color:(typeof(e==null?void 0:e.nameTextColor)=="string"?e.nameTextColor.trim():"")||n.labelColor,fontSize:`${l}px`}}function T(){const e=c.value.defaultBgIcon,n=typeof e=="string"?e.trim():"";return n?N.decodeIconFromStorage(n):""}const h=e=>{var r,s,g,d;if(!e)return{value:G,name:"--",unit:""};const n=(r=e.name)!=null?r:"",o=typeof e.unit=="string"?e.unit.trim():"";return e.isText?{value:(((s=e.flag)==null?void 0:s.find(v=>String(v.code)==String(e.value)))||{}).text||G,name:n,unit:o}:{value:(d=(g=e.value)!=null?g:e.default)!=null?d:0,name:n,unit:o}},x=a.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"})},[y.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(f.value)},t.toDisplayString(t.unref(x).caption||t.unref(x).name),5),t.createElementVNode("div",{class:t.normalizeClass(["mix-body",{"mix-body--params-vertical":A.value}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(x).data,(o,l)=>(t.openBlock(),t.createElementBlock("div",{key:l,class:"card-item",style:t.normalizeStyle(P(o))},[t.createElementVNode("div",{class:"card-item-surface",style:t.normalizeStyle({background:t.unref(c).bgColor})},null,4),k.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",W,[t.createElementVNode("div",{class:"value",style:t.normalizeStyle(w(o))},[t.createElementVNode("span",U,t.toDisplayString(h(o).value),1),h(o).unit?(t.openBlock(),t.createElementBlock("span",q,t.toDisplayString(h(o).unit),1)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:"name",style:t.normalizeStyle(F(o))},t.toDisplayString(h(o).name),5)])],4))),128)),t.unref(c).showBgIcon&&T()?(t.openBlock(),t.createElementBlock("div",{key:0,class:"mix-body-bg-icon",style:t.normalizeStyle(E.value)},t.toDisplayString(T()),5)):t.createCommentVNode("",!0)],2),t.renderSlot(e.$slots,"default",{},void 0,!0)],4))}})),oe=N._export_sfc(te,[["__scopeId","data-v-c5fcb39d"]]);exports.default=oe;
@@ -27,8 +27,8 @@ var N = (c, l, a) => new Promise((O, h) => {
27
27
  S((a = a.apply(c, l)).next());
28
28
  });
29
29
  import { defineComponent as J, computed as f, openBlock as m, createElementBlock as y, normalizeStyle as g, unref as v, createCommentVNode as _, createElementVNode as b, toDisplayString as T, normalizeClass as K, Fragment as Q, renderList as X, renderSlot as Y } from "vue";
30
- import { B as Z } from "./BaseComponent-BlCsb-HW.js";
31
- import { q as tt, _ as et } from "./index-DomNEEyv.js";
30
+ import { B as Z } from "./BaseComponent-CQaDWNO0.js";
31
+ import { t as tt, _ as et } from "./index-BZpYmpDy.js";
32
32
  import { g as ot } from "./titleStyle-BT5GlpAb.js";
33
33
  import { A as nt, D as at } from "./ele-crd-icon-BXxB7P3T.js";
34
34
  const lt = { class: "card-item-inner" }, it = { class: "value-main" }, rt = {
@@ -1,14 +1,14 @@
1
1
  var R = Object.defineProperty, D = Object.defineProperties;
2
2
  var H = Object.getOwnPropertyDescriptors;
3
3
  var T = Object.getOwnPropertySymbols, $ = Object.getPrototypeOf, U = Object.prototype.hasOwnProperty, Z = Object.prototype.propertyIsEnumerable, W = Reflect.get;
4
- var F = (o, e, t) => e in o ? R(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, N = (o, e) => {
4
+ var V = (o, e, t) => e in o ? R(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, F = (o, e) => {
5
5
  for (var t in e || (e = {}))
6
- U.call(e, t) && F(o, t, e[t]);
6
+ U.call(e, t) && V(o, t, e[t]);
7
7
  if (T)
8
8
  for (var t of T(e))
9
- Z.call(e, t) && F(o, t, e[t]);
9
+ Z.call(e, t) && V(o, t, e[t]);
10
10
  return o;
11
- }, V = (o, e) => D(o, H(e));
11
+ }, N = (o, e) => D(o, H(e));
12
12
  var _ = (o, e, t) => W($(o), t, e);
13
13
  var y = (o, e, t) => new Promise((m, r) => {
14
14
  var g = (a) => {
@@ -28,10 +28,10 @@ var y = (o, e, t) => new Promise((m, r) => {
28
28
  });
29
29
  import { defineComponent as G, reactive as O, ref as L, computed as M, openBlock as w, createElementBlock as b, Fragment as B, createElementVNode as p, normalizeStyle as h, unref as f, createTextVNode as J, toDisplayString as k, createCommentVNode as K, renderList as Y, normalizeClass as q, renderSlot as Q, createVNode as X } from "vue";
30
30
  import "html2canvas";
31
- import { B as t2 } from "./BaseComponent-BlCsb-HW.js";
32
- import { U as e2, A as o2, a as i2, _ as s2 } from "./index-DomNEEyv.js";
31
+ import { B as t2 } from "./BaseComponent-CQaDWNO0.js";
32
+ import { V as e2, A as o2, a as i2, _ as s2 } from "./index-BZpYmpDy.js";
33
33
  import { g as l2 } from "./titleStyle-BT5GlpAb.js";
34
- import { _ as n2, g as a2, c as c2 } from "./mix-control-modal-DjD4xOuc.js";
34
+ import { _ as n2, g as a2, c as c2 } from "./mix-control-modal-DzVLdO3S.js";
35
35
  import { ElMessage as r2 } from "element-plus";
36
36
  const d2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-213.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M225.674156,1208.89481%20C225.944595,1209.04924%20226.205387,1209.21954%20226.455068,1209.40467%20C226.881095,1209.72052%20227.273774,1210.07876%20227.626647,1210.47337%20C228.878628,1211.87353%20229.582251,1213.67438%20229.582251,1215.58182%20C229.582251,1219.84629%20226.083331,1223.3%20221.771264,1223.3%20C217.459198,1223.3%20213.960278,1219.84629%20213.960278,1215.58182%20C213.960278,1213.67437%20214.663898,1211.87352%20215.9159,1210.47335%20C216.268755,1210.07876%20216.661433,1209.72052%20217.087434,1209.40469%20C217.337142,1209.21954%20217.597933,1209.04924%20217.868372,1208.89481%20C218.16979,1208.7227%20218.55366,1208.82753%20218.725771,1209.12895%20C218.897882,1209.43036%20218.793058,1209.81423%20218.49164,1209.98634%20C218.264609,1210.11598%20218.045681,1210.25894%20217.836048,1210.41438%20C217.478472,1210.67948%20217.148907,1210.98015%20216.85287,1211.31119%20C215.804685,1212.48343%20215.217218,1213.98699%20215.217218,1215.58182%20C215.217218,1219.14841%20218.149754,1222.04306%20221.771264,1222.04306%20C225.392775,1222.04306%20228.32531,1219.14841%20228.32531,1215.58182%20C228.32531,1213.987%20227.73784,1212.48344%20226.689675,1211.31121%20C226.393622,1210.98015%20226.064056,1210.67948%20225.706453,1210.41436%20C225.496847,1210.25894%20225.27792,1210.11598%20225.050889,1209.98634%20C224.749471,1209.81423%20224.644647,1209.43036%20224.816758,1209.12895%20C224.988868,1208.82753%20225.372739,1208.7227%20225.674156,1208.89481%20Z%20M221.771264,1207.3%20C222.089434,1207.3%20222.352382,1207.53643%20222.393997,1207.84319%20L222.399735,1207.92847%20L222.399735,1215.48901%20C222.399735,1215.83611%20222.118359,1216.11748%20221.771264,1216.11748%20C221.453094,1216.11748%20221.190147,1215.88105%20221.148531,1215.57429%20L221.142794,1215.48901%20L221.142794,1207.92847%20C221.142794,1207.58138%20221.42417,1207.3%20221.771264,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", u2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M115.0528,1208.89481%20C115.323239,1209.04924%20115.58403,1209.21954%20115.833711,1209.40467%20C116.259739,1209.72052%20116.652418,1210.07876%20117.00529,1210.47337%20C118.257271,1211.87353%20118.960894,1213.67438%20118.960894,1215.58182%20C118.960894,1219.84629%20115.461974,1223.3%20111.149908,1223.3%20C106.837841,1223.3%20103.338921,1219.84629%20103.338921,1215.58182%20C103.338921,1213.67437%20104.042541,1211.87352%20105.294544,1210.47335%20C105.647398,1210.07876%20106.040077,1209.72052%20106.466077,1209.40469%20C106.715786,1209.21954%20106.976577,1209.04924%20107.247016,1208.89481%20C107.548433,1208.7227%20107.932304,1208.82753%20108.104414,1209.12895%20C108.276525,1209.43036%20108.171701,1209.81423%20107.870284,1209.98634%20C107.643252,1210.11598%20107.424325,1210.25894%20107.214692,1210.41438%20C106.857116,1210.67948%20106.52755,1210.98015%20106.231514,1211.31119%20C105.183328,1212.48343%20104.595862,1213.98699%20104.595862,1215.58182%20C104.595862,1219.14841%20107.528398,1222.04306%20111.149908,1222.04306%20C114.771418,1222.04306%20117.703954,1219.14841%20117.703954,1215.58182%20C117.703954,1213.987%20117.116484,1212.48344%20116.068318,1211.31121%20C115.772265,1210.98015%20115.4427,1210.67948%20115.085097,1210.41436%20C114.875491,1210.25894%20114.656563,1210.11598%20114.429532,1209.98634%20C114.128115,1209.81423%20114.023291,1209.43036%20114.195401,1209.12895%20C114.367512,1208.82753%20114.751382,1208.7227%20115.0528,1208.89481%20Z%20M111.149908,1207.3%20C111.468078,1207.3%20111.731026,1207.53643%20111.772641,1207.84319%20L111.778378,1207.92847%20L111.778378,1215.48901%20C111.778378,1215.83611%20111.497002,1216.11748%20111.149908,1216.11748%20C110.831738,1216.11748%20110.56879,1215.88105%20110.527175,1215.57429%20L110.521438,1215.48901%20L110.521438,1207.92847%20C110.521438,1207.58138%20110.802813,1207.3%20111.149908,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", m2 = { class: "font-semibold flex items-center justify-between" }, p2 = { class: "mix-body" }, f2 = { class: "w-full flex flex-wrap content-start" }, g2 = ["onClick"], C2 = {
37
37
  DEFAULT_ICON: d2,
@@ -74,7 +74,7 @@ const d2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
74
74
  statusFv: "",
75
75
  statusType: 1,
76
76
  status: [{ code: 0, text: "离线", color: "#c92309" }]
77
- }, b2 = { DEFAULT: C2, OPTIONS: h2, DATA: E, PARAMS: x2, SOURCE: v2, COMMON: w2 }, S2 = /* @__PURE__ */ G(V(N({}, b2), {
77
+ }, b2 = { DEFAULT: C2, OPTIONS: h2, DATA: E, PARAMS: x2, SOURCE: v2, COMMON: w2 }, S2 = /* @__PURE__ */ G(N(F({}, b2), {
78
78
  __name: "ctrBtn",
79
79
  props: {
80
80
  conf: {
@@ -212,7 +212,7 @@ const d2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
212
212
  }, null, 8, ["password"])
213
213
  ], 64));
214
214
  }
215
- })), N2 = /* @__PURE__ */ s2(S2, [["__scopeId", "data-v-8265c6e9"]]);
215
+ })), F2 = /* @__PURE__ */ s2(S2, [["__scopeId", "data-v-8265c6e9"]]);
216
216
  export {
217
- N2 as default
217
+ F2 as default
218
218
  };
@@ -1 +1 @@
1
- "use strict";var A=Object.defineProperty,F=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols,L=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,j=Reflect.get;var O=(l,o,t)=>o in l?A(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,z=(l,o)=>{for(var t in o||(o={}))P.call(o,t)&&O(l,t,o[t]);if(k)for(var t of k(o))I.call(o,t)&&O(l,t,o[t]);return l},N=(l,o)=>F(l,M(o));var w=(l,o,t)=>j(L(l),t,o);var S=(l,o,t)=>new Promise((p,d)=>{var f=r=>{try{u(t.next(r))}catch(c){d(c)}},C=r=>{try{u(t.throw(r))}catch(c){d(c)}},u=r=>r.done?p(r.value):Promise.resolve(r.value).then(f,C);u((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const D=require("./BaseComponent-BXAJUoaf.cjs"),v=require("./index-Cvu9nAQq.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),y=require("./mix-control-modal-DQnZbDGs.cjs"),H=require("element-plus"),q="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-213.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M225.674156,1208.89481%20C225.944595,1209.04924%20226.205387,1209.21954%20226.455068,1209.40467%20C226.881095,1209.72052%20227.273774,1210.07876%20227.626647,1210.47337%20C228.878628,1211.87353%20229.582251,1213.67438%20229.582251,1215.58182%20C229.582251,1219.84629%20226.083331,1223.3%20221.771264,1223.3%20C217.459198,1223.3%20213.960278,1219.84629%20213.960278,1215.58182%20C213.960278,1213.67437%20214.663898,1211.87352%20215.9159,1210.47335%20C216.268755,1210.07876%20216.661433,1209.72052%20217.087434,1209.40469%20C217.337142,1209.21954%20217.597933,1209.04924%20217.868372,1208.89481%20C218.16979,1208.7227%20218.55366,1208.82753%20218.725771,1209.12895%20C218.897882,1209.43036%20218.793058,1209.81423%20218.49164,1209.98634%20C218.264609,1210.11598%20218.045681,1210.25894%20217.836048,1210.41438%20C217.478472,1210.67948%20217.148907,1210.98015%20216.85287,1211.31119%20C215.804685,1212.48343%20215.217218,1213.98699%20215.217218,1215.58182%20C215.217218,1219.14841%20218.149754,1222.04306%20221.771264,1222.04306%20C225.392775,1222.04306%20228.32531,1219.14841%20228.32531,1215.58182%20C228.32531,1213.987%20227.73784,1212.48344%20226.689675,1211.31121%20C226.393622,1210.98015%20226.064056,1210.67948%20225.706453,1210.41436%20C225.496847,1210.25894%20225.27792,1210.11598%20225.050889,1209.98634%20C224.749471,1209.81423%20224.644647,1209.43036%20224.816758,1209.12895%20C224.988868,1208.82753%20225.372739,1208.7227%20225.674156,1208.89481%20Z%20M221.771264,1207.3%20C222.089434,1207.3%20222.352382,1207.53643%20222.393997,1207.84319%20L222.399735,1207.92847%20L222.399735,1215.48901%20C222.399735,1215.83611%20222.118359,1216.11748%20221.771264,1216.11748%20C221.453094,1216.11748%20221.190147,1215.88105%20221.148531,1215.57429%20L221.142794,1215.48901%20L221.142794,1207.92847%20C221.142794,1207.58138%20221.42417,1207.3%20221.771264,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M115.0528,1208.89481%20C115.323239,1209.04924%20115.58403,1209.21954%20115.833711,1209.40467%20C116.259739,1209.72052%20116.652418,1210.07876%20117.00529,1210.47337%20C118.257271,1211.87353%20118.960894,1213.67438%20118.960894,1215.58182%20C118.960894,1219.84629%20115.461974,1223.3%20111.149908,1223.3%20C106.837841,1223.3%20103.338921,1219.84629%20103.338921,1215.58182%20C103.338921,1213.67437%20104.042541,1211.87352%20105.294544,1210.47335%20C105.647398,1210.07876%20106.040077,1209.72052%20106.466077,1209.40469%20C106.715786,1209.21954%20106.976577,1209.04924%20107.247016,1208.89481%20C107.548433,1208.7227%20107.932304,1208.82753%20108.104414,1209.12895%20C108.276525,1209.43036%20108.171701,1209.81423%20107.870284,1209.98634%20C107.643252,1210.11598%20107.424325,1210.25894%20107.214692,1210.41438%20C106.857116,1210.67948%20106.52755,1210.98015%20106.231514,1211.31119%20C105.183328,1212.48343%20104.595862,1213.98699%20104.595862,1215.58182%20C104.595862,1219.14841%20107.528398,1222.04306%20111.149908,1222.04306%20C114.771418,1222.04306%20117.703954,1219.14841%20117.703954,1215.58182%20C117.703954,1213.987%20117.116484,1212.48344%20116.068318,1211.31121%20C115.772265,1210.98015%20115.4427,1210.67948%20115.085097,1210.41436%20C114.875491,1210.25894%20114.656563,1210.11598%20114.429532,1209.98634%20C114.128115,1209.81423%20114.023291,1209.43036%20114.195401,1209.12895%20C114.367512,1208.82753%20114.751382,1208.7227%20115.0528,1208.89481%20Z%20M111.149908,1207.3%20C111.468078,1207.3%20111.731026,1207.53643%20111.772641,1207.84319%20L111.778378,1207.92847%20L111.778378,1215.48901%20C111.778378,1215.83611%20111.497002,1216.11748%20111.149908,1216.11748%20C110.831738,1216.11748%20110.56879,1215.88105%20110.527175,1215.57429%20L110.521438,1215.48901%20L110.521438,1207.92847%20C110.521438,1207.58138%20110.802813,1207.3%20111.149908,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",U={class:"font-semibold flex items-center justify-between"},Z={class:"mix-body"},W={class:"w-full flex flex-wrap content-start"},G=["onClick"],J={DEFAULT_ICON:q,ACTIVE_ICON:$,NAME_CN:"按键",NAME_EN:"Button",ORDER:2,PLATFORM:["pc","screen","mobile"]},K={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:v.CONTROL_OPTIONS}},V=[{command:"Control_01",name:"关机",color:"#c92309",code:"0"},{command:"Control_01",name:"开机",color:"#217406",code:"1"}],Y=["name","command","color","code"],Q=["mosaic"],X={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},e2={DEFAULT:J,OPTIONS:K,DATA:V,PARAMS:Y,SOURCE:Q,COMMON:X},t2=e.defineComponent(N(z({},e2),{__name:"ctrBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(l){const o=l,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),p=e.reactive({rule:"",code:"",command:""}),d=e.reactive({text:"",color:""}),f=e.ref(null),C=e.ref(!0);class u extends D.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#fff"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",42),radiusSize:this.getOptionValue("radiusSize",8),items:this.getOptionValue("items",2),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return S(this,null,function*(){w(u.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:V})}onPreview(){return S(this,null,function*(){yield w(u.prototype,this,"onPreview").call(this);const n=yield y.getAuthorized(this.props);t.authorized=n.authorized,t.password=n.password})}setSocketData(n){var g,x;if(!n)return;const{common:i}=this.props.conf,s=this.extractDataValue(n,i.statusFv);if(s!=null){const m=i.status.find(h=>String(h.code)===String(s));d.text=(g=m==null?void 0:m.text)!=null?g:"",d.color=(x=m==null?void 0:m.color)!=null?x:""}}}const r=new u(o,"ctrBtn");r.setupLifecycle();const c=r.getStyle(),E=e.computed(()=>R.generateTitleStyle(o.conf.options)),B=e.computed(()=>`${(100/c.value.items).toFixed(2)||100}%`),b=a=>!y.checkPermission(t.authorized,a.command),T=a=>{var s;if(b(a))return;const{options:n}=o.conf;let i=((s=n==null?void 0:n.method)==null?void 0:s.value)||"alway";p.rule=i,p.code=String(a.code),p.command=a.command,i==="alway"||i==="once"&&C.value?f.value.modal.visible=!0:_()},_=()=>{const{code:a,rule:n,command:i}=p,{common:s}=o.conf,g=JSON.parse(sessionStorage.getItem(v.ALIAS_MAPPING_KEY)||"{}");let m={block_mapping:"pusher",action:"publish_command",object_id:s.useAlias?g[s.object_alias]:s.object_id||o.uid,command:i,value:a,rule:n,control:t.password};v.api.platform(h=>{h.code===200&&(H.ElMessage.success(h.msg),f.value.modal.visible=!1,C.value=!1)},m)};return(a,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(E.value)},[e.createElementVNode("div",U,[e.createTextVNode(e.toDisplayString(l.conf.caption||l.conf.name)+" ",1),d.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"status-btn",style:e.normalizeStyle({backgroundColor:d.color,color:e.unref(c).textColor})},e.toDisplayString(d.text),5)):e.createCommentVNode("",!0)])],4),e.createElementVNode("div",Z,[e.createElementVNode("div",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.data,(i,s)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:s,style:e.normalizeStyle({width:B.value,height:`${e.unref(c).itemHeight}px`,fontSize:`${e.unref(c).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:b(i)}]),style:e.normalizeStyle({backgroundColor:i.color,color:e.unref(c).textColor}),onClick:g=>T(i)},e.toDisplayString(i.name),15,G)],4))),128))])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4),e.createVNode(y._sfc_main,{ref_key:"controlRef",ref:f,onSubmit:_,password:t.password},null,8,["password"])],64))}})),o2=v._export_sfc(t2,[["__scopeId","data-v-8265c6e9"]]);exports.default=o2;
1
+ "use strict";var A=Object.defineProperty,F=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols,L=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,j=Reflect.get;var O=(l,o,t)=>o in l?A(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,z=(l,o)=>{for(var t in o||(o={}))P.call(o,t)&&O(l,t,o[t]);if(k)for(var t of k(o))I.call(o,t)&&O(l,t,o[t]);return l},N=(l,o)=>F(l,M(o));var w=(l,o,t)=>j(L(l),t,o);var S=(l,o,t)=>new Promise((p,d)=>{var f=r=>{try{u(t.next(r))}catch(c){d(c)}},C=r=>{try{u(t.throw(r))}catch(c){d(c)}},u=r=>r.done?p(r.value):Promise.resolve(r.value).then(f,C);u((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const D=require("./BaseComponent-BmhMoM4H.cjs"),v=require("./index-77aUdspY.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),y=require("./mix-control-modal-I6DqPm04.cjs"),H=require("element-plus"),q="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-213.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M225.674156,1208.89481%20C225.944595,1209.04924%20226.205387,1209.21954%20226.455068,1209.40467%20C226.881095,1209.72052%20227.273774,1210.07876%20227.626647,1210.47337%20C228.878628,1211.87353%20229.582251,1213.67438%20229.582251,1215.58182%20C229.582251,1219.84629%20226.083331,1223.3%20221.771264,1223.3%20C217.459198,1223.3%20213.960278,1219.84629%20213.960278,1215.58182%20C213.960278,1213.67437%20214.663898,1211.87352%20215.9159,1210.47335%20C216.268755,1210.07876%20216.661433,1209.72052%20217.087434,1209.40469%20C217.337142,1209.21954%20217.597933,1209.04924%20217.868372,1208.89481%20C218.16979,1208.7227%20218.55366,1208.82753%20218.725771,1209.12895%20C218.897882,1209.43036%20218.793058,1209.81423%20218.49164,1209.98634%20C218.264609,1210.11598%20218.045681,1210.25894%20217.836048,1210.41438%20C217.478472,1210.67948%20217.148907,1210.98015%20216.85287,1211.31119%20C215.804685,1212.48343%20215.217218,1213.98699%20215.217218,1215.58182%20C215.217218,1219.14841%20218.149754,1222.04306%20221.771264,1222.04306%20C225.392775,1222.04306%20228.32531,1219.14841%20228.32531,1215.58182%20C228.32531,1213.987%20227.73784,1212.48344%20226.689675,1211.31121%20C226.393622,1210.98015%20226.064056,1210.67948%20225.706453,1210.41436%20C225.496847,1210.25894%20225.27792,1210.11598%20225.050889,1209.98634%20C224.749471,1209.81423%20224.644647,1209.43036%20224.816758,1209.12895%20C224.988868,1208.82753%20225.372739,1208.7227%20225.674156,1208.89481%20Z%20M221.771264,1207.3%20C222.089434,1207.3%20222.352382,1207.53643%20222.393997,1207.84319%20L222.399735,1207.92847%20L222.399735,1215.48901%20C222.399735,1215.83611%20222.118359,1216.11748%20221.771264,1216.11748%20C221.453094,1216.11748%20221.190147,1215.88105%20221.148531,1215.57429%20L221.142794,1215.48901%20L221.142794,1207.92847%20C221.142794,1207.58138%20221.42417,1207.3%20221.771264,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M115.0528,1208.89481%20C115.323239,1209.04924%20115.58403,1209.21954%20115.833711,1209.40467%20C116.259739,1209.72052%20116.652418,1210.07876%20117.00529,1210.47337%20C118.257271,1211.87353%20118.960894,1213.67438%20118.960894,1215.58182%20C118.960894,1219.84629%20115.461974,1223.3%20111.149908,1223.3%20C106.837841,1223.3%20103.338921,1219.84629%20103.338921,1215.58182%20C103.338921,1213.67437%20104.042541,1211.87352%20105.294544,1210.47335%20C105.647398,1210.07876%20106.040077,1209.72052%20106.466077,1209.40469%20C106.715786,1209.21954%20106.976577,1209.04924%20107.247016,1208.89481%20C107.548433,1208.7227%20107.932304,1208.82753%20108.104414,1209.12895%20C108.276525,1209.43036%20108.171701,1209.81423%20107.870284,1209.98634%20C107.643252,1210.11598%20107.424325,1210.25894%20107.214692,1210.41438%20C106.857116,1210.67948%20106.52755,1210.98015%20106.231514,1211.31119%20C105.183328,1212.48343%20104.595862,1213.98699%20104.595862,1215.58182%20C104.595862,1219.14841%20107.528398,1222.04306%20111.149908,1222.04306%20C114.771418,1222.04306%20117.703954,1219.14841%20117.703954,1215.58182%20C117.703954,1213.987%20117.116484,1212.48344%20116.068318,1211.31121%20C115.772265,1210.98015%20115.4427,1210.67948%20115.085097,1210.41436%20C114.875491,1210.25894%20114.656563,1210.11598%20114.429532,1209.98634%20C114.128115,1209.81423%20114.023291,1209.43036%20114.195401,1209.12895%20C114.367512,1208.82753%20114.751382,1208.7227%20115.0528,1208.89481%20Z%20M111.149908,1207.3%20C111.468078,1207.3%20111.731026,1207.53643%20111.772641,1207.84319%20L111.778378,1207.92847%20L111.778378,1215.48901%20C111.778378,1215.83611%20111.497002,1216.11748%20111.149908,1216.11748%20C110.831738,1216.11748%20110.56879,1215.88105%20110.527175,1215.57429%20L110.521438,1215.48901%20L110.521438,1207.92847%20C110.521438,1207.58138%20110.802813,1207.3%20111.149908,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",U={class:"font-semibold flex items-center justify-between"},Z={class:"mix-body"},W={class:"w-full flex flex-wrap content-start"},G=["onClick"],J={DEFAULT_ICON:q,ACTIVE_ICON:$,NAME_CN:"按键",NAME_EN:"Button",ORDER:2,PLATFORM:["pc","screen","mobile"]},K={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:v.CONTROL_OPTIONS}},V=[{command:"Control_01",name:"关机",color:"#c92309",code:"0"},{command:"Control_01",name:"开机",color:"#217406",code:"1"}],Y=["name","command","color","code"],Q=["mosaic"],X={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},e2={DEFAULT:J,OPTIONS:K,DATA:V,PARAMS:Y,SOURCE:Q,COMMON:X},t2=e.defineComponent(N(z({},e2),{__name:"ctrBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(l){const o=l,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),p=e.reactive({rule:"",code:"",command:""}),d=e.reactive({text:"",color:""}),f=e.ref(null),C=e.ref(!0);class u extends D.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#fff"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",42),radiusSize:this.getOptionValue("radiusSize",8),items:this.getOptionValue("items",2),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return S(this,null,function*(){w(u.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:V})}onPreview(){return S(this,null,function*(){yield w(u.prototype,this,"onPreview").call(this);const n=yield y.getAuthorized(this.props);t.authorized=n.authorized,t.password=n.password})}setSocketData(n){var g,x;if(!n)return;const{common:i}=this.props.conf,s=this.extractDataValue(n,i.statusFv);if(s!=null){const m=i.status.find(h=>String(h.code)===String(s));d.text=(g=m==null?void 0:m.text)!=null?g:"",d.color=(x=m==null?void 0:m.color)!=null?x:""}}}const r=new u(o,"ctrBtn");r.setupLifecycle();const c=r.getStyle(),E=e.computed(()=>R.generateTitleStyle(o.conf.options)),B=e.computed(()=>`${(100/c.value.items).toFixed(2)||100}%`),b=a=>!y.checkPermission(t.authorized,a.command),T=a=>{var s;if(b(a))return;const{options:n}=o.conf;let i=((s=n==null?void 0:n.method)==null?void 0:s.value)||"alway";p.rule=i,p.code=String(a.code),p.command=a.command,i==="alway"||i==="once"&&C.value?f.value.modal.visible=!0:_()},_=()=>{const{code:a,rule:n,command:i}=p,{common:s}=o.conf,g=JSON.parse(sessionStorage.getItem(v.ALIAS_MAPPING_KEY)||"{}");let m={block_mapping:"pusher",action:"publish_command",object_id:s.useAlias?g[s.object_alias]:s.object_id||o.uid,command:i,value:a,rule:n,control:t.password};v.api.platform(h=>{h.code===200&&(H.ElMessage.success(h.msg),f.value.modal.visible=!1,C.value=!1)},m)};return(a,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(E.value)},[e.createElementVNode("div",U,[e.createTextVNode(e.toDisplayString(l.conf.caption||l.conf.name)+" ",1),d.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"status-btn",style:e.normalizeStyle({backgroundColor:d.color,color:e.unref(c).textColor})},e.toDisplayString(d.text),5)):e.createCommentVNode("",!0)])],4),e.createElementVNode("div",Z,[e.createElementVNode("div",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.data,(i,s)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:s,style:e.normalizeStyle({width:B.value,height:`${e.unref(c).itemHeight}px`,fontSize:`${e.unref(c).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:b(i)}]),style:e.normalizeStyle({backgroundColor:i.color,color:e.unref(c).textColor}),onClick:g=>T(i)},e.toDisplayString(i.name),15,G)],4))),128))])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4),e.createVNode(y._sfc_main,{ref_key:"controlRef",ref:f,onSubmit:_,password:t.password},null,8,["password"])],64))}})),o2=v._export_sfc(t2,[["__scopeId","data-v-8265c6e9"]]);exports.default=o2;
@@ -31,10 +31,10 @@ import "element-plus/es/components/base/style/css";
31
31
  import "element-plus/es/components/button/style/css";
32
32
  import "element-plus/es/components/input/style/css";
33
33
  import { defineComponent as ee, computed as O, reactive as te, ref as V, openBlock as z, createElementBlock as E, Fragment as B, createElementVNode as p, normalizeStyle as g, unref as f, toDisplayString as T, renderList as oe, createVNode as C, withCtx as le, createTextVNode as ae, renderSlot as se } from "vue";
34
- import { B as ie } from "./BaseComponent-BlCsb-HW.js";
35
- import { A as ne, a as L, _ as ce } from "./index-DomNEEyv.js";
34
+ import { B as ie } from "./BaseComponent-CQaDWNO0.js";
35
+ import { A as ne, a as L, _ as ce } from "./index-BZpYmpDy.js";
36
36
  import { g as re } from "./titleStyle-BT5GlpAb.js";
37
- import { _ as de, g as ue, c as me } from "./mix-control-modal-DjD4xOuc.js";
37
+ import { _ as de, g as ue, c as me } from "./mix-control-modal-DzVLdO3S.js";
38
38
  import { ElMessage as R } from "element-plus";
39
39
  import { A as pe, D as fe } from "./ele-ctrSet-icon-BtKGrCid.js";
40
40
  const he = { class: "font-[600]" }, ve = { class: "submint" }, be = {