mixdashboards 1.1.19 → 1.1.21
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/{AgActionsRenderer-PlZa78ff.js → AgActionsRenderer-3HKXKUJY.js} +1 -1
- package/dist/{AgActionsRenderer-Dlr21zZJ.cjs → AgActionsRenderer-DnPvuT_-.cjs} +1 -1
- package/dist/{AgGridTable-oXfzJc2L.js → AgGridTable-BQ8M3fDj.js} +1 -1
- package/dist/{AgGridTable-CE6GaYj4.cjs → AgGridTable-BQvI6jpO.cjs} +1 -1
- package/dist/{BaseComponent-DdC8fmD6.cjs → BaseComponent-DKuQG62G.cjs} +1 -1
- package/dist/{BaseComponent-Bv3RJ3vA.js → BaseComponent-Dn65PXTp.js} +3 -3
- package/dist/{EChartComponentBase-DzP0_KR9.cjs → EChartComponentBase-8GSbyY5P.cjs} +1 -1
- package/dist/{EChartComponentBase-B5seB4Mc.js → EChartComponentBase-skupRYzl.js} +2 -2
- package/dist/{EmergencyPlanPanel-tVOIWw2Q.js → EmergencyPlanPanel-C4OsnsPP.js} +1 -1
- package/dist/{EmergencyPlanPanel-9KW6SFeg.cjs → EmergencyPlanPanel-DLvOrE5U.cjs} +1 -1
- package/dist/{HistoryPlanDialog-CDFm2aaq.cjs → HistoryPlanDialog--99rPq54.cjs} +1 -1
- package/dist/{HistoryPlanDialog-BJ8jXVxW.js → HistoryPlanDialog-DI0H_vgZ.js} +1 -1
- package/dist/{MixiotAppDetailPage-CGxGF4b4.cjs → MixiotAppDetailPage-4mYR4gHm.cjs} +1 -1
- package/dist/{MixiotAppDetailPage-BY0b1cSQ.js → MixiotAppDetailPage-C_NrtqJU.js} +1 -1
- package/dist/{MonitoringMap-BhE-240t.cjs → MonitoringMap-CstXoU8n.cjs} +1 -1
- package/dist/{MonitoringMap-Caf2Shxs.js → MonitoringMap-Gxy8ldt1.js} +2 -2
- package/dist/{UniverSheet-DK1fnNou.js → UniverSheet-DGNOHAEJ.js} +2 -2
- package/dist/{UniverSheet-CoBlKEHm.cjs → UniverSheet-phDDfwXk.cjs} +1 -1
- package/dist/{accelerationChart-CpzAy4XN.cjs → accelerationChart-B_y_8Y4q.cjs} +1 -1
- package/dist/{accelerationChart-CP1QTBXX.js → accelerationChart-C4JTCc65.js} +19 -19
- package/dist/{actionItem-CcDYnjv-.cjs → actionItem-Bdw3MAAf.cjs} +1 -1
- package/dist/{actionItem-C2CUz21T.js → actionItem-CGOgCPJR.js} +2 -2
- package/dist/{alarmLevelChart-D1el5vNk.js → alarmLevelChart-BQF-4a0s.js} +2 -2
- package/dist/{alarmLevelChart-bS2UEWev.cjs → alarmLevelChart-CY4GqDio.cjs} +1 -1
- package/dist/{alertTable-BdKLNkVJ.cjs → alertTable-D3riLPwz.cjs} +1 -1
- package/dist/{alertTable-21qWBMNt.js → alertTable-DgiRdm5f.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-CpNohSP3.js → aliasObjectSelectorDemo-C7gQUdGu.js} +5 -5
- package/dist/{aliasObjectSelectorDemo-C7NLq1SO.cjs → aliasObjectSelectorDemo-DXFCCnvj.cjs} +1 -1
- package/dist/{annualRainfallChart-DDGrKSyV.js → annualRainfallChart-C1yG42iq.js} +2 -2
- package/dist/{annualRainfallChart-BvvLnmDL.cjs → annualRainfallChart-D3oUahrK.cjs} +1 -1
- package/dist/{aqi-B51UwYP8.cjs → aqi-B3g_go92.cjs} +1 -1
- package/dist/{aqi-SrcWK-ox.js → aqi-DLqM9gGc.js} +4 -4
- package/dist/{aqiIndass-DY6U7dbZ.js → aqiIndass-DDtB5_wf.js} +17 -17
- package/dist/{aqiIndass-BVxD6QC4.cjs → aqiIndass-DRYU-FAs.cjs} +1 -1
- package/dist/{areaDeformCurve-CWgMj6Ld.cjs → areaDeformCurve-CnvUJY_x.cjs} +1 -1
- package/dist/{areaDeformCurve-D3BuGscE.js → areaDeformCurve-DaLtFoJT.js} +2 -2
- package/dist/{arrayCard-9QeKfHnv.cjs → arrayCard-9p0Bkc_e.cjs} +1 -1
- package/dist/{arrayCard-qgDnMdcU.js → arrayCard-FYb8TmUw.js} +2 -2
- package/dist/{audio-CbbNeFwR.js → audio-BBXpJP54.js} +2 -2
- package/dist/{audio-lrTBdjeY.cjs → audio-DGxXcB0a.cjs} +1 -1
- package/dist/{bar-CJN8j8gU.js → bar-D26zndUl.js} +8 -8
- package/dist/{bar-BfPMVpDX.cjs → bar-btY9Pwkk.cjs} +1 -1
- package/dist/{basicShapeToolbox-eUxdwSiA.cjs → basicShapeToolbox-XR_NHK87.cjs} +1 -1
- package/dist/{basicShapeToolbox-DqSW0K9M.js → basicShapeToolbox-Y6mXTA8o.js} +7 -7
- package/dist/{bmp-pGXNGQ6L.js → bmp-C7tYeLi0.js} +2 -2
- package/dist/{bmp-BhCJePGA.cjs → bmp-DlSoc3Rw.cjs} +1 -1
- package/dist/{box-BAgrzKXC.js → box-DroQaZjH.js} +16 -16
- package/dist/{box-Be6Hpox4.cjs → box-DyIX9weX.cjs} +1 -1
- package/dist/{chartConfigPanel-BvMXZB2L.js → chartConfigPanel-D4dbsVKj.js} +1 -1
- package/dist/{chartConfigPanel-CGWijgZ-.cjs → chartConfigPanel-DvTKL5EZ.cjs} +1 -1
- package/dist/{circleBar-CGlveIpB.js → circleBar-DCnx8wNj.js} +2 -2
- package/dist/{circleBar-COsnnOW8.cjs → circleBar-DulXgWd8.cjs} +1 -1
- package/dist/{clock-CVO43_uj.js → clock-B1X6vX22.js} +2 -2
- package/dist/{clock-DgyRJ55m.cjs → clock-CeM6LdAl.cjs} +1 -1
- package/dist/{clt-Bfh4zPhb.cjs → clt-CcpO8rrD.cjs} +1 -1
- package/dist/{clt-d8tEBDXa.js → clt-IAzRVgiu.js} +15 -15
- package/dist/{cmc-B7O-zg2t.cjs → cmc-B4xRwSti.cjs} +1 -1
- package/dist/{cmc-By56qP2c.js → cmc-Swd4NfxE.js} +10 -10
- package/dist/{cmp-xri5dKb9.js → cmp--gCtei5x.js} +2 -2
- package/dist/{cmp-D73tbgfL.cjs → cmp-B9Aip3T2.cjs} +1 -1
- package/dist/{conclusionCard-EsUi-cs0.cjs → conclusionCard-CRif9GmS.cjs} +1 -1
- package/dist/{conclusionCard-Dk1KoNii.js → conclusionCard-DQ0HTHsg.js} +2 -2
- package/dist/{controlList-DlFba9SA.js → controlList-4TidO_XJ.js} +4 -4
- package/dist/{controlList-jIvwSzAZ.cjs → controlList-CwLNEkAi.cjs} +1 -1
- package/dist/{controlRecordList-Bmtp681m.cjs → controlRecordList-CuvV65TE.cjs} +1 -1
- package/dist/{controlRecordList-BJjkRs8d.js → controlRecordList-dPW6e4FN.js} +3 -3
- package/dist/{controlRecordListAPP-C_oMTkva.js → controlRecordListAPP-CObVdW3l.js} +2 -2
- package/dist/{controlRecordListAPP-C02TdcvH.cjs → controlRecordListAPP-DCzTOeXr.cjs} +1 -1
- package/dist/{crd-BS6MSmcS.cjs → crd-AH_sGivo.cjs} +1 -1
- package/dist/{crd-BYLbCcrj.js → crd-CEWC005o.js} +20 -20
- package/dist/{ctrBtn-V4qjGGtx.js → ctrBtn-8xev-mny.js} +3 -3
- package/dist/{ctrBtn-DhvhVrCW.cjs → ctrBtn-nYp9T0n0.cjs} +1 -1
- package/dist/{ctrSet-CHZZJIF7.js → ctrSet-3Q4eJSfK.js} +11 -11
- package/dist/{ctrSet-CQHpxMxP.cjs → ctrSet-z_9ztVyG.cjs} +1 -1
- package/dist/{ctrSwitch-ChvtxV9I.js → ctrSwitch-BhqYXTMZ.js} +7 -7
- package/dist/{ctrSwitch-D5n8S2_r.cjs → ctrSwitch-DacpvyBJ.cjs} +1 -1
- package/dist/{dataManagement-C3z0jdVy.js → dataManagement-BiPhJbF1.js} +2 -2
- package/dist/{dataManagement-DzESXejv.cjs → dataManagement-DP1Chfo2.cjs} +1 -1
- package/dist/{dataReport-D7WV4er3.js → dataReport-CQaL-d_q.js} +2 -2
- package/dist/{dataReport-D1myyCz7.cjs → dataReport-C_8TF5Dz.cjs} +1 -1
- package/dist/{dataTable-DkCWvmYS.js → dataTable-Bbx5XgV-.js} +1 -1
- package/dist/{dataTable-DOQRfWJN.cjs → dataTable-D6-325qb.cjs} +1 -1
- package/dist/{datetime-BfA0Yxsf.js → datetime-CmXZdgkW.js} +2 -2
- package/dist/{datetime-Dgr1l4mG.cjs → datetime-DBrUO7wD.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-BTNdbcD0.cjs → deepClusterSlipSurface-Ch8i2ql5.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-BotjleWU.js → deepClusterSlipSurface-D7o7mgg7.js} +27 -27
- package/dist/{deepDataMatrix-CqsdmOoD.js → deepDataMatrix-D9GCg496.js} +23 -23
- package/dist/{deepDataMatrix-B1glL8v7.cjs → deepDataMatrix-DoM8KUHn.cjs} +1 -1
- package/dist/{deepDisplacement3D-DNwOT442.cjs → deepDisplacement3D-C8ZRCP-R.cjs} +1 -1
- package/dist/{deepDisplacement3D-DLdpPEbS.js → deepDisplacement3D-Cjx11pre.js} +2 -2
- package/dist/{deepDisplacementChart-DjaHZ1pw.js → deepDisplacementChart-BHe83IoB.js} +23 -23
- package/dist/{deepDisplacementChart-CfGD5BrP.cjs → deepDisplacementChart-BlcS3DVl.cjs} +1 -1
- package/dist/{deepDisplacementChart-jJJQQFY6.js → deepDisplacementChart-HuWab3pz.js} +27 -27
- package/dist/{deepDisplacementChart-lDFewdsF.cjs → deepDisplacementChart-r3GIC8hq.cjs} +1 -1
- package/dist/{deepDisplacementView-B4Go1Hq0.js → deepDisplacementView-B4RBH8Ie.js} +1 -1
- package/dist/{deepDisplacementView-BH0UfjV6.cjs → deepDisplacementView-BHZQ4s3K.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-DUszGqXz.cjs → deepNodeTemperatureChart-BswYkP9V.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-9JmmT_3j.js → deepNodeTemperatureChart-D9maVN-M.js} +28 -28
- package/dist/{deepTangentAngleChart-rQ8QfuGN.js → deepTangentAngleChart-DIWKa8r3.js} +18 -18
- package/dist/{deepTangentAngleChart-C2CwkfSV.cjs → deepTangentAngleChart-DQxOv4Vz.cjs} +1 -1
- package/dist/{deepTemperatureField-C-ilAUbT.cjs → deepTemperatureField-2GBzigs_.cjs} +1 -1
- package/dist/{deepTemperatureField-CubuMfdf.js → deepTemperatureField-DlLLcuFb.js} +23 -23
- package/dist/{deepTrendChart-CLQFmRr2.cjs → deepTrendChart-CbYdfjcX.cjs} +1 -1
- package/dist/{deepTrendChart-Bo7kcMpS.js → deepTrendChart-CdX41nqe.js} +40 -40
- package/dist/{deviceOnlineStatus-DBulFfoC.cjs → deviceOnlineStatus-BMfNv4fX.cjs} +1 -1
- package/dist/{deviceOnlineStatus-CtIL7VFP.js → deviceOnlineStatus-BdOeLbLy.js} +2 -2
- package/dist/{deviceStatus-BDVPjgyN.js → deviceStatus-B8Ijgoyf.js} +15 -15
- package/dist/{deviceStatus-CF7z3bfZ.cjs → deviceStatus-CbYBmGvy.cjs} +1 -1
- package/dist/{displacementDataTable-B9HARhGm.cjs → displacementDataTable-BI8cE-vY.cjs} +1 -1
- package/dist/{displacementDataTable-GkggvGaZ.js → displacementDataTable-Cqi5Ql6a.js} +17 -17
- package/dist/{displacementTrajectoryChart-C_6Yq97U.js → displacementTrajectoryChart-D1UPR4dt.js} +30 -30
- package/dist/{displacementTrajectoryChart-CEui7uVX.cjs → displacementTrajectoryChart-DJM_B-gL.cjs} +1 -1
- package/dist/{displacementTrendChart-BStbvtyS.cjs → displacementTrendChart-C4jvpdRY.cjs} +1 -1
- package/dist/{displacementTrendChart-C40yhGCg.js → displacementTrendChart-Dii90QjN.js} +18 -18
- package/dist/{dxf-BoF0vKri.js → dxf-DAAwQlgQ.js} +2 -2
- package/dist/{dxf-CVjZUhtn.cjs → dxf-DsJIwOOJ.cjs} +1 -1
- package/dist/{dzc-B4ZvwN_l.js → dzc-BjOYTnIF.js} +5 -5
- package/dist/{dzc-Bc9cF-kF.cjs → dzc-CpML7WAZ.cjs} +1 -1
- package/dist/{emergencyPlan-DVoHbsNX.cjs → emergencyPlan-DWpGIszu.cjs} +1 -1
- package/dist/{emergencyPlan-Bae0pJIK.js → emergencyPlan-DeL1roPL.js} +3 -3
- package/dist/{evn-DwzNdVCs.js → evn-CUajXlYc.js} +2 -2
- package/dist/{evn-CwVRqTsX.cjs → evn-D0ROeiQD.cjs} +1 -1
- package/dist/{evolutionChart-xgWP4gp9.js → evolutionChart-B-2W9qVE.js} +3 -3
- package/dist/{evolutionChart-DcYx4Pka.cjs → evolutionChart-D23ALmPJ.cjs} +1 -1
- package/dist/{fileViewer-BD81tOyy.js → fileViewer-D6-jyRWy.js} +9 -9
- package/dist/{fileViewer-I2uylpjR.cjs → fileViewer-DHDmo6px.cjs} +1 -1
- package/dist/{filterBar-Dri4QUIb.cjs → filterBar-Bx0qkR7L.cjs} +1 -1
- package/dist/{filterBar-1JX2PNo7.js → filterBar-Cw-wbtF1.js} +2 -2
- package/dist/{fireCombustionCurve-B7fBz7l4.cjs → fireCombustionCurve-Dj2o6qcy.cjs} +1 -1
- package/dist/{fireCombustionCurve-Bh4mHmWN.js → fireCombustionCurve-wPPE55j_.js} +3 -3
- package/dist/{fireFilterBar-C_6JQb5k.js → fireFilterBar-COgdZt2b.js} +2 -2
- package/dist/{fireFilterBar-B916WbkV.cjs → fireFilterBar-t-aUk0FZ.cjs} +1 -1
- package/dist/{fireHistoryTable-DYbmSsbK.cjs → fireHistoryTable-BgzroLVi.cjs} +1 -1
- package/dist/{fireHistoryTable-DG0VPFRM.js → fireHistoryTable-Em_cwZSy.js} +2 -2
- package/dist/{gag-BBSJFndH.cjs → gag-C5gOltT8.cjs} +1 -1
- package/dist/{gag-BMrGqaQL.js → gag-Dd-osrR9.js} +2 -2
- package/dist/{gasStationList-yiSPtQ7o.cjs → gasStationList-CKe02Teb.cjs} +1 -1
- package/dist/{gasStationList-CgeVIXbG.js → gasStationList-CepcJ9BG.js} +3 -3
- package/dist/{geo3dViewer-DQfOfbvI.cjs → geo3dViewer-CSq4-kE-.cjs} +1 -1
- package/dist/{geo3dViewer-C9_rSsKP.js → geo3dViewer-yHqVv2BH.js} +3 -3
- package/dist/{glbModel-Dhw1Gtbr.cjs → glbModel-CBM7-1vZ.cjs} +1 -1
- package/dist/{glbModel-NldHnOVl.js → glbModel-DFDIJi5z.js} +2 -2
- package/dist/{globalObjectSelector-KnFppL_e.js → globalObjectSelector-BoBf_njv.js} +43 -43
- package/dist/{globalObjectSelector-BCPaufx_.cjs → globalObjectSelector-BvK0QxXk.cjs} +1 -1
- package/dist/{gnssFilterBar-CV4Toj67.cjs → gnssFilterBar-BabiLlIC.cjs} +1 -1
- package/dist/{gnssFilterBar-BwKMyUrQ.js → gnssFilterBar-C4Ozsjee.js} +2 -2
- package/dist/{gnssHistoryTable-CPf2oH22.cjs → gnssHistoryTable-CEtxui4z.cjs} +1 -1
- package/dist/{gnssHistoryTable-C6Wkw7OW.js → gnssHistoryTable-DWICO-OK.js} +2 -2
- package/dist/{gnssMapView-CutaT360.cjs → gnssMapView-C5IzKoTF.cjs} +2 -2
- package/dist/{gnssMapView-C-eK2r5B.js → gnssMapView-CgLO6fng.js} +4 -4
- package/dist/{gnssSectionProfile--g5C-EWx.js → gnssSectionProfile-BFU5_iQa.js} +2 -2
- package/dist/{gnssSectionProfile-EuFzJtuh.cjs → gnssSectionProfile-BcS3AU5H.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-NC4tfx2H.cjs → gnssTimeSeriesChart-2AOe01nY.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-CqmMTpuf.js → gnssTimeSeriesChart-Cyc9JVmX.js} +2 -2
- package/dist/{gnssXYTrajectory-_O0KOUM2.cjs → gnssXYTrajectory-B3HDdORI.cjs} +1 -1
- package/dist/{gnssXYTrajectory-Zpj3HyXr.js → gnssXYTrajectory-DAjqaaOt.js} +2 -2
- package/dist/{grd-BaPKVJ4W.js → grd-BdraSTc0.js} +18 -18
- package/dist/{grd-TbRuDGQr.cjs → grd-jisN3fY_.cjs} +1 -1
- package/dist/{grdIndass-3DrX62Jn.js → grdIndass-BuEWpm2p.js} +5 -5
- package/dist/{grdIndass-CKi2RLyZ.cjs → grdIndass-BxJWHgbc.cjs} +1 -1
- package/dist/{grg-Cgxf4HNj.js → grg-BiUyteXn.js} +13 -13
- package/dist/{grg-CFBuQnL1.cjs → grg-DHDNZzvS.cjs} +1 -1
- package/dist/{gridview-BhxlYHGR.cjs → gridview-C2eGcIgv.cjs} +1 -1
- package/dist/{gridview-BTGTAbxK.js → gridview-DsDgxIu-.js} +2 -2
- package/dist/{groundwaterFilterBar-BVxaSfzM.js → groundwaterFilterBar-CwNVHLoq.js} +2 -2
- package/dist/{groundwaterFilterBar-4SAnrU9X.cjs → groundwaterFilterBar-Dwoyvzll.cjs} +1 -1
- package/dist/{groundwaterProfileChart-DRv-gvDc.js → groundwaterProfileChart-pYkKSQRV.js} +3 -3
- package/dist/{groundwaterProfileChart-DnJvez9z.cjs → groundwaterProfileChart-xVZS96Bs.cjs} +2 -2
- package/dist/{groundwaterTimeCurve-8phEW2ri.cjs → groundwaterTimeCurve-CCP0yOcn.cjs} +1 -1
- package/dist/{groundwaterTimeCurve-BzBDRU4_.js → groundwaterTimeCurve-CRic1FkR.js} +3 -3
- package/dist/{groupCard-DhMy1k9J.cjs → groupCard-9mvfU5Qi.cjs} +1 -1
- package/dist/{groupCard-BPkVSNiL.js → groupCard-DyiQzmSU.js} +2 -2
- package/dist/{headerBar-BgTO4jul.cjs → headerBar-BnZZrxdl.cjs} +1 -1
- package/dist/{headerBar-DB-bjoAe.js → headerBar-CT2WWLFX.js} +2 -2
- package/dist/{history-D5cJ-xVg.js → history-CY_TCu9h.js} +18 -18
- package/dist/{history-DBDrYQmw.cjs → history-Dm7563t_.cjs} +1 -1
- package/dist/{index-C_ms8XdY.js → index-CPTJIw32.js} +1746 -1711
- package/dist/{index-DFbNT6Tf.cjs → index-DoEyCVDU.cjs} +10 -10
- package/dist/{insarDeformChart-DFF2bMqu.js → insarDeformChart-Bf6Q1Kll.js} +2 -2
- package/dist/{insarDeformChart-D_iGk8_3.cjs → insarDeformChart-D7r5dP7T.cjs} +1 -1
- package/dist/{insarImageViewer-BKewD3Uo.cjs → insarImageViewer-Cj6ywbUG.cjs} +1 -1
- package/dist/{insarImageViewer-B7UgA76F.js → insarImageViewer-CupmlYkz.js} +2 -2
- package/dist/{kds-CukCJwVJ.cjs → kds-BXJfeT1L.cjs} +1 -1
- package/dist/{kds-CacS9fZ_.js → kds-vKrvUAFM.js} +58 -58
- package/dist/{kpiCard-DV13L2GU.js → kpiCard-DxJnC2K1.js} +2 -2
- package/dist/{kpiCard-Cnm06jxN.cjs → kpiCard-SXeIckZe.cjs} +1 -1
- package/dist/{landslideMap-OIYysiUs.cjs → landslideMap-Byzuh2uI.cjs} +1 -1
- package/dist/{landslideMap-BPWu1Ajk.js → landslideMap-g1sW7hGk.js} +3 -3
- package/dist/{landslideWarning-K5mjIcfY.cjs → landslideWarning-DBYw20My.cjs} +1 -1
- package/dist/{landslideWarning-BjlYD19b.js → landslideWarning-K2gltHjy.js} +19 -19
- package/dist/{layerTabs-DTSAS0n2.js → layerTabs-DhKwbCdm.js} +2 -2
- package/dist/{layerTabs-D7fMZ0rB.cjs → layerTabs-pQHCSR8d.cjs} +1 -1
- package/dist/{leaflet-src-CzptRGB3.cjs → leaflet-src-BNvMLv27.cjs} +1 -1
- package/dist/{leaflet-src-BfJff719.js → leaflet-src-CLsvhZ1a.js} +1 -1
- package/dist/{lerc-CF_nGsay.cjs → lerc-7GSCiwa9.cjs} +1 -1
- package/dist/{lerc-CFhWDnG0.js → lerc-CqUbnv8h.js} +2 -2
- package/dist/{lin-CkatVtoy.js → lin-Bq35ycag.js} +6 -6
- package/dist/{lin-D0heXXjR.cjs → lin-D0itRkyl.cjs} +1 -1
- package/dist/{linIndass-DCv39q33.cjs → linIndass-DWiz2vOV.cjs} +1 -1
- package/dist/{linIndass-By83Npy7.js → linIndass-DYq4eFAR.js} +23 -23
- package/dist/{lst-BnazAvWe.cjs → lst-DdajeugL.cjs} +1 -1
- package/dist/{lst-DwAjJP5h.js → lst-qvTez4v1.js} +2 -2
- package/dist/{manualEntry-D3rJV8Lp.js → manualEntry-D33u42uH.js} +2 -2
- package/dist/{manualEntry-DuTfyZYG.cjs → manualEntry-s4RAoEru.cjs} +1 -1
- package/dist/{mapBackground-CJ6ix48H.js → mapBackground-DM72oEn2.js} +3 -3
- package/dist/{mapBackground-Cmhuw3k0.cjs → mapBackground-YtkaIPHY.cjs} +1 -1
- package/dist/{mappingList-5Rz-rwrk.cjs → mappingList-Ch1HZwNc.cjs} +1 -1
- package/dist/{mappingList-CGrZiJZB.js → mappingList-Dy_UeCUf.js} +4 -4
- package/dist/{markdownViewer-Dno96jfr.cjs → markdownViewer-DUjEXMVH.cjs} +1 -1
- package/dist/{markdownViewer-7WA9BEdg.js → markdownViewer-ZlwNlmLZ.js} +6 -6
- package/dist/{mix-control-modal-DgoayPIU.cjs → mix-control-modal-B3FrB7Jt.cjs} +1 -1
- package/dist/{mix-control-modal-Byfb7C-0.js → mix-control-modal-tXOouBPe.js} +8 -8
- package/dist/{mixGrid-Bhl9sZNP.cjs → mixGrid-BU9U3aHI.cjs} +1 -1
- package/dist/{mixGrid-kCUUwHZr.js → mixGrid-CogLsRzO.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +4 -4
- package/dist/{mjpegCamera-B1eioIqH.cjs → mjpegCamera-g6FXbrP3.cjs} +1 -1
- package/dist/{mjpegCamera-Dpfu2Xu6.js → mjpegCamera-xUmmLzM-.js} +2 -2
- package/dist/{monitorAlert-Dyxl86qu.cjs → monitorAlert-DZd5lJOJ.cjs} +1 -1
- package/dist/{monitorAlert-9zu3QFtA.js → monitorAlert-DhE_HvpR.js} +21 -21
- package/dist/{monitorData-CNI-qmu9.js → monitorData-BnEkcdiN.js} +8 -8
- package/dist/{monitorData-BcilR5l6.cjs → monitorData-CpWVhINV.cjs} +1 -1
- package/dist/{monitorSpeedChart-DRfPueFf.js → monitorSpeedChart-CeW-Kk03.js} +1 -1
- package/dist/{monitorSpeedChart-CF67tIu3.cjs → monitorSpeedChart-DwsoytUF.cjs} +1 -1
- package/dist/{mxa-Bh2bYtVW.cjs → mxa-0DZWI1xK.cjs} +1 -1
- package/dist/{mxa-CuLqVCIj.js → mxa-C58deh1I.js} +4 -4
- package/dist/{myValue-B50MoOtL.js → myValue-B4ADQTTG.js} +2 -2
- package/dist/{myValue-DMJxfT2O.cjs → myValue-DQLm9XLI.cjs} +1 -1
- package/dist/{myValueList-BZzwxNxa.cjs → myValueList-DZA9_HEh.cjs} +1 -1
- package/dist/{myValueList-B_3_3_pi.js → myValueList-baXd51uR.js} +2 -2
- package/dist/{objectList-TMPUnr7O.js → objectList-5m0NKALq.js} +4 -4
- package/dist/{objectList-BGh1VKcK.cjs → objectList-BHmAruDg.cjs} +1 -1
- package/dist/{objectListAPP-Bc-piPZb.js → objectListAPP-COZlfKyw.js} +3 -3
- package/dist/{objectListAPP-30bQNnu8.cjs → objectListAPP-Cs7Wu_86.cjs} +1 -1
- package/dist/{percentBar-BprMUT7A.js → percentBar-BV6nG2iK.js} +15 -15
- package/dist/{percentBar-D4xt6lAd.cjs → percentBar-CPfJrspp.cjs} +1 -1
- package/dist/{photo-zl-fLPWx.cjs → photo-C4739K_A.cjs} +1 -1
- package/dist/{photo-DsEC_PV_.js → photo-DK4Z23e3.js} +15 -15
- package/dist/{pie-CUxR3v01.js → pie-Lx2zjyZY.js} +2 -2
- package/dist/{pie-DWhlbF_v.cjs → pie-kb79hzax.cjs} +1 -1
- package/dist/{placeholder-BZFA8p97.cjs → placeholder-CAWJju9d.cjs} +1 -1
- package/dist/{placeholder-DqKmmoWY.js → placeholder-Cv_i5j6V.js} +1 -1
- package/dist/{pressBtn-DIUaklZ-.cjs → pressBtn-DPp2yGFb.cjs} +1 -1
- package/dist/{pressBtn-B2XC73jR.js → pressBtn-DwN7ExMn.js} +7 -7
- package/dist/{processTable-DkOH9QSb.js → processTable-DRzy2-fX.js} +2 -2
- package/dist/{processTable-BTx3mQeL.cjs → processTable-kGjdZ2SC.cjs} +1 -1
- package/dist/{progressBar-xgdal-aW.cjs → progressBar-89gQ5oSf.cjs} +1 -1
- package/dist/{progressBar-BLodNQVU.js → progressBar-D5GyaH8h.js} +2 -2
- package/dist/{progressCircle-CFUGOwCj.js → progressCircle-C0qoN2X2.js} +2 -2
- package/dist/{progressCircle-cTY4gz07.cjs → progressCircle-D6jGTviS.cjs} +1 -1
- package/dist/{qrcode-2Hjwjwae.js → qrcode-B7wIdO7u.js} +2 -2
- package/dist/{qrcode-DQhhuhb6.cjs → qrcode-DutO28qr.cjs} +1 -1
- package/dist/{raceBar-CyXnZF-3.js → raceBar-JrtM5isa.js} +5 -5
- package/dist/{raceBar-DcF016MT.cjs → raceBar-Kb4Ok0_0.cjs} +1 -1
- package/dist/{rad-B14cTKz2.cjs → rad-BKh0I2W8.cjs} +1 -1
- package/dist/{rad-DTJntmoq.js → rad-NhNcdAlO.js} +2 -2
- package/dist/{radarMapViewer-TsQZJeIK.js → radarMapViewer-BrGy_wsI.js} +2 -2
- package/dist/{radarMapViewer-BUB-m2dW.cjs → radarMapViewer-a-NY9MyR.cjs} +1 -1
- package/dist/{rainfallFilterBar-KdmV5zS5.js → rainfallFilterBar-CiVPGG1P.js} +2 -2
- package/dist/{rainfallFilterBar-B8up2RIh.cjs → rainfallFilterBar-DlJryHw0.cjs} +1 -1
- package/dist/{rainfallTimeCurve-Doj6yOAF.js → rainfallTimeCurve-BwrlePpg.js} +3 -3
- package/dist/{rainfallTimeCurve-CiXa2eZ3.cjs → rainfallTimeCurve-cYcKHYUj.cjs} +1 -1
- package/dist/{rangeLin-Dpq9Tvnx.cjs → rangeLin-B24wJK2h.cjs} +1 -1
- package/dist/{rangeLin-D1CqDmua.js → rangeLin-CPKLO87X.js} +18 -18
- package/dist/{realtimeEvolutionMap-DPXP3VM4.cjs → realtimeEvolutionMap-CHQ7-WE1.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-Dl7vcNX_.js → realtimeEvolutionMap-ZFozACoZ.js} +2 -2
- package/dist/{regionBar-BwpGCKZj.js → regionBar-Cz4GtJuo.js} +2 -2
- package/dist/{regionBar-lxLnSNLC.cjs → regionBar-Dgv2JYSM.cjs} +1 -1
- package/dist/{request-DTE7aSW-.cjs → request-Dm2cf1Aw.cjs} +1 -1
- package/dist/{request-CbeEcJTO.js → request-aXSa-Jdv.js} +24 -24
- package/dist/{retainer1-D67S-YCN.js → retainer1-B4KyW6bw.js} +3 -3
- package/dist/{retainer1-C9AaH4tJ.cjs → retainer1-B6byWkE5.cjs} +1 -1
- package/dist/{retainer2-D8XYk-l4.cjs → retainer2-B06eGTYw.cjs} +1 -1
- package/dist/{retainer2-Cbdmf703.js → retainer2-X6vRW_D5.js} +3 -3
- package/dist/{retainerRecordList-CQjYV-M3.cjs → retainerRecordList-C8wYAf_v.cjs} +1 -1
- package/dist/{retainerRecordList-BpK_6Dnu.js → retainerRecordList-DDZSYpCF.js} +4 -4
- package/dist/{retainerRecordListAPP-BFGsCYj8.js → retainerRecordListAPP-B2Lp-jHM.js} +3 -3
- package/dist/{retainerRecordListAPP-CN59kp5A.cjs → retainerRecordListAPP-BHu691JS.cjs} +1 -1
- package/dist/{ringTopN-BeX_3N1q.cjs → ringTopN-BpJZOE13.cjs} +1 -1
- package/dist/{ringTopN-5r3Oe5jp.js → ringTopN-DX7OzPp7.js} +2 -2
- package/dist/{riskRegionTable-NiRJaNeQ.js → riskRegionTable-D7blgvMi.js} +2 -2
- package/dist/{riskRegionTable-DoSf3hpC.cjs → riskRegionTable-DziKMS_2.cjs} +1 -1
- package/dist/{sankey-ByGbWPFb.js → sankey-CmgfktZj.js} +14 -14
- package/dist/{sankey-Bnpk9cLQ.cjs → sankey-DjC4IYit.cjs} +1 -1
- package/dist/{scd-CnENqnZz.cjs → scd-QV9whYOR.cjs} +1 -1
- package/dist/{scd-Cfds38KL.js → scd-zUFKqN8p.js} +2 -2
- package/dist/{sideMenu-BPaBkvIX.js → sideMenu-CI23QNpx.js} +2 -2
- package/dist/{sideMenu-CXIHqey7.cjs → sideMenu-POQpSa8C.cjs} +1 -1
- package/dist/{slopeStability-Dl-cz8Fw.cjs → slopeStability-Da70drIy.cjs} +1 -1
- package/dist/{slopeStability-C9Hla3Dk.js → slopeStability-E55huDws.js} +24 -24
- package/dist/{speedCurve-kxsxCadk.js → speedCurve-BhhUH79z.js} +2 -2
- package/dist/{speedCurve-E6CSZYlW.cjs → speedCurve-DSX1UJeW.cjs} +1 -1
- package/dist/{stackedBar-Bh3u04a1.cjs → stackedBar-B0kr6QB7.cjs} +1 -1
- package/dist/{stackedBar-agXLBb7l.js → stackedBar-bgd2Ls04.js} +2 -2
- package/dist/stationList-BSPTM0iI.cjs +1 -0
- package/dist/{stationList-BUGSaLOZ.js → stationList-D7k3Lot6.js} +243 -239
- package/dist/{stressFilterBar-DP_KLGts.cjs → stressFilterBar-B3gk67B_.cjs} +1 -1
- package/dist/{stressFilterBar-HdY7po9C.js → stressFilterBar-Beupo7Zb.js} +2 -2
- package/dist/{stressTimeCurve-B6s5FgJE.cjs → stressTimeCurve-CbhFLXzA.cjs} +1 -1
- package/dist/{stressTimeCurve-ItQcQKdH.js → stressTimeCurve-DGBhkdbV.js} +3 -3
- package/dist/{swiper-D6TV4ZCd.js → swiper-BEau8Ehu.js} +2 -2
- package/dist/{swiper-Buxmd32g.cjs → swiper-UlVDFht8.cjs} +1 -1
- package/dist/{tablemanCreate-wybANxe3.cjs → tablemanCreate-CF_D5gYW.cjs} +1 -1
- package/dist/{tablemanCreate-CZgA3PsQ.js → tablemanCreate-WnNbHft8.js} +3 -3
- package/dist/{tablemanDetail-BRTZJyW5.cjs → tablemanDetail-_SNevfWv.cjs} +1 -1
- package/dist/{tablemanDetail-DfWhFk1K.js → tablemanDetail-yz3zQnFP.js} +36 -36
- package/dist/{tablemanList-BO_NeJgz.cjs → tablemanList-CDJWp9Pu.cjs} +1 -1
- package/dist/{tablemanList-BaOBHZ0V.js → tablemanList-CzcVRDtI.js} +4 -4
- package/dist/{tablemanTableList-Dbq82Z-h.js → tablemanTableList-Bm2fU0EX.js} +4 -4
- package/dist/{tablemanTableList-sMrfmiA9.cjs → tablemanTableList-DX76_Wzv.cjs} +1 -1
- package/dist/{tablemanUpdate-VmkxfpIh.cjs → tablemanUpdate-wdF6NUSW.cjs} +1 -1
- package/dist/{tablemanUpdate-KALCUbVd.js → tablemanUpdate-zmDu6tfj.js} +3 -3
- package/dist/{terminalConfigList-DjFLDQih.js → terminalConfigList-CCTkfKIn.js} +4 -4
- package/dist/{terminalConfigList-BVI2GPl0.cjs → terminalConfigList-Dpktm7uo.cjs} +1 -1
- package/dist/{terminalList-DQeF169Z.js → terminalList-DTG1Cd-P.js} +4 -4
- package/dist/{terminalList-DuW8drr5.cjs → terminalList-DlnAYr5c.cjs} +1 -1
- package/dist/{terminalListAPP-Brlll6Fx.js → terminalListAPP-BXX0YEmN.js} +3 -3
- package/dist/{terminalListAPP-D1ZHyTf5.cjs → terminalListAPP-DcG5Iu89.cjs} +1 -1
- package/dist/{textbox-DDpkVlaw.cjs → textbox-C5DmbaFz.cjs} +1 -1
- package/dist/{textbox-mnxb35mH.js → textbox-DyFcEXBF.js} +2 -2
- package/dist/{timeQueryBar-EKkIhz9m.js → timeQueryBar-BbWq3QkA.js} +1 -1
- package/dist/{timeQueryBar-BQD19vDp.cjs → timeQueryBar-OqKVqlTl.cjs} +1 -1
- package/dist/{timeSeries-CDjeGZKo.cjs → timeSeries-BDp-gfRT.cjs} +1 -1
- package/dist/{timeSeries-Bk2N1A6L.js → timeSeries-D_-6XcY8.js} +13 -13
- package/dist/{timeSeriesCurve-BRrpaqU8.js → timeSeriesCurve-DgSGvMqB.js} +3 -3
- package/dist/{timeSeriesCurve-CA5W-Oir.cjs → timeSeriesCurve-KPYndFEq.cjs} +1 -1
- package/dist/{toggleBtn-WYU3IUc8.js → toggleBtn-D0JJAMZR.js} +2 -2
- package/dist/{toggleBtn-CGYR01jI.cjs → toggleBtn-DtS2UoB4.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-y4bXsrXJ.cjs → trajectoryConfigPanel-Bth1LMLN.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-BdTmJQzP.js → trajectoryConfigPanel-DxBIMfEx.js} +1 -1
- package/dist/{trajectoryScatter-Clb_fUfI.js → trajectoryScatter-DqgFAVSz.js} +42 -42
- package/dist/{trajectoryScatter-CQik1fcT.cjs → trajectoryScatter-GkbJne40.cjs} +1 -1
- package/dist/{universalConfigPanel-B5k_qOEq.js → universalConfigPanel-BjyXE23U.js} +1 -1
- package/dist/{universalConfigPanel-Dfbc5SvD.cjs → universalConfigPanel-C4Teu_Op.cjs} +1 -1
- package/dist/{universalTable-DoiFrrZH.js → universalTable-BVwrJKq8.js} +2 -2
- package/dist/{universalTable-CcQq8qmA.cjs → universalTable-D_rkyBG2.cjs} +1 -1
- package/dist/{useMixiotPanelPopperClass-BAb3JPdj.js → useMixiotPanelPopperClass-C6Y6iPSp.js} +3 -3
- package/dist/{useMixiotPanelPopperClass-B0l54_PF.cjs → useMixiotPanelPopperClass-DmA-0R1V.cjs} +1 -1
- package/dist/{useTablemanApi-D4G6rvXH.cjs → useTablemanApi-Big2Hfsi.cjs} +1 -1
- package/dist/{useTablemanApi-BXR_OKzO.js → useTablemanApi-CJh5jpVJ.js} +1 -1
- package/dist/{useTablemanFormPanel-JcWza2YJ.js → useTablemanFormPanel-CvrN_jY3.js} +2 -2
- package/dist/{useTablemanFormPanel-DTcITWwz.cjs → useTablemanFormPanel-prjUDI9m.cjs} +1 -1
- package/dist/{useTablemanListActions-COZ3zBoW.cjs → useTablemanListActions-B9SrCZRt.cjs} +1 -1
- package/dist/{useTablemanListActions-BUFJCLAW.js → useTablemanListActions-DVQL1pwu.js} +5 -5
- package/dist/{video-DylR59_l.cjs → video-CdMEjVoF.cjs} +1 -1
- package/dist/{video-CtiQVOnv.js → video-DDHDy4Eq.js} +2 -2
- package/dist/{videoMonitor-tBmgk3mm.cjs → videoMonitor-BZcjaMPX.cjs} +1 -1
- package/dist/{videoMonitor-8rqFRzST.js → videoMonitor-JQ4tj-qi.js} +11 -11
- package/dist/{vlu-B93iwAL3.cjs → vlu-39EqfkCs.cjs} +1 -1
- package/dist/{vlu-Bvbgox5l.js → vlu-Bmqrgnj8.js} +2 -2
- package/dist/{warningOverview-Drd9VneD.js → warningOverview-Ctab9k92.js} +3 -3
- package/dist/{warningOverview-igfNPVvg.cjs → warningOverview-DOsI-iKt.cjs} +1 -1
- package/dist/{weather-BVB786-I.cjs → weather-BfV-w4FG.cjs} +1 -1
- package/dist/{weather-Db_sZvLk.js → weather-BwTT4bPM.js} +2 -2
- package/dist/{windLin-D09MKfNK.cjs → windLin-Dfz6aBio.cjs} +1 -1
- package/dist/{windLin-M0ehkFjJ.js → windLin-DgZctBal.js} +2 -2
- package/package.json +1 -1
- package/dist/stationList-CnwkdvHq.cjs +0 -1
|
@@ -35,16 +35,16 @@ import "element-plus/es/components/checkbox-group/style/css";
|
|
|
35
35
|
import "element-plus/es/components/checkbox/style/css";
|
|
36
36
|
import "element-plus/es/components/empty/style/css";
|
|
37
37
|
import "element-plus/es/components/icon/style/css";
|
|
38
|
-
import { defineComponent as Pe, computed as S, openBlock as T, createElementBlock as k, withModifiers as
|
|
38
|
+
import { defineComponent as Pe, computed as S, openBlock as T, createElementBlock as k, withModifiers as Le, normalizeClass as te, createElementVNode as M, toDisplayString as W, createVNode as A, unref as a, normalizeStyle as ze, withCtx as B, createCommentVNode as le, createTextVNode as se, Fragment as de, renderList as ve, createBlock as je, ref as $, watch as ie, withDirectives as nt, vShow as St, inject as Dt, reactive as kt, onMounted as Ct, onBeforeUnmount as xt, isRef as Re, renderSlot as At } from "vue";
|
|
39
39
|
import { Rank as Mt, Close as It } from "@element-plus/icons-vue";
|
|
40
40
|
import { u as Et } from "./useMixiotPanelSurface-DRl3cZvc.js";
|
|
41
|
-
import { B as Vt } from "./BaseComponent-
|
|
42
|
-
import { _ as Ke, u as Ft,
|
|
41
|
+
import { B as Vt } from "./BaseComponent-Dn65PXTp.js";
|
|
42
|
+
import { _ as Ke, u as Ft, S as Ot, a6 as Bt, a7 as Qe } from "./index-CPTJIw32.js";
|
|
43
43
|
import "element-plus/es/components/tag/style/css";
|
|
44
|
-
import
|
|
45
|
-
import { c as it, e as ot, r as
|
|
46
|
-
import { t as at, m as zt, d as Ut, e as Pt, f as Xe, g as jt, a as Kt } from "./useTablemanApi-
|
|
47
|
-
import { p as Jt, u as Gt, T as Wt, a as Ht, b as qt, c as Yt } from "./useTablemanListActions-
|
|
44
|
+
import Lt from "vuedraggable";
|
|
45
|
+
import { c as it, e as ot, r as Rt, D as Nt, n as $t } from "./syncTablemanFormConfig-DBy_VRRz.js";
|
|
46
|
+
import { t as at, m as zt, d as Ut, e as Pt, f as Xe, g as jt, a as Kt } from "./useTablemanApi-CJh5jpVJ.js";
|
|
47
|
+
import { p as Jt, u as Gt, T as Wt, a as Ht, b as qt, c as Yt } from "./useTablemanListActions-DVQL1pwu.js";
|
|
48
48
|
import { useRoute as Qt } from "vue-router";
|
|
49
49
|
import { a as Xt } from "./appendCommonDesignerWhereAnd-DwefWNOa.js";
|
|
50
50
|
import { A as Zt, D as en } from "./ele-lst-icon-CKpeRKmk.js";
|
|
@@ -99,7 +99,7 @@ const tn = { class: "section-header" }, nn = { class: "section-title" }, on = {
|
|
|
99
99
|
selectOptions: s.selectOptions
|
|
100
100
|
}) || Ne;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function L(u) {
|
|
103
103
|
o.designMode && u.preventDefault();
|
|
104
104
|
}
|
|
105
105
|
function O() {
|
|
@@ -122,14 +122,14 @@ const tn = { class: "section-header" }, nn = { class: "section-title" }, on = {
|
|
|
122
122
|
const C = tt, H = ht;
|
|
123
123
|
return T(), k("div", {
|
|
124
124
|
class: te(["tableman-detail-info-section", { "is-design-mode": n.designMode }]),
|
|
125
|
-
onMousedown: s[1] || (s[1] =
|
|
125
|
+
onMousedown: s[1] || (s[1] = Le(() => {
|
|
126
126
|
}, ["stop"])),
|
|
127
|
-
onSelectstart:
|
|
127
|
+
onSelectstart: L
|
|
128
128
|
}, [
|
|
129
129
|
M("div", tn, [
|
|
130
130
|
M("span", nn, W(n.section.title), 1)
|
|
131
131
|
]),
|
|
132
|
-
A(a(
|
|
132
|
+
A(a(Lt), {
|
|
133
133
|
"model-value": y.value,
|
|
134
134
|
"item-key": "alias",
|
|
135
135
|
tag: "div",
|
|
@@ -181,9 +181,9 @@ const tn = { class: "section-header" }, nn = { class: "section-title" }, on = {
|
|
|
181
181
|
key: 0,
|
|
182
182
|
class: "field-resize-handle",
|
|
183
183
|
title: "点击切换列宽",
|
|
184
|
-
onMousedown: s[0] || (s[0] =
|
|
184
|
+
onMousedown: s[0] || (s[0] = Le(() => {
|
|
185
185
|
}, ["prevent", "stop"])),
|
|
186
|
-
onClick:
|
|
186
|
+
onClick: Le((q) => d("resize-field", p.alias), ["stop", "prevent"])
|
|
187
187
|
}, null, 40, rn)) : le("", !0)
|
|
188
188
|
], 6)) : le("", !0)
|
|
189
189
|
]),
|
|
@@ -302,7 +302,7 @@ function We(n) {
|
|
|
302
302
|
return o;
|
|
303
303
|
}
|
|
304
304
|
function yn(n) {
|
|
305
|
-
var f, w, I,
|
|
305
|
+
var f, w, I, L, O, E;
|
|
306
306
|
if (!n || typeof n != "object") return null;
|
|
307
307
|
const t = n, o = t.viewType === "list" ? "list" : t.viewType === "info" ? "info" : null;
|
|
308
308
|
if (!o) return null;
|
|
@@ -331,13 +331,13 @@ function yn(n) {
|
|
|
331
331
|
edit: t.edit !== void 0 ? !!t.edit : F.edit,
|
|
332
332
|
delete: t.delete !== void 0 ? !!t.delete : F.delete,
|
|
333
333
|
add_linked_layer_id: String((I = t.add_linked_layer_id) != null ? I : ""),
|
|
334
|
-
view_linked_layer_id: String((
|
|
334
|
+
view_linked_layer_id: String((L = t.view_linked_layer_id) != null ? L : ""),
|
|
335
335
|
edit_linked_layer_id: String((O = t.edit_linked_layer_id) != null ? O : "")
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
338
|
const y = Number(t.columns), v = y === 1 || y === 3 ? y : 2;
|
|
339
339
|
let h;
|
|
340
|
-
return Array.isArray(t.sections) && t.sections.length ? h =
|
|
340
|
+
return Array.isArray(t.sections) && t.sections.length ? h = Rt({ options: { formCategories: t.sections } }) : h = [{ id: Nt, title: String((E = t.sectionTitle) != null ? E : "基本信息"), fields: [] }], { viewType: "info", tableId: d, tableName: c, columns: v, sections: h };
|
|
341
341
|
}
|
|
342
342
|
function Ue(n, t) {
|
|
343
343
|
lt(n, "detailViews", t);
|
|
@@ -354,7 +354,7 @@ function et(n) {
|
|
|
354
354
|
return n != null && n.tableId ? n.viewType === "info" ? n.sections.some((t) => t.fields.length > 0) : n.columns.some((t) => t.visible !== !1) : !1;
|
|
355
355
|
}
|
|
356
356
|
function bn(n) {
|
|
357
|
-
const t = Ft(), o = Ot(), d = Qt(), c = Dt("getCurrentSheet", null), y = $(!1), v = $(""), h = $({}), f = $(""), w = $(null), I = $([]),
|
|
357
|
+
const t = Ft(), o = Ot(), d = Qt(), c = Dt("getCurrentSheet", null), y = $(!1), v = $(""), h = $({}), f = $(""), w = $(null), I = $([]), L = $([]), O = $([]), E = $({ field: "", value: "" }), x = kt({ current: 1, pageSize: 20, total: 0 }), u = S(() => n.mode === "edit"), s = S(() => st(n.conf)), C = S(() => s.value.length > 1), H = S(
|
|
358
358
|
() => {
|
|
359
359
|
var e;
|
|
360
360
|
return (e = s.value.find((i) => i.id === v.value)) != null ? e : s.value[0];
|
|
@@ -375,7 +375,7 @@ function bn(n) {
|
|
|
375
375
|
}), oe = S(() => {
|
|
376
376
|
const e = p.value;
|
|
377
377
|
if (!e || e.viewType !== "list") return [];
|
|
378
|
-
const i = new Map(
|
|
378
|
+
const i = new Map(L.value.map((l) => [l.alias, at(l)]));
|
|
379
379
|
return e.columns.filter((l) => l.visible !== !1).map((l) => {
|
|
380
380
|
var g, _, D;
|
|
381
381
|
const r = i.get(l.key);
|
|
@@ -429,8 +429,8 @@ function bn(n) {
|
|
|
429
429
|
const l = ((g = t.pageData) == null ? void 0 : g.sheets) || [];
|
|
430
430
|
for (const _ of l)
|
|
431
431
|
for (const D of _.layers || [])
|
|
432
|
-
for (const
|
|
433
|
-
(
|
|
432
|
+
for (const R of D.components || [])
|
|
433
|
+
(R == null ? void 0 : R.id) === i && Ze(R, e);
|
|
434
434
|
}
|
|
435
435
|
function be(e) {
|
|
436
436
|
v.value = e, u.value && we(e), J();
|
|
@@ -450,8 +450,8 @@ function bn(n) {
|
|
|
450
450
|
const r = l.columns, g = l.sections.map((_) => _.id !== e ? _ : N(V({}, _), {
|
|
451
451
|
fields: _.fields.map((D) => {
|
|
452
452
|
if (D.alias !== i) return D;
|
|
453
|
-
const
|
|
454
|
-
return N(V({}, D), { colSpan: it($t(
|
|
453
|
+
const R = D.colSpan % r + 1;
|
|
454
|
+
return N(V({}, D), { colSpan: it($t(R), r) });
|
|
455
455
|
})
|
|
456
456
|
}));
|
|
457
457
|
ce(g);
|
|
@@ -463,7 +463,7 @@ function bn(n) {
|
|
|
463
463
|
}
|
|
464
464
|
function Te(e) {
|
|
465
465
|
return G(this, null, function* () {
|
|
466
|
-
|
|
466
|
+
L.value = yield Xe(e);
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
469
|
function Se(e) {
|
|
@@ -479,7 +479,7 @@ function bn(n) {
|
|
|
479
479
|
const e = {
|
|
480
480
|
page_index: x.current,
|
|
481
481
|
page_size: x.pageSize
|
|
482
|
-
}, i = [], { field: l, value: r } = E.value, g = j.value.find((
|
|
482
|
+
}, i = [], { field: l, value: r } = E.value, g = j.value.find((R) => R.key === l);
|
|
483
483
|
g && i.push(...jt(g.key, g.searchType, r));
|
|
484
484
|
const _ = p.value, D = (_ == null ? void 0 : _.viewType) === "list" ? { isAddCondition: _.isAddCondition, conditions: _.conditions } : void 0;
|
|
485
485
|
return Xt(D, i), i.length && (e.where_and = i), e;
|
|
@@ -572,8 +572,8 @@ function bn(n) {
|
|
|
572
572
|
const e = String((l = n.conf.id) != null ? l : "");
|
|
573
573
|
if (!e) return "";
|
|
574
574
|
if (n.mode === "preview") {
|
|
575
|
-
const D = (r = window.__mix_preview_params) == null ? void 0 : r.sheets,
|
|
576
|
-
return Qe(D, e,
|
|
575
|
+
const D = (r = window.__mix_preview_params) == null ? void 0 : r.sheets, R = (g = c == null ? void 0 : c()) != null ? g : 0;
|
|
576
|
+
return Qe(D, e, R);
|
|
577
577
|
}
|
|
578
578
|
const i = (_ = t.pageData) == null ? void 0 : _.sheets;
|
|
579
579
|
return Qe(i, e, t.currentPage);
|
|
@@ -726,15 +726,15 @@ const _n = { class: "detail-header" }, Tn = { class: "detail-title" }, Sn = {
|
|
|
726
726
|
table_name: "",
|
|
727
727
|
table_alias: ""
|
|
728
728
|
}
|
|
729
|
-
],
|
|
729
|
+
], Ln = [
|
|
730
730
|
{ key: "add", label: "添加", type: "checkbox" },
|
|
731
731
|
{ key: "export", label: "导出", type: "checkbox" },
|
|
732
732
|
{ key: "batchDelete", label: "批量删除", type: "checkbox" }
|
|
733
|
-
],
|
|
733
|
+
], Rn = [
|
|
734
734
|
{ key: "view", label: "查看", type: "checkbox" },
|
|
735
735
|
{ key: "edit", label: "编辑", type: "checkbox" },
|
|
736
736
|
{ key: "delete", label: "删除", type: "checkbox" }
|
|
737
|
-
], Nn = [], $n = [], zn = {}, Un = { w: 55, h: 28 }, Pn = { DEFAULT: On, OPTIONS: Bn, DATA: dt, PARAMS: Nn, SOURCE: $n, COMMON: zn, COMMANDS:
|
|
737
|
+
], Nn = [], $n = [], zn = {}, Un = { w: 55, h: 28 }, Pn = { DEFAULT: On, OPTIONS: Bn, DATA: dt, PARAMS: Nn, SOURCE: $n, COMMON: zn, COMMANDS: Ln, OPERATIONS: Rn, INIT_GRID: Un }, jn = /* @__PURE__ */ Pe(N(V({}, Pn), {
|
|
738
738
|
__name: "tablemanDetail",
|
|
739
739
|
props: {
|
|
740
740
|
conf: { default: () => ({ data: [] }) },
|
|
@@ -767,7 +767,7 @@ const _n = { class: "detail-header" }, Tn = { class: "detail-title" }, Sn = {
|
|
|
767
767
|
activeMenuId: f,
|
|
768
768
|
menus: w,
|
|
769
769
|
showSidebar: I,
|
|
770
|
-
activeView:
|
|
770
|
+
activeView: L,
|
|
771
771
|
isViewConfigured: O,
|
|
772
772
|
isDesignMode: E,
|
|
773
773
|
recordData: x,
|
|
@@ -841,9 +841,9 @@ const _n = { class: "detail-header" }, Tn = { class: "detail-title" }, Sn = {
|
|
|
841
841
|
])) : le("", !0),
|
|
842
842
|
M("main", kn, [
|
|
843
843
|
M("div", {
|
|
844
|
-
class: te(["detail-main-scroll", { "is-list-view": ((me = a(
|
|
844
|
+
class: te(["detail-main-scroll", { "is-list-view": ((me = a(L)) == null ? void 0 : me.viewType) === "list" }])
|
|
845
845
|
}, [
|
|
846
|
-
a(O) ? ((J = a(
|
|
846
|
+
a(O) ? ((J = a(L)) == null ? void 0 : J.viewType) === "info" ? (T(), je(mn, {
|
|
847
847
|
key: 1,
|
|
848
848
|
sections: a(u),
|
|
849
849
|
"field-records": a(C),
|
|
@@ -852,12 +852,12 @@ const _n = { class: "detail-header" }, Tn = { class: "detail-title" }, Sn = {
|
|
|
852
852
|
"design-mode": a(E),
|
|
853
853
|
"onUpdate:sections": a(Ae),
|
|
854
854
|
onResizeField: a(Me)
|
|
855
|
-
}, null, 8, ["sections", "field-records", "record", "columns", "design-mode", "onUpdate:sections", "onResizeField"])) : ((ae = a(
|
|
855
|
+
}, null, 8, ["sections", "field-records", "record", "columns", "design-mode", "onUpdate:sections", "onResizeField"])) : ((ae = a(L)) == null ? void 0 : ae.viewType) === "list" ? (T(), k("div", xn, [
|
|
856
856
|
M("div", An, [
|
|
857
857
|
A(Wt, {
|
|
858
858
|
fields: a(q),
|
|
859
859
|
modelValue: a(z),
|
|
860
|
-
"onUpdate:modelValue": m[0] || (m[0] = (b) =>
|
|
860
|
+
"onUpdate:modelValue": m[0] || (m[0] = (b) => Re(z) ? z.value = b : null),
|
|
861
861
|
onSearch: a(K),
|
|
862
862
|
onReset: a(ke)
|
|
863
863
|
}, null, 8, ["fields", "modelValue", "onSearch", "onReset"]),
|
|
@@ -906,7 +906,7 @@ const _n = { class: "detail-header" }, Tn = { class: "detail-title" }, Sn = {
|
|
|
906
906
|
], 2),
|
|
907
907
|
A(Fe, {
|
|
908
908
|
modelValue: a(Q),
|
|
909
|
-
"onUpdate:modelValue": m[5] || (m[5] = (b) =>
|
|
909
|
+
"onUpdate:modelValue": m[5] || (m[5] = (b) => Re(Q) ? Q.value = b : null),
|
|
910
910
|
width: "50%",
|
|
911
911
|
"close-on-click-modal": !1,
|
|
912
912
|
class: "tableman-export-dialog"
|
|
@@ -951,7 +951,7 @@ const _n = { class: "detail-header" }, Tn = { class: "detail-title" }, Sn = {
|
|
|
951
951
|
]),
|
|
952
952
|
A(Ve, {
|
|
953
953
|
modelValue: a(X),
|
|
954
|
-
"onUpdate:modelValue": m[3] || (m[3] = (b) =>
|
|
954
|
+
"onUpdate:modelValue": m[3] || (m[3] = (b) => Re(X) ? X.value = b : null),
|
|
955
955
|
class: "export-field-group"
|
|
956
956
|
}, {
|
|
957
957
|
default: B(() => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ke=Object.defineProperty,De=Object.defineProperties;var Oe=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var Ve=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable;var ee=(l,n,i)=>n in l?ke(l,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):l[n]=i,D=(l,n)=>{for(var i in n||(n={}))Ve.call(n,i)&&ee(l,i,n[i]);if(Z)for(var i of Z(n))Be.call(n,i)&&ee(l,i,n[i]);return l},P=(l,n)=>De(l,Oe(n));var S=(l,n,i)=>new Promise((d,u)=>{var h=s=>{try{b(i.next(s))}catch(p){u(p)}},v=s=>{try{b(i.throw(s))}catch(p){u(p)}},b=s=>s.done?d(s.value):Promise.resolve(s.value).then(h,v);b((i=i.apply(l,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=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/dialog/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");const e=require("vue"),Ee=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Ne=require("./BaseComponent-DdC8fmD6.cjs"),Ae=require("./index-DFbNT6Tf.cjs"),Le=require("./titleStyle-NSnz6cUg.cjs"),ze=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),O=require("./useTablemanListActions-COZ3zBoW.cjs"),T=require("./useTablemanApi-D4G6rvXH.cjs"),te=require("./ele-lst-icon-CrxnHZ-A.cjs"),Fe=new Set(["table_id","table_name","table_alias","add","add_linked_layer_id","export","batchDelete","view","view_linked_layer_id","edit","edit_linked_layer_id","delete"]);function oe(l){var d;const n=(d=l.options)==null?void 0:d.columns,i=n&&typeof n=="object"&&"value"in n?n.value:n;return Array.isArray(i)?i:[]}function Me(l){return oe(l).length>0}function Ie(l,n){const i=new Map(oe(n).map((d,u)=>[d.key,u]));return[...l].sort((d,u)=>{const h=i.get(d.alias),v=i.get(u.alias);return h!==void 0&&v!==void 0?h-v:h!==void 0?-1:v!==void 0?1:(Number(d.listorder)||0)-(Number(u.listorder)||0)})}function Re(l,n){if(n.has(l))return!0;if(l.endsWith("_visible")){const i=l.slice(0,-8);return n.has(i)}return!1}function qe(l,n){const i=new Set(n.map(s=>s.alias)),d={},u={},h={};for(const[s,p]of Object.entries(l))Fe.has(s)?d[s]=p:Re(s,i)?u[s]=p:h[s]=p;const v=D({},d);for(const s of n){const p=`${s.alias}_visible`;p in u&&(v[p]=u[p]),s.alias in u&&(v[s.alias]=u[s.alias])}for(const[s,p]of Object.entries(u))s in v||(v[s]=p);const b=D(D({},v),h);for(const s of Object.keys(l))delete l[s];Object.assign(l,b)}function Pe(l,n){var v;(v=l.data)!=null&&v.length||(l.data=[{}]);const i=l.data[0],d=n.map(b=>{const s=T.toFieldMeta(b),p=`${b.alias}_visible`;return i[p]===void 0&&(i[p]=!0),(i[b.alias]===void 0||i[b.alias]==="")&&(i[b.alias]=b.name),{key:b.alias,label:b.name,visible:i[p]!==!1,minWidth:120,searchType:s.searchType,componentType:s.componentType}});qe(i,n);const u=l.options||{},h=u.columns;h&&typeof h=="object"&&"value"in h?h.value=d:u.columns=d,l.options=u}const je={class:"mix-body"},He={class:"top-bar"},Ke={class:"table-panel"},Ue={class:"footer-panel"},We={class:"export-field-list"},$e={class:"export-field-row export-field-header"},Ye=["title"],Ge={DEFAULT_ICON:te.DEFAULT_ICON,ACTIVE_ICON:te.ACTIVE_ICON,NAME_CN:"数据表列表",NAME_EN:"tablemanList",ORDER:1,PLATFORM:["pc","screen"]},Je={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:!0,allowBatchOperation:{value:!0,type:"checkbox",label:"component.options.tablemanAllowBatchOperation"},allowColumnDisplay:{value:!0,type:"checkbox",label:"component.options.tablemanAllowColumnDisplay"},cacheColumnOperations:{value:!1,type:"checkbox",label:"component.options.tablemanCacheColumnOperations"},listHeaderSize:{value:14,type:"number",label:"component.options.listHeaderSize",min:10,max:32},listContentSize:{value:14,type:"number",label:"component.options.listContentSize",min:10,max:32},columns:[]},ne=[{table_id:"",table_name:"",table_alias:"",add:!1,add_linked_layer_id:"",export:!1,batchDelete:!1,view:!0,view_linked_layer_id:"",edit:!0,edit_linked_layer_id:"",delete:!0}],Qe=[{key:"add",label:"添加",type:"checkbox"},{key:"export",label:"导出",type:"checkbox"},{key:"batchDelete",label:"批量删除",type:"checkbox"}],Xe=[{key:"view",label:"查看",type:"checkbox"},{key:"edit",label:"编辑",type:"checkbox"},{key:"delete",label:"删除",type:"checkbox"}],Ze={isAddCondition:!1,conditions:[],conditionFilterFields:[]},et={w:75,h:30},tt={DEFAULT:Ge,OPTIONS:Je,DATA:ne,COMMANDS:Qe,OPERATIONS:Xe,SOURCE:[],COMMON:Ze,INIT_GRID:et},ot=e.defineComponent(P(D({},tt),{__name:"tablemanList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{}},setup(l){const n=l;class i extends Ne.BaseComponent{getDataBool(t,a){var r,y;const c=(y=(r=this.props.conf)==null?void 0:r.data)==null?void 0:y[0];return c&&Object.prototype.hasOwnProperty.call(c,t)&&c[t]!==void 0?!!c[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),export:this.getDataBool("export",!1),batchDelete:this.getDataBool("batchDelete",!1),view:this.getDataBool("view",!0),edit:this.getDataBool("edit",!0),delete:this.getDataBool("delete",!0),listHeaderSize:this.getOptionValue("listHeaderSize",14),listContentSize:this.getOptionValue("listContentSize",14)}}needsHistoryData(){return!1}migrateCommandOperationKeys(t){const a={showAddBtn:"add",showExportBtn:"export",showBatchDeleteBtn:"batchDelete",showViewBtn:"view",showEditBtn:"edit",showDeleteBtn:"delete"};for(const[c,r]of Object.entries(a))t[c]!==void 0&&t[r]===void 0&&(t[r]=t[c])}init(){return S(this,null,function*(){var c;this.applyTheme(),(c=this.props.conf.data)!=null&&c.length||(this.props.conf.data=JSON.parse(JSON.stringify(ne)));const t=this.props.conf.data[0];this.migrateCommandOperationKeys(t);const a={add:!0,export:!1,batchDelete:!1,view:!0,edit:!0,delete:!0};for(const[r,y]of Object.entries(a))t[r]===void 0&&(t[r]=y);this.Style.value=this.extractStyles()})}}function d(){var o;return(o=n.conf.data)==null?void 0:o[0]}function u(){var o,t;return String((t=(o=d())==null?void 0:o.table_id)!=null?t:"")}function h(){var t,a;const o=d();return String((a=(t=o==null?void 0:o.table_name)!=null?t:o==null?void 0:o.table_alias)!=null?a:"")}const v=new i(n,"tablemanList");v.setupLifecycle();const b=v.getStyle(),{mixiotPanelClass:s,mixiotPanelRootStyle:p}=Ee.useMixiotPanelSurface(b),ae=e.computed(()=>Le.generateTitleStyle(n.conf.options)),N=e.ref([]),F=e.computed(()=>{var r,y,z,f;const o=(y=(r=n.conf)==null?void 0:r.options)==null?void 0:y.columns,t=o&&typeof o=="object"&&"value"in o?o.value:o||[],a=((f=(z=n.conf)==null?void 0:z.data)==null?void 0:f[0])||{},c=new Map(N.value.map(w=>[w.alias,w]));return(Array.isArray(t)?t:[]).filter(w=>{const B=w.key;return B?a[`${B}_visible`]!==!1&&w.visible!==!1:!1}).map(w=>{var W,$,Y,G,J,Q,X;const B=c.get(w.key),m=B?T.toFieldMeta(B):null,q=a[w.key];return{prop:w.key,label:q!==void 0&&q!==""?String(q):w.label||w.key,width:w.width,minWidth:(W=w.minWidth)!=null?W:120,visible:!0,componentType:($=m==null?void 0:m.componentType)!=null?$:"",displayAsTags:(Y=m==null?void 0:m.displayAsTags)!=null?Y:!1,isMultiTags:(G=m==null?void 0:m.isMultiTags)!=null?G:!1,searchType:(J=m==null?void 0:m.searchType)!=null?J:"input",selectOptions:(Q=m==null?void 0:m.selectOptions)!=null?Q:[],dateFormat:(X=m==null?void 0:m.dateFormat)!=null?X:"YYYY-MM-DD HH:mm:ss"}})}),V=e.computed(()=>F.value.map(o=>P(D({},o),{key:o.prop}))),x=e.ref({field:"",value:""}),g=e.reactive({current:1,pageSize:20,total:0}),k=e.ref([]),M=e.ref(!1);function I(o,t){var c,r;const a=(r=(c=n.conf)==null?void 0:c.options)==null?void 0:r[o];return a&&typeof a=="object"&&a!==null&&"value"in a?!!a.value:a!==void 0?!!a:t}function j(o,t){var c,r;const a=(r=(c=n.conf)==null?void 0:c.options)==null?void 0:r[o];if(a&&typeof a=="object"&&a!==null&&"value"in a){const y=a.value;return y!=null?y:t}return a!=null?a:t}const le=e.computed(()=>({headerSize:Number(j("listHeaderSize",14))||14,contentSize:Number(j("listContentSize",14))||14})),R=e.computed(()=>I("allowBatchOperation",!0)),ie=e.computed(()=>I("allowColumnDisplay",!0)),H=e.computed(()=>I("cacheColumnOperations",!1)),se=e.computed(()=>{var t;if(!H.value)return"";const o=(t=n.conf)==null?void 0:t.id;return o?String(o):""}),_=e.computed(()=>O.pickTablemanCmdOps(d())),re=e.computed(()=>_.value.view||_.value.edit||_.value.delete);function ce(){const o={page_index:g.current,page_size:g.pageSize},t=[],{field:a,value:c}=x.value,r=V.value.find(y=>y.key===a);return r&&t.push(...T.buildFieldWhereAnd(r.key,r.searchType,c)),ze.appendCommonDesignerWhereAnd(n.conf.common,t),t.length&&(o.where_and=t),o}function C(){return S(this,null,function*(){const o=h();if(!o){k.value=[],g.total=0;return}M.value=!0;try{const t=yield T.fetchDataList(o,ce());k.value=Array.isArray(t==null?void 0:t.data)?[...t.data]:[];const a=t==null?void 0:t.total_records;g.total=typeof a=="number"?a:k.value.length}catch(t){k.value=[],g.total=0}finally{M.value=!1}})}function de(){g.current=1,C()}function ue(){var o,t,a;x.value={field:(t=(o=V.value[0])==null?void 0:o.key)!=null?t:"",value:((a=V.value[0])==null?void 0:a.searchType)==="time"?null:""},g.current=1,C()}const{exportDialogVisible:A,exportSelectedKeys:L,exportLoading:pe,exportFieldOptions:me,exportCheckAll:fe,exportIndeterminate:he,handleExportCheckAll:ve,handleExport:be,confirmExport:ye,onSelectionChange:ge,openAdd:we,openEdit:_e,handleView:xe,handleDelete:Ce,handleBatchDelete:Se}=O.useTablemanListActions({mode:n.mode,dataRow:d,rowTableName:h,columnsConfig:F,allowBatchOperation:R,loadData:C});e.watch(V,o=>{if(!o.length){x.value={field:"",value:""};return}o.some(t=>t.key===x.value.field)||(x.value={field:o[0].key,value:o[0].searchType==="time"?null:""})},{immediate:!0}),e.watch(()=>u(),o=>S(null,null,function*(){if(!o){N.value=[],k.value=[],g.total=0;return}try{const t=yield T.fetchFieldList(o);N.value=t}catch(t){console.warn("[tablemanList] 字段列表加载失败",t)}yield U(),g.current=1,C()}));function K(){C()}function U(){return S(this,null,function*(){var t;const o=u();if(!(!o||h()))try{const c=(yield T.fetchTableList()).find(y=>y.uid===o);if(!c||!d())return;const r=String((t=c.alias)!=null?t:"");d().table_name=r,d().table_alias=r}catch(a){}})}function Te(){return S(this,null,function*(){const o=u();if(o){yield U();try{const t=yield T.fetchFieldList(o);if(N.value=t,Me(n.conf))return;const a=Ie(t,n.conf);Pe(n.conf,a)}catch(t){console.warn("[tablemanList] 加载字段失败",t)}}})}return e.onMounted(()=>S(null,null,function*(){yield Te(),C(),window.addEventListener("tableman-data-changed",K)})),e.onBeforeUnmount(()=>{window.removeEventListener("tableman-data-changed",K)}),(o,t)=>{const a=E.ElCheckbox,c=E.ElCheckboxGroup,r=E.ElButton,y=E.ElDialog,z=E.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tableman-list mix-component",e.unref(s)]),style:e.normalizeStyle(e.unref(p))},[e.unref(b).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(ae.value)},e.toDisplayString(l.conf.caption||l.conf.name),5)),e.createElementVNode("div",je,[e.createElementVNode("div",He,[e.createVNode(O.TablemanSearchBar,{fields:V.value,modelValue:x.value,"onUpdate:modelValue":t[0]||(t[0]=f=>x.value=f),onSearch:de,onReset:ue},null,8,["fields","modelValue"]),e.createVNode(O.TablemanToolbar,{"show-add":_.value.add,"show-export":_.value.export,"show-batch-delete":R.value&&_.value.batchDelete,onAdd:e.unref(we),onExport:e.unref(be),onBatchDelete:e.unref(Se)},null,8,["show-add","show-export","show-batch-delete","onAdd","onExport","onBatchDelete"])]),e.createElementVNode("div",Ke,[e.createVNode(O.TablemanDataTable,{rows:k.value,columns:F.value,"show-selection":R.value,"show-actions":re.value,"show-view":_.value.view,"show-edit":_.value.edit,"show-delete":_.value.delete,"field-filter":ie.value,"cache-column-state":H.value,"column-storage-name":se.value,"table-style":le.value,onSelectionChange:e.unref(ge),onView:e.unref(xe),onEdit:e.unref(_e),onDelete:e.unref(Ce)},null,8,["rows","columns","show-selection","show-actions","show-view","show-edit","show-delete","field-filter","cache-column-state","column-storage-name","table-style","onSelectionChange","onView","onEdit","onDelete"])]),e.createElementVNode("div",Ue,[e.createVNode(O.TablemanPagination,{current:g.current,"onUpdate:current":t[1]||(t[1]=f=>g.current=f),"page-size":g.pageSize,"onUpdate:pageSize":t[2]||(t[2]=f=>g.pageSize=f),total:g.total,onPageChange:C},null,8,["current","page-size","total"])])]),e.renderSlot(o.$slots,"default",{},void 0,!0),e.createVNode(y,{modelValue:e.unref(A),"onUpdate:modelValue":t[5]||(t[5]=f=>e.isRef(A)?A.value=f:null),width:"50%","close-on-click-modal":!1,class:"tableman-export-dialog"},{header:e.withCtx(()=>[...t[6]||(t[6]=[e.createElementVNode("span",{class:"export-dialog-title"},"请选择需要导出的字段:",-1)])]),footer:e.withCtx(()=>[e.createVNode(r,{onClick:t[4]||(t[4]=f=>A.value=!1)},{default:e.withCtx(()=>[...t[8]||(t[8]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(r,{type:"primary",disabled:!e.unref(L).length,loading:e.unref(pe),onClick:e.unref(ye)},{default:e.withCtx(()=>[...t[9]||(t[9]=[e.createTextVNode(" 确定 ",-1)])]),_:1},8,["disabled","loading","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",We,[e.createElementVNode("div",$e,[e.createVNode(a,{"model-value":e.unref(fe),indeterminate:e.unref(he),onChange:e.unref(ve)},{default:e.withCtx(()=>[...t[7]||(t[7]=[e.createTextVNode(" 字段名称 ",-1)])]),_:1},8,["model-value","indeterminate","onChange"])]),e.createVNode(c,{modelValue:e.unref(L),"onUpdate:modelValue":t[3]||(t[3]=f=>e.isRef(L)?L.value=f:null),class:"export-field-group"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(me),f=>(e.openBlock(),e.createElementBlock("div",{key:f.prop,class:"export-field-item"},[e.createVNode(a,{label:f.prop},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"export-field-label",title:f.label},e.toDisplayString(f.label),9,Ye)]),_:2},1032,["label"])]))),128))]),_:1},8,["modelValue"])])]),_:1},8,["modelValue"])],6)),[[z,M.value]])}}})),nt=Ae._export_sfc(ot,[["__scopeId","data-v-9ee62b20"]]);exports.default=nt;
|
|
1
|
+
"use strict";var ke=Object.defineProperty,De=Object.defineProperties;var Oe=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var Ve=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable;var ee=(l,n,i)=>n in l?ke(l,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):l[n]=i,D=(l,n)=>{for(var i in n||(n={}))Ve.call(n,i)&&ee(l,i,n[i]);if(Z)for(var i of Z(n))Be.call(n,i)&&ee(l,i,n[i]);return l},P=(l,n)=>De(l,Oe(n));var S=(l,n,i)=>new Promise((d,u)=>{var h=s=>{try{b(i.next(s))}catch(p){u(p)}},v=s=>{try{b(i.throw(s))}catch(p){u(p)}},b=s=>s.done?d(s.value):Promise.resolve(s.value).then(h,v);b((i=i.apply(l,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=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/dialog/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");const e=require("vue"),Ee=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Ne=require("./BaseComponent-DKuQG62G.cjs"),Ae=require("./index-DoEyCVDU.cjs"),Le=require("./titleStyle-NSnz6cUg.cjs"),ze=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),O=require("./useTablemanListActions-B9SrCZRt.cjs"),T=require("./useTablemanApi-Big2Hfsi.cjs"),te=require("./ele-lst-icon-CrxnHZ-A.cjs"),Fe=new Set(["table_id","table_name","table_alias","add","add_linked_layer_id","export","batchDelete","view","view_linked_layer_id","edit","edit_linked_layer_id","delete"]);function oe(l){var d;const n=(d=l.options)==null?void 0:d.columns,i=n&&typeof n=="object"&&"value"in n?n.value:n;return Array.isArray(i)?i:[]}function Me(l){return oe(l).length>0}function Ie(l,n){const i=new Map(oe(n).map((d,u)=>[d.key,u]));return[...l].sort((d,u)=>{const h=i.get(d.alias),v=i.get(u.alias);return h!==void 0&&v!==void 0?h-v:h!==void 0?-1:v!==void 0?1:(Number(d.listorder)||0)-(Number(u.listorder)||0)})}function Re(l,n){if(n.has(l))return!0;if(l.endsWith("_visible")){const i=l.slice(0,-8);return n.has(i)}return!1}function qe(l,n){const i=new Set(n.map(s=>s.alias)),d={},u={},h={};for(const[s,p]of Object.entries(l))Fe.has(s)?d[s]=p:Re(s,i)?u[s]=p:h[s]=p;const v=D({},d);for(const s of n){const p=`${s.alias}_visible`;p in u&&(v[p]=u[p]),s.alias in u&&(v[s.alias]=u[s.alias])}for(const[s,p]of Object.entries(u))s in v||(v[s]=p);const b=D(D({},v),h);for(const s of Object.keys(l))delete l[s];Object.assign(l,b)}function Pe(l,n){var v;(v=l.data)!=null&&v.length||(l.data=[{}]);const i=l.data[0],d=n.map(b=>{const s=T.toFieldMeta(b),p=`${b.alias}_visible`;return i[p]===void 0&&(i[p]=!0),(i[b.alias]===void 0||i[b.alias]==="")&&(i[b.alias]=b.name),{key:b.alias,label:b.name,visible:i[p]!==!1,minWidth:120,searchType:s.searchType,componentType:s.componentType}});qe(i,n);const u=l.options||{},h=u.columns;h&&typeof h=="object"&&"value"in h?h.value=d:u.columns=d,l.options=u}const je={class:"mix-body"},He={class:"top-bar"},Ke={class:"table-panel"},Ue={class:"footer-panel"},We={class:"export-field-list"},$e={class:"export-field-row export-field-header"},Ye=["title"],Ge={DEFAULT_ICON:te.DEFAULT_ICON,ACTIVE_ICON:te.ACTIVE_ICON,NAME_CN:"数据表列表",NAME_EN:"tablemanList",ORDER:1,PLATFORM:["pc","screen"]},Je={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:!0,allowBatchOperation:{value:!0,type:"checkbox",label:"component.options.tablemanAllowBatchOperation"},allowColumnDisplay:{value:!0,type:"checkbox",label:"component.options.tablemanAllowColumnDisplay"},cacheColumnOperations:{value:!1,type:"checkbox",label:"component.options.tablemanCacheColumnOperations"},listHeaderSize:{value:14,type:"number",label:"component.options.listHeaderSize",min:10,max:32},listContentSize:{value:14,type:"number",label:"component.options.listContentSize",min:10,max:32},columns:[]},ne=[{table_id:"",table_name:"",table_alias:"",add:!1,add_linked_layer_id:"",export:!1,batchDelete:!1,view:!0,view_linked_layer_id:"",edit:!0,edit_linked_layer_id:"",delete:!0}],Qe=[{key:"add",label:"添加",type:"checkbox"},{key:"export",label:"导出",type:"checkbox"},{key:"batchDelete",label:"批量删除",type:"checkbox"}],Xe=[{key:"view",label:"查看",type:"checkbox"},{key:"edit",label:"编辑",type:"checkbox"},{key:"delete",label:"删除",type:"checkbox"}],Ze={isAddCondition:!1,conditions:[],conditionFilterFields:[]},et={w:75,h:30},tt={DEFAULT:Ge,OPTIONS:Je,DATA:ne,COMMANDS:Qe,OPERATIONS:Xe,SOURCE:[],COMMON:Ze,INIT_GRID:et},ot=e.defineComponent(P(D({},tt),{__name:"tablemanList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{}},setup(l){const n=l;class i extends Ne.BaseComponent{getDataBool(t,a){var r,y;const c=(y=(r=this.props.conf)==null?void 0:r.data)==null?void 0:y[0];return c&&Object.prototype.hasOwnProperty.call(c,t)&&c[t]!==void 0?!!c[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),export:this.getDataBool("export",!1),batchDelete:this.getDataBool("batchDelete",!1),view:this.getDataBool("view",!0),edit:this.getDataBool("edit",!0),delete:this.getDataBool("delete",!0),listHeaderSize:this.getOptionValue("listHeaderSize",14),listContentSize:this.getOptionValue("listContentSize",14)}}needsHistoryData(){return!1}migrateCommandOperationKeys(t){const a={showAddBtn:"add",showExportBtn:"export",showBatchDeleteBtn:"batchDelete",showViewBtn:"view",showEditBtn:"edit",showDeleteBtn:"delete"};for(const[c,r]of Object.entries(a))t[c]!==void 0&&t[r]===void 0&&(t[r]=t[c])}init(){return S(this,null,function*(){var c;this.applyTheme(),(c=this.props.conf.data)!=null&&c.length||(this.props.conf.data=JSON.parse(JSON.stringify(ne)));const t=this.props.conf.data[0];this.migrateCommandOperationKeys(t);const a={add:!0,export:!1,batchDelete:!1,view:!0,edit:!0,delete:!0};for(const[r,y]of Object.entries(a))t[r]===void 0&&(t[r]=y);this.Style.value=this.extractStyles()})}}function d(){var o;return(o=n.conf.data)==null?void 0:o[0]}function u(){var o,t;return String((t=(o=d())==null?void 0:o.table_id)!=null?t:"")}function h(){var t,a;const o=d();return String((a=(t=o==null?void 0:o.table_name)!=null?t:o==null?void 0:o.table_alias)!=null?a:"")}const v=new i(n,"tablemanList");v.setupLifecycle();const b=v.getStyle(),{mixiotPanelClass:s,mixiotPanelRootStyle:p}=Ee.useMixiotPanelSurface(b),ae=e.computed(()=>Le.generateTitleStyle(n.conf.options)),N=e.ref([]),F=e.computed(()=>{var r,y,z,f;const o=(y=(r=n.conf)==null?void 0:r.options)==null?void 0:y.columns,t=o&&typeof o=="object"&&"value"in o?o.value:o||[],a=((f=(z=n.conf)==null?void 0:z.data)==null?void 0:f[0])||{},c=new Map(N.value.map(w=>[w.alias,w]));return(Array.isArray(t)?t:[]).filter(w=>{const B=w.key;return B?a[`${B}_visible`]!==!1&&w.visible!==!1:!1}).map(w=>{var W,$,Y,G,J,Q,X;const B=c.get(w.key),m=B?T.toFieldMeta(B):null,q=a[w.key];return{prop:w.key,label:q!==void 0&&q!==""?String(q):w.label||w.key,width:w.width,minWidth:(W=w.minWidth)!=null?W:120,visible:!0,componentType:($=m==null?void 0:m.componentType)!=null?$:"",displayAsTags:(Y=m==null?void 0:m.displayAsTags)!=null?Y:!1,isMultiTags:(G=m==null?void 0:m.isMultiTags)!=null?G:!1,searchType:(J=m==null?void 0:m.searchType)!=null?J:"input",selectOptions:(Q=m==null?void 0:m.selectOptions)!=null?Q:[],dateFormat:(X=m==null?void 0:m.dateFormat)!=null?X:"YYYY-MM-DD HH:mm:ss"}})}),V=e.computed(()=>F.value.map(o=>P(D({},o),{key:o.prop}))),x=e.ref({field:"",value:""}),g=e.reactive({current:1,pageSize:20,total:0}),k=e.ref([]),M=e.ref(!1);function I(o,t){var c,r;const a=(r=(c=n.conf)==null?void 0:c.options)==null?void 0:r[o];return a&&typeof a=="object"&&a!==null&&"value"in a?!!a.value:a!==void 0?!!a:t}function j(o,t){var c,r;const a=(r=(c=n.conf)==null?void 0:c.options)==null?void 0:r[o];if(a&&typeof a=="object"&&a!==null&&"value"in a){const y=a.value;return y!=null?y:t}return a!=null?a:t}const le=e.computed(()=>({headerSize:Number(j("listHeaderSize",14))||14,contentSize:Number(j("listContentSize",14))||14})),R=e.computed(()=>I("allowBatchOperation",!0)),ie=e.computed(()=>I("allowColumnDisplay",!0)),H=e.computed(()=>I("cacheColumnOperations",!1)),se=e.computed(()=>{var t;if(!H.value)return"";const o=(t=n.conf)==null?void 0:t.id;return o?String(o):""}),_=e.computed(()=>O.pickTablemanCmdOps(d())),re=e.computed(()=>_.value.view||_.value.edit||_.value.delete);function ce(){const o={page_index:g.current,page_size:g.pageSize},t=[],{field:a,value:c}=x.value,r=V.value.find(y=>y.key===a);return r&&t.push(...T.buildFieldWhereAnd(r.key,r.searchType,c)),ze.appendCommonDesignerWhereAnd(n.conf.common,t),t.length&&(o.where_and=t),o}function C(){return S(this,null,function*(){const o=h();if(!o){k.value=[],g.total=0;return}M.value=!0;try{const t=yield T.fetchDataList(o,ce());k.value=Array.isArray(t==null?void 0:t.data)?[...t.data]:[];const a=t==null?void 0:t.total_records;g.total=typeof a=="number"?a:k.value.length}catch(t){k.value=[],g.total=0}finally{M.value=!1}})}function de(){g.current=1,C()}function ue(){var o,t,a;x.value={field:(t=(o=V.value[0])==null?void 0:o.key)!=null?t:"",value:((a=V.value[0])==null?void 0:a.searchType)==="time"?null:""},g.current=1,C()}const{exportDialogVisible:A,exportSelectedKeys:L,exportLoading:pe,exportFieldOptions:me,exportCheckAll:fe,exportIndeterminate:he,handleExportCheckAll:ve,handleExport:be,confirmExport:ye,onSelectionChange:ge,openAdd:we,openEdit:_e,handleView:xe,handleDelete:Ce,handleBatchDelete:Se}=O.useTablemanListActions({mode:n.mode,dataRow:d,rowTableName:h,columnsConfig:F,allowBatchOperation:R,loadData:C});e.watch(V,o=>{if(!o.length){x.value={field:"",value:""};return}o.some(t=>t.key===x.value.field)||(x.value={field:o[0].key,value:o[0].searchType==="time"?null:""})},{immediate:!0}),e.watch(()=>u(),o=>S(null,null,function*(){if(!o){N.value=[],k.value=[],g.total=0;return}try{const t=yield T.fetchFieldList(o);N.value=t}catch(t){console.warn("[tablemanList] 字段列表加载失败",t)}yield U(),g.current=1,C()}));function K(){C()}function U(){return S(this,null,function*(){var t;const o=u();if(!(!o||h()))try{const c=(yield T.fetchTableList()).find(y=>y.uid===o);if(!c||!d())return;const r=String((t=c.alias)!=null?t:"");d().table_name=r,d().table_alias=r}catch(a){}})}function Te(){return S(this,null,function*(){const o=u();if(o){yield U();try{const t=yield T.fetchFieldList(o);if(N.value=t,Me(n.conf))return;const a=Ie(t,n.conf);Pe(n.conf,a)}catch(t){console.warn("[tablemanList] 加载字段失败",t)}}})}return e.onMounted(()=>S(null,null,function*(){yield Te(),C(),window.addEventListener("tableman-data-changed",K)})),e.onBeforeUnmount(()=>{window.removeEventListener("tableman-data-changed",K)}),(o,t)=>{const a=E.ElCheckbox,c=E.ElCheckboxGroup,r=E.ElButton,y=E.ElDialog,z=E.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tableman-list mix-component",e.unref(s)]),style:e.normalizeStyle(e.unref(p))},[e.unref(b).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(ae.value)},e.toDisplayString(l.conf.caption||l.conf.name),5)),e.createElementVNode("div",je,[e.createElementVNode("div",He,[e.createVNode(O.TablemanSearchBar,{fields:V.value,modelValue:x.value,"onUpdate:modelValue":t[0]||(t[0]=f=>x.value=f),onSearch:de,onReset:ue},null,8,["fields","modelValue"]),e.createVNode(O.TablemanToolbar,{"show-add":_.value.add,"show-export":_.value.export,"show-batch-delete":R.value&&_.value.batchDelete,onAdd:e.unref(we),onExport:e.unref(be),onBatchDelete:e.unref(Se)},null,8,["show-add","show-export","show-batch-delete","onAdd","onExport","onBatchDelete"])]),e.createElementVNode("div",Ke,[e.createVNode(O.TablemanDataTable,{rows:k.value,columns:F.value,"show-selection":R.value,"show-actions":re.value,"show-view":_.value.view,"show-edit":_.value.edit,"show-delete":_.value.delete,"field-filter":ie.value,"cache-column-state":H.value,"column-storage-name":se.value,"table-style":le.value,onSelectionChange:e.unref(ge),onView:e.unref(xe),onEdit:e.unref(_e),onDelete:e.unref(Ce)},null,8,["rows","columns","show-selection","show-actions","show-view","show-edit","show-delete","field-filter","cache-column-state","column-storage-name","table-style","onSelectionChange","onView","onEdit","onDelete"])]),e.createElementVNode("div",Ue,[e.createVNode(O.TablemanPagination,{current:g.current,"onUpdate:current":t[1]||(t[1]=f=>g.current=f),"page-size":g.pageSize,"onUpdate:pageSize":t[2]||(t[2]=f=>g.pageSize=f),total:g.total,onPageChange:C},null,8,["current","page-size","total"])])]),e.renderSlot(o.$slots,"default",{},void 0,!0),e.createVNode(y,{modelValue:e.unref(A),"onUpdate:modelValue":t[5]||(t[5]=f=>e.isRef(A)?A.value=f:null),width:"50%","close-on-click-modal":!1,class:"tableman-export-dialog"},{header:e.withCtx(()=>[...t[6]||(t[6]=[e.createElementVNode("span",{class:"export-dialog-title"},"请选择需要导出的字段:",-1)])]),footer:e.withCtx(()=>[e.createVNode(r,{onClick:t[4]||(t[4]=f=>A.value=!1)},{default:e.withCtx(()=>[...t[8]||(t[8]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(r,{type:"primary",disabled:!e.unref(L).length,loading:e.unref(pe),onClick:e.unref(ye)},{default:e.withCtx(()=>[...t[9]||(t[9]=[e.createTextVNode(" 确定 ",-1)])]),_:1},8,["disabled","loading","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",We,[e.createElementVNode("div",$e,[e.createVNode(a,{"model-value":e.unref(fe),indeterminate:e.unref(he),onChange:e.unref(ve)},{default:e.withCtx(()=>[...t[7]||(t[7]=[e.createTextVNode(" 字段名称 ",-1)])]),_:1},8,["model-value","indeterminate","onChange"])]),e.createVNode(c,{modelValue:e.unref(L),"onUpdate:modelValue":t[3]||(t[3]=f=>e.isRef(L)?L.value=f:null),class:"export-field-group"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(me),f=>(e.openBlock(),e.createElementBlock("div",{key:f.prop,class:"export-field-item"},[e.createVNode(a,{label:f.prop},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"export-field-label",title:f.label},e.toDisplayString(f.label),9,Ye)]),_:2},1032,["label"])]))),128))]),_:1},8,["modelValue"])])]),_:1},8,["modelValue"])],6)),[[z,M.value]])}}})),nt=Ae._export_sfc(ot,[["__scopeId","data-v-9ee62b20"]]);exports.default=nt;
|
|
@@ -35,12 +35,12 @@ import "element-plus/es/components/checkbox-group/style/css";
|
|
|
35
35
|
import "element-plus/es/components/checkbox/style/css";
|
|
36
36
|
import { defineComponent as Ye, computed as _, ref as M, reactive as $e, watch as ie, onMounted as Ge, onBeforeUnmount as Je, withDirectives as qe, openBlock as R, createElementBlock as I, normalizeStyle as se, unref as m, normalizeClass as Qe, toDisplayString as re, createCommentVNode as Xe, createElementVNode as C, createVNode as x, renderSlot as Ze, isRef as ce, withCtx as T, createTextVNode as Y, Fragment as et, renderList as tt } from "vue";
|
|
37
37
|
import { u as at } from "./useMixiotPanelSurface-DRl3cZvc.js";
|
|
38
|
-
import { B as ot } from "./BaseComponent-
|
|
39
|
-
import { _ as nt } from "./index-
|
|
38
|
+
import { B as ot } from "./BaseComponent-Dn65PXTp.js";
|
|
39
|
+
import { _ as nt } from "./index-CPTJIw32.js";
|
|
40
40
|
import { g as lt } from "./titleStyle-BT5GlpAb.js";
|
|
41
41
|
import { a as it } from "./appendCommonDesignerWhereAnd-DwefWNOa.js";
|
|
42
|
-
import { p as st, u as rt, T as ct, a as dt, b as ut, c as pt } from "./useTablemanListActions-
|
|
43
|
-
import { t as ue, f as de, c as mt, e as ft, g as ht } from "./useTablemanApi-
|
|
42
|
+
import { p as st, u as rt, T as ct, a as dt, b as ut, c as pt } from "./useTablemanListActions-DVQL1pwu.js";
|
|
43
|
+
import { t as ue, f as de, c as mt, e as ft, g as ht } from "./useTablemanApi-CJh5jpVJ.js";
|
|
44
44
|
import { A as vt, D as bt } from "./ele-lst-icon-CKpeRKmk.js";
|
|
45
45
|
const yt = /* @__PURE__ */ new Set([
|
|
46
46
|
"table_id",
|
|
@@ -46,13 +46,13 @@ import { defineComponent as ue, computed as W, reactive as de, ref as w, h as He
|
|
|
46
46
|
import { ElMessage as _, ElMessageBox as Ye } from "element-plus";
|
|
47
47
|
import { Search as Ze } from "@element-plus/icons-vue";
|
|
48
48
|
import { u as et } from "./useMixiotPanelSurface-DRl3cZvc.js";
|
|
49
|
-
import { B as tt } from "./BaseComponent-
|
|
50
|
-
import { a as U, _ as lt } from "./index-
|
|
49
|
+
import { B as tt } from "./BaseComponent-Dn65PXTp.js";
|
|
50
|
+
import { a as U, _ as lt } from "./index-CPTJIw32.js";
|
|
51
51
|
import { g as at } from "./titleStyle-BT5GlpAb.js";
|
|
52
52
|
import { a as ot } from "./appendCommonDesignerWhereAnd-DwefWNOa.js";
|
|
53
53
|
import { c as it, b as nt, s as ut } from "./syncMixiotListConfig-BJm-8v-B.js";
|
|
54
|
-
import { A as dt } from "./AgGridTable-
|
|
55
|
-
import { A as rt } from "./AgActionsRenderer-
|
|
54
|
+
import { A as dt } from "./AgGridTable-BQ8M3fDj.js";
|
|
55
|
+
import { A as rt } from "./AgActionsRenderer-3HKXKUJY.js";
|
|
56
56
|
import { A as st, D as mt } from "./ele-lst-icon-CKpeRKmk.js";
|
|
57
57
|
const pt = { class: "mix-body" }, ft = { class: "top-bar" }, ct = { class: "view-body" }, gt = {
|
|
58
58
|
DEFAULT_ICON: mt,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Ve=Object.defineProperty,ge=Object.defineProperties;var xe=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var we=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var Z=(c,r,s)=>r in c?Ve(c,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):c[r]=s,A=(c,r)=>{for(var s in r||(r={}))we.call(r,s)&&Z(c,s,r[s]);if(Y)for(var s of Y(r))Ne.call(r,s)&&Z(c,s,r[s]);return c},H=(c,r)=>ge(c,xe(r));var y=(c,r,s)=>new Promise((q,x)=>{var O=h=>{try{T(s.next(h))}catch(S){x(S)}},R=h=>{try{T(s.throw(h))}catch(S){x(S)}},T=h=>h.done?q(h.value):Promise.resolve(h.value).then(O,R);T((s=s.apply(c,r)).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");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/input-number/style/css");require("element-plus/es/components/row/style/css");require("element-plus/es/components/col/style/css");require("element-plus/es/components/form-item/style/css");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("element-plus"),he=require("@element-plus/icons-vue"),Ce=require("./useMixiotPanelSurface-CAZgexY5.cjs"),ve=require("./BaseComponent-DdC8fmD6.cjs"),_=require("./index-DFbNT6Tf.cjs"),be=require("./titleStyle-NSnz6cUg.cjs"),ye=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),G=require("./syncMixiotListConfig-Elkp8zAs.cjs"),_e=require("./AgGridTable-CE6GaYj4.cjs"),Te=require("./AgActionsRenderer-Dlr21zZJ.cjs"),ee=require("./ele-lst-icon-CrxnHZ-A.cjs"),Se={class:"mix-body"},Ee={class:"top-bar"},De={class:"view-body"},Ae={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"Tableman数据表",NAME_EN:"tablemanTableList",ORDER:8,PLATFORM:["pc","screen"]},qe={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:[]},te=[{add:!0,view:!0,edit:!0,delete:!0}],Ue=[{key:"add",label:"添加数据表",type:"checkbox"}],Be=[{key:"view",label:"查看",type:"checkbox"},{key:"edit",label:"编辑",type:"checkbox"},{key:"delete",label:"删除",type:"checkbox"}],ke=[],Me={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"name",label:"setting.mixiotListFilter.tableName"},{value:"uid",label:"setting.mixiotListFilter.tableUid"},{value:"alias",label:"setting.mixiotListFilter.tableAlias"},{value:"tags",label:"setting.mixiotListFilter.tableTags"}]},Le={DEFAULT:Ae,OPTIONS:qe,DATA:te,COMMANDS:Ue,OPERATIONS:Be,SOURCE:ke,COMMON:Me},Oe=e.defineComponent(H(A({},Le),{__name:"tablemanTableList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""},tableUidList:{default:()=>[]}},setup(c){const r=c;class s extends ve.BaseComponent{getDataBool(t,i){var V,d;const n=(d=(V=this.props.conf)==null?void 0:V.data)==null?void 0:d[0];return n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0?!!n[t]:this.getOptionValue(t,i)}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),delete:this.getDataBool("delete",!0)}}init(){return y(this,null,function*(){this.applyTheme(),G.setupMixiotListConf(this.props.conf,{add:!0,view:!0,edit:!0,delete:!0},te),this.Style.value=this.extractStyles()})}}const q=new s(r,"tablemanTableList");q.setupLifecycle();const x=q.getStyle(),O=e.computed(()=>G.computeMixiotActionColumnMinWidth(x.value,{view:60,edit:60,delete:60})),{mixiotPanelClass:R,mixiotPanelRootStyle:T}=Ce.useMixiotPanelSurface(x),h=e.computed(()=>be.generateTitleStyle(r.conf.options)),S=e.computed(()=>G.buildMixiotColumnsConfig(r.conf)),C=e.reactive({current:1,pageSize:10,total:0}),U=e.ref(""),P=e.ref("name"),F=e.ref([]),I=e.ref(!1);function le(){const o={page_index:C.current,page_size:C.pageSize},t=[],i=U.value.trim();return i&&t.push([P.value,"like",`%${i}%`]),ye.appendCommonDesignerWhereAnd(r.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function v(){return y(this,null,function*(){var o,t;I.value=!0;try{const i=yield _.api.http("table_list",le(),!0),n=(o=i==null?void 0:i.result)!=null?o:i;let V=Array.isArray(n==null?void 0:n.data)?[...n.data]:[];if((t=r.tableUidList)!=null&&t.length){const f=new Set(r.tableUidList.map(String));V=V.filter(u=>f.has(String(u.uid)))}F.value=V;const d=n==null?void 0:n.total_records;C.total=typeof d=="number"?d:V.length,i&&i.code!==void 0&&i.code!==200&&console.warn("[tablemanTableList] 列表接口非成功",i.msg||i.info,i)}catch(i){console.error(i),F.value=[],C.total=0}finally{I.value=!1}})}function z(o){if(o==null)return"";if(Array.isArray(o))return o.map(String).join(", ");if(typeof o=="string"){try{const t=JSON.parse(o);if(Array.isArray(t))return t.map(String).join(", ")}catch(t){return o}return o}return String(o)}function ae(o){return o.split(",").map(t=>t.trim()).filter(Boolean)}const oe={TagsCellRenderer:e.defineComponent({name:"TagsCellRenderer",props:["params"],setup(o){return()=>{var n;const t=(n=o.params)==null?void 0:n.value,i=z(t);return e.h("span",i||"")}}}),AgActionsRenderer:Te.AgActionsRenderer},ie=e.computed(()=>{const o=S.value.filter(t=>t.visible).map(t=>({field:t.prop,headerName:t.label,width:t.width||t.minWidth||120,minWidth:t.minWidth||80,cellRenderer:t.prop==="tags"?"TagsCellRenderer":void 0}));return o.push({headerName:"操作",minWidth:O.value,pinned:"right",cellRenderer:"AgActionsRenderer",cellStyle:{cursor:"pointer"},cellRendererParams:{showView:x.value.view,showEdit:x.value.edit,showDelete:x.value.delete,onView:pe,onEdit:ue,onDelete:me}}),o});function ne(){v()}function J(){C.current=1,v()}function re(){U.value="",C.current=1,v()}e.watch(()=>{var o;return(o=r.tableUidList)==null?void 0:o.join(",")},()=>{C.current=1,v()});const E=e.ref(!1),D=e.ref(!1),b=e.ref(!1),a=e.reactive({uid:"",name:"",alias:"",description:"",listorder:10,uid_prefix:"TBT",uid_length:12,tagsText:""});function B(){a.uid="",a.name="",a.alias="",a.description="",a.listorder=10,a.uid_prefix="TBT",a.uid_length=12,a.tagsText=""}function W(o){var t,i,n,V,d,f,u;a.uid=String((t=o.uid)!=null?t:""),a.name=String((i=o.name)!=null?i:""),a.alias=String((n=o.alias)!=null?n:""),a.description=String((V=o.description)!=null?V:""),a.listorder=Number((d=o.listorder)!=null?d:10),a.uid_prefix=String((f=o.uid_prefix)!=null?f:"TBT"),a.uid_length=Number((u=o.uid_length)!=null?u:12),a.tagsText=z(o.tags)}function K(){return{name:a.name.trim(),alias:a.alias.trim(),description:a.description,listorder:a.listorder,uid_prefix:a.uid_prefix.trim(),uid_length:a.uid_length,tags:ae(a.tagsText),organization_id:"DEFAULT_ORG"}}function de(){B(),E.value=!0}function ue(o){return y(this,null,function*(){var t;B(),D.value=!0,b.value=!0;try{const i=yield _.api.http("table_item",{uid:o.uid},!0),n=(t=i==null?void 0:i.result)!=null?t:i;W(n&&typeof n=="object"?n:o)}catch(i){W(o),g.ElMessage.warning("拉取数据表详情失败,已使用列表行数据编辑")}finally{b.value=!1}})}function se(){return y(this,null,function*(){var o,t;if(!((o=a.name)!=null&&o.trim())||!((t=a.alias)!=null&&t.trim())){g.ElMessage.warning("请填写数据表名称与别名");return}b.value=!0;try{yield _.api.http("table_create",K(),!0),g.ElMessage.success("添加成功"),E.value=!1,yield v()}catch(i){g.ElMessage.error("添加失败")}finally{b.value=!1}})}function ce(){return y(this,null,function*(){var o,t;if(!((o=a.name)!=null&&o.trim())||!((t=a.alias)!=null&&t.trim())){g.ElMessage.warning("请填写数据表名称与别名");return}b.value=!0;try{yield _.api.http("table_update",H(A({},K()),{uid:a.uid}),!0),g.ElMessage.success("保存成功"),D.value=!1,yield v()}catch(i){g.ElMessage.error("保存失败")}finally{b.value=!1}})}const k=e.ref(!1),j=e.ref(!1),p=e.ref(null);function pe(o){return y(this,null,function*(){p.value=null,k.value=!0,j.value=!0;try{const t=yield _.api.http("table_item",{uid:o.uid},!0),i=t==null?void 0:t.result;i&&typeof i=="object"?p.value=i:(p.value=A({},o),g.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){p.value=A({},o),g.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{j.value=!1}})}function me(o){g.ElMessageBox.confirm(`确认删除数据表「${o.name||o.uid}」吗?`,"警告",{type:"warning"}).then(()=>y(null,null,function*(){try{yield _.api.http("table_delete",{uid:o.uid},!0),g.ElMessage.success("删除成功"),yield v()}catch(t){g.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{v()}),(o,t)=>{const i=m.ElOption,n=m.ElSelect,V=m.ElIcon,d=m.ElInput,f=m.ElButton,u=m.ElFormItem,w=m.ElCol,M=m.ElRow,L=m.ElInputNumber,Q=m.ElForm,$=m.ElDialog,N=m.ElDescriptionsItem,fe=m.ElDescriptions,X=m.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tableman-list mix-component",e.unref(R)]),style:e.normalizeStyle(e.unref(T))},[e.unref(x).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(h.value)},e.toDisplayString(c.conf.caption||c.conf.name),5)),e.createElementVNode("div",Se,[e.createElementVNode("div",Ee,[e.createVNode(n,{modelValue:P.value,"onUpdate:modelValue":t[0]||(t[0]=l=>P.value=l),class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(i,{label:"数据表名称",value:"name"}),e.createVNode(i,{label:"数据表编号",value:"uid"}),e.createVNode(i,{label:"数据表别名",value:"alias"}),e.createVNode(i,{label:"标签",value:"tags"})]),_:1},8,["modelValue"]),e.createVNode(d,{modelValue:U.value,"onUpdate:modelValue":t[1]||(t[1]=l=>U.value=l),placeholder:"搜索数据表",class:"toolbar-search",onKeyup:e.withKeys(J,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(V,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(he.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(f,{type:"primary",onClick:J},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(f,{onClick:re},{default:e.withCtx(()=>[...t[24]||(t[24]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(x).add?(e.openBlock(),e.createBlock(f,{key:0,type:"success",onClick:de},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("添加数据表",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.unref(_e.AgGridTable),{"column-defs":ie.value,"row-data":F.value,"show-pagination":!0,pager:C,"auto-fill-columns":!0,components:oe,onPageChange:ne},null,8,["column-defs","row-data","pager"])]),e.renderSlot(o.$slots,"default",{},void 0,!0),e.createVNode($,{modelValue:E.value,"onUpdate:modelValue":t[10]||(t[10]=l=>E.value=l),title:"添加数据表",width:"720px","destroy-on-close":"",onClosed:B},{footer:e.withCtx(()=>[e.createVNode(f,{onClick:t[9]||(t[9]=l=>E.value=!1)},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(f,{type:"primary",loading:b.value,onClick:se},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(Q,{model:a,"label-width":"120px"},{default:e.withCtx(()=>[e.createVNode(M,{gutter:12},{default:e.withCtx(()=>[e.createVNode(w,{span:12},{default:e.withCtx(()=>[e.createVNode(u,{label:"数据表名称",required:""},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.name,"onUpdate:modelValue":t[2]||(t[2]=l=>a.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(w,{span:12},{default:e.withCtx(()=>[e.createVNode(u,{label:"数据表别名",required:""},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.alias,"onUpdate:modelValue":t[3]||(t[3]=l=>a.alias=l),placeholder:"必填"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(M,{gutter:12},{default:e.withCtx(()=>[e.createVNode(w,{span:8},{default:e.withCtx(()=>[e.createVNode(u,{label:"排序"},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:a.listorder,"onUpdate:modelValue":t[4]||(t[4]=l=>a.listorder=l),min:0,"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(w,{span:8},{default:e.withCtx(()=>[e.createVNode(u,{label:"编号前缀"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.uid_prefix,"onUpdate:modelValue":t[5]||(t[5]=l=>a.uid_prefix=l)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(w,{span:8},{default:e.withCtx(()=>[e.createVNode(u,{label:"编号长度"},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:a.uid_length,"onUpdate:modelValue":t[6]||(t[6]=l=>a.uid_length=l),min:1,max:32,"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(u,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.tagsText,"onUpdate:modelValue":t[7]||(t[7]=l=>a.tagsText=l),placeholder:"多个标签用英文逗号分隔"},null,8,["modelValue"])]),_:1}),e.createVNode(u,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.description,"onUpdate:modelValue":t[8]||(t[8]=l=>a.description=l),type:"textarea",rows:4},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode($,{modelValue:D.value,"onUpdate:modelValue":t[20]||(t[20]=l=>D.value=l),title:"编辑数据表",width:"720px","destroy-on-close":"",onClosed:B},{footer:e.withCtx(()=>[e.createVNode(f,{onClick:t[19]||(t[19]=l=>D.value=!1)},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(f,{type:"primary",loading:b.value,onClick:ce},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(Q,{model:a,"label-width":"120px"},{default:e.withCtx(()=>[e.createVNode(u,{label:"数据表编号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.uid,"onUpdate:modelValue":t[11]||(t[11]=l=>a.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(M,{gutter:12},{default:e.withCtx(()=>[e.createVNode(w,{span:12},{default:e.withCtx(()=>[e.createVNode(u,{label:"数据表名称",required:""},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.name,"onUpdate:modelValue":t[12]||(t[12]=l=>a.name=l)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(w,{span:12},{default:e.withCtx(()=>[e.createVNode(u,{label:"数据表别名",required:""},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.alias,"onUpdate:modelValue":t[13]||(t[13]=l=>a.alias=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(M,{gutter:12},{default:e.withCtx(()=>[e.createVNode(w,{span:8},{default:e.withCtx(()=>[e.createVNode(u,{label:"排序"},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:a.listorder,"onUpdate:modelValue":t[14]||(t[14]=l=>a.listorder=l),min:0,"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(w,{span:8},{default:e.withCtx(()=>[e.createVNode(u,{label:"编号前缀"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.uid_prefix,"onUpdate:modelValue":t[15]||(t[15]=l=>a.uid_prefix=l)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(w,{span:8},{default:e.withCtx(()=>[e.createVNode(u,{label:"编号长度"},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:a.uid_length,"onUpdate:modelValue":t[16]||(t[16]=l=>a.uid_length=l),min:1,max:32,"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(u,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.tagsText,"onUpdate:modelValue":t[17]||(t[17]=l=>a.tagsText=l),placeholder:"多个标签用英文逗号分隔"},null,8,["modelValue"])]),_:1}),e.createVNode(u,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.description,"onUpdate:modelValue":t[18]||(t[18]=l=>a.description=l),type:"textarea",rows:4},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode($,{modelValue:k.value,"onUpdate:modelValue":t[22]||(t[22]=l=>k.value=l),title:"数据表详情",width:"720px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(f,{type:"primary",onClick:t[21]||(t[21]=l=>k.value=!1)},{default:e.withCtx(()=>[...t[30]||(t[30]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",De,[p.value?(e.openBlock(),e.createBlock(fe,{key:0,column:2,border:""},{default:e.withCtx(()=>[e.createVNode(N,{label:"数据表编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(N,{label:"数据表名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(N,{label:"数据表别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(N,{label:"排序"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.listorder)!=null?l:""),1)]}),_:1}),e.createVNode(N,{label:"编号前缀"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.uid_prefix)!=null?l:""),1)]}),_:1}),e.createVNode(N,{label:"编号长度"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.uid_length)!=null?l:""),1)]}),_:1}),e.createVNode(N,{label:"标签",span:2},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(z(p.value.tags)),1)]),_:1}),e.createVNode(N,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(N,{label:"更新时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(N,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.description)!=null?l:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)])),[[X,j.value]])]),_:1},8,["modelValue"])],6)),[[X,I.value]])}}})),Re=_._export_sfc(Oe,[["__scopeId","data-v-0efe77ac"]]);exports.default=Re;
|
|
1
|
+
"use strict";var Ve=Object.defineProperty,ge=Object.defineProperties;var xe=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var we=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var Z=(c,r,s)=>r in c?Ve(c,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):c[r]=s,A=(c,r)=>{for(var s in r||(r={}))we.call(r,s)&&Z(c,s,r[s]);if(Y)for(var s of Y(r))Ne.call(r,s)&&Z(c,s,r[s]);return c},H=(c,r)=>ge(c,xe(r));var y=(c,r,s)=>new Promise((q,x)=>{var O=h=>{try{T(s.next(h))}catch(S){x(S)}},R=h=>{try{T(s.throw(h))}catch(S){x(S)}},T=h=>h.done?q(h.value):Promise.resolve(h.value).then(O,R);T((s=s.apply(c,r)).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");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/input-number/style/css");require("element-plus/es/components/row/style/css");require("element-plus/es/components/col/style/css");require("element-plus/es/components/form-item/style/css");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("element-plus"),he=require("@element-plus/icons-vue"),Ce=require("./useMixiotPanelSurface-CAZgexY5.cjs"),ve=require("./BaseComponent-DKuQG62G.cjs"),_=require("./index-DoEyCVDU.cjs"),be=require("./titleStyle-NSnz6cUg.cjs"),ye=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),G=require("./syncMixiotListConfig-Elkp8zAs.cjs"),_e=require("./AgGridTable-BQvI6jpO.cjs"),Te=require("./AgActionsRenderer-DnPvuT_-.cjs"),ee=require("./ele-lst-icon-CrxnHZ-A.cjs"),Se={class:"mix-body"},Ee={class:"top-bar"},De={class:"view-body"},Ae={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"Tableman数据表",NAME_EN:"tablemanTableList",ORDER:8,PLATFORM:["pc","screen"]},qe={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:[]},te=[{add:!0,view:!0,edit:!0,delete:!0}],Ue=[{key:"add",label:"添加数据表",type:"checkbox"}],Be=[{key:"view",label:"查看",type:"checkbox"},{key:"edit",label:"编辑",type:"checkbox"},{key:"delete",label:"删除",type:"checkbox"}],ke=[],Me={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"name",label:"setting.mixiotListFilter.tableName"},{value:"uid",label:"setting.mixiotListFilter.tableUid"},{value:"alias",label:"setting.mixiotListFilter.tableAlias"},{value:"tags",label:"setting.mixiotListFilter.tableTags"}]},Le={DEFAULT:Ae,OPTIONS:qe,DATA:te,COMMANDS:Ue,OPERATIONS:Be,SOURCE:ke,COMMON:Me},Oe=e.defineComponent(H(A({},Le),{__name:"tablemanTableList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""},tableUidList:{default:()=>[]}},setup(c){const r=c;class s extends ve.BaseComponent{getDataBool(t,i){var V,d;const n=(d=(V=this.props.conf)==null?void 0:V.data)==null?void 0:d[0];return n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0?!!n[t]:this.getOptionValue(t,i)}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),delete:this.getDataBool("delete",!0)}}init(){return y(this,null,function*(){this.applyTheme(),G.setupMixiotListConf(this.props.conf,{add:!0,view:!0,edit:!0,delete:!0},te),this.Style.value=this.extractStyles()})}}const q=new s(r,"tablemanTableList");q.setupLifecycle();const x=q.getStyle(),O=e.computed(()=>G.computeMixiotActionColumnMinWidth(x.value,{view:60,edit:60,delete:60})),{mixiotPanelClass:R,mixiotPanelRootStyle:T}=Ce.useMixiotPanelSurface(x),h=e.computed(()=>be.generateTitleStyle(r.conf.options)),S=e.computed(()=>G.buildMixiotColumnsConfig(r.conf)),C=e.reactive({current:1,pageSize:10,total:0}),U=e.ref(""),P=e.ref("name"),F=e.ref([]),I=e.ref(!1);function le(){const o={page_index:C.current,page_size:C.pageSize},t=[],i=U.value.trim();return i&&t.push([P.value,"like",`%${i}%`]),ye.appendCommonDesignerWhereAnd(r.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function v(){return y(this,null,function*(){var o,t;I.value=!0;try{const i=yield _.api.http("table_list",le(),!0),n=(o=i==null?void 0:i.result)!=null?o:i;let V=Array.isArray(n==null?void 0:n.data)?[...n.data]:[];if((t=r.tableUidList)!=null&&t.length){const f=new Set(r.tableUidList.map(String));V=V.filter(u=>f.has(String(u.uid)))}F.value=V;const d=n==null?void 0:n.total_records;C.total=typeof d=="number"?d:V.length,i&&i.code!==void 0&&i.code!==200&&console.warn("[tablemanTableList] 列表接口非成功",i.msg||i.info,i)}catch(i){console.error(i),F.value=[],C.total=0}finally{I.value=!1}})}function z(o){if(o==null)return"";if(Array.isArray(o))return o.map(String).join(", ");if(typeof o=="string"){try{const t=JSON.parse(o);if(Array.isArray(t))return t.map(String).join(", ")}catch(t){return o}return o}return String(o)}function ae(o){return o.split(",").map(t=>t.trim()).filter(Boolean)}const oe={TagsCellRenderer:e.defineComponent({name:"TagsCellRenderer",props:["params"],setup(o){return()=>{var n;const t=(n=o.params)==null?void 0:n.value,i=z(t);return e.h("span",i||"")}}}),AgActionsRenderer:Te.AgActionsRenderer},ie=e.computed(()=>{const o=S.value.filter(t=>t.visible).map(t=>({field:t.prop,headerName:t.label,width:t.width||t.minWidth||120,minWidth:t.minWidth||80,cellRenderer:t.prop==="tags"?"TagsCellRenderer":void 0}));return o.push({headerName:"操作",minWidth:O.value,pinned:"right",cellRenderer:"AgActionsRenderer",cellStyle:{cursor:"pointer"},cellRendererParams:{showView:x.value.view,showEdit:x.value.edit,showDelete:x.value.delete,onView:pe,onEdit:ue,onDelete:me}}),o});function ne(){v()}function J(){C.current=1,v()}function re(){U.value="",C.current=1,v()}e.watch(()=>{var o;return(o=r.tableUidList)==null?void 0:o.join(",")},()=>{C.current=1,v()});const E=e.ref(!1),D=e.ref(!1),b=e.ref(!1),a=e.reactive({uid:"",name:"",alias:"",description:"",listorder:10,uid_prefix:"TBT",uid_length:12,tagsText:""});function B(){a.uid="",a.name="",a.alias="",a.description="",a.listorder=10,a.uid_prefix="TBT",a.uid_length=12,a.tagsText=""}function W(o){var t,i,n,V,d,f,u;a.uid=String((t=o.uid)!=null?t:""),a.name=String((i=o.name)!=null?i:""),a.alias=String((n=o.alias)!=null?n:""),a.description=String((V=o.description)!=null?V:""),a.listorder=Number((d=o.listorder)!=null?d:10),a.uid_prefix=String((f=o.uid_prefix)!=null?f:"TBT"),a.uid_length=Number((u=o.uid_length)!=null?u:12),a.tagsText=z(o.tags)}function K(){return{name:a.name.trim(),alias:a.alias.trim(),description:a.description,listorder:a.listorder,uid_prefix:a.uid_prefix.trim(),uid_length:a.uid_length,tags:ae(a.tagsText),organization_id:"DEFAULT_ORG"}}function de(){B(),E.value=!0}function ue(o){return y(this,null,function*(){var t;B(),D.value=!0,b.value=!0;try{const i=yield _.api.http("table_item",{uid:o.uid},!0),n=(t=i==null?void 0:i.result)!=null?t:i;W(n&&typeof n=="object"?n:o)}catch(i){W(o),g.ElMessage.warning("拉取数据表详情失败,已使用列表行数据编辑")}finally{b.value=!1}})}function se(){return y(this,null,function*(){var o,t;if(!((o=a.name)!=null&&o.trim())||!((t=a.alias)!=null&&t.trim())){g.ElMessage.warning("请填写数据表名称与别名");return}b.value=!0;try{yield _.api.http("table_create",K(),!0),g.ElMessage.success("添加成功"),E.value=!1,yield v()}catch(i){g.ElMessage.error("添加失败")}finally{b.value=!1}})}function ce(){return y(this,null,function*(){var o,t;if(!((o=a.name)!=null&&o.trim())||!((t=a.alias)!=null&&t.trim())){g.ElMessage.warning("请填写数据表名称与别名");return}b.value=!0;try{yield _.api.http("table_update",H(A({},K()),{uid:a.uid}),!0),g.ElMessage.success("保存成功"),D.value=!1,yield v()}catch(i){g.ElMessage.error("保存失败")}finally{b.value=!1}})}const k=e.ref(!1),j=e.ref(!1),p=e.ref(null);function pe(o){return y(this,null,function*(){p.value=null,k.value=!0,j.value=!0;try{const t=yield _.api.http("table_item",{uid:o.uid},!0),i=t==null?void 0:t.result;i&&typeof i=="object"?p.value=i:(p.value=A({},o),g.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){p.value=A({},o),g.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{j.value=!1}})}function me(o){g.ElMessageBox.confirm(`确认删除数据表「${o.name||o.uid}」吗?`,"警告",{type:"warning"}).then(()=>y(null,null,function*(){try{yield _.api.http("table_delete",{uid:o.uid},!0),g.ElMessage.success("删除成功"),yield v()}catch(t){g.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{v()}),(o,t)=>{const i=m.ElOption,n=m.ElSelect,V=m.ElIcon,d=m.ElInput,f=m.ElButton,u=m.ElFormItem,w=m.ElCol,M=m.ElRow,L=m.ElInputNumber,Q=m.ElForm,$=m.ElDialog,N=m.ElDescriptionsItem,fe=m.ElDescriptions,X=m.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tableman-list mix-component",e.unref(R)]),style:e.normalizeStyle(e.unref(T))},[e.unref(x).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(h.value)},e.toDisplayString(c.conf.caption||c.conf.name),5)),e.createElementVNode("div",Se,[e.createElementVNode("div",Ee,[e.createVNode(n,{modelValue:P.value,"onUpdate:modelValue":t[0]||(t[0]=l=>P.value=l),class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(i,{label:"数据表名称",value:"name"}),e.createVNode(i,{label:"数据表编号",value:"uid"}),e.createVNode(i,{label:"数据表别名",value:"alias"}),e.createVNode(i,{label:"标签",value:"tags"})]),_:1},8,["modelValue"]),e.createVNode(d,{modelValue:U.value,"onUpdate:modelValue":t[1]||(t[1]=l=>U.value=l),placeholder:"搜索数据表",class:"toolbar-search",onKeyup:e.withKeys(J,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(V,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(he.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(f,{type:"primary",onClick:J},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(f,{onClick:re},{default:e.withCtx(()=>[...t[24]||(t[24]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(x).add?(e.openBlock(),e.createBlock(f,{key:0,type:"success",onClick:de},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("添加数据表",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.unref(_e.AgGridTable),{"column-defs":ie.value,"row-data":F.value,"show-pagination":!0,pager:C,"auto-fill-columns":!0,components:oe,onPageChange:ne},null,8,["column-defs","row-data","pager"])]),e.renderSlot(o.$slots,"default",{},void 0,!0),e.createVNode($,{modelValue:E.value,"onUpdate:modelValue":t[10]||(t[10]=l=>E.value=l),title:"添加数据表",width:"720px","destroy-on-close":"",onClosed:B},{footer:e.withCtx(()=>[e.createVNode(f,{onClick:t[9]||(t[9]=l=>E.value=!1)},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(f,{type:"primary",loading:b.value,onClick:se},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(Q,{model:a,"label-width":"120px"},{default:e.withCtx(()=>[e.createVNode(M,{gutter:12},{default:e.withCtx(()=>[e.createVNode(w,{span:12},{default:e.withCtx(()=>[e.createVNode(u,{label:"数据表名称",required:""},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.name,"onUpdate:modelValue":t[2]||(t[2]=l=>a.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(w,{span:12},{default:e.withCtx(()=>[e.createVNode(u,{label:"数据表别名",required:""},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.alias,"onUpdate:modelValue":t[3]||(t[3]=l=>a.alias=l),placeholder:"必填"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(M,{gutter:12},{default:e.withCtx(()=>[e.createVNode(w,{span:8},{default:e.withCtx(()=>[e.createVNode(u,{label:"排序"},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:a.listorder,"onUpdate:modelValue":t[4]||(t[4]=l=>a.listorder=l),min:0,"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(w,{span:8},{default:e.withCtx(()=>[e.createVNode(u,{label:"编号前缀"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.uid_prefix,"onUpdate:modelValue":t[5]||(t[5]=l=>a.uid_prefix=l)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(w,{span:8},{default:e.withCtx(()=>[e.createVNode(u,{label:"编号长度"},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:a.uid_length,"onUpdate:modelValue":t[6]||(t[6]=l=>a.uid_length=l),min:1,max:32,"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(u,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.tagsText,"onUpdate:modelValue":t[7]||(t[7]=l=>a.tagsText=l),placeholder:"多个标签用英文逗号分隔"},null,8,["modelValue"])]),_:1}),e.createVNode(u,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.description,"onUpdate:modelValue":t[8]||(t[8]=l=>a.description=l),type:"textarea",rows:4},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode($,{modelValue:D.value,"onUpdate:modelValue":t[20]||(t[20]=l=>D.value=l),title:"编辑数据表",width:"720px","destroy-on-close":"",onClosed:B},{footer:e.withCtx(()=>[e.createVNode(f,{onClick:t[19]||(t[19]=l=>D.value=!1)},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(f,{type:"primary",loading:b.value,onClick:ce},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(Q,{model:a,"label-width":"120px"},{default:e.withCtx(()=>[e.createVNode(u,{label:"数据表编号"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.uid,"onUpdate:modelValue":t[11]||(t[11]=l=>a.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(M,{gutter:12},{default:e.withCtx(()=>[e.createVNode(w,{span:12},{default:e.withCtx(()=>[e.createVNode(u,{label:"数据表名称",required:""},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.name,"onUpdate:modelValue":t[12]||(t[12]=l=>a.name=l)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(w,{span:12},{default:e.withCtx(()=>[e.createVNode(u,{label:"数据表别名",required:""},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.alias,"onUpdate:modelValue":t[13]||(t[13]=l=>a.alias=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(M,{gutter:12},{default:e.withCtx(()=>[e.createVNode(w,{span:8},{default:e.withCtx(()=>[e.createVNode(u,{label:"排序"},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:a.listorder,"onUpdate:modelValue":t[14]||(t[14]=l=>a.listorder=l),min:0,"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(w,{span:8},{default:e.withCtx(()=>[e.createVNode(u,{label:"编号前缀"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.uid_prefix,"onUpdate:modelValue":t[15]||(t[15]=l=>a.uid_prefix=l)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(w,{span:8},{default:e.withCtx(()=>[e.createVNode(u,{label:"编号长度"},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:a.uid_length,"onUpdate:modelValue":t[16]||(t[16]=l=>a.uid_length=l),min:1,max:32,"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(u,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.tagsText,"onUpdate:modelValue":t[17]||(t[17]=l=>a.tagsText=l),placeholder:"多个标签用英文逗号分隔"},null,8,["modelValue"])]),_:1}),e.createVNode(u,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:a.description,"onUpdate:modelValue":t[18]||(t[18]=l=>a.description=l),type:"textarea",rows:4},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode($,{modelValue:k.value,"onUpdate:modelValue":t[22]||(t[22]=l=>k.value=l),title:"数据表详情",width:"720px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(f,{type:"primary",onClick:t[21]||(t[21]=l=>k.value=!1)},{default:e.withCtx(()=>[...t[30]||(t[30]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",De,[p.value?(e.openBlock(),e.createBlock(fe,{key:0,column:2,border:""},{default:e.withCtx(()=>[e.createVNode(N,{label:"数据表编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(N,{label:"数据表名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(N,{label:"数据表别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(N,{label:"排序"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.listorder)!=null?l:""),1)]}),_:1}),e.createVNode(N,{label:"编号前缀"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.uid_prefix)!=null?l:""),1)]}),_:1}),e.createVNode(N,{label:"编号长度"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.uid_length)!=null?l:""),1)]}),_:1}),e.createVNode(N,{label:"标签",span:2},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(z(p.value.tags)),1)]),_:1}),e.createVNode(N,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(N,{label:"更新时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(N,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=p.value.description)!=null?l:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)])),[[X,j.value]])]),_:1},8,["modelValue"])],6)),[[X,I.value]])}}})),Re=_._export_sfc(Oe,[["__scopeId","data-v-0efe77ac"]]);exports.default=Re;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var q=Object.defineProperty,R=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var y=(n,t,o)=>t in n?q(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,N=(n,t)=>{for(var o in t||(t={}))F.call(t,o)&&y(n,o,t[o]);if(b)for(var o of b(t))L.call(t,o)&&y(n,o,t[o]);return n},T=(n,t)=>R(n,D(t));var h=(n,t,o)=>new Promise((r,c)=>{var d=a=>{try{i(o.next(a))}catch(s){c(s)}},u=a=>{try{i(o.throw(a))}catch(s){c(s)}},i=a=>a.done?r(a.value):Promise.resolve(a.value).then(d,u);i((o=o.apply(n,t)).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");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),w=require("@element-plus/icons-vue"),z=require("./useMixiotPanelSurface-CAZgexY5.cjs"),J=require("./BaseComponent-
|
|
1
|
+
"use strict";var q=Object.defineProperty,R=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var y=(n,t,o)=>t in n?q(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,N=(n,t)=>{for(var o in t||(t={}))F.call(t,o)&&y(n,o,t[o]);if(b)for(var o of b(t))L.call(t,o)&&y(n,o,t[o]);return n},T=(n,t)=>R(n,D(t));var h=(n,t,o)=>new Promise((r,c)=>{var d=a=>{try{i(o.next(a))}catch(s){c(s)}},u=a=>{try{i(o.throw(a))}catch(s){c(s)}},i=a=>a.done?r(a.value):Promise.resolve(a.value).then(d,u);i((o=o.apply(n,t)).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");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),w=require("@element-plus/icons-vue"),z=require("./useMixiotPanelSurface-CAZgexY5.cjs"),J=require("./BaseComponent-DKuQG62G.cjs"),j=require("./index-DoEyCVDU.cjs"),v=require("./useTablemanFormPanel-prjUDI9m.cjs"),E=require("./ele-lst-icon-CrxnHZ-A.cjs"),G={class:"create-header"},H={class:"create-title"},$={class:"create-body"},K={class:"create-footer"},Q={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"编辑数据表",NAME_EN:"tablemanUpdate",ORDER:3,PLATFORM:["pc","screen"]},W={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},formColumns:{value:2,type:"select",label:"component.options.tablemanFormColumns",options:[{label:"1列",value:1},{label:"2列",value:2},{label:"3列",value:3}]},formCategories:{value:[]}},x=[{}],X=[],Y=[],Z={},ee={w:45,h:24},te={DEFAULT:Q,OPTIONS:W,DATA:x,PARAMS:X,SOURCE:Y,COMMON:Z,INIT_GRID:ee},oe=e.defineComponent(T(N({},te),{__name:"tablemanUpdate",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{}},setup(n){const t=n;class o extends J.BaseComponent{extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light")}}needsHistoryData(){return!1}init(){return h(this,null,function*(){var l;this.applyTheme(),(l=this.props.conf.data)!=null&&l.length||(this.props.conf.data=JSON.parse(JSON.stringify(x))),this.Style.value=this.extractStyles()})}}const r=new o(t,"tablemanUpdate");r.setupLifecycle();const c=r.getStyle(),{mixiotPanelClass:d,mixiotPanelRootStyle:u}=z.useMixiotPanelSurface(c),{pageLoading:i,submitLoading:a,categories:s,fieldMap:S,formModel:f,formColumns:V,formRef:M,isDesignMode:O,isViewMode:p,onCategoriesChange:k,onResizeField:A,handleCancel:g,handleConfirm:I}=v.useTablemanFormPanel({props:t,componentTag:"tablemanUpdate",listenedActions:["edit"],defaultAction:"edit",submitMode:"update"});return(C,l)=>{const P=m.ElIcon,_=m.ElButton,B=m.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tableman-create mix-component",e.unref(d)]),style:e.normalizeStyle(e.unref(u))},[e.createElementVNode("div",G,[e.createElementVNode("span",H,e.toDisplayString(n.conf.caption||n.conf.name),1),e.createVNode(P,{class:"create-close",onClick:e.unref(g)},{default:e.withCtx(()=>[e.createVNode(e.unref(w.Close))]),_:1},8,["onClick"])]),e.createElementVNode("div",$,[e.createVNode(v.TablemanCreateForm,{ref_key:"formRef",ref:M,categories:e.unref(s),"field-map":e.unref(S),"form-model":e.unref(f),"form-columns":e.unref(V),"design-mode":e.unref(O),readonly:e.unref(p),disabled:e.unref(a),"onUpdate:categories":e.unref(k),"onUpdate:formModel":l[0]||(l[0]=U=>f.value=U),onResizeField:e.unref(A)},null,8,["categories","field-map","form-model","form-columns","design-mode","readonly","disabled","onUpdate:categories","onResizeField"])]),e.createElementVNode("div",K,[e.createVNode(_,{onClick:e.unref(g)},{default:e.withCtx(()=>[...l[1]||(l[1]=[e.createTextVNode("取消",-1)])]),_:1},8,["onClick"]),e.unref(p)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(_,{key:0,type:"primary",loading:e.unref(a),onClick:e.unref(I)},{default:e.withCtx(()=>[...l[2]||(l[2]=[e.createTextVNode(" 确认 ",-1)])]),_:1},8,["loading","onClick"]))]),e.renderSlot(C.$slots,"default",{},void 0,!0)],6)),[[B,e.unref(i)]])}}})),ne=j._export_sfc(oe,[["__scopeId","data-v-f0406500"]]);exports.default=ne;
|
|
@@ -34,9 +34,9 @@ import "element-plus/es/components/icon/style/css";
|
|
|
34
34
|
import { defineComponent as j, withDirectives as q, openBlock as x, createElementBlock as K, normalizeStyle as Q, unref as e, normalizeClass as W, createElementVNode as c, toDisplayString as X, createVNode as d, withCtx as u, createTextVNode as k, createBlock as Y, createCommentVNode as Z, renderSlot as ee } from "vue";
|
|
35
35
|
import { Close as oe } from "@element-plus/icons-vue";
|
|
36
36
|
import { u as te } from "./useMixiotPanelSurface-DRl3cZvc.js";
|
|
37
|
-
import { B as ne } from "./BaseComponent-
|
|
38
|
-
import { _ as ae } from "./index-
|
|
39
|
-
import { u as le, T as ie } from "./useTablemanFormPanel-
|
|
37
|
+
import { B as ne } from "./BaseComponent-Dn65PXTp.js";
|
|
38
|
+
import { _ as ae } from "./index-CPTJIw32.js";
|
|
39
|
+
import { u as le, T as ie } from "./useTablemanFormPanel-CvrN_jY3.js";
|
|
40
40
|
import { A as se, D as re } from "./ele-lst-icon-CKpeRKmk.js";
|
|
41
41
|
const me = { class: "create-header" }, ce = { class: "create-title" }, de = { class: "create-body" }, pe = { class: "create-footer" }, fe = {
|
|
42
42
|
DEFAULT_ICON: re,
|
|
@@ -34,7 +34,7 @@ import "element-plus/es/components/descriptions-item/style/css";
|
|
|
34
34
|
import "element-plus/es/components/dialog/style/css";
|
|
35
35
|
import "element-plus/es/components/form/style/css";
|
|
36
36
|
import "element-plus/es/components/form-item/style/css";
|
|
37
|
-
import { A as We } from "./AgGridTable-
|
|
37
|
+
import { A as We } from "./AgGridTable-BQ8M3fDj.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,14 +42,14 @@ import "element-plus/es/components/select/style/css";
|
|
|
42
42
|
import "element-plus/es/components/option/style/css";
|
|
43
43
|
import { defineComponent as He, computed as P, reactive as ie, ref as w, onMounted as qe, openBlock as E, createElementBlock as H, Fragment as Ge, withDirectives as oe, normalizeStyle as ne, unref as R, normalizeClass as Ke, toDisplayString as C, createCommentVNode as Z, createElementVNode as re, createVNode as i, withCtx as o, withKeys as Qe, createTextVNode as c, createBlock as de, renderSlot as Xe } from "vue";
|
|
44
44
|
import { u as Ye } from "./useMixiotPanelSurface-DRl3cZvc.js";
|
|
45
|
-
import { B as Ze } from "./BaseComponent-
|
|
46
|
-
import { a as k, _ as et } from "./index-
|
|
45
|
+
import { B as Ze } from "./BaseComponent-Dn65PXTp.js";
|
|
46
|
+
import { a as k, _ as et } from "./index-CPTJIw32.js";
|
|
47
47
|
import { g as tt } from "./titleStyle-BT5GlpAb.js";
|
|
48
48
|
import { ElMessage as m, ElMessageBox as se } from "element-plus";
|
|
49
49
|
import { Search as lt } from "@element-plus/icons-vue";
|
|
50
50
|
import { a as at } from "./appendCommonDesignerWhereAnd-DwefWNOa.js";
|
|
51
51
|
import { c as it, b as ot, s as nt } from "./syncMixiotListConfig-BJm-8v-B.js";
|
|
52
|
-
import { A as rt } from "./AgActionsRenderer-
|
|
52
|
+
import { A as rt } from "./AgActionsRenderer-3HKXKUJY.js";
|
|
53
53
|
import { A as dt, D as st } from "./ele-lst-icon-CKpeRKmk.js";
|
|
54
54
|
const ut = { class: "mix-body" }, pt = { class: "top-bar" }, mt = { class: "view-body" }, ct = {
|
|
55
55
|
DEFAULT_ICON: st,
|