gds-plus-design-vue 1.2.63 → 1.2.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/addPermission.e559c495.js +1 -0
- package/lib/{addPermission.9fc97a47.mjs → addPermission.f2eb7564.mjs} +127 -105
- package/lib/approvalModel.2b97fdf8.js +1 -0
- package/lib/{approvalModel.51d07afe.mjs → approvalModel.7b3cb5c5.mjs} +7 -7
- package/lib/attribute.4f814780.mjs +367 -0
- package/lib/attribute.7b4971f5.js +1 -0
- package/lib/businessRules.4f7349f3.js +1 -0
- package/lib/{businessRules.db6ba874.mjs → businessRules.7ca458f8.mjs} +191 -190
- package/lib/buttonRule.4aa9cfd8.mjs +396 -0
- package/lib/buttonRule.ba9528ab.js +1 -0
- package/lib/chartDisplayRules.25489412.js +1 -0
- package/lib/chartDisplayRules.63e53aa7.mjs +288 -0
- package/lib/components.chartbi.13a8a7b5.js +8 -0
- package/lib/components.chartbi.7356b244.mjs +1813 -0
- package/lib/{components.coloreditor.044983d2.mjs → components.coloreditor.20f8b336.mjs} +2 -2
- package/lib/{components.coloreditor.779a9419.js → components.coloreditor.8afc4731.js} +1 -1
- package/lib/{components.dataassign.1853ed5c.js → components.dataassign.59a87bfd.js} +1 -1
- package/lib/{components.dataassign.56632583.mjs → components.dataassign.e398cc99.mjs} +3 -3
- package/lib/{components.echarts.10d3ffe2.mjs → components.echarts.17e42353.mjs} +416 -399
- package/lib/components.echarts.5dea23f6.js +4 -0
- package/lib/{components.exception.cc2f4ca3.mjs → components.exception.8689aba2.mjs} +1 -1
- package/lib/{components.exception.3cc33e29.js → components.exception.b4ddeaba.js} +1 -1
- package/lib/{components.form.91d5ed3e.js → components.form.14ed3374.js} +19 -19
- package/lib/{components.form.3344c817.mjs → components.form.8047a9c3.mjs} +1118 -1090
- package/lib/{components.globalheader.07a90c4b.js → components.globalheader.5418b5ec.js} +1 -1
- package/lib/{components.globalheader.43fafa8c.mjs → components.globalheader.bc91e6fe.mjs} +3 -3
- package/lib/components.iconselector.4b5b7901.js +1 -0
- package/lib/{components.iconselector.8caabeaa.mjs → components.iconselector.d2d970ba.mjs} +7 -3
- package/lib/{components.imgpreview.57290b54.mjs → components.imgpreview.0563c338.mjs} +4 -4
- package/lib/{components.imgpreview.86bf7971.js → components.imgpreview.5fe318f7.js} +1 -1
- package/lib/{components.lunccalendar.f6765c94.mjs → components.lunccalendar.9a41ea40.mjs} +1 -1
- package/lib/{components.lunccalendar.76159d2e.js → components.lunccalendar.f18b2da3.js} +1 -1
- package/lib/{components.middleware.457b1182.mjs → components.middleware.24511f17.mjs} +5 -4
- package/lib/components.middleware.64b6a988.js +1 -0
- package/lib/{components.modaltitle.ae92f96c.mjs → components.modaltitle.4f454200.mjs} +1 -1
- package/lib/{components.modaltitle.e0b34fcb.js → components.modaltitle.d7ef34cb.js} +1 -1
- package/lib/{components.multitab.8441aa6b.mjs → components.multitab.15b91668.mjs} +1 -1
- package/lib/{components.multitab.82fd0544.js → components.multitab.92eb4b1e.js} +1 -1
- package/lib/{components.selecttree.85d940a9.mjs → components.selecttree.c615fe3e.mjs} +1 -1
- package/lib/{components.selecttree.d710a362.js → components.selecttree.ce4fbb44.js} +1 -1
- package/lib/{components.settingdrawer.779f6715.js → components.settingdrawer.4581f5b1.js} +1 -1
- package/lib/{components.settingdrawer.a6693034.mjs → components.settingdrawer.bdd68e73.mjs} +21 -21
- package/lib/{components.sidemenu.725677e3.mjs → components.sidemenu.c40eee2e.mjs} +2 -2
- package/lib/{components.sidemenu.80e46c2d.js → components.sidemenu.cd6d0301.js} +1 -1
- package/lib/components.sidenavmenu.1f0bbfca.js +1 -0
- package/lib/{components.sidenavmenu.23b8edce.mjs → components.sidenavmenu.47d7f44a.mjs} +448 -632
- package/lib/{components.statuschange.ed1218a4.js → components.statuschange.190f14ff.js} +1 -1
- package/lib/{components.statuschange.15938660.mjs → components.statuschange.85956695.mjs} +3 -3
- package/lib/{components.table.e3e5e3bc.mjs → components.table.389ab22a.mjs} +331 -316
- package/lib/{components.table.17c02054.js → components.table.d016f609.js} +3 -3
- package/lib/{components.tableumy.2f5dfa12.mjs → components.tableumy.750ec792.mjs} +7 -4
- package/lib/components.tableumy.aa73378d.js +1 -0
- package/lib/components.tablevirtual.879ff28f.js +1 -0
- package/lib/{components.tablevirtual.ba03746e.mjs → components.tablevirtual.9bf87b78.mjs} +7 -4
- package/lib/{components.teamsharing.fb4351ec.mjs → components.teamsharing.b9f112cf.mjs} +3 -3
- package/lib/{components.teamsharing.05503821.js → components.teamsharing.efe58448.js} +1 -1
- package/lib/{components.tooltip.950dc77b.mjs → components.tooltip.065f3dee.mjs} +1 -1
- package/lib/{components.tooltip.a05d8dd1.js → components.tooltip.edf8e4ca.js} +1 -1
- package/lib/{components.uploadfile.10f6cb2a.mjs → components.uploadfile.0439b870.mjs} +2 -2
- package/lib/{components.uploadfile.5a9b6cc1.js → components.uploadfile.586aca36.js} +1 -1
- package/lib/{components.uploadimg.cce7452a.js → components.uploadimg.2324089d.js} +1 -1
- package/lib/{components.uploadimg.f4fe4e77.mjs → components.uploadimg.5f2194ff.mjs} +2 -2
- package/lib/{components.verificationcode.d1946db4.js → components.verificationcode.863ff11e.js} +1 -1
- package/lib/{components.verificationcode.afb9aa1a.mjs → components.verificationcode.d8893ff6.mjs} +1 -1
- package/lib/{components.viewformdetails.f362d69e.mjs → components.viewformdetails.1236a66e.mjs} +94 -61
- package/lib/components.viewformdetails.328c8642.js +1 -0
- package/lib/{components.viewloading.ea40b244.mjs → components.viewloading.5761b277.mjs} +54 -51
- package/lib/components.viewloading.5b9c8fee.js +1 -0
- package/lib/{components.watermark.da3d7220.js → components.watermark.af8b5718.js} +1 -1
- package/lib/{components.watermark.1ffc66e0.mjs → components.watermark.d3638d63.mjs} +1 -1
- package/lib/{components.xlsxexport.f5ace2cd.js → components.xlsxexport.8c121797.js} +1 -1
- package/lib/{components.xlsxexport.d98572f8.mjs → components.xlsxexport.a1b7b087.mjs} +4 -4
- package/lib/components.xlsximport.c53c50f6.js +1 -0
- package/lib/{components.xlsximport.cffa88fe.mjs → components.xlsximport.d39bfeaa.mjs} +541 -532
- package/lib/copy.3b06d60f.mjs +572 -0
- package/lib/copy.fa2fcb22.js +1 -0
- package/lib/createFile.526dd6db.js +1 -0
- package/lib/createFile.c8d65b52.mjs +439 -0
- package/lib/createSubfolders.51df8fcd.js +1 -0
- package/lib/{createSubfolders.d35b97e9.mjs → createSubfolders.f8cad77f.mjs} +7 -7
- package/lib/{dialogLayout.c4bc3b55.mjs → dialogLayout.539feafb.mjs} +2 -2
- package/lib/{dialogLayout.08823bb7.js → dialogLayout.621a3d40.js} +1 -1
- package/lib/drawerContainer.790b0ee6.mjs +163 -0
- package/lib/drawerContainer.c971d22d.js +1 -0
- package/lib/{drawerLayout.36cf4d05.js → drawerLayout.accd44be.js} +1 -1
- package/lib/{drawerLayout.fb60950f.mjs → drawerLayout.c52b8374.mjs} +2 -2
- package/lib/editForm.83d10fae.mjs +434 -0
- package/lib/editForm.e284e5ec.js +1 -0
- package/lib/extendedAttributes.bfff1926.js +1 -0
- package/lib/extendedAttributes.e6b11c68.mjs +293 -0
- package/lib/{fileSearch.86c356fe.mjs → fileSearch.423b64a3.mjs} +140 -115
- package/lib/fileSearch.e849491c.js +1 -0
- package/lib/{flow.designer.6da03949.mjs → flow.designer.5feba43c.mjs} +3184 -3197
- package/lib/flow.designer.85d0054b.js +1 -0
- package/lib/{flow.list.03694808.mjs → flow.list.82131d80.mjs} +234 -232
- package/lib/flow.list.e001d91a.js +1 -0
- package/lib/form.build.19f0c882.js +1 -0
- package/lib/{form.build.b768d613.mjs → form.build.33cc213e.mjs} +22 -14
- package/lib/form.designer.build.2bcc355d.js +1 -0
- package/lib/form.designer.build.7dc12e87.mjs +2529 -0
- package/lib/formFiled.40284ed9.js +1 -0
- package/lib/{formFiled.fe7d9df3.mjs → formFiled.5a1c8f7f.mjs} +15 -13
- package/lib/gd-initial.js +1 -1
- package/lib/gd-initial.mjs +231 -207
- package/lib/{http.appmanage.4554a629.mjs → http.appmanage.e389782d.mjs} +3 -3
- package/lib/{http.codegeneratemanage.2f925b10.mjs → http.codegeneratemanage.b123bab3.mjs} +19 -11
- package/lib/{http.codegeneratemanage.aecadd5d.js → http.codegeneratemanage.e3db2f09.js} +1 -1
- package/lib/{http.dictdatamanage.4baf16c0.mjs → http.dictdatamanage.2583b5ae.mjs} +4 -4
- package/lib/{http.dictmanage.77c69971.mjs → http.dictmanage.d8fe18dc.mjs} +4 -4
- package/lib/{http.duplicatechecking.31964ce7.mjs → http.duplicatechecking.9b79ce21.mjs} +3 -3
- package/lib/http.filedocument.6fdfc693.js +1 -0
- package/lib/http.filedocument.8fa3fe2d.mjs +293 -0
- package/lib/{http.main.40657f51.mjs → http.main.aefea27d.mjs} +17 -17
- package/lib/{http.menumanage.3240ba0d.mjs → http.menumanage.3060f4c7.mjs} +5 -5
- package/lib/{http.message.5004bf60.mjs → http.message.ceb0a1c6.mjs} +19 -19
- package/lib/{http.noticemanage.e03bd5f3.mjs → http.noticemanage.2cdb23b8.mjs} +7 -7
- package/lib/{http.orgmanage.84e43edb.mjs → http.orgmanage.0b1df8d5.mjs} +2 -2
- package/lib/{http.pluginmanage.6bc6197f.mjs → http.pluginmanage.54720675.mjs} +7 -7
- package/lib/{http.promptmanagement.c7912f6c.mjs → http.promptmanagement.dad4c6a7.mjs} +3 -3
- package/lib/http.rolemanage.4d1101dd.js +1 -0
- package/lib/{http.rolemanage.dbf3fda1.mjs → http.rolemanage.da5c40e9.mjs} +51 -19
- package/lib/{http.solution.175d36c8.mjs → http.solution.b10d9197.mjs} +4 -4
- package/lib/{http.sumberrules.608a06d6.mjs → http.sumberrules.176d3d06.mjs} +4 -4
- package/lib/{http.sysapps.e294ceaf.mjs → http.sysapps.932ba43b.mjs} +4 -4
- package/lib/{http.tabledevelopment.1d370398.mjs → http.tabledevelopment.3dcb3e97.mjs} +40 -40
- package/lib/{http.team.c8487c0b.mjs → http.team.a9c609d5.mjs} +11 -11
- package/lib/{http.timersmanage.01dbc1a2.mjs → http.timersmanage.c79afb66.mjs} +18 -18
- package/lib/{http.translationmanage.a4640c9a.mjs → http.translationmanage.f8694b51.mjs} +11 -11
- package/lib/{http.useraffiliation.840741ed.mjs → http.useraffiliation.f2a29f92.mjs} +10 -10
- package/lib/{http.usermanage.3e5eff33.mjs → http.usermanage.f5491144.mjs} +16 -16
- package/lib/{http.webresource.5158b431.mjs → http.webresource.1a1a768f.mjs} +4 -4
- package/lib/index.07adebf0.js +8 -0
- package/lib/index.340d6f00.mjs +25906 -0
- package/lib/layoutBlocks.756e4b57.js +1 -0
- package/lib/layoutBlocks.816b49a7.mjs +413 -0
- package/lib/layoutItem.051495bc.mjs +71 -0
- package/lib/layoutItem.6f6017a5.js +1 -0
- package/lib/{layouts.051a0bba.mjs → layouts.1852e8e4.mjs} +19 -22
- package/lib/{layouts.a6a36612.js → layouts.2030bf01.js} +2 -2
- package/lib/main.0dc447c8.js +1 -0
- package/lib/main.12118407.mjs +552 -0
- package/lib/main.1551de4d.js +1 -0
- package/lib/main.1611bb43.js +1 -0
- package/lib/{main.70357352.mjs → main.26d3511c.mjs} +6 -6
- package/lib/{main.7f44e3bf.mjs → main.2f9312bb.mjs} +40 -50
- package/lib/main.316ac1b8.js +1 -0
- package/lib/main.48dc325f.mjs +231 -0
- package/lib/main.54ac9faa.mjs +189 -0
- package/lib/main.69a2b457.mjs +166 -0
- package/lib/{main.ad1e8d4d.js → main.6df74fe7.js} +1 -1
- package/lib/main.72c15ab0.js +1 -0
- package/lib/{main.8a2a590d.js → main.736883a9.js} +1 -1
- package/lib/main.9b2769b1.js +1 -0
- package/lib/main.b2314767.mjs +323 -0
- package/lib/{main.c1df94d8.mjs → main.ca46939e.mjs} +2 -2
- package/lib/main.e1cf9798.js +1 -0
- package/lib/{main.b0e5e1b0.mjs → main.efc8dc7b.mjs} +2 -2
- package/lib/main.fc38c7c8.mjs +537 -0
- package/lib/main.fcb67463.js +1 -0
- package/lib/{manage.a1df9b88.mjs → manage.1bc511ff.mjs} +162 -140
- package/lib/manage.eb0a6c8c.js +1 -0
- package/lib/messages.fieldconfiguration.092bb027.js +1 -0
- package/lib/messages.fieldconfiguration.7fd9ceb0.mjs +1097 -0
- package/lib/messages.messagetemplate.0935e5a3.mjs +1319 -0
- package/lib/messages.messagetemplate.50334e5f.js +7 -0
- package/lib/messages.sendplan.60929f46.js +1 -0
- package/lib/messages.sendplan.61edcc7f.mjs +1054 -0
- package/lib/messages.sendrecord.09a1d1cd.js +2 -0
- package/lib/messages.sendrecord.1c48aa6e.mjs +651 -0
- package/lib/messages.templatelibrary.f31e8d58.mjs +808 -0
- package/lib/messages.templatelibrary.f5952edd.js +2 -0
- package/lib/mobile.designer.componentstree.365945a3.js +1 -0
- package/lib/mobile.designer.componentstree.9439895e.mjs +2064 -0
- package/lib/mobile.designer.menutree.4d4e059b.js +1 -0
- package/lib/mobile.designer.menutree.7d3b783d.mjs +1036 -0
- package/lib/moveFile.3dc1dc37.mjs +276 -0
- package/lib/moveFile.f70bbff7.js +1 -0
- package/lib/{page.build.846096e6.js → page.build.7ac1ee9b.js} +3 -3
- package/lib/{page.build.685c1e15.mjs → page.build.ae61a39b.mjs} +607 -601
- package/lib/page.designer.componentstree.74a3a114.js +1 -0
- package/lib/page.designer.componentstree.cdabec2d.mjs +2958 -0
- package/lib/page.designer.fieldfiltering.e341aa60.mjs +430 -0
- package/lib/page.designer.fieldfiltering.f2d1b6e4.js +1 -0
- package/lib/page.designer.menutree.71c18258.js +1 -0
- package/lib/page.designer.menutree.e4ce1e90.mjs +5952 -0
- package/lib/page.designer.operation.1d435e6e.js +1 -0
- package/lib/page.designer.operation.fe808988.mjs +44 -0
- package/lib/page.designer.page.654634aa.js +1 -0
- package/lib/page.designer.page.821f8994.mjs +10638 -0
- package/lib/personal.echarts.118bcafb.mjs +268 -0
- package/lib/personal.echarts.e5915542.js +1 -0
- package/lib/result.4d4039ea.js +1 -0
- package/lib/result.a87217ae.mjs +639 -0
- package/lib/router.config.a09f29e7.js +1 -0
- package/lib/router.config.f0ad16fd.mjs +1424 -0
- package/lib/solution.application.8d6c84e8.js +1 -0
- package/lib/solution.application.e6b5dc4f.mjs +548 -0
- package/lib/solution.applicationmenu.c6cd2b59.js +1 -0
- package/lib/solution.applicationmenu.e878c41a.mjs +508 -0
- package/lib/solution.approvalflow.79da028c.js +1 -0
- package/lib/solution.approvalflow.eb1c0607.mjs +436 -0
- package/lib/solution.dict.088a1e72.mjs +769 -0
- package/lib/solution.dict.1d5195d0.js +1 -0
- package/lib/solution.menu.e58922fe.mjs +432 -0
- package/lib/solution.menu.fa48a7e8.js +1 -0
- package/lib/solution.plugin.5d6d29cf.js +1 -0
- package/lib/solution.plugin.ae6df926.mjs +347 -0
- package/lib/solution.processflow.62936f1c.mjs +392 -0
- package/lib/solution.processflow.aa1e808b.js +1 -0
- package/lib/solution.role.2eff83a1.js +1 -0
- package/lib/solution.role.7b3e7030.mjs +456 -0
- package/lib/solution.webresources.88c4483b.mjs +379 -0
- package/lib/solution.webresources.bc00603d.js +1 -0
- package/lib/solution.workflow.0ed2cb24.js +1 -0
- package/lib/solution.workflow.85de0ae5.mjs +395 -0
- package/lib/{store.config.fff8a5a1.mjs → store.config.03dd7b19.mjs} +22 -17
- package/lib/store.config.556bd56b.js +1 -0
- package/lib/style.css +3 -3
- package/lib/{system.account.014f3e0b.mjs → system.account.3d7480ba.mjs} +877 -881
- package/lib/{system.account.0d4f1fdc.js → system.account.93ad722e.js} +7 -7
- package/lib/{system.config.0899edb8.mjs → system.config.6084ad21.mjs} +1 -1
- package/lib/{system.config.210f516c.js → system.config.9520e7f9.js} +1 -1
- package/lib/{system.datasource.82492d27.js → system.datasource.76c0ccdb.js} +1 -1
- package/lib/{system.datasource.986768c9.mjs → system.datasource.d74df021.mjs} +1 -1
- package/lib/system.dict.ab148847.js +1 -0
- package/lib/{system.dict.ef24873d.mjs → system.dict.caad4d66.mjs} +264 -260
- package/lib/system.document.0e46ff8c.js +1 -0
- package/lib/system.document.cbdf25a9.mjs +667 -0
- package/lib/{system.duplicatechecking.dcf9f86b.mjs → system.duplicatechecking.46e182d7.mjs} +245 -265
- package/lib/system.duplicatechecking.a217fc52.js +1 -0
- package/lib/system.email.1db14214.js +1 -0
- package/lib/{system.email.252fd642.mjs → system.email.c1ad6598.mjs} +10 -15
- package/lib/{system.fieldsecurity.0234d390.mjs → system.fieldsecurity.2e55e839.mjs} +370 -361
- package/lib/system.fieldsecurity.40b4f48a.js +1 -0
- package/lib/system.file.6a6bd77c.js +1 -0
- package/lib/{system.file.73eeb731.mjs → system.file.80aa0809.mjs} +81 -149
- package/lib/{system.log.b86cf57f.mjs → system.log.3986a8ca.mjs} +1 -1
- package/lib/{system.log.fc60f5e6.js → system.log.9d394678.js} +1 -1
- package/lib/{system.machine.0114001b.mjs → system.machine.395c67c2.mjs} +1 -1
- package/lib/{system.machine.f1d95c86.js → system.machine.d33b0b6e.js} +1 -1
- package/lib/system.notice.2090c130.js +1 -0
- package/lib/{system.notice.25ea8dca.mjs → system.notice.51880df6.mjs} +994 -992
- package/lib/system.noticereceived.0b79642e.js +1 -0
- package/lib/{system.noticereceived.369f634c.mjs → system.noticereceived.55f276ab.mjs} +10 -11
- package/lib/{system.onlineuser.2dc284b1.mjs → system.onlineuser.71034956.mjs} +37 -26
- package/lib/system.onlineuser.e74f010d.js +1 -0
- package/lib/{system.org.c20fe6b2.mjs → system.org.e1e156c6.mjs} +2 -2
- package/lib/{system.org.79ee5bd6.js → system.org.f6d58d0f.js} +1 -1
- package/lib/system.permissions.4090552f.mjs +972 -0
- package/lib/system.permissions.fdb64929.js +1 -0
- package/lib/{system.plugin.45a0f530.mjs → system.plugin.8a9a6448.mjs} +500 -479
- package/lib/system.plugin.a0f25733.js +1 -0
- package/lib/{system.pos.7946a99c.mjs → system.pos.0ad80a53.mjs} +1 -1
- package/lib/{system.pos.0a3d2a37.js → system.pos.71f3eba7.js} +1 -1
- package/lib/{system.promptmanagement.d7250932.mjs → system.promptmanagement.39607ddb.mjs} +246 -243
- package/lib/system.promptmanagement.9718aa24.js +1 -0
- package/lib/system.role.321c48d3.js +1 -0
- package/lib/{system.role.75da7929.mjs → system.role.3b533a3e.mjs} +511 -488
- package/lib/system.sumberrules.6e8d208e.js +1 -0
- package/lib/{system.sumberrules.4a1376a6.mjs → system.sumberrules.c2b8c5e7.mjs} +168 -165
- package/lib/{system.team.e6a9608e.mjs → system.team.367bf5e7.mjs} +163 -161
- package/lib/system.team.cf1c1558.js +1 -0
- package/lib/system.teammembers.63f21557.js +1 -0
- package/lib/{system.teammembers.4a7e7339.mjs → system.teammembers.851ce63b.mjs} +203 -198
- package/lib/system.timers.51bedf97.js +38 -0
- package/lib/{system.timers.eb0b6f3e.mjs → system.timers.5e735567.mjs} +2261 -2213
- package/lib/{system.translation.e34f0891.mjs → system.translation.61765713.mjs} +435 -429
- package/lib/system.translation.c9f1b505.js +1 -0
- package/lib/{system.user.fa2d2997.mjs → system.user.254bbe85.mjs} +1082 -1026
- package/lib/system.user.475d7391.js +14 -0
- package/lib/{system.useraffiliation.518e341e.mjs → system.useraffiliation.b96c984a.mjs} +418 -412
- package/lib/system.useraffiliation.fe1e1d39.js +1 -0
- package/lib/{system.webresource.469db736.mjs → system.webresource.2c6cf4a7.mjs} +179 -179
- package/lib/system.webresource.81cfa690.js +1 -0
- package/lib/{system.welcome.191e98f5.mjs → system.welcome.72da74ae.mjs} +1 -1
- package/lib/{system.welcome.f64e49f8.js → system.welcome.d86a3cdb.js} +1 -1
- package/lib/table.definition..btnconfig.24402bf0.mjs +938 -0
- package/lib/table.definition..btnconfig.add3d840.js +1 -0
- package/lib/table.definition..echartsconfig.4310b5a2.js +1 -0
- package/lib/table.definition..echartsconfig.9c3c88f6.mjs +2150 -0
- package/lib/tableDescriptions.143d8e67.js +1 -0
- package/lib/tableDescriptions.60a07f7c.mjs +80 -0
- package/lib/tcheckboxs.e4d387ff.js +1 -0
- package/lib/{tcheckboxs.090e75eb.mjs → tcheckboxs.ee4adb9e.mjs} +2 -2
- package/lib/tcurrency.0360c142.mjs +85 -0
- package/lib/tcurrency.233f4e63.js +1 -0
- package/lib/{tdatepicker.8fe48b1b.mjs → tdatepicker.9e5d99f4.mjs} +2 -2
- package/lib/{tdatepicker.b19e689d.js → tdatepicker.b10536fd.js} +1 -1
- package/lib/{tdictSwitch.2e07dc8a.js → tdictSwitch.10d64c18.js} +1 -1
- package/lib/{tdictSwitch.43d882c7.mjs → tdictSwitch.eed5a945.mjs} +2 -2
- package/lib/{tfile.72925615.mjs → tfile.7c635ee4.mjs} +2 -2
- package/lib/{tfile.1bc381f9.js → tfile.e183d25f.js} +1 -1
- package/lib/{tparticipants.ca5b556c.mjs → tparticipants.04280449.mjs} +2 -2
- package/lib/{tparticipants.77b876e2.js → tparticipants.f732d245.js} +1 -1
- package/lib/{translation.mains.278e4ba6.mjs → translation.mains.0df71304.mjs} +7 -7
- package/lib/{translation.mains.1ce7e110.js → translation.mains.6f941967.js} +1 -1
- package/lib/utils.datepicker.js.0a5a699e.js +1 -0
- package/lib/utils.datepicker.js.5549a741.mjs +70 -0
- package/lib/utils.plug.js.9313aead.mjs +31 -0
- package/lib/utils.plug.js.f62510ce.js +1 -0
- package/lib/utils.util.js.333daba2.mjs +439 -0
- package/lib/utils.util.js.c0ba699b.js +1 -0
- package/lib/versionControl.97590ce8.js +1 -0
- package/lib/versionControl.d1b2b0da.mjs +488 -0
- package/lib/versionEdit.c51606e4.mjs +452 -0
- package/lib/versionEdit.f710d0bb.js +1 -0
- package/lib/view.build.5789a6eb.js +1 -0
- package/lib/view.build.9976c958.mjs +1578 -0
- package/lib/{viewList.5a25c4b6.mjs → viewList.3ca52f0c.mjs} +70 -92
- package/lib/viewList.6e181715.js +1 -0
- package/lib/viewTree.9bdf96f0.js +1 -0
- package/lib/viewTree.c2e11b7f.mjs +409 -0
- package/locale/en_US.js +45 -6
- package/locale/id_ID.js +45 -6
- package/locale/vi_VN.js +45 -6
- package/locale/zh_CN.js +45 -5
- package/package.json +1 -1
- package/lib/addPermission.5036013c.js +0 -1
- package/lib/approvalModel.66f49dfb.js +0 -1
- package/lib/attribute.318f485c.js +0 -1
- package/lib/attribute.a06ac9e7.mjs +0 -237
- package/lib/buildItem.6a834227.js +0 -1
- package/lib/buildItem.fd8634ab.mjs +0 -205
- package/lib/businessRules.0e4dbb3a.js +0 -1
- package/lib/components.chartbi.b043dcdc.mjs +0 -1729
- package/lib/components.chartbi.e4680eaa.js +0 -7
- package/lib/components.echarts.e4d6b13e.js +0 -3
- package/lib/components.iconselector.d712170f.js +0 -1
- package/lib/components.middleware.3bad5748.js +0 -1
- package/lib/components.sidenavmenu.b9bb9304.js +0 -1
- package/lib/components.tableumy.9cf33062.js +0 -1
- package/lib/components.tablevirtual.38d4d3d8.js +0 -1
- package/lib/components.viewformdetails.1621bc18.js +0 -1
- package/lib/components.viewloading.807bbf68.js +0 -1
- package/lib/components.xlsximport.dbd826bb.js +0 -1
- package/lib/createFile.6b37ecf2.js +0 -1
- package/lib/createFile.82d6e415.mjs +0 -239
- package/lib/createSubfolders.47af629c.js +0 -1
- package/lib/drawerContainer.604a1271.mjs +0 -146
- package/lib/drawerContainer.6a9813ce.js +0 -1
- package/lib/fileSearch.65311ded.js +0 -1
- package/lib/flow.designer.1ba3a90d.js +0 -1
- package/lib/flow.list.4eb10554.js +0 -1
- package/lib/form.build.51bd261e.js +0 -1
- package/lib/form.designer.build.5a950455.js +0 -1
- package/lib/form.designer.build.e521c9c6.mjs +0 -5091
- package/lib/formFiled.464856f5.js +0 -1
- package/lib/http.filedocument.7c656b91.js +0 -1
- package/lib/http.filedocument.d456d26a.mjs +0 -156
- package/lib/http.rolemanage.03363732.js +0 -1
- package/lib/index.69ad4631.mjs +0 -44291
- package/lib/index.cca024bf.js +0 -8
- package/lib/layoutBlocks.1a9e3e05.mjs +0 -204
- package/lib/layoutBlocks.5e6be06f.js +0 -1
- package/lib/main.457f4326.js +0 -1
- package/lib/main.4fff412e.js +0 -1
- package/lib/main.77373aa4.mjs +0 -441
- package/lib/main.c3726602.js +0 -1
- package/lib/manage.5bb4f719.js +0 -1
- package/lib/messages.7b74736f.js +0 -9
- package/lib/messages.ad082386.mjs +0 -4889
- package/lib/moveFile.0ce803e0.js +0 -1
- package/lib/moveFile.8310ea94.mjs +0 -254
- package/lib/personal.echarts.b22fba61.mjs +0 -701
- package/lib/personal.echarts.f77bfc9e.js +0 -1
- package/lib/result.19351665.mjs +0 -526
- package/lib/result.e59c0e40.js +0 -1
- package/lib/router.config.2501ec51.js +0 -1
- package/lib/router.config.98a73167.mjs +0 -3172
- package/lib/solution.58580123.js +0 -1
- package/lib/solution.890ff164.mjs +0 -6942
- package/lib/store.config.3cb11578.js +0 -1
- package/lib/system.dict.f5708400.js +0 -1
- package/lib/system.duplicatechecking.8e3a37c0.js +0 -1
- package/lib/system.email.070ab2be.js +0 -1
- package/lib/system.fieldsecurity.3ef07bf7.js +0 -1
- package/lib/system.file.17a7f2ed.js +0 -1
- package/lib/system.notice.96c770a6.js +0 -1
- package/lib/system.noticereceived.dfe4ecc7.js +0 -1
- package/lib/system.onlineuser.e2e39bdc.js +0 -1
- package/lib/system.permissions.90f73461.js +0 -9
- package/lib/system.permissions.c3d34921.mjs +0 -213
- package/lib/system.plugin.b34a3b47.js +0 -1
- package/lib/system.promptmanagement.b5fa6b2d.js +0 -1
- package/lib/system.role.03be0982.js +0 -1
- package/lib/system.sumberrules.bb228fce.js +0 -1
- package/lib/system.team.32183b63.js +0 -1
- package/lib/system.teammembers.847d8ea7.js +0 -1
- package/lib/system.timers.28691ce4.js +0 -38
- package/lib/system.translation.6237f071.js +0 -1
- package/lib/system.user.fca3f2d6.js +0 -14
- package/lib/system.useraffiliation.7547b9c7.js +0 -1
- package/lib/system.webresource.12712b90.js +0 -1
- package/lib/tcheckboxs.99361be3.js +0 -1
- package/lib/tcurrency.0ddac2f8.mjs +0 -92
- package/lib/tcurrency.62763c6d.js +0 -1
- package/lib/utils.datepicker.js.2076c2a2.mjs +0 -61
- package/lib/utils.datepicker.js.8576e2fc.js +0 -1
- package/lib/utils.util.js.50d1ec9c.js +0 -1
- package/lib/utils.util.js.82cd8447.mjs +0 -424
- package/lib/view.build.b44fd7d7.js +0 -1
- package/lib/view.build.f2a9fcfb.mjs +0 -2727
- package/lib/viewList.be5a5ec5.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as u, m as h } from "./components.chartbi.
|
|
2
|
-
import { k as y, s as b, a as k } from "./http.main.
|
|
3
|
-
import {
|
|
1
|
+
import { n as u, m as h } from "./components.chartbi.7356b244.mjs";
|
|
2
|
+
import { k as y, s as b, a as k } from "./http.main.aefea27d.mjs";
|
|
3
|
+
import { g as p, s as m, a as D } from "./http.syscodegenerateconfigmanage.6d2e5da0.mjs";
|
|
4
4
|
const x = {
|
|
5
5
|
props: {
|
|
6
6
|
effectType: {
|
|
@@ -22,7 +22,7 @@ const x = {
|
|
|
22
22
|
var T = function() {
|
|
23
23
|
var e = this, i = e._self._c;
|
|
24
24
|
return i("span", { staticClass: "gd-icons", class: e.icon });
|
|
25
|
-
}, $ = [],
|
|
25
|
+
}, $ = [], _ = /* @__PURE__ */ u(
|
|
26
26
|
x,
|
|
27
27
|
T,
|
|
28
28
|
$,
|
|
@@ -32,15 +32,26 @@ var T = function() {
|
|
|
32
32
|
null,
|
|
33
33
|
null
|
|
34
34
|
);
|
|
35
|
-
const g = v.
|
|
36
|
-
|
|
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",
|
|
37
41
|
props: {
|
|
38
|
-
|
|
39
|
-
type:
|
|
40
|
-
default: () =>
|
|
42
|
+
tableData: {
|
|
43
|
+
type: Object,
|
|
44
|
+
default: () => ({})
|
|
45
|
+
},
|
|
46
|
+
typeImport: {
|
|
47
|
+
type: [String, Number],
|
|
48
|
+
default: 1
|
|
41
49
|
}
|
|
42
50
|
},
|
|
43
|
-
components: {
|
|
51
|
+
components: {
|
|
52
|
+
EffectTypeIcon: () => Promise.resolve().then(() => v),
|
|
53
|
+
FieldMapping: () => Promise.resolve().then(() => K)
|
|
54
|
+
},
|
|
44
55
|
data() {
|
|
45
56
|
return {
|
|
46
57
|
buttons: [
|
|
@@ -56,435 +67,167 @@ const _ = {
|
|
|
56
67
|
visible: !1,
|
|
57
68
|
confirmLoading: !1,
|
|
58
69
|
fullscreen: !1,
|
|
59
|
-
|
|
60
|
-
|
|
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
|
+
}),
|
|
61
111
|
columns: [
|
|
62
112
|
{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
transKey: "gd.xlsxImport.field",
|
|
70
|
-
prop: "columnComment",
|
|
71
|
-
label: "\u5B57\u6BB5",
|
|
72
|
-
align: "left",
|
|
73
|
-
type: "slot",
|
|
74
|
-
slotType: "columnComment",
|
|
75
|
-
fieIdType: [3]
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
transKey: "gd.xlsxImport.type",
|
|
79
|
-
prop: "effectType",
|
|
80
|
-
label: "\u5B57\u6BB5\u7C7B\u578B",
|
|
81
|
-
align: "left",
|
|
82
|
-
type: "slot",
|
|
83
|
-
slotType: "effectType",
|
|
84
|
-
fieIdType: [3]
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
transKey: "gd.xlsxImport.importValues",
|
|
88
|
-
prop: "rawValued",
|
|
89
|
-
label: "\u5BFC\u5165\u503C",
|
|
90
|
-
align: "left",
|
|
91
|
-
fieIdType: [2, 7]
|
|
113
|
+
transKey: "gd.xlsxImport.importInformation",
|
|
114
|
+
prop: "importName",
|
|
115
|
+
label: "\u5BFC\u5165\u4FE1\u606F",
|
|
116
|
+
align: "left"
|
|
92
117
|
},
|
|
93
118
|
{
|
|
94
|
-
transKey: "gd.xlsxImport.
|
|
95
|
-
prop: "
|
|
96
|
-
label: "\
|
|
119
|
+
transKey: "gd.xlsxImport.mappingEntityFields",
|
|
120
|
+
prop: "checkzd",
|
|
121
|
+
label: "\u6620\u5C04\u5B9E\u4F53\u5B57\u6BB5",
|
|
97
122
|
align: "left",
|
|
98
123
|
type: "slot",
|
|
99
|
-
slotType: "
|
|
100
|
-
|
|
124
|
+
slotType: "checkzd",
|
|
125
|
+
showTooltip: !1
|
|
101
126
|
},
|
|
102
127
|
{
|
|
103
|
-
transKey: "gd.xlsxImport.
|
|
104
|
-
prop: "
|
|
105
|
-
label: "\
|
|
106
|
-
align: "left"
|
|
107
|
-
type: "slot",
|
|
108
|
-
slotType: "busName",
|
|
109
|
-
fieIdType: [5, 6]
|
|
128
|
+
transKey: "gd.xlsxImport.foreignField",
|
|
129
|
+
prop: "fkname",
|
|
130
|
+
label: "\u5916\u952E\u5B57\u6BB5",
|
|
131
|
+
align: "left"
|
|
110
132
|
},
|
|
111
133
|
{
|
|
112
|
-
transKey: "gd.xlsxImport.
|
|
113
|
-
prop: "
|
|
114
|
-
label: "\
|
|
115
|
-
align: "left"
|
|
116
|
-
type: "slot",
|
|
117
|
-
slotType: "columnSlots",
|
|
118
|
-
fieIdType: [5, 6],
|
|
119
|
-
showTooltip: !1
|
|
134
|
+
transKey: "gd.xlsxImport.type",
|
|
135
|
+
prop: "zdtype",
|
|
136
|
+
label: "\u5B57\u6BB5\u7C7B\u578B",
|
|
137
|
+
align: "left"
|
|
120
138
|
}
|
|
121
|
-
]
|
|
122
|
-
selectedRowKeys: [],
|
|
123
|
-
selectedRows: [],
|
|
124
|
-
loadSoData: (t) => new Promise((e, i) => {
|
|
125
|
-
e({ pageNo: 1, pageSize: 200, totalRows: 0, rows: this.loadData });
|
|
126
|
-
}),
|
|
127
|
-
loadData: [],
|
|
128
|
-
dictList: []
|
|
139
|
+
]
|
|
129
140
|
};
|
|
130
141
|
},
|
|
131
142
|
computed: {
|
|
132
|
-
|
|
133
|
-
return this.
|
|
143
|
+
entityData() {
|
|
144
|
+
return this.typeImport != 1 ? this.tableLists : this.tableLists.filter((t) => t.id === this.tableData.id);
|
|
134
145
|
},
|
|
135
|
-
|
|
136
|
-
return this.
|
|
146
|
+
excelName() {
|
|
147
|
+
return `${this.excelFielData.excelName} ${this.excelFielData.excelSize}`;
|
|
137
148
|
},
|
|
138
149
|
title() {
|
|
139
|
-
return this.
|
|
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")}`;
|
|
140
151
|
},
|
|
141
152
|
height() {
|
|
142
|
-
return this.screenHeight - (this.fullscreen ?
|
|
153
|
+
return this.screenHeight - (this.fullscreen ? 120 : 310);
|
|
143
154
|
},
|
|
144
|
-
...h(["screenHeight", "tableLists", "tableSize", "tablePageSize"])
|
|
155
|
+
...h(["primaryColor", "screenHeight", "tableLists", "tableSize", "tablePageSize", "language"])
|
|
145
156
|
},
|
|
146
157
|
methods: {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
setTimeout(() => {
|
|
153
|
-
t.aboutField = s ? s.columnname : a.data[0].columnname;
|
|
154
|
-
}, 0);
|
|
155
|
-
});
|
|
156
|
-
}
|
|
158
|
+
lookup() {
|
|
159
|
+
this.$refs.viewSearch.open({
|
|
160
|
+
fkEntityName: "sys_user",
|
|
161
|
+
effectType: "fk",
|
|
162
|
+
val: this.ruleFormData.serviceConsultant
|
|
157
163
|
});
|
|
158
164
|
},
|
|
165
|
+
lookupSeled(t) {
|
|
166
|
+
this.serviceData = [...t.fkData], this.ruleFormData.serviceConsultant = t.data[0] ? t.data[0] : "";
|
|
167
|
+
},
|
|
159
168
|
handleSubmit() {
|
|
160
|
-
|
|
161
|
-
|
|
169
|
+
let t = this.$refs.table.tableData;
|
|
170
|
+
if (this.fileId === "") {
|
|
171
|
+
this.$message.error(this.$i18nt("gd.xlsxImport.uploadExcel", "\u4E0A\u4F20excel\u6587\u4EF6"));
|
|
162
172
|
return;
|
|
163
173
|
}
|
|
164
|
-
this
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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;
|
|
178
228
|
});
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
let l = i.filter((o) => o.aboutTable == s.tablename)[0];
|
|
182
|
-
a[n].aboutField = l ? l.aboutField : "", a[n].enabled = !!l, a[n].configList = l ? l.configList : [];
|
|
183
|
-
}), this.loadData = [...a];
|
|
184
|
-
}
|
|
185
|
-
return t;
|
|
186
|
-
});
|
|
187
|
-
},
|
|
188
|
-
sysCodeGenerateConfigList(t) {
|
|
189
|
-
return m({
|
|
190
|
-
codeGenId: t
|
|
191
|
-
}).then((e) => e);
|
|
192
|
-
},
|
|
193
|
-
getAboutInit() {
|
|
194
|
-
this.confirmLoading = !0;
|
|
195
|
-
let t = this.record.fkEntityName.split(","), e = this.tableLists.filter((i) => i.tablename === t[0])[0];
|
|
196
|
-
Promise.all([this.getAboutListByEntity(), this.sysCodeGenerateConfigList(e.id)]).then((i) => {
|
|
197
|
-
this.confirmLoading = !1;
|
|
198
|
-
let a = i[1];
|
|
199
|
-
if (a.code === 200) {
|
|
200
|
-
const s = a.data.filter((l) => l.columnname === "name")[0];
|
|
201
|
-
let n = [...this.loadData];
|
|
202
|
-
n.forEach((l, o) => {
|
|
203
|
-
l.tablename === e.tablename && (n[o].configList = a.data, n[o].aboutField = s ? s.columnname : a.data[0].columnname);
|
|
204
|
-
}), this.loadData = [...n], this.selectedRowKeys = this.selectedRowKeys.length === 0 ? [e.tableName] : this.selectedRowKeys;
|
|
205
|
-
}
|
|
206
|
-
this.$nextTick(() => {
|
|
207
|
-
setTimeout(() => {
|
|
208
|
-
this.refresh();
|
|
209
|
-
}, 0);
|
|
210
|
-
});
|
|
211
|
-
});
|
|
212
|
-
},
|
|
213
|
-
openFk(t) {
|
|
214
|
-
this.record = JSON.parse(JSON.stringify(t)), this.fullscreen = !1, this.visible = !0;
|
|
215
|
-
},
|
|
216
|
-
open(t) {
|
|
217
|
-
this.record = JSON.parse(JSON.stringify(t)), this.fullscreen = !1, this.visible = !0;
|
|
218
|
-
let e = !0;
|
|
219
|
-
if ([2, 7].includes(t.fieIdType)) {
|
|
220
|
-
let i = this.configData.filter((a) => a.id == t.checkzd)[0];
|
|
221
|
-
this.dictList = i.dicttypecode ? this.$options.filters.dictData(i.dicttypecode) : [], this.loadData = [...t.dictionarys];
|
|
222
|
-
} else if ([3].includes(t.fieIdType))
|
|
223
|
-
this.loadData = [...t.fkData], this.selectedRowKeys = t.fkFilid ? [t.fkFilid] : [];
|
|
224
|
-
else if ([5, 6].includes(t.fieIdType)) {
|
|
225
|
-
e = t.fkData.length === 0 ? !1 : e;
|
|
226
|
-
let i = t.abouts && t.abouts.length > 0 ? t.abouts : [], a = [];
|
|
227
|
-
i.forEach((s) => {
|
|
228
|
-
a.push(s.aboutTable);
|
|
229
|
-
}), this.selectedRowKeys = a, this.loadData = [...t.fkData], !e && this.getAboutInit();
|
|
230
|
-
}
|
|
231
|
-
this.$nextTick(() => {
|
|
232
|
-
setTimeout(() => {
|
|
233
|
-
e && this.refresh();
|
|
234
|
-
}, 0);
|
|
235
|
-
});
|
|
236
|
-
},
|
|
237
|
-
closed() {
|
|
238
|
-
this.fullscreen = !1, this.visible = !1;
|
|
239
|
-
},
|
|
240
|
-
toggleFullscreen() {
|
|
241
|
-
this.fullscreen = !this.fullscreen;
|
|
242
|
-
},
|
|
243
|
-
onSelectChange(t, e) {
|
|
244
|
-
if (this.selectedRowKeys = t, this.selectedRows = e, this.rowKey !== "tablename")
|
|
245
|
-
return;
|
|
246
|
-
let i = this.$refs.table.tableData, a = {};
|
|
247
|
-
i.forEach((s, n) => {
|
|
248
|
-
s.tablename === t[0] && (a = {
|
|
249
|
-
ind: n,
|
|
250
|
-
data: s
|
|
251
|
-
});
|
|
252
|
-
}), a.data && this.fkSearch(a.data, a.ind);
|
|
253
|
-
},
|
|
254
|
-
refresh(t = !0) {
|
|
255
|
-
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");
|
|
256
|
-
},
|
|
257
|
-
doEvent(t) {
|
|
258
|
-
const e = t.item.functionName;
|
|
259
|
-
this[e] && this[e]();
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
|
-
var I = function() {
|
|
264
|
-
var e = this, i = e._self._c;
|
|
265
|
-
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) {
|
|
266
|
-
e.visible = a;
|
|
267
|
-
}, 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 }) {
|
|
268
|
-
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) {
|
|
269
|
-
e.$set(s, "replaceValue", n);
|
|
270
|
-
}, expression: "row.replaceValue" } }, [e._l(e.dictList, function(n) {
|
|
271
|
-
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)) + " ")]);
|
|
272
|
-
}), 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)];
|
|
273
|
-
} }, { key: "columnComment", fn: function({ column: a, row: s }) {
|
|
274
|
-
return [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " ")];
|
|
275
|
-
} }, { key: "effectType", fn: function({ column: a, row: s }) {
|
|
276
|
-
return [e._v(" " + e._s(e._f("dictType")("code_gen_effect_type", s.effecttype)) + " ")];
|
|
277
|
-
} }, { key: "busName", fn: function({ column: a, row: s }) {
|
|
278
|
-
return [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.busname)) + " " + e._s(s.tablename) + " ")];
|
|
279
|
-
} }, { key: "columnSlots", fn: function({ column: a, row: s, index: n }) {
|
|
280
|
-
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) {
|
|
281
|
-
return e.fkSearch(s, n);
|
|
282
|
-
} }, model: { value: s.aboutField, callback: function(l) {
|
|
283
|
-
e.$set(s, "aboutField", l);
|
|
284
|
-
}, expression: "row.aboutField" } }, [e._l(s.configList, function(l) {
|
|
285
|
-
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)];
|
|
286
|
-
})], 2)];
|
|
287
|
-
} }], null, !1, 1203945507) })], 1) : e._e()], 2);
|
|
288
|
-
}, F = [], S = /* @__PURE__ */ u(
|
|
289
|
-
_,
|
|
290
|
-
I,
|
|
291
|
-
F,
|
|
292
|
-
!1,
|
|
293
|
-
null,
|
|
294
|
-
"3d5059a2",
|
|
295
|
-
null,
|
|
296
|
-
null
|
|
297
|
-
);
|
|
298
|
-
const C = S.exports;
|
|
299
|
-
const L = {
|
|
300
|
-
name: "GdXlsxImport",
|
|
301
|
-
props: {
|
|
302
|
-
tableData: {
|
|
303
|
-
type: Object,
|
|
304
|
-
default: () => ({})
|
|
305
|
-
},
|
|
306
|
-
typeImport: {
|
|
307
|
-
type: [String, Number],
|
|
308
|
-
default: 1
|
|
309
|
-
}
|
|
310
|
-
},
|
|
311
|
-
components: { EffectTypeIcon: g, FieldMapping: C },
|
|
312
|
-
data() {
|
|
313
|
-
return {
|
|
314
|
-
buttons: [
|
|
315
|
-
{
|
|
316
|
-
displayName: "\u786E\u5B9A",
|
|
317
|
-
functionName: "handleSubmit",
|
|
318
|
-
show: !0,
|
|
319
|
-
transKey: "gd.btn.confirm",
|
|
320
|
-
icon: "el-icon-document-checked"
|
|
321
|
-
}
|
|
322
|
-
],
|
|
323
|
-
record: {},
|
|
324
|
-
visible: !1,
|
|
325
|
-
confirmLoading: !1,
|
|
326
|
-
fullscreen: !1,
|
|
327
|
-
selectedRowKeys: [],
|
|
328
|
-
selectedRows: [],
|
|
329
|
-
width: "90%",
|
|
330
|
-
ruleFormData: {
|
|
331
|
-
serviceConsultant: "",
|
|
332
|
-
entityValue: ""
|
|
333
|
-
},
|
|
334
|
-
rules: {
|
|
335
|
-
serviceConsultant: [
|
|
336
|
-
{
|
|
337
|
-
required: !0,
|
|
338
|
-
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
339
|
-
trigger: "change"
|
|
340
|
-
}
|
|
341
|
-
],
|
|
342
|
-
entityValue: [
|
|
343
|
-
{
|
|
344
|
-
required: !0,
|
|
345
|
-
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
346
|
-
trigger: "change"
|
|
347
|
-
}
|
|
348
|
-
]
|
|
349
|
-
},
|
|
350
|
-
excelFielData: {
|
|
351
|
-
excelName: "",
|
|
352
|
-
excelSize: ""
|
|
353
|
-
},
|
|
354
|
-
excelData: [],
|
|
355
|
-
loading: !1,
|
|
356
|
-
autoInputOver: !1,
|
|
357
|
-
serviceData: [],
|
|
358
|
-
fileId: 0,
|
|
359
|
-
loadData: [],
|
|
360
|
-
configData: [],
|
|
361
|
-
excelImportData: [],
|
|
362
|
-
selItem: {},
|
|
363
|
-
loadSoData: (t) => new Promise((e, i) => {
|
|
364
|
-
setTimeout(() => {
|
|
365
|
-
this.confirmLoading = !1, e({ pageNo: 1, pageSize: 200, totalRows: 0, rows: this.loadData });
|
|
366
|
-
}, 200);
|
|
367
|
-
}),
|
|
368
|
-
columns: [
|
|
369
|
-
{
|
|
370
|
-
transKey: "gd.xlsxImport.importInformation",
|
|
371
|
-
prop: "importName",
|
|
372
|
-
label: "\u5BFC\u5165\u4FE1\u606F",
|
|
373
|
-
align: "left"
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
transKey: "gd.xlsxImport.mappingEntityFields",
|
|
377
|
-
prop: "checkzd",
|
|
378
|
-
label: "\u6620\u5C04\u5B9E\u4F53\u5B57\u6BB5",
|
|
379
|
-
align: "left",
|
|
380
|
-
type: "slot",
|
|
381
|
-
slotType: "checkzd",
|
|
382
|
-
showTooltip: !1
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
transKey: "gd.xlsxImport.foreignField",
|
|
386
|
-
prop: "fkname",
|
|
387
|
-
label: "\u5916\u952E\u5B57\u6BB5",
|
|
388
|
-
align: "left"
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
transKey: "gd.xlsxImport.type",
|
|
392
|
-
prop: "zdtype",
|
|
393
|
-
label: "\u5B57\u6BB5\u7C7B\u578B",
|
|
394
|
-
align: "left"
|
|
395
|
-
}
|
|
396
|
-
]
|
|
397
|
-
};
|
|
398
|
-
},
|
|
399
|
-
computed: {
|
|
400
|
-
entityData() {
|
|
401
|
-
return this.typeImport != 1 ? this.tableLists : this.tableLists.filter((t) => t.id === this.tableData.id);
|
|
402
|
-
},
|
|
403
|
-
excelName() {
|
|
404
|
-
return `${this.excelFielData.excelName} ${this.excelFielData.excelSize}`;
|
|
405
|
-
},
|
|
406
|
-
title() {
|
|
407
|
-
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")}`;
|
|
408
|
-
},
|
|
409
|
-
height() {
|
|
410
|
-
return this.screenHeight - (this.fullscreen ? 120 : 310);
|
|
411
|
-
},
|
|
412
|
-
...h(["primaryColor", "screenHeight", "tableLists", "tableSize", "tablePageSize", "language"])
|
|
413
|
-
},
|
|
414
|
-
methods: {
|
|
415
|
-
lookup() {
|
|
416
|
-
this.$refs.viewSearch.open({
|
|
417
|
-
fkEntityName: "sys_user",
|
|
418
|
-
effectType: "fk",
|
|
419
|
-
val: this.ruleFormData.serviceConsultant
|
|
420
|
-
});
|
|
421
|
-
},
|
|
422
|
-
lookupSeled(t) {
|
|
423
|
-
this.serviceData = [...t.fkData], this.ruleFormData.serviceConsultant = t.data[0] ? t.data[0] : "";
|
|
424
|
-
},
|
|
425
|
-
handleSubmit() {
|
|
426
|
-
let t = this.$refs.table.tableData;
|
|
427
|
-
if (this.fileId === "") {
|
|
428
|
-
this.$message.error(this.$i18nt("gd.xlsxImport.uploadExcel", "\u4E0A\u4F20excel\u6587\u4EF6"));
|
|
429
|
-
return;
|
|
430
|
-
}
|
|
431
|
-
if (this.ruleFormData.entityValue === "") {
|
|
432
|
-
this.$message.error(this.$i18nt("gd.xlsxImport.entityTableTip", "\u8BF7\u9009\u62E9\u5B9E\u4F53\u8868"));
|
|
433
|
-
return;
|
|
434
|
-
}
|
|
435
|
-
if (t.length == 0) {
|
|
436
|
-
this.$message.error(this.$i18nt("gd.xlsxImport.entityFileTip", "\u8BF7\u5BFC\u5165\u5B8C\u6574\u7684\u6587\u4EF6"));
|
|
437
|
-
return;
|
|
438
|
-
}
|
|
439
|
-
if (this.ruleFormData.serviceConsultant === "") {
|
|
440
|
-
this.$message.error(this.$i18nt("gd.xlsxImport.owner", "\u8BB0\u5F55\u8D1F\u8D23\u4EBA"));
|
|
441
|
-
return;
|
|
442
|
-
}
|
|
443
|
-
this.confirmLoading = !0, this.$refs.ruleForm.validate((e) => {
|
|
444
|
-
const i = this.tableLists.filter((a) => a.id === this.ruleFormData.entityValue)[0];
|
|
445
|
-
if (e) {
|
|
446
|
-
let a = {
|
|
447
|
-
people: this.ruleFormData.serviceConsultant,
|
|
448
|
-
tableName: i.tablename,
|
|
449
|
-
fileId: this.fileId,
|
|
450
|
-
fieIds: []
|
|
451
|
-
}, s = t.filter((o) => o.show);
|
|
452
|
-
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)));
|
|
453
|
-
if (n.length > 0 || l.length > 0) {
|
|
454
|
-
this.$message.error(this.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E")), this.confirmLoading = !1;
|
|
455
|
-
return;
|
|
456
|
-
}
|
|
457
|
-
s.forEach((o) => {
|
|
458
|
-
let d = [], r = [];
|
|
459
|
-
o.abouts && o.abouts.length > 0 && o.abouts.forEach((f) => {
|
|
460
|
-
d.push({
|
|
461
|
-
aboutTable: f.aboutTable,
|
|
462
|
-
aboutField: f.aboutField
|
|
463
|
-
}), r.push({
|
|
464
|
-
partTable: f.aboutTable,
|
|
465
|
-
partField: f.aboutField
|
|
466
|
-
});
|
|
467
|
-
});
|
|
468
|
-
let c = {
|
|
469
|
-
execlName: o.importName,
|
|
470
|
-
insinuate: o.insinuate,
|
|
471
|
-
fieIdType: o.fieIdType,
|
|
472
|
-
partiRefTables: o.fieIdType == 6 ? r : [],
|
|
473
|
-
abouts: o.fieIdType == 5 ? d : []
|
|
474
|
-
};
|
|
475
|
-
(o.fieIdType === 2 || o.fieIdType === 7) && Object.assign(c, {
|
|
476
|
-
dictionarys: o.dictionarys.filter((f) => f.replaceValue !== "@-1")
|
|
477
|
-
}), o.fieIdType === 3 && Object.assign(c, {
|
|
478
|
-
fkTable: o.fkTable,
|
|
479
|
-
fkFilid: o.fkFilid
|
|
480
|
-
}), o.fieIdType != -1 && a.fieIds.push(c);
|
|
481
|
-
}), y(a).then((o) => {
|
|
482
|
-
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));
|
|
483
|
-
}).catch((o) => {
|
|
484
|
-
this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25")), this.confirmLoading = !1;
|
|
485
|
-
});
|
|
486
|
-
} else
|
|
487
|
-
this.confirmLoading = !1;
|
|
229
|
+
} else
|
|
230
|
+
this.confirmLoading = !1;
|
|
488
231
|
});
|
|
489
232
|
},
|
|
490
233
|
handleChangeZd(t, e) {
|
|
@@ -753,97 +496,359 @@ const L = {
|
|
|
753
496
|
(t) => {
|
|
754
497
|
this.confirmLoading = t.statu !== "rejected";
|
|
755
498
|
}
|
|
756
|
-
));
|
|
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";
|
|
757
750
|
},
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
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
|
+
}
|
|
769
773
|
});
|
|
770
774
|
},
|
|
771
|
-
|
|
772
|
-
this.
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
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];
|
|
781
800
|
}
|
|
801
|
+
return t;
|
|
782
802
|
});
|
|
783
803
|
},
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
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;
|
|
791
821
|
}
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
val: this.$i18n.t(`Dynamics.${t.transkey}`, s),
|
|
797
|
-
name: ""
|
|
822
|
+
this.$nextTick(() => {
|
|
823
|
+
setTimeout(() => {
|
|
824
|
+
this.refresh();
|
|
825
|
+
}, 0);
|
|
798
826
|
});
|
|
799
|
-
|
|
827
|
+
});
|
|
800
828
|
},
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
return [];
|
|
804
|
-
let i = t.dicttypecode, a = this.$options.filters.dictData(i), s = /* @__PURE__ */ new Map(), n = [], l = [];
|
|
805
|
-
return this.excelData.forEach((o) => {
|
|
806
|
-
s.has(o[e]) || (s.set(o[e], 1), (o[e] ? String(o[e]).split(",") : []).forEach((r) => {
|
|
807
|
-
l.filter((f) => f == r)[0] === void 0 && (l.push(r), n.push({
|
|
808
|
-
rawValue: r,
|
|
809
|
-
rawValued: r,
|
|
810
|
-
replaceValue: this.dictListFilter(a, r, t)
|
|
811
|
-
}));
|
|
812
|
-
}));
|
|
813
|
-
}), n;
|
|
829
|
+
openFk(t) {
|
|
830
|
+
this.record = JSON.parse(JSON.stringify(t)), this.fullscreen = !1, this.visible = !0;
|
|
814
831
|
},
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
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();
|
|
819
846
|
}
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
}), s.length == 0 ? null : s.join(",");
|
|
825
|
-
},
|
|
826
|
-
hasDict(t, e) {
|
|
827
|
-
t.forEach((s, n) => {
|
|
828
|
-
let l = s.langs.filter((o) => o.val == e)[0];
|
|
829
|
-
s.hasName = !!l;
|
|
847
|
+
this.$nextTick(() => {
|
|
848
|
+
setTimeout(() => {
|
|
849
|
+
e && this.refresh();
|
|
850
|
+
}, 0);
|
|
830
851
|
});
|
|
831
|
-
let i = t.filter((s) => s.hasName);
|
|
832
|
-
if (i[0] === void 0)
|
|
833
|
-
return !1;
|
|
834
|
-
if (i.length == 1)
|
|
835
|
-
return i[0];
|
|
836
|
-
let a = i.filter((s) => !!s.langs.filter((l) => l.code == this.language)[0])[0];
|
|
837
|
-
return a || i[0];
|
|
838
|
-
},
|
|
839
|
-
hiatusAbout(t) {
|
|
840
|
-
return (t.abouts ? t.abouts : []).length == 0;
|
|
841
|
-
},
|
|
842
|
-
hiatusDict(t) {
|
|
843
|
-
return !!(t.dictionarys ? t.dictionarys : []).filter((a) => a.replaceValue === null)[0];
|
|
844
|
-
},
|
|
845
|
-
refresh(t = !0) {
|
|
846
|
-
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");
|
|
847
852
|
},
|
|
848
853
|
closed() {
|
|
849
854
|
this.fullscreen = !1, this.visible = !1;
|
|
@@ -851,63 +856,67 @@ const L = {
|
|
|
851
856
|
toggleFullscreen() {
|
|
852
857
|
this.fullscreen = !this.fullscreen;
|
|
853
858
|
},
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
if (this[e] === void 0 && this.func === void 0) {
|
|
857
|
-
console.log("\u8BF7\u5B9A\u4E49 " + e + " \u65B9\u6CD5");
|
|
859
|
+
onSelectChange(t, e) {
|
|
860
|
+
if (this.selectedRowKeys = t, this.selectedRows = e, this.rowKey !== "tablename")
|
|
858
861
|
return;
|
|
859
|
-
}
|
|
860
|
-
|
|
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]();
|
|
861
876
|
}
|
|
862
877
|
}
|
|
863
878
|
};
|
|
864
|
-
var
|
|
879
|
+
var N = function() {
|
|
865
880
|
var e = this, i = e._self._c;
|
|
866
|
-
return i("
|
|
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) {
|
|
867
882
|
e.visible = a;
|
|
868
|
-
}, 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),
|
|
869
|
-
return [i("el-
|
|
870
|
-
|
|
871
|
-
}
|
|
872
|
-
e.$
|
|
873
|
-
},
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
}
|
|
881
|
-
return [i("
|
|
882
|
-
return e.
|
|
883
|
-
} }, model: { value: s.
|
|
884
|
-
e.$set(s, "
|
|
885
|
-
}, expression: "row.
|
|
886
|
-
return i("el-option", {
|
|
887
|
-
})
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
return e.editColumn(s);
|
|
891
|
-
} } })] : 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) {
|
|
892
|
-
return e.editColumn(s);
|
|
893
|
-
} } })] : e._e()], 2)];
|
|
894
|
-
} }], null, !1, 1297833159) }) : 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);
|
|
895
|
-
}, N = [], z = /* @__PURE__ */ u(
|
|
896
|
-
L,
|
|
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(
|
|
897
905
|
w,
|
|
898
906
|
N,
|
|
907
|
+
z,
|
|
899
908
|
!1,
|
|
900
909
|
null,
|
|
901
|
-
"
|
|
910
|
+
"3d5059a2",
|
|
902
911
|
null,
|
|
903
912
|
null
|
|
904
913
|
);
|
|
905
|
-
const
|
|
914
|
+
const O = E.exports, K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
906
915
|
__proto__: null,
|
|
907
|
-
default:
|
|
916
|
+
default: O
|
|
908
917
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
909
918
|
export {
|
|
910
919
|
g as E,
|
|
911
|
-
|
|
912
|
-
|
|
920
|
+
v as e,
|
|
921
|
+
M as m
|
|
913
922
|
};
|