gds-plus-design-vue 1.2.5 → 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 -91033
- 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.c59fc1e8.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.4e325110.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.955f770e.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.be62e9a4.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.7e418640.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.f0d2d130.mjs → system.config.35b13003.mjs} +7 -6
- package/lib/system.datasource.4243937d.js +1 -0
- package/lib/{system.datasource.61ff56ec.mjs → system.datasource.7f582bef.mjs} +15 -64
- package/lib/{system.dict.a817cf68.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.6feb94c3.mjs → system.fieldsecurity.dd504643.mjs} +486 -938
- package/lib/{system.file.1930d109.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.61d303bd.mjs → system.log.aad4ff54.mjs} +31 -93
- package/lib/system.machine.379beacb.js +1 -0
- package/lib/{system.machine.ed69ec93.mjs → system.machine.c47be0cc.mjs} +5 -25
- package/lib/{system.notice.bd18554e.mjs → system.notice.dc1b67cc.mjs} +1075 -1263
- package/lib/system.notice.fb151c45.js +1 -0
- package/lib/system.noticereceived.3a29d891.js +1 -0
- package/lib/{system.noticereceived.4dc360c0.mjs → system.noticereceived.e75bf358.mjs} +19 -27
- package/lib/{system.onlineuser.08a15a71.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.6e858bf3.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.a1f1c194.mjs → system.plugin.4b80cd95.mjs} +503 -552
- package/lib/system.pos.5a1663d8.js +1 -0
- package/lib/{system.pos.eb8fd7dd.mjs → system.pos.a3bafaaa.mjs} +31 -62
- package/lib/system.promptmanagement.53c301a3.js +1 -0
- package/lib/{system.promptmanagement.c84db7d5.mjs → system.promptmanagement.fd651c09.mjs} +318 -449
- package/lib/{system.role.d2195303.mjs → system.role.9edb5922.mjs} +601 -523
- package/lib/system.role.e164f059.js +1 -0
- package/lib/{system.sumberrules.141dc00b.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.d73c659f.mjs → system.teammembers.b8e53d99.mjs} +257 -199
- package/lib/system.timers.2f884e41.js +38 -0
- package/lib/{system.timers.4a3dd57d.mjs → system.timers.551c4a4b.mjs} +2202 -2278
- package/lib/system.translation.6e99c852.js +1 -0
- package/lib/{system.translation.d9488c23.mjs → system.translation.c2c1f40c.mjs} +437 -431
- package/lib/{system.user.6874aa87.mjs → system.user.b99911de.mjs} +1082 -1025
- package/lib/system.user.dffc2543.js +14 -0
- package/lib/{system.useraffiliation.5e3e2bab.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.204911b7.mjs → system.webresource.8a8d856b.mjs} +177 -219
- package/lib/{system.welcome.79e15015.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 +96 -29
- package/locale/id_ID.js +80 -13
- package/locale/vi_VN.js +2015 -1948
- package/locale/zh_CN.js +100 -33
- package/package.json +106 -105
- package/lib/chartbi.b5b6fdab.js +0 -60
- package/lib/chartbi.b6818e8e.mjs +0 -27604
- package/lib/main.6713b76c.js +0 -1
- package/lib/main.a28f67df.js +0 -1
- package/lib/main.b4a303dc.js +0 -1
- package/lib/main.f3ae0933.js +0 -1
- package/lib/messages.1346558e.js +0 -9
- package/lib/system.account.64fbdaeb.mjs +0 -2552
- package/lib/system.account.7c43a95e.js +0 -216
- package/lib/system.config.93d6cb7d.js +0 -1
- package/lib/system.datasource.4bb39222.js +0 -1
- package/lib/system.dict.5a2e60fe.js +0 -1
- package/lib/system.duplicatechecking.65b77e64.js +0 -1
- package/lib/system.duplicatechecking.751664ba.mjs +0 -2142
- package/lib/system.email.2f53252e.mjs +0 -7432
- package/lib/system.email.fec5ae26.js +0 -41
- package/lib/system.fieldsecurity.920adca4.js +0 -1
- package/lib/system.file.5a9a5e0e.js +0 -1
- package/lib/system.log.b309c0e0.js +0 -1
- package/lib/system.machine.9368e508.js +0 -1
- package/lib/system.notice.ff62c06a.js +0 -1
- package/lib/system.noticereceived.9550818b.js +0 -1
- package/lib/system.onlineuser.6cf4fe24.js +0 -1
- package/lib/system.org.0c67131d.js +0 -1
- package/lib/system.permissions.af548a3b.js +0 -9
- package/lib/system.permissions.cc5ac7ac.mjs +0 -212
- package/lib/system.plugin.83d03fb2.js +0 -1
- package/lib/system.pos.eae2051e.js +0 -1
- package/lib/system.promptmanagement.04501417.js +0 -1
- package/lib/system.role.e623c50b.js +0 -1
- package/lib/system.sumberrules.a01e1805.js +0 -1
- package/lib/system.team.0cebcde7.js +0 -1
- package/lib/system.team.27a6d5d5.mjs +0 -1000
- package/lib/system.teammembers.b67f003f.js +0 -1
- package/lib/system.timers.b27fcb6d.js +0 -38
- package/lib/system.translation.d2c982ed.js +0 -1
- package/lib/system.user.0664c21c.js +0 -14
- package/lib/system.useraffiliation.6b7a1612.js +0 -1
- package/lib/system.webresource.5de18052.js +0 -1
- package/lib/system.welcome.ec7aa744.js +0 -1
|
@@ -0,0 +1,922 @@
|
|
|
1
|
+
import { n as u, m as h } from "./components.chartbi.470b96af.mjs";
|
|
2
|
+
import { k as y, s as b, a as k } from "./http.main.1af1e119.mjs";
|
|
3
|
+
import { g as p, s as m, a as D } from "./http.syscodegenerateconfigmanage.6d2e5da0.mjs";
|
|
4
|
+
const x = {
|
|
5
|
+
props: {
|
|
6
|
+
effectType: {
|
|
7
|
+
type: String,
|
|
8
|
+
defaule: "input"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
computed: {
|
|
12
|
+
icon() {
|
|
13
|
+
let t = "gd-icon-ziti";
|
|
14
|
+
return this.effectType === "double" ? t = "gd-icon-fudianshu" : this.effectType === "fk" ? t = "gd-icon-waijian" : this.effectType === "datepicker" ? t = "gd-icon-riqi" : this.effectType === "switch" ? t = "gd-icon-anniu_kaiqi" : this.effectType === "currency" ? t = "gd-icon-huobi" : this.effectType === "select" ? t = "gd-icon-xiala" : this.effectType === "textarea" ? t = "gd-icon-duohangwenben" : this.effectType === "inputnumber" ? t = "gd-icon-shuzi" : this.effectType === "radio" ? t = "gd-icon-danxuan_xuanzhong" : this.effectType === "checkbox" ? t = "gd-icon-xuanzhong" : this.effectType === "about" ? t = "gd-icon-guanyu" : this.effectType === "participants" ? t = "gd-icon-canyu" : this.effectType === "image" ? t = "gd-icon-tupian" : this.effectType === "file" ? t = "gd-icon-wenjian" : this.effectType === "editor" ? t = "gd-icon-fuwenbenkuang" : this.effectType === "user" && (t = "gd-icon-user"), t;
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
data() {
|
|
18
|
+
return {};
|
|
19
|
+
},
|
|
20
|
+
methods: {}
|
|
21
|
+
};
|
|
22
|
+
var T = function() {
|
|
23
|
+
var e = this, i = e._self._c;
|
|
24
|
+
return i("span", { staticClass: "gd-icons", class: e.icon });
|
|
25
|
+
}, $ = [], _ = /* @__PURE__ */ u(
|
|
26
|
+
x,
|
|
27
|
+
T,
|
|
28
|
+
$,
|
|
29
|
+
!1,
|
|
30
|
+
null,
|
|
31
|
+
"674ea292",
|
|
32
|
+
null,
|
|
33
|
+
null
|
|
34
|
+
);
|
|
35
|
+
const g = _.exports, v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
36
|
+
__proto__: null,
|
|
37
|
+
default: g
|
|
38
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
39
|
+
const I = {
|
|
40
|
+
name: "GdXlsxImport",
|
|
41
|
+
props: {
|
|
42
|
+
tableData: {
|
|
43
|
+
type: Object,
|
|
44
|
+
default: () => ({})
|
|
45
|
+
},
|
|
46
|
+
typeImport: {
|
|
47
|
+
type: [String, Number],
|
|
48
|
+
default: 1
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
components: {
|
|
52
|
+
EffectTypeIcon: () => Promise.resolve().then(() => v),
|
|
53
|
+
FieldMapping: () => Promise.resolve().then(() => K)
|
|
54
|
+
},
|
|
55
|
+
data() {
|
|
56
|
+
return {
|
|
57
|
+
buttons: [
|
|
58
|
+
{
|
|
59
|
+
displayName: "\u786E\u5B9A",
|
|
60
|
+
functionName: "handleSubmit",
|
|
61
|
+
show: !0,
|
|
62
|
+
transKey: "gd.btn.confirm",
|
|
63
|
+
icon: "el-icon-document-checked"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
record: {},
|
|
67
|
+
visible: !1,
|
|
68
|
+
confirmLoading: !1,
|
|
69
|
+
fullscreen: !1,
|
|
70
|
+
selectedRowKeys: [],
|
|
71
|
+
selectedRows: [],
|
|
72
|
+
width: "90%",
|
|
73
|
+
ruleFormData: {
|
|
74
|
+
serviceConsultant: "",
|
|
75
|
+
entityValue: ""
|
|
76
|
+
},
|
|
77
|
+
rules: {
|
|
78
|
+
serviceConsultant: [
|
|
79
|
+
{
|
|
80
|
+
required: !0,
|
|
81
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
82
|
+
trigger: "change"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
entityValue: [
|
|
86
|
+
{
|
|
87
|
+
required: !0,
|
|
88
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
89
|
+
trigger: "change"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
excelFielData: {
|
|
94
|
+
excelName: "",
|
|
95
|
+
excelSize: ""
|
|
96
|
+
},
|
|
97
|
+
excelData: [],
|
|
98
|
+
loading: !1,
|
|
99
|
+
autoInputOver: !1,
|
|
100
|
+
serviceData: [],
|
|
101
|
+
fileId: 0,
|
|
102
|
+
loadData: [],
|
|
103
|
+
configData: [],
|
|
104
|
+
excelImportData: [],
|
|
105
|
+
selItem: {},
|
|
106
|
+
loadSoData: (t) => new Promise((e, i) => {
|
|
107
|
+
setTimeout(() => {
|
|
108
|
+
this.confirmLoading = !1, e({ pageNo: 1, pageSize: 200, totalRows: 0, rows: this.loadData });
|
|
109
|
+
}, 200);
|
|
110
|
+
}),
|
|
111
|
+
columns: [
|
|
112
|
+
{
|
|
113
|
+
transKey: "gd.xlsxImport.importInformation",
|
|
114
|
+
prop: "importName",
|
|
115
|
+
label: "\u5BFC\u5165\u4FE1\u606F",
|
|
116
|
+
align: "left"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
transKey: "gd.xlsxImport.mappingEntityFields",
|
|
120
|
+
prop: "checkzd",
|
|
121
|
+
label: "\u6620\u5C04\u5B9E\u4F53\u5B57\u6BB5",
|
|
122
|
+
align: "left",
|
|
123
|
+
type: "slot",
|
|
124
|
+
slotType: "checkzd",
|
|
125
|
+
showTooltip: !1
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
transKey: "gd.xlsxImport.foreignField",
|
|
129
|
+
prop: "fkname",
|
|
130
|
+
label: "\u5916\u952E\u5B57\u6BB5",
|
|
131
|
+
align: "left"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
transKey: "gd.xlsxImport.type",
|
|
135
|
+
prop: "zdtype",
|
|
136
|
+
label: "\u5B57\u6BB5\u7C7B\u578B",
|
|
137
|
+
align: "left"
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
};
|
|
141
|
+
},
|
|
142
|
+
computed: {
|
|
143
|
+
entityData() {
|
|
144
|
+
return this.typeImport != 1 ? this.tableLists : this.tableLists.filter((t) => t.id === this.tableData.id);
|
|
145
|
+
},
|
|
146
|
+
excelName() {
|
|
147
|
+
return `${this.excelFielData.excelName} ${this.excelFielData.excelSize}`;
|
|
148
|
+
},
|
|
149
|
+
title() {
|
|
150
|
+
return this.typeImport == 2 ? this.$i18nt("gd.menu.universalImport", "\u901A\u7528\u5BFC\u5165") : `${this.$i18nt(`Dynamics.${this.tableData.transkey}`, this.tableData.busname)} (${this.tableData.tablename}) ${this.$i18nt("gd.btn.import", "\u5BFC\u5165")}`;
|
|
151
|
+
},
|
|
152
|
+
height() {
|
|
153
|
+
return this.screenHeight - (this.fullscreen ? 120 : 310);
|
|
154
|
+
},
|
|
155
|
+
...h(["primaryColor", "screenHeight", "tableLists", "tableSize", "tablePageSize", "language"])
|
|
156
|
+
},
|
|
157
|
+
methods: {
|
|
158
|
+
lookup() {
|
|
159
|
+
this.$refs.viewSearch.open({
|
|
160
|
+
fkEntityName: "sys_user",
|
|
161
|
+
effectType: "fk",
|
|
162
|
+
val: this.ruleFormData.serviceConsultant
|
|
163
|
+
});
|
|
164
|
+
},
|
|
165
|
+
lookupSeled(t) {
|
|
166
|
+
this.serviceData = [...t.fkData], this.ruleFormData.serviceConsultant = t.data[0] ? t.data[0] : "";
|
|
167
|
+
},
|
|
168
|
+
handleSubmit() {
|
|
169
|
+
let t = this.$refs.table.tableData;
|
|
170
|
+
if (this.fileId === "") {
|
|
171
|
+
this.$message.error(this.$i18nt("gd.xlsxImport.uploadExcel", "\u4E0A\u4F20excel\u6587\u4EF6"));
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
if (this.ruleFormData.entityValue === "") {
|
|
175
|
+
this.$message.error(this.$i18nt("gd.xlsxImport.entityTableTip", "\u8BF7\u9009\u62E9\u5B9E\u4F53\u8868"));
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
if (t.length == 0) {
|
|
179
|
+
this.$message.error(this.$i18nt("gd.xlsxImport.entityFileTip", "\u8BF7\u5BFC\u5165\u5B8C\u6574\u7684\u6587\u4EF6"));
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
if (this.ruleFormData.serviceConsultant === "") {
|
|
183
|
+
this.$message.error(this.$i18nt("gd.xlsxImport.owner", "\u8BB0\u5F55\u8D1F\u8D23\u4EBA"));
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
this.confirmLoading = !0, this.$refs.ruleForm.validate((e) => {
|
|
187
|
+
const i = this.tableLists.filter((a) => a.id === this.ruleFormData.entityValue)[0];
|
|
188
|
+
if (e) {
|
|
189
|
+
let a = {
|
|
190
|
+
people: this.ruleFormData.serviceConsultant,
|
|
191
|
+
tableName: i.tablename,
|
|
192
|
+
fileId: this.fileId,
|
|
193
|
+
fieIds: []
|
|
194
|
+
}, s = t.filter((o) => o.show);
|
|
195
|
+
const n = s.filter((o) => o.checkzd === ""), l = s.filter((o) => !!(o.fieIdType === 3 && !o.fkFilid || (o.fieIdType === 5 || o.fieIdType === 6) && this.hiatusAbout(o)));
|
|
196
|
+
if (n.length > 0 || l.length > 0) {
|
|
197
|
+
this.$message.error(this.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E")), this.confirmLoading = !1;
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
s.forEach((o) => {
|
|
201
|
+
let d = [], r = [];
|
|
202
|
+
o.abouts && o.abouts.length > 0 && o.abouts.forEach((f) => {
|
|
203
|
+
d.push({
|
|
204
|
+
aboutTable: f.aboutTable,
|
|
205
|
+
aboutField: f.aboutField
|
|
206
|
+
}), r.push({
|
|
207
|
+
partTable: f.aboutTable,
|
|
208
|
+
partField: f.aboutField
|
|
209
|
+
});
|
|
210
|
+
});
|
|
211
|
+
let c = {
|
|
212
|
+
execlName: o.importName,
|
|
213
|
+
insinuate: o.insinuate,
|
|
214
|
+
fieIdType: o.fieIdType,
|
|
215
|
+
partiRefTables: o.fieIdType == 6 ? r : [],
|
|
216
|
+
abouts: o.fieIdType == 5 ? d : []
|
|
217
|
+
};
|
|
218
|
+
(o.fieIdType === 2 || o.fieIdType === 7) && Object.assign(c, {
|
|
219
|
+
dictionarys: o.dictionarys.filter((f) => f.replaceValue !== "@-1")
|
|
220
|
+
}), o.fieIdType === 3 && Object.assign(c, {
|
|
221
|
+
fkTable: o.fkTable,
|
|
222
|
+
fkFilid: o.fkFilid
|
|
223
|
+
}), o.fieIdType != -1 && a.fieIds.push(c);
|
|
224
|
+
}), y(a).then((o) => {
|
|
225
|
+
o.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.confirmLoading = !1, this.$emit("ok"), this.closed()) : (this.confirmLoading = !1, this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + o.message));
|
|
226
|
+
}).catch((o) => {
|
|
227
|
+
this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25")), this.confirmLoading = !1;
|
|
228
|
+
});
|
|
229
|
+
} else
|
|
230
|
+
this.confirmLoading = !1;
|
|
231
|
+
});
|
|
232
|
+
},
|
|
233
|
+
handleChangeZd(t, e) {
|
|
234
|
+
let i = this.$refs.table.tableData;
|
|
235
|
+
const a = this.configData.filter((o) => o.id === t)[0];
|
|
236
|
+
if (t === 0) {
|
|
237
|
+
i[e.ind] = Object.assign({ ...i[e.ind] }, { fieIdType: -1, checkzd: t }), this.loadData = [...i], this.$refs.table.setLoadData(this.loadData);
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
let s = {
|
|
241
|
+
insinuate: a.columnname,
|
|
242
|
+
fkEntityName: a.fkentityname,
|
|
243
|
+
fkData: [],
|
|
244
|
+
abouts: [],
|
|
245
|
+
dictionarys: []
|
|
246
|
+
}, n = "";
|
|
247
|
+
const l = this.$i18nt(`Dynamics.${a.transkey}`, a.columncomment);
|
|
248
|
+
["fk", "user"].includes(a.effecttype) ? (Object.assign(s, {
|
|
249
|
+
fieIdType: 3,
|
|
250
|
+
fkname: l,
|
|
251
|
+
fkTable: a.fkentityname
|
|
252
|
+
}), n = "fk") : ["about", "participants"].includes(a.effecttype) ? (Object.assign(s, {
|
|
253
|
+
fieIdType: a.effecttype === "about" ? 5 : 6,
|
|
254
|
+
aboutName: l,
|
|
255
|
+
abouts: []
|
|
256
|
+
}), n = "about") : a.dicttypecode ? (Object.assign(s, {
|
|
257
|
+
fieIdType: a.effecttype === "checkbox" ? 7 : 2,
|
|
258
|
+
fkname: l,
|
|
259
|
+
dictionarys: this.dictionarysP(a, e.index),
|
|
260
|
+
zdtype: a.nettype
|
|
261
|
+
}), n = "dictTypeCode") : Object.assign(s, {
|
|
262
|
+
fieIdType: a.nettype.indexOf("datetime") > -1 ? 4 : 1,
|
|
263
|
+
fkname: l,
|
|
264
|
+
zdtype: a.nettype
|
|
265
|
+
}), i[e.ind] = Object.assign({ ...i[e.ind] }, { ...s }), this.loadData = [...i], this.$refs.table.setLoadData(this.loadData), n !== "" && this.$nextTick(() => {
|
|
266
|
+
setTimeout(() => {
|
|
267
|
+
n !== "fk" ? this.editColumn(i[e.ind]) : this.editColumnFk(i[e.ind], e.ind);
|
|
268
|
+
}, 0);
|
|
269
|
+
});
|
|
270
|
+
},
|
|
271
|
+
okFieldMapping({ loadData: t, data: e, selectedRowKeys: i }) {
|
|
272
|
+
let a = this.$refs.table.tableData;
|
|
273
|
+
if (e.fieIdType === 2 || e.fieIdType === 7)
|
|
274
|
+
a[e.ind] = Object.assign(a[e.ind], {
|
|
275
|
+
dictionarys: [...t]
|
|
276
|
+
});
|
|
277
|
+
else if (e.fieIdType === 5 || e.fieIdType === 6) {
|
|
278
|
+
let s = t.filter((l) => i.includes(l.tablename))[0], n = s.configList.filter((l) => l.columnname === s.aboutField)[0];
|
|
279
|
+
a[e.ind] = Object.assign(a[e.ind], {
|
|
280
|
+
abouts: [
|
|
281
|
+
{
|
|
282
|
+
aboutTable: s.tablename,
|
|
283
|
+
aboutField: s.aboutField,
|
|
284
|
+
configList: s.configList
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
fkname: s.busname + "-" + this.$i18nt(`Dynamics.${n.transkey}`, n.columncomment),
|
|
288
|
+
zdtype: n.netType,
|
|
289
|
+
fkData: [...t]
|
|
290
|
+
});
|
|
291
|
+
} else {
|
|
292
|
+
let s = t.filter((n) => i.includes(n.columnname))[0];
|
|
293
|
+
a[e.ind] = Object.assign(a[e.ind], {
|
|
294
|
+
zdtype: s.nettype,
|
|
295
|
+
fkFilid: s.columnname,
|
|
296
|
+
fkname: this.$i18nt(`Dynamics.${s.transkey}`, s.columncomment),
|
|
297
|
+
fieIdType: 3
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
this.loadData = [...a], this.$refs.table.setLoadData(this.loadData);
|
|
301
|
+
},
|
|
302
|
+
editColumn(t) {
|
|
303
|
+
const e = this.configData.filter((i) => i.id === t.checkzd)[0];
|
|
304
|
+
if (["fk", "user"].includes(e.effecttype) && t.fkFilid === void 0) {
|
|
305
|
+
let i = this.$refs.table.tableData;
|
|
306
|
+
this.editColumnFk(i[t.ind], t.ind);
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
this.selItem = t, this.$refs.fieldMapping.open(t);
|
|
310
|
+
},
|
|
311
|
+
editColumnFk(t, e) {
|
|
312
|
+
!t.fkTable || (this.$refs.fieldMapping.openFk(t), this.$refs.table.tableData, p({
|
|
313
|
+
entityName: t.fkTable
|
|
314
|
+
}).then((i) => {
|
|
315
|
+
if (i.code === 200) {
|
|
316
|
+
const a = i.data.filter((l) => l.columnname == "name")[0], s = {
|
|
317
|
+
zdtype: a.nettype,
|
|
318
|
+
fkFilid: a.columnname,
|
|
319
|
+
fkname: this.$i18nt(`Dynamics.${a.transkey}`, a.columncomment)
|
|
320
|
+
};
|
|
321
|
+
let n = this.$refs.table.tableData;
|
|
322
|
+
n[e] = Object.assign(n[e], s, {
|
|
323
|
+
fkData: i.data
|
|
324
|
+
}), this.loadData = [...n], this.$refs.table.setLoadData(this.loadData), this.selItem = n[e], this.$refs.fieldMapping.open(n[e]);
|
|
325
|
+
}
|
|
326
|
+
}));
|
|
327
|
+
},
|
|
328
|
+
getFk(t, e, i = !0) {
|
|
329
|
+
i && this.editColumn(this.loadData[e]), t.fkEntityName && p({
|
|
330
|
+
entityName: t.fkEntityName
|
|
331
|
+
}).then((a) => {
|
|
332
|
+
if (a.code === 200) {
|
|
333
|
+
const s = a.data.filter((o) => o.columnname == "name")[0], n = {
|
|
334
|
+
zdtype: s.nettype,
|
|
335
|
+
fkFilid: s.columnname,
|
|
336
|
+
fkname: this.$i18nt(`Dynamics.${s.transkey}`, s.columncomment),
|
|
337
|
+
fieIdType: 3,
|
|
338
|
+
insinuate: t.columnname,
|
|
339
|
+
fkTable: t.fkentityname
|
|
340
|
+
};
|
|
341
|
+
let l = this.$refs.table.tableData;
|
|
342
|
+
l[e] = Object.assign(l[e], s && !l[e].fkFilid ? n : {}, {
|
|
343
|
+
fkData: a.data
|
|
344
|
+
}), this.loadData = [...l], this.$refs.table.setLoadData(this.loadData);
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
},
|
|
348
|
+
autoInput() {
|
|
349
|
+
let t = /* @__PURE__ */ new Map();
|
|
350
|
+
this.excelImportData.forEach((i, a) => {
|
|
351
|
+
t.set(i.importName, a);
|
|
352
|
+
});
|
|
353
|
+
let e = [];
|
|
354
|
+
this.configData.forEach((i, a) => {
|
|
355
|
+
const s = this.isCheckedName(t, i.langs);
|
|
356
|
+
let n = null;
|
|
357
|
+
s && (n = this.autoInputData(s, i, a)), n && e.push(n);
|
|
358
|
+
}), this.autoInputOver = !0, this.$nextTick(() => {
|
|
359
|
+
this.refresh(), setTimeout(() => {
|
|
360
|
+
e.forEach((i) => {
|
|
361
|
+
this.getFk(i.ele, i.tableidx, i.statu);
|
|
362
|
+
});
|
|
363
|
+
}, 200);
|
|
364
|
+
});
|
|
365
|
+
},
|
|
366
|
+
autoInputData(t, e, i) {
|
|
367
|
+
const a = t.ind;
|
|
368
|
+
let s = {
|
|
369
|
+
checkzd: e.id,
|
|
370
|
+
configindex: i,
|
|
371
|
+
insinuate: e.columnname,
|
|
372
|
+
fkData: [],
|
|
373
|
+
aboutName: "",
|
|
374
|
+
fkname: "",
|
|
375
|
+
fkEntityName: e.fkentityname,
|
|
376
|
+
abouts: [],
|
|
377
|
+
dictionarys: []
|
|
378
|
+
};
|
|
379
|
+
const n = this.$i18nt(`Dynamics.${e.transkey}`, e.columncomment);
|
|
380
|
+
if (!e.dicttypecode && !["fk", "about", "user", "participants"].includes(e.effecttype))
|
|
381
|
+
Object.assign(s, {
|
|
382
|
+
fieIdType: e.nettype.indexOf("datetime") > -1 ? 4 : 1,
|
|
383
|
+
fkname: n,
|
|
384
|
+
zdtype: e.nettype
|
|
385
|
+
});
|
|
386
|
+
else if (["about", "participants"].includes(e.effecttype))
|
|
387
|
+
Object.assign(s, {
|
|
388
|
+
fieIdType: e.effecttype === "about" ? 5 : 6,
|
|
389
|
+
aboutName: n
|
|
390
|
+
});
|
|
391
|
+
else {
|
|
392
|
+
const l = this.configData.filter((r) => r.id == e.id)[0], o = l && !["fk", "user"].includes(e.effecttype) ? {
|
|
393
|
+
insinuate: l.columnname,
|
|
394
|
+
fieIdType: l.effecttype === "checkbox" ? 7 : 2,
|
|
395
|
+
dictionarys: this.dictionarysP(l, t.i)
|
|
396
|
+
} : {}, d = ["fk", "user"].includes(e.effecttype) ? {
|
|
397
|
+
fieIdType: 3,
|
|
398
|
+
oldCheckzd: e.id,
|
|
399
|
+
fkname: n,
|
|
400
|
+
zdtype: e.nettype,
|
|
401
|
+
fkTable: e.fkentityname
|
|
402
|
+
} : {};
|
|
403
|
+
Object.assign(s, d, o);
|
|
404
|
+
}
|
|
405
|
+
return this.loadData[a] = Object.assign({ ...this.loadData[a] }, { ...s }), ["fk", "user"].includes(e.effectType) ? { ele: e, tableidx: a, statu: !1 } : null;
|
|
406
|
+
},
|
|
407
|
+
isCheckedName(t, e, i) {
|
|
408
|
+
if (e.length === 0)
|
|
409
|
+
return !1;
|
|
410
|
+
e.forEach((n) => {
|
|
411
|
+
n.hasName = t.has(n.val), n.i = t.get(n.val);
|
|
412
|
+
let l = this.loadData.filter((o) => o.index === n.i)[0];
|
|
413
|
+
n.ind = l ? l.ind : n.i;
|
|
414
|
+
});
|
|
415
|
+
let a = e.filter((n) => n.hasName);
|
|
416
|
+
if (a[0] === void 0)
|
|
417
|
+
return !1;
|
|
418
|
+
if (a.length == 1)
|
|
419
|
+
return a[0];
|
|
420
|
+
let s = a.filter((n) => n.code == this.language)[0];
|
|
421
|
+
return s || a[0];
|
|
422
|
+
},
|
|
423
|
+
handleSelect(t) {
|
|
424
|
+
if (this.excelImportData.length == 0)
|
|
425
|
+
return;
|
|
426
|
+
this.confirmLoading = !0, this.$refs.table.setLoadData([]);
|
|
427
|
+
let e = [...this.loadData];
|
|
428
|
+
e.map((i) => (i.checkzd = "", i)), this.loadData = [...e], this.getEntutityConfig();
|
|
429
|
+
},
|
|
430
|
+
getEntutityConfig(t) {
|
|
431
|
+
if (this.ruleFormData.entityValue === "") {
|
|
432
|
+
this.autoInputOver = !0;
|
|
433
|
+
return;
|
|
434
|
+
}
|
|
435
|
+
m({
|
|
436
|
+
codeGenId: this.ruleFormData.entityValue
|
|
437
|
+
}).then((e) => {
|
|
438
|
+
if (e.code === 200) {
|
|
439
|
+
const i = ["sysorgid", "createdtime", "updateduserid", "createduserid", "updatedtime"];
|
|
440
|
+
let a = e.data.map((s) => (s.langs = this.getLangs(s), s)).filter((s) => !i.includes(s.columnname));
|
|
441
|
+
this.configData = [...a], this.autoInput();
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
},
|
|
445
|
+
checkFile() {
|
|
446
|
+
this.confirmLoading || (this.autoInputOver = !1, this.$excelAction.importExcel(
|
|
447
|
+
(t, e, i, a, s) => {
|
|
448
|
+
this.confirmLoading = !0;
|
|
449
|
+
let n = [];
|
|
450
|
+
this.excelFielData = {
|
|
451
|
+
excelName: i,
|
|
452
|
+
excelSize: a / 1024 / 1024 > 1 ? (a / 1024 / 1024).toFixed(2) + "mb" : (a / 1024).toFixed(2) + "kb"
|
|
453
|
+
};
|
|
454
|
+
let l = [
|
|
455
|
+
"\u90E8\u95E8",
|
|
456
|
+
"\u521B\u5EFA\u65F6\u95F4",
|
|
457
|
+
"\u521B\u5EFA\u8005",
|
|
458
|
+
"\u66F4\u65B0\u65F6\u95F4",
|
|
459
|
+
"\u66F4\u65B0\u8005",
|
|
460
|
+
"\u4FEE\u6539\u65F6\u95F4",
|
|
461
|
+
"\u4FEE\u6539\u8005",
|
|
462
|
+
"Department",
|
|
463
|
+
"Creation time",
|
|
464
|
+
"Creator by",
|
|
465
|
+
"Update time",
|
|
466
|
+
"Updated by",
|
|
467
|
+
"Trang ch\u1EE7",
|
|
468
|
+
"Th\u1EDDi gian t\u1EA1o",
|
|
469
|
+
"Th\u1EDDi gian c\u1EADp nh\u1EADt",
|
|
470
|
+
"C\u1EADp nh\u1EADt"
|
|
471
|
+
], o = [];
|
|
472
|
+
t[0].forEach((r, c) => {
|
|
473
|
+
n.push({
|
|
474
|
+
index: c,
|
|
475
|
+
importName: r,
|
|
476
|
+
checkzd: "",
|
|
477
|
+
zdtype: "",
|
|
478
|
+
id: 0,
|
|
479
|
+
show: r.indexOf("(\u7528\u4E8E\u5BFC\u5165\u66F4\u65B0)") == -1 ? !l.includes(r) : !1
|
|
480
|
+
}), o.push({ importName: r });
|
|
481
|
+
}), this.excelImportData = [...o], this.loadData = n.filter((r) => l.includes(r.importName) ? !1 : r.show).map((r, c) => (r.ind = c, r)), t.shift(), this.excelData = t;
|
|
482
|
+
let d = new FormData();
|
|
483
|
+
d.append("file", s[0]), b(d).then((r) => {
|
|
484
|
+
if (!r.success) {
|
|
485
|
+
this.$message.error(this.$i18nt("gd.https.uploadFail", "\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!") + ` ${r.message}`), this.excelImportData = [], this.loadData = [], this.excelData = [], this.excelFielData = {
|
|
486
|
+
excelName: "",
|
|
487
|
+
excelSize: ""
|
|
488
|
+
}, this.confirmLoading = !1;
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
this.getEntutityConfig(), this.confirmLoading = this.autoInputOver ? !1 : this.confirmLoading, this.fileId = r.data;
|
|
492
|
+
const c = document.getElementById("file");
|
|
493
|
+
c && c.remove();
|
|
494
|
+
});
|
|
495
|
+
},
|
|
496
|
+
(t) => {
|
|
497
|
+
this.confirmLoading = t.statu !== "rejected";
|
|
498
|
+
}
|
|
499
|
+
));
|
|
500
|
+
},
|
|
501
|
+
open() {
|
|
502
|
+
this.fullscreen = !1, this.visible = !0, this.serviceData = [], this.searchData(""), this.excelFielData = {
|
|
503
|
+
excelName: "",
|
|
504
|
+
excelSize: ""
|
|
505
|
+
}, this.excelImportData = [], this.fileId = "", this.ruleFormData = {
|
|
506
|
+
serviceConsultant: "",
|
|
507
|
+
entityValue: this.typeImport == 1 ? this.tableData.id : ""
|
|
508
|
+
}, this.$nextTick(() => {
|
|
509
|
+
setTimeout(() => {
|
|
510
|
+
this.$refs.ruleForm.resetFields();
|
|
511
|
+
}, 0);
|
|
512
|
+
});
|
|
513
|
+
},
|
|
514
|
+
searchData(t) {
|
|
515
|
+
this.loading = !0;
|
|
516
|
+
const e = this.serviceData.filter((i) => this.ruleFormData.serviceConsultant === i.id);
|
|
517
|
+
this.serviceData = [], k({
|
|
518
|
+
name: t,
|
|
519
|
+
fkEntityName: "sys_user"
|
|
520
|
+
}).then((i) => {
|
|
521
|
+
if (this.loading = !1, i.code === 200) {
|
|
522
|
+
const a = i.data.filter((s) => this.ruleFormData.serviceConsultant !== s.id);
|
|
523
|
+
this.serviceData = e.concat(a);
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
},
|
|
527
|
+
getLangs(t, e) {
|
|
528
|
+
const i = this.$i18n.messages;
|
|
529
|
+
let a = [
|
|
530
|
+
{
|
|
531
|
+
code: "default",
|
|
532
|
+
val: t.columncomment || t.name,
|
|
533
|
+
name: ""
|
|
534
|
+
}
|
|
535
|
+
];
|
|
536
|
+
for (let s in i)
|
|
537
|
+
a.push({
|
|
538
|
+
code: s,
|
|
539
|
+
val: this.$i18n.t(`Dynamics.${t.transkey}`, s),
|
|
540
|
+
name: ""
|
|
541
|
+
});
|
|
542
|
+
return a;
|
|
543
|
+
},
|
|
544
|
+
dictionarysP(t, e) {
|
|
545
|
+
if (!t.dicttypecode)
|
|
546
|
+
return [];
|
|
547
|
+
let i = t.dicttypecode, a = this.$options.filters.dictData(i), s = /* @__PURE__ */ new Map(), n = [], l = [];
|
|
548
|
+
return this.excelData.forEach((o) => {
|
|
549
|
+
s.has(o[e]) || (s.set(o[e], 1), (o[e] ? String(o[e]).split(",") : []).forEach((r) => {
|
|
550
|
+
l.filter((f) => f == r)[0] === void 0 && (l.push(r), n.push({
|
|
551
|
+
rawValue: r,
|
|
552
|
+
rawValued: r,
|
|
553
|
+
replaceValue: this.dictListFilter(a, r, t)
|
|
554
|
+
}));
|
|
555
|
+
}));
|
|
556
|
+
}), n;
|
|
557
|
+
},
|
|
558
|
+
dictListFilter(t, e, i) {
|
|
559
|
+
if (t.map((n) => (n.langs = this.getLangs(n, n.name), n)), i.effectType !== "checkbox") {
|
|
560
|
+
let n = this.hasDict(t, e);
|
|
561
|
+
return n === !1 ? null : String(n.code);
|
|
562
|
+
}
|
|
563
|
+
let a = e == null ? [] : e.split(","), s = [];
|
|
564
|
+
return a.forEach((n) => {
|
|
565
|
+
let l = this.hasDict(t, n);
|
|
566
|
+
l && s.push(String(l.code));
|
|
567
|
+
}), s.length == 0 ? null : s.join(",");
|
|
568
|
+
},
|
|
569
|
+
hasDict(t, e) {
|
|
570
|
+
t.forEach((s, n) => {
|
|
571
|
+
let l = s.langs.filter((o) => o.val == e)[0];
|
|
572
|
+
s.hasName = !!l;
|
|
573
|
+
});
|
|
574
|
+
let i = t.filter((s) => s.hasName);
|
|
575
|
+
if (i[0] === void 0)
|
|
576
|
+
return !1;
|
|
577
|
+
if (i.length == 1)
|
|
578
|
+
return i[0];
|
|
579
|
+
let a = i.filter((s) => !!s.langs.filter((l) => l.code == this.language)[0])[0];
|
|
580
|
+
return a || i[0];
|
|
581
|
+
},
|
|
582
|
+
hiatusAbout(t) {
|
|
583
|
+
return (t.abouts ? t.abouts : []).length == 0;
|
|
584
|
+
},
|
|
585
|
+
hiatusDict(t) {
|
|
586
|
+
return !!(t.dictionarys ? t.dictionarys : []).filter((a) => a.replaceValue === null)[0];
|
|
587
|
+
},
|
|
588
|
+
refresh(t = !0) {
|
|
589
|
+
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");
|
|
590
|
+
},
|
|
591
|
+
closed() {
|
|
592
|
+
this.fullscreen = !1, this.visible = !1;
|
|
593
|
+
},
|
|
594
|
+
toggleFullscreen() {
|
|
595
|
+
this.fullscreen = !this.fullscreen;
|
|
596
|
+
},
|
|
597
|
+
doEvent(t) {
|
|
598
|
+
const e = t.item.functionName, i = t.key ? t : t.item;
|
|
599
|
+
if (this[e] === void 0 && this.func === void 0) {
|
|
600
|
+
console.log("\u8BF7\u5B9A\u4E49 " + e + " \u65B9\u6CD5");
|
|
601
|
+
return;
|
|
602
|
+
}
|
|
603
|
+
this[e] && this[e](i);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
var F = function() {
|
|
608
|
+
var e = this, i = e._self._c;
|
|
609
|
+
return i("div", [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": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(a) {
|
|
610
|
+
e.visible = a;
|
|
611
|
+
}, closed: e.closed } }, [i("template", { slot: "title" }, [i("gd-modal-title", { attrs: { title: e.title, fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), i("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "import-container" }, [i("div", { staticClass: "excel-table" }, [e.visible ? i("gd-tables", { ref: "table", attrs: { dataSource: e.loadSoData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.columns, height: e.height, filtering: !1, initialLoading: !1, showPagination: !1, rowKey: "index", disabledRefresh: "", disabledColumnSettings: "" }, scopedSlots: e._u([{ key: "operator", fn: function() {
|
|
612
|
+
return [i("el-form", { ref: "ruleForm", attrs: { model: e.ruleFormData, "label-width": "130px", rules: e.rules }, nativeOn: { submit: function(a) {
|
|
613
|
+
a.preventDefault();
|
|
614
|
+
} } }, [i("el-row", { attrs: { gutter: 20 } }, [i("el-col", { attrs: { span: 8 } }, [i("el-form-item", { staticStyle: { "margin-bottom": "0 !important" }, attrs: { label: e.$i18nt("gd.xlsxImport.file", "\u6587\u4EF6"), "label-width": e.excelName ? "86px" : "130px" } }, [i("el-button", { attrs: { type: "primary", size: "mini" }, on: { click: e.checkFile } }, [e._v(" " + e._s(e.$i18nt("gd.xlsxImport.title", "\u5BFC\u5165")) + " ")]), i("span", { staticStyle: { "padding-left": "6px" } }, [e._v(e._s(e.excelName))])], 1)], 1), i("el-col", { attrs: { span: 8 } }, [i("el-form-item", { staticStyle: { "margin-bottom": "0 !important" }, attrs: { label: e.$i18nt("gd.xlsxImport.entityTable", "\u5B9E\u4F53\u8868"), prop: "entityValue" } }, [i("el-select", { ref: "refTable", staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", disabled: e.typeImport == 1 }, on: { change: e.handleSelect }, model: { value: e.ruleFormData.entityValue, callback: function(a) {
|
|
615
|
+
e.$set(e.ruleFormData, "entityValue", a);
|
|
616
|
+
}, expression: "ruleFormData.entityValue" } }, e._l(e.entityData, function(a) {
|
|
617
|
+
return i("el-option", { key: a.id, attrs: { label: e.$i18nt(`Dynamics.${a.transkey}`, a.busname), value: a.id } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.busname)) + " " + e._s(a.tablename) + " ")]);
|
|
618
|
+
}), 1)], 1)], 1), i("el-col", { attrs: { span: 8 } }, [i("el-form-item", { staticStyle: { "margin-bottom": "0 !important" }, attrs: { label: e.$i18nt("gd.xlsxImport.owner", "\u8BB0\u5F55\u8D1F\u8D23\u4EBA"), prop: "serviceConsultant" } }, [i("div", { staticClass: "cao_about" }, [i("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: e.loading, "reserve-keyword": "", filterable: "", remote: "", clearable: "", "remote-method": e.searchData, "collapse-tags": !0 }, model: { value: e.ruleFormData.serviceConsultant, callback: function(a) {
|
|
619
|
+
e.$set(e.ruleFormData, "serviceConsultant", a);
|
|
620
|
+
}, expression: "ruleFormData.serviceConsultant" } }, e._l(e.serviceData, function(a) {
|
|
621
|
+
return i("el-option", { key: a.id, attrs: { label: a.name, value: a.id } });
|
|
622
|
+
}), 1), i("div", { staticClass: "cao_setting", on: { click: e.lookup } }, [i("i", { staticClass: "el-input__icon el-icon-search" })])], 1)])], 1)], 1)], 1)];
|
|
623
|
+
}, proxy: !0 }, { key: "checkzd", fn: function({ column: a, row: s }) {
|
|
624
|
+
return [i("div", { staticClass: "flex-between", class: s.checkzd === 0 ? "flex-between-ignore" : "" }, [i("el-select", { style: (e.record.fieIdType === 2 || e.record.fieIdType === 3 || e.record.fieIdType === 5 || e.record.fieIdType === 6 || e.record.fieIdType === 7, "width:70%"), attrs: { placeholder: e.$i18nt("gd.xlsxImport.mapFieldsTip", "\u8BF7\u9009\u62E9\u6620\u5C04\u5B57\u6BB5"), filterable: "" }, on: { change: function(n) {
|
|
625
|
+
return e.handleChangeZd(n, s);
|
|
626
|
+
} }, model: { value: s.checkzd, callback: function(n) {
|
|
627
|
+
e.$set(s, "checkzd", n);
|
|
628
|
+
}, expression: "row.checkzd" } }, [e._l(e.configData, function(n) {
|
|
629
|
+
return i("el-option", { key: n.id, attrs: { label: e.$i18nt(`Dynamics.${n.transkey}`, n.columncomment), value: n.id } }, [i("EffectTypeIcon", { attrs: { effectType: n.effecttype } }), e._v(" " + e._s(e.$i18nt(`Dynamics.${n.transkey}`, n.columncomment)) + " (" + e._s(n.columnname) + ") ")], 1);
|
|
630
|
+
}), i("el-option", { attrs: { label: e.$i18nt("gd.placeholder.ignore", "\u5FFD\u7565"), value: 0 } }, [i("span", { staticStyle: { color: "#faad14" } }, [e._v(" " + e._s(e.$i18nt("gd.placeholder.ignore", "\u5FFD\u7565")) + " ")])])], 2), s.fieIdType === 2 || s.fieIdType === 7 ? [e.hiatusDict(s, s.index) ? i("i", { staticClass: "el-icon-info", staticStyle: { color: "#1890ff", "font-size": "17px", margin: "0 6px" } }) : e._e(), i("el-button", { staticStyle: { padding: "4px 9px", margin: "0 6px" }, attrs: { type: "primary", icon: "el-icon-edit" }, on: { click: function(n) {
|
|
631
|
+
return e.editColumn(s);
|
|
632
|
+
} } })] : e._e(), s.fieIdType === 3 ? [s.fkFilid ? e._e() : i("i", { staticClass: "el-icon-warning", staticStyle: { color: "#faad14", "font-size": "17px", margin: "0 6px" } }), i("el-button", { staticStyle: { padding: "4px 9px", margin: "0 6px" }, attrs: { type: "primary", icon: "el-icon-edit" }, on: { click: function(n) {
|
|
633
|
+
return e.editColumn(s);
|
|
634
|
+
} } })] : e._e(), s.fieIdType === 5 || s.fieIdType === 6 ? [e.hiatusAbout(s) ? i("i", { staticClass: "el-icon-warning", staticStyle: { color: "#faad14", "font-size": "17px", margin: "0 6px" } }) : e._e(), i("el-button", { staticStyle: { padding: "4px 9px", margin: "0 6px" }, attrs: { type: "primary", icon: "el-icon-edit" }, on: { click: function(n) {
|
|
635
|
+
return e.editColumn(s);
|
|
636
|
+
} } })] : e._e()], 2)];
|
|
637
|
+
} }], null, !1, 557144359) }) : e._e(), i("div", { staticClass: "description" }, [i("div", { staticClass: "l" }, [e._v(" " + e._s(e.$i18nt("gd.xlsxImport.iconDescription", "\u56FE\u6807\u8BF4\u660E")) + " ")]), i("div", { staticClass: "r" }, [i("div", { staticClass: "icon-explain" }, [i("i", { staticClass: "el-icon-info", staticStyle: { color: "#1890ff", "font-size": "16px", margin: "0 2px" } }), i("div", [e._v(" " + e._s(e.$i18nt("gd.icon.info", "\u6B64\u56FE\u6807\u4E3A\u4FE1\u606F\u7F3A\u5931\u6216\u7F3A\u5C11\u63D0\u793A\uFF0C\u53EF\u5FFD\u7565\uFF1B")) + " ")]), i("i", { staticClass: "el-icon-warning", staticStyle: { color: "#faad14", "font-size": "16px", margin: "0 2px" } }), i("div", [e._v(" " + e._s(e.$i18nt("gd.icon.err", "\u6B64\u56FE\u6807\u4E3A\u8B66\u544A\u63D0\u793A\uFF0C\u9700\u7528\u6237\u91CD\u65B0\u64CD\u4F5C\u3002")) + " ")])])])])], 1)])], 2), i("FieldMapping", { ref: "fieldMapping", attrs: { configData: e.configData }, on: { ok: e.okFieldMapping } }), i("gd-search", { ref: "viewSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: e.lookupSeled } })], 1);
|
|
638
|
+
}, S = [], C = /* @__PURE__ */ u(
|
|
639
|
+
I,
|
|
640
|
+
F,
|
|
641
|
+
S,
|
|
642
|
+
!1,
|
|
643
|
+
null,
|
|
644
|
+
"84c085d5",
|
|
645
|
+
null,
|
|
646
|
+
null
|
|
647
|
+
);
|
|
648
|
+
const L = C.exports, M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
649
|
+
__proto__: null,
|
|
650
|
+
default: L
|
|
651
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
652
|
+
const w = {
|
|
653
|
+
props: {
|
|
654
|
+
configData: {
|
|
655
|
+
type: Array,
|
|
656
|
+
default: () => []
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
components: { EffectTypeIcon: g },
|
|
660
|
+
data() {
|
|
661
|
+
return {
|
|
662
|
+
buttons: [
|
|
663
|
+
{
|
|
664
|
+
displayName: "\u786E\u5B9A",
|
|
665
|
+
functionName: "handleSubmit",
|
|
666
|
+
show: !0,
|
|
667
|
+
transKey: "gd.btn.confirm",
|
|
668
|
+
icon: "el-icon-document-checked"
|
|
669
|
+
}
|
|
670
|
+
],
|
|
671
|
+
record: {},
|
|
672
|
+
visible: !1,
|
|
673
|
+
confirmLoading: !1,
|
|
674
|
+
fullscreen: !1,
|
|
675
|
+
width: "800px",
|
|
676
|
+
record: {},
|
|
677
|
+
columns: [
|
|
678
|
+
{
|
|
679
|
+
type: "selection-radio",
|
|
680
|
+
width: "60",
|
|
681
|
+
fixed: !0,
|
|
682
|
+
fieIdType: [3, 5, 6]
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
transKey: "gd.xlsxImport.field",
|
|
686
|
+
prop: "columnComment",
|
|
687
|
+
label: "\u5B57\u6BB5",
|
|
688
|
+
align: "left",
|
|
689
|
+
type: "slot",
|
|
690
|
+
slotType: "columnComment",
|
|
691
|
+
fieIdType: [3]
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
transKey: "gd.xlsxImport.type",
|
|
695
|
+
prop: "effectType",
|
|
696
|
+
label: "\u5B57\u6BB5\u7C7B\u578B",
|
|
697
|
+
align: "left",
|
|
698
|
+
type: "slot",
|
|
699
|
+
slotType: "effectType",
|
|
700
|
+
fieIdType: [3]
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
transKey: "gd.xlsxImport.importValues",
|
|
704
|
+
prop: "rawValued",
|
|
705
|
+
label: "\u5BFC\u5165\u503C",
|
|
706
|
+
align: "left",
|
|
707
|
+
fieIdType: [2, 7]
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
transKey: "gd.xlsxImport.systemOptions",
|
|
711
|
+
prop: "replaceValue",
|
|
712
|
+
label: "\u7CFB\u7EDF\u9009\u9879",
|
|
713
|
+
align: "left",
|
|
714
|
+
type: "slot",
|
|
715
|
+
slotType: "replaceValue",
|
|
716
|
+
fieIdType: [2, 7]
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
transKey: "gd.xlsxImport.associatedTable",
|
|
720
|
+
prop: "busName",
|
|
721
|
+
label: "\u5173\u8054\u8868\u540D",
|
|
722
|
+
align: "left",
|
|
723
|
+
type: "slot",
|
|
724
|
+
slotType: "busName",
|
|
725
|
+
fieIdType: [5, 6]
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
transKey: "gd.xlsxImport.lookUpField",
|
|
729
|
+
prop: "columnSlots",
|
|
730
|
+
label: "\u67E5\u627E\u5B57\u6BB5",
|
|
731
|
+
align: "left",
|
|
732
|
+
type: "slot",
|
|
733
|
+
slotType: "columnSlots",
|
|
734
|
+
fieIdType: [5, 6],
|
|
735
|
+
showTooltip: !1
|
|
736
|
+
}
|
|
737
|
+
],
|
|
738
|
+
selectedRowKeys: [],
|
|
739
|
+
selectedRows: [],
|
|
740
|
+
loadSoData: (t) => new Promise((e, i) => {
|
|
741
|
+
e({ pageNo: 1, pageSize: 200, totalRows: 0, rows: this.loadData });
|
|
742
|
+
}),
|
|
743
|
+
loadData: [],
|
|
744
|
+
dictList: []
|
|
745
|
+
};
|
|
746
|
+
},
|
|
747
|
+
computed: {
|
|
748
|
+
rowKey() {
|
|
749
|
+
return this.record.fieIdType === 2 || this.record.fieIdType === 7 ? "index" : this.record.fieIdType === 5 || this.record.fieIdType === 6 ? "tablename" : "columnname";
|
|
750
|
+
},
|
|
751
|
+
getColumns() {
|
|
752
|
+
return this.columns.filter((t) => t.fieIdType.includes(this.record.fieIdType));
|
|
753
|
+
},
|
|
754
|
+
title() {
|
|
755
|
+
return this.record.fieIdType === 2 || this.record.fieIdType === 7 ? this.$i18nt("gd.xlsxImport.dictMapping", "\u5B57\u5178\u6620\u5C04") : this.record.fieIdType === 5 || this.record.fieIdType === 6 ? this.$i18nt("gd.xlsxImport.associatedFieldsTip", "\u9009\u62E9\u5173\u8054\u5B57\u6BB5:") + ` (${this.record.aboutName})` : this.$i18nt("gd.xlsxImport.foreignTable", "\u5916\u952E\u8868:") + ` (${this.record.fkEntityName})`;
|
|
756
|
+
},
|
|
757
|
+
height() {
|
|
758
|
+
return this.screenHeight - (this.fullscreen ? 130 : 290);
|
|
759
|
+
},
|
|
760
|
+
...h(["screenHeight", "tableLists", "tableSize", "tablePageSize"])
|
|
761
|
+
},
|
|
762
|
+
methods: {
|
|
763
|
+
fkSearch(t, e) {
|
|
764
|
+
(t && t.configList ? t.configList : []).length > 0 || this.sysCodeGenerateConfigList(t.id).then((a) => {
|
|
765
|
+
if (a.code === 200) {
|
|
766
|
+
const s = a.data.filter((n) => n.columnname === "name")[0];
|
|
767
|
+
t.configList = [...a.data], this.$nextTick(() => {
|
|
768
|
+
setTimeout(() => {
|
|
769
|
+
t.aboutField = s ? s.columnname : a.data[0].columnname;
|
|
770
|
+
}, 0);
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
});
|
|
774
|
+
},
|
|
775
|
+
handleSubmit() {
|
|
776
|
+
if (this.loadData.filter((e) => this.selectedRowKeys.includes(e[this.rowKey]))[0] === void 0 && this.rowKey !== "index") {
|
|
777
|
+
this.$message.error(this.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
|
|
778
|
+
return;
|
|
779
|
+
}
|
|
780
|
+
this.$emit("ok", {
|
|
781
|
+
loadData: this.loadData,
|
|
782
|
+
data: this.record,
|
|
783
|
+
selectedRowKeys: this.selectedRowKeys
|
|
784
|
+
}), this.closed();
|
|
785
|
+
},
|
|
786
|
+
getAboutListByEntity() {
|
|
787
|
+
return D({
|
|
788
|
+
entityName: this.record.fkEntityName
|
|
789
|
+
}).then((t) => {
|
|
790
|
+
if (t.code === 200) {
|
|
791
|
+
let e = [], i = this.record.abouts ? this.record.abouts : [];
|
|
792
|
+
i.forEach((s) => {
|
|
793
|
+
e.push(s.aboutTable);
|
|
794
|
+
});
|
|
795
|
+
let a = t.data;
|
|
796
|
+
a.forEach((s, n) => {
|
|
797
|
+
let l = i.filter((o) => o.aboutTable == s.tablename)[0];
|
|
798
|
+
a[n].aboutField = l ? l.aboutField : "", a[n].enabled = !!l, a[n].configList = l ? l.configList : [];
|
|
799
|
+
}), this.loadData = [...a];
|
|
800
|
+
}
|
|
801
|
+
return t;
|
|
802
|
+
});
|
|
803
|
+
},
|
|
804
|
+
sysCodeGenerateConfigList(t) {
|
|
805
|
+
return m({
|
|
806
|
+
codeGenId: t
|
|
807
|
+
}).then((e) => e);
|
|
808
|
+
},
|
|
809
|
+
getAboutInit() {
|
|
810
|
+
this.confirmLoading = !0;
|
|
811
|
+
let t = this.record.fkEntityName.split(","), e = this.tableLists.filter((i) => i.tablename === t[0])[0];
|
|
812
|
+
Promise.all([this.getAboutListByEntity(), this.sysCodeGenerateConfigList(e.id)]).then((i) => {
|
|
813
|
+
this.confirmLoading = !1;
|
|
814
|
+
let a = i[1];
|
|
815
|
+
if (a.code === 200) {
|
|
816
|
+
const s = a.data.filter((l) => l.columnname === "name")[0];
|
|
817
|
+
let n = [...this.loadData];
|
|
818
|
+
n.forEach((l, o) => {
|
|
819
|
+
l.tablename === e.tablename && (n[o].configList = a.data, n[o].aboutField = s ? s.columnname : a.data[0].columnname);
|
|
820
|
+
}), this.loadData = [...n], this.selectedRowKeys = this.selectedRowKeys.length === 0 ? [e.tableName] : this.selectedRowKeys;
|
|
821
|
+
}
|
|
822
|
+
this.$nextTick(() => {
|
|
823
|
+
setTimeout(() => {
|
|
824
|
+
this.refresh();
|
|
825
|
+
}, 0);
|
|
826
|
+
});
|
|
827
|
+
});
|
|
828
|
+
},
|
|
829
|
+
openFk(t) {
|
|
830
|
+
this.record = JSON.parse(JSON.stringify(t)), this.fullscreen = !1, this.visible = !0;
|
|
831
|
+
},
|
|
832
|
+
open(t) {
|
|
833
|
+
this.record = JSON.parse(JSON.stringify(t)), this.fullscreen = !1, this.visible = !0;
|
|
834
|
+
let e = !0;
|
|
835
|
+
if ([2, 7].includes(t.fieIdType)) {
|
|
836
|
+
let i = this.configData.filter((a) => a.id == t.checkzd)[0];
|
|
837
|
+
this.dictList = i.dicttypecode ? this.$options.filters.dictData(i.dicttypecode) : [], this.loadData = [...t.dictionarys];
|
|
838
|
+
} else if ([3].includes(t.fieIdType))
|
|
839
|
+
this.loadData = [...t.fkData], this.selectedRowKeys = t.fkFilid ? [t.fkFilid] : [];
|
|
840
|
+
else if ([5, 6].includes(t.fieIdType)) {
|
|
841
|
+
e = t.fkData.length === 0 ? !1 : e;
|
|
842
|
+
let i = t.abouts && t.abouts.length > 0 ? t.abouts : [], a = [];
|
|
843
|
+
i.forEach((s) => {
|
|
844
|
+
a.push(s.aboutTable);
|
|
845
|
+
}), this.selectedRowKeys = a, this.loadData = [...t.fkData], !e && this.getAboutInit();
|
|
846
|
+
}
|
|
847
|
+
this.$nextTick(() => {
|
|
848
|
+
setTimeout(() => {
|
|
849
|
+
e && this.refresh();
|
|
850
|
+
}, 0);
|
|
851
|
+
});
|
|
852
|
+
},
|
|
853
|
+
closed() {
|
|
854
|
+
this.fullscreen = !1, this.visible = !1;
|
|
855
|
+
},
|
|
856
|
+
toggleFullscreen() {
|
|
857
|
+
this.fullscreen = !this.fullscreen;
|
|
858
|
+
},
|
|
859
|
+
onSelectChange(t, e) {
|
|
860
|
+
if (this.selectedRowKeys = t, this.selectedRows = e, this.rowKey !== "tablename")
|
|
861
|
+
return;
|
|
862
|
+
let i = this.$refs.table.tableData, a = {};
|
|
863
|
+
i.forEach((s, n) => {
|
|
864
|
+
s.tablename === t[0] && (a = {
|
|
865
|
+
ind: n,
|
|
866
|
+
data: s
|
|
867
|
+
});
|
|
868
|
+
}), a.data && this.fkSearch(a.data, a.ind);
|
|
869
|
+
},
|
|
870
|
+
refresh(t = !0) {
|
|
871
|
+
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");
|
|
872
|
+
},
|
|
873
|
+
doEvent(t) {
|
|
874
|
+
const e = t.item.functionName;
|
|
875
|
+
this[e] && this[e]();
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
};
|
|
879
|
+
var N = function() {
|
|
880
|
+
var e = this, i = e._self._c;
|
|
881
|
+
return 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": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(a) {
|
|
882
|
+
e.visible = a;
|
|
883
|
+
}, closed: e.closed } }, [i("template", { slot: "title" }, [i("gd-modal-title", { attrs: { title: e.title, fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), e.visible ? i("div", [i("gd-tables", { ref: "table", attrs: { dataSource: e.loadSoData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.getColumns, filtering: !1, height: e.height, initialLoading: !1, showPagination: !1, rowKey: e.rowKey, selectedKeep: !0, disabledRefresh: "", disabledColumnSettings: "", selectedRowKeys: e.selectedRowKeys }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "replaceValue", fn: function({ column: a, row: s }) {
|
|
884
|
+
return [i("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.xlsxImport.mapFieldsTip", "\u8BF7\u9009\u62E9\u6620\u5C04\u5B57\u6BB5") }, model: { value: s.replaceValue, callback: function(n) {
|
|
885
|
+
e.$set(s, "replaceValue", n);
|
|
886
|
+
}, expression: "row.replaceValue" } }, [e._l(e.dictList, function(n) {
|
|
887
|
+
return i("el-option", { key: n.code, attrs: { label: e.$i18nt(`Dynamics.${n.transkey}`, n.name), value: n.code } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${n.transkey}`, n.name)) + " ")]);
|
|
888
|
+
}), i("el-option", { attrs: { label: e.$i18nt("gd.placeholder.ignore", "\u5FFD\u7565"), value: "@-1" } }, [i("span", { staticStyle: { color: "#faad14" } }, [e._v(" " + e._s(e.$i18nt("gd.placeholder.ignore", "\u5FFD\u7565")) + " ")])])], 2)];
|
|
889
|
+
} }, { key: "columnComment", fn: function({ column: a, row: s }) {
|
|
890
|
+
return [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " ")];
|
|
891
|
+
} }, { key: "effectType", fn: function({ column: a, row: s }) {
|
|
892
|
+
return [e._v(" " + e._s(e._f("dictType")("code_gen_effect_type", s.effecttype)) + " ")];
|
|
893
|
+
} }, { key: "busName", fn: function({ column: a, row: s }) {
|
|
894
|
+
return [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.busname)) + " " + e._s(s.tablename) + " ")];
|
|
895
|
+
} }, { key: "columnSlots", fn: function({ column: a, row: s, index: n }) {
|
|
896
|
+
return [i("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.xlsxImport.lookUpFieldTip", "\u8BF7\u9009\u62E9\u67E5\u627E\u5B57\u6BB5"), filterable: "" }, on: { focus: function(l) {
|
|
897
|
+
return e.fkSearch(s, n);
|
|
898
|
+
} }, model: { value: s.aboutField, callback: function(l) {
|
|
899
|
+
e.$set(s, "aboutField", l);
|
|
900
|
+
}, expression: "row.aboutField" } }, [e._l(s.configList, function(l) {
|
|
901
|
+
return [i("el-option", { attrs: { label: e.$i18nt(`Dynamics.${l.transkey}`, l.columncomment), value: l.columnname } }, [i("EffectTypeIcon", { attrs: { effectType: l.effecttype } }), e._v(" " + e._s(e.$i18nt(`Dynamics.${l.transkey}`, l.columncomment)) + " (" + e._s(l.columnname) + ") ")], 1)];
|
|
902
|
+
})], 2)];
|
|
903
|
+
} }], null, !1, 1203945507) })], 1) : e._e()], 2);
|
|
904
|
+
}, z = [], E = /* @__PURE__ */ u(
|
|
905
|
+
w,
|
|
906
|
+
N,
|
|
907
|
+
z,
|
|
908
|
+
!1,
|
|
909
|
+
null,
|
|
910
|
+
"3d5059a2",
|
|
911
|
+
null,
|
|
912
|
+
null
|
|
913
|
+
);
|
|
914
|
+
const O = E.exports, K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
915
|
+
__proto__: null,
|
|
916
|
+
default: O
|
|
917
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
918
|
+
export {
|
|
919
|
+
g as E,
|
|
920
|
+
v as e,
|
|
921
|
+
M as m
|
|
922
|
+
};
|