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,1081 @@
|
|
|
1
|
+
import { m as d, n as l, a as f } from "./components.chartbi.470b96af.mjs";
|
|
2
|
+
import { g as a, i as C } from "./utils.util.js.885de913.mjs";
|
|
3
|
+
import { d as y, i as D, p as c } from "./http.main.1af1e119.mjs";
|
|
4
|
+
import { o as L, c as I } from "./http.loginmanage.05500c29.mjs";
|
|
5
|
+
import { o as g } from "./http.syscodegenerateconfigmanage.6d2e5da0.mjs";
|
|
6
|
+
import { F as b } from "./form.build.fb9f905b.mjs";
|
|
7
|
+
import { c as _ } from "./http.codegeneratemanage.b123bab3.mjs";
|
|
8
|
+
import { n as k } from "./system.notice.dc1b67cc.mjs";
|
|
9
|
+
const x = {
|
|
10
|
+
props: {
|
|
11
|
+
record: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default: () => ({})
|
|
14
|
+
},
|
|
15
|
+
recordoperations: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: () => ({})
|
|
18
|
+
},
|
|
19
|
+
develop: {
|
|
20
|
+
type: [Number, String],
|
|
21
|
+
default: 1
|
|
22
|
+
},
|
|
23
|
+
openMode: {
|
|
24
|
+
type: [String, Number],
|
|
25
|
+
default: 1
|
|
26
|
+
},
|
|
27
|
+
height: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 100
|
|
30
|
+
},
|
|
31
|
+
foreign: {
|
|
32
|
+
type: Object,
|
|
33
|
+
default: () => ({})
|
|
34
|
+
},
|
|
35
|
+
disabledRowId: {
|
|
36
|
+
type: Array,
|
|
37
|
+
default: () => []
|
|
38
|
+
},
|
|
39
|
+
istable: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: !1
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
data() {
|
|
45
|
+
return {
|
|
46
|
+
statu: !1,
|
|
47
|
+
viewRecord: {},
|
|
48
|
+
formList: [],
|
|
49
|
+
tableData: {},
|
|
50
|
+
sysViewList: [],
|
|
51
|
+
personalViewList: [],
|
|
52
|
+
sysViewButtons: [],
|
|
53
|
+
selectedRowKeys: [],
|
|
54
|
+
selectedRows: [],
|
|
55
|
+
defaultViewId: 0,
|
|
56
|
+
excludeButtons: [],
|
|
57
|
+
fieldData: [],
|
|
58
|
+
tableDataSource: [],
|
|
59
|
+
componentList: [],
|
|
60
|
+
lineQuickView: (t) => {
|
|
61
|
+
const e = "baseQuickView";
|
|
62
|
+
return this[e] === void 0 && this.func === void 0 ? new Promise((i) => i(t)) : this[e](t);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
computed: {
|
|
67
|
+
componentForm() {
|
|
68
|
+
const t = this.$importViewFiles();
|
|
69
|
+
let i = `../views/main/${this.options.table.tableName || this.options.table.tablename}/editForm.vue`;
|
|
70
|
+
const s = t[i];
|
|
71
|
+
return s ? s.default : b;
|
|
72
|
+
},
|
|
73
|
+
viewList() {
|
|
74
|
+
return this.sysViewList.concat(this.personalViewList);
|
|
75
|
+
},
|
|
76
|
+
formCode() {
|
|
77
|
+
return this.options.form.id;
|
|
78
|
+
},
|
|
79
|
+
options() {
|
|
80
|
+
return this.record.options;
|
|
81
|
+
},
|
|
82
|
+
...d(["tableLists"])
|
|
83
|
+
},
|
|
84
|
+
methods: {
|
|
85
|
+
showLoading() {
|
|
86
|
+
this.statu = !0, this.$refs.table.showLoading();
|
|
87
|
+
},
|
|
88
|
+
hideLoading(t = 1500) {
|
|
89
|
+
this.$refs.table.hideLoading(t), setTimeout(() => {
|
|
90
|
+
this.statu = !1;
|
|
91
|
+
}, t);
|
|
92
|
+
},
|
|
93
|
+
add(t) {
|
|
94
|
+
this.baseAdd();
|
|
95
|
+
},
|
|
96
|
+
edit(t) {
|
|
97
|
+
this.baseEdit();
|
|
98
|
+
},
|
|
99
|
+
del(t) {
|
|
100
|
+
this.baseDel();
|
|
101
|
+
},
|
|
102
|
+
deactivateData() {
|
|
103
|
+
this.baseEnable(0);
|
|
104
|
+
},
|
|
105
|
+
enableData() {
|
|
106
|
+
this.baseEnable();
|
|
107
|
+
},
|
|
108
|
+
assign(t) {
|
|
109
|
+
this.baseAssign(t);
|
|
110
|
+
},
|
|
111
|
+
batchUpdate(t) {
|
|
112
|
+
this.baseBatchUpdate();
|
|
113
|
+
},
|
|
114
|
+
teamSharing(t) {
|
|
115
|
+
this.baseTeamSharing(t);
|
|
116
|
+
},
|
|
117
|
+
statusChange() {
|
|
118
|
+
this.baseStatusChange();
|
|
119
|
+
},
|
|
120
|
+
importData() {
|
|
121
|
+
this.baseImportData();
|
|
122
|
+
},
|
|
123
|
+
exportData(t) {
|
|
124
|
+
this.baseExportData(t);
|
|
125
|
+
},
|
|
126
|
+
open(t) {
|
|
127
|
+
this.$nextTick(() => {
|
|
128
|
+
setTimeout(() => {
|
|
129
|
+
if (this.$refs.editForm) {
|
|
130
|
+
if (!(this.tableData.isvirtualtable === 1)) {
|
|
131
|
+
this.$refs.editForm.open(t);
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
this.openVirtual(t);
|
|
135
|
+
} else
|
|
136
|
+
console.log("err:\u8868\u5355\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01");
|
|
137
|
+
}, 0);
|
|
138
|
+
});
|
|
139
|
+
},
|
|
140
|
+
openVirtual(t) {
|
|
141
|
+
let e = /* @__PURE__ */ new Map();
|
|
142
|
+
this.fieldData.filter((s) => ["fk", "user"].includes(s.effecttype)).forEach((s) => {
|
|
143
|
+
Object.keys(t).includes(s.columnname);
|
|
144
|
+
const o = `name${s.fkentityname}${s.columnname}`;
|
|
145
|
+
if (Object.keys(t).includes(o)) {
|
|
146
|
+
const n = t[`${s.columnname}id`], u = n || new Date().getTime();
|
|
147
|
+
e.set(`${s.columnname}`, u), e.set(`${s.columnname}name`, t[o]);
|
|
148
|
+
}
|
|
149
|
+
}), this.$refs.editForm.openDisplay(Object.assign({}, t, Object.fromEntries(e)));
|
|
150
|
+
},
|
|
151
|
+
refresh(t = !0) {
|
|
152
|
+
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");
|
|
153
|
+
},
|
|
154
|
+
init() {
|
|
155
|
+
this.record.hasLoad && this.record.hasLoad(this.record.key), Promise.all([
|
|
156
|
+
this.baseGetTableView(),
|
|
157
|
+
this.baseGetPersonalView(!0),
|
|
158
|
+
this.baseGetLoadData()
|
|
159
|
+
]).then((t) => {
|
|
160
|
+
this.$nextTick(() => {
|
|
161
|
+
setTimeout(() => {
|
|
162
|
+
this.$refs.table && (this.$refs.table.init({
|
|
163
|
+
fieldData: this.fieldData,
|
|
164
|
+
tableData: this.tableData,
|
|
165
|
+
sysViewList: this.sysViewList,
|
|
166
|
+
personalViewList: this.personalViewList,
|
|
167
|
+
defaultViewId: this.defaultViewId
|
|
168
|
+
}), this.$refs.table.baseCustomComponents(this.componentList));
|
|
169
|
+
let e = this.formList.filter((i) => i.id === this.formCode)[0];
|
|
170
|
+
e || (e = this.formList.filter((i) => i.type === 1)[0]), this.$refs.editForm && e && this.$refs.editForm.setFormRecord(e), this.beaseLoadComplete();
|
|
171
|
+
}, 0);
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
},
|
|
175
|
+
onChangeBtn(t) {
|
|
176
|
+
this.sysViewButtons = t;
|
|
177
|
+
},
|
|
178
|
+
onChangeView(t) {
|
|
179
|
+
this.viewRecord = t;
|
|
180
|
+
},
|
|
181
|
+
onChangeData(t) {
|
|
182
|
+
this.tableDataSource = [...t], this.$emit("changeData", t);
|
|
183
|
+
},
|
|
184
|
+
onChangeSelect(t, e) {
|
|
185
|
+
this.selectedRowKeys = t, this.selectedRows = e, this.$emit("onChangeSelect", t, e);
|
|
186
|
+
const i = "baseChangeSelect";
|
|
187
|
+
this[i] && this[i](t, e);
|
|
188
|
+
},
|
|
189
|
+
beaseLoadComplete() {
|
|
190
|
+
const t = "onLoadCompleted";
|
|
191
|
+
this[t] === void 0 && this.func === void 0 || this[t] && this[t]();
|
|
192
|
+
},
|
|
193
|
+
baseGetTableView() {
|
|
194
|
+
const t = this.tableLists.filter((e) => {
|
|
195
|
+
const i = this.options.table.tableName || this.options.table.tablename;
|
|
196
|
+
return e.tablename.toLowerCase() === i.toLowerCase();
|
|
197
|
+
})[0];
|
|
198
|
+
return t ? y({
|
|
199
|
+
tableId: t.id
|
|
200
|
+
}).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) => {
|
|
201
|
+
e({});
|
|
202
|
+
}));
|
|
203
|
+
},
|
|
204
|
+
baseGetPersonalView(t) {
|
|
205
|
+
if (t && this.openMode != 1)
|
|
206
|
+
return new Promise((i, s) => {
|
|
207
|
+
i();
|
|
208
|
+
});
|
|
209
|
+
const e = this.tableLists.filter((i) => {
|
|
210
|
+
const s = this.options.table.tableName || this.options.table.tablename;
|
|
211
|
+
return i.tablename.toLowerCase() === s.toLowerCase();
|
|
212
|
+
})[0];
|
|
213
|
+
return e === void 0 ? (console.log("\u8868\u4E0D\u5B58\u5728"), new Promise((i, s) => {
|
|
214
|
+
i();
|
|
215
|
+
})) : D({
|
|
216
|
+
tableId: e.id
|
|
217
|
+
}).then((i) => {
|
|
218
|
+
if (i.code === 200) {
|
|
219
|
+
const s = this.options.layoutConfig !== void 0 ? this.options.layoutConfig : !1;
|
|
220
|
+
this.defaultViewId = s ? 0 : i.data.defaultqueryid, this.personalViewList = i.data.savedquerylist;
|
|
221
|
+
} else
|
|
222
|
+
console.log(i.message);
|
|
223
|
+
return i.data;
|
|
224
|
+
});
|
|
225
|
+
},
|
|
226
|
+
baseGetLoadData() {
|
|
227
|
+
const t = this.tableLists.filter((e) => {
|
|
228
|
+
const i = this.options.table.tableName || this.options.table.tablename;
|
|
229
|
+
return e.tablename.toLowerCase() === i.toLowerCase();
|
|
230
|
+
})[0];
|
|
231
|
+
return t ? g({
|
|
232
|
+
codeGenId: t.id
|
|
233
|
+
}).then((e) => {
|
|
234
|
+
e.code === 200 && (this.fieldData = JSON.parse(JSON.stringify(e.data)), this.$emit("fieldData", e.data));
|
|
235
|
+
}) : (console.log("\u6570\u636E\u9519\u8BEF,\u8868\u4E0D\u5B58\u5728"), new Promise((e, i) => {
|
|
236
|
+
e({});
|
|
237
|
+
}));
|
|
238
|
+
},
|
|
239
|
+
baseAdd() {
|
|
240
|
+
this.$nextTick(() => {
|
|
241
|
+
setTimeout(() => {
|
|
242
|
+
this.$refs.editForm ? this.$refs.editForm.open({
|
|
243
|
+
title: this.$i18nt("gd.https.add", "\u65B0\u589E")
|
|
244
|
+
}) : console.log("err:\u8868\u5355\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01");
|
|
245
|
+
}, 0);
|
|
246
|
+
});
|
|
247
|
+
},
|
|
248
|
+
baseEdit() {
|
|
249
|
+
if (this.selectedRowKeys.length === 0) {
|
|
250
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
if (this.selectedRowKeys.length > 1) {
|
|
254
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
let t = {
|
|
258
|
+
title: this.$i18nt("gd.https.edit", "\u7F16\u8F91")
|
|
259
|
+
};
|
|
260
|
+
this.openMode == 3 ? Object.assign(t, {
|
|
261
|
+
data: this.selectedRows[0]
|
|
262
|
+
}) : Object.assign(t, {
|
|
263
|
+
id: this.selectedRowKeys[0]
|
|
264
|
+
}), this.open(t);
|
|
265
|
+
},
|
|
266
|
+
baseCopyData() {
|
|
267
|
+
if (this.selectedRowKeys.length === 0) {
|
|
268
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
if (this.selectedRowKeys.length > 1) {
|
|
272
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
const t = this.tableDataSource.filter((e) => this.selectedRowKeys.includes(e.id))[0];
|
|
276
|
+
this.$refs.editForm.openCopyData({
|
|
277
|
+
title: this.$i18nt("gd.advancedFind.anotherSave", "\u53E6\u5B58\u4E3A"),
|
|
278
|
+
data: t
|
|
279
|
+
});
|
|
280
|
+
},
|
|
281
|
+
baseDel() {
|
|
282
|
+
this.$refs.table.baseDel();
|
|
283
|
+
},
|
|
284
|
+
baseEnable(t = 1) {
|
|
285
|
+
return this.$refs.table.baseEnable(t);
|
|
286
|
+
},
|
|
287
|
+
baseRelationOk(t) {
|
|
288
|
+
this.$refs.table.baseRelationOk(t);
|
|
289
|
+
},
|
|
290
|
+
baseBatchUpdate() {
|
|
291
|
+
this.$refs.table.baseBatchUpdate();
|
|
292
|
+
},
|
|
293
|
+
baseTeamSharing(t) {
|
|
294
|
+
this.$refs.table.baseTeamSharing(t);
|
|
295
|
+
},
|
|
296
|
+
baseStatusChange() {
|
|
297
|
+
this.$refs.table.baseStatusChange();
|
|
298
|
+
},
|
|
299
|
+
baseAssign(t) {
|
|
300
|
+
this.$refs.table.baseAssign(t);
|
|
301
|
+
},
|
|
302
|
+
baseImportData() {
|
|
303
|
+
this.$refs.table.baseImportData();
|
|
304
|
+
},
|
|
305
|
+
baseExportData(t) {
|
|
306
|
+
this.$refs.table.baseExportData(t);
|
|
307
|
+
},
|
|
308
|
+
baseGetParentFormData(t) {
|
|
309
|
+
if (this.openMode != 3)
|
|
310
|
+
return new Promise((i, s) => {
|
|
311
|
+
i({});
|
|
312
|
+
});
|
|
313
|
+
let e = t === void 0 ? !1 : t;
|
|
314
|
+
return this.record.getFormAllData(e, !0).then((i) => i);
|
|
315
|
+
},
|
|
316
|
+
baseRelationRefresh(t = !0, e, i = {}) {
|
|
317
|
+
this.openMode == 3 && this.record.refresh(t, e, i);
|
|
318
|
+
},
|
|
319
|
+
baseBtnsStatus(t) {
|
|
320
|
+
this.$refs.table.baseBtnsStatus(t);
|
|
321
|
+
},
|
|
322
|
+
baseForceShowBtns(t) {
|
|
323
|
+
this.$refs.table.baseForceShowBtns(t);
|
|
324
|
+
},
|
|
325
|
+
baseComponentsInit(t) {
|
|
326
|
+
this.$refs.table.baseComponentsInit(t);
|
|
327
|
+
},
|
|
328
|
+
baseSetTableData(t) {
|
|
329
|
+
this.$refs.table.baseSetTableData(t);
|
|
330
|
+
},
|
|
331
|
+
getDictionary(t) {
|
|
332
|
+
return this.$options.filters.dictData(t);
|
|
333
|
+
},
|
|
334
|
+
baseTriggerFilter(t) {
|
|
335
|
+
this.$refs.table.baseTriggerFilter(t);
|
|
336
|
+
},
|
|
337
|
+
beseDoComponentEvent(t) {
|
|
338
|
+
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, n = t.callbackFunction ? t.callbackFunction : "";
|
|
339
|
+
this.record.doEvent && this.record.doEvent({
|
|
340
|
+
key: e,
|
|
341
|
+
functionName: i,
|
|
342
|
+
data: s,
|
|
343
|
+
source: this.record,
|
|
344
|
+
callback: o,
|
|
345
|
+
callbackComponents: h,
|
|
346
|
+
callbackFunction: n
|
|
347
|
+
});
|
|
348
|
+
},
|
|
349
|
+
baseGetComponentData(t, e = "key") {
|
|
350
|
+
return this.record.getComponentData ? this.record.getComponentData(t, e) : null;
|
|
351
|
+
},
|
|
352
|
+
doEvent(t) {
|
|
353
|
+
const e = t.item.functionName || t.item.functionname, i = t.key ? t : t.item;
|
|
354
|
+
if (this[e] === void 0) {
|
|
355
|
+
console.log("\u8BF7\u5B9A\u4E49 " + e + " \u65B9\u6CD5");
|
|
356
|
+
return;
|
|
357
|
+
}
|
|
358
|
+
this.showLoading(), this[e] && this[e](i), this.hideLoading();
|
|
359
|
+
},
|
|
360
|
+
executeEvent(t) {
|
|
361
|
+
const e = t.functionName ? t.functionName : "";
|
|
362
|
+
e && this[e] !== void 0 ? this.$nextTick(() => {
|
|
363
|
+
setTimeout(() => {
|
|
364
|
+
this[e](t);
|
|
365
|
+
}, 100);
|
|
366
|
+
}) : console.log("\u6267\u884C\u9519\u8BEF");
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
created() {
|
|
370
|
+
this.init(), this.develop == 2 && (this.record.executeEvent = this.executeEvent);
|
|
371
|
+
},
|
|
372
|
+
beforeDestroy() {
|
|
373
|
+
this.sysViewList = [], this.personalViewList = [], this.selectedRows = [], this.sysViewButtons = [], this.fieldData = [], this.componentList = [], this.tableDataSource = [];
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
const F = {
|
|
377
|
+
mixins: [x],
|
|
378
|
+
methods: {}
|
|
379
|
+
};
|
|
380
|
+
var B = function() {
|
|
381
|
+
var e = this, i = e._self._c;
|
|
382
|
+
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);
|
|
383
|
+
}, O = [], S = /* @__PURE__ */ l(
|
|
384
|
+
F,
|
|
385
|
+
B,
|
|
386
|
+
O,
|
|
387
|
+
!1,
|
|
388
|
+
null,
|
|
389
|
+
"ca0b408e",
|
|
390
|
+
null,
|
|
391
|
+
null
|
|
392
|
+
);
|
|
393
|
+
const V = S.exports;
|
|
394
|
+
const R = {
|
|
395
|
+
name: "GdViewFormDetails",
|
|
396
|
+
props: {
|
|
397
|
+
modalAppendToBody: {
|
|
398
|
+
type: Boolean,
|
|
399
|
+
default: !0
|
|
400
|
+
},
|
|
401
|
+
appendToBody: {
|
|
402
|
+
type: Boolean,
|
|
403
|
+
default: !0
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
data() {
|
|
407
|
+
return {
|
|
408
|
+
record: "",
|
|
409
|
+
query: {},
|
|
410
|
+
openType: "",
|
|
411
|
+
modeType: "",
|
|
412
|
+
popupType: "dialog",
|
|
413
|
+
iframeUri: "",
|
|
414
|
+
showPopup: !1,
|
|
415
|
+
statu: !1
|
|
416
|
+
};
|
|
417
|
+
},
|
|
418
|
+
computed: {
|
|
419
|
+
hig() {
|
|
420
|
+
return `${this.screenHeight}px`;
|
|
421
|
+
},
|
|
422
|
+
istyle() {
|
|
423
|
+
return `width:100%;overflow:hidden;height:${this.hig};`;
|
|
424
|
+
},
|
|
425
|
+
...d(["primaryColor", "screenHeight"])
|
|
426
|
+
},
|
|
427
|
+
components: {
|
|
428
|
+
PopupDetails: () => Promise.resolve().then(() => G),
|
|
429
|
+
ViewDetails: () => Promise.resolve().then(() => X)
|
|
430
|
+
},
|
|
431
|
+
methods: {
|
|
432
|
+
open(t, e = !1) {
|
|
433
|
+
console.log(t), this.record = t;
|
|
434
|
+
const i = a(t);
|
|
435
|
+
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";
|
|
436
|
+
const s = this.query.redirect_uri ? this.query.redirect_uri : "";
|
|
437
|
+
if (this.modeType === "request") {
|
|
438
|
+
this.getRequestDetail();
|
|
439
|
+
return;
|
|
440
|
+
}
|
|
441
|
+
if (["authorize_view", "authorize_form", "authorize_details"].includes(this.modeType)) {
|
|
442
|
+
this.getAuthorizeCode();
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
if (this.openType === "iframe") {
|
|
446
|
+
this.getIframeUri(s);
|
|
447
|
+
return;
|
|
448
|
+
}
|
|
449
|
+
if (["redirect_self", "redirect_blank"].includes(this.openType)) {
|
|
450
|
+
this.goRedirectUri(s);
|
|
451
|
+
return;
|
|
452
|
+
}
|
|
453
|
+
this.showPopup = !0, this.$nextTick(() => {
|
|
454
|
+
setTimeout(() => {
|
|
455
|
+
const o = `${this.openType}Details`;
|
|
456
|
+
this.$refs[o] && this.$refs[o].init();
|
|
457
|
+
}, 0);
|
|
458
|
+
});
|
|
459
|
+
},
|
|
460
|
+
getRequestDetail() {
|
|
461
|
+
if (this.statu)
|
|
462
|
+
return;
|
|
463
|
+
const t = this.query.request_url ? this.query.request_url : "";
|
|
464
|
+
if (t === "")
|
|
465
|
+
return;
|
|
466
|
+
const e = decodeURIComponent(t), i = e.indexOf("?") === -1 ? e : e.slice(0, e.indexOf("?")), s = a(e);
|
|
467
|
+
this.statu = !0, c(i, s).then((o) => {
|
|
468
|
+
if (this.statu = !1, o.code !== 200) {
|
|
469
|
+
this.$message.error(o.message);
|
|
470
|
+
return;
|
|
471
|
+
}
|
|
472
|
+
if (["redirect_self", "redirect_blank"].includes(this.openType)) {
|
|
473
|
+
this.goRedirectUri(o.data), this.beaseLoadComplete();
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
if (["iframe"].includes(this.openType)) {
|
|
477
|
+
this.getIframeUri(o.data), this.beaseLoadComplete();
|
|
478
|
+
return;
|
|
479
|
+
}
|
|
480
|
+
this.open(o.data, !0);
|
|
481
|
+
});
|
|
482
|
+
},
|
|
483
|
+
getAuthorizeCode() {
|
|
484
|
+
const t = this.query.code ? this.query.code : "";
|
|
485
|
+
if (t) {
|
|
486
|
+
this.Logout().then((e) => {
|
|
487
|
+
this.getCode(t);
|
|
488
|
+
});
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
this.oauthAuthorize();
|
|
492
|
+
},
|
|
493
|
+
oauthAuthorize() {
|
|
494
|
+
const t = this.query.client_id ? this.query.client_id : "";
|
|
495
|
+
this.query.response_type && this.query.response_type, L({ client_id: t, response_type: "code" }).then((e) => {
|
|
496
|
+
if (e.code !== 200) {
|
|
497
|
+
this.$message.error(e.message);
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
const i = this.query.redirect_uri ? this.query.redirect_uri : "";
|
|
501
|
+
if (i === "")
|
|
502
|
+
return;
|
|
503
|
+
const s = decodeURIComponent(i);
|
|
504
|
+
s.indexOf("?") === -1 || s.slice(0, s.indexOf("?"));
|
|
505
|
+
const o = s.indexOf("?") === -1 ? [] : s.slice(s.indexOf("?") + 1).split("&").map((r) => r.split("=")).map(([r, q]) => ({
|
|
506
|
+
key: r,
|
|
507
|
+
value: q
|
|
508
|
+
})).concat([{ key: "code", value: e.data.code }]);
|
|
509
|
+
if (["redirect_self", "redirect_blank"].includes(this.openType)) {
|
|
510
|
+
this.oauthAuthorizeRedirect(o);
|
|
511
|
+
return;
|
|
512
|
+
}
|
|
513
|
+
const h = this.modeType.replace("authorize_", "");
|
|
514
|
+
let n = `?authorize_type=${this.modeType}&mode_type=${h}`, u = `?authorize_type=${this.modeType}&mode_type=${h}&open_type=view`;
|
|
515
|
+
for (let r = 0; r < o.length; r++)
|
|
516
|
+
n += `&${o[r].key}=${o[r].value}`, o[r].key !== "open_type" && (u += `&${o[r].key}=${o[r].value}`);
|
|
517
|
+
const p = encodeURIComponent(s.slice(0, s.indexOf("?")) + u);
|
|
518
|
+
n += n === "" ? `?redirect_uri=${p}` : `&redirect_uri=${p}`, this.query.complete_request && (n += `&complete_request=${this.query.complete_request}`);
|
|
519
|
+
const T = a(n);
|
|
520
|
+
this.query = T, this.showPopup = !0, this.$nextTick(() => {
|
|
521
|
+
setTimeout(() => {
|
|
522
|
+
const r = `${this.openType}Details`;
|
|
523
|
+
this.$refs[r] && this.$refs[r].init();
|
|
524
|
+
}, 0);
|
|
525
|
+
});
|
|
526
|
+
});
|
|
527
|
+
},
|
|
528
|
+
oauthAuthorizeRedirect(t) {
|
|
529
|
+
let e = "";
|
|
530
|
+
for (let s = 0; s < t.length; s++)
|
|
531
|
+
e += `${s === 0 ? "?" : "&"}${t[s].key}=${t[s].value}`;
|
|
532
|
+
const i = this.openType === "redirect_self" ? "_self" : this.openType === "redirect_blank" ? "_blank" : "_self";
|
|
533
|
+
window.open(`${url}${e}`, i);
|
|
534
|
+
},
|
|
535
|
+
getCode(t) {
|
|
536
|
+
I({ code: t }).then((e) => {
|
|
537
|
+
if (e.code !== 200) {
|
|
538
|
+
this.$message.error(e.message);
|
|
539
|
+
return;
|
|
540
|
+
}
|
|
541
|
+
this.loginSuccess(e.data), this.loginOther();
|
|
542
|
+
});
|
|
543
|
+
},
|
|
544
|
+
goRedirectUri(t) {
|
|
545
|
+
if (t === "")
|
|
546
|
+
return;
|
|
547
|
+
const e = decodeURIComponent(t), i = this.openType === "redirect_self" ? "_self" : this.openType === "redirect_blank" ? "_blank" : "";
|
|
548
|
+
window.open(e, i);
|
|
549
|
+
},
|
|
550
|
+
getIframeUri(t) {
|
|
551
|
+
t !== "" && (this.iframeUri = decodeURIComponent(t));
|
|
552
|
+
},
|
|
553
|
+
beaseLoadComplete() {
|
|
554
|
+
const t = this.query.complete_request ? this.query.complete_request : "";
|
|
555
|
+
if (t === "")
|
|
556
|
+
return;
|
|
557
|
+
const e = decodeURIComponent(t), i = e.indexOf("?") === -1 ? e : e.slice(0, e.indexOf("?")), s = a(e);
|
|
558
|
+
c(i, s);
|
|
559
|
+
},
|
|
560
|
+
loginSuccess(t) {
|
|
561
|
+
Vue.ls.set("ACCESS_TOKEN", t.accesstoken), this.$store.commit("SET_TOKEN", t.accesstoken);
|
|
562
|
+
let e = "";
|
|
563
|
+
for (let i in this.query)
|
|
564
|
+
["authorize_view", "authorize_form", "authorize_details"].includes(i) ? e += `${e === "" ? "?" : "&"}${i}=${this.query[i].replace("authorize_", "")}` : e += `${e === "" ? "?" : "&"}${i}=${this.query[i]}`;
|
|
565
|
+
this.open(e, !0);
|
|
566
|
+
},
|
|
567
|
+
loginOther() {
|
|
568
|
+
this.dictTypeData().then((e) => {
|
|
569
|
+
});
|
|
570
|
+
const t = new BroadcastChannel("gd-channel-msg");
|
|
571
|
+
t.postMessage({
|
|
572
|
+
type: "login",
|
|
573
|
+
data: { gdTagName: window.gdTagName }
|
|
574
|
+
}), t.close();
|
|
575
|
+
},
|
|
576
|
+
close() {
|
|
577
|
+
this.modeType = "", this.openType = "", this.$nextTick(() => {
|
|
578
|
+
setTimeout(() => {
|
|
579
|
+
this.$emit("close");
|
|
580
|
+
}, 300);
|
|
581
|
+
});
|
|
582
|
+
},
|
|
583
|
+
doEvent(t) {
|
|
584
|
+
const e = `${this.openType}Details`;
|
|
585
|
+
this.$refs[e] && this.$refs[e].doEvent && this.$refs[e].doEvent(t);
|
|
586
|
+
},
|
|
587
|
+
...f(["Logout", "dictTypeData"])
|
|
588
|
+
}
|
|
589
|
+
};
|
|
590
|
+
var N = function() {
|
|
591
|
+
var e = this, i = e._self._c;
|
|
592
|
+
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) {
|
|
593
|
+
return e.$emit("ok");
|
|
594
|
+
}, beaseLoadComplete: function(s) {
|
|
595
|
+
return e.$emit("beaseLoadComplete");
|
|
596
|
+
}, closed: e.close } }) : e.openType === "view" ? i("ViewDetails", { ref: "viewDetails", attrs: { record: e.record, query: e.query }, on: { ok: function(s) {
|
|
597
|
+
return e.$emit("ok");
|
|
598
|
+
}, closed: e.close, onChangeBtn: (s) => e.$emit("changeBtn", s), beaseLoadComplete: function(s) {
|
|
599
|
+
return e.$emit("beaseLoadComplete");
|
|
600
|
+
} } }) : e.openType === "iframe" ? i("iframe", { style: e.istyle, attrs: { id: "iframe", height: e.hig, src: e.iframeUri, frameBorder: "0" } }) : e._e()], 1);
|
|
601
|
+
}, E = [], U = /* @__PURE__ */ l(
|
|
602
|
+
R,
|
|
603
|
+
N,
|
|
604
|
+
E,
|
|
605
|
+
!1,
|
|
606
|
+
null,
|
|
607
|
+
"127122b3",
|
|
608
|
+
null,
|
|
609
|
+
null
|
|
610
|
+
);
|
|
611
|
+
const m = U.exports;
|
|
612
|
+
m.install = function(t) {
|
|
613
|
+
t.component(m.name, m);
|
|
614
|
+
};
|
|
615
|
+
const P = {
|
|
616
|
+
props: {
|
|
617
|
+
record: {
|
|
618
|
+
type: String,
|
|
619
|
+
default: ""
|
|
620
|
+
},
|
|
621
|
+
query: {
|
|
622
|
+
type: Object,
|
|
623
|
+
default: () => {
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
modalAppendToBody: {
|
|
627
|
+
type: Boolean,
|
|
628
|
+
default: !0
|
|
629
|
+
},
|
|
630
|
+
appendToBody: {
|
|
631
|
+
type: Boolean,
|
|
632
|
+
default: !0
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
data() {
|
|
636
|
+
return {
|
|
637
|
+
modeType: "",
|
|
638
|
+
popupMode: "drawer",
|
|
639
|
+
fullscreen: !1,
|
|
640
|
+
confirmLoading: !1,
|
|
641
|
+
visible: !1,
|
|
642
|
+
width: "80%",
|
|
643
|
+
iframeUri: "",
|
|
644
|
+
sysViewButtons: []
|
|
645
|
+
};
|
|
646
|
+
},
|
|
647
|
+
components: {
|
|
648
|
+
ViewItem: () => Promise.resolve().then(() => v),
|
|
649
|
+
FormItem: () => Promise.resolve().then(() => $),
|
|
650
|
+
DetailsItem: () => Promise.resolve().then(() => w)
|
|
651
|
+
},
|
|
652
|
+
computed: {
|
|
653
|
+
urls() {
|
|
654
|
+
return this.iframeUri.indexOf("?") === -1 ? this.iframeUri : this.iframeUri.slice(0, this.iframeUri.indexOf("?"));
|
|
655
|
+
},
|
|
656
|
+
title() {
|
|
657
|
+
return "";
|
|
658
|
+
},
|
|
659
|
+
hig() {
|
|
660
|
+
return `${this.height - 24}px`;
|
|
661
|
+
},
|
|
662
|
+
istyle() {
|
|
663
|
+
return `width:100%;overflow:hidden;height:${this.hig};`;
|
|
664
|
+
},
|
|
665
|
+
height() {
|
|
666
|
+
return this.popupMode === "drawer" ? this.screenHeight - 48 : this.fullscreen ? this.screenHeight - 72 : this.screenHeight - 230;
|
|
667
|
+
},
|
|
668
|
+
...d(["formMode", "screenHeight"])
|
|
669
|
+
},
|
|
670
|
+
methods: {
|
|
671
|
+
onChangeBtn(t) {
|
|
672
|
+
this.sysViewButtons = t;
|
|
673
|
+
},
|
|
674
|
+
init() {
|
|
675
|
+
const t = this.query.popup_wid ? this.query.popup_wid : "80%", e = this.query.popup_fullscreen ? this.query.popup_fullscreen : "";
|
|
676
|
+
this.width = isNaN(Number(t)) ? t : Number(t) + "px", this.fullscreen = e === "true";
|
|
677
|
+
let i = this.query.popup_type ? this.query.popup_type : "drawer";
|
|
678
|
+
i === "followSystem" && (i = this.formMode), this.popupMode = i, this.modeType = this.query.mode_type ? this.query.mode_type : "form";
|
|
679
|
+
let s = this.query.redirect_uri ? decodeURIComponent(this.query.redirect_uri) : "";
|
|
680
|
+
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(() => {
|
|
681
|
+
const o = `${this.modeType}Item`;
|
|
682
|
+
this.$refs[o] && this.$refs[o].init();
|
|
683
|
+
});
|
|
684
|
+
},
|
|
685
|
+
toggleFullscreen() {
|
|
686
|
+
this.fullscreen = !this.fullscreen;
|
|
687
|
+
},
|
|
688
|
+
closed() {
|
|
689
|
+
this.modeType = "", this.fullscreen = !1, this.visible = !1, this.$emit("closed");
|
|
690
|
+
},
|
|
691
|
+
doEvent(t) {
|
|
692
|
+
if (this.modeType === "iframe") {
|
|
693
|
+
document.getElementById("gd-view-iframe").contentWindow.postMessage({ data: JSON.stringify(t), eventType: "btn-click" }, this.urls);
|
|
694
|
+
return;
|
|
695
|
+
}
|
|
696
|
+
const e = `${this.modeType}Item`;
|
|
697
|
+
this.$refs[e] && this.$refs[e].doEvent(t);
|
|
698
|
+
},
|
|
699
|
+
monitorIframe(t) {
|
|
700
|
+
if (t.data.eventType === "form-btn") {
|
|
701
|
+
this.onChangeBtn(t.data.data && C(t.data.data) ? JSON.parse(t.data.data) : []);
|
|
702
|
+
return;
|
|
703
|
+
}
|
|
704
|
+
if (t.data.eventType === "load-complete") {
|
|
705
|
+
this.beaseLoadComplete();
|
|
706
|
+
return;
|
|
707
|
+
}
|
|
708
|
+
t.data.eventType === "close-drawer" && this.closed();
|
|
709
|
+
},
|
|
710
|
+
beaseLoadComplete(t) {
|
|
711
|
+
console.log(this.query);
|
|
712
|
+
const e = this.query.complete_request ? this.query.complete_request : "";
|
|
713
|
+
if (e === "")
|
|
714
|
+
return;
|
|
715
|
+
const i = decodeURIComponent(e), s = i.indexOf("?") === -1 ? i : i.slice(0, i.indexOf("?")), o = a(i);
|
|
716
|
+
c(s, o);
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
beforeDestory() {
|
|
720
|
+
window.removeEventListener("message", this.monitorIframe);
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
var M = function() {
|
|
724
|
+
var e = this, i = e._self._c;
|
|
725
|
+
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) {
|
|
726
|
+
e.visible = s;
|
|
727
|
+
}, 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) {
|
|
728
|
+
return e.$emit("ok");
|
|
729
|
+
}, beaseLoadComplete: function(s) {
|
|
730
|
+
return e.$emit("beaseLoadComplete");
|
|
731
|
+
} } }) : 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) {
|
|
732
|
+
e.visible = s;
|
|
733
|
+
} } }, [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) {
|
|
734
|
+
return e.$emit("ok");
|
|
735
|
+
}, beaseLoadComplete: function(s) {
|
|
736
|
+
return e.$emit("beaseLoadComplete");
|
|
737
|
+
} } }) : 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);
|
|
738
|
+
}, j = [], A = /* @__PURE__ */ l(
|
|
739
|
+
P,
|
|
740
|
+
M,
|
|
741
|
+
j,
|
|
742
|
+
!1,
|
|
743
|
+
null,
|
|
744
|
+
"1aaea733",
|
|
745
|
+
null,
|
|
746
|
+
null
|
|
747
|
+
);
|
|
748
|
+
const z = A.exports, G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
749
|
+
__proto__: null,
|
|
750
|
+
default: z
|
|
751
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
752
|
+
const H = {
|
|
753
|
+
props: {
|
|
754
|
+
record: {
|
|
755
|
+
type: String,
|
|
756
|
+
default: ""
|
|
757
|
+
},
|
|
758
|
+
query: {
|
|
759
|
+
type: Object,
|
|
760
|
+
default: () => {
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
data() {
|
|
765
|
+
return {
|
|
766
|
+
modeType: ""
|
|
767
|
+
};
|
|
768
|
+
},
|
|
769
|
+
components: {
|
|
770
|
+
ViewItem: () => Promise.resolve().then(() => v),
|
|
771
|
+
FormItem: () => Promise.resolve().then(() => $),
|
|
772
|
+
DetailsItem: () => Promise.resolve().then(() => w)
|
|
773
|
+
},
|
|
774
|
+
computed: {
|
|
775
|
+
height() {
|
|
776
|
+
return this.screenHeight - 72;
|
|
777
|
+
},
|
|
778
|
+
...d(["screenHeight"])
|
|
779
|
+
},
|
|
780
|
+
methods: {
|
|
781
|
+
init() {
|
|
782
|
+
this.modeType = this.query.mode_type ? this.query.mode_type : "form", this.visible = !0, this.$nextTick(() => {
|
|
783
|
+
const t = `${this.modeType}Item`;
|
|
784
|
+
this.$refs[t] && this.$refs[t].init();
|
|
785
|
+
});
|
|
786
|
+
},
|
|
787
|
+
doEvent(t) {
|
|
788
|
+
const e = `${this.modeType}Item`;
|
|
789
|
+
this.$refs[e] && this.$refs[e].doEvent && this.$refs[e].doEvent(t);
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
};
|
|
793
|
+
var K = function() {
|
|
794
|
+
var e = this, i = e._self._c;
|
|
795
|
+
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) {
|
|
796
|
+
return e.$emit("ok");
|
|
797
|
+
}, onChangeBtn: (s) => e.$emit("onChangeBtn", s), closed: function(s) {
|
|
798
|
+
return e.$emit("closed");
|
|
799
|
+
}, beaseLoadComplete: function(s) {
|
|
800
|
+
return e.$emit("beaseLoadComplete");
|
|
801
|
+
} } }) : e.modeType === "details" ? i("DetailsItem", { ref: "detailsItem", attrs: { query: e.query, height: e.height } }) : e._e()], 1);
|
|
802
|
+
}, J = [], Q = /* @__PURE__ */ l(
|
|
803
|
+
H,
|
|
804
|
+
K,
|
|
805
|
+
J,
|
|
806
|
+
!1,
|
|
807
|
+
null,
|
|
808
|
+
"dd2e4515",
|
|
809
|
+
null,
|
|
810
|
+
null
|
|
811
|
+
);
|
|
812
|
+
const W = Q.exports, X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
813
|
+
__proto__: null,
|
|
814
|
+
default: W
|
|
815
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
816
|
+
const Y = {
|
|
817
|
+
props: {
|
|
818
|
+
height: {
|
|
819
|
+
type: Number,
|
|
820
|
+
default: 600
|
|
821
|
+
},
|
|
822
|
+
query: {
|
|
823
|
+
type: Object,
|
|
824
|
+
default: () => {
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
data() {
|
|
829
|
+
return {
|
|
830
|
+
record: {},
|
|
831
|
+
openMode: 1,
|
|
832
|
+
viewId: "",
|
|
833
|
+
tableId: "",
|
|
834
|
+
formId: "",
|
|
835
|
+
show: !1,
|
|
836
|
+
confirmLoading: !1
|
|
837
|
+
};
|
|
838
|
+
},
|
|
839
|
+
computed: {
|
|
840
|
+
table() {
|
|
841
|
+
const t = this.tableLists.filter((e) => e.id === this.tableId)[0];
|
|
842
|
+
return t || {};
|
|
843
|
+
},
|
|
844
|
+
getHeight() {
|
|
845
|
+
return this.height - 24;
|
|
846
|
+
},
|
|
847
|
+
componentItem() {
|
|
848
|
+
const t = this.$importViewFiles();
|
|
849
|
+
let e = `../views/main/${this.table.tablename}/index.vue`, i = t[e];
|
|
850
|
+
return i ? i.default : V;
|
|
851
|
+
},
|
|
852
|
+
...d(["tableLists"])
|
|
853
|
+
},
|
|
854
|
+
methods: {
|
|
855
|
+
init() {
|
|
856
|
+
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) => {
|
|
857
|
+
this.record = {
|
|
858
|
+
options: {
|
|
859
|
+
table: this.table,
|
|
860
|
+
form: { id: this.formId },
|
|
861
|
+
view: { id: this.viewId },
|
|
862
|
+
viewWeights: "1"
|
|
863
|
+
}
|
|
864
|
+
}, this.$nextTick(() => {
|
|
865
|
+
setTimeout(() => {
|
|
866
|
+
this.show = !0;
|
|
867
|
+
}, 0);
|
|
868
|
+
});
|
|
869
|
+
});
|
|
870
|
+
},
|
|
871
|
+
getAllTable() {
|
|
872
|
+
return this.tableLists.length > 0 ? new Promise((t) => {
|
|
873
|
+
t();
|
|
874
|
+
}) : _({
|
|
875
|
+
busName: ""
|
|
876
|
+
}).then((t) => (t.success && this.TableLists(t.data), t.data));
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
};
|
|
880
|
+
var Z = function() {
|
|
881
|
+
var e = this, i = e._self._c;
|
|
882
|
+
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);
|
|
883
|
+
}, ee = [], te = /* @__PURE__ */ l(
|
|
884
|
+
Y,
|
|
885
|
+
Z,
|
|
886
|
+
ee,
|
|
887
|
+
!1,
|
|
888
|
+
null,
|
|
889
|
+
"5b928d29",
|
|
890
|
+
null,
|
|
891
|
+
null
|
|
892
|
+
);
|
|
893
|
+
const ie = te.exports, v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
894
|
+
__proto__: null,
|
|
895
|
+
default: ie
|
|
896
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
897
|
+
const se = {
|
|
898
|
+
props: {
|
|
899
|
+
query: {
|
|
900
|
+
type: Object,
|
|
901
|
+
default: () => {
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
modeType: {
|
|
905
|
+
type: String,
|
|
906
|
+
default: "component"
|
|
907
|
+
}
|
|
908
|
+
},
|
|
909
|
+
data() {
|
|
910
|
+
return {
|
|
911
|
+
record: {},
|
|
912
|
+
openMode: 1,
|
|
913
|
+
tableId: "",
|
|
914
|
+
formId: "",
|
|
915
|
+
show: !1,
|
|
916
|
+
formData: {},
|
|
917
|
+
fieldData: {},
|
|
918
|
+
sysViewButtons: [],
|
|
919
|
+
confirmLoading: !1
|
|
920
|
+
};
|
|
921
|
+
},
|
|
922
|
+
computed: {
|
|
923
|
+
table() {
|
|
924
|
+
const t = this.tableLists.filter((e) => e.id === this.tableId)[0];
|
|
925
|
+
return t || {};
|
|
926
|
+
},
|
|
927
|
+
getHeight() {
|
|
928
|
+
return this.height - 24;
|
|
929
|
+
},
|
|
930
|
+
componentItem() {
|
|
931
|
+
const t = this.$importViewFiles();
|
|
932
|
+
let e = `../views/main/${this.table.tablename}/editForm.vue`, i = t[e];
|
|
933
|
+
return i ? i.default : b;
|
|
934
|
+
},
|
|
935
|
+
...d(["tableLists"])
|
|
936
|
+
},
|
|
937
|
+
methods: {
|
|
938
|
+
beaseLoadComplete(t) {
|
|
939
|
+
console.log(this.query), this.$emit("beaseLoadComplete");
|
|
940
|
+
const e = this.query.complete_request ? this.query.complete_request : "";
|
|
941
|
+
if (e === "")
|
|
942
|
+
return;
|
|
943
|
+
const i = decodeURIComponent(e), s = i.indexOf("?") === -1 ? i : i.slice(0, i.indexOf("?")), o = a(i);
|
|
944
|
+
c(s, o);
|
|
945
|
+
},
|
|
946
|
+
onChangeBtn(t) {
|
|
947
|
+
this.sysViewButtons = t, this.$emit("onChangeBtn", t);
|
|
948
|
+
},
|
|
949
|
+
init() {
|
|
950
|
+
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) => {
|
|
951
|
+
this.record = {
|
|
952
|
+
options: {
|
|
953
|
+
table: this.table,
|
|
954
|
+
form: { id: this.formId }
|
|
955
|
+
}
|
|
956
|
+
}, this.show = !0, this.confirmLoading = !1, this.$nextTick(() => {
|
|
957
|
+
setTimeout(() => {
|
|
958
|
+
this.$refs.editForm && this.$refs.editForm.setFormRecord(this.formData).then(() => {
|
|
959
|
+
this.$refs.editForm.open({ id: this.id, title: "" });
|
|
960
|
+
});
|
|
961
|
+
}, 0);
|
|
962
|
+
});
|
|
963
|
+
});
|
|
964
|
+
},
|
|
965
|
+
getLoadData() {
|
|
966
|
+
return g({
|
|
967
|
+
codeGenId: this.tableId
|
|
968
|
+
}).then((t) => (this.fieldData = t.data, t.data));
|
|
969
|
+
},
|
|
970
|
+
sysFormDetails() {
|
|
971
|
+
return y({ tableId: this.tableId }).then((t) => {
|
|
972
|
+
if (t.code === 200) {
|
|
973
|
+
const e = t.data.formlist.filter((i) => i.id === this.formId)[0];
|
|
974
|
+
console.log(e), this.formData = e;
|
|
975
|
+
}
|
|
976
|
+
return t.data;
|
|
977
|
+
});
|
|
978
|
+
},
|
|
979
|
+
getAllTable() {
|
|
980
|
+
return this.tableLists.length > 0 ? new Promise((t) => {
|
|
981
|
+
t();
|
|
982
|
+
}) : _({
|
|
983
|
+
busName: ""
|
|
984
|
+
}).then((t) => (t.success && this.TableLists(t.data), t.data));
|
|
985
|
+
},
|
|
986
|
+
doEvent(t) {
|
|
987
|
+
this.$refs.editForm && this.$refs.editForm.doEvent(t);
|
|
988
|
+
},
|
|
989
|
+
closed() {
|
|
990
|
+
console.log("\u5173\u95ED"), this.$emit("closed");
|
|
991
|
+
},
|
|
992
|
+
...f(["TableLists"])
|
|
993
|
+
}
|
|
994
|
+
};
|
|
995
|
+
var oe = function() {
|
|
996
|
+
var e = this, i = e._self._c;
|
|
997
|
+
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) {
|
|
998
|
+
return e.$emit("ok");
|
|
999
|
+
}, onLoadCompleted: e.beaseLoadComplete } }) : e._e()], 1);
|
|
1000
|
+
}, re = [], ne = /* @__PURE__ */ l(
|
|
1001
|
+
se,
|
|
1002
|
+
oe,
|
|
1003
|
+
re,
|
|
1004
|
+
!1,
|
|
1005
|
+
null,
|
|
1006
|
+
"b8e777c7",
|
|
1007
|
+
null,
|
|
1008
|
+
null
|
|
1009
|
+
);
|
|
1010
|
+
const ae = ne.exports, $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1011
|
+
__proto__: null,
|
|
1012
|
+
default: ae
|
|
1013
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1014
|
+
const le = {
|
|
1015
|
+
props: {
|
|
1016
|
+
query: {
|
|
1017
|
+
type: Object,
|
|
1018
|
+
default: () => {
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
},
|
|
1022
|
+
data() {
|
|
1023
|
+
return {
|
|
1024
|
+
dictCode: "messagetype",
|
|
1025
|
+
messageType: "",
|
|
1026
|
+
componentItem: ""
|
|
1027
|
+
};
|
|
1028
|
+
},
|
|
1029
|
+
computed: {
|
|
1030
|
+
componentForm() {
|
|
1031
|
+
return this.componentItem === "GdNoticeDetails" ? k : "";
|
|
1032
|
+
}
|
|
1033
|
+
},
|
|
1034
|
+
methods: {
|
|
1035
|
+
onLoadCompleted() {
|
|
1036
|
+
const t = this.query.complete_request ? this.query.complete_request : "";
|
|
1037
|
+
if (t === "")
|
|
1038
|
+
return;
|
|
1039
|
+
const e = decodeURIComponent(t), i = e.indexOf("?") === -1 ? e : e.slice(0, e.indexOf("?")), s = a(e);
|
|
1040
|
+
c(i, s);
|
|
1041
|
+
},
|
|
1042
|
+
init() {
|
|
1043
|
+
if (this.messageType = this.query.message_type ? this.query.message_type : "", this.messageType === "")
|
|
1044
|
+
return;
|
|
1045
|
+
const e = this.getDictionary(this.dictCode).filter((s) => s.code === this.messageType)[0];
|
|
1046
|
+
if (!e)
|
|
1047
|
+
return;
|
|
1048
|
+
const i = this.query.id ? this.query.id : "";
|
|
1049
|
+
this.componentItem = e.remark, this.$nextTick(() => {
|
|
1050
|
+
setTimeout(() => {
|
|
1051
|
+
this.$refs.editForm && this.$refs.editForm.open({ id: i });
|
|
1052
|
+
}, 0);
|
|
1053
|
+
});
|
|
1054
|
+
},
|
|
1055
|
+
getDictionary(t) {
|
|
1056
|
+
return this.$options.filters.dictData(t);
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
};
|
|
1060
|
+
var de = function() {
|
|
1061
|
+
var e = this, i = e._self._c;
|
|
1062
|
+
return e.componentForm ? i(e.componentForm, { ref: "editForm", tag: "component", attrs: { modeType: "component" }, on: { onLoadCompleted: e.onLoadCompleted } }) : e._e();
|
|
1063
|
+
}, he = [], ce = /* @__PURE__ */ l(
|
|
1064
|
+
le,
|
|
1065
|
+
de,
|
|
1066
|
+
he,
|
|
1067
|
+
!1,
|
|
1068
|
+
null,
|
|
1069
|
+
"2e905682",
|
|
1070
|
+
null,
|
|
1071
|
+
null
|
|
1072
|
+
);
|
|
1073
|
+
const ue = ce.exports, w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1074
|
+
__proto__: null,
|
|
1075
|
+
default: ue
|
|
1076
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1077
|
+
export {
|
|
1078
|
+
m as G,
|
|
1079
|
+
V,
|
|
1080
|
+
x as v
|
|
1081
|
+
};
|