mixdashboards 1.1.19 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AgActionsRenderer-PlZa78ff.js → AgActionsRenderer-3HKXKUJY.js} +1 -1
- package/dist/{AgActionsRenderer-Dlr21zZJ.cjs → AgActionsRenderer-DnPvuT_-.cjs} +1 -1
- package/dist/{AgGridTable-oXfzJc2L.js → AgGridTable-BQ8M3fDj.js} +1 -1
- package/dist/{AgGridTable-CE6GaYj4.cjs → AgGridTable-BQvI6jpO.cjs} +1 -1
- package/dist/{BaseComponent-DdC8fmD6.cjs → BaseComponent-DKuQG62G.cjs} +1 -1
- package/dist/{BaseComponent-Bv3RJ3vA.js → BaseComponent-Dn65PXTp.js} +3 -3
- package/dist/{EChartComponentBase-DzP0_KR9.cjs → EChartComponentBase-8GSbyY5P.cjs} +1 -1
- package/dist/{EChartComponentBase-B5seB4Mc.js → EChartComponentBase-skupRYzl.js} +2 -2
- package/dist/{EmergencyPlanPanel-tVOIWw2Q.js → EmergencyPlanPanel-C4OsnsPP.js} +1 -1
- package/dist/{EmergencyPlanPanel-9KW6SFeg.cjs → EmergencyPlanPanel-DLvOrE5U.cjs} +1 -1
- package/dist/{HistoryPlanDialog-CDFm2aaq.cjs → HistoryPlanDialog--99rPq54.cjs} +1 -1
- package/dist/{HistoryPlanDialog-BJ8jXVxW.js → HistoryPlanDialog-DI0H_vgZ.js} +1 -1
- package/dist/{MixiotAppDetailPage-CGxGF4b4.cjs → MixiotAppDetailPage-4mYR4gHm.cjs} +1 -1
- package/dist/{MixiotAppDetailPage-BY0b1cSQ.js → MixiotAppDetailPage-C_NrtqJU.js} +1 -1
- package/dist/{MonitoringMap-BhE-240t.cjs → MonitoringMap-CstXoU8n.cjs} +1 -1
- package/dist/{MonitoringMap-Caf2Shxs.js → MonitoringMap-Gxy8ldt1.js} +2 -2
- package/dist/{UniverSheet-DK1fnNou.js → UniverSheet-DGNOHAEJ.js} +2 -2
- package/dist/{UniverSheet-CoBlKEHm.cjs → UniverSheet-phDDfwXk.cjs} +1 -1
- package/dist/{accelerationChart-CpzAy4XN.cjs → accelerationChart-B_y_8Y4q.cjs} +1 -1
- package/dist/{accelerationChart-CP1QTBXX.js → accelerationChart-C4JTCc65.js} +19 -19
- package/dist/{actionItem-CcDYnjv-.cjs → actionItem-Bdw3MAAf.cjs} +1 -1
- package/dist/{actionItem-C2CUz21T.js → actionItem-CGOgCPJR.js} +2 -2
- package/dist/{alarmLevelChart-D1el5vNk.js → alarmLevelChart-BQF-4a0s.js} +2 -2
- package/dist/{alarmLevelChart-bS2UEWev.cjs → alarmLevelChart-CY4GqDio.cjs} +1 -1
- package/dist/{alertTable-BdKLNkVJ.cjs → alertTable-D3riLPwz.cjs} +1 -1
- package/dist/{alertTable-21qWBMNt.js → alertTable-DgiRdm5f.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-CpNohSP3.js → aliasObjectSelectorDemo-C7gQUdGu.js} +5 -5
- package/dist/{aliasObjectSelectorDemo-C7NLq1SO.cjs → aliasObjectSelectorDemo-DXFCCnvj.cjs} +1 -1
- package/dist/{annualRainfallChart-DDGrKSyV.js → annualRainfallChart-C1yG42iq.js} +2 -2
- package/dist/{annualRainfallChart-BvvLnmDL.cjs → annualRainfallChart-D3oUahrK.cjs} +1 -1
- package/dist/{aqi-B51UwYP8.cjs → aqi-B3g_go92.cjs} +1 -1
- package/dist/{aqi-SrcWK-ox.js → aqi-DLqM9gGc.js} +4 -4
- package/dist/{aqiIndass-DY6U7dbZ.js → aqiIndass-DDtB5_wf.js} +17 -17
- package/dist/{aqiIndass-BVxD6QC4.cjs → aqiIndass-DRYU-FAs.cjs} +1 -1
- package/dist/{areaDeformCurve-CWgMj6Ld.cjs → areaDeformCurve-CnvUJY_x.cjs} +1 -1
- package/dist/{areaDeformCurve-D3BuGscE.js → areaDeformCurve-DaLtFoJT.js} +2 -2
- package/dist/{arrayCard-9QeKfHnv.cjs → arrayCard-9p0Bkc_e.cjs} +1 -1
- package/dist/{arrayCard-qgDnMdcU.js → arrayCard-FYb8TmUw.js} +2 -2
- package/dist/{audio-CbbNeFwR.js → audio-BBXpJP54.js} +2 -2
- package/dist/{audio-lrTBdjeY.cjs → audio-DGxXcB0a.cjs} +1 -1
- package/dist/{bar-CJN8j8gU.js → bar-D26zndUl.js} +8 -8
- package/dist/{bar-BfPMVpDX.cjs → bar-btY9Pwkk.cjs} +1 -1
- package/dist/{basicShapeToolbox-eUxdwSiA.cjs → basicShapeToolbox-XR_NHK87.cjs} +1 -1
- package/dist/{basicShapeToolbox-DqSW0K9M.js → basicShapeToolbox-Y6mXTA8o.js} +7 -7
- package/dist/{bmp-pGXNGQ6L.js → bmp-C7tYeLi0.js} +2 -2
- package/dist/{bmp-BhCJePGA.cjs → bmp-DlSoc3Rw.cjs} +1 -1
- package/dist/{box-BAgrzKXC.js → box-DroQaZjH.js} +16 -16
- package/dist/{box-Be6Hpox4.cjs → box-DyIX9weX.cjs} +1 -1
- package/dist/{chartConfigPanel-BvMXZB2L.js → chartConfigPanel-D4dbsVKj.js} +1 -1
- package/dist/{chartConfigPanel-CGWijgZ-.cjs → chartConfigPanel-DvTKL5EZ.cjs} +1 -1
- package/dist/{circleBar-CGlveIpB.js → circleBar-DCnx8wNj.js} +2 -2
- package/dist/{circleBar-COsnnOW8.cjs → circleBar-DulXgWd8.cjs} +1 -1
- package/dist/{clock-CVO43_uj.js → clock-B1X6vX22.js} +2 -2
- package/dist/{clock-DgyRJ55m.cjs → clock-CeM6LdAl.cjs} +1 -1
- package/dist/{clt-Bfh4zPhb.cjs → clt-CcpO8rrD.cjs} +1 -1
- package/dist/{clt-d8tEBDXa.js → clt-IAzRVgiu.js} +15 -15
- package/dist/{cmc-B7O-zg2t.cjs → cmc-B4xRwSti.cjs} +1 -1
- package/dist/{cmc-By56qP2c.js → cmc-Swd4NfxE.js} +10 -10
- package/dist/{cmp-xri5dKb9.js → cmp--gCtei5x.js} +2 -2
- package/dist/{cmp-D73tbgfL.cjs → cmp-B9Aip3T2.cjs} +1 -1
- package/dist/{conclusionCard-EsUi-cs0.cjs → conclusionCard-CRif9GmS.cjs} +1 -1
- package/dist/{conclusionCard-Dk1KoNii.js → conclusionCard-DQ0HTHsg.js} +2 -2
- package/dist/{controlList-DlFba9SA.js → controlList-4TidO_XJ.js} +4 -4
- package/dist/{controlList-jIvwSzAZ.cjs → controlList-CwLNEkAi.cjs} +1 -1
- package/dist/{controlRecordList-Bmtp681m.cjs → controlRecordList-CuvV65TE.cjs} +1 -1
- package/dist/{controlRecordList-BJjkRs8d.js → controlRecordList-dPW6e4FN.js} +3 -3
- package/dist/{controlRecordListAPP-C_oMTkva.js → controlRecordListAPP-CObVdW3l.js} +2 -2
- package/dist/{controlRecordListAPP-C02TdcvH.cjs → controlRecordListAPP-DCzTOeXr.cjs} +1 -1
- package/dist/{crd-BS6MSmcS.cjs → crd-AH_sGivo.cjs} +1 -1
- package/dist/{crd-BYLbCcrj.js → crd-CEWC005o.js} +20 -20
- package/dist/{ctrBtn-V4qjGGtx.js → ctrBtn-8xev-mny.js} +3 -3
- package/dist/{ctrBtn-DhvhVrCW.cjs → ctrBtn-nYp9T0n0.cjs} +1 -1
- package/dist/{ctrSet-CHZZJIF7.js → ctrSet-3Q4eJSfK.js} +11 -11
- package/dist/{ctrSet-CQHpxMxP.cjs → ctrSet-z_9ztVyG.cjs} +1 -1
- package/dist/{ctrSwitch-ChvtxV9I.js → ctrSwitch-BhqYXTMZ.js} +7 -7
- package/dist/{ctrSwitch-D5n8S2_r.cjs → ctrSwitch-DacpvyBJ.cjs} +1 -1
- package/dist/{dataManagement-C3z0jdVy.js → dataManagement-BiPhJbF1.js} +2 -2
- package/dist/{dataManagement-DzESXejv.cjs → dataManagement-DP1Chfo2.cjs} +1 -1
- package/dist/{dataReport-D7WV4er3.js → dataReport-CQaL-d_q.js} +2 -2
- package/dist/{dataReport-D1myyCz7.cjs → dataReport-C_8TF5Dz.cjs} +1 -1
- package/dist/{dataTable-DkCWvmYS.js → dataTable-Bbx5XgV-.js} +1 -1
- package/dist/{dataTable-DOQRfWJN.cjs → dataTable-D6-325qb.cjs} +1 -1
- package/dist/{datetime-BfA0Yxsf.js → datetime-CmXZdgkW.js} +2 -2
- package/dist/{datetime-Dgr1l4mG.cjs → datetime-DBrUO7wD.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-BTNdbcD0.cjs → deepClusterSlipSurface-Ch8i2ql5.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-BotjleWU.js → deepClusterSlipSurface-D7o7mgg7.js} +27 -27
- package/dist/{deepDataMatrix-CqsdmOoD.js → deepDataMatrix-D9GCg496.js} +23 -23
- package/dist/{deepDataMatrix-B1glL8v7.cjs → deepDataMatrix-DoM8KUHn.cjs} +1 -1
- package/dist/{deepDisplacement3D-DNwOT442.cjs → deepDisplacement3D-C8ZRCP-R.cjs} +1 -1
- package/dist/{deepDisplacement3D-DLdpPEbS.js → deepDisplacement3D-Cjx11pre.js} +2 -2
- package/dist/{deepDisplacementChart-DjaHZ1pw.js → deepDisplacementChart-BHe83IoB.js} +23 -23
- package/dist/{deepDisplacementChart-CfGD5BrP.cjs → deepDisplacementChart-BlcS3DVl.cjs} +1 -1
- package/dist/{deepDisplacementChart-jJJQQFY6.js → deepDisplacementChart-HuWab3pz.js} +27 -27
- package/dist/{deepDisplacementChart-lDFewdsF.cjs → deepDisplacementChart-r3GIC8hq.cjs} +1 -1
- package/dist/{deepDisplacementView-B4Go1Hq0.js → deepDisplacementView-B4RBH8Ie.js} +1 -1
- package/dist/{deepDisplacementView-BH0UfjV6.cjs → deepDisplacementView-BHZQ4s3K.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-DUszGqXz.cjs → deepNodeTemperatureChart-BswYkP9V.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-9JmmT_3j.js → deepNodeTemperatureChart-D9maVN-M.js} +28 -28
- package/dist/{deepTangentAngleChart-rQ8QfuGN.js → deepTangentAngleChart-DIWKa8r3.js} +18 -18
- package/dist/{deepTangentAngleChart-C2CwkfSV.cjs → deepTangentAngleChart-DQxOv4Vz.cjs} +1 -1
- package/dist/{deepTemperatureField-C-ilAUbT.cjs → deepTemperatureField-2GBzigs_.cjs} +1 -1
- package/dist/{deepTemperatureField-CubuMfdf.js → deepTemperatureField-DlLLcuFb.js} +23 -23
- package/dist/{deepTrendChart-CLQFmRr2.cjs → deepTrendChart-CbYdfjcX.cjs} +1 -1
- package/dist/{deepTrendChart-Bo7kcMpS.js → deepTrendChart-CdX41nqe.js} +40 -40
- package/dist/{deviceOnlineStatus-DBulFfoC.cjs → deviceOnlineStatus-BMfNv4fX.cjs} +1 -1
- package/dist/{deviceOnlineStatus-CtIL7VFP.js → deviceOnlineStatus-BdOeLbLy.js} +2 -2
- package/dist/{deviceStatus-BDVPjgyN.js → deviceStatus-B8Ijgoyf.js} +15 -15
- package/dist/{deviceStatus-CF7z3bfZ.cjs → deviceStatus-CbYBmGvy.cjs} +1 -1
- package/dist/{displacementDataTable-B9HARhGm.cjs → displacementDataTable-BI8cE-vY.cjs} +1 -1
- package/dist/{displacementDataTable-GkggvGaZ.js → displacementDataTable-Cqi5Ql6a.js} +17 -17
- package/dist/{displacementTrajectoryChart-C_6Yq97U.js → displacementTrajectoryChart-D1UPR4dt.js} +30 -30
- package/dist/{displacementTrajectoryChart-CEui7uVX.cjs → displacementTrajectoryChart-DJM_B-gL.cjs} +1 -1
- package/dist/{displacementTrendChart-BStbvtyS.cjs → displacementTrendChart-C4jvpdRY.cjs} +1 -1
- package/dist/{displacementTrendChart-C40yhGCg.js → displacementTrendChart-Dii90QjN.js} +18 -18
- package/dist/{dxf-BoF0vKri.js → dxf-DAAwQlgQ.js} +2 -2
- package/dist/{dxf-CVjZUhtn.cjs → dxf-DsJIwOOJ.cjs} +1 -1
- package/dist/{dzc-B4ZvwN_l.js → dzc-BjOYTnIF.js} +5 -5
- package/dist/{dzc-Bc9cF-kF.cjs → dzc-CpML7WAZ.cjs} +1 -1
- package/dist/{emergencyPlan-DVoHbsNX.cjs → emergencyPlan-DWpGIszu.cjs} +1 -1
- package/dist/{emergencyPlan-Bae0pJIK.js → emergencyPlan-DeL1roPL.js} +3 -3
- package/dist/{evn-DwzNdVCs.js → evn-CUajXlYc.js} +2 -2
- package/dist/{evn-CwVRqTsX.cjs → evn-D0ROeiQD.cjs} +1 -1
- package/dist/{evolutionChart-xgWP4gp9.js → evolutionChart-B-2W9qVE.js} +3 -3
- package/dist/{evolutionChart-DcYx4Pka.cjs → evolutionChart-D23ALmPJ.cjs} +1 -1
- package/dist/{fileViewer-BD81tOyy.js → fileViewer-D6-jyRWy.js} +9 -9
- package/dist/{fileViewer-I2uylpjR.cjs → fileViewer-DHDmo6px.cjs} +1 -1
- package/dist/{filterBar-Dri4QUIb.cjs → filterBar-Bx0qkR7L.cjs} +1 -1
- package/dist/{filterBar-1JX2PNo7.js → filterBar-Cw-wbtF1.js} +2 -2
- package/dist/{fireCombustionCurve-B7fBz7l4.cjs → fireCombustionCurve-Dj2o6qcy.cjs} +1 -1
- package/dist/{fireCombustionCurve-Bh4mHmWN.js → fireCombustionCurve-wPPE55j_.js} +3 -3
- package/dist/{fireFilterBar-C_6JQb5k.js → fireFilterBar-COgdZt2b.js} +2 -2
- package/dist/{fireFilterBar-B916WbkV.cjs → fireFilterBar-t-aUk0FZ.cjs} +1 -1
- package/dist/{fireHistoryTable-DYbmSsbK.cjs → fireHistoryTable-BgzroLVi.cjs} +1 -1
- package/dist/{fireHistoryTable-DG0VPFRM.js → fireHistoryTable-Em_cwZSy.js} +2 -2
- package/dist/{gag-BBSJFndH.cjs → gag-C5gOltT8.cjs} +1 -1
- package/dist/{gag-BMrGqaQL.js → gag-Dd-osrR9.js} +2 -2
- package/dist/{gasStationList-yiSPtQ7o.cjs → gasStationList-CKe02Teb.cjs} +1 -1
- package/dist/{gasStationList-CgeVIXbG.js → gasStationList-CepcJ9BG.js} +3 -3
- package/dist/{geo3dViewer-DQfOfbvI.cjs → geo3dViewer-CSq4-kE-.cjs} +1 -1
- package/dist/{geo3dViewer-C9_rSsKP.js → geo3dViewer-yHqVv2BH.js} +3 -3
- package/dist/{glbModel-Dhw1Gtbr.cjs → glbModel-CBM7-1vZ.cjs} +1 -1
- package/dist/{glbModel-NldHnOVl.js → glbModel-DFDIJi5z.js} +2 -2
- package/dist/{globalObjectSelector-KnFppL_e.js → globalObjectSelector-BoBf_njv.js} +43 -43
- package/dist/{globalObjectSelector-BCPaufx_.cjs → globalObjectSelector-BvK0QxXk.cjs} +1 -1
- package/dist/{gnssFilterBar-CV4Toj67.cjs → gnssFilterBar-BabiLlIC.cjs} +1 -1
- package/dist/{gnssFilterBar-BwKMyUrQ.js → gnssFilterBar-C4Ozsjee.js} +2 -2
- package/dist/{gnssHistoryTable-CPf2oH22.cjs → gnssHistoryTable-CEtxui4z.cjs} +1 -1
- package/dist/{gnssHistoryTable-C6Wkw7OW.js → gnssHistoryTable-DWICO-OK.js} +2 -2
- package/dist/{gnssMapView-CutaT360.cjs → gnssMapView-C5IzKoTF.cjs} +2 -2
- package/dist/{gnssMapView-C-eK2r5B.js → gnssMapView-CgLO6fng.js} +4 -4
- package/dist/{gnssSectionProfile--g5C-EWx.js → gnssSectionProfile-BFU5_iQa.js} +2 -2
- package/dist/{gnssSectionProfile-EuFzJtuh.cjs → gnssSectionProfile-BcS3AU5H.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-NC4tfx2H.cjs → gnssTimeSeriesChart-2AOe01nY.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-CqmMTpuf.js → gnssTimeSeriesChart-Cyc9JVmX.js} +2 -2
- package/dist/{gnssXYTrajectory-_O0KOUM2.cjs → gnssXYTrajectory-B3HDdORI.cjs} +1 -1
- package/dist/{gnssXYTrajectory-Zpj3HyXr.js → gnssXYTrajectory-DAjqaaOt.js} +2 -2
- package/dist/{grd-BaPKVJ4W.js → grd-BdraSTc0.js} +18 -18
- package/dist/{grd-TbRuDGQr.cjs → grd-jisN3fY_.cjs} +1 -1
- package/dist/{grdIndass-3DrX62Jn.js → grdIndass-BuEWpm2p.js} +5 -5
- package/dist/{grdIndass-CKi2RLyZ.cjs → grdIndass-BxJWHgbc.cjs} +1 -1
- package/dist/{grg-Cgxf4HNj.js → grg-BiUyteXn.js} +13 -13
- package/dist/{grg-CFBuQnL1.cjs → grg-DHDNZzvS.cjs} +1 -1
- package/dist/{gridview-BhxlYHGR.cjs → gridview-C2eGcIgv.cjs} +1 -1
- package/dist/{gridview-BTGTAbxK.js → gridview-DsDgxIu-.js} +2 -2
- package/dist/{groundwaterFilterBar-BVxaSfzM.js → groundwaterFilterBar-CwNVHLoq.js} +2 -2
- package/dist/{groundwaterFilterBar-4SAnrU9X.cjs → groundwaterFilterBar-Dwoyvzll.cjs} +1 -1
- package/dist/{groundwaterProfileChart-DRv-gvDc.js → groundwaterProfileChart-pYkKSQRV.js} +3 -3
- package/dist/{groundwaterProfileChart-DnJvez9z.cjs → groundwaterProfileChart-xVZS96Bs.cjs} +2 -2
- package/dist/{groundwaterTimeCurve-8phEW2ri.cjs → groundwaterTimeCurve-CCP0yOcn.cjs} +1 -1
- package/dist/{groundwaterTimeCurve-BzBDRU4_.js → groundwaterTimeCurve-CRic1FkR.js} +3 -3
- package/dist/{groupCard-DhMy1k9J.cjs → groupCard-9mvfU5Qi.cjs} +1 -1
- package/dist/{groupCard-BPkVSNiL.js → groupCard-DyiQzmSU.js} +2 -2
- package/dist/{headerBar-BgTO4jul.cjs → headerBar-BnZZrxdl.cjs} +1 -1
- package/dist/{headerBar-DB-bjoAe.js → headerBar-CT2WWLFX.js} +2 -2
- package/dist/{history-D5cJ-xVg.js → history-CY_TCu9h.js} +18 -18
- package/dist/{history-DBDrYQmw.cjs → history-Dm7563t_.cjs} +1 -1
- package/dist/{index-C_ms8XdY.js → index-CPTJIw32.js} +1746 -1711
- package/dist/{index-DFbNT6Tf.cjs → index-DoEyCVDU.cjs} +10 -10
- package/dist/{insarDeformChart-DFF2bMqu.js → insarDeformChart-Bf6Q1Kll.js} +2 -2
- package/dist/{insarDeformChart-D_iGk8_3.cjs → insarDeformChart-D7r5dP7T.cjs} +1 -1
- package/dist/{insarImageViewer-BKewD3Uo.cjs → insarImageViewer-Cj6ywbUG.cjs} +1 -1
- package/dist/{insarImageViewer-B7UgA76F.js → insarImageViewer-CupmlYkz.js} +2 -2
- package/dist/{kds-CukCJwVJ.cjs → kds-BXJfeT1L.cjs} +1 -1
- package/dist/{kds-CacS9fZ_.js → kds-vKrvUAFM.js} +58 -58
- package/dist/{kpiCard-DV13L2GU.js → kpiCard-DxJnC2K1.js} +2 -2
- package/dist/{kpiCard-Cnm06jxN.cjs → kpiCard-SXeIckZe.cjs} +1 -1
- package/dist/{landslideMap-OIYysiUs.cjs → landslideMap-Byzuh2uI.cjs} +1 -1
- package/dist/{landslideMap-BPWu1Ajk.js → landslideMap-g1sW7hGk.js} +3 -3
- package/dist/{landslideWarning-K5mjIcfY.cjs → landslideWarning-DBYw20My.cjs} +1 -1
- package/dist/{landslideWarning-BjlYD19b.js → landslideWarning-K2gltHjy.js} +19 -19
- package/dist/{layerTabs-DTSAS0n2.js → layerTabs-DhKwbCdm.js} +2 -2
- package/dist/{layerTabs-D7fMZ0rB.cjs → layerTabs-pQHCSR8d.cjs} +1 -1
- package/dist/{leaflet-src-CzptRGB3.cjs → leaflet-src-BNvMLv27.cjs} +1 -1
- package/dist/{leaflet-src-BfJff719.js → leaflet-src-CLsvhZ1a.js} +1 -1
- package/dist/{lerc-CF_nGsay.cjs → lerc-7GSCiwa9.cjs} +1 -1
- package/dist/{lerc-CFhWDnG0.js → lerc-CqUbnv8h.js} +2 -2
- package/dist/{lin-CkatVtoy.js → lin-Bq35ycag.js} +6 -6
- package/dist/{lin-D0heXXjR.cjs → lin-D0itRkyl.cjs} +1 -1
- package/dist/{linIndass-DCv39q33.cjs → linIndass-DWiz2vOV.cjs} +1 -1
- package/dist/{linIndass-By83Npy7.js → linIndass-DYq4eFAR.js} +23 -23
- package/dist/{lst-BnazAvWe.cjs → lst-DdajeugL.cjs} +1 -1
- package/dist/{lst-DwAjJP5h.js → lst-qvTez4v1.js} +2 -2
- package/dist/{manualEntry-D3rJV8Lp.js → manualEntry-D33u42uH.js} +2 -2
- package/dist/{manualEntry-DuTfyZYG.cjs → manualEntry-s4RAoEru.cjs} +1 -1
- package/dist/{mapBackground-CJ6ix48H.js → mapBackground-DM72oEn2.js} +3 -3
- package/dist/{mapBackground-Cmhuw3k0.cjs → mapBackground-YtkaIPHY.cjs} +1 -1
- package/dist/{mappingList-5Rz-rwrk.cjs → mappingList-Ch1HZwNc.cjs} +1 -1
- package/dist/{mappingList-CGrZiJZB.js → mappingList-Dy_UeCUf.js} +4 -4
- package/dist/{markdownViewer-Dno96jfr.cjs → markdownViewer-DUjEXMVH.cjs} +1 -1
- package/dist/{markdownViewer-7WA9BEdg.js → markdownViewer-ZlwNlmLZ.js} +6 -6
- package/dist/{mix-control-modal-DgoayPIU.cjs → mix-control-modal-B3FrB7Jt.cjs} +1 -1
- package/dist/{mix-control-modal-Byfb7C-0.js → mix-control-modal-tXOouBPe.js} +8 -8
- package/dist/{mixGrid-Bhl9sZNP.cjs → mixGrid-BU9U3aHI.cjs} +1 -1
- package/dist/{mixGrid-kCUUwHZr.js → mixGrid-CogLsRzO.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +4 -4
- package/dist/{mjpegCamera-B1eioIqH.cjs → mjpegCamera-g6FXbrP3.cjs} +1 -1
- package/dist/{mjpegCamera-Dpfu2Xu6.js → mjpegCamera-xUmmLzM-.js} +2 -2
- package/dist/{monitorAlert-Dyxl86qu.cjs → monitorAlert-DZd5lJOJ.cjs} +1 -1
- package/dist/{monitorAlert-9zu3QFtA.js → monitorAlert-DhE_HvpR.js} +21 -21
- package/dist/{monitorData-CNI-qmu9.js → monitorData-BnEkcdiN.js} +8 -8
- package/dist/{monitorData-BcilR5l6.cjs → monitorData-CpWVhINV.cjs} +1 -1
- package/dist/{monitorSpeedChart-DRfPueFf.js → monitorSpeedChart-CeW-Kk03.js} +1 -1
- package/dist/{monitorSpeedChart-CF67tIu3.cjs → monitorSpeedChart-DwsoytUF.cjs} +1 -1
- package/dist/{mxa-Bh2bYtVW.cjs → mxa-0DZWI1xK.cjs} +1 -1
- package/dist/{mxa-CuLqVCIj.js → mxa-C58deh1I.js} +4 -4
- package/dist/{myValue-B50MoOtL.js → myValue-B4ADQTTG.js} +2 -2
- package/dist/{myValue-DMJxfT2O.cjs → myValue-DQLm9XLI.cjs} +1 -1
- package/dist/{myValueList-BZzwxNxa.cjs → myValueList-DZA9_HEh.cjs} +1 -1
- package/dist/{myValueList-B_3_3_pi.js → myValueList-baXd51uR.js} +2 -2
- package/dist/{objectList-TMPUnr7O.js → objectList-5m0NKALq.js} +4 -4
- package/dist/{objectList-BGh1VKcK.cjs → objectList-BHmAruDg.cjs} +1 -1
- package/dist/{objectListAPP-Bc-piPZb.js → objectListAPP-COZlfKyw.js} +3 -3
- package/dist/{objectListAPP-30bQNnu8.cjs → objectListAPP-Cs7Wu_86.cjs} +1 -1
- package/dist/{percentBar-BprMUT7A.js → percentBar-BV6nG2iK.js} +15 -15
- package/dist/{percentBar-D4xt6lAd.cjs → percentBar-CPfJrspp.cjs} +1 -1
- package/dist/{photo-zl-fLPWx.cjs → photo-C4739K_A.cjs} +1 -1
- package/dist/{photo-DsEC_PV_.js → photo-DK4Z23e3.js} +15 -15
- package/dist/{pie-CUxR3v01.js → pie-Lx2zjyZY.js} +2 -2
- package/dist/{pie-DWhlbF_v.cjs → pie-kb79hzax.cjs} +1 -1
- package/dist/{placeholder-BZFA8p97.cjs → placeholder-CAWJju9d.cjs} +1 -1
- package/dist/{placeholder-DqKmmoWY.js → placeholder-Cv_i5j6V.js} +1 -1
- package/dist/{pressBtn-DIUaklZ-.cjs → pressBtn-DPp2yGFb.cjs} +1 -1
- package/dist/{pressBtn-B2XC73jR.js → pressBtn-DwN7ExMn.js} +7 -7
- package/dist/{processTable-DkOH9QSb.js → processTable-DRzy2-fX.js} +2 -2
- package/dist/{processTable-BTx3mQeL.cjs → processTable-kGjdZ2SC.cjs} +1 -1
- package/dist/{progressBar-xgdal-aW.cjs → progressBar-89gQ5oSf.cjs} +1 -1
- package/dist/{progressBar-BLodNQVU.js → progressBar-D5GyaH8h.js} +2 -2
- package/dist/{progressCircle-CFUGOwCj.js → progressCircle-C0qoN2X2.js} +2 -2
- package/dist/{progressCircle-cTY4gz07.cjs → progressCircle-D6jGTviS.cjs} +1 -1
- package/dist/{qrcode-2Hjwjwae.js → qrcode-B7wIdO7u.js} +2 -2
- package/dist/{qrcode-DQhhuhb6.cjs → qrcode-DutO28qr.cjs} +1 -1
- package/dist/{raceBar-CyXnZF-3.js → raceBar-JrtM5isa.js} +5 -5
- package/dist/{raceBar-DcF016MT.cjs → raceBar-Kb4Ok0_0.cjs} +1 -1
- package/dist/{rad-B14cTKz2.cjs → rad-BKh0I2W8.cjs} +1 -1
- package/dist/{rad-DTJntmoq.js → rad-NhNcdAlO.js} +2 -2
- package/dist/{radarMapViewer-TsQZJeIK.js → radarMapViewer-BrGy_wsI.js} +2 -2
- package/dist/{radarMapViewer-BUB-m2dW.cjs → radarMapViewer-a-NY9MyR.cjs} +1 -1
- package/dist/{rainfallFilterBar-KdmV5zS5.js → rainfallFilterBar-CiVPGG1P.js} +2 -2
- package/dist/{rainfallFilterBar-B8up2RIh.cjs → rainfallFilterBar-DlJryHw0.cjs} +1 -1
- package/dist/{rainfallTimeCurve-Doj6yOAF.js → rainfallTimeCurve-BwrlePpg.js} +3 -3
- package/dist/{rainfallTimeCurve-CiXa2eZ3.cjs → rainfallTimeCurve-cYcKHYUj.cjs} +1 -1
- package/dist/{rangeLin-Dpq9Tvnx.cjs → rangeLin-B24wJK2h.cjs} +1 -1
- package/dist/{rangeLin-D1CqDmua.js → rangeLin-CPKLO87X.js} +18 -18
- package/dist/{realtimeEvolutionMap-DPXP3VM4.cjs → realtimeEvolutionMap-CHQ7-WE1.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-Dl7vcNX_.js → realtimeEvolutionMap-ZFozACoZ.js} +2 -2
- package/dist/{regionBar-BwpGCKZj.js → regionBar-Cz4GtJuo.js} +2 -2
- package/dist/{regionBar-lxLnSNLC.cjs → regionBar-Dgv2JYSM.cjs} +1 -1
- package/dist/{request-DTE7aSW-.cjs → request-Dm2cf1Aw.cjs} +1 -1
- package/dist/{request-CbeEcJTO.js → request-aXSa-Jdv.js} +24 -24
- package/dist/{retainer1-D67S-YCN.js → retainer1-B4KyW6bw.js} +3 -3
- package/dist/{retainer1-C9AaH4tJ.cjs → retainer1-B6byWkE5.cjs} +1 -1
- package/dist/{retainer2-D8XYk-l4.cjs → retainer2-B06eGTYw.cjs} +1 -1
- package/dist/{retainer2-Cbdmf703.js → retainer2-X6vRW_D5.js} +3 -3
- package/dist/{retainerRecordList-CQjYV-M3.cjs → retainerRecordList-C8wYAf_v.cjs} +1 -1
- package/dist/{retainerRecordList-BpK_6Dnu.js → retainerRecordList-DDZSYpCF.js} +4 -4
- package/dist/{retainerRecordListAPP-BFGsCYj8.js → retainerRecordListAPP-B2Lp-jHM.js} +3 -3
- package/dist/{retainerRecordListAPP-CN59kp5A.cjs → retainerRecordListAPP-BHu691JS.cjs} +1 -1
- package/dist/{ringTopN-BeX_3N1q.cjs → ringTopN-BpJZOE13.cjs} +1 -1
- package/dist/{ringTopN-5r3Oe5jp.js → ringTopN-DX7OzPp7.js} +2 -2
- package/dist/{riskRegionTable-NiRJaNeQ.js → riskRegionTable-D7blgvMi.js} +2 -2
- package/dist/{riskRegionTable-DoSf3hpC.cjs → riskRegionTable-DziKMS_2.cjs} +1 -1
- package/dist/{sankey-ByGbWPFb.js → sankey-CmgfktZj.js} +14 -14
- package/dist/{sankey-Bnpk9cLQ.cjs → sankey-DjC4IYit.cjs} +1 -1
- package/dist/{scd-CnENqnZz.cjs → scd-QV9whYOR.cjs} +1 -1
- package/dist/{scd-Cfds38KL.js → scd-zUFKqN8p.js} +2 -2
- package/dist/{sideMenu-BPaBkvIX.js → sideMenu-CI23QNpx.js} +2 -2
- package/dist/{sideMenu-CXIHqey7.cjs → sideMenu-POQpSa8C.cjs} +1 -1
- package/dist/{slopeStability-Dl-cz8Fw.cjs → slopeStability-Da70drIy.cjs} +1 -1
- package/dist/{slopeStability-C9Hla3Dk.js → slopeStability-E55huDws.js} +24 -24
- package/dist/{speedCurve-kxsxCadk.js → speedCurve-BhhUH79z.js} +2 -2
- package/dist/{speedCurve-E6CSZYlW.cjs → speedCurve-DSX1UJeW.cjs} +1 -1
- package/dist/{stackedBar-Bh3u04a1.cjs → stackedBar-B0kr6QB7.cjs} +1 -1
- package/dist/{stackedBar-agXLBb7l.js → stackedBar-bgd2Ls04.js} +2 -2
- package/dist/stationList-BSPTM0iI.cjs +1 -0
- package/dist/{stationList-BUGSaLOZ.js → stationList-D7k3Lot6.js} +243 -239
- package/dist/{stressFilterBar-DP_KLGts.cjs → stressFilterBar-B3gk67B_.cjs} +1 -1
- package/dist/{stressFilterBar-HdY7po9C.js → stressFilterBar-Beupo7Zb.js} +2 -2
- package/dist/{stressTimeCurve-B6s5FgJE.cjs → stressTimeCurve-CbhFLXzA.cjs} +1 -1
- package/dist/{stressTimeCurve-ItQcQKdH.js → stressTimeCurve-DGBhkdbV.js} +3 -3
- package/dist/{swiper-D6TV4ZCd.js → swiper-BEau8Ehu.js} +2 -2
- package/dist/{swiper-Buxmd32g.cjs → swiper-UlVDFht8.cjs} +1 -1
- package/dist/{tablemanCreate-wybANxe3.cjs → tablemanCreate-CF_D5gYW.cjs} +1 -1
- package/dist/{tablemanCreate-CZgA3PsQ.js → tablemanCreate-WnNbHft8.js} +3 -3
- package/dist/{tablemanDetail-BRTZJyW5.cjs → tablemanDetail-_SNevfWv.cjs} +1 -1
- package/dist/{tablemanDetail-DfWhFk1K.js → tablemanDetail-yz3zQnFP.js} +36 -36
- package/dist/{tablemanList-BO_NeJgz.cjs → tablemanList-CDJWp9Pu.cjs} +1 -1
- package/dist/{tablemanList-BaOBHZ0V.js → tablemanList-CzcVRDtI.js} +4 -4
- package/dist/{tablemanTableList-Dbq82Z-h.js → tablemanTableList-Bm2fU0EX.js} +4 -4
- package/dist/{tablemanTableList-sMrfmiA9.cjs → tablemanTableList-DX76_Wzv.cjs} +1 -1
- package/dist/{tablemanUpdate-VmkxfpIh.cjs → tablemanUpdate-wdF6NUSW.cjs} +1 -1
- package/dist/{tablemanUpdate-KALCUbVd.js → tablemanUpdate-zmDu6tfj.js} +3 -3
- package/dist/{terminalConfigList-DjFLDQih.js → terminalConfigList-CCTkfKIn.js} +4 -4
- package/dist/{terminalConfigList-BVI2GPl0.cjs → terminalConfigList-Dpktm7uo.cjs} +1 -1
- package/dist/{terminalList-DQeF169Z.js → terminalList-DTG1Cd-P.js} +4 -4
- package/dist/{terminalList-DuW8drr5.cjs → terminalList-DlnAYr5c.cjs} +1 -1
- package/dist/{terminalListAPP-Brlll6Fx.js → terminalListAPP-BXX0YEmN.js} +3 -3
- package/dist/{terminalListAPP-D1ZHyTf5.cjs → terminalListAPP-DcG5Iu89.cjs} +1 -1
- package/dist/{textbox-DDpkVlaw.cjs → textbox-C5DmbaFz.cjs} +1 -1
- package/dist/{textbox-mnxb35mH.js → textbox-DyFcEXBF.js} +2 -2
- package/dist/{timeQueryBar-EKkIhz9m.js → timeQueryBar-BbWq3QkA.js} +1 -1
- package/dist/{timeQueryBar-BQD19vDp.cjs → timeQueryBar-OqKVqlTl.cjs} +1 -1
- package/dist/{timeSeries-CDjeGZKo.cjs → timeSeries-BDp-gfRT.cjs} +1 -1
- package/dist/{timeSeries-Bk2N1A6L.js → timeSeries-D_-6XcY8.js} +13 -13
- package/dist/{timeSeriesCurve-BRrpaqU8.js → timeSeriesCurve-DgSGvMqB.js} +3 -3
- package/dist/{timeSeriesCurve-CA5W-Oir.cjs → timeSeriesCurve-KPYndFEq.cjs} +1 -1
- package/dist/{toggleBtn-WYU3IUc8.js → toggleBtn-D0JJAMZR.js} +2 -2
- package/dist/{toggleBtn-CGYR01jI.cjs → toggleBtn-DtS2UoB4.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-y4bXsrXJ.cjs → trajectoryConfigPanel-Bth1LMLN.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-BdTmJQzP.js → trajectoryConfigPanel-DxBIMfEx.js} +1 -1
- package/dist/{trajectoryScatter-Clb_fUfI.js → trajectoryScatter-DqgFAVSz.js} +42 -42
- package/dist/{trajectoryScatter-CQik1fcT.cjs → trajectoryScatter-GkbJne40.cjs} +1 -1
- package/dist/{universalConfigPanel-B5k_qOEq.js → universalConfigPanel-BjyXE23U.js} +1 -1
- package/dist/{universalConfigPanel-Dfbc5SvD.cjs → universalConfigPanel-C4Teu_Op.cjs} +1 -1
- package/dist/{universalTable-DoiFrrZH.js → universalTable-BVwrJKq8.js} +2 -2
- package/dist/{universalTable-CcQq8qmA.cjs → universalTable-D_rkyBG2.cjs} +1 -1
- package/dist/{useMixiotPanelPopperClass-BAb3JPdj.js → useMixiotPanelPopperClass-C6Y6iPSp.js} +3 -3
- package/dist/{useMixiotPanelPopperClass-B0l54_PF.cjs → useMixiotPanelPopperClass-DmA-0R1V.cjs} +1 -1
- package/dist/{useTablemanApi-D4G6rvXH.cjs → useTablemanApi-Big2Hfsi.cjs} +1 -1
- package/dist/{useTablemanApi-BXR_OKzO.js → useTablemanApi-CJh5jpVJ.js} +1 -1
- package/dist/{useTablemanFormPanel-JcWza2YJ.js → useTablemanFormPanel-CvrN_jY3.js} +2 -2
- package/dist/{useTablemanFormPanel-DTcITWwz.cjs → useTablemanFormPanel-prjUDI9m.cjs} +1 -1
- package/dist/{useTablemanListActions-COZ3zBoW.cjs → useTablemanListActions-B9SrCZRt.cjs} +1 -1
- package/dist/{useTablemanListActions-BUFJCLAW.js → useTablemanListActions-DVQL1pwu.js} +5 -5
- package/dist/{video-DylR59_l.cjs → video-CdMEjVoF.cjs} +1 -1
- package/dist/{video-CtiQVOnv.js → video-DDHDy4Eq.js} +2 -2
- package/dist/{videoMonitor-tBmgk3mm.cjs → videoMonitor-BZcjaMPX.cjs} +1 -1
- package/dist/{videoMonitor-8rqFRzST.js → videoMonitor-JQ4tj-qi.js} +11 -11
- package/dist/{vlu-B93iwAL3.cjs → vlu-39EqfkCs.cjs} +1 -1
- package/dist/{vlu-Bvbgox5l.js → vlu-Bmqrgnj8.js} +2 -2
- package/dist/{warningOverview-Drd9VneD.js → warningOverview-Ctab9k92.js} +3 -3
- package/dist/{warningOverview-igfNPVvg.cjs → warningOverview-DOsI-iKt.cjs} +1 -1
- package/dist/{weather-BVB786-I.cjs → weather-BfV-w4FG.cjs} +1 -1
- package/dist/{weather-Db_sZvLk.js → weather-BwTT4bPM.js} +2 -2
- package/dist/{windLin-D09MKfNK.cjs → windLin-Dfz6aBio.cjs} +1 -1
- package/dist/{windLin-M0ehkFjJ.js → windLin-DgZctBal.js} +2 -2
- package/package.json +1 -1
- package/dist/stationList-CnwkdvHq.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var 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-DdC8fmD6.cjs"),v=require("./index-DFbNT6Tf.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),y=require("./mix-control-modal-DgoayPIU.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-DKuQG62G.cjs"),v=require("./index-DoEyCVDU.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),y=require("./mix-control-modal-B3FrB7Jt.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;
|
|
@@ -9,7 +9,7 @@ var M = (l, e, o) => e in l ? H(l, e, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
q.call(e, o) && M(l, o, e[o]);
|
|
10
10
|
return l;
|
|
11
11
|
}, I = (l, e) => G(l, J(e));
|
|
12
|
-
var
|
|
12
|
+
var B = (l, e, o) => Q(K(l), o, e);
|
|
13
13
|
var A = (l, e, o) => new Promise((h, v) => {
|
|
14
14
|
var r = (s) => {
|
|
15
15
|
try {
|
|
@@ -30,11 +30,11 @@ import { ElInput as X, ElButton as Z } from "element-plus/es";
|
|
|
30
30
|
import "element-plus/es/components/base/style/css";
|
|
31
31
|
import "element-plus/es/components/button/style/css";
|
|
32
32
|
import "element-plus/es/components/input/style/css";
|
|
33
|
-
import { defineComponent as ee, computed as O, reactive as te, ref as
|
|
34
|
-
import { B as se } from "./BaseComponent-
|
|
35
|
-
import {
|
|
33
|
+
import { defineComponent as ee, computed as O, reactive as te, ref as V, openBlock as z, createElementBlock as E, Fragment as j, 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-Dn65PXTp.js";
|
|
35
|
+
import { B as ne, a as L, _ as ce } from "./index-CPTJIw32.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-tXOouBPe.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 = {
|
|
@@ -103,7 +103,7 @@ const he = { class: "font-[600]" }, ve = { class: "submint" }, be = {
|
|
|
103
103
|
}
|
|
104
104
|
onPreview() {
|
|
105
105
|
return A(this, null, function* () {
|
|
106
|
-
yield
|
|
106
|
+
yield B(h.prototype, this, "onPreview").call(this);
|
|
107
107
|
const i = yield ue(this.props);
|
|
108
108
|
c.authorized = i.authorized, c.password = i.password;
|
|
109
109
|
});
|
|
@@ -122,7 +122,7 @@ const he = { class: "font-[600]" }, ve = { class: "submint" }, be = {
|
|
|
122
122
|
const r = v.getStyle(), x = O(() => re(e.conf.options)), c = te({
|
|
123
123
|
authorized: { type: "black_list", list: [] },
|
|
124
124
|
password: ""
|
|
125
|
-
}), s =
|
|
125
|
+
}), s = V([]), d = V(null), w = V(!0), $ = O(() => {
|
|
126
126
|
var t;
|
|
127
127
|
return ((t = e.conf.data) == null ? void 0 : t.length) === 1;
|
|
128
128
|
}), U = (t) => !me(c.authorized, t.command), N = O(() => s.value.filter((t) => t).length === 0);
|
|
@@ -170,7 +170,7 @@ const he = { class: "font-[600]" }, ve = { class: "submint" }, be = {
|
|
|
170
170
|
};
|
|
171
171
|
return (t, i) => {
|
|
172
172
|
const a = X, u = Z;
|
|
173
|
-
return
|
|
173
|
+
return z(), E(j, null, [
|
|
174
174
|
p("div", {
|
|
175
175
|
class: "mix-component",
|
|
176
176
|
style: g({ backgroundColor: f(r).bgColor, borderRadius: `${f(r).radiusSize}px` })
|
|
@@ -185,7 +185,7 @@ const he = { class: "font-[600]" }, ve = { class: "submint" }, be = {
|
|
|
185
185
|
class: "mix-body",
|
|
186
186
|
style: g({ height: f(r).isHideTitle ? "100%" : "calc(100% - 42px)" })
|
|
187
187
|
}, [
|
|
188
|
-
(
|
|
188
|
+
(z(!0), E(j, null, oe(l.conf.data, (n, m) => (z(), E("div", {
|
|
189
189
|
class: "set-item",
|
|
190
190
|
key: m,
|
|
191
191
|
style: g({ fontSize: `${f(r).textSize}px`, color: f(r).textColor })
|
|
@@ -229,7 +229,7 @@ const he = { class: "font-[600]" }, ve = { class: "submint" }, be = {
|
|
|
229
229
|
], 64);
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
|
-
})),
|
|
232
|
+
})), Be = /* @__PURE__ */ ce(xe, [["__scopeId", "data-v-9fb911b4"]]);
|
|
233
233
|
export {
|
|
234
|
-
|
|
234
|
+
Be as default
|
|
235
235
|
};
|
|
@@ -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-DKuQG62G.cjs"),b=require("./index-DoEyCVDU.cjs"),G=require("./titleStyle-NSnz6cUg.cjs"),E=require("./mix-control-modal-B3FrB7Jt.cjs"),I=require("element-plus"),M=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),J={class:"font-[600]"},K={class:"submint"},Y={DEFAULT_ICON:M.DEFAULT_ICON,ACTIVE_ICON:M.ACTIVE_ICON,NAME_CN:"参数控件",NAME_EN:"Parameter Control",ORDER:1,PLATFORM:["pc","screen","mobile"]},Q={bgColor:"#fff",titleColor:"#111",textColor:"#111",titleSize:14,textSize:14,labelWidth:100,radiusSize:8,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.params.verifyMethod",options:"CONTROL_OPTIONS"}},X=[{command:"Control_01",name:"参数一",unit:"",fv:""}],Z=["name","fv","command","unit"],ee=["mosaic"],te={useAlias:!1,multiObject:!1,hideMultiObject:!0},le={DEFAULT:Y,OPTIONS:Q,DATA:X,PARAMS:Z,SOURCE:ee,COMMON:te},oe=e.defineComponent(A(z({},le),{__name:"ctrSet",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""},socketData:{type:Object,default:()=>({})}},setup(a){const t=a,o="--";class f extends H.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),titleSize:this.getOptionValue("titleSize",14),textSize:this.getOptionValue("textSize",12),labelWidth:this.getOptionValue("labelWidth",100),radiusSize:this.getOptionValue("radiusSize",4),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return O(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme()})}onPreview(){return O(this,null,function*(){yield T(f.prototype,this,"onPreview").call(this);const n=yield E.getAuthorized(this.props);r.authorized=n.authorized,r.password=n.password})}setSocketData(n){if(!n)return;const{data:i}=this.props.conf;i.forEach(m=>{const c=this.extractDataValue(n,m.fv);m.value=c!=null?c:o})}}const h=new f(t,"ctrSet");h.setupLifecycle();const u=h.getStyle(),_=e.computed(()=>G.generateTitleStyle(t.conf.options)),r=e.reactive({authorized:{type:"black_list",list:[]},password:""}),s=e.ref([]),d=e.ref(null),C=e.ref(!0),D=e.computed(()=>{var l;return((l=t.conf.data)==null?void 0:l.length)===1}),P=l=>!E.checkPermission(r.authorized,l.command),V=e.computed(()=>s.value.filter(l=>l).length===0);e.computed(()=>{var n,i;const{data:l}=t.conf;return(((n=l==null?void 0:l[0])==null?void 0:n.value)||o)+" "+(((i=l==null?void 0:l[0])==null?void 0:i.unit)||"")});const B=()=>{var i;const{options:l}=t.conf,n=((i=l==null?void 0:l.method)==null?void 0:i.value)||"alway";n==="alway"||n==="once"&&C.value?d.value.modal.visible=!0:N()},N=()=>{var p,y;const{common:l,data:n,options:i}=t.conf,m=JSON.parse(sessionStorage.getItem(b.ALIAS_MAPPING_KEY)||"{}")||{},c=l.useAlias?m[l.object_alias]:l.object_id||t.uid;if(D.value){const S={block_mapping:"mapping",action:"publish_command",object_id:c,command:n[0].command,value:s.value[0],control:r.password,rule:((p=i==null?void 0:i.method)==null?void 0:p.value)||"alway"};b.api.platform(g=>{g.code===200&&(I.ElMessage.success(g.msg),d.value.modal.visible=!1,C.value=!1)},S)}else{const S=[];s.value.forEach((v,q)=>{v&&S.push({object_id:c,command:n[q].command,value:v})});const g={block_mapping:"mapping",action:"publish_command_plus",publishes:S,control:r.password,rule:((y=i==null?void 0:i.method)==null?void 0:y.value)||"alway"};b.api.platform(v=>{v.code===200&&(I.ElMessage.success(v.msg),d.value.modal.visible=!1,C.value=!1)},g)}};return(l,n)=>{const i=k.ElInput,m=k.ElButton;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(u).bgColor,borderRadius:`${e.unref(u).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title flex-1",style:e.normalizeStyle(_.value)},[e.createElementVNode("div",J,e.toDisplayString(a.conf.caption||a.conf.name),1)],4),e.createElementVNode("div",{class:"mix-body",style:e.normalizeStyle({height:e.unref(u).isHideTitle?"100%":"calc(100% - 42px)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.conf.data,(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:"set-item",key:p,style:e.normalizeStyle({fontSize:`${e.unref(u).textSize}px`,color:e.unref(u).textColor})},[e.createElementVNode("div",{class:"item-name",style:e.normalizeStyle({width:`${e.unref(u).labelWidth}px`})},e.toDisplayString(c.name),5),e.createVNode(i,{modelValue:s.value[p],"onUpdate:modelValue":y=>s.value[p]=y,disabled:P(c)},null,8,["modelValue","onUpdate:modelValue","disabled"]),e.createVNode(i,{value:c.value?`${c.value} ${c.unit}`:o,style:{width:"100px","margin-left":"12px"},readonly:""},null,8,["value"])],4))),128)),e.createElementVNode("div",K,[e.createVNode(m,{type:V.value?"default":"primary",onClick:B,disabled:V.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])],4),e.renderSlot(l.$slots,"default",{},void 0,!0)],4),e.createVNode(E._sfc_main,{ref_key:"controlRef",ref:d,onSubmit:N,password:r.password},null,8,["password"])],64)}}})),ae=b._export_sfc(oe,[["__scopeId","data-v-9fb911b4"]]);exports.default=ae;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
1
|
+
var I = Object.defineProperty, D = Object.defineProperties;
|
|
2
2
|
var R = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var L = Object.getOwnPropertySymbols, j = Object.getPrototypeOf, H = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable, $ = Reflect.get;
|
|
4
|
-
var k = (s, e, t) => e in s ?
|
|
4
|
+
var k = (s, e, t) => e in s ? I(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, z = (s, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
6
|
H.call(e, t) && k(s, t, e[t]);
|
|
7
7
|
if (L)
|
|
@@ -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 {
|
|
31
|
+
import { B as Y } from "./BaseComponent-Dn65PXTp.js";
|
|
32
|
+
import { a5 as q, B as Q, a as X, _ as t1 } from "./index-CPTJIw32.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-tXOouBPe.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,
|
|
@@ -148,7 +148,7 @@ const l1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
148
148
|
d.mode = c, d.item = l, d.rule = a, a === "alway" || a === "once" && v.value ? u.value.modal.visible = !0 : y();
|
|
149
149
|
}, y = () => {
|
|
150
150
|
const { mode: c, item: l, rule: o } = d, { common: a } = e.conf, n = JSON.parse(sessionStorage.getItem(Q) || "{}");
|
|
151
|
-
let
|
|
151
|
+
let B = {
|
|
152
152
|
block_mapping: "mapping",
|
|
153
153
|
action: "publish_command",
|
|
154
154
|
object_id: a.useAlias ? n[a.object_alias] : a.object_id || e.uid,
|
|
@@ -159,7 +159,7 @@ const l1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
159
159
|
};
|
|
160
160
|
X.platform((O) => {
|
|
161
161
|
O.code === 200 && (V.success(O.msg), u.value.modal.visible = !1, v.value = !1);
|
|
162
|
-
},
|
|
162
|
+
}, B);
|
|
163
163
|
};
|
|
164
164
|
return (c, l) => (S(), x(E, null, [
|
|
165
165
|
r("div", {
|
|
@@ -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-DKuQG62G.cjs"),h=require("./index-DoEyCVDU.cjs"),D=require("./titleStyle-NSnz6cUg.cjs"),S=require("./mix-control-modal-B3FrB7Jt.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;
|
|
@@ -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-Dn65PXTp.js";
|
|
27
|
+
import { _ as el } from "./index-CPTJIw32.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-DdC8fmD6.cjs"),Ee=require("./index-DFbNT6Tf.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-DKuQG62G.cjs"),Ee=require("./index-DoEyCVDU.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;
|
|
@@ -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-Dn65PXTp.js";
|
|
26
|
+
import { d as Y, _ as st } from "./index-CPTJIw32.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,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-DdC8fmD6.cjs"),N=require("./index-DFbNT6Tf.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-DKuQG62G.cjs"),N=require("./index-DoEyCVDU.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;
|
|
@@ -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-CPTJIw32.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: {
|
|
@@ -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-DoEyCVDU.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;
|