gds-plus-design-vue 1.2.62 → 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.179a09f4.mjs +443 -0
- package/lib/addPermission.c72ebbe0.js +1 -0
- package/lib/approvalModel.7b550187.mjs +340 -0
- 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.d7d35011.mjs +539 -0
- 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.06cf0433.mjs +1505 -0
- package/lib/components.coloreditor.f81d322a.js +6 -0
- package/lib/components.dataassign.21d3938b.mjs +147 -0
- package/lib/components.dataassign.565d22c0.js +1 -0
- package/lib/components.echarts.490abdfa.mjs +811 -0
- package/lib/components.echarts.fe84f881.js +4 -0
- package/lib/components.exception.374f2ad9.js +1 -0
- package/lib/components.exception.ee1c4f83.mjs +61 -0
- package/lib/components.form.5533a8c3.js +41 -0
- package/lib/components.form.db8af727.mjs +7813 -0
- package/lib/components.globalheader.2eb787a4.js +1 -0
- package/lib/components.globalheader.b3b35343.mjs +54 -0
- package/lib/components.iconselector.8940b1a9.mjs +1169 -0
- package/lib/components.iconselector.f5a58033.js +1 -0
- package/lib/components.imgpreview.d97cf25c.js +1 -0
- package/lib/components.imgpreview.f05b3e06.mjs +213 -0
- package/lib/components.lunccalendar.18f84642.js +1 -0
- package/lib/components.lunccalendar.2a097955.mjs +1137 -0
- package/lib/components.middleware.43b9b264.js +1 -0
- package/lib/components.middleware.de012955.mjs +148 -0
- package/lib/components.modaltitle.5060623f.mjs +127 -0
- package/lib/components.modaltitle.957cab33.js +1 -0
- package/lib/components.multitab.5eb6edff.mjs +140 -0
- package/lib/components.multitab.80eeb3ae.js +1 -0
- package/lib/components.selecttree.2fe70d88.js +1 -0
- package/lib/components.selecttree.756c4d22.mjs +170 -0
- package/lib/components.settingdrawer.29dbc31e.mjs +237 -0
- package/lib/components.settingdrawer.8c12650b.js +1 -0
- package/lib/components.sidemenu.0673fe0a.mjs +277 -0
- package/lib/components.sidemenu.240dfde7.js +1 -0
- package/lib/components.sidenavmenu.b1330d69.js +1 -0
- package/lib/components.sidenavmenu.fa81ff82.mjs +1147 -0
- package/lib/components.statuschange.858b72e8.js +1 -0
- package/lib/components.statuschange.fae4adba.mjs +116 -0
- package/lib/components.table.1e338902.js +8 -0
- package/lib/components.table.9ed77207.mjs +4650 -0
- package/lib/components.tableumy.1d804d70.js +1 -0
- package/lib/components.tableumy.3e1c9a5b.mjs +453 -0
- package/lib/components.tablevirtual.66890b2c.mjs +564 -0
- package/lib/components.tablevirtual.8e21a6e7.js +1 -0
- package/lib/components.teamsharing.3a17ddc0.mjs +373 -0
- package/lib/components.teamsharing.89e668fd.js +1 -0
- package/lib/components.tooltip.0ea7e2b1.js +1 -0
- package/lib/components.tooltip.376d95fe.mjs +86 -0
- package/lib/components.uploadfile.0a5a1608.mjs +228 -0
- package/lib/components.uploadfile.8e0e702c.js +1 -0
- package/lib/components.uploadimg.bc160e00.js +1 -0
- package/lib/components.uploadimg.decb0360.mjs +192 -0
- package/lib/components.verificationcode.140533c7.js +1 -0
- package/lib/components.verificationcode.7091b10b.mjs +71 -0
- package/lib/components.viewformdetails.940addba.js +1 -0
- package/lib/components.viewformdetails.d241c652.mjs +1081 -0
- package/lib/components.viewloading.1e9f4b3c.js +1 -0
- package/lib/components.viewloading.aae3aab4.mjs +99 -0
- package/lib/components.watermark.2ec3260c.mjs +53 -0
- package/lib/components.watermark.d9ec8130.js +2 -0
- package/lib/components.xlsxexport.0d1553b1.js +1 -0
- package/lib/components.xlsxexport.c33f83ca.mjs +263 -0
- package/lib/components.xlsximport.81df7841.mjs +922 -0
- 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.eac5ccae.mjs +154 -0
- package/lib/dialogLayout.bf435838.mjs +138 -0
- package/lib/dialogLayout.f0779aed.js +1 -0
- package/lib/drawerContainer.6ab3df46.mjs +163 -0
- package/lib/drawerContainer.8f9df583.js +1 -0
- package/lib/drawerLayout.b6c7c3c6.js +1 -0
- package/lib/drawerLayout.e3c0164d.mjs +119 -0
- 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.5c8a883d.mjs +363 -0
- package/lib/flow.designer.81c29f62.mjs +7673 -0
- package/lib/flow.designer.ffd0aa8b.js +1 -0
- package/lib/flow.list.4c05f2f0.js +1 -0
- package/lib/flow.list.ab420927.mjs +3032 -0
- package/lib/form.build.724d3357.js +1 -0
- package/lib/form.build.d04773f0.mjs +259 -0
- 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.c949a27f.mjs +507 -0
- package/lib/gd-initial.js +1 -35
- package/lib/gd-initial.mjs +245 -91338
- package/lib/http.appmanage.b998818f.js +1 -0
- package/lib/http.appmanage.e389782d.mjs +50 -0
- package/lib/http.codegeneratemanage.b123bab3.mjs +120 -0
- package/lib/http.codegeneratemanage.e3db2f09.js +1 -0
- package/lib/http.configmanage.6cfb8ae7.js +1 -0
- package/lib/http.configmanage.c23c7fa8.mjs +34 -0
- package/lib/http.currencymanage.37ab5ced.js +1 -0
- package/lib/http.currencymanage.c25bd2e6.mjs +10 -0
- package/lib/http.datasource.294b01e2.js +1 -0
- package/lib/http.datasource.aa5cd0d1.mjs +58 -0
- package/lib/http.dictdatamanage.2583b5ae.mjs +42 -0
- package/lib/http.dictdatamanage.70545d8a.js +1 -0
- package/lib/http.dictmanage.3dc07b5d.js +1 -0
- package/lib/http.dictmanage.d8fe18dc.mjs +50 -0
- package/lib/http.duplicatechecking.9b79ce21.mjs +50 -0
- package/lib/http.duplicatechecking.ee5c414c.js +1 -0
- package/lib/http.emailmanage.1ddaa8b5.js +1 -0
- package/lib/http.emailmanage.64fd611f.mjs +18 -0
- package/lib/http.filedocument.6fdfc693.js +1 -0
- package/lib/http.filedocument.8fa3fe2d.mjs +293 -0
- package/lib/http.filemanage.7e6e3e1a.js +1 -0
- package/lib/http.filemanage.c0de21d6.mjs +71 -0
- package/lib/http.languagemanage.2ef16159.mjs +10 -0
- package/lib/http.languagemanage.e2c098ec.js +1 -0
- package/lib/http.loginmanage.05500c29.mjs +74 -0
- package/lib/http.loginmanage.326984c3.js +1 -0
- package/lib/http.logmanage.1e12a9bd.js +1 -0
- package/lib/http.logmanage.8ba72635.mjs +82 -0
- package/lib/http.machinemanage.29d72a65.js +1 -0
- package/lib/http.machinemanage.7bbe6c16.mjs +26 -0
- package/lib/http.main.2f8a6936.js +1 -0
- package/lib/http.main.aefea27d.mjs +517 -0
- package/lib/http.menumanage.3060f4c7.mjs +66 -0
- package/lib/http.menumanage.6d740f2c.js +1 -0
- package/lib/http.message.87f319d7.js +1 -0
- package/lib/http.message.ceb0a1c6.mjs +178 -0
- package/lib/http.noticemanage.2507d094.js +1 -0
- package/lib/http.noticemanage.2cdb23b8.mjs +82 -0
- package/lib/http.noticereceivedmanage.50797be1.mjs +10 -0
- package/lib/http.noticereceivedmanage.e8ec9c9d.js +1 -0
- package/lib/http.onlineusermanage.3893f897.js +1 -0
- package/lib/http.onlineusermanage.c8d84337.mjs +18 -0
- package/lib/http.orgmanage.0b1df8d5.mjs +58 -0
- package/lib/http.orgmanage.5162fd7a.js +1 -0
- package/lib/http.pluginmanage.54720675.mjs +82 -0
- package/lib/http.pluginmanage.6a876040.js +1 -0
- package/lib/http.posmanage.c0f80aec.js +1 -0
- package/lib/http.posmanage.ee6a7613.mjs +34 -0
- package/lib/http.promptmanagement.d115c4b0.js +1 -0
- package/lib/http.promptmanagement.dad4c6a7.mjs +42 -0
- package/lib/http.rolemanage.4d1101dd.js +1 -0
- package/lib/http.rolemanage.da5c40e9.mjs +146 -0
- package/lib/http.solution.b10d9197.mjs +91 -0
- package/lib/http.solution.c6b2634f.js +1 -0
- package/lib/http.sumberrules.0b68ce6d.js +1 -0
- package/lib/http.sumberrules.176d3d06.mjs +34 -0
- package/lib/http.sysapps.469d47f7.js +1 -0
- package/lib/http.sysapps.932ba43b.mjs +58 -0
- package/lib/http.syscodegenerateconfigmanage.6d2e5da0.mjs +42 -0
- package/lib/http.syscodegenerateconfigmanage.840f1136.js +1 -0
- package/lib/http.tabledevelopment.3dcb3e97.mjs +362 -0
- package/lib/http.tabledevelopment.a880bb76.js +1 -0
- package/lib/http.team.a9c609d5.mjs +90 -0
- package/lib/http.team.e45400d5.js +1 -0
- package/lib/http.timersmanage.6e894942.js +1 -0
- package/lib/http.timersmanage.c79afb66.mjs +146 -0
- package/lib/http.timezonemanage.b9deffe3.mjs +10 -0
- package/lib/http.timezonemanage.e0aa212f.js +1 -0
- package/lib/http.translationmanage.1f9dce46.js +1 -0
- package/lib/http.translationmanage.f8694b51.mjs +104 -0
- package/lib/http.useraffiliation.af2013ad.js +1 -0
- package/lib/http.useraffiliation.f2a29f92.mjs +90 -0
- package/lib/http.usermanage.6dcbc7de.js +1 -0
- package/lib/http.usermanage.f5491144.mjs +219 -0
- package/lib/http.webresource.1a1a768f.mjs +50 -0
- package/lib/http.webresource.7c01b9cd.js +1 -0
- 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.2d06f3e9.js +2 -0
- package/lib/layouts.3b383d04.mjs +373 -0
- 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.fb4a8edf.mjs → main.3e886f21.mjs} +113 -188
- package/lib/{main.7921130e.mjs → main.419a7b42.mjs} +4 -4
- package/lib/main.4a38d5f8.js +1 -0
- package/lib/{main.c569c0a5.mjs → main.60329866.mjs} +12 -10
- package/lib/main.60c2a1a2.js +1 -0
- 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.892caa37.js +1 -0
- 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.5a6c881a.mjs → main.f520fcf5.mjs} +9 -8
- package/lib/manage.101f1aa9.js +1 -0
- package/lib/manage.f4000654.mjs +441 -0
- 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.376104d5.mjs +3164 -0
- package/lib/page.build.37b26617.js +12 -0
- 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.03dd7b19.mjs +547 -0
- package/lib/store.config.556bd56b.js +1 -0
- package/lib/style.css +3 -3
- package/lib/system.account.1cadbf03.mjs +2093 -0
- package/lib/system.account.5cc9fe8d.js +216 -0
- package/lib/system.config.a0b94e40.js +1 -0
- package/lib/{system.config.00dd0a29.mjs → system.config.a9a1ee96.mjs} +7 -6
- package/lib/system.datasource.6c30ce25.js +1 -0
- package/lib/{system.datasource.eb8d16df.mjs → system.datasource.c103a9c2.mjs} +15 -64
- package/lib/{system.dict.787ff1ec.mjs → system.dict.0c229d1c.mjs} +269 -344
- 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.94c7ce17.mjs +722 -0
- package/lib/system.duplicatechecking.f4cab147.js +1 -0
- package/lib/system.email.11ab6f31.js +1 -0
- package/lib/system.email.13823361.mjs +133 -0
- package/lib/system.fieldsecurity.2ef2881c.js +1 -0
- package/lib/{system.fieldsecurity.9d40595f.mjs → system.fieldsecurity.d35acd97.mjs} +486 -938
- package/lib/{system.file.eae6eac2.mjs → system.file.30d3e7bc.mjs} +84 -151
- package/lib/system.file.b9f8320c.js +1 -0
- package/lib/system.log.470d3efd.js +1 -0
- package/lib/{system.log.9bf208c1.mjs → system.log.815840d8.mjs} +24 -93
- package/lib/{system.machine.0130e762.mjs → system.machine.1665954f.mjs} +5 -25
- package/lib/system.machine.f8aff893.js +1 -0
- package/lib/{system.notice.dba4c597.mjs → system.notice.bef6c23c.mjs} +1075 -1255
- package/lib/system.notice.db26f308.js +1 -0
- package/lib/{system.noticereceived.0b88ef5d.mjs → system.noticereceived.0d293a87.mjs} +19 -27
- package/lib/system.noticereceived.84b88b9a.js +1 -0
- package/lib/system.onlineuser.985621a6.js +1 -0
- package/lib/{system.onlineuser.bfc3abf2.mjs → system.onlineuser.bccb1cd9.mjs} +36 -38
- package/lib/{system.org.6da23c73.mjs → system.org.92f4d7f1.mjs} +3 -3
- package/lib/system.org.9f87a010.js +1 -0
- 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.f8765f96.mjs → system.plugin.af27d7ac.mjs} +503 -552
- package/lib/system.pos.61e58a92.js +1 -0
- package/lib/{system.pos.5645b45a.mjs → system.pos.fe067063.mjs} +31 -62
- package/lib/{system.promptmanagement.cd19d086.mjs → system.promptmanagement.0b9083c5.mjs} +318 -450
- package/lib/system.promptmanagement.e750de82.js +1 -0
- package/lib/{system.role.0c6c327d.mjs → system.role.67f62146.mjs} +512 -486
- package/lib/system.role.e86b60f1.js +1 -0
- package/lib/{system.sumberrules.b48c028c.mjs → system.sumberrules.093d998e.mjs} +169 -192
- package/lib/system.sumberrules.810f7b55.js +1 -0
- package/lib/system.team.58ee701b.js +1 -0
- package/lib/system.team.8911fd95.mjs +452 -0
- package/lib/system.teammembers.1880f962.js +1 -0
- package/lib/{system.teammembers.e23e15d9.mjs → system.teammembers.35564a00.mjs} +257 -199
- package/lib/{system.timers.63d03fc9.mjs → system.timers.4b2d509f.mjs} +2202 -2278
- package/lib/system.timers.9e956553.js +38 -0
- package/lib/system.translation.26b6bb39.js +1 -0
- package/lib/{system.translation.52452a24.mjs → system.translation.60ec676c.mjs} +437 -431
- package/lib/system.user.134a3988.js +14 -0
- package/lib/{system.user.8d97a219.mjs → system.user.9a02295e.mjs} +1082 -1025
- package/lib/{system.useraffiliation.3075aa2c.mjs → system.useraffiliation.96695aeb.mjs} +419 -412
- package/lib/system.useraffiliation.c2421c7e.js +1 -0
- package/lib/{system.webresource.7df0cf1e.mjs → system.webresource.016d0000.mjs} +177 -219
- package/lib/system.webresource.e92e8a8f.js +1 -0
- package/lib/{system.welcome.14785b50.mjs → system.welcome.127b5dd4.mjs} +10 -3
- package/lib/system.welcome.ff0c85e2.js +1 -0
- 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.999b7c2e.mjs +52 -0
- package/lib/tcurrency.4afb9192.mjs +85 -0
- package/lib/tcurrency.8a2361f2.js +1 -0
- package/lib/tdatepicker.606214fa.mjs +52 -0
- package/lib/tdatepicker.8e94a60c.js +1 -0
- package/lib/tdictSwitch.ccbdd153.js +1 -0
- package/lib/tdictSwitch.e016d4cf.mjs +60 -0
- package/lib/tfile.3f39223d.mjs +62 -0
- package/lib/tfile.b3ebdc71.js +1 -0
- package/lib/tparticipants.5fe27540.mjs +56 -0
- package/lib/tparticipants.78c8c175.js +1 -0
- package/lib/translation.mains.2688be5b.mjs +383 -0
- package/lib/translation.mains.a6f19343.js +1 -0
- package/lib/utils.datepicker.js.0a5a699e.js +1 -0
- package/lib/utils.datepicker.js.5549a741.mjs +70 -0
- package/lib/utils.echarts.js.461a74e7.js +54 -0
- package/lib/utils.echarts.js.d1bb8ac6.mjs +25711 -0
- package/lib/utils.mixins.js.750ca50e.js +1 -0
- package/lib/utils.mixins.js.be01e599.mjs +41 -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.978b72c5.mjs +324 -0
- package/lib/viewTree.7497ff90.js +1 -0
- package/lib/viewTree.bde43a3b.mjs +409 -0
- package/locale/en_US.js +82 -27
- package/locale/id_ID.js +66 -11
- package/locale/vi_VN.js +1968 -1913
- package/locale/zh_CN.js +88 -32
- package/package.json +106 -105
- package/lib/chartbi.114d32d7.js +0 -60
- package/lib/chartbi.eb4dd0af.mjs +0 -27639
- package/lib/main.083e0ba3.js +0 -1
- package/lib/main.4a858284.js +0 -1
- package/lib/main.64cb2027.js +0 -1
- package/lib/main.70a46cbc.js +0 -1
- package/lib/messages.364eb728.js +0 -9
- package/lib/messages.5bcc42f9.mjs +0 -5863
- package/lib/system.account.95bd8508.js +0 -216
- package/lib/system.account.d6c7485b.mjs +0 -2552
- package/lib/system.config.63c0217d.js +0 -1
- package/lib/system.datasource.a2c0bad4.js +0 -1
- package/lib/system.dict.dfb4c376.js +0 -1
- package/lib/system.duplicatechecking.a58aad69.mjs +0 -2142
- package/lib/system.duplicatechecking.c4141ebd.js +0 -1
- package/lib/system.email.545cedff.mjs +0 -7432
- package/lib/system.email.ec0ac728.js +0 -41
- package/lib/system.fieldsecurity.eb217079.js +0 -1
- package/lib/system.file.1cb952a4.js +0 -1
- package/lib/system.log.348b3605.js +0 -1
- package/lib/system.machine.49fc6405.js +0 -1
- package/lib/system.notice.d7a3346d.js +0 -1
- package/lib/system.noticereceived.c0b24616.js +0 -1
- package/lib/system.onlineuser.b3c94b5b.js +0 -1
- package/lib/system.org.30063246.js +0 -1
- package/lib/system.permissions.1ff855c2.js +0 -9
- package/lib/system.permissions.fdad3c36.mjs +0 -212
- package/lib/system.plugin.2c7c8a5a.js +0 -1
- package/lib/system.pos.21294c28.js +0 -1
- package/lib/system.promptmanagement.7e8da777.js +0 -1
- package/lib/system.role.078fac85.js +0 -1
- package/lib/system.sumberrules.b0252f77.js +0 -1
- package/lib/system.team.296512d7.mjs +0 -1000
- package/lib/system.team.5d6169bc.js +0 -1
- package/lib/system.teammembers.313345f7.js +0 -1
- package/lib/system.timers.8246e6ba.js +0 -38
- package/lib/system.translation.fdff4956.js +0 -1
- package/lib/system.user.49457fd3.js +0 -14
- package/lib/system.useraffiliation.0e9da6a8.js +0 -1
- package/lib/system.webresource.2a341e05.js +0 -1
- package/lib/system.welcome.c9eefa06.js +0 -1
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use strict";const H=require("./components.chartbi.3bbac955.js"),q=require("vue"),W=require("./http.usermanage.6dcbc7de.js"),z=require("./http.filemanage.7e6e3e1a.js"),G=require("./http.languagemanage.e2c098ec.js"),V=require("./http.currencymanage.37ab5ced.js"),Z=require("./http.timezonemanage.e0aa212f.js"),B=require("./components.settingdrawer.8c12650b.js"),J=require("./http.appmanage.b998818f.js"),N=require("./http.menumanage.6d740f2c.js"),K=require("./http.loginmanage.326984c3.js"),Q=s=>s&&typeof s=="object"&&"default"in s?s:{default:s},ee=Q(q);const te={props:{keepAlive:{type:Boolean,default:!0},height:{type:Number,default:0}},name:"GdAccountSettings",data(){return{mode:"inline",openKeys:[],selectedKeys:[],activeIndex:"/account/settings/base",preview:{},option:{img:"/avatar2.jpg",info:!0,size:1,outputType:"jpeg",canScale:!1,autoCrop:!0,autoCropWidth:180,autoCropHeight:180,fixedBox:!0,fixed:!0,fixedNumber:[1,1]},pageTitle:""}},components:{},computed:{fadeColord(){return this.fadeColor(this.primaryColor,.1)},style(){return this.crumbsState?"margin:0 4px 4px;height: 100%;":"margin: 4px;height: 100%;"},getHeight(){return"overflow:auto;height:"+(this.screenHeight-24-20-10-5)+"px;"},getTitle(){let s="",e=this.$route.meta.title;return e==="\u57FA\u672C\u8BBE\u7F6E"?s="basicSettings":e==="\u5B89\u5168\u8BBE\u7F6E"?s="securitySetting":e==="\u4E2A\u6027\u5316\u8BBE\u7F6E"?s="personalization":e==="\u65B0\u6D88\u606F\u901A\u77E5"?s="notify":e==="\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1"&&(s="bindenterpriseWechat"),s===""?e:this.$i18nt("gd.account."+s)},...H.mapGetters(["userInfo","screenHeight","primaryColor","multiTab"])},mounted(){this.updateMenu()},methods:{onOpenChange(s,e){this.openKeys=openKeys},updateMenu(){const s=this.$route.matched.concat();this.activeIndex=s.pop().path},clickWx(s,e){const i=this.$route.matched.concat();this.activeIndex=i.pop().path},fadeColor(s,e){let i=parseInt(s.substring(1,3),16),a=parseInt(s.substring(3,5),16),u=parseInt(s.substring(5,7),16);return`rgba(${i},${a},${u},${e})`}},watch:{$route(s){this.updateMenu()}}};var ne=function(){var e=this,i=e._self._c;return i("div",{staticClass:"page-header-index-wide",style:e.style},[i("el-card",{style:e.getHeight,attrs:{bordered:!1,bodyStyle:{padding:"16px 0",height:e.getHeight+"px"}}},[i("div",{staticClass:"account-settings-info-main"},[i("div",{staticClass:"account-settings-info-left",style:{"--dilute":e.fadeColord}},[i("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{router:"","default-active":e.$route.path,mode:"vertical"},on:{select:e.clickWx}},[i("el-menu-item",{attrs:{index:"/account/settings/base"}},[e._v(e._s(e.$i18nt("gd.account.basicSettings")))]),i("el-menu-item",{attrs:{index:"/account/settings/security"}},[e._v(e._s(e.$i18nt("gd.account.securitySetting")))]),i("el-menu-item",{attrs:{index:"/account/settings/custom"}},[e._v(e._s(e.$i18nt("gd.account.personalization")))])],1)],1),i("div",{staticClass:"account-settings-info-right"},[i("div",{staticClass:"account-settings-info-title"},[i("span",[e._v(e._s(e.getTitle))])]),e.multiTab?i("keep-alive",[i("router-view",{key:e.$route.fullPath})],1):i("router-view",{key:e.$route.fullPath})],1)])])],1)},ie=[],re=H.normalizeComponent(te,ne,ie,!1,null,"0ab9cb32",null,null);const P=re.exports;P.install=function(s){s.component(P.name,P)};const oe={props:{height:{type:Number,default:100}},name:"GdBaseSettings",components:{AvatarModal:()=>Promise.resolve().then(()=>ye)},data(){return{preview:{},sexData:[],langData:[],timezoneData:[],currencyData:[],option:{img:null,info:!0,size:1,outputType:"jpeg",canScale:!1,autoCrop:!0,autoCropWidth:180,autoCropHeight:180,fixedBox:!0,fixed:!0,fixedNumber:[1,1],birthdayString:""},spinning:!1,ruleForm:{},rules:{}}},computed:{getHeight(){return this.height},...H.mapGetters(["userInfo","locale","language"])},mounted(){this.initUserInfo()},methods:{changeLanguage(s){let e=this.langData.filter(i=>i.id==s)[0];this.$store.dispatch("Language",e.code)},initUserInfo(){this.spinning=!0,setTimeout(()=>{this.languageChange(),this.timezoneChange(),this.currencyChange(),this.ruleForm={birthday:this.userInfo.birthday?this.userInfo.birthday:void 0,nickName:this.userInfo.nickname,gender:this.userInfo.gender.toString(),email:this.userInfo.email,phone:this.userInfo.phone,tel:this.userInfo.tel,languageId:this.userInfo.languageid,currencyId:this.userInfo.currencyid,timezoneId:this.userInfo.timezoneid},this.birthdayString=this.userInfo.birthday,this.userInfo.avatar!=null?z.sysFileInfoPreview({id:this.userInfo.avatar}).then(s=>{this.option.img=window.URL.createObjectURL(new Blob([s]))}).catch(s=>{this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+s.message)}):this.option.img="/avatar2.jpg",this.getSexData(),this.spinning=!1},100)},onChange(s,e){console.log(s),this.birthdayString=s},currencyChange(){V.sysCurrencyPage().then(s=>{s.success&&(this.currencyData=s.data.rows,ee.default.ls.set("currencyData",s.data.rows))})},timezoneChange(){Z.sysTimezonePage().then(s=>{s.success&&(this.timezoneData=s.data.rows)})},languageChange(){G.sysLanguagePage().then(s=>{s.success&&(this.langData=s.data.rows)})},submitUserInfo(){this.spinning||this.$refs.ruleForm.validate(s=>{s&&(this.spinning=!0,this.ruleForm.birthday=this.birthdayString,this.ruleForm.id=this.userInfo.id,W.sysUserUpdateInfo(this.ruleForm).then(e=>{if(e.success){let i=this.langData.filter(a=>a.id==this.ruleForm.languageId)[0];this.$store.dispatch("Language",i.code),this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),setTimeout(()=>{this.$store.dispatch("GetInfo").then(()=>{})},500)}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message);this.spinning=!1}))})},getSexData(){this.sexData=this.$options.filters.dictData("gender")},setavatar(s){z.sysFileInfoPreview({id:s}).then(e=>{this.option.img=window.URL.createObjectURL(new Blob([e]))}).catch(e=>{this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+e.message)}),this.$store.dispatch("GetInfo").then(()=>{})}}};var se=function(){var e=this,i=e._self._c;return i("div",{staticClass:"account-settings-info-view",staticStyle:{height:"100px"}},[i("el-row",{attrs:{gutter:16}},[i("el-col",{attrs:{md:24,lg:16}},[i("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"label-width":"110px","label-position":"top"},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:e.$i18nt("gd.account.nickname","\u6635\u79F0"),prop:"nickName"}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.nickName,callback:function(a){e.$set(e.ruleForm,"nickName",a)},expression:"ruleForm.nickName"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.birthday","\u751F\u65E5"),prop:"birthday",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.onChange},model:{value:e.ruleForm.birthday,callback:function(a){e.$set(e.ruleForm,"birthday",a)},expression:"ruleForm.birthday"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.sex","\u6027\u522B"),prop:"gender",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-radio-group",{model:{value:e.ruleForm.gender,callback:function(a){e.$set(e.ruleForm,"gender",a)},expression:"ruleForm.gender"}},e._l(e.sexData,function(a,u){return i("el-radio",{key:u,attrs:{label:a.code}},[e._v(" "+e._s(a.name)+" ")])}),1)],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.phone","\u624B\u673A\u53F7"),prop:"phone",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},{pattern:/^1[3-9]\d{9}$/,message:this.$i18nt("gd.account.phoneInvalid","\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801"),trigger:"blur"}]}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.phone,callback:function(a){e.$set(e.ruleForm,"phone",a)},expression:"ruleForm.phone"}})],1),i("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.account.tel","\u7535\u8BDD"),prop:"tel"}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.tel,callback:function(a){e.$set(e.ruleForm,"tel",a)},expression:"ruleForm.tel"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.email","\u7535\u5B50\u90AE\u4EF6"),prop:"email",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),trigger:"blur"},{type:"email",message:e.$i18nt("gd.account.emailTip","\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!"),trigger:["blur","change"]}]}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.email,callback:function(a){e.$set(e.ruleForm,"email",a)},expression:"ruleForm.email"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.language","\u9ED8\u8BA4\u8BED\u8A00"),prop:"languageId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{select:e.changeLanguage},model:{value:e.ruleForm.languageId,callback:function(a){e.$set(e.ruleForm,"languageId",a)},expression:"ruleForm.languageId"}},e._l(e.langData,function(a,u){return i("el-option",{key:u,attrs:{value:a.id,label:a.name}})}),1)],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.currency","\u9ED8\u8BA4\u8D27\u5E01"),prop:"currencyId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleForm.currencyId,callback:function(a){e.$set(e.ruleForm,"currencyId",a)},expression:"ruleForm.currencyId"}},e._l(e.currencyData,function(a,u){return i("el-option",{key:u,attrs:{value:a.id,label:a.name}})}),1)],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.timeZone","\u9ED8\u8BA4\u65F6\u533A"),prop:"timezoneId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleForm.timezoneId,callback:function(a){e.$set(e.ruleForm,"timezoneId",a)},expression:"ruleForm.timezoneId"}},e._l(e.timezoneData,function(a,u){return i("el-option",{key:u,attrs:{value:a.id,label:a.name}})}),1)],1),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.submitUserInfo}},[e._v(" "+e._s(e.$i18nt("gd.account.updateInformation","\u66F4\u65B0\u57FA\u672C\u4FE1\u606F"))+" ")])],1)],1)],1),i("el-col",{style:{minHeight:"180px"},attrs:{md:24,lg:8}},[i("div",{staticClass:"ant-upload-preview",on:{click:function(a){return e.$refs.modal.edit(e.userInfo.id)}}},[i("i",{staticClass:"el-icon-upload upload-icon"}),i("div",{staticClass:"mask"},[i("i",{staticClass:"el-icon-plus"})]),i("img",{attrs:{src:e.option.img}})])])],1),i("avatar-modal",{ref:"modal",on:{ok:e.setavatar}})],1)},ae=[],ce=H.normalizeComponent(oe,se,ae,!1,null,"981e4d97",null,null);const X=ce.exports;X.install=function(s){s.component(X.name,X)};const le={name:"GdCustomSettings",data(){return{colorList:B.colorList,options:[],homePage:["uvgsxjpu","ujhmcamph","uwcscihbx"],account:"",echartsList:[],value:0,primaryColors:this.primaryColor,propOptions:[],propOptionsOld:[],list:null,listOptions:[],listOptionsOld:[],presentText:[]}},computed:{predefine(){let s=[];return B.colorList.forEach(e=>{s.push(e.color)}),s},...H.mapGetters(["userInfo","addRouters","theme","primaryColor","echartsColor","systemInfo"])},watch:{primaryColor(){this.primaryColors=this.primaryColor}},methods:{okColor(s){this.$store.dispatch("EchartsColor",s),this.echartsList=[...s]},getColor(){this.echartsList=[...this.echartsColor]},renew(){let s=this,e=this.homePage,i=!1;if(e.length==0&&(i=!0),e.length>1&&(i=!0),!i){s.$message.error(s.$i18nt("gd.field.replenishData","\u8BF7\u8865\u5145\u6570\u636E"));return}this.$confirm(this.$i18nt("gd.https.configThemeContent","\u662F\u5426\u66F4\u65B0\u4E2A\u4EBA\u9996\u9875\u914D\u7F6E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.saveOk","\u786E\u5B9A\u4FDD\u5B58"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,u,d)=>{this.renewHand(a,u,d,this.homePage)}})},renewHand(s,e,i,a){if(s!=="confirm"){i();return}let u=[],d=W.sysUserConfigTheme({configTheme:a.join(",")}).then(C=>C);u.push(d),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(u).then(C=>{i(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0;const $=C.filter(S=>!S.success);$.length===0?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$store.dispatch("GetInfo").then(()=>{})):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+$[0].message)})},init(){this.value=this.theme=="dark"?1:0,this.homePage=this.userInfo.configtheme?this.userInfo.configtheme.split(","):[],this.systemInfo.id?this.systemInfo:window.$systemInfo},lazyLoad(s,e){const{level:i,value:a}=s;if(this.options.length===0){this.geData().then(()=>{if(this.presentText.length<this.homePage.length){const u=this.options.filter(d=>d.code===this.homePage[0])[0];this.presentText=u?this.presentText.concat([u.label]):this.presentText}e(this.options)});return}this.getMenuListAll(a).then(u=>{if(this.presentText.length<this.homePage.length&&i===2){this.presentText=this.presentText.concat([s.label]);const C=s.children.filter($=>$.value===this.homePage[i])[0];this.presentText=C?this.presentText.concat([C.label]):this.presentText}const d=this.$refs.cascader.presentText;this.presentText.length===this.homePage.length&&d===null&&(this.$refs.cascader.presentText=this.presentText.join(" / ")),e(u)})},geData(){return J.getAppList({}).then(s=>{if(s.success){let e=s.data.map(i=>{let a=this.userInfo.apps.filter(u=>u.code==i.code)[0];if(a!=null)return i.leaf=a==null,i.value=i.code,i.label=this.$i18nt(`Dynamics.${i.transkey}`,i.name),i.loading=!1,i});return e=e.filter(i=>i!==void 0),this.options=[...e],this.listOptionsOld=JSON.stringify(e),new Promise(i=>{i()})}})},getMenuListAll(s){return Promise.all([this.getMenuList({application:s}),this.sysMenuChange({application:s})]).then(e=>{let i=e[0].data,a=e[1].data;return i.map((u,d)=>{let C=a.filter($=>$.path==u.router);return i[d].value=u.router,i[d].label=this.$i18nt(`Dynamics.${u.transkey}`,u.name),i[d].leaf=u.children.length==0,i[d].disabled=C.length==0,u.children.length==0?i[d].children=null:u.children.map(($,S)=>{let L=a.filter(k=>k.path==$.router);i[d].children[S].value=$.router,i[d].children[S].label=this.$i18nt(`Dynamics.${$.transkey}`,$.name),i[d].children[S].children=[],i[d].children[S].leaf=!0,i[d].children[S].disabled=L.length==0}),u}),i.map(u=>{u.children=u.children?u.children.filter(d=>d.disabled==!1):[]}),i})},getMenuList(s){return N.getMenuList(s).then(e=>e)},sysMenuChange(s){return N.sysMenuChange(s).then(e=>e)},onChangeCascader(s){const e=this.$refs.cascader.presentText;this.presentText=e!==null?e.split(" / "):[]},onChange(s){s?this.$store.dispatch("ToggleTheme","dark"):this.$store.dispatch("ToggleTheme","light")},async changeColor(s){const e=this,i=this.primaryColor;if(typeof s!="string")return;const a=this.$message({message:e.$i18nt("gd.theme.switchingTopics"),duration:0,iconClass:"el-icon-loading"}),u=this.getThemeCluster(s.replace("#","")),d=this.getThemeCluster(i.replace("#","")),C=(L,k)=>()=>{const T=this.getThemeCluster(this.primaryColor.replace("#","")),n=this.updateStyle(this[L],T,u);let t=document.getElementById(k);t||(t=document.createElement("style"),t.setAttribute("id",k),document.head.appendChild(t)),t.innerText=n};this.chalk||await Promise.resolve().then(()=>require("./element-theme-chalk.dee12271.js")).then(L=>{this.chalk=L.default}),C("chalk","chalk-style")(),[].slice.call(document.querySelectorAll("style")).filter(L=>{const k=L.innerText;return new RegExp(i,"i").test(k)&&!/Chalk Variables/.test(k)}).forEach(L=>{const{innerText:k}=L;typeof k=="string"&&(L.innerText=this.updateStyle(k,d,u))}),this.$store.dispatch("ToggleColor",s),window.document.body.style=`--color:${s}`,this.$nextTick(()=>{setTimeout(()=>{a.close()},200)})},updateStyle(s,e,i){let a=s;return e.forEach((u,d)=>{a=a.replace(new RegExp(u,"ig"),i[d])}),a},getThemeCluster(s){const e=(u,d)=>{let C=parseInt(u.slice(0,2),16),$=parseInt(u.slice(2,4),16),S=parseInt(u.slice(4,6),16);return d===0?[C,$,S].join(","):(C+=Math.round(d*(255-C)),$+=Math.round(d*(255-$)),S+=Math.round(d*(255-S)),C=C.toString(16),$=$.toString(16),S=S.toString(16),`#${C}${$}${S}`)},i=(u,d)=>{let C=parseInt(u.slice(0,2),16),$=parseInt(u.slice(2,4),16),S=parseInt(u.slice(4,6),16);return C=Math.round((1-d)*C),$=Math.round((1-d)*$),S=Math.round((1-d)*S),C=C.toString(16),$=$.toString(16),S=S.toString(16),`#${C}${$}${S}`},a=[s];for(let u=0;u<=9;u++)a.push(e(s,Number((u/10).toFixed(2))));return a.push(i(s,.1)),a},traverse(s,e){let i=null;const a=u=>(u=u.filter((d,C)=>(d.children&&d.children.length>0&&a(d.children),d.value==s&&(i={...d}),!0)),u);return a(this.propOptions),i}},mounted(){this.getColor(),this.init(),this.primaryColor&&(this.primaryColors=this.primaryColor)}};var he=function(){var e=this,i=e._self._c;return i("div",{staticStyle:{"padding-top":"12px"}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",[e._v(e._s(e.$i18nt("gd.settings.overallStyle","\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E")))])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.overallStyleTip","\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-content paw grid-flex"},[i("el-switch",{attrs:{"active-text":e.$i18nt("gd.settings.darkness","\u767D\u8272"),"active-color":e.primaryColor,"inactive-text":e.$i18nt("gd.settings.white","\u6697\u8272"),"active-value":1,"inactive-value":0},on:{change:e.onChange},model:{value:e.value,callback:function(a){e.value=a},expression:"value"}})],1)])],1),i("el-divider"),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",[e._v(e._s(e.$i18nt("gd.settings.theme","\u4E3B\u9898\u8272")))])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.themeTip","\u9875\u9762\u4E3B\u9898\u914D\u8272"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-content paw grid-flex"},[i("el-color-picker",{ref:"colorPicker",staticClass:"theme-picker",attrs:{size:"small",predefine:e.predefine,"popper-class":"theme-picker-dropdown"},on:{change:e.changeColor},model:{value:e.primaryColors,callback:function(a){e.primaryColors=a},expression:"primaryColors"}})],1)])],1),i("el-divider"),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",[e._v(e._s(e.$i18nt("gd.settings.echartsColor","\u56FE\u8868\u8272")))])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.echartsColorStyle","\u56FE\u8868\u98CE\u683C\u914D\u8272"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-flex"},[e._l(e.echartsList,function(a,u){return[i("el-tooltip",{staticClass:"setting-drawer-theme-color-colorBlock",attrs:{content:a===0?e.$i18nt("gd.settings.followTheme","\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272"):a}},[i("el-tag",{attrs:{color:a===0?e.primaryColor:a}})],1)]}),i("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:function(a){return e.$refs.echartsTheme.open()}}},[e._v(" "+e._s(e.$i18nt("gd.btn.edit","\u7F16\u8F91"))+" ")])],2)])],1),i("el-divider"),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",[e._v(e._s(e.$i18nt("gd.settings.homepage","\u4E2A\u4EBA\u9996\u9875")))])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.homepageTip","\u914D\u7F6E\u540E\u7528\u6237\u767B\u5F55\u76F4\u63A5\u8FDB\u5165\u4E2A\u4EBA\u9996\u9875"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-flex"},[i("el-cascader",{ref:"cascader",staticStyle:{width:"240px"},attrs:{clearable:"",props:{lazy:!0,lazyLoad:e.lazyLoad}},on:{change:e.onChangeCascader},model:{value:e.homePage,callback:function(a){e.homePage=a},expression:"homePage"}}),i("span",{staticClass:"active-color",staticStyle:{"margin-left":"10px",cursor:"pointer"},on:{click:e.renew}},[e._v(" "+e._s(e.$i18nt("gd.btn.update","\u66F4\u65B0"))+" ")])],1)])],1),i("el-divider"),i("gd-color-editor",{ref:"echartsTheme",on:{ok:e.okColor}})],1)},ue=[],de=H.normalizeComponent(le,he,ue,!1,null,"b784faab",null,null);const F=de.exports;F.install=function(s){s.component(F.name,F)};const pe={name:"GdSecuritySettings",components:{UpdPwd:()=>Promise.resolve().then(()=>ke),weChatBind:()=>Promise.resolve().then(()=>He)},data(){return{isShow:!1,num:0,wxUserId:null,obj:{},appId:"",agentId:"",redirectURL:"",enterpriseNum:0,bindTitle:"\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1",dicsTitle:""}},watch:{language(s,e){this.changeLanguage()},userInfo(s,e){this.changUserInfo()}},mounted(){this.init()},computed:{...H.mapGetters(["userInfo","language"])},methods:{updPwd(){this.$refs.updPwd.open(this.userInfo.account,null,1)},bind(){this.$refs.weChatBind.open(this.obj,1)},getConfigInfo(){let s={code:"GDS_ENTERPRISE_WECHAT_LOGIN"};W.getConfigInfoByCode(s).then(e=>{this.enterpriseNum=e.data.value})},getConfigsBy(){let s={strCodes:"GDS_ENTERPRISE_WECHAT_CropID,GDS_ENTERPRISE_WECHAT_AgentId,GDS_ENTERPRISE_WECHAT_Redirect_URL"};W.getConfigsByCode(s).then(e=>{e.success&&(this.obj=e)})},getData(){K.getLoginUser().then(s=>{this.wxuserid=s.data.wxuserid})},changeLanguage(){this.init()},changUserInfo(){this.init()},init(){this.wxuserid=this.userInfo.wxuserid,this.getConfigInfo(),this.getData(),this.getConfigsBy()},getWeChat(s,e){let i=this;s.data.forEach((a,u)=>{a.code=="GDS_ENTERPRISE_WECHAT_CropID"&&(i.appId=a.value),a.code=="GDS_ENTERPRISE_WECHAT_AgentId"&&(i.agentId=a.value),a.code=="GDS_ENTERPRISE_WECHAT_Redirect_URL"&&(i.redirectURL=a.value)}),setTimeout(()=>{i.wwLogin=ww.createWWLoginPanel({el:"#wx_qrcode",params:{login_type:"CorpApp",appid:i.appId,agentid:i.agentId,redirect_uri:i.redirectURL,state:"loginState",redirect_type:"callback",panel_size:"middle",lang:e=="zh_CN"?"zh":"en"},onCheckWeComLogin({isWeComLogin:a}){console.log(a)},onLoginSuccess({code:a}){i.code=a,i.$refs.updPwd.open(i.userInfo.account,a,2),console.log(a)},onLoginFail(a){}})},500)},bindCode(s){s==1||s==0?this.getData():s==-1?this.getConfigsBy():s==2&&this.getConfigsBy()}}};var ge=function(){var e=this,i=e._self._c;return i("div",{staticStyle:{"padding-top":"12px"}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"grid-content bg-purple"},[e._v(" "+e._s(e.$i18nt("gd.account.passWord","\u8D26\u6237\u5BC6\u7801"))+" ")])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.account.strength","\u5F53\u524D\u5BC6\u7801\u5F3A\u5EA6"))+":"+e._s(e.$i18nt("gd.account.strong","\u5F3A"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-content paw grid-flex"},[i("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:e.updPwd}},[e._v(" "+e._s(e.$i18nt("gd.account.changePaw","\u4FEE\u6539\u5BC6\u7801"))+" ")])])])],1),i("el-divider"),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"grid-content bd",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.account.bindenterpriseWechat","\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1"))+" ")])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content state"},[e._v(" "+e._s(e.$i18nt("gd.account.currentState","\u5F53\u524D\u72B6\u6001"))+":"+e._s(e.wxUserId==null||e.wxUserId==""?e.$i18nt("gd.state.no","\u5426"):e.$i18nt("gd.state.yes","\u662F"))+" ")])]),e.wxUserId==null||e.wxUserId==""?i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-content paw grid-flex"},[i("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:e.bind}},[e._v(e._s(e.$i18nt("gd.account.bind","\u7ED1\u5B9A")))])])]):e._e()],1),i("upd-pwd",{ref:"updPwd",attrs:{isShow:e.isShow},on:{bindCode:e.bindCode}}),i("weChatBind",{ref:"weChatBind",on:{bindCode:e.bindCode}})],1)},fe=[],me=H.normalizeComponent(pe,ge,fe,!1,null,"21459f3a",null,null);const Y=me.exports;Y.install=function(s){s.component(Y.name,Y)};var U={exports:{}};(function(s,e){(function(i,a){s.exports=a()})(window,function(){return function(i){var a={};function u(d){if(a[d])return a[d].exports;var C=a[d]={i:d,l:!1,exports:{}};return i[d].call(C.exports,C,C.exports,u),C.l=!0,C.exports}return u.m=i,u.c=a,u.d=function(d,C,$){u.o(d,C)||Object.defineProperty(d,C,{enumerable:!0,get:$})},u.r=function(d){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},u.t=function(d,C){if(1&C&&(d=u(d)),8&C||4&C&&typeof d=="object"&&d&&d.__esModule)return d;var $=Object.create(null);if(u.r($),Object.defineProperty($,"default",{enumerable:!0,value:d}),2&C&&typeof d!="string")for(var S in d)u.d($,S,function(L){return d[L]}.bind(null,S));return $},u.n=function(d){var C=d&&d.__esModule?function(){return d.default}:function(){return d};return u.d(C,"a",C),C},u.o=function(d,C){return Object.prototype.hasOwnProperty.call(d,C)},u.p="",u(u.s=6)}([function(i,a,u){var d=u(2);typeof d=="string"&&(d=[[i.i,d,""]]);var C={hmr:!0,transform:void 0,insertInto:void 0};u(4)(d,C),d.locals&&(i.exports=d.locals)},function(i,a,u){var d=u(0);u.n(d).a},function(i,a,u){(i.exports=u(3)(!1)).push([i.i,`
|
|
2
|
+
.vue-cropper[data-v-6dae58fd] {
|
|
3
|
+
position: relative;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
user-select: none;
|
|
8
|
+
-webkit-user-select: none;
|
|
9
|
+
-moz-user-select: none;
|
|
10
|
+
-ms-user-select: none;
|
|
11
|
+
direction: ltr;
|
|
12
|
+
touch-action: none;
|
|
13
|
+
text-align: left;
|
|
14
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");
|
|
15
|
+
}
|
|
16
|
+
.cropper-box[data-v-6dae58fd],
|
|
17
|
+
.cropper-box-canvas[data-v-6dae58fd],
|
|
18
|
+
.cropper-drag-box[data-v-6dae58fd],
|
|
19
|
+
.cropper-crop-box[data-v-6dae58fd],
|
|
20
|
+
.cropper-face[data-v-6dae58fd] {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 0;
|
|
23
|
+
right: 0;
|
|
24
|
+
bottom: 0;
|
|
25
|
+
left: 0;
|
|
26
|
+
user-select: none;
|
|
27
|
+
}
|
|
28
|
+
.cropper-box-canvas img[data-v-6dae58fd] {
|
|
29
|
+
position: relative;
|
|
30
|
+
text-align: left;
|
|
31
|
+
user-select: none;
|
|
32
|
+
transform: none;
|
|
33
|
+
max-width: none;
|
|
34
|
+
max-height: none;
|
|
35
|
+
}
|
|
36
|
+
.cropper-box[data-v-6dae58fd] {
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
}
|
|
39
|
+
.cropper-move[data-v-6dae58fd] {
|
|
40
|
+
cursor: move;
|
|
41
|
+
}
|
|
42
|
+
.cropper-crop[data-v-6dae58fd] {
|
|
43
|
+
cursor: crosshair;
|
|
44
|
+
}
|
|
45
|
+
.cropper-modal[data-v-6dae58fd] {
|
|
46
|
+
background: rgba(0, 0, 0, 0.5);
|
|
47
|
+
}
|
|
48
|
+
.cropper-crop-box[data-v-6dae58fd] {
|
|
49
|
+
/*border: 2px solid #39f;*/
|
|
50
|
+
}
|
|
51
|
+
.cropper-view-box[data-v-6dae58fd] {
|
|
52
|
+
display: block;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
width: 100%;
|
|
55
|
+
height: 100%;
|
|
56
|
+
outline: 1px solid #39f;
|
|
57
|
+
outline-color: rgba(51, 153, 255, 0.75);
|
|
58
|
+
user-select: none;
|
|
59
|
+
}
|
|
60
|
+
.cropper-view-box img[data-v-6dae58fd] {
|
|
61
|
+
user-select: none;
|
|
62
|
+
text-align: left;
|
|
63
|
+
max-width: none;
|
|
64
|
+
max-height: none;
|
|
65
|
+
}
|
|
66
|
+
.cropper-face[data-v-6dae58fd] {
|
|
67
|
+
top: 0;
|
|
68
|
+
left: 0;
|
|
69
|
+
background-color: #fff;
|
|
70
|
+
opacity: 0.1;
|
|
71
|
+
}
|
|
72
|
+
.crop-info[data-v-6dae58fd] {
|
|
73
|
+
position: absolute;
|
|
74
|
+
left: 0px;
|
|
75
|
+
min-width: 65px;
|
|
76
|
+
text-align: center;
|
|
77
|
+
color: white;
|
|
78
|
+
line-height: 20px;
|
|
79
|
+
background-color: rgba(0, 0, 0, 0.8);
|
|
80
|
+
font-size: 12px;
|
|
81
|
+
}
|
|
82
|
+
.crop-line[data-v-6dae58fd] {
|
|
83
|
+
position: absolute;
|
|
84
|
+
display: block;
|
|
85
|
+
width: 100%;
|
|
86
|
+
height: 100%;
|
|
87
|
+
opacity: 0.1;
|
|
88
|
+
}
|
|
89
|
+
.line-w[data-v-6dae58fd] {
|
|
90
|
+
top: -3px;
|
|
91
|
+
left: 0;
|
|
92
|
+
height: 5px;
|
|
93
|
+
cursor: n-resize;
|
|
94
|
+
}
|
|
95
|
+
.line-a[data-v-6dae58fd] {
|
|
96
|
+
top: 0;
|
|
97
|
+
left: -3px;
|
|
98
|
+
width: 5px;
|
|
99
|
+
cursor: w-resize;
|
|
100
|
+
}
|
|
101
|
+
.line-s[data-v-6dae58fd] {
|
|
102
|
+
bottom: -3px;
|
|
103
|
+
left: 0;
|
|
104
|
+
height: 5px;
|
|
105
|
+
cursor: s-resize;
|
|
106
|
+
}
|
|
107
|
+
.line-d[data-v-6dae58fd] {
|
|
108
|
+
top: 0;
|
|
109
|
+
right: -3px;
|
|
110
|
+
width: 5px;
|
|
111
|
+
cursor: e-resize;
|
|
112
|
+
}
|
|
113
|
+
.crop-point[data-v-6dae58fd] {
|
|
114
|
+
position: absolute;
|
|
115
|
+
width: 8px;
|
|
116
|
+
height: 8px;
|
|
117
|
+
opacity: 0.75;
|
|
118
|
+
background-color: #39f;
|
|
119
|
+
border-radius: 100%;
|
|
120
|
+
}
|
|
121
|
+
.point1[data-v-6dae58fd] {
|
|
122
|
+
top: -4px;
|
|
123
|
+
left: -4px;
|
|
124
|
+
cursor: nw-resize;
|
|
125
|
+
}
|
|
126
|
+
.point2[data-v-6dae58fd] {
|
|
127
|
+
top: -5px;
|
|
128
|
+
left: 50%;
|
|
129
|
+
margin-left: -3px;
|
|
130
|
+
cursor: n-resize;
|
|
131
|
+
}
|
|
132
|
+
.point3[data-v-6dae58fd] {
|
|
133
|
+
top: -4px;
|
|
134
|
+
right: -4px;
|
|
135
|
+
cursor: ne-resize;
|
|
136
|
+
}
|
|
137
|
+
.point4[data-v-6dae58fd] {
|
|
138
|
+
top: 50%;
|
|
139
|
+
left: -4px;
|
|
140
|
+
margin-top: -3px;
|
|
141
|
+
cursor: w-resize;
|
|
142
|
+
}
|
|
143
|
+
.point5[data-v-6dae58fd] {
|
|
144
|
+
top: 50%;
|
|
145
|
+
right: -4px;
|
|
146
|
+
margin-top: -3px;
|
|
147
|
+
cursor: e-resize;
|
|
148
|
+
}
|
|
149
|
+
.point6[data-v-6dae58fd] {
|
|
150
|
+
bottom: -5px;
|
|
151
|
+
left: -4px;
|
|
152
|
+
cursor: sw-resize;
|
|
153
|
+
}
|
|
154
|
+
.point7[data-v-6dae58fd] {
|
|
155
|
+
bottom: -5px;
|
|
156
|
+
left: 50%;
|
|
157
|
+
margin-left: -3px;
|
|
158
|
+
cursor: s-resize;
|
|
159
|
+
}
|
|
160
|
+
.point8[data-v-6dae58fd] {
|
|
161
|
+
bottom: -5px;
|
|
162
|
+
right: -4px;
|
|
163
|
+
cursor: se-resize;
|
|
164
|
+
}
|
|
165
|
+
@media screen and (max-width: 500px) {
|
|
166
|
+
.crop-point[data-v-6dae58fd] {
|
|
167
|
+
position: absolute;
|
|
168
|
+
width: 20px;
|
|
169
|
+
height: 20px;
|
|
170
|
+
opacity: 0.45;
|
|
171
|
+
background-color: #39f;
|
|
172
|
+
border-radius: 100%;
|
|
173
|
+
}
|
|
174
|
+
.point1[data-v-6dae58fd] {
|
|
175
|
+
top: -10px;
|
|
176
|
+
left: -10px;
|
|
177
|
+
}
|
|
178
|
+
.point2[data-v-6dae58fd],
|
|
179
|
+
.point4[data-v-6dae58fd],
|
|
180
|
+
.point5[data-v-6dae58fd],
|
|
181
|
+
.point7[data-v-6dae58fd] {
|
|
182
|
+
display: none;
|
|
183
|
+
}
|
|
184
|
+
.point3[data-v-6dae58fd] {
|
|
185
|
+
top: -10px;
|
|
186
|
+
right: -10px;
|
|
187
|
+
}
|
|
188
|
+
.point4[data-v-6dae58fd] {
|
|
189
|
+
top: 0;
|
|
190
|
+
left: 0;
|
|
191
|
+
}
|
|
192
|
+
.point6[data-v-6dae58fd] {
|
|
193
|
+
bottom: -10px;
|
|
194
|
+
left: -10px;
|
|
195
|
+
}
|
|
196
|
+
.point8[data-v-6dae58fd] {
|
|
197
|
+
bottom: -10px;
|
|
198
|
+
right: -10px;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
`,""])},function(i,a){i.exports=function(u){var d=[];return d.toString=function(){return this.map(function(C){var $=function(S,L){var k=S[1]||"",T=S[3];if(!T)return k;if(L&&typeof btoa=="function"){var n=function(o){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"}(T),t=T.sources.map(function(o){return"/*# sourceURL="+T.sourceRoot+o+" */"});return[k].concat(t).concat([n]).join(`
|
|
202
|
+
`)}return[k].join(`
|
|
203
|
+
`)}(C,u);return C[2]?"@media "+C[2]+"{"+$+"}":$}).join("")},d.i=function(C,$){typeof C=="string"&&(C=[[null,C,""]]);for(var S={},L=0;L<this.length;L++){var k=this[L][0];typeof k=="number"&&(S[k]=!0)}for(L=0;L<C.length;L++){var T=C[L];typeof T[0]=="number"&&S[T[0]]||($&&!T[2]?T[2]=$:$&&(T[2]="("+T[2]+") and ("+$+")"),d.push(T))}},d}},function(i,a,u){var d={},C=function(c){var h;return function(){return h===void 0&&(h=c.apply(this,arguments)),h}}(function(){return window&&document&&document.all&&!window.atob}),$=function(c){var h={};return function(p,g){if(typeof p=="function")return p();if(h[p]===void 0){var w=function(v,b){return b?b.querySelector(v):document.querySelector(v)}.call(this,p,g);if(window.HTMLIFrameElement&&w instanceof window.HTMLIFrameElement)try{w=w.contentDocument.head}catch{w=null}h[p]=w}return h[p]}}(),S=null,L=0,k=[],T=u(5);function n(c,h){for(var p=0;p<c.length;p++){var g=c[p],w=d[g.id];if(w){w.refs++;for(var v=0;v<w.parts.length;v++)w.parts[v](g.parts[v]);for(;v<g.parts.length;v++)w.parts.push(m(g.parts[v],h))}else{var b=[];for(v=0;v<g.parts.length;v++)b.push(m(g.parts[v],h));d[g.id]={id:g.id,refs:1,parts:b}}}}function t(c,h){for(var p=[],g={},w=0;w<c.length;w++){var v=c[w],b=h.base?v[0]+h.base:v[0],_={css:v[1],media:v[2],sourceMap:v[3]};g[b]?g[b].parts.push(_):p.push(g[b]={id:b,parts:[_]})}return p}function o(c,h){var p=$(c.insertInto);if(!p)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var g=k[k.length-1];if(c.insertAt==="top")g?g.nextSibling?p.insertBefore(h,g.nextSibling):p.appendChild(h):p.insertBefore(h,p.firstChild),k.push(h);else if(c.insertAt==="bottom")p.appendChild(h);else{if(typeof c.insertAt!="object"||!c.insertAt.before)throw new Error(`[Style Loader]
|
|
204
|
+
|
|
205
|
+
Invalid value for parameter 'insertAt' ('options.insertAt') found.
|
|
206
|
+
Must be 'top', 'bottom', or Object.
|
|
207
|
+
(https://github.com/webpack-contrib/style-loader#insertat)
|
|
208
|
+
`);var w=$(c.insertAt.before,p);p.insertBefore(h,w)}}function r(c){if(c.parentNode===null)return!1;c.parentNode.removeChild(c);var h=k.indexOf(c);h>=0&&k.splice(h,1)}function l(c){var h=document.createElement("style");if(c.attrs.type===void 0&&(c.attrs.type="text/css"),c.attrs.nonce===void 0){var p=function(){return u.nc}();p&&(c.attrs.nonce=p)}return f(h,c.attrs),o(c,h),h}function f(c,h){Object.keys(h).forEach(function(p){c.setAttribute(p,h[p])})}function m(c,h){var p,g,w,v;if(h.transform&&c.css){if(!(v=typeof h.transform=="function"?h.transform(c.css):h.transform.default(c.css)))return function(){};c.css=v}if(h.singleton){var b=L++;p=S||(S=l(h)),g=x.bind(null,p,b,!1),w=x.bind(null,p,b,!0)}else c.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(p=function(_){var I=document.createElement("link");return _.attrs.type===void 0&&(_.attrs.type="text/css"),_.attrs.rel="stylesheet",f(I,_.attrs),o(_,I),I}(h),g=function(_,I,E){var A=E.css,O=E.sourceMap,M=I.convertToAbsoluteUrls===void 0&&O;(I.convertToAbsoluteUrls||M)&&(A=T(A)),O&&(A+=`
|
|
209
|
+
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(O))))+" */");var j=new Blob([A],{type:"text/css"}),R=_.href;_.href=URL.createObjectURL(j),R&&URL.revokeObjectURL(R)}.bind(null,p,h),w=function(){r(p),p.href&&URL.revokeObjectURL(p.href)}):(p=l(h),g=function(_,I){var E=I.css,A=I.media;if(A&&_.setAttribute("media",A),_.styleSheet)_.styleSheet.cssText=E;else{for(;_.firstChild;)_.removeChild(_.firstChild);_.appendChild(document.createTextNode(E))}}.bind(null,p),w=function(){r(p)});return g(c),function(_){if(_){if(_.css===c.css&&_.media===c.media&&_.sourceMap===c.sourceMap)return;g(c=_)}else w()}}i.exports=function(c,h){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(h=h||{}).attrs=typeof h.attrs=="object"?h.attrs:{},h.singleton||typeof h.singleton=="boolean"||(h.singleton=C()),h.insertInto||(h.insertInto="head"),h.insertAt||(h.insertAt="bottom");var p=t(c,h);return n(p,h),function(g){for(var w=[],v=0;v<p.length;v++){var b=p[v];(_=d[b.id]).refs--,w.push(_)}for(g&&n(t(g,h),h),v=0;v<w.length;v++){var _;if((_=w[v]).refs===0){for(var I=0;I<_.parts.length;I++)_.parts[I]();delete d[_.id]}}}};var y=function(){var c=[];return function(h,p){return c[h]=p,c.filter(Boolean).join(`
|
|
210
|
+
`)}}();function x(c,h,p,g){var w=p?"":g.css;if(c.styleSheet)c.styleSheet.cssText=y(h,w);else{var v=document.createTextNode(w),b=c.childNodes;b[h]&&c.removeChild(b[h]),b.length?c.insertBefore(v,b[h]):c.appendChild(v)}}},function(i,a){i.exports=function(u){var d=typeof window<"u"&&window.location;if(!d)throw new Error("fixUrls requires window.location");if(!u||typeof u!="string")return u;var C=d.protocol+"//"+d.host,$=C+d.pathname.replace(/\/[^\/]*$/,"/");return u.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(S,L){var k,T=L.trim().replace(/^"(.*)"$/,function(n,t){return t}).replace(/^'(.*)'$/,function(n,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(T)?S:(k=T.indexOf("//")===0?T:T.indexOf("/")===0?C+T:$+T.replace(/^\.\//,""),"url("+JSON.stringify(k)+")")})}},function(i,a,u){u.r(a);var d=function(){var n=this,t=n.$createElement,o=n._self._c||t;return o("div",{ref:"cropper",staticClass:"vue-cropper",on:{mouseover:n.scaleImg,mouseout:n.cancelScale}},[n.imgs?o("div",{staticClass:"cropper-box"},[o("div",{directives:[{name:"show",rawName:"v-show",value:!n.loading,expression:"!loading"}],staticClass:"cropper-box-canvas",style:{width:n.trueWidth+"px",height:n.trueHeight+"px",transform:"scale("+n.scale+","+n.scale+") translate3d("+n.x/n.scale+"px,"+n.y/n.scale+"px,0)rotateZ("+90*n.rotate+"deg)"}},[o("img",{ref:"cropperImg",attrs:{src:n.imgs,alt:"cropper-img"}})])]):n._e(),n._v(" "),o("div",{staticClass:"cropper-drag-box",class:{"cropper-move":n.move&&!n.crop,"cropper-crop":n.crop,"cropper-modal":n.cropping},on:{mousedown:n.startMove,touchstart:n.startMove}}),n._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:n.cropping,expression:"cropping"}],staticClass:"cropper-crop-box",style:{width:n.cropW+"px",height:n.cropH+"px",transform:"translate3d("+n.cropOffsertX+"px,"+n.cropOffsertY+"px,0)"}},[o("span",{staticClass:"cropper-view-box"},[o("img",{style:{width:n.trueWidth+"px",height:n.trueHeight+"px",transform:"scale("+n.scale+","+n.scale+") translate3d("+(n.x-n.cropOffsertX)/n.scale+"px,"+(n.y-n.cropOffsertY)/n.scale+"px,0)rotateZ("+90*n.rotate+"deg)"},attrs:{src:n.imgs,alt:"cropper-img"}})]),n._v(" "),o("span",{staticClass:"cropper-face cropper-move",on:{mousedown:n.cropMove,touchstart:n.cropMove}}),n._v(" "),n.info?o("span",{staticClass:"crop-info",style:{top:n.cropInfo.top}},[n._v(n._s(this.cropInfo.width)+" \xD7 "+n._s(this.cropInfo.height))]):n._e(),n._v(" "),n.fixedBox?n._e():o("span",[o("span",{staticClass:"crop-line line-w",on:{mousedown:function(r){n.changeCropSize(r,!1,!0,0,1)},touchstart:function(r){n.changeCropSize(r,!1,!0,0,1)}}}),n._v(" "),o("span",{staticClass:"crop-line line-a",on:{mousedown:function(r){n.changeCropSize(r,!0,!1,1,0)},touchstart:function(r){n.changeCropSize(r,!0,!1,1,0)}}}),n._v(" "),o("span",{staticClass:"crop-line line-s",on:{mousedown:function(r){n.changeCropSize(r,!1,!0,0,2)},touchstart:function(r){n.changeCropSize(r,!1,!0,0,2)}}}),n._v(" "),o("span",{staticClass:"crop-line line-d",on:{mousedown:function(r){n.changeCropSize(r,!0,!1,2,0)},touchstart:function(r){n.changeCropSize(r,!0,!1,2,0)}}}),n._v(" "),o("span",{staticClass:"crop-point point1",on:{mousedown:function(r){n.changeCropSize(r,!0,!0,1,1)},touchstart:function(r){n.changeCropSize(r,!0,!0,1,1)}}}),n._v(" "),o("span",{staticClass:"crop-point point2",on:{mousedown:function(r){n.changeCropSize(r,!1,!0,0,1)},touchstart:function(r){n.changeCropSize(r,!1,!0,0,1)}}}),n._v(" "),o("span",{staticClass:"crop-point point3",on:{mousedown:function(r){n.changeCropSize(r,!0,!0,2,1)},touchstart:function(r){n.changeCropSize(r,!0,!0,2,1)}}}),n._v(" "),o("span",{staticClass:"crop-point point4",on:{mousedown:function(r){n.changeCropSize(r,!0,!1,1,0)},touchstart:function(r){n.changeCropSize(r,!0,!1,1,0)}}}),n._v(" "),o("span",{staticClass:"crop-point point5",on:{mousedown:function(r){n.changeCropSize(r,!0,!1,2,0)},touchstart:function(r){n.changeCropSize(r,!0,!1,2,0)}}}),n._v(" "),o("span",{staticClass:"crop-point point6",on:{mousedown:function(r){n.changeCropSize(r,!0,!0,1,2)},touchstart:function(r){n.changeCropSize(r,!0,!0,1,2)}}}),n._v(" "),o("span",{staticClass:"crop-point point7",on:{mousedown:function(r){n.changeCropSize(r,!1,!0,0,2)},touchstart:function(r){n.changeCropSize(r,!1,!0,0,2)}}}),n._v(" "),o("span",{staticClass:"crop-point point8",on:{mousedown:function(r){n.changeCropSize(r,!0,!0,2,2)},touchstart:function(r){n.changeCropSize(r,!0,!0,2,2)}}})])])])};d._withStripped=!0;var C={};C.getData=function(n){return new Promise(function(t,o){var r={};(function(l){var f=null;return new Promise(function(m,y){if(l.src)if(/^data\:/i.test(l.src))f=function(h){h=h.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var p=atob(h),g=p.length,w=new ArrayBuffer(g),v=new Uint8Array(w),b=0;b<g;b++)v[b]=p.charCodeAt(b);return w}(l.src),m(f);else if(/^blob\:/i.test(l.src)){var x=new FileReader;x.onload=function(h){f=h.target.result,m(f)},function(h,p){var g=new XMLHttpRequest;g.open("GET",h,!0),g.responseType="blob",g.onload=function(w){this.status!=200&&this.status!==0||p(this.response)},g.send()}(l.src,function(h){x.readAsArrayBuffer(h)})}else{var c=new XMLHttpRequest;c.onload=function(){if(this.status!=200&&this.status!==0)throw"Could not load image";f=c.response,m(f),c=null},c.open("GET",l.src,!0),c.responseType="arraybuffer",c.send(null)}else y("img error")})})(n).then(function(l){r.arrayBuffer=l,r.orientation=function(f){var m,y,x,c,h,p,g,w,v,b=new DataView(f),_=b.byteLength;if(b.getUint8(0)===255&&b.getUint8(1)===216)for(w=2;w<_;){if(b.getUint8(w)===255&&b.getUint8(w+1)===225){p=w;break}w++}if(p&&(y=p+10,function(I,E,A){var O,M="";for(O=E,A+=E;O<A;O++)M+=String.fromCharCode(I.getUint8(O));return M}(b,p+4,4)==="Exif"&&(h=b.getUint16(y),((c=h===18761)||h===19789)&&b.getUint16(y+2,c)===42&&(x=b.getUint32(y+4,c))>=8&&(g=y+x))),g){for(_=b.getUint16(g,c),v=0;v<_;v++)if(w=g+12*v+2,b.getUint16(w,c)===274){w+=8,m=b.getUint16(w,c);break}}return m}(l),t(r)}).catch(function(l){o(l)})})};var $=C,S={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:function(){return 10}}},computed:{cropInfo:function(){var n={};if(n.top=this.cropOffsertY>21?"-21px":"0px",n.width=this.cropW>0?this.cropW:0,n.height=this.cropH>0?this.cropH:0,this.infoTrue){var t=1;this.high&&!this.full&&(t=window.devicePixelRatio),this.enlarge!==1&!this.full&&(t=Math.abs(Number(this.enlarge))),n.width=n.width*t,n.height=n.height*t,this.full&&(n.width=n.width/this.scale,n.height=n.height/this.scale)}return n.width=n.width.toFixed(0),n.height=n.height.toFixed(0),n},isIE:function(){var n=!!window.ActiveXObject||"ActiveXObject"in window;return n},passive:function(){return this.isIE?null:{passive:!1}}},watch:{img:function(){this.checkedImg()},imgs:function(n){n!==""&&this.reload()},cropW:function(){this.showPreview()},cropH:function(){this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(n,t){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(n){n&&this.goAutoCrop()},autoCropWidth:function(){this.autoCrop&&this.goAutoCrop()},autoCropHeight:function(){this.autoCrop&&this.goAutoCrop()},mode:function(){this.checkedImg()},rotate:function(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion:function(n){for(var t=navigator.userAgent.split(" "),o="",r=new RegExp(n,"i"),l=0;l<t.length;l++)r.test(t[l])&&(o=t[l]);return o?o.split("/")[1].split("."):["0","0","0"]},checkOrientationImage:function(n,t,o,r){var l=this;if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){var f=this.getVersion("version");f[0]>13&&f[1]>1&&(t=-1)}else{var m=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(m){var y=m[1];((y=y.split("_"))[0]>13||y[0]>=13&&y[1]>=4)&&(t=-1)}}var x=document.createElement("canvas"),c=x.getContext("2d");switch(c.save(),t){case 2:x.width=o,x.height=r,c.translate(o,0),c.scale(-1,1);break;case 3:x.width=o,x.height=r,c.translate(o/2,r/2),c.rotate(180*Math.PI/180),c.translate(-o/2,-r/2);break;case 4:x.width=o,x.height=r,c.translate(0,r),c.scale(1,-1);break;case 5:x.height=o,x.width=r,c.rotate(.5*Math.PI),c.scale(1,-1);break;case 6:x.width=r,x.height=o,c.translate(r/2,o/2),c.rotate(90*Math.PI/180),c.translate(-o/2,-r/2);break;case 7:x.height=o,x.width=r,c.rotate(.5*Math.PI),c.translate(o,-r),c.scale(-1,1);break;case 8:x.height=o,x.width=r,c.translate(r/2,o/2),c.rotate(-90*Math.PI/180),c.translate(-o/2,-r/2);break;default:x.width=o,x.height=r}c.drawImage(n,0,0,o,r),c.restore(),x.toBlob(function(h){var p=URL.createObjectURL(h);URL.revokeObjectURL(l.imgs),l.imgs=p},"image/"+this.outputType,1)},checkedImg:function(){var n=this;if(this.img===null||this.img==="")return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();var t=new Image;if(t.onload=function(){if(n.img==="")return n.$emit("imgLoad","error"),n.$emit("img-load","error"),!1;var r=t.width,l=t.height;$.getData(t).then(function(f){n.orientation=f.orientation||1;var m=n.maxImgSize;!n.orientation&&r<m&l<m?n.imgs=n.img:(r>m&&(l=l/r*m,r=m),l>m&&(r=r/l*m,l=m),n.checkOrientationImage(t,n.orientation,r,l))})},t.onerror=function(){n.$emit("imgLoad","error"),n.$emit("img-load","error")},this.img.substr(0,4)!=="data"&&(t.crossOrigin=""),this.isIE){var o=new XMLHttpRequest;o.onload=function(){var r=URL.createObjectURL(this.response);t.src=r},o.open("GET",this.img,!0),o.responseType="blob",o.send()}else t.src=this.img},startMove:function(n){if(n.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=(n.clientX?n.clientX:n.touches[0].clientX)-this.x,this.moveY=(n.clientY?n.clientY:n.touches[0].clientY)-this.y,n.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),n.touches.length==2&&(this.touches=n.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=n.offsetX?n.offsetX:n.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=n.offsetY?n.offsetY:n.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX=n.clientX?n.clientX:n.touches[0].clientX,this.cropY=n.clientY?n.clientY:n.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale:function(n){var t=this;n.preventDefault();var o=this.scale,r=this.touches[0].clientX,l=this.touches[0].clientY,f=n.touches[0].clientX,m=n.touches[0].clientY,y=this.touches[1].clientX,x=this.touches[1].clientY,c=n.touches[1].clientX,h=n.touches[1].clientY,p=Math.sqrt(Math.pow(r-y,2)+Math.pow(l-x,2)),g=Math.sqrt(Math.pow(f-c,2)+Math.pow(m-h,2))-p,w=1,v=(w=(w=w/this.trueWidth>w/this.trueHeight?w/this.trueHeight:w/this.trueWidth)>.1?.1:w)*g;if(!this.touchNow){if(this.touchNow=!0,g>0?o+=Math.abs(v):g<0&&o>Math.abs(v)&&(o-=Math.abs(v)),this.touches=n.touches,setTimeout(function(){t.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,o))return!1;this.scale=o}},cancelTouchScale:function(n){window.removeEventListener("touchmove",this.touchScale)},moveImg:function(n){var t=this;if(n.preventDefault(),n.touches&&n.touches.length===2)return this.touches=n.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var o,r,l=n.clientX?n.clientX:n.touches[0].clientX,f=n.clientY?n.clientY:n.touches[0].clientY;o=l-this.moveX,r=f-this.moveY,this.$nextTick(function(){if(t.centerBox){var m,y,x,c,h=t.getImgAxis(o,r,t.scale),p=t.getCropAxis(),g=t.trueHeight*t.scale,w=t.trueWidth*t.scale;switch(t.rotate){case 1:case-1:case 3:case-3:m=t.cropOffsertX-t.trueWidth*(1-t.scale)/2+(g-w)/2,y=t.cropOffsertY-t.trueHeight*(1-t.scale)/2+(w-g)/2,x=m-g+t.cropW,c=y-w+t.cropH;break;default:m=t.cropOffsertX-t.trueWidth*(1-t.scale)/2,y=t.cropOffsertY-t.trueHeight*(1-t.scale)/2,x=m-w+t.cropW,c=y-g+t.cropH}h.x1>=p.x1&&(o=m),h.y1>=p.y1&&(r=y),h.x2<=p.x2&&(o=x),h.y2<=p.y2&&(r=c)}t.x=o,t.y=r,t.$emit("imgMoving",{moving:!0,axis:t.getImgAxis()}),t.$emit("img-moving",{moving:!0,axis:t.getImgAxis()})})},leaveImg:function(n){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg:function(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(n){var t=this;n.preventDefault();var o=this.scale,r=n.deltaY||n.wheelDelta;r=navigator.userAgent.indexOf("Firefox")>0?30*r:r,this.isIE&&(r=-r);var l=this.coe,f=(l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth)*r;f<0?o+=Math.abs(f):o>Math.abs(f)&&(o-=Math.abs(f));var m=f<0?"add":"reduce";if(m!==this.coeStatus&&(this.coeStatus=m,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(function(){t.scaling=!1,t.coe=t.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,o))return!1;this.scale=o},changeScale:function(n){var t=this.scale;n=n||1;var o=20;if((n*=o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth)>0?t+=Math.abs(n):t>Math.abs(n)&&(t-=Math.abs(n)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop:function(n){var t=this;n.preventDefault();var o=n.clientX?n.clientX:n.touches?n.touches[0].clientX:0,r=n.clientY?n.clientY:n.touches?n.touches[0].clientY:0;this.$nextTick(function(){var l=o-t.cropX,f=r-t.cropY;if(l>0?(t.cropW=l+t.cropChangeX>t.w?t.w-t.cropChangeX:l,t.cropOffsertX=t.cropChangeX):(t.cropW=t.w-t.cropChangeX+Math.abs(l)>t.w?t.cropChangeX:Math.abs(l),t.cropOffsertX=t.cropChangeX+l>0?t.cropChangeX+l:0),t.fixed){var m=t.cropW/t.fixedNumber[0]*t.fixedNumber[1];m+t.cropOffsertY>t.h?(t.cropH=t.h-t.cropOffsertY,t.cropW=t.cropH/t.fixedNumber[1]*t.fixedNumber[0],t.cropOffsertX=l>0?t.cropChangeX:t.cropChangeX-t.cropW):t.cropH=m,t.cropOffsertY=t.cropOffsertY}else f>0?(t.cropH=f+t.cropChangeY>t.h?t.h-t.cropChangeY:f,t.cropOffsertY=t.cropChangeY):(t.cropH=t.h-t.cropChangeY+Math.abs(f)>t.h?t.cropChangeY:Math.abs(f),t.cropOffsertY=t.cropChangeY+f>0?t.cropChangeY+f:0)})},changeCropSize:function(n,t,o,r,l){n.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=o,this.changeCropTypeX=r,this.changeCropTypeY=l,this.cropX=n.clientX?n.clientX:n.touches[0].clientX,this.cropY=n.clientY?n.clientY:n.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow:function(n){var t=this;n.preventDefault();var o=n.clientX?n.clientX:n.touches?n.touches[0].clientX:0,r=n.clientY?n.clientY:n.touches?n.touches[0].clientY:0,l=this.w,f=this.h,m=0,y=0;if(this.centerBox){var x=this.getImgAxis(),c=x.x2,h=x.y2;m=x.x1>0?x.x1:0,y=x.y1>0?x.y1:0,l>c&&(l=c),f>h&&(f=h)}this.$nextTick(function(){var p=o-t.cropX,g=r-t.cropY;if(t.canChangeX&&(t.changeCropTypeX===1?t.cropOldW-p>0?(t.cropW=l-t.cropChangeX-p<=l-m?t.cropOldW-p:t.cropOldW+t.cropChangeX-m,t.cropOffsertX=l-t.cropChangeX-p<=l-m?t.cropChangeX+p:m):(t.cropW=Math.abs(p)+t.cropChangeX<=l?Math.abs(p)-t.cropOldW:l-t.cropOldW-t.cropChangeX,t.cropOffsertX=t.cropChangeX+t.cropOldW):t.changeCropTypeX===2&&(t.cropOldW+p>0?(t.cropW=t.cropOldW+p+t.cropOffsertX<=l?t.cropOldW+p:l-t.cropOffsertX,t.cropOffsertX=t.cropChangeX):(t.cropW=l-t.cropChangeX+Math.abs(p+t.cropOldW)<=l-m?Math.abs(p+t.cropOldW):t.cropChangeX-m,t.cropOffsertX=l-t.cropChangeX+Math.abs(p+t.cropOldW)<=l-m?t.cropChangeX-Math.abs(p+t.cropOldW):m))),t.canChangeY&&(t.changeCropTypeY===1?t.cropOldH-g>0?(t.cropH=f-t.cropChangeY-g<=f-y?t.cropOldH-g:t.cropOldH+t.cropChangeY-y,t.cropOffsertY=f-t.cropChangeY-g<=f-y?t.cropChangeY+g:y):(t.cropH=Math.abs(g)+t.cropChangeY<=f?Math.abs(g)-t.cropOldH:f-t.cropOldH-t.cropChangeY,t.cropOffsertY=t.cropChangeY+t.cropOldH):t.changeCropTypeY===2&&(t.cropOldH+g>0?(t.cropH=t.cropOldH+g+t.cropOffsertY<=f?t.cropOldH+g:f-t.cropOffsertY,t.cropOffsertY=t.cropChangeY):(t.cropH=f-t.cropChangeY+Math.abs(g+t.cropOldH)<=f-y?Math.abs(g+t.cropOldH):t.cropChangeY-y,t.cropOffsertY=f-t.cropChangeY+Math.abs(g+t.cropOldH)<=f-y?t.cropChangeY-Math.abs(g+t.cropOldH):y))),t.canChangeX&&t.fixed){var w=t.cropW/t.fixedNumber[0]*t.fixedNumber[1];w+t.cropOffsertY>f?(t.cropH=f-t.cropOffsertY,t.cropW=t.cropH/t.fixedNumber[1]*t.fixedNumber[0]):t.cropH=w}if(t.canChangeY&&t.fixed){var v=t.cropH/t.fixedNumber[1]*t.fixedNumber[0];v+t.cropOffsertX>l?(t.cropW=l-t.cropOffsertX,t.cropH=t.cropW/t.fixedNumber[0]*t.fixedNumber[1]):t.cropW=v}})},checkCropLimitSize:function(){this.cropW,this.cropH;var n=this.limitMinSize,t=new Array;return t=Array.isArray[n]?n:[n,n],[parseFloat(t[0]),parseFloat(t[1])]},changeCropEnd:function(n){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop:function(){this.cropW===0&&this.cropH===0&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop:function(){this.crop=!0},stopCrop:function(){this.crop=!1},clearCrop:function(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove:function(n){if(n.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(n),!1;if(n.touches&&n.touches.length===2)return this.crop=!1,this.startMove(n),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);var t,o,r=n.clientX?n.clientX:n.touches[0].clientX,l=n.clientY?n.clientY:n.touches[0].clientY;t=r-this.cropOffsertX,o=l-this.cropOffsertY,this.cropX=t,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop:function(n,t){var o=this,r=0,l=0;n&&(n.preventDefault(),r=n.clientX?n.clientX:n.touches[0].clientX,l=n.clientY?n.clientY:n.touches[0].clientY),this.$nextTick(function(){var f,m,y=r-o.cropX,x=l-o.cropY;if(t&&(y=o.cropOffsertX,x=o.cropOffsertY),f=y<=0?0:y+o.cropW>o.w?o.w-o.cropW:y,m=x<=0?0:x+o.cropH>o.h?o.h-o.cropH:x,o.centerBox){var c=o.getImgAxis();f<=c.x1&&(f=c.x1),f+o.cropW>c.x2&&(f=c.x2-o.cropW),m<=c.y1&&(m=c.y1),m+o.cropH>c.y2&&(m=c.y2-o.cropH)}o.cropOffsertX=f,o.cropOffsertY=m,o.$emit("cropMoving",{moving:!0,axis:o.getCropAxis()}),o.$emit("crop-moving",{moving:!0,axis:o.getCropAxis()})})},getImgAxis:function(n,t,o){n=n||this.x,t=t||this.y,o=o||this.scale;var r={x1:0,x2:0,y1:0,y2:0},l=this.trueWidth*o,f=this.trueHeight*o;switch(this.rotate){case 0:r.x1=n+this.trueWidth*(1-o)/2,r.x2=r.x1+this.trueWidth*o,r.y1=t+this.trueHeight*(1-o)/2,r.y2=r.y1+this.trueHeight*o;break;case 1:case-1:case 3:case-3:r.x1=n+this.trueWidth*(1-o)/2+(l-f)/2,r.x2=r.x1+this.trueHeight*o,r.y1=t+this.trueHeight*(1-o)/2+(f-l)/2,r.y2=r.y1+this.trueWidth*o;break;default:r.x1=n+this.trueWidth*(1-o)/2,r.x2=r.x1+this.trueWidth*o,r.y1=t+this.trueHeight*(1-o)/2,r.y2=r.y1+this.trueHeight*o}return r},getCropAxis:function(){var n={x1:0,x2:0,y1:0,y2:0};return n.x1=this.cropOffsertX,n.x2=n.x1+this.cropW,n.y1=this.cropOffsertY,n.y2=n.y1+this.cropH,n},leaveCrop:function(n){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked:function(n){var t=this,o=document.createElement("canvas"),r=new Image,l=this.rotate,f=this.trueWidth,m=this.trueHeight,y=this.cropOffsertX,x=this.cropOffsertY;function c(h,p){o.width=Math.round(h),o.height=Math.round(p)}r.onload=function(){if(t.cropW!==0){var h=o.getContext("2d"),p=1;t.high&!t.full&&(p=window.devicePixelRatio),t.enlarge!==1&!t.full&&(p=Math.abs(Number(t.enlarge)));var g=t.cropW*p,w=t.cropH*p,v=f*t.scale*p,b=m*t.scale*p,_=(t.x-y+t.trueWidth*(1-t.scale)/2)*p,I=(t.y-x+t.trueHeight*(1-t.scale)/2)*p;switch(c(g,w),h.save(),l){case 0:t.full?(c(g/t.scale,w/t.scale),h.drawImage(r,_/t.scale,I/t.scale,v/t.scale,b/t.scale)):h.drawImage(r,_,I,v,b);break;case 1:case-3:t.full?(c(g/t.scale,w/t.scale),_=_/t.scale+(v/t.scale-b/t.scale)/2,I=I/t.scale+(b/t.scale-v/t.scale)/2,h.rotate(90*l*Math.PI/180),h.drawImage(r,I,-_-b/t.scale,v/t.scale,b/t.scale)):(_+=(v-b)/2,I+=(b-v)/2,h.rotate(90*l*Math.PI/180),h.drawImage(r,I,-_-b,v,b));break;case 2:case-2:t.full?(c(g/t.scale,w/t.scale),h.rotate(90*l*Math.PI/180),_/=t.scale,I/=t.scale,h.drawImage(r,-_-v/t.scale,-I-b/t.scale,v/t.scale,b/t.scale)):(h.rotate(90*l*Math.PI/180),h.drawImage(r,-_-v,-I-b,v,b));break;case 3:case-1:t.full?(c(g/t.scale,w/t.scale),_=_/t.scale+(v/t.scale-b/t.scale)/2,I=I/t.scale+(b/t.scale-v/t.scale)/2,h.rotate(90*l*Math.PI/180),h.drawImage(r,-I-v/t.scale,_,v/t.scale,b/t.scale)):(_+=(v-b)/2,I+=(b-v)/2,h.rotate(90*l*Math.PI/180),h.drawImage(r,-I-v,_,v,b));break;default:t.full?(c(g/t.scale,w/t.scale),h.drawImage(r,_/t.scale,I/t.scale,v/t.scale,b/t.scale)):h.drawImage(r,_,I,v,b)}h.restore()}else{var E=f*t.scale,A=m*t.scale,O=o.getContext("2d");switch(O.save(),l){case 0:c(E,A),O.drawImage(r,0,0,E,A);break;case 1:case-3:c(A,E),O.rotate(90*l*Math.PI/180),O.drawImage(r,0,-A,E,A);break;case 2:case-2:c(E,A),O.rotate(90*l*Math.PI/180),O.drawImage(r,-E,-A,E,A);break;case 3:case-1:c(A,E),O.rotate(90*l*Math.PI/180),O.drawImage(r,-E,0,E,A);break;default:c(E,A),O.drawImage(r,0,0,E,A)}O.restore()}n(o)},this.img.substr(0,4)!=="data"&&(r.crossOrigin="Anonymous"),r.src=this.imgs},getCropData:function(n){var t=this;this.getCropChecked(function(o){n(o.toDataURL("image/"+t.outputType,t.outputSize))})},getCropBlob:function(n){var t=this;this.getCropChecked(function(o){o.toBlob(function(r){return n(r)},"image/"+t.outputType,t.outputSize)})},showPreview:function(){var n=this;if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout(function(){n.isCanShow=!0},16);var t=this.cropW,o=this.cropH,r=this.scale,l={};l.div={width:"".concat(t,"px"),height:"".concat(o,"px")};var f=(this.x-this.cropOffsertX)/r,m=(this.y-this.cropOffsertY)/r;l.w=t,l.h=o,l.url=this.imgs,l.img={width:"".concat(this.trueWidth,"px"),height:"".concat(this.trueHeight,"px"),transform:"scale(".concat(r,")translate3d(").concat(f,"px, ").concat(m,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,"deg)")},l.html=`
|
|
211
|
+
<div class="show-preview" style="width: `.concat(l.w,"px; height: ").concat(l.h,`px,; overflow: hidden">
|
|
212
|
+
<div style="width: `).concat(t,"px; height: ").concat(o,`px">
|
|
213
|
+
<img src=`).concat(l.url,' style="width: ').concat(this.trueWidth,"px; height: ").concat(this.trueHeight,`px; transform:
|
|
214
|
+
scale(`).concat(r,")translate3d(").concat(f,"px, ").concat(m,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,`deg)">
|
|
215
|
+
</div>
|
|
216
|
+
</div>`),this.$emit("realTime",l),this.$emit("real-time",l)},reload:function(){var n=this,t=new Image;t.onload=function(){n.w=parseFloat(window.getComputedStyle(n.$refs.cropper).width),n.h=parseFloat(window.getComputedStyle(n.$refs.cropper).height),n.trueWidth=t.width,n.trueHeight=t.height,n.original?n.scale=1:n.scale=n.checkedMode(),n.$nextTick(function(){n.x=-(n.trueWidth-n.trueWidth*n.scale)/2+(n.w-n.trueWidth*n.scale)/2,n.y=-(n.trueHeight-n.trueHeight*n.scale)/2+(n.h-n.trueHeight*n.scale)/2,n.loading=!1,n.autoCrop&&n.goAutoCrop(),n.$emit("img-load","success"),n.$emit("imgLoad","success"),setTimeout(function(){n.showPreview()},20)})},t.onerror=function(){n.$emit("imgLoad","error"),n.$emit("img-load","error")},t.src=this.imgs},checkedMode:function(){var n=1,t=(this.trueWidth,this.trueHeight),o=this.mode.split(" ");switch(o[0]){case"contain":this.trueWidth>this.w&&(n=this.w/this.trueWidth),this.trueHeight*n>this.h&&(n=this.h/this.trueHeight);break;case"cover":(t*=n=this.w/this.trueWidth)<this.h&&(n=(t=this.h)/this.trueHeight);break;default:try{var r=o[0];if(r.search("px")!==-1&&(r=r.replace("px",""),n=parseFloat(r)/this.trueWidth),r.search("%")!==-1&&(r=r.replace("%",""),n=parseFloat(r)/100*this.w/this.trueWidth),o.length===2&&r==="auto"){var l=o[1];l.search("px")!==-1&&(l=l.replace("px",""),n=(t=parseFloat(l))/this.trueHeight),l.search("%")!==-1&&(l=l.replace("%",""),n=(t=parseFloat(l)/100*this.h)/this.trueHeight)}}catch{n=1}}return n},goAutoCrop:function(n,t){if(this.imgs!==""&&this.imgs!==null){this.clearCrop(),this.cropping=!0;var o=this.w,r=this.h;if(this.centerBox){var l=this.trueWidth*this.scale,f=this.trueHeight*this.scale;o=l<o?l:o,r=f<r?f:r}var m=n||parseFloat(this.autoCropWidth),y=t||parseFloat(this.autoCropHeight);m!==0&&y!==0||(m=.8*o,y=.8*r),m=m>o?o:m,y=y>r?r:y,this.fixed&&(y=m/this.fixedNumber[0]*this.fixedNumber[1]),y>this.h&&(m=(y=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(m,y)}},changeCrop:function(n,t){var o=this;if(this.centerBox){var r=this.getImgAxis();n>r.x2-r.x1&&(t=(n=r.x2-r.x1)/this.fixedNumber[0]*this.fixedNumber[1]),t>r.y2-r.y1&&(n=(t=r.y2-r.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=n,this.cropH=t,this.checkCropLimitSize(),this.$nextTick(function(){o.cropOffsertX=(o.w-o.cropW)/2,o.cropOffsertY=(o.h-o.cropH)/2,o.centerBox&&o.moveCrop(null,!0)})},refresh:function(){var n=this;this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick(function(){n.checkedImg()})},rotateLeft:function(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight:function(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear:function(){this.rotate=0},checkoutImgAxis:function(n,t,o){n=n||this.x,t=t||this.y,o=o||this.scale;var r=!0;if(this.centerBox){var l=this.getImgAxis(n,t,o),f=this.getCropAxis();l.x1>=f.x1&&(r=!1),l.x2<=f.x2&&(r=!1),l.y1>=f.y1&&(r=!1),l.y2<=f.y2&&(r=!1)}return r}},mounted:function(){this.support="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";var n=this,t=navigator.userAgent;this.isIOS=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(o,r,l){for(var f=atob(this.toDataURL(r,l).split(",")[1]),m=f.length,y=new Uint8Array(m),x=0;x<m;x++)y[x]=f.charCodeAt(x);o(new Blob([y],{type:n.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed:function(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop)}};u(1);var L=function(n,t,o,r,l,f,m,y){var x,c=typeof n=="function"?n.options:n;if(t&&(c.render=t,c.staticRenderFns=o,c._compiled=!0),r&&(c.functional=!0),f&&(c._scopeId="data-v-"+f),m?(x=function(g){(g=g||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(g=__VUE_SSR_CONTEXT__),l&&l.call(this,g),g&&g._registeredComponents&&g._registeredComponents.add(m)},c._ssrRegister=x):l&&(x=y?function(){l.call(this,this.$root.$options.shadowRoot)}:l),x)if(c.functional){c._injectStyles=x;var h=c.render;c.render=function(g,w){return x.call(w),h(g,w)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,x):[x]}return{exports:n,options:c}}(S,d,[],!1,null,"6dae58fd",null);L.options.__file="src/vue-cropper.vue";var k=L.exports;u.d(a,"VueCropper",function(){return k});var T=function(n){n.component("VueCropper",k)};typeof window<"u"&&window.Vue&&T(window.Vue),a.default={version:"0.5.5",install:T,VueCropper:k,vueCropper:k}}])})})(U);const ve={data(){return{width:"800px",visible:!1,id:null,confirmLoading:!1,fileList:[],uploading:!1,options:{img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!0},previews:{},fullscreen:!1}},computed:{modalStyle(){return this.fullscreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"40px"}}}},components:{VueCropper:U.exports.VueCropper},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},edit(s){this.fullscreen=!1,this.visible=!0,this.id=s},close(){this.id=null,this.visible=!1},cancelHandel(){this.close()},changeScale(s){s=s||1,this.$refs.cropper.changeScale(s)},rotateLeft(){this.$refs.cropper.rotateLeft()},rotateRight(){this.$refs.cropper.rotateRight()},beforeUpload(s){this.fileList=s;const e=new FileReader;return e.readAsDataURL(s),e.onload=()=>{this.options.img=e.result},!1},finish(s){s==="blob"?(this.uploading=!0,this.$refs.cropper.getCropBlob(e=>{const i=new window.File([e],this.fileList.name,{type:this.fileList.type}),a=new FormData;a.append("file",i),z.sysFileInfoUploadAvatar(a).then(u=>{u.success?this.updateAvatar(u.data):(this.uploading=!1,this.$message.error(u.message))})})):this.$refs.cropper.getCropData(e=>{})},updateAvatar(s){const e={id:this.id,avatar:s};W.sysUserUpdateAvatar(e).then(i=>{this.uploading=!1,i.success?(this.visible=!1,this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.$emit("ok",s)}).catch(i=>{this.$emit("ok",s)})},realTime(s){this.previews=s},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var we=function(){var e=this,i=e._self._c;return 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.modalStyle.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.cancelHandel}},[i("gd-modal-title",{attrs:{slot:"title",title:e.$i18nt("gd.account.modifyavatar","\u4FEE\u6539\u5934\u50CF"),fullscreen:e.fullscreen,buttons:[],confirmLoading:e.confirmLoading,showClose:!0,closed:"cancelHandel"},on:{changeEvent:e.doEvent},slot:"title"}),i("div",{staticClass:"gd-model-body",class:e.fullscreen?"modal-bodyq":"modal-body"},[i("el-row",[i("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[i("vue-cropper",{ref:"cropper",attrs:{img:e.options.img,info:!0,autoCrop:e.options.autoCrop,autoCropWidth:e.options.autoCropWidth,autoCropHeight:e.options.autoCropHeight,fixedBox:e.options.fixedBox},on:{realTime:e.realTime}})],1),i("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[i("div",{staticClass:"avatar-upload-preview"},[i("img",{style:e.previews.img,attrs:{src:e.previews.url}})])])],1),i("br"),i("el-row",[i("el-col",{attrs:{lg:3,md:3}},[i("el-upload",{attrs:{name:"file",action:"",beforeUpload:e.beforeUpload,showUploadList:!1}},[i("el-button",{staticClass:"el-icon-upload2"},[e._v(e._s(e.$i18nt("gd.account.selectPicture","\u9009\u62E9\u56FE\u7247")))])],1)],1),i("el-col",{attrs:{lg:{span:1,offset:2},md:2}},[i("el-button",{staticClass:"el-icon-plus",on:{click:function(a){return e.changeScale(1)}}})],1),i("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[i("el-button",{staticClass:"el-icon-minus",on:{click:function(a){return e.changeScale(-1)}}})],1),i("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[i("el-button",{staticClass:"el-icon-refresh-left",on:{click:e.rotateLeft}})],1),i("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[i("el-button",{staticClass:"el-icon-refresh-right",on:{click:e.rotateRight}})],1),i("el-col",{attrs:{lg:{span:2,offset:6},md:2}},[i("el-button",{attrs:{type:"primary",loading:e.uploading},on:{click:function(a){return e.finish("blob")}}},[e._v(" "+e._s(e.$i18nt("gd.btn.save"))+" ")])],1)],1)],1)],1)},Ce=[],xe=H.normalizeComponent(ve,we,Ce,!1,null,"1fe51f00",null,null);const be=xe.exports,ye=Object.freeze(Object.defineProperty({__proto__:null,default:be},Symbol.toStringTag,{value:"Module"}));const _e={props:{isShow:{type:Boolean,default(){return!1}}},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],confirmLoading:!1,visible:!1,userId:"",width:"600px",min:0,messageTip:"",messageTipErr:"",lenMax:0,lenMin:0,maskValue:"",pattern:null,fullscreen:!1,disabled:!0,code:"",num:0,ruleForm:{}}},computed:{modalStyle(){return this.fullscreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"40px"}}},title(){return this.num==1?this.$i18nt("gd.account.changePaw","\u4FEE\u6539\u5BC6\u7801"):this.$i18nt("gd.account.userBinding","\u7528\u6237\u7ED1\u5B9A")},...H.mapGetters(["labelPosition"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(s,e,i){this.fullscreen=!1,this.userId=s,this.code=e,this.num=i,this.num==1?this.getConfigInfo():this.$nextTick(()=>{this.formUpdPwd.setFieldsValue({account:this.userId})}),this.visible=!0},getConfigInfo(s){W.getPasswordRules().then(e=>{this.min=parseInt(e.data.lengthrule.value),this.lenMin=parseInt(e.data.lengthrule.value),this.messageTip=e.data.lengthrule.remark,this.maskValue=e.data.combinationrule.value,this.lenMax=16,this.maskValue.includes("AL")&&this.maskValue.includes("NU")&&this.maskValue.includes("SC")?this.pattern=new RegExp(`^(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])(?=.*[~!@#$%^&*])[\\da-zA-Z~!@#$%^&*]{${this.lenMin},${this.lenMax}}$`):this.maskValue.includes("AL")&&this.maskValue.includes("NU")?this.pattern=new RegExp("(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])"):this.maskValue.includes("AL")&&this.maskValue.includes("SC")?this.pattern=new RegExp("(?=.*[~!@#$%^&*])(?=.*?[a-z])(?=.*?[A-Z]))"):this.maskValue.includes("NU")&&this.maskValue.includes("SC")?this.pattern=new RegExp("(?=.*\\d)(?=.*[~!@#$%^&*])"):this.maskValue.includes("AL")?this.pattern=new RegExp("^(?=.*?[a-z])(?=.*?[A-Z])"):this.maskValue.includes("NU")?this.pattern=new RegExp("\\d"):this.maskValue.includes("SC")&&(this.pattern=new RegExp("[^a-zA-Z0-9]")),this.messageTipErr=e.data.combinationrule.remark})},handleSubmit(){this.$refs.ruleForm.validate(s=>{if(s){this.confirmLoading=!0;let e;this.num==1?e={accountName:this.userId,passWord:this.ruleForm.password,newPassword:this.ruleForm.newPassword}:e={account:this.ruleForm.account,password:this.ruleForm.password,corpCode:this.code},(this.num==1?W.updatePwdByAccount:W.BindWechatWorkAccountByCode)(e).then(a=>{a.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a.message)}).finally(a=>{this.confirmLoading=!1})}})},handleCancel(){this.$refs.ruleForm.resetFields(),this.visible=!1},compareToFirstPassword(s,e,i){e&&e!==this.ruleForm.newPassword?i(this.$i18nt("gd.account.repeatPawTiperr"," \u8BF7\u786E\u8BA4\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u7684\u4E00\u81F4\u6027")):i()},oldtPassword(s,e,i){e&&e===this.ruleForm.password?i(this.$i18nt("gd.account.repeatPawTipodl","\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E0E\u539F\u5BC6\u7801\u91CD\u590D")):i()},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var $e=function(){var e=this,i=e._self._c;return 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.modalStyle.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[i("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:e.doEvent},slot:"title"}),i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"gd-model-body",class:e.fullscreen?"modal-bodyq":"modal-body",staticStyle:{margin:"10px 10px 10px"}},[i("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"label-width":"110px","label-position":e.labelPosition},nativeOn:{submit:function(a){a.preventDefault()}}},[e.num==1?i("div",[i("el-form-item",{attrs:{label:e.$i18nt("gd.account.originalPaw","\u539F\u5BC6\u7801"),prop:"password",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input")}]}},[i("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.password,callback:function(a){e.$set(e.ruleForm,"password",a)},expression:"ruleForm.password"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.newPaw","\u65B0\u5BC6\u7801"),prop:"newPassword",rules:[{required:!0,min:e.min,message:e.messageTip},{pattern:e.pattern,message:e.messageTipErr},{validator:e.oldtPassword}]}},[i("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.newPassword,callback:function(a){e.$set(e.ruleForm,"newPassword",a)},expression:"ruleForm.newPassword"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.repeatPaw","\u91CD\u590D\u65B0\u5BC6\u7801"),prop:"confirm",rules:[{required:!0,message:e.$i18nt("gd.account.repeatPawTip","\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801")},{validator:e.compareToFirstPassword}]}},[i("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.confirm,callback:function(a){e.$set(e.ruleForm,"confirm",a)},expression:"ruleForm.confirm"}})],1)],1):i("div",[i("el-form-item",{attrs:{label:e.$i18nt("gd.account.loginID","\u8D26\u53F7"),prop:"account",rules:[{required:!0,message:this.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.login.account","\u8BF7\u8F93\u5165\u8D26\u53F7"),disabled:e.disabled},model:{value:e.ruleForm.account,callback:function(a){e.$set(e.ruleForm,"account",a)},expression:"ruleForm.account"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.login.password","\u5BC6\u7801"),prop:"password",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[i("el-input",{attrs:{maxlength:18,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),"show-password":""},model:{value:e.ruleForm.password,callback:function(a){e.$set(e.ruleForm,"password",a)},expression:"ruleForm.password"}})],1)],1)])],1)],1)},Se=[],Ie=H.normalizeComponent(_e,$e,Se,!1,null,"1d4e1c11",null,null);const D=Ie.exports,ke=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"}));const Le={props:{isClear:{type:Number,default:1}},components:{UpdPwd:D},data(){return{visible:!1,qrCodeUrl:"//login.work.weixin.qq.com/wwlogin/sso/qrcode?key=ae88c122560120a2",code:"",logTitle:"",num:1,wwLogin:null,confirmLoading:!1,isInitialize:null,pwdExpiration:"",setDate:void 0,currentTime:void 0,diff:void 0,diffDate:void 0,state:"",isWeComLogin:!1,wxUserId:null,appId:"",agentId:"",redirectURL:"",titleWidth:"504px",num1:0}},computed:{style(){return{"--color":this.primaryColor}},titleTip(){return this.num==1?$i18nt("gd.account.loading"):""},...H.mapGetters(["userInfo","language","primaryColor"])},mounted(){},methods:{open(s,e){this.num=e,this.visible=!0,this.titleWidth=this.language=="zh_CN"?350+"px":504+"px",this.num==1&&this.getWeChat(s)},getWeChat(s){let e=this;s.data.forEach((i,a)=>{i.code=="GDS_ENTERPRISE_WECHAT_CropID"&&(e.appId=i.value),i.code=="GDS_ENTERPRISE_WECHAT_AgentId"&&(e.agentId=i.value),i.code=="GDS_ENTERPRISE_WECHAT_Redirect_URL"&&(e.redirectURL=i.value)}),setTimeout(()=>{e.wwLogin=ww.createWWLoginPanel({el:"#wx_qrcode",params:{login_type:"CorpApp",appid:e.appId,agentid:e.agentId,redirect_uri:e.redirectURL,state:"loginState",redirect_type:"callback",panel_size:e.language=="zh_CN"?"small":"middle",lang:e.language=="zh_CN"?"zh":"en"},onCheckWeComLogin({isWeComLogin:i}){e.isWeComLogin=i,e.num1=e.isWeComLogin==!0?1:0},onLoginSuccess({code:i}){e.code=i,e.$refs.updPwd.open(e.userInfo.account,i,2),e.visible=!1},onLoginFail(i){}})},500)},handleCancel(){this.confirmLoading=!1,this.visible=!1,this.$refs.wx_qrcode.innerHTML=""}}};var Te=function(){var e=this,i=e._self._c;return i("div",[i("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",attrs:{visible:e.visible,width:e.titleWidth,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px"},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[i("div",{staticClass:"main",style:e.style},[e.num==1?i("div",[i("div",{ref:"wx_qrcode",style:e.num1==0?"height: 290px;":"height: 290px",attrs:{id:"wx_qrcode"}}),i("div",{class:e.num1==0?"div_top":"div_topno"}),i("div",{class:e.num1==0?"div_bottom":""})]):e._e()])]),i("upd-pwd",{ref:"updPwd"})],1)},Ae=[],Ee=H.normalizeComponent(Le,Te,Ae,!1,null,"55ede8aa",null,null);const Oe=Ee.exports,He=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=P;exports.GDpackage$1=X;exports.GDpackage$2=Y;exports.GDpackage$3=F;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const d=require("./components.chartbi.3bbac955.js"),l=require("./http.configmanage.6cfb8ae7.js"),c=require("./utils.mixins.js.750ca50e.js"),u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.sysConfig.name",prop:"name",label:"\u53C2\u6570\u540D\u79F0",width:"280",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.sysConfig.code",prop:"code",width:"280",label:"\u552F\u4E00\u7F16\u7801",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"})},{transKey:"gd.sysConfig.value",prop:"value",width:"260",label:"\u53C2\u6570\u503C",align:"left"},{transKey:"gd.sysConfig.groupCode",prop:"groupcode",label:"\u6240\u5C5E\u5206\u7C7B",width:"160",type:"slot",slotType:"groupcode",align:"left",showOverflowTooltip:!0},{transKey:"gd.sysConfig.remark",prop:"remark",width:"260",label:"\u5907\u6CE8",align:"left"}],formColumns:[{transKey:"gd.sysConfig.name",effectType:"input",prop:"name",label:"\u53C2\u6570\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.sysConfig.code",effectType:"input",prop:"code",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.sysConfig.systemParameter",prop:"sysflag",label:"\u7CFB\u7EDF\u53C2\u6570",effectType:"radio",disabled:!1,dictData:[{name:"\u662F",code:"Y",transKey:"placeholder.yes",prefix:"gd"},{name:"\u5426",code:"N",transKey:"placeholder.no",prefix:"gd"}],rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.sysConfig.groupCode",effectType:"select",prop:"groupcode",label:"\u6240\u5C5E\u5206\u7C7B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"consts_type",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.sysConfig.value",effectType:"input",prop:"value",label:"\u53C2\u6570\u503C",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.sysConfig.remark",effectType:"textarea",prop:"remark",label:"\u5907\u6CE8",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysConfig:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysConfig:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysConfig:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.sysConfig.name",effectType:"input",prop:"name",label:"\u53C2\u6570\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.sysConfig.code",effectType:"input",prop:"code",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.sysConfig.groupCode",prop:"groupcode",label:"\u6240\u5C5E\u5206\u7C7B",effectType:"select",dictTypeCode:"consts_type",rules:[]}]}}};const g={name:"GdConfig",props:{height:{type:Number,default:100}},mixins:[c.tablesFilter,u],data(){return{selectedRowKeys:[],selectedRows:[],transKey:"gd.btn.add",formLoading:!1,currentNode:null,loadData:t=>l.sysConfigPage(Object.assign(t,this.queryParam)).then(e=>e.data),queryParam:{},sysFlag:{}}},computed:{getHeight(){return this.height},getFormColumns(){return this.formColumns.filter(t=>(["\u552F\u4E00\u7F16\u7801","\u6240\u5C5E\u5206\u7C7B","\u7CFB\u7EDF\u53C2\u6570"].includes(t.label)&&(t.disabled=this.sysFlag.sysflag==="Y"),t))},...d.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},mounted(){},methods:{onSelectChange(t,e){this.selectedRows=e,this.selectedRowKeys=t},refresh(){this.$refs.table.refresh()},editForm(t){this.transKey="gd.btn.edit",this.sysFlag=t,this.$refs.editForm.open(Object.assign({...t},{groupcode:String(t.groupcode)}))},saveQueries(t){this.queryParam=t,this.refresh()},add(){this.transKey="gd.btn.add",this.sysFlag={},this.$refs.editForm.open(null)},edit(){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}this.editForm(this.selectedRows[0])},sbumit({data:t,record:e,btn:s},r,a){this.formLoading=!0,(e?l.sysConfigEdit:l.sysConfigAdd)(t).then(n=>{n.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message),this.formLoading=!1})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let r=[];this.selectedRows.forEach(a=>{let o=l.sysConfigDelete(a).then(n=>n);r.push(o)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(r).then(a=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const o=a.filter(n=>!n.success);o.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+o[0].message),this.refresh()})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var p=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:r,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"code",fn:function({column:r,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"code",row:a}})]}},{key:"value",fn:function({column:r,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"value",row:a}})]}},{key:"remark",fn:function({column:r,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"remark",row:a}})]}},{key:"groupcode",fn:function(r){return[s("el-tag",{style:e._f("dictColor")("consts_type",r.row.groupcode),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("consts_type",r.row.groupcode))+" ")])]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.sysConfig.name","\u53C2\u6570\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(r){e.$set(e.queryParam,"name",r)},expression:"queryParam.name"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:r,visible:a}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:r,visible:a},on:{save:e.saveQueries}})]}}])})],1),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode},on:{sbumit:e.sbumit}})],1)},f=[],h=d.normalizeComponent(g,p,f,!1,null,"00d35378",null,null);const i=h.exports;i.install=function(t){t.component(i.name,i)};exports.GDpackage=i;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { m as i, n as d } from "./chartbi.
|
|
2
|
-
import {
|
|
1
|
+
import { m as i, n as d } from "./components.chartbi.571c5ff5.mjs";
|
|
2
|
+
import { s as c, a as u, b as g, c as p } from "./http.configmanage.c23c7fa8.mjs";
|
|
3
|
+
import { t as f } from "./utils.mixins.js.be01e599.mjs";
|
|
3
4
|
const h = {
|
|
4
5
|
data() {
|
|
5
6
|
return {
|
|
@@ -230,7 +231,7 @@ const m = {
|
|
|
230
231
|
default: 100
|
|
231
232
|
}
|
|
232
233
|
},
|
|
233
|
-
mixins: [
|
|
234
|
+
mixins: [f, h],
|
|
234
235
|
data() {
|
|
235
236
|
return {
|
|
236
237
|
selectedRowKeys: [],
|
|
@@ -238,7 +239,7 @@ const m = {
|
|
|
238
239
|
transKey: "gd.btn.add",
|
|
239
240
|
formLoading: !1,
|
|
240
241
|
currentNode: null,
|
|
241
|
-
loadData: (t) =>
|
|
242
|
+
loadData: (t) => c(Object.assign(t, this.queryParam)).then((e) => e.data),
|
|
242
243
|
queryParam: {},
|
|
243
244
|
sysFlag: {}
|
|
244
245
|
};
|
|
@@ -291,7 +292,7 @@ const m = {
|
|
|
291
292
|
this.editForm(this.selectedRows[0]);
|
|
292
293
|
},
|
|
293
294
|
sbumit({ data: t, record: e, btn: s }, r, a) {
|
|
294
|
-
this.formLoading = !0, (e ?
|
|
295
|
+
this.formLoading = !0, (e ? g : p)(t).then((n) => {
|
|
295
296
|
n.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), a(), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + n.message), this.formLoading = !1;
|
|
296
297
|
});
|
|
297
298
|
},
|
|
@@ -324,7 +325,7 @@ const m = {
|
|
|
324
325
|
}
|
|
325
326
|
let r = [];
|
|
326
327
|
this.selectedRows.forEach((a) => {
|
|
327
|
-
let o =
|
|
328
|
+
let o = u(a).then((n) => n);
|
|
328
329
|
r.push(o);
|
|
329
330
|
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(r).then((a) => {
|
|
330
331
|
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, s();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./http.datasource.294b01e2.js"),d=require("./components.chartbi.3bbac955.js"),c=require("./utils.mixins.js.750ca50e.js"),p={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{type:"selection-radio",width:"60",fixed:!0},{transKey:"gd.dataSource.name",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",width:"220",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"})},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",label:"\u6570\u636E\u6E90\u7C7B\u578B",width:"180",type:"slot",slotType:"datasourcetype",align:"left",renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"selectMultiple",dictTypeCode:"datasourcetype"})},{transKey:"gd.dataSource.host",prop:"host",width:"200",label:"\u4E3B\u673A",align:"left"},{transKey:"gd.dataSource.port",prop:"port",width:"120",label:"\u7AEF\u53E3",align:"left"},{transKey:"gd.dataSource.database",prop:"database",width:"180",label:"\u6570\u636E\u5E93",align:"left"},{transKey:"gd.user.status",prop:"statecodes",width:"120",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left"},{transKey:"gd.dataSource.connectionString",prop:"connectstring",width:"260",label:"\u8FDE\u63A5\u5B57\u7B26\u4E32",align:"left"},{transKey:"gd.fieldSecurity.createdTime",prop:"createdtime",width:"180",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.task.description",prop:"description",width:"260",label:"\u63CF\u8FF0",align:"left"}],formColumns:[{transKey:"gd.dataSource.name",effectType:"input",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",effectType:"select",label:"\u6570\u636E\u6E90\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"datasourcetype",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.dataSource.host",effectType:"input",prop:"host",label:"\u4E3B\u673A",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.port",effectType:"input",prop:"port",label:"\u7AEF\u53E3",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.database",effectType:"input",prop:"database",label:"\u6570\u636E\u5E93",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.userName",effectType:"input",prop:"userid",label:"\u7528\u6237\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.paw",effectType:"input",prop:"password",label:"\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}],type:"slot",slotType:"password"},{transKey:"gd.dataSource.extend",effectType:"input",prop:"extraparm",label:"\u6269\u5C55",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.dataSource.connectionString",effectType:"textarea",prop:"connectstring",label:"\u8FDE\u63A5\u5B57\u7B26\u4E32",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}},{transKey:"gd.task.description",effectType:"textarea",prop:"description",label:"\u63CF\u8FF0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysDataSource:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysDataSource:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysDataSource:delete"}],formButtons:[{displayName:"\u6D4B\u8BD5\u8FDE\u63A5",functionName:"handleConnection",show:!0,transKey:"gd.dataSource.testConnection",icon:"el-icon-connection",validate:!0},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.dataSource.name",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",label:"\u6570\u636E\u6E90\u7C7B\u578B",effectType:"selectMultiple",dictTypeCode:"datasourcetype",rules:[]}]}}};const u={name:"GdDataSource",props:{height:{type:Number,default:100},openMode:{type:[String,Number],default:1},record:{type:Object,default:()=>({})}},mixins:[c.tablesFilter,p],data(){return{transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},type:"password",loadData:t=>i.sysDataSourcePage(Object.assign(t,this.queryParam)).then(e=>(e.success&&this.openMode==2&&this.$emit("changeData",e.data.rows),e.data))}},computed:{getTableColumns(){return this.tableColumns.filter(t=>t.type==="selection"?this.openMode==1:t.type==="selection-radio"?this.openMode!=1:!0)},getHeight(){const t=this.openMode==2?80:0;return this.height-t},...d.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{swichType(){this.type=this.type==="password"?"text":"password"},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.transKey="gd.btn.edit",this.formLoading=!0,this.$refs.editForm.open(t).then(e=>{const a=i.sysDataSourceDetail({id:t.id});e.done(a),this.formLoading=!1})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,a)=>{this.delHand(t,e,a)}})},delHand(t,e,a){if(t!=="confirm"){a();return}let r=[];this.selectedRows.forEach(s=>{let n=i.sysDataSourceDel(s).then(o=>o);r.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(r).then(s=>{a();const n=s.filter(o=>!o.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),this.handleOk(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},async edit(){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}this.editForm(this.selectedRows[0])},sbumit({data:t,record:e,btn:a},r,s){let n=a.item.functionName;this[n]&&this[n]({data:t,record:e,btn:a},r,s)},handleSubmit({data:t,record:e,btn:a},r,s){this.formLoading=!0,(e?i.sysDataSourceEdit:i.sysDataSourceAdd)(t).then(o=>{o.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),s(),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message),this.formLoading=!1})},handleConnection({data:t,record:e,btn:a},r,s){this.formLoading=!0,i.sysDataSourceConnection(t).then(n=>{n.code===400?this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message):this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.formLoading=!1})},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},dictSwitch(t,e){let a=this.$options.filters.dictData(e).filter(r=>r.code==t)[0];return a!=null&&a.colour?a.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},mounted(){if(this.openMode==2&&this.record.options.val!==void 0){const t=typeof this.record.options.val;let e=t==="string"||t==="number"?[this.record.options.val]:[...this.record.options.val];this.selectedRowKeys=e.filter(a=>a!=="")}}};var h=function(){var e=this,a=e._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.getTableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:r,row:s}){return[a("gd-tooltip",{attrs:{rowKey:"name",row:s,highlight:""},on:{click:e.editForm}})]}},{key:"datasourcetype",fn:function({column:r,row:s}){return[e.dictSwitch(s.datasourcetype,"datasourcetype")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.datasourcetype,"datasourcetype")}},[e._v(" "+e._s(e._f("dictType")("datasourcetype",s.datasourcetype))+" ")]):a("span",[e._v(e._s(e._f("dictType")("datasourcetype",s.datasourcetype)))])]}},{key:"statecodes",fn:function({column:r,row:s}){return[e.dictSwitch(s.statecodes,"state_code")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.statecodes,"state_code")}},[e._v(" "+e._s(e._f("dictType")("state_code",s.statecodes))+" ")]):a("span",[e._v(e._s(e._f("dictType")("state_code",s.statecodes)))])]}},{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.dataSource.name","\u8FDE\u63A5\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(r){e.$set(e.queryParam,"name",r)},expression:"queryParam.name"}}),a("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:r,visible:s}){return[a("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:r,visible:s},on:{save:e.saveQueries}})]}}])})],1),a("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.formColumns,labelPosition:e.labelPosition,formMode:e.formMode,needLoad:!0},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"password",fn:function({data:r,column:s}){return[a("el-input",{attrs:{type:e.type,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:r[s.prop],callback:function(n){e.$set(r,s.prop,n)},expression:"data[column.prop]"}},[a("i",{staticClass:"el-input__icon gd-icons",class:e.type==="password"?"gd-icon-icon-test2":"gd-icon-icon-test1",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix"},on:{click:e.swichType},slot:"suffix"})])]}}])})],1)},g=[],y=d.normalizeComponent(u,h,g,!1,null,"608adc74",null,null);const l=y.exports;l.install=function(t){t.component(l.name,l)};exports.GDpackage=l;
|