gds-plus-design-vue 1.2.62 → 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 -91338
- 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.c569c0a5.mjs → main.70357352.mjs} +12 -10
- package/lib/main.77373aa4.mjs +441 -0
- package/lib/{main.fb4a8edf.mjs → main.7f44e3bf.mjs} +78 -143
- package/lib/main.8a2a590d.js +1 -0
- package/lib/main.ad1e8d4d.js +1 -0
- package/lib/{main.5a6c881a.mjs → main.b0e5e1b0.mjs} +9 -8
- package/lib/{main.7921130e.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.5bcc42f9.mjs → messages.ad082386.mjs} +994 -1968
- 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.00dd0a29.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.eb8d16df.mjs → system.datasource.986768c9.mjs} +15 -64
- package/lib/{system.dict.787ff1ec.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.9d40595f.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.eae6eac2.mjs → system.file.73eeb731.mjs} +8 -7
- package/lib/{system.log.9bf208c1.mjs → system.log.b86cf57f.mjs} +24 -93
- package/lib/system.log.fc60f5e6.js +1 -0
- package/lib/{system.machine.0130e762.mjs → system.machine.0114001b.mjs} +5 -25
- package/lib/system.machine.f1d95c86.js +1 -0
- package/lib/{system.notice.dba4c597.mjs → system.notice.25ea8dca.mjs} +292 -474
- package/lib/system.notice.96c770a6.js +1 -0
- package/lib/{system.noticereceived.0b88ef5d.mjs → system.noticereceived.369f634c.mjs} +17 -24
- package/lib/system.noticereceived.dfe4ecc7.js +1 -0
- package/lib/{system.onlineuser.bfc3abf2.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.6da23c73.mjs → system.org.c20fe6b2.mjs} +3 -3
- package/lib/system.permissions.90f73461.js +9 -0
- package/lib/{system.permissions.fdad3c36.mjs → system.permissions.c3d34921.mjs} +4 -3
- package/lib/{system.plugin.f8765f96.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.5645b45a.mjs → system.pos.7946a99c.mjs} +31 -62
- package/lib/system.promptmanagement.b5fa6b2d.js +1 -0
- package/lib/{system.promptmanagement.cd19d086.mjs → system.promptmanagement.d7250932.mjs} +153 -288
- package/lib/system.role.03be0982.js +1 -0
- package/lib/{system.role.0c6c327d.mjs → system.role.75da7929.mjs} +8 -5
- package/lib/{system.sumberrules.b48c028c.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.e23e15d9.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.63d03fc9.mjs → system.timers.eb0b6f3e.mjs} +50 -174
- package/lib/system.translation.6237f071.js +1 -0
- package/lib/{system.translation.52452a24.mjs → system.translation.e34f0891.mjs} +5 -5
- package/lib/{system.user.8d97a219.mjs → system.user.fa2d2997.mjs} +17 -16
- package/lib/{system.user.49457fd3.js → system.user.fca3f2d6.js} +5 -5
- package/lib/{system.useraffiliation.3075aa2c.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.7df0cf1e.mjs → system.webresource.469db736.mjs} +16 -58
- package/lib/{system.welcome.14785b50.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 +38 -22
- package/locale/id_ID.js +22 -6
- package/locale/vi_VN.js +1929 -1913
- package/locale/zh_CN.js +44 -28
- 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/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.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.useraffiliation.0e9da6a8.js +0 -1
- package/lib/system.webresource.2a341e05.js +0 -1
- package/lib/system.welcome.c9eefa06.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("./components.chartbi.e4680eaa.js");const r={props:{spinning:{type:Boolean,default:!1},wid:{type:[Number,String],default:100},hig:{type:Number,default:32}},data(){return{}},computed:{style(){let s=typeof this.wid,t="";return s==="string"?t=`width:${this.wid}%;height:${this.hig}px`:t=`width:${this.wid}px;height:${this.hig}px`,t}}};var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"skeleton animations",style:t.style},[t._t("default")],2)},_=[],d=a.normalizeComponent(r,o,_,!1,null,"17808e78",null,null);const c=d.exports;const u={name:"GdViewLoading",props:{spinning:{type:Boolean,default:!0},openMode:{type:[String,Number],default:1},height:{type:Number,default:100}},computed:{style(){return`height:${this.height}px`}},components:{Skeleton:c},data(){return{}}};var p=function(){var t=this,e=t._self._c;return e("div",{staticClass:"spinningl",style:t.style},[t.openMode!==3&&t.spinning?e("div",[e("div",{staticClass:"btn"},[e("Skeleton",{attrs:{wid:170}}),e("Skeleton",{attrs:{wid:400}})],1),e("Skeleton",{attrs:{wid:"100",hig:24}}),t._l(22,function(n){return[e("div",{staticClass:"listt"},t._l(5,function(l){return e("Skeleton",{key:l,attrs:{wid:"18",hig:24}})}),1),e("Skeleton",{attrs:{wid:n%2==1?"66":"100",hig:24}})]})],2):t._e(),t.openMode===3&&t.spinning?e("div",[e("div",{staticClass:"btnr"},[e("Skeleton",{attrs:{wid:246,hig:22}})],1),e("div",{staticClass:"listt listts"},t._l(6,function(n){return e("Skeleton",{key:n,attrs:{wid:"15",hig:20}})}),1),t._l(4,function(n){return e("Skeleton",{key:n,attrs:{wid:n%2==1?"66":"100",hig:20}})})],2):t._e()])},h=[],f=a.normalizeComponent(u,p,h,!1,null,"a7a85ae8",null,null);const i=f.exports;i.install=function(s){s.component(i.name,i)};exports.GDpackage=i;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { n as a } from "./components.chartbi.b043dcdc.mjs";
|
|
2
|
+
const r = {
|
|
3
|
+
props: {
|
|
4
|
+
spinning: {
|
|
5
|
+
type: Boolean,
|
|
6
|
+
default: !1
|
|
7
|
+
},
|
|
8
|
+
wid: {
|
|
9
|
+
type: [Number, String],
|
|
10
|
+
default: 100
|
|
11
|
+
},
|
|
12
|
+
hig: {
|
|
13
|
+
type: Number,
|
|
14
|
+
default: 32
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
data() {
|
|
18
|
+
return {};
|
|
19
|
+
},
|
|
20
|
+
computed: {
|
|
21
|
+
style() {
|
|
22
|
+
let s = typeof this.wid, t = "";
|
|
23
|
+
return s === "string" ? t = `width:${this.wid}%;height:${this.hig}px` : t = `width:${this.wid}px;height:${this.hig}px`, t;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
var o = function() {
|
|
28
|
+
var t = this, e = t._self._c;
|
|
29
|
+
return e("div", { staticClass: "skeleton animations", style: t.style }, [t._t("default")], 2);
|
|
30
|
+
}, _ = [], d = /* @__PURE__ */ a(
|
|
31
|
+
r,
|
|
32
|
+
o,
|
|
33
|
+
_,
|
|
34
|
+
!1,
|
|
35
|
+
null,
|
|
36
|
+
"17808e78",
|
|
37
|
+
null,
|
|
38
|
+
null
|
|
39
|
+
);
|
|
40
|
+
const u = d.exports;
|
|
41
|
+
const c = {
|
|
42
|
+
name: "GdViewLoading",
|
|
43
|
+
props: {
|
|
44
|
+
spinning: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: !0
|
|
47
|
+
},
|
|
48
|
+
openMode: {
|
|
49
|
+
type: [String, Number],
|
|
50
|
+
default: 1
|
|
51
|
+
},
|
|
52
|
+
height: {
|
|
53
|
+
type: Number,
|
|
54
|
+
default: 100
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
computed: {
|
|
58
|
+
style() {
|
|
59
|
+
return `height:${this.height}px`;
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
components: {
|
|
63
|
+
Skeleton: u
|
|
64
|
+
},
|
|
65
|
+
data() {
|
|
66
|
+
return {};
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
var p = function() {
|
|
70
|
+
var t = this, e = t._self._c;
|
|
71
|
+
return e("div", { staticClass: "spinningl", style: t.style }, [t.openMode !== 3 && t.spinning ? e("div", [e("div", { staticClass: "btn" }, [e("Skeleton", { attrs: { wid: 170 } }), e("Skeleton", { attrs: { wid: 400 } })], 1), e("Skeleton", { attrs: { wid: "100", hig: 24 } }), t._l(22, function(n) {
|
|
72
|
+
return [e("div", { staticClass: "listt" }, t._l(5, function(l) {
|
|
73
|
+
return e("Skeleton", { key: l, attrs: { wid: "18", hig: 24 } });
|
|
74
|
+
}), 1), e("Skeleton", { attrs: { wid: n % 2 == 1 ? "66" : "100", hig: 24 } })];
|
|
75
|
+
})], 2) : t._e(), t.openMode === 3 && t.spinning ? e("div", [e("div", { staticClass: "btnr" }, [e("Skeleton", { attrs: { wid: 246, hig: 22 } })], 1), e("div", { staticClass: "listt listts" }, t._l(6, function(n) {
|
|
76
|
+
return e("Skeleton", { key: n, attrs: { wid: "15", hig: 20 } });
|
|
77
|
+
}), 1), t._l(4, function(n) {
|
|
78
|
+
return e("Skeleton", { key: n, attrs: { wid: n % 2 == 1 ? "66" : "100", hig: 20 } });
|
|
79
|
+
})], 2) : t._e()]);
|
|
80
|
+
}, h = [], f = /* @__PURE__ */ a(
|
|
81
|
+
c,
|
|
82
|
+
p,
|
|
83
|
+
h,
|
|
84
|
+
!1,
|
|
85
|
+
null,
|
|
86
|
+
"a7a85ae8",
|
|
87
|
+
null,
|
|
88
|
+
null
|
|
89
|
+
);
|
|
90
|
+
const i = f.exports;
|
|
91
|
+
i.install = function(s) {
|
|
92
|
+
s.component(i.name, i);
|
|
93
|
+
};
|
|
94
|
+
export {
|
|
95
|
+
i as G
|
|
96
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { m as c, n as d } from "./components.chartbi.b043dcdc.mjs";
|
|
2
|
+
const m = {
|
|
3
|
+
name: "GdWatermark",
|
|
4
|
+
props: {
|
|
5
|
+
text: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: !0
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
data() {
|
|
11
|
+
return {};
|
|
12
|
+
},
|
|
13
|
+
computed: {
|
|
14
|
+
getBootTrans() {
|
|
15
|
+
return this.$bootTrans == null ? !1 : this.$bootTrans;
|
|
16
|
+
},
|
|
17
|
+
...c([])
|
|
18
|
+
},
|
|
19
|
+
mounted() {
|
|
20
|
+
this.addWatermark(this.text);
|
|
21
|
+
},
|
|
22
|
+
methods: {
|
|
23
|
+
addWatermark(a) {
|
|
24
|
+
const t = this.$refs.watermark, e = document.createElement("canvas");
|
|
25
|
+
e.width = 200, e.height = 150;
|
|
26
|
+
const i = window.innerWidth, s = window.innerHeight, o = i / 6, l = s / 4, n = e.getContext("2d");
|
|
27
|
+
a.split(`
|
|
28
|
+
`), e.width / 2, e.height / 2, n.rotate(-20 * Math.PI / 180), n.font = "14px Arial", n.fillStyle = "rgba(200,200,200, .2)", n.textAlign = "center", n.textBaseline = "middle", n.fillText(a, e.width / 2, e.height / 2), t.style.backgroundImage = `url(${e.toDataURL(
|
|
29
|
+
"image/png"
|
|
30
|
+
)})`, t.style.pointerEvents = "none", t.style.position = "fixed", t.style.top = 0, t.style.left = 0, t.style.width = "100%", t.style.height = "100%", t.style.zIndex = 99999, t.style.backgroundSize = `${o}px ${l}px`;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
var p = function() {
|
|
35
|
+
var t = this, e = t._self._c;
|
|
36
|
+
return e("div", { ref: "watermark", staticClass: "watermark", staticStyle: { "background-repeat": "repeat" } });
|
|
37
|
+
}, h = [], _ = /* @__PURE__ */ d(
|
|
38
|
+
m,
|
|
39
|
+
p,
|
|
40
|
+
h,
|
|
41
|
+
!1,
|
|
42
|
+
null,
|
|
43
|
+
"4e2021c1",
|
|
44
|
+
null,
|
|
45
|
+
null
|
|
46
|
+
);
|
|
47
|
+
const r = _.exports;
|
|
48
|
+
r.install = function(a) {
|
|
49
|
+
a.component(r.name, r);
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
r as G
|
|
53
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const i=require("./components.chartbi.e4680eaa.js");const d={name:"GdWatermark",props:{text:{type:String,required:!0}},data(){return{}},computed:{getBootTrans(){return this.$bootTrans==null?!1:this.$bootTrans},...i.mapGetters([])},mounted(){this.addWatermark(this.text)},methods:{addWatermark(a){const t=this.$refs.watermark,e=document.createElement("canvas");e.width=200,e.height=150;const s=window.innerWidth,o=window.innerHeight,c=s/6,l=o/4,n=e.getContext("2d");a.split(`
|
|
2
|
+
`),e.width/2,e.height/2,n.rotate(-20*Math.PI/180),n.font="14px Arial",n.fillStyle="rgba(200,200,200, .2)",n.textAlign="center",n.textBaseline="middle",n.fillText(a,e.width/2,e.height/2),t.style.backgroundImage=`url(${e.toDataURL("image/png")})`,t.style.pointerEvents="none",t.style.position="fixed",t.style.top=0,t.style.left=0,t.style.width="100%",t.style.height="100%",t.style.zIndex=99999,t.style.backgroundSize=`${c}px ${l}px`}}};var p=function(){var t=this,e=t._self._c;return e("div",{ref:"watermark",staticClass:"watermark",staticStyle:{"background-repeat":"repeat"}})},h=[],m=i.normalizeComponent(d,p,h,!1,null,"4e2021c1",null,null);const r=m.exports;r.install=function(a){a.component(r.name,r)};exports.GDpackage=r;
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { g as r, s as f } from "./http.syscodegenerateconfigmanage.6d2e5da0.mjs";
|
|
2
|
+
import { m as h, n as m } from "./components.chartbi.b043dcdc.mjs";
|
|
3
|
+
import { j as u } from "./http.main.40657f51.mjs";
|
|
4
|
+
import { S as p } from "./components.coloreditor.044983d2.mjs";
|
|
5
|
+
import "./utils.echarts.js.d1bb8ac6.mjs";
|
|
6
|
+
import "./utils.util.js.82cd8447.mjs";
|
|
7
|
+
const c = [
|
|
8
|
+
{
|
|
9
|
+
type: "selection",
|
|
10
|
+
width: "60",
|
|
11
|
+
fixed: !0
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
transKey: "gd.field.describe",
|
|
15
|
+
prop: "columnComment",
|
|
16
|
+
label: "\u63CF\u8FF0",
|
|
17
|
+
width: "200",
|
|
18
|
+
type: "slot",
|
|
19
|
+
slotType: "columnComment",
|
|
20
|
+
align: "left"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
transKey: "gd.field.field",
|
|
24
|
+
prop: "columnname",
|
|
25
|
+
label: "\u5B57\u6BB5",
|
|
26
|
+
width: "120",
|
|
27
|
+
align: "left"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
transKey: "gd.field.effectType",
|
|
31
|
+
prop: "effectType",
|
|
32
|
+
label: "\u4F5C\u7528\u7C7B\u578B",
|
|
33
|
+
width: "100",
|
|
34
|
+
type: "slot",
|
|
35
|
+
slotType: "effectType",
|
|
36
|
+
align: "left"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
transKey: "gd.view.sourceTable",
|
|
40
|
+
prop: "fktable",
|
|
41
|
+
label: "\u6765\u6E90\u8868",
|
|
42
|
+
width: "120",
|
|
43
|
+
type: "slot",
|
|
44
|
+
slotType: "fktable",
|
|
45
|
+
align: "left"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
transKey: "gd.field.handle",
|
|
49
|
+
prop: "handle",
|
|
50
|
+
label: "\u64CD\u4F5C",
|
|
51
|
+
width: "80",
|
|
52
|
+
type: "slot",
|
|
53
|
+
slotType: "handle",
|
|
54
|
+
align: "center"
|
|
55
|
+
}
|
|
56
|
+
], y = {
|
|
57
|
+
name: "GdXlsxExport",
|
|
58
|
+
props: {
|
|
59
|
+
tableData: {
|
|
60
|
+
type: Object,
|
|
61
|
+
default: () => ({})
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
data() {
|
|
65
|
+
return {
|
|
66
|
+
buttons: [
|
|
67
|
+
{
|
|
68
|
+
displayName: "\u786E\u5B9A",
|
|
69
|
+
functionName: "handleSubmit",
|
|
70
|
+
show: !0,
|
|
71
|
+
transKey: "gd.btn.confirm",
|
|
72
|
+
icon: "el-icon-document-checked"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
exportData: {},
|
|
76
|
+
record: {},
|
|
77
|
+
visible: !1,
|
|
78
|
+
confirmLoading: !1,
|
|
79
|
+
fullscreen: !1,
|
|
80
|
+
loadData: [],
|
|
81
|
+
selectedRowKeys: [],
|
|
82
|
+
selectedRows: [],
|
|
83
|
+
width: "90%",
|
|
84
|
+
disabledRowId: [],
|
|
85
|
+
checkedList: [],
|
|
86
|
+
loadFieldData: (s) => new Promise((e, a) => {
|
|
87
|
+
e({ pageNo: 1, pageSize: 100, totalRows: 0, rows: this.loadData });
|
|
88
|
+
}),
|
|
89
|
+
loadFieldDatad: (s) => new Promise((e, a) => {
|
|
90
|
+
e({ pageNo: 1, pageSize: 100, totalRows: 0, rows: this.checkedList });
|
|
91
|
+
})
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
computed: {
|
|
95
|
+
tableColumns() {
|
|
96
|
+
return c.filter((s) => s.prop !== "handle");
|
|
97
|
+
},
|
|
98
|
+
tableColumnsd() {
|
|
99
|
+
return c.filter((s) => s.type !== "selection" && s.prop !== "effectType");
|
|
100
|
+
},
|
|
101
|
+
title() {
|
|
102
|
+
return `${this.$i18nt(`Dynamics.${this.tableData.transkey}`, this.tableData.busname)} (${this.tableData.tablename}) ${this.$i18nt("gd.btn.export", "\u5BFC\u51FA")}`;
|
|
103
|
+
},
|
|
104
|
+
height() {
|
|
105
|
+
return this.screenHeight - (this.fullscreen ? 72 : 230);
|
|
106
|
+
},
|
|
107
|
+
...h(["primaryColor", "screenHeight", "tableLists", "tableSize", "tablePageSize"])
|
|
108
|
+
},
|
|
109
|
+
methods: {
|
|
110
|
+
handleSubmit() {
|
|
111
|
+
if (this.checkedList.length === 0) {
|
|
112
|
+
this.$message.error(this.$i18nt("gd.xlsxImport.leastTip", "\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u9879"));
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
const s = this.$message({
|
|
116
|
+
message: this.$i18nt("gd.login.exporting", "\u6B63\u5728\u5BFC\u51FA\u4E2D..."),
|
|
117
|
+
duration: 0,
|
|
118
|
+
iconClass: "el-icon-loading"
|
|
119
|
+
});
|
|
120
|
+
let e = [];
|
|
121
|
+
this.checkedList.forEach((t) => {
|
|
122
|
+
const i = this.$i18nt(`Dynamics.${t.transkey}`, t.columncomment), n = t.fkId ? `${i} (${this.$i18nt("gd.xlsxImport.foreignTable", "\u5916\u952E\u8868: ")} ${t.fkName})` : i;
|
|
123
|
+
e.push({
|
|
124
|
+
aliasName: n,
|
|
125
|
+
columnName: t.columnname,
|
|
126
|
+
id: t.ids,
|
|
127
|
+
tableId: t.codegenid,
|
|
128
|
+
fkId: t.fkId
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
let a = Object.assign({ ...this.record }, { displayColumns: e }), l = this.exportData.url ? this.exportData.url : !1;
|
|
132
|
+
u(a, l).then((t) => {
|
|
133
|
+
this.exportWay(t, s), this.closed();
|
|
134
|
+
}).catch((t) => {
|
|
135
|
+
s.close(), this.$message.error("err!");
|
|
136
|
+
});
|
|
137
|
+
},
|
|
138
|
+
deleteItem(s) {
|
|
139
|
+
this.checkedList = this.checkedList.filter((e) => e.keyId !== s.keyId), this.$refs.tabled.setTableData([...this.checkedList], !1), this.selectedRowKeys = this.selectedRowKeys.filter((e) => e !== s.keyId), this.selectedRows = this.selectedRows.filter((e) => e.keyId !== s.keyId), this.$nextTick(() => {
|
|
140
|
+
setTimeout(() => {
|
|
141
|
+
this.$refs.table.toggleRowSelectioClear([s.keyId]);
|
|
142
|
+
}, 0);
|
|
143
|
+
});
|
|
144
|
+
},
|
|
145
|
+
checkItem() {
|
|
146
|
+
let s = [], e = [...this.checkedList];
|
|
147
|
+
e.forEach((a) => {
|
|
148
|
+
this.selectedRows.filter((t) => t.keyId === a.keyId)[0] && s.push(a);
|
|
149
|
+
}), this.selectedRows.forEach((a) => {
|
|
150
|
+
e.filter((t) => t.keyId === a.keyId)[0] === void 0 && s.push(a);
|
|
151
|
+
}), this.checkedList = [...s], this.$refs.tabled.refresh(!1);
|
|
152
|
+
},
|
|
153
|
+
emptyItem() {
|
|
154
|
+
const s = [...this.selectedRowKeys];
|
|
155
|
+
this.checkedList = [], this.selectedRowKeys = [], this.selectedRows = [], this.$refs.tabled.setTableData([...this.checkedList], !1), this.$nextTick(() => {
|
|
156
|
+
setTimeout(() => {
|
|
157
|
+
this.$refs.table.toggleRowSelectioClear(s);
|
|
158
|
+
}, 0);
|
|
159
|
+
});
|
|
160
|
+
},
|
|
161
|
+
loadChildren(s, e, a) {
|
|
162
|
+
r({ entityName: s.fkentityname }).then((l) => {
|
|
163
|
+
let t = l.data.map((i) => {
|
|
164
|
+
let n = i.effecttype == "fk" || i.effecttype == "user" ? i.fkentityname : i.codegenname.tablename, o = this.tableLists.filter((d) => n == d.tablename)[0];
|
|
165
|
+
return o && (i.fktable = o), i.ids = s.id, i.fkId = i.id, i.keyId = `${s.id}@${i.id}`, i.fkItem = s, i.fkName = s.fkentityname, i;
|
|
166
|
+
});
|
|
167
|
+
s.children = [...t], a(t);
|
|
168
|
+
});
|
|
169
|
+
},
|
|
170
|
+
open(s, e) {
|
|
171
|
+
this.exportData = e, this.fullscreen = !1, this.visible = !0, this.confirmLoading = !0, this.record = s, f({ codeGenId: this.tableData.id }).then((a) => {
|
|
172
|
+
this.confirmLoading = !1;
|
|
173
|
+
let l = [];
|
|
174
|
+
this.loadData = a.data.filter((t) => !(t.effecttype == "about" && t.columnname == (t.relations + "_AboutTable").toLowerCase())).map((t) => {
|
|
175
|
+
let i = t.effecttype == "fk" || t.effecttype == "user" ? t.fkentityname : t.codegenname.tablename, n = this.tableLists.filter((o) => i == o.tablename)[0];
|
|
176
|
+
return n && (t.fktable = n), (t.effecttype == "fk" || t.effecttype == "user") && (l.push(t.id), t.hasChildren = !0), t.ids = t.id, t.fkId = null, t.keyId = t.id, t.fkName = null, t;
|
|
177
|
+
}), this.disabledRowId = l, this.refresh(!1), this.$nextTick(() => {
|
|
178
|
+
setTimeout(() => {
|
|
179
|
+
this.rowDrop();
|
|
180
|
+
}, 0);
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
},
|
|
184
|
+
exportWay(s, e) {
|
|
185
|
+
if (s) {
|
|
186
|
+
const a = new Blob([s.data], {
|
|
187
|
+
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
188
|
+
}), l = URL.createObjectURL(a), t = document.createElement("a");
|
|
189
|
+
t.style.display = "none", t.href = l, t.download = this.tableData.tablename, t.click(), URL.revokeObjectURL(t.href), setTimeout(() => {
|
|
190
|
+
e.close();
|
|
191
|
+
}, 1e3);
|
|
192
|
+
} else
|
|
193
|
+
e.close(), this.$message.error(s.message);
|
|
194
|
+
},
|
|
195
|
+
onSelectChange(s, e) {
|
|
196
|
+
this.selectedRowKeys = s, this.selectedRows = e;
|
|
197
|
+
},
|
|
198
|
+
refresh(s = !0) {
|
|
199
|
+
this.$refs.table.refresh(!1), this.$refs.tabled.refresh(!1);
|
|
200
|
+
},
|
|
201
|
+
rowDrop() {
|
|
202
|
+
const s = document.querySelector("#config-table .el-table__body-wrapper tbody");
|
|
203
|
+
let e = this;
|
|
204
|
+
p.create(s, {
|
|
205
|
+
onEnd: (a) => {
|
|
206
|
+
const l = e.checkedList[a.oldIndex];
|
|
207
|
+
e.checkedList.splice(a.oldIndex, 1), e.checkedList.splice(a.newIndex, 0, l), console.log(e.checkedList);
|
|
208
|
+
},
|
|
209
|
+
animation: 300,
|
|
210
|
+
handle: ".el-table__row"
|
|
211
|
+
});
|
|
212
|
+
},
|
|
213
|
+
closed() {
|
|
214
|
+
this.fullscreen = !1, this.visible = !1;
|
|
215
|
+
},
|
|
216
|
+
toggleFullscreen() {
|
|
217
|
+
this.fullscreen = !this.fullscreen;
|
|
218
|
+
},
|
|
219
|
+
doEvent(s) {
|
|
220
|
+
const e = s.item.functionName, a = s.key ? s : s.item;
|
|
221
|
+
if (this[e] === void 0 && this.func === void 0) {
|
|
222
|
+
console.log("\u8BF7\u5B9A\u4E49 " + e + " \u65B9\u6CD5");
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
this[e] && this[e](a);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
var b = function() {
|
|
230
|
+
var e = this, a = e._self._c;
|
|
231
|
+
return a("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, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(l) {
|
|
232
|
+
e.visible = l;
|
|
233
|
+
}, closed: e.closed } }, [a("template", { slot: "title" }, [a("gd-modal-title", { attrs: { title: e.title, fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), a("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "export-container" }, [a("div", { staticClass: "l" }, [a("gd-tables", { ref: "table", attrs: { dataSource: e.loadFieldData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.height, showPagination: !1, initialLoading: !1, disabledRefresh: !0, disabledRowId: e.disabledRowId, lazy: "", load: e.loadChildren, rowKey: "keyId" }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "columnComment", fn: function({ column: l, row: t }) {
|
|
234
|
+
return [e._v(" " + e._s(e.$i18nt(`Dynamics.${t.transkey}`, t.columncomment)) + " ")];
|
|
235
|
+
} }, { key: "effectType", fn: function({ column: l, row: t }) {
|
|
236
|
+
return [e._v(" " + e._s(e._f("dictType")("code_gen_effect_type", t.effecttype)) + " ")];
|
|
237
|
+
} }, { key: "fktable", fn: function({ column: l, row: t }) {
|
|
238
|
+
return [e._v(" " + e._s(e.$i18nt(`Dynamics.${t.fktable.transkey}`, t.fktable.busname)) + " ")];
|
|
239
|
+
} }]) })], 1), a("div", { staticClass: "c" }, [a("div", { staticClass: "citem" }, [a("el-button", { staticStyle: { width: "100%" }, attrs: { type: "primary" }, on: { click: e.checkItem } }, [e._v(" " + e._s(e.$i18nt("gd.btn.choice", "\u9009\u62E9")) + " "), a("i", { staticClass: "el-icon-d-arrow-right" })])], 1), a("div", { staticClass: "citem" }, [a("el-button", { staticStyle: { width: "100%" }, attrs: { type: "danger" }, on: { click: e.emptyItem } }, [e._v(" " + e._s(e.$i18nt("gd.btn.empty", "\u6E05\u7A7A")) + " "), a("i", { staticClass: "el-icon-close" })])], 1)]), a("div", { staticClass: "l", attrs: { id: "config-table" } }, [a("gd-tables", { ref: "tabled", attrs: { dataSource: e.loadFieldDatad, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumnsd, height: e.height, showPagination: !1, initialLoading: !1, disabledRefresh: !0, rowKey: "keyId" }, scopedSlots: e._u([{ key: "columnComment", fn: function({ column: l, row: t }) {
|
|
240
|
+
return [e._v(" " + e._s(e.$i18nt(`Dynamics.${t.transkey}`, t.columncomment)) + " ")];
|
|
241
|
+
} }, { key: "effectType", fn: function({ column: l, row: t }) {
|
|
242
|
+
return [e._v(" " + e._s(e._f("dictType")("code_gen_effect_type", t.effecttype)) + " ")];
|
|
243
|
+
} }, { key: "fktable", fn: function({ column: l, row: t }) {
|
|
244
|
+
return [t.fkId ? a("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${t.fktable.transkey}`, t.fktable.busname)) + " ( " + e._s(e.$i18nt(`Dynamics.${t.fkItem.transkey}`, t.fkItem.columncomment)) + " ) ")]) : e._e()];
|
|
245
|
+
} }, { key: "handle", fn: function({ column: l, row: t }) {
|
|
246
|
+
return [a("div", { staticClass: "export-handle" }, [a("i", { staticClass: "el-icon-rank active-color drag-move" }), a("i", { staticClass: "el-icon-close", on: { click: function(i) {
|
|
247
|
+
return e.deleteItem(t);
|
|
248
|
+
} } })])];
|
|
249
|
+
} }]) })], 1)])], 2);
|
|
250
|
+
}, g = [], k = /* @__PURE__ */ m(
|
|
251
|
+
y,
|
|
252
|
+
b,
|
|
253
|
+
g,
|
|
254
|
+
!1,
|
|
255
|
+
null,
|
|
256
|
+
"15dbbf3c",
|
|
257
|
+
null,
|
|
258
|
+
null
|
|
259
|
+
);
|
|
260
|
+
const L = k.exports;
|
|
261
|
+
export {
|
|
262
|
+
L as default
|
|
263
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./http.syscodegenerateconfigmanage.840f1136.js"),d=require("./components.chartbi.e4680eaa.js"),h=require("./http.main.2f8a6936.js"),u=require("./components.coloreditor.779a9419.js");require("./utils.echarts.js.461a74e7.js");require("./utils.util.js.50d1ec9c.js");const r=[{type:"selection",width:"60",fixed:!0},{transKey:"gd.field.describe",prop:"columnComment",label:"\u63CF\u8FF0",width:"200",type:"slot",slotType:"columnComment",align:"left"},{transKey:"gd.field.field",prop:"columnname",label:"\u5B57\u6BB5",width:"120",align:"left"},{transKey:"gd.field.effectType",prop:"effectType",label:"\u4F5C\u7528\u7C7B\u578B",width:"100",type:"slot",slotType:"effectType",align:"left"},{transKey:"gd.view.sourceTable",prop:"fktable",label:"\u6765\u6E90\u8868",width:"120",type:"slot",slotType:"fktable",align:"left"},{transKey:"gd.field.handle",prop:"handle",label:"\u64CD\u4F5C",width:"80",type:"slot",slotType:"handle",align:"center"}],m={name:"GdXlsxExport",props:{tableData:{type:Object,default:()=>({})}},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],exportData:{},record:{},visible:!1,confirmLoading:!1,fullscreen:!1,loadData:[],selectedRowKeys:[],selectedRows:[],width:"90%",disabledRowId:[],checkedList:[],loadFieldData:s=>new Promise((e,a)=>{e({pageNo:1,pageSize:100,totalRows:0,rows:this.loadData})}),loadFieldDatad:s=>new Promise((e,a)=>{e({pageNo:1,pageSize:100,totalRows:0,rows:this.checkedList})})}},computed:{tableColumns(){return r.filter(s=>s.prop!=="handle")},tableColumnsd(){return r.filter(s=>s.type!=="selection"&&s.prop!=="effectType")},title(){return`${this.$i18nt(`Dynamics.${this.tableData.transkey}`,this.tableData.busname)} (${this.tableData.tablename}) ${this.$i18nt("gd.btn.export","\u5BFC\u51FA")}`},height(){return this.screenHeight-(this.fullscreen?72:230)},...d.mapGetters(["primaryColor","screenHeight","tableLists","tableSize","tablePageSize"])},methods:{handleSubmit(){if(this.checkedList.length===0){this.$message.error(this.$i18nt("gd.xlsxImport.leastTip","\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u9879"));return}const s=this.$message({message:this.$i18nt("gd.login.exporting","\u6B63\u5728\u5BFC\u51FA\u4E2D..."),duration:0,iconClass:"el-icon-loading"});let e=[];this.checkedList.forEach(t=>{const i=this.$i18nt(`Dynamics.${t.transkey}`,t.columncomment),n=t.fkId?`${i} (${this.$i18nt("gd.xlsxImport.foreignTable","\u5916\u952E\u8868: ")} ${t.fkName})`:i;e.push({aliasName:n,columnName:t.columnname,id:t.ids,tableId:t.codegenid,fkId:t.fkId})});let a=Object.assign({...this.record},{displayColumns:e}),l=this.exportData.url?this.exportData.url:!1;h.baseExport(a,l).then(t=>{this.exportWay(t,s),this.closed()}).catch(t=>{s.close(),this.$message.error("err!")})},deleteItem(s){this.checkedList=this.checkedList.filter(e=>e.keyId!==s.keyId),this.$refs.tabled.setTableData([...this.checkedList],!1),this.selectedRowKeys=this.selectedRowKeys.filter(e=>e!==s.keyId),this.selectedRows=this.selectedRows.filter(e=>e.keyId!==s.keyId),this.$nextTick(()=>{setTimeout(()=>{this.$refs.table.toggleRowSelectioClear([s.keyId])},0)})},checkItem(){let s=[],e=[...this.checkedList];e.forEach(a=>{this.selectedRows.filter(t=>t.keyId===a.keyId)[0]&&s.push(a)}),this.selectedRows.forEach(a=>{e.filter(t=>t.keyId===a.keyId)[0]===void 0&&s.push(a)}),this.checkedList=[...s],this.$refs.tabled.refresh(!1)},emptyItem(){const s=[...this.selectedRowKeys];this.checkedList=[],this.selectedRowKeys=[],this.selectedRows=[],this.$refs.tabled.setTableData([...this.checkedList],!1),this.$nextTick(()=>{setTimeout(()=>{this.$refs.table.toggleRowSelectioClear(s)},0)})},loadChildren(s,e,a){c.getCodeByEntity({entityName:s.fkentityname}).then(l=>{let t=l.data.map(i=>{let n=i.effecttype=="fk"||i.effecttype=="user"?i.fkentityname:i.codegenname.tablename,o=this.tableLists.filter(f=>n==f.tablename)[0];return o&&(i.fktable=o),i.ids=s.id,i.fkId=i.id,i.keyId=`${s.id}@${i.id}`,i.fkItem=s,i.fkName=s.fkentityname,i});s.children=[...t],a(t)})},open(s,e){this.exportData=e,this.fullscreen=!1,this.visible=!0,this.confirmLoading=!0,this.record=s,c.sysCodeGenerateConfigList({codeGenId:this.tableData.id}).then(a=>{this.confirmLoading=!1;let l=[];this.loadData=a.data.filter(t=>!(t.effecttype=="about"&&t.columnname==(t.relations+"_AboutTable").toLowerCase())).map(t=>{let i=t.effecttype=="fk"||t.effecttype=="user"?t.fkentityname:t.codegenname.tablename,n=this.tableLists.filter(o=>i==o.tablename)[0];return n&&(t.fktable=n),(t.effecttype=="fk"||t.effecttype=="user")&&(l.push(t.id),t.hasChildren=!0),t.ids=t.id,t.fkId=null,t.keyId=t.id,t.fkName=null,t}),this.disabledRowId=l,this.refresh(!1),this.$nextTick(()=>{setTimeout(()=>{this.rowDrop()},0)})})},exportWay(s,e){if(s){const a=new Blob([s.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),l=URL.createObjectURL(a),t=document.createElement("a");t.style.display="none",t.href=l,t.download=this.tableData.tablename,t.click(),URL.revokeObjectURL(t.href),setTimeout(()=>{e.close()},1e3)}else e.close(),this.$message.error(s.message)},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},refresh(s=!0){this.$refs.table.refresh(!1),this.$refs.tabled.refresh(!1)},rowDrop(){const s=document.querySelector("#config-table .el-table__body-wrapper tbody");let e=this;u.Sortable.create(s,{onEnd:a=>{const l=e.checkedList[a.oldIndex];e.checkedList.splice(a.oldIndex,1),e.checkedList.splice(a.newIndex,0,l),console.log(e.checkedList)},animation:300,handle:".el-table__row"})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(s){const e=s.item.functionName,a=s.key?s:s.item;if(this[e]===void 0&&this.func===void 0){console.log("\u8BF7\u5B9A\u4E49 "+e+" \u65B9\u6CD5");return}this[e]&&this[e](a)}}};var p=function(){var e=this,a=e._self._c;return a("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,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(l){e.visible=l},closed:e.closed}},[a("template",{slot:"title"},[a("gd-modal-title",{attrs:{title:e.title,fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"export-container"},[a("div",{staticClass:"l"},[a("gd-tables",{ref:"table",attrs:{dataSource:e.loadFieldData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,showPagination:!1,initialLoading:!1,disabledRefresh:!0,disabledRowId:e.disabledRowId,lazy:"",load:e.loadChildren,rowKey:"keyId"},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"columnComment",fn:function({column:l,row:t}){return[e._v(" "+e._s(e.$i18nt(`Dynamics.${t.transkey}`,t.columncomment))+" ")]}},{key:"effectType",fn:function({column:l,row:t}){return[e._v(" "+e._s(e._f("dictType")("code_gen_effect_type",t.effecttype))+" ")]}},{key:"fktable",fn:function({column:l,row:t}){return[e._v(" "+e._s(e.$i18nt(`Dynamics.${t.fktable.transkey}`,t.fktable.busname))+" ")]}}])})],1),a("div",{staticClass:"c"},[a("div",{staticClass:"citem"},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:e.checkItem}},[e._v(" "+e._s(e.$i18nt("gd.btn.choice","\u9009\u62E9"))+" "),a("i",{staticClass:"el-icon-d-arrow-right"})])],1),a("div",{staticClass:"citem"},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"danger"},on:{click:e.emptyItem}},[e._v(" "+e._s(e.$i18nt("gd.btn.empty","\u6E05\u7A7A"))+" "),a("i",{staticClass:"el-icon-close"})])],1)]),a("div",{staticClass:"l",attrs:{id:"config-table"}},[a("gd-tables",{ref:"tabled",attrs:{dataSource:e.loadFieldDatad,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumnsd,height:e.height,showPagination:!1,initialLoading:!1,disabledRefresh:!0,rowKey:"keyId"},scopedSlots:e._u([{key:"columnComment",fn:function({column:l,row:t}){return[e._v(" "+e._s(e.$i18nt(`Dynamics.${t.transkey}`,t.columncomment))+" ")]}},{key:"effectType",fn:function({column:l,row:t}){return[e._v(" "+e._s(e._f("dictType")("code_gen_effect_type",t.effecttype))+" ")]}},{key:"fktable",fn:function({column:l,row:t}){return[t.fkId?a("span",[e._v(" "+e._s(e.$i18nt(`Dynamics.${t.fktable.transkey}`,t.fktable.busname))+" ( "+e._s(e.$i18nt(`Dynamics.${t.fkItem.transkey}`,t.fkItem.columncomment))+" ) ")]):e._e()]}},{key:"handle",fn:function({column:l,row:t}){return[a("div",{staticClass:"export-handle"},[a("i",{staticClass:"el-icon-rank active-color drag-move"}),a("i",{staticClass:"el-icon-close",on:{click:function(i){return e.deleteItem(t)}}})])]}}])})],1)])],2)},y=[],b=d.normalizeComponent(m,p,y,!1,null,"15dbbf3c",null,null);const g=b.exports;exports.default=g;
|