mixdashboards 1.0.39 → 1.0.43
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-BaQpBzVC.cjs → EChartComponentBase-BChD1X2l.cjs} +1 -1
- package/dist/{EChartComponentBase-BQOhWkz2.js → EChartComponentBase-tSVuV5H3.js} +1 -1
- package/dist/{UniverSheet-KlvmL1Yw.cjs → UniverSheet-DxPYELl0.cjs} +1 -1
- package/dist/{UniverSheet-MSHzUXq0.js → UniverSheet-ZGig1_Pu.js} +2 -2
- package/dist/{accelerationChart-DZj2V2vD.cjs → accelerationChart-BU01FhLB.cjs} +1 -1
- package/dist/{accelerationChart-B1HPMmd2.js → accelerationChart-uPXXAoIX.js} +3 -3
- package/dist/{actionItem-Bb2xiYlY.js → actionItem-Cto59Uxi.js} +3 -3
- package/dist/{actionItem-BYCPoQK7.cjs → actionItem-Ds004yWK.cjs} +1 -1
- package/dist/{alarmLevelChart-CCioESvL.js → alarmLevelChart-Bxhp_1Yh.js} +2 -2
- package/dist/{alarmLevelChart-Bb0mAbwQ.cjs → alarmLevelChart-pquXuv2m.cjs} +1 -1
- package/dist/{alertTable-CQwr8YYt.js → alertTable-BmHTGwvG.js} +2 -2
- package/dist/{alertTable-oaX5eJC0.cjs → alertTable-C8POEEmf.cjs} +1 -1
- package/dist/{annualRainfallChart-C21jEMBe.js → annualRainfallChart-BgKPNPJQ.js} +2 -2
- package/dist/{annualRainfallChart-pO8q6aUJ.cjs → annualRainfallChart-CEy_57N0.cjs} +1 -1
- package/dist/{api-P_s372dW.cjs → api-B54Z00Zb.cjs} +1 -1
- package/dist/{api-C0GhBpqd.js → api-Cug1klvp.js} +4 -4
- package/dist/{aqi-DlY2r7OA.cjs → aqi-XOaZyAYC.cjs} +1 -1
- package/dist/{aqi-iLwQH4rc.js → aqi-_FjN7mXi.js} +10 -10
- package/dist/{aqiIndass-BaIVBfdC.cjs → aqiIndass-BT4xpq07.cjs} +1 -1
- package/dist/{aqiIndass-DBeVSBdy.js → aqiIndass-LrPuO3hk.js} +15 -15
- package/dist/arrayCard-CxQt6Fpt.js +94 -0
- package/dist/arrayCard-I0242qBp.cjs +1 -0
- package/dist/{audio-CAP4D-J2.js → audio-Ca_jh1Ry.js} +5 -5
- package/dist/{audio-CThzVIDU.cjs → audio-Ci8MfRFp.cjs} +1 -1
- package/dist/{bar-BjR566__.cjs → bar-B2qbk8Xs.cjs} +1 -1
- package/dist/{bar-D8C06GO4.js → bar-OCOTqPHY.js} +4 -4
- package/dist/{bmp-Cjizh2x6.js → bmp-CLiSfyAx.js} +3 -3
- package/dist/{bmp-DsmTzyce.cjs → bmp-DSOZL3Ws.cjs} +1 -1
- package/dist/{box-qgu_67OD.cjs → box-CSAC2nll.cjs} +1 -1
- package/dist/{box-DqewT3MF.js → box-Dfiea0UY.js} +2 -2
- package/dist/{chartConfigPanel-DwAUq3pf.js → chartConfigPanel-DNyg08bW.js} +1 -1
- package/dist/{chartConfigPanel-BiQArCoQ.cjs → chartConfigPanel-MmXLFF3s.cjs} +1 -1
- package/dist/{circleBar-CO89T7kj.cjs → circleBar-BTodjF_P.cjs} +1 -1
- package/dist/{circleBar-DGHDWQih.js → circleBar-jvdZW67Y.js} +8 -8
- package/dist/{clock-32hGccm4.cjs → clock-BvUgA4hU.cjs} +1 -1
- package/dist/{clock-CT8YXEU3.js → clock-IOEnD1FR.js} +2 -2
- package/dist/{clt-FfIEfGtn.js → clt-C0J-U9U2.js} +3 -3
- package/dist/{clt-5bP_g1O-.cjs → clt-CqVfBGgu.cjs} +1 -1
- package/dist/{cmc-dbuLkE8o.cjs → cmc-CpaXOsS7.cjs} +1 -1
- package/dist/{cmc-B2nQFZIS.js → cmc-D0_Qv6Zs.js} +3 -3
- package/dist/{cmp-QQlYcnqo.js → cmp-BDgmsQWa.js} +12 -12
- package/dist/{cmp-l3U9fIrz.cjs → cmp-BU9ix80c.cjs} +1 -1
- package/dist/{composite-DlY2_x6P.cjs → composite-BHFoRAhK.cjs} +1 -1
- package/dist/{composite-DjhrBgG1.js → composite-Daajjrh1.js} +8 -8
- package/dist/config-D3MEjLGn.js +9 -0
- package/dist/config-UTUPYJ45.cjs +1 -0
- package/dist/{controlList-BdF8xNAi.js → controlList-OYiF483D.js} +3 -3
- package/dist/{controlList-De6PXdOc.cjs → controlList-PkvqGwS5.cjs} +1 -1
- package/dist/{controlRecordList-u5a7chIX.cjs → controlRecordList-BaJdGodA.cjs} +1 -1
- package/dist/{controlRecordList-CKpAr1ON.js → controlRecordList-pzonY5_g.js} +3 -3
- package/dist/{crd-BoaXQhFQ.cjs → crd-CgatCwuM.cjs} +1 -1
- package/dist/{crd-BVAf41oX.js → crd-Vjh_CNX2.js} +2 -2
- package/dist/{ctrBtn-ZPRYWE66.js → ctrBtn-CSuW7u1a.js} +4 -4
- package/dist/{ctrBtn-C9kQiqY1.cjs → ctrBtn-CjMIOEud.cjs} +1 -1
- package/dist/{ctrSet-CNCrnLSs.cjs → ctrSet-CNfIgsND.cjs} +1 -1
- package/dist/{ctrSet-C87dxLfQ.js → ctrSet-CpKA4FWL.js} +4 -4
- package/dist/{ctrSwitch-CkC_Axtp.js → ctrSwitch-BPCp-27u.js} +4 -4
- package/dist/{ctrSwitch-CVEtbdfb.cjs → ctrSwitch-DNLZ2RDv.cjs} +1 -1
- package/dist/{dataManagement-CjlNfeYq.js → dataManagement-kLivh0Wo.js} +2 -2
- package/dist/{dataManagement-n711sd1g.cjs → dataManagement-tU6uKtEj.cjs} +1 -1
- package/dist/{dataReport-BsVjW3p7.cjs → dataReport-D7g7U1Mk.cjs} +1 -1
- package/dist/{dataReport-ByjswEqq.js → dataReport-DKIWxloF.js} +2 -2
- package/dist/{dataTable-K7j4fhnq.cjs → dataTable-BHlNGT3A.cjs} +1 -1
- package/dist/{dataTable-DX500R1i.js → dataTable-Ch3UyUHs.js} +1 -1
- package/dist/{datetime-DYXWKrXI.cjs → datetime-CGgW1_vl.cjs} +1 -1
- package/dist/{datetime-DVbJtALf.js → datetime-Cyg8Xaoh.js} +2 -2
- package/dist/{deepClusterSlipSurface-B7nkEM9A.cjs → deepClusterSlipSurface-CN_WZFnF.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-CQUE05cK.js → deepClusterSlipSurface-D4PhBTV3.js} +6 -6
- package/dist/{deepDataMatrix-DHZA0IAm.cjs → deepDataMatrix-DrQ1_-Ie.cjs} +1 -1
- package/dist/{deepDataMatrix-ai5rB6ET.js → deepDataMatrix-v5op9TPA.js} +2 -2
- package/dist/{deepDisplacement3D-BFqKqSYg.cjs → deepDisplacement3D--kNKCZIe.cjs} +1 -1
- package/dist/{deepDisplacement3D-BsUzvbQb.js → deepDisplacement3D-COaSjPeE.js} +3 -3
- package/dist/{deepDisplacementChart-2JZNrhrw.cjs → deepDisplacementChart-C9SjfW9d.cjs} +1 -1
- package/dist/{deepDisplacementChart-igl4rW1K.js → deepDisplacementChart-CrQDLDLG.js} +2 -2
- package/dist/{deepDisplacementChart-BCIuCMdK.js → deepDisplacementChart-CuH2f1nn.js} +4 -4
- package/dist/{deepDisplacementChart-Ba67v6um.cjs → deepDisplacementChart-DcpBhevd.cjs} +1 -1
- package/dist/{deepDisplacementView-wQxyKzB-.cjs → deepDisplacementView-CZrY99uX.cjs} +1 -1
- package/dist/{deepDisplacementView-BedWJsx7.js → deepDisplacementView-D7lYRm9Y.js} +1 -1
- package/dist/{deepNodeTemperatureChart-albL8hKa.cjs → deepNodeTemperatureChart-CxzgoQXA.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-DLeb9jKp.js → deepNodeTemperatureChart-DfR4tUqO.js} +6 -6
- package/dist/{deepTangentAngleChart-DukevXaM.cjs → deepTangentAngleChart-B8WNZAJe.cjs} +1 -1
- package/dist/{deepTangentAngleChart-C6xOiITk.js → deepTangentAngleChart-CVjnZrOJ.js} +7 -7
- package/dist/{deepTemperatureField-De4xKoHw.cjs → deepTemperatureField-CUfAJ9UM.cjs} +1 -1
- package/dist/{deepTemperatureField-B-y94GPV.js → deepTemperatureField-Do6-blr7.js} +7 -7
- package/dist/{deepTrendChart-DCkV2HNv.js → deepTrendChart-BP2CKFYM.js} +6 -6
- package/dist/{deepTrendChart-MmuYSXtu.cjs → deepTrendChart-DtFP9z8x.cjs} +1 -1
- package/dist/{deviceOnlineStatus-CFuCTx7_.js → deviceOnlineStatus-D6bULBvw.js} +2 -2
- package/dist/{deviceOnlineStatus-B5cCjhNA.cjs → deviceOnlineStatus-DTKqM11O.cjs} +1 -1
- package/dist/{deviceStatus-DsEtKiGo.cjs → deviceStatus-B6OKoKq-.cjs} +1 -1
- package/dist/{deviceStatus-B2ibBDSi.js → deviceStatus-DJYGmb17.js} +2 -2
- package/dist/{displacementDataTable-oLnUdafv.cjs → displacementDataTable-DDG2INsm.cjs} +1 -1
- package/dist/{displacementDataTable-BDqG1IvI.js → displacementDataTable-uRgXH0CK.js} +2 -2
- package/dist/{displacementTrajectoryChart-Crf55oKi.js → displacementTrajectoryChart-CEiKrhq1.js} +3 -3
- package/dist/{displacementTrajectoryChart-CBhPwZhe.cjs → displacementTrajectoryChart-CurD1AeO.cjs} +1 -1
- package/dist/{displacementTrendChart-10n_lC9j.js → displacementTrendChart-Cc_3vfUE.js} +2 -2
- package/dist/{displacementTrendChart-CWihCuIJ.cjs → displacementTrendChart-DVa6z4Nl.cjs} +1 -1
- package/dist/{dxf-D8zHpz5g.js → dxf-BVAbI2Re.js} +5 -5
- package/dist/{dxf-DDh_DcQy.cjs → dxf-D4bSvrFx.cjs} +1 -1
- package/dist/{dzc-DLCdTCwW.js → dzc-CP27H3cb.js} +10 -10
- package/dist/{dzc-uNTDJqpi.cjs → dzc-fP5m-jgn.cjs} +1 -1
- package/dist/{arrayCard-DNNUEPvW.js → ele-arrayCard-icon-CAk9ojr4.js} +3 -91
- package/dist/ele-arrayCard-icon-QOabvV0y.cjs +1 -0
- package/dist/{element-resize-detector-DJcsrJ8s.js → element-resize-detector-CcMj2at_.js} +419 -412
- package/dist/element-resize-detector-Dv3K8Mdu.cjs +6 -0
- package/dist/{evn-YwCALVXj.js → evn-Ce6AYrxO.js} +2 -2
- package/dist/{evn-DuL5oVRl.cjs → evn-CyEggAn9.cjs} +1 -1
- package/dist/{evolutionChart-AeL67MAt.cjs → evolutionChart-CMRBPKKA.cjs} +1 -1
- package/dist/{evolutionChart-4noZSdLX.js → evolutionChart-D74KWOt_.js} +3 -3
- package/dist/{fileViewer-DiH3PM0r.js → fileViewer-FWpbKEm_.js} +5 -5
- package/dist/{fileViewer-bsrjlJkC.cjs → fileViewer-HmsHvQbe.cjs} +1 -1
- package/dist/{filterBar-Ct1BFhrS.cjs → filterBar-BGqSr_Gz.cjs} +1 -1
- package/dist/{filterBar-CWEguwYc.js → filterBar-SwG99EqD.js} +2 -2
- package/dist/{fireCombustionCurve-DYPC4zKJ.js → fireCombustionCurve-CK9bbLYm.js} +2 -2
- package/dist/{fireCombustionCurve-DyiQn-WA.cjs → fireCombustionCurve-DGYg2Zz7.cjs} +1 -1
- package/dist/{fireFilterBar-Bdm2ljuO.cjs → fireFilterBar-BUdbOHbv.cjs} +1 -1
- package/dist/{fireFilterBar-DGHPNTwF.js → fireFilterBar-Dv4oMV2C.js} +2 -2
- package/dist/{gag-HiNaL81R.cjs → gag-DV4cygUt.cjs} +1 -1
- package/dist/{gag-kvkKzJuO.js → gag-eTRNcrqU.js} +5 -5
- package/dist/gasStationList-DNIbWG_P.cjs +1 -0
- package/dist/gasStationList-Dq4JF7HM.js +984 -0
- package/dist/{glbModel-DtBI72ap.cjs → glbModel-BEB3-OkB.cjs} +1 -1
- package/dist/{glbModel-CUz6CyVF.js → glbModel-DXwR8B8M.js} +2 -2
- package/dist/{gnssFilterBar-TBtirXIB.js → gnssFilterBar-B6A4lUyp.js} +2 -2
- package/dist/{gnssFilterBar-BQgY5x1W.cjs → gnssFilterBar-Diqwq6NT.cjs} +1 -1
- package/dist/{gnssHistoryTable-D1ZLJOgh.cjs → gnssHistoryTable-Bn_PcTYz.cjs} +1 -1
- package/dist/{gnssHistoryTable-U8O7nyO7.js → gnssHistoryTable-DYgh7vSR.js} +3 -3
- package/dist/{gnssMapView-42zmAd9q.cjs → gnssMapView-C4nMl0TP.cjs} +1 -1
- package/dist/{gnssMapView-CaBfWeT1.js → gnssMapView-g7D0pOjL.js} +2 -2
- package/dist/{gnssTimeSeriesChart-CV2w_Aik.cjs → gnssTimeSeriesChart-DeQ-wByR.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-BrXYvuh6.js → gnssTimeSeriesChart-hQbteX4L.js} +4 -4
- package/dist/{gnssXYTrajectory-BmzSYjQ_.cjs → gnssXYTrajectory-B_e7j8rL.cjs} +1 -1
- package/dist/{gnssXYTrajectory-D2DoYnze.js → gnssXYTrajectory-lvuXN9lD.js} +3 -3
- package/dist/{grd-DW8cSFVR.cjs → grd-Cue6pwOG.cjs} +1 -1
- package/dist/{grd-B0GUjLm9.js → grd-p61RCI9f.js} +3 -3
- package/dist/{grdIndass-DduUKZJm.js → grdIndass-B7h2b6uM.js} +3 -3
- package/dist/{grdIndass-BeBXVsos.cjs → grdIndass-C7cig5jz.cjs} +1 -1
- package/dist/{grg-fnpcXtju.cjs → grg-CuoOAf0S.cjs} +1 -1
- package/dist/{grg-CeX0pirQ.js → grg-duDSzJwQ.js} +6 -6
- package/dist/{gridview-DpABhCIw.cjs → gridview-B73KnYlW.cjs} +1 -1
- package/dist/{gridview-BPwWXza9.js → gridview-CSJXmPgO.js} +2 -2
- package/dist/{groupCard-De1E15mW.js → groupCard-DPlcY3KM.js} +2 -2
- package/dist/{groupCard-WNE6gAAl.cjs → groupCard-DbuFpUy_.cjs} +1 -1
- package/dist/{headerBar-CZ3qcLHo.js → headerBar-CNX5OgJJ.js} +3 -3
- package/dist/{headerBar-Qi1EXrr6.cjs → headerBar-ntCC3TG_.cjs} +1 -1
- package/dist/history-BKlOuH9N.cjs +1 -0
- package/dist/{history-BkZhlpdY.js → history-DDhjCbfn.js} +60 -57
- package/dist/{index-kShjySl9.js → index-DCD0sVkl.js} +1047 -1065
- package/dist/index-p4bdBANg.cjs +582 -0
- package/dist/{insarDeformChart-CnuSL1d9.js → insarDeformChart-BUpCXYTi.js} +2 -2
- package/dist/{insarDeformChart-BGr2xe7w.cjs → insarDeformChart-DWjpCTST.cjs} +1 -1
- package/dist/{insarImageViewer-EmVThmVQ.js → insarImageViewer-3jC7sm-N.js} +2 -2
- package/dist/{insarImageViewer-DRgGdQmN.cjs → insarImageViewer-DBouC3bG.cjs} +1 -1
- package/dist/{kds-CpIQFgeY.js → kds-B8Eb8A5z.js} +10 -10
- package/dist/{kds-DTYWOq4K.cjs → kds-BbHwPepp.cjs} +1 -1
- package/dist/{layerTabs-BATcBkTA.cjs → layerTabs-D7I2t951.cjs} +1 -1
- package/dist/{layerTabs-uze6K91A.js → layerTabs-DyEqHH1_.js} +2 -2
- package/dist/{lin-DU_EuPRg.js → lin-BnBuwG1p.js} +8 -8
- package/dist/{lin-Ba6fHkYf.cjs → lin-Co2eyQYR.cjs} +1 -1
- package/dist/{linIndass-urYe5inp.cjs → linIndass-BI56prH5.cjs} +1 -1
- package/dist/{linIndass-XHKElG7L.js → linIndass-D440bglm.js} +7 -7
- package/dist/{lst-CpmoEQDY.cjs → lst-CyOeVUwG.cjs} +1 -1
- package/dist/{lst-C7aee1cU.js → lst-DJ70Qm0_.js} +2 -2
- package/dist/{manualEntry-CJPiO5nh.cjs → manualEntry-DIRgJo2n.cjs} +1 -1
- package/dist/{manualEntry-D9m_WPw3.js → manualEntry-w-qfhXMO.js} +2 -2
- package/dist/{mapBackground-CF_TqNBy.cjs → mapBackground-B29Oe6LE.cjs} +1 -1
- package/dist/{mapBackground-6g_71Fwa.js → mapBackground-CPjs_j_-.js} +2 -2
- package/dist/{mappingList-luT5YE0d.js → mappingList-B40O99li.js} +3 -3
- package/dist/{mappingList-CR55Tq4t.cjs → mappingList-DbnBjHp6.cjs} +1 -1
- package/dist/{markdownViewer-CnguoUr8.js → markdownViewer-Bx2It9sV.js} +5 -5
- package/dist/{markdownViewer-D1hDk2Y7.cjs → markdownViewer-CLkqzacw.cjs} +1 -1
- package/dist/{mix-control-modal-BDHAB4Tw.cjs → mix-control-modal-CMieJ_yd.cjs} +1 -1
- package/dist/{mix-control-modal-CHiX3hQs.js → mix-control-modal-OWpKWsS0.js} +3 -3
- package/dist/{mixDataPermission-BaqV0Z6N.js → mixDataPermission-Et2y1ZNV.js} +4 -3
- package/dist/{mixDataPermission-BTA1jNd1.cjs → mixDataPermission-wcr14h4V.cjs} +1 -1
- package/dist/{mixGrid-3BqQCvg8.cjs → mixGrid-D3cGrQ1G.cjs} +1 -1
- package/dist/{mixGrid-C0eEvwPy.js → mixGrid-DZyLbs2L.js} +3 -3
- package/dist/{mixMap-Bw-We4Cm.cjs → mixMap-CZijD9Wl.cjs} +1 -1
- package/dist/{mixMap-7upgYwWk.js → mixMap-CvcH9tWH.js} +3 -3
- package/dist/{mixModel-CgV4XptM.cjs → mixModel-C7jP0OTI.cjs} +1 -1
- package/dist/{mixModel-BqE_Kd4c.js → mixModel-Cb9jZGgU.js} +10 -10
- package/dist/{mixPie-9LfMCTQV.cjs → mixPie-DaVnghMR.cjs} +1 -1
- package/dist/{mixPie-B-HeglUn.js → mixPie-Xl9q3aeM.js} +7 -7
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-nxKfhobY.cjs → mjpegCamera-B4DGYk-6.cjs} +1 -1
- package/dist/{mjpegCamera-Cfw3rzT5.js → mjpegCamera-Bur1zDjR.js} +2 -2
- package/dist/{monitorAlert-Bt0baNh4.cjs → monitorAlert-BEeF7aKG.cjs} +1 -1
- package/dist/{monitorAlert-Bg5vzzyG.js → monitorAlert-DTtkf40Q.js} +2 -2
- package/dist/{monitorData-CzPVIk_4.cjs → monitorData-CxUmxh7h.cjs} +1 -1
- package/dist/{monitorData-BvAMeOrp.js → monitorData-DJOo9Mmf.js} +3 -3
- package/dist/{monitorSpeedChart-0bDuU3Kj.js → monitorSpeedChart-BC2X02Sb.js} +1 -1
- package/dist/{monitorSpeedChart-C52QjA5K.cjs → monitorSpeedChart-CNoRIuP1.cjs} +1 -1
- package/dist/{mxa-BW80xKCc.js → mxa-BN75OPFt.js} +7 -7
- package/dist/{mxa-eLAgZPMC.cjs → mxa-BxzaaRQF.cjs} +1 -1
- package/dist/myValue-CNORsNDC.js +149 -0
- package/dist/myValue-DFkdFmlD.cjs +1 -0
- package/dist/myValueList-CBMG0eWA.js +451 -0
- package/dist/myValueList-CjBLDJYH.cjs +1 -0
- package/dist/objectList-DFhu-fz0.cjs +1 -0
- package/dist/{objectList-Cf9GMyXN.js → objectList-bNg216p9.js} +575 -623
- package/dist/photo-DigmnVvl.js +342 -0
- package/dist/photo-kfRZAysa.cjs +1 -0
- package/dist/{pie-DxoBrm0D.cjs → pie-84DfqS1S.cjs} +1 -1
- package/dist/{pie-BDLg-Rls.js → pie-DTt2sFrk.js} +7 -7
- package/dist/{pressBtn-t0g4vk7s.cjs → pressBtn-DDIIdhOz.cjs} +1 -1
- package/dist/{pressBtn-CXG1eSWC.js → pressBtn-DDffBSTH.js} +4 -4
- package/dist/{progressBar-BXaFKSCq.js → progressBar-BBXjT_1K.js} +2 -2
- package/dist/{progressBar-CJEWkZ42.cjs → progressBar-T-y989f-.cjs} +1 -1
- package/dist/{progressCircle-DpOI5D5z.js → progressCircle-CTl5sua8.js} +2 -2
- package/dist/{progressCircle-uQ7vaMKM.cjs → progressCircle-Dr9rGPdw.cjs} +1 -1
- package/dist/qrcode-B_s5tsz3.cjs +1 -0
- package/dist/{qrcode-CX8aymYZ.js → qrcode-kk5QYwXg.js} +297 -298
- package/dist/{raceBar-DFaH342G.js → raceBar-LWP50Esm.js} +7 -7
- package/dist/{raceBar-Cv0-0ogd.cjs → raceBar-l_09Yq2I.cjs} +1 -1
- package/dist/{rad-NS2G_nMg.js → rad-B78foPbg.js} +7 -7
- package/dist/{rad-CFswUTwi.cjs → rad-q5w7s5OW.cjs} +1 -1
- package/dist/{rainfallFilterBar-D_Ye_NeB.js → rainfallFilterBar-CgLsQ-bP.js} +2 -2
- package/dist/{rainfallFilterBar-BI45QvJm.cjs → rainfallFilterBar-Df3KQ_ZM.cjs} +1 -1
- package/dist/{rainfallTimeCurve-BHWqX47Q.js → rainfallTimeCurve-B2QbnKYR.js} +3 -3
- package/dist/{rainfallTimeCurve-Ke1JvSWq.cjs → rainfallTimeCurve-C7Pyp1yx.cjs} +1 -1
- package/dist/{rangeLin-D6VZ2U3C.cjs → rangeLin-54P6A-H6.cjs} +1 -1
- package/dist/{rangeLin-GMYEgLeP.js → rangeLin-lsD1Tb23.js} +7 -7
- package/dist/{request-Bn100qAJ.cjs → request-Bkzlbfat.cjs} +1 -1
- package/dist/{request-BD0x5Hkt.js → request-DvQqpxzM.js} +1 -1
- package/dist/{retainer1-h-Whr2c9.js → retainer1-G4qdYcqG.js} +3 -3
- package/dist/{retainer1-D2XmjXYH.cjs → retainer1-LbRL0Bvk.cjs} +1 -1
- package/dist/{retainer2-ByQdiRjq.js → retainer2-DcNWAHtE.js} +3 -3
- package/dist/{retainer2-cF-trL2g.cjs → retainer2-DfFMVUdl.cjs} +1 -1
- package/dist/{riskRegionTable-CQxAkG7k.js → riskRegionTable-CIlOa9cB.js} +2 -2
- package/dist/{riskRegionTable-cKnxra4_.cjs → riskRegionTable-WR6ex2Hi.cjs} +1 -1
- package/dist/{sankey-MRirEgU0.cjs → sankey-BWpsoIQq.cjs} +1 -1
- package/dist/{sankey-Bk1IcVJQ.js → sankey-DU5yTv0d.js} +9 -9
- package/dist/{scd-J-mN3eI5.cjs → scd-D_1G2sMH.cjs} +1 -1
- package/dist/{scd-BDRpzmsa.js → scd-s1R4ArEA.js} +2 -2
- package/dist/{sideMenu-BgTMtnMq.js → sideMenu-BLN-hmKR.js} +2 -2
- package/dist/{sideMenu-l8X2E00H.cjs → sideMenu-BXylutdD.cjs} +1 -1
- package/dist/{slopeStability-BPf7m0fJ.cjs → slopeStability-Dm3wLwov.cjs} +1 -1
- package/dist/{slopeStability-C5RqZ1im.js → slopeStability-yF4cbFAW.js} +3 -3
- package/dist/{speedCurve-C3pK-zZy.js → speedCurve-B4jL0peM.js} +3 -3
- package/dist/{speedCurve-CluwNAZl.cjs → speedCurve-Dha8_czy.cjs} +1 -1
- package/dist/{staticLine-DXWOLj15.js → staticLine-9Z3ZUOOu.js} +7 -7
- package/dist/{staticLine-C6tGGXcN.cjs → staticLine-DsOWwv03.cjs} +1 -1
- package/dist/{store-BJW2NQkK.cjs → store-B3uCwXgM.cjs} +1 -1
- package/dist/{store-DzDtVfSX.js → store-BLHqFZQd.js} +2 -2
- package/dist/{swiper-IMlGje3t.js → swiper-BdGmBriB.js} +3 -3
- package/dist/{swiper-DGqDoUkX.cjs → swiper-CXb_2mfg.cjs} +1 -1
- package/dist/{terminalConfigList-D6xDHsnb.cjs → terminalConfigList-DFzOUHe2.cjs} +1 -1
- package/dist/{terminalConfigList-SAyXi-BK.js → terminalConfigList-EQ7lagNS.js} +3 -3
- package/dist/{terminalList-ml2C18MY.cjs → terminalList-CEr-6C-6.cjs} +1 -1
- package/dist/{terminalList-CjSHshiR.js → terminalList-neZWjaQ9.js} +3 -3
- package/dist/{textbox-BLV-SY8e.js → textbox-BLzAPC0q.js} +4 -4
- package/dist/{textbox-AQtCe25j.cjs → textbox-DmOguEQU.cjs} +1 -1
- package/dist/{timeQueryBar-BeMu_DYr.js → timeQueryBar-B_xpm0AC.js} +1 -1
- package/dist/{timeQueryBar-BuKakMy8.cjs → timeQueryBar-MDyFx6rP.cjs} +1 -1
- package/dist/{timeSeries-DP5iZKVM.js → timeSeries-7SohUo9l.js} +4 -4
- package/dist/{timeSeries-DfGgFWiF.cjs → timeSeries-CaIR746Y.cjs} +1 -1
- package/dist/{timeSeriesCurve-B0Mw6eNK.cjs → timeSeriesCurve-D-PncXjY.cjs} +1 -1
- package/dist/{timeSeriesCurve-BSgtPqYw.js → timeSeriesCurve-DZBsHqsK.js} +3 -3
- package/dist/{toggleBtn-Dh64vVWo.cjs → toggleBtn--cJyh7p1.cjs} +1 -1
- package/dist/{toggleBtn-O2Y75Uen.js → toggleBtn-B2m2z1Si.js} +7 -7
- package/dist/{trajectoryConfigPanel--C1h3tK6.js → trajectoryConfigPanel-Bs-CzBAX.js} +1 -1
- package/dist/{trajectoryConfigPanel-P_Qa4omj.cjs → trajectoryConfigPanel-ChfuUbTU.cjs} +1 -1
- package/dist/{trajectoryScatter-VLrmImlq.js → trajectoryScatter-Bm2AHlY2.js} +6 -6
- package/dist/{trajectoryScatter-BbpbgNb8.cjs → trajectoryScatter-DuWUKaOg.cjs} +1 -1
- package/dist/{universalConfigPanel-C0lDSzOB.cjs → universalConfigPanel-C6dYbcUq.cjs} +1 -1
- package/dist/{universalConfigPanel-DBg76b4F.js → universalConfigPanel-D6887bDA.js} +1 -1
- package/dist/{universalTable-DGK02ywi.js → universalTable-D-Nx7-YD.js} +2 -2
- package/dist/{universalTable-Bzq9VqzA.cjs → universalTable-DPpSYgmV.cjs} +1 -1
- package/dist/{video-CyRoSQf1.cjs → video-CB2ndqns.cjs} +1 -1
- package/dist/{video-DCzzaEmV.js → video-i7fMjDsj.js} +5 -5
- package/dist/{videoMonitor-ByaQeIWR.js → videoMonitor-D_gmm8xD.js} +2 -2
- package/dist/{videoMonitor-BjD-ZFS0.cjs → videoMonitor-DjHj3jKS.cjs} +1 -1
- package/dist/{vlu-CYZjYHaV.cjs → vlu-BapGJiKV.cjs} +1 -1
- package/dist/{vlu-h-9twmCr.js → vlu-DKvcQynh.js} +2 -2
- package/dist/{weather-B7B5E1EJ.cjs → weather-CqehOpyT.cjs} +1 -1
- package/dist/{weather-C_aC0XJ1.js → weather-M9RB9i4h.js} +3 -3
- package/dist/{windLin-DPNzX7JN.cjs → windLin-BtRlE9KH.cjs} +1 -1
- package/dist/{windLin-B7V4NUV8.js → windLin-xKNNyTR0.js} +9 -9
- package/package.json +10 -9
- package/dist/arrayCard-OlVAAsZq.cjs +0 -1
- package/dist/config-BLSroAzs.cjs +0 -1
- package/dist/config-Cc2W4vke.js +0 -9
- package/dist/element-resize-detector-Bo5uDQAu.cjs +0 -6
- package/dist/history-DAmBl4_5.cjs +0 -1
- package/dist/index-Mh5Dw2sd.cjs +0 -585
- package/dist/objectList-CpqQxG8L.cjs +0 -1
- package/dist/photo-BODEtaYh.cjs +0 -1
- package/dist/photo-BfLkWAo8.js +0 -256
- package/dist/qrcode-DHCRfp0M.cjs +0 -1
|
@@ -11,13 +11,13 @@ var C = (n, i, a) => i in n ? S(n, i, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return n;
|
|
12
12
|
}, p = (n, i) => b(n, v(i));
|
|
13
13
|
import { defineComponent as w, computed as _, openBlock as O, createElementBlock as R, normalizeStyle as g, unref as r, createElementVNode as m, toDisplayString as D, renderSlot as E, nextTick as k } from "vue";
|
|
14
|
-
import { a as $, C as M } from "./element-resize-detector-
|
|
15
|
-
import { _ as z } from "./index-
|
|
16
|
-
import { E as H } from "./EChartComponentBase-
|
|
14
|
+
import { a as $, C as M } from "./element-resize-detector-CcMj2at_.js";
|
|
15
|
+
import { _ as z } from "./index-DCD0sVkl.js";
|
|
16
|
+
import { E as H } from "./EChartComponentBase-tSVuV5H3.js";
|
|
17
17
|
import { g as I } from "./titleStyle-BT5GlpAb.js";
|
|
18
|
-
import {
|
|
19
|
-
import { i as
|
|
20
|
-
import {
|
|
18
|
+
import { u as B, i as F, a as N } from "./installCanvasRenderer-CLT2hquJ.js";
|
|
19
|
+
import { i as U } from "./install-CBde4hAM.js";
|
|
20
|
+
import { i as Z } from "./install-hfre7yvV.js";
|
|
21
21
|
import { i as V } from "./install-BBrAry2m.js";
|
|
22
22
|
import { i as W } from "./install-MS3ZY7fF.js";
|
|
23
23
|
const j = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", P = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", q = { class: "mix-body" }, G = ["id"], J = {
|
|
@@ -78,7 +78,7 @@ const j = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3cs
|
|
|
78
78
|
theme: { type: String, default: "light" }
|
|
79
79
|
},
|
|
80
80
|
setup(n) {
|
|
81
|
-
|
|
81
|
+
B([U, Z, F, V, N, W]);
|
|
82
82
|
const i = n;
|
|
83
83
|
class a extends H {
|
|
84
84
|
constructor() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var S=Object.defineProperty,v=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var C=(l,o,a)=>o in l?S(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,d=(l,o)=>{for(var a in o||(o={}))A.call(o,a)&&C(l,a,o[a]);if(f)for(var a of f(o))T.call(o,a)&&C(l,a,o[a]);return l},p=(l,o)=>v(l,b(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),g=require("./element-resize-detector-
|
|
1
|
+
"use strict";var S=Object.defineProperty,v=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var C=(l,o,a)=>o in l?S(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,d=(l,o)=>{for(var a in o||(o={}))A.call(o,a)&&C(l,a,o[a]);if(f)for(var a of f(o))T.call(o,a)&&C(l,a,o[a]);return l},p=(l,o)=>v(l,b(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),g=require("./element-resize-detector-Dv3K8Mdu.cjs"),w=require("./index-p4bdBANg.cjs"),O=require("./EChartComponentBase-BChD1X2l.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),h=require("./installCanvasRenderer-CyhM1Qpl.cjs"),_=require("./install-DV5cEgNV.cjs"),E=require("./install-CltTFs4e.cjs"),D=require("./install-C8buXQPI.cjs"),k=require("./install-Ch5d8i37.cjs"),M="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",z={class:"mix-body"},H=["id"],I={DEFAULT_ICON:M,ACTIVE_ICON:$,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1},B={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:50,right:30,radiusSize:8,textSize:12,barWidth:50,direction:{value:"x",type:"radio",option:[{value:"x",label:"component.options.x"},{value:"y",label:"component.options.y"}],label:"component.options.direction"},realSort:!1,sortType:{value:"desc",type:"radio",option:[{value:"desc",label:"component.options.desc"},{value:"asc",label:"component.options.asc"}],label:"component.options.sortType",dependent:"realSort"},isHideTitle:!1},N=[{name:"参数一",fv:"",color:"#4162ff"}],q=["name","fv","color"],F=["mosaic"],V={useAlias:!1,multiObject:!1,source:"mosaic"},U={DEFAULT:I,OPTIONS:B,DATA:N,PARAMS:q,SOURCE:F,COMMON:V},Z=i.defineComponent(p(d({},U),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){h.use([_.install,E.install,h.install,D.install,h.install$1,k.install]);const o=l;class a extends O.EChartComponentBase{constructor(){super(...arguments),this.CHART={data:[],items:[],colors:[],times:[]}}extractStyles(){return p(d({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.initChartData(),i.nextTick(()=>this.initChart())}initChartData(){const e=this.props.conf;this.CHART={data:[],items:[],colors:[],times:[]},e.data.forEach((s,n)=>{const t=g.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(s.color||g.COLORS[n]),this.CHART.data.push(s.value||t[0]),this.CHART.items.push(s.name)})}getChartOption(){const e=this.Style.value;this.props.conf;const s=this.CHART;let n={grid:{top:e.top,bottom:e.bottom,left:e.left,right:e.right,containLabel:!1},tooltip:{show:!0,formatter:t=>s.times[t.dataIndex]?`${s.times[t.dataIndex]}
|
|
2
2
|
${t.name}:${t.data}`:`${t.name}:${t.data}`},xAxis:{max:"dataMax",axisLine:{show:!0,color:e.textColor},axisTick:{show:!0},splitLine:{lineStyle:{}},axisLabel:{color:e.textColor,fontSize:e.textSize,formatter:t=>t.length>4?t.substr(0,4):t}},yAxis:{axisLabel:{formatter:t=>t.length>5?t.substr(0,5)+`
|
|
3
3
|
`+t.substr(5):t,color:e.textColor,fontSize:e.textSize},axisLine:{lineStyle:{color:e.textColor}},splitLine:{lineStyle:{}},animationDuration:300,animationDurationUpdate:300},series:[{realtimeSort:e.realSort,type:"bar",barWidth:e.barWidth+"%",data:s.data,label:{show:!0,position:"right",valueAnimation:!0,color:e.textColor,fontSize:e.textSize,formatter:t=>{const c=s.times[t.dataIndex]?`
|
|
4
4
|
${s.times[t.dataIndex]}`:"";return`${t.data}${c}`}},itemStyle:{color:t=>s.colors[t.dataIndex]||"#5470c6"}}],animationDuration:0,animationDurationUpdate:500,animationEasing:"linear",animationEasingUpdate:"linear"};return e.direction==="x"?(n.yAxis.data=s.items,e.realSort&&(n.yAxis.inverse=e.sortType==="desc"),n.series[0].label.position="right",n.xAxis.splitLine.lineStyle.type="dashed"):(n.xAxis.data=s.items,e.realSort&&(n.xAxis.inverse=e.sortType==="asc"),n.series[0].label.position="top",n.yAxis.splitLine.lineStyle.type="dashed",delete n.yAxis.type),n}setSocketData(e){if(!this.hasData()||!e||!this.chartObj)return;const{data:s}=this.props.conf;this.CHART.data=[],this.CHART.times=[],s.forEach(n=>{const t=this.extractDataValue(e,n.fv),c=e.datetime||"";this.CHART.data.push(t!=null?t:"--"),this.CHART.times.push(c)}),this.chartObj.setOption(this.getChartOption(),!0)}}const r=new a(o,"raceBar");r.setupLifecycle();const u=r.getStyle(),L=r.getEchartId(),m=o.conf,y=i.computed(()=>R.generateTitleStyle(o.conf.options));return(x,e)=>(i.openBlock(),i.createElementBlock("div",{class:"mix-component",style:i.normalizeStyle({background:i.unref(u).bgColor,borderRadius:`${i.unref(u).radiusSize}px`})},[i.createElementVNode("div",{class:"mix-title",style:i.normalizeStyle(y.value)},i.toDisplayString(i.unref(m).caption||i.unref(m).name),5),i.createElementVNode("div",z,[i.createElementVNode("div",{class:"w-full h-full",id:i.unref(L)},null,8,H)]),i.renderSlot(x.$slots,"default",{},void 0,!0)],4))}})),j=w._export_sfc(Z,[["__scopeId","data-v-e0dcd023"]]);exports.default=j;
|
|
@@ -11,13 +11,13 @@ var m = (o, t, e) => t in o ? y(o, t, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return o;
|
|
12
12
|
}, g = (o, t) => _(o, b(t));
|
|
13
13
|
import { defineComponent as E, computed as Z, openBlock as k, createElementBlock as z, normalizeStyle as h, unref as s, createElementVNode as C, toDisplayString as F, renderSlot as N } from "vue";
|
|
14
|
-
import { _ as T } from "./index-
|
|
15
|
-
import { E as A } from "./EChartComponentBase-
|
|
14
|
+
import { _ as T } from "./index-DCD0sVkl.js";
|
|
15
|
+
import { E as A } from "./EChartComponentBase-tSVuV5H3.js";
|
|
16
16
|
import { g as D } from "./titleStyle-BT5GlpAb.js";
|
|
17
|
-
import { i as V } from "./install-
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { i as B } from "./install-
|
|
17
|
+
import { i as V } from "./install-9_V0b6vf.js";
|
|
18
|
+
import { u as j, i as I, a as R } from "./installCanvasRenderer-CLT2hquJ.js";
|
|
19
|
+
import { i as $ } from "./install-CBde4hAM.js";
|
|
20
|
+
import { i as B } from "./install-hfre7yvV.js";
|
|
21
21
|
const U = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", H = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", P = { class: "mix-body" }, G = ["id"], W = {
|
|
22
22
|
DEFAULT_ICON: U,
|
|
23
23
|
ACTIVE_ICON: H,
|
|
@@ -58,7 +58,7 @@ const U = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3cs
|
|
|
58
58
|
theme: { type: String, default: "light" }
|
|
59
59
|
},
|
|
60
60
|
setup(o) {
|
|
61
|
-
|
|
61
|
+
j([$, B, I, R, V]);
|
|
62
62
|
const t = o, e = ["#ffffff", "#e5e5e5"];
|
|
63
63
|
class v extends A {
|
|
64
64
|
extractStyles() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var y=Object.defineProperty,w=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var f=(i,e,o)=>e in i?y(i,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[e]=o,m=(i,e)=>{for(var o in e||(e={}))_.call(e,o)&&f(i,o,e[o]);if(p)for(var o of p(e))O.call(e,o)&&f(i,o,e[o]);return i},g=(i,e)=>w(i,b(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),M=require("./index-Mh5Dw2sd.cjs"),E=require("./EChartComponentBase-BaQpBzVC.cjs"),N=require("./titleStyle-NSnz6cUg.cjs"),Z=require("./install-DV5cEgNV.cjs"),k=require("./install-CltTFs4e.cjs"),c=require("./installCanvasRenderer-CyhM1Qpl.cjs"),z=require("./install-B1IEhhn3.cjs"),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='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",F="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",V={class:"mix-body"},A=["id"],j={DEFAULT_ICON:T,ACTIVE_ICON:F,NAME_CN:"雷达图",NAME_EN:"Radar",ORDER:1},D={titleColor:"#111",textColor:"#111",bgColor:"#fff",borderColor:"#666",radiusSize:8,textSize:12,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},isHideTitle:!1},h=[{name:"参数一",fv:"",object_id:"",max:200},{name:"参数二",fv:"",object_id:"",max:200},{name:"参数三",fv:"",object_id:"",max:200}],q=["name","fv","object_id","max"],R=["mosaic","statistics","calculate"],I={useAlias:!1,multiObject:!1,source:"mosaic"},B={DEFAULT:j,OPTIONS:D,DATA:h,PARAMS:q,SOURCE:R,COMMON:I},$=t.defineComponent(g(m({},B),{__name:"rad",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){c.use([Z.install,k.install,c.install,c.install$1,z.install]);const e=i,o=["#ffffff","#e5e5e5"];class x extends E.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#73bff9"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),points:this.getOptionValue("points",10)}}getChartOption(){const{data:n,name:a,options:l}=this.props.conf;return{title:{show:!1,text:a,x:"center",top:"50%",textStyle:{color:"#fff",fontWeight:"normal",fontSize:28}},tooltip:{trigger:"axis",confine:!0},radar:{shape:l.type.value,axisNameGap:10,alignTicks:!1,splitNumber:4,indicator:n.map(r=>({name:r.name,max:r.max})),center:["50%","50%"],axisLine:{lineStyle:{type:"dashed",color:"#383D42"}},splitLine:{show:!0,lineStyle:{width:1,color:l.borderColor.value}},splitArea:{show:!0,areaStyle:{color:o}},axisName:{fontSize:12,color:l.textColor.value}},series:[{name:a!=null?a:"",type:"radar",tooltip:{trigger:"item"},data:[{name:a,value:[]}],itemStyle:{color:"#3F5FE3"},areaStyle:{color:"#4162ff"}}]}}getDefaultData(){return h}setSocketData(n){if(!n||!this.chartObj)return;const{data:a}=this.props.conf,l=this.chartObj.getOption();l.series[0].data[0].value=[],a.forEach(r=>{const L=this.extractDataValue(n,r.fv);l.series[0].data[0].value.push(L!=null?L:0)}),this.chartObj.setOption(l)}}const s=new x(e,"radar");s.setupLifecycle();const C=s.getStyle(),v=s.getEchartId(),d=e.conf,S=t.computed(()=>N.generateTitleStyle(e.conf.options));return(u,n)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(C).bgColor,borderRadius:`${t.unref(C).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(S.value)},t.toDisplayString(t.unref(d).caption||t.unref(d).name),5),t.createElementVNode("div",V,[t.createElementVNode("div",{class:"w-full h-full",id:t.unref(v)},null,8,A)]),t.renderSlot(u.$slots,"default",{},void 0,!0)],4))}})),U=M._export_sfc($,[["__scopeId","data-v-c6a7a58a"]]);exports.default=U;
|
|
1
|
+
"use strict";var y=Object.defineProperty,w=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var f=(i,e,o)=>e in i?y(i,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[e]=o,m=(i,e)=>{for(var o in e||(e={}))_.call(e,o)&&f(i,o,e[o]);if(p)for(var o of p(e))O.call(e,o)&&f(i,o,e[o]);return i},g=(i,e)=>w(i,b(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),M=require("./index-p4bdBANg.cjs"),E=require("./EChartComponentBase-BChD1X2l.cjs"),N=require("./titleStyle-NSnz6cUg.cjs"),Z=require("./install-B1IEhhn3.cjs"),c=require("./installCanvasRenderer-CyhM1Qpl.cjs"),k=require("./install-DV5cEgNV.cjs"),z=require("./install-CltTFs4e.cjs"),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='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",F="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",V={class:"mix-body"},A=["id"],j={DEFAULT_ICON:T,ACTIVE_ICON:F,NAME_CN:"雷达图",NAME_EN:"Radar",ORDER:1},D={titleColor:"#111",textColor:"#111",bgColor:"#fff",borderColor:"#666",radiusSize:8,textSize:12,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},isHideTitle:!1},h=[{name:"参数一",fv:"",object_id:"",max:200},{name:"参数二",fv:"",object_id:"",max:200},{name:"参数三",fv:"",object_id:"",max:200}],q=["name","fv","object_id","max"],R=["mosaic","statistics","calculate"],I={useAlias:!1,multiObject:!1,source:"mosaic"},B={DEFAULT:j,OPTIONS:D,DATA:h,PARAMS:q,SOURCE:R,COMMON:I},$=t.defineComponent(g(m({},B),{__name:"rad",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){c.use([k.install,z.install,c.install,c.install$1,Z.install]);const e=i,o=["#ffffff","#e5e5e5"];class x extends E.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#73bff9"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),points:this.getOptionValue("points",10)}}getChartOption(){const{data:n,name:a,options:l}=this.props.conf;return{title:{show:!1,text:a,x:"center",top:"50%",textStyle:{color:"#fff",fontWeight:"normal",fontSize:28}},tooltip:{trigger:"axis",confine:!0},radar:{shape:l.type.value,axisNameGap:10,alignTicks:!1,splitNumber:4,indicator:n.map(r=>({name:r.name,max:r.max})),center:["50%","50%"],axisLine:{lineStyle:{type:"dashed",color:"#383D42"}},splitLine:{show:!0,lineStyle:{width:1,color:l.borderColor.value}},splitArea:{show:!0,areaStyle:{color:o}},axisName:{fontSize:12,color:l.textColor.value}},series:[{name:a!=null?a:"",type:"radar",tooltip:{trigger:"item"},data:[{name:a,value:[]}],itemStyle:{color:"#3F5FE3"},areaStyle:{color:"#4162ff"}}]}}getDefaultData(){return h}setSocketData(n){if(!n||!this.chartObj)return;const{data:a}=this.props.conf,l=this.chartObj.getOption();l.series[0].data[0].value=[],a.forEach(r=>{const L=this.extractDataValue(n,r.fv);l.series[0].data[0].value.push(L!=null?L:0)}),this.chartObj.setOption(l)}}const s=new x(e,"radar");s.setupLifecycle();const C=s.getStyle(),v=s.getEchartId(),d=e.conf,S=t.computed(()=>N.generateTitleStyle(e.conf.options));return(u,n)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(C).bgColor,borderRadius:`${t.unref(C).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(S.value)},t.toDisplayString(t.unref(d).caption||t.unref(d).name),5),t.createElementVNode("div",V,[t.createElementVNode("div",{class:"w-full h-full",id:t.unref(v)},null,8,A)]),t.renderSlot(u.$slots,"default",{},void 0,!0)],4))}})),U=M._export_sfc($,[["__scopeId","data-v-c6a7a58a"]]);exports.default=U;
|
|
@@ -17,8 +17,8 @@ import "element-plus/es/components/date-picker/style/css";
|
|
|
17
17
|
import "element-plus/es/components/select/style/css";
|
|
18
18
|
import "element-plus/es/components/option/style/css";
|
|
19
19
|
import { defineComponent as Q, computed as b, reactive as q, openBlock as c, createElementBlock as v, normalizeStyle as G, createElementVNode as s, createVNode as d, withCtx as y, Fragment as R, renderList as Y, createBlock as S, normalizeClass as J, toDisplayString as K, createTextVNode as X, renderSlot as Z } from "vue";
|
|
20
|
-
import { B as ee } from "./element-resize-detector-
|
|
21
|
-
import { d as h, _ as te } from "./index-
|
|
20
|
+
import { B as ee } from "./element-resize-detector-CcMj2at_.js";
|
|
21
|
+
import { d as h, _ as te } from "./index-DCD0sVkl.js";
|
|
22
22
|
import { A as le, D as ae } from "./ele-vlu-icon-Bg6EHZdJ.js";
|
|
23
23
|
const ne = { class: "filter-bar" }, oe = { class: "filter-item" }, re = { class: "filter-item" }, ie = { class: "filter-item" }, se = { class: "time-range-btns" }, me = ["onClick"], ce = { class: "filter-item" }, ue = {
|
|
24
24
|
DEFAULT_ICON: ae,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var S=Object.defineProperty,j=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var y=(i,o,r)=>o in i?S(i,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[o]=r,E=(i,o)=>{for(var r in o||(o={}))T.call(o,r)&&y(i,r,o[r]);if(C)for(var r of C(o))O.call(o,r)&&y(i,r,o[r]);return i},k=(i,o)=>j(i,w(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),H=require("./element-resize-detector-
|
|
1
|
+
"use strict";var S=Object.defineProperty,j=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var y=(i,o,r)=>o in i?S(i,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[o]=r,E=(i,o)=>{for(var r in o||(o={}))T.call(o,r)&&y(i,r,o[r]);if(C)for(var r of C(o))O.call(o,r)&&y(i,r,o[r]);return i},k=(i,o)=>j(i,w(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),H=require("./element-resize-detector-Dv3K8Mdu.cjs"),g=require("./index-p4bdBANg.cjs"),V=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),I={class:"filter-bar"},x={class:"filter-item"},F={class:"filter-item"},q={class:"filter-item"},L={class:"time-range-btns"},z=["onClick"],U={class:"filter-item"},W={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"降雨筛选栏",NAME_EN:"Rainfall Filter Bar",ORDER:1},P={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},$=[{name:"WATER101",object_id:"",region:"北帮"},{name:"WATER102",object_id:"",region:"北帮"},{name:"WATER201",object_id:"",region:"南帮"},{name:"WATER305",object_id:"",region:"东帮"},{name:"WATER410",object_id:"",region:"西帮"}],Q=["name","object_id","region"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=50,X={DEFAULT:W,OPTIONS:P,DATA:$,PARAMS:Q,SOURCE:G,ITEMS:K,COMMON:J},Z=e.defineComponent(k(E({},X),{__name:"rainfallFilterBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const o=i;class r extends H.BaseComponent{extractStyles(){var m,p,n,v;const t=(m=this.props.conf)==null?void 0:m.options,s=((p=t==null?void 0:t.linkChannel)==null?void 0:p.value)||"rainfall",u=((n=t==null?void 0:t.customChannel)==null?void 0:n.value)||"";return{bgColor:((v=t==null?void 0:t.bgColor)==null?void 0:v.value)||"#ffffff",linkChannel:s==="custom"&&u?u:s}}}const b=new r(o,"rainfallFilterBar");b.setupLifecycle();const R=b.getStyle(),d=e.computed(()=>{var t;const l=(t=o.conf)==null?void 0:t.data;return!l||!Array.isArray(l)?[]:l.filter(s=>s.name)}),N=e.computed(()=>{const l=new Set;return d.value.forEach(t=>{t.region&&l.add(t.region)}),Array.from(l)}),_=e.computed(()=>{let l=d.value;return a.region&&(l=l.filter(t=>t.region===a.region)),l.map(t=>({label:t.name,value:t.name}))}),h=[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}],c=d.value[0],a=e.reactive({region:(c==null?void 0:c.region)||"",point:(c==null?void 0:c.name)||"",timeRange:"1d",dateRange:[g.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),g.dayjs().format("YYYY/MM/DD HH:mm")]}),Y=()=>{var t;const l=_.value;a.point=((t=l[0])==null?void 0:t.value)||""},D=l=>{a.timeRange=l;const t=g.dayjs(),s=l==="1d"?t.subtract(1,"day"):l==="1w"?t.subtract(1,"week"):t.subtract(1,"month");a.dateRange=[s.format("YYYY/MM/DD HH:mm"),t.format("YYYY/MM/DD HH:mm")]},A=()=>{a.timeRange=""},B=()=>{if(o.mode==="edit"||!a.point)return;const l=d.value.find(t=>t.name===a.point);if(!(l!=null&&l.object_id)){console.warn("[降雨筛选栏] 所选监测点未配置 object_id,无法发送联动");return}b.publish({type:"filter",region:a.region,point:a.point,objectId:l.object_id,timeRange:a.timeRange,dateRange:[...a.dateRange]})},M=e.computed(()=>({backgroundColor:R.value.bgColor}));return(l,t)=>{const s=f.ElOption,u=f.ElSelect,m=f.ElDatePicker,p=f.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"rainfall-filter-bar-wrap",style:e.normalizeStyle(M.value)},[e.createElementVNode("div",I,[e.createElementVNode("div",x,[t[3]||(t[3]=e.createElementVNode("span",{class:"filter-label"},"区域位置:",-1)),e.createVNode(u,{modelValue:a.region,"onUpdate:modelValue":t[0]||(t[0]=n=>a.region=n),placeholder:"全部区域",size:"small",style:{width:"110px"},onChange:Y},{default:e.withCtx(()=>[e.createVNode(s,{label:"全部区域",value:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,n=>(e.openBlock(),e.createBlock(s,{key:n,label:n,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",F,[t[4]||(t[4]=e.createElementVNode("span",{class:"filter-label"},"监测点:",-1)),e.createVNode(u,{modelValue:a.point,"onUpdate:modelValue":t[1]||(t[1]=n=>a.point=n),placeholder:"请选择",size:"small",style:{width:"120px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,n=>(e.openBlock(),e.createBlock(s,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",q,[t[5]||(t[5]=e.createElementVNode("span",{class:"filter-label"},"时间范围:",-1)),e.createElementVNode("div",L,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,n=>e.createElementVNode("button",{key:n.value,class:e.normalizeClass(["range-btn",{active:a.timeRange===n.value}]),onClick:v=>D(n.value)},e.toDisplayString(n.label),11,z)),64))])]),e.createElementVNode("div",U,[e.createVNode(m,{modelValue:a.dateRange,"onUpdate:modelValue":t[2]||(t[2]=n=>a.dateRange=n),type:"datetimerange",size:"small",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",style:{width:"340px"},onChange:A},null,8,["modelValue"])]),e.createVNode(p,{type:"primary",size:"small",onClick:B},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("查询",-1)])]),_:1})]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),ee=g._export_sfc(Z,[["__scopeId","data-v-792b14ef"]]);exports.default=ee;
|
|
@@ -34,8 +34,8 @@ import "element-plus/es/components/checkbox/style/css";
|
|
|
34
34
|
import "element-plus/es/components/button/style/css";
|
|
35
35
|
import "element-plus/es/components/icon/style/css";
|
|
36
36
|
import { defineComponent as Ee, ref as M, computed as g, watch as ae, onMounted as Ie, onUnmounted as Me, openBlock as A, createElementBlock as O, normalizeStyle as ne, createElementVNode as f, createVNode as C, withCtx as _, createTextVNode as U, Fragment as le, renderList as se, createBlock as Oe, toDisplayString as V, unref as P, normalizeClass as Te, createCommentVNode as Ye, renderSlot as Le } from "vue";
|
|
37
|
-
import { d as T, _ as Ne } from "./index-
|
|
38
|
-
import { E as Ve } from "./EChartComponentBase-
|
|
37
|
+
import { d as T, _ as Ne } from "./index-DCD0sVkl.js";
|
|
38
|
+
import { E as Ve } from "./EChartComponentBase-tSVuV5H3.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-DDhjCbfn.js"), k = yield new c.default().getHistoryData(a, "rainfallTimeCurve");
|
|
293
293
|
k && Array.isArray(k) && (((s = a.conf) == null ? void 0 : s.data) || []).forEach((L, he) => {
|
|
294
294
|
if (!L.fv) return;
|
|
295
295
|
const ge = L.name || L.fv, N = k[he], G = (N == null ? void 0 : N.data) || N;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ie=Object.defineProperty,ue=Object.defineProperties;var de=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var fe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var $=(m,a,r)=>a in m?ie(m,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):m[a]=r,P=(m,a)=>{for(var r in a||(a={}))fe.call(a,r)&&$(m,r,a[r]);if(U)for(var r of U(a))me.call(a,r)&&$(m,r,a[r]);return m},W=(m,a)=>ue(m,de(a));var G=(m,a,r)=>new Promise((E,g)=>{var y=b=>{try{k(r.next(b))}catch(f){g(f)}},I=b=>{try{k(r.throw(b))}catch(f){g(f)}},k=b=>b.done?E(b.value):Promise.resolve(b.value).then(y,I);k((r=r.apply(m,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const t=require("vue"),S=require("./index-Mh5Dw2sd.cjs"),pe=require("./EChartComponentBase-BaQpBzVC.cjs"),Z=require("@element-plus/icons-vue"),J=require("./ele-lin-icon-Dke_1AmT.cjs"),ve={class:"chart-panel"},he={class:"panel-header"},ge={class:"header-right"},be={class:"indicator-selector-panel"},Ce={class:"indicator-select-all"},ye={class:"legend-bar"},_e={class:"legend-items"},xe=["onClick"],Se={class:"legend-text"},Ee={key:0,class:"legend-page-info"},ke=["id"],Ne={DEFAULT_ICON:J.DEFAULT_ICON,ACTIVE_ICON:J.ACTIVE_ICON,NAME_CN:"降雨指标时序曲线",NAME_EN:"Rainfall Time Curve",ORDER:3},Ve={bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},gridColor:{value:"#f0f0f0",type:"color",label:"网格线颜色"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},we=[{name:"实时降水量(mm)",fv:"",object_id:"",color:"#5470c6",device:""},{name:"累计降水量(mm)",fv:"",object_id:"",color:"#ee6666",device:""}],De=["name","fv","object_id","color","device"],je=["mosaic","statistics","calculate"],Ae={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Ie=20,Me={DEFAULT:Ne,OPTIONS:Ve,DATA:we,PARAMS:De,SOURCE:je,ITEMS:Ie,COMMON:Ae},Oe=t.defineComponent(W(P({},Me),{__name:"rainfallTimeCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(m){const a=m,r=new Map,E=t.ref(""),g=t.ref(""),y=t.ref(""),I=t.computed(()=>{var o,e,l;return(e=(o=a.conf)==null?void 0:o.common)!=null&&e.object_id||(l=a.conf)!=null&&l.object_id?!0:O.value.some(d=>!!d.object_id)}),k=t.computed(()=>I.value||!!E.value);class b extends pe.EChartComponentBase{extractStyles(){var n,c,i,s,u,p,_;const e=(n=this.props.conf)==null?void 0:n.options,l=((c=e==null?void 0:e.linkChannel)==null?void 0:c.value)||"rainfall",d=((i=e==null?void 0:e.customChannel)==null?void 0:i.value)||"";return{bgColor:((s=e==null?void 0:e.bgColor)==null?void 0:s.value)||"#f5f7fa",panelBgColor:((u=e==null?void 0:e.panelBgColor)==null?void 0:u.value)||"#ffffff",textColor:((p=e==null?void 0:e.textColor)==null?void 0:p.value)||"#333333",gridColor:((_=e==null?void 0:e.gridColor)==null?void 0:_.value)||"#f0f0f0",linkChannel:l==="custom"&&d?d:l}}getChartOption(){return L(this.Style.value)}setSocketData(e){var n;if(!e)return;const l=e.datetime?e.datetime.split(".")[0]:S.dayjs().format("YYYY/MM/DD HH:mm");(((n=this.props.conf)==null?void 0:n.data)||[]).forEach(c=>{if(c.device){const p=this.extractDataValue(e,c.device);p!=null&&(g.value=String(p))}if(!c.fv)return;const i=this.extractDataValue(e,c.fv);if(i==null)return;const s=c.name||c.fv,u=r.get(s);u?(u.times.push(l),u.values.push(parseFloat(i)),u.times.length>200&&(u.times.shift(),u.values.shift())):r.set(s,{times:[l],values:[parseFloat(i)]})}),this.chartObj&&this.chartObj.setOption(L(this.Style.value),!1)}onLinkEvent(e){le(e)}}const f=new b(a,"rainfallTimeCurve");f.setupLifecycle();const M=f.getStyle(),K=f.getEchartId(),O=t.computed(()=>{var o;return((o=a.conf)==null?void 0:o.data)||[]}),h=t.computed(()=>{const o=new Set;return O.value.filter(e=>e.name&&!o.has(e.name)?(o.add(e.name),!0):!1)}),v=t.ref([]);t.watch(h,o=>{o.length>0&&v.value.length===0&&(v.value=o.map(e=>e.fv||e.name))},{immediate:!0});const B=t.computed({get:()=>h.value.length>0&&v.value.length===h.value.length,set:()=>{}}),Q=t.computed(()=>{const o=v.value.length;return o>0&&o<h.value.length}),X=t.computed(()=>{if(v.value.length===0)return"选择监测指标";if(v.value.length===h.value.length)return"全部指标已选";const e=h.value.filter(l=>v.value.includes(l.fv||l.name)).map(l=>l.name).join(", ");return e.length>14?e.substring(0,14)+"...":e}),ee=o=>{v.value=o?h.value.map(e=>e.fv||e.name):[],N()},C=t.ref(new Set),D=t.computed(()=>h.value.filter(o=>v.value.includes(o.fv||o.name)).map(o=>({name:g.value?`${g.value}-${o.name}`:o.name,color:o.color||"#5470c6",visible:!C.value.has(o.name)}))),te=t.computed(()=>`${D.value.filter(o=>o.visible).length}/${D.value.length}`),oe=o=>{const e=o.name.includes("-")?o.name.split("-").slice(1).join("-"):o.name;C.value.has(e)?C.value.delete(e):C.value.add(e),C.value=new Set(C.value),N()},ne=t.computed(()=>({backgroundColor:M.value.bgColor,color:M.value.textColor})),T=()=>{r.clear();const o=S.dayjs();O.value.forEach((e,l)=>{const d=[],n=[],c=[2800,3200],i=[200,300],s=c[l%2]||3e3,u=i[l%2]||200;for(let p=0;p<100;p++)d.push(o.subtract((100-p)*15,"minute").format("YYYY/MM/DD HH:mm")),n.push(+(s+(Math.random()-.5)*u+Math.sin(p/10)*u*.3).toFixed(2));r.set(e.name,{times:d,values:n})})},L=o=>{if(a.mode!=="edit"){if(!k.value)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};if(r.size===0)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]}}let e=[];for(const[,n]of r)n.times.length>e.length&&(e=n.times);!e.length&&a.mode==="edit"&&(e=Array.from({length:50},(n,c)=>S.dayjs().subtract((50-c)*15,"minute").format("YYYY/MM/DD HH:mm")));const l={},d=h.value.filter(n=>v.value.includes(n.fv||n.name)).map(n=>{const c=g.value?`${g.value}-${n.name}`:n.name;l[c]=!C.value.has(n.name);const i=r.get(n.name);return{name:c,type:"line",smooth:!0,showSymbol:!1,data:(i==null?void 0:i.values)||[],lineStyle:{color:n.color||"#5470c6",width:2.5,type:"solid"},itemStyle:{color:n.color||"#5470c6"}}});return{tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#1c3d90",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},legend:{show:!1,selected:l},grid:{top:15,right:40,bottom:60,left:60},xAxis:{type:"category",data:e,axisLine:{lineStyle:{color:o.gridColor}},axisLabel:{color:o.textColor,fontSize:11,rotate:15,interval:"auto",formatter:n=>{var c;if(n&&n.length>6){const i=n.split(" ");return(((c=i[0])==null?void 0:c.split("/").slice(1).join("/"))||"")+(i[1]?" "+i[1]:"")}return n}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",name:"监测数值",scale:!0,axisLine:{show:!1},axisLabel:{color:o.textColor,fontSize:11},splitLine:{lineStyle:{color:o.gridColor,type:"dashed"}}},dataZoom:[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"slider",height:18,bottom:8,borderColor:"transparent",backgroundColor:"#f0f0f0",fillerColor:"rgba(28, 61, 144, 0.2)",handleStyle:{color:"#1c3d90"},textStyle:{fontSize:10}}],series:d}},N=()=>{const o=f.getChartInstance();o&&o.setOption(L(M.value),!0)},ae=()=>{const o=f.getChartInstance();if(!o)return;const e=document.createElement("a");e.href=o.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`降雨指标时序曲线_${S.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},le=o=>{const{payload:e}=o;if(!e)return;if(e.type==="filter"){if(e.point&&(g.value=String(e.point)),e.objectId){const d=y.value;y.value=String(e.objectId),E.value=String(e.objectId),d!==y.value&&q(y.value)}(a.mode==="edit"||!e.objectId)&&(T(),N());return}const l=e.objectId||e.object_id;l&&(E.value=String(l),q(l))},q=o=>G(null,null,function*(){var i,s;if(!o||a.mode!=="preview")return;r.clear();const e=(i=f.session)==null?void 0:i.value;if(!e)return;const l=a.conf.id;e.componentRequests&&e.componentRequests.delete(l);const{data:d,common:n}=a.conf;Array.isArray(d)&&d.forEach(u=>{u.object_id=o}),n.multiObject||(n.object_id=o);try{const u=yield Promise.resolve().then(()=>require("./history-DAmBl4_5.cjs")),_=yield new u.default().getHistoryData(a,"rainfallTimeCurve");_&&Array.isArray(_)&&(((s=a.conf)==null?void 0:s.data)||[]).forEach((j,re)=>{if(!j.fv)return;const se=j.name||j.fv,A=_[re],H=(A==null?void 0:A.data)||A;if(!Array.isArray(H))return;const ce=[...H].sort((x,V)=>new Date(x.time||x.datetime||"").getTime()-new Date(V.time||V.datetime||"").getTime()),Y=[],z=[];ce.forEach(x=>{const V=x.time||x.datetime,F=x[j.fv];if(V&&F!=null){const R=parseFloat(F);isNaN(R)||(Y.push(S.dayjs(V).format("YYYY/MM/DD HH:mm")),z.push(R))}}),Y.length>0&&r.set(se,{times:Y,values:z})}),console.log("[降雨时序曲线] 历史数据加载完成")}catch(u){console.warn("[降雨时序曲线] 历史数据获取失败:",u)}N(),e.registerComponent({id:l,request:null,onUpdate:(u,p)=>{u==="realtime"&&f.setSocketData(p)}});const c=f.getSource();f.subscribeBySource(c,o)});return t.onMounted(()=>{a.mode==="edit"&&T(),setTimeout(()=>{var o;return(o=f.getChartInstance())==null?void 0:o.resize()},200)}),t.onUnmounted(()=>{f.cleanup()}),t.watch(()=>a.conf,()=>{f.init(),a.mode==="edit"&&T()},{deep:!0}),(o,e)=>{const l=w.ElIcon,d=w.ElButton,n=w.ElCheckbox,c=w.ElCheckboxGroup,i=w.ElPopover;return t.openBlock(),t.createElementBlock("div",{class:"rainfall-time-curve",style:t.normalizeStyle(ne.value)},[t.createElementVNode("div",ve,[t.createElementVNode("div",he,[e[4]||(e[4]=t.createElementVNode("div",{class:"header-left"},[t.createElementVNode("span",{class:"indicator-dot"}),t.createElementVNode("span",{class:"panel-title"},"📊 指标时序演变曲线")],-1)),t.createElementVNode("div",ge,[t.createVNode(i,{placement:"bottom-start",width:220,trigger:"click"},{reference:t.withCtx(()=>[t.createVNode(d,{size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(X.value)+" ",1),t.createVNode(l,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(t.unref(Z.ArrowDown))]),_:1})]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",be,[t.createElementVNode("div",Ce,[t.createVNode(n,{modelValue:B.value,"onUpdate:modelValue":e[0]||(e[0]=s=>B.value=s),indeterminate:Q.value,onChange:ee},{default:t.withCtx(()=>[...e[2]||(e[2]=[t.createTextVNode(" 全部指标 ",-1)])]),_:1},8,["modelValue","indeterminate"])]),t.createVNode(c,{modelValue:v.value,"onUpdate:modelValue":e[1]||(e[1]=s=>v.value=s),onChange:N},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,s=>(t.openBlock(),t.createBlock(n,{key:s.fv,label:s.fv,class:"indicator-checkbox-item"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t.createVNode(d,{size:"small",onClick:ae},{default:t.withCtx(()=>[t.createVNode(l,null,{default:t.withCtx(()=>[t.createVNode(t.unref(Z.Download))]),_:1}),e[3]||(e[3]=t.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),t.createElementVNode("div",ye,[t.createElementVNode("div",_e,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,s=>(t.openBlock(),t.createElementBlock("span",{key:s.name,class:t.normalizeClass(["legend-item",{disabled:!s.visible}]),onClick:u=>oe(s)},[t.createElementVNode("span",{class:"legend-line",style:t.normalizeStyle({borderTopColor:s.visible?s.color:"#ccc",borderTopStyle:"solid"})},null,4),t.createElementVNode("span",Se,t.toDisplayString(s.name),1)],10,xe))),128)),D.value.length>8?(t.openBlock(),t.createElementBlock("span",Ee,t.toDisplayString(te.value),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",{id:t.unref(K),class:"chart-container"},null,8,ke)]),t.renderSlot(o.$slots,"default",{},void 0,!0)],4)}}})),Te=S._export_sfc(Oe,[["__scopeId","data-v-7b0c5991"]]);exports.default=Te;
|
|
1
|
+
"use strict";var ie=Object.defineProperty,ue=Object.defineProperties;var de=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var fe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var $=(m,a,r)=>a in m?ie(m,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):m[a]=r,P=(m,a)=>{for(var r in a||(a={}))fe.call(a,r)&&$(m,r,a[r]);if(U)for(var r of U(a))me.call(a,r)&&$(m,r,a[r]);return m},W=(m,a)=>ue(m,de(a));var G=(m,a,r)=>new Promise((E,g)=>{var y=b=>{try{k(r.next(b))}catch(f){g(f)}},I=b=>{try{k(r.throw(b))}catch(f){g(f)}},k=b=>b.done?E(b.value):Promise.resolve(b.value).then(y,I);k((r=r.apply(m,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const t=require("vue"),S=require("./index-p4bdBANg.cjs"),pe=require("./EChartComponentBase-BChD1X2l.cjs"),Z=require("@element-plus/icons-vue"),J=require("./ele-lin-icon-Dke_1AmT.cjs"),ve={class:"chart-panel"},he={class:"panel-header"},ge={class:"header-right"},be={class:"indicator-selector-panel"},Ce={class:"indicator-select-all"},ye={class:"legend-bar"},_e={class:"legend-items"},xe=["onClick"],Se={class:"legend-text"},Ee={key:0,class:"legend-page-info"},ke=["id"],Ne={DEFAULT_ICON:J.DEFAULT_ICON,ACTIVE_ICON:J.ACTIVE_ICON,NAME_CN:"降雨指标时序曲线",NAME_EN:"Rainfall Time Curve",ORDER:3},Ve={bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},gridColor:{value:"#f0f0f0",type:"color",label:"网格线颜色"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},we=[{name:"实时降水量(mm)",fv:"",object_id:"",color:"#5470c6",device:""},{name:"累计降水量(mm)",fv:"",object_id:"",color:"#ee6666",device:""}],De=["name","fv","object_id","color","device"],je=["mosaic","statistics","calculate"],Ae={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Ie=20,Me={DEFAULT:Ne,OPTIONS:Ve,DATA:we,PARAMS:De,SOURCE:je,ITEMS:Ie,COMMON:Ae},Oe=t.defineComponent(W(P({},Me),{__name:"rainfallTimeCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(m){const a=m,r=new Map,E=t.ref(""),g=t.ref(""),y=t.ref(""),I=t.computed(()=>{var o,e,l;return(e=(o=a.conf)==null?void 0:o.common)!=null&&e.object_id||(l=a.conf)!=null&&l.object_id?!0:O.value.some(d=>!!d.object_id)}),k=t.computed(()=>I.value||!!E.value);class b extends pe.EChartComponentBase{extractStyles(){var n,c,i,s,u,p,_;const e=(n=this.props.conf)==null?void 0:n.options,l=((c=e==null?void 0:e.linkChannel)==null?void 0:c.value)||"rainfall",d=((i=e==null?void 0:e.customChannel)==null?void 0:i.value)||"";return{bgColor:((s=e==null?void 0:e.bgColor)==null?void 0:s.value)||"#f5f7fa",panelBgColor:((u=e==null?void 0:e.panelBgColor)==null?void 0:u.value)||"#ffffff",textColor:((p=e==null?void 0:e.textColor)==null?void 0:p.value)||"#333333",gridColor:((_=e==null?void 0:e.gridColor)==null?void 0:_.value)||"#f0f0f0",linkChannel:l==="custom"&&d?d:l}}getChartOption(){return L(this.Style.value)}setSocketData(e){var n;if(!e)return;const l=e.datetime?e.datetime.split(".")[0]:S.dayjs().format("YYYY/MM/DD HH:mm");(((n=this.props.conf)==null?void 0:n.data)||[]).forEach(c=>{if(c.device){const p=this.extractDataValue(e,c.device);p!=null&&(g.value=String(p))}if(!c.fv)return;const i=this.extractDataValue(e,c.fv);if(i==null)return;const s=c.name||c.fv,u=r.get(s);u?(u.times.push(l),u.values.push(parseFloat(i)),u.times.length>200&&(u.times.shift(),u.values.shift())):r.set(s,{times:[l],values:[parseFloat(i)]})}),this.chartObj&&this.chartObj.setOption(L(this.Style.value),!1)}onLinkEvent(e){le(e)}}const f=new b(a,"rainfallTimeCurve");f.setupLifecycle();const M=f.getStyle(),K=f.getEchartId(),O=t.computed(()=>{var o;return((o=a.conf)==null?void 0:o.data)||[]}),h=t.computed(()=>{const o=new Set;return O.value.filter(e=>e.name&&!o.has(e.name)?(o.add(e.name),!0):!1)}),v=t.ref([]);t.watch(h,o=>{o.length>0&&v.value.length===0&&(v.value=o.map(e=>e.fv||e.name))},{immediate:!0});const B=t.computed({get:()=>h.value.length>0&&v.value.length===h.value.length,set:()=>{}}),Q=t.computed(()=>{const o=v.value.length;return o>0&&o<h.value.length}),X=t.computed(()=>{if(v.value.length===0)return"选择监测指标";if(v.value.length===h.value.length)return"全部指标已选";const e=h.value.filter(l=>v.value.includes(l.fv||l.name)).map(l=>l.name).join(", ");return e.length>14?e.substring(0,14)+"...":e}),ee=o=>{v.value=o?h.value.map(e=>e.fv||e.name):[],N()},C=t.ref(new Set),D=t.computed(()=>h.value.filter(o=>v.value.includes(o.fv||o.name)).map(o=>({name:g.value?`${g.value}-${o.name}`:o.name,color:o.color||"#5470c6",visible:!C.value.has(o.name)}))),te=t.computed(()=>`${D.value.filter(o=>o.visible).length}/${D.value.length}`),oe=o=>{const e=o.name.includes("-")?o.name.split("-").slice(1).join("-"):o.name;C.value.has(e)?C.value.delete(e):C.value.add(e),C.value=new Set(C.value),N()},ne=t.computed(()=>({backgroundColor:M.value.bgColor,color:M.value.textColor})),T=()=>{r.clear();const o=S.dayjs();O.value.forEach((e,l)=>{const d=[],n=[],c=[2800,3200],i=[200,300],s=c[l%2]||3e3,u=i[l%2]||200;for(let p=0;p<100;p++)d.push(o.subtract((100-p)*15,"minute").format("YYYY/MM/DD HH:mm")),n.push(+(s+(Math.random()-.5)*u+Math.sin(p/10)*u*.3).toFixed(2));r.set(e.name,{times:d,values:n})})},L=o=>{if(a.mode!=="edit"){if(!k.value)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};if(r.size===0)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]}}let e=[];for(const[,n]of r)n.times.length>e.length&&(e=n.times);!e.length&&a.mode==="edit"&&(e=Array.from({length:50},(n,c)=>S.dayjs().subtract((50-c)*15,"minute").format("YYYY/MM/DD HH:mm")));const l={},d=h.value.filter(n=>v.value.includes(n.fv||n.name)).map(n=>{const c=g.value?`${g.value}-${n.name}`:n.name;l[c]=!C.value.has(n.name);const i=r.get(n.name);return{name:c,type:"line",smooth:!0,showSymbol:!1,data:(i==null?void 0:i.values)||[],lineStyle:{color:n.color||"#5470c6",width:2.5,type:"solid"},itemStyle:{color:n.color||"#5470c6"}}});return{tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#1c3d90",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},legend:{show:!1,selected:l},grid:{top:15,right:40,bottom:60,left:60},xAxis:{type:"category",data:e,axisLine:{lineStyle:{color:o.gridColor}},axisLabel:{color:o.textColor,fontSize:11,rotate:15,interval:"auto",formatter:n=>{var c;if(n&&n.length>6){const i=n.split(" ");return(((c=i[0])==null?void 0:c.split("/").slice(1).join("/"))||"")+(i[1]?" "+i[1]:"")}return n}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",name:"监测数值",scale:!0,axisLine:{show:!1},axisLabel:{color:o.textColor,fontSize:11},splitLine:{lineStyle:{color:o.gridColor,type:"dashed"}}},dataZoom:[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"slider",height:18,bottom:8,borderColor:"transparent",backgroundColor:"#f0f0f0",fillerColor:"rgba(28, 61, 144, 0.2)",handleStyle:{color:"#1c3d90"},textStyle:{fontSize:10}}],series:d}},N=()=>{const o=f.getChartInstance();o&&o.setOption(L(M.value),!0)},ae=()=>{const o=f.getChartInstance();if(!o)return;const e=document.createElement("a");e.href=o.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`降雨指标时序曲线_${S.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},le=o=>{const{payload:e}=o;if(!e)return;if(e.type==="filter"){if(e.point&&(g.value=String(e.point)),e.objectId){const d=y.value;y.value=String(e.objectId),E.value=String(e.objectId),d!==y.value&&q(y.value)}(a.mode==="edit"||!e.objectId)&&(T(),N());return}const l=e.objectId||e.object_id;l&&(E.value=String(l),q(l))},q=o=>G(null,null,function*(){var i,s;if(!o||a.mode!=="preview")return;r.clear();const e=(i=f.session)==null?void 0:i.value;if(!e)return;const l=a.conf.id;e.componentRequests&&e.componentRequests.delete(l);const{data:d,common:n}=a.conf;Array.isArray(d)&&d.forEach(u=>{u.object_id=o}),n.multiObject||(n.object_id=o);try{const u=yield Promise.resolve().then(()=>require("./history-BKlOuH9N.cjs")),_=yield new u.default().getHistoryData(a,"rainfallTimeCurve");_&&Array.isArray(_)&&(((s=a.conf)==null?void 0:s.data)||[]).forEach((j,re)=>{if(!j.fv)return;const se=j.name||j.fv,A=_[re],H=(A==null?void 0:A.data)||A;if(!Array.isArray(H))return;const ce=[...H].sort((x,V)=>new Date(x.time||x.datetime||"").getTime()-new Date(V.time||V.datetime||"").getTime()),Y=[],z=[];ce.forEach(x=>{const V=x.time||x.datetime,F=x[j.fv];if(V&&F!=null){const R=parseFloat(F);isNaN(R)||(Y.push(S.dayjs(V).format("YYYY/MM/DD HH:mm")),z.push(R))}}),Y.length>0&&r.set(se,{times:Y,values:z})}),console.log("[降雨时序曲线] 历史数据加载完成")}catch(u){console.warn("[降雨时序曲线] 历史数据获取失败:",u)}N(),e.registerComponent({id:l,request:null,onUpdate:(u,p)=>{u==="realtime"&&f.setSocketData(p)}});const c=f.getSource();f.subscribeBySource(c,o)});return t.onMounted(()=>{a.mode==="edit"&&T(),setTimeout(()=>{var o;return(o=f.getChartInstance())==null?void 0:o.resize()},200)}),t.onUnmounted(()=>{f.cleanup()}),t.watch(()=>a.conf,()=>{f.init(),a.mode==="edit"&&T()},{deep:!0}),(o,e)=>{const l=w.ElIcon,d=w.ElButton,n=w.ElCheckbox,c=w.ElCheckboxGroup,i=w.ElPopover;return t.openBlock(),t.createElementBlock("div",{class:"rainfall-time-curve",style:t.normalizeStyle(ne.value)},[t.createElementVNode("div",ve,[t.createElementVNode("div",he,[e[4]||(e[4]=t.createElementVNode("div",{class:"header-left"},[t.createElementVNode("span",{class:"indicator-dot"}),t.createElementVNode("span",{class:"panel-title"},"📊 指标时序演变曲线")],-1)),t.createElementVNode("div",ge,[t.createVNode(i,{placement:"bottom-start",width:220,trigger:"click"},{reference:t.withCtx(()=>[t.createVNode(d,{size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(X.value)+" ",1),t.createVNode(l,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(t.unref(Z.ArrowDown))]),_:1})]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",be,[t.createElementVNode("div",Ce,[t.createVNode(n,{modelValue:B.value,"onUpdate:modelValue":e[0]||(e[0]=s=>B.value=s),indeterminate:Q.value,onChange:ee},{default:t.withCtx(()=>[...e[2]||(e[2]=[t.createTextVNode(" 全部指标 ",-1)])]),_:1},8,["modelValue","indeterminate"])]),t.createVNode(c,{modelValue:v.value,"onUpdate:modelValue":e[1]||(e[1]=s=>v.value=s),onChange:N},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,s=>(t.openBlock(),t.createBlock(n,{key:s.fv,label:s.fv,class:"indicator-checkbox-item"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t.createVNode(d,{size:"small",onClick:ae},{default:t.withCtx(()=>[t.createVNode(l,null,{default:t.withCtx(()=>[t.createVNode(t.unref(Z.Download))]),_:1}),e[3]||(e[3]=t.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),t.createElementVNode("div",ye,[t.createElementVNode("div",_e,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,s=>(t.openBlock(),t.createElementBlock("span",{key:s.name,class:t.normalizeClass(["legend-item",{disabled:!s.visible}]),onClick:u=>oe(s)},[t.createElementVNode("span",{class:"legend-line",style:t.normalizeStyle({borderTopColor:s.visible?s.color:"#ccc",borderTopStyle:"solid"})},null,4),t.createElementVNode("span",Se,t.toDisplayString(s.name),1)],10,xe))),128)),D.value.length>8?(t.openBlock(),t.createElementBlock("span",Ee,t.toDisplayString(te.value),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",{id:t.unref(K),class:"chart-container"},null,8,ke)]),t.renderSlot(o.$slots,"default",{},void 0,!0)],4)}}})),Te=S._export_sfc(Oe,[["__scopeId","data-v-7b0c5991"]]);exports.default=Te;
|
|
@@ -1,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-Dv3K8Mdu.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-p4bdBANg.cjs"),ee={DEFAULT_ICON:k.DEFAULT_ICON,ACTIVE_ICON:k.ACTIVE_ICON,NAME_CN:"区间曲线",NAME_EN:"Range Line",ORDER:6},te={titleColor:"#111",bgColor:"#fff",textColor:"#111",lineColor:"#314656",top:30,bottom:40,left:20,right:20,radiusSize:8,textSize:12,points:30,isHideTitle:!1,isSmooth:!1},N=[{name:"参数一",项目编号:"",object_id:""}],ie=["name","项目编号","object_id"],ne=["index","deviation","stability","balance","increment","risk","eigen"],oe={useAlias:!1,null:{type:"0",value:""},source:"index"},re=1,ae={DEFAULT:ee,OPTIONS:te,DATA:N,PARAMS:ie,SOURCE:ne,ITEMS:re,COMMON:oe},le=i.defineComponent(V(z({},ae),{__name:"rangeLin",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(c){C.use([C.install,J.install,K.install,Z.install,Q.install,W.install,C.install$1,X.installUniversalTransition]);const r=i.ref(i.inject("session",null)),l="rangelin_"+Math.random().toString(16).substring(4,12),R=["rgba(255, 173, 177, 0.2)","rgba(208, 201, 116, 0.2)","rgba(28, 118, 140, 1)","rgba(95, 28, 140, 1)","rgba(41, 196, 21, 1)"],v=["rgb(255, 173, 177)","rgb(208, 201, 116)","rgb(28, 118, 140)","rgb(95, 28, 140)","rgb(41, 196, 21)"];let s=null,y=null;const o=c;let a={area:[],pieces:[],data:[],times:[]};class I extends f.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),lineColor:this.getOptionValue("lineColor","#314656"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),points:this.getOptionValue("points",30),isHideTitle:this.getOptionValue("isHideTitle",!1),isSmooth:this.getOptionValue("isSmooth",!1)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:N,o.mode==="edit"&&w(),i.nextTick(()=>{let e=document.querySelector("#"+l);e&&(s||(s=L.init(e),y=f.elementResizeDetectorMaker({strategy:"scroll"}),y.listenTo(e,()=>s==null?void 0:s.resize())),s.setOption(_(),!0))})}onPreview(){O.preview()}cleanup(){y&&y.uninstall(document.querySelector("#"+l)),s&&s.clear(),s&&L.dispose(s),s=null,O.unregister()}}const A=new I(o,"rangeLin");A.setupLifecycle();const p=A.getStyle(),M=i.computed(()=>G.generateTitleStyle(o.conf.options)),_=()=>{var S,m,b,n;const{data:t,options:e}=o.conf;let d=t[0]||{};var g={tooltip:{trigger:"axis"},xAxis:{type:"category",boundaryGap:!1,data:a.times,axisLabel:{formatter:function(u,h){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(u))return u;let x=u.split(" ");return x[0]+`
|
|
2
2
|
`+x[1]},color:p.value.textColor,fontSize:p.value.textSize}},yAxis:{type:"value",axisPointer:{snap:!0}},grid:{top:((S=e==null?void 0:e.top)==null?void 0:S.value)||30,bottom:((m=e==null?void 0:e.bottom)==null?void 0:m.value)||40,left:((b=e==null?void 0:e.left)==null?void 0:b.value)||40,right:((n=e==null?void 0:e.right)==null?void 0:n.value)||20,containLabel:!0},visualMap:{show:!1,dimension:0,pieces:a.pieces},dataZoom:[{type:"slider",start:80,end:100,height:15,bottom:15,borderColor:"#e5e5e5",textStyle:{color:p.value.textColor},labelFormatter:function(u,h){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(h))return h;let x=h.split(" ");return x[0]+`
|
|
3
3
|
`+x[1]}},{type:"inside"}],series:[{name:(d==null?void 0:d.name)||"",type:"line",smooth:p.value.isSmooth,data:a.data,markArea:{data:a.area}}]};return g},w=()=>{var d;const t=f.hasDataSource(o.conf);let e=(d=p.value.points)!=null?d:30;a.area=[[{name:"区间一",xAxis:f.getxAxisDataTime(e,o.mode,t)[e-5]},{xAxis:f.getxAxisDataTime(e,o.mode,t)[e-10]}]],a.data=f.getRandomArr({num:e,max:200,min:0,mode:o.mode,hasDataSource:t}),a.times=f.getxAxisDataTime(e,o.mode,t),a.pieces=[{lte:e-10,color:p.value.lineColor},{gt:e-10,lte:e-5,color:v[0]},{gt:e-5,color:p.value.lineColor}]},$=(t,e)=>{let d=Array.from({length:t},(n,u)=>u),g=[];for(let n in e)g.push(...e[n]);let S=new Array(t).fill(!1);for(let[n,u]of g)for(let h=n;h<u;h++)S[h]=!0;return d.filter(n=>!S[n]).reduce((n,u)=>(n.length===0||u-n[n.length-1][1]>1?n.push([u,u]):n[n.length-1][1]=u,n),[])},U=t=>{if(!f.hasDataSource(o.conf))return;a.times=t.times,a.data=t.data,a.area=[],a.pieces=[];let e=0;for(let g in t.range)t.range[g]&&t.range[g].forEach(m=>{a.pieces.push({gte:m[0],lte:m[1],color:v[e]}),a.area.push([{name:g,xAxis:m[0],itemStyle:{color:R[e]}},{xAxis:t.times[m[1]]}])}),e++;let d=$(t.data.length,t.range);d.length&&d.forEach(g=>{a.pieces.push({gte:g[0]-1,lte:g[1]+1,color:p.value.lineColor})}),s==null||s.setOption(_(),!0)},D=t=>{f.hasDataSource(o.conf)},O={preview:()=>f.preview(o,r.value,U,D,"rangeLin"),unregister:()=>f.unregister(o,r.value)};i.watchEffect(()=>{o.conf.socketData&&D(o.conf.socketData)});const T=o.conf;return(t,e)=>(i.openBlock(),i.createElementBlock("div",{class:"mix-component",style:i.normalizeStyle({background:i.unref(p).bgColor,borderRadius:`${i.unref(p).radiusSize}px`})},[i.createElementVNode("div",{class:"mix-title",style:i.normalizeStyle(M.value)},i.toDisplayString(i.unref(T).caption||i.unref(T).name),5),i.createElementVNode("div",{class:"mix-body"},[i.createElementVNode("div",{class:"w-full h-full",id:l})]),i.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),se=Y._export_sfc(le,[["__scopeId","data-v-0b726b56"]]);exports.default=se;
|
|
@@ -11,18 +11,18 @@ 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-CcMj2at_.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
|
-
import {
|
|
18
|
-
import { i as me } from "./
|
|
19
|
-
import { i as fe } from "./install-
|
|
20
|
-
import { i as ge } from "./
|
|
17
|
+
import { i as de } from "./installMarkArea-Cdg4iciO.js";
|
|
18
|
+
import { u as ce, i as pe, a as me } from "./installCanvasRenderer-CLT2hquJ.js";
|
|
19
|
+
import { i as fe } from "./install-BBrAry2m.js";
|
|
20
|
+
import { i as ge } from "./install-B0x4IqQr.js";
|
|
21
21
|
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-DCD0sVkl.js";
|
|
26
26
|
const ve = {
|
|
27
27
|
DEFAULT_ICON: ue,
|
|
28
28
|
ACTIVE_ICON: le,
|
|
@@ -59,7 +59,7 @@ const ve = {
|
|
|
59
59
|
theme: { type: String, default: "light" }
|
|
60
60
|
},
|
|
61
61
|
setup(u) {
|
|
62
|
-
|
|
62
|
+
ce([pe, fe, ge, de, he, xe, me, Se]);
|
|
63
63
|
const a = Z(J("session", null)), n = "rangelin_" + Math.random().toString(16).substring(4, 12), $ = ["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)"], _ = ["rgb(255, 173, 177)", "rgb(208, 201, 116)", "rgb(28, 118, 140)", "rgb(95, 28, 140)", "rgb(41, 196, 21)"];
|
|
64
64
|
let s = null, x = null;
|
|
65
65
|
const i = u;
|
|
@@ -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-Dv3K8Mdu.cjs");function M(c,s,t){var j,y,g,h,n;const{common:d,data:_,options:i}=c,o=d.source||"mosaic";try{const l={action:"subscribe",component_name:c.type,items:Number(((j=i==null?void 0:i.points)==null?void 0:j.value)||c.points)||1,body:{},actionid:c.id},f=new Map;let b="";if(!d.multiObject||d.hideMultiObject){const e=d.object_id!==void 0&&d.object_id!==""?d:_[0]||{};b=F.getObjectId(e,d.useAlias,s)}let u=[];if(t==="alertTable"&&((y=i==null?void 0:i.columns)!=null&&y.value)&&(u=i.columns.value.filter(e=>e.useFv).map(e=>e.key)),_.forEach(e=>{d.multiObject?e.object_id=F.getObjectId(e,d.useAlias,s):e.object_id=b;const a=`${e.object_id}_${o}`;if(f.has(a))if(["progressBar","progressCircle"].includes(t)&&e.maxType==="fv")f.get(a).id.push(e.fv,e.max);else{let r=e.fv;t==="cmc"&&(r=e.item_fv),["ctrSwitch"].includes(t)&&(r=e.status_fv),r&&f.get(a).id.push(r)}else{let r=[];t==="alertTable"&&u.length>0?r=u:e.fv&&(r=[e.fv]),t==="evn"&&(r=[e.fv,e.status_fv]),["progressBar","progressCircle"].includes(t)&&e.maxType==="fv"&&(r=[e.fv,e.max]),t==="cmc"&&(r=[e.item_fv]),["ctrSwitch"].includes(t)&&(r=[e.status_fv]),r.length>0&&f.set(a,O(x({},e),{id:r}))}}),t==="sankey"){b=d.object_id||"";const e=`${b}_${o}`;f.has(e)?f.get(e).id.push(d.originFv):f.set(e,{object_id:b,id:[d.originFv]})}if(t==="scd"){b=((g=i==null?void 0:i.object)==null?void 0:g.value)||"";const e=`${b}_${o}`;f.has(e)?f.get(e).id.push((n=i==null?void 0:i.statusFv)==null?void 0:n.value):f.set(e,{object_id:b,id:[(h=i==null?void 0:i.statusFv)==null?void 0:h.value]})}for(const[e,a]of f)l.body[o]||(l.body[o]=[]),l.body[o].push({object_id:a.object_id,key:a.id});return l}catch(l){throw console.error("格式化请求时出错:",l),new Error("请求格式化失败")}}exports.formatRequest=M;
|
|
@@ -10,7 +10,7 @@ var v = (c, t, i) => t in c ? w(c, t, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
C.call(t, i) && v(c, i, t[i]);
|
|
11
11
|
return c;
|
|
12
12
|
}, F = (c, t) => O(c, T(t));
|
|
13
|
-
import { d as $ } from "./element-resize-detector-
|
|
13
|
+
import { d as $ } from "./element-resize-detector-CcMj2at_.js";
|
|
14
14
|
function M(c, t, i) {
|
|
15
15
|
var h, j, y, g, m;
|
|
16
16
|
const { common: d, data: u, options: s } = c, o = d.source || "mosaic";
|
|
@@ -27,8 +27,8 @@ var I = (f, i, s) => new Promise((t, v) => {
|
|
|
27
27
|
_((s = s.apply(f, i)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as k, reactive as j, computed as F, watchEffect as P, openBlock as $, createElementBlock as L, normalizeStyle as y, unref as d, createElementVNode as p, toDisplayString as D, renderSlot as U } from "vue";
|
|
30
|
-
import { B } from "./element-resize-detector-
|
|
31
|
-
import { d as h, _ as q } from "./index-
|
|
30
|
+
import { B } from "./element-resize-detector-CcMj2at_.js";
|
|
31
|
+
import { d as h, _ as q } from "./index-DCD0sVkl.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-DDhjCbfn.js")).default().getHistoryData(this.props, this.componentType);
|
|
124
124
|
this.setHistoryData(a);
|
|
125
125
|
} catch (e) {
|
|
126
126
|
console.error("[Retainer1] 获取历史数据失败:", e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var I=Object.defineProperty,V=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var z=(f,r,o)=>r in f?I(f,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):f[r]=o,O=(f,r)=>{for(var o in r||(r={}))Y.call(r,o)&&z(f,o,r[o]);if(M)for(var o of M(r))j.call(r,o)&&z(f,o,r[o]);return f},C=(f,r)=>V(f,R(r));var g=(f,r,o)=>new Promise((t,p)=>{var y=l=>{try{v(o.next(l))}catch(S){p(S)}},b=l=>{try{v(o.throw(l))}catch(S){p(S)}},v=l=>l.done?t(l.value):Promise.resolve(l.value).then(y,b);v((o=o.apply(f,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),A=require("./element-resize-detector-
|
|
1
|
+
"use strict";var I=Object.defineProperty,V=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var z=(f,r,o)=>r in f?I(f,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):f[r]=o,O=(f,r)=>{for(var o in r||(r={}))Y.call(r,o)&&z(f,o,r[o]);if(M)for(var o of M(r))j.call(r,o)&&z(f,o,r[o]);return f},C=(f,r)=>V(f,R(r));var g=(f,r,o)=>new Promise((t,p)=>{var y=l=>{try{v(o.next(l))}catch(S){p(S)}},b=l=>{try{v(o.throw(l))}catch(S){p(S)}},v=l=>l.done?t(l.value):Promise.resolve(l.value).then(y,b);v((o=o.apply(f,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),A=require("./element-resize-detector-Dv3K8Mdu.cjs"),h=require("./index-p4bdBANg.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-BKlOuH9N.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 q = (y, l, c) => new Promise((v, b) => {
|
|
|
27
27
|
L((c = c.apply(y, l)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as he, ref as ue, reactive as me, computed as pe, onMounted as ge, onUnmounted as ye, watch as J, watchEffect as ve, openBlock as be, createElementBlock as we, normalizeStyle as K, unref as E, createElementVNode as W, toDisplayString as De, renderSlot as Se } from "vue";
|
|
30
|
-
import { B as xe } from "./element-resize-detector-
|
|
31
|
-
import { d as O, _ as _e } from "./index-
|
|
30
|
+
import { B as xe } from "./element-resize-detector-CcMj2at_.js";
|
|
31
|
+
import { d as O, _ as _e } from "./index-DCD0sVkl.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-DDhjCbfn.js")).default().getHistoryData(this.props, this.componentType);
|
|
108
108
|
this.setHistoryData(i);
|
|
109
109
|
} catch (e) {
|
|
110
110
|
console.error("[Retainer2] 获取历史数据失败:", e);
|