mixdashboards 1.0.81 → 1.0.83
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/{BaseComponent-7iNR-tB0.js → BaseComponent-C35H9oDS.js} +3 -3
- package/dist/{BaseComponent-bPfMfd9b.cjs → BaseComponent-DWgC36nL.cjs} +1 -1
- package/dist/EChartComponentBase-C1ZoDdtZ.js +239 -0
- package/dist/EChartComponentBase-DHrAjVfv.cjs +1 -0
- package/dist/{EmergencyPlanPanel-DbZXWjBD.cjs → EmergencyPlanPanel-B95E_pRm.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-GotNA2qW.js → EmergencyPlanPanel-BhDIbC8R.js} +1 -1
- package/dist/{HistoryPlanDialog-DPlhbjsP.cjs → HistoryPlanDialog-8c-kO0Jr.cjs} +1 -1
- package/dist/{HistoryPlanDialog-PLDUGTex.js → HistoryPlanDialog-Xjm8gLGE.js} +1 -1
- package/dist/{MonitoringMap-BYvUop0Z.js → MonitoringMap-CcCExFCs.js} +2 -2
- package/dist/{MonitoringMap-BvrOrJft.cjs → MonitoringMap-ojJeqpmM.cjs} +1 -1
- package/dist/{UniverSheet-jQxbD82k.cjs → UniverSheet-C4-c6FGS.cjs} +1 -1
- package/dist/{UniverSheet-D8G6XpLL.js → UniverSheet-dk3kKetu.js} +2 -2
- package/dist/{accelerationChart-ioCpyh2U.cjs → accelerationChart--qmdQtY_.cjs} +1 -1
- package/dist/{accelerationChart-BrdSYWue.js → accelerationChart-9NUbAM17.js} +9 -9
- package/dist/{actionItem-DElfgFBr.js → actionItem-BdSvldSB.js} +2 -2
- package/dist/{actionItem-Bw80-8NE.cjs → actionItem-D-HTRgyN.cjs} +1 -1
- package/dist/{alarmLevelChart-CThoKvr3.js → alarmLevelChart-BULx2Y0Y.js} +2 -2
- package/dist/{alarmLevelChart-X9aax1GJ.cjs → alarmLevelChart-TmDNyjlj.cjs} +1 -1
- package/dist/{alertTable-UVeNDjEE.cjs → alertTable-BWif1yYG.cjs} +1 -1
- package/dist/{alertTable-Bdu9zu_8.js → alertTable-D2gOol0t.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-DvjgX2EH.cjs → aliasObjectSelectorDemo-DIKCoyoe.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-EEjN8lJE.js → aliasObjectSelectorDemo-DvDEkRag.js} +1 -1
- package/dist/{annualRainfallChart-C0c0OoGO.cjs → annualRainfallChart-DgtBHYqg.cjs} +1 -1
- package/dist/{annualRainfallChart-5tx_UNO2.js → annualRainfallChart-MnB_McPG.js} +2 -2
- package/dist/{aqi-DOyvRuFB.cjs → aqi-B5w618CZ.cjs} +1 -1
- package/dist/{aqi-BoSxK_k4.js → aqi-DQUIpznt.js} +2 -2
- package/dist/{aqiIndass-D8hlYLp1.cjs → aqiIndass-BPFo4ohP.cjs} +1 -1
- package/dist/{aqiIndass-CG85sGYl.js → aqiIndass-CNTW5HKg.js} +2 -2
- package/dist/{areaDeformCurve-DNGq43ms.js → areaDeformCurve-BfnTpAO_.js} +2 -2
- package/dist/{areaDeformCurve-DDtJFf5Z.cjs → areaDeformCurve-DOUo9LZF.cjs} +1 -1
- package/dist/{arrayCard-BkZgDjtc.cjs → arrayCard-CQSGNKxE.cjs} +1 -1
- package/dist/{arrayCard-Dury_OfS.js → arrayCard-CV8CacOs.js} +2 -2
- package/dist/{audio-D8eWO6Lx.js → audio-BBcRuzqz.js} +117 -118
- package/dist/audio-Cp--hpKc.cjs +1 -0
- package/dist/{bar-CawmXD_n.js → bar-CeAvz58P.js} +2 -2
- package/dist/{bar-D0wuYpbE.cjs → bar-Gz8Ij8Ge.cjs} +1 -1
- package/dist/{bmp-CVlQntM7.js → bmp-B4Zl-izY.js} +2 -2
- package/dist/{bmp-1GpuEgCV.cjs → bmp-CIgrbRDZ.cjs} +1 -1
- package/dist/{box-DFVmw2in.js → box-CL83mR0Q.js} +16 -16
- package/dist/{box-BZqRr009.cjs → box-Cq_WEeXK.cjs} +1 -1
- package/dist/{chartConfigPanel-C2unylu5.cjs → chartConfigPanel-Ce72kLAZ.cjs} +1 -1
- package/dist/{chartConfigPanel-CQ1c5pwY.js → chartConfigPanel-uFi1NR00.js} +1 -1
- package/dist/{circleBar-C_4OoM48.js → circleBar-DSba93ui.js} +2 -2
- package/dist/{circleBar-DMh2M4zG.cjs → circleBar-d1qLrCTp.cjs} +1 -1
- package/dist/{clock-ClxvrlZR.cjs → clock-B9eaFuwT.cjs} +1 -1
- package/dist/{clock-CqB56iQQ.js → clock-DrXP1fFe.js} +2 -2
- package/dist/{clt-R6dOdJ27.js → clt-BCkezQ-u.js} +2 -2
- package/dist/{clt-ByhDEFtj.cjs → clt-C5OpfDTc.cjs} +1 -1
- package/dist/{cmc-pI3tt1p1.js → cmc-B33YiDX4.js} +2 -2
- package/dist/{cmc-CwV6ANMz.cjs → cmc-BsBpsr4a.cjs} +1 -1
- package/dist/{cmp-8u7kyL2L.js → cmp-BxUvRg8Q.js} +2 -2
- package/dist/{cmp-DzBrt5bG.cjs → cmp-CFJb_RgQ.cjs} +1 -1
- package/dist/{conclusionCard-DRKF3r5w.js → conclusionCard-8OjK590B.js} +2 -2
- package/dist/{conclusionCard-B28RS3tf.cjs → conclusionCard-DHSM3xZd.cjs} +1 -1
- package/dist/{controlList-CvqVDQoA.js → controlList-D8KaHI8r.js} +2 -2
- package/dist/{controlList-BOCB-L2-.cjs → controlList-FocnqkLc.cjs} +1 -1
- package/dist/{controlRecordList-DC26Weyc.js → controlRecordList-Cw24IPRJ.js} +2 -2
- package/dist/{controlRecordList-CYx09Xu7.cjs → controlRecordList-L52sbHml.cjs} +1 -1
- package/dist/controlRecordListAPP-BFvxQkvu.cjs +1 -0
- package/dist/controlRecordListAPP-UW3u8pbX.js +577 -0
- package/dist/{crd-BBUOXYJ0.cjs → crd-Bhmh3UWx.cjs} +1 -1
- package/dist/{crd-D7BHb_UR.js → crd-hdSNyk4G.js} +2 -2
- package/dist/{ctrBtn-D0VmnPgE.js → ctrBtn-DN_kC_6B.js} +12 -12
- package/dist/{ctrBtn-DYGKPVoi.cjs → ctrBtn-DNculErB.cjs} +1 -1
- package/dist/{ctrSet-D0Lev67-.js → ctrSet-C9phsFVq.js} +3 -3
- package/dist/{ctrSet-BZLfwoR6.cjs → ctrSet-RhnHa3Qy.cjs} +1 -1
- package/dist/{ctrSwitch-xWbmGEqQ.cjs → ctrSwitch-CMG_Tz9L.cjs} +1 -1
- package/dist/{ctrSwitch-B1wj1gGf.js → ctrSwitch-cIfYWa4g.js} +11 -11
- package/dist/{dataManagement-DBdV4THe.js → dataManagement-CGIgR-K1.js} +2 -2
- package/dist/{dataManagement-CuCo8fwq.cjs → dataManagement-nspD4b-d.cjs} +1 -1
- package/dist/{dataReport-B3Kf7ETP.cjs → dataReport-DMnHkKF-.cjs} +1 -1
- package/dist/{dataReport-C4B-_YwH.js → dataReport-eCfxnKIU.js} +2 -2
- package/dist/{dataTable-DZ8dqKBH.cjs → dataTable--VWZLyZ9.cjs} +1 -1
- package/dist/{dataTable-CwVs07Nr.js → dataTable-XzfFuTkN.js} +1 -1
- package/dist/{datetime-DTT-cDZo.cjs → datetime-CCDuVgJT.cjs} +1 -1
- package/dist/{datetime-BpCEzAOt.js → datetime-yX40PgYQ.js} +2 -2
- package/dist/{deepClusterSlipSurface-qrN9oBGK.js → deepClusterSlipSurface-BHivpQ6y.js} +25 -25
- package/dist/{deepClusterSlipSurface-B0FYk5Zp.cjs → deepClusterSlipSurface-BcfWhOtx.cjs} +1 -1
- package/dist/{deepDataMatrix-CLWRzN7J.cjs → deepDataMatrix-CSbfM2pe.cjs} +1 -1
- package/dist/{deepDataMatrix-BAiOKyOh.js → deepDataMatrix-Rtasl3wq.js} +13 -13
- package/dist/{deepDisplacement3D-oXMLKC75.cjs → deepDisplacement3D-8cjKG5O0.cjs} +1 -1
- package/dist/{deepDisplacement3D-DefWF7_9.js → deepDisplacement3D-kMBZiIDf.js} +2 -2
- package/dist/{deepDisplacementChart-CQveyq_K.js → deepDisplacementChart-Clt0YSky.js} +12 -12
- package/dist/{deepDisplacementChart-Cf7vnqRm.cjs → deepDisplacementChart-DCB-ssdm.cjs} +1 -1
- package/dist/{deepDisplacementChart-Ci4mepXz.cjs → deepDisplacementChart-DhCSEDKR.cjs} +1 -1
- package/dist/{deepDisplacementChart-DYXM8g6G.js → deepDisplacementChart-Dmv0UbHu.js} +3 -3
- package/dist/{deepDisplacementView-BT50ocmO.js → deepDisplacementView-BtUYXwoO.js} +1 -1
- package/dist/{deepDisplacementView-DTohKeVj.cjs → deepDisplacementView-afljR7aK.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-C392C14O.js → deepNodeTemperatureChart-CMo7u864.js} +14 -14
- package/dist/{deepNodeTemperatureChart-BXeRCdPW.cjs → deepNodeTemperatureChart-Df3N9Uz3.cjs} +1 -1
- package/dist/{deepTangentAngleChart-BCokJKl0.js → deepTangentAngleChart-DA02MZsP.js} +2 -2
- package/dist/{deepTangentAngleChart-BGKuc-rm.cjs → deepTangentAngleChart-ra3ygDxZ.cjs} +1 -1
- package/dist/{deepTemperatureField-D4h1_S_7.cjs → deepTemperatureField-CMNUxPL9.cjs} +1 -1
- package/dist/{deepTemperatureField-DLnbHXGE.js → deepTemperatureField-Cafttwuz.js} +3 -3
- package/dist/{deepTrendChart-C0Caf7mU.js → deepTrendChart-DrGzpPWJ.js} +2 -2
- package/dist/{deepTrendChart-ButIzX18.cjs → deepTrendChart-utAypDEm.cjs} +1 -1
- package/dist/{deviceOnlineStatus-D-A_j_No.cjs → deviceOnlineStatus-9gwhTjPi.cjs} +1 -1
- package/dist/{deviceOnlineStatus-BPiPxzPO.js → deviceOnlineStatus-DCh4b2pN.js} +2 -2
- package/dist/{deviceStatus-CLVoFzsF.cjs → deviceStatus-Ch_HnFpg.cjs} +1 -1
- package/dist/{deviceStatus-C0JI65CL.js → deviceStatus-zed40xSm.js} +5 -5
- package/dist/{displacementDataTable-Tc2vyP6V.cjs → displacementDataTable-ApKneTKU.cjs} +1 -1
- package/dist/{displacementDataTable-DO-argcC.js → displacementDataTable-BXuzJMgf.js} +6 -6
- package/dist/{displacementTrajectoryChart-DBW2nKHa.js → displacementTrajectoryChart-D8LF2bRe.js} +23 -23
- package/dist/{displacementTrajectoryChart-B7S9soHo.cjs → displacementTrajectoryChart-eJvriPhj.cjs} +1 -1
- package/dist/{displacementTrendChart-DrTwv8jW.cjs → displacementTrendChart-2G8yQDas.cjs} +1 -1
- package/dist/{displacementTrendChart-BQgtdF3w.js → displacementTrendChart-pLqKQZZQ.js} +34 -34
- package/dist/{dxf-uBmDcdu9.cjs → dxf-Bo9vXCB0.cjs} +1 -1
- package/dist/{dxf-BsiAe7zz.js → dxf-KSACHKXl.js} +226 -227
- package/dist/{dzc-CY3cihrH.js → dzc-BGWRcJTd.js} +2 -2
- package/dist/{dzc-CUHCd-lP.cjs → dzc-WnjAv7mF.cjs} +1 -1
- package/dist/{emergencyPlan-Cyh4Gdtw.cjs → emergencyPlan-CEBTeRCF.cjs} +1 -1
- package/dist/{emergencyPlan-CsrGWNSG.js → emergencyPlan-DAnXPUVf.js} +3 -3
- package/dist/{evn-BPQ5Y0bD.cjs → evn-BQlhnSTl.cjs} +1 -1
- package/dist/{evn-BjSQlrzj.js → evn-FtrP9Ots.js} +2 -2
- package/dist/{evolutionChart-CIySnFLj.js → evolutionChart-0ADoQr4C.js} +3 -3
- package/dist/{evolutionChart-D7ffyRI2.cjs → evolutionChart-D4achkhq.cjs} +1 -1
- package/dist/fileViewer-BLK870gH.cjs +1 -0
- package/dist/{fileViewer-DzWT0Vpd.js → fileViewer-Ddaknqo6.js} +154 -155
- package/dist/{filterBar-ws5Gv3bw.cjs → filterBar-DPRgO1Eu.cjs} +1 -1
- package/dist/{filterBar-pUHL6tjd.js → filterBar-DV6sCThr.js} +2 -2
- package/dist/{fireCombustionCurve-cM-GBZIT.js → fireCombustionCurve-C2GAajMa.js} +3 -3
- package/dist/{fireCombustionCurve-204_JA16.cjs → fireCombustionCurve-ctAJ7Y_O.cjs} +1 -1
- package/dist/{fireFilterBar-OV2YfHNZ.cjs → fireFilterBar-CWQobV4f.cjs} +1 -1
- package/dist/{fireFilterBar-B9YOXVCR.js → fireFilterBar-dMl6ax5W.js} +2 -2
- package/dist/{fireHistoryTable-DEBZLHw9.cjs → fireHistoryTable-BgKY5Woh.cjs} +1 -1
- package/dist/{fireHistoryTable-C8ldBuU2.js → fireHistoryTable-CLqL1xrD.js} +2 -2
- package/dist/{gag-GnBw66vG.cjs → gag-Cpikx3zE.cjs} +1 -1
- package/dist/{gag-SPfaUSbl.js → gag-DGpxMC28.js} +2 -2
- package/dist/{gasStationList-n4n6SCVw.cjs → gasStationList-BXW7XAwU.cjs} +1 -1
- package/dist/{gasStationList-B7MthCCK.js → gasStationList-ByptPQ0Y.js} +2 -2
- package/dist/{geo3dViewer-D-3yY4nj.js → geo3dViewer-Bxu1MFgl.js} +3 -3
- package/dist/{geo3dViewer-COY-a8xD.cjs → geo3dViewer-CcgO0MM6.cjs} +1 -1
- package/dist/{glbModel-CY6ZUVaO.js → glbModel-DZzXcu0M.js} +2 -2
- package/dist/{glbModel-DMaIeLSL.cjs → glbModel-VHFlENVu.cjs} +1 -1
- package/dist/{globalObjectSelector-AI-F4yTK.cjs → globalObjectSelector-DpG3DqOp.cjs} +1 -1
- package/dist/{globalObjectSelector-CMLSvaJC.js → globalObjectSelector-DpP2uY0H.js} +1 -1
- package/dist/{gnssFilterBar-DcZqHS67.cjs → gnssFilterBar-DfH3gfkd.cjs} +1 -1
- package/dist/{gnssFilterBar-CrjhkSKa.js → gnssFilterBar-MfSNmeh5.js} +2 -2
- package/dist/{gnssHistoryTable-BwYsIk7G.cjs → gnssHistoryTable-9mPhgc8t.cjs} +1 -1
- package/dist/{gnssHistoryTable-CCOiCsU1.js → gnssHistoryTable-C-6GEftl.js} +2 -2
- package/dist/{gnssMapView-DZQzxmYb.js → gnssMapView-Bn2UM2iz.js} +4 -4
- package/dist/{gnssMapView-CtruSJ11.cjs → gnssMapView-CloADFRZ.cjs} +2 -2
- package/dist/{gnssSectionProfile-Cgsg2aOD.js → gnssSectionProfile-DZ4XFcUK.js} +2 -2
- package/dist/{gnssSectionProfile-BJ4pRkOh.cjs → gnssSectionProfile-Gx8gdbbA.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-EG7AVAhF.cjs → gnssTimeSeriesChart-BwBCMn5n.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-Dozkymn_.js → gnssTimeSeriesChart-CPbICNqm.js} +2 -2
- package/dist/{gnssXYTrajectory-GThy7DJu.cjs → gnssXYTrajectory-BcKMWceP.cjs} +1 -1
- package/dist/{gnssXYTrajectory-B7pIdiAU.js → gnssXYTrajectory-CVoDSGBz.js} +2 -2
- package/dist/grd-Ci9h5Y1v.cjs +1 -0
- package/dist/{grd-Bamoh3sk.js → grd-De2WzaEh.js} +5 -5
- package/dist/{grdIndass-HV4YddH-.js → grdIndass-BlKi1T0i.js} +7 -7
- package/dist/{grdIndass-BEtzHP_3.cjs → grdIndass-CypwLpT3.cjs} +1 -1
- package/dist/{grg-BjqaKPpI.cjs → grg-CsU10Pyg.cjs} +1 -1
- package/dist/{grg-wXLSCuT3.js → grg-DAcd6G-c.js} +2 -2
- package/dist/{gridview-DnjQpq_0.js → gridview-COT70f_U.js} +2 -2
- package/dist/{gridview-CvI3MrAv.cjs → gridview-D3D4rWOn.cjs} +1 -1
- package/dist/{groundwaterFilterBar-Dd4aUjYj.cjs → groundwaterFilterBar-tXWrc3ot.cjs} +1 -1
- package/dist/{groundwaterFilterBar-BlMvgZC7.js → groundwaterFilterBar-uxBUT4eJ.js} +2 -2
- package/dist/{groundwaterProfileChart-DULM4zU6.js → groundwaterProfileChart-CzpgoDId.js} +3 -3
- package/dist/{groundwaterProfileChart-C6StdcUz.cjs → groundwaterProfileChart-DXrO1tAQ.cjs} +2 -2
- package/dist/{groundwaterTimeCurve-Vw3Jlg68.js → groundwaterTimeCurve-BMOAW1NJ.js} +3 -3
- package/dist/{groundwaterTimeCurve-CRrv2CMx.cjs → groundwaterTimeCurve-D7sC1kie.cjs} +1 -1
- package/dist/{groupCard-Dl_IGUEu.cjs → groupCard-Byn5293-.cjs} +1 -1
- package/dist/{groupCard-zye5-36P.js → groupCard-C-9yP6qX.js} +2 -2
- package/dist/{headerBar-D01QtM5X.js → headerBar-Bt-8H_Pv.js} +2 -2
- package/dist/{headerBar-BMtC-Zq0.cjs → headerBar-CZ7b4gNr.cjs} +1 -1
- package/dist/{history-DNb1g6iZ.cjs → history-BBjpTlVq.cjs} +1 -1
- package/dist/{history-C5frUowe.js → history-Bs-QyLsO.js} +16 -16
- package/dist/index-BIreWxJ1.cjs +612 -0
- package/dist/{index-BMAqPWEI.js → index-CzzMcaIY.js} +3750 -3710
- package/dist/{insarDeformChart-BalFn48n.cjs → insarDeformChart-CNxbuabO.cjs} +1 -1
- package/dist/{insarDeformChart-alqXb9e1.js → insarDeformChart-DKksOBjb.js} +2 -2
- package/dist/{insarImageViewer-CbT04VEY.js → insarImageViewer-BJXIEgjb.js} +2 -2
- package/dist/{insarImageViewer-CVjWNwmh.cjs → insarImageViewer-bBBiBbfS.cjs} +1 -1
- package/dist/{kds-Ca9QoLSf.js → kds-DuVEU1BC.js} +2 -2
- package/dist/{kds-CTUrSSjU.cjs → kds-iQW5ovY7.cjs} +1 -1
- package/dist/{kpiCard-r2wzwCXq.js → kpiCard-N3sE4f6x.js} +2 -2
- package/dist/{kpiCard-DuVU5gTx.cjs → kpiCard-aiq4NcP1.cjs} +1 -1
- package/dist/{landslideMap-B1XCvURT.cjs → landslideMap-Byi0os-4.cjs} +1 -1
- package/dist/{landslideMap-CquJ4h95.js → landslideMap-CArQLsI1.js} +7 -7
- package/dist/{landslideWarning-CTq8uI-J.js → landslideWarning-BfXFmBbh.js} +14 -14
- package/dist/{landslideWarning-BcOexdgV.cjs → landslideWarning-DRnht1r1.cjs} +1 -1
- package/dist/{layerTabs-gYJoJOo4.js → layerTabs-D0VViNiv.js} +2 -2
- package/dist/{layerTabs-BdlBaY-X.cjs → layerTabs-FZjroOUE.cjs} +1 -1
- package/dist/{leaflet-src-wuDutD0f.cjs → leaflet-src-CslWBJSy.cjs} +1 -1
- package/dist/{leaflet-src-d4Oycwqt.js → leaflet-src-vRqqLfr0.js} +1 -1
- package/dist/{lerc-wP7L7V2U.cjs → lerc-DxQUxfcg.cjs} +1 -1
- package/dist/{lerc-BjgBfDi1.js → lerc-xqV426Pb.js} +2 -2
- package/dist/{lin-DDbduhMw.js → lin-Djtmlfi6.js} +63 -61
- package/dist/lin-x5xeC07h.cjs +2 -0
- package/dist/{linIndass-DXCDoGGX.js → linIndass-63SSb2mu.js} +2 -2
- package/dist/{linIndass-CwJS2YaH.cjs → linIndass-CAbPXOqN.cjs} +1 -1
- package/dist/{lst-BxuFdIcp.cjs → lst-CpHk-WKi.cjs} +1 -1
- package/dist/{lst-Cw7Hw7XQ.js → lst-jkE6-GIF.js} +2 -2
- package/dist/{manualEntry-BTcsNXBa.cjs → manualEntry-BMb0VgAw.cjs} +1 -1
- package/dist/{manualEntry-D0N07D50.js → manualEntry-DrzDc9jE.js} +2 -2
- package/dist/{mapBackground-CnD26LNq.js → mapBackground-4dxBnFYM.js} +3 -3
- package/dist/{mapBackground-BvzCUkOJ.cjs → mapBackground-DyFTX6RX.cjs} +1 -1
- package/dist/{mappingList-D37xz5nE.js → mappingList-Cj4EMJ4J.js} +2 -2
- package/dist/{mappingList-XvQv4Oc9.cjs → mappingList-KPvt0ZPX.cjs} +1 -1
- package/dist/markdownViewer-CbWtVHTy.cjs +3 -0
- package/dist/{markdownViewer-cZAAJobT.js → markdownViewer-HDSq0mof.js} +68 -69
- package/dist/{mix-control-modal-DJqd6R0d.js → mix-control-modal-BImutOTN.js} +10 -10
- package/dist/{mix-control-modal-C_toXgal.cjs → mix-control-modal-CtVPyvuF.cjs} +1 -1
- package/dist/{mixGrid-LxZDELki.js → mixGrid-27dQqd1D.js} +2 -2
- package/dist/{mixGrid-B19kGvBp.cjs → mixGrid-DIB0U3xT.cjs} +1 -1
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +2 -2
- package/dist/{mixiotObjectListApi-Co_aZn4c.cjs → mixiotObjectListApi-BovbQzuS.cjs} +1 -1
- package/dist/{mixiotObjectListApi-C2IW4FgX.js → mixiotObjectListApi-D5Ps1rsq.js} +1 -1
- package/dist/{mjpegCamera-BL-qmJ2-.cjs → mjpegCamera-Bqq-vj8A.cjs} +1 -1
- package/dist/{mjpegCamera-IDAS98m6.js → mjpegCamera-CPvbFag0.js} +2 -2
- package/dist/{monitorAlert-CEhfTDVP.cjs → monitorAlert-CUa-rKrp.cjs} +1 -1
- package/dist/{monitorAlert-t3NZo1Mj.js → monitorAlert-CeU6Ms-j.js} +6 -6
- package/dist/{monitorData-Cdue50OS.js → monitorData-CMRp_q0a.js} +2 -2
- package/dist/{monitorData-DKJbvXLP.cjs → monitorData-k_aZxZnS.cjs} +1 -1
- package/dist/{monitorSpeedChart-tHX0bpxC.js → monitorSpeedChart-B2PEXbJ_.js} +1 -1
- package/dist/{monitorSpeedChart-Da8dgh1q.cjs → monitorSpeedChart-ChBdVhuS.cjs} +1 -1
- package/dist/{mxa-CJm6ytT2.cjs → mxa-BRMXnvEg.cjs} +1 -1
- package/dist/{mxa-f49FnR7h.js → mxa-CnthKDPH.js} +2 -2
- package/dist/{myValue-DpAfmLPZ.cjs → myValue-DKXPqCK0.cjs} +1 -1
- package/dist/{myValue-BvwlHDMa.js → myValue-DLO_Revr.js} +2 -2
- package/dist/{myValueList-Cyk7N-nO.js → myValueList-DdH5ux1n.js} +2 -2
- package/dist/{myValueList-B1SEb3ft.cjs → myValueList-ynJZFVho.cjs} +1 -1
- package/dist/{objectList-DvJBPK7u.cjs → objectList-B9K3GhJH.cjs} +1 -1
- package/dist/{objectList-Bwa2INB-.js → objectList-DSRF3Ap3.js} +3 -3
- package/dist/{objectListAPP-Dxx-Nrk2.js → objectListAPP-5-af_HI3.js} +976 -972
- package/dist/objectListAPP-B2Dxpp-W.cjs +1 -0
- package/dist/{percentBar-BUJB2XkG.js → percentBar-B0cgp0WN.js} +2 -2
- package/dist/{percentBar-BgN70v45.cjs → percentBar-DD8HHw11.cjs} +1 -1
- package/dist/{photo-NuSvh3xZ.js → photo-XM_KlteR.js} +2 -2
- package/dist/{photo-baZej29U.cjs → photo-iqBFciPv.cjs} +1 -1
- package/dist/{pie-BA5XHhhB.js → pie-D9SP-8z-.js} +2 -2
- package/dist/{pie-DZCAdGgf.cjs → pie-DlUCpy6x.cjs} +1 -1
- package/dist/{placeholder-BkJPQh7K.js → placeholder-Bx0uhi0k.js} +1 -1
- package/dist/{placeholder-CJ5-TXTx.cjs → placeholder-Clf34EI0.cjs} +1 -1
- package/dist/{pressBtn-BVcRWveF.cjs → pressBtn-DWnyEV8n.cjs} +1 -1
- package/dist/{pressBtn-ikBTkKc9.js → pressBtn-sCE4TLJr.js} +3 -3
- package/dist/{processTable-PmEkBL9U.js → processTable-NJhxl0f5.js} +2 -2
- package/dist/{processTable--oxsehPP.cjs → processTable-pFhmmcLe.cjs} +1 -1
- package/dist/{progressBar-Mgu2dAk-.cjs → progressBar-B1fFuLVY.cjs} +1 -1
- package/dist/{progressBar-B43Qh9nK.js → progressBar-Bkbp-qce.js} +2 -2
- package/dist/{progressCircle-BbDsfWGT.js → progressCircle-BESm99x0.js} +2 -2
- package/dist/{progressCircle-BFU9joLT.cjs → progressCircle-cipNOthm.cjs} +1 -1
- package/dist/{qrcode-BTS1bxg-.cjs → qrcode-DEN-0Iud.cjs} +1 -1
- package/dist/{qrcode-Js3w3yos.js → qrcode-Wcq5Uyp5.js} +2 -2
- package/dist/{raceBar-BDA_pAWt.cjs → raceBar-B_BQCEea.cjs} +1 -1
- package/dist/{raceBar-BHCxLvyI.js → raceBar-DMHDuoL1.js} +2 -2
- package/dist/{rad-BKCSiyQ5.cjs → rad-D3CC_VsK.cjs} +1 -1
- package/dist/{rad-BDCd4Pwy.js → rad-V3Xophha.js} +2 -2
- package/dist/{radarMapViewer-CNyHVt1g.cjs → radarMapViewer-B9jaJf4S.cjs} +1 -1
- package/dist/{radarMapViewer-uZ9nBeNX.js → radarMapViewer-DrGS5i0U.js} +2 -2
- package/dist/{rainfallFilterBar-BaYdlg34.js → rainfallFilterBar-BkaeoVg2.js} +2 -2
- package/dist/{rainfallFilterBar-BuaC9e-m.cjs → rainfallFilterBar-C1WZUTFp.cjs} +1 -1
- package/dist/{rainfallTimeCurve-d3y7-zi5.js → rainfallTimeCurve-C1524jLl.js} +3 -3
- package/dist/{rainfallTimeCurve-25XMWUc4.cjs → rainfallTimeCurve-P-rOtzw4.cjs} +1 -1
- package/dist/{rangeLin-BO282E3n.cjs → rangeLin-4kjergfP.cjs} +1 -1
- package/dist/{rangeLin-DMPh1rva.js → rangeLin-BcojOU54.js} +2 -2
- package/dist/{realtimeEvolutionMap-GyPeCRw0.cjs → realtimeEvolutionMap-BjzciS6-.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-GLmtM3nw.js → realtimeEvolutionMap-Bl6NG6rA.js} +2 -2
- package/dist/{regionBar-CuMQlhbX.cjs → regionBar-B_Fam3R0.cjs} +1 -1
- package/dist/{regionBar-DsvOJb12.js → regionBar-DmsnNayj.js} +2 -2
- package/dist/{request-DxDOVOPq.js → request-Dptl7oYT.js} +5 -5
- package/dist/{request-DbL6IeXO.cjs → request-klUbSiSP.cjs} +1 -1
- package/dist/{retainer1-DdY2Oa1u.js → retainer1-BxqUckl-.js} +3 -3
- package/dist/{retainer1-CXzLNklq.cjs → retainer1-DQ2y1Mwe.cjs} +1 -1
- package/dist/{retainer2-CiIPAUrU.js → retainer2-CulsMz6a.js} +3 -3
- package/dist/{retainer2-fZjOdPgP.cjs → retainer2-k-piEtcf.cjs} +1 -1
- package/dist/{retainerRecordList-BqinO9F9.js → retainerRecordList-B0qAqQwJ.js} +2 -2
- package/dist/{retainerRecordList-CAh2DQ93.cjs → retainerRecordList-BhF9G4ef.cjs} +1 -1
- package/dist/{retainerRecordListAPP-Da0vK-vr.js → retainerRecordListAPP-C58_OtIA.js} +377 -363
- package/dist/retainerRecordListAPP-DYPLoSOE.cjs +1 -0
- package/dist/{ringTopN-DrJtQwz4.js → ringTopN-CEPKL528.js} +2 -2
- package/dist/{ringTopN-CMNCV4_7.cjs → ringTopN-Dp-swfur.cjs} +1 -1
- package/dist/{riskRegionTable-DD5MW3xH.cjs → riskRegionTable-BZ9jqwkG.cjs} +1 -1
- package/dist/{riskRegionTable--qUM7RfK.js → riskRegionTable-DJGKjYMZ.js} +6 -6
- package/dist/{sankey-Dfyolm3r.cjs → sankey-GBKJNeAl.cjs} +1 -1
- package/dist/{sankey-Cz8NbpIX.js → sankey-nub6Ljz7.js} +4 -4
- package/dist/{scd-C-KnmROc.cjs → scd-D44QFM-D.cjs} +1 -1
- package/dist/{scd-DBXr1k5f.js → scd-g2JTiNd8.js} +2 -2
- package/dist/{sideMenu-B-yOZfmF.cjs → sideMenu-DRZH1MKr.cjs} +1 -1
- package/dist/{sideMenu-kB5BFNMs.js → sideMenu-DsXY6TQj.js} +2 -2
- package/dist/{slopeStability-B41QwPCa.cjs → slopeStability-Boy_kL62.cjs} +1 -1
- package/dist/{slopeStability-B2Ss5p5s.js → slopeStability-FYKlit5E.js} +10 -10
- package/dist/{speedCurve-GIdofoeH.js → speedCurve-B3hQZBbz.js} +2 -2
- package/dist/{speedCurve-DZQE4Nwp.cjs → speedCurve-B9FK_wZa.cjs} +1 -1
- package/dist/{stackedBar-BWKtoD4V.cjs → stackedBar-B-hD5YvT.cjs} +1 -1
- package/dist/{stackedBar-CJMOu1Wn.js → stackedBar-DpJP8PWA.js} +2 -2
- package/dist/{stressFilterBar-DIXz8psh.cjs → stressFilterBar-CLc4SHHn.cjs} +1 -1
- package/dist/{stressFilterBar-BSvYkE5J.js → stressFilterBar-DEyZvQ8O.js} +2 -2
- package/dist/{stressTimeCurve-C5xbotj2.js → stressTimeCurve-BOKCqwrN.js} +3 -3
- package/dist/{stressTimeCurve-mza0vT2E.cjs → stressTimeCurve-D1csCnwP.cjs} +1 -1
- package/dist/{swiper-DkcesyBh.js → swiper-B98sjphz.js} +2 -2
- package/dist/{swiper-C069NtjD.cjs → swiper-CTypOT36.cjs} +1 -1
- package/dist/{terminalConfigList-CZJFD73H.cjs → terminalConfigList-Cqov_UoD.cjs} +1 -1
- package/dist/{terminalConfigList-DbcIHjm1.js → terminalConfigList-KLvdaI18.js} +2 -2
- package/dist/{terminalList-BzsyK0tY.cjs → terminalList-BI15XT0v.cjs} +1 -1
- package/dist/{terminalList-DEY6ejUq.js → terminalList-QItSd179.js} +2 -2
- package/dist/terminalListAPP-D1P8u5Kl.cjs +1 -0
- package/dist/{terminalListAPP-BjyoLOqN.js → terminalListAPP-zqUVhpbb.js} +652 -644
- package/dist/{textbox-0mf_MQl8.js → textbox-DJ0cKuTA.js} +35 -33
- package/dist/{textbox-BUddK0_2.cjs → textbox-DN8HIhzu.cjs} +1 -1
- package/dist/{timeQueryBar-CRchsLsv.js → timeQueryBar-1WljG4tR.js} +1 -1
- package/dist/{timeQueryBar-DkyUc4dn.cjs → timeQueryBar-ClozwWSf.cjs} +1 -1
- package/dist/{timeSeries-CuIDlJHx.cjs → timeSeries-CK4fCBwU.cjs} +1 -1
- package/dist/{timeSeries-CRLzzEXb.js → timeSeries-cr3RDNck.js} +3 -3
- package/dist/{timeSeriesCurve-CyA1r1DM.cjs → timeSeriesCurve-BRXik7Bk.cjs} +1 -1
- package/dist/{timeSeriesCurve-DZHRdQDZ.js → timeSeriesCurve-CdQsP5Tt.js} +3 -3
- package/dist/{toggleBtn-CTGe4E_-.js → toggleBtn-Bd2MVo3h.js} +7 -7
- package/dist/{toggleBtn-DJT6URxS.cjs → toggleBtn-DOGP3DVq.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-UhdaSS9h.js → trajectoryConfigPanel-BDrc8p5G.js} +1 -1
- package/dist/{trajectoryConfigPanel-Bgf8MVRu.cjs → trajectoryConfigPanel-fb4P-OQi.cjs} +1 -1
- package/dist/{trajectoryScatter-DzDISzLy.cjs → trajectoryScatter-CVoLw-g4.cjs} +1 -1
- package/dist/{trajectoryScatter-btcd7h4h.js → trajectoryScatter-CZas2a1R.js} +2 -2
- package/dist/{universalConfigPanel-Egxp78wG.js → universalConfigPanel-B_DZwtcZ.js} +1 -1
- package/dist/{universalConfigPanel-DOWIEFMB.cjs → universalConfigPanel-D3iLeuP0.cjs} +1 -1
- package/dist/{universalTable-D8863n4l.cjs → universalTable-BFzIk6Ps.cjs} +1 -1
- package/dist/{universalTable-DMUre0sU.js → universalTable-dq9lB2VP.js} +2 -2
- package/dist/useMixiotAppScrollLoad-BfiNo4UY.cjs +1 -0
- package/dist/useMixiotAppScrollLoad-P-UZvRtN.js +72 -0
- package/dist/{video-CvJzmIfr.cjs → video-BE-LyVFx.cjs} +2 -2
- package/dist/{video-7vusBm65.js → video-zrfGG45Y.js} +13 -14
- package/dist/{videoMonitor-Dg_gDXJo.cjs → videoMonitor-B17zitTc.cjs} +1 -1
- package/dist/{videoMonitor-gExpQ_Ts.js → videoMonitor-BI_TSchU.js} +5 -5
- package/dist/{vlu-CkHHDBe-.cjs → vlu-B6v9o5Qy.cjs} +1 -1
- package/dist/{vlu-CTJEfMmD.js → vlu-CLMQEqMH.js} +2 -2
- package/dist/{warningOverview-E1srI2wU.js → warningOverview-71shi1KX.js} +3 -3
- package/dist/{warningOverview-D-e4v4V3.cjs → warningOverview-BBHFGPyJ.cjs} +1 -1
- package/dist/{weather-dHUA2idW.js → weather-CRt4Mzqu.js} +2 -2
- package/dist/{weather-BRwsBCF5.cjs → weather-DIvLF26s.cjs} +1 -1
- package/dist/{windLin-0WP50IZ7.cjs → windLin-CelyMwMb.cjs} +1 -1
- package/dist/{windLin-wA1WYzUD.js → windLin-Dg2spvAZ.js} +2 -2
- package/package.json +1 -1
- package/dist/EChartComponentBase-C9Df3n5X.cjs +0 -1
- package/dist/EChartComponentBase-CXS9MoPs.js +0 -141
- package/dist/audio-gGOS75NS.cjs +0 -1
- package/dist/controlRecordListAPP-BXI6WNA5.js +0 -569
- package/dist/controlRecordListAPP-fVU5CyHA.cjs +0 -1
- package/dist/fileViewer-CW4ADJcs.cjs +0 -1
- package/dist/grd-dUcEhxHp.cjs +0 -1
- package/dist/index-CvzbO-py.cjs +0 -612
- package/dist/lin-BHpxT609.cjs +0 -2
- package/dist/markdownViewer-C6477h72.cjs +0 -3
- package/dist/objectListAPP-CdR3w8XY.cjs +0 -1
- package/dist/retainerRecordListAPP-DagK8JhI.cjs +0 -1
- package/dist/terminalListAPP-VErb7538.cjs +0 -1
|
@@ -27,17 +27,17 @@ var f = (l, t, s) => new Promise((e, i) => {
|
|
|
27
27
|
r((s = s.apply(l, t)).next());
|
|
28
28
|
});
|
|
29
29
|
import { ref as I, inject as E, watch as g, onMounted as T, onBeforeUnmount as P } from "vue";
|
|
30
|
-
import { v as U, w as W, x as h, A as Y, d as v, a as M, l as B, y as q, z as A, B as K, E as N, G as $ } from "./index-
|
|
30
|
+
import { v as U, w as W, x as h, A as Y, d as v, a as M, l as B, y as q, z as A, B as K, E as N, G as $ } from "./index-CzzMcaIY.js";
|
|
31
31
|
import { ElMessage as F } from "element-plus";
|
|
32
32
|
const z = (l, t, s, e, i) => f(null, null, function* () {
|
|
33
33
|
try {
|
|
34
|
-
const a = yield new (yield import("./history-
|
|
34
|
+
const a = yield new (yield import("./history-Bs-QyLsO.js")).default().getHistoryData(l, i);
|
|
35
35
|
s(a);
|
|
36
36
|
} catch (n) {
|
|
37
37
|
console.error("获取历史数据时出错:", n);
|
|
38
38
|
} finally {
|
|
39
39
|
if (t) {
|
|
40
|
-
const { formatRequest: n } = yield import("./request-
|
|
40
|
+
const { formatRequest: n } = yield import("./request-Dptl7oYT.js"), a = n(l.conf, l.uid, i);
|
|
41
41
|
t.registerComponent({
|
|
42
42
|
id: l.conf.id,
|
|
43
43
|
request: a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var j=Object.defineProperty,A=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var T=(u,t,s)=>t in u?j(u,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[t]=s,S=(u,t)=>{for(var s in t||(t={}))O.call(t,s)&&T(u,s,t[s]);if(w)for(var s of w(t))D.call(t,s)&&T(u,s,t[s]);return u},I=(u,t)=>A(u,C(t));var f=(u,t,s)=>new Promise((e,i)=>{var n=c=>{try{r(s.next(c))}catch(a){i(a)}},o=c=>{try{r(s.throw(c))}catch(a){i(a)}},r=c=>c.done?e(c.value):Promise.resolve(c.value).then(n,o);r((s=s.apply(u,t)).next())});const b=require("vue"),l=require("./index-CvzbO-py.cjs"),N=require("element-plus"),R=(u,t,s,e,i)=>f(null,null,function*(){try{const o=yield new(yield Promise.resolve().then(()=>require("./history-DNb1g6iZ.cjs"))).default().getHistoryData(u,i);s(o)}catch(n){console.error("获取历史数据时出错:",n)}finally{if(t){const{formatRequest:n}=yield Promise.resolve().then(()=>require("./request-DbL6IeXO.cjs")),o=n(u.conf,u.uid,i);t.registerComponent({id:u.conf.id,request:o,onUpdate:(r,c)=>{r==="realtime"&&e(c)}})}}}),E=(u,t)=>{t&&t.unregisterComponent(u.conf.id)};function M(u,t){const s=JSON.parse(sessionStorage.getItem(l.DATA_PERMISSION_KEY)||"{}");if(s.type==="black_list")return s.entities[u]?!s.entities[u].includes(t):!0;if(s.type==="white_list")return s.entities[u]?s.entities[u].includes(t):!1}function d(u,t){return M(u,t)?!0:(N.ElMessage.error(`您没有权限访问 ${t} ,请联系管理员!`),!1)}class x{constructor(t){this.props=t}scriptUid(t){var s;return(s=t.uid)!=null?s:t.fv}indexIdentityKey(t){return t.is_alias?"alias":"uid"}mosaicResult(t,s){return t.fv?{block_mapping:"influxdbproxy",action:"get_mosaic_list",object_id:t.object_id,keys:[t.fv],page_index:1,page_size:s||1,order_by:"created",order_type:"desc"}:null}statisticsListCondition(t,s,e,i){const n=this.scriptUid(t);if(!n||!d(e,n)||!t.periodUnit)return null;const o=l.getStatisticsTimeRange(t.periodUnit,t.periodValue);return{block_mapping:"statistics",action:i,script_uid:n,where_and:JSON.stringify([["object_id","=",t.object_id],["start_time",">=",o[0]],["start_time","<=",o[1]]]),page_size:Number(s)||20,page_index:1,order_by:"created",order_type:"desc"}}statisticsResult(t,s){return this.statisticsListCondition(t,s,l.ACTION_ENTITIES.statistics,"get_statistics_page")}calculateResult(t,s){return this.statisticsListCondition(t,s,l.ACTION_ENTITIES.calculate,"get_calculate_page")}blockResult(t,s,e,i){return I(S({},this.indexResult(t,s)),{block_mapping:e,action:i})}indexResult(t,s){const e=this.indexIdentityKey(t);return!t[e]||!t.object_id||!d(l.ACTION_ENTITIES.index,t[e])?null:{page_index:1,page_size:s,block_mapping:"index",action:"get_index_result_list",where_and:JSON.stringify([[e,"=",t[e]],["object_id","=",t.object_id]]),order_by:"created",order_type:"asc"}}deviationResult(t,s){return this.blockResult(t,s,"deviation","get_deviation_result_list")}stabilityResult(t,s){return this.blockResult(t,s,"stability","get_stability_result_list")}balanceResult(t,s){return this.blockResult(t,s,"balance","get_balance_result_list")}incrementResult(t,s){return this.blockResult(t,s,"increment","get_increment_result_list")}riskResult(t,s){return this.blockResult(t,s,"risk","get_risk_result_list")}isValidPlatformCondition(t){const s=t==null?void 0:t.action;return typeof s=="string"&&s.trim()!==""}applyHistoryObjectResolution(t){const{conf:s,uid:e}=this.props,{common:i}=s,n=i.useAlias||!1,o=i.multiObject||!1,r=sessionStorage.getItem(l.ALIAS_MAPPING_KEY),c=JSON.parse(r||"{}"),a=o?t.object_alias:i.object_alias,p=o?t.object_id:i.object_id;return t.object_id=n?a?c[a]:e:p||e,d(l.ACTION_ENTITIES.object,t.object_id)?!!t.object_id:(delete t.object_id,!1)}mosaicBucketKey(t,s){var e;return`${(e=t.object_id)!=null?e:""}::${s||1}`}fillResponseFromMosaicRows(t,s,e){t.forEach(i=>{const n=s.fv,o="time";e.data.push(i[n]),e.time.push(l.dayjs(i[o]).format("YYYY-MM-DD HH:mm:ss"))})}postMosaicBatchMerged(t,s,e){var a;const i=[],n=new Set;for(const{item:p}of s){const h=p.fv;h&&!n.has(h)&&(n.add(h),i.push(h))}const o=(a=s[0])==null?void 0:a.item,r=o?this.mosaicResult(o,t):null;if(!r||i.length===0){for(const{index:p}of s)e[p]={data:[],time:[]};return Promise.resolve()}const c=I(S({},r),{keys:i});return new Promise(p=>{l.api.platform(h=>{var m,y;const _=(y=(m=h==null?void 0:h.result)==null?void 0:m.data)!=null?y:[];for(const{index:v,item:g}of s){const k={data:[],time:[]};this.fillResponseFromMosaicRows(_,g,k),e[v]=k}p()},c)})}postDataItem(t){var p;const{conf:s}=this.props,{common:e,options:i}=s,n=e.source||"mosaic",o=i.points||1,r={data:[],time:[]};if(!this.applyHistoryObjectResolution(t))return Promise.resolve(r);const c=this[`${n}Result`],a=(p=c==null?void 0:c.call(this,t,o))!=null?p:null;return a==null?Promise.resolve(r):new Promise(h=>{l.api.platform(_=>{(_.result.data.sort((y,v)=>l.dayjs(y.created).valueOf()-l.dayjs(v.created).valueOf())||[]).forEach(y=>{const v=["statistics","calculate"].includes(n)?"data":t.fv,g=["statistics","calculate"].includes(n)?"start_time":"time";r.data.push(y[v]),r.time.push(l.dayjs(y[g]).format("YYYY-MM-DD HH:mm:ss"))}),h(r)},a)})}initHistory(){return f(this,null,function*(){const{data:t,common:s,options:e}=this.props.conf,i=s.source||"mosaic",n=e.points||1;if(i!=="mosaic")return Promise.all(t.map(a=>this.postDataItem(a)));const o=t.length,r=new Array(o),c=new Map;for(let a=0;a<o;a++){const p=t[a];if(!this.applyHistoryObjectResolution(p)){r[a]={data:[],time:[]};continue}if(this.mosaicResult(p,n)==null){r[a]={data:[],time:[]};continue}const _=this.mosaicBucketKey(p,n);let m=c.get(_);m||(m=[],c.set(_,m)),m.push({index:a,item:p})}return yield Promise.all(Array.from(c.values()).map(a=>this.postMosaicBatchMerged(n,a,r))),r})}}class H extends x{constructor(t,s){super(t),this.linkWatchStop=null,this.componentType=s,this.session=b.ref(b.inject("session",null)),this.Style=b.ref({}),this.linkStore=l.useLinkStore()}extractStyles(){return{}}init(){return f(this,null,function*(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),yield this.expandAliasData((t=this.props.conf)==null?void 0:t.data)})}setHistoryData(t){}onPreview(){return f(this,null,function*(){var n;const{common:t,data:s}=this.props.conf,e=this.getSource(),i=yield this.expandAliasData(s);if(this.props.conf.data=i,t.multiObject&&Array.isArray(i)){const o=new Set,r=new Map;(yield Promise.all(i.map(a=>f(this,null,function*(){return{item:a,objectIds:yield this.resolveObjectIds(a)}})))).forEach(({item:a,objectIds:p})=>{p.length>1&&r.set(String((t==null?void 0:t.object_alias)||(a==null?void 0:a.object_alias)||(a==null?void 0:a.alias)||(a==null?void 0:a.object_id)||(a==null?void 0:a.uid)||""),p),p.forEach(h=>{!h||o.has(h)||(o.add(h),this.subscribeBySource(e,h,a.uid))})})}else{const o=yield this.resolveObjectId(),r=(n=i==null?void 0:i[0])==null?void 0:n.uid;this.subscribeBySource(e,o,r)}})}setSocketData(t){if(!t)return;const{data:s}=this.props.conf;!s||!Array.isArray(s)||s.forEach(e=>{try{const i=this.extractDataValue(t,e.fv);e.value=i!=null?i:"--"}catch(i){e.value="--"}})}onLinkEvent(t){}getLinkChannel(){var t;return((t=this.Style.value)==null?void 0:t.linkChannel)||""}publish(t){const s=this.getLinkChannel();if(!s){console.warn(`[${this.componentType}] 未配置联动频道,无法发布事件`);return}this.linkStore.publish(s,this.componentType,t)}shouldHandleEvent(t){return!(!t||this.props.mode==="edit"||t.topic.source===this.componentType)}setupLinkWatch(){this.linkWatchStop&&this.linkWatchStop(),this.linkWatchStop=b.watch(()=>{const t=this.getLinkChannel();return t?this.linkStore.channels[t]:null},t=>{this.shouldHandleEvent(t)&&this.onLinkEvent(t)},{deep:!0,immediate:!0})}stopLinkWatch(){this.linkWatchStop&&(this.linkWatchStop(),this.linkWatchStop=null)}isLocalIotSubscribeMode(){return localStorage.getItem("dashboardUseLocalToken")==="1"||localStorage.getItem("dashboardUseLocalToken")==="true"}subscribe(t,s,e,i){if(!this.session.value){console.warn(`[${this.componentType}] Session 未初始化,无法订阅`);return}const n={event:t,block:s,object_id:e};i&&Object.assign(n,i);const o=this.isLocalIotSubscribeMode()?{action:"sub_event",block_mapping:"mmq",event:n}:{action:"sub_agent_event",event:n},r=this.props.conf.id;this.session.value.componentRequests&&(this.session.value.componentRequests.has(r)||this.session.value.componentRequests.set(r,[]),this.session.value.componentRequests.get(r).push(o)),this.session.value.send({type:"send_message",message:o})}subscribeMmqEvent(t,s,e=""){if(!this.session.value){console.warn(`[${this.componentType}] Session 未初始化,无法订阅`);return}const i={event:t,block:s,object_id:e};e||Reflect.deleteProperty(i,"object_id");const n={action:"sub_event",block_mapping:"mmq",event:i},o=this.props.conf.id;this.session.value.componentRequests&&(this.session.value.componentRequests.has(o)||this.session.value.componentRequests.set(o,[]),this.session.value.componentRequests.get(o).push(n)),this.session.value.send({type:"send_message",message:n})}subscribeFv(t){d(l.ACTION_ENTITIES.object,t)&&this.subscribe("recv_fv","mosaic",t)}subscribeRetainerOpen(t){d(l.ACTION_ENTITIES.object,t)&&this.subscribe("retainer_open","retainer",t)}subscribeRetainerClose(t){d(l.ACTION_ENTITIES.object,t)&&this.subscribe("retainer_close","retainer",t)}subscribeRetainerEvent(t){d(l.ACTION_ENTITIES.object,t)&&this.subscribe("retainer_event","retainer",t)}subscribeRetainer(t){this.subscribeRetainerOpen(t),this.subscribeRetainerClose(t),this.subscribeRetainerEvent(t)}subscribeStatisticsRealtimeResult(t){d(l.ACTION_ENTITIES.object,t)&&this.subscribe("statistics_realtime_result","statistics",t)}subscribeStatistics(t){var e,i;const s=(i=(e=this.props.conf.data)==null?void 0:e[0])==null?void 0:i.uid;d(l.ACTION_ENTITIES.object,t)&&d(l.ACTION_ENTITIES.statistics,s)&&this.subscribeStatisticsWithUid(t,s)}subscribeStatisticsWithUid(t,s){this.subscribe("statistics_result","statistics",t,{uid:s,type:"statistics"})}subscribeCalculate(t){var e,i;const s=(i=(e=this.props.conf.data)==null?void 0:e[0])==null?void 0:i.uid;this.subscribeCalculateWithUid(s)}subscribeCalculateWithUid(t){d(l.ACTION_ENTITIES.calculate,t)&&this.subscribe("statistics_result","statistics","",{uid:t,type:"calculate"})}shouldSkipStatisticsCalculateSocket(t){var i,n,o;const s=(i=this.props.conf)==null?void 0:i.data;if(!Array.isArray(s)||!s.length)return!1;const e=t!=null&&t!==""?(n=s.find(r=>(r==null?void 0:r.uid)===t))==null?void 0:n.periodUnit:(o=s[0])==null?void 0:o.periodUnit;return typeof e=="string"&&e.startsWith("last")}subscribeBySource(t,s,e){switch(t){case"mosaic":this.subscribeFv(s);break;case"statisticsRealtime":this.subscribeStatisticsRealtimeResult(s);break;case"statistics":if(this.shouldSkipStatisticsCalculateSocket(e))return;e?this.subscribeStatisticsWithUid(s,e):this.subscribeStatistics(s);break;case"calculate":if(this.shouldSkipStatisticsCalculateSocket(e))return;e?this.subscribeCalculateWithUid(e):this.subscribeCalculate(s);break;default:console.warn(`[${this.componentType}] 未知的数据源类型: ${t}`)}}extractDataValue(t,s){var e;return!t||!t.event?null:t.event==="recv_fv"&&t.block==="mosaic"?!s||!t.data?null:t.data[s]:t.event==="statistics_realtime_result"&&t.block==="statistics"?(e=t.data)==null?void 0:e.data:t.event==="statistics_result"&&t.block==="statistics"?t.data:null}getOptionValue(t,s){var i,n;const e=(n=(i=this.props.conf)==null?void 0:i.options)==null?void 0:n[t];return e==null?s:typeof e=="object"&&"value"in e?e.value:e}applyTheme(){l.applyThemeStyles(this.props.theme,this.Style.value)}getSource(){var t,s;return((s=(t=this.props.conf)==null?void 0:t.common)==null?void 0:s.source)||"mosaic"}isStatistics(){return["statistics","calculate","statisticsRealtime","calculateRealtime"].includes(this.getSource())}resolveObjectId(t){return f(this,null,function*(){return(yield this.resolveObjectIds(t))[0]||""})}resolveObjectIds(t){return f(this,null,function*(){const{uid:s,conf:e}=this.props,{common:i,data:n}=e,o=t||i||n[0]||{},c=(yield this.expandAliasData([o])).map(a=>String((a==null?void 0:a.object_id)||(a==null?void 0:a.objectid)||s)).filter(Boolean);return c.length>0&&o&&typeof o=="object"&&(o.object_id=c[0],o.objectid=c[0]),c.length>0?c:[String((o==null?void 0:o.object_id)||(o==null?void 0:o.objectid)||"")].filter(Boolean)})}expandAliasData(t){return f(this,null,function*(){var i;const s=Array.isArray(t)?t:[],e=[];for(const n of s){if(!n||typeof n!="object"){e.push(n);continue}const o={common:n,data:[n],options:(i=this.props.conf)==null?void 0:i.options};if(!String(n.object_alias||n.alias||"").trim()){e.push(n);continue}if(!(yield l.loadAliasMappingFromJsonIfNeeded(o))){e.push(n);continue}const c=l.expandAliasItems([n]);c.length>0?e.push(...c):e.push(n)}return e})}handleNull(t,s){return l.handleNullData(t,this.props,s)}getPreviewHelper(){return{preview:()=>R(this.props,this.session.value,t=>this.setHistoryData(t),t=>{let s=t;s.datetime=l.dayjs(s.datetime).format("YYYY-MM-DD HH:mm:ss"),this.setSocketData(s)},this.componentType),unregister:()=>E(this.props,this.session.value)}}getDebouncedInit(){return l.debounce(()=>this.init(),200)}cleanup(){}needsHistoryData(){return!0}setupLifecycle(){const t=this.getDebouncedInit(),s=this.getPreviewHelper();b.onMounted(()=>f(this,null,function*(){var i,n,o,r;const e={common:(i=this.props.conf)==null?void 0:i.common,data:(n=this.props.conf)==null?void 0:n.data,options:(o=this.props.conf)==null?void 0:o.options};if(this.props.mode==="preview"&&(yield l.loadAliasMappingFromJsonIfNeeded(e),Array.isArray((r=this.props.conf)==null?void 0:r.data)&&this.props.conf.data.length&&(this.props.conf.data=yield this.expandAliasData(this.props.conf.data))),yield this.init(),this.props.mode==="preview"){if(this.needsHistoryData())try{const c=yield this.initHistory();this.setHistoryData(c)}catch(c){console.error(`[${this.componentType}] 获取历史数据失败:`,c)}this.session.value&&(this.session.value.unregisterComponent(this.props.conf.id),this.session.value.registerComponent({id:this.props.conf.id,request:null,onUpdate:(c,a)=>{if(c==="realtime"){let p=a;p.datetime=l.dayjs(p.datetime).format("YYYY-MM-DD HH:mm:ss"),this.setSocketData(p)}}})),this.onPreview()}this.setupLinkWatch()})),b.onBeforeUnmount(()=>{this.cleanup(),s.unregister(),this.stopLinkWatch()}),b.watch(()=>this.props.conf,()=>{this.props.mode==="edit"&&t()},{deep:!0}),b.watch(()=>this.props.theme,()=>{this.init()}),b.watch(()=>{var e;return(e=this.Style.value)==null?void 0:e.linkChannel},()=>{this.setupLinkWatch()})}getStyle(){return this.Style}getType(){return this.componentType}dispatchModal(t,s,e){this.props.mode==="preview"&&window.dispatchEvent(new CustomEvent("mix-modal",{detail:{action:t,layerId:s,sheetIndex:e!=null?e:-1}}))}triggerModalByKey(t){var e,i;if(this.props.mode!=="preview")return;const s=(e=this.props.conf)==null?void 0:e.modalBinding;if(s&&s.enabled&&s.mode==="key"){const o=(s.map||{})[t];if(!o||!o.layerId)return;const r=o.action||"toggle",c=(i=s.sheetIndex)!=null?i:-1;this.dispatchModal(r,o.layerId,c)}}}exports.BaseComponent=H;exports.preview=R;exports.unregister=E;
|
|
1
|
+
"use strict";var j=Object.defineProperty,A=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var T=(u,t,s)=>t in u?j(u,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[t]=s,S=(u,t)=>{for(var s in t||(t={}))O.call(t,s)&&T(u,s,t[s]);if(w)for(var s of w(t))D.call(t,s)&&T(u,s,t[s]);return u},I=(u,t)=>A(u,C(t));var f=(u,t,s)=>new Promise((e,i)=>{var n=c=>{try{r(s.next(c))}catch(a){i(a)}},o=c=>{try{r(s.throw(c))}catch(a){i(a)}},r=c=>c.done?e(c.value):Promise.resolve(c.value).then(n,o);r((s=s.apply(u,t)).next())});const b=require("vue"),l=require("./index-BIreWxJ1.cjs"),N=require("element-plus"),R=(u,t,s,e,i)=>f(null,null,function*(){try{const o=yield new(yield Promise.resolve().then(()=>require("./history-BBjpTlVq.cjs"))).default().getHistoryData(u,i);s(o)}catch(n){console.error("获取历史数据时出错:",n)}finally{if(t){const{formatRequest:n}=yield Promise.resolve().then(()=>require("./request-klUbSiSP.cjs")),o=n(u.conf,u.uid,i);t.registerComponent({id:u.conf.id,request:o,onUpdate:(r,c)=>{r==="realtime"&&e(c)}})}}}),E=(u,t)=>{t&&t.unregisterComponent(u.conf.id)};function M(u,t){const s=JSON.parse(sessionStorage.getItem(l.DATA_PERMISSION_KEY)||"{}");if(s.type==="black_list")return s.entities[u]?!s.entities[u].includes(t):!0;if(s.type==="white_list")return s.entities[u]?s.entities[u].includes(t):!1}function d(u,t){return M(u,t)?!0:(N.ElMessage.error(`您没有权限访问 ${t} ,请联系管理员!`),!1)}class x{constructor(t){this.props=t}scriptUid(t){var s;return(s=t.uid)!=null?s:t.fv}indexIdentityKey(t){return t.is_alias?"alias":"uid"}mosaicResult(t,s){return t.fv?{block_mapping:"influxdbproxy",action:"get_mosaic_list",object_id:t.object_id,keys:[t.fv],page_index:1,page_size:s||1,order_by:"created",order_type:"desc"}:null}statisticsListCondition(t,s,e,i){const n=this.scriptUid(t);if(!n||!d(e,n)||!t.periodUnit)return null;const o=l.getStatisticsTimeRange(t.periodUnit,t.periodValue);return{block_mapping:"statistics",action:i,script_uid:n,where_and:JSON.stringify([["object_id","=",t.object_id],["start_time",">=",o[0]],["start_time","<=",o[1]]]),page_size:Number(s)||20,page_index:1,order_by:"created",order_type:"desc"}}statisticsResult(t,s){return this.statisticsListCondition(t,s,l.ACTION_ENTITIES.statistics,"get_statistics_page")}calculateResult(t,s){return this.statisticsListCondition(t,s,l.ACTION_ENTITIES.calculate,"get_calculate_page")}blockResult(t,s,e,i){return I(S({},this.indexResult(t,s)),{block_mapping:e,action:i})}indexResult(t,s){const e=this.indexIdentityKey(t);return!t[e]||!t.object_id||!d(l.ACTION_ENTITIES.index,t[e])?null:{page_index:1,page_size:s,block_mapping:"index",action:"get_index_result_list",where_and:JSON.stringify([[e,"=",t[e]],["object_id","=",t.object_id]]),order_by:"created",order_type:"asc"}}deviationResult(t,s){return this.blockResult(t,s,"deviation","get_deviation_result_list")}stabilityResult(t,s){return this.blockResult(t,s,"stability","get_stability_result_list")}balanceResult(t,s){return this.blockResult(t,s,"balance","get_balance_result_list")}incrementResult(t,s){return this.blockResult(t,s,"increment","get_increment_result_list")}riskResult(t,s){return this.blockResult(t,s,"risk","get_risk_result_list")}isValidPlatformCondition(t){const s=t==null?void 0:t.action;return typeof s=="string"&&s.trim()!==""}applyHistoryObjectResolution(t){const{conf:s,uid:e}=this.props,{common:i}=s,n=i.useAlias||!1,o=i.multiObject||!1,r=sessionStorage.getItem(l.ALIAS_MAPPING_KEY),c=JSON.parse(r||"{}"),a=o?t.object_alias:i.object_alias,p=o?t.object_id:i.object_id;return t.object_id=n?a?c[a]:e:p||e,d(l.ACTION_ENTITIES.object,t.object_id)?!!t.object_id:(delete t.object_id,!1)}mosaicBucketKey(t,s){var e;return`${(e=t.object_id)!=null?e:""}::${s||1}`}fillResponseFromMosaicRows(t,s,e){t.forEach(i=>{const n=s.fv,o="time";e.data.push(i[n]),e.time.push(l.dayjs(i[o]).format("YYYY-MM-DD HH:mm:ss"))})}postMosaicBatchMerged(t,s,e){var a;const i=[],n=new Set;for(const{item:p}of s){const h=p.fv;h&&!n.has(h)&&(n.add(h),i.push(h))}const o=(a=s[0])==null?void 0:a.item,r=o?this.mosaicResult(o,t):null;if(!r||i.length===0){for(const{index:p}of s)e[p]={data:[],time:[]};return Promise.resolve()}const c=I(S({},r),{keys:i});return new Promise(p=>{l.api.platform(h=>{var m,y;const _=(y=(m=h==null?void 0:h.result)==null?void 0:m.data)!=null?y:[];for(const{index:v,item:g}of s){const k={data:[],time:[]};this.fillResponseFromMosaicRows(_,g,k),e[v]=k}p()},c)})}postDataItem(t){var p;const{conf:s}=this.props,{common:e,options:i}=s,n=e.source||"mosaic",o=i.points||1,r={data:[],time:[]};if(!this.applyHistoryObjectResolution(t))return Promise.resolve(r);const c=this[`${n}Result`],a=(p=c==null?void 0:c.call(this,t,o))!=null?p:null;return a==null?Promise.resolve(r):new Promise(h=>{l.api.platform(_=>{(_.result.data.sort((y,v)=>l.dayjs(y.created).valueOf()-l.dayjs(v.created).valueOf())||[]).forEach(y=>{const v=["statistics","calculate"].includes(n)?"data":t.fv,g=["statistics","calculate"].includes(n)?"start_time":"time";r.data.push(y[v]),r.time.push(l.dayjs(y[g]).format("YYYY-MM-DD HH:mm:ss"))}),h(r)},a)})}initHistory(){return f(this,null,function*(){const{data:t,common:s,options:e}=this.props.conf,i=s.source||"mosaic",n=e.points||1;if(i!=="mosaic")return Promise.all(t.map(a=>this.postDataItem(a)));const o=t.length,r=new Array(o),c=new Map;for(let a=0;a<o;a++){const p=t[a];if(!this.applyHistoryObjectResolution(p)){r[a]={data:[],time:[]};continue}if(this.mosaicResult(p,n)==null){r[a]={data:[],time:[]};continue}const _=this.mosaicBucketKey(p,n);let m=c.get(_);m||(m=[],c.set(_,m)),m.push({index:a,item:p})}return yield Promise.all(Array.from(c.values()).map(a=>this.postMosaicBatchMerged(n,a,r))),r})}}class H extends x{constructor(t,s){super(t),this.linkWatchStop=null,this.componentType=s,this.session=b.ref(b.inject("session",null)),this.Style=b.ref({}),this.linkStore=l.useLinkStore()}extractStyles(){return{}}init(){return f(this,null,function*(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),yield this.expandAliasData((t=this.props.conf)==null?void 0:t.data)})}setHistoryData(t){}onPreview(){return f(this,null,function*(){var n;const{common:t,data:s}=this.props.conf,e=this.getSource(),i=yield this.expandAliasData(s);if(this.props.conf.data=i,t.multiObject&&Array.isArray(i)){const o=new Set,r=new Map;(yield Promise.all(i.map(a=>f(this,null,function*(){return{item:a,objectIds:yield this.resolveObjectIds(a)}})))).forEach(({item:a,objectIds:p})=>{p.length>1&&r.set(String((t==null?void 0:t.object_alias)||(a==null?void 0:a.object_alias)||(a==null?void 0:a.alias)||(a==null?void 0:a.object_id)||(a==null?void 0:a.uid)||""),p),p.forEach(h=>{!h||o.has(h)||(o.add(h),this.subscribeBySource(e,h,a.uid))})})}else{const o=yield this.resolveObjectId(),r=(n=i==null?void 0:i[0])==null?void 0:n.uid;this.subscribeBySource(e,o,r)}})}setSocketData(t){if(!t)return;const{data:s}=this.props.conf;!s||!Array.isArray(s)||s.forEach(e=>{try{const i=this.extractDataValue(t,e.fv);e.value=i!=null?i:"--"}catch(i){e.value="--"}})}onLinkEvent(t){}getLinkChannel(){var t;return((t=this.Style.value)==null?void 0:t.linkChannel)||""}publish(t){const s=this.getLinkChannel();if(!s){console.warn(`[${this.componentType}] 未配置联动频道,无法发布事件`);return}this.linkStore.publish(s,this.componentType,t)}shouldHandleEvent(t){return!(!t||this.props.mode==="edit"||t.topic.source===this.componentType)}setupLinkWatch(){this.linkWatchStop&&this.linkWatchStop(),this.linkWatchStop=b.watch(()=>{const t=this.getLinkChannel();return t?this.linkStore.channels[t]:null},t=>{this.shouldHandleEvent(t)&&this.onLinkEvent(t)},{deep:!0,immediate:!0})}stopLinkWatch(){this.linkWatchStop&&(this.linkWatchStop(),this.linkWatchStop=null)}isLocalIotSubscribeMode(){return localStorage.getItem("dashboardUseLocalToken")==="1"||localStorage.getItem("dashboardUseLocalToken")==="true"}subscribe(t,s,e,i){if(!this.session.value){console.warn(`[${this.componentType}] Session 未初始化,无法订阅`);return}const n={event:t,block:s,object_id:e};i&&Object.assign(n,i);const o=this.isLocalIotSubscribeMode()?{action:"sub_event",block_mapping:"mmq",event:n}:{action:"sub_agent_event",event:n},r=this.props.conf.id;this.session.value.componentRequests&&(this.session.value.componentRequests.has(r)||this.session.value.componentRequests.set(r,[]),this.session.value.componentRequests.get(r).push(o)),this.session.value.send({type:"send_message",message:o})}subscribeMmqEvent(t,s,e=""){if(!this.session.value){console.warn(`[${this.componentType}] Session 未初始化,无法订阅`);return}const i={event:t,block:s,object_id:e};e||Reflect.deleteProperty(i,"object_id");const n={action:"sub_event",block_mapping:"mmq",event:i},o=this.props.conf.id;this.session.value.componentRequests&&(this.session.value.componentRequests.has(o)||this.session.value.componentRequests.set(o,[]),this.session.value.componentRequests.get(o).push(n)),this.session.value.send({type:"send_message",message:n})}subscribeFv(t){d(l.ACTION_ENTITIES.object,t)&&this.subscribe("recv_fv","mosaic",t)}subscribeRetainerOpen(t){d(l.ACTION_ENTITIES.object,t)&&this.subscribe("retainer_open","retainer",t)}subscribeRetainerClose(t){d(l.ACTION_ENTITIES.object,t)&&this.subscribe("retainer_close","retainer",t)}subscribeRetainerEvent(t){d(l.ACTION_ENTITIES.object,t)&&this.subscribe("retainer_event","retainer",t)}subscribeRetainer(t){this.subscribeRetainerOpen(t),this.subscribeRetainerClose(t),this.subscribeRetainerEvent(t)}subscribeStatisticsRealtimeResult(t){d(l.ACTION_ENTITIES.object,t)&&this.subscribe("statistics_realtime_result","statistics",t)}subscribeStatistics(t){var e,i;const s=(i=(e=this.props.conf.data)==null?void 0:e[0])==null?void 0:i.uid;d(l.ACTION_ENTITIES.object,t)&&d(l.ACTION_ENTITIES.statistics,s)&&this.subscribeStatisticsWithUid(t,s)}subscribeStatisticsWithUid(t,s){this.subscribe("statistics_result","statistics",t,{uid:s,type:"statistics"})}subscribeCalculate(t){var e,i;const s=(i=(e=this.props.conf.data)==null?void 0:e[0])==null?void 0:i.uid;this.subscribeCalculateWithUid(s)}subscribeCalculateWithUid(t){d(l.ACTION_ENTITIES.calculate,t)&&this.subscribe("statistics_result","statistics","",{uid:t,type:"calculate"})}shouldSkipStatisticsCalculateSocket(t){var i,n,o;const s=(i=this.props.conf)==null?void 0:i.data;if(!Array.isArray(s)||!s.length)return!1;const e=t!=null&&t!==""?(n=s.find(r=>(r==null?void 0:r.uid)===t))==null?void 0:n.periodUnit:(o=s[0])==null?void 0:o.periodUnit;return typeof e=="string"&&e.startsWith("last")}subscribeBySource(t,s,e){switch(t){case"mosaic":this.subscribeFv(s);break;case"statisticsRealtime":this.subscribeStatisticsRealtimeResult(s);break;case"statistics":if(this.shouldSkipStatisticsCalculateSocket(e))return;e?this.subscribeStatisticsWithUid(s,e):this.subscribeStatistics(s);break;case"calculate":if(this.shouldSkipStatisticsCalculateSocket(e))return;e?this.subscribeCalculateWithUid(e):this.subscribeCalculate(s);break;default:console.warn(`[${this.componentType}] 未知的数据源类型: ${t}`)}}extractDataValue(t,s){var e;return!t||!t.event?null:t.event==="recv_fv"&&t.block==="mosaic"?!s||!t.data?null:t.data[s]:t.event==="statistics_realtime_result"&&t.block==="statistics"?(e=t.data)==null?void 0:e.data:t.event==="statistics_result"&&t.block==="statistics"?t.data:null}getOptionValue(t,s){var i,n;const e=(n=(i=this.props.conf)==null?void 0:i.options)==null?void 0:n[t];return e==null?s:typeof e=="object"&&"value"in e?e.value:e}applyTheme(){l.applyThemeStyles(this.props.theme,this.Style.value)}getSource(){var t,s;return((s=(t=this.props.conf)==null?void 0:t.common)==null?void 0:s.source)||"mosaic"}isStatistics(){return["statistics","calculate","statisticsRealtime","calculateRealtime"].includes(this.getSource())}resolveObjectId(t){return f(this,null,function*(){return(yield this.resolveObjectIds(t))[0]||""})}resolveObjectIds(t){return f(this,null,function*(){const{uid:s,conf:e}=this.props,{common:i,data:n}=e,o=t||i||n[0]||{},c=(yield this.expandAliasData([o])).map(a=>String((a==null?void 0:a.object_id)||(a==null?void 0:a.objectid)||s)).filter(Boolean);return c.length>0&&o&&typeof o=="object"&&(o.object_id=c[0],o.objectid=c[0]),c.length>0?c:[String((o==null?void 0:o.object_id)||(o==null?void 0:o.objectid)||"")].filter(Boolean)})}expandAliasData(t){return f(this,null,function*(){var i;const s=Array.isArray(t)?t:[],e=[];for(const n of s){if(!n||typeof n!="object"){e.push(n);continue}const o={common:n,data:[n],options:(i=this.props.conf)==null?void 0:i.options};if(!String(n.object_alias||n.alias||"").trim()){e.push(n);continue}if(!(yield l.loadAliasMappingFromJsonIfNeeded(o))){e.push(n);continue}const c=l.expandAliasItems([n]);c.length>0?e.push(...c):e.push(n)}return e})}handleNull(t,s){return l.handleNullData(t,this.props,s)}getPreviewHelper(){return{preview:()=>R(this.props,this.session.value,t=>this.setHistoryData(t),t=>{let s=t;s.datetime=l.dayjs(s.datetime).format("YYYY-MM-DD HH:mm:ss"),this.setSocketData(s)},this.componentType),unregister:()=>E(this.props,this.session.value)}}getDebouncedInit(){return l.debounce(()=>this.init(),200)}cleanup(){}needsHistoryData(){return!0}setupLifecycle(){const t=this.getDebouncedInit(),s=this.getPreviewHelper();b.onMounted(()=>f(this,null,function*(){var i,n,o,r;const e={common:(i=this.props.conf)==null?void 0:i.common,data:(n=this.props.conf)==null?void 0:n.data,options:(o=this.props.conf)==null?void 0:o.options};if(this.props.mode==="preview"&&(yield l.loadAliasMappingFromJsonIfNeeded(e),Array.isArray((r=this.props.conf)==null?void 0:r.data)&&this.props.conf.data.length&&(this.props.conf.data=yield this.expandAliasData(this.props.conf.data))),yield this.init(),this.props.mode==="preview"){if(this.needsHistoryData())try{const c=yield this.initHistory();this.setHistoryData(c)}catch(c){console.error(`[${this.componentType}] 获取历史数据失败:`,c)}this.session.value&&(this.session.value.unregisterComponent(this.props.conf.id),this.session.value.registerComponent({id:this.props.conf.id,request:null,onUpdate:(c,a)=>{if(c==="realtime"){let p=a;p.datetime=l.dayjs(p.datetime).format("YYYY-MM-DD HH:mm:ss"),this.setSocketData(p)}}})),this.onPreview()}this.setupLinkWatch()})),b.onBeforeUnmount(()=>{this.cleanup(),s.unregister(),this.stopLinkWatch()}),b.watch(()=>this.props.conf,()=>{this.props.mode==="edit"&&t()},{deep:!0}),b.watch(()=>this.props.theme,()=>{this.init()}),b.watch(()=>{var e;return(e=this.Style.value)==null?void 0:e.linkChannel},()=>{this.setupLinkWatch()})}getStyle(){return this.Style}getType(){return this.componentType}dispatchModal(t,s,e){this.props.mode==="preview"&&window.dispatchEvent(new CustomEvent("mix-modal",{detail:{action:t,layerId:s,sheetIndex:e!=null?e:-1}}))}triggerModalByKey(t){var e,i;if(this.props.mode!=="preview")return;const s=(e=this.props.conf)==null?void 0:e.modalBinding;if(s&&s.enabled&&s.mode==="key"){const o=(s.map||{})[t];if(!o||!o.layerId)return;const r=o.action||"toggle",c=(i=s.sheetIndex)!=null?i:-1;this.dispatchModal(r,o.layerId,c)}}}exports.BaseComponent=H;exports.preview=R;exports.unregister=E;
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
var d = (s, t, e) => new Promise((r, n) => {
|
|
2
|
+
var o = (a) => {
|
|
3
|
+
try {
|
|
4
|
+
i(e.next(a));
|
|
5
|
+
} catch (h) {
|
|
6
|
+
n(h);
|
|
7
|
+
}
|
|
8
|
+
}, c = (a) => {
|
|
9
|
+
try {
|
|
10
|
+
i(e.throw(a));
|
|
11
|
+
} catch (h) {
|
|
12
|
+
n(h);
|
|
13
|
+
}
|
|
14
|
+
}, i = (a) => a.done ? r(a.value) : Promise.resolve(a.value).then(o, c);
|
|
15
|
+
i((e = e.apply(s, t)).next());
|
|
16
|
+
});
|
|
17
|
+
import { nextTick as f, inject as m, watch as C } from "vue";
|
|
18
|
+
import { B as g } from "./BaseComponent-C35H9oDS.js";
|
|
19
|
+
import { I as p, J as O, K as y, L as b } from "./index-CzzMcaIY.js";
|
|
20
|
+
import { i as D, d as R } from "./echarts-Bp7QN4X6.js";
|
|
21
|
+
const l = (s) => s.isConnected && s.offsetWidth > 0 && s.offsetHeight > 0;
|
|
22
|
+
function j(s, t) {
|
|
23
|
+
let e = !1, r = null;
|
|
24
|
+
const n = () => {
|
|
25
|
+
if (e) return !0;
|
|
26
|
+
const i = document.getElementById(s);
|
|
27
|
+
return !i || !l(i) ? !1 : (t(i), !0);
|
|
28
|
+
}, o = (i) => {
|
|
29
|
+
r = p({ strategy: "scroll" });
|
|
30
|
+
const a = () => {
|
|
31
|
+
if (n() && r) {
|
|
32
|
+
try {
|
|
33
|
+
r.uninstall(i);
|
|
34
|
+
} catch (h) {
|
|
35
|
+
}
|
|
36
|
+
r = null;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
r.listenTo(i, a);
|
|
40
|
+
for (let h = i.parentElement, u = 0; h && u < 4; u++, h = h.parentElement)
|
|
41
|
+
r.listenTo(h, a);
|
|
42
|
+
a();
|
|
43
|
+
}, c = (i = 0) => {
|
|
44
|
+
if (!n())
|
|
45
|
+
if (i < 120) requestAnimationFrame(() => c(i + 1));
|
|
46
|
+
else {
|
|
47
|
+
const a = document.getElementById(s);
|
|
48
|
+
a && o(a);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
return c(), () => {
|
|
52
|
+
if (e = !0, r) {
|
|
53
|
+
const i = document.getElementById(s);
|
|
54
|
+
if (i)
|
|
55
|
+
try {
|
|
56
|
+
r.uninstall(i);
|
|
57
|
+
} catch (a) {
|
|
58
|
+
}
|
|
59
|
+
r = null;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
class x extends g {
|
|
64
|
+
constructor(t, e) {
|
|
65
|
+
super(t, e), this.chartObj = null, this.erd = null, this.cancelDomWait = null, this.chartReady = null, this.hadValidSize = !1, this.echartId = `${e}_${Math.random().toString(16).slice(4, 12)}`;
|
|
66
|
+
}
|
|
67
|
+
// ==================== 可覆盖方法 ====================
|
|
68
|
+
/**
|
|
69
|
+
* 获取 ECharts option 配置
|
|
70
|
+
* 子类可覆盖,返回完整的 ECharts option 对象
|
|
71
|
+
*/
|
|
72
|
+
getChartOption() {
|
|
73
|
+
return {};
|
|
74
|
+
}
|
|
75
|
+
// ==================== 公共方法 ====================
|
|
76
|
+
/**
|
|
77
|
+
* 初始化组件
|
|
78
|
+
*/
|
|
79
|
+
init() {
|
|
80
|
+
return d(this, null, function* () {
|
|
81
|
+
this.Style.value = this.extractStyles(), this.applyTheme(), this.ensureData(), yield f(), yield this.ensureChartReady();
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* 提取样式配置(子类可扩展)
|
|
86
|
+
*/
|
|
87
|
+
extractStyles() {
|
|
88
|
+
return {
|
|
89
|
+
bgColor: this.getOptionValue("bgColor", "#fff"),
|
|
90
|
+
titleColor: this.getOptionValue("titleColor", "#111"),
|
|
91
|
+
textColor: this.getOptionValue("textColor", "#111"),
|
|
92
|
+
radiusSize: this.getOptionValue("radiusSize", 8),
|
|
93
|
+
textSize: this.getOptionValue("textSize", 12),
|
|
94
|
+
isHideTitle: this.getOptionValue("isHideTitle", !1),
|
|
95
|
+
top: this.getOptionValue("top", 30),
|
|
96
|
+
bottom: this.getOptionValue("bottom", 40),
|
|
97
|
+
left: this.getOptionValue("left", 40),
|
|
98
|
+
right: this.getOptionValue("right", 20),
|
|
99
|
+
points: this.getOptionValue("points", 10)
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* 确保有默认数据
|
|
104
|
+
*/
|
|
105
|
+
ensureData() {
|
|
106
|
+
var t;
|
|
107
|
+
(t = this.props.conf.data) != null && t.length || (this.props.conf.data = this.getDefaultData());
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* 获取默认数据(子类可覆盖)
|
|
111
|
+
*/
|
|
112
|
+
getDefaultData() {
|
|
113
|
+
return [{ name: "参数一", fv: "", color: "#4162ff" }];
|
|
114
|
+
}
|
|
115
|
+
/** 获取图表容器 DOM(模板中 :id="echartId") */
|
|
116
|
+
getChartDom() {
|
|
117
|
+
const t = document.getElementById(this.echartId);
|
|
118
|
+
return t instanceof HTMLElement ? t : null;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* 等待有效 DOM 并完成 ECharts 初始化
|
|
122
|
+
* init() 内须 await,否则 onMounted 中 initHistory → setHistoryData 时 chartObj 仍为 null
|
|
123
|
+
*/
|
|
124
|
+
ensureChartReady() {
|
|
125
|
+
return this.chartReady ? this.chartReady : (this.chartReady = new Promise((t) => {
|
|
126
|
+
var n;
|
|
127
|
+
const e = () => {
|
|
128
|
+
this.chartReady = null, t();
|
|
129
|
+
}, r = this.getChartDom();
|
|
130
|
+
if (r && l(r)) {
|
|
131
|
+
this.mountChart(r), e();
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
(n = this.cancelDomWait) == null || n.call(this), this.cancelDomWait = j(this.echartId, (o) => {
|
|
135
|
+
this.mountChart(o), e();
|
|
136
|
+
});
|
|
137
|
+
}), this.chartReady);
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* 绑定容器尺寸监听(mountChart / 子类 setupResizeListener 共用)
|
|
141
|
+
*/
|
|
142
|
+
bindChartResize(t) {
|
|
143
|
+
this.erd || (this.hadValidSize = l(t), this.erd = p({ strategy: "scroll" }), this.erd.listenTo(t, () => {
|
|
144
|
+
!this.chartObj || !l(t) || (this.chartObj.resize(), this.hadValidSize || (this.hadValidSize = !0, this.applyChartOption(!0)));
|
|
145
|
+
}));
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* 在有效尺寸的容器上创建实例并 setOption
|
|
149
|
+
*/
|
|
150
|
+
mountChart(t) {
|
|
151
|
+
l(t) && (this.chartObj || (this.chartObj = D(t), this.bindChartResize(t)), this.applyChartOption(!0));
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* 初始化 ECharts 实例(子类可覆盖;兼容旧调用,内部仍等 DOM 有效尺寸)
|
|
155
|
+
*/
|
|
156
|
+
initChart(t) {
|
|
157
|
+
const e = t != null ? t : this.getChartDom();
|
|
158
|
+
if (!e || !l(e)) {
|
|
159
|
+
this.ensureChartReady();
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
this.mountChart(e);
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* 设置尺寸监听(子类在自定义 init 后调用;mountChart 已绑定则跳过)
|
|
166
|
+
*/
|
|
167
|
+
setupResizeListener(t) {
|
|
168
|
+
!this.chartObj || !l(t) || this.bindChartResize(t);
|
|
169
|
+
}
|
|
170
|
+
/** 写入 option 并 resize */
|
|
171
|
+
applyChartOption(t = !0) {
|
|
172
|
+
if (!this.chartObj) return;
|
|
173
|
+
const e = this.getChartDom();
|
|
174
|
+
e && !l(e) || (this.chartObj.setOption(this.getChartOption(), t), this.chartObj.resize());
|
|
175
|
+
}
|
|
176
|
+
/** 预览壳布局 tick 变化时重绘 */
|
|
177
|
+
repaintChart() {
|
|
178
|
+
this.ensureChartReady().then(() => this.applyChartOption(!0));
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* 是否有数据源配置
|
|
182
|
+
*/
|
|
183
|
+
hasData() {
|
|
184
|
+
return O(this.props.conf);
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* 获取时间轴数据
|
|
188
|
+
*/
|
|
189
|
+
getTimeAxis() {
|
|
190
|
+
return y(
|
|
191
|
+
this.Style.value.points,
|
|
192
|
+
this.props.mode,
|
|
193
|
+
this.hasData()
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* 更新图表
|
|
198
|
+
*/
|
|
199
|
+
updateChart(t) {
|
|
200
|
+
this.ensureChartReady().then(() => {
|
|
201
|
+
this.chartObj && (this.chartObj.setOption(t), this.chartObj.resize());
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* 清理资源
|
|
206
|
+
*/
|
|
207
|
+
cleanup() {
|
|
208
|
+
var e;
|
|
209
|
+
(e = this.cancelDomWait) == null || e.call(this), this.cancelDomWait = null, this.chartReady = null, this.hadValidSize = !1;
|
|
210
|
+
const t = this.getChartDom();
|
|
211
|
+
if (this.erd && t) {
|
|
212
|
+
try {
|
|
213
|
+
this.erd.uninstall(t);
|
|
214
|
+
} catch (r) {
|
|
215
|
+
}
|
|
216
|
+
this.erd = null;
|
|
217
|
+
}
|
|
218
|
+
this.chartObj && (this.chartObj.clear(), R(this.chartObj), this.chartObj = null);
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* 设置 Vue 生命周期钩子(并订阅预览壳布局 tick)
|
|
222
|
+
*/
|
|
223
|
+
setupLifecycle() {
|
|
224
|
+
const t = m(b, null);
|
|
225
|
+
t && C(t, () => this.repaintChart()), super.setupLifecycle();
|
|
226
|
+
}
|
|
227
|
+
// ==================== Getter ====================
|
|
228
|
+
/** 获取 echartId(供模板使用) */
|
|
229
|
+
getEchartId() {
|
|
230
|
+
return this.echartId;
|
|
231
|
+
}
|
|
232
|
+
/** 获取 ECharts 实例 */
|
|
233
|
+
getChartInstance() {
|
|
234
|
+
return this.chartObj;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
export {
|
|
238
|
+
x as E
|
|
239
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var f=(a,t,e)=>new Promise((r,n)=>{var o=s=>{try{i(e.next(s))}catch(h){n(h)}},u=s=>{try{i(e.throw(s))}catch(h){n(h)}},i=s=>s.done?r(s.value):Promise.resolve(s.value).then(o,u);i((e=e.apply(a,t)).next())});const d=require("vue"),g=require("./BaseComponent-DWgC36nL.cjs"),c=require("./index-BIreWxJ1.cjs"),C=require("./echarts-BB8O2KSA.cjs"),l=a=>a.isConnected&&a.offsetWidth>0&&a.offsetHeight>0;function O(a,t){let e=!1,r=null;const n=()=>{if(e)return!0;const i=document.getElementById(a);return!i||!l(i)?!1:(t(i),!0)},o=i=>{r=c.elementResizeDetectorMaker({strategy:"scroll"});const s=()=>{if(n()&&r){try{r.uninstall(i)}catch(h){}r=null}};r.listenTo(i,s);for(let h=i.parentElement,p=0;h&&p<4;p++,h=h.parentElement)r.listenTo(h,s);s()},u=(i=0)=>{if(!n())if(i<120)requestAnimationFrame(()=>u(i+1));else{const s=document.getElementById(a);s&&o(s)}};return u(),()=>{if(e=!0,r){const i=document.getElementById(a);if(i)try{r.uninstall(i)}catch(s){}r=null}}}class m extends g.BaseComponent{constructor(t,e){super(t,e),this.chartObj=null,this.erd=null,this.cancelDomWait=null,this.chartReady=null,this.hadValidSize=!1,this.echartId=`${e}_${Math.random().toString(16).slice(4,12)}`}getChartOption(){return{}}init(){return f(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),yield d.nextTick(),yield this.ensureChartReady()})}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",30),bottom:this.getOptionValue("bottom",40),left:this.getOptionValue("left",40),right:this.getOptionValue("right",20),points:this.getOptionValue("points",10)}}ensureData(){var t;(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=this.getDefaultData())}getDefaultData(){return[{name:"参数一",fv:"",color:"#4162ff"}]}getChartDom(){const t=document.getElementById(this.echartId);return t instanceof HTMLElement?t:null}ensureChartReady(){return this.chartReady?this.chartReady:(this.chartReady=new Promise(t=>{var n;const e=()=>{this.chartReady=null,t()},r=this.getChartDom();if(r&&l(r)){this.mountChart(r),e();return}(n=this.cancelDomWait)==null||n.call(this),this.cancelDomWait=O(this.echartId,o=>{this.mountChart(o),e()})}),this.chartReady)}bindChartResize(t){this.erd||(this.hadValidSize=l(t),this.erd=c.elementResizeDetectorMaker({strategy:"scroll"}),this.erd.listenTo(t,()=>{!this.chartObj||!l(t)||(this.chartObj.resize(),this.hadValidSize||(this.hadValidSize=!0,this.applyChartOption(!0)))}))}mountChart(t){l(t)&&(this.chartObj||(this.chartObj=C.init(t),this.bindChartResize(t)),this.applyChartOption(!0))}initChart(t){const e=t!=null?t:this.getChartDom();if(!e||!l(e)){this.ensureChartReady();return}this.mountChart(e)}setupResizeListener(t){!this.chartObj||!l(t)||this.bindChartResize(t)}applyChartOption(t=!0){if(!this.chartObj)return;const e=this.getChartDom();e&&!l(e)||(this.chartObj.setOption(this.getChartOption(),t),this.chartObj.resize())}repaintChart(){this.ensureChartReady().then(()=>this.applyChartOption(!0))}hasData(){return c.hasDataSource(this.props.conf)}getTimeAxis(){return c.getxAxisDataTime(this.Style.value.points,this.props.mode,this.hasData())}updateChart(t){this.ensureChartReady().then(()=>{this.chartObj&&(this.chartObj.setOption(t),this.chartObj.resize())})}cleanup(){var e;(e=this.cancelDomWait)==null||e.call(this),this.cancelDomWait=null,this.chartReady=null,this.hadValidSize=!1;const t=this.getChartDom();if(this.erd&&t){try{this.erd.uninstall(t)}catch(r){}this.erd=null}this.chartObj&&(this.chartObj.clear(),C.dispose(this.chartObj),this.chartObj=null)}setupLifecycle(){const t=d.inject(c.MIX_PREVIEW_LAYOUT_KEY,null);t&&d.watch(t,()=>this.repaintChart()),super.setupLifecycle()}getEchartId(){return this.echartId}getChartInstance(){return this.chartObj}}exports.EChartComponentBase=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),V=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),V=require("./index-BIreWxJ1.cjs"),w={class:"lw-panel-section lw-plan-section"},g={class:"lw-plan-toolbar"},b=["disabled"],y={class:"lw-plan-table"},k={class:"lw-step-no"},x=["onClick"],S={key:0},C=e.defineComponent({__name:"EmergencyPlanPanel",props:{plans:{},currentPlan:{},execution:{}},emits:["select-plan","start-plan","report-warning","complete-step"],setup(o,{emit:m}){var u,d;const a=o,i=m,s=e.ref(String((d=(u=a.currentPlan)==null?void 0:u.warningLevel)!=null?d:4)),r=e.computed(()=>{const n=parseInt(s.value);return a.plans.find(t=>t.warningLevel===n)||null}),c=e.computed(()=>{var n;return a.execution.status!=="idle"&&a.execution.steps.length>0?a.execution.steps:((n=r.value)==null?void 0:n.steps)||[]}),p=e.computed(()=>{const n=a.execution.status;return n==="running"?"lw-status-running":n==="completed"?"lw-status-done":"lw-status-idle"}),E=e.computed(()=>({idle:"未启动",running:"预案进行中",completed:"已完成",aborted:"已中止"})[a.execution.status]||"未启动");function N(){r.value&&i("select-plan",r.value)}function v(n){a.execution.status==="running"&&n.status==="pending"&&i("complete-step",n)}return e.watch(()=>a.currentPlan,n=>{n&&(s.value=String(n.warningLevel))}),(n,t)=>(e.openBlock(),e.createElementBlock("div",w,[t[7]||(t[7]=e.createElementVNode("div",{class:"lw-panel-header"},[e.createElementVNode("span",{class:"lw-panel-title"},"应急预案")],-1)),e.createElementVNode("div",g,[t[4]||(t[4]=e.createElementVNode("span",{class:"lw-plan-label"},"预案执行步骤",-1)),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":t[0]||(t[0]=l=>s.value=l),class:"lw-select lw-select-sm",onChange:N},[...t[3]||(t[3]=[e.createElementVNode("option",{value:"4"},"Ⅳ级预警",-1),e.createElementVNode("option",{value:"3"},"Ⅲ级预警",-1),e.createElementVNode("option",{value:"2"},"Ⅱ级预警",-1),e.createElementVNode("option",{value:"1"},"Ⅰ级预警",-1)])],544),[[e.vModelSelect,s.value]]),e.createElementVNode("span",{class:e.normalizeClass(["lw-plan-status",p.value])},e.toDisplayString(E.value),3),e.createElementVNode("button",{class:"lw-btn-primary lw-btn-sm",disabled:o.execution.status==="running",onClick:t[1]||(t[1]=l=>n.$emit("start-plan"))},e.toDisplayString(o.execution.status==="running"?"预案进行中":"启动预案"),9,b),e.createElementVNode("button",{class:"lw-btn-primary lw-btn-sm lw-btn-warn",onClick:t[2]||(t[2]=l=>n.$emit("report-warning"))},"报告预警情况")]),e.createElementVNode("div",y,[e.createElementVNode("table",null,[t[6]||(t[6]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",null,"#"),e.createElementVNode("th",null,"步骤"),e.createElementVNode("th",null,"责任人"),e.createElementVNode("th",null,"时限"),e.createElementVNode("th",null,"状态")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,l=>(e.openBlock(),e.createElementBlock("tr",{key:l.stepId},[e.createElementVNode("td",k,e.toDisplayString(l.stepNo),1),e.createElementVNode("td",null,e.toDisplayString(l.stepName),1),e.createElementVNode("td",null,e.toDisplayString(l.responsibleName),1),e.createElementVNode("td",null,e.toDisplayString(l.timeLimitDisplay),1),e.createElementVNode("td",null,[e.createElementVNode("span",{class:e.normalizeClass(["lw-step-status","lw-step-"+l.status]),onClick:P=>v(l)},e.toDisplayString(l.statusText),11,x)])]))),128)),c.value.length===0?(e.openBlock(),e.createElementBlock("tr",S,[...t[5]||(t[5]=[e.createElementVNode("td",{colspan:"5",class:"lw-no-data"},"该等级暂无预案",-1)])])):e.createCommentVNode("",!0)])])])]))}}),f=V._export_sfc(C,[["__scopeId","data-v-2e51d84b"]]);exports.EmergencyPlanPanel=f;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as k, ref as P, computed as i, watch as S, openBlock as u, createElementBlock as r, createElementVNode as t, withDirectives as L, vModelSelect as h, normalizeClass as g, toDisplayString as a, Fragment as E, renderList as N, createCommentVNode as $ } from "vue";
|
|
2
|
-
import { _ as D } from "./index-
|
|
2
|
+
import { _ as D } from "./index-CzzMcaIY.js";
|
|
3
3
|
const I = { class: "lw-panel-section lw-plan-section" }, V = { class: "lw-plan-toolbar" }, _ = ["disabled"], B = { class: "lw-plan-table" }, T = { class: "lw-step-no" }, z = ["onClick"], F = { key: 0 }, M = /* @__PURE__ */ k({
|
|
4
4
|
__name: "EmergencyPlanPanel",
|
|
5
5
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var A=Object.defineProperty,z=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var O=(o,p,c)=>p in o?A(o,p,{enumerable:!0,configurable:!0,writable:!0,value:c}):o[p]=c,B=(o,p)=>{for(var c in p||(p={}))j.call(p,c)&&O(o,c,p[c]);if(C)for(var c of C(p))R.call(p,c)&&O(o,c,p[c]);return o},w=(o,p)=>z(o,W(p));var L=(o,p)=>{var c={};for(var m in o)j.call(o,m)&&p.indexOf(m)<0&&(c[m]=o[m]);if(o!=null&&C)for(var m of C(o))p.indexOf(m)<0&&R.call(o,m)&&(c[m]=o[m]);return c};const e=require("vue"),D=require("./index-CvzbO-py.cjs"),q={class:"lw-panel-section"},H={class:"lw-panel-header"},J={class:"lw-panel-actions"},G={class:"lw-warning-table"},Y=["onClick"],Z={key:0},K=e.defineComponent({__name:"WarningOverviewPanel",props:{warnings:{},currentWarning:{},levelColors:{}},emits:["select-warning","manage-plans","history-plans"],setup(o){const p=o,c={1:"#e74c3c",2:"#ff6600",3:"#f39c12",4:"#3498db"};function m(u){var d;return((d=p.levelColors)==null?void 0:d[u])||c[u]||"#999"}function k(u){if(!u)return"--";const d=u.match(/(\d{2}:\d{2}:\d{2})$/);return d?d[1]:u}return(u,d)=>(e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("div",H,[d[2]||(d[2]=e.createElementVNode("span",{class:"lw-panel-title"},"预警数据概览",-1)),e.createElementVNode("div",J,[e.createElementVNode("button",{class:"lw-btn-outline",onClick:d[0]||(d[0]=a=>u.$emit("manage-plans"))},"应急预案库管理"),e.createElementVNode("button",{class:"lw-btn-outline",onClick:d[1]||(d[1]=a=>u.$emit("history-plans"))},"历史应急预案")])]),e.createElementVNode("div",G,[e.createElementVNode("table",null,[d[4]||(d[4]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",null,"预警等级"),e.createElementVNode("th",null,"预警区域"),e.createElementVNode("th",null,"触发时间"),e.createElementVNode("th",null,"最近人员和设备编号"),e.createElementVNode("th",null,"与预警区距离")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.warnings,a=>{var g,_;return e.openBlock(),e.createElementBlock("tr",{key:a.warningId,class:e.normalizeClass({"lw-row-active":((g=o.currentWarning)==null?void 0:g.warningId)===a.warningId}),onClick:y=>u.$emit("select-warning",a)},[e.createElementVNode("td",null,[e.createElementVNode("span",{class:"lw-level-badge",style:e.normalizeStyle({color:m(a.warningLevel)})},e.toDisplayString(a.warningLevelName),5)]),e.createElementVNode("td",null,e.toDisplayString(a.regionName),1),e.createElementVNode("td",null,e.toDisplayString(k(a.triggerTime)),1),e.createElementVNode("td",null,e.toDisplayString(((_=a.nearestObject)==null?void 0:_.objectName)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(a.nearestObject?`${a.nearestObject.distance} ${a.nearestObject.unit}`:"--"),1)],10,Y)}),128)),o.warnings.length===0?(e.openBlock(),e.createElementBlock("tr",Z,[...d[3]||(d[3]=[e.createElementVNode("td",{colspan:"5",class:"lw-no-data"},"暂无预警数据",-1)])])):e.createCommentVNode("",!0)])])])]))}}),Q=D._export_sfc(K,[["__scopeId","data-v-68afecd8"]]),X={class:"pld-body"},ee={class:"pld-tabs"},te=["onClick"],ne={class:"pld-level-tabs"},le=["onClick"],oe={class:"pld-step-list"},se=["onUpdate:modelValue"],ae={class:"pld-step-no"},ie=["onUpdate:modelValue"],ce=["onUpdate:modelValue"],de=["onUpdate:modelValue"],re={key:0,class:"pld-empty"},pe={class:"pld-actions"},me=["disabled"],ue={key:1,class:"pld-ai"},ve={class:"pld-ai-grid"},Ee={class:"pld-ai-card"},Ne={class:"pld-ai-card-value"},he={class:"pld-ai-card"},ge={class:"pld-ai-card-value"},Ve={class:"pld-ai-card"},be={class:"pld-ai-card-value"},_e={class:"pld-ai-card"},ke={class:"pld-ai-card-value"},ye={class:"pld-ai-info"},fe={class:"pld-ai-roster"},$e={class:"pld-footer"},Se={key:0,class:"pld-dirty-hint"},Ce=e.defineComponent({__name:"PlanLibraryDialog",props:{visible:{type:Boolean},plans:{},mobileObjects:{default:()=>[]},currentWarning:{default:null}},emits:["close","update:plans"],setup(o,{emit:p}){const c=o,m=p,k=[{label:"步骤配置",value:"steps"},{label:"智能预警预案",value:"ai"}],u=[{label:"Ⅰ级预警",value:1},{label:"Ⅱ级预警",value:2},{label:"Ⅲ级预警",value:3},{label:"Ⅳ级预警",value:4}],d=e.ref("steps"),a=e.ref(4),g=e.ref([]),_=e.ref("");e.watch(()=>c.visible,i=>{if(i){const t=JSON.stringify(c.plans);g.value=JSON.parse(t),_.value=t}},{immediate:!0});const y=e.computed(()=>{if(!c.visible)return!1;const i=g.value.map(t=>w(B({},t),{steps:t.steps.map(s=>{const h=s,{__checked:N}=h;return L(h,["__checked"])})}));return JSON.stringify(i)!==_.value});function $(i){const t=g.value.find(N=>N.warningLevel===i);if(t)return t;const s={planId:`PLAN_L${i}_NEW`,planName:"Ⅰ/Ⅱ/Ⅲ/Ⅳ 级预警预案".split("/")[i-1]+"预警预案",warningLevel:i,applicableRegionIds:[],status:"enabled",steps:[]};return g.value.push(s),s}const S=e.computed(()=>$(a.value).steps),n=e.computed(()=>S.value.some(i=>i.__checked));function l(){const i=$(a.value),t=String(i.steps.length+1).padStart(2,"0"),s={stepId:`STEP_L${a.value}_${Date.now()}`,stepNo:t,stepName:"",responsibleName:"",responsibleRole:"manual",timeLimitMinutes:0,timeLimitDisplay:"",status:"pending",statusText:"待启动"};i.steps.push(s)}function r(){const i=$(a.value);i.steps=i.steps.filter(t=>!t.__checked)}const v={1:"立即响应",2:"10 分钟内",3:"20 分钟内",4:"30 分钟内"},E={1:"预警区方圆 1000 米",2:"预警区方圆 600 米",3:"预警区方圆 400 米",4:"预警区方圆 300 米"},T={1:"值班调度员 4 人、现场安全员 6 人、机动疏导人员 12 人",2:"值班调度员 3 人、现场安全员 4 人、机动疏导人员 8 人",3:"值班调度员 2 人、现场安全员 3 人、机动疏导人员 6 人",4:"值班调度员 2 人、现场安全员 2 人、机动疏导人员 4 人"},f=e.computed(()=>{const i=a.value,t=["Ⅰ","Ⅱ","Ⅲ","Ⅳ"][i-1]||"Ⅳ",s=c.mobileObjects.filter(b=>b.status==="in_warning_area"||b.status==="near_warning_area"),N={};s.forEach(b=>{N[b.objectType]=(N[b.objectType]||0)+1});const V={excavator:"挖机",truck:"卡车",drone:"无人机",person:"人员"},h=Object.entries(N).filter(([b])=>b!=="person").map(([b,F])=>`${V[b]||b} ${F} 台`),P=h.length>0?h.join("、"):"无",M=h.length<=2?"低风险区间":h.length<=4?"中风险区间":"高风险区间",U=h.length>0?`当前预警区内共识别 ${h.join("、")},设备数量处于${M},系统自动匹配 ${t} 级预警。`:`当前预警区内未识别到设备,系统保持 ${t} 级预警基线响应。`;return{levelText:`${t}级预警`,responseTime:v[i]||"30 分钟内",responseRange:E[i]||"预警区方圆 300 米",equipmentText:P,matchReason:U,rosterText:T[i]||T[4]}});function I(){const i=g.value.map(t=>w(B({},t),{steps:t.steps.map(s=>{const h=s,{__checked:N}=h;return L(h,["__checked"])})}));m("update:plans",i),m("close")}function x(){y.value&&!window.confirm("有未保存的修改,确定要放弃吗?")||m("close")}return(i,t)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[o.visible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"pld-mask",onClick:e.withModifiers(x,["self"])},[e.createElementVNode("div",{class:"pld-dialog",onClick:t[0]||(t[0]=e.withModifiers(()=>{},["stop"]))},[t[7]||(t[7]=e.createElementVNode("div",{class:"pld-header"},[e.createElementVNode("span",{class:"pld-title"},"应急预案库管理")],-1)),e.createElementVNode("div",X,[e.createElementVNode("div",ee,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(k,s=>e.createElementVNode("button",{key:s.value,class:e.normalizeClass(["pld-tab",{"is-active":d.value===s.value}]),onClick:N=>d.value=s.value},e.toDisplayString(s.label),11,te)),64))]),d.value==="steps"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",ne,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,s=>e.createElementVNode("button",{key:s.value,class:e.normalizeClass(["pld-level-tab",{"is-active":a.value===s.value}]),onClick:N=>a.value=s.value},e.toDisplayString(s.label),11,le)),64))]),e.createElementVNode("div",oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(s,N)=>(e.openBlock(),e.createElementBlock("div",{key:s.stepId||N,class:"pld-step-row"},[e.withDirectives(e.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":V=>s.__checked=V,class:"pld-check"},null,8,se),[[e.vModelCheckbox,s.__checked]]),e.createElementVNode("span",ae,e.toDisplayString(String(N+1).padStart(2,"0")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":V=>s.stepName=V,class:"pld-input pld-step-name",placeholder:"步骤名称"},null,8,ie),[[e.vModelText,s.stepName]]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":V=>s.responsibleName=V,class:"pld-input pld-step-resp",placeholder:"责任人"},null,8,ce),[[e.vModelText,s.responsibleName]]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":V=>s.timeLimitDisplay=V,class:"pld-input pld-step-time",placeholder:"时限"},null,8,de),[[e.vModelText,s.timeLimitDisplay]])]))),128)),S.value.length===0?(e.openBlock(),e.createElementBlock("div",re,' 该等级暂无步骤,点击下方"添加步骤"新增 ')):e.createCommentVNode("",!0)]),e.createElementVNode("div",pe,[e.createElementVNode("button",{class:"pld-btn pld-btn-ghost",onClick:l},"+ 添加步骤"),e.createElementVNode("button",{class:"pld-btn pld-btn-danger",disabled:!n.value,onClick:r},"删除选中",8,me)])],64)):(e.openBlock(),e.createElementBlock("div",ue,[t[5]||(t[5]=e.createElementVNode("div",{class:"pld-ai-title"},"预案匹配",-1)),t[6]||(t[6]=e.createElementVNode("div",{class:"pld-ai-subtitle"},"自动匹配规则",-1)),e.createElementVNode("div",ve,[e.createElementVNode("div",Ee,[t[1]||(t[1]=e.createElementVNode("div",{class:"pld-ai-card-label"},"预警级别",-1)),e.createElementVNode("div",Ne,e.toDisplayString(f.value.levelText),1)]),e.createElementVNode("div",he,[t[2]||(t[2]=e.createElementVNode("div",{class:"pld-ai-card-label"},"响应时限",-1)),e.createElementVNode("div",ge,e.toDisplayString(f.value.responseTime),1)]),e.createElementVNode("div",Ve,[t[3]||(t[3]=e.createElementVNode("div",{class:"pld-ai-card-label"},"响应范围",-1)),e.createElementVNode("div",be,e.toDisplayString(f.value.responseRange),1)]),e.createElementVNode("div",_e,[t[4]||(t[4]=e.createElementVNode("div",{class:"pld-ai-card-label"},"预警区内设备",-1)),e.createElementVNode("div",ke,e.toDisplayString(f.value.equipmentText),1)])]),e.createElementVNode("div",ye,e.toDisplayString(f.value.matchReason),1),e.createElementVNode("div",fe,e.toDisplayString(f.value.rosterText),1)]))]),e.createElementVNode("div",$e,[y.value?(e.openBlock(),e.createElementBlock("span",Se,"· 有未保存的修改")):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"pld-btn pld-btn-ghost",onClick:x},"取消"),e.createElementVNode("button",{class:"pld-btn pld-btn-primary",onClick:I},"保存")])])])):e.createCommentVNode("",!0)]))}}),Be=D._export_sfc(Ce,[["__scopeId","data-v-26110cae"]]),we={class:"hpd-header"},Le={class:"hpd-sub"},De={class:"hpd-body"},Te={class:"hpd-toolbar"},xe=["disabled"],Oe={class:"hpd-list"},je=["onClick"],Re={class:"hpd-name"},Ie={class:"hpd-count"},Pe=["onClick"],Me={class:"hpd-arrow"},Ue={key:0,class:"hpd-item-body"},Fe={class:"hpd-table"},Ae={key:0},ze={key:0,class:"hpd-empty-all"},We={class:"hpd-footer"},qe=e.defineComponent({__name:"HistoryPlanDialog",props:{visible:{type:Boolean},plans:{}},emits:["close"],setup(o){const p=o,c={1:"#e74c3c",2:"#ff6600",3:"#f39c12",4:"#3498db"},m=e.ref(null),k=e.computed(()=>[...p.plans].sort((n,l)=>n.warningLevel-l.warningLevel));function u(n){return["Ⅰ","Ⅱ","Ⅲ","Ⅳ"][n-1]||String(n)}function d(n){m.value=m.value===n?null:n}function a(n){const l=String(n!=null?n:"");return/[",\n]/.test(l)?`"${l.replace(/"/g,'""')}"`:l}function g(n){const l=[`预案名称,${a(n.planName)}`,`预警等级,${u(n.warningLevel)} 级`,`适用场景,${a((n.scenarioType||[]).join("/"))}`,""].join(`
|
|
1
|
+
"use strict";var A=Object.defineProperty,z=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var O=(o,p,c)=>p in o?A(o,p,{enumerable:!0,configurable:!0,writable:!0,value:c}):o[p]=c,B=(o,p)=>{for(var c in p||(p={}))j.call(p,c)&&O(o,c,p[c]);if(C)for(var c of C(p))R.call(p,c)&&O(o,c,p[c]);return o},w=(o,p)=>z(o,W(p));var L=(o,p)=>{var c={};for(var m in o)j.call(o,m)&&p.indexOf(m)<0&&(c[m]=o[m]);if(o!=null&&C)for(var m of C(o))p.indexOf(m)<0&&R.call(o,m)&&(c[m]=o[m]);return c};const e=require("vue"),D=require("./index-BIreWxJ1.cjs"),q={class:"lw-panel-section"},H={class:"lw-panel-header"},J={class:"lw-panel-actions"},G={class:"lw-warning-table"},Y=["onClick"],Z={key:0},K=e.defineComponent({__name:"WarningOverviewPanel",props:{warnings:{},currentWarning:{},levelColors:{}},emits:["select-warning","manage-plans","history-plans"],setup(o){const p=o,c={1:"#e74c3c",2:"#ff6600",3:"#f39c12",4:"#3498db"};function m(u){var d;return((d=p.levelColors)==null?void 0:d[u])||c[u]||"#999"}function k(u){if(!u)return"--";const d=u.match(/(\d{2}:\d{2}:\d{2})$/);return d?d[1]:u}return(u,d)=>(e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("div",H,[d[2]||(d[2]=e.createElementVNode("span",{class:"lw-panel-title"},"预警数据概览",-1)),e.createElementVNode("div",J,[e.createElementVNode("button",{class:"lw-btn-outline",onClick:d[0]||(d[0]=a=>u.$emit("manage-plans"))},"应急预案库管理"),e.createElementVNode("button",{class:"lw-btn-outline",onClick:d[1]||(d[1]=a=>u.$emit("history-plans"))},"历史应急预案")])]),e.createElementVNode("div",G,[e.createElementVNode("table",null,[d[4]||(d[4]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",null,"预警等级"),e.createElementVNode("th",null,"预警区域"),e.createElementVNode("th",null,"触发时间"),e.createElementVNode("th",null,"最近人员和设备编号"),e.createElementVNode("th",null,"与预警区距离")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.warnings,a=>{var g,_;return e.openBlock(),e.createElementBlock("tr",{key:a.warningId,class:e.normalizeClass({"lw-row-active":((g=o.currentWarning)==null?void 0:g.warningId)===a.warningId}),onClick:y=>u.$emit("select-warning",a)},[e.createElementVNode("td",null,[e.createElementVNode("span",{class:"lw-level-badge",style:e.normalizeStyle({color:m(a.warningLevel)})},e.toDisplayString(a.warningLevelName),5)]),e.createElementVNode("td",null,e.toDisplayString(a.regionName),1),e.createElementVNode("td",null,e.toDisplayString(k(a.triggerTime)),1),e.createElementVNode("td",null,e.toDisplayString(((_=a.nearestObject)==null?void 0:_.objectName)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(a.nearestObject?`${a.nearestObject.distance} ${a.nearestObject.unit}`:"--"),1)],10,Y)}),128)),o.warnings.length===0?(e.openBlock(),e.createElementBlock("tr",Z,[...d[3]||(d[3]=[e.createElementVNode("td",{colspan:"5",class:"lw-no-data"},"暂无预警数据",-1)])])):e.createCommentVNode("",!0)])])])]))}}),Q=D._export_sfc(K,[["__scopeId","data-v-68afecd8"]]),X={class:"pld-body"},ee={class:"pld-tabs"},te=["onClick"],ne={class:"pld-level-tabs"},le=["onClick"],oe={class:"pld-step-list"},se=["onUpdate:modelValue"],ae={class:"pld-step-no"},ie=["onUpdate:modelValue"],ce=["onUpdate:modelValue"],de=["onUpdate:modelValue"],re={key:0,class:"pld-empty"},pe={class:"pld-actions"},me=["disabled"],ue={key:1,class:"pld-ai"},ve={class:"pld-ai-grid"},Ee={class:"pld-ai-card"},Ne={class:"pld-ai-card-value"},he={class:"pld-ai-card"},ge={class:"pld-ai-card-value"},Ve={class:"pld-ai-card"},be={class:"pld-ai-card-value"},_e={class:"pld-ai-card"},ke={class:"pld-ai-card-value"},ye={class:"pld-ai-info"},fe={class:"pld-ai-roster"},$e={class:"pld-footer"},Se={key:0,class:"pld-dirty-hint"},Ce=e.defineComponent({__name:"PlanLibraryDialog",props:{visible:{type:Boolean},plans:{},mobileObjects:{default:()=>[]},currentWarning:{default:null}},emits:["close","update:plans"],setup(o,{emit:p}){const c=o,m=p,k=[{label:"步骤配置",value:"steps"},{label:"智能预警预案",value:"ai"}],u=[{label:"Ⅰ级预警",value:1},{label:"Ⅱ级预警",value:2},{label:"Ⅲ级预警",value:3},{label:"Ⅳ级预警",value:4}],d=e.ref("steps"),a=e.ref(4),g=e.ref([]),_=e.ref("");e.watch(()=>c.visible,i=>{if(i){const t=JSON.stringify(c.plans);g.value=JSON.parse(t),_.value=t}},{immediate:!0});const y=e.computed(()=>{if(!c.visible)return!1;const i=g.value.map(t=>w(B({},t),{steps:t.steps.map(s=>{const h=s,{__checked:N}=h;return L(h,["__checked"])})}));return JSON.stringify(i)!==_.value});function $(i){const t=g.value.find(N=>N.warningLevel===i);if(t)return t;const s={planId:`PLAN_L${i}_NEW`,planName:"Ⅰ/Ⅱ/Ⅲ/Ⅳ 级预警预案".split("/")[i-1]+"预警预案",warningLevel:i,applicableRegionIds:[],status:"enabled",steps:[]};return g.value.push(s),s}const S=e.computed(()=>$(a.value).steps),n=e.computed(()=>S.value.some(i=>i.__checked));function l(){const i=$(a.value),t=String(i.steps.length+1).padStart(2,"0"),s={stepId:`STEP_L${a.value}_${Date.now()}`,stepNo:t,stepName:"",responsibleName:"",responsibleRole:"manual",timeLimitMinutes:0,timeLimitDisplay:"",status:"pending",statusText:"待启动"};i.steps.push(s)}function r(){const i=$(a.value);i.steps=i.steps.filter(t=>!t.__checked)}const v={1:"立即响应",2:"10 分钟内",3:"20 分钟内",4:"30 分钟内"},E={1:"预警区方圆 1000 米",2:"预警区方圆 600 米",3:"预警区方圆 400 米",4:"预警区方圆 300 米"},T={1:"值班调度员 4 人、现场安全员 6 人、机动疏导人员 12 人",2:"值班调度员 3 人、现场安全员 4 人、机动疏导人员 8 人",3:"值班调度员 2 人、现场安全员 3 人、机动疏导人员 6 人",4:"值班调度员 2 人、现场安全员 2 人、机动疏导人员 4 人"},f=e.computed(()=>{const i=a.value,t=["Ⅰ","Ⅱ","Ⅲ","Ⅳ"][i-1]||"Ⅳ",s=c.mobileObjects.filter(b=>b.status==="in_warning_area"||b.status==="near_warning_area"),N={};s.forEach(b=>{N[b.objectType]=(N[b.objectType]||0)+1});const V={excavator:"挖机",truck:"卡车",drone:"无人机",person:"人员"},h=Object.entries(N).filter(([b])=>b!=="person").map(([b,F])=>`${V[b]||b} ${F} 台`),P=h.length>0?h.join("、"):"无",M=h.length<=2?"低风险区间":h.length<=4?"中风险区间":"高风险区间",U=h.length>0?`当前预警区内共识别 ${h.join("、")},设备数量处于${M},系统自动匹配 ${t} 级预警。`:`当前预警区内未识别到设备,系统保持 ${t} 级预警基线响应。`;return{levelText:`${t}级预警`,responseTime:v[i]||"30 分钟内",responseRange:E[i]||"预警区方圆 300 米",equipmentText:P,matchReason:U,rosterText:T[i]||T[4]}});function I(){const i=g.value.map(t=>w(B({},t),{steps:t.steps.map(s=>{const h=s,{__checked:N}=h;return L(h,["__checked"])})}));m("update:plans",i),m("close")}function x(){y.value&&!window.confirm("有未保存的修改,确定要放弃吗?")||m("close")}return(i,t)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[o.visible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"pld-mask",onClick:e.withModifiers(x,["self"])},[e.createElementVNode("div",{class:"pld-dialog",onClick:t[0]||(t[0]=e.withModifiers(()=>{},["stop"]))},[t[7]||(t[7]=e.createElementVNode("div",{class:"pld-header"},[e.createElementVNode("span",{class:"pld-title"},"应急预案库管理")],-1)),e.createElementVNode("div",X,[e.createElementVNode("div",ee,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(k,s=>e.createElementVNode("button",{key:s.value,class:e.normalizeClass(["pld-tab",{"is-active":d.value===s.value}]),onClick:N=>d.value=s.value},e.toDisplayString(s.label),11,te)),64))]),d.value==="steps"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",ne,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,s=>e.createElementVNode("button",{key:s.value,class:e.normalizeClass(["pld-level-tab",{"is-active":a.value===s.value}]),onClick:N=>a.value=s.value},e.toDisplayString(s.label),11,le)),64))]),e.createElementVNode("div",oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(s,N)=>(e.openBlock(),e.createElementBlock("div",{key:s.stepId||N,class:"pld-step-row"},[e.withDirectives(e.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":V=>s.__checked=V,class:"pld-check"},null,8,se),[[e.vModelCheckbox,s.__checked]]),e.createElementVNode("span",ae,e.toDisplayString(String(N+1).padStart(2,"0")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":V=>s.stepName=V,class:"pld-input pld-step-name",placeholder:"步骤名称"},null,8,ie),[[e.vModelText,s.stepName]]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":V=>s.responsibleName=V,class:"pld-input pld-step-resp",placeholder:"责任人"},null,8,ce),[[e.vModelText,s.responsibleName]]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":V=>s.timeLimitDisplay=V,class:"pld-input pld-step-time",placeholder:"时限"},null,8,de),[[e.vModelText,s.timeLimitDisplay]])]))),128)),S.value.length===0?(e.openBlock(),e.createElementBlock("div",re,' 该等级暂无步骤,点击下方"添加步骤"新增 ')):e.createCommentVNode("",!0)]),e.createElementVNode("div",pe,[e.createElementVNode("button",{class:"pld-btn pld-btn-ghost",onClick:l},"+ 添加步骤"),e.createElementVNode("button",{class:"pld-btn pld-btn-danger",disabled:!n.value,onClick:r},"删除选中",8,me)])],64)):(e.openBlock(),e.createElementBlock("div",ue,[t[5]||(t[5]=e.createElementVNode("div",{class:"pld-ai-title"},"预案匹配",-1)),t[6]||(t[6]=e.createElementVNode("div",{class:"pld-ai-subtitle"},"自动匹配规则",-1)),e.createElementVNode("div",ve,[e.createElementVNode("div",Ee,[t[1]||(t[1]=e.createElementVNode("div",{class:"pld-ai-card-label"},"预警级别",-1)),e.createElementVNode("div",Ne,e.toDisplayString(f.value.levelText),1)]),e.createElementVNode("div",he,[t[2]||(t[2]=e.createElementVNode("div",{class:"pld-ai-card-label"},"响应时限",-1)),e.createElementVNode("div",ge,e.toDisplayString(f.value.responseTime),1)]),e.createElementVNode("div",Ve,[t[3]||(t[3]=e.createElementVNode("div",{class:"pld-ai-card-label"},"响应范围",-1)),e.createElementVNode("div",be,e.toDisplayString(f.value.responseRange),1)]),e.createElementVNode("div",_e,[t[4]||(t[4]=e.createElementVNode("div",{class:"pld-ai-card-label"},"预警区内设备",-1)),e.createElementVNode("div",ke,e.toDisplayString(f.value.equipmentText),1)])]),e.createElementVNode("div",ye,e.toDisplayString(f.value.matchReason),1),e.createElementVNode("div",fe,e.toDisplayString(f.value.rosterText),1)]))]),e.createElementVNode("div",$e,[y.value?(e.openBlock(),e.createElementBlock("span",Se,"· 有未保存的修改")):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"pld-btn pld-btn-ghost",onClick:x},"取消"),e.createElementVNode("button",{class:"pld-btn pld-btn-primary",onClick:I},"保存")])])])):e.createCommentVNode("",!0)]))}}),Be=D._export_sfc(Ce,[["__scopeId","data-v-26110cae"]]),we={class:"hpd-header"},Le={class:"hpd-sub"},De={class:"hpd-body"},Te={class:"hpd-toolbar"},xe=["disabled"],Oe={class:"hpd-list"},je=["onClick"],Re={class:"hpd-name"},Ie={class:"hpd-count"},Pe=["onClick"],Me={class:"hpd-arrow"},Ue={key:0,class:"hpd-item-body"},Fe={class:"hpd-table"},Ae={key:0},ze={key:0,class:"hpd-empty-all"},We={class:"hpd-footer"},qe=e.defineComponent({__name:"HistoryPlanDialog",props:{visible:{type:Boolean},plans:{}},emits:["close"],setup(o){const p=o,c={1:"#e74c3c",2:"#ff6600",3:"#f39c12",4:"#3498db"},m=e.ref(null),k=e.computed(()=>[...p.plans].sort((n,l)=>n.warningLevel-l.warningLevel));function u(n){return["Ⅰ","Ⅱ","Ⅲ","Ⅳ"][n-1]||String(n)}function d(n){m.value=m.value===n?null:n}function a(n){const l=String(n!=null?n:"");return/[",\n]/.test(l)?`"${l.replace(/"/g,'""')}"`:l}function g(n){const l=[`预案名称,${a(n.planName)}`,`预警等级,${u(n.warningLevel)} 级`,`适用场景,${a((n.scenarioType||[]).join("/"))}`,""].join(`
|
|
2
2
|
`),r=[["步骤编号","步骤名称","责任人","责任角色","时限"].join(","),...n.steps.map((v,E)=>[String(E+1).padStart(2,"0"),a(v.stepName),a(v.responsibleName),a(v.responsibleRole),a(v.timeLimit)].join(","))].join(`
|
|
3
3
|
`);return l+r}function _(n,l){const r=new Blob(["\uFEFF"+l],{type:"text/csv;charset=utf-8;"}),v=URL.createObjectURL(r),E=document.createElement("a");E.href=v,E.download=n,document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(v)}function y(){const n=new Date,l=r=>String(r).padStart(2,"0");return`${n.getFullYear()}${l(n.getMonth()+1)}${l(n.getDate())}_${l(n.getHours())}${l(n.getMinutes())}`}function $(n){const l=g(n);_(`应急预案_${u(n.warningLevel)}级_${n.planName}_${y()}.csv`,l)}function S(){const n=k.value.map(g).join(`
|
|
4
4
|
|
|
@@ -20,7 +20,7 @@ var B = (l, v) => {
|
|
|
20
20
|
return d;
|
|
21
21
|
};
|
|
22
22
|
import { defineComponent as F, openBlock as c, createElementBlock as h, createElementVNode as e, Fragment as S, renderList as E, normalizeClass as U, normalizeStyle as Z, toDisplayString as r, createCommentVNode as L, ref as R, watch as ie, computed as I, createBlock as K, Teleport as Q, withModifiers as P, withDirectives as D, vModelCheckbox as de, vModelText as W } from "vue";
|
|
23
|
-
import { _ as H } from "./index-
|
|
23
|
+
import { _ as H } from "./index-CzzMcaIY.js";
|
|
24
24
|
const ce = { class: "lw-panel-section" }, re = { class: "lw-panel-header" }, pe = { class: "lw-panel-actions" }, ue = { class: "lw-warning-table" }, ve = ["onClick"], me = { key: 0 }, he = /* @__PURE__ */ F({
|
|
25
25
|
__name: "WarningOverviewPanel",
|
|
26
26
|
props: {
|
|
@@ -26,8 +26,8 @@ var Ne = (o, t, e) => new Promise((n, s) => {
|
|
|
26
26
|
l((e = e.apply(o, t)).next());
|
|
27
27
|
});
|
|
28
28
|
import { defineComponent as Ge, reactive as Ve, computed as xe, openBlock as E, createElementBlock as C, withDirectives as be, createElementVNode as x, Fragment as Me, renderList as _e, toDisplayString as Y, vModelSelect as $e, createCommentVNode as J, normalizeClass as Ae, vModelText as Ye, ref as U, watch as ke, nextTick as tt, withModifiers as We, normalizeStyle as Ie, onMounted as lt, onBeforeUnmount as ct, createTextVNode as dt, createVNode as ut } from "vue";
|
|
29
|
-
import { _ as He } from "./index-
|
|
30
|
-
import { L as q } from "./leaflet-src-
|
|
29
|
+
import { _ as He } from "./index-CzzMcaIY.js";
|
|
30
|
+
import { L as q } from "./leaflet-src-vRqqLfr0.js";
|
|
31
31
|
/* empty css */
|
|
32
32
|
import { R as ht, k as ft, S as mt, l as pt, W as vt, m as Oe, A as gt, n as yt, o as Xe, G as Ze, B as ge, a as ce, p as wt, D as bt, C as kt, g as Te, L as Re, q as ze, h as xt, V as Q, r as Je, s as Mt, M as _t, P as St, e as zt, t as At, u as Tt } from "./three.module-DDLQaQWC.js";
|
|
33
33
|
import { O as Lt } from "./OrbitControls-BHOrUcwg.js";
|