mixdashboards 1.0.92 → 1.0.94

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 (341) hide show
  1. package/dist/{BaseComponent-DjjN5Pou.cjs → BaseComponent-CJ3CP33o.cjs} +1 -1
  2. package/dist/{BaseComponent-B59M7tSp.js → BaseComponent-DQKmWNg3.js} +7 -7
  3. package/dist/{EChartComponentBase-DKvdFD6q.js → EChartComponentBase-DDIaxwYZ.js} +5 -5
  4. package/dist/{EChartComponentBase-B7QBSj3i.cjs → EChartComponentBase-krpMZZqF.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-Cs1MBIiZ.js → EmergencyPlanPanel-DOQyw3ut.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-DErLqKVJ.cjs → EmergencyPlanPanel-np1ogg97.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-oF5o0tdo.js → HistoryPlanDialog-BPfCayU2.js} +1 -1
  8. package/dist/{HistoryPlanDialog-Bh17elAK.cjs → HistoryPlanDialog-Cf24tdc7.cjs} +1 -1
  9. package/dist/{MixiotAppDetailPage-Ct0K17Vp.cjs → MixiotAppDetailPage-BpnbknVi.cjs} +1 -1
  10. package/dist/{MixiotAppDetailPage-DUkgCfVD.js → MixiotAppDetailPage-v_pqsB9G.js} +1 -1
  11. package/dist/{MonitoringMap-DVrV7u6c.js → MonitoringMap-Bw2T1si1.js} +2 -2
  12. package/dist/{MonitoringMap-Dxcwn8rF.cjs → MonitoringMap-dheAZzQE.cjs} +1 -1
  13. package/dist/{UniverSheet-DocH4IMy.js → UniverSheet-B6hZh5pm.js} +2 -2
  14. package/dist/{UniverSheet-CEB2dyPX.cjs → UniverSheet-BtzJLlYy.cjs} +1 -1
  15. package/dist/{accelerationChart-XC8g0CHb.cjs → accelerationChart-Cnd-dMDP.cjs} +1 -1
  16. package/dist/{accelerationChart-DX69nYON.js → accelerationChart-DHYX8g4h.js} +16 -16
  17. package/dist/{actionItem-wACA6UiF.cjs → actionItem-Th4srrc7.cjs} +1 -1
  18. package/dist/{actionItem-Be6q1uls.js → actionItem-jUGiIM9X.js} +2 -2
  19. package/dist/{alarmLevelChart-CHTvWW6X.js → alarmLevelChart-C4bioZHO.js} +2 -2
  20. package/dist/{alarmLevelChart-BRXoKULM.cjs → alarmLevelChart-TRtNoosF.cjs} +1 -1
  21. package/dist/{alertTable-CurveODa.js → alertTable-DfkVfHQW.js} +2 -2
  22. package/dist/{alertTable-DccPPmFd.cjs → alertTable-Hg2OuJqQ.cjs} +1 -1
  23. package/dist/{aliasObjectSelectorDemo-DvOo6NSg.js → aliasObjectSelectorDemo-DgU9r_-i.js} +4 -4
  24. package/dist/{aliasObjectSelectorDemo-Cxo9aCwz.cjs → aliasObjectSelectorDemo-UsWROEy1.cjs} +1 -1
  25. package/dist/{annualRainfallChart-Ub5oA_SQ.js → annualRainfallChart-Bp3EK6l0.js} +2 -2
  26. package/dist/{annualRainfallChart-DJLAkjKJ.cjs → annualRainfallChart-DYPD1pYV.cjs} +1 -1
  27. package/dist/{aqi-Ct8QcCo_.js → aqi-4RKBFJGx.js} +6 -6
  28. package/dist/{aqi-C0-b1zEb.cjs → aqi-xz4tyeqa.cjs} +1 -1
  29. package/dist/{aqiIndass-Dk77_lgt.js → aqiIndass-CayXfAC7.js} +19 -19
  30. package/dist/{aqiIndass-sUpgW4iQ.cjs → aqiIndass-t9VLR1g8.cjs} +1 -1
  31. package/dist/{areaDeformCurve-CNcCdOSs.js → areaDeformCurve-B44i3xnq.js} +2 -2
  32. package/dist/{areaDeformCurve-DUAMysnf.cjs → areaDeformCurve-D_92mFHc.cjs} +1 -1
  33. package/dist/{arrayCard-BADJRc30.cjs → arrayCard-DuC-f-6p.cjs} +1 -1
  34. package/dist/{arrayCard-DDGY9UsN.js → arrayCard-qSBkh9Sx.js} +2 -2
  35. package/dist/{audio-Dy0swEd9.js → audio-CpIxmXqe.js} +2 -2
  36. package/dist/{audio-xYxZCe68.cjs → audio-DJ4D3OVa.cjs} +1 -1
  37. package/dist/{bar-BXErI_ok.cjs → bar-BEHZDtG6.cjs} +1 -1
  38. package/dist/{bar-CIyxCiOI.js → bar-E-GDQOS9.js} +14 -14
  39. package/dist/{bmp-CA9wRPnh.cjs → bmp-DPnUiyw9.cjs} +1 -1
  40. package/dist/{bmp-sd5D0l8a.js → bmp-DdjjQbjw.js} +2 -2
  41. package/dist/{box-BsYnV8Bx.js → box-BHDmMqvo.js} +12 -12
  42. package/dist/{box-C6ln8N0y.cjs → box-By9Dason.cjs} +1 -1
  43. package/dist/{chartConfigPanel-C7aianX3.js → chartConfigPanel-BgMlKFNl.js} +1 -1
  44. package/dist/{chartConfigPanel-CMz54Q6v.cjs → chartConfigPanel-DVTRFAKV.cjs} +1 -1
  45. package/dist/{circleBar-B30Atdea.js → circleBar-Bmn-7b6a.js} +2 -2
  46. package/dist/{circleBar-BX5t2nMJ.cjs → circleBar-Ddyx9kpB.cjs} +1 -1
  47. package/dist/{clock-B-8CrowZ.js → clock-CflJfg1S.js} +2 -2
  48. package/dist/{clock-BXtwHRm9.cjs → clock-cQgCDu_3.cjs} +1 -1
  49. package/dist/{clt-BpuHyjGH.cjs → clt-Byo01zR6.cjs} +1 -1
  50. package/dist/{clt-DMm1Nw5a.js → clt-C2TyVj4q.js} +2 -2
  51. package/dist/{cmc-D5i6gU2D.cjs → cmc-CAWyEhl_.cjs} +1 -1
  52. package/dist/{cmc-6PspnRIQ.js → cmc-CbewFTQI.js} +14 -14
  53. package/dist/{cmp-BgunaL09.cjs → cmp-C9yzfEEf.cjs} +1 -1
  54. package/dist/{cmp-ClpSjWb2.js → cmp-trXYKJPO.js} +2 -2
  55. package/dist/{conclusionCard-BdP1uREl.cjs → conclusionCard-B1IIERg5.cjs} +1 -1
  56. package/dist/{conclusionCard-DfxTxHpK.js → conclusionCard-Dn-8k_po.js} +2 -2
  57. package/dist/{controlList-19cc2oTV.cjs → controlList-CPsTHFpz.cjs} +1 -1
  58. package/dist/{controlList-BxIsykAO.js → controlList-CSi3jV4i.js} +9 -9
  59. package/dist/{controlRecordList-rmzJkEDS.js → controlRecordList-BYEn8U1n.js} +5 -5
  60. package/dist/{controlRecordList-CDhkRSsH.cjs → controlRecordList-CLW7DgQU.cjs} +1 -1
  61. package/dist/{controlRecordListAPP-BD-gf2Bs.cjs → controlRecordListAPP-DIG123vR.cjs} +1 -1
  62. package/dist/{controlRecordListAPP-BX4kK2av.js → controlRecordListAPP-LombQOkp.js} +5 -5
  63. package/dist/{crd-ArYQwkHS.cjs → crd-B11CRPhP.cjs} +1 -1
  64. package/dist/{crd-lDL2KOAW.js → crd-Dw0h0kyO.js} +2 -2
  65. package/dist/{ctrBtn-BiEZgseO.js → ctrBtn-omvA52Uy.js} +20 -20
  66. package/dist/{ctrBtn-CGcvGakl.cjs → ctrBtn-ywTH8YBe.cjs} +1 -1
  67. package/dist/{ctrSet-C1-mq1-v.js → ctrSet-C47fAIpX.js} +16 -16
  68. package/dist/{ctrSet-B0WPaxn_.cjs → ctrSet-CYNUFrlS.cjs} +1 -1
  69. package/dist/{ctrSwitch-CUySXlTR.cjs → ctrSwitch-BdQ94cD3.cjs} +1 -1
  70. package/dist/{ctrSwitch-C_13szcJ.js → ctrSwitch-COZH3Xki.js} +19 -19
  71. package/dist/{dataManagement-DvJNb0TV.js → dataManagement-6A9BhO_z.js} +2 -2
  72. package/dist/{dataManagement-DhqIIR6y.cjs → dataManagement-BAhLGUrU.cjs} +1 -1
  73. package/dist/{dataReport-DYUj8pwD.cjs → dataReport-C013gISr.cjs} +1 -1
  74. package/dist/{dataReport-CwlKwjnX.js → dataReport-DSphGSM3.js} +2 -2
  75. package/dist/{dataTable-CXZF0lrW.cjs → dataTable-DAnK1_fd.cjs} +1 -1
  76. package/dist/{dataTable-C4gJg-yV.js → dataTable-uggcjK7Q.js} +1 -1
  77. package/dist/{datetime-CaDdSDdw.cjs → datetime-BWympowa.cjs} +1 -1
  78. package/dist/{datetime-ZRAJmN_d.js → datetime-D9gnfOdg.js} +2 -2
  79. package/dist/{deepClusterSlipSurface-C6yzS5dc.cjs → deepClusterSlipSurface-C18NcKeC.cjs} +1 -1
  80. package/dist/{deepClusterSlipSurface-BSycbE_x.js → deepClusterSlipSurface-DAp7f9nM.js} +24 -24
  81. package/dist/{deepDataMatrix-CuOJSX0e.js → deepDataMatrix-BFyrd1Xs.js} +13 -13
  82. package/dist/{deepDataMatrix-Cx_0i6Bn.cjs → deepDataMatrix-CnQqNgbw.cjs} +1 -1
  83. package/dist/{deepDisplacement3D-CIAFF6Mk.cjs → deepDisplacement3D-Cr9R2oU9.cjs} +1 -1
  84. package/dist/{deepDisplacement3D-O5A29Yh9.js → deepDisplacement3D-DRVOXAbG.js} +2 -2
  85. package/dist/{deepDisplacementChart-gAD_by8F.cjs → deepDisplacementChart-CqG7YPHv.cjs} +1 -1
  86. package/dist/{deepDisplacementChart-cg7TaHvl.js → deepDisplacementChart-fSIiAvtU.js} +63 -63
  87. package/dist/{deepDisplacementChart-CmwxF9VA.cjs → deepDisplacementChart-fvkxms5F.cjs} +1 -1
  88. package/dist/{deepDisplacementChart-CSTT_OoR.js → deepDisplacementChart-n_7q9VJo.js} +20 -20
  89. package/dist/{deepDisplacementView-Cu5sp5x1.cjs → deepDisplacementView-BGRQwhPs.cjs} +1 -1
  90. package/dist/{deepDisplacementView-Dhkq7R8X.js → deepDisplacementView-DABga_r4.js} +1 -1
  91. package/dist/{deepNodeTemperatureChart-D2QFPyLj.cjs → deepNodeTemperatureChart-Ceaqx0Md.cjs} +1 -1
  92. package/dist/{deepNodeTemperatureChart-BHtKQN-w.js → deepNodeTemperatureChart-DH25aSkV.js} +2 -2
  93. package/dist/{deepTangentAngleChart-ByQlg92Q.js → deepTangentAngleChart-CcEM6kbr.js} +13 -13
  94. package/dist/{deepTangentAngleChart-CjT7UKjk.cjs → deepTangentAngleChart-DRakLdpC.cjs} +1 -1
  95. package/dist/{deepTemperatureField-xV_PNi2G.js → deepTemperatureField-CXo3VM3s.js} +52 -52
  96. package/dist/{deepTemperatureField-DTgK45eZ.cjs → deepTemperatureField-DKdTaecu.cjs} +1 -1
  97. package/dist/{deepTrendChart-DBgmMUOQ.cjs → deepTrendChart-DjApOBNe.cjs} +1 -1
  98. package/dist/{deepTrendChart-BHkS7cqD.js → deepTrendChart-NeIMArTR.js} +16 -16
  99. package/dist/{deviceOnlineStatus-mIDsyFai.cjs → deviceOnlineStatus-B3073oKp.cjs} +1 -1
  100. package/dist/{deviceOnlineStatus-x2HGgX0Z.js → deviceOnlineStatus-bMmaZwOo.js} +2 -2
  101. package/dist/{deviceStatus-fFBNgUnk.js → deviceStatus-CuMgyh0r.js} +7 -7
  102. package/dist/{deviceStatus-CAz7UNXA.cjs → deviceStatus-WYPNhueL.cjs} +1 -1
  103. package/dist/{displacementDataTable-sqXNQCuo.cjs → displacementDataTable-BQoCDlqo.cjs} +1 -1
  104. package/dist/{displacementDataTable-DH1joAGy.js → displacementDataTable-PEEXI5aB.js} +11 -11
  105. package/dist/{displacementTrajectoryChart-DOplm2WI.cjs → displacementTrajectoryChart-BgWXNpIP.cjs} +1 -1
  106. package/dist/{displacementTrajectoryChart-DMrT8etH.js → displacementTrajectoryChart-CxdhS7G_.js} +32 -32
  107. package/dist/{displacementTrendChart-Do55_BUl.cjs → displacementTrendChart-5fu0V6Lz.cjs} +1 -1
  108. package/dist/{displacementTrendChart-CaMNDm-f.js → displacementTrendChart-BojyAmE2.js} +17 -17
  109. package/dist/{dxf-BYb_mxfH.js → dxf-CgpUTadv.js} +2 -2
  110. package/dist/{dxf-BdzF3xvx.cjs → dxf-DuJP6IFj.cjs} +1 -1
  111. package/dist/{dzc-DqNO6VS1.js → dzc-CMtt910G.js} +5 -5
  112. package/dist/{dzc-z6FhUmlo.cjs → dzc-MN8YHrIQ.cjs} +1 -1
  113. package/dist/{emergencyPlan-vgQTrH0X.cjs → emergencyPlan-DCKeHU5X.cjs} +1 -1
  114. package/dist/{emergencyPlan-BXf-0LRs.js → emergencyPlan-DFpC2v0J.js} +3 -3
  115. package/dist/{evn-D0pZ7eVz.cjs → evn-B_t1PAAb.cjs} +1 -1
  116. package/dist/{evn-YODKEBYe.js → evn-tgak_Gtq.js} +2 -2
  117. package/dist/{evolutionChart-CgmxWf_V.js → evolutionChart-C4WZZXZK.js} +3 -3
  118. package/dist/{evolutionChart-ZBuYVuoc.cjs → evolutionChart-DfHuTjZb.cjs} +1 -1
  119. package/dist/{fileViewer-C5n7F8hK.cjs → fileViewer-CNtLmyDt.cjs} +1 -1
  120. package/dist/{fileViewer-D6W4lYC9.js → fileViewer-gtQ6v3ab.js} +2 -2
  121. package/dist/{filterBar-BtyW3O3r.cjs → filterBar-Ck62WVT4.cjs} +1 -1
  122. package/dist/{filterBar-B2EcSFW2.js → filterBar-km1uxSn-.js} +2 -2
  123. package/dist/{fireCombustionCurve-XhkLz9eJ.cjs → fireCombustionCurve-C2YhGsVF.cjs} +1 -1
  124. package/dist/{fireCombustionCurve-BYa_t1Kj.js → fireCombustionCurve-CXZMU6mP.js} +3 -3
  125. package/dist/{fireFilterBar-CDPaQTVh.js → fireFilterBar-Ch3Tn3rr.js} +2 -2
  126. package/dist/{fireFilterBar-kskVSjRC.cjs → fireFilterBar-E_q7YyzX.cjs} +1 -1
  127. package/dist/{fireHistoryTable-D1WHAdJO.js → fireHistoryTable-Bo0NOq7N.js} +2 -2
  128. package/dist/{fireHistoryTable-BfFWM7dn.cjs → fireHistoryTable-CljUtT_x.cjs} +1 -1
  129. package/dist/{gag-CDs2jAvl.cjs → gag-CRcph8A7.cjs} +1 -1
  130. package/dist/{gag-LfKVICbO.js → gag-DgvTasnt.js} +2 -2
  131. package/dist/{gasStationList-DyKzPbSS.js → gasStationList-0-yV6E9M.js} +9 -9
  132. package/dist/{gasStationList-BJJcB5dZ.cjs → gasStationList-BKNG2Io8.cjs} +1 -1
  133. package/dist/{geo3dViewer-BlkAAm5j.js → geo3dViewer-DKNeHhJN.js} +3 -3
  134. package/dist/{geo3dViewer-BboRCk5B.cjs → geo3dViewer-DLReQ9-s.cjs} +1 -1
  135. package/dist/{glbModel-71er-YKJ.cjs → glbModel-B4L4XRYs.cjs} +1 -1
  136. package/dist/{glbModel-BSELk7OE.js → glbModel-CMx1K7LV.js} +2 -2
  137. package/dist/{globalObjectSelector-CIKfqySc.cjs → globalObjectSelector-CNwLE8_0.cjs} +1 -1
  138. package/dist/{globalObjectSelector-C4NjRabc.js → globalObjectSelector-ClUjobt2.js} +1 -1
  139. package/dist/{gnssFilterBar-Bo88FW_c.cjs → gnssFilterBar-BT6IvBC6.cjs} +1 -1
  140. package/dist/{gnssFilterBar-CuMX4SEH.js → gnssFilterBar-CgcgxJKy.js} +2 -2
  141. package/dist/{gnssHistoryTable-wyhk4inh.js → gnssHistoryTable-PArk3wLl.js} +2 -2
  142. package/dist/{gnssHistoryTable-CRcIb3xh.cjs → gnssHistoryTable-V0sopHb0.cjs} +1 -1
  143. package/dist/{gnssMapView-C-75Vfyz.cjs → gnssMapView-DHDmtovh.cjs} +2 -2
  144. package/dist/{gnssMapView-CRuNei47.js → gnssMapView-DYbUmKjS.js} +4 -4
  145. package/dist/{gnssSectionProfile-EBXvV8gc.js → gnssSectionProfile-DS_DB9Ai.js} +2 -2
  146. package/dist/{gnssSectionProfile-CgsLq7IS.cjs → gnssSectionProfile-xYBPivIx.cjs} +1 -1
  147. package/dist/{gnssTimeSeriesChart-i-v1cVV5.js → gnssTimeSeriesChart-B4-rNUXi.js} +2 -2
  148. package/dist/{gnssTimeSeriesChart-CqHugQiR.cjs → gnssTimeSeriesChart-s0v_GPXl.cjs} +1 -1
  149. package/dist/{gnssXYTrajectory-6dtkerlD.js → gnssXYTrajectory-B87pyC2f.js} +2 -2
  150. package/dist/{gnssXYTrajectory-_6bzeTg4.cjs → gnssXYTrajectory-C6EypJSe.cjs} +1 -1
  151. package/dist/{grd-tqFAnZ2D.js → grd-BmhzMkFW.js} +14 -14
  152. package/dist/{grd-DkBg7xHz.cjs → grd-BsFPCARf.cjs} +1 -1
  153. package/dist/{grdIndass-D8hdCjom.cjs → grdIndass-CPUB9rkw.cjs} +1 -1
  154. package/dist/{grdIndass-Ddqpb62w.js → grdIndass-V9pcvGHw.js} +2 -2
  155. package/dist/{grg-sYQS2KAB.js → grg-DJBOmrCT.js} +12 -12
  156. package/dist/{grg-Hc2N_7ub.cjs → grg-DYx3uqxw.cjs} +1 -1
  157. package/dist/{gridview-DanekIAf.js → gridview-A_2r5oMD.js} +2 -2
  158. package/dist/{gridview-BBh3AukP.cjs → gridview-Dmf7WK8F.cjs} +1 -1
  159. package/dist/{groundwaterFilterBar-B0OfbZ8w.cjs → groundwaterFilterBar-Cx2UjJOa.cjs} +1 -1
  160. package/dist/{groundwaterFilterBar-BWbvoN3g.js → groundwaterFilterBar-QYmLEQQ-.js} +2 -2
  161. package/dist/{groundwaterProfileChart-JaRBS63n.js → groundwaterProfileChart-D9a7xk1o.js} +3 -3
  162. package/dist/{groundwaterProfileChart-B9BjKAH8.cjs → groundwaterProfileChart-DB9z4nS_.cjs} +2 -2
  163. package/dist/{groundwaterTimeCurve-BrGWoCOP.cjs → groundwaterTimeCurve-CTre1KFz.cjs} +1 -1
  164. package/dist/{groundwaterTimeCurve-ljem_m3k.js → groundwaterTimeCurve-ClGX5Vr7.js} +3 -3
  165. package/dist/{groupCard-DHkR3fkl.js → groupCard-7ijH_G6N.js} +2 -2
  166. package/dist/{groupCard-DRmbMQK2.cjs → groupCard-CQfI0hkB.cjs} +1 -1
  167. package/dist/{headerBar-BqPszkVG.js → headerBar-DBqyxn7r.js} +2 -2
  168. package/dist/{headerBar-CSvua7HJ.cjs → headerBar-DsCblHFn.cjs} +1 -1
  169. package/dist/{history-5ZH7SlIA.cjs → history-BHbiezXx.cjs} +1 -1
  170. package/dist/{history-CTYZgtKO.js → history-I6Sbd46e.js} +21 -21
  171. package/dist/index-B8X4_OUp.cjs +612 -0
  172. package/dist/{index-C596S3FR.js → index-yfWcELw0.js} +3358 -3276
  173. package/dist/{insarDeformChart-KcW3eGy0.js → insarDeformChart-2lM46TpO.js} +2 -2
  174. package/dist/{insarDeformChart-IP_FpqTn.cjs → insarDeformChart-DD735ZeO.cjs} +1 -1
  175. package/dist/{insarImageViewer-Y4zOC2Dl.cjs → insarImageViewer-BefRXgj3.cjs} +1 -1
  176. package/dist/{insarImageViewer-eoizq5PE.js → insarImageViewer-Cr0q07Gh.js} +2 -2
  177. package/dist/{kds-Ypv2B0fV.cjs → kds-DQFNJAHh.cjs} +1 -1
  178. package/dist/{kds-CLvXYpcx.js → kds-DbGYv9V3.js} +21 -21
  179. package/dist/{kpiCard-CIoPFCa0.js → kpiCard-BBUGn40l.js} +2 -2
  180. package/dist/{kpiCard-BzbMfAnY.cjs → kpiCard-DqE9XLLY.cjs} +1 -1
  181. package/dist/{landslideMap-DNj_UrIs.cjs → landslideMap-B1Osza1s.cjs} +1 -1
  182. package/dist/{landslideMap-B_YGvpMe.js → landslideMap-DBKRG3WQ.js} +15 -15
  183. package/dist/{landslideWarning-B210-Aym.cjs → landslideWarning-CCMOSmbu.cjs} +1 -1
  184. package/dist/{landslideWarning-CXEzKv8a.js → landslideWarning-CZWafalo.js} +32 -32
  185. package/dist/{layerTabs-BIjyBFlq.cjs → layerTabs-CkjTvUpD.cjs} +1 -1
  186. package/dist/{layerTabs-CbfEIbQc.js → layerTabs-ekv5hlF1.js} +2 -2
  187. package/dist/{leaflet-src-B33B2nYW.js → leaflet-src-BASNts_W.js} +1 -1
  188. package/dist/{leaflet-src-CtfSNn4i.cjs → leaflet-src-DOoIS56v.cjs} +1 -1
  189. package/dist/{lerc-CtKLZwuA.js → lerc-C3rGJ3AS.js} +2 -2
  190. package/dist/{lerc-c41VJU5B.cjs → lerc-CJAX-VmU.cjs} +1 -1
  191. package/dist/{lin-yzg8CIhc.js → lin-B989UqR-.js} +5 -5
  192. package/dist/{lin-BpWVq023.cjs → lin-C3G8ojS4.cjs} +1 -1
  193. package/dist/{linIndass-Cdl831hz.cjs → linIndass-B_EZudgP.cjs} +1 -1
  194. package/dist/{linIndass-Bfhb4vFC.js → linIndass-B_MyZtDT.js} +13 -13
  195. package/dist/{lst-Cy3wv6ZP.cjs → lst-Du3HzAAS.cjs} +1 -1
  196. package/dist/{lst-D3vSkXZB.js → lst-yEYuUFNo.js} +2 -2
  197. package/dist/{manualEntry-CcyyNoct.js → manualEntry-BrCbc4dN.js} +2 -2
  198. package/dist/{manualEntry-B__l4SN8.cjs → manualEntry-Dpe4mmqt.cjs} +1 -1
  199. package/dist/{mapBackground-BXRaTXR3.cjs → mapBackground-7fpabNWg.cjs} +1 -1
  200. package/dist/{mapBackground-kHBqDQUI.js → mapBackground-KMQe81yq.js} +3 -3
  201. package/dist/{mappingList-BHlm_asK.js → mappingList-BETmoArV.js} +9 -9
  202. package/dist/{mappingList-BbMAwf4p.cjs → mappingList-C6YqJzCD.cjs} +1 -1
  203. package/dist/{markdownViewer-P-EDWaDf.cjs → markdownViewer-By1PCCx9.cjs} +1 -1
  204. package/dist/{markdownViewer-C2nPOliq.js → markdownViewer-DEum5Sq3.js} +2 -2
  205. package/dist/{mix-control-modal-BYzwSJN9.cjs → mix-control-modal-CIKQuHLu.cjs} +1 -1
  206. package/dist/{mix-control-modal-BlxlEQke.js → mix-control-modal-C_YrfKMR.js} +13 -13
  207. package/dist/{mixGrid-C7QVCY-e.js → mixGrid-Dcpdjhog.js} +11 -11
  208. package/dist/{mixGrid-BEAf-HMl.cjs → mixGrid-WAdZ9FOt.cjs} +1 -1
  209. package/dist/mixdashboards.cjs +1 -1
  210. package/dist/mixdashboards.css +1 -1
  211. package/dist/mixdashboards.js +2 -2
  212. package/dist/{mjpegCamera-xiXWBGwD.cjs → mjpegCamera-5S_zSDRC.cjs} +1 -1
  213. package/dist/{mjpegCamera-BSBOqNGL.js → mjpegCamera-n40ZBceZ.js} +2 -2
  214. package/dist/{monitorAlert-F8brZ-G5.cjs → monitorAlert-BYckQyen.cjs} +1 -1
  215. package/dist/{monitorAlert-KX7ihBCC.js → monitorAlert-Bn96eK5y.js} +20 -20
  216. package/dist/{monitorData-BQZmh2L9.js → monitorData-ChffwZY9.js} +14 -14
  217. package/dist/{monitorData-MmsF7_2B.cjs → monitorData-DqT0oZsT.cjs} +1 -1
  218. package/dist/{monitorSpeedChart-D4yHpJuy.cjs → monitorSpeedChart-B_OjKwHx.cjs} +1 -1
  219. package/dist/{monitorSpeedChart-DsBjKn13.js → monitorSpeedChart-DAG8aM7s.js} +1 -1
  220. package/dist/{mxa-zx1c67sf.js → mxa-D558Kd9S.js} +2 -2
  221. package/dist/{mxa-NGOyTXCo.cjs → mxa-DN2nuVsn.cjs} +1 -1
  222. package/dist/{myValue-CB5_VkLC.js → myValue-CIRtQF6N.js} +2 -2
  223. package/dist/{myValue-BEiGcJm4.cjs → myValue-GiODK3JU.cjs} +1 -1
  224. package/dist/{myValueList-DWAoId4n.js → myValueList-CDHZwFfs.js} +2 -2
  225. package/dist/{myValueList-CmJh3rOk.cjs → myValueList-CM7tw3MA.cjs} +1 -1
  226. package/dist/{objectList-B7VoUJhX.js → objectList-CPWt8cfw.js} +442 -442
  227. package/dist/objectList-Hts0S3rP.cjs +1 -0
  228. package/dist/objectList.tabs-BRCf7OY9.cjs +1 -0
  229. package/dist/objectList.tabs-PfI3XJbJ.js +20 -0
  230. package/dist/{objectListAPP-CILIOX7J.js → objectListAPP-Bm1O9FK8.js} +530 -530
  231. package/dist/objectListAPP-CUFdlUaI.cjs +1 -0
  232. package/dist/{percentBar-wFjS3qnX.cjs → percentBar-TXsRXDGf.cjs} +1 -1
  233. package/dist/{percentBar-Cjt-eHhh.js → percentBar-nYq4n6rA.js} +15 -15
  234. package/dist/{photo-BwRXd_a1.js → photo-CfVWLD7p.js} +23 -23
  235. package/dist/{photo-DPr9_bHE.cjs → photo-lw0wfZLf.cjs} +1 -1
  236. package/dist/{pie-Bhsb7wCM.js → pie-5XFtIfvu.js} +2 -2
  237. package/dist/{pie-BJAslcMQ.cjs → pie-f8erramO.cjs} +1 -1
  238. package/dist/{placeholder-BMTCy9hN.js → placeholder-B0FLbT-i.js} +1 -1
  239. package/dist/{placeholder-DG7hytzw.cjs → placeholder-hqS8Zku3.cjs} +1 -1
  240. package/dist/{pressBtn-DcTfh3zH.js → pressBtn-C_HN1xp4.js} +13 -13
  241. package/dist/{pressBtn-2VAEfSxb.cjs → pressBtn-DXmPUIPV.cjs} +1 -1
  242. package/dist/{processTable-DEuk6vh1.cjs → processTable-BKYUhG3i.cjs} +1 -1
  243. package/dist/{processTable-CSPIzkPI.js → processTable-kUYXEht3.js} +2 -2
  244. package/dist/{progressBar-BgG6adaw.cjs → progressBar-C20IpdwG.cjs} +1 -1
  245. package/dist/{progressBar-CUx2nTzK.js → progressBar-I0SoSWvW.js} +2 -2
  246. package/dist/{progressCircle-BrasnqQa.js → progressCircle-CXa4PxsM.js} +2 -2
  247. package/dist/{progressCircle-Bp5c_Ozg.cjs → progressCircle-g5Jvkl2j.cjs} +1 -1
  248. package/dist/{qrcode-8CEAtCTd.cjs → qrcode-B9gsCPu6.cjs} +1 -1
  249. package/dist/{qrcode-Ds0zkoW0.js → qrcode-D4rppepA.js} +2 -2
  250. package/dist/{raceBar-HxcGIxXh.js → raceBar-673aVpec.js} +15 -15
  251. package/dist/{raceBar-DYhf88PA.cjs → raceBar-DeTBOgp9.cjs} +1 -1
  252. package/dist/{rad-d6E_p3or.cjs → rad-BYdK1-pr.cjs} +1 -1
  253. package/dist/{rad-Dt01D6Sq.js → rad-DMxztkfm.js} +2 -2
  254. package/dist/{radarMapViewer-CIl0E9Jr.cjs → radarMapViewer-Byho9Cy4.cjs} +1 -1
  255. package/dist/{radarMapViewer-DTNiqhPT.js → radarMapViewer-c31u_6-s.js} +2 -2
  256. package/dist/{rainfallFilterBar-Cyr-lcNk.cjs → rainfallFilterBar-DEyqJlhg.cjs} +1 -1
  257. package/dist/{rainfallFilterBar-CgvbQoZt.js → rainfallFilterBar-DP5QcEYa.js} +2 -2
  258. package/dist/{rainfallTimeCurve-BlcizpvR.js → rainfallTimeCurve-D1j1jY4q.js} +3 -3
  259. package/dist/{rainfallTimeCurve-CIobctHL.cjs → rainfallTimeCurve-DFBCodU-.cjs} +1 -1
  260. package/dist/{rangeLin-DjAibGQu.js → rangeLin-DIHwJYbw.js} +24 -24
  261. package/dist/{rangeLin-DnXF_LSw.cjs → rangeLin-qjiBWOUN.cjs} +1 -1
  262. package/dist/{realtimeEvolutionMap-DTq8vTEn.cjs → realtimeEvolutionMap-B1lqsqTu.cjs} +1 -1
  263. package/dist/{realtimeEvolutionMap-NNOUj7CK.js → realtimeEvolutionMap-HFYMlPEo.js} +2 -2
  264. package/dist/{regionBar-HNGYQOk4.js → regionBar-Vew5aANa.js} +2 -2
  265. package/dist/{regionBar-Dn2vPvxX.cjs → regionBar-Y-zCbc5M.cjs} +1 -1
  266. package/dist/{request-73XS8hJO.js → request-C426jmB-.js} +15 -15
  267. package/dist/{request-7CmMbSly.cjs → request-Dfwbc0Ix.cjs} +1 -1
  268. package/dist/{retainer1-_IveOR-G.cjs → retainer1-DZ0d512Q.cjs} +1 -1
  269. package/dist/{retainer1-Dl97htVm.js → retainer1-exoaRu1C.js} +3 -3
  270. package/dist/{retainer2-DBA-LNsh.cjs → retainer2-CbOuAuXM.cjs} +1 -1
  271. package/dist/{retainer2-CCyx95eL.js → retainer2-e5auct4d.js} +3 -3
  272. package/dist/{retainerRecordList-DLjc3O0S.js → retainerRecordList-C6p0YgbS.js} +7 -7
  273. package/dist/{retainerRecordList-BJukB31J.cjs → retainerRecordList-CN5rlQCz.cjs} +1 -1
  274. package/dist/{retainerRecordListAPP-BRClySi7.js → retainerRecordListAPP-BLZP1qfM.js} +11 -11
  275. package/dist/{retainerRecordListAPP-CzUJnr0y.cjs → retainerRecordListAPP-BMfNUL2Y.cjs} +1 -1
  276. package/dist/{ringTopN-B6UXfAQ7.js → ringTopN-B46FO90p.js} +2 -2
  277. package/dist/{ringTopN-BtTdkj35.cjs → ringTopN-Cs-W2GHE.cjs} +1 -1
  278. package/dist/{riskRegionTable-DUbIlT4A.cjs → riskRegionTable-CEMe-j-s.cjs} +1 -1
  279. package/dist/{riskRegionTable-BSNKIgmm.js → riskRegionTable-Dcq9GokX.js} +12 -12
  280. package/dist/{sankey-r7fJCig2.cjs → sankey-BUZeqik5.cjs} +1 -1
  281. package/dist/{sankey-CpXpQ28Y.js → sankey-N4N0atYu.js} +8 -8
  282. package/dist/{scd-Cd1dYi0u.cjs → scd-BxELsSzZ.cjs} +1 -1
  283. package/dist/{scd-BDii1Ody.js → scd-pyN1iu0v.js} +2 -2
  284. package/dist/{sideMenu-KGl1TMT9.js → sideMenu-kdSIC9Q9.js} +2 -2
  285. package/dist/{sideMenu-DdTBrLti.cjs → sideMenu-yek1FXug.cjs} +1 -1
  286. package/dist/{slopeStability-BNZYNDeI.cjs → slopeStability-CFgG5z4k.cjs} +1 -1
  287. package/dist/{slopeStability-KHaHZRF9.js → slopeStability-D0kdENCl.js} +26 -26
  288. package/dist/{speedCurve-DfOOKhu3.js → speedCurve-ByKQYhAP.js} +2 -2
  289. package/dist/{speedCurve-JI7BabEv.cjs → speedCurve-DC30NdWH.cjs} +1 -1
  290. package/dist/{stackedBar-Cwh6eyNj.js → stackedBar-BWe-Gg-j.js} +9 -9
  291. package/dist/{stackedBar-Ch22oNx5.cjs → stackedBar-C_Mzs6KH.cjs} +1 -1
  292. package/dist/{stressFilterBar-DqkA3vpk.cjs → stressFilterBar-69oPb8K0.cjs} +1 -1
  293. package/dist/{stressFilterBar-DYJ6SRbJ.js → stressFilterBar-AxrkNFiu.js} +2 -2
  294. package/dist/{stressTimeCurve-CcgQKn6E.js → stressTimeCurve-CWj8LApY.js} +3 -3
  295. package/dist/{stressTimeCurve-BAM1gLA_.cjs → stressTimeCurve-ULJR6xC7.cjs} +1 -1
  296. package/dist/{swiper-i98iNjVH.js → swiper-BhGhklI6.js} +2 -2
  297. package/dist/{swiper-BI5SC0Tw.cjs → swiper-DG3JtxJa.cjs} +1 -1
  298. package/dist/tablemanList-BpNOi9yE.cjs +1 -0
  299. package/dist/tablemanList-CHg84US8.js +1024 -0
  300. package/dist/{terminalConfigList-BF_eQVQm.js → terminalConfigList-CwAsPCXS.js} +42 -42
  301. package/dist/{terminalConfigList-C8E0B9h5.cjs → terminalConfigList-DJcXdYE0.cjs} +1 -1
  302. package/dist/{terminalList-bqT8olPQ.cjs → terminalList-CbRTo3t2.cjs} +1 -1
  303. package/dist/{terminalList-I7u9vU9s.js → terminalList-pqc72wpO.js} +45 -45
  304. package/dist/{terminalListAPP-Dyj6JV0Y.cjs → terminalListAPP-DAJnN1LF.cjs} +1 -1
  305. package/dist/{terminalListAPP-C8pAt4tP.js → terminalListAPP-DnkjJnKB.js} +17 -17
  306. package/dist/{textbox-o3LGkbm7.js → textbox-ClIdpIhw.js} +2 -2
  307. package/dist/{textbox-DAwUjKVj.cjs → textbox-jioFEUOp.cjs} +1 -1
  308. package/dist/{timeQueryBar-CGivKT2Q.cjs → timeQueryBar-0b_LfSSk.cjs} +1 -1
  309. package/dist/{timeQueryBar-J9eYrlap.js → timeQueryBar-BsAOi911.js} +1 -1
  310. package/dist/{timeSeries-BRz6aekM.cjs → timeSeries-BypOZwTe.cjs} +1 -1
  311. package/dist/{timeSeries-Cl5hKmMr.js → timeSeries-Cij4RwSS.js} +3 -3
  312. package/dist/{timeSeriesCurve-0YqHtEOS.js → timeSeriesCurve-CbNkVXI6.js} +3 -3
  313. package/dist/{timeSeriesCurve-CfLJKtYF.cjs → timeSeriesCurve-fOO2r9gV.cjs} +1 -1
  314. package/dist/{toggleBtn-CbJdpQ_Y.cjs → toggleBtn-BhQia411.cjs} +1 -1
  315. package/dist/{toggleBtn-IrlxxdCc.js → toggleBtn-mPMmYtY4.js} +2 -2
  316. package/dist/{trajectoryConfigPanel-C_lfSjMt.cjs → trajectoryConfigPanel-BDFc6t60.cjs} +1 -1
  317. package/dist/{trajectoryConfigPanel-ajFhmZqM.js → trajectoryConfigPanel-BaO4pluQ.js} +1 -1
  318. package/dist/{trajectoryScatter-DgIewXbg.cjs → trajectoryScatter-CXxpfjmG.cjs} +1 -1
  319. package/dist/{trajectoryScatter-CmWtyq7S.js → trajectoryScatter-DeMwvDfW.js} +2 -2
  320. package/dist/{universalConfigPanel-uIrVPthg.js → universalConfigPanel-7ZN2XUD_.js} +1 -1
  321. package/dist/{universalConfigPanel-BeAzvqBa.cjs → universalConfigPanel-G6QYCr_9.cjs} +1 -1
  322. package/dist/{universalTable-Bq7Kd7fL.js → universalTable-C6rgJ9ql.js} +2 -2
  323. package/dist/{universalTable-DCl0jAda.cjs → universalTable-CjWekzt0.cjs} +1 -1
  324. package/dist/{video-Dbw-JZre.js → video-CkjKwH7G.js} +2 -2
  325. package/dist/{video-8HMZlBYI.cjs → video-DmdF1vxW.cjs} +1 -1
  326. package/dist/{videoMonitor-DhdgNBSb.js → videoMonitor-BcI798fT.js} +13 -13
  327. package/dist/{videoMonitor-2hwOLldO.cjs → videoMonitor-CcBhoOxP.cjs} +1 -1
  328. package/dist/{vlu-CQcWvMK-.js → vlu-CYJV_aWu.js} +2 -2
  329. package/dist/{vlu-DfPaVton.cjs → vlu-HjzXfkGC.cjs} +1 -1
  330. package/dist/{warningOverview-uOag_nZW.js → warningOverview-BhzPVBZI.js} +3 -3
  331. package/dist/{warningOverview-BskwWe2j.cjs → warningOverview-DlfyTr4g.cjs} +1 -1
  332. package/dist/{weather-B1md9HVk.cjs → weather-BX8CgyGy.cjs} +1 -1
  333. package/dist/{weather-CvebIEMR.js → weather-DMlM1tya.js} +2 -2
  334. package/dist/{windLin-Bhrf1Iwf.cjs → windLin-B_DYUbT3.cjs} +1 -1
  335. package/dist/{windLin-CLDJ1Cyh.js → windLin-ColVnL0M.js} +42 -42
  336. package/package.json +1 -1
  337. package/dist/index-CLrFRvna.cjs +0 -612
  338. package/dist/mixiotObjectListApi-C7R9sYdy.js +0 -214
  339. package/dist/mixiotObjectListApi-DhTZ5v0p.cjs +0 -1
  340. package/dist/objectList-BYIX-gD7.cjs +0 -1
  341. package/dist/objectListAPP-B9zJ8-Wa.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";var V=Object.defineProperty,I=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var g=(d,r,s)=>r in d?V(d,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):d[r]=s,C=(d,r)=>{for(var s in r||(r={}))Y.call(r,s)&&g(d,s,r[s]);if(M)for(var s of M(r))j.call(r,s)&&g(d,s,r[s]);return d},z=(d,r)=>I(d,R(r));var O=(d,r,s)=>new Promise((t,p)=>{var y=l=>{try{v(s.next(l))}catch(S){p(S)}},b=l=>{try{v(s.throw(l))}catch(S){p(S)}},v=l=>l.done?t(l.value):Promise.resolve(l.value).then(y,b);v((s=s.apply(d,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),A=require("./BaseComponent-DjjN5Pou.cjs"),h=require("./index-CLrFRvna.cjs"),H=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-rtn-icon-BrsJIU8J.cjs"),w={class:"mix-body"},P={class:"mix-footer"},k={class:"time-info"},F={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"历程",NAME_EN:"Retainer1",ORDER:1,PLATFORM:["pc","screen","mobile"]},B={nameSize:16,valueSize:48,timeSize:12,radiusSize:8,bgColor:"#fff",titleColor:"#111",textColor:"#111",titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},N=[{object_id:"",retainer:"",fv:"",fv_name:"",retainer_code:"",status:[{code:0,text:"结束",color:"#409eff"},{code:1,text:"进行",color:"#f56c6c"}]}],L=["object_id","retainer","fv","fv_name","retainer_code"],$=["mosaic"],q=1,U={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},W={DEFAULT:F,OPTIONS:B,DATA:N,PARAMS:L,SOURCE:$,ITEMS:q,COMMON:U},G=o.defineComponent(z(C({},W),{__name:"retainer1",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(d){const r=d,s="--",t=o.reactive({title:s,statusText:s,statusColor:"#409eff",value:s,fvName:"",startTime:s,endTime:"- - - -",duration:s,status:0,startTimestamp:0}),p=f=>f<10?"0"+f:f,y=f=>f>=3600?`${p(Math.floor(f/3600))}:${p(Math.floor(f/60)%60)}:${p(Math.floor(f%60))}`:`${p(Math.floor(f/60))}:${p(Math.floor(f%60))}`;class b extends A.BaseComponent{constructor(){super(...arguments),this.subscribed=!1,this.durationTimer=null}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",16),valueSize:this.getOptionValue("valueSize",48),timeSize:this.getOptionValue("timeSize",12),radiusSize:this.getOptionValue("radiusSize",8)}}init(){var e,i,c;if(this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=N),this.props.mode==="edit"){const a=((i=this.props.conf.data)==null?void 0:i[0])||{},n=((c=a.status)==null?void 0:c[1])||{text:"进行",color:"#f56c6c"};t.title="设备名称",t.fvName=a.fv_name||a.fv||"FV",t.statusText=n.text,t.statusColor=n.color,t.value="123.45",t.startTime=h.dayjs().subtract(1,"hour").format("YYYY-MM-DD HH:mm:ss"),t.endTime="- - - -",t.duration="01:23"}}startDurationTimer(){this.durationTimer&&clearInterval(this.durationTimer),this.durationTimer=window.setInterval(()=>{if(t.status===1&&t.startTimestamp>0){const e=Math.floor((Date.now()-t.startTimestamp)/1e3);t.duration=y(e)}},1e3)}getPreviewHelper(){return{preview:()=>O(this,null,function*(){try{const i=yield new(yield Promise.resolve().then(()=>require("./history-5ZH7SlIA.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(i)}catch(e){console.error("[Retainer1] 获取历史数据失败:",e)}}),unregister:()=>{this.durationTimer&&(clearInterval(this.durationTimer),this.durationTimer=null)}}}onPreview(){var a;if(this.subscribed)return;const e=this.resolveObjectId();this.subscribeRetainer(e),(((a=this.props.conf.data)==null?void 0:a[0])||{}).fv&&this.subscribeFv(e),this.subscribed=!0}setSocketData(e){if(e){if(e.event==="retainer_result"&&e.source_event){const i=e.source_event;i.retained===1||i.retained==="1"?this.handleRetainerOpen(i):(i.retained===0||i.retained==="0")&&this.handleRetainerClose(i);return}switch(e.event){case"retainer_open":this.handleRetainerOpen(e);break;case"retainer_close":this.handleRetainerClose(e);break;case"retainer_event":this.handleRetainerEvent(e);break;case"recv_fv":this.handleFvData(e);break}}}handleRetainerOpen(e){var n,u;const{conf:i}=this.props,c=((n=i.data)==null?void 0:n[0])||{};t.fvName=c.fv_name||c.fv||"",t.status=1;const a=(u=c.status)==null?void 0:u.find(m=>m.code===1);if(t.statusText=(a==null?void 0:a.text)||"进行",t.statusColor=(a==null?void 0:a.color)||"#f56c6c",t.title=e.label_local||e.label_en||i.name||"--",e.opened_at){t.startTime=h.dayjs(e.opened_at).format("YYYY-MM-DD HH:mm:ss"),t.startTimestamp=h.dayjs(e.opened_at).valueOf();const m=Math.floor((Date.now()-t.startTimestamp)/1e3);t.duration=y(m),this.startDurationTimer()}t.endTime="- - - -"}handleRetainerClose(e){var n,u;const{conf:i}=this.props,c=((n=i.data)==null?void 0:n[0])||{};t.status=0;const a=(u=c.status)==null?void 0:u.find(m=>m.code===0);if(t.statusText=(a==null?void 0:a.text)||"结束",t.statusColor=(a==null?void 0:a.color)||"#409eff",e.close_at&&(t.endTime=h.dayjs(e.close_at).format("YYYY-MM-DD HH:mm:ss")),e.opened_at&&e.close_at){const m=h.dayjs(e.opened_at).valueOf(),T=h.dayjs(e.close_at).valueOf(),D=Math.floor((T-m)/1e3);t.duration=y(D)}this.durationTimer&&(clearInterval(this.durationTimer),this.durationTimer=null)}handleRetainerEvent(e){}handleFvData(e){var a,n;const c=(((a=this.props.conf.data)==null?void 0:a[0])||{}).fv;if(c)try{const u=(n=e.data)==null?void 0:n[c];u!==void 0&&(t.value=u)}catch(u){console.error("[Retainer1] 处理 FV 数据失败:",u)}}setHistoryData(e){var a,n,u;const{conf:i}=this.props,c=((a=i.data)==null?void 0:a[0])||{};try{const m=(u=(n=e==null?void 0:e.history)==null?void 0:n[0])==null?void 0:u[0];m&&this.updateParams(m,c,i)}catch(m){console.error("[Retainer1] setHistoryData error:",m),this.resetParams()}}updateParams(e,i,c){var m,T,D;const a=i.fv;t.fvName=i.fv_name||a||"",t.status=typeof e.status=="string"?parseInt(e.status):(m=e.status)!=null?m:0;const n=(T=i.status)==null?void 0:T.find(_=>_.code===t.status);if(t.statusText=(n==null?void 0:n.text)||(t.status===1?"进行":"结束"),t.statusColor=(n==null?void 0:n.color)||(t.status===1?"#f56c6c":"#409eff"),t.title=e.label_cn||c.name||s,t.startTime=e.start_time?h.dayjs(e.start_time).format("YYYY-MM-DD HH:mm:ss"):s,t.endTime=e.end_time?h.dayjs(e.end_time).format("YYYY-MM-DD HH:mm:ss"):"- - - -",e.start_time){const _=h.dayjs(e.start_time).valueOf();if(t.startTimestamp=_,e.end_time){const x=h.dayjs(e.end_time).valueOf();t.duration=y(Math.floor((x-_)/1e3))}else{const x=Math.floor((Date.now()-_)/1e3);t.duration=y(x),this.startDurationTimer()}}else t.duration="00:00";let u=s;e.mosaic&&Array.isArray(e.mosaic)&&e.mosaic.length>0&&(u=(D=e.mosaic[0][a])!=null?D:s),t.value=u}resetParams(){t.title=s,t.statusText=s,t.statusColor="#409eff",t.value=s,t.startTime=s,t.endTime="- - - -",t.duration=s}}const v=new b(r,"retainer1");v.setupLifecycle();const l=v.getStyle(),S=o.computed(()=>H.generateTitleStyle(r.conf.options));return o.watchEffect(()=>{r.conf.historyData&&v.setHistoryData(r.conf.historyData),r.conf.socketData&&v.setSocketData(r.conf.socketData)}),(f,e)=>(o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(l).bgColor,borderRadius:o.unref(l).radiusSize+"px"})},[o.createElementVNode("div",{class:"mix-title",style:o.normalizeStyle(S.value)},o.toDisplayString(r.conf.caption||t.title),5),o.createElementVNode("div",w,[o.createElementVNode("div",{class:"status-tag",style:o.normalizeStyle({fontSize:o.unref(l).nameSize-2+"px",backgroundColor:t.statusColor,color:"#fff"})},o.toDisplayString(t.fvName?t.fvName+"("+t.statusText+")":t.statusText),5),o.createElementVNode("div",{class:"card-value",style:o.normalizeStyle({fontSize:o.unref(l).valueSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.value),5)]),o.createElementVNode("div",P,[o.createElementVNode("div",k,[o.createElementVNode("div",{class:"time-item",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.startTime),5),o.createElementVNode("div",{class:"time-item",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.endTime),5)]),o.createElementVNode("div",{class:"duration",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+4+"px",color:o.unref(l).textColor})},o.toDisplayString(t.duration),5)]),o.renderSlot(f.$slots,"default",{},void 0,!0)],4))}})),J=h._export_sfc(G,[["__scopeId","data-v-ac5c0908"]]);exports.default=J;
1
+ "use strict";var V=Object.defineProperty,I=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var g=(d,r,s)=>r in d?V(d,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):d[r]=s,C=(d,r)=>{for(var s in r||(r={}))Y.call(r,s)&&g(d,s,r[s]);if(M)for(var s of M(r))j.call(r,s)&&g(d,s,r[s]);return d},z=(d,r)=>I(d,R(r));var O=(d,r,s)=>new Promise((t,p)=>{var y=l=>{try{v(s.next(l))}catch(S){p(S)}},b=l=>{try{v(s.throw(l))}catch(S){p(S)}},v=l=>l.done?t(l.value):Promise.resolve(l.value).then(y,b);v((s=s.apply(d,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),A=require("./BaseComponent-CJ3CP33o.cjs"),h=require("./index-B8X4_OUp.cjs"),H=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-rtn-icon-BrsJIU8J.cjs"),w={class:"mix-body"},P={class:"mix-footer"},k={class:"time-info"},F={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"历程",NAME_EN:"Retainer1",ORDER:1,PLATFORM:["pc","screen","mobile"]},B={nameSize:16,valueSize:48,timeSize:12,radiusSize:8,bgColor:"#fff",titleColor:"#111",textColor:"#111",titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},N=[{object_id:"",retainer:"",fv:"",fv_name:"",retainer_code:"",status:[{code:0,text:"结束",color:"#409eff"},{code:1,text:"进行",color:"#f56c6c"}]}],L=["object_id","retainer","fv","fv_name","retainer_code"],$=["mosaic"],q=1,U={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},W={DEFAULT:F,OPTIONS:B,DATA:N,PARAMS:L,SOURCE:$,ITEMS:q,COMMON:U},G=o.defineComponent(z(C({},W),{__name:"retainer1",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(d){const r=d,s="--",t=o.reactive({title:s,statusText:s,statusColor:"#409eff",value:s,fvName:"",startTime:s,endTime:"- - - -",duration:s,status:0,startTimestamp:0}),p=f=>f<10?"0"+f:f,y=f=>f>=3600?`${p(Math.floor(f/3600))}:${p(Math.floor(f/60)%60)}:${p(Math.floor(f%60))}`:`${p(Math.floor(f/60))}:${p(Math.floor(f%60))}`;class b extends A.BaseComponent{constructor(){super(...arguments),this.subscribed=!1,this.durationTimer=null}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",16),valueSize:this.getOptionValue("valueSize",48),timeSize:this.getOptionValue("timeSize",12),radiusSize:this.getOptionValue("radiusSize",8)}}init(){var e,i,c;if(this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=N),this.props.mode==="edit"){const a=((i=this.props.conf.data)==null?void 0:i[0])||{},n=((c=a.status)==null?void 0:c[1])||{text:"进行",color:"#f56c6c"};t.title="设备名称",t.fvName=a.fv_name||a.fv||"FV",t.statusText=n.text,t.statusColor=n.color,t.value="123.45",t.startTime=h.dayjs().subtract(1,"hour").format("YYYY-MM-DD HH:mm:ss"),t.endTime="- - - -",t.duration="01:23"}}startDurationTimer(){this.durationTimer&&clearInterval(this.durationTimer),this.durationTimer=window.setInterval(()=>{if(t.status===1&&t.startTimestamp>0){const e=Math.floor((Date.now()-t.startTimestamp)/1e3);t.duration=y(e)}},1e3)}getPreviewHelper(){return{preview:()=>O(this,null,function*(){try{const i=yield new(yield Promise.resolve().then(()=>require("./history-BHbiezXx.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(i)}catch(e){console.error("[Retainer1] 获取历史数据失败:",e)}}),unregister:()=>{this.durationTimer&&(clearInterval(this.durationTimer),this.durationTimer=null)}}}onPreview(){var a;if(this.subscribed)return;const e=this.resolveObjectId();this.subscribeRetainer(e),(((a=this.props.conf.data)==null?void 0:a[0])||{}).fv&&this.subscribeFv(e),this.subscribed=!0}setSocketData(e){if(e){if(e.event==="retainer_result"&&e.source_event){const i=e.source_event;i.retained===1||i.retained==="1"?this.handleRetainerOpen(i):(i.retained===0||i.retained==="0")&&this.handleRetainerClose(i);return}switch(e.event){case"retainer_open":this.handleRetainerOpen(e);break;case"retainer_close":this.handleRetainerClose(e);break;case"retainer_event":this.handleRetainerEvent(e);break;case"recv_fv":this.handleFvData(e);break}}}handleRetainerOpen(e){var n,u;const{conf:i}=this.props,c=((n=i.data)==null?void 0:n[0])||{};t.fvName=c.fv_name||c.fv||"",t.status=1;const a=(u=c.status)==null?void 0:u.find(m=>m.code===1);if(t.statusText=(a==null?void 0:a.text)||"进行",t.statusColor=(a==null?void 0:a.color)||"#f56c6c",t.title=e.label_local||e.label_en||i.name||"--",e.opened_at){t.startTime=h.dayjs(e.opened_at).format("YYYY-MM-DD HH:mm:ss"),t.startTimestamp=h.dayjs(e.opened_at).valueOf();const m=Math.floor((Date.now()-t.startTimestamp)/1e3);t.duration=y(m),this.startDurationTimer()}t.endTime="- - - -"}handleRetainerClose(e){var n,u;const{conf:i}=this.props,c=((n=i.data)==null?void 0:n[0])||{};t.status=0;const a=(u=c.status)==null?void 0:u.find(m=>m.code===0);if(t.statusText=(a==null?void 0:a.text)||"结束",t.statusColor=(a==null?void 0:a.color)||"#409eff",e.close_at&&(t.endTime=h.dayjs(e.close_at).format("YYYY-MM-DD HH:mm:ss")),e.opened_at&&e.close_at){const m=h.dayjs(e.opened_at).valueOf(),T=h.dayjs(e.close_at).valueOf(),D=Math.floor((T-m)/1e3);t.duration=y(D)}this.durationTimer&&(clearInterval(this.durationTimer),this.durationTimer=null)}handleRetainerEvent(e){}handleFvData(e){var a,n;const c=(((a=this.props.conf.data)==null?void 0:a[0])||{}).fv;if(c)try{const u=(n=e.data)==null?void 0:n[c];u!==void 0&&(t.value=u)}catch(u){console.error("[Retainer1] 处理 FV 数据失败:",u)}}setHistoryData(e){var a,n,u;const{conf:i}=this.props,c=((a=i.data)==null?void 0:a[0])||{};try{const m=(u=(n=e==null?void 0:e.history)==null?void 0:n[0])==null?void 0:u[0];m&&this.updateParams(m,c,i)}catch(m){console.error("[Retainer1] setHistoryData error:",m),this.resetParams()}}updateParams(e,i,c){var m,T,D;const a=i.fv;t.fvName=i.fv_name||a||"",t.status=typeof e.status=="string"?parseInt(e.status):(m=e.status)!=null?m:0;const n=(T=i.status)==null?void 0:T.find(_=>_.code===t.status);if(t.statusText=(n==null?void 0:n.text)||(t.status===1?"进行":"结束"),t.statusColor=(n==null?void 0:n.color)||(t.status===1?"#f56c6c":"#409eff"),t.title=e.label_cn||c.name||s,t.startTime=e.start_time?h.dayjs(e.start_time).format("YYYY-MM-DD HH:mm:ss"):s,t.endTime=e.end_time?h.dayjs(e.end_time).format("YYYY-MM-DD HH:mm:ss"):"- - - -",e.start_time){const _=h.dayjs(e.start_time).valueOf();if(t.startTimestamp=_,e.end_time){const x=h.dayjs(e.end_time).valueOf();t.duration=y(Math.floor((x-_)/1e3))}else{const x=Math.floor((Date.now()-_)/1e3);t.duration=y(x),this.startDurationTimer()}}else t.duration="00:00";let u=s;e.mosaic&&Array.isArray(e.mosaic)&&e.mosaic.length>0&&(u=(D=e.mosaic[0][a])!=null?D:s),t.value=u}resetParams(){t.title=s,t.statusText=s,t.statusColor="#409eff",t.value=s,t.startTime=s,t.endTime="- - - -",t.duration=s}}const v=new b(r,"retainer1");v.setupLifecycle();const l=v.getStyle(),S=o.computed(()=>H.generateTitleStyle(r.conf.options));return o.watchEffect(()=>{r.conf.historyData&&v.setHistoryData(r.conf.historyData),r.conf.socketData&&v.setSocketData(r.conf.socketData)}),(f,e)=>(o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(l).bgColor,borderRadius:o.unref(l).radiusSize+"px"})},[o.createElementVNode("div",{class:"mix-title",style:o.normalizeStyle(S.value)},o.toDisplayString(r.conf.caption||t.title),5),o.createElementVNode("div",w,[o.createElementVNode("div",{class:"status-tag",style:o.normalizeStyle({fontSize:o.unref(l).nameSize-2+"px",backgroundColor:t.statusColor,color:"#fff"})},o.toDisplayString(t.fvName?t.fvName+"("+t.statusText+")":t.statusText),5),o.createElementVNode("div",{class:"card-value",style:o.normalizeStyle({fontSize:o.unref(l).valueSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.value),5)]),o.createElementVNode("div",P,[o.createElementVNode("div",k,[o.createElementVNode("div",{class:"time-item",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.startTime),5),o.createElementVNode("div",{class:"time-item",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.endTime),5)]),o.createElementVNode("div",{class:"duration",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+4+"px",color:o.unref(l).textColor})},o.toDisplayString(t.duration),5)]),o.renderSlot(f.$slots,"default",{},void 0,!0)],4))}})),J=h._export_sfc(G,[["__scopeId","data-v-ac5c0908"]]);exports.default=J;
@@ -27,8 +27,8 @@ var I = (f, a, o) => new Promise((t, v) => {
27
27
  _((o = o.apply(f, a)).next());
28
28
  });
29
29
  import { defineComponent as k, reactive as P, computed as F, watchEffect as j, openBlock as B, createElementBlock as L, normalizeStyle as y, unref as d, createElementVNode as p, toDisplayString as D, renderSlot as $ } from "vue";
30
- import { B as U } from "./BaseComponent-B59M7tSp.js";
31
- import { d as h, _ as W } from "./index-C596S3FR.js";
30
+ import { B as U } from "./BaseComponent-DQKmWNg3.js";
31
+ import { d as h, _ as W } from "./index-yfWcELw0.js";
32
32
  import { g as q } from "./titleStyle-BT5GlpAb.js";
33
33
  import { A as G, D as J } from "./ele-rtn-icon-CqCKSHIw.js";
34
34
  const K = { class: "mix-body" }, Q = { class: "mix-footer" }, X = { class: "time-info" }, Z = {
@@ -129,7 +129,7 @@ const K = { class: "mix-body" }, Q = { class: "mix-footer" }, X = { class: "time
129
129
  return {
130
130
  preview: () => I(this, null, function* () {
131
131
  try {
132
- const i = yield new (yield import("./history-CTYZgtKO.js")).default().getHistoryData(this.props, this.componentType);
132
+ const i = yield new (yield import("./history-I6Sbd46e.js")).default().getHistoryData(this.props, this.componentType);
133
133
  this.setHistoryData(i);
134
134
  } catch (e) {
135
135
  console.error("[Retainer1] 获取历史数据失败:", e);
@@ -1 +1 @@
1
- "use strict";var se=Object.defineProperty,ae=Object.defineProperties;var re=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var G=(b,l,c)=>l in b?se(b,l,{enumerable:!0,configurable:!0,writable:!0,value:c}):b[l]=c,I=(b,l)=>{for(var c in l||(l={}))le.call(l,c)&&G(b,c,l[c]);if($)for(var c of $(l))ce.call(l,c)&&G(b,c,l[c]);return b},R=(b,l)=>ae(b,re(l));var U=(b,l,c)=>new Promise((w,D)=>{var C=S=>{try{L(c.next(S))}catch(g){D(g)}},E=S=>{try{L(c.throw(S))}catch(g){D(g)}},L=S=>S.done?w(S.value):Promise.resolve(S.value).then(C,E);L((c=c.apply(b,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("vue"),de=require("./BaseComponent-DjjN5Pou.cjs"),T=require("./index-CLrFRvna.cjs"),he=require("./titleStyle-NSnz6cUg.cjs");require("./index-CJgyJTvc.cjs");const X=require("./ele-rtn-icon-BrsJIU8J.cjs"),fe=require("./echarts-BB8O2KSA.cjs"),ue={class:"mix-body"},me={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"历程管理",NAME_EN:"Retainer2",ORDER:2,PLATFORM:["pc","screen","mobile"]},pe={titleColor:"#111",radiusSize:8,bgColor:"#fff",textColor:"#111",barWidth:30,barGap:0,timeWindow:5,isHideTitle:!0,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},J=[{name:"历程1",object_id:"",retainer:"",retainer_code:"",color:"#ee6666",showLine:!1,fv:"",lineStyle:"solid",lineWidth:2}],ye=["name","object_id","retainer","retainer_code","color","showLine",{key:"fv",dependent:"showLine"},{key:"lineStyle",dependent:"showLine"},{key:"lineWidth",dependent:"showLine"}],ge=["mosaic"],ve={useAlias:!1,multiObject:!0,showBothModes:!0,source:"mosaic"},be={DEFAULT:me,OPTIONS:pe,DATA:J,PARAMS:ye,SOURCE:ge,COMMON:ve},we=h.defineComponent(R(I({},be),{__name:"retainer2",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(b){const l=b,c=h.ref(null);let w=null;const D=h.reactive([]),C=p=>D[p];class E extends de.BaseComponent{constructor(){super(...arguments),this.subscribed=!1}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),barWidth:this.getOptionValue("barWidth",30),barGap:this.getOptionValue("barGap",0),timeWindow:this.getOptionValue("timeWindow",5),isHideTitle:this.getOptionValue("isHideTitle",!0)}}init(){var e;this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=J),this.props.mode==="edit"&&L()}getPreviewHelper(){return{preview:()=>U(this,null,function*(){try{const i=yield new(yield Promise.resolve().then(()=>require("./history-5ZH7SlIA.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(i)}catch(e){console.error("[Retainer2] 获取历史数据失败:",e)}}),unregister:()=>{}}}onPreview(){var n;if(this.subscribed)return;const{conf:e}=this.props,{data:i,common:t}=e;if(t.multiObject&&Array.isArray(i)){const o=new Set;i.forEach(s=>{const r=this.resolveObjectId(s);!r||o.has(r)||(o.add(r),this.subscribeRetainer(r),s.showLine&&s.fv&&this.subscribeFv(r))})}else{const o=this.resolveObjectId();this.subscribeRetainer(o),(n=i==null?void 0:i[0])!=null&&n.fv&&this.subscribeFv(o)}this.subscribed=!0}setSocketData(e){if(e)switch(e.event){case"retainer_open":this.handleRetainerOpen(e);break;case"retainer_close":this.handleRetainerClose(e);break;case"retainer_event":this.handleRetainerEvent(e);break;case"recv_fv":this.handleFvData(e);break}}handleRetainerOpen(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(a=>this.resolveObjectId(n!=null&&n.multiObject?a:void 0)===o);if(s===-1)return;let r=C(s);if(!r){const a=t[s];r={name:a.name||`历程${s+1}`,color:a.color||"#409eff",objectId:o,fv:a.fv||"",periods:[],lineData:[],showLine:a.showLine||!1,lineStyle:a.lineStyle||"solid",lineWidth:a.lineWidth||2},D.push(r)}e.opened_at&&r.periods.push({start:e.opened_at,end:null}),O()}handleRetainerClose(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(d=>this.resolveObjectId(n!=null&&n.multiObject?d:void 0)===o);if(s===-1)return;const r=C(s);if(!r)return;const a=r.periods[r.periods.length-1];a&&!a.end&&(a.end=e.close_at||new Date().toISOString()),O()}handleRetainerEvent(e){}handleFvData(e){var d;const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(f=>this.resolveObjectId(n!=null&&n.multiObject?f:void 0)===o);if(s===-1)return;const a=t[s].fv;if(a)try{const f=(d=e.data)==null?void 0:d[a];if(f!==void 0){const v=C(s);if(v&&v.showLine){const u=e.datetime||new Date().toISOString();v.lineData.push({time:u,value:f}),v.lineData.sort((_,M)=>new Date(_.time).getTime()-new Date(M.time).getTime()),O()}}}catch(f){console.error("[Retainer2] 处理 FV 数据失败:",f)}}setHistoryData(e){const{conf:i}=this.props,{data:t,common:n}=i;D.length=0,t.forEach((o,s)=>{var f;const r=this.resolveObjectId(n!=null&&n.multiObject?o:void 0),a=o.fv||"",d={name:o.name||`历程${s+1}`,color:o.color||"#409eff",objectId:r,fv:a,periods:[],lineData:[],showLine:o.showLine||!1,lineStyle:o.lineStyle||"solid",lineWidth:o.lineWidth||2};try{(((f=e==null?void 0:e.history)==null?void 0:f[s])||[]).forEach(u=>{u&&u.start_time&&(d.periods.push({start:u.start_time,end:u.end_time||null}),o.showLine&&a&&u.mosaic&&Array.isArray(u.mosaic)&&u.mosaic.forEach(_=>{const M=_[a];M!==void 0&&_.time&&d.lineData.push({time:_.time,value:M})}))}),d.lineData.sort((u,_)=>new Date(u.time).getTime()-new Date(_.time).getTime())}catch(v){}D.push(d)}),O()}}const L=()=>{const{data:p}=l.conf;D.length=0;const e=T.dayjs();p.forEach((i,t)=>{const n=`edit_object_${t}`,o=[{start:e.subtract(6+t,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(4+t,"hour").format("YYYY-MM-DD HH:mm:ss")},{start:e.subtract(2+t*.5,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(t*.3,"hour").format("YYYY-MM-DD HH:mm:ss")}],s=[];i.showLine&&o.forEach(r=>{const a=T.dayjs(r.start),f=T.dayjs(r.end).diff(a,"minute"),v=Math.max(5,Math.floor(f/10));for(let u=0;u<=v;u++){const _=a.add(f/v*u,"minute");s.push({time:_.format("YYYY-MM-DD HH:mm:ss"),value:150+Math.sin(u*.8+t*2)*50+t*30})}}),D.push({name:i.name||`历程${t+1}`,color:i.color||["#ee6666","#91cc75","#fac858"][t%3],objectId:n,fv:i.fv||"",periods:o,lineData:s,showLine:i.showLine||!1,lineStyle:i.lineStyle||"solid",lineWidth:i.lineWidth||2})})},S=new E(l,"retainer2");S.setupLifecycle();const g=S.getStyle(),W=l.conf,K=h.computed(()=>he.generateTitleStyle(l.conf.options)),V=()=>D.filter(p=>p.showLine&&p.lineData.length>0),Q=()=>{const p=[],e=V();let i=1;return e.forEach(t=>{t.periods.forEach((n,o)=>{const s=new Date(n.start).getTime(),r=n.end?new Date(n.end).getTime():Date.now(),a=t.lineData.filter(d=>{const f=new Date(d.time).getTime();return f>=s&&f<=r}).map(d=>[new Date(d.time).getTime(),d.value]);a.length>0&&p.push({name:o===0?`${t.name}-曲线`:`${t.name}-曲线-${o+1}`,type:"line",yAxisIndex:i,smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:t.color,width:t.lineWidth,type:t.lineStyle},itemStyle:{color:t.color},data:a})}),i++}),p},Z=p=>{const e=V(),i=e.length,t=[{type:"value",min:0,max:p,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}}];return e.forEach((n,o)=>{const s=n.lineData.map(u=>u.value),r=Math.max(...s),a=Math.min(...s),d=Math.ceil(r*1.1),f=Math.floor(a*.9),v=o*50;t.push({type:"value",position:"right",offset:v,min:f,max:d,axisLine:{show:!0,lineStyle:{color:n.color}},axisTick:{show:!0,lineStyle:{color:n.color}},axisLabel:{color:n.color,fontSize:10},splitLine:{show:!1}})}),{yAxes:t,lineCount:i}},k=()=>{c.value&&(w=fe.init(c.value),O())},O=()=>{var B;if(!w)return;const p=D.length||1,e=((B=c.value)==null?void 0:B.clientHeight)||300,i=30,t=10,n=e-i-t,o=g.value.barWidth||30,s=g.value.barGap||0,r=o+s,a=p*r;let d=o,f=s,v=r;if(a>n){const m=n/a;d=Math.max(o*m,10),f=s*m,v=d+f}const u=[];let _=!1;D.forEach((m,y)=>{m.periods.forEach(x=>{const j=new Date(x.start).getTime(),Y=x.end?new Date(x.end).getTime():Date.now();x.end||(_=!0),u.push({name:m.name,value:[j,Y,y],itemStyle:{color:x.end?m.color+"80":m.color}})})});const{yAxes:M,lineCount:N}=Z(p),ee=N>0?20+N*50:20,te={tooltip:{trigger:"axis",formatter:m=>{if(Array.isArray(m)){const y=m.find(x=>x.seriesType==="line");if(y){const x=T.dayjs(y.value[0]).format("YYYY-MM-DD HH:mm:ss");return`${y.seriesName}<br/>时间: ${x}<br/>数值: ${y.value[1]}`}}return""}},grid:{left:40,right:ee,top:t,bottom:i,containLabel:!1},xAxis:R(I({type:"time",position:"bottom"},_?{min:Date.now()-g.value.timeWindow*60*1e3,max:Date.now()}:{}),{axisLine:{show:!0,lineStyle:{color:g.value.titleColor}},axisTick:{show:!0,lineStyle:{color:g.value.titleColor}},axisLabel:{formatter:"{HH}:{mm}",color:g.value.textColor,fontSize:11,margin:8},splitLine:{show:!1}}),yAxis:M,series:[{name:"甘特图",type:"custom",yAxisIndex:0,renderItem:(m,y)=>{var q;const x=y.value(0),j=y.value(1),Y=y.value(2),A=y.coord([x,0])[0],oe=y.coord([j,0])[0],P=m.coordSys.y+m.coordSys.height-(Y+1)*v+f,ne=P+d/2,F=Math.max(oe-A,2),ie=((q=D[Y])==null?void 0:q.name)||"";return{type:"group",children:[{type:"rect",shape:{x:A,y:P,width:F,height:d,r:2},style:y.style()},{type:"text",style:{x:A+F/2,y:ne,text:ie,fill:g.value.textColor,fontSize:11,textAlign:"center",textVerticalAlign:"middle"}}]}},encode:{x:[0,1],y:2,tooltip:[0,1]},tooltip:{formatter:m=>{const y=T.dayjs(m.value[0]).format("YYYY-MM-DD HH:mm:ss"),x=T.dayjs(m.value[1]).format("YYYY-MM-DD HH:mm:ss"),j=m.value[1]>=Date.now()-1e3;return`${m.name}<br/>开始: ${y}<br/>结束: ${j?"进行中":x}`}},data:u},...Q()]};w.setOption(te,!0)},z=()=>{w==null||w.resize()};let H=null;return h.onMounted(()=>{H=new ResizeObserver(()=>{w?w.resize():c.value&&k()}),c.value&&H.observe(c.value),setTimeout(()=>{k()},100),window.addEventListener("resize",z)}),h.onUnmounted(()=>{window.removeEventListener("resize",z),H==null||H.disconnect(),w==null||w.dispose()}),h.watch(()=>l.conf.data,()=>{l.mode==="edit"&&L(),O()},{deep:!0}),h.watch(()=>l.conf.options,()=>{g.value=S.extractStyles(),O()},{deep:!0}),h.watchEffect(()=>{l.conf.historyData&&S.setHistoryData(l.conf.historyData),l.conf.socketData&&S.setSocketData(l.conf.socketData)}),(p,e)=>(h.openBlock(),h.createElementBlock("div",{class:"mix-component",style:h.normalizeStyle({background:h.unref(g).bgColor,borderRadius:h.unref(g).radiusSize+"px"})},[h.createElementVNode("div",{class:"mix-title",style:h.normalizeStyle(K.value)},h.toDisplayString(h.unref(W).caption||h.unref(W).name),5),h.createElementVNode("div",ue,[h.createElementVNode("div",{class:"timeline-chart",ref_key:"chartRef",ref:c},null,512)]),h.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),De=T._export_sfc(we,[["__scopeId","data-v-7162b702"]]);exports.default=De;
1
+ "use strict";var se=Object.defineProperty,ae=Object.defineProperties;var re=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var G=(b,l,c)=>l in b?se(b,l,{enumerable:!0,configurable:!0,writable:!0,value:c}):b[l]=c,I=(b,l)=>{for(var c in l||(l={}))le.call(l,c)&&G(b,c,l[c]);if($)for(var c of $(l))ce.call(l,c)&&G(b,c,l[c]);return b},R=(b,l)=>ae(b,re(l));var U=(b,l,c)=>new Promise((w,D)=>{var C=S=>{try{L(c.next(S))}catch(g){D(g)}},E=S=>{try{L(c.throw(S))}catch(g){D(g)}},L=S=>S.done?w(S.value):Promise.resolve(S.value).then(C,E);L((c=c.apply(b,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("vue"),de=require("./BaseComponent-CJ3CP33o.cjs"),T=require("./index-B8X4_OUp.cjs"),he=require("./titleStyle-NSnz6cUg.cjs");require("./index-CJgyJTvc.cjs");const X=require("./ele-rtn-icon-BrsJIU8J.cjs"),fe=require("./echarts-BB8O2KSA.cjs"),ue={class:"mix-body"},me={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"历程管理",NAME_EN:"Retainer2",ORDER:2,PLATFORM:["pc","screen","mobile"]},pe={titleColor:"#111",radiusSize:8,bgColor:"#fff",textColor:"#111",barWidth:30,barGap:0,timeWindow:5,isHideTitle:!0,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},J=[{name:"历程1",object_id:"",retainer:"",retainer_code:"",color:"#ee6666",showLine:!1,fv:"",lineStyle:"solid",lineWidth:2}],ye=["name","object_id","retainer","retainer_code","color","showLine",{key:"fv",dependent:"showLine"},{key:"lineStyle",dependent:"showLine"},{key:"lineWidth",dependent:"showLine"}],ge=["mosaic"],ve={useAlias:!1,multiObject:!0,showBothModes:!0,source:"mosaic"},be={DEFAULT:me,OPTIONS:pe,DATA:J,PARAMS:ye,SOURCE:ge,COMMON:ve},we=h.defineComponent(R(I({},be),{__name:"retainer2",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(b){const l=b,c=h.ref(null);let w=null;const D=h.reactive([]),C=p=>D[p];class E extends de.BaseComponent{constructor(){super(...arguments),this.subscribed=!1}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),barWidth:this.getOptionValue("barWidth",30),barGap:this.getOptionValue("barGap",0),timeWindow:this.getOptionValue("timeWindow",5),isHideTitle:this.getOptionValue("isHideTitle",!0)}}init(){var e;this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=J),this.props.mode==="edit"&&L()}getPreviewHelper(){return{preview:()=>U(this,null,function*(){try{const i=yield new(yield Promise.resolve().then(()=>require("./history-BHbiezXx.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(i)}catch(e){console.error("[Retainer2] 获取历史数据失败:",e)}}),unregister:()=>{}}}onPreview(){var n;if(this.subscribed)return;const{conf:e}=this.props,{data:i,common:t}=e;if(t.multiObject&&Array.isArray(i)){const o=new Set;i.forEach(s=>{const r=this.resolveObjectId(s);!r||o.has(r)||(o.add(r),this.subscribeRetainer(r),s.showLine&&s.fv&&this.subscribeFv(r))})}else{const o=this.resolveObjectId();this.subscribeRetainer(o),(n=i==null?void 0:i[0])!=null&&n.fv&&this.subscribeFv(o)}this.subscribed=!0}setSocketData(e){if(e)switch(e.event){case"retainer_open":this.handleRetainerOpen(e);break;case"retainer_close":this.handleRetainerClose(e);break;case"retainer_event":this.handleRetainerEvent(e);break;case"recv_fv":this.handleFvData(e);break}}handleRetainerOpen(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(a=>this.resolveObjectId(n!=null&&n.multiObject?a:void 0)===o);if(s===-1)return;let r=C(s);if(!r){const a=t[s];r={name:a.name||`历程${s+1}`,color:a.color||"#409eff",objectId:o,fv:a.fv||"",periods:[],lineData:[],showLine:a.showLine||!1,lineStyle:a.lineStyle||"solid",lineWidth:a.lineWidth||2},D.push(r)}e.opened_at&&r.periods.push({start:e.opened_at,end:null}),O()}handleRetainerClose(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(d=>this.resolveObjectId(n!=null&&n.multiObject?d:void 0)===o);if(s===-1)return;const r=C(s);if(!r)return;const a=r.periods[r.periods.length-1];a&&!a.end&&(a.end=e.close_at||new Date().toISOString()),O()}handleRetainerEvent(e){}handleFvData(e){var d;const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(f=>this.resolveObjectId(n!=null&&n.multiObject?f:void 0)===o);if(s===-1)return;const a=t[s].fv;if(a)try{const f=(d=e.data)==null?void 0:d[a];if(f!==void 0){const v=C(s);if(v&&v.showLine){const u=e.datetime||new Date().toISOString();v.lineData.push({time:u,value:f}),v.lineData.sort((_,M)=>new Date(_.time).getTime()-new Date(M.time).getTime()),O()}}}catch(f){console.error("[Retainer2] 处理 FV 数据失败:",f)}}setHistoryData(e){const{conf:i}=this.props,{data:t,common:n}=i;D.length=0,t.forEach((o,s)=>{var f;const r=this.resolveObjectId(n!=null&&n.multiObject?o:void 0),a=o.fv||"",d={name:o.name||`历程${s+1}`,color:o.color||"#409eff",objectId:r,fv:a,periods:[],lineData:[],showLine:o.showLine||!1,lineStyle:o.lineStyle||"solid",lineWidth:o.lineWidth||2};try{(((f=e==null?void 0:e.history)==null?void 0:f[s])||[]).forEach(u=>{u&&u.start_time&&(d.periods.push({start:u.start_time,end:u.end_time||null}),o.showLine&&a&&u.mosaic&&Array.isArray(u.mosaic)&&u.mosaic.forEach(_=>{const M=_[a];M!==void 0&&_.time&&d.lineData.push({time:_.time,value:M})}))}),d.lineData.sort((u,_)=>new Date(u.time).getTime()-new Date(_.time).getTime())}catch(v){}D.push(d)}),O()}}const L=()=>{const{data:p}=l.conf;D.length=0;const e=T.dayjs();p.forEach((i,t)=>{const n=`edit_object_${t}`,o=[{start:e.subtract(6+t,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(4+t,"hour").format("YYYY-MM-DD HH:mm:ss")},{start:e.subtract(2+t*.5,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(t*.3,"hour").format("YYYY-MM-DD HH:mm:ss")}],s=[];i.showLine&&o.forEach(r=>{const a=T.dayjs(r.start),f=T.dayjs(r.end).diff(a,"minute"),v=Math.max(5,Math.floor(f/10));for(let u=0;u<=v;u++){const _=a.add(f/v*u,"minute");s.push({time:_.format("YYYY-MM-DD HH:mm:ss"),value:150+Math.sin(u*.8+t*2)*50+t*30})}}),D.push({name:i.name||`历程${t+1}`,color:i.color||["#ee6666","#91cc75","#fac858"][t%3],objectId:n,fv:i.fv||"",periods:o,lineData:s,showLine:i.showLine||!1,lineStyle:i.lineStyle||"solid",lineWidth:i.lineWidth||2})})},S=new E(l,"retainer2");S.setupLifecycle();const g=S.getStyle(),W=l.conf,K=h.computed(()=>he.generateTitleStyle(l.conf.options)),V=()=>D.filter(p=>p.showLine&&p.lineData.length>0),Q=()=>{const p=[],e=V();let i=1;return e.forEach(t=>{t.periods.forEach((n,o)=>{const s=new Date(n.start).getTime(),r=n.end?new Date(n.end).getTime():Date.now(),a=t.lineData.filter(d=>{const f=new Date(d.time).getTime();return f>=s&&f<=r}).map(d=>[new Date(d.time).getTime(),d.value]);a.length>0&&p.push({name:o===0?`${t.name}-曲线`:`${t.name}-曲线-${o+1}`,type:"line",yAxisIndex:i,smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:t.color,width:t.lineWidth,type:t.lineStyle},itemStyle:{color:t.color},data:a})}),i++}),p},Z=p=>{const e=V(),i=e.length,t=[{type:"value",min:0,max:p,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}}];return e.forEach((n,o)=>{const s=n.lineData.map(u=>u.value),r=Math.max(...s),a=Math.min(...s),d=Math.ceil(r*1.1),f=Math.floor(a*.9),v=o*50;t.push({type:"value",position:"right",offset:v,min:f,max:d,axisLine:{show:!0,lineStyle:{color:n.color}},axisTick:{show:!0,lineStyle:{color:n.color}},axisLabel:{color:n.color,fontSize:10},splitLine:{show:!1}})}),{yAxes:t,lineCount:i}},k=()=>{c.value&&(w=fe.init(c.value),O())},O=()=>{var B;if(!w)return;const p=D.length||1,e=((B=c.value)==null?void 0:B.clientHeight)||300,i=30,t=10,n=e-i-t,o=g.value.barWidth||30,s=g.value.barGap||0,r=o+s,a=p*r;let d=o,f=s,v=r;if(a>n){const m=n/a;d=Math.max(o*m,10),f=s*m,v=d+f}const u=[];let _=!1;D.forEach((m,y)=>{m.periods.forEach(x=>{const j=new Date(x.start).getTime(),Y=x.end?new Date(x.end).getTime():Date.now();x.end||(_=!0),u.push({name:m.name,value:[j,Y,y],itemStyle:{color:x.end?m.color+"80":m.color}})})});const{yAxes:M,lineCount:N}=Z(p),ee=N>0?20+N*50:20,te={tooltip:{trigger:"axis",formatter:m=>{if(Array.isArray(m)){const y=m.find(x=>x.seriesType==="line");if(y){const x=T.dayjs(y.value[0]).format("YYYY-MM-DD HH:mm:ss");return`${y.seriesName}<br/>时间: ${x}<br/>数值: ${y.value[1]}`}}return""}},grid:{left:40,right:ee,top:t,bottom:i,containLabel:!1},xAxis:R(I({type:"time",position:"bottom"},_?{min:Date.now()-g.value.timeWindow*60*1e3,max:Date.now()}:{}),{axisLine:{show:!0,lineStyle:{color:g.value.titleColor}},axisTick:{show:!0,lineStyle:{color:g.value.titleColor}},axisLabel:{formatter:"{HH}:{mm}",color:g.value.textColor,fontSize:11,margin:8},splitLine:{show:!1}}),yAxis:M,series:[{name:"甘特图",type:"custom",yAxisIndex:0,renderItem:(m,y)=>{var q;const x=y.value(0),j=y.value(1),Y=y.value(2),A=y.coord([x,0])[0],oe=y.coord([j,0])[0],P=m.coordSys.y+m.coordSys.height-(Y+1)*v+f,ne=P+d/2,F=Math.max(oe-A,2),ie=((q=D[Y])==null?void 0:q.name)||"";return{type:"group",children:[{type:"rect",shape:{x:A,y:P,width:F,height:d,r:2},style:y.style()},{type:"text",style:{x:A+F/2,y:ne,text:ie,fill:g.value.textColor,fontSize:11,textAlign:"center",textVerticalAlign:"middle"}}]}},encode:{x:[0,1],y:2,tooltip:[0,1]},tooltip:{formatter:m=>{const y=T.dayjs(m.value[0]).format("YYYY-MM-DD HH:mm:ss"),x=T.dayjs(m.value[1]).format("YYYY-MM-DD HH:mm:ss"),j=m.value[1]>=Date.now()-1e3;return`${m.name}<br/>开始: ${y}<br/>结束: ${j?"进行中":x}`}},data:u},...Q()]};w.setOption(te,!0)},z=()=>{w==null||w.resize()};let H=null;return h.onMounted(()=>{H=new ResizeObserver(()=>{w?w.resize():c.value&&k()}),c.value&&H.observe(c.value),setTimeout(()=>{k()},100),window.addEventListener("resize",z)}),h.onUnmounted(()=>{window.removeEventListener("resize",z),H==null||H.disconnect(),w==null||w.dispose()}),h.watch(()=>l.conf.data,()=>{l.mode==="edit"&&L(),O()},{deep:!0}),h.watch(()=>l.conf.options,()=>{g.value=S.extractStyles(),O()},{deep:!0}),h.watchEffect(()=>{l.conf.historyData&&S.setHistoryData(l.conf.historyData),l.conf.socketData&&S.setSocketData(l.conf.socketData)}),(p,e)=>(h.openBlock(),h.createElementBlock("div",{class:"mix-component",style:h.normalizeStyle({background:h.unref(g).bgColor,borderRadius:h.unref(g).radiusSize+"px"})},[h.createElementVNode("div",{class:"mix-title",style:h.normalizeStyle(K.value)},h.toDisplayString(h.unref(W).caption||h.unref(W).name),5),h.createElementVNode("div",ue,[h.createElementVNode("div",{class:"timeline-chart",ref_key:"chartRef",ref:c},null,512)]),h.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),De=T._export_sfc(we,[["__scopeId","data-v-7162b702"]]);exports.default=De;
@@ -27,8 +27,8 @@ var q = (v, l, c) => new Promise((b, w) => {
27
27
  L((c = c.apply(v, l)).next());
28
28
  });
29
29
  import { defineComponent as he, ref as ue, reactive as me, computed as pe, onMounted as ge, onUnmounted as ye, watch as J, watchEffect as ve, openBlock as be, createElementBlock as we, normalizeStyle as K, unref as A, createElementVNode as I, toDisplayString as De, renderSlot as Se } from "vue";
30
- import { B as xe } from "./BaseComponent-B59M7tSp.js";
31
- import { d as O, _ as _e } from "./index-C596S3FR.js";
30
+ import { B as xe } from "./BaseComponent-DQKmWNg3.js";
31
+ import { d as O, _ as _e } from "./index-yfWcELw0.js";
32
32
  import { g as Le } from "./titleStyle-BT5GlpAb.js";
33
33
  import "./index-eIsZnzkc.js";
34
34
  import { A as Me, D as Oe } from "./ele-rtn-icon-CqCKSHIw.js";
@@ -113,7 +113,7 @@ const He = { class: "mix-body" }, Ce = {
113
113
  return {
114
114
  preview: () => q(this, null, function* () {
115
115
  try {
116
- const i = yield new (yield import("./history-CTYZgtKO.js")).default().getHistoryData(this.props, this.componentType);
116
+ const i = yield new (yield import("./history-I6Sbd46e.js")).default().getHistoryData(this.props, this.componentType);
117
117
  this.setHistoryData(i);
118
118
  } catch (e) {
119
119
  console.error("[Retainer2] 获取历史数据失败:", e);
@@ -48,10 +48,10 @@ import "element-plus/es/components/date-picker/style/css";
48
48
  import "element-plus/es/components/radio-group/style/css";
49
49
  import "element-plus/es/components/radio-button/style/css";
50
50
  import { defineComponent as dt, computed as ne, reactive as ct, ref as h, onMounted as bt, withDirectives as me, openBlock as b, createElementBlock as w, normalizeStyle as ve, unref as B, normalizeClass as pt, toDisplayString as p, createCommentVNode as z, createElementVNode as A, createVNode as o, withCtx as n, createTextVNode as u, createBlock as x, withKeys as _t, Fragment as O, renderList as se, renderSlot as mt } from "vue";
51
- import { d as Z, a as ee, _ as vt } from "./index-C596S3FR.js";
51
+ import { d as Z, a as ee, _ as vt } from "./index-yfWcELw0.js";
52
52
  import { u as gt } from "./useTableBodyHeight-CwrQvi7M.js";
53
53
  import { u as ft } from "./useMixiotPanelSurface-DRl3cZvc.js";
54
- import { B as yt } from "./BaseComponent-B59M7tSp.js";
54
+ import { B as yt } from "./BaseComponent-DQKmWNg3.js";
55
55
  import { g as ht } from "./titleStyle-BT5GlpAb.js";
56
56
  import { ElMessage as D, ElMessageBox as kt } from "element-plus";
57
57
  import { Search as wt } from "@element-plus/icons-vue";
@@ -282,7 +282,7 @@ const Ct = { class: "mix-body" }, Et = { class: "toolbar toolbar-status" }, Vt =
282
282
  let e = 1;
283
283
  const i = 2e3;
284
284
  for (; ; ) {
285
- const l = yield ee.post(
285
+ const l = yield ee.http(
286
286
  "get_object_list",
287
287
  { page_index: e, page_size: i },
288
288
  !1
@@ -337,7 +337,7 @@ const Ct = { class: "mix-body" }, Et = { class: "toolbar toolbar-status" }, Vt =
337
337
  te.value = !0;
338
338
  try {
339
339
  yield xe();
340
- const e = yield ee.post("get_retainer_result_list", je(), !0), i = (a = e == null ? void 0 : e.result) != null ? a : e, l = Array.isArray(i == null ? void 0 : i.data) ? i.data : [];
340
+ const e = yield ee.http("get_retainer_result_list", je(), !0), i = (a = e == null ? void 0 : e.result) != null ? a : e, l = Array.isArray(i == null ? void 0 : i.data) ? i.data : [];
341
341
  P.value = l.map((d) => {
342
342
  var S, E, $;
343
343
  const y = d.object_id ? String(d.object_id) : "", r = y ? le.value[y] : void 0;
@@ -383,7 +383,7 @@ const Ct = { class: "mix-body" }, Et = { class: "toolbar toolbar-status" }, Vt =
383
383
  }
384
384
  X.value = !0, ae.value = !0, Y.value = "", c.value = null, U.value = [];
385
385
  try {
386
- const l = yield ee.post("get_retainer_with_events", { retainer_id: e }, !0), s = (i = l == null ? void 0 : l.result) != null ? i : l;
386
+ const l = yield ee.http("get_retainer_with_events", { retainer_id: e }, !0), s = (i = l == null ? void 0 : l.result) != null ? i : l;
387
387
  if (l && l.code !== void 0 && l.code !== 200) {
388
388
  Y.value = String(l.msg || l.info || "详情接口失败");
389
389
  return;
@@ -430,7 +430,7 @@ const Ct = { class: "mix-body" }, Et = { class: "toolbar toolbar-status" }, Vt =
430
430
  return;
431
431
  }
432
432
  try {
433
- const l = yield ee.post(
433
+ const l = yield ee.http(
434
434
  "export_retainer_data",
435
435
  {
436
436
  file_name: `retainer_export_${Oe(/* @__PURE__ */ new Date()).replace(/[: ]/g, "_")}`,
@@ -935,7 +935,7 @@ const Ct = { class: "mix-body" }, Et = { class: "toolbar toolbar-status" }, Vt =
935
935
  ]);
936
936
  };
937
937
  }
938
- })), fl = /* @__PURE__ */ vt(Nt, [["__scopeId", "data-v-79787039"]]);
938
+ })), fl = /* @__PURE__ */ vt(Nt, [["__scopeId", "data-v-804b7170"]]);
939
939
  export {
940
940
  fl as default
941
941
  };
@@ -1 +1 @@
1
- "use strict";var Ce=Object.defineProperty,Se=Object.defineProperties;var Be=Object.getOwnPropertyDescriptors;var ee=Object.getOwnPropertySymbols;var Ee=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable;var te=(_,b,d)=>b in _?Ce(_,b,{enumerable:!0,configurable:!0,writable:!0,value:d}):_[b]=d,$=(_,b)=>{for(var d in b||(b={}))Ee.call(b,d)&&te(_,d,b[d]);if(ee)for(var d of ee(b))Te.call(b,d)&&te(_,d,b[d]);return _},W=(_,b)=>Se(_,Be(b));var M=(_,b,d)=>new Promise((w,L)=>{var I=f=>{try{S(d.next(f))}catch(B){L(B)}},N=f=>{try{S(d.throw(f))}catch(B){L(B)}},S=f=>f.done?w(f.value):Promise.resolve(f.value).then(I,N);S((d=d.apply(_,b)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=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/dialog/style/css");require("element-plus/es/components/timeline/style/css");require("element-plus/es/components/timeline-item/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/alert/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio-button/style/css");const e=require("vue"),k=require("./index-CLrFRvna.cjs"),je=require("./useTableBodyHeight-pf87uGjw.cjs"),De=require("./useMixiotPanelSurface-CAZgexY5.cjs"),ze=require("./BaseComponent-DjjN5Pou.cjs"),Oe=require("./titleStyle-NSnz6cUg.cjs"),x=require("element-plus"),qe=require("@element-plus/icons-vue"),Ae=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),le=require("./ele-lst-icon-CrxnHZ-A.cjs"),Re={class:"mix-body"},Fe={class:"toolbar toolbar-status"},Me={class:"toolbar"},Le={key:3},Ie={class:"pagination"},Pe={class:"detail-body"},Ke={key:0,class:"detail-events-title"},He={DEFAULT_ICON:le.DEFAULT_ICON,ACTIVE_ICON:le.ACTIVE_ICON,NAME_CN:"历程记录",NAME_EN:"RetainerRecordList",ORDER:7,PLATFORM:["pc","screen"]},Ue={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:"template_id",label:"项目编号",width:140,visible:!0},{key:"label_cn",label:"历程项中文名称",width:140,visible:!0},{key:"label_en",label:"历程项英文名称",width:140,visible:!0},{key:"code",label:"历程项编码",width:120,visible:!0},{key:"category",label:"历程类型",width:100,visible:!0},{key:"object_id",label:"对象编号",width:140,visible:!0},{key:"object_name",label:"对象名称",width:140,visible:!0},{key:"object_alias",label:"对象别名",width:120,visible:!0},{key:"model",label:"型号",width:100,visible:!0},{key:"retained",label:"状态",width:90,visible:!0},{key:"opened_at",label:"开始时间",width:170,visible:!0},{key:"elapsed",label:"持续时间",width:120,visible:!0},{key:"statis_result",label:"统计结果",width:120,visible:!0},{key:"close_at",label:"结束时间",width:170,visible:!0}]},ae=[{name:"历程记录",fv:"",showViewBtn:!0,showExportBtn:!0,template_id:"项目编号",template_id_visible:!0,label_cn:"历程项中文名称",label_cn_visible:!0,label_en:"历程项英文名称",label_en_visible:!0,code:"历程项编码",code_visible:!0,category:"历程类型",category_visible:!0,object_id:"对象编号",object_id_visible:!0,object_name:"对象名称",object_name_visible:!0,object_alias:"对象别名",object_alias_visible:!0,model:"型号",model_visible:!0,retained:"状态",retained_visible:!0,opened_at:"开始时间",opened_at_visible:!0,elapsed:"持续时间",elapsed_visible:!0,statis_result:"统计结果",statis_result_visible:!0,close_at:"结束时间",close_at_visible:!0}],Ye=[{key:"showViewBtn",label:"详情",type:"checkbox",group:"操作组"},{key:"showExportBtn",label:"导出",type:"checkbox",group:"命令组"},{key:"name",label:"参数名称"},{key:"template_id",label:"项目编号",checkable:!0,checkboxKey:"template_id_visible"},{key:"label_cn",label:"历程项中文名称",checkable:!0,checkboxKey:"label_cn_visible"},{key:"label_en",label:"历程项英文名称",checkable:!0,checkboxKey:"label_en_visible"},{key:"code",label:"历程项编码",checkable:!0,checkboxKey:"code_visible"},{key:"category",label:"历程类型",checkable:!0,checkboxKey:"category_visible"},{key:"object_id",label:"对象编号",checkable:!0,checkboxKey:"object_id_visible"},{key:"object_name",label:"对象名称",checkable:!0,checkboxKey:"object_name_visible"},{key:"object_alias",label:"对象别名",checkable:!0,checkboxKey:"object_alias_visible"},{key:"model",label:"型号",checkable:!0,checkboxKey:"model_visible"},{key:"retained",label:"状态",checkable:!0,checkboxKey:"retained_visible"},{key:"opened_at",label:"开始时间",checkable:!0,checkboxKey:"opened_at_visible"},{key:"elapsed",label:"持续时间",checkable:!0,checkboxKey:"elapsed_visible"},{key:"statis_result",label:"统计结果",checkable:!0,checkboxKey:"statis_result_visible"},{key:"close_at",label:"结束时间",checkable:!0,checkboxKey:"close_at_visible"}],$e=[],We={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"template_id",label:"setting.gridFields.templateId"},{value:"code",label:"setting.gridFields.code"},{value:"label_cn",label:"setting.gridFields.labelCn"},{value:"label_en",label:"setting.gridFields.labelEn"},{value:"category",label:"setting.gridFields.category"},{value:"object_id",label:"setting.gridFields.objectId"},{value:"object_name",label:"setting.gridFields.objectName"},{value:"object_alias",label:"setting.gridFields.objectAlias"},{value:"model",label:"setting.gridFields.model"},{value:"customer_name",label:"setting.gridFields.customerName"},{value:"opened_at",label:"setting.gridFields.openedAt"}]},Je={DEFAULT:He,OPTIONS:Ue,DATA:ae,PARAMS:Ye,SOURCE:$e,COMMON:We},Ge=e.defineComponent(W($({},Je),{__name:"retainerRecordList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{default:"edit"},theme:{},code:{default:""}},setup(_){const b={ALERT:"报警",FAULT:"故障",OTHER:"其他"},d="YYYY-MM-DD HH:mm:ss",w=_;class L extends ze.BaseComponent{getDataBool(t,i){var n,s;const a=(s=(n=this.props.conf)==null?void 0:n.data)==null?void 0:s[0];return a&&Object.prototype.hasOwnProperty.call(a,t)&&a[t]!==void 0?!!a[t]:this.getOptionValue(t,i)}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),showViewBtn:this.getDataBool("showViewBtn",!0),showExportBtn:this.getDataBool("showExportBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(ae));else{const i=this.props.conf.data[0];i.showViewBtn===void 0&&(i.showViewBtn=!0),i.showExportBtn===void 0&&(i.showExportBtn=!0);for(const a of["template_id_visible","label_cn_visible","label_en_visible","code_visible","category_visible","object_id_visible","object_name_visible","object_alias_visible","model_visible","retained_visible","opened_at_visible","elapsed_visible","statis_result_visible","close_at_visible"])i[a]===void 0&&(i[a]=!0)}}}const I=new L(w,"retainerRecordList");I.setupLifecycle();const N=I.getStyle(),{mixiotPanelClass:S,mixiotPanelRootStyle:f}=De.useMixiotPanelSurface(N),{tableWrapRef:B,tableBodyHeight:oe}=je.useTableBodyHeight(),ie=e.computed(()=>Oe.generateTitleStyle(w.conf.options)),ne=e.computed(()=>{var i,a,n,s;const o=((a=(i=w.conf)==null?void 0:i.options)==null?void 0:a.columns)||[],t=((s=(n=w.conf)==null?void 0:n.data)==null?void 0:s[0])||{};return(Array.isArray(o)?o:[]).map(v=>{const r=t[v.key],h=t[`${v.key}_visible`];return{prop:v.key,label:r!==void 0&&r!==""?String(r):v.label,width:v.width,minWidth:v.minWidth,visible:h!==void 0?!!h:v.visible!==!1}})}),g=e.reactive({current:1,pageSize:20,total:0}),E=e.ref("1"),T=e.ref([k.dayjs().subtract(1,"month").format(d),k.dayjs().format(d)]),j=e.ref(""),y=e.ref("object_name"),D=e.ref(null),z=e.ref(""),O=e.ref([]),H=e.ref(!1),U=e.ref({});function re(){g.current=1,C()}function se(){j.value="",D.value=null,z.value=""}function J(o){var i;if(o==null||o==="")return"";const t=String(o);return(i=b[t])!=null?i:t}function P(o){const t=o.retained;return t===1||t==="1"}function ce(o,t){const i=o[t];return i==null?"":String(i)}function de(){return M(this,null,function*(){var o;if(!(Object.keys(U.value).length>0))try{let t=1;const i=2e3;for(;;){const a=yield k.api.post("get_object_list",{page_index:t,page_size:i},!1),n=(o=a==null?void 0:a.result)!=null?o:a,s=Array.isArray(n==null?void 0:n.data)?n.data:[];for(const r of s){const h=r.uid;h&&(U.value[h]={name:r.name,alias:r.alias,model:r.model})}const v=typeof(n==null?void 0:n.total_records)=="number"?n.total_records:s.length;if(!s.length||t*i>=v)break;t++}}catch(t){}})}function ue(){const o=[];E.value!=="2"&&o.push(["retained","=",E.value]);const t=T.value;if(t&&t.length===2&&t[0]&&t[1]){const[a,n]=t[0]<=t[1]?t:[t[1],t[0]];o.push(["created",">=",a]),o.push(["created","<=",n])}if(y.value==="opened_at"){const a=D.value;if(a&&a.length===2&&a[0]&&a[1]){const[n,s]=a[0]<=a[1]?a:[a[1],a[0]];o.push(["opened_at",">=",n]),o.push(["opened_at","<=",s])}}else if(y.value==="category"){const a=z.value.trim();a&&o.push(["category","=",a])}else{const a=j.value.trim();a&&o.push([y.value,"like",`%${a}%`])}Ae.appendCommonDesignerWhereAnd(w.conf.common,o);const i={page_index:g.current,page_size:g.pageSize};return o.length&&(i.where_and=JSON.stringify(o)),i}function C(){return M(this,null,function*(){var o;H.value=!0;try{yield de();const t=yield k.api.post("get_retainer_result_list",ue(),!0),i=(o=t==null?void 0:t.result)!=null?o:t,a=Array.isArray(i==null?void 0:i.data)?i.data:[];O.value=a.map(s=>{var h,V,R;const v=s.object_id?String(s.object_id):"",r=v?U.value[v]:void 0;return W($({},s),{object_name:(h=s.object_name)!=null?h:r==null?void 0:r.name,object_alias:(V=s.object_alias)!=null?V:r==null?void 0:r.alias,model:(R=s.model)!=null?R:r==null?void 0:r.model})});const n=i==null?void 0:i.total_records;g.total=typeof n=="number"?n:a.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[retainerRecordList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),O.value=[],g.total=0}finally{H.value=!1}})}const be=e.computed(()=>O.value);function G(){g.current=1,C()}function pe(){j.value="",D.value=null,z.value="",y.value="object_name",E.value="1",T.value=[k.dayjs().subtract(1,"month").format(d),k.dayjs().format(d)],g.current=1,C()}function _e(){g.current=1,C()}function me(){C()}const K=e.ref(!1),Y=e.ref(!1),q=e.ref(""),c=e.ref(null),A=e.ref([]);function ve(o){return M(this,null,function*(){var i;const t=o.uid;if(!t){x.ElMessage.warning("当前行缺少历程编号,无法拉取详情");return}K.value=!0,Y.value=!0,q.value="",c.value=null,A.value=[];try{const a=yield k.api.post("get_retainer_with_events",{retainer_id:t},!0),n=(i=a==null?void 0:a.result)!=null?i:a;if(a&&a.code!==void 0&&a.code!==200){q.value=String(a.msg||a.info||"详情接口失败");return}c.value=n;const s=n==null?void 0:n.events;A.value=Array.isArray(s)?s:[]}catch(a){q.value="加载历程详情失败"}finally{Y.value=!1}})}function ge(o){const t=i=>String(i).padStart(2,"0");return`${o.getFullYear()}-${t(o.getMonth()+1)}-${t(o.getDate())} ${t(o.getHours())}:${t(o.getMinutes())}:${t(o.getSeconds())}`}function he(){return M(this,null,function*(){const o=T.value;if(!o||o.length<2||!o[0]||!o[1]){x.ElMessage.warning("请先选择创建时间范围后再导出");return}const t=[...new Set(O.value.map(a=>{var n;return String((n=a.object_id)!=null?n:"").trim()}).filter(Boolean))],i=[...new Set(O.value.map(a=>{var n;return String((n=a.template_id)!=null?n:"").trim()}).filter(Boolean))];if(!t.length&&!i.length){x.ElMessage.warning("当前页列表无项目编号或对象编号,请加载数据后再导出");return}try{yield x.ElMessageBox.confirm("将按当前列表中的项目/对象编号及所选创建时间范围提交导出任务(与 mixui 历程导出一致),是否继续?","导出历程数据",{type:"info"})}catch(a){return}try{const a=yield k.api.post("export_retainer_data",{file_name:`retainer_export_${ge(new Date).replace(/[: ]/g,"_")}`,open_at:o[0]<=o[1]?o[0]:o[1],close_at:o[0]<=o[1]?o[1]:o[0],template_ids:i,object_ids:t,character:"utf-8"},!0);if(a.code!==void 0&&a.code!==200){x.ElMessage.warning(a.msg||a.info||"导出请求未成功");return}x.ElMessage.success("导出任务已提交")}catch(a){x.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{C()}),(o,t)=>{const i=u.ElRadioButton,a=u.ElRadioGroup,n=u.ElDatePicker,s=u.ElIcon,v=u.ElInput,r=u.ElOption,h=u.ElSelect,V=u.ElButton,R=u.ElTag,Q=u.ElTableColumn,fe=u.ElTable,ye=u.ElPagination,ke=u.ElAlert,p=u.ElDescriptionsItem,Ve=u.ElDescriptions,we=u.ElTimelineItem,xe=u.ElTimeline,Ne=u.ElDialog,X=u.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["retainer-record-list mix-component",e.unref(S)]),style:e.normalizeStyle(e.unref(f))},[e.unref(N).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(ie.value)},e.toDisplayString(_.conf.caption||_.conf.name),5)),e.createElementVNode("div",Re,[e.createElementVNode("div",Fe,[e.createVNode(a,{modelValue:E.value,"onUpdate:modelValue":t[0]||(t[0]=l=>E.value=l),size:"small",onChange:re},{default:e.withCtx(()=>[e.createVNode(i,{label:"1"},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode("持续历程",-1)])]),_:1}),e.createVNode(i,{label:"0"},{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode("已完结历程",-1)])]),_:1}),e.createVNode(i,{label:"2"},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("全部记录",-1)])]),_:1})]),_:1},8,["modelValue"]),e.createVNode(n,{modelValue:T.value,"onUpdate:modelValue":t[1]||(t[1]=l=>T.value=l),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.createElementVNode("div",Me,[y.value!=="opened_at"&&y.value!=="category"?(e.openBlock(),e.createBlock(v,{key:0,modelValue:j.value,"onUpdate:modelValue":t[2]||(t[2]=l=>j.value=l),placeholder:"输入关键字后搜索(与 mixui 历程记录检索字段一致)",size:"small",class:"toolbar-search",onKeyup:e.withKeys(G,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(s,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(qe.Search))]),_:1})]),_:1},8,["modelValue"])):y.value==="opened_at"?(e.openBlock(),e.createBlock(n,{key:1,modelValue:D.value,"onUpdate:modelValue":t[3]||(t[3]=l=>D.value=l),type:"datetimerange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD HH:mm:ss",size:"small",class:"toolbar-opened-range"},null,8,["modelValue"])):(e.openBlock(),e.createBlock(h,{key:2,modelValue:z.value,"onUpdate:modelValue":t[4]||(t[4]=l=>z.value=l),placeholder:"历程类型",size:"small",class:"toolbar-category",clearable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(b,(l,m)=>e.createVNode(r,{key:m,label:l,value:m},null,8,["label","value"])),64))]),_:1},8,["modelValue"])),e.createVNode(h,{modelValue:y.value,"onUpdate:modelValue":t[5]||(t[5]=l=>y.value=l),size:"small",class:"toolbar-field-select",onChange:se},{default:e.withCtx(()=>[e.createVNode(r,{label:"项目编号",value:"template_id"}),e.createVNode(r,{label:"历程项编码",value:"code"}),e.createVNode(r,{label:"历程项名称(中文)",value:"label_cn"}),e.createVNode(r,{label:"历程项名称(英文)",value:"label_en"}),e.createVNode(r,{label:"历程类型",value:"category"}),e.createVNode(r,{label:"对象编号",value:"object_id"}),e.createVNode(r,{label:"对象别名",value:"object_alias"}),e.createVNode(r,{label:"对象名称",value:"object_name"}),e.createVNode(r,{label:"对象型号",value:"model"}),e.createVNode(r,{label:"项目名称",value:"customer_name"}),e.createVNode(r,{label:"开始时间",value:"opened_at"})]),_:1},8,["modelValue"]),e.createVNode(V,{type:"primary",onClick:G},{default:e.withCtx(()=>[...t[14]||(t[14]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(V,{onClick:pe},{default:e.withCtx(()=>[...t[15]||(t[15]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(N).showExportBtn?(e.openBlock(),e.createBlock(V,{key:3,type:"success",onClick:he},{default:e.withCtx(()=>[...t[16]||(t[16]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:B,class:"table-wrapper"},[e.createVNode(fe,{data:be.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(oe)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.prop},[l.visible?(e.openBlock(),e.createBlock(Q,{key:0,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(m=>{var F,Z;return[l.prop==="category"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(J(m.row.category)),1)],64)):l.prop==="retained"?(e.openBlock(),e.createBlock(R,{key:1,type:P(m.row)?"success":"info",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P(m.row)?"持续":"已完结"),1)]),_:2},1032,["type"])):l.prop==="label_cn"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(String((Z=(F=m.row.label_local)!=null?F:m.row.label_cn)!=null?Z:"")),1)],64)):(e.openBlock(),e.createElementBlock("span",Le,e.toDisplayString(ce(m.row,l.prop)),1))]}),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.unref(N).showViewBtn?(e.openBlock(),e.createBlock(Q,{key:0,label:"操作",width:"100",fixed:"right"},{default:e.withCtx(l=>[e.createVNode(V,{size:"small",onClick:m=>ve(l.row)},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode("详情",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["data","height"])],512),e.createElementVNode("div",Ie,[e.createVNode(ye,{"current-page":g.current,"onUpdate:currentPage":t[6]||(t[6]=l=>g.current=l),"page-size":g.pageSize,"onUpdate:pageSize":t[7]||(t[7]=l=>g.pageSize=l),"page-sizes":[20,50,100,200],layout:"total, sizes, prev, pager, next, jumper",total:g.total,onSizeChange:_e,onCurrentChange:me},null,8,["current-page","page-size","total"])])]),e.createVNode(Ne,{modelValue:K.value,"onUpdate:modelValue":t[9]||(t[9]=l=>K.value=l),title:"历程记录详情",width:"720px","destroy-on-close":"",onClosed:t[10]||(t[10]=l=>c.value=null)},{footer:e.withCtx(()=>[e.createVNode(V,{type:"primary",onClick:t[8]||(t[8]=l=>K.value=!1)},{default:e.withCtx(()=>[...t[18]||(t[18]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Pe,[q.value?(e.openBlock(),e.createBlock(ke,{key:0,type:"error",title:q.value,"show-icon":"",closable:!1,class:"mb-3"},null,8,["title"])):c.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(Ve,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(p,{label:"历程编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"项目编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.template_id)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"历程项(中文)"},{default:e.withCtx(()=>{var l,m;return[e.createTextVNode(e.toDisplayString((m=(l=c.value.label_local)!=null?l:c.value.label_cn)!=null?m:""),1)]}),_:1}),e.createVNode(p,{label:"历程项(英文)"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.label_en)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"历程项编码"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.code)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"历程类型"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(J(c.value.category)),1)]),_:1}),e.createVNode(p,{label:"对象编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.object_id)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"对象名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.object_name)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"对象别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.object_alias)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"型号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.model)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"状态"},{default:e.withCtx(()=>[e.createVNode(R,{type:P(c.value)?"success":"info",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P(c.value)?"持续":"已完结"),1)]),_:1},8,["type"])]),_:1}),e.createVNode(p,{label:"开始时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.opened_at)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"结束时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.close_at)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"持续时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.elapsed)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"统计结果"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.statis_result)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.description)!=null?l:""),1)]}),_:1})]),_:1}),A.value.length?(e.openBlock(),e.createElementBlock("div",Ke,"事件")):e.createCommentVNode("",!0),A.value.length?(e.openBlock(),e.createBlock(xe,{key:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(l,m)=>{var F;return e.openBlock(),e.createBlock(we,{key:m,timestamp:String((F=l.datetime)!=null?F:"")},{default:e.withCtx(()=>[e.createElementVNode("div",null,"状态:"+e.toDisplayString(l.status===1||l.status==="1"?"开启":"关闭"),1)]),_:2},1032,["timestamp"])}),128))]),_:1})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),[[X,Y.value]])]),_:1},8,["modelValue"]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[X,H.value]])}}})),Qe=k._export_sfc(Ge,[["__scopeId","data-v-79787039"]]);exports.default=Qe;
1
+ "use strict";var Ce=Object.defineProperty,Se=Object.defineProperties;var Be=Object.getOwnPropertyDescriptors;var ee=Object.getOwnPropertySymbols;var Ee=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable;var te=(_,b,d)=>b in _?Ce(_,b,{enumerable:!0,configurable:!0,writable:!0,value:d}):_[b]=d,$=(_,b)=>{for(var d in b||(b={}))Ee.call(b,d)&&te(_,d,b[d]);if(ee)for(var d of ee(b))Te.call(b,d)&&te(_,d,b[d]);return _},W=(_,b)=>Se(_,Be(b));var M=(_,b,d)=>new Promise((w,L)=>{var I=f=>{try{S(d.next(f))}catch(B){L(B)}},N=f=>{try{S(d.throw(f))}catch(B){L(B)}},S=f=>f.done?w(f.value):Promise.resolve(f.value).then(I,N);S((d=d.apply(_,b)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=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/dialog/style/css");require("element-plus/es/components/timeline/style/css");require("element-plus/es/components/timeline-item/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/alert/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio-button/style/css");const e=require("vue"),k=require("./index-B8X4_OUp.cjs"),je=require("./useTableBodyHeight-pf87uGjw.cjs"),De=require("./useMixiotPanelSurface-CAZgexY5.cjs"),ze=require("./BaseComponent-CJ3CP33o.cjs"),Oe=require("./titleStyle-NSnz6cUg.cjs"),x=require("element-plus"),qe=require("@element-plus/icons-vue"),Ae=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),le=require("./ele-lst-icon-CrxnHZ-A.cjs"),Re={class:"mix-body"},Fe={class:"toolbar toolbar-status"},Me={class:"toolbar"},Le={key:3},Ie={class:"pagination"},Pe={class:"detail-body"},Ke={key:0,class:"detail-events-title"},He={DEFAULT_ICON:le.DEFAULT_ICON,ACTIVE_ICON:le.ACTIVE_ICON,NAME_CN:"历程记录",NAME_EN:"RetainerRecordList",ORDER:7,PLATFORM:["pc","screen"]},Ue={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:"template_id",label:"项目编号",width:140,visible:!0},{key:"label_cn",label:"历程项中文名称",width:140,visible:!0},{key:"label_en",label:"历程项英文名称",width:140,visible:!0},{key:"code",label:"历程项编码",width:120,visible:!0},{key:"category",label:"历程类型",width:100,visible:!0},{key:"object_id",label:"对象编号",width:140,visible:!0},{key:"object_name",label:"对象名称",width:140,visible:!0},{key:"object_alias",label:"对象别名",width:120,visible:!0},{key:"model",label:"型号",width:100,visible:!0},{key:"retained",label:"状态",width:90,visible:!0},{key:"opened_at",label:"开始时间",width:170,visible:!0},{key:"elapsed",label:"持续时间",width:120,visible:!0},{key:"statis_result",label:"统计结果",width:120,visible:!0},{key:"close_at",label:"结束时间",width:170,visible:!0}]},ae=[{name:"历程记录",fv:"",showViewBtn:!0,showExportBtn:!0,template_id:"项目编号",template_id_visible:!0,label_cn:"历程项中文名称",label_cn_visible:!0,label_en:"历程项英文名称",label_en_visible:!0,code:"历程项编码",code_visible:!0,category:"历程类型",category_visible:!0,object_id:"对象编号",object_id_visible:!0,object_name:"对象名称",object_name_visible:!0,object_alias:"对象别名",object_alias_visible:!0,model:"型号",model_visible:!0,retained:"状态",retained_visible:!0,opened_at:"开始时间",opened_at_visible:!0,elapsed:"持续时间",elapsed_visible:!0,statis_result:"统计结果",statis_result_visible:!0,close_at:"结束时间",close_at_visible:!0}],Ye=[{key:"showViewBtn",label:"详情",type:"checkbox",group:"操作组"},{key:"showExportBtn",label:"导出",type:"checkbox",group:"命令组"},{key:"name",label:"参数名称"},{key:"template_id",label:"项目编号",checkable:!0,checkboxKey:"template_id_visible"},{key:"label_cn",label:"历程项中文名称",checkable:!0,checkboxKey:"label_cn_visible"},{key:"label_en",label:"历程项英文名称",checkable:!0,checkboxKey:"label_en_visible"},{key:"code",label:"历程项编码",checkable:!0,checkboxKey:"code_visible"},{key:"category",label:"历程类型",checkable:!0,checkboxKey:"category_visible"},{key:"object_id",label:"对象编号",checkable:!0,checkboxKey:"object_id_visible"},{key:"object_name",label:"对象名称",checkable:!0,checkboxKey:"object_name_visible"},{key:"object_alias",label:"对象别名",checkable:!0,checkboxKey:"object_alias_visible"},{key:"model",label:"型号",checkable:!0,checkboxKey:"model_visible"},{key:"retained",label:"状态",checkable:!0,checkboxKey:"retained_visible"},{key:"opened_at",label:"开始时间",checkable:!0,checkboxKey:"opened_at_visible"},{key:"elapsed",label:"持续时间",checkable:!0,checkboxKey:"elapsed_visible"},{key:"statis_result",label:"统计结果",checkable:!0,checkboxKey:"statis_result_visible"},{key:"close_at",label:"结束时间",checkable:!0,checkboxKey:"close_at_visible"}],$e=[],We={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"template_id",label:"setting.gridFields.templateId"},{value:"code",label:"setting.gridFields.code"},{value:"label_cn",label:"setting.gridFields.labelCn"},{value:"label_en",label:"setting.gridFields.labelEn"},{value:"category",label:"setting.gridFields.category"},{value:"object_id",label:"setting.gridFields.objectId"},{value:"object_name",label:"setting.gridFields.objectName"},{value:"object_alias",label:"setting.gridFields.objectAlias"},{value:"model",label:"setting.gridFields.model"},{value:"customer_name",label:"setting.gridFields.customerName"},{value:"opened_at",label:"setting.gridFields.openedAt"}]},Je={DEFAULT:He,OPTIONS:Ue,DATA:ae,PARAMS:Ye,SOURCE:$e,COMMON:We},Ge=e.defineComponent(W($({},Je),{__name:"retainerRecordList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{default:"edit"},theme:{},code:{default:""}},setup(_){const b={ALERT:"报警",FAULT:"故障",OTHER:"其他"},d="YYYY-MM-DD HH:mm:ss",w=_;class L extends ze.BaseComponent{getDataBool(t,i){var n,s;const a=(s=(n=this.props.conf)==null?void 0:n.data)==null?void 0:s[0];return a&&Object.prototype.hasOwnProperty.call(a,t)&&a[t]!==void 0?!!a[t]:this.getOptionValue(t,i)}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),showViewBtn:this.getDataBool("showViewBtn",!0),showExportBtn:this.getDataBool("showExportBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(ae));else{const i=this.props.conf.data[0];i.showViewBtn===void 0&&(i.showViewBtn=!0),i.showExportBtn===void 0&&(i.showExportBtn=!0);for(const a of["template_id_visible","label_cn_visible","label_en_visible","code_visible","category_visible","object_id_visible","object_name_visible","object_alias_visible","model_visible","retained_visible","opened_at_visible","elapsed_visible","statis_result_visible","close_at_visible"])i[a]===void 0&&(i[a]=!0)}}}const I=new L(w,"retainerRecordList");I.setupLifecycle();const N=I.getStyle(),{mixiotPanelClass:S,mixiotPanelRootStyle:f}=De.useMixiotPanelSurface(N),{tableWrapRef:B,tableBodyHeight:oe}=je.useTableBodyHeight(),ie=e.computed(()=>Oe.generateTitleStyle(w.conf.options)),ne=e.computed(()=>{var i,a,n,s;const o=((a=(i=w.conf)==null?void 0:i.options)==null?void 0:a.columns)||[],t=((s=(n=w.conf)==null?void 0:n.data)==null?void 0:s[0])||{};return(Array.isArray(o)?o:[]).map(v=>{const r=t[v.key],h=t[`${v.key}_visible`];return{prop:v.key,label:r!==void 0&&r!==""?String(r):v.label,width:v.width,minWidth:v.minWidth,visible:h!==void 0?!!h:v.visible!==!1}})}),g=e.reactive({current:1,pageSize:20,total:0}),E=e.ref("1"),T=e.ref([k.dayjs().subtract(1,"month").format(d),k.dayjs().format(d)]),j=e.ref(""),y=e.ref("object_name"),D=e.ref(null),z=e.ref(""),O=e.ref([]),H=e.ref(!1),U=e.ref({});function re(){g.current=1,C()}function se(){j.value="",D.value=null,z.value=""}function J(o){var i;if(o==null||o==="")return"";const t=String(o);return(i=b[t])!=null?i:t}function P(o){const t=o.retained;return t===1||t==="1"}function ce(o,t){const i=o[t];return i==null?"":String(i)}function de(){return M(this,null,function*(){var o;if(!(Object.keys(U.value).length>0))try{let t=1;const i=2e3;for(;;){const a=yield k.api.http("get_object_list",{page_index:t,page_size:i},!1),n=(o=a==null?void 0:a.result)!=null?o:a,s=Array.isArray(n==null?void 0:n.data)?n.data:[];for(const r of s){const h=r.uid;h&&(U.value[h]={name:r.name,alias:r.alias,model:r.model})}const v=typeof(n==null?void 0:n.total_records)=="number"?n.total_records:s.length;if(!s.length||t*i>=v)break;t++}}catch(t){}})}function ue(){const o=[];E.value!=="2"&&o.push(["retained","=",E.value]);const t=T.value;if(t&&t.length===2&&t[0]&&t[1]){const[a,n]=t[0]<=t[1]?t:[t[1],t[0]];o.push(["created",">=",a]),o.push(["created","<=",n])}if(y.value==="opened_at"){const a=D.value;if(a&&a.length===2&&a[0]&&a[1]){const[n,s]=a[0]<=a[1]?a:[a[1],a[0]];o.push(["opened_at",">=",n]),o.push(["opened_at","<=",s])}}else if(y.value==="category"){const a=z.value.trim();a&&o.push(["category","=",a])}else{const a=j.value.trim();a&&o.push([y.value,"like",`%${a}%`])}Ae.appendCommonDesignerWhereAnd(w.conf.common,o);const i={page_index:g.current,page_size:g.pageSize};return o.length&&(i.where_and=JSON.stringify(o)),i}function C(){return M(this,null,function*(){var o;H.value=!0;try{yield de();const t=yield k.api.http("get_retainer_result_list",ue(),!0),i=(o=t==null?void 0:t.result)!=null?o:t,a=Array.isArray(i==null?void 0:i.data)?i.data:[];O.value=a.map(s=>{var h,V,R;const v=s.object_id?String(s.object_id):"",r=v?U.value[v]:void 0;return W($({},s),{object_name:(h=s.object_name)!=null?h:r==null?void 0:r.name,object_alias:(V=s.object_alias)!=null?V:r==null?void 0:r.alias,model:(R=s.model)!=null?R:r==null?void 0:r.model})});const n=i==null?void 0:i.total_records;g.total=typeof n=="number"?n:a.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[retainerRecordList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),O.value=[],g.total=0}finally{H.value=!1}})}const be=e.computed(()=>O.value);function G(){g.current=1,C()}function pe(){j.value="",D.value=null,z.value="",y.value="object_name",E.value="1",T.value=[k.dayjs().subtract(1,"month").format(d),k.dayjs().format(d)],g.current=1,C()}function _e(){g.current=1,C()}function me(){C()}const K=e.ref(!1),Y=e.ref(!1),q=e.ref(""),c=e.ref(null),A=e.ref([]);function ve(o){return M(this,null,function*(){var i;const t=o.uid;if(!t){x.ElMessage.warning("当前行缺少历程编号,无法拉取详情");return}K.value=!0,Y.value=!0,q.value="",c.value=null,A.value=[];try{const a=yield k.api.http("get_retainer_with_events",{retainer_id:t},!0),n=(i=a==null?void 0:a.result)!=null?i:a;if(a&&a.code!==void 0&&a.code!==200){q.value=String(a.msg||a.info||"详情接口失败");return}c.value=n;const s=n==null?void 0:n.events;A.value=Array.isArray(s)?s:[]}catch(a){q.value="加载历程详情失败"}finally{Y.value=!1}})}function ge(o){const t=i=>String(i).padStart(2,"0");return`${o.getFullYear()}-${t(o.getMonth()+1)}-${t(o.getDate())} ${t(o.getHours())}:${t(o.getMinutes())}:${t(o.getSeconds())}`}function he(){return M(this,null,function*(){const o=T.value;if(!o||o.length<2||!o[0]||!o[1]){x.ElMessage.warning("请先选择创建时间范围后再导出");return}const t=[...new Set(O.value.map(a=>{var n;return String((n=a.object_id)!=null?n:"").trim()}).filter(Boolean))],i=[...new Set(O.value.map(a=>{var n;return String((n=a.template_id)!=null?n:"").trim()}).filter(Boolean))];if(!t.length&&!i.length){x.ElMessage.warning("当前页列表无项目编号或对象编号,请加载数据后再导出");return}try{yield x.ElMessageBox.confirm("将按当前列表中的项目/对象编号及所选创建时间范围提交导出任务(与 mixui 历程导出一致),是否继续?","导出历程数据",{type:"info"})}catch(a){return}try{const a=yield k.api.http("export_retainer_data",{file_name:`retainer_export_${ge(new Date).replace(/[: ]/g,"_")}`,open_at:o[0]<=o[1]?o[0]:o[1],close_at:o[0]<=o[1]?o[1]:o[0],template_ids:i,object_ids:t,character:"utf-8"},!0);if(a.code!==void 0&&a.code!==200){x.ElMessage.warning(a.msg||a.info||"导出请求未成功");return}x.ElMessage.success("导出任务已提交")}catch(a){x.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{C()}),(o,t)=>{const i=u.ElRadioButton,a=u.ElRadioGroup,n=u.ElDatePicker,s=u.ElIcon,v=u.ElInput,r=u.ElOption,h=u.ElSelect,V=u.ElButton,R=u.ElTag,Q=u.ElTableColumn,fe=u.ElTable,ye=u.ElPagination,ke=u.ElAlert,p=u.ElDescriptionsItem,Ve=u.ElDescriptions,we=u.ElTimelineItem,xe=u.ElTimeline,Ne=u.ElDialog,X=u.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["retainer-record-list mix-component",e.unref(S)]),style:e.normalizeStyle(e.unref(f))},[e.unref(N).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(ie.value)},e.toDisplayString(_.conf.caption||_.conf.name),5)),e.createElementVNode("div",Re,[e.createElementVNode("div",Fe,[e.createVNode(a,{modelValue:E.value,"onUpdate:modelValue":t[0]||(t[0]=l=>E.value=l),size:"small",onChange:re},{default:e.withCtx(()=>[e.createVNode(i,{label:"1"},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode("持续历程",-1)])]),_:1}),e.createVNode(i,{label:"0"},{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode("已完结历程",-1)])]),_:1}),e.createVNode(i,{label:"2"},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("全部记录",-1)])]),_:1})]),_:1},8,["modelValue"]),e.createVNode(n,{modelValue:T.value,"onUpdate:modelValue":t[1]||(t[1]=l=>T.value=l),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.createElementVNode("div",Me,[y.value!=="opened_at"&&y.value!=="category"?(e.openBlock(),e.createBlock(v,{key:0,modelValue:j.value,"onUpdate:modelValue":t[2]||(t[2]=l=>j.value=l),placeholder:"输入关键字后搜索(与 mixui 历程记录检索字段一致)",size:"small",class:"toolbar-search",onKeyup:e.withKeys(G,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(s,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(qe.Search))]),_:1})]),_:1},8,["modelValue"])):y.value==="opened_at"?(e.openBlock(),e.createBlock(n,{key:1,modelValue:D.value,"onUpdate:modelValue":t[3]||(t[3]=l=>D.value=l),type:"datetimerange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD HH:mm:ss",size:"small",class:"toolbar-opened-range"},null,8,["modelValue"])):(e.openBlock(),e.createBlock(h,{key:2,modelValue:z.value,"onUpdate:modelValue":t[4]||(t[4]=l=>z.value=l),placeholder:"历程类型",size:"small",class:"toolbar-category",clearable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(b,(l,m)=>e.createVNode(r,{key:m,label:l,value:m},null,8,["label","value"])),64))]),_:1},8,["modelValue"])),e.createVNode(h,{modelValue:y.value,"onUpdate:modelValue":t[5]||(t[5]=l=>y.value=l),size:"small",class:"toolbar-field-select",onChange:se},{default:e.withCtx(()=>[e.createVNode(r,{label:"项目编号",value:"template_id"}),e.createVNode(r,{label:"历程项编码",value:"code"}),e.createVNode(r,{label:"历程项名称(中文)",value:"label_cn"}),e.createVNode(r,{label:"历程项名称(英文)",value:"label_en"}),e.createVNode(r,{label:"历程类型",value:"category"}),e.createVNode(r,{label:"对象编号",value:"object_id"}),e.createVNode(r,{label:"对象别名",value:"object_alias"}),e.createVNode(r,{label:"对象名称",value:"object_name"}),e.createVNode(r,{label:"对象型号",value:"model"}),e.createVNode(r,{label:"项目名称",value:"customer_name"}),e.createVNode(r,{label:"开始时间",value:"opened_at"})]),_:1},8,["modelValue"]),e.createVNode(V,{type:"primary",onClick:G},{default:e.withCtx(()=>[...t[14]||(t[14]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(V,{onClick:pe},{default:e.withCtx(()=>[...t[15]||(t[15]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(N).showExportBtn?(e.openBlock(),e.createBlock(V,{key:3,type:"success",onClick:he},{default:e.withCtx(()=>[...t[16]||(t[16]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:B,class:"table-wrapper"},[e.createVNode(fe,{data:be.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(oe)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.prop},[l.visible?(e.openBlock(),e.createBlock(Q,{key:0,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(m=>{var F,Z;return[l.prop==="category"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(J(m.row.category)),1)],64)):l.prop==="retained"?(e.openBlock(),e.createBlock(R,{key:1,type:P(m.row)?"success":"info",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P(m.row)?"持续":"已完结"),1)]),_:2},1032,["type"])):l.prop==="label_cn"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(String((Z=(F=m.row.label_local)!=null?F:m.row.label_cn)!=null?Z:"")),1)],64)):(e.openBlock(),e.createElementBlock("span",Le,e.toDisplayString(ce(m.row,l.prop)),1))]}),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.unref(N).showViewBtn?(e.openBlock(),e.createBlock(Q,{key:0,label:"操作",width:"100",fixed:"right"},{default:e.withCtx(l=>[e.createVNode(V,{size:"small",onClick:m=>ve(l.row)},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode("详情",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["data","height"])],512),e.createElementVNode("div",Ie,[e.createVNode(ye,{"current-page":g.current,"onUpdate:currentPage":t[6]||(t[6]=l=>g.current=l),"page-size":g.pageSize,"onUpdate:pageSize":t[7]||(t[7]=l=>g.pageSize=l),"page-sizes":[20,50,100,200],layout:"total, sizes, prev, pager, next, jumper",total:g.total,onSizeChange:_e,onCurrentChange:me},null,8,["current-page","page-size","total"])])]),e.createVNode(Ne,{modelValue:K.value,"onUpdate:modelValue":t[9]||(t[9]=l=>K.value=l),title:"历程记录详情",width:"720px","destroy-on-close":"",onClosed:t[10]||(t[10]=l=>c.value=null)},{footer:e.withCtx(()=>[e.createVNode(V,{type:"primary",onClick:t[8]||(t[8]=l=>K.value=!1)},{default:e.withCtx(()=>[...t[18]||(t[18]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Pe,[q.value?(e.openBlock(),e.createBlock(ke,{key:0,type:"error",title:q.value,"show-icon":"",closable:!1,class:"mb-3"},null,8,["title"])):c.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(Ve,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(p,{label:"历程编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"项目编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.template_id)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"历程项(中文)"},{default:e.withCtx(()=>{var l,m;return[e.createTextVNode(e.toDisplayString((m=(l=c.value.label_local)!=null?l:c.value.label_cn)!=null?m:""),1)]}),_:1}),e.createVNode(p,{label:"历程项(英文)"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.label_en)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"历程项编码"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.code)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"历程类型"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(J(c.value.category)),1)]),_:1}),e.createVNode(p,{label:"对象编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.object_id)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"对象名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.object_name)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"对象别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.object_alias)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"型号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.model)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"状态"},{default:e.withCtx(()=>[e.createVNode(R,{type:P(c.value)?"success":"info",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P(c.value)?"持续":"已完结"),1)]),_:1},8,["type"])]),_:1}),e.createVNode(p,{label:"开始时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.opened_at)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"结束时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.close_at)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"持续时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.elapsed)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"统计结果"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.statis_result)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=c.value.description)!=null?l:""),1)]}),_:1})]),_:1}),A.value.length?(e.openBlock(),e.createElementBlock("div",Ke,"事件")):e.createCommentVNode("",!0),A.value.length?(e.openBlock(),e.createBlock(xe,{key:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(l,m)=>{var F;return e.openBlock(),e.createBlock(we,{key:m,timestamp:String((F=l.datetime)!=null?F:"")},{default:e.withCtx(()=>[e.createElementVNode("div",null,"状态:"+e.toDisplayString(l.status===1||l.status==="1"?"开启":"关闭"),1)]),_:2},1032,["timestamp"])}),128))]),_:1})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),[[X,Y.value]])]),_:1},8,["modelValue"]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[X,H.value]])}}})),Qe=k._export_sfc(Ge,[["__scopeId","data-v-804b7170"]]);exports.default=Qe;
@@ -53,15 +53,15 @@ import "element-plus/es/components/dropdown-item/style/css";
53
53
  import "element-plus/es/components/button/style/css";
54
54
  import "element-plus/es/components/icon/style/css";
55
55
  import { defineComponent as dl, computed as P, ref as h, reactive as Ne, onMounted as ul, openBlock as u, createElementBlock as p, normalizeStyle as Se, unref as k, normalizeClass as Ie, createElementVNode as g, toDisplayString as f, createVNode as n, withCtx as s, createTextVNode as b, createBlock as B, createCommentVNode as R, withDirectives as pl, withKeys as xe, Fragment as F, renderList as Z, withModifiers as ne, renderSlot as _l } from "vue";
56
- import { d as Y, a as T, F as ml, k as fl, _ as bl } from "./index-C596S3FR.js";
56
+ import { d as Y, a as T, F as ml, f as fl, _ as bl } from "./index-yfWcELw0.js";
57
57
  import { u as vl } from "./useMixiotPanelSurface-DRl3cZvc.js";
58
- import { B as gl } from "./BaseComponent-B59M7tSp.js";
58
+ import { B as gl } from "./BaseComponent-DQKmWNg3.js";
59
59
  import { g as yl } from "./titleStyle-BT5GlpAb.js";
60
60
  import { ElMessage as x, ElMessageBox as hl } from "element-plus";
61
61
  import { Plus as Ee, Search as kl, MoreFilled as wl, ArrowDown as Sl } from "@element-plus/icons-vue";
62
62
  import { a as xl } from "./appendCommonDesignerWhereAnd-DwefWNOa.js";
63
63
  import { u as El } from "./useMixiotAppScrollLoad-P-UZvRtN.js";
64
- import Cl from "./MixiotAppDetailPage-DUkgCfVD.js";
64
+ import Cl from "./MixiotAppDetailPage-v_pqsB9G.js";
65
65
  import { A as jl, D as Rl } from "./ele-lst-icon-CKpeRKmk.js";
66
66
  const Dl = {
67
67
  key: 0,
@@ -394,7 +394,7 @@ const Dl = {
394
394
  let e = 1;
395
395
  const l = 2e3;
396
396
  for (; ; ) {
397
- const a = yield T.post(
397
+ const a = yield T.http(
398
398
  "get_object_list",
399
399
  { page_index: e, page_size: l },
400
400
  !1
@@ -454,7 +454,7 @@ const Dl = {
454
454
  function Be(t) {
455
455
  return C(this, null, function* () {
456
456
  var c;
457
- const e = yield T.post(
457
+ const e = yield T.http(
458
458
  "get_retainer_result_list",
459
459
  nt(),
460
460
  !0
@@ -520,7 +520,7 @@ const Dl = {
520
520
  ve.value = !0, ge.value = !0, N.value = "", v.value = null, M.value = [];
521
521
  try {
522
522
  yield Le();
523
- const d = yield T.post("get_retainer_with_events", { retainer_id: e }, !0), c = (l = d == null ? void 0 : d.result) != null ? l : d;
523
+ const d = yield T.http("get_retainer_with_events", { retainer_id: e }, !0), c = (l = d == null ? void 0 : d.result) != null ? l : d;
524
524
  if (d && d.code !== void 0 && d.code !== 200) {
525
525
  N.value = String(d.msg || d.info || "详情接口失败");
526
526
  return;
@@ -571,7 +571,7 @@ const Dl = {
571
571
  return;
572
572
  }
573
573
  try {
574
- const a = yield T.post(
574
+ const a = yield T.http(
575
575
  "export_retainer_data",
576
576
  {
577
577
  file_name: `retainer_export_${ft(/* @__PURE__ */ new Date()).replace(/[: ]/g, "_")}`,
@@ -602,7 +602,7 @@ const Dl = {
602
602
  return C(this, null, function* () {
603
603
  var e;
604
604
  try {
605
- const l = yield T.post("retainer_record_list", {
605
+ const l = yield T.http("retainer_record_list", {
606
606
  where_and: JSON.stringify([["source_id", "=", t]])
607
607
  }), a = (e = l == null ? void 0 : l.result) != null ? e : {};
608
608
  if ((l == null ? void 0 : l.code) !== void 0 && l.code !== 200) {
@@ -631,7 +631,7 @@ const Dl = {
631
631
  if (!t) return;
632
632
  const e = String(t);
633
633
  try {
634
- const o = yield T.post("get_retainer_with_events", { retainer_id: e }, !0), r = (a = o == null ? void 0 : o.result) != null ? a : o;
634
+ const o = yield T.http("get_retainer_with_events", { retainer_id: e }, !0), r = (a = o == null ? void 0 : o.result) != null ? a : o;
635
635
  if (o && o.code !== void 0 && o.code !== 200) return;
636
636
  M.value = Me(r), yield Oe(e);
637
637
  } catch (o) {
@@ -682,7 +682,7 @@ const Dl = {
682
682
  if ((t = v.value) != null && t.uid) {
683
683
  he.value = !0;
684
684
  try {
685
- const l = fl.getUser(), a = I.value.map((d) => d.url), o = yield T.post("retainer_record_create", {
685
+ const l = fl.getUser(), a = I.value.map((d) => d.url), o = yield T.http("retainer_record_create", {
686
686
  staff_id: l == null ? void 0 : l.id,
687
687
  staff_name: (e = l == null ? void 0 : l.username) != null ? e : l == null ? void 0 : l.name,
688
688
  service_at: L.service_at || Y().format("YYYY-MM-DD HH:mm:ss"),
@@ -1209,7 +1209,7 @@ const Dl = {
1209
1209
  ], 6);
1210
1210
  };
1211
1211
  }
1212
- })), Ka = /* @__PURE__ */ bl(oa, [["__scopeId", "data-v-36ae3f45"]]);
1212
+ })), Ka = /* @__PURE__ */ bl(oa, [["__scopeId", "data-v-555aef2a"]]);
1213
1213
  export {
1214
1214
  Ka as default
1215
1215
  };