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
@@ -10,7 +10,7 @@ var Ct = (E, C, j) => C in E ? yl(E, C, { enumerable: !0, configurable: !0, writ
10
10
  Sl.call(C, j) && Ct(E, j, C[j]);
11
11
  return E;
12
12
  }, Te = (E, C) => hl(E, kl(C));
13
- var O = (E, C, j) => new Promise((Ve, L) => {
13
+ var P = (E, C, j) => new Promise((Ve, L) => {
14
14
  var Ee = (N) => {
15
15
  try {
16
16
  fe(j.next(N));
@@ -53,14 +53,14 @@ import "element-plus/es/components/dropdown-item/style/css";
53
53
  import "element-plus/es/components/button/style/css";
54
54
  import "element-plus/es/components/icon/style/css";
55
55
  import { defineComponent as Wl, computed as F, reactive as ke, ref as h, watch as We, onMounted as Gl, onUnmounted as ql, openBlock as r, createElementBlock as m, normalizeStyle as ce, unref as U, normalizeClass as Ge, createElementVNode as V, toDisplayString as f, createVNode as i, withCtx as s, withModifiers as ae, createBlock as A, createTextVNode as v, createCommentVNode as D, withDirectives as q, withKeys as qe, Fragment as B, renderList as R, renderSlot as Ql } from "vue";
56
- import { F as At, d as Dt, c as Xl, a as pe, _ as Zl } from "./index-D5BukPPY.js";
56
+ import { F as At, d as Dt, c as Xl, a as pe, _ as Zl } from "./index-BZpYmpDy.js";
57
57
  import { u as ea } from "./useMixiotPanelSurface-DRl3cZvc.js";
58
- import { B as ta } from "./BaseComponent-NnwLq7Cf.js";
58
+ import { B as ta } from "./BaseComponent-CQaDWNO0.js";
59
59
  import { g as la } from "./titleStyle-BT5GlpAb.js";
60
60
  import { ElMessage as z, ElMessageBox as Tt } from "element-plus";
61
61
  import { Plus as aa, Search as ia, MoreFilled as oa, ArrowDown as na } from "@element-plus/icons-vue";
62
62
  import { a as sa } from "./appendCommonDesignerWhereAnd-DwefWNOa.js";
63
- import { O as Et, d as ra, a as jt, o as me } from "./mixiotObjectListApi-BwIQvSS-.js";
63
+ import { O as Et, d as ra, a as jt, o as me } from "./mixiotObjectListApi-D5vNNWgT.js";
64
64
  import { A as da, D as ua } from "./ele-lst-icon-CKpeRKmk.js";
65
65
  const ca = {
66
66
  key: 0,
@@ -312,26 +312,24 @@ const ca = {
312
312
  };
313
313
  }
314
314
  init() {
315
- return O(this, null, function* () {
316
- var e;
317
- if (this.Style.value = this.extractStyles(), this.applyTheme(), !((e = this.props.conf.data) != null && e.length) || this.props.conf.data.length === 1 && this.props.conf.data[0].alias_visible === void 0)
318
- this.props.conf.data = JSON.parse(JSON.stringify(Qe));
319
- else {
320
- const a = this.props.conf.data[0], l = {
321
- showAddBtn: !0,
322
- showViewBtn: !0,
323
- showEditBtn: !0,
324
- showArchiveBtn: !0,
325
- showDeleteBtn: !0
326
- };
327
- for (const [p, y] of Object.entries(l))
328
- a[p] === void 0 && (a[p] = y);
329
- const d = jt();
330
- for (const [p, y] of Object.entries(d))
331
- a[p] === void 0 && (a[p] = y);
332
- a.textValueTransform === void 0 && (a.textValueTransform = JSON.parse(JSON.stringify(Qe[0].textValueTransform))), (a.appCardDefaultLines === void 0 || a.appCardDefaultLines === null || a.appCardDefaultLines === "") && (a.appCardDefaultLines = 2);
333
- }
334
- });
315
+ var e;
316
+ if (this.Style.value = this.extractStyles(), this.applyTheme(), !((e = this.props.conf.data) != null && e.length) || this.props.conf.data.length === 1 && this.props.conf.data[0].alias_visible === void 0)
317
+ this.props.conf.data = JSON.parse(JSON.stringify(Qe));
318
+ else {
319
+ const a = this.props.conf.data[0], l = {
320
+ showAddBtn: !0,
321
+ showViewBtn: !0,
322
+ showEditBtn: !0,
323
+ showArchiveBtn: !0,
324
+ showDeleteBtn: !0
325
+ };
326
+ for (const [p, y] of Object.entries(l))
327
+ a[p] === void 0 && (a[p] = y);
328
+ const d = jt();
329
+ for (const [p, y] of Object.entries(d))
330
+ a[p] === void 0 && (a[p] = y);
331
+ a.textValueTransform === void 0 && (a.textValueTransform = JSON.parse(JSON.stringify(Qe[0].textValueTransform))), (a.appCardDefaultLines === void 0 || a.appCardDefaultLines === null || a.appCardDefaultLines === "") && (a.appCardDefaultLines = 2);
332
+ }
335
333
  }
336
334
  }
337
335
  const Ve = new j(C, "objectListAPP");
@@ -383,7 +381,7 @@ const ca = {
383
381
  return t.length && (e.where_and = JSON.stringify(t)), e;
384
382
  }
385
383
  function H() {
386
- return O(this, null, function* () {
384
+ return P(this, null, function* () {
387
385
  var t, e;
388
386
  Fe.value = !0;
389
387
  try {
@@ -474,7 +472,7 @@ const ca = {
474
472
  return (t = M.value) == null ? void 0 : t.textValueTransform;
475
473
  });
476
474
  let ne;
477
- const tt = () => O(null, null, function* () {
475
+ const tt = () => P(null, null, function* () {
478
476
  const t = M.value;
479
477
  if (!t.addRealtimeData || !Array.isArray(t.realtimeParams)) return;
480
478
  const e = [];
@@ -623,9 +621,9 @@ const ca = {
623
621
  () => Et.filter((t) => M.value[t.dataKey] === !0).map((t) => Te(ue({}, t), {
624
622
  tabKey: ra(t.dataKey)
625
623
  }))
626
- ), P = h("baseinfo"), Qt = F(() => {
624
+ ), O = h("baseinfo"), Qt = F(() => {
627
625
  var e;
628
- const t = X.value.find((a) => a.tabKey === P.value);
626
+ const t = X.value.find((a) => a.tabKey === O.value);
629
627
  return (e = t == null ? void 0 : t.label) != null ? e : "";
630
628
  }), Xt = F(() => {
631
629
  try {
@@ -655,7 +653,7 @@ const ca = {
655
653
  const ze = h(!1), se = h([]), Me = h(!1), re = h([]), Ce = h([]), Ke = h(!1), ee = h([]), Ne = h(!1), de = h([]), Ae = h([
656
654
  Dt().subtract(1, "day").format("YYYY-MM-DD HH:mm:ss"),
657
655
  Dt().format("YYYY-MM-DD HH:mm:ss")
658
- ]), Zt = (t) => O(null, null, function* () {
656
+ ]), Zt = (t) => P(null, null, function* () {
659
657
  var e;
660
658
  ze.value = !0;
661
659
  try {
@@ -670,7 +668,7 @@ const ca = {
670
668
  } finally {
671
669
  ze.value = !1;
672
670
  }
673
- }), el = (t) => O(null, null, function* () {
671
+ }), el = (t) => P(null, null, function* () {
674
672
  var e;
675
673
  Me.value = !0;
676
674
  try {
@@ -685,7 +683,7 @@ const ca = {
685
683
  } finally {
686
684
  Me.value = !1;
687
685
  }
688
- }), tl = (t, e) => O(null, null, function* () {
686
+ }), tl = (t, e) => P(null, null, function* () {
689
687
  var a;
690
688
  if (!e.length) {
691
689
  ee.value = [];
@@ -704,7 +702,7 @@ const ca = {
704
702
  } finally {
705
703
  Ke.value = !1;
706
704
  }
707
- }), Ie = () => O(null, null, function* () {
705
+ }), Ie = () => P(null, null, function* () {
708
706
  var e, a, l, d;
709
707
  const t = (e = b.value) == null ? void 0 : e.uid;
710
708
  if (t) {
@@ -728,7 +726,7 @@ const ca = {
728
726
  Ne.value = !1;
729
727
  }
730
728
  }
731
- }), ll = (t) => O(null, null, function* () {
729
+ }), ll = (t) => P(null, null, function* () {
732
730
  var e, a;
733
731
  if (t) {
734
732
  xe.value = !0, Z.value = null, pt.value = t;
@@ -753,8 +751,8 @@ const ca = {
753
751
  }
754
752
  }), al = (t) => `「${t}」的完整能力在 mixui 对象管理模块中提供;大屏组件内仅保留配置占位。`, mt = () => {
755
753
  const t = X.value;
756
- P.value = t.length ? t[0].tabKey : "baseinfo";
757
- }, $e = (t) => O(null, null, function* () {
754
+ O.value = t.length ? t[0].tabKey : "baseinfo";
755
+ }, $e = (t) => P(null, null, function* () {
758
756
  var e, a;
759
757
  if (Q.value = "", b.value = null, mt(), !X.value.length) {
760
758
  oe.value = !0;
@@ -772,7 +770,7 @@ const ca = {
772
770
  }), il = () => {
773
771
  b.value = null, Q.value = "", Se.value = !1, Z.value = null, Re.value = "", se.value = [], re.value = [], Ce.value = [], ee.value = [], de.value = [];
774
772
  };
775
- We(P, (t) => {
773
+ We(O, (t) => {
776
774
  var a, l, d;
777
775
  const e = (a = b.value) == null ? void 0 : a.uid;
778
776
  if (e)
@@ -785,7 +783,7 @@ const ca = {
785
783
  } else t === "history" && !de.value.length && Ie();
786
784
  }), We(X, () => {
787
785
  if (!oe.value) return;
788
- new Set(X.value.map((e) => e.tabKey)).has(P.value) || mt();
786
+ new Set(X.value.map((e) => e.tabKey)).has(O.value) || mt();
789
787
  });
790
788
  const ft = () => ({
791
789
  uid: "",
@@ -885,7 +883,7 @@ const ca = {
885
883
  addition: "[]"
886
884
  };
887
885
  }
888
- const dl = (t) => O(null, null, function* () {
886
+ const dl = (t) => P(null, null, function* () {
889
887
  var e;
890
888
  he.value = !0, He.value = !0;
891
889
  try {
@@ -896,7 +894,7 @@ const ca = {
896
894
  } finally {
897
895
  He.value = !1;
898
896
  }
899
- }), ul = () => O(null, null, function* () {
897
+ }), ul = () => P(null, null, function* () {
900
898
  if (!_.name.trim()) {
901
899
  z.warning("请填写对象名称");
902
900
  return;
@@ -914,7 +912,7 @@ const ca = {
914
912
  Ye.value = !1;
915
913
  }
916
914
  }), cl = (t) => {
917
- Tt.confirm("确认删除该对象吗?", "警告", { type: "warning" }).then(() => O(null, null, function* () {
915
+ Tt.confirm("确认删除该对象吗?", "警告", { type: "warning" }).then(() => P(null, null, function* () {
918
916
  try {
919
917
  yield me("delete_object", { uid: t.uid, id: t.id }, !0), z.success("删除成功"), yield H();
920
918
  } catch (e) {
@@ -950,7 +948,7 @@ const ca = {
950
948
  function ml(t) {
951
949
  t === "add" ? pl() : t === "reset" && Ot();
952
950
  }
953
- const fl = () => O(null, null, function* () {
951
+ const fl = () => P(null, null, function* () {
954
952
  var t;
955
953
  if (!((t = k.name) != null && t.trim())) {
956
954
  z.warning("请填写对象名称");
@@ -1761,12 +1759,12 @@ const ca = {
1761
1759
  V("aside", Oa, [
1762
1760
  (r(!0), m(B, null, R(X.value, (o) => (r(), m("div", {
1763
1761
  key: o.tabKey,
1764
- class: Ge(["view-detail-tab-item", { active: P.value === o.tabKey }]),
1765
- onClick: (J) => P.value = o.tabKey
1762
+ class: Ge(["view-detail-tab-item", { active: O.value === o.tabKey }]),
1763
+ onClick: (J) => O.value = o.tabKey
1766
1764
  }, f(o.label), 11, Pa))), 128))
1767
1765
  ]),
1768
1766
  V("div", Ua, [
1769
- P.value === "baseinfo" ? (r(), m(B, { key: 0 }, [
1767
+ O.value === "baseinfo" ? (r(), m(B, { key: 0 }, [
1770
1768
  Q.value ? (r(), m("div", Ra, f(Q.value), 1)) : D("", !0),
1771
1769
  V("div", za, [
1772
1770
  b.value ? (r(), A(kt, {
@@ -2050,7 +2048,7 @@ const ca = {
2050
2048
  _: 1
2051
2049
  })
2052
2050
  ])) : D("", !0)
2053
- ], 64)) : P.value === "monitor" ? q((r(), m("div", Ia, [
2051
+ ], 64)) : O.value === "monitor" ? q((r(), m("div", Ia, [
2054
2052
  Z.value ? (r(), A(Xl, {
2055
2053
  key: Re.value,
2056
2054
  script: Z.value,
@@ -2063,7 +2061,7 @@ const ca = {
2063
2061
  }))
2064
2062
  ])), [
2065
2063
  [G, xe.value]
2066
- ]) : P.value === "retainer-record" ? q((r(), m("div", $a, [
2064
+ ]) : O.value === "retainer-record" ? q((r(), m("div", $a, [
2067
2065
  se.value.length ? (r(), A(Vt, {
2068
2066
  key: 0,
2069
2067
  data: se.value,
@@ -2106,7 +2104,7 @@ const ca = {
2106
2104
  }))
2107
2105
  ])), [
2108
2106
  [G, ze.value]
2109
- ]) : P.value === "collect" ? q((r(), m("div", Ha, [
2107
+ ]) : O.value === "collect" ? q((r(), m("div", Ha, [
2110
2108
  re.value.length ? (r(!0), m(B, { key: 0 }, R(re.value, (o, J) => (r(), m("div", {
2111
2109
  key: J,
2112
2110
  class: "tab-card-item"
@@ -2122,7 +2120,7 @@ const ca = {
2122
2120
  }))
2123
2121
  ])), [
2124
2122
  [G, Me.value]
2125
- ]) : P.value === "child" ? (r(), m("div", qa, [
2123
+ ]) : O.value === "child" ? (r(), m("div", qa, [
2126
2124
  Ce.value.length ? (r(!0), m(B, { key: 0 }, R(Ce.value, (o, J) => (r(), m("div", {
2127
2125
  key: J,
2128
2126
  class: "tab-card-item"
@@ -2136,7 +2134,7 @@ const ca = {
2136
2134
  key: 1,
2137
2135
  description: "暂无子对象"
2138
2136
  }))
2139
- ])) : P.value === "terminal" ? q((r(), m("div", ti, [
2137
+ ])) : O.value === "terminal" ? q((r(), m("div", ti, [
2140
2138
  ee.value.length ? (r(!0), m(B, { key: 0 }, R(ee.value, (o, J) => (r(), m("div", {
2141
2139
  key: J,
2142
2140
  class: "tab-card-item"
@@ -2161,7 +2159,7 @@ const ca = {
2161
2159
  }))
2162
2160
  ])), [
2163
2161
  [G, Ke.value]
2164
- ]) : P.value === "history" ? q((r(), m("div", ni, [
2162
+ ]) : O.value === "history" ? q((r(), m("div", ni, [
2165
2163
  V("div", si, [
2166
2164
  i(I, {
2167
2165
  modelValue: Ae.value,
@@ -2241,7 +2239,7 @@ const ca = {
2241
2239
  ], 6);
2242
2240
  };
2243
2241
  }
2244
- })), to = /* @__PURE__ */ Zl(_i, [["__scopeId", "data-v-3398b9ea"]]);
2242
+ })), to = /* @__PURE__ */ Zl(_i, [["__scopeId", "data-v-543c762c"]]);
2245
2243
  export {
2246
2244
  to as default
2247
2245
  };
@@ -0,0 +1 @@
1
+ "use strict";var Qt=Object.defineProperty,Xt=Object.defineProperties;var Zt=Object.getOwnPropertyDescriptors;var rt=Object.getOwnPropertySymbols;var el=Object.prototype.hasOwnProperty,tl=Object.prototype.propertyIsEnumerable;var st=(k,_,N)=>_ in k?Qt(k,_,{enumerable:!0,configurable:!0,writable:!0,value:N}):k[_]=N,X=(k,_)=>{for(var N in _||(_={}))el.call(_,N)&&st(k,N,_[N]);if(rt)for(var N of rt(_))tl.call(_,N)&&st(k,N,_[N]);return k},me=(k,_)=>Xt(k,Zt(_));var B=(k,_,N)=>new Promise((ne,x)=>{var ve=A=>{try{Z(N.next(A))}catch(h){x(h)}},ge=A=>{try{Z(N.throw(A))}catch(h){x(h)}},Z=A=>A.done?ne(A.value):Promise.resolve(A.value).then(ve,ge);Z((N=N.apply(k,_)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/empty/style/css");require("element-plus/es/components/collapse/style/css");require("element-plus/es/components/collapse-item/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/alert/style/css");require("element-plus/es/components/divider/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/date-picker/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"),S=require("./index-77aUdspY.cjs"),ll=require("./useMixiotPanelSurface-CAZgexY5.cjs"),al=require("./BaseComponent-BmhMoM4H.cjs"),ol=require("./titleStyle-NSnz6cUg.cjs"),w=require("element-plus"),fe=require("@element-plus/icons-vue"),il=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),T=require("./mixiotObjectListApi-BUQ-RZ3L.cjs"),dt=require("./ele-lst-icon-CrxnHZ-A.cjs"),nl={key:0,class:"app-title-row"},rl={class:"mix-app-body"},sl={class:"app-toolbar-row"},dl={class:"app-toolbar-search-group"},cl={key:1,class:"app-created-search-row"},ul={class:"app-card-scroll"},pl=["onClick","onKeydown"],ml={class:"app-card-top"},fl={class:"app-card-name"},vl={class:"app-card-right"},gl={key:0,class:"app-transform-block"},bl={key:0,class:"app-transform-tags"},yl={key:1,class:"app-transform-expanded"},_l={class:"app-card-fields"},Vl={class:"app-field-label"},hl={key:0,class:"app-card-expand-footer"},kl=["onClick"],Nl={class:"pagination"},xl={class:"pagination-row pagination-row--meta"},wl={class:"pagination-row pagination-row--pager"},Cl={class:"dialog-footer"},Bl={class:"dialog-footer"},Sl={class:"view-detail-body"},El={key:1,class:"view-detail-layout"},Dl={class:"view-detail-tabs"},Tl=["onClick"],Al={class:"view-detail-pane"},Ll={key:0,class:"view-detail-error"},Fl={class:"mix-detail-block"},jl=["src"],Pl={key:1,class:"mix-detail-title-sm"},Ol={key:2,class:"mix-detail-block"},Ul={key:1,class:"detail-tab-body detail-tab-body--monitor"},Rl={key:2,class:"detail-tab-body"},Ml={key:3,class:"detail-tab-body"},zl={class:"tab-card-title"},ql={class:"tab-card-meta"},Il={key:0},Kl={key:1},$l={key:4,class:"detail-tab-body"},Hl={class:"tab-card-title"},Yl={class:"tab-card-meta"},Jl={key:0},Wl={key:1},Gl={key:5,class:"detail-tab-body"},Ql={class:"tab-card-title"},Xl={class:"tab-card-meta"},Zl={key:0},ea={key:1},ta={key:6,class:"detail-tab-body"},la={class:"tab-toolbar"},aa={key:7,class:"view-detail-stub"},oa={class:"stub-uid"},ia={DEFAULT_ICON:dt.DEFAULT_ICON,ACTIVE_ICON:dt.ACTIVE_ICON,NAME_CN:"对象列表",NAME_EN:"ObjectListAPP",ORDER:1,PLATFORM:["mobile"]},na={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:180,visible:!0,useFv:!1},{key:"name",label:"对象名称",width:180,visible:!0,useFv:!1},{key:"alias",label:"对象别名",width:180,visible:!0,useFv:!1},{key:"model",label:"型号",width:160,visible:!0,useFv:!1},{key:"create_by_tpl",label:"创建方式",width:120,visible:!0,useFv:!1},{key:"customer_name",label:"客户名称",width:180,visible:!0,useFv:!1},{key:"terminal_list",label:"关联终端",width:180,visible:!0,useFv:!1},{key:"mapping_name",label:"映射表名称",width:180,visible:!0,useFv:!1},{key:"tag",label:"标签",width:120,visible:!0,useFv:!1},{key:"province",label:"省份",width:100,visible:!0,useFv:!1},{key:"city",label:"市/区",width:100,visible:!0,useFv:!1},{key:"description",label:"描述",width:150,visible:!0,useFv:!1},{key:"created",label:"创建时间",width:180,visible:!0,useFv:!1},{key:"last_modified",label:"更新时间",width:180,visible:!0,useFv:!1}]},Le=[me(X({name:"对象",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0},T.detailTabRowDefaults()),{addRealtimeData:!1,realtimeParams:[{name:"",fv:""}],alias:"对象别名",alias_visible:!0,model:"型号",model_visible:!0,create_by_tpl:"创建方式",create_by_tpl_visible:!0,customer_name:"客户名称",customer_name_visible:!0,terminal_list:"关联终端",terminal_list_visible:!0,mapping_name:"映射表名称",mapping_name_visible:!0,tag:"标签",tag_visible:!0,province:"省份",province_visible:!0,city:"市/区",city_visible:!0,description:"描述",description_visible:!0,created:"创建时间",created_visible:!0,last_modified:"更新时间",last_modified_visible:!0,textValueTransform:{mode:"numeric",numericRules:[{matchType:"value",matchValue:"",displayText:"",color:"#333333"}],rangeRules:[{op:"gt",boundary:"",displayText:"",color:"#333333"}]},appCardDefaultLines:2})],ra=[{key:"appCardDefaultLines",label:"APP卡片默认展示行数",type:"number"},{key:"showAddBtn",label:"添加对象按钮",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组",collapseIndentedChildren:!0,collapseExpandLabel:"展开查看详情",collapseCollapseLabel:"收起查看详情"},...T.OBJECT_DETAIL_TAB_DEFS.map(k=>({key:k.dataKey,label:k.label,type:"checkbox",group:"操作组",dependent:"showViewBtn",indent:!0})),{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showArchiveBtn",label:"资料备档",type:"checkbox",group:"操作组"},{key:"showDeleteBtn",label:"删除",type:"checkbox",group:"操作组"},{key:"name",label:"参数名称"},{key:"addRealtimeData",label:"添加实时数据",type:"checkbox"},{key:"realtimeParams",label:"实时数据参数",type:"array",fields:["name","fv"],dependent:"addRealtimeData"},{key:"alias",label:"对象别名",checkable:!0,checkboxKey:"alias_visible"},{key:"model",label:"型号",checkable:!0,checkboxKey:"model_visible"},{key:"create_by_tpl",label:"创建方式",checkable:!0,checkboxKey:"create_by_tpl_visible"},{key:"customer_name",label:"客户名称",checkable:!0,checkboxKey:"customer_name_visible"},{key:"terminal_list",label:"关联终端",checkable:!0,checkboxKey:"terminal_list_visible"},{key:"mapping_name",label:"映射表名称",checkable:!0,checkboxKey:"mapping_name_visible"},{key:"tag",label:"标签",checkable:!0,checkboxKey:"tag_visible"},{key:"province",label:"省份",checkable:!0,checkboxKey:"province_visible"},{key:"city",label:"市/区",checkable:!0,checkboxKey:"city_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"}],sa=[],da={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"name",label:"setting.gridFields.objectName"},{value:"uid",label:"setting.gridFields.objectId"},{value:"alias",label:"setting.gridFields.objectAlias"},{value:"customer_id",label:"setting.gridFields.customerId"},{value:"customer_alias",label:"setting.gridFields.customerAlias"},{value:"customer_name",label:"setting.gridFields.customerName"},{value:"mapping_id",label:"setting.gridFields.mappingId"},{value:"mapping_name",label:"setting.gridFields.mappingName"},{value:"terminal_list",label:"setting.gridFields.linkedTerminals"},{value:"tag",label:"setting.gridFields.tag"},{value:"province",label:"setting.gridFields.province"},{value:"city",label:"setting.gridFields.city"},{value:"model",label:"setting.gridFields.model"},{value:"serial_no",label:"setting.gridFields.serialNumber"},{value:"created",label:"setting.gridFields.created"}]},ca=[{prop:"uid",label:"对象编号",width:180,visible:!0},{prop:"name",label:"对象名称",width:180,visible:!0},{prop:"alias",label:"对象别名",width:180,visible:!0},{prop:"model",label:"型号",width:160,visible:!0},{prop:"create_by_tpl",label:"创建方式",width:120,visible:!0},{prop:"customer_name",label:"客户名称",width:180,visible:!0},{prop:"terminal_list",label:"关联终端",width:180,visible:!0},{prop:"mapping_name",label:"映射表名称",width:180,visible:!0},{prop:"tag",label:"标签",width:120,visible:!0},{prop:"province",label:"省份",width:100,visible:!0},{prop:"city",label:"市/区",width:100,visible:!0},{prop:"description",label:"描述",width:150,visible:!0},{prop:"created",label:"创建时间",width:180,visible:!0},{prop:"last_modified",label:"更新时间",width:180,visible:!0}],ua={DEFAULT:ia,OPTIONS:na,DATA:Le,PARAMS:ra,SOURCE:sa,COMMON:da,COLUMNS_CONFIG:ca},pa=e.defineComponent(me(X({},ua),{__name:"objectListAPP",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{default:"edit"},theme:{},objectList:{default:()=>[]},code:{default:""}},setup(k){const _=k;class N extends al.BaseComponent{getDataBool(t,o){var r,c;const a=(c=(r=this.props.conf)==null?void 0:r.data)==null?void 0:c[0];return a&&Object.prototype.hasOwnProperty.call(a,t)&&a[t]!==void 0?!!a[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),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.length===1&&this.props.conf.data[0].alias_visible===void 0)this.props.conf.data=JSON.parse(JSON.stringify(Le));else{const o=this.props.conf.data[0],a={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[c,f]of Object.entries(a))o[c]===void 0&&(o[c]=f);const r=T.detailTabRowDefaults();for(const[c,f]of Object.entries(r))o[c]===void 0&&(o[c]=f);o.textValueTransform===void 0&&(o.textValueTransform=JSON.parse(JSON.stringify(Le[0].textValueTransform))),(o.appCardDefaultLines===void 0||o.appCardDefaultLines===null||o.appCardDefaultLines==="")&&(o.appCardDefaultLines=2)}}}const ne=new N(_,"objectListAPP");ne.setupLifecycle();const x=ne.getStyle(),{mixiotPanelClass:ve,mixiotPanelRootStyle:ge}=ll.useMixiotPanelSurface(x),Z=e.computed(()=>ol.generateTitleStyle(_.conf.options)),A=e.computed(()=>{var a,r,c,f;const l=((r=(a=_.conf)==null?void 0:a.options)==null?void 0:r.columns)||[],t=((f=(c=_.conf)==null?void 0:c.data)==null?void 0:f[0])||{},o=Array.isArray(l)?l.map(s=>{const y=t[s.key],d=t[`${s.key}_visible`];return{prop:s.key,label:y!==void 0&&y!==""?y:s.label,width:s.width,visible:d!==void 0?d:s.visible}}):[];return t.addRealtimeData&&Array.isArray(t.realtimeParams)&&t.realtimeParams.forEach(s=>{s.name&&s.fv&&o.push({prop:s.fv,label:s.name,width:150,visible:!0})}),o}),h=e.reactive({current:1,pageSize:20,total:0}),ee=e.ref(""),H=e.ref("uid"),te=e.ref(null),le=e.ref([]),be=e.ref(!1);function ct(){H.value==="created"?ee.value="":te.value=null}function ut(){const l=[];if(H.value==="created"){const o=te.value;if(o&&o.length===2&&o[0]&&o[1]){const[a,r]=o;l.push(["created",">=",a<=r?a:r]),l.push(["created","<=",a<=r?r:a])}}else{const o=ee.value.trim();o&&l.push([H.value,"like",`%${o}%`])}il.appendCommonDesignerWhereAnd(_.conf.common,l);const t={page_index:h.current,page_size:h.pageSize};return l.length&&(t.where_and=JSON.stringify(l)),t}function j(){return B(this,null,function*(){var l,t;be.value=!0;try{const o=yield T.objectListApiPost("get_object_list",ut(),!0),a=(l=o==null?void 0:o.result)!=null?l:o;let r=Array.isArray(a==null?void 0:a.data)?[...a.data]:Array.isArray(a)?[...a]:[];if((t=_.objectList)!=null&&t.length){const f=new Set(_.objectList.map(String));r=r.filter(s=>f.has(String(s.uid)))}le.value=r;let c=a==null?void 0:a.total_records;typeof c!="number"&&(c=Array.isArray(a)?a.length:r.length),h.total=c,o&&o.code!==void 0&&o.code!==200&&console.warn("[objectList] 列表接口非成功",o.msg||o.info,o)}catch(o){if(console.error(o),le.value=[],h.total=0,mockManager.isServiceUnavailableError(o))console.warn("[objectList] 对象列表服务暂不可用(如 object 未在 Consul 注册)",o);else{const a=o,r=a&&typeof a=="object"&&"isAxiosError"in a,c=a&&typeof a=="object"&&"code"in a&&("msg"in a||"info"in a);!r&&!c&&console.error("[objectList] 加载对象列表失败",o)}}finally{be.value=!1,Oe(),bt()}})}const pt=e.computed(()=>le.value);function Fe(l){return l===!0||l===1||l==="1"}const ae=e.ref(!1),v=e.reactive({uid:"",name:"",alias:"",model:"",created:new Date().toLocaleString(),last_modified:new Date().toLocaleString(),description:"",customer_id:"",customer_name:"",customer_alias:"",terminal_list:"",mapping_id:"",mapping_name:"",tag:"",province:"",city:"",create_by_tpl:!1,tpl_uid:"",tpl_name:"",tpl_alias:""}),ye=()=>{h.current=1,j()},mt=()=>{ee.value="",te.value=null,h.current=1,j()};function ft(){h.current=1,j()}function vt(){j()}e.watch(()=>{var l;return(l=_.objectList)==null?void 0:l.join(",")},()=>{h.current=1,j()});const Y=e.ref(!1),re=e.ref(!1),M=e.ref(""),u=e.ref(null),E=e.computed(()=>{var l,t;return((t=(l=_.conf)==null?void 0:l.data)==null?void 0:t[0])||{}}),gt=e.computed(()=>{const l=new Set,t=E.value;if(t.addRealtimeData&&Array.isArray(t.realtimeParams))for(const o of t.realtimeParams)o!=null&&o.fv&&l.add(String(o.fv));return l}),je=e.computed(()=>{const l=E.value;return!l.addRealtimeData||!Array.isArray(l.realtimeParams)?[]:l.realtimeParams.filter(t=>(t==null?void 0:t.name)&&(t==null?void 0:t.fv)).map(t=>({name:String(t.name),fv:String(t.fv)}))}),Pe=e.computed(()=>{var l;return(l=E.value)==null?void 0:l.textValueTransform});let J;const Oe=()=>B(null,null,function*(){const l=E.value;if(!l.addRealtimeData||!Array.isArray(l.realtimeParams))return;const t=[];for(const a of l.realtimeParams)a!=null&&a.fv&&t.push(String(a.fv));if(!t.length)return;const o=le.value.map(a=>String(a.uid)).filter(Boolean);if(o.length)try{const a=yield S.api.post("get_last_fv_by_objids",{object_ids:o},!1),r=(a==null?void 0:a.result)||{};for(const c of le.value){const f=String(c.uid),s=r[f];if(s)for(const y of t){const d=s[y];d!==void 0&&(c[y]=d)}}}catch(a){}}),bt=()=>{E.value.addRealtimeData&&(J&&clearInterval(J),J=setInterval(()=>{Oe()},5e3))},yt=()=>{J&&(clearInterval(J),J=void 0)};function _t(l){if(l==null||l==="")return!0;const t=String(l).trim();return!t||t==="未获取"}function Ue(l,t){if(!t)return null;if(t.mode==="numeric"){for(const o of t.numericRules||[])if(o.matchType==="unavailable"){if(_t(l))return{text:o.displayText,color:o.color}}else if(String(l)===String(o.matchValue))return{text:o.displayText,color:o.color}}else{const o=typeof l=="number"?l:parseFloat(String(l).replace(/,/g,""));if(Number.isNaN(o))return null;for(const a of t.rangeRules||[]){const r=parseFloat(String(a.boundary));if(!Number.isNaN(r)){if(a.op==="gt"&&o>r)return{text:a.displayText,color:a.color};if(a.op==="lt"&&o<r)return{text:a.displayText,color:a.color}}}}return null}function Re(l){return gt.value.has(l)}function Me(l,t){const o=l[t.prop];if(Re(t.prop)){const a=Ue(o,Pe.value);if(a)return a.text}return o==null?"":String(o)}function ze(l,t){const o=l[t.prop];if(!Re(t.prop))return{};const a=Ue(o,Pe.value);return a!=null&&a.color?{color:a.color}:{}}const Vt=["uid","created","name","description"],qe=e.computed(()=>{const l=E.value,t=Number(l.appCardDefaultLines);return Number.isFinite(t)&&t>=1?Math.min(Math.floor(t),30):2}),se=e.reactive({}),_e=e.reactive({}),ht=e.computed(()=>{var l;return{backgroundColor:x.value.bgColor,borderRadius:`${(l=x.value.radiusSize)!=null?l:8}px`}});function kt(l){return A.value.find(t=>t.prop===l)}function Ie(l){const t=[],o=[];for(const a of Vt)o.includes(a)||o.push(a);for(const a of A.value)a.visible&&(o.includes(a.prop)||o.push(a.prop));for(const a of o){const r=kt(a);if(!r||!r.visible)continue;const c={prop:r.prop};let f;a==="create_by_tpl"?f=Fe(l.create_by_tpl)?"模板创建":"手动创建":f=Me(l,c);const s=ze(l,c);t.push({prop:a,label:r.label,text:f,style:s})}return t}function Nt(l){const t=Ie(l),o=String(l.uid),a=qe.value;return se[o]||t.length<=a?t:t.slice(0,a)}function Ve(l){return Ie(l).length>qe.value}function xt(l){return!!se[l]}function he(l){se[l]=!se[l]}function wt(l,t){const o=t.target;!o||!(o instanceof Element)||o.closest(".app-more-trigger,.el-dropdown,.el-popper,.app-field-expand,.app-mini-more,button,a,input,textarea,select,.el-select,.el-input")||(x.value.showViewBtn?Ee(l):Ve(l)&&he(String(l.uid)))}function Ke(l){x.value.showViewBtn?Ee(l):Ve(l)&&he(String(l.uid))}function oe(l){const t=[],o=E.value;if(!o.addRealtimeData||!Array.isArray(o.realtimeParams))return t;for(const a of o.realtimeParams){if(!(a!=null&&a.fv))continue;const r=String(a.fv),c=a.name?String(a.name):r,f={prop:r},s=Me(l,f),d=ze(l,f).color;t.push({text:`${c}: ${s}`,color:d})}return t}function Ct(l){return oe(l).some(t=>String(t.text).length>24)}function Bt(l){return!!_e[l]}function $e(l){_e[l]=!_e[l]}function St(l,t){l==="view"?Ee(t):l==="edit"?zt(t):l==="archive"?Yt(t):l==="delete"&&It(t)}const z=e.computed(()=>T.OBJECT_DETAIL_TAB_DEFS.filter(l=>E.value[l.dataKey]===!0).map(l=>me(X({},l),{tabKey:T.dataKeyToTabKey(l.dataKey)}))),C=e.ref("baseinfo"),Et=e.computed(()=>{var t;const l=z.value.find(o=>o.tabKey===C.value);return(t=l==null?void 0:l.label)!=null?t:""}),Dt=e.computed(()=>{try{return localStorage.getItem("sys_mode")||""}catch(l){return""}}),He=e.computed(()=>{var o;const l=(o=u.value)==null?void 0:o.image;if(!l||typeof l!="string")return"";if(l.startsWith("http")||l.startsWith(S.FILE_URL))return l;const t=l.startsWith("/")?l.slice(1):l;return`${S.FILE_URL}${t}`}),Ye=e.computed(()=>{var t;const l=(t=u.value)==null?void 0:t.tag;return Array.isArray(l)?l.map(String).filter(Boolean):typeof l=="string"&&l.trim()?l.split(/[,,]/).map(o=>o.trim()).filter(Boolean):[]}),ke=e.computed(()=>{var t;const l=(t=u.value)==null?void 0:t.addition;return Array.isArray(l)?l.filter(o=>o&&typeof o=="object"&&Array.isArray(o.data)):[]}),de=e.ref(!1),q=e.ref(null),Je=e.ref(""),Ne=e.ref("");e.ref([]);const xe=e.ref(!1),W=e.ref([]),we=e.ref(!1),G=e.ref([]),ce=e.ref([]),Ce=e.ref(!1),I=e.ref([]),Be=e.ref(!1),Q=e.ref([]),ue=e.ref([S.dayjs().subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),S.dayjs().format("YYYY-MM-DD HH:mm:ss")]),Tt=l=>B(null,null,function*(){var t;xe.value=!0;try{const o=yield S.api.post("get_retainer_result_list",{object_id:l,page_size:50,page_index:1},!0),a=(t=o==null?void 0:o.result)!=null?t:o;W.value=Array.isArray(a==null?void 0:a.data)?a.data:[]}catch(o){W.value=[]}finally{xe.value=!1}}),At=l=>B(null,null,function*(){var t;we.value=!0;try{const o=yield S.api.post("get_collect_list",{object_id:l,page_size:50,page_index:1},!0),a=(t=o==null?void 0:o.result)!=null?t:o;G.value=Array.isArray(a==null?void 0:a.data)?a.data:[]}catch(o){G.value=[]}finally{we.value=!1}}),Lt=(l,t)=>B(null,null,function*(){var o;if(!t.length){I.value=[];return}Ce.value=!0;try{const a=[["uid","in",t]],r=yield S.api.post("terminal_list",{page_size:100,page_index:1,where_and:JSON.stringify(a)},!0),c=(o=r==null?void 0:r.result)!=null?o:r;I.value=Array.isArray(c==null?void 0:c.data)?c.data:[]}catch(a){I.value=[]}finally{Ce.value=!1}}),Se=()=>B(null,null,function*(){var t,o,a,r;const l=(t=u.value)==null?void 0:t.uid;if(l){Be.value=!0;try{const c=(a=(o=u.value)==null?void 0:o.fv_list)!=null?a:[],f=[["object_id","=",l],["time",">=",ue.value[0]],["time","<=",ue.value[1]]];c.length&&f.push(["fv_key","in",c.slice(0,10)]);const s=yield S.api.post("history_mosaic",{page_size:100,page_index:1,where_and:JSON.stringify(f)},!0),y=(r=s==null?void 0:s.result)!=null?r:s;Q.value=Array.isArray(y==null?void 0:y.data)?y.data:[]}catch(c){Q.value=[]}finally{Be.value=!1}}}),Ft=l=>B(null,null,function*(){var t,o;if(l){de.value=!0,q.value=null,Je.value=l;try{const r=(Array.isArray((t=u.value)==null?void 0:t.dashboard_list)?u.value.dashboard_list:[]).find(d=>{var m,D;const L=String((m=d==null?void 0:d.device_type)!=null?m:"").toLowerCase(),F=String((D=d==null?void 0:d.type)!=null?D:"").toLowerCase();return L==="mobile"||F==="mobile"}),c=String((o=r==null?void 0:r.uid)!=null?o:"").trim();if(!c){w.ElMessage.warning("该对象未绑定手机显示板");return}Ne.value=c;const f=yield S.api.post("get_dashboard_item",{uid:c},!1),s=(f==null?void 0:f.result)||{},y=s==null?void 0:s.script;y&&typeof y=="object"&&Object.keys(y).length?q.value=y:w.ElMessage.warning("显示板脚本为空")}catch(a){console.error(a),q.value=null}finally{de.value=!1}}}),jt=l=>`「${l}」的完整能力在 mixui 对象管理模块中提供;大屏组件内仅保留配置占位。`,We=()=>{const l=z.value;C.value=l.length?l[0].tabKey:"baseinfo"},Ee=l=>B(null,null,function*(){var t,o;if(M.value="",u.value=null,We(),!z.value.length){Y.value=!0;return}Y.value=!0,re.value=!0;try{const a=yield T.objectListApiPost("get_object_item",{uid:l.uid},!0);a!=null&&a.result&&typeof a.result=="object"?(u.value=a.result,ce.value=(o=(t=a.result)==null?void 0:t.object_list)!=null?o:[]):u.value=X({},l),(a==null?void 0:a.code)!==void 0&&a.code!==200?M.value=a.msg||a.info||`请求失败 (${a.code})`:a!=null&&a.result||(M.value="未返回详情数据,已使用列表行暂代显示。")}catch(a){u.value=X({},l),M.value="加载详情失败,已使用列表行暂代显示。"}finally{re.value=!1}}),Pt=()=>{u.value=null,M.value="",re.value=!1,q.value=null,Ne.value="",W.value=[],G.value=[],ce.value=[],I.value=[],Q.value=[]};e.watch(C,l=>{var o,a,r;const t=(o=u.value)==null?void 0:o.uid;if(t)if(l==="monitor"&&!q.value)Ft(t);else if(l==="retainer-record"&&!W.value.length)Tt(t);else if(l==="collect"&&!G.value.length)At(t);else if(l==="terminal"&&!I.value.length){const c=(r=(a=u.value)==null?void 0:a.terminal_list)!=null?r:[];Lt(t,c)}else l==="history"&&!Q.value.length&&Se()}),e.watch(z,()=>{if(!Y.value)return;new Set(z.value.map(t=>t.tabKey)).has(C.value)||We()});const Ge=()=>({uid:"",name:"",alias:"",model:"",description:"",customer_id:"",customer_name:"",customer_alias:"",terminal_list:"",mapping_id:"",mapping_name:"",tag:"",province:"",city:"",create_by_tpl:!1,tpl_uid:"",tpl_name:"",tpl_alias:""}),ie=e.ref(!1),p=e.reactive(Ge()),Qe=e.ref(0),De=e.ref(!1),Te=e.ref(!1),Ae=e.ref(!1);function Ot(l){return Array.isArray(l)?l.map(String).filter(Boolean).join(", "):typeof l=="string"?l:""}function Xe(l){return l.split(/[,,]/).map(t=>t.trim()).filter(Boolean)}function Ut(l){return Array.isArray(l)?l.map(String).filter(Boolean).join(", "):typeof l=="string"?l:""}function Rt(l){const t=l.terminal_list;return Array.isArray(t)?t.map(String).map(o=>o.trim()).filter(Boolean):Xe(String(t!=null?t:""))}function Mt(){const l=E.value;if(l.addRealtimeData&&Array.isArray(l.realtimeParams))for(const t of l.realtimeParams)t!=null&&t.fv&&Reflect.deleteProperty(p,String(t.fv));Object.assign(p,Ge())}function Ze(l){const t=E.value;if(!(!t.addRealtimeData||!Array.isArray(t.realtimeParams))){for(const o of t.realtimeParams)if(o!=null&&o.name&&(o!=null&&o.fv)){const a=String(o.fv),r=l[a];p[a]=r!=null?String(r):""}}}function et(l){var t,o,a,r,c,f,s,y,d,L,F,m,D,P,K;Mt(),Object.assign(p,{uid:String((t=l.uid)!=null?t:""),name:String((o=l.name)!=null?o:""),alias:String((a=l.alias)!=null?a:""),model:String((r=l.model)!=null?r:""),description:String((c=l.description)!=null?c:""),customer_id:String((f=l.customer_id)!=null?f:""),customer_name:String((s=l.customer_name)!=null?s:""),customer_alias:String((y=l.customer_alias)!=null?y:""),terminal_list:Ut(l.terminal_list),mapping_id:String((d=l.mapping_id)!=null?d:""),mapping_name:String((L=l.mapping_name)!=null?L:""),tag:Ot(l.tag),province:String((F=l.province)!=null?F:""),city:String((m=l.city)!=null?m:""),create_by_tpl:Fe(l.create_by_tpl),tpl_uid:String((D=l.tpl_uid)!=null?D:""),tpl_name:String((P=l.tpl_name)!=null?P:""),tpl_alias:String((K=l.tpl_alias)!=null?K:"")}),Qe.value=Number(l.id)||0}function tt(l,t){var o,a,r,c,f,s,y,d,L,F,m,D,P,K,pe,g;return{id:t,uid:String((o=l.uid)!=null?o:"").trim(),name:String((a=l.name)!=null?a:"").trim(),alias:String((r=l.alias)!=null?r:""),model:String((c=l.model)!=null?c:""),description:String((f=l.description)!=null?f:""),customer_id:String((s=l.customer_id)!=null?s:""),customer_name:String((y=l.customer_name)!=null?y:""),customer_alias:String((d=l.customer_alias)!=null?d:""),terminal_list:Rt(l),mapping_id:String((L=l.mapping_id)!=null?L:""),mapping_name:String((F=l.mapping_name)!=null?F:""),tag:Xe(String((m=l.tag)!=null?m:"")),province:String((D=l.province)!=null?D:""),city:String((P=l.city)!=null?P:""),create_by_tpl:l.create_by_tpl?1:0,tpl_uid:String((K=l.tpl_uid)!=null?K:""),tpl_name:String((pe=l.tpl_name)!=null?pe:""),tpl_alias:String((g=l.tpl_alias)!=null?g:""),addition:"[]"}}const zt=l=>B(null,null,function*(){var t;ie.value=!0,De.value=!0;try{const o=yield T.objectListApiPost("get_object_item",{uid:l.uid},!0),a=(t=o==null?void 0:o.result)!=null?t:l;et(a),Ze(a)}catch(o){et(l),Ze(l),w.ElMessage.warning("拉取对象详情失败,已使用列表行编辑")}finally{De.value=!1}}),qt=()=>B(null,null,function*(){if(!p.name.trim()){w.ElMessage.warning("请填写对象名称");return}Te.value=!0;try{yield T.objectListApiPost("update_object",tt(p,Qe.value),!0),w.ElMessage.success("保存成功"),ie.value=!1,yield j()}catch(l){w.ElMessage.error("保存失败")}finally{Te.value=!1}}),It=l=>{w.ElMessageBox.confirm("确认删除该对象吗?","警告",{type:"warning"}).then(()=>B(null,null,function*(){try{yield T.objectListApiPost("delete_object",{uid:l.uid,id:l.id},!0),w.ElMessage.success("删除成功"),yield j()}catch(t){w.ElMessage.error("删除失败")}})).catch(()=>{})},Kt=()=>{const l=typeof crypto!="undefined"&&typeof crypto.randomUUID=="function"?`obj_${crypto.randomUUID()}`:`obj_${Date.now()}_${Math.random().toString(16).slice(2)}`;Object.assign(v,{uid:l,name:"",alias:"",model:"",created:new Date().toLocaleString(),last_modified:new Date().toLocaleString(),description:"",customer_id:"",customer_name:"",customer_alias:"",terminal_list:"",mapping_id:"",mapping_name:"",tag:"",province:"",city:"",create_by_tpl:!1,tpl_uid:"",tpl_name:"",tpl_alias:""}),ae.value=!0};function $t(l){l==="add"?Kt():l==="reset"&&mt()}const Ht=()=>B(null,null,function*(){var l;if(!((l=v.name)!=null&&l.trim())){w.ElMessage.warning("请填写对象名称");return}Ae.value=!0;try{yield T.objectListApiPost("create_object",tt(v,0),!0),ae.value=!1,w.ElMessage.success("添加成功"),yield j()}catch(t){w.ElMessage.error("添加失败")}finally{Ae.value=!1}}),Yt=l=>{w.ElMessageBox.confirm(`确认对对象 [${l.name}] 进行资料备档吗?`,"提示",{type:"info"}).then(()=>{w.ElMessage.success("备档成功")}).catch(()=>{})};return e.onMounted(()=>{j()}),e.onUnmounted(()=>{yt()}),(l,t)=>{const o=V.ElIcon,a=V.ElButton,r=V.ElDropdownItem,c=V.ElDropdownMenu,f=V.ElDropdown,s=V.ElOption,y=V.ElSelect,d=V.ElInput,L=V.ElDatePicker,F=V.ElPagination,m=V.ElFormItem,D=V.ElForm,P=V.ElDialog,K=V.ElDivider,pe=V.ElAlert,g=V.ElDescriptionsItem,lt=V.ElTag,at=V.ElDescriptions,Jt=V.ElCollapseItem,Wt=V.ElCollapse,$=V.ElEmpty,U=V.ElTableColumn,ot=V.ElTable,R=V.ElLoadingDirective;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["object-list-app mix-component",e.unref(ve)]),style:e.normalizeStyle(e.unref(ge))},[e.unref(x).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",nl,[e.createElementVNode("div",{class:"app-title-text",style:e.normalizeStyle(Z.value)},e.toDisplayString(k.conf.caption||k.conf.name),5),e.createVNode(f,{trigger:"click",onCommand:$t},{dropdown:e.withCtx(()=>[e.createVNode(c,null,{default:e.withCtx(()=>[e.unref(x).showAddBtn?(e.openBlock(),e.createBlock(r,{key:0,command:"add"},{default:e.withCtx(()=>[...t[43]||(t[43]=[e.createTextVNode("添加对象",-1)])]),_:1})):e.createCommentVNode("",!0),e.createVNode(r,{command:"reset"},{default:e.withCtx(()=>[...t[44]||(t[44]=[e.createTextVNode("重置",-1)])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(a,{type:"primary",circle:"",size:"small",class:"app-add-btn",onClick:t[0]||(t[0]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createVNode(o,null,{default:e.withCtx(()=>[e.createVNode(e.unref(fe.Plus))]),_:1})]),_:1})]),_:1})])),e.withDirectives((e.openBlock(),e.createElementBlock("div",rl,[e.createElementVNode("div",sl,[e.createVNode(y,{modelValue:H.value,"onUpdate:modelValue":t[1]||(t[1]=n=>H.value=n),class:"app-field-select",onChange:ct},{default:e.withCtx(()=>[e.createVNode(s,{label:"对象名称",value:"name"}),e.createVNode(s,{label:"对象编号",value:"uid"}),e.createVNode(s,{label:"对象别名",value:"alias"}),e.createVNode(s,{label:"客户编号",value:"customer_id"}),e.createVNode(s,{label:"客户别名",value:"customer_alias"}),e.createVNode(s,{label:"客户名称",value:"customer_name"}),e.createVNode(s,{label:"映射表编号",value:"mapping_id"}),e.createVNode(s,{label:"映射表名称",value:"mapping_name"}),e.createVNode(s,{label:"关联终端",value:"terminal_list"}),e.createVNode(s,{label:"标签",value:"tag"}),e.createVNode(s,{label:"省份",value:"province"}),e.createVNode(s,{label:"市/区",value:"city"}),e.createVNode(s,{label:"型号",value:"model"}),e.createVNode(s,{label:"序列号",value:"serial_no"}),e.createVNode(s,{label:"创建时间",value:"created"})]),_:1},8,["modelValue"]),e.createElementVNode("div",dl,[H.value!=="created"?(e.openBlock(),e.createBlock(d,{key:0,modelValue:ee.value,"onUpdate:modelValue":t[2]||(t[2]=n=>ee.value=n),placeholder:"输入关键词搜索",clearable:"",class:"app-search-input",onKeyup:e.withKeys(ye,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(o,null,{default:e.withCtx(()=>[e.createVNode(e.unref(fe.Search))]),_:1})]),append:e.withCtx(()=>[e.createVNode(a,{type:"primary",class:"app-toolbar-search-btn",onClick:ye},{default:e.withCtx(()=>[...t[45]||(t[45]=[e.createTextVNode("搜索",-1)])]),_:1})]),_:1},8,["modelValue"])):(e.openBlock(),e.createElementBlock("div",cl,[e.createVNode(L,{modelValue:te.value,"onUpdate:modelValue":t[3]||(t[3]=n=>te.value=n),type:"datetimerange","range-separator":"至","start-placeholder":"创建开始","end-placeholder":"创建结束","value-format":"YYYY-MM-DD HH:mm:ss",class:"app-created-range"},null,8,["modelValue"]),e.createVNode(a,{type:"primary",class:"app-toolbar-search-btn app-created-search-btn",onClick:ye},{default:e.withCtx(()=>[...t[46]||(t[46]=[e.createTextVNode("搜索",-1)])]),_:1})]))])]),e.createElementVNode("div",ul,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(pt.value,n=>(e.openBlock(),e.createElementBlock("div",{key:String(n.uid),class:"app-object-card",style:e.normalizeStyle(ht.value),role:"button",tabindex:"0",onClick:b=>wt(n,b),onKeydown:[e.withKeys(e.withModifiers(b=>Ke(n),["prevent"]),["enter"]),e.withKeys(e.withModifiers(b=>Ke(n),["prevent"]),["space"])]},[e.createElementVNode("div",ml,[e.createElementVNode("div",fl,e.toDisplayString(n.name||"—"),1),e.createElementVNode("div",vl,[e.createVNode(f,{trigger:"click",onCommand:b=>St(b,n)},{dropdown:e.withCtx(()=>[e.createVNode(c,null,{default:e.withCtx(()=>[e.unref(x).showViewBtn?(e.openBlock(),e.createBlock(r,{key:0,command:"view"},{default:e.withCtx(()=>[...t[47]||(t[47]=[e.createTextVNode("查看",-1)])]),_:1})):e.createCommentVNode("",!0),e.unref(x).showEditBtn?(e.openBlock(),e.createBlock(r,{key:1,command:"edit"},{default:e.withCtx(()=>[...t[48]||(t[48]=[e.createTextVNode("编辑",-1)])]),_:1})):e.createCommentVNode("",!0),e.unref(x).showArchiveBtn?(e.openBlock(),e.createBlock(r,{key:2,command:"archive"},{default:e.withCtx(()=>[...t[49]||(t[49]=[e.createTextVNode("资料备档",-1)])]),_:1})):e.createCommentVNode("",!0),e.unref(x).showDeleteBtn?(e.openBlock(),e.createBlock(r,{key:3,command:"delete",divided:""},{default:e.withCtx(()=>[...t[50]||(t[50]=[e.createTextVNode("删除",-1)])]),_:1})):e.createCommentVNode("",!0)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"app-more-trigger",onClick:t[4]||(t[4]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(o,null,{default:e.withCtx(()=>[e.createVNode(e.unref(fe.MoreFilled))]),_:1})])]),_:1},8,["onCommand"]),oe(n).length?(e.openBlock(),e.createElementBlock("div",gl,[Bt(String(n.uid))?(e.openBlock(),e.createElementBlock("div",yl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe(n),(b,i)=>(e.openBlock(),e.createElementBlock("div",{key:"ex"+i,class:"app-transform-line",style:e.normalizeStyle(b.color?{color:b.color}:{})},e.toDisplayString(b.text),5))),128)),e.createVNode(a,{text:"",type:"primary",class:"app-mini-more",onClick:e.withModifiers(b=>$e(String(n.uid)),["stop"])},{default:e.withCtx(()=>[...t[52]||(t[52]=[e.createTextVNode("收起",-1)])]),_:1},8,["onClick"])])):(e.openBlock(),e.createElementBlock("div",bl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe(n).slice(0,2),(b,i)=>(e.openBlock(),e.createElementBlock("span",{key:i,class:"app-rt-tag",style:e.normalizeStyle(b.color?{color:b.color,borderColor:b.color}:{})},e.toDisplayString(b.text),5))),128)),oe(n).length>2||Ct(n)?(e.openBlock(),e.createBlock(a,{key:0,text:"",type:"primary",class:"app-mini-more",onClick:e.withModifiers(b=>$e(String(n.uid)),["stop"])},{default:e.withCtx(()=>[...t[51]||(t[51]=[e.createTextVNode("···",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",_l,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Nt(n),(b,i)=>(e.openBlock(),e.createElementBlock("div",{key:b.prop+"-"+i,class:"app-field-line"},[e.createElementVNode("span",Vl,e.toDisplayString(b.label),1),e.createElementVNode("span",{class:"app-field-value",style:e.normalizeStyle(b.style)},e.toDisplayString(b.text),5)]))),128))]),Ve(n)?(e.openBlock(),e.createElementBlock("div",hl,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["app-field-expand",{open:xt(String(n.uid))}]),onClick:e.withModifiers(b=>he(String(n.uid)),["stop"])},[e.createVNode(o,null,{default:e.withCtx(()=>[e.createVNode(e.unref(fe.ArrowDown))]),_:1})],10,kl)])):e.createCommentVNode("",!0)],44,pl))),128))]),e.createElementVNode("div",Nl,[e.createElementVNode("div",xl,[e.createVNode(F,{"current-page":h.current,"onUpdate:currentPage":t[5]||(t[5]=n=>h.current=n),"page-size":h.pageSize,"onUpdate:pageSize":t[6]||(t[6]=n=>h.pageSize=n),"page-sizes":[20,50,100,200],layout:"total, sizes",total:h.total,onSizeChange:ft},null,8,["current-page","page-size","total"])]),e.createElementVNode("div",wl,[e.createVNode(F,{"current-page":h.current,"onUpdate:currentPage":t[7]||(t[7]=n=>h.current=n),"page-size":h.pageSize,"onUpdate:pageSize":t[8]||(t[8]=n=>h.pageSize=n),"page-sizes":[20,50,100,200],layout:"prev, pager, next, jumper",total:h.total,onCurrentChange:vt},null,8,["current-page","page-size","total"])])])])),[[R,be.value]]),e.createVNode(P,{modelValue:ae.value,"onUpdate:modelValue":t[23]||(t[23]=n=>ae.value=n),title:"添加对象",class:"mixiot-app-dialog","append-to-body":!1,"align-center":"","modal-class":"mixiot-app-dialog-mask","lock-scroll":!1,style:{"--mixiot-app-dialog-max":"380px"}},{footer:e.withCtx(()=>[e.createElementVNode("span",Cl,[e.createVNode(a,{onClick:t[22]||(t[22]=n=>ae.value=!1)},{default:e.withCtx(()=>[...t[53]||(t[53]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(a,{type:"primary",loading:Ae.value,onClick:Ht},{default:e.withCtx(()=>[...t[54]||(t[54]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.createVNode(D,{model:v,"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(m,{label:"对象名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.name,"onUpdate:modelValue":t[9]||(t[9]=n=>v.name=n),placeholder:"请输入对象名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"对象别名"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.alias,"onUpdate:modelValue":t[10]||(t[10]=n=>v.alias=n),placeholder:"请输入对象别名"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"型号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.model,"onUpdate:modelValue":t[11]||(t[11]=n=>v.model=n),placeholder:"请输入型号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.description,"onUpdate:modelValue":t[12]||(t[12]=n=>v.description=n),placeholder:"请输入描述",type:"textarea"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户编号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.customer_id,"onUpdate:modelValue":t[13]||(t[13]=n=>v.customer_id=n),placeholder:"请输入客户编号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.customer_name,"onUpdate:modelValue":t[14]||(t[14]=n=>v.customer_name=n),placeholder:"请输入客户名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户别名"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.customer_alias,"onUpdate:modelValue":t[15]||(t[15]=n=>v.customer_alias=n),placeholder:"请输入客户别名"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"关联终端"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.terminal_list,"onUpdate:modelValue":t[16]||(t[16]=n=>v.terminal_list=n),placeholder:"请输入关联终端"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.mapping_id,"onUpdate:modelValue":t[17]||(t[17]=n=>v.mapping_id=n),placeholder:"请输入映射表编号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"映射表名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.mapping_name,"onUpdate:modelValue":t[18]||(t[18]=n=>v.mapping_name=n),placeholder:"请输入映射表名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.tag,"onUpdate:modelValue":t[19]||(t[19]=n=>v.tag=n),placeholder:"请输入标签"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"省份"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.province,"onUpdate:modelValue":t[20]||(t[20]=n=>v.province=n),placeholder:"请输入省份"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"市/区"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.city,"onUpdate:modelValue":t[21]||(t[21]=n=>v.city=n),placeholder:"请输入市/区"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(P,{modelValue:ie.value,"onUpdate:modelValue":t[39]||(t[39]=n=>ie.value=n),title:"编辑对象",class:"mixiot-app-dialog","append-to-body":!1,"align-center":"","modal-class":"mixiot-app-dialog-mask","lock-scroll":!1,style:{"--mixiot-app-dialog-max":"380px"},"destroy-on-close":""},{footer:e.withCtx(()=>[e.createElementVNode("span",Bl,[e.createVNode(a,{onClick:t[38]||(t[38]=n=>ie.value=!1)},{default:e.withCtx(()=>[...t[56]||(t[56]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(a,{type:"primary",loading:Te.value,onClick:qt},{default:e.withCtx(()=>[...t[57]||(t[57]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(D,{model:p,"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(m,{label:"对象编号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.uid,"onUpdate:modelValue":t[24]||(t[24]=n=>p.uid=n),placeholder:"请输入对象编号",disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"对象名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.name,"onUpdate:modelValue":t[25]||(t[25]=n=>p.name=n),placeholder:"请输入对象名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"对象别名"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.alias,"onUpdate:modelValue":t[26]||(t[26]=n=>p.alias=n),placeholder:"请输入对象别名"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"型号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.model,"onUpdate:modelValue":t[27]||(t[27]=n=>p.model=n),placeholder:"请输入型号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.description,"onUpdate:modelValue":t[28]||(t[28]=n=>p.description=n),placeholder:"请输入描述",type:"textarea"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户编号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.customer_id,"onUpdate:modelValue":t[29]||(t[29]=n=>p.customer_id=n),placeholder:"请输入客户编号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.customer_name,"onUpdate:modelValue":t[30]||(t[30]=n=>p.customer_name=n),placeholder:"请输入客户名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户别名"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.customer_alias,"onUpdate:modelValue":t[31]||(t[31]=n=>p.customer_alias=n),placeholder:"请输入客户别名"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"关联终端"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.terminal_list,"onUpdate:modelValue":t[32]||(t[32]=n=>p.terminal_list=n),placeholder:"请输入关联终端"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.mapping_id,"onUpdate:modelValue":t[33]||(t[33]=n=>p.mapping_id=n),placeholder:"请输入映射表编号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"映射表名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.mapping_name,"onUpdate:modelValue":t[34]||(t[34]=n=>p.mapping_name=n),placeholder:"请输入映射表名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.tag,"onUpdate:modelValue":t[35]||(t[35]=n=>p.tag=n),placeholder:"请输入标签"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"省份"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.province,"onUpdate:modelValue":t[36]||(t[36]=n=>p.province=n),placeholder:"请输入省份"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"市/区"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.city,"onUpdate:modelValue":t[37]||(t[37]=n=>p.city=n),placeholder:"请输入市/区"},null,8,["modelValue"])]),_:1}),E.value.addRealtimeData&&je.value.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(K,{"content-position":"left"},{default:e.withCtx(()=>[...t[55]||(t[55]=[e.createTextVNode("实时数据",-1)])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(je.value,n=>(e.openBlock(),e.createBlock(m,{key:n.fv,label:n.name},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p[n.fv],"onUpdate:modelValue":b=>p[n.fv]=b,placeholder:"请输入"+n.name},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["label"]))),128))],64)):e.createCommentVNode("",!0)]),_:1},8,["model"])),[[R,De.value]])]),_:1},8,["modelValue"]),e.createVNode(P,{modelValue:Y.value,"onUpdate:modelValue":t[42]||(t[42]=n=>Y.value=n),title:"对象详情",class:"object-view-detail-dialog mixiot-app-dialog","append-to-body":!1,"align-center":"","modal-class":"mixiot-app-dialog-mask","lock-scroll":!1,style:{"--mixiot-app-dialog-max":"480px","--mixiot-app-dialog-height":"75vh"},"destroy-on-close":"",onClosed:Pt},{footer:e.withCtx(()=>[e.createVNode(a,{type:"primary",onClick:t[41]||(t[41]=n=>Y.value=!1)},{default:e.withCtx(()=>[...t[59]||(t[59]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>{var n,b;return[e.withDirectives((e.openBlock(),e.createElementBlock("div",Sl,[z.value.length?(e.openBlock(),e.createElementBlock("div",El,[e.createElementVNode("aside",Dl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,i=>(e.openBlock(),e.createElementBlock("div",{key:i.tabKey,class:e.normalizeClass(["view-detail-tab-item",{active:C.value===i.tabKey}]),onClick:O=>C.value=i.tabKey},e.toDisplayString(i.label),11,Tl))),128))]),e.createElementVNode("div",Al,[C.value==="baseinfo"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[M.value?(e.openBlock(),e.createElementBlock("div",Ll,e.toDisplayString(M.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Fl,[u.value?(e.openBlock(),e.createBlock(at,{key:0,column:1,border:""},{default:e.withCtx(()=>[He.value?(e.openBlock(),e.createBlock(g,{key:0,label:"对象图片",span:2},{default:e.withCtx(()=>[e.createElementVNode("img",{class:"view-detail-head-img",src:He.value,alt:""},null,8,jl)]),_:1})):e.createCommentVNode("",!0),e.createVNode(g,{label:"对象编号"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.uid)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"对象名称"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.name)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"对象别名"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.alias)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"型号"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.model)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"序列号"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.serial_no)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"映射表编号"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.mapping_id)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"映射表名称"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.mapping_name)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"映射表别名"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.mapping_alias)!=null?i:""),1)]}),_:1}),Dt.value!=="box"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(g,{label:"项目编号"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.customer_id)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"项目名称"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.customer_name)!=null?i:""),1)]}),_:1})],64)):e.createCommentVNode("",!0),e.createVNode(g,{label:"控制密码"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.control)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"控制码编号"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.control_id)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"控制码名称"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.control_name)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"控制码别名"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.control_alias)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"地址"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.address)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"设置经纬度"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.custom_gis)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"GPS经纬度"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.gis)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"省份"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.province)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"城市"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.city)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"创建时间"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.created)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"更新时间"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.last_modified)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"标签",span:2},{default:e.withCtx(()=>[Ye.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(Ye.value,i=>(e.openBlock(),e.createBlock(lt,{key:i,style:{"margin-right":"6px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i),1)]),_:2},1024))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(g,{label:"描述",span:2},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.description)!=null?i:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)]),ke.value.length?(e.openBlock(),e.createElementBlock("div",Pl,"扩展脚本信息")):e.createCommentVNode("",!0),ke.value.length?(e.openBlock(),e.createElementBlock("div",Ol,[e.createVNode(Wt,{"expand-icon-position":"left"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ke.value,(i,O)=>(e.openBlock(),e.createBlock(Jt,{key:O,name:O,title:i.title},{default:e.withCtx(()=>[e.createVNode(at,{border:"",column:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.data,(it,Gt)=>(e.openBlock(),e.createBlock(g,{key:Gt,label:String(it[0])},{default:e.withCtx(()=>{var nt;return[e.createTextVNode(e.toDisplayString((nt=it[1])!=null?nt:""),1)]}),_:2},1032,["label"]))),128))]),_:2},1024)]),_:2},1032,["name","title"]))),128))]),_:1})])):e.createCommentVNode("",!0)],64)):C.value==="monitor"?e.withDirectives((e.openBlock(),e.createElementBlock("div",Ul,[q.value?(e.openBlock(),e.createBlock(S._sfc_main$1,{key:Ne.value,script:q.value,uid:Je.value,"enable-web-socket":!0,"follow-host-theme":!0},null,8,["script","uid"])):de.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($,{key:1,description:"暂无关联手机显示板"}))])),[[R,de.value]]):C.value==="retainer-record"?e.withDirectives((e.openBlock(),e.createElementBlock("div",Rl,[W.value.length?(e.openBlock(),e.createBlock(ot,{key:0,data:W.value,stripe:"",size:"small",class:"detail-table","max-height":"100%"},{default:e.withCtx(()=>[e.createVNode(U,{prop:"template_id",label:"项目编号",width:"120"}),e.createVNode(U,{prop:"label_cn",label:"历程项名称","min-width":"120"}),e.createVNode(U,{prop:"code",label:"编码",width:"100"}),e.createVNode(U,{prop:"category",label:"类型",width:"80"}),e.createVNode(U,{prop:"opened_at",label:"开始时间",width:"160"})]),_:1},8,["data"])):(e.openBlock(),e.createBlock($,{key:1,description:"暂无历程记录"}))])),[[R,xe.value]]):C.value==="collect"?e.withDirectives((e.openBlock(),e.createElementBlock("div",Ml,[G.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(G.value,(i,O)=>(e.openBlock(),e.createElementBlock("div",{key:O,class:"tab-card-item"},[e.createElementVNode("div",zl,e.toDisplayString(i.name||i.uid||"—"),1),e.createElementVNode("div",ql,[i.uid?(e.openBlock(),e.createElementBlock("span",Il,"编号:"+e.toDisplayString(i.uid),1)):e.createCommentVNode("",!0),i.is_active!==void 0?(e.openBlock(),e.createElementBlock("span",Kl,"状态:"+e.toDisplayString(i.is_active===1?"开启":"关闭"),1)):e.createCommentVNode("",!0)])]))),128)):(e.openBlock(),e.createBlock($,{key:1,description:"暂无离线采集项目"}))])),[[R,we.value]]):C.value==="child"?(e.openBlock(),e.createElementBlock("div",$l,[ce.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(ce.value,(i,O)=>(e.openBlock(),e.createElementBlock("div",{key:O,class:"tab-card-item"},[e.createElementVNode("div",Hl,e.toDisplayString(i.name||i.uid||"—"),1),e.createElementVNode("div",Yl,[i.uid?(e.openBlock(),e.createElementBlock("span",Jl,"编号:"+e.toDisplayString(i.uid),1)):e.createCommentVNode("",!0),i.model?(e.openBlock(),e.createElementBlock("span",Wl,"型号:"+e.toDisplayString(i.model),1)):e.createCommentVNode("",!0)])]))),128)):(e.openBlock(),e.createBlock($,{key:1,description:"暂无子对象"}))])):C.value==="terminal"?e.withDirectives((e.openBlock(),e.createElementBlock("div",Gl,[I.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(I.value,(i,O)=>(e.openBlock(),e.createElementBlock("div",{key:O,class:"tab-card-item"},[e.createElementVNode("div",Ql,e.toDisplayString(i.name||i.uid||"—"),1),e.createElementVNode("div",Xl,[i.uid?(e.openBlock(),e.createElementBlock("span",Zl,"编号:"+e.toDisplayString(i.uid),1)):e.createCommentVNode("",!0),i.type?(e.openBlock(),e.createElementBlock("span",ea,"类型:"+e.toDisplayString(i.type),1)):e.createCommentVNode("",!0),e.createVNode(lt,{type:i.online===1?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.online===1?"在线":"离线"),1)]),_:2},1032,["type"])])]))),128)):(e.openBlock(),e.createBlock($,{key:1,description:"暂无关联终端"}))])),[[R,Ce.value]]):C.value==="history"?e.withDirectives((e.openBlock(),e.createElementBlock("div",ta,[e.createElementVNode("div",la,[e.createVNode(L,{modelValue:ue.value,"onUpdate:modelValue":t[40]||(t[40]=i=>ue.value=i),type:"datetimerange",size:"small","range-separator":"-","start-placeholder":"开始","end-placeholder":"结束",onChange:Se},null,8,["modelValue"]),e.createVNode(a,{size:"small",type:"primary",onClick:Se},{default:e.withCtx(()=>[...t[58]||(t[58]=[e.createTextVNode("查询",-1)])]),_:1})]),Q.value.length?(e.openBlock(),e.createBlock(ot,{key:0,data:Q.value,stripe:"",size:"small",class:"detail-table","max-height":"100%"},{default:e.withCtx(()=>[e.createVNode(U,{prop:"time",label:"时间",width:"160"}),e.createVNode(U,{prop:"fv_key",label:"变量",width:"120"}),e.createVNode(U,{prop:"value",label:"值","min-width":"100"})]),_:1},8,["data"])):(e.openBlock(),e.createBlock($,{key:1,description:"暂无历史数据"}))])),[[R,Be.value]]):(e.openBlock(),e.createElementBlock("div",aa,[e.createVNode($,{description:jt(Et.value)},null,8,["description"]),e.createElementVNode("div",oa,"对象编号:"+e.toDisplayString((b=(n=u.value)==null?void 0:n.uid)!=null?b:"—"),1)]))])])):(e.openBlock(),e.createBlock(pe,{key:0,type:"warning","show-icon":"",closable:!1,title:"请先在右侧「数据」面板勾选「查看」,并在其下的详情页签中至少启用一项。"}))])),[[R,re.value]])]}),_:1},8,["modelValue"]),e.renderSlot(l.$slots,"default",{},void 0,!0)],6)}}})),ma=S._export_sfc(pa,[["__scopeId","data-v-543c762c"]]);exports.default=ma;
@@ -31,8 +31,8 @@ import "element-plus/es/components/base/style/css";
31
31
  import "element-plus/es/components/button/style/css";
32
32
  import { inject as he, ref as R, defineComponent as _e, computed as O, onMounted as pe, onBeforeUnmount as me, openBlock as L, createElementBlock as M, normalizeStyle as x, unref as A, createElementVNode as g, normalizeClass as fe, toDisplayString as T, createVNode as ye, withCtx as ve, createTextVNode as ge, createCommentVNode as $, renderSlot as we } from "vue";
33
33
  import { u as be } from "./vue-i18n-5Nahpzrm.js";
34
- import { B as Re } from "./BaseComponent-NnwLq7Cf.js";
35
- import { a as y, u as Le, r as Me, _ as Se } from "./index-D5BukPPY.js";
34
+ import { B as Re } from "./BaseComponent-CQaDWNO0.js";
35
+ import { a as y, u as Le, r as Me, _ as Se } from "./index-BZpYmpDy.js";
36
36
  import { e as Ne, b as j } from "./materialFileUrl-CubtnHeq.js";
37
37
  import { ElMessage as H } from "element-plus";
38
38
  import { A as Ce, D as Ee } from "./ele-bmp-icon-Pdolk1J5.js";
@@ -1 +1 @@
1
- "use strict";var Y=Object.defineProperty,ee=Object.defineProperties;var te=Object.getOwnPropertyDescriptors;var F=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var T=(e,t,o)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,b=(e,t)=>{for(var o in t||(t={}))oe.call(t,o)&&T(e,o,t[o]);if(F)for(var o of F(t))ae.call(t,o)&&T(e,o,t[o]);return e},L=(e,t)=>ee(e,te(t));var s=(e,t,o)=>new Promise((l,a)=>{var d=f=>{try{r(o.next(f))}catch(v){a(v)}},h=f=>{try{r(o.throw(f))}catch(v){a(v)}},r=f=>f.done?l(f.value):Promise.resolve(f.value).then(d,h);r((o=o.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");const i=require("vue"),re=require("./vue-i18n-BvHMBi_b.cjs"),ne=require("./BaseComponent-CaCkjmmb.cjs"),y=require("./index-BzWbqJIl.cjs"),A=require("./materialFileUrl-DfPNm265.cjs"),I=require("element-plus"),q=require("./ele-bmp-icon-BBI0-SX7.cjs");process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;const le=Symbol(process.env.NODE_ENV!=="production"?"route location":"");process.env.NODE_ENV;function se(e){return i.inject(le)}const U=e=>{const t=typeof e=="string"?Number(e):e;return t===0||t===200},ce=(e,t)=>{if(e&&String(e).trim()){const o=String(e).trim();if(o.startsWith("http://")||o.startsWith("https://"))try{return new URL(o).pathname||""}catch(l){return o}return o.startsWith("/")?o:`/${o}`}return t?`/yunfiles/material/file/${t}`:""},de={uploadFile(e){return s(this,null,function*(){var l;const t=new FormData;t.append("file",e);const o=yield y.api.upload(t,!0);if(U(o.code)&&((l=o.result)!=null&&l.url))return o.result.url;throw new Error(o.msg||"文件上传失败")})},uploadMaterialGetPath(e,t){return s(this,null,function*(){var d,h;const l={material_data:e.includes(",")?e.split(",")[1]:e,material_type:t||"png"},a=yield y.api.post("upload_material",l,!0);if(U(a.code)&&a.result){const r=a.result,f=ce(r.material_path||r.relative_path||"",r.file_id);if(f)return L(b({},r),{material_path:f,material_size:(h=(d=r.material_size)!=null?d:r.file_size)!=null?h:0,material_type:r.material_type||r.mime_type||t||"png",name:r.name||r.file_name||""})}throw new Error(a.info||a.msg||"上传原图获取路径失败")})},createMaterial(e){return s(this,null,function*(){var o;const t=yield y.api.post("create_dashboard_material",e,!0);if(U(t.code)&&((o=t.result)!=null&&o.uid))return t.result;throw new Error(t.info||t.msg||"创建素材失败")})},uploadAndCreateMaterial(o){return s(this,arguments,function*(e,t={}){var h;const l=((h=e.name.split(".").pop())==null?void 0:h.toLowerCase())||"png",a=yield this._fileToBase64(e),d=yield this.uploadMaterialGetPath(a,l);if(d.uid)return{uid:d.uid};throw new Error("upload_material 未返回 uid")})},_fileToBase64(e){return new Promise((t,o)=>{const l=new FileReader;l.onload=()=>t(l.result),l.onerror=()=>o(new Error("文件读取失败")),l.readAsDataURL(e)})},getMaterialList(){return s(this,arguments,function*(e={}){const t=b({page_index:e.page_index||1,page_size:e.page_size||20,order_by:e.order_by||"created",order_type:e.order_type||"desc"},e);return yield y.api.post("get_dashboard_material_list",t)})},getMyMaterialList(){return s(this,arguments,function*(e={}){const t=b({page_index:e.page_index||1,page_size:e.page_size||20,order_by:e.order_by||"created",order_type:e.order_type||"desc"},e);return yield y.api.post("get_my_dashboard_material_list",t)})},getMaterialItem(e){return s(this,null,function*(){return yield y.api.post("get_dashboard_material_item",{uid:e})})},updateMaterial(e){return s(this,null,function*(){return yield y.api.post("update_dashboard_material",e,!0)})},deleteMaterial(e){return s(this,null,function*(){return yield y.api.post("delete_dashboard_material",{uid:e},!0)})},deleteMaterialByPath(e){return s(this,null,function*(){var o;if(!e||!String(e).trim())return;const t=String(e).replace(/^\//,"");try{const l=yield this.getMyMaterialList({page_index:1,page_size:10,where_and:JSON.stringify([["material_path","=",t]])}),a=(o=l==null?void 0:l.result)==null?void 0:o.data;Array.isArray(a)&&a.length>0&&a[0].uid&&(yield this.deleteMaterial(a[0].uid))}catch(l){}})}},W={_buildWhereAnd(e){return JSON.stringify(e.filter(([,,t])=>t!=null))},_isEmptyId(e){return e==null||String(e).trim()===""},_isComponentLevel(e){return!this._isEmptyId(e.component_id)},_isLayerLevel(e){return this._isEmptyId(e.component_id)&&!this._isEmptyId(e.layer_id)},_isSheetLevel(e){return this._isEmptyId(e.component_id)&&this._isEmptyId(e.layer_id)&&!this._isEmptyId(e.sheet_id)},_isDashboardLevel(e){return this._isEmptyId(e.component_id)&&this._isEmptyId(e.layer_id)&&this._isEmptyId(e.sheet_id)},_listRelations(e){return s(this,null,function*(){var o;const t=yield this.getMaterialRelationList({page_index:1,page_size:999,where_and:e});return((o=t==null?void 0:t.result)==null?void 0:o.data)||[]})},_deleteByUid(e,t){return s(this,null,function*(){t&&(yield this.deleteMaterialRelation({dashboard_record_uid:e,uid:t}))})},_deleteByRelation(e){return s(this,null,function*(){e!=null&&e.dashboard_record_uid&&(yield this.deleteMaterialRelation({dashboard_record_uid:e.dashboard_record_uid,dashboard_id:e.dashboard_id,sheet_id:e.sheet_id,layer_id:e.layer_id,component_id:e.component_id,uid:e.uid}))})},_deleteRelationList(e,t){return s(this,null,function*(){for(const o of t)yield this._deleteByUid(e,o.uid)})},createMaterialRelation(e){return s(this,null,function*(){return yield y.api.post("create_dashboard_materials_relation",e,!0)})},deleteMaterialRelation(e){return s(this,null,function*(){return yield y.api.post("delete_dashboard_materials_relation",e,!0)})},getMaterialRelationList(){return s(this,arguments,function*(e={}){const t=b({page_index:e.page_index||1,page_size:e.page_size||20,order_by:e.order_by||"created",order_type:e.order_type||"desc"},e);return!e.order_by&&!e.order_type&&e.order?t.order=e.order:delete t.order,yield y.api.post("get_my_dashboard_materials_relation_list",t)})},getMaterialRelationsByDashboard(o){return s(this,arguments,function*(e,t={}){const l=JSON.stringify([["dashboard_record_uid","=",e]]);return yield this.getMaterialRelationList(L(b({},t),{where_and:l}))})},getMaterialRelationByComponent(l,a){return s(this,arguments,function*(e,t,o={}){const d=JSON.stringify([["dashboard_record_uid","=",e],["component_id","=",t]]);return yield this.getMaterialRelationList(L(b({},o),{where_and:d}))})},getRelationsByMaterial(e){return s(this,null,function*(){var l;if(!e)return[];const t=JSON.stringify([["material_uid","=",e]]),o=yield this.getMaterialRelationList({page_index:1,page_size:999,where_and:t});return((l=o==null?void 0:o.result)==null?void 0:l.data)||[]})},getMaterialUsageSummary(e){return s(this,null,function*(){const t=yield this.getRelationsByMaterial(e),o=new Set;return t.forEach(l=>{const a=String(l.dashboard_record_uid||"").trim();a&&o.add(a)}),{relationCount:t.length,dashboardCount:o.size,relations:t}})},deleteAllRelationsByMaterial(e){return s(this,null,function*(){const t=yield this.getRelationsByMaterial(e);for(const o of t)!(o!=null&&o.uid)||!(o!=null&&o.dashboard_record_uid)||(yield this.deleteMaterialRelation({dashboard_record_uid:o.dashboard_record_uid,uid:o.uid}));return t.length})},deleteAllRelationsByDashboard(e){return s(this,null,function*(){return yield this.deleteRelationsByDashboardHierarchy(e)})},deleteRelationByComponent(e,t){return s(this,null,function*(){return yield this.deleteMaterialRelation({dashboard_record_uid:e,component_id:t})})},deleteComponentRelations(e,t,o,l){return s(this,null,function*(){if(!e||!t||!o||!l)return;const a=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",o],["component_id","=",l]]),d=yield this._listRelations(a);for(const h of d)yield this._deleteByRelation(h)})},deleteLayerLevelRelations(e,t,o){return s(this,null,function*(){if(!e||!t||!o)return;const l=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",o]]),d=(yield this._listRelations(l)).filter(h=>this._isLayerLevel(h));for(const h of d)yield this._deleteByRelation(h)})},deleteSheetLevelRelations(e,t){return s(this,null,function*(){if(!e||!t)return;const o=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t]]),a=(yield this._listRelations(o)).filter(d=>this._isSheetLevel(d));for(const d of a)yield this._deleteByRelation(d)})},deleteDashboardLevelRelations(e){return s(this,null,function*(){if(!e)return;const t=this._buildWhereAnd([["dashboard_record_uid","=",e]]),l=(yield this._listRelations(t)).filter(a=>this._isDashboardLevel(a));for(const a of l)yield this._deleteByRelation(a)})},deleteRelationsByLayerHierarchy(e,t,o){return s(this,null,function*(){if(!e||!t||!o)return;const l=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",o]]),a=yield this._listRelations(l),d=a.filter(r=>this._isComponentLevel(r)),h=a.filter(r=>this._isLayerLevel(r));for(const r of d)yield this._deleteByRelation(r);for(const r of h)yield this._deleteByRelation(r)})},deleteRelationsBySheetHierarchy(e,t){return s(this,null,function*(){if(!e||!t)return;const o=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t]]),l=yield this._listRelations(o),a=l.filter(r=>this._isComponentLevel(r)),d=l.filter(r=>this._isLayerLevel(r)),h=l.filter(r=>this._isSheetLevel(r));for(const r of a)yield this._deleteByRelation(r);for(const r of d)yield this._deleteByRelation(r);for(const r of h)yield this._deleteByRelation(r)})},deleteRelationsByDashboardHierarchy(e){return s(this,null,function*(){if(!e)return;const t=this._buildWhereAnd([["dashboard_record_uid","=",e]]),o=yield this._listRelations(t),l=o.filter(r=>this._isComponentLevel(r)),a=o.filter(r=>this._isLayerLevel(r)),d=o.filter(r=>this._isSheetLevel(r)),h=o.filter(r=>this._isDashboardLevel(r));for(const r of l)yield this._deleteByRelation(r);for(const r of a)yield this._deleteByRelation(r);for(const r of d)yield this._deleteByRelation(r);for(const r of h)yield this._deleteByRelation(r)})}},ue=i.ref(!1),he=i.ref("all");function _e(e="all"){return he.value=e,ue.value=!0,new Promise(t=>{})}const pe={class:"mix-body"},me={class:"upload-content"},ye={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},fe={class:"upload-text"},ge={key:0,class:"upload-actions"},ve={key:1,class:"viewer-container"},we={key:0,class:"file-info"},be={class:"file-name"},Re=["title"],Me=["src","alt"],Ne={DEFAULT_ICON:q.DEFAULT_ICON,ACTIVE_ICON:q.ACTIVE_ICON,NAME_CN:"图片查看器",NAME_EN:"Photo Viewer",ORDER:2,PLATFORM:["pc","screen","mobile"]},Le={imageDisplayMode:{value:"center",type:"select",options:[{label:"component.photo.center",value:"center"},{label:"component.photo.tile",value:"tile"},{label:"component.photo.stretch",value:"stretch"}],label:"component.options.imageDisplayMode"},fileUrl:{value:"",type:"string",label:"component.options.fileUrl",placeholder:"请上传素材"},fileName:{value:"",type:"string",label:"component.options.fileName",placeholder:"请上传素材"},materialUid:{value:"",type:"string",label:"component.options.materialUid",placeholder:"素材UID"}},Ee=[],Se=[],Be=[],Ce=null,Ae={DEFAULT:Ne,OPTIONS:Le,DATA:Ee,PARAMS:Se,SOURCE:Be,COMMON:Ce},Ue=i.defineComponent(L(b({},Ae),{__name:"photo",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(e){const{t}=re.useI18n(),o=y.useCounterStore(),l=se(),a=e;class d extends ne.BaseComponent{extractStyles(){return{imageDisplayMode:this.getOptionValue("imageDisplayMode","center"),radiusSize:this.getOptionValue("radiusSize",0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),j()}}const h=new d(a,"photo");h.setupLifecycle();const r=h.getStyle(),f=i.ref(null),v=i.ref(""),p=i.ref(""),R=i.ref(""),k=i.ref(!1),D=i.ref(!1),$=n=>A.buildMaterialFileUrlByMaterialPath(n),j=()=>s(null,null,function*(){var c,u,_;const{conf:n}=a;(u=(c=n==null?void 0:n.options)==null?void 0:c.fileUrl)!=null&&u.value&&(v.value=$(n.options.fileUrl.value),yield V(),R.value=((_=n.options.fileName)==null?void 0:_.value)||"")}),P=n=>{n&&n.startsWith("blob:")&&URL.revokeObjectURL(n)},V=()=>s(null,null,function*(){if(v.value)try{const n=y.resolveHttpAuthTokenForFetch();if(!n){p.value="";return}const c=A.encodeMaterialFileRequestUrl(v.value),u=yield fetch(c,{mode:"cors",credentials:"include",headers:{Authorization:`Bearer ${n}`}});if(!u.ok)throw new Error(`load image failed: ${u.status}`);const _=yield u.blob(),g=URL.createObjectURL(_);P(p.value),p.value=g}catch(n){console.error("[Photo] 拉取图片失败:",n),P(p.value),p.value=""}}),H=i.computed(()=>({width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})),J=i.computed(()=>{var c;const n=(c=r==null?void 0:r.value)==null?void 0:c.imageDisplayMode;return n==="tile"?{display:"none"}:n==="stretch"?{width:"100%",height:"100%",objectFit:"fill"}:{width:"100%",height:"100%",objectFit:"contain"}}),G=i.computed(()=>{var n;return((n=r==null?void 0:r.value)==null?void 0:n.imageDisplayMode)!=="tile"||!p.value?{}:{width:"100%",height:"100%",backgroundImage:`url(${p.value})`,backgroundRepeat:"repeat",backgroundPosition:"center center"}}),O=i.computed(()=>{const n=l.params.id;return n?String(n):""}),x=n=>{var u;const c=((u=o.pageData)==null?void 0:u.sheets)||[];for(const _ of c){const g=_.id,M=_.caption||_.name||_.id,E=_.layers||[];for(const w of E){const S=w.id,B=w.caption||w.name||w.id,C=w.components||[];for(const m of C)if((m==null?void 0:m.id)===n){const N=m.caption||m.name||m.id;return{sheetId:g,layerId:S,sheetName:M,layerName:B,componentName:N}}}}return{sheetId:"",layerId:"",sheetName:"",layerName:"",componentName:""}},Z=n=>s(null,null,function*(){var g;if(!O.value)return;const c=a.uid||((g=a.conf)==null?void 0:g.id);if(!c||!n)return;const{sheetId:u,layerId:_}=x(c);try{yield W.deleteComponentRelations(O.value,u,_,c),yield W.createMaterialRelation({dashboard_record_uid:O.value,material_uid:n,sheet_id:u||void 0,layer_id:_||void 0,component_id:c})}catch(M){console.warn("[Photo] 同步素材关联失败:",M)}}),z=()=>s(null,null,function*(){try{const n=yield _e("image");if(n){if(console.log("[Photo] 选中的素材:",n),console.log("[Photo] material_path:",n.material_path),console.log("[Photo] thumbnail:",n.thumbnail),console.log("[Photo] file_id:",n.file_id),!n.material_path){I.ElMessage.warning("该素材缺少 material_path,无法获取原图"),console.warn("[Photo] 素材缺少 material_path");return}const c=String(n.material_path).trim(),u=A.buildMaterialFileUrlByMaterialPath(c);console.log("[Photo] 原图URL:",u),v.value=u,yield V(),R.value=n.name,a.conf&&a.conf.options&&(a.conf.options.fileUrl||(a.conf.options.fileUrl={value:"",type:"string",label:""}),a.conf.options.fileName||(a.conf.options.fileName={value:"",type:"string",label:""}),a.conf.options.materialUid||(a.conf.options.materialUid={value:"",type:"string",label:""}),a.conf.options.fileUrl.value=c,a.conf.options.fileName.value=n.name,a.conf.options.materialUid.value=n.uid,console.log("[Photo] 配置已保存:",{fileUrl:a.conf.options.fileUrl.value,fileName:a.conf.options.fileName.value,materialUid:a.conf.options.materialUid.value})),console.log("[Photo] uploadedFileUrl.value:",p.value),I.ElMessage.success(t("component.photo.materialSelected")||"素材选择成功"),yield Z(n.uid)}else console.log("[Photo] 用户取消选择")}catch(n){console.error("[Photo] 素材选择失败:",n),I.ElMessage.error("素材选择失败")}}),K=()=>{P(p.value),p.value="",v.value="",R.value="",a.mode!=="preview"&&z()},Q=()=>{k.value=!1,f.value,console.log("图片加载成功")},X=n=>{var g,M,E,w,S,B,C;if(console.error("图片加载失败:",n),k.value||D.value)return;const c=a.uid||((g=a.conf)==null?void 0:g.id)||"",u=c?x(c):null;u&&(u.sheetName||u.layerName||u.componentName)?`${u.sheetName||"-"}${u.layerName||"-"}${u.componentName||"-"}`:R.value;const _=String(((w=(E=(M=a.conf)==null?void 0:M.options)==null?void 0:E.materialUid)==null?void 0:w.value)||((C=(B=(S=a.conf)==null?void 0:S.options)==null?void 0:B.imageUid)==null?void 0:C.value)||"").trim();_&&(D.value=!0,de.getMaterialItem(_).then(m=>{if(U(m==null?void 0:m.code)&&(m!=null&&m.result)){const N=m.result;N!=null&&N.material_path&&(v.value=A.buildMaterialFileUrlByMaterialPath(String(N.material_path).trim()),V());return}k.value=!0}).catch(()=>{}).finally(()=>{D.value=!1}))};return i.onMounted(()=>{}),i.onBeforeUnmount(()=>{p.value&&p.value.startsWith("blob:")&&URL.revokeObjectURL(p.value)}),(n,c)=>{var _,g;const u=ie.ElButton;return i.openBlock(),i.createElementBlock("div",{class:"mix-component",style:i.normalizeStyle({borderRadius:`${i.unref(r).radiusSize}px`})},[i.createElementVNode("div",pe,[p.value?(i.openBlock(),i.createElementBlock("div",ve,[a.mode!=="preview"?(i.openBlock(),i.createElementBlock("div",we,[i.createElementVNode("span",be,i.toDisplayString(R.value),1),i.createElementVNode("button",{class:"change-file-btn",onClick:K,title:i.unref(t)("component.photo.changeFile")||"更换文件"},[...c[1]||(c[1]=[i.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[i.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])],8,Re)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"image-container",style:i.normalizeStyle(H.value)},[i.createElementVNode("img",{ref_key:"imageRef",ref:f,src:p.value,alt:R.value,style:i.normalizeStyle(J.value),onLoad:Q,onError:X},null,44,Me),((g=(_=i.unref(r))==null?void 0:_.value)==null?void 0:g.imageDisplayMode)==="tile"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"tiled-background",style:i.normalizeStyle(G.value)},null,4)):i.createCommentVNode("",!0)],4)])):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["upload-area",{"preview-mode":a.mode==="preview"}])},[i.createElementVNode("div",me,[(i.openBlock(),i.createElementBlock("svg",ye,[...c[0]||(c[0]=[i.createElementVNode("path",{d:"M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z"},null,-1)])])),i.createElementVNode("p",fe,i.toDisplayString(a.mode==="preview"?"未上传素材":i.unref(t)("component.photo.selectFromLibrary")||"从素材库选择"),1),a.mode!=="preview"?(i.openBlock(),i.createElementBlock("div",ge,[i.createVNode(u,{type:"primary",size:"small",onClick:z},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(t)("component.photo.selectFromLibrary")||"从素材库选择"),1)]),_:1})])):i.createCommentVNode("",!0)])],2))]),i.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),ke=y._export_sfc(Ue,[["__scopeId","data-v-57314f5b"]]);exports.default=ke;
1
+ "use strict";var Y=Object.defineProperty,ee=Object.defineProperties;var te=Object.getOwnPropertyDescriptors;var F=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var T=(e,t,o)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,b=(e,t)=>{for(var o in t||(t={}))oe.call(t,o)&&T(e,o,t[o]);if(F)for(var o of F(t))ae.call(t,o)&&T(e,o,t[o]);return e},L=(e,t)=>ee(e,te(t));var s=(e,t,o)=>new Promise((l,a)=>{var d=f=>{try{r(o.next(f))}catch(v){a(v)}},h=f=>{try{r(o.throw(f))}catch(v){a(v)}},r=f=>f.done?l(f.value):Promise.resolve(f.value).then(d,h);r((o=o.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");const i=require("vue"),re=require("./vue-i18n-BvHMBi_b.cjs"),ne=require("./BaseComponent-BmhMoM4H.cjs"),y=require("./index-77aUdspY.cjs"),A=require("./materialFileUrl-DfPNm265.cjs"),I=require("element-plus"),q=require("./ele-bmp-icon-BBI0-SX7.cjs");process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;const le=Symbol(process.env.NODE_ENV!=="production"?"route location":"");process.env.NODE_ENV;function se(e){return i.inject(le)}const U=e=>{const t=typeof e=="string"?Number(e):e;return t===0||t===200},ce=(e,t)=>{if(e&&String(e).trim()){const o=String(e).trim();if(o.startsWith("http://")||o.startsWith("https://"))try{return new URL(o).pathname||""}catch(l){return o}return o.startsWith("/")?o:`/${o}`}return t?`/yunfiles/material/file/${t}`:""},de={uploadFile(e){return s(this,null,function*(){var l;const t=new FormData;t.append("file",e);const o=yield y.api.upload(t,!0);if(U(o.code)&&((l=o.result)!=null&&l.url))return o.result.url;throw new Error(o.msg||"文件上传失败")})},uploadMaterialGetPath(e,t){return s(this,null,function*(){var d,h;const l={material_data:e.includes(",")?e.split(",")[1]:e,material_type:t||"png"},a=yield y.api.post("upload_material",l,!0);if(U(a.code)&&a.result){const r=a.result,f=ce(r.material_path||r.relative_path||"",r.file_id);if(f)return L(b({},r),{material_path:f,material_size:(h=(d=r.material_size)!=null?d:r.file_size)!=null?h:0,material_type:r.material_type||r.mime_type||t||"png",name:r.name||r.file_name||""})}throw new Error(a.info||a.msg||"上传原图获取路径失败")})},createMaterial(e){return s(this,null,function*(){var o;const t=yield y.api.post("create_dashboard_material",e,!0);if(U(t.code)&&((o=t.result)!=null&&o.uid))return t.result;throw new Error(t.info||t.msg||"创建素材失败")})},uploadAndCreateMaterial(o){return s(this,arguments,function*(e,t={}){var h;const l=((h=e.name.split(".").pop())==null?void 0:h.toLowerCase())||"png",a=yield this._fileToBase64(e),d=yield this.uploadMaterialGetPath(a,l);if(d.uid)return{uid:d.uid};throw new Error("upload_material 未返回 uid")})},_fileToBase64(e){return new Promise((t,o)=>{const l=new FileReader;l.onload=()=>t(l.result),l.onerror=()=>o(new Error("文件读取失败")),l.readAsDataURL(e)})},getMaterialList(){return s(this,arguments,function*(e={}){const t=b({page_index:e.page_index||1,page_size:e.page_size||20,order_by:e.order_by||"created",order_type:e.order_type||"desc"},e);return yield y.api.post("get_dashboard_material_list",t)})},getMyMaterialList(){return s(this,arguments,function*(e={}){const t=b({page_index:e.page_index||1,page_size:e.page_size||20,order_by:e.order_by||"created",order_type:e.order_type||"desc"},e);return yield y.api.post("get_my_dashboard_material_list",t)})},getMaterialItem(e){return s(this,null,function*(){return yield y.api.post("get_dashboard_material_item",{uid:e})})},updateMaterial(e){return s(this,null,function*(){return yield y.api.post("update_dashboard_material",e,!0)})},deleteMaterial(e){return s(this,null,function*(){return yield y.api.post("delete_dashboard_material",{uid:e},!0)})},deleteMaterialByPath(e){return s(this,null,function*(){var o;if(!e||!String(e).trim())return;const t=String(e).replace(/^\//,"");try{const l=yield this.getMyMaterialList({page_index:1,page_size:10,where_and:JSON.stringify([["material_path","=",t]])}),a=(o=l==null?void 0:l.result)==null?void 0:o.data;Array.isArray(a)&&a.length>0&&a[0].uid&&(yield this.deleteMaterial(a[0].uid))}catch(l){}})}},W={_buildWhereAnd(e){return JSON.stringify(e.filter(([,,t])=>t!=null))},_isEmptyId(e){return e==null||String(e).trim()===""},_isComponentLevel(e){return!this._isEmptyId(e.component_id)},_isLayerLevel(e){return this._isEmptyId(e.component_id)&&!this._isEmptyId(e.layer_id)},_isSheetLevel(e){return this._isEmptyId(e.component_id)&&this._isEmptyId(e.layer_id)&&!this._isEmptyId(e.sheet_id)},_isDashboardLevel(e){return this._isEmptyId(e.component_id)&&this._isEmptyId(e.layer_id)&&this._isEmptyId(e.sheet_id)},_listRelations(e){return s(this,null,function*(){var o;const t=yield this.getMaterialRelationList({page_index:1,page_size:999,where_and:e});return((o=t==null?void 0:t.result)==null?void 0:o.data)||[]})},_deleteByUid(e,t){return s(this,null,function*(){t&&(yield this.deleteMaterialRelation({dashboard_record_uid:e,uid:t}))})},_deleteByRelation(e){return s(this,null,function*(){e!=null&&e.dashboard_record_uid&&(yield this.deleteMaterialRelation({dashboard_record_uid:e.dashboard_record_uid,dashboard_id:e.dashboard_id,sheet_id:e.sheet_id,layer_id:e.layer_id,component_id:e.component_id,uid:e.uid}))})},_deleteRelationList(e,t){return s(this,null,function*(){for(const o of t)yield this._deleteByUid(e,o.uid)})},createMaterialRelation(e){return s(this,null,function*(){return yield y.api.post("create_dashboard_materials_relation",e,!0)})},deleteMaterialRelation(e){return s(this,null,function*(){return yield y.api.post("delete_dashboard_materials_relation",e,!0)})},getMaterialRelationList(){return s(this,arguments,function*(e={}){const t=b({page_index:e.page_index||1,page_size:e.page_size||20,order_by:e.order_by||"created",order_type:e.order_type||"desc"},e);return!e.order_by&&!e.order_type&&e.order?t.order=e.order:delete t.order,yield y.api.post("get_my_dashboard_materials_relation_list",t)})},getMaterialRelationsByDashboard(o){return s(this,arguments,function*(e,t={}){const l=JSON.stringify([["dashboard_record_uid","=",e]]);return yield this.getMaterialRelationList(L(b({},t),{where_and:l}))})},getMaterialRelationByComponent(l,a){return s(this,arguments,function*(e,t,o={}){const d=JSON.stringify([["dashboard_record_uid","=",e],["component_id","=",t]]);return yield this.getMaterialRelationList(L(b({},o),{where_and:d}))})},getRelationsByMaterial(e){return s(this,null,function*(){var l;if(!e)return[];const t=JSON.stringify([["material_uid","=",e]]),o=yield this.getMaterialRelationList({page_index:1,page_size:999,where_and:t});return((l=o==null?void 0:o.result)==null?void 0:l.data)||[]})},getMaterialUsageSummary(e){return s(this,null,function*(){const t=yield this.getRelationsByMaterial(e),o=new Set;return t.forEach(l=>{const a=String(l.dashboard_record_uid||"").trim();a&&o.add(a)}),{relationCount:t.length,dashboardCount:o.size,relations:t}})},deleteAllRelationsByMaterial(e){return s(this,null,function*(){const t=yield this.getRelationsByMaterial(e);for(const o of t)!(o!=null&&o.uid)||!(o!=null&&o.dashboard_record_uid)||(yield this.deleteMaterialRelation({dashboard_record_uid:o.dashboard_record_uid,uid:o.uid}));return t.length})},deleteAllRelationsByDashboard(e){return s(this,null,function*(){return yield this.deleteRelationsByDashboardHierarchy(e)})},deleteRelationByComponent(e,t){return s(this,null,function*(){return yield this.deleteMaterialRelation({dashboard_record_uid:e,component_id:t})})},deleteComponentRelations(e,t,o,l){return s(this,null,function*(){if(!e||!t||!o||!l)return;const a=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",o],["component_id","=",l]]),d=yield this._listRelations(a);for(const h of d)yield this._deleteByRelation(h)})},deleteLayerLevelRelations(e,t,o){return s(this,null,function*(){if(!e||!t||!o)return;const l=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",o]]),d=(yield this._listRelations(l)).filter(h=>this._isLayerLevel(h));for(const h of d)yield this._deleteByRelation(h)})},deleteSheetLevelRelations(e,t){return s(this,null,function*(){if(!e||!t)return;const o=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t]]),a=(yield this._listRelations(o)).filter(d=>this._isSheetLevel(d));for(const d of a)yield this._deleteByRelation(d)})},deleteDashboardLevelRelations(e){return s(this,null,function*(){if(!e)return;const t=this._buildWhereAnd([["dashboard_record_uid","=",e]]),l=(yield this._listRelations(t)).filter(a=>this._isDashboardLevel(a));for(const a of l)yield this._deleteByRelation(a)})},deleteRelationsByLayerHierarchy(e,t,o){return s(this,null,function*(){if(!e||!t||!o)return;const l=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",o]]),a=yield this._listRelations(l),d=a.filter(r=>this._isComponentLevel(r)),h=a.filter(r=>this._isLayerLevel(r));for(const r of d)yield this._deleteByRelation(r);for(const r of h)yield this._deleteByRelation(r)})},deleteRelationsBySheetHierarchy(e,t){return s(this,null,function*(){if(!e||!t)return;const o=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t]]),l=yield this._listRelations(o),a=l.filter(r=>this._isComponentLevel(r)),d=l.filter(r=>this._isLayerLevel(r)),h=l.filter(r=>this._isSheetLevel(r));for(const r of a)yield this._deleteByRelation(r);for(const r of d)yield this._deleteByRelation(r);for(const r of h)yield this._deleteByRelation(r)})},deleteRelationsByDashboardHierarchy(e){return s(this,null,function*(){if(!e)return;const t=this._buildWhereAnd([["dashboard_record_uid","=",e]]),o=yield this._listRelations(t),l=o.filter(r=>this._isComponentLevel(r)),a=o.filter(r=>this._isLayerLevel(r)),d=o.filter(r=>this._isSheetLevel(r)),h=o.filter(r=>this._isDashboardLevel(r));for(const r of l)yield this._deleteByRelation(r);for(const r of a)yield this._deleteByRelation(r);for(const r of d)yield this._deleteByRelation(r);for(const r of h)yield this._deleteByRelation(r)})}},ue=i.ref(!1),he=i.ref("all");function _e(e="all"){return he.value=e,ue.value=!0,new Promise(t=>{})}const pe={class:"mix-body"},me={class:"upload-content"},ye={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},fe={class:"upload-text"},ge={key:0,class:"upload-actions"},ve={key:1,class:"viewer-container"},we={key:0,class:"file-info"},be={class:"file-name"},Re=["title"],Me=["src","alt"],Ne={DEFAULT_ICON:q.DEFAULT_ICON,ACTIVE_ICON:q.ACTIVE_ICON,NAME_CN:"图片查看器",NAME_EN:"Photo Viewer",ORDER:2,PLATFORM:["pc","screen","mobile"]},Le={imageDisplayMode:{value:"center",type:"select",options:[{label:"component.photo.center",value:"center"},{label:"component.photo.tile",value:"tile"},{label:"component.photo.stretch",value:"stretch"}],label:"component.options.imageDisplayMode"},fileUrl:{value:"",type:"string",label:"component.options.fileUrl",placeholder:"请上传素材"},fileName:{value:"",type:"string",label:"component.options.fileName",placeholder:"请上传素材"},materialUid:{value:"",type:"string",label:"component.options.materialUid",placeholder:"素材UID"}},Ee=[],Se=[],Be=[],Ce=null,Ae={DEFAULT:Ne,OPTIONS:Le,DATA:Ee,PARAMS:Se,SOURCE:Be,COMMON:Ce},Ue=i.defineComponent(L(b({},Ae),{__name:"photo",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(e){const{t}=re.useI18n(),o=y.useCounterStore(),l=se(),a=e;class d extends ne.BaseComponent{extractStyles(){return{imageDisplayMode:this.getOptionValue("imageDisplayMode","center"),radiusSize:this.getOptionValue("radiusSize",0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),j()}}const h=new d(a,"photo");h.setupLifecycle();const r=h.getStyle(),f=i.ref(null),v=i.ref(""),p=i.ref(""),R=i.ref(""),k=i.ref(!1),D=i.ref(!1),$=n=>A.buildMaterialFileUrlByMaterialPath(n),j=()=>s(null,null,function*(){var c,u,_;const{conf:n}=a;(u=(c=n==null?void 0:n.options)==null?void 0:c.fileUrl)!=null&&u.value&&(v.value=$(n.options.fileUrl.value),yield V(),R.value=((_=n.options.fileName)==null?void 0:_.value)||"")}),P=n=>{n&&n.startsWith("blob:")&&URL.revokeObjectURL(n)},V=()=>s(null,null,function*(){if(v.value)try{const n=y.resolveHttpAuthTokenForFetch();if(!n){p.value="";return}const c=A.encodeMaterialFileRequestUrl(v.value),u=yield fetch(c,{mode:"cors",credentials:"include",headers:{Authorization:`Bearer ${n}`}});if(!u.ok)throw new Error(`load image failed: ${u.status}`);const _=yield u.blob(),g=URL.createObjectURL(_);P(p.value),p.value=g}catch(n){console.error("[Photo] 拉取图片失败:",n),P(p.value),p.value=""}}),H=i.computed(()=>({width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})),J=i.computed(()=>{var c;const n=(c=r==null?void 0:r.value)==null?void 0:c.imageDisplayMode;return n==="tile"?{display:"none"}:n==="stretch"?{width:"100%",height:"100%",objectFit:"fill"}:{width:"100%",height:"100%",objectFit:"contain"}}),G=i.computed(()=>{var n;return((n=r==null?void 0:r.value)==null?void 0:n.imageDisplayMode)!=="tile"||!p.value?{}:{width:"100%",height:"100%",backgroundImage:`url(${p.value})`,backgroundRepeat:"repeat",backgroundPosition:"center center"}}),O=i.computed(()=>{const n=l.params.id;return n?String(n):""}),x=n=>{var u;const c=((u=o.pageData)==null?void 0:u.sheets)||[];for(const _ of c){const g=_.id,M=_.caption||_.name||_.id,E=_.layers||[];for(const w of E){const S=w.id,B=w.caption||w.name||w.id,C=w.components||[];for(const m of C)if((m==null?void 0:m.id)===n){const N=m.caption||m.name||m.id;return{sheetId:g,layerId:S,sheetName:M,layerName:B,componentName:N}}}}return{sheetId:"",layerId:"",sheetName:"",layerName:"",componentName:""}},Z=n=>s(null,null,function*(){var g;if(!O.value)return;const c=a.uid||((g=a.conf)==null?void 0:g.id);if(!c||!n)return;const{sheetId:u,layerId:_}=x(c);try{yield W.deleteComponentRelations(O.value,u,_,c),yield W.createMaterialRelation({dashboard_record_uid:O.value,material_uid:n,sheet_id:u||void 0,layer_id:_||void 0,component_id:c})}catch(M){console.warn("[Photo] 同步素材关联失败:",M)}}),z=()=>s(null,null,function*(){try{const n=yield _e("image");if(n){if(console.log("[Photo] 选中的素材:",n),console.log("[Photo] material_path:",n.material_path),console.log("[Photo] thumbnail:",n.thumbnail),console.log("[Photo] file_id:",n.file_id),!n.material_path){I.ElMessage.warning("该素材缺少 material_path,无法获取原图"),console.warn("[Photo] 素材缺少 material_path");return}const c=String(n.material_path).trim(),u=A.buildMaterialFileUrlByMaterialPath(c);console.log("[Photo] 原图URL:",u),v.value=u,yield V(),R.value=n.name,a.conf&&a.conf.options&&(a.conf.options.fileUrl||(a.conf.options.fileUrl={value:"",type:"string",label:""}),a.conf.options.fileName||(a.conf.options.fileName={value:"",type:"string",label:""}),a.conf.options.materialUid||(a.conf.options.materialUid={value:"",type:"string",label:""}),a.conf.options.fileUrl.value=c,a.conf.options.fileName.value=n.name,a.conf.options.materialUid.value=n.uid,console.log("[Photo] 配置已保存:",{fileUrl:a.conf.options.fileUrl.value,fileName:a.conf.options.fileName.value,materialUid:a.conf.options.materialUid.value})),console.log("[Photo] uploadedFileUrl.value:",p.value),I.ElMessage.success(t("component.photo.materialSelected")||"素材选择成功"),yield Z(n.uid)}else console.log("[Photo] 用户取消选择")}catch(n){console.error("[Photo] 素材选择失败:",n),I.ElMessage.error("素材选择失败")}}),K=()=>{P(p.value),p.value="",v.value="",R.value="",a.mode!=="preview"&&z()},Q=()=>{k.value=!1,f.value,console.log("图片加载成功")},X=n=>{var g,M,E,w,S,B,C;if(console.error("图片加载失败:",n),k.value||D.value)return;const c=a.uid||((g=a.conf)==null?void 0:g.id)||"",u=c?x(c):null;u&&(u.sheetName||u.layerName||u.componentName)?`${u.sheetName||"-"}${u.layerName||"-"}${u.componentName||"-"}`:R.value;const _=String(((w=(E=(M=a.conf)==null?void 0:M.options)==null?void 0:E.materialUid)==null?void 0:w.value)||((C=(B=(S=a.conf)==null?void 0:S.options)==null?void 0:B.imageUid)==null?void 0:C.value)||"").trim();_&&(D.value=!0,de.getMaterialItem(_).then(m=>{if(U(m==null?void 0:m.code)&&(m!=null&&m.result)){const N=m.result;N!=null&&N.material_path&&(v.value=A.buildMaterialFileUrlByMaterialPath(String(N.material_path).trim()),V());return}k.value=!0}).catch(()=>{}).finally(()=>{D.value=!1}))};return i.onMounted(()=>{}),i.onBeforeUnmount(()=>{p.value&&p.value.startsWith("blob:")&&URL.revokeObjectURL(p.value)}),(n,c)=>{var _,g;const u=ie.ElButton;return i.openBlock(),i.createElementBlock("div",{class:"mix-component",style:i.normalizeStyle({borderRadius:`${i.unref(r).radiusSize}px`})},[i.createElementVNode("div",pe,[p.value?(i.openBlock(),i.createElementBlock("div",ve,[a.mode!=="preview"?(i.openBlock(),i.createElementBlock("div",we,[i.createElementVNode("span",be,i.toDisplayString(R.value),1),i.createElementVNode("button",{class:"change-file-btn",onClick:K,title:i.unref(t)("component.photo.changeFile")||"更换文件"},[...c[1]||(c[1]=[i.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[i.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])],8,Re)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"image-container",style:i.normalizeStyle(H.value)},[i.createElementVNode("img",{ref_key:"imageRef",ref:f,src:p.value,alt:R.value,style:i.normalizeStyle(J.value),onLoad:Q,onError:X},null,44,Me),((g=(_=i.unref(r))==null?void 0:_.value)==null?void 0:g.imageDisplayMode)==="tile"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"tiled-background",style:i.normalizeStyle(G.value)},null,4)):i.createCommentVNode("",!0)],4)])):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["upload-area",{"preview-mode":a.mode==="preview"}])},[i.createElementVNode("div",me,[(i.openBlock(),i.createElementBlock("svg",ye,[...c[0]||(c[0]=[i.createElementVNode("path",{d:"M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z"},null,-1)])])),i.createElementVNode("p",fe,i.toDisplayString(a.mode==="preview"?"未上传素材":i.unref(t)("component.photo.selectFromLibrary")||"从素材库选择"),1),a.mode!=="preview"?(i.openBlock(),i.createElementBlock("div",ge,[i.createVNode(u,{type:"primary",size:"small",onClick:z},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(t)("component.photo.selectFromLibrary")||"从素材库选择"),1)]),_:1})])):i.createCommentVNode("",!0)])],2))]),i.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),ke=y._export_sfc(Ue,[["__scopeId","data-v-57314f5b"]]);exports.default=ke;
@@ -1,2 +1,2 @@
1
- "use strict";var $=Object.defineProperty,A=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var C=(r,a,c)=>a in r?$(r,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[a]=c,d=(r,a)=>{for(var c in a||(a={}))N.call(a,c)&&C(r,c,a[c]);if(w)for(var c of w(a))j.call(a,c)&&C(r,c,a[c]);return r},f=(r,a)=>A(r,I(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),b=require("./index-BzWbqJIl.cjs");require("element-plus");const k=require("./EChartComponentBase-D7_ZiE7P.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),S=require("./ele-pie-icon-BNhXPoUT.cjs"),y=require("./installCanvasRenderer-CyhM1Qpl.cjs"),R=require("./install-DV5cEgNV.cjs"),B=require("./install-CltTFs4e.cjs"),T=require("./install-nDY6w-GK.cjs"),q={class:"mix-body"},D=["id"],P={DEFAULT_ICON:S.DEFAULT_ICON,ACTIVE_ICON:S.ACTIVE_ICON,NAME_CN:"饼状图",NAME_EN:"Pie",ORDER:1,PLATFORM:["pc","screen","mobile"]},M={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,type:{value:"pie",type:"radio",option:[{value:"pie",label:"component.options.pie_type_pie"},{value:"circle",label:"component.options.pie_type_circle"}],label:"component.options.pie_type"},radius:{value:50,type:"number",label:"component.options.pie_radius",dependent:"type",repel:"circle"},inside:{value:40,type:"number",label:"component.options.pie_inside",dependent:"type",repel:"pie"},outside:{value:75,type:"number",label:"component.options.pie_outside",dependent:"type",repel:"pie"},isHideTitle:!1,showLabel:!1,showLegend:!0,orient:{value:"horizontal",type:"radio",option:[{value:"horizontal",label:"component.options.orient_horizontal"},{value:"vertical",label:"component.options.orient_vertical"}],label:"component.options.orient",dependent:"showLegend"},showValue:!0,showRate:!1,wrap:!1,wrapByte:{value:5,type:"number",label:"component.options.pie_wrapByte",dependent:"wrap"}},H=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"},{name:"参数二",fv:"",object_id:"",color:"#3bbc6a"},{name:"参数三",fv:"",object_id:"",color:"#e24359"}],F=["name","fv","object_id","color"],U=["mosaic","statistics","calculate"],G={useAlias:!1,multiObject:!1,source:"mosaic"},K={DEFAULT:P,OPTIONS:M,DATA:H,PARAMS:F,SOURCE:U,COMMON:G},X=l.defineComponent(f(d({},K),{__name:"pie",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){y.use([R.install,B.install,y.install,y.install$1,T.install]);const a=r,c=b.useLinkStore(),_={horizontal:{orient:"horizontal",bottom:"5%",left:"center"},vertical:{orient:"vertical",right:"5%",top:"5%"}};class V extends k.EChartComponentBase{initChart(){var e,o;super.initChart(),this.props.mode==="preview"&&((e=this.chartObj)==null||e.off("click"),(o=this.chartObj)==null||o.on("click",t=>{var i,s,p,u,h,O;const n=t==null?void 0:t.name;if(typeof n=="string"&&n){const x=((s=(i=this.props.conf)==null?void 0:i.options)==null?void 0:s.linkChannel)==="custom"?(u=(p=this.props.conf)==null?void 0:p.options)==null?void 0:u.customChannel:(O=(h=this.props.conf)==null?void 0:h.options)==null?void 0:O.linkChannel;c.publish(x||"pie","pie",{objectId:"",deviceId:"",type:"select",fieldKey:n,fv:d({key:n},t),source:"pie"})}}))}extractStyles(){return f(d({},super.extractStyles()),{type:this.getOptionValue("type","pie"),radius:this.getOptionValue("radius",50),inside:this.getOptionValue("inside",40),outside:this.getOptionValue("outside",75),showLabel:this.getOptionValue("showLabel",!1),showLegend:this.getOptionValue("showLegend",!0),orient:this.getOptionValue("orient","horizontal"),showValue:this.getOptionValue("showValue",!0),showRate:this.getOptionValue("showRate",!1),wrap:this.getOptionValue("wrap",!1),wrapByte:this.getOptionValue("wrapByte",5)})}getChartOption(){const e=this.Style.value,{data:o,name:t}=this.props.conf,n=o.map((i,s)=>i.color||b.COLORS[s]);return{title:{show:!1,text:t||"",x:"center"},color:n,tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:f(d({show:e.showLegend},_[e.orient]),{data:o.map(i=>i.name),textStyle:{color:e.textColor}}),series:this.formatSeries()}}formatSeries(){const e=this.Style.value,{data:o,name:t}=this.props.conf,n=o.map(s=>({value:0,name:s.name})),i=e.type==="pie"?`${e.radius}%`:[`${e.inside}%`,`${e.outside}%`];return[{name:t,type:"pie",radius:i,center:["50%","40%"],data:n,emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{color:e.textColor,lineHeight:16,fontSize:e.textSize,formatter:s=>this.formatLabel(s)}}]}formatLabel(e){const o=this.Style.value;let t=e.name;return o.showValue&&o.showRate?t=`${e.name}: ${e.value}(${e.percent}%)`:o.showValue?t=`${e.name}: ${e.value}`:o.showRate&&(t=`${e.name}${e.percent}%`),this.insertBreaks(t)}insertBreaks(e){const o=this.Style.value;if(!o.wrap)return e;const t=o.wrapByte||5;let n="",i=0,s=0;for(const p of e)p.charCodeAt(0)>=19968&&p.charCodeAt(0)<=40959?(s++,i+=2):i+=1,n+=p,(s>=t||i>=t*2)&&(n+=`
1
+ "use strict";var $=Object.defineProperty,A=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var C=(r,a,c)=>a in r?$(r,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[a]=c,d=(r,a)=>{for(var c in a||(a={}))N.call(a,c)&&C(r,c,a[c]);if(w)for(var c of w(a))j.call(a,c)&&C(r,c,a[c]);return r},f=(r,a)=>A(r,I(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),b=require("./index-77aUdspY.cjs");require("element-plus");const k=require("./EChartComponentBase-D9EUh4BZ.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),S=require("./ele-pie-icon-BNhXPoUT.cjs"),y=require("./installCanvasRenderer-CyhM1Qpl.cjs"),R=require("./install-DV5cEgNV.cjs"),B=require("./install-CltTFs4e.cjs"),T=require("./install-nDY6w-GK.cjs"),q={class:"mix-body"},D=["id"],P={DEFAULT_ICON:S.DEFAULT_ICON,ACTIVE_ICON:S.ACTIVE_ICON,NAME_CN:"饼状图",NAME_EN:"Pie",ORDER:1,PLATFORM:["pc","screen","mobile"]},M={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,type:{value:"pie",type:"radio",option:[{value:"pie",label:"component.options.pie_type_pie"},{value:"circle",label:"component.options.pie_type_circle"}],label:"component.options.pie_type"},radius:{value:50,type:"number",label:"component.options.pie_radius",dependent:"type",repel:"circle"},inside:{value:40,type:"number",label:"component.options.pie_inside",dependent:"type",repel:"pie"},outside:{value:75,type:"number",label:"component.options.pie_outside",dependent:"type",repel:"pie"},isHideTitle:!1,showLabel:!1,showLegend:!0,orient:{value:"horizontal",type:"radio",option:[{value:"horizontal",label:"component.options.orient_horizontal"},{value:"vertical",label:"component.options.orient_vertical"}],label:"component.options.orient",dependent:"showLegend"},showValue:!0,showRate:!1,wrap:!1,wrapByte:{value:5,type:"number",label:"component.options.pie_wrapByte",dependent:"wrap"}},H=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"},{name:"参数二",fv:"",object_id:"",color:"#3bbc6a"},{name:"参数三",fv:"",object_id:"",color:"#e24359"}],F=["name","fv","object_id","color"],U=["mosaic","statistics","calculate"],G={useAlias:!1,multiObject:!1,source:"mosaic"},K={DEFAULT:P,OPTIONS:M,DATA:H,PARAMS:F,SOURCE:U,COMMON:G},X=l.defineComponent(f(d({},K),{__name:"pie",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){y.use([R.install,B.install,y.install,y.install$1,T.install]);const a=r,c=b.useLinkStore(),_={horizontal:{orient:"horizontal",bottom:"5%",left:"center"},vertical:{orient:"vertical",right:"5%",top:"5%"}};class V extends k.EChartComponentBase{initChart(){var e,o;super.initChart(),this.props.mode==="preview"&&((e=this.chartObj)==null||e.off("click"),(o=this.chartObj)==null||o.on("click",t=>{var i,s,p,u,h,O;const n=t==null?void 0:t.name;if(typeof n=="string"&&n){const x=((s=(i=this.props.conf)==null?void 0:i.options)==null?void 0:s.linkChannel)==="custom"?(u=(p=this.props.conf)==null?void 0:p.options)==null?void 0:u.customChannel:(O=(h=this.props.conf)==null?void 0:h.options)==null?void 0:O.linkChannel;c.publish(x||"pie","pie",{objectId:"",deviceId:"",type:"select",fieldKey:n,fv:d({key:n},t),source:"pie"})}}))}extractStyles(){return f(d({},super.extractStyles()),{type:this.getOptionValue("type","pie"),radius:this.getOptionValue("radius",50),inside:this.getOptionValue("inside",40),outside:this.getOptionValue("outside",75),showLabel:this.getOptionValue("showLabel",!1),showLegend:this.getOptionValue("showLegend",!0),orient:this.getOptionValue("orient","horizontal"),showValue:this.getOptionValue("showValue",!0),showRate:this.getOptionValue("showRate",!1),wrap:this.getOptionValue("wrap",!1),wrapByte:this.getOptionValue("wrapByte",5)})}getChartOption(){const e=this.Style.value,{data:o,name:t}=this.props.conf,n=o.map((i,s)=>i.color||b.COLORS[s]);return{title:{show:!1,text:t||"",x:"center"},color:n,tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:f(d({show:e.showLegend},_[e.orient]),{data:o.map(i=>i.name),textStyle:{color:e.textColor}}),series:this.formatSeries()}}formatSeries(){const e=this.Style.value,{data:o,name:t}=this.props.conf,n=o.map(s=>({value:0,name:s.name})),i=e.type==="pie"?`${e.radius}%`:[`${e.inside}%`,`${e.outside}%`];return[{name:t,type:"pie",radius:i,center:["50%","40%"],data:n,emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{color:e.textColor,lineHeight:16,fontSize:e.textSize,formatter:s=>this.formatLabel(s)}}]}formatLabel(e){const o=this.Style.value;let t=e.name;return o.showValue&&o.showRate?t=`${e.name}: ${e.value}(${e.percent}%)`:o.showValue?t=`${e.name}: ${e.value}`:o.showRate&&(t=`${e.name}${e.percent}%`),this.insertBreaks(t)}insertBreaks(e){const o=this.Style.value;if(!o.wrap)return e;const t=o.wrapByte||5;let n="",i=0,s=0;for(const p of e)p.charCodeAt(0)>=19968&&p.charCodeAt(0)<=40959?(s++,i+=2):i+=1,n+=p,(s>=t||i>=t*2)&&(n+=`
2
2
  `,s=0,i=0);return n}setHistoryData(e){if(!e||!(e!=null&&e.length))return;const o=this.chartObj.getOption();o.series[0].data.forEach((t,n)=>{var i;t.value=(i=e[n].data[0])!=null?i:0}),this.updateChart(o)}setSocketData(e){if(!e||!this.chartObj)return;const{data:o}=this.props.conf,t=this.chartObj.getOption();o.forEach((n,i)=>{var p,u,h;const s=this.extractDataValue(e,n.fv);(h=(u=(p=t.series)==null?void 0:p[0])==null?void 0:u.data)!=null&&h[i]&&(t.series[0].data[i].value=s!=null?s:0)}),this.updateChart(t)}}const m=new V(a,"pie");m.setupLifecycle();const v=m.getStyle(),E=m.getEchartId(),L=l.computed(()=>z.generateTitleStyle(a.conf.options));return(g,e)=>(l.openBlock(),l.createElementBlock("div",{class:"mix-component",style:l.normalizeStyle({background:l.unref(v).bgColor,borderRadius:`${l.unref(v).radiusSize}px`})},[l.createElementVNode("div",{class:"mix-title",style:l.normalizeStyle(L.value)},l.toDisplayString(r.conf.caption||r.conf.name),5),l.createElementVNode("div",q,[l.createElementVNode("div",{class:"w-full h-full",id:l.unref(E)},null,8,D)]),l.renderSlot(g.$slots,"default",{},void 0,!0)],4))}})),J=b._export_sfc(X,[["__scopeId","data-v-2c38f04d"]]);exports.default=J;
@@ -11,9 +11,9 @@ var O = (l, a, r) => a in l ? L(l, a, { enumerable: !0, configurable: !0, writab
11
11
  return l;
12
12
  }, d = (l, a) => $(l, A(a));
13
13
  import { defineComponent as z, computed as R, openBlock as B, createElementBlock as I, normalizeStyle as _, unref as m, createElementVNode as y, toDisplayString as N, renderSlot as D } from "vue";
14
- import { l as T, C as M, _ as P } from "./index-D5BukPPY.js";
14
+ import { l as T, C as M, _ as P } from "./index-BZpYmpDy.js";
15
15
  import "element-plus";
16
- import { E as H } from "./EChartComponentBase-C3gcATBZ.js";
16
+ import { E as H } from "./EChartComponentBase-i76OGL3z.js";
17
17
  import { g as F } from "./titleStyle-BT5GlpAb.js";
18
18
  import { A as U, D as G } from "./ele-pie-icon-RPfHJxqp.js";
19
19
  import { u as K, i as X, a as q } from "./installCanvasRenderer-oDYkyVFy.js";