mixdashboards 1.1.19 → 1.1.21
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-PlZa78ff.js → AgActionsRenderer-3HKXKUJY.js} +1 -1
- package/dist/{AgActionsRenderer-Dlr21zZJ.cjs → AgActionsRenderer-DnPvuT_-.cjs} +1 -1
- package/dist/{AgGridTable-oXfzJc2L.js → AgGridTable-BQ8M3fDj.js} +1 -1
- package/dist/{AgGridTable-CE6GaYj4.cjs → AgGridTable-BQvI6jpO.cjs} +1 -1
- package/dist/{BaseComponent-DdC8fmD6.cjs → BaseComponent-DKuQG62G.cjs} +1 -1
- package/dist/{BaseComponent-Bv3RJ3vA.js → BaseComponent-Dn65PXTp.js} +3 -3
- package/dist/{EChartComponentBase-DzP0_KR9.cjs → EChartComponentBase-8GSbyY5P.cjs} +1 -1
- package/dist/{EChartComponentBase-B5seB4Mc.js → EChartComponentBase-skupRYzl.js} +2 -2
- package/dist/{EmergencyPlanPanel-tVOIWw2Q.js → EmergencyPlanPanel-C4OsnsPP.js} +1 -1
- package/dist/{EmergencyPlanPanel-9KW6SFeg.cjs → EmergencyPlanPanel-DLvOrE5U.cjs} +1 -1
- package/dist/{HistoryPlanDialog-CDFm2aaq.cjs → HistoryPlanDialog--99rPq54.cjs} +1 -1
- package/dist/{HistoryPlanDialog-BJ8jXVxW.js → HistoryPlanDialog-DI0H_vgZ.js} +1 -1
- package/dist/{MixiotAppDetailPage-CGxGF4b4.cjs → MixiotAppDetailPage-4mYR4gHm.cjs} +1 -1
- package/dist/{MixiotAppDetailPage-BY0b1cSQ.js → MixiotAppDetailPage-C_NrtqJU.js} +1 -1
- package/dist/{MonitoringMap-BhE-240t.cjs → MonitoringMap-CstXoU8n.cjs} +1 -1
- package/dist/{MonitoringMap-Caf2Shxs.js → MonitoringMap-Gxy8ldt1.js} +2 -2
- package/dist/{UniverSheet-DK1fnNou.js → UniverSheet-DGNOHAEJ.js} +2 -2
- package/dist/{UniverSheet-CoBlKEHm.cjs → UniverSheet-phDDfwXk.cjs} +1 -1
- package/dist/{accelerationChart-CpzAy4XN.cjs → accelerationChart-B_y_8Y4q.cjs} +1 -1
- package/dist/{accelerationChart-CP1QTBXX.js → accelerationChart-C4JTCc65.js} +19 -19
- package/dist/{actionItem-CcDYnjv-.cjs → actionItem-Bdw3MAAf.cjs} +1 -1
- package/dist/{actionItem-C2CUz21T.js → actionItem-CGOgCPJR.js} +2 -2
- package/dist/{alarmLevelChart-D1el5vNk.js → alarmLevelChart-BQF-4a0s.js} +2 -2
- package/dist/{alarmLevelChart-bS2UEWev.cjs → alarmLevelChart-CY4GqDio.cjs} +1 -1
- package/dist/{alertTable-BdKLNkVJ.cjs → alertTable-D3riLPwz.cjs} +1 -1
- package/dist/{alertTable-21qWBMNt.js → alertTable-DgiRdm5f.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-CpNohSP3.js → aliasObjectSelectorDemo-C7gQUdGu.js} +5 -5
- package/dist/{aliasObjectSelectorDemo-C7NLq1SO.cjs → aliasObjectSelectorDemo-DXFCCnvj.cjs} +1 -1
- package/dist/{annualRainfallChart-DDGrKSyV.js → annualRainfallChart-C1yG42iq.js} +2 -2
- package/dist/{annualRainfallChart-BvvLnmDL.cjs → annualRainfallChart-D3oUahrK.cjs} +1 -1
- package/dist/{aqi-B51UwYP8.cjs → aqi-B3g_go92.cjs} +1 -1
- package/dist/{aqi-SrcWK-ox.js → aqi-DLqM9gGc.js} +4 -4
- package/dist/{aqiIndass-DY6U7dbZ.js → aqiIndass-DDtB5_wf.js} +17 -17
- package/dist/{aqiIndass-BVxD6QC4.cjs → aqiIndass-DRYU-FAs.cjs} +1 -1
- package/dist/{areaDeformCurve-CWgMj6Ld.cjs → areaDeformCurve-CnvUJY_x.cjs} +1 -1
- package/dist/{areaDeformCurve-D3BuGscE.js → areaDeformCurve-DaLtFoJT.js} +2 -2
- package/dist/{arrayCard-9QeKfHnv.cjs → arrayCard-9p0Bkc_e.cjs} +1 -1
- package/dist/{arrayCard-qgDnMdcU.js → arrayCard-FYb8TmUw.js} +2 -2
- package/dist/{audio-CbbNeFwR.js → audio-BBXpJP54.js} +2 -2
- package/dist/{audio-lrTBdjeY.cjs → audio-DGxXcB0a.cjs} +1 -1
- package/dist/{bar-CJN8j8gU.js → bar-D26zndUl.js} +8 -8
- package/dist/{bar-BfPMVpDX.cjs → bar-btY9Pwkk.cjs} +1 -1
- package/dist/{basicShapeToolbox-eUxdwSiA.cjs → basicShapeToolbox-XR_NHK87.cjs} +1 -1
- package/dist/{basicShapeToolbox-DqSW0K9M.js → basicShapeToolbox-Y6mXTA8o.js} +7 -7
- package/dist/{bmp-pGXNGQ6L.js → bmp-C7tYeLi0.js} +2 -2
- package/dist/{bmp-BhCJePGA.cjs → bmp-DlSoc3Rw.cjs} +1 -1
- package/dist/{box-BAgrzKXC.js → box-DroQaZjH.js} +16 -16
- package/dist/{box-Be6Hpox4.cjs → box-DyIX9weX.cjs} +1 -1
- package/dist/{chartConfigPanel-BvMXZB2L.js → chartConfigPanel-D4dbsVKj.js} +1 -1
- package/dist/{chartConfigPanel-CGWijgZ-.cjs → chartConfigPanel-DvTKL5EZ.cjs} +1 -1
- package/dist/{circleBar-CGlveIpB.js → circleBar-DCnx8wNj.js} +2 -2
- package/dist/{circleBar-COsnnOW8.cjs → circleBar-DulXgWd8.cjs} +1 -1
- package/dist/{clock-CVO43_uj.js → clock-B1X6vX22.js} +2 -2
- package/dist/{clock-DgyRJ55m.cjs → clock-CeM6LdAl.cjs} +1 -1
- package/dist/{clt-Bfh4zPhb.cjs → clt-CcpO8rrD.cjs} +1 -1
- package/dist/{clt-d8tEBDXa.js → clt-IAzRVgiu.js} +15 -15
- package/dist/{cmc-B7O-zg2t.cjs → cmc-B4xRwSti.cjs} +1 -1
- package/dist/{cmc-By56qP2c.js → cmc-Swd4NfxE.js} +10 -10
- package/dist/{cmp-xri5dKb9.js → cmp--gCtei5x.js} +2 -2
- package/dist/{cmp-D73tbgfL.cjs → cmp-B9Aip3T2.cjs} +1 -1
- package/dist/{conclusionCard-EsUi-cs0.cjs → conclusionCard-CRif9GmS.cjs} +1 -1
- package/dist/{conclusionCard-Dk1KoNii.js → conclusionCard-DQ0HTHsg.js} +2 -2
- package/dist/{controlList-DlFba9SA.js → controlList-4TidO_XJ.js} +4 -4
- package/dist/{controlList-jIvwSzAZ.cjs → controlList-CwLNEkAi.cjs} +1 -1
- package/dist/{controlRecordList-Bmtp681m.cjs → controlRecordList-CuvV65TE.cjs} +1 -1
- package/dist/{controlRecordList-BJjkRs8d.js → controlRecordList-dPW6e4FN.js} +3 -3
- package/dist/{controlRecordListAPP-C_oMTkva.js → controlRecordListAPP-CObVdW3l.js} +2 -2
- package/dist/{controlRecordListAPP-C02TdcvH.cjs → controlRecordListAPP-DCzTOeXr.cjs} +1 -1
- package/dist/{crd-BS6MSmcS.cjs → crd-AH_sGivo.cjs} +1 -1
- package/dist/{crd-BYLbCcrj.js → crd-CEWC005o.js} +20 -20
- package/dist/{ctrBtn-V4qjGGtx.js → ctrBtn-8xev-mny.js} +3 -3
- package/dist/{ctrBtn-DhvhVrCW.cjs → ctrBtn-nYp9T0n0.cjs} +1 -1
- package/dist/{ctrSet-CHZZJIF7.js → ctrSet-3Q4eJSfK.js} +11 -11
- package/dist/{ctrSet-CQHpxMxP.cjs → ctrSet-z_9ztVyG.cjs} +1 -1
- package/dist/{ctrSwitch-ChvtxV9I.js → ctrSwitch-BhqYXTMZ.js} +7 -7
- package/dist/{ctrSwitch-D5n8S2_r.cjs → ctrSwitch-DacpvyBJ.cjs} +1 -1
- package/dist/{dataManagement-C3z0jdVy.js → dataManagement-BiPhJbF1.js} +2 -2
- package/dist/{dataManagement-DzESXejv.cjs → dataManagement-DP1Chfo2.cjs} +1 -1
- package/dist/{dataReport-D7WV4er3.js → dataReport-CQaL-d_q.js} +2 -2
- package/dist/{dataReport-D1myyCz7.cjs → dataReport-C_8TF5Dz.cjs} +1 -1
- package/dist/{dataTable-DkCWvmYS.js → dataTable-Bbx5XgV-.js} +1 -1
- package/dist/{dataTable-DOQRfWJN.cjs → dataTable-D6-325qb.cjs} +1 -1
- package/dist/{datetime-BfA0Yxsf.js → datetime-CmXZdgkW.js} +2 -2
- package/dist/{datetime-Dgr1l4mG.cjs → datetime-DBrUO7wD.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-BTNdbcD0.cjs → deepClusterSlipSurface-Ch8i2ql5.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-BotjleWU.js → deepClusterSlipSurface-D7o7mgg7.js} +27 -27
- package/dist/{deepDataMatrix-CqsdmOoD.js → deepDataMatrix-D9GCg496.js} +23 -23
- package/dist/{deepDataMatrix-B1glL8v7.cjs → deepDataMatrix-DoM8KUHn.cjs} +1 -1
- package/dist/{deepDisplacement3D-DNwOT442.cjs → deepDisplacement3D-C8ZRCP-R.cjs} +1 -1
- package/dist/{deepDisplacement3D-DLdpPEbS.js → deepDisplacement3D-Cjx11pre.js} +2 -2
- package/dist/{deepDisplacementChart-DjaHZ1pw.js → deepDisplacementChart-BHe83IoB.js} +23 -23
- package/dist/{deepDisplacementChart-CfGD5BrP.cjs → deepDisplacementChart-BlcS3DVl.cjs} +1 -1
- package/dist/{deepDisplacementChart-jJJQQFY6.js → deepDisplacementChart-HuWab3pz.js} +27 -27
- package/dist/{deepDisplacementChart-lDFewdsF.cjs → deepDisplacementChart-r3GIC8hq.cjs} +1 -1
- package/dist/{deepDisplacementView-B4Go1Hq0.js → deepDisplacementView-B4RBH8Ie.js} +1 -1
- package/dist/{deepDisplacementView-BH0UfjV6.cjs → deepDisplacementView-BHZQ4s3K.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-DUszGqXz.cjs → deepNodeTemperatureChart-BswYkP9V.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-9JmmT_3j.js → deepNodeTemperatureChart-D9maVN-M.js} +28 -28
- package/dist/{deepTangentAngleChart-rQ8QfuGN.js → deepTangentAngleChart-DIWKa8r3.js} +18 -18
- package/dist/{deepTangentAngleChart-C2CwkfSV.cjs → deepTangentAngleChart-DQxOv4Vz.cjs} +1 -1
- package/dist/{deepTemperatureField-C-ilAUbT.cjs → deepTemperatureField-2GBzigs_.cjs} +1 -1
- package/dist/{deepTemperatureField-CubuMfdf.js → deepTemperatureField-DlLLcuFb.js} +23 -23
- package/dist/{deepTrendChart-CLQFmRr2.cjs → deepTrendChart-CbYdfjcX.cjs} +1 -1
- package/dist/{deepTrendChart-Bo7kcMpS.js → deepTrendChart-CdX41nqe.js} +40 -40
- package/dist/{deviceOnlineStatus-DBulFfoC.cjs → deviceOnlineStatus-BMfNv4fX.cjs} +1 -1
- package/dist/{deviceOnlineStatus-CtIL7VFP.js → deviceOnlineStatus-BdOeLbLy.js} +2 -2
- package/dist/{deviceStatus-BDVPjgyN.js → deviceStatus-B8Ijgoyf.js} +15 -15
- package/dist/{deviceStatus-CF7z3bfZ.cjs → deviceStatus-CbYBmGvy.cjs} +1 -1
- package/dist/{displacementDataTable-B9HARhGm.cjs → displacementDataTable-BI8cE-vY.cjs} +1 -1
- package/dist/{displacementDataTable-GkggvGaZ.js → displacementDataTable-Cqi5Ql6a.js} +17 -17
- package/dist/{displacementTrajectoryChart-C_6Yq97U.js → displacementTrajectoryChart-D1UPR4dt.js} +30 -30
- package/dist/{displacementTrajectoryChart-CEui7uVX.cjs → displacementTrajectoryChart-DJM_B-gL.cjs} +1 -1
- package/dist/{displacementTrendChart-BStbvtyS.cjs → displacementTrendChart-C4jvpdRY.cjs} +1 -1
- package/dist/{displacementTrendChart-C40yhGCg.js → displacementTrendChart-Dii90QjN.js} +18 -18
- package/dist/{dxf-BoF0vKri.js → dxf-DAAwQlgQ.js} +2 -2
- package/dist/{dxf-CVjZUhtn.cjs → dxf-DsJIwOOJ.cjs} +1 -1
- package/dist/{dzc-B4ZvwN_l.js → dzc-BjOYTnIF.js} +5 -5
- package/dist/{dzc-Bc9cF-kF.cjs → dzc-CpML7WAZ.cjs} +1 -1
- package/dist/{emergencyPlan-DVoHbsNX.cjs → emergencyPlan-DWpGIszu.cjs} +1 -1
- package/dist/{emergencyPlan-Bae0pJIK.js → emergencyPlan-DeL1roPL.js} +3 -3
- package/dist/{evn-DwzNdVCs.js → evn-CUajXlYc.js} +2 -2
- package/dist/{evn-CwVRqTsX.cjs → evn-D0ROeiQD.cjs} +1 -1
- package/dist/{evolutionChart-xgWP4gp9.js → evolutionChart-B-2W9qVE.js} +3 -3
- package/dist/{evolutionChart-DcYx4Pka.cjs → evolutionChart-D23ALmPJ.cjs} +1 -1
- package/dist/{fileViewer-BD81tOyy.js → fileViewer-D6-jyRWy.js} +9 -9
- package/dist/{fileViewer-I2uylpjR.cjs → fileViewer-DHDmo6px.cjs} +1 -1
- package/dist/{filterBar-Dri4QUIb.cjs → filterBar-Bx0qkR7L.cjs} +1 -1
- package/dist/{filterBar-1JX2PNo7.js → filterBar-Cw-wbtF1.js} +2 -2
- package/dist/{fireCombustionCurve-B7fBz7l4.cjs → fireCombustionCurve-Dj2o6qcy.cjs} +1 -1
- package/dist/{fireCombustionCurve-Bh4mHmWN.js → fireCombustionCurve-wPPE55j_.js} +3 -3
- package/dist/{fireFilterBar-C_6JQb5k.js → fireFilterBar-COgdZt2b.js} +2 -2
- package/dist/{fireFilterBar-B916WbkV.cjs → fireFilterBar-t-aUk0FZ.cjs} +1 -1
- package/dist/{fireHistoryTable-DYbmSsbK.cjs → fireHistoryTable-BgzroLVi.cjs} +1 -1
- package/dist/{fireHistoryTable-DG0VPFRM.js → fireHistoryTable-Em_cwZSy.js} +2 -2
- package/dist/{gag-BBSJFndH.cjs → gag-C5gOltT8.cjs} +1 -1
- package/dist/{gag-BMrGqaQL.js → gag-Dd-osrR9.js} +2 -2
- package/dist/{gasStationList-yiSPtQ7o.cjs → gasStationList-CKe02Teb.cjs} +1 -1
- package/dist/{gasStationList-CgeVIXbG.js → gasStationList-CepcJ9BG.js} +3 -3
- package/dist/{geo3dViewer-DQfOfbvI.cjs → geo3dViewer-CSq4-kE-.cjs} +1 -1
- package/dist/{geo3dViewer-C9_rSsKP.js → geo3dViewer-yHqVv2BH.js} +3 -3
- package/dist/{glbModel-Dhw1Gtbr.cjs → glbModel-CBM7-1vZ.cjs} +1 -1
- package/dist/{glbModel-NldHnOVl.js → glbModel-DFDIJi5z.js} +2 -2
- package/dist/{globalObjectSelector-KnFppL_e.js → globalObjectSelector-BoBf_njv.js} +43 -43
- package/dist/{globalObjectSelector-BCPaufx_.cjs → globalObjectSelector-BvK0QxXk.cjs} +1 -1
- package/dist/{gnssFilterBar-CV4Toj67.cjs → gnssFilterBar-BabiLlIC.cjs} +1 -1
- package/dist/{gnssFilterBar-BwKMyUrQ.js → gnssFilterBar-C4Ozsjee.js} +2 -2
- package/dist/{gnssHistoryTable-CPf2oH22.cjs → gnssHistoryTable-CEtxui4z.cjs} +1 -1
- package/dist/{gnssHistoryTable-C6Wkw7OW.js → gnssHistoryTable-DWICO-OK.js} +2 -2
- package/dist/{gnssMapView-CutaT360.cjs → gnssMapView-C5IzKoTF.cjs} +2 -2
- package/dist/{gnssMapView-C-eK2r5B.js → gnssMapView-CgLO6fng.js} +4 -4
- package/dist/{gnssSectionProfile--g5C-EWx.js → gnssSectionProfile-BFU5_iQa.js} +2 -2
- package/dist/{gnssSectionProfile-EuFzJtuh.cjs → gnssSectionProfile-BcS3AU5H.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-NC4tfx2H.cjs → gnssTimeSeriesChart-2AOe01nY.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-CqmMTpuf.js → gnssTimeSeriesChart-Cyc9JVmX.js} +2 -2
- package/dist/{gnssXYTrajectory-_O0KOUM2.cjs → gnssXYTrajectory-B3HDdORI.cjs} +1 -1
- package/dist/{gnssXYTrajectory-Zpj3HyXr.js → gnssXYTrajectory-DAjqaaOt.js} +2 -2
- package/dist/{grd-BaPKVJ4W.js → grd-BdraSTc0.js} +18 -18
- package/dist/{grd-TbRuDGQr.cjs → grd-jisN3fY_.cjs} +1 -1
- package/dist/{grdIndass-3DrX62Jn.js → grdIndass-BuEWpm2p.js} +5 -5
- package/dist/{grdIndass-CKi2RLyZ.cjs → grdIndass-BxJWHgbc.cjs} +1 -1
- package/dist/{grg-Cgxf4HNj.js → grg-BiUyteXn.js} +13 -13
- package/dist/{grg-CFBuQnL1.cjs → grg-DHDNZzvS.cjs} +1 -1
- package/dist/{gridview-BhxlYHGR.cjs → gridview-C2eGcIgv.cjs} +1 -1
- package/dist/{gridview-BTGTAbxK.js → gridview-DsDgxIu-.js} +2 -2
- package/dist/{groundwaterFilterBar-BVxaSfzM.js → groundwaterFilterBar-CwNVHLoq.js} +2 -2
- package/dist/{groundwaterFilterBar-4SAnrU9X.cjs → groundwaterFilterBar-Dwoyvzll.cjs} +1 -1
- package/dist/{groundwaterProfileChart-DRv-gvDc.js → groundwaterProfileChart-pYkKSQRV.js} +3 -3
- package/dist/{groundwaterProfileChart-DnJvez9z.cjs → groundwaterProfileChart-xVZS96Bs.cjs} +2 -2
- package/dist/{groundwaterTimeCurve-8phEW2ri.cjs → groundwaterTimeCurve-CCP0yOcn.cjs} +1 -1
- package/dist/{groundwaterTimeCurve-BzBDRU4_.js → groundwaterTimeCurve-CRic1FkR.js} +3 -3
- package/dist/{groupCard-DhMy1k9J.cjs → groupCard-9mvfU5Qi.cjs} +1 -1
- package/dist/{groupCard-BPkVSNiL.js → groupCard-DyiQzmSU.js} +2 -2
- package/dist/{headerBar-BgTO4jul.cjs → headerBar-BnZZrxdl.cjs} +1 -1
- package/dist/{headerBar-DB-bjoAe.js → headerBar-CT2WWLFX.js} +2 -2
- package/dist/{history-D5cJ-xVg.js → history-CY_TCu9h.js} +18 -18
- package/dist/{history-DBDrYQmw.cjs → history-Dm7563t_.cjs} +1 -1
- package/dist/{index-C_ms8XdY.js → index-CPTJIw32.js} +1746 -1711
- package/dist/{index-DFbNT6Tf.cjs → index-DoEyCVDU.cjs} +10 -10
- package/dist/{insarDeformChart-DFF2bMqu.js → insarDeformChart-Bf6Q1Kll.js} +2 -2
- package/dist/{insarDeformChart-D_iGk8_3.cjs → insarDeformChart-D7r5dP7T.cjs} +1 -1
- package/dist/{insarImageViewer-BKewD3Uo.cjs → insarImageViewer-Cj6ywbUG.cjs} +1 -1
- package/dist/{insarImageViewer-B7UgA76F.js → insarImageViewer-CupmlYkz.js} +2 -2
- package/dist/{kds-CukCJwVJ.cjs → kds-BXJfeT1L.cjs} +1 -1
- package/dist/{kds-CacS9fZ_.js → kds-vKrvUAFM.js} +58 -58
- package/dist/{kpiCard-DV13L2GU.js → kpiCard-DxJnC2K1.js} +2 -2
- package/dist/{kpiCard-Cnm06jxN.cjs → kpiCard-SXeIckZe.cjs} +1 -1
- package/dist/{landslideMap-OIYysiUs.cjs → landslideMap-Byzuh2uI.cjs} +1 -1
- package/dist/{landslideMap-BPWu1Ajk.js → landslideMap-g1sW7hGk.js} +3 -3
- package/dist/{landslideWarning-K5mjIcfY.cjs → landslideWarning-DBYw20My.cjs} +1 -1
- package/dist/{landslideWarning-BjlYD19b.js → landslideWarning-K2gltHjy.js} +19 -19
- package/dist/{layerTabs-DTSAS0n2.js → layerTabs-DhKwbCdm.js} +2 -2
- package/dist/{layerTabs-D7fMZ0rB.cjs → layerTabs-pQHCSR8d.cjs} +1 -1
- package/dist/{leaflet-src-CzptRGB3.cjs → leaflet-src-BNvMLv27.cjs} +1 -1
- package/dist/{leaflet-src-BfJff719.js → leaflet-src-CLsvhZ1a.js} +1 -1
- package/dist/{lerc-CF_nGsay.cjs → lerc-7GSCiwa9.cjs} +1 -1
- package/dist/{lerc-CFhWDnG0.js → lerc-CqUbnv8h.js} +2 -2
- package/dist/{lin-CkatVtoy.js → lin-Bq35ycag.js} +6 -6
- package/dist/{lin-D0heXXjR.cjs → lin-D0itRkyl.cjs} +1 -1
- package/dist/{linIndass-DCv39q33.cjs → linIndass-DWiz2vOV.cjs} +1 -1
- package/dist/{linIndass-By83Npy7.js → linIndass-DYq4eFAR.js} +23 -23
- package/dist/{lst-BnazAvWe.cjs → lst-DdajeugL.cjs} +1 -1
- package/dist/{lst-DwAjJP5h.js → lst-qvTez4v1.js} +2 -2
- package/dist/{manualEntry-D3rJV8Lp.js → manualEntry-D33u42uH.js} +2 -2
- package/dist/{manualEntry-DuTfyZYG.cjs → manualEntry-s4RAoEru.cjs} +1 -1
- package/dist/{mapBackground-CJ6ix48H.js → mapBackground-DM72oEn2.js} +3 -3
- package/dist/{mapBackground-Cmhuw3k0.cjs → mapBackground-YtkaIPHY.cjs} +1 -1
- package/dist/{mappingList-5Rz-rwrk.cjs → mappingList-Ch1HZwNc.cjs} +1 -1
- package/dist/{mappingList-CGrZiJZB.js → mappingList-Dy_UeCUf.js} +4 -4
- package/dist/{markdownViewer-Dno96jfr.cjs → markdownViewer-DUjEXMVH.cjs} +1 -1
- package/dist/{markdownViewer-7WA9BEdg.js → markdownViewer-ZlwNlmLZ.js} +6 -6
- package/dist/{mix-control-modal-DgoayPIU.cjs → mix-control-modal-B3FrB7Jt.cjs} +1 -1
- package/dist/{mix-control-modal-Byfb7C-0.js → mix-control-modal-tXOouBPe.js} +8 -8
- package/dist/{mixGrid-Bhl9sZNP.cjs → mixGrid-BU9U3aHI.cjs} +1 -1
- package/dist/{mixGrid-kCUUwHZr.js → mixGrid-CogLsRzO.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +4 -4
- package/dist/{mjpegCamera-B1eioIqH.cjs → mjpegCamera-g6FXbrP3.cjs} +1 -1
- package/dist/{mjpegCamera-Dpfu2Xu6.js → mjpegCamera-xUmmLzM-.js} +2 -2
- package/dist/{monitorAlert-Dyxl86qu.cjs → monitorAlert-DZd5lJOJ.cjs} +1 -1
- package/dist/{monitorAlert-9zu3QFtA.js → monitorAlert-DhE_HvpR.js} +21 -21
- package/dist/{monitorData-CNI-qmu9.js → monitorData-BnEkcdiN.js} +8 -8
- package/dist/{monitorData-BcilR5l6.cjs → monitorData-CpWVhINV.cjs} +1 -1
- package/dist/{monitorSpeedChart-DRfPueFf.js → monitorSpeedChart-CeW-Kk03.js} +1 -1
- package/dist/{monitorSpeedChart-CF67tIu3.cjs → monitorSpeedChart-DwsoytUF.cjs} +1 -1
- package/dist/{mxa-Bh2bYtVW.cjs → mxa-0DZWI1xK.cjs} +1 -1
- package/dist/{mxa-CuLqVCIj.js → mxa-C58deh1I.js} +4 -4
- package/dist/{myValue-B50MoOtL.js → myValue-B4ADQTTG.js} +2 -2
- package/dist/{myValue-DMJxfT2O.cjs → myValue-DQLm9XLI.cjs} +1 -1
- package/dist/{myValueList-BZzwxNxa.cjs → myValueList-DZA9_HEh.cjs} +1 -1
- package/dist/{myValueList-B_3_3_pi.js → myValueList-baXd51uR.js} +2 -2
- package/dist/{objectList-TMPUnr7O.js → objectList-5m0NKALq.js} +4 -4
- package/dist/{objectList-BGh1VKcK.cjs → objectList-BHmAruDg.cjs} +1 -1
- package/dist/{objectListAPP-Bc-piPZb.js → objectListAPP-COZlfKyw.js} +3 -3
- package/dist/{objectListAPP-30bQNnu8.cjs → objectListAPP-Cs7Wu_86.cjs} +1 -1
- package/dist/{percentBar-BprMUT7A.js → percentBar-BV6nG2iK.js} +15 -15
- package/dist/{percentBar-D4xt6lAd.cjs → percentBar-CPfJrspp.cjs} +1 -1
- package/dist/{photo-zl-fLPWx.cjs → photo-C4739K_A.cjs} +1 -1
- package/dist/{photo-DsEC_PV_.js → photo-DK4Z23e3.js} +15 -15
- package/dist/{pie-CUxR3v01.js → pie-Lx2zjyZY.js} +2 -2
- package/dist/{pie-DWhlbF_v.cjs → pie-kb79hzax.cjs} +1 -1
- package/dist/{placeholder-BZFA8p97.cjs → placeholder-CAWJju9d.cjs} +1 -1
- package/dist/{placeholder-DqKmmoWY.js → placeholder-Cv_i5j6V.js} +1 -1
- package/dist/{pressBtn-DIUaklZ-.cjs → pressBtn-DPp2yGFb.cjs} +1 -1
- package/dist/{pressBtn-B2XC73jR.js → pressBtn-DwN7ExMn.js} +7 -7
- package/dist/{processTable-DkOH9QSb.js → processTable-DRzy2-fX.js} +2 -2
- package/dist/{processTable-BTx3mQeL.cjs → processTable-kGjdZ2SC.cjs} +1 -1
- package/dist/{progressBar-xgdal-aW.cjs → progressBar-89gQ5oSf.cjs} +1 -1
- package/dist/{progressBar-BLodNQVU.js → progressBar-D5GyaH8h.js} +2 -2
- package/dist/{progressCircle-CFUGOwCj.js → progressCircle-C0qoN2X2.js} +2 -2
- package/dist/{progressCircle-cTY4gz07.cjs → progressCircle-D6jGTviS.cjs} +1 -1
- package/dist/{qrcode-2Hjwjwae.js → qrcode-B7wIdO7u.js} +2 -2
- package/dist/{qrcode-DQhhuhb6.cjs → qrcode-DutO28qr.cjs} +1 -1
- package/dist/{raceBar-CyXnZF-3.js → raceBar-JrtM5isa.js} +5 -5
- package/dist/{raceBar-DcF016MT.cjs → raceBar-Kb4Ok0_0.cjs} +1 -1
- package/dist/{rad-B14cTKz2.cjs → rad-BKh0I2W8.cjs} +1 -1
- package/dist/{rad-DTJntmoq.js → rad-NhNcdAlO.js} +2 -2
- package/dist/{radarMapViewer-TsQZJeIK.js → radarMapViewer-BrGy_wsI.js} +2 -2
- package/dist/{radarMapViewer-BUB-m2dW.cjs → radarMapViewer-a-NY9MyR.cjs} +1 -1
- package/dist/{rainfallFilterBar-KdmV5zS5.js → rainfallFilterBar-CiVPGG1P.js} +2 -2
- package/dist/{rainfallFilterBar-B8up2RIh.cjs → rainfallFilterBar-DlJryHw0.cjs} +1 -1
- package/dist/{rainfallTimeCurve-Doj6yOAF.js → rainfallTimeCurve-BwrlePpg.js} +3 -3
- package/dist/{rainfallTimeCurve-CiXa2eZ3.cjs → rainfallTimeCurve-cYcKHYUj.cjs} +1 -1
- package/dist/{rangeLin-Dpq9Tvnx.cjs → rangeLin-B24wJK2h.cjs} +1 -1
- package/dist/{rangeLin-D1CqDmua.js → rangeLin-CPKLO87X.js} +18 -18
- package/dist/{realtimeEvolutionMap-DPXP3VM4.cjs → realtimeEvolutionMap-CHQ7-WE1.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-Dl7vcNX_.js → realtimeEvolutionMap-ZFozACoZ.js} +2 -2
- package/dist/{regionBar-BwpGCKZj.js → regionBar-Cz4GtJuo.js} +2 -2
- package/dist/{regionBar-lxLnSNLC.cjs → regionBar-Dgv2JYSM.cjs} +1 -1
- package/dist/{request-DTE7aSW-.cjs → request-Dm2cf1Aw.cjs} +1 -1
- package/dist/{request-CbeEcJTO.js → request-aXSa-Jdv.js} +24 -24
- package/dist/{retainer1-D67S-YCN.js → retainer1-B4KyW6bw.js} +3 -3
- package/dist/{retainer1-C9AaH4tJ.cjs → retainer1-B6byWkE5.cjs} +1 -1
- package/dist/{retainer2-D8XYk-l4.cjs → retainer2-B06eGTYw.cjs} +1 -1
- package/dist/{retainer2-Cbdmf703.js → retainer2-X6vRW_D5.js} +3 -3
- package/dist/{retainerRecordList-CQjYV-M3.cjs → retainerRecordList-C8wYAf_v.cjs} +1 -1
- package/dist/{retainerRecordList-BpK_6Dnu.js → retainerRecordList-DDZSYpCF.js} +4 -4
- package/dist/{retainerRecordListAPP-BFGsCYj8.js → retainerRecordListAPP-B2Lp-jHM.js} +3 -3
- package/dist/{retainerRecordListAPP-CN59kp5A.cjs → retainerRecordListAPP-BHu691JS.cjs} +1 -1
- package/dist/{ringTopN-BeX_3N1q.cjs → ringTopN-BpJZOE13.cjs} +1 -1
- package/dist/{ringTopN-5r3Oe5jp.js → ringTopN-DX7OzPp7.js} +2 -2
- package/dist/{riskRegionTable-NiRJaNeQ.js → riskRegionTable-D7blgvMi.js} +2 -2
- package/dist/{riskRegionTable-DoSf3hpC.cjs → riskRegionTable-DziKMS_2.cjs} +1 -1
- package/dist/{sankey-ByGbWPFb.js → sankey-CmgfktZj.js} +14 -14
- package/dist/{sankey-Bnpk9cLQ.cjs → sankey-DjC4IYit.cjs} +1 -1
- package/dist/{scd-CnENqnZz.cjs → scd-QV9whYOR.cjs} +1 -1
- package/dist/{scd-Cfds38KL.js → scd-zUFKqN8p.js} +2 -2
- package/dist/{sideMenu-BPaBkvIX.js → sideMenu-CI23QNpx.js} +2 -2
- package/dist/{sideMenu-CXIHqey7.cjs → sideMenu-POQpSa8C.cjs} +1 -1
- package/dist/{slopeStability-Dl-cz8Fw.cjs → slopeStability-Da70drIy.cjs} +1 -1
- package/dist/{slopeStability-C9Hla3Dk.js → slopeStability-E55huDws.js} +24 -24
- package/dist/{speedCurve-kxsxCadk.js → speedCurve-BhhUH79z.js} +2 -2
- package/dist/{speedCurve-E6CSZYlW.cjs → speedCurve-DSX1UJeW.cjs} +1 -1
- package/dist/{stackedBar-Bh3u04a1.cjs → stackedBar-B0kr6QB7.cjs} +1 -1
- package/dist/{stackedBar-agXLBb7l.js → stackedBar-bgd2Ls04.js} +2 -2
- package/dist/stationList-BSPTM0iI.cjs +1 -0
- package/dist/{stationList-BUGSaLOZ.js → stationList-D7k3Lot6.js} +243 -239
- package/dist/{stressFilterBar-DP_KLGts.cjs → stressFilterBar-B3gk67B_.cjs} +1 -1
- package/dist/{stressFilterBar-HdY7po9C.js → stressFilterBar-Beupo7Zb.js} +2 -2
- package/dist/{stressTimeCurve-B6s5FgJE.cjs → stressTimeCurve-CbhFLXzA.cjs} +1 -1
- package/dist/{stressTimeCurve-ItQcQKdH.js → stressTimeCurve-DGBhkdbV.js} +3 -3
- package/dist/{swiper-D6TV4ZCd.js → swiper-BEau8Ehu.js} +2 -2
- package/dist/{swiper-Buxmd32g.cjs → swiper-UlVDFht8.cjs} +1 -1
- package/dist/{tablemanCreate-wybANxe3.cjs → tablemanCreate-CF_D5gYW.cjs} +1 -1
- package/dist/{tablemanCreate-CZgA3PsQ.js → tablemanCreate-WnNbHft8.js} +3 -3
- package/dist/{tablemanDetail-BRTZJyW5.cjs → tablemanDetail-_SNevfWv.cjs} +1 -1
- package/dist/{tablemanDetail-DfWhFk1K.js → tablemanDetail-yz3zQnFP.js} +36 -36
- package/dist/{tablemanList-BO_NeJgz.cjs → tablemanList-CDJWp9Pu.cjs} +1 -1
- package/dist/{tablemanList-BaOBHZ0V.js → tablemanList-CzcVRDtI.js} +4 -4
- package/dist/{tablemanTableList-Dbq82Z-h.js → tablemanTableList-Bm2fU0EX.js} +4 -4
- package/dist/{tablemanTableList-sMrfmiA9.cjs → tablemanTableList-DX76_Wzv.cjs} +1 -1
- package/dist/{tablemanUpdate-VmkxfpIh.cjs → tablemanUpdate-wdF6NUSW.cjs} +1 -1
- package/dist/{tablemanUpdate-KALCUbVd.js → tablemanUpdate-zmDu6tfj.js} +3 -3
- package/dist/{terminalConfigList-DjFLDQih.js → terminalConfigList-CCTkfKIn.js} +4 -4
- package/dist/{terminalConfigList-BVI2GPl0.cjs → terminalConfigList-Dpktm7uo.cjs} +1 -1
- package/dist/{terminalList-DQeF169Z.js → terminalList-DTG1Cd-P.js} +4 -4
- package/dist/{terminalList-DuW8drr5.cjs → terminalList-DlnAYr5c.cjs} +1 -1
- package/dist/{terminalListAPP-Brlll6Fx.js → terminalListAPP-BXX0YEmN.js} +3 -3
- package/dist/{terminalListAPP-D1ZHyTf5.cjs → terminalListAPP-DcG5Iu89.cjs} +1 -1
- package/dist/{textbox-DDpkVlaw.cjs → textbox-C5DmbaFz.cjs} +1 -1
- package/dist/{textbox-mnxb35mH.js → textbox-DyFcEXBF.js} +2 -2
- package/dist/{timeQueryBar-EKkIhz9m.js → timeQueryBar-BbWq3QkA.js} +1 -1
- package/dist/{timeQueryBar-BQD19vDp.cjs → timeQueryBar-OqKVqlTl.cjs} +1 -1
- package/dist/{timeSeries-CDjeGZKo.cjs → timeSeries-BDp-gfRT.cjs} +1 -1
- package/dist/{timeSeries-Bk2N1A6L.js → timeSeries-D_-6XcY8.js} +13 -13
- package/dist/{timeSeriesCurve-BRrpaqU8.js → timeSeriesCurve-DgSGvMqB.js} +3 -3
- package/dist/{timeSeriesCurve-CA5W-Oir.cjs → timeSeriesCurve-KPYndFEq.cjs} +1 -1
- package/dist/{toggleBtn-WYU3IUc8.js → toggleBtn-D0JJAMZR.js} +2 -2
- package/dist/{toggleBtn-CGYR01jI.cjs → toggleBtn-DtS2UoB4.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-y4bXsrXJ.cjs → trajectoryConfigPanel-Bth1LMLN.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-BdTmJQzP.js → trajectoryConfigPanel-DxBIMfEx.js} +1 -1
- package/dist/{trajectoryScatter-Clb_fUfI.js → trajectoryScatter-DqgFAVSz.js} +42 -42
- package/dist/{trajectoryScatter-CQik1fcT.cjs → trajectoryScatter-GkbJne40.cjs} +1 -1
- package/dist/{universalConfigPanel-B5k_qOEq.js → universalConfigPanel-BjyXE23U.js} +1 -1
- package/dist/{universalConfigPanel-Dfbc5SvD.cjs → universalConfigPanel-C4Teu_Op.cjs} +1 -1
- package/dist/{universalTable-DoiFrrZH.js → universalTable-BVwrJKq8.js} +2 -2
- package/dist/{universalTable-CcQq8qmA.cjs → universalTable-D_rkyBG2.cjs} +1 -1
- package/dist/{useMixiotPanelPopperClass-BAb3JPdj.js → useMixiotPanelPopperClass-C6Y6iPSp.js} +3 -3
- package/dist/{useMixiotPanelPopperClass-B0l54_PF.cjs → useMixiotPanelPopperClass-DmA-0R1V.cjs} +1 -1
- package/dist/{useTablemanApi-D4G6rvXH.cjs → useTablemanApi-Big2Hfsi.cjs} +1 -1
- package/dist/{useTablemanApi-BXR_OKzO.js → useTablemanApi-CJh5jpVJ.js} +1 -1
- package/dist/{useTablemanFormPanel-JcWza2YJ.js → useTablemanFormPanel-CvrN_jY3.js} +2 -2
- package/dist/{useTablemanFormPanel-DTcITWwz.cjs → useTablemanFormPanel-prjUDI9m.cjs} +1 -1
- package/dist/{useTablemanListActions-COZ3zBoW.cjs → useTablemanListActions-B9SrCZRt.cjs} +1 -1
- package/dist/{useTablemanListActions-BUFJCLAW.js → useTablemanListActions-DVQL1pwu.js} +5 -5
- package/dist/{video-DylR59_l.cjs → video-CdMEjVoF.cjs} +1 -1
- package/dist/{video-CtiQVOnv.js → video-DDHDy4Eq.js} +2 -2
- package/dist/{videoMonitor-tBmgk3mm.cjs → videoMonitor-BZcjaMPX.cjs} +1 -1
- package/dist/{videoMonitor-8rqFRzST.js → videoMonitor-JQ4tj-qi.js} +11 -11
- package/dist/{vlu-B93iwAL3.cjs → vlu-39EqfkCs.cjs} +1 -1
- package/dist/{vlu-Bvbgox5l.js → vlu-Bmqrgnj8.js} +2 -2
- package/dist/{warningOverview-Drd9VneD.js → warningOverview-Ctab9k92.js} +3 -3
- package/dist/{warningOverview-igfNPVvg.cjs → warningOverview-DOsI-iKt.cjs} +1 -1
- package/dist/{weather-BVB786-I.cjs → weather-BfV-w4FG.cjs} +1 -1
- package/dist/{weather-Db_sZvLk.js → weather-BwTT4bPM.js} +2 -2
- package/dist/{windLin-D09MKfNK.cjs → windLin-Dfz6aBio.cjs} +1 -1
- package/dist/{windLin-M0ehkFjJ.js → windLin-DgZctBal.js} +2 -2
- package/package.json +1 -1
- package/dist/stationList-CnwkdvHq.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Fe=Object.defineProperty,Me=Object.defineProperties;var $e=Object.getOwnPropertyDescriptors;var Le=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable;var Ce=(b,a,S)=>a in b?Fe(b,a,{enumerable:!0,configurable:!0,writable:!0,value:S}):b[a]=S,ie=(b,a)=>{for(var S in a||(a={}))ze.call(a,S)&&Ce(b,S,a[S]);if(Le)for(var S of Le(a))Be.call(a,S)&&Ce(b,S,a[S]);return b},le=(b,a)=>Me(b,$e(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const o=require("vue"),qe=require("@element-plus/icons-vue"),P=require("./index-DFbNT6Tf.cjs");require("element-plus");const Pe=require("./EChartComponentBase-DzP0_KR9.cjs"),Ze=require("./titleStyle-NSnz6cUg.cjs"),se=require("./installCanvasRenderer-CyhM1Qpl.cjs"),He=require("./install-C8buXQPI.cjs"),Ue=require("./install-CltTFs4e.cjs"),Ye=require("./install-CYwVETsi.cjs"),je="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e趋势%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-299.000000,%20-723.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M313.60741,723.132248%20C314.376525,723.132248%20315,723.755729%20315,724.524838%20L315,724.524838%20L315,737.73953%20C315,738.508647%20314.376527,739.13212%20313.60741,739.13212%20L313.60741,739.13212%20L300.392953,739.13212%20C299.623869,739.13212%20299.000384,738.508663%20299.000363,737.739585%20L299.000363,737.739585%20L299,724.524856%20C299,723.755744%20299.623475,723.132248%20300.39259,723.132248%20L300.39259,723.132248%20Z%20M302.67,728.130248%20L300.316,728.132248%20L300.317244,737.739549%20C300.317245,737.770894%20300.336313,737.797797%20300.363485,737.80929%20L300.392953,737.815239%20L302.67,737.814248%20L302.67,728.130248%20Z%20M313.682,728.120248%20L303.987,728.129248%20L303.987,737.814248%20L313.60741,737.815239%20C313.638778,737.815239%20313.665681,737.796179%20313.677171,737.769004%20L313.683119,737.73953%20L313.683,728.944248%20L313.682972,728.929735%20L313.682,728.120248%20Z%20M310.871101,729.12887%20L310.952715,729.198297%20L312.604552,730.850134%20C312.861689,731.107271%20312.861689,731.524172%20312.604552,731.781309%20C312.373129,732.012732%20312.012296,732.035875%20311.754991,731.850736%20L311.673377,731.781309%20L311.145,731.253248%20L311.145752,734.805978%20C311.145752,735.139321%20310.898043,735.414808%20310.576658,735.458408%20L310.487311,735.464419%20L307.124,735.464248%20L307.649042,735.98918%20C307.906179,736.246317%20307.906179,736.663219%20307.649042,736.920356%20C307.417619,737.151779%20307.056787,737.174921%20306.799482,736.989783%20L306.717867,736.920356%20L305.066031,735.268519%20L305.054021,735.255814%20C305.041374,735.242301%20305.029291,735.228255%20305.017807,735.213713%20L305.066031,735.268519%20C305.034539,735.237027%20305.006903,735.203139%20304.983125,735.167441%20C304.9807,735.16179%20304.977592,735.156913%20304.974547,735.151993%20C304.832434,734.927859%20304.840126,734.636431%20304.996604,734.418958%20L305.066031,734.337344%20L306.717867,732.685507%20C306.975004,732.428371%20307.391905,732.428371%20307.649042,732.685507%20C307.880466,732.916931%20307.903608,733.277763%20307.718469,733.535068%20L307.649042,733.616683%20L307.117,734.147248%20L309.828389,734.1469%20L309.828,731.252248%20L309.300879,731.781309%20C309.043742,732.038446%20308.626841,732.038446%20308.369704,731.781309%20C308.13828,731.549886%20308.115138,731.189053%20308.300277,730.931748%20L308.369704,730.850134%20L310.02154,729.198297%20C310.252963,728.966874%20310.613796,728.943732%20310.871101,729.12887%20Z%20M313.60741,724.449129%20L300.39259,724.449129%20C300.350778,724.449129%20300.316881,724.483027%20300.316881,724.524838%20L300.316881,724.524838%20L300.316,726.815248%20L313.682,726.803248%20L313.682972,725.258988%20L313.683,725.246248%20L313.683119,724.524838%20C313.683119,724.493474%20313.664056,724.46657%20313.636882,724.455078%20L313.60741,724.449129%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Re="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e趋势%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-299.000000,%20-723.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M313.60741,723.132248%20C314.376525,723.132248%20315,723.755729%20315,724.524838%20L315,724.524838%20L315,737.73953%20C315,738.508647%20314.376527,739.13212%20313.60741,739.13212%20L313.60741,739.13212%20L300.392953,739.13212%20C299.623869,739.13212%20299.000384,738.508663%20299.000363,737.739585%20L299.000363,737.739585%20L299,724.524856%20C299,723.755744%20299.623475,723.132248%20300.39259,723.132248%20L300.39259,723.132248%20Z%20M302.67,728.130248%20L300.316,728.132248%20L300.317244,737.739549%20C300.317245,737.770894%20300.336313,737.797797%20300.363485,737.80929%20L300.392953,737.815239%20L302.67,737.814248%20L302.67,728.130248%20Z%20M313.682,728.120248%20L303.987,728.129248%20L303.987,737.814248%20L313.60741,737.815239%20C313.638778,737.815239%20313.665681,737.796179%20313.677171,737.769004%20L313.683119,737.73953%20L313.683,728.944248%20L313.682972,728.929735%20L313.682,728.120248%20Z%20M310.871101,729.12887%20L310.952715,729.198297%20L312.604552,730.850134%20C312.861689,731.107271%20312.861689,731.524172%20312.604552,731.781309%20C312.373129,732.012732%20312.012296,732.035875%20311.754991,731.850736%20L311.673377,731.781309%20L311.145,731.253248%20L311.145752,734.805978%20C311.145752,735.139321%20310.898043,735.414808%20310.576658,735.458408%20L310.487311,735.464419%20L307.124,735.464248%20L307.649042,735.98918%20C307.906179,736.246317%20307.906179,736.663219%20307.649042,736.920356%20C307.417619,737.151779%20307.056787,737.174921%20306.799482,736.989783%20L306.717867,736.920356%20L305.066031,735.268519%20L305.054021,735.255814%20C305.041374,735.242301%20305.029291,735.228255%20305.017807,735.213713%20L305.066031,735.268519%20C305.034539,735.237027%20305.006903,735.203139%20304.983125,735.167441%20C304.9807,735.16179%20304.977592,735.156913%20304.974547,735.151993%20C304.832434,734.927859%20304.840126,734.636431%20304.996604,734.418958%20L305.066031,734.337344%20L306.717867,732.685507%20C306.975004,732.428371%20307.391905,732.428371%20307.649042,732.685507%20C307.880466,732.916931%20307.903608,733.277763%20307.718469,733.535068%20L307.649042,733.616683%20L307.117,734.147248%20L309.828389,734.1469%20L309.828,731.252248%20L309.300879,731.781309%20C309.043742,732.038446%20308.626841,732.038446%20308.369704,731.781309%20C308.13828,731.549886%20308.115138,731.189053%20308.300277,730.931748%20L308.369704,730.850134%20L310.02154,729.198297%20C310.252963,728.966874%20310.613796,728.943732%20310.871101,729.12887%20Z%20M313.60741,724.449129%20L300.39259,724.449129%20C300.350778,724.449129%20300.316881,724.483027%20300.316881,724.524838%20L300.316881,724.524838%20L300.316,726.815248%20L313.682,726.803248%20L313.682972,725.258988%20L313.683,725.246248%20L313.683119,724.524838%20C313.683119,724.493474%20313.664056,724.46657%20313.636882,724.455078%20L313.60741,724.449129%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ge={class:"mix-body"},Ke={class:"toolbar"},We=["id"],Xe={DEFAULT_ICON:je,ACTIVE_ICON:Re,NAME_CN:"深部趋势图",NAME_EN:"DeepTrendChart",ORDER:21,PLATFORM:["pc","screen"]},Je={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:56,bottom:52,left:64,right:36,xName:{value:"位移量",type:"string",label:"X轴名称"},yName:{value:"高程(m)",type:"string",label:"Y轴名称"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Se=[{name:"累计位移",fv:"disp_130",depth:-130,color:"#5470c6",object_id:""},{name:"累计位移",fv:"disp_140",depth:-140,color:"#5470c6",object_id:""}],Qe=["name","fv","depth","color","object_id"],et=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],tt={useAlias:!1,multiObject:!0,source:"mosaic"},nt={DEFAULT:Xe,OPTIONS:Je,DATA:Se,PARAMS:Qe,SOURCE:et,COMMON:tt},it=o.defineComponent(le(ie({},nt),{__name:"deepTrendChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(b){se.use([He.install,se.install,Ue.install,se.install$1,Ye.install]);const a=b,S=P.useLinkStore(),O=o.ref([]),m=o.ref([]),y=o.ref(""),V=o.ref([]),Z=o.ref("s"),oe=o.ref(null),H=o.ref("hour");class ye extends Pe.EChartComponentBase{constructor(){super(...arguments),this.panelConfig={}}extractStyles(){const t=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),i=t==="custom"&&n?n:t;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",56),bottom:this.getOptionValue("bottom",52),left:this.getOptionValue("left",64),right:this.getOptionValue("right",36),xName:this.getOptionValue("xName","位移量"),yName:this.getOptionValue("yName","高程(m)"),linkChannel:i}}init(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=Se),o.nextTick(()=>this.initChart())}setHistoryData(t){pe(t)}setSocketData(t){t&&pe(t)}onLinkEvent(t){he(t)}setPanelConfig(t){this.panelConfig=t||{}}getChartOption(){var g;M.value;const t=((g=a.conf)==null?void 0:g.data)||[],n=this.panelConfig||{},i=n.range__xAxis||n.range__x||n.range||null,s=n.range__yAxis||null,l=Number.isFinite(i==null?void 0:i.min)?Number(i==null?void 0:i.min):null,r=Number.isFinite(i==null?void 0:i.max)?Number(i==null?void 0:i.max):null,c=Number.isFinite(s==null?void 0:s.min)?Number(s==null?void 0:s.min):null,u=Number.isFinite(s==null?void 0:s.max)?Number(s==null?void 0:s.max):null;return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},legend:{top:4,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"item",formatter:f=>{var v,h,d,p;return`位移量: ${(h=(v=f==null?void 0:f.value)==null?void 0:v[0])!=null?h:"-"}<br/>高程: ${(p=(d=f==null?void 0:f.value)==null?void 0:d[1])!=null?p:"-"}m`}},xAxis:{type:"value",name:this.Style.value.xName,nameLocation:"middle",nameGap:28,position:"bottom",min:l!==null?l:null,max:r!==null?r:null,axisLine:{onZero:!1},axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},yAxis:{type:"value",name:this.Style.value.yName,min:c!==null?c:null,max:u!==null?u:null,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:(()=>{const f=ue.value.length?ue.value:M.value?[M.value]:[];if(!f.length)return[];const v=new Map;t.forEach((d,p)=>{const C=(d==null?void 0:d.name)||`序列${p+1}`;v.has(C)||v.set(C,{name:C,color:d==null?void 0:d.color,items:[]}),v.get(C).items.push(d)});const h=[];return f.forEach(d=>{const p=((d==null?void 0:d.points)||[])[0]||{};Array.from(v.values()).forEach(C=>{const E=C.items.map(N=>{var q,L;const w=N==null?void 0:N.fv,R=me(p,w,Z.value),z=Number(R),B=Number((L=(q=N==null?void 0:N.depth)!=null?q:p==null?void 0:p.depth)!=null?L:p==null?void 0:p.elevation);return!Number.isFinite(z)||!Number.isFinite(B)?null:[z,B]}).filter(Boolean).sort((N,w)=>N[1]-w[1]);h.push({name:C.name,type:"line",data:E,showSymbol:!0,symbolSize:6,lineStyle:{color:C.color||"#5470c6",width:2},itemStyle:{color:C.color||"#5470c6"}})})}),h})()}}}const k=new ye(a,"deepTrendChart"),re=k.getEchartId();k.setupLifecycle();const U=k.getStyle(),Ne=o.computed(()=>Ze.generateTitleStyle(a.conf.options)),Y=e=>{const t=String(e||"");if(!t)return"";const n=de(t);if(Number.isNaN(n))return t.slice(0,10);const i=new Date(n),s=i.getFullYear(),l=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0");return`${s}-${l}-${r}`},be=e=>{var s;const t=((s=a.conf)==null?void 0:s.data)||[];if(!e.length||!t.length)return e;const n=new Map;e.forEach(l=>{const r=Y(l.time);n.has(r)||n.set(r,[]),n.get(r).push(l)});const i=[];return Array.from(n.entries()).forEach(([l,r])=>{const c={};t.forEach(u=>{const g=u==null?void 0:u.fv;if(!g)return;let f=0,v=0;if(r.forEach(h=>{const d=((h==null?void 0:h.points)||[])[0]||{},p=Number(me(d,g,Z.value));Number.isFinite(p)&&(f+=p,v+=1)}),v>0){const h=Number((f/v).toFixed(6)),d=$(g,Z.value);c[g]=h,c[d]=h}}),Object.keys(c).length>0&&i.push({time:l,points:[c]})}),i.sort((l,r)=>String(l.time).localeCompare(String(r.time)))},F=o.computed(()=>H.value==="day"?be(m.value):m.value),xe=o.computed(()=>ce.value.map(e=>({value:e.time,label:H.value==="day"?Y(e.time):W(e.time)}))),M=o.computed(()=>{const e=y.value,t=F.value;return t.find(n=>n.time===e)||t[t.length-1]||null}),ae=(e,t)=>{const n=String(e||"").trim(),i=String(t||"").trim();if(!n||!i)return!1;if(n===i)return!0;const s=W(n),l=W(i);return s&&l&&s===l?!0:H.value!=="day"?!1:Y(n)===Y(i)},_e=(e,t)=>{if(!(t!=null&&t.startDate)&&!(t!=null&&t.endDate))return!0;const n=new Date(e).getTime();if(Number.isNaN(n))return!0;const i=t.startDate?new Date(t.startDate).getTime():Number.NEGATIVE_INFINITY,s=t.endDate?new Date(t.endDate).getTime():Number.POSITIVE_INFINITY;if(Number.isNaN(i)&&Number.isNaN(s))return!0;const l=Number.isNaN(i)?Number.NEGATIVE_INFINITY:i,r=Number.isNaN(s)?Number.POSITIVE_INFINITY:s;return n>=l&&n<=r},ce=o.computed(()=>{if(!F.value.length)return[];const e=oe.value;return!(e!=null&&e.startDate)&&!(e!=null&&e.endDate)?F.value:F.value.filter(t=>_e(t.time,e))}),ue=o.computed(()=>{const e=ce.value;if(V.value.length>0)return e.filter(t=>V.value.some(n=>ae(t.time,n)));if(e.length>0){const t=e.find(n=>n.time===y.value);return t?[t]:[e[e.length-1]]}return M.value?[M.value]:[]});o.watch(()=>m.value.length,()=>{!V.value.length&&m.value.length&&(y.value=m.value[m.value.length-1].time)});const de=e=>{if(e==null)return Number.NaN;const t=typeof e=="string"?e.trim():String(e);if(!t)return Number.NaN;if(/^\d+$/.test(t)){const n=Number(t);return t.length<=10?n*1e3:n}return new Date(t).getTime()},W=e=>{if(e==null)return"";const t=typeof e=="string"?e:String(e),n=de(e),i=Number.isNaN(n)?null:new Date(n);if(!i||Number.isNaN(i.getTime()))return t;const s=i.getFullYear(),l=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0"),c=String(i.getHours()).padStart(2,"0"),u=String(i.getMinutes()).padStart(2,"0"),g=String(i.getSeconds()).padStart(2,"0");return`${s}-${l}-${r} ${c}:${u}:${g}`},D=()=>{o.nextTick(()=>{const e=k.getChartInstance();e&&e.setOption(k.getChartOption(),!0)})},ke=()=>D(),De=()=>{const e=k.getChartInstance();if(!e)return;const t=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=t,n.download=`deep-trend-${y.value||Date.now()}.png`,n.click()},X=()=>{var i,s,l;const e=((i=a.conf)==null?void 0:i.options)||{},t=((s=e==null?void 0:e.linkChannel)==null?void 0:s.value)||U.value.linkChannel||"deepDisplacement",n=((l=e==null?void 0:e.customChannel)==null?void 0:l.value)||"";return t==="custom"&&n?n:t},j=()=>{const e=X();if(!e)return;const t=F.value.map(n=>n.time);S.publish(e,"deepTrendChart",{objectId:a.uid||"",type:"timeList",timeList:t})},J=(e,t,n="points")=>{const i=e==null?void 0:e[n];if(Array.isArray(i)&&i.length)return i;const s={};let l=!1;return t.forEach(r=>{var g;const c=r==null?void 0:r.fv;if(!c)return;Oe(s,e,c),(s[c]!==void 0||s[$(c,"s")]!==void 0||s[$(c,"x")]!==void 0||s[$(c,"y")]!==void 0)&&(l=!0);const u=(g=e==null?void 0:e.elevation)!=null?g:e==null?void 0:e.depth;u!=null&&(s.elevation=u,s.depth=u)}),l?[s]:[]},$=(e,t)=>{if(!e)return e;const n=e.match(/_(\d+)$/);return n?`${t}_${n[1]}`:e},me=(e,t,n)=>{if(!e||!t)return;const s=[$(t,n),`${t}_${n}`,`${n}_${t}`].filter(Boolean);for(const l of s){const r=e==null?void 0:e[l];if(r!=null)return r}if(n==="s"){const l=e==null?void 0:e[t];if(l!=null)return l}},Oe=(e,t,n)=>{var l;if(!e||!t||!n)return;const i=(l=n.match(/_(\d+)$/))==null?void 0:l[1],s=t==null?void 0:t[n];s!=null&&(e[n]=s),i&&["s","x","y"].forEach(r=>{const c=`${r}_${i}`,u=t==null?void 0:t[c];u!=null&&(e[c]=u)})},fe=e=>{var l;const t=((l=a.conf)==null?void 0:l.data)||[],i=(t[0]||{}).points_fv||"points",s=[];return e.forEach((r,c)=>{var v,h;const u=(r==null?void 0:r[0])||r||{},g=String((h=(v=u==null?void 0:u.time)!=null?v:u==null?void 0:u.datetime)!=null?h:c),f=J(u,t,i);f.length&&s.push({time:g,points:f})}),s},he=e=>{var f,v,h,d,p,C,E,N,w,R,z,B,q;if(!e||!e.payload)return;const t=X();if((f=e.topic)!=null&&f.channel&&t&&e.topic.channel!==t||!S.shouldHandle(e,"deepTrendChart"))return;const n=e.payload;if((n==null?void 0:n.type)==="filter"){const L=n.filter||n,A=Object.entries(L||{}).find(([x,_])=>{if(typeof _!="string")return!1;if(String(x||"").toLowerCase().includes("direction"))return!0;const Ae=String(_).toLowerCase();return["s","x","y"].includes(Ae)}),Te=L.direction||L.displacementDirection||(A==null?void 0:A[1])||"",Q={s:"s",x:"x",y:"y"}[String(Te).toLowerCase()],G=String((n==null?void 0:n.objectId)||(n==null?void 0:n.object_id)||"").trim(),Ie=((v=a.conf)==null?void 0:v.data)||[],Ee=String(((h=Ie[0])==null?void 0:h.configPanelId)||"").trim(),ve=[a.uid,re,(d=a.conf)==null?void 0:d.id,(p=a.conf)==null?void 0:p.uid,(C=a.conf)==null?void 0:C.name,(E=a.conf)==null?void 0:E.caption,(N=a.conf)==null?void 0:N.type,Ee,"deepTrendChart","DeepTrendChart","深部趋势图"].map(x=>String(x||"").trim()).filter(Boolean),Ve=new Set(ve),we=new Set(ve.map(x=>x.toLowerCase()));if(!(!G||Ve.has(G)||we.has(G.toLowerCase())||G.startsWith("deepTrendChart_")))return;const ee=Object.entries(L||{}).find(([x,_])=>{if(!_||typeof _!="object"||Array.isArray(_))return!1;const I=String(x||"").toLowerCase();return I.includes("time")&&I.includes("range")||!!_.startDate&&!!_.endDate}),T=(ee==null?void 0:ee[1])||L.timeRange||L.range||null;oe.value=T&&(T.startDate||T.endDate)?{startDate:T.startDate,endDate:T.endDate}:null;const te=String((T==null?void 0:T.granularity)||(L==null?void 0:L.granularity)||"").toLowerCase();(te==="day"||te==="hour")&&(H.value=te);const ne=Object.entries(L||{}).find(([x,_])=>{if(!Array.isArray(_))return!1;const I=String(x||"").toLowerCase();return I.includes("time")||I.includes("date")}),ge=L.timeList||L.selectedTimes||(ne==null?void 0:ne[1]);if(k.setPanelConfig(L),Array.isArray(ge)&&(V.value=ge.map(x=>String(x)),V.value.length>0)){const x=V.value[0],_=m.value.find(I=>ae(I.time,x));_&&(y.value=_.time)}if(Q&&["s","x","y"].includes(Q)){Z.value=Q,D();return}D();return}const i=a.conf,s=(i==null?void 0:i.data)||[],l=(i==null?void 0:i.common)||{};if(s.length>0&&!(l!=null&&l.multiObject)){const L=P.getObjectId(l,l==null?void 0:l.useAlias,a.uid)||((w=s[0])==null?void 0:w.object_id),A=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(L&&A&&String(L)!==String(A))return}if(Array.isArray(n==null?void 0:n.history)){O.value=fe(n.history),m.value=[...O.value],m.value.length&&(y.value=m.value[m.value.length-1].time),j(),D();return}const c=(s[0]||{}).points_fv||"points",u=String((q=(B=(R=n==null?void 0:n.time)!=null?R:n==null?void 0:n.datetime)!=null?B:(z=e.topic)==null?void 0:z.time)!=null?q:Date.now()),g=J(n,s,c);g.length&&(O.value=[...O.value.slice(-199),{time:u,points:g}],m.value=[...O.value],y.value=u,j(),D())},pe=e=>{var h,d,p,C,E,N;const t=a.conf,n=(t==null?void 0:t.data)||[],i=(t==null?void 0:t.common)||{},s=(i==null?void 0:i.source)||"mosaic";let l=e;if(["statistics","calculate"].includes(s)&&(l=P.formatStatisticsResult(l,n)),(h=l==null?void 0:l.history)!=null&&h.length){m.value=fe(l.history),m.value.length&&(y.value=m.value[m.value.length-1].time),j(),D();return}const r=i!=null&&i.multiObject?"":P.getObjectId(i,i==null?void 0:i.useAlias,a.uid),c=r&&((p=(d=l==null?void 0:l[r])==null?void 0:d[s])==null?void 0:p.data)||((C=l==null?void 0:l[s])==null?void 0:C.data)||(l==null?void 0:l.data)||l,g=(n[0]||{}).points_fv||"points",f=String((N=(E=c==null?void 0:c.time)!=null?E:c==null?void 0:c.datetime)!=null?N:Date.now()),v=J(c,n,g);v.length&&(O.value=[...O.value.slice(-199),{time:f,points:v}],m.value=[...O.value],y.value=f,j(),D())};return o.watch(()=>S.channels[X()],e=>{e&&he(e)},{deep:!0}),o.watchEffect(()=>{a.conf.socketData&&k.setSocketData(a.conf.socketData)}),o.watch(()=>{var e;return(e=a.conf)==null?void 0:e.options},()=>{k.getStyle().value=k.extractStyles(),D()},{deep:!0}),o.onMounted(()=>{if(a.mode==="edit"&&!m.value.length){const e=[{elevation:1024.94,disp:0,relative_disp:-1},{elevation:994.94,disp:3,relative_disp:0},{elevation:964.94,disp:6,relative_disp:1},{elevation:934.94,disp:9,relative_disp:2},{elevation:904.94,disp:12,relative_disp:3}];m.value=[{time:"2026-01-20 15:29:59",points:e},{time:"2026-01-20 16:29:59",points:e.map(t=>le(ie({},t),{disp:t.disp+1}))}],y.value=m.value[0].time}!y.value&&m.value.length&&(y.value=m.value[m.value.length-1].time),D()}),(e,t)=>{const n=K.ElOption,i=K.ElSelect,s=K.ElIcon,l=K.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(U).bgColor,borderRadius:`${o.unref(U).radiusSize}px`})},[o.unref(U).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(Ne.value)},o.toDisplayString(b.conf.caption||b.conf.name),5)),o.createElementVNode("div",Ge,[o.createElementVNode("div",Ke,[o.createVNode(i,{modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=r=>y.value=r),placeholder:"选择时间",size:"small",class:"time-select",onChange:ke},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(xe.value,r=>(o.openBlock(),o.createBlock(n,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(l,{size:"small",class:"export-btn",onClick:De},{default:o.withCtx(()=>[o.createVNode(s,null,{default:o.withCtx(()=>[o.createVNode(o.unref(qe.Download))]),_:1}),t[1]||(t[1]=o.createTextVNode(" 导出图 ",-1))]),_:1})]),o.createElementVNode("div",{class:"echart-container",id:o.unref(re)},null,8,We)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),lt=P._export_sfc(it,[["__scopeId","data-v-b061424b"]]);exports.default=lt;
|
|
1
|
+
"use strict";var Fe=Object.defineProperty,Me=Object.defineProperties;var $e=Object.getOwnPropertyDescriptors;var Le=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable;var Ce=(b,a,S)=>a in b?Fe(b,a,{enumerable:!0,configurable:!0,writable:!0,value:S}):b[a]=S,ie=(b,a)=>{for(var S in a||(a={}))ze.call(a,S)&&Ce(b,S,a[S]);if(Le)for(var S of Le(a))Be.call(a,S)&&Ce(b,S,a[S]);return b},le=(b,a)=>Me(b,$e(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const o=require("vue"),qe=require("@element-plus/icons-vue"),P=require("./index-DoEyCVDU.cjs");require("element-plus");const Pe=require("./EChartComponentBase-8GSbyY5P.cjs"),Ze=require("./titleStyle-NSnz6cUg.cjs"),se=require("./installCanvasRenderer-CyhM1Qpl.cjs"),He=require("./install-C8buXQPI.cjs"),Ue=require("./install-CltTFs4e.cjs"),Ye=require("./install-CYwVETsi.cjs"),je="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e趋势%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-299.000000,%20-723.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M313.60741,723.132248%20C314.376525,723.132248%20315,723.755729%20315,724.524838%20L315,724.524838%20L315,737.73953%20C315,738.508647%20314.376527,739.13212%20313.60741,739.13212%20L313.60741,739.13212%20L300.392953,739.13212%20C299.623869,739.13212%20299.000384,738.508663%20299.000363,737.739585%20L299.000363,737.739585%20L299,724.524856%20C299,723.755744%20299.623475,723.132248%20300.39259,723.132248%20L300.39259,723.132248%20Z%20M302.67,728.130248%20L300.316,728.132248%20L300.317244,737.739549%20C300.317245,737.770894%20300.336313,737.797797%20300.363485,737.80929%20L300.392953,737.815239%20L302.67,737.814248%20L302.67,728.130248%20Z%20M313.682,728.120248%20L303.987,728.129248%20L303.987,737.814248%20L313.60741,737.815239%20C313.638778,737.815239%20313.665681,737.796179%20313.677171,737.769004%20L313.683119,737.73953%20L313.683,728.944248%20L313.682972,728.929735%20L313.682,728.120248%20Z%20M310.871101,729.12887%20L310.952715,729.198297%20L312.604552,730.850134%20C312.861689,731.107271%20312.861689,731.524172%20312.604552,731.781309%20C312.373129,732.012732%20312.012296,732.035875%20311.754991,731.850736%20L311.673377,731.781309%20L311.145,731.253248%20L311.145752,734.805978%20C311.145752,735.139321%20310.898043,735.414808%20310.576658,735.458408%20L310.487311,735.464419%20L307.124,735.464248%20L307.649042,735.98918%20C307.906179,736.246317%20307.906179,736.663219%20307.649042,736.920356%20C307.417619,737.151779%20307.056787,737.174921%20306.799482,736.989783%20L306.717867,736.920356%20L305.066031,735.268519%20L305.054021,735.255814%20C305.041374,735.242301%20305.029291,735.228255%20305.017807,735.213713%20L305.066031,735.268519%20C305.034539,735.237027%20305.006903,735.203139%20304.983125,735.167441%20C304.9807,735.16179%20304.977592,735.156913%20304.974547,735.151993%20C304.832434,734.927859%20304.840126,734.636431%20304.996604,734.418958%20L305.066031,734.337344%20L306.717867,732.685507%20C306.975004,732.428371%20307.391905,732.428371%20307.649042,732.685507%20C307.880466,732.916931%20307.903608,733.277763%20307.718469,733.535068%20L307.649042,733.616683%20L307.117,734.147248%20L309.828389,734.1469%20L309.828,731.252248%20L309.300879,731.781309%20C309.043742,732.038446%20308.626841,732.038446%20308.369704,731.781309%20C308.13828,731.549886%20308.115138,731.189053%20308.300277,730.931748%20L308.369704,730.850134%20L310.02154,729.198297%20C310.252963,728.966874%20310.613796,728.943732%20310.871101,729.12887%20Z%20M313.60741,724.449129%20L300.39259,724.449129%20C300.350778,724.449129%20300.316881,724.483027%20300.316881,724.524838%20L300.316881,724.524838%20L300.316,726.815248%20L313.682,726.803248%20L313.682972,725.258988%20L313.683,725.246248%20L313.683119,724.524838%20C313.683119,724.493474%20313.664056,724.46657%20313.636882,724.455078%20L313.60741,724.449129%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Re="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e趋势%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-299.000000,%20-723.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M313.60741,723.132248%20C314.376525,723.132248%20315,723.755729%20315,724.524838%20L315,724.524838%20L315,737.73953%20C315,738.508647%20314.376527,739.13212%20313.60741,739.13212%20L313.60741,739.13212%20L300.392953,739.13212%20C299.623869,739.13212%20299.000384,738.508663%20299.000363,737.739585%20L299.000363,737.739585%20L299,724.524856%20C299,723.755744%20299.623475,723.132248%20300.39259,723.132248%20L300.39259,723.132248%20Z%20M302.67,728.130248%20L300.316,728.132248%20L300.317244,737.739549%20C300.317245,737.770894%20300.336313,737.797797%20300.363485,737.80929%20L300.392953,737.815239%20L302.67,737.814248%20L302.67,728.130248%20Z%20M313.682,728.120248%20L303.987,728.129248%20L303.987,737.814248%20L313.60741,737.815239%20C313.638778,737.815239%20313.665681,737.796179%20313.677171,737.769004%20L313.683119,737.73953%20L313.683,728.944248%20L313.682972,728.929735%20L313.682,728.120248%20Z%20M310.871101,729.12887%20L310.952715,729.198297%20L312.604552,730.850134%20C312.861689,731.107271%20312.861689,731.524172%20312.604552,731.781309%20C312.373129,732.012732%20312.012296,732.035875%20311.754991,731.850736%20L311.673377,731.781309%20L311.145,731.253248%20L311.145752,734.805978%20C311.145752,735.139321%20310.898043,735.414808%20310.576658,735.458408%20L310.487311,735.464419%20L307.124,735.464248%20L307.649042,735.98918%20C307.906179,736.246317%20307.906179,736.663219%20307.649042,736.920356%20C307.417619,737.151779%20307.056787,737.174921%20306.799482,736.989783%20L306.717867,736.920356%20L305.066031,735.268519%20L305.054021,735.255814%20C305.041374,735.242301%20305.029291,735.228255%20305.017807,735.213713%20L305.066031,735.268519%20C305.034539,735.237027%20305.006903,735.203139%20304.983125,735.167441%20C304.9807,735.16179%20304.977592,735.156913%20304.974547,735.151993%20C304.832434,734.927859%20304.840126,734.636431%20304.996604,734.418958%20L305.066031,734.337344%20L306.717867,732.685507%20C306.975004,732.428371%20307.391905,732.428371%20307.649042,732.685507%20C307.880466,732.916931%20307.903608,733.277763%20307.718469,733.535068%20L307.649042,733.616683%20L307.117,734.147248%20L309.828389,734.1469%20L309.828,731.252248%20L309.300879,731.781309%20C309.043742,732.038446%20308.626841,732.038446%20308.369704,731.781309%20C308.13828,731.549886%20308.115138,731.189053%20308.300277,730.931748%20L308.369704,730.850134%20L310.02154,729.198297%20C310.252963,728.966874%20310.613796,728.943732%20310.871101,729.12887%20Z%20M313.60741,724.449129%20L300.39259,724.449129%20C300.350778,724.449129%20300.316881,724.483027%20300.316881,724.524838%20L300.316881,724.524838%20L300.316,726.815248%20L313.682,726.803248%20L313.682972,725.258988%20L313.683,725.246248%20L313.683119,724.524838%20C313.683119,724.493474%20313.664056,724.46657%20313.636882,724.455078%20L313.60741,724.449129%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ge={class:"mix-body"},Ke={class:"toolbar"},We=["id"],Xe={DEFAULT_ICON:je,ACTIVE_ICON:Re,NAME_CN:"深部趋势图",NAME_EN:"DeepTrendChart",ORDER:21,PLATFORM:["pc","screen"]},Je={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:56,bottom:52,left:64,right:36,xName:{value:"位移量",type:"string",label:"X轴名称"},yName:{value:"高程(m)",type:"string",label:"Y轴名称"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Se=[{name:"累计位移",fv:"disp_130",depth:-130,color:"#5470c6",object_id:""},{name:"累计位移",fv:"disp_140",depth:-140,color:"#5470c6",object_id:""}],Qe=["name","fv","depth","color","object_id"],et=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],tt={useAlias:!1,multiObject:!0,source:"mosaic"},nt={DEFAULT:Xe,OPTIONS:Je,DATA:Se,PARAMS:Qe,SOURCE:et,COMMON:tt},it=o.defineComponent(le(ie({},nt),{__name:"deepTrendChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(b){se.use([He.install,se.install,Ue.install,se.install$1,Ye.install]);const a=b,S=P.useLinkStore(),O=o.ref([]),m=o.ref([]),y=o.ref(""),V=o.ref([]),Z=o.ref("s"),oe=o.ref(null),H=o.ref("hour");class ye extends Pe.EChartComponentBase{constructor(){super(...arguments),this.panelConfig={}}extractStyles(){const t=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),i=t==="custom"&&n?n:t;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",56),bottom:this.getOptionValue("bottom",52),left:this.getOptionValue("left",64),right:this.getOptionValue("right",36),xName:this.getOptionValue("xName","位移量"),yName:this.getOptionValue("yName","高程(m)"),linkChannel:i}}init(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=Se),o.nextTick(()=>this.initChart())}setHistoryData(t){pe(t)}setSocketData(t){t&&pe(t)}onLinkEvent(t){he(t)}setPanelConfig(t){this.panelConfig=t||{}}getChartOption(){var g;M.value;const t=((g=a.conf)==null?void 0:g.data)||[],n=this.panelConfig||{},i=n.range__xAxis||n.range__x||n.range||null,s=n.range__yAxis||null,l=Number.isFinite(i==null?void 0:i.min)?Number(i==null?void 0:i.min):null,r=Number.isFinite(i==null?void 0:i.max)?Number(i==null?void 0:i.max):null,c=Number.isFinite(s==null?void 0:s.min)?Number(s==null?void 0:s.min):null,u=Number.isFinite(s==null?void 0:s.max)?Number(s==null?void 0:s.max):null;return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},legend:{top:4,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"item",formatter:f=>{var v,h,d,p;return`位移量: ${(h=(v=f==null?void 0:f.value)==null?void 0:v[0])!=null?h:"-"}<br/>高程: ${(p=(d=f==null?void 0:f.value)==null?void 0:d[1])!=null?p:"-"}m`}},xAxis:{type:"value",name:this.Style.value.xName,nameLocation:"middle",nameGap:28,position:"bottom",min:l!==null?l:null,max:r!==null?r:null,axisLine:{onZero:!1},axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},yAxis:{type:"value",name:this.Style.value.yName,min:c!==null?c:null,max:u!==null?u:null,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:(()=>{const f=ue.value.length?ue.value:M.value?[M.value]:[];if(!f.length)return[];const v=new Map;t.forEach((d,p)=>{const C=(d==null?void 0:d.name)||`序列${p+1}`;v.has(C)||v.set(C,{name:C,color:d==null?void 0:d.color,items:[]}),v.get(C).items.push(d)});const h=[];return f.forEach(d=>{const p=((d==null?void 0:d.points)||[])[0]||{};Array.from(v.values()).forEach(C=>{const E=C.items.map(N=>{var q,L;const w=N==null?void 0:N.fv,R=me(p,w,Z.value),z=Number(R),B=Number((L=(q=N==null?void 0:N.depth)!=null?q:p==null?void 0:p.depth)!=null?L:p==null?void 0:p.elevation);return!Number.isFinite(z)||!Number.isFinite(B)?null:[z,B]}).filter(Boolean).sort((N,w)=>N[1]-w[1]);h.push({name:C.name,type:"line",data:E,showSymbol:!0,symbolSize:6,lineStyle:{color:C.color||"#5470c6",width:2},itemStyle:{color:C.color||"#5470c6"}})})}),h})()}}}const k=new ye(a,"deepTrendChart"),re=k.getEchartId();k.setupLifecycle();const U=k.getStyle(),Ne=o.computed(()=>Ze.generateTitleStyle(a.conf.options)),Y=e=>{const t=String(e||"");if(!t)return"";const n=de(t);if(Number.isNaN(n))return t.slice(0,10);const i=new Date(n),s=i.getFullYear(),l=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0");return`${s}-${l}-${r}`},be=e=>{var s;const t=((s=a.conf)==null?void 0:s.data)||[];if(!e.length||!t.length)return e;const n=new Map;e.forEach(l=>{const r=Y(l.time);n.has(r)||n.set(r,[]),n.get(r).push(l)});const i=[];return Array.from(n.entries()).forEach(([l,r])=>{const c={};t.forEach(u=>{const g=u==null?void 0:u.fv;if(!g)return;let f=0,v=0;if(r.forEach(h=>{const d=((h==null?void 0:h.points)||[])[0]||{},p=Number(me(d,g,Z.value));Number.isFinite(p)&&(f+=p,v+=1)}),v>0){const h=Number((f/v).toFixed(6)),d=$(g,Z.value);c[g]=h,c[d]=h}}),Object.keys(c).length>0&&i.push({time:l,points:[c]})}),i.sort((l,r)=>String(l.time).localeCompare(String(r.time)))},F=o.computed(()=>H.value==="day"?be(m.value):m.value),xe=o.computed(()=>ce.value.map(e=>({value:e.time,label:H.value==="day"?Y(e.time):W(e.time)}))),M=o.computed(()=>{const e=y.value,t=F.value;return t.find(n=>n.time===e)||t[t.length-1]||null}),ae=(e,t)=>{const n=String(e||"").trim(),i=String(t||"").trim();if(!n||!i)return!1;if(n===i)return!0;const s=W(n),l=W(i);return s&&l&&s===l?!0:H.value!=="day"?!1:Y(n)===Y(i)},_e=(e,t)=>{if(!(t!=null&&t.startDate)&&!(t!=null&&t.endDate))return!0;const n=new Date(e).getTime();if(Number.isNaN(n))return!0;const i=t.startDate?new Date(t.startDate).getTime():Number.NEGATIVE_INFINITY,s=t.endDate?new Date(t.endDate).getTime():Number.POSITIVE_INFINITY;if(Number.isNaN(i)&&Number.isNaN(s))return!0;const l=Number.isNaN(i)?Number.NEGATIVE_INFINITY:i,r=Number.isNaN(s)?Number.POSITIVE_INFINITY:s;return n>=l&&n<=r},ce=o.computed(()=>{if(!F.value.length)return[];const e=oe.value;return!(e!=null&&e.startDate)&&!(e!=null&&e.endDate)?F.value:F.value.filter(t=>_e(t.time,e))}),ue=o.computed(()=>{const e=ce.value;if(V.value.length>0)return e.filter(t=>V.value.some(n=>ae(t.time,n)));if(e.length>0){const t=e.find(n=>n.time===y.value);return t?[t]:[e[e.length-1]]}return M.value?[M.value]:[]});o.watch(()=>m.value.length,()=>{!V.value.length&&m.value.length&&(y.value=m.value[m.value.length-1].time)});const de=e=>{if(e==null)return Number.NaN;const t=typeof e=="string"?e.trim():String(e);if(!t)return Number.NaN;if(/^\d+$/.test(t)){const n=Number(t);return t.length<=10?n*1e3:n}return new Date(t).getTime()},W=e=>{if(e==null)return"";const t=typeof e=="string"?e:String(e),n=de(e),i=Number.isNaN(n)?null:new Date(n);if(!i||Number.isNaN(i.getTime()))return t;const s=i.getFullYear(),l=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0"),c=String(i.getHours()).padStart(2,"0"),u=String(i.getMinutes()).padStart(2,"0"),g=String(i.getSeconds()).padStart(2,"0");return`${s}-${l}-${r} ${c}:${u}:${g}`},D=()=>{o.nextTick(()=>{const e=k.getChartInstance();e&&e.setOption(k.getChartOption(),!0)})},ke=()=>D(),De=()=>{const e=k.getChartInstance();if(!e)return;const t=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=t,n.download=`deep-trend-${y.value||Date.now()}.png`,n.click()},X=()=>{var i,s,l;const e=((i=a.conf)==null?void 0:i.options)||{},t=((s=e==null?void 0:e.linkChannel)==null?void 0:s.value)||U.value.linkChannel||"deepDisplacement",n=((l=e==null?void 0:e.customChannel)==null?void 0:l.value)||"";return t==="custom"&&n?n:t},j=()=>{const e=X();if(!e)return;const t=F.value.map(n=>n.time);S.publish(e,"deepTrendChart",{objectId:a.uid||"",type:"timeList",timeList:t})},J=(e,t,n="points")=>{const i=e==null?void 0:e[n];if(Array.isArray(i)&&i.length)return i;const s={};let l=!1;return t.forEach(r=>{var g;const c=r==null?void 0:r.fv;if(!c)return;Oe(s,e,c),(s[c]!==void 0||s[$(c,"s")]!==void 0||s[$(c,"x")]!==void 0||s[$(c,"y")]!==void 0)&&(l=!0);const u=(g=e==null?void 0:e.elevation)!=null?g:e==null?void 0:e.depth;u!=null&&(s.elevation=u,s.depth=u)}),l?[s]:[]},$=(e,t)=>{if(!e)return e;const n=e.match(/_(\d+)$/);return n?`${t}_${n[1]}`:e},me=(e,t,n)=>{if(!e||!t)return;const s=[$(t,n),`${t}_${n}`,`${n}_${t}`].filter(Boolean);for(const l of s){const r=e==null?void 0:e[l];if(r!=null)return r}if(n==="s"){const l=e==null?void 0:e[t];if(l!=null)return l}},Oe=(e,t,n)=>{var l;if(!e||!t||!n)return;const i=(l=n.match(/_(\d+)$/))==null?void 0:l[1],s=t==null?void 0:t[n];s!=null&&(e[n]=s),i&&["s","x","y"].forEach(r=>{const c=`${r}_${i}`,u=t==null?void 0:t[c];u!=null&&(e[c]=u)})},fe=e=>{var l;const t=((l=a.conf)==null?void 0:l.data)||[],i=(t[0]||{}).points_fv||"points",s=[];return e.forEach((r,c)=>{var v,h;const u=(r==null?void 0:r[0])||r||{},g=String((h=(v=u==null?void 0:u.time)!=null?v:u==null?void 0:u.datetime)!=null?h:c),f=J(u,t,i);f.length&&s.push({time:g,points:f})}),s},he=e=>{var f,v,h,d,p,C,E,N,w,R,z,B,q;if(!e||!e.payload)return;const t=X();if((f=e.topic)!=null&&f.channel&&t&&e.topic.channel!==t||!S.shouldHandle(e,"deepTrendChart"))return;const n=e.payload;if((n==null?void 0:n.type)==="filter"){const L=n.filter||n,A=Object.entries(L||{}).find(([x,_])=>{if(typeof _!="string")return!1;if(String(x||"").toLowerCase().includes("direction"))return!0;const Ae=String(_).toLowerCase();return["s","x","y"].includes(Ae)}),Te=L.direction||L.displacementDirection||(A==null?void 0:A[1])||"",Q={s:"s",x:"x",y:"y"}[String(Te).toLowerCase()],G=String((n==null?void 0:n.objectId)||(n==null?void 0:n.object_id)||"").trim(),Ie=((v=a.conf)==null?void 0:v.data)||[],Ee=String(((h=Ie[0])==null?void 0:h.configPanelId)||"").trim(),ve=[a.uid,re,(d=a.conf)==null?void 0:d.id,(p=a.conf)==null?void 0:p.uid,(C=a.conf)==null?void 0:C.name,(E=a.conf)==null?void 0:E.caption,(N=a.conf)==null?void 0:N.type,Ee,"deepTrendChart","DeepTrendChart","深部趋势图"].map(x=>String(x||"").trim()).filter(Boolean),Ve=new Set(ve),we=new Set(ve.map(x=>x.toLowerCase()));if(!(!G||Ve.has(G)||we.has(G.toLowerCase())||G.startsWith("deepTrendChart_")))return;const ee=Object.entries(L||{}).find(([x,_])=>{if(!_||typeof _!="object"||Array.isArray(_))return!1;const I=String(x||"").toLowerCase();return I.includes("time")&&I.includes("range")||!!_.startDate&&!!_.endDate}),T=(ee==null?void 0:ee[1])||L.timeRange||L.range||null;oe.value=T&&(T.startDate||T.endDate)?{startDate:T.startDate,endDate:T.endDate}:null;const te=String((T==null?void 0:T.granularity)||(L==null?void 0:L.granularity)||"").toLowerCase();(te==="day"||te==="hour")&&(H.value=te);const ne=Object.entries(L||{}).find(([x,_])=>{if(!Array.isArray(_))return!1;const I=String(x||"").toLowerCase();return I.includes("time")||I.includes("date")}),ge=L.timeList||L.selectedTimes||(ne==null?void 0:ne[1]);if(k.setPanelConfig(L),Array.isArray(ge)&&(V.value=ge.map(x=>String(x)),V.value.length>0)){const x=V.value[0],_=m.value.find(I=>ae(I.time,x));_&&(y.value=_.time)}if(Q&&["s","x","y"].includes(Q)){Z.value=Q,D();return}D();return}const i=a.conf,s=(i==null?void 0:i.data)||[],l=(i==null?void 0:i.common)||{};if(s.length>0&&!(l!=null&&l.multiObject)){const L=P.getObjectId(l,l==null?void 0:l.useAlias,a.uid)||((w=s[0])==null?void 0:w.object_id),A=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(L&&A&&String(L)!==String(A))return}if(Array.isArray(n==null?void 0:n.history)){O.value=fe(n.history),m.value=[...O.value],m.value.length&&(y.value=m.value[m.value.length-1].time),j(),D();return}const c=(s[0]||{}).points_fv||"points",u=String((q=(B=(R=n==null?void 0:n.time)!=null?R:n==null?void 0:n.datetime)!=null?B:(z=e.topic)==null?void 0:z.time)!=null?q:Date.now()),g=J(n,s,c);g.length&&(O.value=[...O.value.slice(-199),{time:u,points:g}],m.value=[...O.value],y.value=u,j(),D())},pe=e=>{var h,d,p,C,E,N;const t=a.conf,n=(t==null?void 0:t.data)||[],i=(t==null?void 0:t.common)||{},s=(i==null?void 0:i.source)||"mosaic";let l=e;if(["statistics","calculate"].includes(s)&&(l=P.formatStatisticsResult(l,n)),(h=l==null?void 0:l.history)!=null&&h.length){m.value=fe(l.history),m.value.length&&(y.value=m.value[m.value.length-1].time),j(),D();return}const r=i!=null&&i.multiObject?"":P.getObjectId(i,i==null?void 0:i.useAlias,a.uid),c=r&&((p=(d=l==null?void 0:l[r])==null?void 0:d[s])==null?void 0:p.data)||((C=l==null?void 0:l[s])==null?void 0:C.data)||(l==null?void 0:l.data)||l,g=(n[0]||{}).points_fv||"points",f=String((N=(E=c==null?void 0:c.time)!=null?E:c==null?void 0:c.datetime)!=null?N:Date.now()),v=J(c,n,g);v.length&&(O.value=[...O.value.slice(-199),{time:f,points:v}],m.value=[...O.value],y.value=f,j(),D())};return o.watch(()=>S.channels[X()],e=>{e&&he(e)},{deep:!0}),o.watchEffect(()=>{a.conf.socketData&&k.setSocketData(a.conf.socketData)}),o.watch(()=>{var e;return(e=a.conf)==null?void 0:e.options},()=>{k.getStyle().value=k.extractStyles(),D()},{deep:!0}),o.onMounted(()=>{if(a.mode==="edit"&&!m.value.length){const e=[{elevation:1024.94,disp:0,relative_disp:-1},{elevation:994.94,disp:3,relative_disp:0},{elevation:964.94,disp:6,relative_disp:1},{elevation:934.94,disp:9,relative_disp:2},{elevation:904.94,disp:12,relative_disp:3}];m.value=[{time:"2026-01-20 15:29:59",points:e},{time:"2026-01-20 16:29:59",points:e.map(t=>le(ie({},t),{disp:t.disp+1}))}],y.value=m.value[0].time}!y.value&&m.value.length&&(y.value=m.value[m.value.length-1].time),D()}),(e,t)=>{const n=K.ElOption,i=K.ElSelect,s=K.ElIcon,l=K.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(U).bgColor,borderRadius:`${o.unref(U).radiusSize}px`})},[o.unref(U).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(Ne.value)},o.toDisplayString(b.conf.caption||b.conf.name),5)),o.createElementVNode("div",Ge,[o.createElementVNode("div",Ke,[o.createVNode(i,{modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=r=>y.value=r),placeholder:"选择时间",size:"small",class:"time-select",onChange:ke},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(xe.value,r=>(o.openBlock(),o.createBlock(n,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(l,{size:"small",class:"export-btn",onClick:De},{default:o.withCtx(()=>[o.createVNode(s,null,{default:o.withCtx(()=>[o.createVNode(o.unref(qe.Download))]),_:1}),t[1]||(t[1]=o.createTextVNode(" 导出图 ",-1))]),_:1})]),o.createElementVNode("div",{class:"echart-container",id:o.unref(re)},null,8,We)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),lt=P._export_sfc(it,[["__scopeId","data-v-b061424b"]]);exports.default=lt;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ut = Object.defineProperty, Yt = Object.defineProperties;
|
|
2
2
|
var Rt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var bt = Object.getOwnPropertySymbols;
|
|
4
4
|
var jt = Object.prototype.hasOwnProperty, Gt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var xt = (N, a, C) => a in N ?
|
|
5
|
+
var xt = (N, a, C) => a in N ? Ut(N, a, { enumerable: !0, configurable: !0, writable: !0, value: C }) : N[a] = C, lt = (N, a) => {
|
|
6
6
|
for (var C in a || (a = {}))
|
|
7
7
|
jt.call(a, C) && xt(N, C, a[C]);
|
|
8
8
|
if (bt)
|
|
9
9
|
for (var C of bt(a))
|
|
10
10
|
Gt.call(a, C) && xt(N, C, a[C]);
|
|
11
11
|
return N;
|
|
12
|
-
}, ot = (N, a) =>
|
|
13
|
-
import { ElSelect as Kt, ElOption as Wt, ElButton as
|
|
12
|
+
}, ot = (N, a) => Yt(N, Rt(a));
|
|
13
|
+
import { ElSelect as Kt, ElOption as Wt, ElButton as Xt, ElIcon as qt } from "element-plus/es";
|
|
14
14
|
import "element-plus/es/components/base/style/css";
|
|
15
15
|
import "element-plus/es/components/button/style/css";
|
|
16
16
|
import "element-plus/es/components/icon/style/css";
|
|
17
17
|
import "element-plus/es/components/select/style/css";
|
|
18
18
|
import "element-plus/es/components/option/style/css";
|
|
19
|
-
import { defineComponent as
|
|
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 {
|
|
21
|
+
import { o as ce, Z as kt, R as ue, _ as me } from "./index-CPTJIw32.js";
|
|
22
22
|
import "element-plus";
|
|
23
|
-
import { E as de } from "./EChartComponentBase-
|
|
23
|
+
import { E as de } from "./EChartComponentBase-skupRYzl.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";
|
|
@@ -69,7 +69,7 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
69
69
|
}, Ot = [
|
|
70
70
|
{ name: "累计位移", fv: "disp_130", depth: -130, color: "#5470c6", object_id: "" },
|
|
71
71
|
{ name: "累计位移", fv: "disp_140", depth: -140, color: "#5470c6", object_id: "" }
|
|
72
|
-
], ke = ["name", "fv", "depth", "color", "object_id"], Oe = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], Te = { useAlias: !1, multiObject: !0, source: "mosaic" }, Ie = { DEFAULT: _e, OPTIONS: De, DATA: Ot, PARAMS: ke, SOURCE: Oe, COMMON: Te }, we = /* @__PURE__ */
|
|
72
|
+
], ke = ["name", "fv", "depth", "color", "object_id"], Oe = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], Te = { useAlias: !1, multiObject: !0, source: "mosaic" }, Ie = { DEFAULT: _e, OPTIONS: De, DATA: Ot, PARAMS: ke, SOURCE: Oe, COMMON: Te }, we = /* @__PURE__ */ Jt(ot(lt({}, Ie), {
|
|
73
73
|
__name: "deepTrendChart",
|
|
74
74
|
props: {
|
|
75
75
|
conf: { type: Object, default: () => ({ data: [] }) },
|
|
@@ -79,7 +79,7 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
79
79
|
},
|
|
80
80
|
setup(N) {
|
|
81
81
|
pe([ge, he, Le, ve, Ce]);
|
|
82
|
-
const a = N, C = ce(), k = w([]), m = w([]), S = w(""), E = w([]),
|
|
82
|
+
const a = N, C = ce(), k = w([]), m = w([]), S = w(""), E = w([]), U = w("s"), mt = w(null), Y = w("hour");
|
|
83
83
|
class Tt extends de {
|
|
84
84
|
constructor() {
|
|
85
85
|
super(...arguments), this.panelConfig = {};
|
|
@@ -174,9 +174,9 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
174
174
|
const p = ((u == null ? void 0 : u.points) || [])[0] || {};
|
|
175
175
|
Array.from(h.values()).forEach((L) => {
|
|
176
176
|
const I = L.items.map((y) => {
|
|
177
|
-
var
|
|
178
|
-
const V = y == null ? void 0 : y.fv, K = gt(p, V,
|
|
179
|
-
return !Number.isFinite(B) || !Number.isFinite(
|
|
177
|
+
var P, g;
|
|
178
|
+
const V = y == null ? void 0 : y.fv, K = gt(p, V, U.value), B = Number(K), Z = Number((g = (P = y == null ? void 0 : y.depth) != null ? P : p == null ? void 0 : p.depth) != null ? g : p == null ? void 0 : p.elevation);
|
|
179
|
+
return !Number.isFinite(B) || !Number.isFinite(Z) ? null : [B, Z];
|
|
180
180
|
}).filter(Boolean).sort((y, V) => y[1] - V[1]);
|
|
181
181
|
f.push({
|
|
182
182
|
name: L.name,
|
|
@@ -219,18 +219,18 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
219
219
|
if (!v) return;
|
|
220
220
|
let d = 0, h = 0;
|
|
221
221
|
if (o.forEach((f) => {
|
|
222
|
-
const u = ((f == null ? void 0 : f.points) || [])[0] || {}, p = Number(gt(u, v,
|
|
222
|
+
const u = ((f == null ? void 0 : f.points) || [])[0] || {}, p = Number(gt(u, v, U.value));
|
|
223
223
|
Number.isFinite(p) && (d += p, h += 1);
|
|
224
224
|
}), h > 0) {
|
|
225
|
-
const f = Number((d / h).toFixed(6)), u = z(v,
|
|
225
|
+
const f = Number((d / h).toFixed(6)), u = z(v, U.value);
|
|
226
226
|
r[v] = f, r[u] = f;
|
|
227
227
|
}
|
|
228
228
|
}), Object.keys(r).length > 0 && i.push({ time: s, points: [r] });
|
|
229
229
|
}), i.sort((s, o) => String(s.time).localeCompare(String(o.time)));
|
|
230
|
-
}, M = F(() =>
|
|
230
|
+
}, M = F(() => Y.value === "day" ? wt(m.value) : m.value), Et = F(
|
|
231
231
|
() => pt.value.map((t) => ({
|
|
232
232
|
value: t.time,
|
|
233
|
-
label:
|
|
233
|
+
label: Y.value === "day" ? j(t.time) : J(t.time)
|
|
234
234
|
}))
|
|
235
235
|
), $ = F(() => {
|
|
236
236
|
const t = S.value, e = M.value;
|
|
@@ -239,8 +239,8 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
239
239
|
const n = String(t || "").trim(), i = String(e || "").trim();
|
|
240
240
|
if (!n || !i) return !1;
|
|
241
241
|
if (n === i) return !0;
|
|
242
|
-
const l =
|
|
243
|
-
return l && s && l === s ? !0 :
|
|
242
|
+
const l = J(n), s = J(i);
|
|
243
|
+
return l && s && l === s ? !0 : Y.value !== "day" ? !1 : j(n) === j(i);
|
|
244
244
|
}, Vt = (t, e) => {
|
|
245
245
|
if (!(e != null && e.startDate) && !(e != null && e.endDate)) return !0;
|
|
246
246
|
const n = new Date(t).getTime();
|
|
@@ -278,7 +278,7 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
278
278
|
return e.length <= 10 ? n * 1e3 : n;
|
|
279
279
|
}
|
|
280
280
|
return new Date(e).getTime();
|
|
281
|
-
},
|
|
281
|
+
}, J = (t) => {
|
|
282
282
|
if (t == null) return "";
|
|
283
283
|
const e = typeof t == "string" ? t : String(t), n = vt(t), i = Number.isNaN(n) ? null : new Date(n);
|
|
284
284
|
if (!i || Number.isNaN(i.getTime())) return e;
|
|
@@ -294,12 +294,12 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
294
294
|
if (!t) return;
|
|
295
295
|
const e = t.getDataURL({ type: "png", pixelRatio: 2, backgroundColor: "#fff" }), n = document.createElement("a");
|
|
296
296
|
n.href = e, n.download = `deep-trend-${S.value || Date.now()}.png`, n.click();
|
|
297
|
-
},
|
|
297
|
+
}, Q = () => {
|
|
298
298
|
var i, l, s;
|
|
299
299
|
const t = ((i = a.conf) == null ? void 0 : i.options) || {}, e = ((l = t == null ? void 0 : t.linkChannel) == null ? void 0 : l.value) || R.value.linkChannel || "deepDisplacement", n = ((s = t == null ? void 0 : t.customChannel) == null ? void 0 : s.value) || "";
|
|
300
300
|
return e === "custom" && n ? n : e;
|
|
301
301
|
}, G = () => {
|
|
302
|
-
const t =
|
|
302
|
+
const t = Q();
|
|
303
303
|
if (!t) return;
|
|
304
304
|
const e = M.value.map((n) => n.time);
|
|
305
305
|
C.publish(t, "deepTrendChart", {
|
|
@@ -356,9 +356,9 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
356
356
|
d.length && l.push({ time: v, points: d });
|
|
357
357
|
}), l;
|
|
358
358
|
}, Ct = (t) => {
|
|
359
|
-
var d, h, f, u, p, L, I, y, V, K, B,
|
|
359
|
+
var d, h, f, u, p, L, I, y, V, K, B, Z, P;
|
|
360
360
|
if (!t || !t.payload) return;
|
|
361
|
-
const e =
|
|
361
|
+
const e = Q();
|
|
362
362
|
if ((d = t.topic) != null && d.channel && e && t.topic.channel !== e || !C.shouldHandle(t, "deepTrendChart"))
|
|
363
363
|
return;
|
|
364
364
|
const n = t.payload;
|
|
@@ -384,8 +384,8 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
384
384
|
"deepTrendChart",
|
|
385
385
|
"DeepTrendChart",
|
|
386
386
|
"深部趋势图"
|
|
387
|
-
].map((b) => String(b || "").trim()).filter(Boolean),
|
|
388
|
-
if (!(!W ||
|
|
387
|
+
].map((b) => String(b || "").trim()).filter(Boolean), Zt = new Set(yt), Pt = new Set(yt.map((b) => b.toLowerCase()));
|
|
388
|
+
if (!(!W || Zt.has(W) || Pt.has(W.toLowerCase()) || W.startsWith("deepTrendChart_"))) return;
|
|
389
389
|
const nt = Object.entries(g || {}).find(([b, x]) => {
|
|
390
390
|
if (!x || typeof x != "object" || Array.isArray(x)) return !1;
|
|
391
391
|
const T = String(b || "").toLowerCase();
|
|
@@ -393,7 +393,7 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
393
393
|
}), O = (nt == null ? void 0 : nt[1]) || g.timeRange || g.range || null;
|
|
394
394
|
mt.value = O && (O.startDate || O.endDate) ? { startDate: O.startDate, endDate: O.endDate } : null;
|
|
395
395
|
const it = String((O == null ? void 0 : O.granularity) || (g == null ? void 0 : g.granularity) || "").toLowerCase();
|
|
396
|
-
(it === "day" || it === "hour") && (
|
|
396
|
+
(it === "day" || it === "hour") && (Y.value = it);
|
|
397
397
|
const st = Object.entries(g || {}).find(([b, x]) => {
|
|
398
398
|
if (!Array.isArray(x)) return !1;
|
|
399
399
|
const T = String(b || "").toLowerCase();
|
|
@@ -404,7 +404,7 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
404
404
|
x && (S.value = x.time);
|
|
405
405
|
}
|
|
406
406
|
if (et && ["s", "x", "y"].includes(et)) {
|
|
407
|
-
|
|
407
|
+
U.value = et, D();
|
|
408
408
|
return;
|
|
409
409
|
}
|
|
410
410
|
D();
|
|
@@ -419,7 +419,7 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
419
419
|
k.value = Lt(n.history), m.value = [...k.value], m.value.length && (S.value = m.value[m.value.length - 1].time), G(), D();
|
|
420
420
|
return;
|
|
421
421
|
}
|
|
422
|
-
const r = (l[0] || {}).points_fv || "points", c = String((
|
|
422
|
+
const r = (l[0] || {}).points_fv || "points", c = String((P = (Z = (K = n == null ? void 0 : n.time) != null ? K : n == null ? void 0 : n.datetime) != null ? Z : (B = t.topic) == null ? void 0 : B.time) != null ? P : Date.now()), v = tt(n, l, r);
|
|
423
423
|
v.length && (k.value = [...k.value.slice(-199), { time: c, points: v }], m.value = [...k.value], S.value = c, G(), D());
|
|
424
424
|
}, St = (t) => {
|
|
425
425
|
var f, u, p, L, I, y;
|
|
@@ -433,12 +433,12 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
433
433
|
h.length && (k.value = [...k.value.slice(-199), { time: d, points: h }], m.value = [...k.value], S.value = d, G(), D());
|
|
434
434
|
};
|
|
435
435
|
return at(
|
|
436
|
-
() => C.channels[
|
|
436
|
+
() => C.channels[Q()],
|
|
437
437
|
(t) => {
|
|
438
438
|
t && Ct(t);
|
|
439
439
|
},
|
|
440
440
|
{ deep: !0 }
|
|
441
|
-
),
|
|
441
|
+
), Qt(() => {
|
|
442
442
|
a.conf.socketData && _.setSocketData(a.conf.socketData);
|
|
443
443
|
}), at(
|
|
444
444
|
() => {
|
|
@@ -465,19 +465,19 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
465
465
|
}
|
|
466
466
|
!S.value && m.value.length && (S.value = m.value[m.value.length - 1].time), D();
|
|
467
467
|
}), (t, e) => {
|
|
468
|
-
const n = Wt, i = Kt, l =
|
|
469
|
-
return
|
|
468
|
+
const n = Wt, i = Kt, l = qt, s = Xt;
|
|
469
|
+
return X(), rt("div", {
|
|
470
470
|
class: "mix-component",
|
|
471
471
|
style: _t({ background: H(R).bgColor, borderRadius: `${H(R).radiusSize}px` })
|
|
472
472
|
}, [
|
|
473
|
-
H(R).isHideTitle ? ne("", !0) : (
|
|
473
|
+
H(R).isHideTitle ? ne("", !0) : (X(), rt("div", {
|
|
474
474
|
key: 0,
|
|
475
475
|
class: "mix-title",
|
|
476
476
|
style: _t(It.value)
|
|
477
477
|
}, ee(N.conf.caption || N.conf.name), 5)),
|
|
478
478
|
ct("div", Ne, [
|
|
479
479
|
ct("div", be, [
|
|
480
|
-
|
|
480
|
+
q(i, {
|
|
481
481
|
modelValue: S.value,
|
|
482
482
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => S.value = o),
|
|
483
483
|
placeholder: "选择时间",
|
|
@@ -486,7 +486,7 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
486
486
|
onChange: At
|
|
487
487
|
}, {
|
|
488
488
|
default: ut(() => [
|
|
489
|
-
(
|
|
489
|
+
(X(!0), rt(ie, null, se(Et.value, (o) => (X(), le(n, {
|
|
490
490
|
key: o.value,
|
|
491
491
|
label: o.label,
|
|
492
492
|
value: o.value
|
|
@@ -494,15 +494,15 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
494
494
|
]),
|
|
495
495
|
_: 1
|
|
496
496
|
}, 8, ["modelValue"]),
|
|
497
|
-
|
|
497
|
+
q(s, {
|
|
498
498
|
size: "small",
|
|
499
499
|
class: "export-btn",
|
|
500
500
|
onClick: Ft
|
|
501
501
|
}, {
|
|
502
502
|
default: ut(() => [
|
|
503
|
-
|
|
503
|
+
q(l, null, {
|
|
504
504
|
default: ut(() => [
|
|
505
|
-
|
|
505
|
+
q(H(re))
|
|
506
506
|
]),
|
|
507
507
|
_: 1
|
|
508
508
|
}),
|
|
@@ -520,7 +520,7 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
520
520
|
], 4);
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
|
-
})),
|
|
523
|
+
})), qe = /* @__PURE__ */ me(we, [["__scopeId", "data-v-b061424b"]]);
|
|
524
524
|
export {
|
|
525
|
-
|
|
525
|
+
qe as default
|
|
526
526
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var M=Object.defineProperty,T=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var I=(c,n,a)=>n in c?M(c,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[n]=a,x=(c,n)=>{for(var a in n||(n={}))w.call(n,a)&&I(c,a,n[a]);if(A)for(var a of A(n))B.call(n,a)&&I(c,a,n[a]);return c},N=(c,n)=>T(c,L(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const V=require("./index-
|
|
1
|
+
"use strict";var M=Object.defineProperty,T=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var I=(c,n,a)=>n in c?M(c,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[n]=a,x=(c,n)=>{for(var a in n||(n={}))w.call(n,a)&&I(c,a,n[a]);if(A)for(var a of A(n))B.call(n,a)&&I(c,a,n[a]);return c},N=(c,n)=>T(c,L(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const V=require("./index-DoEyCVDU.cjs");require("element-plus");const q=require("./EChartComponentBase-8GSbyY5P.cjs"),z=require("./ele-lin-icon-Dke_1AmT.cjs"),R={class:"panel-header"},$=["id"],H={DEFAULT_ICON:z.DEFAULT_ICON,ACTIVE_ICON:z.ACTIVE_ICON,NAME_CN:"设备在线状态",NAME_EN:"Device Online Status",ORDER:11,PLATFORM:["pc","screen"]},P={title:{value:"设备在线状态",type:"string",label:"标题"},bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleFontSize:{value:16,type:"number",label:"标题字体大小",min:12,max:24},onlineColor:{value:"#67C23A",type:"color",label:"在线颜色"},offlineColor:{value:"#C0C4CC",type:"color",label:"离线颜色"},centerFontSize:{value:32,type:"number",label:"中心数字大小",min:18,max:48},centerColor:{value:"#1a3a6b",type:"color",label:"中心数字颜色"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},U=[{name:"设备1",fv:"online_status",fvDeviceName:"",object_id:""}],W=["object_id","name","fv","fvDeviceName"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=200,Q={DEFAULT:H,OPTIONS:P,DATA:U,PARAMS:W,SOURCE:G,COMMON:J,ITEMS:K},X=t.defineComponent(N(x({},Q),{__name:"deviceOnlineStatus",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){const n=c,a=new Map;class k extends q.EChartComponentBase{extractStyles(){var o,u,s,d,f,h,C,y,g,O,_,E;const e=(o=this.props.conf)==null?void 0:o.options,r=((u=e==null?void 0:e.linkChannel)==null?void 0:u.value)||"gnss",i=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return{title:((d=e==null?void 0:e.title)==null?void 0:d.value)||"设备在线状态",bgColor:((f=e==null?void 0:e.bgColor)==null?void 0:f.value)||"#f5f7fa",panelBgColor:((h=e==null?void 0:e.panelBgColor)==null?void 0:h.value)||"#ffffff",textColor:((C=e==null?void 0:e.textColor)==null?void 0:C.value)||"#333333",titleFontSize:((y=e==null?void 0:e.titleFontSize)==null?void 0:y.value)||16,onlineColor:((g=e==null?void 0:e.onlineColor)==null?void 0:g.value)||"#67C23A",offlineColor:((O=e==null?void 0:e.offlineColor)==null?void 0:O.value)||"#C0C4CC",centerFontSize:((_=e==null?void 0:e.centerFontSize)==null?void 0:_.value)||32,centerColor:((E=e==null?void 0:e.centerColor)==null?void 0:E.value)||"#1a3a6b",linkChannel:r==="custom"&&i?i:r}}getChartOption(){return m(this.Style.value)}setHistoryData(e){var i;if(!e||!this.chartObj)return;const r=((i=this.props.conf)==null?void 0:i.data)||[];!Array.isArray(r)||!r.length||(r.forEach((o,u)=>{if(!o.fv)return;const s=Array.isArray(e)?e[u]:null,d=Array.isArray(s)&&s.length?s[0]:null;if(!d)return;const f=d[o.fv];if(f==null)return;const h=f===1||f===!0||f==="online"||f==="1"||f==="true",C=o.object_id||o.name||"";C&&a.set(C,h)}),this.chartObj.setOption(m(this.Style.value),!0))}setSocketData(e){var i;if(!e)return;(((i=this.props.conf)==null?void 0:i.data)||[]).forEach(o=>{if(!o.fv)return;const u=o.object_id||o.name||"";if(!u)return;const s=this.extractDataValue(e,o.fv);if(s!=null){const d=s===1||s===!0||s==="online"||s==="1"||s==="true";a.set(u,d)}}),this.chartObj&&this.chartObj.setOption(m(this.Style.value),!0)}onLinkEvent(e){}}const v=new k(n,"deviceOnlineStatus");v.setupLifecycle();const p=v.getStyle(),D=v.getEchartId(),b=t.computed(()=>{var l;return((l=n.conf)==null?void 0:l.data)||[]}),F=t.computed(()=>{if(b.value.length===0&&n.mode==="edit")return{online:23,offline:3,total:26};let e=0,r=0;return b.value.forEach(i=>{const o=i.object_id||i.name||"";a.get(o)===!1?r++:e++}),{online:e,offline:r,total:e+r}}),j=t.computed(()=>({backgroundColor:p.value.bgColor})),m=l=>{const{online:e,offline:r,total:i}=F.value;return{backgroundColor:"transparent",tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},legend:{bottom:10,itemWidth:10,itemHeight:10,itemGap:20,textStyle:{fontSize:13,color:l.textColor},formatter:o=>`${o} ${o==="在线"?e:r}`},series:[{type:"pie",radius:["50%","72%"],center:["50%","45%"],avoidLabelOverlap:!1,label:{show:!0,position:"center",formatter:()=>`{num|${i}}
|
|
2
2
|
{txt|设备总数}`,rich:{num:{fontSize:l.centerFontSize,fontWeight:"bold",color:l.centerColor,lineHeight:l.centerFontSize+10},txt:{fontSize:13,color:"#999",lineHeight:22}}},labelLine:{show:!1},itemStyle:{borderRadius:4,borderColor:"#fff",borderWidth:2},data:[{value:e,name:"在线",itemStyle:{color:l.onlineColor}},{value:r,name:"离线",itemStyle:{color:l.offlineColor}}]}]}},S=()=>{for(let e=0;e<23;e++)a.set(`dev-${e}`,!0);for(let e=23;e<26;e++)a.set(`dev-${e}`,!1);const l=v.getChartInstance();l&&l.setOption(m(p.value),!0)};return t.onMounted(()=>{n.mode==="edit"&&S(),setTimeout(()=>{var l;return(l=v.getChartInstance())==null?void 0:l.resize()},200)}),t.watch(()=>n.conf,()=>{n.mode==="edit"&&S()},{deep:!0}),(l,e)=>(t.openBlock(),t.createElementBlock("div",{class:"device-online-status",style:t.normalizeStyle(j.value)},[t.createElementVNode("div",R,[e[0]||(e[0]=t.createElementVNode("span",{class:"indicator-dot"},null,-1)),t.createElementVNode("span",{class:"panel-title",style:t.normalizeStyle({color:t.unref(p).textColor,fontSize:t.unref(p).titleFontSize+"px"})},t.toDisplayString(t.unref(p).title),5)]),t.createElementVNode("div",{id:t.unref(D),class:"chart-container"},null,8,$),t.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),Y=V._export_sfc(X,[["__scopeId","data-v-5a3fb2e8"]]);exports.default=Y;
|
|
@@ -12,9 +12,9 @@ var k = (s, t, n) => t in s ? w(s, t, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, I = (s, t) => L(s, B(t));
|
|
13
13
|
import { defineComponent as H, computed as S, onMounted as W, watch as P, openBlock as U, createElementBlock as V, normalizeStyle as F, createElementVNode as h, unref as b, toDisplayString as G, renderSlot as q } from "vue";
|
|
14
14
|
import "html2canvas";
|
|
15
|
-
import { _ as J } from "./index-
|
|
15
|
+
import { _ as J } from "./index-CPTJIw32.js";
|
|
16
16
|
import "element-plus";
|
|
17
|
-
import { E as K } from "./EChartComponentBase-
|
|
17
|
+
import { E as K } from "./EChartComponentBase-skupRYzl.js";
|
|
18
18
|
import { A as Q, D as X } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
19
19
|
const Y = { class: "panel-header" }, Z = ["id"], ee = {
|
|
20
20
|
DEFAULT_ICON: X,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var T = Object.defineProperty, H = Object.defineProperties;
|
|
2
2
|
var F = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var D = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var P = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var j = (u, o, n) => o in u ? T(u, o, { enumerable: !0, configurable: !0, writable: !0, value: n }) : u[o] = n, x = (u, o) => {
|
|
6
6
|
for (var n in o || (o = {}))
|
|
7
|
-
|
|
7
|
+
P.call(o, n) && j(u, n, o[n]);
|
|
8
8
|
if (D)
|
|
9
9
|
for (var n of D(o))
|
|
10
|
-
|
|
10
|
+
U.call(o, n) && j(u, n, o[n]);
|
|
11
11
|
return u;
|
|
12
12
|
}, A = (u, o) => H(u, F(o));
|
|
13
|
-
import { defineComponent as
|
|
13
|
+
import { defineComponent as z, useCssVars as I, unref as v, ref as $, computed as k, openBlock as C, createElementBlock as _, createElementVNode as a, toDisplayString as f, Fragment as N, renderList as O, normalizeStyle as S, createCommentVNode as J, renderSlot as q } from "vue";
|
|
14
14
|
import "html2canvas";
|
|
15
|
-
import { B as G } from "./BaseComponent-
|
|
16
|
-
import {
|
|
15
|
+
import { B as G } from "./BaseComponent-Dn65PXTp.js";
|
|
16
|
+
import { R as K, J as Q, _ as W } from "./index-CPTJIw32.js";
|
|
17
17
|
import { A as X, D as Y } from "./ele-gag-icon-CB5dJeYF.js";
|
|
18
18
|
const Z = { class: "device-status-wrapper" }, tt = { class: "panel-header" }, et = { class: "header-left" }, ot = { class: "header-title" }, at = { class: "status-cards" }, lt = ["onClick"], ct = { class: "status-label" }, st = { class: "device-list" }, rt = { class: "device-icon" }, nt = { class: "device-info" }, it = { class: "device-name" }, ut = { class: "device-type" }, dt = { class: "device-value" }, vt = { class: "value-text" }, ft = {
|
|
19
19
|
key: 0,
|
|
@@ -40,7 +40,7 @@ const Z = { class: "device-status-wrapper" }, tt = { class: "panel-header" }, et
|
|
|
40
40
|
{ name: "压力传感器-01", type: "压力传感器", icon: "⏱", fv: "pressure", object_id: "", unit: "MPa", value: 1.3, status: 0 },
|
|
41
41
|
{ name: "位移传感器-01", type: "位移传感器", icon: "↔", fv: "displacement", object_id: "", unit: "mm", value: 2.1, status: 1 },
|
|
42
42
|
{ name: "振动传感器-01", type: "振动传感器", icon: "〰", fv: "vibration", object_id: "", unit: "Hz", value: 0.1, status: 0 }
|
|
43
|
-
], pt = ["name", "type", "icon", "fv", "object_id", "unit", "status"], ht = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], bt = { useAlias: !1, multiObject: !0, source: "mosaic" }, yt = { DEFAULT: mt, OPTIONS: Ct, DATA: _t, PARAMS: pt, SOURCE: ht, COMMON: bt }, gt = /* @__PURE__ */
|
|
43
|
+
], pt = ["name", "type", "icon", "fv", "object_id", "unit", "status"], ht = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], bt = { useAlias: !1, multiObject: !0, source: "mosaic" }, yt = { DEFAULT: mt, OPTIONS: Ct, DATA: _t, PARAMS: pt, SOURCE: ht, COMMON: bt }, gt = /* @__PURE__ */ z(A(x({}, yt), {
|
|
44
44
|
__name: "deviceStatus",
|
|
45
45
|
props: {
|
|
46
46
|
conf: { type: Object, default: () => ({ data: [] }) },
|
|
@@ -49,7 +49,7 @@ const Z = { class: "device-status-wrapper" }, tt = { class: "panel-header" }, et
|
|
|
49
49
|
theme: { type: String, default: "light" }
|
|
50
50
|
},
|
|
51
51
|
setup(u) {
|
|
52
|
-
|
|
52
|
+
I((l) => ({
|
|
53
53
|
v2279d942: v(c).bgColor,
|
|
54
54
|
v282717bb: v(c).borderColor,
|
|
55
55
|
v0266b85a: v(c).textColor,
|
|
@@ -78,8 +78,8 @@ const Z = { class: "device-status-wrapper" }, tt = { class: "panel-header" }, et
|
|
|
78
78
|
const { data: e, common: i } = this.props.conf;
|
|
79
79
|
if (!e.some((d) => d.object_id && d.fv)) return;
|
|
80
80
|
const r = i.source || "mosaic";
|
|
81
|
-
["statistics", "calculate"].includes(r) && (t =
|
|
82
|
-
let y =
|
|
81
|
+
["statistics", "calculate"].includes(r) && (t = K(t, e));
|
|
82
|
+
let y = Q(t, this.props, "history");
|
|
83
83
|
e.forEach((d, g) => {
|
|
84
84
|
var p, h;
|
|
85
85
|
if (!(!d.object_id || !d.fv))
|
|
@@ -107,7 +107,7 @@ const Z = { class: "device-status-wrapper" }, tt = { class: "panel-header" }, et
|
|
|
107
107
|
{ name: "位移传感器-01", type: "位移传感器", icon: "↔", fv: "", object_id: "", unit: "mm", value: 2.1, status: 1 },
|
|
108
108
|
{ name: "振动传感器-01", type: "振动传感器", icon: "〰", fv: "", object_id: "", unit: "Hz", value: 0.1, status: 0 }
|
|
109
109
|
]), w.setupLifecycle();
|
|
110
|
-
const c = w.getStyle(), b = $(null),
|
|
110
|
+
const c = w.getStyle(), b = $(null), R = k(() => {
|
|
111
111
|
var s;
|
|
112
112
|
const l = ((s = o.conf) == null ? void 0 : s.data) || [], t = l.filter((r) => r.status === 0).length, e = l.filter((r) => r.status === 1).length, i = l.filter((r) => r.status === 2).length;
|
|
113
113
|
return [
|
|
@@ -119,7 +119,7 @@ const Z = { class: "device-status-wrapper" }, tt = { class: "panel-header" }, et
|
|
|
119
119
|
var t;
|
|
120
120
|
const l = ((t = o.conf) == null ? void 0 : t.data) || [];
|
|
121
121
|
return b.value === null ? l : l.filter((e) => e.status === b.value);
|
|
122
|
-
}),
|
|
122
|
+
}), B = () => console.log("实时更新"), M = (l) => {
|
|
123
123
|
b.value = b.value === l ? null : l;
|
|
124
124
|
}, V = (l) => {
|
|
125
125
|
const t = [c.value.normalColor, c.value.warnColor, c.value.errorColor];
|
|
@@ -149,11 +149,11 @@ const Z = { class: "device-status-wrapper" }, tt = { class: "panel-header" }, et
|
|
|
149
149
|
]),
|
|
150
150
|
a("button", {
|
|
151
151
|
class: "realtime-btn",
|
|
152
|
-
onClick:
|
|
152
|
+
onClick: B
|
|
153
153
|
}, " 实时更新 ")
|
|
154
154
|
]),
|
|
155
155
|
a("div", at, [
|
|
156
|
-
(C(!0), _(N, null, O(
|
|
156
|
+
(C(!0), _(N, null, O(R.value, (e, i) => (C(), _("div", {
|
|
157
157
|
key: i,
|
|
158
158
|
class: "status-card",
|
|
159
159
|
style: S({ borderTopColor: e.color }),
|
|
@@ -184,7 +184,7 @@ const Z = { class: "device-status-wrapper" }, tt = { class: "panel-header" }, et
|
|
|
184
184
|
}, f(L(e.status)), 5)
|
|
185
185
|
])
|
|
186
186
|
]))), 128)),
|
|
187
|
-
E.value.length === 0 ? (C(), _("div", ft, " 暂无设备数据 ")) :
|
|
187
|
+
E.value.length === 0 ? (C(), _("div", ft, " 暂无设备数据 ")) : J("", !0)
|
|
188
188
|
]),
|
|
189
189
|
q(l.$slots, "default", {}, void 0, !0)
|
|
190
190
|
]));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var x=Object.defineProperty,A=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var S=(u,a,s)=>a in u?x(u,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[a]=s,E=(u,a)=>{for(var s in a||(a={}))M.call(a,s)&&S(u,s,a[s]);if(h)for(var s of h(a))R.call(a,s)&&S(u,s,a[s]);return u},N=(u,a)=>A(u,O(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const T=require("./BaseComponent-
|
|
1
|
+
"use strict";var x=Object.defineProperty,A=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var S=(u,a,s)=>a in u?x(u,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[a]=s,E=(u,a)=>{for(var s in a||(a={}))M.call(a,s)&&S(u,s,a[s]);if(h)for(var s of h(a))R.call(a,s)&&S(u,s,a[s]);return u},N=(u,a)=>A(u,O(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const T=require("./BaseComponent-DKuQG62G.cjs"),y=require("./index-DoEyCVDU.cjs"),V=require("./ele-gag-icon-Ce1hl9NI.cjs"),L={class:"device-status-wrapper"},I={class:"panel-header"},F={class:"header-left"},z={class:"header-title"},H={class:"status-cards"},P=["onClick"],U={class:"status-label"},q={class:"device-list"},$={class:"device-icon"},G={class:"device-info"},J={class:"device-name"},K={class:"device-type"},Q={class:"device-value"},W={class:"value-text"},X={key:0,class:"no-data"},Y={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"设备运行状态",NAME_EN:"Device Status",ORDER:8,PLATFORM:["pc","screen"]},Z={title:{value:"监测设备运行状态",type:"string",label:"component.deviceStatus.title"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.deviceStatus.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.deviceStatus.accentColor"},glowEffect:{value:!0,type:"checkbox",label:"component.deviceStatus.glowEffect"},normalColor:{value:"#2ecc71",type:"color",label:"component.deviceStatus.normalColor"},warnColor:{value:"#f39c12",type:"color",label:"component.deviceStatus.warnColor"},errorColor:{value:"#e74c3c",type:"color",label:"component.deviceStatus.errorColor"}},ee=[{name:"温度传感器-01",type:"温度传感器",icon:"🌡",fv:"temperature",object_id:"",unit:"°C",value:25.1,status:0},{name:"压力传感器-01",type:"压力传感器",icon:"⏱",fv:"pressure",object_id:"",unit:"MPa",value:1.3,status:0},{name:"位移传感器-01",type:"位移传感器",icon:"↔",fv:"displacement",object_id:"",unit:"mm",value:2.1,status:1},{name:"振动传感器-01",type:"振动传感器",icon:"〰",fv:"vibration",object_id:"",unit:"Hz",value:.1,status:0}],te=["name","type","icon","fv","object_id","unit","status"],oe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ae={useAlias:!1,multiObject:!0,source:"mosaic"},le={DEFAULT:Y,OPTIONS:Z,DATA:ee,PARAMS:te,SOURCE:oe,COMMON:ae},ce=e.defineComponent(N(E({},le),{__name:"deviceStatus",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(u){e.useCssVars(l=>({v2279d942:e.unref(c).bgColor,v282717bb:e.unref(c).borderColor,v0266b85a:e.unref(c).textColor,v919cec46:e.unref(c).accentColor,v09e5435a:e.unref(c).glowEffect?`drop-shadow(0 0 6px ${e.unref(c).accentColor})`:"none",v114e47f4:e.unref(c).glowEffect?`0 0 10px ${e.unref(c).accentColor}`:"none"}));const a=u;class s extends T.BaseComponent{extractStyles(){var o,i,n,r,C,d,_,f,m,v;const{options:t}=this.props.conf;return{title:((o=t==null?void 0:t.title)==null?void 0:o.value)||"监测设备运行状态",bgColor:((i=t==null?void 0:t.bgColor)==null?void 0:i.value)||"#1a2a3a",borderColor:((n=t==null?void 0:t.borderColor)==null?void 0:n.value)||"#2a4a6a",textColor:((r=t==null?void 0:t.textColor)==null?void 0:r.value)||"#ffffff",accentColor:((C=t==null?void 0:t.accentColor)==null?void 0:C.value)||"#00d4ff",glowEffect:(_=(d=t==null?void 0:t.glowEffect)==null?void 0:d.value)!=null?_:!0,normalColor:((f=t==null?void 0:t.normalColor)==null?void 0:f.value)||"#2ecc71",warnColor:((m=t==null?void 0:t.warnColor)==null?void 0:m.value)||"#f39c12",errorColor:((v=t==null?void 0:t.errorColor)==null?void 0:v.value)||"#e74c3c"}}setHistoryData(t){const{data:o,common:i}=this.props.conf;if(!o.some(d=>d.object_id&&d.fv))return;const r=i.source||"mosaic";["statistics","calculate"].includes(r)&&(t=y.formatStatisticsResult(t,o));let C=y.handleNullData(t,this.props,"history");o.forEach((d,_)=>{var f,m;if(!(!d.object_id||!d.fv))try{const v=(m=(f=C.history[_])==null?void 0:f[0])==null?void 0:m[d.fv];v!=null&&(d.value=v)}catch(v){}})}setSocketData(t){if(!t)return;const{data:o}=this.props.conf;o.some(n=>n.object_id&&n.fv)&&o.forEach(n=>{if(!n.object_id||!n.fv)return;const r=this.extractDataValue(t,n.fv);r!=null&&(n.value=r)})}}const g=new s(a,"deviceStatus");(!a.conf.data||a.conf.data.length===0)&&(a.conf.data=[{name:"温度传感器-01",type:"温度传感器",icon:"🌡",fv:"",object_id:"",unit:"°C",value:25.1,status:0},{name:"压力传感器-01",type:"压力传感器",icon:"⏱",fv:"",object_id:"",unit:"MPa",value:1.3,status:0},{name:"位移传感器-01",type:"位移传感器",icon:"↔",fv:"",object_id:"",unit:"mm",value:2.1,status:1},{name:"振动传感器-01",type:"振动传感器",icon:"〰",fv:"",object_id:"",unit:"Hz",value:.1,status:0}]),g.setupLifecycle();const c=g.getStyle(),p=e.ref(null),D=e.computed(()=>{var n;const l=((n=a.conf)==null?void 0:n.data)||[],t=l.filter(r=>r.status===0).length,o=l.filter(r=>r.status===1).length,i=l.filter(r=>r.status===2).length;return[{name:"正常",count:t,color:c.value.normalColor},{name:"警告",count:o,color:c.value.warnColor},{name:"异常",count:i,color:c.value.errorColor}]}),b=e.computed(()=>{var t;const l=((t=a.conf)==null?void 0:t.data)||[];return p.value===null?l:l.filter(o=>o.status===p.value)}),k=()=>console.log("实时更新"),B=l=>{p.value=p.value===l?null:l},w=l=>{const t=[c.value.normalColor,c.value.warnColor,c.value.errorColor];return t[l]||t[0]},j=l=>{const t=["正常","警告","异常"];return t[l]||t[0]};return(l,t)=>(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",I,[e.createElementVNode("div",F,[t[0]||(t[0]=e.createElementVNode("svg",{class:"header-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("circle",{cx:"12",cy:"12",r:"3"}),e.createElementVNode("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})],-1)),e.createElementVNode("span",z,e.toDisplayString(e.unref(c).title),1)]),e.createElementVNode("button",{class:"realtime-btn",onClick:k}," 实时更新 ")]),e.createElementVNode("div",H,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,(o,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"status-card",style:e.normalizeStyle({borderTopColor:o.color}),onClick:n=>B(i)},[e.createElementVNode("div",{class:"status-count",style:e.normalizeStyle({color:o.color})},e.toDisplayString(o.count),5),e.createElementVNode("div",U,e.toDisplayString(o.name),1)],12,P))),128))]),e.createElementVNode("div",q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(o,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"device-item"},[e.createElementVNode("div",$,e.toDisplayString(o.icon),1),e.createElementVNode("div",G,[e.createElementVNode("div",J,e.toDisplayString(o.name),1),e.createElementVNode("div",K,e.toDisplayString(o.type),1)]),e.createElementVNode("div",Q,[e.createElementVNode("div",W,e.toDisplayString(o.value)+" "+e.toDisplayString(o.unit),1),e.createElementVNode("div",{class:"status-tag",style:e.normalizeStyle({background:w(o.status)})},e.toDisplayString(j(o.status)),5)])]))),128)),b.value.length===0?(e.openBlock(),e.createElementBlock("div",X," 暂无设备数据 ")):e.createCommentVNode("",!0)]),e.renderSlot(l.$slots,"default",{},void 0,!0)]))}})),ne=y._export_sfc(ce,[["__scopeId","data-v-d3c9d7b3"]]);exports.default=ne;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var U=Object.defineProperty,R=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols,F=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,K=Reflect.get;var x=(r,l,a)=>l in r?U(r,l,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[l]=a,T=(r,l)=>{for(var a in l||(l={}))H.call(l,a)&&x(r,a,l[a]);if(N)for(var a of N(l))Y.call(l,a)&&x(r,a,l[a]);return r},P=(r,l)=>R(r,$(l));var I=(r,l,a)=>K(F(r),a,l);var M=(r,l,a)=>new Promise((g,p)=>{var C=d=>{try{f(a.next(d))}catch(m){p(m)}},y=d=>{try{f(a.throw(d))}catch(m){p(m)}},f=d=>d.done?g(d.value):Promise.resolve(d.value).then(C,y);f((a=a.apply(r,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),X=require("@element-plus/icons-vue");require("html2canvas");const Z=require("./BaseComponent-
|
|
1
|
+
"use strict";var U=Object.defineProperty,R=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols,F=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,K=Reflect.get;var x=(r,l,a)=>l in r?U(r,l,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[l]=a,T=(r,l)=>{for(var a in l||(l={}))H.call(l,a)&&x(r,a,l[a]);if(N)for(var a of N(l))Y.call(l,a)&&x(r,a,l[a]);return r},P=(r,l)=>R(r,$(l));var I=(r,l,a)=>K(F(r),a,l);var M=(r,l,a)=>new Promise((g,p)=>{var C=d=>{try{f(a.next(d))}catch(m){p(m)}},y=d=>{try{f(a.throw(d))}catch(m){p(m)}},f=d=>d.done?g(d.value):Promise.resolve(d.value).then(C,y);f((a=a.apply(r,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),X=require("@element-plus/icons-vue");require("html2canvas");const Z=require("./BaseComponent-DKuQG62G.cjs"),v=require("./index-DoEyCVDU.cjs"),V=require("./ele-lst-icon-CrxnHZ-A.cjs"),W={class:"displacement-data-table"},G={class:"table-toolbar"},J={class:"toolbar-title"},Q={class:"toolbar-right"},ee={class:"search-info"},te={class:"table-container"},ae={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"位移数据表",NAME_EN:"Displacement Data Table",ORDER:16,PLATFORM:["pc","screen"]},oe={title:{value:"深部位移数据表",type:"string",label:"component.deepDisplacement.title"},pageSize:{value:10,type:"number",label:"component.options.itemsPerPage",min:5,max:100},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},headerColor:{value:"#f5f7fa",type:"color",label:"component.deepDisplacement.headerColor"}},ne=[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth"}],le=["configPanelId","name","object_id","points_fv","fv","depth_fv"],se=["mosaic","statistics","calculate"],re={useAlias:!1,multiObject:!1,source:"mosaic"},ce={DEFAULT:ae,OPTIONS:oe,DATA:ne,PARAMS:le,SOURCE:se,COMMON:re},ie=e.defineComponent(P(T({},ce),{__name:"displacementDataTable",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){e.useCssVars(o=>({v49341654:e.unref(D).bgColor,v30ba3eee:e.unref(D).textColor}));const l=v.useLinkStore(),a=r,g=e.ref(1),p=e.ref(10),C=e.ref("0.039"),y=e.ref(400),f=e.ref([]),d=e.ref([]);class m extends Z.BaseComponent{extractStyles(){var n,s,i,u,_;const{options:t}=this.props.conf;return{title:((n=t==null?void 0:t.title)==null?void 0:n.value)||"深部位移数据表",pageSize:((s=t==null?void 0:t.pageSize)==null?void 0:s.value)||10,bgColor:((i=t==null?void 0:t.bgColor)==null?void 0:i.value)||"#ffffff",textColor:((u=t==null?void 0:t.textColor)==null?void 0:u.value)||"#333333",headerColor:((_=t==null?void 0:t.headerColor)==null?void 0:_.value)||"#f5f7fa"}}getDefaultData(){return[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth"}]}getMockData(){var i;const t=((i=this.props.conf)==null?void 0:i.data)||this.getDefaultData(),n=[-152,-151,-150,-149,-148,-147,-146,-145,-144,-143,-142];d.value=n;const s=[];for(let u=0;u<50;u++){const c={time:v.dayjs().subtract(u,"hour").format("YYYY-MM-DD HH:mm:ss")};t.forEach(E=>{n.forEach(j=>{const L=Math.random()*5;c[`${E.name}_${Math.abs(j)}`]=L+Math.random()})}),s.push(c)}return s}onPreview(){return M(this,null,function*(){const{data:t}=this.props.conf;t.some(s=>s.object_id&&s.fv)?(console.log("[DisplacementDataTable] 检测到数据绑定,订阅真实数据"),yield I(m.prototype,this,"onPreview").call(this)):(console.log("[DisplacementDataTable] 未配置数据源,使用模拟数据"),f.value=this.getMockData())})}setHistoryData(t){const{data:n,common:s}=this.props.conf;if(!n||n.length===0||!n.some(c=>c.object_id&&c.fv))return;const u=(s==null?void 0:s.source)||"mosaic";["statistics","calculate"].includes(u)&&(t=v.formatStatisticsResult(t,n)),v.handleNullData(t,this.props,"history")}setSocketData(t){console.log("[DisplacementDataTable] 收到实时数据")}}const h=new m(a,"displacementDataTable");(!a.conf.data||a.conf.data.length===0)&&(a.conf.data=h.getDefaultData()),h.setupLifecycle();const D=h.getStyle();e.onMounted(()=>{p.value=D.value.pageSize,f.value=h.getMockData()});const k=e.computed(()=>{var t,n;return((n=(((t=a.conf)==null?void 0:t.data)||[])[0])==null?void 0:n.configPanelId)||""});e.watch(()=>l.channels.deepDisplacement,o=>{if(!o||o.topic.source==="displacementDataTable")return;const t=k.value;if(!t)return;const{payload:n}=o;n.objectId===t&&n.type==="config"&&console.log("[DataTable] 收到配置:",n.fv)},{deep:!0});const O=e.computed(()=>{var n;const o=((n=a.conf)==null?void 0:n.data)||h.getDefaultData(),t=[];return o.forEach(s=>{d.value.forEach(i=>{t.push({prop:`${s.name}_${Math.abs(i)}`,label:`${s.name} (${i}m)`})})}),t}),w=e.computed(()=>{const o=(g.value-1)*p.value,t=o+p.value;return f.value.slice(o,t)}),S=e.computed(()=>f.value.length),z=o=>o==null?"-":typeof o=="number"?o.toFixed(3):o,q=o=>{g.value=o},A=o=>{p.value=o,g.value=1},B=()=>{console.log("导出表格")};return e.watch(()=>{var o;return(o=a.conf)==null?void 0:o.data},()=>{f.value=h.getMockData()},{deep:!0}),(o,t)=>{const n=b.ElIcon,s=b.ElButton,i=b.ElPagination,u=b.ElTableColumn,_=b.ElTable;return e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("div",G,[e.createElementVNode("div",J,e.toDisplayString(e.unref(D).title),1),e.createVNode(s,{size:"small",onClick:B},{default:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.Upload))]),_:1}),t[2]||(t[2]=e.createTextVNode(" 导出表 ",-1))]),_:1}),e.createElementVNode("div",Q,[e.createElementVNode("span",ee,"搜索耗时 "+e.toDisplayString(C.value)+"秒 总共 "+e.toDisplayString(S.value)+" 条数据",1),e.createVNode(i,{"current-page":g.value,"onUpdate:currentPage":t[0]||(t[0]=c=>g.value=c),"page-size":p.value,"onUpdate:pageSize":t[1]||(t[1]=c=>p.value=c),"page-sizes":[10,20,50,100],total:S.value,layout:"prev, pager, next, sizes",small:"",onSizeChange:A,onCurrentChange:q},null,8,["current-page","page-size","total"])])]),e.createElementVNode("div",te,[e.createVNode(_,{data:w.value,height:y.value,border:"",stripe:"",size:"small","header-cell-style":{background:"#f5f7fa",color:"#333",fontWeight:600}},{default:e.withCtx(()=>[e.createVNode(u,{prop:"time",label:"采集时间",width:"160",fixed:"left"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,c=>(e.openBlock(),e.createBlock(u,{key:c.prop,prop:c.prop,label:c.label,width:"100",align:"right"},{default:e.withCtx(({row:E})=>[e.createTextVNode(e.toDisplayString(z(E[c.prop])),1)]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data","height"])]),e.renderSlot(o.$slots,"default",{},void 0,!0)])}}})),ue=v._export_sfc(ie,[["__scopeId","data-v-5bfa4b32"]]);exports.default=ue;
|