gds-plus-design-vue 1.2.71 → 1.2.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{addPermission.c72ebbe0.js → addPermission.e559c495.js} +1 -1
- package/lib/{addPermission.179a09f4.mjs → addPermission.f2eb7564.mjs} +92 -92
- package/lib/{approvalModel.7cfcac3c.js → approvalModel.2b97fdf8.js} +1 -1
- package/lib/{approvalModel.7b550187.mjs → approvalModel.7b3cb5c5.mjs} +3 -3
- package/lib/{attribute.e9a8faa1.mjs → attribute.4f814780.mjs} +93 -93
- package/lib/{attribute.3fed1dd9.js → attribute.7b4971f5.js} +1 -1
- package/lib/{businessRules.cf106f09.js → businessRules.4f7349f3.js} +1 -1
- package/lib/{businessRules.d7d35011.mjs → businessRules.7ca458f8.mjs} +2 -2
- package/lib/{buttonRule.2afe380d.mjs → buttonRule.4aa9cfd8.mjs} +2 -2
- package/lib/{buttonRule.737e8e3f.js → buttonRule.ba9528ab.js} +1 -1
- package/lib/{chartDisplayRules.c9162f81.js → chartDisplayRules.25489412.js} +1 -1
- package/lib/{chartDisplayRules.370065e8.mjs → chartDisplayRules.63e53aa7.mjs} +1 -1
- package/lib/{components.chartbi.3bbac955.js → components.chartbi.13a8a7b5.js} +3 -3
- package/lib/{components.chartbi.571c5ff5.mjs → components.chartbi.7356b244.mjs} +4 -4
- package/lib/{components.coloreditor.06cf0433.mjs → components.coloreditor.20f8b336.mjs} +1 -1
- package/lib/{components.coloreditor.f81d322a.js → components.coloreditor.8afc4731.js} +1 -1
- package/lib/{components.dataassign.565d22c0.js → components.dataassign.59a87bfd.js} +1 -1
- package/lib/{components.dataassign.21d3938b.mjs → components.dataassign.e398cc99.mjs} +1 -1
- package/lib/{components.echarts.490abdfa.mjs → components.echarts.17e42353.mjs} +1 -1
- package/lib/{components.echarts.fe84f881.js → components.echarts.5dea23f6.js} +1 -1
- package/lib/{components.exception.ee1c4f83.mjs → components.exception.8689aba2.mjs} +1 -1
- package/lib/{components.exception.374f2ad9.js → components.exception.b4ddeaba.js} +1 -1
- package/lib/{components.form.5533a8c3.js → components.form.14ed3374.js} +2 -2
- package/lib/{components.form.db8af727.mjs → components.form.8047a9c3.mjs} +2 -2
- package/lib/{components.globalheader.2eb787a4.js → components.globalheader.5418b5ec.js} +1 -1
- package/lib/{components.globalheader.b3b35343.mjs → components.globalheader.bc91e6fe.mjs} +3 -3
- package/lib/{components.iconselector.f5a58033.js → components.iconselector.4b5b7901.js} +1 -1
- package/lib/{components.iconselector.8940b1a9.mjs → components.iconselector.d2d970ba.mjs} +1 -1
- package/lib/{components.imgpreview.f05b3e06.mjs → components.imgpreview.0563c338.mjs} +1 -1
- package/lib/{components.imgpreview.d97cf25c.js → components.imgpreview.5fe318f7.js} +1 -1
- package/lib/{components.lunccalendar.2a097955.mjs → components.lunccalendar.9a41ea40.mjs} +1 -1
- package/lib/{components.lunccalendar.18f84642.js → components.lunccalendar.f18b2da3.js} +1 -1
- package/lib/{components.middleware.de012955.mjs → components.middleware.24511f17.mjs} +2 -2
- package/lib/{components.middleware.43b9b264.js → components.middleware.64b6a988.js} +1 -1
- package/lib/{components.modaltitle.5060623f.mjs → components.modaltitle.4f454200.mjs} +1 -1
- package/lib/{components.modaltitle.957cab33.js → components.modaltitle.d7ef34cb.js} +1 -1
- package/lib/{components.multitab.5eb6edff.mjs → components.multitab.15b91668.mjs} +1 -1
- package/lib/{components.multitab.80eeb3ae.js → components.multitab.92eb4b1e.js} +1 -1
- package/lib/{components.selecttree.756c4d22.mjs → components.selecttree.c615fe3e.mjs} +1 -1
- package/lib/{components.selecttree.2fe70d88.js → components.selecttree.ce4fbb44.js} +1 -1
- package/lib/{components.settingdrawer.8c12650b.js → components.settingdrawer.4581f5b1.js} +1 -1
- package/lib/{components.settingdrawer.29dbc31e.mjs → components.settingdrawer.bdd68e73.mjs} +1 -1
- package/lib/{components.sidemenu.0673fe0a.mjs → components.sidemenu.c40eee2e.mjs} +1 -1
- package/lib/{components.sidemenu.240dfde7.js → components.sidemenu.cd6d0301.js} +1 -1
- package/lib/{components.sidenavmenu.b1330d69.js → components.sidenavmenu.1f0bbfca.js} +1 -1
- package/lib/{components.sidenavmenu.fa81ff82.mjs → components.sidenavmenu.47d7f44a.mjs} +3 -3
- package/lib/{components.statuschange.858b72e8.js → components.statuschange.190f14ff.js} +1 -1
- package/lib/{components.statuschange.fae4adba.mjs → components.statuschange.85956695.mjs} +1 -1
- package/lib/{components.table.9ed77207.mjs → components.table.389ab22a.mjs} +2 -2
- package/lib/{components.table.1e338902.js → components.table.d016f609.js} +1 -1
- package/lib/{components.tableumy.3e1c9a5b.mjs → components.tableumy.750ec792.mjs} +1 -1
- package/lib/{components.tableumy.1d804d70.js → components.tableumy.aa73378d.js} +1 -1
- package/lib/{components.tablevirtual.8e21a6e7.js → components.tablevirtual.879ff28f.js} +1 -1
- package/lib/{components.tablevirtual.66890b2c.mjs → components.tablevirtual.9bf87b78.mjs} +1 -1
- package/lib/{components.teamsharing.3a17ddc0.mjs → components.teamsharing.b9f112cf.mjs} +1 -1
- package/lib/{components.teamsharing.89e668fd.js → components.teamsharing.efe58448.js} +1 -1
- package/lib/{components.tooltip.376d95fe.mjs → components.tooltip.065f3dee.mjs} +1 -1
- package/lib/{components.tooltip.0ea7e2b1.js → components.tooltip.edf8e4ca.js} +1 -1
- package/lib/{components.uploadfile.0a5a1608.mjs → components.uploadfile.0439b870.mjs} +1 -1
- package/lib/{components.uploadfile.8e0e702c.js → components.uploadfile.586aca36.js} +1 -1
- package/lib/{components.uploadimg.bc160e00.js → components.uploadimg.2324089d.js} +1 -1
- package/lib/{components.uploadimg.decb0360.mjs → components.uploadimg.5f2194ff.mjs} +1 -1
- package/lib/{components.verificationcode.140533c7.js → components.verificationcode.863ff11e.js} +1 -1
- package/lib/{components.verificationcode.7091b10b.mjs → components.verificationcode.d8893ff6.mjs} +1 -1
- package/lib/{components.viewformdetails.d241c652.mjs → components.viewformdetails.1236a66e.mjs} +3 -3
- package/lib/{components.viewformdetails.940addba.js → components.viewformdetails.328c8642.js} +1 -1
- package/lib/{components.viewloading.aae3aab4.mjs → components.viewloading.5761b277.mjs} +1 -1
- package/lib/{components.viewloading.1e9f4b3c.js → components.viewloading.5b9c8fee.js} +1 -1
- package/lib/{components.watermark.d9ec8130.js → components.watermark.af8b5718.js} +1 -1
- package/lib/{components.watermark.2ec3260c.mjs → components.watermark.d3638d63.mjs} +1 -1
- package/lib/{components.xlsxexport.0d1553b1.js → components.xlsxexport.8c121797.js} +1 -1
- package/lib/{components.xlsxexport.c33f83ca.mjs → components.xlsxexport.a1b7b087.mjs} +2 -2
- package/lib/{components.xlsximport.8c209857.js → components.xlsximport.c53c50f6.js} +1 -1
- package/lib/{components.xlsximport.81df7841.mjs → components.xlsximport.d39bfeaa.mjs} +1 -1
- package/lib/{copy.8db86d9f.mjs → copy.3b06d60f.mjs} +1 -1
- package/lib/{copy.a8753f38.js → copy.fa2fcb22.js} +1 -1
- package/lib/{createFile.04a6b293.js → createFile.526dd6db.js} +1 -1
- package/lib/{createFile.4cac1673.mjs → createFile.c8d65b52.mjs} +93 -93
- package/lib/{createSubfolders.e105fa86.js → createSubfolders.51df8fcd.js} +1 -1
- package/lib/{createSubfolders.eac5ccae.mjs → createSubfolders.f8cad77f.mjs} +1 -1
- package/lib/{dialogLayout.bf435838.mjs → dialogLayout.539feafb.mjs} +1 -1
- package/lib/{dialogLayout.f0779aed.js → dialogLayout.621a3d40.js} +1 -1
- package/lib/{drawerContainer.6ab3df46.mjs → drawerContainer.790b0ee6.mjs} +7 -7
- package/lib/{drawerContainer.8f9df583.js → drawerContainer.c971d22d.js} +1 -1
- package/lib/{drawerLayout.b6c7c3c6.js → drawerLayout.accd44be.js} +1 -1
- package/lib/{drawerLayout.e3c0164d.mjs → drawerLayout.c52b8374.mjs} +1 -1
- package/lib/{editForm.aef93ed0.mjs → editForm.83d10fae.mjs} +1 -1
- package/lib/{editForm.0f3fd3b0.js → editForm.e284e5ec.js} +1 -1
- package/lib/{extendedAttributes.ef3ead02.js → extendedAttributes.bfff1926.js} +1 -1
- package/lib/{extendedAttributes.ea93dbaa.mjs → extendedAttributes.e6b11c68.mjs} +93 -93
- package/lib/{fileSearch.5c8a883d.mjs → fileSearch.423b64a3.mjs} +92 -92
- package/lib/{fileSearch.43465e1c.js → fileSearch.e849491c.js} +1 -1
- package/lib/{flow.designer.81c29f62.mjs → flow.designer.5feba43c.mjs} +6 -6
- package/lib/{flow.designer.ffd0aa8b.js → flow.designer.85d0054b.js} +1 -1
- package/lib/{flow.list.ab420927.mjs → flow.list.82131d80.mjs} +3 -3
- package/lib/{flow.list.4c05f2f0.js → flow.list.e001d91a.js} +1 -1
- package/lib/form.build.19f0c882.js +1 -0
- package/lib/{form.build.d04773f0.mjs → form.build.33cc213e.mjs} +2 -2
- package/lib/{form.designer.build.dac501fa.js → form.designer.build.2bcc355d.js} +1 -1
- package/lib/{form.designer.build.c82cb559.mjs → form.designer.build.7dc12e87.mjs} +16 -16
- package/lib/{formFiled.4b5062d7.js → formFiled.40284ed9.js} +1 -1
- package/lib/{formFiled.c949a27f.mjs → formFiled.5a1c8f7f.mjs} +7 -7
- package/lib/gd-initial.js +1 -1
- package/lib/gd-initial.mjs +92 -92
- package/lib/{index.d95c407c.js → index.07adebf0.js} +2 -2
- package/lib/{index.9deaa991.mjs → index.340d6f00.mjs} +110 -110
- package/lib/{layoutBlocks.26e1b57b.js → layoutBlocks.756e4b57.js} +1 -1
- package/lib/{layoutBlocks.31454610.mjs → layoutBlocks.816b49a7.mjs} +100 -100
- package/lib/{layoutItem.cf18143e.mjs → layoutItem.051495bc.mjs} +2 -2
- package/lib/{layoutItem.c1c836a1.js → layoutItem.6f6017a5.js} +1 -1
- package/lib/{layouts.3b383d04.mjs → layouts.1852e8e4.mjs} +4 -4
- package/lib/{layouts.2d06f3e9.js → layouts.2030bf01.js} +1 -1
- package/lib/{main.c71e5b11.js → main.0dc447c8.js} +1 -1
- package/lib/{main.643d21a0.mjs → main.12118407.mjs} +92 -92
- package/lib/{main.edc0b23b.js → main.1551de4d.js} +1 -1
- package/lib/{main.09d48801.js → main.1611bb43.js} +1 -1
- package/lib/{main.60329866.mjs → main.26d3511c.mjs} +2 -2
- package/lib/{main.3e886f21.mjs → main.2f9312bb.mjs} +2 -2
- package/lib/{main.28b7c398.js → main.316ac1b8.js} +1 -1
- package/lib/{main.33443996.mjs → main.48dc325f.mjs} +2 -2
- package/lib/{main.64ddb5f6.mjs → main.54ac9faa.mjs} +1 -1
- package/lib/{main.29e204f9.mjs → main.69a2b457.mjs} +2 -2
- package/lib/{main.60c2a1a2.js → main.6df74fe7.js} +1 -1
- package/lib/{main.728eaf53.js → main.72c15ab0.js} +1 -1
- package/lib/{main.892caa37.js → main.736883a9.js} +1 -1
- package/lib/{main.357c50d2.js → main.9b2769b1.js} +1 -1
- package/lib/{main.aea9b6a8.mjs → main.b2314767.mjs} +3 -3
- package/lib/{main.419a7b42.mjs → main.ca46939e.mjs} +1 -1
- package/lib/{main.4a38d5f8.js → main.e1cf9798.js} +1 -1
- package/lib/{main.f520fcf5.mjs → main.efc8dc7b.mjs} +1 -1
- package/lib/{main.61c9e5c6.mjs → main.fc38c7c8.mjs} +2 -2
- package/lib/{main.b7a5a02b.js → main.fcb67463.js} +1 -1
- package/lib/{manage.f4000654.mjs → manage.1bc511ff.mjs} +93 -93
- package/lib/{manage.101f1aa9.js → manage.eb0a6c8c.js} +1 -1
- package/lib/{messages.fieldconfiguration.ad4d11cf.js → messages.fieldconfiguration.092bb027.js} +1 -1
- package/lib/{messages.fieldconfiguration.0d98a290.mjs → messages.fieldconfiguration.7fd9ceb0.mjs} +5 -5
- package/lib/{messages.messagetemplate.7adbbc58.mjs → messages.messagetemplate.0935e5a3.mjs} +4 -4
- package/lib/{messages.messagetemplate.32273e00.js → messages.messagetemplate.50334e5f.js} +4 -4
- package/lib/{messages.sendplan.fbac188d.js → messages.sendplan.60929f46.js} +1 -1
- package/lib/{messages.sendplan.7d0097c2.mjs → messages.sendplan.61edcc7f.mjs} +2 -2
- package/lib/{messages.sendrecord.ef80d44a.js → messages.sendrecord.09a1d1cd.js} +1 -1
- package/lib/{messages.sendrecord.f0d2fd54.mjs → messages.sendrecord.1c48aa6e.mjs} +1 -1
- package/lib/{messages.templatelibrary.ff151513.mjs → messages.templatelibrary.f31e8d58.mjs} +1 -1
- package/lib/{messages.templatelibrary.ec512390.js → messages.templatelibrary.f5952edd.js} +1 -1
- package/lib/{mobile.designer.componentstree.03f61105.js → mobile.designer.componentstree.365945a3.js} +1 -1
- package/lib/{mobile.designer.componentstree.4a1442dc.mjs → mobile.designer.componentstree.9439895e.mjs} +2 -2
- package/lib/{mobile.designer.menutree.97bb4046.js → mobile.designer.menutree.4d4e059b.js} +1 -1
- package/lib/{mobile.designer.menutree.0a2f7911.mjs → mobile.designer.menutree.7d3b783d.mjs} +3 -3
- package/lib/{moveFile.d71c0824.mjs → moveFile.3dc1dc37.mjs} +92 -92
- package/lib/{moveFile.335ebc8d.js → moveFile.f70bbff7.js} +1 -1
- package/lib/{page.build.37b26617.js → page.build.7ac1ee9b.js} +2 -2
- package/lib/{page.build.376104d5.mjs → page.build.ae61a39b.mjs} +4 -4
- package/lib/{page.designer.componentstree.0ffc933d.js → page.designer.componentstree.74a3a114.js} +1 -1
- package/lib/{page.designer.componentstree.b0ecddd8.mjs → page.designer.componentstree.cdabec2d.mjs} +2 -2
- package/lib/{page.designer.fieldfiltering.1ecd65a3.mjs → page.designer.fieldfiltering.e341aa60.mjs} +2 -2
- package/lib/{page.designer.fieldfiltering.7e913256.js → page.designer.fieldfiltering.f2d1b6e4.js} +1 -1
- package/lib/{page.designer.menutree.c49d9ee6.js → page.designer.menutree.71c18258.js} +1 -1
- package/lib/{page.designer.menutree.2c1846bc.mjs → page.designer.menutree.e4ce1e90.mjs} +2 -2
- package/lib/{page.designer.operation.6179b661.js → page.designer.operation.1d435e6e.js} +1 -1
- package/lib/{page.designer.operation.80b1a5d1.mjs → page.designer.operation.fe808988.mjs} +1 -1
- package/lib/{page.designer.page.09402332.js → page.designer.page.654634aa.js} +1 -1
- package/lib/{page.designer.page.6d8232c7.mjs → page.designer.page.821f8994.mjs} +12 -12
- package/lib/{personal.echarts.414b7e3d.mjs → personal.echarts.118bcafb.mjs} +3 -3
- package/lib/{personal.echarts.b7ee86f4.js → personal.echarts.e5915542.js} +1 -1
- package/lib/{result.9282a717.js → result.4d4039ea.js} +1 -1
- package/lib/{result.0c089066.mjs → result.a87217ae.mjs} +93 -93
- package/lib/{router.config.68077a12.js → router.config.a09f29e7.js} +1 -1
- package/lib/{router.config.86225b11.mjs → router.config.f0ad16fd.mjs} +14 -14
- package/lib/{solution.application.d459e382.js → solution.application.8d6c84e8.js} +1 -1
- package/lib/{solution.application.e0d58df1.mjs → solution.application.e6b5dc4f.mjs} +1 -1
- package/lib/{solution.applicationmenu.ae295083.js → solution.applicationmenu.c6cd2b59.js} +1 -1
- package/lib/{solution.applicationmenu.71ef6b8e.mjs → solution.applicationmenu.e878c41a.mjs} +1 -1
- package/lib/{solution.approvalflow.436b3502.js → solution.approvalflow.79da028c.js} +1 -1
- package/lib/{solution.approvalflow.bef7fbdd.mjs → solution.approvalflow.eb1c0607.mjs} +2 -2
- package/lib/{solution.dict.ef98b194.mjs → solution.dict.088a1e72.mjs} +1 -1
- package/lib/{solution.dict.acbe9c55.js → solution.dict.1d5195d0.js} +1 -1
- package/lib/{solution.menu.5c17348f.mjs → solution.menu.e58922fe.mjs} +2 -2
- package/lib/{solution.menu.cca5e1f9.js → solution.menu.fa48a7e8.js} +1 -1
- package/lib/{solution.plugin.f9a8063f.js → solution.plugin.5d6d29cf.js} +1 -1
- package/lib/{solution.plugin.90f8dcc1.mjs → solution.plugin.ae6df926.mjs} +2 -2
- package/lib/{solution.processflow.c1544b05.mjs → solution.processflow.62936f1c.mjs} +2 -2
- package/lib/{solution.processflow.2692dac6.js → solution.processflow.aa1e808b.js} +1 -1
- package/lib/{solution.role.b28c4dbe.js → solution.role.2eff83a1.js} +1 -1
- package/lib/{solution.role.b1ab40dd.mjs → solution.role.7b3e7030.mjs} +1 -1
- package/lib/{solution.webresources.0b51beba.mjs → solution.webresources.88c4483b.mjs} +2 -2
- package/lib/{solution.webresources.6961cc68.js → solution.webresources.bc00603d.js} +1 -1
- package/lib/{solution.workflow.11e49e25.js → solution.workflow.0ed2cb24.js} +1 -1
- package/lib/{solution.workflow.c48545d1.mjs → solution.workflow.85de0ae5.mjs} +2 -2
- package/lib/style.css +2 -2
- package/lib/{system.account.1cadbf03.mjs → system.account.3d7480ba.mjs} +2 -2
- package/lib/{system.account.5cc9fe8d.js → system.account.93ad722e.js} +1 -1
- package/lib/{system.config.a9a1ee96.mjs → system.config.6084ad21.mjs} +1 -1
- package/lib/{system.config.a0b94e40.js → system.config.9520e7f9.js} +1 -1
- package/lib/{system.datasource.6c30ce25.js → system.datasource.76c0ccdb.js} +1 -1
- package/lib/{system.datasource.c103a9c2.mjs → system.datasource.d74df021.mjs} +1 -1
- package/lib/{system.dict.6b000092.js → system.dict.ab148847.js} +1 -1
- package/lib/{system.dict.0c229d1c.mjs → system.dict.caad4d66.mjs} +1 -1
- package/lib/{system.document.f8fd7af0.js → system.document.0e46ff8c.js} +1 -1
- package/lib/{system.document.f67c2994.mjs → system.document.cbdf25a9.mjs} +2 -2
- package/lib/{system.duplicatechecking.94c7ce17.mjs → system.duplicatechecking.46e182d7.mjs} +2 -2
- package/lib/{system.duplicatechecking.f4cab147.js → system.duplicatechecking.a217fc52.js} +1 -1
- package/lib/{system.email.11ab6f31.js → system.email.1db14214.js} +1 -1
- package/lib/{system.email.13823361.mjs → system.email.c1ad6598.mjs} +2 -2
- package/lib/{system.fieldsecurity.d35acd97.mjs → system.fieldsecurity.2e55e839.mjs} +1 -1
- package/lib/{system.fieldsecurity.2ef2881c.js → system.fieldsecurity.40b4f48a.js} +1 -1
- package/lib/{system.file.b9f8320c.js → system.file.6a6bd77c.js} +1 -1
- package/lib/{system.file.30d3e7bc.mjs → system.file.80aa0809.mjs} +1 -1
- package/lib/{system.log.815840d8.mjs → system.log.3986a8ca.mjs} +1 -1
- package/lib/{system.log.470d3efd.js → system.log.9d394678.js} +1 -1
- package/lib/{system.machine.1665954f.mjs → system.machine.395c67c2.mjs} +1 -1
- package/lib/{system.machine.f8aff893.js → system.machine.d33b0b6e.js} +1 -1
- package/lib/{system.notice.db26f308.js → system.notice.2090c130.js} +1 -1
- package/lib/{system.notice.bef6c23c.mjs → system.notice.51880df6.mjs} +2 -2
- package/lib/{system.noticereceived.84b88b9a.js → system.noticereceived.0b79642e.js} +1 -1
- package/lib/{system.noticereceived.0d293a87.mjs → system.noticereceived.55f276ab.mjs} +2 -2
- package/lib/{system.onlineuser.bccb1cd9.mjs → system.onlineuser.71034956.mjs} +1 -1
- package/lib/{system.onlineuser.985621a6.js → system.onlineuser.e74f010d.js} +1 -1
- package/lib/{system.org.92f4d7f1.mjs → system.org.e1e156c6.mjs} +1 -1
- package/lib/{system.org.9f87a010.js → system.org.f6d58d0f.js} +1 -1
- package/lib/{system.permissions.be9238ee.mjs → system.permissions.4090552f.mjs} +1 -1
- package/lib/{system.permissions.15e6b8b7.js → system.permissions.fdb64929.js} +1 -1
- package/lib/{system.plugin.af27d7ac.mjs → system.plugin.8a9a6448.mjs} +1 -1
- package/lib/{system.plugin.0bccfec4.js → system.plugin.a0f25733.js} +1 -1
- package/lib/{system.pos.fe067063.mjs → system.pos.0ad80a53.mjs} +1 -1
- package/lib/{system.pos.61e58a92.js → system.pos.71f3eba7.js} +1 -1
- package/lib/{system.promptmanagement.0b9083c5.mjs → system.promptmanagement.39607ddb.mjs} +1 -1
- package/lib/{system.promptmanagement.e750de82.js → system.promptmanagement.9718aa24.js} +1 -1
- package/lib/{system.role.e86b60f1.js → system.role.321c48d3.js} +1 -1
- package/lib/{system.role.67f62146.mjs → system.role.3b533a3e.mjs} +1 -1
- package/lib/{system.sumberrules.810f7b55.js → system.sumberrules.6e8d208e.js} +1 -1
- package/lib/{system.sumberrules.093d998e.mjs → system.sumberrules.c2b8c5e7.mjs} +1 -1
- package/lib/{system.team.8911fd95.mjs → system.team.367bf5e7.mjs} +2 -2
- package/lib/{system.team.58ee701b.js → system.team.cf1c1558.js} +1 -1
- package/lib/{system.teammembers.1880f962.js → system.teammembers.63f21557.js} +1 -1
- package/lib/{system.teammembers.35564a00.mjs → system.teammembers.851ce63b.mjs} +1 -1
- package/lib/{system.timers.9e956553.js → system.timers.51bedf97.js} +1 -1
- package/lib/{system.timers.4b2d509f.mjs → system.timers.5e735567.mjs} +1 -1
- package/lib/{system.translation.60ec676c.mjs → system.translation.61765713.mjs} +1 -1
- package/lib/{system.translation.26b6bb39.js → system.translation.c9f1b505.js} +1 -1
- package/lib/{system.user.9a02295e.mjs → system.user.254bbe85.mjs} +4 -4
- package/lib/{system.user.134a3988.js → system.user.475d7391.js} +1 -1
- package/lib/{system.useraffiliation.96695aeb.mjs → system.useraffiliation.b96c984a.mjs} +1 -1
- package/lib/{system.useraffiliation.c2421c7e.js → system.useraffiliation.fe1e1d39.js} +1 -1
- package/lib/{system.webresource.016d0000.mjs → system.webresource.2c6cf4a7.mjs} +1 -1
- package/lib/{system.webresource.e92e8a8f.js → system.webresource.81cfa690.js} +1 -1
- package/lib/{system.welcome.127b5dd4.mjs → system.welcome.72da74ae.mjs} +1 -1
- package/lib/{system.welcome.ff0c85e2.js → system.welcome.d86a3cdb.js} +1 -1
- package/lib/{table.definition..btnconfig.9847cac5.mjs → table.definition..btnconfig.24402bf0.mjs} +2 -2
- package/lib/{table.definition..btnconfig.ce57ed41.js → table.definition..btnconfig.add3d840.js} +1 -1
- package/lib/{table.definition..echartsconfig.d2b65881.js → table.definition..echartsconfig.4310b5a2.js} +1 -1
- package/lib/{table.definition..echartsconfig.625bce88.mjs → table.definition..echartsconfig.9c3c88f6.mjs} +6 -6
- package/lib/{tableDescriptions.b9b0d7fa.js → tableDescriptions.143d8e67.js} +1 -1
- package/lib/{tableDescriptions.a4196776.mjs → tableDescriptions.60a07f7c.mjs} +1 -1
- package/lib/{tcheckboxs.7ea99d35.js → tcheckboxs.e4d387ff.js} +1 -1
- package/lib/{tcheckboxs.999b7c2e.mjs → tcheckboxs.ee4adb9e.mjs} +1 -1
- package/lib/{tcurrency.4afb9192.mjs → tcurrency.0360c142.mjs} +1 -1
- package/lib/{tcurrency.8a2361f2.js → tcurrency.233f4e63.js} +1 -1
- package/lib/{tdatepicker.606214fa.mjs → tdatepicker.9e5d99f4.mjs} +1 -1
- package/lib/{tdatepicker.8e94a60c.js → tdatepicker.b10536fd.js} +1 -1
- package/lib/{tdictSwitch.ccbdd153.js → tdictSwitch.10d64c18.js} +1 -1
- package/lib/{tdictSwitch.e016d4cf.mjs → tdictSwitch.eed5a945.mjs} +1 -1
- package/lib/{tfile.3f39223d.mjs → tfile.7c635ee4.mjs} +1 -1
- package/lib/{tfile.b3ebdc71.js → tfile.e183d25f.js} +1 -1
- package/lib/{tparticipants.5fe27540.mjs → tparticipants.04280449.mjs} +1 -1
- package/lib/{tparticipants.78c8c175.js → tparticipants.f732d245.js} +1 -1
- package/lib/{translation.mains.2688be5b.mjs → translation.mains.0df71304.mjs} +2 -2
- package/lib/{translation.mains.a6f19343.js → translation.mains.6f941967.js} +1 -1
- package/lib/{versionControl.46a7f31a.js → versionControl.97590ce8.js} +1 -1
- package/lib/{versionControl.c53bfb5d.mjs → versionControl.d1b2b0da.mjs} +93 -93
- package/lib/{versionEdit.5a8292ec.mjs → versionEdit.c51606e4.mjs} +93 -93
- package/lib/{versionEdit.4246d5db.js → versionEdit.f710d0bb.js} +1 -1
- package/lib/{view.build.e43a2077.js → view.build.5789a6eb.js} +1 -1
- package/lib/{view.build.85732408.mjs → view.build.9976c958.mjs} +14 -14
- package/lib/{viewList.978b72c5.mjs → viewList.3ca52f0c.mjs} +23 -23
- package/lib/{viewList.868edcd7.js → viewList.6e181715.js} +1 -1
- package/lib/{viewTree.7497ff90.js → viewTree.9bdf96f0.js} +1 -1
- package/lib/{viewTree.bde43a3b.mjs → viewTree.c2e11b7f.mjs} +1 -1
- package/package.json +1 -1
- package/lib/form.build.724d3357.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const g=require("./utils.util.js.c0ba699b.js"),f=require("./components.chartbi.3bbac955.js");const m={name:"GdTableVirtual",props:Object.assign({},{record:{type:Object,default:()=>({})},dataSource:{type:Function,required:!0},size:{type:String,default:"small"},rowKey:{type:[String,Function],default:"id"},amount:{type:Function},load:{type:Function},tableTree:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},border:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},cellStyle:{type:Function},cellClassName:{type:Function},rowClassName:{type:Function},defaultExpandedKeys:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},selectedKeep:{type:Boolean,default:!1},height:{type:Number,default:0},maxHeight:{type:Number,default:0},indent:{type:Number,default:16},pageSize:{type:Number,default:10},pageSizes:{type:Array,default:()=>[10,20,30,40,50,100,200,500]},tableExpand:{type:Array,default:()=>[]},defaultExpandAll:{type:Boolean,default:!1},method:{type:Boolean,default:!1},columnKey:{type:String,default:""},showSummary:{type:Boolean,default:!1},headerCellStyle:{type:[Object,Function],default:()=>({})},showPagination:{type:Boolean,default:!0},initialLoading:{type:Boolean,default:!0},filtering:{type:Boolean,default:!1},isGather:{type:Boolean,default:!1},disabledRowId:{type:Array,default:()=>[]},disabledRefresh:{type:Boolean,default:!1},disabledColumnSettings:{type:Boolean,default:!1},stripe:{type:Boolean,default:!0},rowHeight:{type:Number,default:25}}),computed:{getHeaderCellStyle(){return Object.assign({background:this.fadeColor(this.primaryColor,.05)},this.headerCellStyle)},getRowHeight(){let t=0;return this.rowHeight+t},fadeColord(){return this.fadeColor(this.primaryColor,.3)},getColumns(){let t=0,e=this.columnsSetting.filter(d=>{const n=d.checked===void 0||d.checked,i=this.columns.filter(c=>c.prop===d.prop)[0],r=i?i.owidth?i.owidth:i.width?i.width:i.minWidth?i.minWidth:"150":"150";return i&&i.width&&!d.width&&(d.width=i.width),i&&i.minWidth&&!d.minWidth&&(d.minWidth=i.minWidth),n&&(t+=Number(r)),n});if(this.wid===0||e.filter(d=>d.width||d.minWidth).length!==e.length)return e;const s=t-this.wid,a=e[e.length-1],o=a?a.width?Number(a.width):a.minWidth?Number(a.minWidth):0:0;if(s<0){const d=e.length===0?0:Math.floor(Math.abs(s)/e.length);e.filter(n=>(n.width&&!["selection","selection-radio"].includes(n.type)&&(n.width=d+Number(n.owidth)),a.prop===n.prop&&delete n.width,n))}else s<o&&(a.minWidth||a.width)&&(a.width=o);return e},selectionType(){const t=this.columns.filter(e=>e.type==="selection"||e.type==="selection-radio")[0];return t?t.type==="selection"?"checkbox":"radio":null},hasClear(){let t=[];for(let e in this.sorter)t.push(e);return t.length},dropdownActive(){return`background-color: ${this.fadeColor(this.primaryColor,.1)};color:${this.primaryColor}`},totalPages(){return Math.ceil(this.total/this.pageSized)},...f.mapGetters(["primaryColor","language","screenWidth","multiTab"])},data(){return{tableData:[],loading:!1,customSize:this.size,keyValue:null,currentRow:"",total:0,sorter:{},state:!1,currentPage:1,pageSized:this.pageSize,columnsSetting:[],visibleFilter:!1,frozenColumn:0,wid:0}},watch:{screenWidth(){this.$nextTick(()=>{this.getWid(),setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},tableExpand:{handler(){const t=this.$refs.refTable,e=this.getChildRens(this.tableData);g.treeToArray(JSON.parse(JSON.stringify(this.tableData)),"children").map(s=>{e.includes(s.id)?t.toggleRowExpansion(s,!1):t.toggleRowExpansion(s,!0)})},deep:!0},tableData:{handler(){this.keyValue=void 0,this.numbers=0},deep:!0},language:{handler(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},deep:!0},size:{handler(t){this.$nextTick(()=>{setTimeout(()=>{this.customSize=t,this.$refs.refTable.doLayout(),this.getWid()},0)})},deep:!0},"$route.path"(t,e){t!==e&&this.multiTab&&this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable&&this.$refs.refTable.doLayout()},0)})}},methods:{doLayout(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},getWid(){let t=this.$refs.reftables;this.wid=t?t.clientWidth:this.wid},setTableData(t,e=!1){this.tableData=t,this.loading=e},selecTables(t,e){return!this.disabledRowId.includes(t.id)},changeFilter(t){this.visibleFilter=t},closeFilter(){this.$refs.filterdropdown.doClose()},cellClassNamed({row:t,rowIndex:e}){return this.cellClassName&&typeof this.cellClassName=="function"?this.cellClassName({row:t,rowIndex:e}):""},rowClassNamed({row:t,rowIndex:e}){return this.rowClassName&&typeof this.rowClassName=="function"?this.rowClassName({row:t,rowIndex:e}):""},columnChange(t){this.columns.filter(a=>a.fixed);let e=[...t],l=1;return e.forEach((a,o)=>{e[o].fixed=!1,l<this.frozenColumn&&a.checked&&(e[o].fixed=!0,l++)}),e.filter(a=>["selection","selection-radio"].includes(a.type)?!1:a.checked).length===0&&(e=JSON.parse(JSON.stringify(e))),this.$emit("columnChange",e),this.columnsSetting=e,new Promise((a,o)=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout(),a()},0)})})},summaries(t){return this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable&&this.$refs.refTable.doLayout()},10)}),this.amount(t)},spanMethod({row:t,column:e}){if(e.property===this.columnKey){let l=0,s=0;if(this.keyValue!==t[this.columnKey]){for(;l<this.tableData.length;)this.tableData[l][this.columnKey]===t[this.columnKey]&&s++,l++;this.keyValue=t[this.columnKey]}else s=0;return{rowspan:s,colspan:1}}},handlerClick(t){this.$emit("handlerClick",t)},handleButton(t,e,l){this.$emit("handleButton",{methods:t,row:e})},handleFilterChange(t){this.$emit("handleFilterChange",t)},handleSelectionChange(t){if(!this.loading){const e=this.rowKey||"index";let l=[];t.forEach((s,a)=>{l.push(s[e])}),this.$emit("onChange",l,t);return}this.selectedKeep&&this.$emit("onChange",this.selectedRowKeys,[])},changRadio(t){if(this.loading)return;const e=this.rowKey||"index",l=this.tableData.filter(s=>s[e]===t)[0];this.$emit("onChange",[l[e]],[l])},handleSelect(t,e){this.$emit("handleSelect",t,e)},selectAll(t){this.$emit("selectAll",t)},rowClick(t,e,l){this.$emit("rowClick",t,e)},handleSizeChange(t){this.pageSized=t,this.currentPage>this.totalPages&&(this.currentPage=this.totalPages),this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},handleCurrentChange(t){this.currentPage=t,this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},expandChange(t,e){this.$emit("expandChange",{val:t,expanded:e})},getChildRens(t){const e=[];return t.map(l=>{if(this.tableExpand.includes(l.id)||e.push(l.id),Object.prototype.hasOwnProperty.call(l,"children")){const s=this.getChildRens(l.children);e.push(...s)}}),e},handleCurrentRowChange(t){this.$emit("handleCurrentRowChange",t)},handleHeaderDragEnd(){this.$nextTick(()=>{this.$refs.refTable.doLayout()})},changColumnHeight(t){this.customSize=t,this.$nextTick(()=>{this.$refs.refTable.doLayout()})},sortChange({prop:t,order:e}){this.sorter=e?{sortField:t,sortOrder:e.replace("ending","")}:{},this.loadData()},loadData(){if(this.loading)return;this.loading=!0;const t=this.dataSource(Object.assign({...this.sorter},{pageNo:this.currentPage,pageSize:this.pageSized}));(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"?t.then(e=>{let l=e&&e.rows?e.rows:[];this.tableData=l,this.currentPage=e.pageno,this.total=e.totalrows,this.getWid(),this.toggleRowSelection()}):this.loading=!1},loadColumns(){return new Promise(t=>{this.$nextTick(()=>{this.columnsSetting=[...this.columns],this.$emit("columnChange",this.columnsSetting);const e=this.columns.filter(l=>l.fixed);this.frozenColumn=e.length,setTimeout(()=>{this.$refs.columnSettings.init(),this.$refs.refTable.doLayout(),t(!0)},0)})})},setLoadData(t){this.tableData=[...t],this.total=t.length},getLoadData(){return new Promise((t,e)=>{t(this.tableData)})},toggleRowSelectioClear(t){if(!this.selectionType){this.loading=!1;return}this.selectionType==="radio"&&(this.currentRow=t[0]?t[0]:""),this.$nextTick(async()=>{setTimeout(async()=>{const e=this.rowKey||"index";let l=[];const s=(i,r)=>(i=i.filter((c,h)=>(t.includes(c[e])&&l.push(c),c.children&&c.children.length>0&&s(c.children),!0)),i);await s(this.tableData);const a=t.filter(i=>{let r=null;return this.tableData.filter(c=>{if(i===c[e]&&(r=c),c.children&&c.children.length>0){const h=c.children.filter(p=>i===p[e])[0];r=h||r}return!0})[0],!r});let o=[];for(let i=0;i<a.length;i++){let r=new Map;r.set(e,a[i]),o.push(Object.fromEntries(r))}const d=l.concat(o);let n=[];for(let i=0;i<d.length;i++){let r=new Promise((c,h)=>{this.$refs.refTable.toggleRowSelection(d[i],!1),c(i)});n.push(r)}Promise.all(n).then(i=>{this.loading=!1})},10)})},async toggleRowSelection(){if(!this.selectionType){this.loading=!1;return}this.selectionType==="radio"&&(this.currentRow=this.selectedRowKeys[0]?this.selectedRowKeys[0]:""),this.$nextTick(async()=>{setTimeout(async()=>{const t=this.rowKey||"index";let e=[];const l=(n,i)=>(n=n.filter((r,c)=>(this.selectedRowKeys.includes(r[t])&&e.push(r),r.children&&r.children.length>0&&l(r.children),!0)),n);await l(this.tableData);const s=this.selectedRowKeys.filter(n=>!this.tableData.filter(r=>n===r[t])[0]);let a=[];for(let n=0;n<s.length;n++){let i=new Map;i.set(t,s[n]),a.push(Object.fromEntries(i))}const o=e.concat(a);let d=[];for(let n=0;n<o.length;n++){let i=new Promise((r,c)=>{this.$refs.refTable.toggleRowSelection(o[n],!0),r(n)});d.push(i)}Promise.all(d).then(n=>{this.loading=!1})},10)})},refresh(t=!0){!this.selectedKeep&&t&&this.$emit("onChange",[],[]),t&&(this.currentPage=1),this.loadData()},clearAll(){if(this.state||this.loading)return;let t=[];for(let e in this.sorter)t.push(e);t.length!==0&&(this.state=!0,this.sorter={},this.$refs.refTable.clearSort(),this.$refs.refTable.clearFilter(),setTimeout(()=>{this.refresh(),this.state=!1},100))},fadeColor(t,e){let l=parseInt(t.substring(1,3),16),s=parseInt(t.substring(3,5),16),a=parseInt(t.substring(5,7),16);return`rgba(${l},${s},${a},${e})`}},created(){this.columnsSetting=[...this.columns];const t=this.columns.filter(e=>e.fixed);this.frozenColumn=t.length,this.initialLoading&&this.loadData()}};var y=function(){var e=this,l=e._self._c;return l("div",{ref:"reftables",staticClass:"gd-tables",style:{"--theme":e.primaryColor,"--fadecolor":e.fadeColord},attrs:{id:"reftables"}},[l("div",{staticClass:"tables-tool"},[l("div",{staticClass:"tables-tool-l"},[e._t("operator")],2),l("div",{staticClass:"tables-tool-r"},[e.hasClear?l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.reset","\u91CD\u7F6E"),placement:"bottom"}},[l("i",{staticClass:"el-icon-brush",on:{click:e.clearAll}})]):e._e(),e.filtering?l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.screen","\u7B5B\u9009"),placement:"bottom"}},[l("el-popover",{ref:"filterdropdown",attrs:{trigger:"click",placement:"bottom"},on:{show:function(s){return e.changeFilter(!0)},hide:function(s){return e.changeFilter(!1)}}},[l("span",{staticClass:"el-dropdown-link",attrs:{slot:"reference"},slot:"reference"},[l("i",{staticClass:"gd-icons gd-icon-a-guangqi_guolv11x"})]),l("div",[e._t("filtering",null,{columns:e.columns,height:e.height,colse:e.closeFilter,visible:e.visibleFilter})],2)])],1):e._e(),e.isGather?l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.chart","\u56FE\u8868"),placement:"bottom"}},[l("i",{staticClass:"gd-icons gd-icon-zhuzhuangtu",on:{click:function(s){return e.$emit("baseSeecharts")}}})]):e._e(),e.disabledRefresh?e._e():l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.refresh","\u5237\u65B0"),placement:"bottom"}},[l("i",{staticClass:"el-icon-refresh",on:{click:function(s){return e.refresh(!1)}}})]),l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.density","\u5BC6\u5EA6"),placement:"bottom"}},[l("el-dropdown",{attrs:{trigger:"click",placement:"bottom"},on:{command:e.changColumnHeight}},[l("span",{staticClass:"el-dropdown-link"},[l("i",{staticClass:"el-icon-s-operation"})]),l("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[l("el-dropdown-item",{style:e.customSize==="medium"?e.dropdownActive:"",attrs:{command:"medium"}},[e._v(" "+e._s(e.$i18nt("gd.basics.default","\u9ED8\u8BA4"))+" ")]),l("el-dropdown-item",{style:e.customSize==="small"?e.dropdownActive:"",attrs:{command:"small"}},[e._v(" "+e._s(e.$i18nt("gd.basics.secondary","\u4E2D\u7B49"))+" ")]),l("el-dropdown-item",{style:e.customSize==="mini"?e.dropdownActive:"",attrs:{command:"mini"}},[e._v(" "+e._s(e.$i18nt("gd.basics.compact","\u7D27\u51D1"))+" ")])],1)],1)],1),e.disabledColumnSettings?e._e():l("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.columnSettings","\u5217\u8BBE\u7F6E"),placement:"bottom"}},[l("el-dropdown",{attrs:{trigger:"click",placement:"bottom"}},[l("span",{staticClass:"el-dropdown-link"},[l("i",{staticClass:"el-icon-setting"})]),l("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[l("gd-column-settings",{ref:"columnSettings",attrs:{columns:e.columns,height:e.height},on:{columnChange:e.columnChange}})],1)],1)],1)],1)]),l("u-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"refTable",staticClass:"table",class:e.border?"":"table-border",staticStyle:{width:"100%"},attrs:{"row-height":e.getRowHeight,"use-virtual":"",stripe:e.stripe,"row-key":e.rowKey,"expand-row-keys":e.tableExpand,"tree-props":e.tableTree?{children:"children",hasChildren:"isLeaf"}:void 0,tooltip:!0,border:e.border,size:e.customSize,indent:e.indent,lazy:e.lazy,"show-summary":e.showSummary,"summary-method":e.summaries,"default-expand-all":e.defaultExpandAll,"virtual-scroll":!0,"element-loading-background":"rgba(255, 255, 255, 0.8)","element-loading-spinner":"el-icon-loading",data:e.tableData,"cell-style":e.cellStyle,height:e.height||null,"max-height":e.maxHeight||null,"default-sort":{prop:"id",order:null},load:e.lazy?e.load:null,"span-method":e.method?e.spanMethod:null,"header-cell-style":e.getHeaderCellStyle,"cell-class-name":e.cellClassNamed,"row-class-name":e.rowClassNamed},on:{"sort-change":e.sortChange,"filter-change":e.handleFilterChange,"selection-change":e.handleSelectionChange,"row-click":e.rowClick,"expand-change":e.expandChange,"select-all":e.selectAll,select:e.handleSelect,"current-change":e.handleCurrentRowChange,"header-dragend":e.handleHeaderDragEnd}},[e._l(e.getColumns,function(s,a){return[s.type=="selection"?[l("u-table-column",{attrs:{type:"selection",width:s.width,fixed:s.fixed?s.fixed:!1,align:s.align?s.align:"center",selectable:e.selecTables}})]:s.type=="selection-radio"?[l("u-table-column",{key:s.key?s.key:a,attrs:{width:s.width,label:"",fixed:s.fixed?s.fixed:!1,align:s.align?s.align:"center"},scopedSlots:e._u([{key:"default",fn:function(o){return[l("el-radio",{attrs:{label:o.row[e.rowKey],size:"small"},on:{input:e.changRadio},model:{value:e.currentRow,callback:function(d){e.currentRow=d},expression:"currentRow"}},[e._v(" "+e._s("")+" ")])]}}],null,!0)})]:s.hidden!=!1&&s.type!=="slot"&&s.type!="expand"&&s.type!="selection-radio"?[l("u-table-column",{attrs:{width:s.width,prop:s.prop,label:e.$i18nt(s.transKey,s.label),fixed:s.fixed?s.fixed:!1,title:e.$i18nt(s.transKey,s.label)}})]:s.type=="expand"?[l("u-table-column",{key:s.key?s.key:a,attrs:{width:s.width,label:e.$i18nt(s.transKey,s.label),type:"expand"},scopedSlots:e._u([{key:"default",fn:function(o){return[e._t(s.slotType,null,{row:o.row,index:o.$index})]}}],null,!0)})]:s.type==="slot"?[l("u-table-column",{key:s.key?s.key:a,attrs:{width:s.width,"show-overflow-tooltip":typeof s.showTooltip>"u"?!0:s.showTooltip,"min-width":s.minWidth,prop:s.prop,label:e.$i18nt(s.transKey,s.label),fixed:s.fixed?s.fixed:!1,sortable:s.sortable?s.sortable:!1,align:s.align?s.align:"center","render-header":s.renderHeader,filters:s.filters,"filter-method":s.filterTag,"filter-placement":"bottom-end","reserve-selection":s.reserveSelection,type:s.colType},scopedSlots:e._u([{key:"default",fn:function(o){return[e._t(s.slotType,null,{row:o.row,index:o.$index,column:o.column})]}}],null,!0)})]:e._e()]}),l("template",{slot:"empty"},[l("div",{staticClass:"gd-table-empty"},[l("i",{staticClass:"el-icon-receiving"}),l("div",{staticClass:"empty-title"},[e._v(" "+e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A"))+" ")])])])],2),l("div",{staticClass:"gd-paging"},[e.showPagination?l("el-pagination",{attrs:{background:"","page-sizes":e.pageSizes,"page-size":e.pageSized,"current-page":e.currentPage,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"update:currentPage":function(s){e.currentPage=s},"update:current-page":function(s){e.currentPage=s},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)],1)},b=[],w=f.normalizeComponent(m,y,b,!1,null,"cf983a7d",null,null);const u=w.exports;u.install=function(t){t.component(u.name,u)};exports.GDpackage=u;
|
|
1
|
+
"use strict";const g=require("./utils.util.js.c0ba699b.js"),f=require("./components.chartbi.13a8a7b5.js");const m={name:"GdTableVirtual",props:Object.assign({},{record:{type:Object,default:()=>({})},dataSource:{type:Function,required:!0},size:{type:String,default:"small"},rowKey:{type:[String,Function],default:"id"},amount:{type:Function},load:{type:Function},tableTree:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},border:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},cellStyle:{type:Function},cellClassName:{type:Function},rowClassName:{type:Function},defaultExpandedKeys:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},selectedKeep:{type:Boolean,default:!1},height:{type:Number,default:0},maxHeight:{type:Number,default:0},indent:{type:Number,default:16},pageSize:{type:Number,default:10},pageSizes:{type:Array,default:()=>[10,20,30,40,50,100,200,500]},tableExpand:{type:Array,default:()=>[]},defaultExpandAll:{type:Boolean,default:!1},method:{type:Boolean,default:!1},columnKey:{type:String,default:""},showSummary:{type:Boolean,default:!1},headerCellStyle:{type:[Object,Function],default:()=>({})},showPagination:{type:Boolean,default:!0},initialLoading:{type:Boolean,default:!0},filtering:{type:Boolean,default:!1},isGather:{type:Boolean,default:!1},disabledRowId:{type:Array,default:()=>[]},disabledRefresh:{type:Boolean,default:!1},disabledColumnSettings:{type:Boolean,default:!1},stripe:{type:Boolean,default:!0},rowHeight:{type:Number,default:25}}),computed:{getHeaderCellStyle(){return Object.assign({background:this.fadeColor(this.primaryColor,.05)},this.headerCellStyle)},getRowHeight(){let t=0;return this.rowHeight+t},fadeColord(){return this.fadeColor(this.primaryColor,.3)},getColumns(){let t=0,e=this.columnsSetting.filter(d=>{const n=d.checked===void 0||d.checked,i=this.columns.filter(c=>c.prop===d.prop)[0],r=i?i.owidth?i.owidth:i.width?i.width:i.minWidth?i.minWidth:"150":"150";return i&&i.width&&!d.width&&(d.width=i.width),i&&i.minWidth&&!d.minWidth&&(d.minWidth=i.minWidth),n&&(t+=Number(r)),n});if(this.wid===0||e.filter(d=>d.width||d.minWidth).length!==e.length)return e;const s=t-this.wid,a=e[e.length-1],o=a?a.width?Number(a.width):a.minWidth?Number(a.minWidth):0:0;if(s<0){const d=e.length===0?0:Math.floor(Math.abs(s)/e.length);e.filter(n=>(n.width&&!["selection","selection-radio"].includes(n.type)&&(n.width=d+Number(n.owidth)),a.prop===n.prop&&delete n.width,n))}else s<o&&(a.minWidth||a.width)&&(a.width=o);return e},selectionType(){const t=this.columns.filter(e=>e.type==="selection"||e.type==="selection-radio")[0];return t?t.type==="selection"?"checkbox":"radio":null},hasClear(){let t=[];for(let e in this.sorter)t.push(e);return t.length},dropdownActive(){return`background-color: ${this.fadeColor(this.primaryColor,.1)};color:${this.primaryColor}`},totalPages(){return Math.ceil(this.total/this.pageSized)},...f.mapGetters(["primaryColor","language","screenWidth","multiTab"])},data(){return{tableData:[],loading:!1,customSize:this.size,keyValue:null,currentRow:"",total:0,sorter:{},state:!1,currentPage:1,pageSized:this.pageSize,columnsSetting:[],visibleFilter:!1,frozenColumn:0,wid:0}},watch:{screenWidth(){this.$nextTick(()=>{this.getWid(),setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},tableExpand:{handler(){const t=this.$refs.refTable,e=this.getChildRens(this.tableData);g.treeToArray(JSON.parse(JSON.stringify(this.tableData)),"children").map(s=>{e.includes(s.id)?t.toggleRowExpansion(s,!1):t.toggleRowExpansion(s,!0)})},deep:!0},tableData:{handler(){this.keyValue=void 0,this.numbers=0},deep:!0},language:{handler(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},deep:!0},size:{handler(t){this.$nextTick(()=>{setTimeout(()=>{this.customSize=t,this.$refs.refTable.doLayout(),this.getWid()},0)})},deep:!0},"$route.path"(t,e){t!==e&&this.multiTab&&this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable&&this.$refs.refTable.doLayout()},0)})}},methods:{doLayout(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},getWid(){let t=this.$refs.reftables;this.wid=t?t.clientWidth:this.wid},setTableData(t,e=!1){this.tableData=t,this.loading=e},selecTables(t,e){return!this.disabledRowId.includes(t.id)},changeFilter(t){this.visibleFilter=t},closeFilter(){this.$refs.filterdropdown.doClose()},cellClassNamed({row:t,rowIndex:e}){return this.cellClassName&&typeof this.cellClassName=="function"?this.cellClassName({row:t,rowIndex:e}):""},rowClassNamed({row:t,rowIndex:e}){return this.rowClassName&&typeof this.rowClassName=="function"?this.rowClassName({row:t,rowIndex:e}):""},columnChange(t){this.columns.filter(a=>a.fixed);let e=[...t],l=1;return e.forEach((a,o)=>{e[o].fixed=!1,l<this.frozenColumn&&a.checked&&(e[o].fixed=!0,l++)}),e.filter(a=>["selection","selection-radio"].includes(a.type)?!1:a.checked).length===0&&(e=JSON.parse(JSON.stringify(e))),this.$emit("columnChange",e),this.columnsSetting=e,new Promise((a,o)=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout(),a()},0)})})},summaries(t){return this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable&&this.$refs.refTable.doLayout()},10)}),this.amount(t)},spanMethod({row:t,column:e}){if(e.property===this.columnKey){let l=0,s=0;if(this.keyValue!==t[this.columnKey]){for(;l<this.tableData.length;)this.tableData[l][this.columnKey]===t[this.columnKey]&&s++,l++;this.keyValue=t[this.columnKey]}else s=0;return{rowspan:s,colspan:1}}},handlerClick(t){this.$emit("handlerClick",t)},handleButton(t,e,l){this.$emit("handleButton",{methods:t,row:e})},handleFilterChange(t){this.$emit("handleFilterChange",t)},handleSelectionChange(t){if(!this.loading){const e=this.rowKey||"index";let l=[];t.forEach((s,a)=>{l.push(s[e])}),this.$emit("onChange",l,t);return}this.selectedKeep&&this.$emit("onChange",this.selectedRowKeys,[])},changRadio(t){if(this.loading)return;const e=this.rowKey||"index",l=this.tableData.filter(s=>s[e]===t)[0];this.$emit("onChange",[l[e]],[l])},handleSelect(t,e){this.$emit("handleSelect",t,e)},selectAll(t){this.$emit("selectAll",t)},rowClick(t,e,l){this.$emit("rowClick",t,e)},handleSizeChange(t){this.pageSized=t,this.currentPage>this.totalPages&&(this.currentPage=this.totalPages),this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},handleCurrentChange(t){this.currentPage=t,this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},expandChange(t,e){this.$emit("expandChange",{val:t,expanded:e})},getChildRens(t){const e=[];return t.map(l=>{if(this.tableExpand.includes(l.id)||e.push(l.id),Object.prototype.hasOwnProperty.call(l,"children")){const s=this.getChildRens(l.children);e.push(...s)}}),e},handleCurrentRowChange(t){this.$emit("handleCurrentRowChange",t)},handleHeaderDragEnd(){this.$nextTick(()=>{this.$refs.refTable.doLayout()})},changColumnHeight(t){this.customSize=t,this.$nextTick(()=>{this.$refs.refTable.doLayout()})},sortChange({prop:t,order:e}){this.sorter=e?{sortField:t,sortOrder:e.replace("ending","")}:{},this.loadData()},loadData(){if(this.loading)return;this.loading=!0;const t=this.dataSource(Object.assign({...this.sorter},{pageNo:this.currentPage,pageSize:this.pageSized}));(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"?t.then(e=>{let l=e&&e.rows?e.rows:[];this.tableData=l,this.currentPage=e.pageno,this.total=e.totalrows,this.getWid(),this.toggleRowSelection()}):this.loading=!1},loadColumns(){return new Promise(t=>{this.$nextTick(()=>{this.columnsSetting=[...this.columns],this.$emit("columnChange",this.columnsSetting);const e=this.columns.filter(l=>l.fixed);this.frozenColumn=e.length,setTimeout(()=>{this.$refs.columnSettings.init(),this.$refs.refTable.doLayout(),t(!0)},0)})})},setLoadData(t){this.tableData=[...t],this.total=t.length},getLoadData(){return new Promise((t,e)=>{t(this.tableData)})},toggleRowSelectioClear(t){if(!this.selectionType){this.loading=!1;return}this.selectionType==="radio"&&(this.currentRow=t[0]?t[0]:""),this.$nextTick(async()=>{setTimeout(async()=>{const e=this.rowKey||"index";let l=[];const s=(i,r)=>(i=i.filter((c,h)=>(t.includes(c[e])&&l.push(c),c.children&&c.children.length>0&&s(c.children),!0)),i);await s(this.tableData);const a=t.filter(i=>{let r=null;return this.tableData.filter(c=>{if(i===c[e]&&(r=c),c.children&&c.children.length>0){const h=c.children.filter(p=>i===p[e])[0];r=h||r}return!0})[0],!r});let o=[];for(let i=0;i<a.length;i++){let r=new Map;r.set(e,a[i]),o.push(Object.fromEntries(r))}const d=l.concat(o);let n=[];for(let i=0;i<d.length;i++){let r=new Promise((c,h)=>{this.$refs.refTable.toggleRowSelection(d[i],!1),c(i)});n.push(r)}Promise.all(n).then(i=>{this.loading=!1})},10)})},async toggleRowSelection(){if(!this.selectionType){this.loading=!1;return}this.selectionType==="radio"&&(this.currentRow=this.selectedRowKeys[0]?this.selectedRowKeys[0]:""),this.$nextTick(async()=>{setTimeout(async()=>{const t=this.rowKey||"index";let e=[];const l=(n,i)=>(n=n.filter((r,c)=>(this.selectedRowKeys.includes(r[t])&&e.push(r),r.children&&r.children.length>0&&l(r.children),!0)),n);await l(this.tableData);const s=this.selectedRowKeys.filter(n=>!this.tableData.filter(r=>n===r[t])[0]);let a=[];for(let n=0;n<s.length;n++){let i=new Map;i.set(t,s[n]),a.push(Object.fromEntries(i))}const o=e.concat(a);let d=[];for(let n=0;n<o.length;n++){let i=new Promise((r,c)=>{this.$refs.refTable.toggleRowSelection(o[n],!0),r(n)});d.push(i)}Promise.all(d).then(n=>{this.loading=!1})},10)})},refresh(t=!0){!this.selectedKeep&&t&&this.$emit("onChange",[],[]),t&&(this.currentPage=1),this.loadData()},clearAll(){if(this.state||this.loading)return;let t=[];for(let e in this.sorter)t.push(e);t.length!==0&&(this.state=!0,this.sorter={},this.$refs.refTable.clearSort(),this.$refs.refTable.clearFilter(),setTimeout(()=>{this.refresh(),this.state=!1},100))},fadeColor(t,e){let l=parseInt(t.substring(1,3),16),s=parseInt(t.substring(3,5),16),a=parseInt(t.substring(5,7),16);return`rgba(${l},${s},${a},${e})`}},created(){this.columnsSetting=[...this.columns];const t=this.columns.filter(e=>e.fixed);this.frozenColumn=t.length,this.initialLoading&&this.loadData()}};var y=function(){var e=this,l=e._self._c;return l("div",{ref:"reftables",staticClass:"gd-tables",style:{"--theme":e.primaryColor,"--fadecolor":e.fadeColord},attrs:{id:"reftables"}},[l("div",{staticClass:"tables-tool"},[l("div",{staticClass:"tables-tool-l"},[e._t("operator")],2),l("div",{staticClass:"tables-tool-r"},[e.hasClear?l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.reset","\u91CD\u7F6E"),placement:"bottom"}},[l("i",{staticClass:"el-icon-brush",on:{click:e.clearAll}})]):e._e(),e.filtering?l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.screen","\u7B5B\u9009"),placement:"bottom"}},[l("el-popover",{ref:"filterdropdown",attrs:{trigger:"click",placement:"bottom"},on:{show:function(s){return e.changeFilter(!0)},hide:function(s){return e.changeFilter(!1)}}},[l("span",{staticClass:"el-dropdown-link",attrs:{slot:"reference"},slot:"reference"},[l("i",{staticClass:"gd-icons gd-icon-a-guangqi_guolv11x"})]),l("div",[e._t("filtering",null,{columns:e.columns,height:e.height,colse:e.closeFilter,visible:e.visibleFilter})],2)])],1):e._e(),e.isGather?l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.chart","\u56FE\u8868"),placement:"bottom"}},[l("i",{staticClass:"gd-icons gd-icon-zhuzhuangtu",on:{click:function(s){return e.$emit("baseSeecharts")}}})]):e._e(),e.disabledRefresh?e._e():l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.refresh","\u5237\u65B0"),placement:"bottom"}},[l("i",{staticClass:"el-icon-refresh",on:{click:function(s){return e.refresh(!1)}}})]),l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.density","\u5BC6\u5EA6"),placement:"bottom"}},[l("el-dropdown",{attrs:{trigger:"click",placement:"bottom"},on:{command:e.changColumnHeight}},[l("span",{staticClass:"el-dropdown-link"},[l("i",{staticClass:"el-icon-s-operation"})]),l("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[l("el-dropdown-item",{style:e.customSize==="medium"?e.dropdownActive:"",attrs:{command:"medium"}},[e._v(" "+e._s(e.$i18nt("gd.basics.default","\u9ED8\u8BA4"))+" ")]),l("el-dropdown-item",{style:e.customSize==="small"?e.dropdownActive:"",attrs:{command:"small"}},[e._v(" "+e._s(e.$i18nt("gd.basics.secondary","\u4E2D\u7B49"))+" ")]),l("el-dropdown-item",{style:e.customSize==="mini"?e.dropdownActive:"",attrs:{command:"mini"}},[e._v(" "+e._s(e.$i18nt("gd.basics.compact","\u7D27\u51D1"))+" ")])],1)],1)],1),e.disabledColumnSettings?e._e():l("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.columnSettings","\u5217\u8BBE\u7F6E"),placement:"bottom"}},[l("el-dropdown",{attrs:{trigger:"click",placement:"bottom"}},[l("span",{staticClass:"el-dropdown-link"},[l("i",{staticClass:"el-icon-setting"})]),l("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[l("gd-column-settings",{ref:"columnSettings",attrs:{columns:e.columns,height:e.height},on:{columnChange:e.columnChange}})],1)],1)],1)],1)]),l("u-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"refTable",staticClass:"table",class:e.border?"":"table-border",staticStyle:{width:"100%"},attrs:{"row-height":e.getRowHeight,"use-virtual":"",stripe:e.stripe,"row-key":e.rowKey,"expand-row-keys":e.tableExpand,"tree-props":e.tableTree?{children:"children",hasChildren:"isLeaf"}:void 0,tooltip:!0,border:e.border,size:e.customSize,indent:e.indent,lazy:e.lazy,"show-summary":e.showSummary,"summary-method":e.summaries,"default-expand-all":e.defaultExpandAll,"virtual-scroll":!0,"element-loading-background":"rgba(255, 255, 255, 0.8)","element-loading-spinner":"el-icon-loading",data:e.tableData,"cell-style":e.cellStyle,height:e.height||null,"max-height":e.maxHeight||null,"default-sort":{prop:"id",order:null},load:e.lazy?e.load:null,"span-method":e.method?e.spanMethod:null,"header-cell-style":e.getHeaderCellStyle,"cell-class-name":e.cellClassNamed,"row-class-name":e.rowClassNamed},on:{"sort-change":e.sortChange,"filter-change":e.handleFilterChange,"selection-change":e.handleSelectionChange,"row-click":e.rowClick,"expand-change":e.expandChange,"select-all":e.selectAll,select:e.handleSelect,"current-change":e.handleCurrentRowChange,"header-dragend":e.handleHeaderDragEnd}},[e._l(e.getColumns,function(s,a){return[s.type=="selection"?[l("u-table-column",{attrs:{type:"selection",width:s.width,fixed:s.fixed?s.fixed:!1,align:s.align?s.align:"center",selectable:e.selecTables}})]:s.type=="selection-radio"?[l("u-table-column",{key:s.key?s.key:a,attrs:{width:s.width,label:"",fixed:s.fixed?s.fixed:!1,align:s.align?s.align:"center"},scopedSlots:e._u([{key:"default",fn:function(o){return[l("el-radio",{attrs:{label:o.row[e.rowKey],size:"small"},on:{input:e.changRadio},model:{value:e.currentRow,callback:function(d){e.currentRow=d},expression:"currentRow"}},[e._v(" "+e._s("")+" ")])]}}],null,!0)})]:s.hidden!=!1&&s.type!=="slot"&&s.type!="expand"&&s.type!="selection-radio"?[l("u-table-column",{attrs:{width:s.width,prop:s.prop,label:e.$i18nt(s.transKey,s.label),fixed:s.fixed?s.fixed:!1,title:e.$i18nt(s.transKey,s.label)}})]:s.type=="expand"?[l("u-table-column",{key:s.key?s.key:a,attrs:{width:s.width,label:e.$i18nt(s.transKey,s.label),type:"expand"},scopedSlots:e._u([{key:"default",fn:function(o){return[e._t(s.slotType,null,{row:o.row,index:o.$index})]}}],null,!0)})]:s.type==="slot"?[l("u-table-column",{key:s.key?s.key:a,attrs:{width:s.width,"show-overflow-tooltip":typeof s.showTooltip>"u"?!0:s.showTooltip,"min-width":s.minWidth,prop:s.prop,label:e.$i18nt(s.transKey,s.label),fixed:s.fixed?s.fixed:!1,sortable:s.sortable?s.sortable:!1,align:s.align?s.align:"center","render-header":s.renderHeader,filters:s.filters,"filter-method":s.filterTag,"filter-placement":"bottom-end","reserve-selection":s.reserveSelection,type:s.colType},scopedSlots:e._u([{key:"default",fn:function(o){return[e._t(s.slotType,null,{row:o.row,index:o.$index,column:o.column})]}}],null,!0)})]:e._e()]}),l("template",{slot:"empty"},[l("div",{staticClass:"gd-table-empty"},[l("i",{staticClass:"el-icon-receiving"}),l("div",{staticClass:"empty-title"},[e._v(" "+e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A"))+" ")])])])],2),l("div",{staticClass:"gd-paging"},[e.showPagination?l("el-pagination",{attrs:{background:"","page-sizes":e.pageSizes,"page-size":e.pageSized,"current-page":e.currentPage,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"update:currentPage":function(s){e.currentPage=s},"update:current-page":function(s){e.currentPage=s},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)],1)},b=[],w=f.normalizeComponent(m,y,b,!1,null,"cf983a7d",null,null);const u=w.exports;u.install=function(t){t.component(u.name,u)};exports.GDpackage=u;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as h, n as f } from "./components.chartbi.
|
|
1
|
+
import { m as h, n as f } from "./components.chartbi.7356b244.mjs";
|
|
2
2
|
import { g as p, h as g } from "./http.main.aefea27d.mjs";
|
|
3
3
|
import "./utils.echarts.js.d1bb8ac6.mjs";
|
|
4
4
|
import "./utils.util.js.333daba2.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./components.chartbi.3bbac955.js"),u=require("./http.main.2f8a6936.js");require("./utils.echarts.js.461a74e7.js");require("./utils.util.js.c0ba699b.js");const p={name:"GdTeamSharing",props:{tableNames:{type:String,default:"sys_user,sys_team"},tableData:{type:Object,default:()=>({})},isInterface:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1}},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],operatorButtons:[{displayName:"\u6DFB\u52A0\u7528\u6237/\u56E2\u961F",functionName:"selRecord",show:!0,transKey:"gd.teamSharing.addut",icon:"el-icon-plus"},{displayName:"\u5220\u9664\u5DF2\u9009",functionName:"delRecord",show:!0,transKey:"gd.teamSharing.delSelected",icon:"el-icon-delete",btnType:"danger"}],id:"",visible:!1,confirmLoading:!1,fullscreen:!1,selectedAllRowKeys:[],selectedRowKeys:[],selectedRows:[],width:"90%",loadDataList:s=>new Promise((e,t)=>{e({pageNo:1,pageSize:100,totalRows:0,rows:this.loadData})}),loadData:[],loadOldData:[],columns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.teamSharing.name",prop:"name",label:"\u7528\u6237\u540D\u79F0",align:"left"},{transKey:"gd.teamSharing.query",prop:"isQuery",label:"\u67E5\u8BE2",type:"slot",slotType:"isQuery",align:"center",width:"120px"},{transKey:"gd.teamSharing.edit",prop:"isEdit",label:"\u7F16\u8F91",type:"slot",slotType:"isEdit",align:"center",width:"120px"},{transKey:"gd.teamSharing.delete",prop:"isDelete",label:"\u5220\u9664",type:"slot",slotType:"isDelete",align:"center",width:"120px"},{transKey:"gd.https.assign",prop:"isAllocation",label:"\u5206\u6D3E",type:"slot",slotType:"isAllocation",align:"center",width:"120px"},{transKey:"gd.teamSharing.share",prop:"isShare",label:"\u5171\u4EAB",type:"slot",slotType:"isShare",align:"center",width:"120px"},{transKey:"gd.teamSharing.source",prop:"source",label:"\u6765\u6E90",align:"left",type:"slot",slotType:"source"}]}},computed:{height(){return this.screenHeight-(this.fullscreen?130:280)},...h.mapGetters(["screenHeight","tableLists","tableSize","tablePageSize"])},methods:{handleSubmit(){let s=this;s.confirmLoading=!0;const e=this.$refs.table.tableData;if(e.length===0&&this.loadOldData.length===0){this.$message.warning(this.$i18nt("gd.teamSharing.addutTip","\u8BF7\u6DFB\u52A0\u7528\u6237/\u56E2\u961F!")),s.confirmLoading=!1;return}this.$confirm(this.$i18nt("gd.https.confirmSaveTip","\u662F\u5426\u786E\u8BA4\u4FDD\u5B58\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.saveOk","\u786E\u8BA4\u4FDD\u5B58"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,i,a)=>{if(t!=="confirm"){s.confirmLoading=!1,a();return}i.confirmButtonLoading=!0,i.cancelButtonLoading=!0,i.showCancelButton=!1;let n=[],o=[];e.forEach(l=>{o.push(l.ids);const d=s.loadOldData.filter(f=>l.ids===f.ids)[0];n.push({isdelete:l.isdelete?1:0,isedit:l.isedit?1:0,isquery:l.isquery?1:0,isshare:l.isshare?1:0,isallocation:l.isallocation?1:0,dataid:l.dataid,userteamid_aboutid:l.userteamid_aboutid,userteamid_abouttable:l.userteamid_abouttable,name:l.name,type:d?2:1,id:d?d.id:0})});let r=s.loadOldData.filter(l=>!o.includes(l.ids)).map(l=>(l.isdelete=l.isdelete?1:0,l.isedit=l.isedit?1:0,l.isquery=l.isquery?1:0,l.isshare=l.isshare?1:0,l.isallocation=l.isallocation?1:0,l.type=3,l));if(this.isInterface){let l={tablename:s.tableData.tablename,dataid:s.id,list:n.concat(r)};u.baseSharedDataSave(l).then(d=>{i.confirmButtonLoading=!1,i.cancelButtonLoading=!1,i.showCancelButton=!0,s.confirmLoading=!1,d.success?(s.$message.success(s.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),s.$emit("ok",l),s.closed()):s.$message.error(s.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+d.message)})}else{let l={tablename:s.tableData.tablename,dataid:s.id,list:n};s.$message.success(s.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),s.$emit("ok",l),s.closed()}}})},delRecord(){this.selectedRowKeys.length!==0&&this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,e,t)=>{if(t(),s!=="confirm")return;const i=this.$refs.table.tableData,a=i.filter(o=>!this.selectedRowKeys.includes(o.ids)),n=i.filter(o=>this.selectedRowKeys.includes(o.ids));this.selectedAllRowKeys=this.selectedAllRowKeys.filter(o=>!n.filter(l=>l.userteamid_aboutid===o)[0]),this.loadData=[...a],this.refresh()}})},lookupSeled(s){const e=this.$refs.table.tableData,t=e.filter(a=>s.data.includes(a.userteamid_aboutid));let i=[...t];s.fkData.forEach(a=>{if(!t.filter(o=>o.userteamid_aboutid===a.id)[0]){const o=this.tableLists.filter(l=>l.tablename===a.tableName)[0],r=e.filter(l=>l.id===a.userteamid_aboutid)[0];i.push(Object.assign({...a},{transkey:o.transkey,busname:o.busname,isquery:!0,isedit:!1,isdelete:!1,isshare:!1,isallocation:!1,userteamid_abouttable:o.tablename,userteamid_aboutid:a.id,dataid:this.id,ids:`${a.id}&${o.tablename}`},r?{isquery:r.isquery,isedit:r.isedit,isdelete:r.isdelete,isshare:r.isshare,isallocation:r.isallocation}:{}))}}),this.selectedAllRowKeys=[...s.data],this.loadData=[...i],this.refresh()},selRecord(){this.$refs.viewSearch.open({fkEntityName:this.tableNames,effectType:"participants",val:this.selectedAllRowKeys})},open(s){if(this.visible=!0,this.loadOldData=[],this.isInterface)this.id=s,this.getShared();else{if(s.extensionobj){let e=[];this.loadData=[...JSON.parse(s.extensionobj)].map(t=>{const i=this.tableLists.filter(a=>a.tablename===t.userteamid_abouttable)[0];return t.isdelete=t.isdelete===1,t.isedit=t.isedit===1,t.isquery=t.isquery===1,t.isshare=t.isshare===1,t.isallocation=t.isallocation===1,t.transkey=i.transkey,t.busname=i.busname,t.ids=`${t.userteamid_aboutid}&${i.tablename}`,e.push(t.userteamid_aboutid),t}),this.loadOldData=JSON.parse(s.extensionobj),this.selectedAllRowKeys=[...e]}this.$nextTick(()=>{setTimeout(()=>{this.refresh()},0)}),this.confirmLoading=!1}},getShared(){this.confirmLoading=!0,u.baseGetShared({id:this.id,tableName:this.tableData.tablename}).then(s=>{if(s.success){let e=[];this.loadData=[...s.data].map(t=>{const i=this.tableLists.filter(a=>a.tablename===t.userteamid_abouttable)[0];return t.isdelete=t.isdelete===1,t.isedit=t.isedit===1,t.isquery=t.isquery===1,t.isshare=t.isshare===1,t.isallocation=t.isallocation===1,t.transkey=i.transkey,t.busname=i.busname,t.ids=`${t.userteamid_aboutid}&${i.tablename}`,e.push(t.userteamid_aboutid),t}),this.loadOldData=JSON.parse(JSON.stringify(s.data)),this.selectedAllRowKeys=[...e]}else this.$message.warning(s.message),this.confirmLoading=!1;this.$nextTick(()=>{setTimeout(()=>{this.refresh()},0)}),this.confirmLoading=!1})},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},refresh(){this.$refs.table.refresh(!0)},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()}}};var g=function(){var e=this,t=e._self._c;return t("div",[t("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,"modal-append-to-body":!1,"append-to-body":!0,appendToBody:!0,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.teamSharing.title","\u5171\u4EAB"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("gd-tables",{ref:"table",attrs:{dataSource:e.loadDataList,size:e.tableSize,pageSize:e.tablePageSize,columns:e.columns,selectedRowKeys:e.selectedRowKeys,height:e.height,showPagination:!1,initialLoading:!1,disabledRefresh:!0,rowKey:"ids"},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[t("gd-btn-list",{attrs:{sysViewButtons:e.operatorButtons},on:{functionName:e.doEvent}})]},proxy:!0},{key:"isQuery",fn:function({column:i,row:a}){return[t("el-checkbox",{model:{value:a.isquery,callback:function(n){e.$set(a,"isquery",n)},expression:"row.isquery"}})]}},{key:"isEdit",fn:function({column:i,row:a}){return[t("el-checkbox",{model:{value:a.isedit,callback:function(n){e.$set(a,"isedit",n)},expression:"row.isedit"}})]}},{key:"isDelete",fn:function({column:i,row:a}){return[t("el-checkbox",{model:{value:a.isdelete,callback:function(n){e.$set(a,"isdelete",n)},expression:"row.isdelete"}})]}},{key:"isAllocation",fn:function({column:i,row:a}){return[t("el-checkbox",{model:{value:a.isallocation,callback:function(n){e.$set(a,"isallocation",n)},expression:"row.isallocation"}})]}},{key:"isShare",fn:function({column:i,row:a}){return[t("el-checkbox",{model:{value:a.isshare,callback:function(n){e.$set(a,"isshare",n)},expression:"row.isshare"}})]}},{key:"source",fn:function({column:i,row:a}){return[e._v(" "+e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.busname))+"/"+e._s(a.userteamid_abouttable)+" ")]}}],null,!1,428592404)}):e._e()],1)],2),t("gd-search",{ref:"viewSearch",attrs:{modalAppendToBody:e.modalAppendToBody,appendToBody:e.appendToBody},on:{lookupSeled:e.lookupSeled}})],1)},b=[],m=h.normalizeComponent(p,g,b,!1,null,"74494856",null,null);const c=m.exports;c.install=function(s){s.component(c.name,c)};exports.default=c;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./components.chartbi.13a8a7b5.js"),u=require("./http.main.2f8a6936.js");require("./utils.echarts.js.461a74e7.js");require("./utils.util.js.c0ba699b.js");const p={name:"GdTeamSharing",props:{tableNames:{type:String,default:"sys_user,sys_team"},tableData:{type:Object,default:()=>({})},isInterface:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1}},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],operatorButtons:[{displayName:"\u6DFB\u52A0\u7528\u6237/\u56E2\u961F",functionName:"selRecord",show:!0,transKey:"gd.teamSharing.addut",icon:"el-icon-plus"},{displayName:"\u5220\u9664\u5DF2\u9009",functionName:"delRecord",show:!0,transKey:"gd.teamSharing.delSelected",icon:"el-icon-delete",btnType:"danger"}],id:"",visible:!1,confirmLoading:!1,fullscreen:!1,selectedAllRowKeys:[],selectedRowKeys:[],selectedRows:[],width:"90%",loadDataList:s=>new Promise((e,t)=>{e({pageNo:1,pageSize:100,totalRows:0,rows:this.loadData})}),loadData:[],loadOldData:[],columns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.teamSharing.name",prop:"name",label:"\u7528\u6237\u540D\u79F0",align:"left"},{transKey:"gd.teamSharing.query",prop:"isQuery",label:"\u67E5\u8BE2",type:"slot",slotType:"isQuery",align:"center",width:"120px"},{transKey:"gd.teamSharing.edit",prop:"isEdit",label:"\u7F16\u8F91",type:"slot",slotType:"isEdit",align:"center",width:"120px"},{transKey:"gd.teamSharing.delete",prop:"isDelete",label:"\u5220\u9664",type:"slot",slotType:"isDelete",align:"center",width:"120px"},{transKey:"gd.https.assign",prop:"isAllocation",label:"\u5206\u6D3E",type:"slot",slotType:"isAllocation",align:"center",width:"120px"},{transKey:"gd.teamSharing.share",prop:"isShare",label:"\u5171\u4EAB",type:"slot",slotType:"isShare",align:"center",width:"120px"},{transKey:"gd.teamSharing.source",prop:"source",label:"\u6765\u6E90",align:"left",type:"slot",slotType:"source"}]}},computed:{height(){return this.screenHeight-(this.fullscreen?130:280)},...h.mapGetters(["screenHeight","tableLists","tableSize","tablePageSize"])},methods:{handleSubmit(){let s=this;s.confirmLoading=!0;const e=this.$refs.table.tableData;if(e.length===0&&this.loadOldData.length===0){this.$message.warning(this.$i18nt("gd.teamSharing.addutTip","\u8BF7\u6DFB\u52A0\u7528\u6237/\u56E2\u961F!")),s.confirmLoading=!1;return}this.$confirm(this.$i18nt("gd.https.confirmSaveTip","\u662F\u5426\u786E\u8BA4\u4FDD\u5B58\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.saveOk","\u786E\u8BA4\u4FDD\u5B58"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,i,a)=>{if(t!=="confirm"){s.confirmLoading=!1,a();return}i.confirmButtonLoading=!0,i.cancelButtonLoading=!0,i.showCancelButton=!1;let n=[],o=[];e.forEach(l=>{o.push(l.ids);const d=s.loadOldData.filter(f=>l.ids===f.ids)[0];n.push({isdelete:l.isdelete?1:0,isedit:l.isedit?1:0,isquery:l.isquery?1:0,isshare:l.isshare?1:0,isallocation:l.isallocation?1:0,dataid:l.dataid,userteamid_aboutid:l.userteamid_aboutid,userteamid_abouttable:l.userteamid_abouttable,name:l.name,type:d?2:1,id:d?d.id:0})});let r=s.loadOldData.filter(l=>!o.includes(l.ids)).map(l=>(l.isdelete=l.isdelete?1:0,l.isedit=l.isedit?1:0,l.isquery=l.isquery?1:0,l.isshare=l.isshare?1:0,l.isallocation=l.isallocation?1:0,l.type=3,l));if(this.isInterface){let l={tablename:s.tableData.tablename,dataid:s.id,list:n.concat(r)};u.baseSharedDataSave(l).then(d=>{i.confirmButtonLoading=!1,i.cancelButtonLoading=!1,i.showCancelButton=!0,s.confirmLoading=!1,d.success?(s.$message.success(s.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),s.$emit("ok",l),s.closed()):s.$message.error(s.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+d.message)})}else{let l={tablename:s.tableData.tablename,dataid:s.id,list:n};s.$message.success(s.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),s.$emit("ok",l),s.closed()}}})},delRecord(){this.selectedRowKeys.length!==0&&this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,e,t)=>{if(t(),s!=="confirm")return;const i=this.$refs.table.tableData,a=i.filter(o=>!this.selectedRowKeys.includes(o.ids)),n=i.filter(o=>this.selectedRowKeys.includes(o.ids));this.selectedAllRowKeys=this.selectedAllRowKeys.filter(o=>!n.filter(l=>l.userteamid_aboutid===o)[0]),this.loadData=[...a],this.refresh()}})},lookupSeled(s){const e=this.$refs.table.tableData,t=e.filter(a=>s.data.includes(a.userteamid_aboutid));let i=[...t];s.fkData.forEach(a=>{if(!t.filter(o=>o.userteamid_aboutid===a.id)[0]){const o=this.tableLists.filter(l=>l.tablename===a.tableName)[0],r=e.filter(l=>l.id===a.userteamid_aboutid)[0];i.push(Object.assign({...a},{transkey:o.transkey,busname:o.busname,isquery:!0,isedit:!1,isdelete:!1,isshare:!1,isallocation:!1,userteamid_abouttable:o.tablename,userteamid_aboutid:a.id,dataid:this.id,ids:`${a.id}&${o.tablename}`},r?{isquery:r.isquery,isedit:r.isedit,isdelete:r.isdelete,isshare:r.isshare,isallocation:r.isallocation}:{}))}}),this.selectedAllRowKeys=[...s.data],this.loadData=[...i],this.refresh()},selRecord(){this.$refs.viewSearch.open({fkEntityName:this.tableNames,effectType:"participants",val:this.selectedAllRowKeys})},open(s){if(this.visible=!0,this.loadOldData=[],this.isInterface)this.id=s,this.getShared();else{if(s.extensionobj){let e=[];this.loadData=[...JSON.parse(s.extensionobj)].map(t=>{const i=this.tableLists.filter(a=>a.tablename===t.userteamid_abouttable)[0];return t.isdelete=t.isdelete===1,t.isedit=t.isedit===1,t.isquery=t.isquery===1,t.isshare=t.isshare===1,t.isallocation=t.isallocation===1,t.transkey=i.transkey,t.busname=i.busname,t.ids=`${t.userteamid_aboutid}&${i.tablename}`,e.push(t.userteamid_aboutid),t}),this.loadOldData=JSON.parse(s.extensionobj),this.selectedAllRowKeys=[...e]}this.$nextTick(()=>{setTimeout(()=>{this.refresh()},0)}),this.confirmLoading=!1}},getShared(){this.confirmLoading=!0,u.baseGetShared({id:this.id,tableName:this.tableData.tablename}).then(s=>{if(s.success){let e=[];this.loadData=[...s.data].map(t=>{const i=this.tableLists.filter(a=>a.tablename===t.userteamid_abouttable)[0];return t.isdelete=t.isdelete===1,t.isedit=t.isedit===1,t.isquery=t.isquery===1,t.isshare=t.isshare===1,t.isallocation=t.isallocation===1,t.transkey=i.transkey,t.busname=i.busname,t.ids=`${t.userteamid_aboutid}&${i.tablename}`,e.push(t.userteamid_aboutid),t}),this.loadOldData=JSON.parse(JSON.stringify(s.data)),this.selectedAllRowKeys=[...e]}else this.$message.warning(s.message),this.confirmLoading=!1;this.$nextTick(()=>{setTimeout(()=>{this.refresh()},0)}),this.confirmLoading=!1})},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},refresh(){this.$refs.table.refresh(!0)},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()}}};var g=function(){var e=this,t=e._self._c;return t("div",[t("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,"modal-append-to-body":!1,"append-to-body":!0,appendToBody:!0,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.teamSharing.title","\u5171\u4EAB"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("gd-tables",{ref:"table",attrs:{dataSource:e.loadDataList,size:e.tableSize,pageSize:e.tablePageSize,columns:e.columns,selectedRowKeys:e.selectedRowKeys,height:e.height,showPagination:!1,initialLoading:!1,disabledRefresh:!0,rowKey:"ids"},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[t("gd-btn-list",{attrs:{sysViewButtons:e.operatorButtons},on:{functionName:e.doEvent}})]},proxy:!0},{key:"isQuery",fn:function({column:i,row:a}){return[t("el-checkbox",{model:{value:a.isquery,callback:function(n){e.$set(a,"isquery",n)},expression:"row.isquery"}})]}},{key:"isEdit",fn:function({column:i,row:a}){return[t("el-checkbox",{model:{value:a.isedit,callback:function(n){e.$set(a,"isedit",n)},expression:"row.isedit"}})]}},{key:"isDelete",fn:function({column:i,row:a}){return[t("el-checkbox",{model:{value:a.isdelete,callback:function(n){e.$set(a,"isdelete",n)},expression:"row.isdelete"}})]}},{key:"isAllocation",fn:function({column:i,row:a}){return[t("el-checkbox",{model:{value:a.isallocation,callback:function(n){e.$set(a,"isallocation",n)},expression:"row.isallocation"}})]}},{key:"isShare",fn:function({column:i,row:a}){return[t("el-checkbox",{model:{value:a.isshare,callback:function(n){e.$set(a,"isshare",n)},expression:"row.isshare"}})]}},{key:"source",fn:function({column:i,row:a}){return[e._v(" "+e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.busname))+"/"+e._s(a.userteamid_abouttable)+" ")]}}],null,!1,428592404)}):e._e()],1)],2),t("gd-search",{ref:"viewSearch",attrs:{modalAppendToBody:e.modalAppendToBody,appendToBody:e.appendToBody},on:{lookupSeled:e.lookupSeled}})],1)},b=[],m=h.normalizeComponent(p,g,b,!1,null,"74494856",null,null);const c=m.exports;c.install=function(s){s.component(c.name,c)};exports.default=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./components.chartbi.
|
|
1
|
+
"use strict";const s=require("./components.chartbi.13a8a7b5.js");const i={name:"GdTooltip",props:{highlight:{type:Boolean,default:!1},align:{type:String,default:"align"},rowKey:{type:String,default:"name"},line:{type:[String,Number],default:"1"},row:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!0},transKey:{type:String,default:""},prevent:{type:Boolean,default:!0}},computed:{content(){const e=this.row[this.rowKey]||"";return this.$i18nt(this.transKey,e)},lineClass(){return`line${this.line}`},placement(){let e="top";const t=this.row[this.align]||"is-center";return t==="is-left"?e="top-start":t==="is-right"&&(e="top-end"),e},cstyle(){return this.highlight?`color:${this.primaryColor};cursor: pointer;`:"cursor: pointer;"},...s.mapGetters(["primaryColor"])},data(){return{}},methods:{changeHand(){this.$emit("click",this.row)}}};var r=function(){var t=this,n=t._self._c;return n("div",[n("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{placement:t.placement,"open-delay":50,disabled:t.disabled}},[n("div",{staticClass:"tooltip-content",attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.content))]),t.prevent?n("div",{class:t.lineClass,style:t.cstyle,on:{click:function(l){return l.stopPropagation(),t.changeHand.apply(null,arguments)}}},[t._v(t._s(t.content))]):n("div",{class:t.lineClass,style:t.cstyle,on:{click:t.changeHand}},[t._v(t._s(t.content))])])],1)},o=[],c=s.normalizeComponent(i,r,o,!1,null,"b6a24a5e",null,null);const a=c.exports;a.install=function(e){e.component(a.name,a)};exports.GDpackage=a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as d, s as p } from "./http.filemanage.c0de21d6.mjs";
|
|
2
2
|
import { b as f, d as c } from "./utils.util.js.333daba2.mjs";
|
|
3
|
-
import { n as h } from "./components.chartbi.
|
|
3
|
+
import { n as h } from "./components.chartbi.7356b244.mjs";
|
|
4
4
|
const u = {
|
|
5
5
|
name: "GdUploadFile",
|
|
6
6
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const d=require("./http.filemanage.7e6e3e1a.js"),p=require("./utils.util.js.c0ba699b.js"),f=require("./components.chartbi.
|
|
1
|
+
"use strict";const d=require("./http.filemanage.7e6e3e1a.js"),p=require("./utils.util.js.c0ba699b.js"),f=require("./components.chartbi.13a8a7b5.js");const c={name:"GdUploadFile",props:{record:{type:Object,required:!0},model:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},limit:{type:Number,default:1},prop:{type:String,default:""},develop:{type:[Number,String],default:1},accept:{type:String,default:""},size:{type:Number,default:100}},data(){return{fileUploadList:[],fileListFile:[],uid:"",imgList:[],currentImg:"",leg:0,fileName:"",uidUploading:[]}},computed:{isDrag(){return this.options.drag!==void 0?this.options.drag:!1},download(){return this.options.download!==void 0?this.options.download:!1},disableds(){return this.limit<=this.leg?!0:this.disabled},fileAccept(){return this.accept?this.accept:p.getFileAccept("file")},fileSize(){return this.size?this.size:p.getFileSize("file")},options(){return this.record.options}},methods:{clearFiles(){this.fileListFile=[],this.uidUploading=[],this.record.uidUploading=[],this.leg=0,this.record.sourceData=JSON.stringify([]),this.model[this.prop]="",this.$refs.uploadFile&&this.$refs.uploadFile.clearFiles(),this.handleChange()},onExceed(){this.$message.error(this.$i18nt("gd.view.fileLimitTip","\u5DF2\u8D85\u8FC7\u6700\u5927\u4E0A\u4F20\u6570\u91CF"))},beforeUpload(i){return!(this.limit<=this.leg)},setDataMore({val:i,data:e,items:l,fkData:o}){this.setData(i)},isJSON(i){try{JSON.parse(i)}catch{return!1}return!0},setData(i){if(i===""||i===null){this.clearFiles();return}const e=this.isJSON(i)?JSON.parse(i):[];let l=[],o=[];e.forEach(s=>{const r=s.id?s.id:s.fileId;l.push({uid:r,name:s.name?s.name:s.fileoriginname,fileoriginname:s.name?s.name:s.fileoriginname,id:r,fileId:r,url:s.url?s.url:s.filepath}),r&&o.push(r)}),this.fileListFile=[...l],this.fileListFile.length===0&&this.clearFiles(),this.leg=l.length,this.record.sourceData=JSON.stringify(l),this.model[this.prop]=o.join(",")},previewFile(i){this.fileName=i.fileoriginname||i.name;let e="",l="";i.response&&i.response.fileoriginname?(e=i.response.fileoriginname,l=i.response.id):(e=i.name,l=i.fileId);const o=e.substr(e.lastIndexOf(".")+1).toLowerCase();["gif","jpeg","png","jpg","gif","bmp","JPG","PNG"].includes(o)?this.imgPreview(l):["mp4","webm","mp3","wav","docx","excel","pdf","xlsx","pptx","doc","dot","txt"].includes(o)&&this.$refs.filePreview.open(Object.assign(i,{fileId:i.response&&i.response.fileoriginname?i.response.id:i.fileId}))},imgPreview(i){d.sysFileInfoPreview({id:i}).then(e=>{const l=window.URL.createObjectURL(new Blob([e]));this.imgList=[l],this.currentImg=l,this.$refs.imgPreview.open()})},removeFileManual(i){const e=this.fileUploadList.filter(l=>(l.response?l.response.id:l.id)===i)[0];e&&this.$refs.uploadFile.handleRemove&&this.$refs.uploadFile.handleRemove(e)},removeFile(i,e){let l=[],o=[];e.forEach(s=>{s.response&&s.response.id?(l.push(s.response.id),o.push({uid:s.response.id,name:s.response.fileoriginname,fileoriginname:s.response.fileoriginname,id:s.response.id,fileId:s.response.id,url:s.response.url})):(l.push(s.fileId),o.push({uid:s.id?s.id:s.fileId,name:s.name?s.name:s.fileoriginname,fileoriginname:s.name?s.name:s.fileoriginname,id:s.fileId?s.fileId:s.id,fileId:s.fileId?s.fileId:s.id,url:s.url?s.url:s.filepath}))}),this.uidUploading=this.uidUploading.filter(s=>s!==i.uid),this.record.uidUploading=this.uidUploading,this.record.sourceData=JSON.stringify(o),this.model[this.prop]=l.join(","),this.leg=l.length,this.handleChange()},uploadFile(i){if(!this.fileAccept.includes(i.file.type)||i.file.type===""){console.log("fileAccept: "+i.file.type),this.$message.error(this.$i18nt("gd.view.fileAcceptTip","\u6587\u4EF6\u7C7B\u578B\u4E0D\u652F\u6301\uFF01")),i.onError();return}if(!(i.file.size/1024/1024<this.fileSize)){this.$message.error(this.$i18nt("gd.view.fileSizeTip","\u4E0A\u4F20\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7")+this.fileSize+"(MB)"),i.onError();return}this.$emit("uploadFile",i);const o=new FormData;o.append(this.options.fileName,i.file),this.uidUploading.push(i.file.uid),this.record.uidUploading=this.uidUploading,d.sysFileInfoUploadShop(o,{"Content-Type":i.file.type}).then(s=>{s.code===200?i.onSuccess(s.data):(this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+s.message),i.onError())}).catch(s=>{i.onError(s)})},successFile(i,e,l){this.uidUploading=this.uidUploading.filter(t=>t!==e.uid),this.record.uidUploading=this.uidUploading;const o=this.model[this.prop],r=(o?o.split(","):[]).concat([i.id]);this.model[this.prop]=r.join(",");let a=[];l.forEach(t=>{t.response&&t.response.id?a.push({ouid:t.uid,uid:t.response.id,name:t.response.fileoriginname,fileoriginname:t.response.fileoriginname,id:t.response.id,fileId:t.response.id,url:t.response.url}):a.push({uid:t.id?t.id:t.fileId,name:t.name?t.name:t.fileoriginname,fileoriginname:t.name?t.name:t.fileoriginname,id:t.fileId?t.fileId:t.id,fileId:t.fileId?t.fileId:t.id,url:t.url?t.url:t.filepath,ouid:t.ouid?t.ouid:t.uid})}),this.leg=r.length,this.record.sourceData=JSON.stringify(a),this.fileUploadList.push(e),this.handleChange()},handleChange(){this.$emit("change",this.record)}},mounted(){this.develop!==1&&this.$nextTick(()=>{setTimeout(()=>{this.record.setData===void 0&&(this.record.setData=this.setDataMore),this.record.clearFiles===void 0&&(this.record.clearFiles=this.clearFiles)},20)})}};var h=function(){var e=this,l=e._self._c;return l("div",{staticClass:"gd-upload-file"},[e.isDrag?l("el-upload",{ref:"uploadFile",attrs:{action:"","on-preview":e.previewFile,"on-remove":e.removeFile,multiple:"",limit:e.limit,"http-request":e.uploadFile,"file-list":e.fileListFile,"on-success":e.successFile,disabled:e.disabled,"before-upload":e.beforeUpload,"on-exceed":e.onExceed,drag:e.isDrag}},[l("div",{staticClass:"drag-kuang"},[l("i",{staticClass:"el-icon-upload",staticStyle:{margin:"0","font-size":"50px"}}),l("el-button",{staticClass:"btn-drag",attrs:{type:"text",disabled:e.disableds}},[l("span",{class:e.disableds?"":"active-color"},[e._v(e._s(e.$i18nt("gd.btn.uploadDrag","\u62D6\u62FD\u6587\u4EF6\u6216\u70B9\u51FB\u4E0A\u4F20")))])])],1)]):l("el-upload",{ref:"uploadFile",attrs:{action:"","on-preview":e.previewFile,"on-remove":e.removeFile,multiple:"",limit:e.limit,"http-request":e.uploadFile,"file-list":e.fileListFile,"on-success":e.successFile,accept:e.fileAccept,disabled:e.disabled,"before-upload":e.beforeUpload,"on-exceed":e.onExceed}},[e.isDrag?e._e():l("div",{staticClass:"upload-file-click"},[l("el-button",{attrs:{size:"mini",type:e.disableds?"info":"primary",disabled:e.disableds}},[l("i",{staticClass:"gd-icons gd-icon-shangchuan"}),e._v(" "+e._s(e.$i18nt("gd.btn.upload","\u4E0A\u4F20"))+" ")])],1)]),l("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:e.imgList.length>0,imgList:e.imgList,currentImg:e.currentImg,download:e.download,fileName:e.fileName}}),l("gd-file-preview",{ref:"filePreview",attrs:{options:e.options}})],1)},u=[],g=f.normalizeComponent(c,h,u,!1,null,"4641301d",null,null);const n=g.exports;n.install=function(i){i.component(n.name,n)};exports.UploadFile=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const p=require("./http.filemanage.7e6e3e1a.js"),d=require("./utils.util.js.c0ba699b.js"),u=require("./components.chartbi.
|
|
1
|
+
"use strict";const p=require("./http.filemanage.7e6e3e1a.js"),d=require("./utils.util.js.c0ba699b.js"),u=require("./components.chartbi.13a8a7b5.js");const h={name:"GdUploadImg",props:{record:{type:Object,default:()=>({})},model:{type:Object,required:!0},limit:{type:Number,default:1},disabled:{type:Boolean,default:!1},prop:{type:String,default:""},develop:{type:[Number,String],default:1},accept:{type:String,default:""},size:{type:Number,default:100}},data(){return{fileList:[],imgList:[],currentImg:"",uidUploading:[]}},computed:{fileAccept(){return this.accept?this.accept:d.getFileAccept("image")},fileSize(){return this.size?this.size:d.getFileSize("image")}},methods:{clearFiles(){this.fileListFile=[],this.uidUploading=[],this.record.uidUploading=[],this.model[this.prop]="",this.$refs.uploadFile&&this.$refs.uploadFile.clearFiles(),this.handleChange()},setDataMore({val:i,data:s,items:l,fkData:t}){this.setData(i)},setData(i){const s=i?i.split(","):[];if(s.length===0){this.clearFiles();return}let l=[];s.forEach(t=>{let e=this.getFileBlob(t).then(r=>r);l.push(e)}),Promise.all(l).then(t=>{let e=[];t.forEach(r=>{const a=this.fileList.filter(o=>o.fileId===r.fileId)[0];e.push({uid:a?a.uid:r.uuid,url:r.url,filePath:r.url,fileId:r.fileId})}),this.fileList=[...e]})},getFileBlob(i){return i.includes("http")?new Promise(l=>{l({url:i,fileId:"",uuid:d.uuid(8)})}):p.sysFileInfoPreview({id:i}).then(l=>({url:window.URL.createObjectURL(new Blob([l])),fileId:i,uuid:i}))},successImg(i,s,l){this.uidUploading=this.uidUploading.filter(e=>e!==s.uid),this.record.uidUploading=this.uidUploading;let t=[];l.forEach(e=>{e.response&&e.response.id?t.push({uid:e.response.id,name:e.response.fileoriginname,fileoriginname:e.response.fileoriginname,id:e.response.id,fileId:e.response.id,url:e.response.url}):t.push({uid:e.id?e.id:e.fileId,name:e.name?e.name:e.fileoriginname,fileoriginname:e.name?e.name:e.fileoriginname,id:e.fileId?e.fileId:e.id,fileId:e.fileId?e.fileId:e.id,url:e.url?e.url:e.filepath})}),this.fileList=[...l],this.handleChange()},uploadImgs(i){if(!this.fileAccept.split(",").includes(i.file.type)){this.$message.error(this.$i18nt("gd.view.fileAcceptTip","\u6587\u4EF6\u7C7B\u578B\u4E0D\u652F\u6301\uFF01")),i.onError();return}if(!(i.file.size/1024/1024<this.fileSize)){this.$message.error(this.$i18nt("gd.view.fileSizeTip","\u4E0A\u4F20\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7")+this.fileSize+"(MB)"),i.onError();return}const t=new FormData;t.append("file",i.file),this.uidUploading.push(i.file.uid),this.record.uidUploading=this.uidUploading,p.sysFileInfoUploadShop(t).then(e=>{if(e.code===200){const r=e.data.id,o=(this.model[this.prop]?this.model[this.prop].split(","):[]).concat([r]);this.model[this.prop]=o.join(","),i.onSuccess(e.data)}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+e.message),i.onError()}).catch(e=>{i.onError(e)})},previewImg(i){this.imgList=[];let s=[];this.fileList.forEach(l=>{s.push(l.url)}),this.imgList=s,this.currentImg=i.url,this.$refs.imgPreview.open()},removeImg(i,s){let l=[],t=[];s.forEach(e=>{e.response&&e.response.id?(l.push(e.response.id),t.push({uid:e.response.id,name:e.response.fileoriginname,fileoriginname:e.response.fileoriginname,id:e.response.id,fileId:e.response.id,url:e.response.url})):(l.push(e.fileId?e.fileId:e.id),t.push({uid:e.id?e.id:e.fileId,name:e.name?e.name:e.fileoriginname,fileoriginname:e.name?e.name:e.fileoriginname,id:e.fileId?e.fileId:e.id,fileId:e.fileId?e.fileId:e.id,url:e.url?e.url:e.filepath}))}),this.uidUploading=this.uidUploading.filter(e=>e!==i.uid),this.record.uidUploading=this.uidUploading,this.fileList=[...s],this.model[this.prop]=l.join(","),this.handleChange()},handleChange(){this.$emit("change",this.record)}},mounted(){this.develop!==1&&this.$nextTick(()=>{setTimeout(()=>{this.record.setData===void 0&&(this.record.setData=this.setDataMore),this.record.clearFiles===void 0&&(this.record.clearFiles=this.clearFiles)},20)})}};var c=function(){var s=this,l=s._self._c;return l("div",[l("el-upload",{staticClass:"upload-demo",class:s.fileList.length>=s.limit?"hide-demo":"",attrs:{action:"","list-type":"picture-card","on-preview":s.previewImg,"on-remove":s.removeImg,limit:s.limit,"http-request":s.uploadImgs,"on-success":s.successImg,"file-list":s.fileList,disabled:s.disabled,accept:s.fileAccept}},[l("i",{staticClass:"el-icon-plus"})]),l("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:s.imgList.length>0,imgList:s.imgList,currentImg:s.currentImg}})],1)},f=[],g=u.normalizeComponent(h,c,f,!1,null,"99ae0c7b",null,null);const n=g.exports;n.install=function(i){i.component(n.name,n)};exports.uploadImg=n;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as d, s as p } from "./http.filemanage.c0de21d6.mjs";
|
|
2
2
|
import { b as h, d as u, u as f } from "./utils.util.js.333daba2.mjs";
|
|
3
|
-
import { n as c } from "./components.chartbi.
|
|
3
|
+
import { n as c } from "./components.chartbi.7356b244.mjs";
|
|
4
4
|
const g = {
|
|
5
5
|
name: "GdUploadImg",
|
|
6
6
|
props: {
|
package/lib/{components.verificationcode.140533c7.js → components.verificationcode.863ff11e.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const d=require("./components.chartbi.
|
|
1
|
+
"use strict";const d=require("./components.chartbi.13a8a7b5.js");const s={name:"GdVerificationCode",props:{width:{type:String,default:"180px"},height:{type:String,default:"40px"},length:{type:Number,default:4}},data(){return{codeList:[]}},mounted(){this.createdCode()},methods:{refreshCode(){this.createdCode()},createdCode(){const e=this.length,t=[],n="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789",r=n.length;for(let o=0;o<e;o++){const a=[Math.round(Math.random()*220),Math.round(Math.random()*240),Math.round(Math.random()*200)];t.push({code:n.charAt(Math.floor(Math.random()*r)),color:`rgb(${a})`,fontSize:`${[Math.floor(Math.random()*(30-16+1)+16)]}px`,padding:`${[Math.floor(Math.random()*10)]}px`,transform:`rotate(${Math.floor(Math.random()*90)-Math.floor(Math.random()*90)}deg)`})}this.codeList=t,this.$emit("update",t.map(o=>o.code).join(""))},getStyle(e){return`color: ${e.color}; font-size: ${e.fontSize}; padding: ${e.padding}; transform: ${e.transform}`}}};var c=function(){var t=this,n=t._self._c;return n("div",{staticClass:"validcode disabled-select",style:`width:${t.width}; height:${t.height}`,on:{click:t.refreshCode}},t._l(t.codeList,function(r,o){return n("span",{key:o,style:t.getStyle(r)},[t._v(t._s(r.code))])}),0)},i=[],h=d.normalizeComponent(s,c,i,!1,null,"c4c21346",null,null);const l=h.exports;exports.VerificationCode=l;
|
package/lib/{components.viewformdetails.d241c652.mjs → components.viewformdetails.1236a66e.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { m as d, n as l, a as f } from "./components.chartbi.
|
|
1
|
+
import { m as d, n as l, a as f } from "./components.chartbi.7356b244.mjs";
|
|
2
2
|
import { g as a, i as C } from "./utils.util.js.333daba2.mjs";
|
|
3
3
|
import { d as y, i as D, p as c } from "./http.main.aefea27d.mjs";
|
|
4
4
|
import { o as L, c as I } from "./http.loginmanage.05500c29.mjs";
|
|
5
5
|
import { o as g } from "./http.syscodegenerateconfigmanage.6d2e5da0.mjs";
|
|
6
|
-
import { F as b } from "./form.build.
|
|
6
|
+
import { F as b } from "./form.build.33cc213e.mjs";
|
|
7
7
|
import { c as _ } from "./http.codegeneratemanage.b123bab3.mjs";
|
|
8
|
-
import { n as k } from "./system.notice.
|
|
8
|
+
import { n as k } from "./system.notice.51880df6.mjs";
|
|
9
9
|
const x = {
|
|
10
10
|
props: {
|
|
11
11
|
record: {
|
package/lib/{components.viewformdetails.940addba.js → components.viewformdetails.328c8642.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./components.chartbi.3bbac955.js"),l=require("./utils.util.js.c0ba699b.js"),d=require("./http.main.2f8a6936.js"),p=require("./http.loginmanage.326984c3.js"),f=require("./http.syscodegenerateconfigmanage.840f1136.js"),y=require("./form.build.724d3357.js"),g=require("./http.codegeneratemanage.e3db2f09.js"),C=require("./system.notice.db26f308.js"),b={props:{record:{type:Object,default:()=>({})},recordoperations:{type:Object,default:()=>({})},develop:{type:[Number,String],default:1},openMode:{type:[String,Number],default:1},height:{type:Number,default:100},foreign:{type:Object,default:()=>({})},disabledRowId:{type:Array,default:()=>[]},istable:{type:Boolean,default:!1}},data(){return{statu:!1,viewRecord:{},formList:[],tableData:{},sysViewList:[],personalViewList:[],sysViewButtons:[],selectedRowKeys:[],selectedRows:[],defaultViewId:0,excludeButtons:[],fieldData:[],tableDataSource:[],componentList:[],lineQuickView:t=>{const e="baseQuickView";return this[e]===void 0&&this.func===void 0?new Promise(i=>i(t)):this[e](t)}}},computed:{componentForm(){const t=this.$importViewFiles();let i=`../views/main/${this.options.table.tableName||this.options.table.tablename}/editForm.vue`;const s=t[i];return s?s.default:y.FormDesigner},viewList(){return this.sysViewList.concat(this.personalViewList)},formCode(){return this.options.form.id},options(){return this.record.options},...r.mapGetters(["tableLists"])},methods:{showLoading(){this.statu=!0,this.$refs.table.showLoading()},hideLoading(t=1500){this.$refs.table.hideLoading(t),setTimeout(()=>{this.statu=!1},t)},add(t){this.baseAdd()},edit(t){this.baseEdit()},del(t){this.baseDel()},deactivateData(){this.baseEnable(0)},enableData(){this.baseEnable()},assign(t){this.baseAssign(t)},batchUpdate(t){this.baseBatchUpdate()},teamSharing(t){this.baseTeamSharing(t)},statusChange(){this.baseStatusChange()},importData(){this.baseImportData()},exportData(t){this.baseExportData(t)},open(t){this.$nextTick(()=>{setTimeout(()=>{if(this.$refs.editForm){if(!(this.tableData.isvirtualtable===1)){this.$refs.editForm.open(t);return}this.openVirtual(t)}else console.log("err:\u8868\u5355\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},0)})},openVirtual(t){let e=new Map;this.fieldData.filter(s=>["fk","user"].includes(s.effecttype)).forEach(s=>{Object.keys(t).includes(s.columnname);const o=`name${s.fkentityname}${s.columnname}`;if(Object.keys(t).includes(o)){const a=t[`${s.columnname}id`],c=a||new Date().getTime();e.set(`${s.columnname}`,c),e.set(`${s.columnname}name`,t[o])}}),this.$refs.editForm.openDisplay(Object.assign({},t,Object.fromEntries(e)))},refresh(t=!0){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")},init(){this.record.hasLoad&&this.record.hasLoad(this.record.key),Promise.all([this.baseGetTableView(),this.baseGetPersonalView(!0),this.baseGetLoadData()]).then(t=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.table&&(this.$refs.table.init({fieldData:this.fieldData,tableData:this.tableData,sysViewList:this.sysViewList,personalViewList:this.personalViewList,defaultViewId:this.defaultViewId}),this.$refs.table.baseCustomComponents(this.componentList));let e=this.formList.filter(i=>i.id===this.formCode)[0];e||(e=this.formList.filter(i=>i.type===1)[0]),this.$refs.editForm&&e&&this.$refs.editForm.setFormRecord(e),this.beaseLoadComplete()},0)})})},onChangeBtn(t){this.sysViewButtons=t},onChangeView(t){this.viewRecord=t},onChangeData(t){this.tableDataSource=[...t],this.$emit("changeData",t)},onChangeSelect(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onChangeSelect",t,e);const i="baseChangeSelect";this[i]&&this[i](t,e)},beaseLoadComplete(){const t="onLoadCompleted";this[t]===void 0&&this.func===void 0||this[t]&&this[t]()},baseGetTableView(){const t=this.tableLists.filter(e=>{const i=this.options.table.tableName||this.options.table.tablename;return e.tablename.toLowerCase()===i.toLowerCase()})[0];return t?d.baseTableData({tableId:t.id}).then(e=>(e.code===200?(e.data.viewlist.map(i=>(i.mode=1,i)),this.formList=e.data.formlist,this.tableData=e.data.table,this.sysViewList=e.data.viewlist):this.$message.error(e.message),e)):(console.log("\u6570\u636E\u9519\u8BEF,\u8868\u4E0D\u5B58\u5728"),new Promise((e,i)=>{e({})}))},baseGetPersonalView(t){if(t&&this.openMode!=1)return new Promise((i,s)=>{i()});const e=this.tableLists.filter(i=>{const s=this.options.table.tableName||this.options.table.tablename;return i.tablename.toLowerCase()===s.toLowerCase()})[0];return e===void 0?(console.log("\u8868\u4E0D\u5B58\u5728"),new Promise((i,s)=>{i()})):d.basePersonalData({tableId:e.id}).then(i=>{if(i.code===200){const s=this.options.layoutConfig!==void 0?this.options.layoutConfig:!1;this.defaultViewId=s?0:i.data.defaultqueryid,this.personalViewList=i.data.savedquerylist}else console.log(i.message);return i.data})},baseGetLoadData(){const t=this.tableLists.filter(e=>{const i=this.options.table.tableName||this.options.table.tablename;return e.tablename.toLowerCase()===i.toLowerCase()})[0];return t?f.onlineFormGetCodeGenerateList({codeGenId:t.id}).then(e=>{e.code===200&&(this.fieldData=JSON.parse(JSON.stringify(e.data)),this.$emit("fieldData",e.data))}):(console.log("\u6570\u636E\u9519\u8BEF,\u8868\u4E0D\u5B58\u5728"),new Promise((e,i)=>{e({})}))},baseAdd(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm?this.$refs.editForm.open({title:this.$i18nt("gd.https.add","\u65B0\u589E")}):console.log("err:\u8868\u5355\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},0)})},baseEdit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}let t={title:this.$i18nt("gd.https.edit","\u7F16\u8F91")};this.openMode==3?Object.assign(t,{data:this.selectedRows[0]}):Object.assign(t,{id:this.selectedRowKeys[0]}),this.open(t)},baseCopyData(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}const t=this.tableDataSource.filter(e=>this.selectedRowKeys.includes(e.id))[0];this.$refs.editForm.openCopyData({title:this.$i18nt("gd.advancedFind.anotherSave","\u53E6\u5B58\u4E3A"),data:t})},baseDel(){this.$refs.table.baseDel()},baseEnable(t=1){return this.$refs.table.baseEnable(t)},baseRelationOk(t){this.$refs.table.baseRelationOk(t)},baseBatchUpdate(){this.$refs.table.baseBatchUpdate()},baseTeamSharing(t){this.$refs.table.baseTeamSharing(t)},baseStatusChange(){this.$refs.table.baseStatusChange()},baseAssign(t){this.$refs.table.baseAssign(t)},baseImportData(){this.$refs.table.baseImportData()},baseExportData(t){this.$refs.table.baseExportData(t)},baseGetParentFormData(t){if(this.openMode!=3)return new Promise((i,s)=>{i({})});let e=t===void 0?!1:t;return this.record.getFormAllData(e,!0).then(i=>i)},baseRelationRefresh(t=!0,e,i={}){this.openMode==3&&this.record.refresh(t,e,i)},baseBtnsStatus(t){this.$refs.table.baseBtnsStatus(t)},baseForceShowBtns(t){this.$refs.table.baseForceShowBtns(t)},baseComponentsInit(t){this.$refs.table.baseComponentsInit(t)},baseSetTableData(t){this.$refs.table.baseSetTableData(t)},getDictionary(t){return this.$options.filters.dictData(t)},baseTriggerFilter(t){this.$refs.table.baseTriggerFilter(t)},beseDoComponentEvent(t){const e=t.key?t.key:"",i=t.functionName?t.functionName:"",s=t.data?t.data:null,o=t.callback?t.callback:!1,h=t.callback?t.callback:this.record.key,a=t.callbackFunction?t.callbackFunction:"";this.record.doEvent&&this.record.doEvent({key:e,functionName:i,data:s,source:this.record,callback:o,callbackComponents:h,callbackFunction:a})},baseGetComponentData(t,e="key"){return this.record.getComponentData?this.record.getComponentData(t,e):null},doEvent(t){const e=t.item.functionName||t.item.functionname,i=t.key?t:t.item;if(this[e]===void 0){console.log("\u8BF7\u5B9A\u4E49 "+e+" \u65B9\u6CD5");return}this.showLoading(),this[e]&&this[e](i),this.hideLoading()},executeEvent(t){const e=t.functionName?t.functionName:"";e&&this[e]!==void 0?this.$nextTick(()=>{setTimeout(()=>{this[e](t)},100)}):console.log("\u6267\u884C\u9519\u8BEF")}},created(){this.init(),this.develop==2&&(this.record.executeEvent=this.executeEvent)},beforeDestroy(){this.sysViewList=[],this.personalViewList=[],this.selectedRows=[],this.sysViewButtons=[],this.fieldData=[],this.componentList=[],this.tableDataSource=[]}};const D={mixins:[b],methods:{}};var L=function(){var e=this,i=e._self._c;return i("div",[i("gd-view-build-designer",{ref:"table",attrs:{record:e.record,develop:e.develop,openMode:e.openMode,height:e.height,foreign:e.foreign,disabledRowId:e.disabledRowId,excludeButtons:e.excludeButtons,lineQuickView:e.lineQuickView},on:{baseOpen:e.open,changeBtn:e.onChangeBtn,changeView:e.onChangeView,changeData:e.onChangeData,changeSelect:e.onChangeSelect,doEvent:e.doEvent}}),i(e.componentForm,{ref:"editForm",tag:"component",attrs:{fieldData:e.fieldData,tableData:e.tableData,recordRelation:e.record,openMode:e.openMode},on:{ok:e.refresh,relationOk:e.baseRelationOk}})],1)},I=[],k=r.normalizeComponent(D,L,I,!1,null,"ca0b408e",null,null);const _=k.exports;const x={name:"GdViewFormDetails",props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{record:"",query:{},openType:"",modeType:"",popupType:"dialog",iframeUri:"",showPopup:!1,statu:!1}},computed:{hig(){return`${this.screenHeight}px`},istyle(){return`width:100%;overflow:hidden;height:${this.hig};`},...r.mapGetters(["primaryColor","screenHeight"])},components:{PopupDetails:()=>Promise.resolve().then(()=>P),ViewDetails:()=>Promise.resolve().then(()=>G)},methods:{open(t,e=!1){console.log(t),this.record=t;const i=l.getParamsQuery(t);this.query=i,this.modeType=e?this.modeType:i.mode_type?i.mode_type:"",this.openType=e?this.openType:i.open_type?i.open_type:"popup";const s=this.query.redirect_uri?this.query.redirect_uri:"";if(this.modeType==="request"){this.getRequestDetail();return}if(["authorize_view","authorize_form","authorize_details"].includes(this.modeType)){this.getAuthorizeCode();return}if(this.openType==="iframe"){this.getIframeUri(s);return}if(["redirect_self","redirect_blank"].includes(this.openType)){this.goRedirectUri(s);return}this.showPopup=!0,this.$nextTick(()=>{setTimeout(()=>{const o=`${this.openType}Details`;this.$refs[o]&&this.$refs[o].init()},0)})},getRequestDetail(){if(this.statu)return;const t=this.query.request_url?this.query.request_url:"";if(t==="")return;const e=decodeURIComponent(t),i=e.indexOf("?")===-1?e:e.slice(0,e.indexOf("?")),s=l.getParamsQuery(e);this.statu=!0,d.post(i,s).then(o=>{if(this.statu=!1,o.code!==200){this.$message.error(o.message);return}if(["redirect_self","redirect_blank"].includes(this.openType)){this.goRedirectUri(o.data),this.beaseLoadComplete();return}if(["iframe"].includes(this.openType)){this.getIframeUri(o.data),this.beaseLoadComplete();return}this.open(o.data,!0)})},getAuthorizeCode(){const t=this.query.code?this.query.code:"";if(t){this.Logout().then(e=>{this.getCode(t)});return}this.oauthAuthorize()},oauthAuthorize(){const t=this.query.client_id?this.query.client_id:"";this.query.response_type&&this.query.response_type,p.oauthAuthorize({client_id:t,response_type:"code"}).then(e=>{if(e.code!==200){this.$message.error(e.message);return}const i=this.query.redirect_uri?this.query.redirect_uri:"";if(i==="")return;const s=decodeURIComponent(i);s.indexOf("?")===-1||s.slice(0,s.indexOf("?"));const o=s.indexOf("?")===-1?[]:s.slice(s.indexOf("?")+1).split("&").map(n=>n.split("=")).map(([n,q])=>({key:n,value:q})).concat([{key:"code",value:e.data.code}]);if(["redirect_self","redirect_blank"].includes(this.openType)){this.oauthAuthorizeRedirect(o);return}const h=this.modeType.replace("authorize_","");let a=`?authorize_type=${this.modeType}&mode_type=${h}`,c=`?authorize_type=${this.modeType}&mode_type=${h}&open_type=view`;for(let n=0;n<o.length;n++)a+=`&${o[n].key}=${o[n].value}`,o[n].key!=="open_type"&&(c+=`&${o[n].key}=${o[n].value}`);const m=encodeURIComponent(s.slice(0,s.indexOf("?"))+c);a+=a===""?`?redirect_uri=${m}`:`&redirect_uri=${m}`,this.query.complete_request&&(a+=`&complete_request=${this.query.complete_request}`);const T=l.getParamsQuery(a);this.query=T,this.showPopup=!0,this.$nextTick(()=>{setTimeout(()=>{const n=`${this.openType}Details`;this.$refs[n]&&this.$refs[n].init()},0)})})},oauthAuthorizeRedirect(t){let e="";for(let s=0;s<t.length;s++)e+=`${s===0?"?":"&"}${t[s].key}=${t[s].value}`;const i=this.openType==="redirect_self"?"_self":this.openType==="redirect_blank"?"_blank":"_self";window.open(`${url}${e}`,i)},getCode(t){p.oauthCodeLogin({code:t}).then(e=>{if(e.code!==200){this.$message.error(e.message);return}this.loginSuccess(e.data),this.loginOther()})},goRedirectUri(t){if(t==="")return;const e=decodeURIComponent(t),i=this.openType==="redirect_self"?"_self":this.openType==="redirect_blank"?"_blank":"";window.open(e,i)},getIframeUri(t){t!==""&&(this.iframeUri=decodeURIComponent(t))},beaseLoadComplete(){const t=this.query.complete_request?this.query.complete_request:"";if(t==="")return;const e=decodeURIComponent(t),i=e.indexOf("?")===-1?e:e.slice(0,e.indexOf("?")),s=l.getParamsQuery(e);d.post(i,s)},loginSuccess(t){Vue.ls.set("ACCESS_TOKEN",t.accesstoken),this.$store.commit("SET_TOKEN",t.accesstoken);let e="";for(let i in this.query)["authorize_view","authorize_form","authorize_details"].includes(i)?e+=`${e===""?"?":"&"}${i}=${this.query[i].replace("authorize_","")}`:e+=`${e===""?"?":"&"}${i}=${this.query[i]}`;this.open(e,!0)},loginOther(){this.dictTypeData().then(e=>{});const t=new BroadcastChannel("gd-channel-msg");t.postMessage({type:"login",data:{gdTagName:window.gdTagName}}),t.close()},close(){this.modeType="",this.openType="",this.$nextTick(()=>{setTimeout(()=>{this.$emit("close")},300)})},doEvent(t){const e=`${this.openType}Details`;this.$refs[e]&&this.$refs[e].doEvent&&this.$refs[e].doEvent(t)},...r.mapActions(["Logout","dictTypeData"])}};var F=function(){var e=this,i=e._self._c;return i("div",{staticClass:"gd-vf-details"},[e.showPopup&&e.openType==="popup"?i("PopupDetails",{ref:"popupDetails",attrs:{record:e.record,query:e.query,modalAppendToBody:e.modalAppendToBody,appendToBody:e.appendToBody},on:{ok:function(s){return e.$emit("ok")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")},closed:e.close}}):e.openType==="view"?i("ViewDetails",{ref:"viewDetails",attrs:{record:e.record,query:e.query},on:{ok:function(s){return e.$emit("ok")},closed:e.close,onChangeBtn:s=>e.$emit("changeBtn",s),beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.openType==="iframe"?i("iframe",{style:e.istyle,attrs:{id:"iframe",height:e.hig,src:e.iframeUri,frameBorder:"0"}}):e._e()],1)},B=[],O=r.normalizeComponent(x,F,B,!1,null,"127122b3",null,null);const u=O.exports;u.install=function(t){t.component(u.name,u)};const S={props:{record:{type:String,default:""},query:{type:Object,default:()=>{}},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{modeType:"",popupMode:"drawer",fullscreen:!1,confirmLoading:!1,visible:!1,width:"80%",iframeUri:"",sysViewButtons:[]}},components:{ViewItem:()=>Promise.resolve().then(()=>v),FormItem:()=>Promise.resolve().then(()=>$),DetailsItem:()=>Promise.resolve().then(()=>w)},computed:{urls(){return this.iframeUri.indexOf("?")===-1?this.iframeUri:this.iframeUri.slice(0,this.iframeUri.indexOf("?"))},title(){return""},hig(){return`${this.height-24}px`},istyle(){return`width:100%;overflow:hidden;height:${this.hig};`},height(){return this.popupMode==="drawer"?this.screenHeight-48:this.fullscreen?this.screenHeight-72:this.screenHeight-230},...r.mapGetters(["formMode","screenHeight"])},methods:{onChangeBtn(t){this.sysViewButtons=t},init(){const t=this.query.popup_wid?this.query.popup_wid:"80%",e=this.query.popup_fullscreen?this.query.popup_fullscreen:"";this.width=isNaN(Number(t))?t:Number(t)+"px",this.fullscreen=e==="true";let i=this.query.popup_type?this.query.popup_type:"drawer";i==="followSystem"&&(i=this.formMode),this.popupMode=i,this.modeType=this.query.mode_type?this.query.mode_type:"form";let s=this.query.redirect_uri?decodeURIComponent(this.query.redirect_uri):"";this.iframeUri=s,console.log(this.iframeUri),this.visible=!0,this.query.open_type&&this.query.open_type!=="popup"&&(this.modeType=this.query.open_type),this.modeType==="iframe"&&window.addEventListener("message",this.monitorIframe),this.$nextTick(()=>{const o=`${this.modeType}Item`;this.$refs[o]&&this.$refs[o].init()})},toggleFullscreen(){this.fullscreen=!this.fullscreen},closed(){this.modeType="",this.fullscreen=!1,this.visible=!1,this.$emit("closed")},doEvent(t){if(this.modeType==="iframe"){document.getElementById("gd-view-iframe").contentWindow.postMessage({data:JSON.stringify(t),eventType:"btn-click"},this.urls);return}const e=`${this.modeType}Item`;this.$refs[e]&&this.$refs[e].doEvent(t)},monitorIframe(t){if(t.data.eventType==="form-btn"){this.onChangeBtn(t.data.data&&l.isJson(t.data.data)?JSON.parse(t.data.data):[]);return}if(t.data.eventType==="load-complete"){this.beaseLoadComplete();return}t.data.eventType==="close-drawer"&&this.closed()},beaseLoadComplete(t){console.log(this.query);const e=this.query.complete_request?this.query.complete_request:"";if(e==="")return;const i=decodeURIComponent(e),s=i.indexOf("?")===-1?i:i.slice(0,i.indexOf("?")),o=l.getParamsQuery(i);d.post(s,o)}},beforeDestory(){window.removeEventListener("message",this.monitorIframe)}};var V=function(){var e=this,i=e._self._c;return i("div",[e.popupMode==="dialog"?i("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":e.appendToBody,"modal-append-to-body":e.modalAppendToBody,top:"80px","show-close":!1},on:{"update:visible":function(s){e.visible=s},closed:e.closed}},[i("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen,close:e.closed},slot:"title"}),e.visible?i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"30vh"}},[e.modeType==="view"?i("ViewItem",{ref:"viewItem",attrs:{query:e.query,height:e.height}}):e.modeType==="form"?i("FormItem",{ref:"formItem",attrs:{query:e.query,height:e.height},on:{onChangeBtn:e.onChangeBtn,closed:e.closed,ok:function(s){return e.$emit("ok")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.modeType==="details"?i("DetailsItem",{ref:"detailsItem",attrs:{query:e.query,height:e.height}}):e.modeType==="iframe"?i("iframe",{style:e.istyle,attrs:{id:"gd-view-iframe",height:e.hig,src:e.iframeUri,frameBorder:"0"}}):e._e()],1):e._e()],1):i("el-drawer",{attrs:{visible:e.visible,"close-on-press-escape":!1,"append-to-body":e.appendToBody,"modal-append-to-body":e.modalAppendToBody,size:e.width,"custom-class":"gd-drawer-form","show-close":!1},on:{"update:visible":function(s){e.visible=s}}},[i("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,emitFun:!0,showFullscreen:!1,showClose:!0},on:{changeEvent:e.doEvent,close:e.closed},slot:"title"}),e.visible?i("div",{staticStyle:{height:"100%"}},[e.modeType==="view"?i("ViewItem",{ref:"viewItem",attrs:{query:e.query,height:e.height}}):e.modeType==="form"?i("FormItem",{ref:"formItem",attrs:{query:e.query,height:e.height},on:{onChangeBtn:e.onChangeBtn,closed:e.closed,ok:function(s){return e.$emit("ok")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.modeType==="details"?i("DetailsItem",{ref:"detailsItem",attrs:{query:e.query,height:e.height}}):e.modeType==="iframe"?i("iframe",{style:e.istyle,attrs:{id:"gd-view-iframe",height:e.hig,src:e.iframeUri,frameBorder:"0"}}):e._e()],1):e._e()],1)],1)},R=[],N=r.normalizeComponent(S,V,R,!1,null,"1aaea733",null,null);const E=N.exports,P=Object.freeze(Object.defineProperty({__proto__:null,default:E},Symbol.toStringTag,{value:"Module"}));const j={props:{record:{type:String,default:""},query:{type:Object,default:()=>{}}},data(){return{modeType:""}},components:{ViewItem:()=>Promise.resolve().then(()=>v),FormItem:()=>Promise.resolve().then(()=>$),DetailsItem:()=>Promise.resolve().then(()=>w)},computed:{height(){return this.screenHeight-72},...r.mapGetters(["screenHeight"])},methods:{init(){this.modeType=this.query.mode_type?this.query.mode_type:"form",this.visible=!0,this.$nextTick(()=>{const t=`${this.modeType}Item`;this.$refs[t]&&this.$refs[t].init()})},doEvent(t){const e=`${this.modeType}Item`;this.$refs[e]&&this.$refs[e].doEvent&&this.$refs[e].doEvent(t)}}};var U=function(){var e=this,i=e._self._c;return i("div",[e.modeType==="view"?i("ViewItem",{ref:"viewItem",attrs:{query:e.query,height:e.height}}):e.modeType==="form"?i("FormItem",{ref:"formItem",attrs:{query:e.query,height:e.height,modeType:"component"},on:{ok:function(s){return e.$emit("ok")},onChangeBtn:s=>e.$emit("onChangeBtn",s),closed:function(s){return e.$emit("closed")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.modeType==="details"?i("DetailsItem",{ref:"detailsItem",attrs:{query:e.query,height:e.height}}):e._e()],1)},M=[],z=r.normalizeComponent(j,U,M,!1,null,"dd2e4515",null,null);const A=z.exports,G=Object.freeze(Object.defineProperty({__proto__:null,default:A},Symbol.toStringTag,{value:"Module"}));const H={props:{height:{type:Number,default:600},query:{type:Object,default:()=>{}}},data(){return{record:{},openMode:1,viewId:"",tableId:"",formId:"",show:!1,confirmLoading:!1}},computed:{table(){const t=this.tableLists.filter(e=>e.id===this.tableId)[0];return t||{}},getHeight(){return this.height-24},componentItem(){const t=this.$importViewFiles();let e=`../views/main/${this.table.tablename}/index.vue`,i=t[e];return i?i.default:_},...r.mapGetters(["tableLists"])},methods:{init(){this.viewId=this.query.view_id?Number(this.query.view_id):"",this.tableId=this.query.table_id?Number(this.query.table_id):"",this.formId=this.query.form_id?Number(this.query.form_id):"",this.tableId!==""&&this.getAllTable().then(t=>{this.record={options:{table:this.table,form:{id:this.formId},view:{id:this.viewId},viewWeights:"1"}},this.$nextTick(()=>{setTimeout(()=>{this.show=!0},0)})})},getAllTable(){return this.tableLists.length>0?new Promise(t=>{t()}):g.codeGenerateInformationList({busName:""}).then(t=>(t.success&&this.TableLists(t.data),t.data))}}};var Q=function(){var e=this,i=e._self._c;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"300px"}},[e.show?i(e.componentItem,{ref:"lookuptable",tag:"component",attrs:{record:e.record,height:e.getHeight,develop:2,openMode:e.openMode}}):e._e()],1)},K=[],J=r.normalizeComponent(H,Q,K,!1,null,"5b928d29",null,null);const W=J.exports,v=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"}));const X={props:{query:{type:Object,default:()=>{}},modeType:{type:String,default:"component"}},data(){return{record:{},openMode:1,tableId:"",formId:"",show:!1,formData:{},fieldData:{},sysViewButtons:[],confirmLoading:!1}},computed:{table(){const t=this.tableLists.filter(e=>e.id===this.tableId)[0];return t||{}},getHeight(){return this.height-24},componentItem(){const t=this.$importViewFiles();let e=`../views/main/${this.table.tablename}/editForm.vue`,i=t[e];return i?i.default:y.FormDesigner},...r.mapGetters(["tableLists"])},methods:{beaseLoadComplete(t){console.log(this.query),this.$emit("beaseLoadComplete");const e=this.query.complete_request?this.query.complete_request:"";if(e==="")return;const i=decodeURIComponent(e),s=i.indexOf("?")===-1?i:i.slice(0,i.indexOf("?")),o=l.getParamsQuery(i);d.post(s,o)},onChangeBtn(t){this.sysViewButtons=t,this.$emit("onChangeBtn",t)},init(){this.confirmLoading=!0,this.tableId=this.query.table_id?Number(this.query.table_id):"",this.formId=this.query.form_id?Number(this.query.form_id):"",this.id=this.query.id?Number(this.query.id):"",this.tableId!==""&&Promise.all([this.sysFormDetails(),this.getLoadData(),this.getAllTable()]).then(t=>{this.record={options:{table:this.table,form:{id:this.formId}}},this.show=!0,this.confirmLoading=!1,this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm&&this.$refs.editForm.setFormRecord(this.formData).then(()=>{this.$refs.editForm.open({id:this.id,title:""})})},0)})})},getLoadData(){return f.onlineFormGetCodeGenerateList({codeGenId:this.tableId}).then(t=>(this.fieldData=t.data,t.data))},sysFormDetails(){return d.baseTableData({tableId:this.tableId}).then(t=>{if(t.code===200){const e=t.data.formlist.filter(i=>i.id===this.formId)[0];console.log(e),this.formData=e}return t.data})},getAllTable(){return this.tableLists.length>0?new Promise(t=>{t()}):g.codeGenerateInformationList({busName:""}).then(t=>(t.success&&this.TableLists(t.data),t.data))},doEvent(t){this.$refs.editForm&&this.$refs.editForm.doEvent(t)},closed(){console.log("\u5173\u95ED"),this.$emit("closed")},...r.mapActions(["TableLists"])}};var Y=function(){var e=this,i=e._self._c;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"300px",height:"100%"}},[e.show?i(e.componentItem,{ref:"editForm",tag:"component",attrs:{recordRelation:e.record,openMode:e.openMode,tableData:e.table,fieldData:e.fieldData,modeType:e.modeType},on:{onChangeBtn:e.onChangeBtn,closed:e.closed,ok:function(s){return e.$emit("ok")},onLoadCompleted:e.beaseLoadComplete}}):e._e()],1)},Z=[],ee=r.normalizeComponent(X,Y,Z,!1,null,"b8e777c7",null,null);const te=ee.exports,$=Object.freeze(Object.defineProperty({__proto__:null,default:te},Symbol.toStringTag,{value:"Module"}));const ie={props:{query:{type:Object,default:()=>{}}},data(){return{dictCode:"messagetype",messageType:"",componentItem:""}},computed:{componentForm(){return this.componentItem==="GdNoticeDetails"?C.noticeItem:""}},methods:{onLoadCompleted(){const t=this.query.complete_request?this.query.complete_request:"";if(t==="")return;const e=decodeURIComponent(t),i=e.indexOf("?")===-1?e:e.slice(0,e.indexOf("?")),s=l.getParamsQuery(e);d.post(i,s)},init(){if(this.messageType=this.query.message_type?this.query.message_type:"",this.messageType==="")return;const e=this.getDictionary(this.dictCode).filter(s=>s.code===this.messageType)[0];if(!e)return;const i=this.query.id?this.query.id:"";this.componentItem=e.remark,this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm&&this.$refs.editForm.open({id:i})},0)})},getDictionary(t){return this.$options.filters.dictData(t)}}};var se=function(){var e=this,i=e._self._c;return e.componentForm?i(e.componentForm,{ref:"editForm",tag:"component",attrs:{modeType:"component"},on:{onLoadCompleted:e.onLoadCompleted}}):e._e()},oe=[],re=r.normalizeComponent(ie,se,oe,!1,null,"2e905682",null,null);const ne=re.exports,w=Object.freeze(Object.defineProperty({__proto__:null,default:ne},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=u;exports.ViewTable=_;exports.viewMixins=b;
|
|
1
|
+
"use strict";const r=require("./components.chartbi.13a8a7b5.js"),l=require("./utils.util.js.c0ba699b.js"),d=require("./http.main.2f8a6936.js"),p=require("./http.loginmanage.326984c3.js"),f=require("./http.syscodegenerateconfigmanage.840f1136.js"),y=require("./form.build.19f0c882.js"),g=require("./http.codegeneratemanage.e3db2f09.js"),C=require("./system.notice.2090c130.js"),b={props:{record:{type:Object,default:()=>({})},recordoperations:{type:Object,default:()=>({})},develop:{type:[Number,String],default:1},openMode:{type:[String,Number],default:1},height:{type:Number,default:100},foreign:{type:Object,default:()=>({})},disabledRowId:{type:Array,default:()=>[]},istable:{type:Boolean,default:!1}},data(){return{statu:!1,viewRecord:{},formList:[],tableData:{},sysViewList:[],personalViewList:[],sysViewButtons:[],selectedRowKeys:[],selectedRows:[],defaultViewId:0,excludeButtons:[],fieldData:[],tableDataSource:[],componentList:[],lineQuickView:t=>{const e="baseQuickView";return this[e]===void 0&&this.func===void 0?new Promise(i=>i(t)):this[e](t)}}},computed:{componentForm(){const t=this.$importViewFiles();let i=`../views/main/${this.options.table.tableName||this.options.table.tablename}/editForm.vue`;const s=t[i];return s?s.default:y.FormDesigner},viewList(){return this.sysViewList.concat(this.personalViewList)},formCode(){return this.options.form.id},options(){return this.record.options},...r.mapGetters(["tableLists"])},methods:{showLoading(){this.statu=!0,this.$refs.table.showLoading()},hideLoading(t=1500){this.$refs.table.hideLoading(t),setTimeout(()=>{this.statu=!1},t)},add(t){this.baseAdd()},edit(t){this.baseEdit()},del(t){this.baseDel()},deactivateData(){this.baseEnable(0)},enableData(){this.baseEnable()},assign(t){this.baseAssign(t)},batchUpdate(t){this.baseBatchUpdate()},teamSharing(t){this.baseTeamSharing(t)},statusChange(){this.baseStatusChange()},importData(){this.baseImportData()},exportData(t){this.baseExportData(t)},open(t){this.$nextTick(()=>{setTimeout(()=>{if(this.$refs.editForm){if(!(this.tableData.isvirtualtable===1)){this.$refs.editForm.open(t);return}this.openVirtual(t)}else console.log("err:\u8868\u5355\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},0)})},openVirtual(t){let e=new Map;this.fieldData.filter(s=>["fk","user"].includes(s.effecttype)).forEach(s=>{Object.keys(t).includes(s.columnname);const o=`name${s.fkentityname}${s.columnname}`;if(Object.keys(t).includes(o)){const a=t[`${s.columnname}id`],c=a||new Date().getTime();e.set(`${s.columnname}`,c),e.set(`${s.columnname}name`,t[o])}}),this.$refs.editForm.openDisplay(Object.assign({},t,Object.fromEntries(e)))},refresh(t=!0){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")},init(){this.record.hasLoad&&this.record.hasLoad(this.record.key),Promise.all([this.baseGetTableView(),this.baseGetPersonalView(!0),this.baseGetLoadData()]).then(t=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.table&&(this.$refs.table.init({fieldData:this.fieldData,tableData:this.tableData,sysViewList:this.sysViewList,personalViewList:this.personalViewList,defaultViewId:this.defaultViewId}),this.$refs.table.baseCustomComponents(this.componentList));let e=this.formList.filter(i=>i.id===this.formCode)[0];e||(e=this.formList.filter(i=>i.type===1)[0]),this.$refs.editForm&&e&&this.$refs.editForm.setFormRecord(e),this.beaseLoadComplete()},0)})})},onChangeBtn(t){this.sysViewButtons=t},onChangeView(t){this.viewRecord=t},onChangeData(t){this.tableDataSource=[...t],this.$emit("changeData",t)},onChangeSelect(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onChangeSelect",t,e);const i="baseChangeSelect";this[i]&&this[i](t,e)},beaseLoadComplete(){const t="onLoadCompleted";this[t]===void 0&&this.func===void 0||this[t]&&this[t]()},baseGetTableView(){const t=this.tableLists.filter(e=>{const i=this.options.table.tableName||this.options.table.tablename;return e.tablename.toLowerCase()===i.toLowerCase()})[0];return t?d.baseTableData({tableId:t.id}).then(e=>(e.code===200?(e.data.viewlist.map(i=>(i.mode=1,i)),this.formList=e.data.formlist,this.tableData=e.data.table,this.sysViewList=e.data.viewlist):this.$message.error(e.message),e)):(console.log("\u6570\u636E\u9519\u8BEF,\u8868\u4E0D\u5B58\u5728"),new Promise((e,i)=>{e({})}))},baseGetPersonalView(t){if(t&&this.openMode!=1)return new Promise((i,s)=>{i()});const e=this.tableLists.filter(i=>{const s=this.options.table.tableName||this.options.table.tablename;return i.tablename.toLowerCase()===s.toLowerCase()})[0];return e===void 0?(console.log("\u8868\u4E0D\u5B58\u5728"),new Promise((i,s)=>{i()})):d.basePersonalData({tableId:e.id}).then(i=>{if(i.code===200){const s=this.options.layoutConfig!==void 0?this.options.layoutConfig:!1;this.defaultViewId=s?0:i.data.defaultqueryid,this.personalViewList=i.data.savedquerylist}else console.log(i.message);return i.data})},baseGetLoadData(){const t=this.tableLists.filter(e=>{const i=this.options.table.tableName||this.options.table.tablename;return e.tablename.toLowerCase()===i.toLowerCase()})[0];return t?f.onlineFormGetCodeGenerateList({codeGenId:t.id}).then(e=>{e.code===200&&(this.fieldData=JSON.parse(JSON.stringify(e.data)),this.$emit("fieldData",e.data))}):(console.log("\u6570\u636E\u9519\u8BEF,\u8868\u4E0D\u5B58\u5728"),new Promise((e,i)=>{e({})}))},baseAdd(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm?this.$refs.editForm.open({title:this.$i18nt("gd.https.add","\u65B0\u589E")}):console.log("err:\u8868\u5355\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},0)})},baseEdit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}let t={title:this.$i18nt("gd.https.edit","\u7F16\u8F91")};this.openMode==3?Object.assign(t,{data:this.selectedRows[0]}):Object.assign(t,{id:this.selectedRowKeys[0]}),this.open(t)},baseCopyData(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}const t=this.tableDataSource.filter(e=>this.selectedRowKeys.includes(e.id))[0];this.$refs.editForm.openCopyData({title:this.$i18nt("gd.advancedFind.anotherSave","\u53E6\u5B58\u4E3A"),data:t})},baseDel(){this.$refs.table.baseDel()},baseEnable(t=1){return this.$refs.table.baseEnable(t)},baseRelationOk(t){this.$refs.table.baseRelationOk(t)},baseBatchUpdate(){this.$refs.table.baseBatchUpdate()},baseTeamSharing(t){this.$refs.table.baseTeamSharing(t)},baseStatusChange(){this.$refs.table.baseStatusChange()},baseAssign(t){this.$refs.table.baseAssign(t)},baseImportData(){this.$refs.table.baseImportData()},baseExportData(t){this.$refs.table.baseExportData(t)},baseGetParentFormData(t){if(this.openMode!=3)return new Promise((i,s)=>{i({})});let e=t===void 0?!1:t;return this.record.getFormAllData(e,!0).then(i=>i)},baseRelationRefresh(t=!0,e,i={}){this.openMode==3&&this.record.refresh(t,e,i)},baseBtnsStatus(t){this.$refs.table.baseBtnsStatus(t)},baseForceShowBtns(t){this.$refs.table.baseForceShowBtns(t)},baseComponentsInit(t){this.$refs.table.baseComponentsInit(t)},baseSetTableData(t){this.$refs.table.baseSetTableData(t)},getDictionary(t){return this.$options.filters.dictData(t)},baseTriggerFilter(t){this.$refs.table.baseTriggerFilter(t)},beseDoComponentEvent(t){const e=t.key?t.key:"",i=t.functionName?t.functionName:"",s=t.data?t.data:null,o=t.callback?t.callback:!1,h=t.callback?t.callback:this.record.key,a=t.callbackFunction?t.callbackFunction:"";this.record.doEvent&&this.record.doEvent({key:e,functionName:i,data:s,source:this.record,callback:o,callbackComponents:h,callbackFunction:a})},baseGetComponentData(t,e="key"){return this.record.getComponentData?this.record.getComponentData(t,e):null},doEvent(t){const e=t.item.functionName||t.item.functionname,i=t.key?t:t.item;if(this[e]===void 0){console.log("\u8BF7\u5B9A\u4E49 "+e+" \u65B9\u6CD5");return}this.showLoading(),this[e]&&this[e](i),this.hideLoading()},executeEvent(t){const e=t.functionName?t.functionName:"";e&&this[e]!==void 0?this.$nextTick(()=>{setTimeout(()=>{this[e](t)},100)}):console.log("\u6267\u884C\u9519\u8BEF")}},created(){this.init(),this.develop==2&&(this.record.executeEvent=this.executeEvent)},beforeDestroy(){this.sysViewList=[],this.personalViewList=[],this.selectedRows=[],this.sysViewButtons=[],this.fieldData=[],this.componentList=[],this.tableDataSource=[]}};const D={mixins:[b],methods:{}};var L=function(){var e=this,i=e._self._c;return i("div",[i("gd-view-build-designer",{ref:"table",attrs:{record:e.record,develop:e.develop,openMode:e.openMode,height:e.height,foreign:e.foreign,disabledRowId:e.disabledRowId,excludeButtons:e.excludeButtons,lineQuickView:e.lineQuickView},on:{baseOpen:e.open,changeBtn:e.onChangeBtn,changeView:e.onChangeView,changeData:e.onChangeData,changeSelect:e.onChangeSelect,doEvent:e.doEvent}}),i(e.componentForm,{ref:"editForm",tag:"component",attrs:{fieldData:e.fieldData,tableData:e.tableData,recordRelation:e.record,openMode:e.openMode},on:{ok:e.refresh,relationOk:e.baseRelationOk}})],1)},I=[],k=r.normalizeComponent(D,L,I,!1,null,"ca0b408e",null,null);const _=k.exports;const x={name:"GdViewFormDetails",props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{record:"",query:{},openType:"",modeType:"",popupType:"dialog",iframeUri:"",showPopup:!1,statu:!1}},computed:{hig(){return`${this.screenHeight}px`},istyle(){return`width:100%;overflow:hidden;height:${this.hig};`},...r.mapGetters(["primaryColor","screenHeight"])},components:{PopupDetails:()=>Promise.resolve().then(()=>P),ViewDetails:()=>Promise.resolve().then(()=>G)},methods:{open(t,e=!1){console.log(t),this.record=t;const i=l.getParamsQuery(t);this.query=i,this.modeType=e?this.modeType:i.mode_type?i.mode_type:"",this.openType=e?this.openType:i.open_type?i.open_type:"popup";const s=this.query.redirect_uri?this.query.redirect_uri:"";if(this.modeType==="request"){this.getRequestDetail();return}if(["authorize_view","authorize_form","authorize_details"].includes(this.modeType)){this.getAuthorizeCode();return}if(this.openType==="iframe"){this.getIframeUri(s);return}if(["redirect_self","redirect_blank"].includes(this.openType)){this.goRedirectUri(s);return}this.showPopup=!0,this.$nextTick(()=>{setTimeout(()=>{const o=`${this.openType}Details`;this.$refs[o]&&this.$refs[o].init()},0)})},getRequestDetail(){if(this.statu)return;const t=this.query.request_url?this.query.request_url:"";if(t==="")return;const e=decodeURIComponent(t),i=e.indexOf("?")===-1?e:e.slice(0,e.indexOf("?")),s=l.getParamsQuery(e);this.statu=!0,d.post(i,s).then(o=>{if(this.statu=!1,o.code!==200){this.$message.error(o.message);return}if(["redirect_self","redirect_blank"].includes(this.openType)){this.goRedirectUri(o.data),this.beaseLoadComplete();return}if(["iframe"].includes(this.openType)){this.getIframeUri(o.data),this.beaseLoadComplete();return}this.open(o.data,!0)})},getAuthorizeCode(){const t=this.query.code?this.query.code:"";if(t){this.Logout().then(e=>{this.getCode(t)});return}this.oauthAuthorize()},oauthAuthorize(){const t=this.query.client_id?this.query.client_id:"";this.query.response_type&&this.query.response_type,p.oauthAuthorize({client_id:t,response_type:"code"}).then(e=>{if(e.code!==200){this.$message.error(e.message);return}const i=this.query.redirect_uri?this.query.redirect_uri:"";if(i==="")return;const s=decodeURIComponent(i);s.indexOf("?")===-1||s.slice(0,s.indexOf("?"));const o=s.indexOf("?")===-1?[]:s.slice(s.indexOf("?")+1).split("&").map(n=>n.split("=")).map(([n,q])=>({key:n,value:q})).concat([{key:"code",value:e.data.code}]);if(["redirect_self","redirect_blank"].includes(this.openType)){this.oauthAuthorizeRedirect(o);return}const h=this.modeType.replace("authorize_","");let a=`?authorize_type=${this.modeType}&mode_type=${h}`,c=`?authorize_type=${this.modeType}&mode_type=${h}&open_type=view`;for(let n=0;n<o.length;n++)a+=`&${o[n].key}=${o[n].value}`,o[n].key!=="open_type"&&(c+=`&${o[n].key}=${o[n].value}`);const m=encodeURIComponent(s.slice(0,s.indexOf("?"))+c);a+=a===""?`?redirect_uri=${m}`:`&redirect_uri=${m}`,this.query.complete_request&&(a+=`&complete_request=${this.query.complete_request}`);const T=l.getParamsQuery(a);this.query=T,this.showPopup=!0,this.$nextTick(()=>{setTimeout(()=>{const n=`${this.openType}Details`;this.$refs[n]&&this.$refs[n].init()},0)})})},oauthAuthorizeRedirect(t){let e="";for(let s=0;s<t.length;s++)e+=`${s===0?"?":"&"}${t[s].key}=${t[s].value}`;const i=this.openType==="redirect_self"?"_self":this.openType==="redirect_blank"?"_blank":"_self";window.open(`${url}${e}`,i)},getCode(t){p.oauthCodeLogin({code:t}).then(e=>{if(e.code!==200){this.$message.error(e.message);return}this.loginSuccess(e.data),this.loginOther()})},goRedirectUri(t){if(t==="")return;const e=decodeURIComponent(t),i=this.openType==="redirect_self"?"_self":this.openType==="redirect_blank"?"_blank":"";window.open(e,i)},getIframeUri(t){t!==""&&(this.iframeUri=decodeURIComponent(t))},beaseLoadComplete(){const t=this.query.complete_request?this.query.complete_request:"";if(t==="")return;const e=decodeURIComponent(t),i=e.indexOf("?")===-1?e:e.slice(0,e.indexOf("?")),s=l.getParamsQuery(e);d.post(i,s)},loginSuccess(t){Vue.ls.set("ACCESS_TOKEN",t.accesstoken),this.$store.commit("SET_TOKEN",t.accesstoken);let e="";for(let i in this.query)["authorize_view","authorize_form","authorize_details"].includes(i)?e+=`${e===""?"?":"&"}${i}=${this.query[i].replace("authorize_","")}`:e+=`${e===""?"?":"&"}${i}=${this.query[i]}`;this.open(e,!0)},loginOther(){this.dictTypeData().then(e=>{});const t=new BroadcastChannel("gd-channel-msg");t.postMessage({type:"login",data:{gdTagName:window.gdTagName}}),t.close()},close(){this.modeType="",this.openType="",this.$nextTick(()=>{setTimeout(()=>{this.$emit("close")},300)})},doEvent(t){const e=`${this.openType}Details`;this.$refs[e]&&this.$refs[e].doEvent&&this.$refs[e].doEvent(t)},...r.mapActions(["Logout","dictTypeData"])}};var F=function(){var e=this,i=e._self._c;return i("div",{staticClass:"gd-vf-details"},[e.showPopup&&e.openType==="popup"?i("PopupDetails",{ref:"popupDetails",attrs:{record:e.record,query:e.query,modalAppendToBody:e.modalAppendToBody,appendToBody:e.appendToBody},on:{ok:function(s){return e.$emit("ok")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")},closed:e.close}}):e.openType==="view"?i("ViewDetails",{ref:"viewDetails",attrs:{record:e.record,query:e.query},on:{ok:function(s){return e.$emit("ok")},closed:e.close,onChangeBtn:s=>e.$emit("changeBtn",s),beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.openType==="iframe"?i("iframe",{style:e.istyle,attrs:{id:"iframe",height:e.hig,src:e.iframeUri,frameBorder:"0"}}):e._e()],1)},B=[],O=r.normalizeComponent(x,F,B,!1,null,"127122b3",null,null);const u=O.exports;u.install=function(t){t.component(u.name,u)};const S={props:{record:{type:String,default:""},query:{type:Object,default:()=>{}},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{modeType:"",popupMode:"drawer",fullscreen:!1,confirmLoading:!1,visible:!1,width:"80%",iframeUri:"",sysViewButtons:[]}},components:{ViewItem:()=>Promise.resolve().then(()=>v),FormItem:()=>Promise.resolve().then(()=>$),DetailsItem:()=>Promise.resolve().then(()=>w)},computed:{urls(){return this.iframeUri.indexOf("?")===-1?this.iframeUri:this.iframeUri.slice(0,this.iframeUri.indexOf("?"))},title(){return""},hig(){return`${this.height-24}px`},istyle(){return`width:100%;overflow:hidden;height:${this.hig};`},height(){return this.popupMode==="drawer"?this.screenHeight-48:this.fullscreen?this.screenHeight-72:this.screenHeight-230},...r.mapGetters(["formMode","screenHeight"])},methods:{onChangeBtn(t){this.sysViewButtons=t},init(){const t=this.query.popup_wid?this.query.popup_wid:"80%",e=this.query.popup_fullscreen?this.query.popup_fullscreen:"";this.width=isNaN(Number(t))?t:Number(t)+"px",this.fullscreen=e==="true";let i=this.query.popup_type?this.query.popup_type:"drawer";i==="followSystem"&&(i=this.formMode),this.popupMode=i,this.modeType=this.query.mode_type?this.query.mode_type:"form";let s=this.query.redirect_uri?decodeURIComponent(this.query.redirect_uri):"";this.iframeUri=s,console.log(this.iframeUri),this.visible=!0,this.query.open_type&&this.query.open_type!=="popup"&&(this.modeType=this.query.open_type),this.modeType==="iframe"&&window.addEventListener("message",this.monitorIframe),this.$nextTick(()=>{const o=`${this.modeType}Item`;this.$refs[o]&&this.$refs[o].init()})},toggleFullscreen(){this.fullscreen=!this.fullscreen},closed(){this.modeType="",this.fullscreen=!1,this.visible=!1,this.$emit("closed")},doEvent(t){if(this.modeType==="iframe"){document.getElementById("gd-view-iframe").contentWindow.postMessage({data:JSON.stringify(t),eventType:"btn-click"},this.urls);return}const e=`${this.modeType}Item`;this.$refs[e]&&this.$refs[e].doEvent(t)},monitorIframe(t){if(t.data.eventType==="form-btn"){this.onChangeBtn(t.data.data&&l.isJson(t.data.data)?JSON.parse(t.data.data):[]);return}if(t.data.eventType==="load-complete"){this.beaseLoadComplete();return}t.data.eventType==="close-drawer"&&this.closed()},beaseLoadComplete(t){console.log(this.query);const e=this.query.complete_request?this.query.complete_request:"";if(e==="")return;const i=decodeURIComponent(e),s=i.indexOf("?")===-1?i:i.slice(0,i.indexOf("?")),o=l.getParamsQuery(i);d.post(s,o)}},beforeDestory(){window.removeEventListener("message",this.monitorIframe)}};var V=function(){var e=this,i=e._self._c;return i("div",[e.popupMode==="dialog"?i("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":e.appendToBody,"modal-append-to-body":e.modalAppendToBody,top:"80px","show-close":!1},on:{"update:visible":function(s){e.visible=s},closed:e.closed}},[i("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen,close:e.closed},slot:"title"}),e.visible?i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"30vh"}},[e.modeType==="view"?i("ViewItem",{ref:"viewItem",attrs:{query:e.query,height:e.height}}):e.modeType==="form"?i("FormItem",{ref:"formItem",attrs:{query:e.query,height:e.height},on:{onChangeBtn:e.onChangeBtn,closed:e.closed,ok:function(s){return e.$emit("ok")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.modeType==="details"?i("DetailsItem",{ref:"detailsItem",attrs:{query:e.query,height:e.height}}):e.modeType==="iframe"?i("iframe",{style:e.istyle,attrs:{id:"gd-view-iframe",height:e.hig,src:e.iframeUri,frameBorder:"0"}}):e._e()],1):e._e()],1):i("el-drawer",{attrs:{visible:e.visible,"close-on-press-escape":!1,"append-to-body":e.appendToBody,"modal-append-to-body":e.modalAppendToBody,size:e.width,"custom-class":"gd-drawer-form","show-close":!1},on:{"update:visible":function(s){e.visible=s}}},[i("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,emitFun:!0,showFullscreen:!1,showClose:!0},on:{changeEvent:e.doEvent,close:e.closed},slot:"title"}),e.visible?i("div",{staticStyle:{height:"100%"}},[e.modeType==="view"?i("ViewItem",{ref:"viewItem",attrs:{query:e.query,height:e.height}}):e.modeType==="form"?i("FormItem",{ref:"formItem",attrs:{query:e.query,height:e.height},on:{onChangeBtn:e.onChangeBtn,closed:e.closed,ok:function(s){return e.$emit("ok")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.modeType==="details"?i("DetailsItem",{ref:"detailsItem",attrs:{query:e.query,height:e.height}}):e.modeType==="iframe"?i("iframe",{style:e.istyle,attrs:{id:"gd-view-iframe",height:e.hig,src:e.iframeUri,frameBorder:"0"}}):e._e()],1):e._e()],1)],1)},R=[],N=r.normalizeComponent(S,V,R,!1,null,"1aaea733",null,null);const E=N.exports,P=Object.freeze(Object.defineProperty({__proto__:null,default:E},Symbol.toStringTag,{value:"Module"}));const j={props:{record:{type:String,default:""},query:{type:Object,default:()=>{}}},data(){return{modeType:""}},components:{ViewItem:()=>Promise.resolve().then(()=>v),FormItem:()=>Promise.resolve().then(()=>$),DetailsItem:()=>Promise.resolve().then(()=>w)},computed:{height(){return this.screenHeight-72},...r.mapGetters(["screenHeight"])},methods:{init(){this.modeType=this.query.mode_type?this.query.mode_type:"form",this.visible=!0,this.$nextTick(()=>{const t=`${this.modeType}Item`;this.$refs[t]&&this.$refs[t].init()})},doEvent(t){const e=`${this.modeType}Item`;this.$refs[e]&&this.$refs[e].doEvent&&this.$refs[e].doEvent(t)}}};var U=function(){var e=this,i=e._self._c;return i("div",[e.modeType==="view"?i("ViewItem",{ref:"viewItem",attrs:{query:e.query,height:e.height}}):e.modeType==="form"?i("FormItem",{ref:"formItem",attrs:{query:e.query,height:e.height,modeType:"component"},on:{ok:function(s){return e.$emit("ok")},onChangeBtn:s=>e.$emit("onChangeBtn",s),closed:function(s){return e.$emit("closed")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.modeType==="details"?i("DetailsItem",{ref:"detailsItem",attrs:{query:e.query,height:e.height}}):e._e()],1)},M=[],z=r.normalizeComponent(j,U,M,!1,null,"dd2e4515",null,null);const A=z.exports,G=Object.freeze(Object.defineProperty({__proto__:null,default:A},Symbol.toStringTag,{value:"Module"}));const H={props:{height:{type:Number,default:600},query:{type:Object,default:()=>{}}},data(){return{record:{},openMode:1,viewId:"",tableId:"",formId:"",show:!1,confirmLoading:!1}},computed:{table(){const t=this.tableLists.filter(e=>e.id===this.tableId)[0];return t||{}},getHeight(){return this.height-24},componentItem(){const t=this.$importViewFiles();let e=`../views/main/${this.table.tablename}/index.vue`,i=t[e];return i?i.default:_},...r.mapGetters(["tableLists"])},methods:{init(){this.viewId=this.query.view_id?Number(this.query.view_id):"",this.tableId=this.query.table_id?Number(this.query.table_id):"",this.formId=this.query.form_id?Number(this.query.form_id):"",this.tableId!==""&&this.getAllTable().then(t=>{this.record={options:{table:this.table,form:{id:this.formId},view:{id:this.viewId},viewWeights:"1"}},this.$nextTick(()=>{setTimeout(()=>{this.show=!0},0)})})},getAllTable(){return this.tableLists.length>0?new Promise(t=>{t()}):g.codeGenerateInformationList({busName:""}).then(t=>(t.success&&this.TableLists(t.data),t.data))}}};var Q=function(){var e=this,i=e._self._c;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"300px"}},[e.show?i(e.componentItem,{ref:"lookuptable",tag:"component",attrs:{record:e.record,height:e.getHeight,develop:2,openMode:e.openMode}}):e._e()],1)},K=[],J=r.normalizeComponent(H,Q,K,!1,null,"5b928d29",null,null);const W=J.exports,v=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"}));const X={props:{query:{type:Object,default:()=>{}},modeType:{type:String,default:"component"}},data(){return{record:{},openMode:1,tableId:"",formId:"",show:!1,formData:{},fieldData:{},sysViewButtons:[],confirmLoading:!1}},computed:{table(){const t=this.tableLists.filter(e=>e.id===this.tableId)[0];return t||{}},getHeight(){return this.height-24},componentItem(){const t=this.$importViewFiles();let e=`../views/main/${this.table.tablename}/editForm.vue`,i=t[e];return i?i.default:y.FormDesigner},...r.mapGetters(["tableLists"])},methods:{beaseLoadComplete(t){console.log(this.query),this.$emit("beaseLoadComplete");const e=this.query.complete_request?this.query.complete_request:"";if(e==="")return;const i=decodeURIComponent(e),s=i.indexOf("?")===-1?i:i.slice(0,i.indexOf("?")),o=l.getParamsQuery(i);d.post(s,o)},onChangeBtn(t){this.sysViewButtons=t,this.$emit("onChangeBtn",t)},init(){this.confirmLoading=!0,this.tableId=this.query.table_id?Number(this.query.table_id):"",this.formId=this.query.form_id?Number(this.query.form_id):"",this.id=this.query.id?Number(this.query.id):"",this.tableId!==""&&Promise.all([this.sysFormDetails(),this.getLoadData(),this.getAllTable()]).then(t=>{this.record={options:{table:this.table,form:{id:this.formId}}},this.show=!0,this.confirmLoading=!1,this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm&&this.$refs.editForm.setFormRecord(this.formData).then(()=>{this.$refs.editForm.open({id:this.id,title:""})})},0)})})},getLoadData(){return f.onlineFormGetCodeGenerateList({codeGenId:this.tableId}).then(t=>(this.fieldData=t.data,t.data))},sysFormDetails(){return d.baseTableData({tableId:this.tableId}).then(t=>{if(t.code===200){const e=t.data.formlist.filter(i=>i.id===this.formId)[0];console.log(e),this.formData=e}return t.data})},getAllTable(){return this.tableLists.length>0?new Promise(t=>{t()}):g.codeGenerateInformationList({busName:""}).then(t=>(t.success&&this.TableLists(t.data),t.data))},doEvent(t){this.$refs.editForm&&this.$refs.editForm.doEvent(t)},closed(){console.log("\u5173\u95ED"),this.$emit("closed")},...r.mapActions(["TableLists"])}};var Y=function(){var e=this,i=e._self._c;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"300px",height:"100%"}},[e.show?i(e.componentItem,{ref:"editForm",tag:"component",attrs:{recordRelation:e.record,openMode:e.openMode,tableData:e.table,fieldData:e.fieldData,modeType:e.modeType},on:{onChangeBtn:e.onChangeBtn,closed:e.closed,ok:function(s){return e.$emit("ok")},onLoadCompleted:e.beaseLoadComplete}}):e._e()],1)},Z=[],ee=r.normalizeComponent(X,Y,Z,!1,null,"b8e777c7",null,null);const te=ee.exports,$=Object.freeze(Object.defineProperty({__proto__:null,default:te},Symbol.toStringTag,{value:"Module"}));const ie={props:{query:{type:Object,default:()=>{}}},data(){return{dictCode:"messagetype",messageType:"",componentItem:""}},computed:{componentForm(){return this.componentItem==="GdNoticeDetails"?C.noticeItem:""}},methods:{onLoadCompleted(){const t=this.query.complete_request?this.query.complete_request:"";if(t==="")return;const e=decodeURIComponent(t),i=e.indexOf("?")===-1?e:e.slice(0,e.indexOf("?")),s=l.getParamsQuery(e);d.post(i,s)},init(){if(this.messageType=this.query.message_type?this.query.message_type:"",this.messageType==="")return;const e=this.getDictionary(this.dictCode).filter(s=>s.code===this.messageType)[0];if(!e)return;const i=this.query.id?this.query.id:"";this.componentItem=e.remark,this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm&&this.$refs.editForm.open({id:i})},0)})},getDictionary(t){return this.$options.filters.dictData(t)}}};var se=function(){var e=this,i=e._self._c;return e.componentForm?i(e.componentForm,{ref:"editForm",tag:"component",attrs:{modeType:"component"},on:{onLoadCompleted:e.onLoadCompleted}}):e._e()},oe=[],re=r.normalizeComponent(ie,se,oe,!1,null,"2e905682",null,null);const ne=re.exports,w=Object.freeze(Object.defineProperty({__proto__:null,default:ne},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=u;exports.ViewTable=_;exports.viewMixins=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("./components.chartbi.
|
|
1
|
+
"use strict";const l=require("./components.chartbi.13a8a7b5.js");const r={name:"GdViewLoading",props:{spinning:{type:Boolean,default:!0},openMode:{type:[String,Number],default:1},height:{type:Number,default:100}},computed:{style(){return`height:${this.height}px`}},components:{Skeleton:()=>Promise.resolve().then(()=>g)},data(){return{}}};var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"spinningl",style:t.style},[t.openMode!==3&&t.spinning?e("div",[e("div",{staticClass:"btn"},[e("Skeleton",{attrs:{wid:170}}),e("Skeleton",{attrs:{wid:400}})],1),e("Skeleton",{attrs:{wid:"100",hig:24}}),t._l(22,function(n){return[e("div",{staticClass:"listt"},t._l(5,function(o){return e("Skeleton",{key:o,attrs:{wid:"18",hig:24}})}),1),e("Skeleton",{attrs:{wid:n%2==1?"66":"100",hig:24}})]})],2):t._e(),t.openMode===3&&t.spinning?e("div",[e("div",{staticClass:"btnr"},[e("Skeleton",{attrs:{wid:246,hig:22}})],1),e("div",{staticClass:"listt listts"},t._l(6,function(n){return e("Skeleton",{key:n,attrs:{wid:"15",hig:20}})}),1),t._l(4,function(n){return e("Skeleton",{key:n,attrs:{wid:n%2==1?"66":"100",hig:20}})})],2):t._e()])},_=[],d=l.normalizeComponent(r,a,_,!1,null,"4f8664a0",null,null);const i=d.exports;i.install=function(s){s.component(i.name,i)};const c={props:{spinning:{type:Boolean,default:!1},wid:{type:[Number,String],default:100},hig:{type:Number,default:32}},data(){return{}},computed:{style(){let s=typeof this.wid,t="";return s==="string"?t=`width:${this.wid}%;height:${this.hig}px`:t=`width:${this.wid}px;height:${this.hig}px`,t}}};var u=function(){var t=this,e=t._self._c;return e("div",{staticClass:"skeleton animations",style:t.style},[t._t("default")],2)},p=[],f=l.normalizeComponent(c,u,p,!1,null,"17808e78",null,null);const h=f.exports,g=Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=i;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const i=require("./components.chartbi.
|
|
1
|
+
"use strict";const i=require("./components.chartbi.13a8a7b5.js");const d={name:"GdWatermark",props:{text:{type:String,required:!0}},data(){return{}},computed:{getBootTrans(){return this.$bootTrans==null?!1:this.$bootTrans},...i.mapGetters([])},mounted(){this.addWatermark(this.text)},methods:{addWatermark(a){const t=this.$refs.watermark,e=document.createElement("canvas");e.width=200,e.height=150;const s=window.innerWidth,o=window.innerHeight,c=s/6,l=o/4,n=e.getContext("2d");a.split(`
|
|
2
2
|
`),e.width/2,e.height/2,n.rotate(-20*Math.PI/180),n.font="14px Arial",n.fillStyle="rgba(200,200,200, .2)",n.textAlign="center",n.textBaseline="middle",n.fillText(a,e.width/2,e.height/2),t.style.backgroundImage=`url(${e.toDataURL("image/png")})`,t.style.pointerEvents="none",t.style.position="fixed",t.style.top=0,t.style.left=0,t.style.width="100%",t.style.height="100%",t.style.zIndex=99999,t.style.backgroundSize=`${c}px ${l}px`}}};var p=function(){var t=this,e=t._self._c;return e("div",{ref:"watermark",staticClass:"watermark",staticStyle:{"background-repeat":"repeat"}})},h=[],m=i.normalizeComponent(d,p,h,!1,null,"4e2021c1",null,null);const r=m.exports;r.install=function(a){a.component(r.name,r)};exports.GDpackage=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./http.syscodegenerateconfigmanage.840f1136.js"),d=require("./components.chartbi.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./http.syscodegenerateconfigmanage.840f1136.js"),d=require("./components.chartbi.13a8a7b5.js"),h=require("./http.main.2f8a6936.js"),u=require("./components.coloreditor.8afc4731.js");require("./utils.echarts.js.461a74e7.js");require("./utils.util.js.c0ba699b.js");const r=[{type:"selection",width:"60",fixed:!0},{transKey:"gd.field.describe",prop:"columnComment",label:"\u63CF\u8FF0",width:"200",type:"slot",slotType:"columnComment",align:"left"},{transKey:"gd.field.field",prop:"columnname",label:"\u5B57\u6BB5",width:"120",align:"left"},{transKey:"gd.field.effectType",prop:"effectType",label:"\u4F5C\u7528\u7C7B\u578B",width:"100",type:"slot",slotType:"effectType",align:"left"},{transKey:"gd.view.sourceTable",prop:"fktable",label:"\u6765\u6E90\u8868",width:"120",type:"slot",slotType:"fktable",align:"left"},{transKey:"gd.field.handle",prop:"handle",label:"\u64CD\u4F5C",width:"80",type:"slot",slotType:"handle",align:"center"}],m={name:"GdXlsxExport",props:{tableData:{type:Object,default:()=>({})}},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],exportData:{},record:{},visible:!1,confirmLoading:!1,fullscreen:!1,loadData:[],selectedRowKeys:[],selectedRows:[],width:"90%",disabledRowId:[],checkedList:[],loadFieldData:s=>new Promise((e,a)=>{e({pageNo:1,pageSize:100,totalRows:0,rows:this.loadData})}),loadFieldDatad:s=>new Promise((e,a)=>{e({pageNo:1,pageSize:100,totalRows:0,rows:this.checkedList})})}},computed:{tableColumns(){return r.filter(s=>s.prop!=="handle")},tableColumnsd(){return r.filter(s=>s.type!=="selection"&&s.prop!=="effectType")},title(){return`${this.$i18nt(`Dynamics.${this.tableData.transkey}`,this.tableData.busname)} (${this.tableData.tablename}) ${this.$i18nt("gd.btn.export","\u5BFC\u51FA")}`},height(){return this.screenHeight-(this.fullscreen?72:230)},...d.mapGetters(["primaryColor","screenHeight","tableLists","tableSize","tablePageSize"])},methods:{handleSubmit(){if(this.checkedList.length===0){this.$message.error(this.$i18nt("gd.xlsxImport.leastTip","\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u9879"));return}const s=this.$message({message:this.$i18nt("gd.login.exporting","\u6B63\u5728\u5BFC\u51FA\u4E2D..."),duration:0,iconClass:"el-icon-loading"});let e=[];this.checkedList.forEach(t=>{const i=this.$i18nt(`Dynamics.${t.transkey}`,t.columncomment),n=t.fkId?`${i} (${this.$i18nt("gd.xlsxImport.foreignTable","\u5916\u952E\u8868: ")} ${t.fkName})`:i;e.push({aliasName:n,columnName:t.columnname,id:t.ids,tableId:t.codegenid,fkId:t.fkId})});let a=Object.assign({...this.record},{displayColumns:e}),l=this.exportData.url?this.exportData.url:!1;h.baseExport(a,l).then(t=>{this.exportWay(t,s),this.closed()}).catch(t=>{s.close(),this.$message.error("err!")})},deleteItem(s){this.checkedList=this.checkedList.filter(e=>e.keyId!==s.keyId),this.$refs.tabled.setTableData([...this.checkedList],!1),this.selectedRowKeys=this.selectedRowKeys.filter(e=>e!==s.keyId),this.selectedRows=this.selectedRows.filter(e=>e.keyId!==s.keyId),this.$nextTick(()=>{setTimeout(()=>{this.$refs.table.toggleRowSelectioClear([s.keyId])},0)})},checkItem(){let s=[],e=[...this.checkedList];e.forEach(a=>{this.selectedRows.filter(t=>t.keyId===a.keyId)[0]&&s.push(a)}),this.selectedRows.forEach(a=>{e.filter(t=>t.keyId===a.keyId)[0]===void 0&&s.push(a)}),this.checkedList=[...s],this.$refs.tabled.refresh(!1)},emptyItem(){const s=[...this.selectedRowKeys];this.checkedList=[],this.selectedRowKeys=[],this.selectedRows=[],this.$refs.tabled.setTableData([...this.checkedList],!1),this.$nextTick(()=>{setTimeout(()=>{this.$refs.table.toggleRowSelectioClear(s)},0)})},loadChildren(s,e,a){c.getCodeByEntity({entityName:s.fkentityname}).then(l=>{let t=l.data.map(i=>{let n=i.effecttype=="fk"||i.effecttype=="user"?i.fkentityname:i.codegenname.tablename,o=this.tableLists.filter(f=>n==f.tablename)[0];return o&&(i.fktable=o),i.ids=s.id,i.fkId=i.id,i.keyId=`${s.id}@${i.id}`,i.fkItem=s,i.fkName=s.fkentityname,i});s.children=[...t],a(t)})},open(s,e){this.exportData=e,this.fullscreen=!1,this.visible=!0,this.confirmLoading=!0,this.record=s,c.sysCodeGenerateConfigList({codeGenId:this.tableData.id}).then(a=>{this.confirmLoading=!1;let l=[];this.loadData=a.data.filter(t=>!(t.effecttype=="about"&&t.columnname==(t.relations+"_AboutTable").toLowerCase())).map(t=>{let i=t.effecttype=="fk"||t.effecttype=="user"?t.fkentityname:t.codegenname.tablename,n=this.tableLists.filter(o=>i==o.tablename)[0];return n&&(t.fktable=n),(t.effecttype=="fk"||t.effecttype=="user")&&(l.push(t.id),t.hasChildren=!0),t.ids=t.id,t.fkId=null,t.keyId=t.id,t.fkName=null,t}),this.disabledRowId=l,this.refresh(!1),this.$nextTick(()=>{setTimeout(()=>{this.rowDrop()},0)})})},exportWay(s,e){if(s){const a=new Blob([s.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),l=URL.createObjectURL(a),t=document.createElement("a");t.style.display="none",t.href=l,t.download=this.tableData.tablename,t.click(),URL.revokeObjectURL(t.href),setTimeout(()=>{e.close()},1e3)}else e.close(),this.$message.error(s.message)},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},refresh(s=!0){this.$refs.table.refresh(!1),this.$refs.tabled.refresh(!1)},rowDrop(){const s=document.querySelector("#config-table .el-table__body-wrapper tbody");let e=this;u.Sortable.create(s,{onEnd:a=>{const l=e.checkedList[a.oldIndex];e.checkedList.splice(a.oldIndex,1),e.checkedList.splice(a.newIndex,0,l),console.log(e.checkedList)},animation:300,handle:".el-table__row"})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(s){const e=s.item.functionName,a=s.key?s:s.item;if(this[e]===void 0&&this.func===void 0){console.log("\u8BF7\u5B9A\u4E49 "+e+" \u65B9\u6CD5");return}this[e]&&this[e](a)}}};var p=function(){var e=this,a=e._self._c;return a("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(l){e.visible=l},closed:e.closed}},[a("template",{slot:"title"},[a("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),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"export-container"},[a("div",{staticClass:"l"},[a("gd-tables",{ref:"table",attrs:{dataSource:e.loadFieldData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,showPagination:!1,initialLoading:!1,disabledRefresh:!0,disabledRowId:e.disabledRowId,lazy:"",load:e.loadChildren,rowKey:"keyId"},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"columnComment",fn:function({column:l,row:t}){return[e._v(" "+e._s(e.$i18nt(`Dynamics.${t.transkey}`,t.columncomment))+" ")]}},{key:"effectType",fn:function({column:l,row:t}){return[e._v(" "+e._s(e._f("dictType")("code_gen_effect_type",t.effecttype))+" ")]}},{key:"fktable",fn:function({column:l,row:t}){return[e._v(" "+e._s(e.$i18nt(`Dynamics.${t.fktable.transkey}`,t.fktable.busname))+" ")]}}])})],1),a("div",{staticClass:"c"},[a("div",{staticClass:"citem"},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:e.checkItem}},[e._v(" "+e._s(e.$i18nt("gd.btn.choice","\u9009\u62E9"))+" "),a("i",{staticClass:"el-icon-d-arrow-right"})])],1),a("div",{staticClass:"citem"},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"danger"},on:{click:e.emptyItem}},[e._v(" "+e._s(e.$i18nt("gd.btn.empty","\u6E05\u7A7A"))+" "),a("i",{staticClass:"el-icon-close"})])],1)]),a("div",{staticClass:"l",attrs:{id:"config-table"}},[a("gd-tables",{ref:"tabled",attrs:{dataSource:e.loadFieldDatad,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumnsd,height:e.height,showPagination:!1,initialLoading:!1,disabledRefresh:!0,rowKey:"keyId"},scopedSlots:e._u([{key:"columnComment",fn:function({column:l,row:t}){return[e._v(" "+e._s(e.$i18nt(`Dynamics.${t.transkey}`,t.columncomment))+" ")]}},{key:"effectType",fn:function({column:l,row:t}){return[e._v(" "+e._s(e._f("dictType")("code_gen_effect_type",t.effecttype))+" ")]}},{key:"fktable",fn:function({column:l,row:t}){return[t.fkId?a("span",[e._v(" "+e._s(e.$i18nt(`Dynamics.${t.fktable.transkey}`,t.fktable.busname))+" ( "+e._s(e.$i18nt(`Dynamics.${t.fkItem.transkey}`,t.fkItem.columncomment))+" ) ")]):e._e()]}},{key:"handle",fn:function({column:l,row:t}){return[a("div",{staticClass:"export-handle"},[a("i",{staticClass:"el-icon-rank active-color drag-move"}),a("i",{staticClass:"el-icon-close",on:{click:function(i){return e.deleteItem(t)}}})])]}}])})],1)])],2)},y=[],b=d.normalizeComponent(m,p,y,!1,null,"15dbbf3c",null,null);const g=b.exports;exports.default=g;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as r, s as f } from "./http.syscodegenerateconfigmanage.6d2e5da0.mjs";
|
|
2
|
-
import { m as h, n as m } from "./components.chartbi.
|
|
2
|
+
import { m as h, n as m } from "./components.chartbi.7356b244.mjs";
|
|
3
3
|
import { j as u } from "./http.main.aefea27d.mjs";
|
|
4
|
-
import { S as p } from "./components.coloreditor.
|
|
4
|
+
import { S as p } from "./components.coloreditor.20f8b336.mjs";
|
|
5
5
|
import "./utils.echarts.js.d1bb8ac6.mjs";
|
|
6
6
|
import "./utils.util.js.333daba2.mjs";
|
|
7
7
|
const c = [
|