mixdashboards 1.1.21 → 1.1.22
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.
- package/dist/{AgActionsRenderer-3HKXKUJY.js → AgActionsRenderer-BF0qU0IF.js} +1 -1
- package/dist/{AgActionsRenderer-DnPvuT_-.cjs → AgActionsRenderer-C2e7hPs-.cjs} +1 -1
- package/dist/{AgGridTable-BQvI6jpO.cjs → AgGridTable-Be9G2z25.cjs} +1 -1
- package/dist/{AgGridTable-BQ8M3fDj.js → AgGridTable-Bg4WW51q.js} +1 -1
- package/dist/{BaseComponent-Dn65PXTp.js → BaseComponent-Cs11e0k6.js} +3 -3
- package/dist/{BaseComponent-DKuQG62G.cjs → BaseComponent-eihedT_8.cjs} +1 -1
- package/dist/{EChartComponentBase-8GSbyY5P.cjs → EChartComponentBase-Cc-8Dgc8.cjs} +1 -1
- package/dist/{EChartComponentBase-skupRYzl.js → EChartComponentBase-cxF_cDzz.js} +2 -2
- package/dist/{EmergencyPlanPanel-C4OsnsPP.js → EmergencyPlanPanel-BuGZ7d8M.js} +1 -1
- package/dist/{EmergencyPlanPanel-DLvOrE5U.cjs → EmergencyPlanPanel-jmXa0Opr.cjs} +1 -1
- package/dist/{HistoryPlanDialog-DI0H_vgZ.js → HistoryPlanDialog-DYGneEmU.js} +1 -1
- package/dist/{HistoryPlanDialog--99rPq54.cjs → HistoryPlanDialog-cY2eD_dA.cjs} +1 -1
- package/dist/{MixiotAppDetailPage-4mYR4gHm.cjs → MixiotAppDetailPage-C8VNYOYE.cjs} +1 -1
- package/dist/{MixiotAppDetailPage-C_NrtqJU.js → MixiotAppDetailPage-OtSBNmRD.js} +1 -1
- package/dist/{MonitoringMap-Gxy8ldt1.js → MonitoringMap-BLGMNLxr.js} +2 -2
- package/dist/{MonitoringMap-CstXoU8n.cjs → MonitoringMap-BVktgEhQ.cjs} +1 -1
- package/dist/{UniverSheet-phDDfwXk.cjs → UniverSheet-7UilEsKS.cjs} +1 -1
- package/dist/{UniverSheet-DGNOHAEJ.js → UniverSheet-DPxaiamh.js} +2 -2
- package/dist/{accelerationChart-B_y_8Y4q.cjs → accelerationChart-B6GlAZdU.cjs} +1 -1
- package/dist/{accelerationChart-C4JTCc65.js → accelerationChart-BkJPOAHR.js} +2 -2
- package/dist/{actionItem-CGOgCPJR.js → actionItem-0NlNM4tP.js} +2 -2
- package/dist/{actionItem-Bdw3MAAf.cjs → actionItem-CrOePh-6.cjs} +1 -1
- package/dist/{alarmLevelChart-BQF-4a0s.js → alarmLevelChart-C7VQNQRF.js} +2 -2
- package/dist/{alarmLevelChart-CY4GqDio.cjs → alarmLevelChart-CHr8jJJa.cjs} +1 -1
- package/dist/{alertTable-D3riLPwz.cjs → alertTable-CQ89x4o7.cjs} +1 -1
- package/dist/{alertTable-DgiRdm5f.js → alertTable-D0oO6-08.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-DXFCCnvj.cjs → aliasObjectSelectorDemo-C46x1iSz.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-C7gQUdGu.js → aliasObjectSelectorDemo-DeBGofRu.js} +1 -1
- package/dist/{annualRainfallChart-D3oUahrK.cjs → annualRainfallChart-DuFmdpFY.cjs} +1 -1
- package/dist/{annualRainfallChart-C1yG42iq.js → annualRainfallChart-GWI-j30g.js} +2 -2
- package/dist/{aqi-B3g_go92.cjs → aqi-31ZY5m6u.cjs} +1 -1
- package/dist/{aqi-DLqM9gGc.js → aqi-CXSCIapf.js} +2 -2
- package/dist/{aqiIndass-DRYU-FAs.cjs → aqiIndass-M6kT5TrH.cjs} +1 -1
- package/dist/{aqiIndass-DDtB5_wf.js → aqiIndass-h6rZb2ug.js} +2 -2
- package/dist/{areaDeformCurve-DaLtFoJT.js → areaDeformCurve-CD9gHojO.js} +2 -2
- package/dist/{areaDeformCurve-CnvUJY_x.cjs → areaDeformCurve-Df06Ho63.cjs} +1 -1
- package/dist/{arrayCard-9p0Bkc_e.cjs → arrayCard-0UdDswRy.cjs} +1 -1
- package/dist/{arrayCard-FYb8TmUw.js → arrayCard-CJv8ZNIy.js} +2 -2
- package/dist/{audio-BBXpJP54.js → audio-Isovh2wB.js} +2 -2
- package/dist/{audio-DGxXcB0a.cjs → audio-JJlpYSZ9.cjs} +1 -1
- package/dist/{bar-D26zndUl.js → bar-CPG4795d.js} +2 -2
- package/dist/{bar-btY9Pwkk.cjs → bar-DyikAHhn.cjs} +1 -1
- package/dist/{basicShapeToolbox-Y6mXTA8o.js → basicShapeToolbox-BFqJ2Yvj.js} +2 -2
- package/dist/{basicShapeToolbox-XR_NHK87.cjs → basicShapeToolbox-BNfKHwaS.cjs} +1 -1
- package/dist/{bmp-DlSoc3Rw.cjs → bmp-B16PcEaF.cjs} +1 -1
- package/dist/{bmp-C7tYeLi0.js → bmp-Bfm_GnnU.js} +2 -2
- package/dist/{box-DyIX9weX.cjs → box-24TwJlhv.cjs} +1 -1
- package/dist/{box-DroQaZjH.js → box-7yPFxZ8G.js} +2 -2
- package/dist/{chartConfigPanel-D4dbsVKj.js → chartConfigPanel-BnzsIVJv.js} +1 -1
- package/dist/{chartConfigPanel-DvTKL5EZ.cjs → chartConfigPanel-CCEHVtoH.cjs} +1 -1
- package/dist/{circleBar-DCnx8wNj.js → circleBar-BUNXZF3o.js} +2 -2
- package/dist/{circleBar-DulXgWd8.cjs → circleBar-BtWy2gO0.cjs} +1 -1
- package/dist/{clock-B1X6vX22.js → clock-Ca_x3Rfn.js} +2 -2
- package/dist/{clock-CeM6LdAl.cjs → clock-D5K96XuH.cjs} +1 -1
- package/dist/{clt-IAzRVgiu.js → clt-Bv0ZxLhn.js} +2 -2
- package/dist/{clt-CcpO8rrD.cjs → clt-ByBnZmB0.cjs} +1 -1
- package/dist/{cmc-B4xRwSti.cjs → cmc-C5W99UnV.cjs} +1 -1
- package/dist/{cmc-Swd4NfxE.js → cmc-DEGZYlCK.js} +2 -2
- package/dist/{cmp-B9Aip3T2.cjs → cmp-BjSq7C2o.cjs} +1 -1
- package/dist/{cmp--gCtei5x.js → cmp-v9rt2Qlk.js} +2 -2
- package/dist/{conclusionCard-CRif9GmS.cjs → conclusionCard-BrIr0xV3.cjs} +1 -1
- package/dist/{conclusionCard-DQ0HTHsg.js → conclusionCard-DAAFxscz.js} +2 -2
- package/dist/{controlList-CwLNEkAi.cjs → controlList-4oN-BSjy.cjs} +1 -1
- package/dist/{controlList-4TidO_XJ.js → controlList-DMnGSedg.js} +4 -4
- package/dist/{controlRecordList-CuvV65TE.cjs → controlRecordList-DW3BiNX6.cjs} +1 -1
- package/dist/{controlRecordList-dPW6e4FN.js → controlRecordList-f0TZW0Yw.js} +3 -3
- package/dist/{controlRecordListAPP-DCzTOeXr.cjs → controlRecordListAPP-Bp0zHviF.cjs} +1 -1
- package/dist/{controlRecordListAPP-CObVdW3l.js → controlRecordListAPP-CjPH0xD9.js} +2 -2
- package/dist/{crd-CEWC005o.js → crd-5sv7w_uf.js} +2 -2
- package/dist/{crd-AH_sGivo.cjs → crd-C6QPdLTL.cjs} +1 -1
- package/dist/{ctrBtn-nYp9T0n0.cjs → ctrBtn-D-t0FAud.cjs} +1 -1
- package/dist/{ctrBtn-8xev-mny.js → ctrBtn-Dej6ubGR.js} +3 -3
- package/dist/{ctrSet-3Q4eJSfK.js → ctrSet-Cd1r8tJ5.js} +3 -3
- package/dist/{ctrSet-z_9ztVyG.cjs → ctrSet-J009sZiI.cjs} +1 -1
- package/dist/{ctrSwitch-BhqYXTMZ.js → ctrSwitch-BzvIEi0Z.js} +3 -3
- package/dist/{ctrSwitch-DacpvyBJ.cjs → ctrSwitch-DoRNlMrr.cjs} +1 -1
- package/dist/{dataManagement-DP1Chfo2.cjs → dataManagement-Biip4XFh.cjs} +1 -1
- package/dist/{dataManagement-BiPhJbF1.js → dataManagement-D9f7dNuW.js} +2 -2
- package/dist/{dataReport-CQaL-d_q.js → dataReport-4nDZkfIT.js} +2 -2
- package/dist/{dataReport-C_8TF5Dz.cjs → dataReport-Dnn2f0R8.cjs} +1 -1
- package/dist/{dataTable-Bbx5XgV-.js → dataTable-CXEslFD_.js} +1 -1
- package/dist/{dataTable-D6-325qb.cjs → dataTable-D_I_5ElY.cjs} +1 -1
- package/dist/{datetime-CmXZdgkW.js → datetime-CXrlS-Fn.js} +2 -2
- package/dist/{datetime-DBrUO7wD.cjs → datetime-R_MfQNEw.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-Ch8i2ql5.cjs → deepClusterSlipSurface-BQhcJYNb.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-D7o7mgg7.js → deepClusterSlipSurface-Bvcjjagk.js} +2 -2
- package/dist/{deepDataMatrix-DoM8KUHn.cjs → deepDataMatrix-Bdqwu1Ae.cjs} +1 -1
- package/dist/{deepDataMatrix-D9GCg496.js → deepDataMatrix-Bpa3PeEY.js} +2 -2
- package/dist/{deepDisplacement3D-C8ZRCP-R.cjs → deepDisplacement3D-BdvAwJNS.cjs} +1 -1
- package/dist/{deepDisplacement3D-Cjx11pre.js → deepDisplacement3D-DTthQrmv.js} +2 -2
- package/dist/{deepDisplacementChart-BHe83IoB.js → deepDisplacementChart-B39_4-5G.js} +3 -3
- package/dist/{deepDisplacementChart-r3GIC8hq.cjs → deepDisplacementChart-BK2B5ni5.cjs} +1 -1
- package/dist/{deepDisplacementChart-HuWab3pz.js → deepDisplacementChart-BlFW846d.js} +2 -2
- package/dist/{deepDisplacementChart-BlcS3DVl.cjs → deepDisplacementChart-DGK-ytLL.cjs} +1 -1
- package/dist/{deepDisplacementView-B4RBH8Ie.js → deepDisplacementView-CEzyslgi.js} +1 -1
- package/dist/{deepDisplacementView-BHZQ4s3K.cjs → deepDisplacementView-D0k8ixeZ.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-BswYkP9V.cjs → deepNodeTemperatureChart-CRshTNQb.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-D9maVN-M.js → deepNodeTemperatureChart-jFr4HEhl.js} +2 -2
- package/dist/{deepTangentAngleChart-DQxOv4Vz.cjs → deepTangentAngleChart-DN93Za_F.cjs} +1 -1
- package/dist/{deepTangentAngleChart-DIWKa8r3.js → deepTangentAngleChart-qlt_i28X.js} +2 -2
- package/dist/{deepTemperatureField-2GBzigs_.cjs → deepTemperatureField-BSSfpaM1.cjs} +1 -1
- package/dist/{deepTemperatureField-DlLLcuFb.js → deepTemperatureField-DqFGBnor.js} +3 -3
- package/dist/{deepTrendChart-CdX41nqe.js → deepTrendChart-ByEnbGBj.js} +2 -2
- package/dist/{deepTrendChart-CbYdfjcX.cjs → deepTrendChart-DHK9tGSS.cjs} +1 -1
- package/dist/{deviceOnlineStatus-BdOeLbLy.js → deviceOnlineStatus-CpIQZh0M.js} +2 -2
- package/dist/{deviceOnlineStatus-BMfNv4fX.cjs → deviceOnlineStatus-DitvFXO0.cjs} +1 -1
- package/dist/{deviceStatus-B8Ijgoyf.js → deviceStatus-BMnvPaCe.js} +2 -2
- package/dist/{deviceStatus-CbYBmGvy.cjs → deviceStatus-D2zwkfv8.cjs} +1 -1
- package/dist/{displacementDataTable-BI8cE-vY.cjs → displacementDataTable-BNFgHcpm.cjs} +1 -1
- package/dist/{displacementDataTable-Cqi5Ql6a.js → displacementDataTable-DV98or0V.js} +2 -2
- package/dist/{displacementTrajectoryChart-DJM_B-gL.cjs → displacementTrajectoryChart-D0JeDw83.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-D1UPR4dt.js → displacementTrajectoryChart-DOlT71OH.js} +2 -2
- package/dist/{displacementTrendChart-C4jvpdRY.cjs → displacementTrendChart-B75DMlL9.cjs} +1 -1
- package/dist/{displacementTrendChart-Dii90QjN.js → displacementTrendChart-Bf4dWRhF.js} +2 -2
- package/dist/{dxf-DsJIwOOJ.cjs → dxf-CF9JCrJV.cjs} +1 -1
- package/dist/{dxf-DAAwQlgQ.js → dxf-yWp505VQ.js} +2 -2
- package/dist/{dzc-CpML7WAZ.cjs → dzc-CJ813oEs.cjs} +1 -1
- package/dist/{dzc-BjOYTnIF.js → dzc-xaygWqOQ.js} +2 -2
- package/dist/{emergencyPlan-DWpGIszu.cjs → emergencyPlan-CYC8WV5d.cjs} +1 -1
- package/dist/{emergencyPlan-DeL1roPL.js → emergencyPlan-CdM9diRp.js} +3 -3
- package/dist/{evn-CUajXlYc.js → evn-Bm1yVYiV.js} +2 -2
- package/dist/{evn-D0ROeiQD.cjs → evn-DlqIQc2z.cjs} +1 -1
- package/dist/{evolutionChart-D23ALmPJ.cjs → evolutionChart-C5HEvSaz.cjs} +1 -1
- package/dist/{evolutionChart-B-2W9qVE.js → evolutionChart-qvx9fo_v.js} +3 -3
- package/dist/{fileViewer-DHDmo6px.cjs → fileViewer-DurCR5a4.cjs} +1 -1
- package/dist/{fileViewer-D6-jyRWy.js → fileViewer-WbsL26cJ.js} +2 -2
- package/dist/{filterBar-Bx0qkR7L.cjs → filterBar-BU7f-lAL.cjs} +1 -1
- package/dist/{filterBar-Cw-wbtF1.js → filterBar-V4nVpuvO.js} +2 -2
- package/dist/{fireCombustionCurve-wPPE55j_.js → fireCombustionCurve-BjwJ-Buh.js} +3 -3
- package/dist/{fireCombustionCurve-Dj2o6qcy.cjs → fireCombustionCurve-CWtYLNcG.cjs} +1 -1
- package/dist/{fireFilterBar-t-aUk0FZ.cjs → fireFilterBar-C2UtCT2L.cjs} +1 -1
- package/dist/{fireFilterBar-COgdZt2b.js → fireFilterBar-DvPHVtM5.js} +2 -2
- package/dist/{fireHistoryTable-Em_cwZSy.js → fireHistoryTable-B0H-NLbF.js} +2 -2
- package/dist/{fireHistoryTable-BgzroLVi.cjs → fireHistoryTable-BDIjWygB.cjs} +1 -1
- package/dist/{gag-C5gOltT8.cjs → gag-6rfLUaEW.cjs} +1 -1
- package/dist/{gag-Dd-osrR9.js → gag-DiTpLnBt.js} +2 -2
- package/dist/{gasStationList-CKe02Teb.cjs → gasStationList-CwGl2iVF.cjs} +1 -1
- package/dist/{gasStationList-CepcJ9BG.js → gasStationList-DvQMtR5w.js} +3 -3
- package/dist/{geo3dViewer-yHqVv2BH.js → geo3dViewer-BFW4ohFB.js} +3 -3
- package/dist/{geo3dViewer-CSq4-kE-.cjs → geo3dViewer-DVqrkN_a.cjs} +1 -1
- package/dist/{glbModel-DFDIJi5z.js → glbModel-D_qGC582.js} +2 -2
- package/dist/{glbModel-CBM7-1vZ.cjs → glbModel-QU90FqIC.cjs} +1 -1
- package/dist/{globalObjectSelector-BvK0QxXk.cjs → globalObjectSelector-UHy_RRW-.cjs} +1 -1
- package/dist/{globalObjectSelector-BoBf_njv.js → globalObjectSelector-ueGOvmC6.js} +1 -1
- package/dist/{gnssFilterBar-BabiLlIC.cjs → gnssFilterBar-B6cISQlJ.cjs} +1 -1
- package/dist/{gnssFilterBar-C4Ozsjee.js → gnssFilterBar-oq0assIP.js} +2 -2
- package/dist/{gnssHistoryTable-DWICO-OK.js → gnssHistoryTable-M7oEkZH2.js} +2 -2
- package/dist/{gnssHistoryTable-CEtxui4z.cjs → gnssHistoryTable-pma2i5b1.cjs} +1 -1
- package/dist/{gnssMapView-CgLO6fng.js → gnssMapView-CTjFS1uJ.js} +4 -4
- package/dist/{gnssMapView-C5IzKoTF.cjs → gnssMapView-_O2G4Jtp.cjs} +2 -2
- package/dist/{gnssSectionProfile-BcS3AU5H.cjs → gnssSectionProfile-C1I_Yvgd.cjs} +1 -1
- package/dist/{gnssSectionProfile-BFU5_iQa.js → gnssSectionProfile-DjI84Sxx.js} +2 -2
- package/dist/{gnssTimeSeriesChart-2AOe01nY.cjs → gnssTimeSeriesChart-CPkAGzdO.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-Cyc9JVmX.js → gnssTimeSeriesChart-N_jA0aIT.js} +2 -2
- package/dist/{gnssXYTrajectory-B3HDdORI.cjs → gnssXYTrajectory-D3BH7ifI.cjs} +1 -1
- package/dist/{gnssXYTrajectory-DAjqaaOt.js → gnssXYTrajectory-E1HbhlrN.js} +2 -2
- package/dist/{grd-jisN3fY_.cjs → grd-B39w-pcK.cjs} +1 -1
- package/dist/{grd-BdraSTc0.js → grd-DF4NGl0g.js} +2 -2
- package/dist/{grdIndass-BuEWpm2p.js → grdIndass-ByU7_r1j.js} +2 -2
- package/dist/{grdIndass-BxJWHgbc.cjs → grdIndass-S10dVOnv.cjs} +1 -1
- package/dist/{grg-BiUyteXn.js → grg-6qUcdyJ0.js} +2 -2
- package/dist/{grg-DHDNZzvS.cjs → grg-Bt8GpGs6.cjs} +1 -1
- package/dist/{gridview-DsDgxIu-.js → gridview-Br8vBlWF.js} +2 -2
- package/dist/{gridview-C2eGcIgv.cjs → gridview-DB8r6V6s.cjs} +1 -1
- package/dist/{groundwaterFilterBar-CwNVHLoq.js → groundwaterFilterBar-CKn5JGwA.js} +2 -2
- package/dist/{groundwaterFilterBar-Dwoyvzll.cjs → groundwaterFilterBar-D3cc9_Z4.cjs} +1 -1
- package/dist/{groundwaterProfileChart-xVZS96Bs.cjs → groundwaterProfileChart-BBWQpFeh.cjs} +2 -2
- package/dist/{groundwaterProfileChart-pYkKSQRV.js → groundwaterProfileChart-DHcxYcwJ.js} +3 -3
- package/dist/{groundwaterTimeCurve-CCP0yOcn.cjs → groundwaterTimeCurve-BLwFOs0m.cjs} +1 -1
- package/dist/{groundwaterTimeCurve-CRic1FkR.js → groundwaterTimeCurve-ChPGxmCZ.js} +3 -3
- package/dist/{groupCard-9mvfU5Qi.cjs → groupCard-D3KjzWp3.cjs} +1 -1
- package/dist/{groupCard-DyiQzmSU.js → groupCard-DmsCmsav.js} +2 -2
- package/dist/{headerBar-CT2WWLFX.js → headerBar-By8g89TV.js} +2 -2
- package/dist/{headerBar-BnZZrxdl.cjs → headerBar-DP3kNK9P.cjs} +1 -1
- package/dist/{history-Dm7563t_.cjs → history-CndXrm20.cjs} +1 -1
- package/dist/{history-CY_TCu9h.js → history-D17_Q_UO.js} +1 -1
- package/dist/{index-CPTJIw32.js → index-B5OsYU5s.js} +3 -3
- package/dist/{index-DoEyCVDU.cjs → index-CikO6qmH.cjs} +3 -3
- package/dist/{insarDeformChart-Bf6Q1Kll.js → insarDeformChart-B5UD9MPV.js} +2 -2
- package/dist/{insarDeformChart-D7r5dP7T.cjs → insarDeformChart-YnBHEDeL.cjs} +1 -1
- package/dist/{insarImageViewer-Cj6ywbUG.cjs → insarImageViewer-BAzpSNjI.cjs} +1 -1
- package/dist/{insarImageViewer-CupmlYkz.js → insarImageViewer-DHbqYaU1.js} +2 -2
- package/dist/{kds-vKrvUAFM.js → kds-B5UMZQs-.js} +2 -2
- package/dist/{kds-BXJfeT1L.cjs → kds-BL282Puq.cjs} +1 -1
- package/dist/{kpiCard-SXeIckZe.cjs → kpiCard-B3k_seHL.cjs} +1 -1
- package/dist/{kpiCard-DxJnC2K1.js → kpiCard-CpvQfETu.js} +2 -2
- package/dist/{landslideMap-g1sW7hGk.js → landslideMap-DbM9H0q9.js} +3 -3
- package/dist/{landslideMap-Byzuh2uI.cjs → landslideMap-l7DnsDC8.cjs} +1 -1
- package/dist/{landslideWarning-DBYw20My.cjs → landslideWarning-CMCHR70P.cjs} +1 -1
- package/dist/{landslideWarning-K2gltHjy.js → landslideWarning-D5A6L7LG.js} +5 -5
- package/dist/{layerTabs-pQHCSR8d.cjs → layerTabs-CQskqdBq.cjs} +1 -1
- package/dist/{layerTabs-DhKwbCdm.js → layerTabs-CxYVujmX.js} +2 -2
- package/dist/{leaflet-src-BNvMLv27.cjs → leaflet-src-BhiA8QMC.cjs} +1 -1
- package/dist/{leaflet-src-CLsvhZ1a.js → leaflet-src-DMp0hWTx.js} +1 -1
- package/dist/{lerc-7GSCiwa9.cjs → lerc-COfo7-9B.cjs} +1 -1
- package/dist/{lerc-CqUbnv8h.js → lerc-DLEZ-RWX.js} +2 -2
- package/dist/{lin-D0itRkyl.cjs → lin-VWl0uE1Q.cjs} +1 -1
- package/dist/{lin-Bq35ycag.js → lin-_gblmsy6.js} +2 -2
- package/dist/{linIndass-DYq4eFAR.js → linIndass-BdMcKrDf.js} +2 -2
- package/dist/{linIndass-DWiz2vOV.cjs → linIndass-DBZAh2IO.cjs} +1 -1
- package/dist/{lst-qvTez4v1.js → lst-cMhY9mq0.js} +2 -2
- package/dist/{lst-DdajeugL.cjs → lst-yN1wZAG-.cjs} +1 -1
- package/dist/{manualEntry-D33u42uH.js → manualEntry-BYEHpkCy.js} +2 -2
- package/dist/{manualEntry-s4RAoEru.cjs → manualEntry-BuOtkc3R.cjs} +1 -1
- package/dist/{mapBackground-DM72oEn2.js → mapBackground-CL9bIt_K.js} +3 -3
- package/dist/{mapBackground-YtkaIPHY.cjs → mapBackground-Dd19gRWw.cjs} +1 -1
- package/dist/{mappingList-Ch1HZwNc.cjs → mappingList-DZCfo59j.cjs} +1 -1
- package/dist/{mappingList-Dy_UeCUf.js → mappingList-OcmUvu4z.js} +4 -4
- package/dist/{markdownViewer-ZlwNlmLZ.js → markdownViewer-B-q2x-yF.js} +2 -2
- package/dist/{markdownViewer-DUjEXMVH.cjs → markdownViewer-DlOl2sDX.cjs} +1 -1
- package/dist/{mix-control-modal-B3FrB7Jt.cjs → mix-control-modal-BpwQm9Uj.cjs} +1 -1
- package/dist/{mix-control-modal-tXOouBPe.js → mix-control-modal-PfkgF6_6.js} +1 -1
- package/dist/{mixGrid-CogLsRzO.js → mixGrid-A8NAMgMF.js} +2 -2
- package/dist/{mixGrid-BU9U3aHI.cjs → mixGrid-CpUkERr8.cjs} +1 -1
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-xUmmLzM-.js → mjpegCamera-3MVMHUb0.js} +2 -2
- package/dist/{mjpegCamera-g6FXbrP3.cjs → mjpegCamera-Boc7t5WO.cjs} +1 -1
- package/dist/{monitorAlert-DhE_HvpR.js → monitorAlert-CIDFzdYR.js} +2 -2
- package/dist/{monitorAlert-DZd5lJOJ.cjs → monitorAlert-Nh8BMTAf.cjs} +1 -1
- package/dist/{monitorData-BnEkcdiN.js → monitorData-By0rGKZW.js} +2 -2
- package/dist/{monitorData-CpWVhINV.cjs → monitorData-D7E_TggC.cjs} +1 -1
- package/dist/{monitorSpeedChart-DwsoytUF.cjs → monitorSpeedChart-BYgwtwHy.cjs} +1 -1
- package/dist/{monitorSpeedChart-CeW-Kk03.js → monitorSpeedChart-DEerOcaT.js} +1 -1
- package/dist/{mxa-0DZWI1xK.cjs → mxa-CNLjP0-O.cjs} +1 -1
- package/dist/{mxa-C58deh1I.js → mxa-DneShp8a.js} +2 -2
- package/dist/{myValue-B4ADQTTG.js → myValue-DYyDzY52.js} +2 -2
- package/dist/{myValue-DQLm9XLI.cjs → myValue-DuCfPC-s.cjs} +1 -1
- package/dist/{myValueList-baXd51uR.js → myValueList-BBbTpmI7.js} +2 -2
- package/dist/{myValueList-DZA9_HEh.cjs → myValueList-C4XFOG9D.cjs} +1 -1
- package/dist/{objectList-5m0NKALq.js → objectList-C4uitv-T.js} +4 -4
- package/dist/{objectList-BHmAruDg.cjs → objectList-D3qVPCGA.cjs} +1 -1
- package/dist/{objectListAPP-COZlfKyw.js → objectListAPP-BDvQQv8l.js} +3 -3
- package/dist/{objectListAPP-Cs7Wu_86.cjs → objectListAPP-Cz2k8DDi.cjs} +1 -1
- package/dist/{percentBar-CPfJrspp.cjs → percentBar-C30q-ZFp.cjs} +1 -1
- package/dist/{percentBar-BV6nG2iK.js → percentBar-D7y5Qff_.js} +2 -2
- package/dist/{photo-DK4Z23e3.js → photo-D73uWSPh.js} +2 -2
- package/dist/{photo-C4739K_A.cjs → photo-DEIHnhwN.cjs} +1 -1
- package/dist/{pie-kb79hzax.cjs → pie-DHEXhVE2.cjs} +1 -1
- package/dist/{pie-Lx2zjyZY.js → pie-pW2Ur97V.js} +2 -2
- package/dist/{placeholder-Cv_i5j6V.js → placeholder-7qgMTQHB.js} +1 -1
- package/dist/{placeholder-CAWJju9d.cjs → placeholder-DuK50h5L.cjs} +1 -1
- package/dist/{pressBtn-DwN7ExMn.js → pressBtn-CdhxCL39.js} +3 -3
- package/dist/{pressBtn-DPp2yGFb.cjs → pressBtn-CfZSJV5c.cjs} +1 -1
- package/dist/{processTable-kGjdZ2SC.cjs → processTable-B59AANcq.cjs} +1 -1
- package/dist/{processTable-DRzy2-fX.js → processTable-BjgyRljh.js} +2 -2
- package/dist/{progressBar-D5GyaH8h.js → progressBar-EFuwU42e.js} +2 -2
- package/dist/{progressBar-89gQ5oSf.cjs → progressBar-ikmr9kXy.cjs} +1 -1
- package/dist/{progressCircle-C0qoN2X2.js → progressCircle-C3DGo5e3.js} +2 -2
- package/dist/{progressCircle-D6jGTviS.cjs → progressCircle-D5bdj4w9.cjs} +1 -1
- package/dist/{qrcode-DutO28qr.cjs → qrcode-C-VOYPZk.cjs} +1 -1
- package/dist/{qrcode-B7wIdO7u.js → qrcode-DHnrDkCD.js} +2 -2
- package/dist/{raceBar-Kb4Ok0_0.cjs → raceBar-CA8_Y3Mv.cjs} +1 -1
- package/dist/{raceBar-JrtM5isa.js → raceBar-bbLpplPq.js} +2 -2
- package/dist/{rad-BKh0I2W8.cjs → rad-BZ4sHh7a.cjs} +1 -1
- package/dist/{rad-NhNcdAlO.js → rad-Do_dx25V.js} +2 -2
- package/dist/{radarMapViewer-BrGy_wsI.js → radarMapViewer-CbiTQyI9.js} +2 -2
- package/dist/{radarMapViewer-a-NY9MyR.cjs → radarMapViewer-D7JVC5-_.cjs} +1 -1
- package/dist/{rainfallFilterBar-CiVPGG1P.js → rainfallFilterBar-BKocUeHH.js} +2 -2
- package/dist/{rainfallFilterBar-DlJryHw0.cjs → rainfallFilterBar-CCrabYOP.cjs} +1 -1
- package/dist/{rainfallTimeCurve-cYcKHYUj.cjs → rainfallTimeCurve-Cue_NKXc.cjs} +1 -1
- package/dist/{rainfallTimeCurve-BwrlePpg.js → rainfallTimeCurve-CzCqVDWm.js} +3 -3
- package/dist/{rangeLin-CPKLO87X.js → rangeLin-D4QfCJWM.js} +2 -2
- package/dist/{rangeLin-B24wJK2h.cjs → rangeLin-J7gdxUw7.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-ZFozACoZ.js → realtimeEvolutionMap-Bt5vm0T5.js} +2 -2
- package/dist/{realtimeEvolutionMap-CHQ7-WE1.cjs → realtimeEvolutionMap-DLLPopCu.cjs} +1 -1
- package/dist/{regionBar-Dgv2JYSM.cjs → regionBar-Biw0IAzs.cjs} +1 -1
- package/dist/{regionBar-Cz4GtJuo.js → regionBar-CTVZj2m-.js} +2 -2
- package/dist/{request-Dm2cf1Aw.cjs → request-D0THUthG.cjs} +1 -1
- package/dist/{request-aXSa-Jdv.js → request-l9UtZ26j.js} +1 -1
- package/dist/{retainer1-B6byWkE5.cjs → retainer1-C4mnu34_.cjs} +1 -1
- package/dist/{retainer1-B4KyW6bw.js → retainer1-Dl0Dl90y.js} +3 -3
- package/dist/{retainer2-X6vRW_D5.js → retainer2-B51XJALx.js} +3 -3
- package/dist/{retainer2-B06eGTYw.cjs → retainer2-C0-vgWgh.cjs} +1 -1
- package/dist/{retainerRecordList-C8wYAf_v.cjs → retainerRecordList-DppEmqHX.cjs} +1 -1
- package/dist/{retainerRecordList-DDZSYpCF.js → retainerRecordList-nuHnnnSu.js} +4 -4
- package/dist/{retainerRecordListAPP-B2Lp-jHM.js → retainerRecordListAPP-CND2yvR2.js} +3 -3
- package/dist/{retainerRecordListAPP-BHu691JS.cjs → retainerRecordListAPP-CsheK2LA.cjs} +1 -1
- package/dist/{ringTopN-DX7OzPp7.js → ringTopN-BdWU69U_.js} +2 -2
- package/dist/{ringTopN-BpJZOE13.cjs → ringTopN-LLeoVGUF.cjs} +1 -1
- package/dist/{riskRegionTable-D7blgvMi.js → riskRegionTable-BWLWgefn.js} +2 -2
- package/dist/{riskRegionTable-DziKMS_2.cjs → riskRegionTable-DxVIUBko.cjs} +1 -1
- package/dist/{sankey-CmgfktZj.js → sankey-DCOje10Y.js} +2 -2
- package/dist/{sankey-DjC4IYit.cjs → sankey-DQdC0YsD.cjs} +1 -1
- package/dist/{scd-zUFKqN8p.js → scd-C0-QtvYb.js} +4 -4
- package/dist/{scd-QV9whYOR.cjs → scd-akoB4WhJ.cjs} +1 -1
- package/dist/{sideMenu-POQpSa8C.cjs → sideMenu-BX4Pow5u.cjs} +1 -1
- package/dist/{sideMenu-CI23QNpx.js → sideMenu-BiKV8uvM.js} +2 -2
- package/dist/{slopeStability-Da70drIy.cjs → slopeStability-D9Zk5s9S.cjs} +1 -1
- package/dist/{slopeStability-E55huDws.js → slopeStability-DaKewAxU.js} +2 -2
- package/dist/{speedCurve-DSX1UJeW.cjs → speedCurve-CmqtOzHF.cjs} +1 -1
- package/dist/{speedCurve-BhhUH79z.js → speedCurve-D80AxmqS.js} +2 -2
- package/dist/{stackedBar-B0kr6QB7.cjs → stackedBar-DFWt2OWZ.cjs} +1 -1
- package/dist/{stackedBar-bgd2Ls04.js → stackedBar-DWD0z8Cv.js} +2 -2
- package/dist/{stationList-D7k3Lot6.js → stationList-B6Vd2W0z.js} +3 -3
- package/dist/{stationList-BSPTM0iI.cjs → stationList-CFBley3U.cjs} +1 -1
- package/dist/{stressFilterBar-Beupo7Zb.js → stressFilterBar-B8VTI2Z1.js} +2 -2
- package/dist/{stressFilterBar-B3gk67B_.cjs → stressFilterBar-DDmIAJa-.cjs} +1 -1
- package/dist/{stressTimeCurve-DGBhkdbV.js → stressTimeCurve-BdWsw9jv.js} +3 -3
- package/dist/{stressTimeCurve-CbhFLXzA.cjs → stressTimeCurve-Bjkc9_Nt.cjs} +1 -1
- package/dist/{swiper-BEau8Ehu.js → swiper-CKP6xnt-.js} +2 -2
- package/dist/{swiper-UlVDFht8.cjs → swiper-D_Rwb16u.cjs} +1 -1
- package/dist/{tablemanCreate-WnNbHft8.js → tablemanCreate-BKYDKpPr.js} +3 -3
- package/dist/{tablemanCreate-CF_D5gYW.cjs → tablemanCreate-DZ55EzLE.cjs} +1 -1
- package/dist/{tablemanDetail-_SNevfWv.cjs → tablemanDetail-3CbnNwA2.cjs} +1 -1
- package/dist/{tablemanDetail-yz3zQnFP.js → tablemanDetail-B6NGCXI0.js} +4 -4
- package/dist/{tablemanList-CDJWp9Pu.cjs → tablemanList-DowQNRR6.cjs} +1 -1
- package/dist/{tablemanList-CzcVRDtI.js → tablemanList-M7a3ZQO8.js} +4 -4
- package/dist/{tablemanTableList-Bm2fU0EX.js → tablemanTableList-BgsG8978.js} +4 -4
- package/dist/{tablemanTableList-DX76_Wzv.cjs → tablemanTableList-ZdYwUy1L.cjs} +1 -1
- package/dist/{tablemanUpdate-wdF6NUSW.cjs → tablemanUpdate-CJKEffXq.cjs} +1 -1
- package/dist/{tablemanUpdate-zmDu6tfj.js → tablemanUpdate-CTT5GBXY.js} +3 -3
- package/dist/{terminalConfigList-CCTkfKIn.js → terminalConfigList-dRPkprKy.js} +4 -4
- package/dist/{terminalConfigList-Dpktm7uo.cjs → terminalConfigList-wQ1UajwP.cjs} +1 -1
- package/dist/{terminalList-DTG1Cd-P.js → terminalList-BaP9hoss.js} +4 -4
- package/dist/{terminalList-DlnAYr5c.cjs → terminalList-Ctn_mkX8.cjs} +1 -1
- package/dist/{terminalListAPP-BXX0YEmN.js → terminalListAPP-_mKDTtbD.js} +3 -3
- package/dist/{terminalListAPP-DcG5Iu89.cjs → terminalListAPP-oF4_oz-3.cjs} +1 -1
- package/dist/{textbox-DyFcEXBF.js → textbox-DqEYrG4r.js} +2 -2
- package/dist/{textbox-C5DmbaFz.cjs → textbox-mVL51ZBg.cjs} +1 -1
- package/dist/{timeQueryBar-OqKVqlTl.cjs → timeQueryBar-CkGX0RN9.cjs} +1 -1
- package/dist/{timeQueryBar-BbWq3QkA.js → timeQueryBar-DXDqs4Se.js} +1 -1
- package/dist/{timeSeries-BDp-gfRT.cjs → timeSeries-DobViPA5.cjs} +1 -1
- package/dist/{timeSeries-D_-6XcY8.js → timeSeries-_uT3GRkl.js} +3 -3
- package/dist/{timeSeriesCurve-DgSGvMqB.js → timeSeriesCurve-DDKEPO9y.js} +3 -3
- package/dist/{timeSeriesCurve-KPYndFEq.cjs → timeSeriesCurve-Jx1N_p9K.cjs} +1 -1
- package/dist/{toggleBtn-D0JJAMZR.js → toggleBtn-BlChIxij.js} +2 -2
- package/dist/{toggleBtn-DtS2UoB4.cjs → toggleBtn-iFKonDLZ.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-Bth1LMLN.cjs → trajectoryConfigPanel-Drod-hB7.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-DxBIMfEx.js → trajectoryConfigPanel-DvPy4CPV.js} +1 -1
- package/dist/{trajectoryScatter-GkbJne40.cjs → trajectoryScatter-B16r_sIy.cjs} +1 -1
- package/dist/{trajectoryScatter-DqgFAVSz.js → trajectoryScatter-DZzTHDXJ.js} +2 -2
- package/dist/{universalConfigPanel-C4Teu_Op.cjs → universalConfigPanel-CDP9bqgM.cjs} +1 -1
- package/dist/{universalConfigPanel-BjyXE23U.js → universalConfigPanel-CjaUJ5jc.js} +1 -1
- package/dist/{universalTable-D_rkyBG2.cjs → universalTable-BQYFY1kN.cjs} +1 -1
- package/dist/{universalTable-BVwrJKq8.js → universalTable-D_xD2TfG.js} +2 -2
- package/dist/{useMixiotPanelPopperClass-C6Y6iPSp.js → useMixiotPanelPopperClass-CRHX4oub.js} +1 -1
- package/dist/{useMixiotPanelPopperClass-DmA-0R1V.cjs → useMixiotPanelPopperClass-CWf5lsSJ.cjs} +1 -1
- package/dist/{useTablemanApi-Big2Hfsi.cjs → useTablemanApi-BZTHA0JB.cjs} +1 -1
- package/dist/{useTablemanApi-CJh5jpVJ.js → useTablemanApi-CRyW9NF0.js} +1 -1
- package/dist/{useTablemanFormPanel-prjUDI9m.cjs → useTablemanFormPanel-BELiURD0.cjs} +1 -1
- package/dist/{useTablemanFormPanel-CvrN_jY3.js → useTablemanFormPanel-_kdtT958.js} +2 -2
- package/dist/{useTablemanListActions-B9SrCZRt.cjs → useTablemanListActions-BV55yWuR.cjs} +1 -1
- package/dist/{useTablemanListActions-DVQL1pwu.js → useTablemanListActions-DO6iYTzf.js} +5 -5
- package/dist/{video-CdMEjVoF.cjs → video-C1qOZBBQ.cjs} +1 -1
- package/dist/{video-DDHDy4Eq.js → video-n5FkGOgh.js} +2 -2
- package/dist/{videoMonitor-JQ4tj-qi.js → videoMonitor-CHrp1kvx.js} +2 -2
- package/dist/{videoMonitor-BZcjaMPX.cjs → videoMonitor-zxJRyMln.cjs} +1 -1
- package/dist/{vlu-Bmqrgnj8.js → vlu--l3zazKR.js} +2 -2
- package/dist/{vlu-39EqfkCs.cjs → vlu-k1DHCJlH.cjs} +1 -1
- package/dist/{warningOverview-Ctab9k92.js → warningOverview-DAqzQwIP.js} +3 -3
- package/dist/{warningOverview-DOsI-iKt.cjs → warningOverview-R5urE54q.cjs} +1 -1
- package/dist/{weather-BfV-w4FG.cjs → weather-BFCW1KGv.cjs} +1 -1
- package/dist/{weather-BwTT4bPM.js → weather-CAwG9FtK.js} +2 -2
- package/dist/{windLin-Dfz6aBio.cjs → windLin-BQpQCxgw.cjs} +1 -1
- package/dist/{windLin-DgZctBal.js → windLin-BvhTAl-C.js} +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Fe=Object.defineProperty,Me=Object.defineProperties;var $e=Object.getOwnPropertyDescriptors;var Le=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable;var Ce=(b,a,S)=>a in b?Fe(b,a,{enumerable:!0,configurable:!0,writable:!0,value:S}):b[a]=S,ie=(b,a)=>{for(var S in a||(a={}))ze.call(a,S)&&Ce(b,S,a[S]);if(Le)for(var S of Le(a))Be.call(a,S)&&Ce(b,S,a[S]);return b},le=(b,a)=>Me(b,$e(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const o=require("vue"),qe=require("@element-plus/icons-vue"),P=require("./index-DoEyCVDU.cjs");require("element-plus");const Pe=require("./EChartComponentBase-8GSbyY5P.cjs"),Ze=require("./titleStyle-NSnz6cUg.cjs"),se=require("./installCanvasRenderer-CyhM1Qpl.cjs"),He=require("./install-C8buXQPI.cjs"),Ue=require("./install-CltTFs4e.cjs"),Ye=require("./install-CYwVETsi.cjs"),je="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e趋势%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-299.000000,%20-723.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M313.60741,723.132248%20C314.376525,723.132248%20315,723.755729%20315,724.524838%20L315,724.524838%20L315,737.73953%20C315,738.508647%20314.376527,739.13212%20313.60741,739.13212%20L313.60741,739.13212%20L300.392953,739.13212%20C299.623869,739.13212%20299.000384,738.508663%20299.000363,737.739585%20L299.000363,737.739585%20L299,724.524856%20C299,723.755744%20299.623475,723.132248%20300.39259,723.132248%20L300.39259,723.132248%20Z%20M302.67,728.130248%20L300.316,728.132248%20L300.317244,737.739549%20C300.317245,737.770894%20300.336313,737.797797%20300.363485,737.80929%20L300.392953,737.815239%20L302.67,737.814248%20L302.67,728.130248%20Z%20M313.682,728.120248%20L303.987,728.129248%20L303.987,737.814248%20L313.60741,737.815239%20C313.638778,737.815239%20313.665681,737.796179%20313.677171,737.769004%20L313.683119,737.73953%20L313.683,728.944248%20L313.682972,728.929735%20L313.682,728.120248%20Z%20M310.871101,729.12887%20L310.952715,729.198297%20L312.604552,730.850134%20C312.861689,731.107271%20312.861689,731.524172%20312.604552,731.781309%20C312.373129,732.012732%20312.012296,732.035875%20311.754991,731.850736%20L311.673377,731.781309%20L311.145,731.253248%20L311.145752,734.805978%20C311.145752,735.139321%20310.898043,735.414808%20310.576658,735.458408%20L310.487311,735.464419%20L307.124,735.464248%20L307.649042,735.98918%20C307.906179,736.246317%20307.906179,736.663219%20307.649042,736.920356%20C307.417619,737.151779%20307.056787,737.174921%20306.799482,736.989783%20L306.717867,736.920356%20L305.066031,735.268519%20L305.054021,735.255814%20C305.041374,735.242301%20305.029291,735.228255%20305.017807,735.213713%20L305.066031,735.268519%20C305.034539,735.237027%20305.006903,735.203139%20304.983125,735.167441%20C304.9807,735.16179%20304.977592,735.156913%20304.974547,735.151993%20C304.832434,734.927859%20304.840126,734.636431%20304.996604,734.418958%20L305.066031,734.337344%20L306.717867,732.685507%20C306.975004,732.428371%20307.391905,732.428371%20307.649042,732.685507%20C307.880466,732.916931%20307.903608,733.277763%20307.718469,733.535068%20L307.649042,733.616683%20L307.117,734.147248%20L309.828389,734.1469%20L309.828,731.252248%20L309.300879,731.781309%20C309.043742,732.038446%20308.626841,732.038446%20308.369704,731.781309%20C308.13828,731.549886%20308.115138,731.189053%20308.300277,730.931748%20L308.369704,730.850134%20L310.02154,729.198297%20C310.252963,728.966874%20310.613796,728.943732%20310.871101,729.12887%20Z%20M313.60741,724.449129%20L300.39259,724.449129%20C300.350778,724.449129%20300.316881,724.483027%20300.316881,724.524838%20L300.316881,724.524838%20L300.316,726.815248%20L313.682,726.803248%20L313.682972,725.258988%20L313.683,725.246248%20L313.683119,724.524838%20C313.683119,724.493474%20313.664056,724.46657%20313.636882,724.455078%20L313.60741,724.449129%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Re="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e趋势%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-299.000000,%20-723.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M313.60741,723.132248%20C314.376525,723.132248%20315,723.755729%20315,724.524838%20L315,724.524838%20L315,737.73953%20C315,738.508647%20314.376527,739.13212%20313.60741,739.13212%20L313.60741,739.13212%20L300.392953,739.13212%20C299.623869,739.13212%20299.000384,738.508663%20299.000363,737.739585%20L299.000363,737.739585%20L299,724.524856%20C299,723.755744%20299.623475,723.132248%20300.39259,723.132248%20L300.39259,723.132248%20Z%20M302.67,728.130248%20L300.316,728.132248%20L300.317244,737.739549%20C300.317245,737.770894%20300.336313,737.797797%20300.363485,737.80929%20L300.392953,737.815239%20L302.67,737.814248%20L302.67,728.130248%20Z%20M313.682,728.120248%20L303.987,728.129248%20L303.987,737.814248%20L313.60741,737.815239%20C313.638778,737.815239%20313.665681,737.796179%20313.677171,737.769004%20L313.683119,737.73953%20L313.683,728.944248%20L313.682972,728.929735%20L313.682,728.120248%20Z%20M310.871101,729.12887%20L310.952715,729.198297%20L312.604552,730.850134%20C312.861689,731.107271%20312.861689,731.524172%20312.604552,731.781309%20C312.373129,732.012732%20312.012296,732.035875%20311.754991,731.850736%20L311.673377,731.781309%20L311.145,731.253248%20L311.145752,734.805978%20C311.145752,735.139321%20310.898043,735.414808%20310.576658,735.458408%20L310.487311,735.464419%20L307.124,735.464248%20L307.649042,735.98918%20C307.906179,736.246317%20307.906179,736.663219%20307.649042,736.920356%20C307.417619,737.151779%20307.056787,737.174921%20306.799482,736.989783%20L306.717867,736.920356%20L305.066031,735.268519%20L305.054021,735.255814%20C305.041374,735.242301%20305.029291,735.228255%20305.017807,735.213713%20L305.066031,735.268519%20C305.034539,735.237027%20305.006903,735.203139%20304.983125,735.167441%20C304.9807,735.16179%20304.977592,735.156913%20304.974547,735.151993%20C304.832434,734.927859%20304.840126,734.636431%20304.996604,734.418958%20L305.066031,734.337344%20L306.717867,732.685507%20C306.975004,732.428371%20307.391905,732.428371%20307.649042,732.685507%20C307.880466,732.916931%20307.903608,733.277763%20307.718469,733.535068%20L307.649042,733.616683%20L307.117,734.147248%20L309.828389,734.1469%20L309.828,731.252248%20L309.300879,731.781309%20C309.043742,732.038446%20308.626841,732.038446%20308.369704,731.781309%20C308.13828,731.549886%20308.115138,731.189053%20308.300277,730.931748%20L308.369704,730.850134%20L310.02154,729.198297%20C310.252963,728.966874%20310.613796,728.943732%20310.871101,729.12887%20Z%20M313.60741,724.449129%20L300.39259,724.449129%20C300.350778,724.449129%20300.316881,724.483027%20300.316881,724.524838%20L300.316881,724.524838%20L300.316,726.815248%20L313.682,726.803248%20L313.682972,725.258988%20L313.683,725.246248%20L313.683119,724.524838%20C313.683119,724.493474%20313.664056,724.46657%20313.636882,724.455078%20L313.60741,724.449129%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ge={class:"mix-body"},Ke={class:"toolbar"},We=["id"],Xe={DEFAULT_ICON:je,ACTIVE_ICON:Re,NAME_CN:"深部趋势图",NAME_EN:"DeepTrendChart",ORDER:21,PLATFORM:["pc","screen"]},Je={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:56,bottom:52,left:64,right:36,xName:{value:"位移量",type:"string",label:"X轴名称"},yName:{value:"高程(m)",type:"string",label:"Y轴名称"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Se=[{name:"累计位移",fv:"disp_130",depth:-130,color:"#5470c6",object_id:""},{name:"累计位移",fv:"disp_140",depth:-140,color:"#5470c6",object_id:""}],Qe=["name","fv","depth","color","object_id"],et=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],tt={useAlias:!1,multiObject:!0,source:"mosaic"},nt={DEFAULT:Xe,OPTIONS:Je,DATA:Se,PARAMS:Qe,SOURCE:et,COMMON:tt},it=o.defineComponent(le(ie({},nt),{__name:"deepTrendChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(b){se.use([He.install,se.install,Ue.install,se.install$1,Ye.install]);const a=b,S=P.useLinkStore(),O=o.ref([]),m=o.ref([]),y=o.ref(""),V=o.ref([]),Z=o.ref("s"),oe=o.ref(null),H=o.ref("hour");class ye extends Pe.EChartComponentBase{constructor(){super(...arguments),this.panelConfig={}}extractStyles(){const t=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),i=t==="custom"&&n?n:t;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",56),bottom:this.getOptionValue("bottom",52),left:this.getOptionValue("left",64),right:this.getOptionValue("right",36),xName:this.getOptionValue("xName","位移量"),yName:this.getOptionValue("yName","高程(m)"),linkChannel:i}}init(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=Se),o.nextTick(()=>this.initChart())}setHistoryData(t){pe(t)}setSocketData(t){t&&pe(t)}onLinkEvent(t){he(t)}setPanelConfig(t){this.panelConfig=t||{}}getChartOption(){var g;M.value;const t=((g=a.conf)==null?void 0:g.data)||[],n=this.panelConfig||{},i=n.range__xAxis||n.range__x||n.range||null,s=n.range__yAxis||null,l=Number.isFinite(i==null?void 0:i.min)?Number(i==null?void 0:i.min):null,r=Number.isFinite(i==null?void 0:i.max)?Number(i==null?void 0:i.max):null,c=Number.isFinite(s==null?void 0:s.min)?Number(s==null?void 0:s.min):null,u=Number.isFinite(s==null?void 0:s.max)?Number(s==null?void 0:s.max):null;return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},legend:{top:4,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"item",formatter:f=>{var v,h,d,p;return`位移量: ${(h=(v=f==null?void 0:f.value)==null?void 0:v[0])!=null?h:"-"}<br/>高程: ${(p=(d=f==null?void 0:f.value)==null?void 0:d[1])!=null?p:"-"}m`}},xAxis:{type:"value",name:this.Style.value.xName,nameLocation:"middle",nameGap:28,position:"bottom",min:l!==null?l:null,max:r!==null?r:null,axisLine:{onZero:!1},axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},yAxis:{type:"value",name:this.Style.value.yName,min:c!==null?c:null,max:u!==null?u:null,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:(()=>{const f=ue.value.length?ue.value:M.value?[M.value]:[];if(!f.length)return[];const v=new Map;t.forEach((d,p)=>{const C=(d==null?void 0:d.name)||`序列${p+1}`;v.has(C)||v.set(C,{name:C,color:d==null?void 0:d.color,items:[]}),v.get(C).items.push(d)});const h=[];return f.forEach(d=>{const p=((d==null?void 0:d.points)||[])[0]||{};Array.from(v.values()).forEach(C=>{const E=C.items.map(N=>{var q,L;const w=N==null?void 0:N.fv,R=me(p,w,Z.value),z=Number(R),B=Number((L=(q=N==null?void 0:N.depth)!=null?q:p==null?void 0:p.depth)!=null?L:p==null?void 0:p.elevation);return!Number.isFinite(z)||!Number.isFinite(B)?null:[z,B]}).filter(Boolean).sort((N,w)=>N[1]-w[1]);h.push({name:C.name,type:"line",data:E,showSymbol:!0,symbolSize:6,lineStyle:{color:C.color||"#5470c6",width:2},itemStyle:{color:C.color||"#5470c6"}})})}),h})()}}}const k=new ye(a,"deepTrendChart"),re=k.getEchartId();k.setupLifecycle();const U=k.getStyle(),Ne=o.computed(()=>Ze.generateTitleStyle(a.conf.options)),Y=e=>{const t=String(e||"");if(!t)return"";const n=de(t);if(Number.isNaN(n))return t.slice(0,10);const i=new Date(n),s=i.getFullYear(),l=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0");return`${s}-${l}-${r}`},be=e=>{var s;const t=((s=a.conf)==null?void 0:s.data)||[];if(!e.length||!t.length)return e;const n=new Map;e.forEach(l=>{const r=Y(l.time);n.has(r)||n.set(r,[]),n.get(r).push(l)});const i=[];return Array.from(n.entries()).forEach(([l,r])=>{const c={};t.forEach(u=>{const g=u==null?void 0:u.fv;if(!g)return;let f=0,v=0;if(r.forEach(h=>{const d=((h==null?void 0:h.points)||[])[0]||{},p=Number(me(d,g,Z.value));Number.isFinite(p)&&(f+=p,v+=1)}),v>0){const h=Number((f/v).toFixed(6)),d=$(g,Z.value);c[g]=h,c[d]=h}}),Object.keys(c).length>0&&i.push({time:l,points:[c]})}),i.sort((l,r)=>String(l.time).localeCompare(String(r.time)))},F=o.computed(()=>H.value==="day"?be(m.value):m.value),xe=o.computed(()=>ce.value.map(e=>({value:e.time,label:H.value==="day"?Y(e.time):W(e.time)}))),M=o.computed(()=>{const e=y.value,t=F.value;return t.find(n=>n.time===e)||t[t.length-1]||null}),ae=(e,t)=>{const n=String(e||"").trim(),i=String(t||"").trim();if(!n||!i)return!1;if(n===i)return!0;const s=W(n),l=W(i);return s&&l&&s===l?!0:H.value!=="day"?!1:Y(n)===Y(i)},_e=(e,t)=>{if(!(t!=null&&t.startDate)&&!(t!=null&&t.endDate))return!0;const n=new Date(e).getTime();if(Number.isNaN(n))return!0;const i=t.startDate?new Date(t.startDate).getTime():Number.NEGATIVE_INFINITY,s=t.endDate?new Date(t.endDate).getTime():Number.POSITIVE_INFINITY;if(Number.isNaN(i)&&Number.isNaN(s))return!0;const l=Number.isNaN(i)?Number.NEGATIVE_INFINITY:i,r=Number.isNaN(s)?Number.POSITIVE_INFINITY:s;return n>=l&&n<=r},ce=o.computed(()=>{if(!F.value.length)return[];const e=oe.value;return!(e!=null&&e.startDate)&&!(e!=null&&e.endDate)?F.value:F.value.filter(t=>_e(t.time,e))}),ue=o.computed(()=>{const e=ce.value;if(V.value.length>0)return e.filter(t=>V.value.some(n=>ae(t.time,n)));if(e.length>0){const t=e.find(n=>n.time===y.value);return t?[t]:[e[e.length-1]]}return M.value?[M.value]:[]});o.watch(()=>m.value.length,()=>{!V.value.length&&m.value.length&&(y.value=m.value[m.value.length-1].time)});const de=e=>{if(e==null)return Number.NaN;const t=typeof e=="string"?e.trim():String(e);if(!t)return Number.NaN;if(/^\d+$/.test(t)){const n=Number(t);return t.length<=10?n*1e3:n}return new Date(t).getTime()},W=e=>{if(e==null)return"";const t=typeof e=="string"?e:String(e),n=de(e),i=Number.isNaN(n)?null:new Date(n);if(!i||Number.isNaN(i.getTime()))return t;const s=i.getFullYear(),l=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0"),c=String(i.getHours()).padStart(2,"0"),u=String(i.getMinutes()).padStart(2,"0"),g=String(i.getSeconds()).padStart(2,"0");return`${s}-${l}-${r} ${c}:${u}:${g}`},D=()=>{o.nextTick(()=>{const e=k.getChartInstance();e&&e.setOption(k.getChartOption(),!0)})},ke=()=>D(),De=()=>{const e=k.getChartInstance();if(!e)return;const t=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=t,n.download=`deep-trend-${y.value||Date.now()}.png`,n.click()},X=()=>{var i,s,l;const e=((i=a.conf)==null?void 0:i.options)||{},t=((s=e==null?void 0:e.linkChannel)==null?void 0:s.value)||U.value.linkChannel||"deepDisplacement",n=((l=e==null?void 0:e.customChannel)==null?void 0:l.value)||"";return t==="custom"&&n?n:t},j=()=>{const e=X();if(!e)return;const t=F.value.map(n=>n.time);S.publish(e,"deepTrendChart",{objectId:a.uid||"",type:"timeList",timeList:t})},J=(e,t,n="points")=>{const i=e==null?void 0:e[n];if(Array.isArray(i)&&i.length)return i;const s={};let l=!1;return t.forEach(r=>{var g;const c=r==null?void 0:r.fv;if(!c)return;Oe(s,e,c),(s[c]!==void 0||s[$(c,"s")]!==void 0||s[$(c,"x")]!==void 0||s[$(c,"y")]!==void 0)&&(l=!0);const u=(g=e==null?void 0:e.elevation)!=null?g:e==null?void 0:e.depth;u!=null&&(s.elevation=u,s.depth=u)}),l?[s]:[]},$=(e,t)=>{if(!e)return e;const n=e.match(/_(\d+)$/);return n?`${t}_${n[1]}`:e},me=(e,t,n)=>{if(!e||!t)return;const s=[$(t,n),`${t}_${n}`,`${n}_${t}`].filter(Boolean);for(const l of s){const r=e==null?void 0:e[l];if(r!=null)return r}if(n==="s"){const l=e==null?void 0:e[t];if(l!=null)return l}},Oe=(e,t,n)=>{var l;if(!e||!t||!n)return;const i=(l=n.match(/_(\d+)$/))==null?void 0:l[1],s=t==null?void 0:t[n];s!=null&&(e[n]=s),i&&["s","x","y"].forEach(r=>{const c=`${r}_${i}`,u=t==null?void 0:t[c];u!=null&&(e[c]=u)})},fe=e=>{var l;const t=((l=a.conf)==null?void 0:l.data)||[],i=(t[0]||{}).points_fv||"points",s=[];return e.forEach((r,c)=>{var v,h;const u=(r==null?void 0:r[0])||r||{},g=String((h=(v=u==null?void 0:u.time)!=null?v:u==null?void 0:u.datetime)!=null?h:c),f=J(u,t,i);f.length&&s.push({time:g,points:f})}),s},he=e=>{var f,v,h,d,p,C,E,N,w,R,z,B,q;if(!e||!e.payload)return;const t=X();if((f=e.topic)!=null&&f.channel&&t&&e.topic.channel!==t||!S.shouldHandle(e,"deepTrendChart"))return;const n=e.payload;if((n==null?void 0:n.type)==="filter"){const L=n.filter||n,A=Object.entries(L||{}).find(([x,_])=>{if(typeof _!="string")return!1;if(String(x||"").toLowerCase().includes("direction"))return!0;const Ae=String(_).toLowerCase();return["s","x","y"].includes(Ae)}),Te=L.direction||L.displacementDirection||(A==null?void 0:A[1])||"",Q={s:"s",x:"x",y:"y"}[String(Te).toLowerCase()],G=String((n==null?void 0:n.objectId)||(n==null?void 0:n.object_id)||"").trim(),Ie=((v=a.conf)==null?void 0:v.data)||[],Ee=String(((h=Ie[0])==null?void 0:h.configPanelId)||"").trim(),ve=[a.uid,re,(d=a.conf)==null?void 0:d.id,(p=a.conf)==null?void 0:p.uid,(C=a.conf)==null?void 0:C.name,(E=a.conf)==null?void 0:E.caption,(N=a.conf)==null?void 0:N.type,Ee,"deepTrendChart","DeepTrendChart","深部趋势图"].map(x=>String(x||"").trim()).filter(Boolean),Ve=new Set(ve),we=new Set(ve.map(x=>x.toLowerCase()));if(!(!G||Ve.has(G)||we.has(G.toLowerCase())||G.startsWith("deepTrendChart_")))return;const ee=Object.entries(L||{}).find(([x,_])=>{if(!_||typeof _!="object"||Array.isArray(_))return!1;const I=String(x||"").toLowerCase();return I.includes("time")&&I.includes("range")||!!_.startDate&&!!_.endDate}),T=(ee==null?void 0:ee[1])||L.timeRange||L.range||null;oe.value=T&&(T.startDate||T.endDate)?{startDate:T.startDate,endDate:T.endDate}:null;const te=String((T==null?void 0:T.granularity)||(L==null?void 0:L.granularity)||"").toLowerCase();(te==="day"||te==="hour")&&(H.value=te);const ne=Object.entries(L||{}).find(([x,_])=>{if(!Array.isArray(_))return!1;const I=String(x||"").toLowerCase();return I.includes("time")||I.includes("date")}),ge=L.timeList||L.selectedTimes||(ne==null?void 0:ne[1]);if(k.setPanelConfig(L),Array.isArray(ge)&&(V.value=ge.map(x=>String(x)),V.value.length>0)){const x=V.value[0],_=m.value.find(I=>ae(I.time,x));_&&(y.value=_.time)}if(Q&&["s","x","y"].includes(Q)){Z.value=Q,D();return}D();return}const i=a.conf,s=(i==null?void 0:i.data)||[],l=(i==null?void 0:i.common)||{};if(s.length>0&&!(l!=null&&l.multiObject)){const L=P.getObjectId(l,l==null?void 0:l.useAlias,a.uid)||((w=s[0])==null?void 0:w.object_id),A=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(L&&A&&String(L)!==String(A))return}if(Array.isArray(n==null?void 0:n.history)){O.value=fe(n.history),m.value=[...O.value],m.value.length&&(y.value=m.value[m.value.length-1].time),j(),D();return}const c=(s[0]||{}).points_fv||"points",u=String((q=(B=(R=n==null?void 0:n.time)!=null?R:n==null?void 0:n.datetime)!=null?B:(z=e.topic)==null?void 0:z.time)!=null?q:Date.now()),g=J(n,s,c);g.length&&(O.value=[...O.value.slice(-199),{time:u,points:g}],m.value=[...O.value],y.value=u,j(),D())},pe=e=>{var h,d,p,C,E,N;const t=a.conf,n=(t==null?void 0:t.data)||[],i=(t==null?void 0:t.common)||{},s=(i==null?void 0:i.source)||"mosaic";let l=e;if(["statistics","calculate"].includes(s)&&(l=P.formatStatisticsResult(l,n)),(h=l==null?void 0:l.history)!=null&&h.length){m.value=fe(l.history),m.value.length&&(y.value=m.value[m.value.length-1].time),j(),D();return}const r=i!=null&&i.multiObject?"":P.getObjectId(i,i==null?void 0:i.useAlias,a.uid),c=r&&((p=(d=l==null?void 0:l[r])==null?void 0:d[s])==null?void 0:p.data)||((C=l==null?void 0:l[s])==null?void 0:C.data)||(l==null?void 0:l.data)||l,g=(n[0]||{}).points_fv||"points",f=String((N=(E=c==null?void 0:c.time)!=null?E:c==null?void 0:c.datetime)!=null?N:Date.now()),v=J(c,n,g);v.length&&(O.value=[...O.value.slice(-199),{time:f,points:v}],m.value=[...O.value],y.value=f,j(),D())};return o.watch(()=>S.channels[X()],e=>{e&&he(e)},{deep:!0}),o.watchEffect(()=>{a.conf.socketData&&k.setSocketData(a.conf.socketData)}),o.watch(()=>{var e;return(e=a.conf)==null?void 0:e.options},()=>{k.getStyle().value=k.extractStyles(),D()},{deep:!0}),o.onMounted(()=>{if(a.mode==="edit"&&!m.value.length){const e=[{elevation:1024.94,disp:0,relative_disp:-1},{elevation:994.94,disp:3,relative_disp:0},{elevation:964.94,disp:6,relative_disp:1},{elevation:934.94,disp:9,relative_disp:2},{elevation:904.94,disp:12,relative_disp:3}];m.value=[{time:"2026-01-20 15:29:59",points:e},{time:"2026-01-20 16:29:59",points:e.map(t=>le(ie({},t),{disp:t.disp+1}))}],y.value=m.value[0].time}!y.value&&m.value.length&&(y.value=m.value[m.value.length-1].time),D()}),(e,t)=>{const n=K.ElOption,i=K.ElSelect,s=K.ElIcon,l=K.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(U).bgColor,borderRadius:`${o.unref(U).radiusSize}px`})},[o.unref(U).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(Ne.value)},o.toDisplayString(b.conf.caption||b.conf.name),5)),o.createElementVNode("div",Ge,[o.createElementVNode("div",Ke,[o.createVNode(i,{modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=r=>y.value=r),placeholder:"选择时间",size:"small",class:"time-select",onChange:ke},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(xe.value,r=>(o.openBlock(),o.createBlock(n,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(l,{size:"small",class:"export-btn",onClick:De},{default:o.withCtx(()=>[o.createVNode(s,null,{default:o.withCtx(()=>[o.createVNode(o.unref(qe.Download))]),_:1}),t[1]||(t[1]=o.createTextVNode(" 导出图 ",-1))]),_:1})]),o.createElementVNode("div",{class:"echart-container",id:o.unref(re)},null,8,We)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),lt=P._export_sfc(it,[["__scopeId","data-v-b061424b"]]);exports.default=lt;
|
|
1
|
+
"use strict";var Fe=Object.defineProperty,Me=Object.defineProperties;var $e=Object.getOwnPropertyDescriptors;var Le=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable;var Ce=(b,a,S)=>a in b?Fe(b,a,{enumerable:!0,configurable:!0,writable:!0,value:S}):b[a]=S,ie=(b,a)=>{for(var S in a||(a={}))ze.call(a,S)&&Ce(b,S,a[S]);if(Le)for(var S of Le(a))Be.call(a,S)&&Ce(b,S,a[S]);return b},le=(b,a)=>Me(b,$e(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const o=require("vue"),qe=require("@element-plus/icons-vue"),P=require("./index-CikO6qmH.cjs");require("element-plus");const Pe=require("./EChartComponentBase-Cc-8Dgc8.cjs"),Ze=require("./titleStyle-NSnz6cUg.cjs"),se=require("./installCanvasRenderer-CyhM1Qpl.cjs"),He=require("./install-C8buXQPI.cjs"),Ue=require("./install-CltTFs4e.cjs"),Ye=require("./install-CYwVETsi.cjs"),je="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e趋势%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-299.000000,%20-723.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M313.60741,723.132248%20C314.376525,723.132248%20315,723.755729%20315,724.524838%20L315,724.524838%20L315,737.73953%20C315,738.508647%20314.376527,739.13212%20313.60741,739.13212%20L313.60741,739.13212%20L300.392953,739.13212%20C299.623869,739.13212%20299.000384,738.508663%20299.000363,737.739585%20L299.000363,737.739585%20L299,724.524856%20C299,723.755744%20299.623475,723.132248%20300.39259,723.132248%20L300.39259,723.132248%20Z%20M302.67,728.130248%20L300.316,728.132248%20L300.317244,737.739549%20C300.317245,737.770894%20300.336313,737.797797%20300.363485,737.80929%20L300.392953,737.815239%20L302.67,737.814248%20L302.67,728.130248%20Z%20M313.682,728.120248%20L303.987,728.129248%20L303.987,737.814248%20L313.60741,737.815239%20C313.638778,737.815239%20313.665681,737.796179%20313.677171,737.769004%20L313.683119,737.73953%20L313.683,728.944248%20L313.682972,728.929735%20L313.682,728.120248%20Z%20M310.871101,729.12887%20L310.952715,729.198297%20L312.604552,730.850134%20C312.861689,731.107271%20312.861689,731.524172%20312.604552,731.781309%20C312.373129,732.012732%20312.012296,732.035875%20311.754991,731.850736%20L311.673377,731.781309%20L311.145,731.253248%20L311.145752,734.805978%20C311.145752,735.139321%20310.898043,735.414808%20310.576658,735.458408%20L310.487311,735.464419%20L307.124,735.464248%20L307.649042,735.98918%20C307.906179,736.246317%20307.906179,736.663219%20307.649042,736.920356%20C307.417619,737.151779%20307.056787,737.174921%20306.799482,736.989783%20L306.717867,736.920356%20L305.066031,735.268519%20L305.054021,735.255814%20C305.041374,735.242301%20305.029291,735.228255%20305.017807,735.213713%20L305.066031,735.268519%20C305.034539,735.237027%20305.006903,735.203139%20304.983125,735.167441%20C304.9807,735.16179%20304.977592,735.156913%20304.974547,735.151993%20C304.832434,734.927859%20304.840126,734.636431%20304.996604,734.418958%20L305.066031,734.337344%20L306.717867,732.685507%20C306.975004,732.428371%20307.391905,732.428371%20307.649042,732.685507%20C307.880466,732.916931%20307.903608,733.277763%20307.718469,733.535068%20L307.649042,733.616683%20L307.117,734.147248%20L309.828389,734.1469%20L309.828,731.252248%20L309.300879,731.781309%20C309.043742,732.038446%20308.626841,732.038446%20308.369704,731.781309%20C308.13828,731.549886%20308.115138,731.189053%20308.300277,730.931748%20L308.369704,730.850134%20L310.02154,729.198297%20C310.252963,728.966874%20310.613796,728.943732%20310.871101,729.12887%20Z%20M313.60741,724.449129%20L300.39259,724.449129%20C300.350778,724.449129%20300.316881,724.483027%20300.316881,724.524838%20L300.316881,724.524838%20L300.316,726.815248%20L313.682,726.803248%20L313.682972,725.258988%20L313.683,725.246248%20L313.683119,724.524838%20C313.683119,724.493474%20313.664056,724.46657%20313.636882,724.455078%20L313.60741,724.449129%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Re="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e趋势%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-299.000000,%20-723.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M313.60741,723.132248%20C314.376525,723.132248%20315,723.755729%20315,724.524838%20L315,724.524838%20L315,737.73953%20C315,738.508647%20314.376527,739.13212%20313.60741,739.13212%20L313.60741,739.13212%20L300.392953,739.13212%20C299.623869,739.13212%20299.000384,738.508663%20299.000363,737.739585%20L299.000363,737.739585%20L299,724.524856%20C299,723.755744%20299.623475,723.132248%20300.39259,723.132248%20L300.39259,723.132248%20Z%20M302.67,728.130248%20L300.316,728.132248%20L300.317244,737.739549%20C300.317245,737.770894%20300.336313,737.797797%20300.363485,737.80929%20L300.392953,737.815239%20L302.67,737.814248%20L302.67,728.130248%20Z%20M313.682,728.120248%20L303.987,728.129248%20L303.987,737.814248%20L313.60741,737.815239%20C313.638778,737.815239%20313.665681,737.796179%20313.677171,737.769004%20L313.683119,737.73953%20L313.683,728.944248%20L313.682972,728.929735%20L313.682,728.120248%20Z%20M310.871101,729.12887%20L310.952715,729.198297%20L312.604552,730.850134%20C312.861689,731.107271%20312.861689,731.524172%20312.604552,731.781309%20C312.373129,732.012732%20312.012296,732.035875%20311.754991,731.850736%20L311.673377,731.781309%20L311.145,731.253248%20L311.145752,734.805978%20C311.145752,735.139321%20310.898043,735.414808%20310.576658,735.458408%20L310.487311,735.464419%20L307.124,735.464248%20L307.649042,735.98918%20C307.906179,736.246317%20307.906179,736.663219%20307.649042,736.920356%20C307.417619,737.151779%20307.056787,737.174921%20306.799482,736.989783%20L306.717867,736.920356%20L305.066031,735.268519%20L305.054021,735.255814%20C305.041374,735.242301%20305.029291,735.228255%20305.017807,735.213713%20L305.066031,735.268519%20C305.034539,735.237027%20305.006903,735.203139%20304.983125,735.167441%20C304.9807,735.16179%20304.977592,735.156913%20304.974547,735.151993%20C304.832434,734.927859%20304.840126,734.636431%20304.996604,734.418958%20L305.066031,734.337344%20L306.717867,732.685507%20C306.975004,732.428371%20307.391905,732.428371%20307.649042,732.685507%20C307.880466,732.916931%20307.903608,733.277763%20307.718469,733.535068%20L307.649042,733.616683%20L307.117,734.147248%20L309.828389,734.1469%20L309.828,731.252248%20L309.300879,731.781309%20C309.043742,732.038446%20308.626841,732.038446%20308.369704,731.781309%20C308.13828,731.549886%20308.115138,731.189053%20308.300277,730.931748%20L308.369704,730.850134%20L310.02154,729.198297%20C310.252963,728.966874%20310.613796,728.943732%20310.871101,729.12887%20Z%20M313.60741,724.449129%20L300.39259,724.449129%20C300.350778,724.449129%20300.316881,724.483027%20300.316881,724.524838%20L300.316881,724.524838%20L300.316,726.815248%20L313.682,726.803248%20L313.682972,725.258988%20L313.683,725.246248%20L313.683119,724.524838%20C313.683119,724.493474%20313.664056,724.46657%20313.636882,724.455078%20L313.60741,724.449129%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ge={class:"mix-body"},Ke={class:"toolbar"},We=["id"],Xe={DEFAULT_ICON:je,ACTIVE_ICON:Re,NAME_CN:"深部趋势图",NAME_EN:"DeepTrendChart",ORDER:21,PLATFORM:["pc","screen"]},Je={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:56,bottom:52,left:64,right:36,xName:{value:"位移量",type:"string",label:"X轴名称"},yName:{value:"高程(m)",type:"string",label:"Y轴名称"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Se=[{name:"累计位移",fv:"disp_130",depth:-130,color:"#5470c6",object_id:""},{name:"累计位移",fv:"disp_140",depth:-140,color:"#5470c6",object_id:""}],Qe=["name","fv","depth","color","object_id"],et=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],tt={useAlias:!1,multiObject:!0,source:"mosaic"},nt={DEFAULT:Xe,OPTIONS:Je,DATA:Se,PARAMS:Qe,SOURCE:et,COMMON:tt},it=o.defineComponent(le(ie({},nt),{__name:"deepTrendChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(b){se.use([He.install,se.install,Ue.install,se.install$1,Ye.install]);const a=b,S=P.useLinkStore(),O=o.ref([]),m=o.ref([]),y=o.ref(""),V=o.ref([]),Z=o.ref("s"),oe=o.ref(null),H=o.ref("hour");class ye extends Pe.EChartComponentBase{constructor(){super(...arguments),this.panelConfig={}}extractStyles(){const t=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),i=t==="custom"&&n?n:t;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",56),bottom:this.getOptionValue("bottom",52),left:this.getOptionValue("left",64),right:this.getOptionValue("right",36),xName:this.getOptionValue("xName","位移量"),yName:this.getOptionValue("yName","高程(m)"),linkChannel:i}}init(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=Se),o.nextTick(()=>this.initChart())}setHistoryData(t){pe(t)}setSocketData(t){t&&pe(t)}onLinkEvent(t){he(t)}setPanelConfig(t){this.panelConfig=t||{}}getChartOption(){var g;M.value;const t=((g=a.conf)==null?void 0:g.data)||[],n=this.panelConfig||{},i=n.range__xAxis||n.range__x||n.range||null,s=n.range__yAxis||null,l=Number.isFinite(i==null?void 0:i.min)?Number(i==null?void 0:i.min):null,r=Number.isFinite(i==null?void 0:i.max)?Number(i==null?void 0:i.max):null,c=Number.isFinite(s==null?void 0:s.min)?Number(s==null?void 0:s.min):null,u=Number.isFinite(s==null?void 0:s.max)?Number(s==null?void 0:s.max):null;return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},legend:{top:4,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"item",formatter:f=>{var v,h,d,p;return`位移量: ${(h=(v=f==null?void 0:f.value)==null?void 0:v[0])!=null?h:"-"}<br/>高程: ${(p=(d=f==null?void 0:f.value)==null?void 0:d[1])!=null?p:"-"}m`}},xAxis:{type:"value",name:this.Style.value.xName,nameLocation:"middle",nameGap:28,position:"bottom",min:l!==null?l:null,max:r!==null?r:null,axisLine:{onZero:!1},axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},yAxis:{type:"value",name:this.Style.value.yName,min:c!==null?c:null,max:u!==null?u:null,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:(()=>{const f=ue.value.length?ue.value:M.value?[M.value]:[];if(!f.length)return[];const v=new Map;t.forEach((d,p)=>{const C=(d==null?void 0:d.name)||`序列${p+1}`;v.has(C)||v.set(C,{name:C,color:d==null?void 0:d.color,items:[]}),v.get(C).items.push(d)});const h=[];return f.forEach(d=>{const p=((d==null?void 0:d.points)||[])[0]||{};Array.from(v.values()).forEach(C=>{const E=C.items.map(N=>{var q,L;const w=N==null?void 0:N.fv,R=me(p,w,Z.value),z=Number(R),B=Number((L=(q=N==null?void 0:N.depth)!=null?q:p==null?void 0:p.depth)!=null?L:p==null?void 0:p.elevation);return!Number.isFinite(z)||!Number.isFinite(B)?null:[z,B]}).filter(Boolean).sort((N,w)=>N[1]-w[1]);h.push({name:C.name,type:"line",data:E,showSymbol:!0,symbolSize:6,lineStyle:{color:C.color||"#5470c6",width:2},itemStyle:{color:C.color||"#5470c6"}})})}),h})()}}}const k=new ye(a,"deepTrendChart"),re=k.getEchartId();k.setupLifecycle();const U=k.getStyle(),Ne=o.computed(()=>Ze.generateTitleStyle(a.conf.options)),Y=e=>{const t=String(e||"");if(!t)return"";const n=de(t);if(Number.isNaN(n))return t.slice(0,10);const i=new Date(n),s=i.getFullYear(),l=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0");return`${s}-${l}-${r}`},be=e=>{var s;const t=((s=a.conf)==null?void 0:s.data)||[];if(!e.length||!t.length)return e;const n=new Map;e.forEach(l=>{const r=Y(l.time);n.has(r)||n.set(r,[]),n.get(r).push(l)});const i=[];return Array.from(n.entries()).forEach(([l,r])=>{const c={};t.forEach(u=>{const g=u==null?void 0:u.fv;if(!g)return;let f=0,v=0;if(r.forEach(h=>{const d=((h==null?void 0:h.points)||[])[0]||{},p=Number(me(d,g,Z.value));Number.isFinite(p)&&(f+=p,v+=1)}),v>0){const h=Number((f/v).toFixed(6)),d=$(g,Z.value);c[g]=h,c[d]=h}}),Object.keys(c).length>0&&i.push({time:l,points:[c]})}),i.sort((l,r)=>String(l.time).localeCompare(String(r.time)))},F=o.computed(()=>H.value==="day"?be(m.value):m.value),xe=o.computed(()=>ce.value.map(e=>({value:e.time,label:H.value==="day"?Y(e.time):W(e.time)}))),M=o.computed(()=>{const e=y.value,t=F.value;return t.find(n=>n.time===e)||t[t.length-1]||null}),ae=(e,t)=>{const n=String(e||"").trim(),i=String(t||"").trim();if(!n||!i)return!1;if(n===i)return!0;const s=W(n),l=W(i);return s&&l&&s===l?!0:H.value!=="day"?!1:Y(n)===Y(i)},_e=(e,t)=>{if(!(t!=null&&t.startDate)&&!(t!=null&&t.endDate))return!0;const n=new Date(e).getTime();if(Number.isNaN(n))return!0;const i=t.startDate?new Date(t.startDate).getTime():Number.NEGATIVE_INFINITY,s=t.endDate?new Date(t.endDate).getTime():Number.POSITIVE_INFINITY;if(Number.isNaN(i)&&Number.isNaN(s))return!0;const l=Number.isNaN(i)?Number.NEGATIVE_INFINITY:i,r=Number.isNaN(s)?Number.POSITIVE_INFINITY:s;return n>=l&&n<=r},ce=o.computed(()=>{if(!F.value.length)return[];const e=oe.value;return!(e!=null&&e.startDate)&&!(e!=null&&e.endDate)?F.value:F.value.filter(t=>_e(t.time,e))}),ue=o.computed(()=>{const e=ce.value;if(V.value.length>0)return e.filter(t=>V.value.some(n=>ae(t.time,n)));if(e.length>0){const t=e.find(n=>n.time===y.value);return t?[t]:[e[e.length-1]]}return M.value?[M.value]:[]});o.watch(()=>m.value.length,()=>{!V.value.length&&m.value.length&&(y.value=m.value[m.value.length-1].time)});const de=e=>{if(e==null)return Number.NaN;const t=typeof e=="string"?e.trim():String(e);if(!t)return Number.NaN;if(/^\d+$/.test(t)){const n=Number(t);return t.length<=10?n*1e3:n}return new Date(t).getTime()},W=e=>{if(e==null)return"";const t=typeof e=="string"?e:String(e),n=de(e),i=Number.isNaN(n)?null:new Date(n);if(!i||Number.isNaN(i.getTime()))return t;const s=i.getFullYear(),l=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0"),c=String(i.getHours()).padStart(2,"0"),u=String(i.getMinutes()).padStart(2,"0"),g=String(i.getSeconds()).padStart(2,"0");return`${s}-${l}-${r} ${c}:${u}:${g}`},D=()=>{o.nextTick(()=>{const e=k.getChartInstance();e&&e.setOption(k.getChartOption(),!0)})},ke=()=>D(),De=()=>{const e=k.getChartInstance();if(!e)return;const t=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=t,n.download=`deep-trend-${y.value||Date.now()}.png`,n.click()},X=()=>{var i,s,l;const e=((i=a.conf)==null?void 0:i.options)||{},t=((s=e==null?void 0:e.linkChannel)==null?void 0:s.value)||U.value.linkChannel||"deepDisplacement",n=((l=e==null?void 0:e.customChannel)==null?void 0:l.value)||"";return t==="custom"&&n?n:t},j=()=>{const e=X();if(!e)return;const t=F.value.map(n=>n.time);S.publish(e,"deepTrendChart",{objectId:a.uid||"",type:"timeList",timeList:t})},J=(e,t,n="points")=>{const i=e==null?void 0:e[n];if(Array.isArray(i)&&i.length)return i;const s={};let l=!1;return t.forEach(r=>{var g;const c=r==null?void 0:r.fv;if(!c)return;Oe(s,e,c),(s[c]!==void 0||s[$(c,"s")]!==void 0||s[$(c,"x")]!==void 0||s[$(c,"y")]!==void 0)&&(l=!0);const u=(g=e==null?void 0:e.elevation)!=null?g:e==null?void 0:e.depth;u!=null&&(s.elevation=u,s.depth=u)}),l?[s]:[]},$=(e,t)=>{if(!e)return e;const n=e.match(/_(\d+)$/);return n?`${t}_${n[1]}`:e},me=(e,t,n)=>{if(!e||!t)return;const s=[$(t,n),`${t}_${n}`,`${n}_${t}`].filter(Boolean);for(const l of s){const r=e==null?void 0:e[l];if(r!=null)return r}if(n==="s"){const l=e==null?void 0:e[t];if(l!=null)return l}},Oe=(e,t,n)=>{var l;if(!e||!t||!n)return;const i=(l=n.match(/_(\d+)$/))==null?void 0:l[1],s=t==null?void 0:t[n];s!=null&&(e[n]=s),i&&["s","x","y"].forEach(r=>{const c=`${r}_${i}`,u=t==null?void 0:t[c];u!=null&&(e[c]=u)})},fe=e=>{var l;const t=((l=a.conf)==null?void 0:l.data)||[],i=(t[0]||{}).points_fv||"points",s=[];return e.forEach((r,c)=>{var v,h;const u=(r==null?void 0:r[0])||r||{},g=String((h=(v=u==null?void 0:u.time)!=null?v:u==null?void 0:u.datetime)!=null?h:c),f=J(u,t,i);f.length&&s.push({time:g,points:f})}),s},he=e=>{var f,v,h,d,p,C,E,N,w,R,z,B,q;if(!e||!e.payload)return;const t=X();if((f=e.topic)!=null&&f.channel&&t&&e.topic.channel!==t||!S.shouldHandle(e,"deepTrendChart"))return;const n=e.payload;if((n==null?void 0:n.type)==="filter"){const L=n.filter||n,A=Object.entries(L||{}).find(([x,_])=>{if(typeof _!="string")return!1;if(String(x||"").toLowerCase().includes("direction"))return!0;const Ae=String(_).toLowerCase();return["s","x","y"].includes(Ae)}),Te=L.direction||L.displacementDirection||(A==null?void 0:A[1])||"",Q={s:"s",x:"x",y:"y"}[String(Te).toLowerCase()],G=String((n==null?void 0:n.objectId)||(n==null?void 0:n.object_id)||"").trim(),Ie=((v=a.conf)==null?void 0:v.data)||[],Ee=String(((h=Ie[0])==null?void 0:h.configPanelId)||"").trim(),ve=[a.uid,re,(d=a.conf)==null?void 0:d.id,(p=a.conf)==null?void 0:p.uid,(C=a.conf)==null?void 0:C.name,(E=a.conf)==null?void 0:E.caption,(N=a.conf)==null?void 0:N.type,Ee,"deepTrendChart","DeepTrendChart","深部趋势图"].map(x=>String(x||"").trim()).filter(Boolean),Ve=new Set(ve),we=new Set(ve.map(x=>x.toLowerCase()));if(!(!G||Ve.has(G)||we.has(G.toLowerCase())||G.startsWith("deepTrendChart_")))return;const ee=Object.entries(L||{}).find(([x,_])=>{if(!_||typeof _!="object"||Array.isArray(_))return!1;const I=String(x||"").toLowerCase();return I.includes("time")&&I.includes("range")||!!_.startDate&&!!_.endDate}),T=(ee==null?void 0:ee[1])||L.timeRange||L.range||null;oe.value=T&&(T.startDate||T.endDate)?{startDate:T.startDate,endDate:T.endDate}:null;const te=String((T==null?void 0:T.granularity)||(L==null?void 0:L.granularity)||"").toLowerCase();(te==="day"||te==="hour")&&(H.value=te);const ne=Object.entries(L||{}).find(([x,_])=>{if(!Array.isArray(_))return!1;const I=String(x||"").toLowerCase();return I.includes("time")||I.includes("date")}),ge=L.timeList||L.selectedTimes||(ne==null?void 0:ne[1]);if(k.setPanelConfig(L),Array.isArray(ge)&&(V.value=ge.map(x=>String(x)),V.value.length>0)){const x=V.value[0],_=m.value.find(I=>ae(I.time,x));_&&(y.value=_.time)}if(Q&&["s","x","y"].includes(Q)){Z.value=Q,D();return}D();return}const i=a.conf,s=(i==null?void 0:i.data)||[],l=(i==null?void 0:i.common)||{};if(s.length>0&&!(l!=null&&l.multiObject)){const L=P.getObjectId(l,l==null?void 0:l.useAlias,a.uid)||((w=s[0])==null?void 0:w.object_id),A=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(L&&A&&String(L)!==String(A))return}if(Array.isArray(n==null?void 0:n.history)){O.value=fe(n.history),m.value=[...O.value],m.value.length&&(y.value=m.value[m.value.length-1].time),j(),D();return}const c=(s[0]||{}).points_fv||"points",u=String((q=(B=(R=n==null?void 0:n.time)!=null?R:n==null?void 0:n.datetime)!=null?B:(z=e.topic)==null?void 0:z.time)!=null?q:Date.now()),g=J(n,s,c);g.length&&(O.value=[...O.value.slice(-199),{time:u,points:g}],m.value=[...O.value],y.value=u,j(),D())},pe=e=>{var h,d,p,C,E,N;const t=a.conf,n=(t==null?void 0:t.data)||[],i=(t==null?void 0:t.common)||{},s=(i==null?void 0:i.source)||"mosaic";let l=e;if(["statistics","calculate"].includes(s)&&(l=P.formatStatisticsResult(l,n)),(h=l==null?void 0:l.history)!=null&&h.length){m.value=fe(l.history),m.value.length&&(y.value=m.value[m.value.length-1].time),j(),D();return}const r=i!=null&&i.multiObject?"":P.getObjectId(i,i==null?void 0:i.useAlias,a.uid),c=r&&((p=(d=l==null?void 0:l[r])==null?void 0:d[s])==null?void 0:p.data)||((C=l==null?void 0:l[s])==null?void 0:C.data)||(l==null?void 0:l.data)||l,g=(n[0]||{}).points_fv||"points",f=String((N=(E=c==null?void 0:c.time)!=null?E:c==null?void 0:c.datetime)!=null?N:Date.now()),v=J(c,n,g);v.length&&(O.value=[...O.value.slice(-199),{time:f,points:v}],m.value=[...O.value],y.value=f,j(),D())};return o.watch(()=>S.channels[X()],e=>{e&&he(e)},{deep:!0}),o.watchEffect(()=>{a.conf.socketData&&k.setSocketData(a.conf.socketData)}),o.watch(()=>{var e;return(e=a.conf)==null?void 0:e.options},()=>{k.getStyle().value=k.extractStyles(),D()},{deep:!0}),o.onMounted(()=>{if(a.mode==="edit"&&!m.value.length){const e=[{elevation:1024.94,disp:0,relative_disp:-1},{elevation:994.94,disp:3,relative_disp:0},{elevation:964.94,disp:6,relative_disp:1},{elevation:934.94,disp:9,relative_disp:2},{elevation:904.94,disp:12,relative_disp:3}];m.value=[{time:"2026-01-20 15:29:59",points:e},{time:"2026-01-20 16:29:59",points:e.map(t=>le(ie({},t),{disp:t.disp+1}))}],y.value=m.value[0].time}!y.value&&m.value.length&&(y.value=m.value[m.value.length-1].time),D()}),(e,t)=>{const n=K.ElOption,i=K.ElSelect,s=K.ElIcon,l=K.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(U).bgColor,borderRadius:`${o.unref(U).radiusSize}px`})},[o.unref(U).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(Ne.value)},o.toDisplayString(b.conf.caption||b.conf.name),5)),o.createElementVNode("div",Ge,[o.createElementVNode("div",Ke,[o.createVNode(i,{modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=r=>y.value=r),placeholder:"选择时间",size:"small",class:"time-select",onChange:ke},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(xe.value,r=>(o.openBlock(),o.createBlock(n,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(l,{size:"small",class:"export-btn",onClick:De},{default:o.withCtx(()=>[o.createVNode(s,null,{default:o.withCtx(()=>[o.createVNode(o.unref(qe.Download))]),_:1}),t[1]||(t[1]=o.createTextVNode(" 导出图 ",-1))]),_:1})]),o.createElementVNode("div",{class:"echart-container",id:o.unref(re)},null,8,We)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),lt=P._export_sfc(it,[["__scopeId","data-v-b061424b"]]);exports.default=lt;
|
|
@@ -12,9 +12,9 @@ var k = (s, t, n) => t in s ? w(s, t, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, I = (s, t) => L(s, B(t));
|
|
13
13
|
import { defineComponent as H, computed as S, onMounted as W, watch as P, openBlock as U, createElementBlock as V, normalizeStyle as F, createElementVNode as h, unref as b, toDisplayString as G, renderSlot as q } from "vue";
|
|
14
14
|
import "html2canvas";
|
|
15
|
-
import { _ as J } from "./index-
|
|
15
|
+
import { _ as J } from "./index-B5OsYU5s.js";
|
|
16
16
|
import "element-plus";
|
|
17
|
-
import { E as K } from "./EChartComponentBase-
|
|
17
|
+
import { E as K } from "./EChartComponentBase-cxF_cDzz.js";
|
|
18
18
|
import { A as Q, D as X } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
19
19
|
const Y = { class: "panel-header" }, Z = ["id"], ee = {
|
|
20
20
|
DEFAULT_ICON: X,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var M=Object.defineProperty,T=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var I=(c,n,a)=>n in c?M(c,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[n]=a,x=(c,n)=>{for(var a in n||(n={}))w.call(n,a)&&I(c,a,n[a]);if(A)for(var a of A(n))B.call(n,a)&&I(c,a,n[a]);return c},N=(c,n)=>T(c,L(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const V=require("./index-
|
|
1
|
+
"use strict";var M=Object.defineProperty,T=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var I=(c,n,a)=>n in c?M(c,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[n]=a,x=(c,n)=>{for(var a in n||(n={}))w.call(n,a)&&I(c,a,n[a]);if(A)for(var a of A(n))B.call(n,a)&&I(c,a,n[a]);return c},N=(c,n)=>T(c,L(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const V=require("./index-CikO6qmH.cjs");require("element-plus");const q=require("./EChartComponentBase-Cc-8Dgc8.cjs"),z=require("./ele-lin-icon-Dke_1AmT.cjs"),R={class:"panel-header"},$=["id"],H={DEFAULT_ICON:z.DEFAULT_ICON,ACTIVE_ICON:z.ACTIVE_ICON,NAME_CN:"设备在线状态",NAME_EN:"Device Online Status",ORDER:11,PLATFORM:["pc","screen"]},P={title:{value:"设备在线状态",type:"string",label:"标题"},bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleFontSize:{value:16,type:"number",label:"标题字体大小",min:12,max:24},onlineColor:{value:"#67C23A",type:"color",label:"在线颜色"},offlineColor:{value:"#C0C4CC",type:"color",label:"离线颜色"},centerFontSize:{value:32,type:"number",label:"中心数字大小",min:18,max:48},centerColor:{value:"#1a3a6b",type:"color",label:"中心数字颜色"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},U=[{name:"设备1",fv:"online_status",fvDeviceName:"",object_id:""}],W=["object_id","name","fv","fvDeviceName"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=200,Q={DEFAULT:H,OPTIONS:P,DATA:U,PARAMS:W,SOURCE:G,COMMON:J,ITEMS:K},X=t.defineComponent(N(x({},Q),{__name:"deviceOnlineStatus",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){const n=c,a=new Map;class k extends q.EChartComponentBase{extractStyles(){var o,u,s,d,f,h,C,y,g,O,_,E;const e=(o=this.props.conf)==null?void 0:o.options,r=((u=e==null?void 0:e.linkChannel)==null?void 0:u.value)||"gnss",i=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return{title:((d=e==null?void 0:e.title)==null?void 0:d.value)||"设备在线状态",bgColor:((f=e==null?void 0:e.bgColor)==null?void 0:f.value)||"#f5f7fa",panelBgColor:((h=e==null?void 0:e.panelBgColor)==null?void 0:h.value)||"#ffffff",textColor:((C=e==null?void 0:e.textColor)==null?void 0:C.value)||"#333333",titleFontSize:((y=e==null?void 0:e.titleFontSize)==null?void 0:y.value)||16,onlineColor:((g=e==null?void 0:e.onlineColor)==null?void 0:g.value)||"#67C23A",offlineColor:((O=e==null?void 0:e.offlineColor)==null?void 0:O.value)||"#C0C4CC",centerFontSize:((_=e==null?void 0:e.centerFontSize)==null?void 0:_.value)||32,centerColor:((E=e==null?void 0:e.centerColor)==null?void 0:E.value)||"#1a3a6b",linkChannel:r==="custom"&&i?i:r}}getChartOption(){return m(this.Style.value)}setHistoryData(e){var i;if(!e||!this.chartObj)return;const r=((i=this.props.conf)==null?void 0:i.data)||[];!Array.isArray(r)||!r.length||(r.forEach((o,u)=>{if(!o.fv)return;const s=Array.isArray(e)?e[u]:null,d=Array.isArray(s)&&s.length?s[0]:null;if(!d)return;const f=d[o.fv];if(f==null)return;const h=f===1||f===!0||f==="online"||f==="1"||f==="true",C=o.object_id||o.name||"";C&&a.set(C,h)}),this.chartObj.setOption(m(this.Style.value),!0))}setSocketData(e){var i;if(!e)return;(((i=this.props.conf)==null?void 0:i.data)||[]).forEach(o=>{if(!o.fv)return;const u=o.object_id||o.name||"";if(!u)return;const s=this.extractDataValue(e,o.fv);if(s!=null){const d=s===1||s===!0||s==="online"||s==="1"||s==="true";a.set(u,d)}}),this.chartObj&&this.chartObj.setOption(m(this.Style.value),!0)}onLinkEvent(e){}}const v=new k(n,"deviceOnlineStatus");v.setupLifecycle();const p=v.getStyle(),D=v.getEchartId(),b=t.computed(()=>{var l;return((l=n.conf)==null?void 0:l.data)||[]}),F=t.computed(()=>{if(b.value.length===0&&n.mode==="edit")return{online:23,offline:3,total:26};let e=0,r=0;return b.value.forEach(i=>{const o=i.object_id||i.name||"";a.get(o)===!1?r++:e++}),{online:e,offline:r,total:e+r}}),j=t.computed(()=>({backgroundColor:p.value.bgColor})),m=l=>{const{online:e,offline:r,total:i}=F.value;return{backgroundColor:"transparent",tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},legend:{bottom:10,itemWidth:10,itemHeight:10,itemGap:20,textStyle:{fontSize:13,color:l.textColor},formatter:o=>`${o} ${o==="在线"?e:r}`},series:[{type:"pie",radius:["50%","72%"],center:["50%","45%"],avoidLabelOverlap:!1,label:{show:!0,position:"center",formatter:()=>`{num|${i}}
|
|
2
2
|
{txt|设备总数}`,rich:{num:{fontSize:l.centerFontSize,fontWeight:"bold",color:l.centerColor,lineHeight:l.centerFontSize+10},txt:{fontSize:13,color:"#999",lineHeight:22}}},labelLine:{show:!1},itemStyle:{borderRadius:4,borderColor:"#fff",borderWidth:2},data:[{value:e,name:"在线",itemStyle:{color:l.onlineColor}},{value:r,name:"离线",itemStyle:{color:l.offlineColor}}]}]}},S=()=>{for(let e=0;e<23;e++)a.set(`dev-${e}`,!0);for(let e=23;e<26;e++)a.set(`dev-${e}`,!1);const l=v.getChartInstance();l&&l.setOption(m(p.value),!0)};return t.onMounted(()=>{n.mode==="edit"&&S(),setTimeout(()=>{var l;return(l=v.getChartInstance())==null?void 0:l.resize()},200)}),t.watch(()=>n.conf,()=>{n.mode==="edit"&&S()},{deep:!0}),(l,e)=>(t.openBlock(),t.createElementBlock("div",{class:"device-online-status",style:t.normalizeStyle(j.value)},[t.createElementVNode("div",R,[e[0]||(e[0]=t.createElementVNode("span",{class:"indicator-dot"},null,-1)),t.createElementVNode("span",{class:"panel-title",style:t.normalizeStyle({color:t.unref(p).textColor,fontSize:t.unref(p).titleFontSize+"px"})},t.toDisplayString(t.unref(p).title),5)]),t.createElementVNode("div",{id:t.unref(D),class:"chart-container"},null,8,$),t.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),Y=V._export_sfc(X,[["__scopeId","data-v-5a3fb2e8"]]);exports.default=Y;
|
|
@@ -12,8 +12,8 @@ var j = (u, o, n) => o in u ? T(u, o, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, A = (u, o) => H(u, F(o));
|
|
13
13
|
import { defineComponent as z, useCssVars as I, unref as v, ref as $, computed as k, openBlock as C, createElementBlock as _, createElementVNode as a, toDisplayString as f, Fragment as N, renderList as O, normalizeStyle as S, createCommentVNode as J, renderSlot as q } from "vue";
|
|
14
14
|
import "html2canvas";
|
|
15
|
-
import { B as G } from "./BaseComponent-
|
|
16
|
-
import { R as K, J as Q, _ as W } from "./index-
|
|
15
|
+
import { B as G } from "./BaseComponent-Cs11e0k6.js";
|
|
16
|
+
import { R as K, J as Q, _ as W } from "./index-B5OsYU5s.js";
|
|
17
17
|
import { A as X, D as Y } from "./ele-gag-icon-CB5dJeYF.js";
|
|
18
18
|
const Z = { class: "device-status-wrapper" }, tt = { class: "panel-header" }, et = { class: "header-left" }, ot = { class: "header-title" }, at = { class: "status-cards" }, lt = ["onClick"], ct = { class: "status-label" }, st = { class: "device-list" }, rt = { class: "device-icon" }, nt = { class: "device-info" }, it = { class: "device-name" }, ut = { class: "device-type" }, dt = { class: "device-value" }, vt = { class: "value-text" }, ft = {
|
|
19
19
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var x=Object.defineProperty,A=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var S=(u,a,s)=>a in u?x(u,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[a]=s,E=(u,a)=>{for(var s in a||(a={}))M.call(a,s)&&S(u,s,a[s]);if(h)for(var s of h(a))R.call(a,s)&&S(u,s,a[s]);return u},N=(u,a)=>A(u,O(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const T=require("./BaseComponent-
|
|
1
|
+
"use strict";var x=Object.defineProperty,A=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var S=(u,a,s)=>a in u?x(u,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[a]=s,E=(u,a)=>{for(var s in a||(a={}))M.call(a,s)&&S(u,s,a[s]);if(h)for(var s of h(a))R.call(a,s)&&S(u,s,a[s]);return u},N=(u,a)=>A(u,O(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const T=require("./BaseComponent-eihedT_8.cjs"),y=require("./index-CikO6qmH.cjs"),V=require("./ele-gag-icon-Ce1hl9NI.cjs"),L={class:"device-status-wrapper"},I={class:"panel-header"},F={class:"header-left"},z={class:"header-title"},H={class:"status-cards"},P=["onClick"],U={class:"status-label"},q={class:"device-list"},$={class:"device-icon"},G={class:"device-info"},J={class:"device-name"},K={class:"device-type"},Q={class:"device-value"},W={class:"value-text"},X={key:0,class:"no-data"},Y={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"设备运行状态",NAME_EN:"Device Status",ORDER:8,PLATFORM:["pc","screen"]},Z={title:{value:"监测设备运行状态",type:"string",label:"component.deviceStatus.title"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.deviceStatus.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.deviceStatus.accentColor"},glowEffect:{value:!0,type:"checkbox",label:"component.deviceStatus.glowEffect"},normalColor:{value:"#2ecc71",type:"color",label:"component.deviceStatus.normalColor"},warnColor:{value:"#f39c12",type:"color",label:"component.deviceStatus.warnColor"},errorColor:{value:"#e74c3c",type:"color",label:"component.deviceStatus.errorColor"}},ee=[{name:"温度传感器-01",type:"温度传感器",icon:"🌡",fv:"temperature",object_id:"",unit:"°C",value:25.1,status:0},{name:"压力传感器-01",type:"压力传感器",icon:"⏱",fv:"pressure",object_id:"",unit:"MPa",value:1.3,status:0},{name:"位移传感器-01",type:"位移传感器",icon:"↔",fv:"displacement",object_id:"",unit:"mm",value:2.1,status:1},{name:"振动传感器-01",type:"振动传感器",icon:"〰",fv:"vibration",object_id:"",unit:"Hz",value:.1,status:0}],te=["name","type","icon","fv","object_id","unit","status"],oe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ae={useAlias:!1,multiObject:!0,source:"mosaic"},le={DEFAULT:Y,OPTIONS:Z,DATA:ee,PARAMS:te,SOURCE:oe,COMMON:ae},ce=e.defineComponent(N(E({},le),{__name:"deviceStatus",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(u){e.useCssVars(l=>({v2279d942:e.unref(c).bgColor,v282717bb:e.unref(c).borderColor,v0266b85a:e.unref(c).textColor,v919cec46:e.unref(c).accentColor,v09e5435a:e.unref(c).glowEffect?`drop-shadow(0 0 6px ${e.unref(c).accentColor})`:"none",v114e47f4:e.unref(c).glowEffect?`0 0 10px ${e.unref(c).accentColor}`:"none"}));const a=u;class s extends T.BaseComponent{extractStyles(){var o,i,n,r,C,d,_,f,m,v;const{options:t}=this.props.conf;return{title:((o=t==null?void 0:t.title)==null?void 0:o.value)||"监测设备运行状态",bgColor:((i=t==null?void 0:t.bgColor)==null?void 0:i.value)||"#1a2a3a",borderColor:((n=t==null?void 0:t.borderColor)==null?void 0:n.value)||"#2a4a6a",textColor:((r=t==null?void 0:t.textColor)==null?void 0:r.value)||"#ffffff",accentColor:((C=t==null?void 0:t.accentColor)==null?void 0:C.value)||"#00d4ff",glowEffect:(_=(d=t==null?void 0:t.glowEffect)==null?void 0:d.value)!=null?_:!0,normalColor:((f=t==null?void 0:t.normalColor)==null?void 0:f.value)||"#2ecc71",warnColor:((m=t==null?void 0:t.warnColor)==null?void 0:m.value)||"#f39c12",errorColor:((v=t==null?void 0:t.errorColor)==null?void 0:v.value)||"#e74c3c"}}setHistoryData(t){const{data:o,common:i}=this.props.conf;if(!o.some(d=>d.object_id&&d.fv))return;const r=i.source||"mosaic";["statistics","calculate"].includes(r)&&(t=y.formatStatisticsResult(t,o));let C=y.handleNullData(t,this.props,"history");o.forEach((d,_)=>{var f,m;if(!(!d.object_id||!d.fv))try{const v=(m=(f=C.history[_])==null?void 0:f[0])==null?void 0:m[d.fv];v!=null&&(d.value=v)}catch(v){}})}setSocketData(t){if(!t)return;const{data:o}=this.props.conf;o.some(n=>n.object_id&&n.fv)&&o.forEach(n=>{if(!n.object_id||!n.fv)return;const r=this.extractDataValue(t,n.fv);r!=null&&(n.value=r)})}}const g=new s(a,"deviceStatus");(!a.conf.data||a.conf.data.length===0)&&(a.conf.data=[{name:"温度传感器-01",type:"温度传感器",icon:"🌡",fv:"",object_id:"",unit:"°C",value:25.1,status:0},{name:"压力传感器-01",type:"压力传感器",icon:"⏱",fv:"",object_id:"",unit:"MPa",value:1.3,status:0},{name:"位移传感器-01",type:"位移传感器",icon:"↔",fv:"",object_id:"",unit:"mm",value:2.1,status:1},{name:"振动传感器-01",type:"振动传感器",icon:"〰",fv:"",object_id:"",unit:"Hz",value:.1,status:0}]),g.setupLifecycle();const c=g.getStyle(),p=e.ref(null),D=e.computed(()=>{var n;const l=((n=a.conf)==null?void 0:n.data)||[],t=l.filter(r=>r.status===0).length,o=l.filter(r=>r.status===1).length,i=l.filter(r=>r.status===2).length;return[{name:"正常",count:t,color:c.value.normalColor},{name:"警告",count:o,color:c.value.warnColor},{name:"异常",count:i,color:c.value.errorColor}]}),b=e.computed(()=>{var t;const l=((t=a.conf)==null?void 0:t.data)||[];return p.value===null?l:l.filter(o=>o.status===p.value)}),k=()=>console.log("实时更新"),B=l=>{p.value=p.value===l?null:l},w=l=>{const t=[c.value.normalColor,c.value.warnColor,c.value.errorColor];return t[l]||t[0]},j=l=>{const t=["正常","警告","异常"];return t[l]||t[0]};return(l,t)=>(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",I,[e.createElementVNode("div",F,[t[0]||(t[0]=e.createElementVNode("svg",{class:"header-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("circle",{cx:"12",cy:"12",r:"3"}),e.createElementVNode("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})],-1)),e.createElementVNode("span",z,e.toDisplayString(e.unref(c).title),1)]),e.createElementVNode("button",{class:"realtime-btn",onClick:k}," 实时更新 ")]),e.createElementVNode("div",H,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,(o,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"status-card",style:e.normalizeStyle({borderTopColor:o.color}),onClick:n=>B(i)},[e.createElementVNode("div",{class:"status-count",style:e.normalizeStyle({color:o.color})},e.toDisplayString(o.count),5),e.createElementVNode("div",U,e.toDisplayString(o.name),1)],12,P))),128))]),e.createElementVNode("div",q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(o,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"device-item"},[e.createElementVNode("div",$,e.toDisplayString(o.icon),1),e.createElementVNode("div",G,[e.createElementVNode("div",J,e.toDisplayString(o.name),1),e.createElementVNode("div",K,e.toDisplayString(o.type),1)]),e.createElementVNode("div",Q,[e.createElementVNode("div",W,e.toDisplayString(o.value)+" "+e.toDisplayString(o.unit),1),e.createElementVNode("div",{class:"status-tag",style:e.normalizeStyle({background:w(o.status)})},e.toDisplayString(j(o.status)),5)])]))),128)),b.value.length===0?(e.openBlock(),e.createElementBlock("div",X," 暂无设备数据 ")):e.createCommentVNode("",!0)]),e.renderSlot(l.$slots,"default",{},void 0,!0)]))}})),ne=y._export_sfc(ce,[["__scopeId","data-v-d3c9d7b3"]]);exports.default=ne;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var U=Object.defineProperty,R=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols,F=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,K=Reflect.get;var x=(r,l,a)=>l in r?U(r,l,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[l]=a,T=(r,l)=>{for(var a in l||(l={}))H.call(l,a)&&x(r,a,l[a]);if(N)for(var a of N(l))Y.call(l,a)&&x(r,a,l[a]);return r},P=(r,l)=>R(r,$(l));var I=(r,l,a)=>K(F(r),a,l);var M=(r,l,a)=>new Promise((g,p)=>{var C=d=>{try{f(a.next(d))}catch(m){p(m)}},y=d=>{try{f(a.throw(d))}catch(m){p(m)}},f=d=>d.done?g(d.value):Promise.resolve(d.value).then(C,y);f((a=a.apply(r,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),X=require("@element-plus/icons-vue");require("html2canvas");const Z=require("./BaseComponent-
|
|
1
|
+
"use strict";var U=Object.defineProperty,R=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols,F=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,K=Reflect.get;var x=(r,l,a)=>l in r?U(r,l,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[l]=a,T=(r,l)=>{for(var a in l||(l={}))H.call(l,a)&&x(r,a,l[a]);if(N)for(var a of N(l))Y.call(l,a)&&x(r,a,l[a]);return r},P=(r,l)=>R(r,$(l));var I=(r,l,a)=>K(F(r),a,l);var M=(r,l,a)=>new Promise((g,p)=>{var C=d=>{try{f(a.next(d))}catch(m){p(m)}},y=d=>{try{f(a.throw(d))}catch(m){p(m)}},f=d=>d.done?g(d.value):Promise.resolve(d.value).then(C,y);f((a=a.apply(r,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),X=require("@element-plus/icons-vue");require("html2canvas");const Z=require("./BaseComponent-eihedT_8.cjs"),v=require("./index-CikO6qmH.cjs"),V=require("./ele-lst-icon-CrxnHZ-A.cjs"),W={class:"displacement-data-table"},G={class:"table-toolbar"},J={class:"toolbar-title"},Q={class:"toolbar-right"},ee={class:"search-info"},te={class:"table-container"},ae={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"位移数据表",NAME_EN:"Displacement Data Table",ORDER:16,PLATFORM:["pc","screen"]},oe={title:{value:"深部位移数据表",type:"string",label:"component.deepDisplacement.title"},pageSize:{value:10,type:"number",label:"component.options.itemsPerPage",min:5,max:100},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},headerColor:{value:"#f5f7fa",type:"color",label:"component.deepDisplacement.headerColor"}},ne=[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth"}],le=["configPanelId","name","object_id","points_fv","fv","depth_fv"],se=["mosaic","statistics","calculate"],re={useAlias:!1,multiObject:!1,source:"mosaic"},ce={DEFAULT:ae,OPTIONS:oe,DATA:ne,PARAMS:le,SOURCE:se,COMMON:re},ie=e.defineComponent(P(T({},ce),{__name:"displacementDataTable",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){e.useCssVars(o=>({v49341654:e.unref(D).bgColor,v30ba3eee:e.unref(D).textColor}));const l=v.useLinkStore(),a=r,g=e.ref(1),p=e.ref(10),C=e.ref("0.039"),y=e.ref(400),f=e.ref([]),d=e.ref([]);class m extends Z.BaseComponent{extractStyles(){var n,s,i,u,_;const{options:t}=this.props.conf;return{title:((n=t==null?void 0:t.title)==null?void 0:n.value)||"深部位移数据表",pageSize:((s=t==null?void 0:t.pageSize)==null?void 0:s.value)||10,bgColor:((i=t==null?void 0:t.bgColor)==null?void 0:i.value)||"#ffffff",textColor:((u=t==null?void 0:t.textColor)==null?void 0:u.value)||"#333333",headerColor:((_=t==null?void 0:t.headerColor)==null?void 0:_.value)||"#f5f7fa"}}getDefaultData(){return[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth"}]}getMockData(){var i;const t=((i=this.props.conf)==null?void 0:i.data)||this.getDefaultData(),n=[-152,-151,-150,-149,-148,-147,-146,-145,-144,-143,-142];d.value=n;const s=[];for(let u=0;u<50;u++){const c={time:v.dayjs().subtract(u,"hour").format("YYYY-MM-DD HH:mm:ss")};t.forEach(E=>{n.forEach(j=>{const L=Math.random()*5;c[`${E.name}_${Math.abs(j)}`]=L+Math.random()})}),s.push(c)}return s}onPreview(){return M(this,null,function*(){const{data:t}=this.props.conf;t.some(s=>s.object_id&&s.fv)?(console.log("[DisplacementDataTable] 检测到数据绑定,订阅真实数据"),yield I(m.prototype,this,"onPreview").call(this)):(console.log("[DisplacementDataTable] 未配置数据源,使用模拟数据"),f.value=this.getMockData())})}setHistoryData(t){const{data:n,common:s}=this.props.conf;if(!n||n.length===0||!n.some(c=>c.object_id&&c.fv))return;const u=(s==null?void 0:s.source)||"mosaic";["statistics","calculate"].includes(u)&&(t=v.formatStatisticsResult(t,n)),v.handleNullData(t,this.props,"history")}setSocketData(t){console.log("[DisplacementDataTable] 收到实时数据")}}const h=new m(a,"displacementDataTable");(!a.conf.data||a.conf.data.length===0)&&(a.conf.data=h.getDefaultData()),h.setupLifecycle();const D=h.getStyle();e.onMounted(()=>{p.value=D.value.pageSize,f.value=h.getMockData()});const k=e.computed(()=>{var t,n;return((n=(((t=a.conf)==null?void 0:t.data)||[])[0])==null?void 0:n.configPanelId)||""});e.watch(()=>l.channels.deepDisplacement,o=>{if(!o||o.topic.source==="displacementDataTable")return;const t=k.value;if(!t)return;const{payload:n}=o;n.objectId===t&&n.type==="config"&&console.log("[DataTable] 收到配置:",n.fv)},{deep:!0});const O=e.computed(()=>{var n;const o=((n=a.conf)==null?void 0:n.data)||h.getDefaultData(),t=[];return o.forEach(s=>{d.value.forEach(i=>{t.push({prop:`${s.name}_${Math.abs(i)}`,label:`${s.name} (${i}m)`})})}),t}),w=e.computed(()=>{const o=(g.value-1)*p.value,t=o+p.value;return f.value.slice(o,t)}),S=e.computed(()=>f.value.length),z=o=>o==null?"-":typeof o=="number"?o.toFixed(3):o,q=o=>{g.value=o},A=o=>{p.value=o,g.value=1},B=()=>{console.log("导出表格")};return e.watch(()=>{var o;return(o=a.conf)==null?void 0:o.data},()=>{f.value=h.getMockData()},{deep:!0}),(o,t)=>{const n=b.ElIcon,s=b.ElButton,i=b.ElPagination,u=b.ElTableColumn,_=b.ElTable;return e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("div",G,[e.createElementVNode("div",J,e.toDisplayString(e.unref(D).title),1),e.createVNode(s,{size:"small",onClick:B},{default:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.Upload))]),_:1}),t[2]||(t[2]=e.createTextVNode(" 导出表 ",-1))]),_:1}),e.createElementVNode("div",Q,[e.createElementVNode("span",ee,"搜索耗时 "+e.toDisplayString(C.value)+"秒 总共 "+e.toDisplayString(S.value)+" 条数据",1),e.createVNode(i,{"current-page":g.value,"onUpdate:currentPage":t[0]||(t[0]=c=>g.value=c),"page-size":p.value,"onUpdate:pageSize":t[1]||(t[1]=c=>p.value=c),"page-sizes":[10,20,50,100],total:S.value,layout:"prev, pager, next, sizes",small:"",onSizeChange:A,onCurrentChange:q},null,8,["current-page","page-size","total"])])]),e.createElementVNode("div",te,[e.createVNode(_,{data:w.value,height:y.value,border:"",stripe:"",size:"small","header-cell-style":{background:"#f5f7fa",color:"#333",fontWeight:600}},{default:e.withCtx(()=>[e.createVNode(u,{prop:"time",label:"采集时间",width:"160",fixed:"left"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,c=>(e.openBlock(),e.createBlock(u,{key:c.prop,prop:c.prop,label:c.label,width:"100",align:"right"},{default:e.withCtx(({row:E})=>[e.createTextVNode(e.toDisplayString(z(E[c.prop])),1)]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data","height"])]),e.renderSlot(o.$slots,"default",{},void 0,!0)])}}})),ue=v._export_sfc(ie,[["__scopeId","data-v-5bfa4b32"]]);exports.default=ue;
|
|
@@ -36,8 +36,8 @@ import "element-plus/es/components/icon/style/css";
|
|
|
36
36
|
import { defineComponent as se, useCssVars as re, unref as C, ref as _, onMounted as ce, computed as y, watch as B, openBlock as P, createElementBlock as j, createElementVNode as v, toDisplayString as S, createVNode as b, withCtx as E, createTextVNode as R, Fragment as ie, renderList as pe, createBlock as ue, renderSlot as de } from "vue";
|
|
37
37
|
import { Upload as fe } from "@element-plus/icons-vue";
|
|
38
38
|
import "html2canvas";
|
|
39
|
-
import { B as me } from "./BaseComponent-
|
|
40
|
-
import { o as ge, d as he, R as _e, J as be, _ as ve } from "./index-
|
|
39
|
+
import { B as me } from "./BaseComponent-Cs11e0k6.js";
|
|
40
|
+
import { o as ge, d as he, R as _e, J as be, _ as ve } from "./index-B5OsYU5s.js";
|
|
41
41
|
import { A as De, D as Ce } from "./ele-lst-icon-CKpeRKmk.js";
|
|
42
42
|
const ye = { class: "displacement-data-table" }, Se = { class: "table-toolbar" }, Ee = { class: "toolbar-title" }, xe = { class: "toolbar-right" }, Te = { class: "search-info" }, Me = { class: "table-container" }, Pe = {
|
|
43
43
|
DEFAULT_ICON: Ce,
|
package/dist/{displacementTrajectoryChart-DJM_B-gL.cjs → displacementTrajectoryChart-D0JeDw83.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ve=Object.defineProperty,be=Object.defineProperties;var Ce=Object.getOwnPropertyDescriptors;var ae=Object.getOwnPropertySymbols;var Se=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable;var oe=(g,d,p)=>d in g?ve(g,d,{enumerable:!0,configurable:!0,writable:!0,value:p}):g[d]=p,V=(g,d)=>{for(var p in d||(d={}))Se.call(d,p)&&oe(g,p,d[p]);if(ae)for(var p of ae(d))je.call(d,p)&&oe(g,p,d[p]);return g},ie=(g,d)=>be(g,Ce(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const i=require("vue"),De=require("@element-plus/icons-vue"),w=require("./index-DoEyCVDU.cjs");require("element-plus");const xe=require("./EChartComponentBase-8GSbyY5P.cjs"),_e=require("./titleStyle-NSnz6cUg.cjs"),re=require("./ele-lin-icon-Dke_1AmT.cjs"),Pe={class:"mix-body"},Ne={class:"toolbar"},we=["id"],Oe={DEFAULT_ICON:re.DEFAULT_ICON,ACTIVE_ICON:re.ACTIVE_ICON,NAME_CN:"地层运移轨迹图",NAME_EN:"Displacement Trajectory Chart",ORDER:2,PLATFORM:["pc","screen"]},Te={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,startPointRadius:{value:0,type:"number",label:"开始点半径(mm)"},startPointAngle:{value:0,type:"number",label:"开始点角度(°)"},showStartPoint:{value:!0,type:"boolean",label:"显示开始点"},endPointRadius:{value:0,type:"number",label:"结束点半径(mm)"},endPointAngle:{value:0,type:"number",label:"结束点角度(°)"},showEndPoint:{value:!0,type:"boolean",label:"显示结束点"},showTrajectory:{value:!0,type:"boolean",label:"显示轨迹线"},showDirection:{value:!1,type:"boolean",label:"显示方向箭头"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Ie=[{configPanelId:"",name:"-123米",fv_radius:"合结果",fv_angle:"距移方向",depth:-123,object_id:"",color:"#5470c6"},{configPanelId:"",name:"-124米",fv_radius:"合结果",fv_angle:"距移方向",depth:-124,object_id:"",color:"#91cc75"}],Ee=["configPanelId","name","fv_radius","fv_angle","depth","object_id","color"],Ae=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ke={useAlias:!1,multiObject:!0,source:"mosaic"},Me={DEFAULT:Oe,OPTIONS:Te,DATA:Ie,PARAMS:Ee,SOURCE:Ae,COMMON:ke},Re=i.defineComponent(ie(V({},Me),{__name:"displacementTrajectoryChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(g){const d=g,p=i.ref(""),R=i.ref([]),le=n=>{if(n==null||n==="")return null;if(typeof n=="number"||typeof n=="string"&&n.trim()!==""&&!Number.isNaN(Number(n))){let l=Number(n);return l<1e12&&(l*=1e3),w.dayjs(l)}const t=w.dayjs(n);return t.isValid()?t:null},$=n=>{const e=le(n);return e?{label:e.format("YYYY-MM-DD HH:mm:ss"),date:e.format("YYYY-MM-DD"),value:e.valueOf()}:{label:n?String(n):"",date:"",value:0}},se=(n,e,t)=>{if(!n||n.length===0)return!0;const l=t!=null?String(t):"";return n.some(a=>{const r=String(a);return r===e.date||r===e.label||r===l||r===String(e.value)})},Y=n=>n==null?"":String(n).replace(/[a-zA-Z\s]/g,"").replace(/[^0-9.\-]/g,"");class ce extends xe.EChartComponentBase{constructor(){super(...arguments),this.trajectoryData=[],this.panelConfig={}}addTrajectoryPoint(e,t,l,a){const r=$(t),s=e.depth,h=Number(a),j=Number.isFinite(h)?(h%360+360)%360:0,y=j*Math.PI/180,c=Number(l)*Math.cos(y),m=Number(l)*Math.sin(y);this.trajectoryData.push({seriesName:e.name||`${s}m`,color:e.color||"#5470c6",time:r.label||String(t!=null?t:""),timeLabel:r.label||String(t!=null?t:""),timeValue:r.value,date:r.date,depth:s,dispX:c,dispY:m,radius:Number(l),angle:j})}extractStyles(){var t,l,a,r,s,h,j,y,c,m,D,N,v,u;const{options:e}=this.props.conf;return{bgColor:((t=e==null?void 0:e.bgColor)==null?void 0:t.value)||"#fff",titleColor:((l=e==null?void 0:e.titleColor)==null?void 0:l.value)||"#111",textColor:((a=e==null?void 0:e.textColor)==null?void 0:a.value)||"#111",radiusSize:((r=e==null?void 0:e.radiusSize)==null?void 0:r.value)||8,textSize:((s=e==null?void 0:e.textSize)==null?void 0:s.value)||12,isHideTitle:((h=e==null?void 0:e.isHideTitle)==null?void 0:h.value)||!1,startPointRadius:((j=e==null?void 0:e.startPointRadius)==null?void 0:j.value)||0,startPointAngle:((y=e==null?void 0:e.startPointAngle)==null?void 0:y.value)||0,showStartPoint:((c=e==null?void 0:e.showStartPoint)==null?void 0:c.value)!==!1,endPointRadius:((m=e==null?void 0:e.endPointRadius)==null?void 0:m.value)||0,endPointAngle:((D=e==null?void 0:e.endPointAngle)==null?void 0:D.value)||0,showEndPoint:((N=e==null?void 0:e.showEndPoint)==null?void 0:N.value)!==!1,showTrajectory:((v=e==null?void 0:e.showTrajectory)==null?void 0:v.value)!==!1,showDirection:((u=e==null?void 0:e.showDirection)==null?void 0:u.value)||!1}}getDefaultData(){return[{configPanelId:"",name:"-123米",fv_radius:"合结果",fv_angle:"距移方向",depth:-123,object_id:"",color:"#5470c6"},{configPanelId:"",name:"-124米",fv_radius:"合结果",fv_angle:"距移方向",depth:-124,object_id:"",color:"#91cc75"}]}setPanelConfig(e){console.log("[TrajectoryChart] 应用控制面板配置:",e),this.panelConfig=e||{},this.updateChart()}setHistoryData(e){const{data:t,common:l}=this.props.conf;if(!t||t.length===0)return;const a=(l==null?void 0:l.source)||"mosaic";["statistics","calculate"].includes(a)&&(e=w.formatStatisticsResult(e,t));const r=w.handleNullData(e,this.props,"history");if(r)try{if(this.trajectoryData=[],!r.history||r.history.length===0)return;const s=[...new Set(t.map(c=>{var m;return String((m=c.object_id)!=null?m:"")}))],h=Array.isArray(r.history)?r.history:[],j=c=>{const m=t.map((u,b)=>b).filter(u=>{var b,_;return String((_=(b=t[u])==null?void 0:b.object_id)!=null?_:"")===c});if(!m.length)return[];const D=m[0],N=Array.isArray(h[D])?h[D]:[],v=[];return N.forEach((u,b)=>{const _=u&&typeof u=="object"?V({},u):{};m.forEach(C=>{var M,x,O;const f=(M=h[C])==null?void 0:M[b];if(!f||typeof f!="object")return;const I=(x=t[C])==null?void 0:x.fv_radius,E=(O=t[C])==null?void 0:O.fv_angle;I&&(_[I]=f==null?void 0:f[I]),E&&(_[E]=f==null?void 0:f[E])}),v.push(_)}),v};if(r.history=s.map(c=>j(c)),!0){const c=r.history[0]||[];if(c.length===0)return;const m=[...new Set(c.map(u=>$(u.time||u.timestamp).date).filter(Boolean))];R.value=m.sort((u,b)=>new Date(b).getTime()-new Date(u).getTime());const{selectedTimes:D,startDate:N,endDate:v}=this.panelConfig;c.forEach((u,b)=>{const _=$(u.time||u.timestamp),C=_.date;if(D&&D.length>0){if(!se(D,_,u.time||u.timestamp))return}else if(N&&v&&(C<N||C>v))return;t.forEach(f=>{const I=f.fv_radius,E=f.fv_angle,M=f.object_id,x=s.indexOf(M);if(x===-1||!r.history[x])return;const O=r.history[x];if(!O[b])return;const A=O[b],L=A==null?void 0:A[I],k=A==null?void 0:A[E];L==null||k===void 0||k===null||this.addTrajectoryPoint(f,u.time||u.timestamp,L,k)})})}this.trajectoryData.sort((c,m)=>c.timeValue-m.timeValue)}catch(s){console.error("[TrajectoryChart] 解析历史数据失败:",s)}}setSocketData(e){var a,r,s;if(!e)return;const{data:t}=this.props.conf;if(!t||t.length===0)return;const l=(s=(r=(a=e.time)!=null?a:e.timestamp)!=null?r:e.datetime)!=null?s:w.dayjs().format("YYYY-MM-DD HH:mm:ss");t.forEach(h=>{const j=h.fv_radius,y=h.fv_angle,c=this.extractDataValue(e,j),m=this.extractDataValue(e,y);c==null||m===void 0||m===null||this.addTrajectoryPoint(h,l,c,m)}),this.trajectoryData.length>500&&this.trajectoryData.shift(),this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)}getChartOption(){var W,X,K,Z,G,J,Q,ee,te;const e=this.extractStyles(),t=this.trajectoryData;let l=e.showStartPoint,a=e.showEndPoint;e.showDirection;let r=e.startPointRadius,s=e.startPointAngle,h=e.endPointRadius,j=e.endPointAngle;if(this.panelConfig.displayOptions){const o=this.panelConfig.displayOptions;o.showStartPoint!==void 0&&(l=o.showStartPoint),o.showEndPoint!==void 0&&(a=o.showEndPoint),o.showDirection!==void 0&&o.showDirection}const y=[...t].sort((o,S)=>new Date(o.time).getTime()-new Date(S.time).getTime()),c=((W=this.panelConfig)==null?void 0:W.nodeList)||((X=this.panelConfig)==null?void 0:X.modelList)||((K=this.panelConfig)==null?void 0:K.selectList)||((Z=this.panelConfig)==null?void 0:Z.selectedNodes),m=Array.isArray(c)?c.map(o=>String(o)):c!=null&&String(c)!==""?[String(c)]:[],D=(((G=this.props.conf)==null?void 0:G.data)||[]).map(o=>String((o==null?void 0:o.name)||"")).filter(Boolean),N=m.flatMap(o=>{const S=Number(o);return Number.isFinite(S)&&S>=1&&S<=D.length?[D[S-1]]:[o]}),v=N.map(o=>Y(o)).filter(Boolean),u=v.length>0,b=u?y.filter(o=>{const S=String(o.seriesName),T=Y(S),z=Y(o.depth);if(N.includes(S)||T&&v.includes(T)||z&&v.includes(z))return!0;const ne=Y(Math.abs(Number(o.depth)));return ne&&v.includes(ne)}):y,_=u?b:y,C=((J=this.panelConfig)==null?void 0:J.range__radius)||((Q=this.panelConfig)==null?void 0:Q.radiusRange)||((ee=this.panelConfig)==null?void 0:ee.range)||((te=this.panelConfig)==null?void 0:te.valueRange),f=C==null?void 0:C.min,I=C==null?void 0:C.max,E=Number.isFinite(f)?Number(f):null,M=Number.isFinite(I)?Number(I):null,x=_.filter(o=>Number.isFinite(o.radius)&&Number.isFinite(o.angle));let O=Math.max(...x.map(o=>o.radius),50);O=Math.max(O,r,h);const A=M!==null?M:Math.ceil(O/10)*10+10,L=E!==null?E:0,k=[];return x.length>0&&k.push({name:"轨迹点",type:"scatter",coordinateSystem:"polar",data:x.map(o=>[o.radius,o.angle]),symbol:"circle",symbolSize:8,itemStyle:{color:"#ff9800",borderColor:"#fff",borderWidth:1}}),l&&k.push({name:"开始点",type:"scatter",coordinateSystem:"polar",data:[[r,s]],symbol:"circle",symbolSize:12,itemStyle:{color:"#67c23a",borderColor:"#fff",borderWidth:2},z:10}),a&&k.push({name:"结束点",type:"scatter",coordinateSystem:"polar",data:[[h,j]],symbol:"circle",symbolSize:12,itemStyle:{color:"#f56c6c",borderColor:"#fff",borderWidth:2},z:10}),{backgroundColor:"transparent",polar:{center:["50%","50%"],radius:"70%"},angleAxis:{type:"value",startAngle:90,min:0,max:360,interval:30,clockwise:!1,axisLine:{show:!0,lineStyle:{color:"#ddd"}},axisLabel:{color:e.textColor,fontSize:11,formatter:o=>o===0||o===360?"东":o===90?"北":o===180?"西":o===270?"南":o.toString()},splitLine:{show:!0,lineStyle:{color:"#e0e0e0",type:"dashed"}}},radiusAxis:{type:"value",min:L,max:A,axisLabel:{color:e.textColor,fontSize:11,formatter:o=>`${o}mm`},splitLine:{show:!0,lineStyle:{color:"#e0e0e0",type:"dashed"}},axisLine:{show:!0,lineStyle:{color:"#ddd"}}},series:k,tooltip:{trigger:"item",formatter:o=>{if(o.seriesName==="开始点")return`<div style="padding: 8px;">
|
|
1
|
+
"use strict";var ve=Object.defineProperty,be=Object.defineProperties;var Ce=Object.getOwnPropertyDescriptors;var ae=Object.getOwnPropertySymbols;var Se=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable;var oe=(g,d,p)=>d in g?ve(g,d,{enumerable:!0,configurable:!0,writable:!0,value:p}):g[d]=p,V=(g,d)=>{for(var p in d||(d={}))Se.call(d,p)&&oe(g,p,d[p]);if(ae)for(var p of ae(d))je.call(d,p)&&oe(g,p,d[p]);return g},ie=(g,d)=>be(g,Ce(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const i=require("vue"),De=require("@element-plus/icons-vue"),w=require("./index-CikO6qmH.cjs");require("element-plus");const xe=require("./EChartComponentBase-Cc-8Dgc8.cjs"),_e=require("./titleStyle-NSnz6cUg.cjs"),re=require("./ele-lin-icon-Dke_1AmT.cjs"),Pe={class:"mix-body"},Ne={class:"toolbar"},we=["id"],Oe={DEFAULT_ICON:re.DEFAULT_ICON,ACTIVE_ICON:re.ACTIVE_ICON,NAME_CN:"地层运移轨迹图",NAME_EN:"Displacement Trajectory Chart",ORDER:2,PLATFORM:["pc","screen"]},Te={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,startPointRadius:{value:0,type:"number",label:"开始点半径(mm)"},startPointAngle:{value:0,type:"number",label:"开始点角度(°)"},showStartPoint:{value:!0,type:"boolean",label:"显示开始点"},endPointRadius:{value:0,type:"number",label:"结束点半径(mm)"},endPointAngle:{value:0,type:"number",label:"结束点角度(°)"},showEndPoint:{value:!0,type:"boolean",label:"显示结束点"},showTrajectory:{value:!0,type:"boolean",label:"显示轨迹线"},showDirection:{value:!1,type:"boolean",label:"显示方向箭头"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Ie=[{configPanelId:"",name:"-123米",fv_radius:"合结果",fv_angle:"距移方向",depth:-123,object_id:"",color:"#5470c6"},{configPanelId:"",name:"-124米",fv_radius:"合结果",fv_angle:"距移方向",depth:-124,object_id:"",color:"#91cc75"}],Ee=["configPanelId","name","fv_radius","fv_angle","depth","object_id","color"],Ae=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ke={useAlias:!1,multiObject:!0,source:"mosaic"},Me={DEFAULT:Oe,OPTIONS:Te,DATA:Ie,PARAMS:Ee,SOURCE:Ae,COMMON:ke},Re=i.defineComponent(ie(V({},Me),{__name:"displacementTrajectoryChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(g){const d=g,p=i.ref(""),R=i.ref([]),le=n=>{if(n==null||n==="")return null;if(typeof n=="number"||typeof n=="string"&&n.trim()!==""&&!Number.isNaN(Number(n))){let l=Number(n);return l<1e12&&(l*=1e3),w.dayjs(l)}const t=w.dayjs(n);return t.isValid()?t:null},$=n=>{const e=le(n);return e?{label:e.format("YYYY-MM-DD HH:mm:ss"),date:e.format("YYYY-MM-DD"),value:e.valueOf()}:{label:n?String(n):"",date:"",value:0}},se=(n,e,t)=>{if(!n||n.length===0)return!0;const l=t!=null?String(t):"";return n.some(a=>{const r=String(a);return r===e.date||r===e.label||r===l||r===String(e.value)})},Y=n=>n==null?"":String(n).replace(/[a-zA-Z\s]/g,"").replace(/[^0-9.\-]/g,"");class ce extends xe.EChartComponentBase{constructor(){super(...arguments),this.trajectoryData=[],this.panelConfig={}}addTrajectoryPoint(e,t,l,a){const r=$(t),s=e.depth,h=Number(a),j=Number.isFinite(h)?(h%360+360)%360:0,y=j*Math.PI/180,c=Number(l)*Math.cos(y),m=Number(l)*Math.sin(y);this.trajectoryData.push({seriesName:e.name||`${s}m`,color:e.color||"#5470c6",time:r.label||String(t!=null?t:""),timeLabel:r.label||String(t!=null?t:""),timeValue:r.value,date:r.date,depth:s,dispX:c,dispY:m,radius:Number(l),angle:j})}extractStyles(){var t,l,a,r,s,h,j,y,c,m,D,N,v,u;const{options:e}=this.props.conf;return{bgColor:((t=e==null?void 0:e.bgColor)==null?void 0:t.value)||"#fff",titleColor:((l=e==null?void 0:e.titleColor)==null?void 0:l.value)||"#111",textColor:((a=e==null?void 0:e.textColor)==null?void 0:a.value)||"#111",radiusSize:((r=e==null?void 0:e.radiusSize)==null?void 0:r.value)||8,textSize:((s=e==null?void 0:e.textSize)==null?void 0:s.value)||12,isHideTitle:((h=e==null?void 0:e.isHideTitle)==null?void 0:h.value)||!1,startPointRadius:((j=e==null?void 0:e.startPointRadius)==null?void 0:j.value)||0,startPointAngle:((y=e==null?void 0:e.startPointAngle)==null?void 0:y.value)||0,showStartPoint:((c=e==null?void 0:e.showStartPoint)==null?void 0:c.value)!==!1,endPointRadius:((m=e==null?void 0:e.endPointRadius)==null?void 0:m.value)||0,endPointAngle:((D=e==null?void 0:e.endPointAngle)==null?void 0:D.value)||0,showEndPoint:((N=e==null?void 0:e.showEndPoint)==null?void 0:N.value)!==!1,showTrajectory:((v=e==null?void 0:e.showTrajectory)==null?void 0:v.value)!==!1,showDirection:((u=e==null?void 0:e.showDirection)==null?void 0:u.value)||!1}}getDefaultData(){return[{configPanelId:"",name:"-123米",fv_radius:"合结果",fv_angle:"距移方向",depth:-123,object_id:"",color:"#5470c6"},{configPanelId:"",name:"-124米",fv_radius:"合结果",fv_angle:"距移方向",depth:-124,object_id:"",color:"#91cc75"}]}setPanelConfig(e){console.log("[TrajectoryChart] 应用控制面板配置:",e),this.panelConfig=e||{},this.updateChart()}setHistoryData(e){const{data:t,common:l}=this.props.conf;if(!t||t.length===0)return;const a=(l==null?void 0:l.source)||"mosaic";["statistics","calculate"].includes(a)&&(e=w.formatStatisticsResult(e,t));const r=w.handleNullData(e,this.props,"history");if(r)try{if(this.trajectoryData=[],!r.history||r.history.length===0)return;const s=[...new Set(t.map(c=>{var m;return String((m=c.object_id)!=null?m:"")}))],h=Array.isArray(r.history)?r.history:[],j=c=>{const m=t.map((u,b)=>b).filter(u=>{var b,_;return String((_=(b=t[u])==null?void 0:b.object_id)!=null?_:"")===c});if(!m.length)return[];const D=m[0],N=Array.isArray(h[D])?h[D]:[],v=[];return N.forEach((u,b)=>{const _=u&&typeof u=="object"?V({},u):{};m.forEach(C=>{var M,x,O;const f=(M=h[C])==null?void 0:M[b];if(!f||typeof f!="object")return;const I=(x=t[C])==null?void 0:x.fv_radius,E=(O=t[C])==null?void 0:O.fv_angle;I&&(_[I]=f==null?void 0:f[I]),E&&(_[E]=f==null?void 0:f[E])}),v.push(_)}),v};if(r.history=s.map(c=>j(c)),!0){const c=r.history[0]||[];if(c.length===0)return;const m=[...new Set(c.map(u=>$(u.time||u.timestamp).date).filter(Boolean))];R.value=m.sort((u,b)=>new Date(b).getTime()-new Date(u).getTime());const{selectedTimes:D,startDate:N,endDate:v}=this.panelConfig;c.forEach((u,b)=>{const _=$(u.time||u.timestamp),C=_.date;if(D&&D.length>0){if(!se(D,_,u.time||u.timestamp))return}else if(N&&v&&(C<N||C>v))return;t.forEach(f=>{const I=f.fv_radius,E=f.fv_angle,M=f.object_id,x=s.indexOf(M);if(x===-1||!r.history[x])return;const O=r.history[x];if(!O[b])return;const A=O[b],L=A==null?void 0:A[I],k=A==null?void 0:A[E];L==null||k===void 0||k===null||this.addTrajectoryPoint(f,u.time||u.timestamp,L,k)})})}this.trajectoryData.sort((c,m)=>c.timeValue-m.timeValue)}catch(s){console.error("[TrajectoryChart] 解析历史数据失败:",s)}}setSocketData(e){var a,r,s;if(!e)return;const{data:t}=this.props.conf;if(!t||t.length===0)return;const l=(s=(r=(a=e.time)!=null?a:e.timestamp)!=null?r:e.datetime)!=null?s:w.dayjs().format("YYYY-MM-DD HH:mm:ss");t.forEach(h=>{const j=h.fv_radius,y=h.fv_angle,c=this.extractDataValue(e,j),m=this.extractDataValue(e,y);c==null||m===void 0||m===null||this.addTrajectoryPoint(h,l,c,m)}),this.trajectoryData.length>500&&this.trajectoryData.shift(),this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)}getChartOption(){var W,X,K,Z,G,J,Q,ee,te;const e=this.extractStyles(),t=this.trajectoryData;let l=e.showStartPoint,a=e.showEndPoint;e.showDirection;let r=e.startPointRadius,s=e.startPointAngle,h=e.endPointRadius,j=e.endPointAngle;if(this.panelConfig.displayOptions){const o=this.panelConfig.displayOptions;o.showStartPoint!==void 0&&(l=o.showStartPoint),o.showEndPoint!==void 0&&(a=o.showEndPoint),o.showDirection!==void 0&&o.showDirection}const y=[...t].sort((o,S)=>new Date(o.time).getTime()-new Date(S.time).getTime()),c=((W=this.panelConfig)==null?void 0:W.nodeList)||((X=this.panelConfig)==null?void 0:X.modelList)||((K=this.panelConfig)==null?void 0:K.selectList)||((Z=this.panelConfig)==null?void 0:Z.selectedNodes),m=Array.isArray(c)?c.map(o=>String(o)):c!=null&&String(c)!==""?[String(c)]:[],D=(((G=this.props.conf)==null?void 0:G.data)||[]).map(o=>String((o==null?void 0:o.name)||"")).filter(Boolean),N=m.flatMap(o=>{const S=Number(o);return Number.isFinite(S)&&S>=1&&S<=D.length?[D[S-1]]:[o]}),v=N.map(o=>Y(o)).filter(Boolean),u=v.length>0,b=u?y.filter(o=>{const S=String(o.seriesName),T=Y(S),z=Y(o.depth);if(N.includes(S)||T&&v.includes(T)||z&&v.includes(z))return!0;const ne=Y(Math.abs(Number(o.depth)));return ne&&v.includes(ne)}):y,_=u?b:y,C=((J=this.panelConfig)==null?void 0:J.range__radius)||((Q=this.panelConfig)==null?void 0:Q.radiusRange)||((ee=this.panelConfig)==null?void 0:ee.range)||((te=this.panelConfig)==null?void 0:te.valueRange),f=C==null?void 0:C.min,I=C==null?void 0:C.max,E=Number.isFinite(f)?Number(f):null,M=Number.isFinite(I)?Number(I):null,x=_.filter(o=>Number.isFinite(o.radius)&&Number.isFinite(o.angle));let O=Math.max(...x.map(o=>o.radius),50);O=Math.max(O,r,h);const A=M!==null?M:Math.ceil(O/10)*10+10,L=E!==null?E:0,k=[];return x.length>0&&k.push({name:"轨迹点",type:"scatter",coordinateSystem:"polar",data:x.map(o=>[o.radius,o.angle]),symbol:"circle",symbolSize:8,itemStyle:{color:"#ff9800",borderColor:"#fff",borderWidth:1}}),l&&k.push({name:"开始点",type:"scatter",coordinateSystem:"polar",data:[[r,s]],symbol:"circle",symbolSize:12,itemStyle:{color:"#67c23a",borderColor:"#fff",borderWidth:2},z:10}),a&&k.push({name:"结束点",type:"scatter",coordinateSystem:"polar",data:[[h,j]],symbol:"circle",symbolSize:12,itemStyle:{color:"#f56c6c",borderColor:"#fff",borderWidth:2},z:10}),{backgroundColor:"transparent",polar:{center:["50%","50%"],radius:"70%"},angleAxis:{type:"value",startAngle:90,min:0,max:360,interval:30,clockwise:!1,axisLine:{show:!0,lineStyle:{color:"#ddd"}},axisLabel:{color:e.textColor,fontSize:11,formatter:o=>o===0||o===360?"东":o===90?"北":o===180?"西":o===270?"南":o.toString()},splitLine:{show:!0,lineStyle:{color:"#e0e0e0",type:"dashed"}}},radiusAxis:{type:"value",min:L,max:A,axisLabel:{color:e.textColor,fontSize:11,formatter:o=>`${o}mm`},splitLine:{show:!0,lineStyle:{color:"#e0e0e0",type:"dashed"}},axisLine:{show:!0,lineStyle:{color:"#ddd"}}},series:k,tooltip:{trigger:"item",formatter:o=>{if(o.seriesName==="开始点")return`<div style="padding: 8px;">
|
|
2
2
|
<div style="font-weight: 600; margin-bottom: 6px;">开始点(参考)</div>
|
|
3
3
|
<div style="color: #666; line-height: 1.8;">
|
|
4
4
|
<div>半径: ${r.toFixed(2)}mm</div>
|
package/dist/{displacementTrajectoryChart-D1UPR4dt.js → displacementTrajectoryChart-DOlT71OH.js}
RENAMED
|
@@ -18,9 +18,9 @@ import "element-plus/es/components/select/style/css";
|
|
|
18
18
|
import "element-plus/es/components/option/style/css";
|
|
19
19
|
import { defineComponent as Mt, ref as X, computed as F, watch as mt, nextTick as ht, onMounted as kt, onUnmounted as Yt, openBlock as $, createElementBlock as q, normalizeStyle as ft, unref as k, toDisplayString as Lt, createCommentVNode as zt, createElementVNode as K, createVNode as H, withCtx as Z, Fragment as Ft, renderList as $t, createBlock as Ht, createTextVNode as Bt, renderSlot as Ut } from "vue";
|
|
20
20
|
import { Download as Vt } from "@element-plus/icons-vue";
|
|
21
|
-
import { o as Wt, R as Xt, J as qt, d as Y, Z as Kt, _ as Zt } from "./index-
|
|
21
|
+
import { o as Wt, R as Xt, J as qt, d as Y, Z as Kt, _ as Zt } from "./index-B5OsYU5s.js";
|
|
22
22
|
import "element-plus";
|
|
23
|
-
import { E as Jt } from "./EChartComponentBase-
|
|
23
|
+
import { E as Jt } from "./EChartComponentBase-cxF_cDzz.js";
|
|
24
24
|
import { g as Gt } from "./titleStyle-BT5GlpAb.js";
|
|
25
25
|
import { A as Qt, D as te } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
26
26
|
const ee = { class: "mix-body" }, ne = { class: "toolbar" }, ae = ["id"], oe = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ne=Object.defineProperty,ae=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols,se=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ce=Reflect.get;var K=(p,l,s)=>l in p?ne(p,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):p[l]=s,G=(p,l)=>{for(var s in l||(l={}))ie.call(l,s)&&K(p,s,l[s]);if(U)for(var s of U(l))le.call(l,s)&&K(p,s,l[s]);return p},Z=(p,l)=>ae(p,oe(l));var H=(p,l,s)=>ce(se(p),s,l);var X=(p,l,s)=>new Promise((k,y)=>{var z=C=>{try{I(s.next(C))}catch(O){y(O)}},f=C=>{try{I(s.throw(C))}catch(O){y(O)}},I=C=>C.done?k(C.value):Promise.resolve(C.value).then(z,f);I((s=s.apply(p,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("html2canvas");const re=require("./BaseComponent-
|
|
1
|
+
"use strict";var ne=Object.defineProperty,ae=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols,se=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ce=Reflect.get;var K=(p,l,s)=>l in p?ne(p,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):p[l]=s,G=(p,l)=>{for(var s in l||(l={}))ie.call(l,s)&&K(p,s,l[s]);if(U)for(var s of U(l))le.call(l,s)&&K(p,s,l[s]);return p},Z=(p,l)=>ae(p,oe(l));var H=(p,l,s)=>ce(se(p),s,l);var X=(p,l,s)=>new Promise((k,y)=>{var z=C=>{try{I(s.next(C))}catch(O){y(O)}},f=C=>{try{I(s.throw(C))}catch(O){y(O)}},I=C=>C.done?k(C.value):Promise.resolve(C.value).then(z,f);I((s=s.apply(p,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("html2canvas");const re=require("./BaseComponent-eihedT_8.cjs"),B=require("./index-CikO6qmH.cjs");require("./index-CJgyJTvc.cjs");const W=require("./ele-dzc-icon-h5wOUHF0.cjs"),de=require("./echarts-BB8O2KSA.cjs"),pe={class:"displacement-trend-chart"},fe={class:"chart-header"},ue={class:"chart-title"},he={class:"chart-subtitle"},me={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"位移趋势图",NAME_EN:"Displacement Trend Chart",ORDER:15,PLATFORM:["pc","screen"]},ve={bindId:{value:"",type:"string",label:"component.deepDisplacement.bindId"},title:{value:"ZK10-深部位移01",type:"string",label:"component.deepDisplacement.title"},depth:{value:152,type:"number",label:"component.deepDisplacement.depth",min:1,max:500},dispType:{value:"cumulative",type:"select",label:"component.deepDisplacement.dispType",options:[{label:"累计位移",value:"cumulative"},{label:"相对位移",value:"relative"}]},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},points:{value:30,type:"number",label:"component.options.points",min:5,max:100}},ye=[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth",color:"#4a90d9"}],ge=["configPanelId","name","object_id","points_fv","fv","depth_fv","color"],be=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],xe={useAlias:!1,multiObject:!1,source:"mosaic"},_e={DEFAULT:me,OPTIONS:ve,DATA:ye,PARAMS:ge,SOURCE:be,COMMON:xe},Ce=n.defineComponent(Z(G({},_e),{__name:"displacementTrendChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(p){n.useCssVars(a=>({a494a23e:n.unref(A).bgColor,a3f8bb8e:n.unref(A).textColor}));const l=B.useLinkStore(),s=p,k=n.ref({selectedTimes:[],startDate:"",endDate:""}),y=n.ref(new Map),z=`trendChart_${Date.now()}_${Math.random().toString(36).slice(2,8)}`;let f=null,I=null;const C=["#4a90d9","#67c23a","#e6a23c","#f56c6c","#909399","#00bcd4","#9c27b0","#ff9800","#795548","#607d8b"];class O extends re.BaseComponent{extractStyles(){var c,h,T,D,d,i,u;const{options:e}=this.props.conf,o=((c=e==null?void 0:e.dispType)==null?void 0:c.value)||"cumulative",t=((h=e==null?void 0:e.title)==null?void 0:h.value)||"ZK10-深部位移01",g=o==="relative"?"相对趋势图":"累计趋势图";return{bindId:((T=e==null?void 0:e.bindId)==null?void 0:T.value)||"",title:t,fullTitle:`${t}-${g}`,depth:((D=e==null?void 0:e.depth)==null?void 0:D.value)||152,dispType:o,bgColor:((d=e==null?void 0:e.bgColor)==null?void 0:d.value)||"#ffffff",textColor:((i=e==null?void 0:e.textColor)==null?void 0:i.value)||"#333333",points:((u=e==null?void 0:e.points)==null?void 0:u.value)||30}}getDefaultData(){return[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth",color:"#4a90d9"}]}getActualFv(e){if(this.extractStyles().dispType==="relative"){if(e==="disp_x")return"relative_disp_x";if(e==="disp_y")return"relative_disp_y";if(e==="disp")return"relative_disp"}return e}getMockData(){var c;const e=((c=this.props.conf)==null?void 0:c.data)||this.getDefaultData(),o=["2026-01-15","2026-01-14","2026-01-13","2026-01-12","2026-01-11"],t=new Map,g=this.extractStyles().dispType;return e.forEach((h,T)=>{const D=new Map;o.forEach((d,i)=>{const u=[],b=(o.length-1-i)*5;for(let m=0;m<=30;m++){const r=-122-m;let x;g==="relative"?x=(Math.random()-.3)*5+Math.sin(m*.3)*3:x=(10+b+T*3)*(1+m*.03),u.push({depth:r,value:x+Math.sin(m*.2+T)*2})}D.set(d,u)}),t.set(h.name,D)}),t}onPreview(){return X(this,null,function*(){const{data:e}=this.props.conf;e.some(t=>t.object_id&&t.fv)?(console.log("[DisplacementTrendChart] 检测到数据绑定,订阅真实数据"),yield H(O.prototype,this,"onPreview").call(this)):(console.log("[DisplacementTrendChart] 未配置数据源,使用模拟数据"),this.getMockData().forEach((g,c)=>y.value.set(c,g)),j())})}setHistoryData(e){var T,D;const{data:o,common:t}=this.props.conf;if(!o||o.length===0||!o.some(d=>d.object_id&&d.fv))return;const c=(t==null?void 0:t.source)||"mosaic";["statistics","calculate"].includes(c)&&(e=B.formatStatisticsResult(e,o));const h=B.handleNullData(e,this.props,"history");if(h){try{y.value.clear();const d=o.find(r=>r.object_id);if(!d)return;const i=o.indexOf(d),u=((T=h.history)==null?void 0:T[i])||[],b=d.points_fv||"points";u.length>0&&Array.isArray((D=u[0])==null?void 0:D[b])?o.forEach(r=>{if(!r.object_id||!r.fv)return;const x=new Map,$=this.getActualFv(r.fv),S=new Map;u.forEach(_=>{const M=(_.time||_.datetime||"").split(" ")[0];S.has(M)||S.set(M,[]),(_[b]||[]).forEach(v=>{var E,P,R;S.get(M).push({depth:(P=(E=v[r.depth_fv])!=null?E:v.depth)!=null?P:0,value:(R=v[$])!=null?R:0})})}),S.forEach((_,L)=>{const M=new Map;_.forEach(v=>M.set(v.depth,v.value));const w=Array.from(M.entries()).map(([v,E])=>({depth:v,value:E})).sort((v,E)=>E.depth-v.depth);x.set(L,w)}),y.value.set(r.name,x)}):o.forEach((r,x)=>{var M;if(!r.object_id||!r.fv)return;const $=((M=h.history)==null?void 0:M[x])||[],S=new Map,_=this.getActualFv(r.fv),L=new Map;$.forEach(w=>{var P,R;const E=(w.time||w.datetime||"").split(" ")[0];L.has(E)||L.set(E,[]),L.get(E).push({depth:(P=w[r.depth_fv])!=null?P:0,value:(R=w[_])!=null?R:0})}),L.forEach((w,v)=>{S.set(v,w)}),y.value.set(r.name,S)})}catch(d){console.error("[TrendChart] 解析历史数据失败:",d)}j()}}setSocketData(e){e&&console.log("[DisplacementTrendChart] 收到实时数据:",e)}}const N=new O(s,"displacementTrendChart");(!s.conf.data||s.conf.data.length===0)&&(s.conf.data=N.getDefaultData()),N.setupLifecycle();const A=N.getStyle(),J=n.computed(()=>{const a=A.value.title,e=A.value.depth,t=V()==="relative"?"相对趋势图":"累计趋势图";return`${a}(深度${e}米)-${t}`}),Q=n.computed(()=>{const a=k.value.selectedTimes||k.value.trendSelectedTimes||[];if(a.length===0)return"";const e=[...a].sort(),o=e[0],t=e[e.length-1];return`${o} ~ ${t} [${a.length}天]`}),V=()=>A.value.dispType,F=()=>{var d;const a=A.value,e=k.value,o=((d=s.conf)==null?void 0:d.data)||N.getDefaultData();V();let t=e.selectedTimes||e.trendSelectedTimes||[];if(y.value.size===0&&N.getMockData().forEach((u,b)=>y.value.set(b,u)),t.length===0&&y.value.size>0){const i=y.value.values().next().value;i&&(t=Array.from(i.keys()))}t=[...t].sort().reverse();const g=[];let c=[],h=0;o.forEach(i=>{const u=y.value.get(i.name);if(!u)return;const b=i.color||C[h%C.length];h++,t.forEach((m,r)=>{const x=u.get(m)||[];if(x.length===0)return;x.forEach(_=>c.push(_.depth));const $=1-r*.15,S=b;g.push({name:`${i.name} (${m})`,type:"line",data:x.map(_=>[_.value,_.depth]),smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:S,width:2,opacity:$},itemStyle:{color:S,opacity:$}})})}),c.length===0&&(c=[-122,-152]);const T=Math.min(...c),D=Math.max(...c);return{grid:{left:60,right:140,top:30,bottom:60},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:i=>{if(!i||i.length===0)return"";let b=`<div style="padding:8px;max-width:280px;">
|
|
2
2
|
<div style="font-weight:600;margin-bottom:6px;">深度: ${i[0].data[1]}m</div>`;return i.forEach(m=>{b+=`<div style="display:flex;align-items:center;margin:2px 0;">
|
|
3
3
|
<span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:${m.color};margin-right:6px;"></span>
|
|
4
4
|
<span style="flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">${m.seriesName}: ${m.data[0].toFixed(3)} mm</span>
|
|
@@ -28,8 +28,8 @@ var q = (d, i, n) => new Promise((A, v) => {
|
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as ue, useCssVars as he, unref as Q, ref as K, computed as N, watch as Y, nextTick as z, onMounted as me, onBeforeUnmount as ve, withDirectives as ye, openBlock as ge, createElementBlock as be, createElementVNode as F, toDisplayString as ee, renderSlot as xe, vShow as _e } from "vue";
|
|
30
30
|
import "html2canvas";
|
|
31
|
-
import { B as Ce } from "./BaseComponent-
|
|
32
|
-
import { o as De, R as Te, J as Se, _ as Ee } from "./index-
|
|
31
|
+
import { B as Ce } from "./BaseComponent-Cs11e0k6.js";
|
|
32
|
+
import { o as De, R as Te, J as Se, _ as Ee } from "./index-B5OsYU5s.js";
|
|
33
33
|
import "./index-eIsZnzkc.js";
|
|
34
34
|
import { A as Ie, D as Me } from "./ele-dzc-icon-D6eVpaHp.js";
|
|
35
35
|
import { i as we } from "./echarts-Bp7QN4X6.js";
|