gds-plus-design-vue 1.2.6 → 1.2.7
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/approvalModel.a26e8ff6.mjs +340 -0
- package/lib/approvalModel.cfd81971.js +1 -0
- package/lib/btnFunctionName.9aabfed0.js +1 -0
- package/lib/btnFunctionName.d08627cb.mjs +254 -0
- package/lib/btnRelation.8e608261.mjs +156 -0
- package/lib/btnRelation.cb3dc022.js +1 -0
- package/lib/businessRules.754cc398.mjs +539 -0
- package/lib/businessRules.f41f7035.js +1 -0
- package/lib/buttonRule.4483314f.mjs +396 -0
- package/lib/buttonRule.645de1d3.js +1 -0
- package/lib/chartDisplayRules.1f4d1f29.mjs +288 -0
- package/lib/chartDisplayRules.fedfefe8.js +1 -0
- package/lib/components.chartbi.470b96af.mjs +1798 -0
- package/lib/components.chartbi.e9459775.js +8 -0
- package/lib/components.coloreditor.affa0400.mjs +1505 -0
- package/lib/components.coloreditor.dbec8da6.js +6 -0
- package/lib/components.dataassign.39281072.mjs +147 -0
- package/lib/components.dataassign.b6a1bffb.js +1 -0
- package/lib/components.echarts.95ffc3b3.mjs +811 -0
- package/lib/components.echarts.d09e9850.js +4 -0
- package/lib/components.exception.11315db5.js +1 -0
- package/lib/components.exception.facf9df9.mjs +61 -0
- package/lib/components.form.56ea8f98.js +41 -0
- package/lib/components.form.a7b3ea37.mjs +7813 -0
- package/lib/components.globalheader.0a7ce959.js +1 -0
- package/lib/components.globalheader.4a5f7225.mjs +54 -0
- package/lib/components.iconselector.0c03cfc7.js +1 -0
- package/lib/components.iconselector.251c29b9.mjs +1169 -0
- package/lib/components.imgpreview.5546e541.mjs +213 -0
- package/lib/components.imgpreview.706a89f0.js +1 -0
- package/lib/components.lunccalendar.5363cba5.mjs +1137 -0
- package/lib/components.lunccalendar.fe7db238.js +1 -0
- package/lib/components.middleware.01601349.js +1 -0
- package/lib/components.middleware.f5f4ac0f.mjs +148 -0
- package/lib/components.modaltitle.5ded43f9.mjs +127 -0
- package/lib/components.modaltitle.cc9ba616.js +1 -0
- package/lib/components.multitab.0f9da9f3.mjs +140 -0
- package/lib/components.multitab.726cff2f.js +1 -0
- package/lib/components.selecttree.1a71c963.mjs +170 -0
- package/lib/components.selecttree.2fadffca.js +1 -0
- package/lib/components.settingdrawer.1af86231.js +1 -0
- package/lib/components.settingdrawer.adc262cf.mjs +237 -0
- package/lib/components.sidemenu.03442146.mjs +277 -0
- package/lib/components.sidemenu.5107c7e3.js +1 -0
- package/lib/components.sidenavmenu.3d255147.mjs +1147 -0
- package/lib/components.sidenavmenu.ef33de39.js +1 -0
- package/lib/components.statuschange.805a751b.mjs +116 -0
- package/lib/components.statuschange.83646c5d.js +1 -0
- package/lib/components.table.61eb5d81.js +8 -0
- package/lib/components.table.c986e58d.mjs +4650 -0
- package/lib/components.tableumy.35b465f9.mjs +453 -0
- package/lib/components.tableumy.eba43953.js +1 -0
- package/lib/components.tablevirtual.14a8dbed.mjs +564 -0
- package/lib/components.tablevirtual.6af04c44.js +1 -0
- package/lib/components.teamsharing.68865424.js +1 -0
- package/lib/components.teamsharing.c4f4f12e.mjs +373 -0
- package/lib/components.tooltip.ccb1717d.mjs +86 -0
- package/lib/components.tooltip.e2e21e66.js +1 -0
- package/lib/components.uploadfile.a0dfedaf.mjs +228 -0
- package/lib/components.uploadfile.e93b500d.js +1 -0
- package/lib/components.uploadimg.3804913e.js +1 -0
- package/lib/components.uploadimg.e49707d9.mjs +192 -0
- package/lib/components.verificationcode.5a9c0220.js +1 -0
- package/lib/components.verificationcode.ead74922.mjs +71 -0
- package/lib/components.viewformdetails.3c1596ad.js +1 -0
- package/lib/components.viewformdetails.98be3c0d.mjs +1081 -0
- package/lib/components.viewloading.5b178ec5.js +1 -0
- package/lib/components.viewloading.cb7917b7.mjs +99 -0
- package/lib/components.watermark.849409ca.js +2 -0
- package/lib/components.watermark.a2521d0c.mjs +53 -0
- package/lib/components.xlsxexport.3405a00b.js +1 -0
- package/lib/components.xlsxexport.871f87d1.mjs +263 -0
- package/lib/components.xlsximport.85ce77cf.mjs +922 -0
- package/lib/components.xlsximport.e3bcb07d.js +1 -0
- package/lib/copy.b09a6d38.js +1 -0
- package/lib/copy.c0a2f16d.mjs +572 -0
- package/lib/dialogLayout.059ee256.mjs +138 -0
- package/lib/dialogLayout.cedf2865.js +1 -0
- package/lib/drawerContainer.38d7b530.mjs +154 -0
- package/lib/drawerContainer.ea7722d7.js +1 -0
- package/lib/drawerLayout.454e4921.js +1 -0
- package/lib/drawerLayout.fad843ee.mjs +119 -0
- package/lib/editForm.c199538f.mjs +434 -0
- package/lib/editForm.f9dc93ef.js +1 -0
- package/lib/flow.designer.4c83c0d3.js +1 -0
- package/lib/flow.designer.9442a995.mjs +7673 -0
- package/lib/flow.list.4a31969e.mjs +3032 -0
- package/lib/flow.list.f41ee531.js +1 -0
- package/lib/form.build.c38bf362.js +1 -0
- package/lib/form.build.fb9f905b.mjs +259 -0
- package/lib/form.designer.build.3fdf8007.js +1 -0
- package/lib/form.designer.build.e1b97dc3.mjs +5135 -0
- package/lib/formFiled.624b8dd3.js +1 -0
- package/lib/formFiled.94fb1dce.mjs +498 -0
- package/lib/gd-initial.js +1 -35
- package/lib/gd-initial.mjs +233 -91087
- package/lib/http.appmanage.9b22ff82.mjs +50 -0
- package/lib/http.appmanage.b998818f.js +1 -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.d3a4afd9.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.1af1e119.mjs +517 -0
- package/lib/http.main.2f8a6936.js +1 -0
- package/lib/http.menumanage.09fffb7d.mjs +66 -0
- package/lib/http.menumanage.6d740f2c.js +1 -0
- package/lib/http.message.1d68e914.mjs +178 -0
- package/lib/http.message.87f319d7.js +1 -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.7adf4910.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.3fa2dc66.mjs +40154 -0
- package/lib/index.fe757a98.js +8 -0
- package/lib/layoutBlocks.14c77a02.js +1 -0
- package/lib/layoutBlocks.5d71a03b.mjs +401 -0
- package/lib/layouts.a662f681.js +2 -0
- package/lib/layouts.ec4f20a2.mjs +376 -0
- package/lib/main.092a2ac8.js +1 -0
- package/lib/{main.f0045877.mjs → main.15237e71.mjs} +12 -10
- package/lib/main.29769f01.js +1 -0
- package/lib/main.401059c6.mjs +189 -0
- package/lib/main.447be615.js +1 -0
- package/lib/main.4e507685.mjs +231 -0
- package/lib/main.72cafa63.mjs +540 -0
- package/lib/{main.c41228a0.mjs → main.73f22d9e.mjs} +9 -8
- package/lib/main.7601bd3d.mjs +166 -0
- package/lib/main.79199ac2.js +1 -0
- package/lib/main.821d081b.js +1 -0
- package/lib/main.8627466a.mjs +537 -0
- package/lib/{main.b5a3be02.mjs → main.88e9be9d.mjs} +4 -4
- package/lib/main.8e6f6cba.mjs +323 -0
- package/lib/main.a9a54af9.js +1 -0
- package/lib/main.e033a376.js +1 -0
- package/lib/main.e2e4ba74.js +1 -0
- package/lib/{main.3caa11e1.mjs → main.e79d9e56.mjs} +113 -188
- package/lib/main.ea3a04f4.js +1 -0
- package/lib/main.f44d8279.js +1 -0
- package/lib/messages.5f54a62e.js +9 -0
- package/lib/{messages.a739f4fc.mjs → messages.d4354532.mjs} +4321 -5268
- package/lib/packages.filedocument.8418d852.mjs +4039 -0
- package/lib/packages.filedocument.9b8eda0d.js +1 -0
- package/lib/page.build.4d28df9a.js +12 -0
- package/lib/page.build.78cc7396.mjs +3020 -0
- package/lib/personal.echarts.940f1cc9.mjs +696 -0
- package/lib/personal.echarts.b5a7f574.js +1 -0
- package/lib/result.0161b0e0.js +1 -0
- package/lib/result.5a9330d7.mjs +627 -0
- package/lib/router.config.79a98ab8.mjs +3105 -0
- package/lib/router.config.7fd04c30.js +1 -0
- package/lib/solution.application.3ae7c0c5.js +1 -0
- package/lib/solution.application.fdc15ffc.mjs +548 -0
- package/lib/solution.applicationmenu.67aba620.js +1 -0
- package/lib/solution.applicationmenu.daaacb07.mjs +508 -0
- package/lib/solution.approvalflow.81b7cfb7.js +1 -0
- package/lib/solution.approvalflow.a541adcc.mjs +436 -0
- package/lib/solution.dict.addbce33.mjs +769 -0
- package/lib/solution.dict.f1c9bae6.js +1 -0
- package/lib/solution.menu.2033fa37.mjs +5834 -0
- package/lib/solution.menu.6512047f.js +1 -0
- package/lib/solution.plugin.7094dbfd.js +1 -0
- package/lib/solution.plugin.d8f057cb.mjs +347 -0
- package/lib/solution.processflow.0adf4f55.js +1 -0
- package/lib/solution.processflow.a779bd58.mjs +392 -0
- package/lib/solution.role.d35cb00d.js +1 -0
- package/lib/solution.role.d9a4b25a.mjs +456 -0
- package/lib/solution.webresources.e1421655.mjs +379 -0
- package/lib/solution.webresources.e817757c.js +1 -0
- package/lib/solution.workflow.59552b8c.mjs +395 -0
- package/lib/solution.workflow.985e1f4d.js +1 -0
- package/lib/store.config.556bd56b.js +1 -0
- package/lib/store.config.5e5cb48a.mjs +547 -0
- package/lib/style.css +3 -3
- package/lib/system.account.1b281679.js +216 -0
- package/lib/system.account.96d5bc17.mjs +2093 -0
- package/lib/system.config.0ff45e62.js +1 -0
- package/lib/{system.config.d2ad8c97.mjs → system.config.35b13003.mjs} +7 -6
- package/lib/system.datasource.4243937d.js +1 -0
- package/lib/{system.datasource.a77831ab.mjs → system.datasource.7f582bef.mjs} +15 -64
- package/lib/{system.dict.cb276470.mjs → system.dict.3697546d.mjs} +269 -344
- package/lib/system.dict.8e4fe6b0.js +1 -0
- package/lib/system.document.69e534a6.js +1 -0
- package/lib/system.document.8e4dbe5e.mjs +667 -0
- package/lib/system.duplicatechecking.1083eb1e.js +1 -0
- package/lib/system.duplicatechecking.c6a8b2b7.mjs +722 -0
- package/lib/system.email.06bb7cc1.mjs +133 -0
- package/lib/system.email.41036a31.js +1 -0
- package/lib/system.fieldsecurity.3ea880d8.js +1 -0
- package/lib/{system.fieldsecurity.9d40595f.mjs → system.fieldsecurity.dd504643.mjs} +486 -938
- package/lib/{system.file.8064c8e9.mjs → system.file.8ccc4569.mjs} +84 -151
- package/lib/system.file.b8e4e6a1.js +1 -0
- package/lib/system.log.14c22a7a.js +1 -0
- package/lib/{system.log.2b2fc11a.mjs → system.log.aad4ff54.mjs} +31 -93
- package/lib/system.machine.379beacb.js +1 -0
- package/lib/{system.machine.0130e762.mjs → system.machine.c47be0cc.mjs} +5 -25
- package/lib/{system.notice.5f8cd020.mjs → system.notice.dc1b67cc.mjs} +1075 -1255
- package/lib/system.notice.fb151c45.js +1 -0
- package/lib/system.noticereceived.3a29d891.js +1 -0
- package/lib/{system.noticereceived.51b6353a.mjs → system.noticereceived.e75bf358.mjs} +19 -27
- package/lib/{system.onlineuser.c0a69360.mjs → system.onlineuser.ab9c2776.mjs} +36 -38
- package/lib/system.onlineuser.fc26aff9.js +1 -0
- package/lib/system.org.b6f826e8.js +1 -0
- package/lib/{system.org.1169fe47.mjs → system.org.dd710a91.mjs} +3 -3
- package/lib/system.permissions.75406743.mjs +972 -0
- package/lib/system.permissions.97f68887.js +1 -0
- package/lib/system.plugin.3fcf7b0b.js +1 -0
- package/lib/{system.plugin.502a69d8.mjs → system.plugin.4b80cd95.mjs} +503 -552
- package/lib/system.pos.5a1663d8.js +1 -0
- package/lib/{system.pos.8c44c029.mjs → system.pos.a3bafaaa.mjs} +31 -62
- package/lib/system.promptmanagement.53c301a3.js +1 -0
- package/lib/{system.promptmanagement.d8565db4.mjs → system.promptmanagement.fd651c09.mjs} +318 -449
- package/lib/{system.role.19959d7f.mjs → system.role.9edb5922.mjs} +512 -486
- package/lib/system.role.e164f059.js +1 -0
- package/lib/{system.sumberrules.087015a4.mjs → system.sumberrules.4bb2c95c.mjs} +169 -192
- package/lib/system.sumberrules.5e9cd262.js +1 -0
- package/lib/system.team.3e605266.js +1 -0
- package/lib/system.team.bb1fb40e.mjs +452 -0
- package/lib/system.teammembers.a098883b.js +1 -0
- package/lib/{system.teammembers.4056d586.mjs → system.teammembers.b8e53d99.mjs} +257 -199
- package/lib/system.timers.2f884e41.js +38 -0
- package/lib/{system.timers.6f61bfe1.mjs → system.timers.551c4a4b.mjs} +2202 -2278
- package/lib/system.translation.6e99c852.js +1 -0
- package/lib/{system.translation.9b88fbf2.mjs → system.translation.c2c1f40c.mjs} +437 -431
- package/lib/{system.user.bdf2613e.mjs → system.user.b99911de.mjs} +1082 -1025
- package/lib/system.user.dffc2543.js +14 -0
- package/lib/{system.useraffiliation.63b6bb36.mjs → system.useraffiliation.12cae7ef.mjs} +419 -412
- package/lib/system.useraffiliation.f8b33def.js +1 -0
- package/lib/system.webresource.1d3ed352.js +1 -0
- package/lib/{system.webresource.c36d6792.mjs → system.webresource.8a8d856b.mjs} +177 -219
- package/lib/{system.welcome.14785b50.mjs → system.welcome.573a76db.mjs} +10 -3
- package/lib/system.welcome.eedf1db2.js +1 -0
- package/lib/tableDescriptions.923c4ef1.mjs +80 -0
- package/lib/tableDescriptions.b12679b0.js +1 -0
- package/lib/tcheckboxs.887d733c.mjs +52 -0
- package/lib/tcheckboxs.fe7e574a.js +1 -0
- package/lib/tcurrency.10ac9aa7.mjs +85 -0
- package/lib/tcurrency.20e959c0.js +1 -0
- package/lib/tdatepicker.54036bba.js +1 -0
- package/lib/tdatepicker.a08ad382.mjs +52 -0
- package/lib/tdictSwitch.274e9f86.js +1 -0
- package/lib/tdictSwitch.d40f1b4f.mjs +60 -0
- package/lib/tfile.5c897827.js +1 -0
- package/lib/tfile.f63b73b9.mjs +62 -0
- package/lib/tparticipants.4698962b.mjs +56 -0
- package/lib/tparticipants.b6fb4545.js +1 -0
- package/lib/translation.mains.5cfc7a2f.js +1 -0
- package/lib/translation.mains.e6cb610b.mjs +383 -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.885de913.mjs +439 -0
- package/lib/utils.util.js.c0ba699b.js +1 -0
- package/lib/view.build.051553d8.mjs +1578 -0
- package/lib/view.build.9af3087b.js +1 -0
- package/lib/viewList.209956c3.js +1 -0
- package/lib/viewList.c05c92be.mjs +318 -0
- package/lib/viewTree.0cd9f1a2.js +1 -0
- package/lib/viewTree.c5290360.mjs +409 -0
- package/locale/en_US.js +92 -28
- package/locale/id_ID.js +76 -12
- package/locale/vi_VN.js +2012 -1948
- package/locale/zh_CN.js +97 -33
- package/package.json +106 -105
- package/lib/chartbi.114d32d7.js +0 -60
- package/lib/chartbi.eb4dd0af.mjs +0 -27639
- package/lib/main.03984fed.js +0 -1
- package/lib/main.1050afb3.js +0 -1
- package/lib/main.64122541.js +0 -1
- package/lib/main.b7d2c6ee.js +0 -1
- package/lib/messages.828b6ed8.js +0 -9
- package/lib/system.account.3181bcd6.js +0 -216
- package/lib/system.account.7c6ea20c.mjs +0 -2552
- package/lib/system.config.10f57fa2.js +0 -1
- package/lib/system.datasource.d5eea7f2.js +0 -1
- package/lib/system.dict.d73658f1.js +0 -1
- package/lib/system.duplicatechecking.5c8a3eef.mjs +0 -2142
- package/lib/system.duplicatechecking.d24ba6ea.js +0 -1
- package/lib/system.email.4bf52f2d.js +0 -41
- package/lib/system.email.db5da8d7.mjs +0 -7432
- package/lib/system.fieldsecurity.eb217079.js +0 -1
- package/lib/system.file.c1884db7.js +0 -1
- package/lib/system.log.389af80d.js +0 -1
- package/lib/system.machine.49fc6405.js +0 -1
- package/lib/system.notice.a89f4826.js +0 -1
- package/lib/system.noticereceived.5e0773c3.js +0 -1
- package/lib/system.onlineuser.67733846.js +0 -1
- package/lib/system.org.ff54d620.js +0 -1
- package/lib/system.permissions.cc9a9866.mjs +0 -212
- package/lib/system.permissions.e6317c5a.js +0 -9
- package/lib/system.plugin.3467d572.js +0 -1
- package/lib/system.pos.4aadf86e.js +0 -1
- package/lib/system.promptmanagement.9ba710d6.js +0 -1
- package/lib/system.role.890c8ca2.js +0 -1
- package/lib/system.sumberrules.068ebe4a.js +0 -1
- package/lib/system.team.27cd57f7.mjs +0 -1000
- package/lib/system.team.2b28502b.js +0 -1
- package/lib/system.teammembers.e3baf783.js +0 -1
- package/lib/system.timers.cb0a3bd0.js +0 -38
- package/lib/system.translation.f3884a0a.js +0 -1
- package/lib/system.user.3bd95871.js +0 -14
- package/lib/system.useraffiliation.7db6e13c.js +0 -1
- package/lib/system.webresource.ede248a8.js +0 -1
- package/lib/system.welcome.c9eefa06.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const d=require("./http.filemanage.7e6e3e1a.js"),p=require("./utils.util.js.c0ba699b.js"),f=require("./components.chartbi.e9459775.js");const c={name:"GdUploadFile",props:{record:{type:Object,required:!0},model:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},limit:{type:Number,default:1},prop:{type:String,default:""},develop:{type:[Number,String],default:1},accept:{type:String,default:""},size:{type:Number,default:100}},data(){return{fileUploadList:[],fileListFile:[],uid:"",imgList:[],currentImg:"",leg:0,fileName:"",uidUploading:[]}},computed:{isDrag(){return this.options.drag!==void 0?this.options.drag:!1},download(){return this.options.download!==void 0?this.options.download:!1},disableds(){return this.limit<=this.leg?!0:this.disabled},fileAccept(){return this.accept?this.accept:p.getFileAccept("file")},fileSize(){return this.size?this.size:p.getFileSize("file")},options(){return this.record.options}},methods:{clearFiles(){this.fileListFile=[],this.uidUploading=[],this.record.uidUploading=[],this.leg=0,this.record.sourceData=JSON.stringify([]),this.model[this.prop]="",this.$refs.uploadFile&&this.$refs.uploadFile.clearFiles(),this.handleChange()},onExceed(){this.$message.error(this.$i18nt("gd.view.fileLimitTip","\u5DF2\u8D85\u8FC7\u6700\u5927\u4E0A\u4F20\u6570\u91CF"))},beforeUpload(i){return!(this.limit<=this.leg)},setDataMore({val:i,data:e,items:l,fkData:o}){this.setData(i)},isJSON(i){try{JSON.parse(i)}catch{return!1}return!0},setData(i){if(i===""||i===null){this.clearFiles();return}const e=this.isJSON(i)?JSON.parse(i):[];let l=[],o=[];e.forEach(s=>{const r=s.id?s.id:s.fileId;l.push({uid:r,name:s.name?s.name:s.fileoriginname,fileoriginname:s.name?s.name:s.fileoriginname,id:r,fileId:r,url:s.url?s.url:s.filepath}),r&&o.push(r)}),this.fileListFile=[...l],this.fileListFile.length===0&&this.clearFiles(),this.leg=l.length,this.record.sourceData=JSON.stringify(l),this.model[this.prop]=o.join(",")},previewFile(i){this.fileName=i.fileoriginname||i.name;let e="",l="";i.response&&i.response.fileoriginname?(e=i.response.fileoriginname,l=i.response.id):(e=i.name,l=i.fileId);const o=e.substr(e.lastIndexOf(".")+1).toLowerCase();["gif","jpeg","png","jpg","gif","bmp","JPG","PNG"].includes(o)?this.imgPreview(l):["mp4","webm","mp3","wav","docx","excel","pdf","xlsx","pptx","doc","dot","txt"].includes(o)&&this.$refs.filePreview.open(Object.assign(i,{fileId:i.response&&i.response.fileoriginname?i.response.id:i.fileId}))},imgPreview(i){d.sysFileInfoPreview({id:i}).then(e=>{const l=window.URL.createObjectURL(new Blob([e]));this.imgList=[l],this.currentImg=l,this.$refs.imgPreview.open()})},removeFileManual(i){const e=this.fileUploadList.filter(l=>(l.response?l.response.id:l.id)===i)[0];e&&this.$refs.uploadFile.handleRemove&&this.$refs.uploadFile.handleRemove(e)},removeFile(i,e){let l=[],o=[];e.forEach(s=>{s.response&&s.response.id?(l.push(s.response.id),o.push({uid:s.response.id,name:s.response.fileoriginname,fileoriginname:s.response.fileoriginname,id:s.response.id,fileId:s.response.id,url:s.response.url})):(l.push(s.fileId),o.push({uid:s.id?s.id:s.fileId,name:s.name?s.name:s.fileoriginname,fileoriginname:s.name?s.name:s.fileoriginname,id:s.fileId?s.fileId:s.id,fileId:s.fileId?s.fileId:s.id,url:s.url?s.url:s.filepath}))}),this.uidUploading=this.uidUploading.filter(s=>s!==i.uid),this.record.uidUploading=this.uidUploading,this.record.sourceData=JSON.stringify(o),this.model[this.prop]=l.join(","),this.leg=l.length,this.handleChange()},uploadFile(i){if(!this.fileAccept.includes(i.file.type)||i.file.type===""){console.log("fileAccept: "+i.file.type),this.$message.error(this.$i18nt("gd.view.fileAcceptTip","\u6587\u4EF6\u7C7B\u578B\u4E0D\u652F\u6301\uFF01")),i.onError();return}if(!(i.file.size/1024/1024<this.fileSize)){this.$message.error(this.$i18nt("gd.view.fileSizeTip","\u4E0A\u4F20\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7")+this.fileSize+"(MB)"),i.onError();return}this.$emit("uploadFile",i);const o=new FormData;o.append(this.options.fileName,i.file),this.uidUploading.push(i.file.uid),this.record.uidUploading=this.uidUploading,d.sysFileInfoUploadShop(o,{"Content-Type":i.file.type}).then(s=>{s.code===200?i.onSuccess(s.data):(this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+s.message),i.onError())}).catch(s=>{i.onError(s)})},successFile(i,e,l){this.uidUploading=this.uidUploading.filter(t=>t!==e.uid),this.record.uidUploading=this.uidUploading;const o=this.model[this.prop],r=(o?o.split(","):[]).concat([i.id]);this.model[this.prop]=r.join(",");let a=[];l.forEach(t=>{t.response&&t.response.id?a.push({ouid:t.uid,uid:t.response.id,name:t.response.fileoriginname,fileoriginname:t.response.fileoriginname,id:t.response.id,fileId:t.response.id,url:t.response.url}):a.push({uid:t.id?t.id:t.fileId,name:t.name?t.name:t.fileoriginname,fileoriginname:t.name?t.name:t.fileoriginname,id:t.fileId?t.fileId:t.id,fileId:t.fileId?t.fileId:t.id,url:t.url?t.url:t.filepath,ouid:t.ouid?t.ouid:t.uid})}),this.leg=r.length,this.record.sourceData=JSON.stringify(a),this.fileUploadList.push(e),this.handleChange()},handleChange(){this.$emit("change",this.record)}},mounted(){this.develop!==1&&this.$nextTick(()=>{setTimeout(()=>{this.record.setData===void 0&&(this.record.setData=this.setDataMore),this.record.clearFiles===void 0&&(this.record.clearFiles=this.clearFiles)},20)})}};var h=function(){var e=this,l=e._self._c;return l("div",{staticClass:"gd-upload-file"},[e.isDrag?l("el-upload",{ref:"uploadFile",attrs:{action:"","on-preview":e.previewFile,"on-remove":e.removeFile,multiple:"",limit:e.limit,"http-request":e.uploadFile,"file-list":e.fileListFile,"on-success":e.successFile,disabled:e.disabled,"before-upload":e.beforeUpload,"on-exceed":e.onExceed,drag:e.isDrag}},[l("div",{staticClass:"drag-kuang"},[l("i",{staticClass:"el-icon-upload",staticStyle:{margin:"0","font-size":"50px"}}),l("el-button",{staticClass:"btn-drag",attrs:{type:"text",disabled:e.disableds}},[l("span",{class:e.disableds?"":"active-color"},[e._v(e._s(e.$i18nt("gd.btn.uploadDrag","\u62D6\u62FD\u6587\u4EF6\u6216\u70B9\u51FB\u4E0A\u4F20")))])])],1)]):l("el-upload",{ref:"uploadFile",attrs:{action:"","on-preview":e.previewFile,"on-remove":e.removeFile,multiple:"",limit:e.limit,"http-request":e.uploadFile,"file-list":e.fileListFile,"on-success":e.successFile,accept:e.fileAccept,disabled:e.disabled,"before-upload":e.beforeUpload,"on-exceed":e.onExceed}},[e.isDrag?e._e():l("div",{staticClass:"upload-file-click"},[l("el-button",{attrs:{size:"mini",type:e.disableds?"info":"primary",disabled:e.disableds}},[l("i",{staticClass:"gd-icons gd-icon-shangchuan"}),e._v(" "+e._s(e.$i18nt("gd.btn.upload","\u4E0A\u4F20"))+" ")])],1)]),l("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:e.imgList.length>0,imgList:e.imgList,currentImg:e.currentImg,download:e.download,fileName:e.fileName}}),l("gd-file-preview",{ref:"filePreview",attrs:{options:e.options}})],1)},u=[],g=f.normalizeComponent(c,h,u,!1,null,"4641301d",null,null);const n=g.exports;n.install=function(i){i.component(n.name,n)};exports.UploadFile=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const p=require("./http.filemanage.7e6e3e1a.js"),d=require("./utils.util.js.c0ba699b.js"),u=require("./components.chartbi.e9459775.js");const h={name:"GdUploadImg",props:{record:{type:Object,default:()=>({})},model:{type:Object,required:!0},limit:{type:Number,default:1},disabled:{type:Boolean,default:!1},prop:{type:String,default:""},develop:{type:[Number,String],default:1},accept:{type:String,default:""},size:{type:Number,default:100}},data(){return{fileList:[],imgList:[],currentImg:"",uidUploading:[]}},computed:{fileAccept(){return this.accept?this.accept:d.getFileAccept("image")},fileSize(){return this.size?this.size:d.getFileSize("image")}},methods:{clearFiles(){this.fileListFile=[],this.uidUploading=[],this.record.uidUploading=[],this.model[this.prop]="",this.$refs.uploadFile&&this.$refs.uploadFile.clearFiles(),this.handleChange()},setDataMore({val:i,data:s,items:l,fkData:t}){this.setData(i)},setData(i){const s=i?i.split(","):[];if(s.length===0){this.clearFiles();return}let l=[];s.forEach(t=>{let e=this.getFileBlob(t).then(r=>r);l.push(e)}),Promise.all(l).then(t=>{let e=[];t.forEach(r=>{const a=this.fileList.filter(o=>o.fileId===r.fileId)[0];e.push({uid:a?a.uid:r.uuid,url:r.url,filePath:r.url,fileId:r.fileId})}),this.fileList=[...e]})},getFileBlob(i){return i.includes("http")?new Promise(l=>{l({url:i,fileId:"",uuid:d.uuid(8)})}):p.sysFileInfoPreview({id:i}).then(l=>({url:window.URL.createObjectURL(new Blob([l])),fileId:i,uuid:i}))},successImg(i,s,l){this.uidUploading=this.uidUploading.filter(e=>e!==s.uid),this.record.uidUploading=this.uidUploading;let t=[];l.forEach(e=>{e.response&&e.response.id?t.push({uid:e.response.id,name:e.response.fileoriginname,fileoriginname:e.response.fileoriginname,id:e.response.id,fileId:e.response.id,url:e.response.url}):t.push({uid:e.id?e.id:e.fileId,name:e.name?e.name:e.fileoriginname,fileoriginname:e.name?e.name:e.fileoriginname,id:e.fileId?e.fileId:e.id,fileId:e.fileId?e.fileId:e.id,url:e.url?e.url:e.filepath})}),this.fileList=[...l],this.handleChange()},uploadImgs(i){if(!this.fileAccept.split(",").includes(i.file.type)){this.$message.error(this.$i18nt("gd.view.fileAcceptTip","\u6587\u4EF6\u7C7B\u578B\u4E0D\u652F\u6301\uFF01")),i.onError();return}if(!(i.file.size/1024/1024<this.fileSize)){this.$message.error(this.$i18nt("gd.view.fileSizeTip","\u4E0A\u4F20\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7")+this.fileSize+"(MB)"),i.onError();return}const t=new FormData;t.append("file",i.file),this.uidUploading.push(i.file.uid),this.record.uidUploading=this.uidUploading,p.sysFileInfoUploadShop(t).then(e=>{if(e.code===200){const r=e.data.id,o=(this.model[this.prop]?this.model[this.prop].split(","):[]).concat([r]);this.model[this.prop]=o.join(","),i.onSuccess(e.data)}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+e.message),i.onError()}).catch(e=>{i.onError(e)})},previewImg(i){this.imgList=[];let s=[];this.fileList.forEach(l=>{s.push(l.url)}),this.imgList=s,this.currentImg=i.url,this.$refs.imgPreview.open()},removeImg(i,s){let l=[],t=[];s.forEach(e=>{e.response&&e.response.id?(l.push(e.response.id),t.push({uid:e.response.id,name:e.response.fileoriginname,fileoriginname:e.response.fileoriginname,id:e.response.id,fileId:e.response.id,url:e.response.url})):(l.push(e.fileId?e.fileId:e.id),t.push({uid:e.id?e.id:e.fileId,name:e.name?e.name:e.fileoriginname,fileoriginname:e.name?e.name:e.fileoriginname,id:e.fileId?e.fileId:e.id,fileId:e.fileId?e.fileId:e.id,url:e.url?e.url:e.filepath}))}),this.uidUploading=this.uidUploading.filter(e=>e!==i.uid),this.record.uidUploading=this.uidUploading,this.fileList=[...s],this.model[this.prop]=l.join(","),this.handleChange()},handleChange(){this.$emit("change",this.record)}},mounted(){this.develop!==1&&this.$nextTick(()=>{setTimeout(()=>{this.record.setData===void 0&&(this.record.setData=this.setDataMore),this.record.clearFiles===void 0&&(this.record.clearFiles=this.clearFiles)},20)})}};var c=function(){var s=this,l=s._self._c;return l("div",[l("el-upload",{staticClass:"upload-demo",class:s.fileList.length>=s.limit?"hide-demo":"",attrs:{action:"","list-type":"picture-card","on-preview":s.previewImg,"on-remove":s.removeImg,limit:s.limit,"http-request":s.uploadImgs,"on-success":s.successImg,"file-list":s.fileList,disabled:s.disabled,accept:s.fileAccept}},[l("i",{staticClass:"el-icon-plus"})]),l("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:s.imgList.length>0,imgList:s.imgList,currentImg:s.currentImg}})],1)},f=[],g=u.normalizeComponent(h,c,f,!1,null,"99ae0c7b",null,null);const n=g.exports;n.install=function(i){i.component(n.name,n)};exports.uploadImg=n;
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { a as d, s as p } from "./http.filemanage.c0de21d6.mjs";
|
|
2
|
+
import { b as h, d as u, u as f } from "./utils.util.js.885de913.mjs";
|
|
3
|
+
import { n as c } from "./components.chartbi.470b96af.mjs";
|
|
4
|
+
const g = {
|
|
5
|
+
name: "GdUploadImg",
|
|
6
|
+
props: {
|
|
7
|
+
record: {
|
|
8
|
+
type: Object,
|
|
9
|
+
default: () => ({})
|
|
10
|
+
},
|
|
11
|
+
model: {
|
|
12
|
+
type: Object,
|
|
13
|
+
required: !0
|
|
14
|
+
},
|
|
15
|
+
limit: {
|
|
16
|
+
type: Number,
|
|
17
|
+
default: 1
|
|
18
|
+
},
|
|
19
|
+
disabled: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !1
|
|
22
|
+
},
|
|
23
|
+
prop: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: ""
|
|
26
|
+
},
|
|
27
|
+
develop: {
|
|
28
|
+
type: [Number, String],
|
|
29
|
+
default: 1
|
|
30
|
+
},
|
|
31
|
+
accept: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: ""
|
|
34
|
+
},
|
|
35
|
+
size: {
|
|
36
|
+
type: Number,
|
|
37
|
+
default: 100
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
data() {
|
|
41
|
+
return {
|
|
42
|
+
fileList: [],
|
|
43
|
+
imgList: [],
|
|
44
|
+
currentImg: "",
|
|
45
|
+
uidUploading: []
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
computed: {
|
|
49
|
+
fileAccept() {
|
|
50
|
+
return this.accept ? this.accept : h("image");
|
|
51
|
+
},
|
|
52
|
+
fileSize() {
|
|
53
|
+
return this.size ? this.size : u("image");
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
clearFiles() {
|
|
58
|
+
this.fileListFile = [], this.uidUploading = [], this.record.uidUploading = [], this.model[this.prop] = "", this.$refs.uploadFile && this.$refs.uploadFile.clearFiles(), this.handleChange();
|
|
59
|
+
},
|
|
60
|
+
setDataMore({ val: i, data: s, items: l, fkData: r }) {
|
|
61
|
+
this.setData(i);
|
|
62
|
+
},
|
|
63
|
+
setData(i) {
|
|
64
|
+
const s = i ? i.split(",") : [];
|
|
65
|
+
if (s.length === 0) {
|
|
66
|
+
this.clearFiles();
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
let l = [];
|
|
70
|
+
s.forEach((r) => {
|
|
71
|
+
let e = this.getFileBlob(r).then((t) => t);
|
|
72
|
+
l.push(e);
|
|
73
|
+
}), Promise.all(l).then((r) => {
|
|
74
|
+
let e = [];
|
|
75
|
+
r.forEach((t) => {
|
|
76
|
+
const a = this.fileList.filter((n) => n.fileId === t.fileId)[0];
|
|
77
|
+
e.push({
|
|
78
|
+
uid: a ? a.uid : t.uuid,
|
|
79
|
+
url: t.url,
|
|
80
|
+
filePath: t.url,
|
|
81
|
+
fileId: t.fileId
|
|
82
|
+
});
|
|
83
|
+
}), this.fileList = [...e];
|
|
84
|
+
});
|
|
85
|
+
},
|
|
86
|
+
getFileBlob(i) {
|
|
87
|
+
return i.includes("http") ? new Promise((l) => {
|
|
88
|
+
l({ url: i, fileId: "", uuid: f(8) });
|
|
89
|
+
}) : d({
|
|
90
|
+
id: i
|
|
91
|
+
}).then((l) => ({ url: window.URL.createObjectURL(new Blob([l])), fileId: i, uuid: i }));
|
|
92
|
+
},
|
|
93
|
+
successImg(i, s, l) {
|
|
94
|
+
this.uidUploading = this.uidUploading.filter((e) => e !== s.uid), this.record.uidUploading = this.uidUploading;
|
|
95
|
+
let r = [];
|
|
96
|
+
l.forEach((e) => {
|
|
97
|
+
e.response && e.response.id ? r.push({
|
|
98
|
+
uid: e.response.id,
|
|
99
|
+
name: e.response.fileoriginname,
|
|
100
|
+
fileoriginname: e.response.fileoriginname,
|
|
101
|
+
id: e.response.id,
|
|
102
|
+
fileId: e.response.id,
|
|
103
|
+
url: e.response.url
|
|
104
|
+
}) : r.push({
|
|
105
|
+
uid: e.id ? e.id : e.fileId,
|
|
106
|
+
name: e.name ? e.name : e.fileoriginname,
|
|
107
|
+
fileoriginname: e.name ? e.name : e.fileoriginname,
|
|
108
|
+
id: e.fileId ? e.fileId : e.id,
|
|
109
|
+
fileId: e.fileId ? e.fileId : e.id,
|
|
110
|
+
url: e.url ? e.url : e.filepath
|
|
111
|
+
});
|
|
112
|
+
}), this.fileList = [...l], this.handleChange();
|
|
113
|
+
},
|
|
114
|
+
uploadImgs(i) {
|
|
115
|
+
if (!this.fileAccept.split(",").includes(i.file.type)) {
|
|
116
|
+
this.$message.error(this.$i18nt("gd.view.fileAcceptTip", "\u6587\u4EF6\u7C7B\u578B\u4E0D\u652F\u6301\uFF01")), i.onError();
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
if (!(i.file.size / 1024 / 1024 < this.fileSize)) {
|
|
120
|
+
this.$message.error(this.$i18nt("gd.view.fileSizeTip", "\u4E0A\u4F20\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7") + this.fileSize + "(MB)"), i.onError();
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
const r = new FormData();
|
|
124
|
+
r.append("file", i.file), this.uidUploading.push(i.file.uid), this.record.uidUploading = this.uidUploading, p(r).then((e) => {
|
|
125
|
+
if (e.code === 200) {
|
|
126
|
+
const t = e.data.id, n = (this.model[this.prop] ? this.model[this.prop].split(",") : []).concat([t]);
|
|
127
|
+
this.model[this.prop] = n.join(","), i.onSuccess(e.data);
|
|
128
|
+
} else
|
|
129
|
+
this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25:") + e.message), i.onError();
|
|
130
|
+
}).catch((e) => {
|
|
131
|
+
i.onError(e);
|
|
132
|
+
});
|
|
133
|
+
},
|
|
134
|
+
previewImg(i) {
|
|
135
|
+
this.imgList = [];
|
|
136
|
+
let s = [];
|
|
137
|
+
this.fileList.forEach((l) => {
|
|
138
|
+
s.push(l.url);
|
|
139
|
+
}), this.imgList = s, this.currentImg = i.url, this.$refs.imgPreview.open();
|
|
140
|
+
},
|
|
141
|
+
removeImg(i, s) {
|
|
142
|
+
let l = [], r = [];
|
|
143
|
+
s.forEach((e) => {
|
|
144
|
+
e.response && e.response.id ? (l.push(e.response.id), r.push({
|
|
145
|
+
uid: e.response.id,
|
|
146
|
+
name: e.response.fileoriginname,
|
|
147
|
+
fileoriginname: e.response.fileoriginname,
|
|
148
|
+
id: e.response.id,
|
|
149
|
+
fileId: e.response.id,
|
|
150
|
+
url: e.response.url
|
|
151
|
+
})) : (l.push(e.fileId ? e.fileId : e.id), r.push({
|
|
152
|
+
uid: e.id ? e.id : e.fileId,
|
|
153
|
+
name: e.name ? e.name : e.fileoriginname,
|
|
154
|
+
fileoriginname: e.name ? e.name : e.fileoriginname,
|
|
155
|
+
id: e.fileId ? e.fileId : e.id,
|
|
156
|
+
fileId: e.fileId ? e.fileId : e.id,
|
|
157
|
+
url: e.url ? e.url : e.filepath
|
|
158
|
+
}));
|
|
159
|
+
}), this.uidUploading = this.uidUploading.filter((e) => e !== i.uid), this.record.uidUploading = this.uidUploading, this.fileList = [...s], this.model[this.prop] = l.join(","), this.handleChange();
|
|
160
|
+
},
|
|
161
|
+
handleChange() {
|
|
162
|
+
this.$emit("change", this.record);
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
mounted() {
|
|
166
|
+
this.develop !== 1 && this.$nextTick(() => {
|
|
167
|
+
setTimeout(() => {
|
|
168
|
+
this.record.setData === void 0 && (this.record.setData = this.setDataMore), this.record.clearFiles === void 0 && (this.record.clearFiles = this.clearFiles);
|
|
169
|
+
}, 20);
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
var m = function() {
|
|
174
|
+
var s = this, l = s._self._c;
|
|
175
|
+
return l("div", [l("el-upload", { staticClass: "upload-demo", class: s.fileList.length >= s.limit ? "hide-demo" : "", attrs: { action: "", "list-type": "picture-card", "on-preview": s.previewImg, "on-remove": s.removeImg, limit: s.limit, "http-request": s.uploadImgs, "on-success": s.successImg, "file-list": s.fileList, disabled: s.disabled, accept: s.fileAccept } }, [l("i", { staticClass: "el-icon-plus" })]), l("gd-img-preview", { ref: "imgPreview", attrs: { filePreviewShow: s.imgList.length > 0, imgList: s.imgList, currentImg: s.currentImg } })], 1);
|
|
176
|
+
}, I = [], v = /* @__PURE__ */ c(
|
|
177
|
+
g,
|
|
178
|
+
m,
|
|
179
|
+
I,
|
|
180
|
+
!1,
|
|
181
|
+
null,
|
|
182
|
+
"99ae0c7b",
|
|
183
|
+
null,
|
|
184
|
+
null
|
|
185
|
+
);
|
|
186
|
+
const o = v.exports;
|
|
187
|
+
o.install = function(i) {
|
|
188
|
+
i.component(o.name, o);
|
|
189
|
+
};
|
|
190
|
+
export {
|
|
191
|
+
o as u
|
|
192
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const d=require("./components.chartbi.e9459775.js");const s={name:"GdVerificationCode",props:{width:{type:String,default:"180px"},height:{type:String,default:"40px"},length:{type:Number,default:4}},data(){return{codeList:[]}},mounted(){this.createdCode()},methods:{refreshCode(){this.createdCode()},createdCode(){const e=this.length,t=[],n="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789",r=n.length;for(let o=0;o<e;o++){const a=[Math.round(Math.random()*220),Math.round(Math.random()*240),Math.round(Math.random()*200)];t.push({code:n.charAt(Math.floor(Math.random()*r)),color:`rgb(${a})`,fontSize:`${[Math.floor(Math.random()*(30-16+1)+16)]}px`,padding:`${[Math.floor(Math.random()*10)]}px`,transform:`rotate(${Math.floor(Math.random()*90)-Math.floor(Math.random()*90)}deg)`})}this.codeList=t,this.$emit("update",t.map(o=>o.code).join(""))},getStyle(e){return`color: ${e.color}; font-size: ${e.fontSize}; padding: ${e.padding}; transform: ${e.transform}`}}};var c=function(){var t=this,n=t._self._c;return n("div",{staticClass:"validcode disabled-select",style:`width:${t.width}; height:${t.height}`,on:{click:t.refreshCode}},t._l(t.codeList,function(r,o){return n("span",{key:o,style:t.getStyle(r)},[t._v(t._s(r.code))])}),0)},i=[],h=d.normalizeComponent(s,c,i,!1,null,"c4c21346",null,null);const l=h.exports;exports.VerificationCode=l;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { n as d } from "./components.chartbi.470b96af.mjs";
|
|
2
|
+
const s = {
|
|
3
|
+
name: "GdVerificationCode",
|
|
4
|
+
props: {
|
|
5
|
+
width: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: "180px"
|
|
8
|
+
},
|
|
9
|
+
height: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: "40px"
|
|
12
|
+
},
|
|
13
|
+
length: {
|
|
14
|
+
type: Number,
|
|
15
|
+
default: 4
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
data() {
|
|
19
|
+
return {
|
|
20
|
+
codeList: []
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
mounted() {
|
|
24
|
+
this.createdCode();
|
|
25
|
+
},
|
|
26
|
+
methods: {
|
|
27
|
+
refreshCode() {
|
|
28
|
+
this.createdCode();
|
|
29
|
+
},
|
|
30
|
+
createdCode() {
|
|
31
|
+
const e = this.length, t = [], n = "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789", r = n.length;
|
|
32
|
+
for (let o = 0; o < e; o++) {
|
|
33
|
+
const a = [
|
|
34
|
+
Math.round(Math.random() * 220),
|
|
35
|
+
Math.round(Math.random() * 240),
|
|
36
|
+
Math.round(Math.random() * 200)
|
|
37
|
+
];
|
|
38
|
+
t.push({
|
|
39
|
+
code: n.charAt(Math.floor(Math.random() * r)),
|
|
40
|
+
color: `rgb(${a})`,
|
|
41
|
+
fontSize: `${[Math.floor(Math.random() * (30 - 16 + 1) + 16)]}px`,
|
|
42
|
+
padding: `${[Math.floor(Math.random() * 10)]}px`,
|
|
43
|
+
transform: `rotate(${Math.floor(Math.random() * 90) - Math.floor(Math.random() * 90)}deg)`
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
this.codeList = t, this.$emit("update", t.map((o) => o.code).join(""));
|
|
47
|
+
},
|
|
48
|
+
getStyle(e) {
|
|
49
|
+
return `color: ${e.color}; font-size: ${e.fontSize}; padding: ${e.padding}; transform: ${e.transform}`;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
var c = function() {
|
|
54
|
+
var t = this, n = t._self._c;
|
|
55
|
+
return n("div", { staticClass: "validcode disabled-select", style: `width:${t.width}; height:${t.height}`, on: { click: t.refreshCode } }, t._l(t.codeList, function(r, o) {
|
|
56
|
+
return n("span", { key: o, style: t.getStyle(r) }, [t._v(t._s(r.code))]);
|
|
57
|
+
}), 0);
|
|
58
|
+
}, i = [], h = /* @__PURE__ */ d(
|
|
59
|
+
s,
|
|
60
|
+
c,
|
|
61
|
+
i,
|
|
62
|
+
!1,
|
|
63
|
+
null,
|
|
64
|
+
"c4c21346",
|
|
65
|
+
null,
|
|
66
|
+
null
|
|
67
|
+
);
|
|
68
|
+
const f = h.exports;
|
|
69
|
+
export {
|
|
70
|
+
f as V
|
|
71
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./components.chartbi.e9459775.js"),l=require("./utils.util.js.c0ba699b.js"),d=require("./http.main.2f8a6936.js"),p=require("./http.loginmanage.326984c3.js"),f=require("./http.syscodegenerateconfigmanage.840f1136.js"),y=require("./form.build.c38bf362.js"),g=require("./http.codegeneratemanage.e3db2f09.js"),C=require("./system.notice.fb151c45.js"),b={props:{record:{type:Object,default:()=>({})},recordoperations:{type:Object,default:()=>({})},develop:{type:[Number,String],default:1},openMode:{type:[String,Number],default:1},height:{type:Number,default:100},foreign:{type:Object,default:()=>({})},disabledRowId:{type:Array,default:()=>[]},istable:{type:Boolean,default:!1}},data(){return{statu:!1,viewRecord:{},formList:[],tableData:{},sysViewList:[],personalViewList:[],sysViewButtons:[],selectedRowKeys:[],selectedRows:[],defaultViewId:0,excludeButtons:[],fieldData:[],tableDataSource:[],componentList:[],lineQuickView:t=>{const e="baseQuickView";return this[e]===void 0&&this.func===void 0?new Promise(i=>i(t)):this[e](t)}}},computed:{componentForm(){const t=this.$importViewFiles();let i=`../views/main/${this.options.table.tableName||this.options.table.tablename}/editForm.vue`;const s=t[i];return s?s.default:y.FormDesigner},viewList(){return this.sysViewList.concat(this.personalViewList)},formCode(){return this.options.form.id},options(){return this.record.options},...r.mapGetters(["tableLists"])},methods:{showLoading(){this.statu=!0,this.$refs.table.showLoading()},hideLoading(t=1500){this.$refs.table.hideLoading(t),setTimeout(()=>{this.statu=!1},t)},add(t){this.baseAdd()},edit(t){this.baseEdit()},del(t){this.baseDel()},deactivateData(){this.baseEnable(0)},enableData(){this.baseEnable()},assign(t){this.baseAssign(t)},batchUpdate(t){this.baseBatchUpdate()},teamSharing(t){this.baseTeamSharing(t)},statusChange(){this.baseStatusChange()},importData(){this.baseImportData()},exportData(t){this.baseExportData(t)},open(t){this.$nextTick(()=>{setTimeout(()=>{if(this.$refs.editForm){if(!(this.tableData.isvirtualtable===1)){this.$refs.editForm.open(t);return}this.openVirtual(t)}else console.log("err:\u8868\u5355\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},0)})},openVirtual(t){let e=new Map;this.fieldData.filter(s=>["fk","user"].includes(s.effecttype)).forEach(s=>{Object.keys(t).includes(s.columnname);const o=`name${s.fkentityname}${s.columnname}`;if(Object.keys(t).includes(o)){const a=t[`${s.columnname}id`],c=a||new Date().getTime();e.set(`${s.columnname}`,c),e.set(`${s.columnname}name`,t[o])}}),this.$refs.editForm.openDisplay(Object.assign({},t,Object.fromEntries(e)))},refresh(t=!0){this.$refs.table?this.$refs.table.refresh(t):console.log("err:\u89C6\u56FE\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},init(){this.record.hasLoad&&this.record.hasLoad(this.record.key),Promise.all([this.baseGetTableView(),this.baseGetPersonalView(!0),this.baseGetLoadData()]).then(t=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.table&&(this.$refs.table.init({fieldData:this.fieldData,tableData:this.tableData,sysViewList:this.sysViewList,personalViewList:this.personalViewList,defaultViewId:this.defaultViewId}),this.$refs.table.baseCustomComponents(this.componentList));let e=this.formList.filter(i=>i.id===this.formCode)[0];e||(e=this.formList.filter(i=>i.type===1)[0]),this.$refs.editForm&&e&&this.$refs.editForm.setFormRecord(e),this.beaseLoadComplete()},0)})})},onChangeBtn(t){this.sysViewButtons=t},onChangeView(t){this.viewRecord=t},onChangeData(t){this.tableDataSource=[...t],this.$emit("changeData",t)},onChangeSelect(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onChangeSelect",t,e);const i="baseChangeSelect";this[i]&&this[i](t,e)},beaseLoadComplete(){const t="onLoadCompleted";this[t]===void 0&&this.func===void 0||this[t]&&this[t]()},baseGetTableView(){const t=this.tableLists.filter(e=>{const i=this.options.table.tableName||this.options.table.tablename;return e.tablename.toLowerCase()===i.toLowerCase()})[0];return t?d.baseTableData({tableId:t.id}).then(e=>(e.code===200?(e.data.viewlist.map(i=>(i.mode=1,i)),this.formList=e.data.formlist,this.tableData=e.data.table,this.sysViewList=e.data.viewlist):this.$message.error(e.message),e)):(console.log("\u6570\u636E\u9519\u8BEF,\u8868\u4E0D\u5B58\u5728"),new Promise((e,i)=>{e({})}))},baseGetPersonalView(t){if(t&&this.openMode!=1)return new Promise((i,s)=>{i()});const e=this.tableLists.filter(i=>{const s=this.options.table.tableName||this.options.table.tablename;return i.tablename.toLowerCase()===s.toLowerCase()})[0];return e===void 0?(console.log("\u8868\u4E0D\u5B58\u5728"),new Promise((i,s)=>{i()})):d.basePersonalData({tableId:e.id}).then(i=>{if(i.code===200){const s=this.options.layoutConfig!==void 0?this.options.layoutConfig:!1;this.defaultViewId=s?0:i.data.defaultqueryid,this.personalViewList=i.data.savedquerylist}else console.log(i.message);return i.data})},baseGetLoadData(){const t=this.tableLists.filter(e=>{const i=this.options.table.tableName||this.options.table.tablename;return e.tablename.toLowerCase()===i.toLowerCase()})[0];return t?f.onlineFormGetCodeGenerateList({codeGenId:t.id}).then(e=>{e.code===200&&(this.fieldData=JSON.parse(JSON.stringify(e.data)),this.$emit("fieldData",e.data))}):(console.log("\u6570\u636E\u9519\u8BEF,\u8868\u4E0D\u5B58\u5728"),new Promise((e,i)=>{e({})}))},baseAdd(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm?this.$refs.editForm.open({title:this.$i18nt("gd.https.add","\u65B0\u589E")}):console.log("err:\u8868\u5355\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},0)})},baseEdit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}let t={title:this.$i18nt("gd.https.edit","\u7F16\u8F91")};this.openMode==3?Object.assign(t,{data:this.selectedRows[0]}):Object.assign(t,{id:this.selectedRowKeys[0]}),this.open(t)},baseCopyData(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}const t=this.tableDataSource.filter(e=>this.selectedRowKeys.includes(e.id))[0];this.$refs.editForm.openCopyData({title:this.$i18nt("gd.advancedFind.anotherSave","\u53E6\u5B58\u4E3A"),data:t})},baseDel(){this.$refs.table.baseDel()},baseEnable(t=1){return this.$refs.table.baseEnable(t)},baseRelationOk(t){this.$refs.table.baseRelationOk(t)},baseBatchUpdate(){this.$refs.table.baseBatchUpdate()},baseTeamSharing(t){this.$refs.table.baseTeamSharing(t)},baseStatusChange(){this.$refs.table.baseStatusChange()},baseAssign(t){this.$refs.table.baseAssign(t)},baseImportData(){this.$refs.table.baseImportData()},baseExportData(t){this.$refs.table.baseExportData(t)},baseGetParentFormData(t){if(this.openMode!=3)return new Promise((i,s)=>{i({})});let e=t===void 0?!1:t;return this.record.getFormAllData(e,!0).then(i=>i)},baseRelationRefresh(t=!0,e,i={}){this.openMode==3&&this.record.refresh(t,e,i)},baseBtnsStatus(t){this.$refs.table.baseBtnsStatus(t)},baseForceShowBtns(t){this.$refs.table.baseForceShowBtns(t)},baseComponentsInit(t){this.$refs.table.baseComponentsInit(t)},baseSetTableData(t){this.$refs.table.baseSetTableData(t)},getDictionary(t){return this.$options.filters.dictData(t)},baseTriggerFilter(t){this.$refs.table.baseTriggerFilter(t)},beseDoComponentEvent(t){const e=t.key?t.key:"",i=t.functionName?t.functionName:"",s=t.data?t.data:null,o=t.callback?t.callback:!1,h=t.callback?t.callback:this.record.key,a=t.callbackFunction?t.callbackFunction:"";this.record.doEvent&&this.record.doEvent({key:e,functionName:i,data:s,source:this.record,callback:o,callbackComponents:h,callbackFunction:a})},baseGetComponentData(t,e="key"){return this.record.getComponentData?this.record.getComponentData(t,e):null},doEvent(t){const e=t.item.functionName||t.item.functionname,i=t.key?t:t.item;if(this[e]===void 0){console.log("\u8BF7\u5B9A\u4E49 "+e+" \u65B9\u6CD5");return}this.showLoading(),this[e]&&this[e](i),this.hideLoading()},executeEvent(t){const e=t.functionName?t.functionName:"";e&&this[e]!==void 0?this.$nextTick(()=>{setTimeout(()=>{this[e](t)},100)}):console.log("\u6267\u884C\u9519\u8BEF")}},created(){this.init(),this.develop==2&&(this.record.executeEvent=this.executeEvent)},beforeDestroy(){this.sysViewList=[],this.personalViewList=[],this.selectedRows=[],this.sysViewButtons=[],this.fieldData=[],this.componentList=[],this.tableDataSource=[]}};const D={mixins:[b],methods:{}};var L=function(){var e=this,i=e._self._c;return i("div",[i("gd-view-build-designer",{ref:"table",attrs:{record:e.record,develop:e.develop,openMode:e.openMode,height:e.height,foreign:e.foreign,disabledRowId:e.disabledRowId,excludeButtons:e.excludeButtons,lineQuickView:e.lineQuickView},on:{baseOpen:e.open,changeBtn:e.onChangeBtn,changeView:e.onChangeView,changeData:e.onChangeData,changeSelect:e.onChangeSelect,doEvent:e.doEvent}}),i(e.componentForm,{ref:"editForm",tag:"component",attrs:{fieldData:e.fieldData,tableData:e.tableData,recordRelation:e.record,openMode:e.openMode},on:{ok:e.refresh,relationOk:e.baseRelationOk}})],1)},I=[],k=r.normalizeComponent(D,L,I,!1,null,"ca0b408e",null,null);const _=k.exports;const x={name:"GdViewFormDetails",props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{record:"",query:{},openType:"",modeType:"",popupType:"dialog",iframeUri:"",showPopup:!1,statu:!1}},computed:{hig(){return`${this.screenHeight}px`},istyle(){return`width:100%;overflow:hidden;height:${this.hig};`},...r.mapGetters(["primaryColor","screenHeight"])},components:{PopupDetails:()=>Promise.resolve().then(()=>P),ViewDetails:()=>Promise.resolve().then(()=>G)},methods:{open(t,e=!1){console.log(t),this.record=t;const i=l.getParamsQuery(t);this.query=i,this.modeType=e?this.modeType:i.mode_type?i.mode_type:"",this.openType=e?this.openType:i.open_type?i.open_type:"popup";const s=this.query.redirect_uri?this.query.redirect_uri:"";if(this.modeType==="request"){this.getRequestDetail();return}if(["authorize_view","authorize_form","authorize_details"].includes(this.modeType)){this.getAuthorizeCode();return}if(this.openType==="iframe"){this.getIframeUri(s);return}if(["redirect_self","redirect_blank"].includes(this.openType)){this.goRedirectUri(s);return}this.showPopup=!0,this.$nextTick(()=>{setTimeout(()=>{const o=`${this.openType}Details`;this.$refs[o]&&this.$refs[o].init()},0)})},getRequestDetail(){if(this.statu)return;const t=this.query.request_url?this.query.request_url:"";if(t==="")return;const e=decodeURIComponent(t),i=e.indexOf("?")===-1?e:e.slice(0,e.indexOf("?")),s=l.getParamsQuery(e);this.statu=!0,d.post(i,s).then(o=>{if(this.statu=!1,o.code!==200){this.$message.error(o.message);return}if(["redirect_self","redirect_blank"].includes(this.openType)){this.goRedirectUri(o.data),this.beaseLoadComplete();return}if(["iframe"].includes(this.openType)){this.getIframeUri(o.data),this.beaseLoadComplete();return}this.open(o.data,!0)})},getAuthorizeCode(){const t=this.query.code?this.query.code:"";if(t){this.Logout().then(e=>{this.getCode(t)});return}this.oauthAuthorize()},oauthAuthorize(){const t=this.query.client_id?this.query.client_id:"";this.query.response_type&&this.query.response_type,p.oauthAuthorize({client_id:t,response_type:"code"}).then(e=>{if(e.code!==200){this.$message.error(e.message);return}const i=this.query.redirect_uri?this.query.redirect_uri:"";if(i==="")return;const s=decodeURIComponent(i);s.indexOf("?")===-1||s.slice(0,s.indexOf("?"));const o=s.indexOf("?")===-1?[]:s.slice(s.indexOf("?")+1).split("&").map(n=>n.split("=")).map(([n,q])=>({key:n,value:q})).concat([{key:"code",value:e.data.code}]);if(["redirect_self","redirect_blank"].includes(this.openType)){this.oauthAuthorizeRedirect(o);return}const h=this.modeType.replace("authorize_","");let a=`?authorize_type=${this.modeType}&mode_type=${h}`,c=`?authorize_type=${this.modeType}&mode_type=${h}&open_type=view`;for(let n=0;n<o.length;n++)a+=`&${o[n].key}=${o[n].value}`,o[n].key!=="open_type"&&(c+=`&${o[n].key}=${o[n].value}`);const m=encodeURIComponent(s.slice(0,s.indexOf("?"))+c);a+=a===""?`?redirect_uri=${m}`:`&redirect_uri=${m}`,this.query.complete_request&&(a+=`&complete_request=${this.query.complete_request}`);const T=l.getParamsQuery(a);this.query=T,this.showPopup=!0,this.$nextTick(()=>{setTimeout(()=>{const n=`${this.openType}Details`;this.$refs[n]&&this.$refs[n].init()},0)})})},oauthAuthorizeRedirect(t){let e="";for(let s=0;s<t.length;s++)e+=`${s===0?"?":"&"}${t[s].key}=${t[s].value}`;const i=this.openType==="redirect_self"?"_self":this.openType==="redirect_blank"?"_blank":"_self";window.open(`${url}${e}`,i)},getCode(t){p.oauthCodeLogin({code:t}).then(e=>{if(e.code!==200){this.$message.error(e.message);return}this.loginSuccess(e.data),this.loginOther()})},goRedirectUri(t){if(t==="")return;const e=decodeURIComponent(t),i=this.openType==="redirect_self"?"_self":this.openType==="redirect_blank"?"_blank":"";window.open(e,i)},getIframeUri(t){t!==""&&(this.iframeUri=decodeURIComponent(t))},beaseLoadComplete(){const t=this.query.complete_request?this.query.complete_request:"";if(t==="")return;const e=decodeURIComponent(t),i=e.indexOf("?")===-1?e:e.slice(0,e.indexOf("?")),s=l.getParamsQuery(e);d.post(i,s)},loginSuccess(t){Vue.ls.set("ACCESS_TOKEN",t.accesstoken),this.$store.commit("SET_TOKEN",t.accesstoken);let e="";for(let i in this.query)["authorize_view","authorize_form","authorize_details"].includes(i)?e+=`${e===""?"?":"&"}${i}=${this.query[i].replace("authorize_","")}`:e+=`${e===""?"?":"&"}${i}=${this.query[i]}`;this.open(e,!0)},loginOther(){this.dictTypeData().then(e=>{});const t=new BroadcastChannel("gd-channel-msg");t.postMessage({type:"login",data:{gdTagName:window.gdTagName}}),t.close()},close(){this.modeType="",this.openType="",this.$nextTick(()=>{setTimeout(()=>{this.$emit("close")},300)})},doEvent(t){const e=`${this.openType}Details`;this.$refs[e]&&this.$refs[e].doEvent&&this.$refs[e].doEvent(t)},...r.mapActions(["Logout","dictTypeData"])}};var F=function(){var e=this,i=e._self._c;return i("div",{staticClass:"gd-vf-details"},[e.showPopup&&e.openType==="popup"?i("PopupDetails",{ref:"popupDetails",attrs:{record:e.record,query:e.query,modalAppendToBody:e.modalAppendToBody,appendToBody:e.appendToBody},on:{ok:function(s){return e.$emit("ok")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")},closed:e.close}}):e.openType==="view"?i("ViewDetails",{ref:"viewDetails",attrs:{record:e.record,query:e.query},on:{ok:function(s){return e.$emit("ok")},closed:e.close,onChangeBtn:s=>e.$emit("changeBtn",s),beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.openType==="iframe"?i("iframe",{style:e.istyle,attrs:{id:"iframe",height:e.hig,src:e.iframeUri,frameBorder:"0"}}):e._e()],1)},B=[],O=r.normalizeComponent(x,F,B,!1,null,"127122b3",null,null);const u=O.exports;u.install=function(t){t.component(u.name,u)};const S={props:{record:{type:String,default:""},query:{type:Object,default:()=>{}},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{modeType:"",popupMode:"drawer",fullscreen:!1,confirmLoading:!1,visible:!1,width:"80%",iframeUri:"",sysViewButtons:[]}},components:{ViewItem:()=>Promise.resolve().then(()=>v),FormItem:()=>Promise.resolve().then(()=>$),DetailsItem:()=>Promise.resolve().then(()=>w)},computed:{urls(){return this.iframeUri.indexOf("?")===-1?this.iframeUri:this.iframeUri.slice(0,this.iframeUri.indexOf("?"))},title(){return""},hig(){return`${this.height-24}px`},istyle(){return`width:100%;overflow:hidden;height:${this.hig};`},height(){return this.popupMode==="drawer"?this.screenHeight-48:this.fullscreen?this.screenHeight-72:this.screenHeight-230},...r.mapGetters(["formMode","screenHeight"])},methods:{onChangeBtn(t){this.sysViewButtons=t},init(){const t=this.query.popup_wid?this.query.popup_wid:"80%",e=this.query.popup_fullscreen?this.query.popup_fullscreen:"";this.width=isNaN(Number(t))?t:Number(t)+"px",this.fullscreen=e==="true";let i=this.query.popup_type?this.query.popup_type:"drawer";i==="followSystem"&&(i=this.formMode),this.popupMode=i,this.modeType=this.query.mode_type?this.query.mode_type:"form";let s=this.query.redirect_uri?decodeURIComponent(this.query.redirect_uri):"";this.iframeUri=s,console.log(this.iframeUri),this.visible=!0,this.query.open_type&&this.query.open_type!=="popup"&&(this.modeType=this.query.open_type),this.modeType==="iframe"&&window.addEventListener("message",this.monitorIframe),this.$nextTick(()=>{const o=`${this.modeType}Item`;this.$refs[o]&&this.$refs[o].init()})},toggleFullscreen(){this.fullscreen=!this.fullscreen},closed(){this.modeType="",this.fullscreen=!1,this.visible=!1,this.$emit("closed")},doEvent(t){if(this.modeType==="iframe"){document.getElementById("gd-view-iframe").contentWindow.postMessage({data:JSON.stringify(t),eventType:"btn-click"},this.urls);return}const e=`${this.modeType}Item`;this.$refs[e]&&this.$refs[e].doEvent(t)},monitorIframe(t){if(t.data.eventType==="form-btn"){this.onChangeBtn(t.data.data&&l.isJson(t.data.data)?JSON.parse(t.data.data):[]);return}if(t.data.eventType==="load-complete"){this.beaseLoadComplete();return}t.data.eventType==="close-drawer"&&this.closed()},beaseLoadComplete(t){console.log(this.query);const e=this.query.complete_request?this.query.complete_request:"";if(e==="")return;const i=decodeURIComponent(e),s=i.indexOf("?")===-1?i:i.slice(0,i.indexOf("?")),o=l.getParamsQuery(i);d.post(s,o)}},beforeDestory(){window.removeEventListener("message",this.monitorIframe)}};var V=function(){var e=this,i=e._self._c;return i("div",[e.popupMode==="dialog"?i("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":e.appendToBody,"modal-append-to-body":e.modalAppendToBody,top:"80px","show-close":!1},on:{"update:visible":function(s){e.visible=s},closed:e.closed}},[i("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen,close:e.closed},slot:"title"}),e.visible?i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"30vh"}},[e.modeType==="view"?i("ViewItem",{ref:"viewItem",attrs:{query:e.query,height:e.height}}):e.modeType==="form"?i("FormItem",{ref:"formItem",attrs:{query:e.query,height:e.height},on:{onChangeBtn:e.onChangeBtn,closed:e.closed,ok:function(s){return e.$emit("ok")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.modeType==="details"?i("DetailsItem",{ref:"detailsItem",attrs:{query:e.query,height:e.height}}):e.modeType==="iframe"?i("iframe",{style:e.istyle,attrs:{id:"gd-view-iframe",height:e.hig,src:e.iframeUri,frameBorder:"0"}}):e._e()],1):e._e()],1):i("el-drawer",{attrs:{visible:e.visible,"close-on-press-escape":!1,"append-to-body":e.appendToBody,"modal-append-to-body":e.modalAppendToBody,size:e.width,"custom-class":"gd-drawer-form","show-close":!1},on:{"update:visible":function(s){e.visible=s}}},[i("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,emitFun:!0,showFullscreen:!1,showClose:!0},on:{changeEvent:e.doEvent,close:e.closed},slot:"title"}),e.visible?i("div",{staticStyle:{height:"100%"}},[e.modeType==="view"?i("ViewItem",{ref:"viewItem",attrs:{query:e.query,height:e.height}}):e.modeType==="form"?i("FormItem",{ref:"formItem",attrs:{query:e.query,height:e.height},on:{onChangeBtn:e.onChangeBtn,closed:e.closed,ok:function(s){return e.$emit("ok")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.modeType==="details"?i("DetailsItem",{ref:"detailsItem",attrs:{query:e.query,height:e.height}}):e.modeType==="iframe"?i("iframe",{style:e.istyle,attrs:{id:"gd-view-iframe",height:e.hig,src:e.iframeUri,frameBorder:"0"}}):e._e()],1):e._e()],1)],1)},R=[],N=r.normalizeComponent(S,V,R,!1,null,"1aaea733",null,null);const E=N.exports,P=Object.freeze(Object.defineProperty({__proto__:null,default:E},Symbol.toStringTag,{value:"Module"}));const j={props:{record:{type:String,default:""},query:{type:Object,default:()=>{}}},data(){return{modeType:""}},components:{ViewItem:()=>Promise.resolve().then(()=>v),FormItem:()=>Promise.resolve().then(()=>$),DetailsItem:()=>Promise.resolve().then(()=>w)},computed:{height(){return this.screenHeight-72},...r.mapGetters(["screenHeight"])},methods:{init(){this.modeType=this.query.mode_type?this.query.mode_type:"form",this.visible=!0,this.$nextTick(()=>{const t=`${this.modeType}Item`;this.$refs[t]&&this.$refs[t].init()})},doEvent(t){const e=`${this.modeType}Item`;this.$refs[e]&&this.$refs[e].doEvent&&this.$refs[e].doEvent(t)}}};var U=function(){var e=this,i=e._self._c;return i("div",[e.modeType==="view"?i("ViewItem",{ref:"viewItem",attrs:{query:e.query,height:e.height}}):e.modeType==="form"?i("FormItem",{ref:"formItem",attrs:{query:e.query,height:e.height,modeType:"component"},on:{ok:function(s){return e.$emit("ok")},onChangeBtn:s=>e.$emit("onChangeBtn",s),closed:function(s){return e.$emit("closed")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.modeType==="details"?i("DetailsItem",{ref:"detailsItem",attrs:{query:e.query,height:e.height}}):e._e()],1)},M=[],z=r.normalizeComponent(j,U,M,!1,null,"dd2e4515",null,null);const A=z.exports,G=Object.freeze(Object.defineProperty({__proto__:null,default:A},Symbol.toStringTag,{value:"Module"}));const H={props:{height:{type:Number,default:600},query:{type:Object,default:()=>{}}},data(){return{record:{},openMode:1,viewId:"",tableId:"",formId:"",show:!1,confirmLoading:!1}},computed:{table(){const t=this.tableLists.filter(e=>e.id===this.tableId)[0];return t||{}},getHeight(){return this.height-24},componentItem(){const t=this.$importViewFiles();let e=`../views/main/${this.table.tablename}/index.vue`,i=t[e];return i?i.default:_},...r.mapGetters(["tableLists"])},methods:{init(){this.viewId=this.query.view_id?Number(this.query.view_id):"",this.tableId=this.query.table_id?Number(this.query.table_id):"",this.formId=this.query.form_id?Number(this.query.form_id):"",this.tableId!==""&&this.getAllTable().then(t=>{this.record={options:{table:this.table,form:{id:this.formId},view:{id:this.viewId},viewWeights:"1"}},this.$nextTick(()=>{setTimeout(()=>{this.show=!0},0)})})},getAllTable(){return this.tableLists.length>0?new Promise(t=>{t()}):g.codeGenerateInformationList({busName:""}).then(t=>(t.success&&this.TableLists(t.data),t.data))}}};var Q=function(){var e=this,i=e._self._c;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"300px"}},[e.show?i(e.componentItem,{ref:"lookuptable",tag:"component",attrs:{record:e.record,height:e.getHeight,develop:2,openMode:e.openMode}}):e._e()],1)},K=[],J=r.normalizeComponent(H,Q,K,!1,null,"5b928d29",null,null);const W=J.exports,v=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"}));const X={props:{query:{type:Object,default:()=>{}},modeType:{type:String,default:"component"}},data(){return{record:{},openMode:1,tableId:"",formId:"",show:!1,formData:{},fieldData:{},sysViewButtons:[],confirmLoading:!1}},computed:{table(){const t=this.tableLists.filter(e=>e.id===this.tableId)[0];return t||{}},getHeight(){return this.height-24},componentItem(){const t=this.$importViewFiles();let e=`../views/main/${this.table.tablename}/editForm.vue`,i=t[e];return i?i.default:y.FormDesigner},...r.mapGetters(["tableLists"])},methods:{beaseLoadComplete(t){console.log(this.query),this.$emit("beaseLoadComplete");const e=this.query.complete_request?this.query.complete_request:"";if(e==="")return;const i=decodeURIComponent(e),s=i.indexOf("?")===-1?i:i.slice(0,i.indexOf("?")),o=l.getParamsQuery(i);d.post(s,o)},onChangeBtn(t){this.sysViewButtons=t,this.$emit("onChangeBtn",t)},init(){this.confirmLoading=!0,this.tableId=this.query.table_id?Number(this.query.table_id):"",this.formId=this.query.form_id?Number(this.query.form_id):"",this.id=this.query.id?Number(this.query.id):"",this.tableId!==""&&Promise.all([this.sysFormDetails(),this.getLoadData(),this.getAllTable()]).then(t=>{this.record={options:{table:this.table,form:{id:this.formId}}},this.show=!0,this.confirmLoading=!1,this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm&&this.$refs.editForm.setFormRecord(this.formData).then(()=>{this.$refs.editForm.open({id:this.id,title:""})})},0)})})},getLoadData(){return f.onlineFormGetCodeGenerateList({codeGenId:this.tableId}).then(t=>(this.fieldData=t.data,t.data))},sysFormDetails(){return d.baseTableData({tableId:this.tableId}).then(t=>{if(t.code===200){const e=t.data.formlist.filter(i=>i.id===this.formId)[0];console.log(e),this.formData=e}return t.data})},getAllTable(){return this.tableLists.length>0?new Promise(t=>{t()}):g.codeGenerateInformationList({busName:""}).then(t=>(t.success&&this.TableLists(t.data),t.data))},doEvent(t){this.$refs.editForm&&this.$refs.editForm.doEvent(t)},closed(){console.log("\u5173\u95ED"),this.$emit("closed")},...r.mapActions(["TableLists"])}};var Y=function(){var e=this,i=e._self._c;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"300px",height:"100%"}},[e.show?i(e.componentItem,{ref:"editForm",tag:"component",attrs:{recordRelation:e.record,openMode:e.openMode,tableData:e.table,fieldData:e.fieldData,modeType:e.modeType},on:{onChangeBtn:e.onChangeBtn,closed:e.closed,ok:function(s){return e.$emit("ok")},onLoadCompleted:e.beaseLoadComplete}}):e._e()],1)},Z=[],ee=r.normalizeComponent(X,Y,Z,!1,null,"b8e777c7",null,null);const te=ee.exports,$=Object.freeze(Object.defineProperty({__proto__:null,default:te},Symbol.toStringTag,{value:"Module"}));const ie={props:{query:{type:Object,default:()=>{}}},data(){return{dictCode:"messagetype",messageType:"",componentItem:""}},computed:{componentForm(){return this.componentItem==="GdNoticeDetails"?C.noticeItem:""}},methods:{onLoadCompleted(){const t=this.query.complete_request?this.query.complete_request:"";if(t==="")return;const e=decodeURIComponent(t),i=e.indexOf("?")===-1?e:e.slice(0,e.indexOf("?")),s=l.getParamsQuery(e);d.post(i,s)},init(){if(this.messageType=this.query.message_type?this.query.message_type:"",this.messageType==="")return;const e=this.getDictionary(this.dictCode).filter(s=>s.code===this.messageType)[0];if(!e)return;const i=this.query.id?this.query.id:"";this.componentItem=e.remark,this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm&&this.$refs.editForm.open({id:i})},0)})},getDictionary(t){return this.$options.filters.dictData(t)}}};var se=function(){var e=this,i=e._self._c;return e.componentForm?i(e.componentForm,{ref:"editForm",tag:"component",attrs:{modeType:"component"},on:{onLoadCompleted:e.onLoadCompleted}}):e._e()},oe=[],re=r.normalizeComponent(ie,se,oe,!1,null,"2e905682",null,null);const ne=re.exports,w=Object.freeze(Object.defineProperty({__proto__:null,default:ne},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=u;exports.ViewTable=_;exports.viewMixins=b;
|