mixdashboards 1.0.40 → 1.0.44
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-GBbKjtlb.js → EChartComponentBase-BS3bnTQC.js} +1 -1
- package/dist/{EChartComponentBase-BTqBoBn8.cjs → EChartComponentBase-CleoClHm.cjs} +1 -1
- package/dist/{UniverSheet-B9dCqA-W.cjs → UniverSheet-CF1v7TYZ.cjs} +1 -1
- package/dist/{UniverSheet-DIkltx8i.js → UniverSheet-COMkODpK.js} +2 -2
- package/dist/{accelerationChart-B7grHeml.js → accelerationChart-DmWIcs4K.js} +3 -3
- package/dist/{accelerationChart-CvNoIyue.cjs → accelerationChart-cRoqP2gy.cjs} +1 -1
- package/dist/{actionItem-BKNfuprM.cjs → actionItem-BeTiYe45.cjs} +1 -1
- package/dist/{actionItem-BrTSUE0J.js → actionItem-Cyk7BOT6.js} +3 -3
- package/dist/{alarmLevelChart-CmjyIsWH.js → alarmLevelChart-DAXsyR0I.js} +2 -2
- package/dist/{alarmLevelChart-DBqGvaXQ.cjs → alarmLevelChart-sxtgVWnX.cjs} +1 -1
- package/dist/{alertTable-CZ2ufzg9.cjs → alertTable--x9DJvUP.cjs} +1 -1
- package/dist/{alertTable-C8beWyfK.js → alertTable-CuP5VxyK.js} +2 -2
- package/dist/{annualRainfallChart-D3YQwScd.cjs → annualRainfallChart-CbskRIIL.cjs} +1 -1
- package/dist/{annualRainfallChart-D3Pck4he.js → annualRainfallChart-D5pPXsFE.js} +2 -2
- package/dist/{api-C0okiLNC.cjs → api-DSuTQgb1.cjs} +1 -1
- package/dist/{api-DhQsrEGY.js → api-DpW5KYPS.js} +4 -4
- package/dist/{aqi-DnrkU6z-.js → aqi-CCdxrgkH.js} +3 -3
- package/dist/{aqi-91QfhWTq.cjs → aqi-U6Nf8ZZh.cjs} +1 -1
- package/dist/{aqiIndass-CzA5PVzc.js → aqiIndass-B4zzPOx5.js} +2 -2
- package/dist/{aqiIndass-D2h-731s.cjs → aqiIndass-Du6ul1sn.cjs} +1 -1
- package/dist/{arrayCard-C-V_01r7.cjs → arrayCard-B3YtVRwz.cjs} +1 -1
- package/dist/{arrayCard-mprI5bQN.js → arrayCard-Cy74MxNd.js} +2 -2
- package/dist/{audio-CdVI14ea.cjs → audio-BtvIDtUd.cjs} +1 -1
- package/dist/{audio-Xj66qRvv.js → audio-xxwBO_rY.js} +5 -5
- package/dist/{bar-ub8ERs66.js → bar-DO_1uGwc.js} +4 -4
- package/dist/{bar-DQ6kQXTC.cjs → bar-VfYGfeKN.cjs} +1 -1
- package/dist/{bmp-bXQBGW16.js → bmp-C-Gx1GvP.js} +3 -3
- package/dist/{bmp-xuWyQ9_n.cjs → bmp-CsK85ASl.cjs} +1 -1
- package/dist/{box-Dx6V-j_J.js → box-Bt9Q17mN.js} +2 -2
- package/dist/{box-C9s5aZjl.cjs → box-k9kt6rDN.cjs} +1 -1
- package/dist/{chartConfigPanel-CLbbeZzN.cjs → chartConfigPanel-69LZ5kPt.cjs} +1 -1
- package/dist/{chartConfigPanel-Bd47rczI.js → chartConfigPanel-BduE1xjC.js} +1 -1
- package/dist/{circleBar-D8I2e0Ov.js → circleBar-CH0tnaPc.js} +3 -3
- package/dist/{circleBar-BsmKIein.cjs → circleBar-Cgeu--Y3.cjs} +1 -1
- package/dist/{clock-7kw9zMJ0.js → clock-B9O7KUjw.js} +2 -2
- package/dist/{clock-bnKjuzzp.cjs → clock-xVJE721F.cjs} +1 -1
- package/dist/{clt-BGGFfbQ5.js → clt-CuVs6xNO.js} +3 -3
- package/dist/{clt-7F8jS0WQ.cjs → clt-DtYhHfRW.cjs} +1 -1
- package/dist/{cmc-B2ja2VKe.cjs → cmc-9wuvGy4o.cjs} +1 -1
- package/dist/{cmc-DTiGNWEl.js → cmc-B4w2cPtw.js} +3 -3
- package/dist/{cmp-BXx9BxO1.js → cmp-Bv11hWDG.js} +3 -3
- package/dist/{cmp-D9MzneF0.cjs → cmp-CqBtUvY9.cjs} +1 -1
- package/dist/{composite-C6PQB2RS.js → composite-D_-iOTxQ.js} +3 -3
- package/dist/{composite-Dh9pPcWq.cjs → composite-pP7alC6K.cjs} +1 -1
- package/dist/config-BrMFHyZe.js +9 -0
- package/dist/config-DbZfhrwE.cjs +1 -0
- package/dist/{controlList-VioXoP_4.js → controlList-BMsXGA7L.js} +3 -3
- package/dist/{controlList-uLJtFu1P.cjs → controlList-C75BcGNs.cjs} +1 -1
- package/dist/{controlRecordList-DY7qKQp1.js → controlRecordList-CJ934Pie.js} +3 -3
- package/dist/{controlRecordList-GtFLhcc9.cjs → controlRecordList-z2x8XWPp.cjs} +1 -1
- package/dist/{crd-Bf8Rmcf5.js → crd-CoenHDTI.js} +2 -2
- package/dist/{crd-DdsOuCBh.cjs → crd-DB6Fn6ud.cjs} +1 -1
- package/dist/{ctrBtn-GKFfJlE2.cjs → ctrBtn-Cok9efhd.cjs} +1 -1
- package/dist/{ctrBtn-BSzyUEkN.js → ctrBtn-DAta3TgZ.js} +4 -4
- package/dist/{ctrSet-CDr5scQE.cjs → ctrSet-BpYJQF8y.cjs} +1 -1
- package/dist/{ctrSet--1TrVZDc.js → ctrSet-Db7Lpzwx.js} +4 -4
- package/dist/{ctrSwitch-kHoyJDax.cjs → ctrSwitch-C7hsC01-.cjs} +1 -1
- package/dist/{ctrSwitch-ezGEAkLG.js → ctrSwitch-CcIeXrmG.js} +4 -4
- package/dist/{dataManagement-DxTZAlJy.cjs → dataManagement-CbRcfb5G.cjs} +1 -1
- package/dist/{dataManagement-oWoI1QPO.js → dataManagement-Dy3n0x4g.js} +2 -2
- package/dist/{dataReport-Dygq1jQV.cjs → dataReport-DSsw8Q6Y.cjs} +1 -1
- package/dist/{dataReport-BATqcXj4.js → dataReport-RYp5R7d0.js} +2 -2
- package/dist/{dataTable-CotUzlhz.cjs → dataTable-BHF65HZn.cjs} +1 -1
- package/dist/{dataTable-DIKwnInT.js → dataTable-C6YN6hSR.js} +1 -1
- package/dist/{datetime-DLASaAKw.cjs → datetime-C7pOOVtq.cjs} +1 -1
- package/dist/{datetime-CK042aN0.js → datetime-DQ3jiYZW.js} +2 -2
- package/dist/{deepClusterSlipSurface-D8v4xJGF.cjs → deepClusterSlipSurface-Bb34F5kA.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-C52_bDho.js → deepClusterSlipSurface-nbsn0oBQ.js} +3 -3
- package/dist/{deepDataMatrix-CdB1ZO5Q.js → deepDataMatrix-BM-rwarj.js} +2 -2
- package/dist/{deepDataMatrix-C-NrtGtk.cjs → deepDataMatrix-DhdpktL_.cjs} +1 -1
- package/dist/{deepDisplacement3D-C3Salw1w.js → deepDisplacement3D-CnHFeSRB.js} +3 -3
- package/dist/{deepDisplacement3D-CzM-wm4q.cjs → deepDisplacement3D-Cul-utay.cjs} +1 -1
- package/dist/{deepDisplacementChart-ndHgH60B.js → deepDisplacementChart-CLOjtaLw.js} +4 -4
- package/dist/{deepDisplacementChart-ByIJTYX6.cjs → deepDisplacementChart-CWOOiU3n.cjs} +1 -1
- package/dist/{deepDisplacementChart-BqZ4nUgg.cjs → deepDisplacementChart-cKMAvQDn.cjs} +1 -1
- package/dist/{deepDisplacementChart-GcH8IGA4.js → deepDisplacementChart-ffsvnTyM.js} +2 -2
- package/dist/{deepDisplacementView-Bo_pmf0R.js → deepDisplacementView-CmH38Qg4.js} +1 -1
- package/dist/{deepDisplacementView-Bq_G0GlS.cjs → deepDisplacementView-DrIDesTs.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-CXgft_WM.js → deepNodeTemperatureChart-BV8NtGCe.js} +3 -3
- package/dist/{deepNodeTemperatureChart-Dsl1Zm8T.cjs → deepNodeTemperatureChart-Bs6-JuAH.cjs} +1 -1
- package/dist/{deepTangentAngleChart-iLt3bK8f.cjs → deepTangentAngleChart-DITiSIWH.cjs} +1 -1
- package/dist/{deepTangentAngleChart-D-WoGKz7.js → deepTangentAngleChart-eeikFBTp.js} +3 -3
- package/dist/{deepTemperatureField-BFB8bQde.js → deepTemperatureField-CfE1Tojo.js} +3 -3
- package/dist/{deepTemperatureField-DnpuZuD8.cjs → deepTemperatureField-DSfrt6dh.cjs} +1 -1
- package/dist/{deepTrendChart-BghE13XG.cjs → deepTrendChart-BmMiiBP8.cjs} +1 -1
- package/dist/{deepTrendChart-E-mAzsST.js → deepTrendChart-CChUdSS_.js} +3 -3
- package/dist/{deviceOnlineStatus-TQ-Fv8ye.cjs → deviceOnlineStatus-40xj7826.cjs} +1 -1
- package/dist/{deviceOnlineStatus-CkZijkjC.js → deviceOnlineStatus-LTnRdd9e.js} +2 -2
- package/dist/{deviceStatus-BkKc9wqU.cjs → deviceStatus-DParU3uI.cjs} +1 -1
- package/dist/{deviceStatus-BvJr98D0.js → deviceStatus-yRBqTeb7.js} +2 -2
- package/dist/{displacementDataTable-BJ5S7te1.js → displacementDataTable-DOO6Ly8a.js} +2 -2
- package/dist/{displacementDataTable-DJUK3mBu.cjs → displacementDataTable-DgicZH8R.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-C2estBCm.cjs → displacementTrajectoryChart-CXa9QpC2.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-DGS9Mn7o.js → displacementTrajectoryChart-WMQtPw-x.js} +3 -3
- package/dist/{displacementTrendChart-Ddgpsnta.js → displacementTrendChart-CLRYlvE-.js} +2 -2
- package/dist/{displacementTrendChart-CgsIcHCK.cjs → displacementTrendChart-pzq3aFoT.cjs} +1 -1
- package/dist/{dxf-B0EL1hyB.js → dxf-Cq049-5h.js} +5 -5
- package/dist/{dxf-DbxtgQWv.cjs → dxf-E4UDXLKk.cjs} +1 -1
- package/dist/{dzc-ACr2bZGl.js → dzc-BQv2iKCs.js} +3 -3
- package/dist/{dzc-Bdm2nr1F.cjs → dzc-COQNV8Rf.cjs} +1 -1
- package/dist/element-resize-detector-BNZCpkPn.cjs +6 -0
- package/dist/{element-resize-detector-DeMhGbNi.js → element-resize-detector-BykFgbx2.js} +419 -412
- package/dist/{evn-Moewbl2h.cjs → evn-BOubkN5p.cjs} +1 -1
- package/dist/{evn-D0llPvjK.js → evn-ByU2pJ1s.js} +2 -2
- package/dist/{evolutionChart-DBwL00ZJ.cjs → evolutionChart-CAGrFJu8.cjs} +1 -1
- package/dist/{evolutionChart-Cz_GOcB8.js → evolutionChart-HAGVFTuD.js} +3 -3
- package/dist/{fileViewer-D-WNR3vF.js → fileViewer-B37h0quk.js} +5 -5
- package/dist/{fileViewer-BtjOAdM9.cjs → fileViewer-cn86T_tA.cjs} +1 -1
- package/dist/{filterBar-4Q9XSiAY.cjs → filterBar-CuZkupo8.cjs} +1 -1
- package/dist/{filterBar-DLYmU350.js → filterBar-DVusFBbF.js} +2 -2
- package/dist/{fireCombustionCurve-BU3pplHd.js → fireCombustionCurve-C7QRx1Jc.js} +2 -2
- package/dist/{fireCombustionCurve-CWggQsw1.cjs → fireCombustionCurve-CIcqbz2i.cjs} +1 -1
- package/dist/{fireFilterBar-ROtoXZex.js → fireFilterBar-B8d5AJtv.js} +2 -2
- package/dist/{fireFilterBar-EKwzMAFp.cjs → fireFilterBar-C7lXgUWd.cjs} +1 -1
- package/dist/{gag-D8mNPZnH.js → gag-BrvzDnxa.js} +2 -2
- package/dist/{gag-CvMEVCbE.cjs → gag-D11JKxVV.cjs} +1 -1
- package/dist/{gasStationList-CWg8IYCo.cjs → gasStationList-Dla5JXYa.cjs} +1 -1
- package/dist/{gasStationList-qVKS-fgC.js → gasStationList-jyF27tRA.js} +3 -3
- package/dist/{glbModel-CQBEujd2.cjs → glbModel-BAm53QuG.cjs} +1 -1
- package/dist/{glbModel-U_yKQZWm.js → glbModel-HGeNSh_s.js} +2 -2
- package/dist/{gnssFilterBar-o7zpW7jS.js → gnssFilterBar-Dcn-7j-0.js} +2 -2
- package/dist/{gnssFilterBar-pvMsIjFy.cjs → gnssFilterBar-DwlYf3AQ.cjs} +1 -1
- package/dist/{gnssHistoryTable-Ddcw3-NB.cjs → gnssHistoryTable-B9yqwweE.cjs} +1 -1
- package/dist/{gnssHistoryTable-BYg9jtl5.js → gnssHistoryTable-K2wCCxKN.js} +3 -3
- package/dist/{gnssMapView-DMcq2u2c.js → gnssMapView-BevxEn6L.js} +2 -2
- package/dist/{gnssMapView--c2UXuOb.cjs → gnssMapView-Y9aw7pyC.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-BtUSps0z.js → gnssTimeSeriesChart-Dgv7xtDE.js} +4 -4
- package/dist/{gnssTimeSeriesChart-984dcBPA.cjs → gnssTimeSeriesChart-cQAYmpky.cjs} +1 -1
- package/dist/{gnssXYTrajectory-DvIpI-GX.js → gnssXYTrajectory-B1c2A0-Z.js} +3 -3
- package/dist/{gnssXYTrajectory-D9JmAqC0.cjs → gnssXYTrajectory-Dlt7yHHE.cjs} +1 -1
- package/dist/{grd-Cb8vd52d.cjs → grd-BGgmRzO6.cjs} +1 -1
- package/dist/{grd-DcxFaMyv.js → grd-CJlgIi8g.js} +3 -3
- package/dist/{grdIndass-BPLTUWIc.js → grdIndass-BO4B5PCB.js} +3 -3
- package/dist/{grdIndass-FkNJ9pl6.cjs → grdIndass-DyalY7Xq.cjs} +1 -1
- package/dist/{grg-CoDiLjcl.cjs → grg-CKzA41OL.cjs} +1 -1
- package/dist/{grg-Baot_Pdv.js → grg-troeHaxv.js} +2 -2
- package/dist/{gridview-BwDeg0tI.cjs → gridview-7S4komvz.cjs} +1 -1
- package/dist/{gridview-DN8V84hl.js → gridview-Obgr_vSQ.js} +2 -2
- package/dist/{groupCard-D5wLscZo.js → groupCard-DvQ0_yp8.js} +2 -2
- package/dist/{groupCard-DChtdioU.cjs → groupCard-naO-gSFU.cjs} +1 -1
- package/dist/{headerBar-DLvSZsMl.js → headerBar-BV3AwcCs.js} +3 -3
- package/dist/{headerBar-m57S9WlE.cjs → headerBar-Dt3B7o4i.cjs} +1 -1
- package/dist/{history-DN0IVkYL.js → history-CaqA0wpH.js} +60 -57
- package/dist/history-DFKjqRBY.cjs +1 -0
- package/dist/{index-zPaMBZk-.js → index-CQCqGJ5R.js} +1900 -1857
- package/dist/index-LSCs4x8x.cjs +582 -0
- package/dist/{insarDeformChart-DkiLrhem.cjs → insarDeformChart-DI5b1SoT.cjs} +1 -1
- package/dist/{insarDeformChart-DZl03mOe.js → insarDeformChart-OPC8flx2.js} +2 -2
- package/dist/{insarImageViewer-ZcqHEEZr.cjs → insarImageViewer-BBVNYKrE.cjs} +1 -1
- package/dist/{insarImageViewer-kqYV5A1S.js → insarImageViewer-DhSbNhfs.js} +2 -2
- package/dist/{kds-Ba0yzyNm.cjs → kds-DvXxGtf1.cjs} +1 -1
- package/dist/{kds-BbyaSB3L.js → kds-DyiiYpCx.js} +2 -2
- package/dist/{layerTabs-SRHmamTF.js → layerTabs-DPq4ttW1.js} +2 -2
- package/dist/{layerTabs-D2M3EVxt.cjs → layerTabs-Drr1L0gD.cjs} +1 -1
- package/dist/{lin-DxnORLL5.js → lin-BjIpTy2o.js} +3 -3
- package/dist/{lin-0U8FQZHZ.cjs → lin-CeIaVr28.cjs} +1 -1
- package/dist/{linIndass-DXtxVxcr.js → linIndass-D4FJDIeG.js} +2 -2
- package/dist/{linIndass-CX9Z02-e.cjs → linIndass-DlgJ3gDh.cjs} +1 -1
- package/dist/{lst-Bk2nvLuQ.cjs → lst-BXUZi05h.cjs} +1 -1
- package/dist/{lst-BKALUOuy.js → lst-CEyPd2Iy.js} +2 -2
- package/dist/{manualEntry-DHH0Yrr3.js → manualEntry-BhhulyiX.js} +2 -2
- package/dist/{manualEntry-DRK0QRnb.cjs → manualEntry-DTI2dyTE.cjs} +1 -1
- package/dist/{mapBackground-BXj8T-bG.js → mapBackground-D4fBccmw.js} +2 -2
- package/dist/{mapBackground-DTuXORjO.cjs → mapBackground-ypoRDxm4.cjs} +1 -1
- package/dist/{mappingList-N-lL8mnV.js → mappingList-BbAr-FN1.js} +3 -3
- package/dist/{mappingList-M9OukdCu.cjs → mappingList-Dde6DBJS.cjs} +1 -1
- package/dist/{markdownViewer-CgabPFUn.js → markdownViewer-C5qlB_cv.js} +5 -5
- package/dist/{markdownViewer-CcLL2hzV.cjs → markdownViewer-DAb1tFDK.cjs} +1 -1
- package/dist/{mix-control-modal-Lhzopftt.cjs → mix-control-modal-Ks7-P_k-.cjs} +1 -1
- package/dist/{mix-control-modal-DRL4otx8.js → mix-control-modal-y23G7DTX.js} +3 -3
- package/dist/{mixDataPermission-B5fpqFgm.js → mixDataPermission-9affepdw.js} +2 -2
- package/dist/{mixDataPermission-CWt9H_Ib.cjs → mixDataPermission-aBLHSBN0.cjs} +1 -1
- package/dist/{mixGrid-wE427LB0.js → mixGrid-CJntkaxR.js} +3 -3
- package/dist/{mixGrid-DTwH6At3.cjs → mixGrid-exdKJpll.cjs} +1 -1
- package/dist/{mixMap-Bo7_Womf.js → mixMap-CoxhnyI6.js} +3 -3
- package/dist/{mixMap-DKDtSARk.cjs → mixMap-D-H9x3o4.cjs} +1 -1
- package/dist/{mixModel-Dufgy8XG.cjs → mixModel-DR5M6c3C.cjs} +1 -1
- package/dist/{mixModel-CdMcRi5k.js → mixModel-gQirXXx9.js} +3 -3
- package/dist/{mixPie-BoUARcVT.cjs → mixPie-CXfidWye.cjs} +1 -1
- package/dist/{mixPie-Dr9Toi5T.js → mixPie-CehUNusa.js} +3 -3
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-BBqBIpmz.js → mjpegCamera-BzSG7iGB.js} +2 -2
- package/dist/{mjpegCamera-C20yRxub.cjs → mjpegCamera-D0mr-NeO.cjs} +1 -1
- package/dist/{monitorAlert-BgRCm9Vs.cjs → monitorAlert-DlGt_zMX.cjs} +1 -1
- package/dist/{monitorAlert-DVfJ6uNR.js → monitorAlert-VHA4MFKH.js} +2 -2
- package/dist/{monitorData-Dz_cHcBR.cjs → monitorData-B49WLtug.cjs} +1 -1
- package/dist/{monitorData-zfcYQmc8.js → monitorData-VDHXdIYs.js} +3 -3
- package/dist/{monitorSpeedChart-DYV_S1um.js → monitorSpeedChart-DIj0qWoP.js} +1 -1
- package/dist/{monitorSpeedChart-jAf_Agnm.cjs → monitorSpeedChart-DyuPhzss.cjs} +1 -1
- package/dist/{mxa-mziDHRQU.js → mxa-B3piUHaz.js} +3 -3
- package/dist/{mxa-DGkX2ysU.cjs → mxa-CfMqQDdg.cjs} +1 -1
- package/dist/{myValue-s0IC6eg0.js → myValue-D_GY2ok8.js} +2 -2
- package/dist/{myValue-6J41vLFg.cjs → myValue-M7g_lmjB.cjs} +1 -1
- package/dist/{myValueList-Dl-JfGq6.cjs → myValueList-4DK5QiXA.cjs} +1 -1
- package/dist/{myValueList-cOT1nYnO.js → myValueList-CoVt_6AS.js} +2 -2
- package/dist/{objectList-DGBiB_w6.js → objectList-DEiKb_Qg.js} +578 -631
- package/dist/objectList-DzGi3DXA.cjs +1 -0
- package/dist/photo-B_bGJai9.cjs +1 -0
- package/dist/{photo-C_1tDAZa.js → photo-Br-MkUO8.js} +155 -144
- package/dist/{pie-p9CvjJ_m.js → pie-Bn0wKGe5.js} +3 -3
- package/dist/{pie-DAEzlPEp.cjs → pie-DNOfJ75A.cjs} +1 -1
- package/dist/{pressBtn-DlhDUUdy.js → pressBtn-5YFttcTS.js} +4 -4
- package/dist/{pressBtn-DMMLEAFZ.cjs → pressBtn-f5yJnrvV.cjs} +1 -1
- package/dist/{progressBar-ZksfXpzu.cjs → progressBar-CKNFPnHE.cjs} +1 -1
- package/dist/{progressBar-C3K0DYlI.js → progressBar-owNCCNcz.js} +2 -2
- package/dist/{progressCircle-BBLr8loP.js → progressCircle-BGwd3rR2.js} +2 -2
- package/dist/{progressCircle-eFwDltuC.cjs → progressCircle-s2ejZsRm.cjs} +1 -1
- package/dist/{qrcode-F7MtRi3K.cjs → qrcode-B5cFR1bH.cjs} +1 -1
- package/dist/{qrcode-DgwPQO8V.js → qrcode-BoZ2Mjan.js} +2 -2
- package/dist/{raceBar-Cp-9uqpX.cjs → raceBar-9pKjUPB3.cjs} +1 -1
- package/dist/{raceBar-CyW79eH-.js → raceBar-DU9Bd7dr.js} +3 -3
- package/dist/{rad-CLvi3eWj.cjs → rad-Ch8taBlQ.cjs} +1 -1
- package/dist/{rad-CbFS-xjy.js → rad-DnWPGOUU.js} +2 -2
- package/dist/{rainfallFilterBar-DldKT-I5.cjs → rainfallFilterBar-Ch-B2_tB.cjs} +1 -1
- package/dist/{rainfallFilterBar-B0G4jUib.js → rainfallFilterBar-Dgkpvddj.js} +2 -2
- package/dist/{rainfallTimeCurve-C5r3fOW8.cjs → rainfallTimeCurve-BSU-_bQV.cjs} +1 -1
- package/dist/{rainfallTimeCurve-BlyxLbcV.js → rainfallTimeCurve-Cs5BHiE3.js} +3 -3
- package/dist/{rangeLin-B2vKFJHK.cjs → rangeLin-BB9iEY1l.cjs} +1 -1
- package/dist/{rangeLin-CLAcLUai.js → rangeLin-LI9h8NHk.js} +2 -2
- package/dist/{request-4n94CBXg.cjs → request-CvNMi086.cjs} +1 -1
- package/dist/{request-DT13bnc0.js → request-bXTintEv.js} +1 -1
- package/dist/{retainer1-Dy2VHVgc.js → retainer1-B40pcVTJ.js} +3 -3
- package/dist/{retainer1-EFUFSxMm.cjs → retainer1-iCmD4B9K.cjs} +1 -1
- package/dist/{retainer2-BKVJLvBo.cjs → retainer2-B3WxiPHq.cjs} +1 -1
- package/dist/{retainer2-3ITxlgwH.js → retainer2-biSotg_6.js} +3 -3
- package/dist/{riskRegionTable-C2GOEi0n.cjs → riskRegionTable-Bp5Zs_Qi.cjs} +1 -1
- package/dist/{riskRegionTable-BQ88G7F7.js → riskRegionTable-DWel5koY.js} +2 -2
- package/dist/{sankey-utV5RADH.cjs → sankey-BIisfhDr.cjs} +1 -1
- package/dist/{sankey-ehJmtfKp.js → sankey-DusWvLI1.js} +3 -3
- package/dist/{scd-D-Y1EEoF.js → scd-CpcQhYT9.js} +2 -2
- package/dist/{scd-Nx15OHeb.cjs → scd-DJ5kRYDc.cjs} +1 -1
- package/dist/{sideMenu-D6MgOAkf.js → sideMenu-Ct_iqDl4.js} +2 -2
- package/dist/{sideMenu-Ci3pDMFm.cjs → sideMenu-ORRUBDFb.cjs} +1 -1
- package/dist/{slopeStability-B9WvyL3-.cjs → slopeStability-DTPTg3PG.cjs} +1 -1
- package/dist/{slopeStability-Bu2a83d7.js → slopeStability-iqVxa0bH.js} +3 -3
- package/dist/{speedCurve-DrndMOKB.cjs → speedCurve-BPQZKDIm.cjs} +1 -1
- package/dist/{speedCurve-BR_xyp4X.js → speedCurve-Cl-bJ8rb.js} +3 -3
- package/dist/{staticLine-BLUdDtae.cjs → staticLine-BTR_6AgR.cjs} +1 -1
- package/dist/{staticLine-DYQUjE_3.js → staticLine-qZApen2m.js} +3 -3
- package/dist/{store-BpVoYd93.js → store-2y119umJ.js} +2 -2
- package/dist/{store-KXsdwyLp.cjs → store-C0zj_Rf7.cjs} +1 -1
- package/dist/{swiper-53BGkj5I.cjs → swiper-BvOAbs0U.cjs} +1 -1
- package/dist/{swiper-S8NYmcYS.js → swiper-DnI3EuaB.js} +3 -3
- package/dist/{terminalConfigList-DaEpZiog.js → terminalConfigList-BpQYMjSn.js} +3 -3
- package/dist/{terminalConfigList-DFDsxg1q.cjs → terminalConfigList-CSoD6ZOp.cjs} +1 -1
- package/dist/{terminalList-BgNFp3E0.cjs → terminalList-Bq-QAX8s.cjs} +1 -1
- package/dist/{terminalList-mKVmYqJm.js → terminalList-IAQ7mei9.js} +3 -3
- package/dist/{textbox-DAyhC67s.cjs → textbox-BMmMN6nZ.cjs} +1 -1
- package/dist/{textbox-Bazh9LRC.js → textbox-DK_cOQy5.js} +4 -4
- package/dist/{timeQueryBar-2cbPr7zw.cjs → timeQueryBar-BP0gb7_g.cjs} +1 -1
- package/dist/{timeQueryBar-BnVnJk5K.js → timeQueryBar-l9HrXlOq.js} +1 -1
- package/dist/{timeSeries-DEeo2zjY.cjs → timeSeries-DisCVCpU.cjs} +1 -1
- package/dist/{timeSeries-BF-2qAA7.js → timeSeries-HSjvMFTs.js} +4 -4
- package/dist/{timeSeriesCurve-CkCeP5mK.js → timeSeriesCurve-CrLXuU99.js} +3 -3
- package/dist/{timeSeriesCurve-BMhNq3WC.cjs → timeSeriesCurve-mgQuGvjW.cjs} +1 -1
- package/dist/{toggleBtn-hg6nIH97.cjs → toggleBtn-B1XZtKuh.cjs} +1 -1
- package/dist/{toggleBtn-BnIia9MT.js → toggleBtn-BzupLW6N.js} +3 -3
- package/dist/{trajectoryConfigPanel-agVnGJJ6.cjs → trajectoryConfigPanel-B2ojTqQ3.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-CfnLHqWP.js → trajectoryConfigPanel-DSIqC0nt.js} +1 -1
- package/dist/{trajectoryScatter-BBL5uJSS.js → trajectoryScatter-C2IRYmw4.js} +3 -3
- package/dist/{trajectoryScatter-BzFxJkJn.cjs → trajectoryScatter-D7PwYfQx.cjs} +1 -1
- package/dist/{universalConfigPanel-BueS1CeL.js → universalConfigPanel-CRPDLLv6.js} +1 -1
- package/dist/{universalConfigPanel-Db87fd8H.cjs → universalConfigPanel-DlYuOHHv.cjs} +1 -1
- package/dist/{universalTable-BXfm_1je.cjs → universalTable-CBstCmhL.cjs} +1 -1
- package/dist/{universalTable-5QpYwmyj.js → universalTable-InZV2Mc_.js} +2 -2
- package/dist/{video-C75mXLnF.js → video-B7M0uDdp.js} +5 -5
- package/dist/{video-QWpkqafn.cjs → video-BVbrSdp3.cjs} +1 -1
- package/dist/{videoMonitor-DSOQbTy9.js → videoMonitor-BaPhm798.js} +2 -2
- package/dist/{videoMonitor-Dlvtlmf3.cjs → videoMonitor-CX54qdGa.cjs} +1 -1
- package/dist/{vlu-BRrxfbLm.js → vlu-BU4pUssc.js} +2 -2
- package/dist/{vlu-DqqX7UrQ.cjs → vlu-EWkYp1Uy.cjs} +1 -1
- package/dist/{weather-B4twNcEf.js → weather-CRDTMuli.js} +3 -3
- package/dist/{weather-GNGvUFJc.cjs → weather-hZh2DELI.cjs} +1 -1
- package/dist/{windLin-DPr5J4_t.cjs → windLin-Cx_-n8g3.cjs} +1 -1
- package/dist/{windLin-DSh910GU.js → windLin-DbaPTa-Q.js} +2 -2
- package/package.json +1 -1
- package/dist/config-D3MEjLGn.js +0 -9
- package/dist/config-UTUPYJ45.cjs +0 -1
- package/dist/element-resize-detector-BlMXyWIR.cjs +0 -6
- package/dist/history-C4gipwnp.cjs +0 -1
- package/dist/index-EnNA0nIi.cjs +0 -582
- package/dist/objectList-DK5_HGK_.cjs +0 -1
- package/dist/photo-CBfgcj6v.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var S=Object.defineProperty,j=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var y=(i,o,r)=>o in i?S(i,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[o]=r,E=(i,o)=>{for(var r in o||(o={}))T.call(o,r)&&y(i,r,o[r]);if(C)for(var r of C(o))O.call(o,r)&&y(i,r,o[r]);return i},k=(i,o)=>j(i,w(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),H=require("./element-resize-detector-
|
|
1
|
+
"use strict";var S=Object.defineProperty,j=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var y=(i,o,r)=>o in i?S(i,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[o]=r,E=(i,o)=>{for(var r in o||(o={}))T.call(o,r)&&y(i,r,o[r]);if(C)for(var r of C(o))O.call(o,r)&&y(i,r,o[r]);return i},k=(i,o)=>j(i,w(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),H=require("./element-resize-detector-BNZCpkPn.cjs"),g=require("./index-LSCs4x8x.cjs"),V=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),I={class:"filter-bar"},x={class:"filter-item"},F={class:"filter-item"},q={class:"filter-item"},L={class:"time-range-btns"},z=["onClick"],U={class:"filter-item"},W={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"降雨筛选栏",NAME_EN:"Rainfall Filter Bar",ORDER:1},P={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},$=[{name:"WATER101",object_id:"",region:"北帮"},{name:"WATER102",object_id:"",region:"北帮"},{name:"WATER201",object_id:"",region:"南帮"},{name:"WATER305",object_id:"",region:"东帮"},{name:"WATER410",object_id:"",region:"西帮"}],Q=["name","object_id","region"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=50,X={DEFAULT:W,OPTIONS:P,DATA:$,PARAMS:Q,SOURCE:G,ITEMS:K,COMMON:J},Z=e.defineComponent(k(E({},X),{__name:"rainfallFilterBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const o=i;class r extends H.BaseComponent{extractStyles(){var m,p,n,v;const t=(m=this.props.conf)==null?void 0:m.options,s=((p=t==null?void 0:t.linkChannel)==null?void 0:p.value)||"rainfall",u=((n=t==null?void 0:t.customChannel)==null?void 0:n.value)||"";return{bgColor:((v=t==null?void 0:t.bgColor)==null?void 0:v.value)||"#ffffff",linkChannel:s==="custom"&&u?u:s}}}const b=new r(o,"rainfallFilterBar");b.setupLifecycle();const R=b.getStyle(),d=e.computed(()=>{var t;const l=(t=o.conf)==null?void 0:t.data;return!l||!Array.isArray(l)?[]:l.filter(s=>s.name)}),N=e.computed(()=>{const l=new Set;return d.value.forEach(t=>{t.region&&l.add(t.region)}),Array.from(l)}),_=e.computed(()=>{let l=d.value;return a.region&&(l=l.filter(t=>t.region===a.region)),l.map(t=>({label:t.name,value:t.name}))}),h=[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}],c=d.value[0],a=e.reactive({region:(c==null?void 0:c.region)||"",point:(c==null?void 0:c.name)||"",timeRange:"1d",dateRange:[g.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),g.dayjs().format("YYYY/MM/DD HH:mm")]}),Y=()=>{var t;const l=_.value;a.point=((t=l[0])==null?void 0:t.value)||""},D=l=>{a.timeRange=l;const t=g.dayjs(),s=l==="1d"?t.subtract(1,"day"):l==="1w"?t.subtract(1,"week"):t.subtract(1,"month");a.dateRange=[s.format("YYYY/MM/DD HH:mm"),t.format("YYYY/MM/DD HH:mm")]},A=()=>{a.timeRange=""},B=()=>{if(o.mode==="edit"||!a.point)return;const l=d.value.find(t=>t.name===a.point);if(!(l!=null&&l.object_id)){console.warn("[降雨筛选栏] 所选监测点未配置 object_id,无法发送联动");return}b.publish({type:"filter",region:a.region,point:a.point,objectId:l.object_id,timeRange:a.timeRange,dateRange:[...a.dateRange]})},M=e.computed(()=>({backgroundColor:R.value.bgColor}));return(l,t)=>{const s=f.ElOption,u=f.ElSelect,m=f.ElDatePicker,p=f.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"rainfall-filter-bar-wrap",style:e.normalizeStyle(M.value)},[e.createElementVNode("div",I,[e.createElementVNode("div",x,[t[3]||(t[3]=e.createElementVNode("span",{class:"filter-label"},"区域位置:",-1)),e.createVNode(u,{modelValue:a.region,"onUpdate:modelValue":t[0]||(t[0]=n=>a.region=n),placeholder:"全部区域",size:"small",style:{width:"110px"},onChange:Y},{default:e.withCtx(()=>[e.createVNode(s,{label:"全部区域",value:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,n=>(e.openBlock(),e.createBlock(s,{key:n,label:n,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",F,[t[4]||(t[4]=e.createElementVNode("span",{class:"filter-label"},"监测点:",-1)),e.createVNode(u,{modelValue:a.point,"onUpdate:modelValue":t[1]||(t[1]=n=>a.point=n),placeholder:"请选择",size:"small",style:{width:"120px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,n=>(e.openBlock(),e.createBlock(s,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",q,[t[5]||(t[5]=e.createElementVNode("span",{class:"filter-label"},"时间范围:",-1)),e.createElementVNode("div",L,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,n=>e.createElementVNode("button",{key:n.value,class:e.normalizeClass(["range-btn",{active:a.timeRange===n.value}]),onClick:v=>D(n.value)},e.toDisplayString(n.label),11,z)),64))])]),e.createElementVNode("div",U,[e.createVNode(m,{modelValue:a.dateRange,"onUpdate:modelValue":t[2]||(t[2]=n=>a.dateRange=n),type:"datetimerange",size:"small",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",style:{width:"340px"},onChange:A},null,8,["modelValue"])]),e.createVNode(p,{type:"primary",size:"small",onClick:B},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("查询",-1)])]),_:1})]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),ee=g._export_sfc(Z,[["__scopeId","data-v-792b14ef"]]);exports.default=ee;
|
|
@@ -17,8 +17,8 @@ import "element-plus/es/components/date-picker/style/css";
|
|
|
17
17
|
import "element-plus/es/components/select/style/css";
|
|
18
18
|
import "element-plus/es/components/option/style/css";
|
|
19
19
|
import { defineComponent as Q, computed as b, reactive as q, openBlock as c, createElementBlock as v, normalizeStyle as G, createElementVNode as s, createVNode as d, withCtx as y, Fragment as R, renderList as Y, createBlock as S, normalizeClass as J, toDisplayString as K, createTextVNode as X, renderSlot as Z } from "vue";
|
|
20
|
-
import { B as ee } from "./element-resize-detector-
|
|
21
|
-
import { d as h, _ as te } from "./index-
|
|
20
|
+
import { B as ee } from "./element-resize-detector-BykFgbx2.js";
|
|
21
|
+
import { d as h, _ as te } from "./index-CQCqGJ5R.js";
|
|
22
22
|
import { A as le, D as ae } from "./ele-vlu-icon-Bg6EHZdJ.js";
|
|
23
23
|
const ne = { class: "filter-bar" }, oe = { class: "filter-item" }, re = { class: "filter-item" }, ie = { class: "filter-item" }, se = { class: "time-range-btns" }, me = ["onClick"], ce = { class: "filter-item" }, ue = {
|
|
24
24
|
DEFAULT_ICON: ae,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ie=Object.defineProperty,ue=Object.defineProperties;var de=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var fe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var $=(m,a,r)=>a in m?ie(m,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):m[a]=r,P=(m,a)=>{for(var r in a||(a={}))fe.call(a,r)&&$(m,r,a[r]);if(U)for(var r of U(a))me.call(a,r)&&$(m,r,a[r]);return m},W=(m,a)=>ue(m,de(a));var G=(m,a,r)=>new Promise((E,g)=>{var y=b=>{try{k(r.next(b))}catch(f){g(f)}},I=b=>{try{k(r.throw(b))}catch(f){g(f)}},k=b=>b.done?E(b.value):Promise.resolve(b.value).then(y,I);k((r=r.apply(m,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const t=require("vue"),S=require("./index-EnNA0nIi.cjs"),pe=require("./EChartComponentBase-BTqBoBn8.cjs"),Z=require("@element-plus/icons-vue"),J=require("./ele-lin-icon-Dke_1AmT.cjs"),ve={class:"chart-panel"},he={class:"panel-header"},ge={class:"header-right"},be={class:"indicator-selector-panel"},Ce={class:"indicator-select-all"},ye={class:"legend-bar"},_e={class:"legend-items"},xe=["onClick"],Se={class:"legend-text"},Ee={key:0,class:"legend-page-info"},ke=["id"],Ne={DEFAULT_ICON:J.DEFAULT_ICON,ACTIVE_ICON:J.ACTIVE_ICON,NAME_CN:"降雨指标时序曲线",NAME_EN:"Rainfall Time Curve",ORDER:3},Ve={bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},gridColor:{value:"#f0f0f0",type:"color",label:"网格线颜色"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},we=[{name:"实时降水量(mm)",fv:"",object_id:"",color:"#5470c6",device:""},{name:"累计降水量(mm)",fv:"",object_id:"",color:"#ee6666",device:""}],De=["name","fv","object_id","color","device"],je=["mosaic","statistics","calculate"],Ae={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Ie=20,Me={DEFAULT:Ne,OPTIONS:Ve,DATA:we,PARAMS:De,SOURCE:je,ITEMS:Ie,COMMON:Ae},Oe=t.defineComponent(W(P({},Me),{__name:"rainfallTimeCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(m){const a=m,r=new Map,E=t.ref(""),g=t.ref(""),y=t.ref(""),I=t.computed(()=>{var o,e,l;return(e=(o=a.conf)==null?void 0:o.common)!=null&&e.object_id||(l=a.conf)!=null&&l.object_id?!0:O.value.some(d=>!!d.object_id)}),k=t.computed(()=>I.value||!!E.value);class b extends pe.EChartComponentBase{extractStyles(){var n,c,i,s,u,p,_;const e=(n=this.props.conf)==null?void 0:n.options,l=((c=e==null?void 0:e.linkChannel)==null?void 0:c.value)||"rainfall",d=((i=e==null?void 0:e.customChannel)==null?void 0:i.value)||"";return{bgColor:((s=e==null?void 0:e.bgColor)==null?void 0:s.value)||"#f5f7fa",panelBgColor:((u=e==null?void 0:e.panelBgColor)==null?void 0:u.value)||"#ffffff",textColor:((p=e==null?void 0:e.textColor)==null?void 0:p.value)||"#333333",gridColor:((_=e==null?void 0:e.gridColor)==null?void 0:_.value)||"#f0f0f0",linkChannel:l==="custom"&&d?d:l}}getChartOption(){return L(this.Style.value)}setSocketData(e){var n;if(!e)return;const l=e.datetime?e.datetime.split(".")[0]:S.dayjs().format("YYYY/MM/DD HH:mm");(((n=this.props.conf)==null?void 0:n.data)||[]).forEach(c=>{if(c.device){const p=this.extractDataValue(e,c.device);p!=null&&(g.value=String(p))}if(!c.fv)return;const i=this.extractDataValue(e,c.fv);if(i==null)return;const s=c.name||c.fv,u=r.get(s);u?(u.times.push(l),u.values.push(parseFloat(i)),u.times.length>200&&(u.times.shift(),u.values.shift())):r.set(s,{times:[l],values:[parseFloat(i)]})}),this.chartObj&&this.chartObj.setOption(L(this.Style.value),!1)}onLinkEvent(e){le(e)}}const f=new b(a,"rainfallTimeCurve");f.setupLifecycle();const M=f.getStyle(),K=f.getEchartId(),O=t.computed(()=>{var o;return((o=a.conf)==null?void 0:o.data)||[]}),h=t.computed(()=>{const o=new Set;return O.value.filter(e=>e.name&&!o.has(e.name)?(o.add(e.name),!0):!1)}),v=t.ref([]);t.watch(h,o=>{o.length>0&&v.value.length===0&&(v.value=o.map(e=>e.fv||e.name))},{immediate:!0});const B=t.computed({get:()=>h.value.length>0&&v.value.length===h.value.length,set:()=>{}}),Q=t.computed(()=>{const o=v.value.length;return o>0&&o<h.value.length}),X=t.computed(()=>{if(v.value.length===0)return"选择监测指标";if(v.value.length===h.value.length)return"全部指标已选";const e=h.value.filter(l=>v.value.includes(l.fv||l.name)).map(l=>l.name).join(", ");return e.length>14?e.substring(0,14)+"...":e}),ee=o=>{v.value=o?h.value.map(e=>e.fv||e.name):[],N()},C=t.ref(new Set),D=t.computed(()=>h.value.filter(o=>v.value.includes(o.fv||o.name)).map(o=>({name:g.value?`${g.value}-${o.name}`:o.name,color:o.color||"#5470c6",visible:!C.value.has(o.name)}))),te=t.computed(()=>`${D.value.filter(o=>o.visible).length}/${D.value.length}`),oe=o=>{const e=o.name.includes("-")?o.name.split("-").slice(1).join("-"):o.name;C.value.has(e)?C.value.delete(e):C.value.add(e),C.value=new Set(C.value),N()},ne=t.computed(()=>({backgroundColor:M.value.bgColor,color:M.value.textColor})),T=()=>{r.clear();const o=S.dayjs();O.value.forEach((e,l)=>{const d=[],n=[],c=[2800,3200],i=[200,300],s=c[l%2]||3e3,u=i[l%2]||200;for(let p=0;p<100;p++)d.push(o.subtract((100-p)*15,"minute").format("YYYY/MM/DD HH:mm")),n.push(+(s+(Math.random()-.5)*u+Math.sin(p/10)*u*.3).toFixed(2));r.set(e.name,{times:d,values:n})})},L=o=>{if(a.mode!=="edit"){if(!k.value)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};if(r.size===0)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]}}let e=[];for(const[,n]of r)n.times.length>e.length&&(e=n.times);!e.length&&a.mode==="edit"&&(e=Array.from({length:50},(n,c)=>S.dayjs().subtract((50-c)*15,"minute").format("YYYY/MM/DD HH:mm")));const l={},d=h.value.filter(n=>v.value.includes(n.fv||n.name)).map(n=>{const c=g.value?`${g.value}-${n.name}`:n.name;l[c]=!C.value.has(n.name);const i=r.get(n.name);return{name:c,type:"line",smooth:!0,showSymbol:!1,data:(i==null?void 0:i.values)||[],lineStyle:{color:n.color||"#5470c6",width:2.5,type:"solid"},itemStyle:{color:n.color||"#5470c6"}}});return{tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#1c3d90",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},legend:{show:!1,selected:l},grid:{top:15,right:40,bottom:60,left:60},xAxis:{type:"category",data:e,axisLine:{lineStyle:{color:o.gridColor}},axisLabel:{color:o.textColor,fontSize:11,rotate:15,interval:"auto",formatter:n=>{var c;if(n&&n.length>6){const i=n.split(" ");return(((c=i[0])==null?void 0:c.split("/").slice(1).join("/"))||"")+(i[1]?" "+i[1]:"")}return n}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",name:"监测数值",scale:!0,axisLine:{show:!1},axisLabel:{color:o.textColor,fontSize:11},splitLine:{lineStyle:{color:o.gridColor,type:"dashed"}}},dataZoom:[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"slider",height:18,bottom:8,borderColor:"transparent",backgroundColor:"#f0f0f0",fillerColor:"rgba(28, 61, 144, 0.2)",handleStyle:{color:"#1c3d90"},textStyle:{fontSize:10}}],series:d}},N=()=>{const o=f.getChartInstance();o&&o.setOption(L(M.value),!0)},ae=()=>{const o=f.getChartInstance();if(!o)return;const e=document.createElement("a");e.href=o.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`降雨指标时序曲线_${S.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},le=o=>{const{payload:e}=o;if(!e)return;if(e.type==="filter"){if(e.point&&(g.value=String(e.point)),e.objectId){const d=y.value;y.value=String(e.objectId),E.value=String(e.objectId),d!==y.value&&q(y.value)}(a.mode==="edit"||!e.objectId)&&(T(),N());return}const l=e.objectId||e.object_id;l&&(E.value=String(l),q(l))},q=o=>G(null,null,function*(){var i,s;if(!o||a.mode!=="preview")return;r.clear();const e=(i=f.session)==null?void 0:i.value;if(!e)return;const l=a.conf.id;e.componentRequests&&e.componentRequests.delete(l);const{data:d,common:n}=a.conf;Array.isArray(d)&&d.forEach(u=>{u.object_id=o}),n.multiObject||(n.object_id=o);try{const u=yield Promise.resolve().then(()=>require("./history-C4gipwnp.cjs")),_=yield new u.default().getHistoryData(a,"rainfallTimeCurve");_&&Array.isArray(_)&&(((s=a.conf)==null?void 0:s.data)||[]).forEach((j,re)=>{if(!j.fv)return;const se=j.name||j.fv,A=_[re],H=(A==null?void 0:A.data)||A;if(!Array.isArray(H))return;const ce=[...H].sort((x,V)=>new Date(x.time||x.datetime||"").getTime()-new Date(V.time||V.datetime||"").getTime()),Y=[],z=[];ce.forEach(x=>{const V=x.time||x.datetime,F=x[j.fv];if(V&&F!=null){const R=parseFloat(F);isNaN(R)||(Y.push(S.dayjs(V).format("YYYY/MM/DD HH:mm")),z.push(R))}}),Y.length>0&&r.set(se,{times:Y,values:z})}),console.log("[降雨时序曲线] 历史数据加载完成")}catch(u){console.warn("[降雨时序曲线] 历史数据获取失败:",u)}N(),e.registerComponent({id:l,request:null,onUpdate:(u,p)=>{u==="realtime"&&f.setSocketData(p)}});const c=f.getSource();f.subscribeBySource(c,o)});return t.onMounted(()=>{a.mode==="edit"&&T(),setTimeout(()=>{var o;return(o=f.getChartInstance())==null?void 0:o.resize()},200)}),t.onUnmounted(()=>{f.cleanup()}),t.watch(()=>a.conf,()=>{f.init(),a.mode==="edit"&&T()},{deep:!0}),(o,e)=>{const l=w.ElIcon,d=w.ElButton,n=w.ElCheckbox,c=w.ElCheckboxGroup,i=w.ElPopover;return t.openBlock(),t.createElementBlock("div",{class:"rainfall-time-curve",style:t.normalizeStyle(ne.value)},[t.createElementVNode("div",ve,[t.createElementVNode("div",he,[e[4]||(e[4]=t.createElementVNode("div",{class:"header-left"},[t.createElementVNode("span",{class:"indicator-dot"}),t.createElementVNode("span",{class:"panel-title"},"📊 指标时序演变曲线")],-1)),t.createElementVNode("div",ge,[t.createVNode(i,{placement:"bottom-start",width:220,trigger:"click"},{reference:t.withCtx(()=>[t.createVNode(d,{size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(X.value)+" ",1),t.createVNode(l,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(t.unref(Z.ArrowDown))]),_:1})]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",be,[t.createElementVNode("div",Ce,[t.createVNode(n,{modelValue:B.value,"onUpdate:modelValue":e[0]||(e[0]=s=>B.value=s),indeterminate:Q.value,onChange:ee},{default:t.withCtx(()=>[...e[2]||(e[2]=[t.createTextVNode(" 全部指标 ",-1)])]),_:1},8,["modelValue","indeterminate"])]),t.createVNode(c,{modelValue:v.value,"onUpdate:modelValue":e[1]||(e[1]=s=>v.value=s),onChange:N},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,s=>(t.openBlock(),t.createBlock(n,{key:s.fv,label:s.fv,class:"indicator-checkbox-item"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t.createVNode(d,{size:"small",onClick:ae},{default:t.withCtx(()=>[t.createVNode(l,null,{default:t.withCtx(()=>[t.createVNode(t.unref(Z.Download))]),_:1}),e[3]||(e[3]=t.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),t.createElementVNode("div",ye,[t.createElementVNode("div",_e,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,s=>(t.openBlock(),t.createElementBlock("span",{key:s.name,class:t.normalizeClass(["legend-item",{disabled:!s.visible}]),onClick:u=>oe(s)},[t.createElementVNode("span",{class:"legend-line",style:t.normalizeStyle({borderTopColor:s.visible?s.color:"#ccc",borderTopStyle:"solid"})},null,4),t.createElementVNode("span",Se,t.toDisplayString(s.name),1)],10,xe))),128)),D.value.length>8?(t.openBlock(),t.createElementBlock("span",Ee,t.toDisplayString(te.value),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",{id:t.unref(K),class:"chart-container"},null,8,ke)]),t.renderSlot(o.$slots,"default",{},void 0,!0)],4)}}})),Te=S._export_sfc(Oe,[["__scopeId","data-v-7b0c5991"]]);exports.default=Te;
|
|
1
|
+
"use strict";var ie=Object.defineProperty,ue=Object.defineProperties;var de=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var fe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var $=(m,a,r)=>a in m?ie(m,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):m[a]=r,P=(m,a)=>{for(var r in a||(a={}))fe.call(a,r)&&$(m,r,a[r]);if(U)for(var r of U(a))me.call(a,r)&&$(m,r,a[r]);return m},W=(m,a)=>ue(m,de(a));var G=(m,a,r)=>new Promise((E,g)=>{var y=b=>{try{k(r.next(b))}catch(f){g(f)}},I=b=>{try{k(r.throw(b))}catch(f){g(f)}},k=b=>b.done?E(b.value):Promise.resolve(b.value).then(y,I);k((r=r.apply(m,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const t=require("vue"),S=require("./index-LSCs4x8x.cjs"),pe=require("./EChartComponentBase-CleoClHm.cjs"),Z=require("@element-plus/icons-vue"),J=require("./ele-lin-icon-Dke_1AmT.cjs"),ve={class:"chart-panel"},he={class:"panel-header"},ge={class:"header-right"},be={class:"indicator-selector-panel"},Ce={class:"indicator-select-all"},ye={class:"legend-bar"},_e={class:"legend-items"},xe=["onClick"],Se={class:"legend-text"},Ee={key:0,class:"legend-page-info"},ke=["id"],Ne={DEFAULT_ICON:J.DEFAULT_ICON,ACTIVE_ICON:J.ACTIVE_ICON,NAME_CN:"降雨指标时序曲线",NAME_EN:"Rainfall Time Curve",ORDER:3},Ve={bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},gridColor:{value:"#f0f0f0",type:"color",label:"网格线颜色"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},we=[{name:"实时降水量(mm)",fv:"",object_id:"",color:"#5470c6",device:""},{name:"累计降水量(mm)",fv:"",object_id:"",color:"#ee6666",device:""}],De=["name","fv","object_id","color","device"],je=["mosaic","statistics","calculate"],Ae={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Ie=20,Me={DEFAULT:Ne,OPTIONS:Ve,DATA:we,PARAMS:De,SOURCE:je,ITEMS:Ie,COMMON:Ae},Oe=t.defineComponent(W(P({},Me),{__name:"rainfallTimeCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(m){const a=m,r=new Map,E=t.ref(""),g=t.ref(""),y=t.ref(""),I=t.computed(()=>{var o,e,l;return(e=(o=a.conf)==null?void 0:o.common)!=null&&e.object_id||(l=a.conf)!=null&&l.object_id?!0:O.value.some(d=>!!d.object_id)}),k=t.computed(()=>I.value||!!E.value);class b extends pe.EChartComponentBase{extractStyles(){var n,c,i,s,u,p,_;const e=(n=this.props.conf)==null?void 0:n.options,l=((c=e==null?void 0:e.linkChannel)==null?void 0:c.value)||"rainfall",d=((i=e==null?void 0:e.customChannel)==null?void 0:i.value)||"";return{bgColor:((s=e==null?void 0:e.bgColor)==null?void 0:s.value)||"#f5f7fa",panelBgColor:((u=e==null?void 0:e.panelBgColor)==null?void 0:u.value)||"#ffffff",textColor:((p=e==null?void 0:e.textColor)==null?void 0:p.value)||"#333333",gridColor:((_=e==null?void 0:e.gridColor)==null?void 0:_.value)||"#f0f0f0",linkChannel:l==="custom"&&d?d:l}}getChartOption(){return L(this.Style.value)}setSocketData(e){var n;if(!e)return;const l=e.datetime?e.datetime.split(".")[0]:S.dayjs().format("YYYY/MM/DD HH:mm");(((n=this.props.conf)==null?void 0:n.data)||[]).forEach(c=>{if(c.device){const p=this.extractDataValue(e,c.device);p!=null&&(g.value=String(p))}if(!c.fv)return;const i=this.extractDataValue(e,c.fv);if(i==null)return;const s=c.name||c.fv,u=r.get(s);u?(u.times.push(l),u.values.push(parseFloat(i)),u.times.length>200&&(u.times.shift(),u.values.shift())):r.set(s,{times:[l],values:[parseFloat(i)]})}),this.chartObj&&this.chartObj.setOption(L(this.Style.value),!1)}onLinkEvent(e){le(e)}}const f=new b(a,"rainfallTimeCurve");f.setupLifecycle();const M=f.getStyle(),K=f.getEchartId(),O=t.computed(()=>{var o;return((o=a.conf)==null?void 0:o.data)||[]}),h=t.computed(()=>{const o=new Set;return O.value.filter(e=>e.name&&!o.has(e.name)?(o.add(e.name),!0):!1)}),v=t.ref([]);t.watch(h,o=>{o.length>0&&v.value.length===0&&(v.value=o.map(e=>e.fv||e.name))},{immediate:!0});const B=t.computed({get:()=>h.value.length>0&&v.value.length===h.value.length,set:()=>{}}),Q=t.computed(()=>{const o=v.value.length;return o>0&&o<h.value.length}),X=t.computed(()=>{if(v.value.length===0)return"选择监测指标";if(v.value.length===h.value.length)return"全部指标已选";const e=h.value.filter(l=>v.value.includes(l.fv||l.name)).map(l=>l.name).join(", ");return e.length>14?e.substring(0,14)+"...":e}),ee=o=>{v.value=o?h.value.map(e=>e.fv||e.name):[],N()},C=t.ref(new Set),D=t.computed(()=>h.value.filter(o=>v.value.includes(o.fv||o.name)).map(o=>({name:g.value?`${g.value}-${o.name}`:o.name,color:o.color||"#5470c6",visible:!C.value.has(o.name)}))),te=t.computed(()=>`${D.value.filter(o=>o.visible).length}/${D.value.length}`),oe=o=>{const e=o.name.includes("-")?o.name.split("-").slice(1).join("-"):o.name;C.value.has(e)?C.value.delete(e):C.value.add(e),C.value=new Set(C.value),N()},ne=t.computed(()=>({backgroundColor:M.value.bgColor,color:M.value.textColor})),T=()=>{r.clear();const o=S.dayjs();O.value.forEach((e,l)=>{const d=[],n=[],c=[2800,3200],i=[200,300],s=c[l%2]||3e3,u=i[l%2]||200;for(let p=0;p<100;p++)d.push(o.subtract((100-p)*15,"minute").format("YYYY/MM/DD HH:mm")),n.push(+(s+(Math.random()-.5)*u+Math.sin(p/10)*u*.3).toFixed(2));r.set(e.name,{times:d,values:n})})},L=o=>{if(a.mode!=="edit"){if(!k.value)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};if(r.size===0)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]}}let e=[];for(const[,n]of r)n.times.length>e.length&&(e=n.times);!e.length&&a.mode==="edit"&&(e=Array.from({length:50},(n,c)=>S.dayjs().subtract((50-c)*15,"minute").format("YYYY/MM/DD HH:mm")));const l={},d=h.value.filter(n=>v.value.includes(n.fv||n.name)).map(n=>{const c=g.value?`${g.value}-${n.name}`:n.name;l[c]=!C.value.has(n.name);const i=r.get(n.name);return{name:c,type:"line",smooth:!0,showSymbol:!1,data:(i==null?void 0:i.values)||[],lineStyle:{color:n.color||"#5470c6",width:2.5,type:"solid"},itemStyle:{color:n.color||"#5470c6"}}});return{tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#1c3d90",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},legend:{show:!1,selected:l},grid:{top:15,right:40,bottom:60,left:60},xAxis:{type:"category",data:e,axisLine:{lineStyle:{color:o.gridColor}},axisLabel:{color:o.textColor,fontSize:11,rotate:15,interval:"auto",formatter:n=>{var c;if(n&&n.length>6){const i=n.split(" ");return(((c=i[0])==null?void 0:c.split("/").slice(1).join("/"))||"")+(i[1]?" "+i[1]:"")}return n}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",name:"监测数值",scale:!0,axisLine:{show:!1},axisLabel:{color:o.textColor,fontSize:11},splitLine:{lineStyle:{color:o.gridColor,type:"dashed"}}},dataZoom:[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"slider",height:18,bottom:8,borderColor:"transparent",backgroundColor:"#f0f0f0",fillerColor:"rgba(28, 61, 144, 0.2)",handleStyle:{color:"#1c3d90"},textStyle:{fontSize:10}}],series:d}},N=()=>{const o=f.getChartInstance();o&&o.setOption(L(M.value),!0)},ae=()=>{const o=f.getChartInstance();if(!o)return;const e=document.createElement("a");e.href=o.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`降雨指标时序曲线_${S.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},le=o=>{const{payload:e}=o;if(!e)return;if(e.type==="filter"){if(e.point&&(g.value=String(e.point)),e.objectId){const d=y.value;y.value=String(e.objectId),E.value=String(e.objectId),d!==y.value&&q(y.value)}(a.mode==="edit"||!e.objectId)&&(T(),N());return}const l=e.objectId||e.object_id;l&&(E.value=String(l),q(l))},q=o=>G(null,null,function*(){var i,s;if(!o||a.mode!=="preview")return;r.clear();const e=(i=f.session)==null?void 0:i.value;if(!e)return;const l=a.conf.id;e.componentRequests&&e.componentRequests.delete(l);const{data:d,common:n}=a.conf;Array.isArray(d)&&d.forEach(u=>{u.object_id=o}),n.multiObject||(n.object_id=o);try{const u=yield Promise.resolve().then(()=>require("./history-DFKjqRBY.cjs")),_=yield new u.default().getHistoryData(a,"rainfallTimeCurve");_&&Array.isArray(_)&&(((s=a.conf)==null?void 0:s.data)||[]).forEach((j,re)=>{if(!j.fv)return;const se=j.name||j.fv,A=_[re],H=(A==null?void 0:A.data)||A;if(!Array.isArray(H))return;const ce=[...H].sort((x,V)=>new Date(x.time||x.datetime||"").getTime()-new Date(V.time||V.datetime||"").getTime()),Y=[],z=[];ce.forEach(x=>{const V=x.time||x.datetime,F=x[j.fv];if(V&&F!=null){const R=parseFloat(F);isNaN(R)||(Y.push(S.dayjs(V).format("YYYY/MM/DD HH:mm")),z.push(R))}}),Y.length>0&&r.set(se,{times:Y,values:z})}),console.log("[降雨时序曲线] 历史数据加载完成")}catch(u){console.warn("[降雨时序曲线] 历史数据获取失败:",u)}N(),e.registerComponent({id:l,request:null,onUpdate:(u,p)=>{u==="realtime"&&f.setSocketData(p)}});const c=f.getSource();f.subscribeBySource(c,o)});return t.onMounted(()=>{a.mode==="edit"&&T(),setTimeout(()=>{var o;return(o=f.getChartInstance())==null?void 0:o.resize()},200)}),t.onUnmounted(()=>{f.cleanup()}),t.watch(()=>a.conf,()=>{f.init(),a.mode==="edit"&&T()},{deep:!0}),(o,e)=>{const l=w.ElIcon,d=w.ElButton,n=w.ElCheckbox,c=w.ElCheckboxGroup,i=w.ElPopover;return t.openBlock(),t.createElementBlock("div",{class:"rainfall-time-curve",style:t.normalizeStyle(ne.value)},[t.createElementVNode("div",ve,[t.createElementVNode("div",he,[e[4]||(e[4]=t.createElementVNode("div",{class:"header-left"},[t.createElementVNode("span",{class:"indicator-dot"}),t.createElementVNode("span",{class:"panel-title"},"📊 指标时序演变曲线")],-1)),t.createElementVNode("div",ge,[t.createVNode(i,{placement:"bottom-start",width:220,trigger:"click"},{reference:t.withCtx(()=>[t.createVNode(d,{size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(X.value)+" ",1),t.createVNode(l,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(t.unref(Z.ArrowDown))]),_:1})]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",be,[t.createElementVNode("div",Ce,[t.createVNode(n,{modelValue:B.value,"onUpdate:modelValue":e[0]||(e[0]=s=>B.value=s),indeterminate:Q.value,onChange:ee},{default:t.withCtx(()=>[...e[2]||(e[2]=[t.createTextVNode(" 全部指标 ",-1)])]),_:1},8,["modelValue","indeterminate"])]),t.createVNode(c,{modelValue:v.value,"onUpdate:modelValue":e[1]||(e[1]=s=>v.value=s),onChange:N},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,s=>(t.openBlock(),t.createBlock(n,{key:s.fv,label:s.fv,class:"indicator-checkbox-item"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t.createVNode(d,{size:"small",onClick:ae},{default:t.withCtx(()=>[t.createVNode(l,null,{default:t.withCtx(()=>[t.createVNode(t.unref(Z.Download))]),_:1}),e[3]||(e[3]=t.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),t.createElementVNode("div",ye,[t.createElementVNode("div",_e,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,s=>(t.openBlock(),t.createElementBlock("span",{key:s.name,class:t.normalizeClass(["legend-item",{disabled:!s.visible}]),onClick:u=>oe(s)},[t.createElementVNode("span",{class:"legend-line",style:t.normalizeStyle({borderTopColor:s.visible?s.color:"#ccc",borderTopStyle:"solid"})},null,4),t.createElementVNode("span",Se,t.toDisplayString(s.name),1)],10,xe))),128)),D.value.length>8?(t.openBlock(),t.createElementBlock("span",Ee,t.toDisplayString(te.value),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",{id:t.unref(K),class:"chart-container"},null,8,ke)]),t.renderSlot(o.$slots,"default",{},void 0,!0)],4)}}})),Te=S._export_sfc(Oe,[["__scopeId","data-v-7b0c5991"]]);exports.default=Te;
|
|
@@ -34,8 +34,8 @@ import "element-plus/es/components/checkbox/style/css";
|
|
|
34
34
|
import "element-plus/es/components/button/style/css";
|
|
35
35
|
import "element-plus/es/components/icon/style/css";
|
|
36
36
|
import { defineComponent as Ee, ref as M, computed as g, watch as ae, onMounted as Ie, onUnmounted as Me, openBlock as A, createElementBlock as O, normalizeStyle as ne, createElementVNode as f, createVNode as C, withCtx as _, createTextVNode as U, Fragment as le, renderList as se, createBlock as Oe, toDisplayString as V, unref as P, normalizeClass as Te, createCommentVNode as Ye, renderSlot as Le } from "vue";
|
|
37
|
-
import { d as T, _ as Ne } from "./index-
|
|
38
|
-
import { E as Ve } from "./EChartComponentBase-
|
|
37
|
+
import { d as T, _ as Ne } from "./index-CQCqGJ5R.js";
|
|
38
|
+
import { E as Ve } from "./EChartComponentBase-BS3bnTQC.js";
|
|
39
39
|
import { ArrowDown as He, Download as ze } from "@element-plus/icons-vue";
|
|
40
40
|
import { A as Re, D as Be } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
41
41
|
const $e = { class: "chart-panel" }, Fe = { class: "panel-header" }, Ue = { class: "header-right" }, Pe = { class: "indicator-selector-panel" }, qe = { class: "indicator-select-all" }, We = { class: "legend-bar" }, Ge = { class: "legend-items" }, Ze = ["onClick"], Je = { class: "legend-text" }, Ke = {
|
|
@@ -289,7 +289,7 @@ const $e = { class: "chart-panel" }, Fe = { class: "panel-header" }, Ue = { clas
|
|
|
289
289
|
c.object_id = t;
|
|
290
290
|
}), o.multiObject || (o.object_id = t);
|
|
291
291
|
try {
|
|
292
|
-
const c = yield import("./history-
|
|
292
|
+
const c = yield import("./history-CaqA0wpH.js"), k = yield new c.default().getHistoryData(a, "rainfallTimeCurve");
|
|
293
293
|
k && Array.isArray(k) && (((s = a.conf) == null ? void 0 : s.data) || []).forEach((L, he) => {
|
|
294
294
|
if (!L.fv) return;
|
|
295
295
|
const ge = L.name || L.fv, N = k[he], G = (N == null ? void 0 : N.data) || N;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var H=Object.defineProperty,P=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var q=(c,r,l)=>r in c?H(c,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):c[r]=l,z=(c,r)=>{for(var l in r||(r={}))B.call(r,l)&&q(c,l,r[l]);if(E)for(var l of E(r))j.call(r,l)&&q(c,l,r[l]);return c},V=(c,r)=>P(c,F(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),f=require("./element-resize-detector-
|
|
1
|
+
"use strict";var H=Object.defineProperty,P=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var q=(c,r,l)=>r in c?H(c,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):c[r]=l,z=(c,r)=>{for(var l in r||(r={}))B.call(r,l)&&q(c,l,r[l]);if(E)for(var l of E(r))j.call(r,l)&&q(c,l,r[l]);return c},V=(c,r)=>P(c,F(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),f=require("./element-resize-detector-BNZCpkPn.cjs"),G=require("./titleStyle-NSnz6cUg.cjs"),k=require("./ele-dzc-icon-h5wOUHF0.cjs"),Z=require("./installMarkArea-CjyaJPLE.cjs"),C=require("./installCanvasRenderer-CyhM1Qpl.cjs"),J=require("./install-C8buXQPI.cjs"),K=require("./install-CIT6k8Ga.cjs"),Q=require("./install-z6wShIZI.cjs"),W=require("./install-CYwVETsi.cjs"),X=require("./universalTransition-CIN_u2Cu.cjs"),L=require("./echarts-BB8O2KSA.cjs"),Y=require("./index-LSCs4x8x.cjs"),ee={DEFAULT_ICON:k.DEFAULT_ICON,ACTIVE_ICON:k.ACTIVE_ICON,NAME_CN:"区间曲线",NAME_EN:"Range Line",ORDER:6},te={titleColor:"#111",bgColor:"#fff",textColor:"#111",lineColor:"#314656",top:30,bottom:40,left:20,right:20,radiusSize:8,textSize:12,points:30,isHideTitle:!1,isSmooth:!1},N=[{name:"参数一",项目编号:"",object_id:""}],ie=["name","项目编号","object_id"],ne=["index","deviation","stability","balance","increment","risk","eigen"],oe={useAlias:!1,null:{type:"0",value:""},source:"index"},re=1,ae={DEFAULT:ee,OPTIONS:te,DATA:N,PARAMS:ie,SOURCE:ne,ITEMS:re,COMMON:oe},le=i.defineComponent(V(z({},ae),{__name:"rangeLin",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(c){C.use([C.install,J.install,K.install,Z.install,Q.install,W.install,C.install$1,X.installUniversalTransition]);const r=i.ref(i.inject("session",null)),l="rangelin_"+Math.random().toString(16).substring(4,12),R=["rgba(255, 173, 177, 0.2)","rgba(208, 201, 116, 0.2)","rgba(28, 118, 140, 1)","rgba(95, 28, 140, 1)","rgba(41, 196, 21, 1)"],v=["rgb(255, 173, 177)","rgb(208, 201, 116)","rgb(28, 118, 140)","rgb(95, 28, 140)","rgb(41, 196, 21)"];let s=null,y=null;const o=c;let a={area:[],pieces:[],data:[],times:[]};class I extends f.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),lineColor:this.getOptionValue("lineColor","#314656"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),points:this.getOptionValue("points",30),isHideTitle:this.getOptionValue("isHideTitle",!1),isSmooth:this.getOptionValue("isSmooth",!1)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:N,o.mode==="edit"&&w(),i.nextTick(()=>{let e=document.querySelector("#"+l);e&&(s||(s=L.init(e),y=f.elementResizeDetectorMaker({strategy:"scroll"}),y.listenTo(e,()=>s==null?void 0:s.resize())),s.setOption(_(),!0))})}onPreview(){O.preview()}cleanup(){y&&y.uninstall(document.querySelector("#"+l)),s&&s.clear(),s&&L.dispose(s),s=null,O.unregister()}}const A=new I(o,"rangeLin");A.setupLifecycle();const p=A.getStyle(),M=i.computed(()=>G.generateTitleStyle(o.conf.options)),_=()=>{var S,m,b,n;const{data:t,options:e}=o.conf;let d=t[0]||{};var g={tooltip:{trigger:"axis"},xAxis:{type:"category",boundaryGap:!1,data:a.times,axisLabel:{formatter:function(u,h){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(u))return u;let x=u.split(" ");return x[0]+`
|
|
2
2
|
`+x[1]},color:p.value.textColor,fontSize:p.value.textSize}},yAxis:{type:"value",axisPointer:{snap:!0}},grid:{top:((S=e==null?void 0:e.top)==null?void 0:S.value)||30,bottom:((m=e==null?void 0:e.bottom)==null?void 0:m.value)||40,left:((b=e==null?void 0:e.left)==null?void 0:b.value)||40,right:((n=e==null?void 0:e.right)==null?void 0:n.value)||20,containLabel:!0},visualMap:{show:!1,dimension:0,pieces:a.pieces},dataZoom:[{type:"slider",start:80,end:100,height:15,bottom:15,borderColor:"#e5e5e5",textStyle:{color:p.value.textColor},labelFormatter:function(u,h){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(h))return h;let x=h.split(" ");return x[0]+`
|
|
3
3
|
`+x[1]}},{type:"inside"}],series:[{name:(d==null?void 0:d.name)||"",type:"line",smooth:p.value.isSmooth,data:a.data,markArea:{data:a.area}}]};return g},w=()=>{var d;const t=f.hasDataSource(o.conf);let e=(d=p.value.points)!=null?d:30;a.area=[[{name:"区间一",xAxis:f.getxAxisDataTime(e,o.mode,t)[e-5]},{xAxis:f.getxAxisDataTime(e,o.mode,t)[e-10]}]],a.data=f.getRandomArr({num:e,max:200,min:0,mode:o.mode,hasDataSource:t}),a.times=f.getxAxisDataTime(e,o.mode,t),a.pieces=[{lte:e-10,color:p.value.lineColor},{gt:e-10,lte:e-5,color:v[0]},{gt:e-5,color:p.value.lineColor}]},$=(t,e)=>{let d=Array.from({length:t},(n,u)=>u),g=[];for(let n in e)g.push(...e[n]);let S=new Array(t).fill(!1);for(let[n,u]of g)for(let h=n;h<u;h++)S[h]=!0;return d.filter(n=>!S[n]).reduce((n,u)=>(n.length===0||u-n[n.length-1][1]>1?n.push([u,u]):n[n.length-1][1]=u,n),[])},U=t=>{if(!f.hasDataSource(o.conf))return;a.times=t.times,a.data=t.data,a.area=[],a.pieces=[];let e=0;for(let g in t.range)t.range[g]&&t.range[g].forEach(m=>{a.pieces.push({gte:m[0],lte:m[1],color:v[e]}),a.area.push([{name:g,xAxis:m[0],itemStyle:{color:R[e]}},{xAxis:t.times[m[1]]}])}),e++;let d=$(t.data.length,t.range);d.length&&d.forEach(g=>{a.pieces.push({gte:g[0]-1,lte:g[1]+1,color:p.value.lineColor})}),s==null||s.setOption(_(),!0)},D=t=>{f.hasDataSource(o.conf)},O={preview:()=>f.preview(o,r.value,U,D,"rangeLin"),unregister:()=>f.unregister(o,r.value)};i.watchEffect(()=>{o.conf.socketData&&D(o.conf.socketData)});const T=o.conf;return(t,e)=>(i.openBlock(),i.createElementBlock("div",{class:"mix-component",style:i.normalizeStyle({background:i.unref(p).bgColor,borderRadius:`${i.unref(p).radiusSize}px`})},[i.createElementVNode("div",{class:"mix-title",style:i.normalizeStyle(M.value)},i.toDisplayString(i.unref(T).caption||i.unref(T).name),5),i.createElementVNode("div",{class:"mix-body"},[i.createElementVNode("div",{class:"w-full h-full",id:l})]),i.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),se=Y._export_sfc(le,[["__scopeId","data-v-0b726b56"]]);exports.default=se;
|
|
@@ -11,7 +11,7 @@ var z = (u, a, n) => a in u ? B(u, a, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return u;
|
|
12
12
|
}, V = (u, a) => P(u, F(a));
|
|
13
13
|
import { defineComponent as G, ref as Z, inject as J, computed as K, watchEffect as Q, openBlock as W, createElementBlock as X, normalizeStyle as w, unref as S, createElementVNode as b, toDisplayString as Y, renderSlot as ee, nextTick as te } from "vue";
|
|
14
|
-
import { B as oe, e as ie, h as C, f as v, a as ae, u as re, p as ne } from "./element-resize-detector-
|
|
14
|
+
import { B as oe, e as ie, h as C, f as v, a as ae, u as re, p as ne } from "./element-resize-detector-BykFgbx2.js";
|
|
15
15
|
import { g as se } from "./titleStyle-BT5GlpAb.js";
|
|
16
16
|
import { A as le, D as ue } from "./ele-dzc-icon-D6eVpaHp.js";
|
|
17
17
|
import { i as de } from "./installMarkArea-Cdg4iciO.js";
|
|
@@ -22,7 +22,7 @@ import { i as he } from "./install-Cx1i_m0k.js";
|
|
|
22
22
|
import { i as xe } from "./install-8XfFtnlL.js";
|
|
23
23
|
import { i as Se } from "./universalTransition-Bv7ibBUh.js";
|
|
24
24
|
import { i as ye, d as be } from "./echarts-BVht3HHb.js";
|
|
25
|
-
import { _ as Ce } from "./index-
|
|
25
|
+
import { _ as Ce } from "./index-CQCqGJ5R.js";
|
|
26
26
|
const ve = {
|
|
27
27
|
DEFAULT_ICON: ue,
|
|
28
28
|
ACTIVE_ICON: le,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var $=Object.defineProperty,w=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var v=(c,s,t)=>s in c?$(c,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):c[s]=t,x=(c,s)=>{for(var t in s||(s={}))T.call(s,t)&&v(c,t,s[t]);if(m)for(var t of m(s))q.call(s,t)&&v(c,t,s[t]);return c},O=(c,s)=>w(c,S(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("./element-resize-detector-
|
|
1
|
+
"use strict";var $=Object.defineProperty,w=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var v=(c,s,t)=>s in c?$(c,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):c[s]=t,x=(c,s)=>{for(var t in s||(s={}))T.call(s,t)&&v(c,t,s[t]);if(m)for(var t of m(s))q.call(s,t)&&v(c,t,s[t]);return c},O=(c,s)=>w(c,S(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("./element-resize-detector-BNZCpkPn.cjs");function M(c,s,t){var j,y,g,h,n;const{common:d,data:_,options:i}=c,o=d.source||"mosaic";try{const l={action:"subscribe",component_name:c.type,items:Number(((j=i==null?void 0:i.points)==null?void 0:j.value)||c.points)||1,body:{},actionid:c.id},f=new Map;let b="";if(!d.multiObject||d.hideMultiObject){const e=d.object_id!==void 0&&d.object_id!==""?d:_[0]||{};b=F.getObjectId(e,d.useAlias,s)}let u=[];if(t==="alertTable"&&((y=i==null?void 0:i.columns)!=null&&y.value)&&(u=i.columns.value.filter(e=>e.useFv).map(e=>e.key)),_.forEach(e=>{d.multiObject?e.object_id=F.getObjectId(e,d.useAlias,s):e.object_id=b;const a=`${e.object_id}_${o}`;if(f.has(a))if(["progressBar","progressCircle"].includes(t)&&e.maxType==="fv")f.get(a).id.push(e.fv,e.max);else{let r=e.fv;t==="cmc"&&(r=e.item_fv),["ctrSwitch"].includes(t)&&(r=e.status_fv),r&&f.get(a).id.push(r)}else{let r=[];t==="alertTable"&&u.length>0?r=u:e.fv&&(r=[e.fv]),t==="evn"&&(r=[e.fv,e.status_fv]),["progressBar","progressCircle"].includes(t)&&e.maxType==="fv"&&(r=[e.fv,e.max]),t==="cmc"&&(r=[e.item_fv]),["ctrSwitch"].includes(t)&&(r=[e.status_fv]),r.length>0&&f.set(a,O(x({},e),{id:r}))}}),t==="sankey"){b=d.object_id||"";const e=`${b}_${o}`;f.has(e)?f.get(e).id.push(d.originFv):f.set(e,{object_id:b,id:[d.originFv]})}if(t==="scd"){b=((g=i==null?void 0:i.object)==null?void 0:g.value)||"";const e=`${b}_${o}`;f.has(e)?f.get(e).id.push((n=i==null?void 0:i.statusFv)==null?void 0:n.value):f.set(e,{object_id:b,id:[(h=i==null?void 0:i.statusFv)==null?void 0:h.value]})}for(const[e,a]of f)l.body[o]||(l.body[o]=[]),l.body[o].push({object_id:a.object_id,key:a.id});return l}catch(l){throw console.error("格式化请求时出错:",l),new Error("请求格式化失败")}}exports.formatRequest=M;
|
|
@@ -10,7 +10,7 @@ var v = (c, t, i) => t in c ? w(c, t, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
C.call(t, i) && v(c, i, t[i]);
|
|
11
11
|
return c;
|
|
12
12
|
}, F = (c, t) => O(c, T(t));
|
|
13
|
-
import { d as $ } from "./element-resize-detector-
|
|
13
|
+
import { d as $ } from "./element-resize-detector-BykFgbx2.js";
|
|
14
14
|
function M(c, t, i) {
|
|
15
15
|
var h, j, y, g, m;
|
|
16
16
|
const { common: d, data: u, options: s } = c, o = d.source || "mosaic";
|
|
@@ -27,8 +27,8 @@ var I = (f, i, s) => new Promise((t, v) => {
|
|
|
27
27
|
_((s = s.apply(f, i)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as k, reactive as j, computed as F, watchEffect as P, openBlock as $, createElementBlock as L, normalizeStyle as y, unref as d, createElementVNode as p, toDisplayString as D, renderSlot as U } from "vue";
|
|
30
|
-
import { B } from "./element-resize-detector-
|
|
31
|
-
import { d as h, _ as q } from "./index-
|
|
30
|
+
import { B } from "./element-resize-detector-BykFgbx2.js";
|
|
31
|
+
import { d as h, _ as q } from "./index-CQCqGJ5R.js";
|
|
32
32
|
import { g as G } from "./titleStyle-BT5GlpAb.js";
|
|
33
33
|
import { A as J, D as K } from "./ele-rtn-icon-CqCKSHIw.js";
|
|
34
34
|
const Q = { class: "mix-body" }, W = { class: "mix-footer" }, X = { class: "time-info" }, Z = {
|
|
@@ -120,7 +120,7 @@ const Q = { class: "mix-body" }, W = { class: "mix-footer" }, X = { class: "time
|
|
|
120
120
|
return {
|
|
121
121
|
preview: () => I(this, null, function* () {
|
|
122
122
|
try {
|
|
123
|
-
const a = yield new (yield import("./history-
|
|
123
|
+
const a = yield new (yield import("./history-CaqA0wpH.js")).default().getHistoryData(this.props, this.componentType);
|
|
124
124
|
this.setHistoryData(a);
|
|
125
125
|
} catch (e) {
|
|
126
126
|
console.error("[Retainer1] 获取历史数据失败:", e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var I=Object.defineProperty,V=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var z=(f,r,o)=>r in f?I(f,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):f[r]=o,O=(f,r)=>{for(var o in r||(r={}))Y.call(r,o)&&z(f,o,r[o]);if(M)for(var o of M(r))j.call(r,o)&&z(f,o,r[o]);return f},C=(f,r)=>V(f,R(r));var g=(f,r,o)=>new Promise((t,p)=>{var y=l=>{try{v(o.next(l))}catch(S){p(S)}},b=l=>{try{v(o.throw(l))}catch(S){p(S)}},v=l=>l.done?t(l.value):Promise.resolve(l.value).then(y,b);v((o=o.apply(f,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),A=require("./element-resize-detector-
|
|
1
|
+
"use strict";var I=Object.defineProperty,V=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var z=(f,r,o)=>r in f?I(f,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):f[r]=o,O=(f,r)=>{for(var o in r||(r={}))Y.call(r,o)&&z(f,o,r[o]);if(M)for(var o of M(r))j.call(r,o)&&z(f,o,r[o]);return f},C=(f,r)=>V(f,R(r));var g=(f,r,o)=>new Promise((t,p)=>{var y=l=>{try{v(o.next(l))}catch(S){p(S)}},b=l=>{try{v(o.throw(l))}catch(S){p(S)}},v=l=>l.done?t(l.value):Promise.resolve(l.value).then(y,b);v((o=o.apply(f,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),A=require("./element-resize-detector-BNZCpkPn.cjs"),h=require("./index-LSCs4x8x.cjs"),H=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-rtn-icon-BrsJIU8J.cjs"),w={class:"mix-body"},k={class:"mix-footer"},P={class:"time-info"},F={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"历程",NAME_EN:"Retainer1",ORDER:1},$={nameSize:16,valueSize:48,timeSize:12,radiusSize:8,bgColor:"#fff",titleColor:"#111",textColor:"#111"},N=[{object_id:"",retainer:"",fv:"",fv_name:"",retainer_code:"",status:[{code:0,text:"结束",color:"#409eff"},{code:1,text:"进行",color:"#f56c6c"}]}],q=["object_id","retainer","fv","fv_name","retainer_code"],L=["mosaic"],U=1,B={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},G={DEFAULT:F,OPTIONS:$,DATA:N,PARAMS:q,SOURCE:L,ITEMS:U,COMMON:B},J=s.defineComponent(C(O({},G),{__name:"retainer1",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(f){const r=f,o="--",t=s.reactive({title:o,statusText:o,statusColor:"#409eff",value:o,fvName:"",startTime:o,endTime:"- - - -",duration:o,status:0,startTimestamp:0}),p=d=>d<10?"0"+d:d,y=d=>d>=3600?`${p(Math.floor(d/3600))}:${p(Math.floor(d/60)%60)}:${p(Math.floor(d%60))}`:`${p(Math.floor(d/60))}:${p(Math.floor(d%60))}`;class b extends A.BaseComponent{constructor(){super(...arguments),this.subscribed=!1,this.durationTimer=null}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",16),valueSize:this.getOptionValue("valueSize",48),timeSize:this.getOptionValue("timeSize",12),radiusSize:this.getOptionValue("radiusSize",8)}}init(){var e,i,c;if(this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=N),this.props.mode==="edit"){const a=((i=this.props.conf.data)==null?void 0:i[0])||{},n=((c=a.status)==null?void 0:c[1])||{text:"进行",color:"#f56c6c"};t.title="设备名称",t.fvName=a.fv_name||a.fv||"FV",t.statusText=n.text,t.statusColor=n.color,t.value="123.45",t.startTime=h.dayjs().subtract(1,"hour").format("YYYY-MM-DD HH:mm:ss"),t.endTime="- - - -",t.duration="01:23"}}startDurationTimer(){this.durationTimer&&clearInterval(this.durationTimer),this.durationTimer=window.setInterval(()=>{if(t.status===1&&t.startTimestamp>0){const e=Math.floor((Date.now()-t.startTimestamp)/1e3);t.duration=y(e)}},1e3)}getPreviewHelper(){return{preview:()=>g(this,null,function*(){try{const i=yield new(yield Promise.resolve().then(()=>require("./history-DFKjqRBY.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(i)}catch(e){console.error("[Retainer1] 获取历史数据失败:",e)}}),unregister:()=>{this.durationTimer&&(clearInterval(this.durationTimer),this.durationTimer=null)}}}onPreview(){var a;if(this.subscribed)return;const e=this.resolveObjectId();this.subscribeRetainer(e),(((a=this.props.conf.data)==null?void 0:a[0])||{}).fv&&this.subscribeFv(e),this.subscribed=!0}setSocketData(e){if(e){if(e.event==="retainer_result"&&e.source_event){const i=e.source_event;i.retained===1||i.retained==="1"?this.handleRetainerOpen(i):(i.retained===0||i.retained==="0")&&this.handleRetainerClose(i);return}switch(e.event){case"retainer_open":this.handleRetainerOpen(e);break;case"retainer_close":this.handleRetainerClose(e);break;case"retainer_event":this.handleRetainerEvent(e);break;case"recv_fv":this.handleFvData(e);break}}}handleRetainerOpen(e){var n,u;const{conf:i}=this.props,c=((n=i.data)==null?void 0:n[0])||{};t.fvName=c.fv_name||c.fv||"",t.status=1;const a=(u=c.status)==null?void 0:u.find(m=>m.code===1);if(t.statusText=(a==null?void 0:a.text)||"进行",t.statusColor=(a==null?void 0:a.color)||"#f56c6c",t.title=e.label_local||e.label_en||i.name||"--",e.opened_at){t.startTime=h.dayjs(e.opened_at).format("YYYY-MM-DD HH:mm:ss"),t.startTimestamp=h.dayjs(e.opened_at).valueOf();const m=Math.floor((Date.now()-t.startTimestamp)/1e3);t.duration=y(m),this.startDurationTimer()}t.endTime="- - - -"}handleRetainerClose(e){var n,u;const{conf:i}=this.props,c=((n=i.data)==null?void 0:n[0])||{};t.status=0;const a=(u=c.status)==null?void 0:u.find(m=>m.code===0);if(t.statusText=(a==null?void 0:a.text)||"结束",t.statusColor=(a==null?void 0:a.color)||"#409eff",e.close_at&&(t.endTime=h.dayjs(e.close_at).format("YYYY-MM-DD HH:mm:ss")),e.opened_at&&e.close_at){const m=h.dayjs(e.opened_at).valueOf(),T=h.dayjs(e.close_at).valueOf(),D=Math.floor((T-m)/1e3);t.duration=y(D)}this.durationTimer&&(clearInterval(this.durationTimer),this.durationTimer=null)}handleRetainerEvent(e){}handleFvData(e){var a,n;const c=(((a=this.props.conf.data)==null?void 0:a[0])||{}).fv;if(c)try{const u=(n=e.data)==null?void 0:n[c];u!==void 0&&(t.value=u)}catch(u){console.error("[Retainer1] 处理 FV 数据失败:",u)}}setHistoryData(e){var a,n,u;const{conf:i}=this.props,c=((a=i.data)==null?void 0:a[0])||{};try{const m=(u=(n=e==null?void 0:e.history)==null?void 0:n[0])==null?void 0:u[0];m&&this.updateParams(m,c,i)}catch(m){console.error("[Retainer1] setHistoryData error:",m),this.resetParams()}}updateParams(e,i,c){var m,T,D;const a=i.fv;t.fvName=i.fv_name||a||"",t.status=typeof e.status=="string"?parseInt(e.status):(m=e.status)!=null?m:0;const n=(T=i.status)==null?void 0:T.find(_=>_.code===t.status);if(t.statusText=(n==null?void 0:n.text)||(t.status===1?"进行":"结束"),t.statusColor=(n==null?void 0:n.color)||(t.status===1?"#f56c6c":"#409eff"),t.title=e.label_cn||c.name||o,t.startTime=e.start_time?h.dayjs(e.start_time).format("YYYY-MM-DD HH:mm:ss"):o,t.endTime=e.end_time?h.dayjs(e.end_time).format("YYYY-MM-DD HH:mm:ss"):"- - - -",e.start_time){const _=h.dayjs(e.start_time).valueOf();if(t.startTimestamp=_,e.end_time){const x=h.dayjs(e.end_time).valueOf();t.duration=y(Math.floor((x-_)/1e3))}else{const x=Math.floor((Date.now()-_)/1e3);t.duration=y(x),this.startDurationTimer()}}else t.duration="00:00";let u=o;e.mosaic&&Array.isArray(e.mosaic)&&e.mosaic.length>0&&(u=(D=e.mosaic[0][a])!=null?D:o),t.value=u}resetParams(){t.title=o,t.statusText=o,t.statusColor="#409eff",t.value=o,t.startTime=o,t.endTime="- - - -",t.duration=o}}const v=new b(r,"retainer1");v.setupLifecycle();const l=v.getStyle(),S=s.computed(()=>H.generateTitleStyle(r.conf.options));return s.watchEffect(()=>{r.conf.historyData&&v.setHistoryData(r.conf.historyData),r.conf.socketData&&v.setSocketData(r.conf.socketData)}),(d,e)=>(s.openBlock(),s.createElementBlock("div",{class:"mix-component",style:s.normalizeStyle({background:s.unref(l).bgColor,borderRadius:s.unref(l).radiusSize+"px"})},[s.createElementVNode("div",{class:"mix-title",style:s.normalizeStyle(S.value)},s.toDisplayString(r.conf.caption||t.title),5),s.createElementVNode("div",w,[s.createElementVNode("div",{class:"status-tag",style:s.normalizeStyle({fontSize:s.unref(l).nameSize-2+"px",backgroundColor:t.statusColor,color:"#fff"})},s.toDisplayString(t.fvName?t.fvName+"("+t.statusText+")":t.statusText),5),s.createElementVNode("div",{class:"card-value",style:s.normalizeStyle({fontSize:s.unref(l).valueSize+"px",color:s.unref(l).textColor})},s.toDisplayString(t.value),5)]),s.createElementVNode("div",k,[s.createElementVNode("div",P,[s.createElementVNode("div",{class:"time-item",style:s.normalizeStyle({fontSize:s.unref(l).timeSize+"px",color:s.unref(l).titleColor})},s.toDisplayString(t.startTime),5),s.createElementVNode("div",{class:"time-item",style:s.normalizeStyle({fontSize:s.unref(l).timeSize+"px",color:s.unref(l).titleColor})},s.toDisplayString(t.endTime),5)]),s.createElementVNode("div",{class:"duration",style:s.normalizeStyle({fontSize:s.unref(l).timeSize+4+"px",color:s.unref(l).textColor})},s.toDisplayString(t.duration),5)]),s.renderSlot(d.$slots,"default",{},void 0,!0)],4))}})),K=h._export_sfc(J,[["__scopeId","data-v-cab9d0ed"]]);exports.default=K;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var se=Object.defineProperty,ae=Object.defineProperties;var re=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var G=(v,c,l)=>c in v?se(v,c,{enumerable:!0,configurable:!0,writable:!0,value:l}):v[c]=l,I=(v,c)=>{for(var l in c||(c={}))ce.call(c,l)&&G(v,l,c[l]);if($)for(var l of $(c))le.call(c,l)&&G(v,l,c[l]);return v},R=(v,c)=>ae(v,re(c));var U=(v,c,l)=>new Promise((b,w)=>{var H=D=>{try{M(l.next(D))}catch(S){w(S)}},E=D=>{try{M(l.throw(D))}catch(S){w(S)}},M=D=>D.done?b(D.value):Promise.resolve(D.value).then(H,E);M((l=l.apply(v,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),de=require("./element-resize-detector-BlMXyWIR.cjs"),L=require("./index-EnNA0nIi.cjs"),fe=require("./titleStyle-NSnz6cUg.cjs");require("./index-mAPVa0s4.cjs");const X=require("./ele-rtn-icon-BrsJIU8J.cjs"),he=require("./echarts-BB8O2KSA.cjs"),ue={class:"mix-body"},me={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"历程管理",NAME_EN:"Retainer2",ORDER:2},pe={titleColor:"#111",radiusSize:8,bgColor:"#fff",textColor:"#111",barWidth:30,barGap:0,timeWindow:5,isHideTitle:!0},J=[{name:"历程1",object_id:"",retainer:"",retainer_code:"",color:"#ee6666",showLine:!1,fv:"",lineStyle:"solid",lineWidth:2}],ye=["name","object_id","retainer","retainer_code","color","showLine",{key:"fv",dependent:"showLine"},{key:"lineStyle",dependent:"showLine"},{key:"lineWidth",dependent:"showLine"}],ge=["mosaic"],ve={useAlias:!1,multiObject:!0,showBothModes:!0,source:"mosaic"},be={DEFAULT:me,OPTIONS:pe,DATA:J,PARAMS:ye,SOURCE:ge,COMMON:ve},we=f.defineComponent(R(I({},be),{__name:"retainer2",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){const c=v,l=f.ref(null);let b=null;const w=f.reactive([]),H=p=>w[p];class E extends de.BaseComponent{constructor(){super(...arguments),this.subscribed=!1}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),barWidth:this.getOptionValue("barWidth",30),barGap:this.getOptionValue("barGap",0),timeWindow:this.getOptionValue("timeWindow",5),isHideTitle:this.getOptionValue("isHideTitle",!0)}}init(){var e;this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=J),this.props.mode==="edit"&&M()}getPreviewHelper(){return{preview:()=>U(this,null,function*(){try{const i=yield new(yield Promise.resolve().then(()=>require("./history-C4gipwnp.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(i)}catch(e){console.error("[Retainer2] 获取历史数据失败:",e)}}),unregister:()=>{}}}onPreview(){var n;if(this.subscribed)return;const{conf:e}=this.props,{data:i,common:t}=e;if(t.multiObject&&Array.isArray(i)){const o=new Set;i.forEach(s=>{const r=this.resolveObjectId(s);!r||o.has(r)||(o.add(r),this.subscribeRetainer(r),s.showLine&&s.fv&&this.subscribeFv(r))})}else{const o=this.resolveObjectId();this.subscribeRetainer(o),(n=i==null?void 0:i[0])!=null&&n.fv&&this.subscribeFv(o)}this.subscribed=!0}setSocketData(e){if(e)switch(e.event){case"retainer_open":this.handleRetainerOpen(e);break;case"retainer_close":this.handleRetainerClose(e);break;case"retainer_event":this.handleRetainerEvent(e);break;case"recv_fv":this.handleFvData(e);break}}handleRetainerOpen(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(a=>this.resolveObjectId(n!=null&&n.multiObject?a:void 0)===o);if(s===-1)return;let r=H(s);if(!r){const a=t[s];r={name:a.name||`历程${s+1}`,color:a.color||"#409eff",objectId:o,fv:a.fv||"",periods:[],lineData:[],showLine:a.showLine||!1,lineStyle:a.lineStyle||"solid",lineWidth:a.lineWidth||2},w.push(r)}e.opened_at&&r.periods.push({start:e.opened_at,end:null}),O()}handleRetainerClose(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(d=>this.resolveObjectId(n!=null&&n.multiObject?d:void 0)===o);if(s===-1)return;const r=H(s);if(!r)return;const a=r.periods[r.periods.length-1];a&&!a.end&&(a.end=e.close_at||new Date().toISOString()),O()}handleRetainerEvent(e){}handleFvData(e){var d;const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(h=>this.resolveObjectId(n!=null&&n.multiObject?h:void 0)===o);if(s===-1)return;const a=t[s].fv;if(a)try{const h=(d=e.data)==null?void 0:d[a];if(h!==void 0){const g=H(s);if(g&&g.showLine){const u=e.datetime||new Date().toISOString();g.lineData.push({time:u,value:h}),g.lineData.sort((_,T)=>new Date(_.time).getTime()-new Date(T.time).getTime()),O()}}}catch(h){console.error("[Retainer2] 处理 FV 数据失败:",h)}}setHistoryData(e){const{conf:i}=this.props,{data:t,common:n}=i;w.length=0,t.forEach((o,s)=>{var h;const r=this.resolveObjectId(n!=null&&n.multiObject?o:void 0),a=o.fv||"",d={name:o.name||`历程${s+1}`,color:o.color||"#409eff",objectId:r,fv:a,periods:[],lineData:[],showLine:o.showLine||!1,lineStyle:o.lineStyle||"solid",lineWidth:o.lineWidth||2};try{(((h=e==null?void 0:e.history)==null?void 0:h[s])||[]).forEach(u=>{u&&u.start_time&&(d.periods.push({start:u.start_time,end:u.end_time||null}),o.showLine&&a&&u.mosaic&&Array.isArray(u.mosaic)&&u.mosaic.forEach(_=>{const T=_[a];T!==void 0&&_.time&&d.lineData.push({time:_.time,value:T})}))}),d.lineData.sort((u,_)=>new Date(u.time).getTime()-new Date(_.time).getTime())}catch(g){}w.push(d)}),O()}}const M=()=>{const{data:p}=c.conf;w.length=0;const e=L.dayjs();p.forEach((i,t)=>{const n=`edit_object_${t}`,o=[{start:e.subtract(6+t,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(4+t,"hour").format("YYYY-MM-DD HH:mm:ss")},{start:e.subtract(2+t*.5,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(t*.3,"hour").format("YYYY-MM-DD HH:mm:ss")}],s=[];i.showLine&&o.forEach(r=>{const a=L.dayjs(r.start),h=L.dayjs(r.end).diff(a,"minute"),g=Math.max(5,Math.floor(h/10));for(let u=0;u<=g;u++){const _=a.add(h/g*u,"minute");s.push({time:_.format("YYYY-MM-DD HH:mm:ss"),value:150+Math.sin(u*.8+t*2)*50+t*30})}}),w.push({name:i.name||`历程${t+1}`,color:i.color||["#ee6666","#91cc75","#fac858"][t%3],objectId:n,fv:i.fv||"",periods:o,lineData:s,showLine:i.showLine||!1,lineStyle:i.lineStyle||"solid",lineWidth:i.lineWidth||2})})},D=new E(c,"retainer2");D.setupLifecycle();const S=D.getStyle(),W=c.conf,K=f.computed(()=>fe.generateTitleStyle(c.conf.options)),V=()=>w.filter(p=>p.showLine&&p.lineData.length>0),Q=()=>{const p=[],e=V();let i=1;return e.forEach(t=>{t.periods.forEach((n,o)=>{const s=new Date(n.start).getTime(),r=n.end?new Date(n.end).getTime():Date.now(),a=t.lineData.filter(d=>{const h=new Date(d.time).getTime();return h>=s&&h<=r}).map(d=>[new Date(d.time).getTime(),d.value]);a.length>0&&p.push({name:o===0?`${t.name}-曲线`:`${t.name}-曲线-${o+1}`,type:"line",yAxisIndex:i,smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:t.color,width:t.lineWidth,type:t.lineStyle},itemStyle:{color:t.color},data:a})}),i++}),p},Z=p=>{const e=V(),i=e.length,t=[{type:"value",min:0,max:p,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}}];return e.forEach((n,o)=>{const s=n.lineData.map(u=>u.value),r=Math.max(...s),a=Math.min(...s),d=Math.ceil(r*1.1),h=Math.floor(a*.9),g=o*50;t.push({type:"value",position:"right",offset:g,min:h,max:d,axisLine:{show:!0,lineStyle:{color:n.color}},axisTick:{show:!0,lineStyle:{color:n.color}},axisLabel:{color:n.color,fontSize:10},splitLine:{show:!1}})}),{yAxes:t,lineCount:i}},k=()=>{l.value&&(b=he.init(l.value),O())},O=()=>{var P;if(!b)return;const p=w.length||1,e=((P=l.value)==null?void 0:P.clientHeight)||300,i=30,t=10,n=e-i-t,o=S.value.barWidth||30,s=S.value.barGap||0,r=o+s,a=p*r;let d=o,h=s,g=r;if(a>n){const m=n/a;d=Math.max(o*m,10),h=s*m,g=d+h}const u=[];let _=!1;w.forEach((m,y)=>{m.periods.forEach(x=>{const C=new Date(x.start).getTime(),Y=x.end?new Date(x.end).getTime():Date.now();x.end||(_=!0),u.push({name:m.name,value:[C,Y,y],itemStyle:{color:x.end?m.color+"80":m.color}})})});const{yAxes:T,lineCount:N}=Z(p),ee=N>0?20+N*50:20,te={tooltip:{trigger:"axis",formatter:m=>{if(Array.isArray(m)){const y=m.find(x=>x.seriesType==="line");if(y){const x=L.dayjs(y.value[0]).format("YYYY-MM-DD HH:mm:ss");return`${y.seriesName}<br/>时间: ${x}<br/>数值: ${y.value[1]}`}}return""}},grid:{left:40,right:ee,top:t,bottom:i,containLabel:!1},xAxis:R(I({type:"time",position:"bottom"},_?{min:Date.now()-S.value.timeWindow*60*1e3,max:Date.now()}:{}),{axisLine:{show:!0,lineStyle:{color:S.value.titleColor}},axisTick:{show:!0,lineStyle:{color:S.value.titleColor}},axisLabel:{formatter:"{HH}:{mm}",color:S.value.textColor,fontSize:11,margin:8},splitLine:{show:!1}}),yAxis:T,series:[{name:"甘特图",type:"custom",yAxisIndex:0,renderItem:(m,y)=>{var F;const x=y.value(0),C=y.value(1),Y=y.value(2),A=y.coord([x,0])[0],oe=y.coord([C,0])[0],q=m.coordSys.y+m.coordSys.height-(Y+1)*g+h,ne=q+d/2,B=Math.max(oe-A,2),ie=((F=w[Y])==null?void 0:F.name)||"";return{type:"group",children:[{type:"rect",shape:{x:A,y:q,width:B,height:d,r:2},style:y.style()},{type:"text",style:{x:A+B/2,y:ne,text:ie,fill:"#fff",fontSize:11,textAlign:"center",textVerticalAlign:"middle"}}]}},encode:{x:[0,1],y:2,tooltip:[0,1]},tooltip:{formatter:m=>{const y=L.dayjs(m.value[0]).format("YYYY-MM-DD HH:mm:ss"),x=L.dayjs(m.value[1]).format("YYYY-MM-DD HH:mm:ss"),C=m.value[1]>=Date.now()-1e3;return`${m.name}<br/>开始: ${y}<br/>结束: ${C?"进行中":x}`}},data:u},...Q()]};b.setOption(te,!0)},z=()=>{b==null||b.resize()};let j=null;return f.onMounted(()=>{j=new ResizeObserver(()=>{b?b.resize():l.value&&k()}),l.value&&j.observe(l.value),setTimeout(()=>{k()},100),window.addEventListener("resize",z)}),f.onUnmounted(()=>{window.removeEventListener("resize",z),j==null||j.disconnect(),b==null||b.dispose()}),f.watch(()=>c.conf.data,()=>{c.mode==="edit"&&M(),O()},{deep:!0}),f.watch(()=>c.conf.options,()=>{S.value=D.extractStyles(),O()},{deep:!0}),f.watchEffect(()=>{c.conf.historyData&&D.setHistoryData(c.conf.historyData),c.conf.socketData&&D.setSocketData(c.conf.socketData)}),(p,e)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(S).bgColor,borderRadius:f.unref(S).radiusSize+"px"})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(K.value)},f.toDisplayString(f.unref(W).caption||f.unref(W).name),5),f.createElementVNode("div",ue,[f.createElementVNode("div",{class:"timeline-chart",ref_key:"chartRef",ref:l},null,512)]),f.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),De=L._export_sfc(we,[["__scopeId","data-v-8258f73d"]]);exports.default=De;
|
|
1
|
+
"use strict";var se=Object.defineProperty,ae=Object.defineProperties;var re=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var G=(v,c,l)=>c in v?se(v,c,{enumerable:!0,configurable:!0,writable:!0,value:l}):v[c]=l,I=(v,c)=>{for(var l in c||(c={}))ce.call(c,l)&&G(v,l,c[l]);if($)for(var l of $(c))le.call(c,l)&&G(v,l,c[l]);return v},R=(v,c)=>ae(v,re(c));var U=(v,c,l)=>new Promise((b,w)=>{var H=D=>{try{M(l.next(D))}catch(S){w(S)}},E=D=>{try{M(l.throw(D))}catch(S){w(S)}},M=D=>D.done?b(D.value):Promise.resolve(D.value).then(H,E);M((l=l.apply(v,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),de=require("./element-resize-detector-BNZCpkPn.cjs"),L=require("./index-LSCs4x8x.cjs"),fe=require("./titleStyle-NSnz6cUg.cjs");require("./index-mAPVa0s4.cjs");const X=require("./ele-rtn-icon-BrsJIU8J.cjs"),he=require("./echarts-BB8O2KSA.cjs"),ue={class:"mix-body"},me={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"历程管理",NAME_EN:"Retainer2",ORDER:2},pe={titleColor:"#111",radiusSize:8,bgColor:"#fff",textColor:"#111",barWidth:30,barGap:0,timeWindow:5,isHideTitle:!0},J=[{name:"历程1",object_id:"",retainer:"",retainer_code:"",color:"#ee6666",showLine:!1,fv:"",lineStyle:"solid",lineWidth:2}],ye=["name","object_id","retainer","retainer_code","color","showLine",{key:"fv",dependent:"showLine"},{key:"lineStyle",dependent:"showLine"},{key:"lineWidth",dependent:"showLine"}],ge=["mosaic"],ve={useAlias:!1,multiObject:!0,showBothModes:!0,source:"mosaic"},be={DEFAULT:me,OPTIONS:pe,DATA:J,PARAMS:ye,SOURCE:ge,COMMON:ve},we=f.defineComponent(R(I({},be),{__name:"retainer2",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){const c=v,l=f.ref(null);let b=null;const w=f.reactive([]),H=p=>w[p];class E extends de.BaseComponent{constructor(){super(...arguments),this.subscribed=!1}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),barWidth:this.getOptionValue("barWidth",30),barGap:this.getOptionValue("barGap",0),timeWindow:this.getOptionValue("timeWindow",5),isHideTitle:this.getOptionValue("isHideTitle",!0)}}init(){var e;this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=J),this.props.mode==="edit"&&M()}getPreviewHelper(){return{preview:()=>U(this,null,function*(){try{const i=yield new(yield Promise.resolve().then(()=>require("./history-DFKjqRBY.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(i)}catch(e){console.error("[Retainer2] 获取历史数据失败:",e)}}),unregister:()=>{}}}onPreview(){var n;if(this.subscribed)return;const{conf:e}=this.props,{data:i,common:t}=e;if(t.multiObject&&Array.isArray(i)){const o=new Set;i.forEach(s=>{const r=this.resolveObjectId(s);!r||o.has(r)||(o.add(r),this.subscribeRetainer(r),s.showLine&&s.fv&&this.subscribeFv(r))})}else{const o=this.resolveObjectId();this.subscribeRetainer(o),(n=i==null?void 0:i[0])!=null&&n.fv&&this.subscribeFv(o)}this.subscribed=!0}setSocketData(e){if(e)switch(e.event){case"retainer_open":this.handleRetainerOpen(e);break;case"retainer_close":this.handleRetainerClose(e);break;case"retainer_event":this.handleRetainerEvent(e);break;case"recv_fv":this.handleFvData(e);break}}handleRetainerOpen(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(a=>this.resolveObjectId(n!=null&&n.multiObject?a:void 0)===o);if(s===-1)return;let r=H(s);if(!r){const a=t[s];r={name:a.name||`历程${s+1}`,color:a.color||"#409eff",objectId:o,fv:a.fv||"",periods:[],lineData:[],showLine:a.showLine||!1,lineStyle:a.lineStyle||"solid",lineWidth:a.lineWidth||2},w.push(r)}e.opened_at&&r.periods.push({start:e.opened_at,end:null}),O()}handleRetainerClose(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(d=>this.resolveObjectId(n!=null&&n.multiObject?d:void 0)===o);if(s===-1)return;const r=H(s);if(!r)return;const a=r.periods[r.periods.length-1];a&&!a.end&&(a.end=e.close_at||new Date().toISOString()),O()}handleRetainerEvent(e){}handleFvData(e){var d;const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(h=>this.resolveObjectId(n!=null&&n.multiObject?h:void 0)===o);if(s===-1)return;const a=t[s].fv;if(a)try{const h=(d=e.data)==null?void 0:d[a];if(h!==void 0){const g=H(s);if(g&&g.showLine){const u=e.datetime||new Date().toISOString();g.lineData.push({time:u,value:h}),g.lineData.sort((_,T)=>new Date(_.time).getTime()-new Date(T.time).getTime()),O()}}}catch(h){console.error("[Retainer2] 处理 FV 数据失败:",h)}}setHistoryData(e){const{conf:i}=this.props,{data:t,common:n}=i;w.length=0,t.forEach((o,s)=>{var h;const r=this.resolveObjectId(n!=null&&n.multiObject?o:void 0),a=o.fv||"",d={name:o.name||`历程${s+1}`,color:o.color||"#409eff",objectId:r,fv:a,periods:[],lineData:[],showLine:o.showLine||!1,lineStyle:o.lineStyle||"solid",lineWidth:o.lineWidth||2};try{(((h=e==null?void 0:e.history)==null?void 0:h[s])||[]).forEach(u=>{u&&u.start_time&&(d.periods.push({start:u.start_time,end:u.end_time||null}),o.showLine&&a&&u.mosaic&&Array.isArray(u.mosaic)&&u.mosaic.forEach(_=>{const T=_[a];T!==void 0&&_.time&&d.lineData.push({time:_.time,value:T})}))}),d.lineData.sort((u,_)=>new Date(u.time).getTime()-new Date(_.time).getTime())}catch(g){}w.push(d)}),O()}}const M=()=>{const{data:p}=c.conf;w.length=0;const e=L.dayjs();p.forEach((i,t)=>{const n=`edit_object_${t}`,o=[{start:e.subtract(6+t,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(4+t,"hour").format("YYYY-MM-DD HH:mm:ss")},{start:e.subtract(2+t*.5,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(t*.3,"hour").format("YYYY-MM-DD HH:mm:ss")}],s=[];i.showLine&&o.forEach(r=>{const a=L.dayjs(r.start),h=L.dayjs(r.end).diff(a,"minute"),g=Math.max(5,Math.floor(h/10));for(let u=0;u<=g;u++){const _=a.add(h/g*u,"minute");s.push({time:_.format("YYYY-MM-DD HH:mm:ss"),value:150+Math.sin(u*.8+t*2)*50+t*30})}}),w.push({name:i.name||`历程${t+1}`,color:i.color||["#ee6666","#91cc75","#fac858"][t%3],objectId:n,fv:i.fv||"",periods:o,lineData:s,showLine:i.showLine||!1,lineStyle:i.lineStyle||"solid",lineWidth:i.lineWidth||2})})},D=new E(c,"retainer2");D.setupLifecycle();const S=D.getStyle(),W=c.conf,K=f.computed(()=>fe.generateTitleStyle(c.conf.options)),V=()=>w.filter(p=>p.showLine&&p.lineData.length>0),Q=()=>{const p=[],e=V();let i=1;return e.forEach(t=>{t.periods.forEach((n,o)=>{const s=new Date(n.start).getTime(),r=n.end?new Date(n.end).getTime():Date.now(),a=t.lineData.filter(d=>{const h=new Date(d.time).getTime();return h>=s&&h<=r}).map(d=>[new Date(d.time).getTime(),d.value]);a.length>0&&p.push({name:o===0?`${t.name}-曲线`:`${t.name}-曲线-${o+1}`,type:"line",yAxisIndex:i,smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:t.color,width:t.lineWidth,type:t.lineStyle},itemStyle:{color:t.color},data:a})}),i++}),p},Z=p=>{const e=V(),i=e.length,t=[{type:"value",min:0,max:p,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}}];return e.forEach((n,o)=>{const s=n.lineData.map(u=>u.value),r=Math.max(...s),a=Math.min(...s),d=Math.ceil(r*1.1),h=Math.floor(a*.9),g=o*50;t.push({type:"value",position:"right",offset:g,min:h,max:d,axisLine:{show:!0,lineStyle:{color:n.color}},axisTick:{show:!0,lineStyle:{color:n.color}},axisLabel:{color:n.color,fontSize:10},splitLine:{show:!1}})}),{yAxes:t,lineCount:i}},k=()=>{l.value&&(b=he.init(l.value),O())},O=()=>{var P;if(!b)return;const p=w.length||1,e=((P=l.value)==null?void 0:P.clientHeight)||300,i=30,t=10,n=e-i-t,o=S.value.barWidth||30,s=S.value.barGap||0,r=o+s,a=p*r;let d=o,h=s,g=r;if(a>n){const m=n/a;d=Math.max(o*m,10),h=s*m,g=d+h}const u=[];let _=!1;w.forEach((m,y)=>{m.periods.forEach(x=>{const C=new Date(x.start).getTime(),Y=x.end?new Date(x.end).getTime():Date.now();x.end||(_=!0),u.push({name:m.name,value:[C,Y,y],itemStyle:{color:x.end?m.color+"80":m.color}})})});const{yAxes:T,lineCount:N}=Z(p),ee=N>0?20+N*50:20,te={tooltip:{trigger:"axis",formatter:m=>{if(Array.isArray(m)){const y=m.find(x=>x.seriesType==="line");if(y){const x=L.dayjs(y.value[0]).format("YYYY-MM-DD HH:mm:ss");return`${y.seriesName}<br/>时间: ${x}<br/>数值: ${y.value[1]}`}}return""}},grid:{left:40,right:ee,top:t,bottom:i,containLabel:!1},xAxis:R(I({type:"time",position:"bottom"},_?{min:Date.now()-S.value.timeWindow*60*1e3,max:Date.now()}:{}),{axisLine:{show:!0,lineStyle:{color:S.value.titleColor}},axisTick:{show:!0,lineStyle:{color:S.value.titleColor}},axisLabel:{formatter:"{HH}:{mm}",color:S.value.textColor,fontSize:11,margin:8},splitLine:{show:!1}}),yAxis:T,series:[{name:"甘特图",type:"custom",yAxisIndex:0,renderItem:(m,y)=>{var F;const x=y.value(0),C=y.value(1),Y=y.value(2),A=y.coord([x,0])[0],oe=y.coord([C,0])[0],q=m.coordSys.y+m.coordSys.height-(Y+1)*g+h,ne=q+d/2,B=Math.max(oe-A,2),ie=((F=w[Y])==null?void 0:F.name)||"";return{type:"group",children:[{type:"rect",shape:{x:A,y:q,width:B,height:d,r:2},style:y.style()},{type:"text",style:{x:A+B/2,y:ne,text:ie,fill:"#fff",fontSize:11,textAlign:"center",textVerticalAlign:"middle"}}]}},encode:{x:[0,1],y:2,tooltip:[0,1]},tooltip:{formatter:m=>{const y=L.dayjs(m.value[0]).format("YYYY-MM-DD HH:mm:ss"),x=L.dayjs(m.value[1]).format("YYYY-MM-DD HH:mm:ss"),C=m.value[1]>=Date.now()-1e3;return`${m.name}<br/>开始: ${y}<br/>结束: ${C?"进行中":x}`}},data:u},...Q()]};b.setOption(te,!0)},z=()=>{b==null||b.resize()};let j=null;return f.onMounted(()=>{j=new ResizeObserver(()=>{b?b.resize():l.value&&k()}),l.value&&j.observe(l.value),setTimeout(()=>{k()},100),window.addEventListener("resize",z)}),f.onUnmounted(()=>{window.removeEventListener("resize",z),j==null||j.disconnect(),b==null||b.dispose()}),f.watch(()=>c.conf.data,()=>{c.mode==="edit"&&M(),O()},{deep:!0}),f.watch(()=>c.conf.options,()=>{S.value=D.extractStyles(),O()},{deep:!0}),f.watchEffect(()=>{c.conf.historyData&&D.setHistoryData(c.conf.historyData),c.conf.socketData&&D.setSocketData(c.conf.socketData)}),(p,e)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(S).bgColor,borderRadius:f.unref(S).radiusSize+"px"})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(K.value)},f.toDisplayString(f.unref(W).caption||f.unref(W).name),5),f.createElementVNode("div",ue,[f.createElementVNode("div",{class:"timeline-chart",ref_key:"chartRef",ref:l},null,512)]),f.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),De=L._export_sfc(we,[["__scopeId","data-v-8258f73d"]]);exports.default=De;
|
|
@@ -27,8 +27,8 @@ var q = (y, l, c) => new Promise((v, b) => {
|
|
|
27
27
|
L((c = c.apply(y, l)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as he, ref as ue, reactive as me, computed as pe, onMounted as ge, onUnmounted as ye, watch as J, watchEffect as ve, openBlock as be, createElementBlock as we, normalizeStyle as K, unref as E, createElementVNode as W, toDisplayString as De, renderSlot as Se } from "vue";
|
|
30
|
-
import { B as xe } from "./element-resize-detector-
|
|
31
|
-
import { d as O, _ as _e } from "./index-
|
|
30
|
+
import { B as xe } from "./element-resize-detector-BykFgbx2.js";
|
|
31
|
+
import { d as O, _ as _e } from "./index-CQCqGJ5R.js";
|
|
32
32
|
import { g as Le } from "./titleStyle-BT5GlpAb.js";
|
|
33
33
|
import "./index-ButoLLAe.js";
|
|
34
34
|
import { A as Me, D as Oe } from "./ele-rtn-icon-CqCKSHIw.js";
|
|
@@ -104,7 +104,7 @@ const Te = { class: "mix-body" }, Ye = {
|
|
|
104
104
|
return {
|
|
105
105
|
preview: () => q(this, null, function* () {
|
|
106
106
|
try {
|
|
107
|
-
const i = yield new (yield import("./history-
|
|
107
|
+
const i = yield new (yield import("./history-CaqA0wpH.js")).default().getHistoryData(this.props, this.componentType);
|
|
108
108
|
this.setHistoryData(i);
|
|
109
109
|
} catch (e) {
|
|
110
110
|
console.error("[Retainer2] 获取历史数据失败:", e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var A=Object.defineProperty,R=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var D=(o,a,n)=>a in o?A(o,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[a]=n,p=(o,a)=>{for(var n in a||(a={}))O.call(a,n)&&D(o,n,a[n]);if(k)for(var n of k(a))M.call(a,n)&&D(o,n,a[n]);return o},f=(o,a)=>R(o,T(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const I=require("./element-resize-detector-
|
|
1
|
+
"use strict";var A=Object.defineProperty,R=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var D=(o,a,n)=>a in o?A(o,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[a]=n,p=(o,a)=>{for(var n in a||(a={}))O.call(a,n)&&D(o,n,a[n]);if(k)for(var n of k(a))M.call(a,n)&&D(o,n,a[n]);return o},f=(o,a)=>R(o,T(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const I=require("./element-resize-detector-BNZCpkPn.cjs"),b=require("./index-LSCs4x8x.cjs"),V=require("./ele-lin-icon-Dke_1AmT.cjs"),B={class:"panel-header"},F={class:"header-left"},L={class:"pagination-box"},q=["disabled"],P={class:"page-text"},U=["disabled"],w={class:"table-wrapper"},$={class:"risk-table"},W={style:{"font-weight":"bold",color:"#333"}},G={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"风险区域划分",NAME_EN:"Risk Region Table",ORDER:20},H={title:{value:"风险区域划分",type:"string",label:"标题"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleFontSize:{value:14,type:"number",label:"标题字体大小",min:12,max:24},pageSize:{value:10,type:"number",label:"每页行数",min:5,max:20},linkChannel:{value:"satellite",type:"select",label:"联动频道",options:[{label:"遥感卫星",value:"satellite"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},J=[{name:"北帮-A01",fv:"",fvDeviceName:"",object_id:"",area:"北帮",val:12.5,limit:8},{name:"北帮-A02",fv:"",fvDeviceName:"",object_id:"",area:"北帮",val:10.8,limit:8},{name:"北帮-A03",fv:"",fvDeviceName:"",object_id:"",area:"北帮",val:9.2,limit:8},{name:"西帮-B01",fv:"",fvDeviceName:"",object_id:"",area:"西帮",val:7.6,limit:8},{name:"中央区-C01",fv:"",fvDeviceName:"",object_id:"",area:"中央区",val:6.4,limit:8},{name:"西帮-B02",fv:"",fvDeviceName:"",object_id:"",area:"西帮",val:5.8,limit:8},{name:"中央区-C02",fv:"",fvDeviceName:"",object_id:"",area:"中央区",val:4.3,limit:10},{name:"南帮-D01",fv:"",fvDeviceName:"",object_id:"",area:"南帮",val:3.2,limit:8},{name:"南帮-D02",fv:"",fvDeviceName:"",object_id:"",area:"南帮",val:2.8,limit:8},{name:"东帮-E01",fv:"",fvDeviceName:"",object_id:"",area:"东帮",val:1.5,limit:15},{name:"东帮-E02",fv:"",fvDeviceName:"",object_id:"",area:"东帮",val:.8,limit:15},{name:"中央区-C03",fv:"",fvDeviceName:"",object_id:"",area:"中央区",val:.2,limit:15}],K=["object_id","name","fv","fvDeviceName","area","val","limit"],Q=["mosaic"],X={useAlias:!1,multiObject:!0,source:"mosaic"},Y=200,Z={DEFAULT:G,OPTIONS:H,DATA:J,PARAMS:K,SOURCE:Q,COMMON:X,ITEMS:Y},ee=e.defineComponent(f(p({},Z),{__name:"riskRegionTable",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(o){const a=o;class n extends I.BaseComponent{extractStyles(){var m,d,_,E,C,y,S,h;const t=(m=this.props.conf)==null?void 0:m.options,l=((d=t==null?void 0:t.linkChannel)==null?void 0:d.value)||"satellite",r=((_=t==null?void 0:t.customChannel)==null?void 0:_.value)||"";return{title:((E=t==null?void 0:t.title)==null?void 0:E.value)||"风险区域划分",bgColor:((C=t==null?void 0:t.bgColor)==null?void 0:C.value)||"#ffffff",textColor:((y=t==null?void 0:t.textColor)==null?void 0:y.value)||"#333333",titleFontSize:((S=t==null?void 0:t.titleFontSize)==null?void 0:S.value)||14,pageSize:((h=t==null?void 0:t.pageSize)==null?void 0:h.value)||10,linkChannel:l==="custom"&&r?r:l}}onLinkEvent(t){}}const v=new n(a,"riskRegionTable");v.setupLifecycle();const c=v.getStyle(),s=e.ref(1),g=new Map,j=e.computed(()=>{var i;return((i=a.conf)==null?void 0:i.data)||[]}),N=e.computed(()=>{const i=j.value;return i.length===0&&a.mode==="edit"?[{area:"北帮",val:12.5,limit:8},{area:"北帮",val:10.8,limit:8},{area:"北帮",val:9.2,limit:8},{area:"西帮",val:7.6,limit:8},{area:"中央区",val:6.4,limit:8},{area:"西帮",val:5.8,limit:8},{area:"中央区",val:4.3,limit:10},{area:"南帮",val:3.2,limit:8},{area:"南帮",val:2.8,limit:8},{area:"东帮",val:1.5,limit:15},{area:"东帮",val:.8,limit:15},{area:"中央区",val:.2,limit:15}].map(t=>f(p({},t),{risk:b.getRiskLevel(t.val,t.limit)})):i.map(t=>{const l=t.object_id||t.name||"",r=g.has(l)?g.get(l):Number(t.val)||0,m=Number(t.limit)||8;return{area:t.area||"未知区域",val:r,limit:m,risk:b.getRiskLevel(r,m)}}).sort((t,l)=>l.val-t.val)}),u=e.computed(()=>Math.max(1,Math.ceil(N.value.length/c.value.pageSize))),z=e.computed(()=>{const i=c.value.pageSize,t=(s.value-1)*i;return N.value.slice(t,t+i)}),x=e.computed(()=>({backgroundColor:c.value.bgColor}));return e.watch(u,i=>{s.value>i&&(s.value=1)}),e.onMounted(()=>{v.init()}),e.onUnmounted(()=>{v.cleanup()}),e.watch(()=>a.conf,()=>{s.value=1},{deep:!0}),(i,t)=>(e.openBlock(),e.createElementBlock("div",{class:"risk-region-table",style:e.normalizeStyle(x.value)},[e.createElementVNode("div",B,[e.createElementVNode("div",F,[t[2]||(t[2]=e.createElementVNode("span",{class:"indicator-dot"},null,-1)),e.createElementVNode("span",{class:"panel-title",style:e.normalizeStyle({color:e.unref(c).textColor,fontSize:e.unref(c).titleFontSize+"px"})},e.toDisplayString(e.unref(c).title),5)]),e.createElementVNode("div",L,[e.createElementVNode("button",{class:"page-btn",disabled:s.value<=1,onClick:t[0]||(t[0]=l=>s.value--)},"<",8,q),e.createElementVNode("span",P,e.toDisplayString(s.value)+" / "+e.toDisplayString(u.value),1),e.createElementVNode("button",{class:"page-btn",disabled:s.value>=u.value,onClick:t[1]||(t[1]=l=>s.value++)},">",8,U)])]),e.createElementVNode("div",w,[e.createElementVNode("table",$,[t[3]||(t[3]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",null,"序号"),e.createElementVNode("th",null,"区域"),e.createElementVNode("th",null,"形变速率(mm/yr)"),e.createElementVNode("th",null,"风险等级")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,(l,r)=>(e.openBlock(),e.createElementBlock("tr",{key:r,class:e.normalizeClass({"tr-high":l.risk.cls==="risk-high"})},[e.createElementVNode("td",null,e.toDisplayString((s.value-1)*e.unref(c).pageSize+r+1),1),e.createElementVNode("td",W,e.toDisplayString(l.area),1),e.createElementVNode("td",{class:e.normalizeClass(l.risk.cls)},e.toDisplayString(l.val.toFixed(2)),3),e.createElementVNode("td",{class:e.normalizeClass(l.risk.cls)},e.toDisplayString(l.risk.level),3)],2))),128))])])]),e.renderSlot(i.$slots,"default",{},void 0,!0)],4))}})),te=b._export_sfc(ee,[["__scopeId","data-v-7ed7f65b"]]);exports.default=te;
|
|
@@ -12,8 +12,8 @@ var R = (s, a, n) => a in s ? L(s, a, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, _ = (s, a) => P(s, U(a));
|
|
13
13
|
import { defineComponent as $, ref as W, computed as u, watch as M, onMounted as q, onUnmounted as G, openBlock as C, createElementBlock as h, normalizeStyle as T, createElementVNode as t, unref as f, toDisplayString as c, Fragment as H, renderList as J, normalizeClass as k, renderSlot as K } from "vue";
|
|
14
14
|
import "html2canvas";
|
|
15
|
-
import { B as Q } from "./element-resize-detector-
|
|
16
|
-
import { l as O, _ as X } from "./index-
|
|
15
|
+
import { B as Q } from "./element-resize-detector-BykFgbx2.js";
|
|
16
|
+
import { l as O, _ as X } from "./index-CQCqGJ5R.js";
|
|
17
17
|
import { A as Y, D as Z } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
18
18
|
const ee = { class: "panel-header" }, te = { class: "header-left" }, ae = { class: "pagination-box" }, le = ["disabled"], ie = { class: "page-text" }, ne = ["disabled"], se = { class: "table-wrapper" }, oe = { class: "risk-table" }, re = { style: { "font-weight": "bold", color: "#333" } }, ve = { DEFAULT_ICON: Z, ACTIVE_ICON: Y, NAME_CN: "风险区域划分", NAME_EN: "Risk Region Table", ORDER: 20 }, ce = {
|
|
19
19
|
title: { value: "风险区域划分", type: "string", label: "标题" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var _=Object.defineProperty,O=Object.defineProperties;var k=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var p=(n,o,t)=>o in n?_(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t,v=(n,o)=>{for(var t in o||(o={}))w.call(o,t)&&p(n,t,o[t]);if(h)for(var t of h(o))j.call(o,t)&&p(n,t,o[t]);return n},m=(n,o)=>O(n,k(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),c=require("./element-resize-detector-BlMXyWIR.cjs"),E=require("./index-EnNA0nIi.cjs"),M=require("./EChartComponentBase-BTqBoBn8.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),D=require("./install-BvOpNm0Y.cjs"),d=require("./installCanvasRenderer-CyhM1Qpl.cjs"),A=require("./install-DV5cEgNV.cjs"),V=require("./install-CltTFs4e.cjs"),F=require("./install-C8buXQPI.cjs"),I="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e桑基图%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-104.000000,%20-1128.000000)'%20fill='%23000000'%20fill-rule='nonzero'%3e%3cpath%20d='M119.247329,1128.05%20C119.512288,1128.05%20119.731261,1128.24689%20119.765916,1128.50235%20L119.770694,1128.57336%20L119.770694,1143.52664%20C119.770694,1143.81568%20119.536375,1144.05%20119.247329,1144.05%20C118.98237,1144.05%20118.763398,1143.85311%20118.728742,1143.59765%20L118.723965,1143.52664%20L118.72348,1139.79084%20C117.56923,1139.58573%20116.44436,1139.24442%20115.375349,1138.77418%20L114.942038,1138.57503%20C114.252785,1138.8504%20113.580222,1139.16248%20112.927685,1139.50961%20C110.915224,1140.56725%20108.715224,1141.2498%20106.444376,1141.52335%20L106.312021,1141.537%20L106.31275,1143.52664%20C106.31275,1143.81568%20106.078431,1144.05%20105.789385,1144.05%20C105.524426,1144.05%20105.305454,1143.85311%20105.270798,1143.59765%20L105.266021,1143.52664%20L105.266021,1128.57336%20C105.266021,1128.28432%20105.500339,1128.05%20105.789385,1128.05%20C106.054344,1128.05%20106.273317,1128.24689%20106.307972,1128.50235%20L106.31275,1128.57336%20L106.312839,1131.26902%20C107.347402,1131.59714%20108.304953,1132.12257%20109.124935,1132.81923%20L109.369608,1133.03598%20C110.020476,1132.74226%20110.651317,1132.41015%20111.258793,1132.04132%20C113.524576,1130.74832%20116.103627,1130.0653%20118.723624,1130.04997%20L118.723965,1128.57336%20C118.723965,1128.28432%20118.958283,1128.05%20119.247329,1128.05%20Z%20M116.340569,1138.10774%20C117.109995,1138.414%20117.908209,1138.64444%20118.722842,1138.79616%20L118.723417,1137.60828%20C117.915824,1137.70219%20117.118171,1137.86916%20116.340569,1138.10774%20Z%20M109.181023,1134.21088%20C108.292696,1134.57422%20107.371263,1134.85419%20106.429337,1135.04973%20L106.312021,1135.071%20L106.312021,1138.532%20L106.43317,1138.51692%20C108.016878,1138.28807%20109.554229,1137.81981%20110.987274,1137.12854%20L111.414,1136.91449%20L111.831223,1136.70754%20C111.255456,1136.24693%20110.718073,1135.74459%20110.224081,1135.20554%20C109.860262,1134.83672%20109.514802,1134.50961%20109.181023,1134.21088%20Z%20M111.812866,1132.91582%20C111.292171,1133.2279%20110.756457,1133.51328%20110.205723,1133.77196%20C110.46607,1134.01061%20110.726417,1134.27931%20110.998446,1134.56802%20C111.562532,1135.16883%20112.185028,1135.71789%20112.855923,1136.20854%20C114.693593,1135.32818%20116.684743,1134.78626%20118.723539,1134.60487%20L118.723759,1131.06729%20C116.2993,1131.09796%20113.914626,1131.7301%20111.812866,1132.91582%20Z%20M106.31244,1132.33171%20L106.312021,1134.046%20L106.430502,1134.02203%20C107.059661,1133.88024%20107.678353,1133.69786%20108.283159,1133.4749%20C107.696639,1132.98733%20107.028791,1132.60203%20106.31244,1132.33171%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e桑基图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-104.000000,%20-1128.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M119.247329,1128.05%20C119.512288,1128.05%20119.731261,1128.24689%20119.765916,1128.50235%20L119.770694,1128.57336%20L119.770694,1143.52664%20C119.770694,1143.81568%20119.536375,1144.05%20119.247329,1144.05%20C118.98237,1144.05%20118.763398,1143.85311%20118.728742,1143.59765%20L118.723965,1143.52664%20L118.72348,1139.79084%20C117.56923,1139.58573%20116.44436,1139.24442%20115.375349,1138.77418%20L114.942038,1138.57503%20C114.252785,1138.8504%20113.580222,1139.16248%20112.927685,1139.50961%20C110.915224,1140.56725%20108.715224,1141.2498%20106.444376,1141.52335%20L106.312021,1141.537%20L106.31275,1143.52664%20C106.31275,1143.81568%20106.078431,1144.05%20105.789385,1144.05%20C105.524426,1144.05%20105.305454,1143.85311%20105.270798,1143.59765%20L105.266021,1143.52664%20L105.266021,1128.57336%20C105.266021,1128.28432%20105.500339,1128.05%20105.789385,1128.05%20C106.054344,1128.05%20106.273317,1128.24689%20106.307972,1128.50235%20L106.31275,1128.57336%20L106.312839,1131.26902%20C107.347402,1131.59714%20108.304953,1132.12257%20109.124935,1132.81923%20L109.369608,1133.03598%20C110.020476,1132.74226%20110.651317,1132.41015%20111.258793,1132.04132%20C113.524576,1130.74832%20116.103627,1130.0653%20118.723624,1130.04997%20L118.723965,1128.57336%20C118.723965,1128.28432%20118.958283,1128.05%20119.247329,1128.05%20Z%20M116.340569,1138.10774%20C117.109995,1138.414%20117.908209,1138.64444%20118.722842,1138.79616%20L118.723417,1137.60828%20C117.915824,1137.70219%20117.118171,1137.86916%20116.340569,1138.10774%20Z%20M109.181023,1134.21088%20C108.292696,1134.57422%20107.371263,1134.85419%20106.429337,1135.04973%20L106.312021,1135.071%20L106.312021,1138.532%20L106.43317,1138.51692%20C108.016878,1138.28807%20109.554229,1137.81981%20110.987274,1137.12854%20L111.414,1136.91449%20L111.831223,1136.70754%20C111.255456,1136.24693%20110.718073,1135.74459%20110.224081,1135.20554%20C109.860262,1134.83672%20109.514802,1134.50961%20109.181023,1134.21088%20Z%20M111.812866,1132.91582%20C111.292171,1133.2279%20110.756457,1133.51328%20110.205723,1133.77196%20C110.46607,1134.01061%20110.726417,1134.27931%20110.998446,1134.56802%20C111.562532,1135.16883%20112.185028,1135.71789%20112.855923,1136.20854%20C114.693593,1135.32818%20116.684743,1134.78626%20118.723539,1134.60487%20L118.723759,1131.06729%20C116.2993,1131.09796%20113.914626,1131.7301%20111.812866,1132.91582%20Z%20M106.31244,1132.33171%20L106.312021,1134.046%20L106.430502,1134.02203%20C107.059661,1133.88024%20107.678353,1133.69786%20108.283159,1133.4749%20C107.696639,1132.98733%20107.028791,1132.60203%20106.31244,1132.33171%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",N={class:"mix-body"},q=["id"],Z={DEFAULT_ICON:I,ACTIVE_ICON:T,NAME_CN:"桑基图",NAME_EN:"Sankey",ORDER:1},B={titleColor:"#111",bgColor:"#fff",labelColor:"#111",radiusSize:8,textSize:12,labelWidth:80,isHideTitle:!1},L=[{fv:"S01",name:"参数一",color:"#4162ff",origin:"总起源",object_id:""},{fv:"S02",name:"参数二",color:"#3bbc6a",origin:"总起源",object_id:""},{fv:"S03",name:"参数三",color:"#e24359",origin:"参数一",object_id:""},{fv:"S04",name:"参数四",color:"#fdcd61",origin:"参数一",object_id:""},{fv:"S05",name:"参数五",color:"#44b4ff",origin:"参数二",object_id:""},{fv:"S06",name:"参数六",color:"#3ba272",origin:"参数二",object_id:""}],R=["name","fv","object_id","color","origin"],$=["mosaic","statistics","calculate"],U={useAlias:!1,multiObject:!1,showBothModes:!0,origin:"总起源",originFv:"",source:"mosaic"},W={DEFAULT:Z,OPTIONS:B,DATA:L,PARAMS:R,SOURCE:$,COMMON:U},H=l.defineComponent(m(v({},W),{__name:"sankey",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(n){d.use([A.install,V.install,d.install,F.install,d.install$1,D.install]);const o=n,t={data:[],links:[]};class b extends M.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),labelColor:this.getOptionValue("labelColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),labelWidth:this.getOptionValue("labelWidth",80),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){super.init(),this.formatData()}getChartOption(){return{animation:!0,series:[{type:"sankey",left:20,top:20,right:this.Style.value.labelWidth,bottom:25,emphasis:{focus:"adjacency"},nodeGap:16,layoutIterations:0,data:t.data,links:t.links,avoidLabelOverlap:!1,label:{position:"right",color:this.Style.value.labelColor,fontSize:this.Style.value.textSize,formatter:s=>{var e;return s.name+" "+((e=s.value)!=null?e:0)}},lineStyle:{color:"source",curveness:.5}}]}}getDefaultData(){return L}formatData(){const{data:s,common:e}=this.props.conf;t.data=[],t.links=[];let a="";e.multiObject||(a=c.getObjectId(e,e.useAlias,this.props.uid)),s.forEach(i=>{let g=e.multiObject?c.getObjectId(i,e.useAlias,this.props.uid):a;t.data.push({name:i.name,itemStyle:{color:i.color,borderColor:i.color},fv:i.fv,object_id:g});const x=this.props.mode==="edit"?1:0;t.links.push({source:i.origin,target:i.name,value:i.value||x,fv:i.fv,object_id:g})}),a=c.getObjectId(e,e.useAlias,this.props.uid),t.data.unshift({name:e==null?void 0:e.origin,fv:e==null?void 0:e.originFv,object_id:a})}setSocketData(s){if(!s||!this.chartObj)return;const{data:e}=this.props.conf;t.data.forEach(a=>{if(!a.fv)return;const i=this.extractDataValue(s,a.fv);a.value=i!=null?i:a.value}),t.links.forEach(a=>{const i=this.extractDataValue(s,a.fv);a.value=i!=null?i:a.value}),this.chartObj.setOption(this.getChartOption(),!0)}}const r=new b(o,"sankey");r.setupLifecycle();const u=r.getStyle(),S=r.getEchartId(),f=o.conf,y=l.computed(()=>z.generateTitleStyle(o.conf.options));return(C,s)=>(l.openBlock(),l.createElementBlock("div",{class:"mix-component",style:l.normalizeStyle({background:l.unref(u).bgColor,borderRadius:`${l.unref(u).radiusSize}px`})},[l.createElementVNode("div",{class:"mix-title",style:l.normalizeStyle(y.value)},l.toDisplayString(l.unref(f).caption||l.unref(f).name),5),l.createElementVNode("div",N,[l.createElementVNode("div",{class:"w-full h-full",id:l.unref(S)},null,8,q)]),l.renderSlot(C.$slots,"default",{},void 0,!0)],4))}})),P=E._export_sfc(H,[["__scopeId","data-v-ef384b18"]]);exports.default=P;
|
|
1
|
+
"use strict";var _=Object.defineProperty,O=Object.defineProperties;var k=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var p=(n,o,t)=>o in n?_(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t,v=(n,o)=>{for(var t in o||(o={}))w.call(o,t)&&p(n,t,o[t]);if(h)for(var t of h(o))j.call(o,t)&&p(n,t,o[t]);return n},m=(n,o)=>O(n,k(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),c=require("./element-resize-detector-BNZCpkPn.cjs"),E=require("./index-LSCs4x8x.cjs"),M=require("./EChartComponentBase-CleoClHm.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),D=require("./install-BvOpNm0Y.cjs"),d=require("./installCanvasRenderer-CyhM1Qpl.cjs"),A=require("./install-DV5cEgNV.cjs"),V=require("./install-CltTFs4e.cjs"),F=require("./install-C8buXQPI.cjs"),I="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e桑基图%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-104.000000,%20-1128.000000)'%20fill='%23000000'%20fill-rule='nonzero'%3e%3cpath%20d='M119.247329,1128.05%20C119.512288,1128.05%20119.731261,1128.24689%20119.765916,1128.50235%20L119.770694,1128.57336%20L119.770694,1143.52664%20C119.770694,1143.81568%20119.536375,1144.05%20119.247329,1144.05%20C118.98237,1144.05%20118.763398,1143.85311%20118.728742,1143.59765%20L118.723965,1143.52664%20L118.72348,1139.79084%20C117.56923,1139.58573%20116.44436,1139.24442%20115.375349,1138.77418%20L114.942038,1138.57503%20C114.252785,1138.8504%20113.580222,1139.16248%20112.927685,1139.50961%20C110.915224,1140.56725%20108.715224,1141.2498%20106.444376,1141.52335%20L106.312021,1141.537%20L106.31275,1143.52664%20C106.31275,1143.81568%20106.078431,1144.05%20105.789385,1144.05%20C105.524426,1144.05%20105.305454,1143.85311%20105.270798,1143.59765%20L105.266021,1143.52664%20L105.266021,1128.57336%20C105.266021,1128.28432%20105.500339,1128.05%20105.789385,1128.05%20C106.054344,1128.05%20106.273317,1128.24689%20106.307972,1128.50235%20L106.31275,1128.57336%20L106.312839,1131.26902%20C107.347402,1131.59714%20108.304953,1132.12257%20109.124935,1132.81923%20L109.369608,1133.03598%20C110.020476,1132.74226%20110.651317,1132.41015%20111.258793,1132.04132%20C113.524576,1130.74832%20116.103627,1130.0653%20118.723624,1130.04997%20L118.723965,1128.57336%20C118.723965,1128.28432%20118.958283,1128.05%20119.247329,1128.05%20Z%20M116.340569,1138.10774%20C117.109995,1138.414%20117.908209,1138.64444%20118.722842,1138.79616%20L118.723417,1137.60828%20C117.915824,1137.70219%20117.118171,1137.86916%20116.340569,1138.10774%20Z%20M109.181023,1134.21088%20C108.292696,1134.57422%20107.371263,1134.85419%20106.429337,1135.04973%20L106.312021,1135.071%20L106.312021,1138.532%20L106.43317,1138.51692%20C108.016878,1138.28807%20109.554229,1137.81981%20110.987274,1137.12854%20L111.414,1136.91449%20L111.831223,1136.70754%20C111.255456,1136.24693%20110.718073,1135.74459%20110.224081,1135.20554%20C109.860262,1134.83672%20109.514802,1134.50961%20109.181023,1134.21088%20Z%20M111.812866,1132.91582%20C111.292171,1133.2279%20110.756457,1133.51328%20110.205723,1133.77196%20C110.46607,1134.01061%20110.726417,1134.27931%20110.998446,1134.56802%20C111.562532,1135.16883%20112.185028,1135.71789%20112.855923,1136.20854%20C114.693593,1135.32818%20116.684743,1134.78626%20118.723539,1134.60487%20L118.723759,1131.06729%20C116.2993,1131.09796%20113.914626,1131.7301%20111.812866,1132.91582%20Z%20M106.31244,1132.33171%20L106.312021,1134.046%20L106.430502,1134.02203%20C107.059661,1133.88024%20107.678353,1133.69786%20108.283159,1133.4749%20C107.696639,1132.98733%20107.028791,1132.60203%20106.31244,1132.33171%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e桑基图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-104.000000,%20-1128.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M119.247329,1128.05%20C119.512288,1128.05%20119.731261,1128.24689%20119.765916,1128.50235%20L119.770694,1128.57336%20L119.770694,1143.52664%20C119.770694,1143.81568%20119.536375,1144.05%20119.247329,1144.05%20C118.98237,1144.05%20118.763398,1143.85311%20118.728742,1143.59765%20L118.723965,1143.52664%20L118.72348,1139.79084%20C117.56923,1139.58573%20116.44436,1139.24442%20115.375349,1138.77418%20L114.942038,1138.57503%20C114.252785,1138.8504%20113.580222,1139.16248%20112.927685,1139.50961%20C110.915224,1140.56725%20108.715224,1141.2498%20106.444376,1141.52335%20L106.312021,1141.537%20L106.31275,1143.52664%20C106.31275,1143.81568%20106.078431,1144.05%20105.789385,1144.05%20C105.524426,1144.05%20105.305454,1143.85311%20105.270798,1143.59765%20L105.266021,1143.52664%20L105.266021,1128.57336%20C105.266021,1128.28432%20105.500339,1128.05%20105.789385,1128.05%20C106.054344,1128.05%20106.273317,1128.24689%20106.307972,1128.50235%20L106.31275,1128.57336%20L106.312839,1131.26902%20C107.347402,1131.59714%20108.304953,1132.12257%20109.124935,1132.81923%20L109.369608,1133.03598%20C110.020476,1132.74226%20110.651317,1132.41015%20111.258793,1132.04132%20C113.524576,1130.74832%20116.103627,1130.0653%20118.723624,1130.04997%20L118.723965,1128.57336%20C118.723965,1128.28432%20118.958283,1128.05%20119.247329,1128.05%20Z%20M116.340569,1138.10774%20C117.109995,1138.414%20117.908209,1138.64444%20118.722842,1138.79616%20L118.723417,1137.60828%20C117.915824,1137.70219%20117.118171,1137.86916%20116.340569,1138.10774%20Z%20M109.181023,1134.21088%20C108.292696,1134.57422%20107.371263,1134.85419%20106.429337,1135.04973%20L106.312021,1135.071%20L106.312021,1138.532%20L106.43317,1138.51692%20C108.016878,1138.28807%20109.554229,1137.81981%20110.987274,1137.12854%20L111.414,1136.91449%20L111.831223,1136.70754%20C111.255456,1136.24693%20110.718073,1135.74459%20110.224081,1135.20554%20C109.860262,1134.83672%20109.514802,1134.50961%20109.181023,1134.21088%20Z%20M111.812866,1132.91582%20C111.292171,1133.2279%20110.756457,1133.51328%20110.205723,1133.77196%20C110.46607,1134.01061%20110.726417,1134.27931%20110.998446,1134.56802%20C111.562532,1135.16883%20112.185028,1135.71789%20112.855923,1136.20854%20C114.693593,1135.32818%20116.684743,1134.78626%20118.723539,1134.60487%20L118.723759,1131.06729%20C116.2993,1131.09796%20113.914626,1131.7301%20111.812866,1132.91582%20Z%20M106.31244,1132.33171%20L106.312021,1134.046%20L106.430502,1134.02203%20C107.059661,1133.88024%20107.678353,1133.69786%20108.283159,1133.4749%20C107.696639,1132.98733%20107.028791,1132.60203%20106.31244,1132.33171%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",N={class:"mix-body"},q=["id"],Z={DEFAULT_ICON:I,ACTIVE_ICON:T,NAME_CN:"桑基图",NAME_EN:"Sankey",ORDER:1},B={titleColor:"#111",bgColor:"#fff",labelColor:"#111",radiusSize:8,textSize:12,labelWidth:80,isHideTitle:!1},L=[{fv:"S01",name:"参数一",color:"#4162ff",origin:"总起源",object_id:""},{fv:"S02",name:"参数二",color:"#3bbc6a",origin:"总起源",object_id:""},{fv:"S03",name:"参数三",color:"#e24359",origin:"参数一",object_id:""},{fv:"S04",name:"参数四",color:"#fdcd61",origin:"参数一",object_id:""},{fv:"S05",name:"参数五",color:"#44b4ff",origin:"参数二",object_id:""},{fv:"S06",name:"参数六",color:"#3ba272",origin:"参数二",object_id:""}],R=["name","fv","object_id","color","origin"],$=["mosaic","statistics","calculate"],U={useAlias:!1,multiObject:!1,showBothModes:!0,origin:"总起源",originFv:"",source:"mosaic"},W={DEFAULT:Z,OPTIONS:B,DATA:L,PARAMS:R,SOURCE:$,COMMON:U},H=l.defineComponent(m(v({},W),{__name:"sankey",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(n){d.use([A.install,V.install,d.install,F.install,d.install$1,D.install]);const o=n,t={data:[],links:[]};class b extends M.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),labelColor:this.getOptionValue("labelColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),labelWidth:this.getOptionValue("labelWidth",80),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){super.init(),this.formatData()}getChartOption(){return{animation:!0,series:[{type:"sankey",left:20,top:20,right:this.Style.value.labelWidth,bottom:25,emphasis:{focus:"adjacency"},nodeGap:16,layoutIterations:0,data:t.data,links:t.links,avoidLabelOverlap:!1,label:{position:"right",color:this.Style.value.labelColor,fontSize:this.Style.value.textSize,formatter:s=>{var e;return s.name+" "+((e=s.value)!=null?e:0)}},lineStyle:{color:"source",curveness:.5}}]}}getDefaultData(){return L}formatData(){const{data:s,common:e}=this.props.conf;t.data=[],t.links=[];let a="";e.multiObject||(a=c.getObjectId(e,e.useAlias,this.props.uid)),s.forEach(i=>{let g=e.multiObject?c.getObjectId(i,e.useAlias,this.props.uid):a;t.data.push({name:i.name,itemStyle:{color:i.color,borderColor:i.color},fv:i.fv,object_id:g});const x=this.props.mode==="edit"?1:0;t.links.push({source:i.origin,target:i.name,value:i.value||x,fv:i.fv,object_id:g})}),a=c.getObjectId(e,e.useAlias,this.props.uid),t.data.unshift({name:e==null?void 0:e.origin,fv:e==null?void 0:e.originFv,object_id:a})}setSocketData(s){if(!s||!this.chartObj)return;const{data:e}=this.props.conf;t.data.forEach(a=>{if(!a.fv)return;const i=this.extractDataValue(s,a.fv);a.value=i!=null?i:a.value}),t.links.forEach(a=>{const i=this.extractDataValue(s,a.fv);a.value=i!=null?i:a.value}),this.chartObj.setOption(this.getChartOption(),!0)}}const r=new b(o,"sankey");r.setupLifecycle();const u=r.getStyle(),S=r.getEchartId(),f=o.conf,y=l.computed(()=>z.generateTitleStyle(o.conf.options));return(C,s)=>(l.openBlock(),l.createElementBlock("div",{class:"mix-component",style:l.normalizeStyle({background:l.unref(u).bgColor,borderRadius:`${l.unref(u).radiusSize}px`})},[l.createElementVNode("div",{class:"mix-title",style:l.normalizeStyle(y.value)},l.toDisplayString(l.unref(f).caption||l.unref(f).name),5),l.createElementVNode("div",N,[l.createElementVNode("div",{class:"w-full h-full",id:l.unref(S)},null,8,q)]),l.renderSlot(C.$slots,"default",{},void 0,!0)],4))}})),P=E._export_sfc(H,[["__scopeId","data-v-ef384b18"]]);exports.default=P;
|
|
@@ -11,9 +11,9 @@ var g = (s, o, t) => o in s ? k(s, o, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return s;
|
|
12
12
|
}, v = (s, o) => O(s, w(o));
|
|
13
13
|
import { defineComponent as M, computed as A, openBlock as D, createElementBlock as z, normalizeStyle as L, unref as n, createElementVNode as c, toDisplayString as F, renderSlot as T } from "vue";
|
|
14
|
-
import { d } from "./element-resize-detector-
|
|
15
|
-
import { _ as V } from "./index-
|
|
16
|
-
import { E as I } from "./EChartComponentBase-
|
|
14
|
+
import { d } from "./element-resize-detector-BykFgbx2.js";
|
|
15
|
+
import { _ as V } from "./index-CQCqGJ5R.js";
|
|
16
|
+
import { E as I } from "./EChartComponentBase-BS3bnTQC.js";
|
|
17
17
|
import { g as Z } from "./titleStyle-BT5GlpAb.js";
|
|
18
18
|
import { i as N } from "./install-B2TChEcT.js";
|
|
19
19
|
import { u as $, i as B, a as R } from "./installCanvasRenderer-CLT2hquJ.js";
|
|
@@ -11,8 +11,8 @@ var Mn = (R, M, j) => M in R ? Zr(R, M, { enumerable: !0, configurable: !0, writ
|
|
|
11
11
|
return R;
|
|
12
12
|
}, zn = (R, M) => Kr(R, Jr(M));
|
|
13
13
|
import { defineComponent as ti, ref as ni, computed as ri, openBlock as J, createElementBlock as Q, normalizeStyle as N, unref as ge, createElementVNode as U, toDisplayString as se, Fragment as zt, renderList as Cn, normalizeClass as Ve, createTextVNode as ii, renderSlot as oi, nextTick as ai } from "vue";
|
|
14
|
-
import { B as si } from "./element-resize-detector-
|
|
15
|
-
import { b as ci, _ as li } from "./index-
|
|
14
|
+
import { B as si } from "./element-resize-detector-BykFgbx2.js";
|
|
15
|
+
import { b as ci, _ as li } from "./index-CQCqGJ5R.js";
|
|
16
16
|
import { g as ui } from "./titleStyle-BT5GlpAb.js";
|
|
17
17
|
var Ne = { exports: {} }, pi = Ne.exports, An;
|
|
18
18
|
function fi() {
|