mixdashboards 1.0.71 → 1.0.73

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 (470) hide show
  1. package/dist/{BaseComponent-D5tlYehc.js → BaseComponent-CBagahPU.js} +138 -109
  2. package/dist/BaseComponent-Chnv4fBT.cjs +1 -0
  3. package/dist/{EChartComponentBase-CAabYXSj.js → EChartComponentBase-cFfawl6h.js} +2 -2
  4. package/dist/{EChartComponentBase-D4wMej9X.cjs → EChartComponentBase-dLE5F7Tt.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-Th4ZNdCb.js → EmergencyPlanPanel--jTGG89o.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-D96XjhRq.cjs → EmergencyPlanPanel-BJb-Bbxh.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-rn2Bp0Gx.cjs → HistoryPlanDialog-C-QPdV4V.cjs} +1 -1
  8. package/dist/{HistoryPlanDialog-D2mQLhkO.js → HistoryPlanDialog-DerClU2U.js} +1 -1
  9. package/dist/{MonitoringMap-BZ98NYTJ.cjs → MonitoringMap-B6RMbiIS.cjs} +1 -1
  10. package/dist/{MonitoringMap-Coozb35G.js → MonitoringMap-CNaGsq83.js} +2 -2
  11. package/dist/UniverSheet-CM-vvc23.cjs +1 -0
  12. package/dist/{UniverSheet-CJCunVAM.js → UniverSheet-KI09RqKm.js} +16 -15
  13. package/dist/{accelerationChart-DacjcSHD.js → accelerationChart-D7KNk5fI.js} +61 -59
  14. package/dist/accelerationChart-HBCb2bRW.cjs +6 -0
  15. package/dist/{actionItem-d-4p5HZK.js → actionItem-BmNYzAXu.js} +48 -41
  16. package/dist/actionItem-Bx4mW0jP.cjs +1 -0
  17. package/dist/alarmLevelChart-Cvnw4z1w.cjs +2 -0
  18. package/dist/{alarmLevelChart-DddN1NVy.js → alarmLevelChart-DdSw2s7W.js} +91 -46
  19. package/dist/{alertTable-Q-Waa5jf.js → alertTable-CC3c8DFb.js} +40 -39
  20. package/dist/alertTable-hH6HA9pY.cjs +1 -0
  21. package/dist/aliasObjectSelectorDemo-C7E_fnCf.cjs +1 -0
  22. package/dist/{aliasObjectSelectorDemo-BZygQw9k.js → aliasObjectSelectorDemo-yDiavTpG.js} +11 -10
  23. package/dist/{annualRainfallChart-CthANCvn.js → annualRainfallChart-B9ar8vo8.js} +32 -30
  24. package/dist/annualRainfallChart-C6JLSPIf.cjs +1 -0
  25. package/dist/{aqi-C_HnKsjh.js → aqi-BNc5QCM3.js} +21 -19
  26. package/dist/{aqi-BFW_8xYd.cjs → aqi-DEiCVIVa.cjs} +3 -3
  27. package/dist/aqiIndass-Bowic_Pc.cjs +3 -0
  28. package/dist/{aqiIndass-NVRa3lmj.js → aqiIndass-CAGV8_Uf.js} +41 -40
  29. package/dist/{areaDeformCurve-mQiOHdtN.js → areaDeformCurve-CSpR060t.js} +51 -49
  30. package/dist/areaDeformCurve-CVy23kV2.cjs +1 -0
  31. package/dist/arrayCard-NqoQKcE9.cjs +1 -0
  32. package/dist/{arrayCard-DZitcjMs.js → arrayCard-PPDb7U6X.js} +29 -28
  33. package/dist/{audio-CDAMVEgC.js → audio-BJPFIQIr.js} +42 -41
  34. package/dist/audio-Bw-GaYe1.cjs +1 -0
  35. package/dist/{bar--JrlRud9.js → bar-C38h_mUA.js} +72 -70
  36. package/dist/{bar-C7uQADV1.cjs → bar-Cru6WosS.cjs} +2 -2
  37. package/dist/bmp-BXaEkkpa.cjs +1 -0
  38. package/dist/{bmp-DrVcnYxy.js → bmp-BnSOaFEr.js} +15 -14
  39. package/dist/box-CKuGsh2k.cjs +1 -0
  40. package/dist/{box-szcLhted.js → box-DIHVOqrV.js} +58 -57
  41. package/dist/chartConfigPanel-BVdVXbs6.cjs +1 -0
  42. package/dist/{chartConfigPanel-C32o1gyJ.js → chartConfigPanel-D1rO6SGh.js} +86 -79
  43. package/dist/{circleBar-CeL2rqMJ.cjs → circleBar-BzXqA-Cz.cjs} +3 -3
  44. package/dist/{circleBar-BmTjsLHo.js → circleBar-CBLcp4Xi.js} +27 -25
  45. package/dist/{clock-CuQpD76K.js → clock-4AMfFDGC.js} +35 -34
  46. package/dist/clock-DmWyBpo-.cjs +1 -0
  47. package/dist/clt-CmPPtp9c.cjs +1 -0
  48. package/dist/{clt-XCswxZ6i.js → clt-D5i_8-pq.js} +60 -59
  49. package/dist/cmc-8jH3DGv9.cjs +1 -0
  50. package/dist/{cmc-CXmAv6fz.js → cmc-Cjb5w3om.js} +23 -22
  51. package/dist/{cmp-Duz_v-LC.js → cmp-COJzlQPa.js} +19 -18
  52. package/dist/{cmp-DmpxjexT.cjs → cmp-CpmGtNal.cjs} +2 -2
  53. package/dist/{composite-CWgy-w61.js → composite-CsFgfxih.js} +37 -36
  54. package/dist/{composite-DdHASMFQ.cjs → composite-DLmzZNIj.cjs} +3 -3
  55. package/dist/{conclusionCard-BtB0rARK.js → conclusionCard-BQUlLFde.js} +15 -14
  56. package/dist/conclusionCard-C-TT6znN.cjs +1 -0
  57. package/dist/{controlList-C0AQ8Yb8.js → controlList-5D5UIDQL.js} +40 -38
  58. package/dist/controlList-CIwzKylK.cjs +1 -0
  59. package/dist/{controlRecordList-CSPKG1HU.js → controlRecordList-Cp5mmEQ1.js} +55 -53
  60. package/dist/controlRecordList-uEQ3ohmB.cjs +1 -0
  61. package/dist/controlRecordListAPP-B5d4x_xH.cjs +1 -0
  62. package/dist/controlRecordListAPP-p_skbQVD.js +502 -0
  63. package/dist/{crd-DQruf9o3.js → crd-8gRWMf2Y.js} +14 -13
  64. package/dist/crd-Dfl2XKAx.cjs +1 -0
  65. package/dist/{ctrBtn-jEWTt_f2.js → ctrBtn-BzmFxucy.js} +106 -107
  66. package/dist/ctrBtn-OOgL9esv.cjs +1 -0
  67. package/dist/{ctrSet-C4wCODMY.js → ctrSet-Btg2T9w6.js} +24 -23
  68. package/dist/ctrSet-CifyJt05.cjs +1 -0
  69. package/dist/ctrSwitch-6nMHbIE7.js +206 -0
  70. package/dist/ctrSwitch-C8mwxLPe.cjs +1 -0
  71. package/dist/{dataManagement-BQVZS7Hi.js → dataManagement-BZiSmktM.js} +52 -45
  72. package/dist/dataManagement-sQpuBaDz.cjs +1 -0
  73. package/dist/{dataReport-vP1LBJjE.js → dataReport-CbJzXeCE.js} +25 -24
  74. package/dist/{dataReport-DRopth3A.cjs → dataReport-D9Q9c43B.cjs} +2 -2
  75. package/dist/{dataTable-C2AgSR36.cjs → dataTable-BJ4SVFbu.cjs} +1 -1
  76. package/dist/{dataTable-B1FQ3XIq.js → dataTable-BuBB0b-A.js} +1 -1
  77. package/dist/datetime-B66VgJL1.cjs +1 -0
  78. package/dist/{datetime-DU3rzi1v.js → datetime-DO03QrXz.js} +25 -24
  79. package/dist/deepClusterSlipSurface-BqT55vkY.cjs +1 -0
  80. package/dist/{deepClusterSlipSurface-BHwB0eu9.js → deepClusterSlipSurface-DpSAXgFf.js} +45 -43
  81. package/dist/{deepDataMatrix-C3uKZmon.js → deepDataMatrix-CPrIOv5r.js} +46 -45
  82. package/dist/deepDataMatrix-DZZaTMbD.cjs +1 -0
  83. package/dist/{deepDisplacement3D-BBYgB-rK.cjs → deepDisplacement3D-Cd9nwwPt.cjs} +3 -3
  84. package/dist/{deepDisplacement3D-CDNPul6D.js → deepDisplacement3D-JlMej7-5.js} +9 -7
  85. package/dist/{deepDisplacementChart-C_pwwgIC.js → deepDisplacementChart-BiDt60xI.js} +89 -88
  86. package/dist/deepDisplacementChart-CALM3gna.cjs +5 -0
  87. package/dist/deepDisplacementChart-CEaj2bUV.cjs +6 -0
  88. package/dist/{deepDisplacementChart-C6GQHO-J.js → deepDisplacementChart-CjlGpeHj.js} +54 -52
  89. package/dist/{deepDisplacementView-C837RNer.js → deepDisplacementView-BpUw-b-i.js} +37 -36
  90. package/dist/deepDisplacementView-CoSNzN1q.cjs +8 -0
  91. package/dist/deepNodeTemperatureChart-DPN0rYir.cjs +1 -0
  92. package/dist/{deepNodeTemperatureChart-BcH3ZNi4.js → deepNodeTemperatureChart-DfZq7kLx.js} +50 -48
  93. package/dist/{deepTangentAngleChart-DSpCyIdq.js → deepTangentAngleChart-Ca01hah9.js} +92 -90
  94. package/dist/deepTangentAngleChart-Dg9PJspK.cjs +1 -0
  95. package/dist/deepTemperatureField-BqDB97SW.cjs +1 -0
  96. package/dist/{deepTemperatureField-B2qIHL1-.js → deepTemperatureField-CYBTjhEp.js} +95 -93
  97. package/dist/deepTrendChart-B5BAHTeY.cjs +1 -0
  98. package/dist/{deepTrendChart-DFGSV17a.js → deepTrendChart-DBjxV7_A.js} +56 -54
  99. package/dist/{deviceOnlineStatus-CiIFdo9I.js → deviceOnlineStatus-1eoHCl_-.js} +58 -50
  100. package/dist/deviceOnlineStatus-DHzaAzCp.cjs +2 -0
  101. package/dist/deviceStatus-4BMy4qBD.cjs +1 -0
  102. package/dist/{deviceStatus-Dd1pqVnO.js → deviceStatus-90rQa1uj.js} +61 -60
  103. package/dist/{displacementDataTable-CGIHGxye.js → displacementDataTable-BArwj-xp.js} +52 -51
  104. package/dist/displacementDataTable-BLWjiaRQ.cjs +1 -0
  105. package/dist/{displacementTrajectoryChart-RL97CTML.js → displacementTrajectoryChart-CxOPJVlD.js} +34 -32
  106. package/dist/displacementTrajectoryChart-DfJMOCFJ.cjs +22 -0
  107. package/dist/{displacementTrendChart-Bqnv7hiP.js → displacementTrendChart-4E6cDsX8.js} +49 -48
  108. package/dist/displacementTrendChart-Cuxa5iTp.cjs +5 -0
  109. package/dist/{dxf-BQoArgPS.cjs → dxf-BgklkksV.cjs} +1 -1
  110. package/dist/{dxf-DBu1iA-r.js → dxf-BogwbJID.js} +5 -4
  111. package/dist/{dzc-DMVPjosV.cjs → dzc-CApfzriC.cjs} +2 -2
  112. package/dist/{dzc-7tLxe18d.js → dzc-D7tTBLaA.js} +24 -22
  113. package/dist/emergencyPlan-BuFz4XFc.cjs +1 -0
  114. package/dist/{emergencyPlan-C9Edkw51.js → emergencyPlan-CjbuX-N5.js} +19 -18
  115. package/dist/evn-BcSenXF3.cjs +1 -0
  116. package/dist/{evn-CeLoYCUr.js → evn-DTPm72ZM.js} +23 -22
  117. package/dist/evolutionChart-CrwR8i40.cjs +1 -0
  118. package/dist/{evolutionChart-DAlncdLU.js → evolutionChart-D1dVKWOt.js} +25 -23
  119. package/dist/{fileViewer-BFMFEN2f.js → fileViewer-BNHwlZRa.js} +57 -56
  120. package/dist/fileViewer-BUuST3Rp.cjs +1 -0
  121. package/dist/filterBar-BJzjPFFg.cjs +1 -0
  122. package/dist/{filterBar-qJJKdxYE.js → filterBar-CRJinh5K.js} +44 -43
  123. package/dist/fireCombustionCurve-BGdJ1ybj.cjs +1 -0
  124. package/dist/{fireCombustionCurve-DyRikhHw.js → fireCombustionCurve-BZ6qJ1kq.js} +69 -67
  125. package/dist/fireFilterBar-DZejT0oL.cjs +1 -0
  126. package/dist/{fireFilterBar-DkjBGPXa.js → fireFilterBar-KvvbsCsZ.js} +25 -24
  127. package/dist/{fireHistoryTable-ldXil5up.js → fireHistoryTable-80ygqnOG.js} +73 -65
  128. package/dist/fireHistoryTable-CMSGKb3w.cjs +3 -0
  129. package/dist/gag-1bvAZ5m6.cjs +1 -0
  130. package/dist/{gag-KZfFHn72.js → gag-D2obj7AF.js} +30 -28
  131. package/dist/{gasStationList-Btoo_olJ.js → gasStationList-DM-laJsi.js} +527 -526
  132. package/dist/gasStationList-DjJtXnqL.cjs +1 -0
  133. package/dist/{geo3dViewer-Cif9uFqd.cjs → geo3dViewer-CL_89mQf.cjs} +1 -1
  134. package/dist/{geo3dViewer-iZhkCiTP.js → geo3dViewer-FhmMIvMJ.js} +12 -5
  135. package/dist/{glbModel-MJZgDSJf.js → glbModel-B0nWYYJQ.js} +19 -18
  136. package/dist/{glbModel-2xydaxDT.cjs → glbModel-DakMJal6.cjs} +3 -3
  137. package/dist/{globalObjectSelector-CHtYGpi9.js → globalObjectSelector-Gv4srHhp.js} +79 -78
  138. package/dist/globalObjectSelector-jNzZxdnL.cjs +1 -0
  139. package/dist/{gnssFilterBar-CPis6bUI.js → gnssFilterBar-C4rpyNw3.js} +70 -63
  140. package/dist/gnssFilterBar-kEIW7Tjs.cjs +1 -0
  141. package/dist/{gnssHistoryTable-kHZY48EZ.js → gnssHistoryTable-CyMwQJ7_.js} +58 -50
  142. package/dist/gnssHistoryTable-DRKlP8-b.cjs +3 -0
  143. package/dist/{gnssMapView-BNIkieqL.cjs → gnssMapView-DpExCi0x.cjs} +4 -4
  144. package/dist/{gnssMapView-DXP8yz0v.js → gnssMapView-EVufCGrW.js} +174 -167
  145. package/dist/{gnssSectionProfile-DEUDEvJ1.js → gnssSectionProfile-CaJwF9wp.js} +41 -34
  146. package/dist/gnssSectionProfile-DdcOMdNC.cjs +1 -0
  147. package/dist/{gnssTimeSeriesChart-C_xqd0su.js → gnssTimeSeriesChart-iffDvMNx.js} +57 -49
  148. package/dist/gnssTimeSeriesChart-y11Y8k2-.cjs +1 -0
  149. package/dist/{gnssXYTrajectory-GqgFw_qK.js → gnssXYTrajectory-C_1fuLWn.js} +53 -45
  150. package/dist/gnssXYTrajectory-DGBGGDwi.cjs +5 -0
  151. package/dist/grd-C4hCrpvH.cjs +1 -0
  152. package/dist/{grd-QCuVN1jE.js → grd-FfuMQJb7.js} +43 -42
  153. package/dist/{grdIndass-BEcfZTYw.js → grdIndass-BTbZmPLZ.js} +30 -29
  154. package/dist/grdIndass-CyuRKD5H.cjs +1 -0
  155. package/dist/{grg-CMVrF5tB.js → grg-CcnI5kRY.js} +27 -26
  156. package/dist/grg-Cuxa17d6.cjs +1 -0
  157. package/dist/gridview-CKjBuTRq.cjs +1 -0
  158. package/dist/{gridview-Cd3Tqzph.js → gridview-ffVc5Wvg.js} +32 -31
  159. package/dist/groundwaterFilterBar-D3l7GLVY.cjs +1 -0
  160. package/dist/{groundwaterFilterBar-D7lrbzDC.js → groundwaterFilterBar-DaPR-kbl.js} +13 -12
  161. package/dist/groundwaterProfileChart-BxJKIPXF.cjs +11 -0
  162. package/dist/{groundwaterProfileChart-Bjtqz-Zv.js → groundwaterProfileChart-DoSx7WWp.js} +42 -40
  163. package/dist/groundwaterTimeCurve-Bp5MxM9k.cjs +1 -0
  164. package/dist/{groundwaterTimeCurve-Bu6vgAaC.js → groundwaterTimeCurve-D-SdVYeq.js} +57 -55
  165. package/dist/{groupCard-CPvAsuPb.cjs → groupCard-BzUQ8xY0.cjs} +1 -1
  166. package/dist/{groupCard-DQvEe6cc.js → groupCard-COMEkzIb.js} +29 -28
  167. package/dist/headerBar-iFe0YQKE.cjs +1 -0
  168. package/dist/{headerBar-CGOtSvFn.js → headerBar-ouXO8bzC.js} +48 -47
  169. package/dist/{history-D6C3tSut.js → history-BZ869y2d.js} +18 -18
  170. package/dist/{history-9ToM-rJ6.cjs → history-MxYUUwkm.cjs} +1 -1
  171. package/dist/index-DVqMfQVc.cjs +612 -0
  172. package/dist/{index-Bdq33405.js → index-DwPJu6XM.js} +1159 -1128
  173. package/dist/{insarDeformChart-Ls-cdqaP.js → insarDeformChart-5BhCUq8L.js} +24 -17
  174. package/dist/insarDeformChart-Ca3AMsBk.cjs +1 -0
  175. package/dist/{insarImageViewer-Dnke9JDG.js → insarImageViewer-DHNxmLpa.js} +41 -34
  176. package/dist/insarImageViewer-DWPsoHz6.cjs +1 -0
  177. package/dist/{kds-B4BKGG0r.js → kds-BYZC4pIM.js} +57 -50
  178. package/dist/{kds-BjX5tXhF.cjs → kds-Dpf_3WWj.cjs} +2 -2
  179. package/dist/{kpiCard-C77vHJ_E.js → kpiCard-CStPtl-c.js} +5 -4
  180. package/dist/kpiCard-OLJgA48-.cjs +2 -0
  181. package/dist/{landslideMap-BEkbnCqP.js → landslideMap-BUq0x7rd.js} +34 -33
  182. package/dist/landslideMap-JTdoQjW-.cjs +1 -0
  183. package/dist/{landslideWarning-C5upI2cf.js → landslideWarning-VAn9XGUj.js} +55 -54
  184. package/dist/landslideWarning-ZA5LCsIr.cjs +1 -0
  185. package/dist/{layerTabs-DoGw1Jfv.js → layerTabs-CAJ6f-2W.js} +40 -38
  186. package/dist/layerTabs-CdhowHB1.cjs +1 -0
  187. package/dist/{leaflet-src-BUWIqhPn.cjs → leaflet-src-CxFQ_Cn7.cjs} +1 -1
  188. package/dist/{leaflet-src-DFE_g2gF.js → leaflet-src-DNO2-OsP.js} +1 -1
  189. package/dist/{lerc-CXc9KSRL.js → lerc-bF2jqjoV.js} +2 -2
  190. package/dist/{lerc-BBgQP785.cjs → lerc-qU4WKXeS.cjs} +1 -1
  191. package/dist/{lin-ClO2MqZl.cjs → lin-BHI2KgyW.cjs} +2 -2
  192. package/dist/{lin-Difz8N88.js → lin-DbQw7wZw.js} +20 -18
  193. package/dist/linIndass-CIrObeZT.cjs +2 -0
  194. package/dist/{linIndass-DqXVOBh3.js → linIndass-Cd9Hjzs_.js} +31 -30
  195. package/dist/lst-BRsEe-Hq.cjs +1 -0
  196. package/dist/{lst-4RMMZZkY.js → lst-C3C2m1v_.js} +40 -39
  197. package/dist/{manualEntry-B3_4Z-Lj.js → manualEntry-B8TDMcDg.js} +29 -22
  198. package/dist/manualEntry-C3_WtYz8.cjs +1 -0
  199. package/dist/{mapBackground-B3OHQsXZ.js → mapBackground-BrVIQUcT.js} +21 -20
  200. package/dist/{mapBackground-Bmt-oZt6.cjs → mapBackground-Du7R_ICY.cjs} +2 -2
  201. package/dist/{mappingList-DVj7H206.js → mappingList-BpJUawmv.js} +22 -20
  202. package/dist/mappingList-C5OZ8oUx.cjs +1 -0
  203. package/dist/{markdownViewer-fheM5uV4.js → markdownViewer-CoRrvdY7.js} +16 -15
  204. package/dist/{markdownViewer-BAuNEWRt.cjs → markdownViewer-D96bwxEt.cjs} +2 -2
  205. package/dist/materialFileUrl-CubtnHeq.js +108 -0
  206. package/dist/materialFileUrl-DfPNm265.cjs +1 -0
  207. package/dist/{mix-control-modal-BoYynGT2.cjs → mix-control-modal-DwxwW65v.cjs} +1 -1
  208. package/dist/{mix-control-modal-BBiKe4MM.js → mix-control-modal-Qg_mzyT_.js} +1 -1
  209. package/dist/{mixGrid-BUjP1qv2.js → mixGrid-CtJWul6c.js} +44 -43
  210. package/dist/mixGrid-Hj0OJjkg.cjs +1 -0
  211. package/dist/mixMap-CJzmC0IR.cjs +1 -0
  212. package/dist/{mixMap-DPIwyKuP.js → mixMap-E36SDnEa.js} +36 -35
  213. package/dist/mixModel-BMRxhvWn.cjs +3 -0
  214. package/dist/{mixModel-CIdQp4V9.js → mixModel-_McJ6OuH.js} +30 -29
  215. package/dist/{mixPie-C6OhdOCV.js → mixPie-CMOkAe9p.js} +31 -30
  216. package/dist/mixPie-MAKXeYVp.cjs +2 -0
  217. package/dist/mixdashboards.cjs +1 -1
  218. package/dist/mixdashboards.css +1 -1
  219. package/dist/mixdashboards.js +1 -1
  220. package/dist/mixiotObjectListApi-BaeBL318.js +82 -0
  221. package/dist/mixiotObjectListApi-D9OyHNQ3.cjs +1 -0
  222. package/dist/mjpegCamera-BY7pmbDc.cjs +1 -0
  223. package/dist/{mjpegCamera-Cd1vhZ5v.js → mjpegCamera-Dc4IsJA6.js} +12 -11
  224. package/dist/monitorAlert-DVNvJyTy.cjs +1 -0
  225. package/dist/{monitorAlert-DIJtH557.js → monitorAlert-F8QFOchR.js} +45 -44
  226. package/dist/monitorData-AkPbhJ9q.cjs +1 -0
  227. package/dist/{monitorData-B6jhpzVK.js → monitorData-BzqNIdrW.js} +61 -59
  228. package/dist/{monitorSpeedChart-DF5zvxs9.js → monitorSpeedChart-348U37LW.js} +22 -21
  229. package/dist/{monitorSpeedChart-EIcGs3NX.cjs → monitorSpeedChart-DVH1xihw.cjs} +2 -2
  230. package/dist/{mxa-COxjxwpC.js → mxa-CkJjCHA-.js} +29 -27
  231. package/dist/{mxa-BfwIV49n.cjs → mxa-DShU528J.cjs} +2 -2
  232. package/dist/myValue-BCeycpdO.cjs +1 -0
  233. package/dist/{myValue-Crba15Wc.js → myValue-CEfp19i2.js} +17 -16
  234. package/dist/myValueList-CAPOW8TK.cjs +1 -0
  235. package/dist/{myValueList-m2yaIcuf.js → myValueList-y3GR4AX2.js} +41 -40
  236. package/dist/objectList-4rYQk5uq.cjs +1 -0
  237. package/dist/{objectList-BwZJzrXs.js → objectList-D16yLbzD.js} +538 -599
  238. package/dist/objectListAPP-DCwTyqFp.js +1864 -0
  239. package/dist/objectListAPP-Db5beOAM.cjs +1 -0
  240. package/dist/photo-BV6rkbWO.js +811 -0
  241. package/dist/photo-D67wLRkY.cjs +1 -0
  242. package/dist/{pie-CSLVJv0Y.cjs → pie-BeRwVkTk.cjs} +2 -2
  243. package/dist/{pie-C9MU90ON.js → pie-bNKhq6ak.js} +16 -14
  244. package/dist/{placeholder-CRARTMF4.js → placeholder-_iK4rVyU.js} +26 -25
  245. package/dist/placeholder-zByzfWaH.cjs +1 -0
  246. package/dist/{pressBtn-CkYcW1a8.js → pressBtn-B-rZPXK2.js} +124 -124
  247. package/dist/pressBtn-BjqYIPC-.cjs +1 -0
  248. package/dist/processTable-ByPlSKRJ.cjs +3 -0
  249. package/dist/{processTable-BgAhGGAq.js → processTable-s_y8uups.js} +12 -11
  250. package/dist/{progressBar-BbDFps1r.cjs → progressBar-CRdA7oJT.cjs} +1 -1
  251. package/dist/{progressBar-CIPUVeaf.js → progressBar-DskxZk1P.js} +19 -18
  252. package/dist/{progressCircle-DDc5zsd6.js → progressCircle-BE_Am-AP.js} +13 -12
  253. package/dist/{progressCircle-CgkZ1EC1.cjs → progressCircle-CHe-12Hb.cjs} +1 -1
  254. package/dist/{qrcode-CQbWGVgq.cjs → qrcode-D8cFyUpL.cjs} +1 -1
  255. package/dist/{qrcode-CCu677Ad.js → qrcode-Dgth6KwU.js} +39 -38
  256. package/dist/{raceBar-CzNGSYCt.cjs → raceBar-CeybrpCB.cjs} +3 -3
  257. package/dist/{raceBar-Cn8oPhCE.js → raceBar-DV-3KFg2.js} +18 -16
  258. package/dist/rad-BerkC70H.cjs +1 -0
  259. package/dist/{rad-D_cLWeMk.js → rad-BhsfF0XI.js} +22 -20
  260. package/dist/{radarMapViewer-BaAXjsWx.js → radarMapViewer-C2dde8EN.js} +82 -81
  261. package/dist/radarMapViewer-HWzvBTzT.cjs +1 -0
  262. package/dist/{rainfallFilterBar-Bhpadat8.js → rainfallFilterBar-CiT1mvYh.js} +22 -21
  263. package/dist/rainfallFilterBar-kuAQO0M-.cjs +1 -0
  264. package/dist/rainfallTimeCurve-7uHaSkuE.cjs +1 -0
  265. package/dist/{rainfallTimeCurve-sDYapogL.js → rainfallTimeCurve-BlOnCq2M.js} +58 -56
  266. package/dist/rangeLin-BQeWFL_E.cjs +3 -0
  267. package/dist/{rangeLin-CdMOPwMP.js → rangeLin-BvKd8kEv.js} +32 -31
  268. package/dist/realtimeEvolutionMap-BUnD3JjE.cjs +1 -0
  269. package/dist/{realtimeEvolutionMap-CIH_sZ29.js → realtimeEvolutionMap-DZ6yniwl.js} +46 -44
  270. package/dist/regionBar-mMaN5NEc.cjs +3 -0
  271. package/dist/{regionBar-VB-2GpR0.js → regionBar-vp5D52Jd.js} +14 -13
  272. package/dist/{request-BHfDxLXZ.js → request-CMbwWTDF.js} +9 -9
  273. package/dist/{request-DU8pRyvu.cjs → request-DegEaaCG.cjs} +1 -1
  274. package/dist/retainer1-CF2Tr7Zt.cjs +1 -0
  275. package/dist/{retainer1-C_109Weq.js → retainer1-Xvdlh-B_.js} +17 -16
  276. package/dist/retainer2-BQVUhgcH.cjs +1 -0
  277. package/dist/{retainer2-BiHUTumr.js → retainer2-D3a-c_BA.js} +43 -42
  278. package/dist/{retainerRecordList-Cgil_g8a.js → retainerRecordList-BJbPsJ4D.js} +47 -45
  279. package/dist/retainerRecordList-Rqnoz6_6.cjs +1 -0
  280. package/dist/retainerRecordListAPP-B4IDQK3C.cjs +1 -0
  281. package/dist/retainerRecordListAPP-CNntGyA-.js +1068 -0
  282. package/dist/{ringTopN-C9AH-t3T.js → ringTopN-BFKlXqGX.js} +18 -16
  283. package/dist/ringTopN-CsouIsk1.cjs +1 -0
  284. package/dist/{riskRegionTable-Co1uxMzf.js → riskRegionTable-B6k4uM0_.js} +26 -19
  285. package/dist/riskRegionTable-DttMvHe5.cjs +1 -0
  286. package/dist/sankey-CAuBQaYh.cjs +1 -0
  287. package/dist/{sankey-Bag0ladh.js → sankey-DEQK7uU6.js} +17 -15
  288. package/dist/{scd-D9AiOiPg.js → scd-D5TicpCZ.js} +1282 -1062
  289. package/dist/scd-qaap6hGW.cjs +1 -0
  290. package/dist/{sideMenu-869HFB0p.js → sideMenu-ByyrOOYh.js} +28 -27
  291. package/dist/sideMenu-D-73DoYb.cjs +1 -0
  292. package/dist/{slopeStability-bZ0lHLjZ.js → slopeStability-BtgMH3oW.js} +44 -42
  293. package/dist/slopeStability-CTN6Kpva.cjs +1 -0
  294. package/dist/speedCurve-C5NoQCjK.cjs +1 -0
  295. package/dist/{speedCurve-DZ52XKCk.js → speedCurve-CInn7NAC.js} +43 -41
  296. package/dist/staticLine-BC-zj5yZ.cjs +1 -0
  297. package/dist/{staticLine-CyPnmKCh.js → staticLine-CLqN4lpU.js} +51 -50
  298. package/dist/stressFilterBar-Cpfbmllu.cjs +1 -0
  299. package/dist/{stressFilterBar-BAUt2bGy.js → stressFilterBar-D_QqOHna.js} +46 -45
  300. package/dist/{stressTimeCurve-IW4ArsyA.js → stressTimeCurve-1HXHUj-F.js} +64 -62
  301. package/dist/stressTimeCurve-Bp6Cevk1.cjs +1 -0
  302. package/dist/{swiper-BPS9C2GV.cjs → swiper-B8YZ2VQ2.cjs} +1 -1
  303. package/dist/{swiper-RM0GoZkW.js → swiper-D_y4Fj_D.js} +25 -24
  304. package/dist/terminalConfigList-B39cEptG.cjs +1 -0
  305. package/dist/{terminalConfigList-n7NE5NdJ.js → terminalConfigList-CHbA4y-S.js} +38 -36
  306. package/dist/terminalList-Vf-Dbybr.cjs +1 -0
  307. package/dist/{terminalList-Byb4eLcD.js → terminalList-oJFrGVtT.js} +38 -36
  308. package/dist/terminalListAPP-CdBG8krw.cjs +1 -0
  309. package/dist/terminalListAPP-DWArp2D4.js +1366 -0
  310. package/dist/{textbox-DM1AUWw8.js → textbox-D8nmoGjG.js} +13 -12
  311. package/dist/textbox-DPoyxB4u.cjs +1 -0
  312. package/dist/{timeQueryBar-Tbd9M8UT.js → timeQueryBar-DyC0iHq9.js} +21 -20
  313. package/dist/timeQueryBar-uUGotoTx.cjs +1 -0
  314. package/dist/{timeSeries-DCV2YjC2.cjs → timeSeries-BhlqgEOq.cjs} +2 -2
  315. package/dist/{timeSeries-CdpEx6bf.js → timeSeries-U91gMDDQ.js} +66 -64
  316. package/dist/timeSeriesCurve-CiRMnZRD.cjs +1 -0
  317. package/dist/{timeSeriesCurve-C1AmF6TP.js → timeSeriesCurve-DOhIS88N.js} +68 -66
  318. package/dist/{toggleBtn-BGjXjIuK.cjs → toggleBtn-CuWwHFjD.cjs} +1 -1
  319. package/dist/{toggleBtn-XS9MjfKM.js → toggleBtn-DE35dkxx.js} +46 -44
  320. package/dist/trajectoryConfigPanel-DAbF8oE9.cjs +1 -0
  321. package/dist/{trajectoryConfigPanel-BC90nD1T.js → trajectoryConfigPanel-Ye7NY6rd.js} +35 -34
  322. package/dist/{trajectoryScatter-DF_ESBn8.js → trajectoryScatter-DL7HUNJI.js} +47 -45
  323. package/dist/trajectoryScatter-Dg99HzM3.cjs +1 -0
  324. package/dist/universalConfigPanel-1svBCvD9.cjs +1 -0
  325. package/dist/{universalConfigPanel-DjNTwJkz.js → universalConfigPanel-CkyIDl_x.js} +50 -49
  326. package/dist/{universalTable-BY9vRraC.js → universalTable--dpnyNO2.js} +56 -54
  327. package/dist/universalTable-D8w7FQbl.cjs +2 -0
  328. package/dist/useMixiotPanelSurface-CAZgexY5.cjs +1 -0
  329. package/dist/useMixiotPanelSurface-DRl3cZvc.js +22 -0
  330. package/dist/useTableBodyHeight-CwrQvi7M.js +21 -0
  331. package/dist/useTableBodyHeight-pf87uGjw.cjs +1 -0
  332. package/dist/{video-DDvDGDql.js → video-BmMSRRa_.js} +5 -4
  333. package/dist/{video-8_Sf1uz0.cjs → video-RGIZoUn6.cjs} +2 -2
  334. package/dist/videoMonitor-Bo5T0MT_.cjs +1 -0
  335. package/dist/{videoMonitor-sce5N4Q5.js → videoMonitor-uf6tt2E6.js} +34 -33
  336. package/dist/{vlu-BKeYJtOO.js → vlu-D8l5zE_P.js} +24 -23
  337. package/dist/vlu-DEo_h1qN.cjs +1 -0
  338. package/dist/warningOverview-A5AA_vCc.cjs +1 -0
  339. package/dist/{warningOverview-CG5mwtaO.js → warningOverview-CA0PikjV.js} +31 -30
  340. package/dist/{weather-CWvAqxgX.cjs → weather-D20MGzuJ.cjs} +1 -1
  341. package/dist/{weather-BrX2a1an.js → weather-DuseqeNF.js} +19 -18
  342. package/dist/{windLin-BbbsSwuF.cjs → windLin-BU6Q87dE.cjs} +1 -1
  343. package/dist/{windLin-P4Gs2aBB.js → windLin-D8AUL_dV.js} +58 -57
  344. package/package.json +120 -120
  345. package/dist/BaseComponent-CNXUpPY1.cjs +0 -1
  346. package/dist/UniverSheet-CntkzcVZ.cjs +0 -1
  347. package/dist/accelerationChart-DLV-1mpA.cjs +0 -6
  348. package/dist/actionItem-CFxzHf4E.cjs +0 -1
  349. package/dist/alarmLevelChart-DCC6D1fH.cjs +0 -2
  350. package/dist/alertTable-BREZBeS5.cjs +0 -1
  351. package/dist/aliasObjectSelectorDemo-DunKWEkT.cjs +0 -1
  352. package/dist/annualRainfallChart-BJyoUBDn.cjs +0 -1
  353. package/dist/aqiIndass-B441j8CT.cjs +0 -3
  354. package/dist/areaDeformCurve-Dj405Jil.cjs +0 -1
  355. package/dist/arrayCard-B7zb1dFi.cjs +0 -1
  356. package/dist/audio-BfsYRWbm.cjs +0 -1
  357. package/dist/bmp-DIkLqzRN.cjs +0 -1
  358. package/dist/box-kXjrgG2u.cjs +0 -1
  359. package/dist/chartConfigPanel-DN4LMy8-.cjs +0 -1
  360. package/dist/clock-EbmFBRb-.cjs +0 -1
  361. package/dist/clt-C-9xGiKs.cjs +0 -1
  362. package/dist/cmc-CFa8Q3tu.cjs +0 -1
  363. package/dist/conclusionCard-Dlg5GWlE.cjs +0 -1
  364. package/dist/controlList-C1vhlonT.cjs +0 -1
  365. package/dist/controlRecordList-BhK7KtLR.cjs +0 -1
  366. package/dist/crd-CgxqxwKV.cjs +0 -1
  367. package/dist/ctrBtn-BSJ9c7Pt.cjs +0 -1
  368. package/dist/ctrSet-B9M4yI53.cjs +0 -1
  369. package/dist/ctrSwitch-C6dUn_qm.js +0 -206
  370. package/dist/ctrSwitch-ZvMCYKvG.cjs +0 -1
  371. package/dist/dataManagement-CNrEa_zB.cjs +0 -1
  372. package/dist/datetime-CAyDWKE8.cjs +0 -1
  373. package/dist/deepClusterSlipSurface-DzoyF6i1.cjs +0 -1
  374. package/dist/deepDataMatrix--AstWPiL.cjs +0 -1
  375. package/dist/deepDisplacementChart-BnT1ZdfR.cjs +0 -6
  376. package/dist/deepDisplacementChart-DOPij7KP.cjs +0 -5
  377. package/dist/deepDisplacementView-u1IPcbxN.cjs +0 -8
  378. package/dist/deepNodeTemperatureChart-CD3JbqkA.cjs +0 -1
  379. package/dist/deepTangentAngleChart-BCAauuDY.cjs +0 -1
  380. package/dist/deepTemperatureField-BxuKsrtc.cjs +0 -1
  381. package/dist/deepTrendChart-6L4cCHgh.cjs +0 -1
  382. package/dist/deviceOnlineStatus-WkwzGom4.cjs +0 -2
  383. package/dist/deviceStatus-BoIv8fbr.cjs +0 -1
  384. package/dist/displacementDataTable-BwcxrsuU.cjs +0 -1
  385. package/dist/displacementTrajectoryChart-BOPIBgi5.cjs +0 -22
  386. package/dist/displacementTrendChart-CI8i0oQY.cjs +0 -5
  387. package/dist/emergencyPlan-BRFhMubg.cjs +0 -1
  388. package/dist/evn-B05d7LtF.cjs +0 -1
  389. package/dist/evolutionChart-y2mkLVwU.cjs +0 -1
  390. package/dist/fileViewer-Dy2fdABW.cjs +0 -1
  391. package/dist/filterBar-CcrUdD-O.cjs +0 -1
  392. package/dist/fireCombustionCurve-B-6MZLul.cjs +0 -1
  393. package/dist/fireFilterBar-C9b_Ohvr.cjs +0 -1
  394. package/dist/fireHistoryTable-5sG5FDCD.cjs +0 -3
  395. package/dist/gag-CDX99Ta4.cjs +0 -1
  396. package/dist/gasStationList-Dl9qawf_.cjs +0 -1
  397. package/dist/globalObjectSelector-Bz2XhgxT.cjs +0 -1
  398. package/dist/gnssFilterBar-BT19n0j_.cjs +0 -1
  399. package/dist/gnssHistoryTable-CrS2qO6S.cjs +0 -3
  400. package/dist/gnssSectionProfile-_KbP1NXU.cjs +0 -1
  401. package/dist/gnssTimeSeriesChart-BgFoXAZv.cjs +0 -1
  402. package/dist/gnssXYTrajectory-C1N3RWzp.cjs +0 -5
  403. package/dist/grd-DtDoJOOa.cjs +0 -1
  404. package/dist/grdIndass-ci3JkvGZ.cjs +0 -1
  405. package/dist/grg-C2qVuXYE.cjs +0 -1
  406. package/dist/gridview-BLAlr5uj.cjs +0 -1
  407. package/dist/groundwaterFilterBar-1E1j67JT.cjs +0 -1
  408. package/dist/groundwaterProfileChart-CS9xelz8.cjs +0 -11
  409. package/dist/groundwaterTimeCurve-DYiDLgVY.cjs +0 -1
  410. package/dist/headerBar-OwCxpc4o.cjs +0 -1
  411. package/dist/index-D8dh_6Qd.cjs +0 -612
  412. package/dist/insarDeformChart-CSQ7fc2p.cjs +0 -1
  413. package/dist/insarImageViewer-DvaRS1zr.cjs +0 -1
  414. package/dist/kpiCard-oLpk5d4m.cjs +0 -2
  415. package/dist/landslideMap-CO8o7T8J.cjs +0 -1
  416. package/dist/landslideWarning-BZXa5qTB.cjs +0 -1
  417. package/dist/layerTabs-BxRAsklw.cjs +0 -1
  418. package/dist/linIndass-Bb7UA-zk.cjs +0 -2
  419. package/dist/lst-Dri1MTDI.cjs +0 -1
  420. package/dist/manualEntry-D74dgZv8.cjs +0 -1
  421. package/dist/mappingList-CBN7ArkQ.cjs +0 -1
  422. package/dist/mixGrid-DTj2pmFW.cjs +0 -1
  423. package/dist/mixMap-B4T4R6kA.cjs +0 -1
  424. package/dist/mixModel-BzilRtjf.cjs +0 -3
  425. package/dist/mixPie-DtQm-LGp.cjs +0 -2
  426. package/dist/mjpegCamera-Lu3UHJ83.cjs +0 -1
  427. package/dist/monitorAlert-Ctt2kCxQ.cjs +0 -1
  428. package/dist/monitorData-D_tMbx_Y.cjs +0 -1
  429. package/dist/myValue-FZPOucSS.cjs +0 -1
  430. package/dist/myValueList-XIDK3ove.cjs +0 -1
  431. package/dist/objectList-BtbxHtJj.cjs +0 -1
  432. package/dist/photo-BITvEhKG.cjs +0 -1
  433. package/dist/photo-CjulDHTM.js +0 -873
  434. package/dist/placeholder-3kajeeeb.cjs +0 -1
  435. package/dist/pressBtn-pUcQtd5n.cjs +0 -1
  436. package/dist/processTable-CDulvQlu.cjs +0 -3
  437. package/dist/rad-Dk4PrnyI.cjs +0 -1
  438. package/dist/radarMapViewer-TJIPACdT.cjs +0 -1
  439. package/dist/rainfallFilterBar-Myq0MBCf.cjs +0 -1
  440. package/dist/rainfallTimeCurve-BUI-RlnG.cjs +0 -1
  441. package/dist/rangeLin-DYCZ8wVc.cjs +0 -3
  442. package/dist/realtimeEvolutionMap-BwyQdAhL.cjs +0 -1
  443. package/dist/regionBar-DsxqfirI.cjs +0 -3
  444. package/dist/retainer1-CSqjvY4k.cjs +0 -1
  445. package/dist/retainer2-Bqlwvr53.cjs +0 -1
  446. package/dist/retainerRecordList-DWZ3WDiz.cjs +0 -1
  447. package/dist/ringTopN-Bp0er_zV.cjs +0 -1
  448. package/dist/riskRegionTable-B3bzMaR_.cjs +0 -1
  449. package/dist/sankey-B4BJ4xIo.cjs +0 -1
  450. package/dist/scd-Dgd3KDpk.cjs +0 -1
  451. package/dist/sideMenu-BQ5rrGBr.cjs +0 -1
  452. package/dist/slopeStability-D96aiykf.cjs +0 -1
  453. package/dist/speedCurve-5nWqVAzz.cjs +0 -1
  454. package/dist/staticLine-DUCg-0tI.cjs +0 -1
  455. package/dist/stressFilterBar-CorWdmpQ.cjs +0 -1
  456. package/dist/stressTimeCurve-Bci50Cwv.cjs +0 -1
  457. package/dist/terminalConfigList-O881ke5o.cjs +0 -1
  458. package/dist/terminalList-C9TB2cJH.cjs +0 -1
  459. package/dist/textbox-BMWnbPvz.cjs +0 -1
  460. package/dist/timeQueryBar-C6ZheMvD.cjs +0 -1
  461. package/dist/timeSeriesCurve-DRlr5n3U.cjs +0 -1
  462. package/dist/trajectoryConfigPanel-DJ6fOeb1.cjs +0 -1
  463. package/dist/trajectoryScatter-C7kfSkyS.cjs +0 -1
  464. package/dist/universalConfigPanel-PO1hdgjw.cjs +0 -1
  465. package/dist/universalTable-QAb6UKCq.cjs +0 -2
  466. package/dist/useMixiotPanelSurface-BMNrWBMF.cjs +0 -1
  467. package/dist/useMixiotPanelSurface-DlVkLttU.js +0 -40
  468. package/dist/videoMonitor-BKLD_aQs.cjs +0 -1
  469. package/dist/vlu-C0XLDKKk.cjs +0 -1
  470. package/dist/warningOverview--n7crFnZ.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";var X=Object.defineProperty,Y=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var S=(r,d,t)=>d in r?X(r,d,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[d]=t,g=(r,d)=>{for(var t in d||(d={}))J.call(d,t)&&S(r,t,d[t]);if(E)for(var t of E(d))K.call(d,t)&&S(r,t,d[t]);return r},O=(r,d)=>Y(r,H(d));var C=(r,d,t)=>new Promise((u,n)=>{var m=s=>{try{l(t.next(s))}catch(i){n(i)}},o=s=>{try{l(t.throw(s))}catch(i){n(i)}},l=s=>s.done?u(s.value):Promise.resolve(s.value).then(m,o);l((t=t.apply(r,d)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/card/style/css");require("element-plus/es/components/skeleton/style/css");require("element-plus/es/components/button/style/css");const e=require("vue"),Q=require("./BaseComponent-CNXUpPY1.cjs"),x=require("./index-D8dh_6Qd.cjs");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");const h=require("element-plus"),T=require("./ele-arrayCard-icon-QOabvV0y.cjs"),W={class:"page"},Z={class:"actions"},ee=e.defineComponent({__name:"MyValueFormPage",props:{mode:{type:String,default:"add"},model:{type:Object,default:null}},emits:["save","cancel"],setup(r,{emit:d}){const t=r,u=d,n=e.reactive({title:"",desc:""});e.watch(()=>t.model,o=>{var l,s;n.title=(l=o==null?void 0:o.title)!=null?l:"",n.desc=(s=o==null?void 0:o.desc)!=null?s:""},{immediate:!0});const m=()=>{var o,l,s;u("save",{title:((o=n.title)==null?void 0:o.toString().trim())||"未命名",desc:(s=(l=n.desc)==null?void 0:l.toString())!=null?s:""})};return(o,l)=>{const s=p.ElInput,i=p.ElFormItem,y=p.ElForm,_=p.ElButton;return e.openBlock(),e.createElementBlock("div",W,[e.createVNode(y,{"label-position":"top",model:n,class:"form"},{default:e.withCtx(()=>[e.createVNode(i,{label:"标题"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.title,"onUpdate:modelValue":l[0]||(l[0]=v=>n.title=v),placeholder:"请输入标题"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.desc,"onUpdate:modelValue":l[1]||(l[1]=v=>n.desc=v),type:"textarea",rows:3,placeholder:"请输入描述"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),e.createElementVNode("div",Z,[e.createVNode(_,{onClick:l[2]||(l[2]=v=>o.$emit("cancel"))},{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(_,{type:"primary",onClick:m},{default:e.withCtx(()=>[...l[4]||(l[4]=[e.createTextVNode("保存",-1)])]),_:1})])])}}}),A=x._export_sfc(ee,[["__scopeId","data-v-583abcf7"]]),te={class:"page"},oe={class:"actions"},ae=e.defineComponent({__name:"MyValueDetailPage",props:{item:{type:Object,default:null}},emits:["edit"],setup(r){return(d,t)=>{const u=p.ElDescriptionsItem,n=p.ElDescriptions,m=p.ElButton;return e.openBlock(),e.createElementBlock("div",te,[e.createVNode(n,{column:1,border:""},{default:e.withCtx(()=>[e.createVNode(u,{label:"标题"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString(((o=r.item)==null?void 0:o.title)||"-"),1)]}),_:1}),e.createVNode(u,{label:"描述"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString(((o=r.item)==null?void 0:o.desc)||"-"),1)]}),_:1}),e.createVNode(u,{label:"更新时间"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString(((o=r.item)==null?void 0:o.updatedAt)||"-"),1)]}),_:1})]),_:1}),e.createElementVNode("div",oe,[e.createVNode(m,{type:"primary",onClick:t[0]||(t[0]=o=>d.$emit("edit",r.item))},{default:e.withCtx(()=>[...t[1]||(t[1]=[e.createTextVNode("编辑",-1)])]),_:1})])])}}}),le=x._export_sfc(ae,[["__scopeId","data-v-d6e7f1ea"]]),ne={key:0,class:"list-toolbar"},ie=["onClick"],re={class:"item-sub"},de={key:2,class:"page-wrap"},se={key:3,class:"page-wrap"},ce={key:4,class:"page-wrap"},$={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"列表",NAME_EN:"My Value List",ORDER:2},I={bgColor:"#ffffff",radiusSize:8,borderColor:"#ebeef5",showBorder:!0,textColor:"#606266",valueColor:"#303133",itemTitleSize:13,itemValueSize:13,itemHeight:36,cardBgColor:"#ffffff",cardRadius:8,cardPaddingX:12,cardPaddingY:8,cardGap:10,showCardBorder:!0,cardBorderColor:"#f0f0f0"},M=[{title:"Item 1",fv:"",object_id:"",value:"--"},{title:"Item 2",fv:"",object_id:"",value:"--"},{title:"Item 3",fv:"",object_id:"",value:"--"},{title:"Item 4",fv:"",object_id:"",value:"--"}],z=["title","fv","object_id"],P=["mosaic"],D={source:"mosaic",multiObject:!1,hideMultiObject:!0},ue={DEFAULT:$,OPTIONS:I,DATA:M,PARAMS:z,SOURCE:P,COMMON:D},pe=e.defineComponent(O(g({},ue),{__name:"myValueList",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){const d=r,t=e.ref("list"),u=e.ref([]),n=e.ref(null),m=e.ref(!1),o=()=>{t.value="list",n.value=null};class l extends Q.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#ffffff"),radiusSize:this.getOptionValue("radiusSize",8),borderColor:this.getOptionValue("borderColor","#ebeef5"),showBorder:this.getOptionValue("showBorder",!0),textColor:this.getOptionValue("textColor","#606266"),valueColor:this.getOptionValue("valueColor","#303133"),itemTitleSize:this.getOptionValue("itemTitleSize",13),itemValueSize:this.getOptionValue("itemValueSize",13),itemHeight:this.getOptionValue("itemHeight",36),cardBgColor:this.getOptionValue("cardBgColor","#ffffff"),cardRadius:this.getOptionValue("cardRadius",8),cardPaddingX:this.getOptionValue("cardPaddingX",12),cardPaddingY:this.getOptionValue("cardPaddingY",8),cardGap:this.getOptionValue("cardGap",10),showCardBorder:this.getOptionValue("showCardBorder",!0),cardBorderColor:this.getOptionValue("cardBorderColor","#f0f0f0"),navChannel:this.getOptionValue("navChannel","myValueApp")}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),(!Array.isArray(this.props.conf.data)||this.props.conf.data.length===0)&&(this.props.conf.data=[{title:"Item 1",fv:"",object_id:"",value:"--"},{title:"Item 2",fv:"",object_id:"",value:"--"},{title:"Item 3",fv:"",object_id:"",value:"--"},{title:"Item 4",fv:"",object_id:"",value:"--"}])}}const s=new l(d,"myValueList");s.setupLifecycle();const i=s.getStyle(),y=()=>{var a;return((a=i.value)==null?void 0:a.navChannel)||"myValueApp"},_=()=>{const a=t.value,c=a==="list"?"列表":a==="add"?"新增":a==="edit"?"编辑":"详情";window.dispatchEvent(new CustomEvent("mix-myvalue-nav:update",{detail:{channel:y(),title:c,showBack:a!=="list"}}))},v=a=>{((a==null?void 0:a.detail)||{}).channel===y()&&t.value!=="list"&&o()};e.watch(t,()=>_()),e.onMounted(()=>{window.addEventListener("mix-myvalue-nav:back",v),_()}),e.onBeforeUnmount(()=>{window.removeEventListener("mix-myvalue-nav:back",v)});const L=()=>[{id:"1",title:"示例项 1",desc:"这是详情描述 1",updatedAt:"2026-04-08 10:00"},{id:"2",title:"示例项 2",desc:"这是详情描述 2",updatedAt:"2026-04-08 10:05"},{id:"3",title:"示例项 3",desc:"这是详情描述 3",updatedAt:"2026-04-08 10:10"}],N=()=>C(null,null,function*(){m.value=!0,yield new Promise(a=>setTimeout(a,300)),u.value=L(),m.value=!1});e.onMounted(()=>{N()});const b=()=>C(null,null,function*(){yield N()}),j=()=>{t.value="add"},w=a=>{n.value=g({},a),t.value="detail"},B=a=>{n.value=g({},a),t.value="edit"},q=a=>C(null,null,function*(){h.ElMessage.success("新增成功"),o(),yield b()}),R=a=>C(null,null,function*(){h.ElMessage.success("保存成功"),o(),yield b()}),F=a=>C(null,null,function*(){try{yield h.ElMessageBox.confirm(`确认删除「${a.title}」吗?`,"二次确认",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"})}catch(c){return}h.ElMessage.success("删除成功"),yield b()});return(a,c)=>{const V=p.ElButton,U=p.ElSkeleton,G=p.ElCard;return e.openBlock(),e.createElementBlock("div",{class:"list-container",style:e.normalizeStyle({background:e.unref(i).bgColor,borderRadius:`${e.unref(i).radiusSize}px`,border:e.unref(i).showBorder?`1px solid ${e.unref(i).borderColor}`:"none"})},[t.value==="list"?(e.openBlock(),e.createElementBlock("div",ne,[e.createVNode(V,{type:"primary",size:"small",onClick:j},{default:e.withCtx(()=>[...c[2]||(c[2]=[e.createTextVNode(" 新增 ",-1)])]),_:1})])):e.createCommentVNode("",!0),t.value==="list"?(e.openBlock(),e.createElementBlock("div",{key:1,class:"list-body",style:e.normalizeStyle({gap:`${e.unref(i).cardGap}px`})},[m.value?(e.openBlock(),e.createBlock(U,{key:0,rows:4,animated:""})):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(u.value,f=>(e.openBlock(),e.createBlock(G,{key:f.id,class:"list-card",shadow:"never",style:e.normalizeStyle({background:e.unref(i).cardBgColor,borderRadius:`${e.unref(i).cardRadius}px`,border:e.unref(i).showCardBorder?`1px solid ${e.unref(i).cardBorderColor}`:"none"}),"body-style":{padding:`${e.unref(i).cardPaddingY}px ${e.unref(i).cardPaddingX}px`}},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"card-content",onClick:k=>w(f)},[e.createElementVNode("div",{class:"item-title",style:e.normalizeStyle({color:e.unref(i).textColor,fontSize:`${e.unref(i).itemTitleSize}px`})},e.toDisplayString(f.title),5),e.createElementVNode("div",re,e.toDisplayString(f.updatedAt),1)],8,ie),e.createElementVNode("div",{class:"card-actions",onClick:c[0]||(c[0]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(V,{size:"small",onClick:k=>B(f)},{default:e.withCtx(()=>[...c[3]||(c[3]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"]),e.createVNode(V,{size:"small",onClick:k=>w(f)},{default:e.withCtx(()=>[...c[4]||(c[4]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"]),e.createVNode(V,{size:"small",type:"danger",onClick:k=>F(f)},{default:e.withCtx(()=>[...c[5]||(c[5]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])])]),_:2},1032,["style","body-style"]))),128))],4)):t.value==="add"?(e.openBlock(),e.createElementBlock("div",de,[e.createVNode(A,{mode:"add",onSave:q,onCancel:o})])):t.value==="edit"?(e.openBlock(),e.createElementBlock("div",se,[e.createVNode(A,{mode:"edit",model:n.value,onSave:R,onCancel:o},null,8,["model"])])):t.value==="detail"?(e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(le,{item:n.value,onEdit:c[1]||(c[1]=f=>B(n.value))},null,8,["item"])])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),me=x._export_sfc(pe,[["__scopeId","data-v-dd7d0a8e"]]);exports.COMMON=D;exports.DATA=M;exports.DEFAULT=$;exports.OPTIONS=I;exports.PARAMS=z;exports.SOURCE=P;exports.default=me;
@@ -1 +0,0 @@
1
- "use strict";var yt=Object.defineProperty,Vt=Object.defineProperties;var ht=Object.getOwnPropertyDescriptors;var je=Object.getOwnPropertySymbols;var wt=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable;var Ue=(b,w,_)=>w in b?yt(b,w,{enumerable:!0,configurable:!0,writable:!0,value:_}):b[w]=_,L=(b,w)=>{for(var _ in w||(w={}))wt.call(w,_)&&Ue(b,_,w[_]);if(je)for(var _ of je(w))kt.call(w,_)&&Ue(b,_,w[_]);return b},ee=(b,w)=>Vt(b,ht(w));var R=(b,w,_)=>new Promise((Q,T)=>{var B=g=>{try{M(_.next(g))}catch(H){T(H)}},te=g=>{try{M(_.throw(g))}catch(H){T(H)}},M=g=>g.done?Q(g.value):Promise.resolve(g.value).then(B,te);M((_=_.apply(b,w)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/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/popover/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),Ke=require("./useMixiotPanelSurface-BMNrWBMF.cjs"),xt=require("./BaseComponent-CNXUpPY1.cjs"),h=require("./index-D8dh_6Qd.cjs"),Nt=require("./titleStyle-NSnz6cUg.cjs"),S=require("element-plus"),Ct=require("@element-plus/icons-vue"),St=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),Pe=require("./ele-lst-icon-CrxnHZ-A.cjs"),ce=[{dataKey:"detailTab_baseinfo",label:"基础信息",defaultOn:!0},{dataKey:"detailTab_monitor",label:"监控",defaultOn:!1},{dataKey:"detailTab_history",label:"历程数据",defaultOn:!1},{dataKey:"detailTab_dashboard",label:"大屏脚本",defaultOn:!1},{dataKey:"detailTab_control",label:"控制记录",defaultOn:!1},{dataKey:"detailTab_child",label:"子对象",defaultOn:!1},{dataKey:"detailTab_terminal",label:"关联终端",defaultOn:!1},{dataKey:"detailTab_fv",label:"FV列表",defaultOn:!1},{dataKey:"detailTab_statistics",label:"统计项目",defaultOn:!1},{dataKey:"detailTab_statistics_result",label:"统计结果",defaultOn:!1},{dataKey:"detailTab_calculate",label:"计算任务",defaultOn:!1},{dataKey:"detailTab_calculate_result",label:"计算结果",defaultOn:!1},{dataKey:"detailTab_collect",label:"采集项目",defaultOn:!1},{dataKey:"detailTab_collect_record",label:"采集记录",defaultOn:!1},{dataKey:"detailTab_retainer",label:"历程项目",defaultOn:!1},{dataKey:"detailTab_retainer_record",label:"历程记录",defaultOn:!1},{dataKey:"detailTab_ai",label:"AI项目",defaultOn:!1},{dataKey:"detailTab_ai_result",label:"AI结果",defaultOn:!1},{dataKey:"detailTab_adaps",label:"特征检测项目",defaultOn:!1},{dataKey:"detailTab_adaps_result",label:"特征检测结果",defaultOn:!1},{dataKey:"detailTab_indass",label:"特征指标(Indass)",defaultOn:!1},{dataKey:"detailTab_data_for_record",label:"备档文件",defaultOn:!1}];function Re(){return Object.fromEntries(ce.map(b=>[b.dataKey,b.defaultOn]))}function Bt(b){return b.replace(/^detailTab_/,"").replace(/_/g,"-")}const Tt={class:"mix-body"},Dt={class:"toolbar"},Et={class:"pagination"},At={class:"context-menu"},Ot={class:"dialog-footer"},Ft={class:"dialog-footer"},Lt={class:"view-detail-body"},jt={key:1,class:"view-detail-layout"},Ut={class:"view-detail-tabs"},Kt=["onClick"],Pt={class:"view-detail-pane"},Rt={key:0,class:"view-detail-error"},Mt={class:"mix-detail-block"},It=["src"],zt={key:1,class:"mix-detail-title-sm"},qt={key:2,class:"mix-detail-block"},$t={key:1,class:"view-detail-stub"},Ht={class:"stub-uid"},Wt={DEFAULT_ICON:Pe.DEFAULT_ICON,ACTIVE_ICON:Pe.ACTIVE_ICON,NAME_CN:"对象列表",NAME_EN:"ObjectList",ORDER:1},Jt={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}]},ue=[ee(L({name:"对象",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0},Re()),{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"}]}})],Yt=[{key:"showAddBtn",label:"添加对象按钮",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组",collapseIndentedChildren:!0,collapseExpandLabel:"展开查看详情",collapseCollapseLabel:"收起查看详情"},...ce.map(b=>({key:b.dataKey,label:b.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"}],Gt=[],Qt={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"}]},Xt=[{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}],Zt={DEFAULT:Wt,OPTIONS:Jt,DATA:ue,PARAMS:Yt,SOURCE:Gt,COMMON:Qt,COLUMNS_CONFIG:Xt},el=e.defineComponent(ee(L({},Zt),{__name:"objectList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{default:"edit"},theme:{},objectList:{default:()=>[]},code:{default:""}},setup(b){const w=h.MIDDLE_PLATFORM_URL;function _(l){return l==="get_object_list"?h.HTTP_API_URL:w}function Q(l){const t=h.action_mapping,o=l.split(".");return o.length===1?t[o[0]]:t[o[0]][o[1]]}function T(l,t={},o=!0){const a=L({},t);h.mergeMixDataPermission(l,a);const u=localStorage.getItem("globalApiUrl"),n=localStorage.getItem("globalApiToken"),y=window.location.href.includes("/preview");if(!!(u&&n&&y&&!(l==="create_object"||l==="update_object"||l==="delete_object"))){const V=Q(l),A=L({block_mapping:V.block_mapping,action:V.action},a);return h.useCounterStore().changeLoading(!o),h.apiProxy.post(A).catch(d=>{if(d.code===10018&&d.info&&d.info.includes("不存在的action和路由"))return console.warn(`[objectListApiPost] ApiProxy 不支持 action: ${V.action},回退到网关/中台服务`),a.block_mapping=V.block_mapping,a.action=V.action,h.base.post(_(V.action),a);throw d}).finally(()=>{h.useCounterStore().changeLoading(!1)})}const k=Q(l);return a.block_mapping=k.block_mapping,a.action=k.action,h.useCounterStore().changeLoading(!o),h.base.post(_(k.action),a).catch(V=>{if(h.mockManager.shouldUseMock(V))return console.warn(`⚠️ 服务不可用,使用 Mock 数据: ${k.action}`,V),h.mockManager.getMockData(k.action,a);throw V}).finally(()=>{h.useCounterStore().changeLoading(!1)})}const B=b;class te extends xt.BaseComponent{getDataBool(t,o){var u,n;const a=(n=(u=this.props.conf)==null?void 0:u.data)==null?void 0:n[0];return a&&Object.prototype.hasOwnProperty.call(a,t)&&a[t]!==void 0?!!a[t]:this.getOptionValue(t,o)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showAddBtn:this.getDataBool("showAddBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length)||this.props.conf.data.length===1&&this.props.conf.data[0].alias_visible===void 0)this.props.conf.data=JSON.parse(JSON.stringify(ue));else{const o=this.props.conf.data[0],a={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[n,y]of Object.entries(a))o[n]===void 0&&(o[n]=y);const u=Re();for(const[n,y]of Object.entries(u))o[n]===void 0&&(o[n]=y);o.textValueTransform===void 0&&(o.textValueTransform=JSON.parse(JSON.stringify(ue[0].textValueTransform)))}}}const M=new te(B,"objectList");M.setupLifecycle();const g=M.getStyle(),{mixiotPanelClass:H,mixiotPanelRootStyle:Me}=Ke.useMixiotPanelSurface(g),{tableWrapRef:Ie,tableBodyHeight:ze}=Ke.useTableBodyHeight(),qe=e.computed(()=>Nt.generateTitleStyle(B.conf.options)),$e=e.computed(()=>{var a,u,n,y;const l=((u=(a=B.conf)==null?void 0:a.options)==null?void 0:u.columns)||[],t=((y=(n=B.conf)==null?void 0:n.data)==null?void 0:y[0])||{},o=Array.isArray(l)?l.map(c=>{const N=t[c.key],k=t[`${c.key}_visible`];return{prop:c.key,label:N!==void 0&&N!==""?N:c.label,width:c.width,visible:k!==void 0?k:c.visible}}):[];return t.addRealtimeData&&Array.isArray(t.realtimeParams)&&t.realtimeParams.forEach(c=>{c.name&&c.fv&&o.push({prop:c.fv,label:c.name,width:150,visible:!0})}),o}),x=e.reactive({current:1,pageSize:20,total:0}),W=e.ref(""),I=e.ref("name"),J=e.ref(null),le=e.ref([]),ae=e.ref(!1);function He(){I.value==="created"?W.value="":J.value=null}function We(){const l=[];if(I.value==="created"){const o=J.value;if(o&&o.length===2&&o[0]&&o[1]){const[a,u]=o;l.push(["created",">=",a<=u?a:u]),l.push(["created","<=",a<=u?u:a])}}else{const o=W.value.trim();o&&l.push([I.value,"like",`%${o}%`])}St.appendCommonDesignerWhereAnd(B.conf.common,l);const t={page_index:x.current,page_size:x.pageSize};return l.length&&(t.where_and=JSON.stringify(l)),t}function D(){return R(this,null,function*(){var l,t;ae.value=!0;try{const o=yield T("get_object_list",We(),!0),a=(l=o==null?void 0:o.result)!=null?l:o;let u=Array.isArray(a==null?void 0:a.data)?[...a.data]:Array.isArray(a)?[...a]:[];if((t=B.objectList)!=null&&t.length){const y=new Set(B.objectList.map(String));u=u.filter(c=>y.has(String(c.uid)))}le.value=u;let n=a==null?void 0:a.total_records;typeof n!="number"&&(n=Array.isArray(a)?a.length:u.length),x.total=n,o&&o.code!==void 0&&o.code!==200&&console.warn("[objectList] 列表接口非成功",o.msg||o.info,o)}catch(o){if(console.error(o),le.value=[],x.total=0,h.mockManager.isServiceUnavailableError(o))console.warn("[objectList] 对象列表服务暂不可用(如 object 未在 Consul 注册)",o);else{const a=o,u=a&&typeof a=="object"&&"isAxiosError"in a,n=a&&typeof a=="object"&&"code"in a&&("msg"in a||"info"in a);!u&&!n&&console.error("[objectList] 加载对象列表失败",o)}}finally{ae.value=!1}})}const Je=e.computed(()=>le.value);function me(l){return l===!0||l===1||l==="1"}const z=e.ref(!1),pe=e.ref(0),fe=e.ref(0),E=e.ref(null),Y=e.ref(!1),p=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:""}),be=()=>{x.current=1,D()},Ye=()=>{W.value="",J.value=null,x.current=1,D()};function Ge(){x.current=1,D()}function Qe(){D()}e.watch(()=>{var l;return(l=B.objectList)==null?void 0:l.join(",")},()=>{x.current=1,D()});const Xe=(l,t)=>{l.preventDefault(),E.value=t,pe.value=l.clientY,fe.value=l.clientX,z.value=!0},q=e.ref(!1),X=e.ref(!1),j=e.ref(""),m=e.ref(null),U=e.computed(()=>{var l,t;return((t=(l=B.conf)==null?void 0:l.data)==null?void 0:t[0])||{}}),Ze=e.computed(()=>{const l=new Set,t=U.value;if(t.addRealtimeData&&Array.isArray(t.realtimeParams))for(const o of t.realtimeParams)o!=null&&o.fv&&l.add(String(o.fv));return l}),ve=e.computed(()=>{const l=U.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)}))}),ge=e.computed(()=>{var l;return(l=U.value)==null?void 0:l.textValueTransform});function et(l){if(l==null||l==="")return!0;const t=String(l).trim();return!t||t==="未获取"}function _e(l,t){if(!t)return null;if(t.mode==="numeric"){for(const o of t.numericRules||[])if(o.matchType==="unavailable"){if(et(l))return{text:o.displayText,color:o.color}}else if(String(l)===String(o.matchValue))return{text:o.displayText,color:o.color}}else{const o=typeof l=="number"?l:parseFloat(String(l).replace(/,/g,""));if(Number.isNaN(o))return null;for(const a of t.rangeRules||[]){const u=parseFloat(String(a.boundary));if(!Number.isNaN(u)){if(a.op==="gt"&&o>u)return{text:a.displayText,color:a.color};if(a.op==="lt"&&o<u)return{text:a.displayText,color:a.color}}}}return null}function ye(l){return Ze.value.has(l)}function tt(l,t){const o=l[t.prop];if(ye(t.prop)){const a=_e(o,ge.value);if(a)return a.text}return o==null?"":String(o)}function lt(l,t){const o=l[t.prop];if(!ye(t.prop))return{};const a=_e(o,ge.value);return a!=null&&a.color?{color:a.color}:{}}const K=e.computed(()=>ce.filter(l=>U.value[l.dataKey]===!0).map(l=>ee(L({},l),{tabKey:Bt(l.dataKey)}))),$=e.ref("baseinfo"),at=e.computed(()=>{var t;const l=K.value.find(o=>o.tabKey===$.value);return(t=l==null?void 0:l.label)!=null?t:""}),ot=e.computed(()=>{try{return localStorage.getItem("sys_mode")||""}catch(l){return""}}),Ve=e.computed(()=>{var o;const l=(o=m.value)==null?void 0:o.image;if(!l||typeof l!="string")return"";if(l.startsWith("http")||l.startsWith(h.FILE_URL))return l;const t=l.startsWith("/")?l.slice(1):l;return`${h.FILE_URL}${t}`}),he=e.computed(()=>{var t;const l=(t=m.value)==null?void 0:t.tag;return Array.isArray(l)?l.map(String).filter(Boolean):typeof l=="string"&&l.trim()?l.split(/[,,]/).map(o=>o.trim()).filter(Boolean):[]}),oe=e.computed(()=>{var t;const l=(t=m.value)==null?void 0:t.addition;return Array.isArray(l)?l.filter(o=>o&&typeof o=="object"&&Array.isArray(o.data)):[]}),it=l=>`「${l}」的完整能力在 mixui 对象管理模块中提供;大屏组件内仅保留配置占位。`,we=()=>{const l=K.value;$.value=l.length?l[0].tabKey:"baseinfo"},ke=l=>R(null,null,function*(){if(z.value=!1,j.value="",m.value=null,we(),!K.value.length){q.value=!0;return}q.value=!0,X.value=!0;try{const t=yield T("get_object_item",{uid:l.uid},!0);t!=null&&t.result&&typeof t.result=="object"?m.value=t.result:m.value=L({},l),(t==null?void 0:t.code)!==void 0&&t.code!==200?j.value=t.msg||t.info||`请求失败 (${t.code})`:t!=null&&t.result||(j.value="未返回详情数据,已使用列表行暂代显示。")}catch(t){m.value=L({},l),j.value="加载详情失败,已使用列表行暂代显示。"}finally{X.value=!1}}),rt=()=>{m.value=null,j.value="",X.value=!1};e.watch(K,()=>{if(!q.value)return;new Set(K.value.map(t=>t.tabKey)).has($.value)||we()});const xe=()=>({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:""}),G=e.ref(!1),s=e.reactive(xe()),Ne=e.ref(0),ie=e.ref(!1),re=e.ref(!1),ne=e.ref(!1);function nt(l){return Array.isArray(l)?l.map(String).filter(Boolean).join(", "):typeof l=="string"?l:""}function Ce(l){return l.split(/[,,]/).map(t=>t.trim()).filter(Boolean)}function dt(l){return Array.isArray(l)?l.map(String).filter(Boolean).join(", "):typeof l=="string"?l:""}function st(l){const t=l.terminal_list;return Array.isArray(t)?t.map(String).map(o=>o.trim()).filter(Boolean):Ce(String(t!=null?t:""))}function ut(){const l=U.value;if(l.addRealtimeData&&Array.isArray(l.realtimeParams))for(const t of l.realtimeParams)t!=null&&t.fv&&Reflect.deleteProperty(s,String(t.fv));Object.assign(s,xe())}function Se(l){const t=U.value;if(!(!t.addRealtimeData||!Array.isArray(t.realtimeParams))){for(const o of t.realtimeParams)if(o!=null&&o.name&&(o!=null&&o.fv)){const a=String(o.fv),u=l[a];s[a]=u!=null?String(u):""}}}function Be(l){var t,o,a,u,n,y,c,N,k,V,A,d,F,O,P;ut(),Object.assign(s,{uid:String((t=l.uid)!=null?t:""),name:String((o=l.name)!=null?o:""),alias:String((a=l.alias)!=null?a:""),model:String((u=l.model)!=null?u:""),description:String((n=l.description)!=null?n:""),customer_id:String((y=l.customer_id)!=null?y:""),customer_name:String((c=l.customer_name)!=null?c:""),customer_alias:String((N=l.customer_alias)!=null?N:""),terminal_list:dt(l.terminal_list),mapping_id:String((k=l.mapping_id)!=null?k:""),mapping_name:String((V=l.mapping_name)!=null?V:""),tag:nt(l.tag),province:String((A=l.province)!=null?A:""),city:String((d=l.city)!=null?d:""),create_by_tpl:me(l.create_by_tpl),tpl_uid:String((F=l.tpl_uid)!=null?F:""),tpl_name:String((O=l.tpl_name)!=null?O:""),tpl_alias:String((P=l.tpl_alias)!=null?P:"")}),Ne.value=Number(l.id)||0}function Te(l,t){var o,a,u,n,y,c,N,k,V,A,d,F,O,P,Z,f;return{id:t,uid:String((o=l.uid)!=null?o:"").trim(),name:String((a=l.name)!=null?a:"").trim(),alias:String((u=l.alias)!=null?u:""),model:String((n=l.model)!=null?n:""),description:String((y=l.description)!=null?y:""),customer_id:String((c=l.customer_id)!=null?c:""),customer_name:String((N=l.customer_name)!=null?N:""),customer_alias:String((k=l.customer_alias)!=null?k:""),terminal_list:st(l),mapping_id:String((V=l.mapping_id)!=null?V:""),mapping_name:String((A=l.mapping_name)!=null?A:""),tag:Ce(String((d=l.tag)!=null?d:"")),province:String((F=l.province)!=null?F:""),city:String((O=l.city)!=null?O:""),create_by_tpl:l.create_by_tpl?1:0,tpl_uid:String((P=l.tpl_uid)!=null?P:""),tpl_name:String((Z=l.tpl_name)!=null?Z:""),tpl_alias:String((f=l.tpl_alias)!=null?f:""),addition:"[]"}}const De=l=>R(null,null,function*(){var t;z.value=!1,G.value=!0,ie.value=!0;try{const o=yield T("get_object_item",{uid:l.uid},!0),a=(t=o==null?void 0:o.result)!=null?t:l;Be(a),Se(a)}catch(o){Be(l),Se(l),S.ElMessage.warning("拉取对象详情失败,已使用列表行编辑")}finally{ie.value=!1}}),ct=()=>R(null,null,function*(){if(!s.name.trim()){S.ElMessage.warning("请填写对象名称");return}re.value=!0;try{yield T("update_object",Te(s,Ne.value),!0),S.ElMessage.success("保存成功"),G.value=!1,yield D()}catch(l){S.ElMessage.error("保存失败")}finally{re.value=!1}}),Ee=l=>{z.value=!1,S.ElMessageBox.confirm("确认删除该对象吗?","警告",{type:"warning"}).then(()=>R(null,null,function*(){try{yield T("delete_object",{uid:l.uid,id:l.id},!0),S.ElMessage.success("删除成功"),yield D()}catch(t){S.ElMessage.error("删除失败")}})).catch(()=>{})},mt=()=>{const l=typeof crypto!="undefined"&&typeof crypto.randomUUID=="function"?`obj_${crypto.randomUUID()}`:`obj_${Date.now()}_${Math.random().toString(16).slice(2)}`;Object.assign(p,{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:""}),Y.value=!0},pt=()=>R(null,null,function*(){var l;if(!((l=p.name)!=null&&l.trim())){S.ElMessage.warning("请填写对象名称");return}ne.value=!0;try{yield T("create_object",Te(p,0),!0),Y.value=!1,S.ElMessage.success("添加成功"),yield D()}catch(t){S.ElMessage.error("添加失败")}finally{ne.value=!1}}),Ae=l=>{z.value=!1,S.ElMessageBox.confirm(`确认对对象 [${l.name}] 进行资料备档吗?`,"提示",{type:"info"}).then(()=>{S.ElMessage.success("备档成功")}).catch(()=>{})};return e.onMounted(()=>{D()}),(l,t)=>{const o=v.ElIcon,a=v.ElInput,u=v.ElDatePicker,n=v.ElOption,y=v.ElSelect,c=v.ElButton,N=v.ElTableColumn,k=v.ElTable,V=v.ElPagination,A=v.ElPopover,d=v.ElFormItem,F=v.ElForm,O=v.ElDialog,P=v.ElDivider,Z=v.ElAlert,f=v.ElDescriptionsItem,ft=v.ElTag,Oe=v.ElDescriptions,bt=v.ElCollapseItem,vt=v.ElCollapse,gt=v.ElEmpty,de=v.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["object-list mix-component",e.unref(H)]),style:e.normalizeStyle(e.unref(Me))},[e.unref(g).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(qe.value)},e.toDisplayString(b.conf.caption||b.conf.name),5)),e.createElementVNode("div",Tt,[e.createElementVNode("div",Dt,[I.value!=="created"?(e.openBlock(),e.createBlock(a,{key:0,modelValue:W.value,"onUpdate:modelValue":t[0]||(t[0]=i=>W.value=i),placeholder:"搜索对象(与 mixui ObjectList 搜索字段一致)",size:"small",class:"toolbar-search",onKeyup:e.withKeys(be,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(o,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ct.Search))]),_:1})]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(u,{key:1,modelValue:J.value,"onUpdate:modelValue":t[1]||(t[1]=i=>J.value=i),type:"datetimerange","range-separator":"至","start-placeholder":"创建开始","end-placeholder":"创建结束","value-format":"YYYY-MM-DD HH:mm:ss",size:"small",class:"toolbar-created-range"},null,8,["modelValue"])),e.createVNode(y,{modelValue:I.value,"onUpdate:modelValue":t[2]||(t[2]=i=>I.value=i),size:"small",class:"toolbar-field-select",onChange:He},{default:e.withCtx(()=>[e.createVNode(n,{label:"对象名称",value:"name"}),e.createVNode(n,{label:"对象编号",value:"uid"}),e.createVNode(n,{label:"对象别名",value:"alias"}),e.createVNode(n,{label:"客户编号",value:"customer_id"}),e.createVNode(n,{label:"客户别名",value:"customer_alias"}),e.createVNode(n,{label:"客户名称",value:"customer_name"}),e.createVNode(n,{label:"映射表编号",value:"mapping_id"}),e.createVNode(n,{label:"映射表名称",value:"mapping_name"}),e.createVNode(n,{label:"关联终端",value:"terminal_list"}),e.createVNode(n,{label:"标签",value:"tag"}),e.createVNode(n,{label:"省份",value:"province"}),e.createVNode(n,{label:"市/区",value:"city"}),e.createVNode(n,{label:"型号",value:"model"}),e.createVNode(n,{label:"序列号",value:"serial_no"}),e.createVNode(n,{label:"创建时间",value:"created"})]),_:1},8,["modelValue"]),e.createVNode(c,{type:"primary",onClick:be},{default:e.withCtx(()=>[...t[42]||(t[42]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(c,{onClick:Ye},{default:e.withCtx(()=>[...t[43]||(t[43]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(g).showAddBtn?(e.openBlock(),e.createBlock(c,{key:2,type:"success",onClick:mt},{default:e.withCtx(()=>[...t[44]||(t[44]=[e.createTextVNode("添加对象",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:Ie,class:"table-wrapper"},[e.createVNode(k,{data:Je.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(ze),onRowContextmenu:Xe},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($e.value,i=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:i.prop},[i.visible?(e.openBlock(),e.createBlock(N,{key:0,prop:i.prop,label:i.label,width:i.width},{default:e.withCtx(C=>[i.prop==="create_by_tpl"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(me(C.row.create_by_tpl)?"模板创建":"手动创建"),1)],64)):(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(lt(C.row,i))},e.toDisplayString(tt(C.row,i)),5))]),_:2},1032,["prop","label","width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(N,{label:"操作","min-width":"250",fixed:"right"},{default:e.withCtx(i=>[e.unref(g).showViewBtn?(e.openBlock(),e.createBlock(c,{key:0,size:"small",onClick:C=>ke(i.row)},{default:e.withCtx(()=>[...t[45]||(t[45]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(g).showEditBtn?(e.openBlock(),e.createBlock(c,{key:1,size:"small",type:"primary",onClick:C=>De(i.row)},{default:e.withCtx(()=>[...t[46]||(t[46]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(g).showArchiveBtn?(e.openBlock(),e.createBlock(c,{key:2,size:"small",type:"info",onClick:C=>Ae(i.row)},{default:e.withCtx(()=>[...t[47]||(t[47]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(g).showDeleteBtn?(e.openBlock(),e.createBlock(c,{key:3,size:"small",type:"danger",onClick:C=>Ee(i.row)},{default:e.withCtx(()=>[...t[48]||(t[48]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data","height"])],512),e.createElementVNode("div",Et,[e.createVNode(V,{"current-page":x.current,"onUpdate:currentPage":t[3]||(t[3]=i=>x.current=i),"page-size":x.pageSize,"onUpdate:pageSize":t[4]||(t[4]=i=>x.pageSize=i),"page-sizes":[20,50,100,200],layout:"total, sizes, prev, pager, next, jumper",total:x.total,onSizeChange:Ge,onCurrentChange:Qe},null,8,["current-page","page-size","total"])]),e.createVNode(A,{visible:z.value,width:200,trigger:"click","popper-options":{placement:"bottom",modifiers:[{name:"offset",options:{offset:[fe.value,pe.value]}}]}},{default:e.withCtx(()=>[e.createElementVNode("div",At,[E.value&&e.unref(g).showViewBtn?(e.openBlock(),e.createBlock(c,{key:0,type:"text",onClick:t[5]||(t[5]=i=>ke(E.value))},{default:e.withCtx(()=>[...t[49]||(t[49]=[e.createTextVNode("查看详情",-1)])]),_:1})):e.createCommentVNode("",!0),E.value&&e.unref(g).showEditBtn?(e.openBlock(),e.createBlock(c,{key:1,type:"text",onClick:t[6]||(t[6]=i=>De(E.value))},{default:e.withCtx(()=>[...t[50]||(t[50]=[e.createTextVNode("编辑对象",-1)])]),_:1})):e.createCommentVNode("",!0),E.value&&e.unref(g).showArchiveBtn?(e.openBlock(),e.createBlock(c,{key:2,type:"text",onClick:t[7]||(t[7]=i=>Ae(E.value))},{default:e.withCtx(()=>[...t[51]||(t[51]=[e.createTextVNode("资料备档",-1)])]),_:1})):e.createCommentVNode("",!0),E.value&&e.unref(g).showDeleteBtn?(e.openBlock(),e.createBlock(c,{key:3,type:"text",onClick:t[8]||(t[8]=i=>Ee(E.value))},{default:e.withCtx(()=>[...t[52]||(t[52]=[e.createTextVNode("删除对象",-1)])]),_:1})):e.createCommentVNode("",!0)])]),_:1},8,["visible","popper-options"]),e.createVNode(O,{modelValue:Y.value,"onUpdate:modelValue":t[23]||(t[23]=i=>Y.value=i),title:"添加对象",width:"600px"},{footer:e.withCtx(()=>[e.createElementVNode("span",Ot,[e.createVNode(c,{onClick:t[22]||(t[22]=i=>Y.value=!1)},{default:e.withCtx(()=>[...t[53]||(t[53]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(c,{type:"primary",loading:ne.value,onClick:pt},{default:e.withCtx(()=>[...t[54]||(t[54]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.createVNode(F,{model:p,"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(d,{label:"对象名称"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:p.name,"onUpdate:modelValue":t[9]||(t[9]=i=>p.name=i),placeholder:"请输入对象名称"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"对象别名"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:p.alias,"onUpdate:modelValue":t[10]||(t[10]=i=>p.alias=i),placeholder:"请输入对象别名"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"型号"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:p.model,"onUpdate:modelValue":t[11]||(t[11]=i=>p.model=i),placeholder:"请输入型号"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:p.description,"onUpdate:modelValue":t[12]||(t[12]=i=>p.description=i),placeholder:"请输入描述",type:"textarea"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"客户编号"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:p.customer_id,"onUpdate:modelValue":t[13]||(t[13]=i=>p.customer_id=i),placeholder:"请输入客户编号"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"客户名称"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:p.customer_name,"onUpdate:modelValue":t[14]||(t[14]=i=>p.customer_name=i),placeholder:"请输入客户名称"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"客户别名"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:p.customer_alias,"onUpdate:modelValue":t[15]||(t[15]=i=>p.customer_alias=i),placeholder:"请输入客户别名"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"关联终端"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:p.terminal_list,"onUpdate:modelValue":t[16]||(t[16]=i=>p.terminal_list=i),placeholder:"请输入关联终端"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:p.mapping_id,"onUpdate:modelValue":t[17]||(t[17]=i=>p.mapping_id=i),placeholder:"请输入映射表编号"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"映射表名称"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:p.mapping_name,"onUpdate:modelValue":t[18]||(t[18]=i=>p.mapping_name=i),placeholder:"请输入映射表名称"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:p.tag,"onUpdate:modelValue":t[19]||(t[19]=i=>p.tag=i),placeholder:"请输入标签"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"省份"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:p.province,"onUpdate:modelValue":t[20]||(t[20]=i=>p.province=i),placeholder:"请输入省份"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"市/区"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:p.city,"onUpdate:modelValue":t[21]||(t[21]=i=>p.city=i),placeholder:"请输入市/区"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(O,{modelValue:G.value,"onUpdate:modelValue":t[39]||(t[39]=i=>G.value=i),title:"编辑对象",width:"600px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createElementVNode("span",Ft,[e.createVNode(c,{onClick:t[38]||(t[38]=i=>G.value=!1)},{default:e.withCtx(()=>[...t[56]||(t[56]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(c,{type:"primary",loading:re.value,onClick:ct},{default:e.withCtx(()=>[...t[57]||(t[57]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(F,{model:s,"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(d,{label:"对象编号"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:s.uid,"onUpdate:modelValue":t[24]||(t[24]=i=>s.uid=i),placeholder:"请输入对象编号",disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"对象名称"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:s.name,"onUpdate:modelValue":t[25]||(t[25]=i=>s.name=i),placeholder:"请输入对象名称"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"对象别名"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:s.alias,"onUpdate:modelValue":t[26]||(t[26]=i=>s.alias=i),placeholder:"请输入对象别名"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"型号"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:s.model,"onUpdate:modelValue":t[27]||(t[27]=i=>s.model=i),placeholder:"请输入型号"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:s.description,"onUpdate:modelValue":t[28]||(t[28]=i=>s.description=i),placeholder:"请输入描述",type:"textarea"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"客户编号"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:s.customer_id,"onUpdate:modelValue":t[29]||(t[29]=i=>s.customer_id=i),placeholder:"请输入客户编号"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"客户名称"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:s.customer_name,"onUpdate:modelValue":t[30]||(t[30]=i=>s.customer_name=i),placeholder:"请输入客户名称"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"客户别名"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:s.customer_alias,"onUpdate:modelValue":t[31]||(t[31]=i=>s.customer_alias=i),placeholder:"请输入客户别名"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"关联终端"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:s.terminal_list,"onUpdate:modelValue":t[32]||(t[32]=i=>s.terminal_list=i),placeholder:"请输入关联终端"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:s.mapping_id,"onUpdate:modelValue":t[33]||(t[33]=i=>s.mapping_id=i),placeholder:"请输入映射表编号"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"映射表名称"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:s.mapping_name,"onUpdate:modelValue":t[34]||(t[34]=i=>s.mapping_name=i),placeholder:"请输入映射表名称"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:s.tag,"onUpdate:modelValue":t[35]||(t[35]=i=>s.tag=i),placeholder:"请输入标签"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"省份"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:s.province,"onUpdate:modelValue":t[36]||(t[36]=i=>s.province=i),placeholder:"请输入省份"},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"市/区"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:s.city,"onUpdate:modelValue":t[37]||(t[37]=i=>s.city=i),placeholder:"请输入市/区"},null,8,["modelValue"])]),_:1}),U.value.addRealtimeData&&ve.value.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(P,{"content-position":"left"},{default:e.withCtx(()=>[...t[55]||(t[55]=[e.createTextVNode("实时数据",-1)])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ve.value,i=>(e.openBlock(),e.createBlock(d,{key:i.fv,label:i.name},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:s[i.fv],"onUpdate:modelValue":C=>s[i.fv]=C,placeholder:"请输入"+i.name},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["label"]))),128))],64)):e.createCommentVNode("",!0)]),_:1},8,["model"])),[[de,ie.value]])]),_:1},8,["modelValue"]),e.createVNode(O,{modelValue:q.value,"onUpdate:modelValue":t[41]||(t[41]=i=>q.value=i),title:"对象详情",width:"920px",class:"object-view-detail-dialog","destroy-on-close":"",onClosed:rt},{footer:e.withCtx(()=>[e.createVNode(c,{type:"primary",onClick:t[40]||(t[40]=i=>q.value=!1)},{default:e.withCtx(()=>[...t[58]||(t[58]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>{var i,C;return[e.withDirectives((e.openBlock(),e.createElementBlock("div",Lt,[K.value.length?(e.openBlock(),e.createElementBlock("div",jt,[e.createElementVNode("aside",Ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(K.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r.tabKey,class:e.normalizeClass(["view-detail-tab-item",{active:$.value===r.tabKey}]),onClick:se=>$.value=r.tabKey},e.toDisplayString(r.label),11,Kt))),128))]),e.createElementVNode("div",Pt,[$.value==="baseinfo"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[j.value?(e.openBlock(),e.createElementBlock("div",Rt,e.toDisplayString(j.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Mt,[m.value?(e.openBlock(),e.createBlock(Oe,{key:0,column:2,border:""},{default:e.withCtx(()=>[Ve.value?(e.openBlock(),e.createBlock(f,{key:0,label:"对象图片",span:2},{default:e.withCtx(()=>[e.createElementVNode("img",{class:"view-detail-head-img",src:Ve.value,alt:""},null,8,It)]),_:1})):e.createCommentVNode("",!0),e.createVNode(f,{label:"对象编号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.uid)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"对象名称"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.name)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"对象别名"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.alias)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"型号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.model)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"序列号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.serial_no)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"映射表编号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.mapping_id)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"映射表名称"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.mapping_name)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"映射表别名"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.mapping_alias)!=null?r:""),1)]}),_:1}),ot.value!=="box"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(f,{label:"项目编号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.customer_id)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"项目名称"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.customer_name)!=null?r:""),1)]}),_:1})],64)):e.createCommentVNode("",!0),e.createVNode(f,{label:"控制密码"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.control)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"控制码编号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.control_id)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"控制码名称"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.control_name)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"控制码别名"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.control_alias)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"地址"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.address)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"设置经纬度"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.custom_gis)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"GPS经纬度"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.gis)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"省份"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.province)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"城市"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.city)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"创建时间"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.created)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"更新时间"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.last_modified)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"标签",span:2},{default:e.withCtx(()=>[he.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(he.value,r=>(e.openBlock(),e.createBlock(ft,{key:r,style:{"margin-right":"6px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r),1)]),_:2},1024))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(f,{label:"描述",span:2},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=m.value.description)!=null?r:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)]),oe.value.length?(e.openBlock(),e.createElementBlock("div",zt,"扩展脚本信息")):e.createCommentVNode("",!0),oe.value.length?(e.openBlock(),e.createElementBlock("div",qt,[e.createVNode(vt,{"expand-icon-position":"left"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe.value,(r,se)=>(e.openBlock(),e.createBlock(bt,{key:se,name:se,title:r.title},{default:e.withCtx(()=>[e.createVNode(Oe,{border:"",column:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.data,(Fe,_t)=>(e.openBlock(),e.createBlock(f,{key:_t,label:String(Fe[0])},{default:e.withCtx(()=>{var Le;return[e.createTextVNode(e.toDisplayString((Le=Fe[1])!=null?Le:""),1)]}),_:2},1032,["label"]))),128))]),_:2},1024)]),_:2},1032,["name","title"]))),128))]),_:1})])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock("div",$t,[e.createVNode(gt,{description:it(at.value)},null,8,["description"]),e.createElementVNode("div",Ht,"对象编号:"+e.toDisplayString((C=(i=m.value)==null?void 0:i.uid)!=null?C:"—"),1)]))])])):(e.openBlock(),e.createBlock(Z,{key:0,type:"warning","show-icon":"",closable:!1,title:"请先在右侧「数据」面板勾选「查看」,并在其下的详情页签中至少启用一项。"}))])),[[de,X.value]])]}),_:1},8,["modelValue"])]),e.renderSlot(l.$slots,"default",{},void 0,!0)],6)),[[de,ae.value]])}}})),tl=h._export_sfc(el,[["__scopeId","data-v-0c578d4d"]]);exports.default=tl;
@@ -1 +0,0 @@
1
- "use strict";var te=Object.defineProperty,ie=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable;var F=(e,t,i)=>t in e?te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,b=(e,t)=>{for(var i in t||(t={}))ae.call(t,i)&&F(e,i,t[i]);if($)for(var i of $(t))ne.call(t,i)&&F(e,i,t[i]);return e},E=(e,t)=>ie(e,oe(t));var c=(e,t,i)=>new Promise((r,o)=>{var s=_=>{try{a(i.next(_))}catch(g){o(g)}},u=_=>{try{a(i.throw(_))}catch(g){o(g)}},a=_=>_.done?r(_.value):Promise.resolve(_.value).then(s,u);a((i=i.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const re=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");const n=require("vue"),le=require("./vue-i18n-BvHMBi_b.cjs"),se=require("./BaseComponent-CNXUpPY1.cjs"),y=require("./index-D8dh_6Qd.cjs"),V=require("element-plus"),T=require("./ele-bmp-icon-BBI0-SX7.cjs");function L(e){return e.replace(/\/$/,"")}function ce(){return typeof window=="undefined"?!1:window.__MIXUI_MATERIAL_USE_MIXSERVICE_STORAGE__===!0}function de(){var r,o;const e="".trim();if(e)return L(e);if(ce()&&typeof window!="undefined"&&((r=window.location)!=null&&r.origin))return`${L(window.location.origin)}/mixservice/storage/yunfiles/material/file`;const t="".trim();if(t){const s=L(t);return s.toLowerCase().includes("yunfiles/material/file")?s:`${s}/mixdesignd/yunfiles/material/file`}if(typeof window!="undefined"&&((o=window.location)!=null&&o.origin))return`${L(window.location.origin)}/mixdesignd/yunfiles/material/file`;const i="".trim();if(i){const s=L(i);return s.toLowerCase().includes("yunfiles/material/file")?s:`${s}/mixdesignd/yunfiles/material/file`}return`${L("https://yunui.mixyun.top")}/mixdesignd/yunfiles/material/file`}function ue(e){if(!(e!=null&&e.trim()))return"";let t=String(e).trim().replace(/\\/g,"/");t=t.replace(/^\/+/,"");const i=t.toLowerCase(),r=a=>{const _=a.toLowerCase();if(i.startsWith(_))return t.slice(a.length).replace(/^\/+/,"");const g=i.indexOf("/"+_);return g>=0?t.slice(g+1+a.length).replace(/^\/+/,""):null};let o=r("mixdesignd/yunfiles/material/file/");if(o!=null||(o=r("mixservice/storage/yunfiles/material/file/"),o!=null)||(o=r("yunfiles/material/file/"),o!=null))return o;const s="mixservice/storage/material/mixyun_dashboard/",u=i.indexOf(s);return u>=0?t.slice(u+s.length).replace(/^\/+/,""):i.startsWith("mixdesignd/")&&(t=t.slice(11),t.toLowerCase().startsWith("yunfiles/material/file/"))?t.slice(23).replace(/^\/+/,""):t.replace(/^\/+/,"")}function q(e){return e.split("/").filter(Boolean).map(t=>{try{return encodeURIComponent(decodeURIComponent(t))}catch(i){return encodeURIComponent(t)}}).join("/")}function P(e){if(!(e!=null&&e.trim()))return"";const t=e.trim();if(t.startsWith("data:")||t.startsWith("blob:"))return t;if(t.startsWith("http://")||t.startsWith("https://"))try{const o=new URL(t),s=q(o.pathname.replace(/^\/+/,""));return o.pathname="/"+s,o.toString()}catch(o){return t}const i=q(ue(t));return i?`${de()}/${i}`.replace(/([^:])\/{2,}/g,"$1/"):""}process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;const he=Symbol(process.env.NODE_ENV!=="production"?"route location":"");process.env.NODE_ENV;function pe(e){return n.inject(he)}const A=e=>{const t=typeof e=="string"?Number(e):e;return t===0||t===200},_e=(e,t)=>{if(e&&String(e).trim()){const i=String(e).trim();if(i.startsWith("http://")||i.startsWith("https://"))try{return new URL(i).pathname||""}catch(r){return i}return i.startsWith("/")?i:`/${i}`}return t?`/yunfiles/material/file/${t}`:""},fe={uploadFile(e){return c(this,null,function*(){var r;const t=new FormData;t.append("file",e);const i=yield y.api.upload(t,!0);if(A(i.code)&&((r=i.result)!=null&&r.url))return i.result.url;throw new Error(i.msg||"文件上传失败")})},uploadMaterialGetPath(e,t){return c(this,null,function*(){var s,u;const r={material_data:e.includes(",")?e.split(",")[1]:e,material_type:t||"png"},o=yield y.api.post("upload_material",r,!0);if(A(o.code)&&o.result){const a=o.result,_=_e(a.material_path||a.relative_path||"",a.file_id);if(_)return E(b({},a),{material_path:_,material_size:(u=(s=a.material_size)!=null?s:a.file_size)!=null?u:0,material_type:a.material_type||a.mime_type||t||"png",name:a.name||a.file_name||""})}throw new Error(o.info||o.msg||"上传原图获取路径失败")})},createMaterial(e){return c(this,null,function*(){var i;const t=yield y.api.post("create_dashboard_material",e,!0);if(A(t.code)&&((i=t.result)!=null&&i.uid))return t.result;throw new Error(t.info||t.msg||"创建素材失败")})},uploadAndCreateMaterial(i){return c(this,arguments,function*(e,t={}){var u;const r=((u=e.name.split(".").pop())==null?void 0:u.toLowerCase())||"png",o=yield this._fileToBase64(e),s=yield this.uploadMaterialGetPath(o,r);if(s.uid)return{uid:s.uid};throw new Error("upload_material 未返回 uid")})},_fileToBase64(e){return new Promise((t,i)=>{const r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>i(new Error("文件读取失败")),r.readAsDataURL(e)})},getMaterialList(){return c(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 c(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 c(this,null,function*(){return yield y.api.post("get_dashboard_material_item",{uid:e})})},updateMaterial(e){return c(this,null,function*(){return yield y.api.post("update_dashboard_material",e,!0)})},deleteMaterial(e){return c(this,null,function*(){return yield y.api.post("delete_dashboard_material",{uid:e},!0)})},deleteMaterialByPath(e){return c(this,null,function*(){var i;if(!e||!String(e).trim())return;const t=String(e).replace(/^\//,"");try{const r=yield this.getMyMaterialList({page_index:1,page_size:10,where_and:JSON.stringify([["material_path","=",t]])}),o=(i=r==null?void 0:r.result)==null?void 0:i.data;Array.isArray(o)&&o.length>0&&o[0].uid&&(yield this.deleteMaterial(o[0].uid))}catch(r){}})}},j={_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 c(this,null,function*(){var i;const t=yield this.getMaterialRelationList({page_index:1,page_size:999,where_and:e});return((i=t==null?void 0:t.result)==null?void 0:i.data)||[]})},_deleteByUid(e,t){return c(this,null,function*(){t&&(yield this.deleteMaterialRelation({dashboard_record_uid:e,uid:t}))})},_deleteByRelation(e){return c(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 c(this,null,function*(){for(const i of t)yield this._deleteByUid(e,i.uid)})},createMaterialRelation(e){return c(this,null,function*(){return yield y.api.post("create_dashboard_materials_relation",e,!0)})},deleteMaterialRelation(e){return c(this,null,function*(){return yield y.api.post("delete_dashboard_materials_relation",e,!0)})},getMaterialRelationList(){return c(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(i){return c(this,arguments,function*(e,t={}){const r=JSON.stringify([["dashboard_record_uid","=",e]]);return yield this.getMaterialRelationList(E(b({},t),{where_and:r}))})},getMaterialRelationByComponent(r,o){return c(this,arguments,function*(e,t,i={}){const s=JSON.stringify([["dashboard_record_uid","=",e],["component_id","=",t]]);return yield this.getMaterialRelationList(E(b({},i),{where_and:s}))})},getRelationsByMaterial(e){return c(this,null,function*(){var r;if(!e)return[];const t=JSON.stringify([["material_uid","=",e]]),i=yield this.getMaterialRelationList({page_index:1,page_size:999,where_and:t});return((r=i==null?void 0:i.result)==null?void 0:r.data)||[]})},getMaterialUsageSummary(e){return c(this,null,function*(){const t=yield this.getRelationsByMaterial(e),i=new Set;return t.forEach(r=>{const o=String(r.dashboard_record_uid||"").trim();o&&i.add(o)}),{relationCount:t.length,dashboardCount:i.size,relations:t}})},deleteAllRelationsByMaterial(e){return c(this,null,function*(){const t=yield this.getRelationsByMaterial(e);for(const i of t)!(i!=null&&i.uid)||!(i!=null&&i.dashboard_record_uid)||(yield this.deleteMaterialRelation({dashboard_record_uid:i.dashboard_record_uid,uid:i.uid}));return t.length})},deleteAllRelationsByDashboard(e){return c(this,null,function*(){return yield this.deleteRelationsByDashboardHierarchy(e)})},deleteRelationByComponent(e,t){return c(this,null,function*(){return yield this.deleteMaterialRelation({dashboard_record_uid:e,component_id:t})})},deleteComponentRelations(e,t,i,r){return c(this,null,function*(){if(!e||!t||!i||!r)return;const o=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",i],["component_id","=",r]]),s=yield this._listRelations(o);for(const u of s)yield this._deleteByRelation(u)})},deleteLayerLevelRelations(e,t,i){return c(this,null,function*(){if(!e||!t||!i)return;const r=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",i]]),s=(yield this._listRelations(r)).filter(u=>this._isLayerLevel(u));for(const u of s)yield this._deleteByRelation(u)})},deleteSheetLevelRelations(e,t){return c(this,null,function*(){if(!e||!t)return;const i=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t]]),o=(yield this._listRelations(i)).filter(s=>this._isSheetLevel(s));for(const s of o)yield this._deleteByRelation(s)})},deleteDashboardLevelRelations(e){return c(this,null,function*(){if(!e)return;const t=this._buildWhereAnd([["dashboard_record_uid","=",e]]),r=(yield this._listRelations(t)).filter(o=>this._isDashboardLevel(o));for(const o of r)yield this._deleteByRelation(o)})},deleteRelationsByLayerHierarchy(e,t,i){return c(this,null,function*(){if(!e||!t||!i)return;const r=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",i]]),o=yield this._listRelations(r),s=o.filter(a=>this._isComponentLevel(a)),u=o.filter(a=>this._isLayerLevel(a));for(const a of s)yield this._deleteByRelation(a);for(const a of u)yield this._deleteByRelation(a)})},deleteRelationsBySheetHierarchy(e,t){return c(this,null,function*(){if(!e||!t)return;const i=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t]]),r=yield this._listRelations(i),o=r.filter(a=>this._isComponentLevel(a)),s=r.filter(a=>this._isLayerLevel(a)),u=r.filter(a=>this._isSheetLevel(a));for(const a of o)yield this._deleteByRelation(a);for(const a of s)yield this._deleteByRelation(a);for(const a of u)yield this._deleteByRelation(a)})},deleteRelationsByDashboardHierarchy(e){return c(this,null,function*(){if(!e)return;const t=this._buildWhereAnd([["dashboard_record_uid","=",e]]),i=yield this._listRelations(t),r=i.filter(a=>this._isComponentLevel(a)),o=i.filter(a=>this._isLayerLevel(a)),s=i.filter(a=>this._isSheetLevel(a)),u=i.filter(a=>this._isDashboardLevel(a));for(const a of r)yield this._deleteByRelation(a);for(const a of o)yield this._deleteByRelation(a);for(const a of s)yield this._deleteByRelation(a);for(const a of u)yield this._deleteByRelation(a)})}},me=n.ref(!1),ye=n.ref("all");function ge(e="all"){return ye.value=e,me.value=!0,new Promise(t=>{})}const ve={class:"mix-body"},we={class:"upload-content"},be={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},Re={class:"upload-text"},Se={key:0,class:"upload-actions"},Me={key:1,class:"viewer-container"},Le={key:0,class:"file-info"},Ee={class:"file-name"},Ne=["title"],Ce=["src","alt"],Be={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"图片查看器",NAME_EN:"Photo Viewer",ORDER:2},xe={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"}},Ae=[],Ue=[],Ie=[],De=null,ke={DEFAULT:Be,OPTIONS:xe,DATA:Ae,PARAMS:Ue,SOURCE:Ie,COMMON:De},Oe=n.defineComponent(E(b({},ke),{__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}=le.useI18n(),i=y.useCounterStore(),r=pe(),o=e;class s extends se.BaseComponent{extractStyles(){return{imageDisplayMode:this.getOptionValue("imageDisplayMode","center"),radiusSize:this.getOptionValue("radiusSize",0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),J()}}const u=new s(o,"photo");u.setupLifecycle();const a=u.getStyle(),_=n.ref(null),g=n.ref(""),f=n.ref(""),R=n.ref(""),U=n.ref(!1),I=n.ref(!1),H=l=>P(l),J=()=>c(null,null,function*(){var d,h,p;const{conf:l}=o;(h=(d=l==null?void 0:l.options)==null?void 0:d.fileUrl)!=null&&h.value&&(g.value=H(l.options.fileUrl.value),yield k(),R.value=((p=l.options.fileName)==null?void 0:p.value)||"")}),D=l=>{l&&l.startsWith("blob:")&&URL.revokeObjectURL(l)},k=()=>c(null,null,function*(){if(g.value)try{const l=y.resolveHttpAuthToken();if(!l){f.value="";return}const d=yield fetch(g.value,{mode:"cors",credentials:"include",headers:{Authorization:`Bearer ${l}`}});if(!d.ok)throw new Error(`load image failed: ${d.status}`);const h=yield d.blob(),p=URL.createObjectURL(h);D(f.value),f.value=p}catch(l){console.error("[Photo] 拉取图片失败:",l),D(f.value),f.value=""}}),G=n.computed(()=>({width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})),X=n.computed(()=>{var d;const l=(d=a==null?void 0:a.value)==null?void 0:d.imageDisplayMode;return l==="tile"?{display:"none"}:l==="stretch"?{width:"100%",height:"100%",objectFit:"fill"}:{width:"100%",height:"100%",objectFit:"contain"}}),Z=n.computed(()=>{var l;return((l=a==null?void 0:a.value)==null?void 0:l.imageDisplayMode)!=="tile"||!f.value?{}:{width:"100%",height:"100%",backgroundImage:`url(${f.value})`,backgroundRepeat:"repeat",backgroundPosition:"center center"}}),O=n.computed(()=>{const l=r.params.id;return l?String(l):""}),z=l=>{var h;const d=((h=i.pageData)==null?void 0:h.sheets)||[];for(const p of d){const v=p.id,S=p.caption||p.name||p.id,N=p.layers||[];for(const w of N){const C=w.id,B=w.caption||w.name||w.id,x=w.components||[];for(const m of x)if((m==null?void 0:m.id)===l){const M=m.caption||m.name||m.id;return{sheetId:v,layerId:C,sheetName:S,layerName:B,componentName:M}}}}return{sheetId:"",layerId:"",sheetName:"",layerName:"",componentName:""}},K=l=>c(null,null,function*(){var v;if(!O.value)return;const d=o.uid||((v=o.conf)==null?void 0:v.id);if(!d||!l)return;const{sheetId:h,layerId:p}=z(d);try{yield j.deleteComponentRelations(O.value,h,p,d),yield j.createMaterialRelation({dashboard_record_uid:O.value,material_uid:l,sheet_id:h||void 0,layer_id:p||void 0,component_id:d})}catch(S){console.warn("[Photo] 同步素材关联失败:",S)}}),W=()=>c(null,null,function*(){try{const l=yield ge("image");if(l){if(console.log("[Photo] 选中的素材:",l),console.log("[Photo] material_path:",l.material_path),console.log("[Photo] thumbnail:",l.thumbnail),console.log("[Photo] file_id:",l.file_id),!l.material_path){V.ElMessage.warning("该素材缺少 material_path,无法获取原图"),console.warn("[Photo] 素材缺少 material_path");return}const d=String(l.material_path).trim(),h=P(d);console.log("[Photo] 原图URL:",h),g.value=h,yield k(),R.value=l.name,o.conf&&o.conf.options&&(o.conf.options.fileUrl||(o.conf.options.fileUrl={value:"",type:"string",label:""}),o.conf.options.fileName||(o.conf.options.fileName={value:"",type:"string",label:""}),o.conf.options.materialUid||(o.conf.options.materialUid={value:"",type:"string",label:""}),o.conf.options.fileUrl.value=d,o.conf.options.fileName.value=l.name,o.conf.options.materialUid.value=l.uid,console.log("[Photo] 配置已保存:",{fileUrl:o.conf.options.fileUrl.value,fileName:o.conf.options.fileName.value,materialUid:o.conf.options.materialUid.value})),console.log("[Photo] uploadedFileUrl.value:",f.value),V.ElMessage.success(t("component.photo.materialSelected")||"素材选择成功"),yield K(l.uid)}else console.log("[Photo] 用户取消选择")}catch(l){console.error("[Photo] 素材选择失败:",l),V.ElMessage.error("素材选择失败")}}),Q=()=>{D(f.value),f.value="",g.value="",R.value="",o.mode!=="preview"&&W()},Y=()=>{U.value=!1,_.value,console.log("图片加载成功")},ee=l=>{var v,S,N,w,C,B,x;if(console.error("图片加载失败:",l),U.value||I.value)return;const d=o.uid||((v=o.conf)==null?void 0:v.id)||"",h=d?z(d):null;h&&(h.sheetName||h.layerName||h.componentName)?`${h.sheetName||"-"}${h.layerName||"-"}${h.componentName||"-"}`:R.value;const p=String(((w=(N=(S=o.conf)==null?void 0:S.options)==null?void 0:N.materialUid)==null?void 0:w.value)||((x=(B=(C=o.conf)==null?void 0:C.options)==null?void 0:B.imageUid)==null?void 0:x.value)||"").trim();p&&(I.value=!0,fe.getMaterialItem(p).then(m=>{if(A(m==null?void 0:m.code)&&(m!=null&&m.result)){const M=m.result;M!=null&&M.material_path&&(g.value=P(String(M.material_path).trim()),k());return}U.value=!0}).catch(()=>{}).finally(()=>{I.value=!1}))};return n.onMounted(()=>{}),n.onBeforeUnmount(()=>{f.value&&f.value.startsWith("blob:")&&URL.revokeObjectURL(f.value)}),(l,d)=>{var p,v;const h=re.ElButton;return n.openBlock(),n.createElementBlock("div",{class:"mix-component",style:n.normalizeStyle({borderRadius:`${n.unref(a).radiusSize}px`})},[n.createElementVNode("div",ve,[f.value?(n.openBlock(),n.createElementBlock("div",Me,[o.mode!=="preview"?(n.openBlock(),n.createElementBlock("div",Le,[n.createElementVNode("span",Ee,n.toDisplayString(R.value),1),n.createElementVNode("button",{class:"change-file-btn",onClick:Q,title:n.unref(t)("component.photo.changeFile")||"更换文件"},[...d[1]||(d[1]=[n.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[n.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,Ne)])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"image-container",style:n.normalizeStyle(G.value)},[n.createElementVNode("img",{ref_key:"imageRef",ref:_,src:f.value,alt:R.value,style:n.normalizeStyle(X.value),onLoad:Y,onError:ee},null,44,Ce),((v=(p=n.unref(a))==null?void 0:p.value)==null?void 0:v.imageDisplayMode)==="tile"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"tiled-background",style:n.normalizeStyle(Z.value)},null,4)):n.createCommentVNode("",!0)],4)])):(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["upload-area",{"preview-mode":o.mode==="preview"}])},[n.createElementVNode("div",we,[(n.openBlock(),n.createElementBlock("svg",be,[...d[0]||(d[0]=[n.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)])])),n.createElementVNode("p",Re,n.toDisplayString(o.mode==="preview"?"未上传素材":n.unref(t)("component.photo.selectFromLibrary")||"从素材库选择"),1),o.mode!=="preview"?(n.openBlock(),n.createElementBlock("div",Se,[n.createVNode(h,{type:"primary",size:"small",onClick:W},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(t)("component.photo.selectFromLibrary")||"从素材库选择"),1)]),_:1})])):n.createCommentVNode("",!0)])],2))]),n.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),Ve=y._export_sfc(Oe,[["__scopeId","data-v-c449a1c6"]]);exports.default=Ve;