gds-plus-design-vue 1.2.71 → 1.2.73
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.179a09f4.mjs → addPermission.1eb97ee3.mjs} +92 -92
- package/lib/{addPermission.c72ebbe0.js → addPermission.5bfc7e11.js} +1 -1
- package/lib/{approvalModel.7cfcac3c.js → approvalModel.63fa8914.js} +1 -1
- package/lib/{approvalModel.7b550187.mjs → approvalModel.c09cbf86.mjs} +3 -3
- package/lib/{attribute.e9a8faa1.mjs → attribute.88d41b0f.mjs} +93 -93
- package/lib/{attribute.3fed1dd9.js → attribute.919cb93e.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.28b38c3a.js} +1 -1
- package/lib/{components.globalheader.b3b35343.mjs → components.globalheader.9471ef9d.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.7b760b95.mjs +148 -0
- package/lib/components.middleware.b2e156ea.js +1 -0
- package/lib/{components.modaltitle.957cab33.js → components.modaltitle.179b6da1.js} +1 -1
- package/lib/{components.modaltitle.5060623f.mjs → components.modaltitle.2c1011c5.mjs} +3 -3
- 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.fa81ff82.mjs → components.sidenavmenu.91e996c4.mjs} +11 -11
- package/lib/{components.sidenavmenu.b1330d69.js → components.sidenavmenu.a3de1659.js} +1 -1
- 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.1e338902.js → components.table.a0ac819e.js} +2 -2
- package/lib/{components.table.9ed77207.mjs → components.table.d79f5fa3.mjs} +6 -6
- 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.4e40579f.mjs} +42 -26
- package/lib/components.viewformdetails.6e66cc83.js +1 -0
- 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.94329169.js} +1 -1
- package/lib/{createFile.4cac1673.mjs → createFile.ca811a30.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/{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.ea93dbaa.mjs → extendedAttributes.a3ee9bde.mjs} +93 -93
- package/lib/{extendedAttributes.ef3ead02.js → extendedAttributes.b1107f6c.js} +1 -1
- package/lib/{fileSearch.43465e1c.js → fileSearch.4722ac3b.js} +1 -1
- package/lib/{fileSearch.5c8a883d.mjs → fileSearch.d7abc086.mjs} +92 -92
- package/lib/{flow.designer.ffd0aa8b.js → flow.designer.7d58bc2c.js} +1 -1
- package/lib/{flow.designer.81c29f62.mjs → flow.designer.b066df02.mjs} +6 -6
- package/lib/{flow.list.ab420927.mjs → flow.list.a9afdd93.mjs} +3 -3
- package/lib/{flow.list.4c05f2f0.js → flow.list.d288de5e.js} +1 -1
- package/lib/{form.build.d04773f0.mjs → form.build.16110b90.mjs} +21 -17
- package/lib/form.build.5461409b.js +1 -0
- package/lib/{form.designer.build.c82cb559.mjs → form.designer.build.2bd26973.mjs} +24 -38
- package/lib/{form.designer.build.dac501fa.js → form.designer.build.67b316e1.js} +1 -1
- package/lib/{formFiled.c949a27f.mjs → formFiled.3763ebff.mjs} +7 -7
- package/lib/{formFiled.4b5062d7.js → formFiled.ef26328d.js} +1 -1
- package/lib/gd-initial.js +1 -1
- package/lib/gd-initial.mjs +92 -92
- package/lib/{index.9deaa991.mjs → index.606ef358.mjs} +835 -828
- package/lib/index.fe18e32c.js +8 -0
- package/lib/layoutBlocks.0784592a.mjs +570 -0
- package/lib/layoutBlocks.1b71d988.js +1 -0
- 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.915931be.mjs} +4 -4
- package/lib/{layouts.2d06f3e9.js → layouts.ae25c583.js} +1 -1
- package/lib/{main.edc0b23b.js → main.0326119e.js} +1 -1
- package/lib/{main.aea9b6a8.mjs → main.034638bb.mjs} +3 -3
- package/lib/{main.c71e5b11.js → main.0dc447c8.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.09d48801.js → main.44d72b90.js} +1 -1
- package/lib/{main.643d21a0.mjs → main.44efe912.mjs} +92 -92
- package/lib/{main.b7a5a02b.js → main.47957168.js} +1 -1
- 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.33443996.mjs → main.adcedcee.mjs} +2 -2
- 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/{manage.f4000654.mjs → manage.63cd038d.mjs} +93 -93
- package/lib/{manage.101f1aa9.js → manage.80871daf.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.4a1442dc.mjs → mobile.designer.componentstree.70fd4c93.mjs} +2 -2
- package/lib/{mobile.designer.componentstree.03f61105.js → mobile.designer.componentstree.f4a901e4.js} +1 -1
- 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.b66805f8.mjs} +92 -92
- package/lib/{moveFile.335ebc8d.js → moveFile.d79f7fd9.js} +1 -1
- package/lib/{page.build.376104d5.mjs → page.build.09137386.mjs} +4 -4
- package/lib/{page.build.37b26617.js → page.build.1b771761.js} +2 -2
- package/lib/{page.designer.componentstree.0ffc933d.js → page.designer.componentstree.341908b2.js} +1 -1
- package/lib/{page.designer.componentstree.b0ecddd8.mjs → page.designer.componentstree.a256ff7a.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.6d8232c7.mjs → page.designer.page.559113a9.mjs} +47 -43
- package/lib/page.designer.page.d2d6b614.js +1 -0
- 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.0c089066.mjs → result.16da7693.mjs} +93 -93
- package/lib/{result.9282a717.js → result.9cb6c2f1.js} +1 -1
- package/lib/{router.config.68077a12.js → router.config.1e67a1c3.js} +1 -1
- package/lib/{router.config.86225b11.mjs → router.config.70680261.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.bef7fbdd.mjs → solution.approvalflow.8572122d.mjs} +2 -2
- package/lib/{solution.approvalflow.436b3502.js → solution.approvalflow.cce2f064.js} +1 -1
- 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.a52fd47c.mjs} +2 -2
- package/lib/{solution.processflow.2692dac6.js → solution.processflow.bfa4897c.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.c48545d1.mjs → solution.workflow.2530073b.mjs} +2 -2
- package/lib/{solution.workflow.11e49e25.js → solution.workflow.59e0e697.js} +1 -1
- package/lib/style.css +3 -3
- 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.a0da805e.mjs} +2 -2
- package/lib/{system.duplicatechecking.f4cab147.js → system.duplicatechecking.bef2b20c.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.72e0615f.js +1 -0
- package/lib/{system.notice.bef6c23c.mjs → system.notice.da2c944c.mjs} +220 -217
- package/lib/{system.noticereceived.0d293a87.mjs → system.noticereceived.30dab7d1.mjs} +2 -2
- package/lib/{system.noticereceived.84b88b9a.js → system.noticereceived.54c17b73.js} +1 -1
- 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.a1ff367b.mjs} +4 -4
- package/lib/{system.user.134a3988.js → system.user.bff7cc2f.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.47cc1330.js} +1 -1
- package/lib/{versionControl.c53bfb5d.mjs → versionControl.6cd18867.mjs} +98 -98
- package/lib/{versionEdit.5a8292ec.mjs → versionEdit.910d2e2f.mjs} +93 -93
- package/lib/{versionEdit.4246d5db.js → versionEdit.977faa93.js} +1 -1
- package/lib/{view.build.85732408.mjs → view.build.20e9aec0.mjs} +14 -14
- package/lib/{view.build.e43a2077.js → view.build.a48a14b0.js} +1 -1
- package/lib/{viewList.868edcd7.js → viewList.71f866da.js} +1 -1
- package/lib/{viewList.978b72c5.mjs → viewList.a4909732.mjs} +23 -23
- 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/components.middleware.43b9b264.js +0 -1
- package/lib/components.middleware.de012955.mjs +0 -148
- package/lib/components.viewformdetails.940addba.js +0 -1
- package/lib/drawerContainer.6ab3df46.mjs +0 -163
- package/lib/drawerContainer.8f9df583.js +0 -1
- package/lib/form.build.724d3357.js +0 -1
- package/lib/index.d95c407c.js +0 -8
- package/lib/layoutBlocks.26e1b57b.js +0 -1
- package/lib/layoutBlocks.31454610.mjs +0 -413
- package/lib/page.designer.page.09402332.js +0 -1
- package/lib/system.notice.db26f308.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const p=require("./utils.util.js.c0ba699b.js"),h=require("./components.chartbi.3bbac955.js");const f={name:"GdTableUmy",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:!1},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},disabledRowId:{type:Array,default:()=>[]},disabledRefresh:{type:Boolean,default:!1},stripe:{type:Boolean,default:!1}}),computed:{getHeaderCellStyle(){return Object.assign({background:this.fadeColor(this.primaryColor,.05)},this.headerCellStyle)},fadeColord(){return this.fadeColor(this.primaryColor,.3)},getColumns(){return this.columnsSetting.filter(t=>t.checked===void 0||t.checked)},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)},...h.mapGetters(["primaryColor","language"])},data(){return{tableData:[],loading:!1,customSize:this.size,keyValue:null,currentRow:"",total:0,sorter:{},state:!1,currentPage:1,pageSized:this.pageSize,columnsSetting:[],visibleFilter:!1}},watch:{tableExpand:{handler(){const t=this.$refs.refTable,e=this.getChildRens(this.tableData);p.treeToArray(JSON.parse(JSON.stringify(this.tableData)),"children").map(a=>{e.includes(a.id)?t.toggleRowExpansion(a,!1):t.toggleRowExpansion(a,!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()},0)})},deep:!0}},methods:{selecTables({row:t}){return!this.disabledRowId.includes(t.id)},changeFilter(t){this.visibleFilter=t},closeFilter(){this.$refs.filterdropdown.hide()},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){let e=t.filter(a=>a.fixed),l=[...t];return l.forEach((a,s)=>{l[s].fixed=!1,s<e.length&&(l[s].fixed=!0)}),this.$emit("columnChange",l),this.columnsSetting=l,new Promise((a,s)=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout(),a()},0)})})},summaries(t){return this.amount(t)},spanMethod({row:t,column:e}){if(e.property===this.columnKey){let l=0,a=0;if(this.keyValue!==t[this.columnKey]){for(;l<this.tableData.length;)this.tableData[l][this.columnKey]===t[this.columnKey]&&a++,l++;this.keyValue=t[this.columnKey]}else a=0;return{rowspan:a,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)return;const e=this.rowKey||"index";let l=[];t.forEach((a,s)=>{l.push(a[e])}),this.$emit("onChange",l,t)},changRadio(t){if(this.loading)return;const e=this.rowKey||"index";let l={};this.tableData.forEach(a=>{if(a[e]===t&&(l={...a}),a.children&&a.children.length>0){const s=a.children.filter(i=>i[e]===t)[0];l=s?{...s}:l}}),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 a=this.getChildRens(l.children);e.push(...a)}}),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(){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.toggleRowSelection()}):this.loading=!1},setLoadData(t){this.tableData=[...t],this.total=t.length,this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},doLayout(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},getLoadData(){return new Promise((t,e)=>{t(this.tableData)})},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,o)=>(n=n.filter((r,u)=>(this.selectedRowKeys.includes(r[t])&&e.push(r),r.children&&r.children.length>0&&l(r.children),!0)),n);await l(this.tableData);const a=this.selectedRowKeys.filter(n=>!this.tableData.filter(r=>n===r[t])[0]);let s=[];for(let n=0;n<a.length;n++){let o=new Map;o.set(t,a[n]),s.push(Object.fromEntries(o))}const i=e.concat(s);let d=[];for(let n=0;n<i.length;n++){let o=new Promise((r,u)=>{this.$refs.refTable.toggleRowSelection([{row:i[n],selected:!0}]),r(n)});d.push(o)}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),a=parseInt(t.substring(3,5),16),s=parseInt(t.substring(5,7),16);return`rgba(${l},${a},${s},${e})`}},created(){this.columnsSetting=this.columns,this.initialLoading&&this.loadData()}};var g=function(){var e=this,l=e._self._c;return l("div",{staticClass:"gd-tables",style:{"--theme":e.primaryColor,"--fadecolor":e.fadeColord}},[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-dropdown",{ref:"filterdropdown",attrs:{trigger:"click",placement:"bottom"},on:{"visible-change":e.changeFilter}},[l("span",{staticClass:"el-dropdown-link"},[l("i",{staticClass:"gd-icons gd-icon-a-guangqi_guolv11x"})]),l("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e._t("filtering",null,{columns:e.columns,height:e.height,colse:e.closeFilter,visible:e.visibleFilter})],2)],1)],1):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(a){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),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",{attrs:{columns:e.columns,height:e.height},on:{columnChange:e.columnChange}})],1)],1)],1)],1)]),l("ux-grid",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"refTable",staticClass:"table",staticStyle:{width:"100%"},attrs:{stripe:e.stripe,"row-key":"","expand-row-keys":e.tableExpand,"tree-props":e.tableTree?{children:"children",hasChildren:"isLeaf"}:void 0,"tree-config":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,"checkbox-config":{checkMethod:e.selecTables}},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(a,s){return[a.type=="selection"?[l("ux-table-column",{attrs:{"tree-node":"",type:"checkbox",width:a.width,align:a.align?a.align:"center"}})]:a.type=="selection-radio"?[l("ux-table-column",{key:a.key?a.key:s,attrs:{"tree-node":"",width:a.width,label:"",fixed:a.fixed?a.fixed:"left",align:a.align?a.align:"center"},scopedSlots:e._u([{key:"default",fn:function(i){return[l("el-radio",{attrs:{label:i.row[e.rowKey],size:"small",disabled:e.disabledRowId.includes(i.row[e.rowKey])},on:{input:e.changRadio},model:{value:e.currentRow,callback:function(d){e.currentRow=d},expression:"currentRow"}},[e._v(" "+e._s("")+" ")])]}}],null,!0)})]:a.hidden!=!1&&a.type!=="slot"&&a.type!="expand"&&a.type!="selection-radio"?[l("ux-table-column",{attrs:{width:a.width,field:a.prop,label:e.$i18nt(a.transKey,a.label),fixed:a.fixed?a.fixed:"",title:e.$i18nt(a.transKey,a.label)}})]:a.type==="slot"?[l("ux-table-column",{key:a.key?a.key:s,attrs:{width:a.width,"show-header-overflow":typeof a.showTooltip>"u"?!0:a.showTooltip,"min-width":a.minWidth,field:a.prop,title:e.$i18nt(a.transKey,a.label),fixed:a.fixed?a.fixed:"",sortable:a.sortable?a.sortable:!1,align:a.align?a.align:"center","render-header":a.renderHeader,filters:a.filters,"filter-method":a.filterTag,"filter-placement":"bottom-end","reserve-selection":a.reserveSelection,type:a.colType},scopedSlots:e._u([{key:"default",fn:function(i){return[e._t(a.slotType,null,{row:i.row,index:i.$index,column:i.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(a){e.currentPage=a},"update:current-page":function(a){e.currentPage=a},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)],1)},m=[],y=h.normalizeComponent(f,g,m,!1,null,"60a25e45",null,null);const c=y.exports;c.install=function(t){t.component(c.name,c)};exports.GDpackage=c;
|
|
1
|
+
"use strict";const p=require("./utils.util.js.c0ba699b.js"),h=require("./components.chartbi.13a8a7b5.js");const f={name:"GdTableUmy",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:!1},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},disabledRowId:{type:Array,default:()=>[]},disabledRefresh:{type:Boolean,default:!1},stripe:{type:Boolean,default:!1}}),computed:{getHeaderCellStyle(){return Object.assign({background:this.fadeColor(this.primaryColor,.05)},this.headerCellStyle)},fadeColord(){return this.fadeColor(this.primaryColor,.3)},getColumns(){return this.columnsSetting.filter(t=>t.checked===void 0||t.checked)},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)},...h.mapGetters(["primaryColor","language"])},data(){return{tableData:[],loading:!1,customSize:this.size,keyValue:null,currentRow:"",total:0,sorter:{},state:!1,currentPage:1,pageSized:this.pageSize,columnsSetting:[],visibleFilter:!1}},watch:{tableExpand:{handler(){const t=this.$refs.refTable,e=this.getChildRens(this.tableData);p.treeToArray(JSON.parse(JSON.stringify(this.tableData)),"children").map(a=>{e.includes(a.id)?t.toggleRowExpansion(a,!1):t.toggleRowExpansion(a,!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()},0)})},deep:!0}},methods:{selecTables({row:t}){return!this.disabledRowId.includes(t.id)},changeFilter(t){this.visibleFilter=t},closeFilter(){this.$refs.filterdropdown.hide()},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){let e=t.filter(a=>a.fixed),l=[...t];return l.forEach((a,s)=>{l[s].fixed=!1,s<e.length&&(l[s].fixed=!0)}),this.$emit("columnChange",l),this.columnsSetting=l,new Promise((a,s)=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout(),a()},0)})})},summaries(t){return this.amount(t)},spanMethod({row:t,column:e}){if(e.property===this.columnKey){let l=0,a=0;if(this.keyValue!==t[this.columnKey]){for(;l<this.tableData.length;)this.tableData[l][this.columnKey]===t[this.columnKey]&&a++,l++;this.keyValue=t[this.columnKey]}else a=0;return{rowspan:a,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)return;const e=this.rowKey||"index";let l=[];t.forEach((a,s)=>{l.push(a[e])}),this.$emit("onChange",l,t)},changRadio(t){if(this.loading)return;const e=this.rowKey||"index";let l={};this.tableData.forEach(a=>{if(a[e]===t&&(l={...a}),a.children&&a.children.length>0){const s=a.children.filter(i=>i[e]===t)[0];l=s?{...s}:l}}),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 a=this.getChildRens(l.children);e.push(...a)}}),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(){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.toggleRowSelection()}):this.loading=!1},setLoadData(t){this.tableData=[...t],this.total=t.length,this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},doLayout(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},getLoadData(){return new Promise((t,e)=>{t(this.tableData)})},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,o)=>(n=n.filter((r,u)=>(this.selectedRowKeys.includes(r[t])&&e.push(r),r.children&&r.children.length>0&&l(r.children),!0)),n);await l(this.tableData);const a=this.selectedRowKeys.filter(n=>!this.tableData.filter(r=>n===r[t])[0]);let s=[];for(let n=0;n<a.length;n++){let o=new Map;o.set(t,a[n]),s.push(Object.fromEntries(o))}const i=e.concat(s);let d=[];for(let n=0;n<i.length;n++){let o=new Promise((r,u)=>{this.$refs.refTable.toggleRowSelection([{row:i[n],selected:!0}]),r(n)});d.push(o)}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),a=parseInt(t.substring(3,5),16),s=parseInt(t.substring(5,7),16);return`rgba(${l},${a},${s},${e})`}},created(){this.columnsSetting=this.columns,this.initialLoading&&this.loadData()}};var g=function(){var e=this,l=e._self._c;return l("div",{staticClass:"gd-tables",style:{"--theme":e.primaryColor,"--fadecolor":e.fadeColord}},[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-dropdown",{ref:"filterdropdown",attrs:{trigger:"click",placement:"bottom"},on:{"visible-change":e.changeFilter}},[l("span",{staticClass:"el-dropdown-link"},[l("i",{staticClass:"gd-icons gd-icon-a-guangqi_guolv11x"})]),l("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e._t("filtering",null,{columns:e.columns,height:e.height,colse:e.closeFilter,visible:e.visibleFilter})],2)],1)],1):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(a){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),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",{attrs:{columns:e.columns,height:e.height},on:{columnChange:e.columnChange}})],1)],1)],1)],1)]),l("ux-grid",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"refTable",staticClass:"table",staticStyle:{width:"100%"},attrs:{stripe:e.stripe,"row-key":"","expand-row-keys":e.tableExpand,"tree-props":e.tableTree?{children:"children",hasChildren:"isLeaf"}:void 0,"tree-config":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,"checkbox-config":{checkMethod:e.selecTables}},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(a,s){return[a.type=="selection"?[l("ux-table-column",{attrs:{"tree-node":"",type:"checkbox",width:a.width,align:a.align?a.align:"center"}})]:a.type=="selection-radio"?[l("ux-table-column",{key:a.key?a.key:s,attrs:{"tree-node":"",width:a.width,label:"",fixed:a.fixed?a.fixed:"left",align:a.align?a.align:"center"},scopedSlots:e._u([{key:"default",fn:function(i){return[l("el-radio",{attrs:{label:i.row[e.rowKey],size:"small",disabled:e.disabledRowId.includes(i.row[e.rowKey])},on:{input:e.changRadio},model:{value:e.currentRow,callback:function(d){e.currentRow=d},expression:"currentRow"}},[e._v(" "+e._s("")+" ")])]}}],null,!0)})]:a.hidden!=!1&&a.type!=="slot"&&a.type!="expand"&&a.type!="selection-radio"?[l("ux-table-column",{attrs:{width:a.width,field:a.prop,label:e.$i18nt(a.transKey,a.label),fixed:a.fixed?a.fixed:"",title:e.$i18nt(a.transKey,a.label)}})]:a.type==="slot"?[l("ux-table-column",{key:a.key?a.key:s,attrs:{width:a.width,"show-header-overflow":typeof a.showTooltip>"u"?!0:a.showTooltip,"min-width":a.minWidth,field:a.prop,title:e.$i18nt(a.transKey,a.label),fixed:a.fixed?a.fixed:"",sortable:a.sortable?a.sortable:!1,align:a.align?a.align:"center","render-header":a.renderHeader,filters:a.filters,"filter-method":a.filterTag,"filter-placement":"bottom-end","reserve-selection":a.reserveSelection,type:a.colType},scopedSlots:e._u([{key:"default",fn:function(i){return[e._t(a.slotType,null,{row:i.row,index:i.$index,column:i.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(a){e.currentPage=a},"update:current-page":function(a){e.currentPage=a},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)],1)},m=[],y=h.normalizeComponent(f,g,m,!1,null,"60a25e45",null,null);const c=y.exports;c.install=function(t){t.component(c.name,c)};exports.GDpackage=c;
|
|
@@ -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.4e40579f.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { m as d, n as l, a as f } from "./components.chartbi.
|
|
2
|
-
import { g as a, i as
|
|
3
|
-
import { d as y, i as
|
|
1
|
+
import { m as d, n as l, a as f } from "./components.chartbi.7356b244.mjs";
|
|
2
|
+
import { g as a, i as D } from "./utils.util.js.333daba2.mjs";
|
|
3
|
+
import { d as y, i as C, 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.16110b90.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.da2c944c.mjs";
|
|
9
9
|
const x = {
|
|
10
10
|
props: {
|
|
11
11
|
record: {
|
|
@@ -212,7 +212,7 @@ const x = {
|
|
|
212
212
|
})[0];
|
|
213
213
|
return e === void 0 ? (console.log("\u8868\u4E0D\u5B58\u5728"), new Promise((i, s) => {
|
|
214
214
|
i();
|
|
215
|
-
})) :
|
|
215
|
+
})) : C({
|
|
216
216
|
tableId: e.id
|
|
217
217
|
}).then((i) => {
|
|
218
218
|
if (i.code === 200) {
|
|
@@ -377,13 +377,13 @@ const F = {
|
|
|
377
377
|
mixins: [x],
|
|
378
378
|
methods: {}
|
|
379
379
|
};
|
|
380
|
-
var
|
|
380
|
+
var O = function() {
|
|
381
381
|
var e = this, i = e._self._c;
|
|
382
382
|
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);
|
|
383
|
-
},
|
|
383
|
+
}, B = [], S = /* @__PURE__ */ l(
|
|
384
384
|
F,
|
|
385
|
-
B,
|
|
386
385
|
O,
|
|
386
|
+
B,
|
|
387
387
|
!1,
|
|
388
388
|
null,
|
|
389
389
|
"ca0b408e",
|
|
@@ -454,7 +454,7 @@ const R = {
|
|
|
454
454
|
setTimeout(() => {
|
|
455
455
|
const o = `${this.openType}Details`;
|
|
456
456
|
this.$refs[o] && this.$refs[o].init();
|
|
457
|
-
},
|
|
457
|
+
}, 100);
|
|
458
458
|
});
|
|
459
459
|
},
|
|
460
460
|
getRequestDetail() {
|
|
@@ -604,7 +604,7 @@ var N = function() {
|
|
|
604
604
|
E,
|
|
605
605
|
!1,
|
|
606
606
|
null,
|
|
607
|
-
"
|
|
607
|
+
"0fed8670",
|
|
608
608
|
null,
|
|
609
609
|
null
|
|
610
610
|
);
|
|
@@ -641,7 +641,8 @@ const P = {
|
|
|
641
641
|
visible: !1,
|
|
642
642
|
width: "80%",
|
|
643
643
|
iframeUri: "",
|
|
644
|
-
sysViewButtons: []
|
|
644
|
+
sysViewButtons: [],
|
|
645
|
+
timeOut: null
|
|
645
646
|
};
|
|
646
647
|
},
|
|
647
648
|
components: {
|
|
@@ -671,6 +672,12 @@ const P = {
|
|
|
671
672
|
onChangeBtn(t) {
|
|
672
673
|
this.sysViewButtons = t;
|
|
673
674
|
},
|
|
675
|
+
againInit() {
|
|
676
|
+
this.timeOut && clearTimeout(this.timeOut), this.timeOut = setTimeout(() => {
|
|
677
|
+
const t = `${this.modeType}Item`;
|
|
678
|
+
this.$refs[t] ? this.$refs[t] && this.$refs[t].init() : this.againInit();
|
|
679
|
+
}, 100);
|
|
680
|
+
},
|
|
674
681
|
init() {
|
|
675
682
|
const t = this.query.popup_wid ? this.query.popup_wid : "80%", e = this.query.popup_fullscreen ? this.query.popup_fullscreen : "";
|
|
676
683
|
this.width = isNaN(Number(t)) ? t : Number(t) + "px", this.fullscreen = e === "true";
|
|
@@ -678,8 +685,10 @@ const P = {
|
|
|
678
685
|
i === "followSystem" && (i = this.formMode), this.popupMode = i, this.modeType = this.query.mode_type ? this.query.mode_type : "form";
|
|
679
686
|
let s = this.query.redirect_uri ? decodeURIComponent(this.query.redirect_uri) : "";
|
|
680
687
|
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(() => {
|
|
681
|
-
|
|
682
|
-
|
|
688
|
+
this.timeOut = setTimeout(() => {
|
|
689
|
+
const o = `${this.modeType}Item`;
|
|
690
|
+
this.$refs[o] ? (this.$refs[o] && this.$refs[o].init(), clearTimeout(this.timeOut)) : this.againInit();
|
|
691
|
+
}, 100);
|
|
683
692
|
});
|
|
684
693
|
},
|
|
685
694
|
toggleFullscreen() {
|
|
@@ -698,7 +707,7 @@ const P = {
|
|
|
698
707
|
},
|
|
699
708
|
monitorIframe(t) {
|
|
700
709
|
if (t.data.eventType === "form-btn") {
|
|
701
|
-
this.onChangeBtn(t.data.data &&
|
|
710
|
+
this.onChangeBtn(t.data.data && D(t.data.data) ? JSON.parse(t.data.data) : []);
|
|
702
711
|
return;
|
|
703
712
|
}
|
|
704
713
|
if (t.data.eventType === "load-complete") {
|
|
@@ -741,7 +750,7 @@ var M = function() {
|
|
|
741
750
|
j,
|
|
742
751
|
!1,
|
|
743
752
|
null,
|
|
744
|
-
"
|
|
753
|
+
"30637876",
|
|
745
754
|
null,
|
|
746
755
|
null
|
|
747
756
|
);
|
|
@@ -780,8 +789,10 @@ const H = {
|
|
|
780
789
|
methods: {
|
|
781
790
|
init() {
|
|
782
791
|
this.modeType = this.query.mode_type ? this.query.mode_type : "form", this.visible = !0, this.$nextTick(() => {
|
|
783
|
-
|
|
784
|
-
|
|
792
|
+
setTimeout(() => {
|
|
793
|
+
const t = `${this.modeType}Item`;
|
|
794
|
+
this.$refs[t] && this.$refs[t].init();
|
|
795
|
+
}, 100);
|
|
785
796
|
});
|
|
786
797
|
},
|
|
787
798
|
doEvent(t) {
|
|
@@ -805,7 +816,7 @@ var K = function() {
|
|
|
805
816
|
J,
|
|
806
817
|
!1,
|
|
807
818
|
null,
|
|
808
|
-
"
|
|
819
|
+
"064fcf82",
|
|
809
820
|
null,
|
|
810
821
|
null
|
|
811
822
|
);
|
|
@@ -958,7 +969,7 @@ const se = {
|
|
|
958
969
|
this.$refs.editForm && this.$refs.editForm.setFormRecord(this.formData).then(() => {
|
|
959
970
|
this.$refs.editForm.open({ id: this.id, title: "" });
|
|
960
971
|
});
|
|
961
|
-
},
|
|
972
|
+
}, 100);
|
|
962
973
|
});
|
|
963
974
|
});
|
|
964
975
|
},
|
|
@@ -1003,7 +1014,7 @@ var oe = function() {
|
|
|
1003
1014
|
re,
|
|
1004
1015
|
!1,
|
|
1005
1016
|
null,
|
|
1006
|
-
"
|
|
1017
|
+
"7a5e33b1",
|
|
1007
1018
|
null,
|
|
1008
1019
|
null
|
|
1009
1020
|
);
|
|
@@ -1017,13 +1028,18 @@ const le = {
|
|
|
1017
1028
|
type: Object,
|
|
1018
1029
|
default: () => {
|
|
1019
1030
|
}
|
|
1031
|
+
},
|
|
1032
|
+
height: {
|
|
1033
|
+
type: Number,
|
|
1034
|
+
default: 100
|
|
1020
1035
|
}
|
|
1021
1036
|
},
|
|
1022
1037
|
data() {
|
|
1023
1038
|
return {
|
|
1024
1039
|
dictCode: "messagetype",
|
|
1025
1040
|
messageType: "",
|
|
1026
|
-
componentItem: ""
|
|
1041
|
+
componentItem: "",
|
|
1042
|
+
recordData: {}
|
|
1027
1043
|
};
|
|
1028
1044
|
},
|
|
1029
1045
|
computed: {
|
|
@@ -1046,10 +1062,10 @@ const le = {
|
|
|
1046
1062
|
if (!e)
|
|
1047
1063
|
return;
|
|
1048
1064
|
const i = this.query.id ? this.query.id : "";
|
|
1049
|
-
this.componentItem = e.remark, this.$nextTick(() => {
|
|
1065
|
+
this.componentItem = e.remark, console.log(this.componentItem, e, this.messageType), this.$nextTick(() => {
|
|
1050
1066
|
setTimeout(() => {
|
|
1051
1067
|
this.$refs.editForm && this.$refs.editForm.open({ id: i });
|
|
1052
|
-
},
|
|
1068
|
+
}, 100);
|
|
1053
1069
|
});
|
|
1054
1070
|
},
|
|
1055
1071
|
getDictionary(t) {
|
|
@@ -1059,14 +1075,14 @@ const le = {
|
|
|
1059
1075
|
};
|
|
1060
1076
|
var de = function() {
|
|
1061
1077
|
var e = this, i = e._self._c;
|
|
1062
|
-
return e.componentForm ? i(e.componentForm, { ref: "editForm", tag: "component", attrs: { modeType: "component" }, on: { onLoadCompleted: e.onLoadCompleted } }) : e._e();
|
|
1078
|
+
return e.componentForm ? i(e.componentForm, { ref: "editForm", tag: "component", attrs: { modeType: "component", height: e.height, develop: 2, record: e.recordData }, on: { onLoadCompleted: e.onLoadCompleted } }) : e._e();
|
|
1063
1079
|
}, he = [], ce = /* @__PURE__ */ l(
|
|
1064
1080
|
le,
|
|
1065
1081
|
de,
|
|
1066
1082
|
he,
|
|
1067
1083
|
!1,
|
|
1068
1084
|
null,
|
|
1069
|
-
"
|
|
1085
|
+
"aace9cee",
|
|
1070
1086
|
null,
|
|
1071
1087
|
null
|
|
1072
1088
|
);
|