gds-plus-design-vue 1.2.61 → 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 -91087
- 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.6c47713a.mjs → main.70357352.mjs} +12 -10
- package/lib/main.77373aa4.mjs +441 -0
- package/lib/{main.28952cf7.mjs → main.7f44e3bf.mjs} +78 -143
- package/lib/main.8a2a590d.js +1 -0
- package/lib/main.ad1e8d4d.js +1 -0
- package/lib/{main.5b3edd34.mjs → main.b0e5e1b0.mjs} +9 -8
- package/lib/{main.b4704b4b.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.1787f71e.mjs → messages.ad082386.mjs} +994 -1952
- 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.9bee857f.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.926c6da1.mjs → system.datasource.986768c9.mjs} +15 -64
- package/lib/{system.dict.d48f77d5.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.a91a8420.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.ca5f4aae.mjs → system.file.73eeb731.mjs} +8 -7
- package/lib/{system.log.e80ba9c9.mjs → system.log.b86cf57f.mjs} +31 -93
- package/lib/system.log.fc60f5e6.js +1 -0
- package/lib/{system.machine.c1e753fb.mjs → system.machine.0114001b.mjs} +5 -25
- package/lib/system.machine.f1d95c86.js +1 -0
- package/lib/{system.notice.a6017645.mjs → system.notice.25ea8dca.mjs} +292 -474
- package/lib/system.notice.96c770a6.js +1 -0
- package/lib/{system.noticereceived.bbf6efd3.mjs → system.noticereceived.369f634c.mjs} +17 -24
- package/lib/system.noticereceived.dfe4ecc7.js +1 -0
- package/lib/{system.onlineuser.2b756c66.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.5f9e7b94.mjs → system.org.c20fe6b2.mjs} +3 -3
- package/lib/system.permissions.90f73461.js +9 -0
- package/lib/{system.permissions.17fe31d5.mjs → system.permissions.c3d34921.mjs} +4 -3
- package/lib/{system.plugin.c503c5b7.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.a169dcb9.mjs → system.pos.7946a99c.mjs} +31 -62
- package/lib/system.promptmanagement.b5fa6b2d.js +1 -0
- package/lib/{system.promptmanagement.00fc2917.mjs → system.promptmanagement.d7250932.mjs} +153 -287
- package/lib/system.role.03be0982.js +1 -0
- package/lib/{system.role.52d67131.mjs → system.role.75da7929.mjs} +8 -5
- package/lib/{system.sumberrules.357dc3bb.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.90598753.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.f66ddd64.mjs → system.timers.eb0b6f3e.mjs} +50 -174
- package/lib/system.translation.6237f071.js +1 -0
- package/lib/{system.translation.279d9e27.mjs → system.translation.e34f0891.mjs} +5 -5
- package/lib/{system.user.80ca9f42.mjs → system.user.fa2d2997.mjs} +17 -16
- package/lib/{system.user.10ae5122.js → system.user.fca3f2d6.js} +5 -5
- package/lib/{system.useraffiliation.b5c11d9e.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.6dbe70f3.mjs → system.webresource.469db736.mjs} +16 -58
- package/lib/{system.welcome.a162fc7d.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 +48 -23
- package/locale/id_ID.js +32 -7
- package/locale/vi_VN.js +1973 -1948
- package/locale/zh_CN.js +53 -29
- package/package.json +106 -105
- package/lib/chartbi.0d1d3b58.mjs +0 -27639
- package/lib/chartbi.d3f580d6.js +0 -60
- package/lib/main.0088ac99.js +0 -1
- package/lib/main.34c14bdb.js +0 -1
- package/lib/main.4b9adacf.js +0 -1
- package/lib/main.d1239940.js +0 -1
- package/lib/messages.add7c391.js +0 -9
- package/lib/system.account.00b82418.mjs +0 -2552
- package/lib/system.account.04cb26b6.js +0 -216
- package/lib/system.config.6244fa9b.js +0 -1
- package/lib/system.datasource.32878f5f.js +0 -1
- package/lib/system.dict.d25839ec.js +0 -1
- package/lib/system.duplicatechecking.4ed8c391.mjs +0 -2142
- package/lib/system.duplicatechecking.670ee24a.js +0 -1
- package/lib/system.email.52671629.mjs +0 -7432
- package/lib/system.email.dd537fd0.js +0 -41
- package/lib/system.fieldsecurity.4947c737.js +0 -1
- package/lib/system.file.93d65d16.js +0 -1
- package/lib/system.log.252cce0b.js +0 -1
- package/lib/system.machine.4e393981.js +0 -1
- package/lib/system.notice.ab23c15b.js +0 -1
- package/lib/system.noticereceived.123b764e.js +0 -1
- package/lib/system.onlineuser.295ad7f5.js +0 -1
- package/lib/system.org.c3bb51ff.js +0 -1
- package/lib/system.permissions.967200f1.js +0 -9
- package/lib/system.plugin.f8da8731.js +0 -1
- package/lib/system.pos.22fabf30.js +0 -1
- package/lib/system.promptmanagement.639a98e1.js +0 -1
- package/lib/system.role.4cf72743.js +0 -1
- package/lib/system.sumberrules.1a5b80df.js +0 -1
- package/lib/system.team.777feecf.mjs +0 -1000
- package/lib/system.team.ad10fc96.js +0 -1
- package/lib/system.teammembers.b193dd23.js +0 -1
- package/lib/system.timers.e31fe5fd.js +0 -38
- package/lib/system.translation.d3ed3d35.js +0 -1
- package/lib/system.useraffiliation.593c9ad4.js +0 -1
- package/lib/system.webresource.25e56654.js +0 -1
- package/lib/system.welcome.ec4e941f.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const components_chartbi=require("./components.chartbi.e4680eaa.js"),http_syscodegenerateconfigmanage=require("./http.syscodegenerateconfigmanage.840f1136.js"),http_main=require("./http.main.2f8a6936.js"),utils_util_js=require("./utils.util.js.50d1ec9c.js"),page_build=require("./page.build.846096e6.js");require("./utils.echarts.js.461a74e7.js");require("./form.designer.build.5a950455.js");require("vue");require("./components.table.17c02054.js");require("./utils.datepicker.js.8576e2fc.js");require("./components.form.91d5ed3e.js");require("./http.filemanage.7e6e3e1a.js");require("./components.iconselector.d712170f.js");require("./http.codegeneratemanage.aecadd5d.js");require("./http.duplicatechecking.ee5c414c.js");require("./http.menumanage.6d740f2c.js");const formFiled_vue_vue_type_style_index_0_lang="",_sfc_main={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1}},data(){return{ruleForm:{},codeList:[],id:"",allField:[],lookupItem:{},confirmLoading:!1,visible:!1,initialRuleForm:{},executeEventData:null,initData:null}},computed:{gclass(){return this.develop==1?"":this.record.customClass?`${this.record.customClass}`:""},style(){const e=this.record.css,t=this.develop==1?"":`${page_build.getCss(this.options)}max-width:100%;`,s=this.record.customCss?this.record.customCss:"";return`overflow: hidden;${t}${page_build.getCss(e)}${s}`},tableData(){let e=this.tableLists.filter(t=>{const s=this.options.tableName;return t.tablename===s})[0];return e||[]},options(){return this.record.options},list(){return this.record.list},labelWidth(){return`${this.options.labelWidth}${this.options.labelUnit}`},...components_chartbi.mapGetters(["tableLists"])},methods:{init(){const e=this.initData.data?this.initData.data:"",t=typeof e=="object"&&e[t]?e[t]:e;this.confirmLoading=!1,t?this.openData(this.initData):this.open(this.initData)},callBackFun(e){if(!(this.executeEventData.callback===void 0?!1:this.executeEventData.callback)){this.init();return}if(this.executeEventData.callbackComponents===""&&this.executeEventData.callbackFunction===""){this.init();return}const s={key:this.executeEventData.callbackComponents,functionName:this.executeEventData.callbackFunction,data:e,id:null,source:this.record,transfer:this.record,callback:!1,callbackComponents:"",callbackFunction:""};if(s.key===this.record.key){const i=s.functionName;this.confirmLoading=!1,this[i]&&this[i](s);return}this.record.doEvent(s),setTimeout(()=>{this.confirmLoading=!1},100)},lookupData(e){this.lookupItem=e;const t=e.options.columnName?e.options.columnName.toLowerCase():e.options.columnName,s=e.options.searchWid?e.options.searchWid+e.options.searchUnit:"90%";let i=e.options.fkEntityName.split(","),o=e.options.viewdeId,l=e.options.formdeId;if(["participants","about"].includes(e.options.effectType)){const n=e.aboutEntityConfig?e.aboutEntityConfig:[],a=n.filter(d=>d.isDefault)[0],r=a?a.fkEntityName:i[0],c=n.filter(d=>d.fkEntityName===r)[0];o=c?c.viewdeId:o,l=c?c.formdeId:l;const m=i.filter(d=>d!=r);i=[r].concat(m)}this.$refs.viewSearch.open({fkEntityName:i.join(","),effectType:e.options.effectType,viewId:o,formId:l,filterList:e.filterList?e.filterList:[],filterConfig:e.options.filterConfig,val:this.ruleForm[t],width:s})},lookupSeled(e){const t=["fk","about","user"].includes(this.lookupItem.options.effectType)?e.data[0]?e.data[0]:"":e.data,s=this.lookupItem.options.columnName?this.lookupItem.options.columnName.toLowerCase():this.lookupItem.options.columnName;this.ruleForm[s]=t;const i=this.allField.filter(o=>o.options.columnName===this.lookupItem.options.columnName)[0];i&&(this.$nextTick(()=>{setTimeout(()=>{console.log(t,e.fkData),i.setData({val:t,data:this.ruleForm,items:Object.assign(i,{effectType:i.options.effectType}),fkData:e.fkData})},0)}),this.handleChangeForm(i))},handleChangeForm(e){const t=e.options.columnName?e.options.columnName.toLowerCase():e.options.columnName,s=e.options.spaceTrim?e.options.spaceTrim:"none";["around","all"].includes(s)&&(this.ruleForm[t]=s==="around"?this.ruleForm[t].trim():this.ruleForm[t].replace(/\s+/g,"")),this.ruleForm[t]},open(e){this.visible=!0,this.confirmLoading=!0;const t=e.data?e.data:"";this.initData=e,this.id=typeof t=="object"&&t.id?t.id:t,typeof t=="object"&&(Object.assign(this.ruleForm,{...t}),this.processingData(t)),this.onlineGenerateList().then(async s=>{await this.baseInitData(),this.$nextTick(()=>{setTimeout(()=>{this.$refs.ruleForm.clearValidate(),this.confirmLoading=!1},0)})})},openData(e){this.visible=!0;const t=e.data?e.data:"";if(this.initData=e,this.id=typeof t=="object"&&t.id?t.id:t,!this.id){this.open(e);return}this.confirmLoading=!0,this.onlineGenerateList().then(async s=>{await this.baseInitData(),this.getDetail(this.id)})},getFormData(){this.verificationForm().then(e=>{this.callBackFun(e)})},save(){this.confirmLoading||(this.id==""?this.add():this.edit())},add(){this.confirmLoading=!0,this.verificationForm().then(e=>{e.id!==void 0&&delete e.id;const t=this.options.baseAddApi?this.options.baseAddApi:"";return http_main.baseAdd(e,t).then(s=>{if(s.code===200)this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.callBackFun(s.data);else{const i=typeof s.message=="string"?s.message:JSON.stringify(s.message);this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+i),this.confirmLoading=!1}})}).catch(e=>{this.confirmLoading=!1})},edit(){this.confirmLoading=!0,this.verificationForm().then(e=>{const t=Object.assign({...e},{id:this.id}),s=this.options.baseEditApi?this.options.baseEditApi:"";http_main.baseEdit(t,s).then(i=>{if(i.code===200)this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.callBackFun(t);else{const o=typeof i.message=="string"?i.message:JSON.stringify(i.message);this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+o),this.confirmLoading=!1}}).catch(()=>{this.confirmLoading=!1})}).catch(e=>{this.confirmLoading=!1})},getDetail(e){const t=this.options.baseDetailsApi?this.options.baseDetailsApi:"";http_main.baseDetails({tableId:this.tableData.id,id:e||this.id},t).then(s=>{if(s.code===200){const i=this.baseFormatterData(s.data[0]);this.ruleForm=i,this.processingData(s.data[0])}else this.$message.error(s.message)})},processingData(e){let t={...e},s=[];for(let i in t){const o=this.codeList.filter(a=>a.columnname===i)[0],l=this.allField.filter(a=>(a.options.columnName?a.options.columnName.toLowerCase():a.options.columnName)===i)[0];let n=o?o.effecttype:"";if(n==="checkbox")t[i]=t[i]===null||t[i]===""?[]:t[i].split(",");else if(n==="image")s.push({data:t[i],items:o,done:l});else if(n==="file")s.push({data:t[i],items:o,done:l});else if(n==="radio"||n==="select")t[i]=t[i]!==null?String(t[i]):"";else if(n==="double"||n==="inputnumber"||n==="double"||n==="currency")t[i]=t[i]!==""&&t[i]!==null?t[i]:void 0;else if(n==="fk"||n==="about"||n==="user")t[i]=t[i]?t[i]:"",s.push({data:t[i],items:o,done:l});else if(n==="switch")t[i]=t[i]===null?0:t[i];else if(n==="datepicker")t[i]=t[i]?t[i]:"";else if(n==="participants"){let a=[],r=t[i]?JSON.parse(t[i]):[];s.push({data:r,items:o,done:l}),r.forEach(c=>{c.id=Number(c.id),a.includes(c.id)||a.push(c.id)}),t[i]=a}}this.ruleForm=this.baseFormatterData(t),this.$nextTick(()=>{setTimeout(()=>{s.forEach(i=>{i.done&&i.done.setData&&i.done.setData({val:i.data,data:t,items:i.items}),i.done&&i.done.options&&i.done.options.effectType==="file"&&(i.done.sourceData=i.data)})},0),setTimeout(()=>{this.confirmLoading=!1},300)})},baseFormatterData(e){const t=this.allField.filter(i=>i.options.effectType==="double");let s=new Map;for(let i in e){let o=i.toLowerCase(),l=t.filter(n=>n.options.columnName.toLowerCase()===o)[0];if(l&&e[i]!==""&&e[i]!==null&&e[i]!==void 0){let n=utils_util_js.getMultiple(l.options);s.set(o,Number(e[i])*n)}else s.set(o,e[i])}return Object.fromEntries(s)},baseParserData(e){const t=this.allField.filter(i=>i.options.effectType==="double");let s=new Map;for(let i in e){let o=i.toLowerCase(),l=t.filter(n=>n.options.columnName.toLowerCase()===o)[0];if(l){let n=utils_util_js.getMultiple(l.options),a=l.options.precision===void 0?l.options.filedSize===void 0?0:l.options.filedSize:l.options.precision;s.set(o,Number((e[i]/n).toFixed(a)))}else s.set(o,e[i])}return Object.fromEntries(s)},verificationForm(){return new Promise((e,t)=>{let s=this.allField.filter(a=>["about"].includes(a.options.effectType)),i=this.allField.filter(a=>["participants"].includes(a.options.effectType)),o=new Map;s.forEach(a=>{const r=a.fkData.filter(f=>f.id!==""),c=a.options.columnName.toLowerCase(),m=a.options.relations.toLowerCase();let d=r.filter(f=>f.id==this.ruleForm[c])[0],u=m+"_abouttable";o.set(u,d?d.tableName:a.options.fkEntityName.split(",")[0]),o.set(m,d?d.name:"")}),i.forEach(a=>{const r=a.fkData.filter(u=>u.id!==""),c=a.options.columnName.toLowerCase();let m=r.filter(u=>this.ruleForm[c].includes(u.id)),d=[];m.forEach(u=>{d.push({id:u.id,name:u.name,tableName:u.tableName})}),o.set(c,JSON.stringify(d))});let l={...this.ruleForm};for(const a in l){const r=typeof l[a];r==="undefined"?l[a]="":r==="object"&&(l[a]=utils_util_js.formatting(l[a]))}const n=Object.assign({...this.baseParserData(Object.assign(l,Object.fromEntries(o)))},{tableId:this.tableData.id,fkList:[],updateFiled_GD:this.updateFiled});this.$refs.ruleForm.validate((a,r)=>{if(a)e(n);else{let c=new Map(Object.entries(r)),m=[];for(let p of c.keys())m.push(p);const d=r[m[0]][0],u=this.allField.filter(p=>p.options.columnName===d.field)[0],f=u?`${this.$i18nt(`Dynamics.${u.options.transKey}`,u.label)} (${d.field})`:d.field;this.$message.error(`${this.$i18nt("gd.https.errors","\u6821\u9A8C\u5931\u8D25")}: ${f} ${d.message}!`),t({err:`${this.$i18nt("gd.https.errors","\u6821\u9A8C\u5931\u8D25")}: ${f} ${d.message}!`})}})})},baseInitData(){return new Promise(e=>{this.allField=this.getItemList();const t=this.getInitColumnData();this.ruleForm=Object.assign(this.baseFormatterData(t),{id:this.id}),this.$nextTick(()=>{setTimeout(()=>{this.$refs.ruleForm.clearValidate()},0)}),e()})},onlineGenerateList(){return this.codeList.length>0?new Promise(e=>{e()}):http_syscodegenerateconfigmanage.onlineFormGetCodeGenerateList({codeGenId:this.tableData.id}).then(e=>(e.code==200&&(this.codeList=e.data),e))},getItemList(){let typeList=["input","textarea","datePicker","timePicker","inputNumber","radio","checkbox","select","rate","switch","slider","uploadImg","uploadFile","editor"],updateFiled=[],notBringToFields=[],itemList=[],currencyFiled=[];const traverse=array=>(array=array.filter((element,index)=>{["grid","tabs","collapse"].includes(element.type)&&element.columns.forEach(e=>{e.list=traverse(e.list)}),["card","drawer","dialog","batch","form","flexLayout","drawerContainer","containerPanel"].includes(element.type)&&(element.list=traverse(element.list)),element.type==="table"&&element.trs.forEach(e=>{e.tds.forEach(t=>{t.list=traverse(t.list)})});const names=element.options.columnName?element.options.columnName.toLowerCase():element.options.columnName;if(element.options&&element.options.effectType=="currency"&¤cyFiled.push(element),element.options&&names){itemList.push(element);let e=element.options.bringTo===void 0?!0:element.options.bringTo,t=this.codeList.filter(s=>s.columnname==names)[0];if(e&&t&&t.columnname!=="id"&&t.columnname!=="ownerid"&&updateFiled.push(t.id),element.options.effectType=="about"){let s=names.replace("_aboutid","_abouttable");t=this.codeList.filter(i=>i.columnname==s)[0],t&&updateFiled.push(t.id)}e&&names!=="id"||notBringToFields.push(names)}if(typeList.includes(element.type)&&element.rules!==void 0&&element.rules.length>0&&element.rules.map(item=>(item.message==="\u5FC5\u586B\u9879"&&(item.message=this.$i18nt("gd.placeholder.required","\u5FC5\u586B\u9879")),item.pattern!==void 0&&(item.pattern=eval(item.pattern)),item)),typeList.includes(element.type)){let e=this.codeList.filter(i=>i.columnname===names)[0],t=e&&e.issecurity!==void 0?e.issecurity:"N";element.lockShow=t==="Y";let s={transKey:element.options.transKey?element.options.transKey:e?e.transkey:null};if(t==="Y"&&e){element.isQuery=e===void 0?!0:e.isquery,element.isEdit=e===void 0?!0:e.isedit,element.isAdd=e===void 0?!0:e.isadd;let i=element.options.disabled!==void 0?element.options.disabled:!1;element.options.odisabled===void 0?s=Object.assign(s,{odisabled:i}):i=element.options.odisabled;let o=this.id===""?e.isadd?i:!0:e.isedit?i:!0,l=e.isquery?!1:!(e.isedit||e.isadd),n=this.id===""?e.isadd?element.options.bringTo:!1:e.isedit?element.options.bringTo:!1;e!==void 0&&(s=Object.assign(s,{hidden:l,disabled:o,columnName:names})),!n&&e&&(updateFiled=updateFiled.filter(r=>r!==e.id)),element.orules===void 0&&(element.orules=element.rules?element.rules:[]),o?element.rules=[]:element.rules=element.orules,e!==void 0&&!element.isAdd&&addData.push(e.id),e!==void 0&&!element.isEdit&&editData.push(e.id);let a=this.id===""?e.isquery||e.isadd:e.isquery||e.isedit;element.permissions=a}element.options=Object.assign({...element.options},s)}return!0}),array);return traverse(this.list),this.updateFiled=updateFiled.join(","),this.notBringToFields=notBringToFields,this.currencyFiled=currencyFiled,itemList},getInitColumnData(e){let t=new Map;return(e||this.allField.filter(i=>!i.componentItem)).forEach(i=>{const o=i.options.columnName.toLowerCase();if(["input","textarea","image","file","editor"].includes(i.options.effectType))t.set(o,i.options.defaultValue!==void 0?i.options.defaultValue:"");else if(["fk","user","select","radio"].includes(i.options.effectType))t.set(o,i.options.defaultValue!==void 0?i.options.defaultValue:void 0);else if(["participants","checkbox"].includes(i.options.effectType))t.set(o,i.options.defaultValue!==void 0?i.options.defaultValue:[]);else if(["switch"].includes(i.options.effectType)){const l=i.options.defaultValue!==void 0?i.options.defaultValue:0;t.set(o,l)}else if(["inputnumber","currency","double"].includes(i.options.effectType))t.set(o,i.options.defaultValue!==void 0?i.options.defaultValue==="undefined"?void 0:i.options.defaultValue:void 0);else if(["datepicker"].includes(i.options.effectType)){const n=(i.options.isCurrentTime!==void 0?i.options.isCurrentTime:!1)?utils_util_js.getCurrentTime():i.options.defaultValue!==void 0?i.options.defaultValue:"";t.set(o,n)}else t.set(o,i.options.defaultValue!==void 0?i.options.defaultValue:"")}),Object.fromEntries(t)},executeEvent(e){if(this.confirmLoading)return;this.executeEventData=e;const t=e.functionName?e.functionName:"";t&&this[t]!==void 0?this[t](e):console.log("\u6267\u884C\u9519\u8BEF")}},mounted(){this.record.executeEvent=this.executeEvent,this.record.type==="form"&&(this.ruleForm={...this.record.ruleForm})}};var _sfc_render=function e(){var t=this,s=t._self._c;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],class:t.gclass,style:t.style},[s("el-form",{ref:"ruleForm",attrs:{inline:t.options.inline,labelPosition:t.options.labelPosition,labelWidth:t.labelWidth,model:t.ruleForm},nativeOn:{submit:function(i){i.preventDefault()}}},[t._t("formItem",null,{ruleFormData:t.ruleForm,lookupData:t.lookupData,handleChangeForm:t.handleChangeForm,tableData:t.tableData})],2),s("gd-search",{ref:"viewSearch",attrs:{appendToBody:!0},on:{lookupSeled:t.lookupSeled}})],1)},_sfc_staticRenderFns=[],__component__=components_chartbi.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,!1,null,null,null,null);const formFiled=__component__.exports;exports.default=formFiled;
|
|
@@ -0,0 +1,505 @@
|
|
|
1
|
+
import { m as mapGetters, n as normalizeComponent } from "./components.chartbi.b043dcdc.mjs";
|
|
2
|
+
import { o as onlineFormGetCodeGenerateList } from "./http.syscodegenerateconfigmanage.6d2e5da0.mjs";
|
|
3
|
+
import { P as baseAdd, O as baseEdit, f as baseDetails } from "./http.main.40657f51.mjs";
|
|
4
|
+
import { k as getMultiple, f as formatting, j as getCurrentTime } from "./utils.util.js.82cd8447.mjs";
|
|
5
|
+
import { g as getCss } from "./page.build.685c1e15.mjs";
|
|
6
|
+
import "./utils.echarts.js.d1bb8ac6.mjs";
|
|
7
|
+
import "./form.designer.build.e521c9c6.mjs";
|
|
8
|
+
import "vue";
|
|
9
|
+
import "./components.table.e3e5e3bc.mjs";
|
|
10
|
+
import "./utils.datepicker.js.2076c2a2.mjs";
|
|
11
|
+
import "./components.form.3344c817.mjs";
|
|
12
|
+
import "./http.filemanage.c0de21d6.mjs";
|
|
13
|
+
import "./components.iconselector.8caabeaa.mjs";
|
|
14
|
+
import "./http.codegeneratemanage.2f925b10.mjs";
|
|
15
|
+
import "./http.duplicatechecking.31964ce7.mjs";
|
|
16
|
+
import "./http.menumanage.3240ba0d.mjs";
|
|
17
|
+
const formFiled_vue_vue_type_style_index_0_lang = "", _sfc_main = {
|
|
18
|
+
props: {
|
|
19
|
+
record: {
|
|
20
|
+
type: Object,
|
|
21
|
+
required: !0
|
|
22
|
+
},
|
|
23
|
+
develop: {
|
|
24
|
+
type: [Number, String],
|
|
25
|
+
default: 1
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
data() {
|
|
29
|
+
return {
|
|
30
|
+
ruleForm: {},
|
|
31
|
+
codeList: [],
|
|
32
|
+
id: "",
|
|
33
|
+
allField: [],
|
|
34
|
+
lookupItem: {},
|
|
35
|
+
confirmLoading: !1,
|
|
36
|
+
visible: !1,
|
|
37
|
+
initialRuleForm: {},
|
|
38
|
+
executeEventData: null,
|
|
39
|
+
initData: null
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
computed: {
|
|
43
|
+
gclass() {
|
|
44
|
+
return this.develop == 1 ? "" : this.record.customClass ? `${this.record.customClass}` : "";
|
|
45
|
+
},
|
|
46
|
+
style() {
|
|
47
|
+
const e = this.record.css, t = this.develop == 1 ? "" : `${getCss(this.options)}max-width:100%;`, s = this.record.customCss ? this.record.customCss : "";
|
|
48
|
+
return `overflow: hidden;${t}${getCss(e)}${s}`;
|
|
49
|
+
},
|
|
50
|
+
tableData() {
|
|
51
|
+
let e = this.tableLists.filter((t) => {
|
|
52
|
+
const s = this.options.tableName;
|
|
53
|
+
return t.tablename === s;
|
|
54
|
+
})[0];
|
|
55
|
+
return e || [];
|
|
56
|
+
},
|
|
57
|
+
options() {
|
|
58
|
+
return this.record.options;
|
|
59
|
+
},
|
|
60
|
+
list() {
|
|
61
|
+
return this.record.list;
|
|
62
|
+
},
|
|
63
|
+
labelWidth() {
|
|
64
|
+
return `${this.options.labelWidth}${this.options.labelUnit}`;
|
|
65
|
+
},
|
|
66
|
+
...mapGetters(["tableLists"])
|
|
67
|
+
},
|
|
68
|
+
methods: {
|
|
69
|
+
init() {
|
|
70
|
+
const e = this.initData.data ? this.initData.data : "", t = typeof e == "object" && e[t] ? e[t] : e;
|
|
71
|
+
this.confirmLoading = !1, t ? this.openData(this.initData) : this.open(this.initData);
|
|
72
|
+
},
|
|
73
|
+
callBackFun(e) {
|
|
74
|
+
if (!(this.executeEventData.callback === void 0 ? !1 : this.executeEventData.callback)) {
|
|
75
|
+
this.init();
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
if (this.executeEventData.callbackComponents === "" && this.executeEventData.callbackFunction === "") {
|
|
79
|
+
this.init();
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const s = {
|
|
83
|
+
key: this.executeEventData.callbackComponents,
|
|
84
|
+
functionName: this.executeEventData.callbackFunction,
|
|
85
|
+
data: e,
|
|
86
|
+
id: null,
|
|
87
|
+
source: this.record,
|
|
88
|
+
transfer: this.record,
|
|
89
|
+
callback: !1,
|
|
90
|
+
callbackComponents: "",
|
|
91
|
+
callbackFunction: ""
|
|
92
|
+
};
|
|
93
|
+
if (s.key === this.record.key) {
|
|
94
|
+
const i = s.functionName;
|
|
95
|
+
this.confirmLoading = !1, this[i] && this[i](s);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
this.record.doEvent(s), setTimeout(() => {
|
|
99
|
+
this.confirmLoading = !1;
|
|
100
|
+
}, 100);
|
|
101
|
+
},
|
|
102
|
+
lookupData(e) {
|
|
103
|
+
this.lookupItem = e;
|
|
104
|
+
const t = e.options.columnName ? e.options.columnName.toLowerCase() : e.options.columnName, s = e.options.searchWid ? e.options.searchWid + e.options.searchUnit : "90%";
|
|
105
|
+
let i = e.options.fkEntityName.split(","), o = e.options.viewdeId, l = e.options.formdeId;
|
|
106
|
+
if (["participants", "about"].includes(e.options.effectType)) {
|
|
107
|
+
const n = e.aboutEntityConfig ? e.aboutEntityConfig : [], a = n.filter((d) => d.isDefault)[0], r = a ? a.fkEntityName : i[0], c = n.filter((d) => d.fkEntityName === r)[0];
|
|
108
|
+
o = c ? c.viewdeId : o, l = c ? c.formdeId : l;
|
|
109
|
+
const m = i.filter((d) => d != r);
|
|
110
|
+
i = [r].concat(m);
|
|
111
|
+
}
|
|
112
|
+
this.$refs.viewSearch.open({
|
|
113
|
+
fkEntityName: i.join(","),
|
|
114
|
+
effectType: e.options.effectType,
|
|
115
|
+
viewId: o,
|
|
116
|
+
formId: l,
|
|
117
|
+
filterList: e.filterList ? e.filterList : [],
|
|
118
|
+
filterConfig: e.options.filterConfig,
|
|
119
|
+
val: this.ruleForm[t],
|
|
120
|
+
width: s
|
|
121
|
+
});
|
|
122
|
+
},
|
|
123
|
+
lookupSeled(e) {
|
|
124
|
+
const t = ["fk", "about", "user"].includes(this.lookupItem.options.effectType) ? e.data[0] ? e.data[0] : "" : e.data, s = this.lookupItem.options.columnName ? this.lookupItem.options.columnName.toLowerCase() : this.lookupItem.options.columnName;
|
|
125
|
+
this.ruleForm[s] = t;
|
|
126
|
+
const i = this.allField.filter((o) => o.options.columnName === this.lookupItem.options.columnName)[0];
|
|
127
|
+
i && (this.$nextTick(() => {
|
|
128
|
+
setTimeout(() => {
|
|
129
|
+
console.log(t, e.fkData), i.setData({
|
|
130
|
+
val: t,
|
|
131
|
+
data: this.ruleForm,
|
|
132
|
+
items: Object.assign(i, {
|
|
133
|
+
effectType: i.options.effectType
|
|
134
|
+
}),
|
|
135
|
+
fkData: e.fkData
|
|
136
|
+
});
|
|
137
|
+
}, 0);
|
|
138
|
+
}), this.handleChangeForm(i));
|
|
139
|
+
},
|
|
140
|
+
handleChangeForm(e) {
|
|
141
|
+
const t = e.options.columnName ? e.options.columnName.toLowerCase() : e.options.columnName, s = e.options.spaceTrim ? e.options.spaceTrim : "none";
|
|
142
|
+
["around", "all"].includes(s) && (this.ruleForm[t] = s === "around" ? this.ruleForm[t].trim() : this.ruleForm[t].replace(/\s+/g, "")), this.ruleForm[t];
|
|
143
|
+
},
|
|
144
|
+
open(e) {
|
|
145
|
+
this.visible = !0, this.confirmLoading = !0;
|
|
146
|
+
const t = e.data ? e.data : "";
|
|
147
|
+
this.initData = e, this.id = typeof t == "object" && t.id ? t.id : t, typeof t == "object" && (Object.assign(this.ruleForm, {
|
|
148
|
+
...t
|
|
149
|
+
}), this.processingData(t)), this.onlineGenerateList().then(async (s) => {
|
|
150
|
+
await this.baseInitData(), this.$nextTick(() => {
|
|
151
|
+
setTimeout(() => {
|
|
152
|
+
this.$refs.ruleForm.clearValidate(), this.confirmLoading = !1;
|
|
153
|
+
}, 0);
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
},
|
|
157
|
+
openData(e) {
|
|
158
|
+
this.visible = !0;
|
|
159
|
+
const t = e.data ? e.data : "";
|
|
160
|
+
if (this.initData = e, this.id = typeof t == "object" && t.id ? t.id : t, !this.id) {
|
|
161
|
+
this.open(e);
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
this.confirmLoading = !0, this.onlineGenerateList().then(async (s) => {
|
|
165
|
+
await this.baseInitData(), this.getDetail(this.id);
|
|
166
|
+
});
|
|
167
|
+
},
|
|
168
|
+
getFormData() {
|
|
169
|
+
this.verificationForm().then((e) => {
|
|
170
|
+
this.callBackFun(e);
|
|
171
|
+
});
|
|
172
|
+
},
|
|
173
|
+
save() {
|
|
174
|
+
this.confirmLoading || (this.id == "" ? this.add() : this.edit());
|
|
175
|
+
},
|
|
176
|
+
add() {
|
|
177
|
+
this.confirmLoading = !0, this.verificationForm().then((e) => {
|
|
178
|
+
e.id !== void 0 && delete e.id;
|
|
179
|
+
const t = this.options.baseAddApi ? this.options.baseAddApi : "";
|
|
180
|
+
return baseAdd(e, t).then((s) => {
|
|
181
|
+
if (s.code === 200)
|
|
182
|
+
this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.callBackFun(s.data);
|
|
183
|
+
else {
|
|
184
|
+
const i = typeof s.message == "string" ? s.message : JSON.stringify(s.message);
|
|
185
|
+
this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25:") + i), this.confirmLoading = !1;
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
}).catch((e) => {
|
|
189
|
+
this.confirmLoading = !1;
|
|
190
|
+
});
|
|
191
|
+
},
|
|
192
|
+
edit() {
|
|
193
|
+
this.confirmLoading = !0, this.verificationForm().then((e) => {
|
|
194
|
+
const t = Object.assign({ ...e }, { id: this.id }), s = this.options.baseEditApi ? this.options.baseEditApi : "";
|
|
195
|
+
baseEdit(t, s).then((i) => {
|
|
196
|
+
if (i.code === 200)
|
|
197
|
+
this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.callBackFun(t);
|
|
198
|
+
else {
|
|
199
|
+
const o = typeof i.message == "string" ? i.message : JSON.stringify(i.message);
|
|
200
|
+
this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25:") + o), this.confirmLoading = !1;
|
|
201
|
+
}
|
|
202
|
+
}).catch(() => {
|
|
203
|
+
this.confirmLoading = !1;
|
|
204
|
+
});
|
|
205
|
+
}).catch((e) => {
|
|
206
|
+
this.confirmLoading = !1;
|
|
207
|
+
});
|
|
208
|
+
},
|
|
209
|
+
getDetail(e) {
|
|
210
|
+
const t = this.options.baseDetailsApi ? this.options.baseDetailsApi : "";
|
|
211
|
+
baseDetails(
|
|
212
|
+
{
|
|
213
|
+
tableId: this.tableData.id,
|
|
214
|
+
id: e || this.id
|
|
215
|
+
},
|
|
216
|
+
t
|
|
217
|
+
).then((s) => {
|
|
218
|
+
if (s.code === 200) {
|
|
219
|
+
const i = this.baseFormatterData(s.data[0]);
|
|
220
|
+
this.ruleForm = i, this.processingData(s.data[0]);
|
|
221
|
+
} else
|
|
222
|
+
this.$message.error(s.message);
|
|
223
|
+
});
|
|
224
|
+
},
|
|
225
|
+
processingData(e) {
|
|
226
|
+
let t = {
|
|
227
|
+
...e
|
|
228
|
+
}, s = [];
|
|
229
|
+
for (let i in t) {
|
|
230
|
+
const o = this.codeList.filter((a) => a.columnname === i)[0], l = this.allField.filter((a) => (a.options.columnName ? a.options.columnName.toLowerCase() : a.options.columnName) === i)[0];
|
|
231
|
+
let n = o ? o.effecttype : "";
|
|
232
|
+
if (n === "checkbox")
|
|
233
|
+
t[i] = t[i] === null || t[i] === "" ? [] : t[i].split(",");
|
|
234
|
+
else if (n === "image")
|
|
235
|
+
s.push({
|
|
236
|
+
data: t[i],
|
|
237
|
+
items: o,
|
|
238
|
+
done: l
|
|
239
|
+
});
|
|
240
|
+
else if (n === "file")
|
|
241
|
+
s.push({
|
|
242
|
+
data: t[i],
|
|
243
|
+
items: o,
|
|
244
|
+
done: l
|
|
245
|
+
});
|
|
246
|
+
else if (n === "radio" || n === "select")
|
|
247
|
+
t[i] = t[i] !== null ? String(t[i]) : "";
|
|
248
|
+
else if (n === "double" || n === "inputnumber" || n === "double" || n === "currency")
|
|
249
|
+
t[i] = t[i] !== "" && t[i] !== null ? t[i] : void 0;
|
|
250
|
+
else if (n === "fk" || n === "about" || n === "user")
|
|
251
|
+
t[i] = t[i] ? t[i] : "", s.push({
|
|
252
|
+
data: t[i],
|
|
253
|
+
items: o,
|
|
254
|
+
done: l
|
|
255
|
+
});
|
|
256
|
+
else if (n === "switch")
|
|
257
|
+
t[i] = t[i] === null ? 0 : t[i];
|
|
258
|
+
else if (n === "datepicker")
|
|
259
|
+
t[i] = t[i] ? t[i] : "";
|
|
260
|
+
else if (n === "participants") {
|
|
261
|
+
let a = [], r = t[i] ? JSON.parse(t[i]) : [];
|
|
262
|
+
s.push({
|
|
263
|
+
data: r,
|
|
264
|
+
items: o,
|
|
265
|
+
done: l
|
|
266
|
+
}), r.forEach((c) => {
|
|
267
|
+
c.id = Number(c.id), a.includes(c.id) || a.push(c.id);
|
|
268
|
+
}), t[i] = a;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
this.ruleForm = this.baseFormatterData(t), this.$nextTick(() => {
|
|
272
|
+
setTimeout(() => {
|
|
273
|
+
s.forEach((i) => {
|
|
274
|
+
i.done && i.done.setData && i.done.setData({
|
|
275
|
+
val: i.data,
|
|
276
|
+
data: t,
|
|
277
|
+
items: i.items
|
|
278
|
+
}), i.done && i.done.options && i.done.options.effectType === "file" && (i.done.sourceData = i.data);
|
|
279
|
+
});
|
|
280
|
+
}, 0), setTimeout(() => {
|
|
281
|
+
this.confirmLoading = !1;
|
|
282
|
+
}, 300);
|
|
283
|
+
});
|
|
284
|
+
},
|
|
285
|
+
baseFormatterData(e) {
|
|
286
|
+
const t = this.allField.filter((i) => i.options.effectType === "double");
|
|
287
|
+
let s = /* @__PURE__ */ new Map();
|
|
288
|
+
for (let i in e) {
|
|
289
|
+
let o = i.toLowerCase(), l = t.filter((n) => n.options.columnName.toLowerCase() === o)[0];
|
|
290
|
+
if (l && e[i] !== "" && e[i] !== null && e[i] !== void 0) {
|
|
291
|
+
let n = getMultiple(l.options);
|
|
292
|
+
s.set(o, Number(e[i]) * n);
|
|
293
|
+
} else
|
|
294
|
+
s.set(o, e[i]);
|
|
295
|
+
}
|
|
296
|
+
return Object.fromEntries(s);
|
|
297
|
+
},
|
|
298
|
+
baseParserData(e) {
|
|
299
|
+
const t = this.allField.filter((i) => i.options.effectType === "double");
|
|
300
|
+
let s = /* @__PURE__ */ new Map();
|
|
301
|
+
for (let i in e) {
|
|
302
|
+
let o = i.toLowerCase(), l = t.filter((n) => n.options.columnName.toLowerCase() === o)[0];
|
|
303
|
+
if (l) {
|
|
304
|
+
let n = getMultiple(l.options), a = l.options.precision === void 0 ? l.options.filedSize === void 0 ? 0 : l.options.filedSize : l.options.precision;
|
|
305
|
+
s.set(o, Number((e[i] / n).toFixed(a)));
|
|
306
|
+
} else
|
|
307
|
+
s.set(o, e[i]);
|
|
308
|
+
}
|
|
309
|
+
return Object.fromEntries(s);
|
|
310
|
+
},
|
|
311
|
+
verificationForm() {
|
|
312
|
+
return new Promise((e, t) => {
|
|
313
|
+
let s = this.allField.filter((a) => ["about"].includes(a.options.effectType)), i = this.allField.filter((a) => ["participants"].includes(a.options.effectType)), o = /* @__PURE__ */ new Map();
|
|
314
|
+
s.forEach((a) => {
|
|
315
|
+
const r = a.fkData.filter((f) => f.id !== ""), c = a.options.columnName.toLowerCase(), m = a.options.relations.toLowerCase();
|
|
316
|
+
let d = r.filter((f) => f.id == this.ruleForm[c])[0], u = m + "_abouttable";
|
|
317
|
+
o.set(u, d ? d.tableName : a.options.fkEntityName.split(",")[0]), o.set(m, d ? d.name : "");
|
|
318
|
+
}), i.forEach((a) => {
|
|
319
|
+
const r = a.fkData.filter((u) => u.id !== ""), c = a.options.columnName.toLowerCase();
|
|
320
|
+
let m = r.filter((u) => this.ruleForm[c].includes(u.id)), d = [];
|
|
321
|
+
m.forEach((u) => {
|
|
322
|
+
d.push({
|
|
323
|
+
id: u.id,
|
|
324
|
+
name: u.name,
|
|
325
|
+
tableName: u.tableName
|
|
326
|
+
});
|
|
327
|
+
}), o.set(c, JSON.stringify(d));
|
|
328
|
+
});
|
|
329
|
+
let l = {
|
|
330
|
+
...this.ruleForm
|
|
331
|
+
};
|
|
332
|
+
for (const a in l) {
|
|
333
|
+
const r = typeof l[a];
|
|
334
|
+
r === "undefined" ? l[a] = "" : r === "object" && (l[a] = formatting(l[a]));
|
|
335
|
+
}
|
|
336
|
+
const n = Object.assign(
|
|
337
|
+
{
|
|
338
|
+
...this.baseParserData(Object.assign(l, Object.fromEntries(o)))
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
tableId: this.tableData.id,
|
|
342
|
+
fkList: [],
|
|
343
|
+
updateFiled_GD: this.updateFiled
|
|
344
|
+
}
|
|
345
|
+
);
|
|
346
|
+
this.$refs.ruleForm.validate((a, r) => {
|
|
347
|
+
if (a)
|
|
348
|
+
e(n);
|
|
349
|
+
else {
|
|
350
|
+
let c = new Map(Object.entries(r)), m = [];
|
|
351
|
+
for (let p of c.keys())
|
|
352
|
+
m.push(p);
|
|
353
|
+
const d = r[m[0]][0], u = this.allField.filter((p) => p.options.columnName === d.field)[0], f = u ? `${this.$i18nt(`Dynamics.${u.options.transKey}`, u.label)} (${d.field})` : d.field;
|
|
354
|
+
this.$message.error(`${this.$i18nt("gd.https.errors", "\u6821\u9A8C\u5931\u8D25")}: ${f} ${d.message}!`), t({
|
|
355
|
+
err: `${this.$i18nt("gd.https.errors", "\u6821\u9A8C\u5931\u8D25")}: ${f} ${d.message}!`
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
});
|
|
360
|
+
},
|
|
361
|
+
baseInitData() {
|
|
362
|
+
return new Promise((e) => {
|
|
363
|
+
this.allField = this.getItemList();
|
|
364
|
+
const t = this.getInitColumnData();
|
|
365
|
+
this.ruleForm = Object.assign(this.baseFormatterData(t), {
|
|
366
|
+
id: this.id
|
|
367
|
+
}), this.$nextTick(() => {
|
|
368
|
+
setTimeout(() => {
|
|
369
|
+
this.$refs.ruleForm.clearValidate();
|
|
370
|
+
}, 0);
|
|
371
|
+
}), e();
|
|
372
|
+
});
|
|
373
|
+
},
|
|
374
|
+
onlineGenerateList() {
|
|
375
|
+
return this.codeList.length > 0 ? new Promise((e) => {
|
|
376
|
+
e();
|
|
377
|
+
}) : onlineFormGetCodeGenerateList({
|
|
378
|
+
codeGenId: this.tableData.id
|
|
379
|
+
}).then((e) => (e.code == 200 && (this.codeList = e.data), e));
|
|
380
|
+
},
|
|
381
|
+
getItemList() {
|
|
382
|
+
let typeList = [
|
|
383
|
+
"input",
|
|
384
|
+
"textarea",
|
|
385
|
+
"datePicker",
|
|
386
|
+
"timePicker",
|
|
387
|
+
"inputNumber",
|
|
388
|
+
"radio",
|
|
389
|
+
"checkbox",
|
|
390
|
+
"select",
|
|
391
|
+
"rate",
|
|
392
|
+
"switch",
|
|
393
|
+
"slider",
|
|
394
|
+
"uploadImg",
|
|
395
|
+
"uploadFile",
|
|
396
|
+
"editor"
|
|
397
|
+
], updateFiled = [], notBringToFields = [], itemList = [], currencyFiled = [];
|
|
398
|
+
const traverse = (array) => (array = array.filter((element, index) => {
|
|
399
|
+
["grid", "tabs", "collapse"].includes(element.type) && element.columns.forEach((e) => {
|
|
400
|
+
e.list = traverse(e.list);
|
|
401
|
+
}), ["card", "drawer", "dialog", "batch", "form", "flexLayout", "drawerContainer", "containerPanel"].includes(element.type) && (element.list = traverse(element.list)), element.type === "table" && element.trs.forEach((e) => {
|
|
402
|
+
e.tds.forEach((t) => {
|
|
403
|
+
t.list = traverse(t.list);
|
|
404
|
+
});
|
|
405
|
+
});
|
|
406
|
+
const names = element.options.columnName ? element.options.columnName.toLowerCase() : element.options.columnName;
|
|
407
|
+
if (element.options && element.options.effectType == "currency" && currencyFiled.push(element), element.options && names) {
|
|
408
|
+
itemList.push(element);
|
|
409
|
+
let e = element.options.bringTo === void 0 ? !0 : element.options.bringTo, t = this.codeList.filter((s) => s.columnname == names)[0];
|
|
410
|
+
if (e && t && t.columnname !== "id" && t.columnname !== "ownerid" && updateFiled.push(t.id), element.options.effectType == "about") {
|
|
411
|
+
let s = names.replace("_aboutid", "_abouttable");
|
|
412
|
+
t = this.codeList.filter((i) => i.columnname == s)[0], t && updateFiled.push(t.id);
|
|
413
|
+
}
|
|
414
|
+
e && names !== "id" || notBringToFields.push(names);
|
|
415
|
+
}
|
|
416
|
+
if (typeList.includes(element.type) && element.rules !== void 0 && element.rules.length > 0 && element.rules.map((item) => (item.message === "\u5FC5\u586B\u9879" && (item.message = this.$i18nt("gd.placeholder.required", "\u5FC5\u586B\u9879")), item.pattern !== void 0 && (item.pattern = eval(item.pattern)), item)), typeList.includes(element.type)) {
|
|
417
|
+
let e = this.codeList.filter((i) => i.columnname === names)[0], t = e && e.issecurity !== void 0 ? e.issecurity : "N";
|
|
418
|
+
element.lockShow = t === "Y";
|
|
419
|
+
let s = {
|
|
420
|
+
transKey: element.options.transKey ? element.options.transKey : e ? e.transkey : null
|
|
421
|
+
};
|
|
422
|
+
if (t === "Y" && e) {
|
|
423
|
+
element.isQuery = e === void 0 ? !0 : e.isquery, element.isEdit = e === void 0 ? !0 : e.isedit, element.isAdd = e === void 0 ? !0 : e.isadd;
|
|
424
|
+
let i = element.options.disabled !== void 0 ? element.options.disabled : !1;
|
|
425
|
+
element.options.odisabled === void 0 ? s = Object.assign(s, {
|
|
426
|
+
odisabled: i
|
|
427
|
+
}) : i = element.options.odisabled;
|
|
428
|
+
let o = this.id === "" ? e.isadd ? i : !0 : e.isedit ? i : !0, l = e.isquery ? !1 : !(e.isedit || e.isadd), n = this.id === "" ? e.isadd ? element.options.bringTo : !1 : e.isedit ? element.options.bringTo : !1;
|
|
429
|
+
e !== void 0 && (s = Object.assign(s, {
|
|
430
|
+
hidden: l,
|
|
431
|
+
disabled: o,
|
|
432
|
+
columnName: names
|
|
433
|
+
})), !n && e && (updateFiled = updateFiled.filter((r) => r !== e.id)), element.orules === void 0 && (element.orules = element.rules ? element.rules : []), o ? element.rules = [] : element.rules = element.orules, e !== void 0 && !element.isAdd && addData.push(e.id), e !== void 0 && !element.isEdit && editData.push(e.id);
|
|
434
|
+
let a = this.id === "" ? e.isquery || e.isadd : e.isquery || e.isedit;
|
|
435
|
+
element.permissions = a;
|
|
436
|
+
}
|
|
437
|
+
element.options = Object.assign(
|
|
438
|
+
{
|
|
439
|
+
...element.options
|
|
440
|
+
},
|
|
441
|
+
s
|
|
442
|
+
);
|
|
443
|
+
}
|
|
444
|
+
return !0;
|
|
445
|
+
}), array);
|
|
446
|
+
return traverse(this.list), this.updateFiled = updateFiled.join(","), this.notBringToFields = notBringToFields, this.currencyFiled = currencyFiled, itemList;
|
|
447
|
+
},
|
|
448
|
+
getInitColumnData(e) {
|
|
449
|
+
let t = /* @__PURE__ */ new Map();
|
|
450
|
+
return (e || this.allField.filter((i) => !i.componentItem)).forEach((i) => {
|
|
451
|
+
const o = i.options.columnName.toLowerCase();
|
|
452
|
+
if (["input", "textarea", "image", "file", "editor"].includes(i.options.effectType))
|
|
453
|
+
t.set(o, i.options.defaultValue !== void 0 ? i.options.defaultValue : "");
|
|
454
|
+
else if (["fk", "user", "select", "radio"].includes(i.options.effectType))
|
|
455
|
+
t.set(o, i.options.defaultValue !== void 0 ? i.options.defaultValue : void 0);
|
|
456
|
+
else if (["participants", "checkbox"].includes(i.options.effectType))
|
|
457
|
+
t.set(o, i.options.defaultValue !== void 0 ? i.options.defaultValue : []);
|
|
458
|
+
else if (["switch"].includes(i.options.effectType)) {
|
|
459
|
+
const l = i.options.defaultValue !== void 0 ? i.options.defaultValue : 0;
|
|
460
|
+
t.set(o, l);
|
|
461
|
+
} else if (["inputnumber", "currency", "double"].includes(i.options.effectType))
|
|
462
|
+
t.set(
|
|
463
|
+
o,
|
|
464
|
+
i.options.defaultValue !== void 0 ? i.options.defaultValue === "undefined" ? void 0 : i.options.defaultValue : void 0
|
|
465
|
+
);
|
|
466
|
+
else if (["datepicker"].includes(i.options.effectType)) {
|
|
467
|
+
const n = (i.options.isCurrentTime !== void 0 ? i.options.isCurrentTime : !1) ? getCurrentTime() : i.options.defaultValue !== void 0 ? i.options.defaultValue : "";
|
|
468
|
+
t.set(o, n);
|
|
469
|
+
} else
|
|
470
|
+
t.set(o, i.options.defaultValue !== void 0 ? i.options.defaultValue : "");
|
|
471
|
+
}), Object.fromEntries(t);
|
|
472
|
+
},
|
|
473
|
+
executeEvent(e) {
|
|
474
|
+
if (this.confirmLoading)
|
|
475
|
+
return;
|
|
476
|
+
this.executeEventData = e;
|
|
477
|
+
const t = e.functionName ? e.functionName : "";
|
|
478
|
+
t && this[t] !== void 0 ? this[t](e) : console.log("\u6267\u884C\u9519\u8BEF");
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
mounted() {
|
|
482
|
+
this.record.executeEvent = this.executeEvent, this.record.type === "form" && (this.ruleForm = {
|
|
483
|
+
...this.record.ruleForm
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
var _sfc_render = function e() {
|
|
488
|
+
var t = this, s = t._self._c;
|
|
489
|
+
return s("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }], class: t.gclass, style: t.style }, [s("el-form", { ref: "ruleForm", attrs: { inline: t.options.inline, labelPosition: t.options.labelPosition, labelWidth: t.labelWidth, model: t.ruleForm }, nativeOn: { submit: function(i) {
|
|
490
|
+
i.preventDefault();
|
|
491
|
+
} } }, [t._t("formItem", null, { ruleFormData: t.ruleForm, lookupData: t.lookupData, handleChangeForm: t.handleChangeForm, tableData: t.tableData })], 2), s("gd-search", { ref: "viewSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: t.lookupSeled } })], 1);
|
|
492
|
+
}, _sfc_staticRenderFns = [], __component__ = /* @__PURE__ */ normalizeComponent(
|
|
493
|
+
_sfc_main,
|
|
494
|
+
_sfc_render,
|
|
495
|
+
_sfc_staticRenderFns,
|
|
496
|
+
!1,
|
|
497
|
+
null,
|
|
498
|
+
null,
|
|
499
|
+
null,
|
|
500
|
+
null
|
|
501
|
+
);
|
|
502
|
+
const formFiled = __component__.exports;
|
|
503
|
+
export {
|
|
504
|
+
formFiled as default
|
|
505
|
+
};
|