gds-plus-design-vue 1.2.63 → 1.2.71
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.9fc97a47.mjs → addPermission.179a09f4.mjs} +127 -105
- package/lib/addPermission.c72ebbe0.js +1 -0
- package/lib/{approvalModel.51d07afe.mjs → approvalModel.7b550187.mjs} +7 -7
- package/lib/approvalModel.7cfcac3c.js +1 -0
- package/lib/attribute.3fed1dd9.js +1 -0
- package/lib/attribute.e9a8faa1.mjs +367 -0
- package/lib/businessRules.cf106f09.js +1 -0
- package/lib/{businessRules.db6ba874.mjs → businessRules.d7d35011.mjs} +191 -190
- package/lib/buttonRule.2afe380d.mjs +396 -0
- package/lib/buttonRule.737e8e3f.js +1 -0
- package/lib/chartDisplayRules.370065e8.mjs +288 -0
- package/lib/chartDisplayRules.c9162f81.js +1 -0
- package/lib/components.chartbi.3bbac955.js +8 -0
- package/lib/components.chartbi.571c5ff5.mjs +1813 -0
- package/lib/{components.coloreditor.044983d2.mjs → components.coloreditor.06cf0433.mjs} +2 -2
- package/lib/{components.coloreditor.779a9419.js → components.coloreditor.f81d322a.js} +1 -1
- package/lib/{components.dataassign.56632583.mjs → components.dataassign.21d3938b.mjs} +3 -3
- package/lib/{components.dataassign.1853ed5c.js → components.dataassign.565d22c0.js} +1 -1
- package/lib/{components.echarts.10d3ffe2.mjs → components.echarts.490abdfa.mjs} +416 -399
- package/lib/components.echarts.fe84f881.js +4 -0
- package/lib/{components.exception.3cc33e29.js → components.exception.374f2ad9.js} +1 -1
- package/lib/{components.exception.cc2f4ca3.mjs → components.exception.ee1c4f83.mjs} +1 -1
- package/lib/{components.form.91d5ed3e.js → components.form.5533a8c3.js} +19 -19
- package/lib/{components.form.3344c817.mjs → components.form.db8af727.mjs} +1118 -1090
- package/lib/{components.globalheader.07a90c4b.js → components.globalheader.2eb787a4.js} +1 -1
- package/lib/{components.globalheader.43fafa8c.mjs → components.globalheader.b3b35343.mjs} +3 -3
- package/lib/{components.iconselector.8caabeaa.mjs → components.iconselector.8940b1a9.mjs} +7 -3
- package/lib/components.iconselector.f5a58033.js +1 -0
- package/lib/{components.imgpreview.86bf7971.js → components.imgpreview.d97cf25c.js} +1 -1
- package/lib/{components.imgpreview.57290b54.mjs → components.imgpreview.f05b3e06.mjs} +4 -4
- package/lib/{components.lunccalendar.76159d2e.js → components.lunccalendar.18f84642.js} +1 -1
- package/lib/{components.lunccalendar.f6765c94.mjs → components.lunccalendar.2a097955.mjs} +1 -1
- package/lib/components.middleware.43b9b264.js +1 -0
- package/lib/{components.middleware.457b1182.mjs → components.middleware.de012955.mjs} +5 -4
- package/lib/{components.modaltitle.ae92f96c.mjs → components.modaltitle.5060623f.mjs} +1 -1
- package/lib/{components.modaltitle.e0b34fcb.js → components.modaltitle.957cab33.js} +1 -1
- package/lib/{components.multitab.8441aa6b.mjs → components.multitab.5eb6edff.mjs} +1 -1
- package/lib/{components.multitab.82fd0544.js → components.multitab.80eeb3ae.js} +1 -1
- package/lib/{components.selecttree.d710a362.js → components.selecttree.2fe70d88.js} +1 -1
- package/lib/{components.selecttree.85d940a9.mjs → components.selecttree.756c4d22.mjs} +1 -1
- package/lib/{components.settingdrawer.a6693034.mjs → components.settingdrawer.29dbc31e.mjs} +21 -21
- package/lib/{components.settingdrawer.779f6715.js → components.settingdrawer.8c12650b.js} +1 -1
- package/lib/{components.sidemenu.725677e3.mjs → components.sidemenu.0673fe0a.mjs} +2 -2
- package/lib/{components.sidemenu.80e46c2d.js → components.sidemenu.240dfde7.js} +1 -1
- package/lib/components.sidenavmenu.b1330d69.js +1 -0
- package/lib/{components.sidenavmenu.23b8edce.mjs → components.sidenavmenu.fa81ff82.mjs} +448 -632
- package/lib/{components.statuschange.ed1218a4.js → components.statuschange.858b72e8.js} +1 -1
- package/lib/{components.statuschange.15938660.mjs → components.statuschange.fae4adba.mjs} +3 -3
- package/lib/{components.table.17c02054.js → components.table.1e338902.js} +3 -3
- package/lib/{components.table.e3e5e3bc.mjs → components.table.9ed77207.mjs} +331 -316
- package/lib/components.tableumy.1d804d70.js +1 -0
- package/lib/{components.tableumy.2f5dfa12.mjs → components.tableumy.3e1c9a5b.mjs} +7 -4
- package/lib/{components.tablevirtual.ba03746e.mjs → components.tablevirtual.66890b2c.mjs} +7 -4
- package/lib/components.tablevirtual.8e21a6e7.js +1 -0
- package/lib/{components.teamsharing.fb4351ec.mjs → components.teamsharing.3a17ddc0.mjs} +3 -3
- package/lib/{components.teamsharing.05503821.js → components.teamsharing.89e668fd.js} +1 -1
- package/lib/{components.tooltip.a05d8dd1.js → components.tooltip.0ea7e2b1.js} +1 -1
- package/lib/{components.tooltip.950dc77b.mjs → components.tooltip.376d95fe.mjs} +1 -1
- package/lib/{components.uploadfile.10f6cb2a.mjs → components.uploadfile.0a5a1608.mjs} +2 -2
- package/lib/{components.uploadfile.5a9b6cc1.js → components.uploadfile.8e0e702c.js} +1 -1
- package/lib/{components.uploadimg.cce7452a.js → components.uploadimg.bc160e00.js} +1 -1
- package/lib/{components.uploadimg.f4fe4e77.mjs → components.uploadimg.decb0360.mjs} +2 -2
- package/lib/{components.verificationcode.d1946db4.js → components.verificationcode.140533c7.js} +1 -1
- package/lib/{components.verificationcode.afb9aa1a.mjs → components.verificationcode.7091b10b.mjs} +1 -1
- package/lib/components.viewformdetails.940addba.js +1 -0
- package/lib/{components.viewformdetails.f362d69e.mjs → components.viewformdetails.d241c652.mjs} +94 -61
- package/lib/components.viewloading.1e9f4b3c.js +1 -0
- package/lib/{components.viewloading.ea40b244.mjs → components.viewloading.aae3aab4.mjs} +54 -51
- package/lib/{components.watermark.1ffc66e0.mjs → components.watermark.2ec3260c.mjs} +1 -1
- package/lib/{components.watermark.da3d7220.js → components.watermark.d9ec8130.js} +1 -1
- package/lib/{components.xlsxexport.f5ace2cd.js → components.xlsxexport.0d1553b1.js} +1 -1
- package/lib/{components.xlsxexport.d98572f8.mjs → components.xlsxexport.c33f83ca.mjs} +4 -4
- package/lib/{components.xlsximport.cffa88fe.mjs → components.xlsximport.81df7841.mjs} +541 -532
- package/lib/components.xlsximport.8c209857.js +1 -0
- package/lib/copy.8db86d9f.mjs +572 -0
- package/lib/copy.a8753f38.js +1 -0
- package/lib/createFile.04a6b293.js +1 -0
- package/lib/createFile.4cac1673.mjs +439 -0
- package/lib/createSubfolders.e105fa86.js +1 -0
- package/lib/{createSubfolders.d35b97e9.mjs → createSubfolders.eac5ccae.mjs} +7 -7
- package/lib/{dialogLayout.c4bc3b55.mjs → dialogLayout.bf435838.mjs} +2 -2
- package/lib/{dialogLayout.08823bb7.js → dialogLayout.f0779aed.js} +1 -1
- package/lib/drawerContainer.6ab3df46.mjs +163 -0
- package/lib/drawerContainer.8f9df583.js +1 -0
- package/lib/{drawerLayout.36cf4d05.js → drawerLayout.b6c7c3c6.js} +1 -1
- package/lib/{drawerLayout.fb60950f.mjs → drawerLayout.e3c0164d.mjs} +2 -2
- package/lib/editForm.0f3fd3b0.js +1 -0
- package/lib/editForm.aef93ed0.mjs +434 -0
- package/lib/extendedAttributes.ea93dbaa.mjs +293 -0
- package/lib/extendedAttributes.ef3ead02.js +1 -0
- package/lib/fileSearch.43465e1c.js +1 -0
- package/lib/{fileSearch.86c356fe.mjs → fileSearch.5c8a883d.mjs} +140 -115
- package/lib/{flow.designer.6da03949.mjs → flow.designer.81c29f62.mjs} +3184 -3197
- package/lib/flow.designer.ffd0aa8b.js +1 -0
- package/lib/flow.list.4c05f2f0.js +1 -0
- package/lib/{flow.list.03694808.mjs → flow.list.ab420927.mjs} +234 -232
- package/lib/form.build.724d3357.js +1 -0
- package/lib/{form.build.b768d613.mjs → form.build.d04773f0.mjs} +22 -14
- package/lib/form.designer.build.c82cb559.mjs +2529 -0
- package/lib/form.designer.build.dac501fa.js +1 -0
- package/lib/formFiled.4b5062d7.js +1 -0
- package/lib/{formFiled.fe7d9df3.mjs → formFiled.c949a27f.mjs} +15 -13
- package/lib/gd-initial.js +1 -1
- package/lib/gd-initial.mjs +231 -207
- package/lib/{http.appmanage.4554a629.mjs → http.appmanage.e389782d.mjs} +3 -3
- package/lib/{http.codegeneratemanage.2f925b10.mjs → http.codegeneratemanage.b123bab3.mjs} +19 -11
- package/lib/{http.codegeneratemanage.aecadd5d.js → http.codegeneratemanage.e3db2f09.js} +1 -1
- package/lib/{http.dictdatamanage.4baf16c0.mjs → http.dictdatamanage.2583b5ae.mjs} +4 -4
- package/lib/{http.dictmanage.77c69971.mjs → http.dictmanage.d8fe18dc.mjs} +4 -4
- package/lib/{http.duplicatechecking.31964ce7.mjs → http.duplicatechecking.9b79ce21.mjs} +3 -3
- package/lib/http.filedocument.6fdfc693.js +1 -0
- package/lib/http.filedocument.8fa3fe2d.mjs +293 -0
- package/lib/{http.main.40657f51.mjs → http.main.aefea27d.mjs} +17 -17
- package/lib/{http.menumanage.3240ba0d.mjs → http.menumanage.3060f4c7.mjs} +5 -5
- package/lib/{http.message.5004bf60.mjs → http.message.ceb0a1c6.mjs} +19 -19
- package/lib/{http.noticemanage.e03bd5f3.mjs → http.noticemanage.2cdb23b8.mjs} +7 -7
- package/lib/{http.orgmanage.84e43edb.mjs → http.orgmanage.0b1df8d5.mjs} +2 -2
- package/lib/{http.pluginmanage.6bc6197f.mjs → http.pluginmanage.54720675.mjs} +7 -7
- package/lib/{http.promptmanagement.c7912f6c.mjs → http.promptmanagement.dad4c6a7.mjs} +3 -3
- package/lib/http.rolemanage.4d1101dd.js +1 -0
- package/lib/{http.rolemanage.dbf3fda1.mjs → http.rolemanage.da5c40e9.mjs} +51 -19
- package/lib/{http.solution.175d36c8.mjs → http.solution.b10d9197.mjs} +4 -4
- package/lib/{http.sumberrules.608a06d6.mjs → http.sumberrules.176d3d06.mjs} +4 -4
- package/lib/{http.sysapps.e294ceaf.mjs → http.sysapps.932ba43b.mjs} +4 -4
- package/lib/{http.tabledevelopment.1d370398.mjs → http.tabledevelopment.3dcb3e97.mjs} +40 -40
- package/lib/{http.team.c8487c0b.mjs → http.team.a9c609d5.mjs} +11 -11
- package/lib/{http.timersmanage.01dbc1a2.mjs → http.timersmanage.c79afb66.mjs} +18 -18
- package/lib/{http.translationmanage.a4640c9a.mjs → http.translationmanage.f8694b51.mjs} +11 -11
- package/lib/{http.useraffiliation.840741ed.mjs → http.useraffiliation.f2a29f92.mjs} +10 -10
- package/lib/{http.usermanage.3e5eff33.mjs → http.usermanage.f5491144.mjs} +16 -16
- package/lib/{http.webresource.5158b431.mjs → http.webresource.1a1a768f.mjs} +4 -4
- package/lib/index.9deaa991.mjs +25906 -0
- package/lib/index.d95c407c.js +8 -0
- package/lib/layoutBlocks.26e1b57b.js +1 -0
- package/lib/layoutBlocks.31454610.mjs +413 -0
- package/lib/layoutItem.c1c836a1.js +1 -0
- package/lib/layoutItem.cf18143e.mjs +71 -0
- package/lib/{layouts.a6a36612.js → layouts.2d06f3e9.js} +2 -2
- package/lib/{layouts.051a0bba.mjs → layouts.3b383d04.mjs} +19 -22
- package/lib/main.09d48801.js +1 -0
- package/lib/main.28b7c398.js +1 -0
- package/lib/main.29e204f9.mjs +166 -0
- package/lib/main.33443996.mjs +231 -0
- package/lib/main.357c50d2.js +1 -0
- package/lib/{main.7f44e3bf.mjs → main.3e886f21.mjs} +40 -50
- package/lib/{main.c1df94d8.mjs → main.419a7b42.mjs} +2 -2
- package/lib/main.4a38d5f8.js +1 -0
- package/lib/{main.70357352.mjs → main.60329866.mjs} +6 -6
- package/lib/{main.ad1e8d4d.js → main.60c2a1a2.js} +1 -1
- package/lib/main.61c9e5c6.mjs +537 -0
- package/lib/main.643d21a0.mjs +552 -0
- package/lib/main.64ddb5f6.mjs +189 -0
- package/lib/main.728eaf53.js +1 -0
- package/lib/{main.8a2a590d.js → main.892caa37.js} +1 -1
- package/lib/main.aea9b6a8.mjs +323 -0
- package/lib/main.b7a5a02b.js +1 -0
- package/lib/main.c71e5b11.js +1 -0
- package/lib/main.edc0b23b.js +1 -0
- package/lib/{main.b0e5e1b0.mjs → main.f520fcf5.mjs} +2 -2
- package/lib/manage.101f1aa9.js +1 -0
- package/lib/{manage.a1df9b88.mjs → manage.f4000654.mjs} +162 -140
- package/lib/messages.fieldconfiguration.0d98a290.mjs +1097 -0
- package/lib/messages.fieldconfiguration.ad4d11cf.js +1 -0
- package/lib/messages.messagetemplate.32273e00.js +7 -0
- package/lib/messages.messagetemplate.7adbbc58.mjs +1319 -0
- package/lib/messages.sendplan.7d0097c2.mjs +1054 -0
- package/lib/messages.sendplan.fbac188d.js +1 -0
- package/lib/messages.sendrecord.ef80d44a.js +2 -0
- package/lib/messages.sendrecord.f0d2fd54.mjs +651 -0
- package/lib/messages.templatelibrary.ec512390.js +2 -0
- package/lib/messages.templatelibrary.ff151513.mjs +808 -0
- package/lib/mobile.designer.componentstree.03f61105.js +1 -0
- package/lib/mobile.designer.componentstree.4a1442dc.mjs +2064 -0
- package/lib/mobile.designer.menutree.0a2f7911.mjs +1036 -0
- package/lib/mobile.designer.menutree.97bb4046.js +1 -0
- package/lib/moveFile.335ebc8d.js +1 -0
- package/lib/moveFile.d71c0824.mjs +276 -0
- package/lib/{page.build.685c1e15.mjs → page.build.376104d5.mjs} +607 -601
- package/lib/{page.build.846096e6.js → page.build.37b26617.js} +3 -3
- package/lib/page.designer.componentstree.0ffc933d.js +1 -0
- package/lib/page.designer.componentstree.b0ecddd8.mjs +2958 -0
- package/lib/page.designer.fieldfiltering.1ecd65a3.mjs +430 -0
- package/lib/page.designer.fieldfiltering.7e913256.js +1 -0
- package/lib/page.designer.menutree.2c1846bc.mjs +5952 -0
- package/lib/page.designer.menutree.c49d9ee6.js +1 -0
- package/lib/page.designer.operation.6179b661.js +1 -0
- package/lib/page.designer.operation.80b1a5d1.mjs +44 -0
- package/lib/page.designer.page.09402332.js +1 -0
- package/lib/page.designer.page.6d8232c7.mjs +10638 -0
- package/lib/personal.echarts.414b7e3d.mjs +268 -0
- package/lib/personal.echarts.b7ee86f4.js +1 -0
- package/lib/result.0c089066.mjs +639 -0
- package/lib/result.9282a717.js +1 -0
- package/lib/router.config.68077a12.js +1 -0
- package/lib/router.config.86225b11.mjs +1424 -0
- package/lib/solution.application.d459e382.js +1 -0
- package/lib/solution.application.e0d58df1.mjs +548 -0
- package/lib/solution.applicationmenu.71ef6b8e.mjs +508 -0
- package/lib/solution.applicationmenu.ae295083.js +1 -0
- package/lib/solution.approvalflow.436b3502.js +1 -0
- package/lib/solution.approvalflow.bef7fbdd.mjs +436 -0
- package/lib/solution.dict.acbe9c55.js +1 -0
- package/lib/solution.dict.ef98b194.mjs +769 -0
- package/lib/solution.menu.5c17348f.mjs +432 -0
- package/lib/solution.menu.cca5e1f9.js +1 -0
- package/lib/solution.plugin.90f8dcc1.mjs +347 -0
- package/lib/solution.plugin.f9a8063f.js +1 -0
- package/lib/solution.processflow.2692dac6.js +1 -0
- package/lib/solution.processflow.c1544b05.mjs +392 -0
- package/lib/solution.role.b1ab40dd.mjs +456 -0
- package/lib/solution.role.b28c4dbe.js +1 -0
- package/lib/solution.webresources.0b51beba.mjs +379 -0
- package/lib/solution.webresources.6961cc68.js +1 -0
- package/lib/solution.workflow.11e49e25.js +1 -0
- package/lib/solution.workflow.c48545d1.mjs +395 -0
- package/lib/{store.config.fff8a5a1.mjs → store.config.03dd7b19.mjs} +22 -17
- package/lib/store.config.556bd56b.js +1 -0
- package/lib/style.css +3 -3
- package/lib/{system.account.014f3e0b.mjs → system.account.1cadbf03.mjs} +877 -881
- package/lib/{system.account.0d4f1fdc.js → system.account.5cc9fe8d.js} +7 -7
- package/lib/{system.config.210f516c.js → system.config.a0b94e40.js} +1 -1
- package/lib/{system.config.0899edb8.mjs → system.config.a9a1ee96.mjs} +1 -1
- package/lib/{system.datasource.82492d27.js → system.datasource.6c30ce25.js} +1 -1
- package/lib/{system.datasource.986768c9.mjs → system.datasource.c103a9c2.mjs} +1 -1
- package/lib/{system.dict.ef24873d.mjs → system.dict.0c229d1c.mjs} +264 -260
- package/lib/system.dict.6b000092.js +1 -0
- package/lib/system.document.f67c2994.mjs +667 -0
- package/lib/system.document.f8fd7af0.js +1 -0
- package/lib/{system.duplicatechecking.dcf9f86b.mjs → system.duplicatechecking.94c7ce17.mjs} +245 -265
- package/lib/system.duplicatechecking.f4cab147.js +1 -0
- package/lib/system.email.11ab6f31.js +1 -0
- package/lib/{system.email.252fd642.mjs → system.email.13823361.mjs} +10 -15
- package/lib/system.fieldsecurity.2ef2881c.js +1 -0
- package/lib/{system.fieldsecurity.0234d390.mjs → system.fieldsecurity.d35acd97.mjs} +370 -361
- package/lib/{system.file.73eeb731.mjs → system.file.30d3e7bc.mjs} +81 -149
- package/lib/system.file.b9f8320c.js +1 -0
- package/lib/{system.log.fc60f5e6.js → system.log.470d3efd.js} +1 -1
- package/lib/{system.log.b86cf57f.mjs → system.log.815840d8.mjs} +1 -1
- package/lib/{system.machine.0114001b.mjs → system.machine.1665954f.mjs} +1 -1
- package/lib/{system.machine.f1d95c86.js → system.machine.f8aff893.js} +1 -1
- package/lib/{system.notice.25ea8dca.mjs → system.notice.bef6c23c.mjs} +994 -992
- package/lib/system.notice.db26f308.js +1 -0
- package/lib/{system.noticereceived.369f634c.mjs → system.noticereceived.0d293a87.mjs} +10 -11
- package/lib/system.noticereceived.84b88b9a.js +1 -0
- package/lib/system.onlineuser.985621a6.js +1 -0
- package/lib/{system.onlineuser.2dc284b1.mjs → system.onlineuser.bccb1cd9.mjs} +37 -26
- package/lib/{system.org.c20fe6b2.mjs → system.org.92f4d7f1.mjs} +2 -2
- package/lib/{system.org.79ee5bd6.js → system.org.9f87a010.js} +1 -1
- package/lib/system.permissions.15e6b8b7.js +1 -0
- package/lib/system.permissions.be9238ee.mjs +972 -0
- package/lib/system.plugin.0bccfec4.js +1 -0
- package/lib/{system.plugin.45a0f530.mjs → system.plugin.af27d7ac.mjs} +500 -479
- package/lib/{system.pos.0a3d2a37.js → system.pos.61e58a92.js} +1 -1
- package/lib/{system.pos.7946a99c.mjs → system.pos.fe067063.mjs} +1 -1
- package/lib/{system.promptmanagement.d7250932.mjs → system.promptmanagement.0b9083c5.mjs} +246 -243
- package/lib/system.promptmanagement.e750de82.js +1 -0
- package/lib/{system.role.75da7929.mjs → system.role.67f62146.mjs} +511 -488
- package/lib/system.role.e86b60f1.js +1 -0
- package/lib/{system.sumberrules.4a1376a6.mjs → system.sumberrules.093d998e.mjs} +168 -165
- package/lib/system.sumberrules.810f7b55.js +1 -0
- package/lib/system.team.58ee701b.js +1 -0
- package/lib/{system.team.e6a9608e.mjs → system.team.8911fd95.mjs} +163 -161
- package/lib/system.teammembers.1880f962.js +1 -0
- package/lib/{system.teammembers.4a7e7339.mjs → system.teammembers.35564a00.mjs} +203 -198
- package/lib/{system.timers.eb0b6f3e.mjs → system.timers.4b2d509f.mjs} +2261 -2213
- package/lib/system.timers.9e956553.js +38 -0
- package/lib/system.translation.26b6bb39.js +1 -0
- package/lib/{system.translation.e34f0891.mjs → system.translation.60ec676c.mjs} +435 -429
- package/lib/system.user.134a3988.js +14 -0
- package/lib/{system.user.fa2d2997.mjs → system.user.9a02295e.mjs} +1082 -1026
- package/lib/{system.useraffiliation.518e341e.mjs → system.useraffiliation.96695aeb.mjs} +418 -412
- package/lib/system.useraffiliation.c2421c7e.js +1 -0
- package/lib/{system.webresource.469db736.mjs → system.webresource.016d0000.mjs} +179 -179
- package/lib/system.webresource.e92e8a8f.js +1 -0
- package/lib/{system.welcome.191e98f5.mjs → system.welcome.127b5dd4.mjs} +1 -1
- package/lib/{system.welcome.f64e49f8.js → system.welcome.ff0c85e2.js} +1 -1
- package/lib/table.definition..btnconfig.9847cac5.mjs +938 -0
- package/lib/table.definition..btnconfig.ce57ed41.js +1 -0
- package/lib/table.definition..echartsconfig.625bce88.mjs +2150 -0
- package/lib/table.definition..echartsconfig.d2b65881.js +1 -0
- package/lib/tableDescriptions.a4196776.mjs +80 -0
- package/lib/tableDescriptions.b9b0d7fa.js +1 -0
- package/lib/tcheckboxs.7ea99d35.js +1 -0
- package/lib/{tcheckboxs.090e75eb.mjs → tcheckboxs.999b7c2e.mjs} +2 -2
- package/lib/tcurrency.4afb9192.mjs +85 -0
- package/lib/tcurrency.8a2361f2.js +1 -0
- package/lib/{tdatepicker.8fe48b1b.mjs → tdatepicker.606214fa.mjs} +2 -2
- package/lib/{tdatepicker.b19e689d.js → tdatepicker.8e94a60c.js} +1 -1
- package/lib/{tdictSwitch.2e07dc8a.js → tdictSwitch.ccbdd153.js} +1 -1
- package/lib/{tdictSwitch.43d882c7.mjs → tdictSwitch.e016d4cf.mjs} +2 -2
- package/lib/{tfile.72925615.mjs → tfile.3f39223d.mjs} +2 -2
- package/lib/{tfile.1bc381f9.js → tfile.b3ebdc71.js} +1 -1
- package/lib/{tparticipants.ca5b556c.mjs → tparticipants.5fe27540.mjs} +2 -2
- package/lib/{tparticipants.77b876e2.js → tparticipants.78c8c175.js} +1 -1
- package/lib/{translation.mains.278e4ba6.mjs → translation.mains.2688be5b.mjs} +7 -7
- package/lib/{translation.mains.1ce7e110.js → translation.mains.a6f19343.js} +1 -1
- package/lib/utils.datepicker.js.0a5a699e.js +1 -0
- package/lib/utils.datepicker.js.5549a741.mjs +70 -0
- package/lib/utils.plug.js.9313aead.mjs +31 -0
- package/lib/utils.plug.js.f62510ce.js +1 -0
- package/lib/utils.util.js.333daba2.mjs +439 -0
- package/lib/utils.util.js.c0ba699b.js +1 -0
- package/lib/versionControl.46a7f31a.js +1 -0
- package/lib/versionControl.c53bfb5d.mjs +488 -0
- package/lib/versionEdit.4246d5db.js +1 -0
- package/lib/versionEdit.5a8292ec.mjs +452 -0
- package/lib/view.build.85732408.mjs +1578 -0
- package/lib/view.build.e43a2077.js +1 -0
- package/lib/viewList.868edcd7.js +1 -0
- package/lib/{viewList.5a25c4b6.mjs → viewList.978b72c5.mjs} +70 -92
- package/lib/viewTree.7497ff90.js +1 -0
- package/lib/viewTree.bde43a3b.mjs +409 -0
- package/locale/en_US.js +45 -6
- package/locale/id_ID.js +45 -6
- package/locale/vi_VN.js +45 -6
- package/locale/zh_CN.js +45 -5
- package/package.json +1 -1
- package/lib/addPermission.5036013c.js +0 -1
- package/lib/approvalModel.66f49dfb.js +0 -1
- package/lib/attribute.318f485c.js +0 -1
- package/lib/attribute.a06ac9e7.mjs +0 -237
- package/lib/buildItem.6a834227.js +0 -1
- package/lib/buildItem.fd8634ab.mjs +0 -205
- package/lib/businessRules.0e4dbb3a.js +0 -1
- package/lib/components.chartbi.b043dcdc.mjs +0 -1729
- package/lib/components.chartbi.e4680eaa.js +0 -7
- package/lib/components.echarts.e4d6b13e.js +0 -3
- package/lib/components.iconselector.d712170f.js +0 -1
- package/lib/components.middleware.3bad5748.js +0 -1
- package/lib/components.sidenavmenu.b9bb9304.js +0 -1
- package/lib/components.tableumy.9cf33062.js +0 -1
- package/lib/components.tablevirtual.38d4d3d8.js +0 -1
- package/lib/components.viewformdetails.1621bc18.js +0 -1
- package/lib/components.viewloading.807bbf68.js +0 -1
- package/lib/components.xlsximport.dbd826bb.js +0 -1
- package/lib/createFile.6b37ecf2.js +0 -1
- package/lib/createFile.82d6e415.mjs +0 -239
- package/lib/createSubfolders.47af629c.js +0 -1
- package/lib/drawerContainer.604a1271.mjs +0 -146
- package/lib/drawerContainer.6a9813ce.js +0 -1
- package/lib/fileSearch.65311ded.js +0 -1
- package/lib/flow.designer.1ba3a90d.js +0 -1
- package/lib/flow.list.4eb10554.js +0 -1
- package/lib/form.build.51bd261e.js +0 -1
- package/lib/form.designer.build.5a950455.js +0 -1
- package/lib/form.designer.build.e521c9c6.mjs +0 -5091
- package/lib/formFiled.464856f5.js +0 -1
- package/lib/http.filedocument.7c656b91.js +0 -1
- package/lib/http.filedocument.d456d26a.mjs +0 -156
- package/lib/http.rolemanage.03363732.js +0 -1
- package/lib/index.69ad4631.mjs +0 -44291
- package/lib/index.cca024bf.js +0 -8
- package/lib/layoutBlocks.1a9e3e05.mjs +0 -204
- package/lib/layoutBlocks.5e6be06f.js +0 -1
- package/lib/main.457f4326.js +0 -1
- package/lib/main.4fff412e.js +0 -1
- package/lib/main.77373aa4.mjs +0 -441
- package/lib/main.c3726602.js +0 -1
- package/lib/manage.5bb4f719.js +0 -1
- package/lib/messages.7b74736f.js +0 -9
- package/lib/messages.ad082386.mjs +0 -4889
- package/lib/moveFile.0ce803e0.js +0 -1
- package/lib/moveFile.8310ea94.mjs +0 -254
- package/lib/personal.echarts.b22fba61.mjs +0 -701
- package/lib/personal.echarts.f77bfc9e.js +0 -1
- package/lib/result.19351665.mjs +0 -526
- package/lib/result.e59c0e40.js +0 -1
- package/lib/router.config.2501ec51.js +0 -1
- package/lib/router.config.98a73167.mjs +0 -3172
- package/lib/solution.58580123.js +0 -1
- package/lib/solution.890ff164.mjs +0 -6942
- package/lib/store.config.3cb11578.js +0 -1
- package/lib/system.dict.f5708400.js +0 -1
- package/lib/system.duplicatechecking.8e3a37c0.js +0 -1
- package/lib/system.email.070ab2be.js +0 -1
- package/lib/system.fieldsecurity.3ef07bf7.js +0 -1
- package/lib/system.file.17a7f2ed.js +0 -1
- package/lib/system.notice.96c770a6.js +0 -1
- package/lib/system.noticereceived.dfe4ecc7.js +0 -1
- package/lib/system.onlineuser.e2e39bdc.js +0 -1
- package/lib/system.permissions.90f73461.js +0 -9
- package/lib/system.permissions.c3d34921.mjs +0 -213
- package/lib/system.plugin.b34a3b47.js +0 -1
- package/lib/system.promptmanagement.b5fa6b2d.js +0 -1
- package/lib/system.role.03be0982.js +0 -1
- package/lib/system.sumberrules.bb228fce.js +0 -1
- package/lib/system.team.32183b63.js +0 -1
- package/lib/system.teammembers.847d8ea7.js +0 -1
- package/lib/system.timers.28691ce4.js +0 -38
- package/lib/system.translation.6237f071.js +0 -1
- package/lib/system.user.fca3f2d6.js +0 -14
- package/lib/system.useraffiliation.7547b9c7.js +0 -1
- package/lib/system.webresource.12712b90.js +0 -1
- package/lib/tcheckboxs.99361be3.js +0 -1
- package/lib/tcurrency.0ddac2f8.mjs +0 -92
- package/lib/tcurrency.62763c6d.js +0 -1
- package/lib/utils.datepicker.js.2076c2a2.mjs +0 -61
- package/lib/utils.datepicker.js.8576e2fc.js +0 -1
- package/lib/utils.util.js.50d1ec9c.js +0 -1
- package/lib/utils.util.js.82cd8447.mjs +0 -424
- package/lib/view.build.b44fd7d7.js +0 -1
- package/lib/view.build.f2a9fcfb.mjs +0 -2727
- package/lib/viewList.be5a5ec5.js +0 -1
|
@@ -0,0 +1,2150 @@
|
|
|
1
|
+
import { v as y, u as c, e as b } from "./utils.util.js.333daba2.mjs";
|
|
2
|
+
import { o as p } from "./http.syscodegenerateconfigmanage.6d2e5da0.mjs";
|
|
3
|
+
import { C as v, D as $, E as x, a as g, f as F, F as D } from "./http.tabledevelopment.3dcb3e97.mjs";
|
|
4
|
+
import { m as u, n as m } from "./components.chartbi.571c5ff5.mjs";
|
|
5
|
+
import { S as C } from "./http.main.aefea27d.mjs";
|
|
6
|
+
import { t as k } from "./utils.mixins.js.be01e599.mjs";
|
|
7
|
+
const S = {
|
|
8
|
+
props: {
|
|
9
|
+
table: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: () => ({})
|
|
12
|
+
},
|
|
13
|
+
holderType: {
|
|
14
|
+
type: [String, Number],
|
|
15
|
+
default: 1
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
data() {
|
|
19
|
+
return {
|
|
20
|
+
width: "80%",
|
|
21
|
+
record: null,
|
|
22
|
+
confirmLoading: !1,
|
|
23
|
+
visible: !1,
|
|
24
|
+
fullscreen: !1,
|
|
25
|
+
show: !1,
|
|
26
|
+
buttons: [
|
|
27
|
+
{
|
|
28
|
+
displayName: "\u786E\u5B9A",
|
|
29
|
+
functionName: "handleSubmit",
|
|
30
|
+
show: !0,
|
|
31
|
+
transKey: "gd.btn.confirm",
|
|
32
|
+
icon: "el-icon-document-checked"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
ruleFormData: {
|
|
36
|
+
tableName: "",
|
|
37
|
+
name: "",
|
|
38
|
+
transKey: "",
|
|
39
|
+
type: "1",
|
|
40
|
+
colorList: [],
|
|
41
|
+
code: "",
|
|
42
|
+
mode: "",
|
|
43
|
+
viewId: "",
|
|
44
|
+
columnName: "",
|
|
45
|
+
list: ""
|
|
46
|
+
},
|
|
47
|
+
list: [],
|
|
48
|
+
viewList: [],
|
|
49
|
+
loadFieldData: [],
|
|
50
|
+
loadCountData: [],
|
|
51
|
+
loadTableData: [],
|
|
52
|
+
selectedRowKeys: [],
|
|
53
|
+
selectedRows: [],
|
|
54
|
+
pid: [],
|
|
55
|
+
tableShow: !1,
|
|
56
|
+
transKey: null,
|
|
57
|
+
loadData: (l) => this.getLoadField(),
|
|
58
|
+
rules: {
|
|
59
|
+
tableName: [
|
|
60
|
+
{
|
|
61
|
+
required: !0,
|
|
62
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
63
|
+
trigger: "change"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
name: [
|
|
67
|
+
{
|
|
68
|
+
required: !0,
|
|
69
|
+
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
70
|
+
trigger: "change"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
code: [
|
|
74
|
+
{
|
|
75
|
+
required: !0,
|
|
76
|
+
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
77
|
+
trigger: "change"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
pattern: /^[a-zA-Z]([a-zA-Z0-9]+)?$/,
|
|
81
|
+
message: this.$i18nt("gd.view.viewNameTip", "\u8BF7\u8F93\u5165\u82F1\u6587\u5B57\u6BCD!")
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
type: [
|
|
85
|
+
{
|
|
86
|
+
required: !0,
|
|
87
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
88
|
+
trigger: "change"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
list: [
|
|
92
|
+
{
|
|
93
|
+
required: !0,
|
|
94
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
95
|
+
trigger: "change"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
viewId: [
|
|
99
|
+
{
|
|
100
|
+
required: !0,
|
|
101
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
102
|
+
trigger: "change"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
tableColumns: [
|
|
107
|
+
{
|
|
108
|
+
type: "selection",
|
|
109
|
+
width: "80"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
type: "selection-radio",
|
|
113
|
+
width: "80"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
transKey: "gd.field.describe",
|
|
117
|
+
prop: "columncomment",
|
|
118
|
+
label: "\u663E\u793A\u540D",
|
|
119
|
+
width: "160",
|
|
120
|
+
align: "left",
|
|
121
|
+
showOverflowTooltip: !0
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
transKey: "gd.field.field",
|
|
125
|
+
prop: "columnname",
|
|
126
|
+
label: "\u5B57\u6BB5\u540D",
|
|
127
|
+
width: "140",
|
|
128
|
+
align: "left",
|
|
129
|
+
showOverflowTooltip: !0
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
transKey: "gd.field.effectType",
|
|
133
|
+
prop: "effectType",
|
|
134
|
+
label: "\u7C7B\u578B",
|
|
135
|
+
width: "110",
|
|
136
|
+
align: "left",
|
|
137
|
+
type: "slot",
|
|
138
|
+
slotType: "effectType",
|
|
139
|
+
showOverflowTooltip: !0
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
};
|
|
143
|
+
},
|
|
144
|
+
components: { EffectTypeIcon: () => import("./components.xlsximport.81df7841.mjs").then((l) => l.e) },
|
|
145
|
+
computed: {
|
|
146
|
+
megs() {
|
|
147
|
+
let l = "";
|
|
148
|
+
return this.list.forEach((e, t) => {
|
|
149
|
+
l += t == 0 ? e.alias : " ," + e.alias;
|
|
150
|
+
}), `${this.$i18nt("gd.echarts.selected", "\u5DF2\u9009")}: ${l}`;
|
|
151
|
+
},
|
|
152
|
+
getTableColumns() {
|
|
153
|
+
return this.tableColumns.filter((l) => {
|
|
154
|
+
let e = this.ruleFormData.mode === "1" || this.ruleFormData.columnName !== "" ? "radio" : "checkbox";
|
|
155
|
+
return l.type === "selection" ? e === "checkbox" : l.type === "selection-radio" ? e === "radio" : !0;
|
|
156
|
+
});
|
|
157
|
+
},
|
|
158
|
+
disabled() {
|
|
159
|
+
return !!this.record;
|
|
160
|
+
},
|
|
161
|
+
title() {
|
|
162
|
+
return this.record ? this.$i18nt("gd.https.edit", "\u7F16\u8F91") : this.$i18nt("gd.https.add", "\u65B0\u589E");
|
|
163
|
+
},
|
|
164
|
+
height() {
|
|
165
|
+
let l = this.fullscreen ? 190 : 340;
|
|
166
|
+
return this.screenHeight - l;
|
|
167
|
+
},
|
|
168
|
+
...u(["screenHeight", "tableLists", "echartsColor", "primaryColor", "tablePageSize", "tableSize"])
|
|
169
|
+
},
|
|
170
|
+
methods: {
|
|
171
|
+
present() {
|
|
172
|
+
(this.list.length === 0 ? 0 : this.type) === 0 ? this.$refs.VEcharts.setType() : this.seeEcharts();
|
|
173
|
+
},
|
|
174
|
+
seeEcharts() {
|
|
175
|
+
const l = this.tableLists.filter((e) => e.tablename === this.ruleFormData.tableName)[0];
|
|
176
|
+
this.$nextTick(() => {
|
|
177
|
+
setTimeout(() => {
|
|
178
|
+
let e = {
|
|
179
|
+
tableId: l.id,
|
|
180
|
+
view: this.viewList.filter((t) => t.id == this.ruleFormData.viewId)[0],
|
|
181
|
+
viewId: this.ruleFormData.viewId,
|
|
182
|
+
mode: this.ruleFormData.mode,
|
|
183
|
+
type: this.ruleFormData.type,
|
|
184
|
+
columnName: this.ruleFormData.columnName,
|
|
185
|
+
list: this.list,
|
|
186
|
+
name: this.ruleFormData.name,
|
|
187
|
+
transKey: this.transKey
|
|
188
|
+
};
|
|
189
|
+
this.$refs.VEcharts.init(e);
|
|
190
|
+
}, 0);
|
|
191
|
+
});
|
|
192
|
+
},
|
|
193
|
+
save() {
|
|
194
|
+
let l = this.record ? this.holderType == 2 ? v : $ : x;
|
|
195
|
+
const e = this.tableLists.filter((a) => a.tablename === this.ruleFormData.tableName)[0];
|
|
196
|
+
let t = {
|
|
197
|
+
name: this.ruleFormData.name,
|
|
198
|
+
syscodegenid: e.id,
|
|
199
|
+
collectway: this.ruleFormData.mode,
|
|
200
|
+
echartstype: this.ruleFormData.type,
|
|
201
|
+
classlabel: JSON.stringify(this.list),
|
|
202
|
+
echartsorder: this.ruleFormData.columnName !== "" ? this.ruleFormData.columnName : null,
|
|
203
|
+
echartspreview: this.ruleFormData.viewId !== "" ? this.ruleFormData.viewId : null,
|
|
204
|
+
holdertype: this.holderType,
|
|
205
|
+
colour: this.ruleFormData.colorList.join(","),
|
|
206
|
+
code: this.ruleFormData.code
|
|
207
|
+
};
|
|
208
|
+
this.record && (t = Object.assign(this.record, t)), l(t).then((a) => {
|
|
209
|
+
a.success ? (this.$message.success(this.$i18nt("gd.https.addSucc", "\u65B0\u589E\u6210\u529F")), this.$emit("ok", a.data), this.closed()) : this.$message.error(this.$i18nt("gd.https.addFail", "\u65B0\u589E\u5931\u8D25:") + a.message), this.confirmLoading = !1;
|
|
210
|
+
});
|
|
211
|
+
},
|
|
212
|
+
handleSubmit() {
|
|
213
|
+
this.confirmLoading = !0, this.$refs.ruleForm.validate((l) => {
|
|
214
|
+
l ? this.save() : this.confirmLoading = !1;
|
|
215
|
+
});
|
|
216
|
+
},
|
|
217
|
+
hidePopover() {
|
|
218
|
+
let l = [];
|
|
219
|
+
this.loadFieldData.forEach((e) => {
|
|
220
|
+
this.selectedRowKeys.filter((a) => e.id === a)[0] && l.push({
|
|
221
|
+
dataIndex: e.dataindex,
|
|
222
|
+
alias: e.alias,
|
|
223
|
+
transKey: e.transkey,
|
|
224
|
+
id: e.id,
|
|
225
|
+
columnComment: e.columncomment,
|
|
226
|
+
dictTypeCode: e.dicttypecode
|
|
227
|
+
}), e.children && e.children.length > 0 && e.children.forEach((a) => {
|
|
228
|
+
if (this.selectedRowKeys.filter((s) => a.id === s)[0]) {
|
|
229
|
+
let s = this.$i18nt(`Dynamics.${e.transkey}`, e.columncomment), r = this.$i18nt(`Dynamics.${a.transkey}`, a.columncomment);
|
|
230
|
+
l.push({
|
|
231
|
+
dataIndex: a.dataindex,
|
|
232
|
+
alias: a.alias,
|
|
233
|
+
transKey: a.transkey,
|
|
234
|
+
id: a.id,
|
|
235
|
+
columnComment: `${r}(${s})`,
|
|
236
|
+
dictTypeCode: a.dicttypecode
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
}), this.list = [...l], this.ruleFormData.list = JSON.stringify(l), this.tableShow = !1, this.present();
|
|
241
|
+
},
|
|
242
|
+
showPopover() {
|
|
243
|
+
this.tableShow = !0, this.$nextTick(() => {
|
|
244
|
+
setTimeout(() => {
|
|
245
|
+
this.refresh(!1);
|
|
246
|
+
}, 300);
|
|
247
|
+
});
|
|
248
|
+
},
|
|
249
|
+
getLoadField() {
|
|
250
|
+
return new Promise((l, e) => {
|
|
251
|
+
let t = [...this.loadFieldData].filter((a) => !(a.effecttype == "about" && a.columnname == (a.relations + "_AboutTable").toLowerCase()));
|
|
252
|
+
t.forEach((a, i) => {
|
|
253
|
+
if (a.children && a.children.length > 0) {
|
|
254
|
+
let s = [];
|
|
255
|
+
a.children.forEach((r, o) => {
|
|
256
|
+
if (r.effecttype != "fk" && r.effecttype != "about") {
|
|
257
|
+
let n = this.$i18nt(`Dynamics.${a.transkey}`, a.columncomment), d = this.$i18nt(`Dynamics.${r.transkey}`, r.columncomment), h = Object.assign(
|
|
258
|
+
{ ...r },
|
|
259
|
+
{ id: r.id + "-" + a.id },
|
|
260
|
+
{
|
|
261
|
+
dataindex: y(r, a),
|
|
262
|
+
alias: `${d}(${n})`,
|
|
263
|
+
transkey: a.transkey ? a.transkey : null,
|
|
264
|
+
transkeys: r.transkey ? r.transkey : null,
|
|
265
|
+
columncommentd: `${d}`
|
|
266
|
+
}
|
|
267
|
+
);
|
|
268
|
+
s.push(h);
|
|
269
|
+
}
|
|
270
|
+
}), s = s.filter((r) => !(r.effecttype == "about" && r.columnname == (r.relations + "_AboutTable").toLowerCase())), this.ruleFormData.mode !== "1" && this.ruleFormData.columnName === "" && (s = s.filter((r) => r.effecttype == "currency" || r.effecttype == "inputnumber" || r.effecttype == "double")), t[i].children = s.length == 0 ? null : [...s];
|
|
271
|
+
}
|
|
272
|
+
t[i].alias = this.$i18nt(`Dynamics.${a.transkey}`, a.columncomment), t[i].dataindex = y(a, a), t[i].transkey = a.transkey ? a.transkey : null, t[i].transkeys = null, t[i].columncommentd = this.$i18nt(`Dynamics.${a.transkey}`, a.columncomment);
|
|
273
|
+
}), this.ruleFormData.mode !== "1" && this.ruleFormData.columnName === "" && (t = t.filter((a) => a.effecttype == "currency" || a.effecttype == "inputnumber" || a.effecttype == "double" ? !0 : !!((a.effecttype == "fk" || a.effecttype == "about") && a.children && a.children.length > 0))), this.loadTableData = [...t], l({ pageNo: 1, pageSize: 200, totalRows: 0, rows: this.loadTableData });
|
|
274
|
+
});
|
|
275
|
+
},
|
|
276
|
+
changeMode() {
|
|
277
|
+
let l = this.show;
|
|
278
|
+
this.show = this.ruleFormData.mode !== "1", l != this.show && (this.ruleFormData.columnName = "", this.ruleFormData.list = "", this.list = [], this.selectedRowKeys = [], this.selectedRows = []), this.present();
|
|
279
|
+
},
|
|
280
|
+
changeColumnName() {
|
|
281
|
+
this.list.length > 1 && (this.list = [], this.selectedRowKeys = [], this.selectedRows = []), this.present();
|
|
282
|
+
},
|
|
283
|
+
changeTable() {
|
|
284
|
+
this.ruleFormData = Object.assign(this.ruleFormData, {
|
|
285
|
+
viewId: "",
|
|
286
|
+
columnName: "",
|
|
287
|
+
list: ""
|
|
288
|
+
}), this.list = [], this.selectedRowKeys = [], this.selectedRows = [], this.init();
|
|
289
|
+
},
|
|
290
|
+
okColor(l) {
|
|
291
|
+
this.ruleFormData.colorList = [...l];
|
|
292
|
+
},
|
|
293
|
+
editEchartsTheme() {
|
|
294
|
+
this.$refs.echartsTheme.open(this.ruleFormData.colorList);
|
|
295
|
+
},
|
|
296
|
+
init() {
|
|
297
|
+
this.confirmLoading = !0, Promise.all([this.getLoadData(), this.getViewList()]).then((l) => {
|
|
298
|
+
this.confirmLoading = !1, this.present();
|
|
299
|
+
});
|
|
300
|
+
},
|
|
301
|
+
open(l) {
|
|
302
|
+
this.record = l, this.visible = !0;
|
|
303
|
+
const e = this.tableLists.filter((t) => t.tablename === this.table.tablename)[0];
|
|
304
|
+
if (this.transKey = l && l.transkey ? l.transkey : null, this.list = l && l.classlabel ? JSON.parse(l.classlabel) : [], this.list.length > 0) {
|
|
305
|
+
let t = [];
|
|
306
|
+
this.list.forEach((a) => {
|
|
307
|
+
t.push(a.id);
|
|
308
|
+
}), this.selectedRowKeys = t;
|
|
309
|
+
}
|
|
310
|
+
this.ruleFormData = {
|
|
311
|
+
tableName: e ? e.tablename : "",
|
|
312
|
+
name: l ? l.name : "",
|
|
313
|
+
type: l ? String(l.echartstype) : "1",
|
|
314
|
+
colorList: l && l.colour ? l.colour.split(",") : [...this.echartsColor],
|
|
315
|
+
code: l ? l.code ? l.code : "" : c(8),
|
|
316
|
+
columnName: l && l.echartsorder ? l.echartsorder : "",
|
|
317
|
+
list: l ? JSON.parse(l.classlabel) : "",
|
|
318
|
+
viewId: l ? Number(l.echartspreview) : "",
|
|
319
|
+
mode: l ? String(l.collectway) : "1",
|
|
320
|
+
transKey: l ? l.transkey : ""
|
|
321
|
+
}, this.show = this.ruleFormData.mode !== "1", this.$nextTick(() => {
|
|
322
|
+
this.$refs.ruleForm.clearValidate(), this.init();
|
|
323
|
+
});
|
|
324
|
+
},
|
|
325
|
+
getViewList() {
|
|
326
|
+
const l = this.tableLists.filter((e) => e.tablename === this.ruleFormData.tableName)[0];
|
|
327
|
+
if (!l)
|
|
328
|
+
return new Promise((e, t) => {
|
|
329
|
+
e();
|
|
330
|
+
});
|
|
331
|
+
g({
|
|
332
|
+
SysCodeGenId: l.id
|
|
333
|
+
}).then((e) => {
|
|
334
|
+
if (e.success) {
|
|
335
|
+
let t = e.data.filter((a) => a.type == 1);
|
|
336
|
+
this.viewList = t;
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
},
|
|
340
|
+
getLoadData() {
|
|
341
|
+
const l = this.tableLists.filter((e) => e.tablename === this.ruleFormData.tableName)[0];
|
|
342
|
+
return l ? p({
|
|
343
|
+
codeGenId: l.id
|
|
344
|
+
}).then((e) => {
|
|
345
|
+
let t = [], a = e.data.filter((r) => (r.children && r.children.length > 0 && t.push(r.id), r.effecttype == "about" && r.columnname == (r.relations + "_AboutTable").toLowerCase() ? !1 : !(r.effecttype == "currency" && r.columnname == (r.relations + "_Currency_Base").toLowerCase())));
|
|
346
|
+
this.pid = t, this.loadFieldData = [...e.data];
|
|
347
|
+
let i = a.filter((r) => r.effecttype == "currency" || r.effecttype == "inputnumber" || r.effecttype == "double"), s = a.filter((r) => r.dicttypecode).filter((r) => !!this.isChecked(r.dicttypecode));
|
|
348
|
+
return this.loadCountData = i.concat(s), e.data;
|
|
349
|
+
}) : new Promise((e, t) => {
|
|
350
|
+
e();
|
|
351
|
+
});
|
|
352
|
+
},
|
|
353
|
+
isChecked(l) {
|
|
354
|
+
return this.$options.filters.dictData(l).every((t, a, i) => !isNaN(Number(t.name)));
|
|
355
|
+
},
|
|
356
|
+
refresh(l = !0) {
|
|
357
|
+
this.$refs.table.refresh(l);
|
|
358
|
+
},
|
|
359
|
+
closed() {
|
|
360
|
+
this.fullscreen = !1, this.visible = !1, this.selectedRowKeys = [], this.selectedRows = [];
|
|
361
|
+
},
|
|
362
|
+
toggleFullscreen() {
|
|
363
|
+
this.fullscreen = !this.fullscreen, this.present();
|
|
364
|
+
},
|
|
365
|
+
onSelectChange(l, e) {
|
|
366
|
+
this.selectedRowKeys = l, this.selectedRows = e;
|
|
367
|
+
},
|
|
368
|
+
doEvent(l) {
|
|
369
|
+
let e = l.item.functionName;
|
|
370
|
+
this[e] && this[e]();
|
|
371
|
+
},
|
|
372
|
+
getDictionary(l) {
|
|
373
|
+
return this.$options.filters.dictData(l);
|
|
374
|
+
},
|
|
375
|
+
lookupSeled(l) {
|
|
376
|
+
this.ruleFormData.name = l.defaulttext;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
};
|
|
380
|
+
var _ = function() {
|
|
381
|
+
var e = this, t = e._self._c;
|
|
382
|
+
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(a) {
|
|
383
|
+
e.visible = a;
|
|
384
|
+
}, 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" }], staticClass: "generator-form" }, [t("div", { staticClass: "view-config" }, [t("div", { staticClass: "config-item" }, [e.visible ? t("gd-echarts", { ref: "VEcharts", attrs: { loadData: e.loadFieldData, color: e.ruleFormData.colorList } }) : e._e()], 1), t("div", { staticClass: "config-item config-items" }, [t("div", { staticClass: "b" }, [t("el-form", { ref: "ruleForm", attrs: { "label-width": "110px", "label-position": "top", model: e.ruleFormData, size: "mini", rules: e.rules }, nativeOn: { submit: function(a) {
|
|
385
|
+
a.preventDefault();
|
|
386
|
+
} } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.view.sourceTable", "\u6765\u6E90\u8868"), prop: "tableName" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", disabled: !!e.table.tablename }, on: { change: e.changeTable }, model: { value: e.ruleFormData.tableName, callback: function(a) {
|
|
387
|
+
e.$set(e.ruleFormData, "tableName", a);
|
|
388
|
+
}, expression: "ruleFormData.tableName" } }, e._l(e.tableLists, function(a, i) {
|
|
389
|
+
return t("el-option", { key: a.tablename, attrs: { value: a.tablename, label: e.$i18nt(`Dynamics.${a.transkey}`, a.busname) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.busname)) + " (" + e._s(a.tablename) + ") ")]);
|
|
390
|
+
}), 1)], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.name", "\u540D\u79F0"), prop: "name" } }, [e.record ? e._e() : t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleFormData.name, callback: function(a) {
|
|
391
|
+
e.$set(e.ruleFormData, "name", a);
|
|
392
|
+
}, expression: "ruleFormData.name" } }), e.record && e.visible ? t("gd-translation", { ref: "gdTranslation", attrs: { keyI18n: "transKey", recordData: e.ruleFormData, type: 2 }, on: { lookupSeled: e.lookupSeled } }) : e._e()], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.approval.code", "\u7F16\u7801"), prop: "code" } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), disabled: e.disabled }, model: { value: e.ruleFormData.code, callback: function(a) {
|
|
393
|
+
e.$set(e.ruleFormData, "code", a);
|
|
394
|
+
}, expression: "ruleFormData.code" } })], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.viewId", "\u7528\u4E8E\u56FE\u8868\u9884\u89C8\u7684\u89C6\u56FE"), prop: "viewId" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.present }, model: { value: e.ruleFormData.viewId, callback: function(a) {
|
|
395
|
+
e.$set(e.ruleFormData, "viewId", a);
|
|
396
|
+
}, expression: "ruleFormData.viewId" } }, e._l(e.viewList, function(a, i) {
|
|
397
|
+
return t("el-option", { key: a.id, attrs: { value: a.id, label: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } });
|
|
398
|
+
}), 1)], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.type", "\u56FE\u8868\u7C7B\u578B"), prop: "type" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.present }, model: { value: e.ruleFormData.type, callback: function(a) {
|
|
399
|
+
e.$set(e.ruleFormData, "type", a);
|
|
400
|
+
}, expression: "ruleFormData.type" } }, e._l(e.getDictionary("table_echarts_type"), function(a, i) {
|
|
401
|
+
return t("el-option", { key: a.code, attrs: { value: a.code, label: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } }, [t("span", [a.code === "1" ? t("i", { staticClass: "gd-icons gd-icon-zhuzhuangtu" }) : e._e(), a.code === "2" ? t("i", { staticClass: "gd-icons gd-icon-bingtu" }) : e._e(), a.code === "3" ? t("i", { staticClass: "gd-icons gd-icon-loudoutu" }) : e._e(), a.code === "4" ? t("i", { staticClass: "gd-icons gd-icon-zhexiantu" }) : e._e()]), t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.name)) + " ")])]);
|
|
402
|
+
}), 1)], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.settings.echartsColor", "\u56FE\u8868\u989C\u8272") } }, [t("div", { staticClass: "echarts-color" }, [e._l(e.ruleFormData.colorList, function(a) {
|
|
403
|
+
return [a == 0 ? t("div", { staticClass: "echarts-color-item", style: `background:${e.primaryColor}` }) : t("div", { staticClass: "echarts-color-item", style: `background:${a}` })];
|
|
404
|
+
}), t("div", { staticClass: "echarts-color-btn active-color", on: { click: e.editEchartsTheme } }, [e._v(" " + e._s(e.$i18nt("gd.btn.edit", "\u7F16\u8F91")) + " ")])], 2)]), t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.mode", "\u6C47\u603B\u65B9\u5F0F"), prop: "mode" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.changeMode }, model: { value: e.ruleFormData.mode, callback: function(a) {
|
|
405
|
+
e.$set(e.ruleFormData, "mode", a);
|
|
406
|
+
}, expression: "ruleFormData.mode" } }, e._l(e.getDictionary("table_echarts_mode"), function(a, i) {
|
|
407
|
+
return t("el-option", { key: a.code, attrs: { value: a.code, label: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } });
|
|
408
|
+
}), 1)], 1), e.show ? t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.columnName", "\u56FE\u4F8B\u6761\u76EE(\u5E8F\u5217)"), prop: "columnName" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.changeColumnName }, model: { value: e.ruleFormData.columnName, callback: function(a) {
|
|
409
|
+
e.$set(e.ruleFormData, "columnName", a);
|
|
410
|
+
}, expression: "ruleFormData.columnName" } }, e._l(e.loadCountData, function(a, i) {
|
|
411
|
+
return t("el-option", { key: a.columnname, attrs: { value: a.columnname, label: e.$i18nt(`Dynamics.${a.transkey}`, a.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: a.effecttype } }), t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.columncomment)) + " (" + e._s(a.columnname) + ") ")])], 1);
|
|
412
|
+
}), 1), t("el-alert", { staticStyle: { "margin-top": "6px" }, attrs: { title: e.$i18nt(
|
|
413
|
+
"gd.echarts.columnNameTip",
|
|
414
|
+
"\u53EF\u9009\u62E9\u8BA1\u7B97\u5B57\u6BB5(\u6309\u9009\u62E9\u5B57\u6BB5\u8FD0\u7B97)\uFF1B\u5982\u9700\u9009\u62E9\u5B57\u6BB5\u542B\u6709\u5B57\u5178,\u8BF7\u6309\u5B57\u5178\u540D\u79F0\u8BBE\u7F6E\u503C(\u6309\u5B57\u5178\u503C\u540D\u79F0\u8FD0\u7B97)\u3002"
|
|
415
|
+
), type: "info", "show-icon": "", closable: !1 } })], 1) : e._e(), t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.label", "\u6C34\u5E73(\u5206\u7C7B)\u8F74\u6807\u7B7E"), prop: "list" } }, [t("el-popover", { attrs: { placement: "top-end", trigger: "click" }, on: { hide: e.hidePopover, show: e.showPopover } }, [t("span", { staticClass: "el-dropdown-link", attrs: { slot: "reference" }, slot: "reference" }, [t("el-button", { attrs: { type: "primary", disabled: e.ruleFormData.tableName === "" } }, [e._v(" " + e._s(e.$i18nt("gd.echarts.addLabel", "\u6DFB\u52A0\u6C34\u5E73(\u5206\u7C7B)\u8F74\u6807\u7B7E")) + " ")])], 1), t("div", [e.tableShow ? t("gd-table-umy", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.getTableColumns, selectedRowKeys: e.selectedRowKeys, height: e.height, showPagination: !1, disabledRowId: e.pid, initialLoading: !1, disabledRefresh: !0, tableTree: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "effectType", fn: function({ column: a, row: i }) {
|
|
416
|
+
return [e._v(" " + e._s(e._f("dictType")("code_gen_effect_type", i.effecttype)) + " ")];
|
|
417
|
+
} }], null, !1, 4060202120) }) : e._e()], 1)]), e.list.length == 0 ? t("el-alert", { staticStyle: { "margin-top": "6px" }, attrs: { title: e.$i18nt("gd.echarts.addsLabel", "\u8BF7\u6DFB\u52A0\u6C34\u5E73(\u5206\u7C7B)\u8F74\u6807\u7B7E"), type: "warning", "show-icon": "", closable: !1 } }) : t("el-alert", { staticStyle: { "margin-top": "6px" }, attrs: { title: e.megs, type: "success", "show-icon": "", closable: !1 } })], 1)], 1)], 1)])])])], 2), t("gd-color-editor", { ref: "echartsTheme", on: { ok: e.okColor } })], 1);
|
|
418
|
+
}, w = [], T = /* @__PURE__ */ m(
|
|
419
|
+
S,
|
|
420
|
+
_,
|
|
421
|
+
w,
|
|
422
|
+
!1,
|
|
423
|
+
null,
|
|
424
|
+
"893f12cc",
|
|
425
|
+
null,
|
|
426
|
+
null
|
|
427
|
+
);
|
|
428
|
+
const L = T.exports, N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
429
|
+
__proto__: null,
|
|
430
|
+
default: L
|
|
431
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
432
|
+
const P = [
|
|
433
|
+
{ code: 1, name: "\u5347\u5E8F", transKey: "gd.view.asc" },
|
|
434
|
+
{ code: 2, name: "\u964D\u5E8F", transKey: "gd.view.desc" }
|
|
435
|
+
];
|
|
436
|
+
var f = null;
|
|
437
|
+
const q = {
|
|
438
|
+
props: {
|
|
439
|
+
data: {
|
|
440
|
+
type: Object,
|
|
441
|
+
required: !0
|
|
442
|
+
},
|
|
443
|
+
prefixKey: {
|
|
444
|
+
type: String,
|
|
445
|
+
default: ""
|
|
446
|
+
},
|
|
447
|
+
suffixKey: {
|
|
448
|
+
type: String,
|
|
449
|
+
default: ""
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
data() {
|
|
453
|
+
return {
|
|
454
|
+
width: "80%",
|
|
455
|
+
record: {},
|
|
456
|
+
confirmLoading: !1,
|
|
457
|
+
visible: !1,
|
|
458
|
+
fullscreen: !1,
|
|
459
|
+
show: !1,
|
|
460
|
+
columnName: "",
|
|
461
|
+
buttons: [
|
|
462
|
+
{
|
|
463
|
+
displayName: "\u786E\u5B9A",
|
|
464
|
+
functionName: "handleSubmit",
|
|
465
|
+
show: !0,
|
|
466
|
+
transKey: "gd.btn.confirm",
|
|
467
|
+
icon: "el-icon-document-checked"
|
|
468
|
+
}
|
|
469
|
+
],
|
|
470
|
+
ruleFormData: {
|
|
471
|
+
tableName: "",
|
|
472
|
+
name: "",
|
|
473
|
+
transKey: null,
|
|
474
|
+
colorList: [],
|
|
475
|
+
viewId: "",
|
|
476
|
+
columnName: "",
|
|
477
|
+
sequence: "",
|
|
478
|
+
classLabel: "",
|
|
479
|
+
langs: [],
|
|
480
|
+
labelShow: !1,
|
|
481
|
+
smooth: !1,
|
|
482
|
+
showSymbol: !0,
|
|
483
|
+
labelRotate: 45,
|
|
484
|
+
labelFontSize: 14,
|
|
485
|
+
overlayLineChart: !1,
|
|
486
|
+
labelTextPosition: "top",
|
|
487
|
+
legendPosition: ["", "", "", ""],
|
|
488
|
+
gridPosition: ["60", "4%", "3%", "3%"],
|
|
489
|
+
overlayStack: !1,
|
|
490
|
+
areaStyleStack: !1,
|
|
491
|
+
legendShow: !0,
|
|
492
|
+
labelFontColor: "#333",
|
|
493
|
+
textFontColor: "#333",
|
|
494
|
+
textFontSize: 14,
|
|
495
|
+
legendOrient: "horizontal",
|
|
496
|
+
legendTextColor: "#333",
|
|
497
|
+
xAxisLabelColor: "#333",
|
|
498
|
+
labelLineColor: "#333",
|
|
499
|
+
emphasisFocus: "series",
|
|
500
|
+
lineStyleWidth: 1,
|
|
501
|
+
numericalPrecision: 2,
|
|
502
|
+
numericalSummary: !1,
|
|
503
|
+
customApi: "",
|
|
504
|
+
dataType: "table"
|
|
505
|
+
},
|
|
506
|
+
classLabel: [],
|
|
507
|
+
sequence: [],
|
|
508
|
+
stackList: [],
|
|
509
|
+
viewList: [],
|
|
510
|
+
loadFieldData: [],
|
|
511
|
+
loadTableData: [],
|
|
512
|
+
ruleList: [],
|
|
513
|
+
tableShow: !1,
|
|
514
|
+
transKey: null,
|
|
515
|
+
rules: {
|
|
516
|
+
tableName: [
|
|
517
|
+
{
|
|
518
|
+
required: !0,
|
|
519
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
520
|
+
trigger: "change"
|
|
521
|
+
}
|
|
522
|
+
],
|
|
523
|
+
sequence: [
|
|
524
|
+
{
|
|
525
|
+
required: !0,
|
|
526
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
527
|
+
trigger: "change"
|
|
528
|
+
}
|
|
529
|
+
],
|
|
530
|
+
classLabel: [
|
|
531
|
+
{
|
|
532
|
+
required: !0,
|
|
533
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
534
|
+
trigger: "change"
|
|
535
|
+
}
|
|
536
|
+
],
|
|
537
|
+
viewId: [
|
|
538
|
+
{
|
|
539
|
+
required: !0,
|
|
540
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
541
|
+
trigger: "change"
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
customApi: [
|
|
545
|
+
{
|
|
546
|
+
required: !0,
|
|
547
|
+
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
548
|
+
trigger: "change"
|
|
549
|
+
}
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
uuidEcharts: "",
|
|
553
|
+
selShow: !0,
|
|
554
|
+
defaultSortList: P,
|
|
555
|
+
dateFilterRule: [],
|
|
556
|
+
columnNameFilter: "",
|
|
557
|
+
selShowFilter: !0,
|
|
558
|
+
customFieldData: [],
|
|
559
|
+
tableFieldData: []
|
|
560
|
+
};
|
|
561
|
+
},
|
|
562
|
+
components: {
|
|
563
|
+
EffectTypeIcon: () => import("./components.xlsximport.81df7841.mjs").then((l) => l.e),
|
|
564
|
+
ChartDisplayRules: () => import("./chartDisplayRules.370065e8.mjs")
|
|
565
|
+
},
|
|
566
|
+
computed: {
|
|
567
|
+
getDictionaryAll() {
|
|
568
|
+
return this.$options.filters.dictDataAll();
|
|
569
|
+
},
|
|
570
|
+
effectTypeList() {
|
|
571
|
+
return this.getDictionary("code_gen_effect_type").filter((e) => ["datepicker", "input", "inputnumber", "select", "double"].includes(e.code));
|
|
572
|
+
},
|
|
573
|
+
hasClassLabelConfig() {
|
|
574
|
+
return this.classLabel.filter((l) => l.effectType === "datepicker");
|
|
575
|
+
},
|
|
576
|
+
hasStackGroup() {
|
|
577
|
+
const l = this.sequence.filter((e) => ["1"].includes(e.type));
|
|
578
|
+
return this.ruleFormData.overlayStack && l.length === this.sequence.length;
|
|
579
|
+
},
|
|
580
|
+
hasOverlayStack() {
|
|
581
|
+
const l = this.sequence.filter((t) => ["4"].includes(t.type)), e = this.sequence.filter((t) => ["1"].includes(t.type));
|
|
582
|
+
return l.length === this.sequence.length || e.length === this.sequence.length;
|
|
583
|
+
},
|
|
584
|
+
hasAreaStyleStack() {
|
|
585
|
+
return this.sequence.filter((e) => ["4"].includes(e.type)).length === this.sequence.length;
|
|
586
|
+
},
|
|
587
|
+
predefine() {
|
|
588
|
+
return ["#F5222D", "#52C41A", "#FAAD14", "#13C2C2", "#1890FF", "#722ED1", "#eee", "#333", "#666", "#999"];
|
|
589
|
+
},
|
|
590
|
+
hasOverlay() {
|
|
591
|
+
const l = this.sequence.filter((e) => ["1"].includes(e.type));
|
|
592
|
+
return this.classLabel.length === 2 && this.hasSequenceConfig && l.length === this.sequence.length;
|
|
593
|
+
},
|
|
594
|
+
hasSequenceConfig() {
|
|
595
|
+
return this.sequence.filter((e) => ["2", "3"].includes(e.type))[0] ? [] : this.sequence;
|
|
596
|
+
},
|
|
597
|
+
displayModeList() {
|
|
598
|
+
return [
|
|
599
|
+
{
|
|
600
|
+
code: "none",
|
|
601
|
+
name: "\u7A7A\u767D",
|
|
602
|
+
transkey: "gd.echarts.none"
|
|
603
|
+
}
|
|
604
|
+
].concat(this.getDictionary("statistical_value_unit"));
|
|
605
|
+
},
|
|
606
|
+
labelPositionList() {
|
|
607
|
+
return [
|
|
608
|
+
{
|
|
609
|
+
code: "top",
|
|
610
|
+
name: "\u9876\u90E8",
|
|
611
|
+
transkey: "gd.form.tabTop"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
code: "left",
|
|
615
|
+
name: "\u5DE6",
|
|
616
|
+
transkey: "gd.form.tabLeft"
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
code: "right",
|
|
620
|
+
name: "\u53F3",
|
|
621
|
+
transkey: "gd.form.tabRight"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
code: "bottom",
|
|
625
|
+
name: "\u5E95\u90E8",
|
|
626
|
+
transkey: "gd.form.tabBottom"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
code: "inside",
|
|
630
|
+
name: "\u5185\u90E8",
|
|
631
|
+
transkey: "gd.page.inside"
|
|
632
|
+
}
|
|
633
|
+
];
|
|
634
|
+
},
|
|
635
|
+
usedSequenceField() {
|
|
636
|
+
let l = [];
|
|
637
|
+
return this.ruleList.forEach((e) => {
|
|
638
|
+
l.push(e.columnName);
|
|
639
|
+
}), l;
|
|
640
|
+
},
|
|
641
|
+
getSequenceField() {
|
|
642
|
+
let l = [];
|
|
643
|
+
return this.sequence.forEach((e) => {
|
|
644
|
+
const t = e.columnName.split("&")[0], a = this.loadFieldData.filter((i) => i.columnname === t)[0];
|
|
645
|
+
if (a) {
|
|
646
|
+
const i = this.echartsMode.filter((s) => s.code == e.mode)[0];
|
|
647
|
+
l.push({
|
|
648
|
+
mode: e.mode,
|
|
649
|
+
effectType: a.effecttype,
|
|
650
|
+
columnName: `${e.columnName}&${e.mode}`,
|
|
651
|
+
transkey: a.transkey,
|
|
652
|
+
columncomment: a.columncomment,
|
|
653
|
+
columnNamed: a.columnname,
|
|
654
|
+
transkeyDict: i ? i.transkey : null,
|
|
655
|
+
transkeyName: i ? i.name : ""
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
}), l;
|
|
659
|
+
},
|
|
660
|
+
getClassLabelField() {
|
|
661
|
+
let l = [];
|
|
662
|
+
return this.hasClassLabelConfig.forEach((e) => {
|
|
663
|
+
const t = this.loadFieldData.filter((a) => a.columnname === e.columnName)[0];
|
|
664
|
+
t && l.push({
|
|
665
|
+
mode: e.mode,
|
|
666
|
+
effectType: t.effecttype,
|
|
667
|
+
columnName: e.columnName,
|
|
668
|
+
transkey: t.transkey,
|
|
669
|
+
columncomment: t.columncomment,
|
|
670
|
+
columnNamed: t.columnname
|
|
671
|
+
});
|
|
672
|
+
}), l;
|
|
673
|
+
},
|
|
674
|
+
getSize() {
|
|
675
|
+
let l = [];
|
|
676
|
+
for (let e = 0; e <= 36; e++)
|
|
677
|
+
l.push(6 + e);
|
|
678
|
+
return l;
|
|
679
|
+
},
|
|
680
|
+
tableData() {
|
|
681
|
+
const l = this.tableLists.filter((e) => e.tablename === this.ruleFormData.tableName)[0];
|
|
682
|
+
return l || {};
|
|
683
|
+
},
|
|
684
|
+
viewData() {
|
|
685
|
+
const l = this.viewList.filter((e) => e.id === this.ruleFormData.viewId)[0];
|
|
686
|
+
return l ? { id: l.id, name: l.name, transkey: l.transkey } : {};
|
|
687
|
+
},
|
|
688
|
+
hasAddSequence() {
|
|
689
|
+
return !(this.sequence.length > 4 || this.disabled || this.classLabel.length > 1 || this.sequence.filter((e) => ["2", "3"].includes(e.type))[0]);
|
|
690
|
+
},
|
|
691
|
+
hasAddClass() {
|
|
692
|
+
return !(this.classLabel.length > 1 || this.sequence.length > 1 || this.disabled || this.sequence.filter((e) => ["2", "3"].includes(e.type))[0]);
|
|
693
|
+
},
|
|
694
|
+
echartsMode() {
|
|
695
|
+
return this.getDictionary("table_echarts_mode");
|
|
696
|
+
},
|
|
697
|
+
echartType() {
|
|
698
|
+
return this.getDictionary("table_echarts_type");
|
|
699
|
+
},
|
|
700
|
+
languageMessages() {
|
|
701
|
+
return this.$i18n.messages;
|
|
702
|
+
},
|
|
703
|
+
getTransKey() {
|
|
704
|
+
let l = `${this.prefixKey}${c(10)}${this.suffixKey}`, e = [];
|
|
705
|
+
for (let t in this.languageMessages)
|
|
706
|
+
e.push({ name: b(t), val: "", code: t });
|
|
707
|
+
return JSON.stringify({ name: l, langs: e });
|
|
708
|
+
},
|
|
709
|
+
disabled() {
|
|
710
|
+
return this.ruleFormData.dataType === "table" ? !this.ruleFormData.tableName : !1;
|
|
711
|
+
},
|
|
712
|
+
title() {
|
|
713
|
+
return this.record.echartsId ? this.$i18nt("gd.https.edit", "\u7F16\u8F91") : this.$i18nt("gd.https.add", "\u65B0\u589E");
|
|
714
|
+
},
|
|
715
|
+
height() {
|
|
716
|
+
let l = this.fullscreen ? 190 : 340;
|
|
717
|
+
return this.screenHeight - l;
|
|
718
|
+
},
|
|
719
|
+
...u(["screenHeight", "tableLists", "echartsColor", "primaryColor"])
|
|
720
|
+
},
|
|
721
|
+
methods: {
|
|
722
|
+
getFieldData() {
|
|
723
|
+
this.loadFieldData = this.customFieldData.filter((l) => l.statu === "edit");
|
|
724
|
+
},
|
|
725
|
+
saveCustomField(l) {
|
|
726
|
+
const e = this.customFieldData[l];
|
|
727
|
+
if (e.columnname === "") {
|
|
728
|
+
this.$message.error(this.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
731
|
+
if (e.effecttype === "select" && e.dicttypecode === "") {
|
|
732
|
+
this.$message.error(this.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
this.customFieldData[l].statu = "edit", this.getFieldData();
|
|
736
|
+
},
|
|
737
|
+
delCustomField(l) {
|
|
738
|
+
const e = this.customFieldData[l];
|
|
739
|
+
this.customFieldData = this.customFieldData.filter((t, a) => a !== l), this.sequence = this.sequence.filter((t) => t.columnName !== e.columnname), this.classLabel = this.classLabel.filter((t) => t.columnName !== e.columnname), this.ruleList = this.ruleList.filter((t) => t.columnName !== e.columnname), this.dateFilterRule = this.dateFilterRule.filter((t) => t.columnName !== e.columnname), this.loadFieldData = this.loadFieldData.filter((t) => t.columnname !== e.columnname), console.log(this.loadFieldData, e);
|
|
740
|
+
},
|
|
741
|
+
addCustomField() {
|
|
742
|
+
let l = [...this.customFieldData];
|
|
743
|
+
l.push({
|
|
744
|
+
columncomment: "",
|
|
745
|
+
columnname: "",
|
|
746
|
+
effecttype: "input",
|
|
747
|
+
dicttypecode: "",
|
|
748
|
+
statu: "add",
|
|
749
|
+
transkey: null
|
|
750
|
+
}), this.customFieldData = [...l];
|
|
751
|
+
},
|
|
752
|
+
clearData() {
|
|
753
|
+
this.sequence = [], this.classLabel = [], this.ruleList = [], this.dateFilterRule = [], this.loadFieldData = this.ruleFormData.dataType === "table" ? [...this.tableFieldData] : [...this.customFieldData], this.addSequence(), this.addClassLabel();
|
|
754
|
+
},
|
|
755
|
+
changeDataType(l) {
|
|
756
|
+
let e = this;
|
|
757
|
+
this.$confirm(this.$i18nt("gd.https.changeContent", "\u662F\u5426\u653E\u5F03\u66F4\u6539?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
758
|
+
confirmButtonText: this.$i18nt("gd.https.changeOk", "\u786E\u8BA4\u653E\u5F03"),
|
|
759
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
760
|
+
showClose: !1,
|
|
761
|
+
confirmButtonLoading: !1,
|
|
762
|
+
cancelButtonLoading: !1,
|
|
763
|
+
closeOnClickModal: !1,
|
|
764
|
+
type: "warning",
|
|
765
|
+
confirmButtonClass: "el-button--danger",
|
|
766
|
+
customClass: "custom-alert",
|
|
767
|
+
callback: () => {
|
|
768
|
+
},
|
|
769
|
+
beforeClose: (t, a, i) => {
|
|
770
|
+
if (i(), t === "confirm") {
|
|
771
|
+
this.clearData();
|
|
772
|
+
return;
|
|
773
|
+
}
|
|
774
|
+
e.ruleFormData.dataType = e.ruleFormData.dataType === "table" ? "custom" : "table";
|
|
775
|
+
}
|
|
776
|
+
});
|
|
777
|
+
},
|
|
778
|
+
okRules(l, e) {
|
|
779
|
+
let t = [...this.ruleList];
|
|
780
|
+
t.forEach((a, i) => {
|
|
781
|
+
a.columnName === l.columnName && (t[i].ruleSequence = e);
|
|
782
|
+
}), this.ruleList = [...t];
|
|
783
|
+
},
|
|
784
|
+
addSequenceRule(l) {
|
|
785
|
+
this.$refs.chartDisplayRules.open(l);
|
|
786
|
+
},
|
|
787
|
+
delRuleList(l) {
|
|
788
|
+
this.ruleList = this.ruleList.filter((e) => e.columnName !== l.columnName);
|
|
789
|
+
},
|
|
790
|
+
delRuleFilter(l) {
|
|
791
|
+
this.dateFilterRule = this.dateFilterRule.filter((e) => e.columnName !== l.columnName);
|
|
792
|
+
},
|
|
793
|
+
changeRule(l) {
|
|
794
|
+
const e = this.sequence.filter((i) => `${i.columnName}&${i.mode}` === l)[0];
|
|
795
|
+
this.echartsMode.filter((i) => i.code == e.mode)[0];
|
|
796
|
+
const t = this.loadFieldData.filter((i) => i.columnname === e.columnName)[0];
|
|
797
|
+
let a = [...this.ruleList];
|
|
798
|
+
a.push({
|
|
799
|
+
mode: e.mode,
|
|
800
|
+
effectType: t.effecttype,
|
|
801
|
+
columnName: l,
|
|
802
|
+
min: void 0,
|
|
803
|
+
max: void 0,
|
|
804
|
+
formatter: "none",
|
|
805
|
+
openPrefix: !1,
|
|
806
|
+
transKeyPrefix: null,
|
|
807
|
+
prefix: "",
|
|
808
|
+
ruleSequence: []
|
|
809
|
+
}), this.ruleList = [...a], this.selShow = !0, this.$nextTick(() => {
|
|
810
|
+
setTimeout(() => {
|
|
811
|
+
this.columnName = "";
|
|
812
|
+
}, 0);
|
|
813
|
+
});
|
|
814
|
+
},
|
|
815
|
+
changeRuleFilter(l) {
|
|
816
|
+
this.classLabel.filter((t) => t.columnName === l)[0];
|
|
817
|
+
let e = [...this.dateFilterRule];
|
|
818
|
+
e.push({
|
|
819
|
+
columnName: l,
|
|
820
|
+
position: "relative",
|
|
821
|
+
horizontal: "left",
|
|
822
|
+
vertical: "top",
|
|
823
|
+
offsetX: void 0,
|
|
824
|
+
offsetY: void 0
|
|
825
|
+
}), this.dateFilterRule = [...e], this.selShowFilter = !0, this.$nextTick(() => {
|
|
826
|
+
setTimeout(() => {
|
|
827
|
+
this.columnNameFilter = "";
|
|
828
|
+
}, 0);
|
|
829
|
+
});
|
|
830
|
+
},
|
|
831
|
+
mouseover(l) {
|
|
832
|
+
l === "selShow" ? this.selShow = !1 : this.selShowFilter = !1;
|
|
833
|
+
},
|
|
834
|
+
seeEcharts(l) {
|
|
835
|
+
let e = [], t = [];
|
|
836
|
+
this.sequence.forEach((r, o) => {
|
|
837
|
+
const n = `${r.columnName}${c(8)}`;
|
|
838
|
+
this.sequence[o].uuid = n;
|
|
839
|
+
const d = r.orderType !== void 0 ? r.orderType : "", h = d ? { orderType: d } : {};
|
|
840
|
+
t.push(Object.assign({ columnName: r.columnName, aggrOperator: r.mode, alias: n, order: o }, h));
|
|
841
|
+
}), this.classLabel.forEach((r, o) => {
|
|
842
|
+
const n = `${r.columnName}${c(8)}`;
|
|
843
|
+
this.classLabel[o].uuid = n;
|
|
844
|
+
const d = r.orderType !== void 0 ? r.orderType : 1;
|
|
845
|
+
r.effectType === "datepicker" ? e.push({
|
|
846
|
+
columnName: r.columnName,
|
|
847
|
+
groupbyOperator: r.mode,
|
|
848
|
+
alias: n,
|
|
849
|
+
order: o,
|
|
850
|
+
orderType: d
|
|
851
|
+
}) : e.push({ columnName: r.columnName, alias: n, order: o, orderType: d });
|
|
852
|
+
});
|
|
853
|
+
const a = this.stackList.filter((r) => r.columnName !== "");
|
|
854
|
+
this.hasOverlayStack && this.ruleFormData.overlayStack && a.length > 0 && a.forEach((r, o) => {
|
|
855
|
+
const n = `${r.columnName}${c(8)}`;
|
|
856
|
+
a[o].uuid = n;
|
|
857
|
+
const d = r.orderType !== void 0 ? r.orderType : 1;
|
|
858
|
+
r.effectType === "datepicker" ? e.push({
|
|
859
|
+
columnName: r.columnName,
|
|
860
|
+
groupbyOperator: r.mode,
|
|
861
|
+
alias: n,
|
|
862
|
+
order: o,
|
|
863
|
+
orderType: d
|
|
864
|
+
}) : e.push({ columnName: r.columnName, alias: n, order: o, orderType: d });
|
|
865
|
+
});
|
|
866
|
+
const i = this.ruleFormData.topCount ? { topCount: this.ruleFormData.topCount } : {}, s = Object.assign(i, {
|
|
867
|
+
tableId: this.tableData.id,
|
|
868
|
+
viewId: this.ruleFormData.viewId,
|
|
869
|
+
viewType: 1,
|
|
870
|
+
categories: e,
|
|
871
|
+
series: t
|
|
872
|
+
});
|
|
873
|
+
C(s).then((r) => {
|
|
874
|
+
r.code === 200 && l === this.uuidEcharts && this.$nextTick(() => {
|
|
875
|
+
setTimeout(() => {
|
|
876
|
+
const o = {
|
|
877
|
+
config: { categories: this.classLabel, series: this.sequence, stackList: a },
|
|
878
|
+
data: r.data.rows,
|
|
879
|
+
categorydata: r.data.categorydata,
|
|
880
|
+
options: Object.assign(
|
|
881
|
+
{ ...this.ruleFormData },
|
|
882
|
+
{
|
|
883
|
+
overlayStack: this.hasOverlayStack ? this.ruleFormData.overlayStack : !1,
|
|
884
|
+
areaStyleStack: this.hasAreaStyleStack ? this.ruleFormData.areaStyleStack : !1
|
|
885
|
+
}
|
|
886
|
+
)
|
|
887
|
+
};
|
|
888
|
+
this.$refs.refCharts.init(o);
|
|
889
|
+
}, 0);
|
|
890
|
+
});
|
|
891
|
+
});
|
|
892
|
+
},
|
|
893
|
+
present() {
|
|
894
|
+
if (this.ruleFormData.dataType === "custom") {
|
|
895
|
+
this.confirmLoading = !1, this.$refs.refCharts.setType();
|
|
896
|
+
return;
|
|
897
|
+
}
|
|
898
|
+
let l = !0;
|
|
899
|
+
if (this.ruleFormData.tableName === "" || this.ruleFormData.viewId === "" ? l = !1 : this.isCheckedSequence() && this.isCheckedLabel() || (l = !1), !l) {
|
|
900
|
+
this.$refs.refCharts.setType();
|
|
901
|
+
return;
|
|
902
|
+
}
|
|
903
|
+
f && clearTimeout(f), f = setTimeout(() => {
|
|
904
|
+
const e = c();
|
|
905
|
+
this.uuidEcharts = e, this.seeEcharts(e);
|
|
906
|
+
}, 1e3);
|
|
907
|
+
},
|
|
908
|
+
changeColumnName(l) {
|
|
909
|
+
let e = {};
|
|
910
|
+
const t = this.loadFieldData.filter((i) => i.columnname === l.columnName)[0], a = t ? t.effecttype : "input";
|
|
911
|
+
["inputnumber", "double", "currency"].includes(a) ? Object.assign(e, { mode: "2", disableMode: [] }) : Object.assign(e, { mode: "1", disableMode: ["2", "3", "4", "5"] }), Object.assign(l, e, {
|
|
912
|
+
transKey: t.transkey,
|
|
913
|
+
name: t.columncomment,
|
|
914
|
+
dictTypeCode: t.dicttypecode,
|
|
915
|
+
effectType: a
|
|
916
|
+
}), this.present();
|
|
917
|
+
},
|
|
918
|
+
changeColumnNames(l) {
|
|
919
|
+
const e = this.loadFieldData.filter((a) => a.columnname === l.columnName)[0], t = e ? e.effecttype : "input";
|
|
920
|
+
Object.assign(l, {
|
|
921
|
+
effectType: t,
|
|
922
|
+
mode: "3",
|
|
923
|
+
transKey: e ? e.transkey : null,
|
|
924
|
+
name: e ? e.columncomment : "",
|
|
925
|
+
dictTypeCode: e ? e.dicttypecode : null
|
|
926
|
+
}), this.present();
|
|
927
|
+
},
|
|
928
|
+
addSequence() {
|
|
929
|
+
if (!this.hasAddSequence)
|
|
930
|
+
return;
|
|
931
|
+
let l = [...this.sequence];
|
|
932
|
+
l.push({
|
|
933
|
+
mode: "",
|
|
934
|
+
type: "1",
|
|
935
|
+
columnName: "",
|
|
936
|
+
name: "",
|
|
937
|
+
dictTypeCode: null,
|
|
938
|
+
transKey: null,
|
|
939
|
+
disableMode: [],
|
|
940
|
+
disableType: [],
|
|
941
|
+
ruleOpen: !1,
|
|
942
|
+
ruleSequence: [],
|
|
943
|
+
orderType: "",
|
|
944
|
+
ruleFormatter: {
|
|
945
|
+
min: void 0,
|
|
946
|
+
max: void 0,
|
|
947
|
+
formatter: "none",
|
|
948
|
+
mode: "1",
|
|
949
|
+
effectType: "input",
|
|
950
|
+
openPrefix: !1,
|
|
951
|
+
transKeyPrefix: null,
|
|
952
|
+
prefix: ""
|
|
953
|
+
}
|
|
954
|
+
}), l.map((e) => (e.disableType = ["2", "3"], e)), this.sequence = [...l], this.present();
|
|
955
|
+
},
|
|
956
|
+
delSequence(l) {
|
|
957
|
+
const e = this.sequence[l], t = `${e.columnName}&${e.mode}`;
|
|
958
|
+
let a = this.sequence.filter((i, s) => s !== l);
|
|
959
|
+
a.forEach((i, s) => {
|
|
960
|
+
a[s] = Object.assign(i, {
|
|
961
|
+
disableType: a.length === 1 ? [] : ["2", "3"]
|
|
962
|
+
});
|
|
963
|
+
}), this.sequence = a, this.ruleList = this.ruleList.filter((i) => i.columnName !== t), this.present();
|
|
964
|
+
},
|
|
965
|
+
addClassLabel() {
|
|
966
|
+
if (!this.hasAddClass)
|
|
967
|
+
return;
|
|
968
|
+
let l = [...this.classLabel], e = [...this.sequence];
|
|
969
|
+
l.push({ columnName: "", effectType: "input", mode: "1", name: "", dictTypeCode: null, transKey: null, orderType: 1 }), e.map((t) => (t.disableType = ["2", "3"], t)), this.sequence = [...e], this.classLabel = [...l], this.present();
|
|
970
|
+
},
|
|
971
|
+
delClassLabel(l) {
|
|
972
|
+
this.classLabel = this.classLabel.filter((t, a) => a !== l);
|
|
973
|
+
let e = [...this.sequence];
|
|
974
|
+
e.map((t) => (t.disableType = [], t)), this.sequence = [...e], this.present();
|
|
975
|
+
},
|
|
976
|
+
lookupSeled(l, e) {
|
|
977
|
+
let t = [];
|
|
978
|
+
l.langs.forEach((a) => {
|
|
979
|
+
t.push({ name: a.languagename, val: a.description, code: a.languagecode });
|
|
980
|
+
}), Object.assign(e, {
|
|
981
|
+
transKeyPrefix: l.name,
|
|
982
|
+
prefix: l.defaulttext
|
|
983
|
+
}), this.data.addTransKey !== void 0 && (this.data.addTransKey = this.data.addTransKey.concat([l.name]));
|
|
984
|
+
},
|
|
985
|
+
save() {
|
|
986
|
+
if (!this.isCheckedSequence()) {
|
|
987
|
+
this.$message.error(this.$i18nt("gd.echarts.sequenceTip", "\u8BF7\u8865\u5145 [\u56FE\u4F8B\u6761\u76EE(\u5E8F\u5217)] \u4FE1\u606F")), this.confirmLoading = !1;
|
|
988
|
+
return;
|
|
989
|
+
}
|
|
990
|
+
if (!this.isCheckedLabel()) {
|
|
991
|
+
this.$message.error(this.$i18nt("gd.echarts.classLabelTip", "\u8BF7\u8865\u5145 [\u6C34\u5E73(\u5206\u7C7B)\u8F74\u6807\u7B7E] \u4FE1\u606F")), this.confirmLoading = !1;
|
|
992
|
+
return;
|
|
993
|
+
}
|
|
994
|
+
let l = [...this.sequence];
|
|
995
|
+
l.forEach((a, i) => {
|
|
996
|
+
const s = this.ruleList.filter((r) => r.columnName === `${a.columnName}&${a.mode}`)[0];
|
|
997
|
+
s ? l[i] = Object.assign(
|
|
998
|
+
{ ...a },
|
|
999
|
+
{
|
|
1000
|
+
ruleOpen: !0,
|
|
1001
|
+
ruleSequence: s.ruleSequence,
|
|
1002
|
+
ruleFormatter: Object.assign(
|
|
1003
|
+
{ ...a.ruleFormatter },
|
|
1004
|
+
{
|
|
1005
|
+
min: s.min,
|
|
1006
|
+
max: s.max,
|
|
1007
|
+
formatter: s.formatter,
|
|
1008
|
+
mode: s.mode,
|
|
1009
|
+
effectType: s.effectType,
|
|
1010
|
+
openPrefix: s.openPrefix,
|
|
1011
|
+
transKeyPrefix: s.transKeyPrefix,
|
|
1012
|
+
prefix: s.prefix
|
|
1013
|
+
}
|
|
1014
|
+
)
|
|
1015
|
+
}
|
|
1016
|
+
) : l[i] = Object.assign({ ...a }, { ruleOpen: !1 });
|
|
1017
|
+
});
|
|
1018
|
+
let e = this.classLabel.map((a) => {
|
|
1019
|
+
const i = this.dateFilterRule.filter((s) => s.columnName === a.columnName)[0];
|
|
1020
|
+
return i ? Object.assign({}, a, i, {
|
|
1021
|
+
ruleOpen: !0
|
|
1022
|
+
}) : Object.assign({}, a, {
|
|
1023
|
+
ruleOpen: !1
|
|
1024
|
+
});
|
|
1025
|
+
});
|
|
1026
|
+
const t = this.hasOverlayStack ? this.ruleFormData.overlayStack : !1;
|
|
1027
|
+
this.$emit(
|
|
1028
|
+
"ok",
|
|
1029
|
+
{
|
|
1030
|
+
tableName: this.ruleFormData.tableName,
|
|
1031
|
+
colourList: this.ruleFormData.colorList.join(","),
|
|
1032
|
+
echartsId: this.ruleFormData.echartsId,
|
|
1033
|
+
view: this.viewData,
|
|
1034
|
+
transKey: this.ruleFormData.transKey,
|
|
1035
|
+
name: this.ruleFormData.name,
|
|
1036
|
+
sequence: l,
|
|
1037
|
+
classLabel: t ? this.classLabel.concat(this.stackList) : e,
|
|
1038
|
+
labelShow: this.ruleFormData.labelShow,
|
|
1039
|
+
smooth: this.ruleFormData.smooth,
|
|
1040
|
+
showSymbol: this.ruleFormData.showSymbol,
|
|
1041
|
+
labelRotate: this.ruleFormData.labelRotate,
|
|
1042
|
+
labelFontSize: this.ruleFormData.labelFontSize,
|
|
1043
|
+
overlayLineChart: this.ruleFormData.overlayLineChart,
|
|
1044
|
+
labelTextPosition: this.ruleFormData.labelTextPosition,
|
|
1045
|
+
legendPosition: this.ruleFormData.legendPosition,
|
|
1046
|
+
gridPosition: this.ruleFormData.gridPosition,
|
|
1047
|
+
overlayStack: t,
|
|
1048
|
+
areaStyleStack: this.hasAreaStyleStack ? this.ruleFormData.areaStyleStack : !1,
|
|
1049
|
+
legendShow: this.ruleFormData.legendShow,
|
|
1050
|
+
labelFontColor: this.ruleFormData.labelFontColor,
|
|
1051
|
+
textFontColor: this.ruleFormData.textFontColor,
|
|
1052
|
+
textFontSize: this.ruleFormData.textFontSize,
|
|
1053
|
+
legendOrient: this.ruleFormData.legendOrient,
|
|
1054
|
+
legendTextColor: this.ruleFormData.legendTextColor,
|
|
1055
|
+
xAxisLabelColor: this.ruleFormData.xAxisLabelColor,
|
|
1056
|
+
labelLineColor: this.ruleFormData.labelLineColor,
|
|
1057
|
+
emphasisFocus: this.ruleFormData.emphasisFocus,
|
|
1058
|
+
lineStyleWidth: this.ruleFormData.lineStyleWidth,
|
|
1059
|
+
numericalPrecision: this.ruleFormData.numericalPrecision,
|
|
1060
|
+
topCount: this.ruleFormData.topCount,
|
|
1061
|
+
numericalSummary: this.ruleFormData.numericalSummary,
|
|
1062
|
+
customApi: this.ruleFormData.customApi,
|
|
1063
|
+
dataType: this.ruleFormData.dataType
|
|
1064
|
+
},
|
|
1065
|
+
this.customFieldData
|
|
1066
|
+
), this.closed();
|
|
1067
|
+
},
|
|
1068
|
+
handleSubmit() {
|
|
1069
|
+
this.confirmLoading = !0, this.$refs.ruleForm.validate((l) => {
|
|
1070
|
+
l ? this.save() : this.confirmLoading = !1;
|
|
1071
|
+
});
|
|
1072
|
+
},
|
|
1073
|
+
changeTable() {
|
|
1074
|
+
this.sequence = [
|
|
1075
|
+
{
|
|
1076
|
+
mode: "",
|
|
1077
|
+
type: "1",
|
|
1078
|
+
columnName: "",
|
|
1079
|
+
name: "",
|
|
1080
|
+
dictTypeCode: null,
|
|
1081
|
+
transKey: null,
|
|
1082
|
+
disableMode: [],
|
|
1083
|
+
disableType: [],
|
|
1084
|
+
ruleOpen: !1,
|
|
1085
|
+
ruleSequence: [],
|
|
1086
|
+
ruleFormatter: {
|
|
1087
|
+
min: void 0,
|
|
1088
|
+
max: void 0,
|
|
1089
|
+
formatter: "none",
|
|
1090
|
+
mode: "1",
|
|
1091
|
+
effectType: "input"
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
], this.classLabel = [{ columnName: "", effectType: "input", mode: "1", name: "", dictTypeCode: null, transKey: null, orderType: 1 }], this.ruleFormData = Object.assign(this.ruleFormData, {
|
|
1095
|
+
viewId: "",
|
|
1096
|
+
sequence: JSON.stringify(this.sequence),
|
|
1097
|
+
classLabel: JSON.stringify(this.classLabel)
|
|
1098
|
+
}), this.init(), this.$nextTick(() => {
|
|
1099
|
+
this.$refs.ruleForm.clearValidate();
|
|
1100
|
+
});
|
|
1101
|
+
},
|
|
1102
|
+
okColor(l) {
|
|
1103
|
+
this.ruleFormData.colorList = [...l];
|
|
1104
|
+
},
|
|
1105
|
+
editEchartsTheme() {
|
|
1106
|
+
this.$refs.echartsTheme.open(this.ruleFormData.colorList);
|
|
1107
|
+
},
|
|
1108
|
+
getFormatter(l) {
|
|
1109
|
+
if (["percent", "permil"].includes(l)) {
|
|
1110
|
+
const e = l === "percent" ? "0.01" : "0.001", t = this.displayModeList.filter((a) => a.remark === e)[0];
|
|
1111
|
+
return t ? t.code : l;
|
|
1112
|
+
}
|
|
1113
|
+
return l;
|
|
1114
|
+
},
|
|
1115
|
+
init() {
|
|
1116
|
+
this.confirmLoading = !0, Promise.all([this.getLoadData(), this.getViewList()]).then((l) => {
|
|
1117
|
+
let e = [], t = [];
|
|
1118
|
+
this.sequence.forEach((a) => {
|
|
1119
|
+
if (a.ruleOpen) {
|
|
1120
|
+
const i = this.loadFieldData.filter((s) => s.columnname === a.columnName)[0];
|
|
1121
|
+
e.push({
|
|
1122
|
+
mode: a.ruleFormatter.mode,
|
|
1123
|
+
effectType: i.effecttype,
|
|
1124
|
+
columnName: `${a.columnName}&${a.mode}`,
|
|
1125
|
+
min: a.ruleFormatter.min,
|
|
1126
|
+
max: a.ruleFormatter.max,
|
|
1127
|
+
formatter: this.getFormatter(a.ruleFormatter.formatter),
|
|
1128
|
+
ruleSequence: a.ruleSequence,
|
|
1129
|
+
openPrefix: a.ruleFormatter.openPrefix === void 0 ? !1 : a.ruleFormatter.openPrefix,
|
|
1130
|
+
transKeyPrefix: a.ruleFormatter.transKeyPrefix === void 0 ? null : a.ruleFormatter.transKeyPrefix,
|
|
1131
|
+
prefix: a.ruleFormatter.prefix === void 0 ? "" : a.ruleFormatter.prefix
|
|
1132
|
+
});
|
|
1133
|
+
}
|
|
1134
|
+
}), this.classLabel.forEach((a) => {
|
|
1135
|
+
a.ruleOpen && t.push({
|
|
1136
|
+
columnName: a.columnName,
|
|
1137
|
+
position: a.position,
|
|
1138
|
+
horizontal: a.horizontal,
|
|
1139
|
+
vertical: a.vertical,
|
|
1140
|
+
offsetX: a.offsetX,
|
|
1141
|
+
offsetY: a.offsetY
|
|
1142
|
+
});
|
|
1143
|
+
}), this.ruleList = [...e], this.dateFilterRule = [...t], this.confirmLoading = !1, this.present();
|
|
1144
|
+
});
|
|
1145
|
+
},
|
|
1146
|
+
open(l, e) {
|
|
1147
|
+
this.record = JSON.parse(JSON.stringify(l)), this.visible = !0, this.sequence = [...this.record.sequence];
|
|
1148
|
+
let t = [], a = [];
|
|
1149
|
+
const i = {
|
|
1150
|
+
columnName: "",
|
|
1151
|
+
effectType: "input",
|
|
1152
|
+
mode: "1",
|
|
1153
|
+
name: "",
|
|
1154
|
+
dictTypeCode: null,
|
|
1155
|
+
transKey: null,
|
|
1156
|
+
orderType: 1,
|
|
1157
|
+
stackType: 1,
|
|
1158
|
+
offset: 0,
|
|
1159
|
+
offsetCaudex: 20,
|
|
1160
|
+
labelRotate: 0,
|
|
1161
|
+
labelFontSize: 12,
|
|
1162
|
+
xAxisLabelColor: "#333",
|
|
1163
|
+
position: "bottom"
|
|
1164
|
+
};
|
|
1165
|
+
this.record.classLabel.forEach((s, r) => {
|
|
1166
|
+
const o = s.stackType !== void 0 ? s.stackType : 0, n = s.orderType !== void 0 ? s.orderType : 1;
|
|
1167
|
+
o === 1 && s.columnName !== "" && a.push(Object.assign({ ...s }, { orderType: n })), o !== 1 && t.push(Object.assign({ ...s }, { orderType: n }));
|
|
1168
|
+
}), this.classLabel = [...t], this.stackList = a.length === 0 ? [i] : [...a], this.customFieldData = e.fieldData === void 0 ? [] : [...e.fieldData], this.ruleFormData = {
|
|
1169
|
+
tableName: l.tableName,
|
|
1170
|
+
colorList: l.colourList ? l.colourList.split(",") : [...this.echartsColor],
|
|
1171
|
+
echartsId: l.echartsId ? l.echartsId : c(8),
|
|
1172
|
+
sequence: l.sequence.length > 0 ? JSON.stringify(l.sequence) : "",
|
|
1173
|
+
classLabel: l.classLabel.length > 0 ? JSON.stringify(l.classLabel) : "",
|
|
1174
|
+
viewId: l.view.id ? l.view.id : "",
|
|
1175
|
+
transKey: l.transkey ? l.transKey : null,
|
|
1176
|
+
name: l.name,
|
|
1177
|
+
labelShow: l.labelShow,
|
|
1178
|
+
smooth: l.smooth,
|
|
1179
|
+
showSymbol: l.showSymbol,
|
|
1180
|
+
labelRotate: l.labelRotate ? l.labelRotate : 0,
|
|
1181
|
+
labelFontSize: l.labelFontSize,
|
|
1182
|
+
overlayLineChart: l.overlayLineChart,
|
|
1183
|
+
labelTextPosition: l.labelTextPosition ? l.labelTextPosition : "top",
|
|
1184
|
+
legendPosition: l.legendPosition ? l.legendPosition : ["", "", "", ""],
|
|
1185
|
+
gridPosition: l.gridPosition ? l.gridPosition : ["60", "4%", "3%", "3%"],
|
|
1186
|
+
overlayStack: l.overlayStack !== void 0 ? l.overlayStack : !1,
|
|
1187
|
+
areaStyleStack: l.areaStyleStack !== void 0 ? l.areaStyleStack : !1,
|
|
1188
|
+
legendShow: l.legendShow !== void 0 ? l.legendShow : !0,
|
|
1189
|
+
labelFontColor: l.labelFontColor ? l.labelFontColor : "#333",
|
|
1190
|
+
textFontColor: l.textFontColor ? l.textFontColor : "#333",
|
|
1191
|
+
textFontSize: l.textFontSize ? l.textFontSize : 14,
|
|
1192
|
+
legendOrient: l.legendOrient ? l.legendOrient : "horizontal",
|
|
1193
|
+
legendTextColor: l.legendTextColor ? l.legendTextColor : "#333",
|
|
1194
|
+
xAxisLabelColor: l.xAxisLabelColor ? l.xAxisLabelColor : "#333",
|
|
1195
|
+
labelLineColor: l.labelLineColor ? l.labelLineColor : "#333",
|
|
1196
|
+
emphasisFocus: l.emphasisFocus ? l.emphasisFocus : "series",
|
|
1197
|
+
lineStyleWidth: l.lineStyleWidth !== void 0 ? l.lineStyleWidth : 1,
|
|
1198
|
+
numericalPrecision: l.numericalPrecision !== void 0 ? l.numericalPrecision : 2,
|
|
1199
|
+
topCount: l.topCount,
|
|
1200
|
+
numericalSummary: l.numericalSummary !== void 0 ? l.numericalSummary : !1,
|
|
1201
|
+
customApi: l.customApi !== void 0 ? l.customApi : "",
|
|
1202
|
+
dataType: l.dataType !== void 0 ? l.dataType : "table"
|
|
1203
|
+
}, this.$nextTick(() => {
|
|
1204
|
+
this.$refs.ruleForm.clearValidate(), this.init();
|
|
1205
|
+
});
|
|
1206
|
+
},
|
|
1207
|
+
getViewList() {
|
|
1208
|
+
if (!this.tableData.id)
|
|
1209
|
+
return new Promise((l, e) => {
|
|
1210
|
+
l();
|
|
1211
|
+
});
|
|
1212
|
+
g({
|
|
1213
|
+
SysCodeGenId: this.tableData.id
|
|
1214
|
+
}).then((l) => {
|
|
1215
|
+
if (l.success) {
|
|
1216
|
+
let e = l.data.filter((t) => t.type == 1);
|
|
1217
|
+
this.viewList = e;
|
|
1218
|
+
}
|
|
1219
|
+
});
|
|
1220
|
+
},
|
|
1221
|
+
getLoadData() {
|
|
1222
|
+
return this.ruleFormData.dataType === "custom" || !this.tableData.id ? new Promise((l, e) => {
|
|
1223
|
+
this.getFieldData(), l();
|
|
1224
|
+
}) : p({
|
|
1225
|
+
codeGenId: this.tableData.id
|
|
1226
|
+
}).then((l) => {
|
|
1227
|
+
let e = l.data.filter((t) => t.effecttype == "about" && t.columnname == (t.relations + "_AboutTable").toLowerCase() ? !1 : !(t.effecttype == "currency" && t.columnname == (t.relations + "_Currency_Base").toLowerCase()));
|
|
1228
|
+
return this.tableFieldData = [...e], this.loadFieldData = [...e], l.data;
|
|
1229
|
+
});
|
|
1230
|
+
},
|
|
1231
|
+
isCheckedSequence() {
|
|
1232
|
+
return this.sequence.every((l, e, t) => l.columnName !== "" && l.mode !== "");
|
|
1233
|
+
},
|
|
1234
|
+
isCheckedLabel() {
|
|
1235
|
+
return this.classLabel.every((l, e, t) => l.columnName !== "");
|
|
1236
|
+
},
|
|
1237
|
+
closed() {
|
|
1238
|
+
this.fullscreen = !1, this.visible = !1;
|
|
1239
|
+
},
|
|
1240
|
+
toggleFullscreen() {
|
|
1241
|
+
this.fullscreen = !this.fullscreen;
|
|
1242
|
+
},
|
|
1243
|
+
doEvent(l) {
|
|
1244
|
+
let e = l.item.functionName;
|
|
1245
|
+
this[e] && this[e]();
|
|
1246
|
+
},
|
|
1247
|
+
getDictionary(l) {
|
|
1248
|
+
return this.$options.filters.dictData(l);
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
};
|
|
1252
|
+
var K = function() {
|
|
1253
|
+
var e = this, t = e._self._c;
|
|
1254
|
+
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(a) {
|
|
1255
|
+
e.visible = a;
|
|
1256
|
+
}, 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" }], staticClass: "generator-form" }, [t("div", { staticClass: "view-config" }, [t("div", { staticClass: "config-item" }, [e.visible ? t("gd-chart-bi", { ref: "refCharts", attrs: { color: e.ruleFormData.colorList } }) : e._e()], 1), t("div", { staticClass: "config-item config-items" }, [t("div", { staticClass: "b" }, [t("el-form", { ref: "ruleForm", attrs: { "label-width": "110px", "label-position": "top", model: e.ruleFormData, size: "mini", rules: e.rules }, nativeOn: { submit: function(a) {
|
|
1257
|
+
a.preventDefault();
|
|
1258
|
+
} } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.field.dataSources", "\u6570\u636E\u6765\u6E90") } }, [t("el-radio-group", { on: { input: e.changeDataType }, model: { value: e.ruleFormData.dataType, callback: function(a) {
|
|
1259
|
+
e.$set(e.ruleFormData, "dataType", a);
|
|
1260
|
+
}, expression: "ruleFormData.dataType" } }, [t("el-radio-button", { attrs: { label: "table" } }, [e._v(e._s(e.$i18nt("gd.echarts.tableData", "\u8868\u6570\u636E")))]), t("el-radio-button", { attrs: { label: "custom" } }, [e._v(e._s(e.$i18nt("gd.application.custom", "\u81EA\u5B9A\u4E49")))])], 1)], 1), e.ruleFormData.dataType === "table" ? [t("el-form-item", { attrs: { label: e.$i18nt("gd.view.sourceTable", "\u6765\u6E90\u8868"), prop: "tableName" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "" }, on: { change: e.changeTable }, model: { value: e.ruleFormData.tableName, callback: function(a) {
|
|
1261
|
+
e.$set(e.ruleFormData, "tableName", a);
|
|
1262
|
+
}, expression: "ruleFormData.tableName" } }, e._l(e.tableLists, function(a, i) {
|
|
1263
|
+
return t("el-option", { key: a.tablename, attrs: { value: a.tablename, label: e.$i18nt(`Dynamics.${a.transkey}`, a.busname) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.busname)) + " (" + e._s(a.tablename) + ") ")]);
|
|
1264
|
+
}), 1)], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.viewId", "\u7528\u4E8E\u56FE\u8868\u9884\u89C8\u7684\u89C6\u56FE"), prop: "viewId" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.disabled }, on: { change: e.present }, model: { value: e.ruleFormData.viewId, callback: function(a) {
|
|
1265
|
+
e.$set(e.ruleFormData, "viewId", a);
|
|
1266
|
+
}, expression: "ruleFormData.viewId" } }, e._l(e.viewList, function(a, i) {
|
|
1267
|
+
return t("el-option", { key: a.id, attrs: { value: a.id, label: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } });
|
|
1268
|
+
}), 1)], 1)] : [t("el-form-item", { attrs: { label: e.$i18nt("gd.page.interactiveMethodApi", "\u81EA\u5B9A\u4E49API"), prop: "customApi" } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), clearable: "", type: "textarea" }, model: { value: e.ruleFormData.customApi, callback: function(a) {
|
|
1269
|
+
e.$set(e.ruleFormData, "customApi", a);
|
|
1270
|
+
}, expression: "ruleFormData.customApi" } })], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.customField", "\u81EA\u5B9A\u4E49\u5B57\u6BB5") } }, [t("div", { staticClass: "list" }, [e._l(e.customFieldData, function(a, i) {
|
|
1271
|
+
return [t("div", { staticClass: "list-item" }, [t("div", { staticClass: "list-iteml" }, [t("div", { staticClass: "list-item-column list-item-lable" }, [t("div", { staticClass: "item-mode", attrs: { title: e.$i18nt("gd.field.describe", "\u63CF\u8FF0") } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.field.describe", "\u63CF\u8FF0"), disabled: a.statu === "edit" }, model: { value: a.columncomment, callback: function(s) {
|
|
1272
|
+
e.$set(a, "columncomment", s);
|
|
1273
|
+
}, expression: "item.columncomment" } })], 1), t("div", { staticClass: "item-type", attrs: { title: e.$i18nt("gd.field.field", "\u5B57\u6BB5") } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.field.field", "\u5B57\u6BB5"), disabled: a.statu === "edit" }, model: { value: a.columnname, callback: function(s) {
|
|
1274
|
+
e.$set(a, "columnname", s);
|
|
1275
|
+
}, expression: "item.columnname" } })], 1)]), t("div", { staticClass: "list-item-lable" }, [t("div", { staticClass: "item-mode", attrs: { title: e.$i18nt("gd.field.effectType", "\u4F5C\u7528\u7C7B\u578B") } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: a.effecttype, callback: function(s) {
|
|
1276
|
+
e.$set(a, "effecttype", s);
|
|
1277
|
+
}, expression: "item.effecttype" } }, [e._l(e.effectTypeList, function(s) {
|
|
1278
|
+
return [t("el-option", { attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } })];
|
|
1279
|
+
})], 2)], 1), a.effecttype === "select" || a.statu === "edit" ? t("div", { staticClass: "item-type", attrs: { title: e.$i18nt("gd.field.dictionaries", "\u5B57\u5178") } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: a.effecttype !== "select" || a.statu === "edit", filterable: "" }, model: { value: a.dicttypecode, callback: function(s) {
|
|
1280
|
+
e.$set(a, "dicttypecode", s);
|
|
1281
|
+
}, expression: "item.dicttypecode" } }, [e._l(e.getDictionaryAll, function(s) {
|
|
1282
|
+
return [t("el-option", { attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } })];
|
|
1283
|
+
})], 2)], 1) : e._e()])]), t("div", { staticClass: "list-hand" }, [a.statu === "add" ? t("i", { staticClass: "el-icon-check", on: { click: function(s) {
|
|
1284
|
+
return e.saveCustomField(i);
|
|
1285
|
+
} } }) : e._e(), t("i", { staticClass: "el-icon-delete", on: { click: function(s) {
|
|
1286
|
+
return e.delCustomField(i);
|
|
1287
|
+
} } })])])];
|
|
1288
|
+
}), e.customFieldData.length < 12 ? t("div", { staticClass: "list-add" }, [t("div", { staticClass: "list-add-item active-color", on: { click: e.addCustomField } }, [t("i", { staticClass: "el-icon-plus" }), t("span", [e._v(e._s(e.$i18nt("gd.flow.work.addField", "\u6DFB\u52A0\u5B57\u6BB5")))])])]) : e._e()], 2)])], t("el-form-item", { attrs: { label: e.$i18nt("gd.settings.echartsColor", "\u56FE\u8868\u989C\u8272") } }, [t("div", { staticClass: "echarts-color" }, [t("div", { staticClass: "echarts-color-list" }, [e._l(e.ruleFormData.colorList, function(a) {
|
|
1289
|
+
return [a == 0 ? t("div", { staticClass: "echarts-color-item", style: `background:${e.primaryColor}` }) : t("div", { staticClass: "echarts-color-item", style: `background:${a}` })];
|
|
1290
|
+
})], 2), t("div", { staticClass: "echarts-color-btn active-color", on: { click: e.editEchartsTheme } }, [e._v(" " + e._s(e.$i18nt("gd.btn.edit", "\u7F16\u8F91")) + " ")])])]), t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.columnName", "\u56FE\u4F8B\u6761\u76EE(\u5E8F\u5217)"), prop: "sequence" } }, [t("div", { staticClass: "list" }, [e._l(e.sequence, function(a, i) {
|
|
1291
|
+
return [t("div", { staticClass: "list-item" }, [t("div", { staticClass: "list-iteml" }, [t("div", { staticClass: "list-item-column list-item-lable" }, [t("div", { staticClass: "item-mode" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.disabled, filterable: "" }, on: { change: function(s) {
|
|
1292
|
+
return e.changeColumnName(a);
|
|
1293
|
+
} }, model: { value: a.columnName, callback: function(s) {
|
|
1294
|
+
e.$set(a, "columnName", s);
|
|
1295
|
+
}, expression: "item.columnName" } }, [e._l(e.loadFieldData, function(s) {
|
|
1296
|
+
return [t("el-option", { attrs: { value: s.columnname, label: s.transkey ? e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment) : s.columncomment } }, [t("EffectTypeIcon", { attrs: { effectType: s.effecttype } }), s.transkey ? t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " (" + e._s(s.columnname) + ") ")]) : t("span", [e._v(e._s(s.columncomment) + " (" + e._s(s.columnname) + ")")])], 1)];
|
|
1297
|
+
})], 2)], 1), t("div", { staticClass: "item-type" }, [t("el-select", { staticClass: "column-mode", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), clearable: "" }, model: { value: a.orderType, callback: function(s) {
|
|
1298
|
+
e.$set(a, "orderType", s);
|
|
1299
|
+
}, expression: "item.orderType" } }, [e._l(e.defaultSortList, function(s, r) {
|
|
1300
|
+
return [t("el-option", { attrs: { value: s.code, label: e.$i18nt(`${s.transKey}`, s.name) } })];
|
|
1301
|
+
})], 2)], 1)]), t("div", { staticClass: "list-item-lable" }, [t("div", { staticClass: "item-mode" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.disabled }, on: { change: e.present }, model: { value: a.mode, callback: function(s) {
|
|
1302
|
+
e.$set(a, "mode", s);
|
|
1303
|
+
}, expression: "item.mode" } }, [e._l(e.echartsMode, function(s, r) {
|
|
1304
|
+
return [t("el-option", { attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), disabled: a.disableMode.includes(s.code) } })];
|
|
1305
|
+
})], 2)], 1), t("div", { staticClass: "item-type" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.disabled }, on: { change: e.present }, model: { value: a.type, callback: function(s) {
|
|
1306
|
+
e.$set(a, "type", s);
|
|
1307
|
+
}, expression: "item.type" } }, [e._l(e.echartType, function(s, r) {
|
|
1308
|
+
return [t("el-option", { attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), disabled: a.disableType.includes(s.code) } }, [t("span", [s.code === "1" ? t("i", { staticClass: "gd-icons gd-icon-zhuzhuangtu" }) : e._e(), s.code === "2" ? t("i", { staticClass: "gd-icons gd-icon-bingtu" }) : e._e(), s.code === "3" ? t("i", { staticClass: "gd-icons gd-icon-loudoutu" }) : e._e(), s.code === "4" ? t("i", { staticClass: "gd-icons gd-icon-zhexiantu" }) : e._e()]), t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.name)) + " ")])])];
|
|
1309
|
+
})], 2)], 1)])]), e.sequence.length > 1 ? t("i", { staticClass: "el-icon-delete", on: { click: function(s) {
|
|
1310
|
+
return e.delSequence(i);
|
|
1311
|
+
} } }) : e._e()])];
|
|
1312
|
+
}), t("div", { staticClass: "list-add" }, [t("div", { staticClass: "list-add-item", class: e.hasAddSequence ? "active-color" : "", on: { click: e.addSequence } }, [t("i", { staticClass: "el-icon-plus" }), t("span", [e._v(e._s(e.$i18nt("gd.echarts.addSequence", "\u6DFB\u52A0\u7CFB\u5217")))])])])], 2)]), t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.label", "\u6C34\u5E73(\u5206\u7C7B)\u8F74\u6807\u7B7E"), prop: "classLabel" } }, [e._l(e.classLabel, function(a, i) {
|
|
1313
|
+
return [t("div", { staticClass: "list-item list-label" }, [t("div", { staticClass: "list-label-column" }, [t("el-select", { staticClass: "column-name", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.disabled, filterable: "" }, on: { change: function(s) {
|
|
1314
|
+
return e.changeColumnNames(a);
|
|
1315
|
+
} }, model: { value: a.columnName, callback: function(s) {
|
|
1316
|
+
e.$set(a, "columnName", s);
|
|
1317
|
+
}, expression: "item.columnName" } }, [e._l(e.loadFieldData, function(s, r) {
|
|
1318
|
+
return [t("el-option", { attrs: { value: s.columnname, label: s.transkey ? e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment) : s.columncomment } }, [t("EffectTypeIcon", { attrs: { effectType: s.effecttype } }), s.transkey ? t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " (" + e._s(s.columnname) + ") ")]) : t("span", [e._v(e._s(s.columncomment) + " (" + e._s(s.columnname) + ")")])], 1)];
|
|
1319
|
+
})], 2), a.effectType === "datepicker" ? t("el-select", { staticClass: "column-mode", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.present }, model: { value: a.mode, callback: function(s) {
|
|
1320
|
+
e.$set(a, "mode", s);
|
|
1321
|
+
}, expression: "item.mode" } }, [e._l(e.getDictionary("time_dimension"), function(s, r) {
|
|
1322
|
+
return [t("el-option", { attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } })];
|
|
1323
|
+
})], 2) : e._e(), t("el-select", { staticClass: "column-mode", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: a.orderType, callback: function(s) {
|
|
1324
|
+
e.$set(a, "orderType", s);
|
|
1325
|
+
}, expression: "item.orderType" } }, [e._l(e.defaultSortList, function(s, r) {
|
|
1326
|
+
return [t("el-option", { attrs: { value: s.code, label: e.$i18nt(`${s.transKey}`, s.name) } })];
|
|
1327
|
+
})], 2)], 1), e.classLabel.length > 1 ? t("i", { staticClass: "el-icon-delete", on: { click: function(s) {
|
|
1328
|
+
return e.delClassLabel(i);
|
|
1329
|
+
} } }) : e._e()])];
|
|
1330
|
+
}), t("div", { staticClass: "list-add" }, [t("div", { staticClass: "list-add-item", class: e.hasAddClass ? "active-color" : "", on: { click: e.addClassLabel } }, [t("i", { staticClass: "el-icon-plus" }), t("span", [e._v(e._s(e.$i18nt("gd.echarts.addClassLabel", "\u6DFB\u52A0\u7C7B\u522B")))])])])], 2), t("el-divider", [e._v(e._s(e.$i18nt("gd.echarts.otherConfig", "\u5176\u4ED6\u914D\u7F6E")))]), e.hasOverlay ? t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.overlayLineChart", "\u53E0\u52A0\u6298\u7EBF\u56FE") } }), t("el-switch", { attrs: { "active-color": e.primaryColor }, on: { change: e.present }, model: { value: e.ruleFormData.overlayLineChart, callback: function(a) {
|
|
1331
|
+
e.$set(e.ruleFormData, "overlayLineChart", a);
|
|
1332
|
+
}, expression: "ruleFormData.overlayLineChart" } })], 1) : e._e(), e.hasOverlayStack ? t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.overlayStack", "\u5806\u53E0") } }), t("el-switch", { attrs: { "active-color": e.primaryColor }, on: { change: e.present }, model: { value: e.ruleFormData.overlayStack, callback: function(a) {
|
|
1333
|
+
e.$set(e.ruleFormData, "overlayStack", a);
|
|
1334
|
+
}, expression: "ruleFormData.overlayStack" } })], 1) : e._e(), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.emphasisFocus", "\u9AD8\u4EAE\u805A\u7126\u6548\u679C") } }), t("el-select", { staticStyle: { width: "180px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini" }, model: { value: e.ruleFormData.emphasisFocus, callback: function(a) {
|
|
1335
|
+
e.$set(e.ruleFormData, "emphasisFocus", a);
|
|
1336
|
+
}, expression: "ruleFormData.emphasisFocus" } }, [t("el-option", { attrs: { label: e.$i18nt("gd.echarts.emphasisFocusNone", "\u9ED8\u8BA4\uFF08\u4E0D\u6DE1\u51FA\u5176\u5B83\u56FE\u5F62\uFF09"), value: "none" } }), t("el-option", { attrs: { label: e.$i18nt("gd.echarts.emphasisFocusSelf", "\u53EA\u805A\u7126\uFF08\u4E0D\u6DE1\u51FA\uFF09\u5F53\u524D\u9AD8\u4EAE\u7684\u6570\u636E\u7684\u56FE\u5F62"), value: "self" } }), t("el-option", { attrs: { label: e.$i18nt("gd.echarts.emphasisFocusSeries", "\u805A\u7126\u5F53\u524D\u9AD8\u4EAE\u7684\u6570\u636E\u6240\u5728\u7684\u7CFB\u5217\u7684\u6240\u6709\u56FE\u5F62"), value: "series" } })], 1)], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.topNconfig", "TOP N \u914D\u7F6E") } }), t("el-input-number", { staticStyle: { width: "120px" }, attrs: { "controls-position": "right", max: 9999, size: "mini" }, model: { value: e.ruleFormData.topCount, callback: function(a) {
|
|
1337
|
+
e.$set(e.ruleFormData, "topCount", a);
|
|
1338
|
+
}, expression: "ruleFormData.topCount" } })], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.labelShow", "\u6570\u503C\u663E\u793A") } }), t("el-switch", { attrs: { "active-color": e.primaryColor }, model: { value: e.ruleFormData.labelShow, callback: function(a) {
|
|
1339
|
+
e.$set(e.ruleFormData, "labelShow", a);
|
|
1340
|
+
}, expression: "ruleFormData.labelShow" } })], 1), e.ruleFormData.labelShow ? [t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.labelPosition", "\u6570\u503C\u663E\u793A\u4F4D\u7F6E") } }), t("el-select", { staticStyle: { width: "120px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini" }, model: { value: e.ruleFormData.labelTextPosition, callback: function(a) {
|
|
1341
|
+
e.$set(e.ruleFormData, "labelTextPosition", a);
|
|
1342
|
+
}, expression: "ruleFormData.labelTextPosition" } }, [e._l(e.labelPositionList, function(a) {
|
|
1343
|
+
return [t("el-option", { attrs: { label: e.$i18nt(a.transkey, a.name), value: a.code } })];
|
|
1344
|
+
})], 2)], 1), e.ruleFormData.overlayStack && e.ruleFormData.labelTextPosition === "inside" ? t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.numericalSummary", "\u6570\u503C\u6C47\u603B") } }), t("el-switch", { attrs: { "active-color": e.primaryColor }, model: { value: e.ruleFormData.numericalSummary, callback: function(a) {
|
|
1345
|
+
e.$set(e.ruleFormData, "numericalSummary", a);
|
|
1346
|
+
}, expression: "ruleFormData.numericalSummary" } })], 1) : e._e(), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.page.numericalAccuracy", "\u6570\u503C\u7CBE\u5EA6") } }), t("el-input-number", { staticStyle: { width: "120px" }, attrs: { "controls-position": "right", min: 0, size: "mini" }, model: { value: e.ruleFormData.numericalPrecision, callback: function(a) {
|
|
1347
|
+
e.$set(e.ruleFormData, "numericalPrecision", a);
|
|
1348
|
+
}, expression: "ruleFormData.numericalPrecision" } })], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.textFontSize", "\u6570\u503C\u5B57\u4F53\u5927\u5C0F") } }), t("el-select", { staticStyle: { width: "120px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini" }, model: { value: e.ruleFormData.textFontSize, callback: function(a) {
|
|
1349
|
+
e.$set(e.ruleFormData, "textFontSize", a);
|
|
1350
|
+
}, expression: "ruleFormData.textFontSize" } }, e._l(e.getSize, function(a) {
|
|
1351
|
+
return t("el-option", { key: a, attrs: { label: a, value: a } });
|
|
1352
|
+
}), 1)], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.textFontColor", "\u6570\u503C\u5B57\u4F53\u989C\u8272") } }), t("el-input", { staticStyle: { width: "120px" }, model: { value: e.ruleFormData.textFontColor, callback: function(a) {
|
|
1353
|
+
e.$set(e.ruleFormData, "textFontColor", a);
|
|
1354
|
+
}, expression: "ruleFormData.textFontColor" } }, [t("el-color-picker", { staticClass: "theme-picker", staticStyle: { "margin-right": "-5px" }, attrs: { slot: "suffix", predefine: e.predefine, "popper-class": "theme-picker-dropdown" }, slot: "suffix", model: { value: e.ruleFormData.textFontColor, callback: function(a) {
|
|
1355
|
+
e.$set(e.ruleFormData, "textFontColor", a);
|
|
1356
|
+
}, expression: "ruleFormData.textFontColor" } })], 1)], 1)] : e._e(), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.labelLineColor", "\u8F74\u7EBF\u7EBF\u989C\u8272") } }), t("el-input", { staticStyle: { width: "120px" }, model: { value: e.ruleFormData.labelLineColor, callback: function(a) {
|
|
1357
|
+
e.$set(e.ruleFormData, "labelLineColor", a);
|
|
1358
|
+
}, expression: "ruleFormData.labelLineColor" } }, [t("el-color-picker", { staticClass: "theme-picker", staticStyle: { "margin-right": "-5px" }, attrs: { slot: "suffix", predefine: e.predefine, "popper-class": "theme-picker-dropdown" }, slot: "suffix", model: { value: e.ruleFormData.labelLineColor, callback: function(a) {
|
|
1359
|
+
e.$set(e.ruleFormData, "labelLineColor", a);
|
|
1360
|
+
}, expression: "ruleFormData.labelLineColor" } })], 1)], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.labelFontColor", "\u8F74\u7EBF\u5B57\u4F53\u989C\u8272") } }), t("el-input", { staticStyle: { width: "120px" }, model: { value: e.ruleFormData.labelFontColor, callback: function(a) {
|
|
1361
|
+
e.$set(e.ruleFormData, "labelFontColor", a);
|
|
1362
|
+
}, expression: "ruleFormData.labelFontColor" } }, [t("el-color-picker", { staticClass: "theme-picker", staticStyle: { "margin-right": "-5px" }, attrs: { slot: "suffix", predefine: e.predefine, "popper-class": "theme-picker-dropdown" }, slot: "suffix", model: { value: e.ruleFormData.labelFontColor, callback: function(a) {
|
|
1363
|
+
e.$set(e.ruleFormData, "labelFontColor", a);
|
|
1364
|
+
}, expression: "ruleFormData.labelFontColor" } })], 1)], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.labelRotate", "X\u8F74\u6587\u672C\u503E\u659C\u5EA6") } }), t("el-input-number", { staticStyle: { width: "120px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), min: 0, max: 90, size: "mini", "controls-position": "right" }, model: { value: e.ruleFormData.labelRotate, callback: function(a) {
|
|
1365
|
+
e.$set(e.ruleFormData, "labelRotate", a);
|
|
1366
|
+
}, expression: "ruleFormData.labelRotate" } })], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.labelFontSize", "X\u8F74\u5B57\u4F53\u5927\u5C0F") } }), t("el-select", { staticStyle: { width: "120px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini" }, model: { value: e.ruleFormData.labelFontSize, callback: function(a) {
|
|
1367
|
+
e.$set(e.ruleFormData, "labelFontSize", a);
|
|
1368
|
+
}, expression: "ruleFormData.labelFontSize" } }, e._l(e.getSize, function(a) {
|
|
1369
|
+
return t("el-option", { key: a, attrs: { label: a, value: a } });
|
|
1370
|
+
}), 1)], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.xAxisLabelColor", "X\u8F74\u7EBF\u5B57\u4F53\u989C\u8272") } }), t("el-input", { staticStyle: { width: "120px" }, model: { value: e.ruleFormData.xAxisLabelColor, callback: function(a) {
|
|
1371
|
+
e.$set(e.ruleFormData, "xAxisLabelColor", a);
|
|
1372
|
+
}, expression: "ruleFormData.xAxisLabelColor" } }, [t("el-color-picker", { staticClass: "theme-picker", staticStyle: { "margin-right": "-5px" }, attrs: { slot: "suffix", predefine: e.predefine, "popper-class": "theme-picker-dropdown" }, slot: "suffix", model: { value: e.ruleFormData.xAxisLabelColor, callback: function(a) {
|
|
1373
|
+
e.$set(e.ruleFormData, "xAxisLabelColor", a);
|
|
1374
|
+
}, expression: "ruleFormData.xAxisLabelColor" } })], 1)], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.legendShow", "\u56FE\u4F8B\u663E\u793A") } }), t("el-switch", { attrs: { "active-color": e.primaryColor }, model: { value: e.ruleFormData.legendShow, callback: function(a) {
|
|
1375
|
+
e.$set(e.ruleFormData, "legendShow", a);
|
|
1376
|
+
}, expression: "ruleFormData.legendShow" } })], 1), e.hasStackGroup ? [t("el-divider", [e._v(e._s(e.$i18nt("gd.echarts.stackConfig", "\u5806\u53E0\u914D\u7F6E")))]), e._l(e.stackList, function(a, i) {
|
|
1377
|
+
return [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.groupedFields", "\u5206\u7EC4\u5B57\u6BB5") } }, [t("div", { staticClass: "list-item list-label", staticStyle: { "margin-bottom": "0" } }, [t("div", { staticClass: "list-label-column" }, [t("el-select", { staticClass: "column-name", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", clearable: "" }, on: { change: function(s) {
|
|
1378
|
+
return e.changeColumnNames(a);
|
|
1379
|
+
} }, model: { value: a.columnName, callback: function(s) {
|
|
1380
|
+
e.$set(a, "columnName", s);
|
|
1381
|
+
}, expression: "item.columnName" } }, [e._l(e.loadFieldData, function(s, r) {
|
|
1382
|
+
return [t("el-option", { attrs: { value: s.columnname, label: s.transkey ? e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment) : s.columncomment } }, [t("EffectTypeIcon", { attrs: { effectType: s.effecttype } }), s.transkey ? t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " (" + e._s(s.columnname) + ") ")]) : t("span", [e._v(e._s(s.columncomment) + " (" + e._s(s.columnname) + ")")])], 1)];
|
|
1383
|
+
})], 2), a.effectType === "datepicker" ? t("el-select", { staticClass: "column-mode", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.present }, model: { value: a.mode, callback: function(s) {
|
|
1384
|
+
e.$set(a, "mode", s);
|
|
1385
|
+
}, expression: "item.mode" } }, [e._l(e.getDictionary("time_dimension"), function(s, r) {
|
|
1386
|
+
return [t("el-option", { attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } })];
|
|
1387
|
+
})], 2) : e._e(), t("el-select", { staticClass: "column-mode", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: a.orderType, callback: function(s) {
|
|
1388
|
+
e.$set(a, "orderType", s);
|
|
1389
|
+
}, expression: "item.orderType" } }, [e._l(e.defaultSortList, function(s, r) {
|
|
1390
|
+
return [t("el-option", { attrs: { value: s.code, label: e.$i18nt(`${s.transKey}`, s.name) } })];
|
|
1391
|
+
})], 2)], 1)])]), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.labelRotate", "X\u8F74\u6587\u672C\u503E\u659C\u5EA6") } }), t("el-input-number", { staticStyle: { width: "120px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), min: 0, max: 90, size: "mini", "controls-position": "right" }, model: { value: a.labelRotate, callback: function(s) {
|
|
1392
|
+
e.$set(a, "labelRotate", s);
|
|
1393
|
+
}, expression: "item.labelRotate" } })], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.labelFontSize", "X\u8F74\u5B57\u4F53\u5927\u5C0F") } }), t("el-select", { staticStyle: { width: "120px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini" }, model: { value: a.labelFontSize, callback: function(s) {
|
|
1394
|
+
e.$set(a, "labelFontSize", s);
|
|
1395
|
+
}, expression: "item.labelFontSize" } }, e._l(e.getSize, function(s) {
|
|
1396
|
+
return t("el-option", { key: s, attrs: { label: s, value: s } });
|
|
1397
|
+
}), 1)], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.xAxisLabelColor", "X\u8F74\u7EBF\u5B57\u4F53\u989C\u8272") } }), t("el-input", { staticStyle: { width: "120px" }, model: { value: a.xAxisLabelColor, callback: function(s) {
|
|
1398
|
+
e.$set(a, "xAxisLabelColor", s);
|
|
1399
|
+
}, expression: "item.xAxisLabelColor" } }, [t("el-color-picker", { staticClass: "theme-picker", staticStyle: { "margin-right": "-5px" }, attrs: { slot: "suffix", predefine: e.predefine, "popper-class": "theme-picker-dropdown" }, slot: "suffix", model: { value: a.xAxisLabelColor, callback: function(s) {
|
|
1400
|
+
e.$set(a, "xAxisLabelColor", s);
|
|
1401
|
+
}, expression: "item.xAxisLabelColor" } })], 1)], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.xAxisLabelPosition", "X\u8F74\u7EBF\u4F4D\u7F6E") } }), t("el-select", { staticStyle: { width: "120px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini" }, model: { value: a.position, callback: function(s) {
|
|
1402
|
+
e.$set(a, "position", s);
|
|
1403
|
+
}, expression: "item.position" } }, [t("el-option", { attrs: { label: e.$i18nt("gd.page.topDirection", "\u4E0A"), value: "top" } }), t("el-option", { attrs: { label: e.$i18nt("gd.page.bottomDirection", "\u4E0B"), value: "bottom" } })], 1)], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.xAxisOffset", "\u504F\u79FB\u503C(\u5F53\u524D\u8F74)") } }), t("el-input-number", { staticStyle: { width: "120px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), size: "mini", "controls-position": "right" }, model: { value: a.offset, callback: function(s) {
|
|
1404
|
+
e.$set(a, "offset", s);
|
|
1405
|
+
}, expression: "item.offset" } })], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.xAxisOffsetCaudex", "\u504F\u79FB\u503C(\u4E3B\u8F74)") } }), t("el-input-number", { staticStyle: { width: "120px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), size: "mini", "controls-position": "right" }, model: { value: a.offsetCaudex, callback: function(s) {
|
|
1406
|
+
e.$set(a, "offsetCaudex", s);
|
|
1407
|
+
}, expression: "item.offsetCaudex" } })], 1)];
|
|
1408
|
+
})] : e._e(), e.ruleFormData.legendShow ? [t("el-divider", [e._v(e._s(e.$i18nt("gd.echarts.legendConfig", "\u56FE\u4F8B\u914D\u7F6E")))]), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.legendTextColor", "\u56FE\u4F8B\u5B57\u4F53\u989C\u8272") } }), t("el-input", { staticStyle: { width: "120px" }, model: { value: e.ruleFormData.legendTextColor, callback: function(a) {
|
|
1409
|
+
e.$set(e.ruleFormData, "legendTextColor", a);
|
|
1410
|
+
}, expression: "ruleFormData.legendTextColor" } }, [t("el-color-picker", { staticClass: "theme-picker", staticStyle: { "margin-right": "-5px" }, attrs: { slot: "suffix", predefine: e.predefine, "popper-class": "theme-picker-dropdown" }, slot: "suffix", model: { value: e.ruleFormData.legendTextColor, callback: function(a) {
|
|
1411
|
+
e.$set(e.ruleFormData, "legendTextColor", a);
|
|
1412
|
+
}, expression: "ruleFormData.legendTextColor" } })], 1)], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.legendOrient", "\u56FE\u4F8B\u671D\u5411") } }), t("el-select", { staticStyle: { width: "120px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini" }, model: { value: e.ruleFormData.legendOrient, callback: function(a) {
|
|
1413
|
+
e.$set(e.ruleFormData, "legendOrient", a);
|
|
1414
|
+
}, expression: "ruleFormData.legendOrient" } }, [t("el-option", { attrs: { label: e.$i18nt("gd.form.level", "\u6C34\u5E73"), value: "horizontal" } }), t("el-option", { attrs: { label: e.$i18nt("gd.form.vertical", "\u5782\u76F4"), value: "vertical" } })], 1)], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", [t("span", { attrs: { slot: "label" }, slot: "label" }, [t("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], attrs: { placement: "top", "open-delay": 150 } }, [t("span", { attrs: { slot: "content" }, domProps: { innerHTML: e._s(e.$i18nt("gd.echarts.legendPositionTip")) }, slot: "content" }), t("i", { staticClass: "el-icon-question" })]), t("span", [e._v(e._s(e.$i18nt("gd.echarts.legendPosition", "\u56FE\u4F8B\u4F4D\u7F6E")))])], 1)]), t("div", { staticStyle: { width: "180px" } }, [t("div", { staticClass: "padd-r" }, [t("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.page.topDirection", "\u4E0A"), placement: "top" } }, [t("el-input", { staticClass: "padd-x", attrs: { clearable: "" }, model: { value: e.ruleFormData.legendPosition[0], callback: function(a) {
|
|
1415
|
+
e.$set(e.ruleFormData.legendPosition, 0, a);
|
|
1416
|
+
}, expression: "ruleFormData.legendPosition[0]" } })], 1), t("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.page.rightDirection", "\u53F3"), placement: "top" } }, [t("el-input", { staticClass: "padd-w", attrs: { clearable: "" }, model: { value: e.ruleFormData.legendPosition[1], callback: function(a) {
|
|
1417
|
+
e.$set(e.ruleFormData.legendPosition, 1, a);
|
|
1418
|
+
}, expression: "ruleFormData.legendPosition[1]" } })], 1)], 1), t("div", { staticClass: "padd-r" }, [t("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.page.leftDirection", "\u5DE6"), placement: "bottom" } }, [t("el-input", { staticClass: "padd-x", attrs: { clearable: "" }, model: { value: e.ruleFormData.legendPosition[3], callback: function(a) {
|
|
1419
|
+
e.$set(e.ruleFormData.legendPosition, 3, a);
|
|
1420
|
+
}, expression: "ruleFormData.legendPosition[3]" } })], 1), t("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.page.bottomDirection", "\u4E0B"), placement: "bottom" } }, [t("el-input", { staticClass: "padd-w", attrs: { clearable: "" }, model: { value: e.ruleFormData.legendPosition[2], callback: function(a) {
|
|
1421
|
+
e.$set(e.ruleFormData.legendPosition, 2, a);
|
|
1422
|
+
}, expression: "ruleFormData.legendPosition[2]" } })], 1)], 1)])], 1)] : e._e(), t("el-divider", [e._v(e._s(e.$i18nt("gd.echarts.gridConfig", "\u7F51\u683C\u914D\u7F6E")))]), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", [t("span", { attrs: { slot: "label" }, slot: "label" }, [t("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], attrs: { placement: "top", "open-delay": 150 } }, [t("span", { attrs: { slot: "content" }, domProps: { innerHTML: e._s(e.$i18nt("gd.echarts.gridPositionTip")) }, slot: "content" }), t("i", { staticClass: "el-icon-question" })]), t("span", [e._v(e._s(e.$i18nt("gd.echarts.gridPosition", "\u7F51\u683C\u4F4D\u7F6E")))])], 1)]), t("div", { staticStyle: { width: "180px" } }, [t("div", { staticClass: "padd-r" }, [t("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.page.topDirection", "\u4E0A"), placement: "top" } }, [t("el-input", { staticClass: "padd-x", attrs: { clearable: "" }, model: { value: e.ruleFormData.gridPosition[0], callback: function(a) {
|
|
1423
|
+
e.$set(e.ruleFormData.gridPosition, 0, a);
|
|
1424
|
+
}, expression: "ruleFormData.gridPosition[0]" } })], 1), t("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.page.rightDirection", "\u53F3"), placement: "top" } }, [t("el-input", { staticClass: "padd-w", attrs: { clearable: "" }, model: { value: e.ruleFormData.gridPosition[1], callback: function(a) {
|
|
1425
|
+
e.$set(e.ruleFormData.gridPosition, 1, a);
|
|
1426
|
+
}, expression: "ruleFormData.gridPosition[1]" } })], 1)], 1), t("div", { staticClass: "padd-r" }, [t("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.page.leftDirection", "\u5DE6"), placement: "bottom" } }, [t("el-input", { staticClass: "padd-x", attrs: { clearable: "" }, model: { value: e.ruleFormData.gridPosition[3], callback: function(a) {
|
|
1427
|
+
e.$set(e.ruleFormData.gridPosition, 3, a);
|
|
1428
|
+
}, expression: "ruleFormData.gridPosition[3]" } })], 1), t("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.page.bottomDirection", "\u4E0B"), placement: "bottom" } }, [t("el-input", { staticClass: "padd-w", attrs: { clearable: "" }, model: { value: e.ruleFormData.gridPosition[2], callback: function(a) {
|
|
1429
|
+
e.$set(e.ruleFormData.gridPosition, 2, a);
|
|
1430
|
+
}, expression: "ruleFormData.gridPosition[2]" } })], 1)], 1)])], 1), t("el-divider", [e._v(e._s(e.$i18nt("gd.echarts.lineConfig", "\u6298\u7EBF\u914D\u7F6E")))]), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.lineStyleWidth", "\u66F2\u7EBF\u5BBD\u5EA6") } }), t("el-select", { staticStyle: { width: "120px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini" }, model: { value: e.ruleFormData.lineStyleWidth, callback: function(a) {
|
|
1431
|
+
e.$set(e.ruleFormData, "lineStyleWidth", a);
|
|
1432
|
+
}, expression: "ruleFormData.lineStyleWidth" } }, e._l(11, function(a, i) {
|
|
1433
|
+
return t("el-option", { key: i, attrs: { label: `${i} px`, value: i } });
|
|
1434
|
+
}), 1)], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.smooth", "\u5E73\u6ED1\u66F2\u7EBF") } }), t("el-switch", { attrs: { "active-color": e.primaryColor }, on: { change: e.present }, model: { value: e.ruleFormData.smooth, callback: function(a) {
|
|
1435
|
+
e.$set(e.ruleFormData, "smooth", a);
|
|
1436
|
+
}, expression: "ruleFormData.smooth" } })], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.showSymbol", "\u7B26\u53F7\u70B9") } }), t("el-switch", { attrs: { "active-color": e.primaryColor }, on: { change: e.present }, model: { value: e.ruleFormData.showSymbol, callback: function(a) {
|
|
1437
|
+
e.$set(e.ruleFormData, "showSymbol", a);
|
|
1438
|
+
}, expression: "ruleFormData.showSymbol" } })], 1), e.hasAreaStyleStack ? t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.areaStyleStack", "\u9762\u79EF\u56FE") } }), t("el-switch", { attrs: { "active-color": e.primaryColor }, on: { change: e.present }, model: { value: e.ruleFormData.areaStyleStack, callback: function(a) {
|
|
1439
|
+
e.$set(e.ruleFormData, "areaStyleStack", a);
|
|
1440
|
+
}, expression: "ruleFormData.areaStyleStack" } })], 1) : e._e(), e.hasSequenceConfig.length > 0 ? t("div", [t("el-divider", [e._v(e._s(e.$i18nt("gd.echarts.sequenceConfig", "\u5E8F\u5217\u914D\u7F6E")))]), t("div", { staticClass: "list", staticStyle: { padding: "6px 0" } }, [e._l(e.ruleList, function(a, i) {
|
|
1441
|
+
return [t("div", { staticClass: "list-item" }, [t("div", { staticClass: "list-iteml" }, [t("div", { staticClass: "list-item-column list-item-lable" }, [t("el-select", { staticStyle: { flex: "1" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: "" }, model: { value: a.columnName, callback: function(s) {
|
|
1442
|
+
e.$set(a, "columnName", s);
|
|
1443
|
+
}, expression: "item.columnName" } }, [e._l(e.getSequenceField, function(s) {
|
|
1444
|
+
return [t("el-option", { attrs: { value: s.columnName, label: s.transkeyDict ? `${e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)} (${e.$i18nt(
|
|
1445
|
+
`Dynamics.${s.transkeyDict}`,
|
|
1446
|
+
s.transkeyName
|
|
1447
|
+
)})` : e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: s.effecttype } }), t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " (" + e._s(s.columnNamed) + ") "), s.transkeyDict ? t("span", [e._v(" / " + e._s(e.$i18nt(`Dynamics.${s.transkeyDict}`, s.transkeyName)) + " ")]) : e._e()])], 1)];
|
|
1448
|
+
})], 2), t("div", { staticClass: "item-formatter", attrs: { title: e.$i18nt("gd.form.suffix", "\u540E\u7F00") } }, [t("el-select", { attrs: { clearable: "", placeholder: e.$i18nt("gd.form.suffix", "\u540E\u7F00") }, model: { value: a.formatter, callback: function(s) {
|
|
1449
|
+
e.$set(a, "formatter", s);
|
|
1450
|
+
}, expression: "item.formatter" } }, e._l(e.displayModeList, function(s) {
|
|
1451
|
+
return t("el-option", { key: s.code, attrs: { label: e.$i18nt(s.transkey, s.name), value: s.code } });
|
|
1452
|
+
}), 1)], 1)], 1), t("div", { staticClass: "list-item-column list-item-lable" }, [t("div", { staticStyle: { flex: "1" } }, [a.transKeyPrefix ? e._e() : t("gd-translation", { ref: "gdTranslationSuffix", refInFor: !0, attrs: { transKey: e.getTransKey, keyI18n: "transKeyPrefix", name: "prefix", recordData: a, placeholderKey: ["gd.form.prefix", "\u524D\u7F00"], type: 3, disabled: !a.openPrefix }, on: { lookupSeled: (s) => e.lookupSeled(s, a) } }), a.transKeyPrefix ? t("gd-translation", { ref: "gdTranslationSuffix", refInFor: !0, attrs: { keyI18n: "transKeyPrefix", name: "prefix", recordData: a, type: 2, disabled: !a.openPrefix }, on: { lookupSeled: (s) => e.lookupSeled(s, a) } }) : e._e()], 1), t("div", { staticClass: "item-formatter", staticStyle: { "text-align": "right" } }, [t("el-switch", { attrs: { "active-color": e.primaryColor, "active-text": e.$i18nt("gd.form.prefix", "\u524D\u7F00") }, model: { value: a.openPrefix, callback: function(s) {
|
|
1453
|
+
e.$set(a, "openPrefix", s);
|
|
1454
|
+
}, expression: "item.openPrefix" } })], 1)]), t("div", { staticClass: "list-item-lable" }, [t("div", { staticClass: "item-mode" }, [t("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.form.minimum", "\u6700\u5C0F\u503C"), size: "mini", "controls-position": "right" }, model: { value: a.min, callback: function(s) {
|
|
1455
|
+
e.$set(a, "min", s);
|
|
1456
|
+
}, expression: "item.min" } })], 1), t("div", { staticClass: "item-type" }, [t("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.form.maximum", "\u6700\u5927\u503C"), size: "mini", "controls-position": "right" }, model: { value: a.max, callback: function(s) {
|
|
1457
|
+
e.$set(a, "max", s);
|
|
1458
|
+
}, expression: "item.max" } })], 1)]), t("div", { staticClass: "list-item-rule" }, [t("div", { staticClass: "item-display" }, [e._v(" " + e._s(e.$i18nt("gd.echarts.displayRules", "\u663E\u793A\u89C4\u5219")) + " "), a.ruleSequence.length == 0 ? t("span", { staticClass: "item-display-no" }, [e._v(" (" + e._s(e.$i18nt("gd.echarts.notConfigured", "\u672A\u914D\u7F6E")) + ") ")]) : t("span", { staticClass: "item-display-yes" }, [e._v("(" + e._s(e.$i18nt("gd.echarts.configured", "\u5DF2\u914D\u7F6E")) + ")")])]), t("el-divider", { attrs: { direction: "vertical" } }), t("i", { staticClass: "gd-icons gd-icon-bianji5 active-color", on: { click: function(s) {
|
|
1459
|
+
return e.addSequenceRule(a);
|
|
1460
|
+
} } })], 1)]), t("i", { staticClass: "el-icon-delete", on: { click: function(s) {
|
|
1461
|
+
return e.delRuleList(a);
|
|
1462
|
+
} } })])];
|
|
1463
|
+
}), e.ruleList.length < e.hasSequenceConfig.length ? t("div", { staticClass: "add-rule" }, [e.selShow ? t("span", { staticClass: "active-color", on: { mouseover: function(a) {
|
|
1464
|
+
return e.mouseover("selShow");
|
|
1465
|
+
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.choice", "\u9009\u62E9")) + " ")]) : t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini" }, on: { change: e.changeRule }, model: { value: e.columnName, callback: function(a) {
|
|
1466
|
+
e.columnName = a;
|
|
1467
|
+
}, expression: "columnName" } }, [e._l(e.getSequenceField, function(a) {
|
|
1468
|
+
return [e.usedSequenceField.includes(a.columnName) ? e._e() : t("el-option", { attrs: { value: a.columnName, label: a.transkeyDict ? `${e.$i18nt(`Dynamics.${a.transkey}`, a.columncomment)} (${e.$i18nt(
|
|
1469
|
+
`Dynamics.${a.transkeyDict}`,
|
|
1470
|
+
a.transkeyName
|
|
1471
|
+
)})` : e.$i18nt(`Dynamics.${a.transkey}`, a.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: a.effecttype } }), t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.columncomment)) + " (" + e._s(a.columnNamed) + ") "), a.transkeyDict ? t("span", [e._v("/ " + e._s(e.$i18nt(`Dynamics.${a.transkeyDict}`, a.transkeyName)))]) : e._e()])], 1)];
|
|
1472
|
+
})], 2)], 1) : e._e()], 2)], 1) : e._e(), e.hasClassLabelConfig.length > 0 ? t("div", [t("el-divider", [e._v(e._s(e.$i18nt("gd.echarts.sequenceConfigd", "\u65E5\u671F\u7EDF\u8BA1\u7EF4\u5EA6")))]), t("div", { staticClass: "list", staticStyle: { padding: "6px 0" } }, [e._l(e.dateFilterRule, function(a, i) {
|
|
1473
|
+
return [t("div", { staticClass: "list-item" }, [t("div", { staticClass: "list-iteml" }, [t("div", { staticClass: "list-item-column list-item-lable" }, [t("el-select", { staticStyle: { flex: "1" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: "" }, model: { value: a.columnName, callback: function(s) {
|
|
1474
|
+
e.$set(a, "columnName", s);
|
|
1475
|
+
}, expression: "item.columnName" } }, [e._l(e.getClassLabelField, function(s) {
|
|
1476
|
+
return [t("el-option", { attrs: { value: s.columnName, label: s.transkeyDict ? `${e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)} (${e.$i18nt(
|
|
1477
|
+
`Dynamics.${s.transkeyDict}`,
|
|
1478
|
+
s.transkeyName
|
|
1479
|
+
)})` : e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: s.effecttype } }), t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " (" + e._s(s.columnNamed) + ") "), s.transkeyDict ? t("span", [e._v(" / " + e._s(e.$i18nt(`Dynamics.${s.transkeyDict}`, s.transkeyName)) + " ")]) : e._e()])], 1)];
|
|
1480
|
+
})], 2), t("div", { staticClass: "item-formatter" }, [t("el-select", { attrs: { clearable: "", placeholder: e.$i18nt("gd.drawer.positionMode", "\u5B9A\u4F4D\u6A21\u5F0F"), title: e.$i18nt("gd.drawer.positionMode", "\u5B9A\u4F4D\u6A21\u5F0F") }, model: { value: a.position, callback: function(s) {
|
|
1481
|
+
e.$set(a, "position", s);
|
|
1482
|
+
}, expression: "item.position" } }, [t("el-option", { attrs: { label: e.$i18nt("gd.form.relative", "\u56FA\u5B9A"), value: "relative" } }), t("el-option", { attrs: { label: e.$i18nt("gd.drawer.absolute", "\u6D6E\u52A8"), value: "absolute" } })], 1)], 1)], 1), t("div", { staticClass: "list-item-column list-item-lable" }, [t("div", { staticClass: "item-mode" }, [t("el-select", { attrs: { clearable: "", placeholder: e.$i18nt("gd.state.horizontal", "\u6C34\u5E73\u5BF9\u9F50"), title: e.$i18nt("gd.state.horizontal", "\u6C34\u5E73\u5BF9\u9F50") }, model: { value: a.horizontal, callback: function(s) {
|
|
1483
|
+
e.$set(a, "horizontal", s);
|
|
1484
|
+
}, expression: "item.horizontal" } }, [t("el-option", { attrs: { label: e.$i18nt("gd.state.alignLeft", "\u5DE6\u5BF9\u9F50"), value: "left" } }), t("el-option", { attrs: { label: e.$i18nt("gd.state.alignRight", "\u53F3\u5BF9\u9F50"), value: "right" } })], 1)], 1), t("div", { staticClass: "item-type" }, [t("el-select", { attrs: { clearable: "", placeholder: e.$i18nt("gd.state.vertical", "\u5782\u76F4\u5BF9\u9F50"), title: e.$i18nt("gd.state.vertical", "\u5782\u76F4\u5BF9\u9F50") }, model: { value: a.vertical, callback: function(s) {
|
|
1485
|
+
e.$set(a, "vertical", s);
|
|
1486
|
+
}, expression: "item.vertical" } }, [t("el-option", { attrs: { label: e.$i18nt("gd.state.alignBottom", "\u4E0B\u5BF9\u9F50"), value: "bottom" } }), t("el-option", { attrs: { label: e.$i18nt("gd.state.alignTop", "\u4E0A\u5BF9\u9F50"), value: "top" } })], 1)], 1)]), t("div", { staticClass: "list-item-lable" }, [t("div", { staticClass: "item-mode" }, [t("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.state.minimumd", "x\u8F74\u504F\u79FB\u503C"), size: "mini", "controls-position": "right", title: e.$i18nt("gd.state.offsetX", "x\u8F74\u504F\u79FB\u503C") }, model: { value: a.offsetX, callback: function(s) {
|
|
1487
|
+
e.$set(a, "offsetX", s);
|
|
1488
|
+
}, expression: "item.offsetX" } })], 1), t("div", { staticClass: "item-type" }, [t("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.state.offsetY", "y\u8F74\u504F\u79FB\u503C"), size: "mini", "controls-position": "right", title: e.$i18nt("gd.state.offsetY", "y\u8F74\u504F\u79FB\u503C") }, model: { value: a.offsetY, callback: function(s) {
|
|
1489
|
+
e.$set(a, "offsetY", s);
|
|
1490
|
+
}, expression: "item.offsetY" } })], 1)])]), t("i", { staticClass: "el-icon-delete", on: { click: function(s) {
|
|
1491
|
+
return e.delRuleFilter(a);
|
|
1492
|
+
} } })])];
|
|
1493
|
+
}), e.dateFilterRule.length < 1 ? t("div", { staticClass: "add-rule" }, [e.selShowFilter ? t("span", { staticClass: "active-color", on: { mouseover: function(a) {
|
|
1494
|
+
return e.mouseover("selShowFilter");
|
|
1495
|
+
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.choice", "\u9009\u62E9")) + " ")]) : t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini" }, on: { change: e.changeRuleFilter }, model: { value: e.columnNameFilter, callback: function(a) {
|
|
1496
|
+
e.columnNameFilter = a;
|
|
1497
|
+
}, expression: "columnNameFilter" } }, [e._l(e.getClassLabelField, function(a) {
|
|
1498
|
+
return [e.usedSequenceField.includes(a.columnName) ? e._e() : t("el-option", { attrs: { value: a.columnName, label: a.transkeyDict ? `${e.$i18nt(`Dynamics.${a.transkey}`, a.columncomment)} (${e.$i18nt(
|
|
1499
|
+
`Dynamics.${a.transkeyDict}`,
|
|
1500
|
+
a.transkeyName
|
|
1501
|
+
)})` : e.$i18nt(`Dynamics.${a.transkey}`, a.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: a.effecttype } }), t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.columncomment)) + " (" + e._s(a.columnNamed) + ") "), a.transkeyDict ? t("span", [e._v("/ " + e._s(e.$i18nt(`Dynamics.${a.transkeyDict}`, a.transkeyName)))]) : e._e()])], 1)];
|
|
1502
|
+
})], 2)], 1) : e._e()], 2)], 1) : e._e()], 2)], 1)])])])], 2), t("gd-color-editor", { ref: "echartsTheme", attrs: { maxLength: 30 }, on: { ok: e.okColor } }), t("ChartDisplayRules", { ref: "chartDisplayRules", attrs: { fieldData: e.loadFieldData, echartsMode: e.echartsMode, size: e.getSize, sequenceField: e.getSequenceField }, on: { ok: e.okRules } })], 1);
|
|
1503
|
+
}, z = [], I = /* @__PURE__ */ m(
|
|
1504
|
+
q,
|
|
1505
|
+
K,
|
|
1506
|
+
z,
|
|
1507
|
+
!1,
|
|
1508
|
+
null,
|
|
1509
|
+
"206a698b",
|
|
1510
|
+
null,
|
|
1511
|
+
null
|
|
1512
|
+
);
|
|
1513
|
+
const Q = I.exports;
|
|
1514
|
+
const O = {
|
|
1515
|
+
props: {
|
|
1516
|
+
data: {
|
|
1517
|
+
type: Object,
|
|
1518
|
+
required: !0
|
|
1519
|
+
},
|
|
1520
|
+
id: {
|
|
1521
|
+
type: [String, Number],
|
|
1522
|
+
default: ""
|
|
1523
|
+
},
|
|
1524
|
+
config: {
|
|
1525
|
+
type: Object,
|
|
1526
|
+
default: () => ({})
|
|
1527
|
+
}
|
|
1528
|
+
},
|
|
1529
|
+
data() {
|
|
1530
|
+
return {
|
|
1531
|
+
width: "600px",
|
|
1532
|
+
record: {},
|
|
1533
|
+
confirmLoading: !1,
|
|
1534
|
+
visible: !1,
|
|
1535
|
+
fullscreen: !1,
|
|
1536
|
+
show: !1,
|
|
1537
|
+
columnName: "",
|
|
1538
|
+
buttons: [
|
|
1539
|
+
{
|
|
1540
|
+
displayName: "\u786E\u5B9A",
|
|
1541
|
+
functionName: "handleSubmit",
|
|
1542
|
+
show: !0,
|
|
1543
|
+
transKey: "gd.btn.confirm",
|
|
1544
|
+
icon: "el-icon-document-checked"
|
|
1545
|
+
}
|
|
1546
|
+
],
|
|
1547
|
+
ruleFormData: {
|
|
1548
|
+
langs: [],
|
|
1549
|
+
tableName: "",
|
|
1550
|
+
transKey: null,
|
|
1551
|
+
viewId: "",
|
|
1552
|
+
name: "",
|
|
1553
|
+
textFontSize: 20,
|
|
1554
|
+
textFontColor: "#333",
|
|
1555
|
+
textFontWeight: "normal",
|
|
1556
|
+
align: "center",
|
|
1557
|
+
lineHeight: 32,
|
|
1558
|
+
numericalPrecision: 2,
|
|
1559
|
+
numericalFormat: "",
|
|
1560
|
+
accessType: "sys",
|
|
1561
|
+
sysFunctionApi: "",
|
|
1562
|
+
sequence: "",
|
|
1563
|
+
customEffectType: "inputnumber"
|
|
1564
|
+
},
|
|
1565
|
+
viewList: [],
|
|
1566
|
+
loadFieldData: [],
|
|
1567
|
+
sequence: [
|
|
1568
|
+
{
|
|
1569
|
+
effectType: "input",
|
|
1570
|
+
mode: "",
|
|
1571
|
+
type: "1",
|
|
1572
|
+
columnName: "",
|
|
1573
|
+
name: "",
|
|
1574
|
+
transKey: null,
|
|
1575
|
+
disableMode: [],
|
|
1576
|
+
ruleOpen: !1,
|
|
1577
|
+
ruleSequence: []
|
|
1578
|
+
}
|
|
1579
|
+
],
|
|
1580
|
+
titlePrefix: {
|
|
1581
|
+
name: "",
|
|
1582
|
+
transKey: null,
|
|
1583
|
+
type: "text",
|
|
1584
|
+
icon: ""
|
|
1585
|
+
},
|
|
1586
|
+
titleSuffix: {
|
|
1587
|
+
name: "",
|
|
1588
|
+
transKey: null,
|
|
1589
|
+
type: "text",
|
|
1590
|
+
icon: ""
|
|
1591
|
+
},
|
|
1592
|
+
rules: {
|
|
1593
|
+
name: [
|
|
1594
|
+
{
|
|
1595
|
+
required: !0,
|
|
1596
|
+
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
1597
|
+
trigger: "change"
|
|
1598
|
+
}
|
|
1599
|
+
],
|
|
1600
|
+
tableName: [
|
|
1601
|
+
{
|
|
1602
|
+
required: !0,
|
|
1603
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
1604
|
+
trigger: "change"
|
|
1605
|
+
}
|
|
1606
|
+
],
|
|
1607
|
+
viewId: [
|
|
1608
|
+
{
|
|
1609
|
+
required: !0,
|
|
1610
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
1611
|
+
trigger: "change"
|
|
1612
|
+
}
|
|
1613
|
+
],
|
|
1614
|
+
sequence: [
|
|
1615
|
+
{
|
|
1616
|
+
required: !0,
|
|
1617
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
1618
|
+
trigger: "change"
|
|
1619
|
+
}
|
|
1620
|
+
],
|
|
1621
|
+
sysFunctionApi: [
|
|
1622
|
+
{
|
|
1623
|
+
required: !0,
|
|
1624
|
+
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
1625
|
+
trigger: "change"
|
|
1626
|
+
}
|
|
1627
|
+
]
|
|
1628
|
+
},
|
|
1629
|
+
selItem: {}
|
|
1630
|
+
};
|
|
1631
|
+
},
|
|
1632
|
+
components: {
|
|
1633
|
+
EffectTypeIcon: () => import("./components.xlsximport.81df7841.mjs").then((l) => l.e),
|
|
1634
|
+
IconSelector: () => import("./components.iconselector.8940b1a9.mjs")
|
|
1635
|
+
},
|
|
1636
|
+
computed: {
|
|
1637
|
+
effectTypeList() {
|
|
1638
|
+
return this.getDictionary("code_gen_effect_type").filter((e) => ["datepicker", "input", "inputnumber"].includes(e.code));
|
|
1639
|
+
},
|
|
1640
|
+
getEffectType() {
|
|
1641
|
+
return this.ruleFormData.accessType === "custom" ? this.ruleFormData.customEffectType : "input";
|
|
1642
|
+
},
|
|
1643
|
+
predefine() {
|
|
1644
|
+
return ["#F5222D", "#52C41A", "#FAAD14", "#13C2C2", "#1890FF", "#722ED1", "#eee", "#333", "#666", "#999"];
|
|
1645
|
+
},
|
|
1646
|
+
languageMessages() {
|
|
1647
|
+
return this.$i18n.messages;
|
|
1648
|
+
},
|
|
1649
|
+
tableData() {
|
|
1650
|
+
const l = this.tableLists.filter((e) => e.tablename === this.ruleFormData.tableName)[0];
|
|
1651
|
+
return l || {};
|
|
1652
|
+
},
|
|
1653
|
+
viewData() {
|
|
1654
|
+
const l = this.viewList.filter((e) => e.id === this.ruleFormData.viewId)[0];
|
|
1655
|
+
return l ? { id: l.id, name: l.name, transkey: l.transkey } : {};
|
|
1656
|
+
},
|
|
1657
|
+
title() {
|
|
1658
|
+
return this.record.tableName ? this.$i18nt("gd.https.edit", "\u7F16\u8F91") : this.$i18nt("gd.https.add", "\u65B0\u589E");
|
|
1659
|
+
},
|
|
1660
|
+
disabled() {
|
|
1661
|
+
return !this.ruleFormData.tableName;
|
|
1662
|
+
},
|
|
1663
|
+
height() {
|
|
1664
|
+
let l = this.fullscreen ? 190 : 340;
|
|
1665
|
+
return this.screenHeight - l;
|
|
1666
|
+
},
|
|
1667
|
+
getSize() {
|
|
1668
|
+
let l = [];
|
|
1669
|
+
for (let e = 0; e <= 100; e++)
|
|
1670
|
+
l.push(6 + e);
|
|
1671
|
+
return l;
|
|
1672
|
+
},
|
|
1673
|
+
...u(["screenHeight", "tableLists", "primaryColor"])
|
|
1674
|
+
},
|
|
1675
|
+
methods: {
|
|
1676
|
+
handleIcon(l) {
|
|
1677
|
+
this.selItem = l, this.$refs.iconSelector.open();
|
|
1678
|
+
},
|
|
1679
|
+
save() {
|
|
1680
|
+
if (!this.isCheckedSequence() && this.ruleFormData.accessType === "sys") {
|
|
1681
|
+
this.$message.error(this.$i18nt("gd.echarts.sequenceTip", "\u8BF7\u8865\u5145 [\u56FE\u4F8B\u6761\u76EE(\u5E8F\u5217)] \u4FE1\u606F")), this.confirmLoading = !1;
|
|
1682
|
+
return;
|
|
1683
|
+
}
|
|
1684
|
+
this.$emit("ok", {
|
|
1685
|
+
statisticTitle: this.ruleFormData.name,
|
|
1686
|
+
transKey: this.ruleFormData.transKey,
|
|
1687
|
+
sequence: this.sequence,
|
|
1688
|
+
textFontSize: this.ruleFormData.textFontSize,
|
|
1689
|
+
textFontColor: this.ruleFormData.textFontColor,
|
|
1690
|
+
textFontWeight: this.ruleFormData.textFontWeight,
|
|
1691
|
+
align: this.ruleFormData.align,
|
|
1692
|
+
lineHeight: this.ruleFormData.lineHeight,
|
|
1693
|
+
tableName: this.ruleFormData.accessType === "sys" ? this.ruleFormData.tableName : c(8),
|
|
1694
|
+
view: this.viewData,
|
|
1695
|
+
numericalPrecision: this.ruleFormData.numericalPrecision,
|
|
1696
|
+
numericalFormat: this.ruleFormData.numericalFormat,
|
|
1697
|
+
accessType: this.ruleFormData.accessType,
|
|
1698
|
+
sysFunctionApi: this.ruleFormData.sysFunctionApi,
|
|
1699
|
+
customEffectType: this.ruleFormData.customEffectType,
|
|
1700
|
+
titlePrefix: this.titlePrefix,
|
|
1701
|
+
titleSuffix: this.titleSuffix
|
|
1702
|
+
}), this.closed();
|
|
1703
|
+
},
|
|
1704
|
+
handleSubmit() {
|
|
1705
|
+
this.confirmLoading = !0, this.$refs.ruleForm.validate((l) => {
|
|
1706
|
+
l ? this.save() : this.confirmLoading = !1;
|
|
1707
|
+
});
|
|
1708
|
+
},
|
|
1709
|
+
changeEffectType() {
|
|
1710
|
+
Object.assign(this.ruleFormData, {
|
|
1711
|
+
numericalFormat: ""
|
|
1712
|
+
});
|
|
1713
|
+
},
|
|
1714
|
+
changeColumnName(l) {
|
|
1715
|
+
let e = {};
|
|
1716
|
+
const t = this.loadFieldData.filter((i) => i.columnname === l.columnName)[0], a = t ? t.effecttype : "input";
|
|
1717
|
+
["inputnumber", "double", "currency"].includes(a) ? Object.assign(e, { mode: "2", disableMode: [] }) : Object.assign(e, { mode: "1", disableMode: ["2", "3", "4", "5"] }), Object.assign(l, e, {
|
|
1718
|
+
transKey: t.transkey,
|
|
1719
|
+
name: t.columncomment,
|
|
1720
|
+
effectType: a
|
|
1721
|
+
}), Object.assign(this.ruleFormData, {
|
|
1722
|
+
numericalFormat: ""
|
|
1723
|
+
});
|
|
1724
|
+
},
|
|
1725
|
+
lookupSeled(l, e) {
|
|
1726
|
+
let t = [];
|
|
1727
|
+
l.langs.forEach((a) => {
|
|
1728
|
+
t.push({ name: a.languagename, val: a.description, code: a.languagecode });
|
|
1729
|
+
}), e === "name" ? (this.ruleFormData.name = l.defaulttext, this.ruleFormData.transKey = l.name, this.ruleFormData.langs = t) : e === "prefix" ? (this.titlePrefix.name = l.defaulttext, this.titlePrefix.transKey = l.name) : e === "suffix" && (this.titleSuffix.name = l.defaulttext, this.titleSuffix.transKey = l.name), this.data.addTransKey !== void 0 && (this.data.addTransKey = this.data.addTransKey.concat([l.name]));
|
|
1730
|
+
},
|
|
1731
|
+
getTransKey(l) {
|
|
1732
|
+
let e = this.ruleFormData.name, t = `STF_SC_${c(10)}`;
|
|
1733
|
+
this.id ? (t = `sf_${this.id}_SC_${c(10)}`, l !== "name" && (t = `sf_${this.id}_SC_${l}_${c(6)}`, e = "")) : this.config && (t = `sm_${this.config.id}_SC_${c(10)}`, l !== "name" && (t = `sm_${this.config.id}_SC_${l}_${c(6)}`, e = ""));
|
|
1734
|
+
let a = [];
|
|
1735
|
+
for (let i in this.languageMessages)
|
|
1736
|
+
a.push({ name: b(i), val: e, code: i });
|
|
1737
|
+
return JSON.stringify({ name: t, langs: a });
|
|
1738
|
+
},
|
|
1739
|
+
changeTable() {
|
|
1740
|
+
this.sequence = [
|
|
1741
|
+
{
|
|
1742
|
+
mode: "",
|
|
1743
|
+
type: "1",
|
|
1744
|
+
columnName: "",
|
|
1745
|
+
name: "",
|
|
1746
|
+
transKey: null,
|
|
1747
|
+
disableMode: [],
|
|
1748
|
+
ruleOpen: !1,
|
|
1749
|
+
ruleSequence: [],
|
|
1750
|
+
orderType: 1
|
|
1751
|
+
}
|
|
1752
|
+
], this.ruleFormData = Object.assign(this.ruleFormData, {
|
|
1753
|
+
viewId: ""
|
|
1754
|
+
}), this.init(), this.$nextTick(() => {
|
|
1755
|
+
this.$refs.ruleForm.clearValidate();
|
|
1756
|
+
});
|
|
1757
|
+
},
|
|
1758
|
+
init() {
|
|
1759
|
+
this.confirmLoading = !0, Promise.all([this.getLoadData(), this.getViewList()]).then((l) => {
|
|
1760
|
+
this.confirmLoading = !1;
|
|
1761
|
+
});
|
|
1762
|
+
},
|
|
1763
|
+
open(l) {
|
|
1764
|
+
this.record = JSON.parse(JSON.stringify(l)), this.visible = !0, this.ruleFormData = {
|
|
1765
|
+
tableName: l.accessType === "sys" ? l.tableName : "",
|
|
1766
|
+
transKey: l.transKey ? l.transKey : null,
|
|
1767
|
+
viewId: l.view.id ? l.view.id : "",
|
|
1768
|
+
name: l.statisticTitle,
|
|
1769
|
+
textFontSize: l.textFontSize,
|
|
1770
|
+
textFontColor: l.textFontColor,
|
|
1771
|
+
textFontWeight: l.textFontWeight,
|
|
1772
|
+
align: l.align,
|
|
1773
|
+
lineHeight: l.lineHeight,
|
|
1774
|
+
numericalPrecision: l.numericalPrecision,
|
|
1775
|
+
numericalFormat: l.numericalFormat,
|
|
1776
|
+
accessType: l.accessType,
|
|
1777
|
+
sysFunctionApi: l.sysFunctionApi,
|
|
1778
|
+
customEffectType: l.customEffectType,
|
|
1779
|
+
langs: l.langs ? l.langs : [],
|
|
1780
|
+
sequence: JSON.stringify(l.sequence)
|
|
1781
|
+
}, this.titlePrefix = l.titlePrefix, this.titleSuffix = l.titleSuffix, this.sequence = l.sequence, this.$nextTick(() => {
|
|
1782
|
+
this.$refs.ruleForm.clearValidate(), this.init();
|
|
1783
|
+
});
|
|
1784
|
+
},
|
|
1785
|
+
getViewList() {
|
|
1786
|
+
if (!this.tableData.id)
|
|
1787
|
+
return new Promise((l, e) => {
|
|
1788
|
+
l();
|
|
1789
|
+
});
|
|
1790
|
+
g({
|
|
1791
|
+
SysCodeGenId: this.tableData.id
|
|
1792
|
+
}).then((l) => {
|
|
1793
|
+
if (l.success) {
|
|
1794
|
+
let e = l.data.filter((t) => t.type == 1);
|
|
1795
|
+
this.viewList = e;
|
|
1796
|
+
}
|
|
1797
|
+
});
|
|
1798
|
+
},
|
|
1799
|
+
getLoadData() {
|
|
1800
|
+
return this.tableData.id ? p({
|
|
1801
|
+
codeGenId: this.tableData.id
|
|
1802
|
+
}).then((l) => {
|
|
1803
|
+
let e = l.data.filter((t) => t.effecttype == "about" && t.columnname == (t.relations + "_AboutTable").toLowerCase() ? !1 : !(t.effecttype == "currency" && t.columnname == (t.relations + "_Currency_Base").toLowerCase()));
|
|
1804
|
+
return this.loadFieldData = [...e], l.data;
|
|
1805
|
+
}) : new Promise((l, e) => {
|
|
1806
|
+
l();
|
|
1807
|
+
});
|
|
1808
|
+
},
|
|
1809
|
+
closed() {
|
|
1810
|
+
this.fullscreen = !1, this.visible = !1;
|
|
1811
|
+
},
|
|
1812
|
+
toggleFullscreen() {
|
|
1813
|
+
this.fullscreen = !this.fullscreen;
|
|
1814
|
+
},
|
|
1815
|
+
isCheckedSequence() {
|
|
1816
|
+
return this.sequence.every((l, e, t) => l.columnName !== "" && l.mode !== "");
|
|
1817
|
+
},
|
|
1818
|
+
doEvent(l) {
|
|
1819
|
+
let e = l.item.functionName;
|
|
1820
|
+
this[e] && this[e]();
|
|
1821
|
+
},
|
|
1822
|
+
getDictionary(l) {
|
|
1823
|
+
return this.$options.filters.dictData(l);
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
};
|
|
1827
|
+
var E = function() {
|
|
1828
|
+
var e = this, t = e._self._c;
|
|
1829
|
+
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(a) {
|
|
1830
|
+
e.visible = a;
|
|
1831
|
+
}, 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" }], staticClass: "generator-form" }, [t("div", { staticClass: "view-config" }, [t("div", { staticClass: "config-item" }), t("div", { staticClass: "config-item config-items" }, [t("div", { staticClass: "b" }, [t("el-form", { ref: "ruleForm", attrs: { "label-width": "110px", "label-position": "top", model: e.ruleFormData, size: "mini", rules: e.rules }, nativeOn: { submit: function(a) {
|
|
1832
|
+
a.preventDefault();
|
|
1833
|
+
} } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.page.statisticalHeading", "\u7EDF\u8BA1\u6807\u9898"), prop: "name" } }, [e.visible && !e.ruleFormData.transKey ? t("gd-translation", { ref: "gdTranslation", attrs: { transKey: e.getTransKey("name"), keyI18n: "transKey", recordData: e.ruleFormData, type: 3 }, on: { lookupSeled: (a) => e.lookupSeled(a, "name") } }) : e._e(), e.visible && e.ruleFormData.transKey ? t("gd-translation", { ref: "gdTranslation", attrs: { keyI18n: "transKey", recordData: e.ruleFormData, type: 2 }, on: { lookupSeled: (a) => e.lookupSeled(a, "name") } }) : e._e()], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.page.accessType", "\u6570\u636E\u83B7\u53D6\u65B9\u5F0F") } }, [t("el-radio-group", { attrs: { size: "small" }, on: { input: e.changeEffectType }, model: { value: e.ruleFormData.accessType, callback: function(a) {
|
|
1834
|
+
e.$set(e.ruleFormData, "accessType", a);
|
|
1835
|
+
}, expression: "ruleFormData.accessType" } }, [t("el-radio-button", { attrs: { label: "sys" } }, [e._v(" " + e._s(e.$i18nt("gd.pagecomponents.systemConfiguration", "\u7CFB\u7EDF\u914D\u7F6E")) + " ")]), t("el-radio-button", { attrs: { label: "custom" } }, [e._v(" " + e._s(e.$i18nt("gd.page.interactiveMethodApi", "\u81EA\u5B9A\u4E49API")) + " ")])], 1)], 1), e.ruleFormData.accessType === "sys" ? [t("el-form-item", { attrs: { label: e.$i18nt("gd.view.sourceTable", "\u6765\u6E90\u8868"), prop: "tableName" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "" }, on: { change: e.changeTable }, model: { value: e.ruleFormData.tableName, callback: function(a) {
|
|
1836
|
+
e.$set(e.ruleFormData, "tableName", a);
|
|
1837
|
+
}, expression: "ruleFormData.tableName" } }, e._l(e.tableLists, function(a, i) {
|
|
1838
|
+
return t("el-option", { key: a.tablename, attrs: { value: a.tablename, label: e.$i18nt(`Dynamics.${a.transkey}`, a.busname) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.busname)) + " (" + e._s(a.tablename) + ") ")]);
|
|
1839
|
+
}), 1)], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.viewId", "\u7528\u4E8E\u56FE\u8868\u9884\u89C8\u7684\u89C6\u56FE"), prop: "viewId" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.disabled }, model: { value: e.ruleFormData.viewId, callback: function(a) {
|
|
1840
|
+
e.$set(e.ruleFormData, "viewId", a);
|
|
1841
|
+
}, expression: "ruleFormData.viewId" } }, e._l(e.viewList, function(a, i) {
|
|
1842
|
+
return t("el-option", { key: a.id, attrs: { value: a.id, label: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } });
|
|
1843
|
+
}), 1)], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.columnName", "\u56FE\u4F8B\u6761\u76EE(\u5E8F\u5217)"), prop: "sequence" } }, [t("div", { staticClass: "list" }, [e._l(e.sequence, function(a, i) {
|
|
1844
|
+
return [t("div", { staticClass: "list-item-lable" }, [t("div", { staticClass: "item-mode" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.disabled, filterable: "" }, on: { change: function(s) {
|
|
1845
|
+
return e.changeColumnName(a);
|
|
1846
|
+
} }, model: { value: a.columnName, callback: function(s) {
|
|
1847
|
+
e.$set(a, "columnName", s);
|
|
1848
|
+
}, expression: "item.columnName" } }, [e._l(e.loadFieldData, function(s) {
|
|
1849
|
+
return [t("el-option", { attrs: { value: s.columnname, label: e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: s.effecttype } }), t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " (" + e._s(s.columnname) + ") ")])], 1)];
|
|
1850
|
+
})], 2)], 1), t("div", { staticClass: "item-type" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.disabled }, model: { value: a.mode, callback: function(s) {
|
|
1851
|
+
e.$set(a, "mode", s);
|
|
1852
|
+
}, expression: "item.mode" } }, [e._l(e.getDictionary("table_echarts_mode"), function(s) {
|
|
1853
|
+
return [t("el-option", { attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name), disabled: a.disableMode.includes(s.code) } })];
|
|
1854
|
+
})], 2)], 1)])];
|
|
1855
|
+
})], 2)])] : t("div", [t("el-form-item", { attrs: { label: e.$i18nt("gd.page.interactiveMethodApi", "\u81EA\u5B9A\u4E49API"), prop: "sysFunctionApi" } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), clearable: "", type: "textarea" }, model: { value: e.ruleFormData.sysFunctionApi, callback: function(a) {
|
|
1856
|
+
e.$set(e.ruleFormData, "sysFunctionApi", a);
|
|
1857
|
+
}, expression: "ruleFormData.sysFunctionApi" } })], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.page.backEffectType", "\u8FD4\u56DE\u6570\u503C\u7C7B\u578B") } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini" }, on: { change: e.changeEffectType }, model: { value: e.ruleFormData.customEffectType, callback: function(a) {
|
|
1858
|
+
e.$set(e.ruleFormData, "customEffectType", a);
|
|
1859
|
+
}, expression: "ruleFormData.customEffectType" } }, [e._l(e.effectTypeList, function(a) {
|
|
1860
|
+
return [t("el-option", { attrs: { value: a.code, label: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } }, [t("span", [e._v(e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.name)) + " (" + e._s(a.code) + ")")])])];
|
|
1861
|
+
})], 2)], 1)], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.form.prefix", "\u524D\u7F00") } }), t("el-switch", { attrs: { "active-color": e.primaryColor }, model: { value: e.titlePrefix.open, callback: function(a) {
|
|
1862
|
+
e.$set(e.titlePrefix, "open", a);
|
|
1863
|
+
}, expression: "titlePrefix.open" } })], 1), t("div", { staticClass: "list-item-lable" }, [t("div", { staticClass: "item-mode" }, [e.titlePrefix.type === "icon" ? t("div", { staticClass: "icon-flex" }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.inputcontent", "\u8BF7\u8F93\u5165\u5185\u5BB9"), size: "mini", clearable: "", disabled: !e.titlePrefix.open }, model: { value: e.titlePrefix.icon, callback: function(a) {
|
|
1864
|
+
e.$set(e.titlePrefix, "icon", a);
|
|
1865
|
+
}, expression: "titlePrefix.icon" } }, [e.titlePrefix.icon ? t("i", { staticClass: "el-input__icon gd-icons active-color", class: e.titlePrefix.icon, staticStyle: { "font-size": "18px", "font-weight": "400" }, attrs: { slot: "prefix" }, slot: "prefix" }) : e._e()]), t("div", { staticClass: "item-operator-cao flex" }, [e.titlePrefix.open ? t("i", { staticClass: "el-icon-search", on: { click: function(a) {
|
|
1866
|
+
return e.handleIcon(e.titlePrefix);
|
|
1867
|
+
} } }) : t("i", { staticClass: "el-icon-search" })])], 1) : [e.visible && !e.titlePrefix.transKey ? t("gd-translation", { ref: "gdTranslationSuffix", attrs: { transKey: e.getTransKey("prefix"), keyI18n: "transKey", recordData: e.titlePrefix, type: 3, disabled: !e.titlePrefix.open }, on: { lookupSeled: (a) => e.lookupSeled(a, "prefix") } }) : e._e(), e.visible && e.titlePrefix.transKey ? t("gd-translation", { ref: "gdTranslationSuffix", attrs: { keyI18n: "transKey", recordData: e.titlePrefix, type: 2, disabled: !e.titlePrefix.open }, on: { lookupSeled: (a) => e.lookupSeled(a, "prefix") } }) : e._e()]], 2), t("div", { staticClass: "item-type" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: !e.titlePrefix.open }, model: { value: e.titlePrefix.type, callback: function(a) {
|
|
1868
|
+
e.$set(e.titlePrefix, "type", a);
|
|
1869
|
+
}, expression: "titlePrefix.type" } }, [t("el-option", { attrs: { value: "text", label: e.$i18nt("gd.settings.text", "\u6587\u672C") } }), t("el-option", { attrs: { value: "icon", label: e.$i18nt("gd.layouts.fontIcon", "\u5B57\u4F53\u56FE\u6807") } })], 1)], 1)]), t("div", { staticClass: "list-item-lable", staticStyle: { "margin-top": "6px" } }, [t("div", { staticClass: "item-mode" }, [t("el-input", { staticStyle: { width: "100%" }, attrs: { disabled: !e.titlePrefix.open }, model: { value: e.titlePrefix.color, callback: function(a) {
|
|
1870
|
+
e.$set(e.titlePrefix, "color", a);
|
|
1871
|
+
}, expression: "titlePrefix.color" } }, [t("el-color-picker", { staticClass: "theme-picker", staticStyle: { "margin-right": "-5px" }, attrs: { slot: "suffix", predefine: e.predefine, "popper-class": "theme-picker-dropdown" }, slot: "suffix", model: { value: e.titlePrefix.color, callback: function(a) {
|
|
1872
|
+
e.$set(e.titlePrefix, "color", a);
|
|
1873
|
+
}, expression: "titlePrefix.color" } })], 1)], 1), t("div", { staticClass: "item-mode" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini", disabled: !e.titlePrefix.open }, model: { value: e.titlePrefix.fontSize, callback: function(a) {
|
|
1874
|
+
e.$set(e.titlePrefix, "fontSize", a);
|
|
1875
|
+
}, expression: "titlePrefix.fontSize" } }, e._l(e.getSize, function(a) {
|
|
1876
|
+
return t("el-option", { key: a, attrs: { label: a, value: a } });
|
|
1877
|
+
}), 1)], 1), t("div", { staticClass: "item-mode" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini", disabled: !e.titlePrefix.open }, model: { value: e.titlePrefix.fontWeight, callback: function(a) {
|
|
1878
|
+
e.$set(e.titlePrefix, "fontWeight", a);
|
|
1879
|
+
}, expression: "titlePrefix.fontWeight" } }, [t("el-option", { attrs: { label: e.$i18nt("gd.page.lighter", "\u7EC6"), value: "lighter" } }), t("el-option", { attrs: { label: e.$i18nt("gd.page.fontNormal", "\u9ED8\u8BA4"), value: "normal" } }), t("el-option", { attrs: { label: e.$i18nt("gd.page.bolder", "\u7C97"), value: "bolder" } })], 1)], 1)]), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.form.suffix", "\u540E\u7F00") } }), t("el-switch", { attrs: { "active-color": e.primaryColor }, model: { value: e.titleSuffix.open, callback: function(a) {
|
|
1880
|
+
e.$set(e.titleSuffix, "open", a);
|
|
1881
|
+
}, expression: "titleSuffix.open" } })], 1), t("div", { staticClass: "list-item-lable" }, [t("div", { staticClass: "item-mode" }, [e.titleSuffix.type === "icon" ? t("div", { staticClass: "icon-flex" }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.inputcontent", "\u8BF7\u8F93\u5165\u5185\u5BB9"), size: "mini", clearable: "", disabled: !e.titleSuffix.open }, model: { value: e.titleSuffix.icon, callback: function(a) {
|
|
1882
|
+
e.$set(e.titleSuffix, "icon", a);
|
|
1883
|
+
}, expression: "titleSuffix.icon" } }, [e.titleSuffix.icon ? t("i", { staticClass: "el-input__icon gd-icons active-color", class: e.titleSuffix.icon, staticStyle: { "font-size": "18px", "font-weight": "400" }, attrs: { slot: "prefix" }, slot: "prefix" }) : e._e()]), t("div", { staticClass: "item-operator-cao flex" }, [e.titleSuffix.open ? t("i", { staticClass: "el-icon-search", on: { click: function(a) {
|
|
1884
|
+
return e.handleIcon(e.titleSuffix);
|
|
1885
|
+
} } }) : t("i", { staticClass: "el-icon-search" })])], 1) : [e.visible && !e.titleSuffix.transKey ? t("gd-translation", { ref: "gdTranslationSuffix", attrs: { transKey: e.getTransKey("suffix"), keyI18n: "transKey", recordData: e.titleSuffix, type: 3, disabled: !e.titleSuffix.open }, on: { lookupSeled: (a) => e.lookupSeled(a, "suffix") } }) : e._e(), e.visible && e.titleSuffix.transKey ? t("gd-translation", { ref: "gdTranslationSuffix", attrs: { keyI18n: "transKey", recordData: e.titleSuffix, type: 2, disabled: !e.titleSuffix.open }, on: { lookupSeled: (a) => e.lookupSeled(a, "suffix") } }) : e._e()]], 2), t("div", { staticClass: "item-type" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: !e.titleSuffix.open }, model: { value: e.titleSuffix.type, callback: function(a) {
|
|
1886
|
+
e.$set(e.titleSuffix, "type", a);
|
|
1887
|
+
}, expression: "titleSuffix.type" } }, [t("el-option", { attrs: { value: "text", label: e.$i18nt("gd.settings.text", "\u6587\u672C") } }), t("el-option", { attrs: { value: "icon", label: e.$i18nt("gd.layouts.fontIcon", "\u5B57\u4F53\u56FE\u6807") } })], 1)], 1)]), t("div", { staticClass: "list-item-lable", staticStyle: { "margin-top": "6px" } }, [t("div", { staticClass: "item-mode" }, [t("el-input", { staticStyle: { width: "100%" }, attrs: { disabled: !e.titleSuffix.open }, model: { value: e.titleSuffix.color, callback: function(a) {
|
|
1888
|
+
e.$set(e.titleSuffix, "color", a);
|
|
1889
|
+
}, expression: "titleSuffix.color" } }, [t("el-color-picker", { staticClass: "theme-picker", staticStyle: { "margin-right": "-5px" }, attrs: { slot: "suffix", predefine: e.predefine, "popper-class": "theme-picker-dropdown" }, slot: "suffix", model: { value: e.titleSuffix.color, callback: function(a) {
|
|
1890
|
+
e.$set(e.titleSuffix, "color", a);
|
|
1891
|
+
}, expression: "titleSuffix.color" } })], 1)], 1), t("div", { staticClass: "item-mode" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini", disabled: !e.titleSuffix.open }, model: { value: e.titleSuffix.fontSize, callback: function(a) {
|
|
1892
|
+
e.$set(e.titleSuffix, "fontSize", a);
|
|
1893
|
+
}, expression: "titleSuffix.fontSize" } }, e._l(e.getSize, function(a) {
|
|
1894
|
+
return t("el-option", { key: a, attrs: { label: a, value: a } });
|
|
1895
|
+
}), 1)], 1), t("div", { staticClass: "item-mode" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini", disabled: !e.titleSuffix.open }, model: { value: e.titleSuffix.fontWeight, callback: function(a) {
|
|
1896
|
+
e.$set(e.titleSuffix, "fontWeight", a);
|
|
1897
|
+
}, expression: "titleSuffix.fontWeight" } }, [t("el-option", { attrs: { label: e.$i18nt("gd.page.lighter", "\u7EC6"), value: "lighter" } }), t("el-option", { attrs: { label: e.$i18nt("gd.page.fontNormal", "\u9ED8\u8BA4"), value: "normal" } }), t("el-option", { attrs: { label: e.$i18nt("gd.page.bolder", "\u7C97"), value: "bolder" } })], 1)], 1)]), t("el-divider", [e._v(e._s(e.$i18nt("gd.echarts.otherConfig", "\u5176\u4ED6\u914D\u7F6E")))]), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.textFontSize", "\u6570\u503C\u5B57\u4F53\u5927\u5C0F") } }), t("el-select", { staticStyle: { width: "220px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini" }, model: { value: e.ruleFormData.textFontSize, callback: function(a) {
|
|
1898
|
+
e.$set(e.ruleFormData, "textFontSize", a);
|
|
1899
|
+
}, expression: "ruleFormData.textFontSize" } }, e._l(e.getSize, function(a) {
|
|
1900
|
+
return t("el-option", { key: a, attrs: { label: a, value: a } });
|
|
1901
|
+
}), 1)], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.echarts.textFontColor", "\u6570\u503C\u5B57\u4F53\u989C\u8272") } }), t("el-input", { staticStyle: { width: "220px" }, model: { value: e.ruleFormData.textFontColor, callback: function(a) {
|
|
1902
|
+
e.$set(e.ruleFormData, "textFontColor", a);
|
|
1903
|
+
}, expression: "ruleFormData.textFontColor" } }, [t("el-color-picker", { staticClass: "theme-picker", staticStyle: { "margin-right": "-5px" }, attrs: { slot: "suffix", predefine: e.predefine, "popper-class": "theme-picker-dropdown" }, slot: "suffix", model: { value: e.ruleFormData.textFontColor, callback: function(a) {
|
|
1904
|
+
e.$set(e.ruleFormData, "textFontColor", a);
|
|
1905
|
+
}, expression: "ruleFormData.textFontColor" } })], 1)], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.page.align", "\u5BF9\u9F50\u65B9\u5F0F") } }), t("el-select", { staticStyle: { width: "220px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini" }, model: { value: e.ruleFormData.align, callback: function(a) {
|
|
1906
|
+
e.$set(e.ruleFormData, "align", a);
|
|
1907
|
+
}, expression: "ruleFormData.align" } }, [t("el-option", { attrs: { label: e.$i18nt("gd.page.alignLeft", "\u5DE6\u5BF9\u9F50"), value: "left" } }), t("el-option", { attrs: { label: e.$i18nt("gd.page.center", "\u5C45\u4E2D"), value: "center" } }), t("el-option", { attrs: { label: e.$i18nt("gd.page.alignRight", "\u53F3\u5BF9\u9F50"), value: "right" } })], 1)], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.page.fontWeight", "\u5B57\u4F53\u52A0\u7C97") } }), t("el-select", { staticStyle: { width: "220px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini" }, model: { value: e.ruleFormData.textFontWeight, callback: function(a) {
|
|
1908
|
+
e.$set(e.ruleFormData, "textFontWeight", a);
|
|
1909
|
+
}, expression: "ruleFormData.textFontWeight" } }, [t("el-option", { attrs: { label: e.$i18nt("gd.page.lighter", "\u7EC6"), value: "lighter" } }), t("el-option", { attrs: { label: e.$i18nt("gd.page.fontNormal", "\u9ED8\u8BA4"), value: "normal" } }), t("el-option", { attrs: { label: e.$i18nt("gd.page.bolder", "\u7C97"), value: "bolder" } })], 1)], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.page.rowHeight", "\u884C\u9AD8") } }), t("el-input-number", { staticStyle: { width: "220px" }, attrs: { min: 1, "controls-position": "right" }, model: { value: e.ruleFormData.lineHeight, callback: function(a) {
|
|
1910
|
+
e.$set(e.ruleFormData, "lineHeight", a);
|
|
1911
|
+
}, expression: "ruleFormData.lineHeight" } })], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.page.numericalAccuracy", "\u6570\u503C\u7CBE\u5EA6") } }), t("el-input-number", { staticStyle: { width: "220px" }, attrs: { "controls-position": "right", min: 0 }, model: { value: e.ruleFormData.numericalPrecision, callback: function(a) {
|
|
1912
|
+
e.$set(e.ruleFormData, "numericalPrecision", a);
|
|
1913
|
+
}, expression: "ruleFormData.numericalPrecision" } })], 1), t("div", { staticClass: "echarts-flex" }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.page.numericalFormat", "\u6570\u503C\u683C\u5F0F\u5316") } }), t("el-select", { staticStyle: { width: "220px" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), size: "mini", clearable: "" }, model: { value: e.ruleFormData.numericalFormat, callback: function(a) {
|
|
1914
|
+
e.$set(e.ruleFormData, "numericalFormat", a);
|
|
1915
|
+
}, expression: "ruleFormData.numericalFormat" } }, [e._l(e.getDictionary(e.getEffectType === "datepicker" ? "time_longshort" : "statistical_value_unit"), function(a) {
|
|
1916
|
+
return [t("el-option", { attrs: { value: a.code, label: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } })];
|
|
1917
|
+
})], 2)], 1)], 2)], 1)])])])], 2), t("iconSelector", { ref: "iconSelector", model: { value: e.selItem.icon, callback: function(a) {
|
|
1918
|
+
e.$set(e.selItem, "icon", a);
|
|
1919
|
+
}, expression: "selItem.icon" } })], 1);
|
|
1920
|
+
}, R = [], A = /* @__PURE__ */ m(
|
|
1921
|
+
O,
|
|
1922
|
+
E,
|
|
1923
|
+
R,
|
|
1924
|
+
!1,
|
|
1925
|
+
null,
|
|
1926
|
+
"b078d82c",
|
|
1927
|
+
null,
|
|
1928
|
+
null
|
|
1929
|
+
);
|
|
1930
|
+
const U = A.exports, j = {
|
|
1931
|
+
data() {
|
|
1932
|
+
return {
|
|
1933
|
+
tableColumns: [
|
|
1934
|
+
{
|
|
1935
|
+
type: "selection",
|
|
1936
|
+
width: "60",
|
|
1937
|
+
fixed: !0
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
transKey: "gd.form.name",
|
|
1941
|
+
prop: "name",
|
|
1942
|
+
label: "\u540D\u79F0",
|
|
1943
|
+
width: "260",
|
|
1944
|
+
type: "slot",
|
|
1945
|
+
slotType: "name",
|
|
1946
|
+
align: "left",
|
|
1947
|
+
fixed: !0,
|
|
1948
|
+
showOverflowTooltip: !0
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
transKey: "gd.echarts.type",
|
|
1952
|
+
prop: "echartsType",
|
|
1953
|
+
width: "160",
|
|
1954
|
+
label: "\u56FE\u8868\u7C7B\u578B",
|
|
1955
|
+
type: "slot",
|
|
1956
|
+
slotType: "echartsType",
|
|
1957
|
+
align: "left",
|
|
1958
|
+
showOverflowTooltip: !0
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
transKey: "gd.echarts.mode",
|
|
1962
|
+
prop: "collectWay",
|
|
1963
|
+
width: "160",
|
|
1964
|
+
label: "\u6C47\u603B\u65B9\u5F0F",
|
|
1965
|
+
type: "slot",
|
|
1966
|
+
slotType: "collectWay",
|
|
1967
|
+
align: "left",
|
|
1968
|
+
showOverflowTooltip: !0
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
transKey: "gd.settings.echartsColor",
|
|
1972
|
+
prop: "colour",
|
|
1973
|
+
minWidth: "360",
|
|
1974
|
+
label: "\u989C\u8272",
|
|
1975
|
+
type: "slot",
|
|
1976
|
+
slotType: "colour",
|
|
1977
|
+
align: "left",
|
|
1978
|
+
showOverflowTooltip: !0
|
|
1979
|
+
}
|
|
1980
|
+
],
|
|
1981
|
+
formColumns: [],
|
|
1982
|
+
tableButtons: [
|
|
1983
|
+
{
|
|
1984
|
+
displayName: "\u65B0\u589E",
|
|
1985
|
+
functionName: "add",
|
|
1986
|
+
show: !0,
|
|
1987
|
+
transKey: "gd.btn.add",
|
|
1988
|
+
icon: "el-icon-plus",
|
|
1989
|
+
name: "sysTableEcharts:add"
|
|
1990
|
+
},
|
|
1991
|
+
{
|
|
1992
|
+
displayName: "\u7F16\u8F91",
|
|
1993
|
+
functionName: "edit",
|
|
1994
|
+
show: !0,
|
|
1995
|
+
transKey: "gd.btn.edit",
|
|
1996
|
+
icon: "el-icon-edit",
|
|
1997
|
+
name: "sysTableEcharts:edit"
|
|
1998
|
+
},
|
|
1999
|
+
{
|
|
2000
|
+
displayName: "\u5220\u9664",
|
|
2001
|
+
functionName: "del",
|
|
2002
|
+
show: !0,
|
|
2003
|
+
transKey: "gd.btn.del",
|
|
2004
|
+
icon: "el-icon-delete",
|
|
2005
|
+
btnType: "danger",
|
|
2006
|
+
name: "sysTableEcharts:delete"
|
|
2007
|
+
}
|
|
2008
|
+
],
|
|
2009
|
+
formButtons: [{
|
|
2010
|
+
displayName: "\u786E\u5B9A",
|
|
2011
|
+
functionName: "handleSubmit",
|
|
2012
|
+
show: !0,
|
|
2013
|
+
transKey: "gd.btn.confirm",
|
|
2014
|
+
icon: "el-icon-document-checked",
|
|
2015
|
+
validate: !0
|
|
2016
|
+
}]
|
|
2017
|
+
};
|
|
2018
|
+
}
|
|
2019
|
+
};
|
|
2020
|
+
const M = {
|
|
2021
|
+
props: {
|
|
2022
|
+
height: {
|
|
2023
|
+
type: Number,
|
|
2024
|
+
default: 100
|
|
2025
|
+
},
|
|
2026
|
+
record: {
|
|
2027
|
+
type: Object,
|
|
2028
|
+
default: () => ({})
|
|
2029
|
+
}
|
|
2030
|
+
},
|
|
2031
|
+
mixins: [k, j],
|
|
2032
|
+
data() {
|
|
2033
|
+
return {
|
|
2034
|
+
transKey: "gd.btn.add",
|
|
2035
|
+
formLoading: !1,
|
|
2036
|
+
loading: !0,
|
|
2037
|
+
selectedRowKeys: [],
|
|
2038
|
+
selectedRows: [],
|
|
2039
|
+
queryParam: {},
|
|
2040
|
+
loadData: (l) => this.record.id === void 0 ? new Promise((e, t) => {
|
|
2041
|
+
e({ pageNo: 1, pageSize: 40, totalRows: 0, rows: [] });
|
|
2042
|
+
}) : F({ sysCodeGenId: this.record.id }).then((e) => ({ pageNo: 1, pageSize: 40, totalRows: 0, rows: e.data }))
|
|
2043
|
+
};
|
|
2044
|
+
},
|
|
2045
|
+
components: { EditForm: () => Promise.resolve().then(() => N) },
|
|
2046
|
+
computed: {
|
|
2047
|
+
...u(["tablePageSize", "tableSize", "echartsColor", "primaryColor"])
|
|
2048
|
+
},
|
|
2049
|
+
methods: {
|
|
2050
|
+
getColor(l) {
|
|
2051
|
+
return l.colour ? l.colour.split(",") : [...this.echartsColor];
|
|
2052
|
+
},
|
|
2053
|
+
refresh() {
|
|
2054
|
+
this.$refs.table.refresh();
|
|
2055
|
+
},
|
|
2056
|
+
editForm(l) {
|
|
2057
|
+
this.transKey = "gd.btn.edit", this.$refs.editForm.open(l);
|
|
2058
|
+
},
|
|
2059
|
+
del() {
|
|
2060
|
+
if (this.selectedRowKeys.length === 0) {
|
|
2061
|
+
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
2062
|
+
return;
|
|
2063
|
+
}
|
|
2064
|
+
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
2065
|
+
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
2066
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
2067
|
+
showClose: !1,
|
|
2068
|
+
confirmButtonLoading: !1,
|
|
2069
|
+
cancelButtonLoading: !1,
|
|
2070
|
+
closeOnClickModal: !1,
|
|
2071
|
+
type: "warning",
|
|
2072
|
+
confirmButtonClass: "el-button--danger",
|
|
2073
|
+
customClass: "custom-alert",
|
|
2074
|
+
callback: () => {
|
|
2075
|
+
},
|
|
2076
|
+
beforeClose: (l, e, t) => {
|
|
2077
|
+
this.delHand(l, e, t);
|
|
2078
|
+
}
|
|
2079
|
+
});
|
|
2080
|
+
},
|
|
2081
|
+
delHand(l, e, t) {
|
|
2082
|
+
if (l !== "confirm") {
|
|
2083
|
+
t();
|
|
2084
|
+
return;
|
|
2085
|
+
}
|
|
2086
|
+
e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, D({
|
|
2087
|
+
ids: this.selectedRowKeys.join(",")
|
|
2088
|
+
}).then((a) => {
|
|
2089
|
+
t(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, a.success ? this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + a.message), this.handleOk();
|
|
2090
|
+
});
|
|
2091
|
+
},
|
|
2092
|
+
add() {
|
|
2093
|
+
this.transKey = "gd.btn.add", this.$refs.editForm.open(null);
|
|
2094
|
+
},
|
|
2095
|
+
edit() {
|
|
2096
|
+
if (this.selectedRowKeys.length === 0) {
|
|
2097
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
2098
|
+
return;
|
|
2099
|
+
}
|
|
2100
|
+
if (this.selectedRowKeys.length > 1) {
|
|
2101
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
2102
|
+
return;
|
|
2103
|
+
}
|
|
2104
|
+
this.editForm(this.selectedRows[0]);
|
|
2105
|
+
},
|
|
2106
|
+
handleOk() {
|
|
2107
|
+
this.$refs.table.refresh();
|
|
2108
|
+
},
|
|
2109
|
+
onSelectChange(l, e) {
|
|
2110
|
+
this.selectedRowKeys = l, this.selectedRows = e;
|
|
2111
|
+
},
|
|
2112
|
+
doEvent(l) {
|
|
2113
|
+
let e = l.item.functionName;
|
|
2114
|
+
this[e] && this[e]();
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
};
|
|
2118
|
+
var W = function() {
|
|
2119
|
+
var e = this, t = e._self._c;
|
|
2120
|
+
return t("div", [t("div", [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, "max-height": e.height, showPagination: !1, initialLoading: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "name", fn: function({ column: a, row: i }) {
|
|
2121
|
+
return [t("gd-tooltip", { attrs: { rowKey: "name", row: i, highlight: "", transKey: `Dynamics.${i.transKey}` }, on: { click: e.editForm } })];
|
|
2122
|
+
} }, { key: "echartsType", fn: function({ column: a, row: i }) {
|
|
2123
|
+
return [i.echartstype == 1 ? t("i", { staticClass: "active-color gd-icons gd-icon-zhuzhuangtu" }) : i.echartstype == 2 ? t("i", { staticClass: "active-color gd-icons gd-icon-bingtu" }) : i.echartstype == 3 ? t("i", { staticClass: "active-color gd-icons gd-icon-loudoutu" }) : i.echartstype == 4 ? t("i", { staticClass: "active-color gd-icons gd-icon-zhexiantu" }) : e._e(), e._v(" " + e._s(e._f("dictType")("table_echarts_type", i.echartstype)) + " ")];
|
|
2124
|
+
} }, { key: "collectWay", fn: function(a) {
|
|
2125
|
+
return [e._v(" " + e._s(e._f("dictType")("table_echarts_mode", a.row.collectway)) + " ")];
|
|
2126
|
+
} }, { key: "colour", fn: function({ column: a, row: i }) {
|
|
2127
|
+
return [t("div", { staticClass: "follow-theme" }, [e._l(e.getColor(i), function(s, r) {
|
|
2128
|
+
return [t("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], attrs: { content: s === "0" ? e.$i18nt("gd.settings.followTheme", "\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272") : s, placement: "top", "open-delay": 50 } }, [s === "0" ? t("div", { style: `background:${e.primaryColor};width: 15px;height: 15px;margin-right: 4px;` }) : t("div", { style: `background:${s};width: 15px;height: 15px;margin-right: 4px;` })])];
|
|
2129
|
+
})], 2)];
|
|
2130
|
+
} }, { key: "operator", fn: function() {
|
|
2131
|
+
return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
2132
|
+
}, proxy: !0 }]) })], 1), t("EditForm", { ref: "editForm", attrs: { table: e.record }, on: { ok: e.refresh } })], 1);
|
|
2133
|
+
}, B = [], H = /* @__PURE__ */ m(
|
|
2134
|
+
M,
|
|
2135
|
+
W,
|
|
2136
|
+
B,
|
|
2137
|
+
!1,
|
|
2138
|
+
null,
|
|
2139
|
+
"7b5b14f8",
|
|
2140
|
+
null,
|
|
2141
|
+
null
|
|
2142
|
+
);
|
|
2143
|
+
const ee = H.exports;
|
|
2144
|
+
export {
|
|
2145
|
+
L as E,
|
|
2146
|
+
U as a,
|
|
2147
|
+
N as b,
|
|
2148
|
+
ee as e,
|
|
2149
|
+
Q as g
|
|
2150
|
+
};
|