gds-plus-design-vue 1.2.62 → 1.2.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/addPermission.5036013c.js +1 -0
- package/lib/addPermission.9fc97a47.mjs +421 -0
- package/lib/approvalModel.51d07afe.mjs +340 -0
- package/lib/approvalModel.66f49dfb.js +1 -0
- package/lib/attribute.318f485c.js +1 -0
- package/lib/attribute.a06ac9e7.mjs +237 -0
- package/lib/buildItem.6a834227.js +1 -0
- package/lib/buildItem.fd8634ab.mjs +205 -0
- package/lib/businessRules.0e4dbb3a.js +1 -0
- package/lib/businessRules.db6ba874.mjs +538 -0
- package/lib/components.chartbi.b043dcdc.mjs +1729 -0
- package/lib/components.chartbi.e4680eaa.js +7 -0
- package/lib/components.coloreditor.044983d2.mjs +1505 -0
- package/lib/components.coloreditor.779a9419.js +6 -0
- package/lib/components.dataassign.1853ed5c.js +1 -0
- package/lib/components.dataassign.56632583.mjs +147 -0
- package/lib/components.echarts.10d3ffe2.mjs +794 -0
- package/lib/components.echarts.e4d6b13e.js +3 -0
- package/lib/components.exception.3cc33e29.js +1 -0
- package/lib/components.exception.cc2f4ca3.mjs +61 -0
- package/lib/components.form.3344c817.mjs +7785 -0
- package/lib/components.form.91d5ed3e.js +41 -0
- package/lib/components.globalheader.07a90c4b.js +1 -0
- package/lib/components.globalheader.43fafa8c.mjs +54 -0
- package/lib/components.iconselector.8caabeaa.mjs +1165 -0
- package/lib/components.iconselector.d712170f.js +1 -0
- package/lib/components.imgpreview.57290b54.mjs +213 -0
- package/lib/components.imgpreview.86bf7971.js +1 -0
- package/lib/components.lunccalendar.76159d2e.js +1 -0
- package/lib/components.lunccalendar.f6765c94.mjs +1137 -0
- package/lib/components.middleware.3bad5748.js +1 -0
- package/lib/components.middleware.457b1182.mjs +147 -0
- package/lib/components.modaltitle.ae92f96c.mjs +127 -0
- package/lib/components.modaltitle.e0b34fcb.js +1 -0
- package/lib/components.multitab.82fd0544.js +1 -0
- package/lib/components.multitab.8441aa6b.mjs +140 -0
- package/lib/components.selecttree.85d940a9.mjs +170 -0
- package/lib/components.selecttree.d710a362.js +1 -0
- package/lib/components.settingdrawer.779f6715.js +1 -0
- package/lib/components.settingdrawer.a6693034.mjs +237 -0
- package/lib/components.sidemenu.725677e3.mjs +277 -0
- package/lib/components.sidemenu.80e46c2d.js +1 -0
- package/lib/components.sidenavmenu.23b8edce.mjs +1331 -0
- package/lib/components.sidenavmenu.b9bb9304.js +1 -0
- package/lib/components.statuschange.15938660.mjs +116 -0
- package/lib/components.statuschange.ed1218a4.js +1 -0
- package/lib/components.table.17c02054.js +8 -0
- package/lib/components.table.e3e5e3bc.mjs +4635 -0
- package/lib/components.tableumy.2f5dfa12.mjs +450 -0
- package/lib/components.tableumy.9cf33062.js +1 -0
- package/lib/components.tablevirtual.38d4d3d8.js +1 -0
- package/lib/components.tablevirtual.ba03746e.mjs +561 -0
- package/lib/components.teamsharing.05503821.js +1 -0
- package/lib/components.teamsharing.fb4351ec.mjs +373 -0
- package/lib/components.tooltip.950dc77b.mjs +86 -0
- package/lib/components.tooltip.a05d8dd1.js +1 -0
- package/lib/components.uploadfile.10f6cb2a.mjs +228 -0
- package/lib/components.uploadfile.5a9b6cc1.js +1 -0
- package/lib/components.uploadimg.cce7452a.js +1 -0
- package/lib/components.uploadimg.f4fe4e77.mjs +192 -0
- package/lib/components.verificationcode.afb9aa1a.mjs +71 -0
- package/lib/components.verificationcode.d1946db4.js +1 -0
- package/lib/components.viewformdetails.1621bc18.js +1 -0
- package/lib/components.viewformdetails.f362d69e.mjs +1048 -0
- package/lib/components.viewloading.807bbf68.js +1 -0
- package/lib/components.viewloading.ea40b244.mjs +96 -0
- package/lib/components.watermark.1ffc66e0.mjs +53 -0
- package/lib/components.watermark.da3d7220.js +2 -0
- package/lib/components.xlsxexport.d98572f8.mjs +263 -0
- package/lib/components.xlsxexport.f5ace2cd.js +1 -0
- package/lib/components.xlsximport.cffa88fe.mjs +913 -0
- package/lib/components.xlsximport.dbd826bb.js +1 -0
- package/lib/createFile.6b37ecf2.js +1 -0
- package/lib/createFile.82d6e415.mjs +239 -0
- package/lib/createSubfolders.47af629c.js +1 -0
- package/lib/createSubfolders.d35b97e9.mjs +154 -0
- package/lib/dialogLayout.08823bb7.js +1 -0
- package/lib/dialogLayout.c4bc3b55.mjs +138 -0
- package/lib/drawerContainer.604a1271.mjs +146 -0
- package/lib/drawerContainer.6a9813ce.js +1 -0
- package/lib/drawerLayout.36cf4d05.js +1 -0
- package/lib/drawerLayout.fb60950f.mjs +119 -0
- package/lib/fileSearch.65311ded.js +1 -0
- package/lib/fileSearch.86c356fe.mjs +338 -0
- package/lib/flow.designer.1ba3a90d.js +1 -0
- package/lib/flow.designer.6da03949.mjs +7686 -0
- package/lib/flow.list.03694808.mjs +3030 -0
- package/lib/flow.list.4eb10554.js +1 -0
- package/lib/form.build.51bd261e.js +1 -0
- package/lib/form.build.b768d613.mjs +251 -0
- package/lib/form.designer.build.5a950455.js +1 -0
- package/lib/form.designer.build.e521c9c6.mjs +5091 -0
- package/lib/formFiled.464856f5.js +1 -0
- package/lib/formFiled.fe7d9df3.mjs +505 -0
- package/lib/gd-initial.js +1 -35
- package/lib/gd-initial.mjs +221 -91338
- package/lib/http.appmanage.4554a629.mjs +50 -0
- package/lib/http.appmanage.b998818f.js +1 -0
- package/lib/http.codegeneratemanage.2f925b10.mjs +112 -0
- package/lib/http.codegeneratemanage.aecadd5d.js +1 -0
- package/lib/http.configmanage.6cfb8ae7.js +1 -0
- package/lib/http.configmanage.c23c7fa8.mjs +34 -0
- package/lib/http.currencymanage.37ab5ced.js +1 -0
- package/lib/http.currencymanage.c25bd2e6.mjs +10 -0
- package/lib/http.datasource.294b01e2.js +1 -0
- package/lib/http.datasource.aa5cd0d1.mjs +58 -0
- package/lib/http.dictdatamanage.4baf16c0.mjs +42 -0
- package/lib/http.dictdatamanage.70545d8a.js +1 -0
- package/lib/http.dictmanage.3dc07b5d.js +1 -0
- package/lib/http.dictmanage.77c69971.mjs +50 -0
- package/lib/http.duplicatechecking.31964ce7.mjs +50 -0
- package/lib/http.duplicatechecking.ee5c414c.js +1 -0
- package/lib/http.emailmanage.1ddaa8b5.js +1 -0
- package/lib/http.emailmanage.64fd611f.mjs +18 -0
- package/lib/http.filedocument.7c656b91.js +1 -0
- package/lib/http.filedocument.d456d26a.mjs +156 -0
- package/lib/http.filemanage.7e6e3e1a.js +1 -0
- package/lib/http.filemanage.c0de21d6.mjs +71 -0
- package/lib/http.languagemanage.2ef16159.mjs +10 -0
- package/lib/http.languagemanage.e2c098ec.js +1 -0
- package/lib/http.loginmanage.05500c29.mjs +74 -0
- package/lib/http.loginmanage.326984c3.js +1 -0
- package/lib/http.logmanage.1e12a9bd.js +1 -0
- package/lib/http.logmanage.8ba72635.mjs +82 -0
- package/lib/http.machinemanage.29d72a65.js +1 -0
- package/lib/http.machinemanage.7bbe6c16.mjs +26 -0
- package/lib/http.main.2f8a6936.js +1 -0
- package/lib/http.main.40657f51.mjs +517 -0
- package/lib/http.menumanage.3240ba0d.mjs +66 -0
- package/lib/http.menumanage.6d740f2c.js +1 -0
- package/lib/http.message.5004bf60.mjs +178 -0
- package/lib/http.message.87f319d7.js +1 -0
- package/lib/http.noticemanage.2507d094.js +1 -0
- package/lib/http.noticemanage.e03bd5f3.mjs +82 -0
- package/lib/http.noticereceivedmanage.50797be1.mjs +10 -0
- package/lib/http.noticereceivedmanage.e8ec9c9d.js +1 -0
- package/lib/http.onlineusermanage.3893f897.js +1 -0
- package/lib/http.onlineusermanage.c8d84337.mjs +18 -0
- package/lib/http.orgmanage.5162fd7a.js +1 -0
- package/lib/http.orgmanage.84e43edb.mjs +58 -0
- package/lib/http.pluginmanage.6a876040.js +1 -0
- package/lib/http.pluginmanage.6bc6197f.mjs +82 -0
- package/lib/http.posmanage.c0f80aec.js +1 -0
- package/lib/http.posmanage.ee6a7613.mjs +34 -0
- package/lib/http.promptmanagement.c7912f6c.mjs +42 -0
- package/lib/http.promptmanagement.d115c4b0.js +1 -0
- package/lib/http.rolemanage.03363732.js +1 -0
- package/lib/http.rolemanage.dbf3fda1.mjs +114 -0
- package/lib/http.solution.175d36c8.mjs +91 -0
- package/lib/http.solution.c6b2634f.js +1 -0
- package/lib/http.sumberrules.0b68ce6d.js +1 -0
- package/lib/http.sumberrules.608a06d6.mjs +34 -0
- package/lib/http.sysapps.469d47f7.js +1 -0
- package/lib/http.sysapps.e294ceaf.mjs +58 -0
- package/lib/http.syscodegenerateconfigmanage.6d2e5da0.mjs +42 -0
- package/lib/http.syscodegenerateconfigmanage.840f1136.js +1 -0
- package/lib/http.tabledevelopment.1d370398.mjs +362 -0
- package/lib/http.tabledevelopment.a880bb76.js +1 -0
- package/lib/http.team.c8487c0b.mjs +90 -0
- package/lib/http.team.e45400d5.js +1 -0
- package/lib/http.timersmanage.01dbc1a2.mjs +146 -0
- package/lib/http.timersmanage.6e894942.js +1 -0
- package/lib/http.timezonemanage.b9deffe3.mjs +10 -0
- package/lib/http.timezonemanage.e0aa212f.js +1 -0
- package/lib/http.translationmanage.1f9dce46.js +1 -0
- package/lib/http.translationmanage.a4640c9a.mjs +104 -0
- package/lib/http.useraffiliation.840741ed.mjs +90 -0
- package/lib/http.useraffiliation.af2013ad.js +1 -0
- package/lib/http.usermanage.3e5eff33.mjs +219 -0
- package/lib/http.usermanage.6dcbc7de.js +1 -0
- package/lib/http.webresource.5158b431.mjs +50 -0
- package/lib/http.webresource.7c01b9cd.js +1 -0
- package/lib/index.69ad4631.mjs +44291 -0
- package/lib/index.cca024bf.js +8 -0
- package/lib/layoutBlocks.1a9e3e05.mjs +204 -0
- package/lib/layoutBlocks.5e6be06f.js +1 -0
- package/lib/layouts.051a0bba.mjs +376 -0
- package/lib/layouts.a6a36612.js +2 -0
- package/lib/main.457f4326.js +1 -0
- package/lib/main.4fff412e.js +1 -0
- package/lib/{main.c569c0a5.mjs → main.70357352.mjs} +12 -10
- package/lib/main.77373aa4.mjs +441 -0
- package/lib/{main.fb4a8edf.mjs → main.7f44e3bf.mjs} +78 -143
- package/lib/main.8a2a590d.js +1 -0
- package/lib/main.ad1e8d4d.js +1 -0
- package/lib/{main.5a6c881a.mjs → main.b0e5e1b0.mjs} +9 -8
- package/lib/{main.7921130e.mjs → main.c1df94d8.mjs} +4 -4
- package/lib/main.c3726602.js +1 -0
- package/lib/manage.5bb4f719.js +1 -0
- package/lib/manage.a1df9b88.mjs +419 -0
- package/lib/messages.7b74736f.js +9 -0
- package/lib/{messages.5bcc42f9.mjs → messages.ad082386.mjs} +994 -1968
- package/lib/moveFile.0ce803e0.js +1 -0
- package/lib/moveFile.8310ea94.mjs +254 -0
- package/lib/page.build.685c1e15.mjs +3158 -0
- package/lib/page.build.846096e6.js +12 -0
- package/lib/personal.echarts.b22fba61.mjs +701 -0
- package/lib/personal.echarts.f77bfc9e.js +1 -0
- package/lib/result.19351665.mjs +526 -0
- package/lib/result.e59c0e40.js +1 -0
- package/lib/router.config.2501ec51.js +1 -0
- package/lib/router.config.98a73167.mjs +3172 -0
- package/lib/solution.58580123.js +1 -0
- package/lib/solution.890ff164.mjs +6942 -0
- package/lib/store.config.3cb11578.js +1 -0
- package/lib/store.config.fff8a5a1.mjs +542 -0
- package/lib/style.css +3 -3
- package/lib/system.account.014f3e0b.mjs +2097 -0
- package/lib/system.account.0d4f1fdc.js +216 -0
- package/lib/{system.config.00dd0a29.mjs → system.config.0899edb8.mjs} +7 -6
- package/lib/system.config.210f516c.js +1 -0
- package/lib/system.datasource.82492d27.js +1 -0
- package/lib/{system.datasource.eb8d16df.mjs → system.datasource.986768c9.mjs} +15 -64
- package/lib/{system.dict.787ff1ec.mjs → system.dict.ef24873d.mjs} +28 -107
- package/lib/system.dict.f5708400.js +1 -0
- package/lib/system.duplicatechecking.8e3a37c0.js +1 -0
- package/lib/system.duplicatechecking.dcf9f86b.mjs +742 -0
- package/lib/system.email.070ab2be.js +1 -0
- package/lib/system.email.252fd642.mjs +138 -0
- package/lib/{system.fieldsecurity.9d40595f.mjs → system.fieldsecurity.0234d390.mjs} +224 -685
- package/lib/system.fieldsecurity.3ef07bf7.js +1 -0
- package/lib/system.file.17a7f2ed.js +1 -0
- package/lib/{system.file.eae6eac2.mjs → system.file.73eeb731.mjs} +8 -7
- package/lib/{system.log.9bf208c1.mjs → system.log.b86cf57f.mjs} +24 -93
- package/lib/system.log.fc60f5e6.js +1 -0
- package/lib/{system.machine.0130e762.mjs → system.machine.0114001b.mjs} +5 -25
- package/lib/system.machine.f1d95c86.js +1 -0
- package/lib/{system.notice.dba4c597.mjs → system.notice.25ea8dca.mjs} +292 -474
- package/lib/system.notice.96c770a6.js +1 -0
- package/lib/{system.noticereceived.0b88ef5d.mjs → system.noticereceived.369f634c.mjs} +17 -24
- package/lib/system.noticereceived.dfe4ecc7.js +1 -0
- package/lib/{system.onlineuser.bfc3abf2.mjs → system.onlineuser.2dc284b1.mjs} +11 -24
- package/lib/system.onlineuser.e2e39bdc.js +1 -0
- package/lib/system.org.79ee5bd6.js +1 -0
- package/lib/{system.org.6da23c73.mjs → system.org.c20fe6b2.mjs} +3 -3
- package/lib/system.permissions.90f73461.js +9 -0
- package/lib/{system.permissions.fdad3c36.mjs → system.permissions.c3d34921.mjs} +4 -3
- package/lib/{system.plugin.f8765f96.mjs → system.plugin.45a0f530.mjs} +23 -93
- package/lib/system.plugin.b34a3b47.js +1 -0
- package/lib/system.pos.0a3d2a37.js +1 -0
- package/lib/{system.pos.5645b45a.mjs → system.pos.7946a99c.mjs} +31 -62
- package/lib/system.promptmanagement.b5fa6b2d.js +1 -0
- package/lib/{system.promptmanagement.cd19d086.mjs → system.promptmanagement.d7250932.mjs} +153 -288
- package/lib/system.role.03be0982.js +1 -0
- package/lib/{system.role.0c6c327d.mjs → system.role.75da7929.mjs} +8 -5
- package/lib/{system.sumberrules.b48c028c.mjs → system.sumberrules.4a1376a6.mjs} +13 -39
- package/lib/system.sumberrules.bb228fce.js +1 -0
- package/lib/system.team.32183b63.js +1 -0
- package/lib/system.team.e6a9608e.mjs +450 -0
- package/lib/{system.teammembers.e23e15d9.mjs → system.teammembers.4a7e7339.mjs} +135 -82
- package/lib/system.teammembers.847d8ea7.js +1 -0
- package/lib/system.timers.28691ce4.js +38 -0
- package/lib/{system.timers.63d03fc9.mjs → system.timers.eb0b6f3e.mjs} +50 -174
- package/lib/system.translation.6237f071.js +1 -0
- package/lib/{system.translation.52452a24.mjs → system.translation.e34f0891.mjs} +5 -5
- package/lib/{system.user.8d97a219.mjs → system.user.fa2d2997.mjs} +17 -16
- package/lib/{system.user.49457fd3.js → system.user.fca3f2d6.js} +5 -5
- package/lib/{system.useraffiliation.3075aa2c.mjs → system.useraffiliation.518e341e.mjs} +4 -3
- package/lib/system.useraffiliation.7547b9c7.js +1 -0
- package/lib/system.webresource.12712b90.js +1 -0
- package/lib/{system.webresource.7df0cf1e.mjs → system.webresource.469db736.mjs} +16 -58
- package/lib/{system.welcome.14785b50.mjs → system.welcome.191e98f5.mjs} +10 -3
- package/lib/system.welcome.f64e49f8.js +1 -0
- package/lib/tcheckboxs.090e75eb.mjs +52 -0
- package/lib/tcheckboxs.99361be3.js +1 -0
- package/lib/tcurrency.0ddac2f8.mjs +92 -0
- package/lib/tcurrency.62763c6d.js +1 -0
- package/lib/tdatepicker.8fe48b1b.mjs +52 -0
- package/lib/tdatepicker.b19e689d.js +1 -0
- package/lib/tdictSwitch.2e07dc8a.js +1 -0
- package/lib/tdictSwitch.43d882c7.mjs +60 -0
- package/lib/tfile.1bc381f9.js +1 -0
- package/lib/tfile.72925615.mjs +62 -0
- package/lib/tparticipants.77b876e2.js +1 -0
- package/lib/tparticipants.ca5b556c.mjs +56 -0
- package/lib/translation.mains.1ce7e110.js +1 -0
- package/lib/translation.mains.278e4ba6.mjs +383 -0
- package/lib/utils.datepicker.js.2076c2a2.mjs +61 -0
- package/lib/utils.datepicker.js.8576e2fc.js +1 -0
- package/lib/utils.echarts.js.461a74e7.js +54 -0
- package/lib/utils.echarts.js.d1bb8ac6.mjs +25711 -0
- package/lib/utils.mixins.js.750ca50e.js +1 -0
- package/lib/utils.mixins.js.be01e599.mjs +41 -0
- package/lib/utils.util.js.50d1ec9c.js +1 -0
- package/lib/utils.util.js.82cd8447.mjs +424 -0
- package/lib/view.build.b44fd7d7.js +1 -0
- package/lib/view.build.f2a9fcfb.mjs +2727 -0
- package/lib/viewList.5a25c4b6.mjs +346 -0
- package/lib/viewList.be5a5ec5.js +1 -0
- package/locale/en_US.js +38 -22
- package/locale/id_ID.js +22 -6
- package/locale/vi_VN.js +1929 -1913
- package/locale/zh_CN.js +44 -28
- package/package.json +106 -105
- package/lib/chartbi.114d32d7.js +0 -60
- package/lib/chartbi.eb4dd0af.mjs +0 -27639
- package/lib/main.083e0ba3.js +0 -1
- package/lib/main.4a858284.js +0 -1
- package/lib/main.64cb2027.js +0 -1
- package/lib/main.70a46cbc.js +0 -1
- package/lib/messages.364eb728.js +0 -9
- package/lib/system.account.95bd8508.js +0 -216
- package/lib/system.account.d6c7485b.mjs +0 -2552
- package/lib/system.config.63c0217d.js +0 -1
- package/lib/system.datasource.a2c0bad4.js +0 -1
- package/lib/system.dict.dfb4c376.js +0 -1
- package/lib/system.duplicatechecking.a58aad69.mjs +0 -2142
- package/lib/system.duplicatechecking.c4141ebd.js +0 -1
- package/lib/system.email.545cedff.mjs +0 -7432
- package/lib/system.email.ec0ac728.js +0 -41
- package/lib/system.fieldsecurity.eb217079.js +0 -1
- package/lib/system.file.1cb952a4.js +0 -1
- package/lib/system.log.348b3605.js +0 -1
- package/lib/system.machine.49fc6405.js +0 -1
- package/lib/system.notice.d7a3346d.js +0 -1
- package/lib/system.noticereceived.c0b24616.js +0 -1
- package/lib/system.onlineuser.b3c94b5b.js +0 -1
- package/lib/system.org.30063246.js +0 -1
- package/lib/system.permissions.1ff855c2.js +0 -9
- package/lib/system.plugin.2c7c8a5a.js +0 -1
- package/lib/system.pos.21294c28.js +0 -1
- package/lib/system.promptmanagement.7e8da777.js +0 -1
- package/lib/system.role.078fac85.js +0 -1
- package/lib/system.sumberrules.b0252f77.js +0 -1
- package/lib/system.team.296512d7.mjs +0 -1000
- package/lib/system.team.5d6169bc.js +0 -1
- package/lib/system.teammembers.313345f7.js +0 -1
- package/lib/system.timers.8246e6ba.js +0 -38
- package/lib/system.translation.fdff4956.js +0 -1
- package/lib/system.useraffiliation.0e9da6a8.js +0 -1
- package/lib/system.webresource.2a341e05.js +0 -1
- package/lib/system.welcome.c9eefa06.js +0 -1
|
@@ -0,0 +1,913 @@
|
|
|
1
|
+
import { n as u, m as h } from "./components.chartbi.b043dcdc.mjs";
|
|
2
|
+
import { k as y, s as b, a as k } from "./http.main.40657f51.mjs";
|
|
3
|
+
import { a as D, s as m, g as p } 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
|
+
}, $ = [], v = /* @__PURE__ */ u(
|
|
26
|
+
x,
|
|
27
|
+
T,
|
|
28
|
+
$,
|
|
29
|
+
!1,
|
|
30
|
+
null,
|
|
31
|
+
"674ea292",
|
|
32
|
+
null,
|
|
33
|
+
null
|
|
34
|
+
);
|
|
35
|
+
const g = v.exports;
|
|
36
|
+
const _ = {
|
|
37
|
+
props: {
|
|
38
|
+
configData: {
|
|
39
|
+
type: Array,
|
|
40
|
+
default: () => []
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
components: { EffectTypeIcon: g },
|
|
44
|
+
data() {
|
|
45
|
+
return {
|
|
46
|
+
buttons: [
|
|
47
|
+
{
|
|
48
|
+
displayName: "\u786E\u5B9A",
|
|
49
|
+
functionName: "handleSubmit",
|
|
50
|
+
show: !0,
|
|
51
|
+
transKey: "gd.btn.confirm",
|
|
52
|
+
icon: "el-icon-document-checked"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
record: {},
|
|
56
|
+
visible: !1,
|
|
57
|
+
confirmLoading: !1,
|
|
58
|
+
fullscreen: !1,
|
|
59
|
+
width: "800px",
|
|
60
|
+
record: {},
|
|
61
|
+
columns: [
|
|
62
|
+
{
|
|
63
|
+
type: "selection-radio",
|
|
64
|
+
width: "60",
|
|
65
|
+
fixed: !0,
|
|
66
|
+
fieIdType: [3, 5, 6]
|
|
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]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
transKey: "gd.xlsxImport.systemOptions",
|
|
95
|
+
prop: "replaceValue",
|
|
96
|
+
label: "\u7CFB\u7EDF\u9009\u9879",
|
|
97
|
+
align: "left",
|
|
98
|
+
type: "slot",
|
|
99
|
+
slotType: "replaceValue",
|
|
100
|
+
fieIdType: [2, 7]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
transKey: "gd.xlsxImport.associatedTable",
|
|
104
|
+
prop: "busName",
|
|
105
|
+
label: "\u5173\u8054\u8868\u540D",
|
|
106
|
+
align: "left",
|
|
107
|
+
type: "slot",
|
|
108
|
+
slotType: "busName",
|
|
109
|
+
fieIdType: [5, 6]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
transKey: "gd.xlsxImport.lookUpField",
|
|
113
|
+
prop: "columnSlots",
|
|
114
|
+
label: "\u67E5\u627E\u5B57\u6BB5",
|
|
115
|
+
align: "left",
|
|
116
|
+
type: "slot",
|
|
117
|
+
slotType: "columnSlots",
|
|
118
|
+
fieIdType: [5, 6],
|
|
119
|
+
showTooltip: !1
|
|
120
|
+
}
|
|
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: []
|
|
129
|
+
};
|
|
130
|
+
},
|
|
131
|
+
computed: {
|
|
132
|
+
rowKey() {
|
|
133
|
+
return this.record.fieIdType === 2 || this.record.fieIdType === 7 ? "index" : this.record.fieIdType === 5 || this.record.fieIdType === 6 ? "tablename" : "columnname";
|
|
134
|
+
},
|
|
135
|
+
getColumns() {
|
|
136
|
+
return this.columns.filter((t) => t.fieIdType.includes(this.record.fieIdType));
|
|
137
|
+
},
|
|
138
|
+
title() {
|
|
139
|
+
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})`;
|
|
140
|
+
},
|
|
141
|
+
height() {
|
|
142
|
+
return this.screenHeight - (this.fullscreen ? 130 : 290);
|
|
143
|
+
},
|
|
144
|
+
...h(["screenHeight", "tableLists", "tableSize", "tablePageSize"])
|
|
145
|
+
},
|
|
146
|
+
methods: {
|
|
147
|
+
fkSearch(t, e) {
|
|
148
|
+
(t && t.configList ? t.configList : []).length > 0 || this.sysCodeGenerateConfigList(t.id).then((a) => {
|
|
149
|
+
if (a.code === 200) {
|
|
150
|
+
const s = a.data.filter((n) => n.columnname === "name")[0];
|
|
151
|
+
t.configList = [...a.data], this.$nextTick(() => {
|
|
152
|
+
setTimeout(() => {
|
|
153
|
+
t.aboutField = s ? s.columnname : a.data[0].columnname;
|
|
154
|
+
}, 0);
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
},
|
|
159
|
+
handleSubmit() {
|
|
160
|
+
if (this.loadData.filter((e) => this.selectedRowKeys.includes(e[this.rowKey]))[0] === void 0 && this.rowKey !== "index") {
|
|
161
|
+
this.$message.error(this.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
this.$emit("ok", {
|
|
165
|
+
loadData: this.loadData,
|
|
166
|
+
data: this.record,
|
|
167
|
+
selectedRowKeys: this.selectedRowKeys
|
|
168
|
+
}), this.closed();
|
|
169
|
+
},
|
|
170
|
+
getAboutListByEntity() {
|
|
171
|
+
return D({
|
|
172
|
+
entityName: this.record.fkEntityName
|
|
173
|
+
}).then((t) => {
|
|
174
|
+
if (t.code === 200) {
|
|
175
|
+
let e = [], i = this.record.abouts ? this.record.abouts : [];
|
|
176
|
+
i.forEach((s) => {
|
|
177
|
+
e.push(s.aboutTable);
|
|
178
|
+
});
|
|
179
|
+
let a = t.data;
|
|
180
|
+
a.forEach((s, n) => {
|
|
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;
|
|
488
|
+
});
|
|
489
|
+
},
|
|
490
|
+
handleChangeZd(t, e) {
|
|
491
|
+
let i = this.$refs.table.tableData;
|
|
492
|
+
const a = this.configData.filter((o) => o.id === t)[0];
|
|
493
|
+
if (t === 0) {
|
|
494
|
+
i[e.ind] = Object.assign({ ...i[e.ind] }, { fieIdType: -1, checkzd: t }), this.loadData = [...i], this.$refs.table.setLoadData(this.loadData);
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
497
|
+
let s = {
|
|
498
|
+
insinuate: a.columnname,
|
|
499
|
+
fkEntityName: a.fkentityname,
|
|
500
|
+
fkData: [],
|
|
501
|
+
abouts: [],
|
|
502
|
+
dictionarys: []
|
|
503
|
+
}, n = "";
|
|
504
|
+
const l = this.$i18nt(`Dynamics.${a.transkey}`, a.columncomment);
|
|
505
|
+
["fk", "user"].includes(a.effecttype) ? (Object.assign(s, {
|
|
506
|
+
fieIdType: 3,
|
|
507
|
+
fkname: l,
|
|
508
|
+
fkTable: a.fkentityname
|
|
509
|
+
}), n = "fk") : ["about", "participants"].includes(a.effecttype) ? (Object.assign(s, {
|
|
510
|
+
fieIdType: a.effecttype === "about" ? 5 : 6,
|
|
511
|
+
aboutName: l,
|
|
512
|
+
abouts: []
|
|
513
|
+
}), n = "about") : a.dicttypecode ? (Object.assign(s, {
|
|
514
|
+
fieIdType: a.effecttype === "checkbox" ? 7 : 2,
|
|
515
|
+
fkname: l,
|
|
516
|
+
dictionarys: this.dictionarysP(a, e.index),
|
|
517
|
+
zdtype: a.nettype
|
|
518
|
+
}), n = "dictTypeCode") : Object.assign(s, {
|
|
519
|
+
fieIdType: a.nettype.indexOf("datetime") > -1 ? 4 : 1,
|
|
520
|
+
fkname: l,
|
|
521
|
+
zdtype: a.nettype
|
|
522
|
+
}), i[e.ind] = Object.assign({ ...i[e.ind] }, { ...s }), this.loadData = [...i], this.$refs.table.setLoadData(this.loadData), n !== "" && this.$nextTick(() => {
|
|
523
|
+
setTimeout(() => {
|
|
524
|
+
n !== "fk" ? this.editColumn(i[e.ind]) : this.editColumnFk(i[e.ind], e.ind);
|
|
525
|
+
}, 0);
|
|
526
|
+
});
|
|
527
|
+
},
|
|
528
|
+
okFieldMapping({ loadData: t, data: e, selectedRowKeys: i }) {
|
|
529
|
+
let a = this.$refs.table.tableData;
|
|
530
|
+
if (e.fieIdType === 2 || e.fieIdType === 7)
|
|
531
|
+
a[e.ind] = Object.assign(a[e.ind], {
|
|
532
|
+
dictionarys: [...t]
|
|
533
|
+
});
|
|
534
|
+
else if (e.fieIdType === 5 || e.fieIdType === 6) {
|
|
535
|
+
let s = t.filter((l) => i.includes(l.tablename))[0], n = s.configList.filter((l) => l.columnname === s.aboutField)[0];
|
|
536
|
+
a[e.ind] = Object.assign(a[e.ind], {
|
|
537
|
+
abouts: [
|
|
538
|
+
{
|
|
539
|
+
aboutTable: s.tablename,
|
|
540
|
+
aboutField: s.aboutField,
|
|
541
|
+
configList: s.configList
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
fkname: s.busname + "-" + this.$i18nt(`Dynamics.${n.transkey}`, n.columncomment),
|
|
545
|
+
zdtype: n.netType,
|
|
546
|
+
fkData: [...t]
|
|
547
|
+
});
|
|
548
|
+
} else {
|
|
549
|
+
let s = t.filter((n) => i.includes(n.columnname))[0];
|
|
550
|
+
a[e.ind] = Object.assign(a[e.ind], {
|
|
551
|
+
zdtype: s.nettype,
|
|
552
|
+
fkFilid: s.columnname,
|
|
553
|
+
fkname: this.$i18nt(`Dynamics.${s.transkey}`, s.columncomment),
|
|
554
|
+
fieIdType: 3
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
this.loadData = [...a], this.$refs.table.setLoadData(this.loadData);
|
|
558
|
+
},
|
|
559
|
+
editColumn(t) {
|
|
560
|
+
const e = this.configData.filter((i) => i.id === t.checkzd)[0];
|
|
561
|
+
if (["fk", "user"].includes(e.effecttype) && t.fkFilid === void 0) {
|
|
562
|
+
let i = this.$refs.table.tableData;
|
|
563
|
+
this.editColumnFk(i[t.ind], t.ind);
|
|
564
|
+
return;
|
|
565
|
+
}
|
|
566
|
+
this.selItem = t, this.$refs.fieldMapping.open(t);
|
|
567
|
+
},
|
|
568
|
+
editColumnFk(t, e) {
|
|
569
|
+
!t.fkTable || (this.$refs.fieldMapping.openFk(t), this.$refs.table.tableData, p({
|
|
570
|
+
entityName: t.fkTable
|
|
571
|
+
}).then((i) => {
|
|
572
|
+
if (i.code === 200) {
|
|
573
|
+
const a = i.data.filter((l) => l.columnname == "name")[0], s = {
|
|
574
|
+
zdtype: a.nettype,
|
|
575
|
+
fkFilid: a.columnname,
|
|
576
|
+
fkname: this.$i18nt(`Dynamics.${a.transkey}`, a.columncomment)
|
|
577
|
+
};
|
|
578
|
+
let n = this.$refs.table.tableData;
|
|
579
|
+
n[e] = Object.assign(n[e], s, {
|
|
580
|
+
fkData: i.data
|
|
581
|
+
}), this.loadData = [...n], this.$refs.table.setLoadData(this.loadData), this.selItem = n[e], this.$refs.fieldMapping.open(n[e]);
|
|
582
|
+
}
|
|
583
|
+
}));
|
|
584
|
+
},
|
|
585
|
+
getFk(t, e, i = !0) {
|
|
586
|
+
i && this.editColumn(this.loadData[e]), t.fkEntityName && p({
|
|
587
|
+
entityName: t.fkEntityName
|
|
588
|
+
}).then((a) => {
|
|
589
|
+
if (a.code === 200) {
|
|
590
|
+
const s = a.data.filter((o) => o.columnname == "name")[0], n = {
|
|
591
|
+
zdtype: s.nettype,
|
|
592
|
+
fkFilid: s.columnname,
|
|
593
|
+
fkname: this.$i18nt(`Dynamics.${s.transkey}`, s.columncomment),
|
|
594
|
+
fieIdType: 3,
|
|
595
|
+
insinuate: t.columnname,
|
|
596
|
+
fkTable: t.fkentityname
|
|
597
|
+
};
|
|
598
|
+
let l = this.$refs.table.tableData;
|
|
599
|
+
l[e] = Object.assign(l[e], s && !l[e].fkFilid ? n : {}, {
|
|
600
|
+
fkData: a.data
|
|
601
|
+
}), this.loadData = [...l], this.$refs.table.setLoadData(this.loadData);
|
|
602
|
+
}
|
|
603
|
+
});
|
|
604
|
+
},
|
|
605
|
+
autoInput() {
|
|
606
|
+
let t = /* @__PURE__ */ new Map();
|
|
607
|
+
this.excelImportData.forEach((i, a) => {
|
|
608
|
+
t.set(i.importName, a);
|
|
609
|
+
});
|
|
610
|
+
let e = [];
|
|
611
|
+
this.configData.forEach((i, a) => {
|
|
612
|
+
const s = this.isCheckedName(t, i.langs);
|
|
613
|
+
let n = null;
|
|
614
|
+
s && (n = this.autoInputData(s, i, a)), n && e.push(n);
|
|
615
|
+
}), this.autoInputOver = !0, this.$nextTick(() => {
|
|
616
|
+
this.refresh(), setTimeout(() => {
|
|
617
|
+
e.forEach((i) => {
|
|
618
|
+
this.getFk(i.ele, i.tableidx, i.statu);
|
|
619
|
+
});
|
|
620
|
+
}, 200);
|
|
621
|
+
});
|
|
622
|
+
},
|
|
623
|
+
autoInputData(t, e, i) {
|
|
624
|
+
const a = t.ind;
|
|
625
|
+
let s = {
|
|
626
|
+
checkzd: e.id,
|
|
627
|
+
configindex: i,
|
|
628
|
+
insinuate: e.columnname,
|
|
629
|
+
fkData: [],
|
|
630
|
+
aboutName: "",
|
|
631
|
+
fkname: "",
|
|
632
|
+
fkEntityName: e.fkentityname,
|
|
633
|
+
abouts: [],
|
|
634
|
+
dictionarys: []
|
|
635
|
+
};
|
|
636
|
+
const n = this.$i18nt(`Dynamics.${e.transkey}`, e.columncomment);
|
|
637
|
+
if (!e.dicttypecode && !["fk", "about", "user", "participants"].includes(e.effecttype))
|
|
638
|
+
Object.assign(s, {
|
|
639
|
+
fieIdType: e.nettype.indexOf("datetime") > -1 ? 4 : 1,
|
|
640
|
+
fkname: n,
|
|
641
|
+
zdtype: e.nettype
|
|
642
|
+
});
|
|
643
|
+
else if (["about", "participants"].includes(e.effecttype))
|
|
644
|
+
Object.assign(s, {
|
|
645
|
+
fieIdType: e.effecttype === "about" ? 5 : 6,
|
|
646
|
+
aboutName: n
|
|
647
|
+
});
|
|
648
|
+
else {
|
|
649
|
+
const l = this.configData.filter((r) => r.id == e.id)[0], o = l && !["fk", "user"].includes(e.effecttype) ? {
|
|
650
|
+
insinuate: l.columnname,
|
|
651
|
+
fieIdType: l.effecttype === "checkbox" ? 7 : 2,
|
|
652
|
+
dictionarys: this.dictionarysP(l, t.i)
|
|
653
|
+
} : {}, d = ["fk", "user"].includes(e.effecttype) ? {
|
|
654
|
+
fieIdType: 3,
|
|
655
|
+
oldCheckzd: e.id,
|
|
656
|
+
fkname: n,
|
|
657
|
+
zdtype: e.nettype,
|
|
658
|
+
fkTable: e.fkentityname
|
|
659
|
+
} : {};
|
|
660
|
+
Object.assign(s, d, o);
|
|
661
|
+
}
|
|
662
|
+
return this.loadData[a] = Object.assign({ ...this.loadData[a] }, { ...s }), ["fk", "user"].includes(e.effectType) ? { ele: e, tableidx: a, statu: !1 } : null;
|
|
663
|
+
},
|
|
664
|
+
isCheckedName(t, e, i) {
|
|
665
|
+
if (e.length === 0)
|
|
666
|
+
return !1;
|
|
667
|
+
e.forEach((n) => {
|
|
668
|
+
n.hasName = t.has(n.val), n.i = t.get(n.val);
|
|
669
|
+
let l = this.loadData.filter((o) => o.index === n.i)[0];
|
|
670
|
+
n.ind = l ? l.ind : n.i;
|
|
671
|
+
});
|
|
672
|
+
let a = e.filter((n) => n.hasName);
|
|
673
|
+
if (a[0] === void 0)
|
|
674
|
+
return !1;
|
|
675
|
+
if (a.length == 1)
|
|
676
|
+
return a[0];
|
|
677
|
+
let s = a.filter((n) => n.code == this.language)[0];
|
|
678
|
+
return s || a[0];
|
|
679
|
+
},
|
|
680
|
+
handleSelect(t) {
|
|
681
|
+
if (this.excelImportData.length == 0)
|
|
682
|
+
return;
|
|
683
|
+
this.confirmLoading = !0, this.$refs.table.setLoadData([]);
|
|
684
|
+
let e = [...this.loadData];
|
|
685
|
+
e.map((i) => (i.checkzd = "", i)), this.loadData = [...e], this.getEntutityConfig();
|
|
686
|
+
},
|
|
687
|
+
getEntutityConfig(t) {
|
|
688
|
+
if (this.ruleFormData.entityValue === "") {
|
|
689
|
+
this.autoInputOver = !0;
|
|
690
|
+
return;
|
|
691
|
+
}
|
|
692
|
+
m({
|
|
693
|
+
codeGenId: this.ruleFormData.entityValue
|
|
694
|
+
}).then((e) => {
|
|
695
|
+
if (e.code === 200) {
|
|
696
|
+
const i = ["sysorgid", "createdtime", "updateduserid", "createduserid", "updatedtime"];
|
|
697
|
+
let a = e.data.map((s) => (s.langs = this.getLangs(s), s)).filter((s) => !i.includes(s.columnname));
|
|
698
|
+
this.configData = [...a], this.autoInput();
|
|
699
|
+
}
|
|
700
|
+
});
|
|
701
|
+
},
|
|
702
|
+
checkFile() {
|
|
703
|
+
this.confirmLoading || (this.autoInputOver = !1, this.$excelAction.importExcel(
|
|
704
|
+
(t, e, i, a, s) => {
|
|
705
|
+
this.confirmLoading = !0;
|
|
706
|
+
let n = [];
|
|
707
|
+
this.excelFielData = {
|
|
708
|
+
excelName: i,
|
|
709
|
+
excelSize: a / 1024 / 1024 > 1 ? (a / 1024 / 1024).toFixed(2) + "mb" : (a / 1024).toFixed(2) + "kb"
|
|
710
|
+
};
|
|
711
|
+
let l = [
|
|
712
|
+
"\u90E8\u95E8",
|
|
713
|
+
"\u521B\u5EFA\u65F6\u95F4",
|
|
714
|
+
"\u521B\u5EFA\u8005",
|
|
715
|
+
"\u66F4\u65B0\u65F6\u95F4",
|
|
716
|
+
"\u66F4\u65B0\u8005",
|
|
717
|
+
"\u4FEE\u6539\u65F6\u95F4",
|
|
718
|
+
"\u4FEE\u6539\u8005",
|
|
719
|
+
"Department",
|
|
720
|
+
"Creation time",
|
|
721
|
+
"Creator by",
|
|
722
|
+
"Update time",
|
|
723
|
+
"Updated by",
|
|
724
|
+
"Trang ch\u1EE7",
|
|
725
|
+
"Th\u1EDDi gian t\u1EA1o",
|
|
726
|
+
"Th\u1EDDi gian c\u1EADp nh\u1EADt",
|
|
727
|
+
"C\u1EADp nh\u1EADt"
|
|
728
|
+
], o = [];
|
|
729
|
+
t[0].forEach((r, c) => {
|
|
730
|
+
n.push({
|
|
731
|
+
index: c,
|
|
732
|
+
importName: r,
|
|
733
|
+
checkzd: "",
|
|
734
|
+
zdtype: "",
|
|
735
|
+
id: 0,
|
|
736
|
+
show: r.indexOf("(\u7528\u4E8E\u5BFC\u5165\u66F4\u65B0)") == -1 ? !l.includes(r) : !1
|
|
737
|
+
}), o.push({ importName: r });
|
|
738
|
+
}), 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;
|
|
739
|
+
let d = new FormData();
|
|
740
|
+
d.append("file", s[0]), b(d).then((r) => {
|
|
741
|
+
if (!r.success) {
|
|
742
|
+
this.$message.error(this.$i18nt("gd.https.uploadFail", "\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!") + ` ${r.message}`), this.excelImportData = [], this.loadData = [], this.excelData = [], this.excelFielData = {
|
|
743
|
+
excelName: "",
|
|
744
|
+
excelSize: ""
|
|
745
|
+
}, this.confirmLoading = !1;
|
|
746
|
+
return;
|
|
747
|
+
}
|
|
748
|
+
this.getEntutityConfig(), this.confirmLoading = this.autoInputOver ? !1 : this.confirmLoading, this.fileId = r.data;
|
|
749
|
+
const c = document.getElementById("file");
|
|
750
|
+
c && c.remove();
|
|
751
|
+
});
|
|
752
|
+
},
|
|
753
|
+
(t) => {
|
|
754
|
+
this.confirmLoading = t.statu !== "rejected";
|
|
755
|
+
}
|
|
756
|
+
));
|
|
757
|
+
},
|
|
758
|
+
open() {
|
|
759
|
+
this.fullscreen = !1, this.visible = !0, this.serviceData = [], this.searchData(""), this.excelFielData = {
|
|
760
|
+
excelName: "",
|
|
761
|
+
excelSize: ""
|
|
762
|
+
}, this.excelImportData = [], this.fileId = "", this.ruleFormData = {
|
|
763
|
+
serviceConsultant: "",
|
|
764
|
+
entityValue: this.typeImport == 1 ? this.tableData.id : ""
|
|
765
|
+
}, this.$nextTick(() => {
|
|
766
|
+
setTimeout(() => {
|
|
767
|
+
this.$refs.ruleForm.resetFields();
|
|
768
|
+
}, 0);
|
|
769
|
+
});
|
|
770
|
+
},
|
|
771
|
+
searchData(t) {
|
|
772
|
+
this.loading = !0;
|
|
773
|
+
const e = this.serviceData.filter((i) => this.ruleFormData.serviceConsultant === i.id);
|
|
774
|
+
this.serviceData = [], k({
|
|
775
|
+
name: t,
|
|
776
|
+
fkEntityName: "sys_user"
|
|
777
|
+
}).then((i) => {
|
|
778
|
+
if (this.loading = !1, i.code === 200) {
|
|
779
|
+
const a = i.data.filter((s) => this.ruleFormData.serviceConsultant !== s.id);
|
|
780
|
+
this.serviceData = e.concat(a);
|
|
781
|
+
}
|
|
782
|
+
});
|
|
783
|
+
},
|
|
784
|
+
getLangs(t, e) {
|
|
785
|
+
const i = this.$i18n.messages;
|
|
786
|
+
let a = [
|
|
787
|
+
{
|
|
788
|
+
code: "default",
|
|
789
|
+
val: t.columncomment || t.name,
|
|
790
|
+
name: ""
|
|
791
|
+
}
|
|
792
|
+
];
|
|
793
|
+
for (let s in i)
|
|
794
|
+
a.push({
|
|
795
|
+
code: s,
|
|
796
|
+
val: this.$i18n.t(`Dynamics.${t.transkey}`, s),
|
|
797
|
+
name: ""
|
|
798
|
+
});
|
|
799
|
+
return a;
|
|
800
|
+
},
|
|
801
|
+
dictionarysP(t, e) {
|
|
802
|
+
if (!t.dicttypecode)
|
|
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;
|
|
814
|
+
},
|
|
815
|
+
dictListFilter(t, e, i) {
|
|
816
|
+
if (t.map((n) => (n.langs = this.getLangs(n, n.name), n)), i.effectType !== "checkbox") {
|
|
817
|
+
let n = this.hasDict(t, e);
|
|
818
|
+
return n === !1 ? null : String(n.code);
|
|
819
|
+
}
|
|
820
|
+
let a = e == null ? [] : e.split(","), s = [];
|
|
821
|
+
return a.forEach((n) => {
|
|
822
|
+
let l = this.hasDict(t, n);
|
|
823
|
+
l && s.push(String(l.code));
|
|
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;
|
|
830
|
+
});
|
|
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
|
+
},
|
|
848
|
+
closed() {
|
|
849
|
+
this.fullscreen = !1, this.visible = !1;
|
|
850
|
+
},
|
|
851
|
+
toggleFullscreen() {
|
|
852
|
+
this.fullscreen = !this.fullscreen;
|
|
853
|
+
},
|
|
854
|
+
doEvent(t) {
|
|
855
|
+
const e = t.item.functionName, i = t.key ? t : t.item;
|
|
856
|
+
if (this[e] === void 0 && this.func === void 0) {
|
|
857
|
+
console.log("\u8BF7\u5B9A\u4E49 " + e + " \u65B9\u6CD5");
|
|
858
|
+
return;
|
|
859
|
+
}
|
|
860
|
+
this[e] && this[e](i);
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
};
|
|
864
|
+
var w = function() {
|
|
865
|
+
var e = this, i = e._self._c;
|
|
866
|
+
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) {
|
|
867
|
+
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), 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() {
|
|
869
|
+
return [i("el-form", { ref: "ruleForm", attrs: { model: e.ruleFormData, "label-width": "130px", rules: e.rules }, nativeOn: { submit: function(a) {
|
|
870
|
+
a.preventDefault();
|
|
871
|
+
} } }, [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) {
|
|
872
|
+
e.$set(e.ruleFormData, "entityValue", a);
|
|
873
|
+
}, expression: "ruleFormData.entityValue" } }, e._l(e.entityData, function(a) {
|
|
874
|
+
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) + " ")]);
|
|
875
|
+
}), 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) {
|
|
876
|
+
e.$set(e.ruleFormData, "serviceConsultant", a);
|
|
877
|
+
}, expression: "ruleFormData.serviceConsultant" } }, e._l(e.serviceData, function(a) {
|
|
878
|
+
return i("el-option", { key: a.id, attrs: { label: a.name, value: a.id } });
|
|
879
|
+
}), 1), i("div", { staticClass: "cao_setting", on: { click: e.lookup } }, [i("i", { staticClass: "el-input__icon el-icon-search" })])], 1)])], 1)], 1)], 1)];
|
|
880
|
+
}, proxy: !0 }, { key: "checkzd", fn: function({ column: a, row: s }) {
|
|
881
|
+
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) {
|
|
882
|
+
return e.handleChangeZd(n, s);
|
|
883
|
+
} }, model: { value: s.checkzd, callback: function(n) {
|
|
884
|
+
e.$set(s, "checkzd", n);
|
|
885
|
+
}, expression: "row.checkzd" } }, [e._l(e.configData, function(n) {
|
|
886
|
+
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);
|
|
887
|
+
}), 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) {
|
|
888
|
+
return e.editColumn(s);
|
|
889
|
+
} } })] : 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) {
|
|
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,
|
|
897
|
+
w,
|
|
898
|
+
N,
|
|
899
|
+
!1,
|
|
900
|
+
null,
|
|
901
|
+
"8daaff5f",
|
|
902
|
+
null,
|
|
903
|
+
null
|
|
904
|
+
);
|
|
905
|
+
const E = z.exports, R = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
906
|
+
__proto__: null,
|
|
907
|
+
default: E
|
|
908
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
909
|
+
export {
|
|
910
|
+
g as E,
|
|
911
|
+
E as X,
|
|
912
|
+
R as m
|
|
913
|
+
};
|