mixdashboards 1.0.96 → 1.0.97
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-RkrbGXqw.cjs → BaseComponent-C42zZPAg.cjs} +1 -1
- package/dist/{BaseComponent-DjTaS3b5.js → BaseComponent-D7kfvQid.js} +3 -3
- package/dist/{EChartComponentBase-CJ2oE_sT.js → EChartComponentBase-CrdwK43r.js} +2 -2
- package/dist/{EChartComponentBase-qlAnyb_l.cjs → EChartComponentBase-pfIekVB2.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-CsijgbCc.js → EmergencyPlanPanel-CS1QmwbK.js} +1 -1
- package/dist/{EmergencyPlanPanel-BA9FM_Df.cjs → EmergencyPlanPanel-CjLGAAbP.cjs} +1 -1
- package/dist/{HistoryPlanDialog-BljCUf-c.js → HistoryPlanDialog-B1wtkugg.js} +1 -1
- package/dist/{HistoryPlanDialog-C5SMO59g.cjs → HistoryPlanDialog-jhNV_Oqc.cjs} +1 -1
- package/dist/{MixiotAppDetailPage-BmtDmX84.js → MixiotAppDetailPage-BiZoXtfI.js} +1 -1
- package/dist/{MixiotAppDetailPage-BNypqgEL.cjs → MixiotAppDetailPage-CrJRBNfc.cjs} +1 -1
- package/dist/{MonitoringMap-Cw6sf9w8.cjs → MonitoringMap-Btz8PiVj.cjs} +1 -1
- package/dist/{MonitoringMap-CECmA0SN.js → MonitoringMap-Dzb6SdgR.js} +2 -2
- package/dist/{UniverSheet-BNa65EnX.cjs → UniverSheet-DHfcCwtp.cjs} +1 -1
- package/dist/{UniverSheet-CSK6b_Gq.js → UniverSheet-DuL-rk5s.js} +2 -2
- package/dist/{accelerationChart-Bs3gquS_.js → accelerationChart-B04m3kGz.js} +2 -2
- package/dist/{accelerationChart-DJKTUpIg.cjs → accelerationChart-DrJ_eq7I.cjs} +1 -1
- package/dist/{actionItem-D-lybTkI.cjs → actionItem-Zm6EHUHY.cjs} +1 -1
- package/dist/{actionItem-CGiIOupb.js → actionItem-e-PLFmgU.js} +2 -2
- package/dist/{alarmLevelChart-BedaJ0ln.js → alarmLevelChart-DdgByLdg.js} +2 -2
- package/dist/{alarmLevelChart-CnAubt6N.cjs → alarmLevelChart-Vu7rFfmM.cjs} +1 -1
- package/dist/{alertTable-CZIv5NPa.cjs → alertTable-C4NnDMYg.cjs} +1 -1
- package/dist/{alertTable-BiKBlPdp.js → alertTable-C5z7ILNj.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-BASCy7Od.cjs → aliasObjectSelectorDemo-BoN6KxiC.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-BlsCrn2H.js → aliasObjectSelectorDemo-C1vc4Qe6.js} +1 -1
- package/dist/{annualRainfallChart-CkAou5Cl.cjs → annualRainfallChart-BdFRM0vA.cjs} +1 -1
- package/dist/{annualRainfallChart-BIRIsOC6.js → annualRainfallChart-Cte3Faau.js} +2 -2
- package/dist/{aqi-CbWYzUle.js → aqi-BixnVgn2.js} +9 -9
- package/dist/{aqi-FtDn-I2B.cjs → aqi-Cgb3Vwad.cjs} +1 -1
- package/dist/{aqiIndass-CJBdnhy7.cjs → aqiIndass-Cs9Ihmtw.cjs} +1 -1
- package/dist/{aqiIndass-C54I5pbk.js → aqiIndass-DgtV1bOL.js} +15 -15
- package/dist/{areaDeformCurve-CsBGXGz_.cjs → areaDeformCurve-DUTOFO7B.cjs} +1 -1
- package/dist/{areaDeformCurve-zHt1nUXn.js → areaDeformCurve-tiJ0tblV.js} +2 -2
- package/dist/{arrayCard-B5qhwDS-.js → arrayCard-BhMc72ZG.js} +2 -2
- package/dist/{arrayCard-dd1wcHZA.cjs → arrayCard-DkZVKQGQ.cjs} +1 -1
- package/dist/{audio-DJtqiqr4.js → audio-DGJ648Nc.js} +2 -2
- package/dist/{audio-Bhn3OdVR.cjs → audio-O6bMgHJQ.cjs} +1 -1
- package/dist/{bar-CSyK2lMO.js → bar-CEUnNrnA.js} +2 -2
- package/dist/{bar-Bizi49Xr.cjs → bar-D1DpfKwR.cjs} +1 -1
- package/dist/{basicShapeToolbox-CZQK6Rt6.cjs → basicShapeToolbox-COWozQbc.cjs} +1 -1
- package/dist/{basicShapeToolbox-zIOr0N5V.js → basicShapeToolbox-DuNotFN_.js} +3 -3
- package/dist/{bmp-CQcVSDfe.cjs → bmp-BdA3u_nP.cjs} +1 -1
- package/dist/{bmp-4eESJHlH.js → bmp-D_qPtSuK.js} +2 -2
- package/dist/{box-CuhJyRf_.js → box-Bny02hiJ.js} +2 -2
- package/dist/{box-B9socOkv.cjs → box-DDZH_UNM.cjs} +1 -1
- package/dist/{chartConfigPanel-BQyas1F0.cjs → chartConfigPanel-B9S6EiKT.cjs} +1 -1
- package/dist/{chartConfigPanel-C20BT47w.js → chartConfigPanel-DvzAeXQE.js} +1 -1
- package/dist/{circleBar-DVJyW9LH.cjs → circleBar-C-p-P2K3.cjs} +1 -1
- package/dist/{circleBar-BeY3L15T.js → circleBar-ISuDghgH.js} +8 -8
- package/dist/{clock-DBnLOxL_.cjs → clock-BAZ7gHGS.cjs} +1 -1
- package/dist/{clock-DA5iBBQ8.js → clock-o-g0Qpa7.js} +2 -2
- package/dist/{clt-CiKW8jcd.js → clt-CVEtdnpX.js} +2 -2
- package/dist/{clt-OLYinmkJ.cjs → clt-DPq4dqmh.cjs} +1 -1
- package/dist/{cmc-Bh-_i9kH.js → cmc-4m3QyBlX.js} +2 -2
- package/dist/{cmc-BE-Ewrvq.cjs → cmc-B-wg04Ri.cjs} +1 -1
- package/dist/{cmp-CVSAMKbU.js → cmp-DD8sRmv_.js} +11 -11
- package/dist/{cmp-iaHfbdNK.cjs → cmp-W-8LSAIe.cjs} +1 -1
- package/dist/{conclusionCard-D5xiKzR_.cjs → conclusionCard-BrrCOKf2.cjs} +1 -1
- package/dist/{conclusionCard-DwjxHYFj.js → conclusionCard-mbP-mRcJ.js} +2 -2
- package/dist/{controlList-DpDuLNSn.js → controlList-BrZys8D6.js} +3 -3
- package/dist/{controlList-DCPzxUM_.cjs → controlList-DlqgQ510.cjs} +1 -1
- package/dist/{controlRecordList-CJ_AxHDH.cjs → controlRecordList-B-lHEslj.cjs} +1 -1
- package/dist/{controlRecordList-D6nXya59.js → controlRecordList-BfQU3BYg.js} +3 -3
- package/dist/{controlRecordListAPP-DI2bQsxJ.js → controlRecordListAPP-CV33yLCF.js} +2 -2
- package/dist/{controlRecordListAPP-D_zBAsiN.cjs → controlRecordListAPP-DbSRJUMy.cjs} +1 -1
- package/dist/{crd-CcDmG4vb.cjs → crd-D8-JrYYm.cjs} +1 -1
- package/dist/{crd-lkPJO82B.js → crd-DpjRg2wi.js} +2 -2
- package/dist/{ctrBtn-DRsYW2No.cjs → ctrBtn-CKhVuncE.cjs} +1 -1
- package/dist/{ctrBtn-DvwSfbkm.js → ctrBtn-DVnTSpMy.js} +3 -3
- package/dist/{ctrSet-B9R55HTw.cjs → ctrSet-D3HJgviN.cjs} +1 -1
- package/dist/{ctrSet-c5IksNgS.js → ctrSet-DgMrl4yM.js} +3 -3
- package/dist/{ctrSwitch-UtaIh31f.cjs → ctrSwitch-CLQPCuk8.cjs} +1 -1
- package/dist/{ctrSwitch-mp2BJLO5.js → ctrSwitch-CabBqoqJ.js} +3 -3
- package/dist/{dataManagement-C1qj7hXO.cjs → dataManagement-CmBsCjjz.cjs} +1 -1
- package/dist/{dataManagement-ByXcFrdD.js → dataManagement-DiJg7jlN.js} +2 -2
- package/dist/{dataReport-76j5h8OP.js → dataReport-BRKlDrnT.js} +2 -2
- package/dist/{dataReport-Boo3SKHW.cjs → dataReport-C58Z1WyN.cjs} +1 -1
- package/dist/{dataTable-DZB3q_YR.js → dataTable-D9pJzwtQ.js} +1 -1
- package/dist/{dataTable-D70yu7Ow.cjs → dataTable-n4TQYX4v.cjs} +1 -1
- package/dist/{datetime-Bv70EgWb.js → datetime-B-KYzzjs.js} +2 -2
- package/dist/{datetime-DwsO5ZQO.cjs → datetime-Cp-aTjx9.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-D3RfdM3l.js → deepClusterSlipSurface-Cb6AKo_u.js} +5 -5
- package/dist/{deepClusterSlipSurface-B1Qo4zga.cjs → deepClusterSlipSurface-Cs4au-D7.cjs} +1 -1
- package/dist/{deepDataMatrix-BlyC4XHk.js → deepDataMatrix-D18UbgVg.js} +2 -2
- package/dist/{deepDataMatrix-5TSzS6Tk.cjs → deepDataMatrix-edH7pl5I.cjs} +1 -1
- package/dist/{deepDisplacement3D-qO4JtGAB.js → deepDisplacement3D-C_ezOVqs.js} +2 -2
- package/dist/{deepDisplacement3D-TJPfji5n.cjs → deepDisplacement3D-CjUFL7gl.cjs} +1 -1
- package/dist/{deepDisplacementChart-DhZAAgX4.js → deepDisplacementChart-BNVKT9M5.js} +3 -3
- package/dist/{deepDisplacementChart-DDliyOrk.cjs → deepDisplacementChart-COdOOjQT.cjs} +1 -1
- package/dist/{deepDisplacementChart-qGHt_2a3.js → deepDisplacementChart-DlFZBsHh.js} +2 -2
- package/dist/{deepDisplacementChart-BEA4w_0K.cjs → deepDisplacementChart-Tfqj9khW.cjs} +1 -1
- package/dist/{deepDisplacementView-D5bBpvzq.js → deepDisplacementView-BcYMcimK.js} +1 -1
- package/dist/{deepDisplacementView-CEgm3PMt.cjs → deepDisplacementView-C5dr_KFf.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-BeKtgpUn.cjs → deepNodeTemperatureChart-CyjWwmRb.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-BWXBhVIg.js → deepNodeTemperatureChart-DZLc9z6n.js} +5 -5
- package/dist/{deepTangentAngleChart-B5FS9iuq.js → deepTangentAngleChart-DsyFhBgJ.js} +6 -6
- package/dist/{deepTangentAngleChart-B1h0UgLk.cjs → deepTangentAngleChart-a41v2DRO.cjs} +1 -1
- package/dist/{deepTemperatureField-jfuJDnKK.cjs → deepTemperatureField-BKwbER4Z.cjs} +1 -1
- package/dist/{deepTemperatureField-Ipwodx0p.js → deepTemperatureField-CTtxBHkt.js} +7 -7
- package/dist/{deepTrendChart-BRWqXaPb.cjs → deepTrendChart-B7T-ykiy.cjs} +1 -1
- package/dist/{deepTrendChart-EXZN76ub.js → deepTrendChart-DCJmZ38j.js} +5 -5
- package/dist/{deviceOnlineStatus-pnZKEQm0.cjs → deviceOnlineStatus-DJLS5d8V.cjs} +1 -1
- package/dist/{deviceOnlineStatus-D6fX08e7.js → deviceOnlineStatus-vvs3IjoT.js} +2 -2
- package/dist/{deviceStatus-_5Uc9XnB.js → deviceStatus-8Y7fqV7j.js} +2 -2
- package/dist/{deviceStatus-CpnUHL8c.cjs → deviceStatus-fsvw50YY.cjs} +1 -1
- package/dist/{displacementDataTable-945GuVxd.cjs → displacementDataTable-CAj6C6ug.cjs} +1 -1
- package/dist/{displacementDataTable-BG3ZOLWR.js → displacementDataTable-zCrCdDAk.js} +2 -2
- package/dist/{displacementTrajectoryChart-B0jXqutN.cjs → displacementTrajectoryChart-BArbCJTS.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-B04cluw3.js → displacementTrajectoryChart-iL4iRKZ2.js} +2 -2
- package/dist/{displacementTrendChart-C4gRaavn.cjs → displacementTrendChart-B_5KOzmg.cjs} +1 -1
- package/dist/{displacementTrendChart-qbDbFQOw.js → displacementTrendChart-jI9s1jqc.js} +2 -2
- package/dist/{dxf-BnX3kUoj.cjs → dxf-EOLYvUtK.cjs} +1 -1
- package/dist/{dxf-DlDy74-7.js → dxf-Wr__XlMC.js} +2 -2
- package/dist/{dzc-B5sZ6Avt.js → dzc-BWDvHjPU.js} +12 -12
- package/dist/{dzc-FAf0Kxf0.cjs → dzc-D8XN73z2.cjs} +1 -1
- package/dist/{emergencyPlan-DlfeWUWF.cjs → emergencyPlan-CI9EkZfn.cjs} +1 -1
- package/dist/{emergencyPlan-jPnU8wJ9.js → emergencyPlan-DVQEu9zg.js} +3 -3
- package/dist/{evn-BqmsnvHW.cjs → evn-2U-jKoDM.cjs} +1 -1
- package/dist/{evn-DBOsZvHb.js → evn-CkEHDEjn.js} +2 -2
- package/dist/{evolutionChart-tYjmkLzE.js → evolutionChart-DAh8Gy4-.js} +3 -3
- package/dist/{evolutionChart-B3X0wVH2.cjs → evolutionChart-DxkVM36e.cjs} +1 -1
- package/dist/{fileViewer-DJX2kROp.cjs → fileViewer-C8XZYud4.cjs} +1 -1
- package/dist/{fileViewer-CuHiMxDM.js → fileViewer-CR0Ldpe9.js} +2 -2
- package/dist/{filterBar-DabGW1hM.cjs → filterBar-CVm0E6_U.cjs} +1 -1
- package/dist/{filterBar--IW51BPy.js → filterBar-DWLGgMzl.js} +2 -2
- package/dist/{fireCombustionCurve-DPqwzzDN.js → fireCombustionCurve-w50Ad5Qz.js} +3 -3
- package/dist/{fireCombustionCurve-BqpFzrH2.cjs → fireCombustionCurve-yQMkVsEM.cjs} +1 -1
- package/dist/{fireFilterBar-DKGxDk-I.cjs → fireFilterBar-DbmtTFOx.cjs} +1 -1
- package/dist/{fireFilterBar-vFteIjsI.js → fireFilterBar-Duk7OJ9Y.js} +2 -2
- package/dist/{fireHistoryTable-Cdf8hcaR.cjs → fireHistoryTable-BO6ej88t.cjs} +1 -1
- package/dist/{fireHistoryTable-C4sMZp0k.js → fireHistoryTable-DPBVjZiJ.js} +2 -2
- package/dist/{gag-DEIj5RLg.cjs → gag-BMTle0iW.cjs} +1 -1
- package/dist/{gag-BExUU1KM.js → gag-CSAmkyDD.js} +5 -5
- package/dist/{gasStationList-DE_JXkdK.js → gasStationList-CQgakcsg.js} +2 -2
- package/dist/{gasStationList-COYeC4Ye.cjs → gasStationList-DnQK3yKb.cjs} +1 -1
- package/dist/{geo3dViewer-Dn0mFDIT.cjs → geo3dViewer-BIlig7g_.cjs} +1 -1
- package/dist/{geo3dViewer-DwgibLCZ.js → geo3dViewer-mJDVY5cp.js} +3 -3
- package/dist/{glbModel-DHCHj66S.js → glbModel-BzxP8shl.js} +2 -2
- package/dist/{glbModel-56kJ4FTO.cjs → glbModel-DnWXDJic.cjs} +1 -1
- package/dist/{globalObjectSelector-iafApid4.cjs → globalObjectSelector-Cp55ZFxL.cjs} +1 -1
- package/dist/{globalObjectSelector-DvdqOfcO.js → globalObjectSelector-lYWLbEt8.js} +1 -1
- package/dist/{gnssFilterBar-B86cQmYf.js → gnssFilterBar-4yJR6Hid.js} +2 -2
- package/dist/{gnssFilterBar-1uI1tmiT.cjs → gnssFilterBar-BcXsjKvN.cjs} +1 -1
- package/dist/{gnssHistoryTable-DdVQ_dzJ.cjs → gnssHistoryTable-CQhYzIkF.cjs} +1 -1
- package/dist/{gnssHistoryTable-CIqR-fxO.js → gnssHistoryTable-V6L8Mapo.js} +2 -2
- package/dist/{gnssMapView-DzhJCiQk.js → gnssMapView-B-uzWumH.js} +4 -4
- package/dist/{gnssMapView-CXgClzHI.cjs → gnssMapView-CCJ_Y4o6.cjs} +2 -2
- package/dist/{gnssSectionProfile-SjU_9-9D.js → gnssSectionProfile-B8Rt-CF9.js} +2 -2
- package/dist/{gnssSectionProfile-DXzGnBUS.cjs → gnssSectionProfile-B_8IErhJ.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-DJKV4DVv.js → gnssTimeSeriesChart-BaP9brVp.js} +2 -2
- package/dist/{gnssTimeSeriesChart-CAWC_v86.cjs → gnssTimeSeriesChart-IF2Zzgya.cjs} +1 -1
- package/dist/{gnssXYTrajectory-CjOfpEtt.js → gnssXYTrajectory-BNXHdP5L.js} +2 -2
- package/dist/{gnssXYTrajectory-C8VLEInc.cjs → gnssXYTrajectory-DZXUOtdZ.cjs} +1 -1
- package/dist/{grd-vmOinXrA.js → grd-CRF5hQq3.js} +2 -2
- package/dist/{grd-VLoPMj7s.cjs → grd-q2JwG1LL.cjs} +1 -1
- package/dist/{grdIndass-DJMhm21Y.cjs → grdIndass-B_nXfqqR.cjs} +1 -1
- package/dist/{grdIndass-CP5MMkAP.js → grdIndass-C8DPNROD.js} +2 -2
- package/dist/{grg-c1ZF84_8.cjs → grg-DHuXQP_O.cjs} +1 -1
- package/dist/{grg-BKXfPTcP.js → grg-M9MwBK9q.js} +6 -6
- package/dist/{gridview-D8-9pxQl.cjs → gridview-DLILP3no.cjs} +1 -1
- package/dist/{gridview-GMC5oX4p.js → gridview-DTqcftjZ.js} +2 -2
- package/dist/{groundwaterFilterBar-DBgKHqw3.js → groundwaterFilterBar-DwrhRk_v.js} +2 -2
- package/dist/{groundwaterFilterBar-DTOSpAiN.cjs → groundwaterFilterBar-zXbia-fX.cjs} +1 -1
- package/dist/{groundwaterProfileChart-DSl5Xgnr.cjs → groundwaterProfileChart-DrdP76cd.cjs} +2 -2
- package/dist/{groundwaterProfileChart-BiOk3sGK.js → groundwaterProfileChart-PjBzMvbw.js} +3 -3
- package/dist/{groundwaterTimeCurve-BPq9L4Gu.js → groundwaterTimeCurve-DInTJEEl.js} +3 -3
- package/dist/{groundwaterTimeCurve-DTvqiNJw.cjs → groundwaterTimeCurve-DYk42p1p.cjs} +1 -1
- package/dist/{groupCard-BegIO-qR.js → groupCard-BrNzGFVs.js} +2 -2
- package/dist/{groupCard-CmAWh5IR.cjs → groupCard-CNuEYy3p.cjs} +1 -1
- package/dist/{headerBar-CjiIpmL9.cjs → headerBar-BEoo20so.cjs} +1 -1
- package/dist/{headerBar-BWO09wSU.js → headerBar-C5tkesYI.js} +2 -2
- package/dist/{history-Dl5GpruE.js → history-D_JkziAv.js} +1 -1
- package/dist/{history-DRwHPsbL.cjs → history-b7zBiHDz.cjs} +1 -1
- package/dist/{index-B2DTHz1b.js → index-CaDDNmGU.js} +2580 -2522
- package/dist/index-PR_k3tQg.cjs +615 -0
- package/dist/{insarDeformChart-KLPSy9uU.js → insarDeformChart-C5PiLbYU.js} +2 -2
- package/dist/{insarDeformChart-B6DXYJms.cjs → insarDeformChart-DBXyVjKk.cjs} +1 -1
- package/dist/{insarImageViewer-DGk4-mPp.cjs → insarImageViewer-B9-QQ_De.cjs} +1 -1
- package/dist/{insarImageViewer-ByxSnxqf.js → insarImageViewer-BEeQiS6N.js} +2 -2
- package/dist/{kds-D357CVYK.js → kds-BoR05GUP.js} +10 -10
- package/dist/{kds-BBB16Dii.cjs → kds-JbCbEtJs.cjs} +1 -1
- package/dist/{kpiCard-Ce10Yb_x.cjs → kpiCard-7v6bZGP2.cjs} +1 -1
- package/dist/{kpiCard-Byd1oMkb.js → kpiCard-BP-GnthE.js} +2 -2
- package/dist/{landslideMap-BtqpNIeA.js → landslideMap-BMu2X2bN.js} +3 -3
- package/dist/{landslideMap-BRm2krnn.cjs → landslideMap-D59SrOZE.cjs} +1 -1
- package/dist/{landslideWarning-CAYVIVrI.cjs → landslideWarning-C_hcQ1wr.cjs} +1 -1
- package/dist/{landslideWarning-B7LVdly8.js → landslideWarning-DeB2bNpu.js} +5 -5
- package/dist/{layerTabs-LQwulp6N.js → layerTabs-ByZZMwks.js} +2 -2
- package/dist/{layerTabs-ChkCcOoY.cjs → layerTabs-C1XclQOC.cjs} +1 -1
- package/dist/{leaflet-src-CUAuMEGj.js → leaflet-src-O0MJ0wU5.js} +1 -1
- package/dist/{leaflet-src-DwdnWe7D.cjs → leaflet-src-w8JmXMPG.cjs} +1 -1
- package/dist/{lerc-BfIa2cj-.js → lerc-BSgE4FKp.js} +2 -2
- package/dist/{lerc-D1gH5BIQ.cjs → lerc-C0ekD7Me.cjs} +1 -1
- package/dist/{lin-rXSlDP_V.cjs → lin-DGOJIF6s.cjs} +1 -1
- package/dist/{lin-BT3jRsT_.js → lin-DGafw8zf.js} +11 -11
- package/dist/{linIndass-DAQyPYcD.cjs → linIndass-BERNb4X3.cjs} +1 -1
- package/dist/{linIndass-Dp8jbdx3.js → linIndass-BLAQz5op.js} +6 -6
- package/dist/{lst-DhcGZjI8.cjs → lst-BbLp5U-f.cjs} +1 -1
- package/dist/{lst-4PUA_fDL.js → lst-Cb1RdJ3D.js} +2 -2
- package/dist/{manualEntry-DCvftO4K.js → manualEntry-C3aJpT9g.js} +2 -2
- package/dist/{manualEntry-Bcu3OgSt.cjs → manualEntry-Ztj3fH3A.cjs} +1 -1
- package/dist/{mapBackground-BvsozCb2.js → mapBackground-BPNim3nv.js} +3 -3
- package/dist/{mapBackground-sZxm0aUL.cjs → mapBackground-CzRZzD1O.cjs} +1 -1
- package/dist/{mappingList-CEiZ8oTe.js → mappingList-B6NYcjIa.js} +3 -3
- package/dist/{mappingList-D6aWYkq9.cjs → mappingList-B_FVwWfC.cjs} +1 -1
- package/dist/{markdownViewer-C892SNpL.cjs → markdownViewer-BPdAvoWW.cjs} +1 -1
- package/dist/{markdownViewer-D3L6Dz1l.js → markdownViewer-CSMB8l93.js} +2 -2
- package/dist/materialFileUrl-BR6anfF2.cjs +1 -0
- package/dist/materialFileUrl-BUkIkwgp.js +108 -0
- package/dist/{mix-control-modal-CVHE6zli.js → mix-control-modal-46dJ4X4L.js} +1 -1
- package/dist/{mix-control-modal-BrC9Ymp1.cjs → mix-control-modal-oDAz2GZ_.cjs} +1 -1
- package/dist/{mixGrid-vXexGZjd.cjs → mixGrid-1tOrywk7.cjs} +1 -1
- package/dist/{mixGrid-B5vsmQRS.js → mixGrid-F-d2hIht.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-CB9jo-Ux.cjs → mjpegCamera-Bzf9Zlb9.cjs} +1 -1
- package/dist/{mjpegCamera-BIV79lBB.js → mjpegCamera-CAR217Pv.js} +2 -2
- package/dist/{monitorAlert-CllUDsLM.cjs → monitorAlert-BJtWNV53.cjs} +1 -1
- package/dist/{monitorAlert-CnuwYHy7.js → monitorAlert-CD2NRVzR.js} +2 -2
- package/dist/{monitorData-_mQ06hCt.js → monitorData-CviwIANH.js} +2 -2
- package/dist/{monitorData-mcdStiwF.cjs → monitorData-D2rrSoJh.cjs} +1 -1
- package/dist/{monitorSpeedChart-CJ44tvoa.cjs → monitorSpeedChart-BUfGJsBO.cjs} +1 -1
- package/dist/{monitorSpeedChart-BAkGFAMI.js → monitorSpeedChart-DCMb9kVx.js} +1 -1
- package/dist/{mxa-BfAuvija.js → mxa-CAgh10Ux.js} +6 -6
- package/dist/{mxa-VvU7dxWN.cjs → mxa-CTkUFkJB.cjs} +1 -1
- package/dist/{myValue-BFgaG31h.js → myValue-BwWuUkn0.js} +2 -2
- package/dist/{myValue-_n9L9caQ.cjs → myValue-CTtwYm45.cjs} +1 -1
- package/dist/{myValueList-8j3wOuPB.cjs → myValueList-8goYepha.cjs} +1 -1
- package/dist/{myValueList-BpzYwuDt.js → myValueList-D-EbIIcT.js} +2 -2
- package/dist/{objectList-DeJfFPkz.js → objectList-B6S5Vbt7.js} +3 -3
- package/dist/{objectList-2Toe6lHd.cjs → objectList-Dbkam4GS.cjs} +1 -1
- package/dist/{objectListAPP-DNXllv3q.js → objectListAPP-6EVjt25O.js} +3 -3
- package/dist/{objectListAPP-CkUNWawI.cjs → objectListAPP-BRDAVQcL.cjs} +1 -1
- package/dist/{percentBar-CCf5KtjC.js → percentBar-CXFGCu39.js} +9 -9
- package/dist/{percentBar-IK5NAYe9.cjs → percentBar-CllO6t03.cjs} +1 -1
- package/dist/{photo-qfDW8OJd.cjs → photo-Bm9bjJ5L.cjs} +1 -1
- package/dist/{photo-D2VfMhYk.js → photo-CISKz3py.js} +4 -4
- package/dist/{pie-s-vNaWvq.js → pie-B3nio1dC.js} +8 -8
- package/dist/{pie-D7IoUk_n.cjs → pie-CsZff0UE.cjs} +1 -1
- package/dist/{placeholder-mMI1j7xJ.cjs → placeholder-CPgwWlNB.cjs} +1 -1
- package/dist/{placeholder-C8n98GWG.js → placeholder-q3O8Bva5.js} +1 -1
- package/dist/{pressBtn-BpZT3z0a.js → pressBtn-BSWda69G.js} +3 -3
- package/dist/{pressBtn-DWAHYP8w.cjs → pressBtn-Bq1_wegh.cjs} +1 -1
- package/dist/{processTable-Dj2t2ie8.cjs → processTable-BP4EKe75.cjs} +1 -1
- package/dist/{processTable-B6HUw7tP.js → processTable-C9Q2jiVC.js} +2 -2
- package/dist/{progressBar-Etc7OX2P.cjs → progressBar-Bb9apofa.cjs} +1 -1
- package/dist/{progressBar-BHQYx6Mw.js → progressBar-DGI1hKbd.js} +2 -2
- package/dist/{progressCircle-DPKA9jdh.cjs → progressCircle-BRbfwnB-.cjs} +1 -1
- package/dist/{progressCircle-DQzkJOt9.js → progressCircle-B_yHB1bZ.js} +2 -2
- package/dist/{qrcode-DVP2vUMc.js → qrcode-B4O103tY.js} +308 -307
- package/dist/qrcode-CMYqHUmi.cjs +1 -0
- package/dist/{raceBar-CWvk_xex.cjs → raceBar-BBTSuU97.cjs} +1 -1
- package/dist/{raceBar-CX3Vdq0Z.js → raceBar-CJ4qBGhx.js} +6 -6
- package/dist/{rad-Bqtk2K_2.js → rad-DR-duEfw.js} +7 -7
- package/dist/{rad-sEi8DdSk.cjs → rad-np3W7CAD.cjs} +1 -1
- package/dist/{radarMapViewer-BxgJgmSG.js → radarMapViewer-BVtJ2q6c.js} +2 -2
- package/dist/{radarMapViewer-D-jGGJqp.cjs → radarMapViewer-kbdzbDKP.cjs} +1 -1
- package/dist/{rainfallFilterBar-DS8mK4ZK.js → rainfallFilterBar-CYpib1XL.js} +2 -2
- package/dist/{rainfallFilterBar-dfMRbxcM.cjs → rainfallFilterBar-DuZwhtKa.cjs} +1 -1
- package/dist/{rainfallTimeCurve-89G9uPDa.js → rainfallTimeCurve-BT4rE2Vc.js} +3 -3
- package/dist/{rainfallTimeCurve-B8r5OW7q.cjs → rainfallTimeCurve-DYWpLoT1.cjs} +1 -1
- package/dist/{rangeLin-0qDDEzES.js → rangeLin-BBcJ9PnJ.js} +7 -7
- package/dist/{rangeLin-BVPHr48Y.cjs → rangeLin-ChaYkb8_.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-BPybzLsa.js → realtimeEvolutionMap-CJxCeMCD.js} +2 -2
- package/dist/{realtimeEvolutionMap-BW-10twn.cjs → realtimeEvolutionMap-UFga_5-Z.cjs} +1 -1
- package/dist/{regionBar-CX3VYSxr.cjs → regionBar-CdvwMj9w.cjs} +1 -1
- package/dist/{regionBar-TP_pMCoa.js → regionBar-D2tQM5cu.js} +2 -2
- package/dist/{request-cgSE-Bxj.cjs → request-CBFwthty.cjs} +1 -1
- package/dist/{request-CXLchNeV.js → request-D0RrTUSz.js} +1 -1
- package/dist/{retainer1-CGm_xPGX.cjs → retainer1-BGV2MuUp.cjs} +1 -1
- package/dist/{retainer1-CFEtuHps.js → retainer1-YHosRvc1.js} +3 -3
- package/dist/{retainer2-CAStQRqi.cjs → retainer2-Un2rhmxB.cjs} +1 -1
- package/dist/{retainer2-DSmXUYVZ.js → retainer2-Wvm3l39y.js} +3 -3
- package/dist/{retainerRecordList-hNeAHwHS.cjs → retainerRecordList-C_aduEsj.cjs} +1 -1
- package/dist/{retainerRecordList-CGQsw69Y.js → retainerRecordList-CqOPgM_e.js} +3 -3
- package/dist/{retainerRecordListAPP-2dbjsVqM.js → retainerRecordListAPP-CutsTHxC.js} +3 -3
- package/dist/{retainerRecordListAPP-C_No_L4Z.cjs → retainerRecordListAPP-UOXVHQzs.cjs} +1 -1
- package/dist/{ringTopN-DF6DqlSZ.js → ringTopN-BhDlEOCJ.js} +5 -5
- package/dist/{ringTopN-6KefLaNo.cjs → ringTopN-mA9LAgFN.cjs} +1 -1
- package/dist/{riskRegionTable-6dVdUgLh.js → riskRegionTable-CYTLnsH-.js} +2 -2
- package/dist/{riskRegionTable-B3acXFe4.cjs → riskRegionTable-Cm9BsaWA.cjs} +1 -1
- package/dist/{sankey-c3YcWHnV.cjs → sankey-BmvrkXRY.cjs} +1 -1
- package/dist/{sankey-BpbKwnuU.js → sankey-jU9Dscb_.js} +8 -8
- package/dist/{scd-BTnqcPk_.js → scd-CGTKGaWO.js} +3 -3
- package/dist/{scd-DumQux0S.cjs → scd-TQcCDjoj.cjs} +1 -1
- package/dist/{sideMenu-CTDP4zhw.js → sideMenu-CtdLmpLX.js} +2 -2
- package/dist/{sideMenu-BuFyH0ge.cjs → sideMenu-D4uEDc38.cjs} +1 -1
- package/dist/{slopeStability-ILbwnpFa.cjs → slopeStability-B-LzCvR7.cjs} +1 -1
- package/dist/{slopeStability-DZ8Fdccb.js → slopeStability-H7iiOf5G.js} +2 -2
- package/dist/{speedCurve-28awhoDl.cjs → speedCurve-BKMR6Z0r.cjs} +1 -1
- package/dist/{speedCurve-DzyHKAQ4.js → speedCurve-lgD_hG_W.js} +2 -2
- package/dist/{stackedBar-FjHiDckW.js → stackedBar-BJu9_GI7.js} +9 -9
- package/dist/{stackedBar-CHfThI1f.cjs → stackedBar-D-goARDv.cjs} +1 -1
- package/dist/{stressFilterBar-Dw2KaGIb.js → stressFilterBar-BOsQJoK_.js} +2 -2
- package/dist/{stressFilterBar-12_9Hq6C.cjs → stressFilterBar-D6qiNCAj.cjs} +1 -1
- package/dist/{stressTimeCurve-CLDINndP.js → stressTimeCurve-Bgxr5Wrf.js} +3 -3
- package/dist/{stressTimeCurve-zQAaPEe8.cjs → stressTimeCurve-BwZLKFHb.cjs} +1 -1
- package/dist/{swiper-Fb5GkDPy.js → swiper-CRtoulGh.js} +2 -2
- package/dist/{swiper-r39l1ubu.cjs → swiper-D82oGlpT.cjs} +1 -1
- package/dist/{syncMixiotListConfig-C-O0vuNa.js → syncMixiotListConfig-CD0wWvPU.js} +1 -1
- package/dist/{syncMixiotListConfig-CDOHffVG.cjs → syncMixiotListConfig-Cpgnkkws.cjs} +1 -1
- package/dist/{tablemanList-B2jAK11y.cjs → tablemanList-10EHbXgv.cjs} +1 -1
- package/dist/{tablemanList-DlzoZHYA.js → tablemanList-DmHYElUp.js} +3 -3
- package/dist/{terminalConfigList-ChD8ZgGy.js → terminalConfigList-D6NiHYBX.js} +3 -3
- package/dist/{terminalConfigList-YZf3-mY-.cjs → terminalConfigList-cHJ-LVj5.cjs} +1 -1
- package/dist/{terminalList-B78hrUal.cjs → terminalList-BVovhzGU.cjs} +1 -1
- package/dist/{terminalList-cSxPru3p.js → terminalList-CTBcP9xm.js} +3 -3
- package/dist/{terminalListAPP-C9tXEAk3.cjs → terminalListAPP-Cwe2xdL6.cjs} +1 -1
- package/dist/{terminalListAPP-DM-pw5Y_.js → terminalListAPP-afa_Ibtw.js} +3 -3
- package/dist/{textbox-CsdOWVlX.js → textbox-BLANVfpn.js} +2 -2
- package/dist/{textbox-hgBX2Mlz.cjs → textbox-D1Qwf3d2.cjs} +1 -1
- package/dist/{timeQueryBar-8M1lQYQc.js → timeQueryBar-BHTy_h6G.js} +1 -1
- package/dist/{timeQueryBar-he2w5VTR.cjs → timeQueryBar-CNbq5Bet.cjs} +1 -1
- package/dist/{timeSeries-Dd_KE5Rq.cjs → timeSeries-CVz4_Q5W.cjs} +1 -1
- package/dist/{timeSeries-E7CoZvmq.js → timeSeries-DSzv8Sp2.js} +3 -3
- package/dist/{timeSeriesCurve-CiXJzBCM.js → timeSeriesCurve-DSAYjkRU.js} +3 -3
- package/dist/{timeSeriesCurve-9pJIM8LM.cjs → timeSeriesCurve-yQo3qHHo.cjs} +1 -1
- package/dist/{toggleBtn-4w9dXLlV.js → toggleBtn-COE-GX9z.js} +9 -9
- package/dist/{toggleBtn-B-YyfUEZ.cjs → toggleBtn-CsetEz6X.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-BxHufk4d.cjs → trajectoryConfigPanel-BS6SAfIu.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-COMVNyCV.js → trajectoryConfigPanel-BzJcwd-3.js} +1 -1
- package/dist/{trajectoryScatter-BZ6fQzrS.js → trajectoryScatter-DSj9tCgT.js} +5 -5
- package/dist/{trajectoryScatter-wOmXNsz2.cjs → trajectoryScatter-ftlV7dd0.cjs} +1 -1
- package/dist/{universalConfigPanel-3ZVlYmDy.js → universalConfigPanel-BzY0yL6m.js} +1 -1
- package/dist/{universalConfigPanel-Cs3R7La0.cjs → universalConfigPanel-DjClEju7.cjs} +1 -1
- package/dist/{universalTable-Wnk_jTye.cjs → universalTable-DPu429rn.cjs} +1 -1
- package/dist/{universalTable-CpbLgXuF.js → universalTable-JvMM251F.js} +2 -2
- package/dist/{video-DVNgGh5s.cjs → video-BZbt1v0N.cjs} +1 -1
- package/dist/{video-BVyJEL3-.js → video-OJsr6jxT.js} +2 -2
- package/dist/{videoMonitor-C3ICMfl6.js → videoMonitor-BcfssQX4.js} +2 -2
- package/dist/{videoMonitor-ColaBH39.cjs → videoMonitor-DWNh0F6P.cjs} +1 -1
- package/dist/{vlu-L-mlyUpW.js → vlu-BXyZcEQh.js} +2 -2
- package/dist/{vlu-CqVb525d.cjs → vlu-BrVly_o-.cjs} +1 -1
- package/dist/{warningOverview-CkBQM-T8.js → warningOverview-C8qJNEFc.js} +3 -3
- package/dist/{warningOverview-BmOZtQhI.cjs → warningOverview-YqxTqkG6.cjs} +1 -1
- package/dist/{weather-WWOBwhVK.cjs → weather-Ba0ATW6-.cjs} +1 -1
- package/dist/{weather-BukoDMa5.js → weather-Drd-bMhZ.js} +2 -2
- package/dist/{windLin-gh-j-v6h.cjs → windLin-5NXNHy9D.cjs} +1 -1
- package/dist/{windLin-wzrkcIhx.js → windLin-DFzNiUCz.js} +9 -9
- package/package.json +1 -1
- package/dist/index-BtYU0jdF.cjs +0 -612
- package/dist/materialFileUrl-CubtnHeq.js +0 -108
- package/dist/materialFileUrl-DfPNm265.cjs +0 -1
- package/dist/qrcode-DInsznh9.cjs +0 -1
- /package/dist/{useApi-DCywyCly-CRhRQNx-.cjs → useApi-DtucMc-S-CRhRQNx-.cjs} +0 -0
- /package/dist/{useApi-DCywyCly-ha66t1D5.js → useApi-DtucMc-S-ha66t1D5.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var O=Object.defineProperty,A=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var g=(l,t,o)=>t in l?O(l,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[t]=o,C=(l,t)=>{for(var o in t||(t={}))k.call(t,o)&&g(l,o,t[o]);if(b)for(var o of b(t))w.call(t,o)&&g(l,o,t[o]);return l},v=(l,t)=>A(l,V(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./BaseComponent-
|
|
1
|
+
"use strict";var O=Object.defineProperty,A=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var g=(l,t,o)=>t in l?O(l,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[t]=o,C=(l,t)=>{for(var o in t||(t={}))k.call(t,o)&&g(l,o,t[o]);if(b)for(var o of b(t))w.call(t,o)&&g(l,o,t[o]);return l},v=(l,t)=>A(l,V(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./BaseComponent-C42zZPAg.cjs"),T=require("./index-PR_k3tQg.cjs"),I=require("./titleStyle-NSnz6cUg.cjs"),y=require("./ele-evn-icon-DUQMS-9T.cjs"),N={class:"title-text"},z={class:"mix-body"},L={DEFAULT_ICON:y.DEFAULT_ICON,ACTIVE_ICON:y.ACTIVE_ICON,NAME_CN:"识别结论卡",NAME_EN:"Conclusion Card",ORDER:14,PLATFORM:["pc","screen"]},D={bgColor:"#fff8e1",titleColor:"#1f2329",textColor:"#333",radiusSize:8,textSize:13,isHideTitle:!1,content:"南帮区域误报率持续偏高,建议优先复核春耕样本范围与扰动数据剔除规则。",lineHeight:1.6,btnText:"策略编辑",btnAction:{value:"publish",type:"select",label:"component.options.lw_btnAction",options:[{label:"component.options.lw_btnAction_publish",value:"publish"},{label:"component.options.lw_btnAction_modal",value:"modal"},{label:"component.options.lw_btnAction_navigate",value:"navigate"}]},modalLayerId:{value:"",type:"string",label:"component.options.lw_modalLayerId",dependent:"btnAction",dependentValue:"modal"},navigateUrl:{value:"",type:"string",label:"component.options.lw_navigateUrl",dependent:"btnAction",dependentValue:"navigate"},linkChannel:{value:"landslide",type:"select",label:"component.options.lw_linkChannel",options:[{label:"component.options.lw_linkChannel_landslide",value:"landslide"},{label:"component.options.lw_linkChannel_custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.options.lw_customChannel",showWhen:{linkChannel:"custom"}}},U=[{name:"结论文本",fv:"",object_id:""}],M=["name","fv","object_id"],H=["mosaic","statistics","calculate"],j={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},B={DEFAULT:L,OPTIONS:D,DATA:U,PARAMS:M,SOURCE:H,COMMON:j},R=e.defineComponent(v(C({},B),{__name:"conclusionCard",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){const t=l,o=e.ref("");class _ extends E.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff8e1"),titleColor:this.getOptionValue("titleColor","#1f2329"),textColor:this.getOptionValue("textColor","#333"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",13),content:this.getOptionValue("content",""),lineHeight:this.getOptionValue("lineHeight",1.6),btnText:this.getOptionValue("btnText",""),btnAction:this.getOptionValue("btnAction","publish"),modalLayerId:this.getOptionValue("modalLayerId",""),navigateUrl:this.getOptionValue("navigateUrl",""),linkChannel:this.getOptionValue("linkChannel","landslide"),customChannel:this.getOptionValue("customChannel","")}}getLinkChannel(){const n=this.Style.value;return(n==null?void 0:n.linkChannel)==="custom"?n.customChannel||"":(n==null?void 0:n.linkChannel)||""}setSocketData(n){var r,u;if(!n)return;const i=(u=(r=this.props.conf)==null?void 0:r.data)==null?void 0:u[0];if(!(i!=null&&i.fv))return;const c=this.extractDataValue(n,i.fv);c!=null&&c!==""&&(o.value=String(c))}setHistoryData(n){var r,u,f,h;if(!n||!Array.isArray(n.history))return;const i=(u=(r=this.props.conf)==null?void 0:r.data)==null?void 0:u[0];if(!(i!=null&&i.fv))return;const c=(h=(f=n.history)==null?void 0:f[0])==null?void 0:h[0];c&&c[i.fv]&&(o.value=String(c[i.fv]))}}const p=new _(t,"conclusionCard");p.setupLifecycle();const a=p.getStyle(),d=t.conf,S=e.computed(()=>I.generateTitleStyle(t.conf.options)),m=e.computed(()=>o.value||a.value.content||"--");function x(){if(t.mode!=="preview")return;const s=a.value;switch(s.btnAction){case"modal":s.modalLayerId&&window.dispatchEvent(new CustomEvent("mix-modal",{detail:{action:"show",layerId:s.modalLayerId,sheetIndex:-1}}));break;case"navigate":s.navigateUrl&&window.open(s.navigateUrl,"_blank");break;default:p.publish({type:"conclusion-action",title:d.caption||d.name,content:m.value,action:s.btnText})}}return(s,n)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(a).bgColor,borderRadius:`${e.unref(a).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(S.value)},[e.createElementVNode("span",N,e.toDisplayString(e.unref(d).caption||e.unref(d).name),1),e.unref(a).btnText?(e.openBlock(),e.createElementBlock("button",{key:0,class:"cc-btn",onClick:x},e.toDisplayString(e.unref(a).btnText),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("div",z,[e.createElementVNode("p",{class:"body-content",style:e.normalizeStyle({fontSize:`${e.unref(a).textSize}px`,color:e.unref(a).textColor,lineHeight:e.unref(a).lineHeight})},e.toDisplayString(m.value),5)]),e.renderSlot(s.$slots,"default",{},void 0,!0)],4))}})),q=T._export_sfc(R,[["__scopeId","data-v-35c5f9d1"]]);exports.default=q;
|
|
@@ -11,8 +11,8 @@ var _ = (o, t, n) => t in o ? T(o, t, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return o;
|
|
12
12
|
}, x = (o, t) => I(o, E(t));
|
|
13
13
|
import { defineComponent as N, ref as D, computed as S, openBlock as A, createElementBlock as O, normalizeStyle as h, unref as s, createElementVNode as d, toDisplayString as f, createCommentVNode as U, renderSlot as H } from "vue";
|
|
14
|
-
import { B as M } from "./BaseComponent-
|
|
15
|
-
import { _ as R } from "./index-
|
|
14
|
+
import { B as M } from "./BaseComponent-D7kfvQid.js";
|
|
15
|
+
import { _ as R } from "./index-CaDDNmGU.js";
|
|
16
16
|
import { g as j } from "./titleStyle-BT5GlpAb.js";
|
|
17
17
|
import { A as B, D as F } from "./ele-evn-icon-MWzAujnD.js";
|
|
18
18
|
const P = { class: "title-text" }, $ = { class: "mix-body" }, W = {
|
|
@@ -34,7 +34,7 @@ import "element-plus/es/components/descriptions-item/style/css";
|
|
|
34
34
|
import "element-plus/es/components/dialog/style/css";
|
|
35
35
|
import "element-plus/es/components/form/style/css";
|
|
36
36
|
import "element-plus/es/components/form-item/style/css";
|
|
37
|
-
import { c as He, b as je, _ as qe, s as Ke } from "./syncMixiotListConfig-
|
|
37
|
+
import { c as He, b as je, _ as qe, s as Ke } from "./syncMixiotListConfig-CD0wWvPU.js";
|
|
38
38
|
import "element-plus/es/components/button/style/css";
|
|
39
39
|
import "element-plus/es/components/input/style/css";
|
|
40
40
|
import "element-plus/es/components/icon/style/css";
|
|
@@ -42,8 +42,8 @@ import "element-plus/es/components/select/style/css";
|
|
|
42
42
|
import "element-plus/es/components/option/style/css";
|
|
43
43
|
import { defineComponent as Ge, computed as k, reactive as se, ref as h, watch as Qe, onMounted as Xe, openBlock as D, createElementBlock as M, Fragment as re, withDirectives as ue, normalizeStyle as de, unref as R, normalizeClass as Ye, toDisplayString as N, createCommentVNode as te, createElementVNode as le, createVNode as o, withCtx as n, withKeys as Ze, createTextVNode as m, createBlock as et, renderSlot as tt } from "vue";
|
|
44
44
|
import { u as lt } from "./useMixiotPanelSurface-DRl3cZvc.js";
|
|
45
|
-
import { B as it } from "./BaseComponent-
|
|
46
|
-
import { a as B, _ as ot } from "./index-
|
|
45
|
+
import { B as it } from "./BaseComponent-D7kfvQid.js";
|
|
46
|
+
import { a as B, _ as ot } from "./index-CaDDNmGU.js";
|
|
47
47
|
import { g as at } from "./titleStyle-BT5GlpAb.js";
|
|
48
48
|
import { ElMessage as p, ElMessageBox as ce } from "element-plus";
|
|
49
49
|
import { Search as nt } from "@element-plus/icons-vue";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ve=Object.defineProperty,ye=Object.defineProperties;var he=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable;var X=(c,n,d)=>n in c?ve(c,n,{enumerable:!0,configurable:!0,writable:!0,value:d}):c[n]=d,J=(c,n)=>{for(var d in n||(n={}))Ne.call(n,d)&&X(c,d,n[d]);if(Q)for(var d of Q(n))xe.call(n,d)&&X(c,d,n[d]);return c},Y=(c,n)=>ye(c,he(n));var b=(c,n,d)=>new Promise((M,V)=>{var W=h=>{try{T(d.next(h))}catch(B){V(B)}},$=h=>{try{T(d.throw(h))}catch(B){V(B)}},T=h=>h.done?M(h.value):Promise.resolve(h.value).then(W,$);T((d=d.apply(c,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");const z=require("./syncMixiotListConfig-CDOHffVG.cjs");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),Ce=require("./useMixiotPanelSurface-CAZgexY5.cjs"),we=require("./BaseComponent-RkrbGXqw.cjs"),_=require("./index-BtYU0jdF.cjs"),be=require("./titleStyle-NSnz6cUg.cjs"),u=require("element-plus"),_e=require("@element-plus/icons-vue"),Se=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),Ee=require("./AgActionsRenderer.vue_vue_type_script_setup_true_lang-Cojc_jSG.cjs"),Z=require("./ele-lst-icon-CrxnHZ-A.cjs"),Te={class:"mix-body"},ke={class:"top-bar"},Oe={class:"view-body"},De={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"控制码列表",NAME_EN:"ControlList",ORDER:3,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"}]},titleColor:"#111",titleSize:14,isHideTitle:!1,columns:[]},ee=[{add:!0,view:!0,edit:!0,archive:!0,delete:!0}],Be=[{key:"add",label:"添加控制码",type:"checkbox"}],Ae=[{key:"view",label:"查看",type:"checkbox"},{key:"edit",label:"编辑",type:"checkbox"},{key:"archive",label:"资料备档",type:"checkbox"},{key:"delete",label:"删除",type:"checkbox"}],qe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Le={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"}]},Ue={DEFAULT:De,OPTIONS:Me,DATA:ee,COMMANDS:Be,OPERATIONS:Ae,SOURCE:qe,COMMON:Le},Fe=e.defineComponent(Y(J({},Ue),{__name:"controlList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""},controlUidList:{default:()=>[]}},setup(c){const n=c;class d extends we.BaseComponent{getDataBool(t,a){var f,s;const r=(s=(f=this.props.conf)==null?void 0:f.data)==null?void 0:s[0];return r&&Object.prototype.hasOwnProperty.call(r,t)&&r[t]!==void 0?!!r[t]:this.getOptionValue(t,a)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),isHideTitle:this.getOptionValue("isHideTitle",!1),add:this.getDataBool("add",!0),view:this.getDataBool("view",!0),edit:this.getDataBool("edit",!0),archive:this.getDataBool("archive",!0),delete:this.getDataBool("delete",!0)}}init(){return b(this,null,function*(){this.applyTheme(),z.setupMixiotListConf(this.props.conf,{add:!0,view:!0,edit:!0,archive:!0,delete:!0},ee),this.Style.value=this.extractStyles()})}}const M=new d(n,"controlList");M.setupLifecycle();const V=M.getStyle(),W=e.computed(()=>z.computeMixiotActionColumnMinWidth(V.value,{view:60,edit:60,archive:88,delete:60})),{mixiotPanelClass:$,mixiotPanelRootStyle:T}=Ce.useMixiotPanelSurface(V),{tableWrapRef:h,tableBodyHeight:B}=useTableBodyHeight(),te=e.computed(()=>be.generateTitleStyle(n.conf.options)),le=e.computed(()=>z.buildMixiotColumnsConfig(n.conf)),N=e.reactive({current:1,pageSize:10,total:0}),A=e.ref(""),j=e.ref("name"),q=e.ref([]),H=e.ref(!1);function oe(){const i={page_index:N.current,page_size:N.pageSize},t=[],a=A.value.trim();return a&&t.push([j.value,"like",`%${a}%`]),Se.appendCommonDesignerWhereAnd(n.conf.common,t),t.length&&(i.where_and=JSON.stringify(t)),i}function x(){return b(this,null,function*(){var i,t;H.value=!0;try{const a=yield _.api.http("control_list",oe(),!0),r=(i=a==null?void 0:a.result)!=null?i:a;let f=Array.isArray(r==null?void 0:r.data)?[...r.data]:[];if((t=n.controlUidList)!=null&&t.length){const m=new Set(n.controlUidList.map(String));f=f.filter(S=>m.has(String(S.uid)))}q.value=f;const s=r==null?void 0:r.total_records;N.total=typeof s=="number"?s:f.length,a&&a.code!==void 0&&a.code!==200&&console.warn("[controlList] 列表接口非成功",a.msg||a.info,a)}catch(a){console.error(a),q.value=[],N.total=0}finally{H.value=!1}})}const ie={AgActionsRenderer:Ee._sfc_main},ae=e.computed(()=>{const i=le.value.filter(t=>t.visible).map(t=>({field:t.prop,headerName:t.label,width:t.width||t.minWidth||120,minWidth:t.minWidth||80}));return i.push({headerName:"操作",minWidth:W.value,pinned:"right",cellRenderer:"AgActionsRenderer",cellRendererParams:{showView:V.value.view,showEdit:V.value.edit,showArchive:V.value.archive,showDelete:V.value.delete,onView:fe,onEdit:de,onArchive:ge,onDelete:Ve}}),i});function ne(){x()}e.computed(()=>q.value);function G(){N.current=1,x()}function re(){A.value="",N.current=1,x()}e.watch(()=>{var i;return(i=n.controlUidList)==null?void 0:i.join(",")},()=>{N.current=1,x()});const k=e.ref(!1),O=e.ref(!1),C=e.ref(!1),o=e.reactive({id:0,uid:"",name:"",alias:"",description:"",script:"[]",template:"[]"});function L(){o.id=0,o.uid="",o.name="",o.alias="",o.description="",o.script="[]",o.template="[]"}function U(i,t){const a=(i==null?void 0:i.trim())||"";if(!a)return t;try{return JSON.stringify(JSON.parse(a))}catch(r){return null}}function se(){L(),k.value=!0}function de(i){return b(this,null,function*(){var t,a,r,f,s,m,S,g,D,E,y,P;L(),O.value=!0,C.value=!0;try{const w=yield _.api.http("control_item",{uid:i.uid},!0),l=(t=w==null?void 0:w.result)!=null?t:w;if(l&&typeof l=="object"){o.id=Number(l.id)||0,o.uid=String((r=(a=l.uid)!=null?a:i.uid)!=null?r:""),o.name=String((f=l.name)!=null?f:""),o.alias=String((s=l.alias)!=null?s:""),o.description=String((m=l.description)!=null?m:"");const R=l.script;o.script=typeof R=="string"?R:R!=null?JSON.stringify(R):"[]";const I=l.template;o.template=typeof I=="string"?I:I!=null?JSON.stringify(I):"[]"}else o.uid=String(i.uid),o.name=String((S=i.name)!=null?S:""),o.alias=String((g=i.alias)!=null?g:""),o.description=String((D=i.description)!=null?D:"")}catch(w){o.uid=String(i.uid),o.name=String((E=i.name)!=null?E:""),o.alias=String((y=i.alias)!=null?y:""),o.description=String((P=i.description)!=null?P:""),u.ElMessage.warning("拉取控制码详情失败,已使用列表行数据编辑")}finally{C.value=!1}})}function ue(){return b(this,null,function*(){var a;if(!((a=o.name)!=null&&a.trim())){u.ElMessage.warning("请填写控制码名称");return}const i=U(o.script,"[]"),t=U(o.template,"[]");if(i===null||t===null){u.ElMessage.error("脚本或模板不是合法 JSON");return}C.value=!0;try{yield _.api.http("control_create",{name:o.name.trim(),alias:o.alias.trim(),description:o.description,script:i,template:t},!0),u.ElMessage.success("添加成功"),k.value=!1,yield x()}catch(r){u.ElMessage.error("添加失败")}finally{C.value=!1}})}function ce(){return b(this,null,function*(){var a;if(!((a=o.name)!=null&&a.trim())){u.ElMessage.warning("请填写控制码名称");return}const i=U(o.script,"[]"),t=U(o.template,"[]");if(i===null||t===null){u.ElMessage.error("脚本或模板不是合法 JSON");return}C.value=!0;try{yield _.api.http("control_update",{id:o.id,uid:o.uid,name:o.name.trim(),alias:o.alias.trim(),description:o.description,script:i,template:t},!0),u.ElMessage.success("保存成功"),O.value=!1,yield x()}catch(r){u.ElMessage.error("保存失败")}finally{C.value=!1}})}const F=e.ref(!1),K=e.ref(!1),p=e.ref(null);function pe(i){if(i==null)return"";if(typeof i=="string")try{return JSON.stringify(JSON.parse(i),null,2)}catch(t){return i}try{return JSON.stringify(i,null,2)}catch(t){return String(i)}}const me=e.computed(()=>p.value?pe(p.value.script):"");function fe(i){return b(this,null,function*(){p.value=null,F.value=!0,K.value=!0;try{const t=yield _.api.http("control_item",{uid:i.uid},!0),a=t==null?void 0:t.result;a&&typeof a=="object"?p.value=a:(p.value=J({},i),u.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){p.value=J({},i),u.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{K.value=!1}})}function ge(i){u.ElMessageBox.confirm(`确认对控制码「${i.name||i.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{u.ElMessage.success("已提交备档(完整流程请在 mixui 控制码管理中操作)")}).catch(()=>{})}function Ve(i){u.ElMessageBox.confirm(`确认删除控制码「${i.name||i.uid}」吗?`,"警告",{type:"warning"}).then(()=>b(null,null,function*(){try{yield _.api.http("control_delete",{uid:i.uid,id:i.id},!0),u.ElMessage.success("删除成功"),yield x()}catch(t){u.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{x()}),(i,t)=>{const a=v.ElOption,r=v.ElSelect,f=v.ElIcon,s=v.ElInput,m=v.ElButton,S=z.__unplugin_components_5,g=v.ElFormItem,D=v.ElForm,E=v.ElDialog,y=v.ElDescriptionsItem,P=v.ElDescriptions,w=v.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-list mix-component",e.unref($)]),style:e.normalizeStyle(e.unref(T))},[e.unref(V).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(te.value)},e.toDisplayString(c.conf.caption||c.conf.name),5)),e.createElementVNode("div",Te,[e.createElementVNode("div",ke,[e.createVNode(r,{modelValue:j.value,"onUpdate:modelValue":t[0]||(t[0]=l=>j.value=l),class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(a,{label:"控制码名称",value:"name"}),e.createVNode(a,{label:"控制码编号",value:"uid"}),e.createVNode(a,{label:"控制码别名",value:"alias"}),e.createVNode(a,{label:"描述",value:"description"})]),_:1},8,["modelValue"]),e.createVNode(s,{modelValue:A.value,"onUpdate:modelValue":t[1]||(t[1]=l=>A.value=l),placeholder:"搜索控制码",class:"toolbar-search",onKeyup:e.withKeys(G,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(f,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(_e.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(m,{type:"primary",onClick:G},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(m,{onClick:re},{default:e.withCtx(()=>[...t[18]||(t[18]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(V).add?(e.openBlock(),e.createBlock(m,{key:0,type:"success",onClick:se},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode("添加控制码",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(S,{"column-defs":ae.value,"row-data":q.value,"show-pagination":!0,pager:N,"auto-fill-columns":!0,components:ie,onPageChange:ne},null,8,["column-defs","row-data","pager"])]),e.renderSlot(i.$slots,"default",{},void 0,!0)],6)),[[w,H.value]]),e.createVNode(E,{modelValue:k.value,"onUpdate:modelValue":t[7]||(t[7]=l=>k.value=l),title:"添加控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(m,{onClick:t[6]||(t[6]=l=>k.value=!1)},{default:e.withCtx(()=>[...t[20]||(t[20]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(m,{type:"primary",loading:C.value,onClick:ue},{default:e.withCtx(()=>[...t[21]||(t[21]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(D,{model:o,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(g,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.name,"onUpdate:modelValue":t[2]||(t[2]=l=>o.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.alias,"onUpdate:modelValue":t[3]||(t[3]=l=>o.alias=l),placeholder:"可选"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.description,"onUpdate:modelValue":t[4]||(t[4]=l=>o.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.script,"onUpdate:modelValue":t[5]||(t[5]=l=>o.script=l),type:"textarea",rows:8,placeholder:"JSON 数组,默认 []"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:O.value,"onUpdate:modelValue":t[14]||(t[14]=l=>O.value=l),title:"编辑控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(m,{onClick:t[13]||(t[13]=l=>O.value=!1)},{default:e.withCtx(()=>[...t[22]||(t[22]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(m,{type:"primary",loading:C.value,onClick:ce},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(D,{model:o,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(g,{label:"控制码编号"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.uid,"onUpdate:modelValue":t[8]||(t[8]=l=>o.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.name,"onUpdate:modelValue":t[9]||(t[9]=l=>o.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.alias,"onUpdate:modelValue":t[10]||(t[10]=l=>o.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.description,"onUpdate:modelValue":t[11]||(t[11]=l=>o.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.script,"onUpdate:modelValue":t[12]||(t[12]=l=>o.script=l),type:"textarea",rows:8},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:F.value,"onUpdate:modelValue":t[16]||(t[16]=l=>F.value=l),title:"控制码详情",width:"720px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(m,{type:"primary",onClick:t[15]||(t[15]=l=>F.value=!1)},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Oe,[p.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(P,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(y,{label:"控制码编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(y,{label:"控制码名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(y,{label:"控制码别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(y,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(y,{label:"更新时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(y,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.description)!=null?l:""),1)]}),_:1})]),_:1}),t[24]||(t[24]=e.createElementVNode("div",{class:"view-block-title"},"控制码脚本",-1)),e.createVNode(s,{"model-value":me.value,type:"textarea",rows:10,readonly:""},null,8,["model-value"])],64)):e.createCommentVNode("",!0)])),[[w,K.value]])]),_:1},8,["modelValue"])],64)}}})),Pe=_._export_sfc(Fe,[["__scopeId","data-v-8fdefb31"]]);exports.default=Pe;
|
|
1
|
+
"use strict";var ve=Object.defineProperty,ye=Object.defineProperties;var he=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable;var X=(c,n,d)=>n in c?ve(c,n,{enumerable:!0,configurable:!0,writable:!0,value:d}):c[n]=d,J=(c,n)=>{for(var d in n||(n={}))Ne.call(n,d)&&X(c,d,n[d]);if(Q)for(var d of Q(n))xe.call(n,d)&&X(c,d,n[d]);return c},Y=(c,n)=>ye(c,he(n));var b=(c,n,d)=>new Promise((M,V)=>{var W=h=>{try{T(d.next(h))}catch(B){V(B)}},$=h=>{try{T(d.throw(h))}catch(B){V(B)}},T=h=>h.done?M(h.value):Promise.resolve(h.value).then(W,$);T((d=d.apply(c,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");const z=require("./syncMixiotListConfig-Cpgnkkws.cjs");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),Ce=require("./useMixiotPanelSurface-CAZgexY5.cjs"),we=require("./BaseComponent-C42zZPAg.cjs"),_=require("./index-PR_k3tQg.cjs"),be=require("./titleStyle-NSnz6cUg.cjs"),u=require("element-plus"),_e=require("@element-plus/icons-vue"),Se=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),Ee=require("./AgActionsRenderer.vue_vue_type_script_setup_true_lang-Cojc_jSG.cjs"),Z=require("./ele-lst-icon-CrxnHZ-A.cjs"),Te={class:"mix-body"},ke={class:"top-bar"},Oe={class:"view-body"},De={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"控制码列表",NAME_EN:"ControlList",ORDER:3,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"}]},titleColor:"#111",titleSize:14,isHideTitle:!1,columns:[]},ee=[{add:!0,view:!0,edit:!0,archive:!0,delete:!0}],Be=[{key:"add",label:"添加控制码",type:"checkbox"}],Ae=[{key:"view",label:"查看",type:"checkbox"},{key:"edit",label:"编辑",type:"checkbox"},{key:"archive",label:"资料备档",type:"checkbox"},{key:"delete",label:"删除",type:"checkbox"}],qe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Le={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"}]},Ue={DEFAULT:De,OPTIONS:Me,DATA:ee,COMMANDS:Be,OPERATIONS:Ae,SOURCE:qe,COMMON:Le},Fe=e.defineComponent(Y(J({},Ue),{__name:"controlList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""},controlUidList:{default:()=>[]}},setup(c){const n=c;class d extends we.BaseComponent{getDataBool(t,a){var f,s;const r=(s=(f=this.props.conf)==null?void 0:f.data)==null?void 0:s[0];return r&&Object.prototype.hasOwnProperty.call(r,t)&&r[t]!==void 0?!!r[t]:this.getOptionValue(t,a)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),isHideTitle:this.getOptionValue("isHideTitle",!1),add:this.getDataBool("add",!0),view:this.getDataBool("view",!0),edit:this.getDataBool("edit",!0),archive:this.getDataBool("archive",!0),delete:this.getDataBool("delete",!0)}}init(){return b(this,null,function*(){this.applyTheme(),z.setupMixiotListConf(this.props.conf,{add:!0,view:!0,edit:!0,archive:!0,delete:!0},ee),this.Style.value=this.extractStyles()})}}const M=new d(n,"controlList");M.setupLifecycle();const V=M.getStyle(),W=e.computed(()=>z.computeMixiotActionColumnMinWidth(V.value,{view:60,edit:60,archive:88,delete:60})),{mixiotPanelClass:$,mixiotPanelRootStyle:T}=Ce.useMixiotPanelSurface(V),{tableWrapRef:h,tableBodyHeight:B}=useTableBodyHeight(),te=e.computed(()=>be.generateTitleStyle(n.conf.options)),le=e.computed(()=>z.buildMixiotColumnsConfig(n.conf)),N=e.reactive({current:1,pageSize:10,total:0}),A=e.ref(""),j=e.ref("name"),q=e.ref([]),H=e.ref(!1);function oe(){const i={page_index:N.current,page_size:N.pageSize},t=[],a=A.value.trim();return a&&t.push([j.value,"like",`%${a}%`]),Se.appendCommonDesignerWhereAnd(n.conf.common,t),t.length&&(i.where_and=JSON.stringify(t)),i}function x(){return b(this,null,function*(){var i,t;H.value=!0;try{const a=yield _.api.http("control_list",oe(),!0),r=(i=a==null?void 0:a.result)!=null?i:a;let f=Array.isArray(r==null?void 0:r.data)?[...r.data]:[];if((t=n.controlUidList)!=null&&t.length){const m=new Set(n.controlUidList.map(String));f=f.filter(S=>m.has(String(S.uid)))}q.value=f;const s=r==null?void 0:r.total_records;N.total=typeof s=="number"?s:f.length,a&&a.code!==void 0&&a.code!==200&&console.warn("[controlList] 列表接口非成功",a.msg||a.info,a)}catch(a){console.error(a),q.value=[],N.total=0}finally{H.value=!1}})}const ie={AgActionsRenderer:Ee._sfc_main},ae=e.computed(()=>{const i=le.value.filter(t=>t.visible).map(t=>({field:t.prop,headerName:t.label,width:t.width||t.minWidth||120,minWidth:t.minWidth||80}));return i.push({headerName:"操作",minWidth:W.value,pinned:"right",cellRenderer:"AgActionsRenderer",cellRendererParams:{showView:V.value.view,showEdit:V.value.edit,showArchive:V.value.archive,showDelete:V.value.delete,onView:fe,onEdit:de,onArchive:ge,onDelete:Ve}}),i});function ne(){x()}e.computed(()=>q.value);function G(){N.current=1,x()}function re(){A.value="",N.current=1,x()}e.watch(()=>{var i;return(i=n.controlUidList)==null?void 0:i.join(",")},()=>{N.current=1,x()});const k=e.ref(!1),O=e.ref(!1),C=e.ref(!1),o=e.reactive({id:0,uid:"",name:"",alias:"",description:"",script:"[]",template:"[]"});function L(){o.id=0,o.uid="",o.name="",o.alias="",o.description="",o.script="[]",o.template="[]"}function U(i,t){const a=(i==null?void 0:i.trim())||"";if(!a)return t;try{return JSON.stringify(JSON.parse(a))}catch(r){return null}}function se(){L(),k.value=!0}function de(i){return b(this,null,function*(){var t,a,r,f,s,m,S,g,D,E,y,P;L(),O.value=!0,C.value=!0;try{const w=yield _.api.http("control_item",{uid:i.uid},!0),l=(t=w==null?void 0:w.result)!=null?t:w;if(l&&typeof l=="object"){o.id=Number(l.id)||0,o.uid=String((r=(a=l.uid)!=null?a:i.uid)!=null?r:""),o.name=String((f=l.name)!=null?f:""),o.alias=String((s=l.alias)!=null?s:""),o.description=String((m=l.description)!=null?m:"");const R=l.script;o.script=typeof R=="string"?R:R!=null?JSON.stringify(R):"[]";const I=l.template;o.template=typeof I=="string"?I:I!=null?JSON.stringify(I):"[]"}else o.uid=String(i.uid),o.name=String((S=i.name)!=null?S:""),o.alias=String((g=i.alias)!=null?g:""),o.description=String((D=i.description)!=null?D:"")}catch(w){o.uid=String(i.uid),o.name=String((E=i.name)!=null?E:""),o.alias=String((y=i.alias)!=null?y:""),o.description=String((P=i.description)!=null?P:""),u.ElMessage.warning("拉取控制码详情失败,已使用列表行数据编辑")}finally{C.value=!1}})}function ue(){return b(this,null,function*(){var a;if(!((a=o.name)!=null&&a.trim())){u.ElMessage.warning("请填写控制码名称");return}const i=U(o.script,"[]"),t=U(o.template,"[]");if(i===null||t===null){u.ElMessage.error("脚本或模板不是合法 JSON");return}C.value=!0;try{yield _.api.http("control_create",{name:o.name.trim(),alias:o.alias.trim(),description:o.description,script:i,template:t},!0),u.ElMessage.success("添加成功"),k.value=!1,yield x()}catch(r){u.ElMessage.error("添加失败")}finally{C.value=!1}})}function ce(){return b(this,null,function*(){var a;if(!((a=o.name)!=null&&a.trim())){u.ElMessage.warning("请填写控制码名称");return}const i=U(o.script,"[]"),t=U(o.template,"[]");if(i===null||t===null){u.ElMessage.error("脚本或模板不是合法 JSON");return}C.value=!0;try{yield _.api.http("control_update",{id:o.id,uid:o.uid,name:o.name.trim(),alias:o.alias.trim(),description:o.description,script:i,template:t},!0),u.ElMessage.success("保存成功"),O.value=!1,yield x()}catch(r){u.ElMessage.error("保存失败")}finally{C.value=!1}})}const F=e.ref(!1),K=e.ref(!1),p=e.ref(null);function pe(i){if(i==null)return"";if(typeof i=="string")try{return JSON.stringify(JSON.parse(i),null,2)}catch(t){return i}try{return JSON.stringify(i,null,2)}catch(t){return String(i)}}const me=e.computed(()=>p.value?pe(p.value.script):"");function fe(i){return b(this,null,function*(){p.value=null,F.value=!0,K.value=!0;try{const t=yield _.api.http("control_item",{uid:i.uid},!0),a=t==null?void 0:t.result;a&&typeof a=="object"?p.value=a:(p.value=J({},i),u.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){p.value=J({},i),u.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{K.value=!1}})}function ge(i){u.ElMessageBox.confirm(`确认对控制码「${i.name||i.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{u.ElMessage.success("已提交备档(完整流程请在 mixui 控制码管理中操作)")}).catch(()=>{})}function Ve(i){u.ElMessageBox.confirm(`确认删除控制码「${i.name||i.uid}」吗?`,"警告",{type:"warning"}).then(()=>b(null,null,function*(){try{yield _.api.http("control_delete",{uid:i.uid,id:i.id},!0),u.ElMessage.success("删除成功"),yield x()}catch(t){u.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{x()}),(i,t)=>{const a=v.ElOption,r=v.ElSelect,f=v.ElIcon,s=v.ElInput,m=v.ElButton,S=z.__unplugin_components_5,g=v.ElFormItem,D=v.ElForm,E=v.ElDialog,y=v.ElDescriptionsItem,P=v.ElDescriptions,w=v.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-list mix-component",e.unref($)]),style:e.normalizeStyle(e.unref(T))},[e.unref(V).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(te.value)},e.toDisplayString(c.conf.caption||c.conf.name),5)),e.createElementVNode("div",Te,[e.createElementVNode("div",ke,[e.createVNode(r,{modelValue:j.value,"onUpdate:modelValue":t[0]||(t[0]=l=>j.value=l),class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(a,{label:"控制码名称",value:"name"}),e.createVNode(a,{label:"控制码编号",value:"uid"}),e.createVNode(a,{label:"控制码别名",value:"alias"}),e.createVNode(a,{label:"描述",value:"description"})]),_:1},8,["modelValue"]),e.createVNode(s,{modelValue:A.value,"onUpdate:modelValue":t[1]||(t[1]=l=>A.value=l),placeholder:"搜索控制码",class:"toolbar-search",onKeyup:e.withKeys(G,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(f,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(_e.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(m,{type:"primary",onClick:G},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(m,{onClick:re},{default:e.withCtx(()=>[...t[18]||(t[18]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(V).add?(e.openBlock(),e.createBlock(m,{key:0,type:"success",onClick:se},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode("添加控制码",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(S,{"column-defs":ae.value,"row-data":q.value,"show-pagination":!0,pager:N,"auto-fill-columns":!0,components:ie,onPageChange:ne},null,8,["column-defs","row-data","pager"])]),e.renderSlot(i.$slots,"default",{},void 0,!0)],6)),[[w,H.value]]),e.createVNode(E,{modelValue:k.value,"onUpdate:modelValue":t[7]||(t[7]=l=>k.value=l),title:"添加控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(m,{onClick:t[6]||(t[6]=l=>k.value=!1)},{default:e.withCtx(()=>[...t[20]||(t[20]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(m,{type:"primary",loading:C.value,onClick:ue},{default:e.withCtx(()=>[...t[21]||(t[21]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(D,{model:o,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(g,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.name,"onUpdate:modelValue":t[2]||(t[2]=l=>o.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.alias,"onUpdate:modelValue":t[3]||(t[3]=l=>o.alias=l),placeholder:"可选"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.description,"onUpdate:modelValue":t[4]||(t[4]=l=>o.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.script,"onUpdate:modelValue":t[5]||(t[5]=l=>o.script=l),type:"textarea",rows:8,placeholder:"JSON 数组,默认 []"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:O.value,"onUpdate:modelValue":t[14]||(t[14]=l=>O.value=l),title:"编辑控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(m,{onClick:t[13]||(t[13]=l=>O.value=!1)},{default:e.withCtx(()=>[...t[22]||(t[22]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(m,{type:"primary",loading:C.value,onClick:ce},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(D,{model:o,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(g,{label:"控制码编号"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.uid,"onUpdate:modelValue":t[8]||(t[8]=l=>o.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.name,"onUpdate:modelValue":t[9]||(t[9]=l=>o.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.alias,"onUpdate:modelValue":t[10]||(t[10]=l=>o.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.description,"onUpdate:modelValue":t[11]||(t[11]=l=>o.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:o.script,"onUpdate:modelValue":t[12]||(t[12]=l=>o.script=l),type:"textarea",rows:8},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:F.value,"onUpdate:modelValue":t[16]||(t[16]=l=>F.value=l),title:"控制码详情",width:"720px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(m,{type:"primary",onClick:t[15]||(t[15]=l=>F.value=!1)},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Oe,[p.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(P,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(y,{label:"控制码编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(y,{label:"控制码名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(y,{label:"控制码别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(y,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(y,{label:"更新时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(y,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.description)!=null?l:""),1)]}),_:1})]),_:1}),t[24]||(t[24]=e.createElementVNode("div",{class:"view-block-title"},"控制码脚本",-1)),e.createVNode(s,{"model-value":me.value,type:"textarea",rows:10,readonly:""},null,8,["model-value"])],64)):e.createCommentVNode("",!0)])),[[w,K.value]])]),_:1},8,["modelValue"])],64)}}})),Pe=_._export_sfc(Fe,[["__scopeId","data-v-8fdefb31"]]);exports.default=Pe;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var j=Object.defineProperty,H=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var A=(r,l,i)=>l in r?j(r,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[l]=i,O=(r,l)=>{for(var i in l||(l={}))W.call(l,i)&&A(r,i,l[i]);if(q)for(var i of q(l))K.call(l,i)&&A(r,i,l[i]);return r},P=(r,l)=>H(r,U(l));var v=(r,l,i)=>new Promise((h,d)=>{var b=c=>{try{y(i.next(c))}catch(g){d(g)}},x=c=>{try{y(i.throw(c))}catch(g){d(g)}},y=c=>c.done?h(c.value):Promise.resolve(c.value).then(b,x);y((i=i.apply(r,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");const B=require("./syncMixiotListConfig-
|
|
1
|
+
"use strict";var j=Object.defineProperty,H=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var A=(r,l,i)=>l in r?j(r,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[l]=i,O=(r,l)=>{for(var i in l||(l={}))W.call(l,i)&&A(r,i,l[i]);if(q)for(var i of q(l))K.call(l,i)&&A(r,i,l[i]);return r},P=(r,l)=>H(r,U(l));var v=(r,l,i)=>new Promise((h,d)=>{var b=c=>{try{y(i.next(c))}catch(g){d(g)}},x=c=>{try{y(i.throw(c))}catch(g){d(g)}},y=c=>c.done?h(c.value):Promise.resolve(c.value).then(b,x);y((i=i.apply(r,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");const B=require("./syncMixiotListConfig-Cpgnkkws.cjs");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),G=require("./useMixiotPanelSurface-CAZgexY5.cjs"),J=require("./BaseComponent-C42zZPAg.cjs"),M=require("./index-PR_k3tQg.cjs"),Q=require("./titleStyle-NSnz6cUg.cjs"),_=require("element-plus"),Y=require("@element-plus/icons-vue"),X=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),L=require("./ele-lst-icon-CrxnHZ-A.cjs"),Z={class:"mix-body"},ee={class:"top-bar"},te={DEFAULT_ICON:L.DEFAULT_ICON,ACTIVE_ICON:L.ACTIVE_ICON,NAME_CN:"控制记录",NAME_EN:"ControlRecordList",ORDER:4,PLATFORM:["pc","screen"]},oe={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},titleColor:"#111",titleSize:14,isHideTitle:!1,columns:[]},R=[{export:!0}],ne=[{key:"export",label:"导出",type:"checkbox"}],le=[],ae=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ie={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"object_id",label:"setting.gridFields.objectId"},{value:"created_by",label:"setting.gridFields.createdBy"},{value:"command",label:"setting.gridFields.commandCode"},{value:"command_name",label:"setting.gridFields.commandName"}]},re={DEFAULT:te,OPTIONS:oe,DATA:R,COMMANDS:ne,OPERATIONS:le,SOURCE:ae,COMMON:ie},se=e.defineComponent(P(O({},re),{__name:"controlRecordList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(r){const l=r;class i extends J.BaseComponent{getDataBool(t,n){var s,p;const a=(p=(s=this.props.conf)==null?void 0:s.data)==null?void 0:p[0];return a&&Object.prototype.hasOwnProperty.call(a,t)&&a[t]!==void 0?!!a[t]:this.getOptionValue(t,n)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),isHideTitle:this.getOptionValue("isHideTitle",!1),export:this.getDataBool("export",!0)}}init(){return v(this,null,function*(){this.applyTheme(),B.setupMixiotListConf(this.props.conf,{export:!0},R),this.Style.value=this.extractStyles()})}}const h=new i(l,"controlRecordList");h.setupLifecycle();const d=h.getStyle(),{mixiotPanelClass:b,mixiotPanelRootStyle:x}=G.useMixiotPanelSurface(d),{tableWrapRef:y,tableBodyHeight:c}=useTableBodyHeight(),g=e.computed(()=>Q.generateTitleStyle(l.conf.options));e.computed(()=>B.buildMixiotColumnsConfig(l.conf));const u=e.reactive({current:1,pageSize:10,total:0}),C=e.ref(""),S=e.ref("object_id"),f=e.ref([]),N=e.ref(!1);function I(){const o={page_index:u.current,page_size:u.pageSize},t=[],n=C.value.trim();return n&&t.push([S.value,"like",`%${n}%`]),X.appendCommonDesignerWhereAnd(l.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function V(){return v(this,null,function*(){var o;N.value=!0;try{const t=yield M.api.http("get_control_record_list",I(),!0),n=(o=t==null?void 0:t.result)!=null?o:t,a=Array.isArray(n==null?void 0:n.data)?n.data:[];f.value=a.map(p=>O({},p));const s=n==null?void 0:n.total_records;u.total=typeof s=="number"?s:a.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[controlRecordList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),f.value=[],u.total=0}finally{N.value=!1}})}e.computed(()=>f.value);function D(){u.current=1,V()}function k(){C.value="",u.current=1,V()}function E(o){const t=n=>String(n).padStart(2,"0");return`${o.getFullYear()}-${t(o.getMonth()+1)}-${t(o.getDate())} ${t(o.getHours())}:${t(o.getMinutes())}:${t(o.getSeconds())}`}function F(){return v(this,null,function*(){const o=[...new Set(f.value.map(a=>{var s;return String((s=a.object_id)!=null?s:"").trim()}).filter(Boolean))];if(!o.length){_.ElMessage.warning("当前列表无对象编号,请加载记录后再导出");return}const t=new Date,n=new Date(t.getTime()-168*3600*1e3);try{yield _.ElMessageBox.confirm(`将按最近 7 天、当前已加载列表中的 ${o.length} 个对象编号发起导出任务,是否继续?`,"导出控制记录",{type:"info"})}catch(a){return}try{const a=yield M.api.http("export_control_record",{file_name:`control_record_${E(t).replace(/[: ]/g,"_")}`,start_time:E(n),end_time:E(t),object_ids:o},!0);if(a.code!==void 0&&a.code!==200){_.ElMessage.warning(a.msg||a.info||"导出请求未成功");return}_.ElMessage.success("导出任务已提交")}catch(a){_.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{V()}),(o,t)=>{const n=m.ElOption,a=m.ElSelect,s=m.ElIcon,p=m.ElInput,T=m.ElButton,$=B.__unplugin_components_5,z=m.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-record-list mix-component",e.unref(b)]),style:e.normalizeStyle(e.unref(x))},[e.unref(d).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(g.value)},e.toDisplayString(r.conf.caption||r.conf.name),5)),e.createElementVNode("div",Z,[e.createElementVNode("div",ee,[e.createVNode(a,{modelValue:S.value,"onUpdate:modelValue":t[0]||(t[0]=w=>S.value=w),class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(n,{label:"对象编号",value:"object_id"}),e.createVNode(n,{label:"用户名",value:"created_by"}),e.createVNode(n,{label:"控制码指令",value:"command"}),e.createVNode(n,{label:"指令名称",value:"command_name"})]),_:1},8,["modelValue"]),e.createVNode(p,{modelValue:C.value,"onUpdate:modelValue":t[1]||(t[1]=w=>C.value=w),placeholder:"搜索控制记录",class:"toolbar-search",onKeyup:e.withKeys(D,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(s,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(T,{type:"primary",onClick:D},{default:e.withCtx(()=>[...t[2]||(t[2]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(T,{onClick:k},{default:e.withCtx(()=>[...t[3]||(t[3]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(d).export?(e.openBlock(),e.createBlock(T,{key:0,type:"success",onClick:F},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createVNode($,{"column-defs":o.agColumnDefs,"row-data":f.value,"show-pagination":!0,pager:u,"auto-fill-columns":!0,components:o.gridComponents,onPageChange:o.onPageChange},null,8,["column-defs","row-data","pager","components","onPageChange"])]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[z,N.value]])}}})),ce=M._export_sfc(se,[["__scopeId","data-v-bb5a35fe"]]);exports.default=ce;
|
|
@@ -29,7 +29,7 @@ var b = (i, n, l) => new Promise((h, m) => {
|
|
|
29
29
|
import { ElSelect as te, ElOption as oe, ElInput as ne, ElIcon as ae, ElButton as le, ElLoadingDirective as ie } from "element-plus/es";
|
|
30
30
|
import "element-plus/es/components/base/style/css";
|
|
31
31
|
import "element-plus/es/components/loading/style/css";
|
|
32
|
-
import { b as re, _ as se, s as ce } from "./syncMixiotListConfig-
|
|
32
|
+
import { b as re, _ as se, s as ce } from "./syncMixiotListConfig-CD0wWvPU.js";
|
|
33
33
|
import "element-plus/es/components/button/style/css";
|
|
34
34
|
import "element-plus/es/components/input/style/css";
|
|
35
35
|
import "element-plus/es/components/icon/style/css";
|
|
@@ -37,8 +37,8 @@ import "element-plus/es/components/select/style/css";
|
|
|
37
37
|
import "element-plus/es/components/option/style/css";
|
|
38
38
|
import { defineComponent as de, computed as R, reactive as me, ref as C, onMounted as ue, withDirectives as pe, openBlock as V, createElementBlock as $, normalizeStyle as I, unref as _, normalizeClass as ge, toDisplayString as fe, createCommentVNode as z, createElementVNode as j, createVNode as r, withCtx as p, withKeys as _e, createTextVNode as M, createBlock as he, renderSlot as ye } from "vue";
|
|
39
39
|
import { u as ve } from "./useMixiotPanelSurface-DRl3cZvc.js";
|
|
40
|
-
import { B as be } from "./BaseComponent-
|
|
41
|
-
import { a as H, _ as Ce } from "./index-
|
|
40
|
+
import { B as be } from "./BaseComponent-D7kfvQid.js";
|
|
41
|
+
import { a as H, _ as Ce } from "./index-CaDDNmGU.js";
|
|
42
42
|
import { g as Se } from "./titleStyle-BT5GlpAb.js";
|
|
43
43
|
import { ElMessage as S, ElMessageBox as xe } from "element-plus";
|
|
44
44
|
import { Search as Te } from "@element-plus/icons-vue";
|
|
@@ -40,8 +40,8 @@ import "element-plus/es/components/button/style/css";
|
|
|
40
40
|
import "element-plus/es/components/icon/style/css";
|
|
41
41
|
import { defineComponent as qe, computed as C, ref as Q, reactive as Ge, onMounted as Qe, openBlock as m, createElementBlock as _, normalizeStyle as Y, unref as b, normalizeClass as Z, createElementVNode as S, toDisplayString as k, createVNode as s, withCtx as p, createTextVNode as O, createBlock as re, createCommentVNode as N, withDirectives as Ye, withKeys as Ze, Fragment as ce, renderList as de, withModifiers as Xe, renderSlot as et } from "vue";
|
|
42
42
|
import { u as tt } from "./useMixiotPanelSurface-DRl3cZvc.js";
|
|
43
|
-
import { B as ot } from "./BaseComponent-
|
|
44
|
-
import { a as ue, _ as at } from "./index-
|
|
43
|
+
import { B as ot } from "./BaseComponent-D7kfvQid.js";
|
|
44
|
+
import { a as ue, _ as at } from "./index-CaDDNmGU.js";
|
|
45
45
|
import { g as lt } from "./titleStyle-BT5GlpAb.js";
|
|
46
46
|
import { ElMessage as z, ElMessageBox as nt } from "element-plus";
|
|
47
47
|
import { Plus as it, Search as st, ArrowDown as rt } from "@element-plus/icons-vue";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ke=Object.defineProperty,Ce=Object.defineProperties;var xe=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var Se=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;var Y=(u,i,s)=>i in u?ke(u,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[i]=s,D=(u,i)=>{for(var s in i||(i={}))Se.call(i,s)&&Y(u,s,i[s]);if(Q)for(var s of Q(i))Ee.call(i,s)&&Y(u,s,i[s]);return u},Z=(u,i)=>Ce(u,xe(i));var h=(u,i,s)=>new Promise((S,v)=>{var O=m=>{try{y(s.next(m))}catch(g){v(g)}},T=m=>{try{y(s.throw(m))}catch(g){v(g)}},y=m=>m.done?S(m.value):Promise.resolve(m.value).then(O,T);y((s=s.apply(u,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/dropdown/style/css");require("element-plus/es/components/dropdown-menu/style/css");require("element-plus/es/components/dropdown-item/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),we=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Ve=require("./BaseComponent-RkrbGXqw.cjs"),$=require("./index-BtYU0jdF.cjs"),Be=require("./titleStyle-NSnz6cUg.cjs"),x=require("element-plus"),F=require("@element-plus/icons-vue"),Ne=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),Le=require("./useMixiotAppScrollLoad-BfiNo4UY.cjs"),X=require("./ele-lst-icon-CrxnHZ-A.cjs"),De={key:0,class:"app-title-row"},Oe={class:"mix-app-body"},Te={class:"app-toolbar-row"},Pe={key:0,class:"app-card-top"},Ae={class:"app-card-name"},Me={class:"app-field-label"},Re={class:"app-field-value"},je=["onClick"],qe={key:0,class:"app-scroll-foot"},ze={key:1,class:"app-scroll-foot"},Ie={key:2,class:"app-scroll-foot"},Fe={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"控制记录",NAME_EN:"ControlRecordListAPP",ORDER:4,PLATFORM:["mobile"]},$e={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{key:"command",label:"控制码指令",width:140,visible:!0},{key:"created_by",label:"用户名",width:120,visible:!0},{key:"created",label:"控制时间",width:180,visible:!0},{key:"object_id",label:"对象编号",width:140,visible:!0},{key:"command_name",label:"指令名称",width:140,visible:!0},{key:"value",label:"控制值",width:120,visible:!0},{key:"status",label:"下发状态",width:100,visible:!0}]},ee=[{name:"控制记录",fv:"",object_id:"",unit:"",default:"",isText:!1,showExportBtn:!0,object_id_label:"对象编号",object_id_visible:!0,created_by:"用户名",created_by_visible:!0,command:"控制码指令",command_visible:!0,command_name:"指令名称",command_name_visible:!0,value:"控制值",value_visible:!0,status:"下发状态",status_visible:!0,created:"控制时间",created_visible:!0,appCardDefaultLines:3}],Ke=[{key:"appCardDefaultLines",label:"APP卡片默认展示行数(默认3行:控制码指令、用户名、控制时间)",type:"number"},{key:"showExportBtn",label:"导出按钮",type:"checkbox",group:"命令组"},{key:"name",label:"参数名称"},{key:"command",label:"控制码指令",checkable:!0,checkboxKey:"command_visible"},{key:"created_by",label:"用户名",checkable:!0,checkboxKey:"created_by_visible"},{key:"created",label:"控制时间",checkable:!0,checkboxKey:"created_visible"},{key:"object_id_label",label:"对象编号",checkable:!0,checkboxKey:"object_id_visible"},{key:"command_name",label:"指令名称",checkable:!0,checkboxKey:"command_name_visible"},{key:"value",label:"控制值",checkable:!0,checkboxKey:"value_visible"},{key:"status",label:"下发状态",checkable:!0,checkboxKey:"status_visible"}],Ue=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],He={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"object_id",label:"setting.gridFields.objectId"},{value:"created_by",label:"setting.gridFields.createdBy"},{value:"command",label:"setting.gridFields.commandCode"},{value:"command_name",label:"setting.gridFields.commandName"}]},We={DEFAULT:Fe,OPTIONS:$e,DATA:ee,PARAMS:Ke,SOURCE:Ue,COMMON:He},Je=e.defineComponent(Z(D({},We),{__name:"controlRecordListAPP",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(u){const i=u;class s extends Ve.BaseComponent{getDataBool(t,n){var a,c;const l=(c=(a=this.props.conf)==null?void 0:a.data)==null?void 0:c[0];return l&&Object.prototype.hasOwnProperty.call(l,t)&&l[t]!==void 0?!!l[t]:this.getOptionValue(t,n)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showExportBtn:this.getDataBool("showExportBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(ee));else{const n=this.props.conf.data[0];n.showExportBtn===void 0&&(n.showExportBtn=!0);const l={object_id_visible:!0,created_by_visible:!0,command_visible:!0,command_name_visible:!0,value_visible:!0,status_visible:!0,created_visible:!0};for(const[a,c]of Object.entries(l))n[a]===void 0&&(n[a]=c);(n.appCardDefaultLines===void 0||n.appCardDefaultLines===null||n.appCardDefaultLines==="")&&(n.appCardDefaultLines=3)}}}const S=new s(i,"controlRecordListAPP");S.setupLifecycle();const v=S.getStyle(),{mixiotPanelClass:O,mixiotPanelRootStyle:T}=we.useMixiotPanelSurface(v),y=e.computed(()=>Be.generateTitleStyle(i.conf.options)),m=e.computed(()=>{var n,l,a,c;const o=((l=(n=i.conf)==null?void 0:n.options)==null?void 0:l.columns)||[],t=((c=(a=i.conf)==null?void 0:a.data)==null?void 0:c[0])||{};return(Array.isArray(o)?o:[]).map(r=>{var B;let p=r.key;r.key==="object_id"&&(p="object_id_label");const b=(B=t[p])!=null?B:t[r.key],I=r.key==="object_id"?"object_id_visible":`${r.key}_visible`,C=t[I];return{prop:r.key,label:b!==void 0&&b!==""?String(b):r.label,width:r.width,minWidth:r.minWidth,visible:C!==void 0?!!C:r.visible!==!1}})}),g=10,{listLoading:P,listLoadingMore:te,hasMore:A,totalRecords:K,pageIndex:oe,resetListPagination:ne,pageRequestParams:le,updateAfterPage:ae,onListScroll:ie,runLoadMore:re}=Le.useMixiotAppScrollLoad(g),E=e.ref(""),w=e.ref("object_id"),f=e.ref([]);function se(){const o=D({},le()),t=[],n=E.value.trim();return n&&t.push([w.value,"like",`%${n}%`]),Ne.appendCommonDesignerWhereAnd(i.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function V(o){const t=o.error;return t===""||t===null||t===void 0}function U(o){return h(this,null,function*(){var p;const t=yield $.api.http("get_control_record_list",se(),!0),n=(p=t==null?void 0:t.result)!=null?p:t,l=Array.isArray(n==null?void 0:n.data)?n.data:[],a=l.map(b=>D({},b));o?f.value=[...f.value,...a]:f.value=a;const c=n==null?void 0:n.total_records,r=typeof c=="number"?c:void 0;ae(l.length,r,f.value.length),t&&t.code!==void 0&&t.code!==200&&console.warn("[controlRecordList] 列表接口非成功",t.msg||t.info,t)})}function M(){return h(this,null,function*(){ne(),oe.value=1,P.value=!0;try{yield U(!1)}catch(o){console.error(o),f.value=[],K.value=0,A.value=!1}finally{P.value=!1}})}function ce(){return h(this,null,function*(){yield re(()=>h(null,null,function*(){try{yield U(!0)}catch(o){throw console.error(o),o}}))})}function de(o){ie(o,ce)}const ue=e.computed(()=>f.value);function pe(o,t){const n=o[t];return n==null?"":String(n)}const me=e.computed(()=>{var o,t;return((t=(o=i.conf)==null?void 0:o.data)==null?void 0:t[0])||{}}),H=e.computed(()=>{const o=me.value,t=Number(o.appCardDefaultLines);return Number.isFinite(t)&&t>=1?Math.min(Math.floor(t),30):3}),k=e.reactive({}),R=["command","created_by","created","object_id","command_name","value"],fe=e.computed(()=>{var o;return{backgroundColor:v.value.bgColor,borderRadius:`${(o=v.value.radiusSize)!=null?o:8}px`}});function j(o,t){var n,l;return`${t}-${String((n=o.object_id)!=null?n:"")}-${String((l=o.created)!=null?l:"")}`}function W(o,t){return!!k[j(o,t)]}function _e(o,t){const n=j(o,t);k[n]=!k[n]}function q(o){var n;return String((n=o.command_name)!=null?n:"").trim()}function J(o){const t=[],n=[];for(const l of R)n.includes(l)||n.push(l);for(const l of m.value)!l.visible||l.prop==="status"||n.includes(l.prop)||n.push(l.prop);for(const l of n){const a=m.value.find(c=>c.prop===l&&c.visible);!a||l==="status"||t.push({prop:l,label:a.label,text:pe(o,l)})}return t}function be(o,t){const n=J(o);if(W(o,t))return n;const l=H.value,a=[];for(const r of R){const p=n.find(b=>b.prop===r);p&&a.push(p)}if(a.length>=l)return a.slice(0,l);const c=n.filter(r=>!R.includes(r.prop));return[...a,...c].slice(0,l)}function ve(o,t){return J(o).length>H.value}function G(){M()}function he(){E.value="",w.value="object_id";for(const o of Object.keys(k))delete k[o];M()}function ye(o){o==="reset"?he():o==="export"&&ge()}function z(o){const t=n=>String(n).padStart(2,"0");return`${o.getFullYear()}-${t(o.getMonth()+1)}-${t(o.getDate())} ${t(o.getHours())}:${t(o.getMinutes())}:${t(o.getSeconds())}`}function ge(){return h(this,null,function*(){const o=[...new Set(f.value.map(l=>{var a;return String((a=l.object_id)!=null?a:"").trim()}).filter(Boolean))];if(!o.length){x.ElMessage.warning("当前列表无对象编号,请加载记录后再导出");return}const t=new Date,n=new Date(t.getTime()-168*3600*1e3);try{yield x.ElMessageBox.confirm(`将按最近 7 天、当前已加载列表中的 ${o.length} 个对象编号发起导出任务,是否继续?`,"导出控制记录",{type:"info"})}catch(l){return}try{const l=yield $.api.http("export_control_record",{file_name:`control_record_${z(t).replace(/[: ]/g,"_")}`,start_time:z(n),end_time:z(t),object_ids:o},!0);if(l.code!==void 0&&l.code!==200){x.ElMessage.warning(l.msg||l.info||"导出请求未成功");return}x.ElMessage.success("导出任务已提交")}catch(l){x.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{M()}),(o,t)=>{const n=_.ElIcon,l=_.ElButton,a=_.ElDropdownItem,c=_.ElDropdownMenu,r=_.ElDropdown,p=_.ElOption,b=_.ElSelect,I=_.ElInput,C=_.ElTag,B=_.ElLoadingDirective;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-record-list-app mixiot-list-app mix-component",e.unref(O)]),style:e.normalizeStyle(e.unref(T))},[e.unref(v).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",De,[e.createElementVNode("div",{class:"app-title-text",style:e.normalizeStyle(y.value)},e.toDisplayString(u.conf.caption||u.conf.name),5),e.createVNode(r,{trigger:"click",onCommand:ye},{dropdown:e.withCtx(()=>[e.createVNode(c,null,{default:e.withCtx(()=>[e.createVNode(a,{command:"reset"},{default:e.withCtx(()=>[...t[2]||(t[2]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(v).showExportBtn?(e.openBlock(),e.createBlock(a,{key:0,command:"export"},{default:e.withCtx(()=>[...t[3]||(t[3]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),_:1})]),default:e.withCtx(()=>[e.createVNode(l,{size:"small",circle:""},{default:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.Plus))]),_:1})]),_:1})]),_:1})])),e.withDirectives((e.openBlock(),e.createElementBlock("div",Oe,[e.createElementVNode("div",Te,[e.createVNode(b,{modelValue:w.value,"onUpdate:modelValue":t[0]||(t[0]=d=>w.value=d),class:"app-field-select"},{default:e.withCtx(()=>[e.createVNode(p,{label:"对象编号",value:"object_id"}),e.createVNode(p,{label:"用户名",value:"created_by"}),e.createVNode(p,{label:"控制码指令",value:"command"}),e.createVNode(p,{label:"指令名称",value:"command_name"})]),_:1},8,["modelValue"]),e.createVNode(I,{modelValue:E.value,"onUpdate:modelValue":t[1]||(t[1]=d=>E.value=d),placeholder:"输入关键词搜索",clearable:"",class:"app-search-input",onKeyup:e.withKeys(G,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.Search))]),_:1})]),append:e.withCtx(()=>[e.createVNode(l,{type:"primary",class:"app-toolbar-search-btn",onClick:G},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("搜索",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",{class:"app-card-scroll",onScroll:de},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ue.value,(d,N)=>(e.openBlock(),e.createElementBlock("div",{key:j(d,N),class:"app-object-card",style:e.normalizeStyle(fe.value)},[q(d)?(e.openBlock(),e.createElementBlock("div",Pe,[e.createElementVNode("div",Ae,e.toDisplayString(q(d)),1),e.createVNode(C,{type:V(d)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V(d)?"成功":"失败"),1)]),_:2},1032,["type"])])):(e.openBlock(),e.createBlock(C,{key:1,class:"app-card-status-corner",type:V(d)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V(d)?"成功":"失败"),1)]),_:2},1032,["type"])),e.createElementVNode("div",{class:e.normalizeClass(["app-card-fields",{"has-corner-status":!q(d)}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(be(d,N),L=>(e.openBlock(),e.createElementBlock("div",{key:L.prop,class:"app-field-line"},[e.createElementVNode("span",Me,e.toDisplayString(L.label),1),e.createElementVNode("span",Re,e.toDisplayString(L.text),1)]))),128))],2),ve(d)?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(["app-card-expand-bottom",{open:W(d,N)}]),onClick:e.withModifiers(L=>_e(d,N),["stop"])},[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.ArrowDown))]),_:1})],10,je)):e.createCommentVNode("",!0)],4))),128)),e.unref(te)?(e.openBlock(),e.createElementBlock("div",qe,"加载中…")):f.value.length&&!e.unref(A)?(e.openBlock(),e.createElementBlock("div",ze," 已加载全部 "+e.toDisplayString(e.unref(K))+" 条 ",1)):f.value.length&&e.unref(A)?(e.openBlock(),e.createElementBlock("div",Ie," 已加载 "+e.toDisplayString(f.value.length)+" 条,上拉加载更多 ",1)):e.createCommentVNode("",!0)],32)])),[[B,e.unref(P)]]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)}}})),Ge=$._export_sfc(Je,[["__scopeId","data-v-2d8d3031"]]);exports.default=Ge;
|
|
1
|
+
"use strict";var ke=Object.defineProperty,Ce=Object.defineProperties;var xe=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var Se=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;var Y=(u,i,s)=>i in u?ke(u,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[i]=s,D=(u,i)=>{for(var s in i||(i={}))Se.call(i,s)&&Y(u,s,i[s]);if(Q)for(var s of Q(i))Ee.call(i,s)&&Y(u,s,i[s]);return u},Z=(u,i)=>Ce(u,xe(i));var h=(u,i,s)=>new Promise((S,v)=>{var O=m=>{try{y(s.next(m))}catch(g){v(g)}},T=m=>{try{y(s.throw(m))}catch(g){v(g)}},y=m=>m.done?S(m.value):Promise.resolve(m.value).then(O,T);y((s=s.apply(u,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/dropdown/style/css");require("element-plus/es/components/dropdown-menu/style/css");require("element-plus/es/components/dropdown-item/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),we=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Ve=require("./BaseComponent-C42zZPAg.cjs"),$=require("./index-PR_k3tQg.cjs"),Be=require("./titleStyle-NSnz6cUg.cjs"),x=require("element-plus"),F=require("@element-plus/icons-vue"),Ne=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),Le=require("./useMixiotAppScrollLoad-BfiNo4UY.cjs"),X=require("./ele-lst-icon-CrxnHZ-A.cjs"),De={key:0,class:"app-title-row"},Oe={class:"mix-app-body"},Te={class:"app-toolbar-row"},Pe={key:0,class:"app-card-top"},Ae={class:"app-card-name"},Me={class:"app-field-label"},Re={class:"app-field-value"},je=["onClick"],qe={key:0,class:"app-scroll-foot"},ze={key:1,class:"app-scroll-foot"},Ie={key:2,class:"app-scroll-foot"},Fe={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"控制记录",NAME_EN:"ControlRecordListAPP",ORDER:4,PLATFORM:["mobile"]},$e={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{key:"command",label:"控制码指令",width:140,visible:!0},{key:"created_by",label:"用户名",width:120,visible:!0},{key:"created",label:"控制时间",width:180,visible:!0},{key:"object_id",label:"对象编号",width:140,visible:!0},{key:"command_name",label:"指令名称",width:140,visible:!0},{key:"value",label:"控制值",width:120,visible:!0},{key:"status",label:"下发状态",width:100,visible:!0}]},ee=[{name:"控制记录",fv:"",object_id:"",unit:"",default:"",isText:!1,showExportBtn:!0,object_id_label:"对象编号",object_id_visible:!0,created_by:"用户名",created_by_visible:!0,command:"控制码指令",command_visible:!0,command_name:"指令名称",command_name_visible:!0,value:"控制值",value_visible:!0,status:"下发状态",status_visible:!0,created:"控制时间",created_visible:!0,appCardDefaultLines:3}],Ke=[{key:"appCardDefaultLines",label:"APP卡片默认展示行数(默认3行:控制码指令、用户名、控制时间)",type:"number"},{key:"showExportBtn",label:"导出按钮",type:"checkbox",group:"命令组"},{key:"name",label:"参数名称"},{key:"command",label:"控制码指令",checkable:!0,checkboxKey:"command_visible"},{key:"created_by",label:"用户名",checkable:!0,checkboxKey:"created_by_visible"},{key:"created",label:"控制时间",checkable:!0,checkboxKey:"created_visible"},{key:"object_id_label",label:"对象编号",checkable:!0,checkboxKey:"object_id_visible"},{key:"command_name",label:"指令名称",checkable:!0,checkboxKey:"command_name_visible"},{key:"value",label:"控制值",checkable:!0,checkboxKey:"value_visible"},{key:"status",label:"下发状态",checkable:!0,checkboxKey:"status_visible"}],Ue=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],He={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"object_id",label:"setting.gridFields.objectId"},{value:"created_by",label:"setting.gridFields.createdBy"},{value:"command",label:"setting.gridFields.commandCode"},{value:"command_name",label:"setting.gridFields.commandName"}]},We={DEFAULT:Fe,OPTIONS:$e,DATA:ee,PARAMS:Ke,SOURCE:Ue,COMMON:He},Je=e.defineComponent(Z(D({},We),{__name:"controlRecordListAPP",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(u){const i=u;class s extends Ve.BaseComponent{getDataBool(t,n){var a,c;const l=(c=(a=this.props.conf)==null?void 0:a.data)==null?void 0:c[0];return l&&Object.prototype.hasOwnProperty.call(l,t)&&l[t]!==void 0?!!l[t]:this.getOptionValue(t,n)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showExportBtn:this.getDataBool("showExportBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(ee));else{const n=this.props.conf.data[0];n.showExportBtn===void 0&&(n.showExportBtn=!0);const l={object_id_visible:!0,created_by_visible:!0,command_visible:!0,command_name_visible:!0,value_visible:!0,status_visible:!0,created_visible:!0};for(const[a,c]of Object.entries(l))n[a]===void 0&&(n[a]=c);(n.appCardDefaultLines===void 0||n.appCardDefaultLines===null||n.appCardDefaultLines==="")&&(n.appCardDefaultLines=3)}}}const S=new s(i,"controlRecordListAPP");S.setupLifecycle();const v=S.getStyle(),{mixiotPanelClass:O,mixiotPanelRootStyle:T}=we.useMixiotPanelSurface(v),y=e.computed(()=>Be.generateTitleStyle(i.conf.options)),m=e.computed(()=>{var n,l,a,c;const o=((l=(n=i.conf)==null?void 0:n.options)==null?void 0:l.columns)||[],t=((c=(a=i.conf)==null?void 0:a.data)==null?void 0:c[0])||{};return(Array.isArray(o)?o:[]).map(r=>{var B;let p=r.key;r.key==="object_id"&&(p="object_id_label");const b=(B=t[p])!=null?B:t[r.key],I=r.key==="object_id"?"object_id_visible":`${r.key}_visible`,C=t[I];return{prop:r.key,label:b!==void 0&&b!==""?String(b):r.label,width:r.width,minWidth:r.minWidth,visible:C!==void 0?!!C:r.visible!==!1}})}),g=10,{listLoading:P,listLoadingMore:te,hasMore:A,totalRecords:K,pageIndex:oe,resetListPagination:ne,pageRequestParams:le,updateAfterPage:ae,onListScroll:ie,runLoadMore:re}=Le.useMixiotAppScrollLoad(g),E=e.ref(""),w=e.ref("object_id"),f=e.ref([]);function se(){const o=D({},le()),t=[],n=E.value.trim();return n&&t.push([w.value,"like",`%${n}%`]),Ne.appendCommonDesignerWhereAnd(i.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function V(o){const t=o.error;return t===""||t===null||t===void 0}function U(o){return h(this,null,function*(){var p;const t=yield $.api.http("get_control_record_list",se(),!0),n=(p=t==null?void 0:t.result)!=null?p:t,l=Array.isArray(n==null?void 0:n.data)?n.data:[],a=l.map(b=>D({},b));o?f.value=[...f.value,...a]:f.value=a;const c=n==null?void 0:n.total_records,r=typeof c=="number"?c:void 0;ae(l.length,r,f.value.length),t&&t.code!==void 0&&t.code!==200&&console.warn("[controlRecordList] 列表接口非成功",t.msg||t.info,t)})}function M(){return h(this,null,function*(){ne(),oe.value=1,P.value=!0;try{yield U(!1)}catch(o){console.error(o),f.value=[],K.value=0,A.value=!1}finally{P.value=!1}})}function ce(){return h(this,null,function*(){yield re(()=>h(null,null,function*(){try{yield U(!0)}catch(o){throw console.error(o),o}}))})}function de(o){ie(o,ce)}const ue=e.computed(()=>f.value);function pe(o,t){const n=o[t];return n==null?"":String(n)}const me=e.computed(()=>{var o,t;return((t=(o=i.conf)==null?void 0:o.data)==null?void 0:t[0])||{}}),H=e.computed(()=>{const o=me.value,t=Number(o.appCardDefaultLines);return Number.isFinite(t)&&t>=1?Math.min(Math.floor(t),30):3}),k=e.reactive({}),R=["command","created_by","created","object_id","command_name","value"],fe=e.computed(()=>{var o;return{backgroundColor:v.value.bgColor,borderRadius:`${(o=v.value.radiusSize)!=null?o:8}px`}});function j(o,t){var n,l;return`${t}-${String((n=o.object_id)!=null?n:"")}-${String((l=o.created)!=null?l:"")}`}function W(o,t){return!!k[j(o,t)]}function _e(o,t){const n=j(o,t);k[n]=!k[n]}function q(o){var n;return String((n=o.command_name)!=null?n:"").trim()}function J(o){const t=[],n=[];for(const l of R)n.includes(l)||n.push(l);for(const l of m.value)!l.visible||l.prop==="status"||n.includes(l.prop)||n.push(l.prop);for(const l of n){const a=m.value.find(c=>c.prop===l&&c.visible);!a||l==="status"||t.push({prop:l,label:a.label,text:pe(o,l)})}return t}function be(o,t){const n=J(o);if(W(o,t))return n;const l=H.value,a=[];for(const r of R){const p=n.find(b=>b.prop===r);p&&a.push(p)}if(a.length>=l)return a.slice(0,l);const c=n.filter(r=>!R.includes(r.prop));return[...a,...c].slice(0,l)}function ve(o,t){return J(o).length>H.value}function G(){M()}function he(){E.value="",w.value="object_id";for(const o of Object.keys(k))delete k[o];M()}function ye(o){o==="reset"?he():o==="export"&&ge()}function z(o){const t=n=>String(n).padStart(2,"0");return`${o.getFullYear()}-${t(o.getMonth()+1)}-${t(o.getDate())} ${t(o.getHours())}:${t(o.getMinutes())}:${t(o.getSeconds())}`}function ge(){return h(this,null,function*(){const o=[...new Set(f.value.map(l=>{var a;return String((a=l.object_id)!=null?a:"").trim()}).filter(Boolean))];if(!o.length){x.ElMessage.warning("当前列表无对象编号,请加载记录后再导出");return}const t=new Date,n=new Date(t.getTime()-168*3600*1e3);try{yield x.ElMessageBox.confirm(`将按最近 7 天、当前已加载列表中的 ${o.length} 个对象编号发起导出任务,是否继续?`,"导出控制记录",{type:"info"})}catch(l){return}try{const l=yield $.api.http("export_control_record",{file_name:`control_record_${z(t).replace(/[: ]/g,"_")}`,start_time:z(n),end_time:z(t),object_ids:o},!0);if(l.code!==void 0&&l.code!==200){x.ElMessage.warning(l.msg||l.info||"导出请求未成功");return}x.ElMessage.success("导出任务已提交")}catch(l){x.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{M()}),(o,t)=>{const n=_.ElIcon,l=_.ElButton,a=_.ElDropdownItem,c=_.ElDropdownMenu,r=_.ElDropdown,p=_.ElOption,b=_.ElSelect,I=_.ElInput,C=_.ElTag,B=_.ElLoadingDirective;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-record-list-app mixiot-list-app mix-component",e.unref(O)]),style:e.normalizeStyle(e.unref(T))},[e.unref(v).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",De,[e.createElementVNode("div",{class:"app-title-text",style:e.normalizeStyle(y.value)},e.toDisplayString(u.conf.caption||u.conf.name),5),e.createVNode(r,{trigger:"click",onCommand:ye},{dropdown:e.withCtx(()=>[e.createVNode(c,null,{default:e.withCtx(()=>[e.createVNode(a,{command:"reset"},{default:e.withCtx(()=>[...t[2]||(t[2]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(v).showExportBtn?(e.openBlock(),e.createBlock(a,{key:0,command:"export"},{default:e.withCtx(()=>[...t[3]||(t[3]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),_:1})]),default:e.withCtx(()=>[e.createVNode(l,{size:"small",circle:""},{default:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.Plus))]),_:1})]),_:1})]),_:1})])),e.withDirectives((e.openBlock(),e.createElementBlock("div",Oe,[e.createElementVNode("div",Te,[e.createVNode(b,{modelValue:w.value,"onUpdate:modelValue":t[0]||(t[0]=d=>w.value=d),class:"app-field-select"},{default:e.withCtx(()=>[e.createVNode(p,{label:"对象编号",value:"object_id"}),e.createVNode(p,{label:"用户名",value:"created_by"}),e.createVNode(p,{label:"控制码指令",value:"command"}),e.createVNode(p,{label:"指令名称",value:"command_name"})]),_:1},8,["modelValue"]),e.createVNode(I,{modelValue:E.value,"onUpdate:modelValue":t[1]||(t[1]=d=>E.value=d),placeholder:"输入关键词搜索",clearable:"",class:"app-search-input",onKeyup:e.withKeys(G,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.Search))]),_:1})]),append:e.withCtx(()=>[e.createVNode(l,{type:"primary",class:"app-toolbar-search-btn",onClick:G},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("搜索",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",{class:"app-card-scroll",onScroll:de},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ue.value,(d,N)=>(e.openBlock(),e.createElementBlock("div",{key:j(d,N),class:"app-object-card",style:e.normalizeStyle(fe.value)},[q(d)?(e.openBlock(),e.createElementBlock("div",Pe,[e.createElementVNode("div",Ae,e.toDisplayString(q(d)),1),e.createVNode(C,{type:V(d)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V(d)?"成功":"失败"),1)]),_:2},1032,["type"])])):(e.openBlock(),e.createBlock(C,{key:1,class:"app-card-status-corner",type:V(d)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V(d)?"成功":"失败"),1)]),_:2},1032,["type"])),e.createElementVNode("div",{class:e.normalizeClass(["app-card-fields",{"has-corner-status":!q(d)}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(be(d,N),L=>(e.openBlock(),e.createElementBlock("div",{key:L.prop,class:"app-field-line"},[e.createElementVNode("span",Me,e.toDisplayString(L.label),1),e.createElementVNode("span",Re,e.toDisplayString(L.text),1)]))),128))],2),ve(d)?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(["app-card-expand-bottom",{open:W(d,N)}]),onClick:e.withModifiers(L=>_e(d,N),["stop"])},[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(F.ArrowDown))]),_:1})],10,je)):e.createCommentVNode("",!0)],4))),128)),e.unref(te)?(e.openBlock(),e.createElementBlock("div",qe,"加载中…")):f.value.length&&!e.unref(A)?(e.openBlock(),e.createElementBlock("div",ze," 已加载全部 "+e.toDisplayString(e.unref(K))+" 条 ",1)):f.value.length&&e.unref(A)?(e.openBlock(),e.createElementBlock("div",Ie," 已加载 "+e.toDisplayString(f.value.length)+" 条,上拉加载更多 ",1)):e.createCommentVNode("",!0)],32)])),[[B,e.unref(P)]]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)}}})),Ge=$._export_sfc(Je,[["__scopeId","data-v-2d8d3031"]]);exports.default=Ge;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var F=Object.defineProperty,L=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var V=(p,i,l)=>i in p?F(p,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):p[i]=l,y=(p,i)=>{for(var l in i||(i={}))H.call(i,l)&&V(p,l,i[l]);if(T)for(var l of T(i))j.call(i,l)&&V(p,l,i[l]);return p},x=(p,i)=>L(p,D(i));var O=(p,i,l)=>new Promise((h,g)=>{var c=u=>{try{m(l.next(u))}catch(f){g(f)}},S=u=>{try{m(l.throw(u))}catch(f){g(f)}},m=u=>u.done?h(u.value):Promise.resolve(u.value).then(c,S);m((l=l.apply(p,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),R=require("./BaseComponent-RkrbGXqw.cjs"),G=require("./index-BtYU0jdF.cjs"),$=require("./titleStyle-NSnz6cUg.cjs"),_=require("./ele-crd-icon-BvNgAPKW.cjs"),M={class:"value-main"},W={key:0,class:"value-unit"},B="--",U={DEFAULT_ICON:_.DEFAULT_ICON,ACTIVE_ICON:_.ACTIVE_ICON,NAME_CN:"基础卡片",NAME_EN:"Card",ORDER:1,PLATFORM:["pc","screen","mobile"]},q={titleColor:"#111",titleSize:14,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,labelColor:"#111",textColor:"#111",bgColor:"#fff",valueSize:28,nameSize:14,radiusSize:8,isHideTitle:!0,showTopGradient:!1,topGradientStart:{value:"#f5a623",type:"color",label:"component.options.topGradientStart",dependent:"showTopGradient"},topGradientHeight:{value:2,type:"number",min:1,max:16,label:"component.options.topGradientHeight",dependent:"showTopGradient"},topGradientPosition:{value:"cardItem",type:"select",label:"component.options.topGradientPosition",dependent:"showTopGradient",options:[{label:"component.options.topGradientPosition_cardItem",value:"cardItem"},{label:"component.options.topGradientPosition_aboveTitle",value:"aboveTitle"}]},showBgIcon:!1,defaultBgIcon:{value:"",type:"text",label:"component.options.defaultBgIcon",dependent:"showBgIcon"},bgIconOpacity:{value:.06,type:"number",min:0,max:1,step:.01,label:"component.options.bgIconOpacity",dependent:"showBgIcon"},bgIconSize:{value:40,type:"number",min:8,max:120,label:"component.options.bgIconSize",dependent:"showBgIcon"},bgIconPosition:{value:"right",type:"select",label:"component.options.bgIconPosition",dependent:"showBgIcon",options:[{label:"component.options.bgIconPosition_right",value:"right"},{label:"component.options.bgIconPosition_left",value:"left"}]},paramsLayout:{value:"horizontal",type:"select",label:"component.options.paramsLayout",options:[{label:"component.options.paramsLayout_horizontal",value:"horizontal"},{label:"component.options.paramsLayout_vertical",value:"vertical"}]}},J=[{name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1,valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"}],K=["name","fv","object_id","unit","default","isText",{key:"valueFontSize",type:"number",label:"component.options.crdValueFontSize",group:"component.options.crdGroupCellStyle",groupCollapsedByDefault:!0,min:0,max:120},{key:"nameFontSize",type:"number",label:"component.options.crdNameFontSize",group:"component.options.crdGroupCellStyle",min:0,max:120},{key:"valueTextColor",type:"color",label:"component.options.crdValueTextColor",group:"component.options.crdGroupCellStyle"},{key:"valueAlign",type:"select",label:"component.options.crdValueAlign",group:"component.options.crdGroupCellStyle",options:[{label:"component.options.crdValueAlign_left",value:"left"},{label:"component.options.crdValueAlign_center",value:"center"},{label:"component.options.crdValueAlign_right",value:"right"}]},{key:"nameTextColor",type:"color",label:"component.options.crdNameTextColor",group:"component.options.crdGroupCellStyle"},{key:"areaWeight",type:"number",label:"component.options.crdAreaWeight",group:"component.options.crdGroupCellStyle",min:1,max:32},{key:"cellPadding",type:"number",label:"component.options.crdCellPadding",group:"component.options.crdGroupCellStyle",min:0,max:64}],Q=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime","summary"],X={useAlias:!1,multiObject:!1,source:"mosaic",object_id:"",object_alias:""},Y={DEFAULT:U,OPTIONS:q,DATA:J,PARAMS:K,SOURCE:Q,COMMON:X},Z=e.defineComponent(x(y({},Y),{__name:"crd",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const i={valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"},l=p;class h extends R.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),labelColor:this.getOptionValue("labelColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",14),valueSize:this.getOptionValue("valueSize",28),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!0),showTopGradient:this.getOptionValue("showTopGradient",!1),topGradientStart:this.getOptionValue("topGradientStart","#f5a623"),topGradientHeight:this.getOptionValue("topGradientHeight",2),topGradientPosition:this.getOptionValue("topGradientPosition","cardItem"),showBgIcon:this.getOptionValue("showBgIcon",!1),defaultBgIcon:this.getOptionValue("defaultBgIcon",""),bgIconOpacity:this.getOptionValue("bgIconOpacity",.06),bgIconSize:this.getOptionValue("bgIconSize",40),bgIconPosition:this.getOptionValue("bgIconPosition","right"),paramsLayout:this.getOptionValue("paramsLayout","horizontal")}}init(){return O(this,null,function*(){var o;this.Style.value=this.extractStyles(),this.applyTheme();const n={name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1};if(!((o=this.props.conf.data)!=null&&o.length))this.props.conf.data=[y(y({},n),i)];else for(const a of this.props.conf.data)if(!(!a||typeof a!="object"))for(const[s,r]of Object.entries(i))a[s]===void 0&&(a[s]=r)})}setHistoryData(n){if(!n)return;const{data:o}=this.props.conf;!Array.isArray(o)||!o.length||o.forEach((a,s)=>{try{const r=n[s].data[0];r!=null&&(a.value=r)}catch(r){}})}}const g=new h(l,"crd");g.setupLifecycle();const c=g.getStyle(),S=e.computed(()=>$.generateTitleStyle(l.conf.options)),m=e.computed(()=>{const t=S.value||{},n=parseFloat(String(t.fontSize||"14"))||14,o=String(t.padding||"").split(" ").filter(Boolean),a=o.length>0&&parseFloat(o[0])||0,s=Math.ceil(n*1.5),r=Math.max(0,s+a*2);return x(y({},t),{minHeight:`${r}px`})}),u=e.computed(()=>{const t=c.value,n=Number(t.topGradientHeight)||2,o=t.topGradientStart||"#f5a623";return{height:`${n}px`,background:`linear-gradient(90deg, ${o}, transparent)`}}),f=e.computed(()=>{const t=c.value;return!!t.showTopGradient&&t.topGradientPosition==="aboveTitle"}),N=e.computed(()=>{const t=c.value;return!!t.showTopGradient&&t.topGradientPosition!=="aboveTitle"}),z=e.computed(()=>c.value.paramsLayout==="vertical"),k=e.computed(()=>{var o;const t=c.value,n=t.bgIconPosition==="right";return{opacity:(o=t.bgIconOpacity)!=null?o:.06,fontSize:`${Number(t.bgIconSize)||40}px`,display:"flex",alignItems:"center",justifyContent:n?"flex-end":"flex-start",paddingRight:n?"12px":void 0,paddingLeft:n?void 0:"12px"}});function A(t){const n=Number(t==null?void 0:t.areaWeight),o=Number.isFinite(n)&&n>0?n:1,a=Number(t==null?void 0:t.cellPadding),s={flex:`${o} 1 0`,minWidth:"0",minHeight:"0"};return Number.isFinite(a)&&a>0&&(s.padding=`${a}px`),s}function E(t){const n=c.value,o=Number(t==null?void 0:t.valueFontSize),a=Number.isFinite(o)&&o>0?o:n.valueSize,s=typeof(t==null?void 0:t.valueTextColor)=="string"?t.valueTextColor.trim():"",r=t==null?void 0:t.valueAlign,d=r==="left"||r==="right"||r==="center"?r:"center",b=d==="left"?"flex-start":d==="right"?"flex-end":"center";return{color:s||n.textColor,fontSize:`${a}px`,width:"100%",justifyContent:b,textAlign:d}}function P(t){const n=c.value,o=Number(t==null?void 0:t.nameFontSize),a=Number.isFinite(o)&&o>0?o:n.nameSize;return{color:(typeof(t==null?void 0:t.nameTextColor)=="string"?t.nameTextColor.trim():"")||n.labelColor,fontSize:`${a}px`}}function I(){const t=c.value.defaultBgIcon,n=typeof t=="string"?t.trim():"";return n?G.decodeIconFromStorage(n):""}const v=t=>{var s,r,d,b;if(!t)return{value:B,name:"--",unit:""};const n=(s=t.name)!=null?s:"",o=typeof t.unit=="string"?t.unit.trim():"";return t.isText?{value:(((r=t.flag)==null?void 0:r.find(w=>String(w.code)==String(t.value)))||{}).text||B,name:n,unit:o}:{value:(b=(d=t.value)!=null?d:t.default)!=null?b:0,name:n,unit:o}},C=l.conf;return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:e.unref(c).radiusSize+"px"})},[f.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-component-top-gradient",style:e.normalizeStyle(u.value)},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(m.value)},e.toDisplayString(e.unref(C).caption||e.unref(C).name),5),e.createElementVNode("div",{class:e.normalizeClass(["mix-body",{"mix-body--params-vertical":z.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C).data,(o,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:"card-item",style:e.normalizeStyle(A(o))},[e.createElementVNode("div",{class:"card-item-surface",style:e.normalizeStyle({background:e.unref(c).bgColor})},null,4),N.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"card-item-top-gradient",style:e.normalizeStyle(u.value)},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["card-item-inner",{"card-item-inner--row":z.value}])},[e.createElementVNode("div",{class:"value",style:e.normalizeStyle(E(o))},[e.createElementVNode("span",M,e.toDisplayString(v(o).value),1),v(o).unit?(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(v(o).unit),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("div",{class:"name",style:e.normalizeStyle(P(o))},e.toDisplayString(v(o).name),5)],2)],4))),128)),e.unref(c).showBgIcon&&I()?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-body-bg-icon",style:e.normalizeStyle(k.value)},e.toDisplayString(I()),5)):e.createCommentVNode("",!0)],2),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),ee=G._export_sfc(Z,[["__scopeId","data-v-5ea5da48"]]);exports.default=ee;
|
|
1
|
+
"use strict";var F=Object.defineProperty,L=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var V=(p,i,l)=>i in p?F(p,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):p[i]=l,y=(p,i)=>{for(var l in i||(i={}))H.call(i,l)&&V(p,l,i[l]);if(T)for(var l of T(i))j.call(i,l)&&V(p,l,i[l]);return p},x=(p,i)=>L(p,D(i));var O=(p,i,l)=>new Promise((h,g)=>{var c=u=>{try{m(l.next(u))}catch(f){g(f)}},S=u=>{try{m(l.throw(u))}catch(f){g(f)}},m=u=>u.done?h(u.value):Promise.resolve(u.value).then(c,S);m((l=l.apply(p,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),R=require("./BaseComponent-C42zZPAg.cjs"),G=require("./index-PR_k3tQg.cjs"),$=require("./titleStyle-NSnz6cUg.cjs"),_=require("./ele-crd-icon-BvNgAPKW.cjs"),M={class:"value-main"},W={key:0,class:"value-unit"},B="--",U={DEFAULT_ICON:_.DEFAULT_ICON,ACTIVE_ICON:_.ACTIVE_ICON,NAME_CN:"基础卡片",NAME_EN:"Card",ORDER:1,PLATFORM:["pc","screen","mobile"]},q={titleColor:"#111",titleSize:14,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,labelColor:"#111",textColor:"#111",bgColor:"#fff",valueSize:28,nameSize:14,radiusSize:8,isHideTitle:!0,showTopGradient:!1,topGradientStart:{value:"#f5a623",type:"color",label:"component.options.topGradientStart",dependent:"showTopGradient"},topGradientHeight:{value:2,type:"number",min:1,max:16,label:"component.options.topGradientHeight",dependent:"showTopGradient"},topGradientPosition:{value:"cardItem",type:"select",label:"component.options.topGradientPosition",dependent:"showTopGradient",options:[{label:"component.options.topGradientPosition_cardItem",value:"cardItem"},{label:"component.options.topGradientPosition_aboveTitle",value:"aboveTitle"}]},showBgIcon:!1,defaultBgIcon:{value:"",type:"text",label:"component.options.defaultBgIcon",dependent:"showBgIcon"},bgIconOpacity:{value:.06,type:"number",min:0,max:1,step:.01,label:"component.options.bgIconOpacity",dependent:"showBgIcon"},bgIconSize:{value:40,type:"number",min:8,max:120,label:"component.options.bgIconSize",dependent:"showBgIcon"},bgIconPosition:{value:"right",type:"select",label:"component.options.bgIconPosition",dependent:"showBgIcon",options:[{label:"component.options.bgIconPosition_right",value:"right"},{label:"component.options.bgIconPosition_left",value:"left"}]},paramsLayout:{value:"horizontal",type:"select",label:"component.options.paramsLayout",options:[{label:"component.options.paramsLayout_horizontal",value:"horizontal"},{label:"component.options.paramsLayout_vertical",value:"vertical"}]}},J=[{name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1,valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"}],K=["name","fv","object_id","unit","default","isText",{key:"valueFontSize",type:"number",label:"component.options.crdValueFontSize",group:"component.options.crdGroupCellStyle",groupCollapsedByDefault:!0,min:0,max:120},{key:"nameFontSize",type:"number",label:"component.options.crdNameFontSize",group:"component.options.crdGroupCellStyle",min:0,max:120},{key:"valueTextColor",type:"color",label:"component.options.crdValueTextColor",group:"component.options.crdGroupCellStyle"},{key:"valueAlign",type:"select",label:"component.options.crdValueAlign",group:"component.options.crdGroupCellStyle",options:[{label:"component.options.crdValueAlign_left",value:"left"},{label:"component.options.crdValueAlign_center",value:"center"},{label:"component.options.crdValueAlign_right",value:"right"}]},{key:"nameTextColor",type:"color",label:"component.options.crdNameTextColor",group:"component.options.crdGroupCellStyle"},{key:"areaWeight",type:"number",label:"component.options.crdAreaWeight",group:"component.options.crdGroupCellStyle",min:1,max:32},{key:"cellPadding",type:"number",label:"component.options.crdCellPadding",group:"component.options.crdGroupCellStyle",min:0,max:64}],Q=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime","summary"],X={useAlias:!1,multiObject:!1,source:"mosaic",object_id:"",object_alias:""},Y={DEFAULT:U,OPTIONS:q,DATA:J,PARAMS:K,SOURCE:Q,COMMON:X},Z=e.defineComponent(x(y({},Y),{__name:"crd",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const i={valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"},l=p;class h extends R.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),labelColor:this.getOptionValue("labelColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",14),valueSize:this.getOptionValue("valueSize",28),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!0),showTopGradient:this.getOptionValue("showTopGradient",!1),topGradientStart:this.getOptionValue("topGradientStart","#f5a623"),topGradientHeight:this.getOptionValue("topGradientHeight",2),topGradientPosition:this.getOptionValue("topGradientPosition","cardItem"),showBgIcon:this.getOptionValue("showBgIcon",!1),defaultBgIcon:this.getOptionValue("defaultBgIcon",""),bgIconOpacity:this.getOptionValue("bgIconOpacity",.06),bgIconSize:this.getOptionValue("bgIconSize",40),bgIconPosition:this.getOptionValue("bgIconPosition","right"),paramsLayout:this.getOptionValue("paramsLayout","horizontal")}}init(){return O(this,null,function*(){var o;this.Style.value=this.extractStyles(),this.applyTheme();const n={name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1};if(!((o=this.props.conf.data)!=null&&o.length))this.props.conf.data=[y(y({},n),i)];else for(const a of this.props.conf.data)if(!(!a||typeof a!="object"))for(const[s,r]of Object.entries(i))a[s]===void 0&&(a[s]=r)})}setHistoryData(n){if(!n)return;const{data:o}=this.props.conf;!Array.isArray(o)||!o.length||o.forEach((a,s)=>{try{const r=n[s].data[0];r!=null&&(a.value=r)}catch(r){}})}}const g=new h(l,"crd");g.setupLifecycle();const c=g.getStyle(),S=e.computed(()=>$.generateTitleStyle(l.conf.options)),m=e.computed(()=>{const t=S.value||{},n=parseFloat(String(t.fontSize||"14"))||14,o=String(t.padding||"").split(" ").filter(Boolean),a=o.length>0&&parseFloat(o[0])||0,s=Math.ceil(n*1.5),r=Math.max(0,s+a*2);return x(y({},t),{minHeight:`${r}px`})}),u=e.computed(()=>{const t=c.value,n=Number(t.topGradientHeight)||2,o=t.topGradientStart||"#f5a623";return{height:`${n}px`,background:`linear-gradient(90deg, ${o}, transparent)`}}),f=e.computed(()=>{const t=c.value;return!!t.showTopGradient&&t.topGradientPosition==="aboveTitle"}),N=e.computed(()=>{const t=c.value;return!!t.showTopGradient&&t.topGradientPosition!=="aboveTitle"}),z=e.computed(()=>c.value.paramsLayout==="vertical"),k=e.computed(()=>{var o;const t=c.value,n=t.bgIconPosition==="right";return{opacity:(o=t.bgIconOpacity)!=null?o:.06,fontSize:`${Number(t.bgIconSize)||40}px`,display:"flex",alignItems:"center",justifyContent:n?"flex-end":"flex-start",paddingRight:n?"12px":void 0,paddingLeft:n?void 0:"12px"}});function A(t){const n=Number(t==null?void 0:t.areaWeight),o=Number.isFinite(n)&&n>0?n:1,a=Number(t==null?void 0:t.cellPadding),s={flex:`${o} 1 0`,minWidth:"0",minHeight:"0"};return Number.isFinite(a)&&a>0&&(s.padding=`${a}px`),s}function E(t){const n=c.value,o=Number(t==null?void 0:t.valueFontSize),a=Number.isFinite(o)&&o>0?o:n.valueSize,s=typeof(t==null?void 0:t.valueTextColor)=="string"?t.valueTextColor.trim():"",r=t==null?void 0:t.valueAlign,d=r==="left"||r==="right"||r==="center"?r:"center",b=d==="left"?"flex-start":d==="right"?"flex-end":"center";return{color:s||n.textColor,fontSize:`${a}px`,width:"100%",justifyContent:b,textAlign:d}}function P(t){const n=c.value,o=Number(t==null?void 0:t.nameFontSize),a=Number.isFinite(o)&&o>0?o:n.nameSize;return{color:(typeof(t==null?void 0:t.nameTextColor)=="string"?t.nameTextColor.trim():"")||n.labelColor,fontSize:`${a}px`}}function I(){const t=c.value.defaultBgIcon,n=typeof t=="string"?t.trim():"";return n?G.decodeIconFromStorage(n):""}const v=t=>{var s,r,d,b;if(!t)return{value:B,name:"--",unit:""};const n=(s=t.name)!=null?s:"",o=typeof t.unit=="string"?t.unit.trim():"";return t.isText?{value:(((r=t.flag)==null?void 0:r.find(w=>String(w.code)==String(t.value)))||{}).text||B,name:n,unit:o}:{value:(b=(d=t.value)!=null?d:t.default)!=null?b:0,name:n,unit:o}},C=l.conf;return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:e.unref(c).radiusSize+"px"})},[f.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-component-top-gradient",style:e.normalizeStyle(u.value)},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(m.value)},e.toDisplayString(e.unref(C).caption||e.unref(C).name),5),e.createElementVNode("div",{class:e.normalizeClass(["mix-body",{"mix-body--params-vertical":z.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C).data,(o,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:"card-item",style:e.normalizeStyle(A(o))},[e.createElementVNode("div",{class:"card-item-surface",style:e.normalizeStyle({background:e.unref(c).bgColor})},null,4),N.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"card-item-top-gradient",style:e.normalizeStyle(u.value)},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["card-item-inner",{"card-item-inner--row":z.value}])},[e.createElementVNode("div",{class:"value",style:e.normalizeStyle(E(o))},[e.createElementVNode("span",M,e.toDisplayString(v(o).value),1),v(o).unit?(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(v(o).unit),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("div",{class:"name",style:e.normalizeStyle(P(o))},e.toDisplayString(v(o).name),5)],2)],4))),128)),e.unref(c).showBgIcon&&I()?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-body-bg-icon",style:e.normalizeStyle(k.value)},e.toDisplayString(I()),5)):e.createCommentVNode("",!0)],2),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),ee=G._export_sfc(Z,[["__scopeId","data-v-5ea5da48"]]);exports.default=ee;
|
|
@@ -27,8 +27,8 @@ var F = (c, l, n) => new Promise((_, b) => {
|
|
|
27
27
|
h((n = n.apply(c, l)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as J, computed as d, openBlock as g, createElementBlock as m, normalizeStyle as u, unref as f, createCommentVNode as z, createElementVNode as y, toDisplayString as C, normalizeClass as N, Fragment as K, renderList as Q, renderSlot as X } from "vue";
|
|
30
|
-
import { B as Y } from "./BaseComponent-
|
|
31
|
-
import { q as Z, _ as tt } from "./index-
|
|
30
|
+
import { B as Y } from "./BaseComponent-D7kfvQid.js";
|
|
31
|
+
import { q as Z, _ as tt } from "./index-CaDDNmGU.js";
|
|
32
32
|
import { g as et } from "./titleStyle-BT5GlpAb.js";
|
|
33
33
|
import { A as ot, D as nt } from "./ele-crd-icon-BXxB7P3T.js";
|
|
34
34
|
const at = { class: "value-main" }, lt = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var A=Object.defineProperty,F=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols,L=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,j=Reflect.get;var O=(l,o,t)=>o in l?A(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,z=(l,o)=>{for(var t in o||(o={}))P.call(o,t)&&O(l,t,o[t]);if(k)for(var t of k(o))I.call(o,t)&&O(l,t,o[t]);return l},N=(l,o)=>F(l,M(o));var w=(l,o,t)=>j(L(l),t,o);var S=(l,o,t)=>new Promise((p,d)=>{var f=r=>{try{u(t.next(r))}catch(c){d(c)}},C=r=>{try{u(t.throw(r))}catch(c){d(c)}},u=r=>r.done?p(r.value):Promise.resolve(r.value).then(f,C);u((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const D=require("./BaseComponent-RkrbGXqw.cjs"),v=require("./index-BtYU0jdF.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),y=require("./mix-control-modal-BrC9Ymp1.cjs"),H=require("element-plus"),q="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-213.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M225.674156,1208.89481%20C225.944595,1209.04924%20226.205387,1209.21954%20226.455068,1209.40467%20C226.881095,1209.72052%20227.273774,1210.07876%20227.626647,1210.47337%20C228.878628,1211.87353%20229.582251,1213.67438%20229.582251,1215.58182%20C229.582251,1219.84629%20226.083331,1223.3%20221.771264,1223.3%20C217.459198,1223.3%20213.960278,1219.84629%20213.960278,1215.58182%20C213.960278,1213.67437%20214.663898,1211.87352%20215.9159,1210.47335%20C216.268755,1210.07876%20216.661433,1209.72052%20217.087434,1209.40469%20C217.337142,1209.21954%20217.597933,1209.04924%20217.868372,1208.89481%20C218.16979,1208.7227%20218.55366,1208.82753%20218.725771,1209.12895%20C218.897882,1209.43036%20218.793058,1209.81423%20218.49164,1209.98634%20C218.264609,1210.11598%20218.045681,1210.25894%20217.836048,1210.41438%20C217.478472,1210.67948%20217.148907,1210.98015%20216.85287,1211.31119%20C215.804685,1212.48343%20215.217218,1213.98699%20215.217218,1215.58182%20C215.217218,1219.14841%20218.149754,1222.04306%20221.771264,1222.04306%20C225.392775,1222.04306%20228.32531,1219.14841%20228.32531,1215.58182%20C228.32531,1213.987%20227.73784,1212.48344%20226.689675,1211.31121%20C226.393622,1210.98015%20226.064056,1210.67948%20225.706453,1210.41436%20C225.496847,1210.25894%20225.27792,1210.11598%20225.050889,1209.98634%20C224.749471,1209.81423%20224.644647,1209.43036%20224.816758,1209.12895%20C224.988868,1208.82753%20225.372739,1208.7227%20225.674156,1208.89481%20Z%20M221.771264,1207.3%20C222.089434,1207.3%20222.352382,1207.53643%20222.393997,1207.84319%20L222.399735,1207.92847%20L222.399735,1215.48901%20C222.399735,1215.83611%20222.118359,1216.11748%20221.771264,1216.11748%20C221.453094,1216.11748%20221.190147,1215.88105%20221.148531,1215.57429%20L221.142794,1215.48901%20L221.142794,1207.92847%20C221.142794,1207.58138%20221.42417,1207.3%20221.771264,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M115.0528,1208.89481%20C115.323239,1209.04924%20115.58403,1209.21954%20115.833711,1209.40467%20C116.259739,1209.72052%20116.652418,1210.07876%20117.00529,1210.47337%20C118.257271,1211.87353%20118.960894,1213.67438%20118.960894,1215.58182%20C118.960894,1219.84629%20115.461974,1223.3%20111.149908,1223.3%20C106.837841,1223.3%20103.338921,1219.84629%20103.338921,1215.58182%20C103.338921,1213.67437%20104.042541,1211.87352%20105.294544,1210.47335%20C105.647398,1210.07876%20106.040077,1209.72052%20106.466077,1209.40469%20C106.715786,1209.21954%20106.976577,1209.04924%20107.247016,1208.89481%20C107.548433,1208.7227%20107.932304,1208.82753%20108.104414,1209.12895%20C108.276525,1209.43036%20108.171701,1209.81423%20107.870284,1209.98634%20C107.643252,1210.11598%20107.424325,1210.25894%20107.214692,1210.41438%20C106.857116,1210.67948%20106.52755,1210.98015%20106.231514,1211.31119%20C105.183328,1212.48343%20104.595862,1213.98699%20104.595862,1215.58182%20C104.595862,1219.14841%20107.528398,1222.04306%20111.149908,1222.04306%20C114.771418,1222.04306%20117.703954,1219.14841%20117.703954,1215.58182%20C117.703954,1213.987%20117.116484,1212.48344%20116.068318,1211.31121%20C115.772265,1210.98015%20115.4427,1210.67948%20115.085097,1210.41436%20C114.875491,1210.25894%20114.656563,1210.11598%20114.429532,1209.98634%20C114.128115,1209.81423%20114.023291,1209.43036%20114.195401,1209.12895%20C114.367512,1208.82753%20114.751382,1208.7227%20115.0528,1208.89481%20Z%20M111.149908,1207.3%20C111.468078,1207.3%20111.731026,1207.53643%20111.772641,1207.84319%20L111.778378,1207.92847%20L111.778378,1215.48901%20C111.778378,1215.83611%20111.497002,1216.11748%20111.149908,1216.11748%20C110.831738,1216.11748%20110.56879,1215.88105%20110.527175,1215.57429%20L110.521438,1215.48901%20L110.521438,1207.92847%20C110.521438,1207.58138%20110.802813,1207.3%20111.149908,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",U={class:"font-semibold flex items-center justify-between"},Z={class:"mix-body"},W={class:"w-full flex flex-wrap content-start"},G=["onClick"],J={DEFAULT_ICON:q,ACTIVE_ICON:$,NAME_CN:"按键",NAME_EN:"Button",ORDER:2,PLATFORM:["pc","screen","mobile"]},K={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:v.CONTROL_OPTIONS}},V=[{command:"Control_01",name:"关机",color:"#c92309",code:"0"},{command:"Control_01",name:"开机",color:"#217406",code:"1"}],Y=["name","command","color","code"],Q=["mosaic"],X={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},e2={DEFAULT:J,OPTIONS:K,DATA:V,PARAMS:Y,SOURCE:Q,COMMON:X},t2=e.defineComponent(N(z({},e2),{__name:"ctrBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(l){const o=l,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),p=e.reactive({rule:"",code:"",command:""}),d=e.reactive({text:"",color:""}),f=e.ref(null),C=e.ref(!0);class u extends D.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#fff"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",42),radiusSize:this.getOptionValue("radiusSize",8),items:this.getOptionValue("items",2),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return S(this,null,function*(){w(u.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:V})}onPreview(){return S(this,null,function*(){yield w(u.prototype,this,"onPreview").call(this);const n=yield y.getAuthorized(this.props);t.authorized=n.authorized,t.password=n.password})}setSocketData(n){var g,x;if(!n)return;const{common:i}=this.props.conf,s=this.extractDataValue(n,i.statusFv);if(s!=null){const m=i.status.find(h=>String(h.code)===String(s));d.text=(g=m==null?void 0:m.text)!=null?g:"",d.color=(x=m==null?void 0:m.color)!=null?x:""}}}const r=new u(o,"ctrBtn");r.setupLifecycle();const c=r.getStyle(),E=e.computed(()=>R.generateTitleStyle(o.conf.options)),B=e.computed(()=>`${(100/c.value.items).toFixed(2)||100}%`),b=a=>!y.checkPermission(t.authorized,a.command),T=a=>{var s;if(b(a))return;const{options:n}=o.conf;let i=((s=n==null?void 0:n.method)==null?void 0:s.value)||"alway";p.rule=i,p.code=String(a.code),p.command=a.command,i==="alway"||i==="once"&&C.value?f.value.modal.visible=!0:_()},_=()=>{const{code:a,rule:n,command:i}=p,{common:s}=o.conf,g=JSON.parse(sessionStorage.getItem(v.ALIAS_MAPPING_KEY)||"{}");let m={block_mapping:"mapping",action:"publish_command",object_id:s.useAlias?g[s.object_alias]:s.object_id||o.uid,command:i,value:a,rule:n,control:t.password};v.api.platform(h=>{h.code===200&&(H.ElMessage.success(h.msg),f.value.modal.visible=!1,C.value=!1)},m)};return(a,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(E.value)},[e.createElementVNode("div",U,[e.createTextVNode(e.toDisplayString(l.conf.caption||l.conf.name)+" ",1),d.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"status-btn",style:e.normalizeStyle({backgroundColor:d.color,color:e.unref(c).textColor})},e.toDisplayString(d.text),5)):e.createCommentVNode("",!0)])],4),e.createElementVNode("div",Z,[e.createElementVNode("div",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.data,(i,s)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:s,style:e.normalizeStyle({width:B.value,height:`${e.unref(c).itemHeight}px`,fontSize:`${e.unref(c).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:b(i)}]),style:e.normalizeStyle({backgroundColor:i.color,color:e.unref(c).textColor}),onClick:g=>T(i)},e.toDisplayString(i.name),15,G)],4))),128))])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4),e.createVNode(y._sfc_main,{ref_key:"controlRef",ref:f,onSubmit:_,password:t.password},null,8,["password"])],64))}})),o2=v._export_sfc(t2,[["__scopeId","data-v-061fd8dc"]]);exports.default=o2;
|
|
1
|
+
"use strict";var A=Object.defineProperty,F=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols,L=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,j=Reflect.get;var O=(l,o,t)=>o in l?A(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,z=(l,o)=>{for(var t in o||(o={}))P.call(o,t)&&O(l,t,o[t]);if(k)for(var t of k(o))I.call(o,t)&&O(l,t,o[t]);return l},N=(l,o)=>F(l,M(o));var w=(l,o,t)=>j(L(l),t,o);var S=(l,o,t)=>new Promise((p,d)=>{var f=r=>{try{u(t.next(r))}catch(c){d(c)}},C=r=>{try{u(t.throw(r))}catch(c){d(c)}},u=r=>r.done?p(r.value):Promise.resolve(r.value).then(f,C);u((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const D=require("./BaseComponent-C42zZPAg.cjs"),v=require("./index-PR_k3tQg.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),y=require("./mix-control-modal-oDAz2GZ_.cjs"),H=require("element-plus"),q="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-213.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M225.674156,1208.89481%20C225.944595,1209.04924%20226.205387,1209.21954%20226.455068,1209.40467%20C226.881095,1209.72052%20227.273774,1210.07876%20227.626647,1210.47337%20C228.878628,1211.87353%20229.582251,1213.67438%20229.582251,1215.58182%20C229.582251,1219.84629%20226.083331,1223.3%20221.771264,1223.3%20C217.459198,1223.3%20213.960278,1219.84629%20213.960278,1215.58182%20C213.960278,1213.67437%20214.663898,1211.87352%20215.9159,1210.47335%20C216.268755,1210.07876%20216.661433,1209.72052%20217.087434,1209.40469%20C217.337142,1209.21954%20217.597933,1209.04924%20217.868372,1208.89481%20C218.16979,1208.7227%20218.55366,1208.82753%20218.725771,1209.12895%20C218.897882,1209.43036%20218.793058,1209.81423%20218.49164,1209.98634%20C218.264609,1210.11598%20218.045681,1210.25894%20217.836048,1210.41438%20C217.478472,1210.67948%20217.148907,1210.98015%20216.85287,1211.31119%20C215.804685,1212.48343%20215.217218,1213.98699%20215.217218,1215.58182%20C215.217218,1219.14841%20218.149754,1222.04306%20221.771264,1222.04306%20C225.392775,1222.04306%20228.32531,1219.14841%20228.32531,1215.58182%20C228.32531,1213.987%20227.73784,1212.48344%20226.689675,1211.31121%20C226.393622,1210.98015%20226.064056,1210.67948%20225.706453,1210.41436%20C225.496847,1210.25894%20225.27792,1210.11598%20225.050889,1209.98634%20C224.749471,1209.81423%20224.644647,1209.43036%20224.816758,1209.12895%20C224.988868,1208.82753%20225.372739,1208.7227%20225.674156,1208.89481%20Z%20M221.771264,1207.3%20C222.089434,1207.3%20222.352382,1207.53643%20222.393997,1207.84319%20L222.399735,1207.92847%20L222.399735,1215.48901%20C222.399735,1215.83611%20222.118359,1216.11748%20221.771264,1216.11748%20C221.453094,1216.11748%20221.190147,1215.88105%20221.148531,1215.57429%20L221.142794,1215.48901%20L221.142794,1207.92847%20C221.142794,1207.58138%20221.42417,1207.3%20221.771264,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M115.0528,1208.89481%20C115.323239,1209.04924%20115.58403,1209.21954%20115.833711,1209.40467%20C116.259739,1209.72052%20116.652418,1210.07876%20117.00529,1210.47337%20C118.257271,1211.87353%20118.960894,1213.67438%20118.960894,1215.58182%20C118.960894,1219.84629%20115.461974,1223.3%20111.149908,1223.3%20C106.837841,1223.3%20103.338921,1219.84629%20103.338921,1215.58182%20C103.338921,1213.67437%20104.042541,1211.87352%20105.294544,1210.47335%20C105.647398,1210.07876%20106.040077,1209.72052%20106.466077,1209.40469%20C106.715786,1209.21954%20106.976577,1209.04924%20107.247016,1208.89481%20C107.548433,1208.7227%20107.932304,1208.82753%20108.104414,1209.12895%20C108.276525,1209.43036%20108.171701,1209.81423%20107.870284,1209.98634%20C107.643252,1210.11598%20107.424325,1210.25894%20107.214692,1210.41438%20C106.857116,1210.67948%20106.52755,1210.98015%20106.231514,1211.31119%20C105.183328,1212.48343%20104.595862,1213.98699%20104.595862,1215.58182%20C104.595862,1219.14841%20107.528398,1222.04306%20111.149908,1222.04306%20C114.771418,1222.04306%20117.703954,1219.14841%20117.703954,1215.58182%20C117.703954,1213.987%20117.116484,1212.48344%20116.068318,1211.31121%20C115.772265,1210.98015%20115.4427,1210.67948%20115.085097,1210.41436%20C114.875491,1210.25894%20114.656563,1210.11598%20114.429532,1209.98634%20C114.128115,1209.81423%20114.023291,1209.43036%20114.195401,1209.12895%20C114.367512,1208.82753%20114.751382,1208.7227%20115.0528,1208.89481%20Z%20M111.149908,1207.3%20C111.468078,1207.3%20111.731026,1207.53643%20111.772641,1207.84319%20L111.778378,1207.92847%20L111.778378,1215.48901%20C111.778378,1215.83611%20111.497002,1216.11748%20111.149908,1216.11748%20C110.831738,1216.11748%20110.56879,1215.88105%20110.527175,1215.57429%20L110.521438,1215.48901%20L110.521438,1207.92847%20C110.521438,1207.58138%20110.802813,1207.3%20111.149908,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",U={class:"font-semibold flex items-center justify-between"},Z={class:"mix-body"},W={class:"w-full flex flex-wrap content-start"},G=["onClick"],J={DEFAULT_ICON:q,ACTIVE_ICON:$,NAME_CN:"按键",NAME_EN:"Button",ORDER:2,PLATFORM:["pc","screen","mobile"]},K={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:v.CONTROL_OPTIONS}},V=[{command:"Control_01",name:"关机",color:"#c92309",code:"0"},{command:"Control_01",name:"开机",color:"#217406",code:"1"}],Y=["name","command","color","code"],Q=["mosaic"],X={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},e2={DEFAULT:J,OPTIONS:K,DATA:V,PARAMS:Y,SOURCE:Q,COMMON:X},t2=e.defineComponent(N(z({},e2),{__name:"ctrBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(l){const o=l,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),p=e.reactive({rule:"",code:"",command:""}),d=e.reactive({text:"",color:""}),f=e.ref(null),C=e.ref(!0);class u extends D.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#fff"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",42),radiusSize:this.getOptionValue("radiusSize",8),items:this.getOptionValue("items",2),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return S(this,null,function*(){w(u.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:V})}onPreview(){return S(this,null,function*(){yield w(u.prototype,this,"onPreview").call(this);const n=yield y.getAuthorized(this.props);t.authorized=n.authorized,t.password=n.password})}setSocketData(n){var g,x;if(!n)return;const{common:i}=this.props.conf,s=this.extractDataValue(n,i.statusFv);if(s!=null){const m=i.status.find(h=>String(h.code)===String(s));d.text=(g=m==null?void 0:m.text)!=null?g:"",d.color=(x=m==null?void 0:m.color)!=null?x:""}}}const r=new u(o,"ctrBtn");r.setupLifecycle();const c=r.getStyle(),E=e.computed(()=>R.generateTitleStyle(o.conf.options)),B=e.computed(()=>`${(100/c.value.items).toFixed(2)||100}%`),b=a=>!y.checkPermission(t.authorized,a.command),T=a=>{var s;if(b(a))return;const{options:n}=o.conf;let i=((s=n==null?void 0:n.method)==null?void 0:s.value)||"alway";p.rule=i,p.code=String(a.code),p.command=a.command,i==="alway"||i==="once"&&C.value?f.value.modal.visible=!0:_()},_=()=>{const{code:a,rule:n,command:i}=p,{common:s}=o.conf,g=JSON.parse(sessionStorage.getItem(v.ALIAS_MAPPING_KEY)||"{}");let m={block_mapping:"mapping",action:"publish_command",object_id:s.useAlias?g[s.object_alias]:s.object_id||o.uid,command:i,value:a,rule:n,control:t.password};v.api.platform(h=>{h.code===200&&(H.ElMessage.success(h.msg),f.value.modal.visible=!1,C.value=!1)},m)};return(a,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(E.value)},[e.createElementVNode("div",U,[e.createTextVNode(e.toDisplayString(l.conf.caption||l.conf.name)+" ",1),d.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"status-btn",style:e.normalizeStyle({backgroundColor:d.color,color:e.unref(c).textColor})},e.toDisplayString(d.text),5)):e.createCommentVNode("",!0)])],4),e.createElementVNode("div",Z,[e.createElementVNode("div",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.data,(i,s)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:s,style:e.normalizeStyle({width:B.value,height:`${e.unref(c).itemHeight}px`,fontSize:`${e.unref(c).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:b(i)}]),style:e.normalizeStyle({backgroundColor:i.color,color:e.unref(c).textColor}),onClick:g=>T(i)},e.toDisplayString(i.name),15,G)],4))),128))])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4),e.createVNode(y._sfc_main,{ref_key:"controlRef",ref:f,onSubmit:_,password:t.password},null,8,["password"])],64))}})),o2=v._export_sfc(t2,[["__scopeId","data-v-061fd8dc"]]);exports.default=o2;
|
|
@@ -28,10 +28,10 @@ var y = (o, e, t) => new Promise((u, r) => {
|
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as G, reactive as O, ref as L, computed as M, openBlock as v, createElementBlock as b, Fragment as B, createElementVNode as p, normalizeStyle as h, unref as f, createTextVNode as J, toDisplayString as k, createCommentVNode as K, renderList as Y, normalizeClass as q, renderSlot as Q, createVNode as X } from "vue";
|
|
30
30
|
import "html2canvas";
|
|
31
|
-
import { B as t2 } from "./BaseComponent-
|
|
32
|
-
import { a1 as e2, w as o2, a as i2, _ as s2 } from "./index-
|
|
31
|
+
import { B as t2 } from "./BaseComponent-D7kfvQid.js";
|
|
32
|
+
import { a1 as e2, w as o2, a as i2, _ as s2 } from "./index-CaDDNmGU.js";
|
|
33
33
|
import { g as l2 } from "./titleStyle-BT5GlpAb.js";
|
|
34
|
-
import { _ as n2, g as a2, c as c2 } from "./mix-control-modal-
|
|
34
|
+
import { _ as n2, g as a2, c as c2 } from "./mix-control-modal-46dJ4X4L.js";
|
|
35
35
|
import { ElMessage as r2 } from "element-plus";
|
|
36
36
|
const d2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-213.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M225.674156,1208.89481%20C225.944595,1209.04924%20226.205387,1209.21954%20226.455068,1209.40467%20C226.881095,1209.72052%20227.273774,1210.07876%20227.626647,1210.47337%20C228.878628,1211.87353%20229.582251,1213.67438%20229.582251,1215.58182%20C229.582251,1219.84629%20226.083331,1223.3%20221.771264,1223.3%20C217.459198,1223.3%20213.960278,1219.84629%20213.960278,1215.58182%20C213.960278,1213.67437%20214.663898,1211.87352%20215.9159,1210.47335%20C216.268755,1210.07876%20216.661433,1209.72052%20217.087434,1209.40469%20C217.337142,1209.21954%20217.597933,1209.04924%20217.868372,1208.89481%20C218.16979,1208.7227%20218.55366,1208.82753%20218.725771,1209.12895%20C218.897882,1209.43036%20218.793058,1209.81423%20218.49164,1209.98634%20C218.264609,1210.11598%20218.045681,1210.25894%20217.836048,1210.41438%20C217.478472,1210.67948%20217.148907,1210.98015%20216.85287,1211.31119%20C215.804685,1212.48343%20215.217218,1213.98699%20215.217218,1215.58182%20C215.217218,1219.14841%20218.149754,1222.04306%20221.771264,1222.04306%20C225.392775,1222.04306%20228.32531,1219.14841%20228.32531,1215.58182%20C228.32531,1213.987%20227.73784,1212.48344%20226.689675,1211.31121%20C226.393622,1210.98015%20226.064056,1210.67948%20225.706453,1210.41436%20C225.496847,1210.25894%20225.27792,1210.11598%20225.050889,1209.98634%20C224.749471,1209.81423%20224.644647,1209.43036%20224.816758,1209.12895%20C224.988868,1208.82753%20225.372739,1208.7227%20225.674156,1208.89481%20Z%20M221.771264,1207.3%20C222.089434,1207.3%20222.352382,1207.53643%20222.393997,1207.84319%20L222.399735,1207.92847%20L222.399735,1215.48901%20C222.399735,1215.83611%20222.118359,1216.11748%20221.771264,1216.11748%20C221.453094,1216.11748%20221.190147,1215.88105%20221.148531,1215.57429%20L221.142794,1215.48901%20L221.142794,1207.92847%20C221.142794,1207.58138%20221.42417,1207.3%20221.771264,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", m2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M115.0528,1208.89481%20C115.323239,1209.04924%20115.58403,1209.21954%20115.833711,1209.40467%20C116.259739,1209.72052%20116.652418,1210.07876%20117.00529,1210.47337%20C118.257271,1211.87353%20118.960894,1213.67438%20118.960894,1215.58182%20C118.960894,1219.84629%20115.461974,1223.3%20111.149908,1223.3%20C106.837841,1223.3%20103.338921,1219.84629%20103.338921,1215.58182%20C103.338921,1213.67437%20104.042541,1211.87352%20105.294544,1210.47335%20C105.647398,1210.07876%20106.040077,1209.72052%20106.466077,1209.40469%20C106.715786,1209.21954%20106.976577,1209.04924%20107.247016,1208.89481%20C107.548433,1208.7227%20107.932304,1208.82753%20108.104414,1209.12895%20C108.276525,1209.43036%20108.171701,1209.81423%20107.870284,1209.98634%20C107.643252,1210.11598%20107.424325,1210.25894%20107.214692,1210.41438%20C106.857116,1210.67948%20106.52755,1210.98015%20106.231514,1211.31119%20C105.183328,1212.48343%20104.595862,1213.98699%20104.595862,1215.58182%20C104.595862,1219.14841%20107.528398,1222.04306%20111.149908,1222.04306%20C114.771418,1222.04306%20117.703954,1219.14841%20117.703954,1215.58182%20C117.703954,1213.987%20117.116484,1212.48344%20116.068318,1211.31121%20C115.772265,1210.98015%20115.4427,1210.67948%20115.085097,1210.41436%20C114.875491,1210.25894%20114.656563,1210.11598%20114.429532,1209.98634%20C114.128115,1209.81423%20114.023291,1209.43036%20114.195401,1209.12895%20C114.367512,1208.82753%20114.751382,1208.7227%20115.0528,1208.89481%20Z%20M111.149908,1207.3%20C111.468078,1207.3%20111.731026,1207.53643%20111.772641,1207.84319%20L111.778378,1207.92847%20L111.778378,1215.48901%20C111.778378,1215.83611%20111.497002,1216.11748%20111.149908,1216.11748%20C110.831738,1216.11748%20110.56879,1215.88105%20110.527175,1215.57429%20L110.521438,1215.48901%20L110.521438,1207.92847%20C110.521438,1207.58138%20110.802813,1207.3%20111.149908,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", u2 = { class: "font-semibold flex items-center justify-between" }, p2 = { class: "mix-body" }, f2 = { class: "w-full flex flex-wrap content-start" }, g2 = ["onClick"], C2 = {
|
|
37
37
|
DEFAULT_ICON: d2,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var j=Object.defineProperty,L=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols,F=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,W=Reflect.get;var w=(a,t,o)=>t in a?j(a,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[t]=o,z=(a,t)=>{for(var o in t||(t={}))U.call(t,o)&&w(a,o,t[o]);if(x)for(var o of x(t))$.call(t,o)&&w(a,o,t[o]);return a},A=(a,t)=>L(a,R(t));var T=(a,t,o)=>W(F(a),o,t);var O=(a,t,o)=>new Promise((f,h)=>{var u=s=>{try{r(o.next(s))}catch(d){h(d)}},_=s=>{try{r(o.throw(s))}catch(d){h(d)}},r=s=>s.done?f(s.value):Promise.resolve(s.value).then(u,_);r((o=o.apply(a,t)).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/button/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),H=require("./BaseComponent-
|
|
1
|
+
"use strict";var j=Object.defineProperty,L=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols,F=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,W=Reflect.get;var w=(a,t,o)=>t in a?j(a,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[t]=o,z=(a,t)=>{for(var o in t||(t={}))U.call(t,o)&&w(a,o,t[o]);if(x)for(var o of x(t))$.call(t,o)&&w(a,o,t[o]);return a},A=(a,t)=>L(a,R(t));var T=(a,t,o)=>W(F(a),o,t);var O=(a,t,o)=>new Promise((f,h)=>{var u=s=>{try{r(o.next(s))}catch(d){h(d)}},_=s=>{try{r(o.throw(s))}catch(d){h(d)}},r=s=>s.done?f(s.value):Promise.resolve(s.value).then(u,_);r((o=o.apply(a,t)).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/button/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),H=require("./BaseComponent-C42zZPAg.cjs"),b=require("./index-PR_k3tQg.cjs"),G=require("./titleStyle-NSnz6cUg.cjs"),E=require("./mix-control-modal-oDAz2GZ_.cjs"),I=require("element-plus"),M=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),J={class:"font-[600]"},K={class:"submint"},Y={DEFAULT_ICON:M.DEFAULT_ICON,ACTIVE_ICON:M.ACTIVE_ICON,NAME_CN:"参数控件",NAME_EN:"Parameter Control",ORDER:1,PLATFORM:["pc","screen","mobile"]},Q={bgColor:"#fff",titleColor:"#111",textColor:"#111",titleSize:14,textSize:14,labelWidth:100,radiusSize:8,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.params.verifyMethod",options:"CONTROL_OPTIONS"}},X=[{command:"Control_01",name:"参数一",unit:"",fv:""}],Z=["name","fv","command","unit"],ee=["mosaic"],te={useAlias:!1,multiObject:!1,hideMultiObject:!0},le={DEFAULT:Y,OPTIONS:Q,DATA:X,PARAMS:Z,SOURCE:ee,COMMON:te},oe=e.defineComponent(A(z({},le),{__name:"ctrSet",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""},socketData:{type:Object,default:()=>({})}},setup(a){const t=a,o="--";class f extends H.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),titleSize:this.getOptionValue("titleSize",14),textSize:this.getOptionValue("textSize",12),labelWidth:this.getOptionValue("labelWidth",100),radiusSize:this.getOptionValue("radiusSize",4),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return O(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme()})}onPreview(){return O(this,null,function*(){yield T(f.prototype,this,"onPreview").call(this);const n=yield E.getAuthorized(this.props);r.authorized=n.authorized,r.password=n.password})}setSocketData(n){if(!n)return;const{data:i}=this.props.conf;i.forEach(m=>{const c=this.extractDataValue(n,m.fv);m.value=c!=null?c:o})}}const h=new f(t,"ctrSet");h.setupLifecycle();const u=h.getStyle(),_=e.computed(()=>G.generateTitleStyle(t.conf.options)),r=e.reactive({authorized:{type:"black_list",list:[]},password:""}),s=e.ref([]),d=e.ref(null),C=e.ref(!0),D=e.computed(()=>{var l;return((l=t.conf.data)==null?void 0:l.length)===1}),P=l=>!E.checkPermission(r.authorized,l.command),V=e.computed(()=>s.value.filter(l=>l).length===0);e.computed(()=>{var n,i;const{data:l}=t.conf;return(((n=l==null?void 0:l[0])==null?void 0:n.value)||o)+" "+(((i=l==null?void 0:l[0])==null?void 0:i.unit)||"")});const B=()=>{var i;const{options:l}=t.conf,n=((i=l==null?void 0:l.method)==null?void 0:i.value)||"alway";n==="alway"||n==="once"&&C.value?d.value.modal.visible=!0:N()},N=()=>{var p,y;const{common:l,data:n,options:i}=t.conf,m=JSON.parse(sessionStorage.getItem(b.ALIAS_MAPPING_KEY)||"{}")||{},c=l.useAlias?m[l.object_alias]:l.object_id||t.uid;if(D.value){const S={block_mapping:"mapping",action:"publish_command",object_id:c,command:n[0].command,value:s.value[0],control:r.password,rule:((p=i==null?void 0:i.method)==null?void 0:p.value)||"alway"};b.api.platform(g=>{g.code===200&&(I.ElMessage.success(g.msg),d.value.modal.visible=!1,C.value=!1)},S)}else{const S=[];s.value.forEach((v,q)=>{v&&S.push({object_id:c,command:n[q].command,value:v})});const g={block_mapping:"mapping",action:"publish_command_plus",publishes:S,control:r.password,rule:((y=i==null?void 0:i.method)==null?void 0:y.value)||"alway"};b.api.platform(v=>{v.code===200&&(I.ElMessage.success(v.msg),d.value.modal.visible=!1,C.value=!1)},g)}};return(l,n)=>{const i=k.ElInput,m=k.ElButton;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(u).bgColor,borderRadius:`${e.unref(u).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title flex-1",style:e.normalizeStyle(_.value)},[e.createElementVNode("div",J,e.toDisplayString(a.conf.caption||a.conf.name),1)],4),e.createElementVNode("div",{class:"mix-body",style:e.normalizeStyle({height:e.unref(u).isHideTitle?"100%":"calc(100% - 42px)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.conf.data,(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:"set-item",key:p,style:e.normalizeStyle({fontSize:`${e.unref(u).textSize}px`,color:e.unref(u).textColor})},[e.createElementVNode("div",{class:"item-name",style:e.normalizeStyle({width:`${e.unref(u).labelWidth}px`})},e.toDisplayString(c.name),5),e.createVNode(i,{modelValue:s.value[p],"onUpdate:modelValue":y=>s.value[p]=y,disabled:P(c)},null,8,["modelValue","onUpdate:modelValue","disabled"]),e.createVNode(i,{value:c.value?`${c.value} ${c.unit}`:o,style:{width:"100px","margin-left":"12px"},readonly:""},null,8,["value"])],4))),128)),e.createElementVNode("div",K,[e.createVNode(m,{type:V.value?"default":"primary",onClick:B,disabled:V.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])],4),e.renderSlot(l.$slots,"default",{},void 0,!0)],4),e.createVNode(E._sfc_main,{ref_key:"controlRef",ref:d,onSubmit:N,password:r.password},null,8,["password"])],64)}}})),ae=b._export_sfc(oe,[["__scopeId","data-v-9fb911b4"]]);exports.default=ae;
|
|
@@ -31,10 +31,10 @@ import "element-plus/es/components/base/style/css";
|
|
|
31
31
|
import "element-plus/es/components/button/style/css";
|
|
32
32
|
import "element-plus/es/components/input/style/css";
|
|
33
33
|
import { defineComponent as ee, computed as O, reactive as te, ref as V, openBlock as z, createElementBlock as E, Fragment as B, createElementVNode as p, normalizeStyle as g, unref as f, toDisplayString as T, renderList as oe, createVNode as C, withCtx as le, createTextVNode as ae, renderSlot as ie } from "vue";
|
|
34
|
-
import { B as se } from "./BaseComponent-
|
|
35
|
-
import { w as ne, a as L, _ as ce } from "./index-
|
|
34
|
+
import { B as se } from "./BaseComponent-D7kfvQid.js";
|
|
35
|
+
import { w as ne, a as L, _ as ce } from "./index-CaDDNmGU.js";
|
|
36
36
|
import { g as re } from "./titleStyle-BT5GlpAb.js";
|
|
37
|
-
import { _ as de, g as ue, c as me } from "./mix-control-modal-
|
|
37
|
+
import { _ as de, g as ue, c as me } from "./mix-control-modal-46dJ4X4L.js";
|
|
38
38
|
import { ElMessage as R } from "element-plus";
|
|
39
39
|
import { A as pe, D as fe } from "./ele-ctrSet-icon-BtKGrCid.js";
|
|
40
40
|
const he = { class: "font-[600]" }, ve = { class: "submint" }, be = {
|