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,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ws=Object.defineProperty,Ss=Object.defineProperties;var bs=Object.getOwnPropertyDescriptors;var ra=Object.getOwnPropertySymbols;var Es=Object.prototype.hasOwnProperty,As=Object.prototype.propertyIsEnumerable;var ia=(e,t,r)=>t in e?ws(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ct=(e,t)=>{for(var r in t||(t={}))Es.call(t,r)&&ia(e,r,t[r]);if(ra)for(var r of ra(t))As.call(t,r)&&ia(e,r,t[r]);return e},kt=(e,t)=>Ss(e,bs(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Zi=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/select/style/css");require("element-plus/es/components/option/style/css");const $=require("vue");require("html2canvas");const vt=require("./index-DoEyCVDU.cjs");require("element-plus");const Ds=require("./EChartComponentBase-8GSbyY5P.cjs"),go=require("./index-CJgyJTvc.cjs"),oe=require("./installCanvasRenderer-CyhM1Qpl.cjs"),D=require("./echarts-BB8O2KSA.cjs"),_o=require("./installSimple-c87Ufc4_.cjs"),ii=require("./axisAlignTicks-CDNWKJRo.cjs"),Cs=require("./createSeriesData-Cz83cqoZ.cjs"),Sn=require("./install-DHY9y86B.cjs"),na=require("./install-BvOpNm0Y.cjs"),aa=require("./ele-glbModel-icon-ByACDCrv.cjs");function Ms(e){return Cs.createSeriesData(null,e)}var Fn={isDimensionStacked:oe.isDimensionStacked,enableDataStack:oe.enableDataStack,getStackedDimension:oe.getStackedDimension};function zn(e,t){var r=t;t instanceof D.Model||(r=new D.Model(t));var i=oe.createScaleByModel(r);return i.setExtent(e[0],e[1]),oe.niceScaleExtent(i,r),i}function Ls(e){D.mixin(e,ii.AxisModelCommonMixin)}oe.use([oe.install$1,go.install]);oe.use(go.installLabelLayout);function oa(e,t,r){typeof t=="object"&&(r=t,t=null);var i=this,n;if(!(e instanceof Function)){n=[];for(var a in e)e.hasOwnProperty(a)&&n.push(a)}var o=function(l){if(i.apply(this,arguments),e instanceof Function?sa(this,e.call(this,l)):Ps(this,e,n),this.constructor===o)for(var h=o.__initializers__,u=0;u<h.length;u++)h[u].apply(this,arguments)};o.__super__=i,i.__initializers__?o.__initializers__=i.__initializers__.slice():o.__initializers__=[],t&&o.__initializers__.push(t);var s=function(){};return s.prototype=i.prototype,o.prototype=new s,o.prototype.constructor=o,sa(o.prototype,r),o.extend=i.extend,o.derive=i.extend,o}function sa(e,t){if(t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}function Ps(e,t,r){for(var i=0;i<r.length;i++){var n=r[i];e[n]=t[n]}}const Ns={extend:oa,derive:oa};function Rs(e,t){this.action=e,this.context=t}var Gn={trigger:function(e){if(this.hasOwnProperty("__handlers__")&&this.__handlers__.hasOwnProperty(e)){var t=this.__handlers__[e],r=t.length,i=-1,n=arguments;switch(n.length){case 1:for(;++i<r;)t[i].action.call(t[i].context);return;case 2:for(;++i<r;)t[i].action.call(t[i].context,n[1]);return;case 3:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2]);return;case 4:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2],n[3]);return;case 5:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2],n[3],n[4]);return;default:for(;++i<r;)t[i].action.apply(t[i].context,Array.prototype.slice.call(n,1));return}}},on:function(e,t,r){if(!(!e||!t)){var i=this.__handlers__||(this.__handlers__={});if(!i[e])i[e]=[];else if(this.has(e,t))return;var n=new Rs(t,r||this);return i[e].push(n),this}},once:function(e,t,r){if(!e||!t)return;var i=this;function n(){i.off(e,n),t.apply(this,arguments)}return this.on(e,n,r)},before:function(e,t,r){if(!(!e||!t))return e="before"+e,this.on(e,t,r)},after:function(e,t,r){if(!(!e||!t))return e="after"+e,this.on(e,t,r)},success:function(e,t){return this.once("success",e,t)},error:function(e,t){return this.once("error",e,t)},off:function(e,t){var r=this.__handlers__||(this.__handlers__={});if(!t){r[e]=[];return}if(r[e]){for(var i=r[e],n=[],a=0;a<i.length;a++)t&&i[a].action!==t&&n.push(i[a]);r[e]=n}return this},has:function(e,t){var r=this.__handlers__;if(!r||!r[e])return!1;for(var i=r[e],n=0;n<i.length;n++)if(i[n].action===t)return!0}},Os=0,Is=Array.prototype,Bs=Is.forEach,Le={genGUID:function(){return++Os},relative2absolute:function(e,t){if(!t||e.match(/^\//))return e;for(var r=e.split("/"),i=t.split("/"),n=r[0];n==="."||n==="..";)n===".."&&i.pop(),r.shift(),n=r[0];return i.join("/")+"/"+r.join("/")},extend:function(e,t){if(t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e},defaults:function(e,t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e},extendWithPropList:function(e,t,r){if(t)for(var i=0;i<r.length;i++){var n=r[i];e[n]=t[n]}return e},defaultsWithPropList:function(e,t,r){if(t)for(var i=0;i<r.length;i++){var n=r[i];e[n]==null&&(e[n]=t[n])}return e},each:function(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Bs)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)},isObject:function(e){return e===Object(e)},isArray:function(e){return Array.isArray(e)},isArrayLike:function(e){return e?e.length===+e.length:!1},clone:function(e){if(Le.isObject(e)){if(Le.isArray(e))return e.slice();if(Le.isArrayLike(e)){for(var t=new e.constructor(e.length),r=0;r<e.length;r++)t[r]=e[r];return t}else return Le.extend({},e)}else return e}},Xe=function(){this.__uid__=Le.genGUID()};Xe.__initializers__=[function(e){Le.extend(this,e)}];Le.extend(Xe,Ns);Le.extend(Xe.prototype,Gn);var la=["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear","OES_standard_derivatives","OES_vertex_array_object","OES_element_index_uint","WEBGL_compressed_texture_s3tc","WEBGL_depth_texture","EXT_texture_filter_anisotropic","EXT_shader_texture_lod","WEBGL_draw_buffers","EXT_frag_depth","EXT_sRGB","ANGLE_instanced_arrays"],ha=["MAX_TEXTURE_SIZE","MAX_CUBE_MAP_TEXTURE_SIZE"];function Fs(e){for(var t={},r={},i=0;i<la.length;i++){var n=la[i];o(n)}for(var i=0;i<ha.length;i++){var a=ha[i];r[a]=e.getParameter(e[a])}this.getExtension=function(s){return s in t||o(s),t[s]},this.getParameter=function(s){return r[s]};function o(s){if(e.getExtension){var l=e.getExtension(s);l||(l=e.getExtension("MOZ_"+s)),l||(l=e.getExtension("WEBKIT_"+s)),t[s]=l}}}const F={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,STREAM_DRAW:35040,STATIC_DRAW:35044,DYNAMIC_DRAW:35048,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,CW:2304,CCW:2305,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_2D:3553,TEXTURE_CUBE_MAP:34067,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,FRAMEBUFFER:36160,RENDERBUFFER:36161,DEPTH_STENCIL:34041,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306};function zs(e){var t=new XMLHttpRequest;t.open("get",e.url),t.responseType=e.responseType||"text",e.onprogress&&(t.onprogress=function(r){if(r.lengthComputable){var i=r.loaded/r.total;e.onprogress(i,r.loaded,r.total)}else e.onprogress(null)}),t.onload=function(r){t.status>=400?e.onerror&&e.onerror():e.onload&&e.onload(t.response)},e.onerror&&(t.onerror=e.onerror),t.send(null)}const Gs={get:zs};var qi,fe={};fe.supportWebGL=function(){if(qi==null)try{var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)throw new Error}catch(r){qi=!1}return qi};fe.Int8Array=typeof Int8Array=="undefined"?Array:Int8Array;fe.Uint8Array=typeof Uint8Array=="undefined"?Array:Uint8Array;fe.Uint16Array=typeof Uint16Array=="undefined"?Array:Uint16Array;fe.Uint32Array=typeof Uint32Array=="undefined"?Array:Uint32Array;fe.Int16Array=typeof Int16Array=="undefined"?Array:Int16Array;fe.Float32Array=typeof Float32Array=="undefined"?Array:Float32Array;fe.Float64Array=typeof Float64Array=="undefined"?Array:Float64Array;var $t={};typeof window!="undefined"?$t=window:typeof global!="undefined"&&($t=global);fe.requestAnimationFrame=$t.requestAnimationFrame||$t.msRequestAnimationFrame||$t.mozRequestAnimationFrame||$t.webkitRequestAnimationFrame||function(e){setTimeout(e,16)};fe.createCanvas=function(){return document.createElement("canvas")};fe.createImage=function(){return new $t.Image};fe.request={get:Gs.get};fe.addEventListener=function(e,t,r,i){e.addEventListener(t,r,i)};fe.removeEventListener=function(e,t,r){e.removeEventListener(t,r)};var He=function(){this.head=null,this.tail=null,this._length=0};He.prototype.insert=function(e){var t=new He.Entry(e);return this.insertEntry(t),t};He.prototype.insertAt=function(e,t){if(!(e<0)){for(var r=this.head,i=0;r&&i!=e;)r=r.next,i++;if(r){var n=new He.Entry(t),a=r.prev;a?(a.next=n,n.prev=a):this.head=n,n.next=r,r.prev=n}else this.insert(t)}};He.prototype.insertBeforeEntry=function(e,t){var r=new He.Entry(e),i=t.prev;i?(i.next=r,r.prev=i):this.head=r,r.next=t,t.prev=r,this._length++};He.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,this.tail=e):this.head=this.tail=e,this._length++};He.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._length--};He.prototype.removeAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;if(t)return this.remove(t),t.value}};He.prototype.getHead=function(){if(this.head)return this.head.value};He.prototype.getTail=function(){if(this.tail)return this.tail.value};He.prototype.getAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;return t.value}};He.prototype.indexOf=function(e){for(var t=this.head,r=0;t;){if(t.value===e)return r;t=t.next,r++}};He.prototype.length=function(){return this._length};He.prototype.isEmpty=function(){return this._length===0};He.prototype.forEach=function(e,t){for(var r=this.head,i=0,n=typeof t!="undefined";r;)n?e.call(t,r.value,i):e(r.value,i),r=r.next,i++};He.prototype.clear=function(){this.tail=this.head=null,this._length=0};He.Entry=function(e){this.value=e,this.next=null,this.prev=null};var ar=function(e){this._list=new He,this._map={},this._maxSize=e||10};ar.prototype.setMaxSize=function(e){this._maxSize=e};ar.prototype.put=function(e,t){if(!this._map.hasOwnProperty(e)){var r=this._list.length();if(r>=this._maxSize&&r>0){var i=this._list.head;this._list.remove(i),delete this._map[i.key]}var n=this._list.insert(t);n.key=e,this._map[e]=n}};ar.prototype.get=function(e){var t=this._map[e];if(this._map.hasOwnProperty(e))return t!==this._list.tail&&(this._list.remove(t),this._list.insertEntry(t)),t.value};ar.prototype.remove=function(e){var t=this._map[e];typeof t!="undefined"&&(delete this._map[e],this._list.remove(t))};ar.prototype.clear=function(){this._list.clear(),this._map={}};var Ee={},ua={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function ct(e){return e=Math.round(e),e<0?0:e>255?255:e}function Us(e){return e=Math.round(e),e<0?0:e>360?360:e}function Zr(e){return e<0?0:e>1?1:e}function Yi(e){return e.length&&e.charAt(e.length-1)==="%"?ct(parseFloat(e)/100*255):ct(parseInt(e,10))}function _r(e){return e.length&&e.charAt(e.length-1)==="%"?Zr(parseFloat(e)/100):Zr(parseFloat(e))}function Ki(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Ot(e,t,r){return e+(t-e)*r}function ft(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function bn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var yo=new ar(20),ui=null;function or(e,t){ui&&bn(ui,t),ui=yo.put(e,ui||t.slice())}Ee.parse=function(e,t){if(e){t=t||[];var r=yo.get(e);if(r)return bn(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in ua)return bn(t,ua[i]),or(e,t),t;if(i.charAt(0)==="#"){if(i.length===4){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=4095)){ft(t,0,0,0,1);return}return ft(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,1),or(e,t),t}else if(i.length===7){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=16777215)){ft(t,0,0,0,1);return}return ft(t,(n&16711680)>>16,(n&65280)>>8,n&255,1),or(e,t),t}return}var a=i.indexOf("("),o=i.indexOf(")");if(a!==-1&&o+1===i.length){var s=i.substr(0,a),l=i.substr(a+1,o-(a+1)).split(","),h=1;switch(s){case"rgba":if(l.length!==4){ft(t,0,0,0,1);return}h=_r(l.pop());case"rgb":if(l.length!==3){ft(t,0,0,0,1);return}return ft(t,Yi(l[0]),Yi(l[1]),Yi(l[2]),h),or(e,t),t;case"hsla":if(l.length!==4){ft(t,0,0,0,1);return}return l[3]=_r(l[3]),En(l,t),or(e,t),t;case"hsl":if(l.length!==3){ft(t,0,0,0,1);return}return En(l,t),or(e,t),t;default:return}}ft(t,0,0,0,1)}};Ee.parseToFloat=function(e,t){if(t=Ee.parse(e,t),!!t)return t[0]/=255,t[1]/=255,t[2]/=255,t};function En(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=_r(e[1]),n=_r(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ft(t,ct(Ki(o,a,r+1/3)*255),ct(Ki(o,a,r)*255),ct(Ki(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Vs(e){if(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,l,h;if(o===0)l=0,h=0;else{s<.5?h=o/(a+n):h=o/(2-a-n);var u=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-i)/6+o/2)/o;t===a?l=d-f:r===a?l=1/3+u-d:i===a&&(l=2/3+f-u),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,h,s];return e[3]!=null&&c.push(e[3]),c}}Ee.lift=function(e,t){var r=Ee.parse(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0;return Ee.stringify(r,r.length===4?"rgba":"rgb")}};Ee.toHex=function(e){var t=Ee.parse(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)};Ee.fastLerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],l=i-n;return r[0]=ct(Ot(o[0],s[0],l)),r[1]=ct(Ot(o[1],s[1],l)),r[2]=ct(Ot(o[2],s[2],l)),r[3]=Zr(Ot(o[3],s[3],l)),r}};Ee.fastMapToColor=Ee.fastLerp;Ee.lerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=Ee.parse(t[n]),s=Ee.parse(t[a]),l=i-n,h=Ee.stringify([ct(Ot(o[0],s[0],l)),ct(Ot(o[1],s[1],l)),ct(Ot(o[2],s[2],l)),Zr(Ot(o[3],s[3],l))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}};Ee.mapToColor=Ee.lerp;Ee.modifyHSL=function(e,t,r,i){if(e=Ee.parse(e),e)return e=Vs(e),t!=null&&(e[0]=Us(t)),r!=null&&(e[1]=_r(r)),i!=null&&(e[2]=_r(i)),Ee.stringify(En(e),"rgba")};Ee.modifyAlpha=function(e,t){if(e=Ee.parse(e),e&&t!=null)return e[3]=Zr(t),Ee.stringify(e,"rgba")};Ee.stringify=function(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}};var Hs=Ee.parseToFloat,$i={};function fa(e){var t=Object.keys(e);t.sort();for(var r=[],i=0;i<t.length;i++){var n=t[i],a=e[n];a===null?r.push(n):r.push(n+" "+a.toString())}return r.join(`
|
|
1
|
+
"use strict";var ws=Object.defineProperty,Ss=Object.defineProperties;var bs=Object.getOwnPropertyDescriptors;var ra=Object.getOwnPropertySymbols;var Es=Object.prototype.hasOwnProperty,As=Object.prototype.propertyIsEnumerable;var ia=(e,t,r)=>t in e?ws(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ct=(e,t)=>{for(var r in t||(t={}))Es.call(t,r)&&ia(e,r,t[r]);if(ra)for(var r of ra(t))As.call(t,r)&&ia(e,r,t[r]);return e},kt=(e,t)=>Ss(e,bs(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Zi=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/select/style/css");require("element-plus/es/components/option/style/css");const $=require("vue");require("html2canvas");const vt=require("./index-CikO6qmH.cjs");require("element-plus");const Ds=require("./EChartComponentBase-Cc-8Dgc8.cjs"),go=require("./index-CJgyJTvc.cjs"),oe=require("./installCanvasRenderer-CyhM1Qpl.cjs"),D=require("./echarts-BB8O2KSA.cjs"),_o=require("./installSimple-c87Ufc4_.cjs"),ii=require("./axisAlignTicks-CDNWKJRo.cjs"),Cs=require("./createSeriesData-Cz83cqoZ.cjs"),Sn=require("./install-DHY9y86B.cjs"),na=require("./install-BvOpNm0Y.cjs"),aa=require("./ele-glbModel-icon-ByACDCrv.cjs");function Ms(e){return Cs.createSeriesData(null,e)}var Fn={isDimensionStacked:oe.isDimensionStacked,enableDataStack:oe.enableDataStack,getStackedDimension:oe.getStackedDimension};function zn(e,t){var r=t;t instanceof D.Model||(r=new D.Model(t));var i=oe.createScaleByModel(r);return i.setExtent(e[0],e[1]),oe.niceScaleExtent(i,r),i}function Ls(e){D.mixin(e,ii.AxisModelCommonMixin)}oe.use([oe.install$1,go.install]);oe.use(go.installLabelLayout);function oa(e,t,r){typeof t=="object"&&(r=t,t=null);var i=this,n;if(!(e instanceof Function)){n=[];for(var a in e)e.hasOwnProperty(a)&&n.push(a)}var o=function(l){if(i.apply(this,arguments),e instanceof Function?sa(this,e.call(this,l)):Ps(this,e,n),this.constructor===o)for(var h=o.__initializers__,u=0;u<h.length;u++)h[u].apply(this,arguments)};o.__super__=i,i.__initializers__?o.__initializers__=i.__initializers__.slice():o.__initializers__=[],t&&o.__initializers__.push(t);var s=function(){};return s.prototype=i.prototype,o.prototype=new s,o.prototype.constructor=o,sa(o.prototype,r),o.extend=i.extend,o.derive=i.extend,o}function sa(e,t){if(t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}function Ps(e,t,r){for(var i=0;i<r.length;i++){var n=r[i];e[n]=t[n]}}const Ns={extend:oa,derive:oa};function Rs(e,t){this.action=e,this.context=t}var Gn={trigger:function(e){if(this.hasOwnProperty("__handlers__")&&this.__handlers__.hasOwnProperty(e)){var t=this.__handlers__[e],r=t.length,i=-1,n=arguments;switch(n.length){case 1:for(;++i<r;)t[i].action.call(t[i].context);return;case 2:for(;++i<r;)t[i].action.call(t[i].context,n[1]);return;case 3:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2]);return;case 4:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2],n[3]);return;case 5:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2],n[3],n[4]);return;default:for(;++i<r;)t[i].action.apply(t[i].context,Array.prototype.slice.call(n,1));return}}},on:function(e,t,r){if(!(!e||!t)){var i=this.__handlers__||(this.__handlers__={});if(!i[e])i[e]=[];else if(this.has(e,t))return;var n=new Rs(t,r||this);return i[e].push(n),this}},once:function(e,t,r){if(!e||!t)return;var i=this;function n(){i.off(e,n),t.apply(this,arguments)}return this.on(e,n,r)},before:function(e,t,r){if(!(!e||!t))return e="before"+e,this.on(e,t,r)},after:function(e,t,r){if(!(!e||!t))return e="after"+e,this.on(e,t,r)},success:function(e,t){return this.once("success",e,t)},error:function(e,t){return this.once("error",e,t)},off:function(e,t){var r=this.__handlers__||(this.__handlers__={});if(!t){r[e]=[];return}if(r[e]){for(var i=r[e],n=[],a=0;a<i.length;a++)t&&i[a].action!==t&&n.push(i[a]);r[e]=n}return this},has:function(e,t){var r=this.__handlers__;if(!r||!r[e])return!1;for(var i=r[e],n=0;n<i.length;n++)if(i[n].action===t)return!0}},Os=0,Is=Array.prototype,Bs=Is.forEach,Le={genGUID:function(){return++Os},relative2absolute:function(e,t){if(!t||e.match(/^\//))return e;for(var r=e.split("/"),i=t.split("/"),n=r[0];n==="."||n==="..";)n===".."&&i.pop(),r.shift(),n=r[0];return i.join("/")+"/"+r.join("/")},extend:function(e,t){if(t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e},defaults:function(e,t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e},extendWithPropList:function(e,t,r){if(t)for(var i=0;i<r.length;i++){var n=r[i];e[n]=t[n]}return e},defaultsWithPropList:function(e,t,r){if(t)for(var i=0;i<r.length;i++){var n=r[i];e[n]==null&&(e[n]=t[n])}return e},each:function(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Bs)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)},isObject:function(e){return e===Object(e)},isArray:function(e){return Array.isArray(e)},isArrayLike:function(e){return e?e.length===+e.length:!1},clone:function(e){if(Le.isObject(e)){if(Le.isArray(e))return e.slice();if(Le.isArrayLike(e)){for(var t=new e.constructor(e.length),r=0;r<e.length;r++)t[r]=e[r];return t}else return Le.extend({},e)}else return e}},Xe=function(){this.__uid__=Le.genGUID()};Xe.__initializers__=[function(e){Le.extend(this,e)}];Le.extend(Xe,Ns);Le.extend(Xe.prototype,Gn);var la=["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear","OES_standard_derivatives","OES_vertex_array_object","OES_element_index_uint","WEBGL_compressed_texture_s3tc","WEBGL_depth_texture","EXT_texture_filter_anisotropic","EXT_shader_texture_lod","WEBGL_draw_buffers","EXT_frag_depth","EXT_sRGB","ANGLE_instanced_arrays"],ha=["MAX_TEXTURE_SIZE","MAX_CUBE_MAP_TEXTURE_SIZE"];function Fs(e){for(var t={},r={},i=0;i<la.length;i++){var n=la[i];o(n)}for(var i=0;i<ha.length;i++){var a=ha[i];r[a]=e.getParameter(e[a])}this.getExtension=function(s){return s in t||o(s),t[s]},this.getParameter=function(s){return r[s]};function o(s){if(e.getExtension){var l=e.getExtension(s);l||(l=e.getExtension("MOZ_"+s)),l||(l=e.getExtension("WEBKIT_"+s)),t[s]=l}}}const F={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,STREAM_DRAW:35040,STATIC_DRAW:35044,DYNAMIC_DRAW:35048,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,CW:2304,CCW:2305,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_2D:3553,TEXTURE_CUBE_MAP:34067,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,FRAMEBUFFER:36160,RENDERBUFFER:36161,DEPTH_STENCIL:34041,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306};function zs(e){var t=new XMLHttpRequest;t.open("get",e.url),t.responseType=e.responseType||"text",e.onprogress&&(t.onprogress=function(r){if(r.lengthComputable){var i=r.loaded/r.total;e.onprogress(i,r.loaded,r.total)}else e.onprogress(null)}),t.onload=function(r){t.status>=400?e.onerror&&e.onerror():e.onload&&e.onload(t.response)},e.onerror&&(t.onerror=e.onerror),t.send(null)}const Gs={get:zs};var qi,fe={};fe.supportWebGL=function(){if(qi==null)try{var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)throw new Error}catch(r){qi=!1}return qi};fe.Int8Array=typeof Int8Array=="undefined"?Array:Int8Array;fe.Uint8Array=typeof Uint8Array=="undefined"?Array:Uint8Array;fe.Uint16Array=typeof Uint16Array=="undefined"?Array:Uint16Array;fe.Uint32Array=typeof Uint32Array=="undefined"?Array:Uint32Array;fe.Int16Array=typeof Int16Array=="undefined"?Array:Int16Array;fe.Float32Array=typeof Float32Array=="undefined"?Array:Float32Array;fe.Float64Array=typeof Float64Array=="undefined"?Array:Float64Array;var $t={};typeof window!="undefined"?$t=window:typeof global!="undefined"&&($t=global);fe.requestAnimationFrame=$t.requestAnimationFrame||$t.msRequestAnimationFrame||$t.mozRequestAnimationFrame||$t.webkitRequestAnimationFrame||function(e){setTimeout(e,16)};fe.createCanvas=function(){return document.createElement("canvas")};fe.createImage=function(){return new $t.Image};fe.request={get:Gs.get};fe.addEventListener=function(e,t,r,i){e.addEventListener(t,r,i)};fe.removeEventListener=function(e,t,r){e.removeEventListener(t,r)};var He=function(){this.head=null,this.tail=null,this._length=0};He.prototype.insert=function(e){var t=new He.Entry(e);return this.insertEntry(t),t};He.prototype.insertAt=function(e,t){if(!(e<0)){for(var r=this.head,i=0;r&&i!=e;)r=r.next,i++;if(r){var n=new He.Entry(t),a=r.prev;a?(a.next=n,n.prev=a):this.head=n,n.next=r,r.prev=n}else this.insert(t)}};He.prototype.insertBeforeEntry=function(e,t){var r=new He.Entry(e),i=t.prev;i?(i.next=r,r.prev=i):this.head=r,r.next=t,t.prev=r,this._length++};He.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,this.tail=e):this.head=this.tail=e,this._length++};He.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._length--};He.prototype.removeAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;if(t)return this.remove(t),t.value}};He.prototype.getHead=function(){if(this.head)return this.head.value};He.prototype.getTail=function(){if(this.tail)return this.tail.value};He.prototype.getAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;return t.value}};He.prototype.indexOf=function(e){for(var t=this.head,r=0;t;){if(t.value===e)return r;t=t.next,r++}};He.prototype.length=function(){return this._length};He.prototype.isEmpty=function(){return this._length===0};He.prototype.forEach=function(e,t){for(var r=this.head,i=0,n=typeof t!="undefined";r;)n?e.call(t,r.value,i):e(r.value,i),r=r.next,i++};He.prototype.clear=function(){this.tail=this.head=null,this._length=0};He.Entry=function(e){this.value=e,this.next=null,this.prev=null};var ar=function(e){this._list=new He,this._map={},this._maxSize=e||10};ar.prototype.setMaxSize=function(e){this._maxSize=e};ar.prototype.put=function(e,t){if(!this._map.hasOwnProperty(e)){var r=this._list.length();if(r>=this._maxSize&&r>0){var i=this._list.head;this._list.remove(i),delete this._map[i.key]}var n=this._list.insert(t);n.key=e,this._map[e]=n}};ar.prototype.get=function(e){var t=this._map[e];if(this._map.hasOwnProperty(e))return t!==this._list.tail&&(this._list.remove(t),this._list.insertEntry(t)),t.value};ar.prototype.remove=function(e){var t=this._map[e];typeof t!="undefined"&&(delete this._map[e],this._list.remove(t))};ar.prototype.clear=function(){this._list.clear(),this._map={}};var Ee={},ua={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function ct(e){return e=Math.round(e),e<0?0:e>255?255:e}function Us(e){return e=Math.round(e),e<0?0:e>360?360:e}function Zr(e){return e<0?0:e>1?1:e}function Yi(e){return e.length&&e.charAt(e.length-1)==="%"?ct(parseFloat(e)/100*255):ct(parseInt(e,10))}function _r(e){return e.length&&e.charAt(e.length-1)==="%"?Zr(parseFloat(e)/100):Zr(parseFloat(e))}function Ki(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Ot(e,t,r){return e+(t-e)*r}function ft(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function bn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var yo=new ar(20),ui=null;function or(e,t){ui&&bn(ui,t),ui=yo.put(e,ui||t.slice())}Ee.parse=function(e,t){if(e){t=t||[];var r=yo.get(e);if(r)return bn(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in ua)return bn(t,ua[i]),or(e,t),t;if(i.charAt(0)==="#"){if(i.length===4){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=4095)){ft(t,0,0,0,1);return}return ft(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,1),or(e,t),t}else if(i.length===7){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=16777215)){ft(t,0,0,0,1);return}return ft(t,(n&16711680)>>16,(n&65280)>>8,n&255,1),or(e,t),t}return}var a=i.indexOf("("),o=i.indexOf(")");if(a!==-1&&o+1===i.length){var s=i.substr(0,a),l=i.substr(a+1,o-(a+1)).split(","),h=1;switch(s){case"rgba":if(l.length!==4){ft(t,0,0,0,1);return}h=_r(l.pop());case"rgb":if(l.length!==3){ft(t,0,0,0,1);return}return ft(t,Yi(l[0]),Yi(l[1]),Yi(l[2]),h),or(e,t),t;case"hsla":if(l.length!==4){ft(t,0,0,0,1);return}return l[3]=_r(l[3]),En(l,t),or(e,t),t;case"hsl":if(l.length!==3){ft(t,0,0,0,1);return}return En(l,t),or(e,t),t;default:return}}ft(t,0,0,0,1)}};Ee.parseToFloat=function(e,t){if(t=Ee.parse(e,t),!!t)return t[0]/=255,t[1]/=255,t[2]/=255,t};function En(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=_r(e[1]),n=_r(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ft(t,ct(Ki(o,a,r+1/3)*255),ct(Ki(o,a,r)*255),ct(Ki(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Vs(e){if(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,l,h;if(o===0)l=0,h=0;else{s<.5?h=o/(a+n):h=o/(2-a-n);var u=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-i)/6+o/2)/o;t===a?l=d-f:r===a?l=1/3+u-d:i===a&&(l=2/3+f-u),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,h,s];return e[3]!=null&&c.push(e[3]),c}}Ee.lift=function(e,t){var r=Ee.parse(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0;return Ee.stringify(r,r.length===4?"rgba":"rgb")}};Ee.toHex=function(e){var t=Ee.parse(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)};Ee.fastLerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],l=i-n;return r[0]=ct(Ot(o[0],s[0],l)),r[1]=ct(Ot(o[1],s[1],l)),r[2]=ct(Ot(o[2],s[2],l)),r[3]=Zr(Ot(o[3],s[3],l)),r}};Ee.fastMapToColor=Ee.fastLerp;Ee.lerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=Ee.parse(t[n]),s=Ee.parse(t[a]),l=i-n,h=Ee.stringify([ct(Ot(o[0],s[0],l)),ct(Ot(o[1],s[1],l)),ct(Ot(o[2],s[2],l)),Zr(Ot(o[3],s[3],l))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}};Ee.mapToColor=Ee.lerp;Ee.modifyHSL=function(e,t,r,i){if(e=Ee.parse(e),e)return e=Vs(e),t!=null&&(e[0]=Us(t)),r!=null&&(e[1]=_r(r)),i!=null&&(e[2]=_r(i)),Ee.stringify(En(e),"rgba")};Ee.modifyAlpha=function(e,t){if(e=Ee.parse(e),e&&t!=null)return e[3]=Zr(t),Ee.stringify(e,"rgba")};Ee.stringify=function(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}};var Hs=Ee.parseToFloat,$i={};function fa(e){var t=Object.keys(e);t.sort();for(var r=[],i=0;i<t.length;i++){var n=t[i],a=e[n];a===null?r.push(n):r.push(n+" "+a.toString())}return r.join(`
|
|
2
2
|
`)}function ks(e,t,r){r.sort();for(var i=[],n=0;n<r.length;n++){var a=r[n];i.push(a)}var o=fa(e)+`
|
|
3
3
|
`+fa(t)+`
|
|
4
4
|
`+i.join(`
|
|
@@ -17,9 +17,9 @@ import "element-plus/es/components/select/style/css";
|
|
|
17
17
|
import "element-plus/es/components/option/style/css";
|
|
18
18
|
import { defineComponent as dl, useCssVars as vl, unref as kr, ref as ur, computed as pl, onMounted as ml, nextTick as vn, onBeforeUnmount as gl, watch as pn, openBlock as wi, createElementBlock as mn, createElementVNode as fr, createVNode as Si, withCtx as gn, Fragment as Ca, renderList as Ma, createBlock as _l, createTextVNode as yl, toDisplayString as bi, renderSlot as xl } from "vue";
|
|
19
19
|
import "html2canvas";
|
|
20
|
-
import { d as cr, R as Tl, J as wl, Z as Sl, _ as bl } from "./index-
|
|
20
|
+
import { d as cr, R as Tl, J as wl, Z as Sl, _ as bl } from "./index-B5OsYU5s.js";
|
|
21
21
|
import "element-plus";
|
|
22
|
-
import { E as El } from "./EChartComponentBase-
|
|
22
|
+
import { E as El } from "./EChartComponentBase-cxF_cDzz.js";
|
|
23
23
|
import { i as Al, a as Dl } from "./index-eIsZnzkc.js";
|
|
24
24
|
import { d as Ll, n as Cl, q as Ml, V as Pl, L as Nl, u as ke, a as Rl, O as Ol, Y as vi, S as xt } from "./installCanvasRenderer-oDYkyVFy.js";
|
|
25
25
|
import { M as Ar, cc as Il, f as Tt, o as Pa, f2 as Bl, f3 as Fl, v as qo, R as Yo, g as zl, bY as jn, h as wt, t as Gl, b3 as Ul, b2 as Hl, b5 as Vl, dg as kl, C as Br, m as ve, u as Ut, f4 as Wl, bX as Ko, Z as ki, c as Wi, b as pi, cm as $o, f5 as Qo, a as nn, P as Xl, E as jl, f6 as Zn, dl as sa, aR as Zl, eC as ql, av as Yl, bJ as Kl, bI as wr, ai as Na, T as $l, f7 as Ql, f8 as Jl, f9 as Jo, aT as dt, aS as vt, db as eh, H as th, ag as Ei, br as rh, ce as ih, bb as es, cl as Ra, x as Oa, cy as Ia, i as nh } from "./echarts-Bp7QN4X6.js";
|
|
@@ -35,10 +35,10 @@ import "element-plus/es/components/option/style/css";
|
|
|
35
35
|
import { defineComponent as _e, inject as Ee, ref as A, computed as Oe, watch as W, nextTick as q, onMounted as je, onUnmounted as we, openBlock as Z, createElementBlock as ae, normalizeStyle as ne, createElementVNode as N, toDisplayString as Ne, unref as $, createVNode as H, withCtx as J, Fragment as Ae, renderList as ke, createBlock as Me, createTextVNode as Ve, renderSlot as Le } from "vue";
|
|
36
36
|
import { Download as Te } from "@element-plus/icons-vue";
|
|
37
37
|
import "html2canvas";
|
|
38
|
-
import { R as Ie, J as ze, Z as Re, d as B, _ as Fe } from "./index-
|
|
38
|
+
import { R as Ie, J as ze, Z as Re, d as B, _ as Fe } from "./index-B5OsYU5s.js";
|
|
39
39
|
import "element-plus";
|
|
40
|
-
import { E as Ue } from "./EChartComponentBase-
|
|
41
|
-
import { formatRequest as Pe } from "./request-
|
|
40
|
+
import { E as Ue } from "./EChartComponentBase-cxF_cDzz.js";
|
|
41
|
+
import { formatRequest as Pe } from "./request-l9UtZ26j.js";
|
|
42
42
|
import { A as $e, D as He } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
43
43
|
const Be = { class: "panel-header" }, Ge = { class: "header-left" }, We = { class: "header-title" }, qe = { class: "chart-area" }, Ze = { class: "toolbar" }, Je = ["id"], Xe = {
|
|
44
44
|
DEFAULT_ICON: He,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var J=Object.defineProperty,Q=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols,ee=Object.getPrototypeOf,te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ae=Reflect.get;var q=(d,i,a)=>i in d?J(d,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):d[i]=a,U=(d,i)=>{for(var a in i||(i={}))te.call(i,a)&&q(d,a,i[a]);if(V)for(var a of V(i))oe.call(i,a)&&q(d,a,i[a]);return d},F=(d,i)=>Q(d,Y(i));var K=(d,i,a)=>ae(ee(d),a,i);var G=(d,i,a)=>new Promise((L,m)=>{var j=C=>{try{b(a.next(C))}catch(k){m(k)}},p=C=>{try{b(a.throw(C))}catch(k){m(k)}},b=C=>C.done?L(C.value):Promise.resolve(C.value).then(j,p);b((a=a.apply(d,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("html2canvas");const ne=require("./BaseComponent-
|
|
1
|
+
"use strict";var J=Object.defineProperty,Q=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols,ee=Object.getPrototypeOf,te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ae=Reflect.get;var q=(d,i,a)=>i in d?J(d,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):d[i]=a,U=(d,i)=>{for(var a in i||(i={}))te.call(i,a)&&q(d,a,i[a]);if(V)for(var a of V(i))oe.call(i,a)&&q(d,a,i[a]);return d},F=(d,i)=>Q(d,Y(i));var K=(d,i,a)=>ae(ee(d),a,i);var G=(d,i,a)=>new Promise((L,m)=>{var j=C=>{try{b(a.next(C))}catch(k){m(k)}},p=C=>{try{b(a.throw(C))}catch(k){m(k)}},b=C=>C.done?L(C.value):Promise.resolve(C.value).then(j,p);b((a=a.apply(d,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("html2canvas");const ne=require("./BaseComponent-eihedT_8.cjs"),z=require("./index-CikO6qmH.cjs");require("./index-CJgyJTvc.cjs");const Z=require("./ele-mxa-icon-fgN0MLnh.cjs"),se=require("./echarts-BB8O2KSA.cjs"),le={class:"deep-displacement-chart"},ie={class:"chart-header"},ce={class:"chart-title"},re={class:"chart-subtitle"},de={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"深部位移曲线图",NAME_EN:"Deep Displacement Chart",ORDER:13,PLATFORM:["pc","screen"]},pe={title:{value:"ZK10-深部位移01",type:"string",label:"component.deepDisplacement.title"},depth:{value:152,type:"number",label:"component.deepDisplacement.depth",min:1,max:500},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}},fe=[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth",color:"#4a90d9"}],he=["configPanelId","name","object_id","points_fv","fv","depth_fv","color"],ue=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],me={useAlias:!1,multiObject:!1,source:"mosaic"},ge={DEFAULT:de,OPTIONS:pe,DATA:fe,PARAMS:he,SOURCE:ue,COMMON:me},ve=o.defineComponent(F(U({},ge),{__name:"deepDisplacementChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(d){o.useCssVars(t=>({v93f7bd4a:o.unref(O).bgColor,v4701439a:o.unref(O).textColor}));const i=z.useLinkStore(),a=d,L=o.ref({selectedTimes:[],startDate:"",endDate:""}),m=o.ref(new Map),j=`dispChart_${Date.now()}_${Math.random().toString(36).slice(2,8)}`;let p=null,b=null;const C=["#4a90d9","#67c23a","#e6a23c","#f56c6c","#909399","#00bcd4","#9c27b0","#ff9800","#795548","#607d8b"];class k extends ne.BaseComponent{extractStyles(){var n,s,y,f,g;const{options:e}=this.props.conf;return{title:((n=e==null?void 0:e.title)==null?void 0:n.value)||"ZK10-深部位移01",depth:((s=e==null?void 0:e.depth)==null?void 0:s.value)||152,bgColor:((y=e==null?void 0:e.bgColor)==null?void 0:y.value)||"#ffffff",textColor:((f=e==null?void 0:e.textColor)==null?void 0:f.value)||"#333333",points:((g=e==null?void 0:e.points)==null?void 0:g.value)||30}}getDefaultData(){return[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth",color:"#4a90d9"}]}getMockData(){var y;const e=((y=this.props.conf)==null?void 0:y.data)||this.getDefaultData(),n=["2026-01-15","2026-01-14","2026-01-13","2026-01-12","2026-01-11"],s=new Map;return e.forEach((f,g)=>{const I=new Map;n.forEach((T,h)=>{const l=[],x=(n.length-1-h)*5;for(let r=0;r<=30;r++){const S=-122-r,c=(10+x+g*3)*(1+r*.03);l.push({depth:S,value:c+Math.sin(r*.2+g)*2})}I.set(T,l)}),s.set(f.name,I)}),s}onPreview(){return G(this,null,function*(){const{data:e}=this.props.conf;e.some(s=>s.object_id&&s.fv)?(console.log("[DeepDisplacementChart] 检测到数据绑定,订阅真实数据"),yield K(k.prototype,this,"onPreview").call(this)):(console.log("[DeepDisplacementChart] 未配置数据源,使用模拟数据"),this.getMockData().forEach((y,f)=>m.value.set(f,y)),P())})}setHistoryData(e){var I,T;const{data:n,common:s}=this.props.conf;if(!n||n.length===0||!n.some(h=>h.object_id&&h.fv))return;const f=(s==null?void 0:s.source)||"mosaic";["statistics","calculate"].includes(f)&&(e=z.formatStatisticsResult(e,n));const g=z.handleNullData(e,this.props,"history");if(g){try{m.value.clear();const h=n.find(c=>c.object_id);if(!h)return;const l=n.indexOf(h),x=((I=g.history)==null?void 0:I[l])||[],r=h.points_fv||"points";x.length>0&&Array.isArray((T=x[0])==null?void 0:T[r])?n.forEach(c=>{if(!c.object_id||!c.fv)return;const A=new Map,E=new Map;x.forEach(D=>{const M=(D.time||D.datetime||"").split(" ")[0];E.has(M)||E.set(M,[]),(D[r]||[]).forEach(u=>{var _,R,$;E.get(M).push({depth:(R=(_=u[c.depth_fv])!=null?_:u.depth)!=null?R:0,value:($=u[c.fv])!=null?$:0})})}),E.forEach((D,v)=>{const M=new Map;D.forEach(u=>M.set(u.depth,u.value));const w=Array.from(M.entries()).map(([u,_])=>({depth:u,value:_})).sort((u,_)=>_.depth-u.depth);A.set(v,w)}),m.value.set(c.name,A)}):n.forEach((c,A)=>{var M;if(!c.object_id||!c.fv)return;const E=((M=g.history)==null?void 0:M[A])||[],D=new Map,v=new Map;E.forEach(w=>{var R,$;const _=(w.time||w.datetime||"").split(" ")[0];v.has(_)||v.set(_,[]),v.get(_).push({depth:(R=w[c.depth_fv])!=null?R:0,value:($=w[c.fv])!=null?$:0})}),v.forEach((w,u)=>{D.set(u,w)}),m.value.set(c.name,D)})}catch(h){console.error("[Chart] 解析历史数据失败:",h)}P()}}setSocketData(e){e&&console.log("[DeepDisplacementChart] 收到实时数据:",e)}}const N=new k(a,"deepDisplacementChart");(!a.conf.data||a.conf.data.length===0)&&(a.conf.data=N.getDefaultData()),N.setupLifecycle();const O=N.getStyle(),H=o.computed(()=>{const t=L.value.selectedTimes||[];if(t.length===0)return"";const e=[...t].sort(),n=e[0],s=e[e.length-1];return`${n} ~ ${s} [${t.length}天]`}),B=()=>{var h;const t=O.value,e=L.value,n=((h=a.conf)==null?void 0:h.data)||N.getDefaultData();let s=e.selectedTimes||[];if(m.value.size===0&&N.getMockData().forEach((x,r)=>m.value.set(r,x)),s.length===0&&m.value.size>0){const l=m.value.values().next().value;l&&(s=Array.from(l.keys()))}s=[...s].sort().reverse();const y=[];let f=[],g=0;n.forEach(l=>{const x=m.value.get(l.name);if(!x)return;const r=l.color||C[g%C.length];g++,s.forEach((S,c)=>{const A=x.get(S)||[];if(A.length===0)return;A.forEach(v=>f.push(v.depth));const E=1-c*.15,D=r;y.push({name:`${l.name} (${S})`,type:"line",data:A.map(v=>[v.value,v.depth]),smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:D,width:2,opacity:E},itemStyle:{color:D,opacity:E}})})}),f.length===0&&(f=[-122,-152]);const I=Math.min(...f),T=Math.max(...f);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:l=>{if(!l||l.length===0)return"";let r=`<div style="padding:8px;max-width:280px;">
|
|
2
2
|
<div style="font-weight:600;margin-bottom:6px;">深度: ${l[0].data[1]}m</div>`;return l.forEach(S=>{r+=`<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:${S.color};margin-right:6px;"></span>
|
|
4
4
|
<span style="flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">${S.seriesName}: ${S.data[0].toFixed(3)} mm</span>
|
|
@@ -28,8 +28,8 @@ var X = (r, l, o) => new Promise((L, u) => {
|
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as ct, useCssVars as rt, unref as P, ref as J, computed as W, watch as q, nextTick as B, onMounted as dt, onBeforeUnmount as pt, openBlock as ft, createElementBlock as ht, createElementVNode as z, toDisplayString as K, renderSlot as ut } from "vue";
|
|
30
30
|
import "html2canvas";
|
|
31
|
-
import { B as mt } from "./BaseComponent-
|
|
32
|
-
import { o as gt, R as vt, J as yt, _ as xt } from "./index-
|
|
31
|
+
import { B as mt } from "./BaseComponent-Cs11e0k6.js";
|
|
32
|
+
import { o as gt, R as vt, J as yt, _ as xt } from "./index-B5OsYU5s.js";
|
|
33
33
|
import "./index-eIsZnzkc.js";
|
|
34
34
|
import { A as Dt, D as _t } from "./ele-mxa-icon-CJWttkCK.js";
|
|
35
35
|
import { i as bt } from "./echarts-Bp7QN4X6.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ie=Object.defineProperty,oe=Object.defineProperties;var re=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols,ce=Object.getPrototypeOf,ue=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,de=Reflect.get;var W=(_,y,b)=>y in _?ie(_,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):_[y]=b,A=(_,y)=>{for(var b in y||(y={}))ue.call(y,b)&&W(_,b,y[b]);if(G)for(var b of G(y))pe.call(y,b)&&W(_,b,y[b]);return _},U=(_,y)=>oe(_,re(y));var X=(_,y,b)=>de(ce(_),b,y);var Y=(_,y,b)=>new Promise((S,j)=>{var B=g=>{try{x(b.next(g))}catch(N){j(N)}},V=g=>{try{x(b.throw(g))}catch(N){j(N)}},x=g=>g.done?S(g.value):Promise.resolve(g.value).then(B,V);x((b=b.apply(_,y)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/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 l=require("vue"),he=require("@element-plus/icons-vue");require("html2canvas");const k=require("./index-DoEyCVDU.cjs");require("element-plus");const me=require("./EChartComponentBase-8GSbyY5P.cjs"),fe=require("./request-Dm2cf1Aw.cjs"),Z=require("./ele-lin-icon-Dke_1AmT.cjs"),ve={class:"panel-header"},ye={class:"header-left"},ge={class:"header-title"},be={class:"chart-area"},xe={class:"toolbar"},De=["id"],Ce={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"深部位移图表",NAME_EN:"Deep Displacement Chart",ORDER:1,PLATFORM:["pc","screen"]},Se={title:{value:"深部位移图表",type:"string",label:"component.deepDisplacementChart.title"},dispType:{value:"cumulative",type:"select",label:"component.deepDisplacementChart.dispType",options:[{label:"component.deepDisplacementChart.dispTypeOptions.cumulative",value:"cumulative"},{label:"component.deepDisplacementChart.dispTypeOptions.relative",value:"relative"}]},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},xAxisName:{value:"位移量(mm)",type:"string",label:"component.deepDisplacementChart.xAxisName"},yAxisLeftName:{value:"深度(m)",type:"string",label:"component.deepDisplacementChart.yAxisLeftName"},yAxisRightName:{value:"高程(m)",type:"string",label:"component.deepDisplacementChart.yAxisRightName"},baseElevation:{value:688,type:"number",label:"基准高程(m)"},jumpUrl:{value:"",type:"string",label:"component.deepDisplacementChart.jumpUrl"},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"}}},Ee=[{name:"X位移",fvPrefix:"x",separator:"_",minDepth:0,maxDepth:200,step:1,color:"#4a90d9",object_id:""},{name:"Y位移",fvPrefix:"y",separator:"_",minDepth:0,maxDepth:200,step:1,color:"#f5a623",object_id:""},{name:"Z位移",fvPrefix:"z",separator:"_",minDepth:0,maxDepth:200,step:1,color:"#7ed321",object_id:""}],_e=["name","fv","fvPrefix","separator","minDepth","maxDepth","step","color","object_id"],Oe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Ne={useAlias:!1,multiObject:!0,source:"mosaic"},je={DEFAULT:Ce,OPTIONS:Se,DATA:Ee,PARAMS:_e,SOURCE:Oe,COMMON:Ne},we=l.defineComponent(U(A({},je),{__name:"deepDisplacementChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(_){const y=_;class b extends me.EChartComponentBase{constructor(){super(...arguments),this.currentObjectId="",this.chartData=new Map,this.timeSeriesData=new Map,this.latestValues=new Map}getRecordValue(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:e!=null&&e.event?this.extractDataValue(e,t):e==null?void 0:e[t]}getDepthValue(e){const t=Number(e);return Number.isFinite(t)?t:null}extractStyles(){var a,o,p,m,f,h,n,d,r,c,v;const{options:e}=this.props.conf,t=((a=e==null?void 0:e.linkChannel)==null?void 0:a.value)||"deepDisplacement",i=((o=e==null?void 0:e.customChannel)==null?void 0:o.value)||"",s=t==="custom"&&i?i:t;return{title:((p=e==null?void 0:e.title)==null?void 0:p.value)||"深部位移图表",dispType:((m=e==null?void 0:e.dispType)==null?void 0:m.value)||"cumulative",bgColor:((f=e==null?void 0:e.bgColor)==null?void 0:f.value)||"#ffffff",textColor:((h=e==null?void 0:e.textColor)==null?void 0:h.value)||"#333333",xAxisName:((n=e==null?void 0:e.xAxisName)==null?void 0:n.value)||"位移量(mm)",yAxisLeftName:((d=e==null?void 0:e.yAxisLeftName)==null?void 0:d.value)||"深度(m)",yAxisRightName:((r=e==null?void 0:e.yAxisRightName)==null?void 0:r.value)||"高程(m)",baseElevation:((c=e==null?void 0:e.baseElevation)==null?void 0:c.value)||688,jumpUrl:((v=e==null?void 0:e.jumpUrl)==null?void 0:v.value)||"",linkChannel:s}}getDefaultData(){return[{name:"合位移",fv:"disp_130",depth:-130,color:"#4a90d9",object_id:""},{name:"合位移",fv:"disp_140",depth:-140,color:"#4a90d9",object_id:""}]}initHistory(){return Y(this,null,function*(){const e=this.props.conf;if(!e)return[];e.options||(e.options={});const t=e.options.points,i=Object.prototype.hasOwnProperty.call(e.options,"points");(!t||Number(t)<24)&&(e.options.points=24);try{return yield X(b.prototype,this,"initHistory").call(this)}finally{i?e.options.points=t:delete e.options.points}})}setHistoryData(e){var o,p,m;const{data:t,common:i}=this.props.conf;if(!t||t.length===0)return;const s=(i==null?void 0:i.source)||"mosaic";["statistics","calculate"].includes(s)&&(e=k.formatStatisticsResult(e,t));const a=k.handleNullData(e,this.props,"history");if(a){console.log("[DeepDisplacementChart] history raw sample:",((p=(o=a.history)==null?void 0:o[0])==null?void 0:p[0])||((m=a.history)==null?void 0:m[0])||a.history);try{if(this.chartData.clear(),this.timeSeriesData.clear(),g.value=[],N.value=[],!a.history||!Array.isArray(a.history))return;const f=[...new Set(t.map(r=>{var c;return String((c=r.object_id)!=null?c:"")}))],h=Array.isArray(a.history)?a.history:[],n=r=>{const c=t.map((C,D)=>D).filter(C=>{var D,w;return String((w=(D=t[C])==null?void 0:D.object_id)!=null?w:"")===r});if(!c.length)return[];const v=c[0],E=Array.isArray(h[v])?h[v]:[],O=[];return E.forEach((C,D)=>{const w=C&&typeof C=="object"?A({},C):{};c.forEach(R=>{var $,H;const q=($=h[R])==null?void 0:$[D],F=(H=t[R])==null?void 0:H.fv;F&&q&&typeof q=="object"&&Object.prototype.hasOwnProperty.call(q,F)&&(w[F]=q[F])}),O.push(w)}),O},d=f.map(r=>n(r));if(this.processMultiObjectHistory(d,t,f),T(),!x.value&&g.value.length&&(x.value=g.value[g.value.length-1]),console.log("[DeepDisplacementChart] 选中时间:",x.value),console.log("[DeepDisplacementChart] timeSeriesData 中的时间点:",Array.from(this.timeSeriesData.keys())),x.value&&this.timeSeriesData.has(x.value)){const r=this.timeSeriesData.get(x.value);console.log("[DeepDisplacementChart] 选中时间的数据,线:",Array.from((r==null?void 0:r.keys())||[])),this.chartData=new Map(r||new Map)}console.log("[DeepDisplacementChart] 最终 chartData 中的线:",Array.from(this.chartData.keys())),I.value++}catch(f){console.error("[DeepDisplacementChart] 解析历史数据失败:",f)}}}processHistoryRecords(e,t){e.forEach(i=>{var o;const s=(o=i==null?void 0:i.time)!=null?o:i==null?void 0:i.datetime;if(!s)return;const a=new Map;if(t.forEach(p=>{const m=p.fv,f=p.depth,h=p.name||"未命名",n=this.getRecordValue(i,m),d=Number(n);if(n!=null&&Number.isFinite(f)){const c=(this.extractStyles().baseElevation||688)+f;a.has(h)||a.set(h,[]),a.get(h).push({depth:f,elevation:c,value:Number.isFinite(d)?d:0})}}),a.size>0){const p=new Map;a.forEach((m,f)=>{m.sort((h,n)=>n.depth-h.depth),p.set(f,m)}),this.timeSeriesData.set(String(s),p),L(s)}})}processMultiObjectHistory(e,t,i){const s=e[0]||[];s.length&&s.forEach((a,o)=>{var f;const p=(f=a==null?void 0:a.time)!=null?f:a==null?void 0:a.datetime;if(!p)return;const m=new Map;if(t.forEach(h=>{const n=h.fv,d=h.depth,r=h.name||"未命名",c=h.object_id,v=i.indexOf(c);if(v===-1||!e[v])return;const E=e[v];if(!E[o])return;const O=E[o],C=this.getRecordValue(O,n),D=Number(C);if(C!=null&&Number.isFinite(d)){const R=(this.extractStyles().baseElevation||688)+d;m.has(r)||m.set(r,[]),m.get(r).push({depth:d,elevation:R,value:D})}}),m.size>0){const h=new Map;m.forEach((n,d)=>{n.sort((r,c)=>c.depth-r.depth),h.set(d,n)}),this.timeSeriesData.set(String(p),h),L(p)}})}setSocketData(e){var i,s;if(!e)return;const{data:t}=this.props.conf;if(!(!t||t.length===0))try{const a=(s=(i=e==null?void 0:e.time)!=null?i:e==null?void 0:e.datetime)!=null?s:Date.now(),o=new Map;console.log("[DeepDisplacementChart] realtime raw:",e),t.forEach(m=>{const f=m.fv,h=this.getDepthValue(m.depth),n=m.name||"未命名",d=this.extractDataValue(e,f);console.log("[DeepDisplacementChart] realtime fv:",f,"rawValue:",d),d!=null&&Number.isFinite(Number(d))&&this.latestValues.set(f,Number(d));const r=this.latestValues.get(f);if(r!==void 0&&h!==null){const v=(this.extractStyles().baseElevation||688)+h;o.has(n)||o.set(n,[]),o.get(n).push({depth:h,elevation:v,value:r})}});const p=new Map;o.forEach((m,f)=>{m.sort((h,n)=>n.depth-h.depth),p.set(f,m)}),p.size>0&&(console.log("[DeepDisplacementChart] realtime series keys:",Array.from(p.keys())),console.log("[DeepDisplacementChart] realtime series data:",Array.from(p.entries())),this.timeSeriesData.set(String(a),p),L(a),this.chartData=p,I.value++)}catch(a){console.error("[DeepDisplacementChart] 解析实时数据失败:",a)}}setCurrentObjectId(e){this.currentObjectId=e}getCurrentObjectId(){return this.currentObjectId}getChartOption(){var r;const e=this.extractStyles(),t=((r=this.props.conf)==null?void 0:r.data)||[],i=x.value;i&&this.timeSeriesData.has(i)&&(this.chartData=new Map(this.timeSeriesData.get(i)||new Map));const s=[];let a=[],o=[];this.chartData.forEach((c,v)=>{if(c.length===0)return;c.forEach(D=>{D.depth!==void 0&&a.push(D.depth),D.elevation!==void 0&&o.push(D.elevation)});const E=[...c].sort((D,w)=>(w.depth||0)-(D.depth||0)),O=t.find(D=>D.name===v),C=(O==null?void 0:O.color)||"#4a90d9";s.push({name:v,type:"line",data:E.map(D=>[D.value||0,D.depth||0]),smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:C,width:2},itemStyle:{color:C,borderColor:"#fff",borderWidth:2},yAxisIndex:0})}),s.length===0&&this.getMockData().forEach(v=>{s.push({name:v.name,type:"line",data:v.data,smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:v.color,width:2},itemStyle:{color:v.color,borderColor:"#fff",borderWidth:2},yAxisIndex:0}),v.data.forEach(E=>a.push(E[1]))});const p=a.length>0?Math.min(...a):-80,m=a.length>0?Math.max(...a):0,f=o.length>0?Math.min(...o):810,h=o.length>0?Math.max(...o):890,n=h||890,d=c=>n+c;return{grid:{left:80,right:80,top:36,bottom:88},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:c=>{if(!c||c.length===0)return"";const v=c[0].data[1],E=d(v);let O=`<div style="padding:8px;max-width:300px;">
|
|
1
|
+
"use strict";var ie=Object.defineProperty,oe=Object.defineProperties;var re=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols,ce=Object.getPrototypeOf,ue=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,de=Reflect.get;var W=(_,y,b)=>y in _?ie(_,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):_[y]=b,A=(_,y)=>{for(var b in y||(y={}))ue.call(y,b)&&W(_,b,y[b]);if(G)for(var b of G(y))pe.call(y,b)&&W(_,b,y[b]);return _},U=(_,y)=>oe(_,re(y));var X=(_,y,b)=>de(ce(_),b,y);var Y=(_,y,b)=>new Promise((S,j)=>{var B=g=>{try{x(b.next(g))}catch(N){j(N)}},V=g=>{try{x(b.throw(g))}catch(N){j(N)}},x=g=>g.done?S(g.value):Promise.resolve(g.value).then(B,V);x((b=b.apply(_,y)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/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 l=require("vue"),he=require("@element-plus/icons-vue");require("html2canvas");const k=require("./index-CikO6qmH.cjs");require("element-plus");const me=require("./EChartComponentBase-Cc-8Dgc8.cjs"),fe=require("./request-D0THUthG.cjs"),Z=require("./ele-lin-icon-Dke_1AmT.cjs"),ve={class:"panel-header"},ye={class:"header-left"},ge={class:"header-title"},be={class:"chart-area"},xe={class:"toolbar"},De=["id"],Ce={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"深部位移图表",NAME_EN:"Deep Displacement Chart",ORDER:1,PLATFORM:["pc","screen"]},Se={title:{value:"深部位移图表",type:"string",label:"component.deepDisplacementChart.title"},dispType:{value:"cumulative",type:"select",label:"component.deepDisplacementChart.dispType",options:[{label:"component.deepDisplacementChart.dispTypeOptions.cumulative",value:"cumulative"},{label:"component.deepDisplacementChart.dispTypeOptions.relative",value:"relative"}]},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},xAxisName:{value:"位移量(mm)",type:"string",label:"component.deepDisplacementChart.xAxisName"},yAxisLeftName:{value:"深度(m)",type:"string",label:"component.deepDisplacementChart.yAxisLeftName"},yAxisRightName:{value:"高程(m)",type:"string",label:"component.deepDisplacementChart.yAxisRightName"},baseElevation:{value:688,type:"number",label:"基准高程(m)"},jumpUrl:{value:"",type:"string",label:"component.deepDisplacementChart.jumpUrl"},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"}}},Ee=[{name:"X位移",fvPrefix:"x",separator:"_",minDepth:0,maxDepth:200,step:1,color:"#4a90d9",object_id:""},{name:"Y位移",fvPrefix:"y",separator:"_",minDepth:0,maxDepth:200,step:1,color:"#f5a623",object_id:""},{name:"Z位移",fvPrefix:"z",separator:"_",minDepth:0,maxDepth:200,step:1,color:"#7ed321",object_id:""}],_e=["name","fv","fvPrefix","separator","minDepth","maxDepth","step","color","object_id"],Oe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Ne={useAlias:!1,multiObject:!0,source:"mosaic"},je={DEFAULT:Ce,OPTIONS:Se,DATA:Ee,PARAMS:_e,SOURCE:Oe,COMMON:Ne},we=l.defineComponent(U(A({},je),{__name:"deepDisplacementChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(_){const y=_;class b extends me.EChartComponentBase{constructor(){super(...arguments),this.currentObjectId="",this.chartData=new Map,this.timeSeriesData=new Map,this.latestValues=new Map}getRecordValue(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:e!=null&&e.event?this.extractDataValue(e,t):e==null?void 0:e[t]}getDepthValue(e){const t=Number(e);return Number.isFinite(t)?t:null}extractStyles(){var a,o,p,m,f,h,n,d,r,c,v;const{options:e}=this.props.conf,t=((a=e==null?void 0:e.linkChannel)==null?void 0:a.value)||"deepDisplacement",i=((o=e==null?void 0:e.customChannel)==null?void 0:o.value)||"",s=t==="custom"&&i?i:t;return{title:((p=e==null?void 0:e.title)==null?void 0:p.value)||"深部位移图表",dispType:((m=e==null?void 0:e.dispType)==null?void 0:m.value)||"cumulative",bgColor:((f=e==null?void 0:e.bgColor)==null?void 0:f.value)||"#ffffff",textColor:((h=e==null?void 0:e.textColor)==null?void 0:h.value)||"#333333",xAxisName:((n=e==null?void 0:e.xAxisName)==null?void 0:n.value)||"位移量(mm)",yAxisLeftName:((d=e==null?void 0:e.yAxisLeftName)==null?void 0:d.value)||"深度(m)",yAxisRightName:((r=e==null?void 0:e.yAxisRightName)==null?void 0:r.value)||"高程(m)",baseElevation:((c=e==null?void 0:e.baseElevation)==null?void 0:c.value)||688,jumpUrl:((v=e==null?void 0:e.jumpUrl)==null?void 0:v.value)||"",linkChannel:s}}getDefaultData(){return[{name:"合位移",fv:"disp_130",depth:-130,color:"#4a90d9",object_id:""},{name:"合位移",fv:"disp_140",depth:-140,color:"#4a90d9",object_id:""}]}initHistory(){return Y(this,null,function*(){const e=this.props.conf;if(!e)return[];e.options||(e.options={});const t=e.options.points,i=Object.prototype.hasOwnProperty.call(e.options,"points");(!t||Number(t)<24)&&(e.options.points=24);try{return yield X(b.prototype,this,"initHistory").call(this)}finally{i?e.options.points=t:delete e.options.points}})}setHistoryData(e){var o,p,m;const{data:t,common:i}=this.props.conf;if(!t||t.length===0)return;const s=(i==null?void 0:i.source)||"mosaic";["statistics","calculate"].includes(s)&&(e=k.formatStatisticsResult(e,t));const a=k.handleNullData(e,this.props,"history");if(a){console.log("[DeepDisplacementChart] history raw sample:",((p=(o=a.history)==null?void 0:o[0])==null?void 0:p[0])||((m=a.history)==null?void 0:m[0])||a.history);try{if(this.chartData.clear(),this.timeSeriesData.clear(),g.value=[],N.value=[],!a.history||!Array.isArray(a.history))return;const f=[...new Set(t.map(r=>{var c;return String((c=r.object_id)!=null?c:"")}))],h=Array.isArray(a.history)?a.history:[],n=r=>{const c=t.map((C,D)=>D).filter(C=>{var D,w;return String((w=(D=t[C])==null?void 0:D.object_id)!=null?w:"")===r});if(!c.length)return[];const v=c[0],E=Array.isArray(h[v])?h[v]:[],O=[];return E.forEach((C,D)=>{const w=C&&typeof C=="object"?A({},C):{};c.forEach(R=>{var $,H;const q=($=h[R])==null?void 0:$[D],F=(H=t[R])==null?void 0:H.fv;F&&q&&typeof q=="object"&&Object.prototype.hasOwnProperty.call(q,F)&&(w[F]=q[F])}),O.push(w)}),O},d=f.map(r=>n(r));if(this.processMultiObjectHistory(d,t,f),T(),!x.value&&g.value.length&&(x.value=g.value[g.value.length-1]),console.log("[DeepDisplacementChart] 选中时间:",x.value),console.log("[DeepDisplacementChart] timeSeriesData 中的时间点:",Array.from(this.timeSeriesData.keys())),x.value&&this.timeSeriesData.has(x.value)){const r=this.timeSeriesData.get(x.value);console.log("[DeepDisplacementChart] 选中时间的数据,线:",Array.from((r==null?void 0:r.keys())||[])),this.chartData=new Map(r||new Map)}console.log("[DeepDisplacementChart] 最终 chartData 中的线:",Array.from(this.chartData.keys())),I.value++}catch(f){console.error("[DeepDisplacementChart] 解析历史数据失败:",f)}}}processHistoryRecords(e,t){e.forEach(i=>{var o;const s=(o=i==null?void 0:i.time)!=null?o:i==null?void 0:i.datetime;if(!s)return;const a=new Map;if(t.forEach(p=>{const m=p.fv,f=p.depth,h=p.name||"未命名",n=this.getRecordValue(i,m),d=Number(n);if(n!=null&&Number.isFinite(f)){const c=(this.extractStyles().baseElevation||688)+f;a.has(h)||a.set(h,[]),a.get(h).push({depth:f,elevation:c,value:Number.isFinite(d)?d:0})}}),a.size>0){const p=new Map;a.forEach((m,f)=>{m.sort((h,n)=>n.depth-h.depth),p.set(f,m)}),this.timeSeriesData.set(String(s),p),L(s)}})}processMultiObjectHistory(e,t,i){const s=e[0]||[];s.length&&s.forEach((a,o)=>{var f;const p=(f=a==null?void 0:a.time)!=null?f:a==null?void 0:a.datetime;if(!p)return;const m=new Map;if(t.forEach(h=>{const n=h.fv,d=h.depth,r=h.name||"未命名",c=h.object_id,v=i.indexOf(c);if(v===-1||!e[v])return;const E=e[v];if(!E[o])return;const O=E[o],C=this.getRecordValue(O,n),D=Number(C);if(C!=null&&Number.isFinite(d)){const R=(this.extractStyles().baseElevation||688)+d;m.has(r)||m.set(r,[]),m.get(r).push({depth:d,elevation:R,value:D})}}),m.size>0){const h=new Map;m.forEach((n,d)=>{n.sort((r,c)=>c.depth-r.depth),h.set(d,n)}),this.timeSeriesData.set(String(p),h),L(p)}})}setSocketData(e){var i,s;if(!e)return;const{data:t}=this.props.conf;if(!(!t||t.length===0))try{const a=(s=(i=e==null?void 0:e.time)!=null?i:e==null?void 0:e.datetime)!=null?s:Date.now(),o=new Map;console.log("[DeepDisplacementChart] realtime raw:",e),t.forEach(m=>{const f=m.fv,h=this.getDepthValue(m.depth),n=m.name||"未命名",d=this.extractDataValue(e,f);console.log("[DeepDisplacementChart] realtime fv:",f,"rawValue:",d),d!=null&&Number.isFinite(Number(d))&&this.latestValues.set(f,Number(d));const r=this.latestValues.get(f);if(r!==void 0&&h!==null){const v=(this.extractStyles().baseElevation||688)+h;o.has(n)||o.set(n,[]),o.get(n).push({depth:h,elevation:v,value:r})}});const p=new Map;o.forEach((m,f)=>{m.sort((h,n)=>n.depth-h.depth),p.set(f,m)}),p.size>0&&(console.log("[DeepDisplacementChart] realtime series keys:",Array.from(p.keys())),console.log("[DeepDisplacementChart] realtime series data:",Array.from(p.entries())),this.timeSeriesData.set(String(a),p),L(a),this.chartData=p,I.value++)}catch(a){console.error("[DeepDisplacementChart] 解析实时数据失败:",a)}}setCurrentObjectId(e){this.currentObjectId=e}getCurrentObjectId(){return this.currentObjectId}getChartOption(){var r;const e=this.extractStyles(),t=((r=this.props.conf)==null?void 0:r.data)||[],i=x.value;i&&this.timeSeriesData.has(i)&&(this.chartData=new Map(this.timeSeriesData.get(i)||new Map));const s=[];let a=[],o=[];this.chartData.forEach((c,v)=>{if(c.length===0)return;c.forEach(D=>{D.depth!==void 0&&a.push(D.depth),D.elevation!==void 0&&o.push(D.elevation)});const E=[...c].sort((D,w)=>(w.depth||0)-(D.depth||0)),O=t.find(D=>D.name===v),C=(O==null?void 0:O.color)||"#4a90d9";s.push({name:v,type:"line",data:E.map(D=>[D.value||0,D.depth||0]),smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:C,width:2},itemStyle:{color:C,borderColor:"#fff",borderWidth:2},yAxisIndex:0})}),s.length===0&&this.getMockData().forEach(v=>{s.push({name:v.name,type:"line",data:v.data,smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:v.color,width:2},itemStyle:{color:v.color,borderColor:"#fff",borderWidth:2},yAxisIndex:0}),v.data.forEach(E=>a.push(E[1]))});const p=a.length>0?Math.min(...a):-80,m=a.length>0?Math.max(...a):0,f=o.length>0?Math.min(...o):810,h=o.length>0?Math.max(...o):890,n=h||890,d=c=>n+c;return{grid:{left:80,right:80,top:36,bottom:88},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:c=>{if(!c||c.length===0)return"";const v=c[0].data[1],E=d(v);let O=`<div style="padding:8px;max-width:300px;">
|
|
2
2
|
<div style="font-weight:600;margin-bottom:6px;">深度: ${v}m</div>
|
|
3
3
|
<div style="color:#666;margin-bottom:6px;">高程: ${E.toFixed(2)}m</div>`;return c.forEach(C=>{O+=`<div style="display:flex;align-items:center;margin:2px 0;">
|
|
4
4
|
<span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:${C.color};margin-right:6px;"></span>
|
|
@@ -16,7 +16,7 @@ import "element-plus/es/components/select/style/css";
|
|
|
16
16
|
import "element-plus/es/components/option/style/css";
|
|
17
17
|
import "element-plus/es/components/button/style/css";
|
|
18
18
|
import { defineComponent as le, useCssVars as ae, ref as w, computed as I, watch as A, nextTick as j, onMounted as ne, onBeforeUnmount as ie, openBlock as V, createElementBlock as E, createElementVNode as s, toDisplayString as h, createVNode as L, withCtx as B, createTextVNode as se, Fragment as re, renderList as de, createCommentVNode as ce, renderSlot as me } from "vue";
|
|
19
|
-
import { o as pe, d as ue, _ as fe } from "./index-
|
|
19
|
+
import { o as pe, d as ue, _ as fe } from "./index-B5OsYU5s.js";
|
|
20
20
|
import "./index-eIsZnzkc.js";
|
|
21
21
|
import { A as ve, D as xe } from "./ele-gridview-icon-cSd1oIDi.js";
|
|
22
22
|
import { i as ge } from "./echarts-Bp7QN4X6.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Y=Object.defineProperty,j=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var O=(d,i,s)=>i in d?Y(d,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):d[i]=s,P=(d,i)=>{for(var s in i||(i={}))X.call(i,s)&&O(d,s,i[s]);if(L)for(var s of L(i))Z.call(i,s)&&O(d,s,i[s]);return d},q=(d,i)=>j(d,F(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/button/style/css");const e=require("vue"),V=require("./index-
|
|
1
|
+
"use strict";var Y=Object.defineProperty,j=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var O=(d,i,s)=>i in d?Y(d,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):d[i]=s,P=(d,i)=>{for(var s in i||(i={}))X.call(i,s)&&O(d,s,i[s]);if(L)for(var s of L(i))Z.call(i,s)&&O(d,s,i[s]);return d},q=(d,i)=>j(d,F(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/button/style/css");const e=require("vue"),V=require("./index-CikO6qmH.cjs");require("./index-CJgyJTvc.cjs");const T=require("./ele-gridview-icon-D3GcssP6.cjs"),H=require("./echarts-BB8O2KSA.cjs"),W={class:"deep-displacement-view"},G={class:"view-toolbar"},J={class:"time-display"},K={class:"view-header"},Q={class:"view-title"},ee={class:"view-time"},te={class:"chart-container"},oe={key:0,class:"no-data"},le={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"深部位移三视图",NAME_EN:"Deep Displacement View",ORDER:12,PLATFORM:["pc","screen"]},ae={title:{value:"深部位移三视图",type:"string",label:"component.deepDisplacement.title"},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},lineColor:{value:"#4a90d9",type:"color",label:"component.deepDisplacement.lineColor"},gridColor:{value:"#e5e5e5",type:"color",label:"component.deepDisplacement.gridColor"},pointColor:{value:"#4a90d9",type:"color",label:"component.deepDisplacement.pointColor"}},ne=[{configPanelId:""}],ie=["configPanelId"],re=[],se={useAlias:!1,multiObject:!1,source:""},ce={DEFAULT:le,OPTIONS:ae,DATA:ne,PARAMS:ie,SOURCE:re,COMMON:se},de=e.defineComponent(q(P({},ce),{__name:"deepDisplacementView",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(d){e.useCssVars(t=>({v5fe08aba:u.value.bgColor,bbec750a:u.value.textColor,v74d3ff14:u.value.lineColor}));const i=V.useLinkStore(),s=d,R=[{label:"俯视图",value:"top"},{label:"主视图",value:"front"},{label:"侧视图",value:"side"}],M={top:"俯视图",front:"主视图",side:"侧视图"},f=e.ref("top"),b=e.ref(""),z=e.computed(()=>V.dayjs().format("YYYY-MM-DD HH:mm:ss")),N=`deepDisplacementView_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,v=e.ref([]),_=e.computed(()=>v.value&&v.value.length>0);let c=null,g=null;const u=e.computed(()=>{var l,a,m,r,p,x,y;const{options:t,data:o}=s.conf||{};return{title:((l=t==null?void 0:t.title)==null?void 0:l.value)||"深部位移三视图",configPanelId:((a=o==null?void 0:o[0])==null?void 0:a.configPanelId)||"",bgColor:((m=t==null?void 0:t.bgColor)==null?void 0:m.value)||"#ffffff",textColor:((r=t==null?void 0:t.textColor)==null?void 0:r.value)||"#333333",lineColor:((p=t==null?void 0:t.lineColor)==null?void 0:p.value)||"#4a90d9",gridColor:((x=t==null?void 0:t.gridColor)==null?void 0:x.value)||"#e5e5e5",pointColor:((y=t==null?void 0:t.pointColor)==null?void 0:y.value)||"#4a90d9"}}),B=t=>{const o=v.value;if(!o||o.length===0)return{};const l=u.value;let a=[],m=[],r="",p="";t==="front"?(a=o.map(n=>n.x),m=o.map(n=>n.depth),r="X (mm)",p="Z (mm)"):t==="side"?(a=o.map(n=>n.y),m=o.map(n=>n.depth),r="Y (mm)",p="Z (mm)"):(a=o.map(n=>n.x),m=o.map(n=>n.y),r="X (mm)",p="Y (mm)");const x=Math.min(...a),y=Math.max(...a),C=Math.min(...m),I=Math.max(...m),A=Math.max(Math.abs(x),Math.abs(y),15e3),k=t==="top"?Math.max(Math.abs(C),Math.abs(I),15e3):Math.abs(C-I)*1.1;return{grid:{left:60,right:50,top:20,bottom:60},tooltip:{trigger:"item",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:n=>{const S=n.dataIndex,h=o[S];return`<div style="padding: 8px;">
|
|
2
2
|
<div style="font-weight: 600; margin-bottom: 6px;">深度: ${h.depth}m</div>
|
|
3
3
|
<div style="color: #666; line-height: 1.8;">
|
|
4
4
|
<div>高程: ${h.elevation}m</div>
|
package/dist/{deepNodeTemperatureChart-BswYkP9V.cjs → deepNodeTemperatureChart-CRshTNQb.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var oe=Object.defineProperty,se=Object.defineProperties;var ae=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable;var U=(p,i,f)=>i in p?oe(p,i,{enumerable:!0,configurable:!0,writable:!0,value:f}):p[i]=f,G=(p,i)=>{for(var f in i||(i={}))ie.call(i,f)&&U(p,f,i[f]);if(P)for(var f of P(i))re.call(i,f)&&U(p,f,i[f]);return p},K=(p,i)=>se(p,ae(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=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"),ce=require("@element-plus/icons-vue"),V=require("./index-DoEyCVDU.cjs");require("element-plus");const ue=require("./EChartComponentBase-8GSbyY5P.cjs"),he=require("./titleStyle-NSnz6cUg.cjs"),W=require("./ele-lin-icon-Dke_1AmT.cjs"),R=require("./installCanvasRenderer-CyhM1Qpl.cjs"),de=require("./install-C8buXQPI.cjs"),pe=require("./install-CltTFs4e.cjs"),fe=require("./install-CYwVETsi.cjs"),me={class:"mix-body"},ge={class:"toolbar"},ve=["id"],Ce={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"节点温度图",NAME_EN:"DeepNodeTemperatureChart",ORDER:19,PLATFORM:["pc","screen"]},Se={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:35,left:50,right:30,xName:{value:"时间",type:"string",label:"X轴名称"},yName:{value:"温度(℃)",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"}}},X=[{name:"-130m",fv:"temp_130",depth:-130,color:"#5470c6",object_id:""},{name:"-140m",fv:"temp_140",depth:-140,color:"#91cc75",object_id:""}],be=["name","fv","depth","color","object_id"],Ne=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Oe={useAlias:!1,multiObject:!0,source:"mosaic"},ke={DEFAULT:Ce,OPTIONS:Se,DATA:X,PARAMS:be,SOURCE:Ne,COMMON:Oe},ye=o.defineComponent(K(G({},ke),{__name:"deepNodeTemperatureChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){R.use([de.install,R.install,pe.install,R.install$1,fe.install]);const i=p,f=V.useLinkStore(),d=o.ref(""),x=o.ref([]),k=o.ref(new Map);class Y extends ue.EChartComponentBase{extractStyles(){const n=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),l=n==="custom"&&t?t:n;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",40),bottom:this.getOptionValue("bottom",35),left:this.getOptionValue("left",50),right:this.getOptionValue("right",30),xName:this.getOptionValue("xName","时间"),yName:this.getOptionValue("yName","温度(℃)"),linkChannel:l}}init(){var n;this.Style.value=this.extractStyles(),this.applyTheme(),(n=this.props.conf.data)!=null&&n.length||(this.props.conf.data=X),o.nextTick(()=>this.initChart())}setHistoryData(n){M(n)}setSocketData(n){n&&M(n)}onLinkEvent(n){F(n)}getChartOption(){var t;const n=((t=i.conf)==null?void 0:t.data)||[];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:8,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"axis"},xAxis:{type:"category",name:this.Style.value.xName,data:L.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize}},yAxis:{type:"value",name:this.Style.value.yName,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:n.map((l,a)=>({name:(l==null?void 0:l.name)||`节点${a+1}`,type:"line",smooth:!0,data:Z(l==null?void 0:l.depth),lineStyle:{color:(l==null?void 0:l.color)||D[a%D.length],width:2},itemStyle:{color:(l==null?void 0:l.color)||D[a%D.length]}}))}}}const C=new Y(i,"deepNodeTemperatureChart"),J=C.getEchartId();C.setupLifecycle();const T=C.getStyle(),Q=o.computed(()=>he.generateTitleStyle(i.conf.options)),S=o.ref([]),D=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272"],L=o.computed(()=>{if(d.value&&k.value.has(d.value)){const n=k.value.get(d.value)||[],t=new Set;return n.forEach(l=>t.add(l.t)),Array.from(t)}const e=new Set;return S.value.forEach(n=>e.add(n.t)),Array.from(e)}),Z=e=>{const n=Number(e),t=new Map;return(d.value&&k.value.has(d.value)?k.value.get(d.value)||[]:S.value).forEach(a=>{Math.abs(a.depth-n)<.1&&t.set(a.t,a.temp)}),L.value.map(a=>{var s;return(s=t.get(a))!=null?s:null})},N=()=>{o.nextTick(()=>{const e=C.getChartInstance();e&&e.setOption(C.getChartOption(),!0)})},ee=()=>N(),te=()=>{const e=C.getChartInstance();if(!e)return;const n=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t=document.createElement("a");t.href=n,t.download=`node-temperature-${d.value||Date.now()}.png`,t.click()},z=()=>{var l,a,s;const e=((l=i.conf)==null?void 0:l.options)||{},n=((a=e==null?void 0:e.linkChannel)==null?void 0:a.value)||T.value.linkChannel||"deepDisplacement",t=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return n==="custom"&&t?t:n},ne=e=>{var a,s,u;const n=((a=i.conf)==null?void 0:a.data)||[],t=[];if(Array.isArray(e==null?void 0:e.data))return e.data.forEach((c,b)=>{var r,O;const v=String((O=(r=c==null?void 0:c.time)!=null?r:c==null?void 0:c.datetime)!=null?O:b);n.forEach(E=>{const A=E.fv,m=E.depth,h=Number(c==null?void 0:c[A]);Number.isFinite(m)&&Number.isFinite(h)&&t.push({t:v,depth:m,temp:h})})}),t;const l=String((u=(s=e==null?void 0:e.time)!=null?s:e==null?void 0:e.datetime)!=null?u:Date.now());return n.forEach(c=>{const b=c.fv,v=c.depth,r=Number(e==null?void 0:e[b]);Number.isFinite(v)&&Number.isFinite(r)&&t.push({t:l,depth:v,temp:r})}),t},F=e=>{var c,b,v;if(i.mode==="edit"||!e||!e.payload)return;const n=z();if((c=e.topic)!=null&&c.channel&&n&&e.topic.channel!==n||!f.shouldHandle(e,"deepNodeTemperatureChart"))return;const t=e.payload;if((t==null?void 0:t.type)==="filter"){const r=t.timeRange||t.dateRange||t.timeRangeValue;if((b=t.selectedTimes)!=null&&b.length){d.value=String(t.selectedTimes[t.selectedTimes.length-1]),N();return}if(Array.isArray(r)&&r.length){d.value=String(r[r.length-1]),N();return}if(r!=null&&r.endDate||r!=null&&r.end){d.value=String(r.endDate||r.end),N();return}return}const l=i.conf,a=(l==null?void 0:l.data)||[],s=(l==null?void 0:l.common)||{};if(a.length>0&&!(s!=null&&s.multiObject)){const r=V.getObjectId(s,s==null?void 0:s.useAlias,i.uid)||((v=a[0])==null?void 0:v.object_id),O=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(r&&O&&String(r)!==String(O))return}const u=ne(t);u.length&&(S.value=u.length<20?[...S.value.slice(-500),...u]:u,N())},M=e=>{var c,b,v,r,O,E,A;const n=i.conf,t=(n==null?void 0:n.data)||[],l=(n==null?void 0:n.common)||{},a=(l==null?void 0:l.source)||"mosaic";let s=e;["statistics","calculate"].includes(a)&&(s=V.formatStatisticsResult(s,t));const u=[];if((c=s==null?void 0:s.history)!=null&&c.length){const m=new Map;s.history.forEach((h,q)=>{var _,B;const g=(h==null?void 0:h[0])||h||{},I=String((B=(_=g==null?void 0:g.time)!=null?_:g==null?void 0:g.datetime)!=null?B:q),y=I.split(" ")[0];t.forEach($=>{const le=$.fv,j=$.depth,H=Number(g==null?void 0:g[le]);Number.isFinite(j)&&Number.isFinite(H)&&(m.has(y)||m.set(y,[]),m.get(y).push({t:I,depth:j,temp:H}))})}),x.value=Array.from(m.keys()).sort().reverse(),k.value=m,x.value.length>0&&!d.value&&(d.value=x.value[0]),S.value=m.get(d.value)||[]}else{const m=l!=null&&l.multiObject?"":V.getObjectId(l,l==null?void 0:l.useAlias,i.uid),h=m&&((v=(b=s==null?void 0:s[m])==null?void 0:b[a])==null?void 0:v.data)||((r=s==null?void 0:s[a])==null?void 0:r.data)||(s==null?void 0:s.data)||s,q=String((E=(O=h==null?void 0:h.time)!=null?O:h==null?void 0:h.datetime)!=null?E:Date.now());t.forEach(g=>{const I=g.fv,y=g.depth,_=Number(h==null?void 0:h[I]);Number.isFinite(y)&&Number.isFinite(_)&&u.push({t:q,depth:y,temp:_})}),S.value=[...S.value.slice(-500),...u]}!u.length&&!((A=s==null?void 0:s.history)!=null&&A.length)||N()};return o.watch(()=>f.channels[z()],e=>{e&&F(e)},{deep:!0}),o.watchEffect(()=>{i.conf.socketData&&C.setSocketData(i.conf.socketData)}),o.watch(()=>{var e;return(e=i.conf)==null?void 0:e.options},()=>{C.getStyle().value=C.extractStyles(),N()},{deep:!0}),o.onMounted(()=>{if(i.mode==="edit"&&!S.value.length){const e=[-1,-10,-20,-30],n=["2026-03-05","2026-03-04","2026-03-03"];n.forEach(t=>{const l=[];for(let a=0;a<24;a++){const s=`${t} ${String(a).padStart(2,"0")}:00:00`;e.forEach((u,c)=>{l.push({t:s,depth:u,temp:Number((18+c*1.5+Math.sin(a/4+c)*2).toFixed(2))})})}k.value.set(t,l)}),x.value=n,d.value=n[0],S.value=k.value.get(n[0])||[]}N()}),(e,n)=>{const t=w.ElOption,l=w.ElSelect,a=w.ElIcon,s=w.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(T).bgColor,borderRadius:`${o.unref(T).radiusSize}px`})},[o.unref(T).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(Q.value)},o.toDisplayString(p.conf.caption||p.conf.name),5)),o.createElementVNode("div",me,[o.createElementVNode("div",ge,[o.createVNode(l,{modelValue:d.value,"onUpdate:modelValue":n[0]||(n[0]=u=>d.value=u),placeholder:"选择时间",size:"small",class:"time-select",onChange:ee},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.value,u=>(o.openBlock(),o.createBlock(t,{key:u,label:u,value:u},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(s,{size:"small",class:"export-btn",onClick:te},{default:o.withCtx(()=>[o.createVNode(a,null,{default:o.withCtx(()=>[o.createVNode(o.unref(ce.Download))]),_:1}),n[1]||(n[1]=o.createTextVNode(" 导出图 ",-1))]),_:1})]),o.createElementVNode("div",{class:"echart-container",id:o.unref(J)},null,8,ve)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),xe=V._export_sfc(ye,[["__scopeId","data-v-69009f4e"]]);exports.default=xe;
|
|
1
|
+
"use strict";var oe=Object.defineProperty,se=Object.defineProperties;var ae=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable;var U=(p,i,f)=>i in p?oe(p,i,{enumerable:!0,configurable:!0,writable:!0,value:f}):p[i]=f,G=(p,i)=>{for(var f in i||(i={}))ie.call(i,f)&&U(p,f,i[f]);if(P)for(var f of P(i))re.call(i,f)&&U(p,f,i[f]);return p},K=(p,i)=>se(p,ae(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=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"),ce=require("@element-plus/icons-vue"),V=require("./index-CikO6qmH.cjs");require("element-plus");const ue=require("./EChartComponentBase-Cc-8Dgc8.cjs"),he=require("./titleStyle-NSnz6cUg.cjs"),W=require("./ele-lin-icon-Dke_1AmT.cjs"),R=require("./installCanvasRenderer-CyhM1Qpl.cjs"),de=require("./install-C8buXQPI.cjs"),pe=require("./install-CltTFs4e.cjs"),fe=require("./install-CYwVETsi.cjs"),me={class:"mix-body"},ge={class:"toolbar"},ve=["id"],Ce={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"节点温度图",NAME_EN:"DeepNodeTemperatureChart",ORDER:19,PLATFORM:["pc","screen"]},Se={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:35,left:50,right:30,xName:{value:"时间",type:"string",label:"X轴名称"},yName:{value:"温度(℃)",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"}}},X=[{name:"-130m",fv:"temp_130",depth:-130,color:"#5470c6",object_id:""},{name:"-140m",fv:"temp_140",depth:-140,color:"#91cc75",object_id:""}],be=["name","fv","depth","color","object_id"],Ne=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Oe={useAlias:!1,multiObject:!0,source:"mosaic"},ke={DEFAULT:Ce,OPTIONS:Se,DATA:X,PARAMS:be,SOURCE:Ne,COMMON:Oe},ye=o.defineComponent(K(G({},ke),{__name:"deepNodeTemperatureChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){R.use([de.install,R.install,pe.install,R.install$1,fe.install]);const i=p,f=V.useLinkStore(),d=o.ref(""),x=o.ref([]),k=o.ref(new Map);class Y extends ue.EChartComponentBase{extractStyles(){const n=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),l=n==="custom"&&t?t:n;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",40),bottom:this.getOptionValue("bottom",35),left:this.getOptionValue("left",50),right:this.getOptionValue("right",30),xName:this.getOptionValue("xName","时间"),yName:this.getOptionValue("yName","温度(℃)"),linkChannel:l}}init(){var n;this.Style.value=this.extractStyles(),this.applyTheme(),(n=this.props.conf.data)!=null&&n.length||(this.props.conf.data=X),o.nextTick(()=>this.initChart())}setHistoryData(n){M(n)}setSocketData(n){n&&M(n)}onLinkEvent(n){F(n)}getChartOption(){var t;const n=((t=i.conf)==null?void 0:t.data)||[];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:8,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"axis"},xAxis:{type:"category",name:this.Style.value.xName,data:L.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize}},yAxis:{type:"value",name:this.Style.value.yName,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:n.map((l,a)=>({name:(l==null?void 0:l.name)||`节点${a+1}`,type:"line",smooth:!0,data:Z(l==null?void 0:l.depth),lineStyle:{color:(l==null?void 0:l.color)||D[a%D.length],width:2},itemStyle:{color:(l==null?void 0:l.color)||D[a%D.length]}}))}}}const C=new Y(i,"deepNodeTemperatureChart"),J=C.getEchartId();C.setupLifecycle();const T=C.getStyle(),Q=o.computed(()=>he.generateTitleStyle(i.conf.options)),S=o.ref([]),D=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272"],L=o.computed(()=>{if(d.value&&k.value.has(d.value)){const n=k.value.get(d.value)||[],t=new Set;return n.forEach(l=>t.add(l.t)),Array.from(t)}const e=new Set;return S.value.forEach(n=>e.add(n.t)),Array.from(e)}),Z=e=>{const n=Number(e),t=new Map;return(d.value&&k.value.has(d.value)?k.value.get(d.value)||[]:S.value).forEach(a=>{Math.abs(a.depth-n)<.1&&t.set(a.t,a.temp)}),L.value.map(a=>{var s;return(s=t.get(a))!=null?s:null})},N=()=>{o.nextTick(()=>{const e=C.getChartInstance();e&&e.setOption(C.getChartOption(),!0)})},ee=()=>N(),te=()=>{const e=C.getChartInstance();if(!e)return;const n=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t=document.createElement("a");t.href=n,t.download=`node-temperature-${d.value||Date.now()}.png`,t.click()},z=()=>{var l,a,s;const e=((l=i.conf)==null?void 0:l.options)||{},n=((a=e==null?void 0:e.linkChannel)==null?void 0:a.value)||T.value.linkChannel||"deepDisplacement",t=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return n==="custom"&&t?t:n},ne=e=>{var a,s,u;const n=((a=i.conf)==null?void 0:a.data)||[],t=[];if(Array.isArray(e==null?void 0:e.data))return e.data.forEach((c,b)=>{var r,O;const v=String((O=(r=c==null?void 0:c.time)!=null?r:c==null?void 0:c.datetime)!=null?O:b);n.forEach(E=>{const A=E.fv,m=E.depth,h=Number(c==null?void 0:c[A]);Number.isFinite(m)&&Number.isFinite(h)&&t.push({t:v,depth:m,temp:h})})}),t;const l=String((u=(s=e==null?void 0:e.time)!=null?s:e==null?void 0:e.datetime)!=null?u:Date.now());return n.forEach(c=>{const b=c.fv,v=c.depth,r=Number(e==null?void 0:e[b]);Number.isFinite(v)&&Number.isFinite(r)&&t.push({t:l,depth:v,temp:r})}),t},F=e=>{var c,b,v;if(i.mode==="edit"||!e||!e.payload)return;const n=z();if((c=e.topic)!=null&&c.channel&&n&&e.topic.channel!==n||!f.shouldHandle(e,"deepNodeTemperatureChart"))return;const t=e.payload;if((t==null?void 0:t.type)==="filter"){const r=t.timeRange||t.dateRange||t.timeRangeValue;if((b=t.selectedTimes)!=null&&b.length){d.value=String(t.selectedTimes[t.selectedTimes.length-1]),N();return}if(Array.isArray(r)&&r.length){d.value=String(r[r.length-1]),N();return}if(r!=null&&r.endDate||r!=null&&r.end){d.value=String(r.endDate||r.end),N();return}return}const l=i.conf,a=(l==null?void 0:l.data)||[],s=(l==null?void 0:l.common)||{};if(a.length>0&&!(s!=null&&s.multiObject)){const r=V.getObjectId(s,s==null?void 0:s.useAlias,i.uid)||((v=a[0])==null?void 0:v.object_id),O=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(r&&O&&String(r)!==String(O))return}const u=ne(t);u.length&&(S.value=u.length<20?[...S.value.slice(-500),...u]:u,N())},M=e=>{var c,b,v,r,O,E,A;const n=i.conf,t=(n==null?void 0:n.data)||[],l=(n==null?void 0:n.common)||{},a=(l==null?void 0:l.source)||"mosaic";let s=e;["statistics","calculate"].includes(a)&&(s=V.formatStatisticsResult(s,t));const u=[];if((c=s==null?void 0:s.history)!=null&&c.length){const m=new Map;s.history.forEach((h,q)=>{var _,B;const g=(h==null?void 0:h[0])||h||{},I=String((B=(_=g==null?void 0:g.time)!=null?_:g==null?void 0:g.datetime)!=null?B:q),y=I.split(" ")[0];t.forEach($=>{const le=$.fv,j=$.depth,H=Number(g==null?void 0:g[le]);Number.isFinite(j)&&Number.isFinite(H)&&(m.has(y)||m.set(y,[]),m.get(y).push({t:I,depth:j,temp:H}))})}),x.value=Array.from(m.keys()).sort().reverse(),k.value=m,x.value.length>0&&!d.value&&(d.value=x.value[0]),S.value=m.get(d.value)||[]}else{const m=l!=null&&l.multiObject?"":V.getObjectId(l,l==null?void 0:l.useAlias,i.uid),h=m&&((v=(b=s==null?void 0:s[m])==null?void 0:b[a])==null?void 0:v.data)||((r=s==null?void 0:s[a])==null?void 0:r.data)||(s==null?void 0:s.data)||s,q=String((E=(O=h==null?void 0:h.time)!=null?O:h==null?void 0:h.datetime)!=null?E:Date.now());t.forEach(g=>{const I=g.fv,y=g.depth,_=Number(h==null?void 0:h[I]);Number.isFinite(y)&&Number.isFinite(_)&&u.push({t:q,depth:y,temp:_})}),S.value=[...S.value.slice(-500),...u]}!u.length&&!((A=s==null?void 0:s.history)!=null&&A.length)||N()};return o.watch(()=>f.channels[z()],e=>{e&&F(e)},{deep:!0}),o.watchEffect(()=>{i.conf.socketData&&C.setSocketData(i.conf.socketData)}),o.watch(()=>{var e;return(e=i.conf)==null?void 0:e.options},()=>{C.getStyle().value=C.extractStyles(),N()},{deep:!0}),o.onMounted(()=>{if(i.mode==="edit"&&!S.value.length){const e=[-1,-10,-20,-30],n=["2026-03-05","2026-03-04","2026-03-03"];n.forEach(t=>{const l=[];for(let a=0;a<24;a++){const s=`${t} ${String(a).padStart(2,"0")}:00:00`;e.forEach((u,c)=>{l.push({t:s,depth:u,temp:Number((18+c*1.5+Math.sin(a/4+c)*2).toFixed(2))})})}k.value.set(t,l)}),x.value=n,d.value=n[0],S.value=k.value.get(n[0])||[]}N()}),(e,n)=>{const t=w.ElOption,l=w.ElSelect,a=w.ElIcon,s=w.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(T).bgColor,borderRadius:`${o.unref(T).radiusSize}px`})},[o.unref(T).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(Q.value)},o.toDisplayString(p.conf.caption||p.conf.name),5)),o.createElementVNode("div",me,[o.createElementVNode("div",ge,[o.createVNode(l,{modelValue:d.value,"onUpdate:modelValue":n[0]||(n[0]=u=>d.value=u),placeholder:"选择时间",size:"small",class:"time-select",onChange:ee},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.value,u=>(o.openBlock(),o.createBlock(t,{key:u,label:u,value:u},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(s,{size:"small",class:"export-btn",onClick:te},{default:o.withCtx(()=>[o.createVNode(a,null,{default:o.withCtx(()=>[o.createVNode(o.unref(ce.Download))]),_:1}),n[1]||(n[1]=o.createTextVNode(" 导出图 ",-1))]),_:1})]),o.createElementVNode("div",{class:"echart-container",id:o.unref(J)},null,8,ve)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),xe=V._export_sfc(ye,[["__scopeId","data-v-69009f4e"]]);exports.default=xe;
|
|
@@ -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 be, ref as w, computed as q, watch as J, watchEffect as Oe, onMounted as Ne, openBlock as R, createElementBlock as F, normalizeStyle as Q, unref as E, toDisplayString as _e, createCommentVNode as xe, createElementVNode as L, createVNode as I, withCtx as M, Fragment as ye, renderList as ke, createBlock as Ee, createTextVNode as De, renderSlot as Ve, nextTick as ee } from "vue";
|
|
20
20
|
import { Download as Te } from "@element-plus/icons-vue";
|
|
21
|
-
import { o as Ae, Z as te, R as we, _ as Re } from "./index-
|
|
21
|
+
import { o as Ae, Z as te, R as we, _ as Re } from "./index-B5OsYU5s.js";
|
|
22
22
|
import "element-plus";
|
|
23
|
-
import { E as Ie } from "./EChartComponentBase-
|
|
23
|
+
import { E as Ie } from "./EChartComponentBase-cxF_cDzz.js";
|
|
24
24
|
import { g as ze } from "./titleStyle-BT5GlpAb.js";
|
|
25
25
|
import { A as Fe, D as Le } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
26
26
|
import { u as Me, i as $e, a as Be } from "./installCanvasRenderer-oDYkyVFy.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var se=Object.defineProperty,ae=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var G=(v,c,C)=>c in v?se(v,c,{enumerable:!0,configurable:!0,writable:!0,value:C}):v[c]=C,B=(v,c)=>{for(var C in c||(c={}))ie.call(c,C)&&G(v,C,c[C]);if(K)for(var C of K(c))ce.call(c,C)&&G(v,C,c[C]);return v},q=(v,c)=>ae(v,oe(c));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=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");const n=require("vue"),re=require("@element-plus/icons-vue"),E=require("./index-DoEyCVDU.cjs");require("element-plus");const ue=require("./EChartComponentBase-8GSbyY5P.cjs"),he=require("./titleStyle-NSnz6cUg.cjs"),X=require("./ele-lin-icon-Dke_1AmT.cjs"),de=require("./install-kGXY_57n.cjs"),R=require("./installCanvasRenderer-CyhM1Qpl.cjs"),ge=require("./install-C8buXQPI.cjs"),fe=require("./install-CltTFs4e.cjs"),pe=require("./install-CYwVETsi.cjs"),me={class:"mix-body"},ve={class:"toolbar"},Ce={key:0,class:"custom-legend"},Se=["onClick"],ye={class:"legend-text"},be=["id"],ke={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"深部切线角",NAME_EN:"DeepTangentAngleChart",ORDER:17,PLATFORM:["pc","screen"]},xe={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:40,left:50,right:30,xName:{value:"时间",type:"string",label:"X轴名称"},yName:{value:"切线角(°)",type:"string",label:"Y轴名称"},yMin:{value:-90,type:"number",label:"Y轴最小值"},yMax:{value:90,type:"number",label:"Y轴最大值"},showThresholdBand:{value:!0,type:"switch",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"}}},J=[{name:"切线角",fv:"angle_130",depth:-130,color:"#5470c6",object_id:""},{name:"切线角",fv:"angle_140",depth:-140,color:"#5470c6",object_id:""}],Oe=["name","fv","depth","color","object_id"],Ne=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],_e={useAlias:!1,multiObject:!0,source:"mosaic"},Ee={DEFAULT:ke,OPTIONS:xe,DATA:J,PARAMS:Oe,SOURCE:Ne,COMMON:_e},Ve=n.defineComponent(q(B({},Ee),{__name:"deepTangentAngleChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){R.use([ge.install,R.install,fe.install,de.install,R.install$1,pe.install]);const c=v,C=E.useLinkStore(),V=(e,l,t)=>{const s=(e==null?void 0:e.name)||`切线角${l+1}`;if(t.filter(p=>((p==null?void 0:p.name)||"")===s).length<=1)return s;const o=(e==null?void 0:e.depth)!==void 0?`${e.depth}m`:`${l+1}`;return`${s}-${o}`},S=n.ref(""),D=n.ref([]),M=n.ref(new Map);class Q extends ue.EChartComponentBase{extractStyles(){const l=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),s=l==="custom"&&t?t:l;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",40),bottom:this.getOptionValue("bottom",40),left:this.getOptionValue("left",50),right:this.getOptionValue("right",30),xName:this.getOptionValue("xName","时间"),yName:this.getOptionValue("yName","切线角(°)"),yMin:this.getOptionValue("yMin",-90),yMax:this.getOptionValue("yMax",90),showThresholdBand:this.getOptionValue("showThresholdBand",!0),linkChannel:s}}init(){var l;this.Style.value=this.extractStyles(),this.applyTheme(),(l=this.props.conf.data)!=null&&l.length||(this.props.conf.data=J),n.nextTick(()=>this.initChart())}setHistoryData(l){U(l)}setSocketData(l){l&&U(l)}onLinkEvent(l){H(l)}getChartOption(){var p;const l=((p=c.conf)==null?void 0:p.data)||[],t=S.value&&M.value.has(S.value)?M.value.get(S.value)||new Map:k.value,s=[];let u=[];if(l.forEach((i,g)=>{const f=V(i,g,l),d=(i==null?void 0:i.color)||"#5470c6",a=t instanceof Map?t.get(f)||[]:[];g===0&&(u=a);const r=a.map(x=>x.angle),m=a[a.length-1],h=_.value[f]!==!1;h&&s.push({name:f,type:"line",data:r,smooth:!1,symbol:"circle",symbolSize:6,lineStyle:{color:d,width:2},itemStyle:{color:d},markArea:void 0,markPoint:m&&h?{symbol:"circle",symbolSize:8,label:{show:!0,formatter:f,position:"right",color:d,fontSize:12},data:[{coord:[m.t,m.angle]}]}:void 0})}),!u.length&&t instanceof Map){const i=Array.from(t.keys())[0];u=i?t.get(i)||[]:[]}const o=this.Style.value.showThresholdBand?90:0;return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right+o,containLabel:!0},tooltip:{trigger:"axis",formatter:i=>{var d;if(!(i!=null&&i.length))return"";const g=((d=i[0])==null?void 0:d.axisValue)||"-",f=i.map(a=>{var r;return`${a.seriesName}: ${(r=a.data)!=null?r:"-"}°`});return`${g}<br/>${f.join("<br/>")}`}},xAxis:{type:"category",name:this.Style.value.xName,data:u.map(i=>i.t),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,formatter:i=>{if(!i)return i;const g=E.dayjs(i);if(g.isValid())return g.format("MM-DD HH:mm");if(i.includes(" ")){const[f,d]=i.split(" "),[,a,r]=f.split("-"),[m,h]=d.split(":");return`${a}-${r} ${m}:${h}`}return i}}},yAxis:{type:"value",name:this.Style.value.yName,min:Number(this.Style.value.yMin),max:Number(this.Style.value.yMax),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:s}}}const y=new Q(c,"deepTangentAngleChart"),Z=y.getEchartId();y.setupLifecycle();const A=y.getStyle(),ee=n.computed(()=>he.generateTitleStyle(c.conf.options)),k=n.ref(new Map),_=n.ref({}),P=n.computed(()=>{var l;const e=((l=c.conf)==null?void 0:l.data)||[];return e.map((t,s)=>({name:V(t,s,e),color:(t==null?void 0:t.color)||"#5470c6"}))}),b=()=>{n.nextTick(()=>{const e=y.getChartInstance();e&&e.setOption(y.getChartOption(),!0)})},F=e=>{_.value=(e==null?void 0:e.selected)||{},b()},te=e=>{_.value=q(B({},_.value),{[e]:_.value[e]===!1}),b()};n.watch(()=>y.getChartInstance(),e=>{e&&(e.off("legendselectchanged",F),e.on("legendselectchanged",F))});const ne=()=>{const e=y.getChartInstance();if(!e)return;const l=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t=document.createElement("a");t.href=l,t.download=`tangent-angle-${S.value||Date.now()}.png`,t.click()},j=()=>{var s,u,o;const e=((s=c.conf)==null?void 0:s.options)||{},l=((u=e==null?void 0:e.linkChannel)==null?void 0:u.value)||A.value.linkChannel||"deepDisplacement",t=((o=e==null?void 0:e.customChannel)==null?void 0:o.value)||"";return l==="custom"&&t?t:l},le=e=>{var s;const l=((s=c.conf)==null?void 0:s.data)||[],t=new Map;return l.length&&l.forEach((u,o)=>{var d,a;const p=u.fv,i=V(u,o,l),g=Number(e==null?void 0:e[p]);if(!Number.isFinite(g))return;const f=String((a=(d=e==null?void 0:e.time)!=null?d:e==null?void 0:e.datetime)!=null?a:Date.now());t.has(i)||t.set(i,[]),t.get(i).push({t:f,angle:g})}),t},H=e=>{var g,f,d;if(c.mode==="edit"||!e||!e.payload)return;const l=j();if((g=e.topic)!=null&&g.channel&&l&&e.topic.channel!==l||!C.shouldHandle(e,"deepTangentAngleChart"))return;const t=e.payload;if((t==null?void 0:t.type)==="filter"){const a=t.timeRange||t.dateRange||t.timeRangeValue;if((f=t.selectedTimes)!=null&&f.length){S.value=String(t.selectedTimes[t.selectedTimes.length-1]),b();return}if(Array.isArray(a)&&a.length){S.value=String(a[a.length-1]),b();return}if(a!=null&&a.endDate||a!=null&&a.end){S.value=String(a.endDate||a.end),b();return}return}const s=c.conf,u=(s==null?void 0:s.data)||[],o=(s==null?void 0:s.common)||{};if(u.length>0&&!(o!=null&&o.multiObject)){const a=E.getObjectId(o,o==null?void 0:o.useAlias,c.uid)||((d=u[0])==null?void 0:d.object_id),r=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(a&&r&&String(a)!==String(r))return}const p=le(t);if(!p.size)return;const i=new Map(k.value);p.forEach((a,r)=>{const m=i.get(r)||[];i.set(r,[...m.slice(-199),...a])}),k.value=i,b()},U=e=>{var i,g,f,d;const l=c.conf,t=(l==null?void 0:l.data)||[],s=(l==null?void 0:l.common)||{},u=(s==null?void 0:s.source)||"mosaic";let o=e;["statistics","calculate"].includes(u)&&(o=E.formatStatisticsResult(o,t));let p=!1;if((i=o==null?void 0:o.history)!=null&&i.length){const a=new Map;o.history.forEach((r,m)=>{var N,T;const h=(r==null?void 0:r[0])||r||{},x=String((T=(N=h==null?void 0:h.time)!=null?N:h==null?void 0:h.datetime)!=null?T:m),O=x.split(" ")[0];t.forEach((w,I)=>{const $=w.fv,z=V(w,I,t),Y=Number(h==null?void 0:h[$]);if(!Number.isFinite(Y))return;a.has(O)||a.set(O,new Map);const L=a.get(O);L.has(z)||L.set(z,[]),L.get(z).push({t:x,angle:Y})})}),D.value=Array.from(a.keys()).sort().reverse(),M.value=a,D.value.length>0&&!S.value&&(S.value=D.value[0]),k.value=a.get(S.value)||new Map,p=!0}else{const a=s!=null&&s.multiObject?"":E.getObjectId(s,s==null?void 0:s.useAlias,c.uid),r=a&&((f=(g=o==null?void 0:o[a])==null?void 0:g[u])==null?void 0:f.data)||((d=o==null?void 0:o[u])==null?void 0:d.data)||(o==null?void 0:o.data)||o,m=new Map;if(t.forEach((h,x)=>{var I,$;const O=h.fv,N=V(h,x,t),T=Number(r==null?void 0:r[O]);if(!Number.isFinite(T))return;const w=String(($=(I=r==null?void 0:r.time)!=null?I:r==null?void 0:r.datetime)!=null?$:Date.now());m.has(N)||m.set(N,[]),m.get(N).push({t:w,angle:T})}),m.size>0){const h=new Map(k.value);m.forEach((x,O)=>{const N=h.get(O)||[];h.set(O,[...N.slice(-199),...x])}),k.value=h,p=!0}}p&&b()};return n.watch(()=>C.channels[j()],e=>{e&&H(e)},{deep:!0}),n.watchEffect(()=>{c.conf.socketData&&y.setSocketData(c.conf.socketData)}),n.watch(()=>{var e;return(e=c.conf)==null?void 0:e.options},()=>{y.getStyle().value=y.extractStyles(),b()},{deep:!0}),n.onMounted(()=>{if(c.mode==="edit"&&!k.value.length){const e=["2026-03-05","2026-03-04","2026-03-03"];e.forEach(l=>{const t=[];for(let s=0;s<24;s++){const u=`${l} ${String(s).padStart(2,"0")}:00:00`,o=Number((Math.sin(s/3)*50+s%4*6).toFixed(2));t.push({t:u,angle:o})}M.value.set(l,t)}),D.value=e,S.value=e[0],k.value=M.value.get(e[0])||[]}b()}),(e,l)=>{const t=W.ElIcon,s=W.ElButton;return n.openBlock(),n.createElementBlock("div",{class:"mix-component",style:n.normalizeStyle({background:n.unref(A).bgColor,borderRadius:`${n.unref(A).radiusSize}px`})},[n.unref(A).isHideTitle?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"mix-title",style:n.normalizeStyle(ee.value)},n.toDisplayString(v.conf.caption||v.conf.name),5)),n.createElementVNode("div",me,[n.createElementVNode("div",ve,[n.createVNode(s,{size:"small",class:"export-btn",onClick:ne},{default:n.withCtx(()=>[n.createVNode(t,null,{default:n.withCtx(()=>[n.createVNode(n.unref(re.Download))]),_:1}),l[0]||(l[0]=n.createTextVNode(" 导出图 ",-1))]),_:1})]),P.value.length?(n.openBlock(),n.createElementBlock("div",Ce,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(P.value,u=>(n.openBlock(),n.createElementBlock("span",{key:u.name,class:n.normalizeClass(["legend-item",{inactive:_.value[u.name]===!1}]),onClick:o=>te(u.name)},[n.createElementVNode("span",{class:"legend-dot",style:n.normalizeStyle({backgroundColor:u.color})},null,4),n.createElementVNode("span",ye,n.toDisplayString(u.name),1)],10,Se))),128))])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"echart-container",id:n.unref(Z)},null,8,be)]),n.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),Me=E._export_sfc(Ve,[["__scopeId","data-v-da74a3c3"]]);exports.default=Me;
|
|
1
|
+
"use strict";var se=Object.defineProperty,ae=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var G=(v,c,C)=>c in v?se(v,c,{enumerable:!0,configurable:!0,writable:!0,value:C}):v[c]=C,B=(v,c)=>{for(var C in c||(c={}))ie.call(c,C)&&G(v,C,c[C]);if(K)for(var C of K(c))ce.call(c,C)&&G(v,C,c[C]);return v},q=(v,c)=>ae(v,oe(c));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=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");const n=require("vue"),re=require("@element-plus/icons-vue"),E=require("./index-CikO6qmH.cjs");require("element-plus");const ue=require("./EChartComponentBase-Cc-8Dgc8.cjs"),he=require("./titleStyle-NSnz6cUg.cjs"),X=require("./ele-lin-icon-Dke_1AmT.cjs"),de=require("./install-kGXY_57n.cjs"),R=require("./installCanvasRenderer-CyhM1Qpl.cjs"),ge=require("./install-C8buXQPI.cjs"),fe=require("./install-CltTFs4e.cjs"),pe=require("./install-CYwVETsi.cjs"),me={class:"mix-body"},ve={class:"toolbar"},Ce={key:0,class:"custom-legend"},Se=["onClick"],ye={class:"legend-text"},be=["id"],ke={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"深部切线角",NAME_EN:"DeepTangentAngleChart",ORDER:17,PLATFORM:["pc","screen"]},xe={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:40,left:50,right:30,xName:{value:"时间",type:"string",label:"X轴名称"},yName:{value:"切线角(°)",type:"string",label:"Y轴名称"},yMin:{value:-90,type:"number",label:"Y轴最小值"},yMax:{value:90,type:"number",label:"Y轴最大值"},showThresholdBand:{value:!0,type:"switch",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"}}},J=[{name:"切线角",fv:"angle_130",depth:-130,color:"#5470c6",object_id:""},{name:"切线角",fv:"angle_140",depth:-140,color:"#5470c6",object_id:""}],Oe=["name","fv","depth","color","object_id"],Ne=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],_e={useAlias:!1,multiObject:!0,source:"mosaic"},Ee={DEFAULT:ke,OPTIONS:xe,DATA:J,PARAMS:Oe,SOURCE:Ne,COMMON:_e},Ve=n.defineComponent(q(B({},Ee),{__name:"deepTangentAngleChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){R.use([ge.install,R.install,fe.install,de.install,R.install$1,pe.install]);const c=v,C=E.useLinkStore(),V=(e,l,t)=>{const s=(e==null?void 0:e.name)||`切线角${l+1}`;if(t.filter(p=>((p==null?void 0:p.name)||"")===s).length<=1)return s;const o=(e==null?void 0:e.depth)!==void 0?`${e.depth}m`:`${l+1}`;return`${s}-${o}`},S=n.ref(""),D=n.ref([]),M=n.ref(new Map);class Q extends ue.EChartComponentBase{extractStyles(){const l=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),s=l==="custom"&&t?t:l;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",40),bottom:this.getOptionValue("bottom",40),left:this.getOptionValue("left",50),right:this.getOptionValue("right",30),xName:this.getOptionValue("xName","时间"),yName:this.getOptionValue("yName","切线角(°)"),yMin:this.getOptionValue("yMin",-90),yMax:this.getOptionValue("yMax",90),showThresholdBand:this.getOptionValue("showThresholdBand",!0),linkChannel:s}}init(){var l;this.Style.value=this.extractStyles(),this.applyTheme(),(l=this.props.conf.data)!=null&&l.length||(this.props.conf.data=J),n.nextTick(()=>this.initChart())}setHistoryData(l){U(l)}setSocketData(l){l&&U(l)}onLinkEvent(l){H(l)}getChartOption(){var p;const l=((p=c.conf)==null?void 0:p.data)||[],t=S.value&&M.value.has(S.value)?M.value.get(S.value)||new Map:k.value,s=[];let u=[];if(l.forEach((i,g)=>{const f=V(i,g,l),d=(i==null?void 0:i.color)||"#5470c6",a=t instanceof Map?t.get(f)||[]:[];g===0&&(u=a);const r=a.map(x=>x.angle),m=a[a.length-1],h=_.value[f]!==!1;h&&s.push({name:f,type:"line",data:r,smooth:!1,symbol:"circle",symbolSize:6,lineStyle:{color:d,width:2},itemStyle:{color:d},markArea:void 0,markPoint:m&&h?{symbol:"circle",symbolSize:8,label:{show:!0,formatter:f,position:"right",color:d,fontSize:12},data:[{coord:[m.t,m.angle]}]}:void 0})}),!u.length&&t instanceof Map){const i=Array.from(t.keys())[0];u=i?t.get(i)||[]:[]}const o=this.Style.value.showThresholdBand?90:0;return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right+o,containLabel:!0},tooltip:{trigger:"axis",formatter:i=>{var d;if(!(i!=null&&i.length))return"";const g=((d=i[0])==null?void 0:d.axisValue)||"-",f=i.map(a=>{var r;return`${a.seriesName}: ${(r=a.data)!=null?r:"-"}°`});return`${g}<br/>${f.join("<br/>")}`}},xAxis:{type:"category",name:this.Style.value.xName,data:u.map(i=>i.t),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,formatter:i=>{if(!i)return i;const g=E.dayjs(i);if(g.isValid())return g.format("MM-DD HH:mm");if(i.includes(" ")){const[f,d]=i.split(" "),[,a,r]=f.split("-"),[m,h]=d.split(":");return`${a}-${r} ${m}:${h}`}return i}}},yAxis:{type:"value",name:this.Style.value.yName,min:Number(this.Style.value.yMin),max:Number(this.Style.value.yMax),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:s}}}const y=new Q(c,"deepTangentAngleChart"),Z=y.getEchartId();y.setupLifecycle();const A=y.getStyle(),ee=n.computed(()=>he.generateTitleStyle(c.conf.options)),k=n.ref(new Map),_=n.ref({}),P=n.computed(()=>{var l;const e=((l=c.conf)==null?void 0:l.data)||[];return e.map((t,s)=>({name:V(t,s,e),color:(t==null?void 0:t.color)||"#5470c6"}))}),b=()=>{n.nextTick(()=>{const e=y.getChartInstance();e&&e.setOption(y.getChartOption(),!0)})},F=e=>{_.value=(e==null?void 0:e.selected)||{},b()},te=e=>{_.value=q(B({},_.value),{[e]:_.value[e]===!1}),b()};n.watch(()=>y.getChartInstance(),e=>{e&&(e.off("legendselectchanged",F),e.on("legendselectchanged",F))});const ne=()=>{const e=y.getChartInstance();if(!e)return;const l=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t=document.createElement("a");t.href=l,t.download=`tangent-angle-${S.value||Date.now()}.png`,t.click()},j=()=>{var s,u,o;const e=((s=c.conf)==null?void 0:s.options)||{},l=((u=e==null?void 0:e.linkChannel)==null?void 0:u.value)||A.value.linkChannel||"deepDisplacement",t=((o=e==null?void 0:e.customChannel)==null?void 0:o.value)||"";return l==="custom"&&t?t:l},le=e=>{var s;const l=((s=c.conf)==null?void 0:s.data)||[],t=new Map;return l.length&&l.forEach((u,o)=>{var d,a;const p=u.fv,i=V(u,o,l),g=Number(e==null?void 0:e[p]);if(!Number.isFinite(g))return;const f=String((a=(d=e==null?void 0:e.time)!=null?d:e==null?void 0:e.datetime)!=null?a:Date.now());t.has(i)||t.set(i,[]),t.get(i).push({t:f,angle:g})}),t},H=e=>{var g,f,d;if(c.mode==="edit"||!e||!e.payload)return;const l=j();if((g=e.topic)!=null&&g.channel&&l&&e.topic.channel!==l||!C.shouldHandle(e,"deepTangentAngleChart"))return;const t=e.payload;if((t==null?void 0:t.type)==="filter"){const a=t.timeRange||t.dateRange||t.timeRangeValue;if((f=t.selectedTimes)!=null&&f.length){S.value=String(t.selectedTimes[t.selectedTimes.length-1]),b();return}if(Array.isArray(a)&&a.length){S.value=String(a[a.length-1]),b();return}if(a!=null&&a.endDate||a!=null&&a.end){S.value=String(a.endDate||a.end),b();return}return}const s=c.conf,u=(s==null?void 0:s.data)||[],o=(s==null?void 0:s.common)||{};if(u.length>0&&!(o!=null&&o.multiObject)){const a=E.getObjectId(o,o==null?void 0:o.useAlias,c.uid)||((d=u[0])==null?void 0:d.object_id),r=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(a&&r&&String(a)!==String(r))return}const p=le(t);if(!p.size)return;const i=new Map(k.value);p.forEach((a,r)=>{const m=i.get(r)||[];i.set(r,[...m.slice(-199),...a])}),k.value=i,b()},U=e=>{var i,g,f,d;const l=c.conf,t=(l==null?void 0:l.data)||[],s=(l==null?void 0:l.common)||{},u=(s==null?void 0:s.source)||"mosaic";let o=e;["statistics","calculate"].includes(u)&&(o=E.formatStatisticsResult(o,t));let p=!1;if((i=o==null?void 0:o.history)!=null&&i.length){const a=new Map;o.history.forEach((r,m)=>{var N,T;const h=(r==null?void 0:r[0])||r||{},x=String((T=(N=h==null?void 0:h.time)!=null?N:h==null?void 0:h.datetime)!=null?T:m),O=x.split(" ")[0];t.forEach((w,I)=>{const $=w.fv,z=V(w,I,t),Y=Number(h==null?void 0:h[$]);if(!Number.isFinite(Y))return;a.has(O)||a.set(O,new Map);const L=a.get(O);L.has(z)||L.set(z,[]),L.get(z).push({t:x,angle:Y})})}),D.value=Array.from(a.keys()).sort().reverse(),M.value=a,D.value.length>0&&!S.value&&(S.value=D.value[0]),k.value=a.get(S.value)||new Map,p=!0}else{const a=s!=null&&s.multiObject?"":E.getObjectId(s,s==null?void 0:s.useAlias,c.uid),r=a&&((f=(g=o==null?void 0:o[a])==null?void 0:g[u])==null?void 0:f.data)||((d=o==null?void 0:o[u])==null?void 0:d.data)||(o==null?void 0:o.data)||o,m=new Map;if(t.forEach((h,x)=>{var I,$;const O=h.fv,N=V(h,x,t),T=Number(r==null?void 0:r[O]);if(!Number.isFinite(T))return;const w=String(($=(I=r==null?void 0:r.time)!=null?I:r==null?void 0:r.datetime)!=null?$:Date.now());m.has(N)||m.set(N,[]),m.get(N).push({t:w,angle:T})}),m.size>0){const h=new Map(k.value);m.forEach((x,O)=>{const N=h.get(O)||[];h.set(O,[...N.slice(-199),...x])}),k.value=h,p=!0}}p&&b()};return n.watch(()=>C.channels[j()],e=>{e&&H(e)},{deep:!0}),n.watchEffect(()=>{c.conf.socketData&&y.setSocketData(c.conf.socketData)}),n.watch(()=>{var e;return(e=c.conf)==null?void 0:e.options},()=>{y.getStyle().value=y.extractStyles(),b()},{deep:!0}),n.onMounted(()=>{if(c.mode==="edit"&&!k.value.length){const e=["2026-03-05","2026-03-04","2026-03-03"];e.forEach(l=>{const t=[];for(let s=0;s<24;s++){const u=`${l} ${String(s).padStart(2,"0")}:00:00`,o=Number((Math.sin(s/3)*50+s%4*6).toFixed(2));t.push({t:u,angle:o})}M.value.set(l,t)}),D.value=e,S.value=e[0],k.value=M.value.get(e[0])||[]}b()}),(e,l)=>{const t=W.ElIcon,s=W.ElButton;return n.openBlock(),n.createElementBlock("div",{class:"mix-component",style:n.normalizeStyle({background:n.unref(A).bgColor,borderRadius:`${n.unref(A).radiusSize}px`})},[n.unref(A).isHideTitle?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"mix-title",style:n.normalizeStyle(ee.value)},n.toDisplayString(v.conf.caption||v.conf.name),5)),n.createElementVNode("div",me,[n.createElementVNode("div",ve,[n.createVNode(s,{size:"small",class:"export-btn",onClick:ne},{default:n.withCtx(()=>[n.createVNode(t,null,{default:n.withCtx(()=>[n.createVNode(n.unref(re.Download))]),_:1}),l[0]||(l[0]=n.createTextVNode(" 导出图 ",-1))]),_:1})]),P.value.length?(n.openBlock(),n.createElementBlock("div",Ce,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(P.value,u=>(n.openBlock(),n.createElementBlock("span",{key:u.name,class:n.normalizeClass(["legend-item",{inactive:_.value[u.name]===!1}]),onClick:o=>te(u.name)},[n.createElementVNode("span",{class:"legend-dot",style:n.normalizeStyle({backgroundColor:u.color})},null,4),n.createElementVNode("span",ye,n.toDisplayString(u.name),1)],10,Se))),128))])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"echart-container",id:n.unref(Z)},null,8,be)]),n.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),Me=E._export_sfc(Ve,[["__scopeId","data-v-da74a3c3"]]);exports.default=Me;
|
|
@@ -16,9 +16,9 @@ import "element-plus/es/components/button/style/css";
|
|
|
16
16
|
import "element-plus/es/components/icon/style/css";
|
|
17
17
|
import { defineComponent as ye, ref as T, computed as ee, watch as j, watchEffect as be, onMounted as xe, openBlock as V, createElementBlock as E, normalizeStyle as U, unref as A, toDisplayString as te, createCommentVNode as ne, createElementVNode as $, createVNode as Y, withCtx as se, createTextVNode as Oe, Fragment as ke, renderList as _e, normalizeClass as Ne, renderSlot as Me, nextTick as ae } from "vue";
|
|
18
18
|
import { Download as De } from "@element-plus/icons-vue";
|
|
19
|
-
import { o as Te, d as Ve, Z as le, R as Ee, _ as Ae } from "./index-
|
|
19
|
+
import { o as Te, d as Ve, Z as le, R as Ee, _ as Ae } from "./index-B5OsYU5s.js";
|
|
20
20
|
import "element-plus";
|
|
21
|
-
import { E as $e } from "./EChartComponentBase-
|
|
21
|
+
import { E as $e } from "./EChartComponentBase-cxF_cDzz.js";
|
|
22
22
|
import { g as we } from "./titleStyle-BT5GlpAb.js";
|
|
23
23
|
import { A as ze, D as Le } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
24
24
|
import { i as Ie } from "./install-UooD2LwU.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ct=Object.defineProperty,ut=Object.defineProperties;var dt=Object.getOwnPropertyDescriptors;var J=Object.getOwnPropertySymbols;var mt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var K=(g,r,f)=>r in g?ct(g,r,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[r]=f,V=(g,r)=>{for(var f in r||(r={}))mt.call(r,f)&&K(g,f,r[f]);if(J)for(var f of J(r))pt.call(r,f)&&K(g,f,r[f]);return g},I=(g,r)=>ut(g,dt(r));var Q=(g,r,f)=>new Promise((F,M)=>{var k=O=>{try{w(f.next(O))}catch(R){M(R)}},j=O=>{try{w(f.throw(O))}catch(R){M(R)}},w=O=>O.done?F(O.value):Promise.resolve(O.value).then(k,j);w((f=f.apply(g,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=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");const o=require("vue"),ft=require("@element-plus/icons-vue"),E=require("./index-DoEyCVDU.cjs");require("element-plus");const ht=require("./EChartComponentBase-8GSbyY5P.cjs"),gt=require("./titleStyle-NSnz6cUg.cjs"),vt=require("./history-Dm7563t_.cjs"),Z=require("./ele-lin-icon-Dke_1AmT.cjs"),yt=require("./install-LtoYukZU.cjs"),B=require("./installCanvasRenderer-CyhM1Qpl.cjs"),St=require("./install-C8buXQPI.cjs"),bt=require("./install-CIT6k8Ga.cjs"),Ct={class:"mix-body"},Dt={class:"toolbar"},Ot=["id"],Tt={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"深部温度场",NAME_EN:"DeepTemperatureField",ORDER:16,PLATFORM:["pc","screen"]},xt={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:30,left:50,right:60,visualMin:{value:0,type:"number",label:"温度最小值"},visualMax:{value:40,type:"number",label:"温度最大值"},points:{value:200,type:"number",label:"历史数据条数"},showDebugClear:{value:!1,type:"switch",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"}}},tt=[{name:"温度场",fv:"temp_130",depth:-130,color:"#5470c6",object_id:""},{name:"温度场",fv:"temp_140",depth:-140,color:"#5470c6",object_id:""}],Nt=["name","fv","depth","color","object_id"],kt=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],wt={useAlias:!1,multiObject:!0,source:"mosaic"},At={DEFAULT:Tt,OPTIONS:xt,DATA:tt,PARAMS:Nt,SOURCE:kt,COMMON:wt},_t=o.defineComponent(I(V({},At),{__name:"deepTemperatureField",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(g){B.use([St.install,B.install,bt.install,B.install$1,yt.install]);const r=g,f=E.useLinkStore(),F=new vt.default,M=o.ref(!1),k=o.ref("");o.ref([]);const j=e=>{if(e==null)return"";const t=typeof e=="string"?e:String(e),i=typeof e=="number"||/^\d+$/.test(t)?new Date(Number(e)):new Date(t);if(Number.isNaN(i.getTime()))return t;const a=i.getFullYear(),s=String(i.getMonth()+1).padStart(2,"0"),c=String(i.getDate()).padStart(2,"0"),d=String(i.getHours()).padStart(2,"0"),h=String(i.getMinutes()).padStart(2,"0"),u=String(i.getSeconds()).padStart(2,"0");return`${a}-${s}-${c} ${d}:${h}:${u}`},w=e=>{if(e==null)return null;const t=String(e);return/^\d+$/.test(t)?E.dayjs(Number(t)):E.dayjs(e)},O=(e,t)=>{const n=e?w(e):null,i=t?w(t):null,a=!!(e&&String(e).includes(" ")),s=!!(t&&String(t).includes(" "));return{start:n?a?n:n.startOf("day"):null,end:i?s?i:i.endOf("day"):null}};class R extends ht.EChartComponentBase{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",40),bottom:this.getOptionValue("bottom",30),left:this.getOptionValue("left",50),right:this.getOptionValue("right",60),visualMin:this.getOptionValue("visualMin",0),visualMax:this.getOptionValue("visualMax",40),showDebugClear:this.getOptionValue("showDebugClear",!1),linkChannel:i}}init(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=tt),o.nextTick(()=>this.initChart())}setHistoryData(t){W(t)}setSocketData(t){t&&W(t)}onLinkEvent(t){P(t)}getChartOption(){var i,a,s,c,d,h,u,S;const t=Number((c=(s=(a=(i=r.conf)==null?void 0:i.options)==null?void 0:a.visualMin)==null?void 0:s.value)!=null?c:this.Style.value.visualMin),n=Number((S=(u=(h=(d=r.conf)==null?void 0:d.options)==null?void 0:h.visualMax)==null?void 0:u.value)!=null?S:this.Style.value.visualMax);return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},tooltip:{position:"top",formatter:m=>{var y,x,b;const l=q.value[(y=m.value)==null?void 0:y[0]]||"-",p=z.value[(x=m.value)==null?void 0:x[1]]||"-",v=(b=m.value)==null?void 0:b[2];return`时间: ${l}<br/>深度: ${p}m<br/>温度: ${v}℃`}},xAxis:{type:"category",data:q.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,rotate:45,formatter:m=>{if(/^\d+$/.test(m)){const l=new Date(Number(m)),p=String(l.getMonth()+1).padStart(2,"0"),v=String(l.getDate()).padStart(2,"0"),y=String(l.getHours()).padStart(2,"0"),x=String(l.getMinutes()).padStart(2,"0");return`${p}-${v} ${y}:${x}`}if(m&&m.includes(" ")){const[l,p]=m.split(" "),v=l.split("-");if(v.length===3){const[y,x,b]=v,[H,D]=p.split(":");return`${x}-${b} ${H}:${D}`}}return m}}},yAxis:{type:"category",data:z.value.map(m=>String(m)),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize}},visualMap:{min:Number.isFinite(t)?t:0,max:Number.isFinite(n)?n:40,calculable:!0,orient:"vertical",right:8,top:"middle"},series:[{name:"温度场",type:"heatmap",data:it.value,label:{show:!1},emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.4)"}}}]}}}const T=new R(r,"deepTemperatureField"),et=T.getEchartId();T.setupLifecycle();const L=T.getStyle(),nt=o.computed(()=>gt.generateTitleStyle(r.conf.options)),C=o.ref([]),A=o.ref([]),q=o.computed(()=>{const e=new Set;return C.value.forEach(t=>e.add(String(t.t))),Array.from(e).sort()}),z=o.computed(()=>{const e=new Set;return C.value.forEach(t=>e.add(Number(t.depth))),Array.from(e).sort((t,n)=>t-n)}),it=o.computed(()=>{const e=new Map,t=new Map;return q.value.forEach((n,i)=>e.set(n,i)),z.value.forEach((n,i)=>t.set(n,i)),C.value.map(n=>{const i=e.get(String(n.t)),a=t.get(Number(n.depth)),s=Number(n.temp);return i===void 0||a===void 0||!Number.isFinite(s)?null:[i,a,s]}).filter(Boolean)}),N=()=>{o.nextTick(()=>{const e=T.getChartInstance();e&&e.setOption(T.getChartOption(),!0)})},st=()=>{const e=T.getChartInstance();if(!e)return;const t=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=t,n.download=`temperature-field-${Date.now()}.png`,n.click()},ot=()=>{$.value=null,_(),N()},U=()=>{var i,a,s;const e=((i=r.conf)==null?void 0:i.options)||{},t=((a=e==null?void 0:e.linkChannel)==null?void 0:a.value)||L.value.linkChannel||"deepDisplacement",n=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return t==="custom"&&n?n:t},P=e=>{var h,u,S,m;if(r.mode==="edit"||!e||!e.payload)return;const t=U();if((h=e.topic)!=null&&h.channel&&t&&e.topic.channel!==t||!f.shouldHandle(e,"deepTemperatureField"))return;const n=e.payload,i=r.conf,a=(i==null?void 0:i.data)||[],s=(i==null?void 0:i.common)||{};if(n.type==="filter"){const l=(u=n.filter)!=null?u:n;console.log("[deepTemperatureField] 收到筛选配置:",l);const p=String((l==null?void 0:l.objectId)||(l==null?void 0:l.object_id)||"").trim();p&&p!==k.value&&(k.value=p,A.value=[],C.value=[],Y()),rt(l);return}if(a.length>0&&!(s!=null&&s.multiObject)){const l=E.getObjectId(s,s==null?void 0:s.useAlias,r.uid)||((S=a[0])==null?void 0:S.object_id),p=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(l&&p&&String(l)!==String(p))return}const c=j((n==null?void 0:n.time)||(n==null?void 0:n.datetime)||((m=e.topic)==null?void 0:m.time)||Date.now()),d=[];a.forEach(l=>{const p=l.fv,v=Number(l.depth),y=Number(n==null?void 0:n[p]);Number.isFinite(v)&&Number.isFinite(y)&&d.push({t:c,depth:v,temp:y})}),d.length&&(A.value=[...A.value,...d],_(),N())},$=o.ref(null),at=o.computed(()=>{var i,a;const e=(a=(i=r.conf)==null?void 0:i.common)==null?void 0:a.historyTimeRange;if(!e)return null;const t=e.startDate||e.start_time||"",n=e.endDate||e.end_time||"";return!t&&!n?null:{startDate:t,endDate:n}}),rt=e=>{var c;if(!e){$.value=null,_(),N();return}console.log("[deepTemperatureField] 收到配置数据类型:",typeof e,e);const t=Array.isArray(e)?null:e||null;if(t){const d=t.timeRange||t.dateRange,h=t.timeList||t.selectedTimes,u={};d&&(u.startDate=d.startDate||d.start||d[0],u.endDate=d.endDate||d.end||d[1]),Array.isArray(h)&&h.length>0&&(u.timeList=h),$.value=u,_(),N();return}const n=Array.isArray(e)?e:[];if(n.length===0){console.warn("[deepTemperatureField] 配置为空或格式错误");return}const i=n.find(d=>d.type==="timeRange"),a=n.find(d=>d.type==="timeList"),s={};i&&(s.startDate=i.startDate,s.endDate=i.endDate),a&&((c=a.selectedTimes)==null?void 0:c.length)>0&&(s.timeList=a.selectedTimes),$.value=s,_(),N()},_=()=>{const e=A.value,t=$.value,n=at.value;if(t!=null&&t.timeList&&t.timeList.length>0){const i=new Set(t.timeList);C.value=e.filter(a=>{const s=String(a.t).split(" ")[0];return i.has(s)||i.has(String(a.t))});return}if(t!=null&&t.startDate||t!=null&&t.endDate){const{start:i,end:a}=O(t.startDate,t.endDate);C.value=e.filter(s=>{const c=w(s.t);return!(!c||!c.isValid()||i&&c.isBefore(i)||a&&c.isAfter(a))});return}if(n!=null&&n.startDate||n!=null&&n.endDate){const{start:i,end:a}=O(n.startDate,n.endDate);C.value=e.filter(s=>{const c=w(s.t);return!(!c||!c.isValid()||i&&c.isBefore(i)||a&&c.isAfter(a))});return}C.value=e},W=e=>{var d,h,u,S;const t=r.conf,n=(t==null?void 0:t.data)||[],i=(t==null?void 0:t.common)||{},a=(i==null?void 0:i.source)||"mosaic";let s=e;["statistics","calculate"].includes(a)&&(s=E.formatStatisticsResult(s,n));const c=[];if((d=s==null?void 0:s.history)!=null&&d.length)s.history.forEach((m,l)=>{const p=n==null?void 0:n[l];if(!p)return;const v=p.fv,y=Number(p.depth);if(!Number.isFinite(y)||!v)return;(Array.isArray(m)?m:[m]).forEach((b,H)=>{const D=(b==null?void 0:b[0])||b||{},lt=(D==null?void 0:D.time)||(D==null?void 0:D.datetime)||H,G=Number(D==null?void 0:D[v]);Number.isFinite(G)&&c.push({t:String(lt),depth:y,temp:G})})}),A.value=c;else{const m=i!=null&&i.multiObject?"":E.getObjectId(i,i==null?void 0:i.useAlias,r.uid),l=m&&((u=(h=s==null?void 0:s[m])==null?void 0:h[a])==null?void 0:u.data)||((S=s==null?void 0:s[a])==null?void 0:S.data)||(s==null?void 0:s.data)||s,p=(l==null?void 0:l.time)||(l==null?void 0:l.datetime)||Date.now();n.forEach(v=>{const y=v.fv,x=Number(v.depth),b=Number(l==null?void 0:l[y]);Number.isFinite(x)&&Number.isFinite(b)&&c.push({t:String(p),depth:x,temp:b})}),c.length&&(A.value=[...A.value,...c])}c.length&&(_(),N())};o.watch(()=>f.channels[U()],e=>{e&&P(e)},{deep:!0}),o.watchEffect(()=>{r.conf.socketData&&T.setSocketData(r.conf.socketData)}),o.watch(()=>{var e;return(e=r.conf)==null?void 0:e.options},()=>{T.getStyle().value=T.extractStyles(),N()},{deep:!0}),o.watch(()=>{var e,t;return(t=(e=r.conf)==null?void 0:e.common)==null?void 0:t.historyTimeRange},()=>{_(),N()},{deep:!0});const Y=()=>Q(null,null,function*(){var e,t,n,i,a;try{const s=r.conf||{},c=V({},s.common||{}),d=Array.isArray(s.data)?s.data.map(S=>V({},S)):[];k.value&&(c.multiObject=!1,c.useAlias=!1,c.object_id=k.value,d.forEach(S=>{S.object_id=k.value}));const h=I(V({},r),{conf:I(V({},s),{common:c,data:d})});console.info("[deepTemperatureField] 开始拉取历史数据",{uid:r.uid,source:(t=(e=r.conf)==null?void 0:e.common)==null?void 0:t.source,historyTimeRange:(i=(n=r.conf)==null?void 0:n.common)==null?void 0:i.historyTimeRange,linkedObjectId:k.value||""});const u=yield F.getHistoryData(h,"deepTemperatureField");M.value=!0,console.info("[deepTemperatureField] 历史数据返回",{hasResult:!!u,historyLen:Array.isArray(u==null?void 0:u.history)?u.history.length:0,firstHistoryRows:Array.isArray((a=u==null?void 0:u.history)==null?void 0:a[0])?u.history[0].length:0}),u&&T.setHistoryData(u)}catch(s){M.value=!0,console.warn("[deepTemperatureField] 拉取历史数据失败:",s)}});return o.onMounted(()=>{if(r.mode==="edit"&&!C.value.length){const e=["2026-03-10 00:44:43","2026-03-10 02:44:40","2026-03-10 04:44:40","2026-03-10 06:44:40","2026-03-10 08:44:40","2026-03-10 09:44:44"],t=[-122,-124,-126,-128,-130,-132,-134,-136,-138,-140,-142,-144,-146,-148,-150,-152];e.forEach(n=>{t.forEach(i=>{const a=Number((5+Math.abs(i)*.05+Math.random()*2).toFixed(2));C.value.push({t:n,depth:i,temp:a})})}),A.value=[...C.value]}Y(),N()}),(e,t)=>{const n=X.ElIcon,i=X.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(L).bgColor,borderRadius:`${o.unref(L).radiusSize}px`})},[o.unref(L).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(nt.value)},o.toDisplayString(g.conf.caption||g.conf.name),5)),o.createElementVNode("div",Ct,[o.createElementVNode("div",Dt,[o.createVNode(i,{size:"small",class:"export-btn",onClick:st},{default:o.withCtx(()=>[o.createVNode(n,null,{default:o.withCtx(()=>[o.createVNode(o.unref(ft.Download))]),_:1}),t[0]||(t[0]=o.createTextVNode(" 导出图 ",-1))]),_:1}),o.unref(L).showDebugClear?(o.openBlock(),o.createBlock(i,{key:0,size:"small",class:"clear-btn",onClick:ot},{default:o.withCtx(()=>[...t[1]||(t[1]=[o.createTextVNode(" 清空过滤 ",-1)])]),_:1})):o.createCommentVNode("",!0)]),o.createElementVNode("div",{class:"echart-container",id:o.unref(et)},null,8,Ot)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),Et=E._export_sfc(_t,[["__scopeId","data-v-4412d160"]]);exports.default=Et;
|
|
1
|
+
"use strict";var ct=Object.defineProperty,ut=Object.defineProperties;var dt=Object.getOwnPropertyDescriptors;var J=Object.getOwnPropertySymbols;var mt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var K=(g,r,f)=>r in g?ct(g,r,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[r]=f,V=(g,r)=>{for(var f in r||(r={}))mt.call(r,f)&&K(g,f,r[f]);if(J)for(var f of J(r))pt.call(r,f)&&K(g,f,r[f]);return g},I=(g,r)=>ut(g,dt(r));var Q=(g,r,f)=>new Promise((F,M)=>{var k=O=>{try{w(f.next(O))}catch(R){M(R)}},j=O=>{try{w(f.throw(O))}catch(R){M(R)}},w=O=>O.done?F(O.value):Promise.resolve(O.value).then(k,j);w((f=f.apply(g,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=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");const o=require("vue"),ft=require("@element-plus/icons-vue"),E=require("./index-CikO6qmH.cjs");require("element-plus");const ht=require("./EChartComponentBase-Cc-8Dgc8.cjs"),gt=require("./titleStyle-NSnz6cUg.cjs"),vt=require("./history-CndXrm20.cjs"),Z=require("./ele-lin-icon-Dke_1AmT.cjs"),yt=require("./install-LtoYukZU.cjs"),B=require("./installCanvasRenderer-CyhM1Qpl.cjs"),St=require("./install-C8buXQPI.cjs"),bt=require("./install-CIT6k8Ga.cjs"),Ct={class:"mix-body"},Dt={class:"toolbar"},Ot=["id"],Tt={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"深部温度场",NAME_EN:"DeepTemperatureField",ORDER:16,PLATFORM:["pc","screen"]},xt={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:30,left:50,right:60,visualMin:{value:0,type:"number",label:"温度最小值"},visualMax:{value:40,type:"number",label:"温度最大值"},points:{value:200,type:"number",label:"历史数据条数"},showDebugClear:{value:!1,type:"switch",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"}}},tt=[{name:"温度场",fv:"temp_130",depth:-130,color:"#5470c6",object_id:""},{name:"温度场",fv:"temp_140",depth:-140,color:"#5470c6",object_id:""}],Nt=["name","fv","depth","color","object_id"],kt=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],wt={useAlias:!1,multiObject:!0,source:"mosaic"},At={DEFAULT:Tt,OPTIONS:xt,DATA:tt,PARAMS:Nt,SOURCE:kt,COMMON:wt},_t=o.defineComponent(I(V({},At),{__name:"deepTemperatureField",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(g){B.use([St.install,B.install,bt.install,B.install$1,yt.install]);const r=g,f=E.useLinkStore(),F=new vt.default,M=o.ref(!1),k=o.ref("");o.ref([]);const j=e=>{if(e==null)return"";const t=typeof e=="string"?e:String(e),i=typeof e=="number"||/^\d+$/.test(t)?new Date(Number(e)):new Date(t);if(Number.isNaN(i.getTime()))return t;const a=i.getFullYear(),s=String(i.getMonth()+1).padStart(2,"0"),c=String(i.getDate()).padStart(2,"0"),d=String(i.getHours()).padStart(2,"0"),h=String(i.getMinutes()).padStart(2,"0"),u=String(i.getSeconds()).padStart(2,"0");return`${a}-${s}-${c} ${d}:${h}:${u}`},w=e=>{if(e==null)return null;const t=String(e);return/^\d+$/.test(t)?E.dayjs(Number(t)):E.dayjs(e)},O=(e,t)=>{const n=e?w(e):null,i=t?w(t):null,a=!!(e&&String(e).includes(" ")),s=!!(t&&String(t).includes(" "));return{start:n?a?n:n.startOf("day"):null,end:i?s?i:i.endOf("day"):null}};class R extends ht.EChartComponentBase{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",40),bottom:this.getOptionValue("bottom",30),left:this.getOptionValue("left",50),right:this.getOptionValue("right",60),visualMin:this.getOptionValue("visualMin",0),visualMax:this.getOptionValue("visualMax",40),showDebugClear:this.getOptionValue("showDebugClear",!1),linkChannel:i}}init(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=tt),o.nextTick(()=>this.initChart())}setHistoryData(t){W(t)}setSocketData(t){t&&W(t)}onLinkEvent(t){P(t)}getChartOption(){var i,a,s,c,d,h,u,S;const t=Number((c=(s=(a=(i=r.conf)==null?void 0:i.options)==null?void 0:a.visualMin)==null?void 0:s.value)!=null?c:this.Style.value.visualMin),n=Number((S=(u=(h=(d=r.conf)==null?void 0:d.options)==null?void 0:h.visualMax)==null?void 0:u.value)!=null?S:this.Style.value.visualMax);return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},tooltip:{position:"top",formatter:m=>{var y,x,b;const l=q.value[(y=m.value)==null?void 0:y[0]]||"-",p=z.value[(x=m.value)==null?void 0:x[1]]||"-",v=(b=m.value)==null?void 0:b[2];return`时间: ${l}<br/>深度: ${p}m<br/>温度: ${v}℃`}},xAxis:{type:"category",data:q.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,rotate:45,formatter:m=>{if(/^\d+$/.test(m)){const l=new Date(Number(m)),p=String(l.getMonth()+1).padStart(2,"0"),v=String(l.getDate()).padStart(2,"0"),y=String(l.getHours()).padStart(2,"0"),x=String(l.getMinutes()).padStart(2,"0");return`${p}-${v} ${y}:${x}`}if(m&&m.includes(" ")){const[l,p]=m.split(" "),v=l.split("-");if(v.length===3){const[y,x,b]=v,[H,D]=p.split(":");return`${x}-${b} ${H}:${D}`}}return m}}},yAxis:{type:"category",data:z.value.map(m=>String(m)),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize}},visualMap:{min:Number.isFinite(t)?t:0,max:Number.isFinite(n)?n:40,calculable:!0,orient:"vertical",right:8,top:"middle"},series:[{name:"温度场",type:"heatmap",data:it.value,label:{show:!1},emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.4)"}}}]}}}const T=new R(r,"deepTemperatureField"),et=T.getEchartId();T.setupLifecycle();const L=T.getStyle(),nt=o.computed(()=>gt.generateTitleStyle(r.conf.options)),C=o.ref([]),A=o.ref([]),q=o.computed(()=>{const e=new Set;return C.value.forEach(t=>e.add(String(t.t))),Array.from(e).sort()}),z=o.computed(()=>{const e=new Set;return C.value.forEach(t=>e.add(Number(t.depth))),Array.from(e).sort((t,n)=>t-n)}),it=o.computed(()=>{const e=new Map,t=new Map;return q.value.forEach((n,i)=>e.set(n,i)),z.value.forEach((n,i)=>t.set(n,i)),C.value.map(n=>{const i=e.get(String(n.t)),a=t.get(Number(n.depth)),s=Number(n.temp);return i===void 0||a===void 0||!Number.isFinite(s)?null:[i,a,s]}).filter(Boolean)}),N=()=>{o.nextTick(()=>{const e=T.getChartInstance();e&&e.setOption(T.getChartOption(),!0)})},st=()=>{const e=T.getChartInstance();if(!e)return;const t=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=t,n.download=`temperature-field-${Date.now()}.png`,n.click()},ot=()=>{$.value=null,_(),N()},U=()=>{var i,a,s;const e=((i=r.conf)==null?void 0:i.options)||{},t=((a=e==null?void 0:e.linkChannel)==null?void 0:a.value)||L.value.linkChannel||"deepDisplacement",n=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return t==="custom"&&n?n:t},P=e=>{var h,u,S,m;if(r.mode==="edit"||!e||!e.payload)return;const t=U();if((h=e.topic)!=null&&h.channel&&t&&e.topic.channel!==t||!f.shouldHandle(e,"deepTemperatureField"))return;const n=e.payload,i=r.conf,a=(i==null?void 0:i.data)||[],s=(i==null?void 0:i.common)||{};if(n.type==="filter"){const l=(u=n.filter)!=null?u:n;console.log("[deepTemperatureField] 收到筛选配置:",l);const p=String((l==null?void 0:l.objectId)||(l==null?void 0:l.object_id)||"").trim();p&&p!==k.value&&(k.value=p,A.value=[],C.value=[],Y()),rt(l);return}if(a.length>0&&!(s!=null&&s.multiObject)){const l=E.getObjectId(s,s==null?void 0:s.useAlias,r.uid)||((S=a[0])==null?void 0:S.object_id),p=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(l&&p&&String(l)!==String(p))return}const c=j((n==null?void 0:n.time)||(n==null?void 0:n.datetime)||((m=e.topic)==null?void 0:m.time)||Date.now()),d=[];a.forEach(l=>{const p=l.fv,v=Number(l.depth),y=Number(n==null?void 0:n[p]);Number.isFinite(v)&&Number.isFinite(y)&&d.push({t:c,depth:v,temp:y})}),d.length&&(A.value=[...A.value,...d],_(),N())},$=o.ref(null),at=o.computed(()=>{var i,a;const e=(a=(i=r.conf)==null?void 0:i.common)==null?void 0:a.historyTimeRange;if(!e)return null;const t=e.startDate||e.start_time||"",n=e.endDate||e.end_time||"";return!t&&!n?null:{startDate:t,endDate:n}}),rt=e=>{var c;if(!e){$.value=null,_(),N();return}console.log("[deepTemperatureField] 收到配置数据类型:",typeof e,e);const t=Array.isArray(e)?null:e||null;if(t){const d=t.timeRange||t.dateRange,h=t.timeList||t.selectedTimes,u={};d&&(u.startDate=d.startDate||d.start||d[0],u.endDate=d.endDate||d.end||d[1]),Array.isArray(h)&&h.length>0&&(u.timeList=h),$.value=u,_(),N();return}const n=Array.isArray(e)?e:[];if(n.length===0){console.warn("[deepTemperatureField] 配置为空或格式错误");return}const i=n.find(d=>d.type==="timeRange"),a=n.find(d=>d.type==="timeList"),s={};i&&(s.startDate=i.startDate,s.endDate=i.endDate),a&&((c=a.selectedTimes)==null?void 0:c.length)>0&&(s.timeList=a.selectedTimes),$.value=s,_(),N()},_=()=>{const e=A.value,t=$.value,n=at.value;if(t!=null&&t.timeList&&t.timeList.length>0){const i=new Set(t.timeList);C.value=e.filter(a=>{const s=String(a.t).split(" ")[0];return i.has(s)||i.has(String(a.t))});return}if(t!=null&&t.startDate||t!=null&&t.endDate){const{start:i,end:a}=O(t.startDate,t.endDate);C.value=e.filter(s=>{const c=w(s.t);return!(!c||!c.isValid()||i&&c.isBefore(i)||a&&c.isAfter(a))});return}if(n!=null&&n.startDate||n!=null&&n.endDate){const{start:i,end:a}=O(n.startDate,n.endDate);C.value=e.filter(s=>{const c=w(s.t);return!(!c||!c.isValid()||i&&c.isBefore(i)||a&&c.isAfter(a))});return}C.value=e},W=e=>{var d,h,u,S;const t=r.conf,n=(t==null?void 0:t.data)||[],i=(t==null?void 0:t.common)||{},a=(i==null?void 0:i.source)||"mosaic";let s=e;["statistics","calculate"].includes(a)&&(s=E.formatStatisticsResult(s,n));const c=[];if((d=s==null?void 0:s.history)!=null&&d.length)s.history.forEach((m,l)=>{const p=n==null?void 0:n[l];if(!p)return;const v=p.fv,y=Number(p.depth);if(!Number.isFinite(y)||!v)return;(Array.isArray(m)?m:[m]).forEach((b,H)=>{const D=(b==null?void 0:b[0])||b||{},lt=(D==null?void 0:D.time)||(D==null?void 0:D.datetime)||H,G=Number(D==null?void 0:D[v]);Number.isFinite(G)&&c.push({t:String(lt),depth:y,temp:G})})}),A.value=c;else{const m=i!=null&&i.multiObject?"":E.getObjectId(i,i==null?void 0:i.useAlias,r.uid),l=m&&((u=(h=s==null?void 0:s[m])==null?void 0:h[a])==null?void 0:u.data)||((S=s==null?void 0:s[a])==null?void 0:S.data)||(s==null?void 0:s.data)||s,p=(l==null?void 0:l.time)||(l==null?void 0:l.datetime)||Date.now();n.forEach(v=>{const y=v.fv,x=Number(v.depth),b=Number(l==null?void 0:l[y]);Number.isFinite(x)&&Number.isFinite(b)&&c.push({t:String(p),depth:x,temp:b})}),c.length&&(A.value=[...A.value,...c])}c.length&&(_(),N())};o.watch(()=>f.channels[U()],e=>{e&&P(e)},{deep:!0}),o.watchEffect(()=>{r.conf.socketData&&T.setSocketData(r.conf.socketData)}),o.watch(()=>{var e;return(e=r.conf)==null?void 0:e.options},()=>{T.getStyle().value=T.extractStyles(),N()},{deep:!0}),o.watch(()=>{var e,t;return(t=(e=r.conf)==null?void 0:e.common)==null?void 0:t.historyTimeRange},()=>{_(),N()},{deep:!0});const Y=()=>Q(null,null,function*(){var e,t,n,i,a;try{const s=r.conf||{},c=V({},s.common||{}),d=Array.isArray(s.data)?s.data.map(S=>V({},S)):[];k.value&&(c.multiObject=!1,c.useAlias=!1,c.object_id=k.value,d.forEach(S=>{S.object_id=k.value}));const h=I(V({},r),{conf:I(V({},s),{common:c,data:d})});console.info("[deepTemperatureField] 开始拉取历史数据",{uid:r.uid,source:(t=(e=r.conf)==null?void 0:e.common)==null?void 0:t.source,historyTimeRange:(i=(n=r.conf)==null?void 0:n.common)==null?void 0:i.historyTimeRange,linkedObjectId:k.value||""});const u=yield F.getHistoryData(h,"deepTemperatureField");M.value=!0,console.info("[deepTemperatureField] 历史数据返回",{hasResult:!!u,historyLen:Array.isArray(u==null?void 0:u.history)?u.history.length:0,firstHistoryRows:Array.isArray((a=u==null?void 0:u.history)==null?void 0:a[0])?u.history[0].length:0}),u&&T.setHistoryData(u)}catch(s){M.value=!0,console.warn("[deepTemperatureField] 拉取历史数据失败:",s)}});return o.onMounted(()=>{if(r.mode==="edit"&&!C.value.length){const e=["2026-03-10 00:44:43","2026-03-10 02:44:40","2026-03-10 04:44:40","2026-03-10 06:44:40","2026-03-10 08:44:40","2026-03-10 09:44:44"],t=[-122,-124,-126,-128,-130,-132,-134,-136,-138,-140,-142,-144,-146,-148,-150,-152];e.forEach(n=>{t.forEach(i=>{const a=Number((5+Math.abs(i)*.05+Math.random()*2).toFixed(2));C.value.push({t:n,depth:i,temp:a})})}),A.value=[...C.value]}Y(),N()}),(e,t)=>{const n=X.ElIcon,i=X.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(L).bgColor,borderRadius:`${o.unref(L).radiusSize}px`})},[o.unref(L).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(nt.value)},o.toDisplayString(g.conf.caption||g.conf.name),5)),o.createElementVNode("div",Ct,[o.createElementVNode("div",Dt,[o.createVNode(i,{size:"small",class:"export-btn",onClick:st},{default:o.withCtx(()=>[o.createVNode(n,null,{default:o.withCtx(()=>[o.createVNode(o.unref(ft.Download))]),_:1}),t[0]||(t[0]=o.createTextVNode(" 导出图 ",-1))]),_:1}),o.unref(L).showDebugClear?(o.openBlock(),o.createBlock(i,{key:0,size:"small",class:"clear-btn",onClick:ot},{default:o.withCtx(()=>[...t[1]||(t[1]=[o.createTextVNode(" 清空过滤 ",-1)])]),_:1})):o.createCommentVNode("",!0)]),o.createElementVNode("div",{class:"echart-container",id:o.unref(et)},null,8,Ot)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),Et=E._export_sfc(_t,[["__scopeId","data-v-4412d160"]]);exports.default=Et;
|
|
@@ -32,11 +32,11 @@ import "element-plus/es/components/button/style/css";
|
|
|
32
32
|
import "element-plus/es/components/icon/style/css";
|
|
33
33
|
import { defineComponent as Nt, ref as M, computed as F, watch as P, watchEffect as At, onMounted as kt, openBlock as W, createElementBlock as it, normalizeStyle as st, unref as E, toDisplayString as _t, createCommentVNode as ot, createElementVNode as Y, createVNode as Z, withCtx as q, createTextVNode as at, createBlock as wt, renderSlot as Mt, nextTick as rt } from "vue";
|
|
34
34
|
import { Download as Et } from "@element-plus/icons-vue";
|
|
35
|
-
import { o as Rt, Z as lt, R as Vt, d as ct, _ as $t } from "./index-
|
|
35
|
+
import { o as Rt, Z as lt, R as Vt, d as ct, _ as $t } from "./index-B5OsYU5s.js";
|
|
36
36
|
import "element-plus";
|
|
37
|
-
import { E as Lt } from "./EChartComponentBase-
|
|
37
|
+
import { E as Lt } from "./EChartComponentBase-cxF_cDzz.js";
|
|
38
38
|
import { g as Ft } from "./titleStyle-BT5GlpAb.js";
|
|
39
|
-
import It from "./history-
|
|
39
|
+
import It from "./history-D17_Q_UO.js";
|
|
40
40
|
import { A as zt, D as Ht } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
41
41
|
import { i as jt } from "./install-DNDCMXB3.js";
|
|
42
42
|
import { u as Bt, i as Ut, a as Pt } from "./installCanvasRenderer-oDYkyVFy.js";
|
|
@@ -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 Jt, ref as w, computed as F, watch as at, watchEffect as Qt, onMounted as te, openBlock as X, createElementBlock as rt, normalizeStyle as _t, unref as H, toDisplayString as ee, createCommentVNode as ne, createElementVNode as ct, createVNode as q, withCtx as ut, Fragment as ie, renderList as se, createBlock as le, createTextVNode as oe, renderSlot as ae, nextTick as Dt } from "vue";
|
|
20
20
|
import { Download as re } from "@element-plus/icons-vue";
|
|
21
|
-
import { o as ce, Z as kt, R as ue, _ as me } from "./index-
|
|
21
|
+
import { o as ce, Z as kt, R as ue, _ as me } from "./index-B5OsYU5s.js";
|
|
22
22
|
import "element-plus";
|
|
23
|
-
import { E as de } from "./EChartComponentBase-
|
|
23
|
+
import { E as de } from "./EChartComponentBase-cxF_cDzz.js";
|
|
24
24
|
import { g as fe } from "./titleStyle-BT5GlpAb.js";
|
|
25
25
|
import { u as pe, i as he, a as ve } from "./installCanvasRenderer-oDYkyVFy.js";
|
|
26
26
|
import { i as ge } from "./install-DbAuuRVv.js";
|