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
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";const D=require("./utils.echarts.js.461a74e7.js"),z=require("./utils.util.js.50d1ec9c.js");/*!
|
|
2
|
-
* vuex v3.6.2
|
|
3
|
-
* (c) 2021 Evan You
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/function pt(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:i});else{var o=t.prototype._init;t.prototype._init=function(n){n===void 0&&(n={}),n.init=n.init?[i].concat(n.init):i,o.call(this,n)}}function i(){var n=this.$options;n.store?this.$store=typeof n.store=="function"?n.store():n.store:n.parent&&n.parent.$store&&(this.$store=n.parent.$store)}}var dt=typeof window<"u"?window:typeof global<"u"?global:{},M=dt.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ht(t){!M||(t._devtoolHook=M,M.emit("vuex:init",t),M.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(e,o){M.emit("vuex:mutation",e,o)},{prepend:!0}),t.subscribeAction(function(e,o){M.emit("vuex:action",e,o)},{prepend:!0}))}function P(t,e){Object.keys(t).forEach(function(o){return e(t[o],o)})}function et(t){return t!==null&&typeof t=="object"}function mt(t){return t&&typeof t.then=="function"}function N(t,e){if(!t)throw new Error("[vuex] "+e)}function gt(t,e){return function(){return t(e)}}var w=function(e,o){this.runtime=o,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=(typeof i=="function"?i():i)||{}},ot={namespaced:{configurable:!0}};ot.namespaced.get=function(){return!!this._rawModule.namespaced};w.prototype.addChild=function(e,o){this._children[e]=o};w.prototype.removeChild=function(e){delete this._children[e]};w.prototype.getChild=function(e){return this._children[e]};w.prototype.hasChild=function(e){return e in this._children};w.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)};w.prototype.forEachChild=function(e){P(this._children,e)};w.prototype.forEachGetter=function(e){this._rawModule.getters&&P(this._rawModule.getters,e)};w.prototype.forEachAction=function(e){this._rawModule.actions&&P(this._rawModule.actions,e)};w.prototype.forEachMutation=function(e){this._rawModule.mutations&&P(this._rawModule.mutations,e)};Object.defineProperties(w.prototype,ot);var A=function(e){this.register([],e,!1)};A.prototype.get=function(e){return e.reduce(function(o,i){return o.getChild(i)},this.root)};A.prototype.getNamespace=function(e){var o=this.root;return e.reduce(function(i,n){return o=o.getChild(n),i+(o.namespaced?n+"/":"")},"")};A.prototype.update=function(e){it([],this.root,e)};A.prototype.register=function(e,o,i){var n=this;i===void 0&&(i=!0),process.env.NODE_ENV!=="production"&&nt(e,o);var s=new w(o,i);if(e.length===0)this.root=s;else{var l=this.get(e.slice(0,-1));l.addChild(e[e.length-1],s)}o.modules&&P(o.modules,function(p,a){n.register(e.concat(a),p,i)})};A.prototype.unregister=function(e){var o=this.get(e.slice(0,-1)),i=e[e.length-1],n=o.getChild(i);if(!n){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+i+"', which is not registered");return}!n.runtime||o.removeChild(i)};A.prototype.isRegistered=function(e){var o=this.get(e.slice(0,-1)),i=e[e.length-1];return o?o.hasChild(i):!1};function it(t,e,o){if(process.env.NODE_ENV!=="production"&&nt(t,o),e.update(o),o.modules)for(var i in o.modules){if(!e.getChild(i)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+i+"' on hot reloading, manual reload is needed");return}it(t.concat(i),e.getChild(i),o.modules[i])}}var X={assert:function(t){return typeof t=="function"},expected:"function"},yt={assert:function(t){return typeof t=="function"||typeof t=="object"&&typeof t.handler=="function"},expected:'function or object with "handler" function'},J={getters:X,mutations:X,actions:yt};function nt(t,e){Object.keys(J).forEach(function(o){if(!!e[o]){var i=J[o];P(e[o],function(n,s){N(i.assert(n),vt(t,o,s,n,i.expected))})}})}function vt(t,e,o,i,n){var s=e+" should be "+n+' but "'+e+"."+o+'"';return t.length>0&&(s+=' in module "'+t.join(".")+'"'),s+=" is "+JSON.stringify(i)+".",s}var $,E=function t(e){var o=this;e===void 0&&(e={}),!$&&typeof window<"u"&&window.Vue&&St(window.Vue),process.env.NODE_ENV!=="production"&&(N($,"must call Vue.use(Vuex) before creating a store instance."),N(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),N(this instanceof t,"store must be called with the new operator."));var i=e.plugins;i===void 0&&(i=[]);var n=e.strict;n===void 0&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new A(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new $,this._makeLocalGettersCache=Object.create(null);var s=this,l=this,p=l.dispatch,a=l.commit;this.dispatch=function(g,r){return p.call(s,g,r)},this.commit=function(g,r,m){return a.call(s,g,r,m)},this.strict=n;var c=this._modules.root.state;W(this,c,[],this._modules.root),H(this,c),i.forEach(function(u){return u(o)});var f=e.devtools!==void 0?e.devtools:$.config.devtools;f&&ht(this)},B={state:{configurable:!0}};B.state.get=function(){return this._vm._data.$$state};B.state.set=function(t){process.env.NODE_ENV!=="production"&&N(!1,"use store.replaceState() to explicit replace store state.")};E.prototype.commit=function(e,o,i){var n=this,s=I(e,o,i),l=s.type,p=s.payload,a=s.options,c={type:l,payload:p},f=this._mutations[l];if(!f){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+l);return}this._withCommit(function(){f.forEach(function(g){g(p)})}),this._subscribers.slice().forEach(function(u){return u(c,n.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+l+". Silent option has been removed. Use the filter functionality in the vue-devtools")};E.prototype.dispatch=function(e,o){var i=this,n=I(e,o),s=n.type,l=n.payload,p={type:s,payload:l},a=this._actions[s];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+s);return}try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(p,i.state)})}catch(f){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(f))}var c=a.length>1?Promise.all(a.map(function(f){return f(l)})):a[0](l);return new Promise(function(f,u){c.then(function(g){try{i._actionSubscribers.filter(function(r){return r.after}).forEach(function(r){return r.after(p,i.state)})}catch(r){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(r))}f(g)},function(g){try{i._actionSubscribers.filter(function(r){return r.error}).forEach(function(r){return r.error(p,i.state,g)})}catch(r){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(r))}u(g)})})};E.prototype.subscribe=function(e,o){return rt(e,this._subscribers,o)};E.prototype.subscribeAction=function(e,o){var i=typeof e=="function"?{before:e}:e;return rt(i,this._actionSubscribers,o)};E.prototype.watch=function(e,o,i){var n=this;return process.env.NODE_ENV!=="production"&&N(typeof e=="function","store.watch only accepts a function."),this._watcherVM.$watch(function(){return e(n.state,n.getters)},o,i)};E.prototype.replaceState=function(e){var o=this;this._withCommit(function(){o._vm._data.$$state=e})};E.prototype.registerModule=function(e,o,i){i===void 0&&(i={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(N(Array.isArray(e),"module path must be a string or an Array."),N(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,o),W(this,this.state,e,this._modules.get(e),i.preserveState),H(this,this.state)};E.prototype.unregisterModule=function(e){var o=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&N(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var i=U(o.state,e.slice(0,-1));$.delete(i,e[e.length-1])}),st(this)};E.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&N(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)};E.prototype.hotUpdate=function(e){this._modules.update(e),st(this,!0)};E.prototype._withCommit=function(e){var o=this._committing;this._committing=!0,e(),this._committing=o};Object.defineProperties(E.prototype,B);function rt(t,e,o){return e.indexOf(t)<0&&(o&&o.prepend?e.unshift(t):e.push(t)),function(){var i=e.indexOf(t);i>-1&&e.splice(i,1)}}function st(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var o=t.state;W(t,o,[],t._modules.root,!0),H(t,o,e)}function H(t,e,o){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var n=t._wrappedGetters,s={};P(n,function(p,a){s[a]=gt(p,t),Object.defineProperty(t.getters,a,{get:function(){return t._vm[a]},enumerable:!0})});var l=$.config.silent;$.config.silent=!0,t._vm=new $({data:{$$state:e},computed:s}),$.config.silent=l,t.strict&&Ct(t),i&&(o&&t._withCommit(function(){i._data.$$state=null}),$.nextTick(function(){return i.$destroy()}))}function W(t,e,o,i,n){var s=!o.length,l=t._modules.getNamespace(o);if(i.namespaced&&(t._modulesNamespaceMap[l]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+l+" for the namespaced module "+o.join("/")),t._modulesNamespaceMap[l]=i),!s&&!n){var p=U(e,o.slice(0,-1)),a=o[o.length-1];t._withCommit(function(){process.env.NODE_ENV!=="production"&&a in p&&console.warn('[vuex] state field "'+a+'" was overridden by a module with the same name at "'+o.join(".")+'"'),$.set(p,a,i.state)})}var c=i.context=bt(t,l,o);i.forEachMutation(function(f,u){var g=l+u;xt(t,g,f,c)}),i.forEachAction(function(f,u){var g=f.root?u:l+u,r=f.handler||f;Ot(t,g,r,c)}),i.forEachGetter(function(f,u){var g=l+u;$t(t,g,f,c)}),i.forEachChild(function(f,u){W(t,e,o.concat(u),f,n)})}function bt(t,e,o){var i=e==="",n={dispatch:i?t.dispatch:function(s,l,p){var a=I(s,l,p),c=a.payload,f=a.options,u=a.type;if((!f||!f.root)&&(u=e+u,process.env.NODE_ENV!=="production"&&!t._actions[u])){console.error("[vuex] unknown local action type: "+a.type+", global type: "+u);return}return t.dispatch(u,c)},commit:i?t.commit:function(s,l,p){var a=I(s,l,p),c=a.payload,f=a.options,u=a.type;if((!f||!f.root)&&(u=e+u,process.env.NODE_ENV!=="production"&&!t._mutations[u])){console.error("[vuex] unknown local mutation type: "+a.type+", global type: "+u);return}t.commit(u,c,f)}};return Object.defineProperties(n,{getters:{get:i?function(){return t.getters}:function(){return _t(t,e)}},state:{get:function(){return U(t.state,o)}}}),n}function _t(t,e){if(!t._makeLocalGettersCache[e]){var o={},i=e.length;Object.keys(t.getters).forEach(function(n){if(n.slice(0,i)===e){var s=n.slice(i);Object.defineProperty(o,s,{get:function(){return t.getters[n]},enumerable:!0})}}),t._makeLocalGettersCache[e]=o}return t._makeLocalGettersCache[e]}function xt(t,e,o,i){var n=t._mutations[e]||(t._mutations[e]=[]);n.push(function(l){o.call(t,i.state,l)})}function Ot(t,e,o,i){var n=t._actions[e]||(t._actions[e]=[]);n.push(function(l){var p=o.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},l);return mt(p)||(p=Promise.resolve(p)),t._devtoolHook?p.catch(function(a){throw t._devtoolHook.emit("vuex:error",a),a}):p})}function $t(t,e,o,i){if(t._wrappedGetters[e]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+e);return}t._wrappedGetters[e]=function(s){return o(i.state,i.getters,s.state,s.getters)}}function Ct(t){t._vm.$watch(function(){return this._data.$$state},function(){process.env.NODE_ENV!=="production"&&N(t._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,sync:!0})}function U(t,e){return e.reduce(function(o,i){return o[i]},t)}function I(t,e,o){return et(t)&&t.type&&(o=e,e=t,t=t.type),process.env.NODE_ENV!=="production"&&N(typeof t=="string","expects string as the type, but found "+typeof t+"."),{type:t,payload:e,options:o}}function St(t){if($&&t===$){process.env.NODE_ENV!=="production"&&console.error("[vuex] already installed. Vue.use(Vuex) should be called only once.");return}$=t,pt($)}var at=ct(function(t,e){var o={};return process.env.NODE_ENV!=="production"&&!Q(e)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),lt(e).forEach(function(i){var n=i.key,s=i.val;s=t+s,o[n]=function(){if(!(t&&!ut(this.$store,"mapGetters",t))){if(process.env.NODE_ENV!=="production"&&!(s in this.$store.getters)){console.error("[vuex] unknown getter: "+s);return}return this.$store.getters[s]}},o[n].vuex=!0}),o}),Nt=ct(function(t,e){var o={};return process.env.NODE_ENV!=="production"&&!Q(e)&&console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),lt(e).forEach(function(i){var n=i.key,s=i.val;o[n]=function(){for(var p=[],a=arguments.length;a--;)p[a]=arguments[a];var c=this.$store.dispatch;if(t){var f=ut(this.$store,"mapActions",t);if(!f)return;c=f.context.dispatch}return typeof s=="function"?s.apply(this,[c].concat(p)):c.apply(this.$store,[s].concat(p))}}),o});function lt(t){return Q(t)?Array.isArray(t)?t.map(function(e){return{key:e,val:e}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}}):[]}function Q(t){return Array.isArray(t)||et(t)}function ct(t){return function(e,o){return typeof e!="string"?(o=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),t(e,o)}}function ut(t,e,o){var i=t._modulesNamespaceMap[o];return process.env.NODE_ENV!=="production"&&!i&&console.error("[vuex] module namespace not found in "+e+"(): "+o),i}function V(t,e,o,i,n,s,l,p){var a=typeof t=="function"?t.options:t;e&&(a.render=e,a.staticRenderFns=o,a._compiled=!0),i&&(a.functional=!0),s&&(a._scopeId="data-v-"+s);var c;if(l?(c=function(g){g=g||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!g&&typeof __VUE_SSR_CONTEXT__<"u"&&(g=__VUE_SSR_CONTEXT__),n&&n.call(this,g),g&&g._registeredComponents&&g._registeredComponents.add(l)},a._ssrRegister=c):n&&(c=p?function(){n.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:n),c)if(a.functional){a._injectStyles=c;var f=a.render;a.render=function(r,m){return c.call(m),f(r,m)}}else{var u=a.beforeCreate;a.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:a}}function Et(t,e,o){let i=new Map;return t.forEach((s,l)=>{i.set(s.id,wt(s.operation.list))}),{rich:Object.fromEntries(i),formatter:s=>jt(s,t,e,o)}}function wt(t){let e={};return t.forEach(o=>{o.rules==="1"?Object.assign(e,{color:o.val?o.val:"#333"}):o.rules==="2"?Object.assign(e,{fontSize:o.val+"px"}):o.rules==="3"&&Object.assign(e,{fontWeight:o.val})}),e}function jt(t,e,o,i){const n=o.formatter?o.formatter:"",s=o.transKeyPrefix?i(o.transKeyPrefix,o.prefix):"";let l="";for(let a=0;a<e.length;a++){let c=[];e[a].condition.list.forEach(u=>{const g=q(u.val),r=o.bei===0?0:o.bei===100?g.l-2:g.l-3,m=L(Number(u.val)*o.bei,r);let d=kt({data:Object.assign({...u},{val:m}),val:t.data});c.push(d)}),Ft(c,e[a])&&l===""&&(l=e[a].id)}return l!==""?`{${l}|${s} ${t.data} ${n}}`:`${s} ${t.data} ${n}`}function kt(t){switch(t.data.rules){case"1":return Z(t);case"2":return Z(t);case"7":return K(t);case"8":return K(t);case"9":return K(t);case"10":return K(t)}}function Z({data:t,val:e}){if(e===""||e===void 0)return!1;let o=Number(e),i=Number(t.val);return t.rules==="1"?o===i:o!==i}function K({data:t,val:e}){if(e===""||e===void 0)return!1;let o=Y("inputnumber",{val:e}),i=Y("inputnumber",t);if(t.rules==="7")return o>i;if(t.rules==="8")return o>=i;if(t.rules==="9")return o<i;if(t.rules==="10")return o<=i}function Y(t="inputnumber",e){let o=0;return t==="inputnumber"?o=Number(e.val):o=new Date(String(e.val)).getTime(),o}function Ft(t,e){let o=e.condition.list.length;if(o===0)return!0;let i=o===0?"1":e.condition.list[o-1].type,n=Dt(t,i);return i==="2"&&!n?!0:!!(i!=="2"&&n)}function Dt(t,e){return e==="2"?t.every((o,i,n)=>!o):t.every((o,i,n)=>!!o)}function q(t){const e=String(t),o=e.substr(e.lastIndexOf(".")+1).toLowerCase();let i=1;for(let n=0;n<o.length;n++)i*=10;return{n:i,l:o.length}}function L(t,e){const o=10**e;return Math.round(t*o)/o}const Tt={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},ruleList:{type:Array,default:()=>[]}},data(){return{}},methods:{init(t){let e=D.echarts.init(this.$refs.container),o=this.getOption(t);e.clear(),e.dispose(),e=D.echarts.init(this.$refs.container),e.setOption(o),e.on("click",i=>{this.$emit("change",i)})},getOption(t){let e=[],o=[],i=[],n=[];const s=t.series.filter(r=>r.type==="bar")[0];t.columns.forEach(r=>{e.push({type:"category",data:r.data,axisPointer:{type:s===void 0?"line":"shadow"},axisTick:{alignWithLabel:!1},axisLine:{onZero:!1,lineStyle:{color:this.options.labelLineColor}},axisLabel:{interval:0,rotate:r.rotate!==void 0?r.rotate:this.options.labelRotate,fontSize:r.fontSize!==void 0?r.fontSize:this.options.labelFontSize,color:r.color!==void 0?r.color:this.options.xAxisLabelColor},offset:r.offset,position:r.position})}),t.data.forEach((r,m)=>{this.$i18nt(r.item.transKey,r.item.name);let d={type:"value",axisLine:{show:!0,lineStyle:{color:this.options.labelLineColor}},axisLabel:{formatter:r.formatter?`{value} ${r.formatter}`:"{value}",color:this.options.labelFontColor}};r.max!==void 0&&Object.assign(d,{max:r.max}),r.min!==void 0&&Object.assign(d,{min:r.min}),t.data.length!==1&&Object.assign(d,{position:m===0?"left":"right",alignTicks:!0,show:m<2,axisLabel:{formatter:r.formatter?`{value} ${r.formatter}`:"{value}"}}),o.push(d)});const p=t.series.filter(r=>{const m=r.item.columnName?r.item.columnName:"",d=t.series[0].columnName?t.series[0].columnName:"";return m===d}).length===t.series.length;t.series.forEach((r,m)=>{let d=this.$i18nt(r.item.transKey,r.item.name);r.item.transkeyDict&&(d+=` (${this.$i18nt(r.item.transkeyDict,r.item.transkeyName)})`);let y={label:{show:r.tooltip?this.options.labelShow:r.tooltip,position:this.options.labelTextPosition,textStyle:{fontSize:this.options.textFontSize,color:this.options.textFontColor}},color:x=>t.type===1?this.color[x.dataIndex]:this.color[m]};this.ruleList.length>0&&(y=this.getNormal(y,r)),(t.data.length!==1||t.type===2)&&r.item.name&&n.push(d);let b={type:r.type,name:d,emphasis:{focus:this.options.emphasisFocus},data:r.data.map(x=>{if(r.bei===1)return L(x,this.options.numericalPrecision).toFixed(this.options.numericalPrecision);const O=q(x),k=r.bei===100?O.l-2:O.l-3,T=L(Number(x)*r.bei,k);return L(T,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)}),tooltip:{show:r.tooltip,valueFormatter:x=>{const O=r.formatter?r.formatter:"";return`${r.transKeyPrefix?this.$i18nt(r.transKeyPrefix,r.prefix):""} ${x} ${O}`}},itemStyle:t.data.length===1?{normal:y}:{normal:Object.assign({...y},{color:this.color[m]})}};const v=this.options.overlayStack?{stack:r.stack?r.stack:"Total"}:{};t.type===1&&Object.assign(b,{yAxisIndex:p||v.stack!==void 0?0:m}),r.type==="line"&&Object.assign(b,{smooth:this.options.smooth,showSymbol:this.options.showSymbol,lineStyle:{width:this.options.lineStyleWidth}}),i.push(Object.assign(b,v))});let a={containLabel:!0};this.options.gridPosition.forEach((r,m)=>{r!==""&&m===0?Object.assign(a,{top:r}):r!==""&&m===1?Object.assign(a,{right:r}):r!==""&&m===2?Object.assign(a,{bottom:r}):r!==""&&m===3&&Object.assign(a,{left:r})});let c={data:n,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};if(this.options.legendPosition.forEach((r,m)=>{r!==""&&m===0?Object.assign(c,{top:r}):r!==""&&m===1?Object.assign(c,{right:r}):r!==""&&m===2?Object.assign(c,{bottom:r}):r!==""&&m===3&&Object.assign(c,{left:r})}),s===void 0&&this.options.areaStyleStack&&(e.forEach((r,m)=>{e[m]=Object.assign(r,{boundaryGap:!1})}),i.forEach((r,m)=>{i[m]=Object.assign(r,{areaStyle:{}})})),this.options.overlayStack&&this.options.numericalSummary&&this.options.labelTextPosition==="inside"){let r=[],m=[];const d=t.series[0].bei;for(let y=0;y<i[0].data.length;y++){let b=0;for(let v=0;v<i.length;v++)b+=Number(i[v].data[y]);if(m.push(0),d===1)r.push(L(b,this.options.numericalPrecision).toFixed(this.options.numericalPrecision));else{const v=q(b),x=d===100?v.l-2:v.l-3,O=L(Number(ite)*d,x);r.push(L(O,this.options.numericalPrecision).toFixed(this.options.numericalPrecision))}}i.push({name:"\u6C47\u603B",stack:i[0].stack,type:"bar",label:{normal:{show:!0,position:"top",formatter:function(y){return r[y.dataIndex]},textStyle:{color:"#333",fontSize:this.options.textFontSize}}},tooltip:{show:!1},data:m})}const f=Math.ceil(i.length/this.color.length);let u=[];for(let r=0;r<f;r++)u=u.concat(this.color);return{color:u,tooltip:{trigger:"axis",axisPointer:{type:s===void 0?"cross":"shadow"}},grid:a,legend:c,xAxis:e,yAxis:o,series:i}},getNormal(t,e){const o=`${e.columnName}&${e.mode}`,i=this.ruleList.filter(s=>`${s.columnName}&${s.mode}`===o)[0];if(!i)return t;let n=Et(i.ruleSequence,e,this.$i18nt);return Object.assign({...t},{label:Object.assign({...t.label},n)})}}};var Lt=function(){var e=this,o=e._self._c;return o("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},Pt=[],At=V(Tt,Lt,Pt,!1,null,"2a333f14",null,null);const tt=At.exports;const Vt={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{}},methods:{init(t){let e=D.echarts.init(this.$refs.container),o=this.getOption(t);e.clear(),e.dispose(),e=D.echarts.init(this.$refs.container),e.setOption(o),e.on("click",i=>{this.$emit("change",i)})},getOption(t){let e=0,o=t.data[0].dataName;o.forEach((s,l)=>{e+=Number(s.value),o[l].order=s.value}),o=[...z.sort(o)];let i={data:t.columns[0].data,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((s,l)=>{s!==""&&l===0?Object.assign(i,{top:s}):s!==""&&l===1?Object.assign(i,{right:s}):s!==""&&l===2?Object.assign(i,{bottom:s}):s!==""&&l===3&&Object.assign(i,{left:s})}),{tooltip:{trigger:"item",formatter:function(s){return s.data.name+":\r"+s.data.values}},color:this.color,legend:i,series:[{type:"funnel",left:"10%",top:50,bottom:50,width:"76%",min:0,max:100,minSize:"10%",maxSize:"90%",sort:"descending",gap:1,label:{show:this.options.labelShow,fontSize:this.options.textFontSize,formatter:function(s){return s.data.name+":\r"+s.data.values+`
|
|
6
|
-
`+s.data.percentage+"%"}},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{fontSize:15}},data:o.map((s,l)=>{const p=s.value;return Object.assign({...s},{values:z.roundNumber(p,this.options.numericalPrecision).toFixed(this.options.numericalPrecision),percentage:e===0?"0":(Number(p)/e*1e4).toFixed(0)/100,value:(1/o.length*(l+1)*100).toFixed(0)})})}]}}}};var Mt=function(){var e=this,o=e._self._c;return o("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},zt=[],Gt=V(Vt,Mt,zt,!1,null,"82e80ff7",null,null);const Kt=Gt.exports;const Rt={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{}},methods:{init(t){let e=D.echarts.init(this.$refs.container),o=this.getOption(t);e.clear(),e.dispose(),e=D.echarts.init(this.$refs.container),e.setOption(o),e.on("click",i=>{this.$emit("change",i)})},getOption(t){let e=[],o=[],i=[],n=[];const s=this.options.areaStyleStack?{boundaryGap:!1}:{};t.columns.forEach(c=>{e.push(Object.assign({type:"category",data:c.data,axisPointer:{type:"line"},axisTick:{alignWithLabel:!0},axisLabel:{interval:0,rotate:this.options.labelRotate,fontSize:this.options.labelFontSize,color:this.options.xAxisLabelColor}},s))}),this.options.labelShow,this.options.labelTextPosition,this.options.textFontSize,this.options.textFontColor,t.data.forEach((c,f)=>{let u={type:"value",axisLine:{show:!0,lineStyle:{color:this.options.labelLineColor}},axisLabel:{formatter:"{value}",color:this.options.labelFontColor}},g=this.$i18nt(c.item.transKey,c.item.name);c.item.transkeyDict&&(g+=` (${this.$i18nt(c.item.transkeyDict,c.item.transkeyName)})`),t.data.length!==1&&(n.push(g),Object.assign(u,{name:g,position:f===0?"left":"right",alignTicks:!0,show:f<2})),o.push(u);let r=this.options.overlayStack?{stack:"Total"}:{};this.options.areaStyleStack&&Object.assign(r,{areaStyle:{}}),i.push(Object.assign({emphasis:{focus:this.options.emphasisFocus},type:c.type,name:g,data:c.data.map(m=>z.roundNumber(m,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)),smooth:this.options.smooth,showSymbol:this.options.showSymbol,lineStyle:{width:this.options.lineStyleWidth},normal:{label:{show:this.options.labelShow,position:this.options.labelTextPosition,textStyle:{fontSize:this.options.textFontSize,color:this.options.textFontColor}}}},r))});let l={containLabel:!0};this.options.gridPosition.forEach((c,f)=>{c!==""&&f===0?Object.assign(l,{top:c}):c!==""&&f===1?Object.assign(l,{right:c}):c!==""&&f===2?Object.assign(l,{bottom:c}):c!==""&&f===3&&Object.assign(l,{left:c})});let p={data:n,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((c,f)=>{c!==""&&f===0?Object.assign(p,{top:c}):c!==""&&f===1?Object.assign(p,{right:c}):c!==""&&f===2?Object.assign(p,{bottom:c}):c!==""&&f===3&&Object.assign(p,{left:c})}),{color:this.color,tooltip:{trigger:"axis",axisPointer:{type:"cross"}},grid:l,legend:p,xAxis:e,yAxis:o,series:i}}}};var It=function(){var e=this,o=e._self._c;return o("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},Wt=[],qt=V(Rt,It,Wt,!1,null,"1e3a2a03",null,null);const Bt=qt.exports;const Ht={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{}},methods:{init(t){let e=D.echarts.init(this.$refs.container),o=this.getOption(t);e.clear(),e.dispose(),e=D.echarts.init(this.$refs.container),e.setOption(o),e.on("click",i=>{this.$emit("change",i)})},getOption(t){let e=[];t.data.forEach(n=>{e.push({type:"pie",radius:["30%","58%"],center:["50%","50%"],data:n.dataName.map(s=>Object.assign({...s},{value:z.roundNumber(s.value,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)})),label:{show:this.options.labelShow,position:this.options.labelTextPosition==="inside"?"inside":"outside",textStyle:{fontWeight:500,color:this.options.textFontColor,fontSize:this.options.textFontSize,lineHeight:20},formatter:`{b}:\r\r{c}\r
|
|
7
|
-
({d}%)`},itemStyle:{borderRadius:2}})});let o={type:"scroll",data:t.columns[0].data,textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((n,s)=>{n!==""&&s===0?Object.assign(o,{top:n}):n!==""&&s===1?Object.assign(o,{right:n}):n!==""&&s===2?Object.assign(o,{bottom:n}):n!==""&&s===3&&Object.assign(o,{left:n})}),{color:this.color,tooltip:{trigger:"item"},legend:o,series:e}}}};var Ut=function(){var e=this,o=e._self._c;return o("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},Qt=[],Xt=V(Ht,Ut,Qt,!1,null,"0898e464",null,null);const Jt=Xt.exports;const Zt={props:{color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},componentItem:{type:Object,default:()=>({})},ruleList:{type:Array,default:()=>[]},bjstyle:{type:String,default:""}},data(){return{record:{},width:"80%",confirmLoading:!1,visible:!1,fullscreen:!1}},methods:{open(t){this.visible=!0,this.record={...t},this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.record),this.spinning=!1},0)})},toggleFullscreen(){this.fullscreen=!this.fullscreen,this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.record)},0)})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},closed(){this.fullscreen=!1,this.visible=!1}}};var Yt=function(){var e=this,o=e._self._c;return o("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[o("gd-modal-title",{attrs:{slot:"title",title:"",fullscreen:e.fullscreen,buttons:[],confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent},slot:"title"}),o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form",style:e.bjstyle},[e.visible?o(e.componentItem,{ref:"componentItem",tag:"component",attrs:{color:e.color,options:e.options,ruleList:e.ruleList}}):e._e()],1)],1)},te=[],ee=V(Zt,Yt,te,!1,null,"9f0d9ef8",null,null);const oe=ee.exports;const ie={name:"GdChartBi",props:{develop:{type:[Number,String],default:1},showTitle:{type:Boolean,default:!0},color:{type:Array,default:()=>[]},left:{type:[Number,String],default:10},bjstyle:{type:String,default:""}},data(){return{record:{},optionData:{},spinning:!0,type:"none",empty:!1,offsetCaudex:0}},components:{AmplifyEchart:oe},computed:{echartsMode(){return this.getDictionary("table_echarts_mode")},ruleList(){return(this.record.config&&this.record.config.series?this.record.config.series:[]).filter(e=>e.ruleOpen)},options(){let t=this.record.options||{};return Object.assign({...t},{labelTextPosition:t.labelTextPosition?t.labelTextPosition:"top",legendPosition:t.legendPosition?t.legendPosition:["","","",""],gridPosition:t.gridPosition?t.gridPosition:["60","4%","3%","3%"],overlayStack:t.overlayStack!==void 0?t.overlayStack:!1,areaStyleStack:t.areaStyleStack!==void 0?t.areaStyleStack:!1,legendShow:t.legendShow!==void 0?t.legendShow:!0,labelFontColor:t.labelFontColor?t.labelFontColor:"#333",textFontColor:t.textFontColor?t.textFontColor:"#333",textFontSize:t.textFontSize?t.textFontSize:14,legendOrient:t.legendOrient?t.legendOrient:"horizontal",legendTextColor:t.legendTextColor?t.legendTextColor:"#333",xAxisLabelColor:t.xAxisLabelColor?t.xAxisLabelColor:"#333",labelLineColor:t.labelLineColor?t.labelLineColor:"#333",emphasisFocus:t.emphasisFocus?t.emphasisFocus:"series",lineStyleWidth:t.lineStyleWidth!==void 0?t.lineStyleWidth:1,numericalPrecision:t.numericalPrecision!==void 0?t.numericalPrecision:2,numericalSummary:t.numericalSummary!==void 0?t.numericalSummary:!1})},componentItem(){const e=[{type:"bar",data:tt},{type:"pie",data:Jt},{type:"funnel",data:Kt},{type:"line",data:Bt}].filter(o=>o.type===this.type)[0];return e?e.data:tt},getColor(){let t=[];return(this.color.length===0?this.echartsColor:this.color).forEach(o=>{t.push(o==="0"?this.primaryColor:o)}),t},...at(["echartsColor","primaryColor","language"])},methods:{amplify(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.amplifyEchart.open(this.optionData)},0)})},setType(){this.spinning=!1,this.type="none"},change(t){this.$emit("change",{params:t,option:this.optionData,record:this.record})},assembly(){const t=this.optionData.data.filter(e=>e.type==="bar")[0];this.type=t?t.type:this.optionData.data[0].type,this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.optionData),this.spinning=!1},0)})},handleUniaxial({config:t,data:e,categorydata:o}){const i=t.series?t.series:[],n=t.categories?t.categories:[],s=t.stackList?t.stackList:[];if(i.length===0||n.length===0)return;const l=s[0]?s[0].uuid:"",p=l!==""?l:n[0].uuid,a=i.filter(d=>d.type==="1")[0];a?a.type:i[0].type;const c=s.filter(d=>d.dictTypeCode)[0],f=n.filter(d=>d.dictTypeCode)[0],u=l!==""?c:f,g=u?this.getDictionary(u.dictTypeCode):[];let r=[],m=[];if(i.forEach((d,y)=>{let b=[],v=[],x=[];e.forEach(S=>{const j=S[p],C=S[d.uuid],_=this.getVal({item:l!==""?s[0]:n[0],ite:j,data:e,dict:g});b.push(C),v.push({value:C,name:_}),y===0&&x.push(_||this.$i18nt("gd.echarts.none","\u7A7A\u767D"))}),x.length>0&&r.push({data:x});let O={},k="";d.ruleOpen&&d.ruleFormatter.formatter&&d.ruleFormatter.formatter!=="none"&&(k=d.ruleFormatter.formatter==="percent"?"%":"\u2030",Object.assign(O,{formatter:k})),d.ruleOpen&&d.ruleFormatter.openPrefix&&d.ruleFormatter.transKeyPrefix&&Object.assign(O,{prefix:d.ruleFormatter.prefix,transKeyPrefix:d.ruleFormatter.transKeyPrefix});const T=this.getBei(O.formatter);d.ruleOpen&&d.ruleFormatter.min!==void 0&&d.ruleFormatter.min!==""&&Object.assign(O,{min:d.ruleFormatter.min*T}),d.ruleOpen&&d.ruleFormatter.max!==void 0&&d.ruleFormatter.max!==""&&Object.assign(O,{max:d.ruleFormatter.max*T});const h=this.echartsMode.filter(S=>S.code==d.mode)[0];m.push(Object.assign({data:b,dataName:v,type:this.getChartType(d.type),item:Object.assign({...d},{transKey:`Dynamics.${d.transKey}`,transkeyDict:h?h.transkey:null,transkeyName:h?h.name:""}),bei:T,tooltip:!0,columnName:d.columnName,mode:d.mode},O))}),l!==""){let d=[];o[n[0].uuid].forEach(y=>{const b=f?this.getDictionary(f.dictTypeCode):[],v=this.getVal({item:n[0],ite:y,data:e,dict:b});d.push(v||this.$i18nt("gd.echarts.none","\u7A7A\u767D"))}),r[0]=Object.assign({...r[0]},{rotate:s[0].labelRotate,fontSize:s[0].labelFontSize,color:s[0].xAxisLabelColor,offset:s[0].offset,position:s[0].position}),r.push({data:d,offset:s[0].offsetCaudex,position:"bottom"})}this.optionData={columns:r,data:m,series:m,type:1},this.assembly()},handleMultiaxis({config:t,data:e,categorydata:o}){const i=t.series?t.series:[],n=t.categories?t.categories:[],s=t.stackList?t.stackList:[];if(i.length===0||n.length===0)return;let l=[],p=[],a=[],c=[],f={item:{transKey:i[0].transKey,name:i[0].name}};const u=this.ruleList[0];let g="";u&&u.ruleOpen&&u.ruleFormatter.formatter&&u.ruleFormatter.formatter!=="none"&&(g=u.ruleFormatter.formatter==="percent"?"%":"\u2030",Object.assign(f,{formatter:g})),u&&u.ruleFormatter.openPrefix&&u.ruleFormatter.transKeyPrefix&&Object.assign(f,{prefix:u.ruleFormatter.prefix,transKeyPrefix:`Dynamics.${u.ruleFormatter.transKeyPrefix}`});let r={};const m=this.getBei(f.formatter);u&&u.ruleOpen&&u.ruleFormatter.min!==void 0&&u.ruleFormatter.min!==""&&Object.assign(r,{min:u.ruleFormatter.min*m}),u&&u.ruleOpen&&u.ruleFormatter.max!==void 0&&u.ruleFormatter.max!==""&&Object.assign(r,{max:u.ruleFormatter.max*m});const d=[Object.assign(f,r,{type:"bar"})];n.forEach((h,S)=>{const j=o[h.uuid]?o[h.uuid]:[],C=j.map(_=>{const F=h.dictTypeCode?this.getDictionary(h.dictTypeCode):[];return _?this.getVal({item:h,ite:_,data:e,dict:F}):this.$i18nt("gd.echarts.none","\u7A7A\u767D")});C.length>0&&a.push({data:j,mode:h.mode,effectType:h.effectType,dictTypeCode:h.dictTypeCode,uuid:h.uuid}),S===0&&l.push({data:C,offset:0,position:"bottom"})}),s.forEach((h,S)=>{const j=o[h.uuid]?o[h.uuid]:[];j.map(C=>{const _=h.dictTypeCode?this.getDictionary(h.dictTypeCode):[];return C?this.getVal({item:h,ite:C,data:e,dict:_}):this.$i18nt("gd.echarts.none","\u7A7A\u767D")}),c.push({data:j,mode:h.mode,effectType:h.effectType,dictTypeCode:h.dictTypeCode,uuid:h.uuid,offset:h.offset,offsetCaudex:h.offsetCaudex,labelRotate:h.labelRotate,labelFontSize:h.labelFontSize,xAxisLabelColor:h.xAxisLabelColor,position:h.position})});let y=[];const b=i[0].uuid,v=this.getChartType(i[0].type);if(e.forEach(h=>{const S=this.getDataName(h,n.concat(s),b);y.push(S)}),a[1]===void 0){this.spinning=!1,this.develop===2&&this.$message.error(this.$i18nt("gd.msg.temPlate.dataError","\u6570\u636E\u9519\u8BEF"));return}for(let h=0;h<a[1].data.length;h++){let S=[],j=[];for(let _=0;_<a[0].data.length;_++){const F=a[0].data[_]+""+a[1].data[h],G=y.filter(ft=>ft.name===F)[0];j.push(F),S.push(G?G.val:0)}let C=a[1].data[h]===null||a[1].data[h]===""?{transKey:"gd.echarts.none",name:"\u7A7A\u767D"}:{transKey:null,name:a[1].data[h]+""};if(a[1].dictTypeCode){const F=this.getDictionary(a[1].dictTypeCode).filter(G=>G.code==a[1].data[h])[0];Object.assign(C,F?{transKey:F.transkey,name:F.name}:{})}else if(a[1].effectType==="datepicker"){const _=this.getVal({item:a[1],ite:a[1].data[h],data:e,dict:[]});Object.assign(C,_?{transKey:null,name:_}:{})}else if(["fk","user","about"].includes(a[1].effectType)){const _=this.getVal({item:a[1],ite:a[1].data[h],data:e,dict:[]});Object.assign(C,_?{transKey:null,name:_}:{})}p.push({data:S,dataName:[],type:v,item:C,tooltip:!0,ruleOpen:!0,columnName:i[0].columnName,mode:i[0].mode,bei:m,formatter:g,combination:j,prefix:f.prefix!==void 0?f.prefix:"",transKeyPrefix:f.transKeyPrefix!==void 0?f.transKeyPrefix:null})}if(this.options.overlayStack&&c.length>0){const h=this.multiaxisStack(p,y,c,e);p=h.columnsData,l[0].offset=h.offset,l.push(h.xAxis),l.reverse()}const x=p.filter(h=>h.item.transKey!=="gd.echarts.none"),O=p.filter(h=>h.item.transKey==="gd.echarts.none"),k=x.concat(O),T=this.options.overlayLineChart&&v==="bar"?k.map(h=>Object.assign({...h},{type:v==="bar"?"line":"bar",tooltip:!1,ruleOpen:!1,columnName:"",formatter:""})):[];this.optionData={columns:l,data:d,series:k.concat(T),type:2},this.assembly()},multiaxisStack(t,e,o,i){const n=o[0].data,s=o[0].dictTypeCode,l=s?this.getDictionary(s):[],p=o[0];let a=[],c=[];n.forEach(r=>{const m=this.getVal({item:o[0],ite:r,data:i,dict:l});a.push({name:m,id:r}),c.push(m)});let f=[];for(let r=0;r<t[0].data.length;r++)f=f.concat(c);let u=[];const g=z.uuid(8);for(let r=0;r<t.length;r++){let m=[],d=[];for(let y=0;y<t[r].combination.length;y++)for(let b=0;b<n.length;b++){d.push(t[r].combination[y]+n[b]);const v=t[r].combination[y]+n[b],x=e.filter(O=>O.name===v)[0];m.push(x?x.val:0)}u.push(Object.assign({...t[r]},{stack:g,data:m}))}return{columnsData:u,stackName:a,offset:p.offsetCaudex,xAxis:{data:f,rotate:p.labelRotate,fontSize:p.labelFontSize,color:p.xAxisLabelColor,offset:p.offset,position:p.position}}},init(t){if(this.record=t,t.data.length===0)return this.empty=!0,this.spinning=!1,!1;this.empty=!1,(t.config&&t.config.categories?t.config.categories:[]).length<=1?this.handleUniaxial(t):this.handleMultiaxis(t)},getBei(t){return t===void 0?1:t==="%"?100:1e3},getVal({item:t,ite:e,data:o,dict:i}){let n=e;const s=i.filter(l=>l.code==e)[0];if(t.dictTypeCode&&s)n=this.$i18nt(`Dynamics.${s.transkey}`,s.name);else if(t.effectType==="datepicker")n=this.getFormatTime(t.mode,e);else if(["fk","user","about"].includes(t.effectType)){const l=o.filter(p=>p[t.uuid]==e)[0];n=l&&l[`${t.uuid}_name`]?l[`${t.uuid}_name`]:n}return n},getDataName(t,e,o){let i="";return e.forEach(n=>{i+=String(t[n.uuid])}),{val:t[o],name:i}},getChartType(t){switch(t){case"1":return"bar";case"2":return"pie";case"3":return"funnel";case"4":return"line";default:return"bar"}},getDictionary(t){return this.$options.filters.dictData(t)},getFormatTime(t,e){if(["1","3","5"].includes(t)){const o=t==="5"?"yyyy":t==="3"?"yyyy-MM":"yyyy-MM-dd";return this.$options.filters.formatTime(e,o)}else if(t==="2"){const o=e.split("-"),i={year:o[0],week:o[1]},n=this.$i18nt("gd.echarts.yearWeek"),s=this.$i18nt("gd.echarts.weekMode");return this.language==="zh_CN"?`${i.year}${n}${i.week}${s}`:`${s} ${i.week} ${n} ${i.year}`}else if(t==="4"){const o=e.split("-"),i={year:o[0],quarter:o[1]},n=this.$i18nt("gd.echarts.yearQuarter"),s=this.$i18nt("gd.echarts.quarterMode");return this.language==="zh_CN"?`${i.year}${n}${i.quarter}${s}`:`${s}${i.quarter} ${n} ${i.year}`}}}};var ne=function(){var e=this,o=e._self._c;return o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.spinning,expression:"spinning"}],staticClass:"gd-echart"},[e.type==="none"||e.empty?o("div",{staticClass:"empty"},[o("i",{staticClass:"el-icon-receiving"}),o("div",{staticClass:"empty-err"},[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])]):o(e.componentItem,{ref:"componentItem",tag:"component",attrs:{develop:e.develop,color:e.getColor,options:e.options,ruleList:e.ruleList},on:{change:e.change}}),o("AmplifyEchart",{ref:"amplifyEchart",attrs:{color:e.getColor,options:e.options,ruleList:e.ruleList,componentItem:e.componentItem,bjstyle:e.bjstyle}})],1)},re=[],se=V(ie,ne,re,!1,null,"2a8668d6",null,null);const R=se.exports;R.install=function(t){t.component(R.name,R)};exports.GDpackage=R;exports.mapActions=Nt;exports.mapGetters=at;exports.normalizeComponent=V;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";const m=require("./components.chartbi.e4680eaa.js"),g=require("./http.main.2f8a6936.js"),h=require("./utils.echarts.js.461a74e7.js"),y=require("./utils.util.js.50d1ec9c.js");const $={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},showTitle:{type:Boolean,default:!0},left:{type:[Number,String],default:10}},data(){return{}},computed:{},methods:{init(e){let t=h.echarts.init(this.$refs.container),a=this.getOption(e);t.clear(),t.dispose(),t=h.echarts.init(this.$refs.container),t.setOption(a),t.on("click",n=>{this.$emit("change",n)})},getOption(e){let t=[];e.data.forEach(l=>{t.push(l.value)});let a=this.$i18nt(`Dynamics.${e.transKey}`,e.name),n={text:a?`${a} (${this.$i18nt("gd.basics.total","\u5171")} ${e.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")})`:`${this.$i18nt("gd.table.total","\u5171")} ${e.count} ${this.$i18nt("gd.table.data","\u6761\u6570\u636E")}`,left:this.left,textStyle:{fontSize:16}},o={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:e.columns.filter((l,i)=>i<30),axisTick:{alignWithLabel:!0},axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value"}],series:[{type:"bar",barWidth:"60%",data:t.filter((l,i)=>i<30),itemStyle:{normal:{label:{show:!0,position:"top",textStyle:{color:"#333",fontSize:14}},color:l=>this.color[l.dataIndex]}}}]};return this.showTitle?Object.assign(o,{title:n}):o}}};var _=function(){var t=this,a=t._self._c;return a("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},v=[],b=m.normalizeComponent($,_,v,!1,null,"ca109126",null,null);const x=b.exports;const C={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},showTitle:{type:Boolean,default:!0},left:{type:[Number,String],default:10}},data(){return{}},computed:{},methods:{init(e){let t=h.echarts.init(this.$refs.container),a=this.getOption(e);t.clear(),t.dispose(),t=h.echarts.init(this.$refs.container),t.setOption(a),t.on("click",n=>{this.$emit("change",n)})},getOption(e){let t=0;e.data.forEach((l,i)=>{t+=Number(l.value),e.data[i].order=l.value}),e.data=[...y.sort(e.data)];let a=this.$i18nt(`Dynamics.${e.transKey}`,e.name),n={text:a?`${a} (${this.$i18nt("gd.basics.total","\u5171")} ${e.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")})`:`${this.$i18nt("gd.basics.total","\u5171")} ${e.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")}`,left:this.left,textStyle:{fontSize:16}},o={tooltip:{trigger:"item",formatter:function(l){return l.data.name+":\r"+l.data.values}},color:this.color,legend:{type:"scroll",bottom:0,data:e.columns},series:[{type:"funnel",left:"10%",top:50,bottom:50,width:"76%",min:0,max:100,minSize:"10%",maxSize:"90%",sort:"descending",gap:1,label:{show:!0,formatter:function(l){return l.data.name+":\r"+l.data.values+`
|
|
2
|
-
`+l.data.percentage+"%"}},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{fontSize:15}},data:e.data.map((l,i)=>{const s=l.value;return l.values=s,l.percentage=t===0?"0":(Number(s)/t*1e4).toFixed(0)/100,l.value=(1/e.data.length*(i+1)*100).toFixed(0),l})}]};return this.showTitle?Object.assign(o,{title:n}):o}}};var S=function(){var t=this,a=t._self._c;return a("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},D=[],N=m.normalizeComponent(C,S,D,!1,null,"b06311be",null,null);const w=N.exports;const E={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},showTitle:{type:Boolean,default:!0},left:{type:[Number,String],default:10}},data(){return{}},computed:{},methods:{init(e){let t=h.echarts.init(this.$refs.container),a=this.getOption(e);t.clear(),t.dispose(),t=h.echarts.init(this.$refs.container),t.setOption(a),t.on("click",n=>{this.$emit("change",n)})},getOption(e){let t=this.$i18nt(`Dynamics.${e.transKey}`,e.name),a={text:t?`${t} (${this.$i18nt("gd.basics.total","\u5171")} ${e.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")})`:`${this.$i18nt("gd.basics.total","\u5171")} ${e.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")}`,left:this.left,textStyle:{fontSize:16}},n={tooltip:{trigger:"axis"},color:this.color,legend:{},xAxis:{type:"category",data:e.columns,axisLabel:{interval:0,rotate:30}},yAxis:{type:"value"},series:[{data:e.data,type:"line"}]};return this.showTitle?Object.assign(n,{title:a}):n}}};var T=function(){var t=this,a=t._self._c;return a("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},I=[],z=m.normalizeComponent(E,T,I,!1,null,"f8a9de5c",null,null);const k=z.exports;const A={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},showTitle:{type:Boolean,default:!0},left:{type:[Number,String],default:10}},data(){return{}},computed:{},methods:{init(e){let t=h.echarts.init(this.$refs.container),a=this.getOption(e);t.clear(),t.dispose(),t=h.echarts.init(this.$refs.container),t.setOption(a),t.on("click",n=>{this.$emit("change",n)})},getOption(e){let t=this.$i18nt(`Dynamics.${e.transKey}`,e.name),a={text:t?`${t} (${this.$i18nt("gd.basics.total","\u5171")} ${e.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")})`:`${this.$i18nt("gd.basics.total","\u5171")} ${e.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")}`,left:this.left,textStyle:{fontSize:16}},n={tooltip:{trigger:"item"},color:this.color,legend:{type:"scroll",bottom:0,data:e.columns},series:[{type:"pie",radius:["30%","58%"],center:this.develop==4?["50%","45%"]:["50%","50%"],data:e.data,label:{show:!0,position:"outside",textStyle:{fontWeight:500,color:"#333",fontSize:14,lineHeight:20},formatter:`{b}:\r{c}\r
|
|
3
|
-
({d}%)`},itemStyle:{borderRadius:2}}]};return this.showTitle?Object.assign(n,{title:a}):n}}};var O=function(){var t=this,a=t._self._c;return a("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},F=[],K=m.normalizeComponent(A,O,F,!1,null,"16dc885e",null,null);const L=K.exports;const j={props:{loadData:{type:Array,default:()=>[]},color:{type:Array,default:()=>[]},left:{type:[Number,String],default:"center"}},data(){return{record:{},width:"80%",confirmLoading:!1,visible:!1,fullscreen:!1}},methods:{open(e){this.visible=!0,this.record={...e},this.$nextTick(()=>{setTimeout(()=>{this.$refs.VEcharts.open(e)},0)})},toggleFullscreen(){this.fullscreen=!this.fullscreen,this.$nextTick(()=>{setTimeout(()=>{this.$refs.VEcharts.open(this.record)},0)})},doEvent(e){let t=e.item.functionName;this[t]&&this[t]()},closed(){this.fullscreen=!1,this.visible=!1}}};var R=function(){var t=this,a=t._self._c;return a("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(n){t.visible=n},closed:t.closed}},[a("gd-modal-title",{attrs:{slot:"title",title:"",fullscreen:t.fullscreen,buttons:[],confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent},slot:"title"}),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form"},[a("gd-echarts",{ref:"VEcharts",attrs:{loadData:t.loadData,color:t.color,left:t.left}})],1)],1)},G=[],U=m.normalizeComponent(j,R,G,!1,null,"bb8cc0bf",null,null);const B=U.exports;const q={name:"GdEcharts",props:{loadData:{type:Array,default:()=>[]},develop:{type:[Number,String],default:1},showTitle:{type:Boolean,default:!0},color:{type:Array,default:()=>[]},left:{type:[Number,String],default:10}},components:{ColumnarChart:x,FunnelChart:w,LineChart:k,PieChart:L,AmplifyEchart:B},data(){return{type:"0",detail:{},dataSource:[],spinning:!1}},computed:{getColor(){let e=[];return(this.color.length===0?this.echartsColor:this.color).forEach(a=>{e.push(a==="0"?this.primaryColor:a)}),e},...m.mapGetters(["echartsColor","primaryColor"])},methods:{amplify(){this.$refs.amplifyEchart.open(this.detail)},change(e){this.$emit("change",e)},setType(){this.type="0"},open(e){this.spinning=!0,this.detail={...e},this.type=e.type,this.dataSource=[...e.data],this.assembly()},init(e){this.spinning=!0,this.detail={...e},this.type=e.type,g.basePage({pageNo:1,pageSize:100,tableId:e.tableId,viewId:e.viewId}).then(t=>{t.success?(this.dataSource=t.data.rows.filter(a=>a.id!==null),this.assembly()):this.spinning=!1})},assembly(){let e={};this.detail.mode==1?e=this.getTotals():this.detail.mode==2?e=this.getGentles():this.detail.mode==3?e=this.getAverage():this.detail.mode==4?e=this.getMaximum():this.detail.mode==5&&(e=this.getMinimum());let t={name:this.$i18nt(`Dynamics.${this.detail.transKey}`,this.detail.name),count:this.dataSource.length,columns:e.columns,data:e.data},a="columnarChart";this.detail.type==2?a="pieChart":this.detail.type==3?a="funnelChart":this.detail.type==4&&(a="lineChart"),this.$nextTick(()=>{setTimeout(()=>{this.$refs[a].init(t),this.spinning=!1},0)})},getTotals(){let e=[],t=[],a=[];(this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser()).forEach(l=>{let i=0;this.dataSource.forEach(s=>{s[this.detail.list[0].dataIndex]==l.code&&(i+=1)}),e.push({value:i,name:this.$i18nt(`Dynamics.${l.transkey}`,l.name)}),t.push(this.$i18nt(`Dynamics.${l.transkey}`,l.name)),a.push(String(l.code))});let o=this.dataSource.filter(l=>!a.includes(String(l[this.detail.list[0].dataIndex])));if(o.length>0){let l=0;o.forEach(i=>{l+=1}),e=[{value:l,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(e),t=[`${this.$i18nt("gd.echarts.none"),"\u7A7A\u767D"}`].concat(t)}return{data:e,columns:t}},getGentles(){let e=[],t=[],a=2;if(this.detail.columnName&&this.detail.list.length===1){let n=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),o=[],l=this.loadData.filter(s=>s.columnname==this.detail.columnName)[0];a=l===void 0?a:l.filedsize!==null?l.filedsize:a,n.forEach(s=>{let r=0;this.dataSource.forEach(c=>{if(c[this.detail.list[0].dataIndex]==s.code){let d=c[this.detail.columnName]!==null?c[this.detail.columnName]:0;r+=l.dicttypecode?this.getDictionaryData(l.dicttypecode,c[this.detail.columnName]):d}}),e.push({value:r.toString().length>a?Number(r.toFixed(a)):r,name:this.$i18nt(`Dynamics.${s.transkey}`,s.name)}),t.push(this.$i18nt(`Dynamics.${s.transkey}`,s.name)),o.push(String(s.code))});let i=this.dataSource.filter(s=>!o.includes(String(s[this.detail.list[0].dataIndex])));if(i.length>0){let s=0;i.forEach(r=>{let c=r[this.detail.columnName]!==null?r[this.detail.columnName]:0;s+=l.dicttypecode?this.getDictionaryData(l.dicttypecode,r[this.detail.columnName]):c}),e=[{value:s,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(e),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(n=>{let o=0,l=this.loadData.filter(i=>i.columnname==n.dataIndex)[0];a=l===void 0?a:l.filedsize!==null?l.filedsize:a,this.dataSource.forEach(i=>{o+=i[n.dataIndex]!==null&&i[n.dataIndex]!==void 0?i[n.dataIndex]:0}),e.push({value:o.toString().length>a?Number(o.toFixed(a)):o,name:this.$i18nt(`Dynamics.${n.transKey}`,n.columnComment)}),t.push(this.$i18nt(`Dynamics.${n.transKey}`,n.columnComment))});return{data:e,columns:t}},getAverage(){let e=[],t=[],a=2;if(this.detail.columnName&&this.detail.list.length==1){let n=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),o=[],l=this.loadData.filter(s=>s.columnname==this.detail.columnName)[0];n.forEach(s=>{let r=0,c=0,d=this.loadData.filter(u=>u.columnname==this.detail.columnName)[0];a=d==null?a:d.filedsize!==null?d.filedsize:a,this.dataSource.forEach(u=>{if(u[this.detail.list[0].dataIndex]==s.code){let p=u[this.detail.columnName]!==null&&u[this.detail.columnName]!==void 0?u[this.detail.columnName]:0;r+=d.dicttypecode?this.getDictionaryData(d.dicttypecode,u[this.detail.columnName]):p,c+=1}}),e.push({value:r.toString().length>a?Number(r.toFixed(a)):r,name:this.$i18nt(`Dynamics.${s.transKey}`,s.name),leg:c}),t.push(this.$i18nt(`Dynamics.${s.transKey}`,s.name)),o.push(String(s.code))});let i=this.dataSource.filter(s=>!o.includes(String(s[this.detail.list[0].dataIndex])));if(i.length>0){let s=0;i.forEach(r=>{let c=r[this.detail.columnName]!==null&&r[this.detail.columnName]!==void 0?r[this.detail.columnName]:0;s+=l.dicttypecode?this.getDictionaryData(l.dicttypecode,r[this.detail.columnName]):c}),e=[{value:s,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`,leg:i.length}].concat(e),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(n=>{let o=0,l=0,i=this.loadData.filter(s=>s.columnname==n.dataIndex)[0];a=i==null?a:i.filedsize!==null?i.filedsize:a,this.dataSource.forEach(s=>{o+=s[n.dataIndex]!==null&&s[n.dataIndex]!==void 0?s[n.dataIndex]:0,l+=1}),e.push({value:o.toString().length>a?Number(o.toFixed(a)):o,name:this.$i18nt(`Dynamics.${n.transKey}`,n.columnComment),leg:l}),t.push(this.$i18nt(`Dynamics.${n.transKey}`,n.columnComment))});return{data:e,columns:t}},getMaximum(){let e=[],t=[];if(this.detail.columnName&&this.detail.list.length==1){let a=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),n=[],o=this.loadData.filter(i=>i.columnname==this.detail.columnName)[0];a.forEach(i=>{let s=0;this.dataSource.forEach(r=>{if(r[this.detail.list[0].dataIndex]==i.code){let c=r[this.detail.columnName]!==null&&r[this.detail.columnName]!==void 0?r[this.detail.columnName]:0;c=o.dicttypecode?this.getDictionaryData(o.dicttypecode,r[this.detail.columnName]):c,s=c>s?c:s}}),e.push({value:s,name:this.$i18nt(`Dynamics.${i.transkey}`,i.name)}),t.push(this.$i18nt(`Dynamics.${i.transkey}`,i.name)),n.push(String(i.code))});let l=this.dataSource.filter(i=>!n.includes(String(i[this.detail.list[0].dataIndex])));if(l.length>0){let i=0;l.forEach(s=>{let r=s[this.detail.columnName]!==null?s[this.detail.columnName]:0;i=o.dicttypecode?this.getDictionaryData(o.dicttypecode,s[this.detail.columnName]):r,i=r>i?r:i}),e=[{value:i,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(e),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(a=>{let n=0;this.dataSource.forEach(o=>{let l=o[a.dataIndex]!=null?o[a.dataIndex]:0;n=l>n?l:n}),e.push({value:n,name:this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment)}),t.push(this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment))});return{data:e,columns:t}},getMinimum(){let e=[],t=[];if(this.detail.columnName&&this.detail.list.length==1){let a=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),n=[],o=this.loadData.filter(i=>i.columnname==this.detail.columnName)[0];a.forEach(i=>{let s=null;this.dataSource.forEach((r,c)=>{if(r[this.detail.list[0].dataIndex]==i.code){let d=r[this.detail.columnName]!==null?r[this.detail.columnName]:0;d=o.dicttypecode?this.getDictionaryData(o.dicttypecode,r[this.detail.columnName]):d,s=s===null||d<s?d:s}}),e.push({value:s,name:this.$i18nt(`Dynamics.${i.transkey}`,i.name)}),t.push(this.$i18nt(`Dynamics.${i.transkey}`,i.name)),n.push(String(i.code))});let l=this.dataSource.filter(i=>!n.includes(String(i[this.detail.list[0].dataIndex])));if(l.length>0){let i=null;l.forEach((s,r)=>{let c=s[this.detail.columnName]!==null&&s[this.detail.columnName]!==void 0?s[this.detail.columnName]:0;i=o.dicttypecode?this.getDictionaryData(o.dicttypecode,s[this.detail.columnName]):c,i=i===null||c<i?c:i}),e=[{value:i,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(e),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(a=>{let n=null;this.dataSource.forEach((o,l)=>{let i=o[a.dataIndex]!==null&&o[a.dataIndex]!==void 0?o[a.dataIndex]:0;n=n===null||i<n?i:n}),e.push({value:n,name:this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment)}),t.push(this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment))});return{data:e,columns:t}},getUser(){let e=this.duplicate(this.dataSource,this.detail.list[0].dataIndex),t=[];return e.forEach(a=>{let n=a[this.detail.list[0].dataIndex];t.push({name:n||`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`,code:a[this.detail.list[0].dataIndex]})}),t},duplicate(e,t){if(e.length==0)return e;if(t){var a={},n=e.reduce((o,l)=>(a[l[t]]||(a[l[t]]=o.push(l)),o),[]);return n}else return Array.from(new Set(e))},getDictionary(e){return this.$options.filters.dictData(e)},getDictionaryData(e,t){let a=this.getDictionary(e).filter(n=>n.code==t)[0];return a===void 0?0:Number(a.name)}}};var M=function(){var t=this,a=t._self._c;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}],staticClass:"gd-echart"},[t.type==="0"?a("div",{staticClass:"empty"},[a("i",{staticClass:"el-icon-receiving"}),a("div",{staticClass:"empty-err"},[t._v(t._s(t.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])]):t._e(),t.type==1?a("ColumnarChart",{ref:"columnarChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),t.type==2?a("PieChart",{ref:"pieChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),t.type==3?a("FunnelChart",{ref:"funnelChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),t.type==4?a("LineChart",{ref:"lineChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),a("AmplifyEchart",{ref:"amplifyEchart",attrs:{loadData:t.loadData,color:t.getColor}})],1)},P=[],W=m.normalizeComponent(q,M,P,!1,null,"11a80d1f",null,null);const f=W.exports;f.install=function(e){e.component(f.name,f)};exports.GDpackage=f;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./components.chartbi.e4680eaa.js"),a=[{key:"linear",title:"\u7EBF\u6027",transKey:"gd.icon.linear",icons:["gd-icon-dingwei1","gd-icon-xiangqing_shujuxiangqing","gd-icon-icon-xy","gd-icon-binghangjiedian","gd-icon-binghangjiediantubiao","gd-icon-anquanyunying","gd-icon-qiansemoshi","gd-icon-xiazaibiaodan","gd-icon-xitongguanli1","gd-icon-fahuoguanli","gd-icon-zichanjiaoyi","gd-icon-yijianzhengyoujian","gd-icon-shiyongpeizhi","gd-icon-attachment","gd-icon-gird","gd-icon-italic","gd-icon-associate","gd-icon-fullscreen-exit","gd-icon-underline","gd-icon-a-goforward","gd-icon-a-goback","gd-icon-unlink","gd-icon-hide","gd-icon-link","gd-icon-filter","gd-icon-xiaji1","gd-icon-zuzhiguanli","gd-icon-denglushezhi","gd-icon-mimashezhi","gd-icon-liuchengguanli","gd-icon-wodeliucheng","gd-icon-CPU","gd-icon-neicun","gd-icon-cipan","gd-icon-zhaotoubiaoguanli","gd-icon-dangjiandangqun","gd-icon-niandukaohe","gd-icon-renwutongji","gd-icon-fawenbanli","gd-icon-shouwenbanli","gd-icon-huiyishiguanli","gd-icon-huizhongjiankong","gd-icon-huiyimoban","gd-icon-huiyileixing","gd-icon-huiyixinxi","gd-icon-huiyishiyuyue","gd-icon-xinwendongtai","gd-icon-xiangmugongzuotai","gd-icon-shaixuan2","gd-icon-erjidaohang","gd-icon-jinhangzhong","gd-icon-gengduo1","gd-icon-tishixinxi","gd-icon-quanxianguanli1","gd-icon-fabucepingjihua","gd-icon-tuichu","gd-icon-rili1","gd-icon-gongzuotai1","gd-icon-tianjiagongyingshang","gd-icon-biangengjihua","gd-icon-shuju","gd-icon-wenjianjia1","gd-icon-zanting","gd-icon-yidong","gd-icon-bingtu1","gd-icon-bili","gd-icon-bianji3","gd-icon-a-bianji2","gd-icon-bofang","gd-icon-diannao","gd-icon-dayin","gd-icon-tiaozheng","gd-icon-fuzhi","gd-icon-a-guanbi2","gd-icon-dianhua2","gd-icon-guan","gd-icon-a-dingwei2","gd-icon-dingwei","gd-icon-a-huabanbeifen35","gd-icon-guajie","gd-icon-huihua","gd-icon-guanbi","gd-icon-kejian","gd-icon-kai","gd-icon-a-huihua3","gd-icon-kefu","gd-icon-qingchu","gd-icon-jingyin","gd-icon-paizhao","gd-icon-mingpian","gd-icon-shanchu5","gd-icon-rili","gd-icon-a-shanchu2","gd-icon-a-shezhi2","gd-icon-shangchuan2","gd-icon-shezhi2","gd-icon-shengyin","gd-icon-shijian","gd-icon-shouji1","gd-icon-a-shezhi3","gd-icon-shipin1","gd-icon-shoucang3","gd-icon-a-sousuo3","gd-icon-tuxiang","gd-icon-a-wenjian2","gd-icon-wenti","gd-icon-validation","gd-icon-date","gd-icon-exchange","gd-icon-total","gd-icon-good","gd-icon-movie","gd-icon-video","gd-icon-idea","gd-icon-aotumate","gd-icon-video1","gd-icon-click","gd-icon-icon-test1","gd-icon-icon-test2","gd-icon-icon-test3","gd-icon-icon-test4","gd-icon-icon-test5","gd-icon-icon-test6","gd-icon-icon-test7","gd-icon-icon-test8","gd-icon-icon-test9","gd-icon-icon-test10","gd-icon-icon-test11","gd-icon-icon-test12","gd-icon-icon-test13","gd-icon-icon-test14","gd-icon-icon-test15","gd-icon-icon-test16","gd-icon-icon-test17","gd-icon-icon-test18","gd-icon-icon-test19","gd-icon-icon-test20","gd-icon-icon-test21","gd-icon-icon-test22","gd-icon-icon-test23","gd-icon-icon-test24","gd-icon-icon-test25","gd-icon-icon-test26","gd-icon-icon-test27","gd-icon-icon-test28","gd-icon-icon-test29","gd-icon-icon-test30","gd-icon-icon-test31","gd-icon-icon-test32","gd-icon-icon-test33","gd-icon-icon-test34","gd-icon-icon-test35","gd-icon-icon-test36","gd-icon-icon-test37","gd-icon-icon-test38","gd-icon-yujing","gd-icon-zhihuishenghuo","gd-icon-zhihuixiaoyuan","gd-icon-zhihui","gd-icon-zhihuiyuanqu","gd-icon-zhoubian","gd-icon-chanpin2","gd-icon-gaoxingneng","gd-icon-dingzhi","gd-icon-fuwu","gd-icon-zhuzuoquan","gd-icon-jingwu","gd-icon-jiankong","gd-icon-nengxiaoguankong","gd-icon-qiye","gd-icon-lianxiren","gd-icon-pinzhi","gd-icon-shouji","gd-icon-rengong","gd-icon-dashuju","gd-icon-search","gd-icon-gouwuche-","gd-icon-dianhua1","gd-icon-houchu","gd-icon-loumian","gd-icon-zhouzhuan","gd-icon-qitachanpin","gd-icon-chongzhi","gd-icon-huiyuan","gd-icon-jifen","gd-icon-tianjia","gd-icon-tianjia1","gd-icon-jianshao-","gd-icon-jianshao-1","gd-icon-cuowu","gd-icon-cuowu-","gd-icon-zhengque","gd-icon-zhengque-","gd-icon-xihuan","gd-icon-shoucang2","gd-icon-liebiao","gd-icon-jiantoushang","gd-icon-jiantouxia","gd-icon-jiantouyou","gd-icon-jiantouzuo","gd-icon-faxiandiscover","gd-icon-zhidingtop","gd-icon-zhidingtop1","gd-icon-biaoqiantag","gd-icon-pinzhibaozhengQuality","gd-icon-zhuanlirenzhengPatent","gd-icon-koubeipublicpraise","gd-icon-pinpaiwenhuaBrandculture","gd-icon-zaixiankefucustomerservice","gd-icon-daifukuan","gd-icon-daishouhuo","gd-icon-quanbudingdan","gd-icon-yijianfankui","gd-icon-shouhoutuikuan","gd-icon-webpeizhi","gd-icon-bizhongguanli","gd-icon-fabijiaoyi","gd-icon-guanggaojiaoyi","gd-icon-guanggaoxiaoxi","gd-icon-jiedianpeizhi","gd-icon-lunbotuguanli","gd-icon-rizhiguanli","gd-icon-tubiaozhizuosvg-03","gd-icon-tubiaozhizuosvg-01","gd-icon-tubiaozhizuosvg-15","gd-icon-tubiaozhizuosvg-04","gd-icon-tubiaozhizuosvg-05","gd-icon-tubiaozhizuosvg-06","gd-icon-tubiaozhizuosvg-07","gd-icon-tubiaozhizuosvg-11","gd-icon-tubiaozhizuosvg-21","gd-icon-tubiaozhizuosvg-17","gd-icon-tubiaozhizuosvg-13","gd-icon-tubiaozhizuosvg-22","gd-icon-tubiaozhizuosvg-29","gd-icon-tubiaozhizuosvg-12","gd-icon-tubiaozhizuosvg-10","gd-icon-tubiaozhizuosvg-31","gd-icon-tubiaozhizuosvg-34","gd-icon-tubiaozhizuosvg-33","gd-icon-tubiaozhizuosvg-18","gd-icon-tubiaozhizuosvg-41","gd-icon-tubiaozhizuosvg-32","gd-icon-dianhua","gd-icon-bumenxinxigongkai","gd-icon-chengshijianshe","gd-icon-chengshimingpian","gd-icon-gongkaiyijianxiang","gd-icon-fadingzhudonggongkaineirong","gd-icon-gonggongjiaotong","gd-icon-minyizhengji","gd-icon-jingjifazhan","gd-icon-lvsefazhan","gd-icon-meishixiaochi","gd-icon-shichangxinxiang","gd-icon-hudongjiaoliu","gd-icon-zaixianfangtan","gd-icon-zhengfuxinxigongkaizhinan","gd-icon-zhaoshangxiangmu","gd-icon-weibopingtai","gd-icon-zaixiankefu","gd-icon-yishenqinggongkai","gd-icon-zhishiku","gd-icon-touzihuanjing","gd-icon-zhusu","gd-icon-zhengfujigou","gd-icon-zhengwuweixin","gd-icon-woyaoping","gd-icon-woyaoban","gd-icon-woyaocha","gd-icon-CMS","gd-icon-chengchangdaoshi","gd-icon-fazhanlinian","gd-icon-HPC","gd-icon-guangxingjihua","gd-icon-hezuohuoban","gd-icon-hezuolinian","gd-icon-fuwupinpai","gd-icon-jituannianhui","gd-icon-hexinjiazhiguan","gd-icon-niandushuzhi","gd-icon-jiankongyunwei","gd-icon-qiyewenhua","gd-icon-qingyingjihua","gd-icon-quweiyundonghui","gd-icon-rencaifazhan","gd-icon-shehuizhaopin","gd-icon-shequ","gd-icon-rongqi1","gd-icon-rencaipeiyang","gd-icon-zhiyuanzhehuodong","gd-icon-zhanlvefangxiang","gd-icon-yuanjingyushiming","gd-icon-tuanjianri","gd-icon-wenjianguanli","gd-icon-yixiaoweijihuo","gd-icon-yonghuguanli","gd-icon-jiamengshenhe","gd-icon-jiamenghuoban","gd-icon-jiamengyaoqing","gd-icon-chongzhika","gd-icon-xianjinhongbao","gd-icon-renwuhuizong","gd-icon-zijinshenhe","gd-icon-zijinshenhe1","gd-icon-gongzuotai","gd-icon-renwuhuizong1","gd-icon-shebeiguanli","gd-icon-shouquan","gd-icon-yonghuqianbao","gd-icon-fukuan","gd-icon-zhudonghehu","gd-icon-icon-test","gd-icon-shizhong","gd-icon-cuo1","gd-icon-shuaxin1","gd-icon-zhuanfa1","gd-icon-tuihui","gd-icon-withdraw","gd-icon-jiaqian1","gd-icon-rollback","gd-icon-a-32shuangduigou","gd-icon-houjiaqian","gd-icon-zuojiaqian","gd-icon-chehui","gd-icon-a-loudou_huaban1","gd-icon-audit","gd-icon-Interaction","gd-icon-shitumoshi","gd-icon-shitumoshi1","gd-icon-biaodanmoshi","gd-icon-question-line","gd-icon-webduanmobancaozuo_qiyong","gd-icon-webduanmobancaozuo_gengduo","gd-icon-webduanmobancaozuo_tingyong","gd-icon-shouqitubiao","gd-icon-star-line","gd-icon-copy","gd-icon-jisuan","gd-icon-biaoqian1","gd-icon-gongwenbao","gd-icon-tubiao","gd-icon-cangku","gd-icon-weixiu","gd-icon-dituzuobiao","gd-icon-chanpin","gd-icon-saoyisao","gd-icon-tixing","gd-icon-bianji2","gd-icon-tuichudenglu2","gd-icon-guanyuwomen","gd-icon-shuaxin","gd-icon-fenxiang1","gd-icon-shezhi1","gd-icon-xiaoxi2","gd-icon-gouxuan","gd-icon-shangchuan1","gd-icon-shoucang1","gd-icon-xiangce","gd-icon-xiazai","gd-icon-shuju1","gd-icon-daikuanshenpi","gd-icon-gonggongmobanku","gd-icon-caozuojilu","gd-icon-wodemoban","gd-icon-yonghuhuaxiang","gd-icon-xiaoxiyangshi","gd-icon-jiekoufenxi","gd-icon-tongji1","gd-icon-mobanxiaoxi","gd-icon-xiaoxiyangshi1","gd-icon-mti-diannao","gd-icon-mti-dianhuabao","gd-icon-mti-tonghuazhong","gd-icon-mti-weiqun","gd-icon-mti-weixin2","gd-icon-a-mti-xiaoximti-duanyu","gd-icon-mti-xiaoxi3","gd-icon-shipin","gd-icon-tupian2","gd-icon-shoubiao","gd-icon-pinglun","gd-icon-peixunxuexi","gd-icon-mima","gd-icon-yanzhengma","gd-icon-chanpin1","gd-icon-shoucang","gd-icon-sousuo","gd-icon-weizhi","gd-icon-riqi1","gd-icon-gengduo","gd-icon-shezhi","gd-icon-shenpi","gd-icon-bianji1","gd-icon-tongji","gd-icon-tongjifenxi","gd-icon-xitongtongzhi","gd-icon-shanchu3","gd-icon-shaixuan","gd-icon-biaoqian","gd-icon-ditu","gd-icon-jinrong","gd-icon-xianshi","gd-icon-yincang","gd-icon-tupian1","gd-icon-fenxiang","gd-icon-fujian","gd-icon-bianji","gd-icon-bianjisekuai","gd-icon-star","gd-icon-bullet-list--points-bullet-unordered-list-lists-bu","gd-icon-shaixuan1","gd-icon-guanlian","gd-icon-a-dingshuding1","gd-icon-xiaji","gd-icon-icon_shangxiaji","gd-icon-huobiduihuan","gd-icon-guanyu","gd-icon-canyu","gd-icon-waijian","gd-icon-fudianshu","gd-icon-huobi","gd-icon-shangchuan","gd-icon-ziyuansu","gd-icon-shousuo","gd-icon-shousuo1","gd-icon-ZeekrVisualDialog","gd-icon-danhangshurukuang","gd-icon-duohangshuru","gd-icon-baobiaotongji","gd-icon-tabs","gd-icon-tuwendaohang4","gd-icon-qiapian","gd-icon-mulu","gd-icon-fuwenbenkuang","gd-icon-24gl-bubbles6","gd-icon-jurassic_audit-something","gd-icon-renqunfenlei","gd-icon-danchuang","gd-icon-duohangwenben","gd-icon-iframe","gd-icon-chouti","gd-icon-erweima","gd-icon-lianjie","gd-icon-liebiaomoshi","gd-icon-shuzi","gd-icon-html","gd-icon-wenjian","gd-icon-zhediemianban","gd-icon-anniu","gd-icon-riqi","gd-icon-miaoshu","gd-icon-tupian","gd-icon-xiangqing-","gd-icon-miaoshu1","gd-icon-dagang_biaoqianzu","gd-icon-wenbentishi","gd-icon-jueyuandianzu","gd-icon-wenbentishi1","gd-icon-fengexian","gd-icon-zhage","gd-icon-xiala","gd-icon-a-shuanglie1","gd-icon-zititubiao","gd-icon-gonggao","gd-icon-rongqi11","gd-icon-banquan","gd-icon-biaodanzujian-biaoge","gd-icon-yulanmoban","gd-icon-fuzhimoban","gd-icon-kaifazujian","gd-icon-moban","gd-icon-dagangshu","gd-icon-mubanbianpai","gd-icon-id","gd-icon-a-guangqi_guolv11x","gd-icon-jinyong1","gd-icon-bingtu","gd-icon-zhuzhuangtu","gd-icon-loudoutu","gd-icon-zhexiantu","gd-icon-bushu","gd-icon-wrench","gd-icon-fabu","gd-icon-fabu1","gd-icon-daoru","gd-icon-daoru1","gd-icon-qinglihuancun","gd-icon-quanpingsuoxiao","gd-icon-fangda","gd-icon-shujuku","gd-icon-odbc","gd-icon-jigouguanli","gd-icon-shujuzidian","gd-icon-zidianguanli","gd-icon-zhiweixinxi","gd-icon-tuichudenglu1","gd-icon-shanchu1","gd-icon-jia1","gd-icon-jia2","gd-icon-jian","gd-icon-jian1","gd-icon-shanchu","gd-icon-shouye","gd-icon-quanxianguanli","gd-icon-user","gd-icon-xitongshezhi","gd-icon-xiaoxi","gd-icon-liucheng","gd-icon-xitongrizhi","gd-icon-xitongrizhi2","gd-icon-yewuquanxian","gd-icon-application","gd-icon-yemian1","gd-icon-jichuguanli1","gd-icon-jichushezhi","gd-icon-zuzhi","gd-icon-map-site","gd-icon-jichushuju1","gd-icon-xitong","gd-icon-xitongrizhi3","gd-icon-jichushuju2","gd-icon-xitongrizhi4","gd-icon-xitongrizhi5","gd-icon-xiaoximoban","gd-icon-group-line","gd-icon-jichushuju3","gd-icon-xitongrizhi7","gd-icon-guoji","gd-icon-yanjing-kai","gd-icon-yanjing-guan","gd-icon-xiazai40","gd-icon-qiyeweixin","gd-icon-jurassic_process","gd-icon-wenbenneirong","gd-icon-equalizer-line","gd-icon-a-icon_zhage2","gd-icon-wendangguanli","gd-icon-shujia","gd-icon-shujia2","gd-icon-liqilingyongjilu","gd-icon-xiangmu1","gd-icon-xitongzhuangpei","gd-icon-shuxian","gd-icon-gengduo-shu","gd-icon-xuexi-","gd-icon-baocun","gd-icon-qiyong","gd-icon-baocun1","gd-icon-tingyong1","gd-icon-baocunbingguanbi","gd-icon-qiyong1","gd-icon-tingyong2","gd-icon-qiyong2","gd-icon-baocunbingguanbi1","gd-icon-shuaxin2","gd-icon-refresh","gd-icon-youjiantou_huaban","gd-icon-zuojiantou_huaban","gd-icon-huidaodingbu2"]},{key:"facial",title:"\u9762\u6027",transKey:"gd.icon.facial",icons:["gd-icon-shijiantoushang","gd-icon-shijiantouxia","gd-icon-shijiantouyou","gd-icon-shijiantouzuo","gd-icon-xihuanlike","gd-icon-shoucang-collect","gd-icon-zhengque-1","gd-icon-cuowu-1","gd-icon-jianshao-2","gd-icon-tianjia2","gd-icon-faxiandiscover1","gd-icon-fenxiangshare","gd-icon-zhidingtop2","gd-icon-biaoqiantag1","gd-icon-zaixiankefucustomerservice1","gd-icon-youhui","gd-icon-liwu","gd-icon-yue","gd-icon-chongzhizengsong","gd-icon-quanbuyue","gd-icon-wodeqianbao","gd-icon-zhanghuanquan","gd-icon-nongyerongdan","gd-icon-guangfuban","gd-icon-zhongmiaogongyingshang","gd-icon-nongyaogongyingshang","gd-icon-cangchu","gd-icon-nongjifuwugongyingshang","gd-icon-feiliaogongyingshang","gd-icon-dianziqianzhang","gd-icon-jianguanjigou1","gd-icon-kuangye","gd-icon-yinhang","gd-icon-jingxiaoshang1","gd-icon-zhiwenshibie","gd-icon-chayuanjidi","gd-icon-wuliu","gd-icon-EPC","gd-icon-jiaoyisuo","gd-icon-jiancejigou","gd-icon-dianzihetong","gd-icon-taige","gd-icon-Excelguanli","gd-icon-tishijinggao","gd-icon-yiwenshiyi","gd-icon-yanzhengma1","gd-icon-zhiling_binghang","gd-icon-shanchu4","gd-icon-a-mti-duanxinshi","gd-icon-a-mti-tonghuazhongshi","gd-icon-a-mti-weiqunshi","gd-icon-a-mti-weixin2shi","gd-icon-xiujiashenqing","gd-icon-jiabanshenqing","gd-icon-chuchashenqing","gd-icon-kaoqinshensu","gd-icon-waichushenqing","gd-icon-tiaodongshenqing","gd-icon-zhengzhangshenqing","gd-icon-lizhishenqing","gd-icon-canjiapeixun","gd-icon-gongzuohuibao","gd-icon-zhuanzhengshenqing","gd-icon-jixiaoziping","gd-icon-xinxibiangeng","gd-icon-faqihuiyi","gd-icon-qitatongyong","gd-icon-caigoushenqing","gd-icon-baoxiaoshenqing","gd-icon-jiekuanshenqing","gd-icon-ruzhishenpi","gd-icon-zidingyi","gd-icon-hetongqianding","gd-icon-zhaopinxuqiu","gd-icon-gongzuojiaojietubiao","gd-icon-waichukaoqin","gd-icon-chufadan","gd-icon-tiaodongshenpi","gd-icon-tiaogangtiaoxin","gd-icon-jianglidan","gd-icon-Xtubiao-chakan","gd-icon-Xtubiao-guanbichakan","gd-icon-custom-receipt","gd-icon-custom-change","gd-icon-custom-other","gd-icon-custom-authority","gd-icon-custom-clock","gd-icon-custom-data","gd-icon-custom-entrust","gd-icon-custom-department","gd-icon-custom-approve","gd-icon-star1","gd-icon-quanxuan","gd-icon-chaosong","gd-icon-xiayibu","gd-icon-shangyibu","gd-icon-zhuanshen","gd-icon-dunpaibaozhang","gd-icon-dasuozi","gd-icon-zuji1","gd-icon-shengji","gd-icon-renyuan","gd-icon-renyuan1","gd-icon-rongqi","gd-icon-12quanxianguanli","gd-icon-yingyong","gd-icon-xueshengquanxian","gd-icon-jichushuju","gd-icon-yemian","gd-icon-xitongrizhi1","gd-icon-quanxian","gd-icon-jichuguanli","gd-icon-bg-application","gd-icon-xiaoxi1","gd-icon-xitongguanli","gd-icon-zuzhi1","gd-icon-yonghu","gd-icon-map-site-full","gd-icon-ziliucheng","gd-icon-xiaoximobanpeizhi","gd-icon-group-fill","gd-icon-page","gd-icon-xitongrizhi6","gd-icon-yemianbuju-06","gd-icon-xiaoximobanguanli","gd-icon-shouye1","gd-icon-jia","gd-icon-jian2","gd-icon-shanchu2","gd-icon-76xinzeng","gd-icon-bianji5","gd-icon-bianji4","gd-icon-yulan","gd-icon-tuichudenglu","gd-icon-wenjianxiazai","gd-icon-wenjiandaoru","gd-icon-shujuku1","gd-icon-xuanzhong","gd-icon-jinyong","gd-icon-weixin","gd-icon-xing","gd-icon-dingbudaohang","gd-icon-shouyelunbotu","gd-icon-zhanghaomimadenglu","gd-icon-ai-code","gd-icon-anniu_kaiqi","gd-icon-touxiang","gd-icon-tongjitubiao","gd-icon-quanjushijiao","gd-icon-ziti","gd-icon-shangxiapailiehuabu","gd-icon-danxuan_xuanzhong","gd-icon-NEW","gd-icon-new2","gd-icon-a-dingshuding-fill1","gd-icon-flex-wrap","gd-icon-star-full","gd-icon-wenjianjia","gd-icon-a-mti-diannaoshi","gd-icon-wenjianjia-shouqi","gd-icon-yinpin","gd-icon-GIF1","gd-icon-office-pptx","gd-icon-txt-full","gd-icon-XML","gd-icon-wendangguanli1","gd-icon-xlsx_2x","gd-icon-file-pdf","gd-icon-mp3","gd-icon-mp4","gd-icon-Html","gd-icon-img","gd-icon-DOCX","gd-icon-jiaoyupeixun","gd-icon-liqi","gd-icon-wendangzhongxin","gd-icon-xueshimao","gd-icon-xuexi","gd-icon-xueshimao-shi","gd-icon-duizhan-01"]},{key:"elIcon",title:"UI",transKey:"",icons:["el-icon-delete-solid","el-icon-delete","el-icon-s-tools","el-icon-setting","el-icon-user-solid","el-icon-user","el-icon-phone","el-icon-phone-outline","el-icon-more","el-icon-more-outline","el-icon-star-on","el-icon-star-off","el-icon-s-goods","el-icon-goods","el-icon-warning","el-icon-warning-outline","el-icon-question","el-icon-info","el-icon-remove","el-icon-circle-plus","el-icon-success","el-icon-error","el-icon-zoom-in","el-icon-zoom-out","el-icon-remove-outline","el-icon-circle-plus-outline","el-icon-circle-check","el-icon-circle-close","el-icon-s-help","el-icon-help","el-icon-minus","el-icon-plus","el-icon-check","el-icon-close","el-icon-picture","el-icon-picture-outline","el-icon-picture-outline-round","el-icon-upload","el-icon-upload2","el-icon-download","el-icon-camera-solid","el-icon-camera","el-icon-video-camera-solid","el-icon-video-camera","el-icon-message-solid","el-icon-bell","el-icon-s-cooperation","el-icon-s-order","el-icon-s-platform","el-icon-s-fold","el-icon-s-unfold","el-icon-s-operation","el-icon-s-promotion","el-icon-s-home","el-icon-s-release","el-icon-s-ticket","el-icon-s-management","el-icon-s-open","el-icon-s-shop","el-icon-s-marketing","el-icon-s-flag","el-icon-s-comment","el-icon-s-finance","el-icon-s-claim","el-icon-s-custom","el-icon-s-opportunity","el-icon-s-data","el-icon-s-check","el-icon-s-grid","el-icon-menu","el-icon-share","el-icon-d-caret","el-icon-caret-left","el-icon-caret-right","el-icon-caret-bottom","el-icon-caret-top","el-icon-bottom-left","el-icon-bottom-right","el-icon-back","el-icon-right","el-icon-bottom","el-icon-top","el-icon-top-left","el-icon-top-right","el-icon-arrow-left","el-icon-arrow-right","el-icon-arrow-down","el-icon-arrow-up","el-icon-video-play","el-icon-refresh","el-icon-refresh-right","el-icon-d-arrow-left","el-icon-d-arrow-right","el-icon-video-pause","el-icon-refresh-left","el-icon-finished","el-icon-sort","el-icon-sort-up","el-icon-sort-down","el-icon-rank","el-icon-loading","el-icon-view","el-icon-c-scale-to-original","el-icon-date","el-icon-edit","el-icon-edit-outline","el-icon-folder","el-icon-folder-opened","el-icon-folder-add","el-icon-folder-remove","el-icon-folder-delete","el-icon-folder-checked","el-icon-tickets","el-icon-document-remove","el-icon-document-delete","el-icon-document-copy","el-icon-document-checked","el-icon-document","el-icon-document-add","el-icon-printer","el-icon-paperclip","el-icon-takeaway-box","el-icon-search","el-icon-monitor","el-icon-attract","el-icon-mobile","el-icon-scissors","el-icon-umbrella","el-icon-headset","el-icon-brush","el-icon-mouse","el-icon-coordinate","el-icon-magic-stick","el-icon-reading","el-icon-data-line","el-icon-data-board","el-icon-pie-chart","el-icon-data-analysis","el-icon-collection-tag","el-icon-film","el-icon-suitcase","el-icon-suitcase-1","el-icon-receiving","el-icon-collection","el-icon-files","el-icon-notebook-1","el-icon-notebook-2","el-icon-toilet-paper","el-icon-office-building","el-icon-school","el-icon-table-lamp","el-icon-house","el-icon-no-smoking","el-icon-smoking","el-icon-shopping-cart-full","el-icon-shopping-cart-1","el-icon-shopping-cart-2","el-icon-shopping-bag-1","el-icon-shopping-bag-2","el-icon-sold-out","el-icon-sell","el-icon-present","el-icon-box","el-icon-bank-card","el-icon-money","el-icon-coin","el-icon-wallet","el-icon-discount","el-icon-price-tag","el-icon-news","el-icon-guide","el-icon-male","el-icon-female","el-icon-thumb","el-icon-cpu","el-icon-link","el-icon-connection","el-icon-open","el-icon-turn-off","el-icon-set-up","el-icon-chat-round","el-icon-chat-line-round","el-icon-chat-square","el-icon-chat-dot-round","el-icon-chat-dot-square","el-icon-chat-line-square","el-icon-message","el-icon-postcard","el-icon-position","el-icon-turn-off-microphone","el-icon-microphone","el-icon-close-notification","el-icon-bangzhu","el-icon-time","el-icon-odometer","el-icon-crop","el-icon-aim","el-icon-switch-button","el-icon-full-screen","el-icon-copy-document","el-icon-mic","el-icon-stopwatch","el-icon-medal-1","el-icon-medal","el-icon-trophy","el-icon-trophy-1","el-icon-first-aid-kit","el-icon-discover","el-icon-place","el-icon-location","el-icon-location-outline","el-icon-location-information","el-icon-add-location","el-icon-delete-location","el-icon-map-location","el-icon-alarm-clock","el-icon-timer","el-icon-watch-1","el-icon-watch","el-icon-lock","el-icon-unlock","el-icon-key","el-icon-service","el-icon-mobile-phone","el-icon-bicycle","el-icon-truck","el-icon-ship","el-icon-basketball","el-icon-football","el-icon-soccer","el-icon-baseball","el-icon-wind-power","el-icon-light-rain","el-icon-lightning","el-icon-heavy-rain","el-icon-sunrise","el-icon-sunrise-1","el-icon-sunset","el-icon-sunny","el-icon-cloudy","el-icon-partly-cloudy","el-icon-cloudy-and-sunny","el-icon-moon","el-icon-moon-night","el-icon-dish","el-icon-dish-1","el-icon-food","el-icon-chicken","el-icon-fork-spoon","el-icon-knife-fork","el-icon-burger","el-icon-tableware","el-icon-sugar","el-icon-dessert","el-icon-ice-cream","el-icon-hot-water","el-icon-water-cup","el-icon-coffee-cup","el-icon-cold-drink","el-icon-goblet","el-icon-goblet-full","el-icon-goblet-square","el-icon-goblet-square-full","el-icon-refrigerator","el-icon-grape","el-icon-watermelon","el-icon-cherry","el-icon-apple","el-icon-pear","el-icon-orange","el-icon-coffee","el-icon-ice-tea","el-icon-ice-drink","el-icon-milk-tea","el-icon-potato-strips","el-icon-lollipop","el-icon-ice-cream-square","el-icon-ice-cream-round"]},{key:"menu",title:"\u83DC\u5355",transKey:"gd.solution.menu",icons:["gd-icon-shouye4","gd-icon-shouye3","gd-icon-xiaoxi5","gd-icon-xiaoxi4","gd-icon-contacts","gd-icon-tongxunlu","gd-icon-kehu","gd-icon-kehu1","gd-icon-renwu-ren","gd-icon-wode-wode","gd-icon-shezhixitongshezhigongnengshezhishuxing-xian","gd-icon-shezhixitongshezhigongnengshezhishuxing","gd-icon-gouwuchekong","gd-icon-gouwucheman","gd-icon-Shapecopy","gd-icon-renwu","gd-icon-shuju3","gd-icon-shuju2","gd-icon-shuju4","gd-icon-shuju21","gd-icon-icon_home_platform","gd-icon-gongzuotai2","gd-icon-caidan","gd-icon-caidan-tianchong","gd-icon-chanpinguanli","gd-icon-wodechanpin"]}];const u={name:"GdIconSelector",props:{width:{type:String,default:"80%"},value:{type:String,default:""},mode:{type:String,default:"dialog"}},data(){return{selectedIcon:"",confirmLoading:!1,visible:!1,fullscreen:!1,activeName:"linear",iconsList:a}},computed:{list(){const c=this.iconsList.filter(i=>i.key===this.activeName)[0];return c&&c.icons},...e.mapGetters(["primaryColor"])},methods:{open(c){this.selectedIcon=this.value||"",this.visible=!0},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},selItem(c){this.selectedIcon=c,this.$emit("input",c),this.$emit("change",c),this.closed()},doEvent(c){let i=c.item.functionName;this[i]&&this[i]()}}};var l=function(){var i=this,o=i._self._c;return i.mode==="dialog"?o("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:i.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:i.fullscreen,visible:i.visible,width:i.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(n){i.visible=n},closed:i.closed}},[o("template",{slot:"title"},[o("div",{staticClass:"gd-dialog-head"},[o("div",{staticClass:"dialog-head-title",staticStyle:{flex:"1","margin-right":"40px"}},[o("el-tabs",{staticStyle:{height:"24px"},model:{value:i.activeName,callback:function(n){i.activeName=n},expression:"activeName"}},i._l(i.iconsList,function(n){return o("el-tab-pane",{key:n.key,attrs:{label:i.$i18nt(n.transKey,n.title),name:n.key}})}),1)],1),o("div",{staticClass:"dialog-head-operate"},[o("gd-modal-title",{attrs:{title:"",fullscreen:i.fullscreen,buttons:[],showClose:!0},on:{changeEvent:i.doEvent}})],1)])]),o("div",{staticClass:"icon-list"},i._l(i.list,function(n){return o("div",{key:n,staticClass:"item",class:i.value===n?"item-active":"",on:{click:function(d){return i.selItem(n)}}},[o("div",{staticClass:"gd-icons",class:n})])}),0)],2):o("div",{staticClass:"icon-popover"},[o("el-tabs",{model:{value:i.activeName,callback:function(n){i.activeName=n},expression:"activeName"}},i._l(i.iconsList,function(n){return o("el-tab-pane",{key:n.key,attrs:{label:i.$i18nt(n.transKey,n.title),name:n.key}})}),1),o("div",{staticStyle:{"min-height":"300px"}},[o("div",{staticClass:"icon-list"},i._l(i.list,function(n){return o("div",{key:n,staticClass:"item",class:i.value===n?"item-active":"",on:{click:function(d){return i.selItem(n)}}},[o("div",{staticClass:"gd-icons",class:n})])}),0)])],1)},t=[],s=e.normalizeComponent(u,l,t,!1,null,"ec277d44",null,null);const g=s.exports;g.install=function(c){c.component(g.name,g)};exports.GDpackage=g;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("./http.syscodegenerateconfigmanage.840f1136.js"),d=require("./http.main.2f8a6936.js"),m=require("./form.build.51bd261e.js"),c=require("./components.chartbi.e4680eaa.js");const h={name:"GdMiddleware",data(){return{isRelevance:!1,tableData:{},tableId:"",detail:{},fieldData:[],visible:!1}},computed:{componentItem(){const t=this.$importViewFiles();let e=`../views/main/${this.tableData.tablename}/editForm.vue`,i=t[e];return i?i.default:m.FormDesigner}},methods:{invokeFun({ref:t="editForm",functionName:e,data:i,time:o=50}){return new Promise((a,s)=>{this.$nextTick(()=>{setTimeout(()=>{const r=this.$refs[t];if(!r){a({code:404,message:"\u672A\u627E\u5230\u5BF9\u5E94\u5143\u7D20"});return}e&&r[e]?(r[e](i),a({code:200})):a({code:404,message:"\u672A\u627E\u5230\u65B9\u6CD5"})},o)})})},initAdd(t){let e=this;return this.tableId=t.tableId,this.isRelevance=t.isRelevance?t.isRelevance:!1,new Promise((i,o)=>{Promise.all([e.baseTableData(),e.getLoadData()]).then(a=>{e.visible=!0;let s={title:t.title?t.title:this.$i18nt("gd.https.quickActions","\u5FEB\u6377\u64CD\u4F5C")};e.$nextTick(()=>{setTimeout(()=>{e.openForm(s)},0),setTimeout(()=>{i({res:a,invokeFun:this.invokeFun})},20)})})})},init(t){this.tableId=t.tableId||t.tableid,this.detail=t.data[0],this.isRelevance=t.isRelevance?t.isRelevance:!1;let e=this;return new Promise((i,o)=>{t.data.length==0?(e.$nextTick(()=>{setTimeout(()=>{e.$message.error(e.$i18nt("gd.https.noData","\u672A\u67E5\u8BE2\u5230\u5BF9\u5E94\u6570\u636E"))},0)}),i()):Promise.all([e.baseTableData(),e.getLoadData()]).then(a=>{if(this.formList.length>0){e.visible=!0;let s={title:this.$i18nt("gd.https.quickActions","\u5FEB\u6377\u64CD\u4F5C"),id:e.detail.id};e.$nextTick(()=>{setTimeout(()=>{e.openForm(s)},0)})}else e.$nextTick(()=>{setTimeout(()=>{e.$message.error(e.$i18nt("gd.https.noDataForm","\u672A\u67E5\u8BE2\u5230\u5BF9\u5E94\u8868\u5355\u6570\u636E"))},10)});i()})})},openForm(t){if(this.$refs.editForm){const e=this.formList.filter(i=>i.type===1)[0];this.$refs.editForm.setFormRecord(e).then(i=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm.open(t)},10)})})}else setTimeout(()=>{this.openForm(t)},200)},baseTableData(){return d.baseTableData({tableId:this.tableId}).then(t=>{if(t.success){if(t.data.formlist.length==0)return t.data;this.formList=t.data.formlist,this.tableData=t.data.table}return t})},getLoadData(){return l.onlineFormGetCodeGenerateList({codeGenId:this.tableId}).then(t=>(this.fieldData=t.data,t.data))},relationOk(t){this.$emit("ok",t)},handleSubmit(t){this.$emit("ok")},closed(){this.$emit("closed"),this.visible=!1}}};var u=function(){var e=this,i=e._self._c;return i("div",[e.visible?i(e.componentItem,{ref:"editForm",tag:"component",attrs:{fieldData:e.fieldData,isRelevance:e.isRelevance,tableData:e.tableData},on:{ok:e.handleSubmit,closed:e.closed,relationOk:e.relationOk}}):e._e()],1)},f=[],b=c.normalizeComponent(h,u,f,!1,null,"020bd72f",null,null);const n=b.exports;n.install=function(t){t.component(n.name,n)};exports.GDpackage=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r=require("./components.chartbi.e4680eaa.js"),p=require("./http.loginmanage.326984c3.js"),k=require("./components.settingdrawer.779f6715.js"),w=require("./components.xlsximport.dbd826bb.js"),D=require("./utils.util.js.50d1ec9c.js"),E=require("./http.main.2f8a6936.js"),g=require("./http.noticemanage.2507d094.js"),$=require("./http.noticereceivedmanage.e8ec9c9d.js"),x=require("./utils.mixins.js.750ca50e.js");require("./components.form.91d5ed3e.js");const I=require("./http.filemanage.7e6e3e1a.js");const T={props:{basicAttribute:{type:Object,default:()=>({})}},data(){return{}},computed:{options(){return this.basicAttribute.logo||{}},tstyle(){return`font-size:${this.options.titleFont!==void 0?this.options.titleFont:15}px`},ystyle(){return`font-size:${this.options.subtitleFont!==void 0?this.options.subtitleFont:11}px`},...r.mapGetters(["userInfo","addRouters","userFavoriteMenu","theme","sidebar"])},methods:{}};var R=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"user-logo",class:e.theme==="light"?"":"user-logo-dark"},[e.options.mode==="imageWithText"?t("div",{staticClass:"logo"},[t("div",{staticClass:"picture"},[e.options.smallPicture?t("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:e.options.smallPicture,expression:"options.smallPicture"}],staticClass:"img",attrs:{"data-url":e.options.smallPicture,"data-load":"Y"}}):e._e()]),e.sidebar?e._e():t("div",{staticClass:"company"},[t("div",{staticClass:"title line1",style:e.tstyle},[e._v(e._s(e.options.title))]),t("div",{staticClass:"ytitle line1",style:e.ystyle},[e._v(e._s(e.options.subtitle))])])]):t("div",{staticClass:"logo"},[e.sidebar?t("div",{staticClass:"picture"},[e.options.smallPicture?t("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:e.options.smallPicture,expression:"options.smallPicture"}],staticClass:"img",attrs:{"data-url":e.options.smallPicture,"data-load":"Y"}}):e._e()]):t("div",{staticClass:"bpicture"},[e.options.bigPicture?t("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:e.options.bigPicture,expression:"options.bigPicture"}],staticClass:"img",attrs:{"data-url":e.options.bigPicture,"data-load":"Y"}}):e._e()])])])])},S=[],B=r.normalizeComponent(T,R,S,!1,null,"15f8e6cd",null,null);const F=B.exports;var m=null;const N={props:{menus:{type:Array,required:!0},collapsed:{type:Boolean,required:!1,default:!1},activeKey:{type:String,default:""}},data(){return{record:{},visible:!1,modeMenus:"singleton",name:"",appMenus:[],omodeMenus:"singleton"}},computed:{getUserFavoriteMenu(){let s=[];return this.userFavoriteMenu.forEach(e=>{s.push(e.menuid)}),s},favoriteMenus(){let s=[];return this.appMenus.map(e=>{e.children.map(t=>{t.type==1&&s.push(Object.assign(t,{menus:e})),t.children&&t.children.map(i=>{s.push(Object.assign(i,{menus:e}))})})}),s.filter(e=>this.getUserFavoriteMenu.includes(e.id))},modeList(){let s=[];return this.menus.forEach(e=>{(this.modeMenus==="singleton"&&e.code===this.record.code||this.modeMenus==="multiple")&&s.push(e.code)}),s},getMode(){let s="gd-icon-bullet-list--points-bullet-unordered-list-lists-bu";return this.modeMenus==="multiple"?s="gd-icon-application":this.modeMenus==="collect"&&(s="gd-icon-star"),s},lstyle(){let s=this.menusWidth.split("&"),e=372;if(s[0]==="secondary")e=472;else if(s[0]==="big")e=672;else if(s[0]==="custom")return`flex:0 0 ${s[1]}px`;return`flex:0 0 ${e}px`},styleds(){return{padding:this.collapsed?`0 0 0 ${this.sidebarConfig.foldWidth}px`:`0 0 0 ${this.sidebarConfig.horizontalWidth}px`}},mstyle(){return{"--bjsmenuvar":"#282c31","--bjseachvar":"#111314"}},cstyle(){return`color:${this.primaryColor}`},fadeColord(){return this.fadeColor(this.primaryColor,.1)},...r.mapGetters(["userInfo","primaryColor","menusSearchMode","userFavoriteMenu","menusWidth","theme","sidebarConfig"])},methods:{seachName(s){let e=[...this.appMenus];e.forEach((t,i)=>{t.children.forEach((o,l)=>{let v=[];o.children&&(o.children.forEach((h,b)=>{let M=this.$i18nt(`Dynamics.${h.transkey}`,h.meta.title);e[i].children[l].children[b].show=M.toLowerCase().includes(s.toLowerCase())}),v=o.children.filter(h=>h.show));let C=this.$i18nt(`Dynamics.${o.transkey}`,o.meta.title);e[i].children[l].show=v.length>0?!0:C.toLowerCase().includes(s.toLowerCase())});let a=this.$i18nt(`Dynamics.${t.transkey}`,t.name),n=t.children.filter(o=>o.show)[0];e[i].show=n!==void 0?!0:a.toLowerCase().includes(s.toLowerCase())}),this.appMenus=[...e],s===""&&this.modeMenus==="multiple"&&this.scrollToAnchor(this.record)},query(){this.seachName(this.name.trim())},changeName(s){this.seachName(s.trim())},refreshCollect(){m&&clearTimeout(m),m=setTimeout(()=>{this.getSysBookmarkPage()},2e3)},countCollect(s,e,t){let i=this.userFavoriteMenu.filter(a=>a.menuId!=s.id);e===1&&i.push(t),this.UserFavoriteMenu(i),this.refreshCollect()},collectMenu(s,e){if(m&&clearTimeout(m),e===1){this.sysBookmarkAdd(s).then(t=>{t.success&&this.countCollect(s,e,t.data)});return}this.sysBookmarkDelete(s).then(t=>{t.success&&this.countCollect(s,e)})},sysBookmarkAdd(s){let e={userId:this.userInfo.id,menuId:s.id,order:0,name:s.meta.title};return p.sysBookmarkAdd(e).then(t=>t)},sysBookmarkDelete(s){let t={id:this.userFavoriteMenu.filter(i=>i.menuid==s.id)[0].id};return p.sysBookmarkDelete(t).then(i=>i)},getSysBookmarkPage(){let s={userId:this.userInfo.id,pageNo:1,pageSize:200};p.sysBookmarkPage(s).then(e=>{e.code===200&&this.UserFavoriteMenu(e.data.rows)})},selMode(s){s!==this.modeMenus&&(this.omodeMenus=this.modeMenus==="collect"?this.omodeMenus:this.modeMenus,this.modeMenus=s,this.MenusSearchMode(s),s==="multiple"&&this.scrollToAnchor(this.record),this.$refs.popover_seach.doClose())},mouseenter(){this.$emit("mouseenter")},mouseleave(){this.$emit("mouseleave")},open(s){this.record=s,this.visible=!0,this.scrollToAnchor(s)},close(){this.visible=!1,this.$emit("close")},setAppMenus(s){this.appMenus=s},goPath(s,e,t){(s.type===void 0?e:s.type)===1&&(this.$emit("goPath",{data:t,item:s}),this.name!==""&&(this.name="",this.query()),this.modeMenus==="collect"&&(this.modeMenus=this.omodeMenus),this.close(),this.$nextTick(()=>{setTimeout(()=>{if((s.opentype!==void 0?s.opentype:1)===2){const n=s.meta.link;n&&window.open(n);return}this.$router.push({name:s.name})},0)}))},scrollToAnchor(s){this.$nextTick(()=>{let e=document.getElementById(`gd-menus-item-${s.code}`);e&&e.scrollIntoView({behavior:"auto"})})},fadeColor(s,e){let t=parseInt(s.substring(1,3),16),i=parseInt(s.substring(3,5),16),a=parseInt(s.substring(5,7),16);return`rgba(${t},${i},${a},${e})`},...r.mapActions(["MenusSearchMode","UserFavoriteMenu"])},created(){this.modeMenus=this.menusSearchMode}};var z=function(){var e=this,t=e._self._c;return t("div",{style:e.mstyle},[e.visible?t("div",{staticClass:"gd-menus",class:e.theme==="light"?"":"gd-menus-dark",style:e.styleds},[t("div",{staticClass:"gd-menus-list",style:e.lstyle,on:{mouseenter:e.mouseenter,mouseleave:e.mouseleave}},[t("div",{staticClass:"gd-seach"},[t("el-input",{staticClass:"inpu",attrs:{placeholder:e.$i18nt("gd.menu.searchModeName","\u8BF7\u8F93\u5165\u5185\u5BB9"),clearable:""},on:{input:e.changeName},model:{value:e.name,callback:function(i){e.name=i},expression:"name"}},[t("el-popover",{ref:"popover_seach",staticClass:"el-input__icon",attrs:{slot:"prefix",placement:"top-start",trigger:"hover"},slot:"prefix"},[t("div",{staticClass:"popover-hand",style:{"--dilute":e.fadeColord},on:{mouseenter:e.mouseenter}},[t("div",{staticClass:"popover-hand-name",class:e.modeMenus==="singleton"?"inpu-item-activ":"",on:{click:function(i){return i.stopPropagation(),e.selMode("singleton")}}},[t("i",{staticClass:"gd-icons gd-icon-bullet-list--points-bullet-unordered-list-lists-bu"}),e._v(" "+e._s(e.$i18nt("gd.menu.singletonMode","\u5355\u4F8B\u6A21\u5F0F"))+" ")]),t("div",{staticClass:"popover-hand-name",class:e.modeMenus==="multiple"?"inpu-item-activ":"",on:{click:function(i){return i.stopPropagation(),e.selMode("multiple")}}},[t("i",{staticClass:"gd-icons gd-icon-application"}),e._v(" "+e._s(e.$i18nt("gd.menu.multipleMode","\u591A\u4F8B\u6A21\u5F0F"))+" ")]),t("div",{staticClass:"popover-hand-name",class:e.modeMenus==="collect"?"inpu-item-activ":"",on:{click:function(i){return i.stopPropagation(),e.selMode("collect")}}},[t("i",{staticClass:"gd-icons gd-icon-star"}),e._v(" "+e._s(e.$i18nt("gd.menu.collectMode","\u6536\u85CF\u6A21\u5F0F"))+" ")])]),t("i",{staticClass:"gd-icons",class:e.getMode,staticStyle:{"line-height":"32px","padding-left":"2px",cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"})]),t("i",{staticClass:"el-input__icon el-icon-search",staticStyle:{"font-size":"16px",cursor:"pointer"},attrs:{slot:"suffix"},on:{click:e.query},slot:"suffix"})],1)],1),e.modeMenus==="collect"?t("div",{staticClass:"gd-center"},[t("div",{staticClass:"gd-menus-item"},[t("div",{staticClass:"item-list"},[e._l(e.favoriteMenus,function(i){return[t("div",{staticClass:"item",on:{click:function(a){return e.goPath(i,2,i.menus)}}},[i.meta&&i.meta.icon&&i.meta.icon!=="none"?t("div",{staticClass:"iteml"},[t("i",{staticClass:"gd-icons icons-menu",class:i.meta.icon,staticStyle:{"font-size":"16px"}})]):e._e(),t("div",{staticClass:"gdtitle line1",attrs:{title:e.$i18nt(`Dynamics.${i.transkey}`,i.meta.title)}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.meta.title))+" ")]),t("div",{staticClass:"item-collect"},[t("i",{staticClass:"collect el-icon-delete",staticStyle:{color:"red"},on:{click:function(a){return a.stopPropagation(),e.collectMenu(i,2)}}})])])]})],2)])]):t("div",{staticClass:"gd-center",class:e.modeMenus==="multiple"?"gd-centerbj":""},[e._l(e.appMenus,function(i,a){return[e.modeList.includes(i.code)?t("div",{staticClass:"gd-menus-item",class:a!=0&&i.show?"gd-menus-itembj":"",attrs:{id:`gd-menus-item-${i.code}`}},[i.show&&e.modeMenus==="multiple"?t("div",{staticClass:"divider"},[t("div",{staticClass:"dividerl"},[t("i",{staticClass:"gd-icons icons-menu",class:i.icon})]),t("span",{staticClass:"gdtitle",attrs:{title:e.$i18nt(`Dynamics.${i.transkey}`,i.name)}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.name))+" ")])]):e._e(),e._l(i.children,function(n){return[!n.hidden&&n.show?t("div",[n.type==1?t("div",{staticClass:"item-list"},[t("div",{staticClass:"item",class:n.path===e.activeKey?"itemactive":"",on:{click:function(o){return e.goPath(n,1,i)}}},[n.meta&&n.meta.icon&&n.meta.icon!=="none"?t("div",{staticClass:"iteml"},[t("i",{staticClass:"gd-icons icons-menu",class:n.meta.icon})]):e._e(),t("div",{staticClass:"gdtitle line1",attrs:{title:e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title))+" ")]),e.getUserFavoriteMenu.includes(n.id)?t("div",{staticClass:"item-collected"},[e.getUserFavoriteMenu.includes(n.id)?t("i",{staticClass:"gd-icons gd-icon-star-full",style:e.cstyle,on:{click:function(o){return o.stopPropagation(),e.collectMenu(n,2)}}}):t("i",{staticClass:"gd-icons gd-icon-star",style:e.cstyle,on:{click:function(o){return o.stopPropagation(),e.collectMenu(n,2)}}})]):t("div",{staticClass:"item-collect"},[t("i",{staticClass:"gd-icons collect gd-icon-star",style:e.cstyle,on:{click:function(o){return o.stopPropagation(),e.collectMenu(n,1)}}})])])]):t("div",{staticClass:"dividers"},[e.modeMenus==="singleton"?t("el-divider",{attrs:{orientation:"left","content-position":"left"}},[t("span",{staticClass:"gdtitle",class:n.path===e.activeKey?"itemactive":"",attrs:{title:e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)},on:{click:function(o){return e.goPath(n,2,i)}}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title))+" ")])]):t("span",{staticClass:"gdtitle",class:n.path===e.activeKey?"itemactive":"",attrs:{title:e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)},on:{click:function(o){return e.goPath(n,2,i)}}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title))+" ")])],1),n.children?t("div",{staticClass:"item-list"},[e._l(n.children,function(o){return[!o.hidden&&o.show?t("div",{staticClass:"item",class:o.path===e.activeKey?"itemactive":"",on:{click:function(l){return e.goPath(o,1,i)}}},[o.meta&&o.meta.icon&&o.meta.icon!=="none"?t("div",{staticClass:"iteml"},[t("i",{staticClass:"icons-menu gd-icons",class:o.meta.icon,staticStyle:{"font-size":"16px"}})]):e._e(),t("div",{staticClass:"gdtitle line1",attrs:{title:e.$i18nt(`Dynamics.${o.transkey}`,o.meta.title)}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${o.transkey}`,o.meta.title))+" ")]),e.getUserFavoriteMenu.includes(o.id)?t("div",{staticClass:"item-collected"},[e.getUserFavoriteMenu.includes(o.id)?t("i",{staticClass:"gd-icons gd-icon-star-full",style:e.cstyle,on:{click:function(l){return l.stopPropagation(),e.collectMenu(o,2)}}}):t("i",{staticClass:"gd-icons gd-icon-star",style:e.cstyle,on:{click:function(l){return l.stopPropagation(),e.collectMenu(o,2)}}})]):t("div",{staticClass:"item-collect"},[t("i",{staticClass:"gd-icons collect gd-icon-star",style:e.cstyle,on:{click:function(l){return l.stopPropagation(),e.collectMenu(o,1)}}})])]):e._e()]})],2):e._e()]):e._e()]})],2):e._e()]}),t("div",{staticClass:"zhan-bj"})],2)]),t("div",{staticClass:"gd-menus-close",on:{click:e.close}})]):e._e()])},L=[],P=r.normalizeComponent(N,z,L,!1,null,"fa68b6c4",null,null);const U=P.exports;var d=null;const Q={name:"GdSideNavMenu",props:{basicAttribute:{type:Object,default:()=>({})}},data(){return{defApp:"",defMenus:[],activeKey:"",defaultActive:"",activeData:{},type:"click"}},components:{UserLogo:F,SidebarMenus:U},computed:{componentItem(){const s=this.$importViewFiles();let e=`..${this.customizeNavMenu}`,t=s[e];return t?t.default:null},apps(){return this.userInfo.apps},styled(){let s=this.sidebar?`${this.sidebarConfig.foldWidth}px`:`${this.sidebarConfig.horizontalWidth}px`;return this.navMenuTheme==="fold"?s=this.sidebar?`${this.sidebarConfig.foldWidth}px`:`${this.sidebarConfig.verticalWidth}px`:this.navMenuTheme==="customize"&&(s=this.sidebar?`${this.sidebarConfig.foldWidth}px`:`${this.sidebarConfig.customizeWidth}px`),{width:s,"--bjmenuvar":"#1d2126"}},...r.mapGetters(["userInfo","addRouters","userFavoriteMenu","theme","sidebar","userFavoriteMenu","navMenuTheme","primaryColor","sidebar","sidebarConfig","customizeNavMenu"])},watch:{$route(s){this.changeRoute(s)}},methods:{selectMenus(s){if(console.log(s),this.defaultActive===s)return;let e={};const t=n=>(n=n.filter(o=>{const l=o.code?o.code:o.key;return s===l&&(e=o),o.children&&(o.children=t(o.children)),!0}),n);t(this.defMenus);const i=e.type===void 0?1:e.type;if(console.log(e,i),i!==1)return;if((e.opentype!==void 0?e.opentype:1)===2){const n=e.meta.link;n&&window.open(n);return}this.$router.push({name:e.name}),this.defaultActive=e.code?e.code:e.key,this.activeData=e},getDefApp(s){let e=s&&s.name?s.name:"";this.type="";let t="";this.apps.forEach(i=>{i.menus&&i.menus.forEach(a=>{a.name&&e===a.name&&!a.hidden&&(t=i.code)})}),this.defApp=t},goPath(s){this.defApp=s.data.code,this.activeData=s.data.item},getSysBookmarkPage(){this.userInfo.bookmarks&&this.UserFavoriteMenu(this.userInfo.bookmarks);let s={userId:this.userInfo.id,pageNo:1,pageSize:200};p.sysBookmarkPage(s).then(e=>{e.code===200&&this.UserFavoriteMenu(e.data.rows)})},init(){const s=t=>(t=t.filter(i=>(i.children&&(i.children=s(i.children),i.showLeg=i.children.filter(a=>a.show).length,i.show=i.showLeg===0?!1:i.show),!0)),t);let e=[...this.apps];e.forEach((t,i)=>{const a=t.menus.map(o=>(o.show=o.meta.show,o));let n=[];this.listToTree(a,n,0),e[i].children=[...n],e[i].show=!0}),e=s(e).filter(t=>t.children.filter(a=>a.show).length===0?!1:t.show),this.defMenus=[...e],this.$nextTick(()=>{setTimeout(()=>{this.$refs.sMenu.setAppMenus(e)},100)})},mouseenterMenu(){d&&clearTimeout(d),this.type=this.type!=="click"?"mouse":this.type},mouseleaveMenu(){d&&clearTimeout(d),this.type==="mouse"&&(d=setTimeout(()=>{this.$refs.sMenu.close()},100))},mouseenter(s){d&&clearTimeout(d),this.type!=="click"&&(this.type=this.type!=="click"?"mouse":this.type,this.$refs.sMenu.open(s))},mouseleave(){d&&clearTimeout(d),this.type!=="click"&&(d=setTimeout(()=>{this.$refs.sMenu.close()},300))},changeRoute(s){this.activeKey=s.fullPath,this.activeData=s,this.getDefApp(s)},getDefApp(s){let e=s&&s.name?s.name:"";this.defaultActive=e,this.type="";let t="";this.apps.forEach(i=>{i.menus&&i.menus.forEach(a=>{a.name&&e===a.name&&!a.hidden&&(t=i.code)})}),this.defApp=t},goPath(s){this.defApp=s.data.code,this.activeData=s.data.item},selItem(s){this.type="click",this.defApp=s.code,this.$refs.sMenu.open(s)},listToTree(s,e,t){s&&s.forEach(i=>{if(i.pid==t){const a={...i,key:i.key||i.name,children:[]};this.listToTree(s,a.children,i.id),a.children.length<=0&&delete a.children,e.push(a)}})},...r.mapActions(["UserFavoriteMenu"])},created(){this.init(),this.changeRoute(this.$route),this.getSysBookmarkPage()}};var K=function(){var e=this,t=e._self._c;return t("div",[e.componentItem?t("div",{staticClass:"gd-sider",class:e.theme==="light"?"":"gd-sider-dark",style:e.styled},[t(e.componentItem,{tag:"component",attrs:{basicAttribute:e.basicAttribute,defMenus:e.defMenus,sidebar:e.sidebar,defApp:e.defApp},on:{selectMenus:e.selectMenus}})],1):t("div",{staticClass:"gd-sider",class:e.theme==="light"?"":"gd-sider-dark",style:e.styled},[e.basicAttribute.logoOpen?t("UserLogo",{attrs:{basicAttribute:e.basicAttribute}}):e._e(),e.navMenuTheme==="vertical"?t("div",{staticClass:"gd-app"},[e._l(e.defMenus,function(i,a){return[t("div",{staticClass:"item",class:[e.sidebar?"sitem":"",i.code===e.defApp?"itemactive":""],attrs:{title:e.$i18nt(`Dynamics.${i.transkey}`,i.name)},on:{click:function(n){return e.selItem(i)},mouseenter:function(n){return e.mouseenter(i)},mouseleave:e.mouseleave}},[t("i",{staticClass:"gd-icons",class:i.icon}),e.sidebar?e._e():t("div",{staticClass:"pname line1"},[e._v(" "+e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.name))+" ")]),i.code===e.defApp&&!e.sidebar?t("i",{staticClass:"el-icon-arrow-right"}):e._e()])]})],2):t("div",{staticClass:"gd-app"},[e._l(e.defMenus,function(i,a){return[t("el-menu",{staticClass:"el-menu-vertical-demo",class:[e.sidebar?"sitem":""],attrs:{"default-active":e.defaultActive,"background-color":e.theme==="light"?"#fff":"#1d2126","text-color":e.theme==="light"?"#333":"#fff","active-text-color":e.primaryColor,collapse:e.sidebar},on:{select:e.selectMenus}},[i.children&&i.children.length>0?t("el-submenu",{attrs:{index:i.code}},[t("template",{slot:"title"},[t("i",{staticClass:"gd-icons",class:i.icon,staticStyle:{"padding-right":"4px"}}),t("span",[e._v(e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.name)))])]),e._l(i.children,function(n,o){return[n.children&&n.children.length>0?t("el-submenu",{attrs:{index:n.key,title:e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)}},[t("template",{slot:"title"},[t("i",{staticClass:"gd-icons",class:n.icon,staticStyle:{"padding-right":"4px"}}),t("span",[e._v(e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)))])]),e._l(n.children,function(l,v){return[t("el-menu-item",{attrs:{index:l.key,title:e.$i18nt(`Dynamics.${l.transkey}`,l.meta.title)}},[t("template",{slot:"title"},[t("i",{staticClass:"gd-icons",class:l.icon,staticStyle:{"padding-right":"4px"}}),t("span",[e._v(e._s(e.$i18nt(`Dynamics.${l.transkey}`,l.meta.title)))])])],2)]})],2):t("el-menu-item",{attrs:{index:n.key,title:e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)}},[t("i",{staticClass:"gd-icons",class:n.icon,staticStyle:{"padding-right":"4px"}}),t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.meta.title)))])])]})],2):t("el-menu-item",{attrs:{index:i.code}},[t("i",{staticClass:"gd-icons",class:i.icon,staticStyle:{"padding-right":"4px"}}),t("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$i18nt(`Dynamics.${i.transkey}`,e.ite.meta.title)))])])],1)]})],2)],1),t("SidebarMenus",{ref:"sMenu",attrs:{collapsed:e.sidebar,menus:e.defMenus,activeKey:e.activeKey},on:{goPath:e.goPath,close:function(i){return e.getDefApp(e.activeData)},mouseenter:e.mouseenterMenu,mouseleave:e.mouseleaveMenu}})],1)},j=[],q=r.normalizeComponent(Q,K,j,!1,null,"b00d3374",null,null);const f=q.exports;f.install=function(s){s.component(f.name,f)};const O={props:{daySet:{type:Array,default:()=>[]}},data(){return{queryParam:{readStatus:"UNREAD"},list:[],notifications:[],confirmLoading:!1,pageNo:1,pageSize:20,totalRows:0,loading:!1,observer:null}},computed:{moreTitle(){let s=this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D...");return this.loading||(s=this.list.length>=this.totalRows?this.pageNo>1?this.$i18nt("gd.https.noMoreData","\u6682\u65E0\u66F4\u591A\u6570\u636E"):"":this.$i18nt("gd.https.loadMoreData","\u70B9\u51FB\u52A0\u8F7D\u66F4\u591A")),s},messagetypeData(){return this.getDictionary("messagetype")}},methods:{elLoadMore(){const s=this.$refs.moreTitle;!s||this.observer||(this.observer=new IntersectionObserver((e,t)=>{e.forEach(i=>{i.isIntersecting&&this.loadMore()})}),this.observer.observe(s))},loadMore(){this.loading||this.list.length>=this.totalRows||(this.pageNo+=1,this.getList(!1))},getDictionary(s){return this.$options.filters.dictData(s)},messageType(s){const e=this.messagetypeData.filter(t=>t.code==String(s.messagetype))[0];return e?this.$i18nt(`Dynamics.${e.transkey}`,e.name):s.messagetype},getList(s){return this.confirmLoading=!0,this.loading=!0,g.sysMessagePage(Object.assign({},this.queryParam,{pageNo:s?1:this.pageNo,pageSize:s?this.pageNo*this.pageSize:this.pageSize})).then(e=>{e.code===200&&(this.totalRows=e.data.totalrows,this.list=s||this.pageNo===1?e.data.rows:this.list.concat(e.data.rows),this.handOrganize(),this.$emit("notifications",e.data.rows),this.pageNo===1&&this.$nextTick(()=>{setTimeout(()=>{this.elLoadMore()},0)})),this.confirmLoading=!1})},init(s){s?this.getList(!0):(this.pageNo=1,this.list=[],this.notifications=[],this.getList(!1))},handOrganize(){let s=[],e=[];this.list.forEach(t=>{const i=t.createdtime.split(" ")[0];s.includes(i)?e[e.length-1].messages.push(t):(s.push(i),e.push(Object.assign({},t,{groupdate:i,messages:[t]})))}),this.notifications=e,this.loading=!1},markAsRead(s){this.beaseLoadComplete(s)},beaseLoadComplete(s){const e=s.targeturl.split("?")[1];let t="";if(e&&(t=new URLSearchParams(e).get("complete_request")),t==="")return;const i=decodeURIComponent(t),a=i.indexOf("?")===-1?i:i.slice(0,i.indexOf("?")),n=D.getParamsQuery(i);E.post(a,n),setTimeout(()=>{this.init()},1e3)},dictSwitch(s,e){let t=this.$options.filters.dictData(e).filter(i=>i.code==s)[0];return t!=null&&t.colour?t.colour:null},markAsReadDetail(s){this.$emit("markAsRead",s),setTimeout(()=>{this.init()},300)}},beforeDestroy(){this.observer&&this.observer.disconnect()}};var H=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"70%"}},[t("div",{staticClass:"notification-list"},[e._l(e.notifications,function(i,a){return t("div",[t("div",{staticClass:"notification-date",class:a===0?"notification-daten":""},[e.daySet[0].includes(i.groupdate)?t("span",[e._v(" "+e._s(e.$i18nt("gd.view.today","\u4ECA\u5929"))+" ")]):e.daySet[1].includes(i.groupdate)?t("span",[e._v(" "+e._s(e.$i18nt("gd.view.yesterday","\u6628\u5929"))+" ")]):t("span",[e._v(e._s(i.groupdate))])]),e._l(i.messages,function(n,o){return t("div",{key:n.id,staticClass:"notification-item",class:o===i.messages.length-1?"notification-itemn":"",on:{click:function(l){return e.markAsReadDetail(n)}}},[t("div",{staticClass:"notification-content"},[t("div",{staticClass:"notification-message"},[t("div",{staticClass:"name line1"},[e._v(e._s(n.name))]),t("div",{staticClass:"du",on:{click:function(l){return l.stopPropagation(),e.markAsRead(n)}}},[e._v(e._s(e.$i18nt("gd.menu.markAsRead","\u6807\u4E3A\u5DF2\u8BFB")))])]),t("div",{staticClass:"notification-detail line1"},[e._v(e._s(n.content))]),t("div",{staticClass:"notification-nav"},[t("div",{staticClass:"notification-type"},[e._v(e._s(e.messageType(n)))]),t("div",{staticClass:"notification-time"},[e._v(e._s(n.createdtime))])])])])})],2)}),!e.confirmLoading&&e.notifications.length==0?t("div",{staticClass:"none"},[t("div",{staticClass:"empty"},[t("i",{staticClass:"el-icon-receiving"}),t("div",{staticClass:"empty-err"},[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):e._e(),e.totalRows>0?t("div",{ref:"moreTitle",staticClass:"list-more",class:{"active-item":e.totalRows>0&&e.list.length>=e.totalRows,"list-morep":e.moreTitle!==""||e.loading}},[e.loading?t("i",{staticClass:"el-icon-loading"}):e._e(),t("div",{staticClass:"more-title",on:{click:e.loadMore}},[e._v(e._s(e.moreTitle))])]):e._e()],2)])},J=[],V=r.normalizeComponent(O,H,J,!1,null,"8580e637",null,null);const Y=V.exports;const G={props:{daySet:{type:Array,default:()=>[]}},data(){return{queryParam:{readStatus:"READ"},list:[],notifications:[],confirmLoading:!1,showDetails:!1,pageNo:1,pageSize:20,totalRows:0,loading:!1,observer:null}},computed:{moreTitle(){let s=this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D...");return this.loading||(s=this.list.length>=this.totalRows?this.pageNo>1?this.$i18nt("gd.https.noMoreData","\u6682\u65E0\u66F4\u591A\u6570\u636E"):"":this.$i18nt("gd.https.loadMoreData","\u70B9\u51FB\u52A0\u8F7D\u66F4\u591A")),s},messagetypeData(){return this.getDictionary("messagetype")}},methods:{elLoadMore(){const s=this.$refs.moreTitle;!s||this.observer||(this.observer=new IntersectionObserver((e,t)=>{e.forEach(i=>{i.isIntersecting&&this.loadMore()})}),this.observer.observe(s))},loadMore(){this.loading||this.list.length>=this.totalRows||(this.pageNo+=1,this.getList(!1))},getDictionary(s){return this.$options.filters.dictData(s)},messageType(s){const e=this.messagetypeData.filter(t=>t.code==String(s.messagetype))[0];return e?this.$i18nt(`Dynamics.${e.transkey}`,e.name):s.messagetype},getList(s){return this.confirmLoading=!0,this.loading=!0,g.sysMessagePage(Object.assign({},this.queryParam,{pageNo:s?1:this.pageNo,pageSize:s?this.pageNo*this.pageSize:this.pageSize})).then(e=>{e.code===200&&(this.totalRows=e.data.totalrows,this.list=s||this.pageNo===1?e.data.rows:this.list.concat(e.data.rows),this.handOrganize(),this.$emit("notifications",e.data.rows),this.pageNo===1&&this.$nextTick(()=>{setTimeout(()=>{this.elLoadMore()},0)})),this.confirmLoading=!1})},init(s){s?this.getList(!0):(this.pageNo=1,this.list=[],this.notifications=[],this.getList(!1))},handOrganize(){let s=[],e=[];this.list.forEach(t=>{const i=t.createdtime.split(" ")[0];s.includes(i)?e[e.length-1].messages.push(t):(s.push(i),e.push(Object.assign({},t,{groupdate:i,messages:[t]})))}),this.loading=!1,this.notifications=e},dictSwitch(s,e){let t=this.$options.filters.dictData(e).filter(i=>i.code==s)[0];return t!=null&&t.colour?t.colour:null},markAsRead(s){this.$emit("markAsRead",s)}},beforeDestroy(){this.observer&&this.observer.disconnect()}};var X=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"70%"}},[t("div",{staticClass:"notification-list"},[e._l(e.notifications,function(i,a){return t("div",[t("div",{staticClass:"notification-date",class:a===0?"notification-daten":""},[e.daySet[0].includes(i.groupdate)?t("span",[e._v(" "+e._s(e.$i18nt("gd.view.today","\u4ECA\u5929"))+" ")]):e.daySet[1].includes(i.groupdate)?t("span",[e._v(" "+e._s(e.$i18nt("gd.view.yesterday","\u6628\u5929"))+" ")]):t("span",[e._v(e._s(i.groupdate))])]),e._l(i.messages,function(n,o){return t("div",{key:n.id,staticClass:"notification-item",class:o===i.messages.length-1?"notification-itemn":"",on:{click:function(l){return e.markAsRead(n)}}},[t("div",{staticClass:"notification-content"},[t("div",{staticClass:"notification-message"},[e._v(" "+e._s(n.name)+" ")]),t("div",{staticClass:"notification-detail line1"},[e._v(e._s(n.content))]),t("div",{staticClass:"notification-nav"},[t("div",{staticClass:"notification-type"},[e._v(e._s(e.messageType(n)))]),t("div",{staticClass:"notification-time"},[e._v(e._s(n.createdtime))])])])])})],2)}),!e.confirmLoading&&e.notifications.length==0?t("div",{staticClass:"none"},[t("div",{staticClass:"empty"},[t("i",{staticClass:"el-icon-receiving"}),t("div",{staticClass:"empty-err"},[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):e._e(),e.totalRows>0?t("div",{ref:"moreTitle",staticClass:"list-more",class:{"active-item":e.totalRows>0&&e.list.length>=e.totalRows,"list-morep":e.moreTitle!==""||e.loading}},[e.loading?t("i",{staticClass:"el-icon-loading"}):e._e(),t("div",{staticClass:"more-title",on:{click:e.loadMore}},[e._v(e._s(e.moreTitle))])]):e._e()],2)])},Z=[],W=r.normalizeComponent(G,X,Z,!1,null,"c25eaf49",null,null);const ee=W.exports;const te={data(){return{visible:!1,width:"384px",type:"messageDataRefun",showDetails:!1,notificationsData:[]}},computed:{daySet(){const s=new Date().getTime(),e=new Date().getTime()-24*60*60*1e3;return[this.getDayNum(s),this.getDayNum(e)]}},components:{MessageData:Y,ReadMessageData:ee},methods:{notifications(s){this.notificationsData=s},closeShowDetails(){console.log(88),this.showDetails=!1,this.refresh(!0)},markAsRead(s,e){this.showDetails=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.viewFormDetails.open(s.targeturl)})})},refresh(s=!0){this.$nextTick(()=>{setTimeout(()=>{const e=this.$refs[this.type];e&&e.init(s)})})},open(){this.visible=!0,this.refresh(!1)},readOneClick(){this.$confirm(this.$i18nt("gd.https.oneClickRead","\u662F\u5426\u4E00\u952E\u5DF2\u8BFB\u6D88\u606F?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.btn.confirm","\u786E\u8BA4"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,e,t)=>{if(s!=="confirm"){t();return}this.oneClick(s,e,t)}})},oneClick(s,e,t){e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,g.sysMessageMarkAllAsRead().then(i=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,i.code==200||i.code==204?(t(),this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message)})},getDayNum(s){const e=new Date(s),t=e.getFullYear(),i=e.getMonth()+1,a=e.getDate();return`${t}-${this.formatNumber(i)}-${this.formatNumber(a)}`},formatNumber(s){return s=s.toString(),s[1]?s:"0"+s}}};var se=function(){var e=this,t=e._self._c;return t("div",[t("el-drawer",{attrs:{visible:e.visible,"close-on-press-escape":!1,"append-to-body":!1,"modal-append-to-body":!0,size:e.width,"show-close":!1,modal:!1,"custom-class":"gd-drawer-msg",withHeader:!1},on:{"update:visible":function(i){e.visible=i}}},[t("div",{staticClass:"drawer-main"},[t("div",{staticClass:"title"},[t("el-radio-group",{on:{input:function(i){return e.refresh(!1)}},model:{value:e.type,callback:function(i){e.type=i},expression:"type"}},[t("el-radio-button",{attrs:{label:"messageDataRefun"}},[e._v(e._s(e.$i18nt("gd.menu.unreadMessage","\u672A\u8BFB\u6D88\u606F")))]),t("el-radio-button",{attrs:{label:"readMessageDataRef"}},[e._v(e._s(e.$i18nt("gd.menu.readMessages","\u5DF2\u8BFB\u6D88\u606F")))])],1),e.notificationsData.length>0?t("i",{staticClass:"gd-icons gd-icon-qinglihuancun",attrs:{title:e.$i18nt("gd.menu.oneClickRead","\u4E00\u952E\u5DF2\u8BFB")},on:{click:e.readOneClick}}):e._e()],1),e.visible?t("div",{staticClass:"content"},[t("MessageData",{directives:[{name:"show",rawName:"v-show",value:e.type==="messageDataRefun",expression:"type === 'messageDataRefun'"}],ref:"messageDataRefun",attrs:{daySet:e.daySet},on:{markAsRead:e.markAsRead,notifications:e.notifications}}),t("ReadMessageData",{directives:[{name:"show",rawName:"v-show",value:e.type==="readMessageDataRef",expression:"type === 'readMessageDataRef'"}],ref:"readMessageDataRef",attrs:{daySet:e.daySet},on:{markAsRead:e.markAsRead}})],1):e._e()])]),e.showDetails?t("gd-view-form-details",{ref:"viewFormDetails",on:{close:e.closeShowDetails}}):e._e()],1)},ie=[],ne=r.normalizeComponent(te,se,ie,!1,null,"954b95d6",null,null);const ae=ne.exports;const oe={data(){return{transKey:"gd.notice.detail",fullscreen:!1,visible:!1,width:"900",confirmLoading:!1,contentRecord:{},sysViewButtons:[],type:"pdf"}},computed:{height(){return this.screenHeight-24-40-36},headTitle(){return this.$i18nt(this.transKey,this.title)},style(){return`height:${this.fullscreen?this.screenHeight-80:this.screenHeight-240}px;`},...r.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{open(s){this.fullscreen=!1,this.visible=!0,this.confirmLoading=!0,this.sysNoticeDetail(s.id),s.attachment&&this.$nextTick(()=>{setTimeout(()=>{let e={name:`${s.title}.${this.type}`,fileId:s.attachment,fullscreen:!1};this.$refs.filePreview.open(e)},0)})},sysNoticeDetail(s){this.fullscreen=!1,g.sysNoticeDetail({id:s}).then(e=>{this.confirmLoading=!1,this.contentRecord=e.data})},handleCancel(){this.visible=!1,this.contentRecord={}},closed(){this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()}}};var le=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{formMode:e.formMode,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",transKey:e.transKey,labelPosition:e.labelPosition,"show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[t("gd-modal-title",{attrs:{slot:"title",title:e.headTitle,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),t("div",{class:e.fullscreen?"modal-bodyq":"modal-body"},[t("div",{staticStyle:{"text-align":"center","font-size":"30px"}},[e._v(e._s(this.contentRecord.title))]),t("br"),t("div",{staticStyle:{"text-align":"right","font-size":"10px"}},[t("span",[e._v(" "+e._s(e.$i18nt("gd.notice.publisher","\u53D1\u5E03\u4EBA"))+": "+e._s(this.contentRecord.publicusername)+" ")]),t("span",[e._v(" "+e._s(e.$i18nt("gd.notice.releaseTime","\u53D1\u5E03\u65F6\u95F4"))+": "+e._s(this.contentRecord.publictime?this.contentRecord.publictime:"--")+" ")])]),t("el-divider",{staticStyle:{"margin-top":"5px"}}),t("div",[t("label",{staticClass:"ql-editor",domProps:{innerHTML:e._s(this.contentRecord.content)}})]),e.contentRecord.status!=2&&e.contentRecord.attachment!=""?t("gd-file-preview",{ref:"filePreview",attrs:{options:{},modeType:"component"}}):e._e()],1)],1)],1)},re=[],ce=r.normalizeComponent(oe,le,re,!1,null,"e0a239f4",null,null);const de=ce.exports;const ue={mixins:[x.tablesFilter],data(){return{transKey:"gd.btn.add",type:"1",allData:[]}},components:{detailForm:de},computed:{...r.mapGetters(["tableLists","tablePageSize","tableSize","labelPosition","formMode"])},methods:{editForm(s){this.transKey="gd.notice.detail",this.$refs.detailForm.open(s)},init(s){if(this.type=s.messagetype,this.type=="4"){let e={key:"tabledataid",transKey:"Dynamics.Sys_Tables_sys_approval_task_Views_toApprovaltask_Fields_15452455065798_Name",prop:"tabledataid",label:"\u5BA1\u6279\u5355\u636E",owidth:"250",columnName:"tabledataid_aboutid",fkEntityName:"dev_test",id:0xc0a53ed7146,fkId:0xc0a53ed7146,align:"left",checked:!0,effectType:"about",fieldType:"about",gatherConfig:!1,fieldFormat:"null",dictTypeCode:null,dictTypeList:[],maxTagCount:2,sourceFk:!0,displayMode:"none",displayPrefix:"none",preview:!0,download:!0,filedsize:255,hyperlink:!0,type:"slot",slotType:"tabledataid"},t={id:22450602588615,tasktype:"approver",tabledataid_aboutid:22450596595013,namesys_usersubmitter:"\u8096yx",status:0,createdtime:"2025-09-11 11:15:34",isreturn:0,nodename:"\u524D\u52A0\u7B7E\u5BA1\u6279\u4EBA",isautoapproval:0,tabledataid:"\u76F4\u5C5E\u4E0A\u7EA7"},i=e.prop+"_AboutTable",a=t[i];this.tableLists.filter(l=>l.tablename==a)[0];let o={tableId:"19785037949381",data:[{id:t[e.columnName]}]};this.$refs.middleware.init(o).then(l=>{setTimeout(()=>{},1e3)})}else{this.getNoticeData();const e=s.targeturl.split("?")[1];let t="";e&&(t=new URLSearchParams(e).get("id")),setTimeout(()=>{this.allData.forEach(i=>{i.id==t&&this.editForm(i)})},100)}},getNoticeData(){return $.sysNoticeReceived(Object.assign({pageNo:1,pageSize:1e5})).then(s=>{this.allData=s.data.rows})},openExternal(){}},mounted(){}};var me=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view"},[e.type=="1"||e.type=="2"||e.type=="3"?t("detailForm",{ref:"detailForm"}):e._e(),e.type=="4"?t("gd-middleware",{ref:"middleware"}):e._e()],1)},he=[],pe=r.normalizeComponent(ue,me,he,!1,null,"3e8b356a",null,null);const fe=pe.exports,y=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],u=(()=>{if(typeof document>"u")return!1;const s=y[0],e={};for(const t of y)if((t==null?void 0:t[1])in document){for(const[a,n]of t.entries())e[s[a]]=n;return e}return!1})(),_={change:u.fullscreenchange,error:u.fullscreenerror};let c={request(s=document.documentElement,e){return new Promise((t,i)=>{const a=()=>{c.off("change",a),t()};c.on("change",a);const n=s[u.requestFullscreen](e);n instanceof Promise&&n.then(a).catch(i)})},exit(){return new Promise((s,e)=>{if(!c.isFullscreen){s();return}const t=()=>{c.off("change",t),s()};c.on("change",t);const i=document[u.exitFullscreen]();i instanceof Promise&&i.then(t).catch(e)})},toggle(s,e){return c.isFullscreen?c.exit():c.request(s,e)},onchange(s){c.on("change",s)},onerror(s){c.on("error",s)},on(s,e){const t=_[s];t&&document.addEventListener(t,e,!1)},off(s,e){const t=_[s];t&&document.removeEventListener(t,e,!1)},raw:u};Object.defineProperties(c,{isFullscreen:{get:()=>Boolean(document[u.fullscreenElement])},element:{enumerable:!0,get:()=>{var s;return(s=document[u.fullscreenElement])!=null?s:void 0}},isEnabled:{enumerable:!0,get:()=>Boolean(document[u.fullscreenEnabled])}});u||(c={isEnabled:!1});const A=c;const ge={props:{basicAttribute:{type:Object,default:()=>({})}},data(){return{isFullscreen:!1,photoUrl:"",avatar:"",unreadCount:"",handletype:"1",tabsReady:!1}},components:{SettingDrawer:k.GDpackage,XlsxImport:w.XlsxImport,InformationMsg:ae,Transfer:fe},computed:{hasLogout(){const s=this.options.filter(e=>e.key==="logout")[0];return s?s.statu:!0},options(){return(this.basicAttribute.menus||[]).map(e=>(e.key==="universalImport"?(e.permission="sysUser:universalImport",e.transkey="gd.menu.universalImport"):e.key==="advancedFind"?(e.permission="sysUser:advancedFind",e.transkey="gd.menu.menuAdvancedFind"):e.key==="information"?e.transkey="gd.menu.information":e.key==="theme"?e.transkey="gd.menu.themeConfiguration":e.key==="fullScreen"&&(e.transkey="gd.menu.fullScreen"),e))},menus(){const s=this.hasItems?[{disabled:!1,key:"application",name:"\u5E94\u7528",statu:!0,permission:"sysApplication:see",transkey:"gd.solution.application"}]:[],e=this.options.filter(t=>t.key!=="logout");return s.concat(e).filter(t=>t.permission?this.$hasPerm(t.permission):!0)},hasItems(){return(this.systemInfo.id?this.systemInfo:window.$systemInfo).code==="GDS_LCDP"},apps(){return this.userInfo.apps},getUserImg(){let s="/gds/"+this.userInfo.filePath+"/"+this.userInfo.fileObjectName;return`${this.$getImageUrl(s)}`},fadeColord(){return this.fadeColor(this.primaryColor,.2)},...r.mapGetters(["tableLists","platformData","userInfo","primaryColor","token","systemInfo"])},methods:{imageUrl(){I.sysFileInfoPreview({id:this.userInfo.avatar}).then(s=>{const e=new Blob([s]);this.photoUrl=window.URL.createObjectURL(e)}).catch(s=>{this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+s.message)})},echartsManage(s){this.$router.push({name:"echartsManage"}),this.$refs[s][0].doClose()},accountSetting(s){this.$router.push({name:"accountSettings"}),this.$refs[s][0].doClose()},hand(s){s==="theme"?this.$refs.settingDrawer.toggle():s==="fullScreen"?this.toggleFullscreen():s==="application"?this.$router.push({path:"/platform/application"}):s==="universalImport"?this.$refs.xlsxImport.open():s=="information"?this.$refs.informationMsg.open():this.$router.push({path:`/${s}`})},showtabs(){this.tabsReady=!0},hidetabs(){this.tabsReady=!1},toggleFullscreen(){if(!A.isEnabled){message.error(this.$i18nt("gd.account.browserNotSupported","\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u5168\u5C4F\u6A21\u5F0F?"));return}A.toggle(),A.isFullscreen?this.isFullscreen=!1:this.isFullscreen=!0},handleLogout(){let s=this;this.$confirm(this.$i18nt("gd.account.logOutContent","\u771F\u7684\u8981\u6CE8\u9500\u767B\u5F55\u5417?"),this.$i18nt("gd.account.logOutTip","\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.menu.logOutOk","\u786E\u8BA4"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,closeOnClickModal:!1,closeOnPressEscape:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,t,i)=>{if(e!=="confirm"){i();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,s.Logout().then(a=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,setTimeout(()=>{window.location.reload(),i()},100)})}})},fadeColor(s,e){let t=parseInt(s.substring(1,3),16),i=parseInt(s.substring(3,5),16),a=parseInt(s.substring(5,7),16);return`rgba(${t},${i},${a},${e})`},handleMessage(s){this.unreadCount=s.count},handleClick(s,e){this.$nextTick(()=>{setTimeout(()=>{const t=s.name==="1"?"messageDataRefun":"readMessageDataRef";this.$refs[t]&&typeof this.$refs[t].init=="function"&&this.$refs[t].init()},10)})},...r.mapActions(["Logout"])},async mounted(){this.$socket.on("receive",this.handleMessage),this.imageUrl(),await this.$socket.authenticate(this.token)}};var ve=function(){var e=this,t=e._self._c;return t("div",{staticClass:"user-wrapper"},[e._l(e.menus,function(i){return[i.statu?[i.key==="user"?t("el-popover",{ref:`popover_${i.key}`,refInFor:!0,attrs:{placement:"bottom-start",trigger:"click",tabindex:9999}},[t("div",{staticClass:"selectionl-popover",style:{"--dilute":e.fadeColord}},[t("div",{staticClass:"item",on:{click:function(a){return e.accountSetting(`popover_${i.key}`)}}},[t("i",{staticClass:"gd-icon-xitongshezhi gd-icons"}),t("span",[e._v(e._s(e.$i18nt("gd.menu.accountSettings","\u8D26\u53F7\u8BBE\u7F6E")))])]),t("div",{staticClass:"item",on:{click:function(a){return e.echartsManage(`popover_${i.key}`)}}},[t("i",{staticClass:"gd-icon-zhuzhuangtu gd-icons"}),t("span",[e._v(e._s(e.$i18nt("gd.menu.echarts","\u4E2A\u4EBA\u56FE\u8868\u7BA1\u7406")))])]),t("div",{staticClass:"popover-solid"},[t("el-divider")],1),e.hasLogout?t("div",{staticClass:"item",on:{click:function(a){return e.handleLogout(`popover_${i.key}`)}}},[t("i",{staticClass:"gd-icon-tuichudenglu1 gd-icons"}),t("span",[e._v(e._s(e.$i18nt("gd.menu.logOut","\u9000\u51FA\u767B\u5F55")))])]):e._e()]),t("span",{staticClass:"user-dropdown-menu",attrs:{slot:"reference"},slot:"reference"},[e.userInfo.avatar?t("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:e.userInfo.avatar,expression:"userInfo.avatar"}],staticClass:"user-img"}):e.userInfo.filePath&&e.userInfo.photoUrl==""?t("img",{staticClass:"user-img",attrs:{src:e.getUserImg}}):t("img",{staticClass:"user-img",attrs:{src:"data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDACMYGh4aFiMeHB4nJSMpNFc4NDAwNGpMUD9Xfm+EgnxveneLnMipi5S9lnd6ru2wvc7V4OLgh6f1//PZ/8jb4Nf/2wBDASUnJzQuNGY4OGbXj3qP19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f/wgARCADhAOEDAREAAhEBAxEB/8QAGgABAAIDAQAAAAAAAAAAAAAAAAECAwQFBv/EABgBAQEBAQEAAAAAAAAAAAAAAAABAgME/9oADAMBAAIQAxAAAADuAAAAGFOfLzqwWY6qZozG9L0kwS6pat6NmgAAAAANc5xxtS+s7abkZKRQ07daMc1FzlsrnW5nfZTZAAAAEDCed019Y2qyICkAKKJiMa7XPffjLQAAAAGI81ZTeboAAAAAIiud+ll2AAAAAY04Mul0xksKAAAACAVlyZ36KM6FAAAHOPP6mTWQAACGiAAggrnXazesoAAAHl619YhF0EEItRNiIrPy1PWYEhpMlyZ36iMoAABgPLVGs0JRV5utxKWatcxGNdrh37HHXM640/RxkxrElc69Tm7lAAAco8/qXuZFSl1mMdzM3EZ8denzbeNXXDM8zs1evHXsiWq9vN6xlABhOGuvm2l1OmZSpbNmsmNbEbeW1nexcyTLERbjmtdjndpqdc5ebLE6noLnKoHINFvq8LzuitnQ46ulrcqWiVXM2oAjNiqy45a51p9OWr1dflrmdJfpy7wIjzR1PL2tOnP688uZu51a29lmZqdSIkUERLEVMbUZusaffPT4bjfPi+nPqZiwjy/S9Xy9cvLeDfPHW3z6W0vc2ZmrJGgADKlsZUm4Ndmu5s8t03OP7uPp+UsI89bHLp0+W76563Rn8/W212ZS1k2KACoyrLEtJqsuvvlsaJrR1nW649KgGE8zrW3x1t8tLdjGrVe5lJsknUgkgQirVZazVZnBqVzdX040ek9DjnvKoDEcY1KpnXc83TJN21myTZKFWKSogiWCk1S54vrwzjOdpNhQAAB56Vz6dPFul5ZRqTDQIZsaRLWWtaMxp+jHpLLAAAACMJ5Xeu35t7UtwIsjUKEkLWWq67PJ9c7eOW9aAAAAAOccR17PKbMt8hNiozpYgldzWzeP2nTY69hQAAAAMRxDQ1NvPTf8zY6by3E5StiIpqYsXBtodZqXnty9uNigAAABzo4em3rO6lbHO5eXVmznVtZhqNSucqp6ecXMtakaeb2ZemSAAAcs49dfWbJKwY5N5Wbgm+ZO1G+q8u30xjNPS6FRCcua3c3tEgAGhHE07lzFWUCEiXJHK5erWz6kZ+nk7XThjuMdl2gKpQ5Wb05eoADEeaO5ZkokgKTDUxj49ebPWs29eXc6corJEgEFbbZeal9SZgDlmid+yKAASRak0cejkcvYmup08vR6+Qk2gIVUmTlTUHbAPNnUTeFVJi1QSCmXKz6NDPrZm7vj2evjgkAggkkwy+fPUAHlj0EbNQYNS8ZJZBAjk8/TpZ61us14d7p5psKBSzFWzlC4TzR6osDyZBIrGWS0oAkxzdViLVkuCACtUMsASepLA8kagAAABMgi0ASsIABJAMx7Asf/xAA/EAACAgADBQQIAwcBCQAAAAABAgADBBJRBREhMXEQEzNSFSAwQlNUYbFzgZMyNHKCkaLBQWJjobLC0dLh8P/aAAgBAQABPwD2Nt1VSFrXRI+2qU8NI+18U8N97877X6u0KWuSWR2+p3mCq5eIRhEtxKcUvdOjNE2riklG2/jJKr6bULpajpLdqYamenE+BE21R8KUYyjE+E8HtXcIC/8A2AAGpMv2wnhUfqR7brnLu7u8pwzvqx0WUYHzhE+ryrBUrzufokTB0e+H/UMOEwnkf9Qx8FhmBKXOn0eXYHyOjy7CvVqn0aEW0lgAy6lSQCJVQxALMVBiLUASVDakkmXFOKqi8/8AJ4CYLZlt5FruUT++U0lOoULnfizbtT7S25KUd7XCosxmOuxX4cSk8Hb6ELEROTgBeG5ViXIEyABANABBe/ngvccnnftBe/nnfvxGed+fPDeHQo4DahgDHqRszJuU+U8RHrKkgAgiWs6Jk5F+B6CbHoF7u7xEVECqAFAAA5AAQezttSqp3cgIgJMxeKfFX6IhIRJUiVKHIDOfzCxGCg8iYLW4zvWnetO9M70zvTO9M70zvTO9aFwwIMNS2oRydRvDf4Mw174Vw46OvnWYa+q+kXJB7IlUBJIAA3n6ATamJN7mlPDT+55UgRc7cWI4DQQNM0zTMRM0zTNM0zQNM0zTNMxIMYB0JAAKjeDqNDNnYs4W/VHIDxHR+KaBhoQeIPstpX9xhCic7d6JKlLuXYkgHeTqYGmaZpmmaZpmmaZpmmYiZpmmY7jM03mWoFIZQADwI+s2LeXoNUHsdq3m/FP5E4JAAOpAJP1MzGBpmmaZpmgYwMTAWMCkAkkACFhxAlNTu7onuAlzyUAQIVH/AMCCDxBB0hVlmYwMYQCG0I3CYG40X1W+4GAaVsLEV+asAw6EewvtFNNr+RGaO5uzOeLn7kkmBgIGgLcYCxi5jEVzvG4xKnPJTEped0igkusNqLvVFJPLQQ2s32AlODe8h34JKaURAFAVQBNo4Z0JvT+eVWhRkcZlP5kQquUurg/cdRCxG8GZowKknoRNm299hEf2G1cVQKHpR0LvKuDE6CI4XmoMS1BzQRLUHNIltY5pBcg5IJ36AHKkN/lQQ3P5so0G4QM7nmXcncAN5JMqwV9vNCg1eUYCqn+OJSF0UAbgoAAAhUAR0VtG56EEHXfL8A/F6erpGDp/U6ggjmCDxhtYghpm5xyCBNi3olL0PEIcAqQQQCCOII9UuEzM7gKAToABzJmN2obnNVHhyjAX3jP4aed5i8KKCgDly8BJ1O6AmAsSQAT0ERHbgqMToFJgot+E7dFMTB3fBeVbKvfm6JE2TSniO7xMMieHSiRKf9XMVVUcFhEIhHOEc5fhqbv/ADl+AuTwyH/541T1c0mEoF7lHcoApeX7Luq8Ii1Jg9o3YVwjkukR0sAKcmUMNCD6m2bzVSKUmzaA7m5/cjutXBNB0UDgABNqOXoSbOqR0cunNwkSmjyL+mIlNPwkHRBEoReCBF6Io+wiVquigaAAREEStBEVVBIWDtIhEI5wjnGHOMCQZtRA9PR5snxbn0SVXMxAebRwyeOn882HiudD+ptMl8c/UJKECUIg8gmUsSTNpITV/A82V4HV4kQRIgiwCDeQYB6hhHOEc4RwMYbgZjPAtTRJshPFeBSI6Bg6efep6EESomq9D5HH9A0UggHUDtxgKY5/xJR4SdE/4CBCZi0L0WpomebL8Do8QRIkQxYvr6wjnGHZi/At/DmzailQfq8yHjCwTe/JEBJ6DeTF3vikOr/d4vAAaADt2zQUcXTZ14dDU78U4pKLVICOcpndo5ZSQU+4IIIlNRFr/ViU6NKzEiCJF7BugHaT2HsYRt4BmJQuAvxWRX+iAkxERE5pwQIOgEe1EDIhDMZjLUSop782PQbsUH8kHbiaUxVL0vLabsNaQ4KSjH+5b+pExdPnlV6WuERy8qIIiRDEMQwdikATeO3WEjsaMQEMuvqTg/B/zIAEOLo88fHIgKVAu3neIll9uRAWd5gcKlFATm7gF/VupqvqKWoHSX7E+A89FYz4Eq31OpcFSjgPEdH/AJ0DA9YkSIQIhinnBFPMTeOMJhMJ5wnn2GO6hNAoJOgAl7l3fqEibKxnwZVsS5/EeUYSihN1Sex2zQUu76YC7Ohqf3OKSlgwGo3CLEMWIeYMB5wHcDN/Ob4TCefa7BVLGY+4VVFOTvNk0d9f/BueKABuAAA4D2d9CXUvU/J4UfDXFOTo0w1yOgcaAPK3VlDLEBgg5nsU+qRzjEKCxltyIGcuAqD8yeO4CO5xL5+blwqJMDhBhaAnN34vB7TaWBGKTOnipKHNDlvyZJReloDp/OsqdHAKEGBWijmIAdxigzLCCB2ZSN8dlVCztul16IC/uJL73v8AoicESbJwRpAueD2lt1VCF7XVEl+2H5UREvxLu+5387Smm2khwxR5ReLk8jgyq8EAOAYjo4JRwYq74FmWERmVeLuoj3oN6oATL7wgLsS5Xkkam23/AKPLHpuoOfyEEOso2vcniyjFUXpvqeD2WN2jVhQUTxY9t2NJLl3f+1BKMCiAO5Dv/bERPJ9AFAAA6CNSCjCYZEFr1OgIfinURKHTfkcnRWiixd4cMv1BJgudPNuEN7oAXIXQt/7IiXu/BH+x+xhvfkS0Jd+Khyfz+5hodwQ7lRonA7vqZiakREpRAC5BfUgSmnKnQCFF/wAEEAgj6g8JdgUuBKAI8IvodSHdNHBIBAmB2ol+6q/xYpBG8EEH2G09oigGirxZRhr8W7vyTm7ylKkDhE0XN7zfUmCoTup3QIMdGQh05owPUA/YiVBLUDoQVcAid0NBMS6VJzQKgPUnQCPez9ASFUEgAQWupzr0ZSSQw0ModLgHq0AdYKoQihmcgBQSToBON7u5BKgkINADEqAEFU7obiJbSltIR0DqD+YB0Mvwr0b7aiXT+5JsraXKi6Ag8QQQfW2lihRR/vX4JMJRbi7nLlynN3mRAgQIERAAiymoKjasSf6Tup3U7qPSrIwIBlDlS9T/AFKH7iO6U9ACdCToNTMYbntCP1RYqsJlMwbul/8AjVBKHW1A46HUGYn4SftvwY6LKKAqTuucWqd1HqBqcaAEfkYiL9w+hB4EETaODehxanhvNj4vv6TQ/iJB6j2rUHL8lUsdABL77cbeXT33CIkw1KUIE6F287mPXzlVYCBYK53fOd2IawQQRHoboVIII1BgD+/yUAZfuT9TL0D1M7FAV4o0BpKe+rDoR9xCaQrEZzoCAJgkAqdw/wBH1QRMwcuoJB4Mv+hE7p3td34kn8gIlQUTuxFrE7sRqwUYagiU1ZZbSltTpzR0MItwWK/26nlDpbUtqEFHUepti/uKPxZsSjPeboVLb4UB3wIACAIFmQTIJ3cNSneCIiKu8ATafhInnft2QfGSGpTwKxKlEyCZeYAgQTKNxhTerDUSuoCVLNt0cr5sK/nT6m3HL4sJ5EmyUFOBTVwXhXnMu8mcAWWKu8GZZkmWZYFmOfw0hUjNNxE2R4zp50mSBTMpgWBZlIBJhyghSRFUCKsxNQuotq86TZLmnGpo5KeptEm7HXfiBJhECUIuip2BY9wS50J0lNqssUAjtCwLMcCb0TyJHpI9yPUwmA/ek0eBQYFgWBRCAAY9qqDDepKIG4lwOwKBHrWwMr6EHQgjcZ4OP/Dt+zxeKg6gdu0f32/8SekcZ8y89J4z5l56TxnzLw4zEu5c3OWgx2L+O89I4z5l56TxnzLz0njPmXnpPGfMvPSOK+K8N9trlnd3nf3ed5393naJbchDK7jRp6TxfzLz0ljPmXnpPGfMvPSeM+ZeekcZ8y8OOxXzLwYzE/HeekcZ8y89J4z5l56RxnzLyly+LV3991Y9SwJifsL0HbtH9+v/ABPZCDkfbUeKn8aRP2F6Ds//xAAoEQEAAwACAQUAAgICAwAAAAABAAIRITEDECAwQVESYUBxMlCBkaH/2gAIAQIBAT8A+I2AwFmP5MZj3kyYTM9DZn+CVWFQ5ZodEXOiawWFkm72TCfxZWs/iEU+U9A2VrAwmb3MyZAmTJkz0yOh6HyhsqTo+RNiZD5AlTOfQfQfUfcMHIm8x+SpD/AT4wlT02b8GcaTT7cgmaOzI+mTPiIEzIMyA/kKv5Ciwr+z+IG7GwcBN+3qXuUEHWNrWVWeG+ALz9StsMTSYJxMmxh8NYMLEEYWJ/KpP5kb7GzF/WPloaDrG93QcGFVds8xrER2rzKXTC7x+zhNHj1z4Mj5K14GUtu/1NDuGHG9zQ6Zods/nUOyN6HbG4dGx8tnSsbXt2wovNoAcBMmRImSl70cHiU8o4JjBOhGXs1NGUvVce4fp17vM4IPP3G+Cjqzw7dR+iea6ICnEpe73Z4/uF7va/8AuFrJysBe1la72ytTrIAHUJrMM37mRiRiaORMOZ4VL5vDPMoVx7ZTy689zxX1yz317D7nQsvdWyvcBVZ4ULp+k8qt5TjSVlSVJWEIPrkTNjEjEzQnicuf7nldA/OYD0cMpdEV50jzUf09SHT/AGMuJew/sK/ZPEZctPNzd/MlWVJSErD3Poxn7PEbc/3PM7fvQjT7Ic3Kn7EQqPYHqenloi3Dh7lLmYyoCIy70jrgMpKSkrCEPcvcWMXsniQdXqIWVXuKVMHWeEb31ODmdce0TETRl/D2jx+PcfDc0Bj4r0NRyUVJVlYSrKsJs302b6LGLgyniveih1DxX6Rni8K83QP/ALMEAMCapD3H+5/zE/TiA0ujxjByHUIdQhN9Ni8TYxZ+r1HVA+2f8AExeX134Rnloj/MOHuUSxr9SvfHUIQYex9GJFweeJ4qN76nB8mzI4iJoxpel0ThlEeSBAhD2PpkUCA3QDtmAAf+X9fnSt6I9/TGl/EonH7+yiJw8yo9dQEIP9euTNmJ0RQFWA3QBRhQob2vbBdfnCKIib/f2S/ivRU5IXwxMYIgjCv2OzJkTO5oHKRsGhzKeK93XQg0pTg1/fuY5GBnxkDZUgZDjqJn1oy5S+pgxpeitXSBenQ5Bv8AYwXoGY3MBNlKX7spKFA1RZQA6wnXoh2T9+MgZ7AM/Zv9TdMdimKm/wC4orwZBB6JRM0Ah1AhNh658ISpnrs2HPU+oG8EupwvE5YcymvB19wMlT2j8RxBm+w9BAcjUaqwReYgG/coGKdzJWbN9T4z3C5H9IuAbkPQcE30F/wD3jwzy84T9mcSvCnof4BAme0e471+EzmBjKaOQ9oQMI/Ee/hMYlV1n8KHRMrADo59pBm/9J//xAAlEQEAAwACAQUAAwEBAQAAAAABAAIRITEQAyAwQVESQGGRBEL/2gAIAQMBAT8A+E1mHjQ+4WH7mkEeNhnjYTD+koRs9E5e2FR+5h+zKzD9hpCyQsPTG0/kvErua/0G30eAyb46mzfIZ4p8/wBRd8nxVUYInzLvEPjyZM4lHIfIuHwHuJmQlHRPkYHsyBM8aTYQHHDYjz/krY68BAyHx4nb4EJpOD7I2Dtjc/Y3Dp2fzXiowovbCuQG2KYQAACXrjocRoPNe5WycJBEgZDr4nqYsaPOMa3+mNL/ALGl/tYUXtYel+sKUOe5UDgIUX/CFQ5ecmgYdQdgmY9RDFP+TjkTmFc5ICQ+AB7hRZYzDqFeVOZjy5zCr+Qqv1ClnohSz9QovcKhysClY2DipNXthCEGNBHTmNLGo7ETsSUorGqfUxHH3FFyz1Cmn4S9AoJKAipsaHOBGh+EwPqKHARUjZir2+SEIQlchEGih1KAqMtQBQl6YKewlPx/ZQyoQQMJc2m/k9MysfuMYsfcQhKysrLm0ZQzWbpEEePqJyn4+SVed/2UT+A/5NyX5ElOK5GMYxj7TwSsIS/FGBw/6wtHAVn/AN2T99g4ZKImPcvROTmK9JKCD+bssRjGPjPJAgQIQhL1UQgoADKFnFMIpQQeUnevtqo6OMpcALQaJqkL0XB5liMYkfYECBCBCEr3kUogvcWhzpFAQHY3VVe50/BRy47B2ojGJGZ7AgQgQIQhgK9RdV3Q6hCZ8JKuiLySxi/k/Y+M8hAhCEICuEUoYds73fkJRRElLlzvmNUUY+8hCVN4IpUVjdVf+Q+UlFHR4+5VLmjzLVa7s0688TYJBg73AVwNiAKuMvdVDqHEPm6JS6cjx+Sl63MY0HmrLFq7pF/SDNgwF6GFF5s5G9aCHc1VVw/PqCfPrFhxB3keZT+dOHklLl+Exg0d1IFU2rsSgawKA6nEb0BDGXbu5wRW3K7BczwOcQd+TYedDolV7SCGocsKL+8/k9GgAKq97L+iXohw/wCS9Gl0V46/JmszDvfGeauQfi33VdMZwE9GlGmgL9wA6i71PVpRoqG/UU3CJhA9mQh8WTJnjJXiIso3L4Gj2RL7p1Kl9162XVuUxA6mOzZkyZMmeD5jwOcT0gbqm4QdDJrPXOmDM94f0Psn/m6s/wCpBwIPb/k9c2g+D3nxnu9DCi/ayt+O5W5i7PWy1Lfpkwh7j5Az2nGn7KNqVSjhD1bhmw9a/wCy972qi6TYf3T5P//Z"}})])]):t("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{content:e.$i18nt(i.transkey,i.name),placement:"bottom","open-delay":150}},[t("span",{staticClass:"user-dropdown-menu",on:{click:function(a){return e.hand(i.key)}}},[i.key==="universalImport"?t("i",{staticClass:"gd-icons gd-icon-mulu"}):i.key==="information"?t("el-badge",{staticClass:"item",attrs:{slot:"reference",hidden:e.unreadCount=="",value:e.unreadCount>99?"99+":e.unreadCount},slot:"reference"},[t("i",{staticClass:"gd-icons gd-icon-a-huabanbeifen35"})]):i.key==="advancedFind"?t("i",{staticClass:"gd-icons el-icon-search"}):i.key==="theme"?t("i",{staticClass:"gd-icons gd-icon-xitongshezhi"}):i.key==="fullScreen"?t("i",{staticClass:"gd-icons",class:e.isFullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda"}):i.key==="application"?t("i",{staticClass:"gd-icons gd-icon-yemian1"}):e._e()],1)])]:e._e()]}),t("SettingDrawer",{ref:"settingDrawer"}),t("XlsxImport",{ref:"xlsxImport",attrs:{typeImport:2}}),t("InformationMsg",{ref:"informationMsg"}),t("Transfer",{ref:"transfer"})],2)},Ae=[],ye=r.normalizeComponent(ge,ve,Ae,!1,null,"5a5c3fff",null,null);const _e=ye.exports;exports.GDpackage=f;exports.UserMenus=_e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const p=require("./utils.util.js.50d1ec9c.js"),h=require("./components.chartbi.e4680eaa.js");const f={name:"GdTableUmy",props:Object.assign({},{record:{type:Object,default:()=>({})},dataSource:{type:Function,required:!0},size:{type:String,default:"small"},rowKey:{type:[String,Function],default:"id"},amount:{type:Function},load:{type:Function},tableTree:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},border:{type:Boolean,default:!1},columns:{type:Array,default:()=>[]},cellStyle:{type:Function},cellClassName:{type:Function},rowClassName:{type:Function},defaultExpandedKeys:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},selectedKeep:{type:Boolean,default:!1},height:{type:Number,default:0},maxHeight:{type:Number,default:0},indent:{type:Number,default:16},pageSize:{type:Number,default:10},pageSizes:{type:Array,default:()=>[10,20,30,40,50,100,200,500]},tableExpand:{type:Array,default:()=>[]},defaultExpandAll:{type:Boolean,default:!1},method:{type:Boolean,default:!1},columnKey:{type:String,default:""},showSummary:{type:Boolean,default:!1},headerCellStyle:{type:[Object,Function],default:()=>({})},showPagination:{type:Boolean,default:!0},initialLoading:{type:Boolean,default:!0},filtering:{type:Boolean,default:!1},disabledRowId:{type:Array,default:()=>[]},disabledRefresh:{type:Boolean,default:!1},stripe:{type:Boolean,default:!1}}),computed:{fadeColord(){return this.fadeColor(this.primaryColor,.3)},getColumns(){return this.columnsSetting.filter(t=>t.checked===void 0||t.checked)},selectionType(){const t=this.columns.filter(e=>e.type==="selection"||e.type==="selection-radio")[0];return t?t.type==="selection"?"checkbox":"radio":null},hasClear(){let t=[];for(let e in this.sorter)t.push(e);return t.length},dropdownActive(){return`background-color: ${this.fadeColor(this.primaryColor,.1)};color:${this.primaryColor}`},totalPages(){return Math.ceil(this.total/this.pageSized)},...h.mapGetters(["primaryColor","language"])},data(){return{tableData:[],loading:!1,customSize:this.size,keyValue:null,currentRow:"",total:0,sorter:{},state:!1,currentPage:1,pageSized:this.pageSize,columnsSetting:[],visibleFilter:!1}},watch:{tableExpand:{handler(){const t=this.$refs.refTable,e=this.getChildRens(this.tableData);p.treeToArray(JSON.parse(JSON.stringify(this.tableData)),"children").map(a=>{e.includes(a.id)?t.toggleRowExpansion(a,!1):t.toggleRowExpansion(a,!0)})},deep:!0},tableData:{handler(){this.keyValue=void 0,this.numbers=0},deep:!0},language:{handler(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},deep:!0},size:{handler(t){this.$nextTick(()=>{setTimeout(()=>{this.customSize=t,this.$refs.refTable.doLayout()},0)})},deep:!0}},methods:{selecTables({row:t}){return!this.disabledRowId.includes(t.id)},changeFilter(t){this.visibleFilter=t},closeFilter(){this.$refs.filterdropdown.hide()},cellClassNamed({row:t,rowIndex:e}){return this.cellClassName&&typeof this.cellClassName=="function"?this.cellClassName({row:t,rowIndex:e}):""},rowClassNamed({row:t,rowIndex:e}){return this.rowClassName&&typeof this.rowClassName=="function"?this.rowClassName({row:t,rowIndex:e}):""},columnChange(t){let e=t.filter(a=>a.fixed),l=[...t];return l.forEach((a,s)=>{l[s].fixed=!1,s<e.length&&(l[s].fixed=!0)}),this.$emit("columnChange",l),this.columnsSetting=l,new Promise((a,s)=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout(),a()},0)})})},summaries(t){return this.amount(t)},spanMethod({row:t,column:e}){if(e.property===this.columnKey){let l=0,a=0;if(this.keyValue!==t[this.columnKey]){for(;l<this.tableData.length;)this.tableData[l][this.columnKey]===t[this.columnKey]&&a++,l++;this.keyValue=t[this.columnKey]}else a=0;return{rowspan:a,colspan:1}}},handlerClick(t){this.$emit("handlerClick",t)},handleButton(t,e,l){this.$emit("handleButton",{methods:t,row:e})},handleFilterChange(t){this.$emit("handleFilterChange",t)},handleSelectionChange(t){if(this.loading)return;const e=this.rowKey||"index";let l=[];t.forEach((a,s)=>{l.push(a[e])}),this.$emit("onChange",l,t)},changRadio(t){if(this.loading)return;const e=this.rowKey||"index";let l={};this.tableData.forEach(a=>{if(a[e]===t&&(l={...a}),a.children&&a.children.length>0){const s=a.children.filter(i=>i[e]===t)[0];l=s?{...s}:l}}),this.$emit("onChange",[l[e]],[l])},handleSelect(t,e){this.$emit("handleSelect",t,e)},selectAll(t){this.$emit("selectAll",t)},rowClick(t,e,l){this.$emit("rowClick",t,e)},handleSizeChange(t){this.pageSized=t,this.currentPage>this.totalPages&&(this.currentPage=this.totalPages),this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},handleCurrentChange(t){this.currentPage=t,this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},expandChange(t,e){this.$emit("expandChange",{val:t,expanded:e})},getChildRens(t){const e=[];return t.map(l=>{if(this.tableExpand.includes(l.id)||e.push(l.id),Object.prototype.hasOwnProperty.call(l,"children")){const a=this.getChildRens(l.children);e.push(...a)}}),e},handleCurrentRowChange(t){this.$emit("handleCurrentRowChange",t)},handleHeaderDragEnd(){this.$nextTick(()=>{this.$refs.refTable.doLayout()})},changColumnHeight(t){this.customSize=t,this.$nextTick(()=>{this.$refs.refTable.doLayout()})},sortChange({prop:t,order:e}){this.sorter=e?{sortField:t,sortOrder:e.replace("ending","")}:{},this.loadData()},loadData(){this.loading=!0;const t=this.dataSource(Object.assign({...this.sorter},{pageNo:this.currentPage,pageSize:this.pageSized}));(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"?t.then(e=>{let l=e&&e.rows?e.rows:[];this.tableData=[...l],this.currentPage=e.pageNo,this.total=e.totalRows,this.toggleRowSelection()}):this.loading=!1},setLoadData(t){this.tableData=[...t],this.total=t.length,this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},doLayout(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},getLoadData(){return new Promise((t,e)=>{t(this.tableData)})},async toggleRowSelection(){if(!this.selectionType){this.loading=!1;return}this.selectionType==="radio"&&(this.currentRow=this.selectedRowKeys[0]?this.selectedRowKeys[0]:""),this.$nextTick(async()=>{setTimeout(async()=>{const t=this.rowKey||"index";let e=[];const l=(n,o)=>(n=n.filter((r,u)=>(this.selectedRowKeys.includes(r[t])&&e.push(r),r.children&&r.children.length>0&&l(r.children),!0)),n);await l(this.tableData);const a=this.selectedRowKeys.filter(n=>!this.tableData.filter(r=>n===r[t])[0]);let s=[];for(let n=0;n<a.length;n++){let o=new Map;o.set(t,a[n]),s.push(Object.fromEntries(o))}const i=e.concat(s);let d=[];for(let n=0;n<i.length;n++){let o=new Promise((r,u)=>{this.$refs.refTable.toggleRowSelection([{row:i[n],selected:!0}]),r(n)});d.push(o)}Promise.all(d).then(n=>{this.loading=!1})},10)})},refresh(t=!0){!this.selectedKeep&&t&&this.$emit("onChange",[],[]),t&&(this.currentPage=1),this.loadData()},clearAll(){if(this.state||this.loading)return;let t=[];for(let e in this.sorter)t.push(e);t.length!==0&&(this.state=!0,this.sorter={},this.$refs.refTable.clearSort(),this.$refs.refTable.clearFilter(),setTimeout(()=>{this.refresh(),this.state=!1},100))},fadeColor(t,e){let l=parseInt(t.substring(1,3),16),a=parseInt(t.substring(3,5),16),s=parseInt(t.substring(5,7),16);return`rgba(${l},${a},${s},${e})`}},created(){this.columnsSetting=this.columns,this.initialLoading&&this.loadData()}};var g=function(){var e=this,l=e._self._c;return l("div",{staticClass:"gd-tables",style:{"--theme":e.primaryColor,"--fadecolor":e.fadeColord}},[l("div",{staticClass:"tables-tool"},[l("div",{staticClass:"tables-tool-l"},[e._t("operator")],2),l("div",{staticClass:"tables-tool-r"},[e.hasClear?l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.reset","\u91CD\u7F6E"),placement:"bottom"}},[l("i",{staticClass:"el-icon-brush",on:{click:e.clearAll}})]):e._e(),e.filtering?l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.screen","\u7B5B\u9009"),placement:"bottom"}},[l("el-dropdown",{ref:"filterdropdown",attrs:{trigger:"click",placement:"bottom"},on:{"visible-change":e.changeFilter}},[l("span",{staticClass:"el-dropdown-link"},[l("i",{staticClass:"gd-icons gd-icon-a-guangqi_guolv11x"})]),l("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e._t("filtering",null,{columns:e.columns,height:e.height,colse:e.closeFilter,visible:e.visibleFilter})],2)],1)],1):e._e(),e.disabledRefresh?e._e():l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.refresh","\u5237\u65B0"),placement:"bottom"}},[l("i",{staticClass:"el-icon-refresh",on:{click:function(a){return e.refresh(!1)}}})]),l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.density","\u5BC6\u5EA6"),placement:"bottom"}},[l("el-dropdown",{attrs:{trigger:"click",placement:"bottom"},on:{command:e.changColumnHeight}},[l("span",{staticClass:"el-dropdown-link"},[l("i",{staticClass:"el-icon-s-operation"})]),l("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[l("el-dropdown-item",{style:e.customSize==="medium"?e.dropdownActive:"",attrs:{command:"medium"}},[e._v(" "+e._s(e.$i18nt("gd.basics.default","\u9ED8\u8BA4"))+" ")]),l("el-dropdown-item",{style:e.customSize==="small"?e.dropdownActive:"",attrs:{command:"small"}},[e._v(" "+e._s(e.$i18nt("gd.basics.secondary","\u4E2D\u7B49"))+" ")]),l("el-dropdown-item",{style:e.customSize==="mini"?e.dropdownActive:"",attrs:{command:"mini"}},[e._v(" "+e._s(e.$i18nt("gd.basics.compact","\u7D27\u51D1"))+" ")])],1)],1)],1),l("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.columnSettings","\u5217\u8BBE\u7F6E"),placement:"bottom"}},[l("el-dropdown",{attrs:{trigger:"click",placement:"bottom"}},[l("span",{staticClass:"el-dropdown-link"},[l("i",{staticClass:"el-icon-setting"})]),l("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[l("gd-column-settings",{attrs:{columns:e.columns,height:e.height},on:{columnChange:e.columnChange}})],1)],1)],1)],1)]),l("ux-grid",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"refTable",staticClass:"table",staticStyle:{width:"100%"},attrs:{stripe:e.stripe,"row-key":"","expand-row-keys":e.tableExpand,"tree-props":e.tableTree?{children:"children",hasChildren:"isLeaf"}:void 0,"tree-config":e.tableTree?{children:"children",hasChildren:"isLeaf"}:void 0,tooltip:!0,border:e.border,size:e.customSize,indent:e.indent,lazy:e.lazy,"show-summary":e.showSummary,"summary-method":e.summaries,"default-expand-all":e.defaultExpandAll,"virtual-scroll":!0,"element-loading-background":"rgba(255, 255, 255, 0.8)","element-loading-spinner":"el-icon-loading",data:e.tableData,"cell-style":e.cellStyle,height:e.height||null,"max-height":e.maxHeight||null,"default-sort":{prop:"id",order:null},load:e.lazy?e.load:null,"span-method":e.method?e.spanMethod:null,"header-cell-style":e.headerCellStyle,"cell-class-name":e.cellClassNamed,"row-class-name":e.rowClassNamed,"checkbox-config":{checkMethod:e.selecTables}},on:{"sort-change":e.sortChange,"filter-change":e.handleFilterChange,"selection-change":e.handleSelectionChange,"row-click":e.rowClick,"expand-change":e.expandChange,"select-all":e.selectAll,select:e.handleSelect,"current-change":e.handleCurrentRowChange,"header-dragend":e.handleHeaderDragEnd}},[e._l(e.getColumns,function(a,s){return[a.type=="selection"?[l("ux-table-column",{attrs:{"tree-node":"",type:"checkbox",width:a.width,align:a.align?a.align:"center"}})]:a.type=="selection-radio"?[l("ux-table-column",{key:a.key?a.key:s,attrs:{"tree-node":"",width:a.width,label:"",fixed:a.fixed?a.fixed:"left",align:a.align?a.align:"center"},scopedSlots:e._u([{key:"default",fn:function(i){return[l("el-radio",{attrs:{label:i.row[e.rowKey],size:"small",disabled:e.disabledRowId.includes(i.row[e.rowKey])},on:{input:e.changRadio},model:{value:e.currentRow,callback:function(d){e.currentRow=d},expression:"currentRow"}},[e._v(" "+e._s("")+" ")])]}}],null,!0)})]:a.hidden!=!1&&a.type!=="slot"&&a.type!="expand"&&a.type!="selection-radio"?[l("ux-table-column",{attrs:{width:a.width,field:a.prop,label:e.$i18nt(a.transKey,a.label),fixed:a.fixed?a.fixed:"",title:e.$i18nt(a.transKey,a.label)}})]:a.type==="slot"?[l("ux-table-column",{key:a.key?a.key:s,attrs:{width:a.width,"show-header-overflow":typeof a.showTooltip>"u"?!0:a.showTooltip,"min-width":a.minWidth,field:a.prop,title:e.$i18nt(a.transKey,a.label),fixed:a.fixed?a.fixed:"",sortable:a.sortable?a.sortable:!1,align:a.align?a.align:"center","render-header":a.renderHeader,filters:a.filters,"filter-method":a.filterTag,"filter-placement":"bottom-end","reserve-selection":a.reserveSelection,type:a.colType},scopedSlots:e._u([{key:"default",fn:function(i){return[e._t(a.slotType,null,{row:i.row,index:i.$index,column:i.column})]}}],null,!0)})]:e._e()]}),l("template",{slot:"empty"},[l("div",{staticClass:"gd-table-empty"},[l("i",{staticClass:"el-icon-receiving"}),l("div",{staticClass:"empty-title"},[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])])],2),l("div",{staticClass:"gd-paging"},[e.showPagination?l("el-pagination",{attrs:{background:"","page-sizes":e.pageSizes,"page-size":e.pageSized,"current-page":e.currentPage,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"update:currentPage":function(a){e.currentPage=a},"update:current-page":function(a){e.currentPage=a},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)],1)},m=[],y=h.normalizeComponent(f,g,m,!1,null,"5815332a",null,null);const c=y.exports;c.install=function(t){t.component(c.name,c)};exports.GDpackage=c;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const g=require("./utils.util.js.50d1ec9c.js"),f=require("./components.chartbi.e4680eaa.js");const m={name:"GdTableVirtual",props:Object.assign({},{record:{type:Object,default:()=>({})},dataSource:{type:Function,required:!0},size:{type:String,default:"small"},rowKey:{type:[String,Function],default:"id"},amount:{type:Function},load:{type:Function},tableTree:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},border:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},cellStyle:{type:Function},cellClassName:{type:Function},rowClassName:{type:Function},defaultExpandedKeys:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},selectedKeep:{type:Boolean,default:!1},height:{type:Number,default:0},maxHeight:{type:Number,default:0},indent:{type:Number,default:16},pageSize:{type:Number,default:10},pageSizes:{type:Array,default:()=>[10,20,30,40,50,100,200,500]},tableExpand:{type:Array,default:()=>[]},defaultExpandAll:{type:Boolean,default:!1},method:{type:Boolean,default:!1},columnKey:{type:String,default:""},showSummary:{type:Boolean,default:!1},headerCellStyle:{type:[Object,Function],default:()=>({})},showPagination:{type:Boolean,default:!0},initialLoading:{type:Boolean,default:!0},filtering:{type:Boolean,default:!1},isGather:{type:Boolean,default:!1},disabledRowId:{type:Array,default:()=>[]},disabledRefresh:{type:Boolean,default:!1},disabledColumnSettings:{type:Boolean,default:!1},stripe:{type:Boolean,default:!0},rowHeight:{type:Number,default:25}}),computed:{getRowHeight(){let t=0;return this.rowHeight+t},fadeColord(){return this.fadeColor(this.primaryColor,.3)},getColumns(){let t=0,e=this.columnsSetting.filter(d=>{const n=d.checked===void 0||d.checked,i=this.columns.filter(c=>c.prop===d.prop)[0],r=i?i.owidth?i.owidth:i.width?i.width:i.minWidth?i.minWidth:"150":"150";return i&&i.width&&!d.width&&(d.width=i.width),i&&i.minWidth&&!d.minWidth&&(d.minWidth=i.minWidth),n&&(t+=Number(r)),n});if(this.wid===0||e.filter(d=>d.width||d.minWidth).length!==e.length)return e;const s=t-this.wid,a=e[e.length-1],o=a?a.width?Number(a.width):a.minWidth?Number(a.minWidth):0:0;if(s<0){const d=e.length===0?0:Math.floor(Math.abs(s)/e.length);e.filter(n=>(n.width&&!["selection","selection-radio"].includes(n.type)&&(n.width=d+Number(n.owidth)),a.prop===n.prop&&delete n.width,n))}else s<o&&(a.minWidth||a.width)&&(a.width=o);return e},selectionType(){const t=this.columns.filter(e=>e.type==="selection"||e.type==="selection-radio")[0];return t?t.type==="selection"?"checkbox":"radio":null},hasClear(){let t=[];for(let e in this.sorter)t.push(e);return t.length},dropdownActive(){return`background-color: ${this.fadeColor(this.primaryColor,.1)};color:${this.primaryColor}`},totalPages(){return Math.ceil(this.total/this.pageSized)},...f.mapGetters(["primaryColor","language","screenWidth","multiTab"])},data(){return{tableData:[],loading:!1,customSize:this.size,keyValue:null,currentRow:"",total:0,sorter:{},state:!1,currentPage:1,pageSized:this.pageSize,columnsSetting:[],visibleFilter:!1,frozenColumn:0,wid:0}},watch:{screenWidth(){this.$nextTick(()=>{this.getWid(),setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},tableExpand:{handler(){const t=this.$refs.refTable,e=this.getChildRens(this.tableData);g.treeToArray(JSON.parse(JSON.stringify(this.tableData)),"children").map(s=>{e.includes(s.id)?t.toggleRowExpansion(s,!1):t.toggleRowExpansion(s,!0)})},deep:!0},tableData:{handler(){this.keyValue=void 0,this.numbers=0},deep:!0},language:{handler(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},deep:!0},size:{handler(t){this.$nextTick(()=>{setTimeout(()=>{this.customSize=t,this.$refs.refTable.doLayout(),this.getWid()},0)})},deep:!0},"$route.path"(t,e){t!==e&&this.multiTab&&this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable&&this.$refs.refTable.doLayout()},0)})}},methods:{doLayout(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},getWid(){let t=this.$refs.reftables;this.wid=t?t.clientWidth:this.wid},setTableData(t,e=!1){this.tableData=t,this.loading=e},selecTables(t,e){return!this.disabledRowId.includes(t.id)},changeFilter(t){this.visibleFilter=t},closeFilter(){this.$refs.filterdropdown.doClose()},cellClassNamed({row:t,rowIndex:e}){return this.cellClassName&&typeof this.cellClassName=="function"?this.cellClassName({row:t,rowIndex:e}):""},rowClassNamed({row:t,rowIndex:e}){return this.rowClassName&&typeof this.rowClassName=="function"?this.rowClassName({row:t,rowIndex:e}):""},columnChange(t){this.columns.filter(a=>a.fixed);let e=[...t],l=1;return e.forEach((a,o)=>{e[o].fixed=!1,l<this.frozenColumn&&a.checked&&(e[o].fixed=!0,l++)}),e.filter(a=>["selection","selection-radio"].includes(a.type)?!1:a.checked).length===0&&(e=JSON.parse(JSON.stringify(e))),this.$emit("columnChange",e),this.columnsSetting=e,new Promise((a,o)=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout(),a()},0)})})},summaries(t){return this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable&&this.$refs.refTable.doLayout()},10)}),this.amount(t)},spanMethod({row:t,column:e}){if(e.property===this.columnKey){let l=0,s=0;if(this.keyValue!==t[this.columnKey]){for(;l<this.tableData.length;)this.tableData[l][this.columnKey]===t[this.columnKey]&&s++,l++;this.keyValue=t[this.columnKey]}else s=0;return{rowspan:s,colspan:1}}},handlerClick(t){this.$emit("handlerClick",t)},handleButton(t,e,l){this.$emit("handleButton",{methods:t,row:e})},handleFilterChange(t){this.$emit("handleFilterChange",t)},handleSelectionChange(t){if(!this.loading){const e=this.rowKey||"index";let l=[];t.forEach((s,a)=>{l.push(s[e])}),this.$emit("onChange",l,t);return}this.selectedKeep&&this.$emit("onChange",this.selectedRowKeys,[])},changRadio(t){if(this.loading)return;const e=this.rowKey||"index",l=this.tableData.filter(s=>s[e]===t)[0];this.$emit("onChange",[l[e]],[l])},handleSelect(t,e){this.$emit("handleSelect",t,e)},selectAll(t){this.$emit("selectAll",t)},rowClick(t,e,l){this.$emit("rowClick",t,e)},handleSizeChange(t){this.pageSized=t,this.currentPage>this.totalPages&&(this.currentPage=this.totalPages),this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},handleCurrentChange(t){this.currentPage=t,this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},expandChange(t,e){this.$emit("expandChange",{val:t,expanded:e})},getChildRens(t){const e=[];return t.map(l=>{if(this.tableExpand.includes(l.id)||e.push(l.id),Object.prototype.hasOwnProperty.call(l,"children")){const s=this.getChildRens(l.children);e.push(...s)}}),e},handleCurrentRowChange(t){this.$emit("handleCurrentRowChange",t)},handleHeaderDragEnd(){this.$nextTick(()=>{this.$refs.refTable.doLayout()})},changColumnHeight(t){this.customSize=t,this.$nextTick(()=>{this.$refs.refTable.doLayout()})},sortChange({prop:t,order:e}){this.sorter=e?{sortField:t,sortOrder:e.replace("ending","")}:{},this.loadData()},loadData(){if(this.loading)return;this.loading=!0;const t=this.dataSource(Object.assign({...this.sorter},{pageNo:this.currentPage,pageSize:this.pageSized}));(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"?t.then(e=>{let l=e&&e.rows?e.rows:[];this.tableData=l,this.currentPage=e.pageno,this.total=e.totalrows,this.getWid(),this.toggleRowSelection()}):this.loading=!1},loadColumns(){return new Promise(t=>{this.$nextTick(()=>{this.columnsSetting=[...this.columns],this.$emit("columnChange",this.columnsSetting);const e=this.columns.filter(l=>l.fixed);this.frozenColumn=e.length,setTimeout(()=>{this.$refs.columnSettings.init(),this.$refs.refTable.doLayout(),t(!0)},0)})})},setLoadData(t){this.tableData=[...t],this.total=t.length},getLoadData(){return new Promise((t,e)=>{t(this.tableData)})},toggleRowSelectioClear(t){if(!this.selectionType){this.loading=!1;return}this.selectionType==="radio"&&(this.currentRow=t[0]?t[0]:""),this.$nextTick(async()=>{setTimeout(async()=>{const e=this.rowKey||"index";let l=[];const s=(i,r)=>(i=i.filter((c,h)=>(t.includes(c[e])&&l.push(c),c.children&&c.children.length>0&&s(c.children),!0)),i);await s(this.tableData);const a=t.filter(i=>{let r=null;return this.tableData.filter(c=>{if(i===c[e]&&(r=c),c.children&&c.children.length>0){const h=c.children.filter(p=>i===p[e])[0];r=h||r}return!0})[0],!r});let o=[];for(let i=0;i<a.length;i++){let r=new Map;r.set(e,a[i]),o.push(Object.fromEntries(r))}const d=l.concat(o);let n=[];for(let i=0;i<d.length;i++){let r=new Promise((c,h)=>{this.$refs.refTable.toggleRowSelection(d[i],!1),c(i)});n.push(r)}Promise.all(n).then(i=>{this.loading=!1})},10)})},async toggleRowSelection(){if(!this.selectionType){this.loading=!1;return}this.selectionType==="radio"&&(this.currentRow=this.selectedRowKeys[0]?this.selectedRowKeys[0]:""),this.$nextTick(async()=>{setTimeout(async()=>{const t=this.rowKey||"index";let e=[];const l=(n,i)=>(n=n.filter((r,c)=>(this.selectedRowKeys.includes(r[t])&&e.push(r),r.children&&r.children.length>0&&l(r.children),!0)),n);await l(this.tableData);const s=this.selectedRowKeys.filter(n=>!this.tableData.filter(r=>n===r[t])[0]);let a=[];for(let n=0;n<s.length;n++){let i=new Map;i.set(t,s[n]),a.push(Object.fromEntries(i))}const o=e.concat(a);let d=[];for(let n=0;n<o.length;n++){let i=new Promise((r,c)=>{this.$refs.refTable.toggleRowSelection(o[n],!0),r(n)});d.push(i)}Promise.all(d).then(n=>{this.loading=!1})},10)})},refresh(t=!0){!this.selectedKeep&&t&&this.$emit("onChange",[],[]),t&&(this.currentPage=1),this.loadData()},clearAll(){if(this.state||this.loading)return;let t=[];for(let e in this.sorter)t.push(e);t.length!==0&&(this.state=!0,this.sorter={},this.$refs.refTable.clearSort(),this.$refs.refTable.clearFilter(),setTimeout(()=>{this.refresh(),this.state=!1},100))},fadeColor(t,e){let l=parseInt(t.substring(1,3),16),s=parseInt(t.substring(3,5),16),a=parseInt(t.substring(5,7),16);return`rgba(${l},${s},${a},${e})`}},created(){this.columnsSetting=[...this.columns];const t=this.columns.filter(e=>e.fixed);this.frozenColumn=t.length,this.initialLoading&&this.loadData()}};var y=function(){var e=this,l=e._self._c;return l("div",{ref:"reftables",staticClass:"gd-tables",style:{"--theme":e.primaryColor,"--fadecolor":e.fadeColord},attrs:{id:"reftables"}},[l("div",{staticClass:"tables-tool"},[l("div",{staticClass:"tables-tool-l"},[e._t("operator")],2),l("div",{staticClass:"tables-tool-r"},[e.hasClear?l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.reset","\u91CD\u7F6E"),placement:"bottom"}},[l("i",{staticClass:"el-icon-brush",on:{click:e.clearAll}})]):e._e(),e.filtering?l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.screen","\u7B5B\u9009"),placement:"bottom"}},[l("el-popover",{ref:"filterdropdown",attrs:{trigger:"click",placement:"bottom"},on:{show:function(s){return e.changeFilter(!0)},hide:function(s){return e.changeFilter(!1)}}},[l("span",{staticClass:"el-dropdown-link",attrs:{slot:"reference"},slot:"reference"},[l("i",{staticClass:"gd-icons gd-icon-a-guangqi_guolv11x"})]),l("div",[e._t("filtering",null,{columns:e.columns,height:e.height,colse:e.closeFilter,visible:e.visibleFilter})],2)])],1):e._e(),e.isGather?l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.chart","\u56FE\u8868"),placement:"bottom"}},[l("i",{staticClass:"gd-icons gd-icon-zhuzhuangtu",on:{click:function(s){return e.$emit("baseSeecharts")}}})]):e._e(),e.disabledRefresh?e._e():l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.refresh","\u5237\u65B0"),placement:"bottom"}},[l("i",{staticClass:"el-icon-refresh",on:{click:function(s){return e.refresh(!1)}}})]),l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.density","\u5BC6\u5EA6"),placement:"bottom"}},[l("el-dropdown",{attrs:{trigger:"click",placement:"bottom"},on:{command:e.changColumnHeight}},[l("span",{staticClass:"el-dropdown-link"},[l("i",{staticClass:"el-icon-s-operation"})]),l("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[l("el-dropdown-item",{style:e.customSize==="medium"?e.dropdownActive:"",attrs:{command:"medium"}},[e._v(" "+e._s(e.$i18nt("gd.basics.default","\u9ED8\u8BA4"))+" ")]),l("el-dropdown-item",{style:e.customSize==="small"?e.dropdownActive:"",attrs:{command:"small"}},[e._v(" "+e._s(e.$i18nt("gd.basics.secondary","\u4E2D\u7B49"))+" ")]),l("el-dropdown-item",{style:e.customSize==="mini"?e.dropdownActive:"",attrs:{command:"mini"}},[e._v(" "+e._s(e.$i18nt("gd.basics.compact","\u7D27\u51D1"))+" ")])],1)],1)],1),e.disabledColumnSettings?e._e():l("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.columnSettings","\u5217\u8BBE\u7F6E"),placement:"bottom"}},[l("el-dropdown",{attrs:{trigger:"click",placement:"bottom"}},[l("span",{staticClass:"el-dropdown-link"},[l("i",{staticClass:"el-icon-setting"})]),l("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[l("gd-column-settings",{ref:"columnSettings",attrs:{columns:e.columns,height:e.height},on:{columnChange:e.columnChange}})],1)],1)],1)],1)]),l("u-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"refTable",staticClass:"table",class:e.border?"":"table-border",staticStyle:{width:"100%"},attrs:{"row-height":e.getRowHeight,"use-virtual":"",stripe:e.stripe,"row-key":e.rowKey,"expand-row-keys":e.tableExpand,"tree-props":e.tableTree?{children:"children",hasChildren:"isLeaf"}:void 0,tooltip:!0,border:e.border,size:e.customSize,indent:e.indent,lazy:e.lazy,"show-summary":e.showSummary,"summary-method":e.summaries,"default-expand-all":e.defaultExpandAll,"virtual-scroll":!0,"element-loading-background":"rgba(255, 255, 255, 0.8)","element-loading-spinner":"el-icon-loading",data:e.tableData,"cell-style":e.cellStyle,height:e.height||null,"max-height":e.maxHeight||null,"default-sort":{prop:"id",order:null},load:e.lazy?e.load:null,"span-method":e.method?e.spanMethod:null,"header-cell-style":e.headerCellStyle,"cell-class-name":e.cellClassNamed,"row-class-name":e.rowClassNamed},on:{"sort-change":e.sortChange,"filter-change":e.handleFilterChange,"selection-change":e.handleSelectionChange,"row-click":e.rowClick,"expand-change":e.expandChange,"select-all":e.selectAll,select:e.handleSelect,"current-change":e.handleCurrentRowChange,"header-dragend":e.handleHeaderDragEnd}},[e._l(e.getColumns,function(s,a){return[s.type=="selection"?[l("u-table-column",{attrs:{type:"selection",width:s.width,fixed:s.fixed?s.fixed:!1,align:s.align?s.align:"center",selectable:e.selecTables}})]:s.type=="selection-radio"?[l("u-table-column",{key:s.key?s.key:a,attrs:{width:s.width,label:"",fixed:s.fixed?s.fixed:!1,align:s.align?s.align:"center"},scopedSlots:e._u([{key:"default",fn:function(o){return[l("el-radio",{attrs:{label:o.row[e.rowKey],size:"small"},on:{input:e.changRadio},model:{value:e.currentRow,callback:function(d){e.currentRow=d},expression:"currentRow"}},[e._v(" "+e._s("")+" ")])]}}],null,!0)})]:s.hidden!=!1&&s.type!=="slot"&&s.type!="expand"&&s.type!="selection-radio"?[l("u-table-column",{attrs:{width:s.width,prop:s.prop,label:e.$i18nt(s.transKey,s.label),fixed:s.fixed?s.fixed:!1,title:e.$i18nt(s.transKey,s.label)}})]:s.type=="expand"?[l("u-table-column",{key:s.key?s.key:a,attrs:{width:s.width,label:e.$i18nt(s.transKey,s.label),type:"expand"},scopedSlots:e._u([{key:"default",fn:function(o){return[e._t(s.slotType,null,{row:o.row,index:o.$index})]}}],null,!0)})]:s.type==="slot"?[l("u-table-column",{key:s.key?s.key:a,attrs:{width:s.width,"show-overflow-tooltip":typeof s.showTooltip>"u"?!0:s.showTooltip,"min-width":s.minWidth,prop:s.prop,label:e.$i18nt(s.transKey,s.label),fixed:s.fixed?s.fixed:!1,sortable:s.sortable?s.sortable:!1,align:s.align?s.align:"center","render-header":s.renderHeader,filters:s.filters,"filter-method":s.filterTag,"filter-placement":"bottom-end","reserve-selection":s.reserveSelection,type:s.colType},scopedSlots:e._u([{key:"default",fn:function(o){return[e._t(s.slotType,null,{row:o.row,index:o.$index,column:o.column})]}}],null,!0)})]:e._e()]}),l("template",{slot:"empty"},[l("div",{staticClass:"gd-table-empty"},[l("i",{staticClass:"el-icon-receiving"}),l("div",{staticClass:"empty-title"},[e._v(" "+e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A"))+" ")])])])],2),l("div",{staticClass:"gd-paging"},[e.showPagination?l("el-pagination",{attrs:{background:"","page-sizes":e.pageSizes,"page-size":e.pageSized,"current-page":e.currentPage,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"update:currentPage":function(s){e.currentPage=s},"update:current-page":function(s){e.currentPage=s},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)],1)},b=[],w=f.normalizeComponent(m,y,b,!1,null,"0b2ba49e",null,null);const u=w.exports;u.install=function(t){t.component(u.name,u)};exports.GDpackage=u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r=require("./components.chartbi.e4680eaa.js"),a=require("./utils.util.js.50d1ec9c.js"),l=require("./http.main.2f8a6936.js"),p=require("./http.loginmanage.326984c3.js"),f=require("./http.syscodegenerateconfigmanage.840f1136.js"),y=require("./form.build.51bd261e.js"),g=require("./http.codegeneratemanage.aecadd5d.js"),C=require("./system.notice.96c770a6.js"),b={props:{record:{type:Object,default:()=>({})},recordoperations:{type:Object,default:()=>({})},develop:{type:[Number,String],default:1},openMode:{type:[String,Number],default:1},height:{type:Number,default:100},foreign:{type:Object,default:()=>({})},disabledRowId:{type:Array,default:()=>[]},istable:{type:Boolean,default:!1}},data(){return{statu:!1,viewRecord:{},formList:[],tableData:{},sysViewList:[],personalViewList:[],sysViewButtons:[],selectedRowKeys:[],selectedRows:[],defaultViewId:0,excludeButtons:[],fieldData:[],tableDataSource:[],componentList:[],lineQuickView:t=>{const e="baseQuickView";return this[e]===void 0&&this.func===void 0?new Promise(i=>i(t)):this[e](t)}}},computed:{componentForm(){const t=this.$importViewFiles();let i=`../views/main/${this.options.table.tableName||this.options.table.tablename}/editForm.vue`;const s=t[i];return s?s.default:y.FormDesigner},viewList(){return this.sysViewList.concat(this.personalViewList)},formCode(){return this.options.form.id},options(){return this.record.options},...r.mapGetters(["tableLists"])},methods:{showLoading(){this.statu=!0,this.$refs.table.showLoading()},hideLoading(t=1500){this.$refs.table.hideLoading(t),setTimeout(()=>{this.statu=!1},t)},add(t){this.baseAdd()},edit(t){this.baseEdit()},del(t){this.baseDel()},deactivateData(){this.baseEnable(0)},enableData(){this.baseEnable()},assign(t){this.baseAssign(t)},batchUpdate(t){this.baseBatchUpdate()},teamSharing(t){this.baseTeamSharing(t)},statusChange(){this.baseStatusChange()},importData(){this.baseImportData()},exportData(t){this.baseExportData(t)},open(t){console.log(t),this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm?this.tableData.isvirtualtable===1?this.$refs.editForm.openDisplay(t):this.$refs.editForm.open(t):console.log("err:\u8868\u5355\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},0)})},refresh(t=!0){this.$refs.table?this.$refs.table.refresh(t):console.log("err:\u89C6\u56FE\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},init(){this.record.hasLoad&&this.record.hasLoad(this.record.key),Promise.all([this.baseGetTableView(),this.baseGetPersonalView(!0),this.baseGetLoadData()]).then(t=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.table&&(this.$refs.table.init({fieldData:this.fieldData,tableData:this.tableData,sysViewList:this.sysViewList,personalViewList:this.personalViewList,defaultViewId:this.defaultViewId}),this.$refs.table.baseCustomComponents(this.componentList));let e=this.formList.filter(i=>i.id===this.formCode)[0];e||(e=this.formList.filter(i=>i.type===1)[0]),this.$refs.editForm&&e&&this.$refs.editForm.setFormRecord(e),this.beaseLoadComplete()},0)})})},onChangeBtn(t){this.sysViewButtons=t},onChangeView(t){this.viewRecord=t},onChangeData(t){this.tableDataSource=[...t],this.$emit("changeData",t)},onChangeSelect(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onChangeSelect",t,e);const i="baseChangeSelect";this[i]&&this[i](t,e)},beaseLoadComplete(){const t="onLoadCompleted";this[t]===void 0&&this.func===void 0||this[t]&&this[t]()},baseGetTableView(){const t=this.tableLists.filter(e=>{const i=this.options.table.tableName||this.options.table.tablename;return e.tablename.toLowerCase()===i.toLowerCase()})[0];return t?l.baseTableData({tableId:t.id}).then(e=>(e.code===200?(e.data.viewlist.map(i=>(i.mode=1,i)),this.formList=e.data.formlist,this.tableData=e.data.table,this.sysViewList=e.data.viewlist):this.$message.error(e.message),e)):(console.log("\u6570\u636E\u9519\u8BEF,\u8868\u4E0D\u5B58\u5728"),new Promise((e,i)=>{e({})}))},baseGetPersonalView(t){if(t&&this.openMode!=1)return new Promise((i,s)=>{i()});const e=this.tableLists.filter(i=>{const s=this.options.table.tableName||this.options.table.tablename;return i.tablename.toLowerCase()===s.toLowerCase()})[0];return e===void 0?(console.log("\u8868\u4E0D\u5B58\u5728"),new Promise((i,s)=>{i()})):l.basePersonalData({tableId:e.id}).then(i=>{if(i.code===200){const s=this.options.layoutConfig!==void 0?this.options.layoutConfig:!1;this.defaultViewId=s?0:i.data.defaultqueryid,this.personalViewList=i.data.savedquerylist}else console.log(i.message);return i.data})},baseGetLoadData(){const t=this.tableLists.filter(e=>{const i=this.options.table.tableName||this.options.table.tablename;return e.tablename.toLowerCase()===i.toLowerCase()})[0];return t?f.onlineFormGetCodeGenerateList({codeGenId:t.id}).then(e=>{e.code===200&&(this.fieldData=e.data,this.$emit("fieldData",e.data))}):(console.log("\u6570\u636E\u9519\u8BEF,\u8868\u4E0D\u5B58\u5728"),new Promise((e,i)=>{e({})}))},baseAdd(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm?this.$refs.editForm.open({title:this.$i18nt("gd.https.add","\u65B0\u589E")}):console.log("err:\u8868\u5355\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},0)})},baseEdit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}let t={title:this.$i18nt("gd.https.edit","\u7F16\u8F91")};this.openMode==3?Object.assign(t,{data:this.selectedRows[0]}):Object.assign(t,{id:this.selectedRowKeys[0]}),this.open(t)},baseCopyData(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}const t=this.tableDataSource.filter(e=>this.selectedRowKeys.includes(e.id))[0];this.$refs.editForm.openCopyData({title:this.$i18nt("gd.advancedFind.anotherSave","\u53E6\u5B58\u4E3A"),data:t})},baseDel(){this.$refs.table.baseDel()},baseEnable(t=1){return this.$refs.table.baseEnable(t)},baseRelationOk(t){this.$refs.table.baseRelationOk(t)},baseBatchUpdate(){this.$refs.table.baseBatchUpdate()},baseTeamSharing(t){this.$refs.table.baseTeamSharing(t)},baseStatusChange(){this.$refs.table.baseStatusChange()},baseAssign(t){this.$refs.table.baseAssign(t)},baseImportData(){this.$refs.table.baseImportData()},baseExportData(t){this.$refs.table.baseExportData(t)},baseGetParentFormData(t){if(this.openMode!=3)return new Promise((i,s)=>{i({})});let e=t===void 0?!1:t;return this.record.getFormAllData(e,!0).then(i=>i)},baseRelationRefresh(t=!0,e,i={}){this.openMode==3&&this.record.refresh(t,e,i)},baseBtnsStatus(t){this.$refs.table.baseBtnsStatus(t)},baseForceShowBtns(t){this.$refs.table.baseForceShowBtns(t)},baseComponentsInit(t){this.$refs.table.baseComponentsInit(t)},baseSetTableData(t){this.$refs.table.baseSetTableData(t)},getDictionary(t){return this.$options.filters.dictData(t)},baseTriggerFilter(t){this.$refs.table.baseTriggerFilter(t)},doEvent(t){const e=t.item.functionName||t.item.functionname,i=t.key?t:t.item;if(this[e]===void 0){console.log("\u8BF7\u5B9A\u4E49 "+e+" \u65B9\u6CD5");return}this.showLoading(),this[e]&&this[e](i),this.hideLoading()},executeEvent(t){const e=t.functionName?t.functionName:"";e&&this[e]!==void 0?this.$nextTick(()=>{setTimeout(()=>{this[e](t)},100)}):console.log("\u6267\u884C\u9519\u8BEF")}},created(){this.init(),this.develop==2&&(this.record.executeEvent=this.executeEvent)},beforeDestroy(){console.log("\u89C6\u56FE\u5378\u8F7D",this.tableData.busname),this.sysViewList=[],this.personalViewList=[],this.selectedRows=[],this.sysViewButtons=[],this.fieldData=[],this.componentList=[],this.tableDataSource=[]}};const L={mixins:[b],methods:{}};var D=function(){var e=this,i=e._self._c;return i("div",[i("gd-view-build-designer",{ref:"table",attrs:{record:e.record,develop:e.develop,openMode:e.openMode,height:e.height,foreign:e.foreign,disabledRowId:e.disabledRowId,excludeButtons:e.excludeButtons,lineQuickView:e.lineQuickView},on:{baseOpen:e.open,changeBtn:e.onChangeBtn,changeView:e.onChangeView,changeData:e.onChangeData,changeSelect:e.onChangeSelect,doEvent:e.doEvent}}),i(e.componentForm,{ref:"editForm",tag:"component",attrs:{fieldData:e.fieldData,tableData:e.tableData,recordRelation:e.record,openMode:e.openMode},on:{ok:e.refresh,relationOk:e.baseRelationOk}})],1)},I=[],x=r.normalizeComponent(L,D,I,!1,null,"ca0b408e",null,null);const _=x.exports;const F={name:"GdViewFormDetails",props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{record:"",query:{},openType:"",modeType:"",popupType:"dialog",iframeUri:"",showPopup:!1,statu:!1}},computed:{hig(){return`${this.screenHeight}px`},istyle(){return`width:100%;overflow:hidden;height:${this.hig};`},...r.mapGetters(["primaryColor","screenHeight"])},components:{PopupDetails:()=>Promise.resolve().then(()=>U),ViewDetails:()=>Promise.resolve().then(()=>G)},methods:{open(t,e=!1){console.log(t),this.record=t;const i=a.getParamsQuery(t);this.query=i,this.modeType=e?this.modeType:i.mode_type?i.mode_type:"",this.openType=e?this.openType:i.open_type?i.open_type:"popup";const s=this.query.redirect_uri?this.query.redirect_uri:"";if(this.modeType==="request"){this.getRequestDetail();return}if(["authorize_view","authorize_form","authorize_details"].includes(this.modeType)){this.getAuthorizeCode();return}if(this.openType==="iframe"){this.getIframeUri(s);return}if(["redirect_self","redirect_blank"].includes(this.openType)){this.goRedirectUri(s);return}this.showPopup=!0,this.$nextTick(()=>{setTimeout(()=>{const o=`${this.openType}Details`;this.$refs[o]&&this.$refs[o].init()},0)})},getRequestDetail(){if(this.statu)return;const t=this.query.request_url?this.query.request_url:"";if(t==="")return;const e=decodeURIComponent(t),i=e.indexOf("?")===-1?e:e.slice(0,e.indexOf("?")),s=a.getParamsQuery(e);this.statu=!0,l.post(i,s).then(o=>{if(this.statu=!1,o.code!==200){this.$message.error(o.message);return}if(["redirect_self","redirect_blank"].includes(this.openType)){this.goRedirectUri(o.data),this.beaseLoadComplete();return}if(["iframe"].includes(this.openType)){this.getIframeUri(o.data),this.beaseLoadComplete();return}this.open(o.data,!0)})},getAuthorizeCode(){const t=this.query.code?this.query.code:"";if(t){this.Logout().then(e=>{this.getCode(t)});return}this.oauthAuthorize()},oauthAuthorize(){const t=this.query.client_id?this.query.client_id:"";this.query.response_type&&this.query.response_type,p.oauthAuthorize({client_id:t,response_type:"code"}).then(e=>{if(e.code!==200){this.$message.error(e.message);return}const i=this.query.redirect_uri?this.query.redirect_uri:"";if(i==="")return;const s=decodeURIComponent(i);s.indexOf("?")===-1||s.slice(0,s.indexOf("?"));const o=s.indexOf("?")===-1?[]:s.slice(s.indexOf("?")+1).split("&").map(n=>n.split("=")).map(([n,q])=>({key:n,value:q})).concat([{key:"code",value:e.data.code}]);if(["redirect_self","redirect_blank"].includes(this.openType)){this.oauthAuthorizeRedirect(o);return}const c=this.modeType.replace("authorize_","");let d=`?authorize_type=${this.modeType}&mode_type=${c}`,u=`?authorize_type=${this.modeType}&mode_type=${c}&open_type=view`;for(let n=0;n<o.length;n++)d+=`&${o[n].key}=${o[n].value}`,o[n].key!=="open_type"&&(u+=`&${o[n].key}=${o[n].value}`);const m=encodeURIComponent(s.slice(0,s.indexOf("?"))+u);d+=d===""?`?redirect_uri=${m}`:`&redirect_uri=${m}`,this.query.complete_request&&(d+=`&complete_request=${this.query.complete_request}`);const T=a.getParamsQuery(d);this.query=T,this.showPopup=!0,this.$nextTick(()=>{setTimeout(()=>{const n=`${this.openType}Details`;this.$refs[n]&&this.$refs[n].init()},0)})})},oauthAuthorizeRedirect(t){let e="";for(let s=0;s<t.length;s++)e+=`${s===0?"?":"&"}${t[s].key}=${t[s].value}`;const i=this.openType==="redirect_self"?"_self":this.openType==="redirect_blank"?"_blank":"_self";window.open(`${url}${e}`,i)},getCode(t){p.oauthCodeLogin({code:t}).then(e=>{if(e.code!==200){this.$message.error(e.message);return}this.loginSuccess(e.data),this.loginOther()})},goRedirectUri(t){if(t==="")return;const e=decodeURIComponent(t),i=this.openType==="redirect_self"?"_self":this.openType==="redirect_blank"?"_blank":"";window.open(e,i)},getIframeUri(t){t!==""&&(this.iframeUri=decodeURIComponent(t))},beaseLoadComplete(){const t=this.query.complete_request?this.query.complete_request:"";if(t==="")return;const e=decodeURIComponent(t),i=e.indexOf("?")===-1?e:e.slice(0,e.indexOf("?")),s=a.getParamsQuery(e);l.post(i,s)},loginSuccess(t){Vue.ls.set("ACCESS_TOKEN",t.accesstoken),this.$store.commit("SET_TOKEN",t.accesstoken);let e="";for(let i in this.query)["authorize_view","authorize_form","authorize_details"].includes(i)?e+=`${e===""?"?":"&"}${i}=${this.query[i].replace("authorize_","")}`:e+=`${e===""?"?":"&"}${i}=${this.query[i]}`;this.open(e,!0)},loginOther(){this.dictTypeData().then(e=>{});const t=new BroadcastChannel("gd-channel-msg");t.postMessage({type:"login",data:{gdTagName:window.gdTagName}}),t.close()},close(){this.modeType="",this.openType="",this.$nextTick(()=>{setTimeout(()=>{this.$emit("close")},300)})},doEvent(t){const e=`${this.openType}Details`;this.$refs[e]&&this.$refs[e].doEvent&&this.$refs[e].doEvent(t)},...r.mapActions(["Logout","dictTypeData"])}};var k=function(){var e=this,i=e._self._c;return i("div",{staticClass:"gd-vf-details"},[e.showPopup&&e.openType==="popup"?i("PopupDetails",{ref:"popupDetails",attrs:{record:e.record,query:e.query,modalAppendToBody:e.modalAppendToBody,appendToBody:e.appendToBody},on:{ok:function(s){return e.$emit("ok")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")},closed:e.close}}):e.openType==="view"?i("ViewDetails",{ref:"viewDetails",attrs:{record:e.record,query:e.query},on:{ok:function(s){return e.$emit("ok")},closed:e.close,onChangeBtn:s=>e.$emit("changeBtn",s),beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.openType==="iframe"?i("iframe",{style:e.istyle,attrs:{id:"iframe",height:e.hig,src:e.iframeUri,frameBorder:"0"}}):e._e()],1)},B=[],O=r.normalizeComponent(F,k,B,!1,null,"127122b3",null,null);const h=O.exports;h.install=function(t){t.component(h.name,h)};const R={props:{record:{type:String,default:""},query:{type:Object,default:()=>{}},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{modeType:"",popupMode:"drawer",fullscreen:!1,confirmLoading:!1,visible:!1,width:"80%",iframeUri:"",sysViewButtons:[]}},components:{ViewItem:()=>Promise.resolve().then(()=>v),FormItem:()=>Promise.resolve().then(()=>$),DetailsItem:()=>Promise.resolve().then(()=>w)},computed:{urls(){return this.iframeUri.indexOf("?")===-1?this.iframeUri:this.iframeUri.slice(0,this.iframeUri.indexOf("?"))},title(){return""},hig(){return`${this.height-24}px`},istyle(){return`width:100%;overflow:hidden;height:${this.hig};`},height(){return this.popupMode==="drawer"?this.screenHeight-48:this.fullscreen?this.screenHeight-72:this.screenHeight-230},...r.mapGetters(["formMode","screenHeight"])},methods:{onChangeBtn(t){this.sysViewButtons=t},init(){const t=this.query.popup_wid?this.query.popup_wid:"80%",e=this.query.popup_fullscreen?this.query.popup_fullscreen:"";this.width=isNaN(Number(t))?t:Number(t)+"px",this.fullscreen=e==="true";let i=this.query.popup_type?this.query.popup_type:"drawer";i==="followSystem"&&(i=this.formMode),this.popupMode=i,this.modeType=this.query.mode_type?this.query.mode_type:"form";let s=this.query.redirect_uri?decodeURIComponent(this.query.redirect_uri):"";this.iframeUri=s,console.log(this.iframeUri),this.visible=!0,this.query.open_type&&this.query.open_type!=="popup"&&(this.modeType=this.query.open_type),this.modeType==="iframe"&&window.addEventListener("message",this.monitorIframe),this.$nextTick(()=>{const o=`${this.modeType}Item`;this.$refs[o]&&this.$refs[o].init()})},toggleFullscreen(){this.fullscreen=!this.fullscreen},closed(){this.modeType="",this.fullscreen=!1,this.visible=!1,this.$emit("closed")},doEvent(t){if(this.modeType==="iframe"){document.getElementById("gd-view-iframe").contentWindow.postMessage({data:JSON.stringify(t),eventType:"btn-click"},this.urls);return}const e=`${this.modeType}Item`;this.$refs[e]&&this.$refs[e].doEvent(t)},monitorIframe(t){if(t.data.eventType==="form-btn"){this.onChangeBtn(t.data.data&&a.isJson(t.data.data)?JSON.parse(t.data.data):[]);return}if(t.data.eventType==="load-complete"){this.beaseLoadComplete();return}t.data.eventType==="close-drawer"&&this.closed()},beaseLoadComplete(t){console.log(this.query);const e=this.query.complete_request?this.query.complete_request:"";if(e==="")return;const i=decodeURIComponent(e),s=i.indexOf("?")===-1?i:i.slice(0,i.indexOf("?")),o=a.getParamsQuery(i);l.post(s,o)}},beforeDestory(){window.removeEventListener("message",this.monitorIframe)}};var S=function(){var e=this,i=e._self._c;return i("div",[e.popupMode==="dialog"?i("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":e.appendToBody,"modal-append-to-body":e.modalAppendToBody,top:"80px","show-close":!1},on:{"update:visible":function(s){e.visible=s},closed:e.closed}},[i("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen,close:e.closed},slot:"title"}),e.visible?i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"30vh"}},[e.modeType==="view"?i("ViewItem",{ref:"viewItem",attrs:{query:e.query,height:e.height}}):e.modeType==="form"?i("FormItem",{ref:"formItem",attrs:{query:e.query,height:e.height},on:{onChangeBtn:e.onChangeBtn,closed:e.closed,ok:function(s){return e.$emit("ok")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.modeType==="details"?i("DetailsItem",{ref:"detailsItem",attrs:{query:e.query,height:e.height}}):e.modeType==="iframe"?i("iframe",{style:e.istyle,attrs:{id:"gd-view-iframe",height:e.hig,src:e.iframeUri,frameBorder:"0"}}):e._e()],1):e._e()],1):i("el-drawer",{attrs:{visible:e.visible,"close-on-press-escape":!1,"append-to-body":e.appendToBody,"modal-append-to-body":e.modalAppendToBody,size:e.width,"custom-class":"gd-drawer-form","show-close":!1},on:{"update:visible":function(s){e.visible=s}}},[i("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,emitFun:!0,showFullscreen:!1,showClose:!0},on:{changeEvent:e.doEvent,close:e.closed},slot:"title"}),e.visible?i("div",{staticStyle:{height:"100%"}},[e.modeType==="view"?i("ViewItem",{ref:"viewItem",attrs:{query:e.query,height:e.height}}):e.modeType==="form"?i("FormItem",{ref:"formItem",attrs:{query:e.query,height:e.height},on:{onChangeBtn:e.onChangeBtn,closed:e.closed,ok:function(s){return e.$emit("ok")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.modeType==="details"?i("DetailsItem",{ref:"detailsItem",attrs:{query:e.query,height:e.height}}):e.modeType==="iframe"?i("iframe",{style:e.istyle,attrs:{id:"gd-view-iframe",height:e.hig,src:e.iframeUri,frameBorder:"0"}}):e._e()],1):e._e()],1)],1)},V=[],P=r.normalizeComponent(R,S,V,!1,null,"1aaea733",null,null);const N=P.exports,U=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));const E={props:{record:{type:String,default:""},query:{type:Object,default:()=>{}}},data(){return{modeType:""}},components:{ViewItem:()=>Promise.resolve().then(()=>v),FormItem:()=>Promise.resolve().then(()=>$),DetailsItem:()=>Promise.resolve().then(()=>w)},computed:{height(){return this.screenHeight-72},...r.mapGetters(["screenHeight"])},methods:{init(){this.modeType=this.query.mode_type?this.query.mode_type:"form",this.visible=!0,this.$nextTick(()=>{const t=`${this.modeType}Item`;this.$refs[t]&&this.$refs[t].init()})},doEvent(t){const e=`${this.modeType}Item`;this.$refs[e]&&this.$refs[e].doEvent&&this.$refs[e].doEvent(t)}}};var j=function(){var e=this,i=e._self._c;return i("div",[e.modeType==="view"?i("ViewItem",{ref:"viewItem",attrs:{query:e.query,height:e.height}}):e.modeType==="form"?i("FormItem",{ref:"formItem",attrs:{query:e.query,height:e.height,modeType:"component"},on:{ok:function(s){return e.$emit("ok")},onChangeBtn:s=>e.$emit("onChangeBtn",s),closed:function(s){return e.$emit("closed")},beaseLoadComplete:function(s){return e.$emit("beaseLoadComplete")}}}):e.modeType==="details"?i("DetailsItem",{ref:"detailsItem",attrs:{query:e.query,height:e.height}}):e._e()],1)},M=[],z=r.normalizeComponent(E,j,M,!1,null,"dd2e4515",null,null);const A=z.exports,G=Object.freeze(Object.defineProperty({__proto__:null,default:A},Symbol.toStringTag,{value:"Module"}));const H={props:{height:{type:Number,default:600},query:{type:Object,default:()=>{}}},data(){return{record:{},openMode:1,viewId:"",tableId:"",formId:"",show:!1,confirmLoading:!1}},computed:{table(){const t=this.tableLists.filter(e=>e.id===this.tableId)[0];return t||{}},getHeight(){return this.height-24},componentItem(){const t=this.$importViewFiles();let e=`../views/main/${this.table.tablename}/index.vue`,i=t[e];return i?i.default:_},...r.mapGetters(["tableLists"])},methods:{init(){this.viewId=this.query.view_id?Number(this.query.view_id):"",this.tableId=this.query.table_id?Number(this.query.table_id):"",this.formId=this.query.form_id?Number(this.query.form_id):"",this.tableId!==""&&this.getAllTable().then(t=>{this.record={options:{table:this.table,form:{id:this.formId},view:{id:this.viewId},viewWeights:"1"}},this.$nextTick(()=>{setTimeout(()=>{this.show=!0},0)})})},getAllTable(){return this.tableLists.length>0?new Promise(t=>{t()}):g.codeGenerateInformationList({busName:""}).then(t=>(t.success&&this.TableLists(t.data),t.data))}}};var Q=function(){var e=this,i=e._self._c;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"300px"}},[e.show?i(e.componentItem,{ref:"lookuptable",tag:"component",attrs:{record:e.record,height:e.getHeight,develop:2,openMode:e.openMode}}):e._e()],1)},K=[],J=r.normalizeComponent(H,Q,K,!1,null,"5b928d29",null,null);const W=J.exports,v=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"}));const X={props:{query:{type:Object,default:()=>{}},modeType:{type:String,default:"component"}},data(){return{record:{},openMode:1,tableId:"",formId:"",show:!1,formData:{},fieldData:{},sysViewButtons:[],confirmLoading:!1}},computed:{table(){const t=this.tableLists.filter(e=>e.id===this.tableId)[0];return t||{}},getHeight(){return this.height-24},componentItem(){const t=this.$importViewFiles();let e=`../views/main/${this.table.tablename}/editForm.vue`,i=t[e];return i?i.default:y.FormDesigner},...r.mapGetters(["tableLists"])},methods:{beaseLoadComplete(t){console.log(this.query),this.$emit("beaseLoadComplete");const e=this.query.complete_request?this.query.complete_request:"";if(e==="")return;const i=decodeURIComponent(e),s=i.indexOf("?")===-1?i:i.slice(0,i.indexOf("?")),o=a.getParamsQuery(i);l.post(s,o)},onChangeBtn(t){this.sysViewButtons=t,this.$emit("onChangeBtn",t)},init(){this.confirmLoading=!0,this.tableId=this.query.table_id?Number(this.query.table_id):"",this.formId=this.query.form_id?Number(this.query.form_id):"",this.id=this.query.id?Number(this.query.id):"",this.tableId!==""&&Promise.all([this.sysFormDetails(),this.getLoadData(),this.getAllTable()]).then(t=>{this.record={options:{table:this.table,form:{id:this.formId}}},this.show=!0,this.confirmLoading=!1,this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm&&this.$refs.editForm.setFormRecord(this.formData).then(()=>{this.$refs.editForm.open({id:this.id,title:""})})},0)})})},getLoadData(){return f.onlineFormGetCodeGenerateList({codeGenId:this.tableId}).then(t=>(this.fieldData=t.data,t.data))},sysFormDetails(){return l.baseTableData({tableId:this.tableId}).then(t=>{if(t.code===200){const e=t.data.formlist.filter(i=>i.id===this.formId)[0];console.log(e),this.formData=e}return t.data})},getAllTable(){return this.tableLists.length>0?new Promise(t=>{t()}):g.codeGenerateInformationList({busName:""}).then(t=>(t.success&&this.TableLists(t.data),t.data))},doEvent(t){this.$refs.editForm&&this.$refs.editForm.doEvent(t)},closed(){console.log("\u5173\u95ED"),this.$emit("closed")},...r.mapActions(["TableLists"])}};var Y=function(){var e=this,i=e._self._c;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"300px",height:"100%"}},[e.show?i(e.componentItem,{ref:"editForm",tag:"component",attrs:{recordRelation:e.record,openMode:e.openMode,tableData:e.table,fieldData:e.fieldData,modeType:e.modeType},on:{onChangeBtn:e.onChangeBtn,closed:e.closed,ok:function(s){return e.$emit("ok")},onLoadCompleted:e.beaseLoadComplete}}):e._e()],1)},Z=[],ee=r.normalizeComponent(X,Y,Z,!1,null,"b8e777c7",null,null);const te=ee.exports,$=Object.freeze(Object.defineProperty({__proto__:null,default:te},Symbol.toStringTag,{value:"Module"}));const ie={props:{query:{type:Object,default:()=>{}}},data(){return{dictCode:"messagetype",messageType:"",componentItem:""}},computed:{componentForm(){return this.componentItem==="GdNoticeDetails"?C.noticeItem:""}},methods:{onLoadCompleted(){const t=this.query.complete_request?this.query.complete_request:"";if(t==="")return;const e=decodeURIComponent(t),i=e.indexOf("?")===-1?e:e.slice(0,e.indexOf("?")),s=a.getParamsQuery(e);l.post(i,s)},init(){if(this.messageType=this.query.message_type?this.query.message_type:"",this.messageType==="")return;const e=this.getDictionary(this.dictCode).filter(s=>s.code===this.messageType)[0];if(!e)return;const i=this.query.id?this.query.id:"";this.componentItem=e.remark,this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm&&this.$refs.editForm.open({id:i})},0)})},getDictionary(t){return this.$options.filters.dictData(t)}}};var se=function(){var e=this,i=e._self._c;return e.componentForm?i(e.componentForm,{ref:"editForm",tag:"component",attrs:{modeType:"component"},on:{onLoadCompleted:e.onLoadCompleted}}):e._e()},oe=[],re=r.normalizeComponent(ie,se,oe,!1,null,"2e905682",null,null);const ne=re.exports,w=Object.freeze(Object.defineProperty({__proto__:null,default:ne},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=h;exports.ViewTable=_;exports.viewMixins=b;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("./components.chartbi.e4680eaa.js");const r={props:{spinning:{type:Boolean,default:!1},wid:{type:[Number,String],default:100},hig:{type:Number,default:32}},data(){return{}},computed:{style(){let s=typeof this.wid,t="";return s==="string"?t=`width:${this.wid}%;height:${this.hig}px`:t=`width:${this.wid}px;height:${this.hig}px`,t}}};var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"skeleton animations",style:t.style},[t._t("default")],2)},_=[],d=a.normalizeComponent(r,o,_,!1,null,"17808e78",null,null);const c=d.exports;const u={name:"GdViewLoading",props:{spinning:{type:Boolean,default:!0},openMode:{type:[String,Number],default:1},height:{type:Number,default:100}},computed:{style(){return`height:${this.height}px`}},components:{Skeleton:c},data(){return{}}};var p=function(){var t=this,e=t._self._c;return e("div",{staticClass:"spinningl",style:t.style},[t.openMode!==3&&t.spinning?e("div",[e("div",{staticClass:"btn"},[e("Skeleton",{attrs:{wid:170}}),e("Skeleton",{attrs:{wid:400}})],1),e("Skeleton",{attrs:{wid:"100",hig:24}}),t._l(22,function(n){return[e("div",{staticClass:"listt"},t._l(5,function(l){return e("Skeleton",{key:l,attrs:{wid:"18",hig:24}})}),1),e("Skeleton",{attrs:{wid:n%2==1?"66":"100",hig:24}})]})],2):t._e(),t.openMode===3&&t.spinning?e("div",[e("div",{staticClass:"btnr"},[e("Skeleton",{attrs:{wid:246,hig:22}})],1),e("div",{staticClass:"listt listts"},t._l(6,function(n){return e("Skeleton",{key:n,attrs:{wid:"15",hig:20}})}),1),t._l(4,function(n){return e("Skeleton",{key:n,attrs:{wid:n%2==1?"66":"100",hig:20}})})],2):t._e()])},h=[],f=a.normalizeComponent(u,p,h,!1,null,"a7a85ae8",null,null);const i=f.exports;i.install=function(s){s.component(i.name,i)};exports.GDpackage=i;
|