mixdashboards 1.0.87 → 1.0.89

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 (335) hide show
  1. package/dist/{BaseComponent-qzL33ZSL.js → BaseComponent-D82kw5vB.js} +14 -14
  2. package/dist/{BaseComponent-BHUHnLj-.cjs → BaseComponent-DoQ1oLoA.cjs} +1 -1
  3. package/dist/{EChartComponentBase-BtAW2Yko.js → EChartComponentBase-DUyyaXgA.js} +5 -5
  4. package/dist/{EChartComponentBase-C4s5HSfS.cjs → EChartComponentBase-ejDV5NEw.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-CqvHGqqx.js → EmergencyPlanPanel-Bm-fqxYR.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-C8ieiZvC.cjs → EmergencyPlanPanel-BnVlQ-f6.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-CUSKabw0.js → HistoryPlanDialog-BMzhidd2.js} +1 -1
  8. package/dist/{HistoryPlanDialog-D6VMuzat.cjs → HistoryPlanDialog-QBBxCX7D.cjs} +1 -1
  9. package/dist/{MixiotAppDetailPage-CFISQwpc.js → MixiotAppDetailPage-Dr5R35qW.js} +1 -1
  10. package/dist/{MixiotAppDetailPage-Bd9WrADz.cjs → MixiotAppDetailPage-FfC4ZxrA.cjs} +1 -1
  11. package/dist/{MonitoringMap-CV7YYixH.js → MonitoringMap-CpdWX4fF.js} +2 -2
  12. package/dist/{MonitoringMap-DjvavXD5.cjs → MonitoringMap-eVOQwtGG.cjs} +1 -1
  13. package/dist/{UniverSheet-C7QQQUHI.js → UniverSheet-02jn_UjA.js} +2 -2
  14. package/dist/{UniverSheet-BY4vwAeQ.cjs → UniverSheet-Ded-R47O.cjs} +1 -1
  15. package/dist/{accelerationChart-Dd7s6CA0.js → accelerationChart-B5n1Fc12.js} +21 -21
  16. package/dist/{accelerationChart-CnbCpT4d.cjs → accelerationChart-BKIZV5eU.cjs} +1 -1
  17. package/dist/{actionItem-DNgoQB08.cjs → actionItem-CLwRbg4y.cjs} +1 -1
  18. package/dist/{actionItem-CjNacj0F.js → actionItem-DsZ4M1qS.js} +2 -2
  19. package/dist/{alarmLevelChart-DDFP_ADG.js → alarmLevelChart-9ZdAuQvY.js} +2 -2
  20. package/dist/{alarmLevelChart-CRL45xkr.cjs → alarmLevelChart-CyCmhAZl.cjs} +1 -1
  21. package/dist/{alertTable-DrUs1wUN.js → alertTable-BbsFIJQc.js} +2 -2
  22. package/dist/{alertTable-UvxQNZ2Y.cjs → alertTable-Bj90t5vD.cjs} +1 -1
  23. package/dist/{aliasObjectSelectorDemo-BGgcbyT-.cjs → aliasObjectSelectorDemo-DOtzALw2.cjs} +1 -1
  24. package/dist/{aliasObjectSelectorDemo-Bep18FrL.js → aliasObjectSelectorDemo-fW-a4DCV.js} +7 -7
  25. package/dist/{annualRainfallChart-BMuH6tsO.js → annualRainfallChart-BzzrCCJe.js} +2 -2
  26. package/dist/{annualRainfallChart-DDnaZZp0.cjs → annualRainfallChart-Dzx4SJpe.cjs} +1 -1
  27. package/dist/{aqi-CbyrPtO4.js → aqi-006rTnsK.js} +2 -2
  28. package/dist/{aqi-DjkOgiun.cjs → aqi-DJrhDnm8.cjs} +1 -1
  29. package/dist/{aqiIndass-C-DEsmZ4.js → aqiIndass-DLN5CDbq.js} +21 -21
  30. package/dist/{aqiIndass-C3mPUZP6.cjs → aqiIndass-DokEaddv.cjs} +1 -1
  31. package/dist/{areaDeformCurve-B-bUeLI-.cjs → areaDeformCurve-CAV4T1p6.cjs} +1 -1
  32. package/dist/{areaDeformCurve-D6in1BnQ.js → areaDeformCurve-Eb4dsvjI.js} +2 -2
  33. package/dist/{arrayCard-CAoU7DHK.cjs → arrayCard-BeHFZmCq.cjs} +1 -1
  34. package/dist/{arrayCard-CpzPkgA9.js → arrayCard-DujWUhYK.js} +2 -2
  35. package/dist/{audio-TkisK5FD.js → audio-CrY3aLMX.js} +2 -2
  36. package/dist/{audio-BrTfWQmo.cjs → audio-lDtmX9bz.cjs} +1 -1
  37. package/dist/{bar-CT6sCNW4.js → bar-CVPXbvtH.js} +10 -10
  38. package/dist/{bar-BZBOTnN4.cjs → bar-WVNHLoJ3.cjs} +1 -1
  39. package/dist/{bmp-DgcyTiV5.cjs → bmp-BUgmrbhZ.cjs} +1 -1
  40. package/dist/{bmp-Xsdyi9gr.js → bmp-Bw1KLZox.js} +2 -2
  41. package/dist/{box-DNKXXXYx.js → box-D3M4txCW.js} +23 -23
  42. package/dist/{box-DED4JT5G.cjs → box-cqCoRDny.cjs} +1 -1
  43. package/dist/{chartConfigPanel-CF-q-XUN.js → chartConfigPanel-BS-4fGEs.js} +1 -1
  44. package/dist/{chartConfigPanel-D1M21nDO.cjs → chartConfigPanel-CVjBfsPG.cjs} +1 -1
  45. package/dist/{circleBar-CaC8ntp-.js → circleBar-C2-5NbKx.js} +2 -2
  46. package/dist/{circleBar-m6J_QvzN.cjs → circleBar-DHFREWDZ.cjs} +1 -1
  47. package/dist/{clock-tPcek90B.js → clock-CbPolNJf.js} +2 -2
  48. package/dist/{clock-CnV36tpq.cjs → clock-DCLrJzaN.cjs} +1 -1
  49. package/dist/{clt-DoDENEcJ.cjs → clt-CpnBLyYn.cjs} +1 -1
  50. package/dist/{clt-DwoBhD_P.js → clt-EjSvDr2u.js} +15 -15
  51. package/dist/{cmc-Dld5UOW9.cjs → cmc-3E3UvBFP.cjs} +1 -1
  52. package/dist/{cmc-ObS3fWlL.js → cmc-BDDdRH_H.js} +25 -25
  53. package/dist/{cmp-Bp9FqBZV.cjs → cmp-DAzG9LwZ.cjs} +1 -1
  54. package/dist/{cmp-DEH1jzrG.js → cmp-_zlwmg1E.js} +2 -2
  55. package/dist/{conclusionCard-DXiFAJmo.cjs → conclusionCard-9zD6W6AF.cjs} +1 -1
  56. package/dist/{conclusionCard-CHFJIt7G.js → conclusionCard-b_f9juIB.js} +2 -2
  57. package/dist/{controlList-hWCbafkY.js → controlList-DFX97otG.js} +2 -2
  58. package/dist/{controlList-B2tV397i.cjs → controlList-DHG2jD51.cjs} +1 -1
  59. package/dist/{controlRecordList-DnhHr7kU.js → controlRecordList-B0oTZp28.js} +2 -2
  60. package/dist/{controlRecordList-uAmuCKjf.cjs → controlRecordList-kGbanAXa.cjs} +1 -1
  61. package/dist/{controlRecordListAPP-BpZmCMM-.js → controlRecordListAPP-BOukSyHq.js} +2 -2
  62. package/dist/{controlRecordListAPP-BpfPZW3b.cjs → controlRecordListAPP-gXYEcRA_.cjs} +1 -1
  63. package/dist/{crd-BQ7AFV1c.cjs → crd-BATQ1KFa.cjs} +1 -1
  64. package/dist/{crd-ChpWMXAm.js → crd-C_z8MNM0.js} +2 -2
  65. package/dist/{ctrBtn-PTITC7R8.cjs → ctrBtn-BnwZlZ5c.cjs} +1 -1
  66. package/dist/{ctrBtn-CmdQ3s7z.js → ctrBtn-DTyOVAVy.js} +11 -11
  67. package/dist/{ctrSet-Dv5i5ne5.js → ctrSet-BTnbgdd3.js} +7 -7
  68. package/dist/{ctrSet-CYqeDilm.cjs → ctrSet-BWr9dDIX.cjs} +1 -1
  69. package/dist/{ctrSwitch-C3NZcUxa.js → ctrSwitch-BH76ZhOi.js} +8 -8
  70. package/dist/{ctrSwitch-Byt4qKjt.cjs → ctrSwitch-CCdNwgtf.cjs} +1 -1
  71. package/dist/{dataManagement-BFIS0e4d.cjs → dataManagement-DEe2X-oe.cjs} +1 -1
  72. package/dist/{dataManagement-enhqxRgF.js → dataManagement-ju5aByQS.js} +2 -2
  73. package/dist/{dataReport-DLdB1ARI.js → dataReport-B5tUeLYL.js} +2 -2
  74. package/dist/{dataReport-vfCe0q9d.cjs → dataReport-DGdNGqNg.cjs} +1 -1
  75. package/dist/{dataTable-DFZrMHnF.js → dataTable-ByiR5jdH.js} +1 -1
  76. package/dist/{dataTable-DE3yOae0.cjs → dataTable-ChBv_YlP.cjs} +1 -1
  77. package/dist/{datetime-BK4xGaTM.js → datetime-CThnusEe.js} +2 -2
  78. package/dist/{datetime-DXTcE56I.cjs → datetime-DG6uMSUr.cjs} +1 -1
  79. package/dist/{deepClusterSlipSurface-BKFavDI5.cjs → deepClusterSlipSurface-8hEjAzBW.cjs} +1 -1
  80. package/dist/{deepClusterSlipSurface-D_PbxUdd.js → deepClusterSlipSurface-CLxfYGxD.js} +29 -29
  81. package/dist/{deepDataMatrix-avI-0mLw.js → deepDataMatrix-6Ny4cIe7.js} +21 -21
  82. package/dist/{deepDataMatrix-DzzK55Mc.cjs → deepDataMatrix-D5B1nu2J.cjs} +1 -1
  83. package/dist/{deepDisplacement3D-CbyatHpJ.js → deepDisplacement3D-BVjkYHfy.js} +2 -2
  84. package/dist/{deepDisplacement3D-DW0CW2ut.cjs → deepDisplacement3D-DCJ00L5m.cjs} +1 -1
  85. package/dist/{deepDisplacementChart-DY0lNJOz.js → deepDisplacementChart-Blzrj3dF.js} +40 -40
  86. package/dist/{deepDisplacementChart-Dm71dHpY.cjs → deepDisplacementChart-DdiaOR7t.cjs} +1 -1
  87. package/dist/{deepDisplacementChart-B7GDsSm7.js → deepDisplacementChart-Dvn76ypl.js} +22 -22
  88. package/dist/{deepDisplacementChart-DauJXxkW.cjs → deepDisplacementChart-pktiGXQI.cjs} +1 -1
  89. package/dist/{deepDisplacementView-RywcwybM.js → deepDisplacementView-DIwTwh_K.js} +1 -1
  90. package/dist/{deepDisplacementView-BJAAMyTP.cjs → deepDisplacementView-ZLKNGoIQ.cjs} +1 -1
  91. package/dist/{deepNodeTemperatureChart-Et7GEspn.js → deepNodeTemperatureChart-115sZmrU.js} +36 -36
  92. package/dist/{deepNodeTemperatureChart-FN14qWXP.cjs → deepNodeTemperatureChart-gDvvGuyq.cjs} +1 -1
  93. package/dist/{deepTangentAngleChart-m3r_mJg0.cjs → deepTangentAngleChart-DVSVhg5b.cjs} +1 -1
  94. package/dist/{deepTangentAngleChart-CEsc85Mi.js → deepTangentAngleChart-DmC2LGTU.js} +22 -22
  95. package/dist/{deepTemperatureField-jfV1EahT.cjs → deepTemperatureField-ClJsxAvt.cjs} +1 -1
  96. package/dist/{deepTemperatureField-Cr3c_t1T.js → deepTemperatureField-D6G_kQeJ.js} +32 -32
  97. package/dist/{deepTrendChart-D7IDGKBC.js → deepTrendChart-C53TU6F2.js} +34 -34
  98. package/dist/{deepTrendChart-DIyUa5qe.cjs → deepTrendChart-Drys7qZg.cjs} +1 -1
  99. package/dist/{deviceOnlineStatus--G66OLv8.cjs → deviceOnlineStatus-BnoXmtDj.cjs} +1 -1
  100. package/dist/{deviceOnlineStatus-DDo0caCc.js → deviceOnlineStatus-cZu_IljM.js} +2 -2
  101. package/dist/{deviceStatus-B0sBzHx9.cjs → deviceStatus-Bxqii2_U.cjs} +1 -1
  102. package/dist/{deviceStatus-cmxKruD-.js → deviceStatus-DcjQXNtS.js} +19 -19
  103. package/dist/{displacementDataTable-Bxs-LIOW.cjs → displacementDataTable-C3W_0L7c.cjs} +1 -1
  104. package/dist/{displacementDataTable-BwhylBbX.js → displacementDataTable-DlwZHsnk.js} +17 -17
  105. package/dist/{displacementTrajectoryChart-JJEGEVMc.cjs → displacementTrajectoryChart-C54ljhYo.cjs} +1 -1
  106. package/dist/{displacementTrajectoryChart-D3VcZ1qM.js → displacementTrajectoryChart-DCFPd8I8.js} +34 -34
  107. package/dist/{displacementTrendChart-BlIqd2IK.js → displacementTrendChart-Bwi9pIKg.js} +32 -32
  108. package/dist/{displacementTrendChart-GmxA4M6n.cjs → displacementTrendChart-C2UFFHy3.cjs} +1 -1
  109. package/dist/{dxf-JH5I0L5F.cjs → dxf-BXat6zT0.cjs} +1 -1
  110. package/dist/{dxf-r-iy1MWn.js → dxf-CvvsXRab.js} +2 -2
  111. package/dist/{dzc-KbkTkgzk.cjs → dzc-611sFAMA.cjs} +1 -1
  112. package/dist/{dzc-CMhN9l76.js → dzc-xIM9tlfM.js} +8 -8
  113. package/dist/{emergencyPlan-CR8HkDi4.js → emergencyPlan-BLfRn6UD.js} +3 -3
  114. package/dist/{emergencyPlan-FSdy0Ik5.cjs → emergencyPlan-DYckkWIF.cjs} +1 -1
  115. package/dist/{evn-D8kcAx_T.cjs → evn-BVP-ihLU.cjs} +1 -1
  116. package/dist/{evn-DGxcYjRA.js → evn-C5g9HTlT.js} +2 -2
  117. package/dist/{evolutionChart-K7H8KKIG.js → evolutionChart-CqCoGysK.js} +3 -3
  118. package/dist/{evolutionChart-CI2hDs5C.cjs → evolutionChart-DFOIeAnj.cjs} +1 -1
  119. package/dist/{fileViewer-Df0AU_z9.js → fileViewer-BGBuea6P.js} +2 -2
  120. package/dist/{fileViewer-DtIGy-zH.cjs → fileViewer-CdCgk5vi.cjs} +1 -1
  121. package/dist/{filterBar-DEfkfl04.cjs → filterBar-1LBu8CWi.cjs} +1 -1
  122. package/dist/{filterBar-BRDe-GgC.js → filterBar-CG1pnrgf.js} +2 -2
  123. package/dist/{fireCombustionCurve-DJXeynXa.js → fireCombustionCurve-DBLZItFG.js} +3 -3
  124. package/dist/{fireCombustionCurve-C8UGnEPC.cjs → fireCombustionCurve-DFGlWVK-.cjs} +1 -1
  125. package/dist/{fireFilterBar-CXiN-Jkv.js → fireFilterBar-55way8Kq.js} +2 -2
  126. package/dist/{fireFilterBar-iqgVdbgH.cjs → fireFilterBar-DmXRJrBH.cjs} +1 -1
  127. package/dist/{fireHistoryTable-CTIdqGk3.js → fireHistoryTable-6lMO644G.js} +2 -2
  128. package/dist/{fireHistoryTable-Dl4A1pRv.cjs → fireHistoryTable-CrOZPx1P.cjs} +1 -1
  129. package/dist/{gag-BVPZK4hG.js → gag-BRtB5Zyd.js} +2 -2
  130. package/dist/{gag-DQa6TEDv.cjs → gag-C8Q8kIfD.cjs} +1 -1
  131. package/dist/{gasStationList-BkzLZp4-.cjs → gasStationList-CuMupuAF.cjs} +1 -1
  132. package/dist/{gasStationList-NFyxin-H.js → gasStationList-Dh0HOgcE.js} +2 -2
  133. package/dist/{geo3dViewer-VRenmVKs.cjs → geo3dViewer-CxUsz_Fa.cjs} +1 -1
  134. package/dist/{geo3dViewer-BJpae_MX.js → geo3dViewer-ph_PeQy-.js} +3 -3
  135. package/dist/{glbModel-C96hRxP0.js → glbModel-HkdGjDju.js} +2 -2
  136. package/dist/{glbModel-i2X1L8LC.cjs → glbModel-keR5BhQS.cjs} +1 -1
  137. package/dist/{globalObjectSelector-DhbeX3bm.cjs → globalObjectSelector-BbyN1tdM.cjs} +1 -1
  138. package/dist/{globalObjectSelector-D09a0A2t.js → globalObjectSelector-C181O9oo.js} +43 -43
  139. package/dist/{gnssFilterBar-BX3mEKiT.cjs → gnssFilterBar-CLrEX2db.cjs} +1 -1
  140. package/dist/{gnssFilterBar-BHqE79Ri.js → gnssFilterBar-vcfVn7a6.js} +2 -2
  141. package/dist/{gnssHistoryTable-ZBfzhnlx.cjs → gnssHistoryTable-BpFJjWcy.cjs} +1 -1
  142. package/dist/{gnssHistoryTable-D9tglOkP.js → gnssHistoryTable-D0VkG9vT.js} +2 -2
  143. package/dist/{gnssMapView-B2rSxPml.cjs → gnssMapView-ChrUruFB.cjs} +2 -2
  144. package/dist/{gnssMapView-Bicnnr6P.js → gnssMapView-a4luVEYa.js} +4 -4
  145. package/dist/{gnssSectionProfile-BKnvQBHa.cjs → gnssSectionProfile-CoP2v7aY.cjs} +1 -1
  146. package/dist/{gnssSectionProfile-BfkjiI0i.js → gnssSectionProfile-DnHfVuhk.js} +2 -2
  147. package/dist/{gnssTimeSeriesChart-BTK4Qize.js → gnssTimeSeriesChart-B1NJ4cn0.js} +2 -2
  148. package/dist/{gnssTimeSeriesChart-Cj-151Zs.cjs → gnssTimeSeriesChart-DVAjY9eo.cjs} +1 -1
  149. package/dist/{gnssXYTrajectory-BgwA-1Fx.cjs → gnssXYTrajectory-CiFR9qoL.cjs} +1 -1
  150. package/dist/{gnssXYTrajectory-DZiGIgf5.js → gnssXYTrajectory-D_pCZ7Hd.js} +2 -2
  151. package/dist/{grd-DW4ve5k2.js → grd-2THwmH-B.js} +17 -17
  152. package/dist/{grd-DrRka55C.cjs → grd-CZT36wMZ.cjs} +1 -1
  153. package/dist/{grdIndass-CofZtTJe.cjs → grdIndass-CO9sMJwo.cjs} +1 -1
  154. package/dist/{grdIndass-CRZ9agT-.js → grdIndass-CjQCGgum.js} +10 -10
  155. package/dist/{grg-zv4YAkAu.js → grg-CDte_thi.js} +10 -10
  156. package/dist/{grg-Cugg5crY.cjs → grg-Cs7-r62k.cjs} +1 -1
  157. package/dist/{gridview-BjOw8zBf.cjs → gridview-BYOPPFAQ.cjs} +1 -1
  158. package/dist/{gridview-DRB1rG1L.js → gridview-DoFkoRJG.js} +2 -2
  159. package/dist/{groundwaterFilterBar-DyCL0fs9.js → groundwaterFilterBar-BPSFA1Lw.js} +2 -2
  160. package/dist/{groundwaterFilterBar-D4appJuv.cjs → groundwaterFilterBar-FCQgVbxJ.cjs} +1 -1
  161. package/dist/{groundwaterProfileChart-CDByowkP.cjs → groundwaterProfileChart-CZM2Ijqj.cjs} +2 -2
  162. package/dist/{groundwaterProfileChart-Bo_XCqyF.js → groundwaterProfileChart-CrKLzRsw.js} +3 -3
  163. package/dist/{groundwaterTimeCurve-Cj5qSKTI.cjs → groundwaterTimeCurve-BU92AmmI.cjs} +1 -1
  164. package/dist/{groundwaterTimeCurve-C0WRGZNY.js → groundwaterTimeCurve-Dy5QHMnD.js} +3 -3
  165. package/dist/{groupCard-JeKQg4FL.js → groupCard-ByiU2e9a.js} +2 -2
  166. package/dist/{groupCard-B7XW81Xq.cjs → groupCard-Bz4dzhtP.cjs} +1 -1
  167. package/dist/{headerBar-D5FXDHNR.js → headerBar-Bmugs0fE.js} +2 -2
  168. package/dist/{headerBar-BXNzoDYA.cjs → headerBar-DGQqoZZH.cjs} +1 -1
  169. package/dist/{history-D_NO9ojb.cjs → history-BNN6YYlw.cjs} +1 -1
  170. package/dist/{history-BDIdK3AY.js → history-CIAU9_hA.js} +12 -12
  171. package/dist/{index-D7PZNHF4.cjs → index-BdWR_FTA.cjs} +10 -10
  172. package/dist/{index-BHBE19E2.js → index-CCWU_se2.js} +2248 -2208
  173. package/dist/{insarDeformChart-wTnTF5NC.cjs → insarDeformChart-B6ad_kTg.cjs} +1 -1
  174. package/dist/{insarDeformChart-DuBYscAT.js → insarDeformChart-CpMWLFgM.js} +2 -2
  175. package/dist/{insarImageViewer-DGkic1Rj.cjs → insarImageViewer-CXkitdwR.cjs} +1 -1
  176. package/dist/{insarImageViewer-tPyDE815.js → insarImageViewer-Dwvau4-d.js} +2 -2
  177. package/dist/{kds-Bto_xGCo.cjs → kds-Bjks3GFb.cjs} +1 -1
  178. package/dist/{kds-Joeeniwr.js → kds-DrlduN0N.js} +21 -21
  179. package/dist/{kpiCard-D_8YToN_.cjs → kpiCard-CEPgU6Td.cjs} +1 -1
  180. package/dist/{kpiCard-B2MTndw-.js → kpiCard-CvTeFbgJ.js} +2 -2
  181. package/dist/{landslideMap-BSImmP3T.js → landslideMap-B5ecUy9T.js} +30 -30
  182. package/dist/{landslideMap-DbvJ2h3R.cjs → landslideMap-BBMdZRMN.cjs} +1 -1
  183. package/dist/{landslideWarning-DjgODoEd.js → landslideWarning-CMEvyHhr.js} +11 -11
  184. package/dist/{landslideWarning-CVvZS5-l.cjs → landslideWarning-CYLG3Oxj.cjs} +1 -1
  185. package/dist/{layerTabs-CT14C_oL.cjs → layerTabs-DstdlkUM.cjs} +1 -1
  186. package/dist/{layerTabs-C2qdit8f.js → layerTabs-K7SxTlw4.js} +2 -2
  187. package/dist/{leaflet-src-CsuGTXZi.js → leaflet-src-ClP2DPnn.js} +1 -1
  188. package/dist/{leaflet-src-BuDfd_hT.cjs → leaflet-src-DhrxkAwA.cjs} +1 -1
  189. package/dist/{lerc-5_flDPwM.js → lerc-CmVR8_Da.js} +2 -2
  190. package/dist/{lerc-BVRAhrgg.cjs → lerc-DA9nzmCS.cjs} +1 -1
  191. package/dist/{lin-Djc6HZCi.js → lin-Dm_oqUd8.js} +11 -11
  192. package/dist/{lin--Wc9Mzoq.cjs → lin-Dn6V4e5I.cjs} +1 -1
  193. package/dist/{linIndass-Bxs7wFnh.cjs → linIndass-BldY-1UZ.cjs} +1 -1
  194. package/dist/{linIndass-CQ2BZiY0.js → linIndass-CowqLuzl.js} +10 -10
  195. package/dist/{lst-CxLOKAzL.js → lst-Bu9POh4U.js} +2 -2
  196. package/dist/{lst-C-yxmy1r.cjs → lst-CPzaL4pE.cjs} +1 -1
  197. package/dist/{manualEntry-Dd9swkaL.cjs → manualEntry-D6HxT0e1.cjs} +1 -1
  198. package/dist/{manualEntry-DLL43b_K.js → manualEntry-DFPCiPZm.js} +2 -2
  199. package/dist/{mapBackground-CDGjjy8-.js → mapBackground-DNs_5l_N.js} +3 -3
  200. package/dist/{mapBackground-DNQRoaFb.cjs → mapBackground-DdNuu0qi.cjs} +1 -1
  201. package/dist/{mappingList-C9HUo2y9.cjs → mappingList-B2euTZM6.cjs} +1 -1
  202. package/dist/{mappingList-DrhZfKtH.js → mappingList-D9Ax3W4e.js} +2 -2
  203. package/dist/{markdownViewer-DIb7t2bx.js → markdownViewer-BCz-nS97.js} +2 -2
  204. package/dist/{markdownViewer-Bea8zl8q.cjs → markdownViewer-BlmkSj2F.cjs} +1 -1
  205. package/dist/{mix-control-modal-CaAkqkzX.js → mix-control-modal-DTiG49Lj.js} +7 -7
  206. package/dist/{mix-control-modal-Dh-NZ50w.cjs → mix-control-modal-DaSRoqVn.cjs} +1 -1
  207. package/dist/{mixGrid-DPdzqHke.js → mixGrid-BuBmT7GK.js} +2 -2
  208. package/dist/{mixGrid-DFuBeOy6.cjs → mixGrid-CM-obY4q.cjs} +1 -1
  209. package/dist/mixdashboards.cjs +1 -1
  210. package/dist/mixdashboards.css +1 -1
  211. package/dist/mixdashboards.js +1 -1
  212. package/dist/mixiotObjectListApi-434Mto0m.cjs +1 -0
  213. package/dist/{mixiotObjectListApi-CJsYvcG_.js → mixiotObjectListApi-ZWtORc3c.js} +37 -35
  214. package/dist/{mjpegCamera-BvlKwwDL.cjs → mjpegCamera-D3JM1GzZ.cjs} +1 -1
  215. package/dist/{mjpegCamera-C9PNl-r4.js → mjpegCamera-ye25efWW.js} +2 -2
  216. package/dist/{monitorAlert-LeeMIRjf.cjs → monitorAlert-CJ_pAHXP.cjs} +1 -1
  217. package/dist/{monitorAlert-vVcYtohz.js → monitorAlert-Clr3_BqZ.js} +14 -14
  218. package/dist/{monitorData-BtF_j2kd.cjs → monitorData-Biwb0h-A.cjs} +1 -1
  219. package/dist/{monitorData-CHhLhD4y.js → monitorData-nXGeoFVW.js} +9 -9
  220. package/dist/{monitorSpeedChart-BH_rITMD.cjs → monitorSpeedChart-B7FhH0Kk.cjs} +1 -1
  221. package/dist/{monitorSpeedChart-Dhchpe2h.js → monitorSpeedChart-CiS6TSfI.js} +1 -1
  222. package/dist/{mxa-CU0OUOdG.cjs → mxa-D5zEytKD.cjs} +1 -1
  223. package/dist/{mxa-B3DlA-Xs.js → mxa-Nv228pmQ.js} +20 -20
  224. package/dist/{myValue-AeGxHeE2.cjs → myValue-BmHQ_lRL.cjs} +1 -1
  225. package/dist/{myValue-DEbeO9Cb.js → myValue-CBsVyhrq.js} +2 -2
  226. package/dist/{myValueList-qDBbrqDv.js → myValueList-CNGkPgE3.js} +2 -2
  227. package/dist/{myValueList-EkbSpjf0.cjs → myValueList-F2JXq_cs.cjs} +1 -1
  228. package/dist/{objectList-B1Q5MJPW.cjs → objectList-B2AqFaoX.cjs} +1 -1
  229. package/dist/{objectList-DTHwnvxc.js → objectList-CacWdl7-.js} +3 -3
  230. package/dist/{objectListAPP-njF3tJUP.js → objectListAPP-B8ryIqee.js} +4 -4
  231. package/dist/{objectListAPP-CgPjYGiu.cjs → objectListAPP-oI7xgnNz.cjs} +1 -1
  232. package/dist/{percentBar-Dil8Vm3q.cjs → percentBar-BamhAckr.cjs} +1 -1
  233. package/dist/{percentBar-BAwdbKH8.js → percentBar-By4ErDLm.js} +15 -15
  234. package/dist/{photo-Bn0lWnis.js → photo-5bKR5PWJ.js} +2 -2
  235. package/dist/{photo-BlZ5X_9p.cjs → photo-Db9B9k7E.cjs} +1 -1
  236. package/dist/{pie-CG2cvCTM.js → pie-B8IcWNmh.js} +2 -2
  237. package/dist/{pie-CbOvGe0n.cjs → pie-Bo5fBYnv.cjs} +1 -1
  238. package/dist/{placeholder-jPC58i_u.cjs → placeholder-Ba-1pW5q.cjs} +1 -1
  239. package/dist/{placeholder-Bdop1bDv.js → placeholder-cEZ1VojS.js} +1 -1
  240. package/dist/{pressBtn-Cwp0-Mju.js → pressBtn-B90A4FTO.js} +7 -7
  241. package/dist/{pressBtn-C6mEzpGm.cjs → pressBtn-Bg9z2xjW.cjs} +1 -1
  242. package/dist/{processTable--PnPJzep.js → processTable-Dmf9PtKT.js} +2 -2
  243. package/dist/{processTable-CUrw-_tx.cjs → processTable-KmBhdxq9.cjs} +1 -1
  244. package/dist/{progressBar-CLBQrVhg.js → progressBar-CBvxzYpz.js} +2 -2
  245. package/dist/{progressBar-Dg1WRKUU.cjs → progressBar-CuR-TjJy.cjs} +1 -1
  246. package/dist/{progressCircle-DBXHBoZS.cjs → progressCircle-B7uJFhbg.cjs} +1 -1
  247. package/dist/{progressCircle-Dft4lI8s.js → progressCircle-CxF0elMR.js} +2 -2
  248. package/dist/{qrcode-BH8f2Hfp.cjs → qrcode-B5ohsZSk.cjs} +1 -1
  249. package/dist/{qrcode-B7VNzAkt.js → qrcode-Bj1iBOqf.js} +40 -31
  250. package/dist/{raceBar-Ck_RLw_X.js → raceBar-BM7aKngn.js} +2 -2
  251. package/dist/{raceBar-DZCr0eC-.cjs → raceBar-cbIKXdrY.cjs} +1 -1
  252. package/dist/{rad-C7ostpqi.js → rad-BxLSGBt5.js} +2 -2
  253. package/dist/{rad-C3kidKBD.cjs → rad-XuUgEqvp.cjs} +1 -1
  254. package/dist/{radarMapViewer-B8g9WmmH.cjs → radarMapViewer-CE3iOzHQ.cjs} +1 -1
  255. package/dist/{radarMapViewer-BxHWMhxf.js → radarMapViewer-Y2d-z-Xi.js} +2 -2
  256. package/dist/{rainfallFilterBar-G_3cep1I.cjs → rainfallFilterBar-5B9nOZMQ.cjs} +1 -1
  257. package/dist/{rainfallFilterBar-C6amyMsu.js → rainfallFilterBar-BQQ6cWWT.js} +2 -2
  258. package/dist/{rainfallTimeCurve-dOfq4IKr.js → rainfallTimeCurve-D7UHAW7B.js} +3 -3
  259. package/dist/{rainfallTimeCurve-Ce8eRvv6.cjs → rainfallTimeCurve-VUFDrlaJ.cjs} +1 -1
  260. package/dist/{rangeLin-GOVFLiyl.cjs → rangeLin-BCy_aU2O.cjs} +1 -1
  261. package/dist/{rangeLin-CXrCb7e3.js → rangeLin-CWkY4AVF.js} +21 -21
  262. package/dist/{realtimeEvolutionMap-VApbSWKk.cjs → realtimeEvolutionMap-CpOZ-K90.cjs} +1 -1
  263. package/dist/{realtimeEvolutionMap-CLhVGzzZ.js → realtimeEvolutionMap-midbOpQ_.js} +2 -2
  264. package/dist/{regionBar-DOkzOqR4.cjs → regionBar-BO8d6Gfr.cjs} +1 -1
  265. package/dist/{regionBar-CgCQBHYm.js → regionBar-ClY6Vcp0.js} +2 -2
  266. package/dist/{request-CsLYkQ1F.js → request-DHoyVWU-.js} +13 -13
  267. package/dist/{request-DBDym05o.cjs → request-Wvyc5KfO.cjs} +1 -1
  268. package/dist/{retainer1-D2ORoyPc.js → retainer1-C074kiSG.js} +3 -3
  269. package/dist/{retainer1-BihlkLkk.cjs → retainer1-fPoh6UWL.cjs} +1 -1
  270. package/dist/{retainer2-89gF8O00.js → retainer2-D26SOrnE.js} +3 -3
  271. package/dist/{retainer2-5-qgDYHt.cjs → retainer2-DQffbiOL.cjs} +1 -1
  272. package/dist/{retainerRecordList-ZukSm42U.cjs → retainerRecordList-17lNzhYY.cjs} +1 -1
  273. package/dist/{retainerRecordList-B7oZOPiz.js → retainerRecordList-CMrtXtg0.js} +2 -2
  274. package/dist/{retainerRecordListAPP-CJifqoYV.js → retainerRecordListAPP-BVdG5XNP.js} +3 -3
  275. package/dist/{retainerRecordListAPP-C3ghAm55.cjs → retainerRecordListAPP-Dv07T1sM.cjs} +1 -1
  276. package/dist/{ringTopN-DEWE8OKA.js → ringTopN-D8fLY5hp.js} +2 -2
  277. package/dist/{ringTopN-BKFTI8w3.cjs → ringTopN-DfEl45ch.cjs} +1 -1
  278. package/dist/{riskRegionTable-Dg-ZfEl1.cjs → riskRegionTable-DFj8c8Hv.cjs} +1 -1
  279. package/dist/{riskRegionTable-DDWPmzK4.js → riskRegionTable-YottkGcg.js} +13 -13
  280. package/dist/{sankey-CjCzdx5A.js → sankey-D-C9WSeH.js} +8 -8
  281. package/dist/{sankey-CVIFo2TP.cjs → sankey-D-fUhpIU.cjs} +1 -1
  282. package/dist/{scd-ExZtelyF.js → scd-CasvRFjo.js} +2 -2
  283. package/dist/{scd-D7vwm2So.cjs → scd-DNoPBk6l.cjs} +1 -1
  284. package/dist/{sideMenu-9YGvznYC.js → sideMenu-C0wdN7VA.js} +2 -2
  285. package/dist/{sideMenu-LL4XLBcW.cjs → sideMenu-CVxLfq_Q.cjs} +1 -1
  286. package/dist/{slopeStability-BeoNqhaA.cjs → slopeStability-B-YjvDTE.cjs} +1 -1
  287. package/dist/{slopeStability-BRVBekjo.js → slopeStability-B5mssi6B.js} +20 -20
  288. package/dist/{speedCurve-DJUY_EGs.js → speedCurve-BDW6iwb5.js} +2 -2
  289. package/dist/{speedCurve-DLuFWpeb.cjs → speedCurve-D_ZbiTc0.cjs} +1 -1
  290. package/dist/{stackedBar-W-rgbty6.cjs → stackedBar-CW8BzUQc.cjs} +1 -1
  291. package/dist/{stackedBar-DkjXvEyH.js → stackedBar-UfQPMmu_.js} +9 -9
  292. package/dist/{stressFilterBar-FmqkdIl5.js → stressFilterBar-B4qAx5bg.js} +2 -2
  293. package/dist/{stressFilterBar-D02NjLM9.cjs → stressFilterBar-Du1vnYaq.cjs} +1 -1
  294. package/dist/{stressTimeCurve-Ck194Rx4.js → stressTimeCurve-AlnfIJP8.js} +3 -3
  295. package/dist/{stressTimeCurve-CEU3JrfW.cjs → stressTimeCurve-D_Js7Slh.cjs} +1 -1
  296. package/dist/{swiper-CM54onRz.cjs → swiper-CkkB3IUt.cjs} +1 -1
  297. package/dist/{swiper-DGAjlGUa.js → swiper-Q7RLo5sT.js} +49 -51
  298. package/dist/{terminalConfigList-DmIncQe8.js → terminalConfigList-D_Ey_hOB.js} +2 -2
  299. package/dist/{terminalConfigList-hy2uUsJe.cjs → terminalConfigList-lG7Guswq.cjs} +1 -1
  300. package/dist/{terminalList-9qcAM4LG.js → terminalList-BiS8IqVU.js} +2 -2
  301. package/dist/{terminalList-C6DxUrb2.cjs → terminalList-DsQfZkLH.cjs} +1 -1
  302. package/dist/{terminalListAPP-Dl5MpCjB.js → terminalListAPP-C_oAW2DY.js} +3 -3
  303. package/dist/{terminalListAPP-RYLAuqiK.cjs → terminalListAPP-Die7Iis9.cjs} +1 -1
  304. package/dist/{textbox-GG4d1QIy.cjs → textbox-DtwW5kQK.cjs} +1 -1
  305. package/dist/{textbox-CHkPlSAX.js → textbox-M7oHdxop.js} +2 -2
  306. package/dist/{timeQueryBar-B_sNNLNx.cjs → timeQueryBar-BST1N_pA.cjs} +1 -1
  307. package/dist/{timeQueryBar-4KSmgROW.js → timeQueryBar-D72U8KfL.js} +1 -1
  308. package/dist/{timeSeries-C6jp_8BG.cjs → timeSeries-DdrD6BXI.cjs} +1 -1
  309. package/dist/{timeSeries-CgJ0SIKo.js → timeSeries-kOLJD8jS.js} +3 -3
  310. package/dist/{timeSeriesCurve-TMqcdmQk.js → timeSeriesCurve-B7jHBbab.js} +3 -3
  311. package/dist/{timeSeriesCurve-CH12QzSV.cjs → timeSeriesCurve-CemFc-kT.cjs} +1 -1
  312. package/dist/{toggleBtn-DQd4gNtX.cjs → toggleBtn-BVJD8hdP.cjs} +1 -1
  313. package/dist/{toggleBtn-4pgNSMG6.js → toggleBtn-l0gcVWhL.js} +2 -2
  314. package/dist/{trajectoryConfigPanel-BG3SSwn9.js → trajectoryConfigPanel-BvjQNU8d.js} +1 -1
  315. package/dist/{trajectoryConfigPanel-Bw1VrV-D.cjs → trajectoryConfigPanel-p9RwKXye.cjs} +1 -1
  316. package/dist/{trajectoryScatter-CEN_a_hP.js → trajectoryScatter-D0X0MuO_.js} +24 -24
  317. package/dist/{trajectoryScatter-YyQc-_lS.cjs → trajectoryScatter-DUF9rbQZ.cjs} +1 -1
  318. package/dist/{universalConfigPanel-DXs2cr1a.cjs → universalConfigPanel-Cuy_d2Fi.cjs} +1 -1
  319. package/dist/{universalConfigPanel-DM-AnPb9.js → universalConfigPanel-G_SwTzLS.js} +1 -1
  320. package/dist/{universalTable-zF3jltzT.cjs → universalTable-C6TQyu10.cjs} +1 -1
  321. package/dist/{universalTable-BqhsfcZp.js → universalTable-CLytqIJ-.js} +2 -2
  322. package/dist/{video-Dq1cVS0l.cjs → video-BuCsJa2J.cjs} +1 -1
  323. package/dist/{video-D1iN2V0C.js → video-CLp-qmhh.js} +2 -2
  324. package/dist/{videoMonitor-hkuvSmn4.js → videoMonitor-BHFy7nV7.js} +10 -10
  325. package/dist/{videoMonitor-B_1M-KcU.cjs → videoMonitor-DtASZV-Y.cjs} +1 -1
  326. package/dist/{vlu-0SrsCMT-.cjs → vlu-aDDyx47b.cjs} +1 -1
  327. package/dist/{vlu-K66RvuKO.js → vlu-dvnZmwrq.js} +2 -2
  328. package/dist/{warningOverview-BRKnU2qJ.js → warningOverview-BWNvhGEr.js} +3 -3
  329. package/dist/{warningOverview-DE4mZJtA.cjs → warningOverview-G5uze01-.cjs} +1 -1
  330. package/dist/{weather-DXSwe2wL.js → weather-B7dkVE6k.js} +2 -2
  331. package/dist/{weather-Cc-DzSlJ.cjs → weather-DOAZCxta.cjs} +1 -1
  332. package/dist/{windLin-BpJaU1Or.js → windLin-DbHtg5K4.js} +2 -2
  333. package/dist/{windLin-BWa_lMdL.cjs → windLin-k8OA6Yul.cjs} +1 -1
  334. package/package.json +1 -1
  335. package/dist/mixiotObjectListApi-DVYddjqi.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";var ul=Object.defineProperty,pl=Object.defineProperties;var ml=Object.getOwnPropertyDescriptors;var pt=Object.getOwnPropertySymbols;var fl=Object.prototype.hasOwnProperty,vl=Object.prototype.propertyIsEnumerable;var mt=(V,h,k)=>h in V?ul(V,h,{enumerable:!0,configurable:!0,writable:!0,value:k}):V[h]=k,$=(V,h)=>{for(var k in h||(h={}))fl.call(h,k)&&mt(V,k,h[k]);if(pt)for(var k of pt(h))vl.call(h,k)&&mt(V,k,h[k]);return V},fe=(V,h)=>pl(V,ml(h));var N=(V,h,k)=>new Promise((se,x)=>{var be=A=>{try{Z(k.next(A))}catch(X){x(X)}},ge=A=>{try{Z(k.throw(A))}catch(X){x(X)}},Z=A=>A.done?se(A.value):Promise.resolve(A.value).then(be,ge);Z((k=k.apply(V,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/tabs/style/css");require("element-plus/es/components/tab-pane/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/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"),C=require("./index-D7PZNHF4.cjs"),bl=require("./useMixiotPanelSurface-CAZgexY5.cjs"),gl=require("./BaseComponent-BHUHnLj-.cjs"),yl=require("./titleStyle-NSnz6cUg.cjs"),w=require("element-plus"),ve=require("@element-plus/icons-vue"),_l=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),T=require("./mixiotObjectListApi-DVYddjqi.cjs"),hl=require("./useMixiotAppScrollLoad-BfiNo4UY.cjs"),Vl=require("./MixiotAppDetailPage-Bd9WrADz.cjs"),ft=require("./ele-lst-icon-CrxnHZ-A.cjs"),kl={key:0,class:"app-title-row"},Nl={class:"mix-app-body"},xl={class:"app-toolbar-row"},wl={class:"app-toolbar-search-group"},Cl={key:1,class:"app-created-search-row"},Bl=["onClick","onKeydown"],Sl={class:"app-card-top"},El={class:"app-card-name"},Dl={class:"app-card-right"},Tl={key:0,class:"app-transform-block"},Al={key:0,class:"app-transform-tags"},Ll={key:1,class:"app-transform-expanded"},Fl={class:"app-card-fields"},jl={class:"app-field-label"},Pl={key:0,class:"app-card-expand-footer"},Ol=["onClick"],Ml={key:0,class:"app-scroll-foot"},Rl={key:1,class:"app-scroll-foot"},Ul={key:2,class:"app-scroll-foot"},Kl={class:"dialog-footer"},ql={class:"dialog-footer"},Il={class:"detail-body"},zl={key:0,class:"view-detail-error"},$l={class:"mix-detail-block"},Hl=["src"],Yl={key:1,class:"mix-detail-title-sm"},Jl={key:2,class:"mix-detail-block"},Wl={key:1,class:"detail-tab-body detail-tab-body--monitor"},Gl={key:2,class:"detail-tab-body"},Ql={key:3,class:"detail-tab-body"},Zl={class:"tab-card-title"},Xl={class:"tab-card-meta"},ea={key:0},ta={key:1},la={key:4,class:"detail-tab-body"},aa={class:"tab-card-title"},oa={class:"tab-card-meta"},ia={key:0},na={key:1},ra={key:5,class:"detail-tab-body"},sa={class:"tab-card-title"},da={class:"tab-card-meta"},ca={key:0},ua={key:1},pa={key:6,class:"detail-tab-body tab-history"},ma={class:"tab-toolbar"},fa={key:7,class:"view-detail-stub"},va={class:"stub-uid"},ba={DEFAULT_ICON:ft.DEFAULT_ICON,ACTIVE_ICON:ft.ACTIVE_ICON,NAME_CN:"对象列表",NAME_EN:"ObjectListAPP",ORDER:1,PLATFORM:["mobile"]},ga={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}]},Pe=[fe($({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})],ya=[{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(V=>({key:V.dataKey,label:V.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"}],_a=[],ha={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"}]},Va=[{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}],ka={DEFAULT:ba,OPTIONS:ga,DATA:Pe,PARAMS:ya,SOURCE:_a,COMMON:ha,COLUMNS_CONFIG:Va},Na=e.defineComponent(fe($({},ka),{__name:"objectListAPP",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{default:"edit"},theme:{},objectList:{default:()=>[]},code:{default:""}},setup(V){const h=V;class k extends gl.BaseComponent{getDataBool(t,a){var r,c;const o=(c=(r=this.props.conf)==null?void 0:r.data)==null?void 0:c[0];return o&&Object.prototype.hasOwnProperty.call(o,t)&&o[t]!==void 0?!!o[t]:this.getOptionValue(t,a)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showAddBtn:this.getDataBool("showAddBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length)||this.props.conf.data.length===1&&this.props.conf.data[0].alias_visible===void 0)this.props.conf.data=JSON.parse(JSON.stringify(Pe));else{const a=this.props.conf.data[0],o={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[c,f]of Object.entries(o))a[c]===void 0&&(a[c]=f);const r=T.detailTabRowDefaults();for(const[c,f]of Object.entries(r))a[c]===void 0&&(a[c]=f);a.textValueTransform===void 0&&(a.textValueTransform=JSON.parse(JSON.stringify(Pe[0].textValueTransform))),(a.appCardDefaultLines===void 0||a.appCardDefaultLines===null||a.appCardDefaultLines==="")&&(a.appCardDefaultLines=2)}}}const se=new k(h,"objectListAPP");se.setupLifecycle();const x=se.getStyle(),{mixiotPanelClass:be,mixiotPanelRootStyle:ge}=bl.useMixiotPanelSurface(x),Z=e.computed(()=>yl.generateTitleStyle(h.conf.options)),A=e.computed(()=>{var o,r,c,f;const l=((r=(o=h.conf)==null?void 0:o.options)==null?void 0:r.columns)||[],t=((f=(c=h.conf)==null?void 0:c.data)==null?void 0:f[0])||{},a=Array.isArray(l)?l.map(s=>{const g=t[s.key],d=t[`${s.key}_visible`];return{prop:s.key,label:g!==void 0&&g!==""?g: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&&a.push({prop:s.fv,label:s.name,width:150,visible:!0})}),a}),X=20,{listLoading:ye,listLoadingMore:vt,hasMore:_e,totalRecords:Oe,pageIndex:bt,resetListPagination:gt,pageRequestParams:yt,updateAfterPage:_t,onListScroll:ht,runLoadMore:Vt}=hl.useMixiotAppScrollLoad(X),ee=e.ref(""),H=e.ref("uid"),te=e.ref(null),B=e.ref([]);function kt(){H.value==="created"?ee.value="":te.value=null}function Nt(){const l=[];if(H.value==="created"){const a=te.value;if(a&&a.length===2&&a[0]&&a[1]){const[o,r]=a;l.push(["created",">=",o<=r?o:r]),l.push(["created","<=",o<=r?r:o])}}else{const a=ee.value.trim();a&&l.push([H.value,"like",`%${a}%`])}_l.appendCommonDesignerWhereAnd(h.conf.common,l);const t=$({},yt());return l.length&&(t.where_and=JSON.stringify(l)),t}function Me(l){return N(this,null,function*(){var c,f;const t=yield T.objectListApiPost("get_object_list",Nt(),!0),a=(c=t==null?void 0:t.result)!=null?c:t;let o=Array.isArray(a==null?void 0:a.data)?[...a.data]:Array.isArray(a)?[...a]:[];if((f=h.objectList)!=null&&f.length){const s=new Set(h.objectList.map(String));o=o.filter(g=>s.has(String(g.uid)))}l?B.value=[...B.value,...o]:B.value=o;let r=a==null?void 0:a.total_records;typeof r!="number"&&(r=Array.isArray(a)?a.length:o.length),_t(o.length,r,B.value.length),t&&t.code!==void 0&&t.code!==200&&console.warn("[objectList] 列表接口非成功",t.msg||t.info,t)})}function O(){return N(this,null,function*(){gt(),bt.value=1,ye.value=!0;try{yield Me(!1)}catch(l){if(console.error(l),B.value=[],Oe.value=0,_e.value=!1,mockManager.isServiceUnavailableError(l))console.warn("[objectList] 对象列表服务暂不可用(如 object 未在 Consul 注册)",l);else{const t=l,a=t&&typeof t=="object"&&"isAxiosError"in t,o=t&&typeof t=="object"&&"code"in t&&("msg"in t||"info"in t);!a&&!o&&console.error("[objectList] 加载对象列表失败",l)}}finally{ye.value=!1,Ve(),Et()}})}function xt(){return N(this,null,function*(){yield Vt(()=>N(null,null,function*(){try{yield Me(!0),Ve()}catch(l){throw console.error(l),l}}))})}function wt(l){ht(l,xt)}const Ct=e.computed(()=>B.value);function Re(l){return l===!0||l===1||l==="1"}const le=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:""}),he=()=>{O()},Bt=()=>{ee.value="",te.value=null,O()};e.watch(()=>{var l;return(l=h.objectList)==null?void 0:l.join(",")},()=>{O()});const ae=e.ref(!1),de=e.ref(!1),M=e.ref(""),u=e.ref(null),S=e.computed(()=>{var l,t;return((t=(l=h.conf)==null?void 0:l.data)==null?void 0:t[0])||{}}),St=e.computed(()=>{const l=new Set,t=S.value;if(t.addRealtimeData&&Array.isArray(t.realtimeParams))for(const a of t.realtimeParams)a!=null&&a.fv&&l.add(String(a.fv));return l}),Ue=e.computed(()=>{const l=S.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)}))}),Ke=e.computed(()=>{var l;return(l=S.value)==null?void 0:l.textValueTransform});let Y;const Ve=()=>N(null,null,function*(){const l=S.value;if(!l.addRealtimeData||!Array.isArray(l.realtimeParams))return;const t=[];for(const o of l.realtimeParams)o!=null&&o.fv&&t.push(String(o.fv));if(!t.length)return;const a=B.value.map(o=>String(o.uid)).filter(Boolean);if(a.length)try{const o=yield C.api.post("get_last_fv_by_objids",{object_ids:a},!1),r=(o==null?void 0:o.result)||{};for(const c of B.value){const f=String(c.uid),s=r[f];if(s)for(const g of t){const d=s[g];d!==void 0&&(c[g]=d)}}}catch(o){}}),Et=()=>{S.value.addRealtimeData&&(Y&&clearInterval(Y),Y=setInterval(()=>{Ve()},5e3))},Dt=()=>{Y&&(clearInterval(Y),Y=void 0)};function Tt(l){if(l==null||l==="")return!0;const t=String(l).trim();return!t||t==="未获取"}function qe(l,t){if(!t)return null;if(t.mode==="numeric"){for(const a of t.numericRules||[])if(a.matchType==="unavailable"){if(Tt(l))return{text:a.displayText,color:a.color}}else if(String(l)===String(a.matchValue))return{text:a.displayText,color:a.color}}else{const a=typeof l=="number"?l:parseFloat(String(l).replace(/,/g,""));if(Number.isNaN(a))return null;for(const o of t.rangeRules||[]){const r=parseFloat(String(o.boundary));if(!Number.isNaN(r)){if(o.op==="gt"&&a>r)return{text:o.displayText,color:o.color};if(o.op==="lt"&&a<r)return{text:o.displayText,color:o.color}}}}return null}function Ie(l){return St.value.has(l)}function ze(l,t){const a=l[t.prop];if(Ie(t.prop)){const o=qe(a,Ke.value);if(o)return o.text}return a==null?"":String(a)}function $e(l,t){const a=l[t.prop];if(!Ie(t.prop))return{};const o=qe(a,Ke.value);return o!=null&&o.color?{color:o.color}:{}}const At=["uid","created","name","description"],He=e.computed(()=>{const l=S.value,t=Number(l.appCardDefaultLines);return Number.isFinite(t)&&t>=1?Math.min(Math.floor(t),30):2}),ce=e.reactive({}),ke=e.reactive({}),Lt=e.computed(()=>{var l;return{backgroundColor:x.value.bgColor,borderRadius:`${(l=x.value.radiusSize)!=null?l:8}px`}});function Ft(l){return A.value.find(t=>t.prop===l)}function Ye(l){const t=[],a=[];for(const o of At)a.includes(o)||a.push(o);for(const o of A.value)o.visible&&(a.includes(o.prop)||a.push(o.prop));for(const o of a){const r=Ft(o);if(!r||!r.visible)continue;const c={prop:r.prop};let f;o==="create_by_tpl"?f=Re(l.create_by_tpl)?"模板创建":"手动创建":f=ze(l,c);const s=$e(l,c);t.push({prop:o,label:r.label,text:f,style:s})}return t}function jt(l){const t=Ye(l),a=String(l.uid),o=He.value;return ce[a]||t.length<=o?t:t.slice(0,o)}function Ne(l){return Ye(l).length>He.value}function Pt(l){return!!ce[l]}function xe(l){ce[l]=!ce[l]}function Ot(l,t){const a=t.target;!a||!(a instanceof Element)||a.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?Ae(l):Ne(l)&&xe(String(l.uid)))}function Je(l){x.value.showViewBtn?Ae(l):Ne(l)&&xe(String(l.uid))}function oe(l){const t=[],a=S.value;if(!a.addRealtimeData||!Array.isArray(a.realtimeParams))return t;for(const o of a.realtimeParams){if(!(o!=null&&o.fv))continue;const r=String(o.fv),c=o.name?String(o.name):r,f={prop:r},s=ze(l,f),d=$e(l,f).color;t.push({text:`${c}: ${s}`,color:d})}return t}function Mt(l){return oe(l).some(t=>String(t.text).length>24)}function Rt(l){return!!ke[l]}function We(l){ke[l]=!ke[l]}function Ut(l,t){l==="view"?Ae(t):l==="edit"?Xt(t):l==="archive"?il(t):l==="delete"&&tl(t)}const J=e.computed(()=>T.OBJECT_DETAIL_TAB_DEFS.filter(l=>S.value[l.dataKey]===!0).map(l=>fe($({},l),{tabKey:T.dataKeyToTabKey(l.dataKey)}))),ie=e.ref("baseinfo"),Kt=e.computed(()=>{try{return localStorage.getItem("sys_mode")||""}catch(l){return""}}),Ge=e.computed(()=>{var a;const l=(a=u.value)==null?void 0:a.image;if(!l||typeof l!="string")return"";if(l.startsWith("http")||l.startsWith(C.FILE_URL))return l;const t=l.startsWith("/")?l.slice(1):l;return`${C.FILE_URL}${t}`}),Qe=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(a=>a.trim()).filter(Boolean):[]}),we=e.computed(()=>{var t;const l=(t=u.value)==null?void 0:t.addition;return Array.isArray(l)?l.filter(a=>a&&typeof a=="object"&&Array.isArray(a.data)):[]}),ue=e.ref(!1),R=e.ref(null),Ze=e.ref(""),Ce=e.ref("");e.ref([]);const Be=e.ref(!1),W=e.ref([]),Se=e.ref(!1),G=e.ref([]),pe=e.ref([]),Ee=e.ref(!1),U=e.ref([]),De=e.ref(!1),Q=e.ref([]),me=e.ref([C.dayjs().subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),C.dayjs().format("YYYY-MM-DD HH:mm:ss")]),qt=l=>N(null,null,function*(){var t;Be.value=!0;try{const a=yield C.api.post("get_retainer_result_list",{object_id:l,page_size:50,page_index:1},!0),o=(t=a==null?void 0:a.result)!=null?t:a;W.value=Array.isArray(o==null?void 0:o.data)?o.data:[]}catch(a){W.value=[]}finally{Be.value=!1}}),It=l=>N(null,null,function*(){var t;Se.value=!0;try{const a=yield C.api.post("get_collect_list",{object_id:l,page_size:50,page_index:1},!0),o=(t=a==null?void 0:a.result)!=null?t:a;G.value=Array.isArray(o==null?void 0:o.data)?o.data:[]}catch(a){G.value=[]}finally{Se.value=!1}}),zt=(l,t)=>N(null,null,function*(){var a;if(!t.length){U.value=[];return}Ee.value=!0;try{const o=[["uid","in",t]],r=yield C.api.post("terminal_list",{page_size:100,page_index:1,where_and:JSON.stringify(o)},!0),c=(a=r==null?void 0:r.result)!=null?a:r;U.value=Array.isArray(c==null?void 0:c.data)?c.data:[]}catch(o){U.value=[]}finally{Ee.value=!1}}),Te=()=>N(null,null,function*(){var t,a,o,r;const l=(t=u.value)==null?void 0:t.uid;if(l){De.value=!0;try{const c=(o=(a=u.value)==null?void 0:a.fv_list)!=null?o:[],f=[["object_id","=",l],["time",">=",me.value[0]],["time","<=",me.value[1]]];c.length&&f.push(["fv_key","in",c.slice(0,10)]);const s=yield C.api.post("history_mosaic",{page_size:100,page_index:1,where_and:JSON.stringify(f)},!0),g=(r=s==null?void 0:s.result)!=null?r:s;Q.value=Array.isArray(g==null?void 0:g.data)?g.data:[]}catch(c){Q.value=[]}finally{De.value=!1}}}),$t=l=>N(null,null,function*(){var t,a;if(l){ue.value=!0,R.value=null,Ze.value=l;try{const r=(Array.isArray((t=u.value)==null?void 0:t.dashboard_list)?u.value.dashboard_list:[]).find(d=>{var E,D;const L=String((E=d==null?void 0:d.device_type)!=null?E:"").toLowerCase(),m=String((D=d==null?void 0:d.type)!=null?D:"").toLowerCase();return L==="mobile"||m==="mobile"}),c=String((a=r==null?void 0:r.uid)!=null?a:"").trim();if(!c){w.ElMessage.warning("该对象未绑定手机显示板");return}Ce.value=c;const f=yield C.api.post("get_dashboard_item",{uid:c},!1),s=(f==null?void 0:f.result)||{},g=s==null?void 0:s.script;g&&typeof g=="object"&&Object.keys(g).length?R.value=g:w.ElMessage.warning("显示板脚本为空")}catch(o){console.error(o),R.value=null}finally{ue.value=!1}}}),Ht=l=>`「${l}」的完整能力在 mixui 对象管理模块中提供;大屏组件内仅保留配置占位。`,Xe=()=>{const l=J.value;ie.value=l.length?l[0].tabKey:"baseinfo"},Ae=l=>N(null,null,function*(){var t,a;if(M.value="",u.value=null,Xe(),!J.value.length){ae.value=!0;return}ae.value=!0,de.value=!0;try{const o=yield T.objectListApiPost("get_object_item",{uid:l.uid},!0);o!=null&&o.result&&typeof o.result=="object"?(u.value=o.result,pe.value=(a=(t=o.result)==null?void 0:t.object_list)!=null?a:[]):u.value=$({},l),(o==null?void 0:o.code)!==void 0&&o.code!==200?M.value=o.msg||o.info||`请求失败 (${o.code})`:o!=null&&o.result||(M.value="未返回详情数据,已使用列表行暂代显示。")}catch(o){u.value=$({},l),M.value="加载详情失败,已使用列表行暂代显示。"}finally{de.value=!1}});function Yt(){ae.value=!1,Jt()}const Jt=()=>{u.value=null,M.value="",de.value=!1,R.value=null,Ce.value="",W.value=[],G.value=[],pe.value=[],U.value=[],Q.value=[]};e.watch(ie,l=>{var a,o,r;const t=(a=u.value)==null?void 0:a.uid;if(t)if(l==="monitor"&&!R.value)$t(t);else if(l==="retainer-record"&&!W.value.length)qt(t);else if(l==="collect"&&!G.value.length)It(t);else if(l==="terminal"&&!U.value.length){const c=(r=(o=u.value)==null?void 0:o.terminal_list)!=null?r:[];zt(t,c)}else l==="history"&&!Q.value.length&&Te()}),e.watch(J,()=>{if(!ae.value)return;new Set(J.value.map(t=>t.tabKey)).has(ie.value)||Xe()});const et=()=>({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:""}),ne=e.ref(!1),p=e.reactive(et()),tt=e.ref(0),Le=e.ref(!1),Fe=e.ref(!1),je=e.ref(!1);function Wt(l){return Array.isArray(l)?l.map(String).filter(Boolean).join(", "):typeof l=="string"?l:""}function lt(l){return l.split(/[,,]/).map(t=>t.trim()).filter(Boolean)}function Gt(l){return Array.isArray(l)?l.map(String).filter(Boolean).join(", "):typeof l=="string"?l:""}function Qt(l){const t=l.terminal_list;return Array.isArray(t)?t.map(String).map(a=>a.trim()).filter(Boolean):lt(String(t!=null?t:""))}function Zt(){const l=S.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,et())}function at(l){const t=S.value;if(!(!t.addRealtimeData||!Array.isArray(t.realtimeParams))){for(const a of t.realtimeParams)if(a!=null&&a.name&&(a!=null&&a.fv)){const o=String(a.fv),r=l[o];p[o]=r!=null?String(r):""}}}function ot(l){var t,a,o,r,c,f,s,g,d,L,m,E,D,K,q;Zt(),Object.assign(p,{uid:String((t=l.uid)!=null?t:""),name:String((a=l.name)!=null?a:""),alias:String((o=l.alias)!=null?o:""),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((g=l.customer_alias)!=null?g:""),terminal_list:Gt(l.terminal_list),mapping_id:String((d=l.mapping_id)!=null?d:""),mapping_name:String((L=l.mapping_name)!=null?L:""),tag:Wt(l.tag),province:String((m=l.province)!=null?m:""),city:String((E=l.city)!=null?E:""),create_by_tpl:Re(l.create_by_tpl),tpl_uid:String((D=l.tpl_uid)!=null?D:""),tpl_name:String((K=l.tpl_name)!=null?K:""),tpl_alias:String((q=l.tpl_alias)!=null?q:"")}),tt.value=Number(l.id)||0}function it(l,t){var a,o,r,c,f,s,g,d,L,m,E,D,K,q,b,re;return{id:t,uid:String((a=l.uid)!=null?a:"").trim(),name:String((o=l.name)!=null?o:"").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((g=l.customer_name)!=null?g:""),customer_alias:String((d=l.customer_alias)!=null?d:""),terminal_list:Qt(l),mapping_id:String((L=l.mapping_id)!=null?L:""),mapping_name:String((m=l.mapping_name)!=null?m:""),tag:lt(String((E=l.tag)!=null?E:"")),province:String((D=l.province)!=null?D:""),city:String((K=l.city)!=null?K:""),create_by_tpl:l.create_by_tpl?1:0,tpl_uid:String((q=l.tpl_uid)!=null?q:""),tpl_name:String((b=l.tpl_name)!=null?b:""),tpl_alias:String((re=l.tpl_alias)!=null?re:""),addition:"[]"}}const Xt=l=>N(null,null,function*(){var t;ne.value=!0,Le.value=!0;try{const a=yield T.objectListApiPost("get_object_item",{uid:l.uid},!0),o=(t=a==null?void 0:a.result)!=null?t:l;ot(o),at(o)}catch(a){ot(l),at(l),w.ElMessage.warning("拉取对象详情失败,已使用列表行编辑")}finally{Le.value=!1}}),el=()=>N(null,null,function*(){if(!p.name.trim()){w.ElMessage.warning("请填写对象名称");return}Fe.value=!0;try{yield T.objectListApiPost("update_object",it(p,tt.value),!0),w.ElMessage.success("保存成功"),ne.value=!1,yield O()}catch(l){w.ElMessage.error("保存失败")}finally{Fe.value=!1}}),tl=l=>{w.ElMessageBox.confirm("确认删除该对象吗?","警告",{type:"warning"}).then(()=>N(null,null,function*(){try{yield T.objectListApiPost("delete_object",{uid:l.uid,id:l.id},!0),w.ElMessage.success("删除成功"),yield O()}catch(t){w.ElMessage.error("删除失败")}})).catch(()=>{})},ll=()=>{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:""}),le.value=!0};function al(l){l==="add"?ll():l==="reset"&&Bt()}const ol=()=>N(null,null,function*(){var l;if(!((l=v.name)!=null&&l.trim())){w.ElMessage.warning("请填写对象名称");return}je.value=!0;try{yield T.objectListApiPost("create_object",it(v,0),!0),le.value=!1,w.ElMessage.success("添加成功"),yield O()}catch(t){w.ElMessage.error("添加失败")}finally{je.value=!1}}),il=l=>{w.ElMessageBox.confirm(`确认对对象 [${l.name}] 进行资料备档吗?`,"提示",{type:"info"}).then(()=>{w.ElMessage.success("备档成功")}).catch(()=>{})};return e.onMounted(()=>{O()}),e.onUnmounted(()=>{Dt()}),(l,t)=>{var st,dt;const a=_.ElIcon,o=_.ElButton,r=_.ElDropdownItem,c=_.ElDropdownMenu,f=_.ElDropdown,s=_.ElOption,g=_.ElSelect,d=_.ElInput,L=_.ElDatePicker,m=_.ElFormItem,E=_.ElForm,D=_.ElDialog,K=_.ElDivider,q=_.ElAlert,b=_.ElDescriptionsItem,re=_.ElTag,nt=_.ElDescriptions,nl=_.ElCollapseItem,rl=_.ElCollapse,I=_.ElEmpty,F=_.ElTableColumn,rt=_.ElTable,sl=_.ElTabPane,dl=_.ElTabs,z=_.ElLoadingDirective;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["object-list-app mix-component",e.unref(be)]),style:e.normalizeStyle(e.unref(ge))},[e.unref(x).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",kl,[e.createElementVNode("div",{class:"app-title-text",style:e.normalizeStyle(Z.value)},e.toDisplayString(V.conf.caption||V.conf.name),5),e.createVNode(f,{trigger:"click",onCommand:al},{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[38]||(t[38]=[e.createTextVNode("添加对象",-1)])]),_:1})):e.createCommentVNode("",!0),e.createVNode(r,{command:"reset"},{default:e.withCtx(()=>[...t[39]||(t[39]=[e.createTextVNode("重置",-1)])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(o,{type:"primary",circle:"",size:"small",class:"app-add-btn",onClick:t[0]||(t[0]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(ve.Plus))]),_:1})]),_:1})]),_:1})])),e.withDirectives((e.openBlock(),e.createElementBlock("div",Nl,[e.createElementVNode("div",xl,[e.createVNode(g,{modelValue:H.value,"onUpdate:modelValue":t[1]||(t[1]=i=>H.value=i),class:"app-field-select",onChange:kt},{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",wl,[H.value!=="created"?(e.openBlock(),e.createBlock(d,{key:0,modelValue:ee.value,"onUpdate:modelValue":t[2]||(t[2]=i=>ee.value=i),placeholder:"输入关键词搜索",clearable:"",class:"app-search-input",onKeyup:e.withKeys(he,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(ve.Search))]),_:1})]),append:e.withCtx(()=>[e.createVNode(o,{type:"primary",class:"app-toolbar-search-btn",onClick:he},{default:e.withCtx(()=>[...t[40]||(t[40]=[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]=i=>te.value=i),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(o,{type:"primary",class:"app-toolbar-search-btn app-created-search-btn",onClick:he},{default:e.withCtx(()=>[...t[41]||(t[41]=[e.createTextVNode("搜索",-1)])]),_:1})]))])]),e.createElementVNode("div",{class:"app-card-scroll",onScroll:wt},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ct.value,i=>(e.openBlock(),e.createElementBlock("div",{key:String(i.uid),class:"app-object-card",style:e.normalizeStyle(Lt.value),role:"button",tabindex:"0",onClick:y=>Ot(i,y),onKeydown:[e.withKeys(e.withModifiers(y=>Je(i),["prevent"]),["enter"]),e.withKeys(e.withModifiers(y=>Je(i),["prevent"]),["space"])]},[e.createElementVNode("div",Sl,[e.createElementVNode("div",El,e.toDisplayString(i.name||"—"),1),e.createElementVNode("div",Dl,[e.createVNode(f,{trigger:"click",onCommand:y=>Ut(y,i)},{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[42]||(t[42]=[e.createTextVNode("查看",-1)])]),_:1})):e.createCommentVNode("",!0),e.unref(x).showEditBtn?(e.openBlock(),e.createBlock(r,{key:1,command:"edit"},{default:e.withCtx(()=>[...t[43]||(t[43]=[e.createTextVNode("编辑",-1)])]),_:1})):e.createCommentVNode("",!0),e.unref(x).showArchiveBtn?(e.openBlock(),e.createBlock(r,{key:2,command:"archive"},{default:e.withCtx(()=>[...t[44]||(t[44]=[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[45]||(t[45]=[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(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(ve.MoreFilled))]),_:1})])]),_:1},8,["onCommand"]),oe(i).length?(e.openBlock(),e.createElementBlock("div",Tl,[Rt(String(i.uid))?(e.openBlock(),e.createElementBlock("div",Ll,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe(i),(y,j)=>(e.openBlock(),e.createElementBlock("div",{key:"ex"+j,class:"app-transform-line",style:e.normalizeStyle(y.color?{color:y.color}:{})},e.toDisplayString(y.text),5))),128)),e.createVNode(o,{text:"",type:"primary",class:"app-mini-more",onClick:e.withModifiers(y=>We(String(i.uid)),["stop"])},{default:e.withCtx(()=>[...t[47]||(t[47]=[e.createTextVNode("收起",-1)])]),_:1},8,["onClick"])])):(e.openBlock(),e.createElementBlock("div",Al,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe(i).slice(0,2),(y,j)=>(e.openBlock(),e.createElementBlock("span",{key:j,class:"app-rt-tag",style:e.normalizeStyle(y.color?{color:y.color,borderColor:y.color}:{})},e.toDisplayString(y.text),5))),128)),oe(i).length>2||Mt(i)?(e.openBlock(),e.createBlock(o,{key:0,text:"",type:"primary",class:"app-mini-more",onClick:e.withModifiers(y=>We(String(i.uid)),["stop"])},{default:e.withCtx(()=>[...t[46]||(t[46]=[e.createTextVNode("···",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Fl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(jt(i),(y,j)=>(e.openBlock(),e.createElementBlock("div",{key:y.prop+"-"+j,class:"app-field-line"},[e.createElementVNode("span",jl,e.toDisplayString(y.label),1),e.createElementVNode("span",{class:"app-field-value",style:e.normalizeStyle(y.style)},e.toDisplayString(y.text),5)]))),128))]),Ne(i)?(e.openBlock(),e.createElementBlock("div",Pl,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["app-field-expand",{open:Pt(String(i.uid))}]),onClick:e.withModifiers(y=>xe(String(i.uid)),["stop"])},[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(ve.ArrowDown))]),_:1})],10,Ol)])):e.createCommentVNode("",!0)],44,Bl))),128)),e.unref(vt)?(e.openBlock(),e.createElementBlock("div",Ml,"加载中…")):B.value.length&&!e.unref(_e)?(e.openBlock(),e.createElementBlock("div",Rl," 已加载全部 "+e.toDisplayString(e.unref(Oe))+" 条 ",1)):B.value.length&&e.unref(_e)?(e.openBlock(),e.createElementBlock("div",Ul," 已加载 "+e.toDisplayString(B.value.length)+" 条,上拉加载更多 ",1)):e.createCommentVNode("",!0)],32)])),[[z,e.unref(ye)]]),e.createVNode(D,{modelValue:le.value,"onUpdate:modelValue":t[19]||(t[19]=i=>le.value=i),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",Kl,[e.createVNode(o,{onClick:t[18]||(t[18]=i=>le.value=!1)},{default:e.withCtx(()=>[...t[48]||(t[48]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(o,{type:"primary",loading:je.value,onClick:ol},{default:e.withCtx(()=>[...t[49]||(t[49]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.createVNode(E,{model:v,"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(m,{label:"对象名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.name,"onUpdate:modelValue":t[5]||(t[5]=i=>v.name=i),placeholder:"请输入对象名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"对象别名"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.alias,"onUpdate:modelValue":t[6]||(t[6]=i=>v.alias=i),placeholder:"请输入对象别名"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"型号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.model,"onUpdate:modelValue":t[7]||(t[7]=i=>v.model=i),placeholder:"请输入型号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.description,"onUpdate:modelValue":t[8]||(t[8]=i=>v.description=i),placeholder:"请输入描述",type:"textarea"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户编号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.customer_id,"onUpdate:modelValue":t[9]||(t[9]=i=>v.customer_id=i),placeholder:"请输入客户编号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.customer_name,"onUpdate:modelValue":t[10]||(t[10]=i=>v.customer_name=i),placeholder:"请输入客户名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户别名"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.customer_alias,"onUpdate:modelValue":t[11]||(t[11]=i=>v.customer_alias=i),placeholder:"请输入客户别名"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"关联终端"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.terminal_list,"onUpdate:modelValue":t[12]||(t[12]=i=>v.terminal_list=i),placeholder:"请输入关联终端"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.mapping_id,"onUpdate:modelValue":t[13]||(t[13]=i=>v.mapping_id=i),placeholder:"请输入映射表编号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"映射表名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.mapping_name,"onUpdate:modelValue":t[14]||(t[14]=i=>v.mapping_name=i),placeholder:"请输入映射表名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.tag,"onUpdate:modelValue":t[15]||(t[15]=i=>v.tag=i),placeholder:"请输入标签"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"省份"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.province,"onUpdate:modelValue":t[16]||(t[16]=i=>v.province=i),placeholder:"请输入省份"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"市/区"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.city,"onUpdate:modelValue":t[17]||(t[17]=i=>v.city=i),placeholder:"请输入市/区"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(D,{modelValue:ne.value,"onUpdate:modelValue":t[35]||(t[35]=i=>ne.value=i),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",ql,[e.createVNode(o,{onClick:t[34]||(t[34]=i=>ne.value=!1)},{default:e.withCtx(()=>[...t[51]||(t[51]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(o,{type:"primary",loading:Fe.value,onClick:el},{default:e.withCtx(()=>[...t[52]||(t[52]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(E,{model:p,"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(m,{label:"对象编号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.uid,"onUpdate:modelValue":t[20]||(t[20]=i=>p.uid=i),placeholder:"请输入对象编号",disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"对象名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.name,"onUpdate:modelValue":t[21]||(t[21]=i=>p.name=i),placeholder:"请输入对象名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"对象别名"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.alias,"onUpdate:modelValue":t[22]||(t[22]=i=>p.alias=i),placeholder:"请输入对象别名"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"型号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.model,"onUpdate:modelValue":t[23]||(t[23]=i=>p.model=i),placeholder:"请输入型号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.description,"onUpdate:modelValue":t[24]||(t[24]=i=>p.description=i),placeholder:"请输入描述",type:"textarea"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户编号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.customer_id,"onUpdate:modelValue":t[25]||(t[25]=i=>p.customer_id=i),placeholder:"请输入客户编号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.customer_name,"onUpdate:modelValue":t[26]||(t[26]=i=>p.customer_name=i),placeholder:"请输入客户名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户别名"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.customer_alias,"onUpdate:modelValue":t[27]||(t[27]=i=>p.customer_alias=i),placeholder:"请输入客户别名"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"关联终端"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.terminal_list,"onUpdate:modelValue":t[28]||(t[28]=i=>p.terminal_list=i),placeholder:"请输入关联终端"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.mapping_id,"onUpdate:modelValue":t[29]||(t[29]=i=>p.mapping_id=i),placeholder:"请输入映射表编号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"映射表名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.mapping_name,"onUpdate:modelValue":t[30]||(t[30]=i=>p.mapping_name=i),placeholder:"请输入映射表名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.tag,"onUpdate:modelValue":t[31]||(t[31]=i=>p.tag=i),placeholder:"请输入标签"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"省份"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.province,"onUpdate:modelValue":t[32]||(t[32]=i=>p.province=i),placeholder:"请输入省份"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"市/区"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.city,"onUpdate:modelValue":t[33]||(t[33]=i=>p.city=i),placeholder:"请输入市/区"},null,8,["modelValue"])]),_:1}),S.value.addRealtimeData&&Ue.value.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(K,{"content-position":"left"},{default:e.withCtx(()=>[...t[50]||(t[50]=[e.createTextVNode("实时数据",-1)])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ue.value,i=>(e.openBlock(),e.createBlock(m,{key:i.fv,label:i.name},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p[i.fv],"onUpdate:modelValue":y=>p[i.fv]=y,placeholder:"请输入"+i.name},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["label"]))),128))],64)):e.createCommentVNode("",!0)]),_:1},8,["model"])),[[z,Le.value]])]),_:1},8,["modelValue"]),ae.value?(e.openBlock(),e.createBlock(Vl.default,{key:1,loading:de.value,title:((st=u.value)==null?void 0:st.name)||((dt=u.value)==null?void 0:dt.uid)||"对象详情",onBack:Yt},{default:e.withCtx(()=>[e.createElementVNode("div",Il,[J.value.length?(e.openBlock(),e.createBlock(dl,{key:1,modelValue:ie.value,"onUpdate:modelValue":t[37]||(t[37]=i=>ie.value=i),class:"detail-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(J.value,i=>(e.openBlock(),e.createBlock(sl,{key:i.tabKey,label:i.label,name:i.tabKey},{default:e.withCtx(()=>{var y,j;return[e.createElementVNode("div",{class:e.normalizeClass(["tab-content","tab-"+i.tabKey])},[i.tabKey==="baseinfo"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[M.value?(e.openBlock(),e.createElementBlock("div",zl,e.toDisplayString(M.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",$l,[u.value?(e.openBlock(),e.createBlock(nt,{key:0,column:1,border:""},{default:e.withCtx(()=>[Ge.value?(e.openBlock(),e.createBlock(b,{key:0,label:"对象图片",span:2},{default:e.withCtx(()=>[e.createElementVNode("img",{class:"view-detail-head-img",src:Ge.value,alt:""},null,8,Hl)]),_:1})):e.createCommentVNode("",!0),e.createVNode(b,{label:"对象编号"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.uid)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"对象名称"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.name)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"对象别名"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.alias)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"型号"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.model)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"序列号"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.serial_no)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"映射表编号"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.mapping_id)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"映射表名称"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.mapping_name)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"映射表别名"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.mapping_alias)!=null?n:""),1)]}),_:1}),Kt.value!=="box"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(b,{label:"项目编号"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.customer_id)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"项目名称"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.customer_name)!=null?n:""),1)]}),_:1})],64)):e.createCommentVNode("",!0),e.createVNode(b,{label:"控制密码"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.control)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"控制码编号"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.control_id)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"控制码名称"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.control_name)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"控制码别名"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.control_alias)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"地址"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.address)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"设置经纬度"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.custom_gis)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"GPS经纬度"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.gis)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"省份"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.province)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"城市"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.city)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"创建时间"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.created)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"更新时间"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.last_modified)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"标签",span:2},{default:e.withCtx(()=>[Qe.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(Qe.value,n=>(e.openBlock(),e.createBlock(re,{key:n,style:{"margin-right":"6px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n),1)]),_:2},1024))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(b,{label:"描述",span:2},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.description)!=null?n:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)]),we.value.length?(e.openBlock(),e.createElementBlock("div",Yl,"扩展脚本信息")):e.createCommentVNode("",!0),we.value.length?(e.openBlock(),e.createElementBlock("div",Jl,[e.createVNode(rl,{"expand-icon-position":"left"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(we.value,(n,P)=>(e.openBlock(),e.createBlock(nl,{key:P,name:P,title:n.title},{default:e.withCtx(()=>[e.createVNode(nt,{border:"",column:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data,(ct,cl)=>(e.openBlock(),e.createBlock(b,{key:cl,label:String(ct[0])},{default:e.withCtx(()=>{var ut;return[e.createTextVNode(e.toDisplayString((ut=ct[1])!=null?ut:""),1)]}),_:2},1032,["label"]))),128))]),_:2},1024)]),_:2},1032,["name","title"]))),128))]),_:1})])):e.createCommentVNode("",!0)],64)):i.tabKey==="monitor"?e.withDirectives((e.openBlock(),e.createElementBlock("div",Wl,[R.value?(e.openBlock(),e.createBlock(C._sfc_main$1,{key:Ce.value,script:R.value,uid:Ze.value,"enable-web-socket":!0,"follow-host-theme":!0},null,8,["script","uid"])):ue.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(I,{key:1,description:"暂无关联手机显示板"}))])),[[z,ue.value]]):i.tabKey==="retainer-record"?e.withDirectives((e.openBlock(),e.createElementBlock("div",Gl,[W.value.length?(e.openBlock(),e.createBlock(rt,{key:0,data:W.value,stripe:"",size:"small",class:"detail-table","max-height":"100%"},{default:e.withCtx(()=>[e.createVNode(F,{prop:"template_id",label:"项目编号",width:"120"}),e.createVNode(F,{prop:"label_cn",label:"历程项名称","min-width":"120"}),e.createVNode(F,{prop:"code",label:"编码",width:"100"}),e.createVNode(F,{prop:"category",label:"类型",width:"80"}),e.createVNode(F,{prop:"opened_at",label:"开始时间",width:"160"})]),_:1},8,["data"])):(e.openBlock(),e.createBlock(I,{key:1,description:"暂无历程记录"}))])),[[z,Be.value]]):i.tabKey==="collect"?e.withDirectives((e.openBlock(),e.createElementBlock("div",Ql,[G.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(G.value,(n,P)=>(e.openBlock(),e.createElementBlock("div",{key:P,class:"tab-card-item"},[e.createElementVNode("div",Zl,e.toDisplayString(n.name||n.uid||"—"),1),e.createElementVNode("div",Xl,[n.uid?(e.openBlock(),e.createElementBlock("span",ea,"编号:"+e.toDisplayString(n.uid),1)):e.createCommentVNode("",!0),n.is_active!==void 0?(e.openBlock(),e.createElementBlock("span",ta,"状态:"+e.toDisplayString(n.is_active===1?"开启":"关闭"),1)):e.createCommentVNode("",!0)])]))),128)):(e.openBlock(),e.createBlock(I,{key:1,description:"暂无离线采集项目"}))])),[[z,Se.value]]):i.tabKey==="child"?(e.openBlock(),e.createElementBlock("div",la,[pe.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(pe.value,(n,P)=>(e.openBlock(),e.createElementBlock("div",{key:P,class:"tab-card-item"},[e.createElementVNode("div",aa,e.toDisplayString(n.name||n.uid||"—"),1),e.createElementVNode("div",oa,[n.uid?(e.openBlock(),e.createElementBlock("span",ia,"编号:"+e.toDisplayString(n.uid),1)):e.createCommentVNode("",!0),n.model?(e.openBlock(),e.createElementBlock("span",na,"型号:"+e.toDisplayString(n.model),1)):e.createCommentVNode("",!0)])]))),128)):(e.openBlock(),e.createBlock(I,{key:1,description:"暂无子对象"}))])):i.tabKey==="terminal"?e.withDirectives((e.openBlock(),e.createElementBlock("div",ra,[U.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(U.value,(n,P)=>(e.openBlock(),e.createElementBlock("div",{key:P,class:"tab-card-item"},[e.createElementVNode("div",sa,e.toDisplayString(n.name||n.uid||"—"),1),e.createElementVNode("div",da,[n.uid?(e.openBlock(),e.createElementBlock("span",ca,"编号:"+e.toDisplayString(n.uid),1)):e.createCommentVNode("",!0),n.type?(e.openBlock(),e.createElementBlock("span",ua,"类型:"+e.toDisplayString(n.type),1)):e.createCommentVNode("",!0),e.createVNode(re,{type:n.online===1?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.online===1?"在线":"离线"),1)]),_:2},1032,["type"])])]))),128)):(e.openBlock(),e.createBlock(I,{key:1,description:"暂无关联终端"}))])),[[z,Ee.value]]):i.tabKey==="history"?e.withDirectives((e.openBlock(),e.createElementBlock("div",pa,[e.createElementVNode("div",ma,[e.createVNode(L,{modelValue:me.value,"onUpdate:modelValue":t[36]||(t[36]=n=>me.value=n),type:"datetimerange",size:"small","range-separator":"-","start-placeholder":"开始","end-placeholder":"结束",onChange:Te},null,8,["modelValue"]),e.createVNode(o,{size:"small",type:"primary",onClick:Te},{default:e.withCtx(()=>[...t[53]||(t[53]=[e.createTextVNode("查询",-1)])]),_:1})]),Q.value.length?(e.openBlock(),e.createBlock(rt,{key:0,data:Q.value,stripe:"",size:"small",class:"detail-table","max-height":"100%"},{default:e.withCtx(()=>[e.createVNode(F,{prop:"time",label:"时间",width:"160"}),e.createVNode(F,{prop:"fv_key",label:"变量",width:"120"}),e.createVNode(F,{prop:"value",label:"值","min-width":"100"})]),_:1},8,["data"])):(e.openBlock(),e.createBlock(I,{key:1,description:"暂无历史数据"}))])),[[z,De.value]]):(e.openBlock(),e.createElementBlock("div",fa,[e.createVNode(I,{description:Ht(i.label)},null,8,["description"]),e.createElementVNode("div",va,"对象编号:"+e.toDisplayString((j=(y=u.value)==null?void 0:y.uid)!=null?j:"—"),1)]))],2)]}),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(q,{key:0,type:"warning","show-icon":"",closable:!1,title:"请先在右侧「数据」面板勾选「查看」,并在其下的详情页签中至少启用一项。"}))])]),_:1},8,["loading","title"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default",{},void 0,!0)],6)}}})),xa=C._export_sfc(Na,[["__scopeId","data-v-888d05cb"]]);exports.default=xa;
1
+ "use strict";var ul=Object.defineProperty,pl=Object.defineProperties;var ml=Object.getOwnPropertyDescriptors;var pt=Object.getOwnPropertySymbols;var fl=Object.prototype.hasOwnProperty,vl=Object.prototype.propertyIsEnumerable;var mt=(V,h,k)=>h in V?ul(V,h,{enumerable:!0,configurable:!0,writable:!0,value:k}):V[h]=k,$=(V,h)=>{for(var k in h||(h={}))fl.call(h,k)&&mt(V,k,h[k]);if(pt)for(var k of pt(h))vl.call(h,k)&&mt(V,k,h[k]);return V},fe=(V,h)=>pl(V,ml(h));var N=(V,h,k)=>new Promise((se,x)=>{var be=A=>{try{Z(k.next(A))}catch(X){x(X)}},ge=A=>{try{Z(k.throw(A))}catch(X){x(X)}},Z=A=>A.done?se(A.value):Promise.resolve(A.value).then(be,ge);Z((k=k.apply(V,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/tabs/style/css");require("element-plus/es/components/tab-pane/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/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"),C=require("./index-BdWR_FTA.cjs"),bl=require("./useMixiotPanelSurface-CAZgexY5.cjs"),gl=require("./BaseComponent-DoQ1oLoA.cjs"),yl=require("./titleStyle-NSnz6cUg.cjs"),w=require("element-plus"),ve=require("@element-plus/icons-vue"),_l=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),T=require("./mixiotObjectListApi-434Mto0m.cjs"),hl=require("./useMixiotAppScrollLoad-BfiNo4UY.cjs"),Vl=require("./MixiotAppDetailPage-FfC4ZxrA.cjs"),ft=require("./ele-lst-icon-CrxnHZ-A.cjs"),kl={key:0,class:"app-title-row"},Nl={class:"mix-app-body"},xl={class:"app-toolbar-row"},wl={class:"app-toolbar-search-group"},Cl={key:1,class:"app-created-search-row"},Bl=["onClick","onKeydown"],Sl={class:"app-card-top"},El={class:"app-card-name"},Dl={class:"app-card-right"},Tl={key:0,class:"app-transform-block"},Al={key:0,class:"app-transform-tags"},Ll={key:1,class:"app-transform-expanded"},Fl={class:"app-card-fields"},jl={class:"app-field-label"},Pl={key:0,class:"app-card-expand-footer"},Ol=["onClick"],Ml={key:0,class:"app-scroll-foot"},Rl={key:1,class:"app-scroll-foot"},Ul={key:2,class:"app-scroll-foot"},Kl={class:"dialog-footer"},ql={class:"dialog-footer"},Il={class:"detail-body"},zl={key:0,class:"view-detail-error"},$l={class:"mix-detail-block"},Hl=["src"],Yl={key:1,class:"mix-detail-title-sm"},Jl={key:2,class:"mix-detail-block"},Wl={key:1,class:"detail-tab-body detail-tab-body--monitor"},Gl={key:2,class:"detail-tab-body"},Ql={key:3,class:"detail-tab-body"},Zl={class:"tab-card-title"},Xl={class:"tab-card-meta"},ea={key:0},ta={key:1},la={key:4,class:"detail-tab-body"},aa={class:"tab-card-title"},oa={class:"tab-card-meta"},ia={key:0},na={key:1},ra={key:5,class:"detail-tab-body"},sa={class:"tab-card-title"},da={class:"tab-card-meta"},ca={key:0},ua={key:1},pa={key:6,class:"detail-tab-body tab-history"},ma={class:"tab-toolbar"},fa={key:7,class:"view-detail-stub"},va={class:"stub-uid"},ba={DEFAULT_ICON:ft.DEFAULT_ICON,ACTIVE_ICON:ft.ACTIVE_ICON,NAME_CN:"对象列表",NAME_EN:"ObjectListAPP",ORDER:1,PLATFORM:["mobile"]},ga={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}]},Pe=[fe($({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})],ya=[{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(V=>({key:V.dataKey,label:V.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"}],_a=[],ha={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"}]},Va=[{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}],ka={DEFAULT:ba,OPTIONS:ga,DATA:Pe,PARAMS:ya,SOURCE:_a,COMMON:ha,COLUMNS_CONFIG:Va},Na=e.defineComponent(fe($({},ka),{__name:"objectListAPP",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{default:"edit"},theme:{},objectList:{default:()=>[]},code:{default:""}},setup(V){const h=V;class k extends gl.BaseComponent{getDataBool(t,a){var r,c;const o=(c=(r=this.props.conf)==null?void 0:r.data)==null?void 0:c[0];return o&&Object.prototype.hasOwnProperty.call(o,t)&&o[t]!==void 0?!!o[t]:this.getOptionValue(t,a)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showAddBtn:this.getDataBool("showAddBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length)||this.props.conf.data.length===1&&this.props.conf.data[0].alias_visible===void 0)this.props.conf.data=JSON.parse(JSON.stringify(Pe));else{const a=this.props.conf.data[0],o={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[c,f]of Object.entries(o))a[c]===void 0&&(a[c]=f);const r=T.detailTabRowDefaults();for(const[c,f]of Object.entries(r))a[c]===void 0&&(a[c]=f);a.textValueTransform===void 0&&(a.textValueTransform=JSON.parse(JSON.stringify(Pe[0].textValueTransform))),(a.appCardDefaultLines===void 0||a.appCardDefaultLines===null||a.appCardDefaultLines==="")&&(a.appCardDefaultLines=2)}}}const se=new k(h,"objectListAPP");se.setupLifecycle();const x=se.getStyle(),{mixiotPanelClass:be,mixiotPanelRootStyle:ge}=bl.useMixiotPanelSurface(x),Z=e.computed(()=>yl.generateTitleStyle(h.conf.options)),A=e.computed(()=>{var o,r,c,f;const l=((r=(o=h.conf)==null?void 0:o.options)==null?void 0:r.columns)||[],t=((f=(c=h.conf)==null?void 0:c.data)==null?void 0:f[0])||{},a=Array.isArray(l)?l.map(s=>{const g=t[s.key],d=t[`${s.key}_visible`];return{prop:s.key,label:g!==void 0&&g!==""?g: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&&a.push({prop:s.fv,label:s.name,width:150,visible:!0})}),a}),X=20,{listLoading:ye,listLoadingMore:vt,hasMore:_e,totalRecords:Oe,pageIndex:bt,resetListPagination:gt,pageRequestParams:yt,updateAfterPage:_t,onListScroll:ht,runLoadMore:Vt}=hl.useMixiotAppScrollLoad(X),ee=e.ref(""),H=e.ref("uid"),te=e.ref(null),B=e.ref([]);function kt(){H.value==="created"?ee.value="":te.value=null}function Nt(){const l=[];if(H.value==="created"){const a=te.value;if(a&&a.length===2&&a[0]&&a[1]){const[o,r]=a;l.push(["created",">=",o<=r?o:r]),l.push(["created","<=",o<=r?r:o])}}else{const a=ee.value.trim();a&&l.push([H.value,"like",`%${a}%`])}_l.appendCommonDesignerWhereAnd(h.conf.common,l);const t=$({},yt());return l.length&&(t.where_and=JSON.stringify(l)),t}function Me(l){return N(this,null,function*(){var c,f;const t=yield T.objectListApiPost("get_object_list",Nt(),!0),a=(c=t==null?void 0:t.result)!=null?c:t;let o=Array.isArray(a==null?void 0:a.data)?[...a.data]:Array.isArray(a)?[...a]:[];if((f=h.objectList)!=null&&f.length){const s=new Set(h.objectList.map(String));o=o.filter(g=>s.has(String(g.uid)))}l?B.value=[...B.value,...o]:B.value=o;let r=a==null?void 0:a.total_records;typeof r!="number"&&(r=Array.isArray(a)?a.length:o.length),_t(o.length,r,B.value.length),t&&t.code!==void 0&&t.code!==200&&console.warn("[objectList] 列表接口非成功",t.msg||t.info,t)})}function O(){return N(this,null,function*(){gt(),bt.value=1,ye.value=!0;try{yield Me(!1)}catch(l){if(console.error(l),B.value=[],Oe.value=0,_e.value=!1,mockManager.isServiceUnavailableError(l))console.warn("[objectList] 对象列表服务暂不可用(如 object 未在 Consul 注册)",l);else{const t=l,a=t&&typeof t=="object"&&"isAxiosError"in t,o=t&&typeof t=="object"&&"code"in t&&("msg"in t||"info"in t);!a&&!o&&console.error("[objectList] 加载对象列表失败",l)}}finally{ye.value=!1,Ve(),Et()}})}function xt(){return N(this,null,function*(){yield Vt(()=>N(null,null,function*(){try{yield Me(!0),Ve()}catch(l){throw console.error(l),l}}))})}function wt(l){ht(l,xt)}const Ct=e.computed(()=>B.value);function Re(l){return l===!0||l===1||l==="1"}const le=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:""}),he=()=>{O()},Bt=()=>{ee.value="",te.value=null,O()};e.watch(()=>{var l;return(l=h.objectList)==null?void 0:l.join(",")},()=>{O()});const ae=e.ref(!1),de=e.ref(!1),M=e.ref(""),u=e.ref(null),S=e.computed(()=>{var l,t;return((t=(l=h.conf)==null?void 0:l.data)==null?void 0:t[0])||{}}),St=e.computed(()=>{const l=new Set,t=S.value;if(t.addRealtimeData&&Array.isArray(t.realtimeParams))for(const a of t.realtimeParams)a!=null&&a.fv&&l.add(String(a.fv));return l}),Ue=e.computed(()=>{const l=S.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)}))}),Ke=e.computed(()=>{var l;return(l=S.value)==null?void 0:l.textValueTransform});let Y;const Ve=()=>N(null,null,function*(){const l=S.value;if(!l.addRealtimeData||!Array.isArray(l.realtimeParams))return;const t=[];for(const o of l.realtimeParams)o!=null&&o.fv&&t.push(String(o.fv));if(!t.length)return;const a=B.value.map(o=>String(o.uid)).filter(Boolean);if(a.length)try{const o=yield C.api.post("get_last_fv_by_objids",{object_ids:a},!1),r=(o==null?void 0:o.result)||{};for(const c of B.value){const f=String(c.uid),s=r[f];if(s)for(const g of t){const d=s[g];d!==void 0&&(c[g]=d)}}}catch(o){}}),Et=()=>{S.value.addRealtimeData&&(Y&&clearInterval(Y),Y=setInterval(()=>{Ve()},5e3))},Dt=()=>{Y&&(clearInterval(Y),Y=void 0)};function Tt(l){if(l==null||l==="")return!0;const t=String(l).trim();return!t||t==="未获取"}function qe(l,t){if(!t)return null;if(t.mode==="numeric"){for(const a of t.numericRules||[])if(a.matchType==="unavailable"){if(Tt(l))return{text:a.displayText,color:a.color}}else if(String(l)===String(a.matchValue))return{text:a.displayText,color:a.color}}else{const a=typeof l=="number"?l:parseFloat(String(l).replace(/,/g,""));if(Number.isNaN(a))return null;for(const o of t.rangeRules||[]){const r=parseFloat(String(o.boundary));if(!Number.isNaN(r)){if(o.op==="gt"&&a>r)return{text:o.displayText,color:o.color};if(o.op==="lt"&&a<r)return{text:o.displayText,color:o.color}}}}return null}function Ie(l){return St.value.has(l)}function ze(l,t){const a=l[t.prop];if(Ie(t.prop)){const o=qe(a,Ke.value);if(o)return o.text}return a==null?"":String(a)}function $e(l,t){const a=l[t.prop];if(!Ie(t.prop))return{};const o=qe(a,Ke.value);return o!=null&&o.color?{color:o.color}:{}}const At=["uid","created","name","description"],He=e.computed(()=>{const l=S.value,t=Number(l.appCardDefaultLines);return Number.isFinite(t)&&t>=1?Math.min(Math.floor(t),30):2}),ce=e.reactive({}),ke=e.reactive({}),Lt=e.computed(()=>{var l;return{backgroundColor:x.value.bgColor,borderRadius:`${(l=x.value.radiusSize)!=null?l:8}px`}});function Ft(l){return A.value.find(t=>t.prop===l)}function Ye(l){const t=[],a=[];for(const o of At)a.includes(o)||a.push(o);for(const o of A.value)o.visible&&(a.includes(o.prop)||a.push(o.prop));for(const o of a){const r=Ft(o);if(!r||!r.visible)continue;const c={prop:r.prop};let f;o==="create_by_tpl"?f=Re(l.create_by_tpl)?"模板创建":"手动创建":f=ze(l,c);const s=$e(l,c);t.push({prop:o,label:r.label,text:f,style:s})}return t}function jt(l){const t=Ye(l),a=String(l.uid),o=He.value;return ce[a]||t.length<=o?t:t.slice(0,o)}function Ne(l){return Ye(l).length>He.value}function Pt(l){return!!ce[l]}function xe(l){ce[l]=!ce[l]}function Ot(l,t){const a=t.target;!a||!(a instanceof Element)||a.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?Ae(l):Ne(l)&&xe(String(l.uid)))}function Je(l){x.value.showViewBtn?Ae(l):Ne(l)&&xe(String(l.uid))}function oe(l){const t=[],a=S.value;if(!a.addRealtimeData||!Array.isArray(a.realtimeParams))return t;for(const o of a.realtimeParams){if(!(o!=null&&o.fv))continue;const r=String(o.fv),c=o.name?String(o.name):r,f={prop:r},s=ze(l,f),d=$e(l,f).color;t.push({text:`${c}: ${s}`,color:d})}return t}function Mt(l){return oe(l).some(t=>String(t.text).length>24)}function Rt(l){return!!ke[l]}function We(l){ke[l]=!ke[l]}function Ut(l,t){l==="view"?Ae(t):l==="edit"?Xt(t):l==="archive"?il(t):l==="delete"&&tl(t)}const J=e.computed(()=>T.OBJECT_DETAIL_TAB_DEFS.filter(l=>S.value[l.dataKey]===!0).map(l=>fe($({},l),{tabKey:T.dataKeyToTabKey(l.dataKey)}))),ie=e.ref("baseinfo"),Kt=e.computed(()=>{try{return localStorage.getItem("sys_mode")||""}catch(l){return""}}),Ge=e.computed(()=>{var a;const l=(a=u.value)==null?void 0:a.image;if(!l||typeof l!="string")return"";if(l.startsWith("http")||l.startsWith(C.FILE_URL))return l;const t=l.startsWith("/")?l.slice(1):l;return`${C.FILE_URL}${t}`}),Qe=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(a=>a.trim()).filter(Boolean):[]}),we=e.computed(()=>{var t;const l=(t=u.value)==null?void 0:t.addition;return Array.isArray(l)?l.filter(a=>a&&typeof a=="object"&&Array.isArray(a.data)):[]}),ue=e.ref(!1),R=e.ref(null),Ze=e.ref(""),Ce=e.ref("");e.ref([]);const Be=e.ref(!1),W=e.ref([]),Se=e.ref(!1),G=e.ref([]),pe=e.ref([]),Ee=e.ref(!1),U=e.ref([]),De=e.ref(!1),Q=e.ref([]),me=e.ref([C.dayjs().subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),C.dayjs().format("YYYY-MM-DD HH:mm:ss")]),qt=l=>N(null,null,function*(){var t;Be.value=!0;try{const a=yield C.api.post("get_retainer_result_list",{object_id:l,page_size:50,page_index:1},!0),o=(t=a==null?void 0:a.result)!=null?t:a;W.value=Array.isArray(o==null?void 0:o.data)?o.data:[]}catch(a){W.value=[]}finally{Be.value=!1}}),It=l=>N(null,null,function*(){var t;Se.value=!0;try{const a=yield C.api.post("get_collect_list",{object_id:l,page_size:50,page_index:1},!0),o=(t=a==null?void 0:a.result)!=null?t:a;G.value=Array.isArray(o==null?void 0:o.data)?o.data:[]}catch(a){G.value=[]}finally{Se.value=!1}}),zt=(l,t)=>N(null,null,function*(){var a;if(!t.length){U.value=[];return}Ee.value=!0;try{const o=[["uid","in",t]],r=yield C.api.post("terminal_list",{page_size:100,page_index:1,where_and:JSON.stringify(o)},!0),c=(a=r==null?void 0:r.result)!=null?a:r;U.value=Array.isArray(c==null?void 0:c.data)?c.data:[]}catch(o){U.value=[]}finally{Ee.value=!1}}),Te=()=>N(null,null,function*(){var t,a,o,r;const l=(t=u.value)==null?void 0:t.uid;if(l){De.value=!0;try{const c=(o=(a=u.value)==null?void 0:a.fv_list)!=null?o:[],f=[["object_id","=",l],["time",">=",me.value[0]],["time","<=",me.value[1]]];c.length&&f.push(["fv_key","in",c.slice(0,10)]);const s=yield C.api.post("history_mosaic",{page_size:100,page_index:1,where_and:JSON.stringify(f)},!0),g=(r=s==null?void 0:s.result)!=null?r:s;Q.value=Array.isArray(g==null?void 0:g.data)?g.data:[]}catch(c){Q.value=[]}finally{De.value=!1}}}),$t=l=>N(null,null,function*(){var t,a;if(l){ue.value=!0,R.value=null,Ze.value=l;try{const r=(Array.isArray((t=u.value)==null?void 0:t.dashboard_list)?u.value.dashboard_list:[]).find(d=>{var E,D;const L=String((E=d==null?void 0:d.device_type)!=null?E:"").toLowerCase(),m=String((D=d==null?void 0:d.type)!=null?D:"").toLowerCase();return L==="mobile"||m==="mobile"}),c=String((a=r==null?void 0:r.uid)!=null?a:"").trim();if(!c){w.ElMessage.warning("该对象未绑定手机显示板");return}Ce.value=c;const f=yield C.api.post("get_dashboard_item",{uid:c},!1),s=(f==null?void 0:f.result)||{},g=s==null?void 0:s.script;g&&typeof g=="object"&&Object.keys(g).length?R.value=g:w.ElMessage.warning("显示板脚本为空")}catch(o){console.error(o),R.value=null}finally{ue.value=!1}}}),Ht=l=>`「${l}」的完整能力在 mixui 对象管理模块中提供;大屏组件内仅保留配置占位。`,Xe=()=>{const l=J.value;ie.value=l.length?l[0].tabKey:"baseinfo"},Ae=l=>N(null,null,function*(){var t,a;if(M.value="",u.value=null,Xe(),!J.value.length){ae.value=!0;return}ae.value=!0,de.value=!0;try{const o=yield T.objectListApiPost("get_object_item",{uid:l.uid},!0);o!=null&&o.result&&typeof o.result=="object"?(u.value=o.result,pe.value=(a=(t=o.result)==null?void 0:t.object_list)!=null?a:[]):u.value=$({},l),(o==null?void 0:o.code)!==void 0&&o.code!==200?M.value=o.msg||o.info||`请求失败 (${o.code})`:o!=null&&o.result||(M.value="未返回详情数据,已使用列表行暂代显示。")}catch(o){u.value=$({},l),M.value="加载详情失败,已使用列表行暂代显示。"}finally{de.value=!1}});function Yt(){ae.value=!1,Jt()}const Jt=()=>{u.value=null,M.value="",de.value=!1,R.value=null,Ce.value="",W.value=[],G.value=[],pe.value=[],U.value=[],Q.value=[]};e.watch(ie,l=>{var a,o,r;const t=(a=u.value)==null?void 0:a.uid;if(t)if(l==="monitor"&&!R.value)$t(t);else if(l==="retainer-record"&&!W.value.length)qt(t);else if(l==="collect"&&!G.value.length)It(t);else if(l==="terminal"&&!U.value.length){const c=(r=(o=u.value)==null?void 0:o.terminal_list)!=null?r:[];zt(t,c)}else l==="history"&&!Q.value.length&&Te()}),e.watch(J,()=>{if(!ae.value)return;new Set(J.value.map(t=>t.tabKey)).has(ie.value)||Xe()});const et=()=>({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:""}),ne=e.ref(!1),p=e.reactive(et()),tt=e.ref(0),Le=e.ref(!1),Fe=e.ref(!1),je=e.ref(!1);function Wt(l){return Array.isArray(l)?l.map(String).filter(Boolean).join(", "):typeof l=="string"?l:""}function lt(l){return l.split(/[,,]/).map(t=>t.trim()).filter(Boolean)}function Gt(l){return Array.isArray(l)?l.map(String).filter(Boolean).join(", "):typeof l=="string"?l:""}function Qt(l){const t=l.terminal_list;return Array.isArray(t)?t.map(String).map(a=>a.trim()).filter(Boolean):lt(String(t!=null?t:""))}function Zt(){const l=S.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,et())}function at(l){const t=S.value;if(!(!t.addRealtimeData||!Array.isArray(t.realtimeParams))){for(const a of t.realtimeParams)if(a!=null&&a.name&&(a!=null&&a.fv)){const o=String(a.fv),r=l[o];p[o]=r!=null?String(r):""}}}function ot(l){var t,a,o,r,c,f,s,g,d,L,m,E,D,K,q;Zt(),Object.assign(p,{uid:String((t=l.uid)!=null?t:""),name:String((a=l.name)!=null?a:""),alias:String((o=l.alias)!=null?o:""),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((g=l.customer_alias)!=null?g:""),terminal_list:Gt(l.terminal_list),mapping_id:String((d=l.mapping_id)!=null?d:""),mapping_name:String((L=l.mapping_name)!=null?L:""),tag:Wt(l.tag),province:String((m=l.province)!=null?m:""),city:String((E=l.city)!=null?E:""),create_by_tpl:Re(l.create_by_tpl),tpl_uid:String((D=l.tpl_uid)!=null?D:""),tpl_name:String((K=l.tpl_name)!=null?K:""),tpl_alias:String((q=l.tpl_alias)!=null?q:"")}),tt.value=Number(l.id)||0}function it(l,t){var a,o,r,c,f,s,g,d,L,m,E,D,K,q,b,re;return{id:t,uid:String((a=l.uid)!=null?a:"").trim(),name:String((o=l.name)!=null?o:"").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((g=l.customer_name)!=null?g:""),customer_alias:String((d=l.customer_alias)!=null?d:""),terminal_list:Qt(l),mapping_id:String((L=l.mapping_id)!=null?L:""),mapping_name:String((m=l.mapping_name)!=null?m:""),tag:lt(String((E=l.tag)!=null?E:"")),province:String((D=l.province)!=null?D:""),city:String((K=l.city)!=null?K:""),create_by_tpl:l.create_by_tpl?1:0,tpl_uid:String((q=l.tpl_uid)!=null?q:""),tpl_name:String((b=l.tpl_name)!=null?b:""),tpl_alias:String((re=l.tpl_alias)!=null?re:""),addition:"[]"}}const Xt=l=>N(null,null,function*(){var t;ne.value=!0,Le.value=!0;try{const a=yield T.objectListApiPost("get_object_item",{uid:l.uid},!0),o=(t=a==null?void 0:a.result)!=null?t:l;ot(o),at(o)}catch(a){ot(l),at(l),w.ElMessage.warning("拉取对象详情失败,已使用列表行编辑")}finally{Le.value=!1}}),el=()=>N(null,null,function*(){if(!p.name.trim()){w.ElMessage.warning("请填写对象名称");return}Fe.value=!0;try{yield T.objectListApiPost("update_object",it(p,tt.value),!0),w.ElMessage.success("保存成功"),ne.value=!1,yield O()}catch(l){w.ElMessage.error("保存失败")}finally{Fe.value=!1}}),tl=l=>{w.ElMessageBox.confirm("确认删除该对象吗?","警告",{type:"warning"}).then(()=>N(null,null,function*(){try{yield T.objectListApiPost("delete_object",{uid:l.uid,id:l.id},!0),w.ElMessage.success("删除成功"),yield O()}catch(t){w.ElMessage.error("删除失败")}})).catch(()=>{})},ll=()=>{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:""}),le.value=!0};function al(l){l==="add"?ll():l==="reset"&&Bt()}const ol=()=>N(null,null,function*(){var l;if(!((l=v.name)!=null&&l.trim())){w.ElMessage.warning("请填写对象名称");return}je.value=!0;try{yield T.objectListApiPost("create_object",it(v,0),!0),le.value=!1,w.ElMessage.success("添加成功"),yield O()}catch(t){w.ElMessage.error("添加失败")}finally{je.value=!1}}),il=l=>{w.ElMessageBox.confirm(`确认对对象 [${l.name}] 进行资料备档吗?`,"提示",{type:"info"}).then(()=>{w.ElMessage.success("备档成功")}).catch(()=>{})};return e.onMounted(()=>{O()}),e.onUnmounted(()=>{Dt()}),(l,t)=>{var st,dt;const a=_.ElIcon,o=_.ElButton,r=_.ElDropdownItem,c=_.ElDropdownMenu,f=_.ElDropdown,s=_.ElOption,g=_.ElSelect,d=_.ElInput,L=_.ElDatePicker,m=_.ElFormItem,E=_.ElForm,D=_.ElDialog,K=_.ElDivider,q=_.ElAlert,b=_.ElDescriptionsItem,re=_.ElTag,nt=_.ElDescriptions,nl=_.ElCollapseItem,rl=_.ElCollapse,I=_.ElEmpty,F=_.ElTableColumn,rt=_.ElTable,sl=_.ElTabPane,dl=_.ElTabs,z=_.ElLoadingDirective;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["object-list-app mix-component",e.unref(be)]),style:e.normalizeStyle(e.unref(ge))},[e.unref(x).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",kl,[e.createElementVNode("div",{class:"app-title-text",style:e.normalizeStyle(Z.value)},e.toDisplayString(V.conf.caption||V.conf.name),5),e.createVNode(f,{trigger:"click",onCommand:al},{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[38]||(t[38]=[e.createTextVNode("添加对象",-1)])]),_:1})):e.createCommentVNode("",!0),e.createVNode(r,{command:"reset"},{default:e.withCtx(()=>[...t[39]||(t[39]=[e.createTextVNode("重置",-1)])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(o,{type:"primary",circle:"",size:"small",class:"app-add-btn",onClick:t[0]||(t[0]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(ve.Plus))]),_:1})]),_:1})]),_:1})])),e.withDirectives((e.openBlock(),e.createElementBlock("div",Nl,[e.createElementVNode("div",xl,[e.createVNode(g,{modelValue:H.value,"onUpdate:modelValue":t[1]||(t[1]=i=>H.value=i),class:"app-field-select",onChange:kt},{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",wl,[H.value!=="created"?(e.openBlock(),e.createBlock(d,{key:0,modelValue:ee.value,"onUpdate:modelValue":t[2]||(t[2]=i=>ee.value=i),placeholder:"输入关键词搜索",clearable:"",class:"app-search-input",onKeyup:e.withKeys(he,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(ve.Search))]),_:1})]),append:e.withCtx(()=>[e.createVNode(o,{type:"primary",class:"app-toolbar-search-btn",onClick:he},{default:e.withCtx(()=>[...t[40]||(t[40]=[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]=i=>te.value=i),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(o,{type:"primary",class:"app-toolbar-search-btn app-created-search-btn",onClick:he},{default:e.withCtx(()=>[...t[41]||(t[41]=[e.createTextVNode("搜索",-1)])]),_:1})]))])]),e.createElementVNode("div",{class:"app-card-scroll",onScroll:wt},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ct.value,i=>(e.openBlock(),e.createElementBlock("div",{key:String(i.uid),class:"app-object-card",style:e.normalizeStyle(Lt.value),role:"button",tabindex:"0",onClick:y=>Ot(i,y),onKeydown:[e.withKeys(e.withModifiers(y=>Je(i),["prevent"]),["enter"]),e.withKeys(e.withModifiers(y=>Je(i),["prevent"]),["space"])]},[e.createElementVNode("div",Sl,[e.createElementVNode("div",El,e.toDisplayString(i.name||"—"),1),e.createElementVNode("div",Dl,[e.createVNode(f,{trigger:"click",onCommand:y=>Ut(y,i)},{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[42]||(t[42]=[e.createTextVNode("查看",-1)])]),_:1})):e.createCommentVNode("",!0),e.unref(x).showEditBtn?(e.openBlock(),e.createBlock(r,{key:1,command:"edit"},{default:e.withCtx(()=>[...t[43]||(t[43]=[e.createTextVNode("编辑",-1)])]),_:1})):e.createCommentVNode("",!0),e.unref(x).showArchiveBtn?(e.openBlock(),e.createBlock(r,{key:2,command:"archive"},{default:e.withCtx(()=>[...t[44]||(t[44]=[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[45]||(t[45]=[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(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(ve.MoreFilled))]),_:1})])]),_:1},8,["onCommand"]),oe(i).length?(e.openBlock(),e.createElementBlock("div",Tl,[Rt(String(i.uid))?(e.openBlock(),e.createElementBlock("div",Ll,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe(i),(y,j)=>(e.openBlock(),e.createElementBlock("div",{key:"ex"+j,class:"app-transform-line",style:e.normalizeStyle(y.color?{color:y.color}:{})},e.toDisplayString(y.text),5))),128)),e.createVNode(o,{text:"",type:"primary",class:"app-mini-more",onClick:e.withModifiers(y=>We(String(i.uid)),["stop"])},{default:e.withCtx(()=>[...t[47]||(t[47]=[e.createTextVNode("收起",-1)])]),_:1},8,["onClick"])])):(e.openBlock(),e.createElementBlock("div",Al,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe(i).slice(0,2),(y,j)=>(e.openBlock(),e.createElementBlock("span",{key:j,class:"app-rt-tag",style:e.normalizeStyle(y.color?{color:y.color,borderColor:y.color}:{})},e.toDisplayString(y.text),5))),128)),oe(i).length>2||Mt(i)?(e.openBlock(),e.createBlock(o,{key:0,text:"",type:"primary",class:"app-mini-more",onClick:e.withModifiers(y=>We(String(i.uid)),["stop"])},{default:e.withCtx(()=>[...t[46]||(t[46]=[e.createTextVNode("···",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Fl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(jt(i),(y,j)=>(e.openBlock(),e.createElementBlock("div",{key:y.prop+"-"+j,class:"app-field-line"},[e.createElementVNode("span",jl,e.toDisplayString(y.label),1),e.createElementVNode("span",{class:"app-field-value",style:e.normalizeStyle(y.style)},e.toDisplayString(y.text),5)]))),128))]),Ne(i)?(e.openBlock(),e.createElementBlock("div",Pl,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["app-field-expand",{open:Pt(String(i.uid))}]),onClick:e.withModifiers(y=>xe(String(i.uid)),["stop"])},[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(ve.ArrowDown))]),_:1})],10,Ol)])):e.createCommentVNode("",!0)],44,Bl))),128)),e.unref(vt)?(e.openBlock(),e.createElementBlock("div",Ml,"加载中…")):B.value.length&&!e.unref(_e)?(e.openBlock(),e.createElementBlock("div",Rl," 已加载全部 "+e.toDisplayString(e.unref(Oe))+" 条 ",1)):B.value.length&&e.unref(_e)?(e.openBlock(),e.createElementBlock("div",Ul," 已加载 "+e.toDisplayString(B.value.length)+" 条,上拉加载更多 ",1)):e.createCommentVNode("",!0)],32)])),[[z,e.unref(ye)]]),e.createVNode(D,{modelValue:le.value,"onUpdate:modelValue":t[19]||(t[19]=i=>le.value=i),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",Kl,[e.createVNode(o,{onClick:t[18]||(t[18]=i=>le.value=!1)},{default:e.withCtx(()=>[...t[48]||(t[48]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(o,{type:"primary",loading:je.value,onClick:ol},{default:e.withCtx(()=>[...t[49]||(t[49]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.createVNode(E,{model:v,"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(m,{label:"对象名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.name,"onUpdate:modelValue":t[5]||(t[5]=i=>v.name=i),placeholder:"请输入对象名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"对象别名"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.alias,"onUpdate:modelValue":t[6]||(t[6]=i=>v.alias=i),placeholder:"请输入对象别名"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"型号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.model,"onUpdate:modelValue":t[7]||(t[7]=i=>v.model=i),placeholder:"请输入型号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.description,"onUpdate:modelValue":t[8]||(t[8]=i=>v.description=i),placeholder:"请输入描述",type:"textarea"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户编号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.customer_id,"onUpdate:modelValue":t[9]||(t[9]=i=>v.customer_id=i),placeholder:"请输入客户编号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.customer_name,"onUpdate:modelValue":t[10]||(t[10]=i=>v.customer_name=i),placeholder:"请输入客户名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户别名"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.customer_alias,"onUpdate:modelValue":t[11]||(t[11]=i=>v.customer_alias=i),placeholder:"请输入客户别名"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"关联终端"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.terminal_list,"onUpdate:modelValue":t[12]||(t[12]=i=>v.terminal_list=i),placeholder:"请输入关联终端"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.mapping_id,"onUpdate:modelValue":t[13]||(t[13]=i=>v.mapping_id=i),placeholder:"请输入映射表编号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"映射表名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.mapping_name,"onUpdate:modelValue":t[14]||(t[14]=i=>v.mapping_name=i),placeholder:"请输入映射表名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.tag,"onUpdate:modelValue":t[15]||(t[15]=i=>v.tag=i),placeholder:"请输入标签"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"省份"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.province,"onUpdate:modelValue":t[16]||(t[16]=i=>v.province=i),placeholder:"请输入省份"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"市/区"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:v.city,"onUpdate:modelValue":t[17]||(t[17]=i=>v.city=i),placeholder:"请输入市/区"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(D,{modelValue:ne.value,"onUpdate:modelValue":t[35]||(t[35]=i=>ne.value=i),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",ql,[e.createVNode(o,{onClick:t[34]||(t[34]=i=>ne.value=!1)},{default:e.withCtx(()=>[...t[51]||(t[51]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(o,{type:"primary",loading:Fe.value,onClick:el},{default:e.withCtx(()=>[...t[52]||(t[52]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(E,{model:p,"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(m,{label:"对象编号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.uid,"onUpdate:modelValue":t[20]||(t[20]=i=>p.uid=i),placeholder:"请输入对象编号",disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"对象名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.name,"onUpdate:modelValue":t[21]||(t[21]=i=>p.name=i),placeholder:"请输入对象名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"对象别名"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.alias,"onUpdate:modelValue":t[22]||(t[22]=i=>p.alias=i),placeholder:"请输入对象别名"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"型号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.model,"onUpdate:modelValue":t[23]||(t[23]=i=>p.model=i),placeholder:"请输入型号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.description,"onUpdate:modelValue":t[24]||(t[24]=i=>p.description=i),placeholder:"请输入描述",type:"textarea"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户编号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.customer_id,"onUpdate:modelValue":t[25]||(t[25]=i=>p.customer_id=i),placeholder:"请输入客户编号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.customer_name,"onUpdate:modelValue":t[26]||(t[26]=i=>p.customer_name=i),placeholder:"请输入客户名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"客户别名"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.customer_alias,"onUpdate:modelValue":t[27]||(t[27]=i=>p.customer_alias=i),placeholder:"请输入客户别名"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"关联终端"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.terminal_list,"onUpdate:modelValue":t[28]||(t[28]=i=>p.terminal_list=i),placeholder:"请输入关联终端"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.mapping_id,"onUpdate:modelValue":t[29]||(t[29]=i=>p.mapping_id=i),placeholder:"请输入映射表编号"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"映射表名称"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.mapping_name,"onUpdate:modelValue":t[30]||(t[30]=i=>p.mapping_name=i),placeholder:"请输入映射表名称"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.tag,"onUpdate:modelValue":t[31]||(t[31]=i=>p.tag=i),placeholder:"请输入标签"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"省份"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.province,"onUpdate:modelValue":t[32]||(t[32]=i=>p.province=i),placeholder:"请输入省份"},null,8,["modelValue"])]),_:1}),e.createVNode(m,{label:"市/区"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p.city,"onUpdate:modelValue":t[33]||(t[33]=i=>p.city=i),placeholder:"请输入市/区"},null,8,["modelValue"])]),_:1}),S.value.addRealtimeData&&Ue.value.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(K,{"content-position":"left"},{default:e.withCtx(()=>[...t[50]||(t[50]=[e.createTextVNode("实时数据",-1)])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ue.value,i=>(e.openBlock(),e.createBlock(m,{key:i.fv,label:i.name},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:p[i.fv],"onUpdate:modelValue":y=>p[i.fv]=y,placeholder:"请输入"+i.name},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["label"]))),128))],64)):e.createCommentVNode("",!0)]),_:1},8,["model"])),[[z,Le.value]])]),_:1},8,["modelValue"]),ae.value?(e.openBlock(),e.createBlock(Vl.default,{key:1,loading:de.value,title:((st=u.value)==null?void 0:st.name)||((dt=u.value)==null?void 0:dt.uid)||"对象详情",onBack:Yt},{default:e.withCtx(()=>[e.createElementVNode("div",Il,[J.value.length?(e.openBlock(),e.createBlock(dl,{key:1,modelValue:ie.value,"onUpdate:modelValue":t[37]||(t[37]=i=>ie.value=i),class:"detail-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(J.value,i=>(e.openBlock(),e.createBlock(sl,{key:i.tabKey,label:i.label,name:i.tabKey},{default:e.withCtx(()=>{var y,j;return[e.createElementVNode("div",{class:e.normalizeClass(["tab-content","tab-"+i.tabKey])},[i.tabKey==="baseinfo"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[M.value?(e.openBlock(),e.createElementBlock("div",zl,e.toDisplayString(M.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",$l,[u.value?(e.openBlock(),e.createBlock(nt,{key:0,column:1,border:""},{default:e.withCtx(()=>[Ge.value?(e.openBlock(),e.createBlock(b,{key:0,label:"对象图片",span:2},{default:e.withCtx(()=>[e.createElementVNode("img",{class:"view-detail-head-img",src:Ge.value,alt:""},null,8,Hl)]),_:1})):e.createCommentVNode("",!0),e.createVNode(b,{label:"对象编号"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.uid)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"对象名称"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.name)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"对象别名"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.alias)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"型号"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.model)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"序列号"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.serial_no)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"映射表编号"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.mapping_id)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"映射表名称"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.mapping_name)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"映射表别名"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.mapping_alias)!=null?n:""),1)]}),_:1}),Kt.value!=="box"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(b,{label:"项目编号"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.customer_id)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"项目名称"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.customer_name)!=null?n:""),1)]}),_:1})],64)):e.createCommentVNode("",!0),e.createVNode(b,{label:"控制密码"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.control)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"控制码编号"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.control_id)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"控制码名称"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.control_name)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"控制码别名"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.control_alias)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"地址"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.address)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"设置经纬度"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.custom_gis)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"GPS经纬度"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.gis)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"省份"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.province)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"城市"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.city)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"创建时间"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.created)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"更新时间"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.last_modified)!=null?n:""),1)]}),_:1}),e.createVNode(b,{label:"标签",span:2},{default:e.withCtx(()=>[Qe.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(Qe.value,n=>(e.openBlock(),e.createBlock(re,{key:n,style:{"margin-right":"6px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n),1)]),_:2},1024))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(b,{label:"描述",span:2},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=u.value.description)!=null?n:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)]),we.value.length?(e.openBlock(),e.createElementBlock("div",Yl,"扩展脚本信息")):e.createCommentVNode("",!0),we.value.length?(e.openBlock(),e.createElementBlock("div",Jl,[e.createVNode(rl,{"expand-icon-position":"left"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(we.value,(n,P)=>(e.openBlock(),e.createBlock(nl,{key:P,name:P,title:n.title},{default:e.withCtx(()=>[e.createVNode(nt,{border:"",column:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data,(ct,cl)=>(e.openBlock(),e.createBlock(b,{key:cl,label:String(ct[0])},{default:e.withCtx(()=>{var ut;return[e.createTextVNode(e.toDisplayString((ut=ct[1])!=null?ut:""),1)]}),_:2},1032,["label"]))),128))]),_:2},1024)]),_:2},1032,["name","title"]))),128))]),_:1})])):e.createCommentVNode("",!0)],64)):i.tabKey==="monitor"?e.withDirectives((e.openBlock(),e.createElementBlock("div",Wl,[R.value?(e.openBlock(),e.createBlock(C._sfc_main$1,{key:Ce.value,script:R.value,uid:Ze.value,"enable-web-socket":!0,"follow-host-theme":!0},null,8,["script","uid"])):ue.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(I,{key:1,description:"暂无关联手机显示板"}))])),[[z,ue.value]]):i.tabKey==="retainer-record"?e.withDirectives((e.openBlock(),e.createElementBlock("div",Gl,[W.value.length?(e.openBlock(),e.createBlock(rt,{key:0,data:W.value,stripe:"",size:"small",class:"detail-table","max-height":"100%"},{default:e.withCtx(()=>[e.createVNode(F,{prop:"template_id",label:"项目编号",width:"120"}),e.createVNode(F,{prop:"label_cn",label:"历程项名称","min-width":"120"}),e.createVNode(F,{prop:"code",label:"编码",width:"100"}),e.createVNode(F,{prop:"category",label:"类型",width:"80"}),e.createVNode(F,{prop:"opened_at",label:"开始时间",width:"160"})]),_:1},8,["data"])):(e.openBlock(),e.createBlock(I,{key:1,description:"暂无历程记录"}))])),[[z,Be.value]]):i.tabKey==="collect"?e.withDirectives((e.openBlock(),e.createElementBlock("div",Ql,[G.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(G.value,(n,P)=>(e.openBlock(),e.createElementBlock("div",{key:P,class:"tab-card-item"},[e.createElementVNode("div",Zl,e.toDisplayString(n.name||n.uid||"—"),1),e.createElementVNode("div",Xl,[n.uid?(e.openBlock(),e.createElementBlock("span",ea,"编号:"+e.toDisplayString(n.uid),1)):e.createCommentVNode("",!0),n.is_active!==void 0?(e.openBlock(),e.createElementBlock("span",ta,"状态:"+e.toDisplayString(n.is_active===1?"开启":"关闭"),1)):e.createCommentVNode("",!0)])]))),128)):(e.openBlock(),e.createBlock(I,{key:1,description:"暂无离线采集项目"}))])),[[z,Se.value]]):i.tabKey==="child"?(e.openBlock(),e.createElementBlock("div",la,[pe.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(pe.value,(n,P)=>(e.openBlock(),e.createElementBlock("div",{key:P,class:"tab-card-item"},[e.createElementVNode("div",aa,e.toDisplayString(n.name||n.uid||"—"),1),e.createElementVNode("div",oa,[n.uid?(e.openBlock(),e.createElementBlock("span",ia,"编号:"+e.toDisplayString(n.uid),1)):e.createCommentVNode("",!0),n.model?(e.openBlock(),e.createElementBlock("span",na,"型号:"+e.toDisplayString(n.model),1)):e.createCommentVNode("",!0)])]))),128)):(e.openBlock(),e.createBlock(I,{key:1,description:"暂无子对象"}))])):i.tabKey==="terminal"?e.withDirectives((e.openBlock(),e.createElementBlock("div",ra,[U.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(U.value,(n,P)=>(e.openBlock(),e.createElementBlock("div",{key:P,class:"tab-card-item"},[e.createElementVNode("div",sa,e.toDisplayString(n.name||n.uid||"—"),1),e.createElementVNode("div",da,[n.uid?(e.openBlock(),e.createElementBlock("span",ca,"编号:"+e.toDisplayString(n.uid),1)):e.createCommentVNode("",!0),n.type?(e.openBlock(),e.createElementBlock("span",ua,"类型:"+e.toDisplayString(n.type),1)):e.createCommentVNode("",!0),e.createVNode(re,{type:n.online===1?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.online===1?"在线":"离线"),1)]),_:2},1032,["type"])])]))),128)):(e.openBlock(),e.createBlock(I,{key:1,description:"暂无关联终端"}))])),[[z,Ee.value]]):i.tabKey==="history"?e.withDirectives((e.openBlock(),e.createElementBlock("div",pa,[e.createElementVNode("div",ma,[e.createVNode(L,{modelValue:me.value,"onUpdate:modelValue":t[36]||(t[36]=n=>me.value=n),type:"datetimerange",size:"small","range-separator":"-","start-placeholder":"开始","end-placeholder":"结束",onChange:Te},null,8,["modelValue"]),e.createVNode(o,{size:"small",type:"primary",onClick:Te},{default:e.withCtx(()=>[...t[53]||(t[53]=[e.createTextVNode("查询",-1)])]),_:1})]),Q.value.length?(e.openBlock(),e.createBlock(rt,{key:0,data:Q.value,stripe:"",size:"small",class:"detail-table","max-height":"100%"},{default:e.withCtx(()=>[e.createVNode(F,{prop:"time",label:"时间",width:"160"}),e.createVNode(F,{prop:"fv_key",label:"变量",width:"120"}),e.createVNode(F,{prop:"value",label:"值","min-width":"100"})]),_:1},8,["data"])):(e.openBlock(),e.createBlock(I,{key:1,description:"暂无历史数据"}))])),[[z,De.value]]):(e.openBlock(),e.createElementBlock("div",fa,[e.createVNode(I,{description:Ht(i.label)},null,8,["description"]),e.createElementVNode("div",va,"对象编号:"+e.toDisplayString((j=(y=u.value)==null?void 0:y.uid)!=null?j:"—"),1)]))],2)]}),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(q,{key:0,type:"warning","show-icon":"",closable:!1,title:"请先在右侧「数据」面板勾选「查看」,并在其下的详情页签中至少启用一项。"}))])]),_:1},8,["loading","title"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default",{},void 0,!0)],6)}}})),xa=C._export_sfc(Na,[["__scopeId","data-v-888d05cb"]]);exports.default=xa;
@@ -1,4 +1,4 @@
1
- "use strict";var $=Object.defineProperty,j=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var U=(p,n,u)=>n in p?$(p,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):p[n]=u,A=(p,n)=>{for(var u in n||(n={}))R.call(n,u)&&U(p,u,n[u]);if(P)for(var u of P(n))W.call(n,u)&&U(p,u,n[u]);return p},_=(p,n)=>j(p,V(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),g=require("./index-D7PZNHF4.cjs");require("element-plus");const q=require("./EChartComponentBase-C4s5HSfS.cjs"),X=require("./titleStyle-NSnz6cUg.cjs"),E=require("./installCanvasRenderer-CyhM1Qpl.cjs"),M=require("./install-DV5cEgNV.cjs"),H=require("./install-CltTFs4e.cjs"),G=require("./install-C8buXQPI.cjs"),K=require("./install-Ch5d8i37.cjs"),J="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='3'%20y='3'%20width='4'%20height='18'%20rx='1'%20fill='currentColor'%20opacity='0.5'/%3e%3crect%20x='7'%20y='3'%20width='4'%20height='18'%20rx='1'%20fill='currentColor'/%3e%3crect%20x='11'%20y='3'%20width='4'%20height='18'%20rx='1'%20fill='currentColor'%20opacity='0.5'/%3e%3crect%20x='15'%20y='3'%20width='4'%20height='18'%20rx='1'%20fill='currentColor'/%3e%3c/svg%3e",Q="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='3'%20y='3'%20width='4'%20height='18'%20rx='1'%20fill='%23FFFFFF'%20opacity='0.5'/%3e%3crect%20x='7'%20y='3'%20width='4'%20height='18'%20rx='1'%20fill='%23FFFFFF'/%3e%3crect%20x='11'%20y='3'%20width='4'%20height='18'%20rx='1'%20fill='%23FFFFFF'%20opacity='0.5'/%3e%3crect%20x='15'%20y='3'%20width='4'%20height='18'%20rx='1'%20fill='%23FFFFFF'/%3e%3c/svg%3e",Y={class:"mix-body"},Z=["id"],tt={DEFAULT_ICON:J,ACTIVE_ICON:Q,NAME_CN:"百分比堆积柱状图",NAME_EN:"Percent Stacked Bar Chart",ORDER:3,PLATFORM:["pc","screen","mobile"]},et={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:40,right:20,radiusSize:8,textSize:12,barWidth:30,points:10,isHideTitle:!1,showLabel:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},it=[{name:"参数一",fv:"",object_id:"",color:"#4162ff",periodUnit:"near-hour",periodValue:1},{name:"参数二",fv:"",object_id:"",color:"#3bbc6a",periodUnit:"near-hour",periodValue:1}],ot=["name","fv","object_id","color",{key:"periodUnit",label:"setting.timeUnit",type:"select",options:g.DATE_OPTION},{key:"periodValue",label:"setting.timePeriod",type:"number"}],st=["mosaic","statistics","calculate"],nt={source:"mosaic",useAlias:!1,multiObject:!1,null:{type:"0",value:""}},at={DEFAULT:tt,OPTIONS:et,DATA:it,PARAMS:ot,SOURCE:st,COMMON:nt},rt=l.defineComponent(_(A({},at),{__name:"percentBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){E.use([M.install,H.install,E.install,G.install,E.install$1,K.install]);const n=p,u=g.useLinkStore();class B extends q.EChartComponentBase{extractStyles(){return _(A({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",30),showLabel:this.getOptionValue("showLabel",!1)})}getXAxisData(){var t;return(t=this.getFixedStatisticsXLabels())!=null?t:this.getTimeAxis()}getFixedStatisticsXLabels(){var i;const{data:t,common:e}=this.props.conf,a=(e==null?void 0:e.source)||"mosaic",o=(i=t[0])==null?void 0:i.periodUnit;return["statistics","calculate"].includes(a)&&o&&!String(o).startsWith("near")?g.getStatisticsTimeUnitLabel(o):null}calcPercentData(t){if(!t.length||!t[0].length)return t;const e=t[0].length,a=t.map(()=>[]);for(let o=0;o<e;o++){let i=0;for(let s=0;s<t.length;s++)i+=t[s][o]||0;for(let s=0;s<t.length;s++)a[s][o]=i>0?parseFloat(((t[s][o]||0)/i*100).toFixed(1)):0}return a}getChartOption(){const t=this.Style.value;return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:e=>{if(!(e!=null&&e.length))return"";let a=`<div>${e[0].axisValue}</div>`,o=0;return e.forEach(i=>{o+=i.value||0}),e.forEach(i=>{const s=o>0?((i.value||0)/o*100).toFixed(1):"0.0";a+=`<div style="display:flex;align-items:center;gap:4px;">
1
+ "use strict";var $=Object.defineProperty,j=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var U=(p,n,u)=>n in p?$(p,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):p[n]=u,A=(p,n)=>{for(var u in n||(n={}))R.call(n,u)&&U(p,u,n[u]);if(P)for(var u of P(n))W.call(n,u)&&U(p,u,n[u]);return p},_=(p,n)=>j(p,V(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),g=require("./index-BdWR_FTA.cjs");require("element-plus");const q=require("./EChartComponentBase-ejDV5NEw.cjs"),X=require("./titleStyle-NSnz6cUg.cjs"),E=require("./installCanvasRenderer-CyhM1Qpl.cjs"),M=require("./install-DV5cEgNV.cjs"),H=require("./install-CltTFs4e.cjs"),G=require("./install-C8buXQPI.cjs"),K=require("./install-Ch5d8i37.cjs"),J="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='3'%20y='3'%20width='4'%20height='18'%20rx='1'%20fill='currentColor'%20opacity='0.5'/%3e%3crect%20x='7'%20y='3'%20width='4'%20height='18'%20rx='1'%20fill='currentColor'/%3e%3crect%20x='11'%20y='3'%20width='4'%20height='18'%20rx='1'%20fill='currentColor'%20opacity='0.5'/%3e%3crect%20x='15'%20y='3'%20width='4'%20height='18'%20rx='1'%20fill='currentColor'/%3e%3c/svg%3e",Q="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='3'%20y='3'%20width='4'%20height='18'%20rx='1'%20fill='%23FFFFFF'%20opacity='0.5'/%3e%3crect%20x='7'%20y='3'%20width='4'%20height='18'%20rx='1'%20fill='%23FFFFFF'/%3e%3crect%20x='11'%20y='3'%20width='4'%20height='18'%20rx='1'%20fill='%23FFFFFF'%20opacity='0.5'/%3e%3crect%20x='15'%20y='3'%20width='4'%20height='18'%20rx='1'%20fill='%23FFFFFF'/%3e%3c/svg%3e",Y={class:"mix-body"},Z=["id"],tt={DEFAULT_ICON:J,ACTIVE_ICON:Q,NAME_CN:"百分比堆积柱状图",NAME_EN:"Percent Stacked Bar Chart",ORDER:3,PLATFORM:["pc","screen","mobile"]},et={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:40,right:20,radiusSize:8,textSize:12,barWidth:30,points:10,isHideTitle:!1,showLabel:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},it=[{name:"参数一",fv:"",object_id:"",color:"#4162ff",periodUnit:"near-hour",periodValue:1},{name:"参数二",fv:"",object_id:"",color:"#3bbc6a",periodUnit:"near-hour",periodValue:1}],ot=["name","fv","object_id","color",{key:"periodUnit",label:"setting.timeUnit",type:"select",options:g.DATE_OPTION},{key:"periodValue",label:"setting.timePeriod",type:"number"}],st=["mosaic","statistics","calculate"],nt={source:"mosaic",useAlias:!1,multiObject:!1,null:{type:"0",value:""}},at={DEFAULT:tt,OPTIONS:et,DATA:it,PARAMS:ot,SOURCE:st,COMMON:nt},rt=l.defineComponent(_(A({},at),{__name:"percentBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){E.use([M.install,H.install,E.install,G.install,E.install$1,K.install]);const n=p,u=g.useLinkStore();class B extends q.EChartComponentBase{extractStyles(){return _(A({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",30),showLabel:this.getOptionValue("showLabel",!1)})}getXAxisData(){var t;return(t=this.getFixedStatisticsXLabels())!=null?t:this.getTimeAxis()}getFixedStatisticsXLabels(){var i;const{data:t,common:e}=this.props.conf,a=(e==null?void 0:e.source)||"mosaic",o=(i=t[0])==null?void 0:i.periodUnit;return["statistics","calculate"].includes(a)&&o&&!String(o).startsWith("near")?g.getStatisticsTimeUnitLabel(o):null}calcPercentData(t){if(!t.length||!t[0].length)return t;const e=t[0].length,a=t.map(()=>[]);for(let o=0;o<e;o++){let i=0;for(let s=0;s<t.length;s++)i+=t[s][o]||0;for(let s=0;s<t.length;s++)a[s][o]=i>0?parseFloat(((t[s][o]||0)/i*100).toFixed(1)):0}return a}getChartOption(){const t=this.Style.value;return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:e=>{if(!(e!=null&&e.length))return"";let a=`<div>${e[0].axisValue}</div>`,o=0;return e.forEach(i=>{o+=i.value||0}),e.forEach(i=>{const s=o>0?((i.value||0)/o*100).toFixed(1):"0.0";a+=`<div style="display:flex;align-items:center;gap:4px;">
2
2
  <span style="display:inline-block;width:10px;height:10px;border-radius:2px;background:${i.color};"></span>
3
3
  ${i.seriesName}: ${s}%
4
4
  </div>`}),a},textStyle:{align:"left",fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!1},legend:{show:!0,data:this.props.conf.data.map(e=>e.name),right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},xAxis:[{type:"category",data:this.getXAxisData(),axisTick:{alignWithLabel:!0},axisLine:{lineStyle:{color:t.textColor}},axisLabel:{formatter:e=>{if(!/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(e))return e;const[a,o]=e.split(" ");return`${a}
@@ -10,10 +10,10 @@ var P = (p, a, d) => a in p ? W(p, a, { enumerable: !0, configurable: !0, writab
10
10
  M.call(a, d) && P(p, d, a[d]);
11
11
  return p;
12
12
  }, _ = (p, a) => V(p, R(a));
13
- import { defineComponent as H, onMounted as q, onUnmounted as G, computed as K, openBlock as J, createElementBlock as Q, normalizeStyle as T, unref as F, createElementVNode as O, toDisplayString as Y, renderSlot as Z } from "vue";
14
- import { D as tt, l as et, u as it, n as ot, C as B, o as st, s as I, q as at, _ as nt } from "./index-BHBE19E2.js";
13
+ import { defineComponent as H, onMounted as q, onUnmounted as G, computed as K, openBlock as J, createElementBlock as Q, normalizeStyle as T, unref as v, createElementVNode as O, toDisplayString as Y, renderSlot as Z } from "vue";
14
+ import { D as tt, o as et, u as it, q as ot, C as B, s as st, t as I, v as at, _ as nt } from "./index-CCWU_se2.js";
15
15
  import "element-plus";
16
- import { E as rt } from "./EChartComponentBase-BtAW2Yko.js";
16
+ import { E as rt } from "./EChartComponentBase-DUyyaXgA.js";
17
17
  import { g as lt } from "./titleStyle-BT5GlpAb.js";
18
18
  import { u as ct, i as dt, a as ht } from "./installCanvasRenderer-oDYkyVFy.js";
19
19
  import { i as pt } from "./install-DdM8j5Ll.js";
@@ -55,7 +55,7 @@ const gt = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%20
55
55
  titleBorderWidth: 1,
56
56
  titlePaddingH: 8,
57
57
  titlePaddingV: 4
58
- }, Ft = [
58
+ }, vt = [
59
59
  {
60
60
  name: "参数一",
61
61
  fv: "",
@@ -72,7 +72,7 @@ const gt = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%20
72
72
  periodUnit: "near-hour",
73
73
  periodValue: 1
74
74
  }
75
- ], vt = [
75
+ ], Ft = [
76
76
  "name",
77
77
  "fv",
78
78
  "object_id",
@@ -92,8 +92,8 @@ const gt = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%20
92
92
  }, _t = {
93
93
  DEFAULT: bt,
94
94
  OPTIONS: Ct,
95
- DATA: Ft,
96
- PARAMS: vt,
95
+ DATA: vt,
96
+ PARAMS: Ft,
97
97
  SOURCE: wt,
98
98
  COMMON: At
99
99
  }, Ot = /* @__PURE__ */ H(_(A({}, _t), {
@@ -255,10 +255,10 @@ ${o}`;
255
255
  if (e.forEach((l, f) => {
256
256
  const m = this.extractDataValue(t, l.fv);
257
257
  if (["statistics", "calculate"].includes(o) && l.periodUnit && !String(l.periodUnit).startsWith("near") && !String(l.periodUnit).startsWith("last")) {
258
- const v = I(
258
+ const F = I(
259
259
  t.start_time,
260
260
  l.periodUnit
261
- ), C = v ? i.xAxis[0].data.indexOf(v) : -1;
261
+ ), C = F ? i.xAxis[0].data.indexOf(F) : -1;
262
262
  C >= 0 && (i.series[f].data[C] = m);
263
263
  return;
264
264
  }
@@ -294,13 +294,13 @@ ${o}`;
294
294
  t.forEach((S, x) => {
295
295
  var C;
296
296
  if (!e.series[x]) return;
297
- const l = o[x], f = (l == null ? void 0 : l.periodUnit) || ((C = o[0]) == null ? void 0 : C.periodUnit), m = new Array(s.length).fill(null), y = S.time || [], v = S.data || [];
297
+ const l = o[x], f = (l == null ? void 0 : l.periodUnit) || ((C = o[0]) == null ? void 0 : C.periodUnit), m = new Array(s.length).fill(null), y = S.time || [], F = S.data || [];
298
298
  for (let w = 0; w < y.length; w++) {
299
299
  const k = I(
300
300
  y[w],
301
301
  String(f || "")
302
302
  ), U = k ? s.indexOf(k) : -1;
303
- U >= 0 && (m[U] = i(v[w]));
303
+ U >= 0 && (m[U] = i(F[w]));
304
304
  }
305
305
  r.push(m);
306
306
  });
@@ -347,18 +347,18 @@ ${o}`;
347
347
  return (b, t) => (J(), Q("div", {
348
348
  class: "mix-component",
349
349
  style: T({
350
- background: F(E).bgColor,
351
- borderRadius: `${F(E).radiusSize}px`
350
+ background: v(E).bgColor,
351
+ borderRadius: `${v(E).radiusSize}px`
352
352
  })
353
353
  }, [
354
354
  O("div", {
355
355
  class: "mix-title",
356
356
  style: T(j.value)
357
- }, Y(F(L).caption || F(L).name), 5),
357
+ }, Y(v(L).caption || v(L).name), 5),
358
358
  O("div", yt, [
359
359
  O("div", {
360
360
  class: "w-full h-full",
361
- id: F(z)
361
+ id: v(z)
362
362
  }, null, 8, St)
363
363
  ]),
364
364
  Z(b.$slots, "default", {}, void 0, !0)
@@ -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-qzL33ZSL.js";
35
- import { a as y, u as Le, r as Me, _ as Se } from "./index-BHBE19E2.js";
34
+ import { B as Re } from "./BaseComponent-D82kw5vB.js";
35
+ import { a as y, u as Le, n as Me, _ as Se } from "./index-CCWU_se2.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-BHUHnLj-.cjs"),y=require("./index-D7PZNHF4.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-DoQ1oLoA.cjs"),y=require("./index-BdWR_FTA.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;
@@ -11,9 +11,9 @@ var O = (l, a, r) => a in l ? k(l, a, { enumerable: !0, configurable: !0, writab
11
11
  return l;
12
12
  }, d = (l, a) => E(l, $(a));
13
13
  import { defineComponent as z, computed as R, openBlock as j, createElementBlock as I, normalizeStyle as _, unref as m, createElementVNode as b, toDisplayString as N, renderSlot as D } from "vue";
14
- import { l as T, C as P, _ as H } from "./index-BHBE19E2.js";
14
+ import { o as T, C as P, _ as H } from "./index-CCWU_se2.js";
15
15
  import "element-plus";
16
- import { E as M } from "./EChartComponentBase-BtAW2Yko.js";
16
+ import { E as M } from "./EChartComponentBase-DUyyaXgA.js";
17
17
  import { g as F } from "./titleStyle-BT5GlpAb.js";
18
18
  import { A as U, D as W } from "./ele-pie-icon-RPfHJxqp.js";
19
19
  import { u as G, i as K, a as X } from "./installCanvasRenderer-oDYkyVFy.js";