mixdashboards 1.1.13 → 1.1.15
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/{AgGridTable-Bi7O66-r.cjs → AgGridTable-B0ARi6iQ.cjs} +39 -39
- package/dist/{AgGridTable-BjGMC3qC.js → AgGridTable-CiUB86Yi.js} +34 -35
- package/dist/{BaseComponent-B38Blgw3.js → BaseComponent-7Sa7XOg-.js} +3 -3
- package/dist/{BaseComponent-9njJjeix.cjs → BaseComponent-BabOc6Kc.cjs} +1 -1
- package/dist/{EChartComponentBase-DJScukmS.js → EChartComponentBase-DCKFGbqb.js} +2 -2
- package/dist/{EChartComponentBase-BwbycwwW.cjs → EChartComponentBase-DM6aSCAR.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-BxzP1xYW.cjs → EmergencyPlanPanel-B95hRGD5.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-D3GF-xQQ.js → EmergencyPlanPanel-BJ1w9aHu.js} +1 -1
- package/dist/{HistoryPlanDialog-DpaiRZgi.js → HistoryPlanDialog-0jjitoAV.js} +1 -1
- package/dist/{HistoryPlanDialog-DQXCUsy4.cjs → HistoryPlanDialog-DjIJTjzR.cjs} +1 -1
- package/dist/{MixiotAppDetailPage-BGfF3qrm.js → MixiotAppDetailPage-DcAZ_rZN.js} +1 -1
- package/dist/{MixiotAppDetailPage-CL1Sd9HJ.cjs → MixiotAppDetailPage-JpvZKz0u.cjs} +1 -1
- package/dist/{MonitoringMap-Wzsw3hVH.cjs → MonitoringMap-BFTZh1EC.cjs} +1 -1
- package/dist/{MonitoringMap-DQkO116Z.js → MonitoringMap-D6HBxlBf.js} +2 -2
- package/dist/{UniverSheet-Bne7JZyr.cjs → UniverSheet-0biXXXxr.cjs} +1 -1
- package/dist/{UniverSheet-Cd2a9LPx.js → UniverSheet-B4uisgP1.js} +2 -2
- package/dist/{accelerationChart-BJhVC_l5.cjs → accelerationChart-BDRSdpFi.cjs} +1 -1
- package/dist/{accelerationChart-BUsbSkwA.js → accelerationChart-Bw7lk5Ds.js} +19 -19
- package/dist/{actionItem-B3B4MFcW.js → actionItem-CvYP-t6r.js} +2 -2
- package/dist/{actionItem-DxB7IvtW.cjs → actionItem-DThWcN9C.cjs} +1 -1
- package/dist/{alarmLevelChart-DC-q2AgI.js → alarmLevelChart-687B7l09.js} +2 -2
- package/dist/{alarmLevelChart-DC_hx4Pn.cjs → alarmLevelChart-tIuQCLIZ.cjs} +1 -1
- package/dist/{alertTable-CHfA0TR-.cjs → alertTable-DRMDbKnY.cjs} +1 -1
- package/dist/{alertTable-CGRDnNPw.js → alertTable-VF9l7Yae.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-DGoLPE4i.cjs → aliasObjectSelectorDemo-CM81kBda.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-DuGQCEcG.js → aliasObjectSelectorDemo-W1sOe5E-.js} +7 -7
- package/dist/{annualRainfallChart-CLxVqN5Z.cjs → annualRainfallChart-CqR6pOpX.cjs} +1 -1
- package/dist/{annualRainfallChart-Dr8KKYOG.js → annualRainfallChart-NcsPJb-C.js} +2 -2
- package/dist/{aqi-rBhSWA_m.js → aqi-3Gq00rd7.js} +2 -2
- package/dist/{aqi-BmYGSf2e.cjs → aqi-CZ_4TrPd.cjs} +1 -1
- package/dist/{aqiIndass-DqJBc799.js → aqiIndass-BZ7HrCcK.js} +16 -16
- package/dist/{aqiIndass-Cpqau5M0.cjs → aqiIndass-C1bAEiH_.cjs} +1 -1
- package/dist/{areaDeformCurve-DpHWg6pf.js → areaDeformCurve-DQ3jFm7O.js} +2 -2
- package/dist/{areaDeformCurve-B924KVWX.cjs → areaDeformCurve-DgQjsOl5.cjs} +1 -1
- package/dist/{arrayCard-Bzjg3HKN.cjs → arrayCard-BVII-4mg.cjs} +1 -1
- package/dist/{arrayCard-C7anoYI-.js → arrayCard-BvkmBFMi.js} +2 -2
- package/dist/{audio-DTiS2piX.js → audio-86V-n6Mh.js} +2 -2
- package/dist/{audio-aADcgdZP.cjs → audio-DAVcGaCv.cjs} +1 -1
- package/dist/{bar-D32xICYZ.js → bar-D0uX_Pwu.js} +2 -2
- package/dist/{bar-DqY55XnC.cjs → bar-DdCjm6M9.cjs} +1 -1
- package/dist/{basicShapeToolbox-D8q86CzB.js → basicShapeToolbox-cjpSxBSI.js} +12 -12
- package/dist/{basicShapeToolbox-BvJjH4fV.cjs → basicShapeToolbox-vlF8ai0y.cjs} +1 -1
- package/dist/{bmp-DIFGLoNl.cjs → bmp-DmCehXiK.cjs} +1 -1
- package/dist/{bmp-DU3vm7yj.js → bmp-L5PC6_bj.js} +2 -2
- package/dist/{box-DTQKGR9g.js → box-BBDYqZhV.js} +16 -16
- package/dist/{box-C8pOZXek.cjs → box-DCe5iz-w.cjs} +1 -1
- package/dist/{chartConfigPanel-D4vk7zWs.cjs → chartConfigPanel-BDGfFdm5.cjs} +1 -1
- package/dist/{chartConfigPanel-Bz82sVyH.js → chartConfigPanel-BG38-Lo9.js} +1 -1
- package/dist/{circleBar-B48h_-uK.cjs → circleBar-BBrdfpn6.cjs} +1 -1
- package/dist/{circleBar-ClO05bgq.js → circleBar-CnStKTJz.js} +2 -2
- package/dist/{clock-D8ZXhy53.js → clock-CfoMLhjJ.js} +2 -2
- package/dist/{clock-DB94wQje.cjs → clock-D4FqM5tD.cjs} +1 -1
- package/dist/{clt-cxeCTOaA.cjs → clt-DrF15d3K.cjs} +1 -1
- package/dist/{clt-BX0SNGZr.js → clt-mVBTHfPs.js} +2 -2
- package/dist/{cmc-BvnYrQrR.cjs → cmc-BEKqMpSQ.cjs} +1 -1
- package/dist/{cmc-Co13D559.js → cmc-kC4VJ8V0.js} +17 -17
- package/dist/{cmp-Dd56EQ09.cjs → cmp-BBKmso3S.cjs} +1 -1
- package/dist/{cmp-B4cYCR4p.js → cmp-CEeDDeHU.js} +2 -2
- package/dist/{conclusionCard-Bla25-qd.js → conclusionCard-Drlv8OIb.js} +2 -2
- package/dist/{conclusionCard-Cd3DoD1l.cjs → conclusionCard-glbRT95d.cjs} +1 -1
- package/dist/{controlList-Dx4wSpA7.js → controlList-2sHPYEnd.js} +3 -3
- package/dist/{controlList-CyT_LYgr.cjs → controlList-V6TbbBW2.cjs} +1 -1
- package/dist/{controlRecordList-DsxYHRrs.cjs → controlRecordList-CqMshyV4.cjs} +1 -1
- package/dist/{controlRecordList-BAI_15ZN.js → controlRecordList-kZuqwCCC.js} +3 -3
- package/dist/{controlRecordListAPP-Zfiwcrmq.cjs → controlRecordListAPP-BevyiiWD.cjs} +1 -1
- package/dist/{controlRecordListAPP-BQlABx3f.js → controlRecordListAPP-rsphOVsE.js} +2 -2
- package/dist/{crd-IsqkYOAy.js → crd-1Q8p4BGc.js} +56 -57
- package/dist/crd-z0xGDAjD.cjs +1 -0
- package/dist/{ctrBtn-LwuY-nVR.js → ctrBtn-CDT6KYFl.js} +12 -12
- package/dist/{ctrBtn-C3OqkyNS.cjs → ctrBtn-DNMQrtKl.cjs} +1 -1
- package/dist/{ctrSet-B0nYCdwh.cjs → ctrSet-B8m_Qs1d.cjs} +1 -1
- package/dist/{ctrSet-Qb5XEdD4.js → ctrSet-DF2TcM9X.js} +13 -13
- package/dist/{ctrSwitch-B3jo3Gx0.js → ctrSwitch-_QtKcaSt.js} +3 -3
- package/dist/{ctrSwitch-Bps4Ak15.cjs → ctrSwitch-eUtgP6uT.cjs} +1 -1
- package/dist/{dataManagement-BFxVtU33.cjs → dataManagement-D1uUQ_Ex.cjs} +1 -1
- package/dist/{dataManagement-CVHalRKp.js → dataManagement-xM0ruay1.js} +2 -2
- package/dist/{dataReport-Bk79cBkV.cjs → dataReport-DbQ_m74F.cjs} +1 -1
- package/dist/{dataReport-B2AiDMdM.js → dataReport-XrPAwXcb.js} +2 -2
- package/dist/{dataTable-D9sSJRQn.js → dataTable-BIy_sh-b.js} +1 -1
- package/dist/{dataTable-Dh7s14jM.cjs → dataTable-G_Elyj_e.cjs} +1 -1
- package/dist/{datetime-C25d1bAc.cjs → datetime-CLJrKpiX.cjs} +1 -1
- package/dist/{datetime-CEKzNAlD.js → datetime-Dyw8-i5g.js} +2 -2
- package/dist/{deepClusterSlipSurface-DODVh-Qw.js → deepClusterSlipSurface-CcoFFz6r.js} +26 -26
- package/dist/{deepClusterSlipSurface-BLZL2xX6.cjs → deepClusterSlipSurface-Cthw-rk5.cjs} +1 -1
- package/dist/{deepDataMatrix-D_NPV2sQ.cjs → deepDataMatrix-C8yzdPMG.cjs} +1 -1
- package/dist/{deepDataMatrix-9iClruS0.js → deepDataMatrix-Dy-9hAeO.js} +16 -16
- package/dist/{deepDisplacement3D-C6puNK1m.cjs → deepDisplacement3D-B3jtZ9_l.cjs} +1 -1
- package/dist/{deepDisplacement3D-C5YMqHiD.js → deepDisplacement3D-BqAQle8x.js} +2 -2
- package/dist/{deepDisplacementChart-DhQO428W.cjs → deepDisplacementChart-BT5FC0DX.cjs} +1 -1
- package/dist/{deepDisplacementChart-9sQF6tFO.js → deepDisplacementChart-BdEWrVgi.js} +20 -20
- package/dist/{deepDisplacementChart-DEn2yqGO.js → deepDisplacementChart-C1jrx9vY.js} +25 -25
- package/dist/{deepDisplacementChart-D-dqPlzq.cjs → deepDisplacementChart-DL5yJXj2.cjs} +1 -1
- package/dist/{deepDisplacementView-tzX-vzxO.cjs → deepDisplacementView-B722va1V.cjs} +1 -1
- package/dist/{deepDisplacementView-Cux6lFtG.js → deepDisplacementView-DLOv9gJ6.js} +1 -1
- package/dist/{deepNodeTemperatureChart--GH8-4O7.js → deepNodeTemperatureChart-D5ZY6ywC.js} +27 -27
- package/dist/{deepNodeTemperatureChart-Cyfnw2BR.cjs → deepNodeTemperatureChart-Dj3Xm6SY.cjs} +1 -1
- package/dist/{deepTangentAngleChart-DPMDFXiA.cjs → deepTangentAngleChart-9HyIvRNJ.cjs} +1 -1
- package/dist/{deepTangentAngleChart-Dae_3j30.js → deepTangentAngleChart-DVDa5Zxc.js} +26 -26
- package/dist/{deepTemperatureField-Cr2e_Ytp.js → deepTemperatureField-BO4TyQ_g.js} +3 -3
- package/dist/{deepTemperatureField-B3Eu4zqv.cjs → deepTemperatureField-cbehgtiQ.cjs} +1 -1
- package/dist/{deepTrendChart-8fniZ16K.js → deepTrendChart-BRdRCV_a.js} +14 -14
- package/dist/{deepTrendChart-BPYqojQ2.cjs → deepTrendChart-D9yoOBuy.cjs} +1 -1
- package/dist/{deviceOnlineStatus-mJ0KVMo4.cjs → deviceOnlineStatus-43VQlj7e.cjs} +1 -1
- package/dist/{deviceOnlineStatus-DP7-u5lC.js → deviceOnlineStatus-BAas3BvQ.js} +2 -2
- package/dist/{deviceStatus-Ih0jQNYO.js → deviceStatus-2Jyg0ILJ.js} +10 -10
- package/dist/{deviceStatus-B0AxN-cY.cjs → deviceStatus-CcrMdiqm.cjs} +1 -1
- package/dist/{displacementDataTable-BbZjdMtX.js → displacementDataTable-Cuy2--YT.js} +12 -12
- package/dist/{displacementDataTable-Dkka_jGJ.cjs → displacementDataTable-VumJPDi3.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-DDwm-jr2.cjs → displacementTrajectoryChart-knwhmSBU.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-BZDSkYoZ.js → displacementTrajectoryChart-qLo3xtpZ.js} +23 -23
- package/dist/{displacementTrendChart-DZZaVi86.js → displacementTrendChart-D2Ronskq.js} +34 -34
- package/dist/{displacementTrendChart-CUeVa58Q.cjs → displacementTrendChart-DbAH_mjd.cjs} +1 -1
- package/dist/{dxf-BOfmTSO8.cjs → dxf-BAH7igHZ.cjs} +1 -1
- package/dist/{dxf-DYC74yWV.js → dxf-BSXyBPzC.js} +2 -2
- package/dist/{dzc-DUFiz7a_.cjs → dzc-D105FzEq.cjs} +1 -1
- package/dist/{dzc-BU7yYW4I.js → dzc-DvtA7L0o.js} +2 -2
- package/dist/{emergencyPlan-DDb6j7YU.cjs → emergencyPlan-CAs6Mk1Y.cjs} +1 -1
- package/dist/{emergencyPlan-DabL46QK.js → emergencyPlan-CFmxsb7R.js} +3 -3
- package/dist/{evn-DrreVqnm.cjs → evn-D-e0vp61.cjs} +1 -1
- package/dist/{evn-DhdColcF.js → evn-DtTKI8zs.js} +2 -2
- package/dist/{evolutionChart-QuGAgjXo.cjs → evolutionChart-6EMuwRiR.cjs} +1 -1
- package/dist/{evolutionChart-aedDj0mQ.js → evolutionChart-uRWhCC8C.js} +3 -3
- package/dist/{fileViewer-CvNnUxUK.cjs → fileViewer-CPG-66F1.cjs} +1 -1
- package/dist/{fileViewer-oBpWIjGb.js → fileViewer-Cxo-Sbha.js} +2 -2
- package/dist/{filterBar-CwHODFoy.cjs → filterBar-CI0jzG-8.cjs} +1 -1
- package/dist/{filterBar-DYpEssxC.js → filterBar-DchvCgB0.js} +2 -2
- package/dist/{fireCombustionCurve-wbKsWk4E.js → fireCombustionCurve-fvldUBQh.js} +3 -3
- package/dist/{fireCombustionCurve-lu2qH6_b.cjs → fireCombustionCurve-qOiCa6aW.cjs} +1 -1
- package/dist/{fireFilterBar-B8su74tt.cjs → fireFilterBar-B8J3V0n-.cjs} +1 -1
- package/dist/{fireFilterBar-9_fqGo2q.js → fireFilterBar-D7mx1XUg.js} +2 -2
- package/dist/{fireHistoryTable-C1C95uYN.js → fireHistoryTable-CP0kgqS6.js} +2 -2
- package/dist/{fireHistoryTable-pOJz1_Rp.cjs → fireHistoryTable-r_xPEo29.cjs} +1 -1
- package/dist/{gag-LSkHPD7f.cjs → gag-BhUKp8vX.cjs} +1 -1
- package/dist/{gag-BGUeQKJJ.js → gag-n3ajZOT8.js} +2 -2
- package/dist/{gasStationList-4TtBLsqC.js → gasStationList-CRZGXdZ-.js} +3 -3
- package/dist/{gasStationList-DJTrXjkv.cjs → gasStationList-DX9Q2lFd.cjs} +1 -1
- package/dist/{geo3dViewer-CK89hYK7.cjs → geo3dViewer-CfPFjRsL.cjs} +1 -1
- package/dist/{geo3dViewer-DIjv75YP.js → geo3dViewer-DFD75mZU.js} +3 -3
- package/dist/{glbModel-BDgY9S4f.cjs → glbModel-BrwlvZq6.cjs} +1 -1
- package/dist/{glbModel-IOIVpCjq.js → glbModel-x4OZxfPi.js} +2 -2
- package/dist/{globalObjectSelector-B2dkzNyk.js → globalObjectSelector-Bx2SbcG0.js} +1 -1
- package/dist/{globalObjectSelector-N7s0yyOp.cjs → globalObjectSelector-PiWbhkZ4.cjs} +1 -1
- package/dist/{gnssFilterBar-BF_tbN4_.js → gnssFilterBar-8ie4Hrtf.js} +2 -2
- package/dist/{gnssFilterBar-8eSkGWMH.cjs → gnssFilterBar-BY7YScHH.cjs} +1 -1
- package/dist/{gnssHistoryTable-DUjRjXoS.js → gnssHistoryTable-DH3MNQRj.js} +2 -2
- package/dist/{gnssHistoryTable-X_cgOa6r.cjs → gnssHistoryTable-lvtSQu6T.cjs} +1 -1
- package/dist/{gnssMapView-DnF2bYAD.cjs → gnssMapView-BalPUoGu.cjs} +2 -2
- package/dist/{gnssMapView-BnwPDey9.js → gnssMapView-eqR9-FLA.js} +4 -4
- package/dist/{gnssSectionProfile-D0sbRu3A.js → gnssSectionProfile-C2v9LYEI.js} +2 -2
- package/dist/{gnssSectionProfile-DoEXHKTy.cjs → gnssSectionProfile-fXM6wumD.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-Csm6PwRv.cjs → gnssTimeSeriesChart-DK08VGh2.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-glTixABx.js → gnssTimeSeriesChart-DO4m_7q7.js} +2 -2
- package/dist/{gnssXYTrajectory-4c8JDd_b.cjs → gnssXYTrajectory-CDgAcydt.cjs} +1 -1
- package/dist/{gnssXYTrajectory-BMCO0sb0.js → gnssXYTrajectory-Jdb53wOw.js} +2 -2
- package/dist/{grd-D1enzYOI.cjs → grd-BcVJB4b5.cjs} +1 -1
- package/dist/{grd-BTGTCp0z.js → grd-Bf5VZY3M.js} +19 -19
- package/dist/{grdIndass-B6fwa_k8.cjs → grdIndass-CTaKBOun.cjs} +1 -1
- package/dist/{grdIndass-Dn62HL6y.js → grdIndass-DrBidpYt.js} +2 -2
- package/dist/{grg-DMOF8h8j.js → grg-57h3YudF.js} +5 -5
- package/dist/{grg-B5128EcW.cjs → grg-DR1f44AO.cjs} +1 -1
- package/dist/{gridview-Dewc5Eax.js → gridview-BEiHeWnU.js} +2 -2
- package/dist/{gridview-Ddin99YO.cjs → gridview-DUOWjiqv.cjs} +1 -1
- package/dist/{groundwaterFilterBar-mukvYHDm.js → groundwaterFilterBar-Djh4tnLM.js} +2 -2
- package/dist/{groundwaterFilterBar-2uj_Hf_Q.cjs → groundwaterFilterBar-WfAm45Iv.cjs} +1 -1
- package/dist/{groundwaterProfileChart-DDVsfzyr.cjs → groundwaterProfileChart-B9NrkncY.cjs} +2 -2
- package/dist/{groundwaterProfileChart-BPTP8WBi.js → groundwaterProfileChart-Dvme4PHf.js} +3 -3
- package/dist/{groundwaterTimeCurve-jtQFr0hU.js → groundwaterTimeCurve-DLhsSDRO.js} +3 -3
- package/dist/{groundwaterTimeCurve-Zzn-sEsW.cjs → groundwaterTimeCurve-pLt2KuEY.cjs} +1 -1
- package/dist/{groupCard-DWjFdiH0.cjs → groupCard-DK5_osdM.cjs} +1 -1
- package/dist/{groupCard-B3fp05QD.js → groupCard-QV7NnbBa.js} +2 -2
- package/dist/{headerBar-BkpSQMNy.js → headerBar-CBTHBko2.js} +2 -2
- package/dist/{headerBar-B6lX3WST.cjs → headerBar-DcMgFL7n.cjs} +1 -1
- package/dist/{history-DqPjJP_E.cjs → history-BKLujk4W.cjs} +1 -1
- package/dist/{history-DgSlSTUD.js → history-BvM7EXsN.js} +11 -11
- package/dist/{index-Bo49zvKb.cjs → index-Cm7hGuPj.cjs} +13 -13
- package/dist/{index-BbXEpgom.js → index-DUL649KZ.js} +3422 -3379
- package/dist/{insarDeformChart-8UyVWXTx.cjs → insarDeformChart-D13o5hNr.cjs} +1 -1
- package/dist/{insarDeformChart-DNBHbVuk.js → insarDeformChart-DPq39rTv.js} +2 -2
- package/dist/{insarImageViewer-BeykgIJy.js → insarImageViewer-BLYbI4bm.js} +2 -2
- package/dist/{insarImageViewer-B8PhDcuG.cjs → insarImageViewer-BoqwF7sg.cjs} +1 -1
- package/dist/{kds-CS473Sia.js → kds-B2xqXmO8.js} +2 -2
- package/dist/{kds-BJwYrjV_.cjs → kds-B8Jdw9vL.cjs} +1 -1
- package/dist/{kpiCard-OMuCQe7O.cjs → kpiCard-BGsf7G30.cjs} +1 -1
- package/dist/{kpiCard-CNgj9P9s.js → kpiCard-DRR1gTcG.js} +2 -2
- package/dist/{landslideMap-NaGM5jJE.cjs → landslideMap-CD2LDzJA.cjs} +1 -1
- package/dist/{landslideMap-DMNcfDYF.js → landslideMap-DDlN9f2H.js} +9 -9
- package/dist/{landslideWarning-V1wB3aWq.cjs → landslideWarning-27SNVapD.cjs} +1 -1
- package/dist/{landslideWarning-DU-dDiiS.js → landslideWarning-r1zdMCih.js} +26 -26
- package/dist/{layerTabs-VfYlv6Ks.cjs → layerTabs-B86d5HH7.cjs} +1 -1
- package/dist/{layerTabs-Bgi7pfof.js → layerTabs-BjHiCU_F.js} +2 -2
- package/dist/{leaflet-src-4AJHN6it.js → leaflet-src-CAGnqnjZ.js} +1 -1
- package/dist/{leaflet-src-WG2ob5HA.cjs → leaflet-src-DYGpvxW6.cjs} +1 -1
- package/dist/{lerc-CEea2nO1.cjs → lerc-5z3DZffX.cjs} +1 -1
- package/dist/{lerc-BDiJ3I_S.js → lerc-Dh5beGkQ.js} +2 -2
- package/dist/{lin-BO1pGlXr.js → lin-DDWiOEA0.js} +6 -6
- package/dist/{lin-B_rN6QBj.cjs → lin-r6oOjphh.cjs} +1 -1
- package/dist/{linIndass-BGpoCQ4j.js → linIndass-CWcaOARi.js} +10 -10
- package/dist/{linIndass-B7XnW5XO.cjs → linIndass-CYCVyf-Z.cjs} +1 -1
- package/dist/{lst-BBl9nn63.js → lst-BKViAE6J.js} +2 -2
- package/dist/{lst-BeB_Gi9l.cjs → lst-Jc5oufSH.cjs} +1 -1
- package/dist/{manualEntry-C3qifAlP.js → manualEntry-CR0vY9l1.js} +2 -2
- package/dist/{manualEntry-BQVUqtm7.cjs → manualEntry-DpKGLaSi.cjs} +1 -1
- package/dist/{mapBackground-CDS60ZJC.js → mapBackground-BmlSVAtG.js} +3 -3
- package/dist/{mapBackground-D3-V7S-d.cjs → mapBackground-Cx8KweQ8.cjs} +1 -1
- package/dist/{mappingList-DnoAuivo.cjs → mappingList-BZz7GqJ4.cjs} +1 -1
- package/dist/{mappingList-B0jG2LlO.js → mappingList-C92OnAaA.js} +3 -3
- package/dist/{markdownViewer-BlXaqjhL.js → markdownViewer-ICTPV_72.js} +2 -2
- package/dist/{markdownViewer-BMkbW1Cl.cjs → markdownViewer-O5ng8kl7.cjs} +1 -1
- package/dist/materialFileUrl-C_Aqly-o.cjs +1 -0
- package/dist/{materialFileUrl-hKqW_JAq.js → materialFileUrl-CfFfqtB7.js} +5 -4
- package/dist/{mix-control-modal-BEXucxt5.js → mix-control-modal-CGLYKUCc.js} +5 -5
- package/dist/{mix-control-modal-aUWGjwZP.cjs → mix-control-modal-oxp6LmrP.cjs} +1 -1
- package/dist/{mixGrid-B5pKpGT3.cjs → mixGrid-DO73I4-D.cjs} +1 -1
- package/dist/{mixGrid-DQf7U1_8.js → mixGrid-DnxCOTqm.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-CJgiIk0q.cjs → mjpegCamera-DSMbdhJe.cjs} +1 -1
- package/dist/{mjpegCamera-C6pxWuEr.js → mjpegCamera-Dj5Lyrml.js} +2 -2
- package/dist/{monitorAlert-BPd1b_Cx.cjs → monitorAlert-C0e3mU_8.cjs} +1 -1
- package/dist/{monitorAlert-ZNF5siqY.js → monitorAlert-FwFl3Tjd.js} +12 -12
- package/dist/{monitorData-DIxZYNVr.js → monitorData-CnFHs2-k.js} +10 -10
- package/dist/{monitorData-slk6ogNe.cjs → monitorData-ICqlDSYT.cjs} +1 -1
- package/dist/{monitorSpeedChart-BRwbLD8B.cjs → monitorSpeedChart-B_02qTZy.cjs} +1 -1
- package/dist/{monitorSpeedChart-DCO39Aka.js → monitorSpeedChart-XCq3duqZ.js} +1 -1
- package/dist/{mxa-Bp4RH0w3.cjs → mxa-B9Ioifrx.cjs} +1 -1
- package/dist/{mxa-DFq19ply.js → mxa-DkvNrmvM.js} +2 -2
- package/dist/{myValue-g8shJQA9.cjs → myValue-CJZpYcAp.cjs} +1 -1
- package/dist/{myValue-BvItzUMv.js → myValue-aYi3bo7x.js} +2 -2
- package/dist/{myValueList-A_UGyNxN.js → myValueList-BIZ2JfrI.js} +2 -2
- package/dist/{myValueList-DnZBoJXp.cjs → myValueList-CFnHg4pl.cjs} +1 -1
- package/dist/objectList-B_BnqBg1.js +1842 -0
- package/dist/objectList-BgyTh2e7.cjs +1 -0
- package/dist/{objectListAPP-DxRImk8W.cjs → objectListAPP-B7Yk07oG.cjs} +1 -1
- package/dist/{objectListAPP-CdewSo8l.js → objectListAPP-Bq1S1FGu.js} +3 -3
- package/dist/{percentBar-Cq5ACj9c.cjs → percentBar-DmrRQirp.cjs} +1 -1
- package/dist/{percentBar-BvmYW_u6.js → percentBar-L0Ur3boP.js} +2 -2
- package/dist/{photo-t11P9WKh.js → photo-9c2Vrzor.js} +3 -3
- package/dist/{photo-B-kxNdb5.cjs → photo-BzVvbKrh.cjs} +1 -1
- package/dist/{pie-yTahcSl_.js → pie-BVbkpFWj.js} +2 -2
- package/dist/{pie-0s6FwVBt.cjs → pie-CeeMdBgu.cjs} +1 -1
- package/dist/{placeholder-DBmyvwFn.cjs → placeholder-C07ZscJc.cjs} +1 -1
- package/dist/{placeholder-D_CaQ-hg.js → placeholder-CUYSWWf8.js} +1 -1
- package/dist/{pressBtn-CP4kJr-P.js → pressBtn-Ds60I7hM.js} +3 -3
- package/dist/{pressBtn-JFezb7Yx.cjs → pressBtn-sqz6yim1.cjs} +1 -1
- package/dist/{processTable-BXswsnmt.js → processTable-COz7CKEG.js} +2 -2
- package/dist/{processTable-DRdI9ExW.cjs → processTable-CytoNBR2.cjs} +1 -1
- package/dist/{progressBar-Sn6tAxTY.cjs → progressBar-BxHPc2DD.cjs} +1 -1
- package/dist/{progressBar-D1Xh5APg.js → progressBar-CUnuEFaQ.js} +2 -2
- package/dist/{progressCircle-DLk9v_Os.cjs → progressCircle-BUNOFiUO.cjs} +1 -1
- package/dist/{progressCircle-BMpJVwIE.js → progressCircle-DWKJHFm-.js} +2 -2
- package/dist/{qrcode-BDtn3Ql7.cjs → qrcode-DJrUuI_e.cjs} +1 -1
- package/dist/{qrcode-BqlqV7Jf.js → qrcode-elzi9Ev5.js} +2 -2
- package/dist/{raceBar-BpvWNCV7.cjs → raceBar-BWYiOHgT.cjs} +2 -2
- package/dist/{raceBar-zSL-J18j.js → raceBar-C1Js5fWq.js} +156 -136
- package/dist/{rad-DSfVfaMa.cjs → rad-B__LOwb8.cjs} +1 -1
- package/dist/{rad-CZhY-L-z.js → rad-Dau_xw7q.js} +2 -2
- package/dist/{radarMapViewer-B4tTLLyl.js → radarMapViewer-0jrnj6Nm.js} +2 -2
- package/dist/{radarMapViewer-GmzS18dJ.cjs → radarMapViewer-30nLi5D4.cjs} +1 -1
- package/dist/{rainfallFilterBar-ijVmoglb.js → rainfallFilterBar-CnNMm1L4.js} +2 -2
- package/dist/{rainfallFilterBar-DHaVjXt5.cjs → rainfallFilterBar-io0Xy92q.cjs} +1 -1
- package/dist/{rainfallTimeCurve-B3_bl5L6.js → rainfallTimeCurve-CO3kxkO1.js} +3 -3
- package/dist/{rainfallTimeCurve-Crz3Adzh.cjs → rainfallTimeCurve-CsQNzhJI.cjs} +1 -1
- package/dist/{rangeLin-BOEsEaV1.js → rangeLin-C9p4yw-H.js} +8 -8
- package/dist/{rangeLin-DpEbvxsg.cjs → rangeLin-F-eJUSOD.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-C2u4a2JL.js → realtimeEvolutionMap-BSHmiJdM.js} +2 -2
- package/dist/{realtimeEvolutionMap-BwQJkus6.cjs → realtimeEvolutionMap-DbPSlUVo.cjs} +1 -1
- package/dist/{regionBar-P1fqv7Vb.cjs → regionBar-BqpQ17-j.cjs} +1 -1
- package/dist/{regionBar-BQr-kq-M.js → regionBar-DcIaWt42.js} +2 -2
- package/dist/{request-D9N74QdZ.cjs → request-BNiCZV7_.cjs} +1 -1
- package/dist/{request-Bn2gQLgM.js → request-CEUCACCR.js} +5 -5
- package/dist/{retainer1-Fnw0-Jvy.js → retainer1-BYe-4QPq.js} +3 -3
- package/dist/{retainer1-BCh8WSOq.cjs → retainer1-CtwKT7UP.cjs} +1 -1
- package/dist/{retainer2-nPyFv6Hs.js → retainer2-C8M7swsz.js} +3 -3
- package/dist/{retainer2-_3NOOefF.cjs → retainer2-CQf-EzAl.cjs} +1 -1
- package/dist/{retainerRecordList-C_UsUKsQ.js → retainerRecordList-B-xwovFD.js} +3 -3
- package/dist/{retainerRecordList-BaOTTQQN.cjs → retainerRecordList-DyRQQ0N-.cjs} +1 -1
- package/dist/{retainerRecordListAPP-BgKyfAMh.js → retainerRecordListAPP-CMNYP6hk.js} +3 -3
- package/dist/{retainerRecordListAPP-CE3l6WrB.cjs → retainerRecordListAPP-UPROwhvr.cjs} +1 -1
- package/dist/{ringTopN-Dz0EoM-A.js → ringTopN-FlVjUrQT.js} +2 -2
- package/dist/{ringTopN-DEv30Ms2.cjs → ringTopN-tPWwyl2Y.cjs} +1 -1
- package/dist/{riskRegionTable-BODT2UTF.cjs → riskRegionTable-BbJAvy7W.cjs} +1 -1
- package/dist/{riskRegionTable-Dot8zD_6.js → riskRegionTable-BjZoKdPt.js} +2 -2
- package/dist/{sankey-CYTyQB-L.cjs → sankey-CbPDXthr.cjs} +1 -1
- package/dist/{sankey-CbEUEE5B.js → sankey-Df3nSWC_.js} +7 -7
- package/dist/{scd-Btsiastw.js → scd-B9eeXnYU.js} +344 -348
- package/dist/scd-Ds6_WZDt.cjs +1 -0
- package/dist/{sideMenu-BxJRAAdM.js → sideMenu-BZ8iCENQ.js} +2 -2
- package/dist/{sideMenu-dnpq3qTF.cjs → sideMenu-CCohX7e6.cjs} +1 -1
- package/dist/{slopeStability-DX7WP5ZW.cjs → slopeStability-CO2BLtaT.cjs} +1 -1
- package/dist/{slopeStability-DrooNf1g.js → slopeStability-ChLLwaQA.js} +19 -19
- package/dist/{speedCurve-CNUJ5ScK.js → speedCurve-B7vwk0ti.js} +2 -2
- package/dist/{speedCurve-BT8wnfZI.cjs → speedCurve-DC8GN7er.cjs} +1 -1
- package/dist/{stackedBar-X8Y4lVgT.cjs → stackedBar-Bdt1ii7n.cjs} +1 -1
- package/dist/{stackedBar-nIfO6Aa3.js → stackedBar-p5hQcLfe.js} +2 -2
- package/dist/{stationList-D7lGCblu.js → stationList-4JLmJjJs.js} +3 -3
- package/dist/{stationList-DVzvGGHI.cjs → stationList-BHhnU7rg.cjs} +1 -1
- package/dist/{stressFilterBar-D5xktTRI.cjs → stressFilterBar-CDvVQZhK.cjs} +1 -1
- package/dist/{stressFilterBar-DqeqFHm7.js → stressFilterBar-D5uGrRbV.js} +2 -2
- package/dist/{stressTimeCurve-DfjNQ0rU.js → stressTimeCurve-BmXoUDOP.js} +3 -3
- package/dist/{stressTimeCurve-Bhhb-eqB.cjs → stressTimeCurve-Chj7Kmdb.cjs} +1 -1
- package/dist/{swiper-DuNuvT_N.js → swiper-CkVk-qls.js} +2 -2
- package/dist/{swiper-XCpwFkWS.cjs → swiper-OOktak53.cjs} +1 -1
- package/dist/{tablemanCreate-Cp5DaYUd.cjs → tablemanCreate-D6UFJZIo.cjs} +1 -1
- package/dist/{tablemanCreate-Cp9nOGg2.js → tablemanCreate-Hi3dHyzp.js} +3 -3
- package/dist/{tablemanDetail-DvZdgdHD.js → tablemanDetail-Bpuptxn4.js} +4 -4
- package/dist/{tablemanDetail-3ZMWkdpz.cjs → tablemanDetail-CHy58vFi.cjs} +1 -1
- package/dist/{tablemanList-DZdb1FUR.js → tablemanList-C16Timv1.js} +4 -4
- package/dist/{tablemanList-OLxgUmAi.cjs → tablemanList-C_bH6tMi.cjs} +1 -1
- package/dist/{tablemanTableList-CqsnRIHS.js → tablemanTableList-BW1WE2Ph.js} +3 -3
- package/dist/{tablemanTableList-BN6QjYEV.cjs → tablemanTableList-Duc6n-hm.cjs} +1 -1
- package/dist/{tablemanUpdate-CHs5OgAG.js → tablemanUpdate-Cvrm6nnk.js} +3 -3
- package/dist/{tablemanUpdate-E3d7A3WM.cjs → tablemanUpdate-DIpc92Cl.cjs} +1 -1
- package/dist/{terminalConfigList-BlgcWy40.cjs → terminalConfigList-C8dkmhQS.cjs} +1 -1
- package/dist/{terminalConfigList-BEBNi1Nl.js → terminalConfigList-yGZl93f_.js} +3 -3
- package/dist/{terminalList-Bl5BPmF9.cjs → terminalList-CanK2pyt.cjs} +1 -1
- package/dist/{terminalList-CJpH2Z-r.js → terminalList-dgawgsuV.js} +3 -3
- package/dist/{terminalListAPP-Dgvz8I3j.cjs → terminalListAPP-0iTXcRsu.cjs} +1 -1
- package/dist/{terminalListAPP-BpONJQOA.js → terminalListAPP-DNQzjxMX.js} +3 -3
- package/dist/{textbox-CJnSDwg7.js → textbox-88HaqHYa.js} +2 -2
- package/dist/{textbox-DR0bQEX7.cjs → textbox-CJP0S05E.cjs} +1 -1
- package/dist/{timeQueryBar-FJDQv-gp.js → timeQueryBar-B6WFuoFy.js} +1 -1
- package/dist/{timeQueryBar-Cmyan_30.cjs → timeQueryBar-B7m2zNqC.cjs} +1 -1
- package/dist/{timeSeries-t4uZvXRF.js → timeSeries-CBEMu62t.js} +12 -12
- package/dist/{timeSeries-_RLSUPmg.cjs → timeSeries-pv1B8rAD.cjs} +1 -1
- package/dist/{timeSeriesCurve-BxWiI6w-.js → timeSeriesCurve-C8I6T04V.js} +3 -3
- package/dist/{timeSeriesCurve-BUuLFQ8A.cjs → timeSeriesCurve-DfKXoiJf.cjs} +1 -1
- package/dist/{toggleBtn-BcpJcxpU.cjs → toggleBtn-D892Lgcg.cjs} +1 -1
- package/dist/{toggleBtn-Cx44qVci.js → toggleBtn-DxOPkmCn.js} +2 -2
- package/dist/{trajectoryConfigPanel-BTUv5OVS.cjs → trajectoryConfigPanel-2_KO7Fm_.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-dyo30nx9.js → trajectoryConfigPanel-CiHG2Nj3.js} +1 -1
- package/dist/{trajectoryScatter-CK4_Z1iU.cjs → trajectoryScatter-ceIqjQdd.cjs} +1 -1
- package/dist/{trajectoryScatter-BghFGqxH.js → trajectoryScatter-gYFCMKo8.js} +2 -2
- package/dist/{universalConfigPanel-Cvlpgn-j.cjs → universalConfigPanel-BuJ0pSOp.cjs} +1 -1
- package/dist/{universalConfigPanel-yJFrQDBa.js → universalConfigPanel-T07C_JVG.js} +1 -1
- package/dist/{universalTable-CvBC-L9Z.js → universalTable-C6iYcfCe.js} +2 -2
- package/dist/{universalTable-CRJ7Rx0P.cjs → universalTable-DA2F0v4F.cjs} +1 -1
- package/dist/useMixiotPanelPopperClass-DDtFtXLr.cjs +1 -0
- package/dist/useMixiotPanelPopperClass-DtvQI0g1.js +52 -0
- package/dist/{useTablemanApi-fqoMpRxe.cjs → useTablemanApi-BbUulkUz.cjs} +1 -1
- package/dist/{useTablemanApi-BAt370b-.js → useTablemanApi-Ch3eQRoG.js} +1 -1
- package/dist/{useTablemanFormPanel-Cxo0WsI1.cjs → useTablemanFormPanel-BdBoaHFU.cjs} +1 -1
- package/dist/{useTablemanFormPanel-BKbM39_H.js → useTablemanFormPanel-EtmBEDl7.js} +2 -2
- package/dist/{useTablemanListActions-DRXW-WTa.cjs → useTablemanListActions-Dlfnpnld.cjs} +1 -1
- package/dist/{useTablemanListActions-CYauYy6z.js → useTablemanListActions-gqs6gpza.js} +4 -4
- package/dist/{video-C1N8Ikkh.js → video-BVmqEL79.js} +2 -2
- package/dist/{video-BN19nKK_.cjs → video-jHJpadOt.cjs} +1 -1
- package/dist/{videoMonitor-PKypdwRl.cjs → videoMonitor-BZkwTydy.cjs} +1 -1
- package/dist/{videoMonitor-fkEuZ25x.js → videoMonitor-BwdC2_nR.js} +8 -8
- package/dist/{vlu-B8tqM9md.js → vlu-BSasXwGB.js} +2 -2
- package/dist/{vlu-DrABl6SW.cjs → vlu-DONKeVps.cjs} +1 -1
- package/dist/{warningOverview-_rp_SbLs.js → warningOverview-7bSJ0uSZ.js} +3 -3
- package/dist/{warningOverview-DaTHPveq.cjs → warningOverview-DVtqkIDv.cjs} +1 -1
- package/dist/{weather-B_XCWwDa.cjs → weather--IcwH6Si.cjs} +1 -1
- package/dist/{weather-qvsptrt0.js → weather-CVLrwzcA.js} +2 -2
- package/dist/{windLin-BDtJUYBu.js → windLin-ByNz1LOX.js} +2 -2
- package/dist/{windLin-P84T5W3o.cjs → windLin-C-BHdrGl.cjs} +1 -1
- package/package.json +1 -1
- package/dist/crd-C6iegy7d.cjs +0 -1
- package/dist/materialFileUrl-8YHw7z1T.cjs +0 -1
- package/dist/objectList-BcSCvy54.cjs +0 -1
- package/dist/objectList-DgVJlA1o.js +0 -1828
- package/dist/scd-DwdWl6Wz.cjs +0 -1
- package/dist/useMixiotPanelPopperClass-2tTzKUsO.cjs +0 -1
- package/dist/useMixiotPanelPopperClass-UGlVKJTK.js +0 -53
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var D=Object.defineProperty,N=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var x=(f,p,n)=>p in f?D(f,p,{enumerable:!0,configurable:!0,writable:!0,value:n}):f[p]=n,O=(f,p)=>{for(var n in p||(p={}))I.call(p,n)&&x(f,n,p[n]);if(T)for(var n of T(p))U.call(p,n)&&x(f,n,p[n]);return f},z=(f,p)=>N(f,L(p));var v=(f,p,n)=>new Promise((V,C)=>{var m=h=>{try{E(n.next(h))}catch(d){C(d)}},B=h=>{try{E(n.throw(h))}catch(d){C(d)}},E=h=>h.done?V(h.value):Promise.resolve(h.value).then(m,B);E((n=n.apply(f,p)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),F=require("./BaseComponent-
|
|
1
|
+
"use strict";var D=Object.defineProperty,N=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var x=(f,p,n)=>p in f?D(f,p,{enumerable:!0,configurable:!0,writable:!0,value:n}):f[p]=n,O=(f,p)=>{for(var n in p||(p={}))I.call(p,n)&&x(f,n,p[n]);if(T)for(var n of T(p))U.call(p,n)&&x(f,n,p[n]);return f},z=(f,p)=>N(f,L(p));var v=(f,p,n)=>new Promise((V,C)=>{var m=h=>{try{E(n.next(h))}catch(d){C(d)}},B=h=>{try{E(n.throw(h))}catch(d){C(d)}},E=h=>h.done?V(h.value):Promise.resolve(h.value).then(m,B);E((n=n.apply(f,p)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),F=require("./BaseComponent-BabOc6Kc.cjs"),$=require("./index-Cm7hGuPj.cjs"),j=require("./titleStyle-NSnz6cUg.cjs"),_=require("./ele-gridview-icon-D3GcssP6.cjs"),P={class:"mix-body"},M={class:"w-full flex flex-col"},H={key:0},R={key:2},q={DEFAULT_ICON:_.DEFAULT_ICON,ACTIVE_ICON:_.ACTIVE_ICON,NAME_CN:"数据表格",NAME_EN:"Data Table",ORDER:3,PLATFORM:["pc","screen","mobile"]},W={bgColor:"#fff",titleColor:"#111",borderColor:"#e5e5e5",splitColor:"#efefef",titleSize:14,radiusSize:8,height:32,position:{value:"center",type:"radio",option:[{value:"left",label:"component.list.left"},{value:"center",label:"component.list.center"},{value:"right",label:"component.list.right"}],label:"component.list.position"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},G=[[{isValue:!1,isBold:!1,name:"",bgColor:"rgba(0, 0, 0, 0)",color:"#333",fontSize:12},{isValue:!1,isBold:!1,name:"",bgColor:"rgba(0, 0, 0, 0)",color:"#333",fontSize:12}],[{isValue:!1,isBold:!1,name:"",bgColor:"rgba(0, 0, 0, 0)",color:"#333",fontSize:12},{isValue:!1,isBold:!1,name:"",bgColor:"rgba(0, 0, 0, 0)",color:"#333",fontSize:12}]],J=["isValue","name","fv","object_id","unit","default","isText","source"],K=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime","summary"],Q={useAlias:!1,multiObject:!1,source:"mosaic",rowNum:2,colNum:2,rowWidth:[50,50]},X={DEFAULT:q,OPTIONS:W,DATA:G,PARAMS:J,SOURCE:K,COMMON:Q},Y=t.defineComponent(z(O({},X),{__name:"gridview",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(f){const n=f;class V extends F.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),splitColor:this.getOptionValue("splitColor","#efefef"),borderColor:this.getOptionValue("borderColor","#e5e5e5"),titleSize:this.getOptionValue("titleSize",14),radiusSize:this.getOptionValue("radiusSize",8),position:this.getOptionValue("position","center"),height:this.getOptionValue("height",32),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return v(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme();const{data:a}=this.props.conf;a&&Array.isArray(a)&&a.forEach(s=>{Array.isArray(s)&&s.forEach(e=>{var o,r,b,u,y,g;"isValue"in e||(e.isValue=!1),"isBold"in e||(e.isBold=!1),"name"in e||(e.name=""),"fv"in e||(e.fv=""),"bgColor"in e||(e.bgColor="rgba(0, 0, 0, 0)"),"color"in e||(e.color="#333"),"fontSize"in e||(e.fontSize=12),"unit"in e||(e.unit=""),"default"in e||(e.default=""),"isText"in e||(e.isText=!1),"statusType"in e||(e.statusType=0);const i=Number(e.statusType);e.statusType=Number.isFinite(i)?i:0,e.statusType===1?!e.status||typeof e.status!="object"||Array.isArray(e.status)?e.status={online:"1",offline:"0",standby:""}:((r=(o=e.status).online)!=null||(o.online="1"),(u=(b=e.status).offline)!=null||(b.offline="0"),(g=(y=e.status).standby)!=null||(y.standby="")):e.statusType===2?((!Array.isArray(e.status)||e.status.length===0)&&(e.status=[{code:"",text:"",color:"#333333"}]),e.status.forEach(l=>{var A,S,k;!l||typeof l!="object"||((A=l.code)!=null||(l.code=""),(S=l.text)!=null||(l.text=""),(k=l.color)!=null||(l.color="#333333"))})):(!e.status||typeof e.status!="object"||Array.isArray(e.status))&&(e.status={online:"1",offline:"0",standby:""})})})})}needsHistoryData(){const{data:a}=this.props.conf;return Array.isArray(a)?a.some(s=>Array.isArray(s)&&s.some(e=>{var i;return(e==null?void 0:e.isValue)&&String((i=e==null?void 0:e.fv)!=null?i:"").trim().length>0})):!1}initHistory(){return v(this,null,function*(){const{data:a}=this.props.conf;if(!Array.isArray(a)||!a.length)return[];const s=a.map(i=>({data:new Array(Array.isArray(i)?i.length:0),time:new Array(Array.isArray(i)?i.length:0)})),e=[];return a.forEach((i,o)=>{Array.isArray(i)&&i.forEach((r,b)=>{var u;!(r!=null&&r.isValue)||!String((u=r==null?void 0:r.fv)!=null?u:"").trim()||e.push({row:o,col:b,item:r})})}),yield Promise.all(e.map(b=>v(this,[b],function*({row:i,col:o,item:r}){var g,l,A;const u=yield this.postDataItem(r),y=(l=(g=u==null?void 0:u.data)==null?void 0:g.length)!=null?l:0;y>0?(s[i].data[o]=u.data[y-1],s[i].time[o]=(A=u.time)==null?void 0:A[y-1]):s[i].data[o]="--"}))),s})}onPreview(){return v(this,null,function*(){var r,b,u;const{common:a,data:s}=this.props.conf,e=this.getSource(),i=[];if(Array.isArray(s)){for(const y of s)if(Array.isArray(y))for(const g of y)g!=null&&g.isValue&&String((r=g.fv)!=null?r:"").trim()&&i.push(g)}if(!i.length)return;const o=yield this.expandAliasData(i);if(a.multiObject&&Array.isArray(o)&&o.length){const y=new Set;(yield Promise.all(o.map(l=>v(this,null,function*(){return{item:l,objectIds:yield this.resolveObjectIds(l)}})))).forEach(({item:l,objectIds:A})=>{A.forEach(S=>{!S||y.has(S)||(y.add(S),this.subscribeBySource(e,S,l.uid))})})}else{const y=yield this.resolveObjectId((b=o[0])!=null?b:a),g=(u=o==null?void 0:o[0])==null?void 0:u.uid;this.subscribeBySource(e,y,g)}})}setHistoryData(a){if(!a)return;const{data:s}=this.props.conf;!Array.isArray(s)||!s.length||s.forEach((e,i)=>{const o=a[i];o!=null&&o.data&&e.forEach((r,b)=>{var y;if(!r.isValue||!String((y=r==null?void 0:r.fv)!=null?y:"").trim()){r.isValue&&r.default!==void 0&&(r.value=r.default);return}const u=o.data[b];u!=null?r.value=u:r.value="--"})})}setSocketData(a){if(!a)return;const{data:s}=this.props.conf;s.forEach(e=>{e.forEach(i=>{var o;if(!(!i.isValue||!String((o=i==null?void 0:i.fv)!=null?o:"").trim()))try{const r=this.extractDataValue(a,i.fv);i.value=r!=null?r:"--"}catch(r){console.error("[gridview] 提取数据失败:",r,i),i.value="--"}})})}}const C=new V(n,"gridview");C.setupLifecycle();const m=C.getStyle(),B=t.computed(()=>j.generateTitleStyle(n.conf.options)),E={left:"flex-start",center:"center",right:"flex-end"},h=c=>{const a={text:"",color:""};return Array.isArray(c.status)&&c.status.forEach(s=>{String(s.code)===String(c.value)&&(a.text=s.text,a.color=s.color)}),a},d=c=>{let a="standby";if(c!=null&&c.status&&typeof c.status=="object"&&!Array.isArray(c.status))for(const s in c.status)String(c.status[s])===String(c.value)&&(a=s);return a},w=c=>{var e;const a=c.unit||"";return((e=c.value)!=null?e:"")+a};return(c,a)=>{var s;return t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({backgroundColor:t.unref(m).bgColor,borderRadius:`${t.unref(m).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(B.value)},t.toDisplayString(f.conf.caption||f.conf.name),5),t.createElementVNode("div",P,[t.createElementVNode("div",M,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((s=f.conf)==null?void 0:s.data,(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"tr",style:t.normalizeStyle({height:`${t.unref(m).height}px`,borderColor:`${t.unref(m).borderColor}`,backgroundColor:Number(i)%2===0?t.unref(m).splitColor:"transparent"}),key:i},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e,(o,r)=>(t.openBlock(),t.createElementBlock("div",{class:"td",style:t.normalizeStyle({width:`${f.conf.common.rowWidth[r]}%`,borderColor:`${t.unref(m).borderColor}`,color:`${o.color}`,fontSize:`${o.fontSize}px`,backgroundColor:`${o.bgColor}`,fontWeight:`${o.isBold?"bold":"normal"}`}),key:r},[t.createElementVNode("div",{class:"w-full px-3 flex",style:t.normalizeStyle({justifyContent:E[t.unref(m).position]})},[o.isValue?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[o.statusType===1?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({width:`${o.fontSize}px`,height:`${o.fontSize}px`}),class:t.normalizeClass(d(o))},null,6)):o.statusType===2?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle({color:h(o).color})},t.toDisplayString(h(o).text),5)):(t.openBlock(),t.createElementBlock("div",R,t.toDisplayString(w(o)),1))],64)):(t.openBlock(),t.createElementBlock("div",H,t.toDisplayString(o.name),1))],4)],4))),128))],4))),128))])]),t.renderSlot(c.$slots,"default",{},void 0,!0)],4)}}})),Z=$._export_sfc(Y,[["__scopeId","data-v-deca7b2b"]]);exports.default=Z;
|
|
@@ -17,8 +17,8 @@ import "element-plus/es/components/date-picker/style/css";
|
|
|
17
17
|
import "element-plus/es/components/select/style/css";
|
|
18
18
|
import "element-plus/es/components/option/style/css";
|
|
19
19
|
import { defineComponent as X, computed as _, reactive as Z, openBlock as u, createElementBlock as C, normalizeStyle as ee, createElementVNode as i, createVNode as p, withCtx as h, Fragment as w, renderList as D, createBlock as T, normalizeClass as te, toDisplayString as le, createTextVNode as ae, renderSlot as oe } from "vue";
|
|
20
|
-
import { B as ne } from "./BaseComponent-
|
|
21
|
-
import { d as Y, _ as re } from "./index-
|
|
20
|
+
import { B as ne } from "./BaseComponent-7Sa7XOg-.js";
|
|
21
|
+
import { d as Y, _ as re } from "./index-DUL649KZ.js";
|
|
22
22
|
import { A as se, D as ie } from "./ele-vlu-icon-Bg6EHZdJ.js";
|
|
23
23
|
const ue = { class: "filter-bar" }, ce = { class: "filter-item" }, me = { class: "filter-item" }, de = { class: "filter-item" }, pe = { class: "time-range-btns" }, fe = ["onClick"], ge = { class: "filter-item" }, be = {
|
|
24
24
|
DEFAULT_ICON: ie,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var A=Object.defineProperty,I=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var w=(i,r,s)=>r in i?A(i,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[r]=s,V=(i,r)=>{for(var s in r||(r={}))H.call(r,s)&&w(i,s,r[s]);if(k)for(var s of k(r))U.call(r,s)&&w(i,s,r[s]);return i},D=(i,r)=>I(i,F(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const t=require("vue"),z=require("./BaseComponent-
|
|
1
|
+
"use strict";var A=Object.defineProperty,I=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var w=(i,r,s)=>r in i?A(i,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[r]=s,V=(i,r)=>{for(var s in r||(r={}))H.call(r,s)&&w(i,s,r[s]);if(k)for(var s of k(r))U.call(r,s)&&w(i,s,r[s]);return i},D=(i,r)=>I(i,F(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const t=require("vue"),z=require("./BaseComponent-BabOc6Kc.cjs"),v=require("./index-Cm7hGuPj.cjs"),S=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),q={class:"filter-bar"},L={class:"filter-item"},G={class:"filter-item"},P={class:"filter-item"},$={class:"time-range-btns"},Q=["onClick"],W={class:"filter-item"},J={DEFAULT_ICON:S.DEFAULT_ICON,ACTIVE_ICON:S.ACTIVE_ICON,NAME_CN:"地下水筛选栏",NAME_EN:"Groundwater Filter Bar",ORDER:1,PLATFORM:["pc","screen"]},K={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},labelColor:{value:"#1c3d90",type:"color",label:"标签文字颜色"},fontSize:{value:"13",type:"select",label:"字体大小",options:[{label:"小 (12px)",value:"12"},{label:"标准 (13px)",value:"13"},{label:"大 (14px)",value:"14"},{label:"特大 (16px)",value:"16"}]},btnColor:{value:"#409eff",type:"color",label:"按钮主色"},defaultTimeRange:{value:"1d",type:"select",label:"默认时间范围",options:[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}]},linkChannel:{value:"groundwater",type:"select",label:"component.linkChannel",options:[{label:"地下水监测",value:"groundwater"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},X=[{name:"GROUND101",object_id:"",region:"北帮"},{name:"GROUND102",object_id:"",region:"北帮"},{name:"GROUND201",object_id:"",region:"南帮"},{name:"GROUND305",object_id:"",region:"东帮"},{name:"GROUND410",object_id:"",region:"西帮"}],Z=["name","object_id","region"],ee=["mosaic"],te={useAlias:!1,multiObject:!0,source:"mosaic"},le=50,oe={DEFAULT:J,OPTIONS:K,DATA:X,PARAMS:Z,SOURCE:ee,ITEMS:le,COMMON:te},ae=t.defineComponent(D(V({},oe),{__name:"groundwaterFilterBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const r=i;class s extends z.BaseComponent{extractStyles(){var g,f,o,_,N,E,R,h;const e=(g=this.props.conf)==null?void 0:g.options,n=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"groundwater",d=((o=e==null?void 0:e.customChannel)==null?void 0:o.value)||"";return{bgColor:((_=e==null?void 0:e.bgColor)==null?void 0:_.value)||"#ffffff",labelColor:((N=e==null?void 0:e.labelColor)==null?void 0:N.value)||"#1c3d90",fontSize:(((E=e==null?void 0:e.fontSize)==null?void 0:E.value)||"13")+"px",btnColor:((R=e==null?void 0:e.btnColor)==null?void 0:R.value)||"#409eff",defaultTimeRange:((h=e==null?void 0:e.defaultTimeRange)==null?void 0:h.value)||"1d",linkChannel:n==="custom"&&d?d:n}}}const C=new s(r,"groundwaterFilterBar");C.setupLifecycle();const c=C.getStyle(),m=t.computed(()=>{var e;const l=(e=r.conf)==null?void 0:e.data;return!l||!Array.isArray(l)?[]:l.filter(n=>n.name)}),Y=t.computed(()=>{const l=new Set;return m.value.forEach(e=>{e.region&&l.add(e.region)}),Array.from(l)}),y=t.computed(()=>{let l=m.value;return a.region&&(l=l.filter(e=>e.region===a.region)),l.map(e=>({label:e.name,value:e.name}))}),B=[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}],u=m.value[0],p=c.value.defaultTimeRange||"1d",a=t.reactive({region:(u==null?void 0:u.region)||"",points:u?[u.name]:[],timeRange:p,dateRange:[v.dayjs().subtract(p==="1m"?1:p==="1w"?7:1,p==="1m"?"month":"day").format("YYYY/MM/DD HH:mm"),v.dayjs().format("YYYY/MM/DD HH:mm")]}),M=()=>{const l=y.value;a.points=l.length>0?[l[0].value]:[]},O=l=>{a.timeRange=l;const e=v.dayjs(),n=l==="1d"?e.subtract(1,"day"):l==="1w"?e.subtract(1,"week"):e.subtract(1,"month");a.dateRange=[n.format("YYYY/MM/DD HH:mm"),e.format("YYYY/MM/DD HH:mm")]},j=()=>{a.timeRange=""},T=()=>{if(r.mode==="edit"||a.points.length===0)return;const l=m.value.filter(n=>a.points.includes(n.name)),e=[...new Set(l.map(n=>n.object_id).filter(Boolean))];if(e.length===0){console.warn("[地下水筛选栏] 所选监测点未配置 object_id,无法发送联动");return}C.publish({type:"filter",region:a.region,selectedMonitors:a.points,objectId:e[0]||"",objectIds:e,sensors:l.map(n=>({name:n.name,objectId:n.object_id})),timeRange:a.timeRange,dateRange:[...a.dateRange]})},x=t.computed(()=>({backgroundColor:c.value.bgColor,"--label-color":c.value.labelColor,"--btn-color":c.value.btnColor,"--font-size":c.value.fontSize}));return(l,e)=>{const n=b.ElOption,d=b.ElSelect,g=b.ElDatePicker,f=b.ElButton;return t.openBlock(),t.createElementBlock("div",{class:"gw-filter-bar-wrap",style:t.normalizeStyle(x.value)},[t.createElementVNode("div",q,[t.createElementVNode("div",L,[e[3]||(e[3]=t.createElementVNode("span",{class:"filter-label"},"区域位置:",-1)),t.createVNode(d,{modelValue:a.region,"onUpdate:modelValue":e[0]||(e[0]=o=>a.region=o),placeholder:"全部区域",size:"small",style:{width:"120px"},onChange:M},{default:t.withCtx(()=>[t.createVNode(n,{label:"全部区域",value:""}),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Y.value,o=>(t.openBlock(),t.createBlock(n,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),t.createElementVNode("div",G,[e[4]||(e[4]=t.createElementVNode("span",{class:"filter-label"},"监测点:",-1)),t.createVNode(d,{modelValue:a.points,"onUpdate:modelValue":e[1]||(e[1]=o=>a.points=o),placeholder:"请选择",size:"small",style:{width:"180px"},multiple:"","collapse-tags":"","collapse-tags-tooltip":""},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value,o=>(t.openBlock(),t.createBlock(n,{key:o.value,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),t.createElementVNode("div",P,[e[5]||(e[5]=t.createElementVNode("span",{class:"filter-label"},"时间范围:",-1)),t.createElementVNode("div",$,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(B,o=>t.createElementVNode("button",{key:o.value,class:t.normalizeClass(["range-btn",{active:a.timeRange===o.value}]),onClick:_=>O(o.value)},t.toDisplayString(o.label),11,Q)),64))])]),t.createElementVNode("div",W,[t.createVNode(g,{modelValue:a.dateRange,"onUpdate:modelValue":e[2]||(e[2]=o=>a.dateRange=o),type:"datetimerange",size:"small",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",style:{width:"340px"},onChange:j},null,8,["modelValue"])]),t.createVNode(f,{type:"primary",size:"small",onClick:T},{default:t.withCtx(()=>[...e[6]||(e[6]=[t.createTextVNode("查询",-1)])]),_:1})]),t.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),ne=v._export_sfc(ae,[["__scopeId","data-v-a925402f"]]);exports.default=ne;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var K=Object.defineProperty,Q=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols,Z=Object.getPrototypeOf,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,oe=Reflect.get;var L=(c,t,o)=>t in c?K(c,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):c[t]=o,B=(c,t)=>{for(var o in t||(t={}))ee.call(t,o)&&L(c,o,t[o]);if(T)for(var o of T(t))te.call(t,o)&&L(c,o,t[o]);return c},F=(c,t)=>Q(c,X(t));var W=(c,t,o)=>oe(Z(c),o,t);var z=(c,t,o)=>new Promise((h,y)=>{var x=v=>{try{d(o.next(v))}catch(I){y(I)}},w=v=>{try{d(o.throw(v))}catch(I){y(I)}},d=v=>v.done?h(v.value):Promise.resolve(v.value).then(x,w);d((o=o.apply(c,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const r=require("vue"),H=require("./index-
|
|
1
|
+
"use strict";var K=Object.defineProperty,Q=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols,Z=Object.getPrototypeOf,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,oe=Reflect.get;var L=(c,t,o)=>t in c?K(c,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):c[t]=o,B=(c,t)=>{for(var o in t||(t={}))ee.call(t,o)&&L(c,o,t[o]);if(T)for(var o of T(t))te.call(t,o)&&L(c,o,t[o]);return c},F=(c,t)=>Q(c,X(t));var W=(c,t,o)=>oe(Z(c),o,t);var z=(c,t,o)=>new Promise((h,y)=>{var x=v=>{try{d(o.next(v))}catch(I){y(I)}},w=v=>{try{d(o.throw(v))}catch(I){y(I)}},d=v=>v.done?h(v.value):Promise.resolve(v.value).then(x,w);d((o=o.apply(c,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const r=require("vue"),H=require("./index-Cm7hGuPj.cjs");require("element-plus");const ne=require("./EChartComponentBase-DM6aSCAR.cjs"),le=require("@element-plus/icons-vue"),Y=require("./ele-lin-icon-Dke_1AmT.cjs"),ae={class:"chart-panel"},re={class:"panel-header"},ie={class:"header-left"},se={class:"panel-title"},ce={class:"header-right"},ue=["id"],de={DEFAULT_ICON:Y.DEFAULT_ICON,ACTIVE_ICON:Y.ACTIVE_ICON,NAME_CN:"地下水位剖面图",NAME_EN:"Groundwater Profile Chart",ORDER:3,PLATFORM:["pc","screen"]},fe={title:{value:"地下水位及地层剖面结构分析",type:"string",label:"标题"},bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleColor:{value:"#1c3d90",type:"color",label:"标题颜色"},slideSurfaceColor:{value:"#ff0000",type:"color",label:"潜在滑面颜色"},slideSurfaceWidth:{value:"6",type:"select",label:"滑面线宽",options:[{label:"细 (3px)",value:"3"},{label:"标准 (6px)",value:"6"},{label:"粗 (9px)",value:"9"}]},pointColor:{value:"#f5222d",type:"color",label:"监测点颜色"},pointSize:{value:"18",type:"select",label:"监测点大小",options:[{label:"小 (12)",value:"12"},{label:"标准 (18)",value:"18"},{label:"大 (24)",value:"24"}]},yMin:{value:"1100",type:"string",label:"Y轴最小值(标高m)"},yMax:{value:"1260",type:"string",label:"Y轴最大值(标高m)"},linkChannel:{value:"groundwater",type:"select",label:"component.linkChannel",options:[{label:"地下水监测",value:"groundwater"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},pe=[{name:"水面高程(m)",fv:"",object_id:"",device:""}],ve=["name","fv","object_id","device"],me=["mosaic"],ye={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},he=50,be={DEFAULT:de,OPTIONS:fe,DATA:pe,PARAMS:ve,SOURCE:me,ITEMS:he,COMMON:ye},ge=r.defineComponent(F(B({},be),{__name:"groundwaterProfileChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(c){const t=c,o=r.ref(new Map),h=r.ref([]);let y=0,x=null;class w extends ne.EChartComponentBase{extractStyles(){var s,f,p,i,m,E,u,S,b,P,g,A,C,j;const e=(s=this.props.conf)==null?void 0:s.options,a=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"groundwater",l=((p=e==null?void 0:e.customChannel)==null?void 0:p.value)||"";return{bgColor:((i=e==null?void 0:e.bgColor)==null?void 0:i.value)||"#f5f7fa",panelBgColor:((m=e==null?void 0:e.panelBgColor)==null?void 0:m.value)||"#ffffff",textColor:((E=e==null?void 0:e.textColor)==null?void 0:E.value)||"#333333",titleColor:((u=e==null?void 0:e.titleColor)==null?void 0:u.value)||"#1c3d90",title:((S=e==null?void 0:e.title)==null?void 0:S.value)||"地下水位及地层剖面结构分析",slideSurfaceColor:((b=e==null?void 0:e.slideSurfaceColor)==null?void 0:b.value)||"#ff0000",slideSurfaceWidth:parseInt(((P=e==null?void 0:e.slideSurfaceWidth)==null?void 0:P.value)||"6"),pointColor:((g=e==null?void 0:e.pointColor)==null?void 0:g.value)||"#f5222d",pointSize:parseInt(((A=e==null?void 0:e.pointSize)==null?void 0:A.value)||"18"),yMin:parseInt(((C=e==null?void 0:e.yMin)==null?void 0:C.value)||"1100"),yMax:parseInt(((j=e==null?void 0:e.yMax)==null?void 0:j.value)||"1260"),linkChannel:a==="custom"&&l?l:a}}getChartOption(){return k()}needsHistoryData(){return!1}onPreview(){return z(this,null,function*(){var a,l,s,f,p;const e=((l=(a=this.props.conf)==null?void 0:a.common)==null?void 0:l.object_id)||((p=(f=(s=this.props.conf)==null?void 0:s.data)==null?void 0:f[0])==null?void 0:p.object_id)||"";if(e&&h.value.length===0){h.value=[e],yield D([e]);return}yield W(w.prototype,this,"onPreview").call(this)})}setSocketData(e){var p;if(!e)return;const a=e.object_id||e.objectId||"";if(a&&h.value.length>0&&!h.value.includes(a))return;const l=((p=this.props.conf)==null?void 0:p.data)||[];let s=null,f="";if(l.forEach(i=>{if(i.fv){const m=this.extractDataValue(e,i.fv);m!=null&&(s=parseFloat(m))}if(i.device){const m=this.extractDataValue(e,i.device);m!=null&&String(m).trim()&&(f=String(m).trim())}}),a&&s!=null){const i=o.value.get(a);o.value.set(a,{name:f||(i==null?void 0:i.name)||a.slice(-6),elevation:s,region:(i==null?void 0:i.region)||"未知"}),o.value=new Map(o.value),this.chartObj&&this.chartObj.setOption(k(),!1)}}onLinkEvent(e){J(e)}}const d=new w(t,"groundwaterProfileChart");d.setupLifecycle();const v=d.getStyle(),I=d.getEchartId(),$=r.computed(()=>({backgroundColor:v.value.bgColor,color:v.value.textColor,"--title-color":v.value.titleColor})),O=()=>{o.value.clear(),[{id:"mock-1",name:"水位计01",elevation:1182.5,region:"北帮"},{id:"mock-2",name:"水位计02",elevation:1195.3,region:"北帮"},{id:"mock-3",name:"流量计01",elevation:1210.8,region:"南帮"}].forEach(e=>{o.value.set(e.id,{name:e.name,elevation:e.elevation,region:e.region})}),o.value=new Map(o.value)},k=()=>{const n=v.value,e=[];let a=0;for(const[,l]of o.value)e.push({name:l.name,value:[15+a*20,l.elevation],region:l.region,elevation:l.elevation}),a++;return e.length===0&&t.mode==="edit"&&e.push({name:"水位计01",value:[15,1182.5],region:"北帮",elevation:1182.5},{name:"水位计02",value:[35,1195.3],region:"北帮",elevation:1195.3},{name:"流量计01",value:[55,1210.8],region:"南帮",elevation:1210.8}),{title:{text:n.title,left:"center",top:10,textStyle:{color:n.titleColor,fontSize:14}},graphic:[{type:"group",left:"center",top:40,children:[{type:"rect",z:100,left:0,top:0,shape:{width:20,height:12},style:{fill:"none",stroke:"#333",lineWidth:1}},{type:"text",z:100,left:25,top:0,style:{fill:"#333",text:"潜在滑面位置",font:"12px sans-serif"}}]}],tooltip:{trigger:"item",backgroundColor:"rgba(0, 21, 41, 0.9)",borderColor:"#85C6F1",textStyle:{color:"#fff",fontSize:12},formatter:l=>{if(l.seriesName==="潜在滑面")return`<div style="padding:5px;">
|
|
2
2
|
<b style="color:#85C6F1;">潜在滑面位置</b><br/>
|
|
3
3
|
<hr style="margin:5px 0; opacity:0.3;">
|
|
4
4
|
所属区域:北帮<br/>
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
<hr style="margin:5px 0; opacity:0.3;">
|
|
9
9
|
所属区域:${p}<br/>
|
|
10
10
|
<b>监测标高:${i} m</b>
|
|
11
|
-
</div>`}},grid:{top:70,bottom:40,left:60,right:60},xAxis:{name:"水平距离(m)",type:"value",min:0,max:100,splitLine:{show:!1},axisLine:{lineStyle:{color:"#999"}}},yAxis:{name:"标高(m)",type:"value",min:n.yMin,max:n.yMax,splitLine:{show:!0,lineStyle:{type:"dashed",color:"#eee"}},axisLine:{lineStyle:{color:"#999"}}},series:[{type:"line",silent:!0,markArea:{label:{show:!0,position:"right",color:"#666",fontSize:10,fontStyle:"italic"},data:[[{name:"表层覆盖土",yAxis:1200,itemStyle:{color:"rgba(160, 130, 100, 0.2)"}},{yAxis:1260}],[{name:"强风化层",yAxis:1160,itemStyle:{color:"rgba(210, 180, 140, 0.2)"}},{yAxis:1200}],[{name:"中风化岩层",yAxis:1130,itemStyle:{color:"rgba(180, 190, 200, 0.2)"}},{yAxis:1160}],[{name:"稳定基岩",yAxis:1100,itemStyle:{color:"rgba(130, 140, 150, 0.2)"}},{yAxis:1130}]]}},{name:"潜在滑面",type:"line",data:[[0,n.yMin+30],[100,n.yMax-40]],symbol:"none",lineStyle:{color:n.slideSurfaceColor,width:n.slideSurfaceWidth,cap:"round"},markPoint:{data:[{coord:[85,n.yMin+30+(n.yMax-40-n.yMin-30)*.85],symbol:"circle",symbolSize:15,itemStyle:{color:"none",borderColor:"#333",borderWidth:1}}]},z:5},{name:"监测点位",type:"scatter",symbolSize:n.pointSize,data:e,z:10,itemStyle:{color:n.pointColor,borderColor:"#fff",borderWidth:2,shadowBlur:10,shadowColor:n.pointColor+"80"}}]}},N=()=>{const n=d.getChartInstance();n&&n.setOption(k(),!0)},G=()=>{const n=d.getChartInstance();if(!n)return;const e=document.createElement("a");e.href=n.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`地下水位剖面图_${H.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},J=n=>{const{payload:e}=n;if(!e)return;if(e.type==="filter"){e.dateRange&&Array.isArray(e.dateRange)&&e.dateRange.length===2&&(x={start_time:e.dateRange[0],end_time:e.dateRange[1]});const l=e.objectIds&&e.objectIds.length>0?e.objectIds:e.objectId?[e.objectId]:[];l.length>0&&(h.value=l,D(l,e.sensors)),(t.mode==="edit"||l.length===0)&&(O(),N());return}const a=e.objectId||e.object_id;a&&(h.value=[a],D([a]))},D=(n,e)=>z(null,null,function*(){var E;if(!n.length||t.mode!=="preview")return;const a=++y;o.value.clear(),e&&e.forEach(u=>{u.objectId&&o.value.set(u.objectId,{name:u.name,elevation:0,region:"未知"})});const l=(E=d.session)==null?void 0:E.value;if(!l)return;const s=t.conf.id;l.componentRequests&&l.componentRequests.delete(s),typeof l.unsubscribeComponent=="function"&&l.unsubscribeComponent(s);const{data:f,common:p}=t.conf;x&&(p.historyTimeRange=x),t.conf.options||(t.conf.options={});const i=t.conf.options.points,m=Object.prototype.hasOwnProperty.call(t.conf.options,"points");(!i||Number(i)<24)&&(t.conf.options.points=24);for(const u of n){if(y!==a)return;Array.isArray(f)&&f.forEach(b=>{b.object_id=u}),p.multiObject||(p.object_id=u);try{const b=yield Promise.resolve().then(()=>require("./history-
|
|
11
|
+
</div>`}},grid:{top:70,bottom:40,left:60,right:60},xAxis:{name:"水平距离(m)",type:"value",min:0,max:100,splitLine:{show:!1},axisLine:{lineStyle:{color:"#999"}}},yAxis:{name:"标高(m)",type:"value",min:n.yMin,max:n.yMax,splitLine:{show:!0,lineStyle:{type:"dashed",color:"#eee"}},axisLine:{lineStyle:{color:"#999"}}},series:[{type:"line",silent:!0,markArea:{label:{show:!0,position:"right",color:"#666",fontSize:10,fontStyle:"italic"},data:[[{name:"表层覆盖土",yAxis:1200,itemStyle:{color:"rgba(160, 130, 100, 0.2)"}},{yAxis:1260}],[{name:"强风化层",yAxis:1160,itemStyle:{color:"rgba(210, 180, 140, 0.2)"}},{yAxis:1200}],[{name:"中风化岩层",yAxis:1130,itemStyle:{color:"rgba(180, 190, 200, 0.2)"}},{yAxis:1160}],[{name:"稳定基岩",yAxis:1100,itemStyle:{color:"rgba(130, 140, 150, 0.2)"}},{yAxis:1130}]]}},{name:"潜在滑面",type:"line",data:[[0,n.yMin+30],[100,n.yMax-40]],symbol:"none",lineStyle:{color:n.slideSurfaceColor,width:n.slideSurfaceWidth,cap:"round"},markPoint:{data:[{coord:[85,n.yMin+30+(n.yMax-40-n.yMin-30)*.85],symbol:"circle",symbolSize:15,itemStyle:{color:"none",borderColor:"#333",borderWidth:1}}]},z:5},{name:"监测点位",type:"scatter",symbolSize:n.pointSize,data:e,z:10,itemStyle:{color:n.pointColor,borderColor:"#fff",borderWidth:2,shadowBlur:10,shadowColor:n.pointColor+"80"}}]}},N=()=>{const n=d.getChartInstance();n&&n.setOption(k(),!0)},G=()=>{const n=d.getChartInstance();if(!n)return;const e=document.createElement("a");e.href=n.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`地下水位剖面图_${H.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},J=n=>{const{payload:e}=n;if(!e)return;if(e.type==="filter"){e.dateRange&&Array.isArray(e.dateRange)&&e.dateRange.length===2&&(x={start_time:e.dateRange[0],end_time:e.dateRange[1]});const l=e.objectIds&&e.objectIds.length>0?e.objectIds:e.objectId?[e.objectId]:[];l.length>0&&(h.value=l,D(l,e.sensors)),(t.mode==="edit"||l.length===0)&&(O(),N());return}const a=e.objectId||e.object_id;a&&(h.value=[a],D([a]))},D=(n,e)=>z(null,null,function*(){var E;if(!n.length||t.mode!=="preview")return;const a=++y;o.value.clear(),e&&e.forEach(u=>{u.objectId&&o.value.set(u.objectId,{name:u.name,elevation:0,region:"未知"})});const l=(E=d.session)==null?void 0:E.value;if(!l)return;const s=t.conf.id;l.componentRequests&&l.componentRequests.delete(s),typeof l.unsubscribeComponent=="function"&&l.unsubscribeComponent(s);const{data:f,common:p}=t.conf;x&&(p.historyTimeRange=x),t.conf.options||(t.conf.options={});const i=t.conf.options.points,m=Object.prototype.hasOwnProperty.call(t.conf.options,"points");(!i||Number(i)<24)&&(t.conf.options.points=24);for(const u of n){if(y!==a)return;Array.isArray(f)&&f.forEach(b=>{b.object_id=u}),p.multiObject||(p.object_id=u);try{const b=yield Promise.resolve().then(()=>require("./history-BKLujk4W.cjs")),g=yield new b.default().getHistoryData(t,"groundwaterProfileChart");if(y!==a)return;const A=(g==null?void 0:g.history)||(Array.isArray(g)?g:[]);A.length>0&&f.forEach((C,j)=>{if(!C.fv)return;const M=A[j];if(!Array.isArray(M)||M.length===0)return;const V=M[M.length-1],R=V[C.fv];if(R!=null){const _=o.value.get(u);let q=(_==null?void 0:_.name)||u.slice(-6);C.device&&V[C.device]&&(q=String(V[C.device])),o.value.set(u,{name:q,elevation:parseFloat(R),region:(_==null?void 0:_.region)||"未知"})}})}catch(b){console.warn("[地下水剖面图] 历史数据获取失败:",b)}if(y!==a)return;const S=d.getSource();d.subscribeBySource(S,u)}m?t.conf.options.points=i:delete t.conf.options.points,y===a&&(o.value=new Map(o.value),N(),l.registerComponent({id:s,request:null,onUpdate:(u,S)=>{y===a&&u==="realtime"&&d.setSocketData(S)}}))});return r.onMounted(()=>{t.mode==="edit"&&O(),setTimeout(()=>{var n;return(n=d.getChartInstance())==null?void 0:n.resize()},200)}),r.watch(()=>t.conf,()=>{t.mode==="edit"&&(O(),N())},{deep:!0}),(n,e)=>{const a=U.ElIcon,l=U.ElButton;return r.openBlock(),r.createElementBlock("div",{class:"gw-profile-chart",style:r.normalizeStyle($.value)},[r.createElementVNode("div",ae,[r.createElementVNode("div",re,[r.createElementVNode("div",ie,[e[0]||(e[0]=r.createElementVNode("span",{class:"indicator-dot"},null,-1)),r.createElementVNode("span",se,"🏔️ "+r.toDisplayString(r.unref(v).title),1)]),r.createElementVNode("div",ce,[r.createVNode(l,{size:"small",onClick:G},{default:r.withCtx(()=>[r.createVNode(a,null,{default:r.withCtx(()=>[r.createVNode(r.unref(le.Download))]),_:1}),e[1]||(e[1]=r.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),r.createElementVNode("div",{id:r.unref(I),class:"chart-container"},null,8,ue)]),r.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),Ce=H._export_sfc(ge,[["__scopeId","data-v-9e86c798"]]);exports.default=Ce;
|
|
@@ -31,9 +31,9 @@ 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/icon/style/css";
|
|
33
33
|
import { defineComponent as ie, ref as $, computed as re, onMounted as se, watch as ce, openBlock as ue, createElementBlock as de, normalizeStyle as fe, createElementVNode as C, toDisplayString as pe, unref as L, createVNode as T, withCtx as q, renderSlot as me } from "vue";
|
|
34
|
-
import { d as ve, _ as ye } from "./index-
|
|
34
|
+
import { d as ve, _ as ye } from "./index-DUL649KZ.js";
|
|
35
35
|
import "element-plus";
|
|
36
|
-
import { E as he } from "./EChartComponentBase-
|
|
36
|
+
import { E as he } from "./EChartComponentBase-DCKFGbqb.js";
|
|
37
37
|
import { Download as be } from "@element-plus/icons-vue";
|
|
38
38
|
import { A as ge, D as Ce } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
39
39
|
const Se = { class: "chart-panel" }, _e = { class: "panel-header" }, xe = { class: "header-left" }, we = { class: "panel-title" }, Ae = { class: "header-right" }, je = ["id"], Ie = {
|
|
@@ -363,7 +363,7 @@ const Se = { class: "chart-panel" }, _e = { class: "panel-header" }, xe = { clas
|
|
|
363
363
|
h.object_id = c;
|
|
364
364
|
}), f.multiObject || (f.object_id = c);
|
|
365
365
|
try {
|
|
366
|
-
const h = yield import("./history-
|
|
366
|
+
const h = yield import("./history-BvM7EXsN.js"), b = yield new h.default().getHistoryData(t, "groundwaterProfileChart");
|
|
367
367
|
if (v !== a) return;
|
|
368
368
|
const I = (b == null ? void 0 : b.history) || (Array.isArray(b) ? b : []);
|
|
369
369
|
I.length > 0 && d.forEach((g, M) => {
|
|
@@ -34,9 +34,9 @@ import "element-plus/es/components/checkbox/style/css";
|
|
|
34
34
|
import "element-plus/es/components/button/style/css";
|
|
35
35
|
import "element-plus/es/components/icon/style/css";
|
|
36
36
|
import { defineComponent as Ye, ref as z, computed as j, watch as ce, onMounted as Ve, openBlock as P, createElementBlock as B, normalizeStyle as ue, createElementVNode as h, toDisplayString as U, unref as W, createVNode as A, withCtx as k, createTextVNode as ee, Fragment as de, renderList as fe, createBlock as Re, normalizeClass as Pe, renderSlot as He } from "vue";
|
|
37
|
-
import { d as q, _ as Fe } from "./index-
|
|
37
|
+
import { d as q, _ as Fe } from "./index-DUL649KZ.js";
|
|
38
38
|
import "element-plus";
|
|
39
|
-
import { E as ze } from "./EChartComponentBase-
|
|
39
|
+
import { E as ze } from "./EChartComponentBase-DCKFGbqb.js";
|
|
40
40
|
import { ArrowDown as Be, Download as Ue } from "@element-plus/icons-vue";
|
|
41
41
|
import { A as We, D as qe } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
42
42
|
const Ke = { class: "chart-panel" }, Ze = { class: "panel-header" }, Ge = { class: "header-left" }, Je = { class: "panel-title" }, Qe = { class: "header-right" }, Xe = { class: "indicator-selector-panel" }, et = { class: "indicator-select-all" }, tt = { class: "legend-bar" }, ot = { class: "legend-items" }, nt = ["onClick"], lt = { class: "legend-text" }, at = ["id"], st = {
|
|
@@ -380,7 +380,7 @@ const Ke = { class: "chart-panel" }, Ze = { class: "panel-header" }, Ge = { clas
|
|
|
380
380
|
y.object_id = u;
|
|
381
381
|
}), d.multiObject || (d.object_id = u);
|
|
382
382
|
try {
|
|
383
|
-
const y = yield import("./history-
|
|
383
|
+
const y = yield import("./history-BvM7EXsN.js"), E = yield new y.default().getHistoryData(l, "groundwaterTimeCurve");
|
|
384
384
|
if (M !== e) return;
|
|
385
385
|
const V = (E == null ? void 0 : E.history) || (Array.isArray(E) ? E : []);
|
|
386
386
|
V.length > 0 && r.forEach((_, xe) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ve=Object.defineProperty,he=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var J=Object.getOwnPropertySymbols,be=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,_e=Reflect.get;var Q=(p,a,r)=>a in p?ve(p,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):p[a]=r,X=(p,a)=>{for(var r in a||(a={}))ye.call(a,r)&&Q(p,r,a[r]);if(J)for(var r of J(a))Ce.call(a,r)&&Q(p,r,a[r]);return p},ee=(p,a)=>he(p,ge(a));var U=(p,a,r)=>_e(be(p),r,a);var Y=(p,a,r)=>new Promise((k,g)=>{var v=x=>{try{V(r.next(x))}catch(O){g(O)}},E=x=>{try{V(r.throw(x))}catch(O){g(O)}},V=x=>x.done?k(x.value):Promise.resolve(x.value).then(v,E);V((r=r.apply(p,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const t=require("vue"),B=require("./index-Bo49zvKb.cjs");require("element-plus");const xe=require("./EChartComponentBase-BwbycwwW.cjs"),te=require("@element-plus/icons-vue"),oe=require("./ele-lin-icon-Dke_1AmT.cjs"),Se={class:"chart-panel"},we={class:"panel-header"},Ee={class:"header-left"},Ne={class:"panel-title"},je={class:"header-right"},ke={class:"indicator-selector-panel"},Ve={class:"indicator-select-all"},Ae={class:"legend-bar"},Ie={class:"legend-items"},Me=["onClick"],Oe={class:"legend-text"},Le=["id"],De={DEFAULT_ICON:oe.DEFAULT_ICON,ACTIVE_ICON:oe.ACTIVE_ICON,NAME_CN:"地下水指标时序曲线",NAME_EN:"Groundwater Time Curve",ORDER:2,PLATFORM:["pc","screen"]},Te={title:{value:"地下水监测关键指标时序曲线",type:"string",label:"标题"},bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleColor:{value:"#1c3d90",type:"color",label:"标题颜色"},gridColor:{value:"#f0f0f0",type:"color",label:"网格线颜色"},lineWidth:{value:"2.5",type:"select",label:"曲线粗细",options:[{label:"细 (1px)",value:"1"},{label:"标准 (2.5px)",value:"2.5"},{label:"粗 (4px)",value:"4"}]},smoothLine:{value:"true",type:"select",label:"曲线平滑",options:[{label:"平滑",value:"true"},{label:"折线",value:"false"}]},yAxisLabel:{value:"监测数值",type:"string",label:"Y轴标签"},linkChannel:{value:"groundwater",type:"select",label:"component.linkChannel",options:[{label:"地下水监测",value:"groundwater"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},$e=[{name:"水面高程(m)",fv:"",object_id:"",color:"#5470c6",device:""},{name:"空管长度(m)",fv:"",object_id:"",color:"#ee6666",device:""},{name:"水位(m)",fv:"",object_id:"",color:"#fac858",device:""},{name:"流量(m³/h)",fv:"",object_id:"",color:"#91cc75",device:""}],Be=["name","fv","object_id","color","device"],qe=["mosaic","statistics","calculate"],Ye={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Pe=50,Re={DEFAULT:De,OPTIONS:Te,DATA:$e,PARAMS:Be,SOURCE:qe,ITEMS:Pe,COMMON:Ye},Fe=t.defineComponent(ee(X({},Re),{__name:"groundwaterTimeCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const a=p,r=new Map,k=new Map,g=t.ref(new Map),v=t.ref([]);let E=0,V=null;const x=t.computed(()=>{var l,e;return(e=(l=a.conf)==null?void 0:l.common)!=null&&e.object_id?!0:P.value.some(n=>!!n.object_id)}),O=t.computed(()=>x.value||v.value.length>0);class q extends xe.EChartComponentBase{extractStyles(){var c,f,m,o,u,s,d,w,y,A,N,D;const e=(c=this.props.conf)==null?void 0:c.options,n=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"groundwater",i=((m=e==null?void 0:e.customChannel)==null?void 0:m.value)||"";return{bgColor:((o=e==null?void 0:e.bgColor)==null?void 0:o.value)||"#f5f7fa",panelBgColor:((u=e==null?void 0:e.panelBgColor)==null?void 0:u.value)||"#ffffff",textColor:((s=e==null?void 0:e.textColor)==null?void 0:s.value)||"#333333",titleColor:((d=e==null?void 0:e.titleColor)==null?void 0:d.value)||"#1c3d90",gridColor:((w=e==null?void 0:e.gridColor)==null?void 0:w.value)||"#f0f0f0",lineWidth:parseFloat(((y=e==null?void 0:e.lineWidth)==null?void 0:y.value)||"2.5"),smoothLine:(((A=e==null?void 0:e.smoothLine)==null?void 0:A.value)||"true")==="true",yAxisLabel:((N=e==null?void 0:e.yAxisLabel)==null?void 0:N.value)||"监测数值",title:((D=e==null?void 0:e.title)==null?void 0:D.value)||"地下水监测关键指标时序曲线",linkChannel:n==="custom"&&i?i:n}}getChartOption(){return F(this.Style.value)}initHistory(){return Y(this,null,function*(){const e=this.props.conf;if(!e)return[];e.options||(e.options={});const n=e.options.points,i=Object.prototype.hasOwnProperty.call(e.options,"points");(!n||Number(n)<24)&&(e.options.points=24);try{return yield U(q.prototype,this,"initHistory").call(this)}finally{i?e.options.points=n:delete e.options.points}})}onPreview(){return Y(this,null,function*(){var n,i,c,f,m;const e=((i=(n=this.props.conf)==null?void 0:n.common)==null?void 0:i.object_id)||((m=(f=(c=this.props.conf)==null?void 0:c.data)==null?void 0:f[0])==null?void 0:m.object_id)||"";if(e&&v.value.length===0){v.value=[e],yield H([e]);return}yield U(q.prototype,this,"onPreview").call(this)})}setSocketData(e){var m;if(!e)return;const n=e.object_id||e.objectId||"";if(n&&v.value.length>0&&!v.value.includes(n))return;const i=e.datetime?e.datetime.split(".")[0]:B.dayjs().format("YYYY/MM/DD HH:mm"),c=((m=this.props.conf)==null?void 0:m.data)||[],f=v.value.length>1;c.forEach(o=>{if(o.device){const u=this.extractDataValue(e,o.device);if(u!=null&&String(u).trim()){const s=String(u).trim();f&&n?g.value.set(n,s):(k.set(o.name||o.fv,s),n&&g.value.set(n,s))}}}),c.forEach(o=>{if(!o.fv)return;const u=this.extractDataValue(e,o.fv);if(u==null)return;const s=f&&n?`${n}:${o.name||o.fv}`:o.name||o.fv,d=r.get(s);d?(d.times.push(i),d.values.push(parseFloat(u)),d.times.length>200&&(d.times.shift(),d.values.shift())):r.set(s,{times:[i],values:[parseFloat(u)]})}),this.chartObj&&this.chartObj.setOption(F(this.Style.value),!1)}onLinkEvent(e){de(e)}}const _=new q(a,"groundwaterTimeCurve");_.setupLifecycle();const L=_.getStyle(),ne=_.getEchartId(),P=t.computed(()=>{var l;return((l=a.conf)==null?void 0:l.data)||[]}),b=t.computed(()=>{const l=new Set;return P.value.filter(e=>e.name&&!l.has(e.name)?(l.add(e.name),!0):!1)}),h=t.ref([]);t.watch(b,l=>{l.length>0&&h.value.length===0&&(h.value=l.map(e=>e.fv||e.name))},{immediate:!0});const W=t.computed({get:()=>b.value.length>0&&h.value.length===b.value.length,set:()=>{}}),le=t.computed(()=>{const l=h.value.length;return l>0&&l<b.value.length}),ae=t.computed(()=>{if(h.value.length===0)return"选择监测指标";if(h.value.length===b.value.length)return"全部指标已选";const e=b.value.filter(n=>h.value.includes(n.fv||n.name)).map(n=>n.name).join(", ");return e.length>14?e.substring(0,14)+"...":e}),se=l=>{h.value=l?b.value.map(e=>e.fv||e.name):[],I()},S=t.ref(new Set),re=t.computed(()=>{if(v.value.length>1){const e=[];for(const n of v.value){const i=g.value.get(n)||n.slice(-6);b.value.filter(c=>h.value.includes(c.fv||c.name)).forEach(c=>{e.push({name:`${i}-${c.name}`,color:c.color||"#5470c6",visible:!S.value.has(`${n}:${c.name}`)})})}return e}return b.value.filter(e=>h.value.includes(e.fv||e.name)).map(e=>{const n=k.get(e.name)||g.value.values().next().value||"";return{name:n?`${n}-${e.name}`:e.name,color:e.color||"#5470c6",visible:!S.value.has(e.name)}})}),ie=l=>{const e=l.name.includes("-")?l.name.split("-").slice(1).join("-"):l.name;S.value.has(e)?S.value.delete(e):S.value.add(e),S.value=new Set(S.value),I()},ce=t.computed(()=>({backgroundColor:L.value.bgColor,color:L.value.textColor,"--title-color":L.value.titleColor})),R=()=>{r.clear();const l=B.dayjs(),e=[1182,3.5,8.2,.45],n=[5,1.2,3,.15];P.value.forEach((i,c)=>{const f=[],m=[],o=e[c%4],u=n[c%4];for(let s=0;s<100;s++)f.push(l.subtract((100-s)*15,"minute").format("YYYY/MM/DD HH:mm")),m.push(+(o+(Math.random()-.5)*u+Math.sin(s/10)*u*.3).toFixed(2));r.set(i.name,{times:f,values:m})})},F=l=>{if(a.mode!=="edit"&&(!O.value||r.size===0))return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};let e=[];for(const[,o]of r)o.times.length>e.length&&(e=o.times);!e.length&&a.mode==="edit"&&(e=Array.from({length:50},(o,u)=>B.dayjs().subtract((50-u)*15,"minute").format("YYYY/MM/DD HH:mm")));const n={},i=v.value.length>1,c=["#5470c6","#ee6666","#fac858","#91cc75","#73c0de","#3ba272","#fc8452","#9a60b4"];let f=0,m=[];if(i&&a.mode!=="edit")for(const o of v.value){const u=g.value.get(o)||o.slice(-6);b.value.filter(s=>h.value.includes(s.fv||s.name)).forEach(s=>{const d=`${o}:${s.name}`,w=`${u}-${s.name}`,y=s.color||c[f%c.length];n[w]=!S.value.has(d);const A=r.get(d);m.push({name:w,type:"line",smooth:l.smoothLine,showSymbol:!1,data:(A==null?void 0:A.values)||[],lineStyle:{color:y,width:l.lineWidth,type:"solid"},itemStyle:{color:y}}),f++})}else m=b.value.filter(o=>h.value.includes(o.fv||o.name)).map(o=>{const u=k.get(o.name)||g.value.values().next().value||"",s=u?`${u}-${o.name}`:o.name;n[s]=!S.value.has(o.name);const d=r.get(o.name);return{name:s,type:"line",smooth:l.smoothLine,showSymbol:!1,data:(d==null?void 0:d.values)||[],lineStyle:{color:o.color||"#5470c6",width:l.lineWidth,type:"solid"},itemStyle:{color:o.color||"#5470c6"}}});return{tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#1c3d90",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},legend:{show:!1,selected:n},grid:{top:15,right:40,bottom:60,left:60},xAxis:{type:"category",data:e,axisLine:{lineStyle:{color:l.gridColor}},axisLabel:{color:l.textColor,fontSize:11,rotate:15,interval:"auto",formatter:o=>{var u;if(o&&o.length>6){const s=o.split(" ");return(((u=s[0])==null?void 0:u.split("/").slice(1).join("/"))||"")+(s[1]?" "+s[1]:"")}return o}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",name:l.yAxisLabel,scale:!0,axisLine:{show:!1},axisLabel:{color:l.textColor,fontSize:11},splitLine:{lineStyle:{color:l.gridColor,type:"dashed"}}},dataZoom:[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"slider",height:18,bottom:8,borderColor:"transparent",backgroundColor:"#f0f0f0",fillerColor:"rgba(28, 61, 144, 0.2)",handleStyle:{color:"#1c3d90"},textStyle:{fontSize:10}}],series:m}},I=()=>{const l=_.getChartInstance();l&&l.setOption(F(L.value),!0)},ue=()=>{const l=_.getChartInstance();if(!l)return;const e=document.createElement("a");e.href=l.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`地下水指标时序曲线_${B.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},de=l=>{const{payload:e}=l;if(!e)return;if(e.type==="filter"){e.dateRange&&Array.isArray(e.dateRange)&&e.dateRange.length===2&&(V={start_time:e.dateRange[0],end_time:e.dateRange[1]});const i=e.objectIds&&e.objectIds.length>0?e.objectIds:e.objectId?[e.objectId]:[];i.length>0&&(v.value=i,H(i)),(a.mode==="edit"||i.length===0)&&(R(),I());return}const n=e.objectId||e.object_id;n&&(v.value=[n],H([n]))},H=l=>Y(null,null,function*(){var s;if(!l.length||a.mode!=="preview")return;const e=++E;r.clear(),g.value.clear(),k.clear();const n=(s=_.session)==null?void 0:s.value;if(!n)return;const i=a.conf.id;n.componentRequests&&n.componentRequests.delete(i),typeof n.unsubscribeComponent=="function"&&n.unsubscribeComponent(i);const{data:c,common:f}=a.conf,m=l.length>1;V&&(f.historyTimeRange=V),a.conf.options||(a.conf.options={});const o=a.conf.options.points,u=Object.prototype.hasOwnProperty.call(a.conf.options,"points");(!o||Number(o)<24)&&(a.conf.options.points=24);for(const d of l){if(E!==e)return;Array.isArray(c)&&c.forEach(y=>{y.object_id=d}),f.multiObject||(f.object_id=d);try{const y=yield Promise.resolve().then(()=>require("./history-DqPjJP_E.cjs")),N=yield new y.default().getHistoryData(a,"groundwaterTimeCurve");if(E!==e)return;const D=(N==null?void 0:N.history)||(Array.isArray(N)?N:[]);D.length>0&&c.forEach((C,fe)=>{if(!C.fv)return;const K=D[fe];if(!Array.isArray(K))return;const me=[...K].sort((j,T)=>new Date(j.time||j.datetime||"").getTime()-new Date(T.time||T.datetime||"").getTime()),pe=m?`${d}:${C.name||C.fv}`:C.name||C.fv,z=[],Z=[];me.forEach(j=>{const T=j.time||j.datetime,G=j[C.fv];if(T&&G!=null){const M=parseFloat(G);isNaN(M)||(z.push(T.split(".")[0]),Z.push(M))}if(C.device&&j[C.device]){const M=String(j[C.device]);m||k.set(C.name||C.fv,M),g.value.set(d,M)}}),z.length>0&&r.set(pe,{times:z,values:Z})})}catch(y){console.warn("[地下水时序曲线] 历史数据获取失败:",y)}if(E!==e)return;const w=_.getSource();_.subscribeBySource(w,d)}u?a.conf.options.points=o:delete a.conf.options.points,E===e&&(I(),n.registerComponent({id:i,request:null,onUpdate:(d,w)=>{E===e&&d==="realtime"&&_.setSocketData(w)}}))});return t.onMounted(()=>{a.mode==="edit"&&R(),setTimeout(()=>{var l;return(l=_.getChartInstance())==null?void 0:l.resize()},200)}),t.watch(()=>a.conf,()=>{a.mode==="edit"&&(R(),I())},{deep:!0}),(l,e)=>{const n=$.ElIcon,i=$.ElButton,c=$.ElCheckbox,f=$.ElCheckboxGroup,m=$.ElPopover;return t.openBlock(),t.createElementBlock("div",{class:"gw-time-curve",style:t.normalizeStyle(ce.value)},[t.createElementVNode("div",Se,[t.createElementVNode("div",we,[t.createElementVNode("div",Ee,[e[2]||(e[2]=t.createElementVNode("span",{class:"indicator-dot"},null,-1)),t.createElementVNode("span",Ne,"📊 "+t.toDisplayString(t.unref(L).title),1)]),t.createElementVNode("div",je,[t.createVNode(m,{placement:"bottom-start",width:220,trigger:"click"},{reference:t.withCtx(()=>[t.createVNode(i,{size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(ae.value)+" ",1),t.createVNode(n,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(t.unref(te.ArrowDown))]),_:1})]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",ke,[t.createElementVNode("div",Ve,[t.createVNode(c,{modelValue:W.value,"onUpdate:modelValue":e[0]||(e[0]=o=>W.value=o),indeterminate:le.value,onChange:se},{default:t.withCtx(()=>[...e[3]||(e[3]=[t.createTextVNode(" 全部指标 ",-1)])]),_:1},8,["modelValue","indeterminate"])]),t.createVNode(f,{modelValue:h.value,"onUpdate:modelValue":e[1]||(e[1]=o=>h.value=o),onChange:I},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,o=>(t.openBlock(),t.createBlock(c,{key:o.fv,label:o.fv,class:"indicator-checkbox-item"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t.createVNode(i,{size:"small",onClick:ue},{default:t.withCtx(()=>[t.createVNode(n,null,{default:t.withCtx(()=>[t.createVNode(t.unref(te.Download))]),_:1}),e[4]||(e[4]=t.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),t.createElementVNode("div",Ae,[t.createElementVNode("div",Ie,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(re.value,o=>(t.openBlock(),t.createElementBlock("span",{key:o.name,class:t.normalizeClass(["legend-item",{disabled:!o.visible}]),onClick:u=>ie(o)},[t.createElementVNode("span",{class:"legend-line",style:t.normalizeStyle({borderTopColor:o.visible?o.color:"#ccc",borderTopStyle:"solid"})},null,4),t.createElementVNode("span",Oe,t.toDisplayString(o.name),1)],10,Me))),128))])]),t.createElementVNode("div",{id:t.unref(ne),class:"chart-container"},null,8,Le)]),t.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),He=B._export_sfc(Fe,[["__scopeId","data-v-3513c260"]]);exports.default=He;
|
|
1
|
+
"use strict";var ve=Object.defineProperty,he=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var J=Object.getOwnPropertySymbols,be=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,_e=Reflect.get;var Q=(p,a,r)=>a in p?ve(p,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):p[a]=r,X=(p,a)=>{for(var r in a||(a={}))ye.call(a,r)&&Q(p,r,a[r]);if(J)for(var r of J(a))Ce.call(a,r)&&Q(p,r,a[r]);return p},ee=(p,a)=>he(p,ge(a));var U=(p,a,r)=>_e(be(p),r,a);var Y=(p,a,r)=>new Promise((k,g)=>{var v=x=>{try{V(r.next(x))}catch(O){g(O)}},E=x=>{try{V(r.throw(x))}catch(O){g(O)}},V=x=>x.done?k(x.value):Promise.resolve(x.value).then(v,E);V((r=r.apply(p,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const t=require("vue"),B=require("./index-Cm7hGuPj.cjs");require("element-plus");const xe=require("./EChartComponentBase-DM6aSCAR.cjs"),te=require("@element-plus/icons-vue"),oe=require("./ele-lin-icon-Dke_1AmT.cjs"),Se={class:"chart-panel"},we={class:"panel-header"},Ee={class:"header-left"},Ne={class:"panel-title"},je={class:"header-right"},ke={class:"indicator-selector-panel"},Ve={class:"indicator-select-all"},Ae={class:"legend-bar"},Ie={class:"legend-items"},Me=["onClick"],Oe={class:"legend-text"},Le=["id"],De={DEFAULT_ICON:oe.DEFAULT_ICON,ACTIVE_ICON:oe.ACTIVE_ICON,NAME_CN:"地下水指标时序曲线",NAME_EN:"Groundwater Time Curve",ORDER:2,PLATFORM:["pc","screen"]},Te={title:{value:"地下水监测关键指标时序曲线",type:"string",label:"标题"},bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleColor:{value:"#1c3d90",type:"color",label:"标题颜色"},gridColor:{value:"#f0f0f0",type:"color",label:"网格线颜色"},lineWidth:{value:"2.5",type:"select",label:"曲线粗细",options:[{label:"细 (1px)",value:"1"},{label:"标准 (2.5px)",value:"2.5"},{label:"粗 (4px)",value:"4"}]},smoothLine:{value:"true",type:"select",label:"曲线平滑",options:[{label:"平滑",value:"true"},{label:"折线",value:"false"}]},yAxisLabel:{value:"监测数值",type:"string",label:"Y轴标签"},linkChannel:{value:"groundwater",type:"select",label:"component.linkChannel",options:[{label:"地下水监测",value:"groundwater"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},$e=[{name:"水面高程(m)",fv:"",object_id:"",color:"#5470c6",device:""},{name:"空管长度(m)",fv:"",object_id:"",color:"#ee6666",device:""},{name:"水位(m)",fv:"",object_id:"",color:"#fac858",device:""},{name:"流量(m³/h)",fv:"",object_id:"",color:"#91cc75",device:""}],Be=["name","fv","object_id","color","device"],qe=["mosaic","statistics","calculate"],Ye={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Pe=50,Re={DEFAULT:De,OPTIONS:Te,DATA:$e,PARAMS:Be,SOURCE:qe,ITEMS:Pe,COMMON:Ye},Fe=t.defineComponent(ee(X({},Re),{__name:"groundwaterTimeCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const a=p,r=new Map,k=new Map,g=t.ref(new Map),v=t.ref([]);let E=0,V=null;const x=t.computed(()=>{var l,e;return(e=(l=a.conf)==null?void 0:l.common)!=null&&e.object_id?!0:P.value.some(n=>!!n.object_id)}),O=t.computed(()=>x.value||v.value.length>0);class q extends xe.EChartComponentBase{extractStyles(){var c,f,m,o,u,s,d,w,y,A,N,D;const e=(c=this.props.conf)==null?void 0:c.options,n=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"groundwater",i=((m=e==null?void 0:e.customChannel)==null?void 0:m.value)||"";return{bgColor:((o=e==null?void 0:e.bgColor)==null?void 0:o.value)||"#f5f7fa",panelBgColor:((u=e==null?void 0:e.panelBgColor)==null?void 0:u.value)||"#ffffff",textColor:((s=e==null?void 0:e.textColor)==null?void 0:s.value)||"#333333",titleColor:((d=e==null?void 0:e.titleColor)==null?void 0:d.value)||"#1c3d90",gridColor:((w=e==null?void 0:e.gridColor)==null?void 0:w.value)||"#f0f0f0",lineWidth:parseFloat(((y=e==null?void 0:e.lineWidth)==null?void 0:y.value)||"2.5"),smoothLine:(((A=e==null?void 0:e.smoothLine)==null?void 0:A.value)||"true")==="true",yAxisLabel:((N=e==null?void 0:e.yAxisLabel)==null?void 0:N.value)||"监测数值",title:((D=e==null?void 0:e.title)==null?void 0:D.value)||"地下水监测关键指标时序曲线",linkChannel:n==="custom"&&i?i:n}}getChartOption(){return F(this.Style.value)}initHistory(){return Y(this,null,function*(){const e=this.props.conf;if(!e)return[];e.options||(e.options={});const n=e.options.points,i=Object.prototype.hasOwnProperty.call(e.options,"points");(!n||Number(n)<24)&&(e.options.points=24);try{return yield U(q.prototype,this,"initHistory").call(this)}finally{i?e.options.points=n:delete e.options.points}})}onPreview(){return Y(this,null,function*(){var n,i,c,f,m;const e=((i=(n=this.props.conf)==null?void 0:n.common)==null?void 0:i.object_id)||((m=(f=(c=this.props.conf)==null?void 0:c.data)==null?void 0:f[0])==null?void 0:m.object_id)||"";if(e&&v.value.length===0){v.value=[e],yield H([e]);return}yield U(q.prototype,this,"onPreview").call(this)})}setSocketData(e){var m;if(!e)return;const n=e.object_id||e.objectId||"";if(n&&v.value.length>0&&!v.value.includes(n))return;const i=e.datetime?e.datetime.split(".")[0]:B.dayjs().format("YYYY/MM/DD HH:mm"),c=((m=this.props.conf)==null?void 0:m.data)||[],f=v.value.length>1;c.forEach(o=>{if(o.device){const u=this.extractDataValue(e,o.device);if(u!=null&&String(u).trim()){const s=String(u).trim();f&&n?g.value.set(n,s):(k.set(o.name||o.fv,s),n&&g.value.set(n,s))}}}),c.forEach(o=>{if(!o.fv)return;const u=this.extractDataValue(e,o.fv);if(u==null)return;const s=f&&n?`${n}:${o.name||o.fv}`:o.name||o.fv,d=r.get(s);d?(d.times.push(i),d.values.push(parseFloat(u)),d.times.length>200&&(d.times.shift(),d.values.shift())):r.set(s,{times:[i],values:[parseFloat(u)]})}),this.chartObj&&this.chartObj.setOption(F(this.Style.value),!1)}onLinkEvent(e){de(e)}}const _=new q(a,"groundwaterTimeCurve");_.setupLifecycle();const L=_.getStyle(),ne=_.getEchartId(),P=t.computed(()=>{var l;return((l=a.conf)==null?void 0:l.data)||[]}),b=t.computed(()=>{const l=new Set;return P.value.filter(e=>e.name&&!l.has(e.name)?(l.add(e.name),!0):!1)}),h=t.ref([]);t.watch(b,l=>{l.length>0&&h.value.length===0&&(h.value=l.map(e=>e.fv||e.name))},{immediate:!0});const W=t.computed({get:()=>b.value.length>0&&h.value.length===b.value.length,set:()=>{}}),le=t.computed(()=>{const l=h.value.length;return l>0&&l<b.value.length}),ae=t.computed(()=>{if(h.value.length===0)return"选择监测指标";if(h.value.length===b.value.length)return"全部指标已选";const e=b.value.filter(n=>h.value.includes(n.fv||n.name)).map(n=>n.name).join(", ");return e.length>14?e.substring(0,14)+"...":e}),se=l=>{h.value=l?b.value.map(e=>e.fv||e.name):[],I()},S=t.ref(new Set),re=t.computed(()=>{if(v.value.length>1){const e=[];for(const n of v.value){const i=g.value.get(n)||n.slice(-6);b.value.filter(c=>h.value.includes(c.fv||c.name)).forEach(c=>{e.push({name:`${i}-${c.name}`,color:c.color||"#5470c6",visible:!S.value.has(`${n}:${c.name}`)})})}return e}return b.value.filter(e=>h.value.includes(e.fv||e.name)).map(e=>{const n=k.get(e.name)||g.value.values().next().value||"";return{name:n?`${n}-${e.name}`:e.name,color:e.color||"#5470c6",visible:!S.value.has(e.name)}})}),ie=l=>{const e=l.name.includes("-")?l.name.split("-").slice(1).join("-"):l.name;S.value.has(e)?S.value.delete(e):S.value.add(e),S.value=new Set(S.value),I()},ce=t.computed(()=>({backgroundColor:L.value.bgColor,color:L.value.textColor,"--title-color":L.value.titleColor})),R=()=>{r.clear();const l=B.dayjs(),e=[1182,3.5,8.2,.45],n=[5,1.2,3,.15];P.value.forEach((i,c)=>{const f=[],m=[],o=e[c%4],u=n[c%4];for(let s=0;s<100;s++)f.push(l.subtract((100-s)*15,"minute").format("YYYY/MM/DD HH:mm")),m.push(+(o+(Math.random()-.5)*u+Math.sin(s/10)*u*.3).toFixed(2));r.set(i.name,{times:f,values:m})})},F=l=>{if(a.mode!=="edit"&&(!O.value||r.size===0))return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};let e=[];for(const[,o]of r)o.times.length>e.length&&(e=o.times);!e.length&&a.mode==="edit"&&(e=Array.from({length:50},(o,u)=>B.dayjs().subtract((50-u)*15,"minute").format("YYYY/MM/DD HH:mm")));const n={},i=v.value.length>1,c=["#5470c6","#ee6666","#fac858","#91cc75","#73c0de","#3ba272","#fc8452","#9a60b4"];let f=0,m=[];if(i&&a.mode!=="edit")for(const o of v.value){const u=g.value.get(o)||o.slice(-6);b.value.filter(s=>h.value.includes(s.fv||s.name)).forEach(s=>{const d=`${o}:${s.name}`,w=`${u}-${s.name}`,y=s.color||c[f%c.length];n[w]=!S.value.has(d);const A=r.get(d);m.push({name:w,type:"line",smooth:l.smoothLine,showSymbol:!1,data:(A==null?void 0:A.values)||[],lineStyle:{color:y,width:l.lineWidth,type:"solid"},itemStyle:{color:y}}),f++})}else m=b.value.filter(o=>h.value.includes(o.fv||o.name)).map(o=>{const u=k.get(o.name)||g.value.values().next().value||"",s=u?`${u}-${o.name}`:o.name;n[s]=!S.value.has(o.name);const d=r.get(o.name);return{name:s,type:"line",smooth:l.smoothLine,showSymbol:!1,data:(d==null?void 0:d.values)||[],lineStyle:{color:o.color||"#5470c6",width:l.lineWidth,type:"solid"},itemStyle:{color:o.color||"#5470c6"}}});return{tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#1c3d90",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},legend:{show:!1,selected:n},grid:{top:15,right:40,bottom:60,left:60},xAxis:{type:"category",data:e,axisLine:{lineStyle:{color:l.gridColor}},axisLabel:{color:l.textColor,fontSize:11,rotate:15,interval:"auto",formatter:o=>{var u;if(o&&o.length>6){const s=o.split(" ");return(((u=s[0])==null?void 0:u.split("/").slice(1).join("/"))||"")+(s[1]?" "+s[1]:"")}return o}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",name:l.yAxisLabel,scale:!0,axisLine:{show:!1},axisLabel:{color:l.textColor,fontSize:11},splitLine:{lineStyle:{color:l.gridColor,type:"dashed"}}},dataZoom:[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"slider",height:18,bottom:8,borderColor:"transparent",backgroundColor:"#f0f0f0",fillerColor:"rgba(28, 61, 144, 0.2)",handleStyle:{color:"#1c3d90"},textStyle:{fontSize:10}}],series:m}},I=()=>{const l=_.getChartInstance();l&&l.setOption(F(L.value),!0)},ue=()=>{const l=_.getChartInstance();if(!l)return;const e=document.createElement("a");e.href=l.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`地下水指标时序曲线_${B.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},de=l=>{const{payload:e}=l;if(!e)return;if(e.type==="filter"){e.dateRange&&Array.isArray(e.dateRange)&&e.dateRange.length===2&&(V={start_time:e.dateRange[0],end_time:e.dateRange[1]});const i=e.objectIds&&e.objectIds.length>0?e.objectIds:e.objectId?[e.objectId]:[];i.length>0&&(v.value=i,H(i)),(a.mode==="edit"||i.length===0)&&(R(),I());return}const n=e.objectId||e.object_id;n&&(v.value=[n],H([n]))},H=l=>Y(null,null,function*(){var s;if(!l.length||a.mode!=="preview")return;const e=++E;r.clear(),g.value.clear(),k.clear();const n=(s=_.session)==null?void 0:s.value;if(!n)return;const i=a.conf.id;n.componentRequests&&n.componentRequests.delete(i),typeof n.unsubscribeComponent=="function"&&n.unsubscribeComponent(i);const{data:c,common:f}=a.conf,m=l.length>1;V&&(f.historyTimeRange=V),a.conf.options||(a.conf.options={});const o=a.conf.options.points,u=Object.prototype.hasOwnProperty.call(a.conf.options,"points");(!o||Number(o)<24)&&(a.conf.options.points=24);for(const d of l){if(E!==e)return;Array.isArray(c)&&c.forEach(y=>{y.object_id=d}),f.multiObject||(f.object_id=d);try{const y=yield Promise.resolve().then(()=>require("./history-BKLujk4W.cjs")),N=yield new y.default().getHistoryData(a,"groundwaterTimeCurve");if(E!==e)return;const D=(N==null?void 0:N.history)||(Array.isArray(N)?N:[]);D.length>0&&c.forEach((C,fe)=>{if(!C.fv)return;const K=D[fe];if(!Array.isArray(K))return;const me=[...K].sort((j,T)=>new Date(j.time||j.datetime||"").getTime()-new Date(T.time||T.datetime||"").getTime()),pe=m?`${d}:${C.name||C.fv}`:C.name||C.fv,z=[],Z=[];me.forEach(j=>{const T=j.time||j.datetime,G=j[C.fv];if(T&&G!=null){const M=parseFloat(G);isNaN(M)||(z.push(T.split(".")[0]),Z.push(M))}if(C.device&&j[C.device]){const M=String(j[C.device]);m||k.set(C.name||C.fv,M),g.value.set(d,M)}}),z.length>0&&r.set(pe,{times:z,values:Z})})}catch(y){console.warn("[地下水时序曲线] 历史数据获取失败:",y)}if(E!==e)return;const w=_.getSource();_.subscribeBySource(w,d)}u?a.conf.options.points=o:delete a.conf.options.points,E===e&&(I(),n.registerComponent({id:i,request:null,onUpdate:(d,w)=>{E===e&&d==="realtime"&&_.setSocketData(w)}}))});return t.onMounted(()=>{a.mode==="edit"&&R(),setTimeout(()=>{var l;return(l=_.getChartInstance())==null?void 0:l.resize()},200)}),t.watch(()=>a.conf,()=>{a.mode==="edit"&&(R(),I())},{deep:!0}),(l,e)=>{const n=$.ElIcon,i=$.ElButton,c=$.ElCheckbox,f=$.ElCheckboxGroup,m=$.ElPopover;return t.openBlock(),t.createElementBlock("div",{class:"gw-time-curve",style:t.normalizeStyle(ce.value)},[t.createElementVNode("div",Se,[t.createElementVNode("div",we,[t.createElementVNode("div",Ee,[e[2]||(e[2]=t.createElementVNode("span",{class:"indicator-dot"},null,-1)),t.createElementVNode("span",Ne,"📊 "+t.toDisplayString(t.unref(L).title),1)]),t.createElementVNode("div",je,[t.createVNode(m,{placement:"bottom-start",width:220,trigger:"click"},{reference:t.withCtx(()=>[t.createVNode(i,{size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(ae.value)+" ",1),t.createVNode(n,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(t.unref(te.ArrowDown))]),_:1})]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",ke,[t.createElementVNode("div",Ve,[t.createVNode(c,{modelValue:W.value,"onUpdate:modelValue":e[0]||(e[0]=o=>W.value=o),indeterminate:le.value,onChange:se},{default:t.withCtx(()=>[...e[3]||(e[3]=[t.createTextVNode(" 全部指标 ",-1)])]),_:1},8,["modelValue","indeterminate"])]),t.createVNode(f,{modelValue:h.value,"onUpdate:modelValue":e[1]||(e[1]=o=>h.value=o),onChange:I},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,o=>(t.openBlock(),t.createBlock(c,{key:o.fv,label:o.fv,class:"indicator-checkbox-item"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t.createVNode(i,{size:"small",onClick:ue},{default:t.withCtx(()=>[t.createVNode(n,null,{default:t.withCtx(()=>[t.createVNode(t.unref(te.Download))]),_:1}),e[4]||(e[4]=t.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),t.createElementVNode("div",Ae,[t.createElementVNode("div",Ie,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(re.value,o=>(t.openBlock(),t.createElementBlock("span",{key:o.name,class:t.normalizeClass(["legend-item",{disabled:!o.visible}]),onClick:u=>ie(o)},[t.createElementVNode("span",{class:"legend-line",style:t.normalizeStyle({borderTopColor:o.visible?o.color:"#ccc",borderTopStyle:"solid"})},null,4),t.createElementVNode("span",Oe,t.toDisplayString(o.name),1)],10,Me))),128))])]),t.createElementVNode("div",{id:t.unref(ne),class:"chart-container"},null,8,Le)]),t.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),He=B._export_sfc(Fe,[["__scopeId","data-v-3513c260"]]);exports.default=He;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var _=Object.defineProperty,w=Object.defineProperties;var E=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var y=(r,l,o)=>l in r?_(r,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[l]=o,v=(r,l)=>{for(var o in l||(l={}))B.call(l,o)&&y(r,o,l[o]);if(h)for(var o of h(l))z.call(l,o)&&y(r,o,l[o]);return r},x=(r,l)=>w(r,E(l));var S=(r,l,o)=>new Promise((L,p)=>{var n=a=>{try{f(o.next(a))}catch(m){p(m)}},g=a=>{try{f(o.throw(a))}catch(m){p(m)}},f=a=>a.done?L(a.value):Promise.resolve(a.value).then(n,g);f((o=o.apply(r,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./BaseComponent-9njJjeix.cjs"),V=require("./index-Bo49zvKb.cjs"),D=require("./titleStyle-NSnz6cUg.cjs"),T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%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(-649.000000,%20-221.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cg%20id='卡片查看模式_view-grid-card'%20transform='translate(649.583607,%20224.127953)'%3e%3cpath%20d='M14.4615385,0%20C15.3112073,0%2016,0.688792693%2016,1.53846154%20L16,1.53846154%20L16,10.4477993%20C16,11.2974681%2015.3112073,11.9862608%2014.4615385,11.9862608%20L14.4615385,11.9862608%20L1.53846154,11.9862608%20C0.688792693,11.9862608%200,11.2974681%200,10.4477993%20L0,10.4477993%20L0,1.53846154%20C0,0.688792693%200.688792693,0%201.53846154,0%20L1.53846154,0%20Z%20M14.4615385,1.23076923%20L1.53846154,1.23076923%20C1.36852777,1.23076923%201.23076923,1.36852777%201.23076923,1.53846154%20L1.23076923,1.53846154%20L1.23076923,10.4477993%20C1.23076923,10.6177331%201.36852777,10.7554916%201.53846154,10.7554916%20L1.53846154,10.7554916%20L14.4615385,10.7554916%20C14.6314722,10.7554916%2014.7692308,10.6177331%2014.7692308,10.4477993%20L14.7692308,10.4477993%20L14.7692308,1.53846154%20C14.7692308,1.36852777%2014.6314722,1.23076923%2014.4615385,1.23076923%20L14.4615385,1.23076923%20Z%20M6.14307642,3.81624937%20C6.48294396,3.81624937%206.75846104,4.09176645%206.75846104,4.43163399%20L6.75846104,4.43163399%20L6.75846104,7.55462685%20C6.75846104,7.89449439%206.48294396,8.17001146%206.14307642,8.17001146%20L6.14307642,8.17001146%20L2.95665531,8.17001146%20C2.61678777,8.17001146%202.3412707,7.89449439%202.3412707,7.55462685%20L2.3412707,7.55462685%20L2.3412707,4.43163399%20C2.3412707,4.09176645%202.61678777,3.81624937%202.95665531,3.81624937%20L2.95665531,3.81624937%20Z%20M13.247791,3.81624937%20C13.5876586,3.81624937%2013.8631757,4.09176645%2013.8631757,4.43163399%20L13.8631757,4.43163399%20L13.8631757,7.55462685%20C13.8631757,7.89449439%2013.5876586,8.17001146%2013.247791,8.17001146%20L13.247791,8.17001146%20L8.17088167,8.17001146%20C7.83101413,8.17001146%207.55549706,7.89449439%207.55549706,7.55462685%20L7.55549706,7.55462685%20L7.55549706,4.43163399%20C7.55549706,4.09176645%207.83101413,3.81624937%208.17088167,3.81624937%20L8.17088167,3.81624937%20Z%20M5.52707692,5.04615385%20L3.572,5.04615385%20L3.572,6.93846154%20L5.52707692,6.93846154%20L5.52707692,5.04615385%20Z%20M12.632,5.04615385%20L8.78553846,5.04615385%20L8.78553846,6.93846154%20L12.632,6.93846154%20L12.632,5.04615385%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",A="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%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(-649.000000,%20-221.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cg%20id='卡片查看模式_view-grid-card'%20transform='translate(649.583607,%20224.127953)'%3e%3cpath%20d='M14.4615385,0%20C15.3112073,0%2016,0.688792693%2016,1.53846154%20L16,1.53846154%20L16,10.4477993%20C16,11.2974681%2015.3112073,11.9862608%2014.4615385,11.9862608%20L14.4615385,11.9862608%20L1.53846154,11.9862608%20C0.688792693,11.9862608%200,11.2974681%200,10.4477993%20L0,10.4477993%20L0,1.53846154%20C0,0.688792693%200.688792693,0%201.53846154,0%20L1.53846154,0%20Z%20M14.4615385,1.23076923%20L1.53846154,1.23076923%20C1.36852777,1.23076923%201.23076923,1.36852777%201.23076923,1.53846154%20L1.23076923,1.53846154%20L1.23076923,10.4477993%20C1.23076923,10.6177331%201.36852777,10.7554916%201.53846154,10.7554916%20L1.53846154,10.7554916%20L14.4615385,10.7554916%20C14.6314722,10.7554916%2014.7692308,10.6177331%2014.7692308,10.4477993%20L14.7692308,10.4477993%20L14.7692308,1.53846154%20C14.7692308,1.36852777%2014.6314722,1.23076923%2014.4615385,1.23076923%20L14.4615385,1.23076923%20Z%20M6.14307642,3.81624937%20C6.48294396,3.81624937%206.75846104,4.09176645%206.75846104,4.43163399%20L6.75846104,4.43163399%20L6.75846104,7.55462685%20C6.75846104,7.89449439%206.48294396,8.17001146%206.14307642,8.17001146%20L6.14307642,8.17001146%20L2.95665531,8.17001146%20C2.61678777,8.17001146%202.3412707,7.89449439%202.3412707,7.55462685%20L2.3412707,7.55462685%20L2.3412707,4.43163399%20C2.3412707,4.09176645%202.61678777,3.81624937%202.95665531,3.81624937%20L2.95665531,3.81624937%20Z%20M13.247791,3.81624937%20C13.5876586,3.81624937%2013.8631757,4.09176645%2013.8631757,4.43163399%20L13.8631757,4.43163399%20L13.8631757,7.55462685%20C13.8631757,7.89449439%2013.5876586,8.17001146%2013.247791,8.17001146%20L13.247791,8.17001146%20L8.17088167,8.17001146%20C7.83101413,8.17001146%207.55549706,7.89449439%207.55549706,7.55462685%20L7.55549706,7.55462685%20L7.55549706,4.43163399%20C7.55549706,4.09176645%207.83101413,3.81624937%208.17088167,3.81624937%20L8.17088167,3.81624937%20Z%20M5.52707692,5.04615385%20L3.572,5.04615385%20L3.572,6.93846154%20L5.52707692,6.93846154%20L5.52707692,5.04615385%20Z%20M12.632,5.04615385%20L8.78553846,5.04615385%20L8.78553846,6.93846154%20L12.632,6.93846154%20L12.632,5.04615385%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",M={class:"mix-body"},N=["onClick"],F={class:"p-1.5 flex flex-wrap overflow-y-auto"},Z={class:"h-1/2 flex items-center"},H={class:"h-1/2 flex items-center"},$={DEFAULT_ICON:T,ACTIVE_ICON:A,NAME_CN:"卡片组",NAME_EN:"Group Card",ORDER:5,PLATFORM:["pc","screen","mobile"]},R={bgColor:"#fff",titleColor:"#111",textColor:"#111",itemColor:"#e5e5e5",titleSize:14,textSize:13,radiusSize:8,isHideTitle:{value:!1,type:"checkbox",label:"component.options.isHideTitle",repel:"isDynamic"},isDynamic:!1,cardWidth:{value:150,type:"number",label:"component.card.cardWidth",dependent:"isDynamic"},cardHeight:{value:100,type:"number",label:"component.card.cardHeight",dependent:"isDynamic"},tags:{value:[{label:"TAB1",flag:[]}],type:"tags",label:"component.card.tags",dependent:"isDynamic"},titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},k=[{name:"",fv:"",object_id:""}],U=["name","fv","object_id"],W=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],j={useAlias:!1,source:"mosaic",multiObject:!1},P={DEFAULT:$,OPTIONS:R,DATA:k,PARAMS:U,SOURCE:W,COMMON:j},I=e.defineComponent(x(v({},P),{__name:"groupCard",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const l=r,o="--";class L extends O.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),itemColor:this.getOptionValue("itemColor","#e5e5e5"),titleSize:this.getOptionValue("titleSize",14),textSize:this.getOptionValue("textSize",13),radiusSize:this.getOptionValue("radiusSize",8),cardHeight:this.getOptionValue("cardHeight",100),cardWidth:this.getOptionValue("cardWidth",150),isHideTitle:this.getOptionValue("isHideTitle",!1),isDynamic:this.getOptionValue("isDynamic",!1),tags:this.getOptionValue("tags",[])}}init(){return S(this,null,function*(){var c;this.Style.value=this.extractStyles(),this.applyTheme(),(c=this.props.conf.data)!=null&&c.length||(this.props.conf.data=k)})}setHistoryData(c){if(!c)return;const{data:t}=this.props.conf;!Array.isArray(t)||!t.length||t.forEach((i,s)=>{const u=c[s].data[0];u!=null&&(i.value=u)})}setSocketData(c){if(!c)return;const{data:t}=this.props.conf;!Array.isArray(t)||!t.length||t.forEach(i=>{var s;i.value=(s=this.extractDataValue(c,i.fv))!=null?s:o})}}const p=new L(l,"groupCard");p.setupLifecycle();const n=p.getStyle(),g=l.conf,f=e.computed(()=>D.generateTitleStyle(l.conf.options)),a=e.ref(0),m=e.computed(()=>{var i;const{data:d,options:c}=l.conf,t=((i=c.tags)==null?void 0:i.value)||[];return d.filter(s=>{var u,C;return(C=(u=t[a.value])==null?void 0:u.flag)==null?void 0:C.includes(s.fv)})}),b=d=>{a.value=d};return(d,c)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(n).bgColor,borderRadius:`${e.unref(n).radiusSize}px`})},[e.unref(n).isDynamic?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:"flex border-b border-gray-200 px-3",style:e.normalizeStyle({color:e.unref(n).titleColor,fontSize:`${e.unref(n).titleSize}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).tags,(t,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass(["py-2 px-3 cursor-pointer",{actived:a.value===Number(i)}]),style:{"margin-right":"10px"},onClick:s=>b(Number(i))},e.toDisplayString(t.label),11,N))),128))],4),e.createElementVNode("div",F,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(t,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"flex flex-col items-center rounded m-1.5",style:e.normalizeStyle({width:`${e.unref(n).cardWidth}px`,height:`${e.unref(n).cardHeight}px`,background:e.unref(n).itemColor,fontSize:`${e.unref(n).textSize}px`,color:`${e.unref(n).textColor}`})},[e.createElementVNode("div",Z,e.toDisplayString((t==null?void 0:t.value)||o),1),e.createElementVNode("div",H,e.toDisplayString(t==null?void 0:t.name),1)],4))),128))])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(f.value)},e.toDisplayString(e.unref(g).caption||e.unref(g).name),5),e.createElementVNode("div",M,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g).data,(t,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"flex-1 flex mx-3 px-4 mb-3 first:mt-3 rounded items-center justify-between",style:e.normalizeStyle({background:e.unref(n).itemColor,color:e.unref(n).textColor,fontSize:`${e.unref(n).textSize}px`})},[e.createElementVNode("div",null,e.toDisplayString(t.name),1),e.createElementVNode("div",null,e.toDisplayString(t.value),1)],4))),128))])],64)),e.renderSlot(d.$slots,"default",{},void 0,!0)],4))}})),q=V._export_sfc(I,[["__scopeId","data-v-9a559d22"]]);exports.default=q;
|
|
1
|
+
"use strict";var _=Object.defineProperty,w=Object.defineProperties;var E=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var y=(r,l,o)=>l in r?_(r,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[l]=o,v=(r,l)=>{for(var o in l||(l={}))B.call(l,o)&&y(r,o,l[o]);if(h)for(var o of h(l))z.call(l,o)&&y(r,o,l[o]);return r},x=(r,l)=>w(r,E(l));var S=(r,l,o)=>new Promise((L,p)=>{var n=a=>{try{f(o.next(a))}catch(m){p(m)}},g=a=>{try{f(o.throw(a))}catch(m){p(m)}},f=a=>a.done?L(a.value):Promise.resolve(a.value).then(n,g);f((o=o.apply(r,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./BaseComponent-BabOc6Kc.cjs"),V=require("./index-Cm7hGuPj.cjs"),D=require("./titleStyle-NSnz6cUg.cjs"),T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%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(-649.000000,%20-221.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cg%20id='卡片查看模式_view-grid-card'%20transform='translate(649.583607,%20224.127953)'%3e%3cpath%20d='M14.4615385,0%20C15.3112073,0%2016,0.688792693%2016,1.53846154%20L16,1.53846154%20L16,10.4477993%20C16,11.2974681%2015.3112073,11.9862608%2014.4615385,11.9862608%20L14.4615385,11.9862608%20L1.53846154,11.9862608%20C0.688792693,11.9862608%200,11.2974681%200,10.4477993%20L0,10.4477993%20L0,1.53846154%20C0,0.688792693%200.688792693,0%201.53846154,0%20L1.53846154,0%20Z%20M14.4615385,1.23076923%20L1.53846154,1.23076923%20C1.36852777,1.23076923%201.23076923,1.36852777%201.23076923,1.53846154%20L1.23076923,1.53846154%20L1.23076923,10.4477993%20C1.23076923,10.6177331%201.36852777,10.7554916%201.53846154,10.7554916%20L1.53846154,10.7554916%20L14.4615385,10.7554916%20C14.6314722,10.7554916%2014.7692308,10.6177331%2014.7692308,10.4477993%20L14.7692308,10.4477993%20L14.7692308,1.53846154%20C14.7692308,1.36852777%2014.6314722,1.23076923%2014.4615385,1.23076923%20L14.4615385,1.23076923%20Z%20M6.14307642,3.81624937%20C6.48294396,3.81624937%206.75846104,4.09176645%206.75846104,4.43163399%20L6.75846104,4.43163399%20L6.75846104,7.55462685%20C6.75846104,7.89449439%206.48294396,8.17001146%206.14307642,8.17001146%20L6.14307642,8.17001146%20L2.95665531,8.17001146%20C2.61678777,8.17001146%202.3412707,7.89449439%202.3412707,7.55462685%20L2.3412707,7.55462685%20L2.3412707,4.43163399%20C2.3412707,4.09176645%202.61678777,3.81624937%202.95665531,3.81624937%20L2.95665531,3.81624937%20Z%20M13.247791,3.81624937%20C13.5876586,3.81624937%2013.8631757,4.09176645%2013.8631757,4.43163399%20L13.8631757,4.43163399%20L13.8631757,7.55462685%20C13.8631757,7.89449439%2013.5876586,8.17001146%2013.247791,8.17001146%20L13.247791,8.17001146%20L8.17088167,8.17001146%20C7.83101413,8.17001146%207.55549706,7.89449439%207.55549706,7.55462685%20L7.55549706,7.55462685%20L7.55549706,4.43163399%20C7.55549706,4.09176645%207.83101413,3.81624937%208.17088167,3.81624937%20L8.17088167,3.81624937%20Z%20M5.52707692,5.04615385%20L3.572,5.04615385%20L3.572,6.93846154%20L5.52707692,6.93846154%20L5.52707692,5.04615385%20Z%20M12.632,5.04615385%20L8.78553846,5.04615385%20L8.78553846,6.93846154%20L12.632,6.93846154%20L12.632,5.04615385%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",A="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%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(-649.000000,%20-221.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cg%20id='卡片查看模式_view-grid-card'%20transform='translate(649.583607,%20224.127953)'%3e%3cpath%20d='M14.4615385,0%20C15.3112073,0%2016,0.688792693%2016,1.53846154%20L16,1.53846154%20L16,10.4477993%20C16,11.2974681%2015.3112073,11.9862608%2014.4615385,11.9862608%20L14.4615385,11.9862608%20L1.53846154,11.9862608%20C0.688792693,11.9862608%200,11.2974681%200,10.4477993%20L0,10.4477993%20L0,1.53846154%20C0,0.688792693%200.688792693,0%201.53846154,0%20L1.53846154,0%20Z%20M14.4615385,1.23076923%20L1.53846154,1.23076923%20C1.36852777,1.23076923%201.23076923,1.36852777%201.23076923,1.53846154%20L1.23076923,1.53846154%20L1.23076923,10.4477993%20C1.23076923,10.6177331%201.36852777,10.7554916%201.53846154,10.7554916%20L1.53846154,10.7554916%20L14.4615385,10.7554916%20C14.6314722,10.7554916%2014.7692308,10.6177331%2014.7692308,10.4477993%20L14.7692308,10.4477993%20L14.7692308,1.53846154%20C14.7692308,1.36852777%2014.6314722,1.23076923%2014.4615385,1.23076923%20L14.4615385,1.23076923%20Z%20M6.14307642,3.81624937%20C6.48294396,3.81624937%206.75846104,4.09176645%206.75846104,4.43163399%20L6.75846104,4.43163399%20L6.75846104,7.55462685%20C6.75846104,7.89449439%206.48294396,8.17001146%206.14307642,8.17001146%20L6.14307642,8.17001146%20L2.95665531,8.17001146%20C2.61678777,8.17001146%202.3412707,7.89449439%202.3412707,7.55462685%20L2.3412707,7.55462685%20L2.3412707,4.43163399%20C2.3412707,4.09176645%202.61678777,3.81624937%202.95665531,3.81624937%20L2.95665531,3.81624937%20Z%20M13.247791,3.81624937%20C13.5876586,3.81624937%2013.8631757,4.09176645%2013.8631757,4.43163399%20L13.8631757,4.43163399%20L13.8631757,7.55462685%20C13.8631757,7.89449439%2013.5876586,8.17001146%2013.247791,8.17001146%20L13.247791,8.17001146%20L8.17088167,8.17001146%20C7.83101413,8.17001146%207.55549706,7.89449439%207.55549706,7.55462685%20L7.55549706,7.55462685%20L7.55549706,4.43163399%20C7.55549706,4.09176645%207.83101413,3.81624937%208.17088167,3.81624937%20L8.17088167,3.81624937%20Z%20M5.52707692,5.04615385%20L3.572,5.04615385%20L3.572,6.93846154%20L5.52707692,6.93846154%20L5.52707692,5.04615385%20Z%20M12.632,5.04615385%20L8.78553846,5.04615385%20L8.78553846,6.93846154%20L12.632,6.93846154%20L12.632,5.04615385%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",M={class:"mix-body"},N=["onClick"],F={class:"p-1.5 flex flex-wrap overflow-y-auto"},Z={class:"h-1/2 flex items-center"},H={class:"h-1/2 flex items-center"},$={DEFAULT_ICON:T,ACTIVE_ICON:A,NAME_CN:"卡片组",NAME_EN:"Group Card",ORDER:5,PLATFORM:["pc","screen","mobile"]},R={bgColor:"#fff",titleColor:"#111",textColor:"#111",itemColor:"#e5e5e5",titleSize:14,textSize:13,radiusSize:8,isHideTitle:{value:!1,type:"checkbox",label:"component.options.isHideTitle",repel:"isDynamic"},isDynamic:!1,cardWidth:{value:150,type:"number",label:"component.card.cardWidth",dependent:"isDynamic"},cardHeight:{value:100,type:"number",label:"component.card.cardHeight",dependent:"isDynamic"},tags:{value:[{label:"TAB1",flag:[]}],type:"tags",label:"component.card.tags",dependent:"isDynamic"},titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},k=[{name:"",fv:"",object_id:""}],U=["name","fv","object_id"],W=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],j={useAlias:!1,source:"mosaic",multiObject:!1},P={DEFAULT:$,OPTIONS:R,DATA:k,PARAMS:U,SOURCE:W,COMMON:j},I=e.defineComponent(x(v({},P),{__name:"groupCard",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const l=r,o="--";class L extends O.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),itemColor:this.getOptionValue("itemColor","#e5e5e5"),titleSize:this.getOptionValue("titleSize",14),textSize:this.getOptionValue("textSize",13),radiusSize:this.getOptionValue("radiusSize",8),cardHeight:this.getOptionValue("cardHeight",100),cardWidth:this.getOptionValue("cardWidth",150),isHideTitle:this.getOptionValue("isHideTitle",!1),isDynamic:this.getOptionValue("isDynamic",!1),tags:this.getOptionValue("tags",[])}}init(){return S(this,null,function*(){var c;this.Style.value=this.extractStyles(),this.applyTheme(),(c=this.props.conf.data)!=null&&c.length||(this.props.conf.data=k)})}setHistoryData(c){if(!c)return;const{data:t}=this.props.conf;!Array.isArray(t)||!t.length||t.forEach((i,s)=>{const u=c[s].data[0];u!=null&&(i.value=u)})}setSocketData(c){if(!c)return;const{data:t}=this.props.conf;!Array.isArray(t)||!t.length||t.forEach(i=>{var s;i.value=(s=this.extractDataValue(c,i.fv))!=null?s:o})}}const p=new L(l,"groupCard");p.setupLifecycle();const n=p.getStyle(),g=l.conf,f=e.computed(()=>D.generateTitleStyle(l.conf.options)),a=e.ref(0),m=e.computed(()=>{var i;const{data:d,options:c}=l.conf,t=((i=c.tags)==null?void 0:i.value)||[];return d.filter(s=>{var u,C;return(C=(u=t[a.value])==null?void 0:u.flag)==null?void 0:C.includes(s.fv)})}),b=d=>{a.value=d};return(d,c)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(n).bgColor,borderRadius:`${e.unref(n).radiusSize}px`})},[e.unref(n).isDynamic?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:"flex border-b border-gray-200 px-3",style:e.normalizeStyle({color:e.unref(n).titleColor,fontSize:`${e.unref(n).titleSize}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).tags,(t,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass(["py-2 px-3 cursor-pointer",{actived:a.value===Number(i)}]),style:{"margin-right":"10px"},onClick:s=>b(Number(i))},e.toDisplayString(t.label),11,N))),128))],4),e.createElementVNode("div",F,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(t,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"flex flex-col items-center rounded m-1.5",style:e.normalizeStyle({width:`${e.unref(n).cardWidth}px`,height:`${e.unref(n).cardHeight}px`,background:e.unref(n).itemColor,fontSize:`${e.unref(n).textSize}px`,color:`${e.unref(n).textColor}`})},[e.createElementVNode("div",Z,e.toDisplayString((t==null?void 0:t.value)||o),1),e.createElementVNode("div",H,e.toDisplayString(t==null?void 0:t.name),1)],4))),128))])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(f.value)},e.toDisplayString(e.unref(g).caption||e.unref(g).name),5),e.createElementVNode("div",M,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g).data,(t,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"flex-1 flex mx-3 px-4 mb-3 first:mt-3 rounded items-center justify-between",style:e.normalizeStyle({background:e.unref(n).itemColor,color:e.unref(n).textColor,fontSize:`${e.unref(n).textSize}px`})},[e.createElementVNode("div",null,e.toDisplayString(t.name),1),e.createElementVNode("div",null,e.toDisplayString(t.value),1)],4))),128))])],64)),e.renderSlot(d.$slots,"default",{},void 0,!0)],4))}})),q=V._export_sfc(I,[["__scopeId","data-v-9a559d22"]]);exports.default=q;
|
|
@@ -27,8 +27,8 @@ var A = (n, t, i) => new Promise((b, m) => {
|
|
|
27
27
|
C((i = i.apply(n, t)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as H, computed as T, ref as N, openBlock as c, createElementBlock as d, normalizeStyle as x, unref as o, Fragment as y, createElementVNode as p, toDisplayString as L, renderList as S, normalizeClass as $, renderSlot as R } from "vue";
|
|
30
|
-
import { B as U } from "./BaseComponent-
|
|
31
|
-
import { _ as W } from "./index-
|
|
30
|
+
import { B as U } from "./BaseComponent-7Sa7XOg-.js";
|
|
31
|
+
import { _ as W } from "./index-DUL649KZ.js";
|
|
32
32
|
import { g as j } from "./titleStyle-BT5GlpAb.js";
|
|
33
33
|
const I = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%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(-649.000000,%20-221.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cg%20id='卡片查看模式_view-grid-card'%20transform='translate(649.583607,%20224.127953)'%3e%3cpath%20d='M14.4615385,0%20C15.3112073,0%2016,0.688792693%2016,1.53846154%20L16,1.53846154%20L16,10.4477993%20C16,11.2974681%2015.3112073,11.9862608%2014.4615385,11.9862608%20L14.4615385,11.9862608%20L1.53846154,11.9862608%20C0.688792693,11.9862608%200,11.2974681%200,10.4477993%20L0,10.4477993%20L0,1.53846154%20C0,0.688792693%200.688792693,0%201.53846154,0%20L1.53846154,0%20Z%20M14.4615385,1.23076923%20L1.53846154,1.23076923%20C1.36852777,1.23076923%201.23076923,1.36852777%201.23076923,1.53846154%20L1.23076923,1.53846154%20L1.23076923,10.4477993%20C1.23076923,10.6177331%201.36852777,10.7554916%201.53846154,10.7554916%20L1.53846154,10.7554916%20L14.4615385,10.7554916%20C14.6314722,10.7554916%2014.7692308,10.6177331%2014.7692308,10.4477993%20L14.7692308,10.4477993%20L14.7692308,1.53846154%20C14.7692308,1.36852777%2014.6314722,1.23076923%2014.4615385,1.23076923%20L14.4615385,1.23076923%20Z%20M6.14307642,3.81624937%20C6.48294396,3.81624937%206.75846104,4.09176645%206.75846104,4.43163399%20L6.75846104,4.43163399%20L6.75846104,7.55462685%20C6.75846104,7.89449439%206.48294396,8.17001146%206.14307642,8.17001146%20L6.14307642,8.17001146%20L2.95665531,8.17001146%20C2.61678777,8.17001146%202.3412707,7.89449439%202.3412707,7.55462685%20L2.3412707,7.55462685%20L2.3412707,4.43163399%20C2.3412707,4.09176645%202.61678777,3.81624937%202.95665531,3.81624937%20L2.95665531,3.81624937%20Z%20M13.247791,3.81624937%20C13.5876586,3.81624937%2013.8631757,4.09176645%2013.8631757,4.43163399%20L13.8631757,4.43163399%20L13.8631757,7.55462685%20C13.8631757,7.89449439%2013.5876586,8.17001146%2013.247791,8.17001146%20L13.247791,8.17001146%20L8.17088167,8.17001146%20C7.83101413,8.17001146%207.55549706,7.89449439%207.55549706,7.55462685%20L7.55549706,7.55462685%20L7.55549706,4.43163399%20C7.55549706,4.09176645%207.83101413,3.81624937%208.17088167,3.81624937%20L8.17088167,3.81624937%20Z%20M5.52707692,5.04615385%20L3.572,5.04615385%20L3.572,6.93846154%20L5.52707692,6.93846154%20L5.52707692,5.04615385%20Z%20M12.632,5.04615385%20L8.78553846,5.04615385%20L8.78553846,6.93846154%20L12.632,6.93846154%20L12.632,5.04615385%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", P = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%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(-649.000000,%20-221.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cg%20id='卡片查看模式_view-grid-card'%20transform='translate(649.583607,%20224.127953)'%3e%3cpath%20d='M14.4615385,0%20C15.3112073,0%2016,0.688792693%2016,1.53846154%20L16,1.53846154%20L16,10.4477993%20C16,11.2974681%2015.3112073,11.9862608%2014.4615385,11.9862608%20L14.4615385,11.9862608%20L1.53846154,11.9862608%20C0.688792693,11.9862608%200,11.2974681%200,10.4477993%20L0,10.4477993%20L0,1.53846154%20C0,0.688792693%200.688792693,0%201.53846154,0%20L1.53846154,0%20Z%20M14.4615385,1.23076923%20L1.53846154,1.23076923%20C1.36852777,1.23076923%201.23076923,1.36852777%201.23076923,1.53846154%20L1.23076923,1.53846154%20L1.23076923,10.4477993%20C1.23076923,10.6177331%201.36852777,10.7554916%201.53846154,10.7554916%20L1.53846154,10.7554916%20L14.4615385,10.7554916%20C14.6314722,10.7554916%2014.7692308,10.6177331%2014.7692308,10.4477993%20L14.7692308,10.4477993%20L14.7692308,1.53846154%20C14.7692308,1.36852777%2014.6314722,1.23076923%2014.4615385,1.23076923%20L14.4615385,1.23076923%20Z%20M6.14307642,3.81624937%20C6.48294396,3.81624937%206.75846104,4.09176645%206.75846104,4.43163399%20L6.75846104,4.43163399%20L6.75846104,7.55462685%20C6.75846104,7.89449439%206.48294396,8.17001146%206.14307642,8.17001146%20L6.14307642,8.17001146%20L2.95665531,8.17001146%20C2.61678777,8.17001146%202.3412707,7.89449439%202.3412707,7.55462685%20L2.3412707,7.55462685%20L2.3412707,4.43163399%20C2.3412707,4.09176645%202.61678777,3.81624937%202.95665531,3.81624937%20L2.95665531,3.81624937%20Z%20M13.247791,3.81624937%20C13.5876586,3.81624937%2013.8631757,4.09176645%2013.8631757,4.43163399%20L13.8631757,4.43163399%20L13.8631757,7.55462685%20C13.8631757,7.89449439%2013.5876586,8.17001146%2013.247791,8.17001146%20L13.247791,8.17001146%20L8.17088167,8.17001146%20C7.83101413,8.17001146%207.55549706,7.89449439%207.55549706,7.55462685%20L7.55549706,7.55462685%20L7.55549706,4.43163399%20C7.55549706,4.09176645%207.83101413,3.81624937%208.17088167,3.81624937%20L8.17088167,3.81624937%20Z%20M5.52707692,5.04615385%20L3.572,5.04615385%20L3.572,6.93846154%20L5.52707692,6.93846154%20L5.52707692,5.04615385%20Z%20M12.632,5.04615385%20L8.78553846,5.04615385%20L8.78553846,6.93846154%20L12.632,6.93846154%20L12.632,5.04615385%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", G = { class: "mix-body" }, q = ["onClick"], J = { class: "p-1.5 flex flex-wrap overflow-y-auto" }, K = { class: "h-1/2 flex items-center" }, Q = { class: "h-1/2 flex items-center" }, X = {
|
|
34
34
|
DEFAULT_ICON: I,
|
|
@@ -29,8 +29,8 @@ var w = (s, l, r) => new Promise((S, d) => {
|
|
|
29
29
|
import { defineComponent as X, useCssVars as Y, unref as c, inject as B, ref as Z, computed as U, openBlock as h, createElementBlock as v, createStaticVNode as ee, createElementVNode as m, Fragment as E, renderList as k, normalizeStyle as te, normalizeClass as z, toDisplayString as x, renderSlot as ae } from "vue";
|
|
30
30
|
import { ElMessage as T } from "element-plus";
|
|
31
31
|
import "html2canvas";
|
|
32
|
-
import { B as oe } from "./BaseComponent-
|
|
33
|
-
import { a as re, _ as le } from "./index-
|
|
32
|
+
import { B as oe } from "./BaseComponent-7Sa7XOg-.js";
|
|
33
|
+
import { a as re, _ as le } from "./index-DUL649KZ.js";
|
|
34
34
|
import { A as ne, D as ce } from "./ele-textbox-icon-ClGaLi5p.js";
|
|
35
35
|
const se = { class: "header-bar-wrapper" }, ie = { class: "particles" }, de = { class: "header-left" }, ue = ["onClick"], fe = { class: "header-center" }, pe = { class: "header-title" }, me = { class: "header-right" }, he = ["onClick"], ve = {
|
|
36
36
|
DEFAULT_ICON: ce,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var I=Object.defineProperty,U=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var k=(s,l,r)=>l in s?I(s,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[l]=r,S=(s,l)=>{for(var r in l||(l={}))L.call(l,r)&&k(s,r,l[r]);if(B)for(var r of B(l))q.call(l,r)&&k(s,r,l[r]);return s},N=(s,l)=>U(s,z(l));var C=(s,l,r)=>new Promise((j,u)=>{var _=i=>{try{n(r.next(i))}catch(h){u(h)}},p=i=>{try{n(r.throw(i))}catch(h){u(h)}},n=i=>i.done?j(i.value):Promise.resolve(i.value).then(_,p);n((r=r.apply(s,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("element-plus");require("html2canvas");const R=require("./BaseComponent-
|
|
1
|
+
"use strict";var I=Object.defineProperty,U=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var k=(s,l,r)=>l in s?I(s,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[l]=r,S=(s,l)=>{for(var r in l||(l={}))L.call(l,r)&&k(s,r,l[r]);if(B)for(var r of B(l))q.call(l,r)&&k(s,r,l[r]);return s},N=(s,l)=>U(s,z(l));var C=(s,l,r)=>new Promise((j,u)=>{var _=i=>{try{n(r.next(i))}catch(h){u(h)}},p=i=>{try{n(r.throw(i))}catch(h){u(h)}},n=i=>i.done?j(i.value):Promise.resolve(i.value).then(_,p);n((r=r.apply(s,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("element-plus");require("html2canvas");const R=require("./BaseComponent-BabOc6Kc.cjs"),$=require("./index-Cm7hGuPj.cjs"),x=require("./ele-textbox-icon-g_5kV8t6.cjs"),H={class:"header-bar-wrapper"},J={class:"particles"},W={class:"header-left"},G=["onClick"],K={class:"header-center"},Q={class:"header-title"},X={class:"header-right"},Y=["onClick"],Z={DEFAULT_ICON:x.DEFAULT_ICON,ACTIVE_ICON:x.ACTIVE_ICON,NAME_CN:"顶栏标题",NAME_EN:"Header Bar",ORDER:13,PLATFORM:["pc","screen"]},ee={title:{value:"数字孪生管理平台",type:"string",label:"component.headerBar.title"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},borderColor:{value:"#1e90ff",type:"color",label:"component.headerBar.borderColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.headerBar.accentColor"},titleSize:{value:28,type:"number",label:"component.headerBar.titleSize",min:16,max:48},glowEffect:{value:!0,type:"checkbox",label:"component.headerBar.glowEffect"}},te=[{name:"首页",position:"left",actionType:"jump",jumpType:"uid",jumpParam:""},{name:"监控",position:"left",actionType:"jump",jumpType:"url",jumpParam:""},{name:"返回",position:"right",actionType:"back",jumpType:"",jumpParam:""},{name:"全屏",position:"right",actionType:"fullscreen",jumpType:"",jumpParam:""}],ae=["name","position","actionType","jumpType","jumpParam"],oe=["mosaic"],ne={useAlias:!1,multiObject:!1,source:"mosaic"},re={DEFAULT:Z,OPTIONS:ee,DATA:te,PARAMS:ae,SOURCE:oe,COMMON:ne},le=e.defineComponent(N(S({},re),{__name:"headerBar",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(s){e.useCssVars(c=>({v708b44dd:e.unref(n).bgColor,v1bd98454:e.unref(n).borderColor,fdc4a010:e.unref(n).accentColor,v11cba935:e.unref(n).textColor,v30641610:e.unref(n).glowEffect?`0 0 15px ${e.unref(n).accentColor}40`:"none",v74c60d48:e.unref(n).glowEffect?`0 0 20px ${e.unref(n).accentColor}60`:"none",v4fb37396:e.unref(n).titleSize+"px",v34c33394:e.unref(n).glowEffect?`0 0 20px ${e.unref(n).accentColor}, 0 0 40px ${e.unref(n).accentColor}40`:"none",v7e9c3061:e.unref(n).glowEffect?`0 0 10px ${e.unref(n).accentColor}`:"none"}));const l=e.inject("switchSheet",()=>{}),r=e.inject("getSheets",()=>[]),j=e.inject("getCurrentSheet",()=>0),u=s;class _ extends R.BaseComponent{extractStyles(){var a,o,d,v,b,g,f,y;const{options:t}=this.props.conf;return{title:((a=t==null?void 0:t.title)==null?void 0:a.value)||"数字孪生管理平台",bgColor:((o=t==null?void 0:t.bgColor)==null?void 0:o.value)||"#ffffff",borderColor:((d=t==null?void 0:t.borderColor)==null?void 0:d.value)||"#1e90ff",textColor:((v=t==null?void 0:t.textColor)==null?void 0:v.value)||"#333333",accentColor:((b=t==null?void 0:t.accentColor)==null?void 0:b.value)||"#409eff",titleSize:((g=t==null?void 0:t.titleSize)==null?void 0:g.value)||28,glowEffect:(y=(f=t==null?void 0:t.glowEffect)==null?void 0:f.value)!=null?y:!0}}getDefaultData(){return[{name:"首页",position:"left",actionType:"jump",jumpType:"uid",jumpParam:""},{name:"监控",position:"left",actionType:"jump",jumpType:"url",jumpParam:""},{name:"返回",position:"right",actionType:"back",jumpType:"",jumpParam:""},{name:"全屏",position:"right",actionType:"fullscreen",jumpType:"",jumpParam:""}]}}const p=new _(u,"headerBar");(!u.conf.data||u.conf.data.length===0)&&(u.conf.data=p.getDefaultData()),p.setupLifecycle();const n=p.getStyle(),i=e.ref(null),h=e.computed(()=>{var t;return(((t=u.conf)==null?void 0:t.data)||[]).filter(a=>a.position==="left")}),O=e.computed(()=>{var t;return(((t=u.conf)==null?void 0:t.data)||[]).filter(a=>a.position==="right")}),P=c=>C(null,null,function*(){try{const{result:t}=yield $.api.post("get_object_item",{uid:c},!0);if(t!=null&&t.show_uid){const a=location.href;return`${a.substring(0,a.indexOf("#")+1)}/show/${t.show_uid}?uid=${c}`}return null}catch(t){return console.error("获取跳转地址失败:",t),null}}),M=c=>C(null,null,function*(){var g;const{jumpType:t,jumpParam:a}=c;if(t==="sheet"){const f=r(),y=j();if(f.length<=1){E.ElMessage.warning("当前只有一个页面");return}let m;!a||a===""?m=(y+1)%f.length:isNaN(Number(a))?m=f.findIndex(w=>w.name===a||w.id===a):m=Number(a),m>=0&&m<f.length?(l(m),console.log("切换到页面:",m,(g=f[m])==null?void 0:g.name)):E.ElMessage.error("未找到目标页面");return}if(!a){E.ElMessage.warning("未设置跳转参数");return}let o=null;const d=location.href,v=d.substring(0,d.indexOf("#")+1),b=a.startsWith("http://")||a.startsWith("https://");t==="url"||b?o=a:t==="uid"?o=`${v}/show/${a}`:t==="object"&&(o=yield P(a)),console.log("跳转地址:",o,"跳转类型:",t,"参数:",a),o?window.open(o,"_self"):E.ElMessage.error("跳转失败,请检查参数")}),D=()=>{window.history.back()},A=()=>{window.location.reload()},V=()=>{document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()},T=(c,t,a)=>C(null,null,function*(){if(u.mode==="edit"){i.value=`${c}-${t}`,console.log("编辑模式 - 点击按钮:",a);return}switch(i.value=`${c}-${t}`,a.actionType||"jump"){case"jump":yield M(a);break;case"back":D();break;case"refresh":A();break;case"fullscreen":V();break;default:console.log("自定义动作:",a)}}),F=c=>{const t=5+(c-1)*8+Math.random()*5,a=Math.random()*5,o=3+Math.random()*4,d=2+Math.random()*3;return{left:`${t}%`,animationDelay:`${a}s`,animationDuration:`${o}s`,width:`${d}px`,height:`${d}px`}};return(c,t)=>(e.openBlock(),e.createElementBlock("div",H,[t[2]||(t[2]=e.createStaticVNode('<div class="header-bg" data-v-fbe501de><div class="bg-line left-line" data-v-fbe501de><div class="flow-light" data-v-fbe501de></div></div><div class="bg-center" data-v-fbe501de><div class="scan-line" data-v-fbe501de></div><div class="grid-pattern" data-v-fbe501de></div></div><div class="bg-line right-line" data-v-fbe501de><div class="flow-light reverse" data-v-fbe501de></div></div></div>',1)),e.createElementVNode("div",J,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,a=>e.createElementVNode("span",{key:a,class:"particle",style:e.normalizeStyle(F(a))},null,4)),64))]),e.createElementVNode("div",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(a,o)=>(e.openBlock(),e.createElementBlock("button",{key:"left-"+o,class:e.normalizeClass(["header-btn",{active:i.value==="left-"+o}]),onClick:d=>T("left",o,a)},e.toDisplayString(a.name),11,G))),128))]),e.createElementVNode("div",K,[t[0]||(t[0]=e.createElementVNode("div",{class:"title-decoration left-dec"},null,-1)),e.createElementVNode("h1",Q,e.toDisplayString(e.unref(n).title),1),t[1]||(t[1]=e.createElementVNode("div",{class:"title-decoration right-dec"},null,-1))]),e.createElementVNode("div",X,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,(a,o)=>(e.openBlock(),e.createElementBlock("button",{key:"right-"+o,class:e.normalizeClass(["header-btn",{active:i.value==="right-"+o}]),onClick:d=>T("right",o,a)},e.toDisplayString(a.name),11,Y))),128))]),e.renderSlot(c.$slots,"default",{},void 0,!0)]))}})),ce=$._export_sfc(le,[["__scopeId","data-v-fbe501de"]]);exports.default=ce;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var T=Object.defineProperty,U=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var C=(y,t,i)=>t in y?T(y,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):y[t]=i,p=(y,t)=>{for(var i in t||(t={}))J.call(t,i)&&C(y,i,t[i]);if(N)for(var i of N(t))q.call(t,i)&&C(y,i,t[i]);return y},m=(y,t)=>U(y,F(t));var H=(y,t,i)=>new Promise((a,e)=>{var s=c=>{try{r(i.next(c))}catch(n){e(n)}},o=c=>{try{r(i.throw(c))}catch(n){e(n)}},r=c=>c.done?a(c.value):Promise.resolve(c.value).then(s,o);r((i=i.apply(y,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-Bo49zvKb.cjs"),G=["crd","vlu","arrayCard"];class L{constructor(){}getHistoryData(t,i){return H(this,null,function*(){var M,w,R,z,P,B;if(i==="retainer1")return this.getRetainerHistoryData(t,1);if(i==="retainer2")return this.getRetainerHistoryData(t,4);let a="result";const{conf:e,uid:s}=t,{data:o,common:r,options:c}=e,n=r.source||"mosaic";n==="mosaic"&&(a=G.includes(i)?"single":"multiple"),["statistics","calculate"].includes(n)&&(o.filter(f=>{var _;return(_=f.periodUnit)==null?void 0:_.includes("near")}).length&&["bar","lin"].includes(i)?a="near":a="result");let u=c.points||1,b="";const h=(d,f)=>{const _=d||{},k={object_id:_.object_id||_.objectid||"",objectid:_.objectid||_.object_id||"",object_alias:_.object_alias||_.alias||"",alias:_.alias||_.object_alias||""},j=f?{object_alias:f,alias:f,object_id:f,objectid:f}:k,v=l.getObjectId(j,!!r.useAlias,s);return v||String(_.object_id||_.objectid||s||"")},S=(d,f)=>{const k=f?{object_alias:f,alias:f,object_id:f,objectid:f}:d||{};if(!r.useAlias){const g=h(k,f);return g?[g]:[]}const j=l.getObjectIdsByAliasPattern(k,s);if(j.length>0)return j;const v=h(k,f);return v?[v]:[]};yield l.loadAliasMappingFromJsonIfNeeded({common:r,data:o,options:c});const E=S(r,(M=c.object)==null?void 0:M.value),A=E[0]||s;if(r.multiObject||(b=h(r,(w=c.object)==null?void 0:w.value)||A),r.source==="summary")return new Promise(d=>{l.api.platform(f=>{d(f.result)},{block_mapping:"schema",action:"get_statistical_quantity"})});const O=[],Y=this.normalizeHistoryTimeRange(r.historyTimeRange);o.forEach(d=>{var k;const f=r.multiObject?S(d,d.object_alias||d.alias):E.length>1?E:[b||A].filter(Boolean),_=f[0]||A;if((r.multiObject||f.length>1)&&(d.object_id=_||d.object_id||A,d.objectid=_||d.objectid||A),r.useAlias&&!_){const j=h({object_alias:d.object_alias||d.alias||d.object_id||d.objectid,alias:d.alias||d.object_alias||d.object_id||d.objectid,object_id:d.object_id,objectid:d.objectid},d.object_alias||d.alias)||A;d.object_id=j,d.objectid=j}if(Y&&n==="mosaic")f.length>1?f.forEach(j=>{O.push(this.get_mosaic_by_time_range(m(p({},d),{object_id:j,objectid:j}),u,Y))}):O.push(this.get_mosaic_by_time_range(m(p({},d),{object_id:_,objectid:_}),u,Y));else if((k=r==null?void 0:r.rate)!=null&&k.checked&&n==="mosaic")f.length>1?f.forEach(j=>{O.push(this.get_mosaic_by_timespan(m(p({},d),{object_id:j,objectid:j}),u,r.rate))}):O.push(this.get_mosaic_by_timespan(m(p({},d),{object_id:_,objectid:_}),u,r.rate));else{const j=`get_${n}_item`;if(typeof this[j]=="function")if(f.length>1)f.forEach(v=>{const g=m(p({},d),{object_id:v,objectid:v}),D=this[j](g,a,u,i);Y&&(n==="statistics"||n==="calculate")&&D&&(D.start_time=Y.start_time,D.end_time=Y.end_time),O.push(D)});else{const v=m(p({},d),{object_id:_,objectid:_}),g=this[j](v,a,u,i);Y&&(n==="statistics"||n==="calculate")&&g&&(g.start_time=Y.start_time,g.end_time=Y.end_time),O.push(g)}}}),i==="scd"&&((R=c.multipleImg)!=null&&R.value)&&(b=l.getObjectId({object_alias:(z=c.object)==null?void 0:z.value,object_id:(P=c.object)==null?void 0:P.value},!!r.useAlias,s),O.push({action:"get_mosaic_list",keys:[(B=c.statusFv)==null?void 0:B.value],object_id:b||s,page_index:1,page_size:1})),i==="sankey"&&(r.multiObject&&(b=l.getObjectId(r,!!r.useAlias,s)),O.unshift({action:"get_mosaic_list",keys:[r.originFv],object_id:b,page_index:1,page_size:1}));const x=O.filter(d=>d&&typeof d=="object"&&typeof d.action=="string"&&String(d.action).trim()!=="");return x.length===0?Promise.resolve({history:[]}):new Promise(d=>{const f=_=>{if(!_||Array.isArray(_.history)&&_.history.length>0)return _;if(Array.isArray(_.data))return m(p({},_),{history:[_.data]});if(Array.isArray(_)){const k=[];let j;const v=g=>g?Array.isArray(g.history)&&g.history.length>0?Array.isArray(g.history[0])?g.history[0]:g.history:Array.isArray(g.data)?g.data:Array.isArray(g)?g:typeof g=="object"?[g]:[]:[];return _.forEach(g=>{const D=v(g);k.push(D),g&&typeof g=="object"&&Array.isArray(g.all_data_group)&&(j||(j=[]),j.push(...g.all_data_group))}),m(p({},j?{all_data_group:j}:{}),{history:k})}return _&&typeof _=="object"&&!Array.isArray(_.history)?{history:[[_]]}:_};x.length===1?l.api.platform(_=>{d(f(_.result))},x[0]):l.api.platform(_=>{d(f(_.result))},{condition:x})})})}get_mosaic_item(t,i,a,e){const s={action:i==="single"?"get_last_fv_by_objid":"get_mosaic_list",keys:[t.fv],object_id:t.object_id};return i!=="single"&&(s.page_index=1,s.page_size=a||1),e==="evn"&&(s.keys=[t.fv,t.status_fv]),e==="cmc"&&(s.keys=[t.item_fv]),["ctrSwitch"].includes(e)&&(s.keys=[t.status_fv]),["progressBar","progressCircle"].includes(e)&&t.maxType==="fv"&&(s.keys=[t.fv,t.max]),s}normalizeHistoryTimeRange(t){if(!t)return null;const i=t.start_time||t.startDate,a=t.end_time||t.endDate;if(!i||!a)return null;const e=l.dayjs(i).isValid()?l.dayjs(i).format("YYYY-MM-DD HH:mm:ss"):String(i),s=l.dayjs(a).isValid()?l.dayjs(a).format("YYYY-MM-DD HH:mm:ss"):String(a);return{start_time:e,end_time:s}}get_mosaic_by_time_range(t,i,a){const e=t,s=[e==null?void 0:e.fv,e==null?void 0:e.item_fv,e==null?void 0:e.fv_x,e==null?void 0:e.fv_y,e==null?void 0:e.fv_radius,e==null?void 0:e.fv_angle].filter(Boolean);return{action:"get_mosaic_list",start_time:a.start_time,end_time:a.end_time,keys:s.length?s:[e==null?void 0:e.fv].filter(Boolean),object_id:t.object_id,page_index:1,page_size:i||100}}get_mosaic_by_timespan(t,i,a){const e=l.dayjs().unix(),s=e-a.value*Number(i),o=t,r=[o==null?void 0:o.fv,o==null?void 0:o.item_fv,o==null?void 0:o.fv_x,o==null?void 0:o.fv_y,o==null?void 0:o.fv_radius,o==null?void 0:o.fv_angle].filter(Boolean);return{action:"get_mosaic_list",start_time:l.dayjs(s*1e3).format("YYYY-MM-DD HH:mm:ss"),end_time:l.dayjs(e*1e3).format("YYYY-MM-DD HH:mm:ss"),keys:r.length?r:[o==null?void 0:o.fv].filter(Boolean),object_id:t.object_id,page_index:1,page_size:i||100}}get_statistics_item(t,i,a){var e,s;return(e=t.periodUnit)!=null&&e.includes("near")?this.get_neardate_item(t,"statistics"):{action:"get_statistics_list",script_uid:(s=t.uid)!=null?s:t.fv,page_size:Number(a)||20,page_index:1,order_by:JSON.stringify(["end_time","desc"])}}get_calculate_item(t,i,a){var e,s;return(e=t.periodUnit)!=null&&e.includes("near")?this.get_neardate_item(t,"calculate"):{action:"get_calculate_list",script_uid:(s=t.uid)!=null?s:t.fv,page_size:Number(a)||20,page_index:1,order_by:JSON.stringify(["end_time","desc"])}}get_neardate_item(t,i){var a;return{action:i==="statistics"?"get_last_statistics":"get_last_calculate",script_uid:(a=t.uid)!=null?a:t.fv,object_id:t.object_id}}get_index_item(t,i,a,e){const s=t.is_alias?"alias":"uid";return{page_index:1,page_size:a,block_mapping:"index",action:"get_index_result_list",where_and:[[s,"=",t.fv],["object_id","=",t.object_id]]}}get_deviation_item(t,i,a,e){return m(p({},this.get_index_item(t,i,a,e)),{block_mapping:"deviation",action:"get_deviation_result_list"})}get_stability_item(t,i,a,e){return m(p({},this.get_index_item(t,i,a,e)),{block_mapping:"stability",action:"get_stability_result_list"})}get_balance_item(t,i,a,e){return m(p({},this.get_index_item(t,i,a,e)),{block_mapping:"balance",action:"get_balance_result_list"})}get_increment_item(t,i,a,e){return m(p({},this.get_index_item(t,i,a,e)),{block_mapping:"increment",action:"get_increment_result_list"})}get_risk_item(t,i,a,e){return m(p({},this.get_index_item(t,i,a,e)),{block_mapping:"risk",action:"get_risk_result_list"})}get_summary_item(){return{block_mapping:"schema",action:"get_statistical_quantity"}}getRangeLineHistoryData(t){var n,u;const{conf:i,uid:a}=t,e=((u=(n=i==null?void 0:i.options)==null?void 0:n.points)==null?void 0:u.value)||100,s=i.common.source||"mosaic",o=JSON.parse(sessionStorage.getItem("object_alias_uid_mapping")||"{}"),r=i.data[0]||{};let c="";return i.useAlias?c=r.object_alias&&o[r.object_alias]||a:c=r.object_id||a,s==="deviation"?this.getDeviationHistory(i,c,e):this.getEigenHistory(i,c,e)}getDeviationHistory(t,i,a){const e=t.data[0]||{},s=e.is_alias?"alias":"uid",o={block_mapping:"deviation",action:"get_deviation_result_list",page_index:1,page_size:a,where_and:[["object_id","=",i]]};return e.fv&&o.where_and.unshift([s,"=",e.fv]),new Promise(r=>{l.api.platform(c=>{r(this.formatDeviation(c.result))},o)})}getEigenHistory(t,i,a){return H(this,null,function*(){const e={times:[],data:[],range:{}};(yield new Promise(r=>{const c={action:"get_mosaic_list",keys:[t.data[0].fv],object_id:i,page_index:1,page_size:a};l.api.platform(n=>{const u=n.result.data?n.result.data.sort((b,h)=>l.dayjs(b.time).valueOf()-l.dayjs(h.time).valueOf()):[];r(u)},c)})).forEach(r=>{var c;e.times.push(l.dayjs(r.time).format("YYYY-MM-DD HH:mm:ss")),e.data.push((c=r[t.data[0].fv])!=null?c:"-")});const o={action:"get_adaps_report_list",block_mapping:"eigen",where_and:[["start",">=",e.times[0]],["end","<=",e.times[e.times.length-1]],["project_uid","=",t.data[0].project_id],["object_id","=",i]]};return new Promise(r=>{l.api.platform(c=>{e.range=this.formatEigen(c.result.data,e.times),r(e)},o)})})}formatDeviation(t){const i={times:[],data:[],range:{}},a={};t.data.sort((s,o)=>l.dayjs(s.created).valueOf()-l.dayjs(o.created).valueOf()).forEach((s,o)=>{i.times.push(s.created),i.data.push(s.data.Dev),s.data.Base&&(a[s.data.Base]?a[s.data.Base].push([o,o]):a[s.data.Base]=[[o,o]])});for(const s in a){const o=[],r=a[s];if(r.length===0)continue;let c=[r[0]];for(let n=1;n<r.length;n++)r[n][0]-r[n-1][0]===1?c.push(r[n]):(o.push(c),c=[r[n]]);o.push(c),a[s]=o.map(n=>[n[0][0],n[n.length-1][0]])}return i.range=a,i}formatEigen(t,i){const a={};return t.sort((s,o)=>l.dayjs(s.created).valueOf()-l.dayjs(o.created).valueOf()).forEach(s=>{const o=JSON.parse(s.detail),r=[l.dayjs(s.start).format("YYYY-MM-DD HH:mm:ss"),l.dayjs(s.end).format("YYYY-MM-DD HH:mm:ss")];o.Main.forEach(c=>{var h;const n=(h=c.report)!=null&&h.start?[l.dayjs(c.report[0].start.datetime).format("YYYY-MM-DD HH:mm:ss"),l.dayjs(c.report[0].end.datetime).format("YYYY-MM-DD HH:mm:ss")]:r,u=i.indexOf(n[0]),b=i.indexOf(n[1]);u===-1||b===-1||(a[c.key_type]?a[c.key_type].push([u,b]):a[c.key_type]=[[u,b]])})}),a}getSwitchHistoryData(t){const{conf:i,uid:a}=t,{common:e}=i,s=l.getObjectId(e,!!e.useAlias,a),o={action:"get_last_fv_by_objid",keys:[e.statusFv],object_id:s};return new Promise(r=>{l.api.platform(c=>{r(c.result)},o)})}getRetainerHistoryData(t,i=1){return H(this,null,function*(){const{conf:a,uid:e}=t,{data:s,common:o}=a,r=yield l.api.getTokenForBackend(),c={block_mapping:"mixtask",action:"user_action",user_action:"get_retainer_result",args:{items:i,token:r,condition:[]}};return s.forEach(n=>{let u="";o.multiObject?u=l.getObjectId(n,!!o.useAlias,e):u=l.getObjectId(o,!!o.useAlias,e),c.args.condition.push({object_id:u||n.object_id,retainer:n.retainer||"",retainer_code:n.retainer_code||"",fv:n.fv||""})}),new Promise(n=>{l.api.platform(u=>{if(u.code===200&&u.result){const b=Array.isArray(u.result)?u.result[0]:u.result;n(b)}else n({history:[]})},c)})})}getGridviewHistoryData(t){const{conf:i,uid:a}=t,{common:e,data:s}=i,o=e.source||"mosaic";let r="result";o==="mosaic"&&(r="single");let c="";if(e.multiObject||(c=l.getObjectId(e,!!e.useAlias,a)),o==="summary")return new Promise(u=>{l.api.platform(b=>{u(b.result)},{block_mapping:"schema",action:"get_statistical_quantity"})});const n=[];return s.forEach(u=>{u.forEach(b=>{if(b.isValue){e.multiObject&&(c=l.getObjectId({object_id:b.object,object_alias:b.object},!!e.useAlias,a)),b.object_id=c;const h=`get_${o}_item`;typeof this[h]=="function"&&n.push(this[h](b,r,1,""))}})}),new Promise(u=>{n.length===1?l.api.platform(b=>{u(b.result)},n[0]):n.length>1?l.api.platform(b=>{u(b.result)},{condition:n}):u({data:[]})})}}exports.default=L;
|
|
1
|
+
"use strict";var T=Object.defineProperty,U=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var C=(y,t,i)=>t in y?T(y,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):y[t]=i,p=(y,t)=>{for(var i in t||(t={}))J.call(t,i)&&C(y,i,t[i]);if(N)for(var i of N(t))q.call(t,i)&&C(y,i,t[i]);return y},m=(y,t)=>U(y,F(t));var H=(y,t,i)=>new Promise((a,e)=>{var s=c=>{try{r(i.next(c))}catch(n){e(n)}},o=c=>{try{r(i.throw(c))}catch(n){e(n)}},r=c=>c.done?a(c.value):Promise.resolve(c.value).then(s,o);r((i=i.apply(y,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-Cm7hGuPj.cjs"),G=["crd","vlu","arrayCard"];class L{constructor(){}getHistoryData(t,i){return H(this,null,function*(){var M,w,R,z,P,B;if(i==="retainer1")return this.getRetainerHistoryData(t,1);if(i==="retainer2")return this.getRetainerHistoryData(t,4);let a="result";const{conf:e,uid:s}=t,{data:o,common:r,options:c}=e,n=r.source||"mosaic";n==="mosaic"&&(a=G.includes(i)?"single":"multiple"),["statistics","calculate"].includes(n)&&(o.filter(f=>{var _;return(_=f.periodUnit)==null?void 0:_.includes("near")}).length&&["bar","lin"].includes(i)?a="near":a="result");let u=c.points||1,b="";const h=(d,f)=>{const _=d||{},k={object_id:_.object_id||_.objectid||"",objectid:_.objectid||_.object_id||"",object_alias:_.object_alias||_.alias||"",alias:_.alias||_.object_alias||""},j=f?{object_alias:f,alias:f,object_id:f,objectid:f}:k,v=l.getObjectId(j,!!r.useAlias,s);return v||String(_.object_id||_.objectid||s||"")},S=(d,f)=>{const k=f?{object_alias:f,alias:f,object_id:f,objectid:f}:d||{};if(!r.useAlias){const g=h(k,f);return g?[g]:[]}const j=l.getObjectIdsByAliasPattern(k,s);if(j.length>0)return j;const v=h(k,f);return v?[v]:[]};yield l.loadAliasMappingFromJsonIfNeeded({common:r,data:o,options:c});const E=S(r,(M=c.object)==null?void 0:M.value),A=E[0]||s;if(r.multiObject||(b=h(r,(w=c.object)==null?void 0:w.value)||A),r.source==="summary")return new Promise(d=>{l.api.platform(f=>{d(f.result)},{block_mapping:"schema",action:"get_statistical_quantity"})});const O=[],Y=this.normalizeHistoryTimeRange(r.historyTimeRange);o.forEach(d=>{var k;const f=r.multiObject?S(d,d.object_alias||d.alias):E.length>1?E:[b||A].filter(Boolean),_=f[0]||A;if((r.multiObject||f.length>1)&&(d.object_id=_||d.object_id||A,d.objectid=_||d.objectid||A),r.useAlias&&!_){const j=h({object_alias:d.object_alias||d.alias||d.object_id||d.objectid,alias:d.alias||d.object_alias||d.object_id||d.objectid,object_id:d.object_id,objectid:d.objectid},d.object_alias||d.alias)||A;d.object_id=j,d.objectid=j}if(Y&&n==="mosaic")f.length>1?f.forEach(j=>{O.push(this.get_mosaic_by_time_range(m(p({},d),{object_id:j,objectid:j}),u,Y))}):O.push(this.get_mosaic_by_time_range(m(p({},d),{object_id:_,objectid:_}),u,Y));else if((k=r==null?void 0:r.rate)!=null&&k.checked&&n==="mosaic")f.length>1?f.forEach(j=>{O.push(this.get_mosaic_by_timespan(m(p({},d),{object_id:j,objectid:j}),u,r.rate))}):O.push(this.get_mosaic_by_timespan(m(p({},d),{object_id:_,objectid:_}),u,r.rate));else{const j=`get_${n}_item`;if(typeof this[j]=="function")if(f.length>1)f.forEach(v=>{const g=m(p({},d),{object_id:v,objectid:v}),D=this[j](g,a,u,i);Y&&(n==="statistics"||n==="calculate")&&D&&(D.start_time=Y.start_time,D.end_time=Y.end_time),O.push(D)});else{const v=m(p({},d),{object_id:_,objectid:_}),g=this[j](v,a,u,i);Y&&(n==="statistics"||n==="calculate")&&g&&(g.start_time=Y.start_time,g.end_time=Y.end_time),O.push(g)}}}),i==="scd"&&((R=c.multipleImg)!=null&&R.value)&&(b=l.getObjectId({object_alias:(z=c.object)==null?void 0:z.value,object_id:(P=c.object)==null?void 0:P.value},!!r.useAlias,s),O.push({action:"get_mosaic_list",keys:[(B=c.statusFv)==null?void 0:B.value],object_id:b||s,page_index:1,page_size:1})),i==="sankey"&&(r.multiObject&&(b=l.getObjectId(r,!!r.useAlias,s)),O.unshift({action:"get_mosaic_list",keys:[r.originFv],object_id:b,page_index:1,page_size:1}));const x=O.filter(d=>d&&typeof d=="object"&&typeof d.action=="string"&&String(d.action).trim()!=="");return x.length===0?Promise.resolve({history:[]}):new Promise(d=>{const f=_=>{if(!_||Array.isArray(_.history)&&_.history.length>0)return _;if(Array.isArray(_.data))return m(p({},_),{history:[_.data]});if(Array.isArray(_)){const k=[];let j;const v=g=>g?Array.isArray(g.history)&&g.history.length>0?Array.isArray(g.history[0])?g.history[0]:g.history:Array.isArray(g.data)?g.data:Array.isArray(g)?g:typeof g=="object"?[g]:[]:[];return _.forEach(g=>{const D=v(g);k.push(D),g&&typeof g=="object"&&Array.isArray(g.all_data_group)&&(j||(j=[]),j.push(...g.all_data_group))}),m(p({},j?{all_data_group:j}:{}),{history:k})}return _&&typeof _=="object"&&!Array.isArray(_.history)?{history:[[_]]}:_};x.length===1?l.api.platform(_=>{d(f(_.result))},x[0]):l.api.platform(_=>{d(f(_.result))},{condition:x})})})}get_mosaic_item(t,i,a,e){const s={action:i==="single"?"get_last_fv_by_objid":"get_mosaic_list",keys:[t.fv],object_id:t.object_id};return i!=="single"&&(s.page_index=1,s.page_size=a||1),e==="evn"&&(s.keys=[t.fv,t.status_fv]),e==="cmc"&&(s.keys=[t.item_fv]),["ctrSwitch"].includes(e)&&(s.keys=[t.status_fv]),["progressBar","progressCircle"].includes(e)&&t.maxType==="fv"&&(s.keys=[t.fv,t.max]),s}normalizeHistoryTimeRange(t){if(!t)return null;const i=t.start_time||t.startDate,a=t.end_time||t.endDate;if(!i||!a)return null;const e=l.dayjs(i).isValid()?l.dayjs(i).format("YYYY-MM-DD HH:mm:ss"):String(i),s=l.dayjs(a).isValid()?l.dayjs(a).format("YYYY-MM-DD HH:mm:ss"):String(a);return{start_time:e,end_time:s}}get_mosaic_by_time_range(t,i,a){const e=t,s=[e==null?void 0:e.fv,e==null?void 0:e.item_fv,e==null?void 0:e.fv_x,e==null?void 0:e.fv_y,e==null?void 0:e.fv_radius,e==null?void 0:e.fv_angle].filter(Boolean);return{action:"get_mosaic_list",start_time:a.start_time,end_time:a.end_time,keys:s.length?s:[e==null?void 0:e.fv].filter(Boolean),object_id:t.object_id,page_index:1,page_size:i||100}}get_mosaic_by_timespan(t,i,a){const e=l.dayjs().unix(),s=e-a.value*Number(i),o=t,r=[o==null?void 0:o.fv,o==null?void 0:o.item_fv,o==null?void 0:o.fv_x,o==null?void 0:o.fv_y,o==null?void 0:o.fv_radius,o==null?void 0:o.fv_angle].filter(Boolean);return{action:"get_mosaic_list",start_time:l.dayjs(s*1e3).format("YYYY-MM-DD HH:mm:ss"),end_time:l.dayjs(e*1e3).format("YYYY-MM-DD HH:mm:ss"),keys:r.length?r:[o==null?void 0:o.fv].filter(Boolean),object_id:t.object_id,page_index:1,page_size:i||100}}get_statistics_item(t,i,a){var e,s;return(e=t.periodUnit)!=null&&e.includes("near")?this.get_neardate_item(t,"statistics"):{action:"get_statistics_list",script_uid:(s=t.uid)!=null?s:t.fv,page_size:Number(a)||20,page_index:1,order_by:JSON.stringify(["end_time","desc"])}}get_calculate_item(t,i,a){var e,s;return(e=t.periodUnit)!=null&&e.includes("near")?this.get_neardate_item(t,"calculate"):{action:"get_calculate_list",script_uid:(s=t.uid)!=null?s:t.fv,page_size:Number(a)||20,page_index:1,order_by:JSON.stringify(["end_time","desc"])}}get_neardate_item(t,i){var a;return{action:i==="statistics"?"get_last_statistics":"get_last_calculate",script_uid:(a=t.uid)!=null?a:t.fv,object_id:t.object_id}}get_index_item(t,i,a,e){const s=t.is_alias?"alias":"uid";return{page_index:1,page_size:a,block_mapping:"index",action:"get_index_result_list",where_and:[[s,"=",t.fv],["object_id","=",t.object_id]]}}get_deviation_item(t,i,a,e){return m(p({},this.get_index_item(t,i,a,e)),{block_mapping:"deviation",action:"get_deviation_result_list"})}get_stability_item(t,i,a,e){return m(p({},this.get_index_item(t,i,a,e)),{block_mapping:"stability",action:"get_stability_result_list"})}get_balance_item(t,i,a,e){return m(p({},this.get_index_item(t,i,a,e)),{block_mapping:"balance",action:"get_balance_result_list"})}get_increment_item(t,i,a,e){return m(p({},this.get_index_item(t,i,a,e)),{block_mapping:"increment",action:"get_increment_result_list"})}get_risk_item(t,i,a,e){return m(p({},this.get_index_item(t,i,a,e)),{block_mapping:"risk",action:"get_risk_result_list"})}get_summary_item(){return{block_mapping:"schema",action:"get_statistical_quantity"}}getRangeLineHistoryData(t){var n,u;const{conf:i,uid:a}=t,e=((u=(n=i==null?void 0:i.options)==null?void 0:n.points)==null?void 0:u.value)||100,s=i.common.source||"mosaic",o=JSON.parse(sessionStorage.getItem("object_alias_uid_mapping")||"{}"),r=i.data[0]||{};let c="";return i.useAlias?c=r.object_alias&&o[r.object_alias]||a:c=r.object_id||a,s==="deviation"?this.getDeviationHistory(i,c,e):this.getEigenHistory(i,c,e)}getDeviationHistory(t,i,a){const e=t.data[0]||{},s=e.is_alias?"alias":"uid",o={block_mapping:"deviation",action:"get_deviation_result_list",page_index:1,page_size:a,where_and:[["object_id","=",i]]};return e.fv&&o.where_and.unshift([s,"=",e.fv]),new Promise(r=>{l.api.platform(c=>{r(this.formatDeviation(c.result))},o)})}getEigenHistory(t,i,a){return H(this,null,function*(){const e={times:[],data:[],range:{}};(yield new Promise(r=>{const c={action:"get_mosaic_list",keys:[t.data[0].fv],object_id:i,page_index:1,page_size:a};l.api.platform(n=>{const u=n.result.data?n.result.data.sort((b,h)=>l.dayjs(b.time).valueOf()-l.dayjs(h.time).valueOf()):[];r(u)},c)})).forEach(r=>{var c;e.times.push(l.dayjs(r.time).format("YYYY-MM-DD HH:mm:ss")),e.data.push((c=r[t.data[0].fv])!=null?c:"-")});const o={action:"get_adaps_report_list",block_mapping:"eigen",where_and:[["start",">=",e.times[0]],["end","<=",e.times[e.times.length-1]],["project_uid","=",t.data[0].project_id],["object_id","=",i]]};return new Promise(r=>{l.api.platform(c=>{e.range=this.formatEigen(c.result.data,e.times),r(e)},o)})})}formatDeviation(t){const i={times:[],data:[],range:{}},a={};t.data.sort((s,o)=>l.dayjs(s.created).valueOf()-l.dayjs(o.created).valueOf()).forEach((s,o)=>{i.times.push(s.created),i.data.push(s.data.Dev),s.data.Base&&(a[s.data.Base]?a[s.data.Base].push([o,o]):a[s.data.Base]=[[o,o]])});for(const s in a){const o=[],r=a[s];if(r.length===0)continue;let c=[r[0]];for(let n=1;n<r.length;n++)r[n][0]-r[n-1][0]===1?c.push(r[n]):(o.push(c),c=[r[n]]);o.push(c),a[s]=o.map(n=>[n[0][0],n[n.length-1][0]])}return i.range=a,i}formatEigen(t,i){const a={};return t.sort((s,o)=>l.dayjs(s.created).valueOf()-l.dayjs(o.created).valueOf()).forEach(s=>{const o=JSON.parse(s.detail),r=[l.dayjs(s.start).format("YYYY-MM-DD HH:mm:ss"),l.dayjs(s.end).format("YYYY-MM-DD HH:mm:ss")];o.Main.forEach(c=>{var h;const n=(h=c.report)!=null&&h.start?[l.dayjs(c.report[0].start.datetime).format("YYYY-MM-DD HH:mm:ss"),l.dayjs(c.report[0].end.datetime).format("YYYY-MM-DD HH:mm:ss")]:r,u=i.indexOf(n[0]),b=i.indexOf(n[1]);u===-1||b===-1||(a[c.key_type]?a[c.key_type].push([u,b]):a[c.key_type]=[[u,b]])})}),a}getSwitchHistoryData(t){const{conf:i,uid:a}=t,{common:e}=i,s=l.getObjectId(e,!!e.useAlias,a),o={action:"get_last_fv_by_objid",keys:[e.statusFv],object_id:s};return new Promise(r=>{l.api.platform(c=>{r(c.result)},o)})}getRetainerHistoryData(t,i=1){return H(this,null,function*(){const{conf:a,uid:e}=t,{data:s,common:o}=a,r=yield l.api.getTokenForBackend(),c={block_mapping:"mixtask",action:"user_action",user_action:"get_retainer_result",args:{items:i,token:r,condition:[]}};return s.forEach(n=>{let u="";o.multiObject?u=l.getObjectId(n,!!o.useAlias,e):u=l.getObjectId(o,!!o.useAlias,e),c.args.condition.push({object_id:u||n.object_id,retainer:n.retainer||"",retainer_code:n.retainer_code||"",fv:n.fv||""})}),new Promise(n=>{l.api.platform(u=>{if(u.code===200&&u.result){const b=Array.isArray(u.result)?u.result[0]:u.result;n(b)}else n({history:[]})},c)})})}getGridviewHistoryData(t){const{conf:i,uid:a}=t,{common:e,data:s}=i,o=e.source||"mosaic";let r="result";o==="mosaic"&&(r="single");let c="";if(e.multiObject||(c=l.getObjectId(e,!!e.useAlias,a)),o==="summary")return new Promise(u=>{l.api.platform(b=>{u(b.result)},{block_mapping:"schema",action:"get_statistical_quantity"})});const n=[];return s.forEach(u=>{u.forEach(b=>{if(b.isValue){e.multiObject&&(c=l.getObjectId({object_id:b.object,object_alias:b.object},!!e.useAlias,a)),b.object_id=c;const h=`get_${o}_item`;typeof this[h]=="function"&&n.push(this[h](b,r,1,""))}})}),new Promise(u=>{n.length===1?l.api.platform(b=>{u(b.result)},n[0]):n.length>1?l.api.platform(b=>{u(b.result)},{condition:n}):u({data:[]})})}}exports.default=L;
|