mixdashboards 1.0.75 → 1.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/dist/{BaseComponent-BXAJUoaf.cjs → BaseComponent-BmhMoM4H.cjs} +1 -1
  2. package/dist/{BaseComponent-BlCsb-HW.js → BaseComponent-CQaDWNO0.js} +8 -8
  3. package/dist/{EChartComponentBase-BPiPzdtw.cjs → EChartComponentBase-D9EUh4BZ.cjs} +1 -1
  4. package/dist/{EChartComponentBase-DPWPg81w.js → EChartComponentBase-i76OGL3z.js} +2 -2
  5. package/dist/{EmergencyPlanPanel-Cv06qTDX.js → EmergencyPlanPanel-B9S3Ru5-.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-CU0gJiFM.cjs → EmergencyPlanPanel-BiAHvTfh.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-CiRVXFaZ.cjs → HistoryPlanDialog-BU4GayEm.cjs} +1 -1
  8. package/dist/{HistoryPlanDialog-BALmXGdQ.js → HistoryPlanDialog-CbbeFm-i.js} +1 -1
  9. package/dist/{MonitoringMap-BuVJ-ir-.js → MonitoringMap-B6tXBdvK.js} +2 -2
  10. package/dist/{MonitoringMap-BXxlfEQV.cjs → MonitoringMap-FGDoA0fw.cjs} +1 -1
  11. package/dist/{UniverSheet-CDug4m6W.cjs → UniverSheet-D7y2pceH.cjs} +1 -1
  12. package/dist/{UniverSheet-GnlJ56Io.js → UniverSheet-D8sflrTb.js} +2 -2
  13. package/dist/{accelerationChart-BQkfynh-.cjs → accelerationChart-DTlwSA0N.cjs} +1 -1
  14. package/dist/{accelerationChart-lWscOOUn.js → accelerationChart-bch4O3t-.js} +14 -14
  15. package/dist/{actionItem-B4nl_rf_.js → actionItem-Cw67YwsR.js} +2 -2
  16. package/dist/{actionItem-6eYNuhg3.cjs → actionItem-cdsgUvaC.cjs} +1 -1
  17. package/dist/{alarmLevelChart-Mq8iVSI0.cjs → alarmLevelChart-BMjTLxB5.cjs} +1 -1
  18. package/dist/{alarmLevelChart-CiobE56j.js → alarmLevelChart-BynSRHG2.js} +2 -2
  19. package/dist/{alertTable-f0pzyZBg.cjs → alertTable-3VhkUZSf.cjs} +1 -1
  20. package/dist/{alertTable-CMlVY_8H.js → alertTable-CiwuaydQ.js} +2 -2
  21. package/dist/{aliasObjectSelectorDemo-C1bpTa2y.cjs → aliasObjectSelectorDemo-BLoecZkV.cjs} +1 -1
  22. package/dist/{aliasObjectSelectorDemo-DqZ0EfVH.js → aliasObjectSelectorDemo-DfdRxb4I.js} +1 -1
  23. package/dist/{annualRainfallChart-_mJM58W4.js → annualRainfallChart-CHcr4-0D.js} +2 -2
  24. package/dist/{annualRainfallChart-BbYOeEs_.cjs → annualRainfallChart-DKR-A_PT.cjs} +1 -1
  25. package/dist/{aqi-yjjoBI4W.cjs → aqi-D7VqP1QE.cjs} +1 -1
  26. package/dist/{aqi-jYtMHp4c.js → aqi-Gu-pAovO.js} +4 -4
  27. package/dist/{aqiIndass-BPnJN1L7.js → aqiIndass-Bjj6n1aj.js} +18 -18
  28. package/dist/{aqiIndass-DuxFgiJF.cjs → aqiIndass-nfYUZ3UM.cjs} +1 -1
  29. package/dist/{areaDeformCurve-BM8ClfUa.cjs → areaDeformCurve-fpGWmq05.cjs} +1 -1
  30. package/dist/{areaDeformCurve-DNleJiVH.js → areaDeformCurve-nwlcUBDv.js} +2 -2
  31. package/dist/{arrayCard-jITzZi-r.js → arrayCard-TfcgLrHv.js} +2 -2
  32. package/dist/{arrayCard-BxpqdLMV.cjs → arrayCard-UoDqAGbN.cjs} +1 -1
  33. package/dist/{audio-CH5r-0gF.js → audio-BYgGYoEr.js} +2 -2
  34. package/dist/{audio-BuyKXQ0N.cjs → audio-DdUv9Ot-.cjs} +1 -1
  35. package/dist/bar-CkBXc7t1.cjs +2 -0
  36. package/dist/{bar-BtlkgC6a.js → bar-SfGiFl1r.js} +75 -67
  37. package/dist/{bmp-C2DUdhaT.js → bmp-BbtdzIrI.js} +2 -2
  38. package/dist/{bmp-DLIPXhyT.cjs → bmp-CY-Hb2x1.cjs} +1 -1
  39. package/dist/{box-CVcPOlKk.cjs → box-B4C_mirv.cjs} +1 -1
  40. package/dist/{box-BgwIB1Bl.js → box-CV41cJuX.js} +2 -2
  41. package/dist/{chartConfigPanel-ByzQkeYT.js → chartConfigPanel-D650rSn7.js} +1 -1
  42. package/dist/{chartConfigPanel-BdVphXRS.cjs → chartConfigPanel-DBlqAbbH.cjs} +1 -1
  43. package/dist/{circleBar-DBCX2g0i.cjs → circleBar-DkV7xPBl.cjs} +1 -1
  44. package/dist/{circleBar-CFV6RoS1.js → circleBar-U3iXMQr5.js} +2 -2
  45. package/dist/{clock--G7VfksN.cjs → clock-CjgMeOhp.cjs} +1 -1
  46. package/dist/{clock-ilY2WqEO.js → clock-zKVUU8pu.js} +2 -2
  47. package/dist/{clt-4fAQmG5V.js → clt-BsIA-YPQ.js} +2 -2
  48. package/dist/{clt-DOAntJi9.cjs → clt-DwI8i7zI.cjs} +1 -1
  49. package/dist/{cmc-CehLriLD.cjs → cmc-BX9ichBB.cjs} +1 -1
  50. package/dist/{cmc-Bhyw5-iw.js → cmc-CgpHejR2.js} +2 -2
  51. package/dist/{cmp-znNaGWlx.js → cmp-CS34lG7V.js} +2 -2
  52. package/dist/{cmp-BL3VD7Pn.cjs → cmp-CTqtxzo4.cjs} +1 -1
  53. package/dist/{conclusionCard-B5DhxboF.js → conclusionCard-N6pA6Q9P.js} +2 -2
  54. package/dist/{conclusionCard-K6CSG9A7.cjs → conclusionCard-wvtJmV_8.cjs} +1 -1
  55. package/dist/{controlList-CyE_bM7S.cjs → controlList-BUAMdHA3.cjs} +1 -1
  56. package/dist/{controlList-DoaSMBIh.js → controlList-Zz5ABe5b.js} +2 -2
  57. package/dist/{controlRecordList-CDKRXU47.cjs → controlRecordList-CMR4y_Ml.cjs} +1 -1
  58. package/dist/{controlRecordList-DwXUWAgm.js → controlRecordList-Dx0zj7js.js} +2 -2
  59. package/dist/{controlRecordListAPP-cODkXLeg.cjs → controlRecordListAPP-ZDCKmz_8.cjs} +1 -1
  60. package/dist/{controlRecordListAPP-CP-tQ4o_.js → controlRecordListAPP-bL9oqWzQ.js} +2 -2
  61. package/dist/{crd-D9Djs_9M.cjs → crd-8tMwNlgx.cjs} +1 -1
  62. package/dist/{crd-BJJ9sEBi.js → crd-DZPpD6XY.js} +2 -2
  63. package/dist/{ctrBtn-zECsVsC6.js → ctrBtn-6Ql9ulTr.js} +10 -10
  64. package/dist/{ctrBtn-Ci7BkiOn.cjs → ctrBtn-eCu0UDtW.cjs} +1 -1
  65. package/dist/{ctrSet-DQTACQn1.js → ctrSet-BwFVH1Mk.js} +3 -3
  66. package/dist/{ctrSet-DZrpF9pM.cjs → ctrSet-pX-zVivo.cjs} +1 -1
  67. package/dist/{ctrSwitch-BDy8B1lF.cjs → ctrSwitch-D95SI-aJ.cjs} +1 -1
  68. package/dist/{ctrSwitch-CrEAuL-v.js → ctrSwitch-b6hHf4QF.js} +11 -11
  69. package/dist/{dataManagement-D6SM8zVY.cjs → dataManagement-DubA1TV1.cjs} +1 -1
  70. package/dist/{dataManagement-ivUDfZ3f.js → dataManagement-VucRLCK4.js} +2 -2
  71. package/dist/{dataReport-CryAeh7C.js → dataReport-CALIw14D.js} +2 -2
  72. package/dist/{dataReport-CFJ5aMrb.cjs → dataReport-CkF5J7X1.cjs} +1 -1
  73. package/dist/{dataTable-BBW0i51h.js → dataTable-C1rBH_p9.js} +1 -1
  74. package/dist/{dataTable-IKk8N9i9.cjs → dataTable-C2q_CX5D.cjs} +1 -1
  75. package/dist/{datetime-BPoSIL-3.js → datetime-Cq8scz5Q.js} +2 -2
  76. package/dist/{datetime-CGUnVeRE.cjs → datetime-TBTeWqlf.cjs} +1 -1
  77. package/dist/{deepClusterSlipSurface-rZIUqLLp.cjs → deepClusterSlipSurface-CFaxRVmM.cjs} +1 -1
  78. package/dist/{deepClusterSlipSurface-jt74ODxX.js → deepClusterSlipSurface-Cm50wbjv.js} +2 -2
  79. package/dist/{deepDataMatrix-DyK--0cJ.cjs → deepDataMatrix-CAYSav3X.cjs} +1 -1
  80. package/dist/{deepDataMatrix-B1rr5lNY.js → deepDataMatrix-DyStA98d.js} +7 -7
  81. package/dist/{deepDisplacement3D-DdSfiM8c.cjs → deepDisplacement3D-B3Iju2KK.cjs} +1 -1
  82. package/dist/{deepDisplacement3D-BnWitDOk.js → deepDisplacement3D-Bat-Wc3i.js} +2 -2
  83. package/dist/{deepDisplacementChart-BxdiiuUe.cjs → deepDisplacementChart-C-Tr4DdI.cjs} +1 -1
  84. package/dist/{deepDisplacementChart-DY3PLNdf.cjs → deepDisplacementChart-CX9ALM89.cjs} +1 -1
  85. package/dist/{deepDisplacementChart-BQ3nFJLH.js → deepDisplacementChart-CYMpNu_W.js} +25 -25
  86. package/dist/{deepDisplacementChart-lIfyzMpq.js → deepDisplacementChart-D5rHoC9r.js} +26 -26
  87. package/dist/{deepDisplacementView-C0r4oIIk.cjs → deepDisplacementView-DTSsODJQ.cjs} +1 -1
  88. package/dist/{deepDisplacementView-BsddlCKN.js → deepDisplacementView-DnjwQmEW.js} +1 -1
  89. package/dist/{deepNodeTemperatureChart-DrqwFmDg.cjs → deepNodeTemperatureChart-C9NRJ49Y.cjs} +1 -1
  90. package/dist/{deepNodeTemperatureChart-C1RVbMT1.js → deepNodeTemperatureChart-CLKg72UA.js} +32 -32
  91. package/dist/{deepTangentAngleChart-Hs9wfNfb.cjs → deepTangentAngleChart-C9aFSFrD.cjs} +1 -1
  92. package/dist/{deepTangentAngleChart-BSifjEIw.js → deepTangentAngleChart-DklHYHhm.js} +13 -13
  93. package/dist/{deepTemperatureField-Bz9X6xx5.cjs → deepTemperatureField-CXBL4_LS.cjs} +1 -1
  94. package/dist/{deepTemperatureField-BSsTui64.js → deepTemperatureField-CcnVGgbf.js} +3 -3
  95. package/dist/{deepTrendChart-apQrMrj6.js → deepTrendChart-De7ebpk4.js} +14 -14
  96. package/dist/{deepTrendChart-B3q-lEJw.cjs → deepTrendChart-OGW08BX-.cjs} +1 -1
  97. package/dist/{deviceOnlineStatus-DABeXKWW.cjs → deviceOnlineStatus-DarcMtY4.cjs} +1 -1
  98. package/dist/{deviceOnlineStatus-kFsHXR6n.js → deviceOnlineStatus-_3Txb8Tg.js} +2 -2
  99. package/dist/{deviceStatus-BE2Pszt3.cjs → deviceStatus-BiJw8rnz.cjs} +1 -1
  100. package/dist/{deviceStatus-TNP-PLi-.js → deviceStatus-CL6E-pQ0.js} +10 -10
  101. package/dist/{displacementDataTable-BD45feZR.cjs → displacementDataTable-DmAqr-JK.cjs} +1 -1
  102. package/dist/{displacementDataTable-kZBxmOLa.js → displacementDataTable-tKtGe2xd.js} +11 -11
  103. package/dist/{displacementTrajectoryChart-DmuezhG8.cjs → displacementTrajectoryChart-DG2YdSqq.cjs} +1 -1
  104. package/dist/{displacementTrajectoryChart-BjbgbY-z.js → displacementTrajectoryChart-Dh6oPB0p.js} +22 -22
  105. package/dist/{displacementTrendChart-BjIXnttw.js → displacementTrendChart-BHORe0qO.js} +36 -36
  106. package/dist/{displacementTrendChart-iXH_pVRS.cjs → displacementTrendChart-CT140vXG.cjs} +1 -1
  107. package/dist/{dxf-DMZPfCEF.cjs → dxf-CVa4Vfm3.cjs} +1 -1
  108. package/dist/{dxf-Cne0HiZv.js → dxf-CjcHSJq-.js} +2 -2
  109. package/dist/{dzc-BHGWFMVE.js → dzc-DDXNSuie.js} +6 -6
  110. package/dist/{dzc-Xii4wMjP.cjs → dzc-DK16oTVj.cjs} +1 -1
  111. package/dist/{emergencyPlan-B1znDbbO.cjs → emergencyPlan-D0AMuD-3.cjs} +1 -1
  112. package/dist/{emergencyPlan-CdFHCDZY.js → emergencyPlan-Vim4E6h7.js} +3 -3
  113. package/dist/{evn-UM09m5js.js → evn-CdMN8gIC.js} +2 -2
  114. package/dist/{evn-DQIIN0A9.cjs → evn-D2mdSoFB.cjs} +1 -1
  115. package/dist/{evolutionChart-DDtDzRIE.cjs → evolutionChart-I8XVW05I.cjs} +1 -1
  116. package/dist/{evolutionChart-Dm3nLcz6.js → evolutionChart-P0l6P0Bc.js} +3 -3
  117. package/dist/{fileViewer-CoTW7CWz.cjs → fileViewer-D7sAA8-W.cjs} +1 -1
  118. package/dist/{fileViewer-C1Ky9Ydw.js → fileViewer-DvntGv0b.js} +2 -2
  119. package/dist/{filterBar-BNr5i0ab.js → filterBar-8gex5oR-.js} +2 -2
  120. package/dist/{filterBar-DPG_jFL8.cjs → filterBar-GSTji96g.cjs} +1 -1
  121. package/dist/{fireCombustionCurve-DpcQ13zK.js → fireCombustionCurve-B3jAhOft.js} +3 -3
  122. package/dist/{fireCombustionCurve-z2iMEkbd.cjs → fireCombustionCurve-DrMmHf3N.cjs} +1 -1
  123. package/dist/{fireFilterBar-BFJeB-8m.js → fireFilterBar-CH6iK0Xg.js} +2 -2
  124. package/dist/{fireFilterBar-iXGBx5Zi.cjs → fireFilterBar-Dy9DcHij.cjs} +1 -1
  125. package/dist/{fireHistoryTable-E9Gx4Gqf.js → fireHistoryTable-CHxHqPs0.js} +2 -2
  126. package/dist/{fireHistoryTable-BE79laqx.cjs → fireHistoryTable-n6L3juWp.cjs} +1 -1
  127. package/dist/{gag-naUs2e3c.js → gag-BsO4kmp1.js} +2 -2
  128. package/dist/{gag-Ce_-YYka.cjs → gag-BzjuwBvY.cjs} +1 -1
  129. package/dist/{gasStationList-Kbha10pX.js → gasStationList-7JzUcISs.js} +214 -276
  130. package/dist/gasStationList-QwqTDEAG.cjs +1 -0
  131. package/dist/{geo3dViewer-CnAgLJ_6.cjs → geo3dViewer-Cf-jHpvF.cjs} +1 -1
  132. package/dist/{geo3dViewer-CMISZOfo.js → geo3dViewer-doEpUC_J.js} +3 -3
  133. package/dist/{glbModel-Bw25mL_R.js → glbModel-BgFIj_es.js} +2 -2
  134. package/dist/{glbModel-CS8qUhON.cjs → glbModel-C6L--3dO.cjs} +1 -1
  135. package/dist/{globalObjectSelector-BcLO38lZ.js → globalObjectSelector-CdfiXRjg.js} +1 -1
  136. package/dist/{globalObjectSelector-BwoQjJGq.cjs → globalObjectSelector-P_irB0rv.cjs} +1 -1
  137. package/dist/{gnssFilterBar-CfqJBy4d.cjs → gnssFilterBar-CIwyv2yc.cjs} +1 -1
  138. package/dist/{gnssFilterBar-bS10JYoi.js → gnssFilterBar-DPNshMIx.js} +2 -2
  139. package/dist/{gnssHistoryTable-CPs_w2gf.js → gnssHistoryTable-C7x4-Tpp.js} +2 -2
  140. package/dist/{gnssHistoryTable-CyingjiU.cjs → gnssHistoryTable-j5FL6oYs.cjs} +1 -1
  141. package/dist/{gnssMapView-DD_L9jE0.js → gnssMapView-BWcS4hqj.js} +4 -4
  142. package/dist/{gnssMapView-KvzwIbK1.cjs → gnssMapView-_VaJWBcE.cjs} +2 -2
  143. package/dist/{gnssSectionProfile-DxkEsZQx.cjs → gnssSectionProfile-DGbTO7lV.cjs} +1 -1
  144. package/dist/{gnssSectionProfile-DGYWQKML.js → gnssSectionProfile-hpyiGI-6.js} +2 -2
  145. package/dist/{gnssTimeSeriesChart-KVg2GW1C.cjs → gnssTimeSeriesChart-CNT6xaNs.cjs} +1 -1
  146. package/dist/{gnssTimeSeriesChart-1bLKTD-e.js → gnssTimeSeriesChart-rL9oG1ly.js} +2 -2
  147. package/dist/{gnssXYTrajectory-B-d6rq3V.js → gnssXYTrajectory-B1LZAepw.js} +2 -2
  148. package/dist/{gnssXYTrajectory-B-0h71U8.cjs → gnssXYTrajectory-CwAjhPRc.cjs} +1 -1
  149. package/dist/{grd-CqeXHXO2.js → grd-BLab9IY0.js} +20 -20
  150. package/dist/{grd-CbvQkv0q.cjs → grd-rJXqEimt.cjs} +1 -1
  151. package/dist/{grdIndass-BaHBsp5T.js → grdIndass-gGrZ7gRV.js} +6 -6
  152. package/dist/{grdIndass-_-7wqVjL.cjs → grdIndass-niY4UOwz.cjs} +1 -1
  153. package/dist/{grg-DmN25aj-.cjs → grg-C1L5yeyY.cjs} +1 -1
  154. package/dist/{grg-Cgpfx9kR.js → grg-Dnro7bLg.js} +6 -6
  155. package/dist/{gridview-B0haH8LS.js → gridview-BhjWlD0J.js} +2 -2
  156. package/dist/{gridview-DYYpW2MH.cjs → gridview-DxUsv2ny.cjs} +1 -1
  157. package/dist/{groundwaterFilterBar-mcMEwt9B.cjs → groundwaterFilterBar-C-2e7S04.cjs} +1 -1
  158. package/dist/{groundwaterFilterBar-ClXMXCj6.js → groundwaterFilterBar-bNhTkX1C.js} +2 -2
  159. package/dist/{groundwaterProfileChart-BoRVOmen.cjs → groundwaterProfileChart-BxKGPuOe.cjs} +2 -2
  160. package/dist/{groundwaterProfileChart-Cfwfua8-.js → groundwaterProfileChart-dhzmwfwz.js} +3 -3
  161. package/dist/{groundwaterTimeCurve-BOarX2wf.js → groundwaterTimeCurve-BtzP6icm.js} +3 -3
  162. package/dist/{groundwaterTimeCurve-Czt7iLlt.cjs → groundwaterTimeCurve-CTQPlTUr.cjs} +1 -1
  163. package/dist/{groupCard-2aS7lgg2.js → groupCard-D00ElZoy.js} +63 -53
  164. package/dist/{groupCard-DjUIJShv.cjs → groupCard-D4gdaVqR.cjs} +1 -1
  165. package/dist/{headerBar-u-0s0z16.js → headerBar-DEHj8fJr.js} +2 -2
  166. package/dist/{headerBar-5nL0hMXs.cjs → headerBar-MFw1W0qa.cjs} +1 -1
  167. package/dist/{history-BtX7uNYs.js → history-BRkb914v.js} +16 -16
  168. package/dist/{history-B-Ynlm5z.cjs → history-D1R2RAZQ.cjs} +1 -1
  169. package/dist/index-77aUdspY.cjs +612 -0
  170. package/dist/{index-DomNEEyv.js → index-BZpYmpDy.js} +3569 -2983
  171. package/dist/{insarDeformChart-KECXbG_n.cjs → insarDeformChart-5EVWIkpL.cjs} +1 -1
  172. package/dist/{insarDeformChart-DVGZUwaX.js → insarDeformChart-pbOnnoN-.js} +2 -2
  173. package/dist/{insarImageViewer-BMk5v36R.js → insarImageViewer-D3bbQA6g.js} +2 -2
  174. package/dist/{insarImageViewer-CdJyowUc.cjs → insarImageViewer-DQJBN4YM.cjs} +1 -1
  175. package/dist/{kds-DU8wNnhT.cjs → kds-D5seJB3L.cjs} +1 -1
  176. package/dist/{kds-CawaHOXh.js → kds-gTJOwHbM.js} +21 -21
  177. package/dist/{kpiCard-CAuX9-zP.cjs → kpiCard-Bz-fg6sL.cjs} +1 -1
  178. package/dist/{kpiCard-B5ZueB0g.js → kpiCard-Cx6VNK6L.js} +2 -2
  179. package/dist/{landslideMap-DGkSLtbi.js → landslideMap-5erIcZo7.js} +15 -15
  180. package/dist/{landslideMap-CImGVGDr.cjs → landslideMap-D7_QpwmM.cjs} +1 -1
  181. package/dist/{landslideWarning-C8cHW-2p.cjs → landslideWarning-C3FZqrxT.cjs} +1 -1
  182. package/dist/{landslideWarning-BeQUD3uJ.js → landslideWarning-CzaddgWf.js} +14 -14
  183. package/dist/{layerTabs-DxX6yqOO.cjs → layerTabs-Dc1Xb11W.cjs} +1 -1
  184. package/dist/{layerTabs-CBr-oH28.js → layerTabs-DqbOykS2.js} +2 -2
  185. package/dist/{leaflet-src-BXugYdBe.js → leaflet-src-BY2SMh9y.js} +1 -1
  186. package/dist/{leaflet-src-VXn1CZcu.cjs → leaflet-src-Brb8KUL5.cjs} +1 -1
  187. package/dist/{lerc-td9bbpKy.js → lerc-Chm_GVte.js} +2 -2
  188. package/dist/{lerc-DJGGksD3.cjs → lerc-DGuyYCKG.cjs} +1 -1
  189. package/dist/{lin-vrv9_1Gw.cjs → lin-8x2j8aGa.cjs} +1 -1
  190. package/dist/{lin-DlD92hLY.js → lin-tqtSA5ci.js} +9 -9
  191. package/dist/{linIndass-DRZUPyVA.js → linIndass-DHFymSVI.js} +12 -12
  192. package/dist/{linIndass-BhvIJJ_-.cjs → linIndass-Dxo_bzrZ.cjs} +1 -1
  193. package/dist/{lst-BsGZwd4K.cjs → lst-BV6EbDPs.cjs} +1 -1
  194. package/dist/{lst-DHBMHjOM.js → lst-BejIuO0f.js} +2 -2
  195. package/dist/{manualEntry-zdYpuGoU.cjs → manualEntry-Bt4cs6kn.cjs} +1 -1
  196. package/dist/{manualEntry-gGLZH2mN.js → manualEntry-DObI0OAq.js} +2 -2
  197. package/dist/{mapBackground-DBXKXI9j.js → mapBackground-Cuym5Dqr.js} +3 -3
  198. package/dist/{mapBackground-U2NX5fCU.cjs → mapBackground-oVOBK3zr.cjs} +1 -1
  199. package/dist/{mappingList-vLJbxZcd.cjs → mappingList-BEWAqLd4.cjs} +1 -1
  200. package/dist/{mappingList-D4KRWEkc.js → mappingList-Dzq0zMfs.js} +2 -2
  201. package/dist/{markdownViewer-DzZnOTO-.js → markdownViewer-Bz50jkb6.js} +2 -2
  202. package/dist/{markdownViewer-XvNb3eNT.cjs → markdownViewer-V5b1xhPh.cjs} +1 -1
  203. package/dist/{mix-control-modal-DjD4xOuc.js → mix-control-modal-DzVLdO3S.js} +7 -7
  204. package/dist/{mix-control-modal-DQnZbDGs.cjs → mix-control-modal-I6DqPm04.cjs} +1 -1
  205. package/dist/{mixGrid-CLEdWr86.cjs → mixGrid-_ur8VKLD.cjs} +1 -1
  206. package/dist/{mixGrid-uzRHR_XB.js → mixGrid-tVSdKPms.js} +2 -2
  207. package/dist/mixdashboards.cjs +1 -1
  208. package/dist/mixdashboards.css +1 -1
  209. package/dist/mixdashboards.js +1 -1
  210. package/dist/{mixiotObjectListApi-DCuG7zc-.cjs → mixiotObjectListApi-BUQ-RZ3L.cjs} +1 -1
  211. package/dist/{mixiotObjectListApi-DP6wrrOJ.js → mixiotObjectListApi-D5vNNWgT.js} +1 -1
  212. package/dist/{mjpegCamera-D416oWYH.cjs → mjpegCamera-CjWe8BEK.cjs} +1 -1
  213. package/dist/{mjpegCamera-y_pW209K.js → mjpegCamera-DnAPpFJU.js} +2 -2
  214. package/dist/{monitorAlert-BOJ4UrnO.js → monitorAlert-B-fTYPn6.js} +11 -11
  215. package/dist/{monitorAlert-Bq1MEu6y.cjs → monitorAlert-qmVSQ1lc.cjs} +1 -1
  216. package/dist/{monitorData-CTVzSwsd.js → monitorData-Dopc660L.js} +7 -7
  217. package/dist/{monitorData-eE9QUfb3.cjs → monitorData-YhGSUq3H.cjs} +1 -1
  218. package/dist/{monitorSpeedChart-CnKy9z8m.cjs → monitorSpeedChart-Brj_YHsO.cjs} +1 -1
  219. package/dist/{monitorSpeedChart-CUZat2mO.js → monitorSpeedChart-Dsvr_QPB.js} +1 -1
  220. package/dist/{mxa-ueyMsY-m.cjs → mxa-BzdI7BLB.cjs} +1 -1
  221. package/dist/{mxa-DDJJIW_n.js → mxa-D4WkyBYZ.js} +7 -7
  222. package/dist/{myValue-BdJdeV7Y.cjs → myValue-C0tq-asC.cjs} +1 -1
  223. package/dist/{myValue-jZIrcY-B.js → myValue-DYtBtOJ2.js} +2 -2
  224. package/dist/{myValueList-KoXkIHn0.cjs → myValueList-BJctRTNd.cjs} +1 -1
  225. package/dist/{myValueList-DYPYb3FQ.js → myValueList-Ddpn1S68.js} +2 -2
  226. package/dist/{objectList-Ct6UzSuD.cjs → objectList-Csf0hVwo.cjs} +1 -1
  227. package/dist/{objectList-CGYOZD6e.js → objectList-G4wXFDwe.js} +3 -3
  228. package/dist/{objectListAPP-DrymYbRw.js → objectListAPP-BrmUj4At.js} +3 -3
  229. package/dist/{objectListAPP-D0dHuEhF.cjs → objectListAPP-UZN4iuTn.cjs} +1 -1
  230. package/dist/{photo-DC0tNbgw.js → photo-BEPeK7U8.js} +2 -2
  231. package/dist/{photo-siDcsoGU.cjs → photo-BYH_qg5O.cjs} +1 -1
  232. package/dist/{pie-D9J75dIT.cjs → pie-B57zDxJV.cjs} +1 -1
  233. package/dist/{pie-I_Gqoxg_.js → pie-CEVKe1lL.js} +2 -2
  234. package/dist/{placeholder-BPjcnXBR.cjs → placeholder-BezBEQGo.cjs} +1 -1
  235. package/dist/{placeholder-BsmPsTrK.js → placeholder-Bwv3VyEg.js} +1 -1
  236. package/dist/{pressBtn-CXasqSG5.js → pressBtn-1LCNz2gE.js} +3 -3
  237. package/dist/{pressBtn-DkR5yC7c.cjs → pressBtn-CJZTyY8I.cjs} +1 -1
  238. package/dist/{processTable-CprS7V6w.js → processTable-CHDazqah.js} +2 -2
  239. package/dist/{processTable-D2upRmGB.cjs → processTable-HtDeg1by.cjs} +1 -1
  240. package/dist/{progressBar-CHGUKjOk.cjs → progressBar-BP4SmPZK.cjs} +1 -1
  241. package/dist/{progressBar-BnDhCqnO.js → progressBar-C3NcWUrS.js} +2 -2
  242. package/dist/{progressCircle-DTSsucDj.js → progressCircle-Bo9-Qva_.js} +2 -2
  243. package/dist/{progressCircle-C7U0fPQv.cjs → progressCircle-CDqK1iFt.cjs} +1 -1
  244. package/dist/{qrcode-B65TN3DU.js → qrcode-VmYwvClG.js} +2 -2
  245. package/dist/{qrcode-COSof3Xg.cjs → qrcode-qD6tOm4F.cjs} +1 -1
  246. package/dist/{raceBar-B-Dg_JeH.js → raceBar-DR2-luKW.js} +2 -2
  247. package/dist/{raceBar-DUTC68PY.cjs → raceBar-uAs91hyk.cjs} +1 -1
  248. package/dist/{rad-CQS9cZyM.js → rad-1Jy1KDzt.js} +2 -2
  249. package/dist/{rad-C-5BUzw2.cjs → rad-D7-YZJNO.cjs} +1 -1
  250. package/dist/{radarMapViewer-8GICTIhi.js → radarMapViewer-ByQXe0Mu.js} +2 -2
  251. package/dist/{radarMapViewer-Bnzk9-oK.cjs → radarMapViewer-KPhNE5XX.cjs} +1 -1
  252. package/dist/{rainfallFilterBar-2PbsD0mU.js → rainfallFilterBar-C1obotPf.js} +2 -2
  253. package/dist/{rainfallFilterBar-BAFB2Yla.cjs → rainfallFilterBar-CVQpQp82.cjs} +1 -1
  254. package/dist/{rainfallTimeCurve-D8deMaZA.js → rainfallTimeCurve-B2rEx3T_.js} +3 -3
  255. package/dist/{rainfallTimeCurve-pNf06cfu.cjs → rainfallTimeCurve-DU2tt-Ls.cjs} +1 -1
  256. package/dist/{rangeLin-D1_RCrEG.cjs → rangeLin-COsJkCky.cjs} +1 -1
  257. package/dist/{rangeLin-DiCVHBXe.js → rangeLin-CdfUCFQr.js} +2 -2
  258. package/dist/{realtimeEvolutionMap-BwDjG4Cd.cjs → realtimeEvolutionMap-B7GT8MOq.cjs} +1 -1
  259. package/dist/{realtimeEvolutionMap-BZ3odAWj.js → realtimeEvolutionMap-aR63xPW_.js} +2 -2
  260. package/dist/{regionBar-BZVsJdo6.cjs → regionBar-BYF7IaGA.cjs} +1 -1
  261. package/dist/{regionBar-C_C5cX2r.js → regionBar-DB-secNe.js} +2 -2
  262. package/dist/{request-CsiNbn80.js → request-CBsG4ipL.js} +7 -7
  263. package/dist/{request-B1HlG30f.cjs → request-CvdHjG34.cjs} +1 -1
  264. package/dist/{retainer1-CzyGsNUK.cjs → retainer1-1CFk4InO.cjs} +1 -1
  265. package/dist/{retainer1-DROmtfRa.js → retainer1-CMzTlM5Z.js} +3 -3
  266. package/dist/{retainer2-BCAnjUE9.js → retainer2-DW4ewYX7.js} +3 -3
  267. package/dist/{retainer2-1BaKVlim.cjs → retainer2-DliOH7it.cjs} +1 -1
  268. package/dist/{retainerRecordList-DIdk5Q5E.js → retainerRecordList-Bcm6leuD.js} +2 -2
  269. package/dist/{retainerRecordList-Ct_yDZds.cjs → retainerRecordList-DV7Tx39d.cjs} +1 -1
  270. package/dist/{retainerRecordListAPP-Bi6Ax0r6.js → retainerRecordListAPP-BDRwp8T3.js} +2 -2
  271. package/dist/{retainerRecordListAPP-DUqNtCCN.cjs → retainerRecordListAPP-CJ-u0Tj2.cjs} +1 -1
  272. package/dist/{ringTopN-BSWAdbso.js → ringTopN-Duq0pzm_.js} +2 -2
  273. package/dist/{ringTopN-CIusnN5O.cjs → ringTopN-rd2UwH9f.cjs} +1 -1
  274. package/dist/{riskRegionTable-Lmup8bDM.js → riskRegionTable-BE_ggcEV.js} +7 -7
  275. package/dist/{riskRegionTable-0fHQGnVM.cjs → riskRegionTable-CbPB8mlY.cjs} +1 -1
  276. package/dist/{sankey-D8Erc_QS.cjs → sankey-BqBn6_rx.cjs} +1 -1
  277. package/dist/{sankey-D99KciIH.js → sankey-CnKm9PZe.js} +5 -5
  278. package/dist/{scd-0yZCqQT2.js → scd-BaBLoem8.js} +2 -2
  279. package/dist/{scd-Bkse6tqJ.cjs → scd-BgJ5P7co.cjs} +1 -1
  280. package/dist/{sideMenu-B8Wf4m_8.cjs → sideMenu-BgiQL2P1.cjs} +1 -1
  281. package/dist/{sideMenu-DZ2bbsp7.js → sideMenu-CUal1UQY.js} +2 -2
  282. package/dist/{slopeStability-B8u5QQaS.js → slopeStability-B9YbQLCE.js} +24 -24
  283. package/dist/{slopeStability-D2XSPa-Q.cjs → slopeStability-Y2tDzJeh.cjs} +1 -1
  284. package/dist/{speedCurve-BD8ajqAX.js → speedCurve-DERBMtE1.js} +2 -2
  285. package/dist/{speedCurve-CMZGeXjF.cjs → speedCurve-Kll2RRJ8.cjs} +1 -1
  286. package/dist/{stressFilterBar-Chq7rovQ.cjs → stressFilterBar-BGI4gVfE.cjs} +1 -1
  287. package/dist/{stressFilterBar-Dpn3RUli.js → stressFilterBar-CHRWFnpP.js} +2 -2
  288. package/dist/{stressTimeCurve-D-wPq_W1.cjs → stressTimeCurve-DE5KiXEt.cjs} +1 -1
  289. package/dist/{stressTimeCurve-SRlS-9iL.js → stressTimeCurve-hrlqSYS3.js} +3 -3
  290. package/dist/{swiper-BBV8vKRh.cjs → swiper-CnGllhBQ.cjs} +1 -1
  291. package/dist/{swiper-DIFY95yz.js → swiper-DNHC412s.js} +2 -2
  292. package/dist/{terminalConfigList-Dom3--nE.js → terminalConfigList-BlHAsyCm.js} +2 -2
  293. package/dist/{terminalConfigList-DwA9ITHL.cjs → terminalConfigList-C45EANO4.cjs} +1 -1
  294. package/dist/{terminalList-ClsF5hyg.cjs → terminalList-CNI3_FGb.cjs} +1 -1
  295. package/dist/{terminalList-DpB3UlZG.js → terminalList-UGjkhyf4.js} +2 -2
  296. package/dist/{terminalListAPP-Bu_KM5lV.cjs → terminalListAPP-6fPXF-yJ.cjs} +1 -1
  297. package/dist/{terminalListAPP-U6qqbtPw.js → terminalListAPP-CIJZMdxI.js} +2 -2
  298. package/dist/{textbox-DLDf0rM6.js → textbox-BD_LQ0EN.js} +2 -2
  299. package/dist/{textbox-CbF9pAtK.cjs → textbox-yNPnOaan.cjs} +1 -1
  300. package/dist/{timeQueryBar-CE9N3lDg.cjs → timeQueryBar-3qiV0IV9.cjs} +1 -1
  301. package/dist/{timeQueryBar-ZAH6gs8Q.js → timeQueryBar-B-uPtN25.js} +1 -1
  302. package/dist/{timeSeries-0oO4KLxQ.cjs → timeSeries-BTUuojvj.cjs} +1 -1
  303. package/dist/{timeSeries-DvHAA0wU.js → timeSeries-DdQI4oZU.js} +19 -19
  304. package/dist/{timeSeriesCurve-BTuPg-3z.cjs → timeSeriesCurve-Cj_FbK4x.cjs} +1 -1
  305. package/dist/{timeSeriesCurve-Dyl9b667.js → timeSeriesCurve-TGXshTzl.js} +3 -3
  306. package/dist/{toggleBtn-CZoTmwAw.js → toggleBtn-BMxqm5WG.js} +2 -2
  307. package/dist/{toggleBtn-qDOJLJ7K.cjs → toggleBtn-BXcQfnTB.cjs} +1 -1
  308. package/dist/{trajectoryConfigPanel-CxV8Ed97.cjs → trajectoryConfigPanel-CqoKO0hL.cjs} +1 -1
  309. package/dist/{trajectoryConfigPanel-DwZvvYAl.js → trajectoryConfigPanel-uRLWdXUb.js} +1 -1
  310. package/dist/{trajectoryScatter-CEFp9PB3.js → trajectoryScatter-DPE4cC8N.js} +2 -2
  311. package/dist/{trajectoryScatter-Dd8Ppxae.cjs → trajectoryScatter-Dph8PSdN.cjs} +1 -1
  312. package/dist/{universalConfigPanel-BAppgtmC.js → universalConfigPanel-CI1CuBmr.js} +1 -1
  313. package/dist/{universalConfigPanel-C7tTPczg.cjs → universalConfigPanel-Db-pC67o.cjs} +1 -1
  314. package/dist/{universalTable-3JLC8oEV.js → universalTable-DMrgtBrw.js} +2 -2
  315. package/dist/{universalTable-COmdNAnW.cjs → universalTable-dQObEQog.cjs} +1 -1
  316. package/dist/{video-BtR163lf.js → video-DEhLie80.js} +2 -2
  317. package/dist/{video-8vSuQilp.cjs → video-DbsKQhVD.cjs} +1 -1
  318. package/dist/{videoMonitor-CdTNqBTI.js → videoMonitor-BS6_LYUb.js} +12 -12
  319. package/dist/{videoMonitor-BZwJZvno.cjs → videoMonitor-DLBtivXO.cjs} +1 -1
  320. package/dist/{vlu-AozGL50n.cjs → vlu-DXk_wQf-.cjs} +1 -1
  321. package/dist/{vlu-DqeEDfiN.js → vlu-DaSjPY3I.js} +2 -2
  322. package/dist/{warningOverview-CV_pqizm.js → warningOverview-CKCEs_Jj.js} +3 -3
  323. package/dist/{warningOverview-CRaFyOXe.cjs → warningOverview-DAUlXzr0.cjs} +1 -1
  324. package/dist/{weather-CLXe9W0L.cjs → weather-BAI0IWNH.cjs} +1 -1
  325. package/dist/{weather-iTeslV81.js → weather-XUj6pFwM.js} +2 -2
  326. package/dist/{windLin-u983PAHI.js → windLin-Bt4q2eUT.js} +2 -2
  327. package/dist/{windLin-BCMqmXdY.cjs → windLin-C9dsCT1w.cjs} +1 -1
  328. package/package.json +1 -1
  329. package/dist/bar-vpJvlBYX.cjs +0 -2
  330. package/dist/gasStationList-jfKZeg4P.cjs +0 -1
  331. package/dist/index-Cvu9nAQq.cjs +0 -612
@@ -1 +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-Cvu9nAQq.cjs"),ll=require("./useMixiotPanelSurface-CAZgexY5.cjs"),al=require("./BaseComponent-BXAJUoaf.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-DCuG7zc-.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;
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-BlCsb-HW.js";
35
- import { a as y, u as Le, r as Me, _ as Se } from "./index-DomNEEyv.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-BXAJUoaf.cjs"),y=require("./index-Cvu9nAQq.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-Cvu9nAQq.cjs");require("element-plus");const k=require("./EChartComponentBase-BPiPzdtw.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-DomNEEyv.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-DPWPg81w.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";
@@ -1 +1 @@
1
- "use strict";var P=Object.defineProperty,A=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var O=(l,t,r)=>t in l?P(l,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[t]=r,M=(l,t)=>{for(var r in t||(t={}))$.call(t,r)&&O(l,r,t[r]);if(D)for(var r of D(t))U.call(t,r)&&O(l,r,t[r]);return l},T=(l,t)=>A(l,W(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),z=require("./ele-box-icon-NZ0BTjhm.cjs"),j=require("./index-Cvu9nAQq.cjs"),q=["data-placeholder-id","data-placeholder-name","data-x","data-y","data-w","data-h"],G={key:0,class:"mix-placeholder__label"},H={class:"mix-placeholder__title"},J={key:0,class:"mix-placeholder__name"},K={class:"mix-placeholder__meta"},Q={key:0,class:"mix-placeholder__pixel"},X={class:"mix-placeholder__pixel-pos"},Y={key:1,class:"mix-placeholder__desc"},Z={key:0,class:"mix-placeholder__name-runtime"},ee={DEFAULT_ICON:z.DEFAULT_ICON,ACTIVE_ICON:z.ACTIVE_ICON,NAME_CN:"占位组件",NAME_EN:"Placeholder",ORDER:99,PLATFORM:["pc","screen","mobile"]},te={placeholderName:{value:"",type:"string",label:"占位组件名称"},description:{value:"",type:"string",label:"描述"},bgColor:{value:"rgba(64, 158, 255, 0.08)",type:"color",label:"填充色"},borderColor:{value:"#409EFF",type:"color",label:"边框颜色"},borderWidth:{value:2,type:"number",label:"边框宽度",min:0,max:10},borderStyle:{value:"dashed",type:"radio",label:"边框样式",option:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]},radiusSize:{value:4,type:"number",label:"圆角",min:0,max:50},showLabel:{value:!0,type:"checkbox",label:"显示标签"},showInPreview:{value:!1,type:"checkbox",label:"运行时显示边框"}},oe=[],le={},ae={DEFAULT:ee,OPTIONS:te,SOURCE:oe,COMMON:le},ne=e.defineComponent(T(M({},ae),{__name:"placeholder",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(l){const t=l,r=(o,a)=>{var c,i;const n=(i=(c=t.conf)==null?void 0:c.options)==null?void 0:i[o];return n==null?a:typeof n=="object"&&"value"in n?n.value:n},d=e.computed(()=>({placeholderName:r("placeholderName",""),description:r("description",""),bgColor:r("bgColor","rgba(64, 158, 255, 0.08)"),borderColor:r("borderColor","#409EFF"),borderWidth:Number(r("borderWidth",2))||0,borderStyle:r("borderStyle","dashed"),radiusSize:Number(r("radiusSize",4))||0,showLabel:r("showLabel",!0)!==!1,showInPreview:r("showInPreview",!1)===!0})),_=e.computed(()=>{var o,a;return d.value.placeholderName||((o=t.conf)==null?void 0:o.name)||((a=t.conf)==null?void 0:a.id)||""}),b=e.computed(()=>{var o,a;return d.value.placeholderName||((o=t.conf)==null?void 0:o.caption)||((a=t.conf)==null?void 0:a.name)||""}),F=e.computed(()=>({backgroundColor:d.value.bgColor,borderColor:d.value.borderColor,borderStyle:d.value.borderStyle,borderWidth:`${d.value.borderWidth}px`,borderRadius:`${d.value.radiusSize}px`})),L=e.computed(()=>({borderColor:d.value.borderColor,borderStyle:d.value.borderStyle,borderWidth:`${Math.max(1,d.value.borderWidth)}px`,borderRadius:`${d.value.radiusSize}px`,backgroundColor:"transparent"})),m=e.ref(null),S=e.useTemplateRef("rootRef"),N=()=>{const o=S.value;if(!o)return{gridItem:null,canvas:null};const a=o.closest(".vgl-item")||o.closest(".vue-grid-item"),n=o.closest(".canvas");return{gridItem:a,canvas:n}},x=()=>{const{gridItem:o,canvas:a}=N();if(!o||!a)return;const n=o.getBoundingClientRect(),c=a.getBoundingClientRect(),i=a.offsetWidth||1,u=c.width/i||1,s=u===0?1:u;m.value={left:Math.round((n.left-c.left)/s),top:Math.round((n.top-c.top)/s),width:Math.round(n.width/s),height:Math.round(n.height/s)}},y=o=>{var a,n,c,i,u,s,h,v,f;if(typeof window!="undefined")try{window.dispatchEvent(new CustomEvent(`mix-placeholder:${o}`,{detail:{id:((a=t.conf)==null?void 0:a.id)||"",name:_.value,grid:{x:(c=(n=t.conf)==null?void 0:n.x)!=null?c:0,y:(u=(i=t.conf)==null?void 0:i.y)!=null?u:0,w:(h=(s=t.conf)==null?void 0:s.w)!=null?h:0,h:(f=(v=t.conf)==null?void 0:v.h)!=null?f:0},pixel:m.value,mode:t.mode}}))}catch(g){}};let p=null;return e.onMounted(()=>{e.nextTick(()=>{x(),y("registered");const{gridItem:o}=N();o&&typeof ResizeObserver!="undefined"&&(p=new ResizeObserver(()=>{x(),y("updated")}),p.observe(o))})}),e.onBeforeUnmount(()=>{p==null||p.disconnect(),p=null,y("unregistered")}),e.watch(()=>{var o,a,n,c,i;return[(o=t.conf)==null?void 0:o.x,(a=t.conf)==null?void 0:a.y,(n=t.conf)==null?void 0:n.w,(c=t.conf)==null?void 0:c.h,(i=t.conf)==null?void 0:i.options,t.mode]},()=>{e.nextTick(()=>{x(),y("updated")})},{deep:!0}),(o,a)=>{var n,c,i,u,s,h,v,f,g,w,C,E,k,B,R,I,V;return e.openBlock(),e.createElementBlock("div",{ref_key:"rootRef",ref:S,class:"mix-placeholder",style:e.normalizeStyle({pointerEvents:l.mode==="edit"?"auto":void 0}),"data-placeholder-id":((n=l.conf)==null?void 0:n.id)||"","data-placeholder-name":_.value,"data-x":(i=(c=l.conf)==null?void 0:c.x)!=null?i:0,"data-y":(s=(u=l.conf)==null?void 0:u.y)!=null?s:0,"data-w":(v=(h=l.conf)==null?void 0:h.w)!=null?v:0,"data-h":(g=(f=l.conf)==null?void 0:f.h)!=null?g:0},[l.mode==="edit"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-placeholder__frame mix-placeholder__frame--edit",style:e.normalizeStyle(F.value)},[d.value.showLabel?(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",H,[a[0]||(a[0]=e.createElementVNode("span",{class:"mix-placeholder__tag"},"占位组件",-1)),b.value?(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(b.value),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",K,[e.createElementVNode("span",null,"x:"+e.toDisplayString((C=(w=l.conf)==null?void 0:w.x)!=null?C:0),1),e.createElementVNode("span",null,"y:"+e.toDisplayString((k=(E=l.conf)==null?void 0:E.y)!=null?k:0),1),e.createElementVNode("span",null,"w:"+e.toDisplayString((R=(B=l.conf)==null?void 0:B.w)!=null?R:0),1),e.createElementVNode("span",null,"h:"+e.toDisplayString((V=(I=l.conf)==null?void 0:I.h)!=null?V:0),1)]),m.value?(e.openBlock(),e.createElementBlock("div",Q,[e.createTextVNode(e.toDisplayString(m.value.width)+"px × "+e.toDisplayString(m.value.height)+"px ",1),e.createElementVNode("span",X,"@("+e.toDisplayString(m.value.left)+", "+e.toDisplayString(m.value.top)+")",1)])):e.createCommentVNode("",!0),d.value.description?(e.openBlock(),e.createElementBlock("div",Y,e.toDisplayString(d.value.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],4)):d.value.showInPreview?(e.openBlock(),e.createElementBlock("div",{key:1,class:"mix-placeholder__frame mix-placeholder__frame--runtime",style:e.normalizeStyle(L.value)},[d.value.showLabel&&b.value?(e.openBlock(),e.createElementBlock("span",Z,e.toDisplayString(b.value),1)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default",{},void 0,!0)],12,q)}}})),re=j._export_sfc(ne,[["__scopeId","data-v-d6ad7f4c"]]);exports.default=re;
1
+ "use strict";var P=Object.defineProperty,A=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var O=(l,t,r)=>t in l?P(l,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[t]=r,M=(l,t)=>{for(var r in t||(t={}))$.call(t,r)&&O(l,r,t[r]);if(D)for(var r of D(t))U.call(t,r)&&O(l,r,t[r]);return l},T=(l,t)=>A(l,W(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),z=require("./ele-box-icon-NZ0BTjhm.cjs"),j=require("./index-77aUdspY.cjs"),q=["data-placeholder-id","data-placeholder-name","data-x","data-y","data-w","data-h"],G={key:0,class:"mix-placeholder__label"},H={class:"mix-placeholder__title"},J={key:0,class:"mix-placeholder__name"},K={class:"mix-placeholder__meta"},Q={key:0,class:"mix-placeholder__pixel"},X={class:"mix-placeholder__pixel-pos"},Y={key:1,class:"mix-placeholder__desc"},Z={key:0,class:"mix-placeholder__name-runtime"},ee={DEFAULT_ICON:z.DEFAULT_ICON,ACTIVE_ICON:z.ACTIVE_ICON,NAME_CN:"占位组件",NAME_EN:"Placeholder",ORDER:99,PLATFORM:["pc","screen","mobile"]},te={placeholderName:{value:"",type:"string",label:"占位组件名称"},description:{value:"",type:"string",label:"描述"},bgColor:{value:"rgba(64, 158, 255, 0.08)",type:"color",label:"填充色"},borderColor:{value:"#409EFF",type:"color",label:"边框颜色"},borderWidth:{value:2,type:"number",label:"边框宽度",min:0,max:10},borderStyle:{value:"dashed",type:"radio",label:"边框样式",option:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]},radiusSize:{value:4,type:"number",label:"圆角",min:0,max:50},showLabel:{value:!0,type:"checkbox",label:"显示标签"},showInPreview:{value:!1,type:"checkbox",label:"运行时显示边框"}},oe=[],le={},ae={DEFAULT:ee,OPTIONS:te,SOURCE:oe,COMMON:le},ne=e.defineComponent(T(M({},ae),{__name:"placeholder",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(l){const t=l,r=(o,a)=>{var c,i;const n=(i=(c=t.conf)==null?void 0:c.options)==null?void 0:i[o];return n==null?a:typeof n=="object"&&"value"in n?n.value:n},d=e.computed(()=>({placeholderName:r("placeholderName",""),description:r("description",""),bgColor:r("bgColor","rgba(64, 158, 255, 0.08)"),borderColor:r("borderColor","#409EFF"),borderWidth:Number(r("borderWidth",2))||0,borderStyle:r("borderStyle","dashed"),radiusSize:Number(r("radiusSize",4))||0,showLabel:r("showLabel",!0)!==!1,showInPreview:r("showInPreview",!1)===!0})),_=e.computed(()=>{var o,a;return d.value.placeholderName||((o=t.conf)==null?void 0:o.name)||((a=t.conf)==null?void 0:a.id)||""}),b=e.computed(()=>{var o,a;return d.value.placeholderName||((o=t.conf)==null?void 0:o.caption)||((a=t.conf)==null?void 0:a.name)||""}),F=e.computed(()=>({backgroundColor:d.value.bgColor,borderColor:d.value.borderColor,borderStyle:d.value.borderStyle,borderWidth:`${d.value.borderWidth}px`,borderRadius:`${d.value.radiusSize}px`})),L=e.computed(()=>({borderColor:d.value.borderColor,borderStyle:d.value.borderStyle,borderWidth:`${Math.max(1,d.value.borderWidth)}px`,borderRadius:`${d.value.radiusSize}px`,backgroundColor:"transparent"})),m=e.ref(null),S=e.useTemplateRef("rootRef"),N=()=>{const o=S.value;if(!o)return{gridItem:null,canvas:null};const a=o.closest(".vgl-item")||o.closest(".vue-grid-item"),n=o.closest(".canvas");return{gridItem:a,canvas:n}},x=()=>{const{gridItem:o,canvas:a}=N();if(!o||!a)return;const n=o.getBoundingClientRect(),c=a.getBoundingClientRect(),i=a.offsetWidth||1,u=c.width/i||1,s=u===0?1:u;m.value={left:Math.round((n.left-c.left)/s),top:Math.round((n.top-c.top)/s),width:Math.round(n.width/s),height:Math.round(n.height/s)}},y=o=>{var a,n,c,i,u,s,h,v,f;if(typeof window!="undefined")try{window.dispatchEvent(new CustomEvent(`mix-placeholder:${o}`,{detail:{id:((a=t.conf)==null?void 0:a.id)||"",name:_.value,grid:{x:(c=(n=t.conf)==null?void 0:n.x)!=null?c:0,y:(u=(i=t.conf)==null?void 0:i.y)!=null?u:0,w:(h=(s=t.conf)==null?void 0:s.w)!=null?h:0,h:(f=(v=t.conf)==null?void 0:v.h)!=null?f:0},pixel:m.value,mode:t.mode}}))}catch(g){}};let p=null;return e.onMounted(()=>{e.nextTick(()=>{x(),y("registered");const{gridItem:o}=N();o&&typeof ResizeObserver!="undefined"&&(p=new ResizeObserver(()=>{x(),y("updated")}),p.observe(o))})}),e.onBeforeUnmount(()=>{p==null||p.disconnect(),p=null,y("unregistered")}),e.watch(()=>{var o,a,n,c,i;return[(o=t.conf)==null?void 0:o.x,(a=t.conf)==null?void 0:a.y,(n=t.conf)==null?void 0:n.w,(c=t.conf)==null?void 0:c.h,(i=t.conf)==null?void 0:i.options,t.mode]},()=>{e.nextTick(()=>{x(),y("updated")})},{deep:!0}),(o,a)=>{var n,c,i,u,s,h,v,f,g,w,C,E,k,B,R,I,V;return e.openBlock(),e.createElementBlock("div",{ref_key:"rootRef",ref:S,class:"mix-placeholder",style:e.normalizeStyle({pointerEvents:l.mode==="edit"?"auto":void 0}),"data-placeholder-id":((n=l.conf)==null?void 0:n.id)||"","data-placeholder-name":_.value,"data-x":(i=(c=l.conf)==null?void 0:c.x)!=null?i:0,"data-y":(s=(u=l.conf)==null?void 0:u.y)!=null?s:0,"data-w":(v=(h=l.conf)==null?void 0:h.w)!=null?v:0,"data-h":(g=(f=l.conf)==null?void 0:f.h)!=null?g:0},[l.mode==="edit"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-placeholder__frame mix-placeholder__frame--edit",style:e.normalizeStyle(F.value)},[d.value.showLabel?(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",H,[a[0]||(a[0]=e.createElementVNode("span",{class:"mix-placeholder__tag"},"占位组件",-1)),b.value?(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(b.value),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",K,[e.createElementVNode("span",null,"x:"+e.toDisplayString((C=(w=l.conf)==null?void 0:w.x)!=null?C:0),1),e.createElementVNode("span",null,"y:"+e.toDisplayString((k=(E=l.conf)==null?void 0:E.y)!=null?k:0),1),e.createElementVNode("span",null,"w:"+e.toDisplayString((R=(B=l.conf)==null?void 0:B.w)!=null?R:0),1),e.createElementVNode("span",null,"h:"+e.toDisplayString((V=(I=l.conf)==null?void 0:I.h)!=null?V:0),1)]),m.value?(e.openBlock(),e.createElementBlock("div",Q,[e.createTextVNode(e.toDisplayString(m.value.width)+"px × "+e.toDisplayString(m.value.height)+"px ",1),e.createElementVNode("span",X,"@("+e.toDisplayString(m.value.left)+", "+e.toDisplayString(m.value.top)+")",1)])):e.createCommentVNode("",!0),d.value.description?(e.openBlock(),e.createElementBlock("div",Y,e.toDisplayString(d.value.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],4)):d.value.showInPreview?(e.openBlock(),e.createElementBlock("div",{key:1,class:"mix-placeholder__frame mix-placeholder__frame--runtime",style:e.normalizeStyle(L.value)},[d.value.showLabel&&b.value?(e.openBlock(),e.createElementBlock("span",Z,e.toDisplayString(b.value),1)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default",{},void 0,!0)],12,q)}}})),re=j._export_sfc(ne,[["__scopeId","data-v-d6ad7f4c"]]);exports.default=re;
@@ -12,7 +12,7 @@ var $ = (o, e, r) => e in o ? q(o, e, { enumerable: !0, configurable: !0, writab
12
12
  }, D = (o, e) => G(o, H(e));
13
13
  import { defineComponent as Q, computed as w, ref as X, useTemplateRef as Y, onMounted as Z, nextTick as U, onBeforeUnmount as ee, watch as te, openBlock as h, createElementBlock as m, normalizeStyle as R, createElementVNode as p, toDisplayString as i, createCommentVNode as b, createTextVNode as oe, renderSlot as le } from "vue";
14
14
  import { A as ae, D as re } from "./ele-box-icon-Brlhb3oN.js";
15
- import { _ as de } from "./index-DomNEEyv.js";
15
+ import { _ as de } from "./index-BZpYmpDy.js";
16
16
  const ne = ["data-placeholder-id", "data-placeholder-name", "data-x", "data-y", "data-w", "data-h"], ce = {
17
17
  key: 0,
18
18
  class: "mix-placeholder__label"
@@ -28,10 +28,10 @@ var _ = (o, t, e) => new Promise((d, g) => {
28
28
  });
29
29
  import { defineComponent as t2, reactive as T, ref as S, computed as y, openBlock as L, createElementBlock as v, Fragment as F, createElementVNode as m, normalizeStyle as w, unref as f, createTextVNode as o2, toDisplayString as M, normalizeClass as j, createCommentVNode as I, renderList as s2, renderSlot as i2, createVNode as n2 } from "vue";
30
30
  import "html2canvas";
31
- import { B as l2 } from "./BaseComponent-BlCsb-HW.js";
32
- import { U as a2, A as E, a as r2, _ as c2 } from "./index-DomNEEyv.js";
31
+ import { B as l2 } from "./BaseComponent-CQaDWNO0.js";
32
+ import { V as a2, A as E, a as r2, _ as c2 } from "./index-BZpYmpDy.js";
33
33
  import { g as d2 } from "./titleStyle-BT5GlpAb.js";
34
- import { _ as u2, g as p2, c as B } from "./mix-control-modal-DjD4xOuc.js";
34
+ import { _ as u2, g as p2, c as B } from "./mix-control-modal-DzVLdO3S.js";
35
35
  import { ElMessage as O } from "element-plus";
36
36
  const m2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", f2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", C2 = { class: "font-semibold flex items-center justify-between" }, g2 = { class: "flex items-center" }, h2 = { class: "mix-body" }, L2 = { class: "w-full flex flex-wrap content-start" }, v2 = ["onMousedown", "onMouseup"], w2 = {
37
37
  DEFAULT_ICON: m2,