gds-plus-design-vue 1.2.61 → 1.2.63
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/lib/addPermission.5036013c.js +1 -0
- package/lib/addPermission.9fc97a47.mjs +421 -0
- package/lib/approvalModel.51d07afe.mjs +340 -0
- package/lib/approvalModel.66f49dfb.js +1 -0
- package/lib/attribute.318f485c.js +1 -0
- package/lib/attribute.a06ac9e7.mjs +237 -0
- package/lib/buildItem.6a834227.js +1 -0
- package/lib/buildItem.fd8634ab.mjs +205 -0
- package/lib/businessRules.0e4dbb3a.js +1 -0
- package/lib/businessRules.db6ba874.mjs +538 -0
- package/lib/components.chartbi.b043dcdc.mjs +1729 -0
- package/lib/components.chartbi.e4680eaa.js +7 -0
- package/lib/components.coloreditor.044983d2.mjs +1505 -0
- package/lib/components.coloreditor.779a9419.js +6 -0
- package/lib/components.dataassign.1853ed5c.js +1 -0
- package/lib/components.dataassign.56632583.mjs +147 -0
- package/lib/components.echarts.10d3ffe2.mjs +794 -0
- package/lib/components.echarts.e4d6b13e.js +3 -0
- package/lib/components.exception.3cc33e29.js +1 -0
- package/lib/components.exception.cc2f4ca3.mjs +61 -0
- package/lib/components.form.3344c817.mjs +7785 -0
- package/lib/components.form.91d5ed3e.js +41 -0
- package/lib/components.globalheader.07a90c4b.js +1 -0
- package/lib/components.globalheader.43fafa8c.mjs +54 -0
- package/lib/components.iconselector.8caabeaa.mjs +1165 -0
- package/lib/components.iconselector.d712170f.js +1 -0
- package/lib/components.imgpreview.57290b54.mjs +213 -0
- package/lib/components.imgpreview.86bf7971.js +1 -0
- package/lib/components.lunccalendar.76159d2e.js +1 -0
- package/lib/components.lunccalendar.f6765c94.mjs +1137 -0
- package/lib/components.middleware.3bad5748.js +1 -0
- package/lib/components.middleware.457b1182.mjs +147 -0
- package/lib/components.modaltitle.ae92f96c.mjs +127 -0
- package/lib/components.modaltitle.e0b34fcb.js +1 -0
- package/lib/components.multitab.82fd0544.js +1 -0
- package/lib/components.multitab.8441aa6b.mjs +140 -0
- package/lib/components.selecttree.85d940a9.mjs +170 -0
- package/lib/components.selecttree.d710a362.js +1 -0
- package/lib/components.settingdrawer.779f6715.js +1 -0
- package/lib/components.settingdrawer.a6693034.mjs +237 -0
- package/lib/components.sidemenu.725677e3.mjs +277 -0
- package/lib/components.sidemenu.80e46c2d.js +1 -0
- package/lib/components.sidenavmenu.23b8edce.mjs +1331 -0
- package/lib/components.sidenavmenu.b9bb9304.js +1 -0
- package/lib/components.statuschange.15938660.mjs +116 -0
- package/lib/components.statuschange.ed1218a4.js +1 -0
- package/lib/components.table.17c02054.js +8 -0
- package/lib/components.table.e3e5e3bc.mjs +4635 -0
- package/lib/components.tableumy.2f5dfa12.mjs +450 -0
- package/lib/components.tableumy.9cf33062.js +1 -0
- package/lib/components.tablevirtual.38d4d3d8.js +1 -0
- package/lib/components.tablevirtual.ba03746e.mjs +561 -0
- package/lib/components.teamsharing.05503821.js +1 -0
- package/lib/components.teamsharing.fb4351ec.mjs +373 -0
- package/lib/components.tooltip.950dc77b.mjs +86 -0
- package/lib/components.tooltip.a05d8dd1.js +1 -0
- package/lib/components.uploadfile.10f6cb2a.mjs +228 -0
- package/lib/components.uploadfile.5a9b6cc1.js +1 -0
- package/lib/components.uploadimg.cce7452a.js +1 -0
- package/lib/components.uploadimg.f4fe4e77.mjs +192 -0
- package/lib/components.verificationcode.afb9aa1a.mjs +71 -0
- package/lib/components.verificationcode.d1946db4.js +1 -0
- package/lib/components.viewformdetails.1621bc18.js +1 -0
- package/lib/components.viewformdetails.f362d69e.mjs +1048 -0
- package/lib/components.viewloading.807bbf68.js +1 -0
- package/lib/components.viewloading.ea40b244.mjs +96 -0
- package/lib/components.watermark.1ffc66e0.mjs +53 -0
- package/lib/components.watermark.da3d7220.js +2 -0
- package/lib/components.xlsxexport.d98572f8.mjs +263 -0
- package/lib/components.xlsxexport.f5ace2cd.js +1 -0
- package/lib/components.xlsximport.cffa88fe.mjs +913 -0
- package/lib/components.xlsximport.dbd826bb.js +1 -0
- package/lib/createFile.6b37ecf2.js +1 -0
- package/lib/createFile.82d6e415.mjs +239 -0
- package/lib/createSubfolders.47af629c.js +1 -0
- package/lib/createSubfolders.d35b97e9.mjs +154 -0
- package/lib/dialogLayout.08823bb7.js +1 -0
- package/lib/dialogLayout.c4bc3b55.mjs +138 -0
- package/lib/drawerContainer.604a1271.mjs +146 -0
- package/lib/drawerContainer.6a9813ce.js +1 -0
- package/lib/drawerLayout.36cf4d05.js +1 -0
- package/lib/drawerLayout.fb60950f.mjs +119 -0
- package/lib/fileSearch.65311ded.js +1 -0
- package/lib/fileSearch.86c356fe.mjs +338 -0
- package/lib/flow.designer.1ba3a90d.js +1 -0
- package/lib/flow.designer.6da03949.mjs +7686 -0
- package/lib/flow.list.03694808.mjs +3030 -0
- package/lib/flow.list.4eb10554.js +1 -0
- package/lib/form.build.51bd261e.js +1 -0
- package/lib/form.build.b768d613.mjs +251 -0
- package/lib/form.designer.build.5a950455.js +1 -0
- package/lib/form.designer.build.e521c9c6.mjs +5091 -0
- package/lib/formFiled.464856f5.js +1 -0
- package/lib/formFiled.fe7d9df3.mjs +505 -0
- package/lib/gd-initial.js +1 -35
- package/lib/gd-initial.mjs +221 -91087
- package/lib/http.appmanage.4554a629.mjs +50 -0
- package/lib/http.appmanage.b998818f.js +1 -0
- package/lib/http.codegeneratemanage.2f925b10.mjs +112 -0
- package/lib/http.codegeneratemanage.aecadd5d.js +1 -0
- package/lib/http.configmanage.6cfb8ae7.js +1 -0
- package/lib/http.configmanage.c23c7fa8.mjs +34 -0
- package/lib/http.currencymanage.37ab5ced.js +1 -0
- package/lib/http.currencymanage.c25bd2e6.mjs +10 -0
- package/lib/http.datasource.294b01e2.js +1 -0
- package/lib/http.datasource.aa5cd0d1.mjs +58 -0
- package/lib/http.dictdatamanage.4baf16c0.mjs +42 -0
- package/lib/http.dictdatamanage.70545d8a.js +1 -0
- package/lib/http.dictmanage.3dc07b5d.js +1 -0
- package/lib/http.dictmanage.77c69971.mjs +50 -0
- package/lib/http.duplicatechecking.31964ce7.mjs +50 -0
- package/lib/http.duplicatechecking.ee5c414c.js +1 -0
- package/lib/http.emailmanage.1ddaa8b5.js +1 -0
- package/lib/http.emailmanage.64fd611f.mjs +18 -0
- package/lib/http.filedocument.7c656b91.js +1 -0
- package/lib/http.filedocument.d456d26a.mjs +156 -0
- package/lib/http.filemanage.7e6e3e1a.js +1 -0
- package/lib/http.filemanage.c0de21d6.mjs +71 -0
- package/lib/http.languagemanage.2ef16159.mjs +10 -0
- package/lib/http.languagemanage.e2c098ec.js +1 -0
- package/lib/http.loginmanage.05500c29.mjs +74 -0
- package/lib/http.loginmanage.326984c3.js +1 -0
- package/lib/http.logmanage.1e12a9bd.js +1 -0
- package/lib/http.logmanage.8ba72635.mjs +82 -0
- package/lib/http.machinemanage.29d72a65.js +1 -0
- package/lib/http.machinemanage.7bbe6c16.mjs +26 -0
- package/lib/http.main.2f8a6936.js +1 -0
- package/lib/http.main.40657f51.mjs +517 -0
- package/lib/http.menumanage.3240ba0d.mjs +66 -0
- package/lib/http.menumanage.6d740f2c.js +1 -0
- package/lib/http.message.5004bf60.mjs +178 -0
- package/lib/http.message.87f319d7.js +1 -0
- package/lib/http.noticemanage.2507d094.js +1 -0
- package/lib/http.noticemanage.e03bd5f3.mjs +82 -0
- package/lib/http.noticereceivedmanage.50797be1.mjs +10 -0
- package/lib/http.noticereceivedmanage.e8ec9c9d.js +1 -0
- package/lib/http.onlineusermanage.3893f897.js +1 -0
- package/lib/http.onlineusermanage.c8d84337.mjs +18 -0
- package/lib/http.orgmanage.5162fd7a.js +1 -0
- package/lib/http.orgmanage.84e43edb.mjs +58 -0
- package/lib/http.pluginmanage.6a876040.js +1 -0
- package/lib/http.pluginmanage.6bc6197f.mjs +82 -0
- package/lib/http.posmanage.c0f80aec.js +1 -0
- package/lib/http.posmanage.ee6a7613.mjs +34 -0
- package/lib/http.promptmanagement.c7912f6c.mjs +42 -0
- package/lib/http.promptmanagement.d115c4b0.js +1 -0
- package/lib/http.rolemanage.03363732.js +1 -0
- package/lib/http.rolemanage.dbf3fda1.mjs +114 -0
- package/lib/http.solution.175d36c8.mjs +91 -0
- package/lib/http.solution.c6b2634f.js +1 -0
- package/lib/http.sumberrules.0b68ce6d.js +1 -0
- package/lib/http.sumberrules.608a06d6.mjs +34 -0
- package/lib/http.sysapps.469d47f7.js +1 -0
- package/lib/http.sysapps.e294ceaf.mjs +58 -0
- package/lib/http.syscodegenerateconfigmanage.6d2e5da0.mjs +42 -0
- package/lib/http.syscodegenerateconfigmanage.840f1136.js +1 -0
- package/lib/http.tabledevelopment.1d370398.mjs +362 -0
- package/lib/http.tabledevelopment.a880bb76.js +1 -0
- package/lib/http.team.c8487c0b.mjs +90 -0
- package/lib/http.team.e45400d5.js +1 -0
- package/lib/http.timersmanage.01dbc1a2.mjs +146 -0
- package/lib/http.timersmanage.6e894942.js +1 -0
- package/lib/http.timezonemanage.b9deffe3.mjs +10 -0
- package/lib/http.timezonemanage.e0aa212f.js +1 -0
- package/lib/http.translationmanage.1f9dce46.js +1 -0
- package/lib/http.translationmanage.a4640c9a.mjs +104 -0
- package/lib/http.useraffiliation.840741ed.mjs +90 -0
- package/lib/http.useraffiliation.af2013ad.js +1 -0
- package/lib/http.usermanage.3e5eff33.mjs +219 -0
- package/lib/http.usermanage.6dcbc7de.js +1 -0
- package/lib/http.webresource.5158b431.mjs +50 -0
- package/lib/http.webresource.7c01b9cd.js +1 -0
- package/lib/index.69ad4631.mjs +44291 -0
- package/lib/index.cca024bf.js +8 -0
- package/lib/layoutBlocks.1a9e3e05.mjs +204 -0
- package/lib/layoutBlocks.5e6be06f.js +1 -0
- package/lib/layouts.051a0bba.mjs +376 -0
- package/lib/layouts.a6a36612.js +2 -0
- package/lib/main.457f4326.js +1 -0
- package/lib/main.4fff412e.js +1 -0
- package/lib/{main.6c47713a.mjs → main.70357352.mjs} +12 -10
- package/lib/main.77373aa4.mjs +441 -0
- package/lib/{main.28952cf7.mjs → main.7f44e3bf.mjs} +78 -143
- package/lib/main.8a2a590d.js +1 -0
- package/lib/main.ad1e8d4d.js +1 -0
- package/lib/{main.5b3edd34.mjs → main.b0e5e1b0.mjs} +9 -8
- package/lib/{main.b4704b4b.mjs → main.c1df94d8.mjs} +4 -4
- package/lib/main.c3726602.js +1 -0
- package/lib/manage.5bb4f719.js +1 -0
- package/lib/manage.a1df9b88.mjs +419 -0
- package/lib/messages.7b74736f.js +9 -0
- package/lib/{messages.1787f71e.mjs → messages.ad082386.mjs} +994 -1952
- package/lib/moveFile.0ce803e0.js +1 -0
- package/lib/moveFile.8310ea94.mjs +254 -0
- package/lib/page.build.685c1e15.mjs +3158 -0
- package/lib/page.build.846096e6.js +12 -0
- package/lib/personal.echarts.b22fba61.mjs +701 -0
- package/lib/personal.echarts.f77bfc9e.js +1 -0
- package/lib/result.19351665.mjs +526 -0
- package/lib/result.e59c0e40.js +1 -0
- package/lib/router.config.2501ec51.js +1 -0
- package/lib/router.config.98a73167.mjs +3172 -0
- package/lib/solution.58580123.js +1 -0
- package/lib/solution.890ff164.mjs +6942 -0
- package/lib/store.config.3cb11578.js +1 -0
- package/lib/store.config.fff8a5a1.mjs +542 -0
- package/lib/style.css +3 -3
- package/lib/system.account.014f3e0b.mjs +2097 -0
- package/lib/system.account.0d4f1fdc.js +216 -0
- package/lib/{system.config.9bee857f.mjs → system.config.0899edb8.mjs} +7 -6
- package/lib/system.config.210f516c.js +1 -0
- package/lib/system.datasource.82492d27.js +1 -0
- package/lib/{system.datasource.926c6da1.mjs → system.datasource.986768c9.mjs} +15 -64
- package/lib/{system.dict.d48f77d5.mjs → system.dict.ef24873d.mjs} +28 -107
- package/lib/system.dict.f5708400.js +1 -0
- package/lib/system.duplicatechecking.8e3a37c0.js +1 -0
- package/lib/system.duplicatechecking.dcf9f86b.mjs +742 -0
- package/lib/system.email.070ab2be.js +1 -0
- package/lib/system.email.252fd642.mjs +138 -0
- package/lib/{system.fieldsecurity.a91a8420.mjs → system.fieldsecurity.0234d390.mjs} +224 -685
- package/lib/system.fieldsecurity.3ef07bf7.js +1 -0
- package/lib/system.file.17a7f2ed.js +1 -0
- package/lib/{system.file.ca5f4aae.mjs → system.file.73eeb731.mjs} +8 -7
- package/lib/{system.log.e80ba9c9.mjs → system.log.b86cf57f.mjs} +31 -93
- package/lib/system.log.fc60f5e6.js +1 -0
- package/lib/{system.machine.c1e753fb.mjs → system.machine.0114001b.mjs} +5 -25
- package/lib/system.machine.f1d95c86.js +1 -0
- package/lib/{system.notice.a6017645.mjs → system.notice.25ea8dca.mjs} +292 -474
- package/lib/system.notice.96c770a6.js +1 -0
- package/lib/{system.noticereceived.bbf6efd3.mjs → system.noticereceived.369f634c.mjs} +17 -24
- package/lib/system.noticereceived.dfe4ecc7.js +1 -0
- package/lib/{system.onlineuser.2b756c66.mjs → system.onlineuser.2dc284b1.mjs} +11 -24
- package/lib/system.onlineuser.e2e39bdc.js +1 -0
- package/lib/system.org.79ee5bd6.js +1 -0
- package/lib/{system.org.5f9e7b94.mjs → system.org.c20fe6b2.mjs} +3 -3
- package/lib/system.permissions.90f73461.js +9 -0
- package/lib/{system.permissions.17fe31d5.mjs → system.permissions.c3d34921.mjs} +4 -3
- package/lib/{system.plugin.c503c5b7.mjs → system.plugin.45a0f530.mjs} +23 -93
- package/lib/system.plugin.b34a3b47.js +1 -0
- package/lib/system.pos.0a3d2a37.js +1 -0
- package/lib/{system.pos.a169dcb9.mjs → system.pos.7946a99c.mjs} +31 -62
- package/lib/system.promptmanagement.b5fa6b2d.js +1 -0
- package/lib/{system.promptmanagement.00fc2917.mjs → system.promptmanagement.d7250932.mjs} +153 -287
- package/lib/system.role.03be0982.js +1 -0
- package/lib/{system.role.52d67131.mjs → system.role.75da7929.mjs} +8 -5
- package/lib/{system.sumberrules.357dc3bb.mjs → system.sumberrules.4a1376a6.mjs} +13 -39
- package/lib/system.sumberrules.bb228fce.js +1 -0
- package/lib/system.team.32183b63.js +1 -0
- package/lib/system.team.e6a9608e.mjs +450 -0
- package/lib/{system.teammembers.90598753.mjs → system.teammembers.4a7e7339.mjs} +135 -82
- package/lib/system.teammembers.847d8ea7.js +1 -0
- package/lib/system.timers.28691ce4.js +38 -0
- package/lib/{system.timers.f66ddd64.mjs → system.timers.eb0b6f3e.mjs} +50 -174
- package/lib/system.translation.6237f071.js +1 -0
- package/lib/{system.translation.279d9e27.mjs → system.translation.e34f0891.mjs} +5 -5
- package/lib/{system.user.80ca9f42.mjs → system.user.fa2d2997.mjs} +17 -16
- package/lib/{system.user.10ae5122.js → system.user.fca3f2d6.js} +5 -5
- package/lib/{system.useraffiliation.b5c11d9e.mjs → system.useraffiliation.518e341e.mjs} +4 -3
- package/lib/system.useraffiliation.7547b9c7.js +1 -0
- package/lib/system.webresource.12712b90.js +1 -0
- package/lib/{system.webresource.6dbe70f3.mjs → system.webresource.469db736.mjs} +16 -58
- package/lib/{system.welcome.a162fc7d.mjs → system.welcome.191e98f5.mjs} +10 -3
- package/lib/system.welcome.f64e49f8.js +1 -0
- package/lib/tcheckboxs.090e75eb.mjs +52 -0
- package/lib/tcheckboxs.99361be3.js +1 -0
- package/lib/tcurrency.0ddac2f8.mjs +92 -0
- package/lib/tcurrency.62763c6d.js +1 -0
- package/lib/tdatepicker.8fe48b1b.mjs +52 -0
- package/lib/tdatepicker.b19e689d.js +1 -0
- package/lib/tdictSwitch.2e07dc8a.js +1 -0
- package/lib/tdictSwitch.43d882c7.mjs +60 -0
- package/lib/tfile.1bc381f9.js +1 -0
- package/lib/tfile.72925615.mjs +62 -0
- package/lib/tparticipants.77b876e2.js +1 -0
- package/lib/tparticipants.ca5b556c.mjs +56 -0
- package/lib/translation.mains.1ce7e110.js +1 -0
- package/lib/translation.mains.278e4ba6.mjs +383 -0
- package/lib/utils.datepicker.js.2076c2a2.mjs +61 -0
- package/lib/utils.datepicker.js.8576e2fc.js +1 -0
- package/lib/utils.echarts.js.461a74e7.js +54 -0
- package/lib/utils.echarts.js.d1bb8ac6.mjs +25711 -0
- package/lib/utils.mixins.js.750ca50e.js +1 -0
- package/lib/utils.mixins.js.be01e599.mjs +41 -0
- package/lib/utils.util.js.50d1ec9c.js +1 -0
- package/lib/utils.util.js.82cd8447.mjs +424 -0
- package/lib/view.build.b44fd7d7.js +1 -0
- package/lib/view.build.f2a9fcfb.mjs +2727 -0
- package/lib/viewList.5a25c4b6.mjs +346 -0
- package/lib/viewList.be5a5ec5.js +1 -0
- package/locale/en_US.js +48 -23
- package/locale/id_ID.js +32 -7
- package/locale/vi_VN.js +1973 -1948
- package/locale/zh_CN.js +53 -29
- package/package.json +106 -105
- package/lib/chartbi.0d1d3b58.mjs +0 -27639
- package/lib/chartbi.d3f580d6.js +0 -60
- package/lib/main.0088ac99.js +0 -1
- package/lib/main.34c14bdb.js +0 -1
- package/lib/main.4b9adacf.js +0 -1
- package/lib/main.d1239940.js +0 -1
- package/lib/messages.add7c391.js +0 -9
- package/lib/system.account.00b82418.mjs +0 -2552
- package/lib/system.account.04cb26b6.js +0 -216
- package/lib/system.config.6244fa9b.js +0 -1
- package/lib/system.datasource.32878f5f.js +0 -1
- package/lib/system.dict.d25839ec.js +0 -1
- package/lib/system.duplicatechecking.4ed8c391.mjs +0 -2142
- package/lib/system.duplicatechecking.670ee24a.js +0 -1
- package/lib/system.email.52671629.mjs +0 -7432
- package/lib/system.email.dd537fd0.js +0 -41
- package/lib/system.fieldsecurity.4947c737.js +0 -1
- package/lib/system.file.93d65d16.js +0 -1
- package/lib/system.log.252cce0b.js +0 -1
- package/lib/system.machine.4e393981.js +0 -1
- package/lib/system.notice.ab23c15b.js +0 -1
- package/lib/system.noticereceived.123b764e.js +0 -1
- package/lib/system.onlineuser.295ad7f5.js +0 -1
- package/lib/system.org.c3bb51ff.js +0 -1
- package/lib/system.permissions.967200f1.js +0 -9
- package/lib/system.plugin.f8da8731.js +0 -1
- package/lib/system.pos.22fabf30.js +0 -1
- package/lib/system.promptmanagement.639a98e1.js +0 -1
- package/lib/system.role.4cf72743.js +0 -1
- package/lib/system.sumberrules.1a5b80df.js +0 -1
- package/lib/system.team.777feecf.mjs +0 -1000
- package/lib/system.team.ad10fc96.js +0 -1
- package/lib/system.teammembers.b193dd23.js +0 -1
- package/lib/system.timers.e31fe5fd.js +0 -38
- package/lib/system.translation.d3ed3d35.js +0 -1
- package/lib/system.useraffiliation.593c9ad4.js +0 -1
- package/lib/system.webresource.25e56654.js +0 -1
- package/lib/system.welcome.ec4e941f.js +0 -1
|
@@ -0,0 +1,561 @@
|
|
|
1
|
+
import { t as p } from "./utils.util.js.82cd8447.mjs";
|
|
2
|
+
import { m as g, n as m } from "./components.chartbi.b043dcdc.mjs";
|
|
3
|
+
const y = {
|
|
4
|
+
name: "GdTableVirtual",
|
|
5
|
+
props: Object.assign(
|
|
6
|
+
{},
|
|
7
|
+
{
|
|
8
|
+
record: {
|
|
9
|
+
type: Object,
|
|
10
|
+
default: () => ({})
|
|
11
|
+
},
|
|
12
|
+
dataSource: {
|
|
13
|
+
type: Function,
|
|
14
|
+
required: !0
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "small"
|
|
19
|
+
},
|
|
20
|
+
rowKey: {
|
|
21
|
+
type: [String, Function],
|
|
22
|
+
default: "id"
|
|
23
|
+
},
|
|
24
|
+
amount: {
|
|
25
|
+
type: Function
|
|
26
|
+
},
|
|
27
|
+
load: {
|
|
28
|
+
type: Function
|
|
29
|
+
},
|
|
30
|
+
tableTree: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
lazy: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
border: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !0
|
|
41
|
+
},
|
|
42
|
+
columns: {
|
|
43
|
+
type: Array,
|
|
44
|
+
default: () => []
|
|
45
|
+
},
|
|
46
|
+
cellStyle: {
|
|
47
|
+
type: Function
|
|
48
|
+
},
|
|
49
|
+
cellClassName: {
|
|
50
|
+
type: Function
|
|
51
|
+
},
|
|
52
|
+
rowClassName: {
|
|
53
|
+
type: Function
|
|
54
|
+
},
|
|
55
|
+
defaultExpandedKeys: {
|
|
56
|
+
type: Array,
|
|
57
|
+
default: () => []
|
|
58
|
+
},
|
|
59
|
+
selectedRowKeys: {
|
|
60
|
+
type: Array,
|
|
61
|
+
default: () => []
|
|
62
|
+
},
|
|
63
|
+
selectedKeep: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: !1
|
|
66
|
+
},
|
|
67
|
+
height: {
|
|
68
|
+
type: Number,
|
|
69
|
+
default: 0
|
|
70
|
+
},
|
|
71
|
+
maxHeight: {
|
|
72
|
+
type: Number,
|
|
73
|
+
default: 0
|
|
74
|
+
},
|
|
75
|
+
indent: {
|
|
76
|
+
type: Number,
|
|
77
|
+
default: 16
|
|
78
|
+
},
|
|
79
|
+
pageSize: {
|
|
80
|
+
type: Number,
|
|
81
|
+
default: 10
|
|
82
|
+
},
|
|
83
|
+
pageSizes: {
|
|
84
|
+
type: Array,
|
|
85
|
+
default: () => [10, 20, 30, 40, 50, 100, 200, 500]
|
|
86
|
+
},
|
|
87
|
+
tableExpand: {
|
|
88
|
+
type: Array,
|
|
89
|
+
default: () => []
|
|
90
|
+
},
|
|
91
|
+
defaultExpandAll: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: !1
|
|
94
|
+
},
|
|
95
|
+
method: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
default: !1
|
|
98
|
+
},
|
|
99
|
+
columnKey: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: ""
|
|
102
|
+
},
|
|
103
|
+
showSummary: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
default: !1
|
|
106
|
+
},
|
|
107
|
+
headerCellStyle: {
|
|
108
|
+
type: [Object, Function],
|
|
109
|
+
default: () => ({})
|
|
110
|
+
},
|
|
111
|
+
showPagination: {
|
|
112
|
+
type: Boolean,
|
|
113
|
+
default: !0
|
|
114
|
+
},
|
|
115
|
+
initialLoading: {
|
|
116
|
+
type: Boolean,
|
|
117
|
+
default: !0
|
|
118
|
+
},
|
|
119
|
+
filtering: {
|
|
120
|
+
type: Boolean,
|
|
121
|
+
default: !1
|
|
122
|
+
},
|
|
123
|
+
isGather: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: !1
|
|
126
|
+
},
|
|
127
|
+
disabledRowId: {
|
|
128
|
+
type: Array,
|
|
129
|
+
default: () => []
|
|
130
|
+
},
|
|
131
|
+
disabledRefresh: {
|
|
132
|
+
type: Boolean,
|
|
133
|
+
default: !1
|
|
134
|
+
},
|
|
135
|
+
disabledColumnSettings: {
|
|
136
|
+
type: Boolean,
|
|
137
|
+
default: !1
|
|
138
|
+
},
|
|
139
|
+
stripe: {
|
|
140
|
+
type: Boolean,
|
|
141
|
+
default: !0
|
|
142
|
+
},
|
|
143
|
+
rowHeight: {
|
|
144
|
+
type: Number,
|
|
145
|
+
default: 25
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
),
|
|
149
|
+
computed: {
|
|
150
|
+
getRowHeight() {
|
|
151
|
+
let t = 0;
|
|
152
|
+
return this.rowHeight + t;
|
|
153
|
+
},
|
|
154
|
+
fadeColord() {
|
|
155
|
+
return this.fadeColor(this.primaryColor, 0.3);
|
|
156
|
+
},
|
|
157
|
+
getColumns() {
|
|
158
|
+
let t = 0, e = this.columnsSetting.filter((d) => {
|
|
159
|
+
const n = d.checked === void 0 || d.checked, i = this.columns.filter((c) => c.prop === d.prop)[0], r = i ? i.owidth ? i.owidth : i.width ? i.width : i.minWidth ? i.minWidth : "150" : "150";
|
|
160
|
+
return i && i.width && !d.width && (d.width = i.width), i && i.minWidth && !d.minWidth && (d.minWidth = i.minWidth), n && (t += Number(r)), n;
|
|
161
|
+
});
|
|
162
|
+
if (this.wid === 0 || e.filter((d) => d.width || d.minWidth).length !== e.length)
|
|
163
|
+
return e;
|
|
164
|
+
const s = t - this.wid, a = e[e.length - 1], o = a ? a.width ? Number(a.width) : a.minWidth ? Number(a.minWidth) : 0 : 0;
|
|
165
|
+
if (s < 0) {
|
|
166
|
+
const d = e.length === 0 ? 0 : Math.floor(Math.abs(s) / e.length);
|
|
167
|
+
e.filter((n) => (n.width && !["selection", "selection-radio"].includes(n.type) && (n.width = d + Number(n.owidth)), a.prop === n.prop && delete n.width, n));
|
|
168
|
+
} else
|
|
169
|
+
s < o && (a.minWidth || a.width) && (a.width = o);
|
|
170
|
+
return e;
|
|
171
|
+
},
|
|
172
|
+
selectionType() {
|
|
173
|
+
const t = this.columns.filter((e) => e.type === "selection" || e.type === "selection-radio")[0];
|
|
174
|
+
return t ? t.type === "selection" ? "checkbox" : "radio" : null;
|
|
175
|
+
},
|
|
176
|
+
hasClear() {
|
|
177
|
+
let t = [];
|
|
178
|
+
for (let e in this.sorter)
|
|
179
|
+
t.push(e);
|
|
180
|
+
return t.length;
|
|
181
|
+
},
|
|
182
|
+
dropdownActive() {
|
|
183
|
+
return `background-color: ${this.fadeColor(this.primaryColor, 0.1)};color:${this.primaryColor}`;
|
|
184
|
+
},
|
|
185
|
+
totalPages() {
|
|
186
|
+
return Math.ceil(this.total / this.pageSized);
|
|
187
|
+
},
|
|
188
|
+
...g(["primaryColor", "language", "screenWidth", "multiTab"])
|
|
189
|
+
},
|
|
190
|
+
data() {
|
|
191
|
+
return {
|
|
192
|
+
tableData: [],
|
|
193
|
+
loading: !1,
|
|
194
|
+
customSize: this.size,
|
|
195
|
+
keyValue: null,
|
|
196
|
+
currentRow: "",
|
|
197
|
+
total: 0,
|
|
198
|
+
sorter: {},
|
|
199
|
+
state: !1,
|
|
200
|
+
currentPage: 1,
|
|
201
|
+
pageSized: this.pageSize,
|
|
202
|
+
columnsSetting: [],
|
|
203
|
+
visibleFilter: !1,
|
|
204
|
+
frozenColumn: 0,
|
|
205
|
+
wid: 0
|
|
206
|
+
};
|
|
207
|
+
},
|
|
208
|
+
watch: {
|
|
209
|
+
screenWidth() {
|
|
210
|
+
this.$nextTick(() => {
|
|
211
|
+
this.getWid(), setTimeout(() => {
|
|
212
|
+
this.$refs.refTable.doLayout();
|
|
213
|
+
}, 0);
|
|
214
|
+
});
|
|
215
|
+
},
|
|
216
|
+
tableExpand: {
|
|
217
|
+
handler() {
|
|
218
|
+
const t = this.$refs.refTable, e = this.getChildRens(this.tableData);
|
|
219
|
+
p(JSON.parse(JSON.stringify(this.tableData)), "children").map((s) => {
|
|
220
|
+
e.includes(s.id) ? t.toggleRowExpansion(s, !1) : t.toggleRowExpansion(s, !0);
|
|
221
|
+
});
|
|
222
|
+
},
|
|
223
|
+
deep: !0
|
|
224
|
+
},
|
|
225
|
+
tableData: {
|
|
226
|
+
handler() {
|
|
227
|
+
this.keyValue = void 0, this.numbers = 0;
|
|
228
|
+
},
|
|
229
|
+
deep: !0
|
|
230
|
+
},
|
|
231
|
+
language: {
|
|
232
|
+
handler() {
|
|
233
|
+
this.$nextTick(() => {
|
|
234
|
+
setTimeout(() => {
|
|
235
|
+
this.$refs.refTable.doLayout();
|
|
236
|
+
}, 0);
|
|
237
|
+
});
|
|
238
|
+
},
|
|
239
|
+
deep: !0
|
|
240
|
+
},
|
|
241
|
+
size: {
|
|
242
|
+
handler(t) {
|
|
243
|
+
this.$nextTick(() => {
|
|
244
|
+
setTimeout(() => {
|
|
245
|
+
this.customSize = t, this.$refs.refTable.doLayout(), this.getWid();
|
|
246
|
+
}, 0);
|
|
247
|
+
});
|
|
248
|
+
},
|
|
249
|
+
deep: !0
|
|
250
|
+
},
|
|
251
|
+
"$route.path"(t, e) {
|
|
252
|
+
t !== e && this.multiTab && this.$nextTick(() => {
|
|
253
|
+
setTimeout(() => {
|
|
254
|
+
this.$refs.refTable && this.$refs.refTable.doLayout();
|
|
255
|
+
}, 0);
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
methods: {
|
|
260
|
+
doLayout() {
|
|
261
|
+
this.$nextTick(() => {
|
|
262
|
+
setTimeout(() => {
|
|
263
|
+
this.$refs.refTable.doLayout();
|
|
264
|
+
}, 0);
|
|
265
|
+
});
|
|
266
|
+
},
|
|
267
|
+
getWid() {
|
|
268
|
+
let t = this.$refs.reftables;
|
|
269
|
+
this.wid = t ? t.clientWidth : this.wid;
|
|
270
|
+
},
|
|
271
|
+
setTableData(t, e = !1) {
|
|
272
|
+
this.tableData = t, this.loading = e;
|
|
273
|
+
},
|
|
274
|
+
selecTables(t, e) {
|
|
275
|
+
return !this.disabledRowId.includes(t.id);
|
|
276
|
+
},
|
|
277
|
+
changeFilter(t) {
|
|
278
|
+
this.visibleFilter = t;
|
|
279
|
+
},
|
|
280
|
+
closeFilter() {
|
|
281
|
+
this.$refs.filterdropdown.doClose();
|
|
282
|
+
},
|
|
283
|
+
cellClassNamed({ row: t, rowIndex: e }) {
|
|
284
|
+
return this.cellClassName && typeof this.cellClassName == "function" ? this.cellClassName({ row: t, rowIndex: e }) : "";
|
|
285
|
+
},
|
|
286
|
+
rowClassNamed({ row: t, rowIndex: e }) {
|
|
287
|
+
return this.rowClassName && typeof this.rowClassName == "function" ? this.rowClassName({ row: t, rowIndex: e }) : "";
|
|
288
|
+
},
|
|
289
|
+
columnChange(t) {
|
|
290
|
+
this.columns.filter((a) => a.fixed);
|
|
291
|
+
let e = [...t], l = 1;
|
|
292
|
+
return e.forEach((a, o) => {
|
|
293
|
+
e[o].fixed = !1, l < this.frozenColumn && a.checked && (e[o].fixed = !0, l++);
|
|
294
|
+
}), e.filter((a) => ["selection", "selection-radio"].includes(a.type) ? !1 : a.checked).length === 0 && (e = JSON.parse(JSON.stringify(e))), this.$emit("columnChange", e), this.columnsSetting = e, new Promise((a, o) => {
|
|
295
|
+
this.$nextTick(() => {
|
|
296
|
+
setTimeout(() => {
|
|
297
|
+
this.$refs.refTable.doLayout(), a();
|
|
298
|
+
}, 0);
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
},
|
|
302
|
+
summaries(t) {
|
|
303
|
+
return this.$nextTick(() => {
|
|
304
|
+
setTimeout(() => {
|
|
305
|
+
this.$refs.refTable && this.$refs.refTable.doLayout();
|
|
306
|
+
}, 10);
|
|
307
|
+
}), this.amount(t);
|
|
308
|
+
},
|
|
309
|
+
spanMethod({ row: t, column: e }) {
|
|
310
|
+
if (e.property === this.columnKey) {
|
|
311
|
+
let l = 0, s = 0;
|
|
312
|
+
if (this.keyValue !== t[this.columnKey]) {
|
|
313
|
+
for (; l < this.tableData.length; )
|
|
314
|
+
this.tableData[l][this.columnKey] === t[this.columnKey] && s++, l++;
|
|
315
|
+
this.keyValue = t[this.columnKey];
|
|
316
|
+
} else
|
|
317
|
+
s = 0;
|
|
318
|
+
return {
|
|
319
|
+
rowspan: s,
|
|
320
|
+
colspan: 1
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
handlerClick(t) {
|
|
325
|
+
this.$emit("handlerClick", t);
|
|
326
|
+
},
|
|
327
|
+
handleButton(t, e, l) {
|
|
328
|
+
this.$emit("handleButton", {
|
|
329
|
+
methods: t,
|
|
330
|
+
row: e
|
|
331
|
+
});
|
|
332
|
+
},
|
|
333
|
+
handleFilterChange(t) {
|
|
334
|
+
this.$emit("handleFilterChange", t);
|
|
335
|
+
},
|
|
336
|
+
handleSelectionChange(t) {
|
|
337
|
+
if (!this.loading) {
|
|
338
|
+
const e = this.rowKey || "index";
|
|
339
|
+
let l = [];
|
|
340
|
+
t.forEach((s, a) => {
|
|
341
|
+
l.push(s[e]);
|
|
342
|
+
}), this.$emit("onChange", l, t);
|
|
343
|
+
return;
|
|
344
|
+
}
|
|
345
|
+
this.selectedKeep && this.$emit("onChange", this.selectedRowKeys, []);
|
|
346
|
+
},
|
|
347
|
+
changRadio(t) {
|
|
348
|
+
if (this.loading)
|
|
349
|
+
return;
|
|
350
|
+
const e = this.rowKey || "index", l = this.tableData.filter((s) => s[e] === t)[0];
|
|
351
|
+
this.$emit("onChange", [l[e]], [l]);
|
|
352
|
+
},
|
|
353
|
+
handleSelect(t, e) {
|
|
354
|
+
this.$emit("handleSelect", t, e);
|
|
355
|
+
},
|
|
356
|
+
selectAll(t) {
|
|
357
|
+
this.$emit("selectAll", t);
|
|
358
|
+
},
|
|
359
|
+
rowClick(t, e, l) {
|
|
360
|
+
this.$emit("rowClick", t, e);
|
|
361
|
+
},
|
|
362
|
+
handleSizeChange(t) {
|
|
363
|
+
this.pageSized = t, this.currentPage > this.totalPages && (this.currentPage = this.totalPages), this.selectedKeep || this.$emit("onChange", [], []), this.loadData();
|
|
364
|
+
},
|
|
365
|
+
handleCurrentChange(t) {
|
|
366
|
+
this.currentPage = t, this.selectedKeep || this.$emit("onChange", [], []), this.loadData();
|
|
367
|
+
},
|
|
368
|
+
expandChange(t, e) {
|
|
369
|
+
this.$emit("expandChange", { val: t, expanded: e });
|
|
370
|
+
},
|
|
371
|
+
getChildRens(t) {
|
|
372
|
+
const e = [];
|
|
373
|
+
return t.map((l) => {
|
|
374
|
+
if (this.tableExpand.includes(l.id) || e.push(l.id), Object.prototype.hasOwnProperty.call(l, "children")) {
|
|
375
|
+
const s = this.getChildRens(l.children);
|
|
376
|
+
e.push(...s);
|
|
377
|
+
}
|
|
378
|
+
}), e;
|
|
379
|
+
},
|
|
380
|
+
handleCurrentRowChange(t) {
|
|
381
|
+
this.$emit("handleCurrentRowChange", t);
|
|
382
|
+
},
|
|
383
|
+
handleHeaderDragEnd() {
|
|
384
|
+
this.$nextTick(() => {
|
|
385
|
+
this.$refs.refTable.doLayout();
|
|
386
|
+
});
|
|
387
|
+
},
|
|
388
|
+
changColumnHeight(t) {
|
|
389
|
+
this.customSize = t, this.$nextTick(() => {
|
|
390
|
+
this.$refs.refTable.doLayout();
|
|
391
|
+
});
|
|
392
|
+
},
|
|
393
|
+
sortChange({ prop: t, order: e }) {
|
|
394
|
+
this.sorter = e ? { sortField: t, sortOrder: e.replace("ending", "") } : {}, this.loadData();
|
|
395
|
+
},
|
|
396
|
+
loadData() {
|
|
397
|
+
if (this.loading)
|
|
398
|
+
return;
|
|
399
|
+
this.loading = !0;
|
|
400
|
+
const t = this.dataSource(Object.assign({ ...this.sorter }, { pageNo: this.currentPage, pageSize: this.pageSized }));
|
|
401
|
+
(typeof t == "object" || typeof t == "function") && typeof t.then == "function" ? t.then((e) => {
|
|
402
|
+
let l = e && e.rows ? e.rows : [];
|
|
403
|
+
this.tableData = l, this.currentPage = e.pageno, this.total = e.totalrows, this.getWid(), this.toggleRowSelection();
|
|
404
|
+
}) : this.loading = !1;
|
|
405
|
+
},
|
|
406
|
+
loadColumns() {
|
|
407
|
+
return new Promise((t) => {
|
|
408
|
+
this.$nextTick(() => {
|
|
409
|
+
this.columnsSetting = [...this.columns], this.$emit("columnChange", this.columnsSetting);
|
|
410
|
+
const e = this.columns.filter((l) => l.fixed);
|
|
411
|
+
this.frozenColumn = e.length, setTimeout(() => {
|
|
412
|
+
this.$refs.columnSettings.init(), this.$refs.refTable.doLayout(), t(!0);
|
|
413
|
+
}, 0);
|
|
414
|
+
});
|
|
415
|
+
});
|
|
416
|
+
},
|
|
417
|
+
setLoadData(t) {
|
|
418
|
+
this.tableData = [...t], this.total = t.length;
|
|
419
|
+
},
|
|
420
|
+
getLoadData() {
|
|
421
|
+
return new Promise((t, e) => {
|
|
422
|
+
t(this.tableData);
|
|
423
|
+
});
|
|
424
|
+
},
|
|
425
|
+
toggleRowSelectioClear(t) {
|
|
426
|
+
if (!this.selectionType) {
|
|
427
|
+
this.loading = !1;
|
|
428
|
+
return;
|
|
429
|
+
}
|
|
430
|
+
this.selectionType === "radio" && (this.currentRow = t[0] ? t[0] : ""), this.$nextTick(async () => {
|
|
431
|
+
setTimeout(async () => {
|
|
432
|
+
const e = this.rowKey || "index";
|
|
433
|
+
let l = [];
|
|
434
|
+
const s = (i, r) => (i = i.filter((c, h) => (t.includes(c[e]) && l.push(c), c.children && c.children.length > 0 && s(c.children), !0)), i);
|
|
435
|
+
await s(this.tableData);
|
|
436
|
+
const a = t.filter((i) => {
|
|
437
|
+
let r = null;
|
|
438
|
+
return this.tableData.filter((c) => {
|
|
439
|
+
if (i === c[e] && (r = c), c.children && c.children.length > 0) {
|
|
440
|
+
const h = c.children.filter((f) => i === f[e])[0];
|
|
441
|
+
r = h || r;
|
|
442
|
+
}
|
|
443
|
+
return !0;
|
|
444
|
+
})[0], !r;
|
|
445
|
+
});
|
|
446
|
+
let o = [];
|
|
447
|
+
for (let i = 0; i < a.length; i++) {
|
|
448
|
+
let r = /* @__PURE__ */ new Map();
|
|
449
|
+
r.set(e, a[i]), o.push(Object.fromEntries(r));
|
|
450
|
+
}
|
|
451
|
+
const d = l.concat(o);
|
|
452
|
+
let n = [];
|
|
453
|
+
for (let i = 0; i < d.length; i++) {
|
|
454
|
+
let r = new Promise((c, h) => {
|
|
455
|
+
this.$refs.refTable.toggleRowSelection(d[i], !1), c(i);
|
|
456
|
+
});
|
|
457
|
+
n.push(r);
|
|
458
|
+
}
|
|
459
|
+
Promise.all(n).then((i) => {
|
|
460
|
+
this.loading = !1;
|
|
461
|
+
});
|
|
462
|
+
}, 10);
|
|
463
|
+
});
|
|
464
|
+
},
|
|
465
|
+
async toggleRowSelection() {
|
|
466
|
+
if (!this.selectionType) {
|
|
467
|
+
this.loading = !1;
|
|
468
|
+
return;
|
|
469
|
+
}
|
|
470
|
+
this.selectionType === "radio" && (this.currentRow = this.selectedRowKeys[0] ? this.selectedRowKeys[0] : ""), this.$nextTick(async () => {
|
|
471
|
+
setTimeout(async () => {
|
|
472
|
+
const t = this.rowKey || "index";
|
|
473
|
+
let e = [];
|
|
474
|
+
const l = (n, i) => (n = n.filter((r, c) => (this.selectedRowKeys.includes(r[t]) && e.push(r), r.children && r.children.length > 0 && l(r.children), !0)), n);
|
|
475
|
+
await l(this.tableData);
|
|
476
|
+
const s = this.selectedRowKeys.filter((n) => !this.tableData.filter((r) => n === r[t])[0]);
|
|
477
|
+
let a = [];
|
|
478
|
+
for (let n = 0; n < s.length; n++) {
|
|
479
|
+
let i = /* @__PURE__ */ new Map();
|
|
480
|
+
i.set(t, s[n]), a.push(Object.fromEntries(i));
|
|
481
|
+
}
|
|
482
|
+
const o = e.concat(a);
|
|
483
|
+
let d = [];
|
|
484
|
+
for (let n = 0; n < o.length; n++) {
|
|
485
|
+
let i = new Promise((r, c) => {
|
|
486
|
+
this.$refs.refTable.toggleRowSelection(o[n], !0), r(n);
|
|
487
|
+
});
|
|
488
|
+
d.push(i);
|
|
489
|
+
}
|
|
490
|
+
Promise.all(d).then((n) => {
|
|
491
|
+
this.loading = !1;
|
|
492
|
+
});
|
|
493
|
+
}, 10);
|
|
494
|
+
});
|
|
495
|
+
},
|
|
496
|
+
refresh(t = !0) {
|
|
497
|
+
!this.selectedKeep && t && this.$emit("onChange", [], []), t && (this.currentPage = 1), this.loadData();
|
|
498
|
+
},
|
|
499
|
+
clearAll() {
|
|
500
|
+
if (this.state || this.loading)
|
|
501
|
+
return;
|
|
502
|
+
let t = [];
|
|
503
|
+
for (let e in this.sorter)
|
|
504
|
+
t.push(e);
|
|
505
|
+
t.length !== 0 && (this.state = !0, this.sorter = {}, this.$refs.refTable.clearSort(), this.$refs.refTable.clearFilter(), setTimeout(() => {
|
|
506
|
+
this.refresh(), this.state = !1;
|
|
507
|
+
}, 100));
|
|
508
|
+
},
|
|
509
|
+
fadeColor(t, e) {
|
|
510
|
+
let l = parseInt(t.substring(1, 3), 16), s = parseInt(t.substring(3, 5), 16), a = parseInt(t.substring(5, 7), 16);
|
|
511
|
+
return `rgba(${l},${s},${a},${e})`;
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
created() {
|
|
515
|
+
this.columnsSetting = [...this.columns];
|
|
516
|
+
const t = this.columns.filter((e) => e.fixed);
|
|
517
|
+
this.frozenColumn = t.length, this.initialLoading && this.loadData();
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
var b = function() {
|
|
521
|
+
var e = this, l = e._self._c;
|
|
522
|
+
return l("div", { ref: "reftables", staticClass: "gd-tables", style: { "--theme": e.primaryColor, "--fadecolor": e.fadeColord }, attrs: { id: "reftables" } }, [l("div", { staticClass: "tables-tool" }, [l("div", { staticClass: "tables-tool-l" }, [e._t("operator")], 2), l("div", { staticClass: "tables-tool-r" }, [e.hasClear ? l("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.basics.reset", "\u91CD\u7F6E"), placement: "bottom" } }, [l("i", { staticClass: "el-icon-brush", on: { click: e.clearAll } })]) : e._e(), e.filtering ? l("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.basics.screen", "\u7B5B\u9009"), placement: "bottom" } }, [l("el-popover", { ref: "filterdropdown", attrs: { trigger: "click", placement: "bottom" }, on: { show: function(s) {
|
|
523
|
+
return e.changeFilter(!0);
|
|
524
|
+
}, hide: function(s) {
|
|
525
|
+
return e.changeFilter(!1);
|
|
526
|
+
} } }, [l("span", { staticClass: "el-dropdown-link", attrs: { slot: "reference" }, slot: "reference" }, [l("i", { staticClass: "gd-icons gd-icon-a-guangqi_guolv11x" })]), l("div", [e._t("filtering", null, { columns: e.columns, height: e.height, colse: e.closeFilter, visible: e.visibleFilter })], 2)])], 1) : e._e(), e.isGather ? l("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.basics.chart", "\u56FE\u8868"), placement: "bottom" } }, [l("i", { staticClass: "gd-icons gd-icon-zhuzhuangtu", on: { click: function(s) {
|
|
527
|
+
return e.$emit("baseSeecharts");
|
|
528
|
+
} } })]) : e._e(), e.disabledRefresh ? e._e() : l("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.basics.refresh", "\u5237\u65B0"), placement: "bottom" } }, [l("i", { staticClass: "el-icon-refresh", on: { click: function(s) {
|
|
529
|
+
return e.refresh(!1);
|
|
530
|
+
} } })]), l("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.basics.density", "\u5BC6\u5EA6"), placement: "bottom" } }, [l("el-dropdown", { attrs: { trigger: "click", placement: "bottom" }, on: { command: e.changColumnHeight } }, [l("span", { staticClass: "el-dropdown-link" }, [l("i", { staticClass: "el-icon-s-operation" })]), l("el-dropdown-menu", { attrs: { slot: "dropdown" }, slot: "dropdown" }, [l("el-dropdown-item", { style: e.customSize === "medium" ? e.dropdownActive : "", attrs: { command: "medium" } }, [e._v(" " + e._s(e.$i18nt("gd.basics.default", "\u9ED8\u8BA4")) + " ")]), l("el-dropdown-item", { style: e.customSize === "small" ? e.dropdownActive : "", attrs: { command: "small" } }, [e._v(" " + e._s(e.$i18nt("gd.basics.secondary", "\u4E2D\u7B49")) + " ")]), l("el-dropdown-item", { style: e.customSize === "mini" ? e.dropdownActive : "", attrs: { command: "mini" } }, [e._v(" " + e._s(e.$i18nt("gd.basics.compact", "\u7D27\u51D1")) + " ")])], 1)], 1)], 1), e.disabledColumnSettings ? e._e() : l("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.basics.columnSettings", "\u5217\u8BBE\u7F6E"), placement: "bottom" } }, [l("el-dropdown", { attrs: { trigger: "click", placement: "bottom" } }, [l("span", { staticClass: "el-dropdown-link" }, [l("i", { staticClass: "el-icon-setting" })]), l("el-dropdown-menu", { attrs: { slot: "dropdown" }, slot: "dropdown" }, [l("gd-column-settings", { ref: "columnSettings", attrs: { columns: e.columns, height: e.height }, on: { columnChange: e.columnChange } })], 1)], 1)], 1)], 1)]), l("u-table", { directives: [{ name: "loading", rawName: "v-loading", value: e.loading, expression: "loading" }], ref: "refTable", staticClass: "table", class: e.border ? "" : "table-border", staticStyle: { width: "100%" }, attrs: { "row-height": e.getRowHeight, "use-virtual": "", stripe: e.stripe, "row-key": e.rowKey, "expand-row-keys": e.tableExpand, "tree-props": e.tableTree ? { children: "children", hasChildren: "isLeaf" } : void 0, tooltip: !0, border: e.border, size: e.customSize, indent: e.indent, lazy: e.lazy, "show-summary": e.showSummary, "summary-method": e.summaries, "default-expand-all": e.defaultExpandAll, "virtual-scroll": !0, "element-loading-background": "rgba(255, 255, 255, 0.8)", "element-loading-spinner": "el-icon-loading", data: e.tableData, "cell-style": e.cellStyle, height: e.height || null, "max-height": e.maxHeight || null, "default-sort": { prop: "id", order: null }, load: e.lazy ? e.load : null, "span-method": e.method ? e.spanMethod : null, "header-cell-style": e.headerCellStyle, "cell-class-name": e.cellClassNamed, "row-class-name": e.rowClassNamed }, on: { "sort-change": e.sortChange, "filter-change": e.handleFilterChange, "selection-change": e.handleSelectionChange, "row-click": e.rowClick, "expand-change": e.expandChange, "select-all": e.selectAll, select: e.handleSelect, "current-change": e.handleCurrentRowChange, "header-dragend": e.handleHeaderDragEnd } }, [e._l(e.getColumns, function(s, a) {
|
|
531
|
+
return [s.type == "selection" ? [l("u-table-column", { attrs: { type: "selection", width: s.width, fixed: s.fixed ? s.fixed : !1, align: s.align ? s.align : "center", selectable: e.selecTables } })] : s.type == "selection-radio" ? [l("u-table-column", { key: s.key ? s.key : a, attrs: { width: s.width, label: "", fixed: s.fixed ? s.fixed : !1, align: s.align ? s.align : "center" }, scopedSlots: e._u([{ key: "default", fn: function(o) {
|
|
532
|
+
return [l("el-radio", { attrs: { label: o.row[e.rowKey], size: "small" }, on: { input: e.changRadio }, model: { value: e.currentRow, callback: function(d) {
|
|
533
|
+
e.currentRow = d;
|
|
534
|
+
}, expression: "currentRow" } }, [e._v(" " + e._s("") + " ")])];
|
|
535
|
+
} }], null, !0) })] : s.hidden != !1 && s.type !== "slot" && s.type != "expand" && s.type != "selection-radio" ? [l("u-table-column", { attrs: { width: s.width, prop: s.prop, label: e.$i18nt(s.transKey, s.label), fixed: s.fixed ? s.fixed : !1, title: e.$i18nt(s.transKey, s.label) } })] : s.type == "expand" ? [l("u-table-column", { key: s.key ? s.key : a, attrs: { width: s.width, label: e.$i18nt(s.transKey, s.label), type: "expand" }, scopedSlots: e._u([{ key: "default", fn: function(o) {
|
|
536
|
+
return [e._t(s.slotType, null, { row: o.row, index: o.$index })];
|
|
537
|
+
} }], null, !0) })] : s.type === "slot" ? [l("u-table-column", { key: s.key ? s.key : a, attrs: { width: s.width, "show-overflow-tooltip": typeof s.showTooltip > "u" ? !0 : s.showTooltip, "min-width": s.minWidth, prop: s.prop, label: e.$i18nt(s.transKey, s.label), fixed: s.fixed ? s.fixed : !1, sortable: s.sortable ? s.sortable : !1, align: s.align ? s.align : "center", "render-header": s.renderHeader, filters: s.filters, "filter-method": s.filterTag, "filter-placement": "bottom-end", "reserve-selection": s.reserveSelection, type: s.colType }, scopedSlots: e._u([{ key: "default", fn: function(o) {
|
|
538
|
+
return [e._t(s.slotType, null, { row: o.row, index: o.$index, column: o.column })];
|
|
539
|
+
} }], null, !0) })] : e._e()];
|
|
540
|
+
}), l("template", { slot: "empty" }, [l("div", { staticClass: "gd-table-empty" }, [l("i", { staticClass: "el-icon-receiving" }), l("div", { staticClass: "empty-title" }, [e._v(" " + e._s(e.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")) + " ")])])])], 2), l("div", { staticClass: "gd-paging" }, [e.showPagination ? l("el-pagination", { attrs: { background: "", "page-sizes": e.pageSizes, "page-size": e.pageSized, "current-page": e.currentPage, layout: "total, sizes, prev, pager, next, jumper", total: e.total }, on: { "update:currentPage": function(s) {
|
|
541
|
+
e.currentPage = s;
|
|
542
|
+
}, "update:current-page": function(s) {
|
|
543
|
+
e.currentPage = s;
|
|
544
|
+
}, "size-change": e.handleSizeChange, "current-change": e.handleCurrentChange } }) : e._e()], 1)], 1);
|
|
545
|
+
}, w = [], C = /* @__PURE__ */ m(
|
|
546
|
+
y,
|
|
547
|
+
b,
|
|
548
|
+
w,
|
|
549
|
+
!1,
|
|
550
|
+
null,
|
|
551
|
+
"0b2ba49e",
|
|
552
|
+
null,
|
|
553
|
+
null
|
|
554
|
+
);
|
|
555
|
+
const u = C.exports;
|
|
556
|
+
u.install = function(t) {
|
|
557
|
+
t.component(u.name, u);
|
|
558
|
+
};
|
|
559
|
+
export {
|
|
560
|
+
u as G
|
|
561
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./components.chartbi.e4680eaa.js"),u=require("./http.main.2f8a6936.js");require("./utils.echarts.js.461a74e7.js");require("./utils.util.js.50d1ec9c.js");const p={name:"GdTeamSharing",props:{tableNames:{type:String,default:"sys_user,sys_team"},tableData:{type:Object,default:()=>({})},isInterface:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1}},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],operatorButtons:[{displayName:"\u6DFB\u52A0\u7528\u6237/\u56E2\u961F",functionName:"selRecord",show:!0,transKey:"gd.teamSharing.addut",icon:"el-icon-plus"},{displayName:"\u5220\u9664\u5DF2\u9009",functionName:"delRecord",show:!0,transKey:"gd.teamSharing.delSelected",icon:"el-icon-delete",btnType:"danger"}],id:"",visible:!1,confirmLoading:!1,fullscreen:!1,selectedAllRowKeys:[],selectedRowKeys:[],selectedRows:[],width:"90%",loadDataList:s=>new Promise((e,t)=>{e({pageNo:1,pageSize:100,totalRows:0,rows:this.loadData})}),loadData:[],loadOldData:[],columns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.teamSharing.name",prop:"name",label:"\u7528\u6237\u540D\u79F0",align:"left"},{transKey:"gd.teamSharing.query",prop:"isQuery",label:"\u67E5\u8BE2",type:"slot",slotType:"isQuery",align:"center",width:"120px"},{transKey:"gd.teamSharing.edit",prop:"isEdit",label:"\u7F16\u8F91",type:"slot",slotType:"isEdit",align:"center",width:"120px"},{transKey:"gd.teamSharing.delete",prop:"isDelete",label:"\u5220\u9664",type:"slot",slotType:"isDelete",align:"center",width:"120px"},{transKey:"gd.https.assign",prop:"isAllocation",label:"\u5206\u6D3E",type:"slot",slotType:"isAllocation",align:"center",width:"120px"},{transKey:"gd.teamSharing.share",prop:"isShare",label:"\u5171\u4EAB",type:"slot",slotType:"isShare",align:"center",width:"120px"},{transKey:"gd.teamSharing.source",prop:"source",label:"\u6765\u6E90",align:"left",type:"slot",slotType:"source"}]}},computed:{height(){return this.screenHeight-(this.fullscreen?130:280)},...h.mapGetters(["screenHeight","tableLists","tableSize","tablePageSize"])},methods:{handleSubmit(){let s=this;s.confirmLoading=!0;const e=this.$refs.table.tableData;if(e.length===0&&this.loadOldData.length===0){this.$message.warning(this.$i18nt("gd.teamSharing.addutTip","\u8BF7\u6DFB\u52A0\u7528\u6237/\u56E2\u961F!")),s.confirmLoading=!1;return}this.$confirm(this.$i18nt("gd.https.confirmSaveTip","\u662F\u5426\u786E\u8BA4\u4FDD\u5B58\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.saveOk","\u786E\u8BA4\u4FDD\u5B58"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,i,a)=>{if(t!=="confirm"){s.confirmLoading=!1,a();return}i.confirmButtonLoading=!0,i.cancelButtonLoading=!0,i.showCancelButton=!1;let n=[],o=[];e.forEach(l=>{o.push(l.ids);const d=s.loadOldData.filter(f=>l.ids===f.ids)[0];n.push({isdelete:l.isdelete?1:0,isedit:l.isedit?1:0,isquery:l.isquery?1:0,isshare:l.isshare?1:0,isallocation:l.isallocation?1:0,dataid:l.dataid,userteamid_aboutid:l.userteamid_aboutid,userteamid_abouttable:l.userteamid_abouttable,name:l.name,type:d?2:1,id:d?d.id:0})});let r=s.loadOldData.filter(l=>!o.includes(l.ids)).map(l=>(l.isdelete=l.isdelete?1:0,l.isedit=l.isedit?1:0,l.isquery=l.isquery?1:0,l.isshare=l.isshare?1:0,l.isallocation=l.isallocation?1:0,l.type=3,l));if(this.isInterface){let l={tablename:s.tableData.tablename,dataid:s.id,list:n.concat(r)};u.baseSharedDataSave(l).then(d=>{i.confirmButtonLoading=!1,i.cancelButtonLoading=!1,i.showCancelButton=!0,s.confirmLoading=!1,d.success?(s.$message.success(s.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),s.$emit("ok",l),s.closed()):s.$message.error(s.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+d.message)})}else{let l={tablename:s.tableData.tablename,dataid:s.id,list:n};s.$message.success(s.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),s.$emit("ok",l),s.closed()}}})},delRecord(){this.selectedRowKeys.length!==0&&this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,e,t)=>{if(t(),s!=="confirm")return;const i=this.$refs.table.tableData,a=i.filter(o=>!this.selectedRowKeys.includes(o.ids)),n=i.filter(o=>this.selectedRowKeys.includes(o.ids));this.selectedAllRowKeys=this.selectedAllRowKeys.filter(o=>!n.filter(l=>l.userteamid_aboutid===o)[0]),this.loadData=[...a],this.refresh()}})},lookupSeled(s){const e=this.$refs.table.tableData,t=e.filter(a=>s.data.includes(a.userteamid_aboutid));let i=[...t];s.fkData.forEach(a=>{if(!t.filter(o=>o.userteamid_aboutid===a.id)[0]){const o=this.tableLists.filter(l=>l.tablename===a.tableName)[0],r=e.filter(l=>l.id===a.userteamid_aboutid)[0];i.push(Object.assign({...a},{transkey:o.transkey,busname:o.busname,isquery:!0,isedit:!1,isdelete:!1,isshare:!1,isallocation:!1,userteamid_abouttable:o.tablename,userteamid_aboutid:a.id,dataid:this.id,ids:`${a.id}&${o.tablename}`},r?{isquery:r.isquery,isedit:r.isedit,isdelete:r.isdelete,isshare:r.isshare,isallocation:r.isallocation}:{}))}}),this.selectedAllRowKeys=[...s.data],this.loadData=[...i],this.refresh()},selRecord(){this.$refs.viewSearch.open({fkEntityName:this.tableNames,effectType:"participants",val:this.selectedAllRowKeys})},open(s){if(this.visible=!0,this.loadOldData=[],this.isInterface)this.id=s,this.getShared();else{if(s.extensionobj){let e=[];this.loadData=[...JSON.parse(s.extensionobj)].map(t=>{const i=this.tableLists.filter(a=>a.tablename===t.userteamid_abouttable)[0];return t.isdelete=t.isdelete===1,t.isedit=t.isedit===1,t.isquery=t.isquery===1,t.isshare=t.isshare===1,t.isallocation=t.isallocation===1,t.transkey=i.transkey,t.busname=i.busname,t.ids=`${t.userteamid_aboutid}&${i.tablename}`,e.push(t.userteamid_aboutid),t}),this.loadOldData=JSON.parse(s.extensionobj),this.selectedAllRowKeys=[...e]}this.$nextTick(()=>{setTimeout(()=>{this.refresh()},0)}),this.confirmLoading=!1}},getShared(){this.confirmLoading=!0,u.baseGetShared({id:this.id,tableName:this.tableData.tablename}).then(s=>{if(s.success){let e=[];this.loadData=[...s.data].map(t=>{const i=this.tableLists.filter(a=>a.tablename===t.userteamid_abouttable)[0];return t.isdelete=t.isdelete===1,t.isedit=t.isedit===1,t.isquery=t.isquery===1,t.isshare=t.isshare===1,t.isallocation=t.isallocation===1,t.transkey=i.transkey,t.busname=i.busname,t.ids=`${t.userteamid_aboutid}&${i.tablename}`,e.push(t.userteamid_aboutid),t}),this.loadOldData=JSON.parse(JSON.stringify(s.data)),this.selectedAllRowKeys=[...e]}else this.$message.warning(s.message),this.confirmLoading=!1;this.$nextTick(()=>{setTimeout(()=>{this.refresh()},0)}),this.confirmLoading=!1})},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},refresh(){this.$refs.table.refresh(!0)},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()}}};var g=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,appendToBody:!0,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.teamSharing.title","\u5171\u4EAB"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("gd-tables",{ref:"table",attrs:{dataSource:e.loadDataList,size:e.tableSize,pageSize:e.tablePageSize,columns:e.columns,selectedRowKeys:e.selectedRowKeys,height:e.height,showPagination:!1,initialLoading:!1,disabledRefresh:!0,rowKey:"ids"},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[t("gd-btn-list",{attrs:{sysViewButtons:e.operatorButtons},on:{functionName:e.doEvent}})]},proxy:!0},{key:"isQuery",fn:function({column:i,row:a}){return[t("el-checkbox",{model:{value:a.isquery,callback:function(n){e.$set(a,"isquery",n)},expression:"row.isquery"}})]}},{key:"isEdit",fn:function({column:i,row:a}){return[t("el-checkbox",{model:{value:a.isedit,callback:function(n){e.$set(a,"isedit",n)},expression:"row.isedit"}})]}},{key:"isDelete",fn:function({column:i,row:a}){return[t("el-checkbox",{model:{value:a.isdelete,callback:function(n){e.$set(a,"isdelete",n)},expression:"row.isdelete"}})]}},{key:"isAllocation",fn:function({column:i,row:a}){return[t("el-checkbox",{model:{value:a.isallocation,callback:function(n){e.$set(a,"isallocation",n)},expression:"row.isallocation"}})]}},{key:"isShare",fn:function({column:i,row:a}){return[t("el-checkbox",{model:{value:a.isshare,callback:function(n){e.$set(a,"isshare",n)},expression:"row.isshare"}})]}},{key:"source",fn:function({column:i,row:a}){return[e._v(" "+e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.busname))+"/"+e._s(a.userteamid_abouttable)+" ")]}}],null,!1,428592404)}):e._e()],1)],2),t("gd-search",{ref:"viewSearch",attrs:{modalAppendToBody:e.modalAppendToBody,appendToBody:e.appendToBody},on:{lookupSeled:e.lookupSeled}})],1)},b=[],m=h.normalizeComponent(p,g,b,!1,null,"74494856",null,null);const c=m.exports;c.install=function(s){s.component(c.name,c)};exports.default=c;
|