mixdashboards 1.0.78 → 1.0.80
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/{BaseComponent-Dwhb9Mde.js → BaseComponent-CEp8NJiX.js} +8 -8
- package/dist/{BaseComponent-bzb58Hhs.cjs → BaseComponent-DaYX7dUF.cjs} +1 -1
- package/dist/{EChartComponentBase-BmS2KONN.js → EChartComponentBase-B-VNAC8K.js} +2 -2
- package/dist/{EChartComponentBase-CMN_pOMr.cjs → EChartComponentBase-C2sxqwSE.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-FtvC-aXY.js → EmergencyPlanPanel-CwWvSELn.js} +1 -1
- package/dist/{EmergencyPlanPanel-CVusdpDo.cjs → EmergencyPlanPanel-Dcj6mNDZ.cjs} +1 -1
- package/dist/{HistoryPlanDialog-CrYylrTC.cjs → HistoryPlanDialog-CHHKFCEb.cjs} +1 -1
- package/dist/{HistoryPlanDialog-DliuSi0p.js → HistoryPlanDialog-MDXWiel6.js} +1 -1
- package/dist/{MonitoringMap-CBnv001f.cjs → MonitoringMap-CfcXyLMN.cjs} +1 -1
- package/dist/{MonitoringMap-DB3R5nAJ.js → MonitoringMap-Disr1Wm4.js} +2 -2
- package/dist/{UniverSheet-DFyIjurx.js → UniverSheet-BcuvQ33A.js} +2 -2
- package/dist/{UniverSheet-jy9kOyPN.cjs → UniverSheet-M8Z5JVxm.cjs} +1 -1
- package/dist/{accelerationChart-Ceo371ch.cjs → accelerationChart-DoqDRcpd.cjs} +1 -1
- package/dist/{accelerationChart-Q_Q_QlU7.js → accelerationChart-Dq5_6weP.js} +14 -14
- package/dist/{actionItem-BzMI_4-S.js → actionItem-BryBezOd.js} +2 -2
- package/dist/{actionItem-DB74CPi2.cjs → actionItem-JVOxJr61.cjs} +1 -1
- package/dist/{alarmLevelChart-CxmiBIKh.cjs → alarmLevelChart-C4_IhtlF.cjs} +1 -1
- package/dist/{alarmLevelChart-Bp3SLCMe.js → alarmLevelChart-DUysIMGJ.js} +2 -2
- package/dist/{alertTable-B1w_i0VB.cjs → alertTable-DWQGvAmY.cjs} +1 -1
- package/dist/{alertTable-DXzTm7mA.js → alertTable-nLYwM6ix.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-Dfanalux.js → aliasObjectSelectorDemo-Cgnw6vkp.js} +1 -1
- package/dist/{aliasObjectSelectorDemo-CRuq8zju.cjs → aliasObjectSelectorDemo-DdAJ_krx.cjs} +1 -1
- package/dist/{annualRainfallChart-DEeyac7q.cjs → annualRainfallChart-BVoSl6rW.cjs} +1 -1
- package/dist/{annualRainfallChart-D4Rhc84p.js → annualRainfallChart-C4P7sAvp.js} +2 -2
- package/dist/{aqi-BzCTxj0q.js → aqi-BZTi1MAr.js} +2 -2
- package/dist/{aqi-CBknBfTF.cjs → aqi-jvYPQWm2.cjs} +1 -1
- package/dist/{aqiIndass-CUs24FxP.cjs → aqiIndass-C028TDT1.cjs} +1 -1
- package/dist/{aqiIndass-BJGsJsmz.js → aqiIndass-CZfEX0GU.js} +18 -18
- package/dist/{areaDeformCurve-bSAkB3Pt.js → areaDeformCurve-B0DUtSgh.js} +2 -2
- package/dist/{areaDeformCurve-B8VGdoKK.cjs → areaDeformCurve-BXhSeaoy.cjs} +1 -1
- package/dist/{arrayCard-BkD5sytz.js → arrayCard-BlEclzhU.js} +2 -2
- package/dist/{arrayCard-kh5WRweD.cjs → arrayCard-CH1c-fdy.cjs} +1 -1
- package/dist/{audio-BTrvZwCy.js → audio-DssRoD8a.js} +2 -2
- package/dist/{audio-DwJN2gca.cjs → audio-kCcoKcES.cjs} +1 -1
- package/dist/{bar-DYIb4143.js → bar-C19ODKbU.js} +2 -2
- package/dist/{bar-DsyyzcxB.cjs → bar-Dijd0sQu.cjs} +1 -1
- package/dist/{bmp-DbEyuBZw.cjs → bmp-Bxw4TwUB.cjs} +1 -1
- package/dist/{bmp-Dt3mSkAr.js → bmp-DUTgixKN.js} +2 -2
- package/dist/{box-D7RsK5Qp.js → box-B44mc692.js} +2 -2
- package/dist/{box--u3HQFj9.cjs → box-CeE915Ww.cjs} +1 -1
- package/dist/{chartConfigPanel-DybQRqg6.cjs → chartConfigPanel-0O_o7wlV.cjs} +1 -1
- package/dist/{chartConfigPanel-CD-csrX-.js → chartConfigPanel-w0x44bWL.js} +1 -1
- package/dist/circleBar-BJoBZfyx.js +310 -0
- package/dist/circleBar-CVYAERg4.cjs +4 -0
- package/dist/{clock-Cj0HsizY.js → clock-C5FWG3xy.js} +2 -2
- package/dist/{clock-Dc9jgxHT.cjs → clock-CFE1WkOQ.cjs} +1 -1
- package/dist/{clt-uJT1jgHk.js → clt-Cycf8W0K.js} +2 -2
- package/dist/{clt-CBbtQxMc.cjs → clt-DEzN6BGU.cjs} +1 -1
- package/dist/{cmc-JJ6eTxB3.js → cmc-C9PYd5ym.js} +2 -2
- package/dist/{cmc-CeTCKLBx.cjs → cmc-DR3T47y4.cjs} +1 -1
- package/dist/{cmp-CGZ_2BdE.cjs → cmp-DsKyXUHa.cjs} +1 -1
- package/dist/{cmp-D9qlHJoW.js → cmp-Dsc6RprW.js} +2 -2
- package/dist/{conclusionCard-BsLeh3yq.js → conclusionCard-BGUQzWMI.js} +2 -2
- package/dist/{conclusionCard-CwLwj3zj.cjs → conclusionCard-sUyiTSA6.cjs} +1 -1
- package/dist/{controlList-l2ZYM6m5.cjs → controlList-B6EasOKV.cjs} +1 -1
- package/dist/{controlList-CYNS0ArB.js → controlList-DeLBnY0K.js} +2 -2
- package/dist/{controlRecordList-N79_cTON.cjs → controlRecordList-D63e4vQn.cjs} +1 -1
- package/dist/{controlRecordList-BZmCvISO.js → controlRecordList-DCz4Xt9n.js} +2 -2
- package/dist/{controlRecordListAPP-aDj520mp.js → controlRecordListAPP-D0cUYXLY.js} +2 -2
- package/dist/{controlRecordListAPP-DOzMDV4x.cjs → controlRecordListAPP-pfRdnvv1.cjs} +1 -1
- package/dist/{crd-bm_BHuoV.js → crd-B4ZnlIJq.js} +2 -2
- package/dist/{crd-CV4kMUTB.cjs → crd-DRUEk13j.cjs} +1 -1
- package/dist/{ctrBtn-DYceHTAq.js → ctrBtn-5odXmYf7.js} +17 -17
- package/dist/{ctrBtn-Cs6ZmfyJ.cjs → ctrBtn-Bm79a5Sj.cjs} +1 -1
- package/dist/{ctrSet-B6PlTSBE.js → ctrSet-B1dpatKF.js} +33 -33
- package/dist/ctrSet-BMnG-OkK.cjs +1 -0
- package/dist/{ctrSwitch-B9lHJgQn.cjs → ctrSwitch-A9LVcYIN.cjs} +1 -1
- package/dist/{ctrSwitch-E0FM_4f2.js → ctrSwitch-C5aPCuez.js} +39 -39
- package/dist/{dataManagement-bKmkV2VY.cjs → dataManagement-8NQDTifq.cjs} +1 -1
- package/dist/{dataManagement-BAHa-OHl.js → dataManagement-Dqf-T0x4.js} +2 -2
- package/dist/{dataReport-B60Rb4sb.js → dataReport-CT4_ly92.js} +2 -2
- package/dist/{dataReport-JcrjpK_j.cjs → dataReport-CiB4XAKO.cjs} +1 -1
- package/dist/{dataTable-BmvewFlr.js → dataTable-BWc0XycI.js} +1 -1
- package/dist/{dataTable-CX6uktOu.cjs → dataTable-BiyK3INj.cjs} +1 -1
- package/dist/{datetime-BPM_lGiY.cjs → datetime-BVigJCWY.cjs} +1 -1
- package/dist/{datetime-DARBbZJx.js → datetime-Du0fBPZ3.js} +2 -2
- package/dist/{deepClusterSlipSurface-BF77Vp7G.js → deepClusterSlipSurface-BJBW_lMx.js} +2 -2
- package/dist/{deepClusterSlipSurface-IywdiDlA.cjs → deepClusterSlipSurface-Dh-nEUwt.cjs} +1 -1
- package/dist/{deepDataMatrix-sRXkGqdm.cjs → deepDataMatrix-CGCLKdVW.cjs} +1 -1
- package/dist/{deepDataMatrix--zgQoWer.js → deepDataMatrix-CMJMtqVu.js} +2 -2
- package/dist/{deepDisplacement3D-BYt49pzj.js → deepDisplacement3D-BdzBAOZZ.js} +2 -2
- package/dist/{deepDisplacement3D-BET8Ftuc.cjs → deepDisplacement3D-DcwFkrri.cjs} +1 -1
- package/dist/{deepDisplacementChart-BGBhipUx.js → deepDisplacementChart-Be9lxAWP.js} +25 -25
- package/dist/{deepDisplacementChart-D7loYUI5.cjs → deepDisplacementChart-Ct7iZvof.cjs} +1 -1
- package/dist/{deepDisplacementChart-B2zPpsk6.js → deepDisplacementChart-D_dq-XPI.js} +16 -16
- package/dist/{deepDisplacementChart-BuuM485C.cjs → deepDisplacementChart-EjGt1LJp.cjs} +1 -1
- package/dist/{deepDisplacementView-Bwk9p_Qc.js → deepDisplacementView-1eSVkmqk.js} +1 -1
- package/dist/{deepDisplacementView-CTBH3IxP.cjs → deepDisplacementView-VyO91qP0.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-BqTigCTs.js → deepNodeTemperatureChart-BUvEk5T9.js} +2 -2
- package/dist/{deepNodeTemperatureChart-CTLHLf0w.cjs → deepNodeTemperatureChart-DPnQPYKr.cjs} +1 -1
- package/dist/{deepTangentAngleChart-5oxzMpMF.js → deepTangentAngleChart-5mJOFDsK.js} +2 -2
- package/dist/{deepTangentAngleChart-CHxB8OFL.cjs → deepTangentAngleChart-hJHt5aoD.cjs} +1 -1
- package/dist/{deepTemperatureField-Cr6YbuR_.cjs → deepTemperatureField-BAS3omfm.cjs} +1 -1
- package/dist/{deepTemperatureField-Bhk89D3D.js → deepTemperatureField-DlrB4dKP.js} +3 -3
- package/dist/{deepTrendChart-CAbdVR8d.js → deepTrendChart-CLNAoy8P.js} +2 -2
- package/dist/{deepTrendChart-Ch94j4W9.cjs → deepTrendChart-DAM_Ds5z.cjs} +1 -1
- package/dist/{deviceOnlineStatus-C5ODwFsY.js → deviceOnlineStatus-1UHPkOr2.js} +2 -2
- package/dist/{deviceOnlineStatus-DxsTb4Vb.cjs → deviceOnlineStatus-D_oS1F9j.cjs} +1 -1
- package/dist/{deviceStatus-DPfOQCSX.js → deviceStatus-CcPjyhrB.js} +10 -10
- package/dist/{deviceStatus-CjFTpCaU.cjs → deviceStatus-DdFB86J7.cjs} +1 -1
- package/dist/{displacementDataTable-DG36VWok.js → displacementDataTable-B7x4ogcW.js} +9 -9
- package/dist/{displacementDataTable-BIqBEkul.cjs → displacementDataTable-NlqtVyYg.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-DRltcPfa.cjs → displacementTrajectoryChart-BRy93sPt.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-Cpmj24Jn.js → displacementTrajectoryChart-C10Uroic.js} +11 -11
- package/dist/{displacementTrendChart-DpD79zii.cjs → displacementTrendChart-B5NRRQzD.cjs} +1 -1
- package/dist/{displacementTrendChart-D1yfRFQb.js → displacementTrendChart-D-_Ls7J4.js} +11 -11
- package/dist/{dxf-C_9cH0WU.cjs → dxf-B7DB_30i.cjs} +1 -1
- package/dist/{dxf-zbCakRgh.js → dxf-CqFFtWRq.js} +2 -2
- package/dist/{dzc-CfPVaIgj.js → dzc-BjA7dXWS.js} +2 -2
- package/dist/{dzc-CejqHneE.cjs → dzc-DT6Chp2Q.cjs} +1 -1
- package/dist/{emergencyPlan-dEwML5xC.cjs → emergencyPlan-DkErPudJ.cjs} +1 -1
- package/dist/{emergencyPlan-LbeRH-P9.js → emergencyPlan-IJ0wIcFl.js} +3 -3
- package/dist/{evn-DsD_MKQd.js → evn-DeaQXEPO.js} +2 -2
- package/dist/{evn-BvgQ3o3T.cjs → evn-Dh71UuO9.cjs} +1 -1
- package/dist/{evolutionChart-B4C9qB3I.js → evolutionChart-C3oCrBf3.js} +3 -3
- package/dist/{evolutionChart-Dt5-xRsy.cjs → evolutionChart-C7Ae0ZiT.cjs} +1 -1
- package/dist/{fileViewer-B0LdLy2P.js → fileViewer-8Us72XkI.js} +2 -2
- package/dist/{fileViewer-DZIREgL0.cjs → fileViewer-ERPHU_Zd.cjs} +1 -1
- package/dist/{filterBar-D_jcuqwP.cjs → filterBar-CW7bn1-p.cjs} +1 -1
- package/dist/{filterBar-Bt6w4_xK.js → filterBar-D9xz6-NL.js} +2 -2
- package/dist/{fireCombustionCurve-CHRd1nSv.cjs → fireCombustionCurve-CqiMMU_8.cjs} +1 -1
- package/dist/{fireCombustionCurve-C2rWY89D.js → fireCombustionCurve-DIUwJpXU.js} +3 -3
- package/dist/{fireFilterBar-CpwHRisZ.js → fireFilterBar-BG-StguC.js} +2 -2
- package/dist/{fireFilterBar-DX8qH1rr.cjs → fireFilterBar-Beqb_Dns.cjs} +1 -1
- package/dist/{fireHistoryTable-B38M6w5w.cjs → fireHistoryTable-CRzrvuo8.cjs} +1 -1
- package/dist/{fireHistoryTable-DcSgHt5q.js → fireHistoryTable-ChqoTAYc.js} +2 -2
- package/dist/{gag-qDNPdFJu.cjs → gag-Bx9QvvT7.cjs} +1 -1
- package/dist/{gag-BErw_nsf.js → gag-Cf3zHBXx.js} +2 -2
- package/dist/{gasStationList-BREZbC_k.js → gasStationList--rmQJ0jp.js} +2 -2
- package/dist/{gasStationList-NhJa4GO6.cjs → gasStationList-BjyCsqqM.cjs} +1 -1
- package/dist/{geo3dViewer-D9uSt0up.cjs → geo3dViewer-Ch6d1IMg.cjs} +1 -1
- package/dist/{geo3dViewer-zAN1eIza.js → geo3dViewer-mDKnyJMa.js} +3 -3
- package/dist/{glbModel-C4FiDMM5.cjs → glbModel-DAofoZCs.cjs} +1 -1
- package/dist/{glbModel-i6HvK0m8.js → glbModel-aQXnlO7p.js} +2 -2
- package/dist/{globalObjectSelector-BrVwJEgp.js → globalObjectSelector-AF67vBmT.js} +1 -1
- package/dist/{globalObjectSelector-CR74psMa.cjs → globalObjectSelector-C2t3Jtm6.cjs} +1 -1
- package/dist/{gnssFilterBar-BkfBQWXF.cjs → gnssFilterBar-4JNWA-CR.cjs} +1 -1
- package/dist/{gnssFilterBar-BEHXIIKI.js → gnssFilterBar-BgpevrmL.js} +2 -2
- package/dist/{gnssHistoryTable-DDWGE_ge.js → gnssHistoryTable-De2cn5dP.js} +2 -2
- package/dist/{gnssHistoryTable-CQ-7ESYj.cjs → gnssHistoryTable-xnzV8l_Q.cjs} +1 -1
- package/dist/{gnssMapView-C9iRAzym.js → gnssMapView-C9IqBqEw.js} +4 -4
- package/dist/{gnssMapView-P6ed3l_W.cjs → gnssMapView-D9V5XNlw.cjs} +2 -2
- package/dist/{gnssSectionProfile-CIZnF7VA.cjs → gnssSectionProfile-CxXhhOCd.cjs} +1 -1
- package/dist/{gnssSectionProfile-BIqyABEf.js → gnssSectionProfile-HfiKe0-s.js} +2 -2
- package/dist/{gnssTimeSeriesChart-BgIM5U-H.cjs → gnssTimeSeriesChart-C4onoU3C.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-DqH9JFBF.js → gnssTimeSeriesChart-CvoTHHqa.js} +2 -2
- package/dist/{gnssXYTrajectory-CH8864n6.cjs → gnssXYTrajectory-Dug2OwRw.cjs} +1 -1
- package/dist/{gnssXYTrajectory-BviUjxG9.js → gnssXYTrajectory-g_pRuL75.js} +2 -2
- package/dist/{grd-BhpBxrpa.cjs → grd-CYg3e2B0.cjs} +1 -1
- package/dist/{grd-DfkGlcW6.js → grd-DqKnlgw_.js} +20 -20
- package/dist/{grdIndass-ByznFwzc.js → grdIndass-CUE7Gb-W.js} +2 -2
- package/dist/{grdIndass-DhMfHz31.cjs → grdIndass-D3wFyDpD.cjs} +1 -1
- package/dist/{grg-CVBoetQY.js → grg-BpNY4dsd.js} +6 -6
- package/dist/{grg-uzBlEm_K.cjs → grg-Cu7muu3_.cjs} +1 -1
- package/dist/{gridview-Dt3i1t5d.js → gridview-BLabvs9I.js} +2 -2
- package/dist/{gridview-CyXCqWKq.cjs → gridview-BUsfJz0o.cjs} +1 -1
- package/dist/{groundwaterFilterBar-BbS81e9a.js → groundwaterFilterBar-BQFayVwl.js} +2 -2
- package/dist/{groundwaterFilterBar-C4xCPqa_.cjs → groundwaterFilterBar-f9qXTkoQ.cjs} +1 -1
- package/dist/{groundwaterProfileChart-DvjFvCm5.cjs → groundwaterProfileChart-AN7OLcKv.cjs} +2 -2
- package/dist/{groundwaterProfileChart-BBPFrt5W.js → groundwaterProfileChart-pVEgD-ec.js} +3 -3
- package/dist/{groundwaterTimeCurve-Cb3xlM78.cjs → groundwaterTimeCurve-BoJnmOYq.cjs} +1 -1
- package/dist/{groundwaterTimeCurve-CKlvc2nQ.js → groundwaterTimeCurve-DRoycHDe.js} +3 -3
- package/dist/{groupCard-BVdjzdqF.cjs → groupCard-Dq6TXOZt.cjs} +1 -1
- package/dist/{groupCard-BBzDl9uX.js → groupCard-fPMXeW8L.js} +2 -2
- package/dist/{headerBar-B5Z8UviF.cjs → headerBar-Da-XmgLi.cjs} +1 -1
- package/dist/{headerBar-Dty08mHR.js → headerBar-ap2M954P.js} +2 -2
- package/dist/{history-yI8XiwXi.cjs → history-3PgmioqY.cjs} +1 -1
- package/dist/{history-TkSKA8F1.js → history-BC8RESyu.js} +1 -1
- package/dist/{index-YNdVib_6.js → index-CqVPeq0-.js} +455 -453
- package/dist/index-OgmTZiO-.cjs +612 -0
- package/dist/{insarDeformChart-C9UkWIL9.js → insarDeformChart-CKBcUJCV.js} +2 -2
- package/dist/{insarDeformChart-Dr9Ve1vY.cjs → insarDeformChart-DABg6b8J.cjs} +1 -1
- package/dist/{insarImageViewer-DAKBn2vV.cjs → insarImageViewer-9FpJDh1K.cjs} +1 -1
- package/dist/{insarImageViewer-DZbq2xch.js → insarImageViewer-C1XBU0YL.js} +2 -2
- package/dist/{kds-BkH8cJCu.cjs → kds-B04fJsat.cjs} +1 -1
- package/dist/{kds-__I8-o5i.js → kds-D6TYb16w.js} +21 -21
- package/dist/{kpiCard-fRfv1QPb.cjs → kpiCard-Bfi2W9cH.cjs} +1 -1
- package/dist/{kpiCard-BzuF0qdE.js → kpiCard-D5S1M8Rs.js} +2 -2
- package/dist/{landslideMap-zD8SU2Lh.cjs → landslideMap-CWmIK6ca.cjs} +1 -1
- package/dist/{landslideMap-D84pku4Y.js → landslideMap-DXyIahAi.js} +3 -3
- package/dist/{landslideWarning-Cq-di-hN.cjs → landslideWarning-CPwRDf3u.cjs} +1 -1
- package/dist/{landslideWarning-0mckvEoZ.js → landslideWarning-DaI_F3dC.js} +5 -5
- package/dist/{layerTabs-COzqQ9mn.js → layerTabs-DJaWhtYa.js} +2 -2
- package/dist/{layerTabs-C2zq6a5M.cjs → layerTabs-DfVZUJvC.cjs} +1 -1
- package/dist/{leaflet-src-2tPn7QVH.js → leaflet-src-DU74PJcX.js} +1 -1
- package/dist/{leaflet-src-D8MF2j44.cjs → leaflet-src-gpxoqh6Y.cjs} +1 -1
- package/dist/{lerc-BHcVhBOn.cjs → lerc-ACN_ZV5f.cjs} +1 -1
- package/dist/{lerc-BCmG0CMS.js → lerc-ZmeF7NhV.js} +2 -2
- package/dist/{lin-niA_T9Ql.cjs → lin-BqSPUdmV.cjs} +1 -1
- package/dist/{lin-CQ6TCBCr.js → lin-DXM61jXV.js} +2 -2
- package/dist/{linIndass-J9rdji6E.js → linIndass-DQZjD3lL.js} +12 -12
- package/dist/{linIndass-nZx16Vos.cjs → linIndass-jqzXVoXv.cjs} +1 -1
- package/dist/{lst-DieyrYCh.js → lst-Bpf41jqR.js} +2 -2
- package/dist/{lst-Cw1XCAv0.cjs → lst-C9RrqCgo.cjs} +1 -1
- package/dist/{manualEntry-CCmyPMJm.js → manualEntry-BvKEwOnY.js} +2 -2
- package/dist/{manualEntry-ChhTpAF2.cjs → manualEntry-wG0RcQYe.cjs} +1 -1
- package/dist/{mapBackground-BzOdjhnZ.cjs → mapBackground-DOsGw2Dh.cjs} +1 -1
- package/dist/{mapBackground-CiiG2nHi.js → mapBackground-DxQdqWM2.js} +3 -3
- package/dist/{mappingList-CoBD8D27.js → mappingList-BRpK5eX_.js} +2 -2
- package/dist/{mappingList-D42mILiq.cjs → mappingList-C7qyzN6o.cjs} +1 -1
- package/dist/{markdownViewer-C3HUXDvf.js → markdownViewer-CZVNZ8jN.js} +2 -2
- package/dist/{markdownViewer-DHs9ekCh.cjs → markdownViewer-C_TA7AX-.cjs} +1 -1
- package/dist/{mix-control-modal-BEwriuWS.js → mix-control-modal-DITf1VAp.js} +1 -1
- package/dist/{mix-control-modal-DGd2S6Jd.cjs → mix-control-modal-DjG-ChQu.cjs} +1 -1
- package/dist/{mixGrid-Cnq99D09.cjs → mixGrid-Zk7NKpBw.cjs} +1 -1
- package/dist/{mixGrid-CBenxHD_.js → mixGrid-mbFlywYp.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mixiotObjectListApi-e1qL7PHh.cjs → mixiotObjectListApi-CRPxZbIS.cjs} +1 -1
- package/dist/{mixiotObjectListApi-CKJLXcnf.js → mixiotObjectListApi-cTDvF31d.js} +1 -1
- package/dist/{mjpegCamera-D8lB701i.js → mjpegCamera-B3m55jok.js} +2 -2
- package/dist/{mjpegCamera-DDFrZo-x.cjs → mjpegCamera-Da5NZX0r.cjs} +1 -1
- package/dist/{monitorAlert-C-mo-lDe.cjs → monitorAlert-BqUYN_BF.cjs} +1 -1
- package/dist/{monitorAlert-Z1dFDfPh.js → monitorAlert-sn_3TrGJ.js} +9 -9
- package/dist/{monitorData-CNRfV5Wt.cjs → monitorData-B-dcmDx3.cjs} +1 -1
- package/dist/{monitorData-DZhO9Gos.js → monitorData-RhTZn3fI.js} +11 -11
- package/dist/{monitorSpeedChart-DrRdMdGD.cjs → monitorSpeedChart-_L0zgWxs.cjs} +1 -1
- package/dist/{monitorSpeedChart-C5pN46lO.js → monitorSpeedChart-uWpHlkZd.js} +1 -1
- package/dist/{mxa-COpw24fq.cjs → mxa-BNnKgDyq.cjs} +1 -1
- package/dist/{mxa-BFQ70ksk.js → mxa-ClEVeLaa.js} +2 -2
- package/dist/{myValue-Eb3asTOC.cjs → myValue-DoBpTp1-.cjs} +1 -1
- package/dist/{myValue-Dosl4Ro5.js → myValue-Drhoqp_w.js} +2 -2
- package/dist/{myValueList-mcqRZanE.cjs → myValueList-BT6mKnwJ.cjs} +1 -1
- package/dist/{myValueList-Dkc10vr6.js → myValueList-BfIDIHUe.js} +2 -2
- package/dist/{objectList-FWkZ6PAs.js → objectList-CATv4N0g.js} +3 -3
- package/dist/{objectList-D4owr3ED.cjs → objectList-CM1T-IQo.cjs} +1 -1
- package/dist/{objectListAPP-CdfeZTgm.js → objectListAPP-BG9iL6S_.js} +3 -3
- package/dist/{objectListAPP-Bzevu1od.cjs → objectListAPP-lNp3RQsA.cjs} +1 -1
- package/dist/percentBar-BOQp427o.js +369 -0
- package/dist/percentBar-By73saGo.cjs +5 -0
- package/dist/{photo-Dmxxqgrg.cjs → photo-CFomIdjq.cjs} +1 -1
- package/dist/{photo-DxXTYq73.js → photo-N8uk9UzU.js} +2 -2
- package/dist/{pie-BxpiCEYe.cjs → pie-BzkMCV5O.cjs} +1 -1
- package/dist/{pie-COixdWUz.js → pie-DuWuL4rb.js} +2 -2
- package/dist/{placeholder-Ole-Or58.cjs → placeholder-B9T7qNoD.cjs} +1 -1
- package/dist/{placeholder-CLLNLxRC.js → placeholder-DI_zsp-O.js} +1 -1
- package/dist/{pressBtn-DwKg9PbD.cjs → pressBtn-B_D3cFPd.cjs} +1 -1
- package/dist/{pressBtn-C7Y-B8Dz.js → pressBtn-D-j1_nDJ.js} +38 -38
- package/dist/{processTable-CTkwZWWJ.js → processTable-B-X05x32.js} +2 -2
- package/dist/{processTable-DDcKkjJx.cjs → processTable-B5WzGKQr.cjs} +1 -1
- package/dist/{progressBar-7qHg67Sf.cjs → progressBar-19d-9U9p.cjs} +1 -1
- package/dist/{progressBar-9npgJ9jD.js → progressBar-F61-3H3E.js} +2 -2
- package/dist/{progressCircle-DP08TX08.js → progressCircle-Dp4XWdE0.js} +2 -2
- package/dist/{progressCircle-Xgjnl1KF.cjs → progressCircle-RZ36ttud.cjs} +1 -1
- package/dist/{qrcode-D6wDMo-f.cjs → qrcode-D8C5cFka.cjs} +1 -1
- package/dist/{qrcode-ClTSNzEN.js → qrcode-PeEXEcDd.js} +2 -2
- package/dist/{raceBar-CTmsN8VC.js → raceBar-BnkzNqH0.js} +2 -2
- package/dist/{raceBar-C8mVFHnd.cjs → raceBar-DuCYwMoq.cjs} +1 -1
- package/dist/{rad-DWCSD35t.js → rad-BdQ-1k0K.js} +66 -56
- package/dist/{rad-Dxaakm82.cjs → rad-DND2sEzm.cjs} +1 -1
- package/dist/{radarMapViewer-eEBE3MS-.js → radarMapViewer-BUT7ZD47.js} +2 -2
- package/dist/{radarMapViewer-U7IQJjQs.cjs → radarMapViewer-BtwXLg65.cjs} +1 -1
- package/dist/{rainfallFilterBar-DJTDGu7Z.js → rainfallFilterBar-0IX3rYUD.js} +2 -2
- package/dist/{rainfallFilterBar-ow_wdOwq.cjs → rainfallFilterBar-BVD1fsJF.cjs} +1 -1
- package/dist/{rainfallTimeCurve-CwGmJhxu.js → rainfallTimeCurve-BIt0Ax0l.js} +3 -3
- package/dist/{rainfallTimeCurve-BL1I5Z2D.cjs → rainfallTimeCurve-DvYAvU9a.cjs} +1 -1
- package/dist/{rangeLin-BqcJpIva.js → rangeLin-BpAilzGc.js} +2 -2
- package/dist/{rangeLin-BEz9xapa.cjs → rangeLin-DKjgf_Ab.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-NOkyU7G3.js → realtimeEvolutionMap-5rOyArZq.js} +2 -2
- package/dist/{realtimeEvolutionMap-mzXlR8gS.cjs → realtimeEvolutionMap-Feks0bxX.cjs} +1 -1
- package/dist/{regionBar-DDk-2UWS.js → regionBar-D2if9Cyv.js} +2 -2
- package/dist/{regionBar-CEfz0Yol.cjs → regionBar-oWO1HZta.cjs} +1 -1
- package/dist/{request-BIXfJXjX.js → request-BAa7KXPI.js} +1 -1
- package/dist/{request-BfG3yDz6.cjs → request-DRttaVjf.cjs} +1 -1
- package/dist/{retainer1-Cz5rXIJj.js → retainer1-Bz3hKsxS.js} +3 -3
- package/dist/{retainer1-Ch1oZMeA.cjs → retainer1-CA3lV3eb.cjs} +1 -1
- package/dist/{retainer2-DJ1R2GJE.cjs → retainer2-BnfP4WPr.cjs} +1 -1
- package/dist/{retainer2-DeelXgAZ.js → retainer2-UsoVsRXo.js} +3 -3
- package/dist/{retainerRecordList-DyhfjtfF.js → retainerRecordList-DbXRpaHy.js} +2 -2
- package/dist/{retainerRecordList-D3MsCnqy.cjs → retainerRecordList-jkXbz9xr.cjs} +1 -1
- package/dist/{retainerRecordListAPP-B_hCyRak.cjs → retainerRecordListAPP-CS4s1t0e.cjs} +1 -1
- package/dist/{retainerRecordListAPP-3Gr7db3D.js → retainerRecordListAPP-DI4f5Q6f.js} +2 -2
- package/dist/{ringTopN-fLinQVwX.cjs → ringTopN-BBryDUi9.cjs} +1 -1
- package/dist/{ringTopN-t9xaVCWg.js → ringTopN-BCZhDz0U.js} +2 -2
- package/dist/{riskRegionTable-CagcISBC.cjs → riskRegionTable-DtG9zTy5.cjs} +1 -1
- package/dist/{riskRegionTable-BThwQbTf.js → riskRegionTable-Dw573XX4.js} +2 -2
- package/dist/{sankey-BY_nwThw.cjs → sankey-BNmzRTH5.cjs} +1 -1
- package/dist/{sankey-Bwm0omQr.js → sankey-DHbOEbzP.js} +2 -2
- package/dist/{scd-DeYC1Rqx.js → scd-CNcTAStO.js} +2 -2
- package/dist/{scd-Bs1dG1w8.cjs → scd-Cf68XDF5.cjs} +1 -1
- package/dist/{sideMenu-CAEh3bwF.cjs → sideMenu-BW8ddV-x.cjs} +1 -1
- package/dist/{sideMenu-Db_Nc_xz.js → sideMenu-DKAAQcWF.js} +2 -2
- package/dist/{slopeStability-CVC68Qcj.js → slopeStability-Ds4exWb_.js} +10 -10
- package/dist/{slopeStability-BWg6jhBB.cjs → slopeStability-eVwuAmlY.cjs} +1 -1
- package/dist/{speedCurve-CK4CXHeC.js → speedCurve-B_j8P273.js} +2 -2
- package/dist/{speedCurve-DNNEIz4o.cjs → speedCurve-PtxSVJ8J.cjs} +1 -1
- package/dist/stackedBar-CC0JmrlS.cjs +2 -0
- package/dist/stackedBar-uMr9A877.js +325 -0
- package/dist/{stressFilterBar-DQ8nq8jV.js → stressFilterBar-B02kr6zY.js} +2 -2
- package/dist/{stressFilterBar-Cigl3IyR.cjs → stressFilterBar-Dh4fWQ90.cjs} +1 -1
- package/dist/{stressTimeCurve-BiduKfcg.cjs → stressTimeCurve-6eALY4dC.cjs} +1 -1
- package/dist/{stressTimeCurve-BEANw1F8.js → stressTimeCurve-D_Rc1PAY.js} +3 -3
- package/dist/{swiper-BgkvIN5U.js → swiper-BsAeDuw3.js} +2 -2
- package/dist/{swiper-MIRXMnxk.cjs → swiper-CMP_sa_i.cjs} +1 -1
- package/dist/{terminalConfigList-B3lqvQel.js → terminalConfigList-BjbgbZHU.js} +2 -2
- package/dist/{terminalConfigList-C3zRbQvM.cjs → terminalConfigList-C83kqf7d.cjs} +1 -1
- package/dist/{terminalList-ArxJ1jdO.cjs → terminalList-BnitlFL5.cjs} +1 -1
- package/dist/{terminalList-BevfdySj.js → terminalList-DPOBOIu3.js} +2 -2
- package/dist/{terminalListAPP-Cs0nnBfc.cjs → terminalListAPP-CSYL2-0G.cjs} +1 -1
- package/dist/{terminalListAPP-CbpVft_s.js → terminalListAPP-DI6ePX4Y.js} +2 -2
- package/dist/{textbox-CjkfmdaO.js → textbox-Dk4Q0jq3.js} +2 -2
- package/dist/{textbox-DC9YLTn5.cjs → textbox-OEvn1Q-J.cjs} +1 -1
- package/dist/{timeQueryBar-B69eldHQ.cjs → timeQueryBar-Bnqyhyy7.cjs} +1 -1
- package/dist/{timeQueryBar-CXd9yNgD.js → timeQueryBar-CoFozltp.js} +1 -1
- package/dist/{timeSeries-CLnLd-gX.js → timeSeries-BYWoWCYY.js} +3 -3
- package/dist/{timeSeries-fB14CgRy.cjs → timeSeries-Dw-90k-1.cjs} +1 -1
- package/dist/{timeSeriesCurve-DOaxDpjr.cjs → timeSeriesCurve-BkdQ_KeE.cjs} +1 -1
- package/dist/{timeSeriesCurve-CMcCzR13.js → timeSeriesCurve-iPezzxLC.js} +3 -3
- package/dist/{toggleBtn-BiUyrx_o.cjs → toggleBtn-BC4vsMGo.cjs} +1 -1
- package/dist/{toggleBtn-CWmuTxSD.js → toggleBtn-CAXFfijH.js} +2 -2
- package/dist/{trajectoryConfigPanel-D7IDlQIH.cjs → trajectoryConfigPanel-BXpItzqc.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-DKLN3KY5.js → trajectoryConfigPanel-DlN8AZFo.js} +1 -1
- package/dist/{trajectoryScatter-TEactc8J.js → trajectoryScatter-CxDHL1um.js} +2 -2
- package/dist/{trajectoryScatter-CL-2FKZe.cjs → trajectoryScatter-_1LoFjV7.cjs} +1 -1
- package/dist/{universalConfigPanel-B8JIiLXp.cjs → universalConfigPanel-B6jchzUf.cjs} +1 -1
- package/dist/{universalConfigPanel-wicv4Ypw.js → universalConfigPanel-BlDmNWc0.js} +1 -1
- package/dist/{universalTable-BlTdL3c0.cjs → universalTable-C-oWFP8u.cjs} +1 -1
- package/dist/{universalTable-8e3LrZvD.js → universalTable-DbqMwXuL.js} +2 -2
- package/dist/{video-DpRcCZZQ.js → video-DHJ-flUN.js} +2 -2
- package/dist/{video-nPkrKQyL.cjs → video-HxDzMY56.cjs} +1 -1
- package/dist/{videoMonitor-DOVw5mE0.cjs → videoMonitor-CGlM7hRf.cjs} +1 -1
- package/dist/{videoMonitor-Z_7cZk5Y.js → videoMonitor-Golf73FP.js} +9 -9
- package/dist/{vlu-BQCrHSlq.js → vlu-Wd6itaBz.js} +2 -2
- package/dist/{vlu-DEIgGiO-.cjs → vlu-ZFZU2wAQ.cjs} +1 -1
- package/dist/{warningOverview-DXJNk5bT.cjs → warningOverview-BkDN-4f-.cjs} +1 -1
- package/dist/{warningOverview-C7J5aXTJ.js → warningOverview-DuBMKv_H.js} +3 -3
- package/dist/{weather-C1sjTcwC.js → weather-BRKZBZR9.js} +2 -2
- package/dist/{weather-B1Pfcn75.cjs → weather-C_9Xmi0b.cjs} +1 -1
- package/dist/{windLin-QKZKJ1h_.cjs → windLin-6KfyL12C.cjs} +1 -1
- package/dist/{windLin-vlM63Hu7.js → windLin-DCZqaY1W.js} +2 -2
- package/package.json +1 -1
- package/dist/circleBar-4md65KCX.js +0 -305
- package/dist/circleBar-DJY37bwB.cjs +0 -5
- package/dist/ctrSet-XqnGgYPn.cjs +0 -1
- package/dist/index-6QhTSPkL.cjs +0 -612
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ye=Object.defineProperty,be=Object.defineProperties;var Se=Object.getOwnPropertyDescriptors;var oe=Object.getOwnPropertySymbols;var Ce=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable;var ae=(u,c,s)=>c in u?ye(u,c,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[c]=s,ne=(u,c)=>{for(var s in c||(c={}))Ce.call(c,s)&&ae(u,s,c[s]);if(oe)for(var s of oe(c))xe.call(c,s)&&ae(u,s,c[s]);return u},le=(u,c)=>be(u,Se(c));var X=(u,c,s)=>new Promise((I,B)=>{var g=f=>{try{M(s.next(f))}catch(E){B(E)}},y=f=>{try{M(s.throw(f))}catch(E){B(E)}},M=f=>f.done?I(f.value):Promise.resolve(f.value).then(g,y);M((s=s.apply(u,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue");require("html2canvas");const p=require("./index-6QhTSPkL.cjs");require("element-plus");const Ye=require("./EChartComponentBase-CMN_pOMr.cjs"),se=require("@element-plus/icons-vue"),re=require("./ele-lin-icon-Dke_1AmT.cjs"),Ee={class:"chart-panel"},Ne={class:"panel-header"},ke={class:"header-left"},De={class:"panel-title"},Ve={class:"header-right"},Me={class:"indicator-selector-panel"},we={class:"indicator-select-all"},Ae={class:"indicator-group-title"},He={class:"legend-bar"},je={class:"legend-items"},Ie=["onClick"],Be={class:"legend-text"},Le={key:0,class:"legend-pagination"},Oe=["disabled"],Te={class:"page-num"},Re=["disabled"],Pe=["id"],$e={DEFAULT_ICON:re.DEFAULT_ICON,ACTIVE_ICON:re.ACTIVE_ICON,NAME_CN:"GNSS指标时序演变曲线",NAME_EN:"GNSS Time Series Chart",ORDER:2,PLATFORM:["pc","screen"]},ze={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"},gridColor:{value:"#e0e0e0",type:"color",label:"网格线颜色"},legendPageSize:{value:4,type:"number",label:"图例每页数量",min:2,max:8},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},qe=[{object_id:"",fv:"x_speed",name:"X速度(mm/h)",group:"速度指标 (mm/h)",color:"#3373CC"},{object_id:"",fv:"y_speed",name:"Y速度(mm/h)",group:"速度指标 (mm/h)",color:"#91cc75"},{object_id:"",fv:"h_speed",name:"H速度(mm/h)",group:"速度指标 (mm/h)",color:"#fac858"},{object_id:"",fv:"xy_speed",name:"XY速度(mm/h)",group:"速度指标 (mm/h)",color:"#ee6666"},{object_id:"",fv:"xyh_speed",name:"XYH速度(mm/h)",group:"速度指标 (mm/h)",color:"#9a60b4"}],Fe=["object_id","fv","name","group","color"],Ge=["mosaic","statistics","statisticsRealtime"],Xe={useAlias:!1,multiObject:!0,source:"mosaic"},Ue={DEFAULT:$e,OPTIONS:ze,DATA:qe,PARAMS:Fe,SOURCE:Ge,COMMON:Xe},Ke=e.defineComponent(le(ne({},Ue),{__name:"gnssTimeSeriesChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(u){const c=u,s=new Map;let I="";class B extends Ye.EChartComponentBase{extractStyles(){var n,r,d,l,i,L,A,O,T;const t=(n=this.props.conf)==null?void 0:n.options,a=((r=t==null?void 0:t.linkChannel)==null?void 0:r.value)||"gnss",m=((d=t==null?void 0:t.customChannel)==null?void 0:d.value)||"";return{title:((l=t==null?void 0:t.title)==null?void 0:l.value)||"指标时序演变曲线",bgColor:((i=t==null?void 0:t.bgColor)==null?void 0:i.value)||"#f5f7fa",panelBgColor:((L=t==null?void 0:t.panelBgColor)==null?void 0:L.value)||"#ffffff",textColor:((A=t==null?void 0:t.textColor)==null?void 0:A.value)||"#333333",gridColor:((O=t==null?void 0:t.gridColor)==null?void 0:O.value)||"#e0e0e0",legendPageSize:((T=t==null?void 0:t.legendPageSize)==null?void 0:T.value)||4,linkChannel:a==="custom"&&m?m:a}}getChartOption(){return q(this.Style.value)}needsHistoryData(){return!1}onPreview(){return X(this,null,function*(){var a,m,n,r,d;s.clear();const t=((m=(a=this.props.conf)==null?void 0:a.common)==null?void 0:m.object_id)||((d=(r=(n=this.props.conf)==null?void 0:n.data)==null?void 0:r[0])==null?void 0:d.object_id)||"";t&&(b.value=String(t),yield P())})}setSocketData(t){var n;if(!t)return;const a=t.datetime?t.datetime.split(".")[0]:p.dayjs().format("YYYY/MM/DD HH:mm"),m=`${a}_${JSON.stringify(t.data||"")}`;m!==I&&(I=m,(((n=this.props.conf)==null?void 0:n.data)||[]).forEach(r=>{if(!r.fv)return;const d=this.extractDataValue(t,r.fv);if(d==null)return;const l=v.value?`GNSS${v.value}-${h(r)}`:h(r),i=s.get(l);i?(i.times.push(a),i.values.push(d),i.times.length>200&&(i.times.shift(),i.values.shift())):s.set(l,{times:[a],values:[d]})}),this.chartObj&&this.chartObj.setOption(q(this.Style.value),!1))}onLinkEvent(t){_e(t)}}const g=new B(c,"gnssTimeSeriesChart");g.setupLifecycle();const y=g.getStyle(),M=g.getEchartId(),f=e.computed(()=>{var o;return((o=c.conf)==null?void 0:o.data)||[]}),E=e.computed(()=>{const o=new Set;return f.value.filter(t=>t.fv&&!o.has(t.fv)?(o.add(t.fv),!0):!1)}),v=e.ref(""),b=e.ref(""),N=e.reactive({timeRange:"1d",dateRange:[p.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),p.dayjs().format("YYYY/MM/DD HH:mm")]}),P=()=>X(null,null,function*(){var r,d;if(c.mode==="edit"){J(),w();return}if(!b.value)return;s.clear();const o=(r=g.session)==null?void 0:r.value,t=(d=c.conf)==null?void 0:d.id;o!=null&&o.componentRequests&&t&&o.componentRequests.delete(t);const{data:a,common:m}=c.conf;Array.isArray(a)&&a.forEach(l=>{l.object_id=b.value}),m.multiObject||(m.object_id=b.value);try{const l=p.dayjs(N.dateRange[0],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),i=p.dayjs(N.dateRange[1],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),L=p.dayjs(N.dateRange[1],"YYYY/MM/DD HH:mm").diff(p.dayjs(N.dateRange[0],"YYYY/MM/DD HH:mm"),"second"),A=Math.max(60,Math.floor(L/200)),O=(c.conf.data||[]).map(H=>H.fv).filter(Boolean),T=[{block_mapping:"influxdbproxy",action:"get_mosaic_list_with_time_span",start_time:l,end_time:i,time_span:A,time_swing:A,keys:O,object_id:b.value}],F=yield new Promise(H=>{p.api.platform(Z=>{H(Z.result)},{block_mapping:"mixtools",action:"get_tools_mosaic_list",condition:T})}),D=Array.isArray(F)?F:[F],G=D[0]&&typeof D[0]=="object"&&Array.isArray(D[0].data)?D[0].data:Array.isArray(D[0])?D[0]:[];if(Array.isArray(G)&&G.length>0){const H=[...G].sort((x,V)=>{const R=x.time||x.datetime||"",Y=V.time||V.datetime||"";return new Date(R).getTime()-new Date(Y).getTime()});(c.conf.data||[]).forEach(x=>{if(!x.fv)return;const V=[],R=[];if(H.forEach(Y=>{const Q=Y.time||Y.datetime,ee=Y[x.fv];if(Q&&ee!=null){const te=parseFloat(ee);isNaN(te)||(V.push(p.dayjs(Q).format("YYYY/MM/DD HH:mm")),R.push(te))}}),V.length>0){const Y=v.value?`GNSS${v.value}-${h(x)}`:h(x);s.set(Y,{times:V,values:R})}})}console.log(`[GNSS时序曲线] 历史数据加载完成,共 ${s.size} 个指标,时间范围: ${l} ~ ${i}`)}catch(l){console.warn("[GNSS时序曲线] 历史数据获取失败,将等待实时数据:",l)}w();const n=g.getSource();g.subscribeBySource(n,b.value)}),ce={x_speed:"X速度(mm/h)",y_speed:"Y速度(mm/h)",h_speed:"H速度(mm/h)",xy_speed:"XY速度(mm/h)",xyh_speed:"XYH速度(mm/h)",x_disp:"X位移(mm)",y_disp:"Y位移(mm)",h_disp:"H位移(mm)",xy_disp:"XY位移(mm)",xyh_disp:"XYH位移(mm)",x_cum_disp:"X累积位移(mm)",y_cum_disp:"Y累积位移(mm)",h_cum_disp:"H累积位移(mm)",xy_cum_disp:"XY累积位移(mm)",xyh_cum_disp:"XYH累积位移(mm)",x_accel:"X加速度(mm/h²)",y_accel:"Y加速度(mm/h²)",h_accel:"H加速度(mm/h²)",tangent_angle:"切线角(°)"},h=o=>o.name||ce[o.fv]||o.fv,k=e.computed(()=>E.value.map(o=>({name:h(o),fv:o.fv,color:o.color}))),ie=e.computed(()=>{const o=new Map;return E.value.forEach(t=>{const a=t.group||"未分组";o.has(a)||o.set(a,[]),o.get(a).push({name:h(t),fv:t.fv,color:t.color})}),Array.from(o.entries()).map(([t,a])=>({group:t,items:a}))}),_=e.ref(k.value.map(o=>o.fv)),U=e.computed({get:()=>_.value.length===k.value.length&&k.value.length>0,set:()=>{}}),de=e.computed(()=>{const o=_.value.length;return o>0&&o<k.value.length}),me=e.computed(()=>_.value.length===0?"选择指标":_.value.length===k.value.length?"全选所有指标":`已选 ${_.value.length} 项指标`),ue=o=>{_.value=o?k.value.map(t=>t.fv):[],w()},S=e.ref(1),C=e.ref(new Set),K=e.computed(()=>{const o=new Set(_.value),t=v.value;return f.value.filter(a=>o.has(a.fv)).map(a=>({name:t?`GNSS${t}-${h(a)}`:h(a),fv:a.fv,color:a.color}))}),W=e.computed(()=>K.value.map(o=>({name:o.name,color:o.color,visible:!C.value.has(o.name)}))),$=e.computed(()=>y.value.legendPageSize||4),z=e.computed(()=>Math.max(1,Math.ceil(W.value.length/$.value))),pe=e.computed(()=>W.value.slice((S.value-1)*$.value,S.value*$.value)),fe=o=>{C.value.has(o.name)?C.value.delete(o.name):C.value.add(o.name),C.value=new Set(C.value),w()},ge=e.computed(()=>({backgroundColor:y.value.bgColor,color:y.value.textColor})),ve={x_speed:{base:38,amplitude:6},y_speed:{base:32,amplitude:5},h_speed:{base:5,amplitude:4},xy_speed:{base:15,amplitude:8},xyh_speed:{base:18,amplitude:7}},J=()=>{s.clear();const o=p.dayjs(),a=(parseInt(v.value)||50)/90;f.value.forEach(m=>{const n=ve[m.fv]||{base:20,amplitude:5},r=[],d=[];for(let i=0;i<100;i++)r.push(o.subtract((100-i)*10,"minute").format("YYYY/MM/DD HH:mm")),d.push(+(n.base*a+(Math.random()-.5)*n.amplitude+Math.sin(i/8)*n.amplitude*.3).toFixed(2));const l=v.value?`GNSS${v.value}-${h(m)}`:h(m);s.set(l,{times:r,values:d})})},q=o=>{if(c.mode!=="edit"&&s.size===0)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};let t=[];for(const[,n]of s)n.times.length>t.length&&(t=n.times);!t.length&&c.mode==="edit"&&(t=Array.from({length:20},(n,r)=>p.dayjs().subtract((20-r)*60,"minute").format("YYYY/MM/DD HH:mm")));const a={},m=K.value.map(n=>{a[n.name]=!C.value.has(n.name);const r=s.get(n.name);return{name:n.name,type:"line",data:(r==null?void 0:r.values)||[],smooth:!1,symbol:"none",lineStyle:{color:n.color,width:1.5},itemStyle:{color:n.color}}});return{grid:{top:15,right:30,bottom:60,left:55},legend:{show:!1,selected:a},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#e5e7eb",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},xAxis:{type:"category",data:t,axisLine:{lineStyle:{color:o.gridColor}},axisLabel:{color:o.textColor,fontSize:11,rotate:30,interval:"auto",formatter:n=>{var r;if(n&&n.length>6){const d=n.split(" ");return(((r=d[0])==null?void 0:r.split("/").slice(1).join("/"))||"")+(d[1]?" "+d[1]:"")}return n}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",axisLine:{show:!1},axisLabel:{color:o.textColor,fontSize:11},splitLine:{lineStyle:{color:o.gridColor,type:"dashed"}}},series:m,dataZoom:[{type:"slider",xAxisIndex:0,bottom:8,height:20,borderColor:"#ddd",fillerColor:"rgba(51,115,204,0.15)",handleStyle:{color:"#3373CC"},textStyle:{fontSize:10}},{type:"inside",xAxisIndex:0,filterMode:"none"}]}},w=()=>{const o=g.getChartInstance();o&&o.setOption(q(y.value),!0)},he=()=>{const o=g.getChartInstance();if(!o)return;const t=document.createElement("a");t.href=o.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t.download=`指标时序演变曲线_${p.dayjs().format("YYYYMMDDHHmmss")}.png`,t.click()},_e=o=>{const{payload:t}=o;if(!t)return;if(t.type==="filter"){t.point!=null&&(v.value=String(t.point)),t.objectId!=null&&(b.value=String(t.objectId)),t.timeRange&&(N.timeRange=t.timeRange),t.dateRange&&(N.dateRange=t.dateRange),P();return}const a=t.point||t.deviceId;a&&(v.value=String(a),P())};return c.mode==="edit"&&J(),(o,t)=>{const a=j.ElIcon,m=j.ElButton,n=j.ElCheckbox,r=j.ElCheckboxGroup,d=j.ElPopover;return e.openBlock(),e.createElementBlock("div",{class:"gnss-tsc",style:e.normalizeStyle(ge.value)},[e.createElementVNode("div",Ee,[e.createElementVNode("div",Ne,[e.createElementVNode("div",ke,[t[4]||(t[4]=e.createElementVNode("span",{class:"indicator-dot blue"},null,-1)),e.createElementVNode("span",De,e.toDisplayString(e.unref(y).title),1)]),e.createElementVNode("div",Ve,[e.createVNode(d,{placement:"bottom-start",width:220,trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(m,{size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(me.value),1),e.createVNode(a,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(se.ArrowDown))]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",Me,[e.createElementVNode("div",we,[e.createVNode(n,{modelValue:U.value,"onUpdate:modelValue":t[0]||(t[0]=l=>U.value=l),indeterminate:de.value,onChange:ue},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("全选所有指标",-1)])]),_:1},8,["modelValue","indeterminate"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ie.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.group},[e.createElementVNode("div",Ae,e.toDisplayString(l.group),1),e.createVNode(r,{modelValue:_.value,"onUpdate:modelValue":t[1]||(t[1]=i=>_.value=i),onChange:w},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,i=>(e.openBlock(),e.createBlock(n,{key:i.fv,label:i.fv,class:"indicator-checkbox-item"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.name),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue"])],64))),128))])]),_:1}),e.createVNode(m,{size:"small",onClick:he},{default:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(se.Download))]),_:1}),t[6]||(t[6]=e.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),e.createElementVNode("div",He,[e.createElementVNode("div",je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(pe.value,l=>(e.openBlock(),e.createElementBlock("span",{key:l.name,class:e.normalizeClass(["legend-item",{disabled:!l.visible}]),onClick:i=>fe(l)},[e.createElementVNode("span",{class:"legend-symbol",style:e.normalizeStyle({borderColor:l.color})},[e.createElementVNode("span",{class:"legend-dot",style:e.normalizeStyle({backgroundColor:l.visible?l.color:"#ccc"})},null,4)],4),e.createElementVNode("span",Be,e.toDisplayString(l.name),1)],10,Ie))),128))]),z.value>1?(e.openBlock(),e.createElementBlock("div",Le,[e.createElementVNode("button",{class:"page-arrow",disabled:S.value<=1,onClick:t[2]||(t[2]=l=>S.value--)},"◀",8,Oe),e.createElementVNode("span",Te,e.toDisplayString(S.value)+"/"+e.toDisplayString(z.value),1),e.createElementVNode("button",{class:"page-arrow",disabled:S.value>=z.value,onClick:t[3]||(t[3]=l=>S.value++)},"▶",8,Re)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{id:e.unref(M),class:"chart-container"},null,8,Pe)]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4)}}})),We=p._export_sfc(Ke,[["__scopeId","data-v-478f86a7"]]);exports.default=We;
|
|
1
|
+
"use strict";var ye=Object.defineProperty,be=Object.defineProperties;var Se=Object.getOwnPropertyDescriptors;var oe=Object.getOwnPropertySymbols;var Ce=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable;var ae=(u,c,s)=>c in u?ye(u,c,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[c]=s,ne=(u,c)=>{for(var s in c||(c={}))Ce.call(c,s)&&ae(u,s,c[s]);if(oe)for(var s of oe(c))xe.call(c,s)&&ae(u,s,c[s]);return u},le=(u,c)=>be(u,Se(c));var X=(u,c,s)=>new Promise((I,B)=>{var g=f=>{try{M(s.next(f))}catch(E){B(E)}},y=f=>{try{M(s.throw(f))}catch(E){B(E)}},M=f=>f.done?I(f.value):Promise.resolve(f.value).then(g,y);M((s=s.apply(u,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue");require("html2canvas");const p=require("./index-OgmTZiO-.cjs");require("element-plus");const Ye=require("./EChartComponentBase-C2sxqwSE.cjs"),se=require("@element-plus/icons-vue"),re=require("./ele-lin-icon-Dke_1AmT.cjs"),Ee={class:"chart-panel"},Ne={class:"panel-header"},ke={class:"header-left"},De={class:"panel-title"},Ve={class:"header-right"},Me={class:"indicator-selector-panel"},we={class:"indicator-select-all"},Ae={class:"indicator-group-title"},He={class:"legend-bar"},je={class:"legend-items"},Ie=["onClick"],Be={class:"legend-text"},Le={key:0,class:"legend-pagination"},Oe=["disabled"],Te={class:"page-num"},Re=["disabled"],Pe=["id"],$e={DEFAULT_ICON:re.DEFAULT_ICON,ACTIVE_ICON:re.ACTIVE_ICON,NAME_CN:"GNSS指标时序演变曲线",NAME_EN:"GNSS Time Series Chart",ORDER:2,PLATFORM:["pc","screen"]},ze={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"},gridColor:{value:"#e0e0e0",type:"color",label:"网格线颜色"},legendPageSize:{value:4,type:"number",label:"图例每页数量",min:2,max:8},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},qe=[{object_id:"",fv:"x_speed",name:"X速度(mm/h)",group:"速度指标 (mm/h)",color:"#3373CC"},{object_id:"",fv:"y_speed",name:"Y速度(mm/h)",group:"速度指标 (mm/h)",color:"#91cc75"},{object_id:"",fv:"h_speed",name:"H速度(mm/h)",group:"速度指标 (mm/h)",color:"#fac858"},{object_id:"",fv:"xy_speed",name:"XY速度(mm/h)",group:"速度指标 (mm/h)",color:"#ee6666"},{object_id:"",fv:"xyh_speed",name:"XYH速度(mm/h)",group:"速度指标 (mm/h)",color:"#9a60b4"}],Fe=["object_id","fv","name","group","color"],Ge=["mosaic","statistics","statisticsRealtime"],Xe={useAlias:!1,multiObject:!0,source:"mosaic"},Ue={DEFAULT:$e,OPTIONS:ze,DATA:qe,PARAMS:Fe,SOURCE:Ge,COMMON:Xe},Ke=e.defineComponent(le(ne({},Ue),{__name:"gnssTimeSeriesChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(u){const c=u,s=new Map;let I="";class B extends Ye.EChartComponentBase{extractStyles(){var n,r,d,l,i,L,A,O,T;const t=(n=this.props.conf)==null?void 0:n.options,a=((r=t==null?void 0:t.linkChannel)==null?void 0:r.value)||"gnss",m=((d=t==null?void 0:t.customChannel)==null?void 0:d.value)||"";return{title:((l=t==null?void 0:t.title)==null?void 0:l.value)||"指标时序演变曲线",bgColor:((i=t==null?void 0:t.bgColor)==null?void 0:i.value)||"#f5f7fa",panelBgColor:((L=t==null?void 0:t.panelBgColor)==null?void 0:L.value)||"#ffffff",textColor:((A=t==null?void 0:t.textColor)==null?void 0:A.value)||"#333333",gridColor:((O=t==null?void 0:t.gridColor)==null?void 0:O.value)||"#e0e0e0",legendPageSize:((T=t==null?void 0:t.legendPageSize)==null?void 0:T.value)||4,linkChannel:a==="custom"&&m?m:a}}getChartOption(){return q(this.Style.value)}needsHistoryData(){return!1}onPreview(){return X(this,null,function*(){var a,m,n,r,d;s.clear();const t=((m=(a=this.props.conf)==null?void 0:a.common)==null?void 0:m.object_id)||((d=(r=(n=this.props.conf)==null?void 0:n.data)==null?void 0:r[0])==null?void 0:d.object_id)||"";t&&(b.value=String(t),yield P())})}setSocketData(t){var n;if(!t)return;const a=t.datetime?t.datetime.split(".")[0]:p.dayjs().format("YYYY/MM/DD HH:mm"),m=`${a}_${JSON.stringify(t.data||"")}`;m!==I&&(I=m,(((n=this.props.conf)==null?void 0:n.data)||[]).forEach(r=>{if(!r.fv)return;const d=this.extractDataValue(t,r.fv);if(d==null)return;const l=v.value?`GNSS${v.value}-${h(r)}`:h(r),i=s.get(l);i?(i.times.push(a),i.values.push(d),i.times.length>200&&(i.times.shift(),i.values.shift())):s.set(l,{times:[a],values:[d]})}),this.chartObj&&this.chartObj.setOption(q(this.Style.value),!1))}onLinkEvent(t){_e(t)}}const g=new B(c,"gnssTimeSeriesChart");g.setupLifecycle();const y=g.getStyle(),M=g.getEchartId(),f=e.computed(()=>{var o;return((o=c.conf)==null?void 0:o.data)||[]}),E=e.computed(()=>{const o=new Set;return f.value.filter(t=>t.fv&&!o.has(t.fv)?(o.add(t.fv),!0):!1)}),v=e.ref(""),b=e.ref(""),N=e.reactive({timeRange:"1d",dateRange:[p.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),p.dayjs().format("YYYY/MM/DD HH:mm")]}),P=()=>X(null,null,function*(){var r,d;if(c.mode==="edit"){J(),w();return}if(!b.value)return;s.clear();const o=(r=g.session)==null?void 0:r.value,t=(d=c.conf)==null?void 0:d.id;o!=null&&o.componentRequests&&t&&o.componentRequests.delete(t);const{data:a,common:m}=c.conf;Array.isArray(a)&&a.forEach(l=>{l.object_id=b.value}),m.multiObject||(m.object_id=b.value);try{const l=p.dayjs(N.dateRange[0],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),i=p.dayjs(N.dateRange[1],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),L=p.dayjs(N.dateRange[1],"YYYY/MM/DD HH:mm").diff(p.dayjs(N.dateRange[0],"YYYY/MM/DD HH:mm"),"second"),A=Math.max(60,Math.floor(L/200)),O=(c.conf.data||[]).map(H=>H.fv).filter(Boolean),T=[{block_mapping:"influxdbproxy",action:"get_mosaic_list_with_time_span",start_time:l,end_time:i,time_span:A,time_swing:A,keys:O,object_id:b.value}],F=yield new Promise(H=>{p.api.platform(Z=>{H(Z.result)},{block_mapping:"mixtools",action:"get_tools_mosaic_list",condition:T})}),D=Array.isArray(F)?F:[F],G=D[0]&&typeof D[0]=="object"&&Array.isArray(D[0].data)?D[0].data:Array.isArray(D[0])?D[0]:[];if(Array.isArray(G)&&G.length>0){const H=[...G].sort((x,V)=>{const R=x.time||x.datetime||"",Y=V.time||V.datetime||"";return new Date(R).getTime()-new Date(Y).getTime()});(c.conf.data||[]).forEach(x=>{if(!x.fv)return;const V=[],R=[];if(H.forEach(Y=>{const Q=Y.time||Y.datetime,ee=Y[x.fv];if(Q&&ee!=null){const te=parseFloat(ee);isNaN(te)||(V.push(p.dayjs(Q).format("YYYY/MM/DD HH:mm")),R.push(te))}}),V.length>0){const Y=v.value?`GNSS${v.value}-${h(x)}`:h(x);s.set(Y,{times:V,values:R})}})}console.log(`[GNSS时序曲线] 历史数据加载完成,共 ${s.size} 个指标,时间范围: ${l} ~ ${i}`)}catch(l){console.warn("[GNSS时序曲线] 历史数据获取失败,将等待实时数据:",l)}w();const n=g.getSource();g.subscribeBySource(n,b.value)}),ce={x_speed:"X速度(mm/h)",y_speed:"Y速度(mm/h)",h_speed:"H速度(mm/h)",xy_speed:"XY速度(mm/h)",xyh_speed:"XYH速度(mm/h)",x_disp:"X位移(mm)",y_disp:"Y位移(mm)",h_disp:"H位移(mm)",xy_disp:"XY位移(mm)",xyh_disp:"XYH位移(mm)",x_cum_disp:"X累积位移(mm)",y_cum_disp:"Y累积位移(mm)",h_cum_disp:"H累积位移(mm)",xy_cum_disp:"XY累积位移(mm)",xyh_cum_disp:"XYH累积位移(mm)",x_accel:"X加速度(mm/h²)",y_accel:"Y加速度(mm/h²)",h_accel:"H加速度(mm/h²)",tangent_angle:"切线角(°)"},h=o=>o.name||ce[o.fv]||o.fv,k=e.computed(()=>E.value.map(o=>({name:h(o),fv:o.fv,color:o.color}))),ie=e.computed(()=>{const o=new Map;return E.value.forEach(t=>{const a=t.group||"未分组";o.has(a)||o.set(a,[]),o.get(a).push({name:h(t),fv:t.fv,color:t.color})}),Array.from(o.entries()).map(([t,a])=>({group:t,items:a}))}),_=e.ref(k.value.map(o=>o.fv)),U=e.computed({get:()=>_.value.length===k.value.length&&k.value.length>0,set:()=>{}}),de=e.computed(()=>{const o=_.value.length;return o>0&&o<k.value.length}),me=e.computed(()=>_.value.length===0?"选择指标":_.value.length===k.value.length?"全选所有指标":`已选 ${_.value.length} 项指标`),ue=o=>{_.value=o?k.value.map(t=>t.fv):[],w()},S=e.ref(1),C=e.ref(new Set),K=e.computed(()=>{const o=new Set(_.value),t=v.value;return f.value.filter(a=>o.has(a.fv)).map(a=>({name:t?`GNSS${t}-${h(a)}`:h(a),fv:a.fv,color:a.color}))}),W=e.computed(()=>K.value.map(o=>({name:o.name,color:o.color,visible:!C.value.has(o.name)}))),$=e.computed(()=>y.value.legendPageSize||4),z=e.computed(()=>Math.max(1,Math.ceil(W.value.length/$.value))),pe=e.computed(()=>W.value.slice((S.value-1)*$.value,S.value*$.value)),fe=o=>{C.value.has(o.name)?C.value.delete(o.name):C.value.add(o.name),C.value=new Set(C.value),w()},ge=e.computed(()=>({backgroundColor:y.value.bgColor,color:y.value.textColor})),ve={x_speed:{base:38,amplitude:6},y_speed:{base:32,amplitude:5},h_speed:{base:5,amplitude:4},xy_speed:{base:15,amplitude:8},xyh_speed:{base:18,amplitude:7}},J=()=>{s.clear();const o=p.dayjs(),a=(parseInt(v.value)||50)/90;f.value.forEach(m=>{const n=ve[m.fv]||{base:20,amplitude:5},r=[],d=[];for(let i=0;i<100;i++)r.push(o.subtract((100-i)*10,"minute").format("YYYY/MM/DD HH:mm")),d.push(+(n.base*a+(Math.random()-.5)*n.amplitude+Math.sin(i/8)*n.amplitude*.3).toFixed(2));const l=v.value?`GNSS${v.value}-${h(m)}`:h(m);s.set(l,{times:r,values:d})})},q=o=>{if(c.mode!=="edit"&&s.size===0)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};let t=[];for(const[,n]of s)n.times.length>t.length&&(t=n.times);!t.length&&c.mode==="edit"&&(t=Array.from({length:20},(n,r)=>p.dayjs().subtract((20-r)*60,"minute").format("YYYY/MM/DD HH:mm")));const a={},m=K.value.map(n=>{a[n.name]=!C.value.has(n.name);const r=s.get(n.name);return{name:n.name,type:"line",data:(r==null?void 0:r.values)||[],smooth:!1,symbol:"none",lineStyle:{color:n.color,width:1.5},itemStyle:{color:n.color}}});return{grid:{top:15,right:30,bottom:60,left:55},legend:{show:!1,selected:a},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#e5e7eb",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},xAxis:{type:"category",data:t,axisLine:{lineStyle:{color:o.gridColor}},axisLabel:{color:o.textColor,fontSize:11,rotate:30,interval:"auto",formatter:n=>{var r;if(n&&n.length>6){const d=n.split(" ");return(((r=d[0])==null?void 0:r.split("/").slice(1).join("/"))||"")+(d[1]?" "+d[1]:"")}return n}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",axisLine:{show:!1},axisLabel:{color:o.textColor,fontSize:11},splitLine:{lineStyle:{color:o.gridColor,type:"dashed"}}},series:m,dataZoom:[{type:"slider",xAxisIndex:0,bottom:8,height:20,borderColor:"#ddd",fillerColor:"rgba(51,115,204,0.15)",handleStyle:{color:"#3373CC"},textStyle:{fontSize:10}},{type:"inside",xAxisIndex:0,filterMode:"none"}]}},w=()=>{const o=g.getChartInstance();o&&o.setOption(q(y.value),!0)},he=()=>{const o=g.getChartInstance();if(!o)return;const t=document.createElement("a");t.href=o.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t.download=`指标时序演变曲线_${p.dayjs().format("YYYYMMDDHHmmss")}.png`,t.click()},_e=o=>{const{payload:t}=o;if(!t)return;if(t.type==="filter"){t.point!=null&&(v.value=String(t.point)),t.objectId!=null&&(b.value=String(t.objectId)),t.timeRange&&(N.timeRange=t.timeRange),t.dateRange&&(N.dateRange=t.dateRange),P();return}const a=t.point||t.deviceId;a&&(v.value=String(a),P())};return c.mode==="edit"&&J(),(o,t)=>{const a=j.ElIcon,m=j.ElButton,n=j.ElCheckbox,r=j.ElCheckboxGroup,d=j.ElPopover;return e.openBlock(),e.createElementBlock("div",{class:"gnss-tsc",style:e.normalizeStyle(ge.value)},[e.createElementVNode("div",Ee,[e.createElementVNode("div",Ne,[e.createElementVNode("div",ke,[t[4]||(t[4]=e.createElementVNode("span",{class:"indicator-dot blue"},null,-1)),e.createElementVNode("span",De,e.toDisplayString(e.unref(y).title),1)]),e.createElementVNode("div",Ve,[e.createVNode(d,{placement:"bottom-start",width:220,trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(m,{size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(me.value),1),e.createVNode(a,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(se.ArrowDown))]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",Me,[e.createElementVNode("div",we,[e.createVNode(n,{modelValue:U.value,"onUpdate:modelValue":t[0]||(t[0]=l=>U.value=l),indeterminate:de.value,onChange:ue},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("全选所有指标",-1)])]),_:1},8,["modelValue","indeterminate"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ie.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.group},[e.createElementVNode("div",Ae,e.toDisplayString(l.group),1),e.createVNode(r,{modelValue:_.value,"onUpdate:modelValue":t[1]||(t[1]=i=>_.value=i),onChange:w},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,i=>(e.openBlock(),e.createBlock(n,{key:i.fv,label:i.fv,class:"indicator-checkbox-item"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.name),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue"])],64))),128))])]),_:1}),e.createVNode(m,{size:"small",onClick:he},{default:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(se.Download))]),_:1}),t[6]||(t[6]=e.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),e.createElementVNode("div",He,[e.createElementVNode("div",je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(pe.value,l=>(e.openBlock(),e.createElementBlock("span",{key:l.name,class:e.normalizeClass(["legend-item",{disabled:!l.visible}]),onClick:i=>fe(l)},[e.createElementVNode("span",{class:"legend-symbol",style:e.normalizeStyle({borderColor:l.color})},[e.createElementVNode("span",{class:"legend-dot",style:e.normalizeStyle({backgroundColor:l.visible?l.color:"#ccc"})},null,4)],4),e.createElementVNode("span",Be,e.toDisplayString(l.name),1)],10,Ie))),128))]),z.value>1?(e.openBlock(),e.createElementBlock("div",Le,[e.createElementVNode("button",{class:"page-arrow",disabled:S.value<=1,onClick:t[2]||(t[2]=l=>S.value--)},"◀",8,Oe),e.createElementVNode("span",Te,e.toDisplayString(S.value)+"/"+e.toDisplayString(z.value),1),e.createElementVNode("button",{class:"page-arrow",disabled:S.value>=z.value,onClick:t[3]||(t[3]=l=>S.value++)},"▶",8,Re)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{id:e.unref(M),class:"chart-container"},null,8,Pe)]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4)}}})),We=p._export_sfc(Ke,[["__scopeId","data-v-478f86a7"]]);exports.default=We;
|
|
@@ -35,9 +35,9 @@ import "element-plus/es/components/button/style/css";
|
|
|
35
35
|
import "element-plus/es/components/icon/style/css";
|
|
36
36
|
import { defineComponent as Te, computed as p, ref as P, reactive as $e, openBlock as C, createElementBlock as H, normalizeStyle as oe, createElementVNode as d, toDisplayString as w, unref as U, createVNode as b, withCtx as S, createTextVNode as ae, Fragment as K, renderList as le, createBlock as Pe, normalizeClass as ze, createCommentVNode as Ve, renderSlot as Ge } from "vue";
|
|
37
37
|
import "html2canvas";
|
|
38
|
-
import { d as v, a as Xe, _ as Be } from "./index-
|
|
38
|
+
import { d as v, a as Xe, _ as Be } from "./index-CqVPeq0-.js";
|
|
39
39
|
import "element-plus";
|
|
40
|
-
import { E as Fe } from "./EChartComponentBase-
|
|
40
|
+
import { E as Fe } from "./EChartComponentBase-B-VNAC8K.js";
|
|
41
41
|
import { ArrowDown as Ue, Download as Ke } from "@element-plus/icons-vue";
|
|
42
42
|
import { A as qe, D as We } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
43
43
|
const Je = { class: "chart-panel" }, Ze = { class: "panel-header" }, Qe = { class: "header-left" }, et = { class: "panel-title" }, tt = { class: "header-right" }, ot = { class: "indicator-selector-panel" }, at = { class: "indicator-select-all" }, lt = { class: "indicator-group-title" }, nt = { class: "legend-bar" }, st = { class: "legend-items" }, it = ["onClick"], rt = { class: "legend-text" }, ct = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var K=Object.defineProperty,Q=Object.defineProperties;var Z=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var z=Math.pow,F=(p,u,t)=>u in p?K(p,u,{enumerable:!0,configurable:!0,writable:!0,value:t}):p[u]=t,M=(p,u)=>{for(var t in u||(u={}))ee.call(u,t)&&F(p,t,u[t]);if(X)for(var t of X(u))te.call(u,t)&&F(p,t,u[t]);return p},w=(p,u)=>Q(p,Z(u));var P=(p,u,t)=>new Promise((h,j)=>{var v=y=>{try{C(t.next(y))}catch(A){j(A)}},I=y=>{try{C(t.throw(y))}catch(A){j(A)}},C=y=>y.done?h(y.value):Promise.resolve(y.value).then(v,I);C((t=t.apply(p,u)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/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 n=require("vue");require("html2canvas");const m=require("./index-
|
|
1
|
+
"use strict";var K=Object.defineProperty,Q=Object.defineProperties;var Z=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var z=Math.pow,F=(p,u,t)=>u in p?K(p,u,{enumerable:!0,configurable:!0,writable:!0,value:t}):p[u]=t,M=(p,u)=>{for(var t in u||(u={}))ee.call(u,t)&&F(p,t,u[t]);if(X)for(var t of X(u))te.call(u,t)&&F(p,t,u[t]);return p},w=(p,u)=>Q(p,Z(u));var P=(p,u,t)=>new Promise((h,j)=>{var v=y=>{try{C(t.next(y))}catch(A){j(A)}},I=y=>{try{C(t.throw(y))}catch(A){j(A)}},C=y=>y.done?h(y.value):Promise.resolve(y.value).then(v,I);C((t=t.apply(p,u)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/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 n=require("vue");require("html2canvas");const m=require("./index-OgmTZiO-.cjs");require("element-plus");const oe=require("./EChartComponentBase-C2sxqwSE.cjs"),ne=require("@element-plus/icons-vue"),B=require("./ele-lin-icon-Dke_1AmT.cjs"),ae={class:"chart-panel"},re={class:"panel-header"},se={class:"header-left"},ie={class:"panel-title"},le={class:"header-right"},ce=["id"],de={DEFAULT_ICON:B.DEFAULT_ICON,ACTIVE_ICON:B.ACTIVE_ICON,NAME_CN:"GNSS XY平面位移矢量轨迹图",NAME_EN:"GNSS XY Trajectory Chart",ORDER:3,PLATFORM:["pc","screen"]},ue={title:{value:"XY 平面位移矢量轨迹图",type:"string",label:"图表标题"},bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},gridColor:{value:"#e0e0e0",type:"color",label:"网格线颜色"},trajectoryColor:{value:"#3373CC",type:"color",label:"轨迹线颜色"},arrowColor:{value:"#ee6666",type:"color",label:"方向箭头颜色"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},me=[{name:"X位移",fv:"",object_id:""},{name:"Y位移",fv:"",object_id:""}],fe=["name","fv","object_id"],pe=["mosaic","statistics","statisticsRealtime"],he={useAlias:!1,multiObject:!1,source:"mosaic"},ye={DEFAULT:de,OPTIONS:ue,DATA:me,PARAMS:fe,SOURCE:pe,COMMON:he},be=n.defineComponent(w(M({},ye),{__name:"gnssXYTrajectory",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(p){const u=p,t=n.reactive({points:[],hasOrigin:!1}),h=n.reactive({x:null,y:null}),j=n.ref("day"),v=n.reactive({dateRange:[m.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),m.dayjs().format("YYYY/MM/DD HH:mm")]});class I extends oe.EChartComponentBase{extractStyles(){var s,l,i,a,b,Y,d,f,x;const e=(s=this.props.conf)==null?void 0:s.options,o=((l=e==null?void 0:e.linkChannel)==null?void 0:l.value)||"gnss",c=((i=e==null?void 0:e.customChannel)==null?void 0:i.value)||"";return{title:((a=e==null?void 0:e.title)==null?void 0:a.value)||"XY 平面位移矢量轨迹图",bgColor:((b=e==null?void 0:e.bgColor)==null?void 0:b.value)||"#f5f7fa",textColor:((Y=e==null?void 0:e.textColor)==null?void 0:Y.value)||"#333333",gridColor:((d=e==null?void 0:e.gridColor)==null?void 0:d.value)||"#e0e0e0",trajectoryColor:((f=e==null?void 0:e.trajectoryColor)==null?void 0:f.value)||"#3373CC",arrowColor:((x=e==null?void 0:e.arrowColor)==null?void 0:x.value)||"#ee6666",linkChannel:o==="custom"&&c?c:o}}getChartOption(){return O(this.Style.value)}needsHistoryData(){return!1}onPreview(){return P(this,null,function*(){var i;const{common:e,data:o}=this.props.conf,c=(e==null?void 0:e.object_id)||(Array.isArray(o)?(i=o==null?void 0:o[0])==null?void 0:i.object_id:"")||"";if(c&&this.props.mode==="preview"){this.onLinkEvent({topic:{source:"self",channel:""},payload:{type:"filter",objectId:c}});return}const s=this.getSource(),l=new Set;e.object_id&&l.add(e.object_id),Array.isArray(o)&&o.forEach(a=>{a.object_id&&l.add(a.object_id)}),l.forEach(a=>this.subscribeBySource(s,a))})}setSocketData(e){var b;if(!e)return;const o=(b=this.props.conf)==null?void 0:b.data;if(!o||o.length<2)return;const c=this.extractDataValue(e,o[0].fv),s=this.extractDataValue(e,o[1].fv);let l=!1;if(c!=null&&(h.x=Number(c),l=!0),s!=null&&(h.y=Number(s),l=!0),!l||h.x===null||h.y===null)return;const i=e.datetime?e.datetime.split(".")[0]:m.dayjs().format("YYYY/MM/DD HH:mm");t.hasOrigin||(t.points.push({time:i,x:0,y:0}),t.hasOrigin=!0);const a=t.points[t.points.length-1];a&&a.x===h.x&&a.y===h.y||(t.points.push({time:i,x:h.x,y:h.y}),t.points.length>500&&t.points.shift(),this.chartObj&&this.chartObj.setOption(O(this.Style.value),!1))}onLinkEvent(e){var c,s,l;const o=e.payload;if(o&&(o.dateRange&&(v.dateRange=o.dateRange),o.type==="filter"||o.point||o.deviceId||o.objectId)){const i=o.objectId||o.object_id||"";if(t.points=[],t.hasOrigin=!1,h.x=null,h.y=null,i&&this.props.mode!=="edit"){const a=(c=this.session)==null?void 0:c.value,b=(s=this.props.conf)==null?void 0:s.id;a!=null&&a.componentRequests&&b&&a.componentRequests.delete(b);const{data:Y,common:d}=this.props.conf;Array.isArray(Y)&&Y.forEach(g=>{g.object_id=i}),d.multiObject||(d.object_id=i);const f=(l=this.props.conf)==null?void 0:l.data;if(!f||f.length<2)return;const x=f[0].fv,T=f[1].fv,L=m.dayjs(v.dateRange[0],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),R=m.dayjs(v.dateRange[1],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),G=m.dayjs(v.dateRange[1],"YYYY/MM/DD HH:mm").diff(m.dayjs(v.dateRange[0],"YYYY/MM/DD HH:mm"),"second"),q=Math.max(60,Math.floor(G/200)),J=[{block_mapping:"influxdbproxy",action:"get_mosaic_list_with_time_span",start_time:L,end_time:R,time_span:q,time_swing:q,keys:[x,T].filter(Boolean),object_id:i}],E=this;new Promise(g=>{m.api.platform(_=>{g(_.result)},{block_mapping:"mixtools",action:"get_tools_mosaic_list",condition:J})}).then(g=>{const _=Array.isArray(g)?g:[g],k=_[0]&&typeof _[0]=="object"&&Array.isArray(_[0].data)?_[0].data:Array.isArray(_[0])?_[0]:[];Array.isArray(k)&&k.length>0&&[...k].sort((S,D)=>{const N=S.time||S.datetime||"",H=D.time||D.datetime||"";return new Date(N).getTime()-new Date(H).getTime()}).forEach(S=>{const D=S.time||S.datetime,N=S[x],H=S[T];D&&N!=null&&H!=null&&(t.hasOrigin||(t.points.push({time:m.dayjs(D).format("YYYY/MM/DD HH:mm"),x:0,y:0}),t.hasOrigin=!0),t.points.push({time:m.dayjs(D).format("YYYY/MM/DD HH:mm"),x:Number(N),y:Number(H)}))}),console.log(`[XY轨迹图] 历史数据加载完成,共 ${t.points.length} 个点,时间范围: ${L} ~ ${R}`),E.chartObj&&E.chartObj.setOption(O(E.Style.value),!0)}).catch(g=>{console.warn("[XY轨迹图] 历史数据获取失败:",g)}).finally(()=>{const g=E.getSource();E.subscribeBySource(g,i)})}else this.chartObj&&this.chartObj.setOption(O(this.Style.value),!0)}}}const C=new I(u,"gnssXYTrajectory");C.setupLifecycle();const y=C.getStyle(),A=C.getEchartId();if(u.mode==="edit"){const r=m.dayjs();let e=0,o=0;const c=s=>(Math.sin(s*9301+49297)%233280/233280+1)%1;for(let s=0;s<=25;s++)e+=(c(s*17)-.5)*8e-4,o+=(c(s*31)-.5)*8e-4,t.points.push({time:r.subtract((25-s)*60,"minute").format("YYYY/MM/DD HH:mm"),x:+e.toFixed(4),y:+o.toFixed(4)});t.hasOrigin=!0}function O(r){const e=$().map(d=>[d.x,d.y]),o=e.length>=2,c=r.trajectoryColor||"#3373CC",s=r.arrowColor||"#ee6666",l="#4a5568",i={xAxis:{type:"value",position:"bottom",axisLine:{show:!0,lineStyle:{color:l,width:1.5},symbol:["none","arrow"],symbolSize:[8,8]},axisLabel:{color:r.textColor,fontSize:11},splitLine:{show:!0,lineStyle:{color:r.gridColor,type:"dashed"}},nameTextStyle:{color:l,fontSize:12}},yAxis:{type:"value",position:"right",axisLine:{show:!0,lineStyle:{color:l,width:1.5},symbol:["none","arrow"],symbolSize:[8,8]},axisLabel:{color:r.textColor,fontSize:11},splitLine:{show:!0,lineStyle:{color:r.gridColor,type:"dashed"}},nameTextStyle:{color:l,fontSize:12}}};if(!o)return{grid:{top:55,right:80,bottom:50,left:30},xAxis:w(M({},i.xAxis),{name:`X位移(mm)
|
|
2
2
|
东(E)`,nameLocation:"end"}),yAxis:w(M({},i.yAxis),{name:`Y位移(mm)
|
|
3
3
|
北(N)`,nameLocation:"end"}),series:[]};const a=[];a.push({name:"参考线",type:"line",data:[e[0],e[e.length-1]],symbol:"none",lineStyle:{color:"#ef4444",width:2},z:1,silent:!0,animation:!1}),a.push({name:"位移轨迹",type:"line",data:e,symbol:"none",lineStyle:{color:c,width:2.5},z:2,silent:!0,animation:!1});const b=[],Y=Math.max(1,Math.floor(e.length/12));for(let d=0;d<e.length-1;d+=Y){const f=Math.min(d+Y,e.length-1),x=Math.atan2(e[f][1]-e[d][1],e[f][0]-e[d][0])*180/Math.PI;b.push({value:e[f],symbol:"triangle",symbolSize:12,symbolRotate:x-90,itemStyle:{color:s,borderColor:"#fff",borderWidth:1.5}})}return b.length&&a.push({name:"位移方向",type:"scatter",data:b,z:5}),a.push({name:"起点",type:"scatter",data:[{value:e[0],symbolSize:10,itemStyle:{color:"#10b981",borderColor:"#fff",borderWidth:2},label:{show:!0,formatter:"起点",position:"left",fontSize:11,color:"#10b981",fontWeight:"bold"}}],z:10}),a.push({name:"终点",type:"scatter",data:[{value:e[e.length-1],symbolSize:10,itemStyle:{color:"#ef4444",borderColor:"#fff",borderWidth:2},label:{show:!0,formatter:"当前",position:"top",fontSize:11,color:"#ef4444",fontWeight:"bold"}}],z:10}),{grid:{top:55,right:80,bottom:50,left:30},tooltip:{trigger:"item",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#e5e7eb",borderWidth:1,textStyle:{color:"#333",fontSize:12},formatter:d=>{if(!d.value||d.value.length<2)return"";const[f,x]=d.value;return`X: ${f.toFixed(4)} mm<br>Y: ${x.toFixed(4)} mm<br>合位移: ${Math.sqrt(z(f,2)+z(x,2)).toFixed(4)} mm`}},legend:{show:!0,bottom:6,textStyle:{color:r.textColor,fontSize:11},data:["参考线","位移轨迹","位移方向"]},xAxis:w(M({},i.xAxis),{name:`X位移(mm)
|
|
4
4
|
东(E)`,nameLocation:"end"}),yAxis:w(M({},i.yAxis),{name:`Y位移(mm)
|
|
@@ -34,9 +34,9 @@ import "element-plus/es/components/select/style/css";
|
|
|
34
34
|
import "element-plus/es/components/option/style/css";
|
|
35
35
|
import { defineComponent as lt, reactive as T, ref as ct, openBlock as mt, createElementBlock as dt, normalizeStyle as ut, unref as k, createElementVNode as _, toDisplayString as ft, createVNode as D, withCtx as X, renderSlot as pt } from "vue";
|
|
36
36
|
import "html2canvas";
|
|
37
|
-
import { d as f, a as ht, _ as yt } from "./index-
|
|
37
|
+
import { d as f, a as ht, _ as yt } from "./index-CqVPeq0-.js";
|
|
38
38
|
import "element-plus";
|
|
39
|
-
import { E as bt } from "./EChartComponentBase-
|
|
39
|
+
import { E as bt } from "./EChartComponentBase-B-VNAC8K.js";
|
|
40
40
|
import { Download as gt } from "@element-plus/icons-vue";
|
|
41
41
|
import { A as xt, D as Yt } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
42
42
|
const Ct = { class: "chart-panel" }, _t = { class: "panel-header" }, vt = { class: "header-left" }, St = { class: "panel-title" }, Dt = { class: "header-right" }, Mt = ["id"], jt = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var K=Object.defineProperty,Q=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var V=(l,m,o)=>m in l?K(l,m,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[m]=o,H=(l,m)=>{for(var o in m||(m={}))Z.call(m,o)&&V(l,o,m[o]);if(M)for(var o of M(m))ee.call(m,o)&&V(l,o,m[o]);return l},D=(l,m)=>Q(l,X(m));var k=(l,m,o)=>new Promise((O,_)=>{var C=h=>{try{f(o.next(h))}catch(c){_(c)}},B=h=>{try{f(o.throw(h))}catch(c){_(c)}},f=h=>h.done?O(h.value):Promise.resolve(h.value).then(C,B);f((o=o.apply(l,m)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const te=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/pagination/style/css");const e=require("vue"),oe=require("./vue-i18n-BvHMBi_b.cjs"),ne=require("./BaseComponent-
|
|
1
|
+
"use strict";var K=Object.defineProperty,Q=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var V=(l,m,o)=>m in l?K(l,m,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[m]=o,H=(l,m)=>{for(var o in m||(m={}))Z.call(m,o)&&V(l,o,m[o]);if(M)for(var o of M(m))ee.call(m,o)&&V(l,o,m[o]);return l},D=(l,m)=>Q(l,X(m));var k=(l,m,o)=>new Promise((O,_)=>{var C=h=>{try{f(o.next(h))}catch(c){_(c)}},B=h=>{try{f(o.throw(h))}catch(c){_(c)}},f=h=>h.done?O(h.value):Promise.resolve(h.value).then(C,B);f((o=o.apply(l,m)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const te=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/pagination/style/css");const e=require("vue"),oe=require("./vue-i18n-BvHMBi_b.cjs"),ne=require("./BaseComponent-DaYX7dUF.cjs"),i=require("./index-OgmTZiO-.cjs"),ae=require("./titleStyle-NSnz6cUg.cjs"),E=require("./params-3W3p8QeC.cjs"),re=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),L=require("./ele-grd-icon-ZUb-megQ.cjs"),le={class:"mix-body"},ie={key:0,class:"table"},ce={class:"table-title"},se=["id"],de=["onClick"],ue=["innerHTML"],me={key:2,class:"pagination"},fe={DEFAULT_ICON:L.DEFAULT_ICON,ACTIVE_ICON:L.ACTIVE_ICON,NAME_CN:"列表",NAME_EN:"Grid List",ORDER:2,PLATFORM:["pc","screen","mobile"]},pe={bgColor:"#fff",titleColor:"#111",fontColor:"#111",borderColor:"#e4e7ed",titleSize:14,valueSize:12,radiusSize:8,points:10,sort:{value:"desc",type:"radio",option:[{value:"desc",label:"component.list.desc"},{value:"asc",label:"component.list.asc"}],label:"component.list.sort"},isHideTitle:!1},ye={gridType:"object",loop:"none",loopRate:10,rows:[],rowWidth:[],types:["object","collect","retainer","timer"],isAddCondition:!1,isAddMosaic:!1,conditions:[],created:0,isJump:!1,mosaics:[]},ge={DEFAULT:fe,OPTIONS:pe,COMMON:ye},ve=e.defineComponent(D(H({},ge),{__name:"grd",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},type:{type:String,default:"pro"},theme:{type:String,default:"light"}},setup(l){const{t:m}=oe.useI18n(),o=l;class O extends ne.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),fontColor:this.getOptionValue("fontColor","#111"),borderColor:this.getOptionValue("borderColor","#e4e7ed"),titleSize:this.getOptionValue("titleSize",14),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),c.pageSize=this.getOptionValue("points",10)}}const _=new O(o,"grd"),C=()=>_.init(),B=i.debounce(C,200);e.watch(()=>o.conf,()=>{o.mode==="edit"&&B()},{deep:!0}),e.watch(()=>o.theme,()=>{o.mode==="edit"&&C()});const f=_.getStyle(),h=e.computed(()=>ae.generateTitleStyle(o.conf.options)),c=e.reactive({current:1,pageSize:10,total:0}),u="YYYY-MM-DD HH:mm:ss";let v=null;const b=e.ref([]),z=e.ref(0),A=e.computed(()=>{var d;const{common:n}=o.conf;let t;n.gridType==="object"?(t=JSON.parse(JSON.stringify(E.gridTitles.object)),(d=n.mosaics)==null||d.forEach(s=>{t[s.fv]=s.text})):t=E.gridTitles[n.gridType]||{};const a={};for(const s in t){const r=t[s];a[s]=r.includes(".")?m(r):r}return a}),q=e.computed(()=>{var t,a;const n=((a=(t=o.conf.options)==null?void 0:t.valueSize)==null?void 0:a.value)||12;return n<14?"small":n<16?"default":"large"}),j=()=>{let n=i.dayjs(),t=n.day()-1;t<0&&(t=0);let a=n.subtract(t,"day").startOf("day");return{start:a,end:a.add(6,"day").endOf("day")}},F={0:["",i.dayjs().format(u)],1:[i.dayjs().startOf("day").format(u),i.dayjs().endOf("day").format(u)],2:[j().start.format(u),j().end.format(u)],3:[i.dayjs().startOf("month").format(u),i.dayjs().endOf("month").format(u)],4:[i.dayjs().startOf("year").format(u),i.dayjs().endOf("year").format(u)],5:[i.dayjs().subtract(1,"day").format(u),i.dayjs().format(u)],6:[i.dayjs().subtract(7,"day").format(u),i.dayjs().format(u)],7:[i.dayjs().subtract(31,"day").format(u),i.dayjs().format(u)],8:[i.dayjs().subtract(365,"day").format(u),i.dayjs().format(u)]},$=n=>{const{common:t}=o.conf;t.loop!=="vertical"?w(n):R()},w=n=>k(null,null,function*(){var g,p;const{common:t,options:a}=o.conf;let d={};const s=t.gridType;if(t.gridType==="object"){const{result:y}=yield i.api.post("get_last_fv");d=y}const r={page_index:c.current,page_size:c.pageSize,block_mapping:(g=E.urlMapping[s])==null?void 0:g.block_mapping,action:(p=E.urlMapping[s])==null?void 0:p.action,order_by:"created",order_type:a.sort.value,where_and:[]};if(t.gridType==="collect"&&(r.order_by=JSON.stringify(["created",a.sort.value]),delete r.order_type),t.created){const y=F[t.created];r.where_and.push(["created",">=",y[0]]),r.where_and.push(["created","<=",y[1]])}re.appendCommonDesignerWhereAnd(t,r.where_and),r.where_and.length&&(r.where_and=JSON.stringify(r.where_and)),i.api.platform(y=>{b.value=y.result.data,t.gridType==="object"&&t.setMosaic&&t.mosaics.forEach(S=>{b.value.forEach(I=>{var x;I[S.fv]=(x=d[I.uid])==null?void 0:x[S.fv]})}),c.total=y.result.total_records,n==="init"&&t.loop!=="none"&&t.loop==="paging"&&(v=setInterval(()=>{J()},t.loopRate*1e3))},r)}),R=n=>k(null,null,function*(){let t=["uid","name","customer_name","mapping_name","model","tag","province","city","description","created"];const{common:a,options:d}=o.conf;if(a.gridType==="object"){const{result:s}=yield i.api.post("get_last_fv");let r={page_index:c.current,page_size:9999,select:t,order_by:"created",order_type:d.sort.value};a.gridType==="collect"&&(r.order_by=JSON.stringify(["created",d.sort.value]),delete r.order_type);const{result:g}=yield i.api.post("get_object_list",r);b.value=g.data,a.setMosaic&&a.mosaics.forEach(p=>{b.value.forEach(y=>{var S;y[p.fv]=(S=s[y.uid])==null?void 0:S[p.fv]})}),e.nextTick(()=>{T()})}else{let s={page_index:c.current,page_size:9999};i.api.platform(r=>{b.value=r.result.data,c.total=r.result.total_records,e.nextTick(()=>{T()})},s)}}),N=n=>{c.current=n,w("page")},J=()=>{let n=Math.floor(c.total/c.pageSize),t=c.current>=n?1:c.current+1;N(t)},P=()=>{var d,s;const{id:n}=o.conf;z.value++;let t=(d=document.getElementsByClassName("table-body")[0])==null?void 0:d.clientHeight,a=(s=document.getElementById(n))==null?void 0:s.scrollHeight;a&&z.value>=a-t+32&&(z.value=0)},W=()=>{const{common:n}=o.conf;n.loop==="vertical"&&v&&clearInterval(v)},U=()=>{const{common:n}=o.conf;n.loop==="vertical"&&T()},Y=()=>{z.value=0,v&&clearInterval(v)},T=()=>{var r,g,p;const{common:n,id:t}=o.conf;if(v&&clearInterval(v),!document.getElementsByClassName("table-body")[0])return;let a=document.getElementsByClassName("table-body")[0].clientHeight,d=((r=document.getElementById(t))==null?void 0:r.scrollHeight)||0,s=(p=(g=document.getElementsByClassName("echart-title")[0])==null?void 0:g.clientHeight)!=null?p:0;d-a>s&&(v=setInterval(()=>{P()},n.loopRate*5))},G=n=>{const{common:t}=o.conf;if(t.isJump&&o.type==="show"){let a=location.href;a.indexOf("?object_id=")>-1&&(a=a.split("?object_id=")[0]);let d=a+"?object_id="+n.uid;location.href=d,location.reload()}};return e.onMounted(()=>k(null,null,function*(){C(),o.mode==="preview"&&(Y(),$("init"))})),e.onBeforeUnmount(()=>{v&&clearInterval(v)}),(n,t)=>{var d,s,r;const a=te.ElPagination;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(f).bgColor,borderRadius:`${e.unref(f).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(h.value)},e.toDisplayString(l.conf.caption||l.conf.name),5),e.createElementVNode("div",le,[(s=(d=l.conf)==null?void 0:d.common)!=null&&s.rows?(e.openBlock(),e.createElementBlock("div",ie,[e.createElementVNode("div",ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.common.rows,(g,p)=>(e.openBlock(),e.createElementBlock("div",{class:"th",key:p,style:e.normalizeStyle({width:l.conf.common.rowWidth[p]+"%",borderColor:e.unref(f).borderColor,fontSize:`${e.unref(f).titleSize}px`,color:e.unref(f).fontColor})},e.toDisplayString(A.value[g]),5))),128))]),(r=b.value)!=null&&r.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:"table-body",style:e.normalizeStyle({"overflow-y":l.conf.common.loop==="vertical"?"hidden":"auto"})},[e.createElementVNode("div",{style:e.normalizeStyle({transform:`translate(0px,-${z.value}px)`}),id:l.conf.id,onMouseenter:W,onMouseleave:U},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(g,p)=>(e.openBlock(),e.createElementBlock("div",{class:"tr",key:p,onClick:y=>G(g)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.common.rows,(y,S)=>(e.openBlock(),e.createElementBlock("div",{class:"td",key:S,style:e.normalizeStyle({width:l.conf.common.rowWidth[S]+"%",borderColor:e.unref(f).borderColor,fontSize:`${e.unref(f).valueSize}px`,color:e.unref(f).fontColor}),innerHTML:g[y]},null,12,ue))),128))],8,de))),128))],44,se)],4)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"empty-data",style:e.normalizeStyle({fontSize:`${e.unref(f).valueSize}px`,color:e.unref(f).fontColor})}," 暂无数据 ",4)),c.total>c.pageSize&&l.conf.common.loop!=="vertical"?(e.openBlock(),e.createElementBlock("div",me,[e.createVNode(a,{"current-page":c.current,onCurrentChange:N,total:c.total,size:q.value,"page-size":c.pageSize,style:e.normalizeStyle({fontSize:`${e.unref(f).valueSize}px`,color:e.unref(f).fontColor})},null,8,["current-page","total","size","page-size","style"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),he=i._export_sfc(ve,[["__scopeId","data-v-2908b6a3"]]);exports.default=he;
|
|
@@ -10,37 +10,37 @@ var J = (r, d, t) => d in r ? ce(r, d, { enumerable: !0, configurable: !0, writa
|
|
|
10
10
|
ue.call(d, t) && J(r, t, d[t]);
|
|
11
11
|
return r;
|
|
12
12
|
}, P = (r, d) => de(r, fe(d));
|
|
13
|
-
var E = (r, d, t) => new Promise((
|
|
13
|
+
var E = (r, d, t) => new Promise((N, O) => {
|
|
14
14
|
var T = (_) => {
|
|
15
15
|
try {
|
|
16
16
|
f(t.next(_));
|
|
17
17
|
} catch (i) {
|
|
18
18
|
O(i);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, I = (_) => {
|
|
21
21
|
try {
|
|
22
22
|
f(t.throw(_));
|
|
23
23
|
} catch (i) {
|
|
24
24
|
O(i);
|
|
25
25
|
}
|
|
26
|
-
}, f = (_) => _.done ?
|
|
26
|
+
}, f = (_) => _.done ? N(_.value) : Promise.resolve(_.value).then(T, I);
|
|
27
27
|
f((t = t.apply(r, d)).next());
|
|
28
28
|
});
|
|
29
29
|
import { ElPagination as pe } from "element-plus/es";
|
|
30
30
|
import "element-plus/es/components/base/style/css";
|
|
31
31
|
import "element-plus/es/components/pagination/style/css";
|
|
32
|
-
import { defineComponent as ge, watch as W, computed as H, reactive as ye, ref as Y, onMounted as ve, onBeforeUnmount as he, openBlock as v, createElementBlock as h, normalizeStyle as C, unref as y, createElementVNode as
|
|
32
|
+
import { defineComponent as ge, watch as W, computed as H, reactive as ye, ref as Y, onMounted as ve, onBeforeUnmount as he, openBlock as v, createElementBlock as h, normalizeStyle as C, unref as y, createElementVNode as M, toDisplayString as G, Fragment as B, renderList as j, createVNode as be, createCommentVNode as U, renderSlot as _e, nextTick as q } from "vue";
|
|
33
33
|
import { u as Se } from "./vue-i18n-5Nahpzrm.js";
|
|
34
|
-
import { B as Ce } from "./BaseComponent-
|
|
35
|
-
import { d as m,
|
|
34
|
+
import { B as Ce } from "./BaseComponent-CEp8NJiX.js";
|
|
35
|
+
import { d as m, G as ze, a as x, _ as Oe } from "./index-CqVPeq0-.js";
|
|
36
36
|
import { g as Te } from "./titleStyle-BT5GlpAb.js";
|
|
37
37
|
import { g as K, u as Q } from "./params-DfgBemk0.js";
|
|
38
38
|
import { a as we } from "./appendCommonDesignerWhereAnd-DwefWNOa.js";
|
|
39
39
|
import { A as xe, D as Ee } from "./ele-grd-icon-DR52zwGR.js";
|
|
40
|
-
const
|
|
40
|
+
const Me = { class: "mix-body" }, Ne = {
|
|
41
41
|
key: 0,
|
|
42
42
|
class: "table"
|
|
43
|
-
},
|
|
43
|
+
}, Ie = { class: "table-title" }, ke = ["id"], He = ["onClick"], Be = ["innerHTML"], je = {
|
|
44
44
|
key: 2,
|
|
45
45
|
class: "pagination"
|
|
46
46
|
}, Ve = {
|
|
@@ -93,7 +93,7 @@ const Ie = { class: "mix-body" }, Me = {
|
|
|
93
93
|
},
|
|
94
94
|
setup(r) {
|
|
95
95
|
const { t: d } = Se(), t = r;
|
|
96
|
-
class
|
|
96
|
+
class N extends Ce {
|
|
97
97
|
extractStyles() {
|
|
98
98
|
return {
|
|
99
99
|
bgColor: this.getOptionValue("bgColor", "#fff"),
|
|
@@ -110,9 +110,9 @@ const Ie = { class: "mix-body" }, Me = {
|
|
|
110
110
|
this.Style.value = this.extractStyles(), this.applyTheme(), i.pageSize = this.getOptionValue("points", 10);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
const O = new
|
|
113
|
+
const O = new N(t, "grd"), T = () => O.init(), I = ze(T, 200);
|
|
114
114
|
W(() => t.conf, () => {
|
|
115
|
-
t.mode === "edit" &&
|
|
115
|
+
t.mode === "edit" && I();
|
|
116
116
|
}, { deep: !0 }), W(() => t.theme, () => {
|
|
117
117
|
t.mode === "edit" && T();
|
|
118
118
|
});
|
|
@@ -265,13 +265,13 @@ const Ie = { class: "mix-body" }, Me = {
|
|
|
265
265
|
class: "mix-component",
|
|
266
266
|
style: C({ background: y(f).bgColor, borderRadius: `${y(f).radiusSize}px` })
|
|
267
267
|
}, [
|
|
268
|
-
|
|
268
|
+
M("div", {
|
|
269
269
|
class: "mix-title",
|
|
270
270
|
style: C(_.value)
|
|
271
|
-
},
|
|
272
|
-
|
|
273
|
-
(l = (s = r.conf) == null ? void 0 : s.common) != null && l.rows ? (v(), h("div",
|
|
274
|
-
|
|
271
|
+
}, G(r.conf.caption || r.conf.name), 5),
|
|
272
|
+
M("div", Me, [
|
|
273
|
+
(l = (s = r.conf) == null ? void 0 : s.common) != null && l.rows ? (v(), h("div", Ne, [
|
|
274
|
+
M("div", Ie, [
|
|
275
275
|
(v(!0), h(B, null, j(r.conf.common.rows, (g, u) => (v(), h("div", {
|
|
276
276
|
class: "th",
|
|
277
277
|
key: u,
|
|
@@ -281,14 +281,14 @@ const Ie = { class: "mix-body" }, Me = {
|
|
|
281
281
|
fontSize: `${y(f).titleSize}px`,
|
|
282
282
|
color: y(f).fontColor
|
|
283
283
|
})
|
|
284
|
-
},
|
|
284
|
+
}, G(X.value[g]), 5))), 128))
|
|
285
285
|
]),
|
|
286
286
|
(n = z.value) != null && n.length ? (v(), h("div", {
|
|
287
287
|
key: 0,
|
|
288
288
|
class: "table-body",
|
|
289
289
|
style: C({ "overflow-y": r.conf.common.loop === "vertical" ? "hidden" : "auto" })
|
|
290
290
|
}, [
|
|
291
|
-
|
|
291
|
+
M("div", {
|
|
292
292
|
style: C({ transform: `translate(0px,-${w.value}px)` }),
|
|
293
293
|
id: r.conf.id,
|
|
294
294
|
onMouseenter: re,
|
|
@@ -326,8 +326,8 @@ const Ie = { class: "mix-body" }, Me = {
|
|
|
326
326
|
"page-size": i.pageSize,
|
|
327
327
|
style: C({ fontSize: `${y(f).valueSize}px`, color: y(f).fontColor })
|
|
328
328
|
}, null, 8, ["current-page", "total", "size", "page-size", "style"])
|
|
329
|
-
])) :
|
|
330
|
-
])) :
|
|
329
|
+
])) : U("", !0)
|
|
330
|
+
])) : U("", !0)
|
|
331
331
|
]),
|
|
332
332
|
_e(o.$slots, "default", {}, void 0, !0)
|
|
333
333
|
], 4);
|
|
@@ -15,8 +15,8 @@ import "element-plus/es/components/base/style/css";
|
|
|
15
15
|
import "element-plus/es/components/pagination/style/css";
|
|
16
16
|
import { defineComponent as W, reactive as V, computed as I, openBlock as s, createElementBlock as l, normalizeStyle as f, unref as e, createElementVNode as _, toDisplayString as E, Fragment as h, renderList as C, createVNode as U, createCommentVNode as G, renderSlot as J, getCurrentInstance as q } from "vue";
|
|
17
17
|
import { u as K } from "./safeI18n-CXZgGKWp.js";
|
|
18
|
-
import { B as Q } from "./BaseComponent-
|
|
19
|
-
import { O as X, a as Y, _ as Z } from "./index-
|
|
18
|
+
import { B as Q } from "./BaseComponent-CEp8NJiX.js";
|
|
19
|
+
import { O as X, a as Y, _ as Z } from "./index-CqVPeq0-.js";
|
|
20
20
|
import { g as ee } from "./titleStyle-BT5GlpAb.js";
|
|
21
21
|
import { g as te } from "./params-DfgBemk0.js";
|
|
22
22
|
import { A as oe, D as ne } from "./ele-grd-icon-DR52zwGR.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var I=Object.defineProperty,N=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var h=(i,r,t)=>r in i?I(i,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[r]=t,z=(i,r)=>{for(var t in r||(r={}))j.call(r,t)&&h(i,t,r[t]);if(C)for(var t of C(r))L.call(r,t)&&h(i,t,r[t]);return i},b=(i,r)=>N(i,w(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/pagination/style/css");const e=require("vue"),q=require("./safeI18n-DR20q_h1.cjs"),M=require("./BaseComponent-
|
|
1
|
+
"use strict";var I=Object.defineProperty,N=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var h=(i,r,t)=>r in i?I(i,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[r]=t,z=(i,r)=>{for(var t in r||(r={}))j.call(r,t)&&h(i,t,r[t]);if(C)for(var t of C(r))L.call(r,t)&&h(i,t,r[t]);return i},b=(i,r)=>N(i,w(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/pagination/style/css");const e=require("vue"),q=require("./safeI18n-DR20q_h1.cjs"),M=require("./BaseComponent-DaYX7dUF.cjs"),g=require("./index-OgmTZiO-.cjs"),$=require("./titleStyle-NSnz6cUg.cjs"),F=require("./params-3W3p8QeC.cjs"),E=require("./ele-grd-icon-ZUb-megQ.cjs"),D={class:"mix-body"},P={key:0,class:"table"},H={class:"table-title"},R={key:0,class:"table-body"},U=["innerHTML"],W={key:2,class:"pagination px-[16px]"},G={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"特征列表",NAME_EN:"Eigen List",ORDER:7,PLATFORM:["pc","screen","mobile"]},J={bgColor:"#fff",titleColor:"#111",fontColor:"#111",borderColor:"#e5e7eb",titleSize:14,valueSize:12,radiusSize:8,points:10,isHideTitle:!1},K={useAlias:!1,multiObject:!1,hideMultiObject:!0,gridType:"eigen",project_id:"",rows:[],rowWidth:[],types:["eigen"]},Q={DEFAULT:G,OPTIONS:J,COMMON:K},X=e.defineComponent(b(z({},Q),{__name:"grdIndass",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(i){const{t:r}=q.useSafeI18n(),t=i,u=e.reactive({current:1,pageSize:10,total:0}),m=e.reactive([]),v=e.computed(()=>{var a;const l=((a=t.conf.common)==null?void 0:a.gridType)||"eigen",c=F.gridTitles[l]||{},s={};for(const o in c)s[o]=r(c[o]);return s}),y={decrease:"component.indass.decrease",increase:"component.indass.increase",min:"component.indass.min",max:"component.indass.max",count:"component.indass.count"};class B extends M.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),fontColor:this.getOptionValue("fontColor","#111"),borderColor:this.getOptionValue("borderColor","#e5e7eb"),titleSize:this.getOptionValue("titleSize",14),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",4),points:this.getOptionValue("points",10),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){super.init(),u.pageSize=this.getOptionValue("points",10)}onPreview(){_()}cleanup(){}}const S=new B(t,"grdIndass");S.setupLifecycle();const n=S.getStyle(),O=e.computed(()=>$.generateTitleStyle(t.conf.options)),_=()=>{const{common:l}=t.conf;let c={page_index:u.current,page_size:n.value.points,where_and:[["project_uid","=",l.project_id]],block_mapping:"eigen",action:"get_adaps_report_list"},s=g.getObjectId(l,l.useAlias,t.uid);s&&c.where_and.push(["object_id","=",s]),g.api.platform(a=>{m.length=0,a.result.data.forEach(o=>{JSON.parse(o.detail).Main.forEach(p=>{m.push({key:p.key,key_type:p.key_type,start:o.start,end:o.end,report:x(p.report),created:o.created})})}),u.total=a.result.total_records},c)},x=l=>{const{proxy:c}=e.getCurrentInstance();let s={};for(let o in l[0])y[o]&&(s[c.$t(y[o])]=l[0][o].toFixed(3));let a=[];for(let o in s)a.push(o+": "+s[o]);return a.join("<br>")},T=l=>{u.current=l,_()},d=t.conf;return(l,c)=>{var a,o;const s=A.ElPagination;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(n).bgColor,borderRadius:`${e.unref(n).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(O.value)},[e.createElementVNode("div",null,e.toDisplayString(e.unref(d).caption||e.unref(d).name),1)],4),e.createElementVNode("div",D,[(o=(a=e.unref(d))==null?void 0:a.common)!=null&&o.rows&&e.unref(d).common.rows.length?(e.openBlock(),e.createElementBlock("div",P,[e.createElementVNode("div",H,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d).common.rows,(f,p)=>(e.openBlock(),e.createElementBlock("div",{class:"th",key:p,style:e.normalizeStyle({width:e.unref(d).common.rowWidth[p]+"%",borderColor:e.unref(n).borderColor,fontSize:`${e.unref(n).titleSize}px`,color:e.unref(n).fontColor})},e.toDisplayString(v.value[f]),5))),128))]),m.length?(e.openBlock(),e.createElementBlock("div",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(f,p)=>(e.openBlock(),e.createElementBlock("div",{class:"tr",key:p},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d).common.rows,(V,k)=>(e.openBlock(),e.createElementBlock("div",{class:"td",key:k,style:e.normalizeStyle({width:e.unref(d).common.rowWidth[k]+"%",borderColor:e.unref(n).borderColor,fontSize:`${e.unref(n).valueSize}px`,color:e.unref(n).fontColor}),innerHTML:f[V]},null,12,U))),128))]))),128))])):(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle({fontSize:`${e.unref(n).valueSize}px`,color:e.unref(n).fontColor})},[...c[0]||(c[0]=[e.createElementVNode("div",{class:"mt-[8px] text-center"},"暂无数据",-1)])],4)),u.total>u.pageSize?(e.openBlock(),e.createElementBlock("div",W,[e.createVNode(s,{"current-page":u.current,onCurrentChange:T,total:u.total,"page-size":u.pageSize,style:e.normalizeStyle({fontSize:`${e.unref(n).valueSize}px`,color:e.unref(n).fontColor})},null,8,["current-page","total","page-size","style"])])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"w-full h-full flex items-center justify-center",style:e.normalizeStyle({fontSize:`${e.unref(n).valueSize}px`,color:e.unref(n).fontColor})}," 请配置表格列 ",4))]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),Y=g._export_sfc(X,[["__scopeId","data-v-18d96de9"]]);exports.default=Y;
|
|
@@ -10,9 +10,9 @@ var z = (a, t, i) => t in a ? R(a, t, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
H.call(t, i) && z(a, i, t[i]);
|
|
11
11
|
return a;
|
|
12
12
|
}, D = (a, t) => I(a, $(t));
|
|
13
|
-
import { defineComponent as F, getCurrentInstance as B, ref as
|
|
14
|
-
import { B as X, u as Y, p as Z } from "./BaseComponent-
|
|
15
|
-
import {
|
|
13
|
+
import { defineComponent as F, getCurrentInstance as B, ref as G, inject as P, computed as U, watchEffect as q, openBlock as W, createElementBlock as J, normalizeStyle as E, unref as h, createElementVNode as x, toDisplayString as j, renderSlot as K, nextTick as Q } from "vue";
|
|
14
|
+
import { B as X, u as Y, p as Z } from "./BaseComponent-CEp8NJiX.js";
|
|
15
|
+
import { I as ee, J as C, o as te, G as oe, _ as ne } from "./index-CqVPeq0-.js";
|
|
16
16
|
import { g as ie } from "./titleStyle-BT5GlpAb.js";
|
|
17
17
|
import { A as ae, D as se } from "./ele-gag-icon-CB5dJeYF.js";
|
|
18
18
|
import { u as re, i as le, a as ce } from "./installCanvasRenderer-oDYkyVFy.js";
|
|
@@ -46,7 +46,7 @@ const he = {
|
|
|
46
46
|
},
|
|
47
47
|
setup(a) {
|
|
48
48
|
re([me, ue, le, fe, ce, de]);
|
|
49
|
-
const { proxy: t } = B(), i = P(
|
|
49
|
+
const { proxy: t } = B(), i = G(P("session", null)), S = "grg_" + Math.random().toString(16).substring(4, 12);
|
|
50
50
|
let e = null, p = null;
|
|
51
51
|
const o = a;
|
|
52
52
|
class k extends X {
|
|
@@ -179,14 +179,14 @@ const he = {
|
|
|
179
179
|
x("div", {
|
|
180
180
|
class: "mix-title",
|
|
181
181
|
style: E(w.value)
|
|
182
|
-
},
|
|
182
|
+
}, j(h(O).caption || h(O).name), 5),
|
|
183
183
|
x("div", { class: "mix-body" }, [
|
|
184
184
|
x("div", {
|
|
185
185
|
class: "w-full h-full",
|
|
186
186
|
id: S
|
|
187
187
|
})
|
|
188
188
|
]),
|
|
189
|
-
|
|
189
|
+
K(r.$slots, "default", {}, void 0, !0)
|
|
190
190
|
], 4));
|
|
191
191
|
}
|
|
192
192
|
})), $e = /* @__PURE__ */ ne(be, [["__scopeId", "data-v-49769fc7"]]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var R=Object.defineProperty,L=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var z=(r,n,a)=>n in r?R(r,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[n]=a,D=(r,n)=>{for(var a in n||(n={}))F.call(n,a)&&z(r,a,n[a]);if(E)for(var a of E(n))H.call(n,a)&&z(r,a,n[a]);return r},A=(r,n)=>L(r,$(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./BaseComponent-
|
|
1
|
+
"use strict";var R=Object.defineProperty,L=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var z=(r,n,a)=>n in r?R(r,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[n]=a,D=(r,n)=>{for(var a in n||(n={}))F.call(n,a)&&z(r,a,n[a]);if(E)for(var a of E(n))H.call(n,a)&&z(r,a,n[a]);return r},A=(r,n)=>L(r,$(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./BaseComponent-DaYX7dUF.cjs"),m=require("./index-OgmTZiO-.cjs"),P=require("./titleStyle-NSnz6cUg.cjs"),T=require("./ele-gag-icon-Ce1hl9NI.cjs"),y=require("./installCanvasRenderer-CyhM1Qpl.cjs"),B=require("./install-DV5cEgNV.cjs"),G=require("./install-CltTFs4e.cjs"),U=require("./install-C8buXQPI.cjs"),W=require("./install-B65ZIqAx.cjs"),N=require("./echarts-BB8O2KSA.cjs"),j={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"等级评定",NAME_EN:"Grade",ORDER:4,PLATFORM:["pc","screen","mobile"]},J={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,hideSmall:!1},V=[{name:"参数一",object_id:"",项目编号:"",max:100,min:0}],K=["name","项目编号","object_id","max","min"],Q=["index","deviation","stability","balance","increment","risk"],X=[{color:"#5c7bd9",range:[0,100],name:"component.indass.gradeOne"}],Y=1,Z={useAlias:!1,source:"index"},ee={DEFAULT:j,OPTIONS:J,DATA:V,PARAMS:K,SOURCE:Q,GRADE:X,ITEMS:Y,COMMON:Z},te=e.defineComponent(A(D({},ee),{__name:"grg",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){y.use([B.install,G.install,y.install,U.install,y.install$1,W.install]);const{proxy:n}=e.getCurrentInstance(),a=e.ref(e.inject("session",null)),x="grg_"+Math.random().toString(16).substring(4,12);let t=null,S=null;const o=r;class q extends C.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),max:this.getOptionValue("max",100),min:this.getOptionValue("min",0),isHideTitle:this.getOptionValue("isHideTitle",!1),hideSmall:this.getOptionValue("hideSmall",!1)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:V,e.nextTick(()=>{let s=document.querySelector("#"+x);if(s){if(!t){t=N.init(s),S=m.elementResizeDetectorMaker({strategy:"scroll"});const c=m.debounce(()=>t==null?void 0:t.resize(),100);S.listenTo(s,c)}t.setOption(w(),!0)}})}onPreview(){O.preview()}cleanup(){S&&S.uninstall(document.querySelector("#"+x)),t&&t.clear(),t&&N.dispose(t),t=null,O.unregister()}}const v=new q(o,"grg");v.setupLifecycle();const d=v.getStyle(),k=e.computed(()=>P.generateTitleStyle(o.conf.options)),w=()=>{const{data:l,grade:s}=o.conf,c=m.hasDataSource(o.conf);let i=l[0]||{};return{series:[{type:"gauge",startAngle:180,endAngle:0,center:["50%","75%"],radius:"90%",min:i.min,max:i.max,splitNumber:100,axisLine:{lineStyle:{width:12,color:I()}},pointer:{icon:"path://M12.8,0.7l12,40.1H0.7L12.8,0.7z",length:"24%",width:4,offsetCenter:[0,"-60%"],itemStyle:{color:"auto"}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{color:d.value.textColor,fontSize:d.value.textSize,distance:-30,rotate:"tangential",formatter:function(h){let g=i.max-i.min,f="";for(let p=0;p<s.length;p++){let u=s[p];if(((h-i.min)/g).toFixed(2)===((u.range[1]+u.range[0])/g/2).toFixed(2)){(u.range[1]+u.range[0])/g/2<.1&&d.value.hideSmall?f="":f=u.name&&u.name.startsWith("component.")?n.$t(u.name):u.name;break}}return f}},title:{offsetCenter:[0,"10%"],fontSize:d.value.textSize,color:d.value.textColor},detail:{fontSize:16,offsetCenter:[0,"-15%"],color:"inherit"},data:[{value:m.getRandomArr({num:1,max:200,min:0,mode:o.mode,hasDataSource:c})[0]||0,name:i.name&&i.name.startsWith("component.")?n.$t(i.name):i.name}]}]}},I=()=>{const{grade:l,data:s}=o.conf,{max:c,min:i}=s[0];let h=[];return l.forEach(g=>{let f={color:g.color},p=c-i;f.step=Math.abs((g.range[1]-i)/p),h.push([f.step,f.color])}),h},M=l=>{if(!m.hasDataSource(o.conf))return;const{data:s}=o.conf;if(!l.history.length)return;let c=t==null?void 0:t.getOption();c&&(l.history.forEach(i=>{c.series[0].data[0].value=i[0][s[0].fv]}),t==null||t.setOption(c))},_=l=>{m.hasDataSource(o.conf)},O={preview:()=>C.preview(o,a.value,M,_,"grg"),unregister:()=>C.unregister(o,a.value)};e.watchEffect(()=>{o.conf.socketData&&_(o.conf.socketData)});const b=o.conf;return(l,s)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(d).bgColor,borderRadius:`${e.unref(d).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(k.value)},e.toDisplayString(e.unref(b).caption||e.unref(b).name),5),e.createElementVNode("div",{class:"mix-body"},[e.createElementVNode("div",{class:"w-full h-full",id:x})]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),ne=m._export_sfc(te,[["__scopeId","data-v-49769fc7"]]);exports.default=ne;
|
|
@@ -27,8 +27,8 @@ var E = (f, y, l) => new Promise((w, x) => {
|
|
|
27
27
|
T((l = l.apply(f, y)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as P, computed as W, openBlock as g, createElementBlock as m, normalizeStyle as C, unref as V, createElementVNode as _, toDisplayString as d, Fragment as D, renderList as $, normalizeClass as G, renderSlot as q } from "vue";
|
|
30
|
-
import { B as J } from "./BaseComponent-
|
|
31
|
-
import { _ as K } from "./index-
|
|
30
|
+
import { B as J } from "./BaseComponent-CEp8NJiX.js";
|
|
31
|
+
import { _ as K } from "./index-CqVPeq0-.js";
|
|
32
32
|
import { g as Q } from "./titleStyle-BT5GlpAb.js";
|
|
33
33
|
import { A as X, D as Y } from "./ele-gridview-icon-cSd1oIDi.js";
|
|
34
34
|
const Z = { class: "mix-body" }, ee = { class: "w-full flex flex-col" }, te = { key: 0 }, oe = { key: 2 }, se = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var D=Object.defineProperty,N=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var x=(f,p,n)=>p in f?D(f,p,{enumerable:!0,configurable:!0,writable:!0,value:n}):f[p]=n,O=(f,p)=>{for(var n in p||(p={}))I.call(p,n)&&x(f,n,p[n]);if(d)for(var n of d(p))U.call(p,n)&&x(f,n,p[n]);return f},z=(f,p)=>N(f,L(p));var v=(f,p,n)=>new Promise((k,E)=>{var m=h=>{try{C(n.next(h))}catch(V){E(V)}},B=h=>{try{C(n.throw(h))}catch(V){E(V)}},C=h=>h.done?k(h.value):Promise.resolve(h.value).then(m,B);C((n=n.apply(f,p)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),F=require("./BaseComponent-
|
|
1
|
+
"use strict";var D=Object.defineProperty,N=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var x=(f,p,n)=>p in f?D(f,p,{enumerable:!0,configurable:!0,writable:!0,value:n}):f[p]=n,O=(f,p)=>{for(var n in p||(p={}))I.call(p,n)&&x(f,n,p[n]);if(d)for(var n of d(p))U.call(p,n)&&x(f,n,p[n]);return f},z=(f,p)=>N(f,L(p));var v=(f,p,n)=>new Promise((k,E)=>{var m=h=>{try{C(n.next(h))}catch(V){E(V)}},B=h=>{try{C(n.throw(h))}catch(V){E(V)}},C=h=>h.done?k(h.value):Promise.resolve(h.value).then(m,B);C((n=n.apply(f,p)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),F=require("./BaseComponent-DaYX7dUF.cjs"),$=require("./index-OgmTZiO-.cjs"),j=require("./titleStyle-NSnz6cUg.cjs"),_=require("./ele-gridview-icon-D3GcssP6.cjs"),M={class:"mix-body"},P={class:"w-full flex flex-col"},R={key:0},H={key:2},q={DEFAULT_ICON:_.DEFAULT_ICON,ACTIVE_ICON:_.ACTIVE_ICON,NAME_CN:"数据表格",NAME_EN:"Data Table",ORDER:3,PLATFORM:["pc","screen","mobile"]},W={bgColor:"#fff",titleColor:"#111",borderColor:"#e5e5e5",splitColor:"#efefef",titleSize:14,radiusSize:8,height:32,position:{value:"center",type:"radio",option:[{value:"left",label:"component.list.left"},{value:"center",label:"component.list.center"},{value:"right",label:"component.list.right"}],label:"component.list.position"},isHideTitle:!1},G=[[{isValue:!1,isBold:!1,name:"",bgColor:"rgba(0, 0, 0, 0)",color:"#333",fontSize:12},{isValue:!1,isBold:!1,name:"",bgColor:"rgba(0, 0, 0, 0)",color:"#333",fontSize:12}],[{isValue:!1,isBold:!1,name:"",bgColor:"rgba(0, 0, 0, 0)",color:"#333",fontSize:12},{isValue:!1,isBold:!1,name:"",bgColor:"rgba(0, 0, 0, 0)",color:"#333",fontSize:12}]],J=["isValue","name","fv","object_id","unit","default","isText","source"],K=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime","summary"],Q={useAlias:!1,multiObject:!1,source:"mosaic",rowNum:2,colNum:2,rowWidth:[50,50]},X={DEFAULT:q,OPTIONS:W,DATA:G,PARAMS:J,SOURCE:K,COMMON:Q},Y=t.defineComponent(z(O({},X),{__name:"gridview",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(f){const n=f;class k extends F.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),splitColor:this.getOptionValue("splitColor","#efefef"),borderColor:this.getOptionValue("borderColor","#e5e5e5"),titleSize:this.getOptionValue("titleSize",14),radiusSize:this.getOptionValue("radiusSize",8),position:this.getOptionValue("position","center"),height:this.getOptionValue("height",32),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return v(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme();const{data:a}=this.props.conf;a&&Array.isArray(a)&&a.forEach(s=>{Array.isArray(s)&&s.forEach(e=>{var o,r,b,u,y,g;"isValue"in e||(e.isValue=!1),"isBold"in e||(e.isBold=!1),"name"in e||(e.name=""),"fv"in e||(e.fv=""),"bgColor"in e||(e.bgColor="rgba(0, 0, 0, 0)"),"color"in e||(e.color="#333"),"fontSize"in e||(e.fontSize=12),"unit"in e||(e.unit=""),"default"in e||(e.default=""),"isText"in e||(e.isText=!1),"statusType"in e||(e.statusType=0);const i=Number(e.statusType);e.statusType=Number.isFinite(i)?i:0,e.statusType===1?!e.status||typeof e.status!="object"||Array.isArray(e.status)?e.status={online:"1",offline:"0",standby:""}:((r=(o=e.status).online)!=null||(o.online="1"),(u=(b=e.status).offline)!=null||(b.offline="0"),(g=(y=e.status).standby)!=null||(y.standby="")):e.statusType===2?((!Array.isArray(e.status)||e.status.length===0)&&(e.status=[{code:"",text:"",color:"#333333"}]),e.status.forEach(l=>{var S,A,T;!l||typeof l!="object"||((S=l.code)!=null||(l.code=""),(A=l.text)!=null||(l.text=""),(T=l.color)!=null||(l.color="#333333"))})):(!e.status||typeof e.status!="object"||Array.isArray(e.status))&&(e.status={online:"1",offline:"0",standby:""})})})})}needsHistoryData(){const{data:a}=this.props.conf;return Array.isArray(a)?a.some(s=>Array.isArray(s)&&s.some(e=>{var i;return(e==null?void 0:e.isValue)&&String((i=e==null?void 0:e.fv)!=null?i:"").trim().length>0})):!1}initHistory(){return v(this,null,function*(){const{data:a}=this.props.conf;if(!Array.isArray(a)||!a.length)return[];const s=a.map(i=>({data:new Array(Array.isArray(i)?i.length:0),time:new Array(Array.isArray(i)?i.length:0)})),e=[];return a.forEach((i,o)=>{Array.isArray(i)&&i.forEach((r,b)=>{var u;!(r!=null&&r.isValue)||!String((u=r==null?void 0:r.fv)!=null?u:"").trim()||e.push({row:o,col:b,item:r})})}),yield Promise.all(e.map(b=>v(this,[b],function*({row:i,col:o,item:r}){var g,l,S;const u=yield this.postDataItem(r),y=(l=(g=u==null?void 0:u.data)==null?void 0:g.length)!=null?l:0;y>0?(s[i].data[o]=u.data[y-1],s[i].time[o]=(S=u.time)==null?void 0:S[y-1]):s[i].data[o]="--"}))),s})}onPreview(){return v(this,null,function*(){var r,b,u;const{common:a,data:s}=this.props.conf,e=this.getSource(),i=[];if(Array.isArray(s)){for(const y of s)if(Array.isArray(y))for(const g of y)g!=null&&g.isValue&&String((r=g.fv)!=null?r:"").trim()&&i.push(g)}if(!i.length)return;const o=yield this.expandAliasData(i);if(a.multiObject&&Array.isArray(o)&&o.length){const y=new Set;(yield Promise.all(o.map(l=>v(this,null,function*(){return{item:l,objectIds:yield this.resolveObjectIds(l)}})))).forEach(({item:l,objectIds:S})=>{S.forEach(A=>{!A||y.has(A)||(y.add(A),this.subscribeBySource(e,A,l.uid))})})}else{const y=yield this.resolveObjectId((b=o[0])!=null?b:a),g=(u=o==null?void 0:o[0])==null?void 0:u.uid;this.subscribeBySource(e,y,g)}})}setHistoryData(a){if(!a)return;const{data:s}=this.props.conf;!Array.isArray(s)||!s.length||s.forEach((e,i)=>{const o=a[i];o!=null&&o.data&&e.forEach((r,b)=>{var y;if(!r.isValue||!String((y=r==null?void 0:r.fv)!=null?y:"").trim()){r.isValue&&r.default!==void 0&&(r.value=r.default);return}const u=o.data[b];u!=null?r.value=u:r.value="--"})})}setSocketData(a){if(!a)return;const{data:s}=this.props.conf;s.forEach(e=>{e.forEach(i=>{var o;if(!(!i.isValue||!String((o=i==null?void 0:i.fv)!=null?o:"").trim()))try{const r=this.extractDataValue(a,i.fv);i.value=r!=null?r:"--"}catch(r){console.error("[gridview] 提取数据失败:",r,i),i.value="--"}})})}}const E=new k(n,"gridview");E.setupLifecycle();const m=E.getStyle(),B=t.computed(()=>j.generateTitleStyle(n.conf.options)),C={left:"flex-start",center:"center",right:"flex-end"},h=c=>{const a={text:"",color:""};return Array.isArray(c.status)&&c.status.forEach(s=>{String(s.code)===String(c.value)&&(a.text=s.text,a.color=s.color)}),a},V=c=>{let a="standby";if(c!=null&&c.status&&typeof c.status=="object"&&!Array.isArray(c.status))for(const s in c.status)String(c.status[s])===String(c.value)&&(a=s);return a},w=c=>{var e;const a=c.unit||"";return((e=c.value)!=null?e:"")+a};return(c,a)=>{var s;return t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({backgroundColor:t.unref(m).bgColor,borderRadius:`${t.unref(m).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(B.value)},t.toDisplayString(f.conf.caption||f.conf.name),5),t.createElementVNode("div",M,[t.createElementVNode("div",P,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((s=f.conf)==null?void 0:s.data,(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"tr",style:t.normalizeStyle({height:`${t.unref(m).height}px`,borderColor:`${t.unref(m).borderColor}`,backgroundColor:Number(i)%2===0?t.unref(m).splitColor:"transparent"}),key:i},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e,(o,r)=>(t.openBlock(),t.createElementBlock("div",{class:"td",style:t.normalizeStyle({width:`${f.conf.common.rowWidth[r]}%`,borderColor:`${t.unref(m).borderColor}`,color:`${o.color}`,fontSize:`${o.fontSize}px`,backgroundColor:`${o.bgColor}`,fontWeight:`${o.isBold?"bold":"normal"}`}),key:r},[t.createElementVNode("div",{class:"w-full px-3 flex",style:t.normalizeStyle({justifyContent:C[t.unref(m).position]})},[o.isValue?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[o.statusType===1?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({width:`${o.fontSize}px`,height:`${o.fontSize}px`}),class:t.normalizeClass(V(o))},null,6)):o.statusType===2?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle({color:h(o).color})},t.toDisplayString(h(o).text),5)):(t.openBlock(),t.createElementBlock("div",H,t.toDisplayString(w(o)),1))],64)):(t.openBlock(),t.createElementBlock("div",R,t.toDisplayString(o.name),1))],4)],4))),128))],4))),128))])]),t.renderSlot(c.$slots,"default",{},void 0,!0)],4)}}})),Z=$._export_sfc(Y,[["__scopeId","data-v-daba72be"]]);exports.default=Z;
|
|
@@ -17,8 +17,8 @@ import "element-plus/es/components/date-picker/style/css";
|
|
|
17
17
|
import "element-plus/es/components/select/style/css";
|
|
18
18
|
import "element-plus/es/components/option/style/css";
|
|
19
19
|
import { defineComponent as X, computed as _, reactive as Z, openBlock as u, createElementBlock as C, normalizeStyle as ee, createElementVNode as i, createVNode as p, withCtx as h, Fragment as w, renderList as D, createBlock as T, normalizeClass as te, toDisplayString as le, createTextVNode as ae, renderSlot as oe } from "vue";
|
|
20
|
-
import { B as ne } from "./BaseComponent-
|
|
21
|
-
import { d as Y, _ as re } from "./index-
|
|
20
|
+
import { B as ne } from "./BaseComponent-CEp8NJiX.js";
|
|
21
|
+
import { d as Y, _ as re } from "./index-CqVPeq0-.js";
|
|
22
22
|
import { A as se, D as ie } from "./ele-vlu-icon-Bg6EHZdJ.js";
|
|
23
23
|
const ue = { class: "filter-bar" }, ce = { class: "filter-item" }, me = { class: "filter-item" }, de = { class: "filter-item" }, pe = { class: "time-range-btns" }, fe = ["onClick"], ge = { class: "filter-item" }, be = {
|
|
24
24
|
DEFAULT_ICON: ie,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var A=Object.defineProperty,I=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var w=(i,r,s)=>r in i?A(i,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[r]=s,V=(i,r)=>{for(var s in r||(r={}))H.call(r,s)&&w(i,s,r[s]);if(k)for(var s of k(r))U.call(r,s)&&w(i,s,r[s]);return i},D=(i,r)=>I(i,F(r));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/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const t=require("vue"),z=require("./BaseComponent-
|
|
1
|
+
"use strict";var A=Object.defineProperty,I=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var w=(i,r,s)=>r in i?A(i,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[r]=s,V=(i,r)=>{for(var s in r||(r={}))H.call(r,s)&&w(i,s,r[s]);if(k)for(var s of k(r))U.call(r,s)&&w(i,s,r[s]);return i},D=(i,r)=>I(i,F(r));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/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const t=require("vue"),z=require("./BaseComponent-DaYX7dUF.cjs"),v=require("./index-OgmTZiO-.cjs"),S=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),q={class:"filter-bar"},L={class:"filter-item"},G={class:"filter-item"},P={class:"filter-item"},$={class:"time-range-btns"},Q=["onClick"],W={class:"filter-item"},J={DEFAULT_ICON:S.DEFAULT_ICON,ACTIVE_ICON:S.ACTIVE_ICON,NAME_CN:"地下水筛选栏",NAME_EN:"Groundwater Filter Bar",ORDER:1,PLATFORM:["pc","screen"]},K={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},labelColor:{value:"#1c3d90",type:"color",label:"标签文字颜色"},fontSize:{value:"13",type:"select",label:"字体大小",options:[{label:"小 (12px)",value:"12"},{label:"标准 (13px)",value:"13"},{label:"大 (14px)",value:"14"},{label:"特大 (16px)",value:"16"}]},btnColor:{value:"#409eff",type:"color",label:"按钮主色"},defaultTimeRange:{value:"1d",type:"select",label:"默认时间范围",options:[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}]},linkChannel:{value:"groundwater",type:"select",label:"component.linkChannel",options:[{label:"地下水监测",value:"groundwater"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},X=[{name:"GROUND101",object_id:"",region:"北帮"},{name:"GROUND102",object_id:"",region:"北帮"},{name:"GROUND201",object_id:"",region:"南帮"},{name:"GROUND305",object_id:"",region:"东帮"},{name:"GROUND410",object_id:"",region:"西帮"}],Z=["name","object_id","region"],ee=["mosaic"],te={useAlias:!1,multiObject:!0,source:"mosaic"},le=50,oe={DEFAULT:J,OPTIONS:K,DATA:X,PARAMS:Z,SOURCE:ee,ITEMS:le,COMMON:te},ae=t.defineComponent(D(V({},oe),{__name:"groundwaterFilterBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const r=i;class s extends z.BaseComponent{extractStyles(){var g,f,o,_,N,E,R,h;const e=(g=this.props.conf)==null?void 0:g.options,n=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"groundwater",d=((o=e==null?void 0:e.customChannel)==null?void 0:o.value)||"";return{bgColor:((_=e==null?void 0:e.bgColor)==null?void 0:_.value)||"#ffffff",labelColor:((N=e==null?void 0:e.labelColor)==null?void 0:N.value)||"#1c3d90",fontSize:(((E=e==null?void 0:e.fontSize)==null?void 0:E.value)||"13")+"px",btnColor:((R=e==null?void 0:e.btnColor)==null?void 0:R.value)||"#409eff",defaultTimeRange:((h=e==null?void 0:e.defaultTimeRange)==null?void 0:h.value)||"1d",linkChannel:n==="custom"&&d?d:n}}}const C=new s(r,"groundwaterFilterBar");C.setupLifecycle();const c=C.getStyle(),m=t.computed(()=>{var e;const l=(e=r.conf)==null?void 0:e.data;return!l||!Array.isArray(l)?[]:l.filter(n=>n.name)}),Y=t.computed(()=>{const l=new Set;return m.value.forEach(e=>{e.region&&l.add(e.region)}),Array.from(l)}),y=t.computed(()=>{let l=m.value;return a.region&&(l=l.filter(e=>e.region===a.region)),l.map(e=>({label:e.name,value:e.name}))}),B=[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}],u=m.value[0],p=c.value.defaultTimeRange||"1d",a=t.reactive({region:(u==null?void 0:u.region)||"",points:u?[u.name]:[],timeRange:p,dateRange:[v.dayjs().subtract(p==="1m"?1:p==="1w"?7:1,p==="1m"?"month":"day").format("YYYY/MM/DD HH:mm"),v.dayjs().format("YYYY/MM/DD HH:mm")]}),M=()=>{const l=y.value;a.points=l.length>0?[l[0].value]:[]},O=l=>{a.timeRange=l;const e=v.dayjs(),n=l==="1d"?e.subtract(1,"day"):l==="1w"?e.subtract(1,"week"):e.subtract(1,"month");a.dateRange=[n.format("YYYY/MM/DD HH:mm"),e.format("YYYY/MM/DD HH:mm")]},j=()=>{a.timeRange=""},T=()=>{if(r.mode==="edit"||a.points.length===0)return;const l=m.value.filter(n=>a.points.includes(n.name)),e=[...new Set(l.map(n=>n.object_id).filter(Boolean))];if(e.length===0){console.warn("[地下水筛选栏] 所选监测点未配置 object_id,无法发送联动");return}C.publish({type:"filter",region:a.region,selectedMonitors:a.points,objectId:e[0]||"",objectIds:e,sensors:l.map(n=>({name:n.name,objectId:n.object_id})),timeRange:a.timeRange,dateRange:[...a.dateRange]})},x=t.computed(()=>({backgroundColor:c.value.bgColor,"--label-color":c.value.labelColor,"--btn-color":c.value.btnColor,"--font-size":c.value.fontSize}));return(l,e)=>{const n=b.ElOption,d=b.ElSelect,g=b.ElDatePicker,f=b.ElButton;return t.openBlock(),t.createElementBlock("div",{class:"gw-filter-bar-wrap",style:t.normalizeStyle(x.value)},[t.createElementVNode("div",q,[t.createElementVNode("div",L,[e[3]||(e[3]=t.createElementVNode("span",{class:"filter-label"},"区域位置:",-1)),t.createVNode(d,{modelValue:a.region,"onUpdate:modelValue":e[0]||(e[0]=o=>a.region=o),placeholder:"全部区域",size:"small",style:{width:"120px"},onChange:M},{default:t.withCtx(()=>[t.createVNode(n,{label:"全部区域",value:""}),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Y.value,o=>(t.openBlock(),t.createBlock(n,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),t.createElementVNode("div",G,[e[4]||(e[4]=t.createElementVNode("span",{class:"filter-label"},"监测点:",-1)),t.createVNode(d,{modelValue:a.points,"onUpdate:modelValue":e[1]||(e[1]=o=>a.points=o),placeholder:"请选择",size:"small",style:{width:"180px"},multiple:"","collapse-tags":"","collapse-tags-tooltip":""},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value,o=>(t.openBlock(),t.createBlock(n,{key:o.value,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),t.createElementVNode("div",P,[e[5]||(e[5]=t.createElementVNode("span",{class:"filter-label"},"时间范围:",-1)),t.createElementVNode("div",$,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(B,o=>t.createElementVNode("button",{key:o.value,class:t.normalizeClass(["range-btn",{active:a.timeRange===o.value}]),onClick:_=>O(o.value)},t.toDisplayString(o.label),11,Q)),64))])]),t.createElementVNode("div",W,[t.createVNode(g,{modelValue:a.dateRange,"onUpdate:modelValue":e[2]||(e[2]=o=>a.dateRange=o),type:"datetimerange",size:"small",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",style:{width:"340px"},onChange:j},null,8,["modelValue"])]),t.createVNode(f,{type:"primary",size:"small",onClick:T},{default:t.withCtx(()=>[...e[6]||(e[6]=[t.createTextVNode("查询",-1)])]),_:1})]),t.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),ne=v._export_sfc(ae,[["__scopeId","data-v-a925402f"]]);exports.default=ne;
|