mixdashboards 1.0.74 → 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 (354) hide show
  1. package/dist/BaseComponent-BmhMoM4H.cjs +1 -0
  2. package/dist/{BaseComponent-NnwLq7Cf.js → BaseComponent-CQaDWNO0.js} +10 -10
  3. package/dist/{EChartComponentBase-D7_ZiE7P.cjs → EChartComponentBase-D9EUh4BZ.cjs} +1 -1
  4. package/dist/{EChartComponentBase-C3gcATBZ.js → EChartComponentBase-i76OGL3z.js} +2 -2
  5. package/dist/{EmergencyPlanPanel-0EfbQlQm.js → EmergencyPlanPanel-B9S3Ru5-.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-XDtQc5aN.cjs → EmergencyPlanPanel-BiAHvTfh.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-fbBtPeVt.cjs → HistoryPlanDialog-BU4GayEm.cjs} +1 -1
  8. package/dist/{HistoryPlanDialog-ihGqWXNI.js → HistoryPlanDialog-CbbeFm-i.js} +1 -1
  9. package/dist/{MonitoringMap-DysFrw3B.js → MonitoringMap-B6tXBdvK.js} +2 -2
  10. package/dist/{MonitoringMap-UT2OL3ca.cjs → MonitoringMap-FGDoA0fw.cjs} +1 -1
  11. package/dist/{UniverSheet-DeZ-y5mH.cjs → UniverSheet-D7y2pceH.cjs} +1 -1
  12. package/dist/{UniverSheet-CMWL98B8.js → UniverSheet-D8sflrTb.js} +2 -2
  13. package/dist/{accelerationChart-BGjzOc4I.cjs → accelerationChart-DTlwSA0N.cjs} +1 -1
  14. package/dist/{accelerationChart-JNRxAqU5.js → accelerationChart-bch4O3t-.js} +9 -9
  15. package/dist/{actionItem-DnrNafUu.js → actionItem-Cw67YwsR.js} +2 -2
  16. package/dist/{actionItem-DDlL4pxR.cjs → actionItem-cdsgUvaC.cjs} +1 -1
  17. package/dist/{alarmLevelChart-B4TglthF.cjs → alarmLevelChart-BMjTLxB5.cjs} +1 -1
  18. package/dist/{alarmLevelChart-D4ZPyGyd.js → alarmLevelChart-BynSRHG2.js} +2 -2
  19. package/dist/{alertTable-WmivR3n_.cjs → alertTable-3VhkUZSf.cjs} +1 -1
  20. package/dist/{alertTable-IwL3PIbe.js → alertTable-CiwuaydQ.js} +2 -2
  21. package/dist/{aliasObjectSelectorDemo-zcElLG44.cjs → aliasObjectSelectorDemo-BLoecZkV.cjs} +1 -1
  22. package/dist/{aliasObjectSelectorDemo-DCcqetww.js → aliasObjectSelectorDemo-DfdRxb4I.js} +1 -1
  23. package/dist/{annualRainfallChart-CNqrXKJZ.js → annualRainfallChart-CHcr4-0D.js} +2 -2
  24. package/dist/{annualRainfallChart-DspMrDxt.cjs → annualRainfallChart-DKR-A_PT.cjs} +1 -1
  25. package/dist/{aqi-B1bcKY5p.cjs → aqi-D7VqP1QE.cjs} +1 -1
  26. package/dist/{aqi-CdGE9-CD.js → aqi-Gu-pAovO.js} +4 -4
  27. package/dist/{aqiIndass-CuKfMaYn.js → aqiIndass-Bjj6n1aj.js} +18 -18
  28. package/dist/{aqiIndass-BZpPo1tj.cjs → aqiIndass-nfYUZ3UM.cjs} +1 -1
  29. package/dist/{areaDeformCurve-bNNNS8Cb.cjs → areaDeformCurve-fpGWmq05.cjs} +1 -1
  30. package/dist/{areaDeformCurve-Chn4CE8w.js → areaDeformCurve-nwlcUBDv.js} +2 -2
  31. package/dist/arrayCard-TfcgLrHv.js +139 -0
  32. package/dist/arrayCard-UoDqAGbN.cjs +1 -0
  33. package/dist/{audio-YTfr7Lqf.js → audio-BYgGYoEr.js} +2 -2
  34. package/dist/{audio-BeYg08W5.cjs → audio-DdUv9Ot-.cjs} +1 -1
  35. package/dist/bar-CkBXc7t1.cjs +2 -0
  36. package/dist/{bar-YhAAV2al.js → bar-SfGiFl1r.js} +75 -67
  37. package/dist/{bmp-Uj7Bu61U.js → bmp-BbtdzIrI.js} +2 -2
  38. package/dist/{bmp-vWIH5Cu7.cjs → bmp-CY-Hb2x1.cjs} +1 -1
  39. package/dist/{box-Cdzw27uU.cjs → box-B4C_mirv.cjs} +1 -1
  40. package/dist/{box-C8RIfuID.js → box-CV41cJuX.js} +2 -2
  41. package/dist/{chartConfigPanel-DLa3heKy.js → chartConfigPanel-D650rSn7.js} +1 -1
  42. package/dist/{chartConfigPanel-D3voTkdQ.cjs → chartConfigPanel-DBlqAbbH.cjs} +1 -1
  43. package/dist/{circleBar-Dc_qd4gk.cjs → circleBar-DkV7xPBl.cjs} +1 -1
  44. package/dist/{circleBar-DUSP-iMF.js → circleBar-U3iXMQr5.js} +2 -2
  45. package/dist/{clock-0USfNfTc.cjs → clock-CjgMeOhp.cjs} +1 -1
  46. package/dist/{clock-Dk1zjBcJ.js → clock-zKVUU8pu.js} +2 -2
  47. package/dist/clt-BsIA-YPQ.js +301 -0
  48. package/dist/clt-DwI8i7zI.cjs +1 -0
  49. package/dist/cmc-BX9ichBB.cjs +1 -0
  50. package/dist/cmc-CgpHejR2.js +275 -0
  51. package/dist/{cmp-D4ZO7mz7.js → cmp-CS34lG7V.js} +2 -2
  52. package/dist/{cmp-BPM8lMqg.cjs → cmp-CTqtxzo4.cjs} +1 -1
  53. package/dist/{conclusionCard-BYR-fH4f.js → conclusionCard-N6pA6Q9P.js} +2 -2
  54. package/dist/{conclusionCard-BVHHtpxH.cjs → conclusionCard-wvtJmV_8.cjs} +1 -1
  55. package/dist/{controlList-DsEyes9v.cjs → controlList-BUAMdHA3.cjs} +1 -1
  56. package/dist/{controlList-DYV1wgUY.js → controlList-Zz5ABe5b.js} +2 -2
  57. package/dist/{controlRecordList-j0pBrQiU.cjs → controlRecordList-CMR4y_Ml.cjs} +1 -1
  58. package/dist/{controlRecordList-CBGpB41d.js → controlRecordList-Dx0zj7js.js} +2 -2
  59. package/dist/controlRecordListAPP-ZDCKmz_8.cjs +1 -0
  60. package/dist/controlRecordListAPP-bL9oqWzQ.js +569 -0
  61. package/dist/{crd-C8IqmHc6.cjs → crd-8tMwNlgx.cjs} +1 -1
  62. package/dist/{crd-Di7EfiY1.js → crd-DZPpD6XY.js} +2 -2
  63. package/dist/{ctrBtn-BzMHJHA9.js → ctrBtn-6Ql9ulTr.js} +3 -3
  64. package/dist/{ctrBtn-Cj-AqUKM.cjs → ctrBtn-eCu0UDtW.cjs} +1 -1
  65. package/dist/{ctrSet-DMkuRDFI.js → ctrSet-BwFVH1Mk.js} +51 -50
  66. package/dist/{ctrSet-CnDBng-I.cjs → ctrSet-pX-zVivo.cjs} +1 -1
  67. package/dist/{ctrSwitch-BRfl35Aw.cjs → ctrSwitch-D95SI-aJ.cjs} +1 -1
  68. package/dist/{ctrSwitch-FJgD05b0.js → ctrSwitch-b6hHf4QF.js} +3 -3
  69. package/dist/{dataManagement-CXbeNggN.cjs → dataManagement-DubA1TV1.cjs} +1 -1
  70. package/dist/{dataManagement-CQoqc9Rh.js → dataManagement-VucRLCK4.js} +2 -2
  71. package/dist/{dataReport-l2SE8HZx.js → dataReport-CALIw14D.js} +2 -2
  72. package/dist/{dataReport-BkIDOCdC.cjs → dataReport-CkF5J7X1.cjs} +1 -1
  73. package/dist/{dataTable-jf6qXfJJ.js → dataTable-C1rBH_p9.js} +1 -1
  74. package/dist/{dataTable-BdttKfHG.cjs → dataTable-C2q_CX5D.cjs} +1 -1
  75. package/dist/{datetime-eht4XkmD.js → datetime-Cq8scz5Q.js} +2 -2
  76. package/dist/{datetime-BH9orUUf.cjs → datetime-TBTeWqlf.cjs} +1 -1
  77. package/dist/{deepClusterSlipSurface-CF_MN7sO.cjs → deepClusterSlipSurface-CFaxRVmM.cjs} +1 -1
  78. package/dist/{deepClusterSlipSurface-D2d52L50.js → deepClusterSlipSurface-Cm50wbjv.js} +13 -13
  79. package/dist/{deepDataMatrix-DqbCqz8d.cjs → deepDataMatrix-CAYSav3X.cjs} +1 -1
  80. package/dist/{deepDataMatrix-DY1WmgGR.js → deepDataMatrix-DyStA98d.js} +13 -13
  81. package/dist/{deepDisplacement3D-D3-KOmef.cjs → deepDisplacement3D-B3Iju2KK.cjs} +1 -1
  82. package/dist/{deepDisplacement3D-CuVVhd0X.js → deepDisplacement3D-Bat-Wc3i.js} +2 -2
  83. package/dist/{deepDisplacementChart-BwBojI9h.cjs → deepDisplacementChart-C-Tr4DdI.cjs} +1 -1
  84. package/dist/{deepDisplacementChart-DzikjpBz.cjs → deepDisplacementChart-CX9ALM89.cjs} +1 -1
  85. package/dist/{deepDisplacementChart-C_3eHTmR.js → deepDisplacementChart-CYMpNu_W.js} +3 -3
  86. package/dist/{deepDisplacementChart-DFosjAQL.js → deepDisplacementChart-D5rHoC9r.js} +26 -26
  87. package/dist/{deepDisplacementView-gJdi6U9B.cjs → deepDisplacementView-DTSsODJQ.cjs} +1 -1
  88. package/dist/{deepDisplacementView-BNQaheci.js → deepDisplacementView-DnjwQmEW.js} +1 -1
  89. package/dist/{deepNodeTemperatureChart-oMknBT7e.cjs → deepNodeTemperatureChart-C9NRJ49Y.cjs} +1 -1
  90. package/dist/{deepNodeTemperatureChart-C5d-tyOA.js → deepNodeTemperatureChart-CLKg72UA.js} +2 -2
  91. package/dist/{deepTangentAngleChart-C7b7sEab.cjs → deepTangentAngleChart-C9aFSFrD.cjs} +1 -1
  92. package/dist/{deepTangentAngleChart-C35d0nBR.js → deepTangentAngleChart-DklHYHhm.js} +2 -2
  93. package/dist/{deepTemperatureField-BnWHpVPm.cjs → deepTemperatureField-CXBL4_LS.cjs} +1 -1
  94. package/dist/{deepTemperatureField-DbGy0vHS.js → deepTemperatureField-CcnVGgbf.js} +3 -3
  95. package/dist/{deepTrendChart-DdCYjiWZ.js → deepTrendChart-De7ebpk4.js} +2 -2
  96. package/dist/{deepTrendChart-D676owsq.cjs → deepTrendChart-OGW08BX-.cjs} +1 -1
  97. package/dist/{deviceOnlineStatus-DSuaeFZj.cjs → deviceOnlineStatus-DarcMtY4.cjs} +1 -1
  98. package/dist/{deviceOnlineStatus-BH-2-UBD.js → deviceOnlineStatus-_3Txb8Tg.js} +2 -2
  99. package/dist/{deviceStatus-ySE9suGE.cjs → deviceStatus-BiJw8rnz.cjs} +1 -1
  100. package/dist/{deviceStatus-CxjbfqGK.js → deviceStatus-CL6E-pQ0.js} +12 -12
  101. package/dist/{displacementDataTable-DwutxypE.cjs → displacementDataTable-DmAqr-JK.cjs} +1 -1
  102. package/dist/{displacementDataTable-CAYYafN7.js → displacementDataTable-tKtGe2xd.js} +17 -17
  103. package/dist/{displacementTrajectoryChart-zya-qu9n.cjs → displacementTrajectoryChart-DG2YdSqq.cjs} +1 -1
  104. package/dist/{displacementTrajectoryChart-ClUAsle_.js → displacementTrajectoryChart-Dh6oPB0p.js} +31 -31
  105. package/dist/{displacementTrendChart-xqe9LMp8.js → displacementTrendChart-BHORe0qO.js} +40 -40
  106. package/dist/{displacementTrendChart-DZj52qRD.cjs → displacementTrendChart-CT140vXG.cjs} +1 -1
  107. package/dist/{dxf-Cmr9xmL0.cjs → dxf-CVa4Vfm3.cjs} +1 -1
  108. package/dist/{dxf-tZgpovsn.js → dxf-CjcHSJq-.js} +2 -2
  109. package/dist/{dzc-C0VMyvsH.js → dzc-DDXNSuie.js} +6 -6
  110. package/dist/{dzc-BwCEpLKp.cjs → dzc-DK16oTVj.cjs} +1 -1
  111. package/dist/{emergencyPlan-CQtYRB5n.cjs → emergencyPlan-D0AMuD-3.cjs} +1 -1
  112. package/dist/{emergencyPlan-j1icRflR.js → emergencyPlan-Vim4E6h7.js} +3 -3
  113. package/dist/evn-CdMN8gIC.js +165 -0
  114. package/dist/evn-D2mdSoFB.cjs +1 -0
  115. package/dist/{evolutionChart-q9UtSs9r.cjs → evolutionChart-I8XVW05I.cjs} +1 -1
  116. package/dist/{evolutionChart-C1rPjVsB.js → evolutionChart-P0l6P0Bc.js} +3 -3
  117. package/dist/{fileViewer-ZO55zvWU.cjs → fileViewer-D7sAA8-W.cjs} +1 -1
  118. package/dist/{fileViewer-Bj4FYg5G.js → fileViewer-DvntGv0b.js} +2 -2
  119. package/dist/{filterBar-CIYpcc9y.js → filterBar-8gex5oR-.js} +2 -2
  120. package/dist/{filterBar-D7js_Q7g.cjs → filterBar-GSTji96g.cjs} +1 -1
  121. package/dist/{fireCombustionCurve-DEHjb7Lp.js → fireCombustionCurve-B3jAhOft.js} +3 -3
  122. package/dist/{fireCombustionCurve-CiVXjt9E.cjs → fireCombustionCurve-DrMmHf3N.cjs} +1 -1
  123. package/dist/{fireFilterBar-BzgnlY5d.js → fireFilterBar-CH6iK0Xg.js} +2 -2
  124. package/dist/{fireFilterBar-CkQU9Yaf.cjs → fireFilterBar-Dy9DcHij.cjs} +1 -1
  125. package/dist/{fireHistoryTable-BoAArvjx.js → fireHistoryTable-CHxHqPs0.js} +2 -2
  126. package/dist/{fireHistoryTable-JCY4nLos.cjs → fireHistoryTable-n6L3juWp.cjs} +1 -1
  127. package/dist/{gag-DCGVulGC.js → gag-BsO4kmp1.js} +2 -2
  128. package/dist/{gag-CrUeBa30.cjs → gag-BzjuwBvY.cjs} +1 -1
  129. package/dist/gasStationList-7JzUcISs.js +1325 -0
  130. package/dist/gasStationList-QwqTDEAG.cjs +1 -0
  131. package/dist/{geo3dViewer-BSAjBg2m.cjs → geo3dViewer-Cf-jHpvF.cjs} +1 -1
  132. package/dist/{geo3dViewer-Du775tJ7.js → geo3dViewer-doEpUC_J.js} +3 -3
  133. package/dist/{glbModel-2uTNL367.js → glbModel-BgFIj_es.js} +2 -2
  134. package/dist/{glbModel-Cm1M6hko.cjs → glbModel-C6L--3dO.cjs} +1 -1
  135. package/dist/{globalObjectSelector-CEpO2o2w.js → globalObjectSelector-CdfiXRjg.js} +1 -1
  136. package/dist/{globalObjectSelector-W_YToM6x.cjs → globalObjectSelector-P_irB0rv.cjs} +1 -1
  137. package/dist/{gnssFilterBar-BSHEfiyz.cjs → gnssFilterBar-CIwyv2yc.cjs} +1 -1
  138. package/dist/{gnssFilterBar-DZYOL5nC.js → gnssFilterBar-DPNshMIx.js} +2 -2
  139. package/dist/{gnssHistoryTable-naChmXHT.js → gnssHistoryTable-C7x4-Tpp.js} +2 -2
  140. package/dist/{gnssHistoryTable-Ct98Vz6i.cjs → gnssHistoryTable-j5FL6oYs.cjs} +1 -1
  141. package/dist/{gnssMapView-DouWOPLF.js → gnssMapView-BWcS4hqj.js} +4 -4
  142. package/dist/{gnssMapView-CCW4_-Sn.cjs → gnssMapView-_VaJWBcE.cjs} +2 -2
  143. package/dist/{gnssSectionProfile-hzXQ4KzJ.cjs → gnssSectionProfile-DGbTO7lV.cjs} +1 -1
  144. package/dist/{gnssSectionProfile-Be-THvQP.js → gnssSectionProfile-hpyiGI-6.js} +2 -2
  145. package/dist/{gnssTimeSeriesChart-CbMxKxjG.cjs → gnssTimeSeriesChart-CNT6xaNs.cjs} +1 -1
  146. package/dist/{gnssTimeSeriesChart-DoMBz4zf.js → gnssTimeSeriesChart-rL9oG1ly.js} +2 -2
  147. package/dist/{gnssXYTrajectory-Bg2B89Vw.js → gnssXYTrajectory-B1LZAepw.js} +2 -2
  148. package/dist/{gnssXYTrajectory-BNwqQna4.cjs → gnssXYTrajectory-CwAjhPRc.cjs} +1 -1
  149. package/dist/{grd-XTVPofQw.js → grd-BLab9IY0.js} +26 -26
  150. package/dist/{grd-C-x23C0E.cjs → grd-rJXqEimt.cjs} +1 -1
  151. package/dist/{grdIndass-CYawTr5K.js → grdIndass-gGrZ7gRV.js} +2 -2
  152. package/dist/{grdIndass-h7STZwba.cjs → grdIndass-niY4UOwz.cjs} +1 -1
  153. package/dist/{grg-DMRsgNoC.cjs → grg-C1L5yeyY.cjs} +1 -1
  154. package/dist/{grg-BZPHOdr_.js → grg-Dnro7bLg.js} +6 -6
  155. package/dist/{gridview-C_Lqcw3n.js → gridview-BhjWlD0J.js} +2 -2
  156. package/dist/{gridview-BAqXV-TI.cjs → gridview-DxUsv2ny.cjs} +1 -1
  157. package/dist/{groundwaterFilterBar-RcVBt_vt.cjs → groundwaterFilterBar-C-2e7S04.cjs} +1 -1
  158. package/dist/{groundwaterFilterBar-Dq216QFO.js → groundwaterFilterBar-bNhTkX1C.js} +2 -2
  159. package/dist/{groundwaterProfileChart-D31MpfdN.cjs → groundwaterProfileChart-BxKGPuOe.cjs} +2 -2
  160. package/dist/{groundwaterProfileChart-7LN3wfLM.js → groundwaterProfileChart-dhzmwfwz.js} +3 -3
  161. package/dist/{groundwaterTimeCurve-CJgvt43Z.js → groundwaterTimeCurve-BtzP6icm.js} +3 -3
  162. package/dist/{groundwaterTimeCurve-C65gdinn.cjs → groundwaterTimeCurve-CTQPlTUr.cjs} +1 -1
  163. package/dist/{groupCard-BpjcijZW.js → groupCard-D00ElZoy.js} +63 -53
  164. package/dist/{groupCard-DNOawK4_.cjs → groupCard-D4gdaVqR.cjs} +1 -1
  165. package/dist/{headerBar-Bnv8ylmr.js → headerBar-DEHj8fJr.js} +2 -2
  166. package/dist/{headerBar-CNWKR951.cjs → headerBar-MFw1W0qa.cjs} +1 -1
  167. package/dist/{history-DdkBOj8L.js → history-BRkb914v.js} +22 -22
  168. package/dist/{history-xZTq1lUB.cjs → history-D1R2RAZQ.cjs} +1 -1
  169. package/dist/index-77aUdspY.cjs +612 -0
  170. package/dist/{index-D5BukPPY.js → index-BZpYmpDy.js} +3511 -3043
  171. package/dist/{insarDeformChart-DIvxdDkN.cjs → insarDeformChart-5EVWIkpL.cjs} +1 -1
  172. package/dist/{insarDeformChart-BKgJHbFe.js → insarDeformChart-pbOnnoN-.js} +2 -2
  173. package/dist/{insarImageViewer-qI5GBqkU.js → insarImageViewer-D3bbQA6g.js} +2 -2
  174. package/dist/{insarImageViewer-Bray3mKg.cjs → insarImageViewer-DQJBN4YM.cjs} +1 -1
  175. package/dist/{kds-BibvGW1n.cjs → kds-D5seJB3L.cjs} +1 -1
  176. package/dist/{kds-C1Chb0fa.js → kds-gTJOwHbM.js} +2 -2
  177. package/dist/{kpiCard-tnfcEXOn.cjs → kpiCard-Bz-fg6sL.cjs} +1 -1
  178. package/dist/{kpiCard-KuMZjN55.js → kpiCard-Cx6VNK6L.js} +2 -2
  179. package/dist/{landslideMap-B4vzymkZ.js → landslideMap-5erIcZo7.js} +3 -3
  180. package/dist/{landslideMap-DlMSDibx.cjs → landslideMap-D7_QpwmM.cjs} +1 -1
  181. package/dist/{landslideWarning-DtOMb7U_.cjs → landslideWarning-C3FZqrxT.cjs} +1 -1
  182. package/dist/{landslideWarning-BYlaEzUr.js → landslideWarning-CzaddgWf.js} +14 -14
  183. package/dist/{layerTabs-DQm_b2aH.cjs → layerTabs-Dc1Xb11W.cjs} +1 -1
  184. package/dist/{layerTabs-BG0gTvo8.js → layerTabs-DqbOykS2.js} +2 -2
  185. package/dist/{leaflet-src-DVXepwmU.js → leaflet-src-BY2SMh9y.js} +1 -1
  186. package/dist/{leaflet-src-qPfpknMO.cjs → leaflet-src-Brb8KUL5.cjs} +1 -1
  187. package/dist/{lerc-Z6kWrF7V.js → lerc-Chm_GVte.js} +2 -2
  188. package/dist/{lerc-CITZZDb7.cjs → lerc-DGuyYCKG.cjs} +1 -1
  189. package/dist/{lin-CW8Q8u-z.cjs → lin-8x2j8aGa.cjs} +1 -1
  190. package/dist/{lin-zJYjIE2f.js → lin-tqtSA5ci.js} +5 -5
  191. package/dist/{linIndass-27mWriLs.js → linIndass-DHFymSVI.js} +10 -10
  192. package/dist/{linIndass-CQaikC7I.cjs → linIndass-Dxo_bzrZ.cjs} +1 -1
  193. package/dist/{lst-Cu-ohx2m.cjs → lst-BV6EbDPs.cjs} +1 -1
  194. package/dist/{lst-BqXNkXrQ.js → lst-BejIuO0f.js} +2 -2
  195. package/dist/{manualEntry-zj6TEXL7.cjs → manualEntry-Bt4cs6kn.cjs} +1 -1
  196. package/dist/{manualEntry-BPEmSok7.js → manualEntry-DObI0OAq.js} +2 -2
  197. package/dist/{mapBackground-BhcSOZ_h.js → mapBackground-Cuym5Dqr.js} +3 -3
  198. package/dist/{mapBackground-CRI873EC.cjs → mapBackground-oVOBK3zr.cjs} +1 -1
  199. package/dist/{mappingList-DGgPl4t4.cjs → mappingList-BEWAqLd4.cjs} +1 -1
  200. package/dist/{mappingList-CvG8EIIC.js → mappingList-Dzq0zMfs.js} +2 -2
  201. package/dist/{markdownViewer-D9JqGyeI.js → markdownViewer-Bz50jkb6.js} +2 -2
  202. package/dist/{markdownViewer-DvbUv7kn.cjs → markdownViewer-V5b1xhPh.cjs} +1 -1
  203. package/dist/{mix-control-modal-DaRWnX3S.js → mix-control-modal-DzVLdO3S.js} +1 -1
  204. package/dist/{mix-control-modal-DpAs-GHi.cjs → mix-control-modal-I6DqPm04.cjs} +1 -1
  205. package/dist/{mixGrid-CHne1dXO.cjs → mixGrid-_ur8VKLD.cjs} +1 -1
  206. package/dist/{mixGrid-FBiMFT4V.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-BUQ-RZ3L.cjs +1 -0
  211. package/dist/mixiotObjectListApi-D5vNNWgT.js +212 -0
  212. package/dist/{mjpegCamera-D32gJ5oN.cjs → mjpegCamera-CjWe8BEK.cjs} +1 -1
  213. package/dist/{mjpegCamera-D2quqZNc.js → mjpegCamera-DnAPpFJU.js} +2 -2
  214. package/dist/{monitorAlert-D4qszzHh.js → monitorAlert-B-fTYPn6.js} +15 -15
  215. package/dist/{monitorAlert-CxC81qAu.cjs → monitorAlert-qmVSQ1lc.cjs} +1 -1
  216. package/dist/{monitorData-DnWDsgTT.js → monitorData-Dopc660L.js} +7 -7
  217. package/dist/{monitorData-CVkL2ukF.cjs → monitorData-YhGSUq3H.cjs} +1 -1
  218. package/dist/{monitorSpeedChart-CKxwWE0i.cjs → monitorSpeedChart-Brj_YHsO.cjs} +1 -1
  219. package/dist/{monitorSpeedChart-CHpQsrDt.js → monitorSpeedChart-Dsvr_QPB.js} +1 -1
  220. package/dist/{mxa-UU7rQDd8.cjs → mxa-BzdI7BLB.cjs} +1 -1
  221. package/dist/{mxa-Cbnwonqc.js → mxa-D4WkyBYZ.js} +7 -7
  222. package/dist/{myValue-DzARZpdg.cjs → myValue-C0tq-asC.cjs} +1 -1
  223. package/dist/{myValue-DBxx1jtk.js → myValue-DYtBtOJ2.js} +2 -2
  224. package/dist/{myValueList-BVbeDsWn.cjs → myValueList-BJctRTNd.cjs} +1 -1
  225. package/dist/{myValueList-BbtPVr5y.js → myValueList-Ddpn1S68.js} +2 -2
  226. package/dist/objectList-Csf0hVwo.cjs +1 -0
  227. package/dist/objectList-G4wXFDwe.js +2040 -0
  228. package/dist/{objectListAPP-CYxy9UjL.js → objectListAPP-BrmUj4At.js} +49 -51
  229. package/dist/objectListAPP-UZN4iuTn.cjs +1 -0
  230. package/dist/{photo-DPOhq559.js → photo-BEPeK7U8.js} +2 -2
  231. package/dist/{photo-BRMACjXO.cjs → photo-BYH_qg5O.cjs} +1 -1
  232. package/dist/{pie-B7HO9F24.cjs → pie-B57zDxJV.cjs} +1 -1
  233. package/dist/{pie-CUqy6VGE.js → pie-CEVKe1lL.js} +2 -2
  234. package/dist/{placeholder-D-BpaT59.cjs → placeholder-BezBEQGo.cjs} +1 -1
  235. package/dist/{placeholder-DsyLsZM5.js → placeholder-Bwv3VyEg.js} +1 -1
  236. package/dist/{pressBtn-IefW25bT.js → pressBtn-1LCNz2gE.js} +33 -33
  237. package/dist/{pressBtn-DZz7PZ7o.cjs → pressBtn-CJZTyY8I.cjs} +1 -1
  238. package/dist/{processTable-Bm2HnUrZ.js → processTable-CHDazqah.js} +2 -2
  239. package/dist/{processTable-kVFr2ntb.cjs → processTable-HtDeg1by.cjs} +1 -1
  240. package/dist/{progressBar-00yP_jc2.cjs → progressBar-BP4SmPZK.cjs} +1 -1
  241. package/dist/{progressBar-C7RKpdcE.js → progressBar-C3NcWUrS.js} +2 -2
  242. package/dist/{progressCircle-BBkwMkI0.js → progressCircle-Bo9-Qva_.js} +48 -48
  243. package/dist/{progressCircle-CzqibMlZ.cjs → progressCircle-CDqK1iFt.cjs} +1 -1
  244. package/dist/{qrcode-DaHlY7Vv.js → qrcode-VmYwvClG.js} +2 -2
  245. package/dist/{qrcode-4NUAsx0h.cjs → qrcode-qD6tOm4F.cjs} +1 -1
  246. package/dist/{raceBar-WhOgwnlP.js → raceBar-DR2-luKW.js} +2 -2
  247. package/dist/{raceBar-BVsHg94d.cjs → raceBar-uAs91hyk.cjs} +1 -1
  248. package/dist/{rad-BlEn2Yx1.js → rad-1Jy1KDzt.js} +2 -2
  249. package/dist/{rad-sMtJPs8L.cjs → rad-D7-YZJNO.cjs} +1 -1
  250. package/dist/{radarMapViewer-C1_FFYFi.js → radarMapViewer-ByQXe0Mu.js} +2 -2
  251. package/dist/{radarMapViewer-CzhHFpRX.cjs → radarMapViewer-KPhNE5XX.cjs} +1 -1
  252. package/dist/{rainfallFilterBar-Bt2TbXV6.js → rainfallFilterBar-C1obotPf.js} +2 -2
  253. package/dist/{rainfallFilterBar-F7DU_nqK.cjs → rainfallFilterBar-CVQpQp82.cjs} +1 -1
  254. package/dist/{rainfallTimeCurve-C5tBf1lx.js → rainfallTimeCurve-B2rEx3T_.js} +3 -3
  255. package/dist/{rainfallTimeCurve-DaXSW7dI.cjs → rainfallTimeCurve-DU2tt-Ls.cjs} +1 -1
  256. package/dist/{rangeLin-Cr4NRYc9.cjs → rangeLin-COsJkCky.cjs} +1 -1
  257. package/dist/{rangeLin-Bral8Ev4.js → rangeLin-CdfUCFQr.js} +8 -8
  258. package/dist/{realtimeEvolutionMap-CCisvZz8.cjs → realtimeEvolutionMap-B7GT8MOq.cjs} +1 -1
  259. package/dist/{realtimeEvolutionMap-xJwuPatp.js → realtimeEvolutionMap-aR63xPW_.js} +2 -2
  260. package/dist/{regionBar-C8myvRfQ.cjs → regionBar-BYF7IaGA.cjs} +1 -1
  261. package/dist/{regionBar-D1iKcs2-.js → regionBar-DB-secNe.js} +2 -2
  262. package/dist/{request-C-rUicMg.js → request-CBsG4ipL.js} +1 -1
  263. package/dist/{request-Cxljxwu9.cjs → request-CvdHjG34.cjs} +1 -1
  264. package/dist/{retainer1-CC6TO-vq.cjs → retainer1-1CFk4InO.cjs} +1 -1
  265. package/dist/{retainer1-BvzeaTtU.js → retainer1-CMzTlM5Z.js} +3 -3
  266. package/dist/{retainer2-BeakFCgo.js → retainer2-DW4ewYX7.js} +3 -3
  267. package/dist/{retainer2-CmdgkB1y.cjs → retainer2-DliOH7it.cjs} +1 -1
  268. package/dist/{retainerRecordList-C7lDliOb.js → retainerRecordList-Bcm6leuD.js} +254 -275
  269. package/dist/retainerRecordList-DV7Tx39d.cjs +1 -0
  270. package/dist/retainerRecordListAPP-BDRwp8T3.js +1219 -0
  271. package/dist/retainerRecordListAPP-CJ-u0Tj2.cjs +1 -0
  272. package/dist/{ringTopN-BaKY-79s.js → ringTopN-Duq0pzm_.js} +2 -2
  273. package/dist/{ringTopN-Wfvu1-jE.cjs → ringTopN-rd2UwH9f.cjs} +1 -1
  274. package/dist/{riskRegionTable-ovBbwMl2.js → riskRegionTable-BE_ggcEV.js} +2 -2
  275. package/dist/{riskRegionTable-C7ee9wQX.cjs → riskRegionTable-CbPB8mlY.cjs} +1 -1
  276. package/dist/{sankey-BmWOGLSZ.cjs → sankey-BqBn6_rx.cjs} +1 -1
  277. package/dist/{sankey-K5BLueeX.js → sankey-CnKm9PZe.js} +2 -2
  278. package/dist/{scd-CMVoKjwE.js → scd-BaBLoem8.js} +456 -449
  279. package/dist/scd-BgJ5P7co.cjs +1 -0
  280. package/dist/{sideMenu-BbiMVHw1.cjs → sideMenu-BgiQL2P1.cjs} +1 -1
  281. package/dist/{sideMenu-L_dYXVgD.js → sideMenu-CUal1UQY.js} +2 -2
  282. package/dist/{slopeStability-WUcwG1vB.js → slopeStability-B9YbQLCE.js} +25 -25
  283. package/dist/{slopeStability-BWVxuRRV.cjs → slopeStability-Y2tDzJeh.cjs} +1 -1
  284. package/dist/{speedCurve-uwPuIJp0.js → speedCurve-DERBMtE1.js} +2 -2
  285. package/dist/{speedCurve-QTXe81e1.cjs → speedCurve-Kll2RRJ8.cjs} +1 -1
  286. package/dist/{stressFilterBar-DcqWlqsx.cjs → stressFilterBar-BGI4gVfE.cjs} +1 -1
  287. package/dist/{stressFilterBar-CnFNp7BR.js → stressFilterBar-CHRWFnpP.js} +2 -2
  288. package/dist/{stressTimeCurve-C-qycuZ2.cjs → stressTimeCurve-DE5KiXEt.cjs} +1 -1
  289. package/dist/{stressTimeCurve-C3r3LUBt.js → stressTimeCurve-hrlqSYS3.js} +3 -3
  290. package/dist/{swiper-wWrsPbDA.cjs → swiper-CnGllhBQ.cjs} +1 -1
  291. package/dist/{swiper-JShIvM0E.js → swiper-DNHC412s.js} +2 -2
  292. package/dist/{terminalConfigList-DVhEvcTB.js → terminalConfigList-BlHAsyCm.js} +2 -2
  293. package/dist/{terminalConfigList-nQqB1W5s.cjs → terminalConfigList-C45EANO4.cjs} +1 -1
  294. package/dist/{terminalList-BkMuHXZw.cjs → terminalList-CNI3_FGb.cjs} +1 -1
  295. package/dist/{terminalList-wAz6t4Ib.js → terminalList-UGjkhyf4.js} +2 -2
  296. package/dist/{terminalListAPP-CePxWgcL.cjs → terminalListAPP-6fPXF-yJ.cjs} +1 -1
  297. package/dist/{terminalListAPP-DuLN2OVq.js → terminalListAPP-CIJZMdxI.js} +2 -2
  298. package/dist/{textbox-DxXuhIyj.js → textbox-BD_LQ0EN.js} +2 -2
  299. package/dist/{textbox-BBi-Lg1Z.cjs → textbox-yNPnOaan.cjs} +1 -1
  300. package/dist/{timeQueryBar-BCTeL04F.cjs → timeQueryBar-3qiV0IV9.cjs} +1 -1
  301. package/dist/{timeQueryBar-DtngkLJX.js → timeQueryBar-B-uPtN25.js} +1 -1
  302. package/dist/{timeSeries-DJZnExBA.cjs → timeSeries-BTUuojvj.cjs} +1 -1
  303. package/dist/{timeSeries-CrdyAYs2.js → timeSeries-DdQI4oZU.js} +3 -3
  304. package/dist/{timeSeriesCurve-8_n0JJyf.cjs → timeSeriesCurve-Cj_FbK4x.cjs} +1 -1
  305. package/dist/{timeSeriesCurve-8_exdGlQ.js → timeSeriesCurve-TGXshTzl.js} +3 -3
  306. package/dist/{toggleBtn-DExYfMvi.js → toggleBtn-BMxqm5WG.js} +2 -2
  307. package/dist/{toggleBtn-B6dJ5cAt.cjs → toggleBtn-BXcQfnTB.cjs} +1 -1
  308. package/dist/{trajectoryConfigPanel-B2fwoe-I.cjs → trajectoryConfigPanel-CqoKO0hL.cjs} +1 -1
  309. package/dist/{trajectoryConfigPanel-Ce1SoMtw.js → trajectoryConfigPanel-uRLWdXUb.js} +1 -1
  310. package/dist/{trajectoryScatter-h32teAQ0.js → trajectoryScatter-DPE4cC8N.js} +2 -2
  311. package/dist/{trajectoryScatter-CVLEXMPO.cjs → trajectoryScatter-Dph8PSdN.cjs} +1 -1
  312. package/dist/{universalConfigPanel-CxbrIc2Z.js → universalConfigPanel-CI1CuBmr.js} +1 -1
  313. package/dist/{universalConfigPanel-cRzJmx3l.cjs → universalConfigPanel-Db-pC67o.cjs} +1 -1
  314. package/dist/{universalTable-BssAi-QH.js → universalTable-DMrgtBrw.js} +2 -2
  315. package/dist/{universalTable-V604pFVr.cjs → universalTable-dQObEQog.cjs} +1 -1
  316. package/dist/{video-BjmIbrRS.js → video-DEhLie80.js} +2 -2
  317. package/dist/{video-B8JeGpBc.cjs → video-DbsKQhVD.cjs} +1 -1
  318. package/dist/{videoMonitor-CVkFwlZq.js → videoMonitor-BS6_LYUb.js} +12 -12
  319. package/dist/{videoMonitor-B6FzkJlS.cjs → videoMonitor-DLBtivXO.cjs} +1 -1
  320. package/dist/vlu-DXk_wQf-.cjs +1 -0
  321. package/dist/vlu-DaSjPY3I.js +149 -0
  322. package/dist/{warningOverview-DDOm2wwB.js → warningOverview-CKCEs_Jj.js} +3 -3
  323. package/dist/{warningOverview-4M-WX3Ob.cjs → warningOverview-DAUlXzr0.cjs} +1 -1
  324. package/dist/{weather-BGrOQFPM.cjs → weather-BAI0IWNH.cjs} +1 -1
  325. package/dist/{weather-CETxcsJS.js → weather-XUj6pFwM.js} +2 -2
  326. package/dist/{windLin-B3YXltBn.js → windLin-Bt4q2eUT.js} +2 -2
  327. package/dist/{windLin-B6uEtUnB.cjs → windLin-C9dsCT1w.cjs} +1 -1
  328. package/package.json +1 -1
  329. package/dist/BaseComponent-CaCkjmmb.cjs +0 -1
  330. package/dist/arrayCard-BYZWRop3.cjs +0 -1
  331. package/dist/arrayCard-CVVWnZDk.js +0 -131
  332. package/dist/bar-1K14ZPKy.cjs +0 -2
  333. package/dist/clt-BCHpLoab.cjs +0 -1
  334. package/dist/clt-Ba9Ov5WY.js +0 -296
  335. package/dist/cmc-CdDCboSm.cjs +0 -1
  336. package/dist/cmc-CsVB4uz3.js +0 -277
  337. package/dist/controlRecordListAPP-BktJCkFK.cjs +0 -1
  338. package/dist/controlRecordListAPP-CSt8rFZX.js +0 -502
  339. package/dist/evn-B2F6pbqY.js +0 -158
  340. package/dist/evn-B6WNZ0pv.cjs +0 -1
  341. package/dist/gasStationList-CN2y3zri.cjs +0 -1
  342. package/dist/gasStationList-CifrfkH0.js +0 -1239
  343. package/dist/index-BzWbqJIl.cjs +0 -612
  344. package/dist/mixiotObjectListApi-BwIQvSS-.js +0 -67
  345. package/dist/mixiotObjectListApi-ClirV2tM.cjs +0 -1
  346. package/dist/objectList-Cpu0yqsK.js +0 -1740
  347. package/dist/objectList-D5E8PU66.cjs +0 -1
  348. package/dist/objectListAPP-Cr4uoJuN.cjs +0 -1
  349. package/dist/retainerRecordList-C9xVt3Yk.cjs +0 -1
  350. package/dist/retainerRecordListAPP-BRmG7UnF.cjs +0 -1
  351. package/dist/retainerRecordListAPP-Cjip5JHS.js +0 -1070
  352. package/dist/scd-CCNgUI2Q.cjs +0 -1
  353. package/dist/vlu-CHHDngO6.js +0 -142
  354. package/dist/vlu-Dv1vt9r0.cjs +0 -1
@@ -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-NnwLq7Cf.js";
15
- import { _ as R } from "./index-D5BukPPY.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-CaCkjmmb.cjs"),T=require("./index-BzWbqJIl.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-CaCkjmmb.cjs"),B=require("./index-BzWbqJIl.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-NnwLq7Cf.js";
49
- import { a as J, _ as nt } from "./index-D5BukPPY.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-CaCkjmmb.cjs"),R=require("./index-BzWbqJIl.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-NnwLq7Cf.js";
45
- import { a as Z, _ as De } from "./index-D5BukPPY.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";
@@ -0,0 +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-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;