mixdashboards 1.0.71 → 1.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseComponent-D5tlYehc.js → BaseComponent-CBagahPU.js} +138 -109
- package/dist/BaseComponent-Chnv4fBT.cjs +1 -0
- package/dist/{EChartComponentBase-CAabYXSj.js → EChartComponentBase-cFfawl6h.js} +2 -2
- package/dist/{EChartComponentBase-D4wMej9X.cjs → EChartComponentBase-dLE5F7Tt.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-Th4ZNdCb.js → EmergencyPlanPanel--jTGG89o.js} +1 -1
- package/dist/{EmergencyPlanPanel-D96XjhRq.cjs → EmergencyPlanPanel-BJb-Bbxh.cjs} +1 -1
- package/dist/{HistoryPlanDialog-rn2Bp0Gx.cjs → HistoryPlanDialog-C-QPdV4V.cjs} +1 -1
- package/dist/{HistoryPlanDialog-D2mQLhkO.js → HistoryPlanDialog-DerClU2U.js} +1 -1
- package/dist/{MonitoringMap-BZ98NYTJ.cjs → MonitoringMap-B6RMbiIS.cjs} +1 -1
- package/dist/{MonitoringMap-Coozb35G.js → MonitoringMap-CNaGsq83.js} +2 -2
- package/dist/UniverSheet-CM-vvc23.cjs +1 -0
- package/dist/{UniverSheet-CJCunVAM.js → UniverSheet-KI09RqKm.js} +16 -15
- package/dist/{accelerationChart-DacjcSHD.js → accelerationChart-D7KNk5fI.js} +61 -59
- package/dist/accelerationChart-HBCb2bRW.cjs +6 -0
- package/dist/{actionItem-d-4p5HZK.js → actionItem-BmNYzAXu.js} +48 -41
- package/dist/actionItem-Bx4mW0jP.cjs +1 -0
- package/dist/alarmLevelChart-Cvnw4z1w.cjs +2 -0
- package/dist/{alarmLevelChart-DddN1NVy.js → alarmLevelChart-DdSw2s7W.js} +91 -46
- package/dist/{alertTable-Q-Waa5jf.js → alertTable-CC3c8DFb.js} +40 -39
- package/dist/alertTable-hH6HA9pY.cjs +1 -0
- package/dist/aliasObjectSelectorDemo-C7E_fnCf.cjs +1 -0
- package/dist/{aliasObjectSelectorDemo-BZygQw9k.js → aliasObjectSelectorDemo-yDiavTpG.js} +11 -10
- package/dist/{annualRainfallChart-CthANCvn.js → annualRainfallChart-B9ar8vo8.js} +32 -30
- package/dist/annualRainfallChart-C6JLSPIf.cjs +1 -0
- package/dist/{aqi-C_HnKsjh.js → aqi-BNc5QCM3.js} +21 -19
- package/dist/{aqi-BFW_8xYd.cjs → aqi-DEiCVIVa.cjs} +3 -3
- package/dist/aqiIndass-Bowic_Pc.cjs +3 -0
- package/dist/{aqiIndass-NVRa3lmj.js → aqiIndass-CAGV8_Uf.js} +41 -40
- package/dist/{areaDeformCurve-mQiOHdtN.js → areaDeformCurve-CSpR060t.js} +51 -49
- package/dist/areaDeformCurve-CVy23kV2.cjs +1 -0
- package/dist/arrayCard-NqoQKcE9.cjs +1 -0
- package/dist/{arrayCard-DZitcjMs.js → arrayCard-PPDb7U6X.js} +29 -28
- package/dist/{audio-CDAMVEgC.js → audio-BJPFIQIr.js} +42 -41
- package/dist/audio-Bw-GaYe1.cjs +1 -0
- package/dist/{bar--JrlRud9.js → bar-C38h_mUA.js} +72 -70
- package/dist/{bar-C7uQADV1.cjs → bar-Cru6WosS.cjs} +2 -2
- package/dist/bmp-BXaEkkpa.cjs +1 -0
- package/dist/{bmp-DrVcnYxy.js → bmp-BnSOaFEr.js} +15 -14
- package/dist/box-CKuGsh2k.cjs +1 -0
- package/dist/{box-szcLhted.js → box-DIHVOqrV.js} +58 -57
- package/dist/chartConfigPanel-BVdVXbs6.cjs +1 -0
- package/dist/{chartConfigPanel-C32o1gyJ.js → chartConfigPanel-D1rO6SGh.js} +86 -79
- package/dist/{circleBar-CeL2rqMJ.cjs → circleBar-BzXqA-Cz.cjs} +3 -3
- package/dist/{circleBar-BmTjsLHo.js → circleBar-CBLcp4Xi.js} +27 -25
- package/dist/{clock-CuQpD76K.js → clock-4AMfFDGC.js} +35 -34
- package/dist/clock-DmWyBpo-.cjs +1 -0
- package/dist/clt-CmPPtp9c.cjs +1 -0
- package/dist/{clt-XCswxZ6i.js → clt-D5i_8-pq.js} +60 -59
- package/dist/cmc-8jH3DGv9.cjs +1 -0
- package/dist/{cmc-CXmAv6fz.js → cmc-Cjb5w3om.js} +23 -22
- package/dist/{cmp-Duz_v-LC.js → cmp-COJzlQPa.js} +19 -18
- package/dist/{cmp-DmpxjexT.cjs → cmp-CpmGtNal.cjs} +2 -2
- package/dist/{composite-CWgy-w61.js → composite-CsFgfxih.js} +37 -36
- package/dist/{composite-DdHASMFQ.cjs → composite-DLmzZNIj.cjs} +3 -3
- package/dist/{conclusionCard-BtB0rARK.js → conclusionCard-BQUlLFde.js} +15 -14
- package/dist/conclusionCard-C-TT6znN.cjs +1 -0
- package/dist/{controlList-C0AQ8Yb8.js → controlList-5D5UIDQL.js} +40 -38
- package/dist/controlList-CIwzKylK.cjs +1 -0
- package/dist/{controlRecordList-CSPKG1HU.js → controlRecordList-Cp5mmEQ1.js} +55 -53
- package/dist/controlRecordList-uEQ3ohmB.cjs +1 -0
- package/dist/controlRecordListAPP-B5d4x_xH.cjs +1 -0
- package/dist/controlRecordListAPP-p_skbQVD.js +502 -0
- package/dist/{crd-DQruf9o3.js → crd-8gRWMf2Y.js} +14 -13
- package/dist/crd-Dfl2XKAx.cjs +1 -0
- package/dist/{ctrBtn-jEWTt_f2.js → ctrBtn-BzmFxucy.js} +106 -107
- package/dist/ctrBtn-OOgL9esv.cjs +1 -0
- package/dist/{ctrSet-C4wCODMY.js → ctrSet-Btg2T9w6.js} +24 -23
- package/dist/ctrSet-CifyJt05.cjs +1 -0
- package/dist/ctrSwitch-6nMHbIE7.js +206 -0
- package/dist/ctrSwitch-C8mwxLPe.cjs +1 -0
- package/dist/{dataManagement-BQVZS7Hi.js → dataManagement-BZiSmktM.js} +52 -45
- package/dist/dataManagement-sQpuBaDz.cjs +1 -0
- package/dist/{dataReport-vP1LBJjE.js → dataReport-CbJzXeCE.js} +25 -24
- package/dist/{dataReport-DRopth3A.cjs → dataReport-D9Q9c43B.cjs} +2 -2
- package/dist/{dataTable-C2AgSR36.cjs → dataTable-BJ4SVFbu.cjs} +1 -1
- package/dist/{dataTable-B1FQ3XIq.js → dataTable-BuBB0b-A.js} +1 -1
- package/dist/datetime-B66VgJL1.cjs +1 -0
- package/dist/{datetime-DU3rzi1v.js → datetime-DO03QrXz.js} +25 -24
- package/dist/deepClusterSlipSurface-BqT55vkY.cjs +1 -0
- package/dist/{deepClusterSlipSurface-BHwB0eu9.js → deepClusterSlipSurface-DpSAXgFf.js} +45 -43
- package/dist/{deepDataMatrix-C3uKZmon.js → deepDataMatrix-CPrIOv5r.js} +46 -45
- package/dist/deepDataMatrix-DZZaTMbD.cjs +1 -0
- package/dist/{deepDisplacement3D-BBYgB-rK.cjs → deepDisplacement3D-Cd9nwwPt.cjs} +3 -3
- package/dist/{deepDisplacement3D-CDNPul6D.js → deepDisplacement3D-JlMej7-5.js} +9 -7
- package/dist/{deepDisplacementChart-C_pwwgIC.js → deepDisplacementChart-BiDt60xI.js} +89 -88
- package/dist/deepDisplacementChart-CALM3gna.cjs +5 -0
- package/dist/deepDisplacementChart-CEaj2bUV.cjs +6 -0
- package/dist/{deepDisplacementChart-C6GQHO-J.js → deepDisplacementChart-CjlGpeHj.js} +54 -52
- package/dist/{deepDisplacementView-C837RNer.js → deepDisplacementView-BpUw-b-i.js} +37 -36
- package/dist/deepDisplacementView-CoSNzN1q.cjs +8 -0
- package/dist/deepNodeTemperatureChart-DPN0rYir.cjs +1 -0
- package/dist/{deepNodeTemperatureChart-BcH3ZNi4.js → deepNodeTemperatureChart-DfZq7kLx.js} +50 -48
- package/dist/{deepTangentAngleChart-DSpCyIdq.js → deepTangentAngleChart-Ca01hah9.js} +92 -90
- package/dist/deepTangentAngleChart-Dg9PJspK.cjs +1 -0
- package/dist/deepTemperatureField-BqDB97SW.cjs +1 -0
- package/dist/{deepTemperatureField-B2qIHL1-.js → deepTemperatureField-CYBTjhEp.js} +95 -93
- package/dist/deepTrendChart-B5BAHTeY.cjs +1 -0
- package/dist/{deepTrendChart-DFGSV17a.js → deepTrendChart-DBjxV7_A.js} +56 -54
- package/dist/{deviceOnlineStatus-CiIFdo9I.js → deviceOnlineStatus-1eoHCl_-.js} +58 -50
- package/dist/deviceOnlineStatus-DHzaAzCp.cjs +2 -0
- package/dist/deviceStatus-4BMy4qBD.cjs +1 -0
- package/dist/{deviceStatus-Dd1pqVnO.js → deviceStatus-90rQa1uj.js} +61 -60
- package/dist/{displacementDataTable-CGIHGxye.js → displacementDataTable-BArwj-xp.js} +52 -51
- package/dist/displacementDataTable-BLWjiaRQ.cjs +1 -0
- package/dist/{displacementTrajectoryChart-RL97CTML.js → displacementTrajectoryChart-CxOPJVlD.js} +34 -32
- package/dist/displacementTrajectoryChart-DfJMOCFJ.cjs +22 -0
- package/dist/{displacementTrendChart-Bqnv7hiP.js → displacementTrendChart-4E6cDsX8.js} +49 -48
- package/dist/displacementTrendChart-Cuxa5iTp.cjs +5 -0
- package/dist/{dxf-BQoArgPS.cjs → dxf-BgklkksV.cjs} +1 -1
- package/dist/{dxf-DBu1iA-r.js → dxf-BogwbJID.js} +5 -4
- package/dist/{dzc-DMVPjosV.cjs → dzc-CApfzriC.cjs} +2 -2
- package/dist/{dzc-7tLxe18d.js → dzc-D7tTBLaA.js} +24 -22
- package/dist/emergencyPlan-BuFz4XFc.cjs +1 -0
- package/dist/{emergencyPlan-C9Edkw51.js → emergencyPlan-CjbuX-N5.js} +19 -18
- package/dist/evn-BcSenXF3.cjs +1 -0
- package/dist/{evn-CeLoYCUr.js → evn-DTPm72ZM.js} +23 -22
- package/dist/evolutionChart-CrwR8i40.cjs +1 -0
- package/dist/{evolutionChart-DAlncdLU.js → evolutionChart-D1dVKWOt.js} +25 -23
- package/dist/{fileViewer-BFMFEN2f.js → fileViewer-BNHwlZRa.js} +57 -56
- package/dist/fileViewer-BUuST3Rp.cjs +1 -0
- package/dist/filterBar-BJzjPFFg.cjs +1 -0
- package/dist/{filterBar-qJJKdxYE.js → filterBar-CRJinh5K.js} +44 -43
- package/dist/fireCombustionCurve-BGdJ1ybj.cjs +1 -0
- package/dist/{fireCombustionCurve-DyRikhHw.js → fireCombustionCurve-BZ6qJ1kq.js} +69 -67
- package/dist/fireFilterBar-DZejT0oL.cjs +1 -0
- package/dist/{fireFilterBar-DkjBGPXa.js → fireFilterBar-KvvbsCsZ.js} +25 -24
- package/dist/{fireHistoryTable-ldXil5up.js → fireHistoryTable-80ygqnOG.js} +73 -65
- package/dist/fireHistoryTable-CMSGKb3w.cjs +3 -0
- package/dist/gag-1bvAZ5m6.cjs +1 -0
- package/dist/{gag-KZfFHn72.js → gag-D2obj7AF.js} +30 -28
- package/dist/{gasStationList-Btoo_olJ.js → gasStationList-DM-laJsi.js} +527 -526
- package/dist/gasStationList-DjJtXnqL.cjs +1 -0
- package/dist/{geo3dViewer-Cif9uFqd.cjs → geo3dViewer-CL_89mQf.cjs} +1 -1
- package/dist/{geo3dViewer-iZhkCiTP.js → geo3dViewer-FhmMIvMJ.js} +12 -5
- package/dist/{glbModel-MJZgDSJf.js → glbModel-B0nWYYJQ.js} +19 -18
- package/dist/{glbModel-2xydaxDT.cjs → glbModel-DakMJal6.cjs} +3 -3
- package/dist/{globalObjectSelector-CHtYGpi9.js → globalObjectSelector-Gv4srHhp.js} +79 -78
- package/dist/globalObjectSelector-jNzZxdnL.cjs +1 -0
- package/dist/{gnssFilterBar-CPis6bUI.js → gnssFilterBar-C4rpyNw3.js} +70 -63
- package/dist/gnssFilterBar-kEIW7Tjs.cjs +1 -0
- package/dist/{gnssHistoryTable-kHZY48EZ.js → gnssHistoryTable-CyMwQJ7_.js} +58 -50
- package/dist/gnssHistoryTable-DRKlP8-b.cjs +3 -0
- package/dist/{gnssMapView-BNIkieqL.cjs → gnssMapView-DpExCi0x.cjs} +4 -4
- package/dist/{gnssMapView-DXP8yz0v.js → gnssMapView-EVufCGrW.js} +174 -167
- package/dist/{gnssSectionProfile-DEUDEvJ1.js → gnssSectionProfile-CaJwF9wp.js} +41 -34
- package/dist/gnssSectionProfile-DdcOMdNC.cjs +1 -0
- package/dist/{gnssTimeSeriesChart-C_xqd0su.js → gnssTimeSeriesChart-iffDvMNx.js} +57 -49
- package/dist/gnssTimeSeriesChart-y11Y8k2-.cjs +1 -0
- package/dist/{gnssXYTrajectory-GqgFw_qK.js → gnssXYTrajectory-C_1fuLWn.js} +53 -45
- package/dist/gnssXYTrajectory-DGBGGDwi.cjs +5 -0
- package/dist/grd-C4hCrpvH.cjs +1 -0
- package/dist/{grd-QCuVN1jE.js → grd-FfuMQJb7.js} +43 -42
- package/dist/{grdIndass-BEcfZTYw.js → grdIndass-BTbZmPLZ.js} +30 -29
- package/dist/grdIndass-CyuRKD5H.cjs +1 -0
- package/dist/{grg-CMVrF5tB.js → grg-CcnI5kRY.js} +27 -26
- package/dist/grg-Cuxa17d6.cjs +1 -0
- package/dist/gridview-CKjBuTRq.cjs +1 -0
- package/dist/{gridview-Cd3Tqzph.js → gridview-ffVc5Wvg.js} +32 -31
- package/dist/groundwaterFilterBar-D3l7GLVY.cjs +1 -0
- package/dist/{groundwaterFilterBar-D7lrbzDC.js → groundwaterFilterBar-DaPR-kbl.js} +13 -12
- package/dist/groundwaterProfileChart-BxJKIPXF.cjs +11 -0
- package/dist/{groundwaterProfileChart-Bjtqz-Zv.js → groundwaterProfileChart-DoSx7WWp.js} +42 -40
- package/dist/groundwaterTimeCurve-Bp5MxM9k.cjs +1 -0
- package/dist/{groundwaterTimeCurve-Bu6vgAaC.js → groundwaterTimeCurve-D-SdVYeq.js} +57 -55
- package/dist/{groupCard-CPvAsuPb.cjs → groupCard-BzUQ8xY0.cjs} +1 -1
- package/dist/{groupCard-DQvEe6cc.js → groupCard-COMEkzIb.js} +29 -28
- package/dist/headerBar-iFe0YQKE.cjs +1 -0
- package/dist/{headerBar-CGOtSvFn.js → headerBar-ouXO8bzC.js} +48 -47
- package/dist/{history-D6C3tSut.js → history-BZ869y2d.js} +18 -18
- package/dist/{history-9ToM-rJ6.cjs → history-MxYUUwkm.cjs} +1 -1
- package/dist/index-DVqMfQVc.cjs +612 -0
- package/dist/{index-Bdq33405.js → index-DwPJu6XM.js} +1159 -1128
- package/dist/{insarDeformChart-Ls-cdqaP.js → insarDeformChart-5BhCUq8L.js} +24 -17
- package/dist/insarDeformChart-Ca3AMsBk.cjs +1 -0
- package/dist/{insarImageViewer-Dnke9JDG.js → insarImageViewer-DHNxmLpa.js} +41 -34
- package/dist/insarImageViewer-DWPsoHz6.cjs +1 -0
- package/dist/{kds-B4BKGG0r.js → kds-BYZC4pIM.js} +57 -50
- package/dist/{kds-BjX5tXhF.cjs → kds-Dpf_3WWj.cjs} +2 -2
- package/dist/{kpiCard-C77vHJ_E.js → kpiCard-CStPtl-c.js} +5 -4
- package/dist/kpiCard-OLJgA48-.cjs +2 -0
- package/dist/{landslideMap-BEkbnCqP.js → landslideMap-BUq0x7rd.js} +34 -33
- package/dist/landslideMap-JTdoQjW-.cjs +1 -0
- package/dist/{landslideWarning-C5upI2cf.js → landslideWarning-VAn9XGUj.js} +55 -54
- package/dist/landslideWarning-ZA5LCsIr.cjs +1 -0
- package/dist/{layerTabs-DoGw1Jfv.js → layerTabs-CAJ6f-2W.js} +40 -38
- package/dist/layerTabs-CdhowHB1.cjs +1 -0
- package/dist/{leaflet-src-BUWIqhPn.cjs → leaflet-src-CxFQ_Cn7.cjs} +1 -1
- package/dist/{leaflet-src-DFE_g2gF.js → leaflet-src-DNO2-OsP.js} +1 -1
- package/dist/{lerc-CXc9KSRL.js → lerc-bF2jqjoV.js} +2 -2
- package/dist/{lerc-BBgQP785.cjs → lerc-qU4WKXeS.cjs} +1 -1
- package/dist/{lin-ClO2MqZl.cjs → lin-BHI2KgyW.cjs} +2 -2
- package/dist/{lin-Difz8N88.js → lin-DbQw7wZw.js} +20 -18
- package/dist/linIndass-CIrObeZT.cjs +2 -0
- package/dist/{linIndass-DqXVOBh3.js → linIndass-Cd9Hjzs_.js} +31 -30
- package/dist/lst-BRsEe-Hq.cjs +1 -0
- package/dist/{lst-4RMMZZkY.js → lst-C3C2m1v_.js} +40 -39
- package/dist/{manualEntry-B3_4Z-Lj.js → manualEntry-B8TDMcDg.js} +29 -22
- package/dist/manualEntry-C3_WtYz8.cjs +1 -0
- package/dist/{mapBackground-B3OHQsXZ.js → mapBackground-BrVIQUcT.js} +21 -20
- package/dist/{mapBackground-Bmt-oZt6.cjs → mapBackground-Du7R_ICY.cjs} +2 -2
- package/dist/{mappingList-DVj7H206.js → mappingList-BpJUawmv.js} +22 -20
- package/dist/mappingList-C5OZ8oUx.cjs +1 -0
- package/dist/{markdownViewer-fheM5uV4.js → markdownViewer-CoRrvdY7.js} +16 -15
- package/dist/{markdownViewer-BAuNEWRt.cjs → markdownViewer-D96bwxEt.cjs} +2 -2
- package/dist/materialFileUrl-CubtnHeq.js +108 -0
- package/dist/materialFileUrl-DfPNm265.cjs +1 -0
- package/dist/{mix-control-modal-BoYynGT2.cjs → mix-control-modal-DwxwW65v.cjs} +1 -1
- package/dist/{mix-control-modal-BBiKe4MM.js → mix-control-modal-Qg_mzyT_.js} +1 -1
- package/dist/{mixGrid-BUjP1qv2.js → mixGrid-CtJWul6c.js} +44 -43
- package/dist/mixGrid-Hj0OJjkg.cjs +1 -0
- package/dist/mixMap-CJzmC0IR.cjs +1 -0
- package/dist/{mixMap-DPIwyKuP.js → mixMap-E36SDnEa.js} +36 -35
- package/dist/mixModel-BMRxhvWn.cjs +3 -0
- package/dist/{mixModel-CIdQp4V9.js → mixModel-_McJ6OuH.js} +30 -29
- package/dist/{mixPie-C6OhdOCV.js → mixPie-CMOkAe9p.js} +31 -30
- package/dist/mixPie-MAKXeYVp.cjs +2 -0
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/mixiotObjectListApi-BaeBL318.js +82 -0
- package/dist/mixiotObjectListApi-D9OyHNQ3.cjs +1 -0
- package/dist/mjpegCamera-BY7pmbDc.cjs +1 -0
- package/dist/{mjpegCamera-Cd1vhZ5v.js → mjpegCamera-Dc4IsJA6.js} +12 -11
- package/dist/monitorAlert-DVNvJyTy.cjs +1 -0
- package/dist/{monitorAlert-DIJtH557.js → monitorAlert-F8QFOchR.js} +45 -44
- package/dist/monitorData-AkPbhJ9q.cjs +1 -0
- package/dist/{monitorData-B6jhpzVK.js → monitorData-BzqNIdrW.js} +61 -59
- package/dist/{monitorSpeedChart-DF5zvxs9.js → monitorSpeedChart-348U37LW.js} +22 -21
- package/dist/{monitorSpeedChart-EIcGs3NX.cjs → monitorSpeedChart-DVH1xihw.cjs} +2 -2
- package/dist/{mxa-COxjxwpC.js → mxa-CkJjCHA-.js} +29 -27
- package/dist/{mxa-BfwIV49n.cjs → mxa-DShU528J.cjs} +2 -2
- package/dist/myValue-BCeycpdO.cjs +1 -0
- package/dist/{myValue-Crba15Wc.js → myValue-CEfp19i2.js} +17 -16
- package/dist/myValueList-CAPOW8TK.cjs +1 -0
- package/dist/{myValueList-m2yaIcuf.js → myValueList-y3GR4AX2.js} +41 -40
- package/dist/objectList-4rYQk5uq.cjs +1 -0
- package/dist/{objectList-BwZJzrXs.js → objectList-D16yLbzD.js} +538 -599
- package/dist/objectListAPP-DCwTyqFp.js +1864 -0
- package/dist/objectListAPP-Db5beOAM.cjs +1 -0
- package/dist/photo-BV6rkbWO.js +811 -0
- package/dist/photo-D67wLRkY.cjs +1 -0
- package/dist/{pie-CSLVJv0Y.cjs → pie-BeRwVkTk.cjs} +2 -2
- package/dist/{pie-C9MU90ON.js → pie-bNKhq6ak.js} +16 -14
- package/dist/{placeholder-CRARTMF4.js → placeholder-_iK4rVyU.js} +26 -25
- package/dist/placeholder-zByzfWaH.cjs +1 -0
- package/dist/{pressBtn-CkYcW1a8.js → pressBtn-B-rZPXK2.js} +124 -124
- package/dist/pressBtn-BjqYIPC-.cjs +1 -0
- package/dist/processTable-ByPlSKRJ.cjs +3 -0
- package/dist/{processTable-BgAhGGAq.js → processTable-s_y8uups.js} +12 -11
- package/dist/{progressBar-BbDFps1r.cjs → progressBar-CRdA7oJT.cjs} +1 -1
- package/dist/{progressBar-CIPUVeaf.js → progressBar-DskxZk1P.js} +19 -18
- package/dist/{progressCircle-DDc5zsd6.js → progressCircle-BE_Am-AP.js} +13 -12
- package/dist/{progressCircle-CgkZ1EC1.cjs → progressCircle-CHe-12Hb.cjs} +1 -1
- package/dist/{qrcode-CQbWGVgq.cjs → qrcode-D8cFyUpL.cjs} +1 -1
- package/dist/{qrcode-CCu677Ad.js → qrcode-Dgth6KwU.js} +39 -38
- package/dist/{raceBar-CzNGSYCt.cjs → raceBar-CeybrpCB.cjs} +3 -3
- package/dist/{raceBar-Cn8oPhCE.js → raceBar-DV-3KFg2.js} +18 -16
- package/dist/rad-BerkC70H.cjs +1 -0
- package/dist/{rad-D_cLWeMk.js → rad-BhsfF0XI.js} +22 -20
- package/dist/{radarMapViewer-BaAXjsWx.js → radarMapViewer-C2dde8EN.js} +82 -81
- package/dist/radarMapViewer-HWzvBTzT.cjs +1 -0
- package/dist/{rainfallFilterBar-Bhpadat8.js → rainfallFilterBar-CiT1mvYh.js} +22 -21
- package/dist/rainfallFilterBar-kuAQO0M-.cjs +1 -0
- package/dist/rainfallTimeCurve-7uHaSkuE.cjs +1 -0
- package/dist/{rainfallTimeCurve-sDYapogL.js → rainfallTimeCurve-BlOnCq2M.js} +58 -56
- package/dist/rangeLin-BQeWFL_E.cjs +3 -0
- package/dist/{rangeLin-CdMOPwMP.js → rangeLin-BvKd8kEv.js} +32 -31
- package/dist/realtimeEvolutionMap-BUnD3JjE.cjs +1 -0
- package/dist/{realtimeEvolutionMap-CIH_sZ29.js → realtimeEvolutionMap-DZ6yniwl.js} +46 -44
- package/dist/regionBar-mMaN5NEc.cjs +3 -0
- package/dist/{regionBar-VB-2GpR0.js → regionBar-vp5D52Jd.js} +14 -13
- package/dist/{request-BHfDxLXZ.js → request-CMbwWTDF.js} +9 -9
- package/dist/{request-DU8pRyvu.cjs → request-DegEaaCG.cjs} +1 -1
- package/dist/retainer1-CF2Tr7Zt.cjs +1 -0
- package/dist/{retainer1-C_109Weq.js → retainer1-Xvdlh-B_.js} +17 -16
- package/dist/retainer2-BQVUhgcH.cjs +1 -0
- package/dist/{retainer2-BiHUTumr.js → retainer2-D3a-c_BA.js} +43 -42
- package/dist/{retainerRecordList-Cgil_g8a.js → retainerRecordList-BJbPsJ4D.js} +47 -45
- package/dist/retainerRecordList-Rqnoz6_6.cjs +1 -0
- package/dist/retainerRecordListAPP-B4IDQK3C.cjs +1 -0
- package/dist/retainerRecordListAPP-CNntGyA-.js +1068 -0
- package/dist/{ringTopN-C9AH-t3T.js → ringTopN-BFKlXqGX.js} +18 -16
- package/dist/ringTopN-CsouIsk1.cjs +1 -0
- package/dist/{riskRegionTable-Co1uxMzf.js → riskRegionTable-B6k4uM0_.js} +26 -19
- package/dist/riskRegionTable-DttMvHe5.cjs +1 -0
- package/dist/sankey-CAuBQaYh.cjs +1 -0
- package/dist/{sankey-Bag0ladh.js → sankey-DEQK7uU6.js} +17 -15
- package/dist/{scd-D9AiOiPg.js → scd-D5TicpCZ.js} +1282 -1062
- package/dist/scd-qaap6hGW.cjs +1 -0
- package/dist/{sideMenu-869HFB0p.js → sideMenu-ByyrOOYh.js} +28 -27
- package/dist/sideMenu-D-73DoYb.cjs +1 -0
- package/dist/{slopeStability-bZ0lHLjZ.js → slopeStability-BtgMH3oW.js} +44 -42
- package/dist/slopeStability-CTN6Kpva.cjs +1 -0
- package/dist/speedCurve-C5NoQCjK.cjs +1 -0
- package/dist/{speedCurve-DZ52XKCk.js → speedCurve-CInn7NAC.js} +43 -41
- package/dist/staticLine-BC-zj5yZ.cjs +1 -0
- package/dist/{staticLine-CyPnmKCh.js → staticLine-CLqN4lpU.js} +51 -50
- package/dist/stressFilterBar-Cpfbmllu.cjs +1 -0
- package/dist/{stressFilterBar-BAUt2bGy.js → stressFilterBar-D_QqOHna.js} +46 -45
- package/dist/{stressTimeCurve-IW4ArsyA.js → stressTimeCurve-1HXHUj-F.js} +64 -62
- package/dist/stressTimeCurve-Bp6Cevk1.cjs +1 -0
- package/dist/{swiper-BPS9C2GV.cjs → swiper-B8YZ2VQ2.cjs} +1 -1
- package/dist/{swiper-RM0GoZkW.js → swiper-D_y4Fj_D.js} +25 -24
- package/dist/terminalConfigList-B39cEptG.cjs +1 -0
- package/dist/{terminalConfigList-n7NE5NdJ.js → terminalConfigList-CHbA4y-S.js} +38 -36
- package/dist/terminalList-Vf-Dbybr.cjs +1 -0
- package/dist/{terminalList-Byb4eLcD.js → terminalList-oJFrGVtT.js} +38 -36
- package/dist/terminalListAPP-CdBG8krw.cjs +1 -0
- package/dist/terminalListAPP-DWArp2D4.js +1366 -0
- package/dist/{textbox-DM1AUWw8.js → textbox-D8nmoGjG.js} +13 -12
- package/dist/textbox-DPoyxB4u.cjs +1 -0
- package/dist/{timeQueryBar-Tbd9M8UT.js → timeQueryBar-DyC0iHq9.js} +21 -20
- package/dist/timeQueryBar-uUGotoTx.cjs +1 -0
- package/dist/{timeSeries-DCV2YjC2.cjs → timeSeries-BhlqgEOq.cjs} +2 -2
- package/dist/{timeSeries-CdpEx6bf.js → timeSeries-U91gMDDQ.js} +66 -64
- package/dist/timeSeriesCurve-CiRMnZRD.cjs +1 -0
- package/dist/{timeSeriesCurve-C1AmF6TP.js → timeSeriesCurve-DOhIS88N.js} +68 -66
- package/dist/{toggleBtn-BGjXjIuK.cjs → toggleBtn-CuWwHFjD.cjs} +1 -1
- package/dist/{toggleBtn-XS9MjfKM.js → toggleBtn-DE35dkxx.js} +46 -44
- package/dist/trajectoryConfigPanel-DAbF8oE9.cjs +1 -0
- package/dist/{trajectoryConfigPanel-BC90nD1T.js → trajectoryConfigPanel-Ye7NY6rd.js} +35 -34
- package/dist/{trajectoryScatter-DF_ESBn8.js → trajectoryScatter-DL7HUNJI.js} +47 -45
- package/dist/trajectoryScatter-Dg99HzM3.cjs +1 -0
- package/dist/universalConfigPanel-1svBCvD9.cjs +1 -0
- package/dist/{universalConfigPanel-DjNTwJkz.js → universalConfigPanel-CkyIDl_x.js} +50 -49
- package/dist/{universalTable-BY9vRraC.js → universalTable--dpnyNO2.js} +56 -54
- package/dist/universalTable-D8w7FQbl.cjs +2 -0
- package/dist/useMixiotPanelSurface-CAZgexY5.cjs +1 -0
- package/dist/useMixiotPanelSurface-DRl3cZvc.js +22 -0
- package/dist/useTableBodyHeight-CwrQvi7M.js +21 -0
- package/dist/useTableBodyHeight-pf87uGjw.cjs +1 -0
- package/dist/{video-DDvDGDql.js → video-BmMSRRa_.js} +5 -4
- package/dist/{video-8_Sf1uz0.cjs → video-RGIZoUn6.cjs} +2 -2
- package/dist/videoMonitor-Bo5T0MT_.cjs +1 -0
- package/dist/{videoMonitor-sce5N4Q5.js → videoMonitor-uf6tt2E6.js} +34 -33
- package/dist/{vlu-BKeYJtOO.js → vlu-D8l5zE_P.js} +24 -23
- package/dist/vlu-DEo_h1qN.cjs +1 -0
- package/dist/warningOverview-A5AA_vCc.cjs +1 -0
- package/dist/{warningOverview-CG5mwtaO.js → warningOverview-CA0PikjV.js} +31 -30
- package/dist/{weather-CWvAqxgX.cjs → weather-D20MGzuJ.cjs} +1 -1
- package/dist/{weather-BrX2a1an.js → weather-DuseqeNF.js} +19 -18
- package/dist/{windLin-BbbsSwuF.cjs → windLin-BU6Q87dE.cjs} +1 -1
- package/dist/{windLin-P4Gs2aBB.js → windLin-D8AUL_dV.js} +58 -57
- package/package.json +120 -120
- package/dist/BaseComponent-CNXUpPY1.cjs +0 -1
- package/dist/UniverSheet-CntkzcVZ.cjs +0 -1
- package/dist/accelerationChart-DLV-1mpA.cjs +0 -6
- package/dist/actionItem-CFxzHf4E.cjs +0 -1
- package/dist/alarmLevelChart-DCC6D1fH.cjs +0 -2
- package/dist/alertTable-BREZBeS5.cjs +0 -1
- package/dist/aliasObjectSelectorDemo-DunKWEkT.cjs +0 -1
- package/dist/annualRainfallChart-BJyoUBDn.cjs +0 -1
- package/dist/aqiIndass-B441j8CT.cjs +0 -3
- package/dist/areaDeformCurve-Dj405Jil.cjs +0 -1
- package/dist/arrayCard-B7zb1dFi.cjs +0 -1
- package/dist/audio-BfsYRWbm.cjs +0 -1
- package/dist/bmp-DIkLqzRN.cjs +0 -1
- package/dist/box-kXjrgG2u.cjs +0 -1
- package/dist/chartConfigPanel-DN4LMy8-.cjs +0 -1
- package/dist/clock-EbmFBRb-.cjs +0 -1
- package/dist/clt-C-9xGiKs.cjs +0 -1
- package/dist/cmc-CFa8Q3tu.cjs +0 -1
- package/dist/conclusionCard-Dlg5GWlE.cjs +0 -1
- package/dist/controlList-C1vhlonT.cjs +0 -1
- package/dist/controlRecordList-BhK7KtLR.cjs +0 -1
- package/dist/crd-CgxqxwKV.cjs +0 -1
- package/dist/ctrBtn-BSJ9c7Pt.cjs +0 -1
- package/dist/ctrSet-B9M4yI53.cjs +0 -1
- package/dist/ctrSwitch-C6dUn_qm.js +0 -206
- package/dist/ctrSwitch-ZvMCYKvG.cjs +0 -1
- package/dist/dataManagement-CNrEa_zB.cjs +0 -1
- package/dist/datetime-CAyDWKE8.cjs +0 -1
- package/dist/deepClusterSlipSurface-DzoyF6i1.cjs +0 -1
- package/dist/deepDataMatrix--AstWPiL.cjs +0 -1
- package/dist/deepDisplacementChart-BnT1ZdfR.cjs +0 -6
- package/dist/deepDisplacementChart-DOPij7KP.cjs +0 -5
- package/dist/deepDisplacementView-u1IPcbxN.cjs +0 -8
- package/dist/deepNodeTemperatureChart-CD3JbqkA.cjs +0 -1
- package/dist/deepTangentAngleChart-BCAauuDY.cjs +0 -1
- package/dist/deepTemperatureField-BxuKsrtc.cjs +0 -1
- package/dist/deepTrendChart-6L4cCHgh.cjs +0 -1
- package/dist/deviceOnlineStatus-WkwzGom4.cjs +0 -2
- package/dist/deviceStatus-BoIv8fbr.cjs +0 -1
- package/dist/displacementDataTable-BwcxrsuU.cjs +0 -1
- package/dist/displacementTrajectoryChart-BOPIBgi5.cjs +0 -22
- package/dist/displacementTrendChart-CI8i0oQY.cjs +0 -5
- package/dist/emergencyPlan-BRFhMubg.cjs +0 -1
- package/dist/evn-B05d7LtF.cjs +0 -1
- package/dist/evolutionChart-y2mkLVwU.cjs +0 -1
- package/dist/fileViewer-Dy2fdABW.cjs +0 -1
- package/dist/filterBar-CcrUdD-O.cjs +0 -1
- package/dist/fireCombustionCurve-B-6MZLul.cjs +0 -1
- package/dist/fireFilterBar-C9b_Ohvr.cjs +0 -1
- package/dist/fireHistoryTable-5sG5FDCD.cjs +0 -3
- package/dist/gag-CDX99Ta4.cjs +0 -1
- package/dist/gasStationList-Dl9qawf_.cjs +0 -1
- package/dist/globalObjectSelector-Bz2XhgxT.cjs +0 -1
- package/dist/gnssFilterBar-BT19n0j_.cjs +0 -1
- package/dist/gnssHistoryTable-CrS2qO6S.cjs +0 -3
- package/dist/gnssSectionProfile-_KbP1NXU.cjs +0 -1
- package/dist/gnssTimeSeriesChart-BgFoXAZv.cjs +0 -1
- package/dist/gnssXYTrajectory-C1N3RWzp.cjs +0 -5
- package/dist/grd-DtDoJOOa.cjs +0 -1
- package/dist/grdIndass-ci3JkvGZ.cjs +0 -1
- package/dist/grg-C2qVuXYE.cjs +0 -1
- package/dist/gridview-BLAlr5uj.cjs +0 -1
- package/dist/groundwaterFilterBar-1E1j67JT.cjs +0 -1
- package/dist/groundwaterProfileChart-CS9xelz8.cjs +0 -11
- package/dist/groundwaterTimeCurve-DYiDLgVY.cjs +0 -1
- package/dist/headerBar-OwCxpc4o.cjs +0 -1
- package/dist/index-D8dh_6Qd.cjs +0 -612
- package/dist/insarDeformChart-CSQ7fc2p.cjs +0 -1
- package/dist/insarImageViewer-DvaRS1zr.cjs +0 -1
- package/dist/kpiCard-oLpk5d4m.cjs +0 -2
- package/dist/landslideMap-CO8o7T8J.cjs +0 -1
- package/dist/landslideWarning-BZXa5qTB.cjs +0 -1
- package/dist/layerTabs-BxRAsklw.cjs +0 -1
- package/dist/linIndass-Bb7UA-zk.cjs +0 -2
- package/dist/lst-Dri1MTDI.cjs +0 -1
- package/dist/manualEntry-D74dgZv8.cjs +0 -1
- package/dist/mappingList-CBN7ArkQ.cjs +0 -1
- package/dist/mixGrid-DTj2pmFW.cjs +0 -1
- package/dist/mixMap-B4T4R6kA.cjs +0 -1
- package/dist/mixModel-BzilRtjf.cjs +0 -3
- package/dist/mixPie-DtQm-LGp.cjs +0 -2
- package/dist/mjpegCamera-Lu3UHJ83.cjs +0 -1
- package/dist/monitorAlert-Ctt2kCxQ.cjs +0 -1
- package/dist/monitorData-D_tMbx_Y.cjs +0 -1
- package/dist/myValue-FZPOucSS.cjs +0 -1
- package/dist/myValueList-XIDK3ove.cjs +0 -1
- package/dist/objectList-BtbxHtJj.cjs +0 -1
- package/dist/photo-BITvEhKG.cjs +0 -1
- package/dist/photo-CjulDHTM.js +0 -873
- package/dist/placeholder-3kajeeeb.cjs +0 -1
- package/dist/pressBtn-pUcQtd5n.cjs +0 -1
- package/dist/processTable-CDulvQlu.cjs +0 -3
- package/dist/rad-Dk4PrnyI.cjs +0 -1
- package/dist/radarMapViewer-TJIPACdT.cjs +0 -1
- package/dist/rainfallFilterBar-Myq0MBCf.cjs +0 -1
- package/dist/rainfallTimeCurve-BUI-RlnG.cjs +0 -1
- package/dist/rangeLin-DYCZ8wVc.cjs +0 -3
- package/dist/realtimeEvolutionMap-BwyQdAhL.cjs +0 -1
- package/dist/regionBar-DsxqfirI.cjs +0 -3
- package/dist/retainer1-CSqjvY4k.cjs +0 -1
- package/dist/retainer2-Bqlwvr53.cjs +0 -1
- package/dist/retainerRecordList-DWZ3WDiz.cjs +0 -1
- package/dist/ringTopN-Bp0er_zV.cjs +0 -1
- package/dist/riskRegionTable-B3bzMaR_.cjs +0 -1
- package/dist/sankey-B4BJ4xIo.cjs +0 -1
- package/dist/scd-Dgd3KDpk.cjs +0 -1
- package/dist/sideMenu-BQ5rrGBr.cjs +0 -1
- package/dist/slopeStability-D96aiykf.cjs +0 -1
- package/dist/speedCurve-5nWqVAzz.cjs +0 -1
- package/dist/staticLine-DUCg-0tI.cjs +0 -1
- package/dist/stressFilterBar-CorWdmpQ.cjs +0 -1
- package/dist/stressTimeCurve-Bci50Cwv.cjs +0 -1
- package/dist/terminalConfigList-O881ke5o.cjs +0 -1
- package/dist/terminalList-C9TB2cJH.cjs +0 -1
- package/dist/textbox-BMWnbPvz.cjs +0 -1
- package/dist/timeQueryBar-C6ZheMvD.cjs +0 -1
- package/dist/timeSeriesCurve-DRlr5n3U.cjs +0 -1
- package/dist/trajectoryConfigPanel-DJ6fOeb1.cjs +0 -1
- package/dist/trajectoryScatter-C7kfSkyS.cjs +0 -1
- package/dist/universalConfigPanel-PO1hdgjw.cjs +0 -1
- package/dist/universalTable-QAb6UKCq.cjs +0 -2
- package/dist/useMixiotPanelSurface-BMNrWBMF.cjs +0 -1
- package/dist/useMixiotPanelSurface-DlVkLttU.js +0 -40
- package/dist/videoMonitor-BKLD_aQs.cjs +0 -1
- package/dist/vlu-C0XLDKKk.cjs +0 -1
- package/dist/warningOverview--n7crFnZ.cjs +0 -1
|
@@ -20,10 +20,10 @@ import "element-plus/es/components/button/style/css";
|
|
|
20
20
|
import "element-plus/es/components/icon/style/css";
|
|
21
21
|
import "element-plus/es/components/select/style/css";
|
|
22
22
|
import "element-plus/es/components/option/style/css";
|
|
23
|
-
import { defineComponent as Ze, useCssVars as et, unref as i, ref as O, computed as
|
|
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 {
|
|
25
|
+
import { B as nt } from "./BaseComponent-CBagahPU.js";
|
|
26
|
+
import { d as Y, _ as st } from "./index-DwPJu6XM.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 = {
|
|
@@ -55,7 +55,8 @@ const pt = { class: "report-header" }, vt = { class: "header-left" }, mt = { cla
|
|
|
55
55
|
ACTIVE_ICON: rt,
|
|
56
56
|
NAME_CN: "数据报表",
|
|
57
57
|
NAME_EN: "Data Report",
|
|
58
|
-
ORDER: 13
|
|
58
|
+
ORDER: 13,
|
|
59
|
+
PLATFORM: ["pc", "screen"]
|
|
59
60
|
}, Nt = {
|
|
60
61
|
title: { value: "数据报表", type: "string", label: "component.dataReport.title" },
|
|
61
62
|
bgColor: { value: "#ffffff", type: "color", label: "setting.bgColor" },
|
|
@@ -158,7 +159,7 @@ const pt = { class: "report-header" }, vt = { class: "header-left" }, mt = { cla
|
|
|
158
159
|
fv: "cumulativePrecipitation",
|
|
159
160
|
object_id: ""
|
|
160
161
|
}
|
|
161
|
-
],
|
|
162
|
+
], Tt = ["name", "fv", "object_id"], zt = ["mosaic", "statistics", "statisticsRealtime"], Mt = { useAlias: !1, multiObject: !1, source: "mosaic" }, Ft = { DEFAULT: Et, OPTIONS: Nt, DATA: Vt, PARAMS: Tt, SOURCE: zt, COMMON: Mt }, Lt = /* @__PURE__ */ Ze(B(N({}, Ft), {
|
|
162
163
|
__name: "dataReport",
|
|
163
164
|
props: {
|
|
164
165
|
conf: { type: Object, default: () => ({ data: [] }) },
|
|
@@ -168,8 +169,8 @@ const pt = { class: "report-header" }, vt = { class: "header-left" }, mt = { cla
|
|
|
168
169
|
},
|
|
169
170
|
setup(_) {
|
|
170
171
|
et((t) => ({
|
|
171
|
-
|
|
172
|
-
|
|
172
|
+
v039d5518: i(l).headerBgColor,
|
|
173
|
+
v61417bfd: i(l).textColor
|
|
173
174
|
}));
|
|
174
175
|
const v = _;
|
|
175
176
|
class R extends nt {
|
|
@@ -319,28 +320,28 @@ const pt = { class: "report-header" }, vt = { class: "header-left" }, mt = { cla
|
|
|
319
320
|
b.onDataUpdate = (t) => {
|
|
320
321
|
k.value = [...t];
|
|
321
322
|
}, b.setupLifecycle();
|
|
322
|
-
const l = b.getStyle(), $ = O("hour"), ve =
|
|
323
|
+
const l = b.getStyle(), $ = O("hour"), ve = z(() => l.value.frequencyOptions || []), x = O({}), k = O([]), me = () => {
|
|
323
324
|
try {
|
|
324
325
|
const t = b.getTableData();
|
|
325
326
|
k.value = [...t], b.setTableDataArray(k.value);
|
|
326
327
|
} catch (t) {
|
|
327
328
|
console.error("[dataReport] 获取表格数据失败:", t), k.value = [];
|
|
328
329
|
}
|
|
329
|
-
}, U =
|
|
330
|
+
}, U = z(() => {
|
|
330
331
|
let t = [...k.value];
|
|
331
332
|
return l.value.showSearch && Object.keys(x.value).length > 0 && (t = t.filter((e) => Object.keys(x.value).every((a) => {
|
|
332
333
|
const o = x.value[a];
|
|
333
334
|
return o ? String(e[a] || "").toLowerCase().includes(String(o).toLowerCase()) : !0;
|
|
334
335
|
}))), t;
|
|
335
|
-
}), w = O(1), L =
|
|
336
|
+
}), w = O(1), L = z(() => l.value.pageSize || 10), be = z(() => U.value.length), P = z(() => {
|
|
336
337
|
if (!l.value.showPagination)
|
|
337
338
|
return U.value;
|
|
338
339
|
const t = (w.value - 1) * L.value, e = t + L.value;
|
|
339
340
|
return U.value.slice(t, e);
|
|
340
|
-
}), I = O([]), ye =
|
|
341
|
+
}), I = O([]), ye = z(() => ({
|
|
341
342
|
backgroundColor: l.value.bgColor,
|
|
342
343
|
color: l.value.textColor
|
|
343
|
-
})), fe =
|
|
344
|
+
})), fe = z(() => l.value.showSearch || l.value.showActions), ge = (t) => {
|
|
344
345
|
console.log("[dataReport] 显示频率变化:", t);
|
|
345
346
|
}, ke = () => {
|
|
346
347
|
console.log("[dataReport] 导出数据"), alert("导出功能待实现");
|
|
@@ -437,10 +438,10 @@ const pt = { class: "report-header" }, vt = { class: "header-left" }, mt = { cla
|
|
|
437
438
|
}
|
|
438
439
|
}
|
|
439
440
|
return e.alertColor && (a.color = e.alertColor), a;
|
|
440
|
-
}, Ve = (t, e) => e.isAlert && t === "deviceId" ? "device-id" : e.isAlert ? "alert-text" : "",
|
|
441
|
+
}, Ve = (t, e) => e.isAlert && t === "deviceId" ? "device-id" : e.isAlert ? "alert-text" : "", Te = (t) => {
|
|
441
442
|
const e = { color: l.value.textColor };
|
|
442
443
|
return t.alertColor && (e.color = t.alertColor), e;
|
|
443
|
-
},
|
|
444
|
+
}, ze = (t) => {
|
|
444
445
|
const e = [];
|
|
445
446
|
return t.isAlert && e.push("alert-row"), q(t) && e.push("active-row"), e.join(" ");
|
|
446
447
|
}, Me = (t) => {
|
|
@@ -500,7 +501,7 @@ const pt = { class: "report-header" }, vt = { class: "header-left" }, mt = { cla
|
|
|
500
501
|
onChange: ge
|
|
501
502
|
}, {
|
|
502
503
|
default: m(() => [
|
|
503
|
-
(s(!0), h(
|
|
504
|
+
(s(!0), h(T, null, M(ve.value, (n) => (s(), f(a, {
|
|
504
505
|
key: n.value,
|
|
505
506
|
label: n.label,
|
|
506
507
|
value: n.value
|
|
@@ -530,7 +531,7 @@ const pt = { class: "report-header" }, vt = { class: "header-left" }, mt = { cla
|
|
|
530
531
|
]),
|
|
531
532
|
fe.value ? (s(), h("div", kt, [
|
|
532
533
|
i(l).showSearch ? (s(), h("div", Ct, [
|
|
533
|
-
(s(!0), h(
|
|
534
|
+
(s(!0), h(T, null, M(i(l).searchFilters, (n, g) => (s(), h(T, { key: g }, [
|
|
534
535
|
D("span", wt, V(n.label) + ":", 1),
|
|
535
536
|
n.type === "input" ? (s(), f(d, {
|
|
536
537
|
key: 0,
|
|
@@ -549,7 +550,7 @@ const pt = { class: "report-header" }, vt = { class: "header-left" }, mt = { cla
|
|
|
549
550
|
clearable: ""
|
|
550
551
|
}, {
|
|
551
552
|
default: m(() => [
|
|
552
|
-
(s(!0), h(
|
|
553
|
+
(s(!0), h(T, null, M(n.options || [], (u) => (s(), f(a, {
|
|
553
554
|
key: u.value,
|
|
554
555
|
label: u.label,
|
|
555
556
|
value: u.value
|
|
@@ -650,8 +651,8 @@ const pt = { class: "report-header" }, vt = { class: "header-left" }, mt = { cla
|
|
|
650
651
|
data: P.value,
|
|
651
652
|
style: F({ color: i(l).textColor }),
|
|
652
653
|
"header-cell-style": { background: i(l).headerBgColor, color: i(l).textColor },
|
|
653
|
-
"row-style":
|
|
654
|
-
"row-class-name":
|
|
654
|
+
"row-style": Te,
|
|
655
|
+
"row-class-name": ze,
|
|
655
656
|
onSelectionChange: je,
|
|
656
657
|
onRowClick: H,
|
|
657
658
|
stripe: "",
|
|
@@ -672,7 +673,7 @@ const pt = { class: "report-header" }, vt = { class: "header-left" }, mt = { cla
|
|
|
672
673
|
align: "center",
|
|
673
674
|
index: G
|
|
674
675
|
})) : p("", !0),
|
|
675
|
-
(s(!0), h(
|
|
676
|
+
(s(!0), h(T, null, M(i(l).columns, (n) => (s(), f(y, {
|
|
676
677
|
key: n.key,
|
|
677
678
|
prop: n.key,
|
|
678
679
|
label: n.label,
|
|
@@ -740,21 +741,21 @@ const pt = { class: "report-header" }, vt = { class: "header-left" }, mt = { cla
|
|
|
740
741
|
D("thead", null, [
|
|
741
742
|
D("tr", null, [
|
|
742
743
|
i(l).showSerialNumber ? (s(), h("th", St, "序号")) : p("", !0),
|
|
743
|
-
(s(!0), h(
|
|
744
|
+
(s(!0), h(T, null, M(i(l).columns, (n) => (s(), h("th", {
|
|
744
745
|
key: n.key,
|
|
745
746
|
style: F({ width: n.width, minWidth: n.minWidth })
|
|
746
747
|
}, V(n.label), 5))), 128))
|
|
747
748
|
])
|
|
748
749
|
]),
|
|
749
750
|
D("tbody", null, [
|
|
750
|
-
(s(!0), h(
|
|
751
|
+
(s(!0), h(T, null, M(P.value, (n, g) => (s(), h("tr", {
|
|
751
752
|
key: g,
|
|
752
753
|
class: pe(Me(n)),
|
|
753
754
|
style: F(Fe(n)),
|
|
754
755
|
onClick: (u) => H(n)
|
|
755
756
|
}, [
|
|
756
757
|
i(l).showSerialNumber ? (s(), h("td", At, V(G(g)), 1)) : p("", !0),
|
|
757
|
-
(s(!0), h(
|
|
758
|
+
(s(!0), h(T, null, M(i(l).columns, (u) => (s(), h("td", {
|
|
758
759
|
key: u.key,
|
|
759
760
|
class: pe(Ve(u.key, n)),
|
|
760
761
|
style: F(J(u, n)),
|
|
@@ -781,7 +782,7 @@ const pt = { class: "report-header" }, vt = { class: "header-left" }, mt = { cla
|
|
|
781
782
|
], 4);
|
|
782
783
|
};
|
|
783
784
|
}
|
|
784
|
-
})), aa = /* @__PURE__ */ st(Lt, [["__scopeId", "data-v-
|
|
785
|
+
})), aa = /* @__PURE__ */ st(Lt, [["__scopeId", "data-v-f4561a18"]]);
|
|
785
786
|
export {
|
|
786
787
|
aa as default
|
|
787
788
|
};
|
|
@@ -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-CNXUpPY1.cjs"),N=require("./index-D8dh_6Qd.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"},qe={class:"badge-text"},Fe={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},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=>({v3927894e:e.unref(o).headerBgColor,cd90aa84: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,_,F,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:((F=t==null?void 0:t.exportLabel)==null?void 0:F.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-Chnv4fBT.cjs"),N=require("./index-DVqMfQVc.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
|
-
`}),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,q=(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",qe,"频道: "+e.toDisplayString(e.unref(o).linkChannel),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Fe,[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(q(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(q(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-9d219994"]]);exports.default=nt;
|
|
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;
|
|
@@ -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-DVqMfQVc.cjs"),W={class:"table-header"},G={class:"table-actions"},H={key:2},J={class:"table-footer"},K={class:"total-info"},Q=e.defineComponent({__name:"dataTable",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"preview"}},emits:["action","row-click"],setup(E,{emit:N}){const o=E,b=N,v=e.computed(()=>{var l,t,r,i,u,d,f,p,h,g;return{bgColor:((t=(l=o.conf)==null?void 0:l.style)==null?void 0:t.bgColor)||"#ffffff",borderRadius:((i=(r=o.conf)==null?void 0:r.style)==null?void 0:i.borderRadius)||8,titleColor:((d=(u=o.conf)==null?void 0:u.style)==null?void 0:d.titleColor)||"#333333",linkColor:((p=(f=o.conf)==null?void 0:f.style)==null?void 0:p.linkColor)||"#1890ff",padding:((g=(h=o.conf)==null?void 0:h.style)==null?void 0:g.padding)||16}}),D=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.title)||"数据列表"}),q=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.columns)||[{prop:"time",label:"预警时间",width:160},{prop:"type",label:"预警类型",type:"link"},{prop:"area",label:"区域",width:80},{prop:"level",label:"预警级别",width:80},{prop:"value",label:"监测值",width:100},{prop:"status",label:"状态",type:"status",width:80}]}),z=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.tableData)||w}),T=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.showActions)!==!1}),P=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.searchPlaceholder)||"搜索记录..."}),I=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.filterPlaceholder)||"全部类型"}),C=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.filterOptions)||[]}),w=[{time:"2023-06-15 14:32:21",type:"煤层自燃监测",area:"C区域",level:"预警级别",value:"78.6℃",status:"处理中"},{time:"2023-06-15 13:45:10",type:"地上水位监测",area:"B区域",level:"预警级别",value:"6.8m",status:"已处理"},{time:"2023-06-15 10:18:45",type:"地上下位移监测",area:"A区域",level:"预警级别",value:"12.3mm",status:"已处理"},{time:"2023-06-14 20:05:33",type:"降雨量监测",area:"D区域",level:"预警级别",value:"156mm/24h",status:"已处理"},{time:"2023-06-14 15:30:17",type:"多模态数据融合",area:"B区域",level:"预警级别",value:"0.78",status:"已处理"}],n=e.ref(1),c=e.ref(5),y=e.ref(""),k=e.ref(""),x=e.computed(()=>{let l=z.value;if(y.value){const t=y.value.toLowerCase();l=l.filter(r=>Object.values(r).some(i=>String(i).toLowerCase().includes(t)))}return k.value&&(l=l.filter(t=>t.type===k.value)),l}),_=e.computed(()=>x.value.length),O=e.computed(()=>(n.value-1)*c.value+1),R=e.computed(()=>Math.min(n.value*c.value,_.value)),V=e.computed(()=>{const l=(n.value-1)*c.value;return x.value.slice(l,l+c.value)}),A=e.computed(()=>({backgroundColor:v.value.bgColor,borderRadius:v.value.borderRadius+"px",padding:v.value.padding+"px"})),M=l=>({处理中:"warning",已处理:"success",待处理:"danger"})[l]||"info",$=()=>{n.value=1},L=()=>{},U=l=>{b("row-click",l)},B=(l,t)=>{b("action",{action:l,row:t})},j=(l,t)=>{var r,i;if(confirm(`确定要删除 ${l.time} 的 ${l.type} 记录吗?`)){const u=((i=(r=o.conf)==null?void 0:r.data)==null?void 0:i.tableData)||w,d=(n.value-1)*c.value+t;u.splice(d,1),V.value.length===0&&n.value>1&&n.value--,b("action",{action:"delete",row:l})}};return(l,t)=>{const r=s.ElInput,i=s.ElOption,u=s.ElSelect,d=s.ElTag,f=s.ElTableColumn,p=s.ElButton,h=s.ElTable,g=s.ElPagination;return e.openBlock(),e.createElementBlock("div",{class:"data-table",style:e.normalizeStyle(A.value)},[e.createElementVNode("div",W,[e.createElementVNode("div",{class:"table-title",style:e.normalizeStyle({color:v.value.titleColor})},e.toDisplayString(D.value),5),e.createElementVNode("div",G,[e.createVNode(r,{modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=a=>y.value=a),placeholder:P.value,"prefix-icon":"Search",clearable:"",style:{width:"200px"},onInput:$},null,8,["modelValue","placeholder"]),C.value.length?(e.openBlock(),e.createBlock(u,{key:0,modelValue:k.value,"onUpdate:modelValue":t[1]||(t[1]=a=>k.value=a),placeholder:I.value,style:{width:"120px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,a=>(e.openBlock(),e.createBlock(i,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])):e.createCommentVNode("",!0)])]),e.createVNode(h,{data:V.value,style:{width:"100%"},"row-style":{cursor:"pointer"},onRowClick:U},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,a=>(e.openBlock(),e.createBlock(f,{key:a.prop,prop:a.prop,label:a.label,width:a.width,"min-width":a.minWidth},{default:e.withCtx(({row:m})=>[a.type==="link"?(e.openBlock(),e.createElementBlock("span",{key:0,class:"link-text",style:e.normalizeStyle({color:v.value.linkColor})},e.toDisplayString(m[a.prop]),5)):a.type==="status"?(e.openBlock(),e.createBlock(d,{key:1,type:M(m[a.prop]),size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m[a.prop]),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",H,e.toDisplayString(m[a.prop]),1))]),_:2},1032,["prop","label","width","min-width"]))),128)),T.value?(e.openBlock(),e.createBlock(f,{key:0,label:"操作",width:"180"},{default:e.withCtx(({row:a,$index:m})=>[e.createVNode(p,{link:"",type:"primary",size:"small",onClick:e.withModifiers(S=>B("detail",a),["stop"])},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("详情",-1)])]),_:1},8,["onClick"]),e.createVNode(p,{link:"",type:"primary",size:"small",onClick:e.withModifiers(S=>B("handle",a),["stop"])},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("处理",-1)])]),_:1},8,["onClick"]),e.createVNode(p,{link:"",type:"danger",size:"small",onClick:e.withModifiers(S=>j(a,m),["stop"])},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["data"]),e.createElementVNode("div",J,[e.createElementVNode("span",K,"显示第 "+e.toDisplayString(O.value)+" 至 "+e.toDisplayString(R.value)+" 条,共 "+e.toDisplayString(_.value)+" 条记录",1),e.createVNode(g,{"current-page":n.value,"onUpdate:currentPage":t[2]||(t[2]=a=>n.value=a),"page-size":c.value,"onUpdate:pageSize":t[3]||(t[3]=a=>c.value=a),total:_.value,"page-sizes":[5,10,20,50],layout:"prev, pager, next",small:"",onChange:L},null,8,["current-page","page-size","total"])])],4)}}}),X=F._export_sfc(Q,[["__scopeId","data-v-217591b3"]]);exports.default=X;
|
|
@@ -9,7 +9,7 @@ import "element-plus/es/components/select/style/css";
|
|
|
9
9
|
import "element-plus/es/components/option/style/css";
|
|
10
10
|
import "element-plus/es/components/input/style/css";
|
|
11
11
|
import { defineComponent as de, computed as a, ref as V, openBlock as n, createElementBlock as h, normalizeStyle as P, createElementVNode as g, toDisplayString as d, createVNode as y, createBlock as k, withCtx as u, Fragment as N, renderList as U, createCommentVNode as L, createTextVNode as z, withModifiers as T } from "vue";
|
|
12
|
-
import { _ as ce } from "./index-
|
|
12
|
+
import { _ as ce } from "./index-DwPJu6XM.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: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var D=Object.defineProperty,y=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var f=(n,e,t)=>e in n?D(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,p=(n,e)=>{for(var t in e||(e={}))M.call(e,t)&&f(n,t,e[t]);if(d)for(var t of d(e))z.call(e,t)&&f(n,t,e[t]);return n},v=(n,e)=>y(n,b(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),S=require("./index-DVqMfQVc.cjs");require("html2canvas");const T=require("./BaseComponent-Chnv4fBT.cjs"),Y=require("./ele-dateTime-icon-BgZ2_KWW.cjs"),g={class:"mix-component"},I={DEFAULT_ICON:Y.DEFAULT_ICON,ACTIVE_ICON:Y.ACTIVE_ICON,NAME_CN:"时间",NAME_EN:"Date Time",ORDER:1,PLATFORM:["pc","screen","mobile"]},O={bgColor:"#fff",textColor:"#111",textSize:16,radiusSize:8,format:{value:"YYYY-MM-DD HH:mm:ss",type:"select",label:"component.customized.format",options:[{label:"component.customized.dateTimeFormat1",value:"YYYY-MM-DD HH:mm:ss"},{label:"component.customized.dateTimeFormat2",value:"YYYY年MM月DD日 HH:mm:ss"},{label:"component.customized.dateTimeFormat3",value:"YYYY/MM/DD HH:mm:ss"},{label:"component.customized.dateFormat",value:"YYYY-MM-DD"},{label:"component.customized.timeFormat",value:"HH:mm:ss"}]}},H={DEFAULT:I,OPTIONS:O,COMMON:{}},E=o.defineComponent(v(p({},H),{__name:"datetime",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const e=n,t=o.ref("");let l=null;class x extends T.BaseComponent{extractStyles(){const{options:a}=this.props.conf,s=(C,_)=>{const i=a==null?void 0:a[C];return i==null?_:typeof i=="object"&&"value"in i?i.value:i};return{bgColor:s("bgColor","#fff"),textColor:s("textColor","#303133"),textSize:s("textSize",16),radiusSize:s("radiusSize",8)}}init(){super.init(),l&&clearInterval(l),m(),l=setInterval(()=>{m()},1e3)}cleanup(){l&&(clearInterval(l),l=null)}}const m=()=>{const{options:r}=e.conf,a=r==null?void 0:r.format,s=a&&typeof a=="object"&&"value"in a?a.value:a||"YYYY-MM-DD HH:mm:ss";t.value=S.dayjs().format(s)},u=new x(e,"datetime");u.setupLifecycle();const c=u.getStyle();return o.watch(()=>{var r;return(r=e.conf)==null?void 0:r.options},r=>{r&&(c.value=u.extractStyles(),m())},{deep:!0}),(r,a)=>(o.openBlock(),o.createElementBlock("div",g,[o.createElementVNode("div",{class:"flex flex-1 px-[12px] items-center justify-center flex-nowrap",style:o.normalizeStyle({backgroundColor:o.unref(c).bgColor,color:o.unref(c).textColor,borderRadius:`${o.unref(c).radiusSize}px`,fontSize:`${o.unref(c).textSize}px`})},o.toDisplayString(t.value),5),o.renderSlot(r.$slots,"default",{},void 0,!0)]))}})),N=S._export_sfc(E,[["__scopeId","data-v-7961577a"]]);exports.default=N;
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
var _ = Object.defineProperty, D = Object.defineProperties;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
2
|
+
var y = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var d = Object.getOwnPropertySymbols;
|
|
4
|
+
var C = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var f = (o, e, t) => e in o ? _(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, p = (o, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
7
|
+
C.call(e, t) && f(o, t, e[t]);
|
|
8
|
+
if (d)
|
|
9
|
+
for (var t of d(e))
|
|
10
|
+
M.call(e, t) && f(o, t, e[t]);
|
|
11
11
|
return o;
|
|
12
|
-
}, Y = (o, e) => D(o,
|
|
13
|
-
import { defineComponent as
|
|
14
|
-
import {
|
|
12
|
+
}, Y = (o, e) => D(o, y(e));
|
|
13
|
+
import { defineComponent as b, ref as z, watch as g, openBlock as H, createElementBlock as T, createElementVNode as O, normalizeStyle as E, unref as i, toDisplayString as I, renderSlot as N } from "vue";
|
|
14
|
+
import { d as F, _ as A } from "./index-DwPJu6XM.js";
|
|
15
15
|
import "html2canvas";
|
|
16
|
-
import { B as
|
|
16
|
+
import { B as h } from "./BaseComponent-CBagahPU.js";
|
|
17
17
|
import { A as j, D as B } from "./ele-dateTime-icon-BEGFlwID.js";
|
|
18
|
-
const
|
|
18
|
+
const L = { class: "mix-component" }, R = {
|
|
19
19
|
DEFAULT_ICON: B,
|
|
20
20
|
ACTIVE_ICON: j,
|
|
21
21
|
NAME_CN: "时间",
|
|
22
22
|
NAME_EN: "Date Time",
|
|
23
|
-
ORDER: 1
|
|
24
|
-
|
|
23
|
+
ORDER: 1,
|
|
24
|
+
PLATFORM: ["pc", "screen", "mobile"]
|
|
25
|
+
}, k = {
|
|
25
26
|
bgColor: "#fff",
|
|
26
27
|
textColor: "#111",
|
|
27
28
|
textSize: 16,
|
|
@@ -38,7 +39,7 @@ const k = { class: "mix-component" }, w = {
|
|
|
38
39
|
{ label: "component.customized.timeFormat", value: "HH:mm:ss" }
|
|
39
40
|
]
|
|
40
41
|
}
|
|
41
|
-
},
|
|
42
|
+
}, w = { DEFAULT: R, OPTIONS: k, COMMON: {} }, V = /* @__PURE__ */ b(Y(p({}, w), {
|
|
42
43
|
__name: "datetime",
|
|
43
44
|
props: {
|
|
44
45
|
conf: {
|
|
@@ -59,9 +60,9 @@ const k = { class: "mix-component" }, w = {
|
|
|
59
60
|
}
|
|
60
61
|
},
|
|
61
62
|
setup(o) {
|
|
62
|
-
const e = o, t =
|
|
63
|
+
const e = o, t = z("");
|
|
63
64
|
let l = null;
|
|
64
|
-
class v extends
|
|
65
|
+
class v extends h {
|
|
65
66
|
extractStyles() {
|
|
66
67
|
const { options: r } = this.props.conf, n = (x, S) => {
|
|
67
68
|
const s = r == null ? void 0 : r[x];
|
|
@@ -94,20 +95,20 @@ const k = { class: "mix-component" }, w = {
|
|
|
94
95
|
return (a = e.conf) == null ? void 0 : a.options;
|
|
95
96
|
}, (a) => {
|
|
96
97
|
a && (m.value = u.extractStyles(), c());
|
|
97
|
-
}, { deep: !0 }), (a, r) => (H(), T("div",
|
|
98
|
-
|
|
98
|
+
}, { deep: !0 }), (a, r) => (H(), T("div", L, [
|
|
99
|
+
O("div", {
|
|
99
100
|
class: "flex flex-1 px-[12px] items-center justify-center flex-nowrap",
|
|
100
|
-
style:
|
|
101
|
+
style: E({
|
|
101
102
|
backgroundColor: i(m).bgColor,
|
|
102
103
|
color: i(m).textColor,
|
|
103
104
|
borderRadius: `${i(m).radiusSize}px`,
|
|
104
105
|
fontSize: `${i(m).textSize}px`
|
|
105
106
|
})
|
|
106
|
-
},
|
|
107
|
-
|
|
107
|
+
}, I(t.value), 5),
|
|
108
|
+
N(a.$slots, "default", {}, void 0, !0)
|
|
108
109
|
]));
|
|
109
110
|
}
|
|
110
|
-
})), K = /* @__PURE__ */
|
|
111
|
+
})), K = /* @__PURE__ */ A(V, [["__scopeId", "data-v-7961577a"]]);
|
|
111
112
|
export {
|
|
112
113
|
K as default
|
|
113
114
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var St=Object.defineProperty,vt=Object.defineProperties;var Nt=Object.getOwnPropertyDescriptors;var et=Object.getOwnPropertySymbols;var bt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var nt=(v,r,N)=>r in v?St(v,r,{enumerable:!0,configurable:!0,writable:!0,value:N}):v[r]=N,st=(v,r)=>{for(var N in r||(r={}))bt.call(r,N)&&nt(v,N,r[N]);if(et)for(var N of et(r))Ct.call(r,N)&&nt(v,N,r[N]);return v},lt=(v,r)=>vt(v,Nt(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ot=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const a=require("vue"),yt=require("@element-plus/icons-vue"),B=require("./index-DVqMfQVc.cjs");require("element-plus");const Ot=require("./EChartComponentBase-dLE5F7Tt.cjs"),xt=require("./titleStyle-NSnz6cUg.cjs"),at=require("./ele-lin-icon-Dke_1AmT.cjs"),W=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Dt=require("./install-C8buXQPI.cjs"),It=require("./install-CltTFs4e.cjs"),Et=require("./install-CYwVETsi.cjs"),_t={class:"mix-body"},Vt={class:"toolbar"},wt=["id"],At={DEFAULT_ICON:at.DEFAULT_ICON,ACTIVE_ICON:at.ACTIVE_ICON,NAME_CN:"聚类滑面关联",NAME_EN:"DeepClusterSlipSurface",ORDER:18,PLATFORM:["pc","screen"]},Tt={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:35,left:50,right:40,xName:{value:"时间",type:"string",label:"X轴名称"},yLeftName:{value:"累计位移(mm)",type:"string",label:"左轴名称"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},it=[{name:"累计位移",fv:"disp_130",color:"#5470c6",object_id:""}],kt=["name","fv","color","object_id"],Lt=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Mt={useAlias:!1,multiObject:!0,source:"mosaic"},$t={DEFAULT:At,OPTIONS:Tt,DATA:it,PARAMS:kt,SOURCE:Lt,COMMON:Mt},Ft=a.defineComponent(lt(st({},$t),{__name:"deepClusterSlipSurface",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){W.use([Dt.install,W.install,It.install,W.install$1,Et.install]);const r=v,N=B.useLinkStore(),w=a.ref([]),M=a.ref(new Map),P=t=>{if(t==null)return"";const e=typeof t=="string"?t:String(t),s=typeof t=="number"||/^\d+$/.test(e)?new Date(Number(t)):new Date(e);if(Number.isNaN(s.getTime()))return e;const i=s.getFullYear(),o=String(s.getMonth()+1).padStart(2,"0"),u=String(s.getDate()).padStart(2,"0"),d=String(s.getHours()).padStart(2,"0"),l=String(s.getMinutes()).padStart(2,"0"),f=String(s.getSeconds()).padStart(2,"0");return`${i}-${o}-${u} ${d}:${l}:${f}`};class rt extends Ot.EChartComponentBase{extractStyles(){const e=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),s=e==="custom"&&n?n:e;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",35),left:this.getOptionValue("left",50),right:this.getOptionValue("right",40),xName:this.getOptionValue("xName","时间"),yLeftName:this.getOptionValue("yLeftName","累计位移(mm)"),linkChannel:s}}init(){var e;this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=it),a.nextTick(()=>this.initChart())}setHistoryData(e){tt(e)}setSocketData(e){e&&tt(e)}setPanelConfig(e){this.panelConfig=e||{};const n=this.getChartInstance();n&&n.setOption(this.getChartOption(),!0)}onLinkEvent(e){Z(e)}getChartOption(){var d;const e=((d=r.conf)==null?void 0:d.data)||[],n=this.panelConfig||{},s=Object.keys(n).find(l=>l.endsWith("__yAxis")),i=s&&n[s]||n.range__yAxis||n.range__y||null,o=Number.isFinite(i==null?void 0:i.min)?Number(i==null?void 0:i.min):null,u=Number.isFinite(i==null?void 0:i.max)?Number(i==null?void 0:i.max):null;return{animation:!0,animationDuration:500,animationDurationUpdate:700,animationEasing:"cubicOut",animationEasingUpdate:"cubicInOut",grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},legend:{top:8,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"axis"},xAxis:{type:"category",name:this.Style.value.xName,data:G.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,formatter:l=>F.value==="day"?q(l):P(l)}},yAxis:[{type:"value",name:this.Style.value.yLeftName,min:o!==null?o:null,max:u!==null?u:null,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}}],series:e.filter(l=>!A.value||A.value.length===0?!1:A.value.includes(String(l==null?void 0:l.fv))).map((l,f)=>{const m=(l==null?void 0:l.fv)||`v${f}`,g=new Map;J.value.forEach(c=>{const h=c[m];h!=null&&g.set(String(c.t),Number(h))});const S=G.value.map(c=>g.has(c)?g.get(c):null);return{name:(l==null?void 0:l.name)||`序列${f+1}`,type:"line",smooth:.35,smoothMonotone:"x",showSymbol:!1,emphasis:{focus:"series",scale:!0},data:S,lineStyle:{color:(l==null?void 0:l.color)||"#5470c6",width:2},itemStyle:{color:(l==null?void 0:l.color)||"#5470c6"}}})}}}const O=new rt(r,"deepClusterSlipSurface"),ct=O.getEchartId();O.setupLifecycle();const H=O.getStyle(),ut=a.computed(()=>xt.generateTitleStyle(r.conf.options)),V=a.ref([]),A=a.ref(null),Y=a.ref(!1),X=a.ref(null),F=a.ref("hour"),K=a.ref([]),R=()=>{var n;if(Y.value||A.value&&A.value.length)return;const e=(((n=r.conf)==null?void 0:n.data)||[]).map(s=>String((s==null?void 0:s.logicKey)||(s==null?void 0:s.fv)||"")).filter(Boolean);A.value=e.length?e:null},U=t=>{if(t==null)return Number.NaN;const e=typeof t=="string"?t.trim():String(t);if(!e)return Number.NaN;if(/^\d+$/.test(e)){const n=Number(e);return e.length<=10?n*1e3:n}return new Date(e).getTime()},q=t=>{const e=U(t);if(Number.isNaN(e))return String(t||"").slice(0,10);const n=new Date(e),s=n.getFullYear(),i=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0");return`${s}-${i}-${o}`},ft=(t,e)=>{if(!(e!=null&&e.startDate)&&!(e!=null&&e.endDate))return!0;const n=U(t);if(Number.isNaN(n))return!0;const s=e.startDate?U(e.startDate):Number.NEGATIVE_INFINITY,i=e.endDate?U(e.endDate):Number.POSITIVE_INFINITY,o=Number.isNaN(s)?Number.NEGATIVE_INFINITY:s,u=Number.isNaN(i)?Number.POSITIVE_INFINITY:i;return n>=o&&n<=u},dt=t=>{var i;const e=((i=r.conf)==null?void 0:i.data)||[];if(!t.length||!e.length)return t;const n=new Map;t.forEach(o=>{const u=q(o.t);n.has(u)||n.set(u,[]),n.get(u).push(o)});const s=[];return Array.from(n.entries()).forEach(([o,u])=>{const d={t:o};let l=!1;e.forEach(f=>{const m=f==null?void 0:f.fv;if(!m)return;let g=0,S=0;u.forEach(c=>{const h=Number(c[m]);Number.isFinite(h)&&(g+=h,S+=1)}),S>0&&(d[m]=Number((g/S).toFixed(6)),l=!0)}),l&&s.push(d)}),s.sort((o,u)=>String(o.t).localeCompare(String(u.t)))},ht=(t,e)=>{const n=String(t||"").trim(),s=String(e||"").trim();return!n||!s?!1:n===s?!0:F.value==="day"?q(n)===q(s):P(n)===P(s)},mt=a.computed(()=>{const t=F.value==="day"?dt(V.value):V.value;if(!t.length)return[];const e=X.value;return!(e!=null&&e.startDate)&&!(e!=null&&e.endDate)?t:t.filter(n=>ft(String(n.t),e))}),J=a.computed(()=>{const t=mt.value;return K.value.length>0?t.filter(e=>K.value.some(n=>ht(String(e.t),n))):t}),G=a.computed(()=>{const t=new Set;return J.value.forEach(e=>t.add(String(e.t))),Array.from(t).sort()});a.computed(()=>G.value.map(t=>F.value==="day"?q(t):P(t)));const z=()=>{a.nextTick(()=>{const t=O.getChartInstance();t&&t.setOption(O.getChartOption(),!0)})},pt=()=>{const t=O.getChartInstance();if(!t)return;const e=t.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=e,n.download=`cluster-slip-${selectedTime.value||Date.now()}.png`,n.click()},Q=()=>{var s,i,o;const t=((s=r.conf)==null?void 0:s.options)||{},e=((i=t==null?void 0:t.linkChannel)==null?void 0:i.value)||H.value.linkChannel||"deepDisplacement",n=((o=t==null?void 0:t.customChannel)==null?void 0:o.value)||"";return e==="custom"&&n?n:e},gt=t=>{var o,u,d;const e=((o=r.conf)==null?void 0:o.data)||[];if(e.length===0)return[];if(Array.isArray(t==null?void 0:t.data))return t.data.map((l,f)=>{var S,c;const m={t:String((c=(S=l==null?void 0:l.time)!=null?S:l==null?void 0:l.datetime)!=null?c:f)};let g=!1;return e.forEach(h=>{const I=h==null?void 0:h.fv;I&&(l==null?void 0:l[I])!==void 0&&(l==null?void 0:l[I])!==null&&(m[I]=Number(l==null?void 0:l[I]),g=!0)}),g?m:null}).filter(Boolean);const s={t:String((d=(u=t==null?void 0:t.time)!=null?u:t==null?void 0:t.datetime)!=null?d:Date.now())};let i=!1;return e.forEach(l=>{const f=l==null?void 0:l.fv;if(!f)return;const m=t==null?void 0:t[f];m!=null&&M.value.set(f,Number(m)),M.value.has(f)&&(s[f]=M.value.get(f),i=!0)}),i?[s]:[]},Z=t=>{var d,l,f,m,g,S;if(!t||!t.payload)return;const e=Q();if((d=t.topic)!=null&&d.channel&&e&&t.topic.channel!==e||!N.shouldHandle(t,"deepClusterSlipSurface"))return;const n=t.payload;if((n==null?void 0:n.type)==="filter"){const c=n.filter||n,h=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id),E=((f=(((l=r.conf)==null?void 0:l.data)||[])[0])==null?void 0:f.configPanelId)||"",C=[r.uid,(m=r.conf)==null?void 0:m.id,(g=r.conf)==null?void 0:g.uid,E].map(y=>String(y||"").trim()).filter(Boolean).includes(String(h||"").trim());if(!h||!C)return;O.setPanelConfig(c);const T=c.nodeList||c.selectList||c.options||c.selectedNodes,_=Array.isArray(T)?T.map(String):null;Y.value=Array.isArray(T),A.value=_&&_.length>0?_:[],Y.value||R();const x=Object.entries(c||{}).find(([y,L])=>{if(!L||typeof L!="object"||Array.isArray(L))return!1;const j=String(y||"").toLowerCase();return j.includes("time")&&j.includes("range")||!!L.startDate&&!!L.endDate}),p=(x==null?void 0:x[1])||c.timeRange||c.range||null;X.value=p&&(p.startDate||p.endDate)?{startDate:p.startDate,endDate:p.endDate}:null;const D=String((p==null?void 0:p.granularity)||(c==null?void 0:c.granularity)||"").toLowerCase();(D==="day"||D==="hour")&&(F.value=D);const k=Object.entries(c||{}).find(([y,L])=>{if(!Array.isArray(L))return!1;const j=String(y||"").toLowerCase();return j.includes("time")||j.includes("date")}),$=c.timeList||c.selectedTimes||(k==null?void 0:k[1]);K.value=Array.isArray($)?$.map(y=>String(y)):[],z();return}const s=r.conf,i=(s==null?void 0:s.data)||[],o=(s==null?void 0:s.common)||{};if(i.length>0&&!(o!=null&&o.multiObject)){const c=B.getObjectId(o,o==null?void 0:o.useAlias,r.uid)||((S=i[0])==null?void 0:S.object_id),h=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(c&&h&&String(c)!==String(h))return}const u=gt(n);u.length&&(V.value=u.length===1?[...V.value.slice(-199),...u]:u,R(),z())},tt=t=>{var l,f,m,g,S,c,h,I;const e=r.conf,n=(e==null?void 0:e.data)||[],s=(e==null?void 0:e.common)||{},i=(s==null?void 0:s.source)||"mosaic";let o=t;["statistics","calculate"].includes(i)&&(o=B.formatStatisticsResult(o,n));const u=n||[],d=[];if((l=o==null?void 0:o.history)!=null&&l.length)o.history.forEach((E,b)=>{var p,D;const C=(E==null?void 0:E[0])||E||{},_={t:String((D=(p=C==null?void 0:C.time)!=null?p:C==null?void 0:C.datetime)!=null?D:b)};let x=!1;u.forEach(k=>{const $=k==null?void 0:k.fv;if(!$)return;const y=C==null?void 0:C[$];y!=null&&(_[$]=Number(y),x=!0)}),x&&d.push(_)}),w.value=d,V.value=[...w.value],R();else{const E=B.getObjectId(s,s==null?void 0:s.useAlias,r.uid)||((f=n[0])==null?void 0:f.object_id),b=E&&((g=(m=o==null?void 0:o[E])==null?void 0:m[i])==null?void 0:g.data)||((S=o==null?void 0:o[i])==null?void 0:S.data)||(o==null?void 0:o.data)||o,T={t:String((h=(c=b==null?void 0:b.time)!=null?c:b==null?void 0:b.datetime)!=null?h:Date.now())};let _=!1;u.forEach(x=>{const p=x==null?void 0:x.fv;if(!p)return;const D=b==null?void 0:b[p];D!=null&&M.value.set(p,Number(D)),M.value.has(p)&&(T[p]=M.value.get(p),_=!0)}),_&&d.push(T),d.length&&(w.value=[...w.value,...d],V.value=[...w.value],R())}!d.length&&!((I=o==null?void 0:o.history)!=null&&I.length)||z()};return a.watch(()=>N.channels[Q()],t=>{t&&Z(t)},{deep:!0}),a.watchEffect(()=>{r.conf.socketData&&O.setSocketData(r.conf.socketData)}),a.watch(()=>{var t;return(t=r.conf)==null?void 0:t.options},()=>{O.getStyle().value=O.extractStyles(),z()},{deep:!0}),a.onMounted(()=>{if(r.mode==="edit"&&!V.value.length){const t=["2026-03-05","2026-03-04","2026-03-03"],e=[];t.forEach(n=>{for(let s=0;s<24;s++){const i=`${n} ${String(s).padStart(2,"0")}:00:00`;e.push({t:i,disp:Number((s*1.8+Math.sin(s/3)*2).toFixed(2)),slip:Number(Math.max(0,Math.min(1,.25+s*.02+Math.sin(s/4)*.08)).toFixed(3))})}}),w.value=e,V.value=[...w.value]}R(),z()}),(t,e)=>{const n=ot.ElIcon,s=ot.ElButton;return a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(H).bgColor,borderRadius:`${a.unref(H).radiusSize}px`})},[a.unref(H).isHideTitle?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"mix-title",style:a.normalizeStyle(ut.value)},a.toDisplayString(v.conf.caption||v.conf.name),5)),a.createElementVNode("div",_t,[a.createElementVNode("div",Vt,[a.createVNode(s,{size:"small",class:"export-btn",onClick:pt},{default:a.withCtx(()=>[a.createVNode(n,null,{default:a.withCtx(()=>[a.createVNode(a.unref(yt.Download))]),_:1}),e[0]||(e[0]=a.createTextVNode(" 导出图 ",-1))]),_:1})]),a.createElementVNode("div",{class:"echart-container",id:a.unref(ct)},null,8,wt)]),a.renderSlot(t.$slots,"default",{},void 0,!0)],4)}}})),Rt=B._export_sfc(Ft,[["__scopeId","data-v-98d6e980"]]);exports.default=Rt;
|