mixdashboards 1.1.13 → 1.1.14
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-BjGMC3qC.js → AgGridTable-Cr7AVD7d.js} +1 -1
- package/dist/{AgGridTable-Bi7O66-r.cjs → AgGridTable-DU6yvOpb.cjs} +1 -1
- package/dist/{BaseComponent-9njJjeix.cjs → BaseComponent-CPat9pFl.cjs} +1 -1
- package/dist/{BaseComponent-B38Blgw3.js → BaseComponent-DMJmgFIo.js} +3 -3
- package/dist/{EChartComponentBase-BwbycwwW.cjs → EChartComponentBase-Cj_dO_ES.cjs} +1 -1
- package/dist/{EChartComponentBase-DJScukmS.js → EChartComponentBase-DrDdGF1C.js} +2 -2
- package/dist/{EmergencyPlanPanel-BxzP1xYW.cjs → EmergencyPlanPanel-B_zAk2e3.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-D3GF-xQQ.js → EmergencyPlanPanel-TBKoqIa0.js} +1 -1
- package/dist/{HistoryPlanDialog-DQXCUsy4.cjs → HistoryPlanDialog-92_V1nQB.cjs} +1 -1
- package/dist/{HistoryPlanDialog-DpaiRZgi.js → HistoryPlanDialog-HKCYJnCh.js} +1 -1
- package/dist/{MixiotAppDetailPage-BGfF3qrm.js → MixiotAppDetailPage-BQZhhM3Q.js} +1 -1
- package/dist/{MixiotAppDetailPage-CL1Sd9HJ.cjs → MixiotAppDetailPage-wddBsvgj.cjs} +1 -1
- package/dist/{MonitoringMap-Wzsw3hVH.cjs → MonitoringMap-Dh9TWEoX.cjs} +1 -1
- package/dist/{MonitoringMap-DQkO116Z.js → MonitoringMap-wOD2eWiY.js} +2 -2
- package/dist/{UniverSheet-Bne7JZyr.cjs → UniverSheet-B76C9C3z.cjs} +1 -1
- package/dist/{UniverSheet-Cd2a9LPx.js → UniverSheet-BxGZmiAP.js} +2 -2
- package/dist/{accelerationChart-BJhVC_l5.cjs → accelerationChart-BHspqWCw.cjs} +1 -1
- package/dist/{accelerationChart-BUsbSkwA.js → accelerationChart-T-LB2UqH.js} +2 -2
- package/dist/{actionItem-DxB7IvtW.cjs → actionItem-CD6E8s6n.cjs} +1 -1
- package/dist/{actionItem-B3B4MFcW.js → actionItem-Ch9jL-8V.js} +2 -2
- package/dist/{alarmLevelChart-DC_hx4Pn.cjs → alarmLevelChart-Chh-SGw4.cjs} +1 -1
- package/dist/{alarmLevelChart-DC-q2AgI.js → alarmLevelChart-DuQtzr0i.js} +2 -2
- package/dist/{alertTable-CHfA0TR-.cjs → alertTable-CnZCtID1.cjs} +1 -1
- package/dist/{alertTable-CGRDnNPw.js → alertTable-DoE1UTWF.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-DGoLPE4i.cjs → aliasObjectSelectorDemo-BKLLJY3E.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-DuGQCEcG.js → aliasObjectSelectorDemo-CAKTzbqy.js} +1 -1
- package/dist/{annualRainfallChart-Dr8KKYOG.js → annualRainfallChart-C06ujiLk.js} +2 -2
- package/dist/{annualRainfallChart-CLxVqN5Z.cjs → annualRainfallChart-CjaFNTTM.cjs} +1 -1
- package/dist/{aqi-BmYGSf2e.cjs → aqi-B6CEx8sE.cjs} +1 -1
- package/dist/{aqi-rBhSWA_m.js → aqi-CZ2gjTXo.js} +2 -2
- package/dist/{aqiIndass-Cpqau5M0.cjs → aqiIndass-CUuczycJ.cjs} +1 -1
- package/dist/{aqiIndass-DqJBc799.js → aqiIndass-CV6JefRZ.js} +2 -2
- package/dist/{areaDeformCurve-B924KVWX.cjs → areaDeformCurve-C60FahWu.cjs} +1 -1
- package/dist/{areaDeformCurve-DpHWg6pf.js → areaDeformCurve-CyG8zh6J.js} +2 -2
- package/dist/{arrayCard-C7anoYI-.js → arrayCard-BSI7KqPn.js} +2 -2
- package/dist/{arrayCard-Bzjg3HKN.cjs → arrayCard-CLu8UfQy.cjs} +1 -1
- package/dist/{audio-DTiS2piX.js → audio-Q13sznt_.js} +2 -2
- package/dist/{audio-aADcgdZP.cjs → audio-zKQ44FKN.cjs} +1 -1
- package/dist/{bar-D32xICYZ.js → bar-BISEWCfM.js} +2 -2
- package/dist/{bar-DqY55XnC.cjs → bar-CNb34Izd.cjs} +1 -1
- package/dist/{basicShapeToolbox-D8q86CzB.js → basicShapeToolbox--WQ0UXKa.js} +2 -2
- package/dist/{basicShapeToolbox-BvJjH4fV.cjs → basicShapeToolbox-BkPIElK7.cjs} +1 -1
- package/dist/{bmp-DU3vm7yj.js → bmp-Ohs2XiTO.js} +2 -2
- package/dist/{bmp-DIFGLoNl.cjs → bmp-fBe7llKN.cjs} +1 -1
- package/dist/{box-C8pOZXek.cjs → box-BZGYB00G.cjs} +1 -1
- package/dist/{box-DTQKGR9g.js → box-UAgHgnGs.js} +2 -2
- package/dist/{chartConfigPanel-Bz82sVyH.js → chartConfigPanel-Bw8uepae.js} +1 -1
- package/dist/{chartConfigPanel-D4vk7zWs.cjs → chartConfigPanel-WLvSpg3a.cjs} +1 -1
- package/dist/{circleBar-B48h_-uK.cjs → circleBar-B1JVQluC.cjs} +1 -1
- package/dist/{circleBar-ClO05bgq.js → circleBar-BUtmqZym.js} +2 -2
- package/dist/{clock-DB94wQje.cjs → clock-BNJFjC85.cjs} +1 -1
- package/dist/{clock-D8ZXhy53.js → clock-DhNe_L29.js} +2 -2
- package/dist/{clt-cxeCTOaA.cjs → clt-DS09EYqd.cjs} +1 -1
- package/dist/{clt-BX0SNGZr.js → clt-DgElAJo_.js} +2 -2
- package/dist/{cmc-BvnYrQrR.cjs → cmc-YYd7u-QY.cjs} +1 -1
- package/dist/{cmc-Co13D559.js → cmc-uYTH_bql.js} +2 -2
- package/dist/{cmp-B4cYCR4p.js → cmp-DwNUtgiD.js} +2 -2
- package/dist/{cmp-Dd56EQ09.cjs → cmp-_LIlSPJ1.cjs} +1 -1
- package/dist/{conclusionCard-Bla25-qd.js → conclusionCard-2e7U38q9.js} +2 -2
- package/dist/{conclusionCard-Cd3DoD1l.cjs → conclusionCard-BJCT66AX.cjs} +1 -1
- package/dist/{controlList-CyT_LYgr.cjs → controlList-Cm7vrNpm.cjs} +1 -1
- package/dist/{controlList-Dx4wSpA7.js → controlList-J_DItB3R.js} +3 -3
- package/dist/{controlRecordList-DsxYHRrs.cjs → controlRecordList-DwH-MkK_.cjs} +1 -1
- package/dist/{controlRecordList-BAI_15ZN.js → controlRecordList-GGUGUMMv.js} +3 -3
- package/dist/{controlRecordListAPP-BQlABx3f.js → controlRecordListAPP-C4LPtUXx.js} +2 -2
- package/dist/{controlRecordListAPP-Zfiwcrmq.cjs → controlRecordListAPP-CWJlq6Q4.cjs} +1 -1
- package/dist/{crd-IsqkYOAy.js → crd-DqDMG-hx.js} +56 -57
- package/dist/crd-W0OZyu6Q.cjs +1 -0
- package/dist/{ctrBtn-C3OqkyNS.cjs → ctrBtn-CWT3PVMG.cjs} +1 -1
- package/dist/{ctrBtn-LwuY-nVR.js → ctrBtn-DSqCP9tA.js} +3 -3
- package/dist/{ctrSet-B0nYCdwh.cjs → ctrSet-BKppFnu1.cjs} +1 -1
- package/dist/{ctrSet-Qb5XEdD4.js → ctrSet-D-bAunly.js} +3 -3
- package/dist/{ctrSwitch-Bps4Ak15.cjs → ctrSwitch-BFJ-KrvY.cjs} +1 -1
- package/dist/{ctrSwitch-B3jo3Gx0.js → ctrSwitch-CvuXs2UU.js} +3 -3
- package/dist/{dataManagement-CVHalRKp.js → dataManagement-BorUl90l.js} +2 -2
- package/dist/{dataManagement-BFxVtU33.cjs → dataManagement-C13-RFUx.cjs} +1 -1
- package/dist/{dataReport-Bk79cBkV.cjs → dataReport-Bur1aIJL.cjs} +1 -1
- package/dist/{dataReport-B2AiDMdM.js → dataReport-F8EPUK0m.js} +2 -2
- package/dist/{dataTable-Dh7s14jM.cjs → dataTable-B1uLxNVm.cjs} +1 -1
- package/dist/{dataTable-D9sSJRQn.js → dataTable-Digc4UYG.js} +1 -1
- package/dist/{datetime-CEKzNAlD.js → datetime-B2HzR4oW.js} +2 -2
- package/dist/{datetime-C25d1bAc.cjs → datetime-JquezhC4.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-DODVh-Qw.js → deepClusterSlipSurface-C5KWD61Q.js} +2 -2
- package/dist/{deepClusterSlipSurface-BLZL2xX6.cjs → deepClusterSlipSurface-LiAhIFTL.cjs} +1 -1
- package/dist/{deepDataMatrix-D_NPV2sQ.cjs → deepDataMatrix-Cf_RcM6k.cjs} +1 -1
- package/dist/{deepDataMatrix-9iClruS0.js → deepDataMatrix-CrVKo32h.js} +2 -2
- package/dist/{deepDisplacement3D-C6puNK1m.cjs → deepDisplacement3D-CFGsM61z.cjs} +1 -1
- package/dist/{deepDisplacement3D-C5YMqHiD.js → deepDisplacement3D-CqpBMdR9.js} +2 -2
- package/dist/{deepDisplacementChart-DEn2yqGO.js → deepDisplacementChart-BltwfhE1.js} +3 -3
- package/dist/{deepDisplacementChart-DhQO428W.cjs → deepDisplacementChart-Df3FUPCh.cjs} +1 -1
- package/dist/{deepDisplacementChart-D-dqPlzq.cjs → deepDisplacementChart-DkjQ4fkv.cjs} +1 -1
- package/dist/{deepDisplacementChart-9sQF6tFO.js → deepDisplacementChart-qEVHkptV.js} +2 -2
- package/dist/{deepDisplacementView-tzX-vzxO.cjs → deepDisplacementView-CiqJXRCI.cjs} +1 -1
- package/dist/{deepDisplacementView-Cux6lFtG.js → deepDisplacementView-a9DN060j.js} +1 -1
- package/dist/{deepNodeTemperatureChart-Cyfnw2BR.cjs → deepNodeTemperatureChart-BtcEmexL.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart--GH8-4O7.js → deepNodeTemperatureChart-t6-mnDzl.js} +2 -2
- package/dist/{deepTangentAngleChart-Dae_3j30.js → deepTangentAngleChart-ZzdLeEzC.js} +2 -2
- package/dist/{deepTangentAngleChart-DPMDFXiA.cjs → deepTangentAngleChart-gewuzLOU.cjs} +1 -1
- package/dist/{deepTemperatureField-B3Eu4zqv.cjs → deepTemperatureField-BxIxt-TJ.cjs} +1 -1
- package/dist/{deepTemperatureField-Cr2e_Ytp.js → deepTemperatureField-yLmp7ory.js} +3 -3
- package/dist/{deepTrendChart-8fniZ16K.js → deepTrendChart-BiPoTZsv.js} +2 -2
- package/dist/{deepTrendChart-BPYqojQ2.cjs → deepTrendChart-Crqx6O9C.cjs} +1 -1
- package/dist/{deviceOnlineStatus-mJ0KVMo4.cjs → deviceOnlineStatus-DiK6L6te.cjs} +1 -1
- package/dist/{deviceOnlineStatus-DP7-u5lC.js → deviceOnlineStatus-vMr4Ttoe.js} +2 -2
- package/dist/{deviceStatus-B0AxN-cY.cjs → deviceStatus-BWr8xMGE.cjs} +1 -1
- package/dist/{deviceStatus-Ih0jQNYO.js → deviceStatus-DQ1mH-tr.js} +2 -2
- package/dist/{displacementDataTable-BbZjdMtX.js → displacementDataTable-C1YNWIwQ.js} +2 -2
- package/dist/{displacementDataTable-Dkka_jGJ.cjs → displacementDataTable-CX9Hk2mo.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-DDwm-jr2.cjs → displacementTrajectoryChart-Bxiam7z3.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-BZDSkYoZ.js → displacementTrajectoryChart-DSPVm9mn.js} +2 -2
- package/dist/{displacementTrendChart-CUeVa58Q.cjs → displacementTrendChart-4z9j3til.cjs} +1 -1
- package/dist/{displacementTrendChart-DZZaVi86.js → displacementTrendChart-DM18rfxN.js} +2 -2
- package/dist/{dxf-BOfmTSO8.cjs → dxf-BIvGNyQr.cjs} +1 -1
- package/dist/{dxf-DYC74yWV.js → dxf-CZdTRr3-.js} +2 -2
- package/dist/{dzc-DUFiz7a_.cjs → dzc-BrR_-vKI.cjs} +1 -1
- package/dist/{dzc-BU7yYW4I.js → dzc-b6JbaxSz.js} +2 -2
- package/dist/{emergencyPlan-DDb6j7YU.cjs → emergencyPlan-CIHoGe6V.cjs} +1 -1
- package/dist/{emergencyPlan-DabL46QK.js → emergencyPlan-Gi2_uHgX.js} +3 -3
- package/dist/{evn-DhdColcF.js → evn-B0lZlMO4.js} +2 -2
- package/dist/{evn-DrreVqnm.cjs → evn-_5PRwXFL.cjs} +1 -1
- package/dist/{evolutionChart-aedDj0mQ.js → evolutionChart-Cg14O4jy.js} +3 -3
- package/dist/{evolutionChart-QuGAgjXo.cjs → evolutionChart-xsho6XVP.cjs} +1 -1
- package/dist/{fileViewer-oBpWIjGb.js → fileViewer-Cyrv561L.js} +2 -2
- package/dist/{fileViewer-CvNnUxUK.cjs → fileViewer-z1v9eLyT.cjs} +1 -1
- package/dist/{filterBar-CwHODFoy.cjs → filterBar-BUNhPZd2.cjs} +1 -1
- package/dist/{filterBar-DYpEssxC.js → filterBar-DB4bnLZ0.js} +2 -2
- package/dist/{fireCombustionCurve-lu2qH6_b.cjs → fireCombustionCurve-Dej-lndv.cjs} +1 -1
- package/dist/{fireCombustionCurve-wbKsWk4E.js → fireCombustionCurve-S5aOdnbU.js} +3 -3
- package/dist/{fireFilterBar-9_fqGo2q.js → fireFilterBar-CtBV9WL_.js} +2 -2
- package/dist/{fireFilterBar-B8su74tt.cjs → fireFilterBar-cB6h_XQy.cjs} +1 -1
- package/dist/{fireHistoryTable-pOJz1_Rp.cjs → fireHistoryTable-DOCuy-HR.cjs} +1 -1
- package/dist/{fireHistoryTable-C1C95uYN.js → fireHistoryTable-DZZOy0kR.js} +2 -2
- package/dist/{gag-BGUeQKJJ.js → gag-B9dx9otC.js} +2 -2
- package/dist/{gag-LSkHPD7f.cjs → gag-DkKmJPZ1.cjs} +1 -1
- package/dist/{gasStationList-DJTrXjkv.cjs → gasStationList-DisLh5Uj.cjs} +1 -1
- package/dist/{gasStationList-4TtBLsqC.js → gasStationList-X2Asa789.js} +2 -2
- package/dist/{geo3dViewer-CK89hYK7.cjs → geo3dViewer-CBt6ecb8.cjs} +1 -1
- package/dist/{geo3dViewer-DIjv75YP.js → geo3dViewer-CiKzVKzd.js} +3 -3
- package/dist/{glbModel-IOIVpCjq.js → glbModel-BnnNfJu8.js} +2 -2
- package/dist/{glbModel-BDgY9S4f.cjs → glbModel-vxOxcBfY.cjs} +1 -1
- package/dist/{globalObjectSelector-B2dkzNyk.js → globalObjectSelector-BuY_B24m.js} +1 -1
- package/dist/{globalObjectSelector-N7s0yyOp.cjs → globalObjectSelector-CGjUMfxb.cjs} +1 -1
- package/dist/{gnssFilterBar-BF_tbN4_.js → gnssFilterBar-BAjtjr4i.js} +2 -2
- package/dist/{gnssFilterBar-8eSkGWMH.cjs → gnssFilterBar-BFA38iLP.cjs} +1 -1
- package/dist/{gnssHistoryTable-DUjRjXoS.js → gnssHistoryTable-Djvc6Jdb.js} +2 -2
- package/dist/{gnssHistoryTable-X_cgOa6r.cjs → gnssHistoryTable-WkPj3f6N.cjs} +1 -1
- package/dist/{gnssMapView-DnF2bYAD.cjs → gnssMapView-BH3RBHEQ.cjs} +2 -2
- package/dist/{gnssMapView-BnwPDey9.js → gnssMapView-DeJLZEJb.js} +4 -4
- package/dist/{gnssSectionProfile-D0sbRu3A.js → gnssSectionProfile-CU_czVAF.js} +2 -2
- package/dist/{gnssSectionProfile-DoEXHKTy.cjs → gnssSectionProfile-xaVKtgrn.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-glTixABx.js → gnssTimeSeriesChart-BvSyllnp.js} +2 -2
- package/dist/{gnssTimeSeriesChart-Csm6PwRv.cjs → gnssTimeSeriesChart-hpXlRHme.cjs} +1 -1
- package/dist/{gnssXYTrajectory-4c8JDd_b.cjs → gnssXYTrajectory-CIC6gn9B.cjs} +1 -1
- package/dist/{gnssXYTrajectory-BMCO0sb0.js → gnssXYTrajectory-Dmdq-PnT.js} +2 -2
- package/dist/{grd-BTGTCp0z.js → grd-B3_37W5r.js} +2 -2
- package/dist/{grd-D1enzYOI.cjs → grd-BNh82cJv.cjs} +1 -1
- package/dist/{grdIndass-Dn62HL6y.js → grdIndass-C2_cKlqo.js} +2 -2
- package/dist/{grdIndass-B6fwa_k8.cjs → grdIndass-UL5YpOVN.cjs} +1 -1
- package/dist/{grg-B5128EcW.cjs → grg-RBfTeprb.cjs} +1 -1
- package/dist/{grg-DMOF8h8j.js → grg-l-LZiFIi.js} +2 -2
- package/dist/{gridview-Ddin99YO.cjs → gridview-DQ3UYvRc.cjs} +1 -1
- package/dist/{gridview-Dewc5Eax.js → gridview-DdVcRQDa.js} +2 -2
- package/dist/{groundwaterFilterBar-2uj_Hf_Q.cjs → groundwaterFilterBar-CNt_-xoQ.cjs} +1 -1
- package/dist/{groundwaterFilterBar-mukvYHDm.js → groundwaterFilterBar-DBMk3gox.js} +2 -2
- package/dist/{groundwaterProfileChart-BPTP8WBi.js → groundwaterProfileChart-CJeACUDa.js} +3 -3
- package/dist/{groundwaterProfileChart-DDVsfzyr.cjs → groundwaterProfileChart-DPgBwHGo.cjs} +2 -2
- package/dist/{groundwaterTimeCurve-Zzn-sEsW.cjs → groundwaterTimeCurve-BJ2-dRCa.cjs} +1 -1
- package/dist/{groundwaterTimeCurve-jtQFr0hU.js → groundwaterTimeCurve-DPQlZknH.js} +3 -3
- package/dist/{groupCard-B3fp05QD.js → groupCard-CaoCu7P5.js} +2 -2
- package/dist/{groupCard-DWjFdiH0.cjs → groupCard-yyzjr8U4.cjs} +1 -1
- package/dist/{headerBar-B6lX3WST.cjs → headerBar-B_XVnPEY.cjs} +1 -1
- package/dist/{headerBar-BkpSQMNy.js → headerBar-UZR69ix4.js} +2 -2
- package/dist/{history-DqPjJP_E.cjs → history-DHsGJFOf.cjs} +1 -1
- package/dist/{history-DgSlSTUD.js → history-DptcYt8k.js} +1 -1
- package/dist/{index-Bo49zvKb.cjs → index-D9ehIVda.cjs} +8 -8
- package/dist/{index-BbXEpgom.js → index-nru6zK5E.js} +1560 -1549
- package/dist/{insarDeformChart-8UyVWXTx.cjs → insarDeformChart-D5y2pi6R.cjs} +1 -1
- package/dist/{insarDeformChart-DNBHbVuk.js → insarDeformChart-DYrt3aNq.js} +2 -2
- package/dist/{insarImageViewer-B8PhDcuG.cjs → insarImageViewer-BGP-ktoS.cjs} +1 -1
- package/dist/{insarImageViewer-BeykgIJy.js → insarImageViewer-DuXOrFV0.js} +2 -2
- package/dist/{kds-CS473Sia.js → kds-DQW17H8R.js} +2 -2
- package/dist/{kds-BJwYrjV_.cjs → kds-Dp4hx0W6.cjs} +1 -1
- package/dist/{kpiCard-OMuCQe7O.cjs → kpiCard-0aUt2U5z.cjs} +1 -1
- package/dist/{kpiCard-CNgj9P9s.js → kpiCard-DyO-3YLf.js} +2 -2
- package/dist/{landslideMap-NaGM5jJE.cjs → landslideMap-2yF_d4_7.cjs} +1 -1
- package/dist/{landslideMap-DMNcfDYF.js → landslideMap-D5U5hSkY.js} +3 -3
- package/dist/{landslideWarning-V1wB3aWq.cjs → landslideWarning-C2BZY-at.cjs} +1 -1
- package/dist/{landslideWarning-DU-dDiiS.js → landslideWarning-bIAgVIIX.js} +5 -5
- package/dist/{layerTabs-Bgi7pfof.js → layerTabs-C26xKIu6.js} +2 -2
- package/dist/{layerTabs-VfYlv6Ks.cjs → layerTabs-iEkQSuRJ.cjs} +1 -1
- package/dist/{leaflet-src-WG2ob5HA.cjs → leaflet-src-DGU8KhZD.cjs} +1 -1
- package/dist/{leaflet-src-4AJHN6it.js → leaflet-src-xderqfOz.js} +1 -1
- package/dist/{lerc-BDiJ3I_S.js → lerc-CCL-0sUH.js} +2 -2
- package/dist/{lerc-CEea2nO1.cjs → lerc-nnW6QG9P.cjs} +1 -1
- package/dist/{lin-B_rN6QBj.cjs → lin-psrIdmWq.cjs} +1 -1
- package/dist/{lin-BO1pGlXr.js → lin-qPc-DZV1.js} +2 -2
- package/dist/{linIndass-B7XnW5XO.cjs → linIndass-C3h0p0ok.cjs} +1 -1
- package/dist/{linIndass-BGpoCQ4j.js → linIndass-DHJqj7k0.js} +2 -2
- package/dist/{lst-BBl9nn63.js → lst-CI_bABXS.js} +2 -2
- package/dist/{lst-BeB_Gi9l.cjs → lst-D3Qmo7He.cjs} +1 -1
- package/dist/{manualEntry-C3qifAlP.js → manualEntry-C3A9qrDX.js} +2 -2
- package/dist/{manualEntry-BQVUqtm7.cjs → manualEntry-D7SZvGOp.cjs} +1 -1
- package/dist/{mapBackground-CDS60ZJC.js → mapBackground-BugTUIga.js} +3 -3
- package/dist/{mapBackground-D3-V7S-d.cjs → mapBackground-CYvUGNV6.cjs} +1 -1
- package/dist/{mappingList-B0jG2LlO.js → mappingList-70-e0OmS.js} +3 -3
- package/dist/{mappingList-DnoAuivo.cjs → mappingList-BJ-loWWS.cjs} +1 -1
- package/dist/{markdownViewer-BlXaqjhL.js → markdownViewer-BxSVHMco.js} +2 -2
- package/dist/{markdownViewer-BMkbW1Cl.cjs → markdownViewer-D_j1zaJM.cjs} +1 -1
- package/dist/materialFileUrl-DkrGz5LQ.cjs +1 -0
- package/dist/{materialFileUrl-hKqW_JAq.js → materialFileUrl-SyvwFB5E.js} +5 -4
- package/dist/{mix-control-modal-aUWGjwZP.cjs → mix-control-modal-CS-lOybT.cjs} +1 -1
- package/dist/{mix-control-modal-BEXucxt5.js → mix-control-modal-DvWbmJn_.js} +1 -1
- package/dist/{mixGrid-B5pKpGT3.cjs → mixGrid-BmZ5Qqa9.cjs} +1 -1
- package/dist/{mixGrid-DQf7U1_8.js → mixGrid-XI6dlQNw.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-C6pxWuEr.js → mjpegCamera-BXrFeGm3.js} +2 -2
- package/dist/{mjpegCamera-CJgiIk0q.cjs → mjpegCamera-D2-Uc2EO.cjs} +1 -1
- package/dist/{monitorAlert-BPd1b_Cx.cjs → monitorAlert-CnP_gjvI.cjs} +1 -1
- package/dist/{monitorAlert-ZNF5siqY.js → monitorAlert-TjkxV9nx.js} +2 -2
- package/dist/{monitorData-slk6ogNe.cjs → monitorData-BpyzcuzE.cjs} +1 -1
- package/dist/{monitorData-DIxZYNVr.js → monitorData-CkD6tz8x.js} +2 -2
- package/dist/{monitorSpeedChart-BRwbLD8B.cjs → monitorSpeedChart-BE9wJ8LA.cjs} +1 -1
- package/dist/{monitorSpeedChart-DCO39Aka.js → monitorSpeedChart-LMAvdp1a.js} +1 -1
- package/dist/{mxa-DFq19ply.js → mxa-BGm4E2oj.js} +2 -2
- package/dist/{mxa-Bp4RH0w3.cjs → mxa-CzskPPvU.cjs} +1 -1
- package/dist/{myValue-g8shJQA9.cjs → myValue-BeTEf6SX.cjs} +1 -1
- package/dist/{myValue-BvItzUMv.js → myValue-BnlcjDSq.js} +2 -2
- package/dist/{myValueList-A_UGyNxN.js → myValueList-B5swLYff.js} +2 -2
- package/dist/{myValueList-DnZBoJXp.cjs → myValueList-zVkTLQrP.cjs} +1 -1
- package/dist/{objectList-DgVJlA1o.js → objectList-BHKtuK_E.js} +225 -213
- package/dist/objectList-CVz7jUhV.cjs +1 -0
- package/dist/{objectListAPP-CdewSo8l.js → objectListAPP-0Iuanvz-.js} +3 -3
- package/dist/{objectListAPP-DxRImk8W.cjs → objectListAPP-BAXwRH73.cjs} +1 -1
- package/dist/{percentBar-Cq5ACj9c.cjs → percentBar-Dy_RZ-16.cjs} +1 -1
- package/dist/{percentBar-BvmYW_u6.js → percentBar-UaUBa8pT.js} +2 -2
- package/dist/{photo-t11P9WKh.js → photo-BN8MzHVR.js} +3 -3
- package/dist/{photo-B-kxNdb5.cjs → photo-C7eoToJB.cjs} +1 -1
- package/dist/{pie-yTahcSl_.js → pie-C0gZTNM3.js} +2 -2
- package/dist/{pie-0s6FwVBt.cjs → pie-CPyctjgS.cjs} +1 -1
- package/dist/{placeholder-DBmyvwFn.cjs → placeholder-BHJQm9H3.cjs} +1 -1
- package/dist/{placeholder-D_CaQ-hg.js → placeholder-tSU5fQxu.js} +1 -1
- package/dist/{pressBtn-CP4kJr-P.js → pressBtn-D4vNvwB7.js} +3 -3
- package/dist/{pressBtn-JFezb7Yx.cjs → pressBtn-DmprQWtp.cjs} +1 -1
- package/dist/{processTable-BXswsnmt.js → processTable-BfbVj9Rv.js} +2 -2
- package/dist/{processTable-DRdI9ExW.cjs → processTable-CItb59hD.cjs} +1 -1
- package/dist/{progressBar-Sn6tAxTY.cjs → progressBar-BNArO298.cjs} +1 -1
- package/dist/{progressBar-D1Xh5APg.js → progressBar-CeWq1Q8-.js} +2 -2
- package/dist/{progressCircle-BMpJVwIE.js → progressCircle-BshtPibr.js} +2 -2
- package/dist/{progressCircle-DLk9v_Os.cjs → progressCircle-CFPbq8WS.cjs} +1 -1
- package/dist/{qrcode-BDtn3Ql7.cjs → qrcode-DVtk1b5F.cjs} +1 -1
- package/dist/{qrcode-BqlqV7Jf.js → qrcode-UsFuP8-Y.js} +2 -2
- package/dist/{raceBar-BpvWNCV7.cjs → raceBar-BYLfgaFz.cjs} +1 -1
- package/dist/{raceBar-zSL-J18j.js → raceBar-COvS_R8D.js} +2 -2
- package/dist/{rad-DSfVfaMa.cjs → rad-CkB-n_ms.cjs} +1 -1
- package/dist/{rad-CZhY-L-z.js → rad-D33c2RGY.js} +2 -2
- package/dist/{radarMapViewer-B4tTLLyl.js → radarMapViewer-BODSZl1u.js} +2 -2
- package/dist/{radarMapViewer-GmzS18dJ.cjs → radarMapViewer-DlFWHDQy.cjs} +1 -1
- package/dist/{rainfallFilterBar-ijVmoglb.js → rainfallFilterBar-BFMnGW2A.js} +2 -2
- package/dist/{rainfallFilterBar-DHaVjXt5.cjs → rainfallFilterBar-DquisAn6.cjs} +1 -1
- package/dist/{rainfallTimeCurve-B3_bl5L6.js → rainfallTimeCurve-C7AGPuwX.js} +3 -3
- package/dist/{rainfallTimeCurve-Crz3Adzh.cjs → rainfallTimeCurve-DXFH_dGt.cjs} +1 -1
- package/dist/{rangeLin-BOEsEaV1.js → rangeLin-Cda_LTSF.js} +2 -2
- package/dist/{rangeLin-DpEbvxsg.cjs → rangeLin-s-_gmKS0.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-C2u4a2JL.js → realtimeEvolutionMap-BZGG9sn0.js} +2 -2
- package/dist/{realtimeEvolutionMap-BwQJkus6.cjs → realtimeEvolutionMap-DZAGkUNu.cjs} +1 -1
- package/dist/{regionBar-BQr-kq-M.js → regionBar-BJL96Emk.js} +2 -2
- package/dist/{regionBar-P1fqv7Vb.cjs → regionBar-LMJvgf0X.cjs} +1 -1
- package/dist/{request-Bn2gQLgM.js → request-DegJhVlL.js} +1 -1
- package/dist/{request-D9N74QdZ.cjs → request-DkP7M6Af.cjs} +1 -1
- package/dist/{retainer1-BCh8WSOq.cjs → retainer1-B0ZegRdn.cjs} +1 -1
- package/dist/{retainer1-Fnw0-Jvy.js → retainer1-CkOgZNh9.js} +3 -3
- package/dist/{retainer2-_3NOOefF.cjs → retainer2-D28sge-m.cjs} +1 -1
- package/dist/{retainer2-nPyFv6Hs.js → retainer2-npgiiskx.js} +3 -3
- package/dist/{retainerRecordList-BaOTTQQN.cjs → retainerRecordList-B8nyu28l.cjs} +1 -1
- package/dist/{retainerRecordList-C_UsUKsQ.js → retainerRecordList-hv5QyWME.js} +3 -3
- package/dist/{retainerRecordListAPP-BgKyfAMh.js → retainerRecordListAPP-DkXvtq9K.js} +3 -3
- package/dist/{retainerRecordListAPP-CE3l6WrB.cjs → retainerRecordListAPP-WALqHGbm.cjs} +1 -1
- package/dist/{ringTopN-Dz0EoM-A.js → ringTopN-Becl3FRO.js} +2 -2
- package/dist/{ringTopN-DEv30Ms2.cjs → ringTopN-BknMVZLZ.cjs} +1 -1
- package/dist/{riskRegionTable-Dot8zD_6.js → riskRegionTable-Cd_0Rd-M.js} +2 -2
- package/dist/{riskRegionTable-BODT2UTF.cjs → riskRegionTable-CyJIOy57.cjs} +1 -1
- package/dist/{sankey-CbEUEE5B.js → sankey-DcdzfDDI.js} +2 -2
- package/dist/{sankey-CYTyQB-L.cjs → sankey-wr0x7tfw.cjs} +1 -1
- package/dist/scd-B7RWxgVJ.cjs +1 -0
- package/dist/{scd-Btsiastw.js → scd-vg1A8R5X.js} +344 -348
- package/dist/{sideMenu-dnpq3qTF.cjs → sideMenu-BQmUk_pp.cjs} +1 -1
- package/dist/{sideMenu-BxJRAAdM.js → sideMenu-r-paLSMO.js} +2 -2
- package/dist/{slopeStability-DX7WP5ZW.cjs → slopeStability-C9dfB2fF.cjs} +1 -1
- package/dist/{slopeStability-DrooNf1g.js → slopeStability-CCGImuom.js} +2 -2
- package/dist/{speedCurve-BT8wnfZI.cjs → speedCurve-BVeqdClI.cjs} +1 -1
- package/dist/{speedCurve-CNUJ5ScK.js → speedCurve-Dwf-w3GL.js} +2 -2
- package/dist/{stackedBar-X8Y4lVgT.cjs → stackedBar-C0M7bOpV.cjs} +1 -1
- package/dist/{stackedBar-nIfO6Aa3.js → stackedBar-lXH6oJX4.js} +2 -2
- package/dist/{stationList-D7lGCblu.js → stationList-34Qu34hq.js} +2 -2
- package/dist/{stationList-DVzvGGHI.cjs → stationList-DB-Hn4KT.cjs} +1 -1
- package/dist/{stressFilterBar-D5xktTRI.cjs → stressFilterBar-BfmLl6RK.cjs} +1 -1
- package/dist/{stressFilterBar-DqeqFHm7.js → stressFilterBar-e1E4tOup.js} +2 -2
- package/dist/{stressTimeCurve-DfjNQ0rU.js → stressTimeCurve-BUo51IkU.js} +3 -3
- package/dist/{stressTimeCurve-Bhhb-eqB.cjs → stressTimeCurve-D_lNCKx9.cjs} +1 -1
- package/dist/{swiper-DuNuvT_N.js → swiper-43PBhQqD.js} +2 -2
- package/dist/{swiper-XCpwFkWS.cjs → swiper-CrFwcs3m.cjs} +1 -1
- package/dist/{tablemanCreate-Cp5DaYUd.cjs → tablemanCreate-1S_EcSDm.cjs} +1 -1
- package/dist/{tablemanCreate-Cp9nOGg2.js → tablemanCreate-CpbZDLF6.js} +3 -3
- package/dist/{tablemanDetail-3ZMWkdpz.cjs → tablemanDetail-DlTYZCx5.cjs} +1 -1
- package/dist/{tablemanDetail-DvZdgdHD.js → tablemanDetail-DyCQ7DyB.js} +4 -4
- package/dist/{tablemanList-OLxgUmAi.cjs → tablemanList-BbjUecnu.cjs} +1 -1
- package/dist/{tablemanList-DZdb1FUR.js → tablemanList-C6Gtfx1o.js} +4 -4
- package/dist/{tablemanTableList-BN6QjYEV.cjs → tablemanTableList-DR_KxUuu.cjs} +1 -1
- package/dist/{tablemanTableList-CqsnRIHS.js → tablemanTableList-Dj71HRDW.js} +3 -3
- package/dist/{tablemanUpdate-CHs5OgAG.js → tablemanUpdate-BtnIRkBn.js} +3 -3
- package/dist/{tablemanUpdate-E3d7A3WM.cjs → tablemanUpdate-CA7JRGBh.cjs} +1 -1
- package/dist/{terminalConfigList-BlgcWy40.cjs → terminalConfigList-BDaYrefd.cjs} +1 -1
- package/dist/{terminalConfigList-BEBNi1Nl.js → terminalConfigList-Brd1oIU1.js} +3 -3
- package/dist/{terminalList-CJpH2Z-r.js → terminalList-B5R-5IYH.js} +3 -3
- package/dist/{terminalList-Bl5BPmF9.cjs → terminalList-DyYTp_7j.cjs} +1 -1
- package/dist/{terminalListAPP-BpONJQOA.js → terminalListAPP-Cz9-XSy9.js} +3 -3
- package/dist/{terminalListAPP-Dgvz8I3j.cjs → terminalListAPP-DQyeShOh.cjs} +1 -1
- package/dist/{textbox-CJnSDwg7.js → textbox-AofzoSoM.js} +2 -2
- package/dist/{textbox-DR0bQEX7.cjs → textbox-DQg0UmXD.cjs} +1 -1
- package/dist/{timeQueryBar-FJDQv-gp.js → timeQueryBar-B62qxOHn.js} +1 -1
- package/dist/{timeQueryBar-Cmyan_30.cjs → timeQueryBar-BPKD7Elj.cjs} +1 -1
- package/dist/{timeSeries-_RLSUPmg.cjs → timeSeries-Bp_iMD22.cjs} +1 -1
- package/dist/{timeSeries-t4uZvXRF.js → timeSeries-Vl1W6ELZ.js} +3 -3
- package/dist/{timeSeriesCurve-BxWiI6w-.js → timeSeriesCurve-D8iElxyO.js} +3 -3
- package/dist/{timeSeriesCurve-BUuLFQ8A.cjs → timeSeriesCurve-DNYyUKj1.cjs} +1 -1
- package/dist/{toggleBtn-Cx44qVci.js → toggleBtn-CizAxinC.js} +2 -2
- package/dist/{toggleBtn-BcpJcxpU.cjs → toggleBtn-DOXzintk.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-dyo30nx9.js → trajectoryConfigPanel-BYMdJKNX.js} +1 -1
- package/dist/{trajectoryConfigPanel-BTUv5OVS.cjs → trajectoryConfigPanel-Bw_l7pKo.cjs} +1 -1
- package/dist/{trajectoryScatter-CK4_Z1iU.cjs → trajectoryScatter-DP56FRFE.cjs} +1 -1
- package/dist/{trajectoryScatter-BghFGqxH.js → trajectoryScatter-DPbgYMS8.js} +2 -2
- package/dist/{universalConfigPanel-yJFrQDBa.js → universalConfigPanel-B3BIF8L5.js} +1 -1
- package/dist/{universalConfigPanel-Cvlpgn-j.cjs → universalConfigPanel-DV9h6sMj.cjs} +1 -1
- package/dist/{universalTable-CvBC-L9Z.js → universalTable-CQ3B2I-G.js} +2 -2
- package/dist/{universalTable-CRJ7Rx0P.cjs → universalTable-Jxfp2RkG.cjs} +1 -1
- package/dist/{useTablemanApi-BAt370b-.js → useTablemanApi-Bh5_NFWe.js} +1 -1
- package/dist/{useTablemanApi-fqoMpRxe.cjs → useTablemanApi-Df1q1aWI.cjs} +1 -1
- package/dist/{useTablemanFormPanel-Cxo0WsI1.cjs → useTablemanFormPanel-Byr9usXu.cjs} +1 -1
- package/dist/{useTablemanFormPanel-BKbM39_H.js → useTablemanFormPanel-DRv-m4UQ.js} +2 -2
- package/dist/{useTablemanListActions-DRXW-WTa.cjs → useTablemanListActions-DWDKR-3Y.cjs} +1 -1
- package/dist/{useTablemanListActions-CYauYy6z.js → useTablemanListActions-DX-_BfWk.js} +3 -3
- package/dist/{video-C1N8Ikkh.js → video-C6XgnAxj.js} +2 -2
- package/dist/{video-BN19nKK_.cjs → video-D_eGQjE9.cjs} +1 -1
- package/dist/{videoMonitor-fkEuZ25x.js → videoMonitor-Cez3ENoV.js} +2 -2
- package/dist/{videoMonitor-PKypdwRl.cjs → videoMonitor-_F66e2Ol.cjs} +1 -1
- package/dist/{vlu-B8tqM9md.js → vlu-8CrS8YvY.js} +2 -2
- package/dist/{vlu-DrABl6SW.cjs → vlu-Cz0gMSym.cjs} +1 -1
- package/dist/{warningOverview-_rp_SbLs.js → warningOverview-DfDN7kF-.js} +3 -3
- package/dist/{warningOverview-DaTHPveq.cjs → warningOverview-YWMdtsgL.cjs} +1 -1
- package/dist/{weather-qvsptrt0.js → weather-BDi6MTCV.js} +2 -2
- package/dist/{weather-B_XCWwDa.cjs → weather-p1VDVqeB.cjs} +1 -1
- package/dist/{windLin-BDtJUYBu.js → windLin-BpS0UWbr.js} +2 -2
- package/dist/{windLin-P84T5W3o.cjs → windLin-CCfJT1_-.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/scd-DwdWl6Wz.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var L=Object.defineProperty,D=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var O=(p,i,l)=>i in p?L(p,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):p[i]=l,y=(p,i)=>{for(var l in i||(i={}))j.call(i,l)&&O(p,l,i[l]);if(V)for(var l of V(i))R.call(i,l)&&O(p,l,i[l]);return p},I=(p,i)=>D(p,H(i));var _=(p,i,l)=>new Promise((h,g)=>{var c=u=>{try{m(l.next(u))}catch(f){g(f)}},S=u=>{try{m(l.throw(u))}catch(f){g(f)}},m=u=>u.done?h(u.value):Promise.resolve(u.value).then(c,S);m((l=l.apply(p,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),$=require("./BaseComponent-CPat9pFl.cjs"),N=require("./index-D9ehIVda.cjs"),M=require("./titleStyle-NSnz6cUg.cjs"),B=require("./ele-crd-icon-BvNgAPKW.cjs"),W={class:"value-main"},U={key:0,class:"value-unit"},G="--",q={DEFAULT_ICON:B.DEFAULT_ICON,ACTIVE_ICON:B.ACTIVE_ICON,NAME_CN:"基础卡片",NAME_EN:"Card",ORDER:1,PLATFORM:["pc","screen","mobile"]},J={titleColor:"#111",titleSize:14,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,labelColor:"#111",textColor:"#111",bgColor:"#fff",valueSize:28,nameSize:14,radiusSize:8,isHideTitle:!0,showTopGradient:!1,topGradientStart:{value:"#f5a623",type:"color",label:"component.options.topGradientStart",dependent:"showTopGradient"},topGradientHeight:{value:2,type:"number",min:1,max:16,label:"component.options.topGradientHeight",dependent:"showTopGradient"},topGradientPosition:{value:"cardItem",type:"select",label:"component.options.topGradientPosition",dependent:"showTopGradient",options:[{label:"component.options.topGradientPosition_cardItem",value:"cardItem"},{label:"component.options.topGradientPosition_aboveTitle",value:"aboveTitle"}]},showBgIcon:!1,defaultBgIcon:{value:"",type:"text",label:"component.options.defaultBgIcon",dependent:"showBgIcon"},bgIconOpacity:{value:.06,type:"number",min:0,max:1,step:.01,label:"component.options.bgIconOpacity",dependent:"showBgIcon"},bgIconSize:{value:40,type:"number",min:8,max:120,label:"component.options.bgIconSize",dependent:"showBgIcon"},bgIconPosition:{value:"right",type:"select",label:"component.options.bgIconPosition",dependent:"showBgIcon",options:[{label:"component.options.bgIconPosition_right",value:"right"},{label:"component.options.bgIconPosition_left",value:"left"}]},paramsLayout:{value:"horizontal",type:"select",label:"component.options.paramsLayout",options:[{label:"component.options.paramsLayout_horizontal",value:"horizontal"},{label:"component.options.paramsLayout_vertical",value:"vertical"}]}},K=[{name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1,valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"}],Q=["name","fv","object_id","unit","default","isText",{key:"valueFontSize",type:"number",label:"component.options.crdValueFontSize",group:"component.options.crdGroupCellStyle",groupCollapsedByDefault:!0,min:0,max:120},{key:"nameFontSize",type:"number",label:"component.options.crdNameFontSize",group:"component.options.crdGroupCellStyle",min:0,max:120},{key:"valueTextColor",type:"color",label:"component.options.crdValueTextColor",group:"component.options.crdGroupCellStyle"},{key:"valueAlign",type:"select",label:"component.options.crdValueAlign",group:"component.options.crdGroupCellStyle",options:[{label:"component.options.crdValueAlign_left",value:"left"},{label:"component.options.crdValueAlign_center",value:"center"},{label:"component.options.crdValueAlign_right",value:"right"}]},{key:"nameTextColor",type:"color",label:"component.options.crdNameTextColor",group:"component.options.crdGroupCellStyle"},{key:"areaWeight",type:"number",label:"component.options.crdAreaWeight",group:"component.options.crdGroupCellStyle",min:1,max:32},{key:"cellPadding",type:"number",label:"component.options.crdCellPadding",group:"component.options.crdGroupCellStyle",min:0,max:64}],X=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime","summary"],Y={useAlias:!1,multiObject:!1,source:"mosaic",object_id:"",object_alias:""},Z={DEFAULT:q,OPTIONS:J,DATA:K,PARAMS:Q,SOURCE:X,COMMON:Y},ee=e.defineComponent(I(y({},Z),{__name:"crd",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const i={valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"},l=p;class h extends $.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),labelColor:this.getOptionValue("labelColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",14),valueSize:this.getOptionValue("valueSize",28),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!0),showTopGradient:this.getOptionValue("showTopGradient",!1),topGradientStart:this.getOptionValue("topGradientStart","#f5a623"),topGradientHeight:this.getOptionValue("topGradientHeight",2),topGradientPosition:this.getOptionValue("topGradientPosition","cardItem"),showBgIcon:this.getOptionValue("showBgIcon",!1),defaultBgIcon:this.getOptionValue("defaultBgIcon",""),bgIconOpacity:this.getOptionValue("bgIconOpacity",.06),bgIconSize:this.getOptionValue("bgIconSize",40),bgIconPosition:this.getOptionValue("bgIconPosition","right"),paramsLayout:this.getOptionValue("paramsLayout","horizontal")}}init(){return _(this,null,function*(){var o;this.Style.value=this.extractStyles(),this.applyTheme();const n={name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1};if(!((o=this.props.conf.data)!=null&&o.length))this.props.conf.data=[y(y({},n),i)];else for(const a of this.props.conf.data)if(!(!a||typeof a!="object"))for(const[s,r]of Object.entries(i))a[s]===void 0&&(a[s]=r)})}setHistoryData(n){if(!n)return;const{data:o}=this.props.conf;!Array.isArray(o)||!o.length||o.forEach((a,s)=>{try{const r=n[s].data[0];r!=null&&(a.value=r)}catch(r){}})}}const g=new h(l,"crd");g.setupLifecycle();const c=g.getStyle(),S=e.computed(()=>M.generateTitleStyle(l.conf.options)),m=e.computed(()=>{const t=S.value||{},n=parseFloat(String(t.fontSize||"14"))||14,o=String(t.padding||"").split(" ").filter(Boolean),a=o.length>0&&parseFloat(o[0])||0,s=Math.ceil(n*1.5),r=Math.max(0,s+a*2);return I(y({},t),{minHeight:`${r}px`})}),u=e.computed(()=>{const t=c.value,n=Number(t.topGradientHeight)||2,o=t.topGradientStart||"#f5a623";return{height:`${n}px`,background:`linear-gradient(90deg, ${o}, transparent)`}}),f=e.computed(()=>{const t=c.value;return!!t.showTopGradient&&t.topGradientPosition==="aboveTitle"}),k=e.computed(()=>{const t=c.value;return!!t.showTopGradient&&t.topGradientPosition!=="aboveTitle"}),C=e.computed(()=>c.value.paramsLayout==="vertical"),A=e.computed(()=>{var o;const t=c.value,n=t.bgIconPosition==="right";return{opacity:(o=t.bgIconOpacity)!=null?o:.06,fontSize:`${Number(t.bgIconSize)||40}px`,display:"flex",alignItems:"center",justifyContent:n?"flex-end":"flex-start",paddingRight:n?"12px":void 0,paddingLeft:n?void 0:"12px"}});function E(t){const n=Number(t==null?void 0:t.areaWeight),o=Number.isFinite(n)&&n>0?n:1,a=Number(t==null?void 0:t.cellPadding),s={flex:`${o} 1 0`,minWidth:"0",minHeight:"0"};return Number.isFinite(a)&&a>0&&(s.padding=`${a}px`),s}function P(t){const n=c.value,o=Number(t==null?void 0:t.valueFontSize),a=Number.isFinite(o)&&o>0?o:n.valueSize,s=typeof(t==null?void 0:t.valueTextColor)=="string"?t.valueTextColor.trim():"",r=t==null?void 0:t.valueAlign,d=r==="left"||r==="right"||r==="center"?r:"center",b=d==="left"?"flex-start":d==="right"?"flex-end":"center",z={color:s||n.textColor,fontSize:`${a}px`,justifyContent:b,textAlign:d};return C.value||(z.width="100%"),z}function w(t){const n=c.value,o=Number(t==null?void 0:t.nameFontSize),a=Number.isFinite(o)&&o>0?o:n.nameSize;return{color:(typeof(t==null?void 0:t.nameTextColor)=="string"?t.nameTextColor.trim():"")||n.labelColor,fontSize:`${a}px`}}function T(){const t=c.value.defaultBgIcon,n=typeof t=="string"?t.trim():"";return n?N.decodeIconFromStorage(n):""}const v=t=>{var s,r,d,b;if(!t)return{value:G,name:"--",unit:""};const n=(s=t.name)!=null?s:"",o=typeof t.unit=="string"?t.unit.trim():"";return t.isText?{value:(((r=t.flag)==null?void 0:r.find(F=>String(F.code)==String(t.value)))||{}).text||G,name:n,unit:o}:{value:(b=(d=t.value)!=null?d:t.default)!=null?b:0,name:n,unit:o}},x=l.conf;return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:e.unref(c).radiusSize+"px"})},[f.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-component-top-gradient",style:e.normalizeStyle(u.value)},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(m.value)},e.toDisplayString(e.unref(x).caption||e.unref(x).name),5),e.createElementVNode("div",{class:e.normalizeClass(["mix-body",{"mix-body--params-vertical":C.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(x).data,(o,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:"card-item",style:e.normalizeStyle(E(o))},[e.createElementVNode("div",{class:"card-item-surface",style:e.normalizeStyle({background:e.unref(c).bgColor})},null,4),k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"card-item-top-gradient",style:e.normalizeStyle(u.value)},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["card-item-inner",{"card-item-inner--row":C.value}])},[e.createElementVNode("div",{class:"value",style:e.normalizeStyle(P(o))},[e.createElementVNode("span",W,e.toDisplayString(v(o).value),1),v(o).unit?(e.openBlock(),e.createElementBlock("span",U,e.toDisplayString(v(o).unit),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("div",{class:"name",style:e.normalizeStyle(w(o))},e.toDisplayString(v(o).name),5)],2)],4))),128)),e.unref(c).showBgIcon&&T()?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-body-bg-icon",style:e.normalizeStyle(A.value)},e.toDisplayString(T()),5)):e.createCommentVNode("",!0)],2),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),te=N._export_sfc(ee,[["__scopeId","data-v-3b75ca77"]]);exports.default=te;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var A=Object.defineProperty,F=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols,L=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,j=Reflect.get;var O=(l,o,t)=>o in l?A(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,z=(l,o)=>{for(var t in o||(o={}))P.call(o,t)&&O(l,t,o[t]);if(k)for(var t of k(o))I.call(o,t)&&O(l,t,o[t]);return l},N=(l,o)=>F(l,M(o));var w=(l,o,t)=>j(L(l),t,o);var S=(l,o,t)=>new Promise((p,d)=>{var f=r=>{try{u(t.next(r))}catch(c){d(c)}},C=r=>{try{u(t.throw(r))}catch(c){d(c)}},u=r=>r.done?p(r.value):Promise.resolve(r.value).then(f,C);u((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const D=require("./BaseComponent-9njJjeix.cjs"),v=require("./index-Bo49zvKb.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),y=require("./mix-control-modal-aUWGjwZP.cjs"),H=require("element-plus"),q="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-213.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M225.674156,1208.89481%20C225.944595,1209.04924%20226.205387,1209.21954%20226.455068,1209.40467%20C226.881095,1209.72052%20227.273774,1210.07876%20227.626647,1210.47337%20C228.878628,1211.87353%20229.582251,1213.67438%20229.582251,1215.58182%20C229.582251,1219.84629%20226.083331,1223.3%20221.771264,1223.3%20C217.459198,1223.3%20213.960278,1219.84629%20213.960278,1215.58182%20C213.960278,1213.67437%20214.663898,1211.87352%20215.9159,1210.47335%20C216.268755,1210.07876%20216.661433,1209.72052%20217.087434,1209.40469%20C217.337142,1209.21954%20217.597933,1209.04924%20217.868372,1208.89481%20C218.16979,1208.7227%20218.55366,1208.82753%20218.725771,1209.12895%20C218.897882,1209.43036%20218.793058,1209.81423%20218.49164,1209.98634%20C218.264609,1210.11598%20218.045681,1210.25894%20217.836048,1210.41438%20C217.478472,1210.67948%20217.148907,1210.98015%20216.85287,1211.31119%20C215.804685,1212.48343%20215.217218,1213.98699%20215.217218,1215.58182%20C215.217218,1219.14841%20218.149754,1222.04306%20221.771264,1222.04306%20C225.392775,1222.04306%20228.32531,1219.14841%20228.32531,1215.58182%20C228.32531,1213.987%20227.73784,1212.48344%20226.689675,1211.31121%20C226.393622,1210.98015%20226.064056,1210.67948%20225.706453,1210.41436%20C225.496847,1210.25894%20225.27792,1210.11598%20225.050889,1209.98634%20C224.749471,1209.81423%20224.644647,1209.43036%20224.816758,1209.12895%20C224.988868,1208.82753%20225.372739,1208.7227%20225.674156,1208.89481%20Z%20M221.771264,1207.3%20C222.089434,1207.3%20222.352382,1207.53643%20222.393997,1207.84319%20L222.399735,1207.92847%20L222.399735,1215.48901%20C222.399735,1215.83611%20222.118359,1216.11748%20221.771264,1216.11748%20C221.453094,1216.11748%20221.190147,1215.88105%20221.148531,1215.57429%20L221.142794,1215.48901%20L221.142794,1207.92847%20C221.142794,1207.58138%20221.42417,1207.3%20221.771264,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M115.0528,1208.89481%20C115.323239,1209.04924%20115.58403,1209.21954%20115.833711,1209.40467%20C116.259739,1209.72052%20116.652418,1210.07876%20117.00529,1210.47337%20C118.257271,1211.87353%20118.960894,1213.67438%20118.960894,1215.58182%20C118.960894,1219.84629%20115.461974,1223.3%20111.149908,1223.3%20C106.837841,1223.3%20103.338921,1219.84629%20103.338921,1215.58182%20C103.338921,1213.67437%20104.042541,1211.87352%20105.294544,1210.47335%20C105.647398,1210.07876%20106.040077,1209.72052%20106.466077,1209.40469%20C106.715786,1209.21954%20106.976577,1209.04924%20107.247016,1208.89481%20C107.548433,1208.7227%20107.932304,1208.82753%20108.104414,1209.12895%20C108.276525,1209.43036%20108.171701,1209.81423%20107.870284,1209.98634%20C107.643252,1210.11598%20107.424325,1210.25894%20107.214692,1210.41438%20C106.857116,1210.67948%20106.52755,1210.98015%20106.231514,1211.31119%20C105.183328,1212.48343%20104.595862,1213.98699%20104.595862,1215.58182%20C104.595862,1219.14841%20107.528398,1222.04306%20111.149908,1222.04306%20C114.771418,1222.04306%20117.703954,1219.14841%20117.703954,1215.58182%20C117.703954,1213.987%20117.116484,1212.48344%20116.068318,1211.31121%20C115.772265,1210.98015%20115.4427,1210.67948%20115.085097,1210.41436%20C114.875491,1210.25894%20114.656563,1210.11598%20114.429532,1209.98634%20C114.128115,1209.81423%20114.023291,1209.43036%20114.195401,1209.12895%20C114.367512,1208.82753%20114.751382,1208.7227%20115.0528,1208.89481%20Z%20M111.149908,1207.3%20C111.468078,1207.3%20111.731026,1207.53643%20111.772641,1207.84319%20L111.778378,1207.92847%20L111.778378,1215.48901%20C111.778378,1215.83611%20111.497002,1216.11748%20111.149908,1216.11748%20C110.831738,1216.11748%20110.56879,1215.88105%20110.527175,1215.57429%20L110.521438,1215.48901%20L110.521438,1207.92847%20C110.521438,1207.58138%20110.802813,1207.3%20111.149908,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",U={class:"font-semibold flex items-center justify-between"},Z={class:"mix-body"},W={class:"w-full flex flex-wrap content-start"},G=["onClick"],J={DEFAULT_ICON:q,ACTIVE_ICON:$,NAME_CN:"按键",NAME_EN:"Button",ORDER:2,PLATFORM:["pc","screen","mobile"]},K={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:v.CONTROL_OPTIONS}},V=[{command:"Control_01",name:"关机",color:"#c92309",code:"0"},{command:"Control_01",name:"开机",color:"#217406",code:"1"}],Y=["name","command","color","code"],Q=["mosaic"],X={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},e2={DEFAULT:J,OPTIONS:K,DATA:V,PARAMS:Y,SOURCE:Q,COMMON:X},t2=e.defineComponent(N(z({},e2),{__name:"ctrBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(l){const o=l,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),p=e.reactive({rule:"",code:"",command:""}),d=e.reactive({text:"",color:""}),f=e.ref(null),C=e.ref(!0);class u extends D.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#fff"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",42),radiusSize:this.getOptionValue("radiusSize",8),items:this.getOptionValue("items",2),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return S(this,null,function*(){w(u.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:V})}onPreview(){return S(this,null,function*(){yield w(u.prototype,this,"onPreview").call(this);const n=yield y.getAuthorized(this.props);t.authorized=n.authorized,t.password=n.password})}setSocketData(n){var g,x;if(!n)return;const{common:i}=this.props.conf,s=this.extractDataValue(n,i.statusFv);if(s!=null){const m=i.status.find(h=>String(h.code)===String(s));d.text=(g=m==null?void 0:m.text)!=null?g:"",d.color=(x=m==null?void 0:m.color)!=null?x:""}}}const r=new u(o,"ctrBtn");r.setupLifecycle();const c=r.getStyle(),E=e.computed(()=>R.generateTitleStyle(o.conf.options)),B=e.computed(()=>`${(100/c.value.items).toFixed(2)||100}%`),b=a=>!y.checkPermission(t.authorized,a.command),T=a=>{var s;if(b(a))return;const{options:n}=o.conf;let i=((s=n==null?void 0:n.method)==null?void 0:s.value)||"alway";p.rule=i,p.code=String(a.code),p.command=a.command,i==="alway"||i==="once"&&C.value?f.value.modal.visible=!0:_()},_=()=>{const{code:a,rule:n,command:i}=p,{common:s}=o.conf,g=JSON.parse(sessionStorage.getItem(v.ALIAS_MAPPING_KEY)||"{}");let m={block_mapping:"mapping",action:"publish_command",object_id:s.useAlias?g[s.object_alias]:s.object_id||o.uid,command:i,value:a,rule:n,control:t.password};v.api.platform(h=>{h.code===200&&(H.ElMessage.success(h.msg),f.value.modal.visible=!1,C.value=!1)},m)};return(a,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(E.value)},[e.createElementVNode("div",U,[e.createTextVNode(e.toDisplayString(l.conf.caption||l.conf.name)+" ",1),d.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"status-btn",style:e.normalizeStyle({backgroundColor:d.color,color:e.unref(c).textColor})},e.toDisplayString(d.text),5)):e.createCommentVNode("",!0)])],4),e.createElementVNode("div",Z,[e.createElementVNode("div",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.data,(i,s)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:s,style:e.normalizeStyle({width:B.value,height:`${e.unref(c).itemHeight}px`,fontSize:`${e.unref(c).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:b(i)}]),style:e.normalizeStyle({backgroundColor:i.color,color:e.unref(c).textColor}),onClick:g=>T(i)},e.toDisplayString(i.name),15,G)],4))),128))])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4),e.createVNode(y._sfc_main,{ref_key:"controlRef",ref:f,onSubmit:_,password:t.password},null,8,["password"])],64))}})),o2=v._export_sfc(t2,[["__scopeId","data-v-061fd8dc"]]);exports.default=o2;
|
|
1
|
+
"use strict";var A=Object.defineProperty,F=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols,L=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,j=Reflect.get;var O=(l,o,t)=>o in l?A(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,z=(l,o)=>{for(var t in o||(o={}))P.call(o,t)&&O(l,t,o[t]);if(k)for(var t of k(o))I.call(o,t)&&O(l,t,o[t]);return l},N=(l,o)=>F(l,M(o));var w=(l,o,t)=>j(L(l),t,o);var S=(l,o,t)=>new Promise((p,d)=>{var f=r=>{try{u(t.next(r))}catch(c){d(c)}},C=r=>{try{u(t.throw(r))}catch(c){d(c)}},u=r=>r.done?p(r.value):Promise.resolve(r.value).then(f,C);u((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const D=require("./BaseComponent-CPat9pFl.cjs"),v=require("./index-D9ehIVda.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),y=require("./mix-control-modal-CS-lOybT.cjs"),H=require("element-plus"),q="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-213.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M225.674156,1208.89481%20C225.944595,1209.04924%20226.205387,1209.21954%20226.455068,1209.40467%20C226.881095,1209.72052%20227.273774,1210.07876%20227.626647,1210.47337%20C228.878628,1211.87353%20229.582251,1213.67438%20229.582251,1215.58182%20C229.582251,1219.84629%20226.083331,1223.3%20221.771264,1223.3%20C217.459198,1223.3%20213.960278,1219.84629%20213.960278,1215.58182%20C213.960278,1213.67437%20214.663898,1211.87352%20215.9159,1210.47335%20C216.268755,1210.07876%20216.661433,1209.72052%20217.087434,1209.40469%20C217.337142,1209.21954%20217.597933,1209.04924%20217.868372,1208.89481%20C218.16979,1208.7227%20218.55366,1208.82753%20218.725771,1209.12895%20C218.897882,1209.43036%20218.793058,1209.81423%20218.49164,1209.98634%20C218.264609,1210.11598%20218.045681,1210.25894%20217.836048,1210.41438%20C217.478472,1210.67948%20217.148907,1210.98015%20216.85287,1211.31119%20C215.804685,1212.48343%20215.217218,1213.98699%20215.217218,1215.58182%20C215.217218,1219.14841%20218.149754,1222.04306%20221.771264,1222.04306%20C225.392775,1222.04306%20228.32531,1219.14841%20228.32531,1215.58182%20C228.32531,1213.987%20227.73784,1212.48344%20226.689675,1211.31121%20C226.393622,1210.98015%20226.064056,1210.67948%20225.706453,1210.41436%20C225.496847,1210.25894%20225.27792,1210.11598%20225.050889,1209.98634%20C224.749471,1209.81423%20224.644647,1209.43036%20224.816758,1209.12895%20C224.988868,1208.82753%20225.372739,1208.7227%20225.674156,1208.89481%20Z%20M221.771264,1207.3%20C222.089434,1207.3%20222.352382,1207.53643%20222.393997,1207.84319%20L222.399735,1207.92847%20L222.399735,1215.48901%20C222.399735,1215.83611%20222.118359,1216.11748%20221.771264,1216.11748%20C221.453094,1216.11748%20221.190147,1215.88105%20221.148531,1215.57429%20L221.142794,1215.48901%20L221.142794,1207.92847%20C221.142794,1207.58138%20221.42417,1207.3%20221.771264,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M115.0528,1208.89481%20C115.323239,1209.04924%20115.58403,1209.21954%20115.833711,1209.40467%20C116.259739,1209.72052%20116.652418,1210.07876%20117.00529,1210.47337%20C118.257271,1211.87353%20118.960894,1213.67438%20118.960894,1215.58182%20C118.960894,1219.84629%20115.461974,1223.3%20111.149908,1223.3%20C106.837841,1223.3%20103.338921,1219.84629%20103.338921,1215.58182%20C103.338921,1213.67437%20104.042541,1211.87352%20105.294544,1210.47335%20C105.647398,1210.07876%20106.040077,1209.72052%20106.466077,1209.40469%20C106.715786,1209.21954%20106.976577,1209.04924%20107.247016,1208.89481%20C107.548433,1208.7227%20107.932304,1208.82753%20108.104414,1209.12895%20C108.276525,1209.43036%20108.171701,1209.81423%20107.870284,1209.98634%20C107.643252,1210.11598%20107.424325,1210.25894%20107.214692,1210.41438%20C106.857116,1210.67948%20106.52755,1210.98015%20106.231514,1211.31119%20C105.183328,1212.48343%20104.595862,1213.98699%20104.595862,1215.58182%20C104.595862,1219.14841%20107.528398,1222.04306%20111.149908,1222.04306%20C114.771418,1222.04306%20117.703954,1219.14841%20117.703954,1215.58182%20C117.703954,1213.987%20117.116484,1212.48344%20116.068318,1211.31121%20C115.772265,1210.98015%20115.4427,1210.67948%20115.085097,1210.41436%20C114.875491,1210.25894%20114.656563,1210.11598%20114.429532,1209.98634%20C114.128115,1209.81423%20114.023291,1209.43036%20114.195401,1209.12895%20C114.367512,1208.82753%20114.751382,1208.7227%20115.0528,1208.89481%20Z%20M111.149908,1207.3%20C111.468078,1207.3%20111.731026,1207.53643%20111.772641,1207.84319%20L111.778378,1207.92847%20L111.778378,1215.48901%20C111.778378,1215.83611%20111.497002,1216.11748%20111.149908,1216.11748%20C110.831738,1216.11748%20110.56879,1215.88105%20110.527175,1215.57429%20L110.521438,1215.48901%20L110.521438,1207.92847%20C110.521438,1207.58138%20110.802813,1207.3%20111.149908,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",U={class:"font-semibold flex items-center justify-between"},Z={class:"mix-body"},W={class:"w-full flex flex-wrap content-start"},G=["onClick"],J={DEFAULT_ICON:q,ACTIVE_ICON:$,NAME_CN:"按键",NAME_EN:"Button",ORDER:2,PLATFORM:["pc","screen","mobile"]},K={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:v.CONTROL_OPTIONS}},V=[{command:"Control_01",name:"关机",color:"#c92309",code:"0"},{command:"Control_01",name:"开机",color:"#217406",code:"1"}],Y=["name","command","color","code"],Q=["mosaic"],X={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},e2={DEFAULT:J,OPTIONS:K,DATA:V,PARAMS:Y,SOURCE:Q,COMMON:X},t2=e.defineComponent(N(z({},e2),{__name:"ctrBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(l){const o=l,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),p=e.reactive({rule:"",code:"",command:""}),d=e.reactive({text:"",color:""}),f=e.ref(null),C=e.ref(!0);class u extends D.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#fff"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",42),radiusSize:this.getOptionValue("radiusSize",8),items:this.getOptionValue("items",2),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return S(this,null,function*(){w(u.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:V})}onPreview(){return S(this,null,function*(){yield w(u.prototype,this,"onPreview").call(this);const n=yield y.getAuthorized(this.props);t.authorized=n.authorized,t.password=n.password})}setSocketData(n){var g,x;if(!n)return;const{common:i}=this.props.conf,s=this.extractDataValue(n,i.statusFv);if(s!=null){const m=i.status.find(h=>String(h.code)===String(s));d.text=(g=m==null?void 0:m.text)!=null?g:"",d.color=(x=m==null?void 0:m.color)!=null?x:""}}}const r=new u(o,"ctrBtn");r.setupLifecycle();const c=r.getStyle(),E=e.computed(()=>R.generateTitleStyle(o.conf.options)),B=e.computed(()=>`${(100/c.value.items).toFixed(2)||100}%`),b=a=>!y.checkPermission(t.authorized,a.command),T=a=>{var s;if(b(a))return;const{options:n}=o.conf;let i=((s=n==null?void 0:n.method)==null?void 0:s.value)||"alway";p.rule=i,p.code=String(a.code),p.command=a.command,i==="alway"||i==="once"&&C.value?f.value.modal.visible=!0:_()},_=()=>{const{code:a,rule:n,command:i}=p,{common:s}=o.conf,g=JSON.parse(sessionStorage.getItem(v.ALIAS_MAPPING_KEY)||"{}");let m={block_mapping:"mapping",action:"publish_command",object_id:s.useAlias?g[s.object_alias]:s.object_id||o.uid,command:i,value:a,rule:n,control:t.password};v.api.platform(h=>{h.code===200&&(H.ElMessage.success(h.msg),f.value.modal.visible=!1,C.value=!1)},m)};return(a,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(E.value)},[e.createElementVNode("div",U,[e.createTextVNode(e.toDisplayString(l.conf.caption||l.conf.name)+" ",1),d.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"status-btn",style:e.normalizeStyle({backgroundColor:d.color,color:e.unref(c).textColor})},e.toDisplayString(d.text),5)):e.createCommentVNode("",!0)])],4),e.createElementVNode("div",Z,[e.createElementVNode("div",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.data,(i,s)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:s,style:e.normalizeStyle({width:B.value,height:`${e.unref(c).itemHeight}px`,fontSize:`${e.unref(c).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:b(i)}]),style:e.normalizeStyle({backgroundColor:i.color,color:e.unref(c).textColor}),onClick:g=>T(i)},e.toDisplayString(i.name),15,G)],4))),128))])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4),e.createVNode(y._sfc_main,{ref_key:"controlRef",ref:f,onSubmit:_,password:t.password},null,8,["password"])],64))}})),o2=v._export_sfc(t2,[["__scopeId","data-v-061fd8dc"]]);exports.default=o2;
|
|
@@ -28,10 +28,10 @@ var y = (o, e, t) => new Promise((u, r) => {
|
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as G, reactive as O, ref as L, computed as M, openBlock as v, createElementBlock as b, Fragment as B, createElementVNode as p, normalizeStyle as h, unref as f, createTextVNode as J, toDisplayString as k, createCommentVNode as K, renderList as Y, normalizeClass as q, renderSlot as Q, createVNode as X } from "vue";
|
|
30
30
|
import "html2canvas";
|
|
31
|
-
import { B as t2 } from "./BaseComponent-
|
|
32
|
-
import { a1 as e2, w as o2, a as i2, _ as s2 } from "./index-
|
|
31
|
+
import { B as t2 } from "./BaseComponent-DMJmgFIo.js";
|
|
32
|
+
import { a1 as e2, w as o2, a as i2, _ as s2 } from "./index-nru6zK5E.js";
|
|
33
33
|
import { g as l2 } from "./titleStyle-BT5GlpAb.js";
|
|
34
|
-
import { _ as n2, g as a2, c as c2 } from "./mix-control-modal-
|
|
34
|
+
import { _ as n2, g as a2, c as c2 } from "./mix-control-modal-DvWbmJn_.js";
|
|
35
35
|
import { ElMessage as r2 } from "element-plus";
|
|
36
36
|
const d2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-213.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M225.674156,1208.89481%20C225.944595,1209.04924%20226.205387,1209.21954%20226.455068,1209.40467%20C226.881095,1209.72052%20227.273774,1210.07876%20227.626647,1210.47337%20C228.878628,1211.87353%20229.582251,1213.67438%20229.582251,1215.58182%20C229.582251,1219.84629%20226.083331,1223.3%20221.771264,1223.3%20C217.459198,1223.3%20213.960278,1219.84629%20213.960278,1215.58182%20C213.960278,1213.67437%20214.663898,1211.87352%20215.9159,1210.47335%20C216.268755,1210.07876%20216.661433,1209.72052%20217.087434,1209.40469%20C217.337142,1209.21954%20217.597933,1209.04924%20217.868372,1208.89481%20C218.16979,1208.7227%20218.55366,1208.82753%20218.725771,1209.12895%20C218.897882,1209.43036%20218.793058,1209.81423%20218.49164,1209.98634%20C218.264609,1210.11598%20218.045681,1210.25894%20217.836048,1210.41438%20C217.478472,1210.67948%20217.148907,1210.98015%20216.85287,1211.31119%20C215.804685,1212.48343%20215.217218,1213.98699%20215.217218,1215.58182%20C215.217218,1219.14841%20218.149754,1222.04306%20221.771264,1222.04306%20C225.392775,1222.04306%20228.32531,1219.14841%20228.32531,1215.58182%20C228.32531,1213.987%20227.73784,1212.48344%20226.689675,1211.31121%20C226.393622,1210.98015%20226.064056,1210.67948%20225.706453,1210.41436%20C225.496847,1210.25894%20225.27792,1210.11598%20225.050889,1209.98634%20C224.749471,1209.81423%20224.644647,1209.43036%20224.816758,1209.12895%20C224.988868,1208.82753%20225.372739,1208.7227%20225.674156,1208.89481%20Z%20M221.771264,1207.3%20C222.089434,1207.3%20222.352382,1207.53643%20222.393997,1207.84319%20L222.399735,1207.92847%20L222.399735,1215.48901%20C222.399735,1215.83611%20222.118359,1216.11748%20221.771264,1216.11748%20C221.453094,1216.11748%20221.190147,1215.88105%20221.148531,1215.57429%20L221.142794,1215.48901%20L221.142794,1207.92847%20C221.142794,1207.58138%20221.42417,1207.3%20221.771264,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", m2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M115.0528,1208.89481%20C115.323239,1209.04924%20115.58403,1209.21954%20115.833711,1209.40467%20C116.259739,1209.72052%20116.652418,1210.07876%20117.00529,1210.47337%20C118.257271,1211.87353%20118.960894,1213.67438%20118.960894,1215.58182%20C118.960894,1219.84629%20115.461974,1223.3%20111.149908,1223.3%20C106.837841,1223.3%20103.338921,1219.84629%20103.338921,1215.58182%20C103.338921,1213.67437%20104.042541,1211.87352%20105.294544,1210.47335%20C105.647398,1210.07876%20106.040077,1209.72052%20106.466077,1209.40469%20C106.715786,1209.21954%20106.976577,1209.04924%20107.247016,1208.89481%20C107.548433,1208.7227%20107.932304,1208.82753%20108.104414,1209.12895%20C108.276525,1209.43036%20108.171701,1209.81423%20107.870284,1209.98634%20C107.643252,1210.11598%20107.424325,1210.25894%20107.214692,1210.41438%20C106.857116,1210.67948%20106.52755,1210.98015%20106.231514,1211.31119%20C105.183328,1212.48343%20104.595862,1213.98699%20104.595862,1215.58182%20C104.595862,1219.14841%20107.528398,1222.04306%20111.149908,1222.04306%20C114.771418,1222.04306%20117.703954,1219.14841%20117.703954,1215.58182%20C117.703954,1213.987%20117.116484,1212.48344%20116.068318,1211.31121%20C115.772265,1210.98015%20115.4427,1210.67948%20115.085097,1210.41436%20C114.875491,1210.25894%20114.656563,1210.11598%20114.429532,1209.98634%20C114.128115,1209.81423%20114.023291,1209.43036%20114.195401,1209.12895%20C114.367512,1208.82753%20114.751382,1208.7227%20115.0528,1208.89481%20Z%20M111.149908,1207.3%20C111.468078,1207.3%20111.731026,1207.53643%20111.772641,1207.84319%20L111.778378,1207.92847%20L111.778378,1215.48901%20C111.778378,1215.83611%20111.497002,1216.11748%20111.149908,1216.11748%20C110.831738,1216.11748%20110.56879,1215.88105%20110.527175,1215.57429%20L110.521438,1215.48901%20L110.521438,1207.92847%20C110.521438,1207.58138%20110.802813,1207.3%20111.149908,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", u2 = { class: "font-semibold flex items-center justify-between" }, p2 = { class: "mix-body" }, f2 = { class: "w-full flex flex-wrap content-start" }, g2 = ["onClick"], C2 = {
|
|
37
37
|
DEFAULT_ICON: d2,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var j=Object.defineProperty,L=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols,F=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,W=Reflect.get;var w=(a,t,o)=>t in a?j(a,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[t]=o,z=(a,t)=>{for(var o in t||(t={}))U.call(t,o)&&w(a,o,t[o]);if(x)for(var o of x(t))$.call(t,o)&&w(a,o,t[o]);return a},A=(a,t)=>L(a,R(t));var T=(a,t,o)=>W(F(a),o,t);var O=(a,t,o)=>new Promise((f,h)=>{var u=s=>{try{r(o.next(s))}catch(d){h(d)}},_=s=>{try{r(o.throw(s))}catch(d){h(d)}},r=s=>s.done?f(s.value):Promise.resolve(s.value).then(u,_);r((o=o.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),H=require("./BaseComponent-
|
|
1
|
+
"use strict";var j=Object.defineProperty,L=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols,F=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,W=Reflect.get;var w=(a,t,o)=>t in a?j(a,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[t]=o,z=(a,t)=>{for(var o in t||(t={}))U.call(t,o)&&w(a,o,t[o]);if(x)for(var o of x(t))$.call(t,o)&&w(a,o,t[o]);return a},A=(a,t)=>L(a,R(t));var T=(a,t,o)=>W(F(a),o,t);var O=(a,t,o)=>new Promise((f,h)=>{var u=s=>{try{r(o.next(s))}catch(d){h(d)}},_=s=>{try{r(o.throw(s))}catch(d){h(d)}},r=s=>s.done?f(s.value):Promise.resolve(s.value).then(u,_);r((o=o.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),H=require("./BaseComponent-CPat9pFl.cjs"),b=require("./index-D9ehIVda.cjs"),G=require("./titleStyle-NSnz6cUg.cjs"),E=require("./mix-control-modal-CS-lOybT.cjs"),I=require("element-plus"),M=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),J={class:"font-[600]"},K={class:"submint"},Y={DEFAULT_ICON:M.DEFAULT_ICON,ACTIVE_ICON:M.ACTIVE_ICON,NAME_CN:"参数控件",NAME_EN:"Parameter Control",ORDER:1,PLATFORM:["pc","screen","mobile"]},Q={bgColor:"#fff",titleColor:"#111",textColor:"#111",titleSize:14,textSize:14,labelWidth:100,radiusSize:8,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.params.verifyMethod",options:"CONTROL_OPTIONS"}},X=[{command:"Control_01",name:"参数一",unit:"",fv:""}],Z=["name","fv","command","unit"],ee=["mosaic"],te={useAlias:!1,multiObject:!1,hideMultiObject:!0},le={DEFAULT:Y,OPTIONS:Q,DATA:X,PARAMS:Z,SOURCE:ee,COMMON:te},oe=e.defineComponent(A(z({},le),{__name:"ctrSet",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""},socketData:{type:Object,default:()=>({})}},setup(a){const t=a,o="--";class f extends H.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),titleSize:this.getOptionValue("titleSize",14),textSize:this.getOptionValue("textSize",12),labelWidth:this.getOptionValue("labelWidth",100),radiusSize:this.getOptionValue("radiusSize",4),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return O(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme()})}onPreview(){return O(this,null,function*(){yield T(f.prototype,this,"onPreview").call(this);const n=yield E.getAuthorized(this.props);r.authorized=n.authorized,r.password=n.password})}setSocketData(n){if(!n)return;const{data:i}=this.props.conf;i.forEach(m=>{const c=this.extractDataValue(n,m.fv);m.value=c!=null?c:o})}}const h=new f(t,"ctrSet");h.setupLifecycle();const u=h.getStyle(),_=e.computed(()=>G.generateTitleStyle(t.conf.options)),r=e.reactive({authorized:{type:"black_list",list:[]},password:""}),s=e.ref([]),d=e.ref(null),C=e.ref(!0),D=e.computed(()=>{var l;return((l=t.conf.data)==null?void 0:l.length)===1}),P=l=>!E.checkPermission(r.authorized,l.command),V=e.computed(()=>s.value.filter(l=>l).length===0);e.computed(()=>{var n,i;const{data:l}=t.conf;return(((n=l==null?void 0:l[0])==null?void 0:n.value)||o)+" "+(((i=l==null?void 0:l[0])==null?void 0:i.unit)||"")});const B=()=>{var i;const{options:l}=t.conf,n=((i=l==null?void 0:l.method)==null?void 0:i.value)||"alway";n==="alway"||n==="once"&&C.value?d.value.modal.visible=!0:N()},N=()=>{var p,y;const{common:l,data:n,options:i}=t.conf,m=JSON.parse(sessionStorage.getItem(b.ALIAS_MAPPING_KEY)||"{}")||{},c=l.useAlias?m[l.object_alias]:l.object_id||t.uid;if(D.value){const S={block_mapping:"mapping",action:"publish_command",object_id:c,command:n[0].command,value:s.value[0],control:r.password,rule:((p=i==null?void 0:i.method)==null?void 0:p.value)||"alway"};b.api.platform(g=>{g.code===200&&(I.ElMessage.success(g.msg),d.value.modal.visible=!1,C.value=!1)},S)}else{const S=[];s.value.forEach((v,q)=>{v&&S.push({object_id:c,command:n[q].command,value:v})});const g={block_mapping:"mapping",action:"publish_command_plus",publishes:S,control:r.password,rule:((y=i==null?void 0:i.method)==null?void 0:y.value)||"alway"};b.api.platform(v=>{v.code===200&&(I.ElMessage.success(v.msg),d.value.modal.visible=!1,C.value=!1)},g)}};return(l,n)=>{const i=k.ElInput,m=k.ElButton;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(u).bgColor,borderRadius:`${e.unref(u).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title flex-1",style:e.normalizeStyle(_.value)},[e.createElementVNode("div",J,e.toDisplayString(a.conf.caption||a.conf.name),1)],4),e.createElementVNode("div",{class:"mix-body",style:e.normalizeStyle({height:e.unref(u).isHideTitle?"100%":"calc(100% - 42px)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.conf.data,(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:"set-item",key:p,style:e.normalizeStyle({fontSize:`${e.unref(u).textSize}px`,color:e.unref(u).textColor})},[e.createElementVNode("div",{class:"item-name",style:e.normalizeStyle({width:`${e.unref(u).labelWidth}px`})},e.toDisplayString(c.name),5),e.createVNode(i,{modelValue:s.value[p],"onUpdate:modelValue":y=>s.value[p]=y,disabled:P(c)},null,8,["modelValue","onUpdate:modelValue","disabled"]),e.createVNode(i,{value:c.value?`${c.value} ${c.unit}`:o,style:{width:"100px","margin-left":"12px"},readonly:""},null,8,["value"])],4))),128)),e.createElementVNode("div",K,[e.createVNode(m,{type:V.value?"default":"primary",onClick:B,disabled:V.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])],4),e.renderSlot(l.$slots,"default",{},void 0,!0)],4),e.createVNode(E._sfc_main,{ref_key:"controlRef",ref:d,onSubmit:N,password:r.password},null,8,["password"])],64)}}})),ae=b._export_sfc(oe,[["__scopeId","data-v-9fb911b4"]]);exports.default=ae;
|
|
@@ -31,10 +31,10 @@ import "element-plus/es/components/base/style/css";
|
|
|
31
31
|
import "element-plus/es/components/button/style/css";
|
|
32
32
|
import "element-plus/es/components/input/style/css";
|
|
33
33
|
import { defineComponent as ee, computed as O, reactive as te, ref as V, openBlock as z, createElementBlock as E, Fragment as B, createElementVNode as p, normalizeStyle as g, unref as f, toDisplayString as T, renderList as oe, createVNode as C, withCtx as le, createTextVNode as ae, renderSlot as ie } from "vue";
|
|
34
|
-
import { B as se } from "./BaseComponent-
|
|
35
|
-
import { w as ne, a as L, _ as ce } from "./index-
|
|
34
|
+
import { B as se } from "./BaseComponent-DMJmgFIo.js";
|
|
35
|
+
import { w as ne, a as L, _ as ce } from "./index-nru6zK5E.js";
|
|
36
36
|
import { g as re } from "./titleStyle-BT5GlpAb.js";
|
|
37
|
-
import { _ as de, g as ue, c as me } from "./mix-control-modal-
|
|
37
|
+
import { _ as de, g as ue, c as me } from "./mix-control-modal-DvWbmJn_.js";
|
|
38
38
|
import { ElMessage as R } from "element-plus";
|
|
39
39
|
import { A as pe, D as fe } from "./ele-ctrSet-icon-BtKGrCid.js";
|
|
40
40
|
const he = { class: "font-[600]" }, ve = { class: "submint" }, be = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var V=Object.defineProperty,A=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols,T=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,P=Reflect.get;var k=(l,o,t)=>o in l?V(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,z=(l,o)=>{for(var t in o||(o={}))F.call(o,t)&&k(l,t,o[t]);if(b)for(var t of b(o))B.call(o,t)&&k(l,t,o[t]);return l},O=(l,o)=>A(l,M(o));var C=(l,o,t)=>P(T(l),t,o);var w=(l,o,t)=>new Promise((d,u)=>{var f=s=>{try{m(t.next(s))}catch(g){u(g)}},p=s=>{try{m(t.throw(s))}catch(g){u(g)}},m=s=>s.done?d(s.value):Promise.resolve(s.value).then(f,p);m((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const I=require("./BaseComponent-
|
|
1
|
+
"use strict";var V=Object.defineProperty,A=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols,T=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,P=Reflect.get;var k=(l,o,t)=>o in l?V(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,z=(l,o)=>{for(var t in o||(o={}))F.call(o,t)&&k(l,t,o[t]);if(b)for(var t of b(o))B.call(o,t)&&k(l,t,o[t]);return l},O=(l,o)=>A(l,M(o));var C=(l,o,t)=>P(T(l),t,o);var w=(l,o,t)=>new Promise((d,u)=>{var f=s=>{try{m(t.next(s))}catch(g){u(g)}},p=s=>{try{m(t.throw(s))}catch(g){u(g)}},m=s=>s.done?d(s.value):Promise.resolve(s.value).then(f,p);m((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const I=require("./BaseComponent-CPat9pFl.cjs"),h=require("./index-D9ehIVda.cjs"),D=require("./titleStyle-NSnz6cUg.cjs"),S=require("./mix-control-modal-CS-lOybT.cjs"),E=require("element-plus"),j="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e开关%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-1145.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M1158.87913,103.913793%20C1160.85974,103.913793%201162.46533,105.51939%201162.46533,107.5%20C1162.46533,109.480615%201160.85974,111.086207%201158.87913,111.086207%20L1158.87913,111.086207%20L1150.05154,111.086207%20C1148.07093,111.086207%201146.46533,109.480613%201146.46533,107.5%20C1146.46533,105.519392%201148.07093,103.913793%201150.05154,103.913793%20L1150.05154,103.913793%20Z%20M1158.87913,105.201149%20L1150.05154,105.201149%20C1148.78192,105.201149%201147.75269,106.230379%201147.75269,107.5%20C1147.75269,108.769625%201148.78192,109.798851%201150.05154,109.798851%20L1150.05154,109.798851%20L1158.87913,109.798851%20C1160.14876,109.798851%201161.17798,108.769628%201161.17798,107.5%20C1161.17798,106.230376%201160.14875,105.201149%201158.87913,105.201149%20L1158.87913,105.201149%20Z%20M1158.60051,106.243295%20C1159.3115,106.243295%201159.88786,106.819654%201159.88786,107.530651%20C1159.88786,108.241648%201159.3115,108.818008%201158.60051,108.818008%20C1157.88951,108.818008%201157.31315,108.241648%201157.31315,107.530651%20C1157.31315,106.819654%201157.88951,106.243295%201158.60051,106.243295%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",R="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e开关%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-1145.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M1158.87913,103.913793%20C1160.85974,103.913793%201162.46533,105.51939%201162.46533,107.5%20C1162.46533,109.480615%201160.85974,111.086207%201158.87913,111.086207%20L1158.87913,111.086207%20L1150.05154,111.086207%20C1148.07093,111.086207%201146.46533,109.480613%201146.46533,107.5%20C1146.46533,105.519392%201148.07093,103.913793%201150.05154,103.913793%20L1150.05154,103.913793%20Z%20M1158.87913,105.201149%20L1150.05154,105.201149%20C1148.78192,105.201149%201147.75269,106.230379%201147.75269,107.5%20C1147.75269,108.769625%201148.78192,109.798851%201150.05154,109.798851%20L1150.05154,109.798851%20L1158.87913,109.798851%20C1160.14876,109.798851%201161.17798,108.769628%201161.17798,107.5%20C1161.17798,106.230376%201160.14875,105.201149%201158.87913,105.201149%20L1158.87913,105.201149%20Z%20M1158.60051,106.243295%20C1159.3115,106.243295%201159.88786,106.819654%201159.88786,107.530651%20C1159.88786,108.241648%201159.3115,108.818008%201158.60051,108.818008%20C1157.88951,108.818008%201157.31315,108.241648%201157.31315,107.530651%20C1157.31315,106.819654%201157.88951,106.243295%201158.60051,106.243295%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",H={class:"mix-body"},q={class:"switch-wrap"},U={class:"name"},$=["onClick"],Z=["onClick"],W="--",G={DEFAULT_ICON:j,ACTIVE_ICON:R,NAME_CN:"开关",NAME_EN:"Switch",ORDER:1,PLATFORM:["pc","screen","mobile"]},J={bgColor:"#fff",titleColor:"#111",textColor:"#111",titleSize:14,textSize:14,itemHeight:32,radiusSize:8,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:h.CONTROL_OPTIONS}},L=[{command:"Control_01",status_name:"状态",status_fv:"",start:"",stop:""}],K=["status_fv","status_name","command","start","stop"],Y=["mosaic"],Q={useAlias:!1,multiObject:!1,hideMultiObject:!0},X={DEFAULT:G,OPTIONS:J,DATA:L,PARAMS:K,SOURCE:Y,COMMON:Q},e1=e.defineComponent(O(z({},X),{__name:"ctrSwitch",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(l){const o=l,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),d=e.reactive({mode:"",item:{},rule:""}),u=e.ref(null),f=e.ref(!0);class p extends I.BaseComponent{extractStyles(){const{options:n}=this.props.conf;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",32),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return w(this,null,function*(){C(p.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:L})}onPreview(){return w(this,null,function*(){yield C(p.prototype,this,"onPreview").call(this);const n=yield S.getAuthorized(this.props);t.authorized=n.authorized,t.password=n.password})}setSocketData(n){if(!n)return;const{data:i}=this.props.conf;i.forEach(a=>{const r=this.extractDataValue(n,a.status_fv);a.value=r!=null?r:W})}}const m=new p(o,"ctrSwitch");m.setupLifecycle();const s=m.getStyle(),g=e.computed(()=>D.generateTitleStyle(o.conf.options)),v=c=>!S.checkPermission(t.authorized,c.command),_=(c,n)=>{var r;if(v(n)){E.ElMessage.warning("无权限操作");return}const{options:i}=o.conf;let a=((r=i==null?void 0:i.method)==null?void 0:r.value)||"alway";d.mode=c,d.item=n,d.rule=a,a==="alway"||a==="once"&&f.value?u.value.modal.visible=!0:x()},x=()=>{const{mode:c,item:n,rule:i}=d,{common:a}=o.conf,r=JSON.parse(sessionStorage.getItem(h.ALIAS_MAPPING_KEY)||"{}");let N={block_mapping:"mapping",action:"publish_command",object_id:a.useAlias?r[a.object_alias]:a.object_id||o.uid,command:n.command,value:n[c],rule:i,control:t.password};h.api.platform(y=>{y.code===200&&(E.ElMessage.success(y.msg),u.value.modal.visible=!1,f.value=!1)},N)};return(c,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(s).bgColor,borderRadius:`${e.unref(s).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(g.value)},e.toDisplayString(l.conf.caption||l.conf.name),5),e.createElementVNode("div",H,[e.createElementVNode("div",q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.data,(i,a)=>(e.openBlock(),e.createElementBlock("div",{class:"switch-item",key:a,style:e.normalizeStyle({height:`${e.unref(s).itemHeight}px`,backgroundColor:e.unref(s).bgColor,fontSize:`${e.unref(s).textSize}px`,color:e.unref(s).textColor})},[e.createElementVNode("div",U,e.toDisplayString(i.status_name),1),e.createElementVNode("div",{class:e.normalizeClass(["circle-on",{"active-on":String(i.value)&&String(i.value)===i.start}]),style:e.normalizeStyle({cursor:v(i)?"not-allowed":"pointer"}),onClick:r=>_("start",i)},null,14,$),e.createElementVNode("div",{class:e.normalizeClass(["circle-off",{"active-off":String(i.value)&&String(i.value)===i.stop}]),style:e.normalizeStyle({cursor:v(i)?"not-allowed":"pointer"}),onClick:r=>_("stop",i)},null,14,Z)],4))),128))])]),e.renderSlot(c.$slots,"default",{},void 0,!0)],4),e.createVNode(S._sfc_main,{ref_key:"controlRef",ref:u,onSubmit:x,password:t.password},null,8,["password"])],64))}})),t1=h._export_sfc(e1,[["__scopeId","data-v-c009fc5f"]]);exports.default=t1;
|
|
@@ -28,10 +28,10 @@ var _ = (s, e, t) => new Promise((d, u) => {
|
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as Z, reactive as M, ref as T, computed as W, openBlock as S, createElementBlock as x, Fragment as E, createElementVNode as r, normalizeStyle as h, unref as m, toDisplayString as F, renderList as G, normalizeClass as N, renderSlot as J, createVNode as K } from "vue";
|
|
30
30
|
import "html2canvas";
|
|
31
|
-
import { B as Y } from "./BaseComponent-
|
|
32
|
-
import { a1 as q, w as Q, a as X, _ as t1 } from "./index-
|
|
31
|
+
import { B as Y } from "./BaseComponent-DMJmgFIo.js";
|
|
32
|
+
import { a1 as q, w as Q, a as X, _ as t1 } from "./index-nru6zK5E.js";
|
|
33
33
|
import { g as e1 } from "./titleStyle-BT5GlpAb.js";
|
|
34
|
-
import { _ as o1, g as s1, c as i1 } from "./mix-control-modal-
|
|
34
|
+
import { _ as o1, g as s1, c as i1 } from "./mix-control-modal-DvWbmJn_.js";
|
|
35
35
|
import { ElMessage as V } from "element-plus";
|
|
36
36
|
const l1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e开关%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-1145.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M1158.87913,103.913793%20C1160.85974,103.913793%201162.46533,105.51939%201162.46533,107.5%20C1162.46533,109.480615%201160.85974,111.086207%201158.87913,111.086207%20L1158.87913,111.086207%20L1150.05154,111.086207%20C1148.07093,111.086207%201146.46533,109.480613%201146.46533,107.5%20C1146.46533,105.519392%201148.07093,103.913793%201150.05154,103.913793%20L1150.05154,103.913793%20Z%20M1158.87913,105.201149%20L1150.05154,105.201149%20C1148.78192,105.201149%201147.75269,106.230379%201147.75269,107.5%20C1147.75269,108.769625%201148.78192,109.798851%201150.05154,109.798851%20L1150.05154,109.798851%20L1158.87913,109.798851%20C1160.14876,109.798851%201161.17798,108.769628%201161.17798,107.5%20C1161.17798,106.230376%201160.14875,105.201149%201158.87913,105.201149%20L1158.87913,105.201149%20Z%20M1158.60051,106.243295%20C1159.3115,106.243295%201159.88786,106.819654%201159.88786,107.530651%20C1159.88786,108.241648%201159.3115,108.818008%201158.60051,108.818008%20C1157.88951,108.818008%201157.31315,108.241648%201157.31315,107.530651%20C1157.31315,106.819654%201157.88951,106.243295%201158.60051,106.243295%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", a1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e开关%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-1145.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M1158.87913,103.913793%20C1160.85974,103.913793%201162.46533,105.51939%201162.46533,107.5%20C1162.46533,109.480615%201160.85974,111.086207%201158.87913,111.086207%20L1158.87913,111.086207%20L1150.05154,111.086207%20C1148.07093,111.086207%201146.46533,109.480613%201146.46533,107.5%20C1146.46533,105.519392%201148.07093,103.913793%201150.05154,103.913793%20L1150.05154,103.913793%20Z%20M1158.87913,105.201149%20L1150.05154,105.201149%20C1148.78192,105.201149%201147.75269,106.230379%201147.75269,107.5%20C1147.75269,108.769625%201148.78192,109.798851%201150.05154,109.798851%20L1150.05154,109.798851%20L1158.87913,109.798851%20C1160.14876,109.798851%201161.17798,108.769628%201161.17798,107.5%20C1161.17798,106.230376%201160.14875,105.201149%201158.87913,105.201149%20L1158.87913,105.201149%20Z%20M1158.60051,106.243295%20C1159.3115,106.243295%201159.88786,106.819654%201159.88786,107.530651%20C1159.88786,108.241648%201159.3115,108.818008%201158.60051,108.818008%20C1157.88951,108.818008%201157.31315,108.241648%201157.31315,107.530651%20C1157.31315,106.819654%201157.88951,106.243295%201158.60051,106.243295%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", n1 = { class: "mix-body" }, c1 = { class: "switch-wrap" }, r1 = { class: "name" }, d1 = ["onClick"], u1 = ["onClick"], p1 = "--", g1 = {
|
|
37
37
|
DEFAULT_ICON: l1,
|
|
@@ -23,8 +23,8 @@ import "element-plus/es/components/option/style/css";
|
|
|
23
23
|
import "element-plus/es/components/button/style/css";
|
|
24
24
|
import { defineComponent as We, ref as V, computed as I, reactive as ie, onMounted as Qe, onUnmounted as Ze, openBlock as o, createElementBlock as k, normalizeStyle as de, unref as x, createElementVNode as p, Fragment as h, createTextVNode as f, toDisplayString as M, createVNode as u, withCtx as s, renderList as w, normalizeClass as qe, createBlock as r, createCommentVNode as re, renderSlot as Je } from "vue";
|
|
25
25
|
import "html2canvas";
|
|
26
|
-
import { B as Ke } from "./BaseComponent-
|
|
27
|
-
import { _ as el } from "./index-
|
|
26
|
+
import { B as Ke } from "./BaseComponent-DMJmgFIo.js";
|
|
27
|
+
import { _ as el } from "./index-nru6zK5E.js";
|
|
28
28
|
import { A as ll, D as tl } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
29
29
|
const al = {
|
|
30
30
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var he=Object.defineProperty,Ce=Object.defineProperties;var _e=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var Be=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var H=(v,d,c)=>d in v?he(v,d,{enumerable:!0,configurable:!0,writable:!0,value:c}):v[d]=c,W=(v,d)=>{for(var c in d||(d={}))Be.call(d,c)&&H(v,c,d[c]);if(G)for(var c of G(d))Ne.call(d,c)&&H(v,c,d[c]);return v},Q=(v,d)=>Ce(v,_e(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/button/style/css");const e=require("vue");require("html2canvas");const we=require("./BaseComponent-9njJjeix.cjs"),Ee=require("./index-Bo49zvKb.cjs"),Z=require("./ele-lin-icon-Dke_1AmT.cjs"),xe={key:0,class:"edit-placeholder"},De={class:"mgmt-header"},Te={class:"breadcrumb"},Se={class:"crumb-active"},Ae={class:"header-actions"},ze={class:"mgmt-tabs"},Me=["onClick"],Ue={class:"mgmt-filter-bar"},Ie={class:"filter-label"},Fe={class:"table-area"},Oe={class:"pagination-bar"},Le={class:"modal-form"},qe={class:"form-label"},Pe={class:"dialog-footer"},Re={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"基础数据管理",NAME_EN:"Data Management",ORDER:14,PLATFORM:["pc","screen"]},Ye={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},fontSize:{value:13,type:"number",label:"字体大小",min:10,max:20},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},je=[],Xe=["object_id","name","fv","fvDeviceName"],$e=["mosaic"],Ge={useAlias:!1,multiObject:!1,source:"mosaic"},He={DEFAULT:Re,OPTIONS:Ye,DATA:je,PARAMS:Xe,SOURCE:$e,COMMON:Ge},We=e.defineComponent(Q(W({},He),{__name:"dataManagement",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(v){const d=v,c=["时间","安装日期","下载时间","采集时间","设置日期"],E=["北帮","南帮","东帮","西帮","中央区"],M=["陈晓晓","王大力","李工程师","张三"],F=["全部权限","仅数据查询权限","人工录入权限","基础数据管理权限"],O=["国产雷达","进口雷达","GNSS","锚索应力计","土压力计","水位计","流量计","裂缝计","震动计"],L={partition:{title:"分区管理",filters:[{label:"分区名称",key:"名称",type:"input"},{label:"操作人员",key:"人员",type:"select",options:["全部",...M]}],columns:["时间","人员","名称","坐标"],addFields:["时间","人员","名称","坐标"]},device:{title:"设备管理",filters:[{label:"设备编号",key:"编号",type:"input"},{label:"所属区域",key:"所属区域",type:"select",options:["全部",...E]},{label:"设备状态",key:"状态",type:"select",options:["全部","正常","离线"]},{label:"设备类型",key:"类型",type:"select",options:["全部",...O]}],columns:["类型","编号","型号","安装日期","厂商","安装位置","所属区域","所属监测线"],addFields:["类型","编号","型号","安装日期","厂商","安装位置","所属区域","所属监测线","状态"]},radar:{title:"雷达扫描区域管理",filters:[{label:"区域编号",key:"编号",type:"input"},{label:"操作人员",key:"人员",type:"select",options:["全部",...M]},{label:"扫描区域",key:"扫描区域",type:"select",options:["全部",...E]}],columns:["时间","人员","编号","文件名称","圈定位置","扫描区域"],addFields:["时间","人员","编号","文件名称","圈定位置","扫描区域"]},virtual_point:{title:"雷达虚拟设置管理",filters:[{label:"点位编号",key:"编号",type:"input"},{label:"所属区域",key:"所属区域",type:"select",options:["全部",...E]}],columns:["类型","编号","设置日期","所属雷达","设置位置","所属区域","所属监测线","状态"],addFields:["类型","编号","设置日期","所属雷达","设置位置","所属区域","所属监测线","状态"]},satellite:{title:"卫星数据管理",filters:[{label:"数据编号",key:"数据编号",type:"input"},{label:"卫星类型",key:"卫星类型",type:"input"}],columns:["ID","数据名称","数据编号","下载时间","数据大小(MB)","卫星类型"],addFields:["ID","数据名称","数据编号","下载时间","数据大小(MB)","卫星类型"]},map_info:{title:"地图信息管理",filters:[{label:"数据类型",key:"数据类型",type:"select",options:["全部","正射影像","倾斜摄影"]},{label:"采集时间",key:"采集时间",type:"datetime-local"}],columns:["ID","数据名称","数据编号","数据类型","采集时间","覆盖面积(km²)"],addFields:["ID","数据名称","数据编号","数据类型","采集时间","覆盖面积(km²)"]},permission:{title:"权限管理",filters:[{label:"账号名称",key:"用户名",type:"input"},{label:"角色权限",key:"角色权限",type:"select",options:["全部",...F]},{label:"授权状态",key:"授权状态",type:"select",options:["全部","已授权","未授权"]}],columns:["用户ID","用户名","角色权限","授权状态"],addFields:["用户ID","用户名","角色权限","授权状态"]}},J=Object.entries(L).map(([a,l])=>({key:a,title:l.title})),K=()=>({partition:[{时间:"2026-01-19T20:00",人员:"陈晓晓",名称:"北帮一区",坐标:"X:1200, Y:300"}],device:[{类型:"GNSS",编号:"G001",型号:"T9-Pro",安装日期:"2025-12-01T10:00",厂商:"中海达",安装位置:"E:103.5, N:30.5",所属区域:"南帮",所属监测线:"S1",状态:"正常"}],radar:[{时间:"2026-01-15T09:00",人员:"陈晓晓",编号:"RAD-AREA-001",文件名称:"20260115_东帮1区.las",圈定位置:"X:2450.55, Y:1300.12, M:1326.56, N:1256.09......",扫描区域:"东帮"},{时间:"2026-01-17T14:30",人员:"王大力",编号:"RAD-AREA-002",文件名称:"20260117_西帮1区.las",圈定位置:"X:2100.20, Y:1150.45, M:1326.56, N:1256.09......",扫描区域:"西帮"}],virtual_point:[{类型:"虚拟点",编号:"VP-001",设置日期:"2026-01-21T09:30",所属雷达:"RAD-AREA-001",设置位置:"X:500, Y:600, Z:200",所属区域:"北帮",所属监测线:"X1-1",状态:"正常"},{类型:"虚拟面域",编号:"VA-205",设置日期:"2026-01-22T14:15",所属雷达:"RAD-AREA-002",设置位置:"X:1200, Y:800 (覆盖范围)",所属区域:"南帮",所属监测线:"无",状态:"正常"}],satellite:[{ID:"SAT-001",数据名称:"区域A遥感影像",数据编号:"SAT-2023-001",下载时间:"2023-06-10T09:30","数据大小(MB)":"256.5",卫星类型:"高分七号"},{ID:"SAT-002",数据名称:"区域B地形数据",数据编号:"SAT-2023-002",下载时间:"2023-06-15T14:20","数据大小(MB)":"420.3",卫星类型:"资源三号"}],map_info:[{ID:"MAP-001",数据名称:"区域A正射影像",数据编号:"MAP-2023-001",数据类型:"正射影像",采集时间:"2023-05-20T08:00","覆盖面积(km²)":"5.2"},{ID:"MAP-002",数据名称:"区域B倾斜摄影",数据编号:"MAP-2023-002",数据类型:"倾斜摄影",采集时间:"2023-05-25T10:15","覆盖面积(km²)":"3.8"}],permission:[{用户ID:"admin",用户名:"系统管理员",角色权限:"超级管理员",授权状态:"已授权"}]});class ee extends we.BaseComponent{extractStyles(){var m,w,_,C,A,z;const l=(m=this.props.conf)==null?void 0:m.options,s=((w=l==null?void 0:l.linkChannel)==null?void 0:w.value)||"gnss",r=((_=l==null?void 0:l.customChannel)==null?void 0:_.value)||"";return{bgColor:((C=l==null?void 0:l.bgColor)==null?void 0:C.value)||"#ffffff",textColor:((A=l==null?void 0:l.textColor)==null?void 0:A.value)||"#333333",fontSize:((z=l==null?void 0:l.fontSize)==null?void 0:z.value)||13,linkChannel:s==="custom"&&r?r:s}}onLinkEvent(l){}}const x=new ee(d,"dataManagement");x.setupLifecycle();const D=x.getStyle(),i=e.ref("partition"),y=e.computed(()=>L[i.value]),le=e.computed(()=>y.value.columns),k=e.ref({}),p=e.reactive({}),f=e.ref(null),V=e.ref([]),g=e.ref(1),T=10,U=e.ref(null),h=e.ref(!1),u=e.ref("add"),B=e.ref(-1),n=e.reactive({}),N=e.ref(!1),S=e.ref(!1),te=e.computed(()=>u.value==="add"?"新增"+y.value.title:u.value==="edit"?"编辑数据":"详情查看"),ae=e.computed(()=>{var a,l;return(l=(a=f.value)!=null?a:k.value[i.value])!=null?l:[]}),q=e.computed(()=>ae.value),P=e.computed(()=>{const a=(g.value-1)*T;return q.value.slice(a,a+T)}),oe=a=>c.includes(a),R=()=>{const a=new Date,l=a.getTimezoneOffset()*6e4;return new Date(a.getTime()-l).toISOString().slice(0,16)},ne=(a,l)=>a?c.includes(l)?a.replace("T"," "):a:"--",se=a=>["圈定位置","安装位置","设置位置"].includes(a)?200:["文件名称","数据名称"].includes(a)||c.includes(a)?160:110,re=a=>["坐标","安装位置","圈定位置","设置位置"].includes(a)?`请输入${a},每个坐标用,隔开`:`请输入${a}`,Y=a=>{const l=P.value[a];return k.value[i.value].indexOf(l)},ie=a=>{i.value=a,V.value=[],f.value=null,g.value=1,Object.keys(p).forEach(l=>delete p[l])},ue=()=>{const a=k.value[i.value];f.value=a.filter(l=>Object.keys(p).every(s=>{const r=p[s];return!r||r==="全部"?!0:l[s]?String(l[s]).toLowerCase().includes(r.toLowerCase()):!1})),V.value=[],g.value=1},de=()=>{Object.keys(p).forEach(a=>delete p[a]),f.value=null,g.value=1},ce=a=>{V.value=a},me=()=>{if(!V.value.length)return;const a=new Set(V.value);k.value[i.value]=k.value[i.value].filter(l=>!a.has(l)),f.value=null,V.value=[]},I=a=>{if(Object.keys(n).forEach(l=>delete n[l]),a!==void 0&&a>=0){const l=k.value[i.value][a];y.value.addFields.forEach(s=>{n[s]=l[s]||""})}else y.value.addFields.forEach(l=>{n[l]=c.includes(l)?R():""})},pe=()=>{u.value="add",B.value=-1,I(),N.value=!1,S.value=!1,h.value=!0},ve=a=>{u.value="edit",B.value=a,I(a),j(),h.value=!0},ke=a=>{u.value="view",B.value=a,I(a),j(),h.value=!0},j=()=>{i.value==="device"&&X(n.类型),i.value==="virtual_point"&&$(n.类型)},X=a=>{N.value=!!a&&a.includes("雷达"),N.value&&(n.所属监测线="")},$=a=>{S.value=a==="虚拟面域",S.value&&(n.所属监测线="无")},ye=()=>{const a={};y.value.addFields.forEach(l=>{a[l]=n[l]||""}),B.value>=0?k.value[i.value][B.value]=a:k.value[i.value].push(a),f.value=null,h.value=!1},Ve=()=>{var a;(a=U.value)==null||a.click()},be=()=>{var a;(a=U.value)==null||a.click()},fe=a=>{var r;if(!((r=a.target.files)==null?void 0:r[0]))return;const s={};y.value.addFields.forEach(m=>{s[m]=c.includes(m)?R():"导入-"+m}),k.value[i.value].push(s),f.value=null,a.target.value=""};return e.onMounted(()=>{x.init(),d.mode!=="edit"&&(k.value=K())}),e.onUnmounted(()=>{x.cleanup()}),(a,l)=>{const s=b.ElButton,r=b.ElOption,m=b.ElSelect,w=b.ElDatePicker,_=b.ElInput,C=b.ElTableColumn,A=b.ElTable,z=b.ElPagination,ge=b.ElDialog;return e.openBlock(),e.createElementBlock("div",{class:"data-mgmt",style:e.normalizeStyle({backgroundColor:e.unref(D).bgColor,color:e.unref(D).textColor,fontSize:e.unref(D).fontSize+"px"})},[d.mode==="edit"?(e.openBlock(),e.createElementBlock("div",xe,[...l[3]||(l[3]=[e.createElementVNode("div",{class:"placeholder-icon"},"📋",-1),e.createElementVNode("div",{class:"placeholder-title"},"基础数据管理",-1),e.createElementVNode("div",{class:"placeholder-desc"},"包含7个管理模块:分区 / 设备 / 雷达扫描区域 / 雷达虚拟设置 / 卫星数据 / 地图信息 / 权限",-1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",De,[e.createElementVNode("div",Te,[l[4]||(l[4]=e.createTextVNode("基础数据管理 / ",-1)),e.createElementVNode("span",Se,e.toDisplayString(y.value.title),1)]),e.createElementVNode("div",Ae,[e.createVNode(s,{size:"small",type:"primary",onClick:pe},{default:e.withCtx(()=>[...l[5]||(l[5]=[e.createTextVNode("+ 新增",-1)])]),_:1}),e.createVNode(s,{size:"small",type:"success",onClick:Ve},{default:e.withCtx(()=>[...l[6]||(l[6]=[e.createTextVNode("📥 导入数据",-1)])]),_:1}),e.createVNode(s,{size:"small",type:"danger",disabled:!V.value.length,onClick:me},{default:e.withCtx(()=>[e.createTextVNode(" 🗑️ 批量删除"+e.toDisplayString(V.value.length?` (${V.value.length})`:""),1)]),_:1},8,["disabled"]),e.createElementVNode("input",{ref_key:"importInput",ref:U,type:"file",style:{display:"none"},onChange:fe},null,544)])]),e.createElementVNode("div",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(J),t=>(e.openBlock(),e.createElementBlock("div",{key:t.key,class:e.normalizeClass(["tab-item",{active:i.value===t.key}]),onClick:o=>ie(t.key)},e.toDisplayString(t.title),11,Me))),128))]),e.createElementVNode("div",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.filters,t=>(e.openBlock(),e.createElementBlock("div",{key:t.key,class:"filter-group"},[e.createElementVNode("span",Ie,e.toDisplayString(t.label)+":",1),t.type==="select"?(e.openBlock(),e.createBlock(m,{key:0,modelValue:p[t.key],"onUpdate:modelValue":o=>p[t.key]=o,size:"small",placeholder:"全部",clearable:"",style:{width:"140px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((t.options||[]).filter(o=>o!=="全部"),o=>(e.openBlock(),e.createBlock(r,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):t.type==="datetime-local"?(e.openBlock(),e.createBlock(w,{key:1,modelValue:p[t.key],"onUpdate:modelValue":o=>p[t.key]=o,type:"datetime",size:"small",placeholder:"选择时间",style:{width:"200px"},"value-format":"YYYY-MM-DDTHH:mm"},null,8,["modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(_,{key:2,modelValue:p[t.key],"onUpdate:modelValue":o=>p[t.key]=o,size:"small",placeholder:"输入搜索...",style:{width:"140px"},clearable:""},null,8,["modelValue","onUpdate:modelValue"]))]))),128)),e.createVNode(s,{size:"small",type:"primary",onClick:ue},{default:e.withCtx(()=>[...l[7]||(l[7]=[e.createTextVNode("查询",-1)])]),_:1}),e.createVNode(s,{size:"small",onClick:de},{default:e.withCtx(()=>[...l[8]||(l[8]=[e.createTextVNode("重置",-1)])]),_:1})]),e.createElementVNode("div",Fe,[e.createVNode(A,{data:P.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},onSelectionChange:ce},{default:e.withCtx(()=>[e.createVNode(C,{type:"selection",width:"40"}),e.createVNode(C,{label:"序号",width:"60",align:"center"},{default:e.withCtx(({$index:t})=>[e.createTextVNode(e.toDisplayString((g.value-1)*T+t+1),1)]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(le.value,t=>(e.openBlock(),e.createBlock(C,{key:t,prop:t,label:t,"min-width":se(t),align:"center"},{default:e.withCtx(({row:o})=>[e.createTextVNode(e.toDisplayString(ne(o[t],t)),1)]),_:2},1032,["prop","label","min-width"]))),128)),e.createVNode(C,{label:"操作","min-width":"120",align:"center",fixed:"right"},{default:e.withCtx(({$index:t})=>[e.createVNode(s,{link:"",type:"primary",size:"small",onClick:o=>ve(Y(t))},{default:e.withCtx(()=>[...l[9]||(l[9]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"]),e.createVNode(s,{link:"",type:"primary",size:"small",onClick:o=>ke(Y(t))},{default:e.withCtx(()=>[...l[10]||(l[10]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]),e.createElementVNode("div",Oe,[e.createVNode(z,{small:"",layout:"prev, pager, next",total:q.value.length,"page-size":T,"current-page":g.value,"onUpdate:currentPage":l[0]||(l[0]=t=>g.value=t)},null,8,["total","current-page"])])]),e.createVNode(ge,{modelValue:h.value,"onUpdate:modelValue":l[2]||(l[2]=t=>h.value=t),title:te.value,width:"520px",top:"8vh","close-on-click-modal":!1,"destroy-on-close":"",style:e.normalizeStyle({fontSize:e.unref(D).fontSize+"px"}),class:"data-mgmt-dialog"},{footer:e.withCtx(()=>[e.createElementVNode("div",Pe,[u.value!=="view"?(e.openBlock(),e.createBlock(s,{key:0,size:"small",type:"success",onClick:be},{default:e.withCtx(()=>[...l[11]||(l[11]=[e.createTextVNode("导入数据",-1)])]),_:1})):e.createCommentVNode("",!0),l[14]||(l[14]=e.createElementVNode("span",{style:{flex:"1"}},null,-1)),e.createVNode(s,{size:"small",onClick:l[1]||(l[1]=t=>h.value=!1)},{default:e.withCtx(()=>[...l[12]||(l[12]=[e.createTextVNode("取消",-1)])]),_:1}),u.value!=="view"?(e.openBlock(),e.createBlock(s,{key:1,size:"small",type:"primary",onClick:ye},{default:e.withCtx(()=>[...l[13]||(l[13]=[e.createTextVNode("确定",-1)])]),_:1})):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.addFields,t=>(e.openBlock(),e.createElementBlock("div",{key:t,class:"form-item"},[e.createElementVNode("label",qe,e.toDisplayString(t),1),oe(t)?(e.openBlock(),e.createBlock(w,{key:0,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,type:"datetime",size:"small",disabled:u.value==="view",style:{width:"100%"},"value-format":"YYYY-MM-DDTHH:mm"},null,8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="device"&&t==="类型"?(e.openBlock(),e.createBlock(m,{key:1,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"},onChange:X},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(O,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="virtual_point"&&t==="类型"?(e.openBlock(),e.createBlock(m,{key:2,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"},onChange:$},{default:e.withCtx(()=>[e.createVNode(r,{label:"虚拟点",value:"虚拟点"}),e.createVNode(r,{label:"虚拟面域",value:"虚拟面域"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="virtual_point"&&t==="所属监测线"?(e.openBlock(),e.createBlock(m,{key:3,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view"||S.value,style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(r,{label:"无",value:"无"}),e.createVNode(r,{label:"X1-1",value:"X1-1"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="状态"||t==="授权状态"?(e.openBlock(),e.createBlock(m,{key:4,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==="状态"?["正常","离线"]:["已授权","未授权"],o=>(e.openBlock(),e.createBlock(r,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])):t==="所属区域"||t==="扫描区域"?(e.openBlock(),e.createBlock(m,{key:5,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(E,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="人员"?(e.openBlock(),e.createBlock(m,{key:6,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(M,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="角色权限"?(e.openBlock(),e.createBlock(m,{key:7,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(F,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="数据类型"?(e.openBlock(),e.createBlock(m,{key:8,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(r,{label:"正射影像",value:"正射影像"}),e.createVNode(r,{label:"倾斜摄影",value:"倾斜摄影"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="device"&&t==="所属监测线"?(e.openBlock(),e.createBlock(_,{key:9,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view"||N.value,placeholder:N.value?"雷达无需填写监测线":"请输入监测线",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","disabled","placeholder"])):(e.openBlock(),e.createBlock(_,{key:10,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",placeholder:re(t),style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","disabled","placeholder"]))]))),128))])]),_:1},8,["modelValue","title","style"])],64)),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),Qe=Ee._export_sfc(We,[["__scopeId","data-v-d5bd116e"]]);exports.default=Qe;
|
|
1
|
+
"use strict";var he=Object.defineProperty,Ce=Object.defineProperties;var _e=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var Be=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var H=(v,d,c)=>d in v?he(v,d,{enumerable:!0,configurable:!0,writable:!0,value:c}):v[d]=c,W=(v,d)=>{for(var c in d||(d={}))Be.call(d,c)&&H(v,c,d[c]);if(G)for(var c of G(d))Ne.call(d,c)&&H(v,c,d[c]);return v},Q=(v,d)=>Ce(v,_e(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/button/style/css");const e=require("vue");require("html2canvas");const we=require("./BaseComponent-CPat9pFl.cjs"),Ee=require("./index-D9ehIVda.cjs"),Z=require("./ele-lin-icon-Dke_1AmT.cjs"),xe={key:0,class:"edit-placeholder"},De={class:"mgmt-header"},Te={class:"breadcrumb"},Se={class:"crumb-active"},Ae={class:"header-actions"},ze={class:"mgmt-tabs"},Me=["onClick"],Ue={class:"mgmt-filter-bar"},Ie={class:"filter-label"},Fe={class:"table-area"},Oe={class:"pagination-bar"},Le={class:"modal-form"},qe={class:"form-label"},Pe={class:"dialog-footer"},Re={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"基础数据管理",NAME_EN:"Data Management",ORDER:14,PLATFORM:["pc","screen"]},Ye={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},fontSize:{value:13,type:"number",label:"字体大小",min:10,max:20},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},je=[],Xe=["object_id","name","fv","fvDeviceName"],$e=["mosaic"],Ge={useAlias:!1,multiObject:!1,source:"mosaic"},He={DEFAULT:Re,OPTIONS:Ye,DATA:je,PARAMS:Xe,SOURCE:$e,COMMON:Ge},We=e.defineComponent(Q(W({},He),{__name:"dataManagement",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(v){const d=v,c=["时间","安装日期","下载时间","采集时间","设置日期"],E=["北帮","南帮","东帮","西帮","中央区"],M=["陈晓晓","王大力","李工程师","张三"],F=["全部权限","仅数据查询权限","人工录入权限","基础数据管理权限"],O=["国产雷达","进口雷达","GNSS","锚索应力计","土压力计","水位计","流量计","裂缝计","震动计"],L={partition:{title:"分区管理",filters:[{label:"分区名称",key:"名称",type:"input"},{label:"操作人员",key:"人员",type:"select",options:["全部",...M]}],columns:["时间","人员","名称","坐标"],addFields:["时间","人员","名称","坐标"]},device:{title:"设备管理",filters:[{label:"设备编号",key:"编号",type:"input"},{label:"所属区域",key:"所属区域",type:"select",options:["全部",...E]},{label:"设备状态",key:"状态",type:"select",options:["全部","正常","离线"]},{label:"设备类型",key:"类型",type:"select",options:["全部",...O]}],columns:["类型","编号","型号","安装日期","厂商","安装位置","所属区域","所属监测线"],addFields:["类型","编号","型号","安装日期","厂商","安装位置","所属区域","所属监测线","状态"]},radar:{title:"雷达扫描区域管理",filters:[{label:"区域编号",key:"编号",type:"input"},{label:"操作人员",key:"人员",type:"select",options:["全部",...M]},{label:"扫描区域",key:"扫描区域",type:"select",options:["全部",...E]}],columns:["时间","人员","编号","文件名称","圈定位置","扫描区域"],addFields:["时间","人员","编号","文件名称","圈定位置","扫描区域"]},virtual_point:{title:"雷达虚拟设置管理",filters:[{label:"点位编号",key:"编号",type:"input"},{label:"所属区域",key:"所属区域",type:"select",options:["全部",...E]}],columns:["类型","编号","设置日期","所属雷达","设置位置","所属区域","所属监测线","状态"],addFields:["类型","编号","设置日期","所属雷达","设置位置","所属区域","所属监测线","状态"]},satellite:{title:"卫星数据管理",filters:[{label:"数据编号",key:"数据编号",type:"input"},{label:"卫星类型",key:"卫星类型",type:"input"}],columns:["ID","数据名称","数据编号","下载时间","数据大小(MB)","卫星类型"],addFields:["ID","数据名称","数据编号","下载时间","数据大小(MB)","卫星类型"]},map_info:{title:"地图信息管理",filters:[{label:"数据类型",key:"数据类型",type:"select",options:["全部","正射影像","倾斜摄影"]},{label:"采集时间",key:"采集时间",type:"datetime-local"}],columns:["ID","数据名称","数据编号","数据类型","采集时间","覆盖面积(km²)"],addFields:["ID","数据名称","数据编号","数据类型","采集时间","覆盖面积(km²)"]},permission:{title:"权限管理",filters:[{label:"账号名称",key:"用户名",type:"input"},{label:"角色权限",key:"角色权限",type:"select",options:["全部",...F]},{label:"授权状态",key:"授权状态",type:"select",options:["全部","已授权","未授权"]}],columns:["用户ID","用户名","角色权限","授权状态"],addFields:["用户ID","用户名","角色权限","授权状态"]}},J=Object.entries(L).map(([a,l])=>({key:a,title:l.title})),K=()=>({partition:[{时间:"2026-01-19T20:00",人员:"陈晓晓",名称:"北帮一区",坐标:"X:1200, Y:300"}],device:[{类型:"GNSS",编号:"G001",型号:"T9-Pro",安装日期:"2025-12-01T10:00",厂商:"中海达",安装位置:"E:103.5, N:30.5",所属区域:"南帮",所属监测线:"S1",状态:"正常"}],radar:[{时间:"2026-01-15T09:00",人员:"陈晓晓",编号:"RAD-AREA-001",文件名称:"20260115_东帮1区.las",圈定位置:"X:2450.55, Y:1300.12, M:1326.56, N:1256.09......",扫描区域:"东帮"},{时间:"2026-01-17T14:30",人员:"王大力",编号:"RAD-AREA-002",文件名称:"20260117_西帮1区.las",圈定位置:"X:2100.20, Y:1150.45, M:1326.56, N:1256.09......",扫描区域:"西帮"}],virtual_point:[{类型:"虚拟点",编号:"VP-001",设置日期:"2026-01-21T09:30",所属雷达:"RAD-AREA-001",设置位置:"X:500, Y:600, Z:200",所属区域:"北帮",所属监测线:"X1-1",状态:"正常"},{类型:"虚拟面域",编号:"VA-205",设置日期:"2026-01-22T14:15",所属雷达:"RAD-AREA-002",设置位置:"X:1200, Y:800 (覆盖范围)",所属区域:"南帮",所属监测线:"无",状态:"正常"}],satellite:[{ID:"SAT-001",数据名称:"区域A遥感影像",数据编号:"SAT-2023-001",下载时间:"2023-06-10T09:30","数据大小(MB)":"256.5",卫星类型:"高分七号"},{ID:"SAT-002",数据名称:"区域B地形数据",数据编号:"SAT-2023-002",下载时间:"2023-06-15T14:20","数据大小(MB)":"420.3",卫星类型:"资源三号"}],map_info:[{ID:"MAP-001",数据名称:"区域A正射影像",数据编号:"MAP-2023-001",数据类型:"正射影像",采集时间:"2023-05-20T08:00","覆盖面积(km²)":"5.2"},{ID:"MAP-002",数据名称:"区域B倾斜摄影",数据编号:"MAP-2023-002",数据类型:"倾斜摄影",采集时间:"2023-05-25T10:15","覆盖面积(km²)":"3.8"}],permission:[{用户ID:"admin",用户名:"系统管理员",角色权限:"超级管理员",授权状态:"已授权"}]});class ee extends we.BaseComponent{extractStyles(){var m,w,_,C,A,z;const l=(m=this.props.conf)==null?void 0:m.options,s=((w=l==null?void 0:l.linkChannel)==null?void 0:w.value)||"gnss",r=((_=l==null?void 0:l.customChannel)==null?void 0:_.value)||"";return{bgColor:((C=l==null?void 0:l.bgColor)==null?void 0:C.value)||"#ffffff",textColor:((A=l==null?void 0:l.textColor)==null?void 0:A.value)||"#333333",fontSize:((z=l==null?void 0:l.fontSize)==null?void 0:z.value)||13,linkChannel:s==="custom"&&r?r:s}}onLinkEvent(l){}}const x=new ee(d,"dataManagement");x.setupLifecycle();const D=x.getStyle(),i=e.ref("partition"),y=e.computed(()=>L[i.value]),le=e.computed(()=>y.value.columns),k=e.ref({}),p=e.reactive({}),f=e.ref(null),V=e.ref([]),g=e.ref(1),T=10,U=e.ref(null),h=e.ref(!1),u=e.ref("add"),B=e.ref(-1),n=e.reactive({}),N=e.ref(!1),S=e.ref(!1),te=e.computed(()=>u.value==="add"?"新增"+y.value.title:u.value==="edit"?"编辑数据":"详情查看"),ae=e.computed(()=>{var a,l;return(l=(a=f.value)!=null?a:k.value[i.value])!=null?l:[]}),q=e.computed(()=>ae.value),P=e.computed(()=>{const a=(g.value-1)*T;return q.value.slice(a,a+T)}),oe=a=>c.includes(a),R=()=>{const a=new Date,l=a.getTimezoneOffset()*6e4;return new Date(a.getTime()-l).toISOString().slice(0,16)},ne=(a,l)=>a?c.includes(l)?a.replace("T"," "):a:"--",se=a=>["圈定位置","安装位置","设置位置"].includes(a)?200:["文件名称","数据名称"].includes(a)||c.includes(a)?160:110,re=a=>["坐标","安装位置","圈定位置","设置位置"].includes(a)?`请输入${a},每个坐标用,隔开`:`请输入${a}`,Y=a=>{const l=P.value[a];return k.value[i.value].indexOf(l)},ie=a=>{i.value=a,V.value=[],f.value=null,g.value=1,Object.keys(p).forEach(l=>delete p[l])},ue=()=>{const a=k.value[i.value];f.value=a.filter(l=>Object.keys(p).every(s=>{const r=p[s];return!r||r==="全部"?!0:l[s]?String(l[s]).toLowerCase().includes(r.toLowerCase()):!1})),V.value=[],g.value=1},de=()=>{Object.keys(p).forEach(a=>delete p[a]),f.value=null,g.value=1},ce=a=>{V.value=a},me=()=>{if(!V.value.length)return;const a=new Set(V.value);k.value[i.value]=k.value[i.value].filter(l=>!a.has(l)),f.value=null,V.value=[]},I=a=>{if(Object.keys(n).forEach(l=>delete n[l]),a!==void 0&&a>=0){const l=k.value[i.value][a];y.value.addFields.forEach(s=>{n[s]=l[s]||""})}else y.value.addFields.forEach(l=>{n[l]=c.includes(l)?R():""})},pe=()=>{u.value="add",B.value=-1,I(),N.value=!1,S.value=!1,h.value=!0},ve=a=>{u.value="edit",B.value=a,I(a),j(),h.value=!0},ke=a=>{u.value="view",B.value=a,I(a),j(),h.value=!0},j=()=>{i.value==="device"&&X(n.类型),i.value==="virtual_point"&&$(n.类型)},X=a=>{N.value=!!a&&a.includes("雷达"),N.value&&(n.所属监测线="")},$=a=>{S.value=a==="虚拟面域",S.value&&(n.所属监测线="无")},ye=()=>{const a={};y.value.addFields.forEach(l=>{a[l]=n[l]||""}),B.value>=0?k.value[i.value][B.value]=a:k.value[i.value].push(a),f.value=null,h.value=!1},Ve=()=>{var a;(a=U.value)==null||a.click()},be=()=>{var a;(a=U.value)==null||a.click()},fe=a=>{var r;if(!((r=a.target.files)==null?void 0:r[0]))return;const s={};y.value.addFields.forEach(m=>{s[m]=c.includes(m)?R():"导入-"+m}),k.value[i.value].push(s),f.value=null,a.target.value=""};return e.onMounted(()=>{x.init(),d.mode!=="edit"&&(k.value=K())}),e.onUnmounted(()=>{x.cleanup()}),(a,l)=>{const s=b.ElButton,r=b.ElOption,m=b.ElSelect,w=b.ElDatePicker,_=b.ElInput,C=b.ElTableColumn,A=b.ElTable,z=b.ElPagination,ge=b.ElDialog;return e.openBlock(),e.createElementBlock("div",{class:"data-mgmt",style:e.normalizeStyle({backgroundColor:e.unref(D).bgColor,color:e.unref(D).textColor,fontSize:e.unref(D).fontSize+"px"})},[d.mode==="edit"?(e.openBlock(),e.createElementBlock("div",xe,[...l[3]||(l[3]=[e.createElementVNode("div",{class:"placeholder-icon"},"📋",-1),e.createElementVNode("div",{class:"placeholder-title"},"基础数据管理",-1),e.createElementVNode("div",{class:"placeholder-desc"},"包含7个管理模块:分区 / 设备 / 雷达扫描区域 / 雷达虚拟设置 / 卫星数据 / 地图信息 / 权限",-1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",De,[e.createElementVNode("div",Te,[l[4]||(l[4]=e.createTextVNode("基础数据管理 / ",-1)),e.createElementVNode("span",Se,e.toDisplayString(y.value.title),1)]),e.createElementVNode("div",Ae,[e.createVNode(s,{size:"small",type:"primary",onClick:pe},{default:e.withCtx(()=>[...l[5]||(l[5]=[e.createTextVNode("+ 新增",-1)])]),_:1}),e.createVNode(s,{size:"small",type:"success",onClick:Ve},{default:e.withCtx(()=>[...l[6]||(l[6]=[e.createTextVNode("📥 导入数据",-1)])]),_:1}),e.createVNode(s,{size:"small",type:"danger",disabled:!V.value.length,onClick:me},{default:e.withCtx(()=>[e.createTextVNode(" 🗑️ 批量删除"+e.toDisplayString(V.value.length?` (${V.value.length})`:""),1)]),_:1},8,["disabled"]),e.createElementVNode("input",{ref_key:"importInput",ref:U,type:"file",style:{display:"none"},onChange:fe},null,544)])]),e.createElementVNode("div",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(J),t=>(e.openBlock(),e.createElementBlock("div",{key:t.key,class:e.normalizeClass(["tab-item",{active:i.value===t.key}]),onClick:o=>ie(t.key)},e.toDisplayString(t.title),11,Me))),128))]),e.createElementVNode("div",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.filters,t=>(e.openBlock(),e.createElementBlock("div",{key:t.key,class:"filter-group"},[e.createElementVNode("span",Ie,e.toDisplayString(t.label)+":",1),t.type==="select"?(e.openBlock(),e.createBlock(m,{key:0,modelValue:p[t.key],"onUpdate:modelValue":o=>p[t.key]=o,size:"small",placeholder:"全部",clearable:"",style:{width:"140px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((t.options||[]).filter(o=>o!=="全部"),o=>(e.openBlock(),e.createBlock(r,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):t.type==="datetime-local"?(e.openBlock(),e.createBlock(w,{key:1,modelValue:p[t.key],"onUpdate:modelValue":o=>p[t.key]=o,type:"datetime",size:"small",placeholder:"选择时间",style:{width:"200px"},"value-format":"YYYY-MM-DDTHH:mm"},null,8,["modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(_,{key:2,modelValue:p[t.key],"onUpdate:modelValue":o=>p[t.key]=o,size:"small",placeholder:"输入搜索...",style:{width:"140px"},clearable:""},null,8,["modelValue","onUpdate:modelValue"]))]))),128)),e.createVNode(s,{size:"small",type:"primary",onClick:ue},{default:e.withCtx(()=>[...l[7]||(l[7]=[e.createTextVNode("查询",-1)])]),_:1}),e.createVNode(s,{size:"small",onClick:de},{default:e.withCtx(()=>[...l[8]||(l[8]=[e.createTextVNode("重置",-1)])]),_:1})]),e.createElementVNode("div",Fe,[e.createVNode(A,{data:P.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},onSelectionChange:ce},{default:e.withCtx(()=>[e.createVNode(C,{type:"selection",width:"40"}),e.createVNode(C,{label:"序号",width:"60",align:"center"},{default:e.withCtx(({$index:t})=>[e.createTextVNode(e.toDisplayString((g.value-1)*T+t+1),1)]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(le.value,t=>(e.openBlock(),e.createBlock(C,{key:t,prop:t,label:t,"min-width":se(t),align:"center"},{default:e.withCtx(({row:o})=>[e.createTextVNode(e.toDisplayString(ne(o[t],t)),1)]),_:2},1032,["prop","label","min-width"]))),128)),e.createVNode(C,{label:"操作","min-width":"120",align:"center",fixed:"right"},{default:e.withCtx(({$index:t})=>[e.createVNode(s,{link:"",type:"primary",size:"small",onClick:o=>ve(Y(t))},{default:e.withCtx(()=>[...l[9]||(l[9]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"]),e.createVNode(s,{link:"",type:"primary",size:"small",onClick:o=>ke(Y(t))},{default:e.withCtx(()=>[...l[10]||(l[10]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]),e.createElementVNode("div",Oe,[e.createVNode(z,{small:"",layout:"prev, pager, next",total:q.value.length,"page-size":T,"current-page":g.value,"onUpdate:currentPage":l[0]||(l[0]=t=>g.value=t)},null,8,["total","current-page"])])]),e.createVNode(ge,{modelValue:h.value,"onUpdate:modelValue":l[2]||(l[2]=t=>h.value=t),title:te.value,width:"520px",top:"8vh","close-on-click-modal":!1,"destroy-on-close":"",style:e.normalizeStyle({fontSize:e.unref(D).fontSize+"px"}),class:"data-mgmt-dialog"},{footer:e.withCtx(()=>[e.createElementVNode("div",Pe,[u.value!=="view"?(e.openBlock(),e.createBlock(s,{key:0,size:"small",type:"success",onClick:be},{default:e.withCtx(()=>[...l[11]||(l[11]=[e.createTextVNode("导入数据",-1)])]),_:1})):e.createCommentVNode("",!0),l[14]||(l[14]=e.createElementVNode("span",{style:{flex:"1"}},null,-1)),e.createVNode(s,{size:"small",onClick:l[1]||(l[1]=t=>h.value=!1)},{default:e.withCtx(()=>[...l[12]||(l[12]=[e.createTextVNode("取消",-1)])]),_:1}),u.value!=="view"?(e.openBlock(),e.createBlock(s,{key:1,size:"small",type:"primary",onClick:ye},{default:e.withCtx(()=>[...l[13]||(l[13]=[e.createTextVNode("确定",-1)])]),_:1})):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.addFields,t=>(e.openBlock(),e.createElementBlock("div",{key:t,class:"form-item"},[e.createElementVNode("label",qe,e.toDisplayString(t),1),oe(t)?(e.openBlock(),e.createBlock(w,{key:0,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,type:"datetime",size:"small",disabled:u.value==="view",style:{width:"100%"},"value-format":"YYYY-MM-DDTHH:mm"},null,8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="device"&&t==="类型"?(e.openBlock(),e.createBlock(m,{key:1,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"},onChange:X},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(O,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="virtual_point"&&t==="类型"?(e.openBlock(),e.createBlock(m,{key:2,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"},onChange:$},{default:e.withCtx(()=>[e.createVNode(r,{label:"虚拟点",value:"虚拟点"}),e.createVNode(r,{label:"虚拟面域",value:"虚拟面域"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="virtual_point"&&t==="所属监测线"?(e.openBlock(),e.createBlock(m,{key:3,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view"||S.value,style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(r,{label:"无",value:"无"}),e.createVNode(r,{label:"X1-1",value:"X1-1"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="状态"||t==="授权状态"?(e.openBlock(),e.createBlock(m,{key:4,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==="状态"?["正常","离线"]:["已授权","未授权"],o=>(e.openBlock(),e.createBlock(r,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])):t==="所属区域"||t==="扫描区域"?(e.openBlock(),e.createBlock(m,{key:5,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(E,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="人员"?(e.openBlock(),e.createBlock(m,{key:6,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(M,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="角色权限"?(e.openBlock(),e.createBlock(m,{key:7,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(F,o=>e.createVNode(r,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):t==="数据类型"?(e.openBlock(),e.createBlock(m,{key:8,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(r,{label:"正射影像",value:"正射影像"}),e.createVNode(r,{label:"倾斜摄影",value:"倾斜摄影"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])):i.value==="device"&&t==="所属监测线"?(e.openBlock(),e.createBlock(_,{key:9,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view"||N.value,placeholder:N.value?"雷达无需填写监测线":"请输入监测线",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","disabled","placeholder"])):(e.openBlock(),e.createBlock(_,{key:10,modelValue:n[t],"onUpdate:modelValue":o=>n[t]=o,size:"small",disabled:u.value==="view",placeholder:re(t),style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","disabled","placeholder"]))]))),128))])]),_:1},8,["modelValue","title","style"])],64)),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),Qe=Ee._export_sfc(We,[["__scopeId","data-v-d5bd116e"]]);exports.default=Qe;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var De=Object.defineProperty,Be=Object.defineProperties;var Ne=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var Ve=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;var Z=(k,d,b)=>d in k?De(k,d,{enumerable:!0,configurable:!0,writable:!0,value:b}):k[d]=b,S=(k,d)=>{for(var b in d||(d={}))Ve.call(d,b)&&Z(k,b,d[b]);if(X)for(var b of X(d))Ee.call(d,b)&&Z(k,b,d[b]);return k},I=(k,d)=>Be(k,Ne(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue");require("html2canvas");const Ie=require("./BaseComponent-9njJjeix.cjs"),N=require("./index-Bo49zvKb.cjs"),ee=require("./ele-glbModel-icon-ByACDCrv.cjs"),B=require("@element-plus/icons-vue"),Ae={class:"report-header"},je={class:"header-left"},Te={class:"header-title"},ze={key:0,class:"link-channel-badge"},Fe={class:"badge-text"},qe={class:"header-right"},Le={key:0,class:"frequency-select"},Me={key:0,class:"report-toolbar"},Oe={key:0,class:"search-area"},Pe={class:"filter-label"},Ue={key:1,class:"action-area"},We={class:"table-area"},Ye={key:1,class:"native-table"},$e={key:0,style:{width:"60px"}},Ge=["onClick"],He={key:0},Ke=["onClick"],Je={key:1,class:"pagination-area"},Qe={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"数据报表",NAME_EN:"Data Report",ORDER:13,PLATFORM:["pc","screen"]},Xe={title:{value:"数据报表",type:"string",label:"component.dataReport.title"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},headerBgColor:{value:"#f5f5f5",type:"color",label:"component.dataReport.headerBgColor"},showFrequency:{value:!1,type:"checkbox",label:"component.dataReport.showFrequency"},frequencyOptions:{value:[{label:"按小时",value:"hour"},{label:"按天",value:"day"},{label:"按周",value:"week"},{label:"按月",value:"month"}],type:"frequencyOptions",label:"component.dataReport.frequencyOptions"},showExport:{value:!0,type:"checkbox",label:"component.dataReport.showExport"},exportLabel:{value:"导出分析报表(Excel)",type:"string",label:"component.dataReport.exportLabel"},showSearch:{value:!1,type:"checkbox",label:"component.dataReport.showSearch"},searchFilters:{value:[],type:"searchFilters",label:"component.dataReport.searchFilters"},showActions:{value:!0,type:"checkbox",label:"component.dataReport.showActions"},actions:{value:["add","batchDelete","deleteAll"],type:"actions",label:"component.dataReport.actions"},rowActions:{value:["edit","view","delete"],type:"rowActions",label:"component.dataReport.rowActions"},actionColumnWidth:{value:150,type:"number",label:"component.dataReport.actionColumnWidth"},columns:{value:[{key:"time",label:"时间",width:"180px"},{key:"area",label:"区域",width:"100px"},{key:"deviceId",label:"编号",width:"120px"},{key:"value",label:"数值",width:"100px"}],type:"columns",label:"component.dataReport.columns"},showSelection:{value:!0,type:"checkbox",label:"component.dataReport.showSelection"},showSerialNumber:{value:!0,type:"checkbox",label:"component.dataReport.showSerialNumber"},alertLevels:{value:[{name:"正常",minValue:0,maxValue:5,color:"#52c41a"},{name:"二级告警 (警告)",minValue:5,maxValue:10,color:"#faad14"},{name:"一级告警 (危险)",minValue:10,maxValue:999,color:"#ff4d4f"}],type:"alertLevels",label:"component.dataReport.alertLevels"},tableMode:{value:"el-table",type:"select",label:"component.dataReport.tableMode",options:[{label:"Element Table",value:"el-table"},{label:"原生表格",value:"native-table"}]},showPagination:{value:!0,type:"checkbox",label:"component.dataReport.showPagination"},pageSize:{value:10,type:"number",label:"component.dataReport.pageSize",min:5,max:100},linkChannel:{value:"gnss",type:"select",label:"component.linkChannel",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"设备联动",value:"device"},{label:"告警联动",value:"alarm"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Ze=[{name:"WATER105",fv:"cumulativePrecipitation",object_id:""}],et=["name","fv","object_id"],tt=["mosaic","statistics","statisticsRealtime"],lt={useAlias:!1,multiObject:!1,source:"mosaic"},at={DEFAULT:Qe,OPTIONS:Xe,DATA:Ze,PARAMS:et,SOURCE:tt,COMMON:lt},ot=e.defineComponent(I(S({},at),{__name:"dataReport",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(k){e.useCssVars(l=>({v039d5518:e.unref(o).headerBgColor,v61417bfd:e.unref(o).textColor}));const d=k;class b extends Ie.BaseComponent{constructor(){super(...arguments),this.tableData=[]}getTableDataArray(){return this.tableData.length>0?this.tableData:this.getMockData()}setTableDataArray(t){this.tableData=t}addRow(t){const a=this.processRowData(t);this.tableData.push(a)}deleteRow(t){t>=0&&t<this.tableData.length&&this.tableData.splice(t,1)}deleteRowByCondition(t){this.tableData=this.tableData.filter(a=>!t(a))}updateRow(t,a){if(t>=0&&t<this.tableData.length){const n=S(S({},this.tableData[t]),a);this.tableData[t]=this.processRowData(n)}}extractStyles(){var c,u,p,f,w,r,h,i,_,q,L,M,O,P,U,W,Y,$,G,H,K,J,Q;const{options:t}=this.props.conf,a=((c=t==null?void 0:t.linkChannel)==null?void 0:c.value)||"gnss",n=((u=t==null?void 0:t.customChannel)==null?void 0:u.value)||"",s=a==="custom"&&n?n:a;return{title:((p=t==null?void 0:t.title)==null?void 0:p.value)||"数据报表",bgColor:((f=t==null?void 0:t.bgColor)==null?void 0:f.value)||"#ffffff",textColor:((w=t==null?void 0:t.textColor)==null?void 0:w.value)||"#333333",headerBgColor:((r=t==null?void 0:t.headerBgColor)==null?void 0:r.value)||"#f5f5f5",showFrequency:((h=t==null?void 0:t.showFrequency)==null?void 0:h.value)||!1,frequencyOptions:((i=t==null?void 0:t.frequencyOptions)==null?void 0:i.value)||[],showExport:((_=t==null?void 0:t.showExport)==null?void 0:_.value)!==!1,exportLabel:((q=t==null?void 0:t.exportLabel)==null?void 0:q.value)||"导出分析报表(Excel)",showSearch:((L=t==null?void 0:t.showSearch)==null?void 0:L.value)||!1,searchFilters:((M=t==null?void 0:t.searchFilters)==null?void 0:M.value)||[],showActions:((O=t==null?void 0:t.showActions)==null?void 0:O.value)!==!1,actions:((P=t==null?void 0:t.actions)==null?void 0:P.value)||["add","batchDelete","deleteAll"],rowActions:((U=t==null?void 0:t.rowActions)==null?void 0:U.value)||["edit","view","delete"],actionColumnWidth:((W=t==null?void 0:t.actionColumnWidth)==null?void 0:W.value)||150,columns:((Y=t==null?void 0:t.columns)==null?void 0:Y.value)||[],showSelection:(($=t==null?void 0:t.showSelection)==null?void 0:$.value)!==!1,showSerialNumber:((G=t==null?void 0:t.showSerialNumber)==null?void 0:G.value)!==!1,showPagination:((H=t==null?void 0:t.showPagination)==null?void 0:H.value)!==!1,pageSize:((K=t==null?void 0:t.pageSize)==null?void 0:K.value)||10,alertLevels:((J=t==null?void 0:t.alertLevels)==null?void 0:J.value)||[],tableMode:((Q=t==null?void 0:t.tableMode)==null?void 0:Q.value)||"el-table",linkChannel:s}}getMockData(){const t=[],a=new Date,n=this.Style.value.columns||[];if(!n||n.length===0)return[];if(n.some(c=>c&&c.colorRules&&c.colorRules.length>0))[{area:"北帮",deviceId:"GNSS55",object_id:"1",elevation:"1150.0",speed:9.85,threshold:8},{area:"北帮",deviceId:"GNSS110",object_id:"2",elevation:"1197.8",speed:8.1,threshold:8},{area:"东帮",deviceId:"GNSS33",object_id:"3",elevation:"1250.0",speed:5.85,threshold:5},{area:"东帮",deviceId:"GNSS143",object_id:"4",elevation:"1150.1",speed:5.85,threshold:5},{area:"南帮",deviceId:"GNSS66",object_id:"5",elevation:"1198.7",speed:4.58,threshold:4}].forEach(u=>{const p=S({},u);n.forEach(f=>{f&&f.key&&!p[f.key]&&f.key!=="area"&&f.key!=="deviceId"&&(p[f.key]=u[f.key]||"--")}),t.push(this.processRowData(p))});else for(let c=23;c>=0;c--){const u=new Date(a.getTime()-c*60*60*1e3),p={time:N.dayjs(u).format("YYYY/MM/DD HH:mm:ss"),area:"北帮",deviceId:"WATER105",cumulativePrecipitation:(1800+Math.random()*20).toFixed(2),realtimePrecipitation:(Math.random()*.5).toFixed(2)};t.push(this.processRowData(p))}return t}setHistoryData(t){t!=null&&t.history&&Array.isArray(t.history)&&t.history.length>0?(this.tableData=t.history.map(a=>this.processRowData(a)),typeof this.onDataUpdate=="function"&&this.onDataUpdate(this.tableData)):(this.tableData=this.getMockData(),typeof this.onDataUpdate=="function"&&this.onDataUpdate(this.tableData))}processRowData(t){var c;const a={},n=this.Style.value.columns||[];n&&n.length>0&&n.forEach(u=>{a[u.key]=t[u.key]||t[u.fv]||"--"});const s=n.find(u=>u.colorRules&&u.colorRules.length>0);if(s){const u=parseFloat(t[s.key]||t[s.fv]||0),p=s.colorRules||[],f=this.Style.value.alertLevels||[];let w=0,r="正常",h="#52c41a";for(let i=0;i<p.length;i++){const _=p[i];if(u>=_.min&&u<=_.max){w=i,r=((c=f[i])==null?void 0:c.name)||`${p.length-i}级告警`,h=_.color;break}}a.isAlert=w>0,a.alertLevel=w,a.alertText=r,a.alertColor=h}return a.object_id=t.object_id||t.objectId||t.deviceId||"",a.deviceId=t.deviceId||t.device_id||"",a}setSocketData(t){if(!t)return;const a={time:N.dayjs().format("YYYY/MM/DD HH:mm:ss")};(this.Style.value.columns||[]).forEach(c=>{const u=this.extractDataValue(t,c.fv);a[c.key]=u!=null?u:"--"});const s=this.processRowData(a);this.tableData.unshift(s),this.tableData.length>1e3&&(this.tableData=this.tableData.slice(0,1e3)),typeof this.onDataUpdate=="function"&&this.onDataUpdate(this.tableData)}getTableData(){return this.getTableDataArray()}onLinkEvent(t){xe(t)}}const m=new b(d,"dataReport");m.onDataUpdate=l=>{v.value=[...l]},m.setupLifecycle();const o=m.getStyle(),A=e.ref("hour"),te=e.computed(()=>o.value.frequencyOptions||[]),g=e.ref({}),v=e.ref([]),le=()=>{try{const l=m.getTableData();v.value=[...l],m.setTableDataArray(v.value)}catch(l){console.error("[dataReport] 获取表格数据失败:",l),v.value=[]}},V=e.computed(()=>{let l=[...v.value];return o.value.showSearch&&Object.keys(g.value).length>0&&(l=l.filter(t=>Object.keys(g.value).every(a=>{const n=g.value[a];return n?String(t[a]||"").toLowerCase().includes(String(n).toLowerCase()):!0}))),l}),y=e.ref(1),x=e.computed(()=>o.value.pageSize||10),ae=e.computed(()=>V.value.length),D=e.computed(()=>{if(!o.value.showPagination)return V.value;const l=(y.value-1)*x.value,t=l+x.value;return V.value.slice(l,t)}),C=e.ref([]),oe=e.computed(()=>({backgroundColor:o.value.bgColor,color:o.value.textColor})),ne=e.computed(()=>o.value.showSearch||o.value.showActions),re=l=>{console.log("[dataReport] 显示频率变化:",l)},ce=()=>{console.log("[dataReport] 导出数据"),alert("导出功能待实现")},se=()=>{y.value=1,console.log("[dataReport] 搜索:",g.value)},ie=()=>{g.value={},y.value=1},ue=()=>{console.log("[dataReport] 新增");const l=o.value.columns||[],t={};l.forEach(a=>{a.key==="time"?t[a.key]=N.dayjs().format("YYYY/MM/DD HH:mm:ss"):a.key==="area"?t[a.key]="北帮":a.key==="deviceId"?t[a.key]="NEW001":t[a.key]="--"}),m.addRow(t),v.value=[...m.getTableDataArray()],y.value=1},de=()=>{console.log("[dataReport] 导入数据")},me=()=>{if(C.value.length===0||!confirm(`确定要删除选中的 ${C.value.length} 条记录吗?`))return;console.log("[dataReport] 批量删除:",C.value);const t=C.value.map(a=>a.object_id||a.objectId||a.id||a);v.value=v.value.filter(a=>{const n=a.object_id||a.objectId||a.id;return!t.some(s=>{if(typeof s=="object"){const c=s.object_id||s.objectId||s.id;return c&&n&&String(c)===String(n)}return n&&String(s)===String(n)})}),m.setTableDataArray([...v.value]),C.value=[],y.value=1},pe=()=>{confirm("确定要删除全部记录吗?此操作不可恢复!")&&(console.log("[dataReport] 全部删除"),v.value=[],m.setTableDataArray([]),C.value=[],y.value=1)},he=l=>{console.log("[dataReport] 编辑:",l);const t=v.value.findIndex(n=>{const s=n.object_id||n.objectId||n.id,c=l.object_id||l.objectId||l.id;return s===c});if(t===-1){console.warn("[dataReport] 未找到要编辑的行");return}const a=o.value.columns||[];if(a.length>0){const n=a[0],s=prompt(`编辑 ${n.label}:`,l[n.key]);if(s!==null){const c=I(S({},l),{[n.key]:s});m.updateRow(t,c),v.value=[...m.getTableDataArray()]}}},ve=l=>{console.log("[dataReport] 查看:",l);const t=o.value.columns||[];let a=`行详情:
|
|
1
|
+
"use strict";var De=Object.defineProperty,Be=Object.defineProperties;var Ne=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var Ve=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;var Z=(k,d,b)=>d in k?De(k,d,{enumerable:!0,configurable:!0,writable:!0,value:b}):k[d]=b,S=(k,d)=>{for(var b in d||(d={}))Ve.call(d,b)&&Z(k,b,d[b]);if(X)for(var b of X(d))Ee.call(d,b)&&Z(k,b,d[b]);return k},I=(k,d)=>Be(k,Ne(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue");require("html2canvas");const Ie=require("./BaseComponent-CPat9pFl.cjs"),N=require("./index-D9ehIVda.cjs"),ee=require("./ele-glbModel-icon-ByACDCrv.cjs"),B=require("@element-plus/icons-vue"),Ae={class:"report-header"},je={class:"header-left"},Te={class:"header-title"},ze={key:0,class:"link-channel-badge"},Fe={class:"badge-text"},qe={class:"header-right"},Le={key:0,class:"frequency-select"},Me={key:0,class:"report-toolbar"},Oe={key:0,class:"search-area"},Pe={class:"filter-label"},Ue={key:1,class:"action-area"},We={class:"table-area"},Ye={key:1,class:"native-table"},$e={key:0,style:{width:"60px"}},Ge=["onClick"],He={key:0},Ke=["onClick"],Je={key:1,class:"pagination-area"},Qe={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"数据报表",NAME_EN:"Data Report",ORDER:13,PLATFORM:["pc","screen"]},Xe={title:{value:"数据报表",type:"string",label:"component.dataReport.title"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},headerBgColor:{value:"#f5f5f5",type:"color",label:"component.dataReport.headerBgColor"},showFrequency:{value:!1,type:"checkbox",label:"component.dataReport.showFrequency"},frequencyOptions:{value:[{label:"按小时",value:"hour"},{label:"按天",value:"day"},{label:"按周",value:"week"},{label:"按月",value:"month"}],type:"frequencyOptions",label:"component.dataReport.frequencyOptions"},showExport:{value:!0,type:"checkbox",label:"component.dataReport.showExport"},exportLabel:{value:"导出分析报表(Excel)",type:"string",label:"component.dataReport.exportLabel"},showSearch:{value:!1,type:"checkbox",label:"component.dataReport.showSearch"},searchFilters:{value:[],type:"searchFilters",label:"component.dataReport.searchFilters"},showActions:{value:!0,type:"checkbox",label:"component.dataReport.showActions"},actions:{value:["add","batchDelete","deleteAll"],type:"actions",label:"component.dataReport.actions"},rowActions:{value:["edit","view","delete"],type:"rowActions",label:"component.dataReport.rowActions"},actionColumnWidth:{value:150,type:"number",label:"component.dataReport.actionColumnWidth"},columns:{value:[{key:"time",label:"时间",width:"180px"},{key:"area",label:"区域",width:"100px"},{key:"deviceId",label:"编号",width:"120px"},{key:"value",label:"数值",width:"100px"}],type:"columns",label:"component.dataReport.columns"},showSelection:{value:!0,type:"checkbox",label:"component.dataReport.showSelection"},showSerialNumber:{value:!0,type:"checkbox",label:"component.dataReport.showSerialNumber"},alertLevels:{value:[{name:"正常",minValue:0,maxValue:5,color:"#52c41a"},{name:"二级告警 (警告)",minValue:5,maxValue:10,color:"#faad14"},{name:"一级告警 (危险)",minValue:10,maxValue:999,color:"#ff4d4f"}],type:"alertLevels",label:"component.dataReport.alertLevels"},tableMode:{value:"el-table",type:"select",label:"component.dataReport.tableMode",options:[{label:"Element Table",value:"el-table"},{label:"原生表格",value:"native-table"}]},showPagination:{value:!0,type:"checkbox",label:"component.dataReport.showPagination"},pageSize:{value:10,type:"number",label:"component.dataReport.pageSize",min:5,max:100},linkChannel:{value:"gnss",type:"select",label:"component.linkChannel",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"设备联动",value:"device"},{label:"告警联动",value:"alarm"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Ze=[{name:"WATER105",fv:"cumulativePrecipitation",object_id:""}],et=["name","fv","object_id"],tt=["mosaic","statistics","statisticsRealtime"],lt={useAlias:!1,multiObject:!1,source:"mosaic"},at={DEFAULT:Qe,OPTIONS:Xe,DATA:Ze,PARAMS:et,SOURCE:tt,COMMON:lt},ot=e.defineComponent(I(S({},at),{__name:"dataReport",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(k){e.useCssVars(l=>({v039d5518:e.unref(o).headerBgColor,v61417bfd:e.unref(o).textColor}));const d=k;class b extends Ie.BaseComponent{constructor(){super(...arguments),this.tableData=[]}getTableDataArray(){return this.tableData.length>0?this.tableData:this.getMockData()}setTableDataArray(t){this.tableData=t}addRow(t){const a=this.processRowData(t);this.tableData.push(a)}deleteRow(t){t>=0&&t<this.tableData.length&&this.tableData.splice(t,1)}deleteRowByCondition(t){this.tableData=this.tableData.filter(a=>!t(a))}updateRow(t,a){if(t>=0&&t<this.tableData.length){const n=S(S({},this.tableData[t]),a);this.tableData[t]=this.processRowData(n)}}extractStyles(){var c,u,p,f,w,r,h,i,_,q,L,M,O,P,U,W,Y,$,G,H,K,J,Q;const{options:t}=this.props.conf,a=((c=t==null?void 0:t.linkChannel)==null?void 0:c.value)||"gnss",n=((u=t==null?void 0:t.customChannel)==null?void 0:u.value)||"",s=a==="custom"&&n?n:a;return{title:((p=t==null?void 0:t.title)==null?void 0:p.value)||"数据报表",bgColor:((f=t==null?void 0:t.bgColor)==null?void 0:f.value)||"#ffffff",textColor:((w=t==null?void 0:t.textColor)==null?void 0:w.value)||"#333333",headerBgColor:((r=t==null?void 0:t.headerBgColor)==null?void 0:r.value)||"#f5f5f5",showFrequency:((h=t==null?void 0:t.showFrequency)==null?void 0:h.value)||!1,frequencyOptions:((i=t==null?void 0:t.frequencyOptions)==null?void 0:i.value)||[],showExport:((_=t==null?void 0:t.showExport)==null?void 0:_.value)!==!1,exportLabel:((q=t==null?void 0:t.exportLabel)==null?void 0:q.value)||"导出分析报表(Excel)",showSearch:((L=t==null?void 0:t.showSearch)==null?void 0:L.value)||!1,searchFilters:((M=t==null?void 0:t.searchFilters)==null?void 0:M.value)||[],showActions:((O=t==null?void 0:t.showActions)==null?void 0:O.value)!==!1,actions:((P=t==null?void 0:t.actions)==null?void 0:P.value)||["add","batchDelete","deleteAll"],rowActions:((U=t==null?void 0:t.rowActions)==null?void 0:U.value)||["edit","view","delete"],actionColumnWidth:((W=t==null?void 0:t.actionColumnWidth)==null?void 0:W.value)||150,columns:((Y=t==null?void 0:t.columns)==null?void 0:Y.value)||[],showSelection:(($=t==null?void 0:t.showSelection)==null?void 0:$.value)!==!1,showSerialNumber:((G=t==null?void 0:t.showSerialNumber)==null?void 0:G.value)!==!1,showPagination:((H=t==null?void 0:t.showPagination)==null?void 0:H.value)!==!1,pageSize:((K=t==null?void 0:t.pageSize)==null?void 0:K.value)||10,alertLevels:((J=t==null?void 0:t.alertLevels)==null?void 0:J.value)||[],tableMode:((Q=t==null?void 0:t.tableMode)==null?void 0:Q.value)||"el-table",linkChannel:s}}getMockData(){const t=[],a=new Date,n=this.Style.value.columns||[];if(!n||n.length===0)return[];if(n.some(c=>c&&c.colorRules&&c.colorRules.length>0))[{area:"北帮",deviceId:"GNSS55",object_id:"1",elevation:"1150.0",speed:9.85,threshold:8},{area:"北帮",deviceId:"GNSS110",object_id:"2",elevation:"1197.8",speed:8.1,threshold:8},{area:"东帮",deviceId:"GNSS33",object_id:"3",elevation:"1250.0",speed:5.85,threshold:5},{area:"东帮",deviceId:"GNSS143",object_id:"4",elevation:"1150.1",speed:5.85,threshold:5},{area:"南帮",deviceId:"GNSS66",object_id:"5",elevation:"1198.7",speed:4.58,threshold:4}].forEach(u=>{const p=S({},u);n.forEach(f=>{f&&f.key&&!p[f.key]&&f.key!=="area"&&f.key!=="deviceId"&&(p[f.key]=u[f.key]||"--")}),t.push(this.processRowData(p))});else for(let c=23;c>=0;c--){const u=new Date(a.getTime()-c*60*60*1e3),p={time:N.dayjs(u).format("YYYY/MM/DD HH:mm:ss"),area:"北帮",deviceId:"WATER105",cumulativePrecipitation:(1800+Math.random()*20).toFixed(2),realtimePrecipitation:(Math.random()*.5).toFixed(2)};t.push(this.processRowData(p))}return t}setHistoryData(t){t!=null&&t.history&&Array.isArray(t.history)&&t.history.length>0?(this.tableData=t.history.map(a=>this.processRowData(a)),typeof this.onDataUpdate=="function"&&this.onDataUpdate(this.tableData)):(this.tableData=this.getMockData(),typeof this.onDataUpdate=="function"&&this.onDataUpdate(this.tableData))}processRowData(t){var c;const a={},n=this.Style.value.columns||[];n&&n.length>0&&n.forEach(u=>{a[u.key]=t[u.key]||t[u.fv]||"--"});const s=n.find(u=>u.colorRules&&u.colorRules.length>0);if(s){const u=parseFloat(t[s.key]||t[s.fv]||0),p=s.colorRules||[],f=this.Style.value.alertLevels||[];let w=0,r="正常",h="#52c41a";for(let i=0;i<p.length;i++){const _=p[i];if(u>=_.min&&u<=_.max){w=i,r=((c=f[i])==null?void 0:c.name)||`${p.length-i}级告警`,h=_.color;break}}a.isAlert=w>0,a.alertLevel=w,a.alertText=r,a.alertColor=h}return a.object_id=t.object_id||t.objectId||t.deviceId||"",a.deviceId=t.deviceId||t.device_id||"",a}setSocketData(t){if(!t)return;const a={time:N.dayjs().format("YYYY/MM/DD HH:mm:ss")};(this.Style.value.columns||[]).forEach(c=>{const u=this.extractDataValue(t,c.fv);a[c.key]=u!=null?u:"--"});const s=this.processRowData(a);this.tableData.unshift(s),this.tableData.length>1e3&&(this.tableData=this.tableData.slice(0,1e3)),typeof this.onDataUpdate=="function"&&this.onDataUpdate(this.tableData)}getTableData(){return this.getTableDataArray()}onLinkEvent(t){xe(t)}}const m=new b(d,"dataReport");m.onDataUpdate=l=>{v.value=[...l]},m.setupLifecycle();const o=m.getStyle(),A=e.ref("hour"),te=e.computed(()=>o.value.frequencyOptions||[]),g=e.ref({}),v=e.ref([]),le=()=>{try{const l=m.getTableData();v.value=[...l],m.setTableDataArray(v.value)}catch(l){console.error("[dataReport] 获取表格数据失败:",l),v.value=[]}},V=e.computed(()=>{let l=[...v.value];return o.value.showSearch&&Object.keys(g.value).length>0&&(l=l.filter(t=>Object.keys(g.value).every(a=>{const n=g.value[a];return n?String(t[a]||"").toLowerCase().includes(String(n).toLowerCase()):!0}))),l}),y=e.ref(1),x=e.computed(()=>o.value.pageSize||10),ae=e.computed(()=>V.value.length),D=e.computed(()=>{if(!o.value.showPagination)return V.value;const l=(y.value-1)*x.value,t=l+x.value;return V.value.slice(l,t)}),C=e.ref([]),oe=e.computed(()=>({backgroundColor:o.value.bgColor,color:o.value.textColor})),ne=e.computed(()=>o.value.showSearch||o.value.showActions),re=l=>{console.log("[dataReport] 显示频率变化:",l)},ce=()=>{console.log("[dataReport] 导出数据"),alert("导出功能待实现")},se=()=>{y.value=1,console.log("[dataReport] 搜索:",g.value)},ie=()=>{g.value={},y.value=1},ue=()=>{console.log("[dataReport] 新增");const l=o.value.columns||[],t={};l.forEach(a=>{a.key==="time"?t[a.key]=N.dayjs().format("YYYY/MM/DD HH:mm:ss"):a.key==="area"?t[a.key]="北帮":a.key==="deviceId"?t[a.key]="NEW001":t[a.key]="--"}),m.addRow(t),v.value=[...m.getTableDataArray()],y.value=1},de=()=>{console.log("[dataReport] 导入数据")},me=()=>{if(C.value.length===0||!confirm(`确定要删除选中的 ${C.value.length} 条记录吗?`))return;console.log("[dataReport] 批量删除:",C.value);const t=C.value.map(a=>a.object_id||a.objectId||a.id||a);v.value=v.value.filter(a=>{const n=a.object_id||a.objectId||a.id;return!t.some(s=>{if(typeof s=="object"){const c=s.object_id||s.objectId||s.id;return c&&n&&String(c)===String(n)}return n&&String(s)===String(n)})}),m.setTableDataArray([...v.value]),C.value=[],y.value=1},pe=()=>{confirm("确定要删除全部记录吗?此操作不可恢复!")&&(console.log("[dataReport] 全部删除"),v.value=[],m.setTableDataArray([]),C.value=[],y.value=1)},he=l=>{console.log("[dataReport] 编辑:",l);const t=v.value.findIndex(n=>{const s=n.object_id||n.objectId||n.id,c=l.object_id||l.objectId||l.id;return s===c});if(t===-1){console.warn("[dataReport] 未找到要编辑的行");return}const a=o.value.columns||[];if(a.length>0){const n=a[0],s=prompt(`编辑 ${n.label}:`,l[n.key]);if(s!==null){const c=I(S({},l),{[n.key]:s});m.updateRow(t,c),v.value=[...m.getTableDataArray()]}}},ve=l=>{console.log("[dataReport] 查看:",l);const t=o.value.columns||[];let a=`行详情:
|
|
2
2
|
|
|
3
3
|
`;t.forEach(n=>{a+=`${n.label}: ${l[n.key]||"--"}
|
|
4
4
|
`}),alert(a)},fe=l=>{if(!confirm("确定要删除这条记录吗?"))return;console.log("[dataReport] 删除:",l);const a=v.value.findIndex(n=>{const s=n.object_id||n.objectId||n.id,c=l.object_id||l.objectId||l.id;return s===c});a!==-1&&(v.value.splice(a,1),m.setTableDataArray(v.value),D.value.length===0&&y.value>1&&y.value--)},ye=l=>{C.value=l},j=l=>{if(console.log("[dataReport] 行点击:",l),d.mode==="preview"&&o.value.linkChannel){const t=S({objectId:l.object_id||l.objectId,deviceId:l.deviceId||l.device_id},l);console.log(`[dataReport] 发布到频道 "${o.value.linkChannel}":`,t),m.publish(t)}},ke=()=>{y.value=1},be=l=>{y.value=l},T=l=>o.value.showPagination?(y.value-1)*x.value+l+1:l+1,z=(l,t)=>l==null?"--":t.formatter&&typeof t.formatter=="function"?t.formatter(l,t):l,F=(l,t)=>{const a={};if(l.color&&(a.color=l.color),l.bgColor&&(a.backgroundColor=l.bgColor),l.colorRules&&l.colorRules.length>0){const n=parseFloat(t[l.key]);if(!isNaN(n)){for(const s of l.colorRules)if(n>=s.min&&n<=s.max){a.color=s.color;break}}}return t.alertColor&&(a.color=t.alertColor),a},ge=(l,t)=>t.isAlert&&l==="deviceId"?"device-id":t.isAlert?"alert-text":"",Ce=l=>{const t={color:o.value.textColor};return l.alertColor&&(t.color=l.alertColor),t},we=l=>{const t=[];return l.isAlert&&t.push("alert-row"),E(l)&&t.push("active-row"),t.join(" ")},_e=l=>{const t=[];return l.isAlert&&t.push("alert-row"),E(l)&&t.push("active-row"),t.join(" ")},Se=l=>{const t={};return E(l)&&(t.backgroundColor="rgba(24, 144, 255, 0.1)"),t},E=l=>{if(d.mode==="edit")return!1;const t=o.value.linkChannel,a=m.linkStore.channels[t];if(!a)return!1;const{payload:n}=a;return n.objectId&&l.object_id?String(n.objectId)===String(l.object_id):n.deviceId&&l.deviceId?String(n.deviceId)===String(l.deviceId):!1},Re=(l,t,a)=>{if(d.mode!=="edit"&&(a.stopPropagation(),d.mode==="preview"&&o.value.linkChannel)){const n=S({objectId:t.object_id||t.objectId,deviceId:t.deviceId||t.device_id,fieldKey:l.key,index:D.value.indexOf(t)},t);console.log(`[dataReport] 发布到频道 "${o.value.linkChannel}" (单元格点击):`,n),m.publish(n)}},xe=l=>{console.log("[dataReport] 收到联动事件:",l),!l||!l.topic||l.payload};return e.watch(()=>d.conf,()=>{m.init()},{deep:!0}),e.onMounted(()=>{m.init(),le(),o.value.showSearch&&o.value.searchFilters&&o.value.searchFilters.forEach(l=>{g.value[l.key]=""})}),e.onUnmounted(()=>{m.cleanup()}),(l,t)=>{const a=R.ElOption,n=R.ElSelect,s=R.ElIcon,c=R.ElButton,u=R.ElInput,p=R.ElTableColumn,f=R.ElTable,w=R.ElPagination;return e.openBlock(),e.createElementBlock("div",{class:"data-report-wrapper",style:e.normalizeStyle(oe.value)},[e.createElementVNode("div",Ae,[e.createElementVNode("div",je,[e.createElementVNode("span",Te,e.toDisplayString(e.unref(o).title),1),e.unref(o).linkChannel&&k.mode==="preview"?(e.openBlock(),e.createElementBlock("div",ze,[e.createElementVNode("span",Fe,"频道: "+e.toDisplayString(e.unref(o).linkChannel),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",qe,[e.unref(o).showFrequency?(e.openBlock(),e.createElementBlock("div",Le,[t[3]||(t[3]=e.createElementVNode("span",{class:"frequency-label"},"显示频率:",-1)),e.createVNode(n,{modelValue:A.value,"onUpdate:modelValue":t[0]||(t[0]=r=>A.value=r),size:"small",style:{width:"120px"},onChange:re},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(te.value,r=>(e.openBlock(),e.createBlock(a,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),e.unref(o).showExport?(e.openBlock(),e.createBlock(c,{key:1,type:"success",size:"small",onClick:ce},{default:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(e.unref(B.Download))]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(o).exportLabel||"导出分析报表(Excel)"),1)]),_:1})):e.createCommentVNode("",!0)])]),ne.value?(e.openBlock(),e.createElementBlock("div",Me,[e.unref(o).showSearch?(e.openBlock(),e.createElementBlock("div",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).searchFilters,(r,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[e.createElementVNode("span",Pe,e.toDisplayString(r.label)+":",1),r.type==="input"?(e.openBlock(),e.createBlock(u,{key:0,modelValue:g.value[r.key],"onUpdate:modelValue":i=>g.value[r.key]=i,placeholder:r.placeholder||"输入搜索...",size:"small",style:{width:"150px"},clearable:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):r.type==="select"?(e.openBlock(),e.createBlock(n,{key:1,modelValue:g.value[r.key],"onUpdate:modelValue":i=>g.value[r.key]=i,size:"small",style:{width:"150px"},clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options||[],i=>(e.openBlock(),e.createBlock(a,{key:i.value,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(c,{type:"primary",size:"small",onClick:se},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("查询",-1)])]),_:1}),e.createVNode(c,{size:"small",onClick:ie},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("重置",-1)])]),_:1})])):e.createCommentVNode("",!0),e.unref(o).showActions?(e.openBlock(),e.createElementBlock("div",Ue,[e.unref(o).actions.includes("add")?(e.openBlock(),e.createBlock(c,{key:0,type:"primary",size:"small",onClick:ue},{default:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(e.unref(B.Plus))]),_:1}),t[6]||(t[6]=e.createTextVNode(" 新增 ",-1))]),_:1})):e.createCommentVNode("",!0),e.unref(o).actions.includes("import")?(e.openBlock(),e.createBlock(c,{key:1,type:"success",size:"small",onClick:de},{default:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(e.unref(B.Upload))]),_:1}),t[7]||(t[7]=e.createTextVNode(" 导入数据 ",-1))]),_:1})):e.createCommentVNode("",!0),e.unref(o).actions.includes("batchDelete")?(e.openBlock(),e.createBlock(c,{key:2,type:"danger",size:"small",disabled:C.value.length===0,onClick:me},{default:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(e.unref(B.Delete))]),_:1}),t[8]||(t[8]=e.createTextVNode(" 批量删除 ",-1))]),_:1},8,["disabled"])):e.createCommentVNode("",!0),e.unref(o).actions.includes("deleteAll")?(e.openBlock(),e.createBlock(c,{key:3,type:"danger",size:"small",onClick:pe},{default:e.withCtx(()=>[...t[9]||(t[9]=[e.createTextVNode(" 全部删除 ",-1)])]),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",We,[e.unref(o).tableMode==="el-table"?(e.openBlock(),e.createBlock(f,{key:0,data:D.value,style:e.normalizeStyle({color:e.unref(o).textColor}),"header-cell-style":{background:e.unref(o).headerBgColor,color:e.unref(o).textColor},"row-style":Ce,"row-class-name":we,onSelectionChange:ye,onRowClick:j,stripe:"",border:""},{default:e.withCtx(()=>[e.unref(o).showSelection?(e.openBlock(),e.createBlock(p,{key:0,type:"selection",width:"55",align:"center"})):e.createCommentVNode("",!0),e.unref(o).showSerialNumber?(e.openBlock(),e.createBlock(p,{key:1,type:"index",label:"序号",width:"60",align:"center",index:T})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).columns,r=>(e.openBlock(),e.createBlock(p,{key:r.key,prop:r.key,label:r.label,width:r.width,"min-width":r.minWidth||100,align:r.align||"left"},{default:e.withCtx(({row:h})=>[e.createElementVNode("span",{style:e.normalizeStyle(F(r,h))},e.toDisplayString(z(h[r.key],r)),5)]),_:2},1032,["prop","label","width","min-width","align"]))),128)),e.unref(o).rowActions&&e.unref(o).rowActions.length>0?(e.openBlock(),e.createBlock(p,{key:2,label:"操作",width:e.unref(o).actionColumnWidth||150,align:"center",fixed:"right"},{default:e.withCtx(({row:r})=>[e.unref(o).rowActions.includes("edit")?(e.openBlock(),e.createBlock(c,{key:0,link:"",type:"primary",size:"small",onClick:e.withModifiers(h=>he(r),["stop"])},{default:e.withCtx(()=>[...t[10]||(t[10]=[e.createTextVNode(" 编辑 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(o).rowActions.includes("view")?(e.openBlock(),e.createBlock(c,{key:1,link:"",type:"info",size:"small",onClick:e.withModifiers(h=>ve(r),["stop"])},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode(" 查看 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(o).rowActions.includes("delete")?(e.openBlock(),e.createBlock(c,{key:2,link:"",type:"danger",size:"small",onClick:e.withModifiers(h=>fe(r),["stop"])},{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode(" 删除 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1},8,["width"])):e.createCommentVNode("",!0)]),_:1},8,["data","style","header-cell-style"])):(e.openBlock(),e.createElementBlock("table",Ye,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.unref(o).showSerialNumber?(e.openBlock(),e.createElementBlock("th",$e,"序号")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).columns,r=>(e.openBlock(),e.createElementBlock("th",{key:r.key,style:e.normalizeStyle({width:r.width,minWidth:r.minWidth})},e.toDisplayString(r.label),5))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,(r,h)=>(e.openBlock(),e.createElementBlock("tr",{key:h,class:e.normalizeClass(_e(r)),style:e.normalizeStyle(Se(r)),onClick:i=>j(r)},[e.unref(o).showSerialNumber?(e.openBlock(),e.createElementBlock("td",He,e.toDisplayString(T(h)),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).columns,i=>(e.openBlock(),e.createElementBlock("td",{key:i.key,class:e.normalizeClass(ge(i.key,r)),style:e.normalizeStyle(F(i,r)),onClick:_=>Re(i,r,_)},e.toDisplayString(z(r[i.key],i)),15,Ke))),128))],14,Ge))),128))])]))]),e.unref(o).showPagination?(e.openBlock(),e.createElementBlock("div",Je,[e.createVNode(w,{"current-page":y.value,"onUpdate:currentPage":t[1]||(t[1]=r=>y.value=r),"page-size":x.value,"onUpdate:pageSize":t[2]||(t[2]=r=>x.value=r),"page-sizes":[10,20,50,100],total:ae.value,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:ke,onCurrentChange:be},null,8,["current-page","page-size","total"])])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),nt=N._export_sfc(ot,[["__scopeId","data-v-f4561a18"]]);exports.default=nt;
|
|
@@ -22,8 +22,8 @@ import "element-plus/es/components/select/style/css";
|
|
|
22
22
|
import "element-plus/es/components/option/style/css";
|
|
23
23
|
import { defineComponent as Ze, useCssVars as et, unref as i, ref as O, computed as z, watch as tt, onMounted as at, onUnmounted as lt, openBlock as s, createElementBlock as h, normalizeStyle as F, createElementVNode as D, toDisplayString as V, createCommentVNode as p, createVNode as S, withCtx as m, Fragment as T, renderList as M, createBlock as f, createTextVNode as A, withModifiers as W, normalizeClass as pe, renderSlot as ot } from "vue";
|
|
24
24
|
import "html2canvas";
|
|
25
|
-
import { B as nt } from "./BaseComponent-
|
|
26
|
-
import { d as Y, _ as st } from "./index-
|
|
25
|
+
import { B as nt } from "./BaseComponent-DMJmgFIo.js";
|
|
26
|
+
import { d as Y, _ as st } from "./index-nru6zK5E.js";
|
|
27
27
|
import { A as rt, D as it } from "./ele-glbModel-icon-l_SMi3ik.js";
|
|
28
28
|
import { Download as ct, Plus as ut, Upload as dt, Delete as ht } from "@element-plus/icons-vue";
|
|
29
29
|
const pt = { class: "report-header" }, vt = { class: "header-left" }, mt = { class: "header-title" }, bt = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),F=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),F=require("./index-D9ehIVda.cjs"),W={class:"table-header"},G={class:"table-actions"},H={key:2},J={class:"table-footer"},K={class:"total-info"},Q=e.defineComponent({__name:"dataTable",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"preview"}},emits:["action","row-click"],setup(E,{emit:N}){const o=E,b=N,v=e.computed(()=>{var l,t,r,i,u,d,f,p,h,g;return{bgColor:((t=(l=o.conf)==null?void 0:l.style)==null?void 0:t.bgColor)||"#ffffff",borderRadius:((i=(r=o.conf)==null?void 0:r.style)==null?void 0:i.borderRadius)||8,titleColor:((d=(u=o.conf)==null?void 0:u.style)==null?void 0:d.titleColor)||"#333333",linkColor:((p=(f=o.conf)==null?void 0:f.style)==null?void 0:p.linkColor)||"#1890ff",padding:((g=(h=o.conf)==null?void 0:h.style)==null?void 0:g.padding)||16}}),D=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.title)||"数据列表"}),q=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.columns)||[{prop:"time",label:"预警时间",width:160},{prop:"type",label:"预警类型",type:"link"},{prop:"area",label:"区域",width:80},{prop:"level",label:"预警级别",width:80},{prop:"value",label:"监测值",width:100},{prop:"status",label:"状态",type:"status",width:80}]}),z=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.tableData)||w}),T=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.showActions)!==!1}),P=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.searchPlaceholder)||"搜索记录..."}),I=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.filterPlaceholder)||"全部类型"}),C=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.filterOptions)||[]}),w=[{time:"2023-06-15 14:32:21",type:"煤层自燃监测",area:"C区域",level:"预警级别",value:"78.6℃",status:"处理中"},{time:"2023-06-15 13:45:10",type:"地上水位监测",area:"B区域",level:"预警级别",value:"6.8m",status:"已处理"},{time:"2023-06-15 10:18:45",type:"地上下位移监测",area:"A区域",level:"预警级别",value:"12.3mm",status:"已处理"},{time:"2023-06-14 20:05:33",type:"降雨量监测",area:"D区域",level:"预警级别",value:"156mm/24h",status:"已处理"},{time:"2023-06-14 15:30:17",type:"多模态数据融合",area:"B区域",level:"预警级别",value:"0.78",status:"已处理"}],n=e.ref(1),c=e.ref(5),y=e.ref(""),k=e.ref(""),x=e.computed(()=>{let l=z.value;if(y.value){const t=y.value.toLowerCase();l=l.filter(r=>Object.values(r).some(i=>String(i).toLowerCase().includes(t)))}return k.value&&(l=l.filter(t=>t.type===k.value)),l}),_=e.computed(()=>x.value.length),O=e.computed(()=>(n.value-1)*c.value+1),R=e.computed(()=>Math.min(n.value*c.value,_.value)),V=e.computed(()=>{const l=(n.value-1)*c.value;return x.value.slice(l,l+c.value)}),A=e.computed(()=>({backgroundColor:v.value.bgColor,borderRadius:v.value.borderRadius+"px",padding:v.value.padding+"px"})),M=l=>({处理中:"warning",已处理:"success",待处理:"danger"})[l]||"info",$=()=>{n.value=1},L=()=>{},U=l=>{b("row-click",l)},B=(l,t)=>{b("action",{action:l,row:t})},j=(l,t)=>{var r,i;if(confirm(`确定要删除 ${l.time} 的 ${l.type} 记录吗?`)){const u=((i=(r=o.conf)==null?void 0:r.data)==null?void 0:i.tableData)||w,d=(n.value-1)*c.value+t;u.splice(d,1),V.value.length===0&&n.value>1&&n.value--,b("action",{action:"delete",row:l})}};return(l,t)=>{const r=s.ElInput,i=s.ElOption,u=s.ElSelect,d=s.ElTag,f=s.ElTableColumn,p=s.ElButton,h=s.ElTable,g=s.ElPagination;return e.openBlock(),e.createElementBlock("div",{class:"data-table",style:e.normalizeStyle(A.value)},[e.createElementVNode("div",W,[e.createElementVNode("div",{class:"table-title",style:e.normalizeStyle({color:v.value.titleColor})},e.toDisplayString(D.value),5),e.createElementVNode("div",G,[e.createVNode(r,{modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=a=>y.value=a),placeholder:P.value,"prefix-icon":"Search",clearable:"",style:{width:"200px"},onInput:$},null,8,["modelValue","placeholder"]),C.value.length?(e.openBlock(),e.createBlock(u,{key:0,modelValue:k.value,"onUpdate:modelValue":t[1]||(t[1]=a=>k.value=a),placeholder:I.value,style:{width:"120px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,a=>(e.openBlock(),e.createBlock(i,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])):e.createCommentVNode("",!0)])]),e.createVNode(h,{data:V.value,style:{width:"100%"},"row-style":{cursor:"pointer"},onRowClick:U},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,a=>(e.openBlock(),e.createBlock(f,{key:a.prop,prop:a.prop,label:a.label,width:a.width,"min-width":a.minWidth},{default:e.withCtx(({row:m})=>[a.type==="link"?(e.openBlock(),e.createElementBlock("span",{key:0,class:"link-text",style:e.normalizeStyle({color:v.value.linkColor})},e.toDisplayString(m[a.prop]),5)):a.type==="status"?(e.openBlock(),e.createBlock(d,{key:1,type:M(m[a.prop]),size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m[a.prop]),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",H,e.toDisplayString(m[a.prop]),1))]),_:2},1032,["prop","label","width","min-width"]))),128)),T.value?(e.openBlock(),e.createBlock(f,{key:0,label:"操作",width:"180"},{default:e.withCtx(({row:a,$index:m})=>[e.createVNode(p,{link:"",type:"primary",size:"small",onClick:e.withModifiers(S=>B("detail",a),["stop"])},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("详情",-1)])]),_:1},8,["onClick"]),e.createVNode(p,{link:"",type:"primary",size:"small",onClick:e.withModifiers(S=>B("handle",a),["stop"])},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("处理",-1)])]),_:1},8,["onClick"]),e.createVNode(p,{link:"",type:"danger",size:"small",onClick:e.withModifiers(S=>j(a,m),["stop"])},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["data"]),e.createElementVNode("div",J,[e.createElementVNode("span",K,"显示第 "+e.toDisplayString(O.value)+" 至 "+e.toDisplayString(R.value)+" 条,共 "+e.toDisplayString(_.value)+" 条记录",1),e.createVNode(g,{"current-page":n.value,"onUpdate:currentPage":t[2]||(t[2]=a=>n.value=a),"page-size":c.value,"onUpdate:pageSize":t[3]||(t[3]=a=>c.value=a),total:_.value,"page-sizes":[5,10,20,50],layout:"prev, pager, next",small:"",onChange:L},null,8,["current-page","page-size","total"])])],4)}}}),X=F._export_sfc(Q,[["__scopeId","data-v-217591b3"]]);exports.default=X;
|
|
@@ -9,7 +9,7 @@ import "element-plus/es/components/select/style/css";
|
|
|
9
9
|
import "element-plus/es/components/option/style/css";
|
|
10
10
|
import "element-plus/es/components/input/style/css";
|
|
11
11
|
import { defineComponent as de, computed as a, ref as V, openBlock as n, createElementBlock as h, normalizeStyle as P, createElementVNode as g, toDisplayString as d, createVNode as y, createBlock as k, withCtx as u, Fragment as N, renderList as U, createCommentVNode as L, createTextVNode as z, withModifiers as T } from "vue";
|
|
12
|
-
import { _ as ce } from "./index-
|
|
12
|
+
import { _ as ce } from "./index-nru6zK5E.js";
|
|
13
13
|
const ve = { class: "table-header" }, me = { class: "table-actions" }, fe = { key: 2 }, ye = { class: "table-footer" }, be = { class: "total-info" }, _e = /* @__PURE__ */ de({
|
|
14
14
|
__name: "dataTable",
|
|
15
15
|
props: {
|
|
@@ -11,9 +11,9 @@ var f = (o, e, t) => e in o ? _(o, e, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return o;
|
|
12
12
|
}, Y = (o, e) => D(o, y(e));
|
|
13
13
|
import { defineComponent as b, ref as z, watch as g, openBlock as H, createElementBlock as T, createElementVNode as O, normalizeStyle as E, unref as i, toDisplayString as I, renderSlot as N } from "vue";
|
|
14
|
-
import { d as F, _ as A } from "./index-
|
|
14
|
+
import { d as F, _ as A } from "./index-nru6zK5E.js";
|
|
15
15
|
import "html2canvas";
|
|
16
|
-
import { B as h } from "./BaseComponent-
|
|
16
|
+
import { B as h } from "./BaseComponent-DMJmgFIo.js";
|
|
17
17
|
import { A as j, D as B } from "./ele-dateTime-icon-BEGFlwID.js";
|
|
18
18
|
const L = { class: "mix-component" }, R = {
|
|
19
19
|
DEFAULT_ICON: B,
|