mixdashboards 1.1.21 → 1.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AgActionsRenderer-3HKXKUJY.js → AgActionsRenderer-5w70myzB.js} +1 -1
- package/dist/{AgActionsRenderer-DnPvuT_-.cjs → AgActionsRenderer-DyhCl2zz.cjs} +1 -1
- package/dist/{AgGridTable-BQvI6jpO.cjs → AgGridTable-CDcTnAen.cjs} +1 -1
- package/dist/{AgGridTable-BQ8M3fDj.js → AgGridTable-CktZxLim.js} +1 -1
- package/dist/{BaseComponent-Dn65PXTp.js → BaseComponent-BppXM0zf.js} +3 -3
- package/dist/{BaseComponent-DKuQG62G.cjs → BaseComponent-oKNx9Ues.cjs} +1 -1
- package/dist/{EChartComponentBase-8GSbyY5P.cjs → EChartComponentBase-EgcDDKn2.cjs} +1 -1
- package/dist/{EChartComponentBase-skupRYzl.js → EChartComponentBase-nG6UXIUB.js} +2 -2
- package/dist/{EmergencyPlanPanel-DLvOrE5U.cjs → EmergencyPlanPanel-B1eIafEC.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-C4OsnsPP.js → EmergencyPlanPanel-D_4Fn5SO.js} +1 -1
- package/dist/{HistoryPlanDialog-DI0H_vgZ.js → HistoryPlanDialog-CEwhx44E.js} +1 -1
- package/dist/{HistoryPlanDialog--99rPq54.cjs → HistoryPlanDialog-hp8-y_lT.cjs} +1 -1
- package/dist/{MixiotAppDetailPage-4mYR4gHm.cjs → MixiotAppDetailPage-BjQ8xhQq.cjs} +1 -1
- package/dist/{MixiotAppDetailPage-C_NrtqJU.js → MixiotAppDetailPage-CtW2uh3e.js} +1 -1
- package/dist/{MonitoringMap-Gxy8ldt1.js → MonitoringMap-BvcCSGLu.js} +2 -2
- package/dist/{MonitoringMap-CstXoU8n.cjs → MonitoringMap-DQvaJ3cy.cjs} +1 -1
- package/dist/{UniverSheet-DGNOHAEJ.js → UniverSheet-BkiTo3FI.js} +2 -2
- package/dist/{UniverSheet-phDDfwXk.cjs → UniverSheet-DqpoNfxC.cjs} +1 -1
- package/dist/{accelerationChart-B_y_8Y4q.cjs → accelerationChart-BlqnD3ZO.cjs} +1 -1
- package/dist/{accelerationChart-C4JTCc65.js → accelerationChart-DZFOLlGl.js} +2 -2
- package/dist/{actionItem-CGOgCPJR.js → actionItem-BamQ9wHb.js} +2 -2
- package/dist/{actionItem-Bdw3MAAf.cjs → actionItem-Dswx8azg.cjs} +1 -1
- package/dist/{alarmLevelChart-BQF-4a0s.js → alarmLevelChart-D89lJkJp.js} +2 -2
- package/dist/{alarmLevelChart-CY4GqDio.cjs → alarmLevelChart-euP-K6Eh.cjs} +1 -1
- package/dist/{alertTable-DgiRdm5f.js → alertTable-C_KEi2iA.js} +2 -2
- package/dist/{alertTable-D3riLPwz.cjs → alertTable-ZrYSUz-T.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-DXFCCnvj.cjs → aliasObjectSelectorDemo-Cfs07tyO.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-C7gQUdGu.js → aliasObjectSelectorDemo-NiBEw-mA.js} +1 -1
- package/dist/{annualRainfallChart-C1yG42iq.js → annualRainfallChart-A95P4AEf.js} +2 -2
- package/dist/{annualRainfallChart-D3oUahrK.cjs → annualRainfallChart-Djb5QJ-h.cjs} +1 -1
- package/dist/{aqi-DLqM9gGc.js → aqi-CNSzrLpl.js} +2 -2
- package/dist/{aqi-B3g_go92.cjs → aqi-COyB9n8o.cjs} +1 -1
- package/dist/{aqiIndass-DRYU-FAs.cjs → aqiIndass-7m16-XLR.cjs} +1 -1
- package/dist/{aqiIndass-DDtB5_wf.js → aqiIndass-C6chEVOK.js} +2 -2
- package/dist/{areaDeformCurve-DaLtFoJT.js → areaDeformCurve-Cvx5K5KZ.js} +2 -2
- package/dist/{areaDeformCurve-CnvUJY_x.cjs → areaDeformCurve-Rsny7t_k.cjs} +1 -1
- package/dist/{arrayCard-9p0Bkc_e.cjs → arrayCard-C4BO5wUS.cjs} +1 -1
- package/dist/{arrayCard-FYb8TmUw.js → arrayCard-XkZcuTc2.js} +2 -2
- package/dist/{audio-DGxXcB0a.cjs → audio-Dkj1kTtj.cjs} +1 -1
- package/dist/{audio-BBXpJP54.js → audio-DyEuCoVg.js} +2 -2
- package/dist/{bar-D26zndUl.js → bar-KH_MWom4.js} +2 -2
- package/dist/{bar-btY9Pwkk.cjs → bar-lrGCFy3V.cjs} +1 -1
- package/dist/{basicShapeToolbox-XR_NHK87.cjs → basicShapeToolbox-DRXBPX0p.cjs} +1 -1
- package/dist/{basicShapeToolbox-Y6mXTA8o.js → basicShapeToolbox-O828p_f2.js} +2 -2
- package/dist/{bmp-DlSoc3Rw.cjs → bmp-BcAuwVEV.cjs} +1 -1
- package/dist/{bmp-C7tYeLi0.js → bmp-DVP8hR6v.js} +2 -2
- package/dist/{box-DroQaZjH.js → box-CIpRedoA.js} +2 -2
- package/dist/{box-DyIX9weX.cjs → box-K-VpApOq.cjs} +1 -1
- package/dist/{chartConfigPanel-DvTKL5EZ.cjs → chartConfigPanel-CbSTq7Uc.cjs} +1 -1
- package/dist/{chartConfigPanel-D4dbsVKj.js → chartConfigPanel-DvLs-ST_.js} +1 -1
- package/dist/{circleBar-DCnx8wNj.js → circleBar-BJiYA0I7.js} +2 -2
- package/dist/{circleBar-DulXgWd8.cjs → circleBar-BcWg5DUN.cjs} +1 -1
- package/dist/{clock-CeM6LdAl.cjs → clock-BkxKCVkd.cjs} +1 -1
- package/dist/{clock-B1X6vX22.js → clock-DY-m6uU8.js} +2 -2
- package/dist/{clt-IAzRVgiu.js → clt-3BsKSjrA.js} +2 -2
- package/dist/{clt-CcpO8rrD.cjs → clt-CzE6V7Mo.cjs} +1 -1
- package/dist/{cmc-B4xRwSti.cjs → cmc-B48WvFoD.cjs} +1 -1
- package/dist/{cmc-Swd4NfxE.js → cmc-CN3HZPkZ.js} +2 -2
- package/dist/{cmp--gCtei5x.js → cmp-BGyKJxgJ.js} +2 -2
- package/dist/{cmp-B9Aip3T2.cjs → cmp-DQXfLw3q.cjs} +1 -1
- package/dist/{conclusionCard-CRif9GmS.cjs → conclusionCard-BKGc-jAW.cjs} +1 -1
- package/dist/{conclusionCard-DQ0HTHsg.js → conclusionCard-Bjjq5ydK.js} +2 -2
- package/dist/{controlList-CwLNEkAi.cjs → controlList-DIQaaHzW.cjs} +1 -1
- package/dist/{controlList-4TidO_XJ.js → controlList-DbgerZgl.js} +4 -4
- package/dist/{controlRecordList-dPW6e4FN.js → controlRecordList-Cm5kuri9.js} +3 -3
- package/dist/{controlRecordList-CuvV65TE.cjs → controlRecordList-gX1bBSdd.cjs} +1 -1
- package/dist/{controlRecordListAPP-DCzTOeXr.cjs → controlRecordListAPP-BJtuTA_v.cjs} +1 -1
- package/dist/{controlRecordListAPP-CObVdW3l.js → controlRecordListAPP-CywYspwG.js} +2 -2
- package/dist/{crd-AH_sGivo.cjs → crd-BV-uMbgA.cjs} +1 -1
- package/dist/{crd-CEWC005o.js → crd-brsp3q42.js} +2 -2
- package/dist/{ctrBtn-8xev-mny.js → ctrBtn-v3TaYFER.js} +3 -3
- package/dist/{ctrBtn-nYp9T0n0.cjs → ctrBtn-vLEwc04q.cjs} +1 -1
- package/dist/{ctrSet-z_9ztVyG.cjs → ctrSet--QCLNHTM.cjs} +1 -1
- package/dist/{ctrSet-3Q4eJSfK.js → ctrSet-CwOz-1q8.js} +3 -3
- package/dist/{ctrSwitch-BhqYXTMZ.js → ctrSwitch-B0wzsUx-.js} +3 -3
- package/dist/{ctrSwitch-DacpvyBJ.cjs → ctrSwitch-VnJgIwNZ.cjs} +1 -1
- package/dist/{dataManagement-BiPhJbF1.js → dataManagement-Buj3liEA.js} +2 -2
- package/dist/{dataManagement-DP1Chfo2.cjs → dataManagement-HlKhW6uM.cjs} +1 -1
- package/dist/{dataReport-CQaL-d_q.js → dataReport-81aUJpN3.js} +2 -2
- package/dist/{dataReport-C_8TF5Dz.cjs → dataReport-DefSBauC.cjs} +1 -1
- package/dist/{dataTable-D6-325qb.cjs → dataTable-Do1eIYVl.cjs} +1 -1
- package/dist/{dataTable-Bbx5XgV-.js → dataTable-gB3dhTod.js} +1 -1
- package/dist/{datetime-CmXZdgkW.js → datetime-BD82Foh8.js} +2 -2
- package/dist/{datetime-DBrUO7wD.cjs → datetime-Ci2923_w.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-Ch8i2ql5.cjs → deepClusterSlipSurface-C3WuaKgL.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-D7o7mgg7.js → deepClusterSlipSurface-DnGCI-37.js} +2 -2
- package/dist/{deepDataMatrix-DoM8KUHn.cjs → deepDataMatrix-DqLO9LMn.cjs} +1 -1
- package/dist/{deepDataMatrix-D9GCg496.js → deepDataMatrix-T5vhXxB2.js} +2 -2
- package/dist/{deepDisplacement3D-C8ZRCP-R.cjs → deepDisplacement3D-9al5iKRo.cjs} +1 -1
- package/dist/{deepDisplacement3D-Cjx11pre.js → deepDisplacement3D-CaBrvaDB.js} +2 -2
- package/dist/{deepDisplacementChart-BHe83IoB.js → deepDisplacementChart-BiZTrFbd.js} +3 -3
- package/dist/{deepDisplacementChart-HuWab3pz.js → deepDisplacementChart-CnP_pT6q.js} +2 -2
- package/dist/{deepDisplacementChart-BlcS3DVl.cjs → deepDisplacementChart-Cxt1sX_9.cjs} +1 -1
- package/dist/{deepDisplacementChart-r3GIC8hq.cjs → deepDisplacementChart-DsKqhf_D.cjs} +1 -1
- package/dist/{deepDisplacementView-BHZQ4s3K.cjs → deepDisplacementView-BnxNFHro.cjs} +1 -1
- package/dist/{deepDisplacementView-B4RBH8Ie.js → deepDisplacementView-CCZGM1os.js} +1 -1
- package/dist/{deepNodeTemperatureChart-BswYkP9V.cjs → deepNodeTemperatureChart-BHk_DHiI.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-D9maVN-M.js → deepNodeTemperatureChart-D3DPkDpP.js} +2 -2
- package/dist/{deepTangentAngleChart-DIWKa8r3.js → deepTangentAngleChart-Ay6ubBII.js} +2 -2
- package/dist/{deepTangentAngleChart-DQxOv4Vz.cjs → deepTangentAngleChart-CtkMWMGi.cjs} +1 -1
- package/dist/{deepTemperatureField-DlLLcuFb.js → deepTemperatureField-B3a4_a4e.js} +3 -3
- package/dist/{deepTemperatureField-2GBzigs_.cjs → deepTemperatureField-DoM1mpkc.cjs} +1 -1
- package/dist/{deepTrendChart-CbYdfjcX.cjs → deepTrendChart-8Ffk7Fyh.cjs} +1 -1
- package/dist/{deepTrendChart-CdX41nqe.js → deepTrendChart-DrZH4tDh.js} +2 -2
- package/dist/{deviceOnlineStatus-BMfNv4fX.cjs → deviceOnlineStatus-BLBrn2kY.cjs} +1 -1
- package/dist/{deviceOnlineStatus-BdOeLbLy.js → deviceOnlineStatus-DN14uxWu.js} +2 -2
- package/dist/{deviceStatus-CbYBmGvy.cjs → deviceStatus-BhbD8x9n.cjs} +1 -1
- package/dist/{deviceStatus-B8Ijgoyf.js → deviceStatus-CizZRyZx.js} +2 -2
- package/dist/{displacementDataTable-BI8cE-vY.cjs → displacementDataTable-B7j99TqQ.cjs} +1 -1
- package/dist/{displacementDataTable-Cqi5Ql6a.js → displacementDataTable-CEN0P6Hl.js} +2 -2
- package/dist/{displacementTrajectoryChart-D1UPR4dt.js → displacementTrajectoryChart-DZL3OfqG.js} +2 -2
- package/dist/{displacementTrajectoryChart-DJM_B-gL.cjs → displacementTrajectoryChart-DqoqLg9m.cjs} +1 -1
- package/dist/{displacementTrendChart-C4jvpdRY.cjs → displacementTrendChart-5L8B5miy.cjs} +1 -1
- package/dist/{displacementTrendChart-Dii90QjN.js → displacementTrendChart-CtFxdr4I.js} +2 -2
- package/dist/{dxf-DAAwQlgQ.js → dxf-Db7pX1rT.js} +2 -2
- package/dist/{dxf-DsJIwOOJ.cjs → dxf-Mdf7-mCg.cjs} +1 -1
- package/dist/{dzc-CpML7WAZ.cjs → dzc-7yMgyL71.cjs} +1 -1
- package/dist/{dzc-BjOYTnIF.js → dzc-DUmJRH1P.js} +2 -2
- package/dist/{emergencyPlan-DWpGIszu.cjs → emergencyPlan-BAgYZfNI.cjs} +1 -1
- package/dist/{emergencyPlan-DeL1roPL.js → emergencyPlan-CZMk_c0e.js} +3 -3
- package/dist/{evn-D0ROeiQD.cjs → evn-3POR_VnU.cjs} +1 -1
- package/dist/{evn-CUajXlYc.js → evn-D8iCkbir.js} +2 -2
- package/dist/{evolutionChart-D23ALmPJ.cjs → evolutionChart-D3FB5zxu.cjs} +1 -1
- package/dist/{evolutionChart-B-2W9qVE.js → evolutionChart-DQvwRUdy.js} +3 -3
- package/dist/{fileViewer-DHDmo6px.cjs → fileViewer-WkV-zAO7.cjs} +1 -1
- package/dist/{fileViewer-D6-jyRWy.js → fileViewer-rCVtd7T0.js} +2 -2
- package/dist/{filterBar-Cw-wbtF1.js → filterBar-DlSxn_wD.js} +2 -2
- package/dist/{filterBar-Bx0qkR7L.cjs → filterBar-DltIdPWJ.cjs} +1 -1
- package/dist/{fireCombustionCurve-wPPE55j_.js → fireCombustionCurve-1y5hK4L5.js} +3 -3
- package/dist/{fireCombustionCurve-Dj2o6qcy.cjs → fireCombustionCurve-HawHjc-M.cjs} +1 -1
- package/dist/{fireFilterBar-COgdZt2b.js → fireFilterBar-BlqbGOP4.js} +2 -2
- package/dist/{fireFilterBar-t-aUk0FZ.cjs → fireFilterBar-DAZT-Bpx.cjs} +1 -1
- package/dist/{fireHistoryTable-Em_cwZSy.js → fireHistoryTable-TJBxXMbO.js} +2 -2
- package/dist/{fireHistoryTable-BgzroLVi.cjs → fireHistoryTable-Xnho__5M.cjs} +1 -1
- package/dist/{gag-Dd-osrR9.js → gag-2bC1SX8z.js} +2 -2
- package/dist/{gag-C5gOltT8.cjs → gag-BWyurWbj.cjs} +1 -1
- package/dist/{gasStationList-CepcJ9BG.js → gasStationList-ByDfA1ME.js} +3 -3
- package/dist/{gasStationList-CKe02Teb.cjs → gasStationList-E8nroJxH.cjs} +1 -1
- package/dist/{geo3dViewer-yHqVv2BH.js → geo3dViewer-DWZgiNmX.js} +3 -3
- package/dist/{geo3dViewer-CSq4-kE-.cjs → geo3dViewer-DdckADaP.cjs} +1 -1
- package/dist/{glbModel-CBM7-1vZ.cjs → glbModel-BuDBHnle.cjs} +1 -1
- package/dist/{glbModel-DFDIJi5z.js → glbModel-TWsPG1jm.js} +2 -2
- package/dist/{globalObjectSelector-BoBf_njv.js → globalObjectSelector-BfXFpIT4.js} +1 -1
- package/dist/{globalObjectSelector-BvK0QxXk.cjs → globalObjectSelector-DkGvaSLm.cjs} +1 -1
- package/dist/{gnssFilterBar-C4Ozsjee.js → gnssFilterBar--IPnNd_X.js} +2 -2
- package/dist/{gnssFilterBar-BabiLlIC.cjs → gnssFilterBar-DUtrx67L.cjs} +1 -1
- package/dist/{gnssHistoryTable-DWICO-OK.js → gnssHistoryTable-BBUFmkql.js} +2 -2
- package/dist/{gnssHistoryTable-CEtxui4z.cjs → gnssHistoryTable-DqmU1v9p.cjs} +1 -1
- package/dist/{gnssMapView-C5IzKoTF.cjs → gnssMapView-BjxSphVu.cjs} +2 -2
- package/dist/{gnssMapView-CgLO6fng.js → gnssMapView-CuYU8-Sb.js} +4 -4
- package/dist/{gnssSectionProfile-BFU5_iQa.js → gnssSectionProfile-BO7DLZw4.js} +2 -2
- package/dist/{gnssSectionProfile-BcS3AU5H.cjs → gnssSectionProfile-DBzpNVU4.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-2AOe01nY.cjs → gnssTimeSeriesChart-BB0bCkKI.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-Cyc9JVmX.js → gnssTimeSeriesChart-DBsNpdMg.js} +2 -2
- package/dist/{gnssXYTrajectory-B3HDdORI.cjs → gnssXYTrajectory-B1OBq_4e.cjs} +1 -1
- package/dist/{gnssXYTrajectory-DAjqaaOt.js → gnssXYTrajectory-w4zrq5tm.js} +2 -2
- package/dist/{grd-jisN3fY_.cjs → grd-BpRLvbmM.cjs} +1 -1
- package/dist/{grd-BdraSTc0.js → grd-Dk8p1C9M.js} +2 -2
- package/dist/{grdIndass-BuEWpm2p.js → grdIndass-3Nk4a_rb.js} +2 -2
- package/dist/{grdIndass-BxJWHgbc.cjs → grdIndass-UDpY-94l.cjs} +1 -1
- package/dist/{grg-BiUyteXn.js → grg-CwPVp18v.js} +2 -2
- package/dist/{grg-DHDNZzvS.cjs → grg-Dapz4hmC.cjs} +1 -1
- package/dist/{gridview-DsDgxIu-.js → gridview-BPdaWTQ-.js} +2 -2
- package/dist/{gridview-C2eGcIgv.cjs → gridview-CEmHdQmQ.cjs} +1 -1
- package/dist/{groundwaterFilterBar-CwNVHLoq.js → groundwaterFilterBar-CPmbtMUK.js} +2 -2
- package/dist/{groundwaterFilterBar-Dwoyvzll.cjs → groundwaterFilterBar-DdrB2OhL.cjs} +1 -1
- package/dist/{groundwaterProfileChart-xVZS96Bs.cjs → groundwaterProfileChart--_aICdsm.cjs} +2 -2
- package/dist/{groundwaterProfileChart-pYkKSQRV.js → groundwaterProfileChart-rTFbKcTT.js} +3 -3
- package/dist/{groundwaterTimeCurve-CRic1FkR.js → groundwaterTimeCurve-BMhhLifW.js} +3 -3
- package/dist/{groundwaterTimeCurve-CCP0yOcn.cjs → groundwaterTimeCurve-DhiEP70g.cjs} +1 -1
- package/dist/{groupCard-9mvfU5Qi.cjs → groupCard-BEXXZr5H.cjs} +1 -1
- package/dist/{groupCard-DyiQzmSU.js → groupCard-Cd-SjK0D.js} +2 -2
- package/dist/{headerBar-CT2WWLFX.js → headerBar-CkP6zJ6m.js} +2 -2
- package/dist/{headerBar-BnZZrxdl.cjs → headerBar-DONbsve9.cjs} +1 -1
- package/dist/{history-Dm7563t_.cjs → history-CgrmMOpp.cjs} +1 -1
- package/dist/{history-CY_TCu9h.js → history-DA3HuWif.js} +1 -1
- package/dist/{index-CPTJIw32.js → index-BK7gdNxS.js} +2 -2
- package/dist/{index-DoEyCVDU.cjs → index-ucOU7Nfo.cjs} +2 -2
- package/dist/{insarDeformChart-D7r5dP7T.cjs → insarDeformChart-DxIuzMiF.cjs} +1 -1
- package/dist/{insarDeformChart-Bf6Q1Kll.js → insarDeformChart-ePJmJDWH.js} +2 -2
- package/dist/{insarImageViewer-CupmlYkz.js → insarImageViewer-CUl6mPHo.js} +2 -2
- package/dist/{insarImageViewer-Cj6ywbUG.cjs → insarImageViewer-D6VvwZOs.cjs} +1 -1
- package/dist/{kds-vKrvUAFM.js → kds-DKrmV1Ug.js} +2 -2
- package/dist/{kds-BXJfeT1L.cjs → kds-ixp_4Q7d.cjs} +1 -1
- package/dist/{kpiCard-SXeIckZe.cjs → kpiCard-Frhjsrok.cjs} +1 -1
- package/dist/{kpiCard-DxJnC2K1.js → kpiCard-VfiVkVE5.js} +2 -2
- package/dist/{landslideMap-g1sW7hGk.js → landslideMap-BmpgIOKU.js} +3 -3
- package/dist/{landslideMap-Byzuh2uI.cjs → landslideMap-Cefd78Hr.cjs} +1 -1
- package/dist/{landslideWarning-K2gltHjy.js → landslideWarning-C9w1g1eJ.js} +5 -5
- package/dist/{landslideWarning-DBYw20My.cjs → landslideWarning-CJwHD2g-.cjs} +1 -1
- package/dist/{layerTabs-pQHCSR8d.cjs → layerTabs-BWcJvu6o.cjs} +1 -1
- package/dist/{layerTabs-DhKwbCdm.js → layerTabs-CaYr3bVt.js} +2 -2
- package/dist/{leaflet-src-CLsvhZ1a.js → leaflet-src-CG0fL6E7.js} +1 -1
- package/dist/{leaflet-src-BNvMLv27.cjs → leaflet-src-cP_Xp59B.cjs} +1 -1
- package/dist/{lerc-7GSCiwa9.cjs → lerc-Dxyjp3lu.cjs} +1 -1
- package/dist/{lerc-CqUbnv8h.js → lerc-nA_bKo1b.js} +2 -2
- package/dist/{lin-D0itRkyl.cjs → lin-C9er-MKT.cjs} +1 -1
- package/dist/{lin-Bq35ycag.js → lin-d59CtiiD.js} +2 -2
- package/dist/{linIndass-DYq4eFAR.js → linIndass-BDTgMTrg.js} +2 -2
- package/dist/{linIndass-DWiz2vOV.cjs → linIndass-DPzJBKg2.cjs} +1 -1
- package/dist/{lst-DdajeugL.cjs → lst-CBn0m9tV.cjs} +1 -1
- package/dist/{lst-qvTez4v1.js → lst-_ruZrHgl.js} +2 -2
- package/dist/{manualEntry-D33u42uH.js → manualEntry-Czhqjh1V.js} +2 -2
- package/dist/{manualEntry-s4RAoEru.cjs → manualEntry-XpeHQjMv.cjs} +1 -1
- package/dist/{mapBackground-DM72oEn2.js → mapBackground-Byx5BgIh.js} +3 -3
- package/dist/{mapBackground-YtkaIPHY.cjs → mapBackground-CXtkx_cW.cjs} +1 -1
- package/dist/{mappingList-Dy_UeCUf.js → mappingList-BopA1RgG.js} +4 -4
- package/dist/{mappingList-Ch1HZwNc.cjs → mappingList-DF5tjtEH.cjs} +1 -1
- package/dist/{markdownViewer-DUjEXMVH.cjs → markdownViewer-ByvWuLpI.cjs} +1 -1
- package/dist/{markdownViewer-ZlwNlmLZ.js → markdownViewer-TG5ukdzU.js} +2 -2
- package/dist/{mix-control-modal-tXOouBPe.js → mix-control-modal-DLx3NuPd.js} +1 -1
- package/dist/{mix-control-modal-B3FrB7Jt.cjs → mix-control-modal-N8G3c3I-.cjs} +1 -1
- package/dist/{mixGrid-BU9U3aHI.cjs → mixGrid-BaZ7KaQS.cjs} +1 -1
- package/dist/{mixGrid-CogLsRzO.js → mixGrid-Beb6WPO1.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-xUmmLzM-.js → mjpegCamera-BP-IbOTc.js} +2 -2
- package/dist/{mjpegCamera-g6FXbrP3.cjs → mjpegCamera-V98e_6FG.cjs} +1 -1
- package/dist/{monitorAlert-DZd5lJOJ.cjs → monitorAlert-BVS_Z8Dg.cjs} +1 -1
- package/dist/{monitorAlert-DhE_HvpR.js → monitorAlert-C0ZCmaZ_.js} +2 -2
- package/dist/{monitorData-CpWVhINV.cjs → monitorData-B1J-ygKQ.cjs} +1 -1
- package/dist/{monitorData-BnEkcdiN.js → monitorData-kf9OOmfz.js} +2 -2
- package/dist/{monitorSpeedChart-DwsoytUF.cjs → monitorSpeedChart--uIBgS1h.cjs} +1 -1
- package/dist/{monitorSpeedChart-CeW-Kk03.js → monitorSpeedChart-C4prba7u.js} +1 -1
- package/dist/{mxa-C58deh1I.js → mxa-BGzu1fVC.js} +2 -2
- package/dist/{mxa-0DZWI1xK.cjs → mxa-Dme1Zt_A.cjs} +1 -1
- package/dist/{myValue-B4ADQTTG.js → myValue-BvQtzCg8.js} +2 -2
- package/dist/{myValue-DQLm9XLI.cjs → myValue-G7YgrZEi.cjs} +1 -1
- package/dist/{myValueList-DZA9_HEh.cjs → myValueList-BkK57nlP.cjs} +1 -1
- package/dist/{myValueList-baXd51uR.js → myValueList-DZnNcwD1.js} +2 -2
- package/dist/{objectList-5m0NKALq.js → objectList-C3aDc79p.js} +4 -4
- package/dist/{objectList-BHmAruDg.cjs → objectList-CnZ4cQ35.cjs} +1 -1
- package/dist/{objectListAPP-COZlfKyw.js → objectListAPP-BPDJsUvS.js} +3 -3
- package/dist/{objectListAPP-Cs7Wu_86.cjs → objectListAPP-CPf3_qV6.cjs} +1 -1
- package/dist/{percentBar-CPfJrspp.cjs → percentBar-DveWRDZa.cjs} +1 -1
- package/dist/{percentBar-BV6nG2iK.js → percentBar-uDksWDo8.js} +2 -2
- package/dist/{photo-C4739K_A.cjs → photo-CoFS3w73.cjs} +1 -1
- package/dist/{photo-DK4Z23e3.js → photo-DF7-r79s.js} +2 -2
- package/dist/{pie-kb79hzax.cjs → pie-BcMX-6hx.cjs} +1 -1
- package/dist/{pie-Lx2zjyZY.js → pie-C-lL_OxY.js} +2 -2
- package/dist/{placeholder-CAWJju9d.cjs → placeholder-BBIq0zrf.cjs} +1 -1
- package/dist/{placeholder-Cv_i5j6V.js → placeholder-BUWbejeA.js} +1 -1
- package/dist/{pressBtn-DPp2yGFb.cjs → pressBtn-BdqLTZEg.cjs} +1 -1
- package/dist/{pressBtn-DwN7ExMn.js → pressBtn-s3cYVRzz.js} +3 -3
- package/dist/{processTable-DRzy2-fX.js → processTable-BMGcrtVo.js} +2 -2
- package/dist/{processTable-kGjdZ2SC.cjs → processTable-CtX3EbAy.cjs} +1 -1
- package/dist/{progressBar-D5GyaH8h.js → progressBar-DVBbUSKz.js} +2 -2
- package/dist/{progressBar-89gQ5oSf.cjs → progressBar-DkxV3lH4.cjs} +1 -1
- package/dist/{progressCircle-D6jGTviS.cjs → progressCircle-BTBFvBug.cjs} +1 -1
- package/dist/{progressCircle-C0qoN2X2.js → progressCircle-yhA1gSIx.js} +2 -2
- package/dist/{qrcode-DutO28qr.cjs → qrcode-BvUtJEcC.cjs} +1 -1
- package/dist/{qrcode-B7wIdO7u.js → qrcode-DMALwnTP.js} +2 -2
- package/dist/{raceBar-JrtM5isa.js → raceBar-DMVKWWNz.js} +2 -2
- package/dist/{raceBar-Kb4Ok0_0.cjs → raceBar-DvsXDDGV.cjs} +1 -1
- package/dist/{rad-BKh0I2W8.cjs → rad-BM2lPFkw.cjs} +1 -1
- package/dist/{rad-NhNcdAlO.js → rad-DUODmeni.js} +2 -2
- package/dist/{radarMapViewer-a-NY9MyR.cjs → radarMapViewer-2lMTV5vh.cjs} +1 -1
- package/dist/{radarMapViewer-BrGy_wsI.js → radarMapViewer-MrBQfMft.js} +2 -2
- package/dist/{rainfallFilterBar-CiVPGG1P.js → rainfallFilterBar-KgF4B7vU.js} +2 -2
- package/dist/{rainfallFilterBar-DlJryHw0.cjs → rainfallFilterBar-uA3YceH3.cjs} +1 -1
- package/dist/{rainfallTimeCurve-cYcKHYUj.cjs → rainfallTimeCurve-CrxG_T83.cjs} +1 -1
- package/dist/{rainfallTimeCurve-BwrlePpg.js → rainfallTimeCurve-D-n10joM.js} +3 -3
- package/dist/{rangeLin-CPKLO87X.js → rangeLin-BidSG4I4.js} +2 -2
- package/dist/{rangeLin-B24wJK2h.cjs → rangeLin-CG5Al_0h.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-CHQ7-WE1.cjs → realtimeEvolutionMap-0sytTgyc.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-ZFozACoZ.js → realtimeEvolutionMap-COR7Iu6m.js} +2 -2
- package/dist/{regionBar-Cz4GtJuo.js → regionBar-D83FYXIC.js} +2 -2
- package/dist/{regionBar-Dgv2JYSM.cjs → regionBar-DeN3pSgU.cjs} +1 -1
- package/dist/{request-aXSa-Jdv.js → request-B8xMI2Yd.js} +1 -1
- package/dist/{request-Dm2cf1Aw.cjs → request-P0isWVMj.cjs} +1 -1
- package/dist/{retainer1-B4KyW6bw.js → retainer1-DXCh3XD5.js} +3 -3
- package/dist/{retainer1-B6byWkE5.cjs → retainer1-QYXjY_-E.cjs} +1 -1
- package/dist/{retainer2-X6vRW_D5.js → retainer2-D9URWKd4.js} +3 -3
- package/dist/{retainer2-B06eGTYw.cjs → retainer2-DOL6R_wh.cjs} +1 -1
- package/dist/{retainerRecordList-C8wYAf_v.cjs → retainerRecordList-BrVOOzTp.cjs} +1 -1
- package/dist/{retainerRecordList-DDZSYpCF.js → retainerRecordList-DIJFqgdd.js} +4 -4
- package/dist/{retainerRecordListAPP-BHu691JS.cjs → retainerRecordListAPP-Bhhxg_6S.cjs} +1 -1
- package/dist/{retainerRecordListAPP-B2Lp-jHM.js → retainerRecordListAPP-CWfMiez9.js} +3 -3
- package/dist/{ringTopN-DX7OzPp7.js → ringTopN-71Wbku4t.js} +2 -2
- package/dist/{ringTopN-BpJZOE13.cjs → ringTopN-D2GoQZuJ.cjs} +1 -1
- package/dist/{riskRegionTable-DziKMS_2.cjs → riskRegionTable-B5dggNUC.cjs} +1 -1
- package/dist/{riskRegionTable-D7blgvMi.js → riskRegionTable-BNQTJ2Ge.js} +2 -2
- package/dist/{sankey-DjC4IYit.cjs → sankey-CH8gRYkn.cjs} +1 -1
- package/dist/{sankey-CmgfktZj.js → sankey-Cx4TqXaN.js} +2 -2
- package/dist/{scd-zUFKqN8p.js → scd-Bv-H3GsR.js} +2 -2
- package/dist/{scd-QV9whYOR.cjs → scd-C_SMyVrY.cjs} +1 -1
- package/dist/{sideMenu-POQpSa8C.cjs → sideMenu-BgvO2fLv.cjs} +1 -1
- package/dist/{sideMenu-CI23QNpx.js → sideMenu-CXqsSPSw.js} +2 -2
- package/dist/{slopeStability-E55huDws.js → slopeStability-BhAvmLBt.js} +2 -2
- package/dist/{slopeStability-Da70drIy.cjs → slopeStability-BoZcq3-T.cjs} +1 -1
- package/dist/{speedCurve-BhhUH79z.js → speedCurve-CWlf_Nax.js} +2 -2
- package/dist/{speedCurve-DSX1UJeW.cjs → speedCurve-CbrfiREi.cjs} +1 -1
- package/dist/{stackedBar-bgd2Ls04.js → stackedBar-BlnGr__w.js} +2 -2
- package/dist/{stackedBar-B0kr6QB7.cjs → stackedBar-n3cD2rDv.cjs} +1 -1
- package/dist/{stationList-D7k3Lot6.js → stationList-B2yEOYuh.js} +3 -3
- package/dist/{stationList-BSPTM0iI.cjs → stationList-CSNVN5HU.cjs} +1 -1
- package/dist/{stressFilterBar-Beupo7Zb.js → stressFilterBar-D4Sdfotu.js} +2 -2
- package/dist/{stressFilterBar-B3gk67B_.cjs → stressFilterBar-DzQ8jZ-7.cjs} +1 -1
- package/dist/{stressTimeCurve-DGBhkdbV.js → stressTimeCurve-DJNdn5mr.js} +3 -3
- package/dist/{stressTimeCurve-CbhFLXzA.cjs → stressTimeCurve-TsYsP2md.cjs} +1 -1
- package/dist/{swiper-UlVDFht8.cjs → swiper-DN_mRgrR.cjs} +1 -1
- package/dist/{swiper-BEau8Ehu.js → swiper-NMnLjniT.js} +2 -2
- package/dist/{tablemanCreate-WnNbHft8.js → tablemanCreate-79e2NgHq.js} +3 -3
- package/dist/{tablemanCreate-CF_D5gYW.cjs → tablemanCreate-CUU2ivYP.cjs} +1 -1
- package/dist/{tablemanDetail-yz3zQnFP.js → tablemanDetail-BJFScfLt.js} +4 -4
- package/dist/{tablemanDetail-_SNevfWv.cjs → tablemanDetail-Bn4EaFr9.cjs} +1 -1
- package/dist/{tablemanList-CzcVRDtI.js → tablemanList-BQVVSjNO.js} +4 -4
- package/dist/{tablemanList-CDJWp9Pu.cjs → tablemanList-UEqR1zbO.cjs} +1 -1
- package/dist/{tablemanTableList-Bm2fU0EX.js → tablemanTableList-BjeXb-Ed.js} +4 -4
- package/dist/{tablemanTableList-DX76_Wzv.cjs → tablemanTableList-CmNEMn22.cjs} +1 -1
- package/dist/{tablemanUpdate-zmDu6tfj.js → tablemanUpdate-CxYk0Q3p.js} +3 -3
- package/dist/{tablemanUpdate-wdF6NUSW.cjs → tablemanUpdate-qLGR6MSw.cjs} +1 -1
- package/dist/{terminalConfigList-Dpktm7uo.cjs → terminalConfigList-BRH0eNYF.cjs} +1 -1
- package/dist/{terminalConfigList-CCTkfKIn.js → terminalConfigList-BW3lNMcL.js} +4 -4
- package/dist/{terminalList-DTG1Cd-P.js → terminalList-CVXWY6gA.js} +4 -4
- package/dist/{terminalList-DlnAYr5c.cjs → terminalList-DlUCzkNN.cjs} +1 -1
- package/dist/{terminalListAPP-DcG5Iu89.cjs → terminalListAPP-CoYPnl5t.cjs} +1 -1
- package/dist/{terminalListAPP-BXX0YEmN.js → terminalListAPP-DgZacL77.js} +3 -3
- package/dist/{textbox-C5DmbaFz.cjs → textbox-CetvJfK5.cjs} +1 -1
- package/dist/{textbox-DyFcEXBF.js → textbox-zvSPeTYI.js} +2 -2
- package/dist/{timeQueryBar-OqKVqlTl.cjs → timeQueryBar-49gMRLtt.cjs} +1 -1
- package/dist/{timeQueryBar-BbWq3QkA.js → timeQueryBar-BQpYd4ts.js} +1 -1
- package/dist/{timeSeries-D_-6XcY8.js → timeSeries-AIs-H2YX.js} +3 -3
- package/dist/{timeSeries-BDp-gfRT.cjs → timeSeries-DUsUOOpX.cjs} +1 -1
- package/dist/{timeSeriesCurve-KPYndFEq.cjs → timeSeriesCurve-BoGHV9eI.cjs} +1 -1
- package/dist/{timeSeriesCurve-DgSGvMqB.js → timeSeriesCurve-BtY0gTLp.js} +3 -3
- package/dist/{toggleBtn-DtS2UoB4.cjs → toggleBtn-C7I9t8fL.cjs} +1 -1
- package/dist/{toggleBtn-D0JJAMZR.js → toggleBtn-Dvsu4Z4Y.js} +2 -2
- package/dist/{trajectoryConfigPanel-DxBIMfEx.js → trajectoryConfigPanel-Da0ER586.js} +1 -1
- package/dist/{trajectoryConfigPanel-Bth1LMLN.cjs → trajectoryConfigPanel-SK9LIASn.cjs} +1 -1
- package/dist/{trajectoryScatter-DqgFAVSz.js → trajectoryScatter-DavClc31.js} +2 -2
- package/dist/{trajectoryScatter-GkbJne40.cjs → trajectoryScatter-X17m903i.cjs} +1 -1
- package/dist/{universalConfigPanel-C4Teu_Op.cjs → universalConfigPanel-JWmYt-sl.cjs} +1 -1
- package/dist/{universalConfigPanel-BjyXE23U.js → universalConfigPanel-RqBW3pc4.js} +1 -1
- package/dist/{universalTable-BVwrJKq8.js → universalTable-CS7vowNy.js} +2 -2
- package/dist/{universalTable-D_rkyBG2.cjs → universalTable-MYoWpBsE.cjs} +1 -1
- package/dist/{useMixiotPanelPopperClass-DmA-0R1V.cjs → useMixiotPanelPopperClass-BnYZKYDg.cjs} +1 -1
- package/dist/{useMixiotPanelPopperClass-C6Y6iPSp.js → useMixiotPanelPopperClass-T_LvWhgr.js} +1 -1
- package/dist/{useTablemanApi-CJh5jpVJ.js → useTablemanApi-BIycvQl_.js} +1 -1
- package/dist/{useTablemanApi-Big2Hfsi.cjs → useTablemanApi-DMx5UbHw.cjs} +1 -1
- package/dist/{useTablemanFormPanel-prjUDI9m.cjs → useTablemanFormPanel-ClBQuigR.cjs} +1 -1
- package/dist/{useTablemanFormPanel-CvrN_jY3.js → useTablemanFormPanel-D2f6Nfjx.js} +2 -2
- package/dist/{useTablemanListActions-DVQL1pwu.js → useTablemanListActions-Ijr72FDy.js} +5 -5
- package/dist/{useTablemanListActions-B9SrCZRt.cjs → useTablemanListActions-f64pv0oB.cjs} +1 -1
- package/dist/{video-CdMEjVoF.cjs → video-CY8G2zF1.cjs} +1 -1
- package/dist/{video-DDHDy4Eq.js → video-ljtzNp1v.js} +2 -2
- package/dist/{videoMonitor-BZcjaMPX.cjs → videoMonitor-BTEUgf20.cjs} +1 -1
- package/dist/{videoMonitor-JQ4tj-qi.js → videoMonitor-DQeE-jAV.js} +2 -2
- package/dist/{vlu-Bmqrgnj8.js → vlu-B4m0MEBC.js} +2 -2
- package/dist/{vlu-39EqfkCs.cjs → vlu-C3kOWtbl.cjs} +1 -1
- package/dist/{warningOverview-DOsI-iKt.cjs → warningOverview-C07K822B.cjs} +1 -1
- package/dist/{warningOverview-Ctab9k92.js → warningOverview-HPbxxC5u.js} +3 -3
- package/dist/{weather-BwTT4bPM.js → weather-BNczIkOs.js} +2 -2
- package/dist/{weather-BfV-w4FG.cjs → weather-Cxg6dVwS.cjs} +1 -1
- package/dist/{windLin-Dfz6aBio.cjs → windLin-BQI5vPQo.cjs} +1 -1
- package/dist/{windLin-DgZctBal.js → windLin-B_U-SZvj.js} +2 -2
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var $=Object.defineProperty,k=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var U=(m,c,u)=>c in m?$(m,c,{enumerable:!0,configurable:!0,writable:!0,value:u}):m[c]=u,A=(m,c)=>{for(var u in c||(c={}))W.call(c,u)&&U(m,u,c[u]);if(N)for(var u of N(c))Z.call(c,u)&&U(m,u,c[u]);return m},T=(m,c)=>k(m,q(c));var z=(m,c,u)=>new Promise((v,O)=>{var S=g=>{try{b(u.next(g))}catch(L){O(L)}},E=g=>{try{b(u.throw(g))}catch(L){O(L)}},b=g=>g.done?v(g.value):Promise.resolve(g.value).then(S,E);b((u=u.apply(m,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),X=require("./useComponentI18n-MgEpVhO3.cjs"),P=require("./index-DoEyCVDU.cjs");require("element-plus");const G=require("./EChartComponentBase-8GSbyY5P.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),D=require("./installCanvasRenderer-CyhM1Qpl.cjs"),K=require("./install-DV5cEgNV.cjs"),Q=require("./install-CltTFs4e.cjs"),Y=require("./install-C8buXQPI.cjs"),tt=require("./install-Ch5d8i37.cjs"),et="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",it="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",nt={key:0,class:"mix-title-unit"},ot={class:"mix-body"},st=["id"],lt={DEFAULT_ICON:et,ACTIVE_ICON:it,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1,PLATFORM:["pc","screen","mobile"]},at={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:64,right:30,radiusSize:8,textSize:12,barWidth:50,direction:{value:"x",type:"radio",option:[{value:"x",label:"component.options.x"},{value:"y",label:"component.options.y"}],label:"component.options.direction"},realSort:!1,sortType:{value:"desc",type:"radio",option:[{value:"desc",label:"component.options.desc"},{value:"asc",label:"component.options.asc"}],label:"component.options.sortType",dependent:"realSort"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},rt=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"}],ct=["name","fv","object_id","color"],ut=["mosaic"],ht={useAlias:!1,multiObject:!1,source:"mosaic",valueUnit:"",showPlanCompletionRate:!1},pt={DEFAULT:lt,OPTIONS:at,DATA:rt,PARAMS:ct,SOURCE:ut,COMMON:ht},dt=a.defineComponent(T(A({},pt),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(m){D.use([K.install,Q.install,D.install,Y.install,D.install$1,tt.install]);const c=m;function u(h,e,t){const i=h==null?void 0:h[e];return i==null?t:typeof i=="object"&&"value"in i?i.value:i}function v(h){return String(h).replace(/[|{}]/g,e=>({"|":"|","{":"﹛","}":"﹜"})[e]||e)}class O extends G.EChartComponentBase{constructor(){super(...arguments),this.CHART={rawValues:[],items:[],colors:[],times:[]}}parseNumericRaw(e){if(e==="--"||e===null||e===void 0||e==="")return null;const t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:null}ensureCommonFields(){const e=this.props.conf;(!e.common||typeof e.common!="object")&&(e.common={useAlias:!1,multiObject:!1,source:"mosaic"});const t=e.common;t.valueUnit===void 0&&(t.valueUnit=""),t.showPlanCompletionRate===void 0&&(t.showPlanCompletionRate=!1)}migrateLegacyDisplayOptions(){var r,p,d;this.ensureCommonFields();const e=this.props.conf.common,t=(r=this.props.conf.data)==null?void 0:r[0];t&&typeof t=="object"&&((!e.valueUnit||String(e.valueUnit).trim()==="")&&t.valueUnit!=null&&String(t.valueUnit).trim()!==""&&(e.valueUnit=String(t.valueUnit)),e.showPlanCompletionRate===!1&&t.showPlanCompletionRate===!0&&(e.showPlanCompletionRate=!0),"valueUnit"in t&&delete t.valueUnit,"showPlanCompletionRate"in t&&delete t.showPlanCompletionRate);const i=(p=this.props.conf.options)==null?void 0:p.valueUnit,o=i!=null&&typeof i=="object"&&"value"in i?i.value:i;(!e.valueUnit||String(e.valueUnit).trim()==="")&&o!==void 0&&o!==null&&String(o).trim()!==""&&(e.valueUnit=String(o));const n=(d=this.props.conf.options)==null?void 0:d.showPlanCompletionRate,s=n!=null&&typeof n=="object"&&"value"in n?n.value:n;e.showPlanCompletionRate===!1&&s===!0&&(e.showPlanCompletionRate=!0)}isPlanCompletionRateEnabled(){return this.ensureCommonFields(),!!this.props.conf.common.showPlanCompletionRate}resolveBarItemIndex(e){const t=this.CHART.items,i=[e==null?void 0:e.axisValue,e==null?void 0:e.name];for(const n of i){if(n==null||n==="")continue;const s=t.indexOf(String(n));if(s!==-1)return s}const o=e==null?void 0:e.dataIndex;return typeof o=="number"&&o>=0&&o<t.length?o:Math.min(Math.max(0,o!=null?o:0),Math.max(0,t.length-1))}extractStyles(){return T(A({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){return z(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.migrateLegacyDisplayOptions(),this.initChartData(),yield a.nextTick(),this.initChart()})}initChart(){super.initChart(),requestAnimationFrame(()=>{this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)})}initChartData(){var n,s;const e=this.props.conf,t=this.CHART.rawValues,i=this.CHART.items,o=t.length===((n=e.data)==null?void 0:n.length)&&i.length===((s=e.data)==null?void 0:s.length)&&i.every((r,p)=>{var d;return r===((d=e.data[p])==null?void 0:d.name)});this.CHART={rawValues:[],items:[],colors:[],times:[]},e.data.forEach((r,p)=>{const d=P.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(r.color||P.COLORS[p]),r.value!==void 0&&r.value!==""?this.CHART.rawValues.push(r.value):o&&t[p]!==void 0&&t[p]!==""?this.CHART.rawValues.push(t[p]):this.CHART.rawValues.push(d[0]),this.CHART.items.push(r.name)})}buildSeriesAndMax(){const e=this.isPlanCompletionRateEnabled(),t=this.CHART.rawValues.map(n=>this.parseNumericRaw(n)).filter(n=>n!==null),i=t.length?Math.max(...t):0;return{seriesData:this.CHART.rawValues.map(n=>{const s=this.parseNumericRaw(n);return s===null?null:e?i<=0?0:s/i*100:s}),maxNumeric:i}}getChartOption(){const e=this,t=this.Style.value,i=this.CHART,o=this.isPlanCompletionRateEnabled(),{seriesData:n,maxNumeric:s}=this.buildSeriesAndMax(),r=t.direction==="x",p=r?"right":"center",d={pct:{color:"#000000",fontSize:t.textSize,align:p,padding:r?[0,0,0,10]:[4,0,0,0]}};i.colors.forEach((l,x)=>{d[`raw${x}`]={color:l||"#5470c6",fontSize:t.textSize,align:p,fontWeight:500}});const R=l=>{const x=this.resolveBarItemIndex(l),C=i.rawValues[x];if(o&&s>0){const y=this.parseNumericRaw(C),w=v(String(C)),j=y!==null&&s>0?`${Math.round(y/s*100)}%`:"";return`{raw${x}|${w}}{pct|${v(j)}}`}return`{raw${x}|${v(String(C))}}`},_=28,V=108,I=l=>{var y,w;const x=(w=(y=e.chartObj)==null?void 0:y.getWidth())!=null?w:0;return!x||!l.labelRect?{}:{x:x-12,y:l.labelRect.y+l.labelRect.height/2,verticalAlign:"middle",align:"right"}},F=r?t.right+V:t.right;let f={grid:{top:r?t.top:t.top+_,bottom:t.bottom,left:t.left,right:F,containLabel:!0},tooltip:{show:!0,formatter:l=>{const x=this.resolveBarItemIndex(l),C=i.rawValues[x],y=this.parseNumericRaw(C);let w=`${l.name}:`;return o&&s>0&&y!==null?w+=`${C}(${Math.round(y/s*100)}%)`:w+=String(C),w}},xAxis:{max:"dataMax",axisLine:{show:!0,color:t.textColor},axisTick:{show:!0},splitLine:{lineStyle:{}},axisLabel:{color:t.textColor,fontSize:t.textSize,overflow:"none",interval:0,formatter:l=>l.length>4?l.substr(0,4):l}},yAxis:{axisLabel:{formatter:l=>l.length>5?l.substr(0,5)+`
|
|
1
|
+
"use strict";var $=Object.defineProperty,k=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var U=(m,c,u)=>c in m?$(m,c,{enumerable:!0,configurable:!0,writable:!0,value:u}):m[c]=u,A=(m,c)=>{for(var u in c||(c={}))W.call(c,u)&&U(m,u,c[u]);if(N)for(var u of N(c))Z.call(c,u)&&U(m,u,c[u]);return m},T=(m,c)=>k(m,q(c));var z=(m,c,u)=>new Promise((v,O)=>{var S=g=>{try{b(u.next(g))}catch(L){O(L)}},E=g=>{try{b(u.throw(g))}catch(L){O(L)}},b=g=>g.done?v(g.value):Promise.resolve(g.value).then(S,E);b((u=u.apply(m,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),X=require("./useComponentI18n-MgEpVhO3.cjs"),P=require("./index-ucOU7Nfo.cjs");require("element-plus");const G=require("./EChartComponentBase-EgcDDKn2.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),D=require("./installCanvasRenderer-CyhM1Qpl.cjs"),K=require("./install-DV5cEgNV.cjs"),Q=require("./install-CltTFs4e.cjs"),Y=require("./install-C8buXQPI.cjs"),tt=require("./install-Ch5d8i37.cjs"),et="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",it="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",nt={key:0,class:"mix-title-unit"},ot={class:"mix-body"},st=["id"],lt={DEFAULT_ICON:et,ACTIVE_ICON:it,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1,PLATFORM:["pc","screen","mobile"]},at={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:64,right:30,radiusSize:8,textSize:12,barWidth:50,direction:{value:"x",type:"radio",option:[{value:"x",label:"component.options.x"},{value:"y",label:"component.options.y"}],label:"component.options.direction"},realSort:!1,sortType:{value:"desc",type:"radio",option:[{value:"desc",label:"component.options.desc"},{value:"asc",label:"component.options.asc"}],label:"component.options.sortType",dependent:"realSort"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},rt=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"}],ct=["name","fv","object_id","color"],ut=["mosaic"],ht={useAlias:!1,multiObject:!1,source:"mosaic",valueUnit:"",showPlanCompletionRate:!1},pt={DEFAULT:lt,OPTIONS:at,DATA:rt,PARAMS:ct,SOURCE:ut,COMMON:ht},dt=a.defineComponent(T(A({},pt),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(m){D.use([K.install,Q.install,D.install,Y.install,D.install$1,tt.install]);const c=m;function u(h,e,t){const i=h==null?void 0:h[e];return i==null?t:typeof i=="object"&&"value"in i?i.value:i}function v(h){return String(h).replace(/[|{}]/g,e=>({"|":"|","{":"﹛","}":"﹜"})[e]||e)}class O extends G.EChartComponentBase{constructor(){super(...arguments),this.CHART={rawValues:[],items:[],colors:[],times:[]}}parseNumericRaw(e){if(e==="--"||e===null||e===void 0||e==="")return null;const t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:null}ensureCommonFields(){const e=this.props.conf;(!e.common||typeof e.common!="object")&&(e.common={useAlias:!1,multiObject:!1,source:"mosaic"});const t=e.common;t.valueUnit===void 0&&(t.valueUnit=""),t.showPlanCompletionRate===void 0&&(t.showPlanCompletionRate=!1)}migrateLegacyDisplayOptions(){var r,p,d;this.ensureCommonFields();const e=this.props.conf.common,t=(r=this.props.conf.data)==null?void 0:r[0];t&&typeof t=="object"&&((!e.valueUnit||String(e.valueUnit).trim()==="")&&t.valueUnit!=null&&String(t.valueUnit).trim()!==""&&(e.valueUnit=String(t.valueUnit)),e.showPlanCompletionRate===!1&&t.showPlanCompletionRate===!0&&(e.showPlanCompletionRate=!0),"valueUnit"in t&&delete t.valueUnit,"showPlanCompletionRate"in t&&delete t.showPlanCompletionRate);const i=(p=this.props.conf.options)==null?void 0:p.valueUnit,o=i!=null&&typeof i=="object"&&"value"in i?i.value:i;(!e.valueUnit||String(e.valueUnit).trim()==="")&&o!==void 0&&o!==null&&String(o).trim()!==""&&(e.valueUnit=String(o));const n=(d=this.props.conf.options)==null?void 0:d.showPlanCompletionRate,s=n!=null&&typeof n=="object"&&"value"in n?n.value:n;e.showPlanCompletionRate===!1&&s===!0&&(e.showPlanCompletionRate=!0)}isPlanCompletionRateEnabled(){return this.ensureCommonFields(),!!this.props.conf.common.showPlanCompletionRate}resolveBarItemIndex(e){const t=this.CHART.items,i=[e==null?void 0:e.axisValue,e==null?void 0:e.name];for(const n of i){if(n==null||n==="")continue;const s=t.indexOf(String(n));if(s!==-1)return s}const o=e==null?void 0:e.dataIndex;return typeof o=="number"&&o>=0&&o<t.length?o:Math.min(Math.max(0,o!=null?o:0),Math.max(0,t.length-1))}extractStyles(){return T(A({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){return z(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.migrateLegacyDisplayOptions(),this.initChartData(),yield a.nextTick(),this.initChart()})}initChart(){super.initChart(),requestAnimationFrame(()=>{this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)})}initChartData(){var n,s;const e=this.props.conf,t=this.CHART.rawValues,i=this.CHART.items,o=t.length===((n=e.data)==null?void 0:n.length)&&i.length===((s=e.data)==null?void 0:s.length)&&i.every((r,p)=>{var d;return r===((d=e.data[p])==null?void 0:d.name)});this.CHART={rawValues:[],items:[],colors:[],times:[]},e.data.forEach((r,p)=>{const d=P.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(r.color||P.COLORS[p]),r.value!==void 0&&r.value!==""?this.CHART.rawValues.push(r.value):o&&t[p]!==void 0&&t[p]!==""?this.CHART.rawValues.push(t[p]):this.CHART.rawValues.push(d[0]),this.CHART.items.push(r.name)})}buildSeriesAndMax(){const e=this.isPlanCompletionRateEnabled(),t=this.CHART.rawValues.map(n=>this.parseNumericRaw(n)).filter(n=>n!==null),i=t.length?Math.max(...t):0;return{seriesData:this.CHART.rawValues.map(n=>{const s=this.parseNumericRaw(n);return s===null?null:e?i<=0?0:s/i*100:s}),maxNumeric:i}}getChartOption(){const e=this,t=this.Style.value,i=this.CHART,o=this.isPlanCompletionRateEnabled(),{seriesData:n,maxNumeric:s}=this.buildSeriesAndMax(),r=t.direction==="x",p=r?"right":"center",d={pct:{color:"#000000",fontSize:t.textSize,align:p,padding:r?[0,0,0,10]:[4,0,0,0]}};i.colors.forEach((l,x)=>{d[`raw${x}`]={color:l||"#5470c6",fontSize:t.textSize,align:p,fontWeight:500}});const R=l=>{const x=this.resolveBarItemIndex(l),C=i.rawValues[x];if(o&&s>0){const y=this.parseNumericRaw(C),w=v(String(C)),j=y!==null&&s>0?`${Math.round(y/s*100)}%`:"";return`{raw${x}|${w}}{pct|${v(j)}}`}return`{raw${x}|${v(String(C))}}`},_=28,V=108,I=l=>{var y,w;const x=(w=(y=e.chartObj)==null?void 0:y.getWidth())!=null?w:0;return!x||!l.labelRect?{}:{x:x-12,y:l.labelRect.y+l.labelRect.height/2,verticalAlign:"middle",align:"right"}},F=r?t.right+V:t.right;let f={grid:{top:r?t.top:t.top+_,bottom:t.bottom,left:t.left,right:F,containLabel:!0},tooltip:{show:!0,formatter:l=>{const x=this.resolveBarItemIndex(l),C=i.rawValues[x],y=this.parseNumericRaw(C);let w=`${l.name}:`;return o&&s>0&&y!==null?w+=`${C}(${Math.round(y/s*100)}%)`:w+=String(C),w}},xAxis:{max:"dataMax",axisLine:{show:!0,color:t.textColor},axisTick:{show:!0},splitLine:{lineStyle:{}},axisLabel:{color:t.textColor,fontSize:t.textSize,overflow:"none",interval:0,formatter:l=>l.length>4?l.substr(0,4):l}},yAxis:{axisLabel:{formatter:l=>l.length>5?l.substr(0,5)+`
|
|
2
2
|
`+l.substr(5):l,color:t.textColor,fontSize:t.textSize,overflow:"none"},axisLine:{lineStyle:{color:t.textColor}},splitLine:{lineStyle:{}},animationDuration:300,animationDurationUpdate:300},series:[T(A({realtimeSort:t.realSort,type:"bar",barWidth:t.barWidth+"%",data:n},r?{labelLayout:I}:{}),{label:{show:!0,position:r?"right":"top",align:p,verticalAlign:r?"middle":"bottom",valueAnimation:!0,color:t.textColor,fontSize:t.textSize,rich:d,formatter:R},itemStyle:{color:l=>i.colors[this.resolveBarItemIndex(l)]||"#5470c6"}})],animationDuration:0,animationDurationUpdate:500,animationEasing:"linear",animationEasingUpdate:"linear"};return r?(f.yAxis.data=i.items,t.realSort&&(f.yAxis.inverse=t.sortType==="desc"),f.xAxis.splitLine.lineStyle.type="dashed",o&&s>0&&(f.xAxis.max=100,f.xAxis.axisLabel.formatter=l=>`${l}%`)):(f.xAxis.data=i.items,delete f.xAxis.max,t.realSort&&(f.xAxis.inverse=t.sortType==="asc"),f.yAxis.splitLine.lineStyle.type="dashed",delete f.yAxis.type,o&&s>0&&(f.yAxis.max=100,f.yAxis.axisLabel.formatter=l=>`${l}%`)),f}setHistoryData(e){if(!(e!=null&&e.length)||!this.chartObj)return;const{data:t}=this.props.conf;if(!Array.isArray(t)||!t.length)return;const i=n=>{if(n==null||n===""||n==="-")return null;const s=Number(n);return Number.isFinite(s)?s:null},o=Number(this.Style.value.points)||10;t.forEach((n,s)=>{var _;const r=e[s];if(!((_=r==null?void 0:r.data)!=null&&_.length)){this.CHART.rawValues[s]="--";return}const d=r.data.map(i).filter(V=>V!==null).slice(-o),R=d.length?d[d.length-1]:null;this.CHART.rawValues[s]=R!==null?R:"--"}),this.chartObj.setOption(this.getChartOption(),!1)}setSocketData(e){if(!this.hasData()||!e||!this.chartObj)return;const{data:t}=this.props.conf;this.CHART.rawValues=[],t.forEach(o=>{const n=this.extractDataValue(e,o.fv);this.CHART.rawValues.push(n!=null?n:"--")});const{seriesData:i}=this.buildSeriesAndMax();this.chartObj.setOption({series:[{data:i}]})}}const S=new O(c,"raceBar");S.setupLifecycle();const E=S.getStyle(),b=S.getEchartId(),g=c.conf,{t:L}=X.useComponentI18n(),M=a.computed(()=>{var o;const h=((o=c.conf)==null?void 0:o.common)||{},e=String(h.valueUnit||"").trim(),t=!!h.showPlanCompletionRate,i=[];return e&&i.push(e),t&&i.push(L("component.options.showPlanCompletionRate")),i.join(" / ")}),B=a.computed(()=>{const h=J.generateTitleStyle(c.conf.options);return h.display==="none"?h:T(A({},h),{display:"flex",alignItems:"center",gap:"8px",textAlign:"initial"})}),H=a.computed(()=>{var e;const h=((e=c.conf)==null?void 0:e.options)||{};return{flex:"1",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:u(h,"titleColor","#111"),fontSize:`${u(h,"titleSize",14)}px`,fontWeight:u(h,"titleWeight","bold"),textAlign:u(h,"titleAlign","left")}});return(h,e)=>(a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(E).bgColor,borderRadius:`${a.unref(E).radiusSize}px`})},[a.createElementVNode("div",{class:"mix-title",style:a.normalizeStyle(B.value)},[a.createElementVNode("span",{class:"mix-title-caption",style:a.normalizeStyle(H.value)},a.toDisplayString(a.unref(g).caption||a.unref(g).name),5),M.value?(a.openBlock(),a.createElementBlock("span",nt,a.toDisplayString(M.value),1)):a.createCommentVNode("",!0)],4),a.createElementVNode("div",ot,[a.createElementVNode("div",{class:"w-full h-full",id:a.unref(b)},null,8,st)]),a.renderSlot(h.$slots,"default",{},void 0,!0)],4))}})),mt=P._export_sfc(dt,[["__scopeId","data-v-84c35822"]]);exports.default=mt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var y=Object.defineProperty,b=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var f=(l,e,o)=>e in l?y(l,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[e]=o,g=(l,e)=>{for(var o in e||(e={}))w.call(e,o)&&f(l,o,e[o]);if(u)for(var o of u(e))_.call(e,o)&&f(l,o,e[o]);return l},h=(l,e)=>b(l,O(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),M=require("./index-DoEyCVDU.cjs");require("element-plus");const E=require("./EChartComponentBase-8GSbyY5P.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),T=require("./install-B1IEhhn3.cjs"),c=require("./installCanvasRenderer-CyhM1Qpl.cjs"),V=require("./install-DV5cEgNV.cjs"),N=require("./install-CltTFs4e.cjs"),Z="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",A={class:"mix-body"},F=["id"],j={DEFAULT_ICON:Z,ACTIVE_ICON:k,NAME_CN:"雷达图",NAME_EN:"Radar",ORDER:1,PLATFORM:["pc","screen","mobile"]},B={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",borderColor:"#666",radiusSize:8,textSize:12,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},m=[{name:"参数一",fv:"",object_id:"",max:200},{name:"参数二",fv:"",object_id:"",max:200},{name:"参数三",fv:"",object_id:"",max:200}],D=["name","fv","object_id","max"],q=["mosaic","statistics","calculate"],R={useAlias:!1,multiObject:!1,source:"mosaic"},I={DEFAULT:j,OPTIONS:B,DATA:m,PARAMS:D,SOURCE:q,COMMON:R},P=t.defineComponent(h(g({},I),{__name:"rad",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){c.use([V.install,N.install,c.install,c.install$1,T.install]);const e=l,o=["#ffffff","#e5e5e5"];class x extends E.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),borderColor:this.getOptionValue("borderColor","#666"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),type:this.getOptionValue("type","none"),points:this.getOptionValue("points",10)}}getChartOption(){const i=this.Style.value,{data:r,name:a}=this.props.conf;return{title:{show:!1,text:a,x:"center",top:"50%",textStyle:{color:"#fff",fontWeight:"normal",fontSize:28}},tooltip:{trigger:"axis",confine:!0},radar:{shape:i.type,axisNameGap:10,alignTicks:!1,splitNumber:4,indicator:r.map(n=>({name:n.name,max:n.max})),center:["50%","50%"],axisLine:{lineStyle:{type:"dashed",color:i.borderColor}},splitLine:{show:!0,lineStyle:{width:1,color:i.borderColor}},splitArea:{show:!0,areaStyle:{color:o}},axisName:{fontSize:i.textSize,color:i.textColor}},series:[{name:a!=null?a:"",type:"radar",tooltip:{trigger:"item"},data:[{name:a,value:[]}],itemStyle:{color:"#3F5FE3"},areaStyle:{color:"#4162ff"}}]}}getDefaultData(){return m}setHistoryData(i){if(!i)return;const r=this.chartObj.getOption();r.series[0].data[0].value=[],i.forEach(a=>{var n;r.series[0].data[0].value.push((n=a.data[0])!=null?n:0)}),this.chartObj.setOption(r)}setSocketData(i){if(!i||!this.chartObj)return;const{data:r}=this.props.conf,a=this.chartObj.getOption();a.series[0].data[0].value=[],r.forEach(n=>{const L=this.extractDataValue(i,n.fv);a.series[0].data[0].value.push(L!=null?L:0)}),this.chartObj.setOption(a)}}const s=new x(e,"radar");s.setupLifecycle();const C=s.getStyle(),v=s.getEchartId(),d=e.conf,S=t.computed(()=>z.generateTitleStyle(e.conf.options));return(p,i)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(C).bgColor,borderRadius:`${t.unref(C).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(S.value)},t.toDisplayString(t.unref(d).caption||t.unref(d).name),5),t.createElementVNode("div",A,[t.createElementVNode("div",{class:"w-full h-full",id:t.unref(v)},null,8,F)]),t.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),$=M._export_sfc(P,[["__scopeId","data-v-36fbdf8b"]]);exports.default=$;
|
|
1
|
+
"use strict";var y=Object.defineProperty,b=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var f=(l,e,o)=>e in l?y(l,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[e]=o,g=(l,e)=>{for(var o in e||(e={}))w.call(e,o)&&f(l,o,e[o]);if(u)for(var o of u(e))_.call(e,o)&&f(l,o,e[o]);return l},h=(l,e)=>b(l,O(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),M=require("./index-ucOU7Nfo.cjs");require("element-plus");const E=require("./EChartComponentBase-EgcDDKn2.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),T=require("./install-B1IEhhn3.cjs"),c=require("./installCanvasRenderer-CyhM1Qpl.cjs"),V=require("./install-DV5cEgNV.cjs"),N=require("./install-CltTFs4e.cjs"),Z="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",A={class:"mix-body"},F=["id"],j={DEFAULT_ICON:Z,ACTIVE_ICON:k,NAME_CN:"雷达图",NAME_EN:"Radar",ORDER:1,PLATFORM:["pc","screen","mobile"]},B={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",borderColor:"#666",radiusSize:8,textSize:12,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},m=[{name:"参数一",fv:"",object_id:"",max:200},{name:"参数二",fv:"",object_id:"",max:200},{name:"参数三",fv:"",object_id:"",max:200}],D=["name","fv","object_id","max"],q=["mosaic","statistics","calculate"],R={useAlias:!1,multiObject:!1,source:"mosaic"},I={DEFAULT:j,OPTIONS:B,DATA:m,PARAMS:D,SOURCE:q,COMMON:R},P=t.defineComponent(h(g({},I),{__name:"rad",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){c.use([V.install,N.install,c.install,c.install$1,T.install]);const e=l,o=["#ffffff","#e5e5e5"];class x extends E.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),borderColor:this.getOptionValue("borderColor","#666"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),type:this.getOptionValue("type","none"),points:this.getOptionValue("points",10)}}getChartOption(){const i=this.Style.value,{data:r,name:a}=this.props.conf;return{title:{show:!1,text:a,x:"center",top:"50%",textStyle:{color:"#fff",fontWeight:"normal",fontSize:28}},tooltip:{trigger:"axis",confine:!0},radar:{shape:i.type,axisNameGap:10,alignTicks:!1,splitNumber:4,indicator:r.map(n=>({name:n.name,max:n.max})),center:["50%","50%"],axisLine:{lineStyle:{type:"dashed",color:i.borderColor}},splitLine:{show:!0,lineStyle:{width:1,color:i.borderColor}},splitArea:{show:!0,areaStyle:{color:o}},axisName:{fontSize:i.textSize,color:i.textColor}},series:[{name:a!=null?a:"",type:"radar",tooltip:{trigger:"item"},data:[{name:a,value:[]}],itemStyle:{color:"#3F5FE3"},areaStyle:{color:"#4162ff"}}]}}getDefaultData(){return m}setHistoryData(i){if(!i)return;const r=this.chartObj.getOption();r.series[0].data[0].value=[],i.forEach(a=>{var n;r.series[0].data[0].value.push((n=a.data[0])!=null?n:0)}),this.chartObj.setOption(r)}setSocketData(i){if(!i||!this.chartObj)return;const{data:r}=this.props.conf,a=this.chartObj.getOption();a.series[0].data[0].value=[],r.forEach(n=>{const L=this.extractDataValue(i,n.fv);a.series[0].data[0].value.push(L!=null?L:0)}),this.chartObj.setOption(a)}}const s=new x(e,"radar");s.setupLifecycle();const C=s.getStyle(),v=s.getEchartId(),d=e.conf,S=t.computed(()=>z.generateTitleStyle(e.conf.options));return(p,i)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(C).bgColor,borderRadius:`${t.unref(C).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(S.value)},t.toDisplayString(t.unref(d).caption||t.unref(d).name),5),t.createElementVNode("div",A,[t.createElementVNode("div",{class:"w-full h-full",id:t.unref(v)},null,8,F)]),t.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),$=M._export_sfc(P,[["__scopeId","data-v-36fbdf8b"]]);exports.default=$;
|
|
@@ -11,9 +11,9 @@ var m = (i, t, e) => t in i ? y(i, t, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return i;
|
|
12
12
|
}, g = (i, t) => O(i, w(t));
|
|
13
13
|
import { defineComponent as E, computed as z, openBlock as T, createElementBlock as Z, normalizeStyle as h, unref as s, createElementVNode as c, toDisplayString as k, renderSlot as A } from "vue";
|
|
14
|
-
import { _ as F } from "./index-
|
|
14
|
+
import { _ as F } from "./index-BK7gdNxS.js";
|
|
15
15
|
import "element-plus";
|
|
16
|
-
import { E as V } from "./EChartComponentBase-
|
|
16
|
+
import { E as V } from "./EChartComponentBase-nG6UXIUB.js";
|
|
17
17
|
import { g as N } from "./titleStyle-BT5GlpAb.js";
|
|
18
18
|
import { i as j } from "./install-BfNaEf5I.js";
|
|
19
19
|
import { u as D, i as B, a as R } from "./installCanvasRenderer-oDYkyVFy.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Ct=Object.defineProperty,At=Object.defineProperties;var Nt=Object.getOwnPropertyDescriptors;var Be=Object.getOwnPropertySymbols;var Vt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable;var $e=(k,p,x)=>p in k?Ct(k,p,{enumerable:!0,configurable:!0,writable:!0,value:x}):k[p]=x,De=(k,p)=>{for(var x in p||(p={}))Vt.call(p,x)&&$e(k,x,p[x]);if(Be)for(var x of Be(p))Mt.call(p,x)&&$e(k,x,p[x]);return k},Le=(k,p)=>At(k,Nt(p));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const Rt=require("./BaseComponent-DKuQG62G.cjs"),Bt=require("./index-DoEyCVDU.cjs"),Te=require("./ele-lin-icon-Dke_1AmT.cjs"),$t={class:"map-toolbar"},Dt={class:"toolbar-left"},Lt={class:"dropdown-wrapper"},Tt={class:"dropdown-wrapper"},Pt={class:"dropdown-wrapper"},It={class:"model-btn-wrapper"},Ot=["value","checked","onChange"],_t={class:"dropdown-item",style:{"border-bottom":"1px solid #eee","font-weight":"bold"}},Ft=["checked"],zt=["value","checked","onChange"],Ut={style:{padding:"8px","border-bottom":"1px solid #eee",background:"#f8fbff"}},Ht={style:{"max-height":"300px","overflow-y":"auto"}},Wt={class:"dropdown-item",style:{background:"#fafafa"}},jt=["checked"],Yt=["checked","onChange"],qt={class:"dropdown-item",style:{background:"#fafafa"}},Xt=["checked"],Gt=["checked","onChange"],Kt=["checked","onChange"],Zt=["width","height","viewBox"],Jt=["width","height","viewBox"],Qt=["width","height","viewBox"],en=["title","onClick"],tn=["title","onClick"],nn={key:0,class:"draw-toolbar"},ln={class:"draw-tip"},on={DEFAULT_ICON:Te.DEFAULT_ICON,ACTIVE_ICON:Te.ACTIVE_ICON,NAME_CN:"雷达地图查看器",NAME_EN:"Radar Map Viewer",ORDER:2,PLATFORM:["pc","screen"]},rn={bgColor:{value:"#0b1a31",type:"color",label:"背景色"},canvasWidth:{value:3e3,type:"number",label:"画布宽度"},canvasHeight:{value:2500,type:"number",label:"画布高度"},geologyModelUrl:{value:"",type:"string",label:"地质模型图片URL"},dtmModelUrl:{value:"",type:"string",label:"DTM面图片URL"},uavModelUrl:{value:"",type:"string",label:"无人机地图URL"},linkChannel:{value:"radarMonitor",type:"select",label:"联动频道",options:[{label:"雷达监测",value:"radarMonitor"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},an=[{name:"雷达1(北)",fv:"",object_id:"",color:"#409EFF",lng:"106.7120",lat:"26.5790",elevation:"1520",region:"南帮",x:1500,y:200,angle:180,targetSide:"bottom"},{name:"雷达2(东)",fv:"",object_id:"",color:"#E6A23C",lng:"106.7180",lat:"26.5810",elevation:"1480",region:"西帮",x:2650,y:1250,angle:270,targetSide:"left"},{name:"雷达3(南)",fv:"",object_id:"",color:"#67C23A",lng:"106.7120",lat:"26.5840",elevation:"1500",region:"北帮",x:1500,y:2300,angle:0,targetSide:"top"},{name:"雷达4(西)",fv:"",object_id:"",color:"#909399",lng:"106.7060",lat:"26.5810",elevation:"1460",region:"东帮",x:350,y:1250,angle:90,targetSide:"right"}],sn=["name","fv","object_id","color","lng","lat","elevation","region","x","y","angle","targetSide"],cn=["mosaic"],un={source:"mosaic"},dn={DEFAULT:on,OPTIONS:rn,DATA:an,PARAMS:sn,SOURCE:cn,COMMON:un},gn=e.defineComponent(Le(De({},dn),{__name:"radarMapViewer",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(k){const p=k;class x extends Rt.BaseComponent{extractStyles(){var i,r,a,v,f,g,d,h;const{options:t}=this.props.conf,l=((i=t==null?void 0:t.linkChannel)==null?void 0:i.value)||"radarMonitor",o=((r=t==null?void 0:t.customChannel)==null?void 0:r.value)||"";return{bgColor:((a=t==null?void 0:t.bgColor)==null?void 0:a.value)||"#0b1a31",canvasWidth:((v=t==null?void 0:t.canvasWidth)==null?void 0:v.value)||3e3,canvasHeight:((f=t==null?void 0:t.canvasHeight)==null?void 0:f.value)||2500,geologyModelUrl:((g=t==null?void 0:t.geologyModelUrl)==null?void 0:g.value)||"",dtmModelUrl:((d=t==null?void 0:t.dtmModelUrl)==null?void 0:d.value)||"",uavModelUrl:((h=t==null?void 0:t.uavModelUrl)==null?void 0:h.value)||"",linkChannel:l==="custom"&&o?o:l}}onLinkEvent(t){Et(t)}}const E=new x(p,"radarMapViewer");E.setupLifecycle();const m=E.getStyle(),c=1500,u=1250,Pe=["#F57676","#FFA500","#E6A23C","#66B1FF","#71C446"],D=[{w:2200,h:1600},{w:1900,h:1400},{w:1600,h:1200},{w:1300,h:1e3},{w:1e3,h:800}],Ie=[{id:"R1",name:"雷达1(北)",region:"南帮",x:c,y:u-1050,angle:180,targetSide:"bottom",isOnline:!0},{id:"R2",name:"雷达2(东)",region:"西帮",x:c+1150,y:u,angle:270,targetSide:"left",isOnline:!0},{id:"R3",name:"雷达3(南)",region:"北帮",x:c,y:u+1050,angle:0,targetSide:"top",isOnline:!0},{id:"R4",name:"雷达4(西)",region:"东帮",x:c-1150,y:u,angle:90,targetSide:"right",isOnline:!1}],Oe=()=>{var t;const n=(t=p.conf)==null?void 0:t.data;return!Array.isArray(n)||n.length===0?Ie:n.map((l,o)=>({id:l.object_id||`R${o+1}`,name:l.name||`雷达${o+1}`,region:l.region||"",x:Number(l.x)||c,y:Number(l.y)||u,angle:Number(l.angle)||0,targetSide:l.targetSide||"bottom",isOnline:l.value!==void 0?!!l.value:!0}))},C=e.computed(()=>Oe()),y=e.ref(null),F=e.ref(null),ce=e.ref(null),W=e.ref(null),X=e.ref(null),ue=e.ref(null),de=e.ref(null),ge=e.ref(null),ve=e.ref(null),z=e.ref({top:"0px",left:"0px",minWidth:"0px"}),S=e.ref(.6),w=e.reactive({x:-300,y:-200}),G=e.ref([]),fe=e.ref([]),T=e.ref(new Set),B=e.ref(null),s=e.reactive({isDrawing:!1,mode:"surface",surfacePoints:[],mixedShapes:[],cursorPos:null,dragStart:null,isDragging:!1});let te=!1,me=0,he=0;const ne=e.computed(()=>["全部",...[...new Set(C.value.map(t=>t.region).filter(Boolean))]]),le=["区域1","区域2","区域3"],oe=["监测线1","监测线2","监测线3"],_e=[{id:"geology",label:"地质模型"},{id:"dtm",label:"DTM面"},{id:"uav",label:"无人机地图"}],L=e.ref(null),b=e.ref([]),A=e.ref([]),P=e.ref([]),I=e.ref([]),N=e.ref(["geology"]),$=e.ref(""),j=e.ref(1),K=e.ref("2025-10-10T13:22"),Z=e.ref("2026-01-18T00:00"),Fe=e.computed(()=>{const n=b.value.filter(t=>t!=="全部");return n.length?b.value.includes("全部")?"已选全部":n.length<=1?n[0]:`已选(${n.length})`:"选择区域"}),pe=e.computed(()=>{const n=b.value.filter(t=>t!=="全部");return!n.length||b.value.includes("全部")?C.value:C.value.filter(t=>n.includes(t.region))}),ze=e.computed(()=>{const n=pe.value.map(t=>t.name);return n.length>0&&n.every(t=>A.value.includes(t))}),Ue=e.computed(()=>{const n=A.value.filter(t=>t!=="全部");return n.length?A.value.includes("全部")?"已选全部":n.length<=1?n[0]:`已选(${n.length})`:"选择设备"}),He=e.computed(()=>{const n=P.value.length+I.value.length;return n===0?"选择/搜索虚拟位置":`已选(${n})`}),We=e.computed(()=>{if(!N.value.length)return"请选择模型";const t={geology:"地质模型",dtm:"DTM面",uav:"无人机地图"}[N.value[0]];return N.value.length>1?t+"...":t}),je={region:ue,radar:de,virt:ge,model:ve},J=n=>{var l;if(L.value===n){L.value=null;return}const t=(l=je[n])==null?void 0:l.value;if(t){const o=t.getBoundingClientRect();n==="model"?z.value={top:o.bottom+2+"px",left:"auto",right:window.innerWidth-o.right+"px",minWidth:o.width+"px"}:z.value={top:o.bottom+2+"px",left:o.left+"px",right:"auto",minWidth:o.width+"px"}}L.value=n},be=n=>{const t=n.target;t!=null&&t.closest(".tp-dropdown")||t!=null&&t.closest(".dropdown-wrapper")||t!=null&&t.closest(".model-btn-wrapper")||(L.value=null)},Ye=(n,t)=>{const l=ne.value.filter(o=>o!=="全部");if(n==="全部")b.value=t?[...ne.value]:[];else{let o=b.value.filter(i=>i!=="全部");t?o.includes(n)||o.push(n):o=o.filter(i=>i!==n),l.every(i=>o.includes(i))&&(o=["全部",...l]),b.value=o}U()},we=(n,t)=>{const l=C.value.map(o=>o.name);if(n==="全部")A.value=t?["全部",...l]:[];else{let o=A.value.filter(i=>i!=="全部");if(t){o.includes(n)||o.push(n);const i=C.value.find(r=>r.name===n);i&&!b.value.includes(i.region)&&(b.value=[...b.value,i.region])}else o=o.filter(i=>i!==n);l.every(i=>o.includes(i))&&(o=["全部",...l]),A.value=o}U()},qe=n=>{P.value=n?[...le]:[],U()},Xe=(n,t)=>{let l=[...P.value];t?l.includes(n)||l.push(n):l=l.filter(o=>o!==n),P.value=l,U()},Ge=n=>{I.value=n?[...oe]:[],U()},Ke=(n,t)=>{let l=[...I.value];t?l.includes(n)||l.push(n):l=l.filter(o=>o!==n),I.value=l,U()},Ze=(n,t)=>{t?N.value.includes(n)||N.value.push(n):N.value=N.value.filter(l=>l!==n),Je()},Je=()=>{const n=F.value;if(!n)return;n.querySelectorAll(".model-overlay").forEach(o=>o.remove());const t={geology:m.value.geologyModelUrl,dtm:m.value.dtmModelUrl,uav:m.value.uavModelUrl};let l=!1;if(N.value.forEach(o=>{const i=t[o];if(i){l=!0;const r=document.createElement("img");r.className="model-overlay",r.src=i,r.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;pointer-events:none;z-index:2;opacity:0.6;",n.insertBefore(r,n.firstChild)}}),l)n.style.filter="none";else{let o="";N.value.includes("uav")&&(o+="saturate(1.5) contrast(1.2) "),N.value.includes("dtm")&&(o+="brightness(1.1) "),n.style.filter=o.trim()||"none"}},re=n=>{j.value=n,E.publish({type:"timeRangeChange",days:n,start:K.value,end:Z.value})},ye=()=>{j.value=0,E.publish({type:"timeRangeChange",days:0,start:K.value,end:Z.value})},Qe=()=>{Ce("point")},Se=n=>{const t=b.value.filter(o=>o!=="全部"),l=A.value.filter(o=>o!=="全部");return!(t.length>0&&!t.includes(n.region)||l.length>0&&!l.includes(n.name))},U=()=>{const n=b.value.filter(l=>l!=="全部"),t=A.value.filter(l=>l!=="全部");if(T.value.clear(),C.value.forEach(l=>{if(!l.isOnline)return;let o=!0;n.length>0&&!n.includes(l.region)&&(o=!1),t.length>0&&!t.includes(l.name)&&(o=!1),o&&T.value.add(l.id)}),et(n),n.length===1){const l=C.value.find(o=>o.region===n[0]);l&&Ee(l)}t.length===1?E.publish({type:"regionFilter",regions:[],radars:[t[0]]}):n.length===1?E.publish({type:"regionFilter",regions:[n[0]],radars:[]}):E.publish({type:"regionFilter",regions:[],radars:[]})},et=n=>{const t=W.value;if(!t||(t.querySelectorAll(".region-highlight").forEach(i=>i.remove()),n.length===0||n.includes("全部")))return;const l="http://www.w3.org/2000/svg",o={北帮:{x:600,y:0,w:1800,h:600},南帮:{x:600,y:1900,w:1800,h:600},东帮:{x:2400,y:600,w:600,h:1300},西帮:{x:0,y:600,w:600,h:1300}};n.forEach(i=>{const r=o[i];if(!r)return;const a=document.createElementNS(l,"rect");a.setAttribute("x",String(r.x)),a.setAttribute("y",String(r.y)),a.setAttribute("width",String(r.w)),a.setAttribute("height",String(r.h)),a.setAttribute("fill","rgba(255, 255, 0, 0.15)"),a.setAttribute("stroke","rgba(255, 255, 0, 0.7)"),a.setAttribute("stroke-width","3"),a.setAttribute("class","region-highlight"),t.appendChild(a)})},tt=e.computed(()=>{const n=b.value.filter(a=>a!=="全部"),t=A.value.filter(a=>a!=="全部"),l=P.value.map(a=>a.replace("区域","")),o=I.value.map(a=>a.replace("监测线","")),i=[...new Set([...l,...o])];let r=fe.value;return B.value?r.filter(a=>a.radarId===B.value):r.filter(a=>!(n.length>0&&!n.includes(a.region)||t.length>0&&!t.includes(a.radarName)||i.length>0&&!i.includes(a.surfaceId)))}),nt=e.computed(()=>s.mode==="surface"?"【面模式】左键点击添加节点,右键闭合区域":"【点模式】左键点击选点,左键拖拽画线,右键结束"),lt=n=>n>=8?0:n>=5?1:n>=3?2:n>=2?3:4,ot=n=>({left:n.x-20+"px",top:n.y-20+"px"}),rt=n=>({left:n.x-1200+"px",top:n.y-2e3+"px",transform:`rotate(${n.angle}deg)`}),at=n=>T.value.has(n),it=n=>{const t=!B.value||n.radarId===B.value;return{left:n.x+"px",top:n.y+"px",backgroundColor:Pe[n.alarmIdx],opacity:t?1:.05,transform:t&&B.value?"scale(1.5)":"scale(1)",zIndex:t?100:1}},ke=()=>{const n=ce.value;if(!n)return;n.innerHTML="";const t="http://www.w3.org/2000/svg",l=["#409EFF","#E6A23C","#F56C6C","#67C23A","#909399"],o=[4,2,2,2,2],i=[.3,.5,.5,.5,.3];D.forEach((f,g)=>{const d=document.createElementNS(t,"rect");d.setAttribute("x",String(c-f.w/2)),d.setAttribute("y",String(u-f.h/2)),d.setAttribute("width",String(f.w)),d.setAttribute("height",String(f.h)),d.setAttribute("fill","none"),d.setAttribute("stroke",l[g]),d.setAttribute("stroke-width",String(o[g])),d.setAttribute("opacity",String(i[g])),n.appendChild(d)});const r=D[0],a=D[4];[[c-r.w/2,u-r.h/2,c-a.w/2,u-a.h/2],[c+r.w/2,u-r.h/2,c+a.w/2,u-a.h/2],[c+r.w/2,u+r.h/2,c+a.w/2,u+a.h/2],[c-r.w/2,u+r.h/2,c-a.w/2,u+a.h/2]].forEach(([f,g,d,h])=>{const V=document.createElementNS(t,"line");V.setAttribute("x1",String(f)),V.setAttribute("y1",String(g)),V.setAttribute("x2",String(d)),V.setAttribute("y2",String(h)),V.setAttribute("stroke","#409EFF"),V.setAttribute("stroke-width","1"),V.setAttribute("opacity","0.2"),n.appendChild(V)})},xe=()=>{const n=[],t=[D[0],D[1],D[2],D[3]];C.value.forEach(l=>{for(let o=0;o<3;o++){const i=t[o],r=t[o+1],a=String(o+1),v=3+Math.floor(Math.random()*2);for(let f=1;f<=v;f++){const g=`${l.id}-S${a}-P${f}`,d=Math.random(),h=i.w+(r.w-i.w)*d,V=i.h+(r.h-i.h)*d;let Y,q;if(l.targetSide==="bottom"){const M=h*.8;Y=c-M/2+Math.random()*M;const R=u+i.h/2,_=u+r.h/2;q=R+(_-R)*d+(Math.random()-.5)*15}else if(l.targetSide==="top"){const M=h*.8;Y=c-M/2+Math.random()*M;const R=u-i.h/2,_=u-r.h/2;q=R+(_-R)*d+(Math.random()-.5)*15}else if(l.targetSide==="left"){const M=V*.8;q=u-M/2+Math.random()*M;const R=c-i.w/2,_=c-r.w/2;Y=R+(_-R)*d+(Math.random()-.5)*15}else{const M=V*.8;q=u-M/2+Math.random()*M;const R=c+i.w/2,_=c+r.w/2;Y=R+(_-R)*d+(Math.random()-.5)*15}const ee=Math.random();let O;ee<.05?O=8+Math.random()*4:ee<.15?O=5+Math.random()*3:ee<.35?O=3+Math.random()*2:ee<.6?O=2+Math.random()*1:O=.1+Math.random()*1.9,n.push({id:g,x:Y,y:q,radarId:l.id,radarName:l.name,region:l.region,surfaceId:a,alarmIdx:lt(O),speed:O.toFixed(2),deviceId:`${l.name}-点${f}`,isOnline:l.isOnline})}}}),fe.value=n},H=()=>{const n=F.value;n&&(n.style.width=m.value.canvasWidth+"px",n.style.height=m.value.canvasHeight+"px",n.style.transform=`translate(${w.x}px, ${w.y}px) scale(${S.value})`)},st=n=>{if(n.button===0){if(s.isDrawing){bt(n);return}te=!0,me=n.clientX-w.x,he=n.clientY-w.y,y.value&&(y.value.style.cursor="grabbing")}},ct=n=>{if(s.isDrawing){s.cursorPos=ae(n),Q();return}te&&(w.x=n.clientX-me,w.y=n.clientY-he,H())},ut=n=>{if(s.isDrawing&&s.mode!=="surface"){wt(n);return}te=!1,y.value&&(y.value.style.cursor=s.isDrawing?"crosshair":"grab")},dt=n=>{s.isDrawing&&Ne()},gt=n=>{const t=y.value;if(!t)return;const l=Math.min(Math.max(.2,S.value+n.deltaY*-.0012),3.5),o=t.getBoundingClientRect(),i=n.clientX-o.left,r=n.clientY-o.top,a=l/S.value;w.x=i-(i-w.x)*a,w.y=r-(r-w.y)*a,S.value=l,H()},ae=n=>{const t=F.value.getBoundingClientRect();return{x:(n.clientX-t.left)/S.value,y:(n.clientY-t.top)/S.value}},vt=n=>{B.value=B.value===n.id?null:n.id,T.value.clear(),B.value?(T.value.add(n.id),Ee(n),ht(n)):(C.value.filter(t=>t.isOnline).forEach(t=>T.value.add(t.id)),mt(),ft()),E.publish({type:"regionFilter",regions:B.value?[n.region]:[],radars:B.value?[n.name]:[]})},Ee=n=>{const t=y.value,l=F.value;if(!t||!l)return;let o=n.x,i=n.y;n.targetSide==="bottom"?i+=600:n.targetSide==="top"?i-=600:n.targetSide==="left"?o-=600:n.targetSide==="right"&&(o+=600),S.value=.9,w.x=t.clientWidth/2-o*S.value,w.y=t.clientHeight/2-i*S.value,l.style.transition="transform 0.6s cubic-bezier(0.2, 0, 0.2, 1)",H(),setTimeout(()=>{l&&(l.style.transition="none")},650)},ft=()=>{const n=F.value;S.value=.6,w.x=-300,w.y=-200,n?(n.style.transition="transform 0.6s cubic-bezier(0.2, 0, 0.2, 1)",H(),setTimeout(()=>{n&&(n.style.transition="none")},650)):H()},mt=()=>{W.value&&(W.value.innerHTML="")},ht=n=>{const t=W.value;if(!t)return;t.innerHTML="";const l="http://www.w3.org/2000/svg",o=D.slice(0,4);for(let i=0;i<3;i++){const r=o[i],a=o[i+1];let v="",f=0,g=0;n.targetSide==="bottom"?(v=[`${c-r.w/2},${u+r.h/2}`,`${c+r.w/2},${u+r.h/2}`,`${c+a.w/2},${u+a.h/2}`,`${c-a.w/2},${u+a.h/2}`].join(" "),f=c,g=u+a.h/2+(r.h/2-a.h/2)/2):n.targetSide==="top"?(v=[`${c-r.w/2},${u-r.h/2}`,`${c+r.w/2},${u-r.h/2}`,`${c+a.w/2},${u-a.h/2}`,`${c-a.w/2},${u-a.h/2}`].join(" "),f=c,g=u-a.h/2-(r.h/2-a.h/2)/2):n.targetSide==="left"?(v=[`${c-r.w/2},${u-r.h/2}`,`${c-r.w/2},${u+r.h/2}`,`${c-a.w/2},${u+a.h/2}`,`${c-a.w/2},${u-a.h/2}`].join(" "),f=c-a.w/2-(r.w/2-a.w/2)/2,g=u):(v=[`${c+r.w/2},${u-r.h/2}`,`${c+r.w/2},${u+r.h/2}`,`${c+a.w/2},${u+a.h/2}`,`${c+a.w/2},${u-a.h/2}`].join(" "),f=c+a.w/2+(r.w/2-a.w/2)/2,g=u);const d=document.createElementNS(l,"polygon");d.setAttribute("points",v),d.setAttribute("fill","rgba(64,158,255,0.25)"),d.setAttribute("stroke","rgba(64,158,255,0.8)"),d.setAttribute("stroke-width","2"),t.appendChild(d);const h=document.createElementNS(l,"text");h.setAttribute("x",String(f)),h.setAttribute("y",String(g)),h.setAttribute("text-anchor","middle"),h.setAttribute("dominant-baseline","middle"),h.setAttribute("fill","#fff"),h.setAttribute("font-size","24"),h.setAttribute("font-weight","bold"),h.style.pointerEvents="none",h.textContent=`区域 ${i+1}`,t.appendChild(h)}},Ce=n=>{s.isDrawing=!0,s.mode=n,s.surfacePoints=[],s.mixedShapes=[],s.cursorPos=null,s.dragStart=null,s.isDragging=!1,y.value&&(y.value.style.cursor="crosshair"),Ae()},pt=()=>{s.isDrawing=!1,y.value&&(y.value.style.cursor="grab"),s.dragStart=null},Ae=()=>{X.value&&(X.value.innerHTML="")},bt=n=>{const t=ae(n);s.mode==="surface"?(s.surfacePoints.push(t),Q()):(s.dragStart=t,s.isDragging=!0)},wt=n=>{if(s.mode==="surface"||!s.dragStart)return;const t=ae(n),l=t.x-s.dragStart.x,o=t.y-s.dragStart.y;Math.sqrt(l*l+o*o)<5?s.mixedShapes.push({type:"point",x:s.dragStart.x,y:s.dragStart.y}):s.mixedShapes.push({type:"line",x1:s.dragStart.x,y1:s.dragStart.y,x2:t.x,y2:t.y}),s.isDragging=!1,s.dragStart=null,Q()},Ne=()=>{if(!s.isDrawing)return;const n=s.mode==="surface"&&s.surfacePoints.length>=3,t=s.mode!=="surface"&&s.mixedShapes.length>0;if(!n&&!t){ie();return}s.isDrawing=!1,y.value&&(y.value.style.cursor="grab"),s.cursorPos=null,Q(!0),E.publish({type:"customAreaComplete"})},yt=()=>Ne(),ie=()=>{pt(),Ae(),E.publish({type:"customAreaCancel"})},Q=(n=!1)=>{const t=X.value;if(!t)return;t.innerHTML="";const l="http://www.w3.org/2000/svg";if(s.mode==="surface"){if(s.surfacePoints.length>0){let o=`M ${s.surfacePoints[0].x} ${s.surfacePoints[0].y}`;for(let r=1;r<s.surfacePoints.length;r++)o+=` L ${s.surfacePoints[r].x} ${s.surfacePoints[r].y}`;!n&&s.cursorPos&&(o+=` L ${s.cursorPos.x} ${s.cursorPos.y}`),n&&(o+=" Z");const i=document.createElementNS(l,"path");i.setAttribute("d",o),i.setAttribute("fill","rgba(152,251,152,0.4)"),i.setAttribute("stroke","#333"),i.setAttribute("stroke-width","1.5"),i.setAttribute("stroke-dasharray","5,5"),t.appendChild(i),s.surfacePoints.forEach(r=>se(t,r.x,r.y,"#333"))}!n&&s.cursorPos&&St(t,s.cursorPos.x,s.cursorPos.y)}else s.mixedShapes.forEach(o=>{o.type==="point"?kt(t,o.x,o.y):Ve(t,o.x1,o.y1,o.x2,o.y2,!1)}),s.isDragging&&s.dragStart&&s.cursorPos&&Ve(t,s.dragStart.x,s.dragStart.y,s.cursorPos.x,s.cursorPos.y,!0)},se=(n,t,l,o)=>{const i=document.createElementNS("http://www.w3.org/2000/svg","circle");i.setAttribute("cx",String(t)),i.setAttribute("cy",String(l)),i.setAttribute("r",String(4/S.value)),i.setAttribute("fill","#fff"),i.setAttribute("stroke",o),n.appendChild(i)},St=(n,t,l)=>{const o="http://www.w3.org/2000/svg";[[t,l-5e3,t,l+5e3],[t-5e3,l,t+5e3,l]].forEach(([r,a,v,f])=>{const g=document.createElementNS(o,"line");g.setAttribute("x1",String(r)),g.setAttribute("y1",String(a)),g.setAttribute("x2",String(v)),g.setAttribute("y2",String(f)),g.setAttribute("stroke","#ffffff"),g.setAttribute("stroke-width","2"),g.setAttribute("stroke-dasharray","8,4"),g.style.filter="drop-shadow(0 0 2px rgba(0,0,0,0.8))",n.appendChild(g)})},kt=(n,t,l)=>{const o="http://www.w3.org/2000/svg",i=10/S.value,r=document.createElementNS(o,"circle");r.setAttribute("cx",String(t)),r.setAttribute("cy",String(l)),r.setAttribute("r",String(i)),r.setAttribute("fill","rgba(230,162,60,0.3)"),r.setAttribute("stroke","#E6A23C"),n.appendChild(r);const a=document.createElementNS(o,"circle");a.setAttribute("cx",String(t)),a.setAttribute("cy",String(l)),a.setAttribute("r",String(4/S.value)),a.setAttribute("fill","#E6A23C"),n.appendChild(a)},Ve=(n,t,l,o,i,r)=>{const v=document.createElementNS("http://www.w3.org/2000/svg","line");v.setAttribute("x1",String(t)),v.setAttribute("y1",String(l)),v.setAttribute("x2",String(o)),v.setAttribute("y2",String(i)),v.setAttribute("stroke","#E6A23C"),v.setAttribute("stroke-width","3"),r&&v.setAttribute("stroke-dasharray","5,5"),n.appendChild(v),se(n,t,l,"#E6A23C"),se(n,o,i,"#E6A23C")},xt=n=>{E.publish({type:"openAnalysis",deviceId:n.id,region:n.region})},Et=n=>{const{payload:t}=n;if(t.type==="customArea"){t.action==="start"?Ce(t.mode||"surface"):t.action==="stop"&&ie();return}},Me=n=>ct(n),Re=n=>ut(n);return e.onMounted(()=>{window.addEventListener("mousemove",Me),window.addEventListener("mouseup",Re),window.addEventListener("click",be),G.value=C.value;const n=C.value.filter(l=>l.isOnline);A.value=n.map(l=>l.name);const t=new Set(n.map(l=>l.region));b.value=Array.from(t),n.forEach(l=>T.value.add(l.id)),e.nextTick(()=>{ke(),xe(),H()})}),e.onUnmounted(()=>{window.removeEventListener("mousemove",Me),window.removeEventListener("mouseup",Re),window.removeEventListener("click",be)}),e.watch(()=>p.conf,()=>{E.init(),G.value=C.value,e.nextTick(()=>{ke(),xe()})},{deep:!0}),(n,t)=>(e.openBlock(),e.createElementBlock("div",{class:"radar-map-wrapper",style:e.normalizeStyle({background:e.unref(m).bgColor})},[e.createElementVNode("div",$t,[e.createElementVNode("div",Dt,[e.createElementVNode("div",Lt,[e.createElementVNode("button",{ref_key:"regionBtnRef",ref:ue,class:"tb-btn",onClick:t[0]||(t[0]=e.withModifiers(l=>J("region"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(Fe.value),1),t[17]||(t[17]=e.createTextVNode(" ▼ ",-1))],512)]),e.createElementVNode("div",Tt,[e.createElementVNode("button",{ref_key:"radarBtnRef",ref:de,class:"tb-btn",onClick:t[1]||(t[1]=e.withModifiers(l=>J("radar"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(Ue.value),1),t[18]||(t[18]=e.createTextVNode(" ▼ ",-1))],512)]),e.createElementVNode("div",Pt,[e.createElementVNode("button",{ref_key:"virtBtnRef",ref:ge,class:"tb-btn",onClick:t[2]||(t[2]=e.withModifiers(l=>J("virt"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(He.value),1),t[19]||(t[19]=e.createTextVNode(" ▼ ",-1))],512)]),t[20]||(t[20]=e.createElementVNode("div",{class:"divider-v"},null,-1)),e.createElementVNode("button",{class:e.normalizeClass(["tb-btn",{active:j.value===1}]),onClick:t[3]||(t[3]=l=>re(1))},"一天内",2),e.createElementVNode("button",{class:e.normalizeClass(["tb-btn",{active:j.value===7}]),onClick:t[4]||(t[4]=l=>re(7))},"一周内",2),e.createElementVNode("button",{class:e.normalizeClass(["tb-btn",{active:j.value===30}]),onClick:t[5]||(t[5]=l=>re(30))},"一个月内",2),t[21]||(t[21]=e.createElementVNode("span",{class:"time-label"},"时间:",-1)),e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":t[6]||(t[6]=l=>K.value=l),class:"tb-btn time-input",onChange:ye},null,544),[[e.vModelText,K.value]]),t[22]||(t[22]=e.createElementVNode("span",{class:"time-label"},"至",-1)),e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":t[7]||(t[7]=l=>Z.value=l),class:"tb-btn time-input",onChange:ye},null,544),[[e.vModelText,Z.value]])]),e.createElementVNode("div",{class:"toolbar-right"},[e.createElementVNode("button",{class:"btn-profile",onClick:Qe},"剖面图绘制")])]),e.createElementVNode("div",It,[e.createElementVNode("button",{ref_key:"modelBtnRef",ref:ve,class:"tb-btn model-btn",onClick:t[8]||(t[8]=e.withModifiers(l=>J("model"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(We.value),1),t[23]||(t[23]=e.createTextVNode(" ▼ ",-1))],512)]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[L.value==="region"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[9]||(t[9]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne.value,l=>(e.openBlock(),e.createElementBlock("label",{key:l,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",value:l,checked:b.value.includes(l),onChange:o=>Ye(l,o.target.checked)},null,40,Ot),e.createElementVNode("span",{style:e.normalizeStyle(l==="全部"?"font-weight:bold;color:#1c3d90":"")},e.toDisplayString(l),5)]))),128))],4)):e.createCommentVNode("",!0),L.value==="radar"?(e.openBlock(),e.createElementBlock("div",{key:1,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[11]||(t[11]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("label",_t,[e.createElementVNode("input",{type:"checkbox",value:"全部",checked:ze.value,onChange:t[10]||(t[10]=l=>we("全部",l.target.checked))},null,40,Ft),t[24]||(t[24]=e.createElementVNode("span",null,"全部雷达",-1))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(pe.value,l=>(e.openBlock(),e.createElementBlock("label",{key:l.id,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",value:l.name,checked:A.value.includes(l.name),onChange:o=>we(l.name,o.target.checked)},null,40,zt),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(l.name)+" ",1),e.createElementVNode("span",{style:e.normalizeStyle({color:l.isOnline?"#71C446":"#999",fontSize:"12px"})},"●",4)])]))),128))],4)):e.createCommentVNode("",!0),L.value==="virt"?(e.openBlock(),e.createElementBlock("div",{key:2,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[15]||(t[15]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",Ut,[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":t[12]||(t[12]=l=>$.value=l),placeholder:"搜索区域或监测线...",style:{width:"100%",padding:"4px 8px",border:"1px solid #ddd","border-radius":"4px","font-size":"12px"}},null,512),[[e.vModelText,$.value]])]),e.createElementVNode("div",Ht,[t[27]||(t[27]=e.createElementVNode("div",{class:"dropdown-group-title"},"虚拟区域",-1)),e.withDirectives(e.createElementVNode("label",Wt,[e.createElementVNode("input",{type:"checkbox",checked:le.every(l=>P.value.includes(l)),onChange:t[13]||(t[13]=l=>qe(l.target.checked))},null,40,jt),t[25]||(t[25]=e.createElementVNode("span",{style:{"font-weight":"bold"}},"全部",-1))],512),[[e.vShow,!$.value||"全部".includes($.value)]]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(le,l=>e.withDirectives(e.createElementVNode("label",{key:l,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",checked:P.value.includes(l),onChange:o=>Xe(l,o.target.checked)},null,40,Yt),e.createElementVNode("span",null,e.toDisplayString(l),1)]),[[e.vShow,!$.value||l.includes($.value)]])),64)),t[28]||(t[28]=e.createElementVNode("div",{class:"dropdown-group-title",style:{"margin-top":"5px"}},"监测线",-1)),e.withDirectives(e.createElementVNode("label",qt,[e.createElementVNode("input",{type:"checkbox",checked:oe.every(l=>I.value.includes(l)),onChange:t[14]||(t[14]=l=>Ge(l.target.checked))},null,40,Xt),t[26]||(t[26]=e.createElementVNode("span",{style:{"font-weight":"bold"}},"全部",-1))],512),[[e.vShow,!$.value||"全部".includes($.value)]]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(oe,l=>e.withDirectives(e.createElementVNode("label",{key:l,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",checked:I.value.includes(l),onChange:o=>Ke(l,o.target.checked)},null,40,Gt),e.createElementVNode("span",null,e.toDisplayString(l),1)]),[[e.vShow,!$.value||l.includes($.value)]])),64))])],4)):e.createCommentVNode("",!0),L.value==="model"?(e.openBlock(),e.createElementBlock("div",{key:3,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[16]||(t[16]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(_e,l=>e.createElementVNode("label",{key:l.id,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",checked:N.value.includes(l.id),onChange:o=>Ze(l.id,o.target.checked)},null,40,Kt),e.createElementVNode("span",null,e.toDisplayString(l.label),1)])),64))],4)):e.createCommentVNode("",!0)])),e.createElementVNode("div",{ref_key:"viewerRef",ref:y,class:"map-viewer",onMousedown:st,onContextmenu:e.withModifiers(dt,["prevent"]),onWheel:e.withModifiers(gt,["prevent"])},[e.createElementVNode("div",{ref_key:"canvasRef",ref:F,class:"map-canvas"},[(e.openBlock(),e.createElementBlock("svg",{ref_key:"baseSvgRef",ref:ce,class:"base-svg",width:e.unref(m).canvasWidth,height:e.unref(m).canvasHeight,viewBox:`0 0 ${e.unref(m).canvasWidth} ${e.unref(m).canvasHeight}`},null,8,Zt)),(e.openBlock(),e.createElementBlock("svg",{ref_key:"highlightSvgRef",ref:W,class:"highlight-svg",width:e.unref(m).canvasWidth,height:e.unref(m).canvasHeight,viewBox:`0 0 ${e.unref(m).canvasWidth} ${e.unref(m).canvasHeight}`},null,8,Jt)),(e.openBlock(),e.createElementBlock("svg",{ref_key:"customSvgRef",ref:X,class:"custom-svg",width:e.unref(m).canvasWidth,height:e.unref(m).canvasHeight,viewBox:`0 0 ${e.unref(m).canvasWidth} ${e.unref(m).canvasHeight}`},null,8,Qt)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,l=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:l.id,class:e.normalizeClass(["radar-station",{offline:!l.isOnline}]),style:e.normalizeStyle(ot(l)),title:`${l.name}(${l.isOnline?"在线":"离线"})`,onClick:e.withModifiers(o=>vt(l),["stop"])},"📡",14,en)),[[e.vShow,Se(l)]])),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,l=>(e.openBlock(),e.createElementBlock("div",{key:"cloud-"+l.id,class:e.normalizeClass(["radar-cloud",{visible:at(l.id)&&Se(l),"no-anim":k.mode==="edit"}]),style:e.normalizeStyle(rt(l))},null,6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(tt.value,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"virtual-point",style:e.normalizeStyle(it(l)),title:`${l.deviceId} | ${l.speed} mm/h`,onClick:e.withModifiers(o=>xt(l),["stop"])},null,12,tn))),128))],512)],544),s.isDrawing?(e.openBlock(),e.createElementBlock("div",nn,[e.createElementVNode("span",ln,e.toDisplayString(nt.value),1),e.createElementVNode("button",{class:"toolbar-btn confirm",onClick:yt},"确定生成"),e.createElementVNode("button",{class:"toolbar-btn",onClick:ie},"取消")])):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default",{},void 0,!0)],4))}})),vn=Bt._export_sfc(gn,[["__scopeId","data-v-cc924deb"]]);exports.default=vn;
|
|
1
|
+
"use strict";var Ct=Object.defineProperty,At=Object.defineProperties;var Nt=Object.getOwnPropertyDescriptors;var Be=Object.getOwnPropertySymbols;var Vt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable;var $e=(k,p,x)=>p in k?Ct(k,p,{enumerable:!0,configurable:!0,writable:!0,value:x}):k[p]=x,De=(k,p)=>{for(var x in p||(p={}))Vt.call(p,x)&&$e(k,x,p[x]);if(Be)for(var x of Be(p))Mt.call(p,x)&&$e(k,x,p[x]);return k},Le=(k,p)=>At(k,Nt(p));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const Rt=require("./BaseComponent-oKNx9Ues.cjs"),Bt=require("./index-ucOU7Nfo.cjs"),Te=require("./ele-lin-icon-Dke_1AmT.cjs"),$t={class:"map-toolbar"},Dt={class:"toolbar-left"},Lt={class:"dropdown-wrapper"},Tt={class:"dropdown-wrapper"},Pt={class:"dropdown-wrapper"},It={class:"model-btn-wrapper"},Ot=["value","checked","onChange"],_t={class:"dropdown-item",style:{"border-bottom":"1px solid #eee","font-weight":"bold"}},Ft=["checked"],zt=["value","checked","onChange"],Ut={style:{padding:"8px","border-bottom":"1px solid #eee",background:"#f8fbff"}},Ht={style:{"max-height":"300px","overflow-y":"auto"}},Wt={class:"dropdown-item",style:{background:"#fafafa"}},jt=["checked"],Yt=["checked","onChange"],qt={class:"dropdown-item",style:{background:"#fafafa"}},Xt=["checked"],Gt=["checked","onChange"],Kt=["checked","onChange"],Zt=["width","height","viewBox"],Jt=["width","height","viewBox"],Qt=["width","height","viewBox"],en=["title","onClick"],tn=["title","onClick"],nn={key:0,class:"draw-toolbar"},ln={class:"draw-tip"},on={DEFAULT_ICON:Te.DEFAULT_ICON,ACTIVE_ICON:Te.ACTIVE_ICON,NAME_CN:"雷达地图查看器",NAME_EN:"Radar Map Viewer",ORDER:2,PLATFORM:["pc","screen"]},rn={bgColor:{value:"#0b1a31",type:"color",label:"背景色"},canvasWidth:{value:3e3,type:"number",label:"画布宽度"},canvasHeight:{value:2500,type:"number",label:"画布高度"},geologyModelUrl:{value:"",type:"string",label:"地质模型图片URL"},dtmModelUrl:{value:"",type:"string",label:"DTM面图片URL"},uavModelUrl:{value:"",type:"string",label:"无人机地图URL"},linkChannel:{value:"radarMonitor",type:"select",label:"联动频道",options:[{label:"雷达监测",value:"radarMonitor"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},an=[{name:"雷达1(北)",fv:"",object_id:"",color:"#409EFF",lng:"106.7120",lat:"26.5790",elevation:"1520",region:"南帮",x:1500,y:200,angle:180,targetSide:"bottom"},{name:"雷达2(东)",fv:"",object_id:"",color:"#E6A23C",lng:"106.7180",lat:"26.5810",elevation:"1480",region:"西帮",x:2650,y:1250,angle:270,targetSide:"left"},{name:"雷达3(南)",fv:"",object_id:"",color:"#67C23A",lng:"106.7120",lat:"26.5840",elevation:"1500",region:"北帮",x:1500,y:2300,angle:0,targetSide:"top"},{name:"雷达4(西)",fv:"",object_id:"",color:"#909399",lng:"106.7060",lat:"26.5810",elevation:"1460",region:"东帮",x:350,y:1250,angle:90,targetSide:"right"}],sn=["name","fv","object_id","color","lng","lat","elevation","region","x","y","angle","targetSide"],cn=["mosaic"],un={source:"mosaic"},dn={DEFAULT:on,OPTIONS:rn,DATA:an,PARAMS:sn,SOURCE:cn,COMMON:un},gn=e.defineComponent(Le(De({},dn),{__name:"radarMapViewer",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(k){const p=k;class x extends Rt.BaseComponent{extractStyles(){var i,r,a,v,f,g,d,h;const{options:t}=this.props.conf,l=((i=t==null?void 0:t.linkChannel)==null?void 0:i.value)||"radarMonitor",o=((r=t==null?void 0:t.customChannel)==null?void 0:r.value)||"";return{bgColor:((a=t==null?void 0:t.bgColor)==null?void 0:a.value)||"#0b1a31",canvasWidth:((v=t==null?void 0:t.canvasWidth)==null?void 0:v.value)||3e3,canvasHeight:((f=t==null?void 0:t.canvasHeight)==null?void 0:f.value)||2500,geologyModelUrl:((g=t==null?void 0:t.geologyModelUrl)==null?void 0:g.value)||"",dtmModelUrl:((d=t==null?void 0:t.dtmModelUrl)==null?void 0:d.value)||"",uavModelUrl:((h=t==null?void 0:t.uavModelUrl)==null?void 0:h.value)||"",linkChannel:l==="custom"&&o?o:l}}onLinkEvent(t){Et(t)}}const E=new x(p,"radarMapViewer");E.setupLifecycle();const m=E.getStyle(),c=1500,u=1250,Pe=["#F57676","#FFA500","#E6A23C","#66B1FF","#71C446"],D=[{w:2200,h:1600},{w:1900,h:1400},{w:1600,h:1200},{w:1300,h:1e3},{w:1e3,h:800}],Ie=[{id:"R1",name:"雷达1(北)",region:"南帮",x:c,y:u-1050,angle:180,targetSide:"bottom",isOnline:!0},{id:"R2",name:"雷达2(东)",region:"西帮",x:c+1150,y:u,angle:270,targetSide:"left",isOnline:!0},{id:"R3",name:"雷达3(南)",region:"北帮",x:c,y:u+1050,angle:0,targetSide:"top",isOnline:!0},{id:"R4",name:"雷达4(西)",region:"东帮",x:c-1150,y:u,angle:90,targetSide:"right",isOnline:!1}],Oe=()=>{var t;const n=(t=p.conf)==null?void 0:t.data;return!Array.isArray(n)||n.length===0?Ie:n.map((l,o)=>({id:l.object_id||`R${o+1}`,name:l.name||`雷达${o+1}`,region:l.region||"",x:Number(l.x)||c,y:Number(l.y)||u,angle:Number(l.angle)||0,targetSide:l.targetSide||"bottom",isOnline:l.value!==void 0?!!l.value:!0}))},C=e.computed(()=>Oe()),y=e.ref(null),F=e.ref(null),ce=e.ref(null),W=e.ref(null),X=e.ref(null),ue=e.ref(null),de=e.ref(null),ge=e.ref(null),ve=e.ref(null),z=e.ref({top:"0px",left:"0px",minWidth:"0px"}),S=e.ref(.6),w=e.reactive({x:-300,y:-200}),G=e.ref([]),fe=e.ref([]),T=e.ref(new Set),B=e.ref(null),s=e.reactive({isDrawing:!1,mode:"surface",surfacePoints:[],mixedShapes:[],cursorPos:null,dragStart:null,isDragging:!1});let te=!1,me=0,he=0;const ne=e.computed(()=>["全部",...[...new Set(C.value.map(t=>t.region).filter(Boolean))]]),le=["区域1","区域2","区域3"],oe=["监测线1","监测线2","监测线3"],_e=[{id:"geology",label:"地质模型"},{id:"dtm",label:"DTM面"},{id:"uav",label:"无人机地图"}],L=e.ref(null),b=e.ref([]),A=e.ref([]),P=e.ref([]),I=e.ref([]),N=e.ref(["geology"]),$=e.ref(""),j=e.ref(1),K=e.ref("2025-10-10T13:22"),Z=e.ref("2026-01-18T00:00"),Fe=e.computed(()=>{const n=b.value.filter(t=>t!=="全部");return n.length?b.value.includes("全部")?"已选全部":n.length<=1?n[0]:`已选(${n.length})`:"选择区域"}),pe=e.computed(()=>{const n=b.value.filter(t=>t!=="全部");return!n.length||b.value.includes("全部")?C.value:C.value.filter(t=>n.includes(t.region))}),ze=e.computed(()=>{const n=pe.value.map(t=>t.name);return n.length>0&&n.every(t=>A.value.includes(t))}),Ue=e.computed(()=>{const n=A.value.filter(t=>t!=="全部");return n.length?A.value.includes("全部")?"已选全部":n.length<=1?n[0]:`已选(${n.length})`:"选择设备"}),He=e.computed(()=>{const n=P.value.length+I.value.length;return n===0?"选择/搜索虚拟位置":`已选(${n})`}),We=e.computed(()=>{if(!N.value.length)return"请选择模型";const t={geology:"地质模型",dtm:"DTM面",uav:"无人机地图"}[N.value[0]];return N.value.length>1?t+"...":t}),je={region:ue,radar:de,virt:ge,model:ve},J=n=>{var l;if(L.value===n){L.value=null;return}const t=(l=je[n])==null?void 0:l.value;if(t){const o=t.getBoundingClientRect();n==="model"?z.value={top:o.bottom+2+"px",left:"auto",right:window.innerWidth-o.right+"px",minWidth:o.width+"px"}:z.value={top:o.bottom+2+"px",left:o.left+"px",right:"auto",minWidth:o.width+"px"}}L.value=n},be=n=>{const t=n.target;t!=null&&t.closest(".tp-dropdown")||t!=null&&t.closest(".dropdown-wrapper")||t!=null&&t.closest(".model-btn-wrapper")||(L.value=null)},Ye=(n,t)=>{const l=ne.value.filter(o=>o!=="全部");if(n==="全部")b.value=t?[...ne.value]:[];else{let o=b.value.filter(i=>i!=="全部");t?o.includes(n)||o.push(n):o=o.filter(i=>i!==n),l.every(i=>o.includes(i))&&(o=["全部",...l]),b.value=o}U()},we=(n,t)=>{const l=C.value.map(o=>o.name);if(n==="全部")A.value=t?["全部",...l]:[];else{let o=A.value.filter(i=>i!=="全部");if(t){o.includes(n)||o.push(n);const i=C.value.find(r=>r.name===n);i&&!b.value.includes(i.region)&&(b.value=[...b.value,i.region])}else o=o.filter(i=>i!==n);l.every(i=>o.includes(i))&&(o=["全部",...l]),A.value=o}U()},qe=n=>{P.value=n?[...le]:[],U()},Xe=(n,t)=>{let l=[...P.value];t?l.includes(n)||l.push(n):l=l.filter(o=>o!==n),P.value=l,U()},Ge=n=>{I.value=n?[...oe]:[],U()},Ke=(n,t)=>{let l=[...I.value];t?l.includes(n)||l.push(n):l=l.filter(o=>o!==n),I.value=l,U()},Ze=(n,t)=>{t?N.value.includes(n)||N.value.push(n):N.value=N.value.filter(l=>l!==n),Je()},Je=()=>{const n=F.value;if(!n)return;n.querySelectorAll(".model-overlay").forEach(o=>o.remove());const t={geology:m.value.geologyModelUrl,dtm:m.value.dtmModelUrl,uav:m.value.uavModelUrl};let l=!1;if(N.value.forEach(o=>{const i=t[o];if(i){l=!0;const r=document.createElement("img");r.className="model-overlay",r.src=i,r.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;pointer-events:none;z-index:2;opacity:0.6;",n.insertBefore(r,n.firstChild)}}),l)n.style.filter="none";else{let o="";N.value.includes("uav")&&(o+="saturate(1.5) contrast(1.2) "),N.value.includes("dtm")&&(o+="brightness(1.1) "),n.style.filter=o.trim()||"none"}},re=n=>{j.value=n,E.publish({type:"timeRangeChange",days:n,start:K.value,end:Z.value})},ye=()=>{j.value=0,E.publish({type:"timeRangeChange",days:0,start:K.value,end:Z.value})},Qe=()=>{Ce("point")},Se=n=>{const t=b.value.filter(o=>o!=="全部"),l=A.value.filter(o=>o!=="全部");return!(t.length>0&&!t.includes(n.region)||l.length>0&&!l.includes(n.name))},U=()=>{const n=b.value.filter(l=>l!=="全部"),t=A.value.filter(l=>l!=="全部");if(T.value.clear(),C.value.forEach(l=>{if(!l.isOnline)return;let o=!0;n.length>0&&!n.includes(l.region)&&(o=!1),t.length>0&&!t.includes(l.name)&&(o=!1),o&&T.value.add(l.id)}),et(n),n.length===1){const l=C.value.find(o=>o.region===n[0]);l&&Ee(l)}t.length===1?E.publish({type:"regionFilter",regions:[],radars:[t[0]]}):n.length===1?E.publish({type:"regionFilter",regions:[n[0]],radars:[]}):E.publish({type:"regionFilter",regions:[],radars:[]})},et=n=>{const t=W.value;if(!t||(t.querySelectorAll(".region-highlight").forEach(i=>i.remove()),n.length===0||n.includes("全部")))return;const l="http://www.w3.org/2000/svg",o={北帮:{x:600,y:0,w:1800,h:600},南帮:{x:600,y:1900,w:1800,h:600},东帮:{x:2400,y:600,w:600,h:1300},西帮:{x:0,y:600,w:600,h:1300}};n.forEach(i=>{const r=o[i];if(!r)return;const a=document.createElementNS(l,"rect");a.setAttribute("x",String(r.x)),a.setAttribute("y",String(r.y)),a.setAttribute("width",String(r.w)),a.setAttribute("height",String(r.h)),a.setAttribute("fill","rgba(255, 255, 0, 0.15)"),a.setAttribute("stroke","rgba(255, 255, 0, 0.7)"),a.setAttribute("stroke-width","3"),a.setAttribute("class","region-highlight"),t.appendChild(a)})},tt=e.computed(()=>{const n=b.value.filter(a=>a!=="全部"),t=A.value.filter(a=>a!=="全部"),l=P.value.map(a=>a.replace("区域","")),o=I.value.map(a=>a.replace("监测线","")),i=[...new Set([...l,...o])];let r=fe.value;return B.value?r.filter(a=>a.radarId===B.value):r.filter(a=>!(n.length>0&&!n.includes(a.region)||t.length>0&&!t.includes(a.radarName)||i.length>0&&!i.includes(a.surfaceId)))}),nt=e.computed(()=>s.mode==="surface"?"【面模式】左键点击添加节点,右键闭合区域":"【点模式】左键点击选点,左键拖拽画线,右键结束"),lt=n=>n>=8?0:n>=5?1:n>=3?2:n>=2?3:4,ot=n=>({left:n.x-20+"px",top:n.y-20+"px"}),rt=n=>({left:n.x-1200+"px",top:n.y-2e3+"px",transform:`rotate(${n.angle}deg)`}),at=n=>T.value.has(n),it=n=>{const t=!B.value||n.radarId===B.value;return{left:n.x+"px",top:n.y+"px",backgroundColor:Pe[n.alarmIdx],opacity:t?1:.05,transform:t&&B.value?"scale(1.5)":"scale(1)",zIndex:t?100:1}},ke=()=>{const n=ce.value;if(!n)return;n.innerHTML="";const t="http://www.w3.org/2000/svg",l=["#409EFF","#E6A23C","#F56C6C","#67C23A","#909399"],o=[4,2,2,2,2],i=[.3,.5,.5,.5,.3];D.forEach((f,g)=>{const d=document.createElementNS(t,"rect");d.setAttribute("x",String(c-f.w/2)),d.setAttribute("y",String(u-f.h/2)),d.setAttribute("width",String(f.w)),d.setAttribute("height",String(f.h)),d.setAttribute("fill","none"),d.setAttribute("stroke",l[g]),d.setAttribute("stroke-width",String(o[g])),d.setAttribute("opacity",String(i[g])),n.appendChild(d)});const r=D[0],a=D[4];[[c-r.w/2,u-r.h/2,c-a.w/2,u-a.h/2],[c+r.w/2,u-r.h/2,c+a.w/2,u-a.h/2],[c+r.w/2,u+r.h/2,c+a.w/2,u+a.h/2],[c-r.w/2,u+r.h/2,c-a.w/2,u+a.h/2]].forEach(([f,g,d,h])=>{const V=document.createElementNS(t,"line");V.setAttribute("x1",String(f)),V.setAttribute("y1",String(g)),V.setAttribute("x2",String(d)),V.setAttribute("y2",String(h)),V.setAttribute("stroke","#409EFF"),V.setAttribute("stroke-width","1"),V.setAttribute("opacity","0.2"),n.appendChild(V)})},xe=()=>{const n=[],t=[D[0],D[1],D[2],D[3]];C.value.forEach(l=>{for(let o=0;o<3;o++){const i=t[o],r=t[o+1],a=String(o+1),v=3+Math.floor(Math.random()*2);for(let f=1;f<=v;f++){const g=`${l.id}-S${a}-P${f}`,d=Math.random(),h=i.w+(r.w-i.w)*d,V=i.h+(r.h-i.h)*d;let Y,q;if(l.targetSide==="bottom"){const M=h*.8;Y=c-M/2+Math.random()*M;const R=u+i.h/2,_=u+r.h/2;q=R+(_-R)*d+(Math.random()-.5)*15}else if(l.targetSide==="top"){const M=h*.8;Y=c-M/2+Math.random()*M;const R=u-i.h/2,_=u-r.h/2;q=R+(_-R)*d+(Math.random()-.5)*15}else if(l.targetSide==="left"){const M=V*.8;q=u-M/2+Math.random()*M;const R=c-i.w/2,_=c-r.w/2;Y=R+(_-R)*d+(Math.random()-.5)*15}else{const M=V*.8;q=u-M/2+Math.random()*M;const R=c+i.w/2,_=c+r.w/2;Y=R+(_-R)*d+(Math.random()-.5)*15}const ee=Math.random();let O;ee<.05?O=8+Math.random()*4:ee<.15?O=5+Math.random()*3:ee<.35?O=3+Math.random()*2:ee<.6?O=2+Math.random()*1:O=.1+Math.random()*1.9,n.push({id:g,x:Y,y:q,radarId:l.id,radarName:l.name,region:l.region,surfaceId:a,alarmIdx:lt(O),speed:O.toFixed(2),deviceId:`${l.name}-点${f}`,isOnline:l.isOnline})}}}),fe.value=n},H=()=>{const n=F.value;n&&(n.style.width=m.value.canvasWidth+"px",n.style.height=m.value.canvasHeight+"px",n.style.transform=`translate(${w.x}px, ${w.y}px) scale(${S.value})`)},st=n=>{if(n.button===0){if(s.isDrawing){bt(n);return}te=!0,me=n.clientX-w.x,he=n.clientY-w.y,y.value&&(y.value.style.cursor="grabbing")}},ct=n=>{if(s.isDrawing){s.cursorPos=ae(n),Q();return}te&&(w.x=n.clientX-me,w.y=n.clientY-he,H())},ut=n=>{if(s.isDrawing&&s.mode!=="surface"){wt(n);return}te=!1,y.value&&(y.value.style.cursor=s.isDrawing?"crosshair":"grab")},dt=n=>{s.isDrawing&&Ne()},gt=n=>{const t=y.value;if(!t)return;const l=Math.min(Math.max(.2,S.value+n.deltaY*-.0012),3.5),o=t.getBoundingClientRect(),i=n.clientX-o.left,r=n.clientY-o.top,a=l/S.value;w.x=i-(i-w.x)*a,w.y=r-(r-w.y)*a,S.value=l,H()},ae=n=>{const t=F.value.getBoundingClientRect();return{x:(n.clientX-t.left)/S.value,y:(n.clientY-t.top)/S.value}},vt=n=>{B.value=B.value===n.id?null:n.id,T.value.clear(),B.value?(T.value.add(n.id),Ee(n),ht(n)):(C.value.filter(t=>t.isOnline).forEach(t=>T.value.add(t.id)),mt(),ft()),E.publish({type:"regionFilter",regions:B.value?[n.region]:[],radars:B.value?[n.name]:[]})},Ee=n=>{const t=y.value,l=F.value;if(!t||!l)return;let o=n.x,i=n.y;n.targetSide==="bottom"?i+=600:n.targetSide==="top"?i-=600:n.targetSide==="left"?o-=600:n.targetSide==="right"&&(o+=600),S.value=.9,w.x=t.clientWidth/2-o*S.value,w.y=t.clientHeight/2-i*S.value,l.style.transition="transform 0.6s cubic-bezier(0.2, 0, 0.2, 1)",H(),setTimeout(()=>{l&&(l.style.transition="none")},650)},ft=()=>{const n=F.value;S.value=.6,w.x=-300,w.y=-200,n?(n.style.transition="transform 0.6s cubic-bezier(0.2, 0, 0.2, 1)",H(),setTimeout(()=>{n&&(n.style.transition="none")},650)):H()},mt=()=>{W.value&&(W.value.innerHTML="")},ht=n=>{const t=W.value;if(!t)return;t.innerHTML="";const l="http://www.w3.org/2000/svg",o=D.slice(0,4);for(let i=0;i<3;i++){const r=o[i],a=o[i+1];let v="",f=0,g=0;n.targetSide==="bottom"?(v=[`${c-r.w/2},${u+r.h/2}`,`${c+r.w/2},${u+r.h/2}`,`${c+a.w/2},${u+a.h/2}`,`${c-a.w/2},${u+a.h/2}`].join(" "),f=c,g=u+a.h/2+(r.h/2-a.h/2)/2):n.targetSide==="top"?(v=[`${c-r.w/2},${u-r.h/2}`,`${c+r.w/2},${u-r.h/2}`,`${c+a.w/2},${u-a.h/2}`,`${c-a.w/2},${u-a.h/2}`].join(" "),f=c,g=u-a.h/2-(r.h/2-a.h/2)/2):n.targetSide==="left"?(v=[`${c-r.w/2},${u-r.h/2}`,`${c-r.w/2},${u+r.h/2}`,`${c-a.w/2},${u+a.h/2}`,`${c-a.w/2},${u-a.h/2}`].join(" "),f=c-a.w/2-(r.w/2-a.w/2)/2,g=u):(v=[`${c+r.w/2},${u-r.h/2}`,`${c+r.w/2},${u+r.h/2}`,`${c+a.w/2},${u+a.h/2}`,`${c+a.w/2},${u-a.h/2}`].join(" "),f=c+a.w/2+(r.w/2-a.w/2)/2,g=u);const d=document.createElementNS(l,"polygon");d.setAttribute("points",v),d.setAttribute("fill","rgba(64,158,255,0.25)"),d.setAttribute("stroke","rgba(64,158,255,0.8)"),d.setAttribute("stroke-width","2"),t.appendChild(d);const h=document.createElementNS(l,"text");h.setAttribute("x",String(f)),h.setAttribute("y",String(g)),h.setAttribute("text-anchor","middle"),h.setAttribute("dominant-baseline","middle"),h.setAttribute("fill","#fff"),h.setAttribute("font-size","24"),h.setAttribute("font-weight","bold"),h.style.pointerEvents="none",h.textContent=`区域 ${i+1}`,t.appendChild(h)}},Ce=n=>{s.isDrawing=!0,s.mode=n,s.surfacePoints=[],s.mixedShapes=[],s.cursorPos=null,s.dragStart=null,s.isDragging=!1,y.value&&(y.value.style.cursor="crosshair"),Ae()},pt=()=>{s.isDrawing=!1,y.value&&(y.value.style.cursor="grab"),s.dragStart=null},Ae=()=>{X.value&&(X.value.innerHTML="")},bt=n=>{const t=ae(n);s.mode==="surface"?(s.surfacePoints.push(t),Q()):(s.dragStart=t,s.isDragging=!0)},wt=n=>{if(s.mode==="surface"||!s.dragStart)return;const t=ae(n),l=t.x-s.dragStart.x,o=t.y-s.dragStart.y;Math.sqrt(l*l+o*o)<5?s.mixedShapes.push({type:"point",x:s.dragStart.x,y:s.dragStart.y}):s.mixedShapes.push({type:"line",x1:s.dragStart.x,y1:s.dragStart.y,x2:t.x,y2:t.y}),s.isDragging=!1,s.dragStart=null,Q()},Ne=()=>{if(!s.isDrawing)return;const n=s.mode==="surface"&&s.surfacePoints.length>=3,t=s.mode!=="surface"&&s.mixedShapes.length>0;if(!n&&!t){ie();return}s.isDrawing=!1,y.value&&(y.value.style.cursor="grab"),s.cursorPos=null,Q(!0),E.publish({type:"customAreaComplete"})},yt=()=>Ne(),ie=()=>{pt(),Ae(),E.publish({type:"customAreaCancel"})},Q=(n=!1)=>{const t=X.value;if(!t)return;t.innerHTML="";const l="http://www.w3.org/2000/svg";if(s.mode==="surface"){if(s.surfacePoints.length>0){let o=`M ${s.surfacePoints[0].x} ${s.surfacePoints[0].y}`;for(let r=1;r<s.surfacePoints.length;r++)o+=` L ${s.surfacePoints[r].x} ${s.surfacePoints[r].y}`;!n&&s.cursorPos&&(o+=` L ${s.cursorPos.x} ${s.cursorPos.y}`),n&&(o+=" Z");const i=document.createElementNS(l,"path");i.setAttribute("d",o),i.setAttribute("fill","rgba(152,251,152,0.4)"),i.setAttribute("stroke","#333"),i.setAttribute("stroke-width","1.5"),i.setAttribute("stroke-dasharray","5,5"),t.appendChild(i),s.surfacePoints.forEach(r=>se(t,r.x,r.y,"#333"))}!n&&s.cursorPos&&St(t,s.cursorPos.x,s.cursorPos.y)}else s.mixedShapes.forEach(o=>{o.type==="point"?kt(t,o.x,o.y):Ve(t,o.x1,o.y1,o.x2,o.y2,!1)}),s.isDragging&&s.dragStart&&s.cursorPos&&Ve(t,s.dragStart.x,s.dragStart.y,s.cursorPos.x,s.cursorPos.y,!0)},se=(n,t,l,o)=>{const i=document.createElementNS("http://www.w3.org/2000/svg","circle");i.setAttribute("cx",String(t)),i.setAttribute("cy",String(l)),i.setAttribute("r",String(4/S.value)),i.setAttribute("fill","#fff"),i.setAttribute("stroke",o),n.appendChild(i)},St=(n,t,l)=>{const o="http://www.w3.org/2000/svg";[[t,l-5e3,t,l+5e3],[t-5e3,l,t+5e3,l]].forEach(([r,a,v,f])=>{const g=document.createElementNS(o,"line");g.setAttribute("x1",String(r)),g.setAttribute("y1",String(a)),g.setAttribute("x2",String(v)),g.setAttribute("y2",String(f)),g.setAttribute("stroke","#ffffff"),g.setAttribute("stroke-width","2"),g.setAttribute("stroke-dasharray","8,4"),g.style.filter="drop-shadow(0 0 2px rgba(0,0,0,0.8))",n.appendChild(g)})},kt=(n,t,l)=>{const o="http://www.w3.org/2000/svg",i=10/S.value,r=document.createElementNS(o,"circle");r.setAttribute("cx",String(t)),r.setAttribute("cy",String(l)),r.setAttribute("r",String(i)),r.setAttribute("fill","rgba(230,162,60,0.3)"),r.setAttribute("stroke","#E6A23C"),n.appendChild(r);const a=document.createElementNS(o,"circle");a.setAttribute("cx",String(t)),a.setAttribute("cy",String(l)),a.setAttribute("r",String(4/S.value)),a.setAttribute("fill","#E6A23C"),n.appendChild(a)},Ve=(n,t,l,o,i,r)=>{const v=document.createElementNS("http://www.w3.org/2000/svg","line");v.setAttribute("x1",String(t)),v.setAttribute("y1",String(l)),v.setAttribute("x2",String(o)),v.setAttribute("y2",String(i)),v.setAttribute("stroke","#E6A23C"),v.setAttribute("stroke-width","3"),r&&v.setAttribute("stroke-dasharray","5,5"),n.appendChild(v),se(n,t,l,"#E6A23C"),se(n,o,i,"#E6A23C")},xt=n=>{E.publish({type:"openAnalysis",deviceId:n.id,region:n.region})},Et=n=>{const{payload:t}=n;if(t.type==="customArea"){t.action==="start"?Ce(t.mode||"surface"):t.action==="stop"&&ie();return}},Me=n=>ct(n),Re=n=>ut(n);return e.onMounted(()=>{window.addEventListener("mousemove",Me),window.addEventListener("mouseup",Re),window.addEventListener("click",be),G.value=C.value;const n=C.value.filter(l=>l.isOnline);A.value=n.map(l=>l.name);const t=new Set(n.map(l=>l.region));b.value=Array.from(t),n.forEach(l=>T.value.add(l.id)),e.nextTick(()=>{ke(),xe(),H()})}),e.onUnmounted(()=>{window.removeEventListener("mousemove",Me),window.removeEventListener("mouseup",Re),window.removeEventListener("click",be)}),e.watch(()=>p.conf,()=>{E.init(),G.value=C.value,e.nextTick(()=>{ke(),xe()})},{deep:!0}),(n,t)=>(e.openBlock(),e.createElementBlock("div",{class:"radar-map-wrapper",style:e.normalizeStyle({background:e.unref(m).bgColor})},[e.createElementVNode("div",$t,[e.createElementVNode("div",Dt,[e.createElementVNode("div",Lt,[e.createElementVNode("button",{ref_key:"regionBtnRef",ref:ue,class:"tb-btn",onClick:t[0]||(t[0]=e.withModifiers(l=>J("region"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(Fe.value),1),t[17]||(t[17]=e.createTextVNode(" ▼ ",-1))],512)]),e.createElementVNode("div",Tt,[e.createElementVNode("button",{ref_key:"radarBtnRef",ref:de,class:"tb-btn",onClick:t[1]||(t[1]=e.withModifiers(l=>J("radar"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(Ue.value),1),t[18]||(t[18]=e.createTextVNode(" ▼ ",-1))],512)]),e.createElementVNode("div",Pt,[e.createElementVNode("button",{ref_key:"virtBtnRef",ref:ge,class:"tb-btn",onClick:t[2]||(t[2]=e.withModifiers(l=>J("virt"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(He.value),1),t[19]||(t[19]=e.createTextVNode(" ▼ ",-1))],512)]),t[20]||(t[20]=e.createElementVNode("div",{class:"divider-v"},null,-1)),e.createElementVNode("button",{class:e.normalizeClass(["tb-btn",{active:j.value===1}]),onClick:t[3]||(t[3]=l=>re(1))},"一天内",2),e.createElementVNode("button",{class:e.normalizeClass(["tb-btn",{active:j.value===7}]),onClick:t[4]||(t[4]=l=>re(7))},"一周内",2),e.createElementVNode("button",{class:e.normalizeClass(["tb-btn",{active:j.value===30}]),onClick:t[5]||(t[5]=l=>re(30))},"一个月内",2),t[21]||(t[21]=e.createElementVNode("span",{class:"time-label"},"时间:",-1)),e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":t[6]||(t[6]=l=>K.value=l),class:"tb-btn time-input",onChange:ye},null,544),[[e.vModelText,K.value]]),t[22]||(t[22]=e.createElementVNode("span",{class:"time-label"},"至",-1)),e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":t[7]||(t[7]=l=>Z.value=l),class:"tb-btn time-input",onChange:ye},null,544),[[e.vModelText,Z.value]])]),e.createElementVNode("div",{class:"toolbar-right"},[e.createElementVNode("button",{class:"btn-profile",onClick:Qe},"剖面图绘制")])]),e.createElementVNode("div",It,[e.createElementVNode("button",{ref_key:"modelBtnRef",ref:ve,class:"tb-btn model-btn",onClick:t[8]||(t[8]=e.withModifiers(l=>J("model"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(We.value),1),t[23]||(t[23]=e.createTextVNode(" ▼ ",-1))],512)]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[L.value==="region"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[9]||(t[9]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne.value,l=>(e.openBlock(),e.createElementBlock("label",{key:l,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",value:l,checked:b.value.includes(l),onChange:o=>Ye(l,o.target.checked)},null,40,Ot),e.createElementVNode("span",{style:e.normalizeStyle(l==="全部"?"font-weight:bold;color:#1c3d90":"")},e.toDisplayString(l),5)]))),128))],4)):e.createCommentVNode("",!0),L.value==="radar"?(e.openBlock(),e.createElementBlock("div",{key:1,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[11]||(t[11]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("label",_t,[e.createElementVNode("input",{type:"checkbox",value:"全部",checked:ze.value,onChange:t[10]||(t[10]=l=>we("全部",l.target.checked))},null,40,Ft),t[24]||(t[24]=e.createElementVNode("span",null,"全部雷达",-1))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(pe.value,l=>(e.openBlock(),e.createElementBlock("label",{key:l.id,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",value:l.name,checked:A.value.includes(l.name),onChange:o=>we(l.name,o.target.checked)},null,40,zt),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(l.name)+" ",1),e.createElementVNode("span",{style:e.normalizeStyle({color:l.isOnline?"#71C446":"#999",fontSize:"12px"})},"●",4)])]))),128))],4)):e.createCommentVNode("",!0),L.value==="virt"?(e.openBlock(),e.createElementBlock("div",{key:2,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[15]||(t[15]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",Ut,[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":t[12]||(t[12]=l=>$.value=l),placeholder:"搜索区域或监测线...",style:{width:"100%",padding:"4px 8px",border:"1px solid #ddd","border-radius":"4px","font-size":"12px"}},null,512),[[e.vModelText,$.value]])]),e.createElementVNode("div",Ht,[t[27]||(t[27]=e.createElementVNode("div",{class:"dropdown-group-title"},"虚拟区域",-1)),e.withDirectives(e.createElementVNode("label",Wt,[e.createElementVNode("input",{type:"checkbox",checked:le.every(l=>P.value.includes(l)),onChange:t[13]||(t[13]=l=>qe(l.target.checked))},null,40,jt),t[25]||(t[25]=e.createElementVNode("span",{style:{"font-weight":"bold"}},"全部",-1))],512),[[e.vShow,!$.value||"全部".includes($.value)]]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(le,l=>e.withDirectives(e.createElementVNode("label",{key:l,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",checked:P.value.includes(l),onChange:o=>Xe(l,o.target.checked)},null,40,Yt),e.createElementVNode("span",null,e.toDisplayString(l),1)]),[[e.vShow,!$.value||l.includes($.value)]])),64)),t[28]||(t[28]=e.createElementVNode("div",{class:"dropdown-group-title",style:{"margin-top":"5px"}},"监测线",-1)),e.withDirectives(e.createElementVNode("label",qt,[e.createElementVNode("input",{type:"checkbox",checked:oe.every(l=>I.value.includes(l)),onChange:t[14]||(t[14]=l=>Ge(l.target.checked))},null,40,Xt),t[26]||(t[26]=e.createElementVNode("span",{style:{"font-weight":"bold"}},"全部",-1))],512),[[e.vShow,!$.value||"全部".includes($.value)]]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(oe,l=>e.withDirectives(e.createElementVNode("label",{key:l,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",checked:I.value.includes(l),onChange:o=>Ke(l,o.target.checked)},null,40,Gt),e.createElementVNode("span",null,e.toDisplayString(l),1)]),[[e.vShow,!$.value||l.includes($.value)]])),64))])],4)):e.createCommentVNode("",!0),L.value==="model"?(e.openBlock(),e.createElementBlock("div",{key:3,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[16]||(t[16]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(_e,l=>e.createElementVNode("label",{key:l.id,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",checked:N.value.includes(l.id),onChange:o=>Ze(l.id,o.target.checked)},null,40,Kt),e.createElementVNode("span",null,e.toDisplayString(l.label),1)])),64))],4)):e.createCommentVNode("",!0)])),e.createElementVNode("div",{ref_key:"viewerRef",ref:y,class:"map-viewer",onMousedown:st,onContextmenu:e.withModifiers(dt,["prevent"]),onWheel:e.withModifiers(gt,["prevent"])},[e.createElementVNode("div",{ref_key:"canvasRef",ref:F,class:"map-canvas"},[(e.openBlock(),e.createElementBlock("svg",{ref_key:"baseSvgRef",ref:ce,class:"base-svg",width:e.unref(m).canvasWidth,height:e.unref(m).canvasHeight,viewBox:`0 0 ${e.unref(m).canvasWidth} ${e.unref(m).canvasHeight}`},null,8,Zt)),(e.openBlock(),e.createElementBlock("svg",{ref_key:"highlightSvgRef",ref:W,class:"highlight-svg",width:e.unref(m).canvasWidth,height:e.unref(m).canvasHeight,viewBox:`0 0 ${e.unref(m).canvasWidth} ${e.unref(m).canvasHeight}`},null,8,Jt)),(e.openBlock(),e.createElementBlock("svg",{ref_key:"customSvgRef",ref:X,class:"custom-svg",width:e.unref(m).canvasWidth,height:e.unref(m).canvasHeight,viewBox:`0 0 ${e.unref(m).canvasWidth} ${e.unref(m).canvasHeight}`},null,8,Qt)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,l=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:l.id,class:e.normalizeClass(["radar-station",{offline:!l.isOnline}]),style:e.normalizeStyle(ot(l)),title:`${l.name}(${l.isOnline?"在线":"离线"})`,onClick:e.withModifiers(o=>vt(l),["stop"])},"📡",14,en)),[[e.vShow,Se(l)]])),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,l=>(e.openBlock(),e.createElementBlock("div",{key:"cloud-"+l.id,class:e.normalizeClass(["radar-cloud",{visible:at(l.id)&&Se(l),"no-anim":k.mode==="edit"}]),style:e.normalizeStyle(rt(l))},null,6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(tt.value,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"virtual-point",style:e.normalizeStyle(it(l)),title:`${l.deviceId} | ${l.speed} mm/h`,onClick:e.withModifiers(o=>xt(l),["stop"])},null,12,tn))),128))],512)],544),s.isDrawing?(e.openBlock(),e.createElementBlock("div",nn,[e.createElementVNode("span",ln,e.toDisplayString(nt.value),1),e.createElementVNode("button",{class:"toolbar-btn confirm",onClick:yt},"确定生成"),e.createElementVNode("button",{class:"toolbar-btn",onClick:ie},"取消")])):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default",{},void 0,!0)],4))}})),vn=Bt._export_sfc(gn,[["__scopeId","data-v-cc924deb"]]);exports.default=vn;
|
|
@@ -12,8 +12,8 @@ var Ge = (R, y, M) => y in R ? Ht(R, y, { enumerable: !0, configurable: !0, writ
|
|
|
12
12
|
}, Ke = (R, y) => Wt(R, zt(y));
|
|
13
13
|
import { defineComponent as Xt, computed as B, ref as v, reactive as Ze, onMounted as Gt, nextTick as Je, onUnmounted as qt, watch as Kt, openBlock as f, createElementBlock as b, normalizeStyle as U, unref as A, createElementVNode as a, withModifiers as D, toDisplayString as F, createTextVNode as oe, normalizeClass as re, withDirectives as W, vModelText as ke, createBlock as Zt, Teleport as Jt, Fragment as z, renderList as j, createCommentVNode as ie, vShow as ae, renderSlot as Qt } from "vue";
|
|
14
14
|
import "html2canvas";
|
|
15
|
-
import { B as en } from "./BaseComponent-
|
|
16
|
-
import { _ as tn } from "./index-
|
|
15
|
+
import { B as en } from "./BaseComponent-BppXM0zf.js";
|
|
16
|
+
import { _ as tn } from "./index-BK7gdNxS.js";
|
|
17
17
|
import { A as nn, D as ln } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
18
18
|
const sn = { class: "map-toolbar" }, on = { class: "toolbar-left" }, rn = { class: "dropdown-wrapper" }, an = { class: "dropdown-wrapper" }, un = { class: "dropdown-wrapper" }, dn = { class: "model-btn-wrapper" }, cn = ["value", "checked", "onChange"], gn = {
|
|
19
19
|
class: "dropdown-item",
|
|
@@ -17,8 +17,8 @@ import "element-plus/es/components/date-picker/style/css";
|
|
|
17
17
|
import "element-plus/es/components/select/style/css";
|
|
18
18
|
import "element-plus/es/components/option/style/css";
|
|
19
19
|
import { defineComponent as Q, computed as b, reactive as q, openBlock as c, createElementBlock as v, normalizeStyle as G, createElementVNode as i, createVNode as d, withCtx as y, Fragment as R, renderList as h, createBlock as S, normalizeClass as J, toDisplayString as K, createTextVNode as X, renderSlot as Z } from "vue";
|
|
20
|
-
import { B as ee } from "./BaseComponent-
|
|
21
|
-
import { d as Y, _ as te } from "./index-
|
|
20
|
+
import { B as ee } from "./BaseComponent-BppXM0zf.js";
|
|
21
|
+
import { d as Y, _ as te } from "./index-BK7gdNxS.js";
|
|
22
22
|
import { A as le, D as ne } from "./ele-vlu-icon-Bg6EHZdJ.js";
|
|
23
23
|
const ae = { class: "filter-bar" }, oe = { class: "filter-item" }, se = { class: "filter-item" }, re = { class: "filter-item" }, ie = { class: "time-range-btns" }, ce = ["onClick"], me = { class: "filter-item" }, ue = {
|
|
24
24
|
DEFAULT_ICON: ne,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var S=Object.defineProperty,j=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var y=(i,r,s)=>r in i?S(i,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[r]=s,E=(i,r)=>{for(var s in r||(r={}))T.call(r,s)&&y(i,s,r[s]);if(C)for(var s of C(r))O.call(r,s)&&y(i,s,r[s]);return i},k=(i,r)=>j(i,w(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),I=require("./BaseComponent-
|
|
1
|
+
"use strict";var S=Object.defineProperty,j=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var y=(i,r,s)=>r in i?S(i,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[r]=s,E=(i,r)=>{for(var s in r||(r={}))T.call(r,s)&&y(i,s,r[s]);if(C)for(var s of C(r))O.call(r,s)&&y(i,s,r[s]);return i},k=(i,r)=>j(i,w(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),I=require("./BaseComponent-oKNx9Ues.cjs"),g=require("./index-ucOU7Nfo.cjs"),V=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),F={class:"filter-bar"},H={class:"filter-item"},x={class:"filter-item"},q={class:"filter-item"},L={class:"time-range-btns"},U=["onClick"],z={class:"filter-item"},W={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"降雨筛选栏",NAME_EN:"Rainfall Filter Bar",ORDER:1,PLATFORM:["pc","screen"]},P={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},$=[{name:"WATER101",object_id:"",region:"北帮"},{name:"WATER102",object_id:"",region:"北帮"},{name:"WATER201",object_id:"",region:"南帮"},{name:"WATER305",object_id:"",region:"东帮"},{name:"WATER410",object_id:"",region:"西帮"}],Q=["name","object_id","region"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=50,X={DEFAULT:W,OPTIONS:P,DATA:$,PARAMS:Q,SOURCE:G,ITEMS:K,COMMON:J},Z=e.defineComponent(k(E({},X),{__name:"rainfallFilterBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const r=i;class s extends I.BaseComponent{extractStyles(){var m,p,n,v;const t=(m=this.props.conf)==null?void 0:m.options,a=((p=t==null?void 0:t.linkChannel)==null?void 0:p.value)||"rainfall",u=((n=t==null?void 0:t.customChannel)==null?void 0:n.value)||"";return{bgColor:((v=t==null?void 0:t.bgColor)==null?void 0:v.value)||"#ffffff",linkChannel:a==="custom"&&u?u:a}}}const b=new s(r,"rainfallFilterBar");b.setupLifecycle();const h=b.getStyle(),d=e.computed(()=>{var t;const l=(t=r.conf)==null?void 0:t.data;return!l||!Array.isArray(l)?[]:l.filter(a=>a.name)}),R=e.computed(()=>{const l=new Set;return d.value.forEach(t=>{t.region&&l.add(t.region)}),Array.from(l)}),_=e.computed(()=>{let l=d.value;return o.region&&(l=l.filter(t=>t.region===o.region)),l.map(t=>({label:t.name,value:t.name}))}),N=[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}],c=d.value[0],o=e.reactive({region:(c==null?void 0:c.region)||"",points:c?[c.name]:[],timeRange:"1d",dateRange:[g.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),g.dayjs().format("YYYY/MM/DD HH:mm")]}),Y=()=>{const l=_.value;o.points=l.length>0?[l[0].value]:[]},B=l=>{o.timeRange=l;const t=g.dayjs(),a=l==="1d"?t.subtract(1,"day"):l==="1w"?t.subtract(1,"week"):t.subtract(1,"month");o.dateRange=[a.format("YYYY/MM/DD HH:mm"),t.format("YYYY/MM/DD HH:mm")]},M=()=>{o.timeRange=""},A=()=>{if(r.mode==="edit"||o.points.length===0)return;const l=d.value.filter(a=>o.points.includes(a.name)),t=[...new Set(l.map(a=>a.object_id).filter(Boolean))];if(t.length===0){console.warn("[降雨筛选栏] 所选监测点未配置 object_id,无法发送联动");return}b.publish({type:"filter",region:o.region,selectedMonitors:o.points,objectId:t[0]||"",objectIds:t,sensors:l.map(a=>({name:a.name,objectId:a.object_id})),timeRange:o.timeRange,dateRange:[...o.dateRange]})},D=e.computed(()=>({backgroundColor:h.value.bgColor}));return(l,t)=>{const a=f.ElOption,u=f.ElSelect,m=f.ElDatePicker,p=f.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"rainfall-filter-bar-wrap",style:e.normalizeStyle(D.value)},[e.createElementVNode("div",F,[e.createElementVNode("div",H,[t[3]||(t[3]=e.createElementVNode("span",{class:"filter-label"},"区域位置:",-1)),e.createVNode(u,{modelValue:o.region,"onUpdate:modelValue":t[0]||(t[0]=n=>o.region=n),placeholder:"全部区域",size:"small",style:{width:"120px"},onChange:Y},{default:e.withCtx(()=>[e.createVNode(a,{label:"全部区域",value:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,n=>(e.openBlock(),e.createBlock(a,{key:n,label:n,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",x,[t[4]||(t[4]=e.createElementVNode("span",{class:"filter-label"},"监测点:",-1)),e.createVNode(u,{modelValue:o.points,"onUpdate:modelValue":t[1]||(t[1]=n=>o.points=n),placeholder:"请选择",size:"small",style:{width:"180px"},multiple:"","collapse-tags":"","collapse-tags-tooltip":""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,n=>(e.openBlock(),e.createBlock(a,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",q,[t[5]||(t[5]=e.createElementVNode("span",{class:"filter-label"},"时间范围:",-1)),e.createElementVNode("div",L,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(N,n=>e.createElementVNode("button",{key:n.value,class:e.normalizeClass(["range-btn",{active:o.timeRange===n.value}]),onClick:v=>B(n.value)},e.toDisplayString(n.label),11,U)),64))])]),e.createElementVNode("div",z,[e.createVNode(m,{modelValue:o.dateRange,"onUpdate:modelValue":t[2]||(t[2]=n=>o.dateRange=n),type:"datetimerange",size:"small",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",style:{width:"340px"},onChange:M},null,8,["modelValue"])]),e.createVNode(p,{type:"primary",size:"small",onClick:A},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("查询",-1)])]),_:1})]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),ee=g._export_sfc(Z,[["__scopeId","data-v-b151f568"]]);exports.default=ee;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ve=Object.defineProperty,he=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var J=Object.getOwnPropertySymbols,be=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,_e=Reflect.get;var Q=(p,a,i)=>a in p?ve(p,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):p[a]=i,X=(p,a)=>{for(var i in a||(a={}))ye.call(a,i)&&Q(p,i,a[i]);if(J)for(var i of J(a))Ce.call(a,i)&&Q(p,i,a[i]);return p},ee=(p,a)=>he(p,ge(a));var z=(p,a,i)=>_e(be(p),i,a);var q=(p,a,i)=>new Promise((N,g)=>{var v=_=>{try{j(i.next(_))}catch(A){g(A)}},S=_=>{try{j(i.throw(_))}catch(A){g(A)}},j=_=>_.done?N(_.value):Promise.resolve(_.value).then(v,S);j((i=i.apply(p,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const t=require("vue"),T=require("./index-DoEyCVDU.cjs");require("element-plus");const xe=require("./EChartComponentBase-8GSbyY5P.cjs"),te=require("@element-plus/icons-vue"),oe=require("./ele-lin-icon-Dke_1AmT.cjs"),Se={class:"chart-panel"},Ee={class:"panel-header"},we={class:"header-right"},Ne={class:"indicator-selector-panel"},je={class:"indicator-select-all"},Ve={class:"legend-bar"},ke={class:"legend-items"},Ie=["onClick"],Ae={class:"legend-text"},Me=["id"],Oe={DEFAULT_ICON:oe.DEFAULT_ICON,ACTIVE_ICON:oe.ACTIVE_ICON,NAME_CN:"降雨指标时序曲线",NAME_EN:"Rainfall Time Curve",ORDER:3,PLATFORM:["pc","screen"]},De={bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},gridColor:{value:"#f0f0f0",type:"color",label:"网格线颜色"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Te=[{name:"实时降水量(mm)",fv:"",object_id:"",color:"#5470c6",device:""},{name:"累计降水量(mm)",fv:"",object_id:"",color:"#ee6666",device:""}],Le=["name","fv","object_id","color","device"],$e=["mosaic","statistics","calculate"],qe={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Be=50,Pe={DEFAULT:Oe,OPTIONS:De,DATA:Te,PARAMS:Le,SOURCE:$e,ITEMS:Be,COMMON:qe},Ye=t.defineComponent(ee(X({},Pe),{__name:"rainfallTimeCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const a=p,i=new Map,N=new Map,g=t.ref(new Map),v=t.ref([]);let S=0,j=null;const _=t.computed(()=>{var l,e;return(e=(l=a.conf)==null?void 0:l.common)!=null&&e.object_id?!0:P.value.some(n=>!!n.object_id)}),A=t.computed(()=>_.value||v.value.length>0);class L extends xe.EChartComponentBase{extractStyles(){var c,f,m,o,u,s,d;const e=(c=this.props.conf)==null?void 0:c.options,n=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"rainfall",r=((m=e==null?void 0:e.customChannel)==null?void 0:m.value)||"";return{bgColor:((o=e==null?void 0:e.bgColor)==null?void 0:o.value)||"#f5f7fa",panelBgColor:((u=e==null?void 0:e.panelBgColor)==null?void 0:u.value)||"#ffffff",textColor:((s=e==null?void 0:e.textColor)==null?void 0:s.value)||"#333333",gridColor:((d=e==null?void 0:e.gridColor)==null?void 0:d.value)||"#f0f0f0",linkChannel:n==="custom"&&r?r:n}}getChartOption(){return R(this.Style.value)}initHistory(){return q(this,null,function*(){const e=this.props.conf;if(!e)return[];e.options||(e.options={});const n=e.options.points,r=Object.prototype.hasOwnProperty.call(e.options,"points");(!n||Number(n)<24)&&(e.options.points=24);try{return yield z(L.prototype,this,"initHistory").call(this)}finally{r?e.options.points=n:delete e.options.points}})}onPreview(){return q(this,null,function*(){var n,r,c,f,m;const e=((r=(n=this.props.conf)==null?void 0:n.common)==null?void 0:r.object_id)||((m=(f=(c=this.props.conf)==null?void 0:c.data)==null?void 0:f[0])==null?void 0:m.object_id)||"";if(e&&v.value.length===0){v.value=[e],yield F([e]);return}yield z(L.prototype,this,"onPreview").call(this)})}setSocketData(e){var m;if(!e)return;const n=e.object_id||e.objectId||"";if(n&&v.value.length>0&&!v.value.includes(n))return;const r=e.datetime?e.datetime.split(".")[0]:T.dayjs().format("YYYY/MM/DD HH:mm"),c=((m=this.props.conf)==null?void 0:m.data)||[],f=v.value.length>1;c.forEach(o=>{if(o.device){const u=this.extractDataValue(e,o.device);if(u!=null&&String(u).trim()){const s=String(u).trim();f&&n?g.value.set(n,s):(N.set(o.name||o.fv,s),n&&g.value.set(n,s))}}}),c.forEach(o=>{if(!o.fv)return;const u=this.extractDataValue(e,o.fv);if(u==null)return;const s=f&&n?`${n}:${o.name||o.fv}`:o.name||o.fv,d=i.get(s);d?(d.times.push(r),d.values.push(parseFloat(u)),d.times.length>200&&(d.times.shift(),d.values.shift())):i.set(s,{times:[r],values:[parseFloat(u)]})}),this.chartObj&&this.chartObj.setOption(R(this.Style.value),!1)}onLinkEvent(e){de(e)}}const C=new L(a,"rainfallTimeCurve");C.setupLifecycle();const B=C.getStyle(),ne=C.getEchartId(),P=t.computed(()=>{var l;return((l=a.conf)==null?void 0:l.data)||[]}),b=t.computed(()=>{const l=new Set;return P.value.filter(e=>e.name&&!l.has(e.name)?(l.add(e.name),!0):!1)}),h=t.ref([]);t.watch(b,l=>{l.length>0&&h.value.length===0&&(h.value=l.map(e=>e.fv||e.name))},{immediate:!0});const U=t.computed({get:()=>b.value.length>0&&h.value.length===b.value.length,set:()=>{}}),le=t.computed(()=>{const l=h.value.length;return l>0&&l<b.value.length}),ae=t.computed(()=>{if(h.value.length===0)return"选择监测指标";if(h.value.length===b.value.length)return"全部指标已选";const e=b.value.filter(n=>h.value.includes(n.fv||n.name)).map(n=>n.name).join(", ");return e.length>14?e.substring(0,14)+"...":e}),se=l=>{h.value=l?b.value.map(e=>e.fv||e.name):[],V()},x=t.ref(new Set),re=t.computed(()=>{if(v.value.length>1){const e=[];for(const n of v.value){const r=g.value.get(n)||n.slice(-6);b.value.filter(c=>h.value.includes(c.fv||c.name)).forEach(c=>{e.push({name:`${r}-${c.name}`,color:c.color||"#5470c6",visible:!x.value.has(`${n}:${c.name}`)})})}return e}return b.value.filter(e=>h.value.includes(e.fv||e.name)).map(e=>{const n=N.get(e.name)||g.value.values().next().value||"";return{name:n?`${n}-${e.name}`:e.name,color:e.color||"#5470c6",visible:!x.value.has(e.name)}})}),ie=l=>{const e=l.name.includes("-")?l.name.split("-").slice(1).join("-"):l.name;x.value.has(e)?x.value.delete(e):x.value.add(e),x.value=new Set(x.value),V()},ce=t.computed(()=>({backgroundColor:B.value.bgColor,color:B.value.textColor})),Y=()=>{i.clear();const l=T.dayjs();P.value.forEach((e,n)=>{const r=[],c=[],f=[2800,3200],m=[200,300],o=f[n%2]||3e3,u=m[n%2]||200;for(let s=0;s<100;s++)r.push(l.subtract((100-s)*15,"minute").format("YYYY/MM/DD HH:mm")),c.push(+(o+(Math.random()-.5)*u+Math.sin(s/10)*u*.3).toFixed(2));i.set(e.name,{times:r,values:c})})},R=l=>{if(a.mode!=="edit"&&(!A.value||i.size===0))return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};let e=[];for(const[,o]of i)o.times.length>e.length&&(e=o.times);!e.length&&a.mode==="edit"&&(e=Array.from({length:50},(o,u)=>T.dayjs().subtract((50-u)*15,"minute").format("YYYY/MM/DD HH:mm")));const n={},r=v.value.length>1,c=["#5470c6","#ee6666","#fac858","#91cc75","#73c0de","#3ba272","#fc8452","#9a60b4"];let f=0,m=[];if(r&&a.mode!=="edit")for(const o of v.value){const u=g.value.get(o)||o.slice(-6);b.value.filter(s=>h.value.includes(s.fv||s.name)).forEach(s=>{const d=`${o}:${s.name}`,k=`${u}-${s.name}`,E=s.color||c[f%c.length];n[k]=!x.value.has(d);const $=i.get(d);m.push({name:k,type:"line",smooth:!0,showSymbol:!1,data:($==null?void 0:$.values)||[],lineStyle:{color:E,width:2.5,type:"solid"},itemStyle:{color:E}}),f++})}else m=b.value.filter(o=>h.value.includes(o.fv||o.name)).map(o=>{const u=N.get(o.name)||g.value.values().next().value||"",s=u?`${u}-${o.name}`:o.name;n[s]=!x.value.has(o.name);const d=i.get(o.name);return{name:s,type:"line",smooth:!0,showSymbol:!1,data:(d==null?void 0:d.values)||[],lineStyle:{color:o.color||"#5470c6",width:2.5,type:"solid"},itemStyle:{color:o.color||"#5470c6"}}});return{tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#1c3d90",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},legend:{show:!1,selected:n},grid:{top:15,right:40,bottom:60,left:60},xAxis:{type:"category",data:e,axisLine:{lineStyle:{color:l.gridColor}},axisLabel:{color:l.textColor,fontSize:11,rotate:15,interval:"auto",formatter:o=>{var u;if(o&&o.length>6){const s=o.split(" ");return(((u=s[0])==null?void 0:u.split("/").slice(1).join("/"))||"")+(s[1]?" "+s[1]:"")}return o}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",name:"监测数值",scale:!0,axisLine:{show:!1},axisLabel:{color:l.textColor,fontSize:11},splitLine:{lineStyle:{color:l.gridColor,type:"dashed"}}},dataZoom:[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"slider",height:18,bottom:8,borderColor:"transparent",backgroundColor:"#f0f0f0",fillerColor:"rgba(28, 61, 144, 0.2)",handleStyle:{color:"#1c3d90"},textStyle:{fontSize:10}}],series:m}},V=()=>{const l=C.getChartInstance();l&&l.setOption(R(B.value),!0)},ue=()=>{const l=C.getChartInstance();if(!l)return;const e=document.createElement("a");e.href=l.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`降雨指标时序曲线_${T.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},de=l=>{const{payload:e}=l;if(!e)return;if(e.type==="filter"){e.dateRange&&Array.isArray(e.dateRange)&&e.dateRange.length===2&&(j={start_time:e.dateRange[0],end_time:e.dateRange[1]});const r=e.objectIds&&e.objectIds.length>0?e.objectIds:e.objectId?[e.objectId]:[];r.length>0&&(v.value=r,F(r)),(a.mode==="edit"||r.length===0)&&(Y(),V());return}const n=e.objectId||e.object_id;n&&(v.value=[n],F([n]))},F=l=>q(null,null,function*(){var s;if(!l.length||a.mode!=="preview")return;const e=++S;i.clear(),g.value.clear(),N.clear();const n=(s=C.session)==null?void 0:s.value;if(!n)return;const r=a.conf.id;n.componentRequests&&n.componentRequests.delete(r),typeof n.unsubscribeComponent=="function"&&n.unsubscribeComponent(r);const{data:c,common:f}=a.conf,m=l.length>1;j&&(f.historyTimeRange=j),a.conf.options||(a.conf.options={});const o=a.conf.options.points,u=Object.prototype.hasOwnProperty.call(a.conf.options,"points");(!o||Number(o)<24)&&(a.conf.options.points=24);for(const d of l){if(S!==e)return;Array.isArray(c)&&c.forEach(E=>{E.object_id=d}),f.multiObject||(f.object_id=d);try{const E=yield Promise.resolve().then(()=>require("./history-Dm7563t_.cjs")),M=yield new E.default().getHistoryData(a,"rainfallTimeCurve");if(S!==e)return;const G=(M==null?void 0:M.history)||(Array.isArray(M)?M:[]);G.length>0&&c.forEach((y,fe)=>{if(!y.fv)return;const K=G[fe];if(!Array.isArray(K))return;const me=[...K].sort((w,O)=>new Date(w.time||w.datetime||"").getTime()-new Date(O.time||O.datetime||"").getTime()),pe=m?`${d}:${y.name||y.fv}`:y.name||y.fv,H=[],W=[];me.forEach(w=>{const O=w.time||w.datetime,Z=w[y.fv];if(O&&Z!=null){const I=parseFloat(Z);isNaN(I)||(H.push(O.split(".")[0]),W.push(I))}if(y.device&&w[y.device]){const I=String(w[y.device]);m||N.set(y.name||y.fv,I),g.value.set(d,I)}}),H.length>0&&i.set(pe,{times:H,values:W})})}catch(E){console.warn("[降雨时序曲线] 历史数据获取失败:",E)}if(S!==e)return;const k=C.getSource();C.subscribeBySource(k,d)}u?a.conf.options.points=o:delete a.conf.options.points,S===e&&(V(),n.registerComponent({id:r,request:null,onUpdate:(d,k)=>{S===e&&d==="realtime"&&C.setSocketData(k)}}))});return t.onMounted(()=>{a.mode==="edit"&&Y(),setTimeout(()=>{var l;return(l=C.getChartInstance())==null?void 0:l.resize()},200)}),t.watch(()=>a.conf,()=>{a.mode==="edit"&&(Y(),V())},{deep:!0}),(l,e)=>{const n=D.ElIcon,r=D.ElButton,c=D.ElCheckbox,f=D.ElCheckboxGroup,m=D.ElPopover;return t.openBlock(),t.createElementBlock("div",{class:"rainfall-time-curve",style:t.normalizeStyle(ce.value)},[t.createElementVNode("div",Se,[t.createElementVNode("div",Ee,[e[4]||(e[4]=t.createElementVNode("div",{class:"header-left"},[t.createElementVNode("span",{class:"indicator-dot"}),t.createElementVNode("span",{class:"panel-title"},"📊 指标时序演变曲线")],-1)),t.createElementVNode("div",we,[t.createVNode(m,{placement:"bottom-start",width:220,trigger:"click"},{reference:t.withCtx(()=>[t.createVNode(r,{size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(ae.value)+" ",1),t.createVNode(n,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(t.unref(te.ArrowDown))]),_:1})]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",Ne,[t.createElementVNode("div",je,[t.createVNode(c,{modelValue:U.value,"onUpdate:modelValue":e[0]||(e[0]=o=>U.value=o),indeterminate:le.value,onChange:se},{default:t.withCtx(()=>[...e[2]||(e[2]=[t.createTextVNode(" 全部指标 ",-1)])]),_:1},8,["modelValue","indeterminate"])]),t.createVNode(f,{modelValue:h.value,"onUpdate:modelValue":e[1]||(e[1]=o=>h.value=o),onChange:V},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,o=>(t.openBlock(),t.createBlock(c,{key:o.fv,label:o.fv,class:"indicator-checkbox-item"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t.createVNode(r,{size:"small",onClick:ue},{default:t.withCtx(()=>[t.createVNode(n,null,{default:t.withCtx(()=>[t.createVNode(t.unref(te.Download))]),_:1}),e[3]||(e[3]=t.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),t.createElementVNode("div",Ve,[t.createElementVNode("div",ke,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(re.value,o=>(t.openBlock(),t.createElementBlock("span",{key:o.name,class:t.normalizeClass(["legend-item",{disabled:!o.visible}]),onClick:u=>ie(o)},[t.createElementVNode("span",{class:"legend-line",style:t.normalizeStyle({borderTopColor:o.visible?o.color:"#ccc",borderTopStyle:"solid"})},null,4),t.createElementVNode("span",Ae,t.toDisplayString(o.name),1)],10,Ie))),128))])]),t.createElementVNode("div",{id:t.unref(ne),class:"chart-container"},null,8,Me)]),t.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),Re=T._export_sfc(Ye,[["__scopeId","data-v-ead6ecc7"]]);exports.default=Re;
|
|
1
|
+
"use strict";var ve=Object.defineProperty,he=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var J=Object.getOwnPropertySymbols,be=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,_e=Reflect.get;var Q=(p,a,i)=>a in p?ve(p,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):p[a]=i,X=(p,a)=>{for(var i in a||(a={}))ye.call(a,i)&&Q(p,i,a[i]);if(J)for(var i of J(a))Ce.call(a,i)&&Q(p,i,a[i]);return p},ee=(p,a)=>he(p,ge(a));var z=(p,a,i)=>_e(be(p),i,a);var q=(p,a,i)=>new Promise((N,g)=>{var v=_=>{try{j(i.next(_))}catch(A){g(A)}},S=_=>{try{j(i.throw(_))}catch(A){g(A)}},j=_=>_.done?N(_.value):Promise.resolve(_.value).then(v,S);j((i=i.apply(p,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const t=require("vue"),T=require("./index-ucOU7Nfo.cjs");require("element-plus");const xe=require("./EChartComponentBase-EgcDDKn2.cjs"),te=require("@element-plus/icons-vue"),oe=require("./ele-lin-icon-Dke_1AmT.cjs"),Se={class:"chart-panel"},Ee={class:"panel-header"},we={class:"header-right"},Ne={class:"indicator-selector-panel"},je={class:"indicator-select-all"},Ve={class:"legend-bar"},ke={class:"legend-items"},Ie=["onClick"],Ae={class:"legend-text"},Me=["id"],Oe={DEFAULT_ICON:oe.DEFAULT_ICON,ACTIVE_ICON:oe.ACTIVE_ICON,NAME_CN:"降雨指标时序曲线",NAME_EN:"Rainfall Time Curve",ORDER:3,PLATFORM:["pc","screen"]},De={bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},gridColor:{value:"#f0f0f0",type:"color",label:"网格线颜色"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Te=[{name:"实时降水量(mm)",fv:"",object_id:"",color:"#5470c6",device:""},{name:"累计降水量(mm)",fv:"",object_id:"",color:"#ee6666",device:""}],Le=["name","fv","object_id","color","device"],$e=["mosaic","statistics","calculate"],qe={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Be=50,Pe={DEFAULT:Oe,OPTIONS:De,DATA:Te,PARAMS:Le,SOURCE:$e,ITEMS:Be,COMMON:qe},Ye=t.defineComponent(ee(X({},Pe),{__name:"rainfallTimeCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const a=p,i=new Map,N=new Map,g=t.ref(new Map),v=t.ref([]);let S=0,j=null;const _=t.computed(()=>{var l,e;return(e=(l=a.conf)==null?void 0:l.common)!=null&&e.object_id?!0:P.value.some(n=>!!n.object_id)}),A=t.computed(()=>_.value||v.value.length>0);class L extends xe.EChartComponentBase{extractStyles(){var c,f,m,o,u,s,d;const e=(c=this.props.conf)==null?void 0:c.options,n=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"rainfall",r=((m=e==null?void 0:e.customChannel)==null?void 0:m.value)||"";return{bgColor:((o=e==null?void 0:e.bgColor)==null?void 0:o.value)||"#f5f7fa",panelBgColor:((u=e==null?void 0:e.panelBgColor)==null?void 0:u.value)||"#ffffff",textColor:((s=e==null?void 0:e.textColor)==null?void 0:s.value)||"#333333",gridColor:((d=e==null?void 0:e.gridColor)==null?void 0:d.value)||"#f0f0f0",linkChannel:n==="custom"&&r?r:n}}getChartOption(){return R(this.Style.value)}initHistory(){return q(this,null,function*(){const e=this.props.conf;if(!e)return[];e.options||(e.options={});const n=e.options.points,r=Object.prototype.hasOwnProperty.call(e.options,"points");(!n||Number(n)<24)&&(e.options.points=24);try{return yield z(L.prototype,this,"initHistory").call(this)}finally{r?e.options.points=n:delete e.options.points}})}onPreview(){return q(this,null,function*(){var n,r,c,f,m;const e=((r=(n=this.props.conf)==null?void 0:n.common)==null?void 0:r.object_id)||((m=(f=(c=this.props.conf)==null?void 0:c.data)==null?void 0:f[0])==null?void 0:m.object_id)||"";if(e&&v.value.length===0){v.value=[e],yield F([e]);return}yield z(L.prototype,this,"onPreview").call(this)})}setSocketData(e){var m;if(!e)return;const n=e.object_id||e.objectId||"";if(n&&v.value.length>0&&!v.value.includes(n))return;const r=e.datetime?e.datetime.split(".")[0]:T.dayjs().format("YYYY/MM/DD HH:mm"),c=((m=this.props.conf)==null?void 0:m.data)||[],f=v.value.length>1;c.forEach(o=>{if(o.device){const u=this.extractDataValue(e,o.device);if(u!=null&&String(u).trim()){const s=String(u).trim();f&&n?g.value.set(n,s):(N.set(o.name||o.fv,s),n&&g.value.set(n,s))}}}),c.forEach(o=>{if(!o.fv)return;const u=this.extractDataValue(e,o.fv);if(u==null)return;const s=f&&n?`${n}:${o.name||o.fv}`:o.name||o.fv,d=i.get(s);d?(d.times.push(r),d.values.push(parseFloat(u)),d.times.length>200&&(d.times.shift(),d.values.shift())):i.set(s,{times:[r],values:[parseFloat(u)]})}),this.chartObj&&this.chartObj.setOption(R(this.Style.value),!1)}onLinkEvent(e){de(e)}}const C=new L(a,"rainfallTimeCurve");C.setupLifecycle();const B=C.getStyle(),ne=C.getEchartId(),P=t.computed(()=>{var l;return((l=a.conf)==null?void 0:l.data)||[]}),b=t.computed(()=>{const l=new Set;return P.value.filter(e=>e.name&&!l.has(e.name)?(l.add(e.name),!0):!1)}),h=t.ref([]);t.watch(b,l=>{l.length>0&&h.value.length===0&&(h.value=l.map(e=>e.fv||e.name))},{immediate:!0});const U=t.computed({get:()=>b.value.length>0&&h.value.length===b.value.length,set:()=>{}}),le=t.computed(()=>{const l=h.value.length;return l>0&&l<b.value.length}),ae=t.computed(()=>{if(h.value.length===0)return"选择监测指标";if(h.value.length===b.value.length)return"全部指标已选";const e=b.value.filter(n=>h.value.includes(n.fv||n.name)).map(n=>n.name).join(", ");return e.length>14?e.substring(0,14)+"...":e}),se=l=>{h.value=l?b.value.map(e=>e.fv||e.name):[],V()},x=t.ref(new Set),re=t.computed(()=>{if(v.value.length>1){const e=[];for(const n of v.value){const r=g.value.get(n)||n.slice(-6);b.value.filter(c=>h.value.includes(c.fv||c.name)).forEach(c=>{e.push({name:`${r}-${c.name}`,color:c.color||"#5470c6",visible:!x.value.has(`${n}:${c.name}`)})})}return e}return b.value.filter(e=>h.value.includes(e.fv||e.name)).map(e=>{const n=N.get(e.name)||g.value.values().next().value||"";return{name:n?`${n}-${e.name}`:e.name,color:e.color||"#5470c6",visible:!x.value.has(e.name)}})}),ie=l=>{const e=l.name.includes("-")?l.name.split("-").slice(1).join("-"):l.name;x.value.has(e)?x.value.delete(e):x.value.add(e),x.value=new Set(x.value),V()},ce=t.computed(()=>({backgroundColor:B.value.bgColor,color:B.value.textColor})),Y=()=>{i.clear();const l=T.dayjs();P.value.forEach((e,n)=>{const r=[],c=[],f=[2800,3200],m=[200,300],o=f[n%2]||3e3,u=m[n%2]||200;for(let s=0;s<100;s++)r.push(l.subtract((100-s)*15,"minute").format("YYYY/MM/DD HH:mm")),c.push(+(o+(Math.random()-.5)*u+Math.sin(s/10)*u*.3).toFixed(2));i.set(e.name,{times:r,values:c})})},R=l=>{if(a.mode!=="edit"&&(!A.value||i.size===0))return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};let e=[];for(const[,o]of i)o.times.length>e.length&&(e=o.times);!e.length&&a.mode==="edit"&&(e=Array.from({length:50},(o,u)=>T.dayjs().subtract((50-u)*15,"minute").format("YYYY/MM/DD HH:mm")));const n={},r=v.value.length>1,c=["#5470c6","#ee6666","#fac858","#91cc75","#73c0de","#3ba272","#fc8452","#9a60b4"];let f=0,m=[];if(r&&a.mode!=="edit")for(const o of v.value){const u=g.value.get(o)||o.slice(-6);b.value.filter(s=>h.value.includes(s.fv||s.name)).forEach(s=>{const d=`${o}:${s.name}`,k=`${u}-${s.name}`,E=s.color||c[f%c.length];n[k]=!x.value.has(d);const $=i.get(d);m.push({name:k,type:"line",smooth:!0,showSymbol:!1,data:($==null?void 0:$.values)||[],lineStyle:{color:E,width:2.5,type:"solid"},itemStyle:{color:E}}),f++})}else m=b.value.filter(o=>h.value.includes(o.fv||o.name)).map(o=>{const u=N.get(o.name)||g.value.values().next().value||"",s=u?`${u}-${o.name}`:o.name;n[s]=!x.value.has(o.name);const d=i.get(o.name);return{name:s,type:"line",smooth:!0,showSymbol:!1,data:(d==null?void 0:d.values)||[],lineStyle:{color:o.color||"#5470c6",width:2.5,type:"solid"},itemStyle:{color:o.color||"#5470c6"}}});return{tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#1c3d90",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},legend:{show:!1,selected:n},grid:{top:15,right:40,bottom:60,left:60},xAxis:{type:"category",data:e,axisLine:{lineStyle:{color:l.gridColor}},axisLabel:{color:l.textColor,fontSize:11,rotate:15,interval:"auto",formatter:o=>{var u;if(o&&o.length>6){const s=o.split(" ");return(((u=s[0])==null?void 0:u.split("/").slice(1).join("/"))||"")+(s[1]?" "+s[1]:"")}return o}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",name:"监测数值",scale:!0,axisLine:{show:!1},axisLabel:{color:l.textColor,fontSize:11},splitLine:{lineStyle:{color:l.gridColor,type:"dashed"}}},dataZoom:[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"slider",height:18,bottom:8,borderColor:"transparent",backgroundColor:"#f0f0f0",fillerColor:"rgba(28, 61, 144, 0.2)",handleStyle:{color:"#1c3d90"},textStyle:{fontSize:10}}],series:m}},V=()=>{const l=C.getChartInstance();l&&l.setOption(R(B.value),!0)},ue=()=>{const l=C.getChartInstance();if(!l)return;const e=document.createElement("a");e.href=l.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`降雨指标时序曲线_${T.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},de=l=>{const{payload:e}=l;if(!e)return;if(e.type==="filter"){e.dateRange&&Array.isArray(e.dateRange)&&e.dateRange.length===2&&(j={start_time:e.dateRange[0],end_time:e.dateRange[1]});const r=e.objectIds&&e.objectIds.length>0?e.objectIds:e.objectId?[e.objectId]:[];r.length>0&&(v.value=r,F(r)),(a.mode==="edit"||r.length===0)&&(Y(),V());return}const n=e.objectId||e.object_id;n&&(v.value=[n],F([n]))},F=l=>q(null,null,function*(){var s;if(!l.length||a.mode!=="preview")return;const e=++S;i.clear(),g.value.clear(),N.clear();const n=(s=C.session)==null?void 0:s.value;if(!n)return;const r=a.conf.id;n.componentRequests&&n.componentRequests.delete(r),typeof n.unsubscribeComponent=="function"&&n.unsubscribeComponent(r);const{data:c,common:f}=a.conf,m=l.length>1;j&&(f.historyTimeRange=j),a.conf.options||(a.conf.options={});const o=a.conf.options.points,u=Object.prototype.hasOwnProperty.call(a.conf.options,"points");(!o||Number(o)<24)&&(a.conf.options.points=24);for(const d of l){if(S!==e)return;Array.isArray(c)&&c.forEach(E=>{E.object_id=d}),f.multiObject||(f.object_id=d);try{const E=yield Promise.resolve().then(()=>require("./history-CgrmMOpp.cjs")),M=yield new E.default().getHistoryData(a,"rainfallTimeCurve");if(S!==e)return;const G=(M==null?void 0:M.history)||(Array.isArray(M)?M:[]);G.length>0&&c.forEach((y,fe)=>{if(!y.fv)return;const K=G[fe];if(!Array.isArray(K))return;const me=[...K].sort((w,O)=>new Date(w.time||w.datetime||"").getTime()-new Date(O.time||O.datetime||"").getTime()),pe=m?`${d}:${y.name||y.fv}`:y.name||y.fv,H=[],W=[];me.forEach(w=>{const O=w.time||w.datetime,Z=w[y.fv];if(O&&Z!=null){const I=parseFloat(Z);isNaN(I)||(H.push(O.split(".")[0]),W.push(I))}if(y.device&&w[y.device]){const I=String(w[y.device]);m||N.set(y.name||y.fv,I),g.value.set(d,I)}}),H.length>0&&i.set(pe,{times:H,values:W})})}catch(E){console.warn("[降雨时序曲线] 历史数据获取失败:",E)}if(S!==e)return;const k=C.getSource();C.subscribeBySource(k,d)}u?a.conf.options.points=o:delete a.conf.options.points,S===e&&(V(),n.registerComponent({id:r,request:null,onUpdate:(d,k)=>{S===e&&d==="realtime"&&C.setSocketData(k)}}))});return t.onMounted(()=>{a.mode==="edit"&&Y(),setTimeout(()=>{var l;return(l=C.getChartInstance())==null?void 0:l.resize()},200)}),t.watch(()=>a.conf,()=>{a.mode==="edit"&&(Y(),V())},{deep:!0}),(l,e)=>{const n=D.ElIcon,r=D.ElButton,c=D.ElCheckbox,f=D.ElCheckboxGroup,m=D.ElPopover;return t.openBlock(),t.createElementBlock("div",{class:"rainfall-time-curve",style:t.normalizeStyle(ce.value)},[t.createElementVNode("div",Se,[t.createElementVNode("div",Ee,[e[4]||(e[4]=t.createElementVNode("div",{class:"header-left"},[t.createElementVNode("span",{class:"indicator-dot"}),t.createElementVNode("span",{class:"panel-title"},"📊 指标时序演变曲线")],-1)),t.createElementVNode("div",we,[t.createVNode(m,{placement:"bottom-start",width:220,trigger:"click"},{reference:t.withCtx(()=>[t.createVNode(r,{size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(ae.value)+" ",1),t.createVNode(n,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(t.unref(te.ArrowDown))]),_:1})]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",Ne,[t.createElementVNode("div",je,[t.createVNode(c,{modelValue:U.value,"onUpdate:modelValue":e[0]||(e[0]=o=>U.value=o),indeterminate:le.value,onChange:se},{default:t.withCtx(()=>[...e[2]||(e[2]=[t.createTextVNode(" 全部指标 ",-1)])]),_:1},8,["modelValue","indeterminate"])]),t.createVNode(f,{modelValue:h.value,"onUpdate:modelValue":e[1]||(e[1]=o=>h.value=o),onChange:V},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,o=>(t.openBlock(),t.createBlock(c,{key:o.fv,label:o.fv,class:"indicator-checkbox-item"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t.createVNode(r,{size:"small",onClick:ue},{default:t.withCtx(()=>[t.createVNode(n,null,{default:t.withCtx(()=>[t.createVNode(t.unref(te.Download))]),_:1}),e[3]||(e[3]=t.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),t.createElementVNode("div",Ve,[t.createElementVNode("div",ke,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(re.value,o=>(t.openBlock(),t.createElementBlock("span",{key:o.name,class:t.normalizeClass(["legend-item",{disabled:!o.visible}]),onClick:u=>ie(o)},[t.createElementVNode("span",{class:"legend-line",style:t.normalizeStyle({borderTopColor:o.visible?o.color:"#ccc",borderTopStyle:"solid"})},null,4),t.createElementVNode("span",Ae,t.toDisplayString(o.name),1)],10,Ie))),128))])]),t.createElementVNode("div",{id:t.unref(ne),class:"chart-container"},null,8,Me)]),t.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),Re=T._export_sfc(Ye,[["__scopeId","data-v-ead6ecc7"]]);exports.default=Re;
|
|
@@ -34,9 +34,9 @@ import "element-plus/es/components/checkbox/style/css";
|
|
|
34
34
|
import "element-plus/es/components/button/style/css";
|
|
35
35
|
import "element-plus/es/components/icon/style/css";
|
|
36
36
|
import { defineComponent as Ve, ref as H, computed as S, watch as ce, onMounted as Ye, openBlock as V, createElementBlock as z, normalizeStyle as ue, createElementVNode as h, createVNode as j, withCtx as w, createTextVNode as J, Fragment as fe, renderList as de, createBlock as Pe, toDisplayString as Q, unref as X, normalizeClass as Re, renderSlot as He } from "vue";
|
|
37
|
-
import { d as F, _ as ze } from "./index-
|
|
37
|
+
import { d as F, _ as ze } from "./index-BK7gdNxS.js";
|
|
38
38
|
import "element-plus";
|
|
39
|
-
import { E as Fe } from "./EChartComponentBase-
|
|
39
|
+
import { E as Fe } from "./EChartComponentBase-nG6UXIUB.js";
|
|
40
40
|
import { ArrowDown as Be, Download as Ue } from "@element-plus/icons-vue";
|
|
41
41
|
import { A as qe, D as Ge } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
42
42
|
const Ke = { class: "chart-panel" }, We = { class: "panel-header" }, Ze = { class: "header-right" }, Je = { class: "indicator-selector-panel" }, Qe = { class: "indicator-select-all" }, Xe = { class: "legend-bar" }, et = { class: "legend-items" }, tt = ["onClick"], ot = { class: "legend-text" }, nt = ["id"], lt = {
|
|
@@ -350,7 +350,7 @@ const Ke = { class: "chart-panel" }, We = { class: "panel-header" }, Ze = { clas
|
|
|
350
350
|
A.object_id = u;
|
|
351
351
|
}), f.multiObject || (f.object_id = u);
|
|
352
352
|
try {
|
|
353
|
-
const A = yield import("./history-
|
|
353
|
+
const A = yield import("./history-DA3HuWif.js"), L = yield new A.default().getHistoryData(l, "rainfallTimeCurve");
|
|
354
354
|
if (k !== e) return;
|
|
355
355
|
const te = (L == null ? void 0 : L.history) || (Array.isArray(L) ? L : []);
|
|
356
356
|
te.length > 0 && r.forEach((y, xe) => {
|
|
@@ -11,8 +11,8 @@ var k = (u, a, s) => a in u ? U(u, a, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return u;
|
|
12
12
|
}, R = (u, a) => B(u, F(a));
|
|
13
13
|
import { defineComponent as G, ref as Z, inject as J, computed as K, watchEffect as Q, openBlock as W, createElementBlock as X, normalizeStyle as V, unref as S, createElementVNode as b, toDisplayString as Y, renderSlot as ee, nextTick as te } from "vue";
|
|
14
|
-
import { B as oe, u as ie, p as ae } from "./BaseComponent-
|
|
15
|
-
import { L as re, N as C, O as v, s as se, _ as ne } from "./index-
|
|
14
|
+
import { B as oe, u as ie, p as ae } from "./BaseComponent-BppXM0zf.js";
|
|
15
|
+
import { L as re, N as C, O as v, s as se, _ as ne } from "./index-BK7gdNxS.js";
|
|
16
16
|
import { g as le } from "./titleStyle-BT5GlpAb.js";
|
|
17
17
|
import { A as ue, D as de } from "./ele-dzc-icon-D6eVpaHp.js";
|
|
18
18
|
import { i as ce } from "./installMarkArea-DaDitBR7.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var F=Object.defineProperty,H=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var z=(c,r,l)=>r in c?F(c,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):c[r]=l,L=(c,r)=>{for(var l in r||(r={}))j.call(r,l)&&z(c,l,r[l]);if(q)for(var l of q(r))G.call(r,l)&&z(c,l,r[l]);return c},V=(c,r)=>H(c,B(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),b=require("./BaseComponent-
|
|
1
|
+
"use strict";var F=Object.defineProperty,H=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var z=(c,r,l)=>r in c?F(c,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):c[r]=l,L=(c,r)=>{for(var l in r||(r={}))j.call(r,l)&&z(c,l,r[l]);if(q)for(var l of q(r))G.call(r,l)&&z(c,l,r[l]);return c},V=(c,r)=>H(c,B(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),b=require("./BaseComponent-oKNx9Ues.cjs"),f=require("./index-ucOU7Nfo.cjs"),Z=require("./titleStyle-NSnz6cUg.cjs"),k=require("./ele-dzc-icon-h5wOUHF0.cjs"),J=require("./installMarkArea-CjyaJPLE.cjs"),v=require("./installCanvasRenderer-CyhM1Qpl.cjs"),K=require("./install-C8buXQPI.cjs"),Q=require("./install-CIT6k8Ga.cjs"),W=require("./install-z6wShIZI.cjs"),X=require("./install-CYwVETsi.cjs"),Y=require("./universalTransition-CIN_u2Cu.cjs"),N=require("./echarts-BB8O2KSA.cjs"),ee={DEFAULT_ICON:k.DEFAULT_ICON,ACTIVE_ICON:k.ACTIVE_ICON,NAME_CN:"区间曲线",NAME_EN:"Range Line",ORDER:6,PLATFORM:["pc","screen","mobile"]},te={titleColor:"#111",bgColor:"#fff",textColor:"#111",lineColor:"#314656",top:30,bottom:40,left:20,right:20,radiusSize:8,textSize:12,points:30,isHideTitle:!1,isSmooth:!1},M=[{name:"参数一",项目编号:"",object_id:""}],ne=["name","项目编号","object_id"],ie=["index","deviation","stability","balance","increment","risk","eigen"],oe={useAlias:!1,null:{type:"0",value:""},source:"index"},re=1,ae={DEFAULT:ee,OPTIONS:te,DATA:M,PARAMS:ne,SOURCE:ie,ITEMS:re,COMMON:oe},le=n.defineComponent(V(L({},ae),{__name:"rangeLin",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(c){v.use([v.install,K.install,Q.install,J.install,W.install,X.install,v.install$1,Y.installUniversalTransition]);const r=n.ref(n.inject("session",null)),l="rangelin_"+Math.random().toString(16).substring(4,12),R=["rgba(255, 173, 177, 0.2)","rgba(208, 201, 116, 0.2)","rgba(28, 118, 140, 1)","rgba(95, 28, 140, 1)","rgba(41, 196, 21, 1)"],A=["rgb(255, 173, 177)","rgb(208, 201, 116)","rgb(28, 118, 140)","rgb(95, 28, 140)","rgb(41, 196, 21)"];let s=null,y=null;const o=c;let a={area:[],pieces:[],data:[],times:[]};class I extends b.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),lineColor:this.getOptionValue("lineColor","#314656"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),points:this.getOptionValue("points",30),isHideTitle:this.getOptionValue("isHideTitle",!1),isSmooth:this.getOptionValue("isSmooth",!1)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:M,o.mode==="edit"&&$(),n.nextTick(()=>{let e=document.querySelector("#"+l);e&&(s||(s=N.init(e),y=f.elementResizeDetectorMaker({strategy:"scroll"}),y.listenTo(e,()=>s==null?void 0:s.resize())),s.setOption(D(),!0))})}onPreview(){T.preview()}cleanup(){y&&y.uninstall(document.querySelector("#"+l)),s&&s.clear(),s&&N.dispose(s),s=null,T.unregister()}}const _=new I(o,"rangeLin");_.setupLifecycle();const p=_.getStyle(),w=n.computed(()=>Z.generateTitleStyle(o.conf.options)),D=()=>{var S,m,C,i;const{data:t,options:e}=o.conf;let d=t[0]||{};var g={tooltip:{trigger:"axis"},xAxis:{type:"category",boundaryGap:!1,data:a.times,axisLabel:{formatter:function(u,h){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(u))return u;let x=u.split(" ");return x[0]+`
|
|
2
2
|
`+x[1]},color:p.value.textColor,fontSize:p.value.textSize}},yAxis:{type:"value",axisPointer:{snap:!0}},grid:{top:((S=e==null?void 0:e.top)==null?void 0:S.value)||30,bottom:((m=e==null?void 0:e.bottom)==null?void 0:m.value)||40,left:((C=e==null?void 0:e.left)==null?void 0:C.value)||40,right:((i=e==null?void 0:e.right)==null?void 0:i.value)||20,containLabel:!0},visualMap:{show:!1,dimension:0,pieces:a.pieces},dataZoom:[{type:"slider",start:80,end:100,height:15,bottom:15,borderColor:"#e5e5e5",textStyle:{color:p.value.textColor},labelFormatter:function(u,h){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(h))return h;let x=h.split(" ");return x[0]+`
|
|
3
3
|
`+x[1]}},{type:"inside"}],series:[{name:(d==null?void 0:d.name)||"",type:"line",smooth:p.value.isSmooth,data:a.data,markArea:{data:a.area}}]};return g},$=()=>{var d;const t=f.hasDataSource(o.conf);let e=(d=p.value.points)!=null?d:30;a.area=[[{name:"区间一",xAxis:f.getxAxisDataTime(e,o.mode,t)[e-5]},{xAxis:f.getxAxisDataTime(e,o.mode,t)[e-10]}]],a.data=f.getRandomArr({num:e,max:200,min:0,mode:o.mode,hasDataSource:t}),a.times=f.getxAxisDataTime(e,o.mode,t),a.pieces=[{lte:e-10,color:p.value.lineColor},{gt:e-10,lte:e-5,color:A[0]},{gt:e-5,color:p.value.lineColor}]},P=(t,e)=>{let d=Array.from({length:t},(i,u)=>u),g=[];for(let i in e)g.push(...e[i]);let S=new Array(t).fill(!1);for(let[i,u]of g)for(let h=i;h<u;h++)S[h]=!0;return d.filter(i=>!S[i]).reduce((i,u)=>(i.length===0||u-i[i.length-1][1]>1?i.push([u,u]):i[i.length-1][1]=u,i),[])},U=t=>{if(!f.hasDataSource(o.conf))return;a.times=t.times,a.data=t.data,a.area=[],a.pieces=[];let e=0;for(let g in t.range)t.range[g]&&t.range[g].forEach(m=>{a.pieces.push({gte:m[0],lte:m[1],color:A[e]}),a.area.push([{name:g,xAxis:m[0],itemStyle:{color:R[e]}},{xAxis:t.times[m[1]]}])}),e++;let d=P(t.data.length,t.range);d.length&&d.forEach(g=>{a.pieces.push({gte:g[0]-1,lte:g[1]+1,color:p.value.lineColor})}),s==null||s.setOption(D(),!0)},O=t=>{f.hasDataSource(o.conf)},T={preview:()=>b.preview(o,r.value,U,O,"rangeLin"),unregister:()=>b.unregister(o,r.value)};n.watchEffect(()=>{o.conf.socketData&&O(o.conf.socketData)});const E=o.conf;return(t,e)=>(n.openBlock(),n.createElementBlock("div",{class:"mix-component",style:n.normalizeStyle({background:n.unref(p).bgColor,borderRadius:`${n.unref(p).radiusSize}px`})},[n.createElementVNode("div",{class:"mix-title",style:n.normalizeStyle(w.value)},n.toDisplayString(n.unref(E).caption||n.unref(E).name),5),n.createElementVNode("div",{class:"mix-body"},[n.createElementVNode("div",{class:"w-full h-full",id:l})]),n.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),se=f._export_sfc(le,[["__scopeId","data-v-457c07dd"]]);exports.default=se;
|