mixdashboards 1.0.49 → 1.0.50
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/{EChartComponentBase-CafVdj74.js → EChartComponentBase-BjiCJlIa.js} +1 -1
- package/dist/{EChartComponentBase-Dz5E-lyI.cjs → EChartComponentBase-CUbabNTX.cjs} +1 -1
- package/dist/{UniverSheet-CH1YywcZ.js → UniverSheet-B2ysdSZW.js} +2 -2
- package/dist/{UniverSheet-BqLvs6V6.cjs → UniverSheet-C97ENJKg.cjs} +1 -1
- package/dist/{accelerationChart-V4UmpPse.js → accelerationChart-BtHLKXou.js} +3 -3
- package/dist/{accelerationChart-BWRlw5-L.cjs → accelerationChart-CqZGLCTa.cjs} +1 -1
- package/dist/{actionItem-Dsg6qYSp.cjs → actionItem-Ba4CZB9l.cjs} +1 -1
- package/dist/{actionItem-CBwfWvTO.js → actionItem-D6ScXj3z.js} +3 -3
- package/dist/{alarmLevelChart-CnKEZZZv.js → alarmLevelChart-CAA_fUgy.js} +2 -2
- package/dist/{alarmLevelChart-DN8hyTdg.cjs → alarmLevelChart-DyThrs-J.cjs} +1 -1
- package/dist/{alertTable-CdkiAZIu.cjs → alertTable-DICnr2gs.cjs} +1 -1
- package/dist/{alertTable-BluC1smp.js → alertTable-_z8F5EWM.js} +2 -2
- package/dist/{annualRainfallChart-COeieHTg.js → annualRainfallChart-B0TXYlAe.js} +2 -2
- package/dist/{annualRainfallChart-BeenDSmW.cjs → annualRainfallChart-CbND_8XT.cjs} +1 -1
- package/dist/api-BR57NNEB.cjs +1 -0
- package/dist/api-CcAArQi7.js +164 -0
- package/dist/{aqi-BXtF-SsB.cjs → aqi-BOEGQCuM.cjs} +1 -1
- package/dist/{aqi-naf_yg1B.js → aqi-RDZu5nYt.js} +3 -3
- package/dist/{aqiIndass-CiHVV6y-.js → aqiIndass-BPAt5nQk.js} +2 -2
- package/dist/{aqiIndass-YO0txxEM.cjs → aqiIndass-CgURee9t.cjs} +1 -1
- package/dist/{arrayCard-CPtHFB--.js → arrayCard-BLUoVrsd.js} +2 -2
- package/dist/{arrayCard-USJyzspe.cjs → arrayCard-Wnr9xzrq.cjs} +1 -1
- package/dist/{audio-7HMku35Z.js → audio-DC_D2YUu.js} +4 -4
- package/dist/{audio-Uz_XIJyA.cjs → audio-DuS_h70S.cjs} +1 -1
- package/dist/{bar-Bq_RDVaa.js → bar-BeO49AzX.js} +4 -4
- package/dist/{bar-CSideFNS.cjs → bar-bZbB0yMx.cjs} +1 -1
- package/dist/{bmp-DZ9_aKMT.cjs → bmp-6zTErjQZ.cjs} +1 -1
- package/dist/{bmp-BF-OdMoW.js → bmp-CLKbvXOI.js} +3 -3
- package/dist/{box-DfqNW1B6.js → box-BxXWmt0X.js} +2 -2
- package/dist/{box-C1n5r8hT.cjs → box-eQDyV3hk.cjs} +1 -1
- package/dist/{chartConfigPanel-8wROQoL0.js → chartConfigPanel-BvnnoSQ2.js} +1 -1
- package/dist/{chartConfigPanel-C62JqDqE.cjs → chartConfigPanel-CE3d4OpP.cjs} +1 -1
- package/dist/{circleBar-C54UQvaf.js → circleBar-Cl5i_iPg.js} +3 -3
- package/dist/{circleBar-UrV2_yVK.cjs → circleBar-I4Mh4_kk.cjs} +1 -1
- package/dist/{clock-CbebZdlU.js → clock-4HEPNmup.js} +2 -2
- package/dist/{clock-DgkEPumE.cjs → clock-7KHM_O_j.cjs} +1 -1
- package/dist/{clt-B32D8bK9.js → clt-Cicmq_zn.js} +3 -3
- package/dist/{clt-DWBynZO1.cjs → clt-z0rh02ts.cjs} +1 -1
- package/dist/{cmc-BVrFcoih.cjs → cmc-BFOFyDhF.cjs} +1 -1
- package/dist/{cmc-CC-6njzU.js → cmc-DoKSe6kA.js} +3 -3
- package/dist/{cmp-BCvtkNwO.js → cmp-88WnAeeC.js} +3 -3
- package/dist/{cmp-D6aHhSC6.cjs → cmp-fxk3vvRJ.cjs} +1 -1
- package/dist/{composite-CWYjAAsg.js → composite-CJi4KbAS.js} +3 -3
- package/dist/{composite-kODICk08.cjs → composite-CpD_yPEG.cjs} +1 -1
- package/dist/{controlList-BXvCyR2L.cjs → controlList-DT21uV7S.cjs} +1 -1
- package/dist/{controlList-zYX8DbNE.js → controlList-Ds98eQhx.js} +3 -3
- package/dist/{controlRecordList-Dly5aorA.cjs → controlRecordList-BEXUdUlk.cjs} +1 -1
- package/dist/{controlRecordList-Bc2M0iyo.js → controlRecordList-YlkbvMFI.js} +3 -3
- package/dist/{crd--3Oj3Y1t.cjs → crd-C852SplB.cjs} +1 -1
- package/dist/{crd-CoB00gS6.js → crd-Cr3HLog9.js} +2 -2
- package/dist/{ctrBtn-CUADz_pu.js → ctrBtn-N0CQxGOu.js} +4 -4
- package/dist/{ctrBtn-BusKAhHv.cjs → ctrBtn-OUtZpJrN.cjs} +1 -1
- package/dist/{ctrSet-C0R2aIby.cjs → ctrSet-BRFaMtA6.cjs} +1 -1
- package/dist/{ctrSet-BKVsejze.js → ctrSet-Br9GbDQP.js} +4 -4
- package/dist/{ctrSwitch-BqRBh40z.js → ctrSwitch-CZi4Q2qY.js} +4 -4
- package/dist/{ctrSwitch-uIqQRKaq.cjs → ctrSwitch-Cbd5L15F.cjs} +1 -1
- package/dist/{dataManagement-BdP1iSeC.cjs → dataManagement-Bh9BM8p4.cjs} +1 -1
- package/dist/{dataManagement-C6jHI7-1.js → dataManagement-BnQyWMyj.js} +2 -2
- package/dist/{dataReport-DNPD3MZl.cjs → dataReport-Dsgpg9HI.cjs} +1 -1
- package/dist/{dataReport-C2XWn_Xv.js → dataReport-v01I_59R.js} +2 -2
- package/dist/{dataTable-5bUrqBWz.js → dataTable-BM4F69di.js} +1 -1
- package/dist/{dataTable-BvlEs83r.cjs → dataTable-DOVR0yGL.cjs} +1 -1
- package/dist/{datetime-CE5wsyi7.cjs → datetime-COHpK691.cjs} +1 -1
- package/dist/{datetime-Dp8mPzSO.js → datetime-DmYFqkn-.js} +2 -2
- package/dist/{deepClusterSlipSurface-BinAmtCz.cjs → deepClusterSlipSurface-02MBgHpP.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-D_7LRpHz.js → deepClusterSlipSurface-CdInWoSj.js} +3 -3
- package/dist/{deepDataMatrix-t6axw0An.cjs → deepDataMatrix-C6uYc1Ii.cjs} +1 -1
- package/dist/{deepDataMatrix-BXTJm6UD.js → deepDataMatrix-Dx6S0Ud4.js} +2 -2
- package/dist/{deepDisplacement3D-BRutQ6Ut.cjs → deepDisplacement3D-Cd3SYFTm.cjs} +1 -1
- package/dist/{deepDisplacement3D-Cy-FIGAq.js → deepDisplacement3D-e3cZoBIa.js} +3 -3
- package/dist/{deepDisplacementChart-BWVcNgaX.js → deepDisplacementChart-BRg-5xLU.js} +4 -4
- package/dist/{deepDisplacementChart-eD2GOxML.cjs → deepDisplacementChart-BdnmYVpg.cjs} +1 -1
- package/dist/{deepDisplacementChart---DgDx8L.js → deepDisplacementChart-Df_wRTax.js} +2 -2
- package/dist/{deepDisplacementChart-DboPezyJ.cjs → deepDisplacementChart-DyZzw3I1.cjs} +1 -1
- package/dist/{deepDisplacementView-CHFgG2wy.js → deepDisplacementView-7PEeLnmE.js} +1 -1
- package/dist/{deepDisplacementView-BNVTS7Ar.cjs → deepDisplacementView-DDmT4y42.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-CpJI7axl.cjs → deepNodeTemperatureChart-B7HLWtyp.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-N1z-KMmu.js → deepNodeTemperatureChart-DpZK2y_K.js} +3 -3
- package/dist/{deepTangentAngleChart-ClnxPvUM.js → deepTangentAngleChart-D2_fQpm1.js} +3 -3
- package/dist/{deepTangentAngleChart-DxB4EaWm.cjs → deepTangentAngleChart-jTYFJpUS.cjs} +1 -1
- package/dist/{deepTemperatureField-DT7iyND9.js → deepTemperatureField-Bj0tQot1.js} +3 -3
- package/dist/{deepTemperatureField-DWO8Dcjh.cjs → deepTemperatureField-C9oKBaWc.cjs} +1 -1
- package/dist/{deepTrendChart-C7_BfEiR.js → deepTrendChart-Cox4B6GG.js} +3 -3
- package/dist/{deepTrendChart-D9uQKgck.cjs → deepTrendChart-MgsjLjQP.cjs} +1 -1
- package/dist/{deviceOnlineStatus-BA7D5fbt.cjs → deviceOnlineStatus-Ckr78uqa.cjs} +1 -1
- package/dist/{deviceOnlineStatus-DlrB6EXN.js → deviceOnlineStatus-KoRHRByt.js} +2 -2
- package/dist/{deviceStatus-mDl8zF_Z.cjs → deviceStatus-C6zUE1Ch.cjs} +1 -1
- package/dist/{deviceStatus-aPf8MflS.js → deviceStatus-CLyOrzWr.js} +2 -2
- package/dist/{displacementDataTable-Da1xkiXG.js → displacementDataTable-B__8-EMW.js} +2 -2
- package/dist/{displacementDataTable-Co4In07D.cjs → displacementDataTable-CnMmwp_T.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-B85ad8vc.js → displacementTrajectoryChart-BD6_q2AN.js} +3 -3
- package/dist/{displacementTrajectoryChart-FPrvrbUa.cjs → displacementTrajectoryChart-EjHI5pSK.cjs} +1 -1
- package/dist/{displacementTrendChart-BRxIsjeK.js → displacementTrendChart-C2_U9d0k.js} +2 -2
- package/dist/{displacementTrendChart-DcBu8-_Z.cjs → displacementTrendChart-C9-Wcthw.cjs} +1 -1
- package/dist/{dxf-FrPSVW4C.js → dxf-BTdzQ1WR.js} +4 -4
- package/dist/{dxf-EDkdonhJ.cjs → dxf-BnW_56W9.cjs} +1 -1
- package/dist/{dzc-BBijV6-m.cjs → dzc-DIgGeG0y.cjs} +1 -1
- package/dist/{dzc-BOaL7miE.js → dzc-DWHQjxWE.js} +3 -3
- package/dist/{element-resize-detector-DYs3pJPp.cjs → element-resize-detector-Cl7PwC4K.cjs} +1 -1
- package/dist/{element-resize-detector-BCRzpPES.js → element-resize-detector-CoRhuer9.js} +4 -4
- package/dist/{evn-T-0VLXht.js → evn-CZWFRKvU.js} +2 -2
- package/dist/{evn-CAWNNpK2.cjs → evn-D964RzSY.cjs} +1 -1
- package/dist/{evolutionChart-B8vzbfrk.cjs → evolutionChart-CAZZ33t-.cjs} +1 -1
- package/dist/{evolutionChart-DYf3V-rl.js → evolutionChart-Co5KN4kk.js} +3 -3
- package/dist/{fileViewer-D6rC0YFY.cjs → fileViewer-8Tb-6ZXx.cjs} +1 -1
- package/dist/{fileViewer-BRVwWDA3.js → fileViewer-CIgKOZJY.js} +4 -4
- package/dist/{filterBar-hfIbyNh_.js → filterBar-DN3gl-1y.js} +2 -2
- package/dist/{filterBar-B3Ka4jw8.cjs → filterBar-DzSWAegi.cjs} +1 -1
- package/dist/{fireCombustionCurve-D1wKpm4i.js → fireCombustionCurve-2gyNx_37.js} +2 -2
- package/dist/{fireCombustionCurve-DKQJzKh2.cjs → fireCombustionCurve-BoPafSTF.cjs} +1 -1
- package/dist/{fireFilterBar-D8TTM4KM.cjs → fireFilterBar-BRlStM-R.cjs} +1 -1
- package/dist/{fireFilterBar-Bl0iCn48.js → fireFilterBar-DmyGJmXo.js} +2 -2
- package/dist/{gag-dKpxHBTV.cjs → gag-Bv61Z9xd.cjs} +1 -1
- package/dist/{gag-Vt7-rYYR.js → gag-D8OE6QuC.js} +2 -2
- package/dist/{gasStationList-g4AUNuxi.cjs → gasStationList-Db7hnhSp.cjs} +1 -1
- package/dist/{gasStationList-BDRHTLvR.js → gasStationList-pE2Ix1jL.js} +3 -3
- package/dist/{glbModel-BpnMbHQe.js → glbModel-BOccEfV7.js} +2 -2
- package/dist/{glbModel-BCgQzSz1.cjs → glbModel-CveO7gRY.cjs} +1 -1
- package/dist/{gnssFilterBar-BgS-JH3k.cjs → gnssFilterBar-DbvuQETH.cjs} +1 -1
- package/dist/{gnssFilterBar-CaGGhgEk.js → gnssFilterBar-o46kht8b.js} +2 -2
- package/dist/{gnssHistoryTable-CGY1ROb6.js → gnssHistoryTable-BR8BagaW.js} +3 -3
- package/dist/{gnssHistoryTable-Bkt4Zvxa.cjs → gnssHistoryTable-D4md3vW9.cjs} +1 -1
- package/dist/{gnssMapView-DuNotJym.cjs → gnssMapView-BONePEA0.cjs} +1 -1
- package/dist/{gnssMapView-C4-pk-1_.js → gnssMapView-CBuI36is.js} +2 -2
- package/dist/{gnssTimeSeriesChart-MZbERhu9.js → gnssTimeSeriesChart-BnkwIXD3.js} +4 -4
- package/dist/{gnssTimeSeriesChart-y7L6j_y5.cjs → gnssTimeSeriesChart-k759R4Jz.cjs} +1 -1
- package/dist/{gnssXYTrajectory-DZFjqFPv.cjs → gnssXYTrajectory-D8lgUVnP.cjs} +1 -1
- package/dist/{gnssXYTrajectory-DL8WWe1C.js → gnssXYTrajectory-XRvGqirG.js} +3 -3
- package/dist/{grd-BgaxrUfI.js → grd-GmODod_I.js} +3 -3
- package/dist/{grd-DNJ1rlwR.cjs → grd-b9meYGso.cjs} +1 -1
- package/dist/{grdIndass-Bxf2L3J5.js → grdIndass-CMhE_Am5.js} +3 -3
- package/dist/{grdIndass-DlwlkKKH.cjs → grdIndass-DOjsX9Xe.cjs} +1 -1
- package/dist/{grg-78Sh9Nr7.js → grg-Bof7f3MI.js} +2 -2
- package/dist/{grg-CmxBlYJ6.cjs → grg-BsVjC-sq.cjs} +1 -1
- package/dist/{gridview-FFx-3wNz.cjs → gridview-CQreGJwJ.cjs} +1 -1
- package/dist/{gridview-BWe_qLy-.js → gridview-CZUzJi9i.js} +2 -2
- package/dist/{groupCard-B2ORsgUN.js → groupCard-B7bg93K0.js} +2 -2
- package/dist/{groupCard-BOqERSM4.cjs → groupCard-D8CtEB-E.cjs} +1 -1
- package/dist/{headerBar-DPlPX8uD.js → headerBar-CvH7Zc7X.js} +3 -3
- package/dist/{headerBar-o2J2Dqkd.cjs → headerBar-eKaZGrw3.cjs} +1 -1
- package/dist/{history-DH68UK_U.js → history-D-BYETka.js} +52 -48
- package/dist/history-dKfXo4HD.cjs +1 -0
- package/dist/{index-ZwyqrmaH.cjs → index-CtAaj9XN.cjs} +11 -2
- package/dist/{index-LgTfdmT4.js → index-yidMosRJ.js} +11 -2
- package/dist/{insarDeformChart-9Qss0VGu.js → insarDeformChart-DkoK7BBR.js} +2 -2
- package/dist/{insarDeformChart-BTwU5ktS.cjs → insarDeformChart-z8yO9-05.cjs} +1 -1
- package/dist/{insarImageViewer-C7aTZp-m.js → insarImageViewer-D3dKgLZO.js} +2 -2
- package/dist/{insarImageViewer-B-ExpEa8.cjs → insarImageViewer-DA8knTHO.cjs} +1 -1
- package/dist/{kds-8n-a2GhL.cjs → kds-CEwnUrkv.cjs} +1 -1
- package/dist/{kds-CS7G3BaQ.js → kds-CHs9Tu_R.js} +2 -2
- package/dist/{layerTabs-pJJzTbu9.js → layerTabs-DatJpr1M.js} +2 -2
- package/dist/{layerTabs-1lOAiEhu.cjs → layerTabs-Dd9Jh_Fv.cjs} +1 -1
- package/dist/{lin-IHxWU55I.cjs → lin-B7j-nXP9.cjs} +1 -1
- package/dist/{lin-Bk49Db_G.js → lin-BE41AMlf.js} +3 -3
- package/dist/{linIndass-Drxnj7KQ.js → linIndass-By1yFIUk.js} +2 -2
- package/dist/{linIndass-Cpf8pnLn.cjs → linIndass-C1p1Cmnn.cjs} +1 -1
- package/dist/{lst-CPd37vza.cjs → lst-C9GGJBSY.cjs} +1 -1
- package/dist/{lst-CL6bmgJ2.js → lst-CZ-zfn6U.js} +2 -2
- package/dist/{manualEntry-CcCE4O6Q.cjs → manualEntry-BGHJBf0t.cjs} +1 -1
- package/dist/{manualEntry-D_doLqqH.js → manualEntry-D9hLFJDz.js} +2 -2
- package/dist/{mapBackground-DEBggmVp.cjs → mapBackground-BtWWW32y.cjs} +1 -1
- package/dist/{mapBackground-CvLXKuJx.js → mapBackground-xNQTZByG.js} +2 -2
- package/dist/{mappingList-BZODl4t5.js → mappingList-CRrWBRN6.js} +3 -3
- package/dist/{mappingList-qKR-0uhY.cjs → mappingList-oTl8MueE.cjs} +1 -1
- package/dist/{markdownViewer-CtN6ailN.js → markdownViewer-CL61hROd.js} +4 -4
- package/dist/{markdownViewer-DZ8gvoHk.cjs → markdownViewer-CX24h3nv.cjs} +1 -1
- package/dist/{mix-control-modal-BlWtiePl.js → mix-control-modal-D6EEQCGG.js} +3 -3
- package/dist/{mix-control-modal-zbr85DkZ.cjs → mix-control-modal-dT4E6Haz.cjs} +1 -1
- package/dist/{mixDataPermission-C-Cu3_y0.js → mixDataPermission-B9cjyL0A.js} +1 -1
- package/dist/{mixDataPermission-Gcl_4czp.cjs → mixDataPermission-DCwcPNX3.cjs} +1 -1
- package/dist/{mixGrid-DJQ2jXcg.js → mixGrid-GUG7sL3_.js} +3 -3
- package/dist/{mixGrid-Dh9y_kW0.cjs → mixGrid-uKQuF0o0.cjs} +1 -1
- package/dist/{mixMap-BRnDOkNF.cjs → mixMap-BdG5zgn9.cjs} +1 -1
- package/dist/{mixMap-2REwmqmi.js → mixMap-m7d9IzZE.js} +3 -3
- package/dist/{mixModel-C1CKMCLi.cjs → mixModel-C8zjwy8B.cjs} +1 -1
- package/dist/{mixModel-CHtF97xc.js → mixModel-CC6G9D0O.js} +3 -3
- package/dist/{mixPie-sD-AjwaC.cjs → mixPie-2gzUWb-u.cjs} +1 -1
- package/dist/{mixPie-DwDffWz5.js → mixPie-Bj81XmbV.js} +3 -3
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-Dbfd7eUC.js → mjpegCamera-Br5ey7tT.js} +2 -2
- package/dist/{mjpegCamera-RMS_dnv0.cjs → mjpegCamera-CILgaHwA.cjs} +1 -1
- package/dist/{monitorAlert-CjIQQ6fQ.cjs → monitorAlert-BmzetgZD.cjs} +1 -1
- package/dist/{monitorAlert-DagV3vuc.js → monitorAlert-CobYzZGr.js} +2 -2
- package/dist/{monitorData-CTkeA21g.js → monitorData-1r6SI7q1.js} +3 -3
- package/dist/{monitorData-DUansNO5.cjs → monitorData-DJbzjlS_.cjs} +1 -1
- package/dist/{monitorSpeedChart-CjfFqWon.cjs → monitorSpeedChart-DBaNR_i8.cjs} +1 -1
- package/dist/{monitorSpeedChart-BFnREZYZ.js → monitorSpeedChart-DkdUR1aJ.js} +1 -1
- package/dist/{mxa-B6ezKf-C.js → mxa-D-jbIMK7.js} +3 -3
- package/dist/{mxa-CN6zXgZA.cjs → mxa-QPAMK1uo.cjs} +1 -1
- package/dist/{myValue-C08vYRJC.js → myValue-BAiot_SS.js} +2 -2
- package/dist/{myValue-BG_jI_HT.cjs → myValue-Djvdf93P.cjs} +1 -1
- package/dist/{myValueList-BKVL_kPb.js → myValueList-BQAhr_60.js} +2 -2
- package/dist/{myValueList-Bwg3XCPF.cjs → myValueList-BVoHmkwi.cjs} +1 -1
- package/dist/{objectList-emtQyLbD.js → objectList-DC6ZXVnE.js} +4 -4
- package/dist/{objectList-FArM7oEM.cjs → objectList-ZBsMNei9.cjs} +1 -1
- package/dist/{photo-B9Veb_Am.cjs → photo-BfbD83cP.cjs} +1 -1
- package/dist/{photo-DXbQg_FJ.js → photo-DB7ScxzD.js} +4 -4
- package/dist/{pie-U9hOnFzz.cjs → pie-BWZlNdAH.cjs} +1 -1
- package/dist/{pie-DZzf2lL7.js → pie-CG9x9JkC.js} +3 -3
- package/dist/{pressBtn-BNr1R0gW.cjs → pressBtn-B9R9kSLo.cjs} +1 -1
- package/dist/{pressBtn-R5Wsj-Jw.js → pressBtn-Dx47q_TJ.js} +4 -4
- package/dist/{progressBar-sLfJICdr.js → progressBar-BiODeN_6.js} +2 -2
- package/dist/{progressBar-CUSoF6f0.cjs → progressBar-Cc0NRBqW.cjs} +1 -1
- package/dist/{progressCircle-BZgPxs_q.js → progressCircle-CUhyErYl.js} +2 -2
- package/dist/{progressCircle-B6P8B-t_.cjs → progressCircle-DafFwMdt.cjs} +1 -1
- package/dist/{qrcode-C96PznAO.js → qrcode-BcG6Yp9v.js} +2 -2
- package/dist/{qrcode-DMrNxgq5.cjs → qrcode-CpIFW2ZU.cjs} +1 -1
- package/dist/{raceBar-Dryx8Onl.js → raceBar-3TwLjyCx.js} +3 -3
- package/dist/{raceBar-BTExTEsZ.cjs → raceBar-DcyXXcCw.cjs} +1 -1
- package/dist/{rad-vw4O2ByZ.js → rad-B9uXwQSO.js} +2 -2
- package/dist/{rad-DpkIOKs_.cjs → rad-tTO9rh8e.cjs} +1 -1
- package/dist/{rainfallFilterBar-CH3abw6C.cjs → rainfallFilterBar-B0MHbvVF.cjs} +1 -1
- package/dist/{rainfallFilterBar-BjAWqKtM.js → rainfallFilterBar-B5me6wiw.js} +2 -2
- package/dist/{rainfallTimeCurve-oJUJ2mt7.cjs → rainfallTimeCurve-C0fnVsZL.cjs} +1 -1
- package/dist/{rainfallTimeCurve-BPDZGrlQ.js → rainfallTimeCurve-DhMUUl4b.js} +3 -3
- package/dist/{rangeLin-BFFy57TT.js → rangeLin-Bjba28V0.js} +2 -2
- package/dist/{rangeLin-CBqKAU0P.cjs → rangeLin-CcAP_o6E.cjs} +1 -1
- package/dist/{request-jIo7FwQD.js → request-CQBzobr7.js} +1 -1
- package/dist/{request-BcQP_dWt.cjs → request-DWe5EztR.cjs} +1 -1
- package/dist/{retainer1-CfcwA39J.cjs → retainer1-D0WcsB4O.cjs} +1 -1
- package/dist/{retainer1-goSPppQ-.js → retainer1-DnbR3o0S.js} +3 -3
- package/dist/{retainer2-DwQmFU10.cjs → retainer2-BsGq3sf6.cjs} +1 -1
- package/dist/{retainer2-BHdnsKrO.js → retainer2-HC4a_Rcx.js} +3 -3
- package/dist/{riskRegionTable-B8-f5xx-.js → riskRegionTable-DTArCYea.js} +2 -2
- package/dist/{riskRegionTable-CSJpPxPB.cjs → riskRegionTable-FoEiUsM-.cjs} +1 -1
- package/dist/{sankey-DXCBHb16.cjs → sankey-C5gmAMhu.cjs} +1 -1
- package/dist/{sankey-C0gaE3HM.js → sankey-D3TV79p7.js} +3 -3
- package/dist/{scd-Cwyft2g6.js → scd-Bl3rOGmw.js} +2 -2
- package/dist/{scd-CkEHu7nZ.cjs → scd-Db6KXaan.cjs} +1 -1
- package/dist/{sideMenu-DUdDDJ9K.cjs → sideMenu-BDM1P1cW.cjs} +1 -1
- package/dist/{sideMenu-BtVCCKw9.js → sideMenu-BJfA1uhH.js} +2 -2
- package/dist/{slopeStability-DwxDXTQG.js → slopeStability-DaP323la.js} +3 -3
- package/dist/{slopeStability-Byb6AKti.cjs → slopeStability-Z2V2od39.cjs} +1 -1
- package/dist/{speedCurve-BuNsy-ev.js → speedCurve-B_EYlvSe.js} +3 -3
- package/dist/{speedCurve-DArreweP.cjs → speedCurve-Dp3uVVyX.cjs} +1 -1
- package/dist/{staticLine-DfkpF6ZW.js → staticLine-CHiOuPX8.js} +3 -3
- package/dist/{staticLine-C50p0CZs.cjs → staticLine-Cnx32607.cjs} +1 -1
- package/dist/{store-D_TrU3nw.js → store-CHqnWEik.js} +2 -2
- package/dist/{store-ByTYoqyI.cjs → store-DehrZfaE.cjs} +1 -1
- package/dist/{swiper-L0Oo2dYD.cjs → swiper-BR2IFoJz.cjs} +1 -1
- package/dist/{swiper-CQiRByJd.js → swiper-C3dOtddc.js} +2 -2
- package/dist/{terminalConfigList-ChC43Bwq.cjs → terminalConfigList-DSu4f9n4.cjs} +1 -1
- package/dist/{terminalConfigList-BhmfFm4f.js → terminalConfigList-DVWWVeq4.js} +3 -3
- package/dist/{terminalList-C6tswBt1.js → terminalList-B8VgdttS.js} +3 -3
- package/dist/{terminalList-BQModRyk.cjs → terminalList-CKIaOeIR.cjs} +1 -1
- package/dist/{textbox-CgOhFsYo.js → textbox-Dj_XimAG.js} +3 -3
- package/dist/{textbox-CSuiDl8k.cjs → textbox-Dzmi2rz_.cjs} +1 -1
- package/dist/{timeQueryBar-QEg1Flg9.js → timeQueryBar-C2VHV9c7.js} +1 -1
- package/dist/{timeQueryBar-BtCXHgrg.cjs → timeQueryBar-crAWaYhQ.cjs} +1 -1
- package/dist/{timeSeries-DMINp9Fr.cjs → timeSeries-BRyc4h11.cjs} +1 -1
- package/dist/{timeSeries-B7NgbHfJ.js → timeSeries-CWuU-ogt.js} +4 -4
- package/dist/{timeSeriesCurve-wC9wHGI4.cjs → timeSeriesCurve-BMhQZA1X.cjs} +1 -1
- package/dist/{timeSeriesCurve-DEY5KQvu.js → timeSeriesCurve-Dk6FzaEp.js} +3 -3
- package/dist/{toggleBtn-DO953U-q.cjs → toggleBtn-B89o860W.cjs} +1 -1
- package/dist/{toggleBtn-Brtfu0-e.js → toggleBtn-ogVA3WOs.js} +3 -3
- package/dist/{trajectoryConfigPanel-BDdP3SdV.js → trajectoryConfigPanel-D01N49lh.js} +1 -1
- package/dist/{trajectoryConfigPanel-Bl_o9h2e.cjs → trajectoryConfigPanel-vGNgzSs6.cjs} +1 -1
- package/dist/{trajectoryScatter-DVm5ljvY.cjs → trajectoryScatter-CYFXE4dK.cjs} +1 -1
- package/dist/{trajectoryScatter-7-lJ5SMe.js → trajectoryScatter-DFhmjKpF.js} +3 -3
- package/dist/{universalConfigPanel-Cm4TfqAK.cjs → universalConfigPanel-DZHD2pZU.cjs} +1 -1
- package/dist/{universalConfigPanel-DTLFrGXs.js → universalConfigPanel-NB63CQv0.js} +1 -1
- package/dist/{universalTable-Bl9x3wEx.cjs → universalTable-BAlYZc6X.cjs} +1 -1
- package/dist/{universalTable-CCFr-GKz.js → universalTable-qpOc4526.js} +2 -2
- package/dist/{video-DObKrYkw.cjs → video-De2pwq7u.cjs} +1 -1
- package/dist/{video-gqqvz5Ge.js → video-rA9ArC4S.js} +4 -4
- package/dist/{videoMonitor-CGMHzNdh.js → videoMonitor-BSwBaLTE.js} +2 -2
- package/dist/{videoMonitor-B_Ur25fz.cjs → videoMonitor-CtoFDowr.cjs} +1 -1
- package/dist/{vlu-6DSf0haZ.js → vlu-B75MzAeW.js} +2 -2
- package/dist/{vlu-Dbj9euY_.cjs → vlu-BzBMTMWw.cjs} +1 -1
- package/dist/{weather-BsIBTn7G.cjs → weather-BNvwdR4t.cjs} +1 -1
- package/dist/{weather-CQBxQBld.js → weather-CJfwwOVu.js} +2 -2
- package/dist/{windLin-jVF-rhIx.cjs → windLin-SLR46lyF.cjs} +1 -1
- package/dist/{windLin-KIVk9hOD.js → windLin-yLs-b3_q.js} +2 -2
- package/package.json +1 -1
- package/dist/api-Cyx2Fha0.js +0 -125
- package/dist/api-nw_9niqv.cjs +0 -1
- package/dist/history-5W6pGCPq.cjs +0 -1
|
@@ -18,8 +18,8 @@ import "element-plus/es/components/select/style/css";
|
|
|
18
18
|
import "element-plus/es/components/option/style/css";
|
|
19
19
|
import { defineComponent as ye, computed as m, reactive as he, onMounted as ge, onUnmounted as Ce, openBlock as r, createElementBlock as c, normalizeStyle as v, createElementVNode as p, unref as f, createVNode as w, withCtx as k, Fragment as S, renderList as R, createBlock as x, createCommentVNode as b, normalizeClass as _e, toDisplayString as we, createTextVNode as ke, renderSlot as Se, nextTick as Re } from "vue";
|
|
20
20
|
import "html2canvas";
|
|
21
|
-
import { B as xe } from "./element-resize-detector-
|
|
22
|
-
import { e as h, _ as De } from "./index-
|
|
21
|
+
import { B as xe } from "./element-resize-detector-CoRhuer9.js";
|
|
22
|
+
import { e as h, _ as De } from "./index-yidMosRJ.js";
|
|
23
23
|
import { A as Ae, D as Ye } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
24
24
|
const Fe = { class: "filter-bar" }, Be = {
|
|
25
25
|
key: 0,
|
|
@@ -33,9 +33,9 @@ import "element-plus/es/components/select/style/css";
|
|
|
33
33
|
import "element-plus/es/components/option/style/css";
|
|
34
34
|
import { defineComponent as Ce, ref as q, reactive as oe, computed as T, onMounted as ke, onUnmounted as we, watch as Fe, openBlock as F, createElementBlock as A, normalizeStyle as ie, createElementVNode as r, createVNode as G, withCtx as le, Fragment as K, renderList as W, normalizeClass as ce, toDisplayString as L, createCommentVNode as Ae, renderSlot as Ne } from "vue";
|
|
35
35
|
import "html2canvas";
|
|
36
|
-
import { e as b, _ as Re } from "./index-
|
|
37
|
-
import { E as Ee } from "./EChartComponentBase-
|
|
38
|
-
import { a as Oe } from "./api-
|
|
36
|
+
import { e as b, _ as Re } from "./index-yidMosRJ.js";
|
|
37
|
+
import { E as Ee } from "./EChartComponentBase-BjiCJlIa.js";
|
|
38
|
+
import { a as Oe } from "./api-CcAArQi7.js";
|
|
39
39
|
import { A as Te, D as Ge } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
40
40
|
const $e = { class: "table-section" }, Ie = { class: "table-section-header" }, Xe = { class: "table-toolbar" }, qe = { class: "table-scroll-wrapper" }, Le = { class: "report-table" }, Pe = { key: 0 }, Ue = ["colspan"], Ve = { class: "table-pagination" }, Be = { class: "page-info" }, ze = { class: "page-controls" }, Ke = ["disabled"], We = { class: "page-num" }, Je = ["disabled"], Qe = { DEFAULT_ICON: Ge, ACTIVE_ICON: Te, NAME_CN: "GNSS历史明细报表", NAME_EN: "GNSS History Table", ORDER: 5 }, Ze = {
|
|
41
41
|
bgColor: { value: "#f5f7fa", type: "color", label: "setting.bgColor" },
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var de=Object.defineProperty,ue=Object.defineProperties;var me=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var pe=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable;var m=Math.pow,z=(y,l,d)=>l in y?de(y,l,{enumerable:!0,configurable:!0,writable:!0,value:d}):y[l]=d,K=(y,l)=>{for(var d in l||(l={}))pe.call(l,d)&&z(y,d,l[d]);if(U)for(var d of U(l))ye.call(l,d)&&z(y,d,l[d]);return y},W=(y,l)=>ue(y,me(l));var J=(y,l,d)=>new Promise((g,A)=>{var _=p=>{try{h(d.next(p))}catch(F){A(F)}},w=p=>{try{h(d.throw(p))}catch(F){A(F)}},h=p=>p.done?g(p.value):Promise.resolve(p.value).then(_,w);h((d=d.apply(y,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=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/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue");require("html2canvas");const f=require("./index-
|
|
1
|
+
"use strict";var de=Object.defineProperty,ue=Object.defineProperties;var me=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var pe=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable;var m=Math.pow,z=(y,l,d)=>l in y?de(y,l,{enumerable:!0,configurable:!0,writable:!0,value:d}):y[l]=d,K=(y,l)=>{for(var d in l||(l={}))pe.call(l,d)&&z(y,d,l[d]);if(U)for(var d of U(l))ye.call(l,d)&&z(y,d,l[d]);return y},W=(y,l)=>ue(y,me(l));var J=(y,l,d)=>new Promise((g,A)=>{var _=p=>{try{h(d.next(p))}catch(F){A(F)}},w=p=>{try{h(d.throw(p))}catch(F){A(F)}},h=p=>p.done?g(p.value):Promise.resolve(p.value).then(_,w);h((d=d.apply(y,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=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/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue");require("html2canvas");const f=require("./index-CtAaj9XN.cjs"),_e=require("./EChartComponentBase-CUbabNTX.cjs"),fe=require("./api-BR57NNEB.cjs"),Q=require("./ele-lin-icon-Dke_1AmT.cjs"),ve={class:"table-section"},be={class:"table-section-header"},ge={class:"table-toolbar"},he={class:"table-scroll-wrapper"},Se={class:"report-table"},xe={key:0},Ye=["colspan"],je={class:"table-pagination"},De={class:"page-info"},Ne={class:"page-controls"},Ee=["disabled"],Me={class:"page-num"},ke=["disabled"],Ce={DEFAULT_ICON:Q.DEFAULT_ICON,ACTIVE_ICON:Q.ACTIVE_ICON,NAME_CN:"GNSS历史明细报表",NAME_EN:"GNSS History Table",ORDER:5},He={bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},we=[{name:"序号",fv:"_index",object_id:"",type:"index"},{name:"编号",fv:"_device",object_id:"",type:"device"},{name:"区域",fv:"_area",object_id:"",type:"area"},{name:"时间",fv:"_time",object_id:"",type:"time"},{name:"基准X",fv:"base_x",object_id:"",type:"data"},{name:"基准Y",fv:"base_y",object_id:"",type:"data"},{name:"基准H",fv:"base_h",object_id:"",type:"data"},{name:"X位移",fv:"x_disp",object_id:"",type:"data"},{name:"Y位移",fv:"y_disp",object_id:"",type:"data"},{name:"H位移",fv:"h_disp",object_id:"",type:"data"},{name:"XY位移",fv:"xy_disp",object_id:"",type:"data"},{name:"XYH位移",fv:"xyh_disp",object_id:"",type:"data"},{name:"X累积位移",fv:"x_cum_disp",object_id:"",type:"data"},{name:"Y累积位移",fv:"y_cum_disp",object_id:"",type:"data"},{name:"H累积位移",fv:"h_cum_disp",object_id:"",type:"data"},{name:"XY累积位移",fv:"xy_cum_disp",object_id:"",type:"data"},{name:"XYH累积位移",fv:"xyh_cum_disp",object_id:"",type:"data"},{name:"X速度",fv:"x_speed",object_id:"",type:"data"},{name:"Y速度",fv:"y_speed",object_id:"",type:"data"},{name:"H速度",fv:"h_speed",object_id:"",type:"data"},{name:"XY速度",fv:"xy_speed",object_id:"",type:"data"},{name:"XYH速度",fv:"xyh_speed",object_id:"",type:"data"},{name:"X加速度",fv:"x_accel",object_id:"",type:"data"},{name:"Y加速度",fv:"y_accel",object_id:"",type:"data"},{name:"H加速度",fv:"h_accel",object_id:"",type:"data"},{name:"切线角",fv:"tangent_angle",object_id:"",type:"data"}],Fe=["name","fv","object_id","type"],Ve=["mosaic","statistics","statisticsRealtime"],Ae={useAlias:!1,multiObject:!0,hideMultiObject:!1,source:"mosaic"},Re={DEFAULT:Ce,OPTIONS:He,DATA:we,PARAMS:Fe,SOURCE:Ve,COMMON:Ae},Oe=e.defineComponent(W(K({},Re),{__name:"gnssHistoryTable",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(y){const l=y;class d extends _e.EChartComponentBase{constructor(){super(...arguments),this._lastDedupeKey=""}extractStyles(){var r,n,u,s,c;const t=(r=this.props.conf)==null?void 0:r.options,o=((n=t==null?void 0:t.linkChannel)==null?void 0:n.value)||"gnss",i=((u=t==null?void 0:t.customChannel)==null?void 0:u.value)||"";return{bgColor:((s=t==null?void 0:t.bgColor)==null?void 0:s.value)||"#f5f7fa",textColor:((c=t==null?void 0:t.textColor)==null?void 0:c.value)||"#333333",linkChannel:o==="custom"&&i?i:o}}getChartOption(){return{}}onLinkEvent(t){ne(t)}onPreview(){}setSocketData(t){if(!t||!t.data)return;const{data:o}=this.props.conf;if(!o||!Array.isArray(o))return;const i=t.datetime||f.dayjs().format("YYYY/MM/DD HH:mm:ss"),r=`${i}_${JSON.stringify(t.data)}`;if(r===this._lastDedupeKey)return;this._lastDedupeKey=r;const n={};if(o.forEach(s=>{if(s.type==="data"&&s.fv){const c=this.extractDataValue(t,s.fv);c!=null&&(n[s.fv]=String(c))}}),Object.keys(n).length===0)return;const u={time:i,area:w.value||"-",device:_.value?`GNSS${_.value}`:"GNSS",metrics:n};S.rows.unshift(u),S.rows.length>1e3&&(S.rows=S.rows.slice(0,1e3))}}const g=new d(l,"gnssHistoryTable");g.setupLifecycle();const A=g.getStyle(),_=e.ref(""),w=e.ref(""),h=e.ref(""),p=e.reactive({timeRange:"1d",dateRange:[f.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),f.dayjs().format("YYYY/MM/DD HH:mm")]}),F=()=>J(null,null,function*(){var n,u,s;if(j.value=1,l.mode==="edit"){I();return}if(!h.value)return;S.rows=[];const a=(n=g.session)==null?void 0:n.value,t=(u=l.conf)==null?void 0:u.id;a!=null&&a.componentRequests&&t&&a.componentRequests.delete(t);const{data:o,common:i}=l.conf;Array.isArray(o)&&o.forEach(c=>{c.object_id=h.value}),i.multiObject||(i.object_id=h.value);try{const c=f.dayjs(p.dateRange[0],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),D=f.dayjs(p.dateRange[1],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),k=f.dayjs(p.dateRange[1],"YYYY/MM/DD HH:mm").diff(f.dayjs(p.dateRange[0],"YYYY/MM/DD HH:mm"),"second"),x=Math.max(60,Math.floor(k/500)),V=(l.conf.data||[]).filter(b=>b.type==="data"&&b.fv),G=V.map(b=>b.fv),v=[{block_mapping:"influxdbproxy",action:"get_mosaic_list_with_time_span",start_time:c,end_time:D,time_span:x,time_swing:x,keys:G,object_id:h.value}],N=yield new Promise(b=>{fe.api.platform(Y=>{b(Y.result)},{block_mapping:"mixtools",action:"get_tools_mosaic_list",condition:v})}),E=Array.isArray(N)?((s=N[0])==null?void 0:s.data)||N[0]||[]:[];Array.isArray(E)&&E.length>0&&[...E].sort((Y,H)=>{const M=Y.time||Y.datetime||"",C=H.time||H.datetime||"";return new Date(C).getTime()-new Date(M).getTime()}).forEach(Y=>{const H=Y.time||Y.datetime;if(!H)return;const M={};V.forEach(C=>{const O=Y[C.fv];O!=null&&(M[C.fv]=String(O))}),Object.keys(M).length>0&&S.rows.push({time:f.dayjs(H).format("YYYY/MM/DD HH:mm:ss"),area:w.value||"-",device:_.value?`GNSS${_.value}`:"GNSS",metrics:M})}),console.log(`[GNSS历史明细] 历史数据加载完成,共 ${S.rows.length} 条,时间范围: ${c} ~ ${D}`)}catch(c){console.warn("[GNSS历史明细] 历史数据获取失败:",c)}const r=g.getSource();g.subscribeBySource(r,h.value)}),Z=e.computed(()=>({backgroundColor:A.value.bgColor,color:A.value.textColor})),R=e.computed(()=>{const{data:a}=l.conf;return!a||!Array.isArray(a)?[]:a.map(t=>({key:t.fv||"",label:t.name||t.fv||"-",type:t.type||"data"})).filter(t=>t.key)});e.computed(()=>R.value.filter(a=>a.type==="data"));const T=e.ref("hour"),j=e.ref(1),q=15,S=e.reactive({rows:[]}),B=e.computed(()=>{const a=T.value;if(a==="hour")return S.rows;const t=new Set,o=[];for(const i of S.rows){const r=f.dayjs(i.time,"YYYY/MM/DD HH:mm:ss");let n;if(a==="day")n=r.format("YYYY/MM/DD");else if(a==="week"){const u=r.startOf("year");n=r.year()+"-W"+Math.floor(r.diff(u,"day")/7)}else n=r.format("YYYY/MM");t.has(n)||(t.add(n),o.push(i))}return o}),$=e.computed(()=>Math.max(1,Math.ceil(B.value.length/q))),X=e.computed(()=>{const a=(j.value-1)*q;return B.value.slice(a,a+q)}),ee=()=>{j.value=1},I=()=>{const a=w.value||"-",t=_.value?`GNSS${_.value}`:"GNSS",o=parseInt(_.value)||50,i=f.dayjs(),r=100,n=+(2450+o*.1).toFixed(2),u=+(1300+o*.02).toFixed(2),s=+(1150+o*.01).toFixed(2);let c=0,D=0,k=0;const x=[];for(let V=0;V<r;V++){const G=i.subtract((r-V)*60,"minute"),v=()=>Math.random()-.5,N=+(.8+v()*.2).toFixed(2),E=+(.65+v()*.15).toFixed(2),b=+(.01+v()*.02).toFixed(2),Y=+Math.sqrt(m(N,2)+m(E,2)).toFixed(2),H=+Math.sqrt(m(N,2)+m(E,2)+m(b,2)).toFixed(2);c+=N,D+=E,k+=b;const M=+(8+v()*1.5).toFixed(2),C=+(8+v()*1.5).toFixed(2),O=+(8.5+v()*1).toFixed(2),oe=+Math.sqrt(m(M,2)+m(C,2)).toFixed(2),se=+Math.sqrt(m(M,2)+m(C,2)+m(O,2)).toFixed(2),le=+(v()*.1).toFixed(3),ce=+(v()*.08).toFixed(3),ie=+(v()*.06).toFixed(3),re=+(Math.atan2(E,N)*180/Math.PI).toFixed(1);x.push({time:G.format("YYYY/MM/DD HH:mm:ss"),area:a,device:t,metrics:{base_x:String(n),base_y:String(u),base_h:String(s),x_disp:String(N),y_disp:String(E),h_disp:String(b),xy_disp:String(Y),xyh_disp:String(H),x_cum_disp:c.toFixed(2),y_cum_disp:D.toFixed(2),h_cum_disp:k.toFixed(2),xy_cum_disp:Math.sqrt(m(c,2)+m(D,2)).toFixed(2),xyh_cum_disp:Math.sqrt(m(c,2)+m(D,2)+m(k,2)).toFixed(2),x_speed:String(M),y_speed:String(C),h_speed:String(O),xy_speed:String(oe),xyh_speed:String(se),x_accel:String(le),y_accel:String(ce),h_accel:String(ie),tangent_angle:re+"°"}})}S.rows=x},te=a=>{if(!a)return"#333";const t=parseFloat(a);return isNaN(t)?"#333":t>=20?"#ee4444":t>=10?"#e6a23c":"#333"},P=(a,t,o)=>{var i;switch(t.type){case"index":return String((j.value-1)*q+o+1);case"device":return a.device;case"area":return a.area;case"time":return a.time;default:return(i=a.metrics[t.key])!=null?i:"-"}},ae=()=>{const a=R.value,t=B.value;if(!t.length)return;const o=a.map(c=>c.label).join(","),i=t.map((c,D)=>a.map(k=>{const x=P(c,k,D);return k.type==="time"||x.includes(",")||x.includes('"')?`"${x.replace(/"/g,'""')}"`:x}).join(",")).join(`
|
|
2
2
|
`),r="\uFEFF"+o+`
|
|
3
3
|
`+i,n=new Blob([r],{type:"text/csv;charset=utf-8;"}),u=URL.createObjectURL(n),s=document.createElement("a");s.href=u,s.download=`GNSS监测历史明细_${_.value||"all"}_${f.dayjs().format("YYYYMMDDHHmmss")}.csv`,s.click(),URL.revokeObjectURL(u)},ne=a=>{const{payload:t}=a;if(!t)return;if(t.type==="filter"){t.point!=null&&(_.value=String(t.point)),t.area!=null&&(w.value=String(t.area)),t.objectId!=null&&(h.value=String(t.objectId)),t.timeRange&&(p.timeRange=t.timeRange),t.dateRange&&(p.dateRange=t.dateRange),F();return}const o=t.point||t.deviceId;o&&(_.value=String(o),F())};return e.onMounted(()=>{g.init(),l.mode==="edit"&&I()}),e.onUnmounted(()=>{g.cleanup()}),e.watch(()=>l.conf,()=>{g.init(),l.mode==="edit"&&I()},{deep:!0}),(a,t)=>{const o=L.ElOption,i=L.ElSelect,r=L.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"gnss-history-table",style:e.normalizeStyle(Z.value)},[e.createElementVNode("div",ve,[e.createElementVNode("div",be,[t[5]||(t[5]=e.createElementVNode("div",{class:"table-title"},[e.createElementVNode("span",{class:"table-title-bar"}),e.createElementVNode("span",null,"GNSS监测 历史明细报表")],-1)),e.createElementVNode("div",ge,[t[4]||(t[4]=e.createElementVNode("span",{class:"toolbar-label"},"显示频率:",-1)),e.createVNode(i,{modelValue:T.value,"onUpdate:modelValue":t[0]||(t[0]=n=>T.value=n),size:"small",style:{width:"95px"},onChange:ee},{default:e.withCtx(()=>[e.createVNode(o,{label:"按小时",value:"hour"}),e.createVNode(o,{label:"按天显示",value:"day"}),e.createVNode(o,{label:"按周显示",value:"week"}),e.createVNode(o,{label:"按月显示",value:"month"})]),_:1},8,["modelValue"]),e.createVNode(r,{size:"small",type:"success",onClick:ae},{default:e.withCtx(()=>[...t[3]||(t[3]=[e.createElementVNode("span",null,"📥 导出分析报表 (Excel)",-1)])]),_:1})])]),e.createElementVNode("div",he,[e.createElementVNode("table",Se,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,n=>(e.openBlock(),e.createElementBlock("th",{key:n.key,class:e.normalizeClass({"col-fixed":n.type!=="data","col-idx":n.type==="index","col-time":n.type==="time"})},e.toDisplayString(n.label),3))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(X.value,(n,u)=>(e.openBlock(),e.createElementBlock("tr",{key:u},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,s=>(e.openBlock(),e.createElementBlock("td",{key:s.key,class:e.normalizeClass({"col-fixed":s.type!=="data","col-idx":s.type==="index","col-time":s.type==="time","cell-angle":s.key==="tangent_angle"}),style:e.normalizeStyle(s.key==="tangent_angle"?{color:te(n.metrics[s.key])}:{})},e.toDisplayString(P(n,s,u)),7))),128))]))),128)),X.value.length===0?(e.openBlock(),e.createElementBlock("tr",xe,[e.createElementVNode("td",{colspan:R.value.length,style:{"text-align":"center",color:"#999",padding:"20px"}},"暂无数据",8,Ye)])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",je,[e.createElementVNode("span",De,"共 "+e.toDisplayString(B.value.length)+" 条记录",1),e.createElementVNode("div",Ne,[e.createElementVNode("button",{class:"page-arrow",disabled:j.value<=1,onClick:t[1]||(t[1]=n=>j.value--)},"◀",8,Ee),e.createElementVNode("span",Me,e.toDisplayString(j.value)+" / "+e.toDisplayString($.value),1),e.createElementVNode("button",{class:"page-arrow",disabled:j.value>=$.value,onClick:t[2]||(t[2]=n=>j.value++)},"▶",8,ke)])])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),qe=f._export_sfc(Oe,[["__scopeId","data-v-ca0bbfec"]]);exports.default=qe;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var De=Object.defineProperty,Ie=Object.defineProperties;var Ae=Object.getOwnPropertyDescriptors;var H=Object.getOwnPropertySymbols;var Te=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var J=(g,m,v)=>m in g?De(g,m,{enumerable:!0,configurable:!0,writable:!0,value:v}):g[m]=v,Q=(g,m)=>{for(var v in m||(m={}))Te.call(m,v)&&J(g,v,m[v]);if(H)for(var v of H(m))_e.call(m,v)&&J(g,v,m[v]);return g},Z=(g,m)=>Ie(g,Ae(m));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue");require("html2canvas");const Pe=require("./element-resize-detector-DYs3pJPp.cjs"),Be=require("./index-ZwyqrmaH.cjs");require("./index-mAPVa0s4.cjs");const ee=require("./ele-lin-icon-Dke_1AmT.cjs"),Ue=require("./echarts-BB8O2KSA.cjs"),Fe={class:"toolbar-left"},Oe={class:"filter-item"},$e={class:"filter-item"},ze={class:"filter-item"},Ge={class:"toolbar-right"},Le={key:0,class:"pick-hint-bar"},je=["viewBox"],Ye=["d","stroke"],Xe=["x1","y1","x2","y2"],qe=["onClick","onMouseenter"],We={class:"point-bubble"},Ke={class:"point-id"},He=["innerHTML"],Je={class:"drawer-icons"},Qe=["onClick"],Ze={class:"drawer-icon"},et={class:"drawer-label"},tt={class:"profile-dialog-header"},ot={class:"profile-header-btns"},nt={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"GNSS地图监测视图",NAME_EN:"GNSS Map Monitor View",ORDER:10},lt={bgColor:{value:"#0b1a31",type:"color",label:"setting.bgColor"},toolbarBg:{value:"#ffffff",type:"color",label:"工具栏背景色"},toolbarFontSize:{value:12,type:"number",label:"工具栏字体大小",min:10,max:20},geologyMapUrl:{value:"",type:"string",label:"地质模型地图URL"},dtmMapUrl:{value:"",type:"string",label:"DTM面地图URL"},uavMapUrl:{value:"",type:"string",label:"无人机地图URL"},pointCount:{value:80,type:"number",label:"模拟监测点数量",min:20,max:200},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},at=[{name:"GNSS001",fv:"",fvDeviceName:"",object_id:"",type:"GNSS",x:1e3,y:400,elevation:1350,region:"北帮",lineName:"北帮线"},{name:"GNSS002",fv:"",fvDeviceName:"",object_id:"",type:"GNSS",x:1300,y:400,elevation:1380,region:"北帮",lineName:"北帮线"},{name:"GNSS003",fv:"",fvDeviceName:"",object_id:"",type:"GNSS",x:1600,y:400,elevation:1410,region:"北帮",lineName:"北帮线"},{name:"DEEP001",fv:"",fvDeviceName:"",object_id:"",type:"深部位移",x:500,y:1200,elevation:1280,region:"西帮",lineName:""},{name:"RADAR001",fv:"",fvDeviceName:"",object_id:"",type:"雷达",x:2500,y:1e3,elevation:1320,region:"东帮",lineName:""},{name:"CRACK001",fv:"",fvDeviceName:"",object_id:"",type:"裂缝",x:1500,y:1250,elevation:1300,region:"中央区",lineName:""},{name:"FIRE001",fv:"",fvDeviceName:"",object_id:"",type:"煤自燃",x:1200,y:2100,elevation:1260,region:"南帮",lineName:""},{name:"WATER001",fv:"",fvDeviceName:"",object_id:"",type:"降雨",x:1800,y:2100,elevation:1240,region:"南帮",lineName:""}],it=["object_id","name","fv","fvDeviceName","type","x","y","elevation","region","lineName"],st=["mosaic"],rt={useAlias:!1,multiObject:!0,source:"mosaic"},ct=200,dt={DEFAULT:nt,OPTIONS:lt,DATA:at,PARAMS:it,SOURCE:st,COMMON:rt,ITEMS:ct},ut=e.defineComponent(Z(Q({},dt),{__name:"gnssMapView",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(g){const m=g,v=3e3,A=2500,F={GNSS:"GNSS",gnss:"GNSS",DEEP:"DEEP",deep:"DEEP",深部位移:"DEEP",RADAR:"RADAR",radar:"RADAR",雷达:"RADAR",SURFACE:"SURFACE",surface:"SURFACE",地表:"SURFACE",CRACK:"CRACK",crack:"CRACK",裂缝:"CRACK",FIRE:"FIRE",fire:"FIRE",煤自燃:"FIRE",WATER:"WATER",water:"WATER",降雨:"WATER",GROUND:"GROUND",ground:"GROUND",地下水:"GROUND",STRESS:"STRESS",stress:"STRESS",应力:"STRESS",VIB:"VIB",vib:"VIB",爆破震动:"VIB",SAT:"SAT",sat:"SAT",遥感卫星:"SAT"},O={GNSS:"📍",DEEP:"⚓",RADAR:"📡",SURFACE:"📐",CRACK:"🧱",FIRE:"🔥",WATER:"💧",GROUND:"🌍",STRESS:"📊",VIB:"💥",SAT:"🛸"},R=[{key:"GNSS",label:"GNSS",icon:"📍"},{key:"DEEP",label:"深部位移",icon:"⚓"},{key:"RADAR",label:"雷达",icon:"📡"},{key:"SURFACE",label:"地表",icon:"📐"},{key:"CRACK",label:"裂缝",icon:"🧱"},{key:"FIRE",label:"煤自燃",icon:"🔥"},{key:"WATER",label:"降雨",icon:"💧"},{key:"GROUND",label:"地下水",icon:"🌍"},{key:"STRESS",label:"应力",icon:"📊"},{key:"VIB",label:"爆破震动",icon:"💥"},{key:"SAT",label:"遥感卫星",icon:"🛸"}],$=["#F57676","#FFA500","#fadb14","#66B1FF","#71C446"],P=[{name:"北帮",xRange:[800,2200],yRange:[200,600]},{name:"南帮",xRange:[800,2200],yRange:[1900,2300]},{name:"西帮",xRange:[200,700],yRange:[800,1700]},{name:"东帮",xRange:[2300,2800],yRange:[800,1700]},{name:"中央区",xRange:[1100,1900],yRange:[1e3,1500]}],z=["#F57676","#FFA500","#66B1FF","#71C446","#9254de","#13c2c2"];class te extends Pe.BaseComponent{extractStyles(){var a,r,n,u,p,f,d,h,S,y;const t=(a=this.props.conf)==null?void 0:a.options,l=((r=t==null?void 0:t.linkChannel)==null?void 0:r.value)||"gnss",s=((n=t==null?void 0:t.customChannel)==null?void 0:n.value)||"";return{bgColor:((u=t==null?void 0:t.bgColor)==null?void 0:u.value)||"#0b1a31",toolbarBg:((p=t==null?void 0:t.toolbarBg)==null?void 0:p.value)||"#ffffff",toolbarFontSize:((f=t==null?void 0:t.toolbarFontSize)==null?void 0:f.value)||12,geologyMapUrl:((d=t==null?void 0:t.geologyMapUrl)==null?void 0:d.value)||"",dtmMapUrl:((h=t==null?void 0:t.dtmMapUrl)==null?void 0:h.value)||"",uavMapUrl:((S=t==null?void 0:t.uavMapUrl)==null?void 0:S.value)||"",pointCount:((y=t==null?void 0:t.pointCount)==null?void 0:y.value)||80,linkChannel:l==="custom"&&s?s:l}}onLinkEvent(t){Ne(t)}}const V=new te(m,"gnssMapView");V.setupLifecycle();const C=V.getStyle(),M=e.ref(null),B=e.ref(null),w=e.ref(!1),N=e.reactive(new Set(R.map(o=>o.key))),D=e.ref([]),G=e.ref([]),i=e.reactive({scale:.4,posX:0,posY:0,viewType:"geology",selectedRegion:"全部",selectedType:"全部"}),U=e.ref(!1),T=e.reactive({x:0,y:0}),x=e.reactive({visible:!1,x:0,y:0,content:""}),c=e.reactive({picking:!1,pickedPoints:[],dialogVisible:!1});let b=null;const E=e.ref(""),oe={onWheel:o=>{o.preventDefault(),pe(o)},onMousedown:o=>me(o),onMousemove:o=>ve(o),onMouseup:()=>q(),onMouseleave:()=>q()},ne=e.computed(()=>({backgroundColor:C.value.bgColor})),L=e.computed(()=>({geology:C.value.geologyMapUrl,dtm:C.value.dtmMapUrl,uav:C.value.uavMapUrl})[i.viewType]||""),le=e.computed(()=>({transform:`translate(${i.posX}px, ${i.posY}px) scale(${i.scale})`,width:v+"px",height:A+"px",backgroundImage:L.value?`url(${L.value})`:"none"})),ae=e.computed(()=>{const o=new Set;return D.value.forEach(t=>{t.region&&o.add(t.region)}),Array.from(o)}),j=e.computed(()=>D.value.filter(o=>{const t=N.has(o.type),l=i.selectedRegion==="全部"||o.region===i.selectedRegion,s=i.selectedType==="全部"||o.type===i.selectedType;return t&&l&&s})),ie=e.computed(()=>N.has("GNSS")?G.value.filter(o=>i.selectedRegion!=="全部"&&o.region!==i.selectedRegion?!1:o.pointIds.filter(l=>j.value.some(s=>s.id===l)).length>=2):[]),se=o=>{const t=o.isOnline?$[o.alarmIdx]||"#71C446":"#999";return{left:o.x+"px",top:o.y+"px",backgroundColor:t,color:t}},re=o=>c.pickedPoints.some(t=>t.id===o.id),ce=e.computed(()=>{var o;return((o=m.conf)==null?void 0:o.data)||[]}),Y=()=>{const o=ce.value;o.length>0?de(o):ue()},de=o=>{const t=[];o.forEach((l,s)=>{var f;const a=l.name||l.deviceId||"",r=l.type||"GNSS",n=F[r]||F[(f=r.toUpperCase)==null?void 0:f.call(r)]||"GNSS",u=Number(l.x)||0,p=Number(l.y)||0;t.push({id:a||`pt-${s}`,type:n,alarmIdx:typeof l.alarmIdx=="number"?l.alarmIdx:4,isOnline:l.isOnline!==!1,deviceId:a||`${n}${s}`,region:l.region||"未分区",x:u,y:p,isOnDetectionLine:!!l.lineName,lineName:l.lineName||"",objectId:l.object_id||""})}),D.value=t,X(t)},ue=()=>{const o=C.value.pointCount||80,t=Object.keys(O),l=[],s=[],a=60,r={};P.forEach(n=>r[n.name]=0);for(let n=0;n<o;n++){let u=t[n%t.length];n<7?u="RADAR":u==="RADAR"&&(u="GNSS");const p=n*7%5,f=n%8!==0,d=P[n%P.length];let h=!1,S="";u==="GNSS"&&r[d.name]<3&&(h=!0,S=`${d.name}线`,r[d.name]++);let y=0,k=0,K=0;for(;K<100;){if(h){const I=r[d.name]-1;d.name==="北帮"||d.name==="南帮"?(k=(d.yRange[0]+d.yRange[1])/2,y=d.xRange[0]+300+I*250):(y=(d.xRange[0]+d.xRange[1])/2,k=d.yRange[0]+300+I*250)}else y=d.xRange[0]+Math.random()*(d.xRange[1]-d.xRange[0]),k=d.yRange[0]+Math.random()*(d.yRange[1]-d.yRange[0]);if(!s.some(I=>Math.hypot(y-I.x,k-I.y)<a))break;K++}s.push({x:y,y:k}),l.push({id:`pt-${n}`,type:u,alarmIdx:p,isOnline:f,deviceId:`${u}${n}`,region:d.name,x:y,y:k,isOnDetectionLine:h,lineName:S,objectId:""})}D.value=l,X(l)},X=o=>{const t=new Map;o.filter(a=>a.lineName).forEach(a=>{t.has(a.lineName)||t.set(a.lineName,[]),t.get(a.lineName).push(a)});const l=[];let s=0;t.forEach((a,r)=>{var p,f,d,h;const n=Math.abs(((p=a[a.length-1])==null?void 0:p.x)-((f=a[0])==null?void 0:f.x)),u=Math.abs(((d=a[a.length-1])==null?void 0:d.y)-((h=a[0])==null?void 0:h.y));if(a.sort((S,y)=>n>=u?S.x-y.x:S.y-y.y),a.length>=2){const S=`M ${a[0].x+16} ${a[0].y+16} `+a.slice(1).map(k=>`L ${k.x+16} ${k.y+16}`).join(" "),y=a[0].region||"";l.push({name:r,region:y,color:z[s%z.length],path:S,pointIds:a.map(k=>k.id)}),s++}}),G.value=l},pe=o=>{const t=M.value;if(!t)return;const l=Math.min(Math.max(.15,i.scale+o.deltaY*-.001),2.5),s=t.getBoundingClientRect(),a=o.clientX-s.left,r=o.clientY-s.top,n=l/i.scale;i.posX=a-(a-i.posX)*n,i.posY=r-(r-i.posY)*n,i.scale=l},me=o=>{o.button===0&&(U.value=!0,T.x=o.clientX-i.posX,T.y=o.clientY-i.posY)},ve=o=>{U.value&&(i.posX=o.clientX-T.x,i.posY=o.clientY-T.y)},q=()=>{U.value=!1},fe=()=>{const o=M.value;if(!o){i.scale=.4,i.posX=0,i.posY=0;return}const t=o.clientWidth,l=o.clientHeight;if(t===0||l===0){i.scale=.4,i.posX=0,i.posY=0;return}const s=t/v,a=l/A,r=Math.min(s,a)*.9;i.scale=Math.max(.15,Math.min(r,1.5)),i.posX=(t-v*i.scale)/2,i.posY=(l-A*i.scale)/2},ye=o=>{if(m.mode!=="edit"){if(c.picking){const t=c.pickedPoints.findIndex(l=>l.id===o.id);if(t>=0){c.pickedPoints.splice(t,1);return}c.pickedPoints.length<2&&c.pickedPoints.push(o),c.pickedPoints.length===2&&(c.picking=!1,c.dialogVisible=!0);return}o.isOnline&&(E.value=o.id,setTimeout(()=>{E.value===o.id&&(E.value="")},3e3),V.publish({objectId:o.objectId,deviceId:o.deviceId,point:o.deviceId,deviceType:o.type,region:o.region,alarmIdx:o.alarmIdx}))}},ge=(o,t)=>{var a,r;x.visible=!0,x.x=o.clientX-(((a=M.value)==null?void 0:a.getBoundingClientRect().left)||0)+15,x.y=o.clientY-(((r=M.value)==null?void 0:r.getBoundingClientRect().top)||0)+15;const l=t.isOnline?"在线":'<span style="color:#f5222d">离线</span>',s=["一级告警(危险)","二级告警(受控)","三级告警(注意)","四级告警(警示)","运行正常"];x.content=`
|
|
1
|
+
"use strict";var De=Object.defineProperty,Ie=Object.defineProperties;var Ae=Object.getOwnPropertyDescriptors;var H=Object.getOwnPropertySymbols;var Te=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var J=(g,m,v)=>m in g?De(g,m,{enumerable:!0,configurable:!0,writable:!0,value:v}):g[m]=v,Q=(g,m)=>{for(var v in m||(m={}))Te.call(m,v)&&J(g,v,m[v]);if(H)for(var v of H(m))_e.call(m,v)&&J(g,v,m[v]);return g},Z=(g,m)=>Ie(g,Ae(m));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue");require("html2canvas");const Pe=require("./element-resize-detector-Cl7PwC4K.cjs"),Be=require("./index-CtAaj9XN.cjs");require("./index-mAPVa0s4.cjs");const ee=require("./ele-lin-icon-Dke_1AmT.cjs"),Ue=require("./echarts-BB8O2KSA.cjs"),Fe={class:"toolbar-left"},Oe={class:"filter-item"},$e={class:"filter-item"},ze={class:"filter-item"},Ge={class:"toolbar-right"},Le={key:0,class:"pick-hint-bar"},je=["viewBox"],Ye=["d","stroke"],Xe=["x1","y1","x2","y2"],qe=["onClick","onMouseenter"],We={class:"point-bubble"},Ke={class:"point-id"},He=["innerHTML"],Je={class:"drawer-icons"},Qe=["onClick"],Ze={class:"drawer-icon"},et={class:"drawer-label"},tt={class:"profile-dialog-header"},ot={class:"profile-header-btns"},nt={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"GNSS地图监测视图",NAME_EN:"GNSS Map Monitor View",ORDER:10},lt={bgColor:{value:"#0b1a31",type:"color",label:"setting.bgColor"},toolbarBg:{value:"#ffffff",type:"color",label:"工具栏背景色"},toolbarFontSize:{value:12,type:"number",label:"工具栏字体大小",min:10,max:20},geologyMapUrl:{value:"",type:"string",label:"地质模型地图URL"},dtmMapUrl:{value:"",type:"string",label:"DTM面地图URL"},uavMapUrl:{value:"",type:"string",label:"无人机地图URL"},pointCount:{value:80,type:"number",label:"模拟监测点数量",min:20,max:200},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},at=[{name:"GNSS001",fv:"",fvDeviceName:"",object_id:"",type:"GNSS",x:1e3,y:400,elevation:1350,region:"北帮",lineName:"北帮线"},{name:"GNSS002",fv:"",fvDeviceName:"",object_id:"",type:"GNSS",x:1300,y:400,elevation:1380,region:"北帮",lineName:"北帮线"},{name:"GNSS003",fv:"",fvDeviceName:"",object_id:"",type:"GNSS",x:1600,y:400,elevation:1410,region:"北帮",lineName:"北帮线"},{name:"DEEP001",fv:"",fvDeviceName:"",object_id:"",type:"深部位移",x:500,y:1200,elevation:1280,region:"西帮",lineName:""},{name:"RADAR001",fv:"",fvDeviceName:"",object_id:"",type:"雷达",x:2500,y:1e3,elevation:1320,region:"东帮",lineName:""},{name:"CRACK001",fv:"",fvDeviceName:"",object_id:"",type:"裂缝",x:1500,y:1250,elevation:1300,region:"中央区",lineName:""},{name:"FIRE001",fv:"",fvDeviceName:"",object_id:"",type:"煤自燃",x:1200,y:2100,elevation:1260,region:"南帮",lineName:""},{name:"WATER001",fv:"",fvDeviceName:"",object_id:"",type:"降雨",x:1800,y:2100,elevation:1240,region:"南帮",lineName:""}],it=["object_id","name","fv","fvDeviceName","type","x","y","elevation","region","lineName"],st=["mosaic"],rt={useAlias:!1,multiObject:!0,source:"mosaic"},ct=200,dt={DEFAULT:nt,OPTIONS:lt,DATA:at,PARAMS:it,SOURCE:st,COMMON:rt,ITEMS:ct},ut=e.defineComponent(Z(Q({},dt),{__name:"gnssMapView",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(g){const m=g,v=3e3,A=2500,F={GNSS:"GNSS",gnss:"GNSS",DEEP:"DEEP",deep:"DEEP",深部位移:"DEEP",RADAR:"RADAR",radar:"RADAR",雷达:"RADAR",SURFACE:"SURFACE",surface:"SURFACE",地表:"SURFACE",CRACK:"CRACK",crack:"CRACK",裂缝:"CRACK",FIRE:"FIRE",fire:"FIRE",煤自燃:"FIRE",WATER:"WATER",water:"WATER",降雨:"WATER",GROUND:"GROUND",ground:"GROUND",地下水:"GROUND",STRESS:"STRESS",stress:"STRESS",应力:"STRESS",VIB:"VIB",vib:"VIB",爆破震动:"VIB",SAT:"SAT",sat:"SAT",遥感卫星:"SAT"},O={GNSS:"📍",DEEP:"⚓",RADAR:"📡",SURFACE:"📐",CRACK:"🧱",FIRE:"🔥",WATER:"💧",GROUND:"🌍",STRESS:"📊",VIB:"💥",SAT:"🛸"},R=[{key:"GNSS",label:"GNSS",icon:"📍"},{key:"DEEP",label:"深部位移",icon:"⚓"},{key:"RADAR",label:"雷达",icon:"📡"},{key:"SURFACE",label:"地表",icon:"📐"},{key:"CRACK",label:"裂缝",icon:"🧱"},{key:"FIRE",label:"煤自燃",icon:"🔥"},{key:"WATER",label:"降雨",icon:"💧"},{key:"GROUND",label:"地下水",icon:"🌍"},{key:"STRESS",label:"应力",icon:"📊"},{key:"VIB",label:"爆破震动",icon:"💥"},{key:"SAT",label:"遥感卫星",icon:"🛸"}],$=["#F57676","#FFA500","#fadb14","#66B1FF","#71C446"],P=[{name:"北帮",xRange:[800,2200],yRange:[200,600]},{name:"南帮",xRange:[800,2200],yRange:[1900,2300]},{name:"西帮",xRange:[200,700],yRange:[800,1700]},{name:"东帮",xRange:[2300,2800],yRange:[800,1700]},{name:"中央区",xRange:[1100,1900],yRange:[1e3,1500]}],z=["#F57676","#FFA500","#66B1FF","#71C446","#9254de","#13c2c2"];class te extends Pe.BaseComponent{extractStyles(){var a,r,n,u,p,f,d,h,S,y;const t=(a=this.props.conf)==null?void 0:a.options,l=((r=t==null?void 0:t.linkChannel)==null?void 0:r.value)||"gnss",s=((n=t==null?void 0:t.customChannel)==null?void 0:n.value)||"";return{bgColor:((u=t==null?void 0:t.bgColor)==null?void 0:u.value)||"#0b1a31",toolbarBg:((p=t==null?void 0:t.toolbarBg)==null?void 0:p.value)||"#ffffff",toolbarFontSize:((f=t==null?void 0:t.toolbarFontSize)==null?void 0:f.value)||12,geologyMapUrl:((d=t==null?void 0:t.geologyMapUrl)==null?void 0:d.value)||"",dtmMapUrl:((h=t==null?void 0:t.dtmMapUrl)==null?void 0:h.value)||"",uavMapUrl:((S=t==null?void 0:t.uavMapUrl)==null?void 0:S.value)||"",pointCount:((y=t==null?void 0:t.pointCount)==null?void 0:y.value)||80,linkChannel:l==="custom"&&s?s:l}}onLinkEvent(t){Ne(t)}}const V=new te(m,"gnssMapView");V.setupLifecycle();const C=V.getStyle(),M=e.ref(null),B=e.ref(null),w=e.ref(!1),N=e.reactive(new Set(R.map(o=>o.key))),D=e.ref([]),G=e.ref([]),i=e.reactive({scale:.4,posX:0,posY:0,viewType:"geology",selectedRegion:"全部",selectedType:"全部"}),U=e.ref(!1),T=e.reactive({x:0,y:0}),x=e.reactive({visible:!1,x:0,y:0,content:""}),c=e.reactive({picking:!1,pickedPoints:[],dialogVisible:!1});let b=null;const E=e.ref(""),oe={onWheel:o=>{o.preventDefault(),pe(o)},onMousedown:o=>me(o),onMousemove:o=>ve(o),onMouseup:()=>q(),onMouseleave:()=>q()},ne=e.computed(()=>({backgroundColor:C.value.bgColor})),L=e.computed(()=>({geology:C.value.geologyMapUrl,dtm:C.value.dtmMapUrl,uav:C.value.uavMapUrl})[i.viewType]||""),le=e.computed(()=>({transform:`translate(${i.posX}px, ${i.posY}px) scale(${i.scale})`,width:v+"px",height:A+"px",backgroundImage:L.value?`url(${L.value})`:"none"})),ae=e.computed(()=>{const o=new Set;return D.value.forEach(t=>{t.region&&o.add(t.region)}),Array.from(o)}),j=e.computed(()=>D.value.filter(o=>{const t=N.has(o.type),l=i.selectedRegion==="全部"||o.region===i.selectedRegion,s=i.selectedType==="全部"||o.type===i.selectedType;return t&&l&&s})),ie=e.computed(()=>N.has("GNSS")?G.value.filter(o=>i.selectedRegion!=="全部"&&o.region!==i.selectedRegion?!1:o.pointIds.filter(l=>j.value.some(s=>s.id===l)).length>=2):[]),se=o=>{const t=o.isOnline?$[o.alarmIdx]||"#71C446":"#999";return{left:o.x+"px",top:o.y+"px",backgroundColor:t,color:t}},re=o=>c.pickedPoints.some(t=>t.id===o.id),ce=e.computed(()=>{var o;return((o=m.conf)==null?void 0:o.data)||[]}),Y=()=>{const o=ce.value;o.length>0?de(o):ue()},de=o=>{const t=[];o.forEach((l,s)=>{var f;const a=l.name||l.deviceId||"",r=l.type||"GNSS",n=F[r]||F[(f=r.toUpperCase)==null?void 0:f.call(r)]||"GNSS",u=Number(l.x)||0,p=Number(l.y)||0;t.push({id:a||`pt-${s}`,type:n,alarmIdx:typeof l.alarmIdx=="number"?l.alarmIdx:4,isOnline:l.isOnline!==!1,deviceId:a||`${n}${s}`,region:l.region||"未分区",x:u,y:p,isOnDetectionLine:!!l.lineName,lineName:l.lineName||"",objectId:l.object_id||""})}),D.value=t,X(t)},ue=()=>{const o=C.value.pointCount||80,t=Object.keys(O),l=[],s=[],a=60,r={};P.forEach(n=>r[n.name]=0);for(let n=0;n<o;n++){let u=t[n%t.length];n<7?u="RADAR":u==="RADAR"&&(u="GNSS");const p=n*7%5,f=n%8!==0,d=P[n%P.length];let h=!1,S="";u==="GNSS"&&r[d.name]<3&&(h=!0,S=`${d.name}线`,r[d.name]++);let y=0,k=0,K=0;for(;K<100;){if(h){const I=r[d.name]-1;d.name==="北帮"||d.name==="南帮"?(k=(d.yRange[0]+d.yRange[1])/2,y=d.xRange[0]+300+I*250):(y=(d.xRange[0]+d.xRange[1])/2,k=d.yRange[0]+300+I*250)}else y=d.xRange[0]+Math.random()*(d.xRange[1]-d.xRange[0]),k=d.yRange[0]+Math.random()*(d.yRange[1]-d.yRange[0]);if(!s.some(I=>Math.hypot(y-I.x,k-I.y)<a))break;K++}s.push({x:y,y:k}),l.push({id:`pt-${n}`,type:u,alarmIdx:p,isOnline:f,deviceId:`${u}${n}`,region:d.name,x:y,y:k,isOnDetectionLine:h,lineName:S,objectId:""})}D.value=l,X(l)},X=o=>{const t=new Map;o.filter(a=>a.lineName).forEach(a=>{t.has(a.lineName)||t.set(a.lineName,[]),t.get(a.lineName).push(a)});const l=[];let s=0;t.forEach((a,r)=>{var p,f,d,h;const n=Math.abs(((p=a[a.length-1])==null?void 0:p.x)-((f=a[0])==null?void 0:f.x)),u=Math.abs(((d=a[a.length-1])==null?void 0:d.y)-((h=a[0])==null?void 0:h.y));if(a.sort((S,y)=>n>=u?S.x-y.x:S.y-y.y),a.length>=2){const S=`M ${a[0].x+16} ${a[0].y+16} `+a.slice(1).map(k=>`L ${k.x+16} ${k.y+16}`).join(" "),y=a[0].region||"";l.push({name:r,region:y,color:z[s%z.length],path:S,pointIds:a.map(k=>k.id)}),s++}}),G.value=l},pe=o=>{const t=M.value;if(!t)return;const l=Math.min(Math.max(.15,i.scale+o.deltaY*-.001),2.5),s=t.getBoundingClientRect(),a=o.clientX-s.left,r=o.clientY-s.top,n=l/i.scale;i.posX=a-(a-i.posX)*n,i.posY=r-(r-i.posY)*n,i.scale=l},me=o=>{o.button===0&&(U.value=!0,T.x=o.clientX-i.posX,T.y=o.clientY-i.posY)},ve=o=>{U.value&&(i.posX=o.clientX-T.x,i.posY=o.clientY-T.y)},q=()=>{U.value=!1},fe=()=>{const o=M.value;if(!o){i.scale=.4,i.posX=0,i.posY=0;return}const t=o.clientWidth,l=o.clientHeight;if(t===0||l===0){i.scale=.4,i.posX=0,i.posY=0;return}const s=t/v,a=l/A,r=Math.min(s,a)*.9;i.scale=Math.max(.15,Math.min(r,1.5)),i.posX=(t-v*i.scale)/2,i.posY=(l-A*i.scale)/2},ye=o=>{if(m.mode!=="edit"){if(c.picking){const t=c.pickedPoints.findIndex(l=>l.id===o.id);if(t>=0){c.pickedPoints.splice(t,1);return}c.pickedPoints.length<2&&c.pickedPoints.push(o),c.pickedPoints.length===2&&(c.picking=!1,c.dialogVisible=!0);return}o.isOnline&&(E.value=o.id,setTimeout(()=>{E.value===o.id&&(E.value="")},3e3),V.publish({objectId:o.objectId,deviceId:o.deviceId,point:o.deviceId,deviceType:o.type,region:o.region,alarmIdx:o.alarmIdx}))}},ge=(o,t)=>{var a,r;x.visible=!0,x.x=o.clientX-(((a=M.value)==null?void 0:a.getBoundingClientRect().left)||0)+15,x.y=o.clientY-(((r=M.value)==null?void 0:r.getBoundingClientRect().top)||0)+15;const l=t.isOnline?"在线":'<span style="color:#f5222d">离线</span>',s=["一级告警(危险)","二级告警(受控)","三级告警(注意)","四级告警(警示)","运行正常"];x.content=`
|
|
2
2
|
<b style="color:#85C6F1;">[${t.region}] ${t.deviceId}</b>
|
|
3
3
|
<hr style="margin:5px 0; opacity:0.2">
|
|
4
4
|
设备类型: ${t.type}<br>
|
|
@@ -18,8 +18,8 @@ import "element-plus/es/components/select/style/css";
|
|
|
18
18
|
import "element-plus/es/components/option/style/css";
|
|
19
19
|
import { defineComponent as Ze, ref as A, reactive as G, computed as I, watch as et, onMounted as tt, onUnmounted as nt, openBlock as h, createElementBlock as R, normalizeStyle as j, createElementVNode as c, unref as ot, createVNode as v, withCtx as C, Fragment as z, renderList as B, createBlock as lt, createTextVNode as T, toDisplayString as P, createCommentVNode as q, mergeProps as at, normalizeClass as X, withDirectives as me, vShow as ve, renderSlot as st } from "vue";
|
|
20
20
|
import "html2canvas";
|
|
21
|
-
import { B as it } from "./element-resize-detector-
|
|
22
|
-
import { _ as ct } from "./index-
|
|
21
|
+
import { B as it } from "./element-resize-detector-CoRhuer9.js";
|
|
22
|
+
import { _ as ct } from "./index-yidMosRJ.js";
|
|
23
23
|
import "./index-ButoLLAe.js";
|
|
24
24
|
import { A as rt, D as dt } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
25
25
|
import { i as ut } from "./echarts-BVht3HHb.js";
|
|
@@ -35,10 +35,10 @@ import "element-plus/es/components/button/style/css";
|
|
|
35
35
|
import "element-plus/es/components/icon/style/css";
|
|
36
36
|
import { defineComponent as Te, computed as p, ref as P, reactive as $e, openBlock as C, createElementBlock as H, normalizeStyle as Q, createElementVNode as d, toDisplayString as A, unref as F, createVNode as y, withCtx as S, createTextVNode as ee, Fragment as U, renderList as te, createBlock as Pe, normalizeClass as ze, createCommentVNode as Ve, renderSlot as Be } from "vue";
|
|
37
37
|
import "html2canvas";
|
|
38
|
-
import { e as v, _ as Ge } from "./index-
|
|
39
|
-
import { E as Xe } from "./EChartComponentBase-
|
|
38
|
+
import { e as v, _ as Ge } from "./index-yidMosRJ.js";
|
|
39
|
+
import { E as Xe } from "./EChartComponentBase-BjiCJlIa.js";
|
|
40
40
|
import { ArrowDown as Fe, Download as Ue } from "@element-plus/icons-vue";
|
|
41
|
-
import { a as qe } from "./api-
|
|
41
|
+
import { a as qe } from "./api-CcAArQi7.js";
|
|
42
42
|
import { A as Ke, D as We } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
43
43
|
const Je = { class: "chart-panel" }, Ze = { class: "panel-header" }, Qe = { class: "header-left" }, et = { class: "panel-title" }, tt = { class: "header-right" }, ot = { class: "indicator-selector-panel" }, at = { class: "indicator-select-all" }, st = { class: "indicator-group-title" }, nt = { class: "legend-bar" }, lt = { class: "legend-items" }, it = ["onClick"], rt = { class: "legend-text" }, ct = {
|
|
44
44
|
key: 0,
|
|
@@ -82,7 +82,7 @@ const Je = { class: "chart-panel" }, Ze = { class: "panel-header" }, Qe = { clas
|
|
|
82
82
|
return W(this.Style.value);
|
|
83
83
|
}
|
|
84
84
|
onPreview() {
|
|
85
|
-
i.clear(), this.session.value && import("./request-
|
|
85
|
+
i.clear(), this.session.value && import("./request-CQBzobr7.js").then(({ formatRequest: o }) => {
|
|
86
86
|
const s = o(this.props.conf, this.props.uid, this.componentType);
|
|
87
87
|
this.session.value.registerComponent({
|
|
88
88
|
id: this.props.conf.id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ye=Object.defineProperty,be=Object.defineProperties;var Se=Object.getOwnPropertyDescriptors;var ee=Object.getOwnPropertySymbols;var Ce=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable;var te=(m,c,i)=>c in m?ye(m,c,{enumerable:!0,configurable:!0,writable:!0,value:i}):m[c]=i,oe=(m,c)=>{for(var i in c||(c={}))Ce.call(c,i)&&te(m,i,c[i]);if(ee)for(var i of ee(c))xe.call(c,i)&&te(m,i,c[i]);return m},ae=(m,c)=>be(m,Se(c));var ne=(m,c,i)=>new Promise((I,B)=>{var h=f=>{try{V(i.next(f))}catch(Y){B(Y)}},y=f=>{try{V(i.throw(f))}catch(Y){B(Y)}},V=f=>f.done?I(f.value):Promise.resolve(f.value).then(h,y);V((i=i.apply(m,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=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 e=require("vue");require("html2canvas");const p=require("./index-ZwyqrmaH.cjs"),Ye=require("./EChartComponentBase-Dz5E-lyI.cjs"),le=require("@element-plus/icons-vue"),Ee=require("./api-nw_9niqv.cjs"),se=require("./ele-lin-icon-Dke_1AmT.cjs"),ke={class:"chart-panel"},Ne={class:"panel-header"},De={class:"header-left"},Ve={class:"panel-title"},Me={class:"header-right"},we={class:"indicator-selector-panel"},He={class:"indicator-select-all"},je={class:"indicator-group-title"},Ae={class:"legend-bar"},Ie={class:"legend-items"},Be=["onClick"],Oe={class:"legend-text"},Le={key:0,class:"legend-pagination"},Te=["disabled"],Re={class:"page-num"},$e=["disabled"],qe=["id"],Pe={DEFAULT_ICON:se.DEFAULT_ICON,ACTIVE_ICON:se.ACTIVE_ICON,NAME_CN:"GNSS指标时序演变曲线",NAME_EN:"GNSS Time Series Chart",ORDER:2},ze={title:{value:"指标时序演变曲线",type:"string",label:"图表标题"},bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},gridColor:{value:"#e0e0e0",type:"color",label:"网格线颜色"},legendPageSize:{value:4,type:"number",label:"图例每页数量",min:2,max:8},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},Ge=[{object_id:"",fv:"x_speed",name:"X速度(mm/h)",group:"速度指标 (mm/h)",color:"#3373CC"},{object_id:"",fv:"y_speed",name:"Y速度(mm/h)",group:"速度指标 (mm/h)",color:"#91cc75"},{object_id:"",fv:"h_speed",name:"H速度(mm/h)",group:"速度指标 (mm/h)",color:"#fac858"},{object_id:"",fv:"xy_speed",name:"XY速度(mm/h)",group:"速度指标 (mm/h)",color:"#ee6666"},{object_id:"",fv:"xyh_speed",name:"XYH速度(mm/h)",group:"速度指标 (mm/h)",color:"#9a60b4"}],Xe=["object_id","fv","name","group","color"],Fe=["mosaic","statistics","statisticsRealtime"],Ue={useAlias:!1,multiObject:!0,source:"mosaic"},Ke={DEFAULT:Pe,OPTIONS:ze,DATA:Ge,PARAMS:Xe,SOURCE:Fe,COMMON:Ue},We=e.defineComponent(ae(oe({},Ke),{__name:"gnssTimeSeriesChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(m){const c=m,i=new Map;let I="";class B extends Ye.EChartComponentBase{extractStyles(){var a,l,d,s,r,w,O,H,L;const t=(a=this.props.conf)==null?void 0:a.options,n=((l=t==null?void 0:t.linkChannel)==null?void 0:l.value)||"gnss",u=((d=t==null?void 0:t.customChannel)==null?void 0:d.value)||"";return{title:((s=t==null?void 0:t.title)==null?void 0:s.value)||"指标时序演变曲线",bgColor:((r=t==null?void 0:t.bgColor)==null?void 0:r.value)||"#f5f7fa",panelBgColor:((w=t==null?void 0:t.panelBgColor)==null?void 0:w.value)||"#ffffff",textColor:((O=t==null?void 0:t.textColor)==null?void 0:O.value)||"#333333",gridColor:((H=t==null?void 0:t.gridColor)==null?void 0:H.value)||"#e0e0e0",legendPageSize:((L=t==null?void 0:t.legendPageSize)==null?void 0:L.value)||4,linkChannel:n==="custom"&&u?u:n}}getChartOption(){return q(this.Style.value)}onPreview(){i.clear(),this.session.value&&Promise.resolve().then(()=>require("./request-BcQP_dWt.cjs")).then(({formatRequest:a})=>{const l=a(this.props.conf,this.props.uid,this.componentType);this.session.value.registerComponent({id:this.props.conf.id,request:l,onUpdate:(d,s)=>{d==="realtime"&&this.setSocketData(s)}})});const{common:t,data:n}=this.props.conf,u=this.getSource();if(t.multiObject&&Array.isArray(n)){const a=new Set;n.forEach(l=>{const d=this.resolveObjectId(l);d&&!a.has(d)&&(a.add(d),this.subscribeBySource(u,d))})}else{const a=this.resolveObjectId();this.subscribeBySource(u,a)}}setSocketData(t){var a;if(!t)return;const n=t.datetime?t.datetime.split(".")[0]:p.dayjs().format("YYYY/MM/DD HH:mm"),u=`${n}_${JSON.stringify(t.data||"")}`;u!==I&&(I=u,(((a=this.props.conf)==null?void 0:a.data)||[]).forEach(l=>{if(!l.fv)return;const d=this.extractDataValue(t,l.fv);if(d==null)return;const s=g.value?`GNSS${g.value}-${v(l)}`:v(l),r=i.get(s);r?(r.times.push(n),r.values.push(d),r.times.length>200&&(r.times.shift(),r.values.shift())):i.set(s,{times:[n],values:[d]})}),this.chartObj&&this.chartObj.setOption(q(this.Style.value),!1))}onLinkEvent(t){ve(t)}}const h=new B(c,"gnssTimeSeriesChart");h.setupLifecycle();const y=h.getStyle(),V=h.getEchartId(),f=e.computed(()=>{var o;return((o=c.conf)==null?void 0:o.data)||[]}),Y=e.computed(()=>{const o=new Set;return f.value.filter(t=>t.fv&&!o.has(t.fv)?(o.add(t.fv),!0):!1)}),g=e.ref(""),E=e.ref(""),k=e.reactive({timeRange:"1d",dateRange:[p.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),p.dayjs().format("YYYY/MM/DD HH:mm")]}),G=()=>ne(null,null,function*(){var l,d,s;if(c.mode==="edit"){K(),M();return}if(!E.value)return;i.clear();const o=(l=h.session)==null?void 0:l.value,t=(d=c.conf)==null?void 0:d.id;o!=null&&o.componentRequests&&t&&o.componentRequests.delete(t);const{data:n,common:u}=c.conf;Array.isArray(n)&&n.forEach(r=>{r.object_id=E.value}),u.multiObject||(u.object_id=E.value);try{const r=p.dayjs(k.dateRange[0],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),w=p.dayjs(k.dateRange[1],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),O=p.dayjs(k.dateRange[1],"YYYY/MM/DD HH:mm").diff(p.dayjs(k.dateRange[0],"YYYY/MM/DD HH:mm"),"second"),H=Math.max(60,Math.floor(O/200)),L=(c.conf.data||[]).map(j=>j.fv).filter(Boolean),_e=[{block_mapping:"influxdbproxy",action:"get_mosaic_list_with_time_span",start_time:r,end_time:w,time_span:H,time_swing:H,keys:L,object_id:E.value}],P=yield new Promise(j=>{Ee.api.platform(W=>{j(W.result)},{block_mapping:"mixtools",action:"get_tools_mosaic_list",condition:_e})}),z=Array.isArray(P)?((s=P[0])==null?void 0:s.data)||P[0]||[]:[];if(Array.isArray(z)&&z.length>0){const j=[...z].sort((C,D)=>{const T=C.time||C.datetime||"",x=D.time||D.datetime||"";return new Date(T).getTime()-new Date(x).getTime()});(c.conf.data||[]).forEach(C=>{if(!C.fv)return;const D=[],T=[];if(j.forEach(x=>{const J=x.time||x.datetime,Z=x[C.fv];if(J&&Z!=null){const Q=parseFloat(Z);isNaN(Q)||(D.push(p.dayjs(J).format("YYYY/MM/DD HH:mm")),T.push(Q))}}),D.length>0){const x=g.value?`GNSS${g.value}-${v(C)}`:v(C);i.set(x,{times:D,values:T})}})}console.log(`[GNSS时序曲线] 历史数据加载完成,共 ${i.size} 个指标,时间范围: ${r} ~ ${w}`)}catch(r){console.warn("[GNSS时序曲线] 历史数据获取失败,将等待实时数据:",r)}M();const a=h.getSource();h.subscribeBySource(a,E.value)}),re={x_speed:"X速度(mm/h)",y_speed:"Y速度(mm/h)",h_speed:"H速度(mm/h)",xy_speed:"XY速度(mm/h)",xyh_speed:"XYH速度(mm/h)",x_disp:"X位移(mm)",y_disp:"Y位移(mm)",h_disp:"H位移(mm)",xy_disp:"XY位移(mm)",xyh_disp:"XYH位移(mm)",x_cum_disp:"X累积位移(mm)",y_cum_disp:"Y累积位移(mm)",h_cum_disp:"H累积位移(mm)",xy_cum_disp:"XY累积位移(mm)",xyh_cum_disp:"XYH累积位移(mm)",x_accel:"X加速度(mm/h²)",y_accel:"Y加速度(mm/h²)",h_accel:"H加速度(mm/h²)",tangent_angle:"切线角(°)"},v=o=>o.name||re[o.fv]||o.fv,N=e.computed(()=>Y.value.map(o=>({name:v(o),fv:o.fv,color:o.color}))),ie=e.computed(()=>{const o=new Map;return Y.value.forEach(t=>{const n=t.group||"未分组";o.has(n)||o.set(n,[]),o.get(n).push({name:v(t),fv:t.fv,color:t.color})}),Array.from(o.entries()).map(([t,n])=>({group:t,items:n}))}),_=e.ref(N.value.map(o=>o.fv)),X=e.computed({get:()=>_.value.length===N.value.length&&N.value.length>0,set:()=>{}}),ce=e.computed(()=>{const o=_.value.length;return o>0&&o<N.value.length}),de=e.computed(()=>_.value.length===0?"选择指标":_.value.length===N.value.length?"全选所有指标":`已选 ${_.value.length} 项指标`),ue=o=>{_.value=o?N.value.map(t=>t.fv):[],M()},b=e.ref(1),S=e.ref(new Set),F=e.computed(()=>{const o=new Set(_.value),t=g.value;return f.value.filter(n=>o.has(n.fv)).map(n=>({name:t?`GNSS${t}-${v(n)}`:v(n),fv:n.fv,color:n.color}))}),U=e.computed(()=>F.value.map(o=>({name:o.name,color:o.color,visible:!S.value.has(o.name)}))),R=e.computed(()=>y.value.legendPageSize||4),$=e.computed(()=>Math.max(1,Math.ceil(U.value.length/R.value))),me=e.computed(()=>U.value.slice((b.value-1)*R.value,b.value*R.value)),pe=o=>{S.value.has(o.name)?S.value.delete(o.name):S.value.add(o.name),S.value=new Set(S.value),M()},fe=e.computed(()=>({backgroundColor:y.value.bgColor,color:y.value.textColor})),he={x_speed:{base:38,amplitude:6},y_speed:{base:32,amplitude:5},h_speed:{base:5,amplitude:4},xy_speed:{base:15,amplitude:8},xyh_speed:{base:18,amplitude:7}},K=()=>{i.clear();const o=p.dayjs(),n=(parseInt(g.value)||50)/90;f.value.forEach(u=>{const a=he[u.fv]||{base:20,amplitude:5},l=[],d=[];for(let r=0;r<100;r++)l.push(o.subtract((100-r)*10,"minute").format("YYYY/MM/DD HH:mm")),d.push(+(a.base*n+(Math.random()-.5)*a.amplitude+Math.sin(r/8)*a.amplitude*.3).toFixed(2));const s=g.value?`GNSS${g.value}-${v(u)}`:v(u);i.set(s,{times:l,values:d})})},q=o=>{if(c.mode!=="edit"&&i.size===0)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};let t=[];for(const[,a]of i)a.times.length>t.length&&(t=a.times);!t.length&&c.mode==="edit"&&(t=Array.from({length:20},(a,l)=>p.dayjs().subtract((20-l)*60,"minute").format("YYYY/MM/DD HH:mm")));const n={},u=F.value.map(a=>{n[a.name]=!S.value.has(a.name);const l=i.get(a.name);return{name:a.name,type:"line",data:(l==null?void 0:l.values)||[],smooth:!1,symbol:"none",lineStyle:{color:a.color,width:1.5},itemStyle:{color:a.color}}});return{grid:{top:15,right:30,bottom:60,left:55},legend:{show:!1,selected:n},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#e5e7eb",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},xAxis:{type:"category",data:t,axisLine:{lineStyle:{color:o.gridColor}},axisLabel:{color:o.textColor,fontSize:11,rotate:30,interval:"auto",formatter:a=>{var l;if(a&&a.length>6){const d=a.split(" ");return(((l=d[0])==null?void 0:l.split("/").slice(1).join("/"))||"")+(d[1]?" "+d[1]:"")}return a}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",axisLine:{show:!1},axisLabel:{color:o.textColor,fontSize:11},splitLine:{lineStyle:{color:o.gridColor,type:"dashed"}}},series:u,dataZoom:[{type:"slider",xAxisIndex:0,bottom:8,height:20,borderColor:"#ddd",fillerColor:"rgba(51,115,204,0.15)",handleStyle:{color:"#3373CC"},textStyle:{fontSize:10}},{type:"inside",xAxisIndex:0,filterMode:"none"}]}},M=()=>{const o=h.getChartInstance();o&&o.setOption(q(y.value),!0)},ge=()=>{const o=h.getChartInstance();if(!o)return;const t=document.createElement("a");t.href=o.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t.download=`指标时序演变曲线_${p.dayjs().format("YYYYMMDDHHmmss")}.png`,t.click()},ve=o=>{const{payload:t}=o;if(!t)return;if(t.type==="filter"){t.point!=null&&(g.value=String(t.point)),t.objectId!=null&&(E.value=String(t.objectId)),t.timeRange&&(k.timeRange=t.timeRange),t.dateRange&&(k.dateRange=t.dateRange),G();return}const n=t.point||t.deviceId;n&&(g.value=String(n),G())};return c.mode==="edit"&&K(),(o,t)=>{const n=A.ElIcon,u=A.ElButton,a=A.ElCheckbox,l=A.ElCheckboxGroup,d=A.ElPopover;return e.openBlock(),e.createElementBlock("div",{class:"gnss-tsc",style:e.normalizeStyle(fe.value)},[e.createElementVNode("div",ke,[e.createElementVNode("div",Ne,[e.createElementVNode("div",De,[t[4]||(t[4]=e.createElementVNode("span",{class:"indicator-dot blue"},null,-1)),e.createElementVNode("span",Ve,e.toDisplayString(e.unref(y).title),1)]),e.createElementVNode("div",Me,[e.createVNode(d,{placement:"bottom-start",width:220,trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(u,{size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(de.value),1),e.createVNode(n,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(le.ArrowDown))]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",we,[e.createElementVNode("div",He,[e.createVNode(a,{modelValue:X.value,"onUpdate:modelValue":t[0]||(t[0]=s=>X.value=s),indeterminate:ce.value,onChange:ue},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("全选所有指标",-1)])]),_:1},8,["modelValue","indeterminate"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ie.value,s=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s.group},[e.createElementVNode("div",je,e.toDisplayString(s.group),1),e.createVNode(l,{modelValue:_.value,"onUpdate:modelValue":t[1]||(t[1]=r=>_.value=r),onChange:M},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,r=>(e.openBlock(),e.createBlock(a,{key:r.fv,label:r.fv,class:"indicator-checkbox-item"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.name),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue"])],64))),128))])]),_:1}),e.createVNode(u,{size:"small",onClick:ge},{default:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(le.Download))]),_:1}),t[6]||(t[6]=e.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),e.createElementVNode("div",Ae,[e.createElementVNode("div",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(me.value,s=>(e.openBlock(),e.createElementBlock("span",{key:s.name,class:e.normalizeClass(["legend-item",{disabled:!s.visible}]),onClick:r=>pe(s)},[e.createElementVNode("span",{class:"legend-symbol",style:e.normalizeStyle({borderColor:s.color})},[e.createElementVNode("span",{class:"legend-dot",style:e.normalizeStyle({backgroundColor:s.visible?s.color:"#ccc"})},null,4)],4),e.createElementVNode("span",Oe,e.toDisplayString(s.name),1)],10,Be))),128))]),$.value>1?(e.openBlock(),e.createElementBlock("div",Le,[e.createElementVNode("button",{class:"page-arrow",disabled:b.value<=1,onClick:t[2]||(t[2]=s=>b.value--)},"◀",8,Te),e.createElementVNode("span",Re,e.toDisplayString(b.value)+"/"+e.toDisplayString($.value),1),e.createElementVNode("button",{class:"page-arrow",disabled:b.value>=$.value,onClick:t[3]||(t[3]=s=>b.value++)},"▶",8,$e)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{id:e.unref(V),class:"chart-container"},null,8,qe)]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4)}}})),Je=p._export_sfc(We,[["__scopeId","data-v-fd7f9699"]]);exports.default=Je;
|
|
1
|
+
"use strict";var ye=Object.defineProperty,be=Object.defineProperties;var Se=Object.getOwnPropertyDescriptors;var ee=Object.getOwnPropertySymbols;var Ce=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable;var te=(m,c,i)=>c in m?ye(m,c,{enumerable:!0,configurable:!0,writable:!0,value:i}):m[c]=i,oe=(m,c)=>{for(var i in c||(c={}))Ce.call(c,i)&&te(m,i,c[i]);if(ee)for(var i of ee(c))xe.call(c,i)&&te(m,i,c[i]);return m},ae=(m,c)=>be(m,Se(c));var ne=(m,c,i)=>new Promise((I,B)=>{var h=f=>{try{V(i.next(f))}catch(Y){B(Y)}},y=f=>{try{V(i.throw(f))}catch(Y){B(Y)}},V=f=>f.done?I(f.value):Promise.resolve(f.value).then(h,y);V((i=i.apply(m,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=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 e=require("vue");require("html2canvas");const p=require("./index-CtAaj9XN.cjs"),Ye=require("./EChartComponentBase-CUbabNTX.cjs"),le=require("@element-plus/icons-vue"),Ee=require("./api-BR57NNEB.cjs"),se=require("./ele-lin-icon-Dke_1AmT.cjs"),ke={class:"chart-panel"},Ne={class:"panel-header"},De={class:"header-left"},Ve={class:"panel-title"},Me={class:"header-right"},we={class:"indicator-selector-panel"},He={class:"indicator-select-all"},je={class:"indicator-group-title"},Ae={class:"legend-bar"},Ie={class:"legend-items"},Be=["onClick"],Oe={class:"legend-text"},Le={key:0,class:"legend-pagination"},Te=["disabled"],Re={class:"page-num"},$e=["disabled"],qe=["id"],Pe={DEFAULT_ICON:se.DEFAULT_ICON,ACTIVE_ICON:se.ACTIVE_ICON,NAME_CN:"GNSS指标时序演变曲线",NAME_EN:"GNSS Time Series Chart",ORDER:2},ze={title:{value:"指标时序演变曲线",type:"string",label:"图表标题"},bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},gridColor:{value:"#e0e0e0",type:"color",label:"网格线颜色"},legendPageSize:{value:4,type:"number",label:"图例每页数量",min:2,max:8},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},Ge=[{object_id:"",fv:"x_speed",name:"X速度(mm/h)",group:"速度指标 (mm/h)",color:"#3373CC"},{object_id:"",fv:"y_speed",name:"Y速度(mm/h)",group:"速度指标 (mm/h)",color:"#91cc75"},{object_id:"",fv:"h_speed",name:"H速度(mm/h)",group:"速度指标 (mm/h)",color:"#fac858"},{object_id:"",fv:"xy_speed",name:"XY速度(mm/h)",group:"速度指标 (mm/h)",color:"#ee6666"},{object_id:"",fv:"xyh_speed",name:"XYH速度(mm/h)",group:"速度指标 (mm/h)",color:"#9a60b4"}],Xe=["object_id","fv","name","group","color"],Fe=["mosaic","statistics","statisticsRealtime"],Ue={useAlias:!1,multiObject:!0,source:"mosaic"},Ke={DEFAULT:Pe,OPTIONS:ze,DATA:Ge,PARAMS:Xe,SOURCE:Fe,COMMON:Ue},We=e.defineComponent(ae(oe({},Ke),{__name:"gnssTimeSeriesChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(m){const c=m,i=new Map;let I="";class B extends Ye.EChartComponentBase{extractStyles(){var a,l,d,s,r,w,O,H,L;const t=(a=this.props.conf)==null?void 0:a.options,n=((l=t==null?void 0:t.linkChannel)==null?void 0:l.value)||"gnss",u=((d=t==null?void 0:t.customChannel)==null?void 0:d.value)||"";return{title:((s=t==null?void 0:t.title)==null?void 0:s.value)||"指标时序演变曲线",bgColor:((r=t==null?void 0:t.bgColor)==null?void 0:r.value)||"#f5f7fa",panelBgColor:((w=t==null?void 0:t.panelBgColor)==null?void 0:w.value)||"#ffffff",textColor:((O=t==null?void 0:t.textColor)==null?void 0:O.value)||"#333333",gridColor:((H=t==null?void 0:t.gridColor)==null?void 0:H.value)||"#e0e0e0",legendPageSize:((L=t==null?void 0:t.legendPageSize)==null?void 0:L.value)||4,linkChannel:n==="custom"&&u?u:n}}getChartOption(){return q(this.Style.value)}onPreview(){i.clear(),this.session.value&&Promise.resolve().then(()=>require("./request-DWe5EztR.cjs")).then(({formatRequest:a})=>{const l=a(this.props.conf,this.props.uid,this.componentType);this.session.value.registerComponent({id:this.props.conf.id,request:l,onUpdate:(d,s)=>{d==="realtime"&&this.setSocketData(s)}})});const{common:t,data:n}=this.props.conf,u=this.getSource();if(t.multiObject&&Array.isArray(n)){const a=new Set;n.forEach(l=>{const d=this.resolveObjectId(l);d&&!a.has(d)&&(a.add(d),this.subscribeBySource(u,d))})}else{const a=this.resolveObjectId();this.subscribeBySource(u,a)}}setSocketData(t){var a;if(!t)return;const n=t.datetime?t.datetime.split(".")[0]:p.dayjs().format("YYYY/MM/DD HH:mm"),u=`${n}_${JSON.stringify(t.data||"")}`;u!==I&&(I=u,(((a=this.props.conf)==null?void 0:a.data)||[]).forEach(l=>{if(!l.fv)return;const d=this.extractDataValue(t,l.fv);if(d==null)return;const s=g.value?`GNSS${g.value}-${v(l)}`:v(l),r=i.get(s);r?(r.times.push(n),r.values.push(d),r.times.length>200&&(r.times.shift(),r.values.shift())):i.set(s,{times:[n],values:[d]})}),this.chartObj&&this.chartObj.setOption(q(this.Style.value),!1))}onLinkEvent(t){ve(t)}}const h=new B(c,"gnssTimeSeriesChart");h.setupLifecycle();const y=h.getStyle(),V=h.getEchartId(),f=e.computed(()=>{var o;return((o=c.conf)==null?void 0:o.data)||[]}),Y=e.computed(()=>{const o=new Set;return f.value.filter(t=>t.fv&&!o.has(t.fv)?(o.add(t.fv),!0):!1)}),g=e.ref(""),E=e.ref(""),k=e.reactive({timeRange:"1d",dateRange:[p.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),p.dayjs().format("YYYY/MM/DD HH:mm")]}),G=()=>ne(null,null,function*(){var l,d,s;if(c.mode==="edit"){K(),M();return}if(!E.value)return;i.clear();const o=(l=h.session)==null?void 0:l.value,t=(d=c.conf)==null?void 0:d.id;o!=null&&o.componentRequests&&t&&o.componentRequests.delete(t);const{data:n,common:u}=c.conf;Array.isArray(n)&&n.forEach(r=>{r.object_id=E.value}),u.multiObject||(u.object_id=E.value);try{const r=p.dayjs(k.dateRange[0],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),w=p.dayjs(k.dateRange[1],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),O=p.dayjs(k.dateRange[1],"YYYY/MM/DD HH:mm").diff(p.dayjs(k.dateRange[0],"YYYY/MM/DD HH:mm"),"second"),H=Math.max(60,Math.floor(O/200)),L=(c.conf.data||[]).map(j=>j.fv).filter(Boolean),_e=[{block_mapping:"influxdbproxy",action:"get_mosaic_list_with_time_span",start_time:r,end_time:w,time_span:H,time_swing:H,keys:L,object_id:E.value}],P=yield new Promise(j=>{Ee.api.platform(W=>{j(W.result)},{block_mapping:"mixtools",action:"get_tools_mosaic_list",condition:_e})}),z=Array.isArray(P)?((s=P[0])==null?void 0:s.data)||P[0]||[]:[];if(Array.isArray(z)&&z.length>0){const j=[...z].sort((C,D)=>{const T=C.time||C.datetime||"",x=D.time||D.datetime||"";return new Date(T).getTime()-new Date(x).getTime()});(c.conf.data||[]).forEach(C=>{if(!C.fv)return;const D=[],T=[];if(j.forEach(x=>{const J=x.time||x.datetime,Z=x[C.fv];if(J&&Z!=null){const Q=parseFloat(Z);isNaN(Q)||(D.push(p.dayjs(J).format("YYYY/MM/DD HH:mm")),T.push(Q))}}),D.length>0){const x=g.value?`GNSS${g.value}-${v(C)}`:v(C);i.set(x,{times:D,values:T})}})}console.log(`[GNSS时序曲线] 历史数据加载完成,共 ${i.size} 个指标,时间范围: ${r} ~ ${w}`)}catch(r){console.warn("[GNSS时序曲线] 历史数据获取失败,将等待实时数据:",r)}M();const a=h.getSource();h.subscribeBySource(a,E.value)}),re={x_speed:"X速度(mm/h)",y_speed:"Y速度(mm/h)",h_speed:"H速度(mm/h)",xy_speed:"XY速度(mm/h)",xyh_speed:"XYH速度(mm/h)",x_disp:"X位移(mm)",y_disp:"Y位移(mm)",h_disp:"H位移(mm)",xy_disp:"XY位移(mm)",xyh_disp:"XYH位移(mm)",x_cum_disp:"X累积位移(mm)",y_cum_disp:"Y累积位移(mm)",h_cum_disp:"H累积位移(mm)",xy_cum_disp:"XY累积位移(mm)",xyh_cum_disp:"XYH累积位移(mm)",x_accel:"X加速度(mm/h²)",y_accel:"Y加速度(mm/h²)",h_accel:"H加速度(mm/h²)",tangent_angle:"切线角(°)"},v=o=>o.name||re[o.fv]||o.fv,N=e.computed(()=>Y.value.map(o=>({name:v(o),fv:o.fv,color:o.color}))),ie=e.computed(()=>{const o=new Map;return Y.value.forEach(t=>{const n=t.group||"未分组";o.has(n)||o.set(n,[]),o.get(n).push({name:v(t),fv:t.fv,color:t.color})}),Array.from(o.entries()).map(([t,n])=>({group:t,items:n}))}),_=e.ref(N.value.map(o=>o.fv)),X=e.computed({get:()=>_.value.length===N.value.length&&N.value.length>0,set:()=>{}}),ce=e.computed(()=>{const o=_.value.length;return o>0&&o<N.value.length}),de=e.computed(()=>_.value.length===0?"选择指标":_.value.length===N.value.length?"全选所有指标":`已选 ${_.value.length} 项指标`),ue=o=>{_.value=o?N.value.map(t=>t.fv):[],M()},b=e.ref(1),S=e.ref(new Set),F=e.computed(()=>{const o=new Set(_.value),t=g.value;return f.value.filter(n=>o.has(n.fv)).map(n=>({name:t?`GNSS${t}-${v(n)}`:v(n),fv:n.fv,color:n.color}))}),U=e.computed(()=>F.value.map(o=>({name:o.name,color:o.color,visible:!S.value.has(o.name)}))),R=e.computed(()=>y.value.legendPageSize||4),$=e.computed(()=>Math.max(1,Math.ceil(U.value.length/R.value))),me=e.computed(()=>U.value.slice((b.value-1)*R.value,b.value*R.value)),pe=o=>{S.value.has(o.name)?S.value.delete(o.name):S.value.add(o.name),S.value=new Set(S.value),M()},fe=e.computed(()=>({backgroundColor:y.value.bgColor,color:y.value.textColor})),he={x_speed:{base:38,amplitude:6},y_speed:{base:32,amplitude:5},h_speed:{base:5,amplitude:4},xy_speed:{base:15,amplitude:8},xyh_speed:{base:18,amplitude:7}},K=()=>{i.clear();const o=p.dayjs(),n=(parseInt(g.value)||50)/90;f.value.forEach(u=>{const a=he[u.fv]||{base:20,amplitude:5},l=[],d=[];for(let r=0;r<100;r++)l.push(o.subtract((100-r)*10,"minute").format("YYYY/MM/DD HH:mm")),d.push(+(a.base*n+(Math.random()-.5)*a.amplitude+Math.sin(r/8)*a.amplitude*.3).toFixed(2));const s=g.value?`GNSS${g.value}-${v(u)}`:v(u);i.set(s,{times:l,values:d})})},q=o=>{if(c.mode!=="edit"&&i.size===0)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};let t=[];for(const[,a]of i)a.times.length>t.length&&(t=a.times);!t.length&&c.mode==="edit"&&(t=Array.from({length:20},(a,l)=>p.dayjs().subtract((20-l)*60,"minute").format("YYYY/MM/DD HH:mm")));const n={},u=F.value.map(a=>{n[a.name]=!S.value.has(a.name);const l=i.get(a.name);return{name:a.name,type:"line",data:(l==null?void 0:l.values)||[],smooth:!1,symbol:"none",lineStyle:{color:a.color,width:1.5},itemStyle:{color:a.color}}});return{grid:{top:15,right:30,bottom:60,left:55},legend:{show:!1,selected:n},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#e5e7eb",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},xAxis:{type:"category",data:t,axisLine:{lineStyle:{color:o.gridColor}},axisLabel:{color:o.textColor,fontSize:11,rotate:30,interval:"auto",formatter:a=>{var l;if(a&&a.length>6){const d=a.split(" ");return(((l=d[0])==null?void 0:l.split("/").slice(1).join("/"))||"")+(d[1]?" "+d[1]:"")}return a}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",axisLine:{show:!1},axisLabel:{color:o.textColor,fontSize:11},splitLine:{lineStyle:{color:o.gridColor,type:"dashed"}}},series:u,dataZoom:[{type:"slider",xAxisIndex:0,bottom:8,height:20,borderColor:"#ddd",fillerColor:"rgba(51,115,204,0.15)",handleStyle:{color:"#3373CC"},textStyle:{fontSize:10}},{type:"inside",xAxisIndex:0,filterMode:"none"}]}},M=()=>{const o=h.getChartInstance();o&&o.setOption(q(y.value),!0)},ge=()=>{const o=h.getChartInstance();if(!o)return;const t=document.createElement("a");t.href=o.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t.download=`指标时序演变曲线_${p.dayjs().format("YYYYMMDDHHmmss")}.png`,t.click()},ve=o=>{const{payload:t}=o;if(!t)return;if(t.type==="filter"){t.point!=null&&(g.value=String(t.point)),t.objectId!=null&&(E.value=String(t.objectId)),t.timeRange&&(k.timeRange=t.timeRange),t.dateRange&&(k.dateRange=t.dateRange),G();return}const n=t.point||t.deviceId;n&&(g.value=String(n),G())};return c.mode==="edit"&&K(),(o,t)=>{const n=A.ElIcon,u=A.ElButton,a=A.ElCheckbox,l=A.ElCheckboxGroup,d=A.ElPopover;return e.openBlock(),e.createElementBlock("div",{class:"gnss-tsc",style:e.normalizeStyle(fe.value)},[e.createElementVNode("div",ke,[e.createElementVNode("div",Ne,[e.createElementVNode("div",De,[t[4]||(t[4]=e.createElementVNode("span",{class:"indicator-dot blue"},null,-1)),e.createElementVNode("span",Ve,e.toDisplayString(e.unref(y).title),1)]),e.createElementVNode("div",Me,[e.createVNode(d,{placement:"bottom-start",width:220,trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(u,{size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(de.value),1),e.createVNode(n,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(le.ArrowDown))]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",we,[e.createElementVNode("div",He,[e.createVNode(a,{modelValue:X.value,"onUpdate:modelValue":t[0]||(t[0]=s=>X.value=s),indeterminate:ce.value,onChange:ue},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("全选所有指标",-1)])]),_:1},8,["modelValue","indeterminate"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ie.value,s=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s.group},[e.createElementVNode("div",je,e.toDisplayString(s.group),1),e.createVNode(l,{modelValue:_.value,"onUpdate:modelValue":t[1]||(t[1]=r=>_.value=r),onChange:M},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,r=>(e.openBlock(),e.createBlock(a,{key:r.fv,label:r.fv,class:"indicator-checkbox-item"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.name),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue"])],64))),128))])]),_:1}),e.createVNode(u,{size:"small",onClick:ge},{default:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(le.Download))]),_:1}),t[6]||(t[6]=e.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),e.createElementVNode("div",Ae,[e.createElementVNode("div",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(me.value,s=>(e.openBlock(),e.createElementBlock("span",{key:s.name,class:e.normalizeClass(["legend-item",{disabled:!s.visible}]),onClick:r=>pe(s)},[e.createElementVNode("span",{class:"legend-symbol",style:e.normalizeStyle({borderColor:s.color})},[e.createElementVNode("span",{class:"legend-dot",style:e.normalizeStyle({backgroundColor:s.visible?s.color:"#ccc"})},null,4)],4),e.createElementVNode("span",Oe,e.toDisplayString(s.name),1)],10,Be))),128))]),$.value>1?(e.openBlock(),e.createElementBlock("div",Le,[e.createElementVNode("button",{class:"page-arrow",disabled:b.value<=1,onClick:t[2]||(t[2]=s=>b.value--)},"◀",8,Te),e.createElementVNode("span",Re,e.toDisplayString(b.value)+"/"+e.toDisplayString($.value),1),e.createElementVNode("button",{class:"page-arrow",disabled:b.value>=$.value,onClick:t[3]||(t[3]=s=>b.value++)},"▶",8,$e)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{id:e.unref(V),class:"chart-container"},null,8,qe)]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4)}}})),Je=p._export_sfc(We,[["__scopeId","data-v-fd7f9699"]]);exports.default=Je;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var J=Object.defineProperty,K=Object.defineProperties;var Q=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var V=Math.pow,R=(h,u,n)=>u in h?J(h,u,{enumerable:!0,configurable:!0,writable:!0,value:n}):h[u]=n,v=(h,u)=>{for(var n in u||(u={}))Z.call(u,n)&&R(h,n,u[n]);if(q)for(var n of q(u))ee.call(u,n)&&R(h,n,u[n]);return h},_=(h,u)=>K(h,Q(u));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const t=require("vue");require("html2canvas");const f=require("./index-
|
|
1
|
+
"use strict";var J=Object.defineProperty,K=Object.defineProperties;var Q=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var V=Math.pow,R=(h,u,n)=>u in h?J(h,u,{enumerable:!0,configurable:!0,writable:!0,value:n}):h[u]=n,v=(h,u)=>{for(var n in u||(u={}))Z.call(u,n)&&R(h,n,u[n]);if(q)for(var n of q(u))ee.call(u,n)&&R(h,n,u[n]);return h},_=(h,u)=>K(h,Q(u));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const t=require("vue");require("html2canvas");const f=require("./index-CtAaj9XN.cjs"),te=require("./EChartComponentBase-CUbabNTX.cjs"),oe=require("@element-plus/icons-vue"),ne=require("./api-BR57NNEB.cjs"),X=require("./ele-lin-icon-Dke_1AmT.cjs"),ae={class:"chart-panel"},re={class:"panel-header"},se={class:"header-left"},le={class:"panel-title"},ie={class:"header-right"},ce=["id"],de={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"GNSS XY平面位移矢量轨迹图",NAME_EN:"GNSS XY Trajectory Chart",ORDER:3},ue={title:{value:"XY 平面位移矢量轨迹图",type:"string",label:"图表标题"},bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},gridColor:{value:"#e0e0e0",type:"color",label:"网格线颜色"},trajectoryColor:{value:"#3373CC",type:"color",label:"轨迹线颜色"},arrowColor:{value:"#ee6666",type:"color",label:"方向箭头颜色"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},me=[{name:"X位移",fv:"",object_id:""},{name:"Y位移",fv:"",object_id:""}],fe=["name","fv","object_id"],pe=["mosaic","statistics","statisticsRealtime"],he={useAlias:!1,multiObject:!1,source:"mosaic"},ye={DEFAULT:de,OPTIONS:ue,DATA:me,PARAMS:fe,SOURCE:pe,COMMON:he},be=t.defineComponent(_(v({},ye),{__name:"gnssXYTrajectory",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(h){const u=h,n=t.reactive({points:[],hasOrigin:!1}),b=t.reactive({x:null,y:null}),H=t.ref("day"),S=t.reactive({dateRange:[f.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),f.dayjs().format("YYYY/MM/DD HH:mm")]});class F extends te.EChartComponentBase{extractStyles(){var a,s,l,i,p,x,c,m,g;const e=(a=this.props.conf)==null?void 0:a.options,o=((s=e==null?void 0:e.linkChannel)==null?void 0:s.value)||"gnss",d=((l=e==null?void 0:e.customChannel)==null?void 0:l.value)||"";return{title:((i=e==null?void 0:e.title)==null?void 0:i.value)||"XY 平面位移矢量轨迹图",bgColor:((p=e==null?void 0:e.bgColor)==null?void 0:p.value)||"#f5f7fa",textColor:((x=e==null?void 0:e.textColor)==null?void 0:x.value)||"#333333",gridColor:((c=e==null?void 0:e.gridColor)==null?void 0:c.value)||"#e0e0e0",trajectoryColor:((m=e==null?void 0:e.trajectoryColor)==null?void 0:m.value)||"#3373CC",arrowColor:((g=e==null?void 0:e.arrowColor)==null?void 0:g.value)||"#ee6666",linkChannel:o==="custom"&&d?d:o}}getChartOption(){return D(this.Style.value)}onPreview(){this.getPreviewHelper().preview();const{common:e,data:o}=this.props.conf,d=this.getSource(),a=new Set;e.object_id&&a.add(e.object_id),Array.isArray(o)&&o.forEach(s=>{s.object_id&&a.add(s.object_id)}),a.forEach(s=>this.subscribeBySource(d,s))}setSocketData(e){var p;if(!e)return;const o=(p=this.props.conf)==null?void 0:p.data;if(!o||o.length<2)return;const d=this.extractDataValue(e,o[0].fv),a=this.extractDataValue(e,o[1].fv);let s=!1;if(d!=null&&(b.x=Number(d),s=!0),a!=null&&(b.y=Number(a),s=!0),!s||b.x===null||b.y===null)return;const l=e.datetime?e.datetime.split(".")[0]:f.dayjs().format("YYYY/MM/DD HH:mm");n.hasOrigin||(n.points.push({time:l,x:0,y:0}),n.hasOrigin=!0);const i=n.points[n.points.length-1];i&&i.x===b.x&&i.y===b.y||(n.points.push({time:l,x:b.x,y:b.y}),n.points.length>500&&n.points.shift(),this.chartObj&&this.chartObj.setOption(D(this.Style.value),!1))}onLinkEvent(e){var d,a,s;const o=e.payload;if(o&&(o.dateRange&&(S.dateRange=o.dateRange),o.type==="filter"||o.point||o.deviceId||o.objectId)){const l=o.objectId||o.object_id||"";if(n.points=[],n.hasOrigin=!1,b.x=null,b.y=null,l&&this.props.mode!=="edit"){const i=(d=this.session)==null?void 0:d.value,p=(a=this.props.conf)==null?void 0:a.id;i!=null&&i.componentRequests&&p&&i.componentRequests.delete(p);const{data:x,common:c}=this.props.conf;Array.isArray(x)&&x.forEach(y=>{y.object_id=l}),c.multiObject||(c.object_id=l);const m=(s=this.props.conf)==null?void 0:s.data;if(!m||m.length<2)return;const g=m[0].fv,k=m[1].fv,z=f.dayjs(S.dateRange[0],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),I=f.dayjs(S.dateRange[1],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),U=f.dayjs(S.dateRange[1],"YYYY/MM/DD HH:mm").diff(f.dayjs(S.dateRange[0],"YYYY/MM/DD HH:mm"),"second"),T=Math.max(60,Math.floor(U/200)),G=[{block_mapping:"influxdbproxy",action:"get_mosaic_list_with_time_span",start_time:z,end_time:I,time_span:T,time_swing:T,keys:[g,k].filter(Boolean),object_id:l}],M=this;new Promise(y=>{ne.api.platform(w=>{y(w.result)},{block_mapping:"mixtools",action:"get_tools_mosaic_list",condition:G})}).then(y=>{var L;const w=Array.isArray(y)?((L=y[0])==null?void 0:L.data)||y[0]||[]:[];Array.isArray(w)&&w.length>0&&[...w].sort((C,Y)=>{const E=C.time||C.datetime||"",N=Y.time||Y.datetime||"";return new Date(E).getTime()-new Date(N).getTime()}).forEach(C=>{const Y=C.time||C.datetime,E=C[g],N=C[k];Y&&E!=null&&N!=null&&(n.hasOrigin||(n.points.push({time:f.dayjs(Y).format("YYYY/MM/DD HH:mm"),x:0,y:0}),n.hasOrigin=!0),n.points.push({time:f.dayjs(Y).format("YYYY/MM/DD HH:mm"),x:Number(E),y:Number(N)}))}),console.log(`[XY轨迹图] 历史数据加载完成,共 ${n.points.length} 个点,时间范围: ${z} ~ ${I}`),M.chartObj&&M.chartObj.setOption(D(M.Style.value),!0)}).catch(y=>{console.warn("[XY轨迹图] 历史数据获取失败:",y)}).finally(()=>{const y=M.getSource();M.subscribeBySource(y,l)})}else this.chartObj&&this.chartObj.setOption(D(this.Style.value),!0)}}}const j=new F(u,"gnssXYTrajectory");j.setupLifecycle();const O=j.getStyle(),B=j.getEchartId();if(u.mode==="edit"){const r=f.dayjs();let e=0,o=0;const d=a=>(Math.sin(a*9301+49297)%233280/233280+1)%1;for(let a=0;a<=25;a++)e+=(d(a*17)-.5)*8e-4,o+=(d(a*31)-.5)*8e-4,n.points.push({time:r.subtract((25-a)*60,"minute").format("YYYY/MM/DD HH:mm"),x:+e.toFixed(4),y:+o.toFixed(4)});n.hasOrigin=!0}function D(r){const e=P().map(c=>[c.x,c.y]),o=e.length>=2,d=r.trajectoryColor||"#3373CC",a=r.arrowColor||"#ee6666",s="#4a5568",l={xAxis:{type:"value",position:"bottom",axisLine:{show:!0,lineStyle:{color:s,width:1.5},symbol:["none","arrow"],symbolSize:[8,8]},axisLabel:{color:r.textColor,fontSize:11},splitLine:{show:!0,lineStyle:{color:r.gridColor,type:"dashed"}},nameTextStyle:{color:s,fontSize:12}},yAxis:{type:"value",position:"right",axisLine:{show:!0,lineStyle:{color:s,width:1.5},symbol:["none","arrow"],symbolSize:[8,8]},axisLabel:{color:r.textColor,fontSize:11},splitLine:{show:!0,lineStyle:{color:r.gridColor,type:"dashed"}},nameTextStyle:{color:s,fontSize:12}}};if(!o)return{grid:{top:55,right:80,bottom:50,left:30},xAxis:_(v({},l.xAxis),{name:`X位移(mm)
|
|
2
2
|
东(E)`,nameLocation:"end"}),yAxis:_(v({},l.yAxis),{name:`Y位移(mm)
|
|
3
3
|
北(N)`,nameLocation:"end"}),series:[]};const i=[];i.push({name:"参考线",type:"line",data:[e[0],e[e.length-1]],symbol:"none",lineStyle:{color:"#ef4444",width:2},z:1,silent:!0,animation:!1}),i.push({name:"位移轨迹",type:"line",data:e,symbol:"none",lineStyle:{color:d,width:2.5},z:2,silent:!0,animation:!1});const p=[],x=Math.max(1,Math.floor(e.length/12));for(let c=0;c<e.length-1;c+=x){const m=Math.min(c+x,e.length-1),g=Math.atan2(e[m][1]-e[c][1],e[m][0]-e[c][0])*180/Math.PI;p.push({value:e[m],symbol:"triangle",symbolSize:12,symbolRotate:g-90,itemStyle:{color:a,borderColor:"#fff",borderWidth:1.5}})}return p.length&&i.push({name:"位移方向",type:"scatter",data:p,z:5}),i.push({name:"起点",type:"scatter",data:[{value:e[0],symbolSize:10,itemStyle:{color:"#10b981",borderColor:"#fff",borderWidth:2},label:{show:!0,formatter:"起点",position:"left",fontSize:11,color:"#10b981",fontWeight:"bold"}}],z:10}),i.push({name:"终点",type:"scatter",data:[{value:e[e.length-1],symbolSize:10,itemStyle:{color:"#ef4444",borderColor:"#fff",borderWidth:2},label:{show:!0,formatter:"当前",position:"top",fontSize:11,color:"#ef4444",fontWeight:"bold"}}],z:10}),{grid:{top:55,right:80,bottom:50,left:30},tooltip:{trigger:"item",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#e5e7eb",borderWidth:1,textStyle:{color:"#333",fontSize:12},formatter:c=>{if(!c.value||c.value.length<2)return"";const[m,g]=c.value;return`X: ${m.toFixed(4)} mm<br>Y: ${g.toFixed(4)} mm<br>合位移: ${Math.sqrt(V(m,2)+V(g,2)).toFixed(4)} mm`}},legend:{show:!0,bottom:6,textStyle:{color:r.textColor,fontSize:11},data:["参考线","位移轨迹","位移方向"]},xAxis:_(v({},l.xAxis),{name:`X位移(mm)
|
|
4
4
|
东(E)`,nameLocation:"end"}),yAxis:_(v({},l.yAxis),{name:`Y位移(mm)
|
|
@@ -18,10 +18,10 @@ import "element-plus/es/components/select/style/css";
|
|
|
18
18
|
import "element-plus/es/components/option/style/css";
|
|
19
19
|
import { defineComponent as st, reactive as I, ref as rt, openBlock as ct, createElementBlock as mt, normalizeStyle as dt, unref as A, createElementVNode as x, toDisplayString as ut, createVNode as C, withCtx as R, renderSlot as ft } from "vue";
|
|
20
20
|
import "html2canvas";
|
|
21
|
-
import { e as u, _ as pt } from "./index-
|
|
22
|
-
import { E as ht } from "./EChartComponentBase-
|
|
21
|
+
import { e as u, _ as pt } from "./index-yidMosRJ.js";
|
|
22
|
+
import { E as ht } from "./EChartComponentBase-BjiCJlIa.js";
|
|
23
23
|
import { Download as yt } from "@element-plus/icons-vue";
|
|
24
|
-
import { a as bt } from "./api-
|
|
24
|
+
import { a as bt } from "./api-CcAArQi7.js";
|
|
25
25
|
import { A as gt, D as xt } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
26
26
|
const Yt = { class: "chart-panel" }, Ct = { class: "panel-header" }, _t = { class: "header-left" }, vt = { class: "panel-title" }, St = { class: "header-right" }, Dt = ["id"], Mt = { DEFAULT_ICON: xt, ACTIVE_ICON: gt, NAME_CN: "GNSS XY平面位移矢量轨迹图", NAME_EN: "GNSS XY Trajectory Chart", ORDER: 3 }, wt = {
|
|
27
27
|
title: { value: "XY 平面位移矢量轨迹图", type: "string", label: "图表标题" },
|
|
@@ -31,11 +31,11 @@ import "element-plus/es/components/base/style/css";
|
|
|
31
31
|
import "element-plus/es/components/pagination/style/css";
|
|
32
32
|
import { defineComponent as ge, watch as W, computed as H, reactive as ye, ref as Y, onMounted as ve, onBeforeUnmount as he, openBlock as v, createElementBlock as h, normalizeStyle as C, unref as y, createElementVNode as N, toDisplayString as U, Fragment as B, renderList as j, createVNode as be, createCommentVNode as G, renderSlot as _e, nextTick as q } from "vue";
|
|
33
33
|
import { u as Se } from "./vue-i18n-5Nahpzrm.js";
|
|
34
|
-
import { B as Ce, k as ze } from "./element-resize-detector-
|
|
34
|
+
import { B as Ce, k as ze } from "./element-resize-detector-CoRhuer9.js";
|
|
35
35
|
import { g as Oe } from "./titleStyle-BT5GlpAb.js";
|
|
36
36
|
import { g as K, u as Q } from "./params-DfgBemk0.js";
|
|
37
|
-
import { a as x } from "./api-
|
|
38
|
-
import { e as m, _ as Te } from "./index-
|
|
37
|
+
import { a as x } from "./api-CcAArQi7.js";
|
|
38
|
+
import { e as m, _ as Te } from "./index-yidMosRJ.js";
|
|
39
39
|
import { A as we, D as xe } from "./ele-grd-icon-DR52zwGR.js";
|
|
40
40
|
const Ee = { class: "mix-body" }, Ne = {
|
|
41
41
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var X=Object.defineProperty,Z=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var H=(l,f,o)=>f in l?X(l,f,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[f]=o,D=(l,f)=>{for(var o in f||(f={}))te.call(f,o)&&H(l,o,f[o]);if(V)for(var o of V(f))oe.call(f,o)&&H(l,o,f[o]);return l},L=(l,f)=>Z(l,ee(f));var E=(l,f,o)=>new Promise((B,_)=>{var z=h=>{try{m(o.next(h))}catch(i){_(i)}},T=h=>{try{m(o.throw(h))}catch(i){_(i)}},m=h=>h.done?B(h.value):Promise.resolve(h.value).then(z,T);m((o=o.apply(l,f)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ne=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/pagination/style/css");const e=require("vue"),ae=require("./vue-i18n-BvHMBi_b.cjs"),q=require("./element-resize-detector-
|
|
1
|
+
"use strict";var X=Object.defineProperty,Z=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var H=(l,f,o)=>f in l?X(l,f,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[f]=o,D=(l,f)=>{for(var o in f||(f={}))te.call(f,o)&&H(l,o,f[o]);if(V)for(var o of V(f))oe.call(f,o)&&H(l,o,f[o]);return l},L=(l,f)=>Z(l,ee(f));var E=(l,f,o)=>new Promise((B,_)=>{var z=h=>{try{m(o.next(h))}catch(i){_(i)}},T=h=>{try{m(o.throw(h))}catch(i){_(i)}},m=h=>h.done?B(h.value):Promise.resolve(h.value).then(z,T);m((o=o.apply(l,f)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ne=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/pagination/style/css");const e=require("vue"),ae=require("./vue-i18n-BvHMBi_b.cjs"),q=require("./element-resize-detector-Cl7PwC4K.cjs"),re=require("./titleStyle-NSnz6cUg.cjs"),O=require("./params-3W3p8QeC.cjs"),k=require("./api-BR57NNEB.cjs"),u=require("./index-CtAaj9XN.cjs"),A=require("./ele-grd-icon-ZUb-megQ.cjs"),le={class:"mix-body"},ie={key:0,class:"table"},ce={class:"table-title"},se=["id"],de=["onClick"],ue=["innerHTML"],fe={key:2,class:"pagination"},me={DEFAULT_ICON:A.DEFAULT_ICON,ACTIVE_ICON:A.ACTIVE_ICON,NAME_CN:"列表",NAME_EN:"Grid List",ORDER:2},pe={bgColor:"#fff",titleColor:"#111",fontColor:"#111",borderColor:"#e4e7ed",titleSize:14,valueSize:12,radiusSize:8,points:10,sort:{value:"desc",type:"radio",option:[{value:"desc",label:"component.list.desc"},{value:"asc",label:"component.list.asc"}],label:"component.list.sort"},isHideTitle:!1},ye={gridType:"object",loop:"none",loopRate:10,rows:[],rowWidth:[],types:["object","collect","retainer","timer"],isAddCondition:!1,isAddMosaic:!1,conditions:[],created:0,isJump:!1,retained:0,mosaics:[]},ge={DEFAULT:me,OPTIONS:pe,COMMON:ye},ve=e.defineComponent(L(D({},ge),{__name:"grd",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},type:{type:String,default:"pro"},theme:{type:String,default:"light"}},setup(l){const{t:f}=ae.useI18n(),o=l;class B extends q.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),fontColor:this.getOptionValue("fontColor","#111"),borderColor:this.getOptionValue("borderColor","#e4e7ed"),titleSize:this.getOptionValue("titleSize",14),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),i.pageSize=this.getOptionValue("points",10)}}const _=new B(o,"grd"),z=()=>_.init(),T=q.debounce(z,200);e.watch(()=>o.conf,()=>{o.mode==="edit"&&T()},{deep:!0}),e.watch(()=>o.theme,()=>{o.mode==="edit"&&z()});const m=_.getStyle(),h=e.computed(()=>re.generateTitleStyle(o.conf.options)),i=e.reactive({current:1,pageSize:10,total:0}),d="YYYY-MM-DD HH:mm:ss";let v=null;const b=e.ref([]),C=e.ref(0),$=e.computed(()=>{var s;const{common:n}=o.conf;let t;n.gridType==="object"?(t=JSON.parse(JSON.stringify(O.gridTitles.object)),(s=n.mosaics)==null||s.forEach(c=>{t[c.fv]=c.text})):t=O.gridTitles[n.gridType]||{};const a={};for(const c in t){const r=t[c];a[c]=r.includes(".")?f(r):r}return a}),F=e.computed(()=>{var t,a;const n=((a=(t=o.conf.options)==null?void 0:t.valueSize)==null?void 0:a.value)||12;return n<14?"small":n<16?"default":"large"}),w=()=>{let n=u.dayjs(),t=n.day()-1;t<0&&(t=0);let a=n.subtract(t,"day").startOf("day");return{start:a,end:a.add(6,"day").endOf("day")}},R={0:["",u.dayjs().format(d)],1:[u.dayjs().startOf("day").format(d),u.dayjs().endOf("day").format(d)],2:[w().start.format(d),w().end.format(d)],3:[u.dayjs().startOf("month").format(d),u.dayjs().endOf("month").format(d)],4:[u.dayjs().startOf("year").format(d),u.dayjs().endOf("year").format(d)],5:[u.dayjs().subtract(1,"day").format(d),u.dayjs().format(d)],6:[u.dayjs().subtract(7,"day").format(d),u.dayjs().format(d)],7:[u.dayjs().subtract(31,"day").format(d),u.dayjs().format(d)],8:[u.dayjs().subtract(365,"day").format(d),u.dayjs().format(d)]},J=n=>{const{common:t}=o.conf;t.loop!=="vertical"?N(n):P()},N=n=>E(null,null,function*(){var g,p;const{common:t,options:a}=o.conf;let s={};const c=t.gridType;if(t.gridType==="object"){const{result:y}=yield k.api.post("get_last_fv");s=y}const r={page_index:i.current,page_size:i.pageSize,block_mapping:(g=O.urlMapping[c])==null?void 0:g.block_mapping,action:(p=O.urlMapping[c])==null?void 0:p.action,order_by:"created",order_type:a.sort.value,where_and:[]};if(t.gridType==="collect"&&(r.order_by=JSON.stringify(["created",a.sort.value]),delete r.order_type),t.created){const y=R[t.created];r.where_and.push(["created",">=",y[0]]),r.where_and.push(["created","<=",y[1]])}t.setCondition&&(r.where_and=r.where_and.concat(t.conditions)),r.where_and.length&&(r.where_and=JSON.stringify(r.where_and)),k.api.platform(y=>{b.value=y.result.data,t.gridType==="object"&&t.setMosaic&&t.mosaics.forEach(S=>{b.value.forEach(x=>{var M;x[S.fv]=(M=s[x.uid])==null?void 0:M[S.fv]})}),i.total=y.result.total_records,n==="init"&&t.loop!=="none"&&t.loop==="paging"&&(v=setInterval(()=>{U()},t.loopRate*1e3))},r)}),P=n=>E(null,null,function*(){let t=["uid","name","customer_name","mapping_name","model","tag","province","city","description","created"];const{common:a,options:s}=o.conf;if(a.gridType==="object"){const{result:c}=yield k.api.post("get_last_fv");let r={page_index:i.current,page_size:9999,select:t,order_by:"created",order_type:s.sort.value};a.gridType==="collect"&&(r.order_by=JSON.stringify(["created",s.sort.value]),delete r.order_type);const{result:g}=yield k.api.post("get_object_list",r);b.value=g.data,a.setMosaic&&a.mosaics.forEach(p=>{b.value.forEach(y=>{var S;y[p.fv]=(S=c[y.uid])==null?void 0:S[p.fv]})}),e.nextTick(()=>{j()})}else{let c={page_index:i.current,page_size:9999};k.api.platform(r=>{b.value=r.result.data,i.total=r.result.total_records,e.nextTick(()=>{j()})},c)}}),I=n=>{i.current=n,N("page")},U=()=>{let n=Math.floor(i.total/i.pageSize),t=i.current>=n?1:i.current+1;I(t)},W=()=>{var s,c;const{id:n}=o.conf;C.value++;let t=(s=document.getElementsByClassName("table-body")[0])==null?void 0:s.clientHeight,a=(c=document.getElementById(n))==null?void 0:c.scrollHeight;a&&C.value>=a-t+32&&(C.value=0)},Y=()=>{const{common:n}=o.conf;n.loop==="vertical"&&v&&clearInterval(v)},G=()=>{const{common:n}=o.conf;n.loop==="vertical"&&j()},K=()=>{C.value=0,v&&clearInterval(v)},j=()=>{var r,g,p;const{common:n,id:t}=o.conf;if(v&&clearInterval(v),!document.getElementsByClassName("table-body")[0])return;let a=document.getElementsByClassName("table-body")[0].clientHeight,s=((r=document.getElementById(t))==null?void 0:r.scrollHeight)||0,c=(p=(g=document.getElementsByClassName("echart-title")[0])==null?void 0:g.clientHeight)!=null?p:0;s-a>c&&(v=setInterval(()=>{W()},n.loopRate*5))},Q=n=>{const{common:t}=o.conf;if(t.isJump&&o.type==="show"){let a=location.href;a.indexOf("?object_id=")>-1&&(a=a.split("?object_id=")[0]);let s=a+"?object_id="+n.uid;location.href=s,location.reload()}};return e.onMounted(()=>E(null,null,function*(){z(),o.mode==="preview"&&(K(),J("init"))})),e.onBeforeUnmount(()=>{v&&clearInterval(v)}),(n,t)=>{var s,c,r;const a=ne.ElPagination;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(m).bgColor,borderRadius:`${e.unref(m).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(h.value)},e.toDisplayString(l.conf.caption||l.conf.name),5),e.createElementVNode("div",le,[(c=(s=l.conf)==null?void 0:s.common)!=null&&c.rows?(e.openBlock(),e.createElementBlock("div",ie,[e.createElementVNode("div",ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.common.rows,(g,p)=>(e.openBlock(),e.createElementBlock("div",{class:"th",key:p,style:e.normalizeStyle({width:l.conf.common.rowWidth[p]+"%",borderColor:e.unref(m).borderColor,fontSize:`${e.unref(m).titleSize}px`,color:e.unref(m).fontColor})},e.toDisplayString($.value[g]),5))),128))]),(r=b.value)!=null&&r.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:"table-body",style:e.normalizeStyle({"overflow-y":l.conf.common.loop==="vertical"?"hidden":"auto"})},[e.createElementVNode("div",{style:e.normalizeStyle({transform:`translate(0px,-${C.value}px)`}),id:l.conf.id,onMouseenter:Y,onMouseleave:G},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(g,p)=>(e.openBlock(),e.createElementBlock("div",{class:"tr",key:p,onClick:y=>Q(g)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.common.rows,(y,S)=>(e.openBlock(),e.createElementBlock("div",{class:"td",key:S,style:e.normalizeStyle({width:l.conf.common.rowWidth[S]+"%",borderColor:e.unref(m).borderColor,fontSize:`${e.unref(m).valueSize}px`,color:e.unref(m).fontColor}),innerHTML:g[y]},null,12,ue))),128))],8,de))),128))],44,se)],4)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"empty-data",style:e.normalizeStyle({fontSize:`${e.unref(m).valueSize}px`,color:e.unref(m).fontColor})}," 暂无数据 ",4)),i.total>i.pageSize&&l.conf.common.loop!=="vertical"?(e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(a,{"current-page":i.current,onCurrentChange:I,total:i.total,size:F.value,"page-size":i.pageSize,style:e.normalizeStyle({fontSize:`${e.unref(m).valueSize}px`,color:e.unref(m).fontColor})},null,8,["current-page","total","size","page-size","style"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),he=u._export_sfc(ve,[["__scopeId","data-v-f3e0d663"]]);exports.default=he;
|
|
@@ -15,12 +15,12 @@ import "element-plus/es/components/base/style/css";
|
|
|
15
15
|
import "element-plus/es/components/pagination/style/css";
|
|
16
16
|
import { defineComponent as W, reactive as V, computed as I, openBlock as s, createElementBlock as l, normalizeStyle as f, unref as e, createElementVNode as _, toDisplayString as E, Fragment as S, renderList as C, createVNode as U, createCommentVNode as G, renderSlot as J, getCurrentInstance as q } from "vue";
|
|
17
17
|
import { u as K } from "./vue-i18n-5Nahpzrm.js";
|
|
18
|
-
import { B as Q, d as X } from "./element-resize-detector-
|
|
18
|
+
import { B as Q, d as X } from "./element-resize-detector-CoRhuer9.js";
|
|
19
19
|
import { g as Y } from "./titleStyle-BT5GlpAb.js";
|
|
20
20
|
import { g as Z } from "./params-DfgBemk0.js";
|
|
21
|
-
import { a as ee } from "./api-
|
|
21
|
+
import { a as ee } from "./api-CcAArQi7.js";
|
|
22
22
|
import { A as te, D as oe } from "./ele-grd-icon-DR52zwGR.js";
|
|
23
|
-
import { _ as ne } from "./index-
|
|
23
|
+
import { _ as ne } from "./index-yidMosRJ.js";
|
|
24
24
|
const ie = { class: "mix-body" }, re = {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "table"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var N=Object.defineProperty,T=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var C=(i,r,t)=>r in i?N(i,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[r]=t,h=(i,r)=>{for(var t in r||(r={}))j.call(r,t)&&C(i,t,r[t]);if(k)for(var t of k(r))q.call(r,t)&&C(i,t,r[t]);return i},z=(i,r)=>T(i,w(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/pagination/style/css");const e=require("vue"),A=require("./vue-i18n-BvHMBi_b.cjs"),b=require("./element-resize-detector-
|
|
1
|
+
"use strict";var N=Object.defineProperty,T=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var C=(i,r,t)=>r in i?N(i,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[r]=t,h=(i,r)=>{for(var t in r||(r={}))j.call(r,t)&&C(i,t,r[t]);if(k)for(var t of k(r))q.call(r,t)&&C(i,t,r[t]);return i},z=(i,r)=>T(i,w(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/pagination/style/css");const e=require("vue"),A=require("./vue-i18n-BvHMBi_b.cjs"),b=require("./element-resize-detector-Cl7PwC4K.cjs"),M=require("./titleStyle-NSnz6cUg.cjs"),$=require("./params-3W3p8QeC.cjs"),D=require("./api-BR57NNEB.cjs"),v=require("./ele-grd-icon-ZUb-megQ.cjs"),F=require("./index-CtAaj9XN.cjs"),H={class:"mix-body"},P={key:0,class:"table"},R={class:"table-title"},U={key:0,class:"table-body"},W=["innerHTML"],G={key:2,class:"pagination px-[16px]"},J={DEFAULT_ICON:v.DEFAULT_ICON,ACTIVE_ICON:v.ACTIVE_ICON,NAME_CN:"特征列表",NAME_EN:"Eigen List",ORDER:7},K={bgColor:"#fff",titleColor:"#111",fontColor:"#111",borderColor:"#e5e7eb",titleSize:14,valueSize:12,radiusSize:8,points:10,isHideTitle:!1},Q={useAlias:!1,multiObject:!1,hideMultiObject:!0,gridType:"eigen",project_id:"",rows:[],rowWidth:[],types:["eigen"]},X={DEFAULT:J,OPTIONS:K,COMMON:Q},Y=e.defineComponent(z(h({},X),{__name:"grdIndass",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(i){const{t:r}=A.useI18n(),t=i,u=e.reactive({current:1,pageSize:10,total:0}),m=e.reactive([]),E=e.computed(()=>{var a;const l=((a=t.conf.common)==null?void 0:a.gridType)||"eigen",c=$.gridTitles[l]||{},s={};for(const o in c)s[o]=r(c[o]);return s}),g={decrease:"component.indass.decrease",increase:"component.indass.increase",min:"component.indass.min",max:"component.indass.max",count:"component.indass.count"};class B extends b.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),fontColor:this.getOptionValue("fontColor","#111"),borderColor:this.getOptionValue("borderColor","#e5e7eb"),titleSize:this.getOptionValue("titleSize",14),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",4),points:this.getOptionValue("points",10),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){super.init(),u.pageSize=this.getOptionValue("points",10)}onPreview(){S()}cleanup(){}}const y=new B(t,"grdIndass");y.setupLifecycle();const n=y.getStyle(),O=e.computed(()=>M.generateTitleStyle(t.conf.options)),S=()=>{const{common:l}=t.conf;let c={page_index:u.current,page_size:n.value.points,where_and:[["project_uid","=",l.project_id]],block_mapping:"eigen",action:"get_adaps_report_list"},s=b.getObjectId(l,l.useAlias,t.uid);s&&c.where_and.push(["object_id","=",s]),D.api.platform(a=>{m.length=0,a.result.data.forEach(o=>{JSON.parse(o.detail).Main.forEach(p=>{m.push({key:p.key,key_type:p.key_type,start:o.start,end:o.end,report:x(p.report),created:o.created})})}),u.total=a.result.total_records},c)},x=l=>{const{proxy:c}=e.getCurrentInstance();let s={};for(let o in l[0])g[o]&&(s[c.$t(g[o])]=l[0][o].toFixed(3));let a=[];for(let o in s)a.push(o+": "+s[o]);return a.join("<br>")},V=l=>{u.current=l,S()},d=t.conf;return(l,c)=>{var a,o;const s=L.ElPagination;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(n).bgColor,borderRadius:`${e.unref(n).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(O.value)},[e.createElementVNode("div",null,e.toDisplayString(e.unref(d).caption||e.unref(d).name),1)],4),e.createElementVNode("div",H,[(o=(a=e.unref(d))==null?void 0:a.common)!=null&&o.rows&&e.unref(d).common.rows.length?(e.openBlock(),e.createElementBlock("div",P,[e.createElementVNode("div",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d).common.rows,(f,p)=>(e.openBlock(),e.createElementBlock("div",{class:"th",key:p,style:e.normalizeStyle({width:e.unref(d).common.rowWidth[p]+"%",borderColor:e.unref(n).borderColor,fontSize:`${e.unref(n).titleSize}px`,color:e.unref(n).fontColor})},e.toDisplayString(E.value[f]),5))),128))]),m.length?(e.openBlock(),e.createElementBlock("div",U,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(f,p)=>(e.openBlock(),e.createElementBlock("div",{class:"tr",key:p},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d).common.rows,(I,_)=>(e.openBlock(),e.createElementBlock("div",{class:"td",key:_,style:e.normalizeStyle({width:e.unref(d).common.rowWidth[_]+"%",borderColor:e.unref(n).borderColor,fontSize:`${e.unref(n).valueSize}px`,color:e.unref(n).fontColor}),innerHTML:f[I]},null,12,W))),128))]))),128))])):(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle({fontSize:`${e.unref(n).valueSize}px`,color:e.unref(n).fontColor})},[...c[0]||(c[0]=[e.createElementVNode("div",{class:"mt-[8px] text-center"},"暂无数据",-1)])],4)),u.total>u.pageSize?(e.openBlock(),e.createElementBlock("div",G,[e.createVNode(s,{"current-page":u.current,onCurrentChange:V,total:u.total,"page-size":u.pageSize,style:e.normalizeStyle({fontSize:`${e.unref(n).valueSize}px`,color:e.unref(n).fontColor})},null,8,["current-page","total","page-size","style"])])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"w-full h-full flex items-center justify-center",style:e.normalizeStyle({fontSize:`${e.unref(n).valueSize}px`,color:e.unref(n).fontColor})}," 请配置表格列 ",4))]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),Z=F._export_sfc(Y,[["__scopeId","data-v-08c9a51d"]]);exports.default=Z;
|
|
@@ -11,7 +11,7 @@ var b = (a, t, i) => t in a ? R(a, t, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return a;
|
|
12
12
|
}, A = (a, t) => $(a, I(t));
|
|
13
13
|
import { defineComponent as B, getCurrentInstance as F, ref as G, inject as P, computed as U, watchEffect as q, openBlock as W, createElementBlock as j, normalizeStyle as E, unref as h, createElementVNode as x, toDisplayString as J, renderSlot as K, nextTick as Q } from "vue";
|
|
14
|
-
import { B as X, e as Y, h as C, a as Z, u as ee, p as te, k as oe } from "./element-resize-detector-
|
|
14
|
+
import { B as X, e as Y, h as C, a as Z, u as ee, p as te, k as oe } from "./element-resize-detector-CoRhuer9.js";
|
|
15
15
|
import { g as ne } from "./titleStyle-BT5GlpAb.js";
|
|
16
16
|
import { A as ie, D as ae } from "./ele-gag-icon-CB5dJeYF.js";
|
|
17
17
|
import { u as se, i as re, a as le } from "./installCanvasRenderer-CLT2hquJ.js";
|
|
@@ -20,7 +20,7 @@ import { i as me } from "./install-hfre7yvV.js";
|
|
|
20
20
|
import { i as ue } from "./install-BBrAry2m.js";
|
|
21
21
|
import { i as fe } from "./install-BUu5ESB7.js";
|
|
22
22
|
import { i as de, d as pe } from "./echarts-BVht3HHb.js";
|
|
23
|
-
import { _ as ge } from "./index-
|
|
23
|
+
import { _ as ge } from "./index-yidMosRJ.js";
|
|
24
24
|
const he = {
|
|
25
25
|
DEFAULT_ICON: ae,
|
|
26
26
|
ACTIVE_ICON: ie,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var M=Object.defineProperty,R=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var D=(r,n,a)=>n in r?M(r,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[n]=a,E=(r,n)=>{for(var a in n||(n={}))L.call(n,a)&&D(r,a,n[a]);if(z)for(var a of z(n))H.call(n,a)&&D(r,a,n[a]);return r},b=(r,n)=>R(r,$(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./element-resize-detector-
|
|
1
|
+
"use strict";var M=Object.defineProperty,R=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var D=(r,n,a)=>n in r?M(r,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[n]=a,E=(r,n)=>{for(var a in n||(n={}))L.call(n,a)&&D(r,a,n[a]);if(z)for(var a of z(n))H.call(n,a)&&D(r,a,n[a]);return r},b=(r,n)=>R(r,$(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./element-resize-detector-Cl7PwC4K.cjs"),F=require("./titleStyle-NSnz6cUg.cjs"),A=require("./ele-gag-icon-Ce1hl9NI.cjs"),C=require("./installCanvasRenderer-CyhM1Qpl.cjs"),G=require("./install-DV5cEgNV.cjs"),P=require("./install-CltTFs4e.cjs"),U=require("./install-C8buXQPI.cjs"),B=require("./install-B65ZIqAx.cjs"),T=require("./echarts-BB8O2KSA.cjs"),W=require("./index-CtAaj9XN.cjs"),j={DEFAULT_ICON:A.DEFAULT_ICON,ACTIVE_ICON:A.ACTIVE_ICON,NAME_CN:"等级评定",NAME_EN:"Grade",ORDER:4},J={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,hideSmall:!1},N=[{name:"参数一",object_id:"",项目编号:"",max:100,min:0}],K=["name","项目编号","object_id","max","min"],Q=["index","deviation","stability","balance","increment","risk"],X=[{color:"#5c7bd9",range:[0,100],name:"component.indass.gradeOne"}],Y=1,Z={useAlias:!1,source:"index"},ee={DEFAULT:j,OPTIONS:J,DATA:N,PARAMS:K,SOURCE:Q,GRADE:X,ITEMS:Y,COMMON:Z},te=e.defineComponent(b(E({},ee),{__name:"grg",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){C.use([G.install,P.install,C.install,U.install,C.install$1,B.install]);const{proxy:n}=e.getCurrentInstance(),a=e.ref(e.inject("session",null)),x="grg_"+Math.random().toString(16).substring(4,12);let t=null,S=null;const o=r;class V extends u.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),max:this.getOptionValue("max",100),min:this.getOptionValue("min",0),isHideTitle:this.getOptionValue("isHideTitle",!1),hideSmall:this.getOptionValue("hideSmall",!1)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:N,e.nextTick(()=>{let s=document.querySelector("#"+x);if(s){if(!t){t=T.init(s),S=u.elementResizeDetectorMaker({strategy:"scroll"});const c=u.debounce(()=>t==null?void 0:t.resize(),100);S.listenTo(s,c)}t.setOption(k(),!0)}})}onPreview(){_.preview()}cleanup(){S&&S.uninstall(document.querySelector("#"+x)),t&&t.clear(),t&&T.dispose(t),t=null,_.unregister()}}const y=new V(o,"grg");y.setupLifecycle();const f=y.getStyle(),q=e.computed(()=>F.generateTitleStyle(o.conf.options)),k=()=>{const{data:l,grade:s}=o.conf,c=u.hasDataSource(o.conf);let i=l[0]||{};return{series:[{type:"gauge",startAngle:180,endAngle:0,center:["50%","75%"],radius:"90%",min:i.min,max:i.max,splitNumber:100,axisLine:{lineStyle:{width:12,color:w()}},pointer:{icon:"path://M12.8,0.7l12,40.1H0.7L12.8,0.7z",length:"24%",width:4,offsetCenter:[0,"-60%"],itemStyle:{color:"auto"}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{color:f.value.textColor,fontSize:f.value.textSize,distance:-30,rotate:"tangential",formatter:function(h){let g=i.max-i.min,m="";for(let p=0;p<s.length;p++){let d=s[p];if(((h-i.min)/g).toFixed(2)===((d.range[1]+d.range[0])/g/2).toFixed(2)){(d.range[1]+d.range[0])/g/2<.1&&f.value.hideSmall?m="":m=d.name&&d.name.startsWith("component.")?n.$t(d.name):d.name;break}}return m}},title:{offsetCenter:[0,"10%"],fontSize:f.value.textSize,color:f.value.textColor},detail:{fontSize:16,offsetCenter:[0,"-15%"],color:"inherit"},data:[{value:u.getRandomArr({num:1,max:200,min:0,mode:o.mode,hasDataSource:c})[0]||0,name:i.name&&i.name.startsWith("component.")?n.$t(i.name):i.name}]}]}},w=()=>{const{grade:l,data:s}=o.conf,{max:c,min:i}=s[0];let h=[];return l.forEach(g=>{let m={color:g.color},p=c-i;m.step=Math.abs((g.range[1]-i)/p),h.push([m.step,m.color])}),h},I=l=>{if(!u.hasDataSource(o.conf))return;const{data:s}=o.conf;if(!l.history.length)return;let c=t==null?void 0:t.getOption();c&&(l.history.forEach(i=>{c.series[0].data[0].value=i[0][s[0].fv]}),t==null||t.setOption(c))},v=l=>{u.hasDataSource(o.conf)},_={preview:()=>u.preview(o,a.value,I,v,"grg"),unregister:()=>u.unregister(o,a.value)};e.watchEffect(()=>{o.conf.socketData&&v(o.conf.socketData)});const O=o.conf;return(l,s)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(f).bgColor,borderRadius:`${e.unref(f).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(q.value)},e.toDisplayString(e.unref(O).caption||e.unref(O).name),5),e.createElementVNode("div",{class:"mix-body"},[e.createElementVNode("div",{class:"w-full h-full",id:x})]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),ne=W._export_sfc(te,[["__scopeId","data-v-4c4a90c6"]]);exports.default=ne;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var V=Object.defineProperty,k=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var d=(l,i,r)=>i in l?V(l,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[i]=r,y=(l,i)=>{for(var r in i||(i={}))A.call(i,r)&&d(l,r,i[r]);if(m)for(var r of m(i))_.call(i,r)&&d(l,r,i[r]);return l},h=(l,i)=>k(l,B(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),z=require("./element-resize-detector-
|
|
1
|
+
"use strict";var V=Object.defineProperty,k=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var d=(l,i,r)=>i in l?V(l,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[i]=r,y=(l,i)=>{for(var r in i||(i={}))A.call(i,r)&&d(l,r,i[r]);if(m)for(var r of m(i))_.call(i,r)&&d(l,r,i[r]);return l},h=(l,i)=>k(l,B(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),z=require("./element-resize-detector-Cl7PwC4K.cjs"),O=require("./index-CtAaj9XN.cjs"),x=require("./titleStyle-NSnz6cUg.cjs"),S=require("./ele-gridview-icon-D3GcssP6.cjs"),T={class:"mix-body"},D={class:"w-full flex flex-col"},N={key:0},w={key:1},L={DEFAULT_ICON:S.DEFAULT_ICON,ACTIVE_ICON:S.ACTIVE_ICON,NAME_CN:"数据表格",NAME_EN:"Data Table",ORDER:3},$={bgColor:"#fff",titleColor:"#111",borderColor:"#e5e5e5",splitColor:"#efefef",titleSize:14,radiusSize:8,height:32,position:{value:"center",type:"radio",option:[{value:"left",label:"component.list.left"},{value:"center",label:"component.list.center"},{value:"right",label:"component.list.right"}],label:"component.list.position"},isHideTitle:!1},U=[[{isValue:!1,isBold:!1,name:"",bgColor:"rgba(0, 0, 0, 0)",color:"#333",fontSize:12},{isValue:!1,isBold:!1,name:"",bgColor:"rgba(0, 0, 0, 0)",color:"#333",fontSize:12}],[{isValue:!1,isBold:!1,name:"",bgColor:"rgba(0, 0, 0, 0)",color:"#333",fontSize:12},{isValue:!1,isBold:!1,name:"",bgColor:"rgba(0, 0, 0, 0)",color:"#333",fontSize:12}]],F=["isValue","name","fv","object_id","unit","default","isText","source"],I=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime","summary"],R={useAlias:!1,multiObject:!1,source:"mosaic",rowNum:2,colNum:2,rowWidth:[50,50]},M={DEFAULT:L,OPTIONS:$,DATA:U,PARAMS:F,SOURCE:I,COMMON:R},j=e.defineComponent(h(y({},M),{__name:"gridview",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(l){const r=l;class b extends z.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),splitColor:this.getOptionValue("splitColor","#efefef"),borderColor:this.getOptionValue("borderColor","#e5e5e5"),titleSize:this.getOptionValue("titleSize",14),radiusSize:this.getOptionValue("radiusSize",8),position:this.getOptionValue("position","center"),height:this.getOptionValue("height",32),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){this.Style.value=this.extractStyles(),this.applyTheme();const{data:n}=this.props.conf;n&&Array.isArray(n)&&n.forEach(a=>{Array.isArray(a)&&a.forEach(t=>{"isValue"in t||(t.isValue=!1),"isBold"in t||(t.isBold=!1),"name"in t||(t.name=""),"fv"in t||(t.fv=""),"bgColor"in t||(t.bgColor="rgba(0, 0, 0, 0)"),"color"in t||(t.color="#333"),"fontSize"in t||(t.fontSize=12),"unit"in t||(t.unit="")})})}setSocketData(n){if(!n)return;const{data:a}=this.props.conf;a.forEach(t=>{t.forEach(c=>{if(c.isValue)try{const o=this.extractDataValue(n,c.fv);c.value=o!=null?o:"--"}catch(o){console.error("[gridview] 提取数据失败:",o,c),c.value="--"}})})}}const f=new b(r,"gridview");f.setupLifecycle();const u=f.getStyle(),C=e.computed(()=>x.generateTitleStyle(r.conf.options)),v={left:"flex-start",center:"center",right:"flex-end"},p=s=>{const n={text:"",color:""};return Array.isArray(s.status)&&s.status.forEach(a=>{String(a.code)===String(s.value)&&(n.text=a.text,n.color=a.color)}),n},E=s=>{var t;const n=s.unit||"";return((t=s.value)!=null?t:"")+n};return(s,n)=>{var a;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(u).bgColor,borderRadius:`${e.unref(u).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(C.value)},e.toDisplayString(l.conf.caption||l.conf.name),5),e.createElementVNode("div",T,[e.createElementVNode("div",D,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((a=l.conf)==null?void 0:a.data,(t,c)=>(e.openBlock(),e.createElementBlock("div",{class:"tr",style:e.normalizeStyle({height:`${e.unref(u).height}px`,borderColor:`${e.unref(u).borderColor}`,backgroundColor:c%2===0?e.unref(u).splitColor:"transparent"}),key:c},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,(o,g)=>(e.openBlock(),e.createElementBlock("div",{class:"td",style:e.normalizeStyle({width:`${l.conf.common.rowWidth[g]}%`,borderColor:`${e.unref(u).borderColor}`,color:`${o.color}`,fontSize:`${o.fontSize}px`,backgroundColor:`${o.bgColor}`,fontWeight:`${o.isBold?"bold":"normal"}`}),key:g},[e.createElementVNode("div",{class:"w-full px-3 flex",style:e.normalizeStyle({justifyContent:v[e.unref(u).position]})},[o.isValue?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.statusType===2?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({color:p(o).color})},e.toDisplayString(p(o).text),5)):(e.openBlock(),e.createElementBlock("div",w,e.toDisplayString(E(o)),1))],64)):(e.openBlock(),e.createElementBlock("div",N,e.toDisplayString(o.name),1))],4)],4))),128))],4))),128))])]),e.renderSlot(s.$slots,"default",{},void 0,!0)],4)}}})),q=O._export_sfc(j,[["__scopeId","data-v-850b8c87"]]);exports.default=q;
|