mixdashboards 1.0.73 → 1.0.75
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-BXAJUoaf.cjs +1 -0
- package/dist/{BaseComponent-CBagahPU.js → BaseComponent-BlCsb-HW.js} +147 -121
- package/dist/{EChartComponentBase-dLE5F7Tt.cjs → EChartComponentBase-BPiPzdtw.cjs} +1 -1
- package/dist/{EChartComponentBase-cFfawl6h.js → EChartComponentBase-DPWPg81w.js} +3 -3
- package/dist/{EmergencyPlanPanel-BJb-Bbxh.cjs → EmergencyPlanPanel-CU0gJiFM.cjs} +1 -1
- package/dist/{EmergencyPlanPanel--jTGG89o.js → EmergencyPlanPanel-Cv06qTDX.js} +1 -1
- package/dist/{HistoryPlanDialog-DerClU2U.js → HistoryPlanDialog-BALmXGdQ.js} +1 -1
- package/dist/{HistoryPlanDialog-C-QPdV4V.cjs → HistoryPlanDialog-CiRVXFaZ.cjs} +1 -1
- package/dist/{MarkerView-CtWJi5UZ.js → MarkerView-DDN8S7xE.js} +7 -7
- package/dist/{MonitoringMap-B6RMbiIS.cjs → MonitoringMap-BXxlfEQV.cjs} +1 -1
- package/dist/{MonitoringMap-CNaGsq83.js → MonitoringMap-BuVJ-ir-.js} +2 -2
- package/dist/{RoamController-DmBIwcAZ.js → RoamController-1rzpYesL.js} +1 -1
- package/dist/{UniverSheet-CM-vvc23.cjs → UniverSheet-CDug4m6W.cjs} +1 -1
- package/dist/{UniverSheet-KI09RqKm.js → UniverSheet-GnlJ56Io.js} +2 -2
- package/dist/{VisualMapping-D-MA7S0X.js → VisualMapping-GwxHIgr-.js} +1 -1
- package/dist/{accelerationChart-HBCb2bRW.cjs → accelerationChart-BQkfynh-.cjs} +1 -1
- package/dist/{accelerationChart-D7KNk5fI.js → accelerationChart-lWscOOUn.js} +4 -4
- package/dist/{actionItem-Bx4mW0jP.cjs → actionItem-6eYNuhg3.cjs} +1 -1
- package/dist/{actionItem-BmNYzAXu.js → actionItem-B4nl_rf_.js} +2 -2
- package/dist/{alarmLevelChart-DdSw2s7W.js → alarmLevelChart-CiobE56j.js} +2 -2
- package/dist/{alarmLevelChart-Cvnw4z1w.cjs → alarmLevelChart-Mq8iVSI0.cjs} +1 -1
- package/dist/{alertTable-CC3c8DFb.js → alertTable-CMlVY_8H.js} +2 -2
- package/dist/{alertTable-hH6HA9pY.cjs → alertTable-f0pzyZBg.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-C7E_fnCf.cjs → aliasObjectSelectorDemo-C1bpTa2y.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-yDiavTpG.js → aliasObjectSelectorDemo-DqZ0EfVH.js} +9 -9
- package/dist/{annualRainfallChart-C6JLSPIf.cjs → annualRainfallChart-BbYOeEs_.cjs} +1 -1
- package/dist/{annualRainfallChart-B9ar8vo8.js → annualRainfallChart-_mJM58W4.js} +3 -3
- package/dist/{aqi-BNc5QCM3.js → aqi-jYtMHp4c.js} +10 -10
- package/dist/{aqi-DEiCVIVa.cjs → aqi-yjjoBI4W.cjs} +1 -1
- package/dist/{aqiIndass-CAGV8_Uf.js → aqiIndass-BPnJN1L7.js} +11 -11
- package/dist/{aqiIndass-Bowic_Pc.cjs → aqiIndass-DuxFgiJF.cjs} +1 -1
- package/dist/{areaDeformCurve-CVy23kV2.cjs → areaDeformCurve-BM8ClfUa.cjs} +1 -1
- package/dist/{areaDeformCurve-CSpR060t.js → areaDeformCurve-DNleJiVH.js} +4 -4
- package/dist/arrayCard-BxpqdLMV.cjs +1 -0
- package/dist/arrayCard-jITzZi-r.js +139 -0
- package/dist/{audio-Bw-GaYe1.cjs → audio-BuyKXQ0N.cjs} +1 -1
- package/dist/{audio-BJPFIQIr.js → audio-CH5r-0gF.js} +2 -2
- package/dist/{axisAlignTicks-BqVUa467.js → axisAlignTicks-Chqgi59U.js} +2 -2
- package/dist/bar-BtlkgC6a.js +309 -0
- package/dist/bar-vpJvlBYX.cjs +2 -0
- package/dist/bmp-C2DUdhaT.js +2080 -0
- package/dist/bmp-DLIPXhyT.cjs +1 -0
- package/dist/{box-DIHVOqrV.js → box-BgwIB1Bl.js} +2 -2
- package/dist/{box-CKuGsh2k.cjs → box-CVcPOlKk.cjs} +1 -1
- package/dist/{chartConfigPanel-BVdVXbs6.cjs → chartConfigPanel-BdVphXRS.cjs} +1 -1
- package/dist/{chartConfigPanel-D1rO6SGh.js → chartConfigPanel-ByzQkeYT.js} +1 -1
- package/dist/{circleBar-CBLcp4Xi.js → circleBar-CFV6RoS1.js} +15 -15
- package/dist/{circleBar-BzXqA-Cz.cjs → circleBar-DBCX2g0i.cjs} +1 -1
- package/dist/{clock-DmWyBpo-.cjs → clock--G7VfksN.cjs} +1 -1
- package/dist/{clock-4AMfFDGC.js → clock-ilY2WqEO.js} +2 -2
- package/dist/clt-4fAQmG5V.js +301 -0
- package/dist/clt-DOAntJi9.cjs +1 -0
- package/dist/cmc-Bhyw5-iw.js +275 -0
- package/dist/cmc-CehLriLD.cjs +1 -0
- package/dist/cmp-BL3VD7Pn.cjs +6 -0
- package/dist/{cmp-COJzlQPa.js → cmp-znNaGWlx.js} +54 -55
- package/dist/{conclusionCard-BQUlLFde.js → conclusionCard-B5DhxboF.js} +2 -2
- package/dist/{conclusionCard-C-TT6znN.cjs → conclusionCard-K6CSG9A7.cjs} +1 -1
- package/dist/{controlList-CIwzKylK.cjs → controlList-CyE_bM7S.cjs} +1 -1
- package/dist/{controlList-5D5UIDQL.js → controlList-DoaSMBIh.js} +2 -2
- package/dist/{controlRecordList-uEQ3ohmB.cjs → controlRecordList-CDKRXU47.cjs} +1 -1
- package/dist/{controlRecordList-Cp5mmEQ1.js → controlRecordList-DwXUWAgm.js} +2 -2
- package/dist/controlRecordListAPP-CP-tQ4o_.js +569 -0
- package/dist/controlRecordListAPP-cODkXLeg.cjs +1 -0
- package/dist/{crd-8gRWMf2Y.js → crd-BJJ9sEBi.js} +2 -2
- package/dist/{crd-Dfl2XKAx.cjs → crd-D9Djs_9M.cjs} +1 -1
- package/dist/{createSeriesData-E53TTCAt.js → createSeriesData-BUgbWEWK.js} +2 -2
- package/dist/{createSeriesDataSimply-Bsly4zZA.js → createSeriesDataSimply-C7bzYYow.js} +2 -2
- package/dist/ctrBtn-Ci7BkiOn.cjs +1 -0
- package/dist/{ctrBtn-BzmFxucy.js → ctrBtn-zECsVsC6.js} +95 -90
- package/dist/ctrSet-DQTACQn1.js +235 -0
- package/dist/ctrSet-DZrpF9pM.cjs +1 -0
- package/dist/ctrSwitch-BDy8B1lF.cjs +1 -0
- package/dist/{ctrSwitch-6nMHbIE7.js → ctrSwitch-CrEAuL-v.js} +89 -83
- package/dist/{cursorHelper-DE0KU4_J.js → cursorHelper-BFbblC6t.js} +1 -1
- package/dist/{customGraphicKeyframeAnimation-BJ_z0kB3.js → customGraphicKeyframeAnimation-veqkTlqy.js} +17 -17
- package/dist/{dataManagement-sQpuBaDz.cjs → dataManagement-D6SM8zVY.cjs} +1 -1
- package/dist/{dataManagement-BZiSmktM.js → dataManagement-ivUDfZ3f.js} +2 -2
- package/dist/{dataReport-D9Q9c43B.cjs → dataReport-CFJ5aMrb.cjs} +1 -1
- package/dist/{dataReport-CbJzXeCE.js → dataReport-CryAeh7C.js} +2 -2
- package/dist/{dataSample-BXwc06Sb.js → dataSample-Czrba8EC.js} +1 -1
- package/dist/{dataTable-BuBB0b-A.js → dataTable-BBW0i51h.js} +1 -1
- package/dist/{dataTable-BJ4SVFbu.cjs → dataTable-IKk8N9i9.cjs} +1 -1
- package/dist/{datetime-DO03QrXz.js → datetime-BPoSIL-3.js} +2 -2
- package/dist/{datetime-B66VgJL1.cjs → datetime-CGUnVeRE.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-DpSAXgFf.js → deepClusterSlipSurface-jt74ODxX.js} +17 -17
- package/dist/{deepClusterSlipSurface-BqT55vkY.cjs → deepClusterSlipSurface-rZIUqLLp.cjs} +1 -1
- package/dist/{deepDataMatrix-CPrIOv5r.js → deepDataMatrix-B1rr5lNY.js} +13 -13
- package/dist/{deepDataMatrix-DZZaTMbD.cjs → deepDataMatrix-DyK--0cJ.cjs} +1 -1
- package/dist/{deepDisplacement3D-JlMej7-5.js → deepDisplacement3D-BnWitDOk.js} +20 -21
- package/dist/{deepDisplacement3D-Cd9nwwPt.cjs → deepDisplacement3D-DdSfiM8c.cjs} +60 -60
- package/dist/{deepDisplacementChart-CjlGpeHj.js → deepDisplacementChart-BQ3nFJLH.js} +3 -3
- package/dist/{deepDisplacementChart-CEaj2bUV.cjs → deepDisplacementChart-BxdiiuUe.cjs} +1 -1
- package/dist/{deepDisplacementChart-CALM3gna.cjs → deepDisplacementChart-DY3PLNdf.cjs} +1 -1
- package/dist/{deepDisplacementChart-BiDt60xI.js → deepDisplacementChart-lIfyzMpq.js} +4 -4
- package/dist/{deepDisplacementView-BpUw-b-i.js → deepDisplacementView-BsddlCKN.js} +3 -3
- package/dist/{deepDisplacementView-CoSNzN1q.cjs → deepDisplacementView-C0r4oIIk.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-DfZq7kLx.js → deepNodeTemperatureChart-C1RVbMT1.js} +22 -22
- package/dist/{deepNodeTemperatureChart-DPN0rYir.cjs → deepNodeTemperatureChart-DrqwFmDg.cjs} +1 -1
- package/dist/{deepTangentAngleChart-Ca01hah9.js → deepTangentAngleChart-BSifjEIw.js} +7 -7
- package/dist/{deepTangentAngleChart-Dg9PJspK.cjs → deepTangentAngleChart-Hs9wfNfb.cjs} +1 -1
- package/dist/{deepTemperatureField-CYBTjhEp.js → deepTemperatureField-BSsTui64.js} +25 -25
- package/dist/{deepTemperatureField-BqDB97SW.cjs → deepTemperatureField-Bz9X6xx5.cjs} +1 -1
- package/dist/{deepTrendChart-B5BAHTeY.cjs → deepTrendChart-B3q-lEJw.cjs} +1 -1
- package/dist/{deepTrendChart-DBjxV7_A.js → deepTrendChart-apQrMrj6.js} +6 -6
- package/dist/{deviceOnlineStatus-DHzaAzCp.cjs → deviceOnlineStatus-DABeXKWW.cjs} +1 -1
- package/dist/{deviceOnlineStatus-1eoHCl_-.js → deviceOnlineStatus-kFsHXR6n.js} +2 -2
- package/dist/{deviceStatus-4BMy4qBD.cjs → deviceStatus-BE2Pszt3.cjs} +1 -1
- package/dist/{deviceStatus-90rQa1uj.js → deviceStatus-TNP-PLi-.js} +2 -2
- package/dist/{displacementDataTable-BLWjiaRQ.cjs → displacementDataTable-BD45feZR.cjs} +1 -1
- package/dist/{displacementDataTable-BArwj-xp.js → displacementDataTable-kZBxmOLa.js} +11 -11
- package/dist/{displacementTrajectoryChart-CxOPJVlD.js → displacementTrajectoryChart-BjbgbY-z.js} +23 -23
- package/dist/{displacementTrajectoryChart-DfJMOCFJ.cjs → displacementTrajectoryChart-DmuezhG8.cjs} +1 -1
- package/dist/{displacementTrendChart-4E6cDsX8.js → displacementTrendChart-BjIXnttw.js} +4 -4
- package/dist/{displacementTrendChart-Cuxa5iTp.cjs → displacementTrendChart-iXH_pVRS.cjs} +1 -1
- package/dist/{dxf-BogwbJID.js → dxf-Cne0HiZv.js} +2 -2
- package/dist/{dxf-BgklkksV.cjs → dxf-DMZPfCEF.cjs} +1 -1
- package/dist/{dzc-D7tTBLaA.js → dzc-BHGWFMVE.js} +9 -9
- package/dist/{dzc-CApfzriC.cjs → dzc-Xii4wMjP.cjs} +1 -1
- package/dist/{echarts-BVht3HHb.js → echarts-Bp7QN4X6.js} +90 -90
- package/dist/{emergencyPlan-BuFz4XFc.cjs → emergencyPlan-B1znDbbO.cjs} +1 -1
- package/dist/{emergencyPlan-CjbuX-N5.js → emergencyPlan-CdFHCDZY.js} +3 -3
- package/dist/evn-DQIIN0A9.cjs +1 -0
- package/dist/evn-UM09m5js.js +165 -0
- package/dist/{evolutionChart-CrwR8i40.cjs → evolutionChart-DDtDzRIE.cjs} +1 -1
- package/dist/{evolutionChart-D1dVKWOt.js → evolutionChart-Dm3nLcz6.js} +5 -5
- package/dist/{fileViewer-BNHwlZRa.js → fileViewer-C1Ky9Ydw.js} +13 -13
- package/dist/{fileViewer-BUuST3Rp.cjs → fileViewer-CoTW7CWz.cjs} +1 -1
- package/dist/{filterBar-CRJinh5K.js → filterBar-BNr5i0ab.js} +2 -2
- package/dist/{filterBar-BJzjPFFg.cjs → filterBar-DPG_jFL8.cjs} +1 -1
- package/dist/{fireCombustionCurve-BZ6qJ1kq.js → fireCombustionCurve-DpcQ13zK.js} +3 -3
- package/dist/{fireCombustionCurve-BGdJ1ybj.cjs → fireCombustionCurve-z2iMEkbd.cjs} +1 -1
- package/dist/{fireFilterBar-KvvbsCsZ.js → fireFilterBar-BFJeB-8m.js} +2 -2
- package/dist/{fireFilterBar-DZejT0oL.cjs → fireFilterBar-iXGBx5Zi.cjs} +1 -1
- package/dist/{fireHistoryTable-CMSGKb3w.cjs → fireHistoryTable-BE79laqx.cjs} +1 -1
- package/dist/{fireHistoryTable-80ygqnOG.js → fireHistoryTable-E9Gx4Gqf.js} +2 -2
- package/dist/gag-Ce_-YYka.cjs +1 -0
- package/dist/gag-naUs2e3c.js +168 -0
- package/dist/gasStationList-Kbha10pX.js +1387 -0
- package/dist/gasStationList-jfKZeg4P.cjs +1 -0
- package/dist/{geo3dViewer-FhmMIvMJ.js → geo3dViewer-CMISZOfo.js} +3 -3
- package/dist/{geo3dViewer-CL_89mQf.cjs → geo3dViewer-CnAgLJ_6.cjs} +1 -1
- package/dist/{glbModel-B0nWYYJQ.js → glbModel-Bw25mL_R.js} +2 -2
- package/dist/{glbModel-DakMJal6.cjs → glbModel-CS8qUhON.cjs} +1 -1
- package/dist/{globalObjectSelector-Gv4srHhp.js → globalObjectSelector-BcLO38lZ.js} +1 -1
- package/dist/{globalObjectSelector-jNzZxdnL.cjs → globalObjectSelector-BwoQjJGq.cjs} +1 -1
- package/dist/{gnssFilterBar-kEIW7Tjs.cjs → gnssFilterBar-CfqJBy4d.cjs} +1 -1
- package/dist/{gnssFilterBar-C4rpyNw3.js → gnssFilterBar-bS10JYoi.js} +2 -2
- package/dist/{gnssHistoryTable-CyMwQJ7_.js → gnssHistoryTable-CPs_w2gf.js} +2 -2
- package/dist/{gnssHistoryTable-DRKlP8-b.cjs → gnssHistoryTable-CyingjiU.cjs} +1 -1
- package/dist/{gnssMapView-EVufCGrW.js → gnssMapView-DD_L9jE0.js} +6 -6
- package/dist/{gnssMapView-DpExCi0x.cjs → gnssMapView-KvzwIbK1.cjs} +2 -2
- package/dist/{gnssSectionProfile-CaJwF9wp.js → gnssSectionProfile-DGYWQKML.js} +4 -4
- package/dist/{gnssSectionProfile-DdcOMdNC.cjs → gnssSectionProfile-DxkEsZQx.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-iffDvMNx.js → gnssTimeSeriesChart-1bLKTD-e.js} +2 -2
- package/dist/{gnssTimeSeriesChart-y11Y8k2-.cjs → gnssTimeSeriesChart-KVg2GW1C.cjs} +1 -1
- package/dist/{gnssXYTrajectory-DGBGGDwi.cjs → gnssXYTrajectory-B-0h71U8.cjs} +1 -1
- package/dist/{gnssXYTrajectory-C_1fuLWn.js → gnssXYTrajectory-B-d6rq3V.js} +2 -2
- package/dist/{grd-C4hCrpvH.cjs → grd-CbvQkv0q.cjs} +1 -1
- package/dist/{grd-FfuMQJb7.js → grd-CqeXHXO2.js} +2 -2
- package/dist/{grdIndass-BTbZmPLZ.js → grdIndass-BaHBsp5T.js} +6 -6
- package/dist/{grdIndass-CyuRKD5H.cjs → grdIndass-_-7wqVjL.cjs} +1 -1
- package/dist/{grg-CcnI5kRY.js → grg-Cgpfx9kR.js} +8 -8
- package/dist/{grg-Cuxa17d6.cjs → grg-DmN25aj-.cjs} +1 -1
- package/dist/{gridview-ffVc5Wvg.js → gridview-B0haH8LS.js} +2 -2
- package/dist/{gridview-CKjBuTRq.cjs → gridview-DYYpW2MH.cjs} +1 -1
- package/dist/{groundwaterFilterBar-DaPR-kbl.js → groundwaterFilterBar-ClXMXCj6.js} +2 -2
- package/dist/{groundwaterFilterBar-D3l7GLVY.cjs → groundwaterFilterBar-mcMEwt9B.cjs} +1 -1
- package/dist/{groundwaterProfileChart-BxJKIPXF.cjs → groundwaterProfileChart-BoRVOmen.cjs} +2 -2
- package/dist/{groundwaterProfileChart-DoSx7WWp.js → groundwaterProfileChart-Cfwfua8-.js} +3 -3
- package/dist/{groundwaterTimeCurve-D-SdVYeq.js → groundwaterTimeCurve-BOarX2wf.js} +3 -3
- package/dist/{groundwaterTimeCurve-Bp5MxM9k.cjs → groundwaterTimeCurve-Czt7iLlt.cjs} +1 -1
- package/dist/{groupCard-COMEkzIb.js → groupCard-2aS7lgg2.js} +2 -2
- package/dist/{groupCard-BzUQ8xY0.cjs → groupCard-DjUIJShv.cjs} +1 -1
- package/dist/{headerBar-iFe0YQKE.cjs → headerBar-5nL0hMXs.cjs} +1 -1
- package/dist/{headerBar-ouXO8bzC.js → headerBar-u-0s0z16.js} +2 -2
- package/dist/{history-MxYUUwkm.cjs → history-B-Ynlm5z.cjs} +1 -1
- package/dist/{history-BZ869y2d.js → history-BtX7uNYs.js} +14 -14
- package/dist/index-CJgyJTvc.cjs +11 -0
- package/dist/index-Cvu9nAQq.cjs +612 -0
- package/dist/{index-DwPJu6XM.js → index-DomNEEyv.js} +2425 -2380
- package/dist/{index-ButoLLAe.js → index-eIsZnzkc.js} +2753 -2122
- package/dist/{insarDeformChart-5BhCUq8L.js → insarDeformChart-DVGZUwaX.js} +2 -2
- package/dist/{insarDeformChart-Ca3AMsBk.cjs → insarDeformChart-KECXbG_n.cjs} +1 -1
- package/dist/{insarImageViewer-DHNxmLpa.js → insarImageViewer-BMk5v36R.js} +2 -2
- package/dist/{insarImageViewer-DWPsoHz6.cjs → insarImageViewer-CdJyowUc.cjs} +1 -1
- package/dist/{install-FDYiy_gL.js → install-B_v5XJLG.js} +5 -5
- package/dist/{install-9_V0b6vf.js → install-BfNaEf5I.js} +24 -24
- package/dist/{install-B0x4IqQr.js → install-By9bYCXw.js} +11 -11
- package/dist/{install-hfre7yvV.js → install-CEl1AYgZ.js} +2 -2
- package/dist/{install-BzdOSCzO.js → install-CIdzgJ44.js} +109 -109
- package/dist/{install-oGjJ0_bF.js → install-CJ_UX-RT.js} +44 -44
- package/dist/{install-BifpoHNI.js → install-CY89Nrxl.js} +5 -5
- package/dist/{install-BUu5ESB7.js → install-Cmw0VV-B.js} +72 -72
- package/dist/{install-MS3ZY7fF.js → install-CqrIgcb1.js} +7 -7
- package/dist/{install-D1QM80AD.js → install-DNDCMXB3.js} +2 -2
- package/dist/install-DbAuuRVv.js +8 -0
- package/dist/{install-CBde4hAM.js → install-DdM8j5Ll.js} +1 -1
- package/dist/{install-B2TChEcT.js → install-DwcX1eNi.js} +4 -4
- package/dist/{install-C_3uGWLu.js → install-FXyLnlJE.js} +9 -9
- package/dist/{install-C9Cdzkc6.js → install-UooD2LwU.js} +29 -29
- package/dist/{install-Cx1i_m0k.js → install-ZJfH__Vo.js} +11 -11
- package/dist/{install-8XfFtnlL.js → install-uPZUxWT9.js} +19 -19
- package/dist/{installCanvasRenderer-CLT2hquJ.js → installCanvasRenderer-oDYkyVFy.js} +4 -4
- package/dist/{installMarkArea-Cdg4iciO.js → installMarkArea-DaDitBR7.js} +15 -15
- package/dist/{installMarkLine-BgE0YACE.js → installMarkLine-CHCnywAM.js} +10 -10
- package/dist/{installSimple-BWTCwMdY.js → installSimple-CB2Y4Ri7.js} +3 -3
- package/dist/{kds-BYZC4pIM.js → kds-CawaHOXh.js} +11 -11
- package/dist/{kds-Dpf_3WWj.cjs → kds-DU8wNnhT.cjs} +1 -1
- package/dist/{kpiCard-CStPtl-c.js → kpiCard-B5ZueB0g.js} +2 -2
- package/dist/{kpiCard-OLJgA48-.cjs → kpiCard-CAuX9-zP.cjs} +1 -1
- package/dist/{labelHelper-Cd8oB-sZ.js → labelHelper-DccEpjmd.js} +1 -1
- package/dist/{landslideMap-JTdoQjW-.cjs → landslideMap-CImGVGDr.cjs} +1 -1
- package/dist/{landslideMap-BUq0x7rd.js → landslideMap-DGkSLtbi.js} +3 -3
- package/dist/{landslideWarning-VAn9XGUj.js → landslideWarning-BeQUD3uJ.js} +5 -5
- package/dist/{landslideWarning-ZA5LCsIr.cjs → landslideWarning-C8cHW-2p.cjs} +1 -1
- package/dist/{layerTabs-CAJ6f-2W.js → layerTabs-CBr-oH28.js} +2 -2
- package/dist/{layerTabs-CdhowHB1.cjs → layerTabs-DxX6yqOO.cjs} +1 -1
- package/dist/{leaflet-src-DNO2-OsP.js → leaflet-src-BXugYdBe.js} +1 -1
- package/dist/{leaflet-src-CxFQ_Cn7.cjs → leaflet-src-VXn1CZcu.cjs} +1 -1
- package/dist/{lerc-qU4WKXeS.cjs → lerc-DJGGksD3.cjs} +1 -1
- package/dist/{lerc-bF2jqjoV.js → lerc-td9bbpKy.js} +2 -2
- package/dist/{lin-DbQw7wZw.js → lin-DlD92hLY.js} +16 -16
- package/dist/{lin-BHI2KgyW.cjs → lin-vrv9_1Gw.cjs} +1 -1
- package/dist/{linIndass-CIrObeZT.cjs → linIndass-BhvIJJ_-.cjs} +1 -1
- package/dist/{linIndass-Cd9Hjzs_.js → linIndass-DRZUPyVA.js} +8 -8
- package/dist/{lst-BRsEe-Hq.cjs → lst-BsGZwd4K.cjs} +1 -1
- package/dist/{lst-C3C2m1v_.js → lst-DHBMHjOM.js} +2 -2
- package/dist/{manualEntry-B8TDMcDg.js → manualEntry-gGLZH2mN.js} +2 -2
- package/dist/{manualEntry-C3_WtYz8.cjs → manualEntry-zdYpuGoU.cjs} +1 -1
- package/dist/{mapBackground-BrVIQUcT.js → mapBackground-DBXKXI9j.js} +3 -3
- package/dist/{mapBackground-Du7R_ICY.cjs → mapBackground-U2NX5fCU.cjs} +1 -1
- package/dist/{mappingList-BpJUawmv.js → mappingList-D4KRWEkc.js} +2 -2
- package/dist/{mappingList-C5OZ8oUx.cjs → mappingList-vLJbxZcd.cjs} +1 -1
- package/dist/{markdownViewer-CoRrvdY7.js → markdownViewer-DzZnOTO-.js} +6 -6
- package/dist/{markdownViewer-D96bwxEt.cjs → markdownViewer-XvNb3eNT.cjs} +1 -1
- package/dist/mix-control-modal-DQnZbDGs.cjs +1 -0
- package/dist/mix-control-modal-DjD4xOuc.js +160 -0
- package/dist/{mixGrid-Hj0OJjkg.cjs → mixGrid-CLEdWr86.cjs} +1 -1
- package/dist/{mixGrid-CtJWul6c.js → mixGrid-uzRHR_XB.js} +4 -4
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/mixiotObjectListApi-DCuG7zc-.cjs +1 -0
- package/dist/mixiotObjectListApi-DP6wrrOJ.js +212 -0
- package/dist/{mjpegCamera-BY7pmbDc.cjs → mjpegCamera-D416oWYH.cjs} +1 -1
- package/dist/{mjpegCamera-Dc4IsJA6.js → mjpegCamera-y_pW209K.js} +2 -2
- package/dist/{monitorAlert-F8QFOchR.js → monitorAlert-BOJ4UrnO.js} +2 -2
- package/dist/{monitorAlert-DVNvJyTy.cjs → monitorAlert-Bq1MEu6y.cjs} +1 -1
- package/dist/{monitorData-BzqNIdrW.js → monitorData-CTVzSwsd.js} +4 -4
- package/dist/{monitorData-AkPbhJ9q.cjs → monitorData-eE9QUfb3.cjs} +1 -1
- package/dist/{monitorSpeedChart-348U37LW.js → monitorSpeedChart-CUZat2mO.js} +3 -3
- package/dist/{monitorSpeedChart-DVH1xihw.cjs → monitorSpeedChart-CnKy9z8m.cjs} +1 -1
- package/dist/{mxa-CkJjCHA-.js → mxa-DDJJIW_n.js} +7 -7
- package/dist/{mxa-DShU528J.cjs → mxa-ueyMsY-m.cjs} +1 -1
- package/dist/{myValue-BCeycpdO.cjs → myValue-BdJdeV7Y.cjs} +1 -1
- package/dist/{myValue-CEfp19i2.js → myValue-jZIrcY-B.js} +2 -2
- package/dist/{myValueList-y3GR4AX2.js → myValueList-DYPYb3FQ.js} +2 -2
- package/dist/{myValueList-CAPOW8TK.cjs → myValueList-KoXkIHn0.cjs} +1 -1
- package/dist/objectList-CGYOZD6e.js +2040 -0
- package/dist/objectList-Ct6UzSuD.cjs +1 -0
- package/dist/objectListAPP-D0dHuEhF.cjs +1 -0
- package/dist/objectListAPP-DrymYbRw.js +2245 -0
- package/dist/{photo-BV6rkbWO.js → photo-DC0tNbgw.js} +2 -2
- package/dist/{photo-D67wLRkY.cjs → photo-siDcsoGU.cjs} +1 -1
- package/dist/{pie-BeRwVkTk.cjs → pie-D9J75dIT.cjs} +1 -1
- package/dist/{pie-bNKhq6ak.js → pie-I_Gqoxg_.js} +10 -10
- package/dist/{placeholder-zByzfWaH.cjs → placeholder-BPjcnXBR.cjs} +1 -1
- package/dist/{placeholder-_iK4rVyU.js → placeholder-BsmPsTrK.js} +1 -1
- package/dist/{points-DkG9FRF9.js → points-Cddz0rX-.js} +15 -15
- package/dist/{pressBtn-B-rZPXK2.js → pressBtn-CXasqSG5.js} +121 -91
- package/dist/{pressBtn-BjqYIPC-.cjs → pressBtn-DkR5yC7c.cjs} +1 -1
- package/dist/{processTable-s_y8uups.js → processTable-CprS7V6w.js} +2 -2
- package/dist/{processTable-ByPlSKRJ.cjs → processTable-D2upRmGB.cjs} +1 -1
- package/dist/{progressBar-DskxZk1P.js → progressBar-BnDhCqnO.js} +37 -29
- package/dist/{progressBar-CRdA7oJT.cjs → progressBar-CHGUKjOk.cjs} +1 -1
- package/dist/{progressCircle-CHe-12Hb.cjs → progressCircle-C7U0fPQv.cjs} +1 -1
- package/dist/{progressCircle-BE_Am-AP.js → progressCircle-DTSsucDj.js} +55 -47
- package/dist/{qrcode-Dgth6KwU.js → qrcode-B65TN3DU.js} +2 -2
- package/dist/{qrcode-D8cFyUpL.cjs → qrcode-COSof3Xg.cjs} +1 -1
- package/dist/{raceBar-DV-3KFg2.js → raceBar-B-Dg_JeH.js} +116 -120
- package/dist/raceBar-DUTC68PY.cjs +2 -0
- package/dist/{rad-BerkC70H.cjs → rad-C-5BUzw2.cjs} +1 -1
- package/dist/{rad-BhsfF0XI.js → rad-CQS9cZyM.js} +6 -6
- package/dist/{radarMapViewer-C2dde8EN.js → radarMapViewer-8GICTIhi.js} +2 -2
- package/dist/{radarMapViewer-HWzvBTzT.cjs → radarMapViewer-Bnzk9-oK.cjs} +1 -1
- package/dist/{rainfallFilterBar-CiT1mvYh.js → rainfallFilterBar-2PbsD0mU.js} +2 -2
- package/dist/{rainfallFilterBar-kuAQO0M-.cjs → rainfallFilterBar-BAFB2Yla.cjs} +1 -1
- package/dist/{rainfallTimeCurve-BlOnCq2M.js → rainfallTimeCurve-D8deMaZA.js} +3 -3
- package/dist/{rainfallTimeCurve-7uHaSkuE.cjs → rainfallTimeCurve-pNf06cfu.cjs} +1 -1
- package/dist/{rangeLin-BQeWFL_E.cjs → rangeLin-D1_RCrEG.cjs} +1 -1
- package/dist/{rangeLin-BvKd8kEv.js → rangeLin-DiCVHBXe.js} +10 -10
- package/dist/{realtimeEvolutionMap-DZ6yniwl.js → realtimeEvolutionMap-BZ3odAWj.js} +2 -2
- package/dist/{realtimeEvolutionMap-BUnD3JjE.cjs → realtimeEvolutionMap-BwDjG4Cd.cjs} +1 -1
- package/dist/{regionBar-mMaN5NEc.cjs → regionBar-BZVsJdo6.cjs} +1 -1
- package/dist/{regionBar-vp5D52Jd.js → regionBar-C_C5cX2r.js} +2 -2
- package/dist/{request-DegEaaCG.cjs → request-B1HlG30f.cjs} +1 -1
- package/dist/{request-CMbwWTDF.js → request-CsiNbn80.js} +3 -3
- package/dist/retainer1-CzyGsNUK.cjs +1 -0
- package/dist/{retainer1-Xvdlh-B_.js → retainer1-DROmtfRa.js} +84 -76
- package/dist/retainer2-1BaKVlim.cjs +1 -0
- package/dist/{retainer2-D3a-c_BA.js → retainer2-BCAnjUE9.js} +101 -93
- package/dist/retainerRecordList-Ct_yDZds.cjs +1 -0
- package/dist/{retainerRecordList-BJbPsJ4D.js → retainerRecordList-DIdk5Q5E.js} +254 -275
- package/dist/retainerRecordListAPP-Bi6Ax0r6.js +1219 -0
- package/dist/retainerRecordListAPP-DUqNtCCN.cjs +1 -0
- package/dist/{ringTopN-BFKlXqGX.js → ringTopN-BSWAdbso.js} +5 -5
- package/dist/{ringTopN-CsouIsk1.cjs → ringTopN-CIusnN5O.cjs} +1 -1
- package/dist/{riskRegionTable-DttMvHe5.cjs → riskRegionTable-0fHQGnVM.cjs} +1 -1
- package/dist/{riskRegionTable-B6k4uM0_.js → riskRegionTable-Lmup8bDM.js} +7 -7
- package/dist/{sankey-CAuBQaYh.cjs → sankey-D8Erc_QS.cjs} +1 -1
- package/dist/{sankey-DEQK7uU6.js → sankey-D99KciIH.js} +10 -10
- package/dist/{sausage-xU3hOdxD.js → sausage-DTfIyvVP.js} +1 -1
- package/dist/{scd-D5TicpCZ.js → scd-0yZCqQT2.js} +456 -449
- package/dist/scd-Bkse6tqJ.cjs +1 -0
- package/dist/{sectorHelper-DIlWFMnU.js → sectorHelper-Ba-1dnRr.js} +1 -1
- package/dist/{sideMenu-D-73DoYb.cjs → sideMenu-B8Wf4m_8.cjs} +1 -1
- package/dist/{sideMenu-ByyrOOYh.js → sideMenu-DZ2bbsp7.js} +2 -2
- package/dist/{slopeStability-BtgMH3oW.js → slopeStability-B8u5QQaS.js} +4 -4
- package/dist/{slopeStability-CTN6Kpva.cjs → slopeStability-D2XSPa-Q.cjs} +1 -1
- package/dist/{speedCurve-CInn7NAC.js → speedCurve-BD8ajqAX.js} +4 -4
- package/dist/{speedCurve-C5NoQCjK.cjs → speedCurve-CMZGeXjF.cjs} +1 -1
- package/dist/{stressFilterBar-Cpfbmllu.cjs → stressFilterBar-Chq7rovQ.cjs} +1 -1
- package/dist/{stressFilterBar-D_QqOHna.js → stressFilterBar-Dpn3RUli.js} +2 -2
- package/dist/{stressTimeCurve-Bp6Cevk1.cjs → stressTimeCurve-D-wPq_W1.cjs} +1 -1
- package/dist/{stressTimeCurve-1HXHUj-F.js → stressTimeCurve-SRlS-9iL.js} +3 -3
- package/dist/{swiper-B8YZ2VQ2.cjs → swiper-BBV8vKRh.cjs} +1 -1
- package/dist/{swiper-D_y4Fj_D.js → swiper-DIFY95yz.js} +2 -2
- package/dist/{terminalConfigList-CHbA4y-S.js → terminalConfigList-Dom3--nE.js} +2 -2
- package/dist/{terminalConfigList-B39cEptG.cjs → terminalConfigList-DwA9ITHL.cjs} +1 -1
- package/dist/terminalList-ClsF5hyg.cjs +1 -0
- package/dist/{terminalList-oJFrGVtT.js → terminalList-DpB3UlZG.js} +77 -77
- package/dist/terminalListAPP-Bu_KM5lV.cjs +1 -0
- package/dist/terminalListAPP-U6qqbtPw.js +1935 -0
- package/dist/{textbox-DPoyxB4u.cjs → textbox-CbF9pAtK.cjs} +1 -1
- package/dist/{textbox-D8nmoGjG.js → textbox-DLDf0rM6.js} +2 -2
- package/dist/{timeQueryBar-uUGotoTx.cjs → timeQueryBar-CE9N3lDg.cjs} +1 -1
- package/dist/{timeQueryBar-DyC0iHq9.js → timeQueryBar-ZAH6gs8Q.js} +1 -1
- package/dist/{timeSeries-BhlqgEOq.cjs → timeSeries-0oO4KLxQ.cjs} +1 -1
- package/dist/{timeSeries-U91gMDDQ.js → timeSeries-DvHAA0wU.js} +19 -19
- package/dist/{timeSeriesCurve-CiRMnZRD.cjs → timeSeriesCurve-BTuPg-3z.cjs} +1 -1
- package/dist/{timeSeriesCurve-DOhIS88N.js → timeSeriesCurve-Dyl9b667.js} +3 -3
- package/dist/{toggleBtn-DE35dkxx.js → toggleBtn-CZoTmwAw.js} +7 -7
- package/dist/{toggleBtn-CuWwHFjD.cjs → toggleBtn-qDOJLJ7K.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-DAbF8oE9.cjs → trajectoryConfigPanel-CxV8Ed97.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-Ye7NY6rd.js → trajectoryConfigPanel-DwZvvYAl.js} +1 -1
- package/dist/{trajectoryScatter-DL7HUNJI.js → trajectoryScatter-CEFp9PB3.js} +6 -6
- package/dist/{trajectoryScatter-Dg99HzM3.cjs → trajectoryScatter-Dd8Ppxae.cjs} +1 -1
- package/dist/{universalConfigPanel-CkyIDl_x.js → universalConfigPanel-BAppgtmC.js} +1 -1
- package/dist/{universalConfigPanel-1svBCvD9.cjs → universalConfigPanel-C7tTPczg.cjs} +1 -1
- package/dist/{universalTable--dpnyNO2.js → universalTable-3JLC8oEV.js} +2 -2
- package/dist/{universalTable-D8w7FQbl.cjs → universalTable-COmdNAnW.cjs} +1 -1
- package/dist/{universalTransition-Bv7ibBUh.js → universalTransition-tYQs2a4D.js} +2 -2
- package/dist/{video-RGIZoUn6.cjs → video-8vSuQilp.cjs} +1 -1
- package/dist/{video-BmMSRRa_.js → video-BtR163lf.js} +2 -2
- package/dist/{videoMonitor-Bo5T0MT_.cjs → videoMonitor-BZwJZvno.cjs} +1 -1
- package/dist/{videoMonitor-uf6tt2E6.js → videoMonitor-CdTNqBTI.js} +2 -2
- package/dist/vlu-AozGL50n.cjs +1 -0
- package/dist/vlu-DqeEDfiN.js +149 -0
- package/dist/{warningOverview-A5AA_vCc.cjs → warningOverview-CRaFyOXe.cjs} +1 -1
- package/dist/{warningOverview-CA0PikjV.js → warningOverview-CV_pqizm.js} +3 -3
- package/dist/{weather-D20MGzuJ.cjs → weather-CLXe9W0L.cjs} +1 -1
- package/dist/{weather-DuseqeNF.js → weather-iTeslV81.js} +2 -2
- package/dist/{windLin-BU6Q87dE.cjs → windLin-BCMqmXdY.cjs} +1 -1
- package/dist/{windLin-D8AUL_dV.js → windLin-u983PAHI.js} +10 -10
- package/package.json +1 -1
- package/dist/BaseComponent-Chnv4fBT.cjs +0 -1
- package/dist/arrayCard-NqoQKcE9.cjs +0 -1
- package/dist/arrayCard-PPDb7U6X.js +0 -131
- package/dist/bar-C38h_mUA.js +0 -246
- package/dist/bar-Cru6WosS.cjs +0 -2
- package/dist/bmp-BXaEkkpa.cjs +0 -1
- package/dist/bmp-BnSOaFEr.js +0 -226
- package/dist/clt-CmPPtp9c.cjs +0 -1
- package/dist/clt-D5i_8-pq.js +0 -293
- package/dist/cmc-8jH3DGv9.cjs +0 -1
- package/dist/cmc-Cjb5w3om.js +0 -269
- package/dist/cmp-CpmGtNal.cjs +0 -6
- package/dist/composite-CbsUYl-u.js +0 -136
- package/dist/composite-Cf24lSyN.cjs +0 -1
- package/dist/composite-CsFgfxih.js +0 -323
- package/dist/composite-DLmzZNIj.cjs +0 -3
- package/dist/controlRecordListAPP-B5d4x_xH.cjs +0 -1
- package/dist/controlRecordListAPP-p_skbQVD.js +0 -502
- package/dist/ctrBtn-OOgL9esv.cjs +0 -1
- package/dist/ctrSet-Btg2T9w6.js +0 -247
- package/dist/ctrSet-CifyJt05.cjs +0 -1
- package/dist/ctrSwitch-C8mwxLPe.cjs +0 -1
- package/dist/ele-cmp-icon-CEP91RUe.js +0 -5
- package/dist/ele-cmp-icon-yUlU6c_Q.cjs +0 -1
- package/dist/evn-BcSenXF3.cjs +0 -1
- package/dist/evn-DTPm72ZM.js +0 -158
- package/dist/gag-1bvAZ5m6.cjs +0 -1
- package/dist/gag-D2obj7AF.js +0 -160
- package/dist/gasStationList-DM-laJsi.js +0 -1239
- package/dist/gasStationList-DjJtXnqL.cjs +0 -1
- package/dist/index-DVqMfQVc.cjs +0 -612
- package/dist/index-mAPVa0s4.cjs +0 -11
- package/dist/install-BBrAry2m.js +0 -8
- package/dist/install-BRjgycz_.cjs +0 -1
- package/dist/install-BamnGDPb.cjs +0 -1
- package/dist/install-D7znHb-b.js +0 -604
- package/dist/install-DWm3j_D3.js +0 -38
- package/dist/mix-control-modal-DwxwW65v.cjs +0 -1
- package/dist/mix-control-modal-Qg_mzyT_.js +0 -145
- package/dist/mixMap-CJzmC0IR.cjs +0 -1
- package/dist/mixMap-E36SDnEa.js +0 -258
- package/dist/mixModel-BMRxhvWn.cjs +0 -3
- package/dist/mixModel-_McJ6OuH.js +0 -251
- package/dist/mixPie-CMOkAe9p.js +0 -168
- package/dist/mixPie-MAKXeYVp.cjs +0 -2
- package/dist/mixiotObjectListApi-BaeBL318.js +0 -82
- package/dist/mixiotObjectListApi-D9OyHNQ3.cjs +0 -1
- package/dist/no-image-icon-CPA7RKkF.cjs +0 -1
- package/dist/no-image-icon-n2ZlEjxS.js +0 -1864
- package/dist/objectList-4rYQk5uq.cjs +0 -1
- package/dist/objectList-D16yLbzD.js +0 -1740
- package/dist/objectListAPP-DCwTyqFp.js +0 -1864
- package/dist/objectListAPP-Db5beOAM.cjs +0 -1
- package/dist/raceBar-CeybrpCB.cjs +0 -4
- package/dist/retainer1-CF2Tr7Zt.cjs +0 -1
- package/dist/retainer2-BQVUhgcH.cjs +0 -1
- package/dist/retainerRecordList-Rqnoz6_6.cjs +0 -1
- package/dist/retainerRecordListAPP-B4IDQK3C.cjs +0 -1
- package/dist/retainerRecordListAPP-CNntGyA-.js +0 -1068
- package/dist/scd-qaap6hGW.cjs +0 -1
- package/dist/staticLine-BC-zj5yZ.cjs +0 -1
- package/dist/staticLine-CLqN4lpU.js +0 -362
- package/dist/terminalList-Vf-Dbybr.cjs +0 -1
- package/dist/terminalListAPP-CdBG8krw.cjs +0 -1
- package/dist/terminalListAPP-DWArp2D4.js +0 -1366
- package/dist/vlu-D8l5zE_P.js +0 -142
- package/dist/vlu-DEo_h1qN.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ne=Object.defineProperty,se=Object.defineProperties;var de=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable;var L=(p,u,c)=>u in p?ne(p,u,{enumerable:!0,configurable:!0,writable:!0,value:c}):p[u]=c,x=(p,u)=>{for(var c in u||(u={}))ie.call(u,c)&&L(p,c,u[c]);if($)for(var c of $(u))re.call(u,c)&&L(p,c,u[c]);return p},A=(p,u)=>se(p,de(u));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/upload/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue");require("html2canvas");const ue=require("./BaseComponent-Chnv4fBT.cjs"),ce=require("./index-DVqMfQVc.cjs"),I=require("./ele-lin-icon-Dke_1AmT.cjs"),me={class:"filter-bar"},pe={class:"filter-left"},ve={class:"filter-group"},Ve={class:"filter-group"},fe={class:"filter-group"},ge={class:"filter-group"},Ne={class:"table-area"},ye={class:"table-action-bar"},be={class:"pagination-bar"},Ce={class:"modal-entries"},Ee={class:"entry-header"},xe={class:"entry-fields"},we={class:"field-group"},ke={class:"field-group"},he={class:"field-group"},_e={class:"field-group"},Se={class:"field-group"},ze={key:0,class:"entry-actions"},Be={class:"coord-section"},Te={class:"entry-bottom"},De={class:"desc-area"},Ue={class:"upload-area"},Me={key:0,class:"file-name"},Fe={DEFAULT_ICON:I.DEFAULT_ICON,ACTIVE_ICON:I.ACTIVE_ICON,NAME_CN:"人工录入",NAME_EN:"Manual Entry",ORDER:13,PLATFORM:["pc","screen"]},Oe={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},fontSize:{value:13,type:"number",label:"字体大小",min:10,max:20},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},qe=[],Re=["object_id","name","fv","fvDeviceName"],$e=["mosaic"],Le={useAlias:!1,multiObject:!1,source:"mosaic"},Ae={DEFAULT:Fe,OPTIONS:Oe,DATA:qe,PARAMS:Re,SOURCE:$e,COMMON:Le},Ie=e.defineComponent(A(x({},Ae),{__name:"manualEntry",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(p){const u=p,c=["张三","李四","王五","赵六","路平"],T=["裂缝写实","出水点","地质构造","岩层分界面","底鼓"],D=["北帮","南帮","东帮","西帮"];class P extends ue.BaseComponent{extractStyles(){var f,d,m,z,B,y;const t=(f=this.props.conf)==null?void 0:f.options,s=((d=t==null?void 0:t.linkChannel)==null?void 0:d.value)||"gnss",r=((m=t==null?void 0:t.customChannel)==null?void 0:m.value)||"";return{bgColor:((z=t==null?void 0:t.bgColor)==null?void 0:z.value)||"#ffffff",textColor:((B=t==null?void 0:t.textColor)==null?void 0:B.value)||"#333333",fontSize:((y=t==null?void 0:t.fontSize)==null?void 0:y.value)||13,linkChannel:s==="custom"&&r?r:s}}onLinkEvent(t){}}const k=new P(u,"manualEntry");k.setupLifecycle();const h=k.getStyle(),n=e.reactive({persons:[],types:[],regions:[],timeRange:null}),v=e.ref([]),N=e.ref([]),U=e.ref([]),C=e.ref(1),_=10,w=e.ref(!1),i=e.ref("add"),S=e.ref(null),g=e.ref([]),Y=e.computed(()=>i.value==="add"?"新增地质写实录入":i.value==="edit"?"修改记录":"查看详情"),M=e.computed(()=>N.value.filter(a=>{if(n.persons.length&&!n.persons.includes(a.person)||n.types.length&&!n.types.includes(a.type)||n.regions.length&&!n.regions.includes(a.region))return!1;if(n.timeRange){const t=new Date(a.time).getTime(),s=new Date(n.timeRange[0]).getTime(),r=new Date(n.timeRange[1]).getTime();if(t<s||t>r)return!1}return!0})),H=e.computed(()=>{const a=(C.value-1)*_;return M.value.slice(a,a+_)}),F=()=>{const a=new Date,t=s=>String(s).padStart(2,"0");return`${a.getFullYear()}-${t(a.getMonth()+1)}-${t(a.getDate())} ${t(a.getHours())}:${t(a.getMinutes())}`},j=()=>{const a=c,t=T,s=D,r=["是","否"],f=[];for(let d=0;d<35;d++)f.push({id:`${Date.now()}-${d}`,time:F(),person:a[d%a.length],type:t[d%t.length],region:s[d%s.length],status:r[d%2],desc:`模拟写实数据 ${d+1}`,coords:[{name:"P1",x:(2450+Math.random()*100).toFixed(2),y:(1300+Math.random()*100).toFixed(2)}],fileName:""});v.value=f,N.value=[...f]},Q=()=>{N.value=v.value.filter(a=>{if(n.persons.length&&!n.persons.includes(a.person)||n.types.length&&!n.types.includes(a.type)||n.regions.length&&!n.regions.includes(a.region))return!1;if(n.timeRange){const t=new Date(a.time).getTime(),s=new Date(n.timeRange[0]).getTime(),r=new Date(n.timeRange[1]).getTime();if(t<s||t>r)return!1}return!0}),C.value=1},W=()=>{n.persons=[],n.types=[],n.regions=[],n.timeRange=null,N.value=[...v.value],C.value=1},G=a=>{U.value=a},X=()=>{if(!U.value.length)return;const a=new Set(U.value.map(t=>t.id));v.value=v.value.filter(t=>!a.has(t.id)),N.value=N.value.filter(t=>!a.has(t.id))},O=()=>({time:F(),person:"",type:"",region:"",status:"否",desc:"",coords:[{name:"P1",x:"",y:""}],fileName:""}),q=(a,t)=>{i.value=a,a==="add"?(S.value=null,g.value=[O()]):t&&(S.value=t.id,g.value=[{time:t.time,person:t.person,type:t.type,region:t.region,status:t.status,desc:t.desc,coords:t.coords.map(s=>x({},s)),fileName:t.fileName}]),w.value=!0},J=()=>{g.value.push(O())},K=a=>{g.value.length>1&&g.value.splice(a,1)},Z=a=>{a.coords.push({name:"",x:"",y:""})},ee=(a,t)=>{a.coords.length>1&&a.coords.splice(t,1)},te=(a,t)=>{a.fileName=(t==null?void 0:t.name)||""},le=()=>{g.value.forEach(a=>{if(i.value==="edit"&&S.value){const t=v.value.findIndex(s=>s.id===S.value);t>=0&&(v.value[t]=x(x({},v.value[t]),a))}else v.value.unshift(x({id:`${Date.now()}-${Math.random()}`},a))}),N.value=[...v.value],w.value=!1};return e.onMounted(()=>{k.init(),j()}),e.onUnmounted(()=>{k.cleanup()}),(a,t)=>{const s=V.ElOption,r=V.ElSelect,f=V.ElDatePicker,d=V.ElButton,m=V.ElTableColumn,z=V.ElTable,B=V.ElPagination,y=V.ElInput,ae=V.ElUpload,oe=V.ElDialog;return e.openBlock(),e.createElementBlock("div",{class:"manual-entry",style:e.normalizeStyle({backgroundColor:e.unref(h).bgColor,color:e.unref(h).textColor,fontSize:e.unref(h).fontSize+"px"})},[e.createElementVNode("div",me,[e.createElementVNode("div",pe,[e.createElementVNode("div",ve,[t[8]||(t[8]=e.createElementVNode("span",{class:"filter-label"},"人员:",-1)),e.createVNode(r,{modelValue:n.persons,"onUpdate:modelValue":t[0]||(t[0]=l=>n.persons=l),multiple:"","collapse-tags":"",size:"small",placeholder:"全部",style:{width:"160px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,l=>e.createVNode(s,{key:l,label:l,value:l},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),e.createElementVNode("div",Ve,[t[9]||(t[9]=e.createElementVNode("span",{class:"filter-label"},"地质写实类型:",-1)),e.createVNode(r,{modelValue:n.types,"onUpdate:modelValue":t[1]||(t[1]=l=>n.types=l),multiple:"","collapse-tags":"",size:"small",placeholder:"全部",style:{width:"170px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(T,l=>e.createVNode(s,{key:l,label:l,value:l},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),e.createElementVNode("div",fe,[t[10]||(t[10]=e.createElementVNode("span",{class:"filter-label"},"区域:",-1)),e.createVNode(r,{modelValue:n.regions,"onUpdate:modelValue":t[2]||(t[2]=l=>n.regions=l),multiple:"","collapse-tags":"",size:"small",placeholder:"全部",style:{width:"140px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(D,l=>e.createVNode(s,{key:l,label:l,value:l},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),e.createElementVNode("div",ge,[t[11]||(t[11]=e.createElementVNode("span",{class:"filter-label"},"时间范围:",-1)),e.createVNode(f,{modelValue:n.timeRange,"onUpdate:modelValue":t[3]||(t[3]=l=>n.timeRange=l),type:"datetimerange",size:"small","range-separator":"至","start-placeholder":"开始","end-placeholder":"结束",style:{width:"340px"},"value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue"])]),e.createVNode(d,{size:"small",type:"primary",onClick:Q},{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode("查询",-1)])]),_:1}),e.createVNode(d,{size:"small",onClick:W},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("重置",-1)])]),_:1})])]),e.createElementVNode("div",Ne,[e.createElementVNode("div",ye,[e.createVNode(d,{size:"small",type:"primary",onClick:t[4]||(t[4]=l=>q("add"))},{default:e.withCtx(()=>[...t[14]||(t[14]=[e.createTextVNode("+ 新增",-1)])]),_:1}),e.createVNode(d,{size:"small",type:"danger",onClick:X},{default:e.withCtx(()=>[...t[15]||(t[15]=[e.createTextVNode("删除选中",-1)])]),_:1})]),e.createVNode(z,{data:H.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},onSelectionChange:G},{default:e.withCtx(()=>[e.createVNode(m,{type:"selection",width:"40"}),e.createVNode(m,{label:"序号",width:"70",align:"center"},{default:e.withCtx(({$index:l})=>[e.createTextVNode(e.toDisplayString((C.value-1)*_+l+1),1)]),_:1}),e.createVNode(m,{prop:"time",label:"写实时间","min-width":"160"}),e.createVNode(m,{prop:"person",label:"人员","min-width":"80",align:"center"}),e.createVNode(m,{prop:"type",label:"类型","min-width":"110",align:"center"}),e.createVNode(m,{prop:"region",label:"区域","min-width":"80",align:"center"}),e.createVNode(m,{label:"坐标点数量","min-width":"100",align:"center"},{default:e.withCtx(({row:l})=>{var E;return[e.createTextVNode(e.toDisplayString(((E=l.coords)==null?void 0:E.length)||0),1)]}),_:1}),e.createVNode(m,{label:"处理状态","min-width":"90",align:"center"},{default:e.withCtx(({row:l})=>[e.createElementVNode("span",{style:e.normalizeStyle({color:l.status==="是"?"#67C23A":"#F56C6C",fontWeight:"bold"})},e.toDisplayString(l.status),5)]),_:1}),e.createVNode(m,{label:"操作","min-width":"100",align:"center"},{default:e.withCtx(({row:l})=>[e.createVNode(d,{link:"",type:"primary",size:"small",onClick:E=>q("edit",l)},{default:e.withCtx(()=>[...t[16]||(t[16]=[e.createTextVNode("修改",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]),e.createElementVNode("div",be,[e.createVNode(B,{small:"",layout:"prev, pager, next",total:M.value.length,"page-size":_,"current-page":C.value,"onUpdate:currentPage":t[5]||(t[5]=l=>C.value=l)},null,8,["total","current-page"])])]),e.createVNode(oe,{modelValue:w.value,"onUpdate:modelValue":t[7]||(t[7]=l=>w.value=l),title:Y.value,width:"90%",top:"3vh","close-on-click-modal":!1,"destroy-on-close":"",style:e.normalizeStyle({fontSize:e.unref(h).fontSize+"px"}),class:"manual-entry-dialog"},{footer:e.withCtx(()=>[e.createVNode(d,{onClick:t[6]||(t[6]=l=>w.value=!1)},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("取消",-1)])]),_:1}),i.value!=="view"?(e.openBlock(),e.createBlock(d,{key:0,type:"primary",onClick:le},{default:e.withCtx(()=>[...t[30]||(t[30]=[e.createTextVNode("保存并提交",-1)])]),_:1})):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",Ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(l,E)=>(e.openBlock(),e.createElementBlock("div",{key:E,class:"entry-block"},[e.createElementVNode("div",Ee,[e.createElementVNode("div",xe,[e.createElementVNode("div",we,[t[17]||(t[17]=e.createElementVNode("span",null,"写实时间:",-1)),e.createVNode(f,{modelValue:l.time,"onUpdate:modelValue":o=>l.time=o,type:"datetime",size:"small",disabled:i.value==="view",style:{width:"200px"},"value-format":"YYYY-MM-DD HH:mm"},null,8,["modelValue","onUpdate:modelValue","disabled"])]),e.createElementVNode("div",ke,[t[18]||(t[18]=e.createElementVNode("span",null,"写实人员:",-1)),e.createVNode(r,{modelValue:l.person,"onUpdate:modelValue":o=>l.person=o,size:"small",disabled:i.value==="view",style:{width:"110px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,o=>e.createVNode(s,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])]),e.createElementVNode("div",he,[t[19]||(t[19]=e.createElementVNode("span",null,"写实类型:",-1)),e.createVNode(r,{modelValue:l.type,"onUpdate:modelValue":o=>l.type=o,size:"small",disabled:i.value==="view",style:{width:"130px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(T,o=>e.createVNode(s,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])]),e.createElementVNode("div",_e,[t[20]||(t[20]=e.createElementVNode("span",null,"区域:",-1)),e.createVNode(r,{modelValue:l.region,"onUpdate:modelValue":o=>l.region=o,size:"small",disabled:i.value==="view",style:{width:"100px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(D,o=>e.createVNode(s,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])]),e.createElementVNode("div",Se,[t[21]||(t[21]=e.createElementVNode("span",null,"是否处理:",-1)),e.createVNode(r,{modelValue:l.status,"onUpdate:modelValue":o=>l.status=o,size:"small",disabled:i.value==="view",style:{width:"80px"}},{default:e.withCtx(()=>[e.createVNode(s,{label:"是",value:"是"}),e.createVNode(s,{label:"否",value:"否"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])])]),i.value!=="view"?(e.openBlock(),e.createElementBlock("div",ze,[e.createVNode(d,{size:"small",type:"primary",onClick:J},{default:e.withCtx(()=>[...t[22]||(t[22]=[e.createTextVNode("+",-1)])]),_:1}),e.createVNode(d,{size:"small",type:"danger",disabled:g.value.length<=1,onClick:o=>K(E)},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("-",-1)])]),_:1},8,["disabled","onClick"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Be,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.coords,(o,R)=>(e.openBlock(),e.createElementBlock("div",{key:R,class:"coord-row"},[e.createVNode(y,{modelValue:o.name,"onUpdate:modelValue":b=>o.name=b,size:"small",placeholder:"点名",disabled:i.value==="view",style:{width:"70px"}},null,8,["modelValue","onUpdate:modelValue","disabled"]),e.createVNode(y,{modelValue:o.x,"onUpdate:modelValue":b=>o.x=b,size:"small",placeholder:"X",disabled:i.value==="view",style:{width:"90px"}},null,8,["modelValue","onUpdate:modelValue","disabled"]),e.createVNode(y,{modelValue:o.y,"onUpdate:modelValue":b=>o.y=b,size:"small",placeholder:"Y",disabled:i.value==="view",style:{width:"90px"}},null,8,["modelValue","onUpdate:modelValue","disabled"]),i.value!=="view"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(d,{size:"small",type:"primary",circle:"",onClick:b=>Z(l)},{default:e.withCtx(()=>[...t[24]||(t[24]=[e.createTextVNode("+",-1)])]),_:1},8,["onClick"]),e.createVNode(d,{size:"small",type:"danger",circle:"",disabled:l.coords.length<=1,onClick:b=>ee(l,R)},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("-",-1)])]),_:1},8,["disabled","onClick"])],64)):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",Te,[e.createElementVNode("div",De,[t[26]||(t[26]=e.createElementVNode("span",null,"描述:",-1)),e.createVNode(y,{modelValue:l.desc,"onUpdate:modelValue":o=>l.desc=o,type:"textarea",rows:3,disabled:i.value==="view"},null,8,["modelValue","onUpdate:modelValue","disabled"])]),e.createElementVNode("div",Ue,[t[28]||(t[28]=e.createElementVNode("span",null,"上传照片/视频:",-1)),e.createVNode(ae,{action:"#","auto-upload":!1,disabled:i.value==="view","on-change":o=>te(l,o)},{default:e.withCtx(()=>[e.createVNode(d,{size:"small",disabled:i.value==="view"},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("+ 点击上传",-1)])]),_:1},8,["disabled"])]),_:1},8,["disabled","on-change"]),l.fileName?(e.openBlock(),e.createElementBlock("span",Me,"📄 "+e.toDisplayString(l.fileName),1)):e.createCommentVNode("",!0)])])]))),128))])]),_:1},8,["modelValue","title","style"]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),Pe=ce._export_sfc(Ie,[["__scopeId","data-v-0cca66d9"]]);exports.default=Pe;
|
|
1
|
+
"use strict";var ne=Object.defineProperty,se=Object.defineProperties;var de=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable;var L=(p,u,c)=>u in p?ne(p,u,{enumerable:!0,configurable:!0,writable:!0,value:c}):p[u]=c,x=(p,u)=>{for(var c in u||(u={}))ie.call(u,c)&&L(p,c,u[c]);if($)for(var c of $(u))re.call(u,c)&&L(p,c,u[c]);return p},A=(p,u)=>se(p,de(u));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/upload/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue");require("html2canvas");const ue=require("./BaseComponent-BXAJUoaf.cjs"),ce=require("./index-Cvu9nAQq.cjs"),I=require("./ele-lin-icon-Dke_1AmT.cjs"),me={class:"filter-bar"},pe={class:"filter-left"},ve={class:"filter-group"},Ve={class:"filter-group"},fe={class:"filter-group"},ge={class:"filter-group"},Ne={class:"table-area"},ye={class:"table-action-bar"},be={class:"pagination-bar"},Ce={class:"modal-entries"},Ee={class:"entry-header"},xe={class:"entry-fields"},we={class:"field-group"},ke={class:"field-group"},he={class:"field-group"},_e={class:"field-group"},Se={class:"field-group"},ze={key:0,class:"entry-actions"},Be={class:"coord-section"},Te={class:"entry-bottom"},De={class:"desc-area"},Ue={class:"upload-area"},Me={key:0,class:"file-name"},Fe={DEFAULT_ICON:I.DEFAULT_ICON,ACTIVE_ICON:I.ACTIVE_ICON,NAME_CN:"人工录入",NAME_EN:"Manual Entry",ORDER:13,PLATFORM:["pc","screen"]},Oe={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},fontSize:{value:13,type:"number",label:"字体大小",min:10,max:20},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},qe=[],Re=["object_id","name","fv","fvDeviceName"],$e=["mosaic"],Le={useAlias:!1,multiObject:!1,source:"mosaic"},Ae={DEFAULT:Fe,OPTIONS:Oe,DATA:qe,PARAMS:Re,SOURCE:$e,COMMON:Le},Ie=e.defineComponent(A(x({},Ae),{__name:"manualEntry",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(p){const u=p,c=["张三","李四","王五","赵六","路平"],T=["裂缝写实","出水点","地质构造","岩层分界面","底鼓"],D=["北帮","南帮","东帮","西帮"];class P extends ue.BaseComponent{extractStyles(){var f,d,m,z,B,y;const t=(f=this.props.conf)==null?void 0:f.options,s=((d=t==null?void 0:t.linkChannel)==null?void 0:d.value)||"gnss",r=((m=t==null?void 0:t.customChannel)==null?void 0:m.value)||"";return{bgColor:((z=t==null?void 0:t.bgColor)==null?void 0:z.value)||"#ffffff",textColor:((B=t==null?void 0:t.textColor)==null?void 0:B.value)||"#333333",fontSize:((y=t==null?void 0:t.fontSize)==null?void 0:y.value)||13,linkChannel:s==="custom"&&r?r:s}}onLinkEvent(t){}}const k=new P(u,"manualEntry");k.setupLifecycle();const h=k.getStyle(),n=e.reactive({persons:[],types:[],regions:[],timeRange:null}),v=e.ref([]),N=e.ref([]),U=e.ref([]),C=e.ref(1),_=10,w=e.ref(!1),i=e.ref("add"),S=e.ref(null),g=e.ref([]),Y=e.computed(()=>i.value==="add"?"新增地质写实录入":i.value==="edit"?"修改记录":"查看详情"),M=e.computed(()=>N.value.filter(a=>{if(n.persons.length&&!n.persons.includes(a.person)||n.types.length&&!n.types.includes(a.type)||n.regions.length&&!n.regions.includes(a.region))return!1;if(n.timeRange){const t=new Date(a.time).getTime(),s=new Date(n.timeRange[0]).getTime(),r=new Date(n.timeRange[1]).getTime();if(t<s||t>r)return!1}return!0})),H=e.computed(()=>{const a=(C.value-1)*_;return M.value.slice(a,a+_)}),F=()=>{const a=new Date,t=s=>String(s).padStart(2,"0");return`${a.getFullYear()}-${t(a.getMonth()+1)}-${t(a.getDate())} ${t(a.getHours())}:${t(a.getMinutes())}`},j=()=>{const a=c,t=T,s=D,r=["是","否"],f=[];for(let d=0;d<35;d++)f.push({id:`${Date.now()}-${d}`,time:F(),person:a[d%a.length],type:t[d%t.length],region:s[d%s.length],status:r[d%2],desc:`模拟写实数据 ${d+1}`,coords:[{name:"P1",x:(2450+Math.random()*100).toFixed(2),y:(1300+Math.random()*100).toFixed(2)}],fileName:""});v.value=f,N.value=[...f]},Q=()=>{N.value=v.value.filter(a=>{if(n.persons.length&&!n.persons.includes(a.person)||n.types.length&&!n.types.includes(a.type)||n.regions.length&&!n.regions.includes(a.region))return!1;if(n.timeRange){const t=new Date(a.time).getTime(),s=new Date(n.timeRange[0]).getTime(),r=new Date(n.timeRange[1]).getTime();if(t<s||t>r)return!1}return!0}),C.value=1},W=()=>{n.persons=[],n.types=[],n.regions=[],n.timeRange=null,N.value=[...v.value],C.value=1},G=a=>{U.value=a},X=()=>{if(!U.value.length)return;const a=new Set(U.value.map(t=>t.id));v.value=v.value.filter(t=>!a.has(t.id)),N.value=N.value.filter(t=>!a.has(t.id))},O=()=>({time:F(),person:"",type:"",region:"",status:"否",desc:"",coords:[{name:"P1",x:"",y:""}],fileName:""}),q=(a,t)=>{i.value=a,a==="add"?(S.value=null,g.value=[O()]):t&&(S.value=t.id,g.value=[{time:t.time,person:t.person,type:t.type,region:t.region,status:t.status,desc:t.desc,coords:t.coords.map(s=>x({},s)),fileName:t.fileName}]),w.value=!0},J=()=>{g.value.push(O())},K=a=>{g.value.length>1&&g.value.splice(a,1)},Z=a=>{a.coords.push({name:"",x:"",y:""})},ee=(a,t)=>{a.coords.length>1&&a.coords.splice(t,1)},te=(a,t)=>{a.fileName=(t==null?void 0:t.name)||""},le=()=>{g.value.forEach(a=>{if(i.value==="edit"&&S.value){const t=v.value.findIndex(s=>s.id===S.value);t>=0&&(v.value[t]=x(x({},v.value[t]),a))}else v.value.unshift(x({id:`${Date.now()}-${Math.random()}`},a))}),N.value=[...v.value],w.value=!1};return e.onMounted(()=>{k.init(),j()}),e.onUnmounted(()=>{k.cleanup()}),(a,t)=>{const s=V.ElOption,r=V.ElSelect,f=V.ElDatePicker,d=V.ElButton,m=V.ElTableColumn,z=V.ElTable,B=V.ElPagination,y=V.ElInput,ae=V.ElUpload,oe=V.ElDialog;return e.openBlock(),e.createElementBlock("div",{class:"manual-entry",style:e.normalizeStyle({backgroundColor:e.unref(h).bgColor,color:e.unref(h).textColor,fontSize:e.unref(h).fontSize+"px"})},[e.createElementVNode("div",me,[e.createElementVNode("div",pe,[e.createElementVNode("div",ve,[t[8]||(t[8]=e.createElementVNode("span",{class:"filter-label"},"人员:",-1)),e.createVNode(r,{modelValue:n.persons,"onUpdate:modelValue":t[0]||(t[0]=l=>n.persons=l),multiple:"","collapse-tags":"",size:"small",placeholder:"全部",style:{width:"160px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,l=>e.createVNode(s,{key:l,label:l,value:l},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),e.createElementVNode("div",Ve,[t[9]||(t[9]=e.createElementVNode("span",{class:"filter-label"},"地质写实类型:",-1)),e.createVNode(r,{modelValue:n.types,"onUpdate:modelValue":t[1]||(t[1]=l=>n.types=l),multiple:"","collapse-tags":"",size:"small",placeholder:"全部",style:{width:"170px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(T,l=>e.createVNode(s,{key:l,label:l,value:l},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),e.createElementVNode("div",fe,[t[10]||(t[10]=e.createElementVNode("span",{class:"filter-label"},"区域:",-1)),e.createVNode(r,{modelValue:n.regions,"onUpdate:modelValue":t[2]||(t[2]=l=>n.regions=l),multiple:"","collapse-tags":"",size:"small",placeholder:"全部",style:{width:"140px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(D,l=>e.createVNode(s,{key:l,label:l,value:l},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),e.createElementVNode("div",ge,[t[11]||(t[11]=e.createElementVNode("span",{class:"filter-label"},"时间范围:",-1)),e.createVNode(f,{modelValue:n.timeRange,"onUpdate:modelValue":t[3]||(t[3]=l=>n.timeRange=l),type:"datetimerange",size:"small","range-separator":"至","start-placeholder":"开始","end-placeholder":"结束",style:{width:"340px"},"value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue"])]),e.createVNode(d,{size:"small",type:"primary",onClick:Q},{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode("查询",-1)])]),_:1}),e.createVNode(d,{size:"small",onClick:W},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("重置",-1)])]),_:1})])]),e.createElementVNode("div",Ne,[e.createElementVNode("div",ye,[e.createVNode(d,{size:"small",type:"primary",onClick:t[4]||(t[4]=l=>q("add"))},{default:e.withCtx(()=>[...t[14]||(t[14]=[e.createTextVNode("+ 新增",-1)])]),_:1}),e.createVNode(d,{size:"small",type:"danger",onClick:X},{default:e.withCtx(()=>[...t[15]||(t[15]=[e.createTextVNode("删除选中",-1)])]),_:1})]),e.createVNode(z,{data:H.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},onSelectionChange:G},{default:e.withCtx(()=>[e.createVNode(m,{type:"selection",width:"40"}),e.createVNode(m,{label:"序号",width:"70",align:"center"},{default:e.withCtx(({$index:l})=>[e.createTextVNode(e.toDisplayString((C.value-1)*_+l+1),1)]),_:1}),e.createVNode(m,{prop:"time",label:"写实时间","min-width":"160"}),e.createVNode(m,{prop:"person",label:"人员","min-width":"80",align:"center"}),e.createVNode(m,{prop:"type",label:"类型","min-width":"110",align:"center"}),e.createVNode(m,{prop:"region",label:"区域","min-width":"80",align:"center"}),e.createVNode(m,{label:"坐标点数量","min-width":"100",align:"center"},{default:e.withCtx(({row:l})=>{var E;return[e.createTextVNode(e.toDisplayString(((E=l.coords)==null?void 0:E.length)||0),1)]}),_:1}),e.createVNode(m,{label:"处理状态","min-width":"90",align:"center"},{default:e.withCtx(({row:l})=>[e.createElementVNode("span",{style:e.normalizeStyle({color:l.status==="是"?"#67C23A":"#F56C6C",fontWeight:"bold"})},e.toDisplayString(l.status),5)]),_:1}),e.createVNode(m,{label:"操作","min-width":"100",align:"center"},{default:e.withCtx(({row:l})=>[e.createVNode(d,{link:"",type:"primary",size:"small",onClick:E=>q("edit",l)},{default:e.withCtx(()=>[...t[16]||(t[16]=[e.createTextVNode("修改",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]),e.createElementVNode("div",be,[e.createVNode(B,{small:"",layout:"prev, pager, next",total:M.value.length,"page-size":_,"current-page":C.value,"onUpdate:currentPage":t[5]||(t[5]=l=>C.value=l)},null,8,["total","current-page"])])]),e.createVNode(oe,{modelValue:w.value,"onUpdate:modelValue":t[7]||(t[7]=l=>w.value=l),title:Y.value,width:"90%",top:"3vh","close-on-click-modal":!1,"destroy-on-close":"",style:e.normalizeStyle({fontSize:e.unref(h).fontSize+"px"}),class:"manual-entry-dialog"},{footer:e.withCtx(()=>[e.createVNode(d,{onClick:t[6]||(t[6]=l=>w.value=!1)},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("取消",-1)])]),_:1}),i.value!=="view"?(e.openBlock(),e.createBlock(d,{key:0,type:"primary",onClick:le},{default:e.withCtx(()=>[...t[30]||(t[30]=[e.createTextVNode("保存并提交",-1)])]),_:1})):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",Ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(l,E)=>(e.openBlock(),e.createElementBlock("div",{key:E,class:"entry-block"},[e.createElementVNode("div",Ee,[e.createElementVNode("div",xe,[e.createElementVNode("div",we,[t[17]||(t[17]=e.createElementVNode("span",null,"写实时间:",-1)),e.createVNode(f,{modelValue:l.time,"onUpdate:modelValue":o=>l.time=o,type:"datetime",size:"small",disabled:i.value==="view",style:{width:"200px"},"value-format":"YYYY-MM-DD HH:mm"},null,8,["modelValue","onUpdate:modelValue","disabled"])]),e.createElementVNode("div",ke,[t[18]||(t[18]=e.createElementVNode("span",null,"写实人员:",-1)),e.createVNode(r,{modelValue:l.person,"onUpdate:modelValue":o=>l.person=o,size:"small",disabled:i.value==="view",style:{width:"110px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,o=>e.createVNode(s,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])]),e.createElementVNode("div",he,[t[19]||(t[19]=e.createElementVNode("span",null,"写实类型:",-1)),e.createVNode(r,{modelValue:l.type,"onUpdate:modelValue":o=>l.type=o,size:"small",disabled:i.value==="view",style:{width:"130px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(T,o=>e.createVNode(s,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])]),e.createElementVNode("div",_e,[t[20]||(t[20]=e.createElementVNode("span",null,"区域:",-1)),e.createVNode(r,{modelValue:l.region,"onUpdate:modelValue":o=>l.region=o,size:"small",disabled:i.value==="view",style:{width:"100px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(D,o=>e.createVNode(s,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])]),e.createElementVNode("div",Se,[t[21]||(t[21]=e.createElementVNode("span",null,"是否处理:",-1)),e.createVNode(r,{modelValue:l.status,"onUpdate:modelValue":o=>l.status=o,size:"small",disabled:i.value==="view",style:{width:"80px"}},{default:e.withCtx(()=>[e.createVNode(s,{label:"是",value:"是"}),e.createVNode(s,{label:"否",value:"否"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])])]),i.value!=="view"?(e.openBlock(),e.createElementBlock("div",ze,[e.createVNode(d,{size:"small",type:"primary",onClick:J},{default:e.withCtx(()=>[...t[22]||(t[22]=[e.createTextVNode("+",-1)])]),_:1}),e.createVNode(d,{size:"small",type:"danger",disabled:g.value.length<=1,onClick:o=>K(E)},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("-",-1)])]),_:1},8,["disabled","onClick"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Be,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.coords,(o,R)=>(e.openBlock(),e.createElementBlock("div",{key:R,class:"coord-row"},[e.createVNode(y,{modelValue:o.name,"onUpdate:modelValue":b=>o.name=b,size:"small",placeholder:"点名",disabled:i.value==="view",style:{width:"70px"}},null,8,["modelValue","onUpdate:modelValue","disabled"]),e.createVNode(y,{modelValue:o.x,"onUpdate:modelValue":b=>o.x=b,size:"small",placeholder:"X",disabled:i.value==="view",style:{width:"90px"}},null,8,["modelValue","onUpdate:modelValue","disabled"]),e.createVNode(y,{modelValue:o.y,"onUpdate:modelValue":b=>o.y=b,size:"small",placeholder:"Y",disabled:i.value==="view",style:{width:"90px"}},null,8,["modelValue","onUpdate:modelValue","disabled"]),i.value!=="view"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(d,{size:"small",type:"primary",circle:"",onClick:b=>Z(l)},{default:e.withCtx(()=>[...t[24]||(t[24]=[e.createTextVNode("+",-1)])]),_:1},8,["onClick"]),e.createVNode(d,{size:"small",type:"danger",circle:"",disabled:l.coords.length<=1,onClick:b=>ee(l,R)},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("-",-1)])]),_:1},8,["disabled","onClick"])],64)):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",Te,[e.createElementVNode("div",De,[t[26]||(t[26]=e.createElementVNode("span",null,"描述:",-1)),e.createVNode(y,{modelValue:l.desc,"onUpdate:modelValue":o=>l.desc=o,type:"textarea",rows:3,disabled:i.value==="view"},null,8,["modelValue","onUpdate:modelValue","disabled"])]),e.createElementVNode("div",Ue,[t[28]||(t[28]=e.createElementVNode("span",null,"上传照片/视频:",-1)),e.createVNode(ae,{action:"#","auto-upload":!1,disabled:i.value==="view","on-change":o=>te(l,o)},{default:e.withCtx(()=>[e.createVNode(d,{size:"small",disabled:i.value==="view"},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("+ 点击上传",-1)])]),_:1},8,["disabled"])]),_:1},8,["disabled","on-change"]),l.fileName?(e.openBlock(),e.createElementBlock("span",Me,"📄 "+e.toDisplayString(l.fileName),1)):e.createCommentVNode("",!0)])])]))),128))])]),_:1},8,["modelValue","title","style"]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),Pe=ce._export_sfc(Ie,[["__scopeId","data-v-0cca66d9"]]);exports.default=Pe;
|
|
@@ -12,9 +12,9 @@ var H = (p, i, d) => i in p ? c2(p, i, { enumerable: !0, configurable: !0, writa
|
|
|
12
12
|
}, K = (p, i) => i2(p, s2(i));
|
|
13
13
|
import { defineComponent as d2, useCssVars as v2, unref as z, ref as f, computed as B, watch as M, onMounted as p2, onBeforeUnmount as m2, openBlock as I, createElementBlock as j, normalizeStyle as g2, createElementVNode as u, createCommentVNode as Q, toDisplayString as N, renderSlot as C2 } from "vue";
|
|
14
14
|
import "html2canvas";
|
|
15
|
-
import { B as f2 } from "./BaseComponent-
|
|
16
|
-
import {
|
|
17
|
-
import { L as C } from "./leaflet-src-
|
|
15
|
+
import { B as f2 } from "./BaseComponent-BlCsb-HW.js";
|
|
16
|
+
import { l as h2, _ as L2 } from "./index-DomNEEyv.js";
|
|
17
|
+
import { L as C } from "./leaflet-src-BXugYdBe.js";
|
|
18
18
|
/* empty css */
|
|
19
19
|
const b2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e轨迹%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-541.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M206.649699,546.054215%20C208.165988,546.054215%20209.395183,547.28341%20209.395183,548.799699%20C209.395183,550.261835%20208.25222,551.457018%20206.811017,551.540523%20L206.649699,551.545183%20L201.745484,551.545183%20C200.940182,551.545183%20200.287356,552.19801%20200.287356,553.003311%20C200.287356,553.763874%20200.869661,554.388433%20201.612765,554.455481%20L201.745484,554.46144%20L210.853311,554.46144%20C211.208805,554.46144%20211.49699,554.749624%20211.49699,555.105118%20C211.49699,555.430987%20211.254835,555.700298%20210.940655,555.74292%20L210.853311,555.748796%20L201.745484,555.748796%20C200.229195,555.748796%20199,554.519601%20199,553.003311%20C199,551.541175%20200.142963,550.345993%20201.584166,550.262488%20L201.745484,550.257827%20L206.649699,550.257827%20C207.455001,550.257827%20208.107827,549.605001%20208.107827,548.799699%20C208.107827,548.039136%20207.525522,547.414578%20206.782418,547.34753%20L206.649699,547.341571%20L203.847291,547.341571%20C203.491797,547.341571%20203.203612,547.053386%20203.203612,546.697893%20C203.203612,546.372024%20203.445768,546.102713%20203.759947,546.060091%20L203.847291,546.054215%20L206.649699,546.054215%20Z%20M212.923248,550.97951%20C213.859155,550.97951%20214.617829,551.738184%20214.617829,552.674091%20C214.617829,553.240686%20214.229423,554.017499%20213.452861,555.141728%20C213.196963,555.512192%20212.649533,555.512192%20212.393635,555.141728%20C211.617073,554.017499%20211.228667,553.240686%20211.228667,552.674091%20C211.228667,551.738184%20211.987341,550.97951%20212.923248,550.97951%20Z%20M212.923248,552.266866%20C212.698328,552.266866%20212.516023,552.449171%20212.516023,552.674091%20C212.516023,552.798465%20212.628414,553.072996%20212.853249,553.468048%20L212.853249,553.468048%20L212.923117,553.588377%20L212.993247,553.468048%20L213.12648,553.22286%20C213.243054,552.996178%20213.309659,552.825988%20213.32631,552.72107%20L213.32631,552.72107%20L213.330473,552.674091%20C213.330473,552.449171%20213.148168,552.266866%20212.923248,552.266866%20Z%20M201.694581,542.551204%20C202.630489,542.551204%20203.389163,543.309878%20203.389163,544.245785%20C203.389163,544.661288%20203.180286,545.189842%20202.762633,545.885553%20L202.762633,545.885553%20L202.514117,546.281934%20C202.424377,546.419804%20202.327736,546.563525%20202.224194,546.713422%20C201.968296,547.083886%20201.420867,547.083886%20201.164969,546.713422%20C200.388406,545.589193%20200,544.81238%20200,544.245785%20C200,543.309878%20200.758674,542.551204%20201.694581,542.551204%20Z%20M201.694581,543.83856%20C201.469661,543.83856%20201.287356,544.020865%20201.287356,544.245785%20C201.287356,544.370159%20201.399747,544.64469%20201.624582,545.039742%20L201.624582,545.039742%20L201.693793,545.15994%20L201.764581,545.039742%20L201.897813,544.794554%20C202.014388,544.567872%20202.080993,544.397682%20202.097644,544.292764%20L202.097644,544.292764%20L202.101806,544.245785%20C202.101806,544.020865%20201.919501,543.83856%20201.694581,543.83856%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", y2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e轨迹%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-541.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M206.649699,546.054215%20C208.165988,546.054215%20209.395183,547.28341%20209.395183,548.799699%20C209.395183,550.261835%20208.25222,551.457018%20206.811017,551.540523%20L206.649699,551.545183%20L201.745484,551.545183%20C200.940182,551.545183%20200.287356,552.19801%20200.287356,553.003311%20C200.287356,553.763874%20200.869661,554.388433%20201.612765,554.455481%20L201.745484,554.46144%20L210.853311,554.46144%20C211.208805,554.46144%20211.49699,554.749624%20211.49699,555.105118%20C211.49699,555.430987%20211.254835,555.700298%20210.940655,555.74292%20L210.853311,555.748796%20L201.745484,555.748796%20C200.229195,555.748796%20199,554.519601%20199,553.003311%20C199,551.541175%20200.142963,550.345993%20201.584166,550.262488%20L201.745484,550.257827%20L206.649699,550.257827%20C207.455001,550.257827%20208.107827,549.605001%20208.107827,548.799699%20C208.107827,548.039136%20207.525522,547.414578%20206.782418,547.34753%20L206.649699,547.341571%20L203.847291,547.341571%20C203.491797,547.341571%20203.203612,547.053386%20203.203612,546.697893%20C203.203612,546.372024%20203.445768,546.102713%20203.759947,546.060091%20L203.847291,546.054215%20L206.649699,546.054215%20Z%20M212.923248,550.97951%20C213.859155,550.97951%20214.617829,551.738184%20214.617829,552.674091%20C214.617829,553.240686%20214.229423,554.017499%20213.452861,555.141728%20C213.196963,555.512192%20212.649533,555.512192%20212.393635,555.141728%20C211.617073,554.017499%20211.228667,553.240686%20211.228667,552.674091%20C211.228667,551.738184%20211.987341,550.97951%20212.923248,550.97951%20Z%20M212.923248,552.266866%20C212.698328,552.266866%20212.516023,552.449171%20212.516023,552.674091%20C212.516023,552.798465%20212.628414,553.072996%20212.853249,553.468048%20L212.853249,553.468048%20L212.923117,553.588377%20L212.993247,553.468048%20L213.12648,553.22286%20C213.243054,552.996178%20213.309659,552.825988%20213.32631,552.72107%20L213.32631,552.72107%20L213.330473,552.674091%20C213.330473,552.449171%20213.148168,552.266866%20212.923248,552.266866%20Z%20M201.694581,542.551204%20C202.630489,542.551204%20203.389163,543.309878%20203.389163,544.245785%20C203.389163,544.661288%20203.180286,545.189842%20202.762633,545.885553%20L202.762633,545.885553%20L202.514117,546.281934%20C202.424377,546.419804%20202.327736,546.563525%20202.224194,546.713422%20C201.968296,547.083886%20201.420867,547.083886%20201.164969,546.713422%20C200.388406,545.589193%20200,544.81238%20200,544.245785%20C200,543.309878%20200.758674,542.551204%20201.694581,542.551204%20Z%20M201.694581,543.83856%20C201.469661,543.83856%20201.287356,544.020865%20201.287356,544.245785%20C201.287356,544.370159%20201.399747,544.64469%20201.624582,545.039742%20L201.624582,545.039742%20L201.693793,545.15994%20L201.764581,545.039742%20L201.897813,544.794554%20C202.014388,544.567872%20202.080993,544.397682%20202.097644,544.292764%20L202.097644,544.292764%20L202.101806,544.245785%20C202.101806,544.020865%20201.919501,543.83856%20201.694581,543.83856%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", x2 = {
|
|
20
20
|
key: 0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Y=Object.defineProperty,e2=Object.defineProperties;var t2=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var l2=Object.prototype.hasOwnProperty,n2=Object.prototype.propertyIsEnumerable;var D=(m,i,d)=>i in m?Y(m,i,{enumerable:!0,configurable:!0,writable:!0,value:d}):m[i]=d,U=(m,i)=>{for(var d in i||(i={}))l2.call(i,d)&&D(m,d,i[d]);if($)for(var d of $(i))n2.call(i,d)&&D(m,d,i[d]);return m},q=(m,i)=>e2(m,t2(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue");require("html2canvas");const o2=require("./BaseComponent-Chnv4fBT.cjs"),P=require("./index-DVqMfQVc.cjs"),C=require("./leaflet-src-CxFQ_Cn7.cjs");;/* empty css */const a2="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e轨迹%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-541.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M206.649699,546.054215%20C208.165988,546.054215%20209.395183,547.28341%20209.395183,548.799699%20C209.395183,550.261835%20208.25222,551.457018%20206.811017,551.540523%20L206.649699,551.545183%20L201.745484,551.545183%20C200.940182,551.545183%20200.287356,552.19801%20200.287356,553.003311%20C200.287356,553.763874%20200.869661,554.388433%20201.612765,554.455481%20L201.745484,554.46144%20L210.853311,554.46144%20C211.208805,554.46144%20211.49699,554.749624%20211.49699,555.105118%20C211.49699,555.430987%20211.254835,555.700298%20210.940655,555.74292%20L210.853311,555.748796%20L201.745484,555.748796%20C200.229195,555.748796%20199,554.519601%20199,553.003311%20C199,551.541175%20200.142963,550.345993%20201.584166,550.262488%20L201.745484,550.257827%20L206.649699,550.257827%20C207.455001,550.257827%20208.107827,549.605001%20208.107827,548.799699%20C208.107827,548.039136%20207.525522,547.414578%20206.782418,547.34753%20L206.649699,547.341571%20L203.847291,547.341571%20C203.491797,547.341571%20203.203612,547.053386%20203.203612,546.697893%20C203.203612,546.372024%20203.445768,546.102713%20203.759947,546.060091%20L203.847291,546.054215%20L206.649699,546.054215%20Z%20M212.923248,550.97951%20C213.859155,550.97951%20214.617829,551.738184%20214.617829,552.674091%20C214.617829,553.240686%20214.229423,554.017499%20213.452861,555.141728%20C213.196963,555.512192%20212.649533,555.512192%20212.393635,555.141728%20C211.617073,554.017499%20211.228667,553.240686%20211.228667,552.674091%20C211.228667,551.738184%20211.987341,550.97951%20212.923248,550.97951%20Z%20M212.923248,552.266866%20C212.698328,552.266866%20212.516023,552.449171%20212.516023,552.674091%20C212.516023,552.798465%20212.628414,553.072996%20212.853249,553.468048%20L212.853249,553.468048%20L212.923117,553.588377%20L212.993247,553.468048%20L213.12648,553.22286%20C213.243054,552.996178%20213.309659,552.825988%20213.32631,552.72107%20L213.32631,552.72107%20L213.330473,552.674091%20C213.330473,552.449171%20213.148168,552.266866%20212.923248,552.266866%20Z%20M201.694581,542.551204%20C202.630489,542.551204%20203.389163,543.309878%20203.389163,544.245785%20C203.389163,544.661288%20203.180286,545.189842%20202.762633,545.885553%20L202.762633,545.885553%20L202.514117,546.281934%20C202.424377,546.419804%20202.327736,546.563525%20202.224194,546.713422%20C201.968296,547.083886%20201.420867,547.083886%20201.164969,546.713422%20C200.388406,545.589193%20200,544.81238%20200,544.245785%20C200,543.309878%20200.758674,542.551204%20201.694581,542.551204%20Z%20M201.694581,543.83856%20C201.469661,543.83856%20201.287356,544.020865%20201.287356,544.245785%20C201.287356,544.370159%20201.399747,544.64469%20201.624582,545.039742%20L201.624582,545.039742%20L201.693793,545.15994%20L201.764581,545.039742%20L201.897813,544.794554%20C202.014388,544.567872%20202.080993,544.397682%20202.097644,544.292764%20L202.097644,544.292764%20L202.101806,544.245785%20C202.101806,544.020865%20201.919501,543.83856%20201.694581,543.83856%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",c2="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e轨迹%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-541.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M206.649699,546.054215%20C208.165988,546.054215%20209.395183,547.28341%20209.395183,548.799699%20C209.395183,550.261835%20208.25222,551.457018%20206.811017,551.540523%20L206.649699,551.545183%20L201.745484,551.545183%20C200.940182,551.545183%20200.287356,552.19801%20200.287356,553.003311%20C200.287356,553.763874%20200.869661,554.388433%20201.612765,554.455481%20L201.745484,554.46144%20L210.853311,554.46144%20C211.208805,554.46144%20211.49699,554.749624%20211.49699,555.105118%20C211.49699,555.430987%20211.254835,555.700298%20210.940655,555.74292%20L210.853311,555.748796%20L201.745484,555.748796%20C200.229195,555.748796%20199,554.519601%20199,553.003311%20C199,551.541175%20200.142963,550.345993%20201.584166,550.262488%20L201.745484,550.257827%20L206.649699,550.257827%20C207.455001,550.257827%20208.107827,549.605001%20208.107827,548.799699%20C208.107827,548.039136%20207.525522,547.414578%20206.782418,547.34753%20L206.649699,547.341571%20L203.847291,547.341571%20C203.491797,547.341571%20203.203612,547.053386%20203.203612,546.697893%20C203.203612,546.372024%20203.445768,546.102713%20203.759947,546.060091%20L203.847291,546.054215%20L206.649699,546.054215%20Z%20M212.923248,550.97951%20C213.859155,550.97951%20214.617829,551.738184%20214.617829,552.674091%20C214.617829,553.240686%20214.229423,554.017499%20213.452861,555.141728%20C213.196963,555.512192%20212.649533,555.512192%20212.393635,555.141728%20C211.617073,554.017499%20211.228667,553.240686%20211.228667,552.674091%20C211.228667,551.738184%20211.987341,550.97951%20212.923248,550.97951%20Z%20M212.923248,552.266866%20C212.698328,552.266866%20212.516023,552.449171%20212.516023,552.674091%20C212.516023,552.798465%20212.628414,553.072996%20212.853249,553.468048%20L212.853249,553.468048%20L212.923117,553.588377%20L212.993247,553.468048%20L213.12648,553.22286%20C213.243054,552.996178%20213.309659,552.825988%20213.32631,552.72107%20L213.32631,552.72107%20L213.330473,552.674091%20C213.330473,552.449171%20213.148168,552.266866%20212.923248,552.266866%20Z%20M201.694581,542.551204%20C202.630489,542.551204%20203.389163,543.309878%20203.389163,544.245785%20C203.389163,544.661288%20203.180286,545.189842%20202.762633,545.885553%20L202.762633,545.885553%20L202.514117,546.281934%20C202.424377,546.419804%20202.327736,546.563525%20202.224194,546.713422%20C201.968296,547.083886%20201.420867,547.083886%20201.164969,546.713422%20C200.388406,545.589193%20200,544.81238%20200,544.245785%20C200,543.309878%20200.758674,542.551204%20201.694581,542.551204%20Z%20M201.694581,543.83856%20C201.469661,543.83856%20201.287356,544.020865%20201.287356,544.245785%20C201.287356,544.370159%20201.399747,544.64469%20201.624582,545.039742%20L201.624582,545.039742%20L201.693793,545.15994%20L201.764581,545.039742%20L201.897813,544.794554%20C202.014388,544.567872%20202.080993,544.397682%20202.097644,544.292764%20L202.097644,544.292764%20L202.101806,544.245785%20C202.101806,544.020865%20201.919501,543.83856%20201.694581,543.83856%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",r2={key:0,class:"map-controls"},i2={key:1,class:"map-info"},s2={DEFAULT_ICON:a2,ACTIVE_ICON:c2,NAME_CN:"地图背景",NAME_EN:"Map Background",ORDER:12,PLATFORM:["pc","screen"]},u2={lng:{value:113.933782,type:"number",label:"component.map.lng",step:.001},lat:{value:22.582649,type:"number",label:"component.map.lat",step:.001},zoom:{value:12,type:"number",label:"component.map.zoom",min:1,max:18},mapStyle:{value:"dark",type:"select",label:"component.mapBackground.mapStyle",options:[{label:"深色",value:"dark"},{label:"浅色",value:"light"},{label:"卫星",value:"satellite"}]},showControls:{value:!0,type:"checkbox",label:"component.mapBackground.showControls"},showInfo:{value:!0,type:"checkbox",label:"component.mapBackground.showInfo"},fullScreen:{value:!0,type:"checkbox",label:"component.mapBackground.fullScreen"},accentColor:{value:"#00d4ff",type:"color",label:"component.mapBackground.accentColor"},linkChannel:{value:"slope",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"设备联动",value:"device"},{label:"告警联动",value:"alarm"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},d2=[{name:"监测点1",object_id:"1",lng:113.933782,lat:22.582649,elevation:100,bindFv:""},{name:"监测点2",object_id:"2",lng:113.943782,lat:22.592649,elevation:150,bindFv:""},{name:"监测点3",object_id:"3",lng:113.923782,lat:22.572649,elevation:80,bindFv:""}],v2=["name","object_id","lng","lat","elevation","bindFv"],m2=["mosaic"],p2={useAlias:!1,multiObject:!0,source:"mosaic"},g2={DEFAULT:s2,OPTIONS:u2,DATA:d2,PARAMS:v2,SOURCE:m2,COMMON:p2},C2=l.defineComponent(q(U({},g2),{__name:"mapBackground",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(m){l.useCssVars(e=>({v02e6b00a:l.unref(r).accentColor}));const i=m;class d extends o2.BaseComponent{extractStyles(){var a,u,v,p,f,h,L,g,z,E,I,j,O,Z,A,T;const{options:t}=this.props.conf,n=((a=t==null?void 0:t.linkChannel)==null?void 0:a.value)||"slope",c=((u=t==null?void 0:t.customChannel)==null?void 0:u.value)||"",s=n==="custom"&&c?c:n;return{lng:(p=(v=t==null?void 0:t.lng)==null?void 0:v.value)!=null?p:113.933782,lat:(h=(f=t==null?void 0:t.lat)==null?void 0:f.value)!=null?h:22.582649,zoom:(g=(L=t==null?void 0:t.zoom)==null?void 0:L.value)!=null?g:12,mapStyle:((z=t==null?void 0:t.mapStyle)==null?void 0:z.value)||"dark",showControls:(I=(E=t==null?void 0:t.showControls)==null?void 0:E.value)!=null?I:!0,showInfo:(O=(j=t==null?void 0:t.showInfo)==null?void 0:j.value)!=null?O:!0,fullScreen:(A=(Z=t==null?void 0:t.fullScreen)==null?void 0:Z.value)!=null?A:!0,accentColor:((T=t==null?void 0:t.accentColor)==null?void 0:T.value)||"#00d4ff",linkChannel:s}}}const F=new d(i,"mapBackground");F.setupLifecycle();const r=F.getStyle(),N=P.useLinkStore(),S=l.ref(null);let o=null;const b=C.L.layerGroup(),y=l.ref(113.933782),w=l.ref(22.582649),M=l.ref(12),x=l.ref([]),_=l.ref(null),k={light:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",dark:"https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png",satellite:"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"},R=l.computed(()=>{const e=y.value;return e==null||isNaN(e)?"0.0000":e.toFixed(4)}),G=l.computed(()=>{const e=w.value;return e==null||isNaN(e)?"0.0000":e.toFixed(4)}),W=l.computed(()=>{var e;return(e=r.value)!=null&&e.fullScreen?{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"0"}:{}}),H=e=>{var c;const t=((c=r.value)==null?void 0:c.accentColor)||"#00d4ff",n=`
|
|
1
|
+
"use strict";var Y=Object.defineProperty,e2=Object.defineProperties;var t2=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var l2=Object.prototype.hasOwnProperty,n2=Object.prototype.propertyIsEnumerable;var D=(m,i,d)=>i in m?Y(m,i,{enumerable:!0,configurable:!0,writable:!0,value:d}):m[i]=d,U=(m,i)=>{for(var d in i||(i={}))l2.call(i,d)&&D(m,d,i[d]);if($)for(var d of $(i))n2.call(i,d)&&D(m,d,i[d]);return m},q=(m,i)=>e2(m,t2(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue");require("html2canvas");const o2=require("./BaseComponent-BXAJUoaf.cjs"),P=require("./index-Cvu9nAQq.cjs"),C=require("./leaflet-src-VXn1CZcu.cjs");;/* empty css */const a2="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e轨迹%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-541.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M206.649699,546.054215%20C208.165988,546.054215%20209.395183,547.28341%20209.395183,548.799699%20C209.395183,550.261835%20208.25222,551.457018%20206.811017,551.540523%20L206.649699,551.545183%20L201.745484,551.545183%20C200.940182,551.545183%20200.287356,552.19801%20200.287356,553.003311%20C200.287356,553.763874%20200.869661,554.388433%20201.612765,554.455481%20L201.745484,554.46144%20L210.853311,554.46144%20C211.208805,554.46144%20211.49699,554.749624%20211.49699,555.105118%20C211.49699,555.430987%20211.254835,555.700298%20210.940655,555.74292%20L210.853311,555.748796%20L201.745484,555.748796%20C200.229195,555.748796%20199,554.519601%20199,553.003311%20C199,551.541175%20200.142963,550.345993%20201.584166,550.262488%20L201.745484,550.257827%20L206.649699,550.257827%20C207.455001,550.257827%20208.107827,549.605001%20208.107827,548.799699%20C208.107827,548.039136%20207.525522,547.414578%20206.782418,547.34753%20L206.649699,547.341571%20L203.847291,547.341571%20C203.491797,547.341571%20203.203612,547.053386%20203.203612,546.697893%20C203.203612,546.372024%20203.445768,546.102713%20203.759947,546.060091%20L203.847291,546.054215%20L206.649699,546.054215%20Z%20M212.923248,550.97951%20C213.859155,550.97951%20214.617829,551.738184%20214.617829,552.674091%20C214.617829,553.240686%20214.229423,554.017499%20213.452861,555.141728%20C213.196963,555.512192%20212.649533,555.512192%20212.393635,555.141728%20C211.617073,554.017499%20211.228667,553.240686%20211.228667,552.674091%20C211.228667,551.738184%20211.987341,550.97951%20212.923248,550.97951%20Z%20M212.923248,552.266866%20C212.698328,552.266866%20212.516023,552.449171%20212.516023,552.674091%20C212.516023,552.798465%20212.628414,553.072996%20212.853249,553.468048%20L212.853249,553.468048%20L212.923117,553.588377%20L212.993247,553.468048%20L213.12648,553.22286%20C213.243054,552.996178%20213.309659,552.825988%20213.32631,552.72107%20L213.32631,552.72107%20L213.330473,552.674091%20C213.330473,552.449171%20213.148168,552.266866%20212.923248,552.266866%20Z%20M201.694581,542.551204%20C202.630489,542.551204%20203.389163,543.309878%20203.389163,544.245785%20C203.389163,544.661288%20203.180286,545.189842%20202.762633,545.885553%20L202.762633,545.885553%20L202.514117,546.281934%20C202.424377,546.419804%20202.327736,546.563525%20202.224194,546.713422%20C201.968296,547.083886%20201.420867,547.083886%20201.164969,546.713422%20C200.388406,545.589193%20200,544.81238%20200,544.245785%20C200,543.309878%20200.758674,542.551204%20201.694581,542.551204%20Z%20M201.694581,543.83856%20C201.469661,543.83856%20201.287356,544.020865%20201.287356,544.245785%20C201.287356,544.370159%20201.399747,544.64469%20201.624582,545.039742%20L201.624582,545.039742%20L201.693793,545.15994%20L201.764581,545.039742%20L201.897813,544.794554%20C202.014388,544.567872%20202.080993,544.397682%20202.097644,544.292764%20L202.097644,544.292764%20L202.101806,544.245785%20C202.101806,544.020865%20201.919501,543.83856%20201.694581,543.83856%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",c2="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e轨迹%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-541.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M206.649699,546.054215%20C208.165988,546.054215%20209.395183,547.28341%20209.395183,548.799699%20C209.395183,550.261835%20208.25222,551.457018%20206.811017,551.540523%20L206.649699,551.545183%20L201.745484,551.545183%20C200.940182,551.545183%20200.287356,552.19801%20200.287356,553.003311%20C200.287356,553.763874%20200.869661,554.388433%20201.612765,554.455481%20L201.745484,554.46144%20L210.853311,554.46144%20C211.208805,554.46144%20211.49699,554.749624%20211.49699,555.105118%20C211.49699,555.430987%20211.254835,555.700298%20210.940655,555.74292%20L210.853311,555.748796%20L201.745484,555.748796%20C200.229195,555.748796%20199,554.519601%20199,553.003311%20C199,551.541175%20200.142963,550.345993%20201.584166,550.262488%20L201.745484,550.257827%20L206.649699,550.257827%20C207.455001,550.257827%20208.107827,549.605001%20208.107827,548.799699%20C208.107827,548.039136%20207.525522,547.414578%20206.782418,547.34753%20L206.649699,547.341571%20L203.847291,547.341571%20C203.491797,547.341571%20203.203612,547.053386%20203.203612,546.697893%20C203.203612,546.372024%20203.445768,546.102713%20203.759947,546.060091%20L203.847291,546.054215%20L206.649699,546.054215%20Z%20M212.923248,550.97951%20C213.859155,550.97951%20214.617829,551.738184%20214.617829,552.674091%20C214.617829,553.240686%20214.229423,554.017499%20213.452861,555.141728%20C213.196963,555.512192%20212.649533,555.512192%20212.393635,555.141728%20C211.617073,554.017499%20211.228667,553.240686%20211.228667,552.674091%20C211.228667,551.738184%20211.987341,550.97951%20212.923248,550.97951%20Z%20M212.923248,552.266866%20C212.698328,552.266866%20212.516023,552.449171%20212.516023,552.674091%20C212.516023,552.798465%20212.628414,553.072996%20212.853249,553.468048%20L212.853249,553.468048%20L212.923117,553.588377%20L212.993247,553.468048%20L213.12648,553.22286%20C213.243054,552.996178%20213.309659,552.825988%20213.32631,552.72107%20L213.32631,552.72107%20L213.330473,552.674091%20C213.330473,552.449171%20213.148168,552.266866%20212.923248,552.266866%20Z%20M201.694581,542.551204%20C202.630489,542.551204%20203.389163,543.309878%20203.389163,544.245785%20C203.389163,544.661288%20203.180286,545.189842%20202.762633,545.885553%20L202.762633,545.885553%20L202.514117,546.281934%20C202.424377,546.419804%20202.327736,546.563525%20202.224194,546.713422%20C201.968296,547.083886%20201.420867,547.083886%20201.164969,546.713422%20C200.388406,545.589193%20200,544.81238%20200,544.245785%20C200,543.309878%20200.758674,542.551204%20201.694581,542.551204%20Z%20M201.694581,543.83856%20C201.469661,543.83856%20201.287356,544.020865%20201.287356,544.245785%20C201.287356,544.370159%20201.399747,544.64469%20201.624582,545.039742%20L201.624582,545.039742%20L201.693793,545.15994%20L201.764581,545.039742%20L201.897813,544.794554%20C202.014388,544.567872%20202.080993,544.397682%20202.097644,544.292764%20L202.097644,544.292764%20L202.101806,544.245785%20C202.101806,544.020865%20201.919501,543.83856%20201.694581,543.83856%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",r2={key:0,class:"map-controls"},i2={key:1,class:"map-info"},s2={DEFAULT_ICON:a2,ACTIVE_ICON:c2,NAME_CN:"地图背景",NAME_EN:"Map Background",ORDER:12,PLATFORM:["pc","screen"]},u2={lng:{value:113.933782,type:"number",label:"component.map.lng",step:.001},lat:{value:22.582649,type:"number",label:"component.map.lat",step:.001},zoom:{value:12,type:"number",label:"component.map.zoom",min:1,max:18},mapStyle:{value:"dark",type:"select",label:"component.mapBackground.mapStyle",options:[{label:"深色",value:"dark"},{label:"浅色",value:"light"},{label:"卫星",value:"satellite"}]},showControls:{value:!0,type:"checkbox",label:"component.mapBackground.showControls"},showInfo:{value:!0,type:"checkbox",label:"component.mapBackground.showInfo"},fullScreen:{value:!0,type:"checkbox",label:"component.mapBackground.fullScreen"},accentColor:{value:"#00d4ff",type:"color",label:"component.mapBackground.accentColor"},linkChannel:{value:"slope",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"设备联动",value:"device"},{label:"告警联动",value:"alarm"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},d2=[{name:"监测点1",object_id:"1",lng:113.933782,lat:22.582649,elevation:100,bindFv:""},{name:"监测点2",object_id:"2",lng:113.943782,lat:22.592649,elevation:150,bindFv:""},{name:"监测点3",object_id:"3",lng:113.923782,lat:22.572649,elevation:80,bindFv:""}],v2=["name","object_id","lng","lat","elevation","bindFv"],m2=["mosaic"],p2={useAlias:!1,multiObject:!0,source:"mosaic"},g2={DEFAULT:s2,OPTIONS:u2,DATA:d2,PARAMS:v2,SOURCE:m2,COMMON:p2},C2=l.defineComponent(q(U({},g2),{__name:"mapBackground",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(m){l.useCssVars(e=>({v02e6b00a:l.unref(r).accentColor}));const i=m;class d extends o2.BaseComponent{extractStyles(){var a,u,v,p,f,h,L,g,z,E,I,j,O,Z,A,T;const{options:t}=this.props.conf,n=((a=t==null?void 0:t.linkChannel)==null?void 0:a.value)||"slope",c=((u=t==null?void 0:t.customChannel)==null?void 0:u.value)||"",s=n==="custom"&&c?c:n;return{lng:(p=(v=t==null?void 0:t.lng)==null?void 0:v.value)!=null?p:113.933782,lat:(h=(f=t==null?void 0:t.lat)==null?void 0:f.value)!=null?h:22.582649,zoom:(g=(L=t==null?void 0:t.zoom)==null?void 0:L.value)!=null?g:12,mapStyle:((z=t==null?void 0:t.mapStyle)==null?void 0:z.value)||"dark",showControls:(I=(E=t==null?void 0:t.showControls)==null?void 0:E.value)!=null?I:!0,showInfo:(O=(j=t==null?void 0:t.showInfo)==null?void 0:j.value)!=null?O:!0,fullScreen:(A=(Z=t==null?void 0:t.fullScreen)==null?void 0:Z.value)!=null?A:!0,accentColor:((T=t==null?void 0:t.accentColor)==null?void 0:T.value)||"#00d4ff",linkChannel:s}}}const F=new d(i,"mapBackground");F.setupLifecycle();const r=F.getStyle(),N=P.useLinkStore(),S=l.ref(null);let o=null;const b=C.L.layerGroup(),y=l.ref(113.933782),w=l.ref(22.582649),M=l.ref(12),x=l.ref([]),_=l.ref(null),k={light:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",dark:"https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png",satellite:"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"},R=l.computed(()=>{const e=y.value;return e==null||isNaN(e)?"0.0000":e.toFixed(4)}),G=l.computed(()=>{const e=w.value;return e==null||isNaN(e)?"0.0000":e.toFixed(4)}),W=l.computed(()=>{var e;return(e=r.value)!=null&&e.fullScreen?{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"0"}:{}}),H=e=>{var c;const t=((c=r.value)==null?void 0:c.accentColor)||"#00d4ff",n=`
|
|
2
2
|
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="40" viewBox="0 0 32 40">
|
|
3
3
|
<path d="M16 0C7.163 0 0 7.163 0 16c0 12 16 24 16 24s16-12 16-24C32 7.163 24.837 0 16 0z" fill="${t}"/>
|
|
4
4
|
<circle cx="16" cy="16" r="8" fill="#fff"/>
|
|
@@ -46,8 +46,8 @@ import "element-plus/es/components/icon/style/css";
|
|
|
46
46
|
import { defineComponent as Ze, computed as K, reactive as me, ref as k, watch as et, onMounted as tt, openBlock as v, createElementBlock as N, Fragment as ee, withDirectives as ce, normalizeStyle as fe, unref as S, normalizeClass as lt, toDisplayString as C, createCommentVNode as E, createElementVNode as J, createVNode as a, withKeys as it, withCtx as o, createTextVNode as p, createBlock as U, renderList as at, renderSlot as ot } from "vue";
|
|
47
47
|
import { u as nt } from "./useTableBodyHeight-CwrQvi7M.js";
|
|
48
48
|
import { u as st } from "./useMixiotPanelSurface-DRl3cZvc.js";
|
|
49
|
-
import { B as rt } from "./BaseComponent-
|
|
50
|
-
import { a as P, _ as dt } from "./index-
|
|
49
|
+
import { B as rt } from "./BaseComponent-BlCsb-HW.js";
|
|
50
|
+
import { a as P, _ as dt } from "./index-DomNEEyv.js";
|
|
51
51
|
import { g as ut } from "./titleStyle-BT5GlpAb.js";
|
|
52
52
|
import { ElMessage as h, ElMessageBox as ve } from "element-plus";
|
|
53
53
|
import { Search as pt } from "@element-plus/icons-vue";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var he=Object.defineProperty,be=Object.defineProperties;var we=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var xe=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var Z=(f,s,c)=>s in f?he(f,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):f[s]=c,R=(f,s)=>{for(var c in s||(s={}))xe.call(s,c)&&Z(f,c,s[c]);if(Y)for(var c of Y(s))Ne.call(s,c)&&Z(f,c,s[c]);return f},ee=(f,s)=>be(f,we(s));var S=(f,s,c)=>new Promise((M,h)=>{var $=w=>{try{O(c.next(w))}catch(D){h(D)}},j=w=>{try{O(c.throw(w))}catch(D){h(D)}},O=w=>w.done?M(w.value):Promise.resolve(w.value).then($,j);O((c=c.apply(f,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),Ce=require("./useTableBodyHeight-pf87uGjw.cjs"),ke=require("./useMixiotPanelSurface-CAZgexY5.cjs"),_e=require("./BaseComponent-Chnv4fBT.cjs"),E=require("./index-DVqMfQVc.cjs"),Be=require("./titleStyle-NSnz6cUg.cjs"),m=require("element-plus"),Se=require("@element-plus/icons-vue"),Ee=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),te=require("./ele-lst-icon-CrxnHZ-A.cjs"),Te={class:"mix-body"},Oe={class:"toolbar"},De={key:1},ze={class:"pagination"},Ae={class:"view-body"},qe={DEFAULT_ICON:te.DEFAULT_ICON,ACTIVE_ICON:te.ACTIVE_ICON,NAME_CN:"映射表列表",NAME_EN:"MappingList",ORDER:2,PLATFORM:["pc","screen"]},Me={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{key:"uid",label:"映射表编号",width:160,visible:!0},{key:"alias",label:"映射表别名",width:140,visible:!0},{key:"name",label:"映射表名称",width:160,visible:!0},{key:"description",label:"描述",minWidth:160,visible:!0},{key:"is_active",label:"是否开启",width:100,visible:!0},{key:"created",label:"创建时间",width:170,visible:!0},{key:"last_modified",label:"更新时间",width:170,visible:!0}]},le=[{name:"映射表名称",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0,uid:"映射表编号",uid_visible:!0,alias:"映射表别名",alias_visible:!0,description:"描述",description_visible:!0,is_active:"是否开启",is_active_visible:!0,created:"创建时间",created_visible:!0,last_modified:"更新时间",last_modified_visible:!0}],Ue=[{key:"showAddBtn",label:"添加映射表",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组"},{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showArchiveBtn",label:"资料备档",type:"checkbox",group:"操作组"},{key:"showDeleteBtn",label:"删除",type:"checkbox",group:"操作组"},{key:"name",label:"参数名称"},{key:"uid",label:"映射表编号",checkable:!0,checkboxKey:"uid_visible"},{key:"alias",label:"映射表别名",checkable:!0,checkboxKey:"alias_visible"},{key:"description",label:"描述",checkable:!0,checkboxKey:"description_visible"},{key:"is_active",label:"是否开启",checkable:!0,checkboxKey:"is_active_visible"},{key:"created",label:"创建时间",checkable:!0,checkboxKey:"created_visible"},{key:"last_modified",label:"更新时间",checkable:!0,checkboxKey:"last_modified_visible"}],Le=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Fe={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"name",label:"setting.gridFields.name"},{value:"uid",label:"setting.gridFields.uid"},{value:"alias",label:"setting.gridFields.objectAlias"},{value:"description",label:"setting.gridFields.description"}]},Pe={DEFAULT:qe,OPTIONS:Me,DATA:le,PARAMS:Ue,SOURCE:Le,COMMON:Fe},Je=e.defineComponent(ee(R({},Pe),{__name:"mappingList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""},mappingUidList:{default:()=>[]}},setup(f){const s=f;class c extends _e.BaseComponent{getDataBool(t,o){var d,g;const n=(g=(d=this.props.conf)==null?void 0:d.data)==null?void 0:g[0];return n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0?!!n[t]:this.getOptionValue(t,o)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showAddBtn:this.getDataBool("showAddBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(le));else{const o=this.props.conf.data[0],n={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[d,g]of Object.entries(n))o[d]===void 0&&(o[d]=g)}}}const M=new c(s,"mappingList");M.setupLifecycle();const h=M.getStyle(),{mixiotPanelClass:$,mixiotPanelRootStyle:j}=ke.useMixiotPanelSurface(h),{tableWrapRef:O,tableBodyHeight:w}=Ce.useTableBodyHeight(),D=e.computed(()=>Be.generateTitleStyle(s.conf.options)),ie=e.computed(()=>{var o,n,d,g;const a=((n=(o=s.conf)==null?void 0:o.options)==null?void 0:n.columns)||[],t=((g=(d=s.conf)==null?void 0:d.data)==null?void 0:g[0])||{};return(Array.isArray(a)?a:[]).map(r=>{const b=t[r.key],_=t[`${r.key}_visible`];return{prop:r.key,label:b!==void 0&&b!==""?String(b):r.label,width:r.width,minWidth:r.minWidth,visible:_!==void 0?!!_:r.visible!==!1}})}),y=e.reactive({current:1,pageSize:10,total:0}),U=e.ref(""),K=e.ref("name"),W=e.ref([]),H=e.ref(!1);function ae(){const a={page_index:y.current,page_size:y.pageSize},t=[],o=U.value.trim();return o&&t.push([K.value,"like",`%${o}%`]),Ee.appendCommonDesignerWhereAnd(s.conf.common,t),t.length&&(a.where_and=JSON.stringify(t)),a}function x(){return S(this,null,function*(){var a,t;H.value=!0;try{const o=yield E.api.post("mapping_list",ae(),!0),n=(a=o==null?void 0:o.result)!=null?a:o;let d=Array.isArray(n==null?void 0:n.data)?[...n.data]:[];if((t=s.mappingUidList)!=null&&t.length){const r=new Set(s.mappingUidList.map(String));d=d.filter(b=>r.has(String(b.uid)))}W.value=d;const g=n==null?void 0:n.total_records;y.total=typeof g=="number"?g:d.length,o&&o.code!==void 0&&o.code!==200&&console.warn("[mappingList] 列表接口非成功",o.msg||o.info,o)}catch(o){console.error(o),W.value=[],y.total=0}finally{H.value=!1}})}const oe=e.computed(()=>W.value);function ne(a,t){const o=a[t];return o==null?"":String(o)}function G(){y.current=1,x()}function re(){U.value="",y.current=1,x()}function se(){y.current=1,x()}function de(){x()}e.watch(()=>{var a;return(a=s.mappingUidList)==null?void 0:a.join(",")},()=>{y.current=1,x()});const z=e.ref(!1),A=e.ref(!1),k=e.ref(!1),i=e.reactive({id:0,uid:"",name:"",alias:"",description:"",script:"[]",addition:"[]"});function L(){i.id=0,i.uid="",i.name="",i.alias="",i.description="",i.script="[]",i.addition="[]"}function F(a,t){const o=(a==null?void 0:a.trim())||"";if(!o)return t;try{return JSON.stringify(JSON.parse(o))}catch(n){return null}}function ue(){L(),z.value=!0}function ce(a){return S(this,null,function*(){var t,o,n,d,g,r,b,_,J,I,V,q;L(),A.value=!0,k.value=!0;try{const N=yield E.api.post("mapping_item",{uid:a.uid},!0),p=(t=N==null?void 0:N.result)!=null?t:N;if(p&&typeof p=="object"){i.id=Number(p.id)||0,i.uid=String((n=(o=p.uid)!=null?o:a.uid)!=null?n:""),i.name=String((d=p.name)!=null?d:""),i.alias=String((g=p.alias)!=null?g:""),i.description=String((r=p.description)!=null?r:"");const T=p.script;i.script=typeof T=="string"?T:T!=null?JSON.stringify(T):"[]";const B=p.addition;i.addition=typeof B=="string"?B:B!=null?JSON.stringify(B):"[]"}else i.uid=String(a.uid),i.name=String((b=a.name)!=null?b:""),i.alias=String((_=a.alias)!=null?_:""),i.description=String((J=a.description)!=null?J:"")}catch(N){i.uid=String(a.uid),i.name=String((I=a.name)!=null?I:""),i.alias=String((V=a.alias)!=null?V:""),i.description=String((q=a.description)!=null?q:""),m.ElMessage.warning("拉取映射表详情失败,已使用列表行数据编辑")}finally{k.value=!1}})}function pe(){return S(this,null,function*(){var o;if(!((o=i.name)!=null&&o.trim())){m.ElMessage.warning("请填写映射表名称");return}const a=F(i.script,"[]"),t=F(i.addition,"[]");if(a===null||t===null){m.ElMessage.error("脚本或扩展信息不是合法 JSON");return}k.value=!0;try{const n={name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:a,addition:t};yield E.api.post("mapping_create",n,!0),m.ElMessage.success("添加成功"),z.value=!1,yield x()}catch(n){m.ElMessage.error("添加失败")}finally{k.value=!1}})}function me(){return S(this,null,function*(){var o;if(!((o=i.name)!=null&&o.trim())){m.ElMessage.warning("请填写映射表名称");return}const a=F(i.script,"[]"),t=F(i.addition,"[]");if(a===null||t===null){m.ElMessage.error("脚本或扩展信息不是合法 JSON");return}k.value=!0;try{const n={id:i.id,uid:i.uid,name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:a,addition:t};yield E.api.post("mapping_update",n,!0),m.ElMessage.success("保存成功"),A.value=!1,yield x()}catch(n){m.ElMessage.error("保存失败")}finally{k.value=!1}})}const P=e.ref(!1),Q=e.ref(!1),u=e.ref(null);function X(a){if(a==null)return"";if(typeof a=="string")try{return JSON.stringify(JSON.parse(a),null,2)}catch(t){return a}try{return JSON.stringify(a,null,2)}catch(t){return String(a)}}const fe=e.computed(()=>u.value?X(u.value.script):""),ge=e.computed(()=>u.value?X(u.value.addition):"");function ve(a){return S(this,null,function*(){u.value=null,P.value=!0,Q.value=!0;try{const t=yield E.api.post("mapping_item",{uid:a.uid},!0),o=t==null?void 0:t.result;o&&typeof o=="object"?u.value=o:(u.value=R({},a),m.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){u.value=R({},a),m.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{Q.value=!1}})}function Ve(a){m.ElMessageBox.confirm(`确认对映射表「${a.name||a.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{m.ElMessage.success("已提交备档(完整流程请在 mixui 映射表管理中操作)")}).catch(()=>{})}function ye(a){m.ElMessageBox.confirm(`确认删除映射表「${a.name||a.uid}」吗?`,"警告",{type:"warning"}).then(()=>S(null,null,function*(){try{yield E.api.post("mapping_delete",{uid:a.uid,id:a.id},!0),m.ElMessage.success("删除成功"),yield x()}catch(t){m.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{x()}),(a,t)=>{const o=v.ElIcon,n=v.ElInput,d=v.ElOption,g=v.ElSelect,r=v.ElButton,b=v.ElTag,_=v.ElTableColumn,J=v.ElTable,I=v.ElPagination,V=v.ElFormItem,q=v.ElForm,N=v.ElDialog,p=v.ElDescriptionsItem,T=v.ElDescriptions,B=v.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["mapping-list mix-component",e.unref($)]),style:e.normalizeStyle(e.unref(j))},[e.unref(h).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(D.value)},e.toDisplayString(f.conf.caption||f.conf.name),5)),e.createElementVNode("div",Te,[e.createElementVNode("div",Oe,[e.createVNode(n,{modelValue:U.value,"onUpdate:modelValue":t[0]||(t[0]=l=>U.value=l),placeholder:"搜索映射表",size:"small",class:"toolbar-search",onKeyup:e.withKeys(G,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(o,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Se.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(g,{modelValue:K.value,"onUpdate:modelValue":t[1]||(t[1]=l=>K.value=l),size:"small",class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(d,{label:"映射表名称",value:"name"}),e.createVNode(d,{label:"映射表编号",value:"uid"}),e.createVNode(d,{label:"映射表别名",value:"alias"}),e.createVNode(d,{label:"描述",value:"description"})]),_:1},8,["modelValue"]),e.createVNode(r,{type:"primary",onClick:G},{default:e.withCtx(()=>[...t[21]||(t[21]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(r,{onClick:re},{default:e.withCtx(()=>[...t[22]||(t[22]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(h).showAddBtn?(e.openBlock(),e.createBlock(r,{key:0,type:"success",onClick:ue},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("添加映射表",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:O,class:"table-wrapper"},[e.createVNode(J,{data:oe.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(w)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ie.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.prop},[l.visible?(e.openBlock(),e.createBlock(_,{key:0,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(C=>[l.prop==="is_active"?(e.openBlock(),e.createBlock(b,{key:0,type:C.row.is_active===1||C.row.is_active===!0?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.row.is_active===1||C.row.is_active===!0?"开启":"停用"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",De,e.toDisplayString(ne(C.row,l.prop)),1))]),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(_,{label:"操作","min-width":"220",fixed:"right"},{default:e.withCtx(l=>[e.unref(h).showViewBtn?(e.openBlock(),e.createBlock(r,{key:0,size:"small",onClick:C=>ve(l.row)},{default:e.withCtx(()=>[...t[24]||(t[24]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(h).showEditBtn?(e.openBlock(),e.createBlock(r,{key:1,size:"small",type:"primary",onClick:C=>ce(l.row)},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(h).showArchiveBtn?(e.openBlock(),e.createBlock(r,{key:2,size:"small",type:"info",onClick:C=>Ve(l.row)},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(h).showDeleteBtn?(e.openBlock(),e.createBlock(r,{key:3,size:"small",type:"danger",onClick:C=>ye(l.row)},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data","height"])],512),e.createElementVNode("div",ze,[e.createVNode(I,{"current-page":y.current,"onUpdate:currentPage":t[2]||(t[2]=l=>y.current=l),"page-size":y.pageSize,"onUpdate:pageSize":t[3]||(t[3]=l=>y.pageSize=l),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:y.total,onSizeChange:se,onCurrentChange:de},null,8,["current-page","page-size","total"])])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],6)),[[B,H.value]]),e.createVNode(N,{modelValue:z.value,"onUpdate:modelValue":t[10]||(t[10]=l=>z.value=l),title:"添加映射表",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(r,{onClick:t[9]||(t[9]=l=>z.value=!1)},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(r,{type:"primary",loading:k.value,onClick:pe},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(q,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(V,{label:"映射表名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.name,"onUpdate:modelValue":t[4]||(t[4]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"映射表别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.alias,"onUpdate:modelValue":t[5]||(t[5]=l=>i.alias=l),placeholder:"可选"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.description,"onUpdate:modelValue":t[6]||(t[6]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"映射表脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.script,"onUpdate:modelValue":t[7]||(t[7]=l=>i.script=l),type:"textarea",rows:6,placeholder:"JSON 数组,默认 []"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"扩展信息"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.addition,"onUpdate:modelValue":t[8]||(t[8]=l=>i.addition=l),type:"textarea",rows:4,placeholder:"JSON,默认 []"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(N,{modelValue:A.value,"onUpdate:modelValue":t[18]||(t[18]=l=>A.value=l),title:"编辑映射表",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(r,{onClick:t[17]||(t[17]=l=>A.value=!1)},{default:e.withCtx(()=>[...t[30]||(t[30]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(r,{type:"primary",loading:k.value,onClick:me},{default:e.withCtx(()=>[...t[31]||(t[31]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(q,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(V,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.uid,"onUpdate:modelValue":t[11]||(t[11]=l=>i.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"映射表名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.name,"onUpdate:modelValue":t[12]||(t[12]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"映射表别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.alias,"onUpdate:modelValue":t[13]||(t[13]=l=>i.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.description,"onUpdate:modelValue":t[14]||(t[14]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"映射表脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.script,"onUpdate:modelValue":t[15]||(t[15]=l=>i.script=l),type:"textarea",rows:6},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"扩展信息"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.addition,"onUpdate:modelValue":t[16]||(t[16]=l=>i.addition=l),type:"textarea",rows:4},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(N,{modelValue:P.value,"onUpdate:modelValue":t[20]||(t[20]=l=>P.value=l),title:"映射表详情",width:"720px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(r,{type:"primary",onClick:t[19]||(t[19]=l=>P.value=!1)},{default:e.withCtx(()=>[...t[34]||(t[34]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Ae,[u.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(T,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(p,{label:"映射表编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"映射表名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"映射表别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.alias)!=null?l:""),1)]}),_:1}),u.value.is_active!==void 0&&u.value.is_active!==null?(e.openBlock(),e.createBlock(p,{key:0,label:"是否开启"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value.is_active===1||u.value.is_active===!0?"开启":"停用"),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(p,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"更新时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.description)!=null?l:""),1)]}),_:1})]),_:1}),t[32]||(t[32]=e.createElementVNode("div",{class:"view-block-title"},"映射表脚本",-1)),e.createVNode(n,{"model-value":fe.value,type:"textarea",rows:8,readonly:""},null,8,["model-value"]),t[33]||(t[33]=e.createElementVNode("div",{class:"view-block-title"},"扩展信息",-1)),e.createVNode(n,{"model-value":ge.value,type:"textarea",rows:6,readonly:""},null,8,["model-value"])],64)):e.createCommentVNode("",!0)])),[[B,Q.value]])]),_:1},8,["modelValue"])],64)}}})),Ie=E._export_sfc(Je,[["__scopeId","data-v-f233080b"]]);exports.default=Ie;
|
|
1
|
+
"use strict";var he=Object.defineProperty,be=Object.defineProperties;var we=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var xe=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var Z=(f,s,c)=>s in f?he(f,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):f[s]=c,R=(f,s)=>{for(var c in s||(s={}))xe.call(s,c)&&Z(f,c,s[c]);if(Y)for(var c of Y(s))Ne.call(s,c)&&Z(f,c,s[c]);return f},ee=(f,s)=>be(f,we(s));var S=(f,s,c)=>new Promise((M,h)=>{var $=w=>{try{O(c.next(w))}catch(D){h(D)}},j=w=>{try{O(c.throw(w))}catch(D){h(D)}},O=w=>w.done?M(w.value):Promise.resolve(w.value).then($,j);O((c=c.apply(f,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),Ce=require("./useTableBodyHeight-pf87uGjw.cjs"),ke=require("./useMixiotPanelSurface-CAZgexY5.cjs"),_e=require("./BaseComponent-BXAJUoaf.cjs"),E=require("./index-Cvu9nAQq.cjs"),Be=require("./titleStyle-NSnz6cUg.cjs"),m=require("element-plus"),Se=require("@element-plus/icons-vue"),Ee=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),te=require("./ele-lst-icon-CrxnHZ-A.cjs"),Te={class:"mix-body"},Oe={class:"toolbar"},De={key:1},ze={class:"pagination"},Ae={class:"view-body"},qe={DEFAULT_ICON:te.DEFAULT_ICON,ACTIVE_ICON:te.ACTIVE_ICON,NAME_CN:"映射表列表",NAME_EN:"MappingList",ORDER:2,PLATFORM:["pc","screen"]},Me={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{key:"uid",label:"映射表编号",width:160,visible:!0},{key:"alias",label:"映射表别名",width:140,visible:!0},{key:"name",label:"映射表名称",width:160,visible:!0},{key:"description",label:"描述",minWidth:160,visible:!0},{key:"is_active",label:"是否开启",width:100,visible:!0},{key:"created",label:"创建时间",width:170,visible:!0},{key:"last_modified",label:"更新时间",width:170,visible:!0}]},le=[{name:"映射表名称",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0,uid:"映射表编号",uid_visible:!0,alias:"映射表别名",alias_visible:!0,description:"描述",description_visible:!0,is_active:"是否开启",is_active_visible:!0,created:"创建时间",created_visible:!0,last_modified:"更新时间",last_modified_visible:!0}],Ue=[{key:"showAddBtn",label:"添加映射表",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组"},{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showArchiveBtn",label:"资料备档",type:"checkbox",group:"操作组"},{key:"showDeleteBtn",label:"删除",type:"checkbox",group:"操作组"},{key:"name",label:"参数名称"},{key:"uid",label:"映射表编号",checkable:!0,checkboxKey:"uid_visible"},{key:"alias",label:"映射表别名",checkable:!0,checkboxKey:"alias_visible"},{key:"description",label:"描述",checkable:!0,checkboxKey:"description_visible"},{key:"is_active",label:"是否开启",checkable:!0,checkboxKey:"is_active_visible"},{key:"created",label:"创建时间",checkable:!0,checkboxKey:"created_visible"},{key:"last_modified",label:"更新时间",checkable:!0,checkboxKey:"last_modified_visible"}],Le=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Fe={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"name",label:"setting.gridFields.name"},{value:"uid",label:"setting.gridFields.uid"},{value:"alias",label:"setting.gridFields.objectAlias"},{value:"description",label:"setting.gridFields.description"}]},Pe={DEFAULT:qe,OPTIONS:Me,DATA:le,PARAMS:Ue,SOURCE:Le,COMMON:Fe},Je=e.defineComponent(ee(R({},Pe),{__name:"mappingList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""},mappingUidList:{default:()=>[]}},setup(f){const s=f;class c extends _e.BaseComponent{getDataBool(t,o){var d,g;const n=(g=(d=this.props.conf)==null?void 0:d.data)==null?void 0:g[0];return n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0?!!n[t]:this.getOptionValue(t,o)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showAddBtn:this.getDataBool("showAddBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(le));else{const o=this.props.conf.data[0],n={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[d,g]of Object.entries(n))o[d]===void 0&&(o[d]=g)}}}const M=new c(s,"mappingList");M.setupLifecycle();const h=M.getStyle(),{mixiotPanelClass:$,mixiotPanelRootStyle:j}=ke.useMixiotPanelSurface(h),{tableWrapRef:O,tableBodyHeight:w}=Ce.useTableBodyHeight(),D=e.computed(()=>Be.generateTitleStyle(s.conf.options)),ie=e.computed(()=>{var o,n,d,g;const a=((n=(o=s.conf)==null?void 0:o.options)==null?void 0:n.columns)||[],t=((g=(d=s.conf)==null?void 0:d.data)==null?void 0:g[0])||{};return(Array.isArray(a)?a:[]).map(r=>{const b=t[r.key],_=t[`${r.key}_visible`];return{prop:r.key,label:b!==void 0&&b!==""?String(b):r.label,width:r.width,minWidth:r.minWidth,visible:_!==void 0?!!_:r.visible!==!1}})}),y=e.reactive({current:1,pageSize:10,total:0}),U=e.ref(""),K=e.ref("name"),W=e.ref([]),H=e.ref(!1);function ae(){const a={page_index:y.current,page_size:y.pageSize},t=[],o=U.value.trim();return o&&t.push([K.value,"like",`%${o}%`]),Ee.appendCommonDesignerWhereAnd(s.conf.common,t),t.length&&(a.where_and=JSON.stringify(t)),a}function x(){return S(this,null,function*(){var a,t;H.value=!0;try{const o=yield E.api.post("mapping_list",ae(),!0),n=(a=o==null?void 0:o.result)!=null?a:o;let d=Array.isArray(n==null?void 0:n.data)?[...n.data]:[];if((t=s.mappingUidList)!=null&&t.length){const r=new Set(s.mappingUidList.map(String));d=d.filter(b=>r.has(String(b.uid)))}W.value=d;const g=n==null?void 0:n.total_records;y.total=typeof g=="number"?g:d.length,o&&o.code!==void 0&&o.code!==200&&console.warn("[mappingList] 列表接口非成功",o.msg||o.info,o)}catch(o){console.error(o),W.value=[],y.total=0}finally{H.value=!1}})}const oe=e.computed(()=>W.value);function ne(a,t){const o=a[t];return o==null?"":String(o)}function G(){y.current=1,x()}function re(){U.value="",y.current=1,x()}function se(){y.current=1,x()}function de(){x()}e.watch(()=>{var a;return(a=s.mappingUidList)==null?void 0:a.join(",")},()=>{y.current=1,x()});const z=e.ref(!1),A=e.ref(!1),k=e.ref(!1),i=e.reactive({id:0,uid:"",name:"",alias:"",description:"",script:"[]",addition:"[]"});function L(){i.id=0,i.uid="",i.name="",i.alias="",i.description="",i.script="[]",i.addition="[]"}function F(a,t){const o=(a==null?void 0:a.trim())||"";if(!o)return t;try{return JSON.stringify(JSON.parse(o))}catch(n){return null}}function ue(){L(),z.value=!0}function ce(a){return S(this,null,function*(){var t,o,n,d,g,r,b,_,J,I,V,q;L(),A.value=!0,k.value=!0;try{const N=yield E.api.post("mapping_item",{uid:a.uid},!0),p=(t=N==null?void 0:N.result)!=null?t:N;if(p&&typeof p=="object"){i.id=Number(p.id)||0,i.uid=String((n=(o=p.uid)!=null?o:a.uid)!=null?n:""),i.name=String((d=p.name)!=null?d:""),i.alias=String((g=p.alias)!=null?g:""),i.description=String((r=p.description)!=null?r:"");const T=p.script;i.script=typeof T=="string"?T:T!=null?JSON.stringify(T):"[]";const B=p.addition;i.addition=typeof B=="string"?B:B!=null?JSON.stringify(B):"[]"}else i.uid=String(a.uid),i.name=String((b=a.name)!=null?b:""),i.alias=String((_=a.alias)!=null?_:""),i.description=String((J=a.description)!=null?J:"")}catch(N){i.uid=String(a.uid),i.name=String((I=a.name)!=null?I:""),i.alias=String((V=a.alias)!=null?V:""),i.description=String((q=a.description)!=null?q:""),m.ElMessage.warning("拉取映射表详情失败,已使用列表行数据编辑")}finally{k.value=!1}})}function pe(){return S(this,null,function*(){var o;if(!((o=i.name)!=null&&o.trim())){m.ElMessage.warning("请填写映射表名称");return}const a=F(i.script,"[]"),t=F(i.addition,"[]");if(a===null||t===null){m.ElMessage.error("脚本或扩展信息不是合法 JSON");return}k.value=!0;try{const n={name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:a,addition:t};yield E.api.post("mapping_create",n,!0),m.ElMessage.success("添加成功"),z.value=!1,yield x()}catch(n){m.ElMessage.error("添加失败")}finally{k.value=!1}})}function me(){return S(this,null,function*(){var o;if(!((o=i.name)!=null&&o.trim())){m.ElMessage.warning("请填写映射表名称");return}const a=F(i.script,"[]"),t=F(i.addition,"[]");if(a===null||t===null){m.ElMessage.error("脚本或扩展信息不是合法 JSON");return}k.value=!0;try{const n={id:i.id,uid:i.uid,name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:a,addition:t};yield E.api.post("mapping_update",n,!0),m.ElMessage.success("保存成功"),A.value=!1,yield x()}catch(n){m.ElMessage.error("保存失败")}finally{k.value=!1}})}const P=e.ref(!1),Q=e.ref(!1),u=e.ref(null);function X(a){if(a==null)return"";if(typeof a=="string")try{return JSON.stringify(JSON.parse(a),null,2)}catch(t){return a}try{return JSON.stringify(a,null,2)}catch(t){return String(a)}}const fe=e.computed(()=>u.value?X(u.value.script):""),ge=e.computed(()=>u.value?X(u.value.addition):"");function ve(a){return S(this,null,function*(){u.value=null,P.value=!0,Q.value=!0;try{const t=yield E.api.post("mapping_item",{uid:a.uid},!0),o=t==null?void 0:t.result;o&&typeof o=="object"?u.value=o:(u.value=R({},a),m.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){u.value=R({},a),m.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{Q.value=!1}})}function Ve(a){m.ElMessageBox.confirm(`确认对映射表「${a.name||a.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{m.ElMessage.success("已提交备档(完整流程请在 mixui 映射表管理中操作)")}).catch(()=>{})}function ye(a){m.ElMessageBox.confirm(`确认删除映射表「${a.name||a.uid}」吗?`,"警告",{type:"warning"}).then(()=>S(null,null,function*(){try{yield E.api.post("mapping_delete",{uid:a.uid,id:a.id},!0),m.ElMessage.success("删除成功"),yield x()}catch(t){m.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{x()}),(a,t)=>{const o=v.ElIcon,n=v.ElInput,d=v.ElOption,g=v.ElSelect,r=v.ElButton,b=v.ElTag,_=v.ElTableColumn,J=v.ElTable,I=v.ElPagination,V=v.ElFormItem,q=v.ElForm,N=v.ElDialog,p=v.ElDescriptionsItem,T=v.ElDescriptions,B=v.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["mapping-list mix-component",e.unref($)]),style:e.normalizeStyle(e.unref(j))},[e.unref(h).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(D.value)},e.toDisplayString(f.conf.caption||f.conf.name),5)),e.createElementVNode("div",Te,[e.createElementVNode("div",Oe,[e.createVNode(n,{modelValue:U.value,"onUpdate:modelValue":t[0]||(t[0]=l=>U.value=l),placeholder:"搜索映射表",size:"small",class:"toolbar-search",onKeyup:e.withKeys(G,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(o,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Se.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(g,{modelValue:K.value,"onUpdate:modelValue":t[1]||(t[1]=l=>K.value=l),size:"small",class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(d,{label:"映射表名称",value:"name"}),e.createVNode(d,{label:"映射表编号",value:"uid"}),e.createVNode(d,{label:"映射表别名",value:"alias"}),e.createVNode(d,{label:"描述",value:"description"})]),_:1},8,["modelValue"]),e.createVNode(r,{type:"primary",onClick:G},{default:e.withCtx(()=>[...t[21]||(t[21]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(r,{onClick:re},{default:e.withCtx(()=>[...t[22]||(t[22]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(h).showAddBtn?(e.openBlock(),e.createBlock(r,{key:0,type:"success",onClick:ue},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("添加映射表",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:O,class:"table-wrapper"},[e.createVNode(J,{data:oe.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(w)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ie.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.prop},[l.visible?(e.openBlock(),e.createBlock(_,{key:0,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(C=>[l.prop==="is_active"?(e.openBlock(),e.createBlock(b,{key:0,type:C.row.is_active===1||C.row.is_active===!0?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.row.is_active===1||C.row.is_active===!0?"开启":"停用"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",De,e.toDisplayString(ne(C.row,l.prop)),1))]),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(_,{label:"操作","min-width":"220",fixed:"right"},{default:e.withCtx(l=>[e.unref(h).showViewBtn?(e.openBlock(),e.createBlock(r,{key:0,size:"small",onClick:C=>ve(l.row)},{default:e.withCtx(()=>[...t[24]||(t[24]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(h).showEditBtn?(e.openBlock(),e.createBlock(r,{key:1,size:"small",type:"primary",onClick:C=>ce(l.row)},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(h).showArchiveBtn?(e.openBlock(),e.createBlock(r,{key:2,size:"small",type:"info",onClick:C=>Ve(l.row)},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(h).showDeleteBtn?(e.openBlock(),e.createBlock(r,{key:3,size:"small",type:"danger",onClick:C=>ye(l.row)},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data","height"])],512),e.createElementVNode("div",ze,[e.createVNode(I,{"current-page":y.current,"onUpdate:currentPage":t[2]||(t[2]=l=>y.current=l),"page-size":y.pageSize,"onUpdate:pageSize":t[3]||(t[3]=l=>y.pageSize=l),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:y.total,onSizeChange:se,onCurrentChange:de},null,8,["current-page","page-size","total"])])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],6)),[[B,H.value]]),e.createVNode(N,{modelValue:z.value,"onUpdate:modelValue":t[10]||(t[10]=l=>z.value=l),title:"添加映射表",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(r,{onClick:t[9]||(t[9]=l=>z.value=!1)},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(r,{type:"primary",loading:k.value,onClick:pe},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(q,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(V,{label:"映射表名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.name,"onUpdate:modelValue":t[4]||(t[4]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"映射表别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.alias,"onUpdate:modelValue":t[5]||(t[5]=l=>i.alias=l),placeholder:"可选"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.description,"onUpdate:modelValue":t[6]||(t[6]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"映射表脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.script,"onUpdate:modelValue":t[7]||(t[7]=l=>i.script=l),type:"textarea",rows:6,placeholder:"JSON 数组,默认 []"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"扩展信息"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.addition,"onUpdate:modelValue":t[8]||(t[8]=l=>i.addition=l),type:"textarea",rows:4,placeholder:"JSON,默认 []"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(N,{modelValue:A.value,"onUpdate:modelValue":t[18]||(t[18]=l=>A.value=l),title:"编辑映射表",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(r,{onClick:t[17]||(t[17]=l=>A.value=!1)},{default:e.withCtx(()=>[...t[30]||(t[30]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(r,{type:"primary",loading:k.value,onClick:me},{default:e.withCtx(()=>[...t[31]||(t[31]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(q,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(V,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.uid,"onUpdate:modelValue":t[11]||(t[11]=l=>i.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"映射表名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.name,"onUpdate:modelValue":t[12]||(t[12]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"映射表别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.alias,"onUpdate:modelValue":t[13]||(t[13]=l=>i.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.description,"onUpdate:modelValue":t[14]||(t[14]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"映射表脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.script,"onUpdate:modelValue":t[15]||(t[15]=l=>i.script=l),type:"textarea",rows:6},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"扩展信息"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.addition,"onUpdate:modelValue":t[16]||(t[16]=l=>i.addition=l),type:"textarea",rows:4},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(N,{modelValue:P.value,"onUpdate:modelValue":t[20]||(t[20]=l=>P.value=l),title:"映射表详情",width:"720px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(r,{type:"primary",onClick:t[19]||(t[19]=l=>P.value=!1)},{default:e.withCtx(()=>[...t[34]||(t[34]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Ae,[u.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(T,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(p,{label:"映射表编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"映射表名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"映射表别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.alias)!=null?l:""),1)]}),_:1}),u.value.is_active!==void 0&&u.value.is_active!==null?(e.openBlock(),e.createBlock(p,{key:0,label:"是否开启"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value.is_active===1||u.value.is_active===!0?"开启":"停用"),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(p,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"更新时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.description)!=null?l:""),1)]}),_:1})]),_:1}),t[32]||(t[32]=e.createElementVNode("div",{class:"view-block-title"},"映射表脚本",-1)),e.createVNode(n,{"model-value":fe.value,type:"textarea",rows:8,readonly:""},null,8,["model-value"]),t[33]||(t[33]=e.createElementVNode("div",{class:"view-block-title"},"扩展信息",-1)),e.createVNode(n,{"model-value":ge.value,type:"textarea",rows:6,readonly:""},null,8,["model-value"])],64)):e.createCommentVNode("",!0)])),[[B,Q.value]])]),_:1},8,["modelValue"])],64)}}})),Ie=E._export_sfc(Je,[["__scopeId","data-v-f233080b"]]);exports.default=Ie;
|
|
@@ -27,8 +27,8 @@ var w = (r, s, o) => new Promise((M, k) => {
|
|
|
27
27
|
d((o = o.apply(r, s)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as ee, ref as b, computed as te, watch as oe, onMounted as ne, onBeforeUnmount as ae, openBlock as f, createElementBlock as v, normalizeStyle as le, unref as re, createElementVNode as l, normalizeClass as se, toDisplayString as R, createCommentVNode as h, renderSlot as ie } from "vue";
|
|
30
|
-
import { B as ce } from "./BaseComponent-
|
|
31
|
-
import { u as de,
|
|
30
|
+
import { B as ce } from "./BaseComponent-BlCsb-HW.js";
|
|
31
|
+
import { u as de, i as ue, j as pe, a as me, F as fe, _ as ve } from "./index-DomNEEyv.js";
|
|
32
32
|
import { ElMessage as S } from "element-plus";
|
|
33
33
|
import { A as we, D as he } from "./ele-vdo-icon-DcWebTR5.js";
|
|
34
34
|
const ke = { class: "mix-body" }, ge = { class: "upload-content" }, ye = { class: "upload-title" }, Ce = {
|
|
@@ -71,7 +71,7 @@ const ke = { class: "mix-body" }, ge = { class: "upload-content" }, ye = { class
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
init() {
|
|
74
|
-
this.Style.value = this.extractStyles(), this.applyTheme(),
|
|
74
|
+
this.Style.value = this.extractStyles(), this.applyTheme(), B();
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
const k = new M(o, "markdownViewer");
|
|
@@ -80,7 +80,7 @@ const ke = { class: "mix-body" }, ge = { class: "upload-content" }, ye = { class
|
|
|
80
80
|
let u = "", _ = null;
|
|
81
81
|
const D = te(() => a.value ? _ ? _.render(a.value) : I(a.value) : ""), I = (e) => `<p>${e.replace(/```(\w*)\n([\s\S]*?)```/g, '<pre><code class="language-$1">$2</code></pre>').replace(/`([^`]+)`/g, "<code>$1</code>").replace(/^### (.*$)/gm, "<h3>$1</h3>").replace(/^## (.*$)/gm, "<h2>$1</h2>").replace(/^# (.*$)/gm, "<h1>$1</h1>").replace(/\*\*([^*]+)\*\*/g, "<strong>$1</strong>").replace(/\*([^*]+)\*/g, "<em>$1</em>").replace(/\[([^\]]+)\]\(([^)]+)\)/g, '<a href="$2" target="_blank">$1</a>').replace(/!\[([^\]]*)\]\(([^)]+)\)/g, '<img src="$2" alt="$1" />').replace(/^\s*[-*+]\s+(.*)$/gm, "<li>$1</li>").replace(/^\s*\d+\.\s+(.*)$/gm, "<li>$1</li>").replace(/^>\s+(.*)$/gm, "<blockquote>$1</blockquote>").replace(/^---$/gm, "<hr />").replace(/\n\n/g, "</p><p>").replace(/\n/g, "<br />")}</p>`, O = () => w(null, null, function* () {
|
|
82
82
|
try {
|
|
83
|
-
yield
|
|
83
|
+
yield j("https://cdn.jsdelivr.net/npm/markdown-it@14.0.0/dist/markdown-it.min.js"), window.markdownit && (_ = window.markdownit({
|
|
84
84
|
html: !0,
|
|
85
85
|
linkify: !0,
|
|
86
86
|
typographer: !0,
|
|
@@ -89,14 +89,14 @@ const ke = { class: "mix-body" }, ge = { class: "upload-content" }, ye = { class
|
|
|
89
89
|
} catch (e) {
|
|
90
90
|
console.warn("加载 markdown-it 失败,使用简单渲染:", e);
|
|
91
91
|
}
|
|
92
|
-
}),
|
|
92
|
+
}), j = (e) => new Promise((t, n) => {
|
|
93
93
|
if (document.querySelector(`script[src="${e}"]`)) {
|
|
94
94
|
t();
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
97
|
const c = document.createElement("script");
|
|
98
98
|
c.src = e, c.onload = () => t(), c.onerror = () => n(new Error(`Failed to load script: ${e}`)), document.head.appendChild(c);
|
|
99
|
-
}),
|
|
99
|
+
}), B = () => w(null, null, function* () {
|
|
100
100
|
var e, t, n, c, g, y, C;
|
|
101
101
|
yield O(), (n = (t = (e = o.conf) == null ? void 0 : e.options) == null ? void 0 : t.mdContent) != null && n.value && (a.value = o.conf.options.mdContent.value), (y = (g = (c = o.conf) == null ? void 0 : c.options) == null ? void 0 : g.fileUrl) != null && y.value && (i.value = o.conf.options.fileUrl.value, d.value = ((C = o.conf.options.fileName) == null ? void 0 : C.value) || "", yield P());
|
|
102
102
|
}), P = () => w(null, null, function* () {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var Z=Object.defineProperty,K=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var R=(r,c,n)=>c in r?Z(r,c,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[c]=n,B=(r,c)=>{for(var n in c||(c={}))G.call(c,n)&&R(r,n,c[n]);if(_)for(var n of _(c))J.call(c,n)&&R(r,n,c[n]);return r},O=(r,c)=>K(r,W(c));var f=(r,c,n)=>new Promise((C,w)=>{var E=a=>{try{d(n.next(a))}catch(u){w(u)}},s=a=>{try{d(n.throw(a))}catch(u){w(u)}},d=a=>a.done?C(a.value):Promise.resolve(a.value).then(E,s);d((n=n.apply(r,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Q=require("./BaseComponent-
|
|
1
|
+
"use strict";var Z=Object.defineProperty,K=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var R=(r,c,n)=>c in r?Z(r,c,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[c]=n,B=(r,c)=>{for(var n in c||(c={}))G.call(c,n)&&R(r,n,c[n]);if(_)for(var n of _(c))J.call(c,n)&&R(r,n,c[n]);return r},O=(r,c)=>K(r,W(c));var f=(r,c,n)=>new Promise((C,w)=>{var E=a=>{try{d(n.next(a))}catch(u){w(u)}},s=a=>{try{d(n.throw(a))}catch(u){w(u)}},d=a=>a.done?C(a.value):Promise.resolve(a.value).then(E,s);d((n=n.apply(r,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Q=require("./BaseComponent-BXAJUoaf.cjs"),v=require("./index-Cvu9nAQq.cjs"),L=require("element-plus"),A=require("./ele-vdo-icon-Bgp9gaT6.cjs"),X={class:"mix-body"},Y={class:"upload-content"},ee={class:"upload-title"},te={key:0,class:"upload-hint"},oe={key:1,class:"upload-formats"},ne={key:1,class:"viewer-container"},le={key:0,class:"file-controls"},ae={class:"file-info"},re={class:"file-details"},ce={class:"file-name"},se={class:"control-buttons"},ie={class:"viewer-content"},de=["innerHTML"],me={DEFAULT_ICON:A.DEFAULT_ICON,ACTIVE_ICON:A.ACTIVE_ICON,NAME_CN:"Markdown查看器",NAME_EN:"Markdown Viewer",ORDER:4,PLATFORM:["pc","screen","mobile"]},ue={fileUrl:{value:"",type:"string",label:"component.markdown.fileUrl",placeholder:"component.markdown.uploadPlaceholder"},fileName:{value:"",type:"string",label:"component.markdown.fileName",placeholder:"component.markdown.uploadPlaceholder"},mdContent:{value:"",type:"textarea",label:"component.markdown.mdContent",placeholder:"component.markdown.contentPlaceholder"}},pe=[],fe=[],ve=[],we=null,ke={DEFAULT:me,OPTIONS:ue,DATA:pe,PARAMS:fe,SOURCE:ve,COMMON:we},ge=e.defineComponent(O(B({},ke),{__name:"markdownViewer",props:{conf:{type:Object,required:!0},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const c=v.useCounterStore(),n=r;class C extends Q.BaseComponent{extractStyles(){return{radiusSize:this.getOptionValue("radiusSize",0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),x()}}const w=new C(n,"markdownViewer");w.setupLifecycle();const E=w.getStyle(),s=e.ref(""),d=e.ref(""),a=e.ref(""),u=e.ref(null),b=e.ref(!1);let m="",N=null;const T=e.computed(()=>a.value?N?N.render(a.value):H(a.value):""),H=t=>`<p>${t.replace(/```(\w*)\n([\s\S]*?)```/g,'<pre><code class="language-$1">$2</code></pre>').replace(/`([^`]+)`/g,"<code>$1</code>").replace(/^### (.*$)/gm,"<h3>$1</h3>").replace(/^## (.*$)/gm,"<h2>$1</h2>").replace(/^# (.*$)/gm,"<h1>$1</h1>").replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>").replace(/\*([^*]+)\*/g,"<em>$1</em>").replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank">$1</a>').replace(/!\[([^\]]*)\]\(([^)]+)\)/g,'<img src="$2" alt="$1" />').replace(/^\s*[-*+]\s+(.*)$/gm,"<li>$1</li>").replace(/^\s*\d+\.\s+(.*)$/gm,"<li>$1</li>").replace(/^>\s+(.*)$/gm,"<blockquote>$1</blockquote>").replace(/^---$/gm,"<hr />").replace(/\n\n/g,"</p><p>").replace(/\n/g,"<br />")}</p>`,M=()=>f(null,null,function*(){try{yield I("https://cdn.jsdelivr.net/npm/markdown-it@14.0.0/dist/markdown-it.min.js"),window.markdownit&&(N=window.markdownit({html:!0,linkify:!0,typographer:!0,breaks:!0}))}catch(t){console.warn("加载 markdown-it 失败,使用简单渲染:",t)}}),I=t=>new Promise((o,l)=>{if(document.querySelector(`script[src="${t}"]`)){o();return}const i=document.createElement("script");i.src=t,i.onload=()=>o(),i.onerror=()=>l(new Error(`Failed to load script: ${t}`)),document.head.appendChild(i)}),x=()=>f(null,null,function*(){var t,o,l,i,k,g,h;yield M(),(l=(o=(t=n.conf)==null?void 0:t.options)==null?void 0:o.mdContent)!=null&&l.value&&(a.value=n.conf.options.mdContent.value),(g=(k=(i=n.conf)==null?void 0:i.options)==null?void 0:k.fileUrl)!=null&&g.value&&(s.value=n.conf.options.fileUrl.value,d.value=((h=n.conf.options.fileName)==null?void 0:h.value)||"",yield D())}),D=()=>f(null,null,function*(){if(s.value)try{const t=yield fetch(s.value);a.value=yield t.text()}catch(t){console.error("加载 Markdown 内容失败:",t),a.value=`# 加载失败
|
|
2
2
|
|
|
3
3
|
无法加载 Markdown 内容`}}),F=()=>{var t;(t=u.value)==null||t.click()},j=t=>f(null,null,function*(){var g,h,U,S;const o=t.target,l=(g=o==null?void 0:o.files)==null?void 0:g[0];if(!l)return;const i=(h=l.name.split(".").pop())==null?void 0:h.toLowerCase();if(i!=="md"&&i!=="markdown"){L.ElMessage.warning("请选择 Markdown 文件 (.md 或 .markdown)");return}d.value=l.name;const k=new FileReader;k.onload=p=>{var y;a.value=((y=p.target)==null?void 0:y.result)||""},k.readAsText(l,"UTF-8"),m&&URL.revokeObjectURL(m),m=URL.createObjectURL(l),s.value=m;try{b.value=!0;const p=yield v.fileToDataUrl(l),y=v.getFileExtension(l.name),V=yield v.api.post("upload",{dashboard_uid:c.pageData.id,file_data:p,file_type:y,user_id:((U=c.session.userInfo)==null?void 0:U.id)||""},!0);if(V.code===200&&((S=V.result)!=null&&S.relative_path)){const z=v.FILE_URL+V.result.relative_path;$("fileUrl",z),$("fileName",V.result.file_name||l.name),L.ElMessage.success("文件上传成功")}else throw new Error(V.msg||"上传失败")}catch(p){console.error("文件上传失败:",p),L.ElMessage.error("文件上传失败: "+((p==null?void 0:p.message)||"未知错误"))}finally{b.value=!1,u.value&&(u.value.value="")}}),$=(t,o)=>{var l;(l=n.conf)!=null&&l.options&&(n.conf.options[t]||(n.conf.options[t]={value:"",type:"string",label:""}),n.conf.options[t].value=o)},q=()=>{m&&URL.revokeObjectURL(m),s.value="",d.value="",a.value="",m=""},P=()=>{if(a.value){const t=new Blob([a.value],{type:"text/markdown"}),o=URL.createObjectURL(t),l=document.createElement("a");l.href=o,l.download=d.value||"document.md",document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(o)}};return e.watch(()=>{var t,o,l;return(l=(o=(t=n.conf)==null?void 0:t.options)==null?void 0:o.mdContent)==null?void 0:l.value},t=>{t&&t!==a.value&&(a.value=t)}),e.onMounted(()=>f(null,null,function*(){yield M()})),e.onBeforeUnmount(()=>{m&&URL.revokeObjectURL(m)}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({borderRadius:`${e.unref(E).radiusSize}px`})},[e.createElementVNode("div",X,[!a.value&&!s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["upload-area",{"preview-mode":r.mode==="preview"}]),onClick:o[0]||(o[0]=l=>r.mode!=="preview"&&F())},[e.createElementVNode("input",{ref_key:"fileInputRef",ref:u,type:"file",accept:".md,.markdown",onChange:j,style:{display:"none"}},null,544),e.createElementVNode("div",Y,[o[2]||(o[2]=e.createElementVNode("div",{class:"upload-icon"},[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"32",height:"32",fill:"currentColor"},[e.createElementVNode("path",{d:"M20.56 18H3.44C2.65 18 2 17.37 2 16.59V7.41C2 6.63 2.65 6 3.44 6H20.56C21.35 6 22 6.63 22 7.41V16.59C22 17.37 21.35 18 20.56 18M6.81 15.19V11.53L8.73 13.88L10.65 11.53V15.19H12.58V8.81H10.65L8.73 11.16L6.81 8.81H4.89V15.19H6.81M19.69 12H17.77V8.81H15.85V12H13.92L16.81 15.28L19.69 12Z"})])],-1)),e.createElementVNode("h3",ee,e.toDisplayString(r.mode==="preview"?t.$t("component.markdown.noFile"):t.$t("component.markdown.uploadText")),1),r.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",te,e.toDisplayString(t.$t("component.markdown.uploadHint")),1)):e.createCommentVNode("",!0),r.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",oe,[...o[1]||(o[1]=[e.createElementVNode("span",{class:"format-tag"},"MD",-1),e.createElementVNode("span",{class:"format-tag"},"MARKDOWN",-1)])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),a.value||s.value?(e.openBlock(),e.createElementBlock("div",ne,[r.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",le,[e.createElementVNode("div",ae,[e.createElementVNode("div",re,[e.createElementVNode("span",ce,e.toDisplayString(d.value||"Markdown 文档"),1),o[3]||(o[3]=e.createElementVNode("span",{class:"file-type"},"MD",-1))]),e.createElementVNode("div",se,[s.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"control-btn",onClick:P,title:"下载文件"},[...o[4]||(o[4]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"})],-1)])])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"control-btn",onClick:q,title:"更换文件"},[...o[5]||(o[5]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",ie,[e.createElementVNode("div",{class:"markdown-content",innerHTML:T.value},null,8,de)])])):e.createCommentVNode("",!0)]),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),he=v._export_sfc(ge,[["__scopeId","data-v-4984acea"]]);exports.default=he;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var b=(e,s,i)=>new Promise((l,r)=>{var c=t=>{try{a(i.next(t))}catch(m){r(m)}},o=t=>{try{a(i.throw(t))}catch(m){r(m)}},a=t=>t.done?l(t.value):Promise.resolve(t.value).then(c,o);a((i=i.apply(e,s)).next())});const _=require("./index-Cvu9nAQq.cjs"),h=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");const n=require("vue"),w=require("element-plus");function N(e,s){return e!=null&&e.list?e.type==="black_list"?!e.list.includes(s):e.list.includes(s):!1}const f="control_authorized",v=(e,s)=>{let i=sessionStorage.getItem(f)?JSON.parse(sessionStorage.getItem(f)||"{}"):{};i[e]=s,sessionStorage.setItem(f,JSON.stringify(i))},S=e=>(sessionStorage.getItem(f)?JSON.parse(sessionStorage.getItem(f)||"{}"):{})[e]||null,I=e=>b(null,null,function*(){let s={block_mapping:"mapping",action:"get_object_item",uid:e};return new Promise(i=>{_.api.platform(l=>{i(l)},s)})}),V=e=>b(null,null,function*(){var p;const{conf:s,password:i,authorized:l}=e,{common:r}=s;if((localStorage.getItem("sys_mode")||null)==="box")return{password:i,authorized:l};let o={password:"",authorized:{}},a=r.object_id||e.uid;if(r.useAlias){const d=sessionStorage.getItem(_.ALIAS_MAPPING_KEY);if(d)try{const u=JSON.parse(d);r.object_alias&&u[r.object_alias]&&(a=u[r.object_alias])}catch(u){console.error("Failed to parse alias mapping",u)}}if(!a)return o.authorized=l,o.password=i,o;if(S(a))return S(a);const{result:t}=yield I(a);if(o.password=(t==null?void 0:t.control)||"",!(t!=null&&t.control_id))return o.authorized={type:"white_list",list:[]},o;let m={user_uid:((p=_.auth.getUser())==null?void 0:p.uid)||"",block_mapping:"mixauth_go",action:"get_user_final_data_permission"};return new Promise(d=>{_.api.platform(u=>{o.authorized=k(u,t.control_id),v(a,o),d(o)},m)})});function k(e,s){var c,o,a;const i=((c=e==null?void 0:e.result)==null?void 0:c.auth_type)||"black_list",l=(a=(o=e==null?void 0:e.result)==null?void 0:o.entities)==null?void 0:a[_.CONTROL_PERMISSION_KEY];if(!l||!l.some(t=>t.startsWith(s)))return{type:i,list:[]};const r=l.filter(t=>t.startsWith(s)).map(t=>t.split(`${s}.`)[1]);return{type:i,list:r}}const O={class:"dialog-footer"},j={__name:"mix-control-modal",props:{password:{type:String,default:""}},emits:["submit"],setup(e,{expose:s,emit:i}){const l=i,r=e,c=n.ref(""),o=n.reactive({visible:!1,title:"密码验证"}),a=()=>{o.visible=!1},t=()=>{if(o.visible=!1,c.value!==r.password){w.ElMessage.error("密码错误");return}l("submit")};return n.watchEffect(()=>{o.visible&&(c.value="")}),s({modal:o}),(m,p)=>{const d=h.ElInput,u=h.ElButton,y=h.ElDialog;return n.openBlock(),n.createBlock(y,{modelValue:o.visible,"onUpdate:modelValue":p[1]||(p[1]=g=>o.visible=g),title:o.title,width:"300px","append-to-body":""},{footer:n.withCtx(()=>[n.createElementVNode("div",O,[n.createVNode(u,{onClick:a},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.$t("common.cancel")),1)]),_:1}),n.createVNode(u,{type:"primary",onClick:t},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.$t("common.confirm")),1)]),_:1})])]),default:n.withCtx(()=>[n.createVNode(d,{modelValue:c.value,"onUpdate:modelValue":p[0]||(p[0]=g=>c.value=g)},null,8,["modelValue"])]),_:1},8,["modelValue","title"])}}};exports._sfc_main=j;exports.checkPermission=N;exports.getAuthorized=V;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
var g = (t, s, i) => new Promise((n, l) => {
|
|
2
|
+
var r = (e) => {
|
|
3
|
+
try {
|
|
4
|
+
a(i.next(e));
|
|
5
|
+
} catch (m) {
|
|
6
|
+
l(m);
|
|
7
|
+
}
|
|
8
|
+
}, o = (e) => {
|
|
9
|
+
try {
|
|
10
|
+
a(i.throw(e));
|
|
11
|
+
} catch (m) {
|
|
12
|
+
l(m);
|
|
13
|
+
}
|
|
14
|
+
}, a = (e) => e.done ? n(e.value) : Promise.resolve(e.value).then(r, o);
|
|
15
|
+
a((i = i.apply(t, s)).next());
|
|
16
|
+
});
|
|
17
|
+
import { A as v, h as k, a as w, S as N } from "./index-DomNEEyv.js";
|
|
18
|
+
import { ElDialog as O, ElInput as V, ElButton as j } from "element-plus/es";
|
|
19
|
+
import "element-plus/es/components/base/style/css";
|
|
20
|
+
import "element-plus/es/components/dialog/style/css";
|
|
21
|
+
import "element-plus/es/components/button/style/css";
|
|
22
|
+
import "element-plus/es/components/input/style/css";
|
|
23
|
+
import { ref as E, reactive as A, watchEffect as x, openBlock as P, createBlock as C, withCtx as _, createVNode as b, createElementVNode as M, createTextVNode as S, toDisplayString as y } from "vue";
|
|
24
|
+
import { ElMessage as J } from "element-plus";
|
|
25
|
+
function z(t, s) {
|
|
26
|
+
return t != null && t.list ? t.type === "black_list" ? !t.list.includes(s) : t.list.includes(s) : !1;
|
|
27
|
+
}
|
|
28
|
+
const d = "control_authorized", R = (t, s) => {
|
|
29
|
+
let i = sessionStorage.getItem(d) ? JSON.parse(sessionStorage.getItem(d) || "{}") : {};
|
|
30
|
+
i[t] = s, sessionStorage.setItem(d, JSON.stringify(i));
|
|
31
|
+
}, h = (t) => (sessionStorage.getItem(d) ? JSON.parse(sessionStorage.getItem(d) || "{}") : {})[t] || null, T = (t) => g(null, null, function* () {
|
|
32
|
+
let s = {
|
|
33
|
+
block_mapping: "mapping",
|
|
34
|
+
action: "get_object_item",
|
|
35
|
+
uid: t
|
|
36
|
+
};
|
|
37
|
+
return new Promise((i) => {
|
|
38
|
+
w.platform((n) => {
|
|
39
|
+
i(n);
|
|
40
|
+
}, s);
|
|
41
|
+
});
|
|
42
|
+
}), H = (t) => g(null, null, function* () {
|
|
43
|
+
var p;
|
|
44
|
+
const { conf: s, password: i, authorized: n } = t, { common: l } = s;
|
|
45
|
+
if ((localStorage.getItem("sys_mode") || null) === "box")
|
|
46
|
+
return {
|
|
47
|
+
password: i,
|
|
48
|
+
authorized: n
|
|
49
|
+
};
|
|
50
|
+
let o = {
|
|
51
|
+
password: "",
|
|
52
|
+
authorized: {}
|
|
53
|
+
}, a = l.object_id || t.uid;
|
|
54
|
+
if (l.useAlias) {
|
|
55
|
+
const u = sessionStorage.getItem(v);
|
|
56
|
+
if (u)
|
|
57
|
+
try {
|
|
58
|
+
const c = JSON.parse(u);
|
|
59
|
+
l.object_alias && c[l.object_alias] && (a = c[l.object_alias]);
|
|
60
|
+
} catch (c) {
|
|
61
|
+
console.error("Failed to parse alias mapping", c);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
if (!a)
|
|
65
|
+
return o.authorized = n, o.password = i, o;
|
|
66
|
+
if (h(a))
|
|
67
|
+
return h(a);
|
|
68
|
+
const { result: e } = yield T(a);
|
|
69
|
+
if (o.password = (e == null ? void 0 : e.control) || "", !(e != null && e.control_id))
|
|
70
|
+
return o.authorized = {
|
|
71
|
+
type: "white_list",
|
|
72
|
+
list: []
|
|
73
|
+
}, o;
|
|
74
|
+
let m = {
|
|
75
|
+
user_uid: ((p = k.getUser()) == null ? void 0 : p.uid) || "",
|
|
76
|
+
block_mapping: "mixauth_go",
|
|
77
|
+
action: "get_user_final_data_permission"
|
|
78
|
+
};
|
|
79
|
+
return new Promise((u) => {
|
|
80
|
+
w.platform((c) => {
|
|
81
|
+
o.authorized = B(c, e.control_id), R(a, o), u(o);
|
|
82
|
+
}, m);
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
function B(t, s) {
|
|
86
|
+
var r, o, a;
|
|
87
|
+
const i = ((r = t == null ? void 0 : t.result) == null ? void 0 : r.auth_type) || "black_list", n = (a = (o = t == null ? void 0 : t.result) == null ? void 0 : o.entities) == null ? void 0 : a[N];
|
|
88
|
+
if (!n || !n.some((e) => e.startsWith(s)))
|
|
89
|
+
return { type: i, list: [] };
|
|
90
|
+
const l = n.filter((e) => e.startsWith(s)).map((e) => e.split(`${s}.`)[1]);
|
|
91
|
+
return { type: i, list: l };
|
|
92
|
+
}
|
|
93
|
+
const L = { class: "dialog-footer" }, Q = {
|
|
94
|
+
__name: "mix-control-modal",
|
|
95
|
+
props: {
|
|
96
|
+
password: {
|
|
97
|
+
type: String,
|
|
98
|
+
default: ""
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
emits: ["submit"],
|
|
102
|
+
setup(t, { expose: s, emit: i }) {
|
|
103
|
+
const n = i, l = t, r = E(""), o = A({
|
|
104
|
+
visible: !1,
|
|
105
|
+
title: "密码验证"
|
|
106
|
+
}), a = () => {
|
|
107
|
+
o.visible = !1;
|
|
108
|
+
}, e = () => {
|
|
109
|
+
if (o.visible = !1, r.value !== l.password) {
|
|
110
|
+
J.error("密码错误");
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
n("submit");
|
|
114
|
+
};
|
|
115
|
+
return x(() => {
|
|
116
|
+
o.visible && (r.value = "");
|
|
117
|
+
}), s({ modal: o }), (m, p) => {
|
|
118
|
+
const u = V, c = j, I = O;
|
|
119
|
+
return P(), C(I, {
|
|
120
|
+
modelValue: o.visible,
|
|
121
|
+
"onUpdate:modelValue": p[1] || (p[1] = (f) => o.visible = f),
|
|
122
|
+
title: o.title,
|
|
123
|
+
width: "300px",
|
|
124
|
+
"append-to-body": ""
|
|
125
|
+
}, {
|
|
126
|
+
footer: _(() => [
|
|
127
|
+
M("div", L, [
|
|
128
|
+
b(c, { onClick: a }, {
|
|
129
|
+
default: _(() => [
|
|
130
|
+
S(y(m.$t("common.cancel")), 1)
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
}),
|
|
134
|
+
b(c, {
|
|
135
|
+
type: "primary",
|
|
136
|
+
onClick: e
|
|
137
|
+
}, {
|
|
138
|
+
default: _(() => [
|
|
139
|
+
S(y(m.$t("common.confirm")), 1)
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
})
|
|
143
|
+
])
|
|
144
|
+
]),
|
|
145
|
+
default: _(() => [
|
|
146
|
+
b(u, {
|
|
147
|
+
modelValue: r.value,
|
|
148
|
+
"onUpdate:modelValue": p[0] || (p[0] = (f) => r.value = f)
|
|
149
|
+
}, null, 8, ["modelValue"])
|
|
150
|
+
]),
|
|
151
|
+
_: 1
|
|
152
|
+
}, 8, ["modelValue", "title"]);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
export {
|
|
157
|
+
Q as _,
|
|
158
|
+
z as c,
|
|
159
|
+
H as g
|
|
160
|
+
};
|