mixdashboards 1.1.13 → 1.1.15
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/{AgGridTable-Bi7O66-r.cjs → AgGridTable-B0ARi6iQ.cjs} +39 -39
- package/dist/{AgGridTable-BjGMC3qC.js → AgGridTable-CiUB86Yi.js} +34 -35
- package/dist/{BaseComponent-B38Blgw3.js → BaseComponent-7Sa7XOg-.js} +3 -3
- package/dist/{BaseComponent-9njJjeix.cjs → BaseComponent-BabOc6Kc.cjs} +1 -1
- package/dist/{EChartComponentBase-DJScukmS.js → EChartComponentBase-DCKFGbqb.js} +2 -2
- package/dist/{EChartComponentBase-BwbycwwW.cjs → EChartComponentBase-DM6aSCAR.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-BxzP1xYW.cjs → EmergencyPlanPanel-B95hRGD5.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-D3GF-xQQ.js → EmergencyPlanPanel-BJ1w9aHu.js} +1 -1
- package/dist/{HistoryPlanDialog-DpaiRZgi.js → HistoryPlanDialog-0jjitoAV.js} +1 -1
- package/dist/{HistoryPlanDialog-DQXCUsy4.cjs → HistoryPlanDialog-DjIJTjzR.cjs} +1 -1
- package/dist/{MixiotAppDetailPage-BGfF3qrm.js → MixiotAppDetailPage-DcAZ_rZN.js} +1 -1
- package/dist/{MixiotAppDetailPage-CL1Sd9HJ.cjs → MixiotAppDetailPage-JpvZKz0u.cjs} +1 -1
- package/dist/{MonitoringMap-Wzsw3hVH.cjs → MonitoringMap-BFTZh1EC.cjs} +1 -1
- package/dist/{MonitoringMap-DQkO116Z.js → MonitoringMap-D6HBxlBf.js} +2 -2
- package/dist/{UniverSheet-Bne7JZyr.cjs → UniverSheet-0biXXXxr.cjs} +1 -1
- package/dist/{UniverSheet-Cd2a9LPx.js → UniverSheet-B4uisgP1.js} +2 -2
- package/dist/{accelerationChart-BJhVC_l5.cjs → accelerationChart-BDRSdpFi.cjs} +1 -1
- package/dist/{accelerationChart-BUsbSkwA.js → accelerationChart-Bw7lk5Ds.js} +19 -19
- package/dist/{actionItem-B3B4MFcW.js → actionItem-CvYP-t6r.js} +2 -2
- package/dist/{actionItem-DxB7IvtW.cjs → actionItem-DThWcN9C.cjs} +1 -1
- package/dist/{alarmLevelChart-DC-q2AgI.js → alarmLevelChart-687B7l09.js} +2 -2
- package/dist/{alarmLevelChart-DC_hx4Pn.cjs → alarmLevelChart-tIuQCLIZ.cjs} +1 -1
- package/dist/{alertTable-CHfA0TR-.cjs → alertTable-DRMDbKnY.cjs} +1 -1
- package/dist/{alertTable-CGRDnNPw.js → alertTable-VF9l7Yae.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-DGoLPE4i.cjs → aliasObjectSelectorDemo-CM81kBda.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-DuGQCEcG.js → aliasObjectSelectorDemo-W1sOe5E-.js} +7 -7
- package/dist/{annualRainfallChart-CLxVqN5Z.cjs → annualRainfallChart-CqR6pOpX.cjs} +1 -1
- package/dist/{annualRainfallChart-Dr8KKYOG.js → annualRainfallChart-NcsPJb-C.js} +2 -2
- package/dist/{aqi-rBhSWA_m.js → aqi-3Gq00rd7.js} +2 -2
- package/dist/{aqi-BmYGSf2e.cjs → aqi-CZ_4TrPd.cjs} +1 -1
- package/dist/{aqiIndass-DqJBc799.js → aqiIndass-BZ7HrCcK.js} +16 -16
- package/dist/{aqiIndass-Cpqau5M0.cjs → aqiIndass-C1bAEiH_.cjs} +1 -1
- package/dist/{areaDeformCurve-DpHWg6pf.js → areaDeformCurve-DQ3jFm7O.js} +2 -2
- package/dist/{areaDeformCurve-B924KVWX.cjs → areaDeformCurve-DgQjsOl5.cjs} +1 -1
- package/dist/{arrayCard-Bzjg3HKN.cjs → arrayCard-BVII-4mg.cjs} +1 -1
- package/dist/{arrayCard-C7anoYI-.js → arrayCard-BvkmBFMi.js} +2 -2
- package/dist/{audio-DTiS2piX.js → audio-86V-n6Mh.js} +2 -2
- package/dist/{audio-aADcgdZP.cjs → audio-DAVcGaCv.cjs} +1 -1
- package/dist/{bar-D32xICYZ.js → bar-D0uX_Pwu.js} +2 -2
- package/dist/{bar-DqY55XnC.cjs → bar-DdCjm6M9.cjs} +1 -1
- package/dist/{basicShapeToolbox-D8q86CzB.js → basicShapeToolbox-cjpSxBSI.js} +12 -12
- package/dist/{basicShapeToolbox-BvJjH4fV.cjs → basicShapeToolbox-vlF8ai0y.cjs} +1 -1
- package/dist/{bmp-DIFGLoNl.cjs → bmp-DmCehXiK.cjs} +1 -1
- package/dist/{bmp-DU3vm7yj.js → bmp-L5PC6_bj.js} +2 -2
- package/dist/{box-DTQKGR9g.js → box-BBDYqZhV.js} +16 -16
- package/dist/{box-C8pOZXek.cjs → box-DCe5iz-w.cjs} +1 -1
- package/dist/{chartConfigPanel-D4vk7zWs.cjs → chartConfigPanel-BDGfFdm5.cjs} +1 -1
- package/dist/{chartConfigPanel-Bz82sVyH.js → chartConfigPanel-BG38-Lo9.js} +1 -1
- package/dist/{circleBar-B48h_-uK.cjs → circleBar-BBrdfpn6.cjs} +1 -1
- package/dist/{circleBar-ClO05bgq.js → circleBar-CnStKTJz.js} +2 -2
- package/dist/{clock-D8ZXhy53.js → clock-CfoMLhjJ.js} +2 -2
- package/dist/{clock-DB94wQje.cjs → clock-D4FqM5tD.cjs} +1 -1
- package/dist/{clt-cxeCTOaA.cjs → clt-DrF15d3K.cjs} +1 -1
- package/dist/{clt-BX0SNGZr.js → clt-mVBTHfPs.js} +2 -2
- package/dist/{cmc-BvnYrQrR.cjs → cmc-BEKqMpSQ.cjs} +1 -1
- package/dist/{cmc-Co13D559.js → cmc-kC4VJ8V0.js} +17 -17
- package/dist/{cmp-Dd56EQ09.cjs → cmp-BBKmso3S.cjs} +1 -1
- package/dist/{cmp-B4cYCR4p.js → cmp-CEeDDeHU.js} +2 -2
- package/dist/{conclusionCard-Bla25-qd.js → conclusionCard-Drlv8OIb.js} +2 -2
- package/dist/{conclusionCard-Cd3DoD1l.cjs → conclusionCard-glbRT95d.cjs} +1 -1
- package/dist/{controlList-Dx4wSpA7.js → controlList-2sHPYEnd.js} +3 -3
- package/dist/{controlList-CyT_LYgr.cjs → controlList-V6TbbBW2.cjs} +1 -1
- package/dist/{controlRecordList-DsxYHRrs.cjs → controlRecordList-CqMshyV4.cjs} +1 -1
- package/dist/{controlRecordList-BAI_15ZN.js → controlRecordList-kZuqwCCC.js} +3 -3
- package/dist/{controlRecordListAPP-Zfiwcrmq.cjs → controlRecordListAPP-BevyiiWD.cjs} +1 -1
- package/dist/{controlRecordListAPP-BQlABx3f.js → controlRecordListAPP-rsphOVsE.js} +2 -2
- package/dist/{crd-IsqkYOAy.js → crd-1Q8p4BGc.js} +56 -57
- package/dist/crd-z0xGDAjD.cjs +1 -0
- package/dist/{ctrBtn-LwuY-nVR.js → ctrBtn-CDT6KYFl.js} +12 -12
- package/dist/{ctrBtn-C3OqkyNS.cjs → ctrBtn-DNMQrtKl.cjs} +1 -1
- package/dist/{ctrSet-B0nYCdwh.cjs → ctrSet-B8m_Qs1d.cjs} +1 -1
- package/dist/{ctrSet-Qb5XEdD4.js → ctrSet-DF2TcM9X.js} +13 -13
- package/dist/{ctrSwitch-B3jo3Gx0.js → ctrSwitch-_QtKcaSt.js} +3 -3
- package/dist/{ctrSwitch-Bps4Ak15.cjs → ctrSwitch-eUtgP6uT.cjs} +1 -1
- package/dist/{dataManagement-BFxVtU33.cjs → dataManagement-D1uUQ_Ex.cjs} +1 -1
- package/dist/{dataManagement-CVHalRKp.js → dataManagement-xM0ruay1.js} +2 -2
- package/dist/{dataReport-Bk79cBkV.cjs → dataReport-DbQ_m74F.cjs} +1 -1
- package/dist/{dataReport-B2AiDMdM.js → dataReport-XrPAwXcb.js} +2 -2
- package/dist/{dataTable-D9sSJRQn.js → dataTable-BIy_sh-b.js} +1 -1
- package/dist/{dataTable-Dh7s14jM.cjs → dataTable-G_Elyj_e.cjs} +1 -1
- package/dist/{datetime-C25d1bAc.cjs → datetime-CLJrKpiX.cjs} +1 -1
- package/dist/{datetime-CEKzNAlD.js → datetime-Dyw8-i5g.js} +2 -2
- package/dist/{deepClusterSlipSurface-DODVh-Qw.js → deepClusterSlipSurface-CcoFFz6r.js} +26 -26
- package/dist/{deepClusterSlipSurface-BLZL2xX6.cjs → deepClusterSlipSurface-Cthw-rk5.cjs} +1 -1
- package/dist/{deepDataMatrix-D_NPV2sQ.cjs → deepDataMatrix-C8yzdPMG.cjs} +1 -1
- package/dist/{deepDataMatrix-9iClruS0.js → deepDataMatrix-Dy-9hAeO.js} +16 -16
- package/dist/{deepDisplacement3D-C6puNK1m.cjs → deepDisplacement3D-B3jtZ9_l.cjs} +1 -1
- package/dist/{deepDisplacement3D-C5YMqHiD.js → deepDisplacement3D-BqAQle8x.js} +2 -2
- package/dist/{deepDisplacementChart-DhQO428W.cjs → deepDisplacementChart-BT5FC0DX.cjs} +1 -1
- package/dist/{deepDisplacementChart-9sQF6tFO.js → deepDisplacementChart-BdEWrVgi.js} +20 -20
- package/dist/{deepDisplacementChart-DEn2yqGO.js → deepDisplacementChart-C1jrx9vY.js} +25 -25
- package/dist/{deepDisplacementChart-D-dqPlzq.cjs → deepDisplacementChart-DL5yJXj2.cjs} +1 -1
- package/dist/{deepDisplacementView-tzX-vzxO.cjs → deepDisplacementView-B722va1V.cjs} +1 -1
- package/dist/{deepDisplacementView-Cux6lFtG.js → deepDisplacementView-DLOv9gJ6.js} +1 -1
- package/dist/{deepNodeTemperatureChart--GH8-4O7.js → deepNodeTemperatureChart-D5ZY6ywC.js} +27 -27
- package/dist/{deepNodeTemperatureChart-Cyfnw2BR.cjs → deepNodeTemperatureChart-Dj3Xm6SY.cjs} +1 -1
- package/dist/{deepTangentAngleChart-DPMDFXiA.cjs → deepTangentAngleChart-9HyIvRNJ.cjs} +1 -1
- package/dist/{deepTangentAngleChart-Dae_3j30.js → deepTangentAngleChart-DVDa5Zxc.js} +26 -26
- package/dist/{deepTemperatureField-Cr2e_Ytp.js → deepTemperatureField-BO4TyQ_g.js} +3 -3
- package/dist/{deepTemperatureField-B3Eu4zqv.cjs → deepTemperatureField-cbehgtiQ.cjs} +1 -1
- package/dist/{deepTrendChart-8fniZ16K.js → deepTrendChart-BRdRCV_a.js} +14 -14
- package/dist/{deepTrendChart-BPYqojQ2.cjs → deepTrendChart-D9yoOBuy.cjs} +1 -1
- package/dist/{deviceOnlineStatus-mJ0KVMo4.cjs → deviceOnlineStatus-43VQlj7e.cjs} +1 -1
- package/dist/{deviceOnlineStatus-DP7-u5lC.js → deviceOnlineStatus-BAas3BvQ.js} +2 -2
- package/dist/{deviceStatus-Ih0jQNYO.js → deviceStatus-2Jyg0ILJ.js} +10 -10
- package/dist/{deviceStatus-B0AxN-cY.cjs → deviceStatus-CcrMdiqm.cjs} +1 -1
- package/dist/{displacementDataTable-BbZjdMtX.js → displacementDataTable-Cuy2--YT.js} +12 -12
- package/dist/{displacementDataTable-Dkka_jGJ.cjs → displacementDataTable-VumJPDi3.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-DDwm-jr2.cjs → displacementTrajectoryChart-knwhmSBU.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-BZDSkYoZ.js → displacementTrajectoryChart-qLo3xtpZ.js} +23 -23
- package/dist/{displacementTrendChart-DZZaVi86.js → displacementTrendChart-D2Ronskq.js} +34 -34
- package/dist/{displacementTrendChart-CUeVa58Q.cjs → displacementTrendChart-DbAH_mjd.cjs} +1 -1
- package/dist/{dxf-BOfmTSO8.cjs → dxf-BAH7igHZ.cjs} +1 -1
- package/dist/{dxf-DYC74yWV.js → dxf-BSXyBPzC.js} +2 -2
- package/dist/{dzc-DUFiz7a_.cjs → dzc-D105FzEq.cjs} +1 -1
- package/dist/{dzc-BU7yYW4I.js → dzc-DvtA7L0o.js} +2 -2
- package/dist/{emergencyPlan-DDb6j7YU.cjs → emergencyPlan-CAs6Mk1Y.cjs} +1 -1
- package/dist/{emergencyPlan-DabL46QK.js → emergencyPlan-CFmxsb7R.js} +3 -3
- package/dist/{evn-DrreVqnm.cjs → evn-D-e0vp61.cjs} +1 -1
- package/dist/{evn-DhdColcF.js → evn-DtTKI8zs.js} +2 -2
- package/dist/{evolutionChart-QuGAgjXo.cjs → evolutionChart-6EMuwRiR.cjs} +1 -1
- package/dist/{evolutionChart-aedDj0mQ.js → evolutionChart-uRWhCC8C.js} +3 -3
- package/dist/{fileViewer-CvNnUxUK.cjs → fileViewer-CPG-66F1.cjs} +1 -1
- package/dist/{fileViewer-oBpWIjGb.js → fileViewer-Cxo-Sbha.js} +2 -2
- package/dist/{filterBar-CwHODFoy.cjs → filterBar-CI0jzG-8.cjs} +1 -1
- package/dist/{filterBar-DYpEssxC.js → filterBar-DchvCgB0.js} +2 -2
- package/dist/{fireCombustionCurve-wbKsWk4E.js → fireCombustionCurve-fvldUBQh.js} +3 -3
- package/dist/{fireCombustionCurve-lu2qH6_b.cjs → fireCombustionCurve-qOiCa6aW.cjs} +1 -1
- package/dist/{fireFilterBar-B8su74tt.cjs → fireFilterBar-B8J3V0n-.cjs} +1 -1
- package/dist/{fireFilterBar-9_fqGo2q.js → fireFilterBar-D7mx1XUg.js} +2 -2
- package/dist/{fireHistoryTable-C1C95uYN.js → fireHistoryTable-CP0kgqS6.js} +2 -2
- package/dist/{fireHistoryTable-pOJz1_Rp.cjs → fireHistoryTable-r_xPEo29.cjs} +1 -1
- package/dist/{gag-LSkHPD7f.cjs → gag-BhUKp8vX.cjs} +1 -1
- package/dist/{gag-BGUeQKJJ.js → gag-n3ajZOT8.js} +2 -2
- package/dist/{gasStationList-4TtBLsqC.js → gasStationList-CRZGXdZ-.js} +3 -3
- package/dist/{gasStationList-DJTrXjkv.cjs → gasStationList-DX9Q2lFd.cjs} +1 -1
- package/dist/{geo3dViewer-CK89hYK7.cjs → geo3dViewer-CfPFjRsL.cjs} +1 -1
- package/dist/{geo3dViewer-DIjv75YP.js → geo3dViewer-DFD75mZU.js} +3 -3
- package/dist/{glbModel-BDgY9S4f.cjs → glbModel-BrwlvZq6.cjs} +1 -1
- package/dist/{glbModel-IOIVpCjq.js → glbModel-x4OZxfPi.js} +2 -2
- package/dist/{globalObjectSelector-B2dkzNyk.js → globalObjectSelector-Bx2SbcG0.js} +1 -1
- package/dist/{globalObjectSelector-N7s0yyOp.cjs → globalObjectSelector-PiWbhkZ4.cjs} +1 -1
- package/dist/{gnssFilterBar-BF_tbN4_.js → gnssFilterBar-8ie4Hrtf.js} +2 -2
- package/dist/{gnssFilterBar-8eSkGWMH.cjs → gnssFilterBar-BY7YScHH.cjs} +1 -1
- package/dist/{gnssHistoryTable-DUjRjXoS.js → gnssHistoryTable-DH3MNQRj.js} +2 -2
- package/dist/{gnssHistoryTable-X_cgOa6r.cjs → gnssHistoryTable-lvtSQu6T.cjs} +1 -1
- package/dist/{gnssMapView-DnF2bYAD.cjs → gnssMapView-BalPUoGu.cjs} +2 -2
- package/dist/{gnssMapView-BnwPDey9.js → gnssMapView-eqR9-FLA.js} +4 -4
- package/dist/{gnssSectionProfile-D0sbRu3A.js → gnssSectionProfile-C2v9LYEI.js} +2 -2
- package/dist/{gnssSectionProfile-DoEXHKTy.cjs → gnssSectionProfile-fXM6wumD.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-Csm6PwRv.cjs → gnssTimeSeriesChart-DK08VGh2.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-glTixABx.js → gnssTimeSeriesChart-DO4m_7q7.js} +2 -2
- package/dist/{gnssXYTrajectory-4c8JDd_b.cjs → gnssXYTrajectory-CDgAcydt.cjs} +1 -1
- package/dist/{gnssXYTrajectory-BMCO0sb0.js → gnssXYTrajectory-Jdb53wOw.js} +2 -2
- package/dist/{grd-D1enzYOI.cjs → grd-BcVJB4b5.cjs} +1 -1
- package/dist/{grd-BTGTCp0z.js → grd-Bf5VZY3M.js} +19 -19
- package/dist/{grdIndass-B6fwa_k8.cjs → grdIndass-CTaKBOun.cjs} +1 -1
- package/dist/{grdIndass-Dn62HL6y.js → grdIndass-DrBidpYt.js} +2 -2
- package/dist/{grg-DMOF8h8j.js → grg-57h3YudF.js} +5 -5
- package/dist/{grg-B5128EcW.cjs → grg-DR1f44AO.cjs} +1 -1
- package/dist/{gridview-Dewc5Eax.js → gridview-BEiHeWnU.js} +2 -2
- package/dist/{gridview-Ddin99YO.cjs → gridview-DUOWjiqv.cjs} +1 -1
- package/dist/{groundwaterFilterBar-mukvYHDm.js → groundwaterFilterBar-Djh4tnLM.js} +2 -2
- package/dist/{groundwaterFilterBar-2uj_Hf_Q.cjs → groundwaterFilterBar-WfAm45Iv.cjs} +1 -1
- package/dist/{groundwaterProfileChart-DDVsfzyr.cjs → groundwaterProfileChart-B9NrkncY.cjs} +2 -2
- package/dist/{groundwaterProfileChart-BPTP8WBi.js → groundwaterProfileChart-Dvme4PHf.js} +3 -3
- package/dist/{groundwaterTimeCurve-jtQFr0hU.js → groundwaterTimeCurve-DLhsSDRO.js} +3 -3
- package/dist/{groundwaterTimeCurve-Zzn-sEsW.cjs → groundwaterTimeCurve-pLt2KuEY.cjs} +1 -1
- package/dist/{groupCard-DWjFdiH0.cjs → groupCard-DK5_osdM.cjs} +1 -1
- package/dist/{groupCard-B3fp05QD.js → groupCard-QV7NnbBa.js} +2 -2
- package/dist/{headerBar-BkpSQMNy.js → headerBar-CBTHBko2.js} +2 -2
- package/dist/{headerBar-B6lX3WST.cjs → headerBar-DcMgFL7n.cjs} +1 -1
- package/dist/{history-DqPjJP_E.cjs → history-BKLujk4W.cjs} +1 -1
- package/dist/{history-DgSlSTUD.js → history-BvM7EXsN.js} +11 -11
- package/dist/{index-Bo49zvKb.cjs → index-Cm7hGuPj.cjs} +13 -13
- package/dist/{index-BbXEpgom.js → index-DUL649KZ.js} +3422 -3379
- package/dist/{insarDeformChart-8UyVWXTx.cjs → insarDeformChart-D13o5hNr.cjs} +1 -1
- package/dist/{insarDeformChart-DNBHbVuk.js → insarDeformChart-DPq39rTv.js} +2 -2
- package/dist/{insarImageViewer-BeykgIJy.js → insarImageViewer-BLYbI4bm.js} +2 -2
- package/dist/{insarImageViewer-B8PhDcuG.cjs → insarImageViewer-BoqwF7sg.cjs} +1 -1
- package/dist/{kds-CS473Sia.js → kds-B2xqXmO8.js} +2 -2
- package/dist/{kds-BJwYrjV_.cjs → kds-B8Jdw9vL.cjs} +1 -1
- package/dist/{kpiCard-OMuCQe7O.cjs → kpiCard-BGsf7G30.cjs} +1 -1
- package/dist/{kpiCard-CNgj9P9s.js → kpiCard-DRR1gTcG.js} +2 -2
- package/dist/{landslideMap-NaGM5jJE.cjs → landslideMap-CD2LDzJA.cjs} +1 -1
- package/dist/{landslideMap-DMNcfDYF.js → landslideMap-DDlN9f2H.js} +9 -9
- package/dist/{landslideWarning-V1wB3aWq.cjs → landslideWarning-27SNVapD.cjs} +1 -1
- package/dist/{landslideWarning-DU-dDiiS.js → landslideWarning-r1zdMCih.js} +26 -26
- package/dist/{layerTabs-VfYlv6Ks.cjs → layerTabs-B86d5HH7.cjs} +1 -1
- package/dist/{layerTabs-Bgi7pfof.js → layerTabs-BjHiCU_F.js} +2 -2
- package/dist/{leaflet-src-4AJHN6it.js → leaflet-src-CAGnqnjZ.js} +1 -1
- package/dist/{leaflet-src-WG2ob5HA.cjs → leaflet-src-DYGpvxW6.cjs} +1 -1
- package/dist/{lerc-CEea2nO1.cjs → lerc-5z3DZffX.cjs} +1 -1
- package/dist/{lerc-BDiJ3I_S.js → lerc-Dh5beGkQ.js} +2 -2
- package/dist/{lin-BO1pGlXr.js → lin-DDWiOEA0.js} +6 -6
- package/dist/{lin-B_rN6QBj.cjs → lin-r6oOjphh.cjs} +1 -1
- package/dist/{linIndass-BGpoCQ4j.js → linIndass-CWcaOARi.js} +10 -10
- package/dist/{linIndass-B7XnW5XO.cjs → linIndass-CYCVyf-Z.cjs} +1 -1
- package/dist/{lst-BBl9nn63.js → lst-BKViAE6J.js} +2 -2
- package/dist/{lst-BeB_Gi9l.cjs → lst-Jc5oufSH.cjs} +1 -1
- package/dist/{manualEntry-C3qifAlP.js → manualEntry-CR0vY9l1.js} +2 -2
- package/dist/{manualEntry-BQVUqtm7.cjs → manualEntry-DpKGLaSi.cjs} +1 -1
- package/dist/{mapBackground-CDS60ZJC.js → mapBackground-BmlSVAtG.js} +3 -3
- package/dist/{mapBackground-D3-V7S-d.cjs → mapBackground-Cx8KweQ8.cjs} +1 -1
- package/dist/{mappingList-DnoAuivo.cjs → mappingList-BZz7GqJ4.cjs} +1 -1
- package/dist/{mappingList-B0jG2LlO.js → mappingList-C92OnAaA.js} +3 -3
- package/dist/{markdownViewer-BlXaqjhL.js → markdownViewer-ICTPV_72.js} +2 -2
- package/dist/{markdownViewer-BMkbW1Cl.cjs → markdownViewer-O5ng8kl7.cjs} +1 -1
- package/dist/materialFileUrl-C_Aqly-o.cjs +1 -0
- package/dist/{materialFileUrl-hKqW_JAq.js → materialFileUrl-CfFfqtB7.js} +5 -4
- package/dist/{mix-control-modal-BEXucxt5.js → mix-control-modal-CGLYKUCc.js} +5 -5
- package/dist/{mix-control-modal-aUWGjwZP.cjs → mix-control-modal-oxp6LmrP.cjs} +1 -1
- package/dist/{mixGrid-B5pKpGT3.cjs → mixGrid-DO73I4-D.cjs} +1 -1
- package/dist/{mixGrid-DQf7U1_8.js → mixGrid-DnxCOTqm.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-CJgiIk0q.cjs → mjpegCamera-DSMbdhJe.cjs} +1 -1
- package/dist/{mjpegCamera-C6pxWuEr.js → mjpegCamera-Dj5Lyrml.js} +2 -2
- package/dist/{monitorAlert-BPd1b_Cx.cjs → monitorAlert-C0e3mU_8.cjs} +1 -1
- package/dist/{monitorAlert-ZNF5siqY.js → monitorAlert-FwFl3Tjd.js} +12 -12
- package/dist/{monitorData-DIxZYNVr.js → monitorData-CnFHs2-k.js} +10 -10
- package/dist/{monitorData-slk6ogNe.cjs → monitorData-ICqlDSYT.cjs} +1 -1
- package/dist/{monitorSpeedChart-BRwbLD8B.cjs → monitorSpeedChart-B_02qTZy.cjs} +1 -1
- package/dist/{monitorSpeedChart-DCO39Aka.js → monitorSpeedChart-XCq3duqZ.js} +1 -1
- package/dist/{mxa-Bp4RH0w3.cjs → mxa-B9Ioifrx.cjs} +1 -1
- package/dist/{mxa-DFq19ply.js → mxa-DkvNrmvM.js} +2 -2
- package/dist/{myValue-g8shJQA9.cjs → myValue-CJZpYcAp.cjs} +1 -1
- package/dist/{myValue-BvItzUMv.js → myValue-aYi3bo7x.js} +2 -2
- package/dist/{myValueList-A_UGyNxN.js → myValueList-BIZ2JfrI.js} +2 -2
- package/dist/{myValueList-DnZBoJXp.cjs → myValueList-CFnHg4pl.cjs} +1 -1
- package/dist/objectList-B_BnqBg1.js +1842 -0
- package/dist/objectList-BgyTh2e7.cjs +1 -0
- package/dist/{objectListAPP-DxRImk8W.cjs → objectListAPP-B7Yk07oG.cjs} +1 -1
- package/dist/{objectListAPP-CdewSo8l.js → objectListAPP-Bq1S1FGu.js} +3 -3
- package/dist/{percentBar-Cq5ACj9c.cjs → percentBar-DmrRQirp.cjs} +1 -1
- package/dist/{percentBar-BvmYW_u6.js → percentBar-L0Ur3boP.js} +2 -2
- package/dist/{photo-t11P9WKh.js → photo-9c2Vrzor.js} +3 -3
- package/dist/{photo-B-kxNdb5.cjs → photo-BzVvbKrh.cjs} +1 -1
- package/dist/{pie-yTahcSl_.js → pie-BVbkpFWj.js} +2 -2
- package/dist/{pie-0s6FwVBt.cjs → pie-CeeMdBgu.cjs} +1 -1
- package/dist/{placeholder-DBmyvwFn.cjs → placeholder-C07ZscJc.cjs} +1 -1
- package/dist/{placeholder-D_CaQ-hg.js → placeholder-CUYSWWf8.js} +1 -1
- package/dist/{pressBtn-CP4kJr-P.js → pressBtn-Ds60I7hM.js} +3 -3
- package/dist/{pressBtn-JFezb7Yx.cjs → pressBtn-sqz6yim1.cjs} +1 -1
- package/dist/{processTable-BXswsnmt.js → processTable-COz7CKEG.js} +2 -2
- package/dist/{processTable-DRdI9ExW.cjs → processTable-CytoNBR2.cjs} +1 -1
- package/dist/{progressBar-Sn6tAxTY.cjs → progressBar-BxHPc2DD.cjs} +1 -1
- package/dist/{progressBar-D1Xh5APg.js → progressBar-CUnuEFaQ.js} +2 -2
- package/dist/{progressCircle-DLk9v_Os.cjs → progressCircle-BUNOFiUO.cjs} +1 -1
- package/dist/{progressCircle-BMpJVwIE.js → progressCircle-DWKJHFm-.js} +2 -2
- package/dist/{qrcode-BDtn3Ql7.cjs → qrcode-DJrUuI_e.cjs} +1 -1
- package/dist/{qrcode-BqlqV7Jf.js → qrcode-elzi9Ev5.js} +2 -2
- package/dist/{raceBar-BpvWNCV7.cjs → raceBar-BWYiOHgT.cjs} +2 -2
- package/dist/{raceBar-zSL-J18j.js → raceBar-C1Js5fWq.js} +156 -136
- package/dist/{rad-DSfVfaMa.cjs → rad-B__LOwb8.cjs} +1 -1
- package/dist/{rad-CZhY-L-z.js → rad-Dau_xw7q.js} +2 -2
- package/dist/{radarMapViewer-B4tTLLyl.js → radarMapViewer-0jrnj6Nm.js} +2 -2
- package/dist/{radarMapViewer-GmzS18dJ.cjs → radarMapViewer-30nLi5D4.cjs} +1 -1
- package/dist/{rainfallFilterBar-ijVmoglb.js → rainfallFilterBar-CnNMm1L4.js} +2 -2
- package/dist/{rainfallFilterBar-DHaVjXt5.cjs → rainfallFilterBar-io0Xy92q.cjs} +1 -1
- package/dist/{rainfallTimeCurve-B3_bl5L6.js → rainfallTimeCurve-CO3kxkO1.js} +3 -3
- package/dist/{rainfallTimeCurve-Crz3Adzh.cjs → rainfallTimeCurve-CsQNzhJI.cjs} +1 -1
- package/dist/{rangeLin-BOEsEaV1.js → rangeLin-C9p4yw-H.js} +8 -8
- package/dist/{rangeLin-DpEbvxsg.cjs → rangeLin-F-eJUSOD.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-C2u4a2JL.js → realtimeEvolutionMap-BSHmiJdM.js} +2 -2
- package/dist/{realtimeEvolutionMap-BwQJkus6.cjs → realtimeEvolutionMap-DbPSlUVo.cjs} +1 -1
- package/dist/{regionBar-P1fqv7Vb.cjs → regionBar-BqpQ17-j.cjs} +1 -1
- package/dist/{regionBar-BQr-kq-M.js → regionBar-DcIaWt42.js} +2 -2
- package/dist/{request-D9N74QdZ.cjs → request-BNiCZV7_.cjs} +1 -1
- package/dist/{request-Bn2gQLgM.js → request-CEUCACCR.js} +5 -5
- package/dist/{retainer1-Fnw0-Jvy.js → retainer1-BYe-4QPq.js} +3 -3
- package/dist/{retainer1-BCh8WSOq.cjs → retainer1-CtwKT7UP.cjs} +1 -1
- package/dist/{retainer2-nPyFv6Hs.js → retainer2-C8M7swsz.js} +3 -3
- package/dist/{retainer2-_3NOOefF.cjs → retainer2-CQf-EzAl.cjs} +1 -1
- package/dist/{retainerRecordList-C_UsUKsQ.js → retainerRecordList-B-xwovFD.js} +3 -3
- package/dist/{retainerRecordList-BaOTTQQN.cjs → retainerRecordList-DyRQQ0N-.cjs} +1 -1
- package/dist/{retainerRecordListAPP-BgKyfAMh.js → retainerRecordListAPP-CMNYP6hk.js} +3 -3
- package/dist/{retainerRecordListAPP-CE3l6WrB.cjs → retainerRecordListAPP-UPROwhvr.cjs} +1 -1
- package/dist/{ringTopN-Dz0EoM-A.js → ringTopN-FlVjUrQT.js} +2 -2
- package/dist/{ringTopN-DEv30Ms2.cjs → ringTopN-tPWwyl2Y.cjs} +1 -1
- package/dist/{riskRegionTable-BODT2UTF.cjs → riskRegionTable-BbJAvy7W.cjs} +1 -1
- package/dist/{riskRegionTable-Dot8zD_6.js → riskRegionTable-BjZoKdPt.js} +2 -2
- package/dist/{sankey-CYTyQB-L.cjs → sankey-CbPDXthr.cjs} +1 -1
- package/dist/{sankey-CbEUEE5B.js → sankey-Df3nSWC_.js} +7 -7
- package/dist/{scd-Btsiastw.js → scd-B9eeXnYU.js} +344 -348
- package/dist/scd-Ds6_WZDt.cjs +1 -0
- package/dist/{sideMenu-BxJRAAdM.js → sideMenu-BZ8iCENQ.js} +2 -2
- package/dist/{sideMenu-dnpq3qTF.cjs → sideMenu-CCohX7e6.cjs} +1 -1
- package/dist/{slopeStability-DX7WP5ZW.cjs → slopeStability-CO2BLtaT.cjs} +1 -1
- package/dist/{slopeStability-DrooNf1g.js → slopeStability-ChLLwaQA.js} +19 -19
- package/dist/{speedCurve-CNUJ5ScK.js → speedCurve-B7vwk0ti.js} +2 -2
- package/dist/{speedCurve-BT8wnfZI.cjs → speedCurve-DC8GN7er.cjs} +1 -1
- package/dist/{stackedBar-X8Y4lVgT.cjs → stackedBar-Bdt1ii7n.cjs} +1 -1
- package/dist/{stackedBar-nIfO6Aa3.js → stackedBar-p5hQcLfe.js} +2 -2
- package/dist/{stationList-D7lGCblu.js → stationList-4JLmJjJs.js} +3 -3
- package/dist/{stationList-DVzvGGHI.cjs → stationList-BHhnU7rg.cjs} +1 -1
- package/dist/{stressFilterBar-D5xktTRI.cjs → stressFilterBar-CDvVQZhK.cjs} +1 -1
- package/dist/{stressFilterBar-DqeqFHm7.js → stressFilterBar-D5uGrRbV.js} +2 -2
- package/dist/{stressTimeCurve-DfjNQ0rU.js → stressTimeCurve-BmXoUDOP.js} +3 -3
- package/dist/{stressTimeCurve-Bhhb-eqB.cjs → stressTimeCurve-Chj7Kmdb.cjs} +1 -1
- package/dist/{swiper-DuNuvT_N.js → swiper-CkVk-qls.js} +2 -2
- package/dist/{swiper-XCpwFkWS.cjs → swiper-OOktak53.cjs} +1 -1
- package/dist/{tablemanCreate-Cp5DaYUd.cjs → tablemanCreate-D6UFJZIo.cjs} +1 -1
- package/dist/{tablemanCreate-Cp9nOGg2.js → tablemanCreate-Hi3dHyzp.js} +3 -3
- package/dist/{tablemanDetail-DvZdgdHD.js → tablemanDetail-Bpuptxn4.js} +4 -4
- package/dist/{tablemanDetail-3ZMWkdpz.cjs → tablemanDetail-CHy58vFi.cjs} +1 -1
- package/dist/{tablemanList-DZdb1FUR.js → tablemanList-C16Timv1.js} +4 -4
- package/dist/{tablemanList-OLxgUmAi.cjs → tablemanList-C_bH6tMi.cjs} +1 -1
- package/dist/{tablemanTableList-CqsnRIHS.js → tablemanTableList-BW1WE2Ph.js} +3 -3
- package/dist/{tablemanTableList-BN6QjYEV.cjs → tablemanTableList-Duc6n-hm.cjs} +1 -1
- package/dist/{tablemanUpdate-CHs5OgAG.js → tablemanUpdate-Cvrm6nnk.js} +3 -3
- package/dist/{tablemanUpdate-E3d7A3WM.cjs → tablemanUpdate-DIpc92Cl.cjs} +1 -1
- package/dist/{terminalConfigList-BlgcWy40.cjs → terminalConfigList-C8dkmhQS.cjs} +1 -1
- package/dist/{terminalConfigList-BEBNi1Nl.js → terminalConfigList-yGZl93f_.js} +3 -3
- package/dist/{terminalList-Bl5BPmF9.cjs → terminalList-CanK2pyt.cjs} +1 -1
- package/dist/{terminalList-CJpH2Z-r.js → terminalList-dgawgsuV.js} +3 -3
- package/dist/{terminalListAPP-Dgvz8I3j.cjs → terminalListAPP-0iTXcRsu.cjs} +1 -1
- package/dist/{terminalListAPP-BpONJQOA.js → terminalListAPP-DNQzjxMX.js} +3 -3
- package/dist/{textbox-CJnSDwg7.js → textbox-88HaqHYa.js} +2 -2
- package/dist/{textbox-DR0bQEX7.cjs → textbox-CJP0S05E.cjs} +1 -1
- package/dist/{timeQueryBar-FJDQv-gp.js → timeQueryBar-B6WFuoFy.js} +1 -1
- package/dist/{timeQueryBar-Cmyan_30.cjs → timeQueryBar-B7m2zNqC.cjs} +1 -1
- package/dist/{timeSeries-t4uZvXRF.js → timeSeries-CBEMu62t.js} +12 -12
- package/dist/{timeSeries-_RLSUPmg.cjs → timeSeries-pv1B8rAD.cjs} +1 -1
- package/dist/{timeSeriesCurve-BxWiI6w-.js → timeSeriesCurve-C8I6T04V.js} +3 -3
- package/dist/{timeSeriesCurve-BUuLFQ8A.cjs → timeSeriesCurve-DfKXoiJf.cjs} +1 -1
- package/dist/{toggleBtn-BcpJcxpU.cjs → toggleBtn-D892Lgcg.cjs} +1 -1
- package/dist/{toggleBtn-Cx44qVci.js → toggleBtn-DxOPkmCn.js} +2 -2
- package/dist/{trajectoryConfigPanel-BTUv5OVS.cjs → trajectoryConfigPanel-2_KO7Fm_.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-dyo30nx9.js → trajectoryConfigPanel-CiHG2Nj3.js} +1 -1
- package/dist/{trajectoryScatter-CK4_Z1iU.cjs → trajectoryScatter-ceIqjQdd.cjs} +1 -1
- package/dist/{trajectoryScatter-BghFGqxH.js → trajectoryScatter-gYFCMKo8.js} +2 -2
- package/dist/{universalConfigPanel-Cvlpgn-j.cjs → universalConfigPanel-BuJ0pSOp.cjs} +1 -1
- package/dist/{universalConfigPanel-yJFrQDBa.js → universalConfigPanel-T07C_JVG.js} +1 -1
- package/dist/{universalTable-CvBC-L9Z.js → universalTable-C6iYcfCe.js} +2 -2
- package/dist/{universalTable-CRJ7Rx0P.cjs → universalTable-DA2F0v4F.cjs} +1 -1
- package/dist/useMixiotPanelPopperClass-DDtFtXLr.cjs +1 -0
- package/dist/useMixiotPanelPopperClass-DtvQI0g1.js +52 -0
- package/dist/{useTablemanApi-fqoMpRxe.cjs → useTablemanApi-BbUulkUz.cjs} +1 -1
- package/dist/{useTablemanApi-BAt370b-.js → useTablemanApi-Ch3eQRoG.js} +1 -1
- package/dist/{useTablemanFormPanel-Cxo0WsI1.cjs → useTablemanFormPanel-BdBoaHFU.cjs} +1 -1
- package/dist/{useTablemanFormPanel-BKbM39_H.js → useTablemanFormPanel-EtmBEDl7.js} +2 -2
- package/dist/{useTablemanListActions-DRXW-WTa.cjs → useTablemanListActions-Dlfnpnld.cjs} +1 -1
- package/dist/{useTablemanListActions-CYauYy6z.js → useTablemanListActions-gqs6gpza.js} +4 -4
- package/dist/{video-C1N8Ikkh.js → video-BVmqEL79.js} +2 -2
- package/dist/{video-BN19nKK_.cjs → video-jHJpadOt.cjs} +1 -1
- package/dist/{videoMonitor-PKypdwRl.cjs → videoMonitor-BZkwTydy.cjs} +1 -1
- package/dist/{videoMonitor-fkEuZ25x.js → videoMonitor-BwdC2_nR.js} +8 -8
- package/dist/{vlu-B8tqM9md.js → vlu-BSasXwGB.js} +2 -2
- package/dist/{vlu-DrABl6SW.cjs → vlu-DONKeVps.cjs} +1 -1
- package/dist/{warningOverview-_rp_SbLs.js → warningOverview-7bSJ0uSZ.js} +3 -3
- package/dist/{warningOverview-DaTHPveq.cjs → warningOverview-DVtqkIDv.cjs} +1 -1
- package/dist/{weather-B_XCWwDa.cjs → weather--IcwH6Si.cjs} +1 -1
- package/dist/{weather-qvsptrt0.js → weather-CVLrwzcA.js} +2 -2
- package/dist/{windLin-BDtJUYBu.js → windLin-ByNz1LOX.js} +2 -2
- package/dist/{windLin-P84T5W3o.cjs → windLin-C-BHdrGl.cjs} +1 -1
- package/package.json +1 -1
- package/dist/crd-C6iegy7d.cjs +0 -1
- package/dist/materialFileUrl-8YHw7z1T.cjs +0 -1
- package/dist/objectList-BcSCvy54.cjs +0 -1
- package/dist/objectList-DgVJlA1o.js +0 -1828
- package/dist/scd-DwdWl6Wz.cjs +0 -1
- package/dist/useMixiotPanelPopperClass-2tTzKUsO.cjs +0 -1
- package/dist/useMixiotPanelPopperClass-UGlVKJTK.js +0 -53
|
@@ -27,9 +27,9 @@ var L = (o, e, t) => new Promise((u, c) => {
|
|
|
27
27
|
l((t = t.apply(o, e)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as k, ref as E, computed as Z, openBlock as $, createElementBlock as T, normalizeStyle as M, unref as g, createElementVNode as v, toDisplayString as D, renderSlot as A, nextTick as j } from "vue";
|
|
30
|
-
import { a as V, _ as B } from "./index-
|
|
30
|
+
import { a as V, _ as B } from "./index-DUL649KZ.js";
|
|
31
31
|
import { ElMessage as R } from "element-plus";
|
|
32
|
-
import { E as W } from "./EChartComponentBase-
|
|
32
|
+
import { E as W } from "./EChartComponentBase-DCKFGbqb.js";
|
|
33
33
|
import { g as U } from "./titleStyle-BT5GlpAb.js";
|
|
34
34
|
import { i as H, c as J } from "./install-CY89Nrxl.js";
|
|
35
35
|
import { i as q } from "./install-B_v5XJLG.js";
|
|
@@ -11,8 +11,8 @@ var _ = (o, t, n) => t in o ? T(o, t, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return o;
|
|
12
12
|
}, x = (o, t) => I(o, E(t));
|
|
13
13
|
import { defineComponent as N, ref as D, computed as S, openBlock as A, createElementBlock as O, normalizeStyle as h, unref as s, createElementVNode as d, toDisplayString as f, createCommentVNode as U, renderSlot as H } from "vue";
|
|
14
|
-
import { B as M } from "./BaseComponent-
|
|
15
|
-
import { _ as R } from "./index-
|
|
14
|
+
import { B as M } from "./BaseComponent-7Sa7XOg-.js";
|
|
15
|
+
import { _ as R } from "./index-DUL649KZ.js";
|
|
16
16
|
import { g as j } from "./titleStyle-BT5GlpAb.js";
|
|
17
17
|
import { A as B, D as F } from "./ele-evn-icon-MWzAujnD.js";
|
|
18
18
|
const P = { class: "title-text" }, $ = { class: "mix-body" }, W = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var O=Object.defineProperty,A=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var g=(l,t,o)=>t in l?O(l,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[t]=o,C=(l,t)=>{for(var o in t||(t={}))k.call(t,o)&&g(l,o,t[o]);if(b)for(var o of b(t))w.call(t,o)&&g(l,o,t[o]);return l},v=(l,t)=>A(l,V(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./BaseComponent-
|
|
1
|
+
"use strict";var O=Object.defineProperty,A=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var g=(l,t,o)=>t in l?O(l,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[t]=o,C=(l,t)=>{for(var o in t||(t={}))k.call(t,o)&&g(l,o,t[o]);if(b)for(var o of b(t))w.call(t,o)&&g(l,o,t[o]);return l},v=(l,t)=>A(l,V(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./BaseComponent-BabOc6Kc.cjs"),T=require("./index-Cm7hGuPj.cjs"),I=require("./titleStyle-NSnz6cUg.cjs"),y=require("./ele-evn-icon-DUQMS-9T.cjs"),N={class:"title-text"},z={class:"mix-body"},L={DEFAULT_ICON:y.DEFAULT_ICON,ACTIVE_ICON:y.ACTIVE_ICON,NAME_CN:"识别结论卡",NAME_EN:"Conclusion Card",ORDER:14,PLATFORM:["pc","screen"]},D={bgColor:"#fff8e1",titleColor:"#1f2329",textColor:"#333",radiusSize:8,textSize:13,isHideTitle:!1,content:"南帮区域误报率持续偏高,建议优先复核春耕样本范围与扰动数据剔除规则。",lineHeight:1.6,btnText:"策略编辑",btnAction:{value:"publish",type:"select",label:"component.options.lw_btnAction",options:[{label:"component.options.lw_btnAction_publish",value:"publish"},{label:"component.options.lw_btnAction_modal",value:"modal"},{label:"component.options.lw_btnAction_navigate",value:"navigate"}]},modalLayerId:{value:"",type:"string",label:"component.options.lw_modalLayerId",dependent:"btnAction",dependentValue:"modal"},navigateUrl:{value:"",type:"string",label:"component.options.lw_navigateUrl",dependent:"btnAction",dependentValue:"navigate"},linkChannel:{value:"landslide",type:"select",label:"component.options.lw_linkChannel",options:[{label:"component.options.lw_linkChannel_landslide",value:"landslide"},{label:"component.options.lw_linkChannel_custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.options.lw_customChannel",showWhen:{linkChannel:"custom"}}},U=[{name:"结论文本",fv:"",object_id:""}],M=["name","fv","object_id"],H=["mosaic","statistics","calculate"],j={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},B={DEFAULT:L,OPTIONS:D,DATA:U,PARAMS:M,SOURCE:H,COMMON:j},R=e.defineComponent(v(C({},B),{__name:"conclusionCard",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){const t=l,o=e.ref("");class _ extends E.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff8e1"),titleColor:this.getOptionValue("titleColor","#1f2329"),textColor:this.getOptionValue("textColor","#333"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",13),content:this.getOptionValue("content",""),lineHeight:this.getOptionValue("lineHeight",1.6),btnText:this.getOptionValue("btnText",""),btnAction:this.getOptionValue("btnAction","publish"),modalLayerId:this.getOptionValue("modalLayerId",""),navigateUrl:this.getOptionValue("navigateUrl",""),linkChannel:this.getOptionValue("linkChannel","landslide"),customChannel:this.getOptionValue("customChannel","")}}getLinkChannel(){const n=this.Style.value;return(n==null?void 0:n.linkChannel)==="custom"?n.customChannel||"":(n==null?void 0:n.linkChannel)||""}setSocketData(n){var r,u;if(!n)return;const i=(u=(r=this.props.conf)==null?void 0:r.data)==null?void 0:u[0];if(!(i!=null&&i.fv))return;const c=this.extractDataValue(n,i.fv);c!=null&&c!==""&&(o.value=String(c))}setHistoryData(n){var r,u,f,h;if(!n||!Array.isArray(n.history))return;const i=(u=(r=this.props.conf)==null?void 0:r.data)==null?void 0:u[0];if(!(i!=null&&i.fv))return;const c=(h=(f=n.history)==null?void 0:f[0])==null?void 0:h[0];c&&c[i.fv]&&(o.value=String(c[i.fv]))}}const p=new _(t,"conclusionCard");p.setupLifecycle();const a=p.getStyle(),d=t.conf,S=e.computed(()=>I.generateTitleStyle(t.conf.options)),m=e.computed(()=>o.value||a.value.content||"--");function x(){if(t.mode!=="preview")return;const s=a.value;switch(s.btnAction){case"modal":s.modalLayerId&&window.dispatchEvent(new CustomEvent("mix-modal",{detail:{action:"show",layerId:s.modalLayerId,sheetIndex:-1}}));break;case"navigate":s.navigateUrl&&window.open(s.navigateUrl,"_blank");break;default:p.publish({type:"conclusion-action",title:d.caption||d.name,content:m.value,action:s.btnText})}}return(s,n)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(a).bgColor,borderRadius:`${e.unref(a).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(S.value)},[e.createElementVNode("span",N,e.toDisplayString(e.unref(d).caption||e.unref(d).name),1),e.unref(a).btnText?(e.openBlock(),e.createElementBlock("button",{key:0,class:"cc-btn",onClick:x},e.toDisplayString(e.unref(a).btnText),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("div",z,[e.createElementVNode("p",{class:"body-content",style:e.normalizeStyle({fontSize:`${e.unref(a).textSize}px`,color:e.unref(a).textColor,lineHeight:e.unref(a).lineHeight})},e.toDisplayString(m.value),5)]),e.renderSlot(s.$slots,"default",{},void 0,!0)],4))}})),q=T._export_sfc(R,[["__scopeId","data-v-35c5f9d1"]]);exports.default=q;
|
|
@@ -34,7 +34,7 @@ import "element-plus/es/components/descriptions-item/style/css";
|
|
|
34
34
|
import "element-plus/es/components/dialog/style/css";
|
|
35
35
|
import "element-plus/es/components/form/style/css";
|
|
36
36
|
import "element-plus/es/components/form-item/style/css";
|
|
37
|
-
import { A as $e } from "./AgGridTable-
|
|
37
|
+
import { A as $e } from "./AgGridTable-CiUB86Yi.js";
|
|
38
38
|
import "element-plus/es/components/button/style/css";
|
|
39
39
|
import "element-plus/es/components/input/style/css";
|
|
40
40
|
import "element-plus/es/components/icon/style/css";
|
|
@@ -42,8 +42,8 @@ import "element-plus/es/components/select/style/css";
|
|
|
42
42
|
import "element-plus/es/components/option/style/css";
|
|
43
43
|
import { defineComponent as We, computed as k, reactive as re, ref as h, watch as je, onMounted as He, openBlock as D, createElementBlock as P, Fragment as se, withDirectives as ue, normalizeStyle as de, unref as R, normalizeClass as qe, toDisplayString as A, createCommentVNode as te, createElementVNode as le, createVNode as o, withCtx as n, withKeys as Ge, createTextVNode as m, createBlock as Ke, renderSlot as Qe } from "vue";
|
|
44
44
|
import { u as Xe } from "./useMixiotPanelSurface-DRl3cZvc.js";
|
|
45
|
-
import { B as Ye } from "./BaseComponent-
|
|
46
|
-
import { a as T, _ as Ze } from "./index-
|
|
45
|
+
import { B as Ye } from "./BaseComponent-7Sa7XOg-.js";
|
|
46
|
+
import { a as T, _ as Ze } from "./index-DUL649KZ.js";
|
|
47
47
|
import { g as et } from "./titleStyle-BT5GlpAb.js";
|
|
48
48
|
import { ElMessage as p, ElMessageBox as ce } from "element-plus";
|
|
49
49
|
import { Search as tt } from "@element-plus/icons-vue";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ge=Object.defineProperty,Ve=Object.defineProperties;var ve=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var ye=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable;var X=(c,n,d)=>n in c?ge(c,n,{enumerable:!0,configurable:!0,writable:!0,value:d}):c[n]=d,J=(c,n)=>{for(var d in n||(n={}))ye.call(n,d)&&X(c,d,n[d]);if(Q)for(var d of Q(n))he.call(n,d)&&X(c,d,n[d]);return c},Y=(c,n)=>Ve(c,ve(n));var b=(c,n,d)=>new Promise((A,V)=>{var z=y=>{try{T(d.next(y))}catch(k){V(k)}},W=y=>{try{T(d.throw(y))}catch(k){V(k)}},T=y=>y.done?A(y.value):Promise.resolve(y.value).then(z,W);T((d=d.apply(c,n)).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");const Ne=require("./AgGridTable-Bi7O66-r.cjs");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),xe=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Ce=require("./BaseComponent-9njJjeix.cjs"),S=require("./index-Bo49zvKb.cjs"),we=require("./titleStyle-NSnz6cUg.cjs"),u=require("element-plus"),be=require("@element-plus/icons-vue"),Se=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),G=require("./syncMixiotListConfig-Elkp8zAs.cjs"),_e=require("./AgActionsRenderer.vue_vue_type_script_setup_true_lang-Cojc_jSG.cjs"),Z=require("./ele-lst-icon-CrxnHZ-A.cjs"),Ee={class:"mix-body"},Te={class:"top-bar"},ke={class:"view-body"},Oe={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"控制码列表",NAME_EN:"ControlList",ORDER:3,PLATFORM:["pc","screen"]},De={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},titleColor:"#111",titleSize:14,isHideTitle:!1,columns:[]},ee=[{add:!0,view:!0,edit:!0,archive:!0,delete:!0}],Me=[{key:"add",label:"添加控制码",type:"checkbox"}],Ae=[{key:"view",label:"查看",type:"checkbox"},{key:"edit",label:"编辑",type:"checkbox"},{key:"archive",label:"资料备档",type:"checkbox"},{key:"delete",label:"删除",type:"checkbox"}],Be=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],qe={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"}]},Le={DEFAULT:Oe,OPTIONS:De,DATA:ee,COMMANDS:Me,OPERATIONS:Ae,SOURCE:Be,COMMON:qe},Ue=e.defineComponent(Y(J({},Le),{__name:"controlList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""},controlUidList:{default:()=>[]}},setup(c){const n=c;class d extends Ce.BaseComponent{getDataBool(t,a){var f,s;const r=(s=(f=this.props.conf)==null?void 0:f.data)==null?void 0:s[0];return r&&Object.prototype.hasOwnProperty.call(r,t)&&r[t]!==void 0?!!r[t]:this.getOptionValue(t,a)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),isHideTitle:this.getOptionValue("isHideTitle",!1),add:this.getDataBool("add",!0),view:this.getDataBool("view",!0),edit:this.getDataBool("edit",!0),archive:this.getDataBool("archive",!0),delete:this.getDataBool("delete",!0)}}init(){return b(this,null,function*(){this.applyTheme(),G.setupMixiotListConf(this.props.conf,{add:!0,view:!0,edit:!0,archive:!0,delete:!0},ee),this.Style.value=this.extractStyles()})}}const A=new d(n,"controlList");A.setupLifecycle();const V=A.getStyle(),z=e.computed(()=>G.computeMixiotActionColumnMinWidth(V.value,{view:60,edit:60,archive:88,delete:60})),{mixiotPanelClass:W,mixiotPanelRootStyle:T}=xe.useMixiotPanelSurface(V),y=e.computed(()=>we.generateTitleStyle(n.conf.options)),k=e.computed(()=>G.buildMixiotColumnsConfig(n.conf)),N=e.reactive({current:1,pageSize:10,total:0}),B=e.ref(""),$=e.ref("name"),q=e.ref([]),j=e.ref(!1);function te(){const o={page_index:N.current,page_size:N.pageSize},t=[],a=B.value.trim();return a&&t.push([$.value,"like",`%${a}%`]),Se.appendCommonDesignerWhereAnd(n.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function x(){return b(this,null,function*(){var o,t;j.value=!0;try{const a=yield S.api.http("control_list",te(),!0),r=(o=a==null?void 0:a.result)!=null?o:a;let f=Array.isArray(r==null?void 0:r.data)?[...r.data]:[];if((t=n.controlUidList)!=null&&t.length){const m=new Set(n.controlUidList.map(String));f=f.filter(_=>m.has(String(_.uid)))}q.value=f;const s=r==null?void 0:r.total_records;N.total=typeof s=="number"?s:f.length,a&&a.code!==void 0&&a.code!==200&&console.warn("[controlList] 列表接口非成功",a.msg||a.info,a)}catch(a){console.error(a),q.value=[],N.total=0}finally{j.value=!1}})}const le={AgActionsRenderer:_e._sfc_main},ie=e.computed(()=>{const o=k.value.filter(t=>t.visible).map(t=>({field:t.prop,headerName:t.label,width:t.width||t.minWidth||120,minWidth:t.minWidth||80}));return o.push({headerName:"操作",minWidth:z.value,pinned:"right",cellRenderer:"AgActionsRenderer",cellRendererParams:{showView:V.value.view,showEdit:V.value.edit,showArchive:V.value.archive,showDelete:V.value.delete,onView:pe,onEdit:re,onArchive:me,onDelete:fe}}),o});function oe(){x()}e.computed(()=>q.value);function K(){N.current=1,x()}function ae(){B.value="",N.current=1,x()}e.watch(()=>{var o;return(o=n.controlUidList)==null?void 0:o.join(",")},()=>{N.current=1,x()});const O=e.ref(!1),D=e.ref(!1),C=e.ref(!1),i=e.reactive({id:0,uid:"",name:"",alias:"",description:"",script:"[]",template:"[]"});function L(){i.id=0,i.uid="",i.name="",i.alias="",i.description="",i.script="[]",i.template="[]"}function U(o,t){const a=(o==null?void 0:o.trim())||"";if(!a)return t;try{return JSON.stringify(JSON.parse(a))}catch(r){return null}}function ne(){L(),O.value=!0}function re(o){return b(this,null,function*(){var t,a,r,f,s,m,_,g,M,E,h,P;L(),D.value=!0,C.value=!0;try{const w=yield S.api.http("control_item",{uid:o.uid},!0),l=(t=w==null?void 0:w.result)!=null?t:w;if(l&&typeof l=="object"){i.id=Number(l.id)||0,i.uid=String((r=(a=l.uid)!=null?a:o.uid)!=null?r:""),i.name=String((f=l.name)!=null?f:""),i.alias=String((s=l.alias)!=null?s:""),i.description=String((m=l.description)!=null?m:"");const I=l.script;i.script=typeof I=="string"?I:I!=null?JSON.stringify(I):"[]";const R=l.template;i.template=typeof R=="string"?R:R!=null?JSON.stringify(R):"[]"}else i.uid=String(o.uid),i.name=String((_=o.name)!=null?_:""),i.alias=String((g=o.alias)!=null?g:""),i.description=String((M=o.description)!=null?M:"")}catch(w){i.uid=String(o.uid),i.name=String((E=o.name)!=null?E:""),i.alias=String((h=o.alias)!=null?h:""),i.description=String((P=o.description)!=null?P:""),u.ElMessage.warning("拉取控制码详情失败,已使用列表行数据编辑")}finally{C.value=!1}})}function se(){return b(this,null,function*(){var a;if(!((a=i.name)!=null&&a.trim())){u.ElMessage.warning("请填写控制码名称");return}const o=U(i.script,"[]"),t=U(i.template,"[]");if(o===null||t===null){u.ElMessage.error("脚本或模板不是合法 JSON");return}C.value=!0;try{yield S.api.http("control_create",{name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:o,template:t},!0),u.ElMessage.success("添加成功"),O.value=!1,yield x()}catch(r){u.ElMessage.error("添加失败")}finally{C.value=!1}})}function de(){return b(this,null,function*(){var a;if(!((a=i.name)!=null&&a.trim())){u.ElMessage.warning("请填写控制码名称");return}const o=U(i.script,"[]"),t=U(i.template,"[]");if(o===null||t===null){u.ElMessage.error("脚本或模板不是合法 JSON");return}C.value=!0;try{yield S.api.http("control_update",{id:i.id,uid:i.uid,name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:o,template:t},!0),u.ElMessage.success("保存成功"),D.value=!1,yield x()}catch(r){u.ElMessage.error("保存失败")}finally{C.value=!1}})}const F=e.ref(!1),H=e.ref(!1),p=e.ref(null);function ue(o){if(o==null)return"";if(typeof o=="string")try{return JSON.stringify(JSON.parse(o),null,2)}catch(t){return o}try{return JSON.stringify(o,null,2)}catch(t){return String(o)}}const ce=e.computed(()=>p.value?ue(p.value.script):"");function pe(o){return b(this,null,function*(){p.value=null,F.value=!0,H.value=!0;try{const t=yield S.api.http("control_item",{uid:o.uid},!0),a=t==null?void 0:t.result;a&&typeof a=="object"?p.value=a:(p.value=J({},o),u.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){p.value=J({},o),u.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{H.value=!1}})}function me(o){u.ElMessageBox.confirm(`确认对控制码「${o.name||o.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{u.ElMessage.success("已提交备档(完整流程请在 mixui 控制码管理中操作)")}).catch(()=>{})}function fe(o){u.ElMessageBox.confirm(`确认删除控制码「${o.name||o.uid}」吗?`,"警告",{type:"warning"}).then(()=>b(null,null,function*(){try{yield S.api.http("control_delete",{uid:o.uid,id:o.id},!0),u.ElMessage.success("删除成功"),yield x()}catch(t){u.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{x()}),(o,t)=>{const a=v.ElOption,r=v.ElSelect,f=v.ElIcon,s=v.ElInput,m=v.ElButton,_=Ne.AgGridTable,g=v.ElFormItem,M=v.ElForm,E=v.ElDialog,h=v.ElDescriptionsItem,P=v.ElDescriptions,w=v.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-list mix-component",e.unref(W)]),style:e.normalizeStyle(e.unref(T))},[e.unref(V).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(y.value)},e.toDisplayString(c.conf.caption||c.conf.name),5)),e.createElementVNode("div",Ee,[e.createElementVNode("div",Te,[e.createVNode(r,{modelValue:$.value,"onUpdate:modelValue":t[0]||(t[0]=l=>$.value=l),class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(a,{label:"控制码名称",value:"name"}),e.createVNode(a,{label:"控制码编号",value:"uid"}),e.createVNode(a,{label:"控制码别名",value:"alias"}),e.createVNode(a,{label:"描述",value:"description"})]),_:1},8,["modelValue"]),e.createVNode(s,{modelValue:B.value,"onUpdate:modelValue":t[1]||(t[1]=l=>B.value=l),placeholder:"搜索控制码",class:"toolbar-search",onKeyup:e.withKeys(K,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(f,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(be.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(m,{type:"primary",onClick:K},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(m,{onClick:ae},{default:e.withCtx(()=>[...t[18]||(t[18]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(V).add?(e.openBlock(),e.createBlock(m,{key:0,type:"success",onClick:ne},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode("添加控制码",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(_,{"column-defs":ie.value,"row-data":q.value,"show-pagination":!0,pager:N,"auto-fill-columns":!0,components:le,onPageChange:oe},null,8,["column-defs","row-data","pager"])]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[w,j.value]]),e.createVNode(E,{modelValue:O.value,"onUpdate:modelValue":t[7]||(t[7]=l=>O.value=l),title:"添加控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(m,{onClick:t[6]||(t[6]=l=>O.value=!1)},{default:e.withCtx(()=>[...t[20]||(t[20]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(m,{type:"primary",loading:C.value,onClick:se},{default:e.withCtx(()=>[...t[21]||(t[21]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(M,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(g,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.name,"onUpdate:modelValue":t[2]||(t[2]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.alias,"onUpdate:modelValue":t[3]||(t[3]=l=>i.alias=l),placeholder:"可选"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.description,"onUpdate:modelValue":t[4]||(t[4]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.script,"onUpdate:modelValue":t[5]||(t[5]=l=>i.script=l),type:"textarea",rows:8,placeholder:"JSON 数组,默认 []"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:D.value,"onUpdate:modelValue":t[14]||(t[14]=l=>D.value=l),title:"编辑控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(m,{onClick:t[13]||(t[13]=l=>D.value=!1)},{default:e.withCtx(()=>[...t[22]||(t[22]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(m,{type:"primary",loading:C.value,onClick:de},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(M,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(g,{label:"控制码编号"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.uid,"onUpdate:modelValue":t[8]||(t[8]=l=>i.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.name,"onUpdate:modelValue":t[9]||(t[9]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.alias,"onUpdate:modelValue":t[10]||(t[10]=l=>i.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.description,"onUpdate:modelValue":t[11]||(t[11]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.script,"onUpdate:modelValue":t[12]||(t[12]=l=>i.script=l),type:"textarea",rows:8},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:F.value,"onUpdate:modelValue":t[16]||(t[16]=l=>F.value=l),title:"控制码详情",width:"720px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(m,{type:"primary",onClick:t[15]||(t[15]=l=>F.value=!1)},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",ke,[p.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(P,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(h,{label:"控制码编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"控制码名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"控制码别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"更新时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.description)!=null?l:""),1)]}),_:1})]),_:1}),t[24]||(t[24]=e.createElementVNode("div",{class:"view-block-title"},"控制码脚本",-1)),e.createVNode(s,{"model-value":ce.value,type:"textarea",rows:10,readonly:""},null,8,["model-value"])],64)):e.createCommentVNode("",!0)])),[[w,H.value]])]),_:1},8,["modelValue"])],64)}}})),Fe=S._export_sfc(Ue,[["__scopeId","data-v-fb27eda6"]]);exports.default=Fe;
|
|
1
|
+
"use strict";var ge=Object.defineProperty,Ve=Object.defineProperties;var ve=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var ye=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable;var X=(c,n,d)=>n in c?ge(c,n,{enumerable:!0,configurable:!0,writable:!0,value:d}):c[n]=d,J=(c,n)=>{for(var d in n||(n={}))ye.call(n,d)&&X(c,d,n[d]);if(Q)for(var d of Q(n))he.call(n,d)&&X(c,d,n[d]);return c},Y=(c,n)=>Ve(c,ve(n));var b=(c,n,d)=>new Promise((A,V)=>{var z=y=>{try{T(d.next(y))}catch(k){V(k)}},W=y=>{try{T(d.throw(y))}catch(k){V(k)}},T=y=>y.done?A(y.value):Promise.resolve(y.value).then(z,W);T((d=d.apply(c,n)).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");const Ne=require("./AgGridTable-B0ARi6iQ.cjs");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),xe=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Ce=require("./BaseComponent-BabOc6Kc.cjs"),S=require("./index-Cm7hGuPj.cjs"),we=require("./titleStyle-NSnz6cUg.cjs"),u=require("element-plus"),be=require("@element-plus/icons-vue"),Se=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),G=require("./syncMixiotListConfig-Elkp8zAs.cjs"),_e=require("./AgActionsRenderer.vue_vue_type_script_setup_true_lang-Cojc_jSG.cjs"),Z=require("./ele-lst-icon-CrxnHZ-A.cjs"),Ee={class:"mix-body"},Te={class:"top-bar"},ke={class:"view-body"},Oe={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"控制码列表",NAME_EN:"ControlList",ORDER:3,PLATFORM:["pc","screen"]},De={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},titleColor:"#111",titleSize:14,isHideTitle:!1,columns:[]},ee=[{add:!0,view:!0,edit:!0,archive:!0,delete:!0}],Me=[{key:"add",label:"添加控制码",type:"checkbox"}],Ae=[{key:"view",label:"查看",type:"checkbox"},{key:"edit",label:"编辑",type:"checkbox"},{key:"archive",label:"资料备档",type:"checkbox"},{key:"delete",label:"删除",type:"checkbox"}],Be=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],qe={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"}]},Le={DEFAULT:Oe,OPTIONS:De,DATA:ee,COMMANDS:Me,OPERATIONS:Ae,SOURCE:Be,COMMON:qe},Ue=e.defineComponent(Y(J({},Le),{__name:"controlList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""},controlUidList:{default:()=>[]}},setup(c){const n=c;class d extends Ce.BaseComponent{getDataBool(t,a){var f,s;const r=(s=(f=this.props.conf)==null?void 0:f.data)==null?void 0:s[0];return r&&Object.prototype.hasOwnProperty.call(r,t)&&r[t]!==void 0?!!r[t]:this.getOptionValue(t,a)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),isHideTitle:this.getOptionValue("isHideTitle",!1),add:this.getDataBool("add",!0),view:this.getDataBool("view",!0),edit:this.getDataBool("edit",!0),archive:this.getDataBool("archive",!0),delete:this.getDataBool("delete",!0)}}init(){return b(this,null,function*(){this.applyTheme(),G.setupMixiotListConf(this.props.conf,{add:!0,view:!0,edit:!0,archive:!0,delete:!0},ee),this.Style.value=this.extractStyles()})}}const A=new d(n,"controlList");A.setupLifecycle();const V=A.getStyle(),z=e.computed(()=>G.computeMixiotActionColumnMinWidth(V.value,{view:60,edit:60,archive:88,delete:60})),{mixiotPanelClass:W,mixiotPanelRootStyle:T}=xe.useMixiotPanelSurface(V),y=e.computed(()=>we.generateTitleStyle(n.conf.options)),k=e.computed(()=>G.buildMixiotColumnsConfig(n.conf)),N=e.reactive({current:1,pageSize:10,total:0}),B=e.ref(""),$=e.ref("name"),q=e.ref([]),j=e.ref(!1);function te(){const o={page_index:N.current,page_size:N.pageSize},t=[],a=B.value.trim();return a&&t.push([$.value,"like",`%${a}%`]),Se.appendCommonDesignerWhereAnd(n.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function x(){return b(this,null,function*(){var o,t;j.value=!0;try{const a=yield S.api.http("control_list",te(),!0),r=(o=a==null?void 0:a.result)!=null?o:a;let f=Array.isArray(r==null?void 0:r.data)?[...r.data]:[];if((t=n.controlUidList)!=null&&t.length){const m=new Set(n.controlUidList.map(String));f=f.filter(_=>m.has(String(_.uid)))}q.value=f;const s=r==null?void 0:r.total_records;N.total=typeof s=="number"?s:f.length,a&&a.code!==void 0&&a.code!==200&&console.warn("[controlList] 列表接口非成功",a.msg||a.info,a)}catch(a){console.error(a),q.value=[],N.total=0}finally{j.value=!1}})}const le={AgActionsRenderer:_e._sfc_main},ie=e.computed(()=>{const o=k.value.filter(t=>t.visible).map(t=>({field:t.prop,headerName:t.label,width:t.width||t.minWidth||120,minWidth:t.minWidth||80}));return o.push({headerName:"操作",minWidth:z.value,pinned:"right",cellRenderer:"AgActionsRenderer",cellRendererParams:{showView:V.value.view,showEdit:V.value.edit,showArchive:V.value.archive,showDelete:V.value.delete,onView:pe,onEdit:re,onArchive:me,onDelete:fe}}),o});function oe(){x()}e.computed(()=>q.value);function K(){N.current=1,x()}function ae(){B.value="",N.current=1,x()}e.watch(()=>{var o;return(o=n.controlUidList)==null?void 0:o.join(",")},()=>{N.current=1,x()});const O=e.ref(!1),D=e.ref(!1),C=e.ref(!1),i=e.reactive({id:0,uid:"",name:"",alias:"",description:"",script:"[]",template:"[]"});function L(){i.id=0,i.uid="",i.name="",i.alias="",i.description="",i.script="[]",i.template="[]"}function U(o,t){const a=(o==null?void 0:o.trim())||"";if(!a)return t;try{return JSON.stringify(JSON.parse(a))}catch(r){return null}}function ne(){L(),O.value=!0}function re(o){return b(this,null,function*(){var t,a,r,f,s,m,_,g,M,E,h,P;L(),D.value=!0,C.value=!0;try{const w=yield S.api.http("control_item",{uid:o.uid},!0),l=(t=w==null?void 0:w.result)!=null?t:w;if(l&&typeof l=="object"){i.id=Number(l.id)||0,i.uid=String((r=(a=l.uid)!=null?a:o.uid)!=null?r:""),i.name=String((f=l.name)!=null?f:""),i.alias=String((s=l.alias)!=null?s:""),i.description=String((m=l.description)!=null?m:"");const I=l.script;i.script=typeof I=="string"?I:I!=null?JSON.stringify(I):"[]";const R=l.template;i.template=typeof R=="string"?R:R!=null?JSON.stringify(R):"[]"}else i.uid=String(o.uid),i.name=String((_=o.name)!=null?_:""),i.alias=String((g=o.alias)!=null?g:""),i.description=String((M=o.description)!=null?M:"")}catch(w){i.uid=String(o.uid),i.name=String((E=o.name)!=null?E:""),i.alias=String((h=o.alias)!=null?h:""),i.description=String((P=o.description)!=null?P:""),u.ElMessage.warning("拉取控制码详情失败,已使用列表行数据编辑")}finally{C.value=!1}})}function se(){return b(this,null,function*(){var a;if(!((a=i.name)!=null&&a.trim())){u.ElMessage.warning("请填写控制码名称");return}const o=U(i.script,"[]"),t=U(i.template,"[]");if(o===null||t===null){u.ElMessage.error("脚本或模板不是合法 JSON");return}C.value=!0;try{yield S.api.http("control_create",{name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:o,template:t},!0),u.ElMessage.success("添加成功"),O.value=!1,yield x()}catch(r){u.ElMessage.error("添加失败")}finally{C.value=!1}})}function de(){return b(this,null,function*(){var a;if(!((a=i.name)!=null&&a.trim())){u.ElMessage.warning("请填写控制码名称");return}const o=U(i.script,"[]"),t=U(i.template,"[]");if(o===null||t===null){u.ElMessage.error("脚本或模板不是合法 JSON");return}C.value=!0;try{yield S.api.http("control_update",{id:i.id,uid:i.uid,name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:o,template:t},!0),u.ElMessage.success("保存成功"),D.value=!1,yield x()}catch(r){u.ElMessage.error("保存失败")}finally{C.value=!1}})}const F=e.ref(!1),H=e.ref(!1),p=e.ref(null);function ue(o){if(o==null)return"";if(typeof o=="string")try{return JSON.stringify(JSON.parse(o),null,2)}catch(t){return o}try{return JSON.stringify(o,null,2)}catch(t){return String(o)}}const ce=e.computed(()=>p.value?ue(p.value.script):"");function pe(o){return b(this,null,function*(){p.value=null,F.value=!0,H.value=!0;try{const t=yield S.api.http("control_item",{uid:o.uid},!0),a=t==null?void 0:t.result;a&&typeof a=="object"?p.value=a:(p.value=J({},o),u.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){p.value=J({},o),u.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{H.value=!1}})}function me(o){u.ElMessageBox.confirm(`确认对控制码「${o.name||o.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{u.ElMessage.success("已提交备档(完整流程请在 mixui 控制码管理中操作)")}).catch(()=>{})}function fe(o){u.ElMessageBox.confirm(`确认删除控制码「${o.name||o.uid}」吗?`,"警告",{type:"warning"}).then(()=>b(null,null,function*(){try{yield S.api.http("control_delete",{uid:o.uid,id:o.id},!0),u.ElMessage.success("删除成功"),yield x()}catch(t){u.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{x()}),(o,t)=>{const a=v.ElOption,r=v.ElSelect,f=v.ElIcon,s=v.ElInput,m=v.ElButton,_=Ne.AgGridTable,g=v.ElFormItem,M=v.ElForm,E=v.ElDialog,h=v.ElDescriptionsItem,P=v.ElDescriptions,w=v.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-list mix-component",e.unref(W)]),style:e.normalizeStyle(e.unref(T))},[e.unref(V).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(y.value)},e.toDisplayString(c.conf.caption||c.conf.name),5)),e.createElementVNode("div",Ee,[e.createElementVNode("div",Te,[e.createVNode(r,{modelValue:$.value,"onUpdate:modelValue":t[0]||(t[0]=l=>$.value=l),class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(a,{label:"控制码名称",value:"name"}),e.createVNode(a,{label:"控制码编号",value:"uid"}),e.createVNode(a,{label:"控制码别名",value:"alias"}),e.createVNode(a,{label:"描述",value:"description"})]),_:1},8,["modelValue"]),e.createVNode(s,{modelValue:B.value,"onUpdate:modelValue":t[1]||(t[1]=l=>B.value=l),placeholder:"搜索控制码",class:"toolbar-search",onKeyup:e.withKeys(K,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(f,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(be.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(m,{type:"primary",onClick:K},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(m,{onClick:ae},{default:e.withCtx(()=>[...t[18]||(t[18]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(V).add?(e.openBlock(),e.createBlock(m,{key:0,type:"success",onClick:ne},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode("添加控制码",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(_,{"column-defs":ie.value,"row-data":q.value,"show-pagination":!0,pager:N,"auto-fill-columns":!0,components:le,onPageChange:oe},null,8,["column-defs","row-data","pager"])]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[w,j.value]]),e.createVNode(E,{modelValue:O.value,"onUpdate:modelValue":t[7]||(t[7]=l=>O.value=l),title:"添加控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(m,{onClick:t[6]||(t[6]=l=>O.value=!1)},{default:e.withCtx(()=>[...t[20]||(t[20]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(m,{type:"primary",loading:C.value,onClick:se},{default:e.withCtx(()=>[...t[21]||(t[21]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(M,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(g,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.name,"onUpdate:modelValue":t[2]||(t[2]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.alias,"onUpdate:modelValue":t[3]||(t[3]=l=>i.alias=l),placeholder:"可选"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.description,"onUpdate:modelValue":t[4]||(t[4]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.script,"onUpdate:modelValue":t[5]||(t[5]=l=>i.script=l),type:"textarea",rows:8,placeholder:"JSON 数组,默认 []"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:D.value,"onUpdate:modelValue":t[14]||(t[14]=l=>D.value=l),title:"编辑控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(m,{onClick:t[13]||(t[13]=l=>D.value=!1)},{default:e.withCtx(()=>[...t[22]||(t[22]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(m,{type:"primary",loading:C.value,onClick:de},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(M,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(g,{label:"控制码编号"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.uid,"onUpdate:modelValue":t[8]||(t[8]=l=>i.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.name,"onUpdate:modelValue":t[9]||(t[9]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.alias,"onUpdate:modelValue":t[10]||(t[10]=l=>i.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.description,"onUpdate:modelValue":t[11]||(t[11]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:i.script,"onUpdate:modelValue":t[12]||(t[12]=l=>i.script=l),type:"textarea",rows:8},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:F.value,"onUpdate:modelValue":t[16]||(t[16]=l=>F.value=l),title:"控制码详情",width:"720px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(m,{type:"primary",onClick:t[15]||(t[15]=l=>F.value=!1)},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",ke,[p.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(P,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(h,{label:"控制码编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"控制码名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"控制码别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"更新时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.description)!=null?l:""),1)]}),_:1})]),_:1}),t[24]||(t[24]=e.createElementVNode("div",{class:"view-block-title"},"控制码脚本",-1)),e.createVNode(s,{"model-value":ce.value,type:"textarea",rows:10,readonly:""},null,8,["model-value"])],64)):e.createCommentVNode("",!0)])),[[w,H.value]])]),_:1},8,["modelValue"])],64)}}})),Fe=S._export_sfc(Ue,[["__scopeId","data-v-fb27eda6"]]);exports.default=Fe;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var $=Object.defineProperty,z=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var M=(r,l,i)=>l in r?$(r,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[l]=i,E=(r,l)=>{for(var i in l||(l={}))U.call(l,i)&&M(r,i,l[i]);if(B)for(var i of B(l))H.call(l,i)&&M(r,i,l[i]);return r},q=(r,l)=>z(r,j(l));var y=(r,l,i)=>new Promise((h,u)=>{var C=s=>{try{g(i.next(s))}catch(d){u(d)}},v=s=>{try{g(i.throw(s))}catch(d){u(d)}},g=s=>s.done?h(s.value):Promise.resolve(s.value).then(C,v);g((i=i.apply(r,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");const G=require("./AgGridTable-
|
|
1
|
+
"use strict";var $=Object.defineProperty,z=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var M=(r,l,i)=>l in r?$(r,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[l]=i,E=(r,l)=>{for(var i in l||(l={}))U.call(l,i)&&M(r,i,l[i]);if(B)for(var i of B(l))H.call(l,i)&&M(r,i,l[i]);return r},q=(r,l)=>z(r,j(l));var y=(r,l,i)=>new Promise((h,u)=>{var C=s=>{try{g(i.next(s))}catch(d){u(d)}},v=s=>{try{g(i.throw(s))}catch(d){u(d)}},g=s=>s.done?h(s.value):Promise.resolve(s.value).then(C,v);g((i=i.apply(r,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");const G=require("./AgGridTable-B0ARi6iQ.cjs");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),K=require("./useMixiotPanelSurface-CAZgexY5.cjs"),W=require("./BaseComponent-BabOc6Kc.cjs"),w=require("./index-Cm7hGuPj.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),_=require("element-plus"),Q=require("@element-plus/icons-vue"),Y=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),A=require("./syncMixiotListConfig-Elkp8zAs.cjs"),D=require("./ele-lst-icon-CrxnHZ-A.cjs"),X={class:"mix-body"},Z={class:"top-bar"},ee={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"控制记录",NAME_EN:"ControlRecordList",ORDER:4,PLATFORM:["pc","screen"]},te={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},titleColor:"#111",titleSize:14,isHideTitle:!1,columns:[]},P=[{export:!0}],oe=[{key:"export",label:"导出",type:"checkbox"}],ne=[],le=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ae={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"object_id",label:"setting.gridFields.objectId"},{value:"created_by",label:"setting.gridFields.createdBy"},{value:"command",label:"setting.gridFields.commandCode"},{value:"command_name",label:"setting.gridFields.commandName"}]},ie={DEFAULT:ee,OPTIONS:te,DATA:P,COMMANDS:oe,OPERATIONS:ne,SOURCE:le,COMMON:ae},re=e.defineComponent(q(E({},ie),{__name:"controlRecordList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(r){const l=r;class i extends W.BaseComponent{getDataBool(t,n){var c,p;const a=(p=(c=this.props.conf)==null?void 0:c.data)==null?void 0:p[0];return a&&Object.prototype.hasOwnProperty.call(a,t)&&a[t]!==void 0?!!a[t]:this.getOptionValue(t,n)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),isHideTitle:this.getOptionValue("isHideTitle",!1),export:this.getDataBool("export",!0)}}init(){return y(this,null,function*(){this.applyTheme(),A.setupMixiotListConf(this.props.conf,{export:!0},P),this.Style.value=this.extractStyles()})}}const h=new i(l,"controlRecordList");h.setupLifecycle();const u=h.getStyle(),{mixiotPanelClass:C,mixiotPanelRootStyle:v}=K.useMixiotPanelSurface(u),g=e.computed(()=>J.generateTitleStyle(l.conf.options));e.computed(()=>A.buildMixiotColumnsConfig(l.conf));const s=e.reactive({current:1,pageSize:10,total:0}),d=e.ref(""),b=e.ref("object_id"),f=e.ref([]),x=e.ref(!1);function L(){const o={page_index:s.current,page_size:s.pageSize},t=[],n=d.value.trim();return n&&t.push([b.value,"like",`%${n}%`]),Y.appendCommonDesignerWhereAnd(l.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function S(){return y(this,null,function*(){var o;x.value=!0;try{const t=yield w.api.http("get_control_record_list",L(),!0),n=(o=t==null?void 0:t.result)!=null?o:t,a=Array.isArray(n==null?void 0:n.data)?n.data:[];f.value=a.map(p=>E({},p));const c=n==null?void 0:n.total_records;s.total=typeof c=="number"?c:a.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[controlRecordList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),f.value=[],s.total=0}finally{x.value=!1}})}e.computed(()=>f.value);function O(){s.current=1,S()}function R(){d.value="",s.current=1,S()}function N(o){const t=n=>String(n).padStart(2,"0");return`${o.getFullYear()}-${t(o.getMonth()+1)}-${t(o.getDate())} ${t(o.getHours())}:${t(o.getMinutes())}:${t(o.getSeconds())}`}function I(){return y(this,null,function*(){const o=[...new Set(f.value.map(a=>{var c;return String((c=a.object_id)!=null?c:"").trim()}).filter(Boolean))];if(!o.length){_.ElMessage.warning("当前列表无对象编号,请加载记录后再导出");return}const t=new Date,n=new Date(t.getTime()-168*3600*1e3);try{yield _.ElMessageBox.confirm(`将按最近 7 天、当前已加载列表中的 ${o.length} 个对象编号发起导出任务,是否继续?`,"导出控制记录",{type:"info"})}catch(a){return}try{const a=yield w.api.http("export_control_record",{file_name:`control_record_${N(t).replace(/[: ]/g,"_")}`,start_time:N(n),end_time:N(t),object_ids:o},!0);if(a.code!==void 0&&a.code!==200){_.ElMessage.warning(a.msg||a.info||"导出请求未成功");return}_.ElMessage.success("导出任务已提交")}catch(a){_.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{S()}),(o,t)=>{const n=m.ElOption,a=m.ElSelect,c=m.ElIcon,p=m.ElInput,V=m.ElButton,k=G.AgGridTable,F=m.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-record-list mix-component",e.unref(C)]),style:e.normalizeStyle(e.unref(v))},[e.unref(u).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(g.value)},e.toDisplayString(r.conf.caption||r.conf.name),5)),e.createElementVNode("div",X,[e.createElementVNode("div",Z,[e.createVNode(a,{modelValue:b.value,"onUpdate:modelValue":t[0]||(t[0]=T=>b.value=T),class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(n,{label:"对象编号",value:"object_id"}),e.createVNode(n,{label:"用户名",value:"created_by"}),e.createVNode(n,{label:"控制码指令",value:"command"}),e.createVNode(n,{label:"指令名称",value:"command_name"})]),_:1},8,["modelValue"]),e.createVNode(p,{modelValue:d.value,"onUpdate:modelValue":t[1]||(t[1]=T=>d.value=T),placeholder:"搜索控制记录",class:"toolbar-search",onKeyup:e.withKeys(O,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(c,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Q.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(V,{type:"primary",onClick:O},{default:e.withCtx(()=>[...t[2]||(t[2]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(V,{onClick:R},{default:e.withCtx(()=>[...t[3]||(t[3]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(u).export?(e.openBlock(),e.createBlock(V,{key:0,type:"success",onClick:I},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(k,{"column-defs":o.agColumnDefs,"row-data":f.value,"show-pagination":!0,pager:s,"auto-fill-columns":!0,components:o.gridComponents,onPageChange:o.onPageChange},null,8,["column-defs","row-data","pager","components","onPageChange"])]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[F,x.value]])}}})),se=w._export_sfc(re,[["__scopeId","data-v-3028da90"]]);exports.default=se;
|
|
@@ -29,7 +29,7 @@ var v = (i, n, l) => new Promise((h, m) => {
|
|
|
29
29
|
import { ElSelect as Z, ElOption as ee, ElInput as te, ElIcon as oe, ElButton as ne, ElLoadingDirective as ae } from "element-plus/es";
|
|
30
30
|
import "element-plus/es/components/base/style/css";
|
|
31
31
|
import "element-plus/es/components/loading/style/css";
|
|
32
|
-
import { A as le } from "./AgGridTable-
|
|
32
|
+
import { A as le } from "./AgGridTable-CiUB86Yi.js";
|
|
33
33
|
import "element-plus/es/components/button/style/css";
|
|
34
34
|
import "element-plus/es/components/input/style/css";
|
|
35
35
|
import "element-plus/es/components/icon/style/css";
|
|
@@ -37,8 +37,8 @@ import "element-plus/es/components/select/style/css";
|
|
|
37
37
|
import "element-plus/es/components/option/style/css";
|
|
38
38
|
import { defineComponent as ie, computed as B, reactive as re, ref as y, onMounted as se, withDirectives as ce, openBlock as N, createElementBlock as F, normalizeStyle as k, unref as _, normalizeClass as de, toDisplayString as me, createCommentVNode as $, createElementVNode as I, createVNode as s, withCtx as p, withKeys as ue, createTextVNode as V, createBlock as pe, renderSlot as ge } from "vue";
|
|
39
39
|
import { u as fe } from "./useMixiotPanelSurface-DRl3cZvc.js";
|
|
40
|
-
import { B as _e } from "./BaseComponent-
|
|
41
|
-
import { a as z, _ as he } from "./index-
|
|
40
|
+
import { B as _e } from "./BaseComponent-7Sa7XOg-.js";
|
|
41
|
+
import { a as z, _ as he } from "./index-DUL649KZ.js";
|
|
42
42
|
import { g as ve } from "./titleStyle-BT5GlpAb.js";
|
|
43
43
|
import { ElMessage as b, ElMessageBox as ye } from "element-plus";
|
|
44
44
|
import { Search as be } from "@element-plus/icons-vue";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ke=Object.defineProperty,Ce=Object.defineProperties;var xe=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var Se=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;var Y=(u,i,s)=>i in u?ke(u,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[i]=s,D=(u,i)=>{for(var s in i||(i={}))Se.call(i,s)&&Y(u,s,i[s]);if(Q)for(var s of Q(i))Ee.call(i,s)&&Y(u,s,i[s]);return u},Z=(u,i)=>Ce(u,xe(i));var h=(u,i,s)=>new Promise((S,v)=>{var O=m=>{try{y(s.next(m))}catch(g){v(g)}},T=m=>{try{y(s.throw(m))}catch(g){v(g)}},y=m=>m.done?S(m.value):Promise.resolve(m.value).then(O,T);y((s=s.apply(u,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=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/tag/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/dropdown/style/css");require("element-plus/es/components/dropdown-menu/style/css");require("element-plus/es/components/dropdown-item/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),we=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Ve=require("./BaseComponent-9njJjeix.cjs"),$=require("./index-Bo49zvKb.cjs"),Be=require("./titleStyle-NSnz6cUg.cjs"),x=require("element-plus"),F=require("@element-plus/icons-vue"),Ne=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),Le=require("./useMixiotAppScrollLoad-BfiNo4UY.cjs"),X=require("./ele-lst-icon-CrxnHZ-A.cjs"),De={key:0,class:"app-title-row"},Oe={class:"mix-app-body"},Te={class:"app-toolbar-row"},Pe={key:0,class:"app-card-top"},Ae={class:"app-card-name"},Me={class:"app-field-label"},Re={class:"app-field-value"},je=["onClick"],qe={key:0,class:"app-scroll-foot"},ze={key:1,class:"app-scroll-foot"},Ie={key:2,class:"app-scroll-foot"},Fe={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"控制记录",NAME_EN:"ControlRecordListAPP",ORDER:4,PLATFORM:["mobile"]},$e={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:"command",label:"控制码指令",width:140,visible:!0},{key:"created_by",label:"用户名",width:120,visible:!0},{key:"created",label:"控制时间",width:180,visible:!0},{key:"object_id",label:"对象编号",width:140,visible:!0},{key:"command_name",label:"指令名称",width:140,visible:!0},{key:"value",label:"控制值",width:120,visible:!0},{key:"status",label:"下发状态",width:100,visible:!0}]},ee=[{name:"控制记录",fv:"",object_id:"",unit:"",default:"",isText:!1,showExportBtn:!0,object_id_label:"对象编号",object_id_visible:!0,created_by:"用户名",created_by_visible:!0,command:"控制码指令",command_visible:!0,command_name:"指令名称",command_name_visible:!0,value:"控制值",value_visible:!0,status:"下发状态",status_visible:!0,created:"控制时间",created_visible:!0,appCardDefaultLines:3}],Ke=[{key:"appCardDefaultLines",label:"APP卡片默认展示行数(默认3行:控制码指令、用户名、控制时间)",type:"number"},{key:"showExportBtn",label:"导出按钮",type:"checkbox",group:"命令组"},{key:"name",label:"参数名称"},{key:"command",label:"控制码指令",checkable:!0,checkboxKey:"command_visible"},{key:"created_by",label:"用户名",checkable:!0,checkboxKey:"created_by_visible"},{key:"created",label:"控制时间",checkable:!0,checkboxKey:"created_visible"},{key:"object_id_label",label:"对象编号",checkable:!0,checkboxKey:"object_id_visible"},{key:"command_name",label:"指令名称",checkable:!0,checkboxKey:"command_name_visible"},{key:"value",label:"控制值",checkable:!0,checkboxKey:"value_visible"},{key:"status",label:"下发状态",checkable:!0,checkboxKey:"status_visible"}],Ue=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],He={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"object_id",label:"setting.gridFields.objectId"},{value:"created_by",label:"setting.gridFields.createdBy"},{value:"command",label:"setting.gridFields.commandCode"},{value:"command_name",label:"setting.gridFields.commandName"}]},We={DEFAULT:Fe,OPTIONS:$e,DATA:ee,PARAMS:Ke,SOURCE:Ue,COMMON:He},Je=e.defineComponent(Z(D({},We),{__name:"controlRecordListAPP",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(u){const i=u;class s extends Ve.BaseComponent{getDataBool(t,n){var a,c;const l=(c=(a=this.props.conf)==null?void 0:a.data)==null?void 0:c[0];return l&&Object.prototype.hasOwnProperty.call(l,t)&&l[t]!==void 0?!!l[t]:this.getOptionValue(t,n)}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),showExportBtn:this.getDataBool("showExportBtn",!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(ee));else{const n=this.props.conf.data[0];n.showExportBtn===void 0&&(n.showExportBtn=!0);const l={object_id_visible:!0,created_by_visible:!0,command_visible:!0,command_name_visible:!0,value_visible:!0,status_visible:!0,created_visible:!0};for(const[a,c]of Object.entries(l))n[a]===void 0&&(n[a]=c);(n.appCardDefaultLines===void 0||n.appCardDefaultLines===null||n.appCardDefaultLines==="")&&(n.appCardDefaultLines=3)}}}const S=new s(i,"controlRecordListAPP");S.setupLifecycle();const v=S.getStyle(),{mixiotPanelClass:O,mixiotPanelRootStyle:T}=we.useMixiotPanelSurface(v),y=e.computed(()=>Be.generateTitleStyle(i.conf.options)),m=e.computed(()=>{var n,l,a,c;const o=((l=(n=i.conf)==null?void 0:n.options)==null?void 0:l.columns)||[],t=((c=(a=i.conf)==null?void 0:a.data)==null?void 0:c[0])||{};return(Array.isArray(o)?o:[]).map(r=>{var B;let p=r.key;r.key==="object_id"&&(p="object_id_label");const b=(B=t[p])!=null?B:t[r.key],I=r.key==="object_id"?"object_id_visible":`${r.key}_visible`,C=t[I];return{prop:r.key,label:b!==void 0&&b!==""?String(b):r.label,width:r.width,minWidth:r.minWidth,visible:C!==void 0?!!C:r.visible!==!1}})}),g=10,{listLoading:P,listLoadingMore:te,hasMore:A,totalRecords:K,pageIndex:oe,resetListPagination:ne,pageRequestParams:le,updateAfterPage:ae,onListScroll:ie,runLoadMore:re}=Le.useMixiotAppScrollLoad(g),E=e.ref(""),w=e.ref("object_id"),f=e.ref([]);function se(){const o=D({},le()),t=[],n=E.value.trim();return n&&t.push([w.value,"like",`%${n}%`]),Ne.appendCommonDesignerWhereAnd(i.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function V(o){const t=o.error;return t===""||t===null||t===void 0}function U(o){return h(this,null,function*(){var p;const t=yield $.api.http("get_control_record_list",se(),!0),n=(p=t==null?void 0:t.result)!=null?p:t,l=Array.isArray(n==null?void 0:n.data)?n.data:[],a=l.map(b=>D({},b));o?f.value=[...f.value,...a]:f.value=a;const c=n==null?void 0:n.total_records,r=typeof c=="number"?c:void 0;ae(l.length,r,f.value.length),t&&t.code!==void 0&&t.code!==200&&console.warn("[controlRecordList] 列表接口非成功",t.msg||t.info,t)})}function M(){return h(this,null,function*(){ne(),oe.value=1,P.value=!0;try{yield U(!1)}catch(o){console.error(o),f.value=[],K.value=0,A.value=!1}finally{P.value=!1}})}function ce(){return h(this,null,function*(){yield re(()=>h(null,null,function*(){try{yield U(!0)}catch(o){throw console.error(o),o}}))})}function de(o){ie(o,ce)}const ue=e.computed(()=>f.value);function pe(o,t){const n=o[t];return n==null?"":String(n)}const me=e.computed(()=>{var o,t;return((t=(o=i.conf)==null?void 0:o.data)==null?void 0:t[0])||{}}),H=e.computed(()=>{const o=me.value,t=Number(o.appCardDefaultLines);return Number.isFinite(t)&&t>=1?Math.min(Math.floor(t),30):3}),k=e.reactive({}),R=["command","created_by","created","object_id","command_name","value"],fe=e.computed(()=>{var o;return{backgroundColor:v.value.bgColor,borderRadius:`${(o=v.value.radiusSize)!=null?o:8}px`}});function j(o,t){var n,l;return`${t}-${String((n=o.object_id)!=null?n:"")}-${String((l=o.created)!=null?l:"")}`}function W(o,t){return!!k[j(o,t)]}function _e(o,t){const n=j(o,t);k[n]=!k[n]}function q(o){var n;return String((n=o.command_name)!=null?n:"").trim()}function J(o){const t=[],n=[];for(const l of R)n.includes(l)||n.push(l);for(const l of m.value)!l.visible||l.prop==="status"||n.includes(l.prop)||n.push(l.prop);for(const l of n){const a=m.value.find(c=>c.prop===l&&c.visible);!a||l==="status"||t.push({prop:l,label:a.label,text:pe(o,l)})}return t}function be(o,t){const n=J(o);if(W(o,t))return n;const l=H.value,a=[];for(const r of R){const p=n.find(b=>b.prop===r);p&&a.push(p)}if(a.length>=l)return a.slice(0,l);const c=n.filter(r=>!R.includes(r.prop));return[...a,...c].slice(0,l)}function ve(o,t){return J(o).length>H.value}function G(){M()}function he(){E.value="",w.value="object_id";for(const o of Object.keys(k))delete k[o];M()}function ye(o){o==="reset"?he():o==="export"&&ge()}function z(o){const t=n=>String(n).padStart(2,"0");return`${o.getFullYear()}-${t(o.getMonth()+1)}-${t(o.getDate())} ${t(o.getHours())}:${t(o.getMinutes())}:${t(o.getSeconds())}`}function ge(){return h(this,null,function*(){const o=[...new Set(f.value.map(l=>{var a;return String((a=l.object_id)!=null?a:"").trim()}).filter(Boolean))];if(!o.length){x.ElMessage.warning("当前列表无对象编号,请加载记录后再导出");return}const t=new Date,n=new Date(t.getTime()-168*3600*1e3);try{yield x.ElMessageBox.confirm(`将按最近 7 天、当前已加载列表中的 ${o.length} 个对象编号发起导出任务,是否继续?`,"导出控制记录",{type:"info"})}catch(l){return}try{const l=yield $.api.http("export_control_record",{file_name:`control_record_${z(t).replace(/[: ]/g,"_")}`,start_time:z(n),end_time:z(t),object_ids:o},!0);if(l.code!==void 0&&l.code!==200){x.ElMessage.warning(l.msg||l.info||"导出请求未成功");return}x.ElMessage.success("导出任务已提交")}catch(l){x.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{M()}),(o,t)=>{const n=_.ElIcon,l=_.ElButton,a=_.ElDropdownItem,c=_.ElDropdownMenu,r=_.ElDropdown,p=_.ElOption,b=_.ElSelect,I=_.ElInput,C=_.ElTag,B=_.ElLoadingDirective;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-record-list-app mixiot-list-app mix-component",e.unref(O)]),style:e.normalizeStyle(e.unref(T))},[e.unref(v).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",De,[e.createElementVNode("div",{class:"app-title-text",style:e.normalizeStyle(y.value)},e.toDisplayString(u.conf.caption||u.conf.name),5),e.createVNode(r,{trigger:"click",onCommand:ye},{dropdown:e.withCtx(()=>[e.createVNode(c,null,{default:e.withCtx(()=>[e.createVNode(a,{command:"reset"},{default:e.withCtx(()=>[...t[2]||(t[2]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(v).showExportBtn?(e.openBlock(),e.createBlock(a,{key:0,command:"export"},{default:e.withCtx(()=>[...t[3]||(t[3]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),_:1})]),default:e.withCtx(()=>[e.createVNode(l,{size:"small",circle:""},{default:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.Plus))]),_:1})]),_:1})]),_:1})])),e.withDirectives((e.openBlock(),e.createElementBlock("div",Oe,[e.createElementVNode("div",Te,[e.createVNode(b,{modelValue:w.value,"onUpdate:modelValue":t[0]||(t[0]=d=>w.value=d),class:"app-field-select"},{default:e.withCtx(()=>[e.createVNode(p,{label:"对象编号",value:"object_id"}),e.createVNode(p,{label:"用户名",value:"created_by"}),e.createVNode(p,{label:"控制码指令",value:"command"}),e.createVNode(p,{label:"指令名称",value:"command_name"})]),_:1},8,["modelValue"]),e.createVNode(I,{modelValue:E.value,"onUpdate:modelValue":t[1]||(t[1]=d=>E.value=d),placeholder:"输入关键词搜索",clearable:"",class:"app-search-input",onKeyup:e.withKeys(G,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.Search))]),_:1})]),append:e.withCtx(()=>[e.createVNode(l,{type:"primary",class:"app-toolbar-search-btn",onClick:G},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("搜索",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",{class:"app-card-scroll",onScroll:de},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ue.value,(d,N)=>(e.openBlock(),e.createElementBlock("div",{key:j(d,N),class:"app-object-card",style:e.normalizeStyle(fe.value)},[q(d)?(e.openBlock(),e.createElementBlock("div",Pe,[e.createElementVNode("div",Ae,e.toDisplayString(q(d)),1),e.createVNode(C,{type:V(d)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V(d)?"成功":"失败"),1)]),_:2},1032,["type"])])):(e.openBlock(),e.createBlock(C,{key:1,class:"app-card-status-corner",type:V(d)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V(d)?"成功":"失败"),1)]),_:2},1032,["type"])),e.createElementVNode("div",{class:e.normalizeClass(["app-card-fields",{"has-corner-status":!q(d)}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(be(d,N),L=>(e.openBlock(),e.createElementBlock("div",{key:L.prop,class:"app-field-line"},[e.createElementVNode("span",Me,e.toDisplayString(L.label),1),e.createElementVNode("span",Re,e.toDisplayString(L.text),1)]))),128))],2),ve(d)?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(["app-card-expand-bottom",{open:W(d,N)}]),onClick:e.withModifiers(L=>_e(d,N),["stop"])},[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.ArrowDown))]),_:1})],10,je)):e.createCommentVNode("",!0)],4))),128)),e.unref(te)?(e.openBlock(),e.createElementBlock("div",qe,"加载中…")):f.value.length&&!e.unref(A)?(e.openBlock(),e.createElementBlock("div",ze," 已加载全部 "+e.toDisplayString(e.unref(K))+" 条 ",1)):f.value.length&&e.unref(A)?(e.openBlock(),e.createElementBlock("div",Ie," 已加载 "+e.toDisplayString(f.value.length)+" 条,上拉加载更多 ",1)):e.createCommentVNode("",!0)],32)])),[[B,e.unref(P)]]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)}}})),Ge=$._export_sfc(Je,[["__scopeId","data-v-2d8d3031"]]);exports.default=Ge;
|
|
1
|
+
"use strict";var ke=Object.defineProperty,Ce=Object.defineProperties;var xe=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var Se=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;var Y=(u,i,s)=>i in u?ke(u,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[i]=s,D=(u,i)=>{for(var s in i||(i={}))Se.call(i,s)&&Y(u,s,i[s]);if(Q)for(var s of Q(i))Ee.call(i,s)&&Y(u,s,i[s]);return u},Z=(u,i)=>Ce(u,xe(i));var h=(u,i,s)=>new Promise((S,v)=>{var O=m=>{try{y(s.next(m))}catch(g){v(g)}},T=m=>{try{y(s.throw(m))}catch(g){v(g)}},y=m=>m.done?S(m.value):Promise.resolve(m.value).then(O,T);y((s=s.apply(u,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=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/tag/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/dropdown/style/css");require("element-plus/es/components/dropdown-menu/style/css");require("element-plus/es/components/dropdown-item/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),we=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Ve=require("./BaseComponent-BabOc6Kc.cjs"),$=require("./index-Cm7hGuPj.cjs"),Be=require("./titleStyle-NSnz6cUg.cjs"),x=require("element-plus"),F=require("@element-plus/icons-vue"),Ne=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),Le=require("./useMixiotAppScrollLoad-BfiNo4UY.cjs"),X=require("./ele-lst-icon-CrxnHZ-A.cjs"),De={key:0,class:"app-title-row"},Oe={class:"mix-app-body"},Te={class:"app-toolbar-row"},Pe={key:0,class:"app-card-top"},Ae={class:"app-card-name"},Me={class:"app-field-label"},Re={class:"app-field-value"},je=["onClick"],qe={key:0,class:"app-scroll-foot"},ze={key:1,class:"app-scroll-foot"},Ie={key:2,class:"app-scroll-foot"},Fe={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"控制记录",NAME_EN:"ControlRecordListAPP",ORDER:4,PLATFORM:["mobile"]},$e={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:"command",label:"控制码指令",width:140,visible:!0},{key:"created_by",label:"用户名",width:120,visible:!0},{key:"created",label:"控制时间",width:180,visible:!0},{key:"object_id",label:"对象编号",width:140,visible:!0},{key:"command_name",label:"指令名称",width:140,visible:!0},{key:"value",label:"控制值",width:120,visible:!0},{key:"status",label:"下发状态",width:100,visible:!0}]},ee=[{name:"控制记录",fv:"",object_id:"",unit:"",default:"",isText:!1,showExportBtn:!0,object_id_label:"对象编号",object_id_visible:!0,created_by:"用户名",created_by_visible:!0,command:"控制码指令",command_visible:!0,command_name:"指令名称",command_name_visible:!0,value:"控制值",value_visible:!0,status:"下发状态",status_visible:!0,created:"控制时间",created_visible:!0,appCardDefaultLines:3}],Ke=[{key:"appCardDefaultLines",label:"APP卡片默认展示行数(默认3行:控制码指令、用户名、控制时间)",type:"number"},{key:"showExportBtn",label:"导出按钮",type:"checkbox",group:"命令组"},{key:"name",label:"参数名称"},{key:"command",label:"控制码指令",checkable:!0,checkboxKey:"command_visible"},{key:"created_by",label:"用户名",checkable:!0,checkboxKey:"created_by_visible"},{key:"created",label:"控制时间",checkable:!0,checkboxKey:"created_visible"},{key:"object_id_label",label:"对象编号",checkable:!0,checkboxKey:"object_id_visible"},{key:"command_name",label:"指令名称",checkable:!0,checkboxKey:"command_name_visible"},{key:"value",label:"控制值",checkable:!0,checkboxKey:"value_visible"},{key:"status",label:"下发状态",checkable:!0,checkboxKey:"status_visible"}],Ue=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],He={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"object_id",label:"setting.gridFields.objectId"},{value:"created_by",label:"setting.gridFields.createdBy"},{value:"command",label:"setting.gridFields.commandCode"},{value:"command_name",label:"setting.gridFields.commandName"}]},We={DEFAULT:Fe,OPTIONS:$e,DATA:ee,PARAMS:Ke,SOURCE:Ue,COMMON:He},Je=e.defineComponent(Z(D({},We),{__name:"controlRecordListAPP",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(u){const i=u;class s extends Ve.BaseComponent{getDataBool(t,n){var a,c;const l=(c=(a=this.props.conf)==null?void 0:a.data)==null?void 0:c[0];return l&&Object.prototype.hasOwnProperty.call(l,t)&&l[t]!==void 0?!!l[t]:this.getOptionValue(t,n)}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),showExportBtn:this.getDataBool("showExportBtn",!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(ee));else{const n=this.props.conf.data[0];n.showExportBtn===void 0&&(n.showExportBtn=!0);const l={object_id_visible:!0,created_by_visible:!0,command_visible:!0,command_name_visible:!0,value_visible:!0,status_visible:!0,created_visible:!0};for(const[a,c]of Object.entries(l))n[a]===void 0&&(n[a]=c);(n.appCardDefaultLines===void 0||n.appCardDefaultLines===null||n.appCardDefaultLines==="")&&(n.appCardDefaultLines=3)}}}const S=new s(i,"controlRecordListAPP");S.setupLifecycle();const v=S.getStyle(),{mixiotPanelClass:O,mixiotPanelRootStyle:T}=we.useMixiotPanelSurface(v),y=e.computed(()=>Be.generateTitleStyle(i.conf.options)),m=e.computed(()=>{var n,l,a,c;const o=((l=(n=i.conf)==null?void 0:n.options)==null?void 0:l.columns)||[],t=((c=(a=i.conf)==null?void 0:a.data)==null?void 0:c[0])||{};return(Array.isArray(o)?o:[]).map(r=>{var B;let p=r.key;r.key==="object_id"&&(p="object_id_label");const b=(B=t[p])!=null?B:t[r.key],I=r.key==="object_id"?"object_id_visible":`${r.key}_visible`,C=t[I];return{prop:r.key,label:b!==void 0&&b!==""?String(b):r.label,width:r.width,minWidth:r.minWidth,visible:C!==void 0?!!C:r.visible!==!1}})}),g=10,{listLoading:P,listLoadingMore:te,hasMore:A,totalRecords:K,pageIndex:oe,resetListPagination:ne,pageRequestParams:le,updateAfterPage:ae,onListScroll:ie,runLoadMore:re}=Le.useMixiotAppScrollLoad(g),E=e.ref(""),w=e.ref("object_id"),f=e.ref([]);function se(){const o=D({},le()),t=[],n=E.value.trim();return n&&t.push([w.value,"like",`%${n}%`]),Ne.appendCommonDesignerWhereAnd(i.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function V(o){const t=o.error;return t===""||t===null||t===void 0}function U(o){return h(this,null,function*(){var p;const t=yield $.api.http("get_control_record_list",se(),!0),n=(p=t==null?void 0:t.result)!=null?p:t,l=Array.isArray(n==null?void 0:n.data)?n.data:[],a=l.map(b=>D({},b));o?f.value=[...f.value,...a]:f.value=a;const c=n==null?void 0:n.total_records,r=typeof c=="number"?c:void 0;ae(l.length,r,f.value.length),t&&t.code!==void 0&&t.code!==200&&console.warn("[controlRecordList] 列表接口非成功",t.msg||t.info,t)})}function M(){return h(this,null,function*(){ne(),oe.value=1,P.value=!0;try{yield U(!1)}catch(o){console.error(o),f.value=[],K.value=0,A.value=!1}finally{P.value=!1}})}function ce(){return h(this,null,function*(){yield re(()=>h(null,null,function*(){try{yield U(!0)}catch(o){throw console.error(o),o}}))})}function de(o){ie(o,ce)}const ue=e.computed(()=>f.value);function pe(o,t){const n=o[t];return n==null?"":String(n)}const me=e.computed(()=>{var o,t;return((t=(o=i.conf)==null?void 0:o.data)==null?void 0:t[0])||{}}),H=e.computed(()=>{const o=me.value,t=Number(o.appCardDefaultLines);return Number.isFinite(t)&&t>=1?Math.min(Math.floor(t),30):3}),k=e.reactive({}),R=["command","created_by","created","object_id","command_name","value"],fe=e.computed(()=>{var o;return{backgroundColor:v.value.bgColor,borderRadius:`${(o=v.value.radiusSize)!=null?o:8}px`}});function j(o,t){var n,l;return`${t}-${String((n=o.object_id)!=null?n:"")}-${String((l=o.created)!=null?l:"")}`}function W(o,t){return!!k[j(o,t)]}function _e(o,t){const n=j(o,t);k[n]=!k[n]}function q(o){var n;return String((n=o.command_name)!=null?n:"").trim()}function J(o){const t=[],n=[];for(const l of R)n.includes(l)||n.push(l);for(const l of m.value)!l.visible||l.prop==="status"||n.includes(l.prop)||n.push(l.prop);for(const l of n){const a=m.value.find(c=>c.prop===l&&c.visible);!a||l==="status"||t.push({prop:l,label:a.label,text:pe(o,l)})}return t}function be(o,t){const n=J(o);if(W(o,t))return n;const l=H.value,a=[];for(const r of R){const p=n.find(b=>b.prop===r);p&&a.push(p)}if(a.length>=l)return a.slice(0,l);const c=n.filter(r=>!R.includes(r.prop));return[...a,...c].slice(0,l)}function ve(o,t){return J(o).length>H.value}function G(){M()}function he(){E.value="",w.value="object_id";for(const o of Object.keys(k))delete k[o];M()}function ye(o){o==="reset"?he():o==="export"&&ge()}function z(o){const t=n=>String(n).padStart(2,"0");return`${o.getFullYear()}-${t(o.getMonth()+1)}-${t(o.getDate())} ${t(o.getHours())}:${t(o.getMinutes())}:${t(o.getSeconds())}`}function ge(){return h(this,null,function*(){const o=[...new Set(f.value.map(l=>{var a;return String((a=l.object_id)!=null?a:"").trim()}).filter(Boolean))];if(!o.length){x.ElMessage.warning("当前列表无对象编号,请加载记录后再导出");return}const t=new Date,n=new Date(t.getTime()-168*3600*1e3);try{yield x.ElMessageBox.confirm(`将按最近 7 天、当前已加载列表中的 ${o.length} 个对象编号发起导出任务,是否继续?`,"导出控制记录",{type:"info"})}catch(l){return}try{const l=yield $.api.http("export_control_record",{file_name:`control_record_${z(t).replace(/[: ]/g,"_")}`,start_time:z(n),end_time:z(t),object_ids:o},!0);if(l.code!==void 0&&l.code!==200){x.ElMessage.warning(l.msg||l.info||"导出请求未成功");return}x.ElMessage.success("导出任务已提交")}catch(l){x.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{M()}),(o,t)=>{const n=_.ElIcon,l=_.ElButton,a=_.ElDropdownItem,c=_.ElDropdownMenu,r=_.ElDropdown,p=_.ElOption,b=_.ElSelect,I=_.ElInput,C=_.ElTag,B=_.ElLoadingDirective;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-record-list-app mixiot-list-app mix-component",e.unref(O)]),style:e.normalizeStyle(e.unref(T))},[e.unref(v).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",De,[e.createElementVNode("div",{class:"app-title-text",style:e.normalizeStyle(y.value)},e.toDisplayString(u.conf.caption||u.conf.name),5),e.createVNode(r,{trigger:"click",onCommand:ye},{dropdown:e.withCtx(()=>[e.createVNode(c,null,{default:e.withCtx(()=>[e.createVNode(a,{command:"reset"},{default:e.withCtx(()=>[...t[2]||(t[2]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(v).showExportBtn?(e.openBlock(),e.createBlock(a,{key:0,command:"export"},{default:e.withCtx(()=>[...t[3]||(t[3]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),_:1})]),default:e.withCtx(()=>[e.createVNode(l,{size:"small",circle:""},{default:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.Plus))]),_:1})]),_:1})]),_:1})])),e.withDirectives((e.openBlock(),e.createElementBlock("div",Oe,[e.createElementVNode("div",Te,[e.createVNode(b,{modelValue:w.value,"onUpdate:modelValue":t[0]||(t[0]=d=>w.value=d),class:"app-field-select"},{default:e.withCtx(()=>[e.createVNode(p,{label:"对象编号",value:"object_id"}),e.createVNode(p,{label:"用户名",value:"created_by"}),e.createVNode(p,{label:"控制码指令",value:"command"}),e.createVNode(p,{label:"指令名称",value:"command_name"})]),_:1},8,["modelValue"]),e.createVNode(I,{modelValue:E.value,"onUpdate:modelValue":t[1]||(t[1]=d=>E.value=d),placeholder:"输入关键词搜索",clearable:"",class:"app-search-input",onKeyup:e.withKeys(G,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.Search))]),_:1})]),append:e.withCtx(()=>[e.createVNode(l,{type:"primary",class:"app-toolbar-search-btn",onClick:G},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("搜索",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",{class:"app-card-scroll",onScroll:de},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ue.value,(d,N)=>(e.openBlock(),e.createElementBlock("div",{key:j(d,N),class:"app-object-card",style:e.normalizeStyle(fe.value)},[q(d)?(e.openBlock(),e.createElementBlock("div",Pe,[e.createElementVNode("div",Ae,e.toDisplayString(q(d)),1),e.createVNode(C,{type:V(d)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V(d)?"成功":"失败"),1)]),_:2},1032,["type"])])):(e.openBlock(),e.createBlock(C,{key:1,class:"app-card-status-corner",type:V(d)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V(d)?"成功":"失败"),1)]),_:2},1032,["type"])),e.createElementVNode("div",{class:e.normalizeClass(["app-card-fields",{"has-corner-status":!q(d)}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(be(d,N),L=>(e.openBlock(),e.createElementBlock("div",{key:L.prop,class:"app-field-line"},[e.createElementVNode("span",Me,e.toDisplayString(L.label),1),e.createElementVNode("span",Re,e.toDisplayString(L.text),1)]))),128))],2),ve(d)?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(["app-card-expand-bottom",{open:W(d,N)}]),onClick:e.withModifiers(L=>_e(d,N),["stop"])},[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.ArrowDown))]),_:1})],10,je)):e.createCommentVNode("",!0)],4))),128)),e.unref(te)?(e.openBlock(),e.createElementBlock("div",qe,"加载中…")):f.value.length&&!e.unref(A)?(e.openBlock(),e.createElementBlock("div",ze," 已加载全部 "+e.toDisplayString(e.unref(K))+" 条 ",1)):f.value.length&&e.unref(A)?(e.openBlock(),e.createElementBlock("div",Ie," 已加载 "+e.toDisplayString(f.value.length)+" 条,上拉加载更多 ",1)):e.createCommentVNode("",!0)],32)])),[[B,e.unref(P)]]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)}}})),Ge=$._export_sfc(Je,[["__scopeId","data-v-2d8d3031"]]);exports.default=Ge;
|
|
@@ -40,8 +40,8 @@ import "element-plus/es/components/button/style/css";
|
|
|
40
40
|
import "element-plus/es/components/icon/style/css";
|
|
41
41
|
import { defineComponent as qe, computed as C, ref as Q, reactive as Ge, onMounted as Qe, openBlock as m, createElementBlock as _, normalizeStyle as Y, unref as b, normalizeClass as Z, createElementVNode as S, toDisplayString as k, createVNode as s, withCtx as p, createTextVNode as O, createBlock as re, createCommentVNode as N, withDirectives as Ye, withKeys as Ze, Fragment as ce, renderList as de, withModifiers as Xe, renderSlot as et } from "vue";
|
|
42
42
|
import { u as tt } from "./useMixiotPanelSurface-DRl3cZvc.js";
|
|
43
|
-
import { B as ot } from "./BaseComponent-
|
|
44
|
-
import { a as ue, _ as at } from "./index-
|
|
43
|
+
import { B as ot } from "./BaseComponent-7Sa7XOg-.js";
|
|
44
|
+
import { a as ue, _ as at } from "./index-DUL649KZ.js";
|
|
45
45
|
import { g as lt } from "./titleStyle-BT5GlpAb.js";
|
|
46
46
|
import { ElMessage as z, ElMessageBox as nt } from "element-plus";
|
|
47
47
|
import { Plus as it, Search as st, ArrowDown as rt } from "@element-plus/icons-vue";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var $ = Object.defineProperty, M = Object.defineProperties;
|
|
2
|
+
var U = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var w = Object.getOwnPropertySymbols;
|
|
4
|
+
var q = Object.prototype.hasOwnProperty, J = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var F = (c, l, n) => l in c ? $(c, l, { enumerable: !0, configurable: !0, writable: !0, value: n }) : c[l] = n, x = (c, l) => {
|
|
6
6
|
for (var n in l || (l = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
q.call(l, n) && F(c, n, l[n]);
|
|
8
|
+
if (w)
|
|
9
|
+
for (var n of w(l))
|
|
10
|
+
J.call(l, n) && F(c, n, l[n]);
|
|
11
11
|
return c;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, P = (c, l) => M(c, U(l));
|
|
13
|
+
var N = (c, l, n) => new Promise((_, b) => {
|
|
14
14
|
var s = (p) => {
|
|
15
15
|
try {
|
|
16
16
|
h(n.next(p));
|
|
@@ -26,22 +26,22 @@ var F = (c, l, n) => new Promise((_, b) => {
|
|
|
26
26
|
}, h = (p) => p.done ? _(p.value) : Promise.resolve(p.value).then(s, O);
|
|
27
27
|
h((n = n.apply(c, l)).next());
|
|
28
28
|
});
|
|
29
|
-
import { defineComponent as
|
|
30
|
-
import { B as
|
|
31
|
-
import { q as
|
|
32
|
-
import { g as
|
|
33
|
-
import { A as
|
|
34
|
-
const
|
|
29
|
+
import { defineComponent as K, computed as d, openBlock as g, createElementBlock as m, normalizeStyle as u, unref as f, createCommentVNode as z, createElementVNode as y, toDisplayString as C, normalizeClass as L, Fragment as Q, renderList as X, renderSlot as Y } from "vue";
|
|
30
|
+
import { B as Z } from "./BaseComponent-7Sa7XOg-.js";
|
|
31
|
+
import { q as tt, _ as et } from "./index-DUL649KZ.js";
|
|
32
|
+
import { g as ot } from "./titleStyle-BT5GlpAb.js";
|
|
33
|
+
import { A as nt, D as at } from "./ele-crd-icon-BXxB7P3T.js";
|
|
34
|
+
const lt = { class: "value-main" }, it = {
|
|
35
35
|
key: 0,
|
|
36
36
|
class: "value-unit"
|
|
37
|
-
},
|
|
38
|
-
DEFAULT_ICON:
|
|
39
|
-
ACTIVE_ICON:
|
|
37
|
+
}, k = "--", rt = {
|
|
38
|
+
DEFAULT_ICON: at,
|
|
39
|
+
ACTIVE_ICON: nt,
|
|
40
40
|
NAME_CN: "基础卡片",
|
|
41
41
|
NAME_EN: "Card",
|
|
42
42
|
ORDER: 1,
|
|
43
43
|
PLATFORM: ["pc", "screen", "mobile"]
|
|
44
|
-
},
|
|
44
|
+
}, st = {
|
|
45
45
|
titleColor: "#111",
|
|
46
46
|
titleSize: 14,
|
|
47
47
|
titleAlign: "left",
|
|
@@ -130,7 +130,7 @@ const at = { class: "value-main" }, lt = {
|
|
|
130
130
|
{ label: "component.options.paramsLayout_vertical", value: "vertical" }
|
|
131
131
|
]
|
|
132
132
|
}
|
|
133
|
-
},
|
|
133
|
+
}, ct = [
|
|
134
134
|
{
|
|
135
135
|
name: "参数一",
|
|
136
136
|
fv: "",
|
|
@@ -146,7 +146,7 @@ const at = { class: "value-main" }, lt = {
|
|
|
146
146
|
cellPadding: 0,
|
|
147
147
|
valueAlign: "center"
|
|
148
148
|
}
|
|
149
|
-
],
|
|
149
|
+
], pt = [
|
|
150
150
|
"name",
|
|
151
151
|
"fv",
|
|
152
152
|
"object_id",
|
|
@@ -209,13 +209,13 @@ const at = { class: "value-main" }, lt = {
|
|
|
209
209
|
min: 0,
|
|
210
210
|
max: 64
|
|
211
211
|
}
|
|
212
|
-
],
|
|
212
|
+
], ut = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime", "summary"], dt = {
|
|
213
213
|
useAlias: !1,
|
|
214
214
|
multiObject: !1,
|
|
215
215
|
source: "mosaic",
|
|
216
216
|
object_id: "",
|
|
217
217
|
object_alias: ""
|
|
218
|
-
},
|
|
218
|
+
}, gt = { DEFAULT: rt, OPTIONS: st, DATA: ct, PARAMS: pt, SOURCE: ut, COMMON: dt }, mt = /* @__PURE__ */ K(P(x({}, gt), {
|
|
219
219
|
__name: "crd",
|
|
220
220
|
props: {
|
|
221
221
|
conf: { type: Object, default: () => ({ data: [] }) },
|
|
@@ -233,7 +233,7 @@ const at = { class: "value-main" }, lt = {
|
|
|
233
233
|
cellPadding: 0,
|
|
234
234
|
valueAlign: "center"
|
|
235
235
|
}, n = c;
|
|
236
|
-
class _ extends
|
|
236
|
+
class _ extends Z {
|
|
237
237
|
extractStyles() {
|
|
238
238
|
return {
|
|
239
239
|
bgColor: this.getOptionValue("bgColor", "#fff"),
|
|
@@ -257,7 +257,7 @@ const at = { class: "value-main" }, lt = {
|
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
259
|
init() {
|
|
260
|
-
return
|
|
260
|
+
return N(this, null, function* () {
|
|
261
261
|
var e;
|
|
262
262
|
this.Style.value = this.extractStyles(), this.applyTheme();
|
|
263
263
|
const o = {
|
|
@@ -292,9 +292,9 @@ const at = { class: "value-main" }, lt = {
|
|
|
292
292
|
}
|
|
293
293
|
const b = new _(n, "crd");
|
|
294
294
|
b.setupLifecycle();
|
|
295
|
-
const s = b.getStyle(), O = d(() =>
|
|
295
|
+
const s = b.getStyle(), O = d(() => ot(n.conf.options)), h = d(() => {
|
|
296
296
|
const t = O.value || {}, o = parseFloat(String(t.fontSize || "14")) || 14, e = String(t.padding || "").split(" ").filter(Boolean), a = e.length > 0 && parseFloat(e[0]) || 0, r = Math.ceil(o * 1.5), i = Math.max(0, r + a * 2);
|
|
297
|
-
return
|
|
297
|
+
return P(x({}, t), {
|
|
298
298
|
minHeight: `${i}px`
|
|
299
299
|
});
|
|
300
300
|
}), p = d(() => {
|
|
@@ -306,10 +306,10 @@ const at = { class: "value-main" }, lt = {
|
|
|
306
306
|
}), S = d(() => {
|
|
307
307
|
const t = s.value;
|
|
308
308
|
return !!t.showTopGradient && t.topGradientPosition === "aboveTitle";
|
|
309
|
-
}),
|
|
309
|
+
}), E = d(() => {
|
|
310
310
|
const t = s.value;
|
|
311
311
|
return !!t.showTopGradient && t.topGradientPosition !== "aboveTitle";
|
|
312
|
-
}),
|
|
312
|
+
}), G = d(() => s.value.paramsLayout === "vertical"), H = d(() => {
|
|
313
313
|
var e;
|
|
314
314
|
const t = s.value, o = t.bgIconPosition === "right";
|
|
315
315
|
return {
|
|
@@ -322,7 +322,7 @@ const at = { class: "value-main" }, lt = {
|
|
|
322
322
|
paddingLeft: o ? void 0 : "12px"
|
|
323
323
|
};
|
|
324
324
|
});
|
|
325
|
-
function
|
|
325
|
+
function j(t) {
|
|
326
326
|
const o = Number(t == null ? void 0 : t.areaWeight), e = Number.isFinite(o) && o > 0 ? o : 1, a = Number(t == null ? void 0 : t.cellPadding), r = {
|
|
327
327
|
flex: `${e} 1 0`,
|
|
328
328
|
minWidth: "0",
|
|
@@ -330,33 +330,32 @@ const at = { class: "value-main" }, lt = {
|
|
|
330
330
|
};
|
|
331
331
|
return Number.isFinite(a) && a > 0 && (r.padding = `${a}px`), r;
|
|
332
332
|
}
|
|
333
|
-
function
|
|
334
|
-
const o = s.value, e = Number(t == null ? void 0 : t.valueFontSize), a = Number.isFinite(e) && e > 0 ? e : o.valueSize, r = typeof (t == null ? void 0 : t.valueTextColor) == "string" ? t.valueTextColor.trim() : "", i = t == null ? void 0 : t.valueAlign, v = i === "left" || i === "right" || i === "center" ? i : "center", T = v === "left" ? "flex-start" : v === "right" ? "flex-end" : "center"
|
|
335
|
-
return {
|
|
333
|
+
function R(t) {
|
|
334
|
+
const o = s.value, e = Number(t == null ? void 0 : t.valueFontSize), a = Number.isFinite(e) && e > 0 ? e : o.valueSize, r = typeof (t == null ? void 0 : t.valueTextColor) == "string" ? t.valueTextColor.trim() : "", i = t == null ? void 0 : t.valueAlign, v = i === "left" || i === "right" || i === "center" ? i : "center", T = v === "left" ? "flex-start" : v === "right" ? "flex-end" : "center", A = {
|
|
336
335
|
color: r || o.textColor,
|
|
337
336
|
fontSize: `${a}px`,
|
|
338
|
-
width: "100%",
|
|
339
337
|
justifyContent: T,
|
|
340
338
|
textAlign: v
|
|
341
339
|
};
|
|
340
|
+
return G.value || (A.width = "100%"), A;
|
|
342
341
|
}
|
|
343
|
-
function
|
|
342
|
+
function D(t) {
|
|
344
343
|
const o = s.value, e = Number(t == null ? void 0 : t.nameFontSize), a = Number.isFinite(e) && e > 0 ? e : o.nameSize;
|
|
345
344
|
return {
|
|
346
345
|
color: (typeof (t == null ? void 0 : t.nameTextColor) == "string" ? t.nameTextColor.trim() : "") || o.labelColor,
|
|
347
346
|
fontSize: `${a}px`
|
|
348
347
|
};
|
|
349
348
|
}
|
|
350
|
-
function
|
|
349
|
+
function B() {
|
|
351
350
|
const t = s.value.defaultBgIcon, o = typeof t == "string" ? t.trim() : "";
|
|
352
|
-
return o ?
|
|
351
|
+
return o ? tt(o) : "";
|
|
353
352
|
}
|
|
354
353
|
const I = (t) => {
|
|
355
354
|
var r, i, v, T;
|
|
356
|
-
if (!t) return { value:
|
|
355
|
+
if (!t) return { value: k, name: "--", unit: "" };
|
|
357
356
|
const o = (r = t.name) != null ? r : "", e = typeof t.unit == "string" ? t.unit.trim() : "";
|
|
358
|
-
return t.isText ? { value: (((i = t.flag) == null ? void 0 : i.find((
|
|
359
|
-
},
|
|
357
|
+
return t.isText ? { value: (((i = t.flag) == null ? void 0 : i.find((W) => String(W.code) == String(t.value))) || {}).text || k, name: o, unit: e } : { value: (T = (v = t.value) != null ? v : t.default) != null ? T : 0, name: o, unit: e };
|
|
358
|
+
}, V = n.conf;
|
|
360
359
|
return (t, o) => (g(), m("div", {
|
|
361
360
|
class: "mix-component",
|
|
362
361
|
style: u({ background: f(s).bgColor, borderRadius: f(s).radiusSize + "px" })
|
|
@@ -369,50 +368,50 @@ const at = { class: "value-main" }, lt = {
|
|
|
369
368
|
y("div", {
|
|
370
369
|
class: "mix-title",
|
|
371
370
|
style: u(h.value)
|
|
372
|
-
}, C(f(
|
|
371
|
+
}, C(f(V).caption || f(V).name), 5),
|
|
373
372
|
y("div", {
|
|
374
|
-
class:
|
|
373
|
+
class: L(["mix-body", { "mix-body--params-vertical": G.value }])
|
|
375
374
|
}, [
|
|
376
|
-
(g(!0), m(
|
|
375
|
+
(g(!0), m(Q, null, X(f(V).data, (e, a) => (g(), m("div", {
|
|
377
376
|
key: a,
|
|
378
377
|
class: "card-item",
|
|
379
|
-
style: u(
|
|
378
|
+
style: u(j(e))
|
|
380
379
|
}, [
|
|
381
380
|
y("div", {
|
|
382
381
|
class: "card-item-surface",
|
|
383
382
|
style: u({ background: f(s).bgColor })
|
|
384
383
|
}, null, 4),
|
|
385
|
-
|
|
384
|
+
E.value ? (g(), m("div", {
|
|
386
385
|
key: 0,
|
|
387
386
|
class: "card-item-top-gradient",
|
|
388
387
|
style: u(p.value)
|
|
389
388
|
}, null, 4)) : z("", !0),
|
|
390
389
|
y("div", {
|
|
391
|
-
class:
|
|
390
|
+
class: L(["card-item-inner", { "card-item-inner--row": G.value }])
|
|
392
391
|
}, [
|
|
393
392
|
y("div", {
|
|
394
393
|
class: "value",
|
|
395
|
-
style: u(
|
|
394
|
+
style: u(R(e))
|
|
396
395
|
}, [
|
|
397
|
-
y("span",
|
|
398
|
-
I(e).unit ? (g(), m("span",
|
|
396
|
+
y("span", lt, C(I(e).value), 1),
|
|
397
|
+
I(e).unit ? (g(), m("span", it, C(I(e).unit), 1)) : z("", !0)
|
|
399
398
|
], 4),
|
|
400
399
|
y("div", {
|
|
401
400
|
class: "name",
|
|
402
|
-
style: u(
|
|
401
|
+
style: u(D(e))
|
|
403
402
|
}, C(I(e).name), 5)
|
|
404
403
|
], 2)
|
|
405
404
|
], 4))), 128)),
|
|
406
|
-
f(s).showBgIcon &&
|
|
405
|
+
f(s).showBgIcon && B() ? (g(), m("div", {
|
|
407
406
|
key: 0,
|
|
408
407
|
class: "mix-body-bg-icon",
|
|
409
|
-
style: u(
|
|
410
|
-
}, C(
|
|
408
|
+
style: u(H.value)
|
|
409
|
+
}, C(B()), 5)) : z("", !0)
|
|
411
410
|
], 2),
|
|
412
|
-
|
|
411
|
+
Y(t.$slots, "default", {}, void 0, !0)
|
|
413
412
|
], 4));
|
|
414
413
|
}
|
|
415
|
-
})), xt = /* @__PURE__ */
|
|
414
|
+
})), xt = /* @__PURE__ */ et(mt, [["__scopeId", "data-v-3b75ca77"]]);
|
|
416
415
|
export {
|
|
417
416
|
xt as default
|
|
418
417
|
};
|