gds-plus-design-vue 1.2.62 → 1.2.71
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.179a09f4.mjs +443 -0
- package/lib/addPermission.c72ebbe0.js +1 -0
- package/lib/approvalModel.7b550187.mjs +340 -0
- package/lib/approvalModel.7cfcac3c.js +1 -0
- package/lib/attribute.3fed1dd9.js +1 -0
- package/lib/attribute.e9a8faa1.mjs +367 -0
- package/lib/businessRules.cf106f09.js +1 -0
- package/lib/businessRules.d7d35011.mjs +539 -0
- package/lib/buttonRule.2afe380d.mjs +396 -0
- package/lib/buttonRule.737e8e3f.js +1 -0
- package/lib/chartDisplayRules.370065e8.mjs +288 -0
- package/lib/chartDisplayRules.c9162f81.js +1 -0
- package/lib/components.chartbi.3bbac955.js +8 -0
- package/lib/components.chartbi.571c5ff5.mjs +1813 -0
- package/lib/components.coloreditor.06cf0433.mjs +1505 -0
- package/lib/components.coloreditor.f81d322a.js +6 -0
- package/lib/components.dataassign.21d3938b.mjs +147 -0
- package/lib/components.dataassign.565d22c0.js +1 -0
- package/lib/components.echarts.490abdfa.mjs +811 -0
- package/lib/components.echarts.fe84f881.js +4 -0
- package/lib/components.exception.374f2ad9.js +1 -0
- package/lib/components.exception.ee1c4f83.mjs +61 -0
- package/lib/components.form.5533a8c3.js +41 -0
- package/lib/components.form.db8af727.mjs +7813 -0
- package/lib/components.globalheader.2eb787a4.js +1 -0
- package/lib/components.globalheader.b3b35343.mjs +54 -0
- package/lib/components.iconselector.8940b1a9.mjs +1169 -0
- package/lib/components.iconselector.f5a58033.js +1 -0
- package/lib/components.imgpreview.d97cf25c.js +1 -0
- package/lib/components.imgpreview.f05b3e06.mjs +213 -0
- package/lib/components.lunccalendar.18f84642.js +1 -0
- package/lib/components.lunccalendar.2a097955.mjs +1137 -0
- package/lib/components.middleware.43b9b264.js +1 -0
- package/lib/components.middleware.de012955.mjs +148 -0
- package/lib/components.modaltitle.5060623f.mjs +127 -0
- package/lib/components.modaltitle.957cab33.js +1 -0
- package/lib/components.multitab.5eb6edff.mjs +140 -0
- package/lib/components.multitab.80eeb3ae.js +1 -0
- package/lib/components.selecttree.2fe70d88.js +1 -0
- package/lib/components.selecttree.756c4d22.mjs +170 -0
- package/lib/components.settingdrawer.29dbc31e.mjs +237 -0
- package/lib/components.settingdrawer.8c12650b.js +1 -0
- package/lib/components.sidemenu.0673fe0a.mjs +277 -0
- package/lib/components.sidemenu.240dfde7.js +1 -0
- package/lib/components.sidenavmenu.b1330d69.js +1 -0
- package/lib/components.sidenavmenu.fa81ff82.mjs +1147 -0
- package/lib/components.statuschange.858b72e8.js +1 -0
- package/lib/components.statuschange.fae4adba.mjs +116 -0
- package/lib/components.table.1e338902.js +8 -0
- package/lib/components.table.9ed77207.mjs +4650 -0
- package/lib/components.tableumy.1d804d70.js +1 -0
- package/lib/components.tableumy.3e1c9a5b.mjs +453 -0
- package/lib/components.tablevirtual.66890b2c.mjs +564 -0
- package/lib/components.tablevirtual.8e21a6e7.js +1 -0
- package/lib/components.teamsharing.3a17ddc0.mjs +373 -0
- package/lib/components.teamsharing.89e668fd.js +1 -0
- package/lib/components.tooltip.0ea7e2b1.js +1 -0
- package/lib/components.tooltip.376d95fe.mjs +86 -0
- package/lib/components.uploadfile.0a5a1608.mjs +228 -0
- package/lib/components.uploadfile.8e0e702c.js +1 -0
- package/lib/components.uploadimg.bc160e00.js +1 -0
- package/lib/components.uploadimg.decb0360.mjs +192 -0
- package/lib/components.verificationcode.140533c7.js +1 -0
- package/lib/components.verificationcode.7091b10b.mjs +71 -0
- package/lib/components.viewformdetails.940addba.js +1 -0
- package/lib/components.viewformdetails.d241c652.mjs +1081 -0
- package/lib/components.viewloading.1e9f4b3c.js +1 -0
- package/lib/components.viewloading.aae3aab4.mjs +99 -0
- package/lib/components.watermark.2ec3260c.mjs +53 -0
- package/lib/components.watermark.d9ec8130.js +2 -0
- package/lib/components.xlsxexport.0d1553b1.js +1 -0
- package/lib/components.xlsxexport.c33f83ca.mjs +263 -0
- package/lib/components.xlsximport.81df7841.mjs +922 -0
- package/lib/components.xlsximport.8c209857.js +1 -0
- package/lib/copy.8db86d9f.mjs +572 -0
- package/lib/copy.a8753f38.js +1 -0
- package/lib/createFile.04a6b293.js +1 -0
- package/lib/createFile.4cac1673.mjs +439 -0
- package/lib/createSubfolders.e105fa86.js +1 -0
- package/lib/createSubfolders.eac5ccae.mjs +154 -0
- package/lib/dialogLayout.bf435838.mjs +138 -0
- package/lib/dialogLayout.f0779aed.js +1 -0
- package/lib/drawerContainer.6ab3df46.mjs +163 -0
- package/lib/drawerContainer.8f9df583.js +1 -0
- package/lib/drawerLayout.b6c7c3c6.js +1 -0
- package/lib/drawerLayout.e3c0164d.mjs +119 -0
- package/lib/editForm.0f3fd3b0.js +1 -0
- package/lib/editForm.aef93ed0.mjs +434 -0
- package/lib/extendedAttributes.ea93dbaa.mjs +293 -0
- package/lib/extendedAttributes.ef3ead02.js +1 -0
- package/lib/fileSearch.43465e1c.js +1 -0
- package/lib/fileSearch.5c8a883d.mjs +363 -0
- package/lib/flow.designer.81c29f62.mjs +7673 -0
- package/lib/flow.designer.ffd0aa8b.js +1 -0
- package/lib/flow.list.4c05f2f0.js +1 -0
- package/lib/flow.list.ab420927.mjs +3032 -0
- package/lib/form.build.724d3357.js +1 -0
- package/lib/form.build.d04773f0.mjs +259 -0
- package/lib/form.designer.build.c82cb559.mjs +2529 -0
- package/lib/form.designer.build.dac501fa.js +1 -0
- package/lib/formFiled.4b5062d7.js +1 -0
- package/lib/formFiled.c949a27f.mjs +507 -0
- package/lib/gd-initial.js +1 -35
- package/lib/gd-initial.mjs +245 -91338
- package/lib/http.appmanage.b998818f.js +1 -0
- package/lib/http.appmanage.e389782d.mjs +50 -0
- package/lib/http.codegeneratemanage.b123bab3.mjs +120 -0
- package/lib/http.codegeneratemanage.e3db2f09.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.2583b5ae.mjs +42 -0
- package/lib/http.dictdatamanage.70545d8a.js +1 -0
- package/lib/http.dictmanage.3dc07b5d.js +1 -0
- package/lib/http.dictmanage.d8fe18dc.mjs +50 -0
- package/lib/http.duplicatechecking.9b79ce21.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.6fdfc693.js +1 -0
- package/lib/http.filedocument.8fa3fe2d.mjs +293 -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.aefea27d.mjs +517 -0
- package/lib/http.menumanage.3060f4c7.mjs +66 -0
- package/lib/http.menumanage.6d740f2c.js +1 -0
- package/lib/http.message.87f319d7.js +1 -0
- package/lib/http.message.ceb0a1c6.mjs +178 -0
- package/lib/http.noticemanage.2507d094.js +1 -0
- package/lib/http.noticemanage.2cdb23b8.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.0b1df8d5.mjs +58 -0
- package/lib/http.orgmanage.5162fd7a.js +1 -0
- package/lib/http.pluginmanage.54720675.mjs +82 -0
- package/lib/http.pluginmanage.6a876040.js +1 -0
- package/lib/http.posmanage.c0f80aec.js +1 -0
- package/lib/http.posmanage.ee6a7613.mjs +34 -0
- package/lib/http.promptmanagement.d115c4b0.js +1 -0
- package/lib/http.promptmanagement.dad4c6a7.mjs +42 -0
- package/lib/http.rolemanage.4d1101dd.js +1 -0
- package/lib/http.rolemanage.da5c40e9.mjs +146 -0
- package/lib/http.solution.b10d9197.mjs +91 -0
- package/lib/http.solution.c6b2634f.js +1 -0
- package/lib/http.sumberrules.0b68ce6d.js +1 -0
- package/lib/http.sumberrules.176d3d06.mjs +34 -0
- package/lib/http.sysapps.469d47f7.js +1 -0
- package/lib/http.sysapps.932ba43b.mjs +58 -0
- package/lib/http.syscodegenerateconfigmanage.6d2e5da0.mjs +42 -0
- package/lib/http.syscodegenerateconfigmanage.840f1136.js +1 -0
- package/lib/http.tabledevelopment.3dcb3e97.mjs +362 -0
- package/lib/http.tabledevelopment.a880bb76.js +1 -0
- package/lib/http.team.a9c609d5.mjs +90 -0
- package/lib/http.team.e45400d5.js +1 -0
- package/lib/http.timersmanage.6e894942.js +1 -0
- package/lib/http.timersmanage.c79afb66.mjs +146 -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.f8694b51.mjs +104 -0
- package/lib/http.useraffiliation.af2013ad.js +1 -0
- package/lib/http.useraffiliation.f2a29f92.mjs +90 -0
- package/lib/http.usermanage.6dcbc7de.js +1 -0
- package/lib/http.usermanage.f5491144.mjs +219 -0
- package/lib/http.webresource.1a1a768f.mjs +50 -0
- package/lib/http.webresource.7c01b9cd.js +1 -0
- package/lib/index.9deaa991.mjs +25906 -0
- package/lib/index.d95c407c.js +8 -0
- package/lib/layoutBlocks.26e1b57b.js +1 -0
- package/lib/layoutBlocks.31454610.mjs +413 -0
- package/lib/layoutItem.c1c836a1.js +1 -0
- package/lib/layoutItem.cf18143e.mjs +71 -0
- package/lib/layouts.2d06f3e9.js +2 -0
- package/lib/layouts.3b383d04.mjs +373 -0
- package/lib/main.09d48801.js +1 -0
- package/lib/main.28b7c398.js +1 -0
- package/lib/main.29e204f9.mjs +166 -0
- package/lib/main.33443996.mjs +231 -0
- package/lib/main.357c50d2.js +1 -0
- package/lib/{main.fb4a8edf.mjs → main.3e886f21.mjs} +113 -188
- package/lib/{main.7921130e.mjs → main.419a7b42.mjs} +4 -4
- package/lib/main.4a38d5f8.js +1 -0
- package/lib/{main.c569c0a5.mjs → main.60329866.mjs} +12 -10
- package/lib/main.60c2a1a2.js +1 -0
- package/lib/main.61c9e5c6.mjs +537 -0
- package/lib/main.643d21a0.mjs +552 -0
- package/lib/main.64ddb5f6.mjs +189 -0
- package/lib/main.728eaf53.js +1 -0
- package/lib/main.892caa37.js +1 -0
- package/lib/main.aea9b6a8.mjs +323 -0
- package/lib/main.b7a5a02b.js +1 -0
- package/lib/main.c71e5b11.js +1 -0
- package/lib/main.edc0b23b.js +1 -0
- package/lib/{main.5a6c881a.mjs → main.f520fcf5.mjs} +9 -8
- package/lib/manage.101f1aa9.js +1 -0
- package/lib/manage.f4000654.mjs +441 -0
- package/lib/messages.fieldconfiguration.0d98a290.mjs +1097 -0
- package/lib/messages.fieldconfiguration.ad4d11cf.js +1 -0
- package/lib/messages.messagetemplate.32273e00.js +7 -0
- package/lib/messages.messagetemplate.7adbbc58.mjs +1319 -0
- package/lib/messages.sendplan.7d0097c2.mjs +1054 -0
- package/lib/messages.sendplan.fbac188d.js +1 -0
- package/lib/messages.sendrecord.ef80d44a.js +2 -0
- package/lib/messages.sendrecord.f0d2fd54.mjs +651 -0
- package/lib/messages.templatelibrary.ec512390.js +2 -0
- package/lib/messages.templatelibrary.ff151513.mjs +808 -0
- package/lib/mobile.designer.componentstree.03f61105.js +1 -0
- package/lib/mobile.designer.componentstree.4a1442dc.mjs +2064 -0
- package/lib/mobile.designer.menutree.0a2f7911.mjs +1036 -0
- package/lib/mobile.designer.menutree.97bb4046.js +1 -0
- package/lib/moveFile.335ebc8d.js +1 -0
- package/lib/moveFile.d71c0824.mjs +276 -0
- package/lib/page.build.376104d5.mjs +3164 -0
- package/lib/page.build.37b26617.js +12 -0
- package/lib/page.designer.componentstree.0ffc933d.js +1 -0
- package/lib/page.designer.componentstree.b0ecddd8.mjs +2958 -0
- package/lib/page.designer.fieldfiltering.1ecd65a3.mjs +430 -0
- package/lib/page.designer.fieldfiltering.7e913256.js +1 -0
- package/lib/page.designer.menutree.2c1846bc.mjs +5952 -0
- package/lib/page.designer.menutree.c49d9ee6.js +1 -0
- package/lib/page.designer.operation.6179b661.js +1 -0
- package/lib/page.designer.operation.80b1a5d1.mjs +44 -0
- package/lib/page.designer.page.09402332.js +1 -0
- package/lib/page.designer.page.6d8232c7.mjs +10638 -0
- package/lib/personal.echarts.414b7e3d.mjs +268 -0
- package/lib/personal.echarts.b7ee86f4.js +1 -0
- package/lib/result.0c089066.mjs +639 -0
- package/lib/result.9282a717.js +1 -0
- package/lib/router.config.68077a12.js +1 -0
- package/lib/router.config.86225b11.mjs +1424 -0
- package/lib/solution.application.d459e382.js +1 -0
- package/lib/solution.application.e0d58df1.mjs +548 -0
- package/lib/solution.applicationmenu.71ef6b8e.mjs +508 -0
- package/lib/solution.applicationmenu.ae295083.js +1 -0
- package/lib/solution.approvalflow.436b3502.js +1 -0
- package/lib/solution.approvalflow.bef7fbdd.mjs +436 -0
- package/lib/solution.dict.acbe9c55.js +1 -0
- package/lib/solution.dict.ef98b194.mjs +769 -0
- package/lib/solution.menu.5c17348f.mjs +432 -0
- package/lib/solution.menu.cca5e1f9.js +1 -0
- package/lib/solution.plugin.90f8dcc1.mjs +347 -0
- package/lib/solution.plugin.f9a8063f.js +1 -0
- package/lib/solution.processflow.2692dac6.js +1 -0
- package/lib/solution.processflow.c1544b05.mjs +392 -0
- package/lib/solution.role.b1ab40dd.mjs +456 -0
- package/lib/solution.role.b28c4dbe.js +1 -0
- package/lib/solution.webresources.0b51beba.mjs +379 -0
- package/lib/solution.webresources.6961cc68.js +1 -0
- package/lib/solution.workflow.11e49e25.js +1 -0
- package/lib/solution.workflow.c48545d1.mjs +395 -0
- package/lib/store.config.03dd7b19.mjs +547 -0
- package/lib/store.config.556bd56b.js +1 -0
- package/lib/style.css +3 -3
- package/lib/system.account.1cadbf03.mjs +2093 -0
- package/lib/system.account.5cc9fe8d.js +216 -0
- package/lib/system.config.a0b94e40.js +1 -0
- package/lib/{system.config.00dd0a29.mjs → system.config.a9a1ee96.mjs} +7 -6
- package/lib/system.datasource.6c30ce25.js +1 -0
- package/lib/{system.datasource.eb8d16df.mjs → system.datasource.c103a9c2.mjs} +15 -64
- package/lib/{system.dict.787ff1ec.mjs → system.dict.0c229d1c.mjs} +269 -344
- package/lib/system.dict.6b000092.js +1 -0
- package/lib/system.document.f67c2994.mjs +667 -0
- package/lib/system.document.f8fd7af0.js +1 -0
- package/lib/system.duplicatechecking.94c7ce17.mjs +722 -0
- package/lib/system.duplicatechecking.f4cab147.js +1 -0
- package/lib/system.email.11ab6f31.js +1 -0
- package/lib/system.email.13823361.mjs +133 -0
- package/lib/system.fieldsecurity.2ef2881c.js +1 -0
- package/lib/{system.fieldsecurity.9d40595f.mjs → system.fieldsecurity.d35acd97.mjs} +486 -938
- package/lib/{system.file.eae6eac2.mjs → system.file.30d3e7bc.mjs} +84 -151
- package/lib/system.file.b9f8320c.js +1 -0
- package/lib/system.log.470d3efd.js +1 -0
- package/lib/{system.log.9bf208c1.mjs → system.log.815840d8.mjs} +24 -93
- package/lib/{system.machine.0130e762.mjs → system.machine.1665954f.mjs} +5 -25
- package/lib/system.machine.f8aff893.js +1 -0
- package/lib/{system.notice.dba4c597.mjs → system.notice.bef6c23c.mjs} +1075 -1255
- package/lib/system.notice.db26f308.js +1 -0
- package/lib/{system.noticereceived.0b88ef5d.mjs → system.noticereceived.0d293a87.mjs} +19 -27
- package/lib/system.noticereceived.84b88b9a.js +1 -0
- package/lib/system.onlineuser.985621a6.js +1 -0
- package/lib/{system.onlineuser.bfc3abf2.mjs → system.onlineuser.bccb1cd9.mjs} +36 -38
- package/lib/{system.org.6da23c73.mjs → system.org.92f4d7f1.mjs} +3 -3
- package/lib/system.org.9f87a010.js +1 -0
- package/lib/system.permissions.15e6b8b7.js +1 -0
- package/lib/system.permissions.be9238ee.mjs +972 -0
- package/lib/system.plugin.0bccfec4.js +1 -0
- package/lib/{system.plugin.f8765f96.mjs → system.plugin.af27d7ac.mjs} +503 -552
- package/lib/system.pos.61e58a92.js +1 -0
- package/lib/{system.pos.5645b45a.mjs → system.pos.fe067063.mjs} +31 -62
- package/lib/{system.promptmanagement.cd19d086.mjs → system.promptmanagement.0b9083c5.mjs} +318 -450
- package/lib/system.promptmanagement.e750de82.js +1 -0
- package/lib/{system.role.0c6c327d.mjs → system.role.67f62146.mjs} +512 -486
- package/lib/system.role.e86b60f1.js +1 -0
- package/lib/{system.sumberrules.b48c028c.mjs → system.sumberrules.093d998e.mjs} +169 -192
- package/lib/system.sumberrules.810f7b55.js +1 -0
- package/lib/system.team.58ee701b.js +1 -0
- package/lib/system.team.8911fd95.mjs +452 -0
- package/lib/system.teammembers.1880f962.js +1 -0
- package/lib/{system.teammembers.e23e15d9.mjs → system.teammembers.35564a00.mjs} +257 -199
- package/lib/{system.timers.63d03fc9.mjs → system.timers.4b2d509f.mjs} +2202 -2278
- package/lib/system.timers.9e956553.js +38 -0
- package/lib/system.translation.26b6bb39.js +1 -0
- package/lib/{system.translation.52452a24.mjs → system.translation.60ec676c.mjs} +437 -431
- package/lib/system.user.134a3988.js +14 -0
- package/lib/{system.user.8d97a219.mjs → system.user.9a02295e.mjs} +1082 -1025
- package/lib/{system.useraffiliation.3075aa2c.mjs → system.useraffiliation.96695aeb.mjs} +419 -412
- package/lib/system.useraffiliation.c2421c7e.js +1 -0
- package/lib/{system.webresource.7df0cf1e.mjs → system.webresource.016d0000.mjs} +177 -219
- package/lib/system.webresource.e92e8a8f.js +1 -0
- package/lib/{system.welcome.14785b50.mjs → system.welcome.127b5dd4.mjs} +10 -3
- package/lib/system.welcome.ff0c85e2.js +1 -0
- package/lib/table.definition..btnconfig.9847cac5.mjs +938 -0
- package/lib/table.definition..btnconfig.ce57ed41.js +1 -0
- package/lib/table.definition..echartsconfig.625bce88.mjs +2150 -0
- package/lib/table.definition..echartsconfig.d2b65881.js +1 -0
- package/lib/tableDescriptions.a4196776.mjs +80 -0
- package/lib/tableDescriptions.b9b0d7fa.js +1 -0
- package/lib/tcheckboxs.7ea99d35.js +1 -0
- package/lib/tcheckboxs.999b7c2e.mjs +52 -0
- package/lib/tcurrency.4afb9192.mjs +85 -0
- package/lib/tcurrency.8a2361f2.js +1 -0
- package/lib/tdatepicker.606214fa.mjs +52 -0
- package/lib/tdatepicker.8e94a60c.js +1 -0
- package/lib/tdictSwitch.ccbdd153.js +1 -0
- package/lib/tdictSwitch.e016d4cf.mjs +60 -0
- package/lib/tfile.3f39223d.mjs +62 -0
- package/lib/tfile.b3ebdc71.js +1 -0
- package/lib/tparticipants.5fe27540.mjs +56 -0
- package/lib/tparticipants.78c8c175.js +1 -0
- package/lib/translation.mains.2688be5b.mjs +383 -0
- package/lib/translation.mains.a6f19343.js +1 -0
- package/lib/utils.datepicker.js.0a5a699e.js +1 -0
- package/lib/utils.datepicker.js.5549a741.mjs +70 -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.plug.js.9313aead.mjs +31 -0
- package/lib/utils.plug.js.f62510ce.js +1 -0
- package/lib/utils.util.js.333daba2.mjs +439 -0
- package/lib/utils.util.js.c0ba699b.js +1 -0
- package/lib/versionControl.46a7f31a.js +1 -0
- package/lib/versionControl.c53bfb5d.mjs +488 -0
- package/lib/versionEdit.4246d5db.js +1 -0
- package/lib/versionEdit.5a8292ec.mjs +452 -0
- package/lib/view.build.85732408.mjs +1578 -0
- package/lib/view.build.e43a2077.js +1 -0
- package/lib/viewList.868edcd7.js +1 -0
- package/lib/viewList.978b72c5.mjs +324 -0
- package/lib/viewTree.7497ff90.js +1 -0
- package/lib/viewTree.bde43a3b.mjs +409 -0
- package/locale/en_US.js +82 -27
- package/locale/id_ID.js +66 -11
- package/locale/vi_VN.js +1968 -1913
- package/locale/zh_CN.js +88 -32
- package/package.json +106 -105
- package/lib/chartbi.114d32d7.js +0 -60
- package/lib/chartbi.eb4dd0af.mjs +0 -27639
- package/lib/main.083e0ba3.js +0 -1
- package/lib/main.4a858284.js +0 -1
- package/lib/main.64cb2027.js +0 -1
- package/lib/main.70a46cbc.js +0 -1
- package/lib/messages.364eb728.js +0 -9
- package/lib/messages.5bcc42f9.mjs +0 -5863
- package/lib/system.account.95bd8508.js +0 -216
- package/lib/system.account.d6c7485b.mjs +0 -2552
- package/lib/system.config.63c0217d.js +0 -1
- package/lib/system.datasource.a2c0bad4.js +0 -1
- package/lib/system.dict.dfb4c376.js +0 -1
- package/lib/system.duplicatechecking.a58aad69.mjs +0 -2142
- package/lib/system.duplicatechecking.c4141ebd.js +0 -1
- package/lib/system.email.545cedff.mjs +0 -7432
- package/lib/system.email.ec0ac728.js +0 -41
- package/lib/system.fieldsecurity.eb217079.js +0 -1
- package/lib/system.file.1cb952a4.js +0 -1
- package/lib/system.log.348b3605.js +0 -1
- package/lib/system.machine.49fc6405.js +0 -1
- package/lib/system.notice.d7a3346d.js +0 -1
- package/lib/system.noticereceived.c0b24616.js +0 -1
- package/lib/system.onlineuser.b3c94b5b.js +0 -1
- package/lib/system.org.30063246.js +0 -1
- package/lib/system.permissions.1ff855c2.js +0 -9
- package/lib/system.permissions.fdad3c36.mjs +0 -212
- package/lib/system.plugin.2c7c8a5a.js +0 -1
- package/lib/system.pos.21294c28.js +0 -1
- package/lib/system.promptmanagement.7e8da777.js +0 -1
- package/lib/system.role.078fac85.js +0 -1
- package/lib/system.sumberrules.b0252f77.js +0 -1
- package/lib/system.team.296512d7.mjs +0 -1000
- package/lib/system.team.5d6169bc.js +0 -1
- package/lib/system.teammembers.313345f7.js +0 -1
- package/lib/system.timers.8246e6ba.js +0 -38
- package/lib/system.translation.fdff4956.js +0 -1
- package/lib/system.user.49457fd3.js +0 -14
- package/lib/system.useraffiliation.0e9da6a8.js +0 -1
- package/lib/system.webresource.2a341e05.js +0 -1
- package/lib/system.welcome.c9eefa06.js +0 -1
|
@@ -0,0 +1,564 @@
|
|
|
1
|
+
import { t as p } from "./utils.util.js.333daba2.mjs";
|
|
2
|
+
import { m as g, n as m } from "./components.chartbi.571c5ff5.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
|
+
getHeaderCellStyle() {
|
|
151
|
+
return Object.assign({ background: this.fadeColor(this.primaryColor, 0.05) }, this.headerCellStyle);
|
|
152
|
+
},
|
|
153
|
+
getRowHeight() {
|
|
154
|
+
let t = 0;
|
|
155
|
+
return this.rowHeight + t;
|
|
156
|
+
},
|
|
157
|
+
fadeColord() {
|
|
158
|
+
return this.fadeColor(this.primaryColor, 0.3);
|
|
159
|
+
},
|
|
160
|
+
getColumns() {
|
|
161
|
+
let t = 0, e = this.columnsSetting.filter((d) => {
|
|
162
|
+
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";
|
|
163
|
+
return i && i.width && !d.width && (d.width = i.width), i && i.minWidth && !d.minWidth && (d.minWidth = i.minWidth), n && (t += Number(r)), n;
|
|
164
|
+
});
|
|
165
|
+
if (this.wid === 0 || e.filter((d) => d.width || d.minWidth).length !== e.length)
|
|
166
|
+
return e;
|
|
167
|
+
const s = t - this.wid, a = e[e.length - 1], o = a ? a.width ? Number(a.width) : a.minWidth ? Number(a.minWidth) : 0 : 0;
|
|
168
|
+
if (s < 0) {
|
|
169
|
+
const d = e.length === 0 ? 0 : Math.floor(Math.abs(s) / e.length);
|
|
170
|
+
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));
|
|
171
|
+
} else
|
|
172
|
+
s < o && (a.minWidth || a.width) && (a.width = o);
|
|
173
|
+
return e;
|
|
174
|
+
},
|
|
175
|
+
selectionType() {
|
|
176
|
+
const t = this.columns.filter((e) => e.type === "selection" || e.type === "selection-radio")[0];
|
|
177
|
+
return t ? t.type === "selection" ? "checkbox" : "radio" : null;
|
|
178
|
+
},
|
|
179
|
+
hasClear() {
|
|
180
|
+
let t = [];
|
|
181
|
+
for (let e in this.sorter)
|
|
182
|
+
t.push(e);
|
|
183
|
+
return t.length;
|
|
184
|
+
},
|
|
185
|
+
dropdownActive() {
|
|
186
|
+
return `background-color: ${this.fadeColor(this.primaryColor, 0.1)};color:${this.primaryColor}`;
|
|
187
|
+
},
|
|
188
|
+
totalPages() {
|
|
189
|
+
return Math.ceil(this.total / this.pageSized);
|
|
190
|
+
},
|
|
191
|
+
...g(["primaryColor", "language", "screenWidth", "multiTab"])
|
|
192
|
+
},
|
|
193
|
+
data() {
|
|
194
|
+
return {
|
|
195
|
+
tableData: [],
|
|
196
|
+
loading: !1,
|
|
197
|
+
customSize: this.size,
|
|
198
|
+
keyValue: null,
|
|
199
|
+
currentRow: "",
|
|
200
|
+
total: 0,
|
|
201
|
+
sorter: {},
|
|
202
|
+
state: !1,
|
|
203
|
+
currentPage: 1,
|
|
204
|
+
pageSized: this.pageSize,
|
|
205
|
+
columnsSetting: [],
|
|
206
|
+
visibleFilter: !1,
|
|
207
|
+
frozenColumn: 0,
|
|
208
|
+
wid: 0
|
|
209
|
+
};
|
|
210
|
+
},
|
|
211
|
+
watch: {
|
|
212
|
+
screenWidth() {
|
|
213
|
+
this.$nextTick(() => {
|
|
214
|
+
this.getWid(), setTimeout(() => {
|
|
215
|
+
this.$refs.refTable.doLayout();
|
|
216
|
+
}, 0);
|
|
217
|
+
});
|
|
218
|
+
},
|
|
219
|
+
tableExpand: {
|
|
220
|
+
handler() {
|
|
221
|
+
const t = this.$refs.refTable, e = this.getChildRens(this.tableData);
|
|
222
|
+
p(JSON.parse(JSON.stringify(this.tableData)), "children").map((s) => {
|
|
223
|
+
e.includes(s.id) ? t.toggleRowExpansion(s, !1) : t.toggleRowExpansion(s, !0);
|
|
224
|
+
});
|
|
225
|
+
},
|
|
226
|
+
deep: !0
|
|
227
|
+
},
|
|
228
|
+
tableData: {
|
|
229
|
+
handler() {
|
|
230
|
+
this.keyValue = void 0, this.numbers = 0;
|
|
231
|
+
},
|
|
232
|
+
deep: !0
|
|
233
|
+
},
|
|
234
|
+
language: {
|
|
235
|
+
handler() {
|
|
236
|
+
this.$nextTick(() => {
|
|
237
|
+
setTimeout(() => {
|
|
238
|
+
this.$refs.refTable.doLayout();
|
|
239
|
+
}, 0);
|
|
240
|
+
});
|
|
241
|
+
},
|
|
242
|
+
deep: !0
|
|
243
|
+
},
|
|
244
|
+
size: {
|
|
245
|
+
handler(t) {
|
|
246
|
+
this.$nextTick(() => {
|
|
247
|
+
setTimeout(() => {
|
|
248
|
+
this.customSize = t, this.$refs.refTable.doLayout(), this.getWid();
|
|
249
|
+
}, 0);
|
|
250
|
+
});
|
|
251
|
+
},
|
|
252
|
+
deep: !0
|
|
253
|
+
},
|
|
254
|
+
"$route.path"(t, e) {
|
|
255
|
+
t !== e && this.multiTab && this.$nextTick(() => {
|
|
256
|
+
setTimeout(() => {
|
|
257
|
+
this.$refs.refTable && this.$refs.refTable.doLayout();
|
|
258
|
+
}, 0);
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
methods: {
|
|
263
|
+
doLayout() {
|
|
264
|
+
this.$nextTick(() => {
|
|
265
|
+
setTimeout(() => {
|
|
266
|
+
this.$refs.refTable.doLayout();
|
|
267
|
+
}, 0);
|
|
268
|
+
});
|
|
269
|
+
},
|
|
270
|
+
getWid() {
|
|
271
|
+
let t = this.$refs.reftables;
|
|
272
|
+
this.wid = t ? t.clientWidth : this.wid;
|
|
273
|
+
},
|
|
274
|
+
setTableData(t, e = !1) {
|
|
275
|
+
this.tableData = t, this.loading = e;
|
|
276
|
+
},
|
|
277
|
+
selecTables(t, e) {
|
|
278
|
+
return !this.disabledRowId.includes(t.id);
|
|
279
|
+
},
|
|
280
|
+
changeFilter(t) {
|
|
281
|
+
this.visibleFilter = t;
|
|
282
|
+
},
|
|
283
|
+
closeFilter() {
|
|
284
|
+
this.$refs.filterdropdown.doClose();
|
|
285
|
+
},
|
|
286
|
+
cellClassNamed({ row: t, rowIndex: e }) {
|
|
287
|
+
return this.cellClassName && typeof this.cellClassName == "function" ? this.cellClassName({ row: t, rowIndex: e }) : "";
|
|
288
|
+
},
|
|
289
|
+
rowClassNamed({ row: t, rowIndex: e }) {
|
|
290
|
+
return this.rowClassName && typeof this.rowClassName == "function" ? this.rowClassName({ row: t, rowIndex: e }) : "";
|
|
291
|
+
},
|
|
292
|
+
columnChange(t) {
|
|
293
|
+
this.columns.filter((a) => a.fixed);
|
|
294
|
+
let e = [...t], l = 1;
|
|
295
|
+
return e.forEach((a, o) => {
|
|
296
|
+
e[o].fixed = !1, l < this.frozenColumn && a.checked && (e[o].fixed = !0, l++);
|
|
297
|
+
}), 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) => {
|
|
298
|
+
this.$nextTick(() => {
|
|
299
|
+
setTimeout(() => {
|
|
300
|
+
this.$refs.refTable.doLayout(), a();
|
|
301
|
+
}, 0);
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
},
|
|
305
|
+
summaries(t) {
|
|
306
|
+
return this.$nextTick(() => {
|
|
307
|
+
setTimeout(() => {
|
|
308
|
+
this.$refs.refTable && this.$refs.refTable.doLayout();
|
|
309
|
+
}, 10);
|
|
310
|
+
}), this.amount(t);
|
|
311
|
+
},
|
|
312
|
+
spanMethod({ row: t, column: e }) {
|
|
313
|
+
if (e.property === this.columnKey) {
|
|
314
|
+
let l = 0, s = 0;
|
|
315
|
+
if (this.keyValue !== t[this.columnKey]) {
|
|
316
|
+
for (; l < this.tableData.length; )
|
|
317
|
+
this.tableData[l][this.columnKey] === t[this.columnKey] && s++, l++;
|
|
318
|
+
this.keyValue = t[this.columnKey];
|
|
319
|
+
} else
|
|
320
|
+
s = 0;
|
|
321
|
+
return {
|
|
322
|
+
rowspan: s,
|
|
323
|
+
colspan: 1
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
handlerClick(t) {
|
|
328
|
+
this.$emit("handlerClick", t);
|
|
329
|
+
},
|
|
330
|
+
handleButton(t, e, l) {
|
|
331
|
+
this.$emit("handleButton", {
|
|
332
|
+
methods: t,
|
|
333
|
+
row: e
|
|
334
|
+
});
|
|
335
|
+
},
|
|
336
|
+
handleFilterChange(t) {
|
|
337
|
+
this.$emit("handleFilterChange", t);
|
|
338
|
+
},
|
|
339
|
+
handleSelectionChange(t) {
|
|
340
|
+
if (!this.loading) {
|
|
341
|
+
const e = this.rowKey || "index";
|
|
342
|
+
let l = [];
|
|
343
|
+
t.forEach((s, a) => {
|
|
344
|
+
l.push(s[e]);
|
|
345
|
+
}), this.$emit("onChange", l, t);
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
this.selectedKeep && this.$emit("onChange", this.selectedRowKeys, []);
|
|
349
|
+
},
|
|
350
|
+
changRadio(t) {
|
|
351
|
+
if (this.loading)
|
|
352
|
+
return;
|
|
353
|
+
const e = this.rowKey || "index", l = this.tableData.filter((s) => s[e] === t)[0];
|
|
354
|
+
this.$emit("onChange", [l[e]], [l]);
|
|
355
|
+
},
|
|
356
|
+
handleSelect(t, e) {
|
|
357
|
+
this.$emit("handleSelect", t, e);
|
|
358
|
+
},
|
|
359
|
+
selectAll(t) {
|
|
360
|
+
this.$emit("selectAll", t);
|
|
361
|
+
},
|
|
362
|
+
rowClick(t, e, l) {
|
|
363
|
+
this.$emit("rowClick", t, e);
|
|
364
|
+
},
|
|
365
|
+
handleSizeChange(t) {
|
|
366
|
+
this.pageSized = t, this.currentPage > this.totalPages && (this.currentPage = this.totalPages), this.selectedKeep || this.$emit("onChange", [], []), this.loadData();
|
|
367
|
+
},
|
|
368
|
+
handleCurrentChange(t) {
|
|
369
|
+
this.currentPage = t, this.selectedKeep || this.$emit("onChange", [], []), this.loadData();
|
|
370
|
+
},
|
|
371
|
+
expandChange(t, e) {
|
|
372
|
+
this.$emit("expandChange", { val: t, expanded: e });
|
|
373
|
+
},
|
|
374
|
+
getChildRens(t) {
|
|
375
|
+
const e = [];
|
|
376
|
+
return t.map((l) => {
|
|
377
|
+
if (this.tableExpand.includes(l.id) || e.push(l.id), Object.prototype.hasOwnProperty.call(l, "children")) {
|
|
378
|
+
const s = this.getChildRens(l.children);
|
|
379
|
+
e.push(...s);
|
|
380
|
+
}
|
|
381
|
+
}), e;
|
|
382
|
+
},
|
|
383
|
+
handleCurrentRowChange(t) {
|
|
384
|
+
this.$emit("handleCurrentRowChange", t);
|
|
385
|
+
},
|
|
386
|
+
handleHeaderDragEnd() {
|
|
387
|
+
this.$nextTick(() => {
|
|
388
|
+
this.$refs.refTable.doLayout();
|
|
389
|
+
});
|
|
390
|
+
},
|
|
391
|
+
changColumnHeight(t) {
|
|
392
|
+
this.customSize = t, this.$nextTick(() => {
|
|
393
|
+
this.$refs.refTable.doLayout();
|
|
394
|
+
});
|
|
395
|
+
},
|
|
396
|
+
sortChange({ prop: t, order: e }) {
|
|
397
|
+
this.sorter = e ? { sortField: t, sortOrder: e.replace("ending", "") } : {}, this.loadData();
|
|
398
|
+
},
|
|
399
|
+
loadData() {
|
|
400
|
+
if (this.loading)
|
|
401
|
+
return;
|
|
402
|
+
this.loading = !0;
|
|
403
|
+
const t = this.dataSource(Object.assign({ ...this.sorter }, { pageNo: this.currentPage, pageSize: this.pageSized }));
|
|
404
|
+
(typeof t == "object" || typeof t == "function") && typeof t.then == "function" ? t.then((e) => {
|
|
405
|
+
let l = e && e.rows ? e.rows : [];
|
|
406
|
+
this.tableData = l, this.currentPage = e.pageno, this.total = e.totalrows, this.getWid(), this.toggleRowSelection();
|
|
407
|
+
}) : this.loading = !1;
|
|
408
|
+
},
|
|
409
|
+
loadColumns() {
|
|
410
|
+
return new Promise((t) => {
|
|
411
|
+
this.$nextTick(() => {
|
|
412
|
+
this.columnsSetting = [...this.columns], this.$emit("columnChange", this.columnsSetting);
|
|
413
|
+
const e = this.columns.filter((l) => l.fixed);
|
|
414
|
+
this.frozenColumn = e.length, setTimeout(() => {
|
|
415
|
+
this.$refs.columnSettings.init(), this.$refs.refTable.doLayout(), t(!0);
|
|
416
|
+
}, 0);
|
|
417
|
+
});
|
|
418
|
+
});
|
|
419
|
+
},
|
|
420
|
+
setLoadData(t) {
|
|
421
|
+
this.tableData = [...t], this.total = t.length;
|
|
422
|
+
},
|
|
423
|
+
getLoadData() {
|
|
424
|
+
return new Promise((t, e) => {
|
|
425
|
+
t(this.tableData);
|
|
426
|
+
});
|
|
427
|
+
},
|
|
428
|
+
toggleRowSelectioClear(t) {
|
|
429
|
+
if (!this.selectionType) {
|
|
430
|
+
this.loading = !1;
|
|
431
|
+
return;
|
|
432
|
+
}
|
|
433
|
+
this.selectionType === "radio" && (this.currentRow = t[0] ? t[0] : ""), this.$nextTick(async () => {
|
|
434
|
+
setTimeout(async () => {
|
|
435
|
+
const e = this.rowKey || "index";
|
|
436
|
+
let l = [];
|
|
437
|
+
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);
|
|
438
|
+
await s(this.tableData);
|
|
439
|
+
const a = t.filter((i) => {
|
|
440
|
+
let r = null;
|
|
441
|
+
return this.tableData.filter((c) => {
|
|
442
|
+
if (i === c[e] && (r = c), c.children && c.children.length > 0) {
|
|
443
|
+
const h = c.children.filter((f) => i === f[e])[0];
|
|
444
|
+
r = h || r;
|
|
445
|
+
}
|
|
446
|
+
return !0;
|
|
447
|
+
})[0], !r;
|
|
448
|
+
});
|
|
449
|
+
let o = [];
|
|
450
|
+
for (let i = 0; i < a.length; i++) {
|
|
451
|
+
let r = /* @__PURE__ */ new Map();
|
|
452
|
+
r.set(e, a[i]), o.push(Object.fromEntries(r));
|
|
453
|
+
}
|
|
454
|
+
const d = l.concat(o);
|
|
455
|
+
let n = [];
|
|
456
|
+
for (let i = 0; i < d.length; i++) {
|
|
457
|
+
let r = new Promise((c, h) => {
|
|
458
|
+
this.$refs.refTable.toggleRowSelection(d[i], !1), c(i);
|
|
459
|
+
});
|
|
460
|
+
n.push(r);
|
|
461
|
+
}
|
|
462
|
+
Promise.all(n).then((i) => {
|
|
463
|
+
this.loading = !1;
|
|
464
|
+
});
|
|
465
|
+
}, 10);
|
|
466
|
+
});
|
|
467
|
+
},
|
|
468
|
+
async toggleRowSelection() {
|
|
469
|
+
if (!this.selectionType) {
|
|
470
|
+
this.loading = !1;
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
this.selectionType === "radio" && (this.currentRow = this.selectedRowKeys[0] ? this.selectedRowKeys[0] : ""), this.$nextTick(async () => {
|
|
474
|
+
setTimeout(async () => {
|
|
475
|
+
const t = this.rowKey || "index";
|
|
476
|
+
let e = [];
|
|
477
|
+
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);
|
|
478
|
+
await l(this.tableData);
|
|
479
|
+
const s = this.selectedRowKeys.filter((n) => !this.tableData.filter((r) => n === r[t])[0]);
|
|
480
|
+
let a = [];
|
|
481
|
+
for (let n = 0; n < s.length; n++) {
|
|
482
|
+
let i = /* @__PURE__ */ new Map();
|
|
483
|
+
i.set(t, s[n]), a.push(Object.fromEntries(i));
|
|
484
|
+
}
|
|
485
|
+
const o = e.concat(a);
|
|
486
|
+
let d = [];
|
|
487
|
+
for (let n = 0; n < o.length; n++) {
|
|
488
|
+
let i = new Promise((r, c) => {
|
|
489
|
+
this.$refs.refTable.toggleRowSelection(o[n], !0), r(n);
|
|
490
|
+
});
|
|
491
|
+
d.push(i);
|
|
492
|
+
}
|
|
493
|
+
Promise.all(d).then((n) => {
|
|
494
|
+
this.loading = !1;
|
|
495
|
+
});
|
|
496
|
+
}, 10);
|
|
497
|
+
});
|
|
498
|
+
},
|
|
499
|
+
refresh(t = !0) {
|
|
500
|
+
!this.selectedKeep && t && this.$emit("onChange", [], []), t && (this.currentPage = 1), this.loadData();
|
|
501
|
+
},
|
|
502
|
+
clearAll() {
|
|
503
|
+
if (this.state || this.loading)
|
|
504
|
+
return;
|
|
505
|
+
let t = [];
|
|
506
|
+
for (let e in this.sorter)
|
|
507
|
+
t.push(e);
|
|
508
|
+
t.length !== 0 && (this.state = !0, this.sorter = {}, this.$refs.refTable.clearSort(), this.$refs.refTable.clearFilter(), setTimeout(() => {
|
|
509
|
+
this.refresh(), this.state = !1;
|
|
510
|
+
}, 100));
|
|
511
|
+
},
|
|
512
|
+
fadeColor(t, e) {
|
|
513
|
+
let l = parseInt(t.substring(1, 3), 16), s = parseInt(t.substring(3, 5), 16), a = parseInt(t.substring(5, 7), 16);
|
|
514
|
+
return `rgba(${l},${s},${a},${e})`;
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
created() {
|
|
518
|
+
this.columnsSetting = [...this.columns];
|
|
519
|
+
const t = this.columns.filter((e) => e.fixed);
|
|
520
|
+
this.frozenColumn = t.length, this.initialLoading && this.loadData();
|
|
521
|
+
}
|
|
522
|
+
};
|
|
523
|
+
var b = function() {
|
|
524
|
+
var e = this, l = e._self._c;
|
|
525
|
+
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) {
|
|
526
|
+
return e.changeFilter(!0);
|
|
527
|
+
}, hide: function(s) {
|
|
528
|
+
return e.changeFilter(!1);
|
|
529
|
+
} } }, [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) {
|
|
530
|
+
return e.$emit("baseSeecharts");
|
|
531
|
+
} } })]) : 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) {
|
|
532
|
+
return e.refresh(!1);
|
|
533
|
+
} } })]), 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.getHeaderCellStyle, "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) {
|
|
534
|
+
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) {
|
|
535
|
+
return [l("el-radio", { attrs: { label: o.row[e.rowKey], size: "small" }, on: { input: e.changRadio }, model: { value: e.currentRow, callback: function(d) {
|
|
536
|
+
e.currentRow = d;
|
|
537
|
+
}, expression: "currentRow" } }, [e._v(" " + e._s("") + " ")])];
|
|
538
|
+
} }], 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) {
|
|
539
|
+
return [e._t(s.slotType, null, { row: o.row, index: o.$index })];
|
|
540
|
+
} }], 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) {
|
|
541
|
+
return [e._t(s.slotType, null, { row: o.row, index: o.$index, column: o.column })];
|
|
542
|
+
} }], null, !0) })] : e._e()];
|
|
543
|
+
}), 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) {
|
|
544
|
+
e.currentPage = s;
|
|
545
|
+
}, "update:current-page": function(s) {
|
|
546
|
+
e.currentPage = s;
|
|
547
|
+
}, "size-change": e.handleSizeChange, "current-change": e.handleCurrentChange } }) : e._e()], 1)], 1);
|
|
548
|
+
}, w = [], C = /* @__PURE__ */ m(
|
|
549
|
+
y,
|
|
550
|
+
b,
|
|
551
|
+
w,
|
|
552
|
+
!1,
|
|
553
|
+
null,
|
|
554
|
+
"cf983a7d",
|
|
555
|
+
null,
|
|
556
|
+
null
|
|
557
|
+
);
|
|
558
|
+
const u = C.exports;
|
|
559
|
+
u.install = function(t) {
|
|
560
|
+
t.component(u.name, u);
|
|
561
|
+
};
|
|
562
|
+
export {
|
|
563
|
+
u as G
|
|
564
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const g=require("./utils.util.js.c0ba699b.js"),f=require("./components.chartbi.3bbac955.js");const m={name:"GdTableVirtual",props:Object.assign({},{record:{type:Object,default:()=>({})},dataSource:{type:Function,required:!0},size:{type:String,default:"small"},rowKey:{type:[String,Function],default:"id"},amount:{type:Function},load:{type:Function},tableTree:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},border:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},cellStyle:{type:Function},cellClassName:{type:Function},rowClassName:{type:Function},defaultExpandedKeys:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},selectedKeep:{type:Boolean,default:!1},height:{type:Number,default:0},maxHeight:{type:Number,default:0},indent:{type:Number,default:16},pageSize:{type:Number,default:10},pageSizes:{type:Array,default:()=>[10,20,30,40,50,100,200,500]},tableExpand:{type:Array,default:()=>[]},defaultExpandAll:{type:Boolean,default:!1},method:{type:Boolean,default:!1},columnKey:{type:String,default:""},showSummary:{type:Boolean,default:!1},headerCellStyle:{type:[Object,Function],default:()=>({})},showPagination:{type:Boolean,default:!0},initialLoading:{type:Boolean,default:!0},filtering:{type:Boolean,default:!1},isGather:{type:Boolean,default:!1},disabledRowId:{type:Array,default:()=>[]},disabledRefresh:{type:Boolean,default:!1},disabledColumnSettings:{type:Boolean,default:!1},stripe:{type:Boolean,default:!0},rowHeight:{type:Number,default:25}}),computed:{getHeaderCellStyle(){return Object.assign({background:this.fadeColor(this.primaryColor,.05)},this.headerCellStyle)},getRowHeight(){let t=0;return this.rowHeight+t},fadeColord(){return this.fadeColor(this.primaryColor,.3)},getColumns(){let t=0,e=this.columnsSetting.filter(d=>{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";return i&&i.width&&!d.width&&(d.width=i.width),i&&i.minWidth&&!d.minWidth&&(d.minWidth=i.minWidth),n&&(t+=Number(r)),n});if(this.wid===0||e.filter(d=>d.width||d.minWidth).length!==e.length)return e;const s=t-this.wid,a=e[e.length-1],o=a?a.width?Number(a.width):a.minWidth?Number(a.minWidth):0:0;if(s<0){const d=e.length===0?0:Math.floor(Math.abs(s)/e.length);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))}else s<o&&(a.minWidth||a.width)&&(a.width=o);return e},selectionType(){const t=this.columns.filter(e=>e.type==="selection"||e.type==="selection-radio")[0];return t?t.type==="selection"?"checkbox":"radio":null},hasClear(){let t=[];for(let e in this.sorter)t.push(e);return t.length},dropdownActive(){return`background-color: ${this.fadeColor(this.primaryColor,.1)};color:${this.primaryColor}`},totalPages(){return Math.ceil(this.total/this.pageSized)},...f.mapGetters(["primaryColor","language","screenWidth","multiTab"])},data(){return{tableData:[],loading:!1,customSize:this.size,keyValue:null,currentRow:"",total:0,sorter:{},state:!1,currentPage:1,pageSized:this.pageSize,columnsSetting:[],visibleFilter:!1,frozenColumn:0,wid:0}},watch:{screenWidth(){this.$nextTick(()=>{this.getWid(),setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},tableExpand:{handler(){const t=this.$refs.refTable,e=this.getChildRens(this.tableData);g.treeToArray(JSON.parse(JSON.stringify(this.tableData)),"children").map(s=>{e.includes(s.id)?t.toggleRowExpansion(s,!1):t.toggleRowExpansion(s,!0)})},deep:!0},tableData:{handler(){this.keyValue=void 0,this.numbers=0},deep:!0},language:{handler(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},deep:!0},size:{handler(t){this.$nextTick(()=>{setTimeout(()=>{this.customSize=t,this.$refs.refTable.doLayout(),this.getWid()},0)})},deep:!0},"$route.path"(t,e){t!==e&&this.multiTab&&this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable&&this.$refs.refTable.doLayout()},0)})}},methods:{doLayout(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},getWid(){let t=this.$refs.reftables;this.wid=t?t.clientWidth:this.wid},setTableData(t,e=!1){this.tableData=t,this.loading=e},selecTables(t,e){return!this.disabledRowId.includes(t.id)},changeFilter(t){this.visibleFilter=t},closeFilter(){this.$refs.filterdropdown.doClose()},cellClassNamed({row:t,rowIndex:e}){return this.cellClassName&&typeof this.cellClassName=="function"?this.cellClassName({row:t,rowIndex:e}):""},rowClassNamed({row:t,rowIndex:e}){return this.rowClassName&&typeof this.rowClassName=="function"?this.rowClassName({row:t,rowIndex:e}):""},columnChange(t){this.columns.filter(a=>a.fixed);let e=[...t],l=1;return e.forEach((a,o)=>{e[o].fixed=!1,l<this.frozenColumn&&a.checked&&(e[o].fixed=!0,l++)}),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)=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout(),a()},0)})})},summaries(t){return this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable&&this.$refs.refTable.doLayout()},10)}),this.amount(t)},spanMethod({row:t,column:e}){if(e.property===this.columnKey){let l=0,s=0;if(this.keyValue!==t[this.columnKey]){for(;l<this.tableData.length;)this.tableData[l][this.columnKey]===t[this.columnKey]&&s++,l++;this.keyValue=t[this.columnKey]}else s=0;return{rowspan:s,colspan:1}}},handlerClick(t){this.$emit("handlerClick",t)},handleButton(t,e,l){this.$emit("handleButton",{methods:t,row:e})},handleFilterChange(t){this.$emit("handleFilterChange",t)},handleSelectionChange(t){if(!this.loading){const e=this.rowKey||"index";let l=[];t.forEach((s,a)=>{l.push(s[e])}),this.$emit("onChange",l,t);return}this.selectedKeep&&this.$emit("onChange",this.selectedRowKeys,[])},changRadio(t){if(this.loading)return;const e=this.rowKey||"index",l=this.tableData.filter(s=>s[e]===t)[0];this.$emit("onChange",[l[e]],[l])},handleSelect(t,e){this.$emit("handleSelect",t,e)},selectAll(t){this.$emit("selectAll",t)},rowClick(t,e,l){this.$emit("rowClick",t,e)},handleSizeChange(t){this.pageSized=t,this.currentPage>this.totalPages&&(this.currentPage=this.totalPages),this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},handleCurrentChange(t){this.currentPage=t,this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},expandChange(t,e){this.$emit("expandChange",{val:t,expanded:e})},getChildRens(t){const e=[];return t.map(l=>{if(this.tableExpand.includes(l.id)||e.push(l.id),Object.prototype.hasOwnProperty.call(l,"children")){const s=this.getChildRens(l.children);e.push(...s)}}),e},handleCurrentRowChange(t){this.$emit("handleCurrentRowChange",t)},handleHeaderDragEnd(){this.$nextTick(()=>{this.$refs.refTable.doLayout()})},changColumnHeight(t){this.customSize=t,this.$nextTick(()=>{this.$refs.refTable.doLayout()})},sortChange({prop:t,order:e}){this.sorter=e?{sortField:t,sortOrder:e.replace("ending","")}:{},this.loadData()},loadData(){if(this.loading)return;this.loading=!0;const t=this.dataSource(Object.assign({...this.sorter},{pageNo:this.currentPage,pageSize:this.pageSized}));(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"?t.then(e=>{let l=e&&e.rows?e.rows:[];this.tableData=l,this.currentPage=e.pageno,this.total=e.totalrows,this.getWid(),this.toggleRowSelection()}):this.loading=!1},loadColumns(){return new Promise(t=>{this.$nextTick(()=>{this.columnsSetting=[...this.columns],this.$emit("columnChange",this.columnsSetting);const e=this.columns.filter(l=>l.fixed);this.frozenColumn=e.length,setTimeout(()=>{this.$refs.columnSettings.init(),this.$refs.refTable.doLayout(),t(!0)},0)})})},setLoadData(t){this.tableData=[...t],this.total=t.length},getLoadData(){return new Promise((t,e)=>{t(this.tableData)})},toggleRowSelectioClear(t){if(!this.selectionType){this.loading=!1;return}this.selectionType==="radio"&&(this.currentRow=t[0]?t[0]:""),this.$nextTick(async()=>{setTimeout(async()=>{const e=this.rowKey||"index";let l=[];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);await s(this.tableData);const a=t.filter(i=>{let r=null;return this.tableData.filter(c=>{if(i===c[e]&&(r=c),c.children&&c.children.length>0){const h=c.children.filter(p=>i===p[e])[0];r=h||r}return!0})[0],!r});let o=[];for(let i=0;i<a.length;i++){let r=new Map;r.set(e,a[i]),o.push(Object.fromEntries(r))}const d=l.concat(o);let n=[];for(let i=0;i<d.length;i++){let r=new Promise((c,h)=>{this.$refs.refTable.toggleRowSelection(d[i],!1),c(i)});n.push(r)}Promise.all(n).then(i=>{this.loading=!1})},10)})},async toggleRowSelection(){if(!this.selectionType){this.loading=!1;return}this.selectionType==="radio"&&(this.currentRow=this.selectedRowKeys[0]?this.selectedRowKeys[0]:""),this.$nextTick(async()=>{setTimeout(async()=>{const t=this.rowKey||"index";let e=[];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);await l(this.tableData);const s=this.selectedRowKeys.filter(n=>!this.tableData.filter(r=>n===r[t])[0]);let a=[];for(let n=0;n<s.length;n++){let i=new Map;i.set(t,s[n]),a.push(Object.fromEntries(i))}const o=e.concat(a);let d=[];for(let n=0;n<o.length;n++){let i=new Promise((r,c)=>{this.$refs.refTable.toggleRowSelection(o[n],!0),r(n)});d.push(i)}Promise.all(d).then(n=>{this.loading=!1})},10)})},refresh(t=!0){!this.selectedKeep&&t&&this.$emit("onChange",[],[]),t&&(this.currentPage=1),this.loadData()},clearAll(){if(this.state||this.loading)return;let t=[];for(let e in this.sorter)t.push(e);t.length!==0&&(this.state=!0,this.sorter={},this.$refs.refTable.clearSort(),this.$refs.refTable.clearFilter(),setTimeout(()=>{this.refresh(),this.state=!1},100))},fadeColor(t,e){let l=parseInt(t.substring(1,3),16),s=parseInt(t.substring(3,5),16),a=parseInt(t.substring(5,7),16);return`rgba(${l},${s},${a},${e})`}},created(){this.columnsSetting=[...this.columns];const t=this.columns.filter(e=>e.fixed);this.frozenColumn=t.length,this.initialLoading&&this.loadData()}};var y=function(){var e=this,l=e._self._c;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){return e.changeFilter(!0)},hide:function(s){return e.changeFilter(!1)}}},[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){return e.$emit("baseSeecharts")}}})]):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){return e.refresh(!1)}}})]),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.getHeaderCellStyle,"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){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){return[l("el-radio",{attrs:{label:o.row[e.rowKey],size:"small"},on:{input:e.changRadio},model:{value:e.currentRow,callback:function(d){e.currentRow=d},expression:"currentRow"}},[e._v(" "+e._s("")+" ")])]}}],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){return[e._t(s.slotType,null,{row:o.row,index:o.$index})]}}],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){return[e._t(s.slotType,null,{row:o.row,index:o.$index,column:o.column})]}}],null,!0)})]:e._e()]}),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){e.currentPage=s},"update:current-page":function(s){e.currentPage=s},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)],1)},b=[],w=f.normalizeComponent(m,y,b,!1,null,"cf983a7d",null,null);const u=w.exports;u.install=function(t){t.component(u.name,u)};exports.GDpackage=u;
|