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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./components.chartbi.3bbac955.js"),c=require("./utils.util.js.c0ba699b.js"),u=require("./http.tabledevelopment.a880bb76.js");require("./utils.echarts.js.461a74e7.js");const f={props:{table:{type:Object,default:()=>({})},loadData:{type:Array,default:()=>[]},type:{type:[String,Number],default:1},id:{type:[String,Number],default:""}},data(){return{width:"1100px",record:null,confirmLoading:!1,visible:!1,fullscreen:!1,buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],ruleFormData:{name:"",using:!0,explain:"",id:""},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},list:[],btnData:[],tableFieldList:[],tableFieldAll:[],showAdd:!0}},components:{EffectTypeIcon:()=>Promise.resolve().then(()=>require("./components.xlsximport.8c209857.js")).then(i=>i.effectTypeIcon)},watch:{list:{handler(i){this.isSatisfy()},deep:!0,immediate:!0}},computed:{height(){let i=this.fullscreen?190:340;return this.screenHeight-i},rulesList(){return this.getDictionary("table_form_rules").filter(i=>(i.sysDictType=[],!0))},...d.mapGetters(["screenHeight","primaryColor"])},methods:{handleSubmit(){let i=[],t=[];if(this.list.forEach((e,s)=>{i=i.concat(e.condition.list),t=t.concat(e.operation.list)}),i.length==0)return this.$message.warning(this.$i18nt("gd.basics.businessRulesConditionTip","\u8BF7\u8865\u5145\u6761\u4EF6\u6570\u636E!")),!1;if(!this.isCheckedAll(i,1))return this.$message.warning(this.$i18nt("gd.basics.businessRulesConditionTip","\u8BF7\u8865\u5145\u6761\u4EF6\u6570\u636E!")),!1;if(t.length==0)return this.$message.warning(this.$i18nt("gd.basics..businessRulesHandleTip","\u8BF7\u8865\u5145\u64CD\u4F5C\u6570\u636E!")),!1;if(!this.isCheckedAll(t,2))return this.$message.warning(this.$i18nt("gd.basics..businessRulesHandleTip","\u8BF7\u8865\u5145\u64CD\u4F5C\u6570\u636E!")),!1;this.confirmLoading=!0,this.$refs.ruleForm.validate(e=>{e?(this.$emit("ok",Object.assign({...this.ruleFormData},{key:this.record?"2":"1",list:[...this.list]})),this.closed()):this.confirmLoading=!1})},remainingBtn(i,t){let e=[];return i.forEach((a,l)=>{l!==t&&(e=e.concat(a.columnComment))}),this.btnData.filter(a=>!e.includes(a.name))},conditionColumn(i,t,e){const s=this.tableFieldAll.filter(l=>l.value===i[i.length-1])[0],a=this.rulesList.filter(l=>l.remark.split(",").includes(s.effectType));Object.assign(t,{effectType:s.effectType,dictTypeCode:s.dictTypeCode,val:"",rulesList:a,rules:a.length>0?a[0].code:""})},addList(){let i=[...this.list];i.length>1&&(i[i.length-1].title="ELSE IF");let t={title:"Else",open:!0,condition:{open:!0,list:[]},operation:{open:!0,list:[]}};i.push(t),this.list=[...i]},del(i){let t=this;this.$confirm(this.$i18nt("gd.https.delExpression","\u662F\u5426\u5220\u9664\u6B64\u8868\u8FBE\u5F0F?"),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:(e,s,a)=>{if(a(),e!=="confirm")return;let l=[...t.list];l.splice(i,1),l.length>1&&(l[l.length-1].title="Else"),t.list=[...l]}})},delCondition(i,t){let e=[...this.list];e[i].condition.list.splice(t,1),e[i].condition.list.length>0&&(e[i].condition.list[0].type="0"),e[i].condition.list.length===0&&i!=e.length-1&&(e[i].operation.list=[]),this.list=[...e]},delOperation(i,t){let e=[...this.list];e[i].operation.list=[],this.list=[...e]},addCondition(i){let t=this.list[i].condition.list.length,s={type:t==0?"0":t>1?this.list[i].condition.list[t-1].type:"1",columnComment:"",rules:"1",val:"",rulesList:[...this.rulesList],effectType:"select",fieldFormat:null,dictTypeCode:null,fkData:[],id:c.uuid(12)};this.list[i].condition.list.push(s),this.list[i].operation.list.length===0&&(this.addOperation(i,"1"),this.addOperation(i,"2"))},addOperation(i,t){let e={rules:"4",columnComment:[],val:t,type:1,effectType:"select",fkData:[],id:c.uuid(),fieldFormat:null};this.list[i].operation.list.push(e)},addOperationMore(i){this.list[i].operation.list.length===0&&(this.addOperation(i,"1"),this.addOperation(i,"2"))},getBtnList(){this.confirmLoading=!0,u.sysButtonList({type:this.type,SysCodeGenId:this.table.id}).then(i=>{i.code===200&&(this.btnData=i.data.filter(t=>this.type===1&&t.sysviewid==this.id?!0:this.type===2&&t.sysformidbyset==this.id)),this.confirmLoading=!1})},init(i){const t=JSON.parse(JSON.stringify(i));this.record=t,this.visible=!0,this.getBtnList(),this.getTableField(),this.ruleFormData={name:i?i.name:"",using:i?i.using:!0,explain:i?i.explain:"",id:i?i.id:c.uuid(12)},i?this.list=[...t.list]:this.list=[{title:"IF",open:!0,condition:{open:!0,list:[]},operation:{open:!0,list:[]},id:c.uuid(12)}],this.$nextTick(()=>{setTimeout(()=>{this.$refs.ruleForm.clearValidate()},0)})},openItem(i,t){if(i==1){this.list[t].open=!this.list[t].open;return}if(i==2){this.list[t].condition.open=!this.list[t].condition.open;return}if(i==3){this.list[t].operation.open=!this.list[t].operation.open;return}},getTableField(){let i=[],t=[];this.loadData.filter(s=>s.dicttypecode?!0:s.children&&s.children.length>0&&this.type==1?(s.children=s.children.filter(a=>a.dicttypecode),!0):!1).forEach(s=>{let a={value:s.columnname,label:this.$i18nt(`Dynamics.${s.transkey}`,s.columncomment),dictTypeCode:s.dicttypecode,transKey:s.transkey,id:s.id,fkEntityName:s.fkentityname,effectType:s.effecttype,fieldFormat:s.fieldformat,hasChildren:this.type==1,columnname:s.columnname};if(t.push(a),s.children&&s.children.length>0&&this.type==1){let l=[];s.children.forEach(o=>{const n={value:`${o.columnname}${s.fkentityname}${s.columnname}`,label:this.$i18nt(`Dynamics.${o.transkey}`,o.columncomment),columnname:s.columnname,dictTypeCode:o.dicttypecode,transKey:o.transkey,id:o.id,fkEntityName:o.fkentityname,effectType:o.effecttype,fieldFormat:s.fieldformat,hasChildren:!1};l.push(n),t.push(n)}),Object.assign(a,{children:l})}i.push(a)}),this.tableFieldList=i,this.tableFieldAll=t},isSatisfy(){if(this.list.length==0)return;let i=[...this.list],t=i[i.length-1];t.condition.list.length>0?this.showAdd=!this.isChecked(t.condition.list):this.showAdd=!1},isChecked(i){return i.every((t,e,s)=>{let a=t.rules==="5"||t.rules==="6"?t.columnComment:t.val;return!(t.columnComment!==void 0&&a)})},isCheckedAll(i,t){return i.every((e,s,a)=>{let l="";return t===1?l=e.rules==="5"||e.rules==="6"?e.columnComment:e.val:l=e.rules==="7"?e.columnComment:e.val,(t===1?e.columnComment!==void 0:!0)&&l!==""&&l!==void 0})},closed(){this.confirmLoading=!1,this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},getDictionaryd(i){let t=i.rules==="3"?"table_form_essential":i.rules==="4"?"table_form_so":"table_form_locking";return this.getDictionary(t)},getDictionary(i){return this.$options.filters.dictData(i)},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}}};var p=function(){var t=this,e=t._self._c;return e("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(s){t.visible=s},closed:t.closed}},[e("template",{slot:"title"},[e("gd-modal-title",{attrs:{title:t.$i18nt("gd.view.btnRules","\u6309\u94AE\u89C4\u5219"),fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent}})],1),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form"},[e("div",{staticClass:"view-config"},[e("div",{staticClass:"config-item"},[e("div",{staticClass:"rules"},[t._l(t.list,function(s,a){return e("div",{key:a,staticClass:"rules-if"},[e("div",{staticClass:"title"},[e("div",{staticClass:"l",on:{click:function(l){return t.openItem(1,a)}}},[e("i",{staticClass:"if-icon",class:s.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(s.title)+" ")]),a!=0?e("div",{staticClass:"r"},[e("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",cursor:"pointer",color:"#ff4d4f"},on:{click:function(l){return t.del(a)}}})]):t._e()]),s.open?e("div",{staticClass:"rules-ifs"},[e("div",{staticClass:"condition"},[e("div",{staticClass:"title",on:{click:function(l){return t.openItem(2,a)}}},[e("i",{staticClass:"if-icon",class:s.condition.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(t.$i18nt("gd.basics.if","\u5982\u679C"))+" ")]),s.condition&&s.condition.open?e("div",{staticClass:"detail"},[t._l(s.condition.list,function(l,o){return e("div",{staticClass:"lists"},[e("div",{staticClass:"rg"},[l.type==0?e("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input"),value:t.$i18nt("gd.basics.if","\u5982\u679C"),disabled:""}}):e("el-select",{staticStyle:{width:"100%"},model:{value:l.type,callback:function(n){t.$set(l,"type",n)},expression:"ite.type"}},[e("el-option",{attrs:{value:"1",label:t.$i18nt("gd.filter.and","\u548C")}}),e("el-option",{attrs:{value:"2",label:t.$i18nt("gd.filter.or","\u6216")}})],1)],1),e("div",{staticClass:"zd"},[e("el-cascader",{staticStyle:{width:"100%"},attrs:{options:t.tableFieldList},on:{change:function(n){return t.conditionColumn(n,l)}},scopedSlots:t._u([{key:"default",fn:function({node:n,data:r}){return[e("EffectTypeIcon",{attrs:{effectType:r.effectType}}),e("span",{staticStyle:{"margin-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${r.transKey}`,r.label))+" "),r.hasChildren?t._e():e("span",[t._v("("+t._s(r.columnname)+")")])])]}}],null,!0),model:{value:l.columnComment,callback:function(n){t.$set(l,"columnComment",n)},expression:"ite.columnComment"}})],1),e("div",{staticClass:"tj"},[e("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!(l.columnComment!==""&&l.columnComment.length>0)},model:{value:l.rules,callback:function(n){t.$set(l,"rules",n)},expression:"ite.rules"}},[t._l(l.rulesList,function(n){return[e("el-option",{attrs:{value:n.code,label:t.$i18nt(`Dynamics.${n.transkey}`,n.name)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])]})],2)],1),e("div",{staticClass:"jg"},[e("el-select",{staticStyle:{width:"100%"},model:{value:l.val,callback:function(n){t.$set(l,"val",n)},expression:"ite.val"}},[t._l(t.getDictionary(l.dictTypeCode),function(n){return[e("el-option",{attrs:{value:n.code,label:t.$i18nt(`Dynamics.${n.transkey}`,n.name)}})]})],2)],1),e("div",{staticClass:"sc"},[e("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",color:"#ff4d4f"},on:{click:function(n){return t.delCondition(a,o)}}})])])}),e("div",{staticClass:"add"},[e("span",{staticClass:"active-color",on:{click:function(l){return t.addCondition(a)}}},[e("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addCondition","\u6DFB\u52A0\u6761\u4EF6"))+" ")])])],2):t._e()]),e("div",{staticClass:"operation"},[e("div",{staticClass:"title",on:{click:function(l){return t.openItem(3,a)}}},[e("i",{class:s.operation.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(t.$i18nt("gd.basics.handle"))+" "),a===t.list.length-1&&s.operation.list.length>0&&s.condition.list.length===0?e("div",{staticClass:"title-sc"},[e("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",color:"#ff4d4f"},on:{click:function(l){return l.stopPropagation(),t.delOperation(a)}}})]):t._e()]),s.operation&&s.operation.open?e("div",{staticClass:"list"},[t._l(s.operation.list,function(l,o){return e("div",{staticClass:"lists"},[e("div",{staticClass:"tjs"},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:""},model:{value:l.val,callback:function(n){t.$set(l,"val",n)},expression:"ite.val"}},[t._l(t.getDictionaryd(l),function(n,r){return[e("el-option",{attrs:{value:n.code,label:t.$i18nt(`Dynamics.${n.transkey}`,n.name)}})]})],2)],1),e("div",{staticClass:"jg"},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",multiple:""},model:{value:l.columnComment,callback:function(n){t.$set(l,"columnComment",n)},expression:"ite.columnComment"}},[t._l(t.remainingBtn(s.operation.list,o),function(n){return[e("el-option",{attrs:{label:t.$i18nt(`Dynamics.${n.transkey}`,n.displayname),value:n.name}})]})],2)],1),e("div",{staticClass:"sc"})])}),t.list.length>1&&a===t.list.length-1&&s.operation.list.length===0?e("div",{staticClass:"add active-color"},[e("span",{on:{click:function(l){return t.addOperationMore(a)}}},[e("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addHandle","\u6DFB\u52A0\u64CD\u4F5C"))+" ")])]):t._e()],2):t._e()])]):t._e()])}),t.showAdd?e("div",{staticClass:"rules-el"},[e("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:t.addList}},[e("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addElse","\u6DFB\u52A0 ELSE"))+" ")])]):t._e()],2)]),e("div",{staticClass:"config-item config-items"},[e("div",{staticClass:"b"},[e("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"top",model:t.ruleFormData,size:"mini",rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[e("el-form-item",{attrs:{label:t.$i18nt("gd.view.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[e("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1),e("el-form-item",{attrs:{label:t.$i18nt("gd.view.explain","\u8BF4\u660E"),prop:"explain"}},[e("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),type:"textarea",rows:4},model:{value:t.ruleFormData.explain,callback:function(s){t.$set(t.ruleFormData,"explain",s)},expression:"ruleFormData.explain"}})],1),e("div",{staticClass:"using-flex"},[e("div",{staticClass:"using-flex-title"},[t._v(" "+t._s(t.$i18nt("gd.msg.temPlate.isEnabled","\u662F\u5426\u542F\u7528"))+" ")]),e("el-switch",{attrs:{"active-color":t.primaryColor},model:{value:t.ruleFormData.using,callback:function(s){t.$set(t.ruleFormData,"using",s)},expression:"ruleFormData.using"}})],1)],1)],1)])])])],2)},h=[],m=d.normalizeComponent(f,p,h,!1,null,"87a996f7",null,null);const g=m.exports;exports.default=g;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./components.chartbi.13a8a7b5.js"),c=require("./utils.util.js.c0ba699b.js"),u=require("./http.tabledevelopment.a880bb76.js");require("./utils.echarts.js.461a74e7.js");const f={props:{table:{type:Object,default:()=>({})},loadData:{type:Array,default:()=>[]},type:{type:[String,Number],default:1},id:{type:[String,Number],default:""}},data(){return{width:"1100px",record:null,confirmLoading:!1,visible:!1,fullscreen:!1,buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],ruleFormData:{name:"",using:!0,explain:"",id:""},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},list:[],btnData:[],tableFieldList:[],tableFieldAll:[],showAdd:!0}},components:{EffectTypeIcon:()=>Promise.resolve().then(()=>require("./components.xlsximport.c53c50f6.js")).then(i=>i.effectTypeIcon)},watch:{list:{handler(i){this.isSatisfy()},deep:!0,immediate:!0}},computed:{height(){let i=this.fullscreen?190:340;return this.screenHeight-i},rulesList(){return this.getDictionary("table_form_rules").filter(i=>(i.sysDictType=[],!0))},...d.mapGetters(["screenHeight","primaryColor"])},methods:{handleSubmit(){let i=[],t=[];if(this.list.forEach((e,s)=>{i=i.concat(e.condition.list),t=t.concat(e.operation.list)}),i.length==0)return this.$message.warning(this.$i18nt("gd.basics.businessRulesConditionTip","\u8BF7\u8865\u5145\u6761\u4EF6\u6570\u636E!")),!1;if(!this.isCheckedAll(i,1))return this.$message.warning(this.$i18nt("gd.basics.businessRulesConditionTip","\u8BF7\u8865\u5145\u6761\u4EF6\u6570\u636E!")),!1;if(t.length==0)return this.$message.warning(this.$i18nt("gd.basics..businessRulesHandleTip","\u8BF7\u8865\u5145\u64CD\u4F5C\u6570\u636E!")),!1;if(!this.isCheckedAll(t,2))return this.$message.warning(this.$i18nt("gd.basics..businessRulesHandleTip","\u8BF7\u8865\u5145\u64CD\u4F5C\u6570\u636E!")),!1;this.confirmLoading=!0,this.$refs.ruleForm.validate(e=>{e?(this.$emit("ok",Object.assign({...this.ruleFormData},{key:this.record?"2":"1",list:[...this.list]})),this.closed()):this.confirmLoading=!1})},remainingBtn(i,t){let e=[];return i.forEach((a,l)=>{l!==t&&(e=e.concat(a.columnComment))}),this.btnData.filter(a=>!e.includes(a.name))},conditionColumn(i,t,e){const s=this.tableFieldAll.filter(l=>l.value===i[i.length-1])[0],a=this.rulesList.filter(l=>l.remark.split(",").includes(s.effectType));Object.assign(t,{effectType:s.effectType,dictTypeCode:s.dictTypeCode,val:"",rulesList:a,rules:a.length>0?a[0].code:""})},addList(){let i=[...this.list];i.length>1&&(i[i.length-1].title="ELSE IF");let t={title:"Else",open:!0,condition:{open:!0,list:[]},operation:{open:!0,list:[]}};i.push(t),this.list=[...i]},del(i){let t=this;this.$confirm(this.$i18nt("gd.https.delExpression","\u662F\u5426\u5220\u9664\u6B64\u8868\u8FBE\u5F0F?"),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:(e,s,a)=>{if(a(),e!=="confirm")return;let l=[...t.list];l.splice(i,1),l.length>1&&(l[l.length-1].title="Else"),t.list=[...l]}})},delCondition(i,t){let e=[...this.list];e[i].condition.list.splice(t,1),e[i].condition.list.length>0&&(e[i].condition.list[0].type="0"),e[i].condition.list.length===0&&i!=e.length-1&&(e[i].operation.list=[]),this.list=[...e]},delOperation(i,t){let e=[...this.list];e[i].operation.list=[],this.list=[...e]},addCondition(i){let t=this.list[i].condition.list.length,s={type:t==0?"0":t>1?this.list[i].condition.list[t-1].type:"1",columnComment:"",rules:"1",val:"",rulesList:[...this.rulesList],effectType:"select",fieldFormat:null,dictTypeCode:null,fkData:[],id:c.uuid(12)};this.list[i].condition.list.push(s),this.list[i].operation.list.length===0&&(this.addOperation(i,"1"),this.addOperation(i,"2"))},addOperation(i,t){let e={rules:"4",columnComment:[],val:t,type:1,effectType:"select",fkData:[],id:c.uuid(),fieldFormat:null};this.list[i].operation.list.push(e)},addOperationMore(i){this.list[i].operation.list.length===0&&(this.addOperation(i,"1"),this.addOperation(i,"2"))},getBtnList(){this.confirmLoading=!0,u.sysButtonList({type:this.type,SysCodeGenId:this.table.id}).then(i=>{i.code===200&&(this.btnData=i.data.filter(t=>this.type===1&&t.sysviewid==this.id?!0:this.type===2&&t.sysformidbyset==this.id)),this.confirmLoading=!1})},init(i){const t=JSON.parse(JSON.stringify(i));this.record=t,this.visible=!0,this.getBtnList(),this.getTableField(),this.ruleFormData={name:i?i.name:"",using:i?i.using:!0,explain:i?i.explain:"",id:i?i.id:c.uuid(12)},i?this.list=[...t.list]:this.list=[{title:"IF",open:!0,condition:{open:!0,list:[]},operation:{open:!0,list:[]},id:c.uuid(12)}],this.$nextTick(()=>{setTimeout(()=>{this.$refs.ruleForm.clearValidate()},0)})},openItem(i,t){if(i==1){this.list[t].open=!this.list[t].open;return}if(i==2){this.list[t].condition.open=!this.list[t].condition.open;return}if(i==3){this.list[t].operation.open=!this.list[t].operation.open;return}},getTableField(){let i=[],t=[];this.loadData.filter(s=>s.dicttypecode?!0:s.children&&s.children.length>0&&this.type==1?(s.children=s.children.filter(a=>a.dicttypecode),!0):!1).forEach(s=>{let a={value:s.columnname,label:this.$i18nt(`Dynamics.${s.transkey}`,s.columncomment),dictTypeCode:s.dicttypecode,transKey:s.transkey,id:s.id,fkEntityName:s.fkentityname,effectType:s.effecttype,fieldFormat:s.fieldformat,hasChildren:this.type==1,columnname:s.columnname};if(t.push(a),s.children&&s.children.length>0&&this.type==1){let l=[];s.children.forEach(o=>{const n={value:`${o.columnname}${s.fkentityname}${s.columnname}`,label:this.$i18nt(`Dynamics.${o.transkey}`,o.columncomment),columnname:s.columnname,dictTypeCode:o.dicttypecode,transKey:o.transkey,id:o.id,fkEntityName:o.fkentityname,effectType:o.effecttype,fieldFormat:s.fieldformat,hasChildren:!1};l.push(n),t.push(n)}),Object.assign(a,{children:l})}i.push(a)}),this.tableFieldList=i,this.tableFieldAll=t},isSatisfy(){if(this.list.length==0)return;let i=[...this.list],t=i[i.length-1];t.condition.list.length>0?this.showAdd=!this.isChecked(t.condition.list):this.showAdd=!1},isChecked(i){return i.every((t,e,s)=>{let a=t.rules==="5"||t.rules==="6"?t.columnComment:t.val;return!(t.columnComment!==void 0&&a)})},isCheckedAll(i,t){return i.every((e,s,a)=>{let l="";return t===1?l=e.rules==="5"||e.rules==="6"?e.columnComment:e.val:l=e.rules==="7"?e.columnComment:e.val,(t===1?e.columnComment!==void 0:!0)&&l!==""&&l!==void 0})},closed(){this.confirmLoading=!1,this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},getDictionaryd(i){let t=i.rules==="3"?"table_form_essential":i.rules==="4"?"table_form_so":"table_form_locking";return this.getDictionary(t)},getDictionary(i){return this.$options.filters.dictData(i)},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}}};var p=function(){var t=this,e=t._self._c;return e("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(s){t.visible=s},closed:t.closed}},[e("template",{slot:"title"},[e("gd-modal-title",{attrs:{title:t.$i18nt("gd.view.btnRules","\u6309\u94AE\u89C4\u5219"),fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent}})],1),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form"},[e("div",{staticClass:"view-config"},[e("div",{staticClass:"config-item"},[e("div",{staticClass:"rules"},[t._l(t.list,function(s,a){return e("div",{key:a,staticClass:"rules-if"},[e("div",{staticClass:"title"},[e("div",{staticClass:"l",on:{click:function(l){return t.openItem(1,a)}}},[e("i",{staticClass:"if-icon",class:s.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(s.title)+" ")]),a!=0?e("div",{staticClass:"r"},[e("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",cursor:"pointer",color:"#ff4d4f"},on:{click:function(l){return t.del(a)}}})]):t._e()]),s.open?e("div",{staticClass:"rules-ifs"},[e("div",{staticClass:"condition"},[e("div",{staticClass:"title",on:{click:function(l){return t.openItem(2,a)}}},[e("i",{staticClass:"if-icon",class:s.condition.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(t.$i18nt("gd.basics.if","\u5982\u679C"))+" ")]),s.condition&&s.condition.open?e("div",{staticClass:"detail"},[t._l(s.condition.list,function(l,o){return e("div",{staticClass:"lists"},[e("div",{staticClass:"rg"},[l.type==0?e("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input"),value:t.$i18nt("gd.basics.if","\u5982\u679C"),disabled:""}}):e("el-select",{staticStyle:{width:"100%"},model:{value:l.type,callback:function(n){t.$set(l,"type",n)},expression:"ite.type"}},[e("el-option",{attrs:{value:"1",label:t.$i18nt("gd.filter.and","\u548C")}}),e("el-option",{attrs:{value:"2",label:t.$i18nt("gd.filter.or","\u6216")}})],1)],1),e("div",{staticClass:"zd"},[e("el-cascader",{staticStyle:{width:"100%"},attrs:{options:t.tableFieldList},on:{change:function(n){return t.conditionColumn(n,l)}},scopedSlots:t._u([{key:"default",fn:function({node:n,data:r}){return[e("EffectTypeIcon",{attrs:{effectType:r.effectType}}),e("span",{staticStyle:{"margin-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${r.transKey}`,r.label))+" "),r.hasChildren?t._e():e("span",[t._v("("+t._s(r.columnname)+")")])])]}}],null,!0),model:{value:l.columnComment,callback:function(n){t.$set(l,"columnComment",n)},expression:"ite.columnComment"}})],1),e("div",{staticClass:"tj"},[e("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!(l.columnComment!==""&&l.columnComment.length>0)},model:{value:l.rules,callback:function(n){t.$set(l,"rules",n)},expression:"ite.rules"}},[t._l(l.rulesList,function(n){return[e("el-option",{attrs:{value:n.code,label:t.$i18nt(`Dynamics.${n.transkey}`,n.name)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])]})],2)],1),e("div",{staticClass:"jg"},[e("el-select",{staticStyle:{width:"100%"},model:{value:l.val,callback:function(n){t.$set(l,"val",n)},expression:"ite.val"}},[t._l(t.getDictionary(l.dictTypeCode),function(n){return[e("el-option",{attrs:{value:n.code,label:t.$i18nt(`Dynamics.${n.transkey}`,n.name)}})]})],2)],1),e("div",{staticClass:"sc"},[e("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",color:"#ff4d4f"},on:{click:function(n){return t.delCondition(a,o)}}})])])}),e("div",{staticClass:"add"},[e("span",{staticClass:"active-color",on:{click:function(l){return t.addCondition(a)}}},[e("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addCondition","\u6DFB\u52A0\u6761\u4EF6"))+" ")])])],2):t._e()]),e("div",{staticClass:"operation"},[e("div",{staticClass:"title",on:{click:function(l){return t.openItem(3,a)}}},[e("i",{class:s.operation.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(t.$i18nt("gd.basics.handle"))+" "),a===t.list.length-1&&s.operation.list.length>0&&s.condition.list.length===0?e("div",{staticClass:"title-sc"},[e("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",color:"#ff4d4f"},on:{click:function(l){return l.stopPropagation(),t.delOperation(a)}}})]):t._e()]),s.operation&&s.operation.open?e("div",{staticClass:"list"},[t._l(s.operation.list,function(l,o){return e("div",{staticClass:"lists"},[e("div",{staticClass:"tjs"},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:""},model:{value:l.val,callback:function(n){t.$set(l,"val",n)},expression:"ite.val"}},[t._l(t.getDictionaryd(l),function(n,r){return[e("el-option",{attrs:{value:n.code,label:t.$i18nt(`Dynamics.${n.transkey}`,n.name)}})]})],2)],1),e("div",{staticClass:"jg"},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",multiple:""},model:{value:l.columnComment,callback:function(n){t.$set(l,"columnComment",n)},expression:"ite.columnComment"}},[t._l(t.remainingBtn(s.operation.list,o),function(n){return[e("el-option",{attrs:{label:t.$i18nt(`Dynamics.${n.transkey}`,n.displayname),value:n.name}})]})],2)],1),e("div",{staticClass:"sc"})])}),t.list.length>1&&a===t.list.length-1&&s.operation.list.length===0?e("div",{staticClass:"add active-color"},[e("span",{on:{click:function(l){return t.addOperationMore(a)}}},[e("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addHandle","\u6DFB\u52A0\u64CD\u4F5C"))+" ")])]):t._e()],2):t._e()])]):t._e()])}),t.showAdd?e("div",{staticClass:"rules-el"},[e("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:t.addList}},[e("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addElse","\u6DFB\u52A0 ELSE"))+" ")])]):t._e()],2)]),e("div",{staticClass:"config-item config-items"},[e("div",{staticClass:"b"},[e("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"top",model:t.ruleFormData,size:"mini",rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[e("el-form-item",{attrs:{label:t.$i18nt("gd.view.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[e("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1),e("el-form-item",{attrs:{label:t.$i18nt("gd.view.explain","\u8BF4\u660E"),prop:"explain"}},[e("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),type:"textarea",rows:4},model:{value:t.ruleFormData.explain,callback:function(s){t.$set(t.ruleFormData,"explain",s)},expression:"ruleFormData.explain"}})],1),e("div",{staticClass:"using-flex"},[e("div",{staticClass:"using-flex-title"},[t._v(" "+t._s(t.$i18nt("gd.msg.temPlate.isEnabled","\u662F\u5426\u542F\u7528"))+" ")]),e("el-switch",{attrs:{"active-color":t.primaryColor},model:{value:t.ruleFormData.using,callback:function(s){t.$set(t.ruleFormData,"using",s)},expression:"ruleFormData.using"}})],1)],1)],1)])])])],2)},h=[],m=d.normalizeComponent(f,p,h,!1,null,"87a996f7",null,null);const g=m.exports;exports.default=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./components.chartbi.3bbac955.js"),o=require("./utils.util.js.c0ba699b.js");require("./utils.echarts.js.461a74e7.js");const d={props:{fieldData:{type:Array,default:()=>[]},echartsMode:{type:Array,default:()=>[]},sequenceField:{type:Array,default:()=>[]},size:{type:Array,default:()=>[]}},data(){return{width:"800px",record:null,confirmLoading:!1,visible:!1,fullscreen:!1,buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],list:[],showAdd:!0}},computed:{predefine(){return["#F5222D","#52C41A","#FAAD14","#13C2C2","#1890FF","#722ED1","#eee","#333","#666","#999"]},operationList(){return[{name:"\u5B57\u4F53\u989C\u8272",transKey:"gd.page.fontcolor",code:"1"},{name:"\u5B57\u4F53\u5927\u5C0F",transKey:"gd.page.fontSize",code:"2"},{name:"\u5B57\u4F53\u52A0\u7C97",transKey:"gd.page.fontWeight",code:"3"}]},rulesList(){return this.getDictionary("table_form_rules").filter(e=>e.remark.split(",").includes("double")).filter(e=>!["6","5","4","3"].includes(e.code))},height(){let i=this.fullscreen?190:340;return this.screenHeight-i},...c.mapGetters(["screenHeight"])},methods:{handleSubmit(){let i=[],t=[];if(this.list.forEach((e,n)=>{i=i.concat(e.condition.list),t=t.concat(e.operation.list)}),i.length===0&&t.length===0){this.$emit("ok",this.record,[]),this.closed();return}if(!this.isCheckedAll(i)){this.$message.warning(this.$i18nt("gd.basics.businessRulesConditionTip","\u8BF7\u8865\u5145\u6761\u4EF6\u6570\u636E!"));return}this.$emit("ok",this.record,this.list),this.closed()},addList(){let i=[...this.list];i.length>1&&(i[i.length-1].title="ELSE IF");let t={title:"Else",open:!0,condition:{open:!0,list:[]},operation:{open:!0,list:[]},id:o.uuid()};i.push(t),this.list=[...i]},del(i){let t=this;this.$confirm(this.$i18nt("gd.https.delExpression","\u662F\u5426\u5220\u9664\u6B64\u8868\u8FBE\u5F0F?"),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:(e,n,a)=>{if(a(),e!=="confirm")return;let l=[...t.list];l.splice(i,1),l.length>1&&(l[l.length-1].title="Else"),t.list=[...l]}})},delCondition(i,t){let e=[...this.list];e[i].condition.list.splice(t,1),e[i].condition.list.length>0&&(e[i].condition.list[0].type="0"),e[i].condition.list.length===0&&i!=e.length-1&&(e[i].operation.list=[]),this.list=[...e]},delOperation(i,t){let e=[...this.list];e[i].operation.list=[],this.list=[...e]},addCondition(i){let t=this.list[i].condition.list.length,n={type:t==0?"0":t>1?this.list[i].condition.list[t-1].type:"1",rules:"1",val:void 0,id:o.uuid(12)};this.list[i].condition.list.push(n),this.list[i].operation.list.length===0&&(this.addOperation(i,"1","#333"),this.addOperation(i,"2",14),this.addOperation(i,"3","normal"))},addOperation(i,t,e){let n={rules:t,val:e,type:1,id:o.uuid()};this.list[i].operation.list.push(n)},addOperationMore(i){this.list[i].operation.list.length===0&&(this.addOperation(i,"1","#333"),this.addOperation(i,"2",14),this.addOperation(i,"3","normal"))},openItem(i,t){if(i==1){this.list[t].open=!this.list[t].open;return}if(i==2){this.list[t].condition.open=!this.list[t].condition.open;return}if(i==3){this.list[t].operation.open=!this.list[t].operation.open;return}},del(i){let t=this;this.$confirm(this.$i18nt("gd.https.delExpression","\u662F\u5426\u5220\u9664\u6B64\u8868\u8FBE\u5F0F?"),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:(e,n,a)=>{if(a(),e!=="confirm")return;let l=[...t.list];l.splice(i,1),l.length>1&&(l[l.length-1].title="Else"),t.list=[...l]}})},open(i){const t=JSON.parse(JSON.stringify(i));this.record=t,this.list=t.ruleSequence.length>0?[...t.ruleSequence]:[{title:"IF",open:!0,condition:{open:!0,list:[]},operation:{open:!0,list:[]},id:o.uuid(12)}],this.visible=!0},isCheckedAll(i,t){return i.every((e,n,a)=>e.val!==""&&e.val!==void 0)},closed(){this.confirmLoading=!1,this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},getDictionary(i){return this.$options.filters.dictData(i)},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}}};var u=function(){var t=this,e=t._self._c;return e("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(n){t.visible=n},closed:t.closed}},[e("template",{slot:"title"},[e("gd-modal-title",{attrs:{title:t.$i18nt("gd.echarts.displayRules","\u663E\u793A\u89C4\u5219"),fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent}})],1),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[e("div",{staticClass:"rules"},[t._l(t.list,function(n,a){return e("div",{key:a,staticClass:"rules-if"},[e("div",{staticClass:"title"},[e("div",{staticClass:"l",on:{click:function(l){return t.openItem(1,a)}}},[e("i",{staticClass:"if-icon",class:n.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(n.title)+" ")]),a!=0?e("div",{staticClass:"r"},[e("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",cursor:"pointer",color:"#ff4d4f"},on:{click:function(l){return t.del(a)}}})]):t._e()]),n.open?e("div",{staticClass:"rules-ifs"},[e("div",{staticClass:"condition"},[e("div",{staticClass:"title",on:{click:function(l){return t.openItem(2,a)}}},[e("i",{staticClass:"if-icon",class:n.condition.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(t.$i18nt("gd.basics.if","\u5982\u679C"))+" ")]),n.condition&&n.condition.open?e("div",{staticClass:"detail"},[t._l(n.condition.list,function(l,r){return e("div",{staticClass:"lists"},[e("div",{staticClass:"rg"},[l.type==0?e("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input"),value:t.$i18nt("gd.basics.if","\u5982\u679C"),disabled:""}}):e("el-select",{staticStyle:{width:"100%"},model:{value:l.type,callback:function(s){t.$set(l,"type",s)},expression:"ite.type"}},[e("el-option",{attrs:{value:"1",label:t.$i18nt("gd.filter.and","\u548C")}}),e("el-option",{attrs:{value:"2",label:t.$i18nt("gd.filter.or","\u6216")}})],1)],1),e("div",{staticClass:"zd"},[e("el-select",{staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:t.record.columnName,callback:function(s){t.$set(t.record,"columnName",s)},expression:"record.columnName"}},[t._l(t.sequenceField,function(s){return[e("el-option",{attrs:{value:s.columnName,label:s.transkeyDict?`${t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment)} (${t.$i18nt(`Dynamics.${s.transkeyDict}`,s.transkeyName)})`:t.$i18nt(`Dynamics.${t.V.transkey}`,s.columncomment)}})]})],2)],1),e("div",{staticClass:"tj"},[e("el-select",{staticStyle:{width:"100%"},model:{value:l.rules,callback:function(s){t.$set(l,"rules",s)},expression:"ite.rules"}},[t._l(t.rulesList,function(s){return[e("el-option",{attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.name))+" ")])]})],2)],1),e("div",{staticClass:"jg"},[e("el-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),"controls-position":"right",step:1},model:{value:l.val,callback:function(s){t.$set(l,"val",s)},expression:"ite.val"}})],1),e("div",{staticClass:"sc"},[e("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",color:"#ff4d4f"},on:{click:function(s){return t.delCondition(a,r)}}})])])}),e("div",{staticClass:"add"},[e("span",{staticClass:"active-color",on:{click:function(l){return t.addCondition(a)}}},[e("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addCondition","\u6DFB\u52A0\u6761\u4EF6"))+" ")])])],2):t._e()]),e("div",{staticClass:"operation"},[e("div",{staticClass:"title",on:{click:function(l){return t.openItem(3,a)}}},[e("i",{class:n.operation.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(t.$i18nt("gd.basics.handle"))+" "),a===t.list.length-1&&n.operation.list.length>0&&n.condition.list.length===0?e("div",{staticClass:"title-sc"},[e("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",color:"#ff4d4f"},on:{click:function(l){return l.stopPropagation(),t.delOperation(a)}}})]):t._e()]),n.operation&&n.operation.open?e("div",{staticClass:"list"},[t._l(n.operation.list,function(l,r){return e("div",{staticClass:"lists"},[e("div",{staticClass:"zd"},[e("el-select",{staticStyle:{width:"100%"},model:{value:l.rules,callback:function(s){t.$set(l,"rules",s)},expression:"ite.rules"}},[t._l(t.operationList,function(s){return[e("el-option",{attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transKey}`,s.name)}})]})],2)],1),e("div",{staticClass:"zd"},[l.rules==="1"?e("el-input",{model:{value:l.val,callback:function(s){t.$set(l,"val",s)},expression:"ite.val"}},[e("el-color-picker",{staticClass:"theme-picker",staticStyle:{"margin-right":"-5px"},attrs:{slot:"suffix",predefine:t.predefine,"popper-class":"theme-picker-dropdown"},slot:"suffix",model:{value:l.val,callback:function(s){t.$set(l,"val",s)},expression:"ite.val"}})],1):l.rules==="2"?e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),size:"mini"},model:{value:l.val,callback:function(s){t.$set(l,"val",s)},expression:"ite.val"}},t._l(t.size,function(s){return e("el-option",{key:s,attrs:{label:s,value:s}})}),1):l.rules==="3"?e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),size:"mini"},model:{value:l.val,callback:function(s){t.$set(l,"val",s)},expression:"ite.val"}},[e("el-option",{attrs:{value:"lighter",label:t.$i18nt("gd.page.lighter","\u7EC6")}}),e("el-option",{attrs:{value:"normal",label:t.$i18nt("gd.page.fontNormal","\u9ED8\u8BA4")}}),e("el-option",{attrs:{value:"bolder",label:t.$i18nt("gd.page.bolder","\u7C97")}})],1):t._e()],1)])}),n.operation.list.length===0?e("div",{staticClass:"add active-color"},[e("span",{on:{click:function(l){return t.addOperationMore(a)}}},[e("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addHandle","\u6DFB\u52A0\u64CD\u4F5C"))+" ")])]):t._e()],2):t._e()])]):t._e()])}),t.showAdd?e("div",{staticClass:"rules-el"},[e("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:t.addList}},[e("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addElse","\u6DFB\u52A0 ELSE"))+" ")])]):t._e()],2)])],2)},p=[],h=c.normalizeComponent(d,u,p,!1,null,"8a162d6f",null,null);const f=h.exports;exports.default=f;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./components.chartbi.13a8a7b5.js"),o=require("./utils.util.js.c0ba699b.js");require("./utils.echarts.js.461a74e7.js");const d={props:{fieldData:{type:Array,default:()=>[]},echartsMode:{type:Array,default:()=>[]},sequenceField:{type:Array,default:()=>[]},size:{type:Array,default:()=>[]}},data(){return{width:"800px",record:null,confirmLoading:!1,visible:!1,fullscreen:!1,buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],list:[],showAdd:!0}},computed:{predefine(){return["#F5222D","#52C41A","#FAAD14","#13C2C2","#1890FF","#722ED1","#eee","#333","#666","#999"]},operationList(){return[{name:"\u5B57\u4F53\u989C\u8272",transKey:"gd.page.fontcolor",code:"1"},{name:"\u5B57\u4F53\u5927\u5C0F",transKey:"gd.page.fontSize",code:"2"},{name:"\u5B57\u4F53\u52A0\u7C97",transKey:"gd.page.fontWeight",code:"3"}]},rulesList(){return this.getDictionary("table_form_rules").filter(e=>e.remark.split(",").includes("double")).filter(e=>!["6","5","4","3"].includes(e.code))},height(){let i=this.fullscreen?190:340;return this.screenHeight-i},...c.mapGetters(["screenHeight"])},methods:{handleSubmit(){let i=[],t=[];if(this.list.forEach((e,n)=>{i=i.concat(e.condition.list),t=t.concat(e.operation.list)}),i.length===0&&t.length===0){this.$emit("ok",this.record,[]),this.closed();return}if(!this.isCheckedAll(i)){this.$message.warning(this.$i18nt("gd.basics.businessRulesConditionTip","\u8BF7\u8865\u5145\u6761\u4EF6\u6570\u636E!"));return}this.$emit("ok",this.record,this.list),this.closed()},addList(){let i=[...this.list];i.length>1&&(i[i.length-1].title="ELSE IF");let t={title:"Else",open:!0,condition:{open:!0,list:[]},operation:{open:!0,list:[]},id:o.uuid()};i.push(t),this.list=[...i]},del(i){let t=this;this.$confirm(this.$i18nt("gd.https.delExpression","\u662F\u5426\u5220\u9664\u6B64\u8868\u8FBE\u5F0F?"),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:(e,n,a)=>{if(a(),e!=="confirm")return;let l=[...t.list];l.splice(i,1),l.length>1&&(l[l.length-1].title="Else"),t.list=[...l]}})},delCondition(i,t){let e=[...this.list];e[i].condition.list.splice(t,1),e[i].condition.list.length>0&&(e[i].condition.list[0].type="0"),e[i].condition.list.length===0&&i!=e.length-1&&(e[i].operation.list=[]),this.list=[...e]},delOperation(i,t){let e=[...this.list];e[i].operation.list=[],this.list=[...e]},addCondition(i){let t=this.list[i].condition.list.length,n={type:t==0?"0":t>1?this.list[i].condition.list[t-1].type:"1",rules:"1",val:void 0,id:o.uuid(12)};this.list[i].condition.list.push(n),this.list[i].operation.list.length===0&&(this.addOperation(i,"1","#333"),this.addOperation(i,"2",14),this.addOperation(i,"3","normal"))},addOperation(i,t,e){let n={rules:t,val:e,type:1,id:o.uuid()};this.list[i].operation.list.push(n)},addOperationMore(i){this.list[i].operation.list.length===0&&(this.addOperation(i,"1","#333"),this.addOperation(i,"2",14),this.addOperation(i,"3","normal"))},openItem(i,t){if(i==1){this.list[t].open=!this.list[t].open;return}if(i==2){this.list[t].condition.open=!this.list[t].condition.open;return}if(i==3){this.list[t].operation.open=!this.list[t].operation.open;return}},del(i){let t=this;this.$confirm(this.$i18nt("gd.https.delExpression","\u662F\u5426\u5220\u9664\u6B64\u8868\u8FBE\u5F0F?"),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:(e,n,a)=>{if(a(),e!=="confirm")return;let l=[...t.list];l.splice(i,1),l.length>1&&(l[l.length-1].title="Else"),t.list=[...l]}})},open(i){const t=JSON.parse(JSON.stringify(i));this.record=t,this.list=t.ruleSequence.length>0?[...t.ruleSequence]:[{title:"IF",open:!0,condition:{open:!0,list:[]},operation:{open:!0,list:[]},id:o.uuid(12)}],this.visible=!0},isCheckedAll(i,t){return i.every((e,n,a)=>e.val!==""&&e.val!==void 0)},closed(){this.confirmLoading=!1,this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},getDictionary(i){return this.$options.filters.dictData(i)},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}}};var u=function(){var t=this,e=t._self._c;return e("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(n){t.visible=n},closed:t.closed}},[e("template",{slot:"title"},[e("gd-modal-title",{attrs:{title:t.$i18nt("gd.echarts.displayRules","\u663E\u793A\u89C4\u5219"),fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent}})],1),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[e("div",{staticClass:"rules"},[t._l(t.list,function(n,a){return e("div",{key:a,staticClass:"rules-if"},[e("div",{staticClass:"title"},[e("div",{staticClass:"l",on:{click:function(l){return t.openItem(1,a)}}},[e("i",{staticClass:"if-icon",class:n.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(n.title)+" ")]),a!=0?e("div",{staticClass:"r"},[e("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",cursor:"pointer",color:"#ff4d4f"},on:{click:function(l){return t.del(a)}}})]):t._e()]),n.open?e("div",{staticClass:"rules-ifs"},[e("div",{staticClass:"condition"},[e("div",{staticClass:"title",on:{click:function(l){return t.openItem(2,a)}}},[e("i",{staticClass:"if-icon",class:n.condition.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(t.$i18nt("gd.basics.if","\u5982\u679C"))+" ")]),n.condition&&n.condition.open?e("div",{staticClass:"detail"},[t._l(n.condition.list,function(l,r){return e("div",{staticClass:"lists"},[e("div",{staticClass:"rg"},[l.type==0?e("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input"),value:t.$i18nt("gd.basics.if","\u5982\u679C"),disabled:""}}):e("el-select",{staticStyle:{width:"100%"},model:{value:l.type,callback:function(s){t.$set(l,"type",s)},expression:"ite.type"}},[e("el-option",{attrs:{value:"1",label:t.$i18nt("gd.filter.and","\u548C")}}),e("el-option",{attrs:{value:"2",label:t.$i18nt("gd.filter.or","\u6216")}})],1)],1),e("div",{staticClass:"zd"},[e("el-select",{staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:t.record.columnName,callback:function(s){t.$set(t.record,"columnName",s)},expression:"record.columnName"}},[t._l(t.sequenceField,function(s){return[e("el-option",{attrs:{value:s.columnName,label:s.transkeyDict?`${t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment)} (${t.$i18nt(`Dynamics.${s.transkeyDict}`,s.transkeyName)})`:t.$i18nt(`Dynamics.${t.V.transkey}`,s.columncomment)}})]})],2)],1),e("div",{staticClass:"tj"},[e("el-select",{staticStyle:{width:"100%"},model:{value:l.rules,callback:function(s){t.$set(l,"rules",s)},expression:"ite.rules"}},[t._l(t.rulesList,function(s){return[e("el-option",{attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.name))+" ")])]})],2)],1),e("div",{staticClass:"jg"},[e("el-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),"controls-position":"right",step:1},model:{value:l.val,callback:function(s){t.$set(l,"val",s)},expression:"ite.val"}})],1),e("div",{staticClass:"sc"},[e("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",color:"#ff4d4f"},on:{click:function(s){return t.delCondition(a,r)}}})])])}),e("div",{staticClass:"add"},[e("span",{staticClass:"active-color",on:{click:function(l){return t.addCondition(a)}}},[e("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addCondition","\u6DFB\u52A0\u6761\u4EF6"))+" ")])])],2):t._e()]),e("div",{staticClass:"operation"},[e("div",{staticClass:"title",on:{click:function(l){return t.openItem(3,a)}}},[e("i",{class:n.operation.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(t.$i18nt("gd.basics.handle"))+" "),a===t.list.length-1&&n.operation.list.length>0&&n.condition.list.length===0?e("div",{staticClass:"title-sc"},[e("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",color:"#ff4d4f"},on:{click:function(l){return l.stopPropagation(),t.delOperation(a)}}})]):t._e()]),n.operation&&n.operation.open?e("div",{staticClass:"list"},[t._l(n.operation.list,function(l,r){return e("div",{staticClass:"lists"},[e("div",{staticClass:"zd"},[e("el-select",{staticStyle:{width:"100%"},model:{value:l.rules,callback:function(s){t.$set(l,"rules",s)},expression:"ite.rules"}},[t._l(t.operationList,function(s){return[e("el-option",{attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transKey}`,s.name)}})]})],2)],1),e("div",{staticClass:"zd"},[l.rules==="1"?e("el-input",{model:{value:l.val,callback:function(s){t.$set(l,"val",s)},expression:"ite.val"}},[e("el-color-picker",{staticClass:"theme-picker",staticStyle:{"margin-right":"-5px"},attrs:{slot:"suffix",predefine:t.predefine,"popper-class":"theme-picker-dropdown"},slot:"suffix",model:{value:l.val,callback:function(s){t.$set(l,"val",s)},expression:"ite.val"}})],1):l.rules==="2"?e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),size:"mini"},model:{value:l.val,callback:function(s){t.$set(l,"val",s)},expression:"ite.val"}},t._l(t.size,function(s){return e("el-option",{key:s,attrs:{label:s,value:s}})}),1):l.rules==="3"?e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),size:"mini"},model:{value:l.val,callback:function(s){t.$set(l,"val",s)},expression:"ite.val"}},[e("el-option",{attrs:{value:"lighter",label:t.$i18nt("gd.page.lighter","\u7EC6")}}),e("el-option",{attrs:{value:"normal",label:t.$i18nt("gd.page.fontNormal","\u9ED8\u8BA4")}}),e("el-option",{attrs:{value:"bolder",label:t.$i18nt("gd.page.bolder","\u7C97")}})],1):t._e()],1)])}),n.operation.list.length===0?e("div",{staticClass:"add active-color"},[e("span",{on:{click:function(l){return t.addOperationMore(a)}}},[e("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addHandle","\u6DFB\u52A0\u64CD\u4F5C"))+" ")])]):t._e()],2):t._e()])]):t._e()])}),t.showAdd?e("div",{staticClass:"rules-el"},[e("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:t.addList}},[e("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addElse","\u6DFB\u52A0 ELSE"))+" ")])]):t._e()],2)])],2)},p=[],h=c.normalizeComponent(d,u,p,!1,null,"8a162d6f",null,null);const f=h.exports;exports.default=f;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* vuex v3.6.2
|
|
3
3
|
* (c) 2021 Evan You
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/function ht(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var o=t.prototype._init;t.prototype._init=function(i){i===void 0&&(i={}),i.init=i.init?[r].concat(i.init):r,o.call(this,i)}}function r(){var i=this.$options;i.store?this.$store=typeof i.store=="function"?i.store():i.store:i.parent&&i.parent.$store&&(this.$store=i.parent.$store)}}var pt=typeof window<"u"?window:typeof global<"u"?global:{},z=pt.__VUE_DEVTOOLS_GLOBAL_HOOK__;function mt(t){!z||(t._devtoolHook=z,z.emit("vuex:init",t),z.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(e,o){z.emit("vuex:mutation",e,o)},{prepend:!0}),t.subscribeAction(function(e,o){z.emit("vuex:action",e,o)},{prepend:!0}))}function P(t,e){Object.keys(t).forEach(function(o){return e(t[o],o)})}function et(t){return t!==null&&typeof t=="object"}function gt(t){return t&&typeof t.then=="function"}function E(t,e){if(!t)throw new Error("[vuex] "+e)}function yt(t,e){return function(){return t(e)}}var k=function(e,o){this.runtime=o,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=(typeof r=="function"?r():r)||{}},ot={namespaced:{configurable:!0}};ot.namespaced.get=function(){return!!this._rawModule.namespaced};k.prototype.addChild=function(e,o){this._children[e]=o};k.prototype.removeChild=function(e){delete this._children[e]};k.prototype.getChild=function(e){return this._children[e]};k.prototype.hasChild=function(e){return e in this._children};k.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)};k.prototype.forEachChild=function(e){P(this._children,e)};k.prototype.forEachGetter=function(e){this._rawModule.getters&&P(this._rawModule.getters,e)};k.prototype.forEachAction=function(e){this._rawModule.actions&&P(this._rawModule.actions,e)};k.prototype.forEachMutation=function(e){this._rawModule.mutations&&P(this._rawModule.mutations,e)};Object.defineProperties(k.prototype,ot);var V=function(e){this.register([],e,!1)};V.prototype.get=function(e){return e.reduce(function(o,r){return o.getChild(r)},this.root)};V.prototype.getNamespace=function(e){var o=this.root;return e.reduce(function(r,i){return o=o.getChild(i),r+(o.namespaced?i+"/":"")},"")};V.prototype.update=function(e){rt([],this.root,e)};V.prototype.register=function(e,o,r){var i=this;r===void 0&&(r=!0),process.env.NODE_ENV!=="production"&&it(e,o);var s=new k(o,r);if(e.length===0)this.root=s;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],s)}o.modules&&P(o.modules,function(f,l){i.register(e.concat(l),f,r)})};V.prototype.unregister=function(e){var o=this.get(e.slice(0,-1)),r=e[e.length-1],i=o.getChild(r);if(!i){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}!i.runtime||o.removeChild(r)};V.prototype.isRegistered=function(e){var o=this.get(e.slice(0,-1)),r=e[e.length-1];return o?o.hasChild(r):!1};function rt(t,e,o){if(process.env.NODE_ENV!=="production"&&it(t,o),e.update(o),o.modules)for(var r in o.modules){if(!e.getChild(r)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");return}rt(t.concat(r),e.getChild(r),o.modules[r])}}var X={assert:function(t){return typeof t=="function"},expected:"function"},vt={assert:function(t){return typeof t=="function"||typeof t=="object"&&typeof t.handler=="function"},expected:'function or object with "handler" function'},J={getters:X,mutations:X,actions:vt};function it(t,e){Object.keys(J).forEach(function(o){if(!!e[o]){var r=J[o];P(e[o],function(i,s){E(r.assert(i),bt(t,o,s,i,r.expected))})}})}function bt(t,e,o,r,i){var s=e+" should be "+i+' but "'+e+"."+o+'"';return t.length>0&&(s+=' in module "'+t.join(".")+'"'),s+=" is "+JSON.stringify(r)+".",s}var C,j=function t(e){var o=this;e===void 0&&(e={}),!C&&typeof window<"u"&&window.Vue&&Nt(window.Vue),process.env.NODE_ENV!=="production"&&(E(C,"must call Vue.use(Vuex) before creating a store instance."),E(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),E(this instanceof t,"store must be called with the new operator."));var r=e.plugins;r===void 0&&(r=[]);var i=e.strict;i===void 0&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new V(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new C,this._makeLocalGettersCache=Object.create(null);var s=this,a=this,f=a.dispatch,l=a.commit;this.dispatch=function(g,n){return f.call(s,g,n)},this.commit=function(g,n,m){return l.call(s,g,n,m)},this.strict=i;var c=this._modules.root.state;W(this,c,[],this._modules.root),B(this,c),r.forEach(function(u){return u(o)});var d=e.devtools!==void 0?e.devtools:C.config.devtools;d&&mt(this)},U={state:{configurable:!0}};U.state.get=function(){return this._vm._data.$$state};U.state.set=function(t){process.env.NODE_ENV!=="production"&&E(!1,"use store.replaceState() to explicit replace store state.")};j.prototype.commit=function(e,o,r){var i=this,s=I(e,o,r),a=s.type,f=s.payload,l=s.options,c={type:a,payload:f},d=this._mutations[a];if(!d){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+a);return}this._withCommit(function(){d.forEach(function(g){g(f)})}),this._subscribers.slice().forEach(function(u){return u(c,i.state)}),process.env.NODE_ENV!=="production"&&l&&l.silent&&console.warn("[vuex] mutation type: "+a+". Silent option has been removed. Use the filter functionality in the vue-devtools")};j.prototype.dispatch=function(e,o){var r=this,i=I(e,o),s=i.type,a=i.payload,f={type:s,payload:a},l=this._actions[s];if(!l){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+s);return}try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(f,r.state)})}catch(d){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(d))}var c=l.length>1?Promise.all(l.map(function(d){return d(a)})):l[0](a);return new Promise(function(d,u){c.then(function(g){try{r._actionSubscribers.filter(function(n){return n.after}).forEach(function(n){return n.after(f,r.state)})}catch(n){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(n))}d(g)},function(g){try{r._actionSubscribers.filter(function(n){return n.error}).forEach(function(n){return n.error(f,r.state,g)})}catch(n){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(n))}u(g)})})};j.prototype.subscribe=function(e,o){return nt(e,this._subscribers,o)};j.prototype.subscribeAction=function(e,o){var r=typeof e=="function"?{before:e}:e;return nt(r,this._actionSubscribers,o)};j.prototype.watch=function(e,o,r){var i=this;return process.env.NODE_ENV!=="production"&&E(typeof e=="function","store.watch only accepts a function."),this._watcherVM.$watch(function(){return e(i.state,i.getters)},o,r)};j.prototype.replaceState=function(e){var o=this;this._withCommit(function(){o._vm._data.$$state=e})};j.prototype.registerModule=function(e,o,r){r===void 0&&(r={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(E(Array.isArray(e),"module path must be a string or an Array."),E(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,o),W(this,this.state,e,this._modules.get(e),r.preserveState),B(this,this.state)};j.prototype.unregisterModule=function(e){var o=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&E(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var r=H(o.state,e.slice(0,-1));C.delete(r,e[e.length-1])}),st(this)};j.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&E(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)};j.prototype.hotUpdate=function(e){this._modules.update(e),st(this,!0)};j.prototype._withCommit=function(e){var o=this._committing;this._committing=!0,e(),this._committing=o};Object.defineProperties(j.prototype,U);function nt(t,e,o){return e.indexOf(t)<0&&(o&&o.prepend?e.unshift(t):e.push(t)),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}function st(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var o=t.state;W(t,o,[],t._modules.root,!0),B(t,o,e)}function B(t,e,o){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,s={};P(i,function(f,l){s[l]=yt(f,t),Object.defineProperty(t.getters,l,{get:function(){return t._vm[l]},enumerable:!0})});var a=C.config.silent;C.config.silent=!0,t._vm=new C({data:{$$state:e},computed:s}),C.config.silent=a,t.strict&&St(t),r&&(o&&t._withCommit(function(){r._data.$$state=null}),C.nextTick(function(){return r.$destroy()}))}function W(t,e,o,r,i){var s=!o.length,a=t._modules.getNamespace(o);if(r.namespaced&&(t._modulesNamespaceMap[a]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+a+" for the namespaced module "+o.join("/")),t._modulesNamespaceMap[a]=r),!s&&!i){var f=H(e,o.slice(0,-1)),l=o[o.length-1];t._withCommit(function(){process.env.NODE_ENV!=="production"&&l in f&&console.warn('[vuex] state field "'+l+'" was overridden by a module with the same name at "'+o.join(".")+'"'),C.set(f,l,r.state)})}var c=r.context=_t(t,a,o);r.forEachMutation(function(d,u){var g=a+u;$t(t,g,d,c)}),r.forEachAction(function(d,u){var g=d.root?u:a+u,n=d.handler||d;Ot(t,g,n,c)}),r.forEachGetter(function(d,u){var g=a+u;Ct(t,g,d,c)}),r.forEachChild(function(d,u){W(t,e,o.concat(u),d,i)})}function _t(t,e,o){var r=e==="",i={dispatch:r?t.dispatch:function(s,a,f){var l=I(s,a,f),c=l.payload,d=l.options,u=l.type;if((!d||!d.root)&&(u=e+u,process.env.NODE_ENV!=="production"&&!t._actions[u])){console.error("[vuex] unknown local action type: "+l.type+", global type: "+u);return}return t.dispatch(u,c)},commit:r?t.commit:function(s,a,f){var l=I(s,a,f),c=l.payload,d=l.options,u=l.type;if((!d||!d.root)&&(u=e+u,process.env.NODE_ENV!=="production"&&!t._mutations[u])){console.error("[vuex] unknown local mutation type: "+l.type+", global type: "+u);return}t.commit(u,c,d)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return xt(t,e)}},state:{get:function(){return H(t.state,o)}}}),i}function xt(t,e){if(!t._makeLocalGettersCache[e]){var o={},r=e.length;Object.keys(t.getters).forEach(function(i){if(i.slice(0,r)===e){var s=i.slice(r);Object.defineProperty(o,s,{get:function(){return t.getters[i]},enumerable:!0})}}),t._makeLocalGettersCache[e]=o}return t._makeLocalGettersCache[e]}function $t(t,e,o,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push(function(a){o.call(t,r.state,a)})}function Ot(t,e,o,r){var i=t._actions[e]||(t._actions[e]=[]);i.push(function(a){var f=o.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},a);return gt(f)||(f=Promise.resolve(f)),t._devtoolHook?f.catch(function(l){throw t._devtoolHook.emit("vuex:error",l),l}):f})}function Ct(t,e,o,r){if(t._wrappedGetters[e]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+e);return}t._wrappedGetters[e]=function(s){return o(r.state,r.getters,s.state,s.getters)}}function St(t){t._vm.$watch(function(){return this._data.$$state},function(){process.env.NODE_ENV!=="production"&&E(t._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,sync:!0})}function H(t,e){return e.reduce(function(o,r){return o[r]},t)}function I(t,e,o){return et(t)&&t.type&&(o=e,e=t,t=t.type),process.env.NODE_ENV!=="production"&&E(typeof t=="string","expects string as the type, but found "+typeof t+"."),{type:t,payload:e,options:o}}function Nt(t){if(C&&t===C){process.env.NODE_ENV!=="production"&&console.error("[vuex] already installed. Vue.use(Vuex) should be called only once.");return}C=t,ht(C)}var at=ct(function(t,e){var o={};return process.env.NODE_ENV!=="production"&&!Q(e)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),lt(e).forEach(function(r){var i=r.key,s=r.val;s=t+s,o[i]=function(){if(!(t&&!ut(this.$store,"mapGetters",t))){if(process.env.NODE_ENV!=="production"&&!(s in this.$store.getters)){console.error("[vuex] unknown getter: "+s);return}return this.$store.getters[s]}},o[i].vuex=!0}),o}),wt=ct(function(t,e){var o={};return process.env.NODE_ENV!=="production"&&!Q(e)&&console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),lt(e).forEach(function(r){var i=r.key,s=r.val;o[i]=function(){for(var f=[],l=arguments.length;l--;)f[l]=arguments[l];var c=this.$store.dispatch;if(t){var d=ut(this.$store,"mapActions",t);if(!d)return;c=d.context.dispatch}return typeof s=="function"?s.apply(this,[c].concat(f)):c.apply(this.$store,[s].concat(f))}}),o});function lt(t){return Q(t)?Array.isArray(t)?t.map(function(e){return{key:e,val:e}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}}):[]}function Q(t){return Array.isArray(t)||et(t)}function ct(t){return function(e,o){return typeof e!="string"?(o=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),t(e,o)}}function ut(t,e,o){var r=t._modulesNamespaceMap[o];return process.env.NODE_ENV!=="production"&&!r&&console.error("[vuex] module namespace not found in "+e+"(): "+o),r}function M(t,e,o,r,i,s,a,f){var l=typeof t=="function"?t.options:t;e&&(l.render=e,l.staticRenderFns=o,l._compiled=!0),r&&(l.functional=!0),s&&(l._scopeId="data-v-"+s);var c;if(a?(c=function(g){g=g||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!g&&typeof __VUE_SSR_CONTEXT__<"u"&&(g=__VUE_SSR_CONTEXT__),i&&i.call(this,g),g&&g._registeredComponents&&g._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=f?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(n,m){return c.call(m),d(n,m)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:l}}function ft(t,e,o){let r=new Map;return t.forEach((s,a)=>{r.set(s.id,Et(s.operation.list))}),{rich:Object.fromEntries(r),formatter:s=>jt(s,t,e,o)}}function Et(t){let e={};return t.forEach(o=>{o.rules==="1"?Object.assign(e,{color:o.val?o.val:"#333"}):o.rules==="2"?Object.assign(e,{fontSize:o.val+"px"}):o.rules==="3"&&Object.assign(e,{fontWeight:o.val})}),e}function jt(t,e,o,r){const i=o.formatter?o.formatter:"",s=o.transKeyPrefix?r(o.transKeyPrefix,o.prefix):"";let a="";for(let l=0;l<e.length;l++){let c=[];e[l].condition.list.forEach(u=>{const g=q(u.val),n=o.bei===0?0:o.bei===100?g.l-2:g.l-3,m=F(Number(u.val)*o.bei,n);let h=kt({data:Object.assign({...u},{val:m}),val:t.data});c.push(h)}),Ft(c,e[l])&&a===""&&(a=e[l].id)}return a!==""?`{${a}|${s} ${N.formatterAmount(t.data)} ${i}}`:`${s} ${N.formatterAmount(t.data)} ${i}`}function kt(t){switch(t.data.rules){case"1":return Z(t);case"2":return Z(t);case"7":return K(t);case"8":return K(t);case"9":return K(t);case"10":return K(t)}}function Z({data:t,val:e}){if(e===""||e===void 0)return!1;let o=Number(e),r=Number(t.val);return t.rules==="1"?o===r:o!==r}function K({data:t,val:e}){if(e===""||e===void 0)return!1;let o=Y("inputnumber",{val:e}),r=Y("inputnumber",t);if(t.rules==="7")return o>r;if(t.rules==="8")return o>=r;if(t.rules==="9")return o<r;if(t.rules==="10")return o<=r}function Y(t="inputnumber",e){let o=0;return t==="inputnumber"?o=Number(e.val):o=new Date(String(e.val)).getTime(),o}function Ft(t,e){let o=e.condition.list.length;if(o===0)return!0;let r=o===0?"1":e.condition.list[o-1].type,i=Lt(t,r);return r==="2"&&!i?!0:!!(r!=="2"&&i)}function Lt(t,e){return e==="2"?t.every((o,r,i)=>!o):t.every((o,r,i)=>!!o)}function q(t){const e=String(t),o=e.substr(e.lastIndexOf(".")+1).toLowerCase();let r=1;for(let i=0;i<o.length;i++)r*=10;return{n:r,l:o.length}}function F(t,e){const o=10**e;return Math.round(t*o)/o}const Dt={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},ruleList:{type:Array,default:()=>[]}},data(){return{colorList:[],myChart:null}},methods:{init(t){let e=A.echarts.init(this.$refs.container),o=this.getOption(t);e.clear(),e.dispose(),e=A.echarts.init(this.$refs.container),e.setOption(o),e.on("click",r=>{this.$emit("change",r)}),this.myChart=e},getOption(t){this.colorList=[...this.color];let e=[],o=[],r=[],i=[];const s=t.series.filter(n=>n.type==="bar")[0];t.columns.forEach(n=>{e.push({type:"category",data:n.data,axisPointer:{type:s===void 0?"line":"shadow"},axisTick:{alignWithLabel:!1},axisLine:{onZero:!1,lineStyle:{color:this.options.labelLineColor}},axisLabel:{interval:0,rotate:n.rotate!==void 0?n.rotate:this.options.labelRotate,fontSize:n.fontSize!==void 0?n.fontSize:this.options.labelFontSize,color:n.color!==void 0?n.color:this.options.xAxisLabelColor},offset:n.offset,position:n.position})}),t.data.forEach((n,m)=>{this.$i18nt(n.item.transKey,n.item.name);let h={type:"value",axisLine:{show:!0,lineStyle:{color:this.options.labelLineColor}},axisLabel:{formatter:n.formatter?`{value} ${n.formatter}`:"{value}",color:this.options.labelFontColor}};n.max!==void 0&&Object.assign(h,{max:n.max}),n.min!==void 0&&Object.assign(h,{min:n.min}),t.data.length!==1&&Object.assign(h,{position:m===0?"left":"right",alignTicks:!0,show:m<2,axisLabel:{formatter:n.formatter?`{value} ${n.formatter}`:"{value}"}}),o.push(h)});const f=t.series.filter(n=>{const m=n.item.columnName?n.item.columnName:"",h=t.series[0].columnName?t.series[0].columnName:"";return m===h}).length===t.series.length;t.series.forEach((n,m)=>{let h=this.$i18nt(n.item.transKey,n.item.name);n.item.transkeyDict&&(h+=` (${this.$i18nt(n.item.transkeyDict,n.item.transkeyName)})`);let y={label:{show:n.tooltip?this.options.labelShow:n.tooltip,position:this.options.labelTextPosition,textStyle:{fontSize:this.options.textFontSize,color:this.options.textFontColor},formatter:_=>N.formatterAmount(_.data)},color:_=>t.type===1?this.colorList[_.dataIndex]:this.colorList[m]};this.ruleList.length>0&&(y=this.getNormal(y,n)),(t.data.length!==1||t.type===2)&&n.item.name&&i.push(h);let b={type:n.type,name:h,emphasis:{focus:this.options.emphasisFocus},data:n.data.map(_=>{if(n.bei===1)return F(_,this.options.numericalPrecision).toFixed(this.options.numericalPrecision);const O=q(_),L=n.bei===100?O.l-2:O.l-3,T=F(Number(_)*n.bei,L);return F(T,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)}),tooltip:{show:n.tooltip,valueFormatter:_=>{const O=n.formatter?n.formatter:"";return`${n.transKeyPrefix?this.$i18nt(n.transKeyPrefix,n.prefix):""} ${N.formatterAmount(_)} ${O}`}},itemStyle:t.data.length===1?{normal:y}:{normal:Object.assign({...y},{color:this.colorList[m]})}};const v=this.options.overlayStack?{stack:n.stack?n.stack:"Total"}:{};t.type===1&&Object.assign(b,{yAxisIndex:f||v.stack!==void 0?0:m}),n.type==="line"&&Object.assign(b,{smooth:this.options.smooth,showSymbol:this.options.showSymbol,lineStyle:{width:this.options.lineStyleWidth}}),r.push(Object.assign(b,v))});let l={containLabel:!0};this.options.gridPosition.forEach((n,m)=>{n!==""&&m===0?Object.assign(l,{top:n}):n!==""&&m===1?Object.assign(l,{right:n}):n!==""&&m===2?Object.assign(l,{bottom:n}):n!==""&&m===3&&Object.assign(l,{left:n})});let c={show:this.options.legendShow,data:i,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};if(this.options.legendPosition.forEach((n,m)=>{n!==""&&m===0?Object.assign(c,{top:n}):n!==""&&m===1?Object.assign(c,{right:n}):n!==""&&m===2?Object.assign(c,{bottom:n}):n!==""&&m===3&&Object.assign(c,{left:n})}),s===void 0&&this.options.areaStyleStack&&(e.forEach((n,m)=>{e[m]=Object.assign(n,{boundaryGap:!1})}),r.forEach((n,m)=>{r[m]=Object.assign(n,{areaStyle:{}})})),this.options.overlayStack&&this.options.numericalSummary&&this.options.labelTextPosition==="inside"){let n=[],m=[];const h=t.series[0].bei;for(let y=0;y<r[0].data.length;y++){let b=0;for(let v=0;v<r.length;v++)b+=Number(r[v].data[y]);if(m.push(0),h===1)n.push(F(b,this.options.numericalPrecision).toFixed(this.options.numericalPrecision));else{const v=q(b),_=h===100?v.l-2:v.l-3,O=F(Number(ite)*h,_);n.push(F(O,this.options.numericalPrecision).toFixed(this.options.numericalPrecision))}}r.push({name:"\u6C47\u603B",stack:r[0].stack,type:"bar",label:{normal:{show:!0,position:"top",formatter:function(y){return n[y.dataIndex]},textStyle:{color:"#333",fontSize:this.options.textFontSize}}},tooltip:{show:!1},data:m})}const d=Math.ceil(r[0].data.length/this.color.length);let u=[];for(let n=0;n<d;n++)u=u.concat(this.color);return this.colorList=u,{color:u,tooltip:{trigger:"axis",axisPointer:{type:s===void 0?"cross":"shadow"}},grid:l,legend:c,xAxis:e,yAxis:o,series:r}},getNormal(t,e){const o=`${e.columnName}&${e.mode}`,r=this.ruleList.filter(s=>`${s.columnName}&${s.mode}`===o)[0];if(!r)return t;let i=ft(r.ruleSequence,e,this.$i18nt);return Object.assign({...t},{label:Object.assign({...t.label},i)})}},destroyed(){this.myChart.dispose()}};var At=function(){var e=this,o=e._self._c;return o("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},Tt=[],Pt=M(Dt,At,Tt,!1,null,"00d8b996",null,null);const tt=Pt.exports;const Vt={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{myChart:null}},methods:{init(t){let e=A.echarts.init(this.$refs.container),o=this.getOption(t);e.clear(),e.dispose(),e=A.echarts.init(this.$refs.container),e.setOption(o),e.on("click",r=>{this.$emit("change",r)}),this.myChart=e},getOption(t){let e=0,o=t.data[0].dataName;o.forEach((s,a)=>{e+=Number(s.value),o[a].order=s.value}),o=[...N.sort(o)];let r={show:this.options.legendShow,data:t.columns[0].data,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((s,a)=>{s!==""&&a===0?Object.assign(r,{top:s}):s!==""&&a===1?Object.assign(r,{right:s}):s!==""&&a===2?Object.assign(r,{bottom:s}):s!==""&&a===3&&Object.assign(r,{left:s})}),{tooltip:{trigger:"item",formatter:function(s){return`${s.data.name}:\r\r${N.formatterAmount(s.data.values)}\r
|
|
5
|
+
*/function ht(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var o=t.prototype._init;t.prototype._init=function(i){i===void 0&&(i={}),i.init=i.init?[r].concat(i.init):r,o.call(this,i)}}function r(){var i=this.$options;i.store?this.$store=typeof i.store=="function"?i.store():i.store:i.parent&&i.parent.$store&&(this.$store=i.parent.$store)}}var pt=typeof window<"u"?window:typeof global<"u"?global:{},z=pt.__VUE_DEVTOOLS_GLOBAL_HOOK__;function mt(t){!z||(t._devtoolHook=z,z.emit("vuex:init",t),z.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(e,o){z.emit("vuex:mutation",e,o)},{prepend:!0}),t.subscribeAction(function(e,o){z.emit("vuex:action",e,o)},{prepend:!0}))}function P(t,e){Object.keys(t).forEach(function(o){return e(t[o],o)})}function et(t){return t!==null&&typeof t=="object"}function gt(t){return t&&typeof t.then=="function"}function E(t,e){if(!t)throw new Error("[vuex] "+e)}function yt(t,e){return function(){return t(e)}}var k=function(e,o){this.runtime=o,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=(typeof r=="function"?r():r)||{}},ot={namespaced:{configurable:!0}};ot.namespaced.get=function(){return!!this._rawModule.namespaced};k.prototype.addChild=function(e,o){this._children[e]=o};k.prototype.removeChild=function(e){delete this._children[e]};k.prototype.getChild=function(e){return this._children[e]};k.prototype.hasChild=function(e){return e in this._children};k.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)};k.prototype.forEachChild=function(e){P(this._children,e)};k.prototype.forEachGetter=function(e){this._rawModule.getters&&P(this._rawModule.getters,e)};k.prototype.forEachAction=function(e){this._rawModule.actions&&P(this._rawModule.actions,e)};k.prototype.forEachMutation=function(e){this._rawModule.mutations&&P(this._rawModule.mutations,e)};Object.defineProperties(k.prototype,ot);var V=function(e){this.register([],e,!1)};V.prototype.get=function(e){return e.reduce(function(o,r){return o.getChild(r)},this.root)};V.prototype.getNamespace=function(e){var o=this.root;return e.reduce(function(r,i){return o=o.getChild(i),r+(o.namespaced?i+"/":"")},"")};V.prototype.update=function(e){rt([],this.root,e)};V.prototype.register=function(e,o,r){var i=this;r===void 0&&(r=!0),process.env.NODE_ENV!=="production"&&it(e,o);var s=new k(o,r);if(e.length===0)this.root=s;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],s)}o.modules&&P(o.modules,function(f,l){i.register(e.concat(l),f,r)})};V.prototype.unregister=function(e){var o=this.get(e.slice(0,-1)),r=e[e.length-1],i=o.getChild(r);if(!i){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}!i.runtime||o.removeChild(r)};V.prototype.isRegistered=function(e){var o=this.get(e.slice(0,-1)),r=e[e.length-1];return o?o.hasChild(r):!1};function rt(t,e,o){if(process.env.NODE_ENV!=="production"&&it(t,o),e.update(o),o.modules)for(var r in o.modules){if(!e.getChild(r)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");return}rt(t.concat(r),e.getChild(r),o.modules[r])}}var X={assert:function(t){return typeof t=="function"},expected:"function"},vt={assert:function(t){return typeof t=="function"||typeof t=="object"&&typeof t.handler=="function"},expected:'function or object with "handler" function'},J={getters:X,mutations:X,actions:vt};function it(t,e){Object.keys(J).forEach(function(o){if(!!e[o]){var r=J[o];P(e[o],function(i,s){E(r.assert(i),bt(t,o,s,i,r.expected))})}})}function bt(t,e,o,r,i){var s=e+" should be "+i+' but "'+e+"."+o+'"';return t.length>0&&(s+=' in module "'+t.join(".")+'"'),s+=" is "+JSON.stringify(r)+".",s}var C,j=function t(e){var o=this;e===void 0&&(e={}),!C&&typeof window<"u"&&window.Vue&&Nt(window.Vue),process.env.NODE_ENV!=="production"&&(E(C,"must call Vue.use(Vuex) before creating a store instance."),E(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),E(this instanceof t,"store must be called with the new operator."));var r=e.plugins;r===void 0&&(r=[]);var i=e.strict;i===void 0&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new V(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new C,this._makeLocalGettersCache=Object.create(null);var s=this,a=this,f=a.dispatch,l=a.commit;this.dispatch=function(g,n){return f.call(s,g,n)},this.commit=function(g,n,m){return l.call(s,g,n,m)},this.strict=i;var c=this._modules.root.state;W(this,c,[],this._modules.root),B(this,c),r.forEach(function(u){return u(o)});var d=e.devtools!==void 0?e.devtools:C.config.devtools;d&&mt(this)},U={state:{configurable:!0}};U.state.get=function(){return this._vm._data.$$state};U.state.set=function(t){process.env.NODE_ENV!=="production"&&E(!1,"use store.replaceState() to explicit replace store state.")};j.prototype.commit=function(e,o,r){var i=this,s=I(e,o,r),a=s.type,f=s.payload,l=s.options,c={type:a,payload:f},d=this._mutations[a];if(!d){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+a);return}this._withCommit(function(){d.forEach(function(g){g(f)})}),this._subscribers.slice().forEach(function(u){return u(c,i.state)}),process.env.NODE_ENV!=="production"&&l&&l.silent&&console.warn("[vuex] mutation type: "+a+". Silent option has been removed. Use the filter functionality in the vue-devtools")};j.prototype.dispatch=function(e,o){var r=this,i=I(e,o),s=i.type,a=i.payload,f={type:s,payload:a},l=this._actions[s];if(!l){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+s);return}try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(f,r.state)})}catch(d){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(d))}var c=l.length>1?Promise.all(l.map(function(d){return d(a)})):l[0](a);return new Promise(function(d,u){c.then(function(g){try{r._actionSubscribers.filter(function(n){return n.after}).forEach(function(n){return n.after(f,r.state)})}catch(n){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(n))}d(g)},function(g){try{r._actionSubscribers.filter(function(n){return n.error}).forEach(function(n){return n.error(f,r.state,g)})}catch(n){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(n))}u(g)})})};j.prototype.subscribe=function(e,o){return nt(e,this._subscribers,o)};j.prototype.subscribeAction=function(e,o){var r=typeof e=="function"?{before:e}:e;return nt(r,this._actionSubscribers,o)};j.prototype.watch=function(e,o,r){var i=this;return process.env.NODE_ENV!=="production"&&E(typeof e=="function","store.watch only accepts a function."),this._watcherVM.$watch(function(){return e(i.state,i.getters)},o,r)};j.prototype.replaceState=function(e){var o=this;this._withCommit(function(){o._vm._data.$$state=e})};j.prototype.registerModule=function(e,o,r){r===void 0&&(r={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(E(Array.isArray(e),"module path must be a string or an Array."),E(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,o),W(this,this.state,e,this._modules.get(e),r.preserveState),B(this,this.state)};j.prototype.unregisterModule=function(e){var o=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&E(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var r=H(o.state,e.slice(0,-1));C.delete(r,e[e.length-1])}),st(this)};j.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&E(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)};j.prototype.hotUpdate=function(e){this._modules.update(e),st(this,!0)};j.prototype._withCommit=function(e){var o=this._committing;this._committing=!0,e(),this._committing=o};Object.defineProperties(j.prototype,U);function nt(t,e,o){return e.indexOf(t)<0&&(o&&o.prepend?e.unshift(t):e.push(t)),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}function st(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var o=t.state;W(t,o,[],t._modules.root,!0),B(t,o,e)}function B(t,e,o){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,s={};P(i,function(f,l){s[l]=yt(f,t),Object.defineProperty(t.getters,l,{get:function(){return t._vm[l]},enumerable:!0})});var a=C.config.silent;C.config.silent=!0,t._vm=new C({data:{$$state:e},computed:s}),C.config.silent=a,t.strict&&St(t),r&&(o&&t._withCommit(function(){r._data.$$state=null}),C.nextTick(function(){return r.$destroy()}))}function W(t,e,o,r,i){var s=!o.length,a=t._modules.getNamespace(o);if(r.namespaced&&(t._modulesNamespaceMap[a]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+a+" for the namespaced module "+o.join("/")),t._modulesNamespaceMap[a]=r),!s&&!i){var f=H(e,o.slice(0,-1)),l=o[o.length-1];t._withCommit(function(){process.env.NODE_ENV!=="production"&&l in f&&console.warn('[vuex] state field "'+l+'" was overridden by a module with the same name at "'+o.join(".")+'"'),C.set(f,l,r.state)})}var c=r.context=_t(t,a,o);r.forEachMutation(function(d,u){var g=a+u;$t(t,g,d,c)}),r.forEachAction(function(d,u){var g=d.root?u:a+u,n=d.handler||d;Ot(t,g,n,c)}),r.forEachGetter(function(d,u){var g=a+u;Ct(t,g,d,c)}),r.forEachChild(function(d,u){W(t,e,o.concat(u),d,i)})}function _t(t,e,o){var r=e==="",i={dispatch:r?t.dispatch:function(s,a,f){var l=I(s,a,f),c=l.payload,d=l.options,u=l.type;if((!d||!d.root)&&(u=e+u,process.env.NODE_ENV!=="production"&&!t._actions[u])){console.error("[vuex] unknown local action type: "+l.type+", global type: "+u);return}return t.dispatch(u,c)},commit:r?t.commit:function(s,a,f){var l=I(s,a,f),c=l.payload,d=l.options,u=l.type;if((!d||!d.root)&&(u=e+u,process.env.NODE_ENV!=="production"&&!t._mutations[u])){console.error("[vuex] unknown local mutation type: "+l.type+", global type: "+u);return}t.commit(u,c,d)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return xt(t,e)}},state:{get:function(){return H(t.state,o)}}}),i}function xt(t,e){if(!t._makeLocalGettersCache[e]){var o={},r=e.length;Object.keys(t.getters).forEach(function(i){if(i.slice(0,r)===e){var s=i.slice(r);Object.defineProperty(o,s,{get:function(){return t.getters[i]},enumerable:!0})}}),t._makeLocalGettersCache[e]=o}return t._makeLocalGettersCache[e]}function $t(t,e,o,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push(function(a){o.call(t,r.state,a)})}function Ot(t,e,o,r){var i=t._actions[e]||(t._actions[e]=[]);i.push(function(a){var f=o.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},a);return gt(f)||(f=Promise.resolve(f)),t._devtoolHook?f.catch(function(l){throw t._devtoolHook.emit("vuex:error",l),l}):f})}function Ct(t,e,o,r){if(t._wrappedGetters[e]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+e);return}t._wrappedGetters[e]=function(s){return o(r.state,r.getters,s.state,s.getters)}}function St(t){t._vm.$watch(function(){return this._data.$$state},function(){process.env.NODE_ENV!=="production"&&E(t._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,sync:!0})}function H(t,e){return e.reduce(function(o,r){return o[r]},t)}function I(t,e,o){return et(t)&&t.type&&(o=e,e=t,t=t.type),process.env.NODE_ENV!=="production"&&E(typeof t=="string","expects string as the type, but found "+typeof t+"."),{type:t,payload:e,options:o}}function Nt(t){if(C&&t===C){process.env.NODE_ENV!=="production"&&console.error("[vuex] already installed. Vue.use(Vuex) should be called only once.");return}C=t,ht(C)}var at=ct(function(t,e){var o={};return process.env.NODE_ENV!=="production"&&!Q(e)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),lt(e).forEach(function(r){var i=r.key,s=r.val;s=t+s,o[i]=function(){if(!(t&&!ut(this.$store,"mapGetters",t))){if(process.env.NODE_ENV!=="production"&&!(s in this.$store.getters)){console.error("[vuex] unknown getter: "+s);return}return this.$store.getters[s]}},o[i].vuex=!0}),o}),wt=ct(function(t,e){var o={};return process.env.NODE_ENV!=="production"&&!Q(e)&&console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),lt(e).forEach(function(r){var i=r.key,s=r.val;o[i]=function(){for(var f=[],l=arguments.length;l--;)f[l]=arguments[l];var c=this.$store.dispatch;if(t){var d=ut(this.$store,"mapActions",t);if(!d)return;c=d.context.dispatch}return typeof s=="function"?s.apply(this,[c].concat(f)):c.apply(this.$store,[s].concat(f))}}),o});function lt(t){return Q(t)?Array.isArray(t)?t.map(function(e){return{key:e,val:e}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}}):[]}function Q(t){return Array.isArray(t)||et(t)}function ct(t){return function(e,o){return typeof e!="string"?(o=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),t(e,o)}}function ut(t,e,o){var r=t._modulesNamespaceMap[o];return process.env.NODE_ENV!=="production"&&!r&&console.error("[vuex] module namespace not found in "+e+"(): "+o),r}function M(t,e,o,r,i,s,a,f){var l=typeof t=="function"?t.options:t;e&&(l.render=e,l.staticRenderFns=o,l._compiled=!0),r&&(l.functional=!0),s&&(l._scopeId="data-v-"+s);var c;if(a?(c=function(g){g=g||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!g&&typeof __VUE_SSR_CONTEXT__<"u"&&(g=__VUE_SSR_CONTEXT__),i&&i.call(this,g),g&&g._registeredComponents&&g._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=f?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(n,m){return c.call(m),d(n,m)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:l}}function ft(t,e,o){let r=new Map;return t.forEach((s,a)=>{r.set(s.id,Et(s.operation.list))}),{rich:Object.fromEntries(r),formatter:s=>jt(s,t,e,o)}}function Et(t){let e={};return t.forEach(o=>{o.rules==="1"?Object.assign(e,{color:o.val?o.val:"#333"}):o.rules==="2"?Object.assign(e,{fontSize:o.val+"px"}):o.rules==="3"&&Object.assign(e,{fontWeight:o.val})}),e}function jt(t,e,o,r){const i=o.formatter?o.formatter:"",s=o.transKeyPrefix?r(o.transKeyPrefix,o.prefix):"";let a="";for(let l=0;l<e.length;l++){let c=[];e[l].condition.list.forEach(u=>{const g=q(u.val),n=o.bei===0?0:o.bei===100?g.l-2:g.l-3,m=F(Number(u.val)*o.bei,n);let h=kt({data:Object.assign({...u},{val:m}),val:t.data});c.push(h)}),Ft(c,e[l])&&a===""&&(a=e[l].id)}return a!==""?`{${a}|${s} ${N.formatterAmount(t.data)} ${i}}`:`${s} ${N.formatterAmount(t.data)} ${i}`}function kt(t){switch(t.data.rules){case"1":return Z(t);case"2":return Z(t);case"7":return K(t);case"8":return K(t);case"9":return K(t);case"10":return K(t)}}function Z({data:t,val:e}){if(e===""||e===void 0)return!1;let o=Number(e),r=Number(t.val);return t.rules==="1"?o===r:o!==r}function K({data:t,val:e}){if(e===""||e===void 0)return!1;let o=Y("inputnumber",{val:e}),r=Y("inputnumber",t);if(t.rules==="7")return o>r;if(t.rules==="8")return o>=r;if(t.rules==="9")return o<r;if(t.rules==="10")return o<=r}function Y(t="inputnumber",e){let o=0;return t==="inputnumber"?o=Number(e.val):o=new Date(String(e.val)).getTime(),o}function Ft(t,e){let o=e.condition.list.length;if(o===0)return!0;let r=o===0?"1":e.condition.list[o-1].type,i=Lt(t,r);return r==="2"&&!i?!0:!!(r!=="2"&&i)}function Lt(t,e){return e==="2"?t.every((o,r,i)=>!o):t.every((o,r,i)=>!!o)}function q(t){const e=String(t),o=e.substr(e.lastIndexOf(".")+1).toLowerCase();let r=1;for(let i=0;i<o.length;i++)r*=10;return{n:r,l:o.length}}function F(t,e){const o=10**e;return Math.round(t*o)/o}const Dt={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},ruleList:{type:Array,default:()=>[]}},data(){return{colorList:[],myChart:null}},methods:{init(t){let e=A.echarts.init(this.$refs.container),o=this.getOption(t);e.clear(),e.dispose(),e=A.echarts.init(this.$refs.container),e.setOption(o),e.on("click",r=>{this.$emit("change",r)}),this.myChart=e},getOption(t){this.colorList=[...this.color];let e=[],o=[],r=[],i=[];const s=t.series.filter(n=>n.type==="bar")[0];t.columns.forEach(n=>{e.push({type:"category",data:n.data,axisPointer:{type:s===void 0?"line":"shadow"},axisTick:{alignWithLabel:!1},axisLine:{onZero:!1,lineStyle:{color:this.options.labelLineColor}},axisLabel:{interval:0,rotate:n.rotate!==void 0?n.rotate:this.options.labelRotate,fontSize:n.fontSize!==void 0?n.fontSize:this.options.labelFontSize,color:n.color!==void 0?n.color:this.options.xAxisLabelColor},offset:n.offset,position:n.position})}),t.data.forEach((n,m)=>{this.$i18nt(n.item.transKey,n.item.name);let h={type:"value",axisLine:{show:!0,lineStyle:{color:this.options.labelLineColor}},axisLabel:{formatter:n.formatter?`{value} ${n.formatter}`:"{value}",color:this.options.labelFontColor}};n.max!==void 0&&Object.assign(h,{max:n.max}),n.min!==void 0&&Object.assign(h,{min:n.min}),t.data.length!==1&&Object.assign(h,{position:m===0?"left":"right",alignTicks:!0,show:m<2,axisLabel:{formatter:n.formatter?`{value} ${n.formatter}`:"{value}"}}),o.push(h)});const f=t.series.filter(n=>{const m=n.item.columnName?n.item.columnName:"",h=t.series[0].columnName?t.series[0].columnName:"";return m===h}).length===t.series.length;t.series.forEach((n,m)=>{let h=this.$i18nt(n.item.transKey,n.item.name);n.item.transkeyDict&&(h+=` (${this.$i18nt(n.item.transkeyDict,n.item.transkeyName)})`);let y={label:{show:n.tooltip?this.options.labelShow:n.tooltip,position:this.options.labelTextPosition,textStyle:{fontSize:this.options.textFontSize,color:this.options.textFontColor},formatter:_=>N.formatterAmount(_.data)},color:_=>t.type===1?this.colorList[_.dataIndex]:this.colorList[m]};this.ruleList.length>0&&(y=this.getNormal(y,n)),(t.data.length!==1||t.type===2)&&n.item.name&&i.push(h);let b={type:n.type,name:h,emphasis:{focus:this.options.emphasisFocus},data:n.data.map(_=>{if(n.bei===1)return F(_,this.options.numericalPrecision).toFixed(this.options.numericalPrecision);const O=q(_),L=n.bei===100?O.l-2:O.l-3,T=F(Number(_)*n.bei,L);return F(T,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)}),tooltip:{show:n.tooltip,valueFormatter:_=>{const O=n.formatter?n.formatter:"";return`${n.transKeyPrefix?this.$i18nt(n.transKeyPrefix,n.prefix):""} ${N.formatterAmount(_)} ${O}`}},itemStyle:t.data.length===1?{normal:y}:{normal:Object.assign({...y},{color:this.colorList[m]})}};const v=this.options.overlayStack?{stack:n.stack?n.stack:"Total"}:{};t.type===1&&Object.assign(b,{yAxisIndex:f||v.stack!==void 0?0:m}),n.type==="line"&&Object.assign(b,{smooth:this.options.smooth,showSymbol:this.options.showSymbol,lineStyle:{width:this.options.lineStyleWidth}}),r.push(Object.assign(b,v))});let l={containLabel:!0};this.options.gridPosition.forEach((n,m)=>{n!==""&&m===0?Object.assign(l,{top:n}):n!==""&&m===1?Object.assign(l,{right:n}):n!==""&&m===2?Object.assign(l,{bottom:n}):n!==""&&m===3&&Object.assign(l,{left:n})});let c={show:this.options.legendShow,data:i,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};if(this.options.legendPosition.forEach((n,m)=>{n!==""&&m===0?Object.assign(c,{top:n}):n!==""&&m===1?Object.assign(c,{right:n}):n!==""&&m===2?Object.assign(c,{bottom:n}):n!==""&&m===3&&Object.assign(c,{left:n})}),s===void 0&&this.options.areaStyleStack&&(e.forEach((n,m)=>{e[m]=Object.assign(n,{boundaryGap:!1})}),r.forEach((n,m)=>{r[m]=Object.assign(n,{areaStyle:{}})})),this.options.overlayStack&&this.options.numericalSummary&&this.options.labelTextPosition==="inside"){let n=[],m=[];const h=t.series[0].bei;for(let y=0;y<r[0].data.length;y++){let b=0;for(let v=0;v<r.length;v++)b+=Number(r[v].data[y]);if(m.push(0),h===1)n.push(F(b,this.options.numericalPrecision).toFixed(this.options.numericalPrecision));else{const v=q(b),_=h===100?v.l-2:v.l-3,O=F(Number(ite)*h,_);n.push(F(O,this.options.numericalPrecision).toFixed(this.options.numericalPrecision))}}r.push({name:"\u6C47\u603B",stack:r[0].stack,type:"bar",label:{normal:{show:!0,position:"top",formatter:function(y){return n[y.dataIndex]},textStyle:{color:"#333",fontSize:this.options.textFontSize}}},tooltip:{show:!1},data:m})}const d=Math.ceil(r[0].data.length/this.color.length);let u=[];for(let n=0;n<d;n++)u=u.concat(this.color);return this.colorList=u,{color:u,tooltip:{trigger:"axis",axisPointer:{type:s===void 0?"cross":"shadow"}},grid:l,legend:c,xAxis:e,yAxis:o,series:r}},getNormal(t,e){const o=`${e.columnName}&${e.mode}`,r=this.ruleList.filter(s=>`${s.columnName}&${s.mode}`===o)[0];if(!r)return t;let i=ft(r.ruleSequence,e,this.$i18nt);return Object.assign({...t},{label:Object.assign({...t.label},i)})}},destroyed(){this.myChart.dispose()}};var At=function(){var e=this,o=e._self._c;return o("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},Tt=[],Pt=M(Dt,At,Tt,!1,null,"f2f67492",null,null);const tt=Pt.exports;const Vt={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{myChart:null}},methods:{init(t){let e=A.echarts.init(this.$refs.container),o=this.getOption(t);e.clear(),e.dispose(),e=A.echarts.init(this.$refs.container),e.setOption(o),e.on("click",r=>{this.$emit("change",r)}),this.myChart=e},getOption(t){let e=0,o=t.data[0].dataName;o.forEach((s,a)=>{e+=Number(s.value),o[a].order=s.value}),o=[...N.sort(o)];let r={show:this.options.legendShow,data:t.columns[0].data,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((s,a)=>{s!==""&&a===0?Object.assign(r,{top:s}):s!==""&&a===1?Object.assign(r,{right:s}):s!==""&&a===2?Object.assign(r,{bottom:s}):s!==""&&a===3&&Object.assign(r,{left:s})}),{tooltip:{trigger:"item",formatter:function(s){return`${s.data.name}:\r\r${N.formatterAmount(s.data.values)}\r
|
|
6
6
|
(${s.data.percentage}%)`}},color:this.color,legend:r,series:[{type:"funnel",left:"10%",top:50,bottom:50,width:"76%",min:0,max:100,minSize:"10%",maxSize:"90%",sort:"descending",gap:1,label:{show:this.options.labelShow,fontSize:this.options.textFontSize,formatter:function(s){return`${s.data.name}:\r\r${N.formatterAmount(s.data.values)}\r
|
|
7
|
-
(${s.data.percentage}%)`}},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{fontSize:15}},data:o.map((s,a)=>{const f=s.value;return Object.assign({...s},{values:N.roundNumber(f,this.options.numericalPrecision).toFixed(this.options.numericalPrecision),percentage:e===0?"0":(Number(f)/e*1e4).toFixed(0)/100,value:(1/o.length*(a+1)*100).toFixed(0)})})}]}}},destroyed(){this.myChart.dispose()}};var Mt=function(){var e=this,o=e._self._c;return o("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},zt=[],Gt=M(Vt,Mt,zt,!1,null,"
|
|
8
|
-
(${f.percent}%)`},itemStyle:{borderRadius:2}})});let i={show:this.options.legendShow,type:"scroll",data:t.columns[0].data,textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((a,f)=>{a!==""&&f===0?Object.assign(i,{top:a}):a!==""&&f===1?Object.assign(i,{right:a}):a!==""&&f===2?Object.assign(i,{bottom:a}):a!==""&&f===3&&Object.assign(i,{left:a})}),{color:this.colorList,tooltip:{trigger:"item"},legend:i,series:r}}}};var Ht=function(){var e=this,o=e._self._c;return o("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},Qt=[],Xt=M(Bt,Ht,Qt,!1,null,"72bf5cb3",null,null);const Jt=Xt.exports;const Zt={props:{color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},componentItem:{type:Object,default:()=>({})},ruleList:{type:Array,default:()=>[]},bjstyle:{type:String,default:""}},data(){return{record:{},width:"80%",confirmLoading:!1,visible:!1,fullscreen:!1}},methods:{open(t){this.visible=!0,this.record={...t},this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.record),this.spinning=!1},0)})},toggleFullscreen(){this.fullscreen=!this.fullscreen,this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.record)},0)})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},closed(){this.fullscreen=!1,this.visible=!1}}};var Yt=function(){var e=this,o=e._self._c;return o("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1,"destroy-on-close":!0},on:{"update:visible":function(r){e.visible=r},closed:e.closed}},[o("gd-modal-title",{attrs:{slot:"title",title:"",fullscreen:e.fullscreen,buttons:[],confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent},slot:"title"}),o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form",style:e.bjstyle},[e.visible?o(e.componentItem,{ref:"componentItem",tag:"component",attrs:{color:e.color,options:e.options,ruleList:e.ruleList}}):e._e()],1)],1)},te=[],ee=M(Zt,Yt,te,!1,null,"920bc331",null,null);const oe=ee.exports;const re={name:"GdChartBi",props:{develop:{type:[Number,String],default:1},showTitle:{type:Boolean,default:!0},color:{type:Array,default:()=>[]},left:{type:[Number,String],default:10},bjstyle:{type:String,default:""}},data(){return{record:{},optionData:{},spinning:!0,type:"none",empty:!1,offsetCaudex:0}},components:{AmplifyEchart:oe},computed:{dictUnit(){const t=[{code:"percent",name:"%",transkey:"",remark:"0.01"},{code:"permil",name:"\u2030",transkey:"",remark:"0.001"}];return this.getDictionary("statistical_value_unit").map(o=>Object.assign(o,{transkey:`Dynamics.${o.transkey}`})).concat(t)},echartsMode(){return this.getDictionary("table_echarts_mode")},ruleList(){return(this.record.config&&this.record.config.series?this.record.config.series:[]).filter(e=>e.ruleOpen)},options(){let t=this.record.options||{};return Object.assign({...t},{labelTextPosition:t.labelTextPosition?t.labelTextPosition:"top",legendPosition:t.legendPosition?t.legendPosition:["","","",""],gridPosition:t.gridPosition?t.gridPosition:["60","4%","3%","3%"],overlayStack:t.overlayStack!==void 0?t.overlayStack:!1,areaStyleStack:t.areaStyleStack!==void 0?t.areaStyleStack:!1,legendShow:t.legendShow!==void 0?t.legendShow:!0,labelFontColor:t.labelFontColor?t.labelFontColor:"#333",textFontColor:t.textFontColor?t.textFontColor:"#333",textFontSize:t.textFontSize?t.textFontSize:14,legendOrient:t.legendOrient?t.legendOrient:"horizontal",legendTextColor:t.legendTextColor?t.legendTextColor:"#333",xAxisLabelColor:t.xAxisLabelColor?t.xAxisLabelColor:"#333",labelLineColor:t.labelLineColor?t.labelLineColor:"#333",emphasisFocus:t.emphasisFocus?t.emphasisFocus:"series",lineStyleWidth:t.lineStyleWidth!==void 0?t.lineStyleWidth:1,numericalPrecision:t.numericalPrecision!==void 0?t.numericalPrecision:2,numericalSummary:t.numericalSummary!==void 0?t.numericalSummary:!1})},componentItem(){const e=[{type:"bar",data:tt},{type:"pie",data:Jt},{type:"funnel",data:Kt},{type:"line",data:Ut}].filter(o=>o.type===this.type)[0];return e?e.data:tt},getColor(){let t=[];return(this.color.length===0?this.echartsColor:this.color).forEach(o=>{t.push(o==="0"?this.primaryColor:o)}),t},...at(["echartsColor","primaryColor","language"])},methods:{amplify(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.amplifyEchart.open(this.optionData)},0)})},setType(){this.spinning=!1,this.type="none"},change(t){this.$emit("change",{params:t,option:this.optionData,record:this.record})},assembly(){const t=this.optionData.data.filter(e=>e.type==="bar")[0];this.type=t?t.type:this.optionData.data[0].type,this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.optionData),this.spinning=!1},0)})},handleUniaxial({config:t,data:e,categorydata:o}){const r=t.series?t.series:[],i=t.categories?t.categories:[],s=t.stackList?t.stackList:[];if(r.length===0||i.length===0)return;const a=s[0]?s[0].uuid:"",f=a!==""?a:i[0].uuid,l=r.filter(h=>h.type==="1")[0];l?l.type:r[0].type;const c=s.filter(h=>h.dictTypeCode)[0],d=i.filter(h=>h.dictTypeCode)[0],u=a!==""?c:d,g=u?this.getDictionary(u.dictTypeCode):[];let n=[],m=[];if(r.forEach((h,y)=>{let b=[],v=[],_=[];e.forEach($=>{const w=$[f],S=$[h.uuid],x=this.getVal({item:a!==""?s[0]:i[0],ite:w,data:e,dict:g});b.push(S),v.push({value:S,name:x}),y===0&&_.push(x||this.$i18nt("gd.echarts.none","\u7A7A\u767D"))}),_.length>0&&n.push({data:_});let O={},L="";if(h.ruleOpen&&h.ruleFormatter.formatter&&h.ruleFormatter.formatter!=="none"){const $=this.dictUnit.filter(w=>w.code===h.ruleFormatter.formatter)[0];L=$?this.$i18nt(`Dynamics.${$.transkey}`,$.name):"",Object.assign(O,{formatter:L})}h.ruleOpen&&h.ruleFormatter.openPrefix&&h.ruleFormatter.transKeyPrefix&&Object.assign(O,{prefix:h.ruleFormatter.prefix,transKeyPrefix:h.ruleFormatter.transKeyPrefix});const T=this.getBei(h.ruleFormatter.formatter);h.ruleOpen&&h.ruleFormatter.min!==void 0&&h.ruleFormatter.min!==""&&Object.assign(O,{min:h.ruleFormatter.min*T}),h.ruleOpen&&h.ruleFormatter.max!==void 0&&h.ruleFormatter.max!==""&&Object.assign(O,{max:h.ruleFormatter.max*T});const p=this.echartsMode.filter($=>$.code==h.mode)[0];m.push(Object.assign({data:b,dataName:v,type:this.getChartType(h.type),item:Object.assign({...h},{transKey:`Dynamics.${h.transKey}`,transkeyDict:p?p.transkey:null,transkeyName:p?p.name:""}),bei:T,tooltip:!0,columnName:h.columnName,mode:h.mode},O))}),a!==""){let h=[];o[i[0].uuid].forEach(y=>{const b=d?this.getDictionary(d.dictTypeCode):[],v=this.getVal({item:i[0],ite:y,data:e,dict:b});h.push(v||this.$i18nt("gd.echarts.none","\u7A7A\u767D"))}),n[0]=Object.assign({...n[0]},{rotate:s[0].labelRotate,fontSize:s[0].labelFontSize,color:s[0].xAxisLabelColor,offset:s[0].offset,position:s[0].position}),n.push({data:h,offset:s[0].offsetCaudex,position:"bottom"})}this.optionData={columns:n,data:m,series:m,type:1},this.assembly()},handleMultiaxis({config:t,data:e,categorydata:o}){const r=t.series?t.series:[],i=t.categories?t.categories:[],s=t.stackList?t.stackList:[];if(r.length===0||i.length===0)return;let a=[],f=[],l=[],c=[],d={item:{transKey:r[0].transKey,name:r[0].name}};const u=this.ruleList[0];let g="";if(u&&u.ruleOpen&&u.ruleFormatter.formatter&&u.ruleFormatter.formatter!=="none"){const p=this.dictUnit.filter($=>$.code===u.ruleFormatter.formatter)[0];g=p?this.$i18nt(`Dynamics.${p.transkey}`,p.name):"",Object.assign(d,{formatter:g})}u&&u.ruleFormatter.openPrefix&&u.ruleFormatter.transKeyPrefix&&Object.assign(d,{prefix:u.ruleFormatter.prefix,transKeyPrefix:`Dynamics.${u.ruleFormatter.transKeyPrefix}`});let n={};const m=this.getBei(u&&u.ruleFormatter.formatter?u.ruleFormatter.formatter:"none");u&&u.ruleOpen&&u.ruleFormatter.min!==void 0&&u.ruleFormatter.min!==""&&Object.assign(n,{min:u.ruleFormatter.min*m}),u&&u.ruleOpen&&u.ruleFormatter.max!==void 0&&u.ruleFormatter.max!==""&&Object.assign(n,{max:u.ruleFormatter.max*m});const h=[Object.assign(d,n,{type:"bar"})];i.forEach((p,$)=>{const w=o[p.uuid]?o[p.uuid]:[],S=w.map(x=>{const D=p.dictTypeCode?this.getDictionary(p.dictTypeCode):[];return x?this.getVal({item:p,ite:x,data:e,dict:D}):this.$i18nt("gd.echarts.none","\u7A7A\u767D")});S.length>0&&l.push({data:w,mode:p.mode,effectType:p.effectType,dictTypeCode:p.dictTypeCode,uuid:p.uuid}),$===0&&a.push({data:S,offset:0,position:"bottom"})}),s.forEach((p,$)=>{const w=o[p.uuid]?o[p.uuid]:[];w.map(S=>{const x=p.dictTypeCode?this.getDictionary(p.dictTypeCode):[];return S?this.getVal({item:p,ite:S,data:e,dict:x}):this.$i18nt("gd.echarts.none","\u7A7A\u767D")}),c.push({data:w,mode:p.mode,effectType:p.effectType,dictTypeCode:p.dictTypeCode,uuid:p.uuid,offset:p.offset,offsetCaudex:p.offsetCaudex,labelRotate:p.labelRotate,labelFontSize:p.labelFontSize,xAxisLabelColor:p.xAxisLabelColor,position:p.position})});let y=[];const b=r[0].uuid,v=this.getChartType(r[0].type);if(e.forEach(p=>{const $=this.getDataName(p,i.concat(s),b);y.push($)}),l[1]===void 0){this.spinning=!1,this.develop===2&&this.$message.error(this.$i18nt("gd.msg.temPlate.dataError","\u6570\u636E\u9519\u8BEF"));return}for(let p=0;p<l[1].data.length;p++){let $=[],w=[];for(let x=0;x<l[0].data.length;x++){const D=l[0].data[x]+""+l[1].data[p],G=y.filter(dt=>dt.name===D)[0];w.push(D),$.push(G?G.val:0)}let S=l[1].data[p]===null||l[1].data[p]===""?{transKey:"gd.echarts.none",name:"\u7A7A\u767D"}:{transKey:null,name:l[1].data[p]+""};if(l[1].dictTypeCode){const D=this.getDictionary(l[1].dictTypeCode).filter(G=>G.code==l[1].data[p])[0];Object.assign(S,D?{transKey:D.transkey,name:D.name}:{})}else if(l[1].effectType==="datepicker"){const x=this.getVal({item:l[1],ite:l[1].data[p],data:e,dict:[]});Object.assign(S,x?{transKey:null,name:x}:{})}else if(["fk","user","about"].includes(l[1].effectType)){const x=this.getVal({item:l[1],ite:l[1].data[p],data:e,dict:[]});Object.assign(S,x?{transKey:null,name:x}:{})}f.push({data:$,dataName:[],type:v,item:S,tooltip:!0,ruleOpen:!0,columnName:r[0].columnName,mode:r[0].mode,bei:m,formatter:g,combination:w,prefix:d.prefix!==void 0?d.prefix:"",transKeyPrefix:d.transKeyPrefix!==void 0?d.transKeyPrefix:null})}if(this.options.overlayStack&&c.length>0){const p=this.multiaxisStack(f,y,c,e);f=p.columnsData,a[0].offset=p.offset,a.push(p.xAxis),a.reverse()}const _=f.filter(p=>p.item.transKey!=="gd.echarts.none"),O=f.filter(p=>p.item.transKey==="gd.echarts.none"),L=_.concat(O),T=this.options.overlayLineChart&&v==="bar"?L.map(p=>Object.assign({...p},{type:v==="bar"?"line":"bar",tooltip:!1,ruleOpen:!1,columnName:"",formatter:""})):[];this.optionData={columns:a,data:h,series:L.concat(T),type:2},this.assembly()},multiaxisStack(t,e,o,r){const i=o[0].data,s=o[0].dictTypeCode,a=s?this.getDictionary(s):[],f=o[0];let l=[],c=[];i.forEach(n=>{const m=this.getVal({item:o[0],ite:n,data:r,dict:a});l.push({name:m,id:n}),c.push(m)});let d=[];for(let n=0;n<t[0].data.length;n++)d=d.concat(c);let u=[];const g=N.uuid(8);for(let n=0;n<t.length;n++){let m=[],h=[];for(let y=0;y<t[n].combination.length;y++)for(let b=0;b<i.length;b++){h.push(t[n].combination[y]+i[b]);const v=t[n].combination[y]+i[b],_=e.filter(O=>O.name===v)[0];m.push(_?_.val:0)}u.push(Object.assign({...t[n]},{stack:g,data:m}))}return{columnsData:u,stackName:l,offset:f.offsetCaudex,xAxis:{data:d,rotate:f.labelRotate,fontSize:f.labelFontSize,color:f.xAxisLabelColor,offset:f.offset,position:f.position}}},init(t){if(this.record=t,t.data.length===0)return this.empty=!0,this.spinning=!1,!1;this.empty=!1,(t.config&&t.config.categories?t.config.categories:[]).length<=1?this.handleUniaxial(t):this.handleMultiaxis(t)},getBei(t){const e=this.dictUnit.filter(r=>r.code==t)[0],o=e&&e.remark?Number(e.remark):1;return isNaN(o)?1:1/o},getVal({item:t,ite:e,data:o,dict:r}){let i=e;const s=r.filter(a=>a.code==e)[0];if(t.dictTypeCode&&s)i=this.$i18nt(`Dynamics.${s.transkey}`,s.name);else if(t.effectType==="datepicker")i=this.getFormatTime(t.mode,e);else if(["fk","user","about"].includes(t.effectType)){const a=o.filter(f=>f[t.uuid]==e)[0];i=a&&a[`${t.uuid}_name`]?a[`${t.uuid}_name`]:i}return i},getDataName(t,e,o){let r="";return e.forEach(i=>{r+=String(t[i.uuid])}),{val:t[o],name:r}},getChartType(t){switch(t){case"1":return"bar";case"2":return"pie";case"3":return"funnel";case"4":return"line";default:return"bar"}},getDictionary(t){return this.$options.filters.dictData(t)},getFormatTime(t,e){if(["1","3","5"].includes(t)){const o=t==="5"?"yyyy":t==="3"?"yyyy-MM":"yyyy-MM-dd";return this.$options.filters.formatTime(e,o)}else if(t==="2"){const o=e.split("-"),r={year:o[0],week:o[1]},i=this.$i18nt("gd.echarts.yearWeek"),s=this.$i18nt("gd.echarts.weekMode");return this.language==="zh_CN"?`${r.year}${i}${r.week}${s}`:`${s} ${r.week} ${i} ${r.year}`}else if(t==="4"){const o=e.split("-"),r={year:o[0],quarter:o[1]},i=this.$i18nt("gd.echarts.yearQuarter"),s=this.$i18nt("gd.echarts.quarterMode");return this.language==="zh_CN"?`${r.year}${i}${r.quarter}${s}`:`${s}${r.quarter} ${i} ${r.year}`}}}};var ie=function(){var e=this,o=e._self._c;return o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.spinning,expression:"spinning"}],staticClass:"gd-echart"},[e.type==="none"||e.empty?o("div",{staticClass:"empty"},[o("i",{staticClass:"el-icon-receiving"}),o("div",{staticClass:"empty-err"},[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])]):o(e.componentItem,{ref:"componentItem",tag:"component",attrs:{develop:e.develop,color:e.getColor,options:e.options,ruleList:e.ruleList},on:{change:e.change}}),o("AmplifyEchart",{ref:"amplifyEchart",attrs:{color:e.getColor,options:e.options,ruleList:e.ruleList,componentItem:e.componentItem,bjstyle:e.bjstyle}})],1)},ne=[],se=M(re,ie,ne,!1,null,"6e14a233",null,null);const R=se.exports;R.install=function(t){t.component(R.name,R)};exports.GDpackage=R;exports.mapActions=wt;exports.mapGetters=at;exports.normalizeComponent=M;
|
|
7
|
+
(${s.data.percentage}%)`}},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{fontSize:15}},data:o.map((s,a)=>{const f=s.value;return Object.assign({...s},{values:N.roundNumber(f,this.options.numericalPrecision).toFixed(this.options.numericalPrecision),percentage:e===0?"0":(Number(f)/e*1e4).toFixed(0)/100,value:(1/o.length*(a+1)*100).toFixed(0)})})}]}}},destroyed(){this.myChart.dispose()}};var Mt=function(){var e=this,o=e._self._c;return o("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},zt=[],Gt=M(Vt,Mt,zt,!1,null,"c2d6a048",null,null);const Kt=Gt.exports;const Rt={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},ruleList:{type:Array,default:()=>[]}},data(){return{myChart:null}},methods:{init(t){let e=A.echarts.init(this.$refs.container),o=this.getOption(t);e.clear(),e.dispose(),e=A.echarts.init(this.$refs.container),e.setOption(o),e.on("click",r=>{this.$emit("change",r)}),this.myChart=e},getOption(t){let e=[],o=[],r=[],i=[];const s=this.options.areaStyleStack?{boundaryGap:!1}:{};t.columns.forEach(c=>{e.push(Object.assign({type:"category",data:c.data,axisPointer:{type:"line"},axisTick:{alignWithLabel:!0},axisLabel:{interval:0,rotate:this.options.labelRotate,fontSize:this.options.labelFontSize,color:this.options.xAxisLabelColor}},s))}),t.data.forEach((c,d)=>{let u={type:"value",axisLine:{show:!0,lineStyle:{color:this.options.labelLineColor}},axisLabel:{formatter:c.formatter?`{value} ${c.formatter}`:"{value}",color:this.options.labelFontColor}},g=this.$i18nt(c.item.transKey,c.item.name);t.data.length!==1&&(i.push(g),Object.assign(u,{name:g,position:d===0?"left":"right",alignTicks:!0,show:d<2})),o.push(u);let n=this.options.overlayStack?{stack:"Total"}:{};this.options.areaStyleStack&&Object.assign(n,{areaStyle:{}});let m={label:{show:this.options.labelShow,position:this.options.labelTextPosition,textStyle:{fontSize:this.options.textFontSize,color:this.options.textFontColor},formatter:h=>N.formatterAmount(h.data)}};this.ruleList.length>0&&(m=this.getNormal(m,c)),r.push(Object.assign({emphasis:{focus:this.options.emphasisFocus},type:c.type,name:g,data:c.data.map(h=>{if(c.bei===1)return F(h,this.options.numericalPrecision).toFixed(this.options.numericalPrecision);const y=q(h),b=c.bei===100?y.l-2:y.l-3,v=F(Number(h)*c.bei,b);return F(v,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)}),smooth:this.options.smooth,showSymbol:this.options.showSymbol,lineStyle:{width:this.options.lineStyleWidth},itemStyle:{normal:m},tooltip:{show:c.tooltip,valueFormatter:h=>{const y=c.formatter?c.formatter:"";return`${c.transKeyPrefix?this.$i18nt(c.transKeyPrefix,c.prefix):""} ${N.formatterAmount(h)} ${y}`}}},n))});let a={containLabel:!0};this.options.gridPosition.forEach((c,d)=>{c!==""&&d===0?Object.assign(a,{top:c}):c!==""&&d===1?Object.assign(a,{right:c}):c!==""&&d===2?Object.assign(a,{bottom:c}):c!==""&&d===3&&Object.assign(a,{left:c})});let f={show:this.options.legendShow,data:i,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((c,d)=>{c!==""&&d===0?Object.assign(f,{top:c}):c!==""&&d===1?Object.assign(f,{right:c}):c!==""&&d===2?Object.assign(f,{bottom:c}):c!==""&&d===3&&Object.assign(f,{left:c})}),{color:this.color,tooltip:{trigger:"axis",axisPointer:{type:"cross"}},grid:a,legend:f,xAxis:e,yAxis:o,series:r}},getNormal(t,e){const o=`${e.columnName}&${e.mode}`,r=this.ruleList.filter(s=>`${s.columnName}&${s.mode}`===o)[0];if(!r)return t;let i=ft(r.ruleSequence,e,this.$i18nt);return Object.assign({...t},{label:Object.assign({...t.label},i)})}},destroyed(){this.myChart.dispose()}};var It=function(){var e=this,o=e._self._c;return o("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},qt=[],Wt=M(Rt,It,qt,!1,null,"4f3553d4",null,null);const Ut=Wt.exports;const Bt={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{colorList:[],myChart:null}},methods:{init(t){let e=A.echarts.init(this.$refs.container),o=this.getOption(t);e.clear(),e.dispose(),e=A.echarts.init(this.$refs.container),e.setOption(o),e.on("click",r=>{this.$emit("change",r)}),this.myChart=e},getOption(t){const e=Math.ceil(t.data.length/this.color.length);let o=[];for(let a=0;a<e;a++)o=o.concat(this.color);this.colorList=o;let r=[];t.data.forEach(a=>{r.push({type:"pie",radius:["30%","58%"],center:["50%","50%"],data:a.dataName.map(f=>Object.assign({...f},{value:N.roundNumber(f.value,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)})),label:{show:this.options.labelShow,position:this.options.labelTextPosition==="inside"?"inside":"outside",textStyle:{fontWeight:500,color:this.options.textFontColor,fontSize:this.options.textFontSize,lineHeight:20},formatter:f=>`${f.name}:\r\r${N.formatterAmount(f.value)}\r
|
|
8
|
+
(${f.percent}%)`},itemStyle:{borderRadius:2}})});let i={show:this.options.legendShow,type:"scroll",data:t.columns[0].data,textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((a,f)=>{a!==""&&f===0?Object.assign(i,{top:a}):a!==""&&f===1?Object.assign(i,{right:a}):a!==""&&f===2?Object.assign(i,{bottom:a}):a!==""&&f===3&&Object.assign(i,{left:a})}),{color:this.colorList,tooltip:{trigger:"item"},legend:i,series:r}}}};var Ht=function(){var e=this,o=e._self._c;return o("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},Qt=[],Xt=M(Bt,Ht,Qt,!1,null,"58c796ca",null,null);const Jt=Xt.exports;const Zt={props:{color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},componentItem:{type:Object,default:()=>({})},ruleList:{type:Array,default:()=>[]},bjstyle:{type:String,default:""}},data(){return{record:{},width:"80%",confirmLoading:!1,visible:!1,fullscreen:!1}},methods:{open(t){this.visible=!0,this.record={...t},this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.record),this.spinning=!1},0)})},toggleFullscreen(){this.fullscreen=!this.fullscreen,this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.record)},0)})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},closed(){this.fullscreen=!1,this.visible=!1}}};var Yt=function(){var e=this,o=e._self._c;return o("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1,"destroy-on-close":!0},on:{"update:visible":function(r){e.visible=r},closed:e.closed}},[o("gd-modal-title",{attrs:{slot:"title",title:"",fullscreen:e.fullscreen,buttons:[],confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent},slot:"title"}),o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form",style:e.bjstyle},[e.visible?o(e.componentItem,{ref:"componentItem",tag:"component",attrs:{color:e.color,options:e.options,ruleList:e.ruleList}}):e._e()],1)],1)},te=[],ee=M(Zt,Yt,te,!1,null,"920bc331",null,null);const oe=ee.exports;const re={name:"GdChartBi",props:{develop:{type:[Number,String],default:1},showTitle:{type:Boolean,default:!0},color:{type:Array,default:()=>[]},left:{type:[Number,String],default:10},bjstyle:{type:String,default:""}},data(){return{record:{},optionData:{},spinning:!0,type:"none",empty:!1,offsetCaudex:0}},components:{AmplifyEchart:oe},computed:{dictUnit(){const t=[{code:"percent",name:"%",transkey:"",remark:"0.01"},{code:"permil",name:"\u2030",transkey:"",remark:"0.001"}];return this.getDictionary("statistical_value_unit").map(o=>Object.assign(o,{transkey:`Dynamics.${o.transkey}`})).concat(t)},echartsMode(){return this.getDictionary("table_echarts_mode")},ruleList(){return(this.record.config&&this.record.config.series?this.record.config.series:[]).filter(e=>e.ruleOpen)},options(){let t=this.record.options||{};return Object.assign({...t},{labelTextPosition:t.labelTextPosition?t.labelTextPosition:"top",legendPosition:t.legendPosition?t.legendPosition:["","","",""],gridPosition:t.gridPosition?t.gridPosition:["60","4%","3%","3%"],overlayStack:t.overlayStack!==void 0?t.overlayStack:!1,areaStyleStack:t.areaStyleStack!==void 0?t.areaStyleStack:!1,legendShow:t.legendShow!==void 0?t.legendShow:!0,labelFontColor:t.labelFontColor?t.labelFontColor:"#333",textFontColor:t.textFontColor?t.textFontColor:"#333",textFontSize:t.textFontSize?t.textFontSize:14,legendOrient:t.legendOrient?t.legendOrient:"horizontal",legendTextColor:t.legendTextColor?t.legendTextColor:"#333",xAxisLabelColor:t.xAxisLabelColor?t.xAxisLabelColor:"#333",labelLineColor:t.labelLineColor?t.labelLineColor:"#333",emphasisFocus:t.emphasisFocus?t.emphasisFocus:"series",lineStyleWidth:t.lineStyleWidth!==void 0?t.lineStyleWidth:1,numericalPrecision:t.numericalPrecision!==void 0?t.numericalPrecision:2,numericalSummary:t.numericalSummary!==void 0?t.numericalSummary:!1})},componentItem(){const e=[{type:"bar",data:tt},{type:"pie",data:Jt},{type:"funnel",data:Kt},{type:"line",data:Ut}].filter(o=>o.type===this.type)[0];return e?e.data:tt},getColor(){let t=[];return(this.color.length===0?this.echartsColor:this.color).forEach(o=>{t.push(o==="0"?this.primaryColor:o)}),t},...at(["echartsColor","primaryColor","language"])},methods:{amplify(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.amplifyEchart.open(this.optionData)},0)})},setType(){this.spinning=!1,this.type="none"},change(t){this.$emit("change",{params:t,option:this.optionData,record:this.record})},assembly(){const t=this.optionData.data.filter(e=>e.type==="bar")[0];this.type=t?t.type:this.optionData.data[0].type,this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.optionData),this.spinning=!1},0)})},handleUniaxial({config:t,data:e,categorydata:o}){const r=t.series?t.series:[],i=t.categories?t.categories:[],s=t.stackList?t.stackList:[];if(r.length===0||i.length===0)return;const a=s[0]?s[0].uuid:"",f=a!==""?a:i[0].uuid,l=r.filter(h=>h.type==="1")[0];l?l.type:r[0].type;const c=s.filter(h=>h.dictTypeCode)[0],d=i.filter(h=>h.dictTypeCode)[0],u=a!==""?c:d,g=u?this.getDictionary(u.dictTypeCode):[];let n=[],m=[];if(r.forEach((h,y)=>{let b=[],v=[],_=[];e.forEach($=>{const w=$[f],S=$[h.uuid],x=this.getVal({item:a!==""?s[0]:i[0],ite:w,data:e,dict:g});b.push(S),v.push({value:S,name:x}),y===0&&_.push(x||this.$i18nt("gd.echarts.none","\u7A7A\u767D"))}),_.length>0&&n.push({data:_});let O={},L="";if(h.ruleOpen&&h.ruleFormatter.formatter&&h.ruleFormatter.formatter!=="none"){const $=this.dictUnit.filter(w=>w.code===h.ruleFormatter.formatter)[0];L=$?this.$i18nt(`Dynamics.${$.transkey}`,$.name):"",Object.assign(O,{formatter:L})}h.ruleOpen&&h.ruleFormatter.openPrefix&&h.ruleFormatter.transKeyPrefix&&Object.assign(O,{prefix:h.ruleFormatter.prefix,transKeyPrefix:h.ruleFormatter.transKeyPrefix});const T=this.getBei(h.ruleFormatter.formatter);h.ruleOpen&&h.ruleFormatter.min!==void 0&&h.ruleFormatter.min!==""&&Object.assign(O,{min:h.ruleFormatter.min*T}),h.ruleOpen&&h.ruleFormatter.max!==void 0&&h.ruleFormatter.max!==""&&Object.assign(O,{max:h.ruleFormatter.max*T});const p=this.echartsMode.filter($=>$.code==h.mode)[0];m.push(Object.assign({data:b,dataName:v,type:this.getChartType(h.type),item:Object.assign({...h},{transKey:`Dynamics.${h.transKey}`,transkeyDict:p?p.transkey:null,transkeyName:p?p.name:""}),bei:T,tooltip:!0,columnName:h.columnName,mode:h.mode},O))}),a!==""){let h=[];o[i[0].uuid].forEach(y=>{const b=d?this.getDictionary(d.dictTypeCode):[],v=this.getVal({item:i[0],ite:y,data:e,dict:b});h.push(v||this.$i18nt("gd.echarts.none","\u7A7A\u767D"))}),n[0]=Object.assign({...n[0]},{rotate:s[0].labelRotate,fontSize:s[0].labelFontSize,color:s[0].xAxisLabelColor,offset:s[0].offset,position:s[0].position}),n.push({data:h,offset:s[0].offsetCaudex,position:"bottom"})}this.optionData={columns:n,data:m,series:m,type:1},this.assembly()},handleMultiaxis({config:t,data:e,categorydata:o}){const r=t.series?t.series:[],i=t.categories?t.categories:[],s=t.stackList?t.stackList:[];if(r.length===0||i.length===0)return;let a=[],f=[],l=[],c=[],d={item:{transKey:r[0].transKey,name:r[0].name}};const u=this.ruleList[0];let g="";if(u&&u.ruleOpen&&u.ruleFormatter.formatter&&u.ruleFormatter.formatter!=="none"){const p=this.dictUnit.filter($=>$.code===u.ruleFormatter.formatter)[0];g=p?this.$i18nt(`Dynamics.${p.transkey}`,p.name):"",Object.assign(d,{formatter:g})}u&&u.ruleFormatter.openPrefix&&u.ruleFormatter.transKeyPrefix&&Object.assign(d,{prefix:u.ruleFormatter.prefix,transKeyPrefix:`Dynamics.${u.ruleFormatter.transKeyPrefix}`});let n={};const m=this.getBei(u&&u.ruleFormatter.formatter?u.ruleFormatter.formatter:"none");u&&u.ruleOpen&&u.ruleFormatter.min!==void 0&&u.ruleFormatter.min!==""&&Object.assign(n,{min:u.ruleFormatter.min*m}),u&&u.ruleOpen&&u.ruleFormatter.max!==void 0&&u.ruleFormatter.max!==""&&Object.assign(n,{max:u.ruleFormatter.max*m});const h=[Object.assign(d,n,{type:"bar"})];i.forEach((p,$)=>{const w=o[p.uuid]?o[p.uuid]:[],S=w.map(x=>{const D=p.dictTypeCode?this.getDictionary(p.dictTypeCode):[];return x?this.getVal({item:p,ite:x,data:e,dict:D}):this.$i18nt("gd.echarts.none","\u7A7A\u767D")});S.length>0&&l.push({data:w,mode:p.mode,effectType:p.effectType,dictTypeCode:p.dictTypeCode,uuid:p.uuid}),$===0&&a.push({data:S,offset:0,position:"bottom"})}),s.forEach((p,$)=>{const w=o[p.uuid]?o[p.uuid]:[];w.map(S=>{const x=p.dictTypeCode?this.getDictionary(p.dictTypeCode):[];return S?this.getVal({item:p,ite:S,data:e,dict:x}):this.$i18nt("gd.echarts.none","\u7A7A\u767D")}),c.push({data:w,mode:p.mode,effectType:p.effectType,dictTypeCode:p.dictTypeCode,uuid:p.uuid,offset:p.offset,offsetCaudex:p.offsetCaudex,labelRotate:p.labelRotate,labelFontSize:p.labelFontSize,xAxisLabelColor:p.xAxisLabelColor,position:p.position})});let y=[];const b=r[0].uuid,v=this.getChartType(r[0].type);if(e.forEach(p=>{const $=this.getDataName(p,i.concat(s),b);y.push($)}),l[1]===void 0){this.spinning=!1,this.develop===2&&this.$message.error(this.$i18nt("gd.msg.temPlate.dataError","\u6570\u636E\u9519\u8BEF"));return}for(let p=0;p<l[1].data.length;p++){let $=[],w=[];for(let x=0;x<l[0].data.length;x++){const D=l[0].data[x]+""+l[1].data[p],G=y.filter(dt=>dt.name===D)[0];w.push(D),$.push(G?G.val:0)}let S=l[1].data[p]===null||l[1].data[p]===""?{transKey:"gd.echarts.none",name:"\u7A7A\u767D"}:{transKey:null,name:l[1].data[p]+""};if(l[1].dictTypeCode){const D=this.getDictionary(l[1].dictTypeCode).filter(G=>G.code==l[1].data[p])[0];Object.assign(S,D?{transKey:D.transkey,name:D.name}:{})}else if(l[1].effectType==="datepicker"){const x=this.getVal({item:l[1],ite:l[1].data[p],data:e,dict:[]});Object.assign(S,x?{transKey:null,name:x}:{})}else if(["fk","user","about"].includes(l[1].effectType)){const x=this.getVal({item:l[1],ite:l[1].data[p],data:e,dict:[]});Object.assign(S,x?{transKey:null,name:x}:{})}f.push({data:$,dataName:[],type:v,item:S,tooltip:!0,ruleOpen:!0,columnName:r[0].columnName,mode:r[0].mode,bei:m,formatter:g,combination:w,prefix:d.prefix!==void 0?d.prefix:"",transKeyPrefix:d.transKeyPrefix!==void 0?d.transKeyPrefix:null})}if(this.options.overlayStack&&c.length>0){const p=this.multiaxisStack(f,y,c,e);f=p.columnsData,a[0].offset=p.offset,a.push(p.xAxis),a.reverse()}const _=f.filter(p=>p.item.transKey!=="gd.echarts.none"),O=f.filter(p=>p.item.transKey==="gd.echarts.none"),L=_.concat(O),T=this.options.overlayLineChart&&v==="bar"?L.map(p=>Object.assign({...p},{type:v==="bar"?"line":"bar",tooltip:!1,ruleOpen:!1,columnName:"",formatter:""})):[];this.optionData={columns:a,data:h,series:L.concat(T),type:2},this.assembly()},multiaxisStack(t,e,o,r){const i=o[0].data,s=o[0].dictTypeCode,a=s?this.getDictionary(s):[],f=o[0];let l=[],c=[];i.forEach(n=>{const m=this.getVal({item:o[0],ite:n,data:r,dict:a});l.push({name:m,id:n}),c.push(m)});let d=[];for(let n=0;n<t[0].data.length;n++)d=d.concat(c);let u=[];const g=N.uuid(8);for(let n=0;n<t.length;n++){let m=[],h=[];for(let y=0;y<t[n].combination.length;y++)for(let b=0;b<i.length;b++){h.push(t[n].combination[y]+i[b]);const v=t[n].combination[y]+i[b],_=e.filter(O=>O.name===v)[0];m.push(_?_.val:0)}u.push(Object.assign({...t[n]},{stack:g,data:m}))}return{columnsData:u,stackName:l,offset:f.offsetCaudex,xAxis:{data:d,rotate:f.labelRotate,fontSize:f.labelFontSize,color:f.xAxisLabelColor,offset:f.offset,position:f.position}}},init(t){if(this.record=t,t.data.length===0)return this.empty=!0,this.spinning=!1,!1;this.empty=!1,(t.config&&t.config.categories?t.config.categories:[]).length<=1?this.handleUniaxial(t):this.handleMultiaxis(t)},getBei(t){const e=this.dictUnit.filter(r=>r.code==t)[0],o=e&&e.remark?Number(e.remark):1;return isNaN(o)?1:1/o},getVal({item:t,ite:e,data:o,dict:r}){let i=e;const s=r.filter(a=>a.code==e)[0];if(t.dictTypeCode&&s)i=this.$i18nt(`Dynamics.${s.transkey}`,s.name);else if(t.effectType==="datepicker")i=this.getFormatTime(t.mode,e);else if(["fk","user","about"].includes(t.effectType)){const a=o.filter(f=>f[t.uuid]==e)[0];i=a&&a[`${t.uuid}_name`]?a[`${t.uuid}_name`]:i}return i},getDataName(t,e,o){let r="";return e.forEach(i=>{r+=String(t[i.uuid])}),{val:t[o],name:r}},getChartType(t){switch(t){case"1":return"bar";case"2":return"pie";case"3":return"funnel";case"4":return"line";default:return"bar"}},getDictionary(t){return this.$options.filters.dictData(t)},getFormatTime(t,e){if(["1","3","5"].includes(t)){const o=t==="5"?"yyyy":t==="3"?"yyyy-MM":"yyyy-MM-dd";return this.$options.filters.formatTime(e,o)}else if(t==="2"){const o=e.split("-"),r={year:o[0],week:o[1]},i=this.$i18nt("gd.echarts.yearWeek"),s=this.$i18nt("gd.echarts.weekMode");return this.language==="zh_CN"?`${r.year}${i}${r.week}${s}`:`${s} ${r.week} ${i} ${r.year}`}else if(t==="4"){const o=e.split("-"),r={year:o[0],quarter:o[1]},i=this.$i18nt("gd.echarts.yearQuarter"),s=this.$i18nt("gd.echarts.quarterMode");return this.language==="zh_CN"?`${r.year}${i}${r.quarter}${s}`:`${s}${r.quarter} ${i} ${r.year}`}}}};var ie=function(){var e=this,o=e._self._c;return o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.spinning,expression:"spinning"}],staticClass:"gd-echart"},[e.type==="none"||e.empty?o("div",{staticClass:"empty"},[o("i",{staticClass:"el-icon-receiving"}),o("div",{staticClass:"empty-err"},[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])]):o(e.componentItem,{ref:"componentItem",tag:"component",attrs:{develop:e.develop,color:e.getColor,options:e.options,ruleList:e.ruleList},on:{change:e.change}}),o("AmplifyEchart",{ref:"amplifyEchart",attrs:{color:e.getColor,options:e.options,ruleList:e.ruleList,componentItem:e.componentItem,bjstyle:e.bjstyle}})],1)},ne=[],se=M(re,ie,ne,!1,null,"07a37139",null,null);const R=se.exports;R.install=function(t){t.component(R.name,R)};exports.GDpackage=R;exports.mapActions=wt;exports.mapGetters=at;exports.normalizeComponent=M;
|
|
@@ -903,7 +903,7 @@ var At = function() {
|
|
|
903
903
|
Vt,
|
|
904
904
|
!1,
|
|
905
905
|
null,
|
|
906
|
-
"
|
|
906
|
+
"f2f67492",
|
|
907
907
|
null,
|
|
908
908
|
null
|
|
909
909
|
);
|
|
@@ -1027,7 +1027,7 @@ var Gt = function() {
|
|
|
1027
1027
|
Kt,
|
|
1028
1028
|
!1,
|
|
1029
1029
|
null,
|
|
1030
|
-
"
|
|
1030
|
+
"c2d6a048",
|
|
1031
1031
|
null,
|
|
1032
1032
|
null
|
|
1033
1033
|
);
|
|
@@ -1302,7 +1302,7 @@ var Xt = function() {
|
|
|
1302
1302
|
Jt,
|
|
1303
1303
|
!1,
|
|
1304
1304
|
null,
|
|
1305
|
-
"
|
|
1305
|
+
"58c796ca",
|
|
1306
1306
|
null,
|
|
1307
1307
|
null
|
|
1308
1308
|
);
|
|
@@ -1797,7 +1797,7 @@ var se = function() {
|
|
|
1797
1797
|
ae,
|
|
1798
1798
|
!1,
|
|
1799
1799
|
null,
|
|
1800
|
-
"
|
|
1800
|
+
"07a37139",
|
|
1801
1801
|
null,
|
|
1802
1802
|
null
|
|
1803
1803
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const yt=require("./components.chartbi.
|
|
1
|
+
"use strict";const yt=require("./components.chartbi.13a8a7b5.js"),be=require("./utils.util.js.c0ba699b.js");/**!
|
|
2
2
|
* Sortable 1.15.6
|
|
3
3
|
* @author RubaXa <trash@rubaxa.org>
|
|
4
4
|
* @author owenm <owen23355@gmail.com>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./components.chartbi.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./components.chartbi.13a8a7b5.js"),n=require("./http.main.2f8a6936.js");require("./utils.echarts.js.461a74e7.js");require("./utils.util.js.c0ba699b.js");const d={name:"GdDataAssign",props:{tableData:{type:Object,default:()=>({})}},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:[],visible:!1,confirmLoading:!1,fullscreen:!1,width:"600px",fkEntityName:"sys_user",loading:!1,serviceData:[],ruleFormData:{ownerId:""},rules:{ownerId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]}}},computed:{message(){return`${this.$i18nt("gd.https.assignMsgl","\u60A8\u5DF2\u9009\u62E9")} ${this.record.length} ${this.$i18nt("gd.https.assignMsgr","\u6761\u6570\u636E\uFF0C\u8981\u5C06\u5B83\u5206\u6D3E\u7ED9\u8C01?")}`},title(){return`${this.$i18nt("gd.https.assign","\u5206\u6D3E")} (${this.$i18nt(`Dynamics.${this.tableData.transkey}`,this.tableData.busname)})`},...o.mapGetters(["screenHeight","tableLists","userInfo"])},methods:{handleSubmit(){this.confirmLoading=!0,this.$refs.ruleForm.validate(a=>{if(a){const e={tableId:this.tableData.id,ids:this.record.join(","),ownerId:this.ruleFormData.ownerId};n.baseAssign(e).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed(),this.$emit("ok",e)):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message),this.confirmLoading=!1})}else this.confirmLoading=!1})},lookup(){this.$refs.viewSearch.open({fkEntityName:this.fkEntityName,effectType:"fk",val:this.ruleFormData.ownerId})},lookupSeled(a){this.serviceData=[...a.fkData],this.ruleFormData.ownerId=a.data[0]?a.data[0]:""},open(a){this.confirmLoading=!0,this.record=[...a],this.visible=!0,this.searchData("").then(e=>{this.serviceData.filter(s=>s.id===this.userInfo.id)[0]||(this.serviceData=[{name:this.userInfo.name,id:this.userInfo.id}].concat(this.serviceData)),this.ruleFormData.ownerId=this.userInfo.id,this.confirmLoading=!1})},searchData(a){this.loading=!0;const e=this.serviceData.filter(s=>this.ruleFormData.ownerId===s.id);this.serviceData=[];let t={name:a,fkEntityName:this.fkEntityName};return n.baseFkList(t).then(s=>{if(this.loading=!1,s.code===200){const l=s.data.filter(r=>{const c=r.statecodes===void 0?1:r.statecodes;return this.ruleFormData.ownerId!==r.id&&c===1});this.serviceData=e.concat(l)}return s.data})},closed(){this.fullscreen=!1,this.visible=!1,this.show=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(a){const e=a.item.functionName;this[e]&&this[e]()}}};var u=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,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(s){e.visible=s},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.title,fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[t("el-alert",{attrs:{title:e.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),type:"warning",description:e.message,"show-icon":"",closable:!1}}),t("el-form",{ref:"ruleForm",staticStyle:{margin:"12px 12px 0 0"},attrs:{"label-width":"130px",model:e.ruleFormData,rules:e.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.https.assignedTo","\u5206\u6D3E\u5BF9\u8C61"),prop:"ownerId"}},[t("div",{staticClass:"cao_about"},[t("el-select",{staticClass:"cao_input",attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:e.loading,"reserve-keyword":"",filterable:"",remote:"",clearable:"","remote-method":e.searchData,"collapse-tags":!0},model:{value:e.ruleFormData.ownerId,callback:function(s){e.$set(e.ruleFormData,"ownerId",s)},expression:"ruleFormData.ownerId"}},e._l(e.serviceData,function(s){return t("el-option",{key:s.id,attrs:{label:s.name,value:s.id}})}),1),t("div",{staticClass:"cao_setting",on:{click:e.lookup}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1)])],1)],1)],2),t("gd-search",{ref:"viewSearch",on:{lookupSeled:e.lookupSeled}})],1)},h=[],f=o.normalizeComponent(d,u,h,!1,null,"85864215",null,null);const i=f.exports;i.install=function(a){a.component(i.name,i)};exports.default=i;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as l, n as c } from "./components.chartbi.
|
|
1
|
+
import { m as l, n as c } from "./components.chartbi.7356b244.mjs";
|
|
2
2
|
import { b as d, a as u } from "./http.main.aefea27d.mjs";
|
|
3
3
|
import "./utils.echarts.js.d1bb8ac6.mjs";
|
|
4
4
|
import "./utils.util.js.333daba2.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as y, n as m } from "./components.chartbi.
|
|
1
|
+
import { m as y, n as m } from "./components.chartbi.7356b244.mjs";
|
|
2
2
|
import { c as $ } from "./http.main.aefea27d.mjs";
|
|
3
3
|
import { e as h } from "./utils.echarts.js.d1bb8ac6.mjs";
|
|
4
4
|
import { f, s as _ } from "./utils.util.js.333daba2.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const m=require("./components.chartbi.3bbac955.js"),y=require("./http.main.2f8a6936.js"),h=require("./utils.echarts.js.461a74e7.js"),f=require("./utils.util.js.c0ba699b.js");const _={name:"GdEcharts",props:{loadData:{type:Array,default:()=>[]},develop:{type:[Number,String],default:1},showTitle:{type:Boolean,default:!0},color:{type:Array,default:()=>[]},left:{type:[Number,String],default:10}},components:{ColumnarChart:()=>Promise.resolve().then(()=>T),FunnelChart:()=>Promise.resolve().then(()=>j),LineChart:()=>Promise.resolve().then(()=>L),PieChart:()=>Promise.resolve().then(()=>q),AmplifyEchart:()=>Promise.resolve().then(()=>X)},data(){return{type:"0",detail:{},dataSource:[],spinning:!1}},computed:{getColor(){let e=[];return(this.color.length===0?this.echartsColor:this.color).forEach(a=>{e.push(a==="0"?this.primaryColor:a)}),e},...m.mapGetters(["echartsColor","primaryColor"])},methods:{amplify(){this.$refs.amplifyEchart.open(this.detail)},change(e){this.$emit("change",e)},setType(){this.type="0"},open(e){this.spinning=!0,this.detail={...e},this.type=e.type,this.dataSource=[...e.data],this.assembly()},init(e){this.spinning=!0,this.detail={...e},this.type=e.type,y.basePage({pageNo:1,pageSize:100,tableId:e.tableId,viewId:e.viewId}).then(t=>{t.success?(this.dataSource=t.data.rows.filter(a=>a.id!==null),this.assembly()):this.spinning=!1})},assembly(){let e={};this.detail.mode==1?e=this.getTotals():this.detail.mode==2?e=this.getGentles():this.detail.mode==3?e=this.getAverage():this.detail.mode==4?e=this.getMaximum():this.detail.mode==5&&(e=this.getMinimum());let t={name:this.$i18nt(`Dynamics.${this.detail.transKey}`,this.detail.name),count:this.dataSource.length,columns:e.columns,data:e.data},a="columnarChart";this.detail.type==2?a="pieChart":this.detail.type==3?a="funnelChart":this.detail.type==4&&(a="lineChart"),this.$nextTick(()=>{setTimeout(()=>{this.$refs[a].init(t),this.spinning=!1},0)})},getTotals(){let e=[],t=[],a=[];(this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser()).forEach(i=>{let n=0;this.dataSource.forEach(s=>{s[this.detail.list[0].dataIndex]==i.code&&(n+=1)}),e.push({value:n,name:this.$i18nt(`Dynamics.${i.transkey}`,i.name)}),t.push(this.$i18nt(`Dynamics.${i.transkey}`,i.name)),a.push(String(i.code))});let o=this.dataSource.filter(i=>!a.includes(String(i[this.detail.list[0].dataIndex])));if(o.length>0){let i=0;o.forEach(n=>{i+=1}),e=[{value:i,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(e),t=[`${this.$i18nt("gd.echarts.none"),"\u7A7A\u767D"}`].concat(t)}return{data:e,columns:t}},getGentles(){let e=[],t=[],a=2;if(this.detail.columnName&&this.detail.list.length===1){let l=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),o=[],i=this.loadData.filter(s=>s.columnname==this.detail.columnName)[0];a=i===void 0?a:i.filedsize!==null?i.filedsize:a,l.forEach(s=>{let r=0;this.dataSource.forEach(c=>{if(c[this.detail.list[0].dataIndex]==s.code){let d=c[this.detail.columnName]!==null?c[this.detail.columnName]:0;r+=i.dicttypecode?this.getDictionaryData(i.dicttypecode,c[this.detail.columnName]):d}}),e.push({value:r.toString().length>a?Number(r.toFixed(a)):r,name:this.$i18nt(`Dynamics.${s.transkey}`,s.name)}),t.push(this.$i18nt(`Dynamics.${s.transkey}`,s.name)),o.push(String(s.code))});let n=this.dataSource.filter(s=>!o.includes(String(s[this.detail.list[0].dataIndex])));if(n.length>0){let s=0;n.forEach(r=>{let c=r[this.detail.columnName]!==null?r[this.detail.columnName]:0;s+=i.dicttypecode?this.getDictionaryData(i.dicttypecode,r[this.detail.columnName]):c}),e=[{value:s,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(e),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(l=>{let o=0,i=this.loadData.filter(n=>n.columnname==l.dataIndex)[0];a=i===void 0?a:i.filedsize!==null?i.filedsize:a,this.dataSource.forEach(n=>{o+=n[l.dataIndex]!==null&&n[l.dataIndex]!==void 0?n[l.dataIndex]:0}),e.push({value:o.toString().length>a?Number(o.toFixed(a)):o,name:this.$i18nt(`Dynamics.${l.transKey}`,l.columnComment)}),t.push(this.$i18nt(`Dynamics.${l.transKey}`,l.columnComment))});return{data:e,columns:t}},getAverage(){let e=[],t=[],a=2;if(this.detail.columnName&&this.detail.list.length==1){let l=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),o=[],i=this.loadData.filter(s=>s.columnname==this.detail.columnName)[0];l.forEach(s=>{let r=0,c=0,d=this.loadData.filter(u=>u.columnname==this.detail.columnName)[0];a=d==null?a:d.filedsize!==null?d.filedsize:a,this.dataSource.forEach(u=>{if(u[this.detail.list[0].dataIndex]==s.code){let g=u[this.detail.columnName]!==null&&u[this.detail.columnName]!==void 0?u[this.detail.columnName]:0;r+=d.dicttypecode?this.getDictionaryData(d.dicttypecode,u[this.detail.columnName]):g,c+=1}}),e.push({value:r.toString().length>a?Number(r.toFixed(a)):r,name:this.$i18nt(`Dynamics.${s.transKey}`,s.name),leg:c}),t.push(this.$i18nt(`Dynamics.${s.transKey}`,s.name)),o.push(String(s.code))});let n=this.dataSource.filter(s=>!o.includes(String(s[this.detail.list[0].dataIndex])));if(n.length>0){let s=0;n.forEach(r=>{let c=r[this.detail.columnName]!==null&&r[this.detail.columnName]!==void 0?r[this.detail.columnName]:0;s+=i.dicttypecode?this.getDictionaryData(i.dicttypecode,r[this.detail.columnName]):c}),e=[{value:s,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`,leg:n.length}].concat(e),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(l=>{let o=0,i=0,n=this.loadData.filter(s=>s.columnname==l.dataIndex)[0];a=n==null?a:n.filedsize!==null?n.filedsize:a,this.dataSource.forEach(s=>{o+=s[l.dataIndex]!==null&&s[l.dataIndex]!==void 0?s[l.dataIndex]:0,i+=1}),e.push({value:o.toString().length>a?Number(o.toFixed(a)):o,name:this.$i18nt(`Dynamics.${l.transKey}`,l.columnComment),leg:i}),t.push(this.$i18nt(`Dynamics.${l.transKey}`,l.columnComment))});return{data:e,columns:t}},getMaximum(){let e=[],t=[];if(this.detail.columnName&&this.detail.list.length==1){let a=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),l=[],o=this.loadData.filter(n=>n.columnname==this.detail.columnName)[0];a.forEach(n=>{let s=0;this.dataSource.forEach(r=>{if(r[this.detail.list[0].dataIndex]==n.code){let c=r[this.detail.columnName]!==null&&r[this.detail.columnName]!==void 0?r[this.detail.columnName]:0;c=o.dicttypecode?this.getDictionaryData(o.dicttypecode,r[this.detail.columnName]):c,s=c>s?c:s}}),e.push({value:s,name:this.$i18nt(`Dynamics.${n.transkey}`,n.name)}),t.push(this.$i18nt(`Dynamics.${n.transkey}`,n.name)),l.push(String(n.code))});let i=this.dataSource.filter(n=>!l.includes(String(n[this.detail.list[0].dataIndex])));if(i.length>0){let n=0;i.forEach(s=>{let r=s[this.detail.columnName]!==null?s[this.detail.columnName]:0;n=o.dicttypecode?this.getDictionaryData(o.dicttypecode,s[this.detail.columnName]):r,n=r>n?r:n}),e=[{value:n,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(e),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(a=>{let l=0;this.dataSource.forEach(o=>{let i=o[a.dataIndex]!=null?o[a.dataIndex]:0;l=i>l?i:l}),e.push({value:l,name:this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment)}),t.push(this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment))});return{data:e,columns:t}},getMinimum(){let e=[],t=[];if(this.detail.columnName&&this.detail.list.length==1){let a=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),l=[],o=this.loadData.filter(n=>n.columnname==this.detail.columnName)[0];a.forEach(n=>{let s=null;this.dataSource.forEach((r,c)=>{if(r[this.detail.list[0].dataIndex]==n.code){let d=r[this.detail.columnName]!==null?r[this.detail.columnName]:0;d=o.dicttypecode?this.getDictionaryData(o.dicttypecode,r[this.detail.columnName]):d,s=s===null||d<s?d:s}}),e.push({value:s,name:this.$i18nt(`Dynamics.${n.transkey}`,n.name)}),t.push(this.$i18nt(`Dynamics.${n.transkey}`,n.name)),l.push(String(n.code))});let i=this.dataSource.filter(n=>!l.includes(String(n[this.detail.list[0].dataIndex])));if(i.length>0){let n=null;i.forEach((s,r)=>{let c=s[this.detail.columnName]!==null&&s[this.detail.columnName]!==void 0?s[this.detail.columnName]:0;n=o.dicttypecode?this.getDictionaryData(o.dicttypecode,s[this.detail.columnName]):c,n=n===null||c<n?c:n}),e=[{value:n,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(e),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(a=>{let l=null;this.dataSource.forEach((o,i)=>{let n=o[a.dataIndex]!==null&&o[a.dataIndex]!==void 0?o[a.dataIndex]:0;l=l===null||n<l?n:l}),e.push({value:l,name:this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment)}),t.push(this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment))});return{data:e,columns:t}},getUser(){let e=this.duplicate(this.dataSource,this.detail.list[0].dataIndex),t=[];return e.forEach(a=>{let l=a[this.detail.list[0].dataIndex];t.push({name:l||`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`,code:a[this.detail.list[0].dataIndex]})}),t},duplicate(e,t){if(e.length==0)return e;if(t){var a={},l=e.reduce((o,i)=>(a[i[t]]||(a[i[t]]=o.push(i)),o),[]);return l}else return Array.from(new Set(e))},getDictionary(e){return this.$options.filters.dictData(e)},getDictionaryData(e,t){let a=this.getDictionary(e).filter(l=>l.code==t)[0];return a===void 0?0:Number(a.name)}}};var $=function(){var t=this,a=t._self._c;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}],staticClass:"gd-echart"},[t.type==="0"?a("div",{staticClass:"empty"},[a("i",{staticClass:"el-icon-receiving"}),a("div",{staticClass:"empty-err"},[t._v(t._s(t.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])]):t._e(),t.type==1?a("ColumnarChart",{ref:"columnarChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),t.type==2?a("PieChart",{ref:"pieChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),t.type==3?a("FunnelChart",{ref:"funnelChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),t.type==4?a("LineChart",{ref:"lineChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),a("AmplifyEchart",{ref:"amplifyEchart",attrs:{loadData:t.loadData,color:t.getColor}})],1)},v=[],b=m.normalizeComponent(_,$,v,!1,null,"97c8a505",null,null);const p=b.exports;p.install=function(e){e.component(p.name,p)};const C={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},showTitle:{type:Boolean,default:!0},left:{type:[Number,String],default:10}},data(){return{}},computed:{},methods:{init(e){let t=h.echarts.init(this.$refs.container),a=this.getOption(e);t.clear(),t.dispose(),t=h.echarts.init(this.$refs.container),t.setOption(a),t.on("click",l=>{this.$emit("change",l)})},getOption(e){let t=[];e.data.forEach(i=>{t.push(i.value)});let a=this.$i18nt(`Dynamics.${e.transKey}`,e.name),l={text:a?`${a} (${this.$i18nt("gd.basics.total","\u5171")} ${e.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")})`:`${this.$i18nt("gd.table.total","\u5171")} ${e.count} ${this.$i18nt("gd.table.data","\u6761\u6570\u636E")}`,left:this.left,textStyle:{fontSize:16}},o={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:e.columns.filter((i,n)=>n<30),axisTick:{alignWithLabel:!0},axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value"}],series:[{type:"bar",barWidth:"60%",data:t.filter((i,n)=>n<30),itemStyle:{normal:{label:{show:!0,position:"top",textStyle:{color:"#333",fontSize:14},formatter:i=>f.formatterAmount(i.data)},color:i=>this.color[i.dataIndex]}}}]};return this.showTitle?Object.assign(o,{title:l}):o}}};var S=function(){var t=this,a=t._self._c;return a("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},x=[],D=m.normalizeComponent(C,S,x,!1,null,"8b6de49a",null,null);const N=D.exports,T=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));const w={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},showTitle:{type:Boolean,default:!0},left:{type:[Number,String],default:10}},data(){return{}},computed:{},methods:{init(e){let t=h.echarts.init(this.$refs.container),a=this.getOption(e);t.clear(),t.dispose(),t=h.echarts.init(this.$refs.container),t.setOption(a),t.on("click",l=>{this.$emit("change",l)})},getOption(e){let t=0;e.data.forEach((i,n)=>{t+=Number(i.value),e.data[n].order=i.value}),e.data=[...f.sort(e.data)];let a=this.$i18nt(`Dynamics.${e.transKey}`,e.name),l={text:a?`${a} (${this.$i18nt("gd.basics.total","\u5171")} ${e.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")})`:`${this.$i18nt("gd.basics.total","\u5171")} ${e.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")}`,left:this.left,textStyle:{fontSize:16}},o={tooltip:{trigger:"item",formatter:function(i){return`${i.data.name}:\r\r${f.formatterAmount(i.data.values)}\r
|
|
1
|
+
"use strict";const m=require("./components.chartbi.13a8a7b5.js"),y=require("./http.main.2f8a6936.js"),h=require("./utils.echarts.js.461a74e7.js"),f=require("./utils.util.js.c0ba699b.js");const _={name:"GdEcharts",props:{loadData:{type:Array,default:()=>[]},develop:{type:[Number,String],default:1},showTitle:{type:Boolean,default:!0},color:{type:Array,default:()=>[]},left:{type:[Number,String],default:10}},components:{ColumnarChart:()=>Promise.resolve().then(()=>T),FunnelChart:()=>Promise.resolve().then(()=>j),LineChart:()=>Promise.resolve().then(()=>L),PieChart:()=>Promise.resolve().then(()=>q),AmplifyEchart:()=>Promise.resolve().then(()=>X)},data(){return{type:"0",detail:{},dataSource:[],spinning:!1}},computed:{getColor(){let e=[];return(this.color.length===0?this.echartsColor:this.color).forEach(a=>{e.push(a==="0"?this.primaryColor:a)}),e},...m.mapGetters(["echartsColor","primaryColor"])},methods:{amplify(){this.$refs.amplifyEchart.open(this.detail)},change(e){this.$emit("change",e)},setType(){this.type="0"},open(e){this.spinning=!0,this.detail={...e},this.type=e.type,this.dataSource=[...e.data],this.assembly()},init(e){this.spinning=!0,this.detail={...e},this.type=e.type,y.basePage({pageNo:1,pageSize:100,tableId:e.tableId,viewId:e.viewId}).then(t=>{t.success?(this.dataSource=t.data.rows.filter(a=>a.id!==null),this.assembly()):this.spinning=!1})},assembly(){let e={};this.detail.mode==1?e=this.getTotals():this.detail.mode==2?e=this.getGentles():this.detail.mode==3?e=this.getAverage():this.detail.mode==4?e=this.getMaximum():this.detail.mode==5&&(e=this.getMinimum());let t={name:this.$i18nt(`Dynamics.${this.detail.transKey}`,this.detail.name),count:this.dataSource.length,columns:e.columns,data:e.data},a="columnarChart";this.detail.type==2?a="pieChart":this.detail.type==3?a="funnelChart":this.detail.type==4&&(a="lineChart"),this.$nextTick(()=>{setTimeout(()=>{this.$refs[a].init(t),this.spinning=!1},0)})},getTotals(){let e=[],t=[],a=[];(this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser()).forEach(i=>{let n=0;this.dataSource.forEach(s=>{s[this.detail.list[0].dataIndex]==i.code&&(n+=1)}),e.push({value:n,name:this.$i18nt(`Dynamics.${i.transkey}`,i.name)}),t.push(this.$i18nt(`Dynamics.${i.transkey}`,i.name)),a.push(String(i.code))});let o=this.dataSource.filter(i=>!a.includes(String(i[this.detail.list[0].dataIndex])));if(o.length>0){let i=0;o.forEach(n=>{i+=1}),e=[{value:i,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(e),t=[`${this.$i18nt("gd.echarts.none"),"\u7A7A\u767D"}`].concat(t)}return{data:e,columns:t}},getGentles(){let e=[],t=[],a=2;if(this.detail.columnName&&this.detail.list.length===1){let l=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),o=[],i=this.loadData.filter(s=>s.columnname==this.detail.columnName)[0];a=i===void 0?a:i.filedsize!==null?i.filedsize:a,l.forEach(s=>{let r=0;this.dataSource.forEach(c=>{if(c[this.detail.list[0].dataIndex]==s.code){let d=c[this.detail.columnName]!==null?c[this.detail.columnName]:0;r+=i.dicttypecode?this.getDictionaryData(i.dicttypecode,c[this.detail.columnName]):d}}),e.push({value:r.toString().length>a?Number(r.toFixed(a)):r,name:this.$i18nt(`Dynamics.${s.transkey}`,s.name)}),t.push(this.$i18nt(`Dynamics.${s.transkey}`,s.name)),o.push(String(s.code))});let n=this.dataSource.filter(s=>!o.includes(String(s[this.detail.list[0].dataIndex])));if(n.length>0){let s=0;n.forEach(r=>{let c=r[this.detail.columnName]!==null?r[this.detail.columnName]:0;s+=i.dicttypecode?this.getDictionaryData(i.dicttypecode,r[this.detail.columnName]):c}),e=[{value:s,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(e),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(l=>{let o=0,i=this.loadData.filter(n=>n.columnname==l.dataIndex)[0];a=i===void 0?a:i.filedsize!==null?i.filedsize:a,this.dataSource.forEach(n=>{o+=n[l.dataIndex]!==null&&n[l.dataIndex]!==void 0?n[l.dataIndex]:0}),e.push({value:o.toString().length>a?Number(o.toFixed(a)):o,name:this.$i18nt(`Dynamics.${l.transKey}`,l.columnComment)}),t.push(this.$i18nt(`Dynamics.${l.transKey}`,l.columnComment))});return{data:e,columns:t}},getAverage(){let e=[],t=[],a=2;if(this.detail.columnName&&this.detail.list.length==1){let l=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),o=[],i=this.loadData.filter(s=>s.columnname==this.detail.columnName)[0];l.forEach(s=>{let r=0,c=0,d=this.loadData.filter(u=>u.columnname==this.detail.columnName)[0];a=d==null?a:d.filedsize!==null?d.filedsize:a,this.dataSource.forEach(u=>{if(u[this.detail.list[0].dataIndex]==s.code){let g=u[this.detail.columnName]!==null&&u[this.detail.columnName]!==void 0?u[this.detail.columnName]:0;r+=d.dicttypecode?this.getDictionaryData(d.dicttypecode,u[this.detail.columnName]):g,c+=1}}),e.push({value:r.toString().length>a?Number(r.toFixed(a)):r,name:this.$i18nt(`Dynamics.${s.transKey}`,s.name),leg:c}),t.push(this.$i18nt(`Dynamics.${s.transKey}`,s.name)),o.push(String(s.code))});let n=this.dataSource.filter(s=>!o.includes(String(s[this.detail.list[0].dataIndex])));if(n.length>0){let s=0;n.forEach(r=>{let c=r[this.detail.columnName]!==null&&r[this.detail.columnName]!==void 0?r[this.detail.columnName]:0;s+=i.dicttypecode?this.getDictionaryData(i.dicttypecode,r[this.detail.columnName]):c}),e=[{value:s,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`,leg:n.length}].concat(e),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(l=>{let o=0,i=0,n=this.loadData.filter(s=>s.columnname==l.dataIndex)[0];a=n==null?a:n.filedsize!==null?n.filedsize:a,this.dataSource.forEach(s=>{o+=s[l.dataIndex]!==null&&s[l.dataIndex]!==void 0?s[l.dataIndex]:0,i+=1}),e.push({value:o.toString().length>a?Number(o.toFixed(a)):o,name:this.$i18nt(`Dynamics.${l.transKey}`,l.columnComment),leg:i}),t.push(this.$i18nt(`Dynamics.${l.transKey}`,l.columnComment))});return{data:e,columns:t}},getMaximum(){let e=[],t=[];if(this.detail.columnName&&this.detail.list.length==1){let a=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),l=[],o=this.loadData.filter(n=>n.columnname==this.detail.columnName)[0];a.forEach(n=>{let s=0;this.dataSource.forEach(r=>{if(r[this.detail.list[0].dataIndex]==n.code){let c=r[this.detail.columnName]!==null&&r[this.detail.columnName]!==void 0?r[this.detail.columnName]:0;c=o.dicttypecode?this.getDictionaryData(o.dicttypecode,r[this.detail.columnName]):c,s=c>s?c:s}}),e.push({value:s,name:this.$i18nt(`Dynamics.${n.transkey}`,n.name)}),t.push(this.$i18nt(`Dynamics.${n.transkey}`,n.name)),l.push(String(n.code))});let i=this.dataSource.filter(n=>!l.includes(String(n[this.detail.list[0].dataIndex])));if(i.length>0){let n=0;i.forEach(s=>{let r=s[this.detail.columnName]!==null?s[this.detail.columnName]:0;n=o.dicttypecode?this.getDictionaryData(o.dicttypecode,s[this.detail.columnName]):r,n=r>n?r:n}),e=[{value:n,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(e),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(a=>{let l=0;this.dataSource.forEach(o=>{let i=o[a.dataIndex]!=null?o[a.dataIndex]:0;l=i>l?i:l}),e.push({value:l,name:this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment)}),t.push(this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment))});return{data:e,columns:t}},getMinimum(){let e=[],t=[];if(this.detail.columnName&&this.detail.list.length==1){let a=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),l=[],o=this.loadData.filter(n=>n.columnname==this.detail.columnName)[0];a.forEach(n=>{let s=null;this.dataSource.forEach((r,c)=>{if(r[this.detail.list[0].dataIndex]==n.code){let d=r[this.detail.columnName]!==null?r[this.detail.columnName]:0;d=o.dicttypecode?this.getDictionaryData(o.dicttypecode,r[this.detail.columnName]):d,s=s===null||d<s?d:s}}),e.push({value:s,name:this.$i18nt(`Dynamics.${n.transkey}`,n.name)}),t.push(this.$i18nt(`Dynamics.${n.transkey}`,n.name)),l.push(String(n.code))});let i=this.dataSource.filter(n=>!l.includes(String(n[this.detail.list[0].dataIndex])));if(i.length>0){let n=null;i.forEach((s,r)=>{let c=s[this.detail.columnName]!==null&&s[this.detail.columnName]!==void 0?s[this.detail.columnName]:0;n=o.dicttypecode?this.getDictionaryData(o.dicttypecode,s[this.detail.columnName]):c,n=n===null||c<n?c:n}),e=[{value:n,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(e),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(a=>{let l=null;this.dataSource.forEach((o,i)=>{let n=o[a.dataIndex]!==null&&o[a.dataIndex]!==void 0?o[a.dataIndex]:0;l=l===null||n<l?n:l}),e.push({value:l,name:this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment)}),t.push(this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment))});return{data:e,columns:t}},getUser(){let e=this.duplicate(this.dataSource,this.detail.list[0].dataIndex),t=[];return e.forEach(a=>{let l=a[this.detail.list[0].dataIndex];t.push({name:l||`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`,code:a[this.detail.list[0].dataIndex]})}),t},duplicate(e,t){if(e.length==0)return e;if(t){var a={},l=e.reduce((o,i)=>(a[i[t]]||(a[i[t]]=o.push(i)),o),[]);return l}else return Array.from(new Set(e))},getDictionary(e){return this.$options.filters.dictData(e)},getDictionaryData(e,t){let a=this.getDictionary(e).filter(l=>l.code==t)[0];return a===void 0?0:Number(a.name)}}};var $=function(){var t=this,a=t._self._c;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}],staticClass:"gd-echart"},[t.type==="0"?a("div",{staticClass:"empty"},[a("i",{staticClass:"el-icon-receiving"}),a("div",{staticClass:"empty-err"},[t._v(t._s(t.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])]):t._e(),t.type==1?a("ColumnarChart",{ref:"columnarChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),t.type==2?a("PieChart",{ref:"pieChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),t.type==3?a("FunnelChart",{ref:"funnelChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),t.type==4?a("LineChart",{ref:"lineChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),a("AmplifyEchart",{ref:"amplifyEchart",attrs:{loadData:t.loadData,color:t.getColor}})],1)},v=[],b=m.normalizeComponent(_,$,v,!1,null,"97c8a505",null,null);const p=b.exports;p.install=function(e){e.component(p.name,p)};const C={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},showTitle:{type:Boolean,default:!0},left:{type:[Number,String],default:10}},data(){return{}},computed:{},methods:{init(e){let t=h.echarts.init(this.$refs.container),a=this.getOption(e);t.clear(),t.dispose(),t=h.echarts.init(this.$refs.container),t.setOption(a),t.on("click",l=>{this.$emit("change",l)})},getOption(e){let t=[];e.data.forEach(i=>{t.push(i.value)});let a=this.$i18nt(`Dynamics.${e.transKey}`,e.name),l={text:a?`${a} (${this.$i18nt("gd.basics.total","\u5171")} ${e.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")})`:`${this.$i18nt("gd.table.total","\u5171")} ${e.count} ${this.$i18nt("gd.table.data","\u6761\u6570\u636E")}`,left:this.left,textStyle:{fontSize:16}},o={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:e.columns.filter((i,n)=>n<30),axisTick:{alignWithLabel:!0},axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value"}],series:[{type:"bar",barWidth:"60%",data:t.filter((i,n)=>n<30),itemStyle:{normal:{label:{show:!0,position:"top",textStyle:{color:"#333",fontSize:14},formatter:i=>f.formatterAmount(i.data)},color:i=>this.color[i.dataIndex]}}}]};return this.showTitle?Object.assign(o,{title:l}):o}}};var S=function(){var t=this,a=t._self._c;return a("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},x=[],D=m.normalizeComponent(C,S,x,!1,null,"8b6de49a",null,null);const N=D.exports,T=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));const w={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},showTitle:{type:Boolean,default:!0},left:{type:[Number,String],default:10}},data(){return{}},computed:{},methods:{init(e){let t=h.echarts.init(this.$refs.container),a=this.getOption(e);t.clear(),t.dispose(),t=h.echarts.init(this.$refs.container),t.setOption(a),t.on("click",l=>{this.$emit("change",l)})},getOption(e){let t=0;e.data.forEach((i,n)=>{t+=Number(i.value),e.data[n].order=i.value}),e.data=[...f.sort(e.data)];let a=this.$i18nt(`Dynamics.${e.transKey}`,e.name),l={text:a?`${a} (${this.$i18nt("gd.basics.total","\u5171")} ${e.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")})`:`${this.$i18nt("gd.basics.total","\u5171")} ${e.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")}`,left:this.left,textStyle:{fontSize:16}},o={tooltip:{trigger:"item",formatter:function(i){return`${i.data.name}:\r\r${f.formatterAmount(i.data.values)}\r
|
|
2
2
|
(${i.data.percentage}%)`}},color:this.color,legend:{type:"scroll",bottom:0,data:e.columns},series:[{type:"funnel",left:"10%",top:50,bottom:50,width:"76%",min:0,max:100,minSize:"10%",maxSize:"90%",sort:"descending",gap:1,label:{show:!0,formatter:function(i){return`${i.data.name}:\r\r${f.formatterAmount(i.data.values)}\r
|
|
3
3
|
(${i.data.percentage}%)`}},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{fontSize:15}},data:e.data.map((i,n)=>{const s=i.value;return i.values=s,i.percentage=t===0?"0":(Number(s)/t*1e4).toFixed(0)/100,i.value=(1/e.data.length*(n+1)*100).toFixed(0),i})}]};return this.showTitle?Object.assign(o,{title:l}):o}}};var E=function(){var t=this,a=t._self._c;return a("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},z=[],I=m.normalizeComponent(w,E,z,!1,null,"a2bba9b4",null,null);const O=I.exports,j=Object.freeze(Object.defineProperty({__proto__:null,default:O},Symbol.toStringTag,{value:"Module"}));const A={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},showTitle:{type:Boolean,default:!0},left:{type:[Number,String],default:10}},data(){return{}},computed:{},methods:{init(e){let t=h.echarts.init(this.$refs.container),a=this.getOption(e);t.clear(),t.dispose(),t=h.echarts.init(this.$refs.container),t.setOption(a),t.on("click",l=>{this.$emit("change",l)})},getOption(e){let t=this.$i18nt(`Dynamics.${e.transKey}`,e.name),a={text:t?`${t} (${this.$i18nt("gd.basics.total","\u5171")} ${e.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")})`:`${this.$i18nt("gd.basics.total","\u5171")} ${e.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")}`,left:this.left,textStyle:{fontSize:16}},l={tooltip:{trigger:"axis"},color:this.color,legend:{},xAxis:{type:"category",data:e.columns,axisLabel:{interval:0,rotate:30}},yAxis:{type:"value"},series:[{data:e.data,type:"line"}]};return this.showTitle?Object.assign(l,{title:a}):l}}};var k=function(){var t=this,a=t._self._c;return a("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},F=[],K=m.normalizeComponent(A,k,F,!1,null,"f8a9de5c",null,null);const P=K.exports,L=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"}));const M={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},showTitle:{type:Boolean,default:!0},left:{type:[Number,String],default:10}},data(){return{}},computed:{},methods:{init(e){let t=h.echarts.init(this.$refs.container),a=this.getOption(e);t.clear(),t.dispose(),t=h.echarts.init(this.$refs.container),t.setOption(a),t.on("click",l=>{this.$emit("change",l)})},getOption(e){let t=this.$i18nt(`Dynamics.${e.transKey}`,e.name),a={text:t?`${t} (${this.$i18nt("gd.basics.total","\u5171")} ${e.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")})`:`${this.$i18nt("gd.basics.total","\u5171")} ${e.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")}`,left:this.left,textStyle:{fontSize:16}},l={tooltip:{trigger:"item"},color:this.color,legend:{type:"scroll",bottom:0,data:e.columns},series:[{type:"pie",radius:["30%","58%"],center:this.develop==4?["50%","45%"]:["50%","50%"],data:e.data,label:{show:!0,position:"outside",textStyle:{fontWeight:500,color:"#333",fontSize:14,lineHeight:20},formatter:o=>`${o.name}:\r\r${f.formatterAmount(o.value)}\r
|
|
4
4
|
(${o.percent}%)`},itemStyle:{borderRadius:2}}]};return this.showTitle?Object.assign(l,{title:a}):l}}};var R=function(){var t=this,a=t._self._c;return a("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},G=[],U=m.normalizeComponent(M,R,G,!1,null,"4f2b1bb6",null,null);const B=U.exports,q=Object.freeze(Object.defineProperty({__proto__:null,default:B},Symbol.toStringTag,{value:"Module"}));const W={props:{loadData:{type:Array,default:()=>[]},color:{type:Array,default:()=>[]},left:{type:[Number,String],default:"center"}},data(){return{record:{},width:"80%",confirmLoading:!1,visible:!1,fullscreen:!1}},methods:{open(e){this.visible=!0,this.record={...e},this.$nextTick(()=>{setTimeout(()=>{this.$refs.VEcharts.open(e)},0)})},toggleFullscreen(){this.fullscreen=!this.fullscreen,this.$nextTick(()=>{setTimeout(()=>{this.$refs.VEcharts.open(this.record)},0)})},doEvent(e){let t=e.item.functionName;this[t]&&this[t]()},closed(){this.fullscreen=!1,this.visible=!1}}};var V=function(){var t=this,a=t._self._c;return a("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(l){t.visible=l},closed:t.closed}},[a("gd-modal-title",{attrs:{slot:"title",title:"",fullscreen:t.fullscreen,buttons:[],confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent},slot:"title"}),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form"},[a("gd-echarts",{ref:"VEcharts",attrs:{loadData:t.loadData,color:t.color,left:t.left}})],1)],1)},H=[],J=m.normalizeComponent(W,V,H,!1,null,"bb8cc0bf",null,null);const Q=J.exports,X=Object.freeze(Object.defineProperty({__proto__:null,default:Q},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=p;
|