mixdashboards 1.0.76 → 1.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseComponent-BmhMoM4H.cjs → BaseComponent-B5ivgb3E.cjs} +1 -1
- package/dist/{BaseComponent-CQaDWNO0.js → BaseComponent-DtvXBQYf.js} +3 -3
- package/dist/{EChartComponentBase-D9EUh4BZ.cjs → EChartComponentBase-ChoVZ7wg.cjs} +1 -1
- package/dist/{EChartComponentBase-i76OGL3z.js → EChartComponentBase-c7NzErOu.js} +2 -2
- package/dist/{EmergencyPlanPanel-B9S3Ru5-.js → EmergencyPlanPanel-COfHeuTK.js} +1 -1
- package/dist/{EmergencyPlanPanel-BiAHvTfh.cjs → EmergencyPlanPanel-DG23L1EJ.cjs} +1 -1
- package/dist/{HistoryPlanDialog-CbbeFm-i.js → HistoryPlanDialog-CItsTCsk.js} +1 -1
- package/dist/{HistoryPlanDialog-BU4GayEm.cjs → HistoryPlanDialog-d5ocUKAB.cjs} +1 -1
- package/dist/{MonitoringMap-B6tXBdvK.js → MonitoringMap-CGdqpp4N.js} +2 -2
- package/dist/{MonitoringMap-FGDoA0fw.cjs → MonitoringMap-H5AOAU8m.cjs} +1 -1
- package/dist/{UniverSheet-D7y2pceH.cjs → UniverSheet-BAwHvLEU.cjs} +1 -1
- package/dist/{UniverSheet-D8sflrTb.js → UniverSheet-tSAkLkuy.js} +2 -2
- package/dist/{accelerationChart-bch4O3t-.js → accelerationChart-4RM-T97n.js} +2 -2
- package/dist/{accelerationChart-DTlwSA0N.cjs → accelerationChart-D69FGgF0.cjs} +1 -1
- package/dist/{actionItem-Cw67YwsR.js → actionItem-XXesGERk.js} +2 -2
- package/dist/{actionItem-cdsgUvaC.cjs → actionItem-nkkG4T8t.cjs} +1 -1
- package/dist/{alarmLevelChart-BynSRHG2.js → alarmLevelChart-Cg4-8uhy.js} +2 -2
- package/dist/{alarmLevelChart-BMjTLxB5.cjs → alarmLevelChart-DtzJLIO8.cjs} +1 -1
- package/dist/{alertTable-CiwuaydQ.js → alertTable-_7uxXdg1.js} +2 -2
- package/dist/{alertTable-3VhkUZSf.cjs → alertTable-cpTXAjVG.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-BLoecZkV.cjs → aliasObjectSelectorDemo-COnsSHH1.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-DfdRxb4I.js → aliasObjectSelectorDemo-bgchdBQ0.js} +1 -1
- package/dist/{annualRainfallChart-DKR-A_PT.cjs → annualRainfallChart-BRRuAOLJ.cjs} +1 -1
- package/dist/{annualRainfallChart-CHcr4-0D.js → annualRainfallChart-D5byp5kM.js} +2 -2
- package/dist/{aqi-Gu-pAovO.js → aqi-BkNZxokM.js} +2 -2
- package/dist/{aqi-D7VqP1QE.cjs → aqi-CbM96i-K.cjs} +1 -1
- package/dist/{aqiIndass-Bjj6n1aj.js → aqiIndass-CC_FnBlK.js} +2 -2
- package/dist/{aqiIndass-nfYUZ3UM.cjs → aqiIndass-UP1Ez_qA.cjs} +1 -1
- package/dist/{areaDeformCurve-fpGWmq05.cjs → areaDeformCurve-97gwWmiv.cjs} +1 -1
- package/dist/{areaDeformCurve-nwlcUBDv.js → areaDeformCurve-CoTcTIJx.js} +2 -2
- package/dist/{arrayCard-UoDqAGbN.cjs → arrayCard-CDs0w_2C.cjs} +1 -1
- package/dist/{arrayCard-TfcgLrHv.js → arrayCard-lwGyTUyK.js} +2 -2
- package/dist/{audio-DdUv9Ot-.cjs → audio-DcGRfoFl.cjs} +1 -1
- package/dist/{audio-BYgGYoEr.js → audio-DwzGVHhN.js} +2 -2
- package/dist/{bar-CkBXc7t1.cjs → bar-Bh4Zupfj.cjs} +1 -1
- package/dist/{bar-SfGiFl1r.js → bar-DA7TDioF.js} +2 -2
- package/dist/{bmp-BbtdzIrI.js → bmp-C-7PJc-e.js} +2 -2
- package/dist/{bmp-CY-Hb2x1.cjs → bmp-D7P6JPZ3.cjs} +1 -1
- package/dist/{box-CV41cJuX.js → box-CabcDxmT.js} +2 -2
- package/dist/{box-B4C_mirv.cjs → box-EScim_8s.cjs} +1 -1
- package/dist/{chartConfigPanel-D650rSn7.js → chartConfigPanel-BOTXJEgB.js} +1 -1
- package/dist/{chartConfigPanel-DBlqAbbH.cjs → chartConfigPanel-CGM3JLv0.cjs} +1 -1
- package/dist/{circleBar-DkV7xPBl.cjs → circleBar-C3LcD2GM.cjs} +1 -1
- package/dist/{circleBar-U3iXMQr5.js → circleBar-okrH5S9i.js} +2 -2
- package/dist/{clock-CjgMeOhp.cjs → clock-B-MpqirO.cjs} +1 -1
- package/dist/{clock-zKVUU8pu.js → clock-_0PzxcIr.js} +2 -2
- package/dist/{clt-BsIA-YPQ.js → clt-B7Ro2RZ9.js} +2 -2
- package/dist/{clt-DwI8i7zI.cjs → clt-CmMR6xrj.cjs} +1 -1
- package/dist/{cmc-BX9ichBB.cjs → cmc-CFz43gP5.cjs} +1 -1
- package/dist/{cmc-CgpHejR2.js → cmc-UjkMrdkf.js} +2 -2
- package/dist/{cmp-CTqtxzo4.cjs → cmp-B99dBC5D.cjs} +1 -1
- package/dist/{cmp-CS34lG7V.js → cmp-DAoGjmUK.js} +2 -2
- package/dist/{conclusionCard-wvtJmV_8.cjs → conclusionCard-BH6PfBmm.cjs} +1 -1
- package/dist/{conclusionCard-N6pA6Q9P.js → conclusionCard-DfGfQa2i.js} +2 -2
- package/dist/{controlList-Zz5ABe5b.js → controlList-Ch22lz5j.js} +2 -2
- package/dist/{controlList-BUAMdHA3.cjs → controlList-UzBZAUg8.cjs} +1 -1
- package/dist/{controlRecordList-CMR4y_Ml.cjs → controlRecordList-CjaRe3iR.cjs} +1 -1
- package/dist/{controlRecordList-Dx0zj7js.js → controlRecordList-DqVkxlxI.js} +2 -2
- package/dist/{controlRecordListAPP-bL9oqWzQ.js → controlRecordListAPP-B4Agwftc.js} +2 -2
- package/dist/{controlRecordListAPP-ZDCKmz_8.cjs → controlRecordListAPP-DO9oXKbz.cjs} +1 -1
- package/dist/{crd-DZPpD6XY.js → crd-9hr2CpXs.js} +2 -2
- package/dist/{crd-8tMwNlgx.cjs → crd-Bf8jZALT.cjs} +1 -1
- package/dist/{ctrBtn-eCu0UDtW.cjs → ctrBtn-DrNeLQd9.cjs} +1 -1
- package/dist/{ctrBtn-6Ql9ulTr.js → ctrBtn-Yfbw4Pt6.js} +3 -3
- package/dist/{ctrSet-BwFVH1Mk.js → ctrSet-BI4qrXOp.js} +3 -3
- package/dist/{ctrSet-pX-zVivo.cjs → ctrSet-Cw82MzYN.cjs} +1 -1
- package/dist/{ctrSwitch-b6hHf4QF.js → ctrSwitch-CbrB82jp.js} +3 -3
- package/dist/{ctrSwitch-D95SI-aJ.cjs → ctrSwitch-CyIBxuP0.cjs} +1 -1
- package/dist/{dataManagement-VucRLCK4.js → dataManagement-8jLHO5b6.js} +2 -2
- package/dist/{dataManagement-DubA1TV1.cjs → dataManagement-BANzNRgt.cjs} +1 -1
- package/dist/{dataReport-CALIw14D.js → dataReport-BTY2YPkp.js} +2 -2
- package/dist/{dataReport-CkF5J7X1.cjs → dataReport-C6rqooz1.cjs} +1 -1
- package/dist/{dataTable-C1rBH_p9.js → dataTable-CT7O3vOj.js} +1 -1
- package/dist/{dataTable-C2q_CX5D.cjs → dataTable-DK1bXW7L.cjs} +1 -1
- package/dist/{datetime-Cq8scz5Q.js → datetime-BfpmpRWw.js} +2 -2
- package/dist/{datetime-TBTeWqlf.cjs → datetime-Gc1JB409.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-Cm50wbjv.js → deepClusterSlipSurface-CuPVV8T2.js} +2 -2
- package/dist/{deepClusterSlipSurface-CFaxRVmM.cjs → deepClusterSlipSurface-Do0cuafE.cjs} +1 -1
- package/dist/{deepDataMatrix-DyStA98d.js → deepDataMatrix-B2h-jr0-.js} +2 -2
- package/dist/{deepDataMatrix-CAYSav3X.cjs → deepDataMatrix-eYmIiIMu.cjs} +1 -1
- package/dist/{deepDisplacement3D-B3Iju2KK.cjs → deepDisplacement3D-Cc8f_nFC.cjs} +1 -1
- package/dist/{deepDisplacement3D-Bat-Wc3i.js → deepDisplacement3D-DyF7L9GI.js} +2 -2
- package/dist/{deepDisplacementChart-CYMpNu_W.js → deepDisplacementChart-BUPlTFCA.js} +3 -3
- package/dist/{deepDisplacementChart-D5rHoC9r.js → deepDisplacementChart-BkgOiG2W.js} +2 -2
- package/dist/{deepDisplacementChart-CX9ALM89.cjs → deepDisplacementChart-DVscdSYa.cjs} +1 -1
- package/dist/{deepDisplacementChart-C-Tr4DdI.cjs → deepDisplacementChart-De935Ifi.cjs} +1 -1
- package/dist/{deepDisplacementView-DTSsODJQ.cjs → deepDisplacementView-C3qEJa9Q.cjs} +1 -1
- package/dist/{deepDisplacementView-DnjwQmEW.js → deepDisplacementView-C9P1cqRH.js} +1 -1
- package/dist/{deepNodeTemperatureChart-C9NRJ49Y.cjs → deepNodeTemperatureChart-DLzI-lAv.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-CLKg72UA.js → deepNodeTemperatureChart-DePoeTnV.js} +2 -2
- package/dist/{deepTangentAngleChart-C9aFSFrD.cjs → deepTangentAngleChart-ClBLpr_-.cjs} +1 -1
- package/dist/{deepTangentAngleChart-DklHYHhm.js → deepTangentAngleChart-D2SQkZEz.js} +2 -2
- package/dist/{deepTemperatureField-CcnVGgbf.js → deepTemperatureField-B_rWuVyI.js} +3 -3
- package/dist/{deepTemperatureField-CXBL4_LS.cjs → deepTemperatureField-CUGWy_vS.cjs} +1 -1
- package/dist/{deepTrendChart-OGW08BX-.cjs → deepTrendChart-BcrJBFqD.cjs} +1 -1
- package/dist/{deepTrendChart-De7ebpk4.js → deepTrendChart-C_e7Dgjz.js} +2 -2
- package/dist/{deviceOnlineStatus-DarcMtY4.cjs → deviceOnlineStatus-BZxCnz-5.cjs} +1 -1
- package/dist/{deviceOnlineStatus-_3Txb8Tg.js → deviceOnlineStatus-C0SqKqjc.js} +2 -2
- package/dist/{deviceStatus-CL6E-pQ0.js → deviceStatus-BPglOIKN.js} +2 -2
- package/dist/{deviceStatus-BiJw8rnz.cjs → deviceStatus-DClMreZ3.cjs} +1 -1
- package/dist/{displacementDataTable-tKtGe2xd.js → displacementDataTable-9WH9Y3-l.js} +2 -2
- package/dist/{displacementDataTable-DmAqr-JK.cjs → displacementDataTable-C5172BMT.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-DG2YdSqq.cjs → displacementTrajectoryChart-C-pchT8b.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-Dh6oPB0p.js → displacementTrajectoryChart-DWGKAbMq.js} +2 -2
- package/dist/{displacementTrendChart-CT140vXG.cjs → displacementTrendChart-B8Em-Apt.cjs} +1 -1
- package/dist/{displacementTrendChart-BHORe0qO.js → displacementTrendChart-D4keOUDg.js} +2 -2
- package/dist/{dxf-CjcHSJq-.js → dxf-BV56d_m8.js} +2 -2
- package/dist/{dxf-CVa4Vfm3.cjs → dxf-CRFblr-a.cjs} +1 -1
- package/dist/{dzc-DK16oTVj.cjs → dzc-9BLm4nwW.cjs} +1 -1
- package/dist/{dzc-DDXNSuie.js → dzc-FZBGaYTk.js} +2 -2
- package/dist/{emergencyPlan-Vim4E6h7.js → emergencyPlan-CbFUPUf9.js} +3 -3
- package/dist/{emergencyPlan-D0AMuD-3.cjs → emergencyPlan-D5YlhQNC.cjs} +1 -1
- package/dist/{evn-CdMN8gIC.js → evn-DMrhD8U9.js} +2 -2
- package/dist/{evn-D2mdSoFB.cjs → evn-ty-ACnv0.cjs} +1 -1
- package/dist/{evolutionChart-I8XVW05I.cjs → evolutionChart-C6E2yiqG.cjs} +1 -1
- package/dist/{evolutionChart-P0l6P0Bc.js → evolutionChart-Cg3jN_vy.js} +3 -3
- package/dist/{fileViewer-D7sAA8-W.cjs → fileViewer-BqlO8FED.cjs} +1 -1
- package/dist/{fileViewer-DvntGv0b.js → fileViewer-D3UlJjIK.js} +2 -2
- package/dist/{filterBar-8gex5oR-.js → filterBar-BWqpT6Ft.js} +2 -2
- package/dist/{filterBar-GSTji96g.cjs → filterBar-x-zvXO4x.cjs} +1 -1
- package/dist/{fireCombustionCurve-DrMmHf3N.cjs → fireCombustionCurve-BzvhUF4h.cjs} +1 -1
- package/dist/{fireCombustionCurve-B3jAhOft.js → fireCombustionCurve-CCsxFlpG.js} +3 -3
- package/dist/{fireFilterBar-Dy9DcHij.cjs → fireFilterBar-BtMlwSl0.cjs} +1 -1
- package/dist/{fireFilterBar-CH6iK0Xg.js → fireFilterBar-KU0l3oMk.js} +2 -2
- package/dist/{fireHistoryTable-CHxHqPs0.js → fireHistoryTable-BqxPj5bh.js} +2 -2
- package/dist/{fireHistoryTable-n6L3juWp.cjs → fireHistoryTable-GYC28vg2.cjs} +1 -1
- package/dist/{gag-BsO4kmp1.js → gag-CEsV2Rsa.js} +2 -2
- package/dist/{gag-BzjuwBvY.cjs → gag-DnaEi2qS.cjs} +1 -1
- package/dist/{gasStationList-QwqTDEAG.cjs → gasStationList-CSmyS9tt.cjs} +1 -1
- package/dist/{gasStationList-7JzUcISs.js → gasStationList-enI_qbTZ.js} +2 -2
- package/dist/{geo3dViewer-Cf-jHpvF.cjs → geo3dViewer-Bi2I8qrS.cjs} +1 -1
- package/dist/{geo3dViewer-doEpUC_J.js → geo3dViewer-D3ZEH_sW.js} +3 -3
- package/dist/{glbModel-C6L--3dO.cjs → glbModel-BcrfDRGx.cjs} +1 -1
- package/dist/{glbModel-BgFIj_es.js → glbModel-Dz32VGsg.js} +2 -2
- package/dist/{globalObjectSelector-P_irB0rv.cjs → globalObjectSelector-CJrFL8ag.cjs} +1 -1
- package/dist/{globalObjectSelector-CdfiXRjg.js → globalObjectSelector-DPm_eXg_.js} +1 -1
- package/dist/{gnssFilterBar-CIwyv2yc.cjs → gnssFilterBar-DzHsXBPj.cjs} +1 -1
- package/dist/{gnssFilterBar-DPNshMIx.js → gnssFilterBar-klba1QZm.js} +2 -2
- package/dist/{gnssHistoryTable-j5FL6oYs.cjs → gnssHistoryTable-BmWSzo4U.cjs} +1 -1
- package/dist/{gnssHistoryTable-C7x4-Tpp.js → gnssHistoryTable-Cp3pIekL.js} +2 -2
- package/dist/{gnssMapView-BWcS4hqj.js → gnssMapView-BV9rsiDD.js} +4 -4
- package/dist/{gnssMapView-_VaJWBcE.cjs → gnssMapView-BaZlzP_f.cjs} +2 -2
- package/dist/{gnssSectionProfile-hpyiGI-6.js → gnssSectionProfile-CArri0j5.js} +2 -2
- package/dist/{gnssSectionProfile-DGbTO7lV.cjs → gnssSectionProfile-D02MfJcd.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-rL9oG1ly.js → gnssTimeSeriesChart-C3VtICJV.js} +2 -2
- package/dist/{gnssTimeSeriesChart-CNT6xaNs.cjs → gnssTimeSeriesChart-fZYtdBrL.cjs} +1 -1
- package/dist/{gnssXYTrajectory-B1LZAepw.js → gnssXYTrajectory-ClbZljGY.js} +2 -2
- package/dist/{gnssXYTrajectory-CwAjhPRc.cjs → gnssXYTrajectory-glpzGLHH.cjs} +1 -1
- package/dist/{grd-rJXqEimt.cjs → grd-DAPxN3Yv.cjs} +1 -1
- package/dist/{grd-BLab9IY0.js → grd-DFbgrJiz.js} +2 -2
- package/dist/{grdIndass-niY4UOwz.cjs → grdIndass-CRYPP8ap.cjs} +1 -1
- package/dist/{grdIndass-gGrZ7gRV.js → grdIndass-CdReMrRF.js} +2 -2
- package/dist/{grg-Dnro7bLg.js → grg-BuxeFXkW.js} +2 -2
- package/dist/{grg-C1L5yeyY.cjs → grg-DBj_IXUS.cjs} +1 -1
- package/dist/{gridview-DxUsv2ny.cjs → gridview-DMqISEIm.cjs} +1 -1
- package/dist/{gridview-BhjWlD0J.js → gridview-ieOKw-zp.js} +2 -2
- package/dist/{groundwaterFilterBar-bNhTkX1C.js → groundwaterFilterBar-CMrXUaJD.js} +2 -2
- package/dist/{groundwaterFilterBar-C-2e7S04.cjs → groundwaterFilterBar-DTjCop4R.cjs} +1 -1
- package/dist/{groundwaterProfileChart-BxKGPuOe.cjs → groundwaterProfileChart-CHFMvxM0.cjs} +2 -2
- package/dist/{groundwaterProfileChart-dhzmwfwz.js → groundwaterProfileChart-wwZ31Nxz.js} +3 -3
- package/dist/{groundwaterTimeCurve-BtzP6icm.js → groundwaterTimeCurve-CL7EWs-M.js} +3 -3
- package/dist/{groundwaterTimeCurve-CTQPlTUr.cjs → groundwaterTimeCurve-DzTolxJ6.cjs} +1 -1
- package/dist/{groupCard-D00ElZoy.js → groupCard-3iWG0sN3.js} +2 -2
- package/dist/{groupCard-D4gdaVqR.cjs → groupCard-CdPis-TL.cjs} +1 -1
- package/dist/{headerBar-DEHj8fJr.js → headerBar-BVa2ewi0.js} +2 -2
- package/dist/{headerBar-MFw1W0qa.cjs → headerBar-DVP5Ob99.cjs} +1 -1
- package/dist/{history-D1R2RAZQ.cjs → history-CVMvhgUJ.cjs} +1 -1
- package/dist/{history-BRkb914v.js → history-CZCtaT0D.js} +1 -1
- package/dist/{index-BZpYmpDy.js → index-BueGUjcH.js} +3291 -3107
- package/dist/{index-77aUdspY.cjs → index-DYr57ceS.cjs} +13 -13
- package/dist/{insarDeformChart-5EVWIkpL.cjs → insarDeformChart-CVrCLtcb.cjs} +1 -1
- package/dist/{insarDeformChart-pbOnnoN-.js → insarDeformChart-vPREnzjC.js} +2 -2
- package/dist/{insarImageViewer-DQJBN4YM.cjs → insarImageViewer-C0D9bkS3.cjs} +1 -1
- package/dist/{insarImageViewer-D3bbQA6g.js → insarImageViewer-DsNoAsNI.js} +2 -2
- package/dist/{kds-D5seJB3L.cjs → kds-C6tBi9fO.cjs} +1 -1
- package/dist/{kds-gTJOwHbM.js → kds-DUdtTddq.js} +2 -2
- package/dist/{kpiCard-Cx6VNK6L.js → kpiCard-A_7vB_FS.js} +2 -2
- package/dist/{kpiCard-Bz-fg6sL.cjs → kpiCard-Dfn9Utnc.cjs} +1 -1
- package/dist/{landslideMap-D7_QpwmM.cjs → landslideMap-CjsBed2W.cjs} +1 -1
- package/dist/{landslideMap-5erIcZo7.js → landslideMap-DEYHn_Z8.js} +3 -3
- package/dist/{landslideWarning-C3FZqrxT.cjs → landslideWarning-9q-8-Yaf.cjs} +1 -1
- package/dist/{landslideWarning-CzaddgWf.js → landslideWarning-C2SVP_SW.js} +5 -5
- package/dist/{layerTabs-DqbOykS2.js → layerTabs-CkgVEQIu.js} +2 -2
- package/dist/{layerTabs-Dc1Xb11W.cjs → layerTabs-DpIpshzv.cjs} +1 -1
- package/dist/{leaflet-src-BY2SMh9y.js → leaflet-src-BV47Q4HI.js} +1 -1
- package/dist/{leaflet-src-Brb8KUL5.cjs → leaflet-src-DzRw1bMt.cjs} +1 -1
- package/dist/{lerc-DGuyYCKG.cjs → lerc-BxPJ0Ezc.cjs} +1 -1
- package/dist/{lerc-Chm_GVte.js → lerc-COLax3Js.js} +2 -2
- package/dist/{lin-8x2j8aGa.cjs → lin-0o_p8mvp.cjs} +1 -1
- package/dist/{lin-tqtSA5ci.js → lin-BgNnturC.js} +2 -2
- package/dist/{linIndass-Dxo_bzrZ.cjs → linIndass-DCnHejlJ.cjs} +1 -1
- package/dist/{linIndass-DHFymSVI.js → linIndass-DqIczVZr.js} +2 -2
- package/dist/{lst-BV6EbDPs.cjs → lst-DVSrQxnF.cjs} +1 -1
- package/dist/{lst-BejIuO0f.js → lst-pzZFRLE7.js} +2 -2
- package/dist/{manualEntry-Bt4cs6kn.cjs → manualEntry-COjFNu6s.cjs} +1 -1
- package/dist/{manualEntry-DObI0OAq.js → manualEntry-CU7C50JU.js} +2 -2
- package/dist/{mapBackground-Cuym5Dqr.js → mapBackground-Bi8yjPRE.js} +3 -3
- package/dist/{mapBackground-oVOBK3zr.cjs → mapBackground-ssUjWKfZ.cjs} +1 -1
- package/dist/{mappingList-Dzq0zMfs.js → mappingList-BRndtYHP.js} +2 -2
- package/dist/{mappingList-BEWAqLd4.cjs → mappingList-Cryu-iab.cjs} +1 -1
- package/dist/{markdownViewer-V5b1xhPh.cjs → markdownViewer-Dn2PQ9LA.cjs} +1 -1
- package/dist/{markdownViewer-Bz50jkb6.js → markdownViewer-i0a6mIv1.js} +2 -2
- package/dist/{mix-control-modal-DzVLdO3S.js → mix-control-modal-CHglSLUZ.js} +1 -1
- package/dist/{mix-control-modal-I6DqPm04.cjs → mix-control-modal-CicQq7ai.cjs} +1 -1
- package/dist/{mixGrid-_ur8VKLD.cjs → mixGrid-CHyP3WlY.cjs} +1 -1
- package/dist/{mixGrid-tVSdKPms.js → mixGrid-CJfUwclp.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mixiotObjectListApi-D5vNNWgT.js → mixiotObjectListApi-BzhGWfpb.js} +1 -1
- package/dist/{mixiotObjectListApi-BUQ-RZ3L.cjs → mixiotObjectListApi-D8aEu-tS.cjs} +1 -1
- package/dist/{mjpegCamera-DnAPpFJU.js → mjpegCamera-BltugLlx.js} +2 -2
- package/dist/{mjpegCamera-CjWe8BEK.cjs → mjpegCamera-DNETbJj6.cjs} +1 -1
- package/dist/{monitorAlert-qmVSQ1lc.cjs → monitorAlert-B0e6NlDC.cjs} +1 -1
- package/dist/{monitorAlert-B-fTYPn6.js → monitorAlert-BZt1nTav.js} +2 -2
- package/dist/{monitorData-YhGSUq3H.cjs → monitorData-BN6f9iMG.cjs} +1 -1
- package/dist/{monitorData-Dopc660L.js → monitorData-Bj-yPQyW.js} +2 -2
- package/dist/{monitorSpeedChart-Brj_YHsO.cjs → monitorSpeedChart-B3VWNas7.cjs} +1 -1
- package/dist/{monitorSpeedChart-Dsvr_QPB.js → monitorSpeedChart-DPUyFmKD.js} +1 -1
- package/dist/{mxa-BzdI7BLB.cjs → mxa-BQ_gyPOg.cjs} +1 -1
- package/dist/{mxa-D4WkyBYZ.js → mxa-pTWhgscr.js} +2 -2
- package/dist/{myValue-DYtBtOJ2.js → myValue-Dyyv7mp6.js} +2 -2
- package/dist/{myValue-C0tq-asC.cjs → myValue-K9yzWHVv.cjs} +1 -1
- package/dist/{myValueList-BJctRTNd.cjs → myValueList-BF88xTbG.cjs} +1 -1
- package/dist/{myValueList-Ddpn1S68.js → myValueList-BrL41hIy.js} +2 -2
- package/dist/{objectList-Csf0hVwo.cjs → objectList-D1wulpL0.cjs} +1 -1
- package/dist/{objectList-G4wXFDwe.js → objectList-DqUaLWIN.js} +3 -3
- package/dist/{objectListAPP-BrmUj4At.js → objectListAPP-68pa8xQ3.js} +3 -3
- package/dist/{objectListAPP-UZN4iuTn.cjs → objectListAPP-BJI-LZ9h.cjs} +1 -1
- package/dist/{photo-BEPeK7U8.js → photo-CqtG1ZDn.js} +2 -2
- package/dist/{photo-BYH_qg5O.cjs → photo-D2G-MiYd.cjs} +1 -1
- package/dist/{pie-B57zDxJV.cjs → pie-DGQowd1d.cjs} +1 -1
- package/dist/{pie-CEVKe1lL.js → pie-rodX5eBx.js} +2 -2
- package/dist/{placeholder-Bwv3VyEg.js → placeholder-C2uw4-Bv.js} +1 -1
- package/dist/{placeholder-BezBEQGo.cjs → placeholder-yXuUcCld.cjs} +1 -1
- package/dist/{pressBtn-1LCNz2gE.js → pressBtn-CkKRECXu.js} +3 -3
- package/dist/{pressBtn-CJZTyY8I.cjs → pressBtn-kIjSTK2P.cjs} +1 -1
- package/dist/{processTable-HtDeg1by.cjs → processTable-DVvTpite.cjs} +1 -1
- package/dist/{processTable-CHDazqah.js → processTable-pFBZ3sr0.js} +2 -2
- package/dist/{progressBar-BP4SmPZK.cjs → progressBar-CE8Tat_F.cjs} +1 -1
- package/dist/{progressBar-C3NcWUrS.js → progressBar-CJXjo8T8.js} +2 -2
- package/dist/{progressCircle-CDqK1iFt.cjs → progressCircle-Cqjxopp0.cjs} +1 -1
- package/dist/{progressCircle-Bo9-Qva_.js → progressCircle-jhxHU2LM.js} +2 -2
- package/dist/{qrcode-VmYwvClG.js → qrcode-COU9b8jO.js} +2 -2
- package/dist/{qrcode-qD6tOm4F.cjs → qrcode-ICKNQzlF.cjs} +1 -1
- package/dist/raceBar-CpfkbT_l.cjs +2 -0
- package/dist/{raceBar-DR2-luKW.js → raceBar-DPZn5eQr.js} +109 -101
- package/dist/{rad-1Jy1KDzt.js → rad-DYSDihyX.js} +2 -2
- package/dist/{rad-D7-YZJNO.cjs → rad-MVqAl4DI.cjs} +1 -1
- package/dist/{radarMapViewer-KPhNE5XX.cjs → radarMapViewer-DSEst_zr.cjs} +1 -1
- package/dist/{radarMapViewer-ByQXe0Mu.js → radarMapViewer-DT-cLDqj.js} +2 -2
- package/dist/{rainfallFilterBar-C1obotPf.js → rainfallFilterBar-BH4y-ZiG.js} +2 -2
- package/dist/{rainfallFilterBar-CVQpQp82.cjs → rainfallFilterBar-DBckf4TU.cjs} +1 -1
- package/dist/{rainfallTimeCurve-DU2tt-Ls.cjs → rainfallTimeCurve-BLPYjZne.cjs} +1 -1
- package/dist/{rainfallTimeCurve-B2rEx3T_.js → rainfallTimeCurve-CEROEYQa.js} +3 -3
- package/dist/{rangeLin-COsJkCky.cjs → rangeLin-CAWXiFqA.cjs} +1 -1
- package/dist/{rangeLin-CdfUCFQr.js → rangeLin-D5m33pm3.js} +2 -2
- package/dist/{realtimeEvolutionMap-B7GT8MOq.cjs → realtimeEvolutionMap-7YXQpGQV.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-aR63xPW_.js → realtimeEvolutionMap-B_WyUQ7o.js} +2 -2
- package/dist/{regionBar-DB-secNe.js → regionBar-BklMVV2U.js} +2 -2
- package/dist/{regionBar-BYF7IaGA.cjs → regionBar-CRE0mrBK.cjs} +1 -1
- package/dist/{request-CBsG4ipL.js → request-Bu96_fCa.js} +1 -1
- package/dist/{request-CvdHjG34.cjs → request-C_dGr-al.cjs} +1 -1
- package/dist/{retainer1-CMzTlM5Z.js → retainer1-C9XjKFwo.js} +3 -3
- package/dist/{retainer1-1CFk4InO.cjs → retainer1-CSONW25j.cjs} +1 -1
- package/dist/{retainer2-DW4ewYX7.js → retainer2-Nohg83dY.js} +3 -3
- package/dist/{retainer2-DliOH7it.cjs → retainer2-pxQIRn6B.cjs} +1 -1
- package/dist/{retainerRecordList-DV7Tx39d.cjs → retainerRecordList-B7mJ2EWt.cjs} +1 -1
- package/dist/{retainerRecordList-Bcm6leuD.js → retainerRecordList-D7ZTrf1N.js} +2 -2
- package/dist/{retainerRecordListAPP-BDRwp8T3.js → retainerRecordListAPP-C5v2ahXJ.js} +2 -2
- package/dist/{retainerRecordListAPP-CJ-u0Tj2.cjs → retainerRecordListAPP-D-YaMhTT.cjs} +1 -1
- package/dist/{ringTopN-rd2UwH9f.cjs → ringTopN-CxZDBUkx.cjs} +1 -1
- package/dist/{ringTopN-Duq0pzm_.js → ringTopN-n0TONMcf.js} +2 -2
- package/dist/{riskRegionTable-CbPB8mlY.cjs → riskRegionTable-Byb0Z693.cjs} +1 -1
- package/dist/{riskRegionTable-BE_ggcEV.js → riskRegionTable-CBddIShe.js} +2 -2
- package/dist/{sankey-BqBn6_rx.cjs → sankey-BlIAPski.cjs} +1 -1
- package/dist/{sankey-CnKm9PZe.js → sankey-D6XWVSSp.js} +2 -2
- package/dist/{scd-BaBLoem8.js → scd-B-DnzdLf.js} +2 -2
- package/dist/{scd-BgJ5P7co.cjs → scd-CW_VLAdy.cjs} +1 -1
- package/dist/{sideMenu-CUal1UQY.js → sideMenu-B4NRCYfC.js} +2 -2
- package/dist/{sideMenu-BgiQL2P1.cjs → sideMenu-DCz3bw5f.cjs} +1 -1
- package/dist/{slopeStability-Y2tDzJeh.cjs → slopeStability-C-vWRW5q.cjs} +1 -1
- package/dist/{slopeStability-B9YbQLCE.js → slopeStability-D5OmQDgi.js} +2 -2
- package/dist/{speedCurve-Kll2RRJ8.cjs → speedCurve-D6uG-gFp.cjs} +1 -1
- package/dist/{speedCurve-DERBMtE1.js → speedCurve-tvLBjNoJ.js} +2 -2
- package/dist/{stressFilterBar-BGI4gVfE.cjs → stressFilterBar-BQYqGIRB.cjs} +1 -1
- package/dist/{stressFilterBar-CHRWFnpP.js → stressFilterBar-aj-X6HC9.js} +2 -2
- package/dist/{stressTimeCurve-DE5KiXEt.cjs → stressTimeCurve-B0Gplbam.cjs} +1 -1
- package/dist/{stressTimeCurve-hrlqSYS3.js → stressTimeCurve-DC8cKQ52.js} +3 -3
- package/dist/{swiper-CnGllhBQ.cjs → swiper-CDdx8LXl.cjs} +1 -1
- package/dist/{swiper-DNHC412s.js → swiper-yrpsF9po.js} +2 -2
- package/dist/{terminalConfigList-C45EANO4.cjs → terminalConfigList-NmdMNFkS.cjs} +1 -1
- package/dist/{terminalConfigList-BlHAsyCm.js → terminalConfigList-VU0kGVKY.js} +2 -2
- package/dist/{terminalList-UGjkhyf4.js → terminalList-BAYA-Ac0.js} +2 -2
- package/dist/{terminalList-CNI3_FGb.cjs → terminalList-BsHqVc8x.cjs} +1 -1
- package/dist/{terminalListAPP-6fPXF-yJ.cjs → terminalListAPP-CsFu8juA.cjs} +1 -1
- package/dist/{terminalListAPP-CIJZMdxI.js → terminalListAPP-o2MxJO3g.js} +2 -2
- package/dist/{textbox-yNPnOaan.cjs → textbox-5BUkzLTc.cjs} +1 -1
- package/dist/{textbox-BD_LQ0EN.js → textbox-B4Mo8FWS.js} +2 -2
- package/dist/{timeQueryBar-B-uPtN25.js → timeQueryBar-B0LIBA90.js} +1 -1
- package/dist/{timeQueryBar-3qiV0IV9.cjs → timeQueryBar-G4hUPdC2.cjs} +1 -1
- package/dist/{timeSeries-DdQI4oZU.js → timeSeries-Ch4UV0P1.js} +3 -3
- package/dist/{timeSeries-BTUuojvj.cjs → timeSeries-DC_CbU3l.cjs} +1 -1
- package/dist/{timeSeriesCurve-TGXshTzl.js → timeSeriesCurve-BF10Q_7c.js} +3 -3
- package/dist/{timeSeriesCurve-Cj_FbK4x.cjs → timeSeriesCurve-CJSHo8qO.cjs} +1 -1
- package/dist/{toggleBtn-BMxqm5WG.js → toggleBtn-BhILbiNf.js} +2 -2
- package/dist/{toggleBtn-BXcQfnTB.cjs → toggleBtn-DQ2sHyaB.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-CqoKO0hL.cjs → trajectoryConfigPanel-BgSmlQkD.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-uRLWdXUb.js → trajectoryConfigPanel-BlqriMc7.js} +1 -1
- package/dist/{trajectoryScatter-DPE4cC8N.js → trajectoryScatter-BL2aiBf-.js} +2 -2
- package/dist/{trajectoryScatter-Dph8PSdN.cjs → trajectoryScatter-CeX4LQpn.cjs} +1 -1
- package/dist/{universalConfigPanel-CI1CuBmr.js → universalConfigPanel-CLKhwJP4.js} +1 -1
- package/dist/{universalConfigPanel-Db-pC67o.cjs → universalConfigPanel-NMan3ddE.cjs} +1 -1
- package/dist/{universalTable-DMrgtBrw.js → universalTable-CEmD-HRB.js} +2 -2
- package/dist/{universalTable-dQObEQog.cjs → universalTable-thYFp4vt.cjs} +1 -1
- package/dist/{video-DbsKQhVD.cjs → video-8idiBjxG.cjs} +1 -1
- package/dist/{video-DEhLie80.js → video-t1nUpAcT.js} +2 -2
- package/dist/{videoMonitor-DLBtivXO.cjs → videoMonitor-BEeCMVJf.cjs} +1 -1
- package/dist/{videoMonitor-BS6_LYUb.js → videoMonitor-PM3-BUjQ.js} +2 -2
- package/dist/{vlu-DaSjPY3I.js → vlu-CE181id-.js} +2 -2
- package/dist/{vlu-DXk_wQf-.cjs → vlu-o3-SObwR.cjs} +1 -1
- package/dist/{warningOverview-CKCEs_Jj.js → warningOverview-CKcMNgw-.js} +3 -3
- package/dist/{warningOverview-DAUlXzr0.cjs → warningOverview-CbJfW5ek.cjs} +1 -1
- package/dist/{weather-XUj6pFwM.js → weather-D3LQY9qO.js} +2 -2
- package/dist/{weather-BAI0IWNH.cjs → weather-a0CGhe9q.cjs} +1 -1
- package/dist/{windLin-C9dsCT1w.cjs → windLin-Cg58bRj3.cjs} +1 -1
- package/dist/{windLin-Bt4q2eUT.js → windLin-D7qqnbNz.js} +2 -2
- package/package.json +1 -1
- package/dist/raceBar-uAs91hyk.cjs +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ve=Object.defineProperty,Ce=Object.defineProperties;var xe=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var Z=(f,d,p)=>d in f?ve(f,d,{enumerable:!0,configurable:!0,writable:!0,value:p}):f[d]=p,z=(f,d)=>{for(var p in d||(d={}))Ne.call(d,p)&&Z(f,p,d[p]);if(Y)for(var p of Y(d))_e.call(d,p)&&Z(f,p,d[p]);return f},K=(f,d)=>Ce(f,xe(d));var _=(f,d,p)=>new Promise((q,V)=>{var P=y=>{try{T(p.next(y))}catch(A){V(A)}},$=y=>{try{T(p.throw(y))}catch(A){V(A)}},T=y=>y.done?q(y.value):Promise.resolve(y.value).then(P,$);T((p=p.apply(f,d)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),ke=require("./useTableBodyHeight-pf87uGjw.cjs"),Be=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Se=require("./BaseComponent-BmhMoM4H.cjs"),k=require("./index-77aUdspY.cjs"),Ee=require("./titleStyle-NSnz6cUg.cjs"),u=require("element-plus"),Te=require("@element-plus/icons-vue"),Ae=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),ee=require("./ele-lst-icon-CrxnHZ-A.cjs"),De={class:"mix-body"},Ue={class:"toolbar"},Oe={class:"pagination"},ze={class:"view-body"},qe={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"终端配置列表",NAME_EN:"TerminalConfigList",ORDER:6,PLATFORM:["pc","screen"]},Me={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{key:"uid",label:"终端配置编号",width:140,visible:!0},{key:"alias",label:"终端配置别名",width:120,visible:!0},{key:"name",label:"终端配置名称",width:140,visible:!0},{key:"lua_version",label:"LUA版本号",width:110,visible:!0},{key:"tag",label:"标签",width:120,visible:!0},{key:"description",label:"描述",minWidth:140,visible:!0},{key:"last_modified",label:"最后修改时间",width:170,visible:!0},{key:"created",label:"创建时间",width:170,visible:!0}]},te=[{name:"终端配置名称",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showBatchUpgradeBtn:!0,showDownloadBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0,uid:"终端配置编号",uid_visible:!0,alias:"终端配置别名",alias_visible:!0,name_visible:!0,lua_version:"LUA版本号",lua_version_visible:!0,tag:"标签",tag_visible:!0,description:"描述",description_visible:!0,last_modified:"最后修改时间",last_modified_visible:!0,created:"创建时间",created_visible:!0}],Ie=[{key:"showAddBtn",label:"添加",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组"},{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showBatchUpgradeBtn",label:"批量升级",type:"checkbox",group:"操作组"},{key:"showDownloadBtn",label:"下载",type:"checkbox",group:"操作组"},{key:"showArchiveBtn",label:"资料备档",type:"checkbox",group:"操作组"},{key:"showDeleteBtn",label:"删除",type:"checkbox",group:"操作组"},{key:"name",label:"参数名称"},{key:"uid",label:"终端配置编号",checkable:!0,checkboxKey:"uid_visible"},{key:"alias",label:"终端配置别名",checkable:!0,checkboxKey:"alias_visible"},{key:"name",label:"终端配置名称",checkable:!0,checkboxKey:"name_visible"},{key:"lua_version",label:"LUA版本号",checkable:!0,checkboxKey:"lua_version_visible"},{key:"tag",label:"标签",checkable:!0,checkboxKey:"tag_visible"},{key:"description",label:"描述",checkable:!0,checkboxKey:"description_visible"},{key:"last_modified",label:"最后修改时间",checkable:!0,checkboxKey:"last_modified_visible"},{key:"created",label:"创建时间",checkable:!0,checkboxKey:"created_visible"}],Le=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Fe={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"name",label:"setting.gridFields.name"},{value:"uid",label:"setting.gridFields.uid"},{value:"alias",label:"setting.gridFields.objectAlias"},{value:"tag",label:"setting.gridFields.tag"}]},Pe={DEFAULT:qe,OPTIONS:Me,DATA:te,PARAMS:Ie,SOURCE:Le,COMMON:Fe},$e=e.defineComponent(K(z({},Pe),{__name:"terminalConfigList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(f){const d=f;class p extends Se.BaseComponent{getDataBool(t,o){var m,b;const n=(b=(m=this.props.conf)==null?void 0:m.data)==null?void 0:b[0];return n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0?!!n[t]:this.getOptionValue(t,o)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showAddBtn:this.getDataBool("showAddBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showBatchUpgradeBtn:this.getDataBool("showBatchUpgradeBtn",!0),showDownloadBtn:this.getDataBool("showDownloadBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(te));else{const o=this.props.conf.data[0],n={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showBatchUpgradeBtn:!0,showDownloadBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[m,b]of Object.entries(n))o[m]===void 0&&(o[m]=b)}}}const q=new p(d,"terminalConfigList");q.setupLifecycle();const V=q.getStyle(),{mixiotPanelClass:P,mixiotPanelRootStyle:$}=Be.useMixiotPanelSurface(V),{tableWrapRef:T,tableBodyHeight:y}=ke.useTableBodyHeight(),A=e.computed(()=>Ee.generateTitleStyle(d.conf.options)),le=e.computed(()=>{var o,n,m,b;const i=((n=(o=d.conf)==null?void 0:o.options)==null?void 0:n.columns)||[],t=((b=(m=d.conf)==null?void 0:m.data)==null?void 0:b[0])||{};return(Array.isArray(i)?i:[]).map(s=>{const C=t[s.key],E=`${s.key}_visible`,B=t[E];return{prop:s.key,label:C!==void 0&&C!==""?String(C):s.label,width:s.width,minWidth:s.minWidth,visible:B!==void 0?!!B:s.visible!==!1}})}),h=e.reactive({current:1,pageSize:10,total:0}),M=e.ref(""),R=e.ref("name"),I=e.ref([]),j=e.ref(!1);function ae(){const i=[],t=M.value.trim();return t&&i.push([R.value,"like",`%${t}%`]),Ae.appendCommonDesignerWhereAnd(d.conf.common,i),{page_index:h.current,page_size:h.pageSize,where_and:JSON.stringify(i)}}function v(){return _(this,null,function*(){var i;j.value=!0;try{const t=yield k.api.post("terminal_config_list",ae(),!0),o=(i=t==null?void 0:t.result)!=null?i:t;I.value=Array.isArray(o==null?void 0:o.data)?[...o.data]:[];const n=o==null?void 0:o.total_records;h.total=typeof n=="number"?n:I.value.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[terminalConfigList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),I.value=[],h.total=0}finally{j.value=!1}})}const ie=e.computed(()=>I.value);function W(i){if(i==null||i==="")return"";if(Array.isArray(i))return i.join(", ");if(typeof i=="string")try{const t=JSON.parse(i);return Array.isArray(t)?t.join(", "):i}catch(t){return i}return String(i)}function oe(i,t){if(t==="tag")return W(i.tag);const o=i[t];return o==null?"":String(o)}function H(){h.current=1,v()}function ne(){M.value="",h.current=1,v()}function re(){h.current=1,v()}function se(){v()}const D=e.ref(!1),U=e.ref(!1),N=e.ref(!1),a=e.reactive({id:0,uid:"",name:"",alias:"",tagInput:"",description:"",terminal_script:"",config_script:"",addition:"[]",reference:"",hardware:"",is_available:1});function de(){const i=a.tagInput.trim();return i?i.split(",").map(t=>t.trim()).filter(Boolean):[]}function ue(i){if(i==null){a.tagInput="";return}if(Array.isArray(i)){a.tagInput=i.join(", ");return}if(typeof i=="string")try{const t=JSON.parse(i);a.tagInput=Array.isArray(t)?t.join(", "):i}catch(t){a.tagInput=i}}function L(){a.id=0,a.uid="",a.name="",a.alias="",a.tagInput="",a.description="",a.terminal_script="",a.config_script="",a.addition="[]",a.reference="",a.hardware="",a.is_available=1}function ce(){var t;const i=((t=a.addition)==null?void 0:t.trim())||"[]";try{return JSON.parse(i)}catch(o){throw new Error("扩展信息需为合法 JSON")}}function Q(){const i=ce();return{id:a.id,uid:a.uid.trim(),name:a.name.trim(),alias:a.alias.trim(),description:a.description,tag:de(),terminal_script:a.terminal_script,config_script:a.config_script,addition:i,reference:a.reference,hardware:a.hardware,is_available:a.is_available}}function pe(){L(),a.addition="[]",D.value=!0}function me(i){return _(this,null,function*(){var t,o,n,m,b,s,C,E,B,c,O;L(),U.value=!0,N.value=!0;try{const x=yield k.api.post("terminal_config_item",{uid:i.uid},!0),r=(t=x==null?void 0:x.result)!=null?t:x;if(r&&typeof r=="object"){if(a.id=Number(r.id)||0,a.uid=String((n=(o=r.uid)!=null?o:i.uid)!=null?n:""),a.name=String((m=r.name)!=null?m:""),a.alias=String((b=r.alias)!=null?b:""),ue(r.tag),a.description=String((s=r.description)!=null?s:""),a.terminal_script=String((C=r.terminal_script)!=null?C:""),a.config_script=String((E=r.config_script)!=null?E:""),r.addition!==void 0&&r.addition!==null)if(typeof r.addition=="string")try{a.addition=JSON.stringify(JSON.parse(r.addition),null,2)}catch(G){a.addition=String(r.addition)}else a.addition=JSON.stringify(r.addition,null,2);else a.addition="[]";a.reference=String((B=r.reference)!=null?B:""),a.hardware=String((c=r.hardware)!=null?c:""),a.is_available=r.is_available!==void 0?Number(r.is_available):1}}catch(x){a.uid=String(i.uid),a.name=String((O=i.name)!=null?O:""),u.ElMessage.warning("拉取配置详情失败,已使用列表行数据")}finally{N.value=!1}})}function fe(){return _(this,null,function*(){var t;if(!((t=a.name)!=null&&t.trim())){u.ElMessage.warning("请填写配置名称");return}let i;try{i=K(z({},Q()),{id:0})}catch(o){u.ElMessage.warning((o==null?void 0:o.message)||"扩展信息格式错误");return}N.value=!0;try{yield k.api.post("terminal_config_create",i,!0),u.ElMessage.success("添加成功"),D.value=!1,yield v()}catch(o){u.ElMessage.error("添加失败")}finally{N.value=!1}})}function ge(){return _(this,null,function*(){var t;if(!((t=a.name)!=null&&t.trim())){u.ElMessage.warning("请填写配置名称");return}let i;try{i=Q()}catch(o){u.ElMessage.warning((o==null?void 0:o.message)||"扩展信息格式错误");return}N.value=!0;try{yield k.api.post("terminal_config_update",i,!0),u.ElMessage.success("保存成功"),U.value=!1,yield v()}catch(o){u.ElMessage.error("保存失败")}finally{N.value=!1}})}const F=e.ref(!1),J=e.ref(!1),w=e.ref(null);function we(i){return _(this,null,function*(){w.value=null,F.value=!0,J.value=!0;try{const t=yield k.api.post("terminal_config_item",{uid:i.uid},!0),o=t==null?void 0:t.result;o&&typeof o=="object"?w.value=o:(w.value=z({},i),u.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){w.value=z({},i),u.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{J.value=!1}})}function Ve(i){return _(this,null,function*(){try{(yield k.api.post("upgrade_config_lua",{uid:i.uid},!0)).code===200&&(u.ElMessage.success("已触发批量升级"),yield v())}catch(t){u.ElMessage.error("批量升级请求失败(参数可能与后端约定不一致,可在 mixui 终端管理中操作)")}})}function he(i){const t=i.lua_file;if(!t){u.ElMessage.warning("无 LUA 文件地址");return}if(/^https?:\/\//i.test(t)){window.open(t,"_blank");return}const o=(localStorage.getItem("globalApiUrl")||"").replace(/\/$/,""),n=o?`${o}/${t.replace(/^\//,"")}`:t;window.open(n,"_blank")}function be(i){u.ElMessageBox.confirm(`确认对配置「${i.name||i.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{u.ElMessage.success("完整备档流程请在 mixui「终端管理」中操作")}).catch(()=>{})}function ye(i){u.ElMessageBox.confirm(`确认删除终端配置「${i.name||i.uid}」吗?`,"警告",{type:"warning"}).then(()=>_(null,null,function*(){try{yield k.api.post("terminal_config_delete",{uid:i.uid,id:i.id},!0),u.ElMessage.success("删除成功"),yield v()}catch(t){u.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{v()}),(i,t)=>{const o=g.ElIcon,n=g.ElInput,m=g.ElOption,b=g.ElSelect,s=g.ElButton,C=g.ElTableColumn,E=g.ElTable,B=g.ElPagination,c=g.ElFormItem,O=g.ElForm,x=g.ElDialog,r=g.ElDescriptionsItem,G=g.ElDescriptions,X=g.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["terminal-config-list mix-component",e.unref(P)]),style:e.normalizeStyle(e.unref($))},[e.unref(V).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(A.value)},e.toDisplayString(f.conf.caption||f.conf.name),5)),e.createElementVNode("div",De,[e.createElementVNode("div",Ue,[e.createVNode(n,{modelValue:M.value,"onUpdate:modelValue":t[0]||(t[0]=l=>M.value=l),placeholder:"搜索终端配置",size:"small",class:"toolbar-search",onKeyup:e.withKeys(H,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(o,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Te.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(b,{modelValue:R.value,"onUpdate:modelValue":t[1]||(t[1]=l=>R.value=l),size:"small",class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(m,{label:"配置名称",value:"name"}),e.createVNode(m,{label:"配置编号",value:"uid"}),e.createVNode(m,{label:"配置别名",value:"alias"}),e.createVNode(m,{label:"标签",value:"tag"})]),_:1},8,["modelValue"]),e.createVNode(s,{type:"primary",onClick:H},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(s,{onClick:ne},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(V).showAddBtn?(e.openBlock(),e.createBlock(s,{key:0,type:"success",onClick:pe},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("添加",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:T,class:"table-wrapper"},[e.createVNode(E,{data:ie.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(y)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(le.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.prop},[l.visible?(e.openBlock(),e.createBlock(C,{key:0,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(S=>[e.createElementVNode("span",null,e.toDisplayString(oe(S.row,l.prop)),1)]),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(C,{label:"操作","min-width":"340",fixed:"right"},{default:e.withCtx(l=>[e.unref(V).showViewBtn?(e.openBlock(),e.createBlock(s,{key:0,size:"small",onClick:S=>we(l.row)},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showEditBtn?(e.openBlock(),e.createBlock(s,{key:1,size:"small",type:"primary",onClick:S=>me(l.row)},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showBatchUpgradeBtn?(e.openBlock(),e.createBlock(s,{key:2,size:"small",onClick:S=>Ve(l.row)},{default:e.withCtx(()=>[...t[30]||(t[30]=[e.createTextVNode("批量升级",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showDownloadBtn?(e.openBlock(),e.createBlock(s,{key:3,size:"small",onClick:S=>he(l.row)},{default:e.withCtx(()=>[...t[31]||(t[31]=[e.createTextVNode("下载",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showArchiveBtn?(e.openBlock(),e.createBlock(s,{key:4,size:"small",type:"info",onClick:S=>be(l.row)},{default:e.withCtx(()=>[...t[32]||(t[32]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showDeleteBtn?(e.openBlock(),e.createBlock(s,{key:5,size:"small",type:"danger",onClick:S=>ye(l.row)},{default:e.withCtx(()=>[...t[33]||(t[33]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data","height"])],512),e.createElementVNode("div",Oe,[e.createVNode(B,{"current-page":h.current,"onUpdate:currentPage":t[2]||(t[2]=l=>h.current=l),"page-size":h.pageSize,"onUpdate:pageSize":t[3]||(t[3]=l=>h.pageSize=l),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:h.total,onSizeChange:re,onCurrentChange:se},null,8,["current-page","page-size","total"])])]),e.renderSlot(i.$slots,"default",{},void 0,!0)],6)),[[X,j.value]]),e.createVNode(x,{modelValue:D.value,"onUpdate:modelValue":t[12]||(t[12]=l=>D.value=l),title:"添加终端配置",width:"900px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(s,{onClick:t[11]||(t[11]=l=>D.value=!1)},{default:e.withCtx(()=>[...t[34]||(t[34]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:N.value,onClick:fe},{default:e.withCtx(()=>[...t[35]||(t[35]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(O,{model:a,"label-width":"130px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"配置名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.name,"onUpdate:modelValue":t[4]||(t[4]=l=>a.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"配置别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.alias,"onUpdate:modelValue":t[5]||(t[5]=l=>a.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.tagInput,"onUpdate:modelValue":t[6]||(t[6]=l=>a.tagInput=l),placeholder:"多个标签用英文逗号分隔"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Aprus脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.terminal_script,"onUpdate:modelValue":t[7]||(t[7]=l=>a.terminal_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Config脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.config_script,"onUpdate:modelValue":t[8]||(t[8]=l=>a.config_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"扩展信息"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.addition,"onUpdate:modelValue":t[9]||(t[9]=l=>a.addition=l),type:"textarea",rows:4,placeholder:"JSON,默认 []"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.description,"onUpdate:modelValue":t[10]||(t[10]=l=>a.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(x,{modelValue:U.value,"onUpdate:modelValue":t[22]||(t[22]=l=>U.value=l),title:"编辑终端配置",width:"900px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(s,{onClick:t[21]||(t[21]=l=>U.value=!1)},{default:e.withCtx(()=>[...t[36]||(t[36]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:N.value,onClick:ge},{default:e.withCtx(()=>[...t[37]||(t[37]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(O,{model:a,"label-width":"130px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"配置编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.uid,"onUpdate:modelValue":t[13]||(t[13]=l=>a.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"配置名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.name,"onUpdate:modelValue":t[14]||(t[14]=l=>a.name=l)},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"配置别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.alias,"onUpdate:modelValue":t[15]||(t[15]=l=>a.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.tagInput,"onUpdate:modelValue":t[16]||(t[16]=l=>a.tagInput=l),placeholder:"多个标签用英文逗号分隔"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Aprus脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.terminal_script,"onUpdate:modelValue":t[17]||(t[17]=l=>a.terminal_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Config脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.config_script,"onUpdate:modelValue":t[18]||(t[18]=l=>a.config_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"扩展信息"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.addition,"onUpdate:modelValue":t[19]||(t[19]=l=>a.addition=l),type:"textarea",rows:4},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.description,"onUpdate:modelValue":t[20]||(t[20]=l=>a.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(x,{modelValue:F.value,"onUpdate:modelValue":t[24]||(t[24]=l=>F.value=l),title:"终端配置详情",width:"800px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(s,{type:"primary",onClick:t[23]||(t[23]=l=>F.value=!1)},{default:e.withCtx(()=>[...t[38]||(t[38]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",ze,[w.value?(e.openBlock(),e.createBlock(G,{key:0,column:2,border:""},{default:e.withCtx(()=>[e.createVNode(r,{label:"配置编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"配置名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"配置别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"LUA版本"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.lua_version)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"标签",span:2},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(W(w.value.tag)),1)]),_:1}),e.createVNode(r,{label:"最后修改"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.description)!=null?l:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)])),[[X,J.value]])]),_:1},8,["modelValue"])],64)}}})),Re=k._export_sfc($e,[["__scopeId","data-v-d6b454e0"]]);exports.default=Re;
|
|
1
|
+
"use strict";var ve=Object.defineProperty,Ce=Object.defineProperties;var xe=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var Z=(f,d,p)=>d in f?ve(f,d,{enumerable:!0,configurable:!0,writable:!0,value:p}):f[d]=p,z=(f,d)=>{for(var p in d||(d={}))Ne.call(d,p)&&Z(f,p,d[p]);if(Y)for(var p of Y(d))_e.call(d,p)&&Z(f,p,d[p]);return f},K=(f,d)=>Ce(f,xe(d));var _=(f,d,p)=>new Promise((q,V)=>{var P=y=>{try{T(p.next(y))}catch(A){V(A)}},$=y=>{try{T(p.throw(y))}catch(A){V(A)}},T=y=>y.done?q(y.value):Promise.resolve(y.value).then(P,$);T((p=p.apply(f,d)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),ke=require("./useTableBodyHeight-pf87uGjw.cjs"),Be=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Se=require("./BaseComponent-B5ivgb3E.cjs"),k=require("./index-DYr57ceS.cjs"),Ee=require("./titleStyle-NSnz6cUg.cjs"),u=require("element-plus"),Te=require("@element-plus/icons-vue"),Ae=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),ee=require("./ele-lst-icon-CrxnHZ-A.cjs"),De={class:"mix-body"},Ue={class:"toolbar"},Oe={class:"pagination"},ze={class:"view-body"},qe={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"终端配置列表",NAME_EN:"TerminalConfigList",ORDER:6,PLATFORM:["pc","screen"]},Me={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{key:"uid",label:"终端配置编号",width:140,visible:!0},{key:"alias",label:"终端配置别名",width:120,visible:!0},{key:"name",label:"终端配置名称",width:140,visible:!0},{key:"lua_version",label:"LUA版本号",width:110,visible:!0},{key:"tag",label:"标签",width:120,visible:!0},{key:"description",label:"描述",minWidth:140,visible:!0},{key:"last_modified",label:"最后修改时间",width:170,visible:!0},{key:"created",label:"创建时间",width:170,visible:!0}]},te=[{name:"终端配置名称",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showBatchUpgradeBtn:!0,showDownloadBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0,uid:"终端配置编号",uid_visible:!0,alias:"终端配置别名",alias_visible:!0,name_visible:!0,lua_version:"LUA版本号",lua_version_visible:!0,tag:"标签",tag_visible:!0,description:"描述",description_visible:!0,last_modified:"最后修改时间",last_modified_visible:!0,created:"创建时间",created_visible:!0}],Ie=[{key:"showAddBtn",label:"添加",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组"},{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showBatchUpgradeBtn",label:"批量升级",type:"checkbox",group:"操作组"},{key:"showDownloadBtn",label:"下载",type:"checkbox",group:"操作组"},{key:"showArchiveBtn",label:"资料备档",type:"checkbox",group:"操作组"},{key:"showDeleteBtn",label:"删除",type:"checkbox",group:"操作组"},{key:"name",label:"参数名称"},{key:"uid",label:"终端配置编号",checkable:!0,checkboxKey:"uid_visible"},{key:"alias",label:"终端配置别名",checkable:!0,checkboxKey:"alias_visible"},{key:"name",label:"终端配置名称",checkable:!0,checkboxKey:"name_visible"},{key:"lua_version",label:"LUA版本号",checkable:!0,checkboxKey:"lua_version_visible"},{key:"tag",label:"标签",checkable:!0,checkboxKey:"tag_visible"},{key:"description",label:"描述",checkable:!0,checkboxKey:"description_visible"},{key:"last_modified",label:"最后修改时间",checkable:!0,checkboxKey:"last_modified_visible"},{key:"created",label:"创建时间",checkable:!0,checkboxKey:"created_visible"}],Le=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Fe={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"name",label:"setting.gridFields.name"},{value:"uid",label:"setting.gridFields.uid"},{value:"alias",label:"setting.gridFields.objectAlias"},{value:"tag",label:"setting.gridFields.tag"}]},Pe={DEFAULT:qe,OPTIONS:Me,DATA:te,PARAMS:Ie,SOURCE:Le,COMMON:Fe},$e=e.defineComponent(K(z({},Pe),{__name:"terminalConfigList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(f){const d=f;class p extends Se.BaseComponent{getDataBool(t,o){var m,b;const n=(b=(m=this.props.conf)==null?void 0:m.data)==null?void 0:b[0];return n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0?!!n[t]:this.getOptionValue(t,o)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showAddBtn:this.getDataBool("showAddBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showBatchUpgradeBtn:this.getDataBool("showBatchUpgradeBtn",!0),showDownloadBtn:this.getDataBool("showDownloadBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(te));else{const o=this.props.conf.data[0],n={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showBatchUpgradeBtn:!0,showDownloadBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[m,b]of Object.entries(n))o[m]===void 0&&(o[m]=b)}}}const q=new p(d,"terminalConfigList");q.setupLifecycle();const V=q.getStyle(),{mixiotPanelClass:P,mixiotPanelRootStyle:$}=Be.useMixiotPanelSurface(V),{tableWrapRef:T,tableBodyHeight:y}=ke.useTableBodyHeight(),A=e.computed(()=>Ee.generateTitleStyle(d.conf.options)),le=e.computed(()=>{var o,n,m,b;const i=((n=(o=d.conf)==null?void 0:o.options)==null?void 0:n.columns)||[],t=((b=(m=d.conf)==null?void 0:m.data)==null?void 0:b[0])||{};return(Array.isArray(i)?i:[]).map(s=>{const C=t[s.key],E=`${s.key}_visible`,B=t[E];return{prop:s.key,label:C!==void 0&&C!==""?String(C):s.label,width:s.width,minWidth:s.minWidth,visible:B!==void 0?!!B:s.visible!==!1}})}),h=e.reactive({current:1,pageSize:10,total:0}),M=e.ref(""),R=e.ref("name"),I=e.ref([]),j=e.ref(!1);function ae(){const i=[],t=M.value.trim();return t&&i.push([R.value,"like",`%${t}%`]),Ae.appendCommonDesignerWhereAnd(d.conf.common,i),{page_index:h.current,page_size:h.pageSize,where_and:JSON.stringify(i)}}function v(){return _(this,null,function*(){var i;j.value=!0;try{const t=yield k.api.post("terminal_config_list",ae(),!0),o=(i=t==null?void 0:t.result)!=null?i:t;I.value=Array.isArray(o==null?void 0:o.data)?[...o.data]:[];const n=o==null?void 0:o.total_records;h.total=typeof n=="number"?n:I.value.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[terminalConfigList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),I.value=[],h.total=0}finally{j.value=!1}})}const ie=e.computed(()=>I.value);function W(i){if(i==null||i==="")return"";if(Array.isArray(i))return i.join(", ");if(typeof i=="string")try{const t=JSON.parse(i);return Array.isArray(t)?t.join(", "):i}catch(t){return i}return String(i)}function oe(i,t){if(t==="tag")return W(i.tag);const o=i[t];return o==null?"":String(o)}function H(){h.current=1,v()}function ne(){M.value="",h.current=1,v()}function re(){h.current=1,v()}function se(){v()}const D=e.ref(!1),U=e.ref(!1),N=e.ref(!1),a=e.reactive({id:0,uid:"",name:"",alias:"",tagInput:"",description:"",terminal_script:"",config_script:"",addition:"[]",reference:"",hardware:"",is_available:1});function de(){const i=a.tagInput.trim();return i?i.split(",").map(t=>t.trim()).filter(Boolean):[]}function ue(i){if(i==null){a.tagInput="";return}if(Array.isArray(i)){a.tagInput=i.join(", ");return}if(typeof i=="string")try{const t=JSON.parse(i);a.tagInput=Array.isArray(t)?t.join(", "):i}catch(t){a.tagInput=i}}function L(){a.id=0,a.uid="",a.name="",a.alias="",a.tagInput="",a.description="",a.terminal_script="",a.config_script="",a.addition="[]",a.reference="",a.hardware="",a.is_available=1}function ce(){var t;const i=((t=a.addition)==null?void 0:t.trim())||"[]";try{return JSON.parse(i)}catch(o){throw new Error("扩展信息需为合法 JSON")}}function Q(){const i=ce();return{id:a.id,uid:a.uid.trim(),name:a.name.trim(),alias:a.alias.trim(),description:a.description,tag:de(),terminal_script:a.terminal_script,config_script:a.config_script,addition:i,reference:a.reference,hardware:a.hardware,is_available:a.is_available}}function pe(){L(),a.addition="[]",D.value=!0}function me(i){return _(this,null,function*(){var t,o,n,m,b,s,C,E,B,c,O;L(),U.value=!0,N.value=!0;try{const x=yield k.api.post("terminal_config_item",{uid:i.uid},!0),r=(t=x==null?void 0:x.result)!=null?t:x;if(r&&typeof r=="object"){if(a.id=Number(r.id)||0,a.uid=String((n=(o=r.uid)!=null?o:i.uid)!=null?n:""),a.name=String((m=r.name)!=null?m:""),a.alias=String((b=r.alias)!=null?b:""),ue(r.tag),a.description=String((s=r.description)!=null?s:""),a.terminal_script=String((C=r.terminal_script)!=null?C:""),a.config_script=String((E=r.config_script)!=null?E:""),r.addition!==void 0&&r.addition!==null)if(typeof r.addition=="string")try{a.addition=JSON.stringify(JSON.parse(r.addition),null,2)}catch(G){a.addition=String(r.addition)}else a.addition=JSON.stringify(r.addition,null,2);else a.addition="[]";a.reference=String((B=r.reference)!=null?B:""),a.hardware=String((c=r.hardware)!=null?c:""),a.is_available=r.is_available!==void 0?Number(r.is_available):1}}catch(x){a.uid=String(i.uid),a.name=String((O=i.name)!=null?O:""),u.ElMessage.warning("拉取配置详情失败,已使用列表行数据")}finally{N.value=!1}})}function fe(){return _(this,null,function*(){var t;if(!((t=a.name)!=null&&t.trim())){u.ElMessage.warning("请填写配置名称");return}let i;try{i=K(z({},Q()),{id:0})}catch(o){u.ElMessage.warning((o==null?void 0:o.message)||"扩展信息格式错误");return}N.value=!0;try{yield k.api.post("terminal_config_create",i,!0),u.ElMessage.success("添加成功"),D.value=!1,yield v()}catch(o){u.ElMessage.error("添加失败")}finally{N.value=!1}})}function ge(){return _(this,null,function*(){var t;if(!((t=a.name)!=null&&t.trim())){u.ElMessage.warning("请填写配置名称");return}let i;try{i=Q()}catch(o){u.ElMessage.warning((o==null?void 0:o.message)||"扩展信息格式错误");return}N.value=!0;try{yield k.api.post("terminal_config_update",i,!0),u.ElMessage.success("保存成功"),U.value=!1,yield v()}catch(o){u.ElMessage.error("保存失败")}finally{N.value=!1}})}const F=e.ref(!1),J=e.ref(!1),w=e.ref(null);function we(i){return _(this,null,function*(){w.value=null,F.value=!0,J.value=!0;try{const t=yield k.api.post("terminal_config_item",{uid:i.uid},!0),o=t==null?void 0:t.result;o&&typeof o=="object"?w.value=o:(w.value=z({},i),u.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){w.value=z({},i),u.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{J.value=!1}})}function Ve(i){return _(this,null,function*(){try{(yield k.api.post("upgrade_config_lua",{uid:i.uid},!0)).code===200&&(u.ElMessage.success("已触发批量升级"),yield v())}catch(t){u.ElMessage.error("批量升级请求失败(参数可能与后端约定不一致,可在 mixui 终端管理中操作)")}})}function he(i){const t=i.lua_file;if(!t){u.ElMessage.warning("无 LUA 文件地址");return}if(/^https?:\/\//i.test(t)){window.open(t,"_blank");return}const o=(localStorage.getItem("globalApiUrl")||"").replace(/\/$/,""),n=o?`${o}/${t.replace(/^\//,"")}`:t;window.open(n,"_blank")}function be(i){u.ElMessageBox.confirm(`确认对配置「${i.name||i.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{u.ElMessage.success("完整备档流程请在 mixui「终端管理」中操作")}).catch(()=>{})}function ye(i){u.ElMessageBox.confirm(`确认删除终端配置「${i.name||i.uid}」吗?`,"警告",{type:"warning"}).then(()=>_(null,null,function*(){try{yield k.api.post("terminal_config_delete",{uid:i.uid,id:i.id},!0),u.ElMessage.success("删除成功"),yield v()}catch(t){u.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{v()}),(i,t)=>{const o=g.ElIcon,n=g.ElInput,m=g.ElOption,b=g.ElSelect,s=g.ElButton,C=g.ElTableColumn,E=g.ElTable,B=g.ElPagination,c=g.ElFormItem,O=g.ElForm,x=g.ElDialog,r=g.ElDescriptionsItem,G=g.ElDescriptions,X=g.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["terminal-config-list mix-component",e.unref(P)]),style:e.normalizeStyle(e.unref($))},[e.unref(V).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(A.value)},e.toDisplayString(f.conf.caption||f.conf.name),5)),e.createElementVNode("div",De,[e.createElementVNode("div",Ue,[e.createVNode(n,{modelValue:M.value,"onUpdate:modelValue":t[0]||(t[0]=l=>M.value=l),placeholder:"搜索终端配置",size:"small",class:"toolbar-search",onKeyup:e.withKeys(H,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(o,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Te.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(b,{modelValue:R.value,"onUpdate:modelValue":t[1]||(t[1]=l=>R.value=l),size:"small",class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(m,{label:"配置名称",value:"name"}),e.createVNode(m,{label:"配置编号",value:"uid"}),e.createVNode(m,{label:"配置别名",value:"alias"}),e.createVNode(m,{label:"标签",value:"tag"})]),_:1},8,["modelValue"]),e.createVNode(s,{type:"primary",onClick:H},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(s,{onClick:ne},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(V).showAddBtn?(e.openBlock(),e.createBlock(s,{key:0,type:"success",onClick:pe},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("添加",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:T,class:"table-wrapper"},[e.createVNode(E,{data:ie.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(y)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(le.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.prop},[l.visible?(e.openBlock(),e.createBlock(C,{key:0,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(S=>[e.createElementVNode("span",null,e.toDisplayString(oe(S.row,l.prop)),1)]),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(C,{label:"操作","min-width":"340",fixed:"right"},{default:e.withCtx(l=>[e.unref(V).showViewBtn?(e.openBlock(),e.createBlock(s,{key:0,size:"small",onClick:S=>we(l.row)},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showEditBtn?(e.openBlock(),e.createBlock(s,{key:1,size:"small",type:"primary",onClick:S=>me(l.row)},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showBatchUpgradeBtn?(e.openBlock(),e.createBlock(s,{key:2,size:"small",onClick:S=>Ve(l.row)},{default:e.withCtx(()=>[...t[30]||(t[30]=[e.createTextVNode("批量升级",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showDownloadBtn?(e.openBlock(),e.createBlock(s,{key:3,size:"small",onClick:S=>he(l.row)},{default:e.withCtx(()=>[...t[31]||(t[31]=[e.createTextVNode("下载",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showArchiveBtn?(e.openBlock(),e.createBlock(s,{key:4,size:"small",type:"info",onClick:S=>be(l.row)},{default:e.withCtx(()=>[...t[32]||(t[32]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showDeleteBtn?(e.openBlock(),e.createBlock(s,{key:5,size:"small",type:"danger",onClick:S=>ye(l.row)},{default:e.withCtx(()=>[...t[33]||(t[33]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data","height"])],512),e.createElementVNode("div",Oe,[e.createVNode(B,{"current-page":h.current,"onUpdate:currentPage":t[2]||(t[2]=l=>h.current=l),"page-size":h.pageSize,"onUpdate:pageSize":t[3]||(t[3]=l=>h.pageSize=l),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:h.total,onSizeChange:re,onCurrentChange:se},null,8,["current-page","page-size","total"])])]),e.renderSlot(i.$slots,"default",{},void 0,!0)],6)),[[X,j.value]]),e.createVNode(x,{modelValue:D.value,"onUpdate:modelValue":t[12]||(t[12]=l=>D.value=l),title:"添加终端配置",width:"900px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(s,{onClick:t[11]||(t[11]=l=>D.value=!1)},{default:e.withCtx(()=>[...t[34]||(t[34]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:N.value,onClick:fe},{default:e.withCtx(()=>[...t[35]||(t[35]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(O,{model:a,"label-width":"130px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"配置名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.name,"onUpdate:modelValue":t[4]||(t[4]=l=>a.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"配置别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.alias,"onUpdate:modelValue":t[5]||(t[5]=l=>a.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.tagInput,"onUpdate:modelValue":t[6]||(t[6]=l=>a.tagInput=l),placeholder:"多个标签用英文逗号分隔"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Aprus脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.terminal_script,"onUpdate:modelValue":t[7]||(t[7]=l=>a.terminal_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Config脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.config_script,"onUpdate:modelValue":t[8]||(t[8]=l=>a.config_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"扩展信息"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.addition,"onUpdate:modelValue":t[9]||(t[9]=l=>a.addition=l),type:"textarea",rows:4,placeholder:"JSON,默认 []"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.description,"onUpdate:modelValue":t[10]||(t[10]=l=>a.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(x,{modelValue:U.value,"onUpdate:modelValue":t[22]||(t[22]=l=>U.value=l),title:"编辑终端配置",width:"900px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(s,{onClick:t[21]||(t[21]=l=>U.value=!1)},{default:e.withCtx(()=>[...t[36]||(t[36]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:N.value,onClick:ge},{default:e.withCtx(()=>[...t[37]||(t[37]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(O,{model:a,"label-width":"130px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"配置编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.uid,"onUpdate:modelValue":t[13]||(t[13]=l=>a.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"配置名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.name,"onUpdate:modelValue":t[14]||(t[14]=l=>a.name=l)},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"配置别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.alias,"onUpdate:modelValue":t[15]||(t[15]=l=>a.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.tagInput,"onUpdate:modelValue":t[16]||(t[16]=l=>a.tagInput=l),placeholder:"多个标签用英文逗号分隔"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Aprus脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.terminal_script,"onUpdate:modelValue":t[17]||(t[17]=l=>a.terminal_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Config脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.config_script,"onUpdate:modelValue":t[18]||(t[18]=l=>a.config_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"扩展信息"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.addition,"onUpdate:modelValue":t[19]||(t[19]=l=>a.addition=l),type:"textarea",rows:4},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.description,"onUpdate:modelValue":t[20]||(t[20]=l=>a.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(x,{modelValue:F.value,"onUpdate:modelValue":t[24]||(t[24]=l=>F.value=l),title:"终端配置详情",width:"800px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(s,{type:"primary",onClick:t[23]||(t[23]=l=>F.value=!1)},{default:e.withCtx(()=>[...t[38]||(t[38]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",ze,[w.value?(e.openBlock(),e.createBlock(G,{key:0,column:2,border:""},{default:e.withCtx(()=>[e.createVNode(r,{label:"配置编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"配置名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"配置别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"LUA版本"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.lua_version)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"标签",span:2},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(W(w.value.tag)),1)]),_:1}),e.createVNode(r,{label:"最后修改"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.description)!=null?l:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)])),[[X,J.value]])]),_:1},8,["modelValue"])],64)}}})),Re=k._export_sfc($e,[["__scopeId","data-v-d6b454e0"]]);exports.default=Re;
|
|
@@ -45,8 +45,8 @@ import "element-plus/es/components/icon/style/css";
|
|
|
45
45
|
import { defineComponent as et, computed as le, reactive as pe, ref as V, onMounted as tt, openBlock as v, createElementBlock as L, Fragment as ie, withDirectives as me, normalizeStyle as ce, unref as k, normalizeClass as lt, toDisplayString as B, createCommentVNode as C, createElementVNode as K, createVNode as a, withKeys as it, withCtx as o, createTextVNode as d, createBlock as D, renderList as at, renderSlot as ot } from "vue";
|
|
46
46
|
import { u as nt } from "./useTableBodyHeight-CwrQvi7M.js";
|
|
47
47
|
import { u as rt } from "./useMixiotPanelSurface-DRl3cZvc.js";
|
|
48
|
-
import { B as st } from "./BaseComponent-
|
|
49
|
-
import { a as N, _ as ut } from "./index-
|
|
48
|
+
import { B as st } from "./BaseComponent-DtvXBQYf.js";
|
|
49
|
+
import { a as N, _ as ut } from "./index-BueGUjcH.js";
|
|
50
50
|
import { g as dt } from "./titleStyle-BT5GlpAb.js";
|
|
51
51
|
import { ElMessage as f, ElMessageBox as fe } from "element-plus";
|
|
52
52
|
import { Search as pt } from "@element-plus/icons-vue";
|
|
@@ -46,8 +46,8 @@ import "element-plus/es/components/icon/style/css";
|
|
|
46
46
|
import { defineComponent as dt, computed as pe, reactive as he, ref as D, watch as mt, onMounted as pt, openBlock as p, createElementBlock as L, Fragment as T, withDirectives as ke, normalizeStyle as _e, unref as w, normalizeClass as ct, toDisplayString as y, createCommentVNode as S, createElementVNode as le, createVNode as a, withKeys as bt, withCtx as n, createTextVNode as s, createBlock as B, renderList as H, renderSlot as ft } from "vue";
|
|
47
47
|
import { u as vt } from "./useTableBodyHeight-CwrQvi7M.js";
|
|
48
48
|
import { u as yt } from "./useMixiotPanelSurface-DRl3cZvc.js";
|
|
49
|
-
import { B as gt } from "./BaseComponent-
|
|
50
|
-
import { a as z, _ as ht } from "./index-
|
|
49
|
+
import { B as gt } from "./BaseComponent-DtvXBQYf.js";
|
|
50
|
+
import { a as z, _ as ht } from "./index-BueGUjcH.js";
|
|
51
51
|
import { g as kt } from "./titleStyle-BT5GlpAb.js";
|
|
52
52
|
import { ElMessage as b, ElMessageBox as we } from "element-plus";
|
|
53
53
|
import { Search as _t } from "@element-plus/icons-vue";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Ee=Object.defineProperty,De=Object.defineProperties;var Te=Object.getOwnPropertyDescriptors;var oe=Object.getOwnPropertySymbols;var Ue=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable;var ne=(g,u,f)=>u in g?Ee(g,u,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[u]=f,z=(g,u)=>{for(var f in u||(u={}))Ue.call(u,f)&&ne(g,f,u[f]);if(oe)for(var f of oe(u))Ae.call(u,f)&&ne(g,f,u[f]);return g},ee=(g,u)=>De(g,Te(u));var V=(g,u,f)=>new Promise((I,y)=>{var X=B=>{try{T(f.next(B))}catch(U){y(U)}},W=B=>{try{T(f.throw(B))}catch(U){y(U)}},T=B=>B.done?I(B.value):Promise.resolve(B.value).then(X,W);T((f=f.apply(g,u)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),Me=require("./useTableBodyHeight-pf87uGjw.cjs"),Le=require("./useMixiotPanelSurface-CAZgexY5.cjs"),qe=require("./BaseComponent-BmhMoM4H.cjs"),_=require("./index-77aUdspY.cjs"),Oe=require("./titleStyle-NSnz6cUg.cjs"),c=require("element-plus"),ze=require("@element-plus/icons-vue"),Ie=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),re=require("./ele-lst-icon-CrxnHZ-A.cjs"),Fe={class:"mix-body"},Re={class:"toolbar"},Pe={key:1},$e={class:"pagination"},Ke={class:"view-body"},je={DEFAULT_ICON:re.DEFAULT_ICON,ACTIVE_ICON:re.ACTIVE_ICON,NAME_CN:"终端列表",NAME_EN:"TerminalList",ORDER:5,PLATFORM:["pc","screen"]},Xe={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:"name",label:"终端名称",width:140,visible:!0},{key:"uid",label:"终端编号",width:140,visible:!0},{key:"alias",label:"终端别名",width:120,visible:!0},{key:"type",label:"终端类型",width:160,visible:!0},{key:"config_id",label:"终端配置编号",width:130,visible:!0},{key:"online",label:"终端状态",width:100,visible:!0},{key:"csq",label:"信号值",width:90,visible:!0},{key:"last_publish_time",label:"最近上报时间",width:170,visible:!0},{key:"last_online_time",label:"上一次连接时间",width:170,visible:!0},{key:"nominal.ICCID",label:"流量卡号",width:160,visible:!0},{key:"nominal.LUA",label:"LUA版本号",width:120,visible:!0},{key:"nominal.MCU",label:"MCU版本号",width:120,visible:!0},{key:"maker",label:"生产厂家",width:120,visible:!0},{key:"description",label:"描述",minWidth:140,visible:!0},{key:"created",label:"创建时间",width:170,visible:!0}]},se=[{name:"终端名称",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showImportBtn:!0,showBatchRefreshBtn:!0,showViewBtn:!0,showEditBtn:!0,showSyncBtn:!0,showRestartBtn:!0,showUpgradeBtn:!0,showDownloadBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0,uid:"终端编号",uid_visible:!0,alias:"终端别名",alias_visible:!0,type:"终端类型",type_visible:!0,config_id:"终端配置编号",config_id_visible:!0,online:"终端状态",online_visible:!0,csq:"信号值",csq_visible:!0,last_publish_time:"最近上报时间",last_publish_time_visible:!0,last_online_time:"上一次连接时间",last_online_time_visible:!0,"nominal.ICCID":"流量卡号","nominal.ICCID_visible":!0,"nominal.LUA":"LUA版本号","nominal.LUA_visible":!0,"nominal.MCU":"MCU版本号","nominal.MCU_visible":!0,maker:"生产厂家",maker_visible:!0,description:"描述",description_visible:!0,created:"创建时间",created_visible:!0}],We=[{key:"showAddBtn",label:"添加终端",type:"checkbox",group:"命令组"},{key:"showImportBtn",label:"导入",type:"checkbox",group:"命令组"},{key:"showBatchRefreshBtn",label:"批量刷新",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组"},{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showSyncBtn",label:"刷新",type:"checkbox",group:"操作组"},{key:"showRestartBtn",label:"重启",type:"checkbox",group:"操作组"},{key:"showUpgradeBtn",label:"升级",type:"checkbox",group:"操作组"},{key:"showDownloadBtn",label:"下载",type:"checkbox",group:"操作组"},{key:"showArchiveBtn",label:"资料备档",type:"checkbox",group:"操作组"},{key:"showDeleteBtn",label:"删除",type:"checkbox",group:"操作组"},{key:"name",label:"参数名称"},{key:"uid",label:"终端编号",checkable:!0,checkboxKey:"uid_visible"},{key:"alias",label:"终端别名",checkable:!0,checkboxKey:"alias_visible"},{key:"type",label:"终端类型",checkable:!0,checkboxKey:"type_visible"},{key:"config_id",label:"终端配置编号",checkable:!0,checkboxKey:"config_id_visible"},{key:"online",label:"终端状态",checkable:!0,checkboxKey:"online_visible"},{key:"csq",label:"信号值",checkable:!0,checkboxKey:"csq_visible"},{key:"last_publish_time",label:"最近上报时间",checkable:!0,checkboxKey:"last_publish_time_visible"},{key:"last_online_time",label:"上一次连接时间",checkable:!0,checkboxKey:"last_online_time_visible"},{key:"nominal.ICCID",label:"流量卡号",checkable:!0,checkboxKey:"nominal.ICCID_visible"},{key:"nominal.LUA",label:"LUA版本号",checkable:!0,checkboxKey:"nominal.LUA_visible"},{key:"nominal.MCU",label:"MCU版本号",checkable:!0,checkboxKey:"nominal.MCU_visible"},{key:"maker",label:"生产厂家",checkable:!0,checkboxKey:"maker_visible"},{key:"description",label:"描述",checkable:!0,checkboxKey:"description_visible"},{key:"created",label:"创建时间",checkable:!0,checkboxKey:"created_visible"}],He={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"},{value:"maker",label:"setting.gridFields.deviceMaker"},{value:"config_id",label:"setting.gridFields.configIdentifier"}]},Je={DEFAULT:je,OPTIONS:Xe,DATA:se,PARAMS:We,COMMON:He},Qe=e.defineComponent(ee(z({},Je),{__name:"terminalList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""},terminalUidList:{default:()=>[]},terminalOnlineFilter:{default:null}},setup(g){const u=g;class f extends qe.BaseComponent{getDataBool(t,o){var r,d;const n=(d=(r=this.props.conf)==null?void 0:r.data)==null?void 0:d[0];return n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0?!!n[t]:this.getOptionValue(t,o)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showAddBtn:this.getDataBool("showAddBtn",!0),showImportBtn:this.getDataBool("showImportBtn",!0),showBatchRefreshBtn:this.getDataBool("showBatchRefreshBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showSyncBtn:this.getDataBool("showSyncBtn",!0),showRestartBtn:this.getDataBool("showRestartBtn",!0),showUpgradeBtn:this.getDataBool("showUpgradeBtn",!0),showDownloadBtn:this.getDataBool("showDownloadBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(se));else{const o=this.props.conf.data[0],n={showAddBtn:!0,showImportBtn:!0,showBatchRefreshBtn:!0,showViewBtn:!0,showEditBtn:!0,showSyncBtn:!0,showRestartBtn:!0,showUpgradeBtn:!0,showDownloadBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[r,d]of Object.entries(n))o[r]===void 0&&(o[r]=d)}}}const I=new f(u,"terminalList");I.setupLifecycle();const y=I.getStyle(),{mixiotPanelClass:X,mixiotPanelRootStyle:W}=Le.useMixiotPanelSurface(y),{tableWrapRef:T,tableBodyHeight:B}=Me.useTableBodyHeight(),U=e.computed(()=>Oe.generateTitleStyle(u.conf.options)),ue=e.computed(()=>{var o,n,r,d;const i=((n=(o=u.conf)==null?void 0:o.options)==null?void 0:n.columns)||[],t=((d=(r=u.conf)==null?void 0:r.data)==null?void 0:d[0])||{};return(Array.isArray(i)?i:[]).map(s=>{const C=t[s.key],S=`${s.key}_visible`,E=t[S];return{prop:s.key,label:C!==void 0&&C!==""?String(C):s.label,width:s.width,minWidth:s.minWidth,visible:E!==void 0?!!E:s.visible!==!1}})}),H=[{label:"Mixlinker Aprus-M",value:"Mixlinker Aprus-M"},{label:"Mixlinker Aprus-X",value:"Mixlinker Aprus-X"},{label:"Mixlinker Aprus-AS",value:"Mixlinker Aprus-AS"},{label:"第三方终端",value:"Other"},{label:"数据模拟",value:"Mixlinker DataSimulate"},{label:"UFS",value:"UFS"}];function te(i){if(i==null||i==="")return"";const t=String(i),o=H.find(n=>n.value===t);return o?o.label:t}function A(i,t){return t.split(".").reduce((o,n)=>{if(!(o==null||typeof o!="object"))return o[n]},i)}function J(i){const t=i.online;return t===1||t===!0||t==="1"}const w=e.reactive({current:1,pageSize:10,total:0}),F=e.ref(""),Q=e.ref("name"),G=e.ref([]),Y=e.ref(!1);function de(){const i=[["uid","!=","fidiser"]],t=F.value.trim();return t&&i.push([Q.value,"like",`%${t}%`]),(u.terminalOnlineFilter===0||u.terminalOnlineFilter===1)&&i.push(["online","=",u.terminalOnlineFilter]),Ie.appendCommonDesignerWhereAnd(u.conf.common,i),{page_index:w.current,page_size:w.pageSize,where_and:JSON.stringify(i)}}function x(){return V(this,null,function*(){var i,t;Y.value=!0;try{const o=yield _.api.post("terminal_list",de(),!0),n=(i=o==null?void 0:o.result)!=null?i:o;let r=Array.isArray(n==null?void 0:n.data)?[...n.data]:[];if((t=u.terminalUidList)!=null&&t.length){const s=new Set(u.terminalUidList.map(String));r=r.filter(C=>s.has(String(C.uid)))}G.value=r;const d=n==null?void 0:n.total_records;w.total=typeof d=="number"?d:r.length,o&&o.code!==void 0&&o.code!==200&&console.warn("[terminalList] 列表接口非成功",o.msg||o.info,o)}catch(o){console.error(o),G.value=[],w.total=0}finally{Y.value=!1}})}const ce=e.computed(()=>G.value);function me(i,t){if(t==="type")return te(i.type);const o=A(i,t);return o==null?"":String(o)}function le(){w.current=1,x()}function pe(){F.value="",w.current=1,x()}function fe(){w.current=1,x()}function be(){x()}e.watch(()=>{var i;return[(i=u.terminalUidList)==null?void 0:i.join(","),u.terminalOnlineFilter].join("|")},()=>{w.current=1,x()});function he(){c.ElMessage.info("批量导入终端请在 mixui「终端管理」中使用导入功能")}function ye(){c.ElMessage.info("批量刷新请在 mixui「终端管理」中操作(需 user_action 接口)")}const M=e.ref(!1),L=e.ref(!1),N=e.ref(!1),R=e.ref([]),a=e.reactive({id:0,uid:"",name:"",alias:"",type:"Mixlinker Aprus-X",config_id:"",maker:"",description:"",rsa_privatekey:"",auto_upgrade:0,is_available:1});function ae(){return V(this,null,function*(){var i;try{const t=yield _.api.post("terminal_config_list",{select:["id","uid","name"]},!0),o=(i=t==null?void 0:t.result)!=null?i:t;R.value=Array.isArray(o==null?void 0:o.data)?o.data:[]}catch(t){R.value=[]}})}function P(){a.id=0,a.uid="",a.name="",a.alias="",a.type="Mixlinker Aprus-X",a.config_id="",a.maker="",a.description="",a.rsa_privatekey="",a.auto_upgrade=0,a.is_available=1}function ge(){return V(this,null,function*(){P(),yield ae(),M.value=!0})}function ke(i){return V(this,null,function*(){var t,o,n,r,d,s,C,S,E,K,b,q,D,p,j,O,l;P(),L.value=!0,N.value=!0,yield ae();try{const h=yield _.api.post("terminal_item",{uid:i.uid},!0),v=(t=h==null?void 0:h.result)!=null?t:h;v&&typeof v=="object"?(a.id=Number(v.id)||0,a.uid=String((n=(o=v.uid)!=null?o:i.uid)!=null?n:""),a.name=String((r=v.name)!=null?r:""),a.alias=String((d=v.alias)!=null?d:""),a.type=String((s=v.type)!=null?s:"Mixlinker Aprus-X"),a.config_id=String((C=v.config_id)!=null?C:""),a.maker=String((S=v.maker)!=null?S:""),a.description=String((E=v.description)!=null?E:""),a.rsa_privatekey=String((K=v.rsa_privatekey)!=null?K:""),a.auto_upgrade=Number(v.auto_upgrade)||0,a.is_available=v.is_available!==void 0?Number(v.is_available):1):(a.uid=String(i.uid),a.name=String((b=i.name)!=null?b:""),a.alias=String((q=i.alias)!=null?q:""),a.type=String((D=i.type)!=null?D:"Mixlinker Aprus-X"),a.config_id=String((p=i.config_id)!=null?p:""),a.maker=String((j=i.maker)!=null?j:""),a.description=String((O=i.description)!=null?O:""))}catch(h){a.uid=String(i.uid),a.name=String((l=i.name)!=null?l:""),c.ElMessage.warning("拉取终端详情失败,已使用列表行数据编辑")}finally{N.value=!1}})}function ie(){return{id:a.id,uid:a.uid.trim(),name:a.name.trim(),alias:a.alias.trim(),description:a.description,type:a.type,maker:a.maker,config_id:a.config_id,rsa_privatekey:a.rsa_privatekey,auto_upgrade:a.auto_upgrade,is_available:a.is_available,addition:"[]"}}function ve(){return V(this,null,function*(){var i,t;if(!((i=a.uid)!=null&&i.trim())||!((t=a.name)!=null&&t.trim())){c.ElMessage.warning("请填写终端编号与名称");return}N.value=!0;try{yield _.api.post("terminal_create",ee(z({},ie()),{id:0}),!0),c.ElMessage.success("添加成功"),M.value=!1,yield x()}catch(o){c.ElMessage.error("添加失败")}finally{N.value=!1}})}function we(){return V(this,null,function*(){var i;if(!((i=a.name)!=null&&i.trim())){c.ElMessage.warning("请填写终端名称");return}N.value=!0;try{yield _.api.post("terminal_update",ie(),!0),c.ElMessage.success("保存成功"),L.value=!1,yield x()}catch(t){c.ElMessage.error("保存失败")}finally{N.value=!1}})}const $=e.ref(!1),Z=e.ref(!1),m=e.ref(null);function Ve(i){return V(this,null,function*(){m.value=null,$.value=!0,Z.value=!0;try{const t=yield _.api.post("terminal_item",{uid:i.uid},!0),o=t==null?void 0:t.result;o&&typeof o=="object"?m.value=o:(m.value=z({},i),c.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){m.value=z({},i),c.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{Z.value=!1}})}function xe(i){return V(this,null,function*(){try{(yield _.api.post("terminal_sync",{terminal_id:i.uid},!0)).code===200&&(c.ElMessage.success("已触发同步"),yield x())}catch(t){c.ElMessage.error("同步失败")}})}function _e(i){return V(this,null,function*(){try{(yield _.api.post("terminal_restart",{terminal_id:i.uid,command:"Reboot"},!0)).code===200&&(c.ElMessage.success("已下发重启指令"),yield x())}catch(t){c.ElMessage.error("重启指令失败")}})}function Ce(i){return V(this,null,function*(){var r,d;const t=String((r=i.uid)!=null?r:""),o=String((d=i.type)!=null?d:""),n=t.startsWith("AX")||o==="Mixlinker Aprus-X"||o.includes("Aprus-X")?"AXUpgrade":"Upgrade";try{(yield _.api.post("upgrade_lua",{terminal_id:i.uid,command:n,value:"LUA"},!0)).code===200&&(c.ElMessage.success("已下发升级指令"),yield x())}catch(s){c.ElMessage.error("升级指令失败")}})}function Be(i){return V(this,null,function*(){var t;try{const o=yield _.api.post("download_last_lua_file",{terminal_id:i.uid},!0),n=(t=o==null?void 0:o.result)!=null?t:o==null?void 0:o.data;if(n instanceof Blob){const r=URL.createObjectURL(n),d=document.createElement("a");d.href=r,d.download=`${i.uid}.lua`,d.click(),URL.revokeObjectURL(r),c.ElMessage.success("已开始下载")}else c.ElMessage.warning("未收到文件数据,请在 mixui 中下载")}catch(o){c.ElMessage.error("下载失败")}})}function Ne(i){c.ElMessageBox.confirm(`确认对终端「${i.name||i.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{c.ElMessage.success("已提交备档(完整流程请在 mixui 终端管理中操作)")}).catch(()=>{})}function Se(i){c.ElMessageBox.confirm(`确认删除终端「${i.name||i.uid}」吗?`,"警告",{type:"warning"}).then(()=>V(null,null,function*(){try{yield _.api.post("terminal_delete",{uid:i.uid,id:i.id},!0),c.ElMessage.success("删除成功"),yield x()}catch(t){c.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{x()}),(i,t)=>{const o=k.ElIcon,n=k.ElInput,r=k.ElOption,d=k.ElSelect,s=k.ElButton,C=k.ElTag,S=k.ElTableColumn,E=k.ElTable,K=k.ElPagination,b=k.ElFormItem,q=k.ElForm,D=k.ElDialog,p=k.ElDescriptionsItem,j=k.ElDescriptions,O=k.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["terminal-list mix-component",e.unref(X)]),style:e.normalizeStyle(e.unref(W))},[e.unref(y).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(U.value)},e.toDisplayString(g.conf.caption||g.conf.name),5)),e.createElementVNode("div",Fe,[e.createElementVNode("div",Re,[e.createVNode(n,{modelValue:F.value,"onUpdate:modelValue":t[0]||(t[0]=l=>F.value=l),placeholder:"搜索终端",size:"small",class:"toolbar-search",onKeyup:e.withKeys(le,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(o,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(ze.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(d,{modelValue:Q.value,"onUpdate:modelValue":t[1]||(t[1]=l=>Q.value=l),size:"small",class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(r,{label:"终端名称",value:"name"}),e.createVNode(r,{label:"终端编号",value:"uid"}),e.createVNode(r,{label:"终端别名",value:"alias"}),e.createVNode(r,{label:"描述",value:"description"}),e.createVNode(r,{label:"生产厂家",value:"maker"}),e.createVNode(r,{label:"终端配置编号",value:"config_id"})]),_:1},8,["modelValue"]),e.createVNode(s,{type:"primary",onClick:le},{default:e.withCtx(()=>[...t[24]||(t[24]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(s,{onClick:pe},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(y).showAddBtn?(e.openBlock(),e.createBlock(s,{key:0,type:"success",onClick:ge},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("添加终端",-1)])]),_:1})):e.createCommentVNode("",!0),e.unref(y).showImportBtn?(e.openBlock(),e.createBlock(s,{key:1,onClick:he},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("导入",-1)])]),_:1})):e.createCommentVNode("",!0),e.unref(y).showBatchRefreshBtn?(e.openBlock(),e.createBlock(s,{key:2,onClick:ye},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("批量刷新",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:T,class:"table-wrapper"},[e.createVNode(E,{data:ce.value,style:{width:"100%"},height:e.unref(B)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ue.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.prop},[l.visible?(e.openBlock(),e.createBlock(S,{key:0,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(h=>[l.prop==="online"?(e.openBlock(),e.createBlock(C,{key:0,type:J(h.row)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(J(h.row)?"在线":"离线"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",Pe,e.toDisplayString(me(h.row,l.prop)),1))]),_:2},1032,["label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(S,{label:"操作","min-width":"320",fixed:"right"},{default:e.withCtx(l=>[e.unref(y).showViewBtn?(e.openBlock(),e.createBlock(s,{key:0,size:"small",onClick:h=>Ve(l.row)},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showEditBtn?(e.openBlock(),e.createBlock(s,{key:1,size:"small",type:"primary",onClick:h=>ke(l.row)},{default:e.withCtx(()=>[...t[30]||(t[30]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showSyncBtn?(e.openBlock(),e.createBlock(s,{key:2,size:"small",onClick:h=>xe(l.row)},{default:e.withCtx(()=>[...t[31]||(t[31]=[e.createTextVNode("刷新",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showRestartBtn?(e.openBlock(),e.createBlock(s,{key:3,size:"small",onClick:h=>_e(l.row)},{default:e.withCtx(()=>[...t[32]||(t[32]=[e.createTextVNode("重启",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showUpgradeBtn?(e.openBlock(),e.createBlock(s,{key:4,size:"small",onClick:h=>Ce(l.row)},{default:e.withCtx(()=>[...t[33]||(t[33]=[e.createTextVNode("升级",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showDownloadBtn?(e.openBlock(),e.createBlock(s,{key:5,size:"small",onClick:h=>Be(l.row)},{default:e.withCtx(()=>[...t[34]||(t[34]=[e.createTextVNode("下载",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showArchiveBtn?(e.openBlock(),e.createBlock(s,{key:6,size:"small",type:"info",onClick:h=>Ne(l.row)},{default:e.withCtx(()=>[...t[35]||(t[35]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showDeleteBtn?(e.openBlock(),e.createBlock(s,{key:7,size:"small",type:"danger",onClick:h=>Se(l.row)},{default:e.withCtx(()=>[...t[36]||(t[36]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data","height"])],512),e.createElementVNode("div",$e,[e.createVNode(K,{"current-page":w.current,"onUpdate:currentPage":t[2]||(t[2]=l=>w.current=l),"page-size":w.pageSize,"onUpdate:pageSize":t[3]||(t[3]=l=>w.pageSize=l),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:w.total,onSizeChange:fe,onCurrentChange:be},null,8,["current-page","page-size","total"])])]),e.renderSlot(i.$slots,"default",{},void 0,!0)],6)),[[O,Y.value]]),e.createVNode(D,{modelValue:M.value,"onUpdate:modelValue":t[12]||(t[12]=l=>M.value=l),title:"添加终端",width:"640px","destroy-on-close":"",onClosed:P},{footer:e.withCtx(()=>[e.createVNode(s,{onClick:t[11]||(t[11]=l=>M.value=!1)},{default:e.withCtx(()=>[...t[37]||(t[37]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:N.value,onClick:ve},{default:e.withCtx(()=>[...t[38]||(t[38]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(q,{model:a,"label-width":"120px"},{default:e.withCtx(()=>[e.createVNode(b,{label:"终端编号",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.uid,"onUpdate:modelValue":t[4]||(t[4]=l=>a.uid=l),placeholder:"必填,唯一编号"},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.name,"onUpdate:modelValue":t[5]||(t[5]=l=>a.name=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.alias,"onUpdate:modelValue":t[6]||(t[6]=l=>a.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端类型",required:""},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.type,"onUpdate:modelValue":t[7]||(t[7]=l=>a.type=l),class:"w-full",filterable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(H,l=>e.createVNode(r,{key:l.value,label:l.label,value:l.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端配置"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.config_id,"onUpdate:modelValue":t[8]||(t[8]=l=>a.config_id=l),class:"w-full",filterable:"",clearable:"",placeholder:"请选择"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,l=>(e.openBlock(),e.createBlock(r,{key:l.uid,label:l.name,value:l.uid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(b,{label:"生产厂家"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.maker,"onUpdate:modelValue":t[9]||(t[9]=l=>a.maker=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.description,"onUpdate:modelValue":t[10]||(t[10]=l=>a.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(D,{modelValue:L.value,"onUpdate:modelValue":t[21]||(t[21]=l=>L.value=l),title:"编辑终端",width:"640px","destroy-on-close":"",onClosed:P},{footer:e.withCtx(()=>[e.createVNode(s,{onClick:t[20]||(t[20]=l=>L.value=!1)},{default:e.withCtx(()=>[...t[39]||(t[39]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:N.value,onClick:we},{default:e.withCtx(()=>[...t[40]||(t[40]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(q,{model:a,"label-width":"120px"},{default:e.withCtx(()=>[e.createVNode(b,{label:"终端编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.uid,"onUpdate:modelValue":t[13]||(t[13]=l=>a.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.name,"onUpdate:modelValue":t[14]||(t[14]=l=>a.name=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.alias,"onUpdate:modelValue":t[15]||(t[15]=l=>a.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端类型",required:""},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.type,"onUpdate:modelValue":t[16]||(t[16]=l=>a.type=l),class:"w-full",filterable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(H,l=>e.createVNode(r,{key:l.value,label:l.label,value:l.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端配置"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.config_id,"onUpdate:modelValue":t[17]||(t[17]=l=>a.config_id=l),class:"w-full",filterable:"",clearable:"",placeholder:"请选择"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,l=>(e.openBlock(),e.createBlock(r,{key:l.uid,label:l.name,value:l.uid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(b,{label:"生产厂家"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.maker,"onUpdate:modelValue":t[18]||(t[18]=l=>a.maker=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.description,"onUpdate:modelValue":t[19]||(t[19]=l=>a.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(D,{modelValue:$.value,"onUpdate:modelValue":t[23]||(t[23]=l=>$.value=l),title:"终端详情",width:"760px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(s,{type:"primary",onClick:t[22]||(t[22]=l=>$.value=!1)},{default:e.withCtx(()=>[...t[41]||(t[41]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Ke,[m.value?(e.openBlock(),e.createBlock(j,{key:0,column:2,border:""},{default:e.withCtx(()=>[e.createVNode(p,{label:"终端编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"终端名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"终端别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"终端类型"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(te(m.value.type)),1)]),_:1}),e.createVNode(p,{label:"终端配置编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.config_id)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"终端状态"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(J(m.value)?"在线":"离线"),1)]),_:1}),e.createVNode(p,{label:"信号值"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=A(m.value,"csq"))!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"最近上报时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.last_publish_time)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"上一次连接时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.last_online_time)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"流量卡号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=A(m.value,"nominal.ICCID"))!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"LUA版本"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=A(m.value,"nominal.LUA"))!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"MCU版本"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=A(m.value,"nominal.MCU"))!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"生产厂家"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.maker)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.description)!=null?l:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)])),[[O,Z.value]])]),_:1},8,["modelValue"])],64)}}})),Ge=_._export_sfc(Qe,[["__scopeId","data-v-52fdb7ae"]]);exports.default=Ge;
|
|
1
|
+
"use strict";var Ee=Object.defineProperty,De=Object.defineProperties;var Te=Object.getOwnPropertyDescriptors;var oe=Object.getOwnPropertySymbols;var Ue=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable;var ne=(g,u,f)=>u in g?Ee(g,u,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[u]=f,z=(g,u)=>{for(var f in u||(u={}))Ue.call(u,f)&&ne(g,f,u[f]);if(oe)for(var f of oe(u))Ae.call(u,f)&&ne(g,f,u[f]);return g},ee=(g,u)=>De(g,Te(u));var V=(g,u,f)=>new Promise((I,y)=>{var X=B=>{try{T(f.next(B))}catch(U){y(U)}},W=B=>{try{T(f.throw(B))}catch(U){y(U)}},T=B=>B.done?I(B.value):Promise.resolve(B.value).then(X,W);T((f=f.apply(g,u)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),Me=require("./useTableBodyHeight-pf87uGjw.cjs"),Le=require("./useMixiotPanelSurface-CAZgexY5.cjs"),qe=require("./BaseComponent-B5ivgb3E.cjs"),_=require("./index-DYr57ceS.cjs"),Oe=require("./titleStyle-NSnz6cUg.cjs"),c=require("element-plus"),ze=require("@element-plus/icons-vue"),Ie=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),re=require("./ele-lst-icon-CrxnHZ-A.cjs"),Fe={class:"mix-body"},Re={class:"toolbar"},Pe={key:1},$e={class:"pagination"},Ke={class:"view-body"},je={DEFAULT_ICON:re.DEFAULT_ICON,ACTIVE_ICON:re.ACTIVE_ICON,NAME_CN:"终端列表",NAME_EN:"TerminalList",ORDER:5,PLATFORM:["pc","screen"]},Xe={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:"name",label:"终端名称",width:140,visible:!0},{key:"uid",label:"终端编号",width:140,visible:!0},{key:"alias",label:"终端别名",width:120,visible:!0},{key:"type",label:"终端类型",width:160,visible:!0},{key:"config_id",label:"终端配置编号",width:130,visible:!0},{key:"online",label:"终端状态",width:100,visible:!0},{key:"csq",label:"信号值",width:90,visible:!0},{key:"last_publish_time",label:"最近上报时间",width:170,visible:!0},{key:"last_online_time",label:"上一次连接时间",width:170,visible:!0},{key:"nominal.ICCID",label:"流量卡号",width:160,visible:!0},{key:"nominal.LUA",label:"LUA版本号",width:120,visible:!0},{key:"nominal.MCU",label:"MCU版本号",width:120,visible:!0},{key:"maker",label:"生产厂家",width:120,visible:!0},{key:"description",label:"描述",minWidth:140,visible:!0},{key:"created",label:"创建时间",width:170,visible:!0}]},se=[{name:"终端名称",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showImportBtn:!0,showBatchRefreshBtn:!0,showViewBtn:!0,showEditBtn:!0,showSyncBtn:!0,showRestartBtn:!0,showUpgradeBtn:!0,showDownloadBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0,uid:"终端编号",uid_visible:!0,alias:"终端别名",alias_visible:!0,type:"终端类型",type_visible:!0,config_id:"终端配置编号",config_id_visible:!0,online:"终端状态",online_visible:!0,csq:"信号值",csq_visible:!0,last_publish_time:"最近上报时间",last_publish_time_visible:!0,last_online_time:"上一次连接时间",last_online_time_visible:!0,"nominal.ICCID":"流量卡号","nominal.ICCID_visible":!0,"nominal.LUA":"LUA版本号","nominal.LUA_visible":!0,"nominal.MCU":"MCU版本号","nominal.MCU_visible":!0,maker:"生产厂家",maker_visible:!0,description:"描述",description_visible:!0,created:"创建时间",created_visible:!0}],We=[{key:"showAddBtn",label:"添加终端",type:"checkbox",group:"命令组"},{key:"showImportBtn",label:"导入",type:"checkbox",group:"命令组"},{key:"showBatchRefreshBtn",label:"批量刷新",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组"},{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showSyncBtn",label:"刷新",type:"checkbox",group:"操作组"},{key:"showRestartBtn",label:"重启",type:"checkbox",group:"操作组"},{key:"showUpgradeBtn",label:"升级",type:"checkbox",group:"操作组"},{key:"showDownloadBtn",label:"下载",type:"checkbox",group:"操作组"},{key:"showArchiveBtn",label:"资料备档",type:"checkbox",group:"操作组"},{key:"showDeleteBtn",label:"删除",type:"checkbox",group:"操作组"},{key:"name",label:"参数名称"},{key:"uid",label:"终端编号",checkable:!0,checkboxKey:"uid_visible"},{key:"alias",label:"终端别名",checkable:!0,checkboxKey:"alias_visible"},{key:"type",label:"终端类型",checkable:!0,checkboxKey:"type_visible"},{key:"config_id",label:"终端配置编号",checkable:!0,checkboxKey:"config_id_visible"},{key:"online",label:"终端状态",checkable:!0,checkboxKey:"online_visible"},{key:"csq",label:"信号值",checkable:!0,checkboxKey:"csq_visible"},{key:"last_publish_time",label:"最近上报时间",checkable:!0,checkboxKey:"last_publish_time_visible"},{key:"last_online_time",label:"上一次连接时间",checkable:!0,checkboxKey:"last_online_time_visible"},{key:"nominal.ICCID",label:"流量卡号",checkable:!0,checkboxKey:"nominal.ICCID_visible"},{key:"nominal.LUA",label:"LUA版本号",checkable:!0,checkboxKey:"nominal.LUA_visible"},{key:"nominal.MCU",label:"MCU版本号",checkable:!0,checkboxKey:"nominal.MCU_visible"},{key:"maker",label:"生产厂家",checkable:!0,checkboxKey:"maker_visible"},{key:"description",label:"描述",checkable:!0,checkboxKey:"description_visible"},{key:"created",label:"创建时间",checkable:!0,checkboxKey:"created_visible"}],He={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"},{value:"maker",label:"setting.gridFields.deviceMaker"},{value:"config_id",label:"setting.gridFields.configIdentifier"}]},Je={DEFAULT:je,OPTIONS:Xe,DATA:se,PARAMS:We,COMMON:He},Qe=e.defineComponent(ee(z({},Je),{__name:"terminalList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""},terminalUidList:{default:()=>[]},terminalOnlineFilter:{default:null}},setup(g){const u=g;class f extends qe.BaseComponent{getDataBool(t,o){var r,d;const n=(d=(r=this.props.conf)==null?void 0:r.data)==null?void 0:d[0];return n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0?!!n[t]:this.getOptionValue(t,o)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showAddBtn:this.getDataBool("showAddBtn",!0),showImportBtn:this.getDataBool("showImportBtn",!0),showBatchRefreshBtn:this.getDataBool("showBatchRefreshBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showSyncBtn:this.getDataBool("showSyncBtn",!0),showRestartBtn:this.getDataBool("showRestartBtn",!0),showUpgradeBtn:this.getDataBool("showUpgradeBtn",!0),showDownloadBtn:this.getDataBool("showDownloadBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(se));else{const o=this.props.conf.data[0],n={showAddBtn:!0,showImportBtn:!0,showBatchRefreshBtn:!0,showViewBtn:!0,showEditBtn:!0,showSyncBtn:!0,showRestartBtn:!0,showUpgradeBtn:!0,showDownloadBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[r,d]of Object.entries(n))o[r]===void 0&&(o[r]=d)}}}const I=new f(u,"terminalList");I.setupLifecycle();const y=I.getStyle(),{mixiotPanelClass:X,mixiotPanelRootStyle:W}=Le.useMixiotPanelSurface(y),{tableWrapRef:T,tableBodyHeight:B}=Me.useTableBodyHeight(),U=e.computed(()=>Oe.generateTitleStyle(u.conf.options)),ue=e.computed(()=>{var o,n,r,d;const i=((n=(o=u.conf)==null?void 0:o.options)==null?void 0:n.columns)||[],t=((d=(r=u.conf)==null?void 0:r.data)==null?void 0:d[0])||{};return(Array.isArray(i)?i:[]).map(s=>{const C=t[s.key],S=`${s.key}_visible`,E=t[S];return{prop:s.key,label:C!==void 0&&C!==""?String(C):s.label,width:s.width,minWidth:s.minWidth,visible:E!==void 0?!!E:s.visible!==!1}})}),H=[{label:"Mixlinker Aprus-M",value:"Mixlinker Aprus-M"},{label:"Mixlinker Aprus-X",value:"Mixlinker Aprus-X"},{label:"Mixlinker Aprus-AS",value:"Mixlinker Aprus-AS"},{label:"第三方终端",value:"Other"},{label:"数据模拟",value:"Mixlinker DataSimulate"},{label:"UFS",value:"UFS"}];function te(i){if(i==null||i==="")return"";const t=String(i),o=H.find(n=>n.value===t);return o?o.label:t}function A(i,t){return t.split(".").reduce((o,n)=>{if(!(o==null||typeof o!="object"))return o[n]},i)}function J(i){const t=i.online;return t===1||t===!0||t==="1"}const w=e.reactive({current:1,pageSize:10,total:0}),F=e.ref(""),Q=e.ref("name"),G=e.ref([]),Y=e.ref(!1);function de(){const i=[["uid","!=","fidiser"]],t=F.value.trim();return t&&i.push([Q.value,"like",`%${t}%`]),(u.terminalOnlineFilter===0||u.terminalOnlineFilter===1)&&i.push(["online","=",u.terminalOnlineFilter]),Ie.appendCommonDesignerWhereAnd(u.conf.common,i),{page_index:w.current,page_size:w.pageSize,where_and:JSON.stringify(i)}}function x(){return V(this,null,function*(){var i,t;Y.value=!0;try{const o=yield _.api.post("terminal_list",de(),!0),n=(i=o==null?void 0:o.result)!=null?i:o;let r=Array.isArray(n==null?void 0:n.data)?[...n.data]:[];if((t=u.terminalUidList)!=null&&t.length){const s=new Set(u.terminalUidList.map(String));r=r.filter(C=>s.has(String(C.uid)))}G.value=r;const d=n==null?void 0:n.total_records;w.total=typeof d=="number"?d:r.length,o&&o.code!==void 0&&o.code!==200&&console.warn("[terminalList] 列表接口非成功",o.msg||o.info,o)}catch(o){console.error(o),G.value=[],w.total=0}finally{Y.value=!1}})}const ce=e.computed(()=>G.value);function me(i,t){if(t==="type")return te(i.type);const o=A(i,t);return o==null?"":String(o)}function le(){w.current=1,x()}function pe(){F.value="",w.current=1,x()}function fe(){w.current=1,x()}function be(){x()}e.watch(()=>{var i;return[(i=u.terminalUidList)==null?void 0:i.join(","),u.terminalOnlineFilter].join("|")},()=>{w.current=1,x()});function he(){c.ElMessage.info("批量导入终端请在 mixui「终端管理」中使用导入功能")}function ye(){c.ElMessage.info("批量刷新请在 mixui「终端管理」中操作(需 user_action 接口)")}const M=e.ref(!1),L=e.ref(!1),N=e.ref(!1),R=e.ref([]),a=e.reactive({id:0,uid:"",name:"",alias:"",type:"Mixlinker Aprus-X",config_id:"",maker:"",description:"",rsa_privatekey:"",auto_upgrade:0,is_available:1});function ae(){return V(this,null,function*(){var i;try{const t=yield _.api.post("terminal_config_list",{select:["id","uid","name"]},!0),o=(i=t==null?void 0:t.result)!=null?i:t;R.value=Array.isArray(o==null?void 0:o.data)?o.data:[]}catch(t){R.value=[]}})}function P(){a.id=0,a.uid="",a.name="",a.alias="",a.type="Mixlinker Aprus-X",a.config_id="",a.maker="",a.description="",a.rsa_privatekey="",a.auto_upgrade=0,a.is_available=1}function ge(){return V(this,null,function*(){P(),yield ae(),M.value=!0})}function ke(i){return V(this,null,function*(){var t,o,n,r,d,s,C,S,E,K,b,q,D,p,j,O,l;P(),L.value=!0,N.value=!0,yield ae();try{const h=yield _.api.post("terminal_item",{uid:i.uid},!0),v=(t=h==null?void 0:h.result)!=null?t:h;v&&typeof v=="object"?(a.id=Number(v.id)||0,a.uid=String((n=(o=v.uid)!=null?o:i.uid)!=null?n:""),a.name=String((r=v.name)!=null?r:""),a.alias=String((d=v.alias)!=null?d:""),a.type=String((s=v.type)!=null?s:"Mixlinker Aprus-X"),a.config_id=String((C=v.config_id)!=null?C:""),a.maker=String((S=v.maker)!=null?S:""),a.description=String((E=v.description)!=null?E:""),a.rsa_privatekey=String((K=v.rsa_privatekey)!=null?K:""),a.auto_upgrade=Number(v.auto_upgrade)||0,a.is_available=v.is_available!==void 0?Number(v.is_available):1):(a.uid=String(i.uid),a.name=String((b=i.name)!=null?b:""),a.alias=String((q=i.alias)!=null?q:""),a.type=String((D=i.type)!=null?D:"Mixlinker Aprus-X"),a.config_id=String((p=i.config_id)!=null?p:""),a.maker=String((j=i.maker)!=null?j:""),a.description=String((O=i.description)!=null?O:""))}catch(h){a.uid=String(i.uid),a.name=String((l=i.name)!=null?l:""),c.ElMessage.warning("拉取终端详情失败,已使用列表行数据编辑")}finally{N.value=!1}})}function ie(){return{id:a.id,uid:a.uid.trim(),name:a.name.trim(),alias:a.alias.trim(),description:a.description,type:a.type,maker:a.maker,config_id:a.config_id,rsa_privatekey:a.rsa_privatekey,auto_upgrade:a.auto_upgrade,is_available:a.is_available,addition:"[]"}}function ve(){return V(this,null,function*(){var i,t;if(!((i=a.uid)!=null&&i.trim())||!((t=a.name)!=null&&t.trim())){c.ElMessage.warning("请填写终端编号与名称");return}N.value=!0;try{yield _.api.post("terminal_create",ee(z({},ie()),{id:0}),!0),c.ElMessage.success("添加成功"),M.value=!1,yield x()}catch(o){c.ElMessage.error("添加失败")}finally{N.value=!1}})}function we(){return V(this,null,function*(){var i;if(!((i=a.name)!=null&&i.trim())){c.ElMessage.warning("请填写终端名称");return}N.value=!0;try{yield _.api.post("terminal_update",ie(),!0),c.ElMessage.success("保存成功"),L.value=!1,yield x()}catch(t){c.ElMessage.error("保存失败")}finally{N.value=!1}})}const $=e.ref(!1),Z=e.ref(!1),m=e.ref(null);function Ve(i){return V(this,null,function*(){m.value=null,$.value=!0,Z.value=!0;try{const t=yield _.api.post("terminal_item",{uid:i.uid},!0),o=t==null?void 0:t.result;o&&typeof o=="object"?m.value=o:(m.value=z({},i),c.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){m.value=z({},i),c.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{Z.value=!1}})}function xe(i){return V(this,null,function*(){try{(yield _.api.post("terminal_sync",{terminal_id:i.uid},!0)).code===200&&(c.ElMessage.success("已触发同步"),yield x())}catch(t){c.ElMessage.error("同步失败")}})}function _e(i){return V(this,null,function*(){try{(yield _.api.post("terminal_restart",{terminal_id:i.uid,command:"Reboot"},!0)).code===200&&(c.ElMessage.success("已下发重启指令"),yield x())}catch(t){c.ElMessage.error("重启指令失败")}})}function Ce(i){return V(this,null,function*(){var r,d;const t=String((r=i.uid)!=null?r:""),o=String((d=i.type)!=null?d:""),n=t.startsWith("AX")||o==="Mixlinker Aprus-X"||o.includes("Aprus-X")?"AXUpgrade":"Upgrade";try{(yield _.api.post("upgrade_lua",{terminal_id:i.uid,command:n,value:"LUA"},!0)).code===200&&(c.ElMessage.success("已下发升级指令"),yield x())}catch(s){c.ElMessage.error("升级指令失败")}})}function Be(i){return V(this,null,function*(){var t;try{const o=yield _.api.post("download_last_lua_file",{terminal_id:i.uid},!0),n=(t=o==null?void 0:o.result)!=null?t:o==null?void 0:o.data;if(n instanceof Blob){const r=URL.createObjectURL(n),d=document.createElement("a");d.href=r,d.download=`${i.uid}.lua`,d.click(),URL.revokeObjectURL(r),c.ElMessage.success("已开始下载")}else c.ElMessage.warning("未收到文件数据,请在 mixui 中下载")}catch(o){c.ElMessage.error("下载失败")}})}function Ne(i){c.ElMessageBox.confirm(`确认对终端「${i.name||i.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{c.ElMessage.success("已提交备档(完整流程请在 mixui 终端管理中操作)")}).catch(()=>{})}function Se(i){c.ElMessageBox.confirm(`确认删除终端「${i.name||i.uid}」吗?`,"警告",{type:"warning"}).then(()=>V(null,null,function*(){try{yield _.api.post("terminal_delete",{uid:i.uid,id:i.id},!0),c.ElMessage.success("删除成功"),yield x()}catch(t){c.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{x()}),(i,t)=>{const o=k.ElIcon,n=k.ElInput,r=k.ElOption,d=k.ElSelect,s=k.ElButton,C=k.ElTag,S=k.ElTableColumn,E=k.ElTable,K=k.ElPagination,b=k.ElFormItem,q=k.ElForm,D=k.ElDialog,p=k.ElDescriptionsItem,j=k.ElDescriptions,O=k.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["terminal-list mix-component",e.unref(X)]),style:e.normalizeStyle(e.unref(W))},[e.unref(y).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(U.value)},e.toDisplayString(g.conf.caption||g.conf.name),5)),e.createElementVNode("div",Fe,[e.createElementVNode("div",Re,[e.createVNode(n,{modelValue:F.value,"onUpdate:modelValue":t[0]||(t[0]=l=>F.value=l),placeholder:"搜索终端",size:"small",class:"toolbar-search",onKeyup:e.withKeys(le,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(o,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(ze.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(d,{modelValue:Q.value,"onUpdate:modelValue":t[1]||(t[1]=l=>Q.value=l),size:"small",class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(r,{label:"终端名称",value:"name"}),e.createVNode(r,{label:"终端编号",value:"uid"}),e.createVNode(r,{label:"终端别名",value:"alias"}),e.createVNode(r,{label:"描述",value:"description"}),e.createVNode(r,{label:"生产厂家",value:"maker"}),e.createVNode(r,{label:"终端配置编号",value:"config_id"})]),_:1},8,["modelValue"]),e.createVNode(s,{type:"primary",onClick:le},{default:e.withCtx(()=>[...t[24]||(t[24]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(s,{onClick:pe},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(y).showAddBtn?(e.openBlock(),e.createBlock(s,{key:0,type:"success",onClick:ge},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("添加终端",-1)])]),_:1})):e.createCommentVNode("",!0),e.unref(y).showImportBtn?(e.openBlock(),e.createBlock(s,{key:1,onClick:he},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("导入",-1)])]),_:1})):e.createCommentVNode("",!0),e.unref(y).showBatchRefreshBtn?(e.openBlock(),e.createBlock(s,{key:2,onClick:ye},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("批量刷新",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:T,class:"table-wrapper"},[e.createVNode(E,{data:ce.value,style:{width:"100%"},height:e.unref(B)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ue.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.prop},[l.visible?(e.openBlock(),e.createBlock(S,{key:0,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(h=>[l.prop==="online"?(e.openBlock(),e.createBlock(C,{key:0,type:J(h.row)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(J(h.row)?"在线":"离线"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",Pe,e.toDisplayString(me(h.row,l.prop)),1))]),_:2},1032,["label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(S,{label:"操作","min-width":"320",fixed:"right"},{default:e.withCtx(l=>[e.unref(y).showViewBtn?(e.openBlock(),e.createBlock(s,{key:0,size:"small",onClick:h=>Ve(l.row)},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showEditBtn?(e.openBlock(),e.createBlock(s,{key:1,size:"small",type:"primary",onClick:h=>ke(l.row)},{default:e.withCtx(()=>[...t[30]||(t[30]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showSyncBtn?(e.openBlock(),e.createBlock(s,{key:2,size:"small",onClick:h=>xe(l.row)},{default:e.withCtx(()=>[...t[31]||(t[31]=[e.createTextVNode("刷新",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showRestartBtn?(e.openBlock(),e.createBlock(s,{key:3,size:"small",onClick:h=>_e(l.row)},{default:e.withCtx(()=>[...t[32]||(t[32]=[e.createTextVNode("重启",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showUpgradeBtn?(e.openBlock(),e.createBlock(s,{key:4,size:"small",onClick:h=>Ce(l.row)},{default:e.withCtx(()=>[...t[33]||(t[33]=[e.createTextVNode("升级",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showDownloadBtn?(e.openBlock(),e.createBlock(s,{key:5,size:"small",onClick:h=>Be(l.row)},{default:e.withCtx(()=>[...t[34]||(t[34]=[e.createTextVNode("下载",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showArchiveBtn?(e.openBlock(),e.createBlock(s,{key:6,size:"small",type:"info",onClick:h=>Ne(l.row)},{default:e.withCtx(()=>[...t[35]||(t[35]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(y).showDeleteBtn?(e.openBlock(),e.createBlock(s,{key:7,size:"small",type:"danger",onClick:h=>Se(l.row)},{default:e.withCtx(()=>[...t[36]||(t[36]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data","height"])],512),e.createElementVNode("div",$e,[e.createVNode(K,{"current-page":w.current,"onUpdate:currentPage":t[2]||(t[2]=l=>w.current=l),"page-size":w.pageSize,"onUpdate:pageSize":t[3]||(t[3]=l=>w.pageSize=l),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:w.total,onSizeChange:fe,onCurrentChange:be},null,8,["current-page","page-size","total"])])]),e.renderSlot(i.$slots,"default",{},void 0,!0)],6)),[[O,Y.value]]),e.createVNode(D,{modelValue:M.value,"onUpdate:modelValue":t[12]||(t[12]=l=>M.value=l),title:"添加终端",width:"640px","destroy-on-close":"",onClosed:P},{footer:e.withCtx(()=>[e.createVNode(s,{onClick:t[11]||(t[11]=l=>M.value=!1)},{default:e.withCtx(()=>[...t[37]||(t[37]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:N.value,onClick:ve},{default:e.withCtx(()=>[...t[38]||(t[38]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(q,{model:a,"label-width":"120px"},{default:e.withCtx(()=>[e.createVNode(b,{label:"终端编号",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.uid,"onUpdate:modelValue":t[4]||(t[4]=l=>a.uid=l),placeholder:"必填,唯一编号"},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.name,"onUpdate:modelValue":t[5]||(t[5]=l=>a.name=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.alias,"onUpdate:modelValue":t[6]||(t[6]=l=>a.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端类型",required:""},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.type,"onUpdate:modelValue":t[7]||(t[7]=l=>a.type=l),class:"w-full",filterable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(H,l=>e.createVNode(r,{key:l.value,label:l.label,value:l.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端配置"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.config_id,"onUpdate:modelValue":t[8]||(t[8]=l=>a.config_id=l),class:"w-full",filterable:"",clearable:"",placeholder:"请选择"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,l=>(e.openBlock(),e.createBlock(r,{key:l.uid,label:l.name,value:l.uid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(b,{label:"生产厂家"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.maker,"onUpdate:modelValue":t[9]||(t[9]=l=>a.maker=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.description,"onUpdate:modelValue":t[10]||(t[10]=l=>a.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(D,{modelValue:L.value,"onUpdate:modelValue":t[21]||(t[21]=l=>L.value=l),title:"编辑终端",width:"640px","destroy-on-close":"",onClosed:P},{footer:e.withCtx(()=>[e.createVNode(s,{onClick:t[20]||(t[20]=l=>L.value=!1)},{default:e.withCtx(()=>[...t[39]||(t[39]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:N.value,onClick:we},{default:e.withCtx(()=>[...t[40]||(t[40]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(q,{model:a,"label-width":"120px"},{default:e.withCtx(()=>[e.createVNode(b,{label:"终端编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.uid,"onUpdate:modelValue":t[13]||(t[13]=l=>a.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.name,"onUpdate:modelValue":t[14]||(t[14]=l=>a.name=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.alias,"onUpdate:modelValue":t[15]||(t[15]=l=>a.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端类型",required:""},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.type,"onUpdate:modelValue":t[16]||(t[16]=l=>a.type=l),class:"w-full",filterable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(H,l=>e.createVNode(r,{key:l.value,label:l.label,value:l.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(b,{label:"终端配置"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.config_id,"onUpdate:modelValue":t[17]||(t[17]=l=>a.config_id=l),class:"w-full",filterable:"",clearable:"",placeholder:"请选择"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,l=>(e.openBlock(),e.createBlock(r,{key:l.uid,label:l.name,value:l.uid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(b,{label:"生产厂家"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.maker,"onUpdate:modelValue":t[18]||(t[18]=l=>a.maker=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.description,"onUpdate:modelValue":t[19]||(t[19]=l=>a.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(D,{modelValue:$.value,"onUpdate:modelValue":t[23]||(t[23]=l=>$.value=l),title:"终端详情",width:"760px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(s,{type:"primary",onClick:t[22]||(t[22]=l=>$.value=!1)},{default:e.withCtx(()=>[...t[41]||(t[41]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Ke,[m.value?(e.openBlock(),e.createBlock(j,{key:0,column:2,border:""},{default:e.withCtx(()=>[e.createVNode(p,{label:"终端编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"终端名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"终端别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"终端类型"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(te(m.value.type)),1)]),_:1}),e.createVNode(p,{label:"终端配置编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.config_id)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"终端状态"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(J(m.value)?"在线":"离线"),1)]),_:1}),e.createVNode(p,{label:"信号值"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=A(m.value,"csq"))!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"最近上报时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.last_publish_time)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"上一次连接时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.last_online_time)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"流量卡号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=A(m.value,"nominal.ICCID"))!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"LUA版本"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=A(m.value,"nominal.LUA"))!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"MCU版本"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=A(m.value,"nominal.MCU"))!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"生产厂家"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.maker)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=m.value.description)!=null?l:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)])),[[O,Z.value]])]),_:1},8,["modelValue"])],64)}}})),Ge=_._export_sfc(Qe,[["__scopeId","data-v-52fdb7ae"]]);exports.default=Ge;
|