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 A=Object.defineProperty,F=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols,L=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,j=Reflect.get;var O=(l,o,t)=>o in l?A(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,z=(l,o)=>{for(var t in o||(o={}))P.call(o,t)&&O(l,t,o[t]);if(k)for(var t of k(o))I.call(o,t)&&O(l,t,o[t]);return l},N=(l,o)=>F(l,M(o));var w=(l,o,t)=>j(L(l),t,o);var S=(l,o,t)=>new Promise((p,d)=>{var f=r=>{try{u(t.next(r))}catch(c){d(c)}},C=r=>{try{u(t.throw(r))}catch(c){d(c)}},u=r=>r.done?p(r.value):Promise.resolve(r.value).then(f,C);u((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const D=require("./BaseComponent-bzb58Hhs.cjs"),v=require("./index-6QhTSPkL.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),y=require("./mix-control-modal-DGd2S6Jd.cjs"),H=require("element-plus"),q="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-213.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M225.674156,1208.89481%20C225.944595,1209.04924%20226.205387,1209.21954%20226.455068,1209.40467%20C226.881095,1209.72052%20227.273774,1210.07876%20227.626647,1210.47337%20C228.878628,1211.87353%20229.582251,1213.67438%20229.582251,1215.58182%20C229.582251,1219.84629%20226.083331,1223.3%20221.771264,1223.3%20C217.459198,1223.3%20213.960278,1219.84629%20213.960278,1215.58182%20C213.960278,1213.67437%20214.663898,1211.87352%20215.9159,1210.47335%20C216.268755,1210.07876%20216.661433,1209.72052%20217.087434,1209.40469%20C217.337142,1209.21954%20217.597933,1209.04924%20217.868372,1208.89481%20C218.16979,1208.7227%20218.55366,1208.82753%20218.725771,1209.12895%20C218.897882,1209.43036%20218.793058,1209.81423%20218.49164,1209.98634%20C218.264609,1210.11598%20218.045681,1210.25894%20217.836048,1210.41438%20C217.478472,1210.67948%20217.148907,1210.98015%20216.85287,1211.31119%20C215.804685,1212.48343%20215.217218,1213.98699%20215.217218,1215.58182%20C215.217218,1219.14841%20218.149754,1222.04306%20221.771264,1222.04306%20C225.392775,1222.04306%20228.32531,1219.14841%20228.32531,1215.58182%20C228.32531,1213.987%20227.73784,1212.48344%20226.689675,1211.31121%20C226.393622,1210.98015%20226.064056,1210.67948%20225.706453,1210.41436%20C225.496847,1210.25894%20225.27792,1210.11598%20225.050889,1209.98634%20C224.749471,1209.81423%20224.644647,1209.43036%20224.816758,1209.12895%20C224.988868,1208.82753%20225.372739,1208.7227%20225.674156,1208.89481%20Z%20M221.771264,1207.3%20C222.089434,1207.3%20222.352382,1207.53643%20222.393997,1207.84319%20L222.399735,1207.92847%20L222.399735,1215.48901%20C222.399735,1215.83611%20222.118359,1216.11748%20221.771264,1216.11748%20C221.453094,1216.11748%20221.190147,1215.88105%20221.148531,1215.57429%20L221.142794,1215.48901%20L221.142794,1207.92847%20C221.142794,1207.58138%20221.42417,1207.3%20221.771264,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M115.0528,1208.89481%20C115.323239,1209.04924%20115.58403,1209.21954%20115.833711,1209.40467%20C116.259739,1209.72052%20116.652418,1210.07876%20117.00529,1210.47337%20C118.257271,1211.87353%20118.960894,1213.67438%20118.960894,1215.58182%20C118.960894,1219.84629%20115.461974,1223.3%20111.149908,1223.3%20C106.837841,1223.3%20103.338921,1219.84629%20103.338921,1215.58182%20C103.338921,1213.67437%20104.042541,1211.87352%20105.294544,1210.47335%20C105.647398,1210.07876%20106.040077,1209.72052%20106.466077,1209.40469%20C106.715786,1209.21954%20106.976577,1209.04924%20107.247016,1208.89481%20C107.548433,1208.7227%20107.932304,1208.82753%20108.104414,1209.12895%20C108.276525,1209.43036%20108.171701,1209.81423%20107.870284,1209.98634%20C107.643252,1210.11598%20107.424325,1210.25894%20107.214692,1210.41438%20C106.857116,1210.67948%20106.52755,1210.98015%20106.231514,1211.31119%20C105.183328,1212.48343%20104.595862,1213.98699%20104.595862,1215.58182%20C104.595862,1219.14841%20107.528398,1222.04306%20111.149908,1222.04306%20C114.771418,1222.04306%20117.703954,1219.14841%20117.703954,1215.58182%20C117.703954,1213.987%20117.116484,1212.48344%20116.068318,1211.31121%20C115.772265,1210.98015%20115.4427,1210.67948%20115.085097,1210.41436%20C114.875491,1210.25894%20114.656563,1210.11598%20114.429532,1209.98634%20C114.128115,1209.81423%20114.023291,1209.43036%20114.195401,1209.12895%20C114.367512,1208.82753%20114.751382,1208.7227%20115.0528,1208.89481%20Z%20M111.149908,1207.3%20C111.468078,1207.3%20111.731026,1207.53643%20111.772641,1207.84319%20L111.778378,1207.92847%20L111.778378,1215.48901%20C111.778378,1215.83611%20111.497002,1216.11748%20111.149908,1216.11748%20C110.831738,1216.11748%20110.56879,1215.88105%20110.527175,1215.57429%20L110.521438,1215.48901%20L110.521438,1207.92847%20C110.521438,1207.58138%20110.802813,1207.3%20111.149908,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",U={class:"font-semibold flex items-center justify-between"},Z={class:"mix-body"},W={class:"w-full flex flex-wrap content-start"},G=["onClick"],J={DEFAULT_ICON:q,ACTIVE_ICON:$,NAME_CN:"按键",NAME_EN:"Button",ORDER:2,PLATFORM:["pc","screen","mobile"]},K={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:v.CONTROL_OPTIONS}},V=[{command:"Control_01",name:"关机",color:"#c92309",code:"0"},{command:"Control_01",name:"开机",color:"#217406",code:"1"}],Y=["name","command","color","code"],Q=["mosaic"],X={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},e2={DEFAULT:J,OPTIONS:K,DATA:V,PARAMS:Y,SOURCE:Q,COMMON:X},t2=e.defineComponent(N(z({},e2),{__name:"ctrBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(l){const o=l,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),p=e.reactive({rule:"",code:"",command:""}),d=e.reactive({text:"",color:""}),f=e.ref(null),C=e.ref(!0);class u extends D.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#fff"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",42),radiusSize:this.getOptionValue("radiusSize",8),items:this.getOptionValue("items",2),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return S(this,null,function*(){w(u.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:V})}onPreview(){return S(this,null,function*(){yield w(u.prototype,this,"onPreview").call(this);const n=yield y.getAuthorized(this.props);t.authorized=n.authorized,t.password=n.password})}setSocketData(n){var g,x;if(!n)return;const{common:i}=this.props.conf,s=this.extractDataValue(n,i.statusFv);if(s!=null){const m=i.status.find(h=>String(h.code)===String(s));d.text=(g=m==null?void 0:m.text)!=null?g:"",d.color=(x=m==null?void 0:m.color)!=null?x:""}}}const r=new u(o,"ctrBtn");r.setupLifecycle();const c=r.getStyle(),E=e.computed(()=>R.generateTitleStyle(o.conf.options)),B=e.computed(()=>`${(100/c.value.items).toFixed(2)||100}%`),b=a=>!y.checkPermission(t.authorized,a.command),T=a=>{var s;if(b(a))return;const{options:n}=o.conf;let i=((s=n==null?void 0:n.method)==null?void 0:s.value)||"alway";p.rule=i,p.code=String(a.code),p.command=a.command,i==="alway"||i==="once"&&C.value?f.value.modal.visible=!0:_()},_=()=>{const{code:a,rule:n,command:i}=p,{common:s}=o.conf,g=JSON.parse(sessionStorage.getItem(v.ALIAS_MAPPING_KEY)||"{}");let m={block_mapping:"pusher",action:"publish_command",object_id:s.useAlias?g[s.object_alias]:s.object_id||o.uid,command:i,value:a,rule:n,control:t.password};v.api.platform(h=>{h.code===200&&(H.ElMessage.success(h.msg),f.value.modal.visible=!1,C.value=!1)},m)};return(a,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(E.value)},[e.createElementVNode("div",U,[e.createTextVNode(e.toDisplayString(l.conf.caption||l.conf.name)+" ",1),d.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"status-btn",style:e.normalizeStyle({backgroundColor:d.color,color:e.unref(c).textColor})},e.toDisplayString(d.text),5)):e.createCommentVNode("",!0)])],4),e.createElementVNode("div",Z,[e.createElementVNode("div",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.data,(i,s)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:s,style:e.normalizeStyle({width:B.value,height:`${e.unref(c).itemHeight}px`,fontSize:`${e.unref(c).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:b(i)}]),style:e.normalizeStyle({backgroundColor:i.color,color:e.unref(c).textColor}),onClick:g=>T(i)},e.toDisplayString(i.name),15,G)],4))),128))])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4),e.createVNode(y._sfc_main,{ref_key:"controlRef",ref:f,onSubmit:_,password:t.password},null,8,["password"])],64))}})),o2=v._export_sfc(t2,[["__scopeId","data-v-8265c6e9"]]);exports.default=o2;
|
|
1
|
+
"use strict";var A=Object.defineProperty,F=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols,L=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,j=Reflect.get;var O=(l,o,t)=>o in l?A(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,z=(l,o)=>{for(var t in o||(o={}))P.call(o,t)&&O(l,t,o[t]);if(k)for(var t of k(o))I.call(o,t)&&O(l,t,o[t]);return l},N=(l,o)=>F(l,M(o));var w=(l,o,t)=>j(L(l),t,o);var S=(l,o,t)=>new Promise((p,d)=>{var f=r=>{try{u(t.next(r))}catch(c){d(c)}},C=r=>{try{u(t.throw(r))}catch(c){d(c)}},u=r=>r.done?p(r.value):Promise.resolve(r.value).then(f,C);u((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const D=require("./BaseComponent-DaYX7dUF.cjs"),v=require("./index-OgmTZiO-.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),y=require("./mix-control-modal-DjG-ChQu.cjs"),H=require("element-plus"),q="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-213.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M225.674156,1208.89481%20C225.944595,1209.04924%20226.205387,1209.21954%20226.455068,1209.40467%20C226.881095,1209.72052%20227.273774,1210.07876%20227.626647,1210.47337%20C228.878628,1211.87353%20229.582251,1213.67438%20229.582251,1215.58182%20C229.582251,1219.84629%20226.083331,1223.3%20221.771264,1223.3%20C217.459198,1223.3%20213.960278,1219.84629%20213.960278,1215.58182%20C213.960278,1213.67437%20214.663898,1211.87352%20215.9159,1210.47335%20C216.268755,1210.07876%20216.661433,1209.72052%20217.087434,1209.40469%20C217.337142,1209.21954%20217.597933,1209.04924%20217.868372,1208.89481%20C218.16979,1208.7227%20218.55366,1208.82753%20218.725771,1209.12895%20C218.897882,1209.43036%20218.793058,1209.81423%20218.49164,1209.98634%20C218.264609,1210.11598%20218.045681,1210.25894%20217.836048,1210.41438%20C217.478472,1210.67948%20217.148907,1210.98015%20216.85287,1211.31119%20C215.804685,1212.48343%20215.217218,1213.98699%20215.217218,1215.58182%20C215.217218,1219.14841%20218.149754,1222.04306%20221.771264,1222.04306%20C225.392775,1222.04306%20228.32531,1219.14841%20228.32531,1215.58182%20C228.32531,1213.987%20227.73784,1212.48344%20226.689675,1211.31121%20C226.393622,1210.98015%20226.064056,1210.67948%20225.706453,1210.41436%20C225.496847,1210.25894%20225.27792,1210.11598%20225.050889,1209.98634%20C224.749471,1209.81423%20224.644647,1209.43036%20224.816758,1209.12895%20C224.988868,1208.82753%20225.372739,1208.7227%20225.674156,1208.89481%20Z%20M221.771264,1207.3%20C222.089434,1207.3%20222.352382,1207.53643%20222.393997,1207.84319%20L222.399735,1207.92847%20L222.399735,1215.48901%20C222.399735,1215.83611%20222.118359,1216.11748%20221.771264,1216.11748%20C221.453094,1216.11748%20221.190147,1215.88105%20221.148531,1215.57429%20L221.142794,1215.48901%20L221.142794,1207.92847%20C221.142794,1207.58138%20221.42417,1207.3%20221.771264,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M115.0528,1208.89481%20C115.323239,1209.04924%20115.58403,1209.21954%20115.833711,1209.40467%20C116.259739,1209.72052%20116.652418,1210.07876%20117.00529,1210.47337%20C118.257271,1211.87353%20118.960894,1213.67438%20118.960894,1215.58182%20C118.960894,1219.84629%20115.461974,1223.3%20111.149908,1223.3%20C106.837841,1223.3%20103.338921,1219.84629%20103.338921,1215.58182%20C103.338921,1213.67437%20104.042541,1211.87352%20105.294544,1210.47335%20C105.647398,1210.07876%20106.040077,1209.72052%20106.466077,1209.40469%20C106.715786,1209.21954%20106.976577,1209.04924%20107.247016,1208.89481%20C107.548433,1208.7227%20107.932304,1208.82753%20108.104414,1209.12895%20C108.276525,1209.43036%20108.171701,1209.81423%20107.870284,1209.98634%20C107.643252,1210.11598%20107.424325,1210.25894%20107.214692,1210.41438%20C106.857116,1210.67948%20106.52755,1210.98015%20106.231514,1211.31119%20C105.183328,1212.48343%20104.595862,1213.98699%20104.595862,1215.58182%20C104.595862,1219.14841%20107.528398,1222.04306%20111.149908,1222.04306%20C114.771418,1222.04306%20117.703954,1219.14841%20117.703954,1215.58182%20C117.703954,1213.987%20117.116484,1212.48344%20116.068318,1211.31121%20C115.772265,1210.98015%20115.4427,1210.67948%20115.085097,1210.41436%20C114.875491,1210.25894%20114.656563,1210.11598%20114.429532,1209.98634%20C114.128115,1209.81423%20114.023291,1209.43036%20114.195401,1209.12895%20C114.367512,1208.82753%20114.751382,1208.7227%20115.0528,1208.89481%20Z%20M111.149908,1207.3%20C111.468078,1207.3%20111.731026,1207.53643%20111.772641,1207.84319%20L111.778378,1207.92847%20L111.778378,1215.48901%20C111.778378,1215.83611%20111.497002,1216.11748%20111.149908,1216.11748%20C110.831738,1216.11748%20110.56879,1215.88105%20110.527175,1215.57429%20L110.521438,1215.48901%20L110.521438,1207.92847%20C110.521438,1207.58138%20110.802813,1207.3%20111.149908,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",U={class:"font-semibold flex items-center justify-between"},Z={class:"mix-body"},W={class:"w-full flex flex-wrap content-start"},G=["onClick"],J={DEFAULT_ICON:q,ACTIVE_ICON:$,NAME_CN:"按键",NAME_EN:"Button",ORDER:2,PLATFORM:["pc","screen","mobile"]},K={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:v.CONTROL_OPTIONS}},V=[{command:"Control_01",name:"关机",color:"#c92309",code:"0"},{command:"Control_01",name:"开机",color:"#217406",code:"1"}],Y=["name","command","color","code"],Q=["mosaic"],X={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},e2={DEFAULT:J,OPTIONS:K,DATA:V,PARAMS:Y,SOURCE:Q,COMMON:X},t2=e.defineComponent(N(z({},e2),{__name:"ctrBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(l){const o=l,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),p=e.reactive({rule:"",code:"",command:""}),d=e.reactive({text:"",color:""}),f=e.ref(null),C=e.ref(!0);class u extends D.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#fff"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",42),radiusSize:this.getOptionValue("radiusSize",8),items:this.getOptionValue("items",2),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return S(this,null,function*(){w(u.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:V})}onPreview(){return S(this,null,function*(){yield w(u.prototype,this,"onPreview").call(this);const n=yield y.getAuthorized(this.props);t.authorized=n.authorized,t.password=n.password})}setSocketData(n){var g,x;if(!n)return;const{common:i}=this.props.conf,s=this.extractDataValue(n,i.statusFv);if(s!=null){const m=i.status.find(h=>String(h.code)===String(s));d.text=(g=m==null?void 0:m.text)!=null?g:"",d.color=(x=m==null?void 0:m.color)!=null?x:""}}}const r=new u(o,"ctrBtn");r.setupLifecycle();const c=r.getStyle(),E=e.computed(()=>R.generateTitleStyle(o.conf.options)),B=e.computed(()=>`${(100/c.value.items).toFixed(2)||100}%`),b=a=>!y.checkPermission(t.authorized,a.command),T=a=>{var s;if(b(a))return;const{options:n}=o.conf;let i=((s=n==null?void 0:n.method)==null?void 0:s.value)||"alway";p.rule=i,p.code=String(a.code),p.command=a.command,i==="alway"||i==="once"&&C.value?f.value.modal.visible=!0:_()},_=()=>{const{code:a,rule:n,command:i}=p,{common:s}=o.conf,g=JSON.parse(sessionStorage.getItem(v.ALIAS_MAPPING_KEY)||"{}");let m={block_mapping:"mapping",action:"publish_command",object_id:s.useAlias?g[s.object_alias]:s.object_id||o.uid,command:i,value:a,rule:n,control:t.password};v.api.platform(h=>{h.code===200&&(H.ElMessage.success(h.msg),f.value.modal.visible=!1,C.value=!1)},m)};return(a,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(E.value)},[e.createElementVNode("div",U,[e.createTextVNode(e.toDisplayString(l.conf.caption||l.conf.name)+" ",1),d.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"status-btn",style:e.normalizeStyle({backgroundColor:d.color,color:e.unref(c).textColor})},e.toDisplayString(d.text),5)):e.createCommentVNode("",!0)])],4),e.createElementVNode("div",Z,[e.createElementVNode("div",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.data,(i,s)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:s,style:e.normalizeStyle({width:B.value,height:`${e.unref(c).itemHeight}px`,fontSize:`${e.unref(c).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:b(i)}]),style:e.normalizeStyle({backgroundColor:i.color,color:e.unref(c).textColor}),onClick:g=>T(i)},e.toDisplayString(i.name),15,G)],4))),128))])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4),e.createVNode(y._sfc_main,{ref_key:"controlRef",ref:f,onSubmit:_,password:t.password},null,8,["password"])],64))}})),o2=v._export_sfc(t2,[["__scopeId","data-v-061fd8dc"]]);exports.default=o2;
|
|
@@ -11,30 +11,30 @@ var M = (l, e, o) => e in l ? H(l, e, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
}, I = (l, e) => G(l, J(e));
|
|
12
12
|
var j = (l, e, o) => Q(K(l), o, e);
|
|
13
13
|
var A = (l, e, o) => new Promise((h, v) => {
|
|
14
|
-
var r = (
|
|
14
|
+
var r = (s) => {
|
|
15
15
|
try {
|
|
16
|
-
c(o.next(
|
|
16
|
+
c(o.next(s));
|
|
17
17
|
} catch (d) {
|
|
18
18
|
v(d);
|
|
19
19
|
}
|
|
20
|
-
}, x = (
|
|
20
|
+
}, x = (s) => {
|
|
21
21
|
try {
|
|
22
|
-
c(o.throw(
|
|
22
|
+
c(o.throw(s));
|
|
23
23
|
} catch (d) {
|
|
24
24
|
v(d);
|
|
25
25
|
}
|
|
26
|
-
}, c = (
|
|
26
|
+
}, c = (s) => s.done ? h(s.value) : Promise.resolve(s.value).then(r, x);
|
|
27
27
|
c((o = o.apply(l, e)).next());
|
|
28
28
|
});
|
|
29
29
|
import { ElInput as X, ElButton as Z } from "element-plus/es";
|
|
30
30
|
import "element-plus/es/components/base/style/css";
|
|
31
31
|
import "element-plus/es/components/button/style/css";
|
|
32
32
|
import "element-plus/es/components/input/style/css";
|
|
33
|
-
import { defineComponent as ee, computed as O, reactive as te, ref as V, openBlock as z, createElementBlock as E, Fragment as B, createElementVNode as p, normalizeStyle as g, unref as f, toDisplayString as T, renderList as oe, createVNode as C, withCtx as le, createTextVNode as ae, renderSlot as
|
|
34
|
-
import { B as
|
|
35
|
-
import { A as ne, a as L, _ as ce } from "./index-
|
|
33
|
+
import { defineComponent as ee, computed as O, reactive as te, ref as V, openBlock as z, createElementBlock as E, Fragment as B, createElementVNode as p, normalizeStyle as g, unref as f, toDisplayString as T, renderList as oe, createVNode as C, withCtx as le, createTextVNode as ae, renderSlot as ie } from "vue";
|
|
34
|
+
import { B as se } from "./BaseComponent-CEp8NJiX.js";
|
|
35
|
+
import { A as ne, a as L, _ as ce } from "./index-CqVPeq0-.js";
|
|
36
36
|
import { g as re } from "./titleStyle-BT5GlpAb.js";
|
|
37
|
-
import { _ as de, g as ue, c as me } from "./mix-control-modal-
|
|
37
|
+
import { _ as de, g as ue, c as me } from "./mix-control-modal-DITf1VAp.js";
|
|
38
38
|
import { ElMessage as R } from "element-plus";
|
|
39
39
|
import { A as pe, D as fe } from "./ele-ctrSet-icon-BtKGrCid.js";
|
|
40
40
|
const he = { class: "font-[600]" }, ve = { class: "submint" }, be = {
|
|
@@ -83,7 +83,7 @@ const he = { class: "font-[600]" }, ve = { class: "submint" }, be = {
|
|
|
83
83
|
},
|
|
84
84
|
setup(l) {
|
|
85
85
|
const e = l, o = "--";
|
|
86
|
-
class h extends
|
|
86
|
+
class h extends se {
|
|
87
87
|
extractStyles() {
|
|
88
88
|
return {
|
|
89
89
|
bgColor: this.getOptionValue("bgColor", "#fff"),
|
|
@@ -104,15 +104,15 @@ const he = { class: "font-[600]" }, ve = { class: "submint" }, be = {
|
|
|
104
104
|
onPreview() {
|
|
105
105
|
return A(this, null, function* () {
|
|
106
106
|
yield j(h.prototype, this, "onPreview").call(this);
|
|
107
|
-
const
|
|
108
|
-
c.authorized =
|
|
107
|
+
const i = yield ue(this.props);
|
|
108
|
+
c.authorized = i.authorized, c.password = i.password;
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
setSocketData(
|
|
112
|
-
if (!
|
|
111
|
+
setSocketData(i) {
|
|
112
|
+
if (!i) return;
|
|
113
113
|
const { data: a } = this.props.conf;
|
|
114
114
|
a.forEach((u) => {
|
|
115
|
-
const n = this.extractDataValue(
|
|
115
|
+
const n = this.extractDataValue(i, u.fv);
|
|
116
116
|
u.value = n != null ? n : o;
|
|
117
117
|
});
|
|
118
118
|
}
|
|
@@ -122,29 +122,29 @@ const he = { class: "font-[600]" }, ve = { class: "submint" }, be = {
|
|
|
122
122
|
const r = v.getStyle(), x = O(() => re(e.conf.options)), c = te({
|
|
123
123
|
authorized: { type: "black_list", list: [] },
|
|
124
124
|
password: ""
|
|
125
|
-
}),
|
|
125
|
+
}), s = V([]), d = V(null), w = V(!0), $ = O(() => {
|
|
126
126
|
var t;
|
|
127
127
|
return ((t = e.conf.data) == null ? void 0 : t.length) === 1;
|
|
128
|
-
}), U = (t) => !me(c.authorized, t.command), N = O(() =>
|
|
128
|
+
}), U = (t) => !me(c.authorized, t.command), N = O(() => s.value.filter((t) => t).length === 0);
|
|
129
129
|
O(() => {
|
|
130
|
-
var
|
|
130
|
+
var i, a;
|
|
131
131
|
const { data: t } = e.conf;
|
|
132
|
-
return (((
|
|
132
|
+
return (((i = t == null ? void 0 : t[0]) == null ? void 0 : i.value) || o) + " " + (((a = t == null ? void 0 : t[0]) == null ? void 0 : a.unit) || "");
|
|
133
133
|
});
|
|
134
134
|
const F = () => {
|
|
135
135
|
var a;
|
|
136
|
-
const { options: t } = e.conf,
|
|
137
|
-
|
|
136
|
+
const { options: t } = e.conf, i = ((a = t == null ? void 0 : t.method) == null ? void 0 : a.value) || "alway";
|
|
137
|
+
i === "alway" || i === "once" && w.value ? d.value.modal.visible = !0 : k();
|
|
138
138
|
}, k = () => {
|
|
139
139
|
var m, y;
|
|
140
|
-
const { common: t, data:
|
|
140
|
+
const { common: t, data: i, options: a } = e.conf, u = JSON.parse(sessionStorage.getItem(ne) || "{}") || {}, n = t.useAlias ? u[t.object_alias] : t.object_id || e.uid;
|
|
141
141
|
if ($.value) {
|
|
142
142
|
const S = {
|
|
143
|
-
block_mapping: "
|
|
143
|
+
block_mapping: "mapping",
|
|
144
144
|
action: "publish_command",
|
|
145
145
|
object_id: n,
|
|
146
|
-
command:
|
|
147
|
-
value:
|
|
146
|
+
command: i[0].command,
|
|
147
|
+
value: s.value[0],
|
|
148
148
|
control: c.password,
|
|
149
149
|
rule: ((m = a == null ? void 0 : a.method) == null ? void 0 : m.value) || "alway"
|
|
150
150
|
};
|
|
@@ -153,11 +153,11 @@ const he = { class: "font-[600]" }, ve = { class: "submint" }, be = {
|
|
|
153
153
|
}, S);
|
|
154
154
|
} else {
|
|
155
155
|
const S = [];
|
|
156
|
-
|
|
157
|
-
b && S.push({ object_id: n, command:
|
|
156
|
+
s.value.forEach((b, W) => {
|
|
157
|
+
b && S.push({ object_id: n, command: i[W].command, value: b });
|
|
158
158
|
});
|
|
159
159
|
const _ = {
|
|
160
|
-
block_mapping: "
|
|
160
|
+
block_mapping: "mapping",
|
|
161
161
|
action: "publish_command_plus",
|
|
162
162
|
publishes: S,
|
|
163
163
|
control: c.password,
|
|
@@ -168,7 +168,7 @@ const he = { class: "font-[600]" }, ve = { class: "submint" }, be = {
|
|
|
168
168
|
}, _);
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
|
-
return (t,
|
|
171
|
+
return (t, i) => {
|
|
172
172
|
const a = X, u = Z;
|
|
173
173
|
return z(), E(B, null, [
|
|
174
174
|
p("div", {
|
|
@@ -195,8 +195,8 @@ const he = { class: "font-[600]" }, ve = { class: "submint" }, be = {
|
|
|
195
195
|
style: g({ width: `${f(r).labelWidth}px` })
|
|
196
196
|
}, T(n.name), 5),
|
|
197
197
|
C(a, {
|
|
198
|
-
modelValue:
|
|
199
|
-
"onUpdate:modelValue": (y) =>
|
|
198
|
+
modelValue: s.value[m],
|
|
199
|
+
"onUpdate:modelValue": (y) => s.value[m] = y,
|
|
200
200
|
disabled: U(n)
|
|
201
201
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"]),
|
|
202
202
|
C(a, {
|
|
@@ -218,7 +218,7 @@ const he = { class: "font-[600]" }, ve = { class: "submint" }, be = {
|
|
|
218
218
|
}, 8, ["type", "disabled"])
|
|
219
219
|
])
|
|
220
220
|
], 4),
|
|
221
|
-
|
|
221
|
+
ie(t.$slots, "default", {}, void 0, !0)
|
|
222
222
|
], 4),
|
|
223
223
|
C(de, {
|
|
224
224
|
ref_key: "controlRef",
|
|
@@ -229,7 +229,7 @@ const he = { class: "font-[600]" }, ve = { class: "submint" }, be = {
|
|
|
229
229
|
], 64);
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
|
-
})), je = /* @__PURE__ */ ce(xe, [["__scopeId", "data-v-
|
|
232
|
+
})), je = /* @__PURE__ */ ce(xe, [["__scopeId", "data-v-9fb911b4"]]);
|
|
233
233
|
export {
|
|
234
234
|
je as default
|
|
235
235
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var j=Object.defineProperty,L=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols,F=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,W=Reflect.get;var w=(a,t,o)=>t in a?j(a,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[t]=o,z=(a,t)=>{for(var o in t||(t={}))U.call(t,o)&&w(a,o,t[o]);if(x)for(var o of x(t))$.call(t,o)&&w(a,o,t[o]);return a},A=(a,t)=>L(a,R(t));var T=(a,t,o)=>W(F(a),o,t);var O=(a,t,o)=>new Promise((f,h)=>{var u=s=>{try{r(o.next(s))}catch(d){h(d)}},_=s=>{try{r(o.throw(s))}catch(d){h(d)}},r=s=>s.done?f(s.value):Promise.resolve(s.value).then(u,_);r((o=o.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),H=require("./BaseComponent-DaYX7dUF.cjs"),b=require("./index-OgmTZiO-.cjs"),G=require("./titleStyle-NSnz6cUg.cjs"),E=require("./mix-control-modal-DjG-ChQu.cjs"),I=require("element-plus"),M=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),J={class:"font-[600]"},K={class:"submint"},Y={DEFAULT_ICON:M.DEFAULT_ICON,ACTIVE_ICON:M.ACTIVE_ICON,NAME_CN:"参数控件",NAME_EN:"Parameter Control",ORDER:1,PLATFORM:["pc","screen","mobile"]},Q={bgColor:"#fff",titleColor:"#111",textColor:"#111",titleSize:14,textSize:14,labelWidth:100,radiusSize:8,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.params.verifyMethod",options:"CONTROL_OPTIONS"}},X=[{command:"Control_01",name:"参数一",unit:"",fv:""}],Z=["name","fv","command","unit"],ee=["mosaic"],te={useAlias:!1,multiObject:!1,hideMultiObject:!0},le={DEFAULT:Y,OPTIONS:Q,DATA:X,PARAMS:Z,SOURCE:ee,COMMON:te},oe=e.defineComponent(A(z({},le),{__name:"ctrSet",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""},socketData:{type:Object,default:()=>({})}},setup(a){const t=a,o="--";class f extends H.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),titleSize:this.getOptionValue("titleSize",14),textSize:this.getOptionValue("textSize",12),labelWidth:this.getOptionValue("labelWidth",100),radiusSize:this.getOptionValue("radiusSize",4),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return O(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme()})}onPreview(){return O(this,null,function*(){yield T(f.prototype,this,"onPreview").call(this);const n=yield E.getAuthorized(this.props);r.authorized=n.authorized,r.password=n.password})}setSocketData(n){if(!n)return;const{data:i}=this.props.conf;i.forEach(m=>{const c=this.extractDataValue(n,m.fv);m.value=c!=null?c:o})}}const h=new f(t,"ctrSet");h.setupLifecycle();const u=h.getStyle(),_=e.computed(()=>G.generateTitleStyle(t.conf.options)),r=e.reactive({authorized:{type:"black_list",list:[]},password:""}),s=e.ref([]),d=e.ref(null),C=e.ref(!0),D=e.computed(()=>{var l;return((l=t.conf.data)==null?void 0:l.length)===1}),P=l=>!E.checkPermission(r.authorized,l.command),V=e.computed(()=>s.value.filter(l=>l).length===0);e.computed(()=>{var n,i;const{data:l}=t.conf;return(((n=l==null?void 0:l[0])==null?void 0:n.value)||o)+" "+(((i=l==null?void 0:l[0])==null?void 0:i.unit)||"")});const B=()=>{var i;const{options:l}=t.conf,n=((i=l==null?void 0:l.method)==null?void 0:i.value)||"alway";n==="alway"||n==="once"&&C.value?d.value.modal.visible=!0:N()},N=()=>{var p,y;const{common:l,data:n,options:i}=t.conf,m=JSON.parse(sessionStorage.getItem(b.ALIAS_MAPPING_KEY)||"{}")||{},c=l.useAlias?m[l.object_alias]:l.object_id||t.uid;if(D.value){const S={block_mapping:"mapping",action:"publish_command",object_id:c,command:n[0].command,value:s.value[0],control:r.password,rule:((p=i==null?void 0:i.method)==null?void 0:p.value)||"alway"};b.api.platform(g=>{g.code===200&&(I.ElMessage.success(g.msg),d.value.modal.visible=!1,C.value=!1)},S)}else{const S=[];s.value.forEach((v,q)=>{v&&S.push({object_id:c,command:n[q].command,value:v})});const g={block_mapping:"mapping",action:"publish_command_plus",publishes:S,control:r.password,rule:((y=i==null?void 0:i.method)==null?void 0:y.value)||"alway"};b.api.platform(v=>{v.code===200&&(I.ElMessage.success(v.msg),d.value.modal.visible=!1,C.value=!1)},g)}};return(l,n)=>{const i=k.ElInput,m=k.ElButton;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(u).bgColor,borderRadius:`${e.unref(u).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title flex-1",style:e.normalizeStyle(_.value)},[e.createElementVNode("div",J,e.toDisplayString(a.conf.caption||a.conf.name),1)],4),e.createElementVNode("div",{class:"mix-body",style:e.normalizeStyle({height:e.unref(u).isHideTitle?"100%":"calc(100% - 42px)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.conf.data,(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:"set-item",key:p,style:e.normalizeStyle({fontSize:`${e.unref(u).textSize}px`,color:e.unref(u).textColor})},[e.createElementVNode("div",{class:"item-name",style:e.normalizeStyle({width:`${e.unref(u).labelWidth}px`})},e.toDisplayString(c.name),5),e.createVNode(i,{modelValue:s.value[p],"onUpdate:modelValue":y=>s.value[p]=y,disabled:P(c)},null,8,["modelValue","onUpdate:modelValue","disabled"]),e.createVNode(i,{value:c.value?`${c.value} ${c.unit}`:o,style:{width:"100px","margin-left":"12px"},readonly:""},null,8,["value"])],4))),128)),e.createElementVNode("div",K,[e.createVNode(m,{type:V.value?"default":"primary",onClick:B,disabled:V.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])],4),e.renderSlot(l.$slots,"default",{},void 0,!0)],4),e.createVNode(E._sfc_main,{ref_key:"controlRef",ref:d,onSubmit:N,password:r.password},null,8,["password"])],64)}}})),ae=b._export_sfc(oe,[["__scopeId","data-v-9fb911b4"]]);exports.default=ae;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var V=Object.defineProperty,A=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols,T=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,P=Reflect.get;var k=(
|
|
1
|
+
"use strict";var V=Object.defineProperty,A=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols,T=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,P=Reflect.get;var k=(l,o,t)=>o in l?V(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,z=(l,o)=>{for(var t in o||(o={}))F.call(o,t)&&k(l,t,o[t]);if(b)for(var t of b(o))B.call(o,t)&&k(l,t,o[t]);return l},O=(l,o)=>A(l,M(o));var C=(l,o,t)=>P(T(l),t,o);var w=(l,o,t)=>new Promise((d,u)=>{var f=s=>{try{m(t.next(s))}catch(g){u(g)}},p=s=>{try{m(t.throw(s))}catch(g){u(g)}},m=s=>s.done?d(s.value):Promise.resolve(s.value).then(f,p);m((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const I=require("./BaseComponent-DaYX7dUF.cjs"),h=require("./index-OgmTZiO-.cjs"),D=require("./titleStyle-NSnz6cUg.cjs"),S=require("./mix-control-modal-DjG-ChQu.cjs"),E=require("element-plus"),j="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e开关%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-1145.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M1158.87913,103.913793%20C1160.85974,103.913793%201162.46533,105.51939%201162.46533,107.5%20C1162.46533,109.480615%201160.85974,111.086207%201158.87913,111.086207%20L1158.87913,111.086207%20L1150.05154,111.086207%20C1148.07093,111.086207%201146.46533,109.480613%201146.46533,107.5%20C1146.46533,105.519392%201148.07093,103.913793%201150.05154,103.913793%20L1150.05154,103.913793%20Z%20M1158.87913,105.201149%20L1150.05154,105.201149%20C1148.78192,105.201149%201147.75269,106.230379%201147.75269,107.5%20C1147.75269,108.769625%201148.78192,109.798851%201150.05154,109.798851%20L1150.05154,109.798851%20L1158.87913,109.798851%20C1160.14876,109.798851%201161.17798,108.769628%201161.17798,107.5%20C1161.17798,106.230376%201160.14875,105.201149%201158.87913,105.201149%20L1158.87913,105.201149%20Z%20M1158.60051,106.243295%20C1159.3115,106.243295%201159.88786,106.819654%201159.88786,107.530651%20C1159.88786,108.241648%201159.3115,108.818008%201158.60051,108.818008%20C1157.88951,108.818008%201157.31315,108.241648%201157.31315,107.530651%20C1157.31315,106.819654%201157.88951,106.243295%201158.60051,106.243295%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",R="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e开关%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-1145.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M1158.87913,103.913793%20C1160.85974,103.913793%201162.46533,105.51939%201162.46533,107.5%20C1162.46533,109.480615%201160.85974,111.086207%201158.87913,111.086207%20L1158.87913,111.086207%20L1150.05154,111.086207%20C1148.07093,111.086207%201146.46533,109.480613%201146.46533,107.5%20C1146.46533,105.519392%201148.07093,103.913793%201150.05154,103.913793%20L1150.05154,103.913793%20Z%20M1158.87913,105.201149%20L1150.05154,105.201149%20C1148.78192,105.201149%201147.75269,106.230379%201147.75269,107.5%20C1147.75269,108.769625%201148.78192,109.798851%201150.05154,109.798851%20L1150.05154,109.798851%20L1158.87913,109.798851%20C1160.14876,109.798851%201161.17798,108.769628%201161.17798,107.5%20C1161.17798,106.230376%201160.14875,105.201149%201158.87913,105.201149%20L1158.87913,105.201149%20Z%20M1158.60051,106.243295%20C1159.3115,106.243295%201159.88786,106.819654%201159.88786,107.530651%20C1159.88786,108.241648%201159.3115,108.818008%201158.60051,108.818008%20C1157.88951,108.818008%201157.31315,108.241648%201157.31315,107.530651%20C1157.31315,106.819654%201157.88951,106.243295%201158.60051,106.243295%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",H={class:"mix-body"},q={class:"switch-wrap"},U={class:"name"},$=["onClick"],Z=["onClick"],W="--",G={DEFAULT_ICON:j,ACTIVE_ICON:R,NAME_CN:"开关",NAME_EN:"Switch",ORDER:1,PLATFORM:["pc","screen","mobile"]},J={bgColor:"#fff",titleColor:"#111",textColor:"#111",titleSize:14,textSize:14,itemHeight:32,radiusSize:8,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:h.CONTROL_OPTIONS}},L=[{command:"Control_01",status_name:"状态",status_fv:"",start:"",stop:""}],K=["status_fv","status_name","command","start","stop"],Y=["mosaic"],Q={useAlias:!1,multiObject:!1,hideMultiObject:!0},X={DEFAULT:G,OPTIONS:J,DATA:L,PARAMS:K,SOURCE:Y,COMMON:Q},e1=e.defineComponent(O(z({},X),{__name:"ctrSwitch",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(l){const o=l,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),d=e.reactive({mode:"",item:{},rule:""}),u=e.ref(null),f=e.ref(!0);class p extends I.BaseComponent{extractStyles(){const{options:n}=this.props.conf;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",32),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return w(this,null,function*(){C(p.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:L})}onPreview(){return w(this,null,function*(){yield C(p.prototype,this,"onPreview").call(this);const n=yield S.getAuthorized(this.props);t.authorized=n.authorized,t.password=n.password})}setSocketData(n){if(!n)return;const{data:i}=this.props.conf;i.forEach(a=>{const r=this.extractDataValue(n,a.status_fv);a.value=r!=null?r:W})}}const m=new p(o,"ctrSwitch");m.setupLifecycle();const s=m.getStyle(),g=e.computed(()=>D.generateTitleStyle(o.conf.options)),v=c=>!S.checkPermission(t.authorized,c.command),_=(c,n)=>{var r;if(v(n)){E.ElMessage.warning("无权限操作");return}const{options:i}=o.conf;let a=((r=i==null?void 0:i.method)==null?void 0:r.value)||"alway";d.mode=c,d.item=n,d.rule=a,a==="alway"||a==="once"&&f.value?u.value.modal.visible=!0:x()},x=()=>{const{mode:c,item:n,rule:i}=d,{common:a}=o.conf,r=JSON.parse(sessionStorage.getItem(h.ALIAS_MAPPING_KEY)||"{}");let N={block_mapping:"mapping",action:"publish_command",object_id:a.useAlias?r[a.object_alias]:a.object_id||o.uid,command:n.command,value:n[c],rule:i,control:t.password};h.api.platform(y=>{y.code===200&&(E.ElMessage.success(y.msg),u.value.modal.visible=!1,f.value=!1)},N)};return(c,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(s).bgColor,borderRadius:`${e.unref(s).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(g.value)},e.toDisplayString(l.conf.caption||l.conf.name),5),e.createElementVNode("div",H,[e.createElementVNode("div",q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.data,(i,a)=>(e.openBlock(),e.createElementBlock("div",{class:"switch-item",key:a,style:e.normalizeStyle({height:`${e.unref(s).itemHeight}px`,backgroundColor:e.unref(s).bgColor,fontSize:`${e.unref(s).textSize}px`,color:e.unref(s).textColor})},[e.createElementVNode("div",U,e.toDisplayString(i.status_name),1),e.createElementVNode("div",{class:e.normalizeClass(["circle-on",{"active-on":String(i.value)&&String(i.value)===i.start}]),style:e.normalizeStyle({cursor:v(i)?"not-allowed":"pointer"}),onClick:r=>_("start",i)},null,14,$),e.createElementVNode("div",{class:e.normalizeClass(["circle-off",{"active-off":String(i.value)&&String(i.value)===i.stop}]),style:e.normalizeStyle({cursor:v(i)?"not-allowed":"pointer"}),onClick:r=>_("stop",i)},null,14,Z)],4))),128))])]),e.renderSlot(c.$slots,"default",{},void 0,!0)],4),e.createVNode(S._sfc_main,{ref_key:"controlRef",ref:u,onSubmit:x,password:t.password},null,8,["password"])],64))}})),t1=h._export_sfc(e1,[["__scopeId","data-v-c009fc5f"]]);exports.default=t1;
|
|
@@ -13,34 +13,34 @@ var C = (s, e, t) => $(j(s), t, e);
|
|
|
13
13
|
var _ = (s, e, t) => new Promise((d, u) => {
|
|
14
14
|
var v = (i) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
u(
|
|
16
|
+
g(t.next(i));
|
|
17
|
+
} catch (f) {
|
|
18
|
+
u(f);
|
|
19
19
|
}
|
|
20
20
|
}, p = (i) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
u(
|
|
22
|
+
g(t.throw(i));
|
|
23
|
+
} catch (f) {
|
|
24
|
+
u(f);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, g = (i) => i.done ? d(i.value) : Promise.resolve(i.value).then(v, p);
|
|
27
|
+
g((t = t.apply(s, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import { defineComponent as Z, reactive as M, ref as T, computed as W, openBlock as S, createElementBlock as x, Fragment as E, createElementVNode as
|
|
29
|
+
import { defineComponent as Z, reactive as M, ref as T, computed as W, openBlock as S, createElementBlock as x, Fragment as E, createElementVNode as r, normalizeStyle as h, unref as m, toDisplayString as V, renderList as G, normalizeClass as F, renderSlot as J, createVNode as K } from "vue";
|
|
30
30
|
import "html2canvas";
|
|
31
|
-
import { B as Y } from "./BaseComponent-
|
|
32
|
-
import { V as q, A as Q, a as X, _ as t1 } from "./index-
|
|
31
|
+
import { B as Y } from "./BaseComponent-CEp8NJiX.js";
|
|
32
|
+
import { V as q, A as Q, a as X, _ as t1 } from "./index-CqVPeq0-.js";
|
|
33
33
|
import { g as e1 } from "./titleStyle-BT5GlpAb.js";
|
|
34
|
-
import { _ as o1, g as s1, c as i1 } from "./mix-control-modal-
|
|
34
|
+
import { _ as o1, g as s1, c as i1 } from "./mix-control-modal-DITf1VAp.js";
|
|
35
35
|
import { ElMessage as N } from "element-plus";
|
|
36
|
-
const l1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e开关%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-1145.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M1158.87913,103.913793%20C1160.85974,103.913793%201162.46533,105.51939%201162.46533,107.5%20C1162.46533,109.480615%201160.85974,111.086207%201158.87913,111.086207%20L1158.87913,111.086207%20L1150.05154,111.086207%20C1148.07093,111.086207%201146.46533,109.480613%201146.46533,107.5%20C1146.46533,105.519392%201148.07093,103.913793%201150.05154,103.913793%20L1150.05154,103.913793%20Z%20M1158.87913,105.201149%20L1150.05154,105.201149%20C1148.78192,105.201149%201147.75269,106.230379%201147.75269,107.5%20C1147.75269,108.769625%201148.78192,109.798851%201150.05154,109.798851%20L1150.05154,109.798851%20L1158.87913,109.798851%20C1160.14876,109.798851%201161.17798,108.769628%201161.17798,107.5%20C1161.17798,106.230376%201160.14875,105.201149%201158.87913,105.201149%20L1158.87913,105.201149%20Z%20M1158.60051,106.243295%20C1159.3115,106.243295%201159.88786,106.819654%201159.88786,107.530651%20C1159.88786,108.241648%201159.3115,108.818008%201158.60051,108.818008%20C1157.88951,108.818008%201157.31315,108.241648%201157.31315,107.530651%20C1157.31315,106.819654%201157.88951,106.243295%201158.60051,106.243295%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", a1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e开关%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-1145.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M1158.87913,103.913793%20C1160.85974,103.913793%201162.46533,105.51939%201162.46533,107.5%20C1162.46533,109.480615%201160.85974,111.086207%201158.87913,111.086207%20L1158.87913,111.086207%20L1150.05154,111.086207%20C1148.07093,111.086207%201146.46533,109.480613%201146.46533,107.5%20C1146.46533,105.519392%201148.07093,103.913793%201150.05154,103.913793%20L1150.05154,103.913793%20Z%20M1158.87913,105.201149%20L1150.05154,105.201149%20C1148.78192,105.201149%201147.75269,106.230379%201147.75269,107.5%20C1147.75269,108.769625%201148.78192,109.798851%201150.05154,109.798851%20L1150.05154,109.798851%20L1158.87913,109.798851%20C1160.14876,109.798851%201161.17798,108.769628%201161.17798,107.5%20C1161.17798,106.230376%201160.14875,105.201149%201158.87913,105.201149%20L1158.87913,105.201149%20Z%20M1158.60051,106.243295%20C1159.3115,106.243295%201159.88786,106.819654%201159.88786,107.530651%20C1159.88786,108.241648%201159.3115,108.818008%201158.60051,108.818008%20C1157.88951,108.818008%201157.31315,108.241648%201157.31315,107.530651%20C1157.31315,106.819654%201157.88951,106.243295%201158.60051,106.243295%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", n1 = { class: "mix-body" },
|
|
36
|
+
const l1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e开关%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-1145.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M1158.87913,103.913793%20C1160.85974,103.913793%201162.46533,105.51939%201162.46533,107.5%20C1162.46533,109.480615%201160.85974,111.086207%201158.87913,111.086207%20L1158.87913,111.086207%20L1150.05154,111.086207%20C1148.07093,111.086207%201146.46533,109.480613%201146.46533,107.5%20C1146.46533,105.519392%201148.07093,103.913793%201150.05154,103.913793%20L1150.05154,103.913793%20Z%20M1158.87913,105.201149%20L1150.05154,105.201149%20C1148.78192,105.201149%201147.75269,106.230379%201147.75269,107.5%20C1147.75269,108.769625%201148.78192,109.798851%201150.05154,109.798851%20L1150.05154,109.798851%20L1158.87913,109.798851%20C1160.14876,109.798851%201161.17798,108.769628%201161.17798,107.5%20C1161.17798,106.230376%201160.14875,105.201149%201158.87913,105.201149%20L1158.87913,105.201149%20Z%20M1158.60051,106.243295%20C1159.3115,106.243295%201159.88786,106.819654%201159.88786,107.530651%20C1159.88786,108.241648%201159.3115,108.818008%201158.60051,108.818008%20C1157.88951,108.818008%201157.31315,108.241648%201157.31315,107.530651%20C1157.31315,106.819654%201157.88951,106.243295%201158.60051,106.243295%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", a1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e开关%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-1145.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M1158.87913,103.913793%20C1160.85974,103.913793%201162.46533,105.51939%201162.46533,107.5%20C1162.46533,109.480615%201160.85974,111.086207%201158.87913,111.086207%20L1158.87913,111.086207%20L1150.05154,111.086207%20C1148.07093,111.086207%201146.46533,109.480613%201146.46533,107.5%20C1146.46533,105.519392%201148.07093,103.913793%201150.05154,103.913793%20L1150.05154,103.913793%20Z%20M1158.87913,105.201149%20L1150.05154,105.201149%20C1148.78192,105.201149%201147.75269,106.230379%201147.75269,107.5%20C1147.75269,108.769625%201148.78192,109.798851%201150.05154,109.798851%20L1150.05154,109.798851%20L1158.87913,109.798851%20C1160.14876,109.798851%201161.17798,108.769628%201161.17798,107.5%20C1161.17798,106.230376%201160.14875,105.201149%201158.87913,105.201149%20L1158.87913,105.201149%20Z%20M1158.60051,106.243295%20C1159.3115,106.243295%201159.88786,106.819654%201159.88786,107.530651%20C1159.88786,108.241648%201159.3115,108.818008%201158.60051,108.818008%20C1157.88951,108.818008%201157.31315,108.241648%201157.31315,107.530651%20C1157.31315,106.819654%201157.88951,106.243295%201158.60051,106.243295%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", n1 = { class: "mix-body" }, c1 = { class: "switch-wrap" }, r1 = { class: "name" }, d1 = ["onClick"], u1 = ["onClick"], p1 = "--", g1 = {
|
|
37
37
|
DEFAULT_ICON: l1,
|
|
38
38
|
ACTIVE_ICON: a1,
|
|
39
39
|
NAME_CN: "开关",
|
|
40
40
|
NAME_EN: "Switch",
|
|
41
41
|
ORDER: 1,
|
|
42
42
|
PLATFORM: ["pc", "screen", "mobile"]
|
|
43
|
-
},
|
|
43
|
+
}, m1 = {
|
|
44
44
|
bgColor: "#fff",
|
|
45
45
|
titleColor: "#111",
|
|
46
46
|
textColor: "#111",
|
|
@@ -63,11 +63,11 @@ const l1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
63
63
|
label: "component.switch.method",
|
|
64
64
|
options: q
|
|
65
65
|
}
|
|
66
|
-
}, P = [{ command: "Control_01", status_name: "状态", status_fv: "", start: "", stop: "" }],
|
|
66
|
+
}, P = [{ command: "Control_01", status_name: "状态", status_fv: "", start: "", stop: "" }], f1 = ["status_fv", "status_name", "command", "start", "stop"], h1 = ["mosaic"], v1 = {
|
|
67
67
|
useAlias: !1,
|
|
68
68
|
multiObject: !1,
|
|
69
69
|
hideMultiObject: !0
|
|
70
|
-
}, w1 = { DEFAULT:
|
|
70
|
+
}, w1 = { DEFAULT: g1, OPTIONS: m1, DATA: P, PARAMS: f1, SOURCE: h1, COMMON: v1 }, C1 = /* @__PURE__ */ Z(A(z({}, w1), {
|
|
71
71
|
__name: "ctrSwitch",
|
|
72
72
|
props: {
|
|
73
73
|
conf: {
|
|
@@ -135,9 +135,9 @@ const l1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
const i =
|
|
138
|
+
const g = new p(e, "ctrSwitch");
|
|
139
|
+
g.setupLifecycle();
|
|
140
|
+
const i = g.getStyle(), f = W(() => e1(e.conf.options)), w = (c) => !i1(t.authorized, c.command), b = (c, l) => {
|
|
141
141
|
var n;
|
|
142
142
|
if (w(l)) {
|
|
143
143
|
N.warning("无权限操作");
|
|
@@ -145,15 +145,15 @@ const l1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
145
145
|
}
|
|
146
146
|
const { options: o } = e.conf;
|
|
147
147
|
let a = ((n = o == null ? void 0 : o.method) == null ? void 0 : n.value) || "alway";
|
|
148
|
-
d.mode =
|
|
148
|
+
d.mode = c, d.item = l, d.rule = a, a === "alway" || a === "once" && v.value ? u.value.modal.visible = !0 : y();
|
|
149
149
|
}, y = () => {
|
|
150
|
-
const { mode:
|
|
150
|
+
const { mode: c, item: l, rule: o } = d, { common: a } = e.conf, n = JSON.parse(sessionStorage.getItem(Q) || "{}");
|
|
151
151
|
let I = {
|
|
152
|
-
block_mapping: "
|
|
152
|
+
block_mapping: "mapping",
|
|
153
153
|
action: "publish_command",
|
|
154
154
|
object_id: a.useAlias ? n[a.object_alias] : a.object_id || e.uid,
|
|
155
155
|
command: l.command,
|
|
156
|
-
value: l[
|
|
156
|
+
value: l[c],
|
|
157
157
|
rule: o,
|
|
158
158
|
control: t.password
|
|
159
159
|
};
|
|
@@ -161,34 +161,34 @@ const l1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
161
161
|
O.code === 200 && (N.success(O.msg), u.value.modal.visible = !1, v.value = !1);
|
|
162
162
|
}, I);
|
|
163
163
|
};
|
|
164
|
-
return (
|
|
165
|
-
|
|
164
|
+
return (c, l) => (S(), x(E, null, [
|
|
165
|
+
r("div", {
|
|
166
166
|
class: "mix-component",
|
|
167
|
-
style: h({ background:
|
|
167
|
+
style: h({ background: m(i).bgColor, borderRadius: `${m(i).radiusSize}px` })
|
|
168
168
|
}, [
|
|
169
|
-
|
|
169
|
+
r("div", {
|
|
170
170
|
class: "mix-title",
|
|
171
|
-
style: h(
|
|
171
|
+
style: h(f.value)
|
|
172
172
|
}, V(s.conf.caption || s.conf.name), 5),
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
r("div", n1, [
|
|
174
|
+
r("div", c1, [
|
|
175
175
|
(S(!0), x(E, null, G(s.conf.data, (o, a) => (S(), x("div", {
|
|
176
176
|
class: "switch-item",
|
|
177
177
|
key: a,
|
|
178
178
|
style: h({
|
|
179
|
-
height: `${
|
|
180
|
-
backgroundColor:
|
|
181
|
-
fontSize: `${
|
|
182
|
-
color:
|
|
179
|
+
height: `${m(i).itemHeight}px`,
|
|
180
|
+
backgroundColor: m(i).bgColor,
|
|
181
|
+
fontSize: `${m(i).textSize}px`,
|
|
182
|
+
color: m(i).textColor
|
|
183
183
|
})
|
|
184
184
|
}, [
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
r("div", r1, V(o.status_name), 1),
|
|
186
|
+
r("div", {
|
|
187
187
|
class: F(["circle-on", { "active-on": String(o.value) && String(o.value) === o.start }]),
|
|
188
188
|
style: h({ cursor: w(o) ? "not-allowed" : "pointer" }),
|
|
189
189
|
onClick: (n) => b("start", o)
|
|
190
190
|
}, null, 14, d1),
|
|
191
|
-
|
|
191
|
+
r("div", {
|
|
192
192
|
class: F(["circle-off", { "active-off": String(o.value) && String(o.value) === o.stop }]),
|
|
193
193
|
style: h({ cursor: w(o) ? "not-allowed" : "pointer" }),
|
|
194
194
|
onClick: (n) => b("stop", o)
|
|
@@ -196,7 +196,7 @@ const l1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
196
196
|
], 4))), 128))
|
|
197
197
|
])
|
|
198
198
|
]),
|
|
199
|
-
J(
|
|
199
|
+
J(c.$slots, "default", {}, void 0, !0)
|
|
200
200
|
], 4),
|
|
201
201
|
K(o1, {
|
|
202
202
|
ref_key: "controlRef",
|
|
@@ -206,7 +206,7 @@ const l1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
206
206
|
}, null, 8, ["password"])
|
|
207
207
|
], 64));
|
|
208
208
|
}
|
|
209
|
-
})), A1 = /* @__PURE__ */ t1(C1, [["__scopeId", "data-v-
|
|
209
|
+
})), A1 = /* @__PURE__ */ t1(C1, [["__scopeId", "data-v-c009fc5f"]]);
|
|
210
210
|
export {
|
|
211
211
|
A1 as default
|
|
212
212
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var he=Object.defineProperty,Ce=Object.defineProperties;var _e=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var Be=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var H=(v,d,c)=>d in v?he(v,d,{enumerable:!0,configurable:!0,writable:!0,value:c}):v[d]=c,W=(v,d)=>{for(var c in d||(d={}))Be.call(d,c)&&H(v,c,d[c]);if(G)for(var c of G(d))Ne.call(d,c)&&H(v,c,d[c]);return v},Q=(v,d)=>Ce(v,_e(d));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/dialog/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/input/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");require("element-plus/es/components/button/style/css");const e=require("vue");require("html2canvas");const we=require("./BaseComponent-bzb58Hhs.cjs"),Ee=require("./index-6QhTSPkL.cjs"),Z=require("./ele-lin-icon-Dke_1AmT.cjs"),xe={key:0,class:"edit-placeholder"},De={class:"mgmt-header"},Te={class:"breadcrumb"},Se={class:"crumb-active"},Ae={class:"header-actions"},ze={class:"mgmt-tabs"},Me=["onClick"],Ue={class:"mgmt-filter-bar"},Ie={class:"filter-label"},Fe={class:"table-area"},Oe={class:"pagination-bar"},Le={class:"modal-form"},qe={class:"form-label"},Pe={class:"dialog-footer"},Re={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"基础数据管理",NAME_EN:"Data Management",ORDER:14,PLATFORM:["pc","screen"]},Ye={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},fontSize:{value:13,type:"number",label:"字体大小",min:10,max:20},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},je=[],Xe=["object_id","name","fv","fvDeviceName"],$e=["mosaic"],Ge={useAlias:!1,multiObject:!1,source:"mosaic"},He={DEFAULT:Re,OPTIONS:Ye,DATA:je,PARAMS:Xe,SOURCE:$e,COMMON:Ge},We=e.defineComponent(Q(W({},He),{__name:"dataManagement",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(v){const d=v,c=["时间","安装日期","下载时间","采集时间","设置日期"],E=["北帮","南帮","东帮","西帮","中央区"],M=["陈晓晓","王大力","李工程师","张三"],F=["全部权限","仅数据查询权限","人工录入权限","基础数据管理权限"],O=["国产雷达","进口雷达","GNSS","锚索应力计","土压力计","水位计","流量计","裂缝计","震动计"],L={partition:{title:"分区管理",filters:[{label:"分区名称",key:"名称",type:"input"},{label:"操作人员",key:"人员",type:"select",options:["全部",...M]}],columns:["时间","人员","名称","坐标"],addFields:["时间","人员","名称","坐标"]},device:{title:"设备管理",filters:[{label:"设备编号",key:"编号",type:"input"},{label:"所属区域",key:"所属区域",type:"select",options:["全部",...E]},{label:"设备状态",key:"状态",type:"select",options:["全部","正常","离线"]},{label:"设备类型",key:"类型",type:"select",options:["全部",...O]}],columns:["类型","编号","型号","安装日期","厂商","安装位置","所属区域","所属监测线"],addFields:["类型","编号","型号","安装日期","厂商","安装位置","所属区域","所属监测线","状态"]},radar:{title:"雷达扫描区域管理",filters:[{label:"区域编号",key:"编号",type:"input"},{label:"操作人员",key:"人员",type:"select",options:["全部",...M]},{label:"扫描区域",key:"扫描区域",type:"select",options:["全部",...E]}],columns:["时间","人员","编号","文件名称","圈定位置","扫描区域"],addFields:["时间","人员","编号","文件名称","圈定位置","扫描区域"]},virtual_point:{title:"雷达虚拟设置管理",filters:[{label:"点位编号",key:"编号",type:"input"},{label:"所属区域",key:"所属区域",type:"select",options:["全部",...E]}],columns:["类型","编号","设置日期","所属雷达","设置位置","所属区域","所属监测线","状态"],addFields:["类型","编号","设置日期","所属雷达","设置位置","所属区域","所属监测线","状态"]},satellite:{title:"卫星数据管理",filters:[{label:"数据编号",key:"数据编号",type:"input"},{label:"卫星类型",key:"卫星类型",type:"input"}],columns:["ID","数据名称","数据编号","下载时间","数据大小(MB)","卫星类型"],addFields:["ID","数据名称","数据编号","下载时间","数据大小(MB)","卫星类型"]},map_info:{title:"地图信息管理",filters:[{label:"数据类型",key:"数据类型",type:"select",options:["全部","正射影像","倾斜摄影"]},{label:"采集时间",key:"采集时间",type:"datetime-local"}],columns:["ID","数据名称","数据编号","数据类型","采集时间","覆盖面积(km²)"],addFields:["ID","数据名称","数据编号","数据类型","采集时间","覆盖面积(km²)"]},permission:{title:"权限管理",filters:[{label:"账号名称",key:"用户名",type:"input"},{label:"角色权限",key:"角色权限",type:"select",options:["全部",...F]},{label:"授权状态",key:"授权状态",type:"select",options:["全部","已授权","未授权"]}],columns:["用户ID","用户名","角色权限","授权状态"],addFields:["用户ID","用户名","角色权限","授权状态"]}},J=Object.entries(L).map(([a,l])=>({key:a,title:l.title})),K=()=>({partition:[{时间:"2026-01-19T20:00",人员:"陈晓晓",名称:"北帮一区",坐标:"X:1200, Y:300"}],device:[{类型:"GNSS",编号:"G001",型号:"T9-Pro",安装日期:"2025-12-01T10:00",厂商:"中海达",安装位置:"E:103.5, N:30.5",所属区域:"南帮",所属监测线:"S1",状态:"正常"}],radar:[{时间:"2026-01-15T09:00",人员:"陈晓晓",编号:"RAD-AREA-001",文件名称:"20260115_东帮1区.las",圈定位置:"X:2450.55, Y:1300.12, M:1326.56, N:1256.09......",扫描区域:"东帮"},{时间:"2026-01-17T14:30",人员:"王大力",编号:"RAD-AREA-002",文件名称:"20260117_西帮1区.las",圈定位置:"X:2100.20, Y:1150.45, M:1326.56, N:1256.09......",扫描区域:"西帮"}],virtual_point:[{类型:"虚拟点",编号:"VP-001",设置日期:"2026-01-21T09:30",所属雷达:"RAD-AREA-001",设置位置:"X:500, Y:600, Z:200",所属区域:"北帮",所属监测线:"X1-1",状态:"正常"},{类型:"虚拟面域",编号:"VA-205",设置日期:"2026-01-22T14:15",所属雷达:"RAD-AREA-002",设置位置:"X:1200, Y:800 (覆盖范围)",所属区域:"南帮",所属监测线:"无",状态:"正常"}],satellite:[{ID:"SAT-001",数据名称:"区域A遥感影像",数据编号:"SAT-2023-001",下载时间:"2023-06-10T09:30","数据大小(MB)":"256.5",卫星类型:"高分七号"},{ID:"SAT-002",数据名称:"区域B地形数据",数据编号:"SAT-2023-002",下载时间:"2023-06-15T14:20","数据大小(MB)":"420.3",卫星类型:"资源三号"}],map_info:[{ID:"MAP-001",数据名称:"区域A正射影像",数据编号:"MAP-2023-001",数据类型:"正射影像",采集时间:"2023-05-20T08:00","覆盖面积(km²)":"5.2"},{ID:"MAP-002",数据名称:"区域B倾斜摄影",数据编号:"MAP-2023-002",数据类型:"倾斜摄影",采集时间:"2023-05-25T10:15","覆盖面积(km²)":"3.8"}],permission:[{用户ID:"admin",用户名:"系统管理员",角色权限:"超级管理员",授权状态:"已授权"}]});class ee extends we.BaseComponent{extractStyles(){var m,w,_,C,A,z;const l=(m=this.props.conf)==null?void 0:m.options,s=((w=l==null?void 0:l.linkChannel)==null?void 0:w.value)||"gnss",r=((_=l==null?void 0:l.customChannel)==null?void 0:_.value)||"";return{bgColor:((C=l==null?void 0:l.bgColor)==null?void 0:C.value)||"#ffffff",textColor:((A=l==null?void 0:l.textColor)==null?void 0:A.value)||"#333333",fontSize:((z=l==null?void 0:l.fontSize)==null?void 0:z.value)||13,linkChannel:s==="custom"&&r?r:s}}onLinkEvent(l){}}const x=new ee(d,"dataManagement");x.setupLifecycle();const D=x.getStyle(),i=e.ref("partition"),y=e.computed(()=>L[i.value]),le=e.computed(()=>y.value.columns),k=e.ref({}),p=e.reactive({}),f=e.ref(null),V=e.ref([]),g=e.ref(1),T=10,U=e.ref(null),h=e.ref(!1),u=e.ref("add"),B=e.ref(-1),n=e.reactive({}),N=e.ref(!1),S=e.ref(!1),te=e.computed(()=>u.value==="add"?"新增"+y.value.title:u.value==="edit"?"编辑数据":"详情查看"),ae=e.computed(()=>{var a,l;return(l=(a=f.value)!=null?a:k.value[i.value])!=null?l:[]}),q=e.computed(()=>ae.value),P=e.computed(()=>{const a=(g.value-1)*T;return q.value.slice(a,a+T)}),oe=a=>c.includes(a),R=()=>{const a=new Date,l=a.getTimezoneOffset()*6e4;return new Date(a.getTime()-l).toISOString().slice(0,16)},ne=(a,l)=>a?c.includes(l)?a.replace("T"," "):a:"--",se=a=>["圈定位置","安装位置","设置位置"].includes(a)?200:["文件名称","数据名称"].includes(a)||c.includes(a)?160:110,re=a=>["坐标","安装位置","圈定位置","设置位置"].includes(a)?`请输入${a},每个坐标用,隔开`:`请输入${a}`,Y=a=>{const l=P.value[a];return k.value[i.value].indexOf(l)},ie=a=>{i.value=a,V.value=[],f.value=null,g.value=1,Object.keys(p).forEach(l=>delete p[l])},ue=()=>{const a=k.value[i.value];f.value=a.filter(l=>Object.keys(p).every(s=>{const r=p[s];return!r||r==="全部"?!0:l[s]?String(l[s]).toLowerCase().includes(r.toLowerCase()):!1})),V.value=[],g.value=1},de=()=>{Object.keys(p).forEach(a=>delete p[a]),f.value=null,g.value=1},ce=a=>{V.value=a},me=()=>{if(!V.value.length)return;const a=new Set(V.value);k.value[i.value]=k.value[i.value].filter(l=>!a.has(l)),f.value=null,V.value=[]},I=a=>{if(Object.keys(n).forEach(l=>delete n[l]),a!==void 0&&a>=0){const l=k.value[i.value][a];y.value.addFields.forEach(s=>{n[s]=l[s]||""})}else y.value.addFields.forEach(l=>{n[l]=c.includes(l)?R():""})},pe=()=>{u.value="add",B.value=-1,I(),N.value=!1,S.value=!1,h.value=!0},ve=a=>{u.value="edit",B.value=a,I(a),j(),h.value=!0},ke=a=>{u.value="view",B.value=a,I(a),j(),h.value=!0},j=()=>{i.value==="device"&&X(n.类型),i.value==="virtual_point"&&$(n.类型)},X=a=>{N.value=!!a&&a.includes("雷达"),N.value&&(n.所属监测线="")},$=a=>{S.value=a==="虚拟面域",S.value&&(n.所属监测线="无")},ye=()=>{const a={};y.value.addFields.forEach(l=>{a[l]=n[l]||""}),B.value>=0?k.value[i.value][B.value]=a:k.value[i.value].push(a),f.value=null,h.value=!1},Ve=()=>{var a;(a=U.value)==null||a.click()},be=()=>{var a;(a=U.value)==null||a.click()},fe=a=>{var r;if(!((r=a.target.files)==null?void 0:r[0]))return;const s={};y.value.addFields.forEach(m=>{s[m]=c.includes(m)?R():"导入-"+m}),k.value[i.value].push(s),f.value=null,a.target.value=""};return e.onMounted(()=>{x.init(),d.mode!=="edit"&&(k.value=K())}),e.onUnmounted(()=>{x.cleanup()}),(a,l)=>{const s=b.ElButton,r=b.ElOption,m=b.ElSelect,w=b.ElDatePicker,_=b.ElInput,C=b.ElTableColumn,A=b.ElTable,z=b.ElPagination,ge=b.ElDialog;return e.openBlock(),e.createElementBlock("div",{class:"data-mgmt",style:e.normalizeStyle({backgroundColor:e.unref(D).bgColor,color:e.unref(D).textColor,fontSize:e.unref(D).fontSize+"px"})},[d.mode==="edit"?(e.openBlock(),e.createElementBlock("div",xe,[...l[3]||(l[3]=[e.createElementVNode("div",{class:"placeholder-icon"},"📋",-1),e.createElementVNode("div",{class:"placeholder-title"},"基础数据管理",-1),e.createElementVNode("div",{class:"placeholder-desc"},"包含7个管理模块:分区 / 设备 / 雷达扫描区域 / 雷达虚拟设置 / 卫星数据 / 地图信息 / 权限",-1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",De,[e.createElementVNode("div",Te,[l[4]||(l[4]=e.createTextVNode("基础数据管理 / ",-1)),e.createElementVNode("span",Se,e.toDisplayString(y.value.title),1)]),e.createElementVNode("div",Ae,[e.createVNode(s,{size:"small",type:"primary",onClick:pe},{default:e.withCtx(()=>[...l[5]||(l[5]=[e.createTextVNode("+ 新增",-1)])]),_:1}),e.createVNode(s,{size:"small",type:"success",onClick:Ve},{default:e.withCtx(()=>[...l[6]||(l[6]=[e.createTextVNode("📥 导入数据",-1)])]),_:1}),e.createVNode(s,{size:"small",type:"danger",disabled:!V.value.length,onClick:me},{default:e.withCtx(()=>[e.createTextVNode(" 🗑️ 批量删除"+e.toDisplayString(V.value.length?` (${V.value.length})`:""),1)]),_:1},8,["disabled"]),e.createElementVNode("input",{ref_key:"importInput",ref:U,type:"file",style:{display:"none"},onChange:fe},null,544)])]),e.createElementVNode("div",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(J),t=>(e.openBlock(),e.createElementBlock("div",{key:t.key,class:e.normalizeClass(["tab-item",{active:i.value===t.key}]),onClick:o=>ie(t.key)},e.toDisplayString(t.title),11,Me))),128))]),e.createElementVNode("div",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.filters,t=>(e.openBlock(),e.createElementBlock("div",{key:t.key,class:"filter-group"},[e.createElementVNode("span",Ie,e.toDisplayString(t.label)+":",1),t.type==="select"?(e.openBlock(),e.createBlock(m,{key:0,modelValue:p[t.key],"onUpdate:modelValue":o=>p[t.key]=o,size:"small",placeholder:"全部",clearable:"",style:{width:"140px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((t.options||[]).filter(o=>o!=="全部"),o=>(e.openBlock(),e.createBlock(r,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):t.type==="datetime-local"?(e.openBlock(),e.createBlock(w,{key:1,modelValue:p[t.key],"onUpdate:modelValue":o=>p[t.key]=o,type:"datetime",size:"small",placeholder:"选择时间",style:{width:"200px"},"value-format":"YYYY-MM-DDTHH:mm"},null,8,["modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(_,{key:2,modelValue:p[t.key],"onUpdate:modelValue":o=>p[t.key]=o,size:"small",placeholder:"输入搜索...",style:{width:"140px"},clearable:""},null,8,["modelValue","onUpdate:modelValue"]))]))),128)),e.createVNode(s,{size:"small",type:"primary",onClick:ue},{default:e.withCtx(()=>[...l[7]||(l[7]=[e.createTextVNode("查询",-1)])]),_:1}),e.createVNode(s,{size:"small",onClick:de},{default:e.withCtx(()=>[...l[8]||(l[8]=[e.createTextVNode("重置",-1)])]),_:1})]),e.createElementVNode("div",Fe,[e.createVNode(A,{data:P.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},onSelectionChange:ce},{default:e.withCtx(()=>[e.createVNode(C,{type:"selection",width:"40"}),e.createVNode(C,{label:"序号",width:"60",align:"center"},{default:e.withCtx(({$index:t})=>[e.createTextVNode(e.toDisplayString((g.value-1)*T+t+1),1)]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(le.value,t=>(e.openBlock(),e.createBlock(C,{key:t,prop:t,label:t,"min-width":se(t),align:"center"},{default:e.withCtx(({row:o})=>[e.createTextVNode(e.toDisplayString(ne(o[t],t)),1)]),_:2},1032,["prop","label","min-width"]))),128)),e.createVNode(C,{label:"操作","min-width":"120",align:"center",fixed:"right"},{default:e.withCtx(({$index:t})=>[e.createVNode(s,{link:"",type:"primary",size:"small",onClick:o=>ve(Y(t))},{default:e.withCtx(()=>[...l[9]||(l[9]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"]),e.createVNode(s,{link:"",type:"primary",size:"small",onClick:o=>ke(Y(t))},{default:e.withCtx(()=>[...l[10]||(l[10]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]),e.createElementVNode("div",Oe,[e.createVNode(z,{small:"",layout:"prev, pager, next",total:q.value.length,"page-size":T,"current-page":g.value,"onUpdate:currentPage":l[0]||(l[0]=t=>g.value=t)},null,8,["total","current-page"])])]),e.createVNode(ge,{modelValue:h.value,"onUpdate:modelValue":l[2]||(l[2]=t=>h.value=t),title:te.value,width:"520px",top:"8vh","close-on-click-modal":!1,"destroy-on-close":"",style:e.normalizeStyle({fontSize:e.unref(D).fontSize+"px"}),class:"data-mgmt-dialog"},{footer:e.withCtx(()=>[e.createElementVNode("div",Pe,[u.value!=="view"?(e.openBlock(),e.createBlock(s,{key:0,size:"small",type:"success",onClick:be},{default:e.withCtx(()=>[...l[11]||(l[11]=[e.createTextVNode("导入数据",-1)])]),_:1})):e.createCommentVNode("",!0),l[14]||(l[14]=e.createElementVNode("span",{style:{flex:"1"}},null,-1)),e.createVNode(s,{size:"small",onClick:l[1]||(l[1]=t=>h.value=!1)},{default:e.withCtx(()=>[...l[12]||(l[12]=[e.createTextVNode("取消",-1)])]),_:1}),u.value!=="view"?(e.openBlock(),e.createBlock(s,{key:1,size:"small",type:"primary",onClick:ye},{default:e.withCtx(()=>[...l[13]||(l[13]=[e.createTextVNode("确定",-1)])]),_:1})):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.addFields,t=>(e.openBlock(),e.createElementBlock("div",{key:t,class:"form-item"},[e.createElementVNode("label",qe,e.toDisplayString(t),1),oe(t)?(e.openBlock(),e.createBlock(w,{key:0,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,type:"datetime",size:"small",disabled:u.value==="view",style:{width:"100%"},"value-format":"YYYY-MM-DDTHH:mm"},null,8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="device"&&t==="类型"?(e.openBlock(),e.createBlock(m,{key:1,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"},onChange:X},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(O,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="virtual_point"&&t==="类型"?(e.openBlock(),e.createBlock(m,{key:2,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"},onChange:$},{default:e.withCtx(()=>[e.createVNode(r,{label:"虚拟点",value:"虚拟点"}),e.createVNode(r,{label:"虚拟面域",value:"虚拟面域"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="virtual_point"&&t==="所属监测线"?(e.openBlock(),e.createBlock(m,{key:3,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view"||S.value,style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(r,{label:"无",value:"无"}),e.createVNode(r,{label:"X1-1",value:"X1-1"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="状态"||t==="授权状态"?(e.openBlock(),e.createBlock(m,{key:4,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==="状态"?["正常","离线"]:["已授权","未授权"],o=>(e.openBlock(),e.createBlock(r,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])):t==="所属区域"||t==="扫描区域"?(e.openBlock(),e.createBlock(m,{key:5,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(E,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="人员"?(e.openBlock(),e.createBlock(m,{key:6,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(M,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="角色权限"?(e.openBlock(),e.createBlock(m,{key:7,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(F,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="数据类型"?(e.openBlock(),e.createBlock(m,{key:8,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(r,{label:"正射影像",value:"正射影像"}),e.createVNode(r,{label:"倾斜摄影",value:"倾斜摄影"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="device"&&t==="所属监测线"?(e.openBlock(),e.createBlock(_,{key:9,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view"||N.value,placeholder:N.value?"雷达无需填写监测线":"请输入监测线",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","disabled","placeholder"])):(e.openBlock(),e.createBlock(_,{key:10,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",placeholder:re(t),style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","disabled","placeholder"]))]))),128))])]),_:1},8,["modelValue","title","style"])],64)),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),Qe=Ee._export_sfc(We,[["__scopeId","data-v-d5bd116e"]]);exports.default=Qe;
|
|
1
|
+
"use strict";var he=Object.defineProperty,Ce=Object.defineProperties;var _e=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var Be=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var H=(v,d,c)=>d in v?he(v,d,{enumerable:!0,configurable:!0,writable:!0,value:c}):v[d]=c,W=(v,d)=>{for(var c in d||(d={}))Be.call(d,c)&&H(v,c,d[c]);if(G)for(var c of G(d))Ne.call(d,c)&&H(v,c,d[c]);return v},Q=(v,d)=>Ce(v,_e(d));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/dialog/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/input/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");require("element-plus/es/components/button/style/css");const e=require("vue");require("html2canvas");const we=require("./BaseComponent-DaYX7dUF.cjs"),Ee=require("./index-OgmTZiO-.cjs"),Z=require("./ele-lin-icon-Dke_1AmT.cjs"),xe={key:0,class:"edit-placeholder"},De={class:"mgmt-header"},Te={class:"breadcrumb"},Se={class:"crumb-active"},Ae={class:"header-actions"},ze={class:"mgmt-tabs"},Me=["onClick"],Ue={class:"mgmt-filter-bar"},Ie={class:"filter-label"},Fe={class:"table-area"},Oe={class:"pagination-bar"},Le={class:"modal-form"},qe={class:"form-label"},Pe={class:"dialog-footer"},Re={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"基础数据管理",NAME_EN:"Data Management",ORDER:14,PLATFORM:["pc","screen"]},Ye={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},fontSize:{value:13,type:"number",label:"字体大小",min:10,max:20},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},je=[],Xe=["object_id","name","fv","fvDeviceName"],$e=["mosaic"],Ge={useAlias:!1,multiObject:!1,source:"mosaic"},He={DEFAULT:Re,OPTIONS:Ye,DATA:je,PARAMS:Xe,SOURCE:$e,COMMON:Ge},We=e.defineComponent(Q(W({},He),{__name:"dataManagement",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(v){const d=v,c=["时间","安装日期","下载时间","采集时间","设置日期"],E=["北帮","南帮","东帮","西帮","中央区"],M=["陈晓晓","王大力","李工程师","张三"],F=["全部权限","仅数据查询权限","人工录入权限","基础数据管理权限"],O=["国产雷达","进口雷达","GNSS","锚索应力计","土压力计","水位计","流量计","裂缝计","震动计"],L={partition:{title:"分区管理",filters:[{label:"分区名称",key:"名称",type:"input"},{label:"操作人员",key:"人员",type:"select",options:["全部",...M]}],columns:["时间","人员","名称","坐标"],addFields:["时间","人员","名称","坐标"]},device:{title:"设备管理",filters:[{label:"设备编号",key:"编号",type:"input"},{label:"所属区域",key:"所属区域",type:"select",options:["全部",...E]},{label:"设备状态",key:"状态",type:"select",options:["全部","正常","离线"]},{label:"设备类型",key:"类型",type:"select",options:["全部",...O]}],columns:["类型","编号","型号","安装日期","厂商","安装位置","所属区域","所属监测线"],addFields:["类型","编号","型号","安装日期","厂商","安装位置","所属区域","所属监测线","状态"]},radar:{title:"雷达扫描区域管理",filters:[{label:"区域编号",key:"编号",type:"input"},{label:"操作人员",key:"人员",type:"select",options:["全部",...M]},{label:"扫描区域",key:"扫描区域",type:"select",options:["全部",...E]}],columns:["时间","人员","编号","文件名称","圈定位置","扫描区域"],addFields:["时间","人员","编号","文件名称","圈定位置","扫描区域"]},virtual_point:{title:"雷达虚拟设置管理",filters:[{label:"点位编号",key:"编号",type:"input"},{label:"所属区域",key:"所属区域",type:"select",options:["全部",...E]}],columns:["类型","编号","设置日期","所属雷达","设置位置","所属区域","所属监测线","状态"],addFields:["类型","编号","设置日期","所属雷达","设置位置","所属区域","所属监测线","状态"]},satellite:{title:"卫星数据管理",filters:[{label:"数据编号",key:"数据编号",type:"input"},{label:"卫星类型",key:"卫星类型",type:"input"}],columns:["ID","数据名称","数据编号","下载时间","数据大小(MB)","卫星类型"],addFields:["ID","数据名称","数据编号","下载时间","数据大小(MB)","卫星类型"]},map_info:{title:"地图信息管理",filters:[{label:"数据类型",key:"数据类型",type:"select",options:["全部","正射影像","倾斜摄影"]},{label:"采集时间",key:"采集时间",type:"datetime-local"}],columns:["ID","数据名称","数据编号","数据类型","采集时间","覆盖面积(km²)"],addFields:["ID","数据名称","数据编号","数据类型","采集时间","覆盖面积(km²)"]},permission:{title:"权限管理",filters:[{label:"账号名称",key:"用户名",type:"input"},{label:"角色权限",key:"角色权限",type:"select",options:["全部",...F]},{label:"授权状态",key:"授权状态",type:"select",options:["全部","已授权","未授权"]}],columns:["用户ID","用户名","角色权限","授权状态"],addFields:["用户ID","用户名","角色权限","授权状态"]}},J=Object.entries(L).map(([a,l])=>({key:a,title:l.title})),K=()=>({partition:[{时间:"2026-01-19T20:00",人员:"陈晓晓",名称:"北帮一区",坐标:"X:1200, Y:300"}],device:[{类型:"GNSS",编号:"G001",型号:"T9-Pro",安装日期:"2025-12-01T10:00",厂商:"中海达",安装位置:"E:103.5, N:30.5",所属区域:"南帮",所属监测线:"S1",状态:"正常"}],radar:[{时间:"2026-01-15T09:00",人员:"陈晓晓",编号:"RAD-AREA-001",文件名称:"20260115_东帮1区.las",圈定位置:"X:2450.55, Y:1300.12, M:1326.56, N:1256.09......",扫描区域:"东帮"},{时间:"2026-01-17T14:30",人员:"王大力",编号:"RAD-AREA-002",文件名称:"20260117_西帮1区.las",圈定位置:"X:2100.20, Y:1150.45, M:1326.56, N:1256.09......",扫描区域:"西帮"}],virtual_point:[{类型:"虚拟点",编号:"VP-001",设置日期:"2026-01-21T09:30",所属雷达:"RAD-AREA-001",设置位置:"X:500, Y:600, Z:200",所属区域:"北帮",所属监测线:"X1-1",状态:"正常"},{类型:"虚拟面域",编号:"VA-205",设置日期:"2026-01-22T14:15",所属雷达:"RAD-AREA-002",设置位置:"X:1200, Y:800 (覆盖范围)",所属区域:"南帮",所属监测线:"无",状态:"正常"}],satellite:[{ID:"SAT-001",数据名称:"区域A遥感影像",数据编号:"SAT-2023-001",下载时间:"2023-06-10T09:30","数据大小(MB)":"256.5",卫星类型:"高分七号"},{ID:"SAT-002",数据名称:"区域B地形数据",数据编号:"SAT-2023-002",下载时间:"2023-06-15T14:20","数据大小(MB)":"420.3",卫星类型:"资源三号"}],map_info:[{ID:"MAP-001",数据名称:"区域A正射影像",数据编号:"MAP-2023-001",数据类型:"正射影像",采集时间:"2023-05-20T08:00","覆盖面积(km²)":"5.2"},{ID:"MAP-002",数据名称:"区域B倾斜摄影",数据编号:"MAP-2023-002",数据类型:"倾斜摄影",采集时间:"2023-05-25T10:15","覆盖面积(km²)":"3.8"}],permission:[{用户ID:"admin",用户名:"系统管理员",角色权限:"超级管理员",授权状态:"已授权"}]});class ee extends we.BaseComponent{extractStyles(){var m,w,_,C,A,z;const l=(m=this.props.conf)==null?void 0:m.options,s=((w=l==null?void 0:l.linkChannel)==null?void 0:w.value)||"gnss",r=((_=l==null?void 0:l.customChannel)==null?void 0:_.value)||"";return{bgColor:((C=l==null?void 0:l.bgColor)==null?void 0:C.value)||"#ffffff",textColor:((A=l==null?void 0:l.textColor)==null?void 0:A.value)||"#333333",fontSize:((z=l==null?void 0:l.fontSize)==null?void 0:z.value)||13,linkChannel:s==="custom"&&r?r:s}}onLinkEvent(l){}}const x=new ee(d,"dataManagement");x.setupLifecycle();const D=x.getStyle(),i=e.ref("partition"),y=e.computed(()=>L[i.value]),le=e.computed(()=>y.value.columns),k=e.ref({}),p=e.reactive({}),f=e.ref(null),V=e.ref([]),g=e.ref(1),T=10,U=e.ref(null),h=e.ref(!1),u=e.ref("add"),B=e.ref(-1),n=e.reactive({}),N=e.ref(!1),S=e.ref(!1),te=e.computed(()=>u.value==="add"?"新增"+y.value.title:u.value==="edit"?"编辑数据":"详情查看"),ae=e.computed(()=>{var a,l;return(l=(a=f.value)!=null?a:k.value[i.value])!=null?l:[]}),q=e.computed(()=>ae.value),P=e.computed(()=>{const a=(g.value-1)*T;return q.value.slice(a,a+T)}),oe=a=>c.includes(a),R=()=>{const a=new Date,l=a.getTimezoneOffset()*6e4;return new Date(a.getTime()-l).toISOString().slice(0,16)},ne=(a,l)=>a?c.includes(l)?a.replace("T"," "):a:"--",se=a=>["圈定位置","安装位置","设置位置"].includes(a)?200:["文件名称","数据名称"].includes(a)||c.includes(a)?160:110,re=a=>["坐标","安装位置","圈定位置","设置位置"].includes(a)?`请输入${a},每个坐标用,隔开`:`请输入${a}`,Y=a=>{const l=P.value[a];return k.value[i.value].indexOf(l)},ie=a=>{i.value=a,V.value=[],f.value=null,g.value=1,Object.keys(p).forEach(l=>delete p[l])},ue=()=>{const a=k.value[i.value];f.value=a.filter(l=>Object.keys(p).every(s=>{const r=p[s];return!r||r==="全部"?!0:l[s]?String(l[s]).toLowerCase().includes(r.toLowerCase()):!1})),V.value=[],g.value=1},de=()=>{Object.keys(p).forEach(a=>delete p[a]),f.value=null,g.value=1},ce=a=>{V.value=a},me=()=>{if(!V.value.length)return;const a=new Set(V.value);k.value[i.value]=k.value[i.value].filter(l=>!a.has(l)),f.value=null,V.value=[]},I=a=>{if(Object.keys(n).forEach(l=>delete n[l]),a!==void 0&&a>=0){const l=k.value[i.value][a];y.value.addFields.forEach(s=>{n[s]=l[s]||""})}else y.value.addFields.forEach(l=>{n[l]=c.includes(l)?R():""})},pe=()=>{u.value="add",B.value=-1,I(),N.value=!1,S.value=!1,h.value=!0},ve=a=>{u.value="edit",B.value=a,I(a),j(),h.value=!0},ke=a=>{u.value="view",B.value=a,I(a),j(),h.value=!0},j=()=>{i.value==="device"&&X(n.类型),i.value==="virtual_point"&&$(n.类型)},X=a=>{N.value=!!a&&a.includes("雷达"),N.value&&(n.所属监测线="")},$=a=>{S.value=a==="虚拟面域",S.value&&(n.所属监测线="无")},ye=()=>{const a={};y.value.addFields.forEach(l=>{a[l]=n[l]||""}),B.value>=0?k.value[i.value][B.value]=a:k.value[i.value].push(a),f.value=null,h.value=!1},Ve=()=>{var a;(a=U.value)==null||a.click()},be=()=>{var a;(a=U.value)==null||a.click()},fe=a=>{var r;if(!((r=a.target.files)==null?void 0:r[0]))return;const s={};y.value.addFields.forEach(m=>{s[m]=c.includes(m)?R():"导入-"+m}),k.value[i.value].push(s),f.value=null,a.target.value=""};return e.onMounted(()=>{x.init(),d.mode!=="edit"&&(k.value=K())}),e.onUnmounted(()=>{x.cleanup()}),(a,l)=>{const s=b.ElButton,r=b.ElOption,m=b.ElSelect,w=b.ElDatePicker,_=b.ElInput,C=b.ElTableColumn,A=b.ElTable,z=b.ElPagination,ge=b.ElDialog;return e.openBlock(),e.createElementBlock("div",{class:"data-mgmt",style:e.normalizeStyle({backgroundColor:e.unref(D).bgColor,color:e.unref(D).textColor,fontSize:e.unref(D).fontSize+"px"})},[d.mode==="edit"?(e.openBlock(),e.createElementBlock("div",xe,[...l[3]||(l[3]=[e.createElementVNode("div",{class:"placeholder-icon"},"📋",-1),e.createElementVNode("div",{class:"placeholder-title"},"基础数据管理",-1),e.createElementVNode("div",{class:"placeholder-desc"},"包含7个管理模块:分区 / 设备 / 雷达扫描区域 / 雷达虚拟设置 / 卫星数据 / 地图信息 / 权限",-1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",De,[e.createElementVNode("div",Te,[l[4]||(l[4]=e.createTextVNode("基础数据管理 / ",-1)),e.createElementVNode("span",Se,e.toDisplayString(y.value.title),1)]),e.createElementVNode("div",Ae,[e.createVNode(s,{size:"small",type:"primary",onClick:pe},{default:e.withCtx(()=>[...l[5]||(l[5]=[e.createTextVNode("+ 新增",-1)])]),_:1}),e.createVNode(s,{size:"small",type:"success",onClick:Ve},{default:e.withCtx(()=>[...l[6]||(l[6]=[e.createTextVNode("📥 导入数据",-1)])]),_:1}),e.createVNode(s,{size:"small",type:"danger",disabled:!V.value.length,onClick:me},{default:e.withCtx(()=>[e.createTextVNode(" 🗑️ 批量删除"+e.toDisplayString(V.value.length?` (${V.value.length})`:""),1)]),_:1},8,["disabled"]),e.createElementVNode("input",{ref_key:"importInput",ref:U,type:"file",style:{display:"none"},onChange:fe},null,544)])]),e.createElementVNode("div",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(J),t=>(e.openBlock(),e.createElementBlock("div",{key:t.key,class:e.normalizeClass(["tab-item",{active:i.value===t.key}]),onClick:o=>ie(t.key)},e.toDisplayString(t.title),11,Me))),128))]),e.createElementVNode("div",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.filters,t=>(e.openBlock(),e.createElementBlock("div",{key:t.key,class:"filter-group"},[e.createElementVNode("span",Ie,e.toDisplayString(t.label)+":",1),t.type==="select"?(e.openBlock(),e.createBlock(m,{key:0,modelValue:p[t.key],"onUpdate:modelValue":o=>p[t.key]=o,size:"small",placeholder:"全部",clearable:"",style:{width:"140px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((t.options||[]).filter(o=>o!=="全部"),o=>(e.openBlock(),e.createBlock(r,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):t.type==="datetime-local"?(e.openBlock(),e.createBlock(w,{key:1,modelValue:p[t.key],"onUpdate:modelValue":o=>p[t.key]=o,type:"datetime",size:"small",placeholder:"选择时间",style:{width:"200px"},"value-format":"YYYY-MM-DDTHH:mm"},null,8,["modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(_,{key:2,modelValue:p[t.key],"onUpdate:modelValue":o=>p[t.key]=o,size:"small",placeholder:"输入搜索...",style:{width:"140px"},clearable:""},null,8,["modelValue","onUpdate:modelValue"]))]))),128)),e.createVNode(s,{size:"small",type:"primary",onClick:ue},{default:e.withCtx(()=>[...l[7]||(l[7]=[e.createTextVNode("查询",-1)])]),_:1}),e.createVNode(s,{size:"small",onClick:de},{default:e.withCtx(()=>[...l[8]||(l[8]=[e.createTextVNode("重置",-1)])]),_:1})]),e.createElementVNode("div",Fe,[e.createVNode(A,{data:P.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},onSelectionChange:ce},{default:e.withCtx(()=>[e.createVNode(C,{type:"selection",width:"40"}),e.createVNode(C,{label:"序号",width:"60",align:"center"},{default:e.withCtx(({$index:t})=>[e.createTextVNode(e.toDisplayString((g.value-1)*T+t+1),1)]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(le.value,t=>(e.openBlock(),e.createBlock(C,{key:t,prop:t,label:t,"min-width":se(t),align:"center"},{default:e.withCtx(({row:o})=>[e.createTextVNode(e.toDisplayString(ne(o[t],t)),1)]),_:2},1032,["prop","label","min-width"]))),128)),e.createVNode(C,{label:"操作","min-width":"120",align:"center",fixed:"right"},{default:e.withCtx(({$index:t})=>[e.createVNode(s,{link:"",type:"primary",size:"small",onClick:o=>ve(Y(t))},{default:e.withCtx(()=>[...l[9]||(l[9]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"]),e.createVNode(s,{link:"",type:"primary",size:"small",onClick:o=>ke(Y(t))},{default:e.withCtx(()=>[...l[10]||(l[10]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]),e.createElementVNode("div",Oe,[e.createVNode(z,{small:"",layout:"prev, pager, next",total:q.value.length,"page-size":T,"current-page":g.value,"onUpdate:currentPage":l[0]||(l[0]=t=>g.value=t)},null,8,["total","current-page"])])]),e.createVNode(ge,{modelValue:h.value,"onUpdate:modelValue":l[2]||(l[2]=t=>h.value=t),title:te.value,width:"520px",top:"8vh","close-on-click-modal":!1,"destroy-on-close":"",style:e.normalizeStyle({fontSize:e.unref(D).fontSize+"px"}),class:"data-mgmt-dialog"},{footer:e.withCtx(()=>[e.createElementVNode("div",Pe,[u.value!=="view"?(e.openBlock(),e.createBlock(s,{key:0,size:"small",type:"success",onClick:be},{default:e.withCtx(()=>[...l[11]||(l[11]=[e.createTextVNode("导入数据",-1)])]),_:1})):e.createCommentVNode("",!0),l[14]||(l[14]=e.createElementVNode("span",{style:{flex:"1"}},null,-1)),e.createVNode(s,{size:"small",onClick:l[1]||(l[1]=t=>h.value=!1)},{default:e.withCtx(()=>[...l[12]||(l[12]=[e.createTextVNode("取消",-1)])]),_:1}),u.value!=="view"?(e.openBlock(),e.createBlock(s,{key:1,size:"small",type:"primary",onClick:ye},{default:e.withCtx(()=>[...l[13]||(l[13]=[e.createTextVNode("确定",-1)])]),_:1})):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.addFields,t=>(e.openBlock(),e.createElementBlock("div",{key:t,class:"form-item"},[e.createElementVNode("label",qe,e.toDisplayString(t),1),oe(t)?(e.openBlock(),e.createBlock(w,{key:0,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,type:"datetime",size:"small",disabled:u.value==="view",style:{width:"100%"},"value-format":"YYYY-MM-DDTHH:mm"},null,8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="device"&&t==="类型"?(e.openBlock(),e.createBlock(m,{key:1,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"},onChange:X},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(O,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="virtual_point"&&t==="类型"?(e.openBlock(),e.createBlock(m,{key:2,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"},onChange:$},{default:e.withCtx(()=>[e.createVNode(r,{label:"虚拟点",value:"虚拟点"}),e.createVNode(r,{label:"虚拟面域",value:"虚拟面域"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="virtual_point"&&t==="所属监测线"?(e.openBlock(),e.createBlock(m,{key:3,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view"||S.value,style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(r,{label:"无",value:"无"}),e.createVNode(r,{label:"X1-1",value:"X1-1"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="状态"||t==="授权状态"?(e.openBlock(),e.createBlock(m,{key:4,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==="状态"?["正常","离线"]:["已授权","未授权"],o=>(e.openBlock(),e.createBlock(r,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])):t==="所属区域"||t==="扫描区域"?(e.openBlock(),e.createBlock(m,{key:5,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(E,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="人员"?(e.openBlock(),e.createBlock(m,{key:6,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(M,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="角色权限"?(e.openBlock(),e.createBlock(m,{key:7,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(F,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="数据类型"?(e.openBlock(),e.createBlock(m,{key:8,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(r,{label:"正射影像",value:"正射影像"}),e.createVNode(r,{label:"倾斜摄影",value:"倾斜摄影"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="device"&&t==="所属监测线"?(e.openBlock(),e.createBlock(_,{key:9,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view"||N.value,placeholder:N.value?"雷达无需填写监测线":"请输入监测线",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","disabled","placeholder"])):(e.openBlock(),e.createBlock(_,{key:10,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",placeholder:re(t),style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","disabled","placeholder"]))]))),128))])]),_:1},8,["modelValue","title","style"])],64)),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),Qe=Ee._export_sfc(We,[["__scopeId","data-v-d5bd116e"]]);exports.default=Qe;
|
|
@@ -23,8 +23,8 @@ import "element-plus/es/components/option/style/css";
|
|
|
23
23
|
import "element-plus/es/components/button/style/css";
|
|
24
24
|
import { defineComponent as We, ref as V, computed as I, reactive as ie, onMounted as Qe, onUnmounted as Ze, openBlock as o, createElementBlock as k, normalizeStyle as de, unref as x, createElementVNode as p, Fragment as h, createTextVNode as f, toDisplayString as M, createVNode as u, withCtx as s, renderList as w, normalizeClass as qe, createBlock as r, createCommentVNode as re, renderSlot as Je } from "vue";
|
|
25
25
|
import "html2canvas";
|
|
26
|
-
import { B as Ke } from "./BaseComponent-
|
|
27
|
-
import { _ as el } from "./index-
|
|
26
|
+
import { B as Ke } from "./BaseComponent-CEp8NJiX.js";
|
|
27
|
+
import { _ as el } from "./index-CqVPeq0-.js";
|
|
28
28
|
import { A as ll, D as tl } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
29
29
|
const al = {
|
|
30
30
|
key: 0,
|