mixdashboards 1.0.49 → 1.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{EChartComponentBase-CafVdj74.js → EChartComponentBase-BjiCJlIa.js} +1 -1
- package/dist/{EChartComponentBase-Dz5E-lyI.cjs → EChartComponentBase-CUbabNTX.cjs} +1 -1
- package/dist/{UniverSheet-CH1YywcZ.js → UniverSheet-B2ysdSZW.js} +2 -2
- package/dist/{UniverSheet-BqLvs6V6.cjs → UniverSheet-C97ENJKg.cjs} +1 -1
- package/dist/{accelerationChart-V4UmpPse.js → accelerationChart-BtHLKXou.js} +3 -3
- package/dist/{accelerationChart-BWRlw5-L.cjs → accelerationChart-CqZGLCTa.cjs} +1 -1
- package/dist/{actionItem-Dsg6qYSp.cjs → actionItem-Ba4CZB9l.cjs} +1 -1
- package/dist/{actionItem-CBwfWvTO.js → actionItem-D6ScXj3z.js} +3 -3
- package/dist/{alarmLevelChart-CnKEZZZv.js → alarmLevelChart-CAA_fUgy.js} +2 -2
- package/dist/{alarmLevelChart-DN8hyTdg.cjs → alarmLevelChart-DyThrs-J.cjs} +1 -1
- package/dist/{alertTable-CdkiAZIu.cjs → alertTable-DICnr2gs.cjs} +1 -1
- package/dist/{alertTable-BluC1smp.js → alertTable-_z8F5EWM.js} +2 -2
- package/dist/{annualRainfallChart-COeieHTg.js → annualRainfallChart-B0TXYlAe.js} +2 -2
- package/dist/{annualRainfallChart-BeenDSmW.cjs → annualRainfallChart-CbND_8XT.cjs} +1 -1
- package/dist/api-BR57NNEB.cjs +1 -0
- package/dist/api-CcAArQi7.js +164 -0
- package/dist/{aqi-BXtF-SsB.cjs → aqi-BOEGQCuM.cjs} +1 -1
- package/dist/{aqi-naf_yg1B.js → aqi-RDZu5nYt.js} +3 -3
- package/dist/{aqiIndass-CiHVV6y-.js → aqiIndass-BPAt5nQk.js} +2 -2
- package/dist/{aqiIndass-YO0txxEM.cjs → aqiIndass-CgURee9t.cjs} +1 -1
- package/dist/{arrayCard-CPtHFB--.js → arrayCard-BLUoVrsd.js} +2 -2
- package/dist/{arrayCard-USJyzspe.cjs → arrayCard-Wnr9xzrq.cjs} +1 -1
- package/dist/{audio-7HMku35Z.js → audio-DC_D2YUu.js} +4 -4
- package/dist/{audio-Uz_XIJyA.cjs → audio-DuS_h70S.cjs} +1 -1
- package/dist/{bar-Bq_RDVaa.js → bar-BeO49AzX.js} +4 -4
- package/dist/{bar-CSideFNS.cjs → bar-bZbB0yMx.cjs} +1 -1
- package/dist/{bmp-DZ9_aKMT.cjs → bmp-6zTErjQZ.cjs} +1 -1
- package/dist/{bmp-BF-OdMoW.js → bmp-CLKbvXOI.js} +3 -3
- package/dist/{box-DfqNW1B6.js → box-BxXWmt0X.js} +2 -2
- package/dist/{box-C1n5r8hT.cjs → box-eQDyV3hk.cjs} +1 -1
- package/dist/{chartConfigPanel-8wROQoL0.js → chartConfigPanel-BvnnoSQ2.js} +1 -1
- package/dist/{chartConfigPanel-C62JqDqE.cjs → chartConfigPanel-CE3d4OpP.cjs} +1 -1
- package/dist/{circleBar-C54UQvaf.js → circleBar-Cl5i_iPg.js} +3 -3
- package/dist/{circleBar-UrV2_yVK.cjs → circleBar-I4Mh4_kk.cjs} +1 -1
- package/dist/{clock-CbebZdlU.js → clock-4HEPNmup.js} +2 -2
- package/dist/{clock-DgkEPumE.cjs → clock-7KHM_O_j.cjs} +1 -1
- package/dist/{clt-B32D8bK9.js → clt-Cicmq_zn.js} +3 -3
- package/dist/{clt-DWBynZO1.cjs → clt-z0rh02ts.cjs} +1 -1
- package/dist/{cmc-BVrFcoih.cjs → cmc-BFOFyDhF.cjs} +1 -1
- package/dist/{cmc-CC-6njzU.js → cmc-DoKSe6kA.js} +3 -3
- package/dist/{cmp-BCvtkNwO.js → cmp-88WnAeeC.js} +3 -3
- package/dist/{cmp-D6aHhSC6.cjs → cmp-fxk3vvRJ.cjs} +1 -1
- package/dist/{composite-CWYjAAsg.js → composite-CJi4KbAS.js} +3 -3
- package/dist/{composite-kODICk08.cjs → composite-CpD_yPEG.cjs} +1 -1
- package/dist/{controlList-BXvCyR2L.cjs → controlList-DT21uV7S.cjs} +1 -1
- package/dist/{controlList-zYX8DbNE.js → controlList-Ds98eQhx.js} +3 -3
- package/dist/{controlRecordList-Dly5aorA.cjs → controlRecordList-BEXUdUlk.cjs} +1 -1
- package/dist/{controlRecordList-Bc2M0iyo.js → controlRecordList-YlkbvMFI.js} +3 -3
- package/dist/{crd--3Oj3Y1t.cjs → crd-C852SplB.cjs} +1 -1
- package/dist/{crd-CoB00gS6.js → crd-Cr3HLog9.js} +2 -2
- package/dist/{ctrBtn-CUADz_pu.js → ctrBtn-N0CQxGOu.js} +4 -4
- package/dist/{ctrBtn-BusKAhHv.cjs → ctrBtn-OUtZpJrN.cjs} +1 -1
- package/dist/{ctrSet-C0R2aIby.cjs → ctrSet-BRFaMtA6.cjs} +1 -1
- package/dist/{ctrSet-BKVsejze.js → ctrSet-Br9GbDQP.js} +4 -4
- package/dist/{ctrSwitch-BqRBh40z.js → ctrSwitch-CZi4Q2qY.js} +4 -4
- package/dist/{ctrSwitch-uIqQRKaq.cjs → ctrSwitch-Cbd5L15F.cjs} +1 -1
- package/dist/{dataManagement-BdP1iSeC.cjs → dataManagement-Bh9BM8p4.cjs} +1 -1
- package/dist/{dataManagement-C6jHI7-1.js → dataManagement-BnQyWMyj.js} +2 -2
- package/dist/{dataReport-DNPD3MZl.cjs → dataReport-Dsgpg9HI.cjs} +1 -1
- package/dist/{dataReport-C2XWn_Xv.js → dataReport-v01I_59R.js} +2 -2
- package/dist/{dataTable-5bUrqBWz.js → dataTable-BM4F69di.js} +1 -1
- package/dist/{dataTable-BvlEs83r.cjs → dataTable-DOVR0yGL.cjs} +1 -1
- package/dist/{datetime-CE5wsyi7.cjs → datetime-COHpK691.cjs} +1 -1
- package/dist/{datetime-Dp8mPzSO.js → datetime-DmYFqkn-.js} +2 -2
- package/dist/{deepClusterSlipSurface-BinAmtCz.cjs → deepClusterSlipSurface-02MBgHpP.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-D_7LRpHz.js → deepClusterSlipSurface-CdInWoSj.js} +3 -3
- package/dist/{deepDataMatrix-t6axw0An.cjs → deepDataMatrix-C6uYc1Ii.cjs} +1 -1
- package/dist/{deepDataMatrix-BXTJm6UD.js → deepDataMatrix-Dx6S0Ud4.js} +2 -2
- package/dist/{deepDisplacement3D-BRutQ6Ut.cjs → deepDisplacement3D-Cd3SYFTm.cjs} +1 -1
- package/dist/{deepDisplacement3D-Cy-FIGAq.js → deepDisplacement3D-e3cZoBIa.js} +3 -3
- package/dist/{deepDisplacementChart-BWVcNgaX.js → deepDisplacementChart-BRg-5xLU.js} +4 -4
- package/dist/{deepDisplacementChart-eD2GOxML.cjs → deepDisplacementChart-BdnmYVpg.cjs} +1 -1
- package/dist/{deepDisplacementChart---DgDx8L.js → deepDisplacementChart-Df_wRTax.js} +2 -2
- package/dist/{deepDisplacementChart-DboPezyJ.cjs → deepDisplacementChart-DyZzw3I1.cjs} +1 -1
- package/dist/{deepDisplacementView-CHFgG2wy.js → deepDisplacementView-7PEeLnmE.js} +1 -1
- package/dist/{deepDisplacementView-BNVTS7Ar.cjs → deepDisplacementView-DDmT4y42.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-CpJI7axl.cjs → deepNodeTemperatureChart-B7HLWtyp.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-N1z-KMmu.js → deepNodeTemperatureChart-DpZK2y_K.js} +3 -3
- package/dist/{deepTangentAngleChart-ClnxPvUM.js → deepTangentAngleChart-D2_fQpm1.js} +3 -3
- package/dist/{deepTangentAngleChart-DxB4EaWm.cjs → deepTangentAngleChart-jTYFJpUS.cjs} +1 -1
- package/dist/{deepTemperatureField-DT7iyND9.js → deepTemperatureField-Bj0tQot1.js} +3 -3
- package/dist/{deepTemperatureField-DWO8Dcjh.cjs → deepTemperatureField-C9oKBaWc.cjs} +1 -1
- package/dist/{deepTrendChart-C7_BfEiR.js → deepTrendChart-Cox4B6GG.js} +3 -3
- package/dist/{deepTrendChart-D9uQKgck.cjs → deepTrendChart-MgsjLjQP.cjs} +1 -1
- package/dist/{deviceOnlineStatus-BA7D5fbt.cjs → deviceOnlineStatus-Ckr78uqa.cjs} +1 -1
- package/dist/{deviceOnlineStatus-DlrB6EXN.js → deviceOnlineStatus-KoRHRByt.js} +2 -2
- package/dist/{deviceStatus-mDl8zF_Z.cjs → deviceStatus-C6zUE1Ch.cjs} +1 -1
- package/dist/{deviceStatus-aPf8MflS.js → deviceStatus-CLyOrzWr.js} +2 -2
- package/dist/{displacementDataTable-Da1xkiXG.js → displacementDataTable-B__8-EMW.js} +2 -2
- package/dist/{displacementDataTable-Co4In07D.cjs → displacementDataTable-CnMmwp_T.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-B85ad8vc.js → displacementTrajectoryChart-BD6_q2AN.js} +3 -3
- package/dist/{displacementTrajectoryChart-FPrvrbUa.cjs → displacementTrajectoryChart-EjHI5pSK.cjs} +1 -1
- package/dist/{displacementTrendChart-BRxIsjeK.js → displacementTrendChart-C2_U9d0k.js} +2 -2
- package/dist/{displacementTrendChart-DcBu8-_Z.cjs → displacementTrendChart-C9-Wcthw.cjs} +1 -1
- package/dist/{dxf-FrPSVW4C.js → dxf-BTdzQ1WR.js} +4 -4
- package/dist/{dxf-EDkdonhJ.cjs → dxf-BnW_56W9.cjs} +1 -1
- package/dist/{dzc-BBijV6-m.cjs → dzc-DIgGeG0y.cjs} +1 -1
- package/dist/{dzc-BOaL7miE.js → dzc-DWHQjxWE.js} +3 -3
- package/dist/{element-resize-detector-DYs3pJPp.cjs → element-resize-detector-Cl7PwC4K.cjs} +1 -1
- package/dist/{element-resize-detector-BCRzpPES.js → element-resize-detector-CoRhuer9.js} +4 -4
- package/dist/{evn-T-0VLXht.js → evn-CZWFRKvU.js} +2 -2
- package/dist/{evn-CAWNNpK2.cjs → evn-D964RzSY.cjs} +1 -1
- package/dist/{evolutionChart-B8vzbfrk.cjs → evolutionChart-CAZZ33t-.cjs} +1 -1
- package/dist/{evolutionChart-DYf3V-rl.js → evolutionChart-Co5KN4kk.js} +3 -3
- package/dist/{fileViewer-D6rC0YFY.cjs → fileViewer-8Tb-6ZXx.cjs} +1 -1
- package/dist/{fileViewer-BRVwWDA3.js → fileViewer-CIgKOZJY.js} +4 -4
- package/dist/{filterBar-hfIbyNh_.js → filterBar-DN3gl-1y.js} +2 -2
- package/dist/{filterBar-B3Ka4jw8.cjs → filterBar-DzSWAegi.cjs} +1 -1
- package/dist/{fireCombustionCurve-D1wKpm4i.js → fireCombustionCurve-2gyNx_37.js} +2 -2
- package/dist/{fireCombustionCurve-DKQJzKh2.cjs → fireCombustionCurve-BoPafSTF.cjs} +1 -1
- package/dist/{fireFilterBar-D8TTM4KM.cjs → fireFilterBar-BRlStM-R.cjs} +1 -1
- package/dist/{fireFilterBar-Bl0iCn48.js → fireFilterBar-DmyGJmXo.js} +2 -2
- package/dist/{gag-dKpxHBTV.cjs → gag-Bv61Z9xd.cjs} +1 -1
- package/dist/{gag-Vt7-rYYR.js → gag-D8OE6QuC.js} +2 -2
- package/dist/{gasStationList-g4AUNuxi.cjs → gasStationList-Db7hnhSp.cjs} +1 -1
- package/dist/{gasStationList-BDRHTLvR.js → gasStationList-pE2Ix1jL.js} +3 -3
- package/dist/{glbModel-BpnMbHQe.js → glbModel-BOccEfV7.js} +2 -2
- package/dist/{glbModel-BCgQzSz1.cjs → glbModel-CveO7gRY.cjs} +1 -1
- package/dist/{gnssFilterBar-BgS-JH3k.cjs → gnssFilterBar-DbvuQETH.cjs} +1 -1
- package/dist/{gnssFilterBar-CaGGhgEk.js → gnssFilterBar-o46kht8b.js} +2 -2
- package/dist/{gnssHistoryTable-CGY1ROb6.js → gnssHistoryTable-BR8BagaW.js} +3 -3
- package/dist/{gnssHistoryTable-Bkt4Zvxa.cjs → gnssHistoryTable-D4md3vW9.cjs} +1 -1
- package/dist/{gnssMapView-DuNotJym.cjs → gnssMapView-BONePEA0.cjs} +1 -1
- package/dist/{gnssMapView-C4-pk-1_.js → gnssMapView-CBuI36is.js} +2 -2
- package/dist/{gnssTimeSeriesChart-MZbERhu9.js → gnssTimeSeriesChart-BnkwIXD3.js} +4 -4
- package/dist/{gnssTimeSeriesChart-y7L6j_y5.cjs → gnssTimeSeriesChart-k759R4Jz.cjs} +1 -1
- package/dist/{gnssXYTrajectory-DZFjqFPv.cjs → gnssXYTrajectory-D8lgUVnP.cjs} +1 -1
- package/dist/{gnssXYTrajectory-DL8WWe1C.js → gnssXYTrajectory-XRvGqirG.js} +3 -3
- package/dist/{grd-BgaxrUfI.js → grd-GmODod_I.js} +3 -3
- package/dist/{grd-DNJ1rlwR.cjs → grd-b9meYGso.cjs} +1 -1
- package/dist/{grdIndass-Bxf2L3J5.js → grdIndass-CMhE_Am5.js} +3 -3
- package/dist/{grdIndass-DlwlkKKH.cjs → grdIndass-DOjsX9Xe.cjs} +1 -1
- package/dist/{grg-78Sh9Nr7.js → grg-Bof7f3MI.js} +2 -2
- package/dist/{grg-CmxBlYJ6.cjs → grg-BsVjC-sq.cjs} +1 -1
- package/dist/{gridview-FFx-3wNz.cjs → gridview-CQreGJwJ.cjs} +1 -1
- package/dist/{gridview-BWe_qLy-.js → gridview-CZUzJi9i.js} +2 -2
- package/dist/{groupCard-B2ORsgUN.js → groupCard-B7bg93K0.js} +2 -2
- package/dist/{groupCard-BOqERSM4.cjs → groupCard-D8CtEB-E.cjs} +1 -1
- package/dist/{headerBar-DPlPX8uD.js → headerBar-CvH7Zc7X.js} +3 -3
- package/dist/{headerBar-o2J2Dqkd.cjs → headerBar-eKaZGrw3.cjs} +1 -1
- package/dist/{history-DH68UK_U.js → history-D-BYETka.js} +52 -48
- package/dist/history-dKfXo4HD.cjs +1 -0
- package/dist/{index-ZwyqrmaH.cjs → index-CtAaj9XN.cjs} +11 -2
- package/dist/{index-LgTfdmT4.js → index-yidMosRJ.js} +11 -2
- package/dist/{insarDeformChart-9Qss0VGu.js → insarDeformChart-DkoK7BBR.js} +2 -2
- package/dist/{insarDeformChart-BTwU5ktS.cjs → insarDeformChart-z8yO9-05.cjs} +1 -1
- package/dist/{insarImageViewer-C7aTZp-m.js → insarImageViewer-D3dKgLZO.js} +2 -2
- package/dist/{insarImageViewer-B-ExpEa8.cjs → insarImageViewer-DA8knTHO.cjs} +1 -1
- package/dist/{kds-8n-a2GhL.cjs → kds-CEwnUrkv.cjs} +1 -1
- package/dist/{kds-CS7G3BaQ.js → kds-CHs9Tu_R.js} +2 -2
- package/dist/{layerTabs-pJJzTbu9.js → layerTabs-DatJpr1M.js} +2 -2
- package/dist/{layerTabs-1lOAiEhu.cjs → layerTabs-Dd9Jh_Fv.cjs} +1 -1
- package/dist/{lin-IHxWU55I.cjs → lin-B7j-nXP9.cjs} +1 -1
- package/dist/{lin-Bk49Db_G.js → lin-BE41AMlf.js} +3 -3
- package/dist/{linIndass-Drxnj7KQ.js → linIndass-By1yFIUk.js} +2 -2
- package/dist/{linIndass-Cpf8pnLn.cjs → linIndass-C1p1Cmnn.cjs} +1 -1
- package/dist/{lst-CPd37vza.cjs → lst-C9GGJBSY.cjs} +1 -1
- package/dist/{lst-CL6bmgJ2.js → lst-CZ-zfn6U.js} +2 -2
- package/dist/{manualEntry-CcCE4O6Q.cjs → manualEntry-BGHJBf0t.cjs} +1 -1
- package/dist/{manualEntry-D_doLqqH.js → manualEntry-D9hLFJDz.js} +2 -2
- package/dist/{mapBackground-DEBggmVp.cjs → mapBackground-BtWWW32y.cjs} +1 -1
- package/dist/{mapBackground-CvLXKuJx.js → mapBackground-xNQTZByG.js} +2 -2
- package/dist/{mappingList-BZODl4t5.js → mappingList-CRrWBRN6.js} +3 -3
- package/dist/{mappingList-qKR-0uhY.cjs → mappingList-oTl8MueE.cjs} +1 -1
- package/dist/{markdownViewer-CtN6ailN.js → markdownViewer-CL61hROd.js} +4 -4
- package/dist/{markdownViewer-DZ8gvoHk.cjs → markdownViewer-CX24h3nv.cjs} +1 -1
- package/dist/{mix-control-modal-BlWtiePl.js → mix-control-modal-D6EEQCGG.js} +3 -3
- package/dist/{mix-control-modal-zbr85DkZ.cjs → mix-control-modal-dT4E6Haz.cjs} +1 -1
- package/dist/{mixDataPermission-C-Cu3_y0.js → mixDataPermission-B9cjyL0A.js} +1 -1
- package/dist/{mixDataPermission-Gcl_4czp.cjs → mixDataPermission-DCwcPNX3.cjs} +1 -1
- package/dist/{mixGrid-DJQ2jXcg.js → mixGrid-GUG7sL3_.js} +3 -3
- package/dist/{mixGrid-Dh9y_kW0.cjs → mixGrid-uKQuF0o0.cjs} +1 -1
- package/dist/{mixMap-BRnDOkNF.cjs → mixMap-BdG5zgn9.cjs} +1 -1
- package/dist/{mixMap-2REwmqmi.js → mixMap-m7d9IzZE.js} +3 -3
- package/dist/{mixModel-C1CKMCLi.cjs → mixModel-C8zjwy8B.cjs} +1 -1
- package/dist/{mixModel-CHtF97xc.js → mixModel-CC6G9D0O.js} +3 -3
- package/dist/{mixPie-sD-AjwaC.cjs → mixPie-2gzUWb-u.cjs} +1 -1
- package/dist/{mixPie-DwDffWz5.js → mixPie-Bj81XmbV.js} +3 -3
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-Dbfd7eUC.js → mjpegCamera-Br5ey7tT.js} +2 -2
- package/dist/{mjpegCamera-RMS_dnv0.cjs → mjpegCamera-CILgaHwA.cjs} +1 -1
- package/dist/{monitorAlert-CjIQQ6fQ.cjs → monitorAlert-BmzetgZD.cjs} +1 -1
- package/dist/{monitorAlert-DagV3vuc.js → monitorAlert-CobYzZGr.js} +2 -2
- package/dist/{monitorData-CTkeA21g.js → monitorData-1r6SI7q1.js} +3 -3
- package/dist/{monitorData-DUansNO5.cjs → monitorData-DJbzjlS_.cjs} +1 -1
- package/dist/{monitorSpeedChart-CjfFqWon.cjs → monitorSpeedChart-DBaNR_i8.cjs} +1 -1
- package/dist/{monitorSpeedChart-BFnREZYZ.js → monitorSpeedChart-DkdUR1aJ.js} +1 -1
- package/dist/{mxa-B6ezKf-C.js → mxa-D-jbIMK7.js} +3 -3
- package/dist/{mxa-CN6zXgZA.cjs → mxa-QPAMK1uo.cjs} +1 -1
- package/dist/{myValue-C08vYRJC.js → myValue-BAiot_SS.js} +2 -2
- package/dist/{myValue-BG_jI_HT.cjs → myValue-Djvdf93P.cjs} +1 -1
- package/dist/{myValueList-BKVL_kPb.js → myValueList-BQAhr_60.js} +2 -2
- package/dist/{myValueList-Bwg3XCPF.cjs → myValueList-BVoHmkwi.cjs} +1 -1
- package/dist/{objectList-emtQyLbD.js → objectList-DC6ZXVnE.js} +4 -4
- package/dist/{objectList-FArM7oEM.cjs → objectList-ZBsMNei9.cjs} +1 -1
- package/dist/{photo-B9Veb_Am.cjs → photo-BfbD83cP.cjs} +1 -1
- package/dist/{photo-DXbQg_FJ.js → photo-DB7ScxzD.js} +4 -4
- package/dist/{pie-U9hOnFzz.cjs → pie-BWZlNdAH.cjs} +1 -1
- package/dist/{pie-DZzf2lL7.js → pie-CG9x9JkC.js} +3 -3
- package/dist/{pressBtn-BNr1R0gW.cjs → pressBtn-B9R9kSLo.cjs} +1 -1
- package/dist/{pressBtn-R5Wsj-Jw.js → pressBtn-Dx47q_TJ.js} +4 -4
- package/dist/{progressBar-sLfJICdr.js → progressBar-BiODeN_6.js} +2 -2
- package/dist/{progressBar-CUSoF6f0.cjs → progressBar-Cc0NRBqW.cjs} +1 -1
- package/dist/{progressCircle-BZgPxs_q.js → progressCircle-CUhyErYl.js} +2 -2
- package/dist/{progressCircle-B6P8B-t_.cjs → progressCircle-DafFwMdt.cjs} +1 -1
- package/dist/{qrcode-C96PznAO.js → qrcode-BcG6Yp9v.js} +2 -2
- package/dist/{qrcode-DMrNxgq5.cjs → qrcode-CpIFW2ZU.cjs} +1 -1
- package/dist/{raceBar-Dryx8Onl.js → raceBar-3TwLjyCx.js} +3 -3
- package/dist/{raceBar-BTExTEsZ.cjs → raceBar-DcyXXcCw.cjs} +1 -1
- package/dist/{rad-vw4O2ByZ.js → rad-B9uXwQSO.js} +2 -2
- package/dist/{rad-DpkIOKs_.cjs → rad-tTO9rh8e.cjs} +1 -1
- package/dist/{rainfallFilterBar-CH3abw6C.cjs → rainfallFilterBar-B0MHbvVF.cjs} +1 -1
- package/dist/{rainfallFilterBar-BjAWqKtM.js → rainfallFilterBar-B5me6wiw.js} +2 -2
- package/dist/{rainfallTimeCurve-oJUJ2mt7.cjs → rainfallTimeCurve-C0fnVsZL.cjs} +1 -1
- package/dist/{rainfallTimeCurve-BPDZGrlQ.js → rainfallTimeCurve-DhMUUl4b.js} +3 -3
- package/dist/{rangeLin-BFFy57TT.js → rangeLin-Bjba28V0.js} +2 -2
- package/dist/{rangeLin-CBqKAU0P.cjs → rangeLin-CcAP_o6E.cjs} +1 -1
- package/dist/{request-jIo7FwQD.js → request-CQBzobr7.js} +1 -1
- package/dist/{request-BcQP_dWt.cjs → request-DWe5EztR.cjs} +1 -1
- package/dist/{retainer1-CfcwA39J.cjs → retainer1-D0WcsB4O.cjs} +1 -1
- package/dist/{retainer1-goSPppQ-.js → retainer1-DnbR3o0S.js} +3 -3
- package/dist/{retainer2-DwQmFU10.cjs → retainer2-BsGq3sf6.cjs} +1 -1
- package/dist/{retainer2-BHdnsKrO.js → retainer2-HC4a_Rcx.js} +3 -3
- package/dist/{riskRegionTable-B8-f5xx-.js → riskRegionTable-DTArCYea.js} +2 -2
- package/dist/{riskRegionTable-CSJpPxPB.cjs → riskRegionTable-FoEiUsM-.cjs} +1 -1
- package/dist/{sankey-DXCBHb16.cjs → sankey-C5gmAMhu.cjs} +1 -1
- package/dist/{sankey-C0gaE3HM.js → sankey-D3TV79p7.js} +3 -3
- package/dist/{scd-Cwyft2g6.js → scd-Bl3rOGmw.js} +2 -2
- package/dist/{scd-CkEHu7nZ.cjs → scd-Db6KXaan.cjs} +1 -1
- package/dist/{sideMenu-DUdDDJ9K.cjs → sideMenu-BDM1P1cW.cjs} +1 -1
- package/dist/{sideMenu-BtVCCKw9.js → sideMenu-BJfA1uhH.js} +2 -2
- package/dist/{slopeStability-DwxDXTQG.js → slopeStability-DaP323la.js} +3 -3
- package/dist/{slopeStability-Byb6AKti.cjs → slopeStability-Z2V2od39.cjs} +1 -1
- package/dist/{speedCurve-BuNsy-ev.js → speedCurve-B_EYlvSe.js} +3 -3
- package/dist/{speedCurve-DArreweP.cjs → speedCurve-Dp3uVVyX.cjs} +1 -1
- package/dist/{staticLine-DfkpF6ZW.js → staticLine-CHiOuPX8.js} +3 -3
- package/dist/{staticLine-C50p0CZs.cjs → staticLine-Cnx32607.cjs} +1 -1
- package/dist/{store-D_TrU3nw.js → store-CHqnWEik.js} +2 -2
- package/dist/{store-ByTYoqyI.cjs → store-DehrZfaE.cjs} +1 -1
- package/dist/{swiper-L0Oo2dYD.cjs → swiper-BR2IFoJz.cjs} +1 -1
- package/dist/{swiper-CQiRByJd.js → swiper-C3dOtddc.js} +2 -2
- package/dist/{terminalConfigList-ChC43Bwq.cjs → terminalConfigList-DSu4f9n4.cjs} +1 -1
- package/dist/{terminalConfigList-BhmfFm4f.js → terminalConfigList-DVWWVeq4.js} +3 -3
- package/dist/{terminalList-C6tswBt1.js → terminalList-B8VgdttS.js} +3 -3
- package/dist/{terminalList-BQModRyk.cjs → terminalList-CKIaOeIR.cjs} +1 -1
- package/dist/{textbox-CgOhFsYo.js → textbox-Dj_XimAG.js} +3 -3
- package/dist/{textbox-CSuiDl8k.cjs → textbox-Dzmi2rz_.cjs} +1 -1
- package/dist/{timeQueryBar-QEg1Flg9.js → timeQueryBar-C2VHV9c7.js} +1 -1
- package/dist/{timeQueryBar-BtCXHgrg.cjs → timeQueryBar-crAWaYhQ.cjs} +1 -1
- package/dist/{timeSeries-DMINp9Fr.cjs → timeSeries-BRyc4h11.cjs} +1 -1
- package/dist/{timeSeries-B7NgbHfJ.js → timeSeries-CWuU-ogt.js} +4 -4
- package/dist/{timeSeriesCurve-wC9wHGI4.cjs → timeSeriesCurve-BMhQZA1X.cjs} +1 -1
- package/dist/{timeSeriesCurve-DEY5KQvu.js → timeSeriesCurve-Dk6FzaEp.js} +3 -3
- package/dist/{toggleBtn-DO953U-q.cjs → toggleBtn-B89o860W.cjs} +1 -1
- package/dist/{toggleBtn-Brtfu0-e.js → toggleBtn-ogVA3WOs.js} +3 -3
- package/dist/{trajectoryConfigPanel-BDdP3SdV.js → trajectoryConfigPanel-D01N49lh.js} +1 -1
- package/dist/{trajectoryConfigPanel-Bl_o9h2e.cjs → trajectoryConfigPanel-vGNgzSs6.cjs} +1 -1
- package/dist/{trajectoryScatter-DVm5ljvY.cjs → trajectoryScatter-CYFXE4dK.cjs} +1 -1
- package/dist/{trajectoryScatter-7-lJ5SMe.js → trajectoryScatter-DFhmjKpF.js} +3 -3
- package/dist/{universalConfigPanel-Cm4TfqAK.cjs → universalConfigPanel-DZHD2pZU.cjs} +1 -1
- package/dist/{universalConfigPanel-DTLFrGXs.js → universalConfigPanel-NB63CQv0.js} +1 -1
- package/dist/{universalTable-Bl9x3wEx.cjs → universalTable-BAlYZc6X.cjs} +1 -1
- package/dist/{universalTable-CCFr-GKz.js → universalTable-qpOc4526.js} +2 -2
- package/dist/{video-DObKrYkw.cjs → video-De2pwq7u.cjs} +1 -1
- package/dist/{video-gqqvz5Ge.js → video-rA9ArC4S.js} +4 -4
- package/dist/{videoMonitor-CGMHzNdh.js → videoMonitor-BSwBaLTE.js} +2 -2
- package/dist/{videoMonitor-B_Ur25fz.cjs → videoMonitor-CtoFDowr.cjs} +1 -1
- package/dist/{vlu-6DSf0haZ.js → vlu-B75MzAeW.js} +2 -2
- package/dist/{vlu-Dbj9euY_.cjs → vlu-BzBMTMWw.cjs} +1 -1
- package/dist/{weather-BsIBTn7G.cjs → weather-BNvwdR4t.cjs} +1 -1
- package/dist/{weather-CQBxQBld.js → weather-CJfwwOVu.js} +2 -2
- package/dist/{windLin-jVF-rhIx.cjs → windLin-SLR46lyF.cjs} +1 -1
- package/dist/{windLin-KIVk9hOD.js → windLin-yLs-b3_q.js} +2 -2
- package/package.json +1 -1
- package/dist/api-Cyx2Fha0.js +0 -125
- package/dist/api-nw_9niqv.cjs +0 -1
- package/dist/history-5W6pGCPq.cjs +0 -1
|
@@ -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 { e as T, _ as Ne } from "./index-
|
|
38
|
-
import { E as Ve } from "./EChartComponentBase-
|
|
37
|
+
import { e as T, _ as Ne } from "./index-yidMosRJ.js";
|
|
38
|
+
import { E as Ve } from "./EChartComponentBase-BjiCJlIa.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-D-BYETka.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;
|
|
@@ -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-CoRhuer9.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-yidMosRJ.js";
|
|
26
26
|
const ve = {
|
|
27
27
|
DEFAULT_ICON: ue,
|
|
28
28
|
ACTIVE_ICON: le,
|
|
@@ -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-Cl7PwC4K.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-CtAaj9XN.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;
|
|
@@ -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-CoRhuer9.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";
|
|
@@ -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-Cl7PwC4K.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;
|
|
@@ -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-Cl7PwC4K.cjs"),h=require("./index-CtAaj9XN.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-dKfXo4HD.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;
|
|
@@ -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 { e as h, _ as q } from "./index-
|
|
30
|
+
import { B } from "./element-resize-detector-CoRhuer9.js";
|
|
31
|
+
import { e as h, _ as q } from "./index-yidMosRJ.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-D-BYETka.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 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-DYs3pJPp.cjs"),L=require("./index-ZwyqrmaH.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-5W6pGCPq.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-Cl7PwC4K.cjs"),L=require("./index-CtAaj9XN.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-dKfXo4HD.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 { e as O, _ as _e } from "./index-
|
|
30
|
+
import { B as xe } from "./element-resize-detector-CoRhuer9.js";
|
|
31
|
+
import { e as O, _ as _e } from "./index-yidMosRJ.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-D-BYETka.js")).default().getHistoryData(this.props, this.componentType);
|
|
108
108
|
this.setHistoryData(i);
|
|
109
109
|
} catch (e) {
|
|
110
110
|
console.error("[Retainer2] 获取历史数据失败:", e);
|
|
@@ -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 { m as O, _ as X } from "./index-
|
|
15
|
+
import { B as Q } from "./element-resize-detector-CoRhuer9.js";
|
|
16
|
+
import { m as O, _ as X } from "./index-yidMosRJ.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 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-Cl7PwC4K.cjs"),b=require("./index-CtAaj9XN.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;
|
|
@@ -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-DYs3pJPp.cjs"),E=require("./index-ZwyqrmaH.cjs"),M=require("./EChartComponentBase-Dz5E-lyI.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-Cl7PwC4K.cjs"),E=require("./index-CtAaj9XN.cjs"),M=require("./EChartComponentBase-CUbabNTX.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-CoRhuer9.js";
|
|
15
|
+
import { _ as V } from "./index-yidMosRJ.js";
|
|
16
|
+
import { E as I } from "./EChartComponentBase-BjiCJlIa.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 { c as ci, _ as li } from "./index-
|
|
14
|
+
import { B as si } from "./element-resize-detector-CoRhuer9.js";
|
|
15
|
+
import { c as ci, _ as li } from "./index-yidMosRJ.js";
|
|
16
16
|
import { g as ui } from "./titleStyle-BT5GlpAb.js";
|
|
17
17
|
var Ne = { exports: {} }, pi = Ne.exports, An;
|
|
18
18
|
function fi() {
|