mixdashboards 1.0.76 → 1.0.78
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-CQaDWNO0.js → BaseComponent-Dwhb9Mde.js} +3 -3
- package/dist/{BaseComponent-BmhMoM4H.cjs → BaseComponent-bzb58Hhs.cjs} +1 -1
- package/dist/{EChartComponentBase-i76OGL3z.js → EChartComponentBase-BmS2KONN.js} +2 -2
- package/dist/{EChartComponentBase-D9EUh4BZ.cjs → EChartComponentBase-CMN_pOMr.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-BiAHvTfh.cjs → EmergencyPlanPanel-CVusdpDo.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-B9S3Ru5-.js → EmergencyPlanPanel-FtvC-aXY.js} +1 -1
- package/dist/{HistoryPlanDialog-BU4GayEm.cjs → HistoryPlanDialog-CrYylrTC.cjs} +1 -1
- package/dist/{HistoryPlanDialog-CbbeFm-i.js → HistoryPlanDialog-DliuSi0p.js} +1 -1
- package/dist/{MonitoringMap-FGDoA0fw.cjs → MonitoringMap-CBnv001f.cjs} +1 -1
- package/dist/{MonitoringMap-B6tXBdvK.js → MonitoringMap-DB3R5nAJ.js} +2 -2
- package/dist/{UniverSheet-D8sflrTb.js → UniverSheet-DFyIjurx.js} +2 -2
- package/dist/{UniverSheet-D7y2pceH.cjs → UniverSheet-jy9kOyPN.cjs} +1 -1
- package/dist/{accelerationChart-DTlwSA0N.cjs → accelerationChart-Ceo371ch.cjs} +1 -1
- package/dist/{accelerationChart-bch4O3t-.js → accelerationChart-Q_Q_QlU7.js} +2 -2
- package/dist/{actionItem-Cw67YwsR.js → actionItem-BzMI_4-S.js} +2 -2
- package/dist/{actionItem-cdsgUvaC.cjs → actionItem-DB74CPi2.cjs} +1 -1
- package/dist/{alarmLevelChart-BynSRHG2.js → alarmLevelChart-Bp3SLCMe.js} +2 -2
- package/dist/{alarmLevelChart-BMjTLxB5.cjs → alarmLevelChart-CxmiBIKh.cjs} +1 -1
- package/dist/{alertTable-3VhkUZSf.cjs → alertTable-B1w_i0VB.cjs} +1 -1
- package/dist/{alertTable-CiwuaydQ.js → alertTable-DXzTm7mA.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-BLoecZkV.cjs → aliasObjectSelectorDemo-CRuq8zju.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-DfdRxb4I.js → aliasObjectSelectorDemo-Dfanalux.js} +1 -1
- package/dist/{annualRainfallChart-CHcr4-0D.js → annualRainfallChart-D4Rhc84p.js} +2 -2
- package/dist/{annualRainfallChart-DKR-A_PT.cjs → annualRainfallChart-DEeyac7q.cjs} +1 -1
- package/dist/{aqi-Gu-pAovO.js → aqi-BzCTxj0q.js} +36 -28
- package/dist/{aqi-D7VqP1QE.cjs → aqi-CBknBfTF.cjs} +2 -2
- package/dist/{aqiIndass-Bjj6n1aj.js → aqiIndass-BJGsJsmz.js} +2 -2
- package/dist/{aqiIndass-nfYUZ3UM.cjs → aqiIndass-CUs24FxP.cjs} +1 -1
- package/dist/{areaDeformCurve-fpGWmq05.cjs → areaDeformCurve-B8VGdoKK.cjs} +1 -1
- package/dist/{areaDeformCurve-nwlcUBDv.js → areaDeformCurve-bSAkB3Pt.js} +2 -2
- package/dist/{arrayCard-TfcgLrHv.js → arrayCard-BkD5sytz.js} +2 -2
- package/dist/{arrayCard-UoDqAGbN.cjs → arrayCard-kh5WRweD.cjs} +1 -1
- package/dist/{audio-BYgGYoEr.js → audio-BTrvZwCy.js} +2 -2
- package/dist/{audio-DdUv9Ot-.cjs → audio-DwJN2gca.cjs} +1 -1
- package/dist/{bar-SfGiFl1r.js → bar-DYIb4143.js} +2 -2
- package/dist/{bar-CkBXc7t1.cjs → bar-DsyyzcxB.cjs} +1 -1
- package/dist/{bmp-CY-Hb2x1.cjs → bmp-DbEyuBZw.cjs} +1 -1
- package/dist/{bmp-BbtdzIrI.js → bmp-Dt3mSkAr.js} +2 -2
- package/dist/{box-B4C_mirv.cjs → box--u3HQFj9.cjs} +1 -1
- package/dist/{box-CV41cJuX.js → box-D7RsK5Qp.js} +2 -2
- package/dist/{chartConfigPanel-D650rSn7.js → chartConfigPanel-CD-csrX-.js} +1 -1
- package/dist/{chartConfigPanel-DBlqAbbH.cjs → chartConfigPanel-DybQRqg6.cjs} +1 -1
- package/dist/{circleBar-U3iXMQr5.js → circleBar-4md65KCX.js} +2 -2
- package/dist/{circleBar-DkV7xPBl.cjs → circleBar-DJY37bwB.cjs} +1 -1
- package/dist/{clock-zKVUU8pu.js → clock-Cj0HsizY.js} +2 -2
- package/dist/{clock-CjgMeOhp.cjs → clock-Dc9jgxHT.cjs} +1 -1
- package/dist/{clt-DwI8i7zI.cjs → clt-CBbtQxMc.cjs} +1 -1
- package/dist/{clt-BsIA-YPQ.js → clt-uJT1jgHk.js} +2 -2
- package/dist/{cmc-BX9ichBB.cjs → cmc-CeTCKLBx.cjs} +1 -1
- package/dist/{cmc-CgpHejR2.js → cmc-JJ6eTxB3.js} +2 -2
- package/dist/{cmp-CTqtxzo4.cjs → cmp-CGZ_2BdE.cjs} +1 -1
- package/dist/{cmp-CS34lG7V.js → cmp-D9qlHJoW.js} +2 -2
- package/dist/{conclusionCard-N6pA6Q9P.js → conclusionCard-BsLeh3yq.js} +2 -2
- package/dist/{conclusionCard-wvtJmV_8.cjs → conclusionCard-CwLwj3zj.cjs} +1 -1
- package/dist/{controlList-Zz5ABe5b.js → controlList-CYNS0ArB.js} +2 -2
- package/dist/{controlList-BUAMdHA3.cjs → controlList-l2ZYM6m5.cjs} +1 -1
- package/dist/{controlRecordList-Dx0zj7js.js → controlRecordList-BZmCvISO.js} +2 -2
- package/dist/{controlRecordList-CMR4y_Ml.cjs → controlRecordList-N79_cTON.cjs} +1 -1
- package/dist/{controlRecordListAPP-ZDCKmz_8.cjs → controlRecordListAPP-DOzMDV4x.cjs} +1 -1
- package/dist/{controlRecordListAPP-bL9oqWzQ.js → controlRecordListAPP-aDj520mp.js} +2 -2
- package/dist/{crd-8tMwNlgx.cjs → crd-CV4kMUTB.cjs} +1 -1
- package/dist/{crd-DZPpD6XY.js → crd-bm_BHuoV.js} +2 -2
- package/dist/{ctrBtn-eCu0UDtW.cjs → ctrBtn-Cs6ZmfyJ.cjs} +1 -1
- package/dist/{ctrBtn-6Ql9ulTr.js → ctrBtn-DYceHTAq.js} +3 -3
- package/dist/{ctrSet-BwFVH1Mk.js → ctrSet-B6PlTSBE.js} +3 -3
- package/dist/{ctrSet-pX-zVivo.cjs → ctrSet-XqnGgYPn.cjs} +1 -1
- package/dist/{ctrSwitch-D95SI-aJ.cjs → ctrSwitch-B9lHJgQn.cjs} +1 -1
- package/dist/{ctrSwitch-b6hHf4QF.js → ctrSwitch-E0FM_4f2.js} +3 -3
- package/dist/{dataManagement-VucRLCK4.js → dataManagement-BAHa-OHl.js} +2 -2
- package/dist/{dataManagement-DubA1TV1.cjs → dataManagement-bKmkV2VY.cjs} +1 -1
- package/dist/{dataReport-CALIw14D.js → dataReport-B60Rb4sb.js} +2 -2
- package/dist/{dataReport-CkF5J7X1.cjs → dataReport-JcrjpK_j.cjs} +1 -1
- package/dist/{dataTable-C1rBH_p9.js → dataTable-BmvewFlr.js} +1 -1
- package/dist/{dataTable-C2q_CX5D.cjs → dataTable-CX6uktOu.cjs} +1 -1
- package/dist/{datetime-TBTeWqlf.cjs → datetime-BPM_lGiY.cjs} +1 -1
- package/dist/{datetime-Cq8scz5Q.js → datetime-DARBbZJx.js} +2 -2
- package/dist/{deepClusterSlipSurface-Cm50wbjv.js → deepClusterSlipSurface-BF77Vp7G.js} +2 -2
- package/dist/{deepClusterSlipSurface-CFaxRVmM.cjs → deepClusterSlipSurface-IywdiDlA.cjs} +1 -1
- package/dist/{deepDataMatrix-DyStA98d.js → deepDataMatrix--zgQoWer.js} +2 -2
- package/dist/{deepDataMatrix-CAYSav3X.cjs → deepDataMatrix-sRXkGqdm.cjs} +1 -1
- package/dist/{deepDisplacement3D-B3Iju2KK.cjs → deepDisplacement3D-BET8Ftuc.cjs} +1 -1
- package/dist/{deepDisplacement3D-Bat-Wc3i.js → deepDisplacement3D-BYt49pzj.js} +2 -2
- package/dist/{deepDisplacementChart-D5rHoC9r.js → deepDisplacementChart-B2zPpsk6.js} +2 -2
- package/dist/{deepDisplacementChart-CYMpNu_W.js → deepDisplacementChart-BGBhipUx.js} +3 -3
- package/dist/{deepDisplacementChart-CX9ALM89.cjs → deepDisplacementChart-BuuM485C.cjs} +1 -1
- package/dist/{deepDisplacementChart-C-Tr4DdI.cjs → deepDisplacementChart-D7loYUI5.cjs} +1 -1
- package/dist/{deepDisplacementView-DnjwQmEW.js → deepDisplacementView-Bwk9p_Qc.js} +1 -1
- package/dist/{deepDisplacementView-DTSsODJQ.cjs → deepDisplacementView-CTBH3IxP.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-CLKg72UA.js → deepNodeTemperatureChart-BqTigCTs.js} +2 -2
- package/dist/{deepNodeTemperatureChart-C9NRJ49Y.cjs → deepNodeTemperatureChart-CTLHLf0w.cjs} +1 -1
- package/dist/{deepTangentAngleChart-DklHYHhm.js → deepTangentAngleChart-5oxzMpMF.js} +2 -2
- package/dist/{deepTangentAngleChart-C9aFSFrD.cjs → deepTangentAngleChart-CHxB8OFL.cjs} +1 -1
- package/dist/{deepTemperatureField-CcnVGgbf.js → deepTemperatureField-Bhk89D3D.js} +3 -3
- package/dist/{deepTemperatureField-CXBL4_LS.cjs → deepTemperatureField-Cr6YbuR_.cjs} +1 -1
- package/dist/{deepTrendChart-De7ebpk4.js → deepTrendChart-CAbdVR8d.js} +2 -2
- package/dist/{deepTrendChart-OGW08BX-.cjs → deepTrendChart-Ch94j4W9.cjs} +1 -1
- package/dist/{deviceOnlineStatus-_3Txb8Tg.js → deviceOnlineStatus-C5ODwFsY.js} +2 -2
- package/dist/{deviceOnlineStatus-DarcMtY4.cjs → deviceOnlineStatus-DxsTb4Vb.cjs} +1 -1
- package/dist/{deviceStatus-BiJw8rnz.cjs → deviceStatus-CjFTpCaU.cjs} +1 -1
- package/dist/{deviceStatus-CL6E-pQ0.js → deviceStatus-DPfOQCSX.js} +2 -2
- package/dist/{displacementDataTable-DmAqr-JK.cjs → displacementDataTable-BIqBEkul.cjs} +1 -1
- package/dist/{displacementDataTable-tKtGe2xd.js → displacementDataTable-DG36VWok.js} +2 -2
- package/dist/{displacementTrajectoryChart-Dh6oPB0p.js → displacementTrajectoryChart-Cpmj24Jn.js} +2 -2
- package/dist/{displacementTrajectoryChart-DG2YdSqq.cjs → displacementTrajectoryChart-DRltcPfa.cjs} +1 -1
- package/dist/{displacementTrendChart-BHORe0qO.js → displacementTrendChart-D1yfRFQb.js} +2 -2
- package/dist/{displacementTrendChart-CT140vXG.cjs → displacementTrendChart-DpD79zii.cjs} +1 -1
- package/dist/{dxf-CVa4Vfm3.cjs → dxf-C_9cH0WU.cjs} +1 -1
- package/dist/{dxf-CjcHSJq-.js → dxf-zbCakRgh.js} +2 -2
- package/dist/dzc-CejqHneE.cjs +2 -0
- package/dist/{dzc-DDXNSuie.js → dzc-CfPVaIgj.js} +46 -38
- package/dist/{emergencyPlan-Vim4E6h7.js → emergencyPlan-LbeRH-P9.js} +3 -3
- package/dist/{emergencyPlan-D0AMuD-3.cjs → emergencyPlan-dEwML5xC.cjs} +1 -1
- package/dist/{evn-D2mdSoFB.cjs → evn-BvgQ3o3T.cjs} +1 -1
- package/dist/{evn-CdMN8gIC.js → evn-DsD_MKQd.js} +2 -2
- package/dist/{evolutionChart-P0l6P0Bc.js → evolutionChart-B4C9qB3I.js} +3 -3
- package/dist/{evolutionChart-I8XVW05I.cjs → evolutionChart-Dt5-xRsy.cjs} +1 -1
- package/dist/{fileViewer-DvntGv0b.js → fileViewer-B0LdLy2P.js} +2 -2
- package/dist/{fileViewer-D7sAA8-W.cjs → fileViewer-DZIREgL0.cjs} +1 -1
- package/dist/{filterBar-8gex5oR-.js → filterBar-Bt6w4_xK.js} +2 -2
- package/dist/{filterBar-GSTji96g.cjs → filterBar-D_jcuqwP.cjs} +1 -1
- package/dist/{fireCombustionCurve-B3jAhOft.js → fireCombustionCurve-C2rWY89D.js} +3 -3
- package/dist/{fireCombustionCurve-DrMmHf3N.cjs → fireCombustionCurve-CHRd1nSv.cjs} +1 -1
- package/dist/{fireFilterBar-CH6iK0Xg.js → fireFilterBar-CpwHRisZ.js} +2 -2
- package/dist/{fireFilterBar-Dy9DcHij.cjs → fireFilterBar-DX8qH1rr.cjs} +1 -1
- package/dist/{fireHistoryTable-n6L3juWp.cjs → fireHistoryTable-B38M6w5w.cjs} +1 -1
- package/dist/{fireHistoryTable-CHxHqPs0.js → fireHistoryTable-DcSgHt5q.js} +2 -2
- package/dist/{gag-BsO4kmp1.js → gag-BErw_nsf.js} +2 -2
- package/dist/{gag-BzjuwBvY.cjs → gag-qDNPdFJu.cjs} +1 -1
- package/dist/{gasStationList-7JzUcISs.js → gasStationList-BREZbC_k.js} +2 -2
- package/dist/{gasStationList-QwqTDEAG.cjs → gasStationList-NhJa4GO6.cjs} +1 -1
- package/dist/{geo3dViewer-Cf-jHpvF.cjs → geo3dViewer-D9uSt0up.cjs} +1 -1
- package/dist/{geo3dViewer-doEpUC_J.js → geo3dViewer-zAN1eIza.js} +3 -3
- package/dist/{glbModel-C6L--3dO.cjs → glbModel-C4FiDMM5.cjs} +1 -1
- package/dist/{glbModel-BgFIj_es.js → glbModel-i6HvK0m8.js} +2 -2
- package/dist/{globalObjectSelector-CdfiXRjg.js → globalObjectSelector-BrVwJEgp.js} +1 -1
- package/dist/{globalObjectSelector-P_irB0rv.cjs → globalObjectSelector-CR74psMa.cjs} +1 -1
- package/dist/{gnssFilterBar-DPNshMIx.js → gnssFilterBar-BEHXIIKI.js} +2 -2
- package/dist/{gnssFilterBar-CIwyv2yc.cjs → gnssFilterBar-BkfBQWXF.cjs} +1 -1
- package/dist/{gnssHistoryTable-j5FL6oYs.cjs → gnssHistoryTable-CQ-7ESYj.cjs} +1 -1
- package/dist/{gnssHistoryTable-C7x4-Tpp.js → gnssHistoryTable-DDWGE_ge.js} +2 -2
- package/dist/{gnssMapView-BWcS4hqj.js → gnssMapView-C9iRAzym.js} +4 -4
- package/dist/{gnssMapView-_VaJWBcE.cjs → gnssMapView-P6ed3l_W.cjs} +2 -2
- package/dist/{gnssSectionProfile-hpyiGI-6.js → gnssSectionProfile-BIqyABEf.js} +2 -2
- package/dist/{gnssSectionProfile-DGbTO7lV.cjs → gnssSectionProfile-CIZnF7VA.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-CNT6xaNs.cjs → gnssTimeSeriesChart-BgIM5U-H.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-rL9oG1ly.js → gnssTimeSeriesChart-DqH9JFBF.js} +2 -2
- package/dist/{gnssXYTrajectory-B1LZAepw.js → gnssXYTrajectory-BviUjxG9.js} +2 -2
- package/dist/{gnssXYTrajectory-CwAjhPRc.cjs → gnssXYTrajectory-CH8864n6.cjs} +1 -1
- package/dist/{grd-rJXqEimt.cjs → grd-BhpBxrpa.cjs} +1 -1
- package/dist/{grd-BLab9IY0.js → grd-DfkGlcW6.js} +2 -2
- package/dist/{grdIndass-gGrZ7gRV.js → grdIndass-ByznFwzc.js} +2 -2
- package/dist/{grdIndass-niY4UOwz.cjs → grdIndass-DhMfHz31.cjs} +1 -1
- package/dist/{grg-Dnro7bLg.js → grg-CVBoetQY.js} +2 -2
- package/dist/{grg-C1L5yeyY.cjs → grg-uzBlEm_K.cjs} +1 -1
- package/dist/{gridview-DxUsv2ny.cjs → gridview-CyXCqWKq.cjs} +1 -1
- package/dist/{gridview-BhjWlD0J.js → gridview-Dt3i1t5d.js} +2 -2
- package/dist/{groundwaterFilterBar-bNhTkX1C.js → groundwaterFilterBar-BbS81e9a.js} +2 -2
- package/dist/{groundwaterFilterBar-C-2e7S04.cjs → groundwaterFilterBar-C4xCPqa_.cjs} +1 -1
- package/dist/{groundwaterProfileChart-dhzmwfwz.js → groundwaterProfileChart-BBPFrt5W.js} +3 -3
- package/dist/{groundwaterProfileChart-BxKGPuOe.cjs → groundwaterProfileChart-DvjFvCm5.cjs} +2 -2
- package/dist/{groundwaterTimeCurve-BtzP6icm.js → groundwaterTimeCurve-CKlvc2nQ.js} +3 -3
- package/dist/{groundwaterTimeCurve-CTQPlTUr.cjs → groundwaterTimeCurve-Cb3xlM78.cjs} +1 -1
- package/dist/{groupCard-D00ElZoy.js → groupCard-BBzDl9uX.js} +2 -2
- package/dist/{groupCard-D4gdaVqR.cjs → groupCard-BVdjzdqF.cjs} +1 -1
- package/dist/{headerBar-MFw1W0qa.cjs → headerBar-B5Z8UviF.cjs} +1 -1
- package/dist/{headerBar-DEHj8fJr.js → headerBar-Dty08mHR.js} +2 -2
- package/dist/{history-BRkb914v.js → history-TkSKA8F1.js} +1 -1
- package/dist/{history-D1R2RAZQ.cjs → history-yI8XiwXi.cjs} +1 -1
- package/dist/{index-77aUdspY.cjs → index-6QhTSPkL.cjs} +13 -13
- package/dist/{index-BZpYmpDy.js → index-YNdVib_6.js} +3338 -3159
- package/dist/{insarDeformChart-pbOnnoN-.js → insarDeformChart-C9UkWIL9.js} +2 -2
- package/dist/{insarDeformChart-5EVWIkpL.cjs → insarDeformChart-Dr9Ve1vY.cjs} +1 -1
- package/dist/{insarImageViewer-DQJBN4YM.cjs → insarImageViewer-DAKBn2vV.cjs} +1 -1
- package/dist/{insarImageViewer-D3bbQA6g.js → insarImageViewer-DZbq2xch.js} +2 -2
- package/dist/{kds-D5seJB3L.cjs → kds-BkH8cJCu.cjs} +1 -1
- package/dist/{kds-gTJOwHbM.js → kds-__I8-o5i.js} +2 -2
- package/dist/{kpiCard-Cx6VNK6L.js → kpiCard-BzuF0qdE.js} +2 -2
- package/dist/{kpiCard-Bz-fg6sL.cjs → kpiCard-fRfv1QPb.cjs} +1 -1
- package/dist/{landslideMap-5erIcZo7.js → landslideMap-D84pku4Y.js} +3 -3
- package/dist/{landslideMap-D7_QpwmM.cjs → landslideMap-zD8SU2Lh.cjs} +1 -1
- package/dist/{landslideWarning-CzaddgWf.js → landslideWarning-0mckvEoZ.js} +5 -5
- package/dist/{landslideWarning-C3FZqrxT.cjs → landslideWarning-Cq-di-hN.cjs} +1 -1
- package/dist/{layerTabs-Dc1Xb11W.cjs → layerTabs-C2zq6a5M.cjs} +1 -1
- package/dist/{layerTabs-DqbOykS2.js → layerTabs-COzqQ9mn.js} +2 -2
- package/dist/{leaflet-src-BY2SMh9y.js → leaflet-src-2tPn7QVH.js} +1 -1
- package/dist/{leaflet-src-Brb8KUL5.cjs → leaflet-src-D8MF2j44.cjs} +1 -1
- package/dist/{lerc-Chm_GVte.js → lerc-BCmG0CMS.js} +2 -2
- package/dist/{lerc-DGuyYCKG.cjs → lerc-BHcVhBOn.cjs} +1 -1
- package/dist/{lin-tqtSA5ci.js → lin-CQ6TCBCr.js} +59 -51
- package/dist/{lin-8x2j8aGa.cjs → lin-niA_T9Ql.cjs} +2 -2
- package/dist/{linIndass-DHFymSVI.js → linIndass-J9rdji6E.js} +2 -2
- package/dist/{linIndass-Dxo_bzrZ.cjs → linIndass-nZx16Vos.cjs} +1 -1
- package/dist/{lst-BV6EbDPs.cjs → lst-Cw1XCAv0.cjs} +1 -1
- package/dist/{lst-BejIuO0f.js → lst-DieyrYCh.js} +2 -2
- package/dist/{manualEntry-DObI0OAq.js → manualEntry-CCmyPMJm.js} +2 -2
- package/dist/{manualEntry-Bt4cs6kn.cjs → manualEntry-ChhTpAF2.cjs} +1 -1
- package/dist/{mapBackground-oVOBK3zr.cjs → mapBackground-BzOdjhnZ.cjs} +1 -1
- package/dist/{mapBackground-Cuym5Dqr.js → mapBackground-CiiG2nHi.js} +3 -3
- package/dist/{mappingList-Dzq0zMfs.js → mappingList-CoBD8D27.js} +2 -2
- package/dist/{mappingList-BEWAqLd4.cjs → mappingList-D42mILiq.cjs} +1 -1
- package/dist/{markdownViewer-Bz50jkb6.js → markdownViewer-C3HUXDvf.js} +2 -2
- package/dist/{markdownViewer-V5b1xhPh.cjs → markdownViewer-DHs9ekCh.cjs} +1 -1
- package/dist/{mix-control-modal-DzVLdO3S.js → mix-control-modal-BEwriuWS.js} +1 -1
- package/dist/{mix-control-modal-I6DqPm04.cjs → mix-control-modal-DGd2S6Jd.cjs} +1 -1
- package/dist/{mixGrid-tVSdKPms.js → mixGrid-CBenxHD_.js} +2 -2
- package/dist/{mixGrid-_ur8VKLD.cjs → mixGrid-Cnq99D09.cjs} +1 -1
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mixiotObjectListApi-D5vNNWgT.js → mixiotObjectListApi-CKJLXcnf.js} +1 -1
- package/dist/{mixiotObjectListApi-BUQ-RZ3L.cjs → mixiotObjectListApi-e1qL7PHh.cjs} +1 -1
- package/dist/{mjpegCamera-DnAPpFJU.js → mjpegCamera-D8lB701i.js} +2 -2
- package/dist/{mjpegCamera-CjWe8BEK.cjs → mjpegCamera-DDFrZo-x.cjs} +1 -1
- package/dist/{monitorAlert-qmVSQ1lc.cjs → monitorAlert-C-mo-lDe.cjs} +1 -1
- package/dist/{monitorAlert-B-fTYPn6.js → monitorAlert-Z1dFDfPh.js} +2 -2
- package/dist/{monitorData-YhGSUq3H.cjs → monitorData-CNRfV5Wt.cjs} +1 -1
- package/dist/{monitorData-Dopc660L.js → monitorData-DZhO9Gos.js} +2 -2
- package/dist/{monitorSpeedChart-Dsvr_QPB.js → monitorSpeedChart-C5pN46lO.js} +1 -1
- package/dist/{monitorSpeedChart-Brj_YHsO.cjs → monitorSpeedChart-DrRdMdGD.cjs} +1 -1
- package/dist/{mxa-D4WkyBYZ.js → mxa-BFQ70ksk.js} +39 -31
- package/dist/mxa-COpw24fq.cjs +2 -0
- package/dist/{myValue-DYtBtOJ2.js → myValue-Dosl4Ro5.js} +2 -2
- package/dist/{myValue-C0tq-asC.cjs → myValue-Eb3asTOC.cjs} +1 -1
- package/dist/{myValueList-Ddpn1S68.js → myValueList-Dkc10vr6.js} +2 -2
- package/dist/{myValueList-BJctRTNd.cjs → myValueList-mcqRZanE.cjs} +1 -1
- package/dist/{objectList-Csf0hVwo.cjs → objectList-D4owr3ED.cjs} +1 -1
- package/dist/{objectList-G4wXFDwe.js → objectList-FWkZ6PAs.js} +3 -3
- package/dist/{objectListAPP-UZN4iuTn.cjs → objectListAPP-Bzevu1od.cjs} +1 -1
- package/dist/{objectListAPP-BrmUj4At.js → objectListAPP-CdfeZTgm.js} +3 -3
- package/dist/{photo-BYH_qg5O.cjs → photo-Dmxxqgrg.cjs} +1 -1
- package/dist/{photo-BEPeK7U8.js → photo-DxXTYq73.js} +2 -2
- package/dist/pie-BxpiCEYe.cjs +2 -0
- package/dist/{pie-CEVKe1lL.js → pie-COixdWUz.js} +85 -75
- package/dist/{placeholder-Bwv3VyEg.js → placeholder-CLLNLxRC.js} +1 -1
- package/dist/{placeholder-BezBEQGo.cjs → placeholder-Ole-Or58.cjs} +1 -1
- package/dist/{pressBtn-1LCNz2gE.js → pressBtn-C7Y-B8Dz.js} +3 -3
- package/dist/{pressBtn-CJZTyY8I.cjs → pressBtn-DwKg9PbD.cjs} +1 -1
- package/dist/{processTable-CHDazqah.js → processTable-CTkwZWWJ.js} +2 -2
- package/dist/{processTable-HtDeg1by.cjs → processTable-DDcKkjJx.cjs} +1 -1
- package/dist/{progressBar-BP4SmPZK.cjs → progressBar-7qHg67Sf.cjs} +1 -1
- package/dist/{progressBar-C3NcWUrS.js → progressBar-9npgJ9jD.js} +2 -2
- package/dist/{progressCircle-Bo9-Qva_.js → progressCircle-DP08TX08.js} +2 -2
- package/dist/{progressCircle-CDqK1iFt.cjs → progressCircle-Xgjnl1KF.cjs} +1 -1
- package/dist/{qrcode-VmYwvClG.js → qrcode-ClTSNzEN.js} +2 -2
- package/dist/{qrcode-qD6tOm4F.cjs → qrcode-D6wDMo-f.cjs} +1 -1
- package/dist/raceBar-C8mVFHnd.cjs +2 -0
- package/dist/{raceBar-DR2-luKW.js → raceBar-CTmsN8VC.js} +109 -101
- package/dist/{rad-1Jy1KDzt.js → rad-DWCSD35t.js} +2 -2
- package/dist/{rad-D7-YZJNO.cjs → rad-Dxaakm82.cjs} +1 -1
- package/dist/{radarMapViewer-KPhNE5XX.cjs → radarMapViewer-U7IQJjQs.cjs} +1 -1
- package/dist/{radarMapViewer-ByQXe0Mu.js → radarMapViewer-eEBE3MS-.js} +2 -2
- package/dist/{rainfallFilterBar-C1obotPf.js → rainfallFilterBar-DJTDGu7Z.js} +2 -2
- package/dist/{rainfallFilterBar-CVQpQp82.cjs → rainfallFilterBar-ow_wdOwq.cjs} +1 -1
- package/dist/{rainfallTimeCurve-DU2tt-Ls.cjs → rainfallTimeCurve-BL1I5Z2D.cjs} +1 -1
- package/dist/{rainfallTimeCurve-B2rEx3T_.js → rainfallTimeCurve-CwGmJhxu.js} +3 -3
- package/dist/{rangeLin-COsJkCky.cjs → rangeLin-BEz9xapa.cjs} +1 -1
- package/dist/{rangeLin-CdfUCFQr.js → rangeLin-BqcJpIva.js} +2 -2
- package/dist/{realtimeEvolutionMap-aR63xPW_.js → realtimeEvolutionMap-NOkyU7G3.js} +2 -2
- package/dist/{realtimeEvolutionMap-B7GT8MOq.cjs → realtimeEvolutionMap-mzXlR8gS.cjs} +1 -1
- package/dist/{regionBar-BYF7IaGA.cjs → regionBar-CEfz0Yol.cjs} +1 -1
- package/dist/{regionBar-DB-secNe.js → regionBar-DDk-2UWS.js} +2 -2
- package/dist/{request-CBsG4ipL.js → request-BIXfJXjX.js} +1 -1
- package/dist/{request-CvdHjG34.cjs → request-BfG3yDz6.cjs} +1 -1
- package/dist/{retainer1-1CFk4InO.cjs → retainer1-Ch1oZMeA.cjs} +1 -1
- package/dist/{retainer1-CMzTlM5Z.js → retainer1-Cz5rXIJj.js} +3 -3
- package/dist/{retainer2-DliOH7it.cjs → retainer2-DJ1R2GJE.cjs} +1 -1
- package/dist/{retainer2-DW4ewYX7.js → retainer2-DeelXgAZ.js} +3 -3
- package/dist/{retainerRecordList-DV7Tx39d.cjs → retainerRecordList-D3MsCnqy.cjs} +1 -1
- package/dist/{retainerRecordList-Bcm6leuD.js → retainerRecordList-DyhfjtfF.js} +2 -2
- package/dist/{retainerRecordListAPP-BDRwp8T3.js → retainerRecordListAPP-3Gr7db3D.js} +2 -2
- package/dist/{retainerRecordListAPP-CJ-u0Tj2.cjs → retainerRecordListAPP-B_hCyRak.cjs} +1 -1
- package/dist/{ringTopN-rd2UwH9f.cjs → ringTopN-fLinQVwX.cjs} +1 -1
- package/dist/{ringTopN-Duq0pzm_.js → ringTopN-t9xaVCWg.js} +2 -2
- package/dist/{riskRegionTable-BE_ggcEV.js → riskRegionTable-BThwQbTf.js} +2 -2
- package/dist/{riskRegionTable-CbPB8mlY.cjs → riskRegionTable-CagcISBC.cjs} +1 -1
- package/dist/{sankey-BqBn6_rx.cjs → sankey-BY_nwThw.cjs} +1 -1
- package/dist/{sankey-CnKm9PZe.js → sankey-Bwm0omQr.js} +2 -2
- package/dist/{scd-BgJ5P7co.cjs → scd-Bs1dG1w8.cjs} +1 -1
- package/dist/{scd-BaBLoem8.js → scd-DeYC1Rqx.js} +2 -2
- package/dist/{sideMenu-BgiQL2P1.cjs → sideMenu-CAEh3bwF.cjs} +1 -1
- package/dist/{sideMenu-CUal1UQY.js → sideMenu-Db_Nc_xz.js} +2 -2
- package/dist/{slopeStability-Y2tDzJeh.cjs → slopeStability-BWg6jhBB.cjs} +1 -1
- package/dist/{slopeStability-B9YbQLCE.js → slopeStability-CVC68Qcj.js} +2 -2
- package/dist/{speedCurve-DERBMtE1.js → speedCurve-CK4CXHeC.js} +2 -2
- package/dist/{speedCurve-Kll2RRJ8.cjs → speedCurve-DNNEIz4o.cjs} +1 -1
- package/dist/{stressFilterBar-BGI4gVfE.cjs → stressFilterBar-Cigl3IyR.cjs} +1 -1
- package/dist/{stressFilterBar-CHRWFnpP.js → stressFilterBar-DQ8nq8jV.js} +2 -2
- package/dist/{stressTimeCurve-hrlqSYS3.js → stressTimeCurve-BEANw1F8.js} +3 -3
- package/dist/{stressTimeCurve-DE5KiXEt.cjs → stressTimeCurve-BiduKfcg.cjs} +1 -1
- package/dist/{swiper-DNHC412s.js → swiper-BgkvIN5U.js} +2 -2
- package/dist/{swiper-CnGllhBQ.cjs → swiper-MIRXMnxk.cjs} +1 -1
- package/dist/{terminalConfigList-BlHAsyCm.js → terminalConfigList-B3lqvQel.js} +2 -2
- package/dist/{terminalConfigList-C45EANO4.cjs → terminalConfigList-C3zRbQvM.cjs} +1 -1
- package/dist/{terminalList-CNI3_FGb.cjs → terminalList-ArxJ1jdO.cjs} +1 -1
- package/dist/{terminalList-UGjkhyf4.js → terminalList-BevfdySj.js} +2 -2
- package/dist/{terminalListAPP-CIJZMdxI.js → terminalListAPP-CbpVft_s.js} +2 -2
- package/dist/{terminalListAPP-6fPXF-yJ.cjs → terminalListAPP-Cs0nnBfc.cjs} +1 -1
- package/dist/{textbox-BD_LQ0EN.js → textbox-CjkfmdaO.js} +2 -2
- package/dist/{textbox-yNPnOaan.cjs → textbox-DC9YLTn5.cjs} +1 -1
- package/dist/{timeQueryBar-3qiV0IV9.cjs → timeQueryBar-B69eldHQ.cjs} +1 -1
- package/dist/{timeQueryBar-B-uPtN25.js → timeQueryBar-CXd9yNgD.js} +1 -1
- package/dist/{timeSeries-DdQI4oZU.js → timeSeries-CLnLd-gX.js} +3 -3
- package/dist/{timeSeries-BTUuojvj.cjs → timeSeries-fB14CgRy.cjs} +1 -1
- package/dist/{timeSeriesCurve-TGXshTzl.js → timeSeriesCurve-CMcCzR13.js} +3 -3
- package/dist/{timeSeriesCurve-Cj_FbK4x.cjs → timeSeriesCurve-DOaxDpjr.cjs} +1 -1
- package/dist/{toggleBtn-BXcQfnTB.cjs → toggleBtn-BiUyrx_o.cjs} +1 -1
- package/dist/{toggleBtn-BMxqm5WG.js → toggleBtn-CWmuTxSD.js} +2 -2
- package/dist/{trajectoryConfigPanel-CqoKO0hL.cjs → trajectoryConfigPanel-D7IDlQIH.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-uRLWdXUb.js → trajectoryConfigPanel-DKLN3KY5.js} +1 -1
- package/dist/{trajectoryScatter-Dph8PSdN.cjs → trajectoryScatter-CL-2FKZe.cjs} +1 -1
- package/dist/{trajectoryScatter-DPE4cC8N.js → trajectoryScatter-TEactc8J.js} +2 -2
- package/dist/{universalConfigPanel-Db-pC67o.cjs → universalConfigPanel-B8JIiLXp.cjs} +1 -1
- package/dist/{universalConfigPanel-CI1CuBmr.js → universalConfigPanel-wicv4Ypw.js} +1 -1
- package/dist/{universalTable-DMrgtBrw.js → universalTable-8e3LrZvD.js} +2 -2
- package/dist/{universalTable-dQObEQog.cjs → universalTable-BlTdL3c0.cjs} +1 -1
- package/dist/{video-DEhLie80.js → video-DpRcCZZQ.js} +2 -2
- package/dist/{video-DbsKQhVD.cjs → video-nPkrKQyL.cjs} +1 -1
- package/dist/{videoMonitor-DLBtivXO.cjs → videoMonitor-DOVw5mE0.cjs} +1 -1
- package/dist/{videoMonitor-BS6_LYUb.js → videoMonitor-Z_7cZk5Y.js} +2 -2
- package/dist/{vlu-DaSjPY3I.js → vlu-BQCrHSlq.js} +2 -2
- package/dist/{vlu-DXk_wQf-.cjs → vlu-DEIgGiO-.cjs} +1 -1
- package/dist/{warningOverview-CKCEs_Jj.js → warningOverview-C7J5aXTJ.js} +3 -3
- package/dist/{warningOverview-DAUlXzr0.cjs → warningOverview-DXJNk5bT.cjs} +1 -1
- package/dist/{weather-BAI0IWNH.cjs → weather-B1Pfcn75.cjs} +1 -1
- package/dist/{weather-XUj6pFwM.js → weather-C1sjTcwC.js} +2 -2
- package/dist/{windLin-C9dsCT1w.cjs → windLin-QKZKJ1h_.cjs} +1 -1
- package/dist/{windLin-Bt4q2eUT.js → windLin-vlM63Hu7.js} +2 -2
- package/package.json +1 -1
- package/dist/dzc-DK16oTVj.cjs +0 -2
- package/dist/mxa-BzdI7BLB.cjs +0 -2
- package/dist/pie-B57zDxJV.cjs +0 -2
- package/dist/raceBar-uAs91hyk.cjs +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var F=Object.defineProperty,U=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var I=(u,a,n)=>a in u?F(u,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):u[a]=n,T=(u,a)=>{for(var n in a||(a={}))j.call(a,n)&&I(u,n,a[n]);if(E)for(var n of E(a))G.call(a,n)&&I(u,n,a[n]);return u},w=(u,a)=>U(u,Y(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),C=require("./BaseComponent-
|
|
1
|
+
"use strict";var F=Object.defineProperty,U=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var I=(u,a,n)=>a in u?F(u,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):u[a]=n,T=(u,a)=>{for(var n in a||(a={}))j.call(a,n)&&I(u,n,a[n]);if(E)for(var n of E(a))G.call(a,n)&&I(u,n,a[n]);return u},w=(u,a)=>U(u,Y(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),C=require("./BaseComponent-bzb58Hhs.cjs"),m=require("./index-6QhTSPkL.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),L=require("./ele-lin-icon-Dke_1AmT.cjs"),_=require("./installCanvasRenderer-CyhM1Qpl.cjs"),K=require("./install-DV5cEgNV.cjs"),Q=require("./install-CltTFs4e.cjs"),W=require("./install-C8buXQPI.cjs"),X=require("./install-CYwVETsi.cjs"),N=require("./echarts-BB8O2KSA.cjs"),Z={DEFAULT_ICON:L.DEFAULT_ICON,ACTIVE_ICON:L.ACTIVE_ICON,NAME_CN:"基础曲线",NAME_EN:"Base Line",ORDER:1,PLATFORM:["pc","screen","mobile"]},ee={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,top:30,bottom:40,left:40,right:20,points:10,isHideTitle:!1,isSmooth:!1,showArea:!1,hideYaxis:!1},q=[{name:"参数一",项目编号:"",object_id:"",color:""}],te=["name","项目编号","object_id","color"],oe=["index","deviation","stability","balance","increment","risk"],se={useAlias:!1,null:{type:"0",value:""},multiObject:!1,source:"index"},ie={DEFAULT:Z,OPTIONS:ee,DATA:q,PARAMS:te,SOURCE:oe,COMMON:se},ae=o.defineComponent(w(T({},ie),{__name:"linIndass",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(u){_.use([K.install,Q.install,_.install,W.install,_.install$1,X.install]);const a=o.ref(o.inject("session",null)),n="indasslin_"+Math.random().toString(16).substring(4,12);let s=null,v=null;const i=u;class V extends C.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),points:this.getOptionValue("points",10)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:q,o.nextTick(()=>{let t=document.querySelector("#"+n);t&&(s||(s=N.init(t),v=m.elementResizeDetectorMaker({strategy:"scroll"}),v.listenTo(t,()=>s==null?void 0:s.resize())),s.setOption(k(),!0))})}onPreview(){D.preview()}cleanup(){v&&v.uninstall(document.querySelector("#"+n)),s&&s.clear(),s&&N.dispose(s),s=null,D.unregister()}}const A=new V(i,"linIndass");A.setupLifecycle();const c=A.getStyle(),R=o.computed(()=>J.generateTitleStyle(i.conf.options)),k=()=>{var l,S,d,f,p,h,y,g;const{conf:e}=i,t=m.hasDataSource(e);var r={tooltip:{trigger:"axis",textStyle:{align:"left",fontSize:c.value.textSize}},legend:{show:!0,data:M(),right:20,top:0,textStyle:{color:c.value.textColor,fontSize:c.value.textSize}},grid:{top:((S=(l=e==null?void 0:e.options)==null?void 0:l.top)==null?void 0:S.value)||30,bottom:((f=(d=e==null?void 0:e.options)==null?void 0:d.bottom)==null?void 0:f.value)||20,left:((h=(p=e==null?void 0:e.options)==null?void 0:p.left)==null?void 0:h.value)||40,right:((g=(y=e==null?void 0:e.options)==null?void 0:y.right)==null?void 0:g.value)||20,containLabel:!1},xAxis:[{type:"category",boundaryGap:!1,data:m.getxAxisDataTime(c.value.points,i.mode,t),axisLabel:{formatter:function(x,le){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(x))return x;let z=x.split(" ");return z[0]+`
|
|
2
2
|
`+z[1]},color:c.value.textColor,fontSize:c.value.textSize}}],yAxis:H(),series:$()};return r},M=()=>{const{conf:e}=i;return e.data.map(t=>t.name)},$=()=>{const{conf:e}=i,t=m.hasDataSource(e);let r=[];return e.data.forEach((l,S)=>{var f,p,h,y,g,x;let d=l.color||m.COLORS[S];r.push({type:"line",data:m.getRandomArr({num:c.value.points,max:200,min:0,mode:i.mode,hasDataSource:t}),smooth:((p=(f=e==null?void 0:e.options)==null?void 0:f.isSmooth)==null?void 0:p.value)||!1,name:l.name,yAxisIndex:(y=(h=e==null?void 0:e.options)==null?void 0:h.hideYaxis)!=null&&y.value?S:0,itemStyle:{color:d},areaStyle:B(d,e),label:{show:((x=(g=e==null?void 0:e.options)==null?void 0:g.showLabel)==null?void 0:x.value)||!1,position:"top",color:d}})}),r},B=(e,t)=>{var r,l;return(l=(r=t==null?void 0:t.options)==null?void 0:r.showArea)!=null&&l.value?{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e},{offset:1,color:e+"00"}]}}:null},H=()=>{var r,l;const{conf:e}=i;let t=[];if((l=(r=e==null?void 0:e.options)==null?void 0:r.hideYaxis)!=null&&l.value)e.data.forEach(()=>{t.push({type:"value",show:!1})});else return{type:"value",show:!0,splitNumber:4,axisLabel:{color:c.value.textColor,fontSize:c.value.textSize},splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}}};return t},P=e=>{if(!m.hasDataSource(i.conf))return;const{data:t}=i.conf;let r=m.handleNullData(e,i,"history"),l=[],S=[];if(!r.history.length)return;r.history.forEach((f,p)=>{S.push([]),S[p]=f.map(h=>{var y;return(y=h[t[p].项目编号])!=null?y:"--"}),l[p]=f.map(h=>h.time)});let d=s==null?void 0:s.getOption();d&&(d.xAxis[0].data=l[0],d.series.forEach((f,p)=>{f.data=S[p]}),s==null||s.setOption(d))},b=e=>{m.hasDataSource(i.conf)},D={preview:()=>C.preview(i,a.value,P,b,"linIndass"),unregister:()=>C.unregister(i,a.value)};o.watchEffect(()=>{i.conf.socketData&&b(i.conf.socketData)});const O=i.conf;return(e,t)=>(o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(c).bgColor,borderRadius:`${o.unref(c).radiusSize}px`})},[o.createElementVNode("div",{class:"mix-title",style:o.normalizeStyle(R.value)},o.toDisplayString(o.unref(O).caption||o.unref(O).name),5),o.createElementVNode("div",{class:"mix-body"},[o.createElementVNode("div",{class:"w-full h-full",id:n})]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4))}})),ne=m._export_sfc(ae,[["__scopeId","data-v-d766b323"]]);exports.default=ne;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var V=Object.defineProperty,O=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var v=(o,a,l)=>a in o?V(o,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[a]=l,g=(o,a)=>{for(var l in a||(a={}))N.call(a,l)&&v(o,l,a[l]);if(S)for(var l of S(a))k.call(a,l)&&v(o,l,a[l]);return o},C=(o,a)=>O(o,x(a));var h=(o,a,l)=>new Promise((m,d)=>{var i=s=>{try{u(l.next(s))}catch(n){d(n)}},p=s=>{try{u(l.throw(s))}catch(n){d(n)}},u=s=>s.done?m(s.value):Promise.resolve(s.value).then(i,p);u((l=l.apply(o,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_=require("./BaseComponent-
|
|
1
|
+
"use strict";var V=Object.defineProperty,O=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var v=(o,a,l)=>a in o?V(o,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[a]=l,g=(o,a)=>{for(var l in a||(a={}))N.call(a,l)&&v(o,l,a[l]);if(S)for(var l of S(a))k.call(a,l)&&v(o,l,a[l]);return o},C=(o,a)=>O(o,x(a));var h=(o,a,l)=>new Promise((m,d)=>{var i=s=>{try{u(l.next(s))}catch(n){d(n)}},p=s=>{try{u(l.throw(s))}catch(n){d(n)}},u=s=>s.done?m(s.value):Promise.resolve(s.value).then(i,p);u((l=l.apply(o,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_=require("./BaseComponent-bzb58Hhs.cjs"),b=require("./index-6QhTSPkL.cjs"),T=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-lst-icon-CrxnHZ-A.cjs"),A={class:"mix-body"},D={class:"flex flex-wrap"},B={class:"title"},L={class:"mix-body"},F={class:"list-wrap"},I={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"列表卡片",NAME_EN:"List",ORDER:1,PLATFORM:["pc","screen","mobile"]},R={bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,oddColor:{value:"#fff",type:"color",label:"component.list.oddColor",dependent:"isGroup"},evenColor:{value:"#f7f7f7",type:"color",label:"component.list.evenColor",dependent:"isGroup"},isHideTitle:!1,isGroup:!1},M=[{name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1}],$=["name","fv","object_id","unit","default","isText"],j=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],G={useAlias:!1,multiObject:!1,source:"mosaic"},U={DEFAULT:I,OPTIONS:R,DATA:M,PARAMS:$,SOURCE:j,COMMON:G},q=e.defineComponent(C(g({},U),{__name:"lst",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(o){const a=o,l="--";class m extends _.BaseComponent{extractStyles(){return{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),isGroup:this.getOptionValue("isGroup",!1),oddColor:this.getOptionValue("oddColor","#fff"),evenColor:this.getOptionValue("evenColor","#f7f7f7")}}init(){return h(this,null,function*(){var n;this.Style.value=this.extractStyles(),this.applyTheme(),(n=this.props.conf.data)!=null&&n.length||(this.props.conf.data=[{name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1}])})}setHistoryData(n){if(!n)return;const{data:c}=this.props.conf;!Array.isArray(c)||!c.length||c.forEach((t,r)=>{var f;t.value=(f=n[r].data[0])!=null?f:l})}setSocketData(n){if(!n)return;const{data:c}=this.props.conf;c.forEach(t=>{var r;t.value=(r=this.extractDataValue(n,t.fv))!=null?r:l})}}const d=new m(a,"lst");d.setupLifecycle();const i=d.getStyle(),p=e.computed(()=>T.generateTitleStyle(a.conf.options)),u=s=>{var c,t,r,f;let n={value:"",color:i.value.valueColor};if(s.isText){const y=((c=s.flag)==null?void 0:c.find(z=>z.code==s.value))||{};n.value=(t=y.text)!=null?t:"--",n.color=(r=y.color)!=null?r:i.value.valueColor}else n.value=(f=s.value)!=null?f:"--";return n};return(s,n)=>{var c;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(i).bgColor,borderRadius:`${e.unref(i).radiusSize}px`})},[e.unref(i).isGroup?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(p.value)},[e.createElementVNode("span",B,e.toDisplayString(o.conf.caption||o.conf.name),1)],4),e.createElementVNode("div",L,[e.createElementVNode("div",F,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.conf.data,(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:"flex",key:r,style:e.normalizeStyle({backgroundColor:Number(r)%2>0?e.unref(i).oddColor:e.unref(i).evenColor})},[e.createElementVNode("div",{class:"w-3/5 pl-4 py-1.5",style:e.normalizeStyle({color:e.unref(i).nameColor,fontSize:`${e.unref(i).nameSize}px`})},e.toDisplayString(t.name),5),e.createElementVNode("div",{class:"w-2/5 pl-4 py-1.5",style:e.normalizeStyle({color:u(t).color,fontSize:`${e.unref(i).valueSize}px`})},e.toDisplayString(u(t).value)+e.toDisplayString(t.unit?" "+t.unit:""),5)],4))),128))])])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(p.value)},e.toDisplayString(o.conf.caption||o.conf.name),5),e.createElementVNode("div",A,[e.createElementVNode("div",D,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((c=o.conf)==null?void 0:c.data,(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:"px-4 py-1.5",key:r},[e.createElementVNode("div",{class:"name",style:e.normalizeStyle({color:e.unref(i).nameColor,fontSize:`${e.unref(i).nameSize}px`})},e.toDisplayString(t.name),5),e.createElementVNode("div",{class:"mt-1",style:e.normalizeStyle({color:u(t).color,fontSize:`${e.unref(i).valueSize}px`})},e.toDisplayString(u(t).value)+e.toDisplayString(t.isText&&t.unit?" "+t.unit:""),5)]))),128))])])],64)),e.renderSlot(s.$slots,"default",{},void 0,!0)],4)}}})),w=b._export_sfc(q,[["__scopeId","data-v-61ffd6c8"]]);exports.default=w;
|
|
@@ -27,8 +27,8 @@ var T = (t, a, o) => new Promise((g, y) => {
|
|
|
27
27
|
f((o = o.apply(t, a)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as R, computed as G, openBlock as v, createElementBlock as m, normalizeStyle as d, unref as c, Fragment as h, createElementVNode as u, toDisplayString as p, renderList as V, renderSlot as M } from "vue";
|
|
30
|
-
import { B as $ } from "./BaseComponent-
|
|
31
|
-
import { _ as j } from "./index-
|
|
30
|
+
import { B as $ } from "./BaseComponent-Dwhb9Mde.js";
|
|
31
|
+
import { _ as j } from "./index-YNdVib_6.js";
|
|
32
32
|
import { g as w } from "./titleStyle-BT5GlpAb.js";
|
|
33
33
|
import { A as F, D as I } from "./ele-lst-icon-CKpeRKmk.js";
|
|
34
34
|
const U = { class: "mix-body" }, B = { class: "flex flex-wrap" }, H = { class: "title" }, P = { class: "mix-body" }, q = { class: "list-wrap" }, J = {
|
|
@@ -24,8 +24,8 @@ import "element-plus/es/components/select/style/css";
|
|
|
24
24
|
import "element-plus/es/components/option/style/css";
|
|
25
25
|
import { defineComponent as Ne, reactive as Me, ref as k, computed as H, onMounted as Re, onUnmounted as $e, openBlock as m, createElementBlock as f, normalizeStyle as j, unref as Y, createElementVNode as n, createVNode as t, withCtx as i, Fragment as C, renderList as h, createTextVNode as g, toDisplayString as F, createCommentVNode as P, createBlock as Te, renderSlot as Oe } from "vue";
|
|
26
26
|
import "html2canvas";
|
|
27
|
-
import { B as Ae } from "./BaseComponent-
|
|
28
|
-
import { _ as Ye } from "./index-
|
|
27
|
+
import { B as Ae } from "./BaseComponent-Dwhb9Mde.js";
|
|
28
|
+
import { _ as Ye } from "./index-YNdVib_6.js";
|
|
29
29
|
import { A as Fe, D as Pe } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
30
30
|
const Be = { class: "filter-bar" }, Ie = { class: "filter-left" }, Le = { class: "filter-group" }, He = { class: "filter-group" }, je = { class: "filter-group" }, Qe = { class: "filter-group" }, We = { class: "table-area" }, Ge = { class: "table-action-bar" }, Xe = { class: "pagination-bar" }, qe = { class: "modal-entries" }, Je = { class: "entry-header" }, Ke = { class: "entry-fields" }, Ze = { class: "field-group" }, el = { class: "field-group" }, ll = { class: "field-group" }, tl = { class: "field-group" }, al = { class: "field-group" }, sl = {
|
|
31
31
|
key: 0,
|
|
@@ -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-BmhMoM4H.cjs"),ce=require("./index-77aUdspY.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-bzb58Hhs.cjs"),ce=require("./index-6QhTSPkL.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,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-BmhMoM4H.cjs"),P=require("./index-77aUdspY.cjs"),C=require("./leaflet-src-Brb8KUL5.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-bzb58Hhs.cjs"),P=require("./index-6QhTSPkL.cjs"),C=require("./leaflet-src-D8MF2j44.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"/>
|
|
@@ -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 { l as h2, _ as L2 } from "./index-
|
|
17
|
-
import { L as C } from "./leaflet-src-
|
|
15
|
+
import { B as f2 } from "./BaseComponent-Dwhb9Mde.js";
|
|
16
|
+
import { l as h2, _ as L2 } from "./index-YNdVib_6.js";
|
|
17
|
+
import { L as C } from "./leaflet-src-2tPn7QVH.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,
|
|
@@ -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-Dwhb9Mde.js";
|
|
50
|
+
import { a as P, _ as dt } from "./index-YNdVib_6.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-BmhMoM4H.cjs"),E=require("./index-77aUdspY.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-bzb58Hhs.cjs"),E=require("./index-6QhTSPkL.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, i as ue, j as pe, a as me, F as fe, _ as ve } from "./index-
|
|
30
|
+
import { B as ce } from "./BaseComponent-Dwhb9Mde.js";
|
|
31
|
+
import { u as de, i as ue, j as pe, a as me, F as fe, _ as ve } from "./index-YNdVib_6.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 = {
|
|
@@ -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-bzb58Hhs.cjs"),v=require("./index-6QhTSPkL.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;
|
|
@@ -14,7 +14,7 @@ var g = (t, s, i) => new Promise((n, l) => {
|
|
|
14
14
|
}, a = (e) => e.done ? n(e.value) : Promise.resolve(e.value).then(r, o);
|
|
15
15
|
a((i = i.apply(t, s)).next());
|
|
16
16
|
});
|
|
17
|
-
import { A as v, h as k, a as w, T as N } from "./index-
|
|
17
|
+
import { A as v, h as k, a as w, T as N } from "./index-YNdVib_6.js";
|
|
18
18
|
import { ElDialog as O, ElInput as V, ElButton as j } from "element-plus/es";
|
|
19
19
|
import "element-plus/es/components/base/style/css";
|
|
20
20
|
import "element-plus/es/components/dialog/style/css";
|
|
@@ -1 +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-
|
|
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-6QhTSPkL.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;
|
|
@@ -33,8 +33,8 @@ import "element-plus/es/components/icon/style/css";
|
|
|
33
33
|
import { defineComponent as He, ref as oe, computed as M, openBlock as c, createElementBlock as s, normalizeStyle as C, unref as x, createElementVNode as E, toDisplayString as f, Fragment as ae, renderList as le, createCommentVNode as y, createVNode as w, withCtx as Me, createTextVNode as Ne, renderSlot as Xe, nextTick as _e } from "vue";
|
|
34
34
|
import { u as Re } from "./vue-i18n-5Nahpzrm.js";
|
|
35
35
|
import { Clock as we } from "@element-plus/icons-vue";
|
|
36
|
-
import { J as Pe, d as ie, a as Ue, _ as Ve } from "./index-
|
|
37
|
-
import { B as qe } from "./BaseComponent-
|
|
36
|
+
import { J as Pe, d as ie, a as Ue, _ as Ve } from "./index-YNdVib_6.js";
|
|
37
|
+
import { B as qe } from "./BaseComponent-Dwhb9Mde.js";
|
|
38
38
|
import { g as Be } from "./titleStyle-BT5GlpAb.js";
|
|
39
39
|
import { A as Je, D as Ze } from "./ele-grd-icon-DR52zwGR.js";
|
|
40
40
|
const Ge = "data:image/png;base64,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", Ie = {
|