gds-plus-design-vue 1.2.6 → 1.2.7
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/approvalModel.a26e8ff6.mjs +340 -0
- package/lib/approvalModel.cfd81971.js +1 -0
- package/lib/btnFunctionName.9aabfed0.js +1 -0
- package/lib/btnFunctionName.d08627cb.mjs +254 -0
- package/lib/btnRelation.8e608261.mjs +156 -0
- package/lib/btnRelation.cb3dc022.js +1 -0
- package/lib/businessRules.754cc398.mjs +539 -0
- package/lib/businessRules.f41f7035.js +1 -0
- package/lib/buttonRule.4483314f.mjs +396 -0
- package/lib/buttonRule.645de1d3.js +1 -0
- package/lib/chartDisplayRules.1f4d1f29.mjs +288 -0
- package/lib/chartDisplayRules.fedfefe8.js +1 -0
- package/lib/components.chartbi.470b96af.mjs +1798 -0
- package/lib/components.chartbi.e9459775.js +8 -0
- package/lib/components.coloreditor.affa0400.mjs +1505 -0
- package/lib/components.coloreditor.dbec8da6.js +6 -0
- package/lib/components.dataassign.39281072.mjs +147 -0
- package/lib/components.dataassign.b6a1bffb.js +1 -0
- package/lib/components.echarts.95ffc3b3.mjs +811 -0
- package/lib/components.echarts.d09e9850.js +4 -0
- package/lib/components.exception.11315db5.js +1 -0
- package/lib/components.exception.facf9df9.mjs +61 -0
- package/lib/components.form.56ea8f98.js +41 -0
- package/lib/components.form.a7b3ea37.mjs +7813 -0
- package/lib/components.globalheader.0a7ce959.js +1 -0
- package/lib/components.globalheader.4a5f7225.mjs +54 -0
- package/lib/components.iconselector.0c03cfc7.js +1 -0
- package/lib/components.iconselector.251c29b9.mjs +1169 -0
- package/lib/components.imgpreview.5546e541.mjs +213 -0
- package/lib/components.imgpreview.706a89f0.js +1 -0
- package/lib/components.lunccalendar.5363cba5.mjs +1137 -0
- package/lib/components.lunccalendar.fe7db238.js +1 -0
- package/lib/components.middleware.01601349.js +1 -0
- package/lib/components.middleware.f5f4ac0f.mjs +148 -0
- package/lib/components.modaltitle.5ded43f9.mjs +127 -0
- package/lib/components.modaltitle.cc9ba616.js +1 -0
- package/lib/components.multitab.0f9da9f3.mjs +140 -0
- package/lib/components.multitab.726cff2f.js +1 -0
- package/lib/components.selecttree.1a71c963.mjs +170 -0
- package/lib/components.selecttree.2fadffca.js +1 -0
- package/lib/components.settingdrawer.1af86231.js +1 -0
- package/lib/components.settingdrawer.adc262cf.mjs +237 -0
- package/lib/components.sidemenu.03442146.mjs +277 -0
- package/lib/components.sidemenu.5107c7e3.js +1 -0
- package/lib/components.sidenavmenu.3d255147.mjs +1147 -0
- package/lib/components.sidenavmenu.ef33de39.js +1 -0
- package/lib/components.statuschange.805a751b.mjs +116 -0
- package/lib/components.statuschange.83646c5d.js +1 -0
- package/lib/components.table.61eb5d81.js +8 -0
- package/lib/components.table.c986e58d.mjs +4650 -0
- package/lib/components.tableumy.35b465f9.mjs +453 -0
- package/lib/components.tableumy.eba43953.js +1 -0
- package/lib/components.tablevirtual.14a8dbed.mjs +564 -0
- package/lib/components.tablevirtual.6af04c44.js +1 -0
- package/lib/components.teamsharing.68865424.js +1 -0
- package/lib/components.teamsharing.c4f4f12e.mjs +373 -0
- package/lib/components.tooltip.ccb1717d.mjs +86 -0
- package/lib/components.tooltip.e2e21e66.js +1 -0
- package/lib/components.uploadfile.a0dfedaf.mjs +228 -0
- package/lib/components.uploadfile.e93b500d.js +1 -0
- package/lib/components.uploadimg.3804913e.js +1 -0
- package/lib/components.uploadimg.e49707d9.mjs +192 -0
- package/lib/components.verificationcode.5a9c0220.js +1 -0
- package/lib/components.verificationcode.ead74922.mjs +71 -0
- package/lib/components.viewformdetails.3c1596ad.js +1 -0
- package/lib/components.viewformdetails.98be3c0d.mjs +1081 -0
- package/lib/components.viewloading.5b178ec5.js +1 -0
- package/lib/components.viewloading.cb7917b7.mjs +99 -0
- package/lib/components.watermark.849409ca.js +2 -0
- package/lib/components.watermark.a2521d0c.mjs +53 -0
- package/lib/components.xlsxexport.3405a00b.js +1 -0
- package/lib/components.xlsxexport.871f87d1.mjs +263 -0
- package/lib/components.xlsximport.85ce77cf.mjs +922 -0
- package/lib/components.xlsximport.e3bcb07d.js +1 -0
- package/lib/copy.b09a6d38.js +1 -0
- package/lib/copy.c0a2f16d.mjs +572 -0
- package/lib/dialogLayout.059ee256.mjs +138 -0
- package/lib/dialogLayout.cedf2865.js +1 -0
- package/lib/drawerContainer.38d7b530.mjs +154 -0
- package/lib/drawerContainer.ea7722d7.js +1 -0
- package/lib/drawerLayout.454e4921.js +1 -0
- package/lib/drawerLayout.fad843ee.mjs +119 -0
- package/lib/editForm.c199538f.mjs +434 -0
- package/lib/editForm.f9dc93ef.js +1 -0
- package/lib/flow.designer.4c83c0d3.js +1 -0
- package/lib/flow.designer.9442a995.mjs +7673 -0
- package/lib/flow.list.4a31969e.mjs +3032 -0
- package/lib/flow.list.f41ee531.js +1 -0
- package/lib/form.build.c38bf362.js +1 -0
- package/lib/form.build.fb9f905b.mjs +259 -0
- package/lib/form.designer.build.3fdf8007.js +1 -0
- package/lib/form.designer.build.e1b97dc3.mjs +5135 -0
- package/lib/formFiled.624b8dd3.js +1 -0
- package/lib/formFiled.94fb1dce.mjs +498 -0
- package/lib/gd-initial.js +1 -35
- package/lib/gd-initial.mjs +233 -91087
- package/lib/http.appmanage.9b22ff82.mjs +50 -0
- package/lib/http.appmanage.b998818f.js +1 -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.d3a4afd9.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.1af1e119.mjs +517 -0
- package/lib/http.main.2f8a6936.js +1 -0
- package/lib/http.menumanage.09fffb7d.mjs +66 -0
- package/lib/http.menumanage.6d740f2c.js +1 -0
- package/lib/http.message.1d68e914.mjs +178 -0
- package/lib/http.message.87f319d7.js +1 -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.7adf4910.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.3fa2dc66.mjs +40154 -0
- package/lib/index.fe757a98.js +8 -0
- package/lib/layoutBlocks.14c77a02.js +1 -0
- package/lib/layoutBlocks.5d71a03b.mjs +401 -0
- package/lib/layouts.a662f681.js +2 -0
- package/lib/layouts.ec4f20a2.mjs +376 -0
- package/lib/main.092a2ac8.js +1 -0
- package/lib/{main.f0045877.mjs → main.15237e71.mjs} +12 -10
- package/lib/main.29769f01.js +1 -0
- package/lib/main.401059c6.mjs +189 -0
- package/lib/main.447be615.js +1 -0
- package/lib/main.4e507685.mjs +231 -0
- package/lib/main.72cafa63.mjs +540 -0
- package/lib/{main.c41228a0.mjs → main.73f22d9e.mjs} +9 -8
- package/lib/main.7601bd3d.mjs +166 -0
- package/lib/main.79199ac2.js +1 -0
- package/lib/main.821d081b.js +1 -0
- package/lib/main.8627466a.mjs +537 -0
- package/lib/{main.b5a3be02.mjs → main.88e9be9d.mjs} +4 -4
- package/lib/main.8e6f6cba.mjs +323 -0
- package/lib/main.a9a54af9.js +1 -0
- package/lib/main.e033a376.js +1 -0
- package/lib/main.e2e4ba74.js +1 -0
- package/lib/{main.3caa11e1.mjs → main.e79d9e56.mjs} +113 -188
- package/lib/main.ea3a04f4.js +1 -0
- package/lib/main.f44d8279.js +1 -0
- package/lib/messages.5f54a62e.js +9 -0
- package/lib/{messages.a739f4fc.mjs → messages.d4354532.mjs} +4321 -5268
- package/lib/packages.filedocument.8418d852.mjs +4039 -0
- package/lib/packages.filedocument.9b8eda0d.js +1 -0
- package/lib/page.build.4d28df9a.js +12 -0
- package/lib/page.build.78cc7396.mjs +3020 -0
- package/lib/personal.echarts.940f1cc9.mjs +696 -0
- package/lib/personal.echarts.b5a7f574.js +1 -0
- package/lib/result.0161b0e0.js +1 -0
- package/lib/result.5a9330d7.mjs +627 -0
- package/lib/router.config.79a98ab8.mjs +3105 -0
- package/lib/router.config.7fd04c30.js +1 -0
- package/lib/solution.application.3ae7c0c5.js +1 -0
- package/lib/solution.application.fdc15ffc.mjs +548 -0
- package/lib/solution.applicationmenu.67aba620.js +1 -0
- package/lib/solution.applicationmenu.daaacb07.mjs +508 -0
- package/lib/solution.approvalflow.81b7cfb7.js +1 -0
- package/lib/solution.approvalflow.a541adcc.mjs +436 -0
- package/lib/solution.dict.addbce33.mjs +769 -0
- package/lib/solution.dict.f1c9bae6.js +1 -0
- package/lib/solution.menu.2033fa37.mjs +5834 -0
- package/lib/solution.menu.6512047f.js +1 -0
- package/lib/solution.plugin.7094dbfd.js +1 -0
- package/lib/solution.plugin.d8f057cb.mjs +347 -0
- package/lib/solution.processflow.0adf4f55.js +1 -0
- package/lib/solution.processflow.a779bd58.mjs +392 -0
- package/lib/solution.role.d35cb00d.js +1 -0
- package/lib/solution.role.d9a4b25a.mjs +456 -0
- package/lib/solution.webresources.e1421655.mjs +379 -0
- package/lib/solution.webresources.e817757c.js +1 -0
- package/lib/solution.workflow.59552b8c.mjs +395 -0
- package/lib/solution.workflow.985e1f4d.js +1 -0
- package/lib/store.config.556bd56b.js +1 -0
- package/lib/store.config.5e5cb48a.mjs +547 -0
- package/lib/style.css +3 -3
- package/lib/system.account.1b281679.js +216 -0
- package/lib/system.account.96d5bc17.mjs +2093 -0
- package/lib/system.config.0ff45e62.js +1 -0
- package/lib/{system.config.d2ad8c97.mjs → system.config.35b13003.mjs} +7 -6
- package/lib/system.datasource.4243937d.js +1 -0
- package/lib/{system.datasource.a77831ab.mjs → system.datasource.7f582bef.mjs} +15 -64
- package/lib/{system.dict.cb276470.mjs → system.dict.3697546d.mjs} +269 -344
- package/lib/system.dict.8e4fe6b0.js +1 -0
- package/lib/system.document.69e534a6.js +1 -0
- package/lib/system.document.8e4dbe5e.mjs +667 -0
- package/lib/system.duplicatechecking.1083eb1e.js +1 -0
- package/lib/system.duplicatechecking.c6a8b2b7.mjs +722 -0
- package/lib/system.email.06bb7cc1.mjs +133 -0
- package/lib/system.email.41036a31.js +1 -0
- package/lib/system.fieldsecurity.3ea880d8.js +1 -0
- package/lib/{system.fieldsecurity.9d40595f.mjs → system.fieldsecurity.dd504643.mjs} +486 -938
- package/lib/{system.file.8064c8e9.mjs → system.file.8ccc4569.mjs} +84 -151
- package/lib/system.file.b8e4e6a1.js +1 -0
- package/lib/system.log.14c22a7a.js +1 -0
- package/lib/{system.log.2b2fc11a.mjs → system.log.aad4ff54.mjs} +31 -93
- package/lib/system.machine.379beacb.js +1 -0
- package/lib/{system.machine.0130e762.mjs → system.machine.c47be0cc.mjs} +5 -25
- package/lib/{system.notice.5f8cd020.mjs → system.notice.dc1b67cc.mjs} +1075 -1255
- package/lib/system.notice.fb151c45.js +1 -0
- package/lib/system.noticereceived.3a29d891.js +1 -0
- package/lib/{system.noticereceived.51b6353a.mjs → system.noticereceived.e75bf358.mjs} +19 -27
- package/lib/{system.onlineuser.c0a69360.mjs → system.onlineuser.ab9c2776.mjs} +36 -38
- package/lib/system.onlineuser.fc26aff9.js +1 -0
- package/lib/system.org.b6f826e8.js +1 -0
- package/lib/{system.org.1169fe47.mjs → system.org.dd710a91.mjs} +3 -3
- package/lib/system.permissions.75406743.mjs +972 -0
- package/lib/system.permissions.97f68887.js +1 -0
- package/lib/system.plugin.3fcf7b0b.js +1 -0
- package/lib/{system.plugin.502a69d8.mjs → system.plugin.4b80cd95.mjs} +503 -552
- package/lib/system.pos.5a1663d8.js +1 -0
- package/lib/{system.pos.8c44c029.mjs → system.pos.a3bafaaa.mjs} +31 -62
- package/lib/system.promptmanagement.53c301a3.js +1 -0
- package/lib/{system.promptmanagement.d8565db4.mjs → system.promptmanagement.fd651c09.mjs} +318 -449
- package/lib/{system.role.19959d7f.mjs → system.role.9edb5922.mjs} +512 -486
- package/lib/system.role.e164f059.js +1 -0
- package/lib/{system.sumberrules.087015a4.mjs → system.sumberrules.4bb2c95c.mjs} +169 -192
- package/lib/system.sumberrules.5e9cd262.js +1 -0
- package/lib/system.team.3e605266.js +1 -0
- package/lib/system.team.bb1fb40e.mjs +452 -0
- package/lib/system.teammembers.a098883b.js +1 -0
- package/lib/{system.teammembers.4056d586.mjs → system.teammembers.b8e53d99.mjs} +257 -199
- package/lib/system.timers.2f884e41.js +38 -0
- package/lib/{system.timers.6f61bfe1.mjs → system.timers.551c4a4b.mjs} +2202 -2278
- package/lib/system.translation.6e99c852.js +1 -0
- package/lib/{system.translation.9b88fbf2.mjs → system.translation.c2c1f40c.mjs} +437 -431
- package/lib/{system.user.bdf2613e.mjs → system.user.b99911de.mjs} +1082 -1025
- package/lib/system.user.dffc2543.js +14 -0
- package/lib/{system.useraffiliation.63b6bb36.mjs → system.useraffiliation.12cae7ef.mjs} +419 -412
- package/lib/system.useraffiliation.f8b33def.js +1 -0
- package/lib/system.webresource.1d3ed352.js +1 -0
- package/lib/{system.webresource.c36d6792.mjs → system.webresource.8a8d856b.mjs} +177 -219
- package/lib/{system.welcome.14785b50.mjs → system.welcome.573a76db.mjs} +10 -3
- package/lib/system.welcome.eedf1db2.js +1 -0
- package/lib/tableDescriptions.923c4ef1.mjs +80 -0
- package/lib/tableDescriptions.b12679b0.js +1 -0
- package/lib/tcheckboxs.887d733c.mjs +52 -0
- package/lib/tcheckboxs.fe7e574a.js +1 -0
- package/lib/tcurrency.10ac9aa7.mjs +85 -0
- package/lib/tcurrency.20e959c0.js +1 -0
- package/lib/tdatepicker.54036bba.js +1 -0
- package/lib/tdatepicker.a08ad382.mjs +52 -0
- package/lib/tdictSwitch.274e9f86.js +1 -0
- package/lib/tdictSwitch.d40f1b4f.mjs +60 -0
- package/lib/tfile.5c897827.js +1 -0
- package/lib/tfile.f63b73b9.mjs +62 -0
- package/lib/tparticipants.4698962b.mjs +56 -0
- package/lib/tparticipants.b6fb4545.js +1 -0
- package/lib/translation.mains.5cfc7a2f.js +1 -0
- package/lib/translation.mains.e6cb610b.mjs +383 -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.885de913.mjs +439 -0
- package/lib/utils.util.js.c0ba699b.js +1 -0
- package/lib/view.build.051553d8.mjs +1578 -0
- package/lib/view.build.9af3087b.js +1 -0
- package/lib/viewList.209956c3.js +1 -0
- package/lib/viewList.c05c92be.mjs +318 -0
- package/lib/viewTree.0cd9f1a2.js +1 -0
- package/lib/viewTree.c5290360.mjs +409 -0
- package/locale/en_US.js +92 -28
- package/locale/id_ID.js +76 -12
- package/locale/vi_VN.js +2012 -1948
- package/locale/zh_CN.js +97 -33
- package/package.json +106 -105
- package/lib/chartbi.114d32d7.js +0 -60
- package/lib/chartbi.eb4dd0af.mjs +0 -27639
- package/lib/main.03984fed.js +0 -1
- package/lib/main.1050afb3.js +0 -1
- package/lib/main.64122541.js +0 -1
- package/lib/main.b7d2c6ee.js +0 -1
- package/lib/messages.828b6ed8.js +0 -9
- package/lib/system.account.3181bcd6.js +0 -216
- package/lib/system.account.7c6ea20c.mjs +0 -2552
- package/lib/system.config.10f57fa2.js +0 -1
- package/lib/system.datasource.d5eea7f2.js +0 -1
- package/lib/system.dict.d73658f1.js +0 -1
- package/lib/system.duplicatechecking.5c8a3eef.mjs +0 -2142
- package/lib/system.duplicatechecking.d24ba6ea.js +0 -1
- package/lib/system.email.4bf52f2d.js +0 -41
- package/lib/system.email.db5da8d7.mjs +0 -7432
- package/lib/system.fieldsecurity.eb217079.js +0 -1
- package/lib/system.file.c1884db7.js +0 -1
- package/lib/system.log.389af80d.js +0 -1
- package/lib/system.machine.49fc6405.js +0 -1
- package/lib/system.notice.a89f4826.js +0 -1
- package/lib/system.noticereceived.5e0773c3.js +0 -1
- package/lib/system.onlineuser.67733846.js +0 -1
- package/lib/system.org.ff54d620.js +0 -1
- package/lib/system.permissions.cc9a9866.mjs +0 -212
- package/lib/system.permissions.e6317c5a.js +0 -9
- package/lib/system.plugin.3467d572.js +0 -1
- package/lib/system.pos.4aadf86e.js +0 -1
- package/lib/system.promptmanagement.9ba710d6.js +0 -1
- package/lib/system.role.890c8ca2.js +0 -1
- package/lib/system.sumberrules.068ebe4a.js +0 -1
- package/lib/system.team.27cd57f7.mjs +0 -1000
- package/lib/system.team.2b28502b.js +0 -1
- package/lib/system.teammembers.e3baf783.js +0 -1
- package/lib/system.timers.cb0a3bd0.js +0 -38
- package/lib/system.translation.f3884a0a.js +0 -1
- package/lib/system.user.3bd95871.js +0 -14
- package/lib/system.useraffiliation.7db6e13c.js +0 -1
- package/lib/system.webresource.ede248a8.js +0 -1
- package/lib/system.welcome.c9eefa06.js +0 -1
|
@@ -1,2552 +0,0 @@
|
|
|
1
|
-
import { m as W, n as M } from "./chartbi.eb4dd0af.mjs";
|
|
2
|
-
import j from "vue";
|
|
3
|
-
import { s as V, a as X } from "./messages.a739f4fc.mjs";
|
|
4
|
-
function Ye(r) {
|
|
5
|
-
return window.axios({
|
|
6
|
-
url: "/login",
|
|
7
|
-
method: "post",
|
|
8
|
-
data: r
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
function Ne(r) {
|
|
12
|
-
return window.axios({
|
|
13
|
-
url: "/logout",
|
|
14
|
-
method: "get",
|
|
15
|
-
params: r
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
function G(r) {
|
|
19
|
-
return window.axios({
|
|
20
|
-
url: "/getLoginUser",
|
|
21
|
-
method: "get",
|
|
22
|
-
params: r
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
function ze(r) {
|
|
26
|
-
return window.axios({
|
|
27
|
-
url: "/sysBookmark/page",
|
|
28
|
-
method: "post",
|
|
29
|
-
data: r
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
function De(r) {
|
|
33
|
-
return window.axios({
|
|
34
|
-
url: "/sysBookmark/delete",
|
|
35
|
-
method: "post",
|
|
36
|
-
data: r
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
function je(r) {
|
|
40
|
-
return window.axios({
|
|
41
|
-
url: "/sysBookmark/add",
|
|
42
|
-
method: "post",
|
|
43
|
-
data: r
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
function Ve(r) {
|
|
47
|
-
return window.axios({
|
|
48
|
-
url: "/getLoginUser2",
|
|
49
|
-
method: "get",
|
|
50
|
-
params: r
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
function Ge(r) {
|
|
54
|
-
return window.axios({
|
|
55
|
-
url: "/OAuth2/authorize2",
|
|
56
|
-
method: "post",
|
|
57
|
-
data: r
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
function qe(r) {
|
|
61
|
-
return window.axios({
|
|
62
|
-
url: "/OAuth2/login",
|
|
63
|
-
method: "post",
|
|
64
|
-
data: r
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
function Ze(r) {
|
|
68
|
-
return window.axios({
|
|
69
|
-
url: "/sysUser/page",
|
|
70
|
-
method: "get",
|
|
71
|
-
params: r
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
function Je(r) {
|
|
75
|
-
return window.axios({
|
|
76
|
-
url: "/sysUser/add",
|
|
77
|
-
method: "post",
|
|
78
|
-
data: r
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
function Ke(r) {
|
|
82
|
-
return window.axios({
|
|
83
|
-
url: "/sysUser/edit",
|
|
84
|
-
method: "post",
|
|
85
|
-
data: r
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
function Qe(r) {
|
|
89
|
-
return window.axios({
|
|
90
|
-
url: "/sysUser/ownRole",
|
|
91
|
-
method: "get",
|
|
92
|
-
params: r
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
function et(r) {
|
|
96
|
-
return window.axios({
|
|
97
|
-
url: "/sysUser/changeRole",
|
|
98
|
-
method: "post",
|
|
99
|
-
data: r
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
function tt(r) {
|
|
103
|
-
return window.axios({
|
|
104
|
-
url: "/sysUser/changeStatus",
|
|
105
|
-
method: "post",
|
|
106
|
-
data: r
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
function nt(r) {
|
|
110
|
-
return window.axios({
|
|
111
|
-
url: "/sysUser/resetPwd",
|
|
112
|
-
method: "post",
|
|
113
|
-
data: r
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
function ot(r) {
|
|
117
|
-
return window.axios({
|
|
118
|
-
url: "/sysUser/selector",
|
|
119
|
-
method: "get",
|
|
120
|
-
params: r
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
function q(r) {
|
|
124
|
-
return window.axios({
|
|
125
|
-
url: "/sysUser/updateAvatar",
|
|
126
|
-
method: "post",
|
|
127
|
-
data: r
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
function Z(r) {
|
|
131
|
-
return window.axios({
|
|
132
|
-
url: "/sysUser/updateInfo",
|
|
133
|
-
method: "post",
|
|
134
|
-
data: r
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
function rt(r) {
|
|
138
|
-
return window.axios({
|
|
139
|
-
url: "/sysUser/export",
|
|
140
|
-
method: "get",
|
|
141
|
-
data: r,
|
|
142
|
-
responseType: "blob"
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
function st(r) {
|
|
146
|
-
return window.axios({
|
|
147
|
-
url: "/sysUser/import",
|
|
148
|
-
method: "post",
|
|
149
|
-
data: r
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
function J(r) {
|
|
153
|
-
return window.axios({
|
|
154
|
-
url: "/sysUser/updateConfigTheme",
|
|
155
|
-
method: "post",
|
|
156
|
-
data: r
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
function K(r) {
|
|
160
|
-
return window.axios({
|
|
161
|
-
url: "/sysConfig/GetPasswordRules",
|
|
162
|
-
method: "get",
|
|
163
|
-
params: r
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
function Q(r) {
|
|
167
|
-
return window.axios({
|
|
168
|
-
url: "/sysUser/updatePwdByAccount",
|
|
169
|
-
method: "post",
|
|
170
|
-
data: r
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
function it(r) {
|
|
174
|
-
return window.axios({
|
|
175
|
-
url: "/sysUser/resetPwdByAccount",
|
|
176
|
-
method: "post",
|
|
177
|
-
data: r
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
function ee(r) {
|
|
181
|
-
return window.axios({
|
|
182
|
-
url: "/sysConfig/GetConfigInfoByCode",
|
|
183
|
-
method: "get",
|
|
184
|
-
params: r
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
function at(r) {
|
|
188
|
-
return window.axios({
|
|
189
|
-
url: "/sysUser/ApplyResetPassword",
|
|
190
|
-
method: "post",
|
|
191
|
-
data: r
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
function ct(r) {
|
|
195
|
-
return window.axios({
|
|
196
|
-
url: "/sysUserPRC/CheckPRCValidation",
|
|
197
|
-
method: "post",
|
|
198
|
-
data: r
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
function lt(r) {
|
|
202
|
-
return window.axios({
|
|
203
|
-
url: "/wechatwork/LoginByWeChatWork",
|
|
204
|
-
method: "get",
|
|
205
|
-
params: r
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
function ut(r) {
|
|
209
|
-
return window.axios({
|
|
210
|
-
url: "/wechatwork/BindWechatWorkAccount",
|
|
211
|
-
method: "get",
|
|
212
|
-
params: r
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
function te(r) {
|
|
216
|
-
return window.axios({
|
|
217
|
-
url: "/wechatwork/BindWechatWorkAccountByCode",
|
|
218
|
-
method: "get",
|
|
219
|
-
params: r
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
function ne(r) {
|
|
223
|
-
return window.axios({
|
|
224
|
-
url: "/sysConfig/GetConfigsByCode",
|
|
225
|
-
method: "get",
|
|
226
|
-
params: r
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
function dt(r) {
|
|
230
|
-
return window.axios({
|
|
231
|
-
url: "/sysUser/ChangeUserBUJob",
|
|
232
|
-
method: "post",
|
|
233
|
-
data: r
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
function ht(r) {
|
|
237
|
-
return window.axios({
|
|
238
|
-
url: "/getUserListByRoleId",
|
|
239
|
-
method: "get",
|
|
240
|
-
params: r
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
function pt(r) {
|
|
244
|
-
return window.axios({
|
|
245
|
-
url: "/bindUsersToRole",
|
|
246
|
-
method: "post",
|
|
247
|
-
data: r
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
function gt(r) {
|
|
251
|
-
return window.axios({
|
|
252
|
-
url: "/unbindUsersFromRole",
|
|
253
|
-
method: "post",
|
|
254
|
-
data: r
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
function oe(r) {
|
|
258
|
-
return window.axios({
|
|
259
|
-
url: "/sysApp/list",
|
|
260
|
-
method: "get",
|
|
261
|
-
params: r
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
function ft(r) {
|
|
265
|
-
return window.axios({
|
|
266
|
-
url: "/sysApp/listByAppsId",
|
|
267
|
-
method: "get",
|
|
268
|
-
params: r
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
function mt(r) {
|
|
272
|
-
return window.axios({
|
|
273
|
-
url: "/sysApp/add",
|
|
274
|
-
method: "post",
|
|
275
|
-
data: r
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
function vt(r) {
|
|
279
|
-
return window.axios({
|
|
280
|
-
url: "/sysApp/edit",
|
|
281
|
-
method: "post",
|
|
282
|
-
data: r
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
function wt(r) {
|
|
286
|
-
return window.axios({
|
|
287
|
-
url: "/sysApp/delete",
|
|
288
|
-
method: "post",
|
|
289
|
-
data: r
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
function yt(r) {
|
|
293
|
-
return window.axios({
|
|
294
|
-
url: "/sysApp/changeStatus",
|
|
295
|
-
method: "post",
|
|
296
|
-
data: r
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
const Y = [{
|
|
300
|
-
key: "gd.theme.twilight",
|
|
301
|
-
color: "#F5222D"
|
|
302
|
-
}, {
|
|
303
|
-
key: "gd.theme.volcano",
|
|
304
|
-
color: "#FA541C"
|
|
305
|
-
}, {
|
|
306
|
-
key: "gd.theme.nightfall",
|
|
307
|
-
color: "#FAAD14"
|
|
308
|
-
}, {
|
|
309
|
-
key: "gd.theme.mingQing",
|
|
310
|
-
color: "#13C2C2"
|
|
311
|
-
}, {
|
|
312
|
-
key: "gd.theme.auroragreen",
|
|
313
|
-
color: "#52C41A"
|
|
314
|
-
}, {
|
|
315
|
-
key: "gd.theme.dawnBlue",
|
|
316
|
-
color: "#1890FF"
|
|
317
|
-
}, {
|
|
318
|
-
key: "gd.theme.soypurple",
|
|
319
|
-
color: "#722ED1"
|
|
320
|
-
}];
|
|
321
|
-
const re = {
|
|
322
|
-
props: {
|
|
323
|
-
keepAlive: {
|
|
324
|
-
type: Boolean,
|
|
325
|
-
default: !0
|
|
326
|
-
},
|
|
327
|
-
height: {
|
|
328
|
-
type: Number,
|
|
329
|
-
default: 0
|
|
330
|
-
}
|
|
331
|
-
},
|
|
332
|
-
name: "GdAccountSettings",
|
|
333
|
-
data() {
|
|
334
|
-
return {
|
|
335
|
-
mode: "inline",
|
|
336
|
-
openKeys: [],
|
|
337
|
-
selectedKeys: [],
|
|
338
|
-
activeIndex: "/account/settings/base",
|
|
339
|
-
preview: {},
|
|
340
|
-
option: {
|
|
341
|
-
img: "/avatar2.jpg",
|
|
342
|
-
info: !0,
|
|
343
|
-
size: 1,
|
|
344
|
-
outputType: "jpeg",
|
|
345
|
-
canScale: !1,
|
|
346
|
-
autoCrop: !0,
|
|
347
|
-
autoCropWidth: 180,
|
|
348
|
-
autoCropHeight: 180,
|
|
349
|
-
fixedBox: !0,
|
|
350
|
-
fixed: !0,
|
|
351
|
-
fixedNumber: [1, 1]
|
|
352
|
-
},
|
|
353
|
-
pageTitle: ""
|
|
354
|
-
};
|
|
355
|
-
},
|
|
356
|
-
components: {},
|
|
357
|
-
computed: {
|
|
358
|
-
fadeColord() {
|
|
359
|
-
return this.fadeColor(this.primaryColor, 0.1);
|
|
360
|
-
},
|
|
361
|
-
style() {
|
|
362
|
-
return this.crumbsState ? "margin:0 4px 4px;height: 100%;" : "margin: 4px;height: 100%;";
|
|
363
|
-
},
|
|
364
|
-
getHeight() {
|
|
365
|
-
return "overflow:auto;height:" + (this.screenHeight - 24 - 20 - 10 - 5) + "px;";
|
|
366
|
-
},
|
|
367
|
-
getTitle() {
|
|
368
|
-
let r = "", e = this.$route.meta.title;
|
|
369
|
-
return e === "\u57FA\u672C\u8BBE\u7F6E" ? r = "basicSettings" : e === "\u5B89\u5168\u8BBE\u7F6E" ? r = "securitySetting" : e === "\u4E2A\u6027\u5316\u8BBE\u7F6E" ? r = "personalization" : e === "\u65B0\u6D88\u606F\u901A\u77E5" ? r = "notify" : e === "\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1" && (r = "bindenterpriseWechat"), r === "" ? e : this.$i18nt("gd.account." + r);
|
|
370
|
-
},
|
|
371
|
-
...W(["userInfo", "screenHeight", "primaryColor", "multiTab"])
|
|
372
|
-
},
|
|
373
|
-
mounted() {
|
|
374
|
-
this.updateMenu();
|
|
375
|
-
},
|
|
376
|
-
methods: {
|
|
377
|
-
onOpenChange(r, e) {
|
|
378
|
-
this.openKeys = openKeys;
|
|
379
|
-
},
|
|
380
|
-
updateMenu() {
|
|
381
|
-
const r = this.$route.matched.concat();
|
|
382
|
-
this.activeIndex = r.pop().path;
|
|
383
|
-
},
|
|
384
|
-
clickWx(r, e) {
|
|
385
|
-
const o = this.$route.matched.concat();
|
|
386
|
-
this.activeIndex = o.pop().path;
|
|
387
|
-
},
|
|
388
|
-
fadeColor(r, e) {
|
|
389
|
-
let o = parseInt(r.substring(1, 3), 16), a = parseInt(r.substring(3, 5), 16), d = parseInt(r.substring(5, 7), 16);
|
|
390
|
-
return `rgba(${o},${a},${d},${e})`;
|
|
391
|
-
}
|
|
392
|
-
},
|
|
393
|
-
watch: {
|
|
394
|
-
$route(r) {
|
|
395
|
-
this.updateMenu();
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
};
|
|
399
|
-
var se = function() {
|
|
400
|
-
var e = this, o = e._self._c;
|
|
401
|
-
return o("div", { staticClass: "page-header-index-wide", style: e.style }, [o("el-card", { style: e.getHeight, attrs: { bordered: !1, bodyStyle: { padding: "16px 0", height: e.getHeight + "px" } } }, [o("div", { staticClass: "account-settings-info-main" }, [o("div", { staticClass: "account-settings-info-left", style: { "--dilute": e.fadeColord } }, [o("el-menu", { staticClass: "el-menu-vertical-demo", attrs: { router: "", "default-active": e.$route.path, mode: "vertical" }, on: { select: e.clickWx } }, [o("el-menu-item", { attrs: { index: "/account/settings/base" } }, [e._v(e._s(e.$i18nt("gd.account.basicSettings")))]), o("el-menu-item", { attrs: { index: "/account/settings/security" } }, [e._v(e._s(e.$i18nt("gd.account.securitySetting")))]), o("el-menu-item", { attrs: { index: "/account/settings/custom" } }, [e._v(e._s(e.$i18nt("gd.account.personalization")))])], 1)], 1), o("div", { staticClass: "account-settings-info-right" }, [o("div", { staticClass: "account-settings-info-title" }, [o("span", [e._v(e._s(e.getTitle))])]), e.multiTab ? o("keep-alive", [o("router-view", { key: e.$route.fullPath })], 1) : o("router-view", { key: e.$route.fullPath })], 1)])])], 1);
|
|
402
|
-
}, ie = [], ae = /* @__PURE__ */ M(
|
|
403
|
-
re,
|
|
404
|
-
se,
|
|
405
|
-
ie,
|
|
406
|
-
!1,
|
|
407
|
-
null,
|
|
408
|
-
"0ab9cb32",
|
|
409
|
-
null,
|
|
410
|
-
null
|
|
411
|
-
);
|
|
412
|
-
const U = ae.exports;
|
|
413
|
-
U.install = function(r) {
|
|
414
|
-
r.component(U.name, U);
|
|
415
|
-
};
|
|
416
|
-
var xt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
417
|
-
function Ct(r) {
|
|
418
|
-
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
419
|
-
}
|
|
420
|
-
function bt(r) {
|
|
421
|
-
var e = r.default;
|
|
422
|
-
if (typeof e == "function") {
|
|
423
|
-
var o = function() {
|
|
424
|
-
return e.apply(this, arguments);
|
|
425
|
-
};
|
|
426
|
-
o.prototype = e.prototype;
|
|
427
|
-
} else
|
|
428
|
-
o = {};
|
|
429
|
-
return Object.defineProperty(o, "__esModule", { value: !0 }), Object.keys(r).forEach(function(a) {
|
|
430
|
-
var d = Object.getOwnPropertyDescriptor(r, a);
|
|
431
|
-
Object.defineProperty(o, a, d.get ? d : {
|
|
432
|
-
enumerable: !0,
|
|
433
|
-
get: function() {
|
|
434
|
-
return r[a];
|
|
435
|
-
}
|
|
436
|
-
});
|
|
437
|
-
}), o;
|
|
438
|
-
}
|
|
439
|
-
var N = { exports: {} };
|
|
440
|
-
(function(r, e) {
|
|
441
|
-
(function(o, a) {
|
|
442
|
-
r.exports = a();
|
|
443
|
-
})(window, function() {
|
|
444
|
-
return function(o) {
|
|
445
|
-
var a = {};
|
|
446
|
-
function d(h) {
|
|
447
|
-
if (a[h])
|
|
448
|
-
return a[h].exports;
|
|
449
|
-
var y = a[h] = { i: h, l: !1, exports: {} };
|
|
450
|
-
return o[h].call(y.exports, y, y.exports, d), y.l = !0, y.exports;
|
|
451
|
-
}
|
|
452
|
-
return d.m = o, d.c = a, d.d = function(h, y, $) {
|
|
453
|
-
d.o(h, y) || Object.defineProperty(h, y, { enumerable: !0, get: $ });
|
|
454
|
-
}, d.r = function(h) {
|
|
455
|
-
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(h, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(h, "__esModule", { value: !0 });
|
|
456
|
-
}, d.t = function(h, y) {
|
|
457
|
-
if (1 & y && (h = d(h)), 8 & y || 4 & y && typeof h == "object" && h && h.__esModule)
|
|
458
|
-
return h;
|
|
459
|
-
var $ = /* @__PURE__ */ Object.create(null);
|
|
460
|
-
if (d.r($), Object.defineProperty($, "default", { enumerable: !0, value: h }), 2 & y && typeof h != "string")
|
|
461
|
-
for (var I in h)
|
|
462
|
-
d.d($, I, function(A) {
|
|
463
|
-
return h[A];
|
|
464
|
-
}.bind(null, I));
|
|
465
|
-
return $;
|
|
466
|
-
}, d.n = function(h) {
|
|
467
|
-
var y = h && h.__esModule ? function() {
|
|
468
|
-
return h.default;
|
|
469
|
-
} : function() {
|
|
470
|
-
return h;
|
|
471
|
-
};
|
|
472
|
-
return d.d(y, "a", y), y;
|
|
473
|
-
}, d.o = function(h, y) {
|
|
474
|
-
return Object.prototype.hasOwnProperty.call(h, y);
|
|
475
|
-
}, d.p = "", d(d.s = 6);
|
|
476
|
-
}([function(o, a, d) {
|
|
477
|
-
var h = d(2);
|
|
478
|
-
typeof h == "string" && (h = [[o.i, h, ""]]);
|
|
479
|
-
var y = { hmr: !0, transform: void 0, insertInto: void 0 };
|
|
480
|
-
d(4)(h, y), h.locals && (o.exports = h.locals);
|
|
481
|
-
}, function(o, a, d) {
|
|
482
|
-
var h = d(0);
|
|
483
|
-
d.n(h).a;
|
|
484
|
-
}, function(o, a, d) {
|
|
485
|
-
(o.exports = d(3)(!1)).push([o.i, `
|
|
486
|
-
.vue-cropper[data-v-6dae58fd] {
|
|
487
|
-
position: relative;
|
|
488
|
-
width: 100%;
|
|
489
|
-
height: 100%;
|
|
490
|
-
box-sizing: border-box;
|
|
491
|
-
user-select: none;
|
|
492
|
-
-webkit-user-select: none;
|
|
493
|
-
-moz-user-select: none;
|
|
494
|
-
-ms-user-select: none;
|
|
495
|
-
direction: ltr;
|
|
496
|
-
touch-action: none;
|
|
497
|
-
text-align: left;
|
|
498
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");
|
|
499
|
-
}
|
|
500
|
-
.cropper-box[data-v-6dae58fd],
|
|
501
|
-
.cropper-box-canvas[data-v-6dae58fd],
|
|
502
|
-
.cropper-drag-box[data-v-6dae58fd],
|
|
503
|
-
.cropper-crop-box[data-v-6dae58fd],
|
|
504
|
-
.cropper-face[data-v-6dae58fd] {
|
|
505
|
-
position: absolute;
|
|
506
|
-
top: 0;
|
|
507
|
-
right: 0;
|
|
508
|
-
bottom: 0;
|
|
509
|
-
left: 0;
|
|
510
|
-
user-select: none;
|
|
511
|
-
}
|
|
512
|
-
.cropper-box-canvas img[data-v-6dae58fd] {
|
|
513
|
-
position: relative;
|
|
514
|
-
text-align: left;
|
|
515
|
-
user-select: none;
|
|
516
|
-
transform: none;
|
|
517
|
-
max-width: none;
|
|
518
|
-
max-height: none;
|
|
519
|
-
}
|
|
520
|
-
.cropper-box[data-v-6dae58fd] {
|
|
521
|
-
overflow: hidden;
|
|
522
|
-
}
|
|
523
|
-
.cropper-move[data-v-6dae58fd] {
|
|
524
|
-
cursor: move;
|
|
525
|
-
}
|
|
526
|
-
.cropper-crop[data-v-6dae58fd] {
|
|
527
|
-
cursor: crosshair;
|
|
528
|
-
}
|
|
529
|
-
.cropper-modal[data-v-6dae58fd] {
|
|
530
|
-
background: rgba(0, 0, 0, 0.5);
|
|
531
|
-
}
|
|
532
|
-
.cropper-crop-box[data-v-6dae58fd] {
|
|
533
|
-
/*border: 2px solid #39f;*/
|
|
534
|
-
}
|
|
535
|
-
.cropper-view-box[data-v-6dae58fd] {
|
|
536
|
-
display: block;
|
|
537
|
-
overflow: hidden;
|
|
538
|
-
width: 100%;
|
|
539
|
-
height: 100%;
|
|
540
|
-
outline: 1px solid #39f;
|
|
541
|
-
outline-color: rgba(51, 153, 255, 0.75);
|
|
542
|
-
user-select: none;
|
|
543
|
-
}
|
|
544
|
-
.cropper-view-box img[data-v-6dae58fd] {
|
|
545
|
-
user-select: none;
|
|
546
|
-
text-align: left;
|
|
547
|
-
max-width: none;
|
|
548
|
-
max-height: none;
|
|
549
|
-
}
|
|
550
|
-
.cropper-face[data-v-6dae58fd] {
|
|
551
|
-
top: 0;
|
|
552
|
-
left: 0;
|
|
553
|
-
background-color: #fff;
|
|
554
|
-
opacity: 0.1;
|
|
555
|
-
}
|
|
556
|
-
.crop-info[data-v-6dae58fd] {
|
|
557
|
-
position: absolute;
|
|
558
|
-
left: 0px;
|
|
559
|
-
min-width: 65px;
|
|
560
|
-
text-align: center;
|
|
561
|
-
color: white;
|
|
562
|
-
line-height: 20px;
|
|
563
|
-
background-color: rgba(0, 0, 0, 0.8);
|
|
564
|
-
font-size: 12px;
|
|
565
|
-
}
|
|
566
|
-
.crop-line[data-v-6dae58fd] {
|
|
567
|
-
position: absolute;
|
|
568
|
-
display: block;
|
|
569
|
-
width: 100%;
|
|
570
|
-
height: 100%;
|
|
571
|
-
opacity: 0.1;
|
|
572
|
-
}
|
|
573
|
-
.line-w[data-v-6dae58fd] {
|
|
574
|
-
top: -3px;
|
|
575
|
-
left: 0;
|
|
576
|
-
height: 5px;
|
|
577
|
-
cursor: n-resize;
|
|
578
|
-
}
|
|
579
|
-
.line-a[data-v-6dae58fd] {
|
|
580
|
-
top: 0;
|
|
581
|
-
left: -3px;
|
|
582
|
-
width: 5px;
|
|
583
|
-
cursor: w-resize;
|
|
584
|
-
}
|
|
585
|
-
.line-s[data-v-6dae58fd] {
|
|
586
|
-
bottom: -3px;
|
|
587
|
-
left: 0;
|
|
588
|
-
height: 5px;
|
|
589
|
-
cursor: s-resize;
|
|
590
|
-
}
|
|
591
|
-
.line-d[data-v-6dae58fd] {
|
|
592
|
-
top: 0;
|
|
593
|
-
right: -3px;
|
|
594
|
-
width: 5px;
|
|
595
|
-
cursor: e-resize;
|
|
596
|
-
}
|
|
597
|
-
.crop-point[data-v-6dae58fd] {
|
|
598
|
-
position: absolute;
|
|
599
|
-
width: 8px;
|
|
600
|
-
height: 8px;
|
|
601
|
-
opacity: 0.75;
|
|
602
|
-
background-color: #39f;
|
|
603
|
-
border-radius: 100%;
|
|
604
|
-
}
|
|
605
|
-
.point1[data-v-6dae58fd] {
|
|
606
|
-
top: -4px;
|
|
607
|
-
left: -4px;
|
|
608
|
-
cursor: nw-resize;
|
|
609
|
-
}
|
|
610
|
-
.point2[data-v-6dae58fd] {
|
|
611
|
-
top: -5px;
|
|
612
|
-
left: 50%;
|
|
613
|
-
margin-left: -3px;
|
|
614
|
-
cursor: n-resize;
|
|
615
|
-
}
|
|
616
|
-
.point3[data-v-6dae58fd] {
|
|
617
|
-
top: -4px;
|
|
618
|
-
right: -4px;
|
|
619
|
-
cursor: ne-resize;
|
|
620
|
-
}
|
|
621
|
-
.point4[data-v-6dae58fd] {
|
|
622
|
-
top: 50%;
|
|
623
|
-
left: -4px;
|
|
624
|
-
margin-top: -3px;
|
|
625
|
-
cursor: w-resize;
|
|
626
|
-
}
|
|
627
|
-
.point5[data-v-6dae58fd] {
|
|
628
|
-
top: 50%;
|
|
629
|
-
right: -4px;
|
|
630
|
-
margin-top: -3px;
|
|
631
|
-
cursor: e-resize;
|
|
632
|
-
}
|
|
633
|
-
.point6[data-v-6dae58fd] {
|
|
634
|
-
bottom: -5px;
|
|
635
|
-
left: -4px;
|
|
636
|
-
cursor: sw-resize;
|
|
637
|
-
}
|
|
638
|
-
.point7[data-v-6dae58fd] {
|
|
639
|
-
bottom: -5px;
|
|
640
|
-
left: 50%;
|
|
641
|
-
margin-left: -3px;
|
|
642
|
-
cursor: s-resize;
|
|
643
|
-
}
|
|
644
|
-
.point8[data-v-6dae58fd] {
|
|
645
|
-
bottom: -5px;
|
|
646
|
-
right: -4px;
|
|
647
|
-
cursor: se-resize;
|
|
648
|
-
}
|
|
649
|
-
@media screen and (max-width: 500px) {
|
|
650
|
-
.crop-point[data-v-6dae58fd] {
|
|
651
|
-
position: absolute;
|
|
652
|
-
width: 20px;
|
|
653
|
-
height: 20px;
|
|
654
|
-
opacity: 0.45;
|
|
655
|
-
background-color: #39f;
|
|
656
|
-
border-radius: 100%;
|
|
657
|
-
}
|
|
658
|
-
.point1[data-v-6dae58fd] {
|
|
659
|
-
top: -10px;
|
|
660
|
-
left: -10px;
|
|
661
|
-
}
|
|
662
|
-
.point2[data-v-6dae58fd],
|
|
663
|
-
.point4[data-v-6dae58fd],
|
|
664
|
-
.point5[data-v-6dae58fd],
|
|
665
|
-
.point7[data-v-6dae58fd] {
|
|
666
|
-
display: none;
|
|
667
|
-
}
|
|
668
|
-
.point3[data-v-6dae58fd] {
|
|
669
|
-
top: -10px;
|
|
670
|
-
right: -10px;
|
|
671
|
-
}
|
|
672
|
-
.point4[data-v-6dae58fd] {
|
|
673
|
-
top: 0;
|
|
674
|
-
left: 0;
|
|
675
|
-
}
|
|
676
|
-
.point6[data-v-6dae58fd] {
|
|
677
|
-
bottom: -10px;
|
|
678
|
-
left: -10px;
|
|
679
|
-
}
|
|
680
|
-
.point8[data-v-6dae58fd] {
|
|
681
|
-
bottom: -10px;
|
|
682
|
-
right: -10px;
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
`, ""]);
|
|
686
|
-
}, function(o, a) {
|
|
687
|
-
o.exports = function(d) {
|
|
688
|
-
var h = [];
|
|
689
|
-
return h.toString = function() {
|
|
690
|
-
return this.map(function(y) {
|
|
691
|
-
var $ = function(I, A) {
|
|
692
|
-
var k = I[1] || "", L = I[3];
|
|
693
|
-
if (!L)
|
|
694
|
-
return k;
|
|
695
|
-
if (A && typeof btoa == "function") {
|
|
696
|
-
var n = function(i) {
|
|
697
|
-
return "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(i)))) + " */";
|
|
698
|
-
}(L), t = L.sources.map(function(i) {
|
|
699
|
-
return "/*# sourceURL=" + L.sourceRoot + i + " */";
|
|
700
|
-
});
|
|
701
|
-
return [k].concat(t).concat([n]).join(`
|
|
702
|
-
`);
|
|
703
|
-
}
|
|
704
|
-
return [k].join(`
|
|
705
|
-
`);
|
|
706
|
-
}(y, d);
|
|
707
|
-
return y[2] ? "@media " + y[2] + "{" + $ + "}" : $;
|
|
708
|
-
}).join("");
|
|
709
|
-
}, h.i = function(y, $) {
|
|
710
|
-
typeof y == "string" && (y = [[null, y, ""]]);
|
|
711
|
-
for (var I = {}, A = 0; A < this.length; A++) {
|
|
712
|
-
var k = this[A][0];
|
|
713
|
-
typeof k == "number" && (I[k] = !0);
|
|
714
|
-
}
|
|
715
|
-
for (A = 0; A < y.length; A++) {
|
|
716
|
-
var L = y[A];
|
|
717
|
-
typeof L[0] == "number" && I[L[0]] || ($ && !L[2] ? L[2] = $ : $ && (L[2] = "(" + L[2] + ") and (" + $ + ")"), h.push(L));
|
|
718
|
-
}
|
|
719
|
-
}, h;
|
|
720
|
-
};
|
|
721
|
-
}, function(o, a, d) {
|
|
722
|
-
var h = {}, y = function(c) {
|
|
723
|
-
var u;
|
|
724
|
-
return function() {
|
|
725
|
-
return u === void 0 && (u = c.apply(this, arguments)), u;
|
|
726
|
-
};
|
|
727
|
-
}(function() {
|
|
728
|
-
return window && document && document.all && !window.atob;
|
|
729
|
-
}), $ = function(c) {
|
|
730
|
-
var u = {};
|
|
731
|
-
return function(p, g) {
|
|
732
|
-
if (typeof p == "function")
|
|
733
|
-
return p();
|
|
734
|
-
if (u[p] === void 0) {
|
|
735
|
-
var w = function(v, C) {
|
|
736
|
-
return C ? C.querySelector(v) : document.querySelector(v);
|
|
737
|
-
}.call(this, p, g);
|
|
738
|
-
if (window.HTMLIFrameElement && w instanceof window.HTMLIFrameElement)
|
|
739
|
-
try {
|
|
740
|
-
w = w.contentDocument.head;
|
|
741
|
-
} catch {
|
|
742
|
-
w = null;
|
|
743
|
-
}
|
|
744
|
-
u[p] = w;
|
|
745
|
-
}
|
|
746
|
-
return u[p];
|
|
747
|
-
};
|
|
748
|
-
}(), I = null, A = 0, k = [], L = d(5);
|
|
749
|
-
function n(c, u) {
|
|
750
|
-
for (var p = 0; p < c.length; p++) {
|
|
751
|
-
var g = c[p], w = h[g.id];
|
|
752
|
-
if (w) {
|
|
753
|
-
w.refs++;
|
|
754
|
-
for (var v = 0; v < w.parts.length; v++)
|
|
755
|
-
w.parts[v](g.parts[v]);
|
|
756
|
-
for (; v < g.parts.length; v++)
|
|
757
|
-
w.parts.push(m(g.parts[v], u));
|
|
758
|
-
} else {
|
|
759
|
-
var C = [];
|
|
760
|
-
for (v = 0; v < g.parts.length; v++)
|
|
761
|
-
C.push(m(g.parts[v], u));
|
|
762
|
-
h[g.id] = { id: g.id, refs: 1, parts: C };
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
function t(c, u) {
|
|
767
|
-
for (var p = [], g = {}, w = 0; w < c.length; w++) {
|
|
768
|
-
var v = c[w], C = u.base ? v[0] + u.base : v[0], _ = { css: v[1], media: v[2], sourceMap: v[3] };
|
|
769
|
-
g[C] ? g[C].parts.push(_) : p.push(g[C] = { id: C, parts: [_] });
|
|
770
|
-
}
|
|
771
|
-
return p;
|
|
772
|
-
}
|
|
773
|
-
function i(c, u) {
|
|
774
|
-
var p = $(c.insertInto);
|
|
775
|
-
if (!p)
|
|
776
|
-
throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
|
|
777
|
-
var g = k[k.length - 1];
|
|
778
|
-
if (c.insertAt === "top")
|
|
779
|
-
g ? g.nextSibling ? p.insertBefore(u, g.nextSibling) : p.appendChild(u) : p.insertBefore(u, p.firstChild), k.push(u);
|
|
780
|
-
else if (c.insertAt === "bottom")
|
|
781
|
-
p.appendChild(u);
|
|
782
|
-
else {
|
|
783
|
-
if (typeof c.insertAt != "object" || !c.insertAt.before)
|
|
784
|
-
throw new Error(`[Style Loader]
|
|
785
|
-
|
|
786
|
-
Invalid value for parameter 'insertAt' ('options.insertAt') found.
|
|
787
|
-
Must be 'top', 'bottom', or Object.
|
|
788
|
-
(https://github.com/webpack-contrib/style-loader#insertat)
|
|
789
|
-
`);
|
|
790
|
-
var w = $(c.insertAt.before, p);
|
|
791
|
-
p.insertBefore(u, w);
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
function s(c) {
|
|
795
|
-
if (c.parentNode === null)
|
|
796
|
-
return !1;
|
|
797
|
-
c.parentNode.removeChild(c);
|
|
798
|
-
var u = k.indexOf(c);
|
|
799
|
-
u >= 0 && k.splice(u, 1);
|
|
800
|
-
}
|
|
801
|
-
function l(c) {
|
|
802
|
-
var u = document.createElement("style");
|
|
803
|
-
if (c.attrs.type === void 0 && (c.attrs.type = "text/css"), c.attrs.nonce === void 0) {
|
|
804
|
-
var p = function() {
|
|
805
|
-
return d.nc;
|
|
806
|
-
}();
|
|
807
|
-
p && (c.attrs.nonce = p);
|
|
808
|
-
}
|
|
809
|
-
return f(u, c.attrs), i(c, u), u;
|
|
810
|
-
}
|
|
811
|
-
function f(c, u) {
|
|
812
|
-
Object.keys(u).forEach(function(p) {
|
|
813
|
-
c.setAttribute(p, u[p]);
|
|
814
|
-
});
|
|
815
|
-
}
|
|
816
|
-
function m(c, u) {
|
|
817
|
-
var p, g, w, v;
|
|
818
|
-
if (u.transform && c.css) {
|
|
819
|
-
if (!(v = typeof u.transform == "function" ? u.transform(c.css) : u.transform.default(c.css)))
|
|
820
|
-
return function() {
|
|
821
|
-
};
|
|
822
|
-
c.css = v;
|
|
823
|
-
}
|
|
824
|
-
if (u.singleton) {
|
|
825
|
-
var C = A++;
|
|
826
|
-
p = I || (I = l(u)), g = x.bind(null, p, C, !1), w = x.bind(null, p, C, !0);
|
|
827
|
-
} else
|
|
828
|
-
c.sourceMap && typeof URL == "function" && typeof URL.createObjectURL == "function" && typeof URL.revokeObjectURL == "function" && typeof Blob == "function" && typeof btoa == "function" ? (p = function(_) {
|
|
829
|
-
var S = document.createElement("link");
|
|
830
|
-
return _.attrs.type === void 0 && (_.attrs.type = "text/css"), _.attrs.rel = "stylesheet", f(S, _.attrs), i(_, S), S;
|
|
831
|
-
}(u), g = function(_, S, E) {
|
|
832
|
-
var T = E.css, O = E.sourceMap, H = S.convertToAbsoluteUrls === void 0 && O;
|
|
833
|
-
(S.convertToAbsoluteUrls || H) && (T = L(T)), O && (T += `
|
|
834
|
-
/*# sourceMappingURL=data:application/json;base64,` + btoa(unescape(encodeURIComponent(JSON.stringify(O)))) + " */");
|
|
835
|
-
var D = new Blob([T], { type: "text/css" }), R = _.href;
|
|
836
|
-
_.href = URL.createObjectURL(D), R && URL.revokeObjectURL(R);
|
|
837
|
-
}.bind(null, p, u), w = function() {
|
|
838
|
-
s(p), p.href && URL.revokeObjectURL(p.href);
|
|
839
|
-
}) : (p = l(u), g = function(_, S) {
|
|
840
|
-
var E = S.css, T = S.media;
|
|
841
|
-
if (T && _.setAttribute("media", T), _.styleSheet)
|
|
842
|
-
_.styleSheet.cssText = E;
|
|
843
|
-
else {
|
|
844
|
-
for (; _.firstChild; )
|
|
845
|
-
_.removeChild(_.firstChild);
|
|
846
|
-
_.appendChild(document.createTextNode(E));
|
|
847
|
-
}
|
|
848
|
-
}.bind(null, p), w = function() {
|
|
849
|
-
s(p);
|
|
850
|
-
});
|
|
851
|
-
return g(c), function(_) {
|
|
852
|
-
if (_) {
|
|
853
|
-
if (_.css === c.css && _.media === c.media && _.sourceMap === c.sourceMap)
|
|
854
|
-
return;
|
|
855
|
-
g(c = _);
|
|
856
|
-
} else
|
|
857
|
-
w();
|
|
858
|
-
};
|
|
859
|
-
}
|
|
860
|
-
o.exports = function(c, u) {
|
|
861
|
-
if (typeof DEBUG < "u" && DEBUG && typeof document != "object")
|
|
862
|
-
throw new Error("The style-loader cannot be used in a non-browser environment");
|
|
863
|
-
(u = u || {}).attrs = typeof u.attrs == "object" ? u.attrs : {}, u.singleton || typeof u.singleton == "boolean" || (u.singleton = y()), u.insertInto || (u.insertInto = "head"), u.insertAt || (u.insertAt = "bottom");
|
|
864
|
-
var p = t(c, u);
|
|
865
|
-
return n(p, u), function(g) {
|
|
866
|
-
for (var w = [], v = 0; v < p.length; v++) {
|
|
867
|
-
var C = p[v];
|
|
868
|
-
(_ = h[C.id]).refs--, w.push(_);
|
|
869
|
-
}
|
|
870
|
-
for (g && n(t(g, u), u), v = 0; v < w.length; v++) {
|
|
871
|
-
var _;
|
|
872
|
-
if ((_ = w[v]).refs === 0) {
|
|
873
|
-
for (var S = 0; S < _.parts.length; S++)
|
|
874
|
-
_.parts[S]();
|
|
875
|
-
delete h[_.id];
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
};
|
|
879
|
-
};
|
|
880
|
-
var b = function() {
|
|
881
|
-
var c = [];
|
|
882
|
-
return function(u, p) {
|
|
883
|
-
return c[u] = p, c.filter(Boolean).join(`
|
|
884
|
-
`);
|
|
885
|
-
};
|
|
886
|
-
}();
|
|
887
|
-
function x(c, u, p, g) {
|
|
888
|
-
var w = p ? "" : g.css;
|
|
889
|
-
if (c.styleSheet)
|
|
890
|
-
c.styleSheet.cssText = b(u, w);
|
|
891
|
-
else {
|
|
892
|
-
var v = document.createTextNode(w), C = c.childNodes;
|
|
893
|
-
C[u] && c.removeChild(C[u]), C.length ? c.insertBefore(v, C[u]) : c.appendChild(v);
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
}, function(o, a) {
|
|
897
|
-
o.exports = function(d) {
|
|
898
|
-
var h = typeof window < "u" && window.location;
|
|
899
|
-
if (!h)
|
|
900
|
-
throw new Error("fixUrls requires window.location");
|
|
901
|
-
if (!d || typeof d != "string")
|
|
902
|
-
return d;
|
|
903
|
-
var y = h.protocol + "//" + h.host, $ = y + h.pathname.replace(/\/[^\/]*$/, "/");
|
|
904
|
-
return d.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(I, A) {
|
|
905
|
-
var k, L = A.trim().replace(/^"(.*)"$/, function(n, t) {
|
|
906
|
-
return t;
|
|
907
|
-
}).replace(/^'(.*)'$/, function(n, t) {
|
|
908
|
-
return t;
|
|
909
|
-
});
|
|
910
|
-
return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(L) ? I : (k = L.indexOf("//") === 0 ? L : L.indexOf("/") === 0 ? y + L : $ + L.replace(/^\.\//, ""), "url(" + JSON.stringify(k) + ")");
|
|
911
|
-
});
|
|
912
|
-
};
|
|
913
|
-
}, function(o, a, d) {
|
|
914
|
-
d.r(a);
|
|
915
|
-
var h = function() {
|
|
916
|
-
var n = this, t = n.$createElement, i = n._self._c || t;
|
|
917
|
-
return i("div", { ref: "cropper", staticClass: "vue-cropper", on: { mouseover: n.scaleImg, mouseout: n.cancelScale } }, [n.imgs ? i("div", { staticClass: "cropper-box" }, [i("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)" } }, [i("img", { ref: "cropperImg", attrs: { src: n.imgs, alt: "cropper-img" } })])]) : n._e(), n._v(" "), i("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(" "), i("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)" } }, [i("span", { staticClass: "cropper-view-box" }, [i("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(" "), i("span", { staticClass: "cropper-face cropper-move", on: { mousedown: n.cropMove, touchstart: n.cropMove } }), n._v(" "), n.info ? i("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() : i("span", [i("span", { staticClass: "crop-line line-w", on: { mousedown: function(s) {
|
|
918
|
-
n.changeCropSize(s, !1, !0, 0, 1);
|
|
919
|
-
}, touchstart: function(s) {
|
|
920
|
-
n.changeCropSize(s, !1, !0, 0, 1);
|
|
921
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-line line-a", on: { mousedown: function(s) {
|
|
922
|
-
n.changeCropSize(s, !0, !1, 1, 0);
|
|
923
|
-
}, touchstart: function(s) {
|
|
924
|
-
n.changeCropSize(s, !0, !1, 1, 0);
|
|
925
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-line line-s", on: { mousedown: function(s) {
|
|
926
|
-
n.changeCropSize(s, !1, !0, 0, 2);
|
|
927
|
-
}, touchstart: function(s) {
|
|
928
|
-
n.changeCropSize(s, !1, !0, 0, 2);
|
|
929
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-line line-d", on: { mousedown: function(s) {
|
|
930
|
-
n.changeCropSize(s, !0, !1, 2, 0);
|
|
931
|
-
}, touchstart: function(s) {
|
|
932
|
-
n.changeCropSize(s, !0, !1, 2, 0);
|
|
933
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-point point1", on: { mousedown: function(s) {
|
|
934
|
-
n.changeCropSize(s, !0, !0, 1, 1);
|
|
935
|
-
}, touchstart: function(s) {
|
|
936
|
-
n.changeCropSize(s, !0, !0, 1, 1);
|
|
937
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-point point2", on: { mousedown: function(s) {
|
|
938
|
-
n.changeCropSize(s, !1, !0, 0, 1);
|
|
939
|
-
}, touchstart: function(s) {
|
|
940
|
-
n.changeCropSize(s, !1, !0, 0, 1);
|
|
941
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-point point3", on: { mousedown: function(s) {
|
|
942
|
-
n.changeCropSize(s, !0, !0, 2, 1);
|
|
943
|
-
}, touchstart: function(s) {
|
|
944
|
-
n.changeCropSize(s, !0, !0, 2, 1);
|
|
945
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-point point4", on: { mousedown: function(s) {
|
|
946
|
-
n.changeCropSize(s, !0, !1, 1, 0);
|
|
947
|
-
}, touchstart: function(s) {
|
|
948
|
-
n.changeCropSize(s, !0, !1, 1, 0);
|
|
949
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-point point5", on: { mousedown: function(s) {
|
|
950
|
-
n.changeCropSize(s, !0, !1, 2, 0);
|
|
951
|
-
}, touchstart: function(s) {
|
|
952
|
-
n.changeCropSize(s, !0, !1, 2, 0);
|
|
953
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-point point6", on: { mousedown: function(s) {
|
|
954
|
-
n.changeCropSize(s, !0, !0, 1, 2);
|
|
955
|
-
}, touchstart: function(s) {
|
|
956
|
-
n.changeCropSize(s, !0, !0, 1, 2);
|
|
957
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-point point7", on: { mousedown: function(s) {
|
|
958
|
-
n.changeCropSize(s, !1, !0, 0, 2);
|
|
959
|
-
}, touchstart: function(s) {
|
|
960
|
-
n.changeCropSize(s, !1, !0, 0, 2);
|
|
961
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-point point8", on: { mousedown: function(s) {
|
|
962
|
-
n.changeCropSize(s, !0, !0, 2, 2);
|
|
963
|
-
}, touchstart: function(s) {
|
|
964
|
-
n.changeCropSize(s, !0, !0, 2, 2);
|
|
965
|
-
} } })])])]);
|
|
966
|
-
};
|
|
967
|
-
h._withStripped = !0;
|
|
968
|
-
var y = {};
|
|
969
|
-
y.getData = function(n) {
|
|
970
|
-
return new Promise(function(t, i) {
|
|
971
|
-
var s = {};
|
|
972
|
-
(function(l) {
|
|
973
|
-
var f = null;
|
|
974
|
-
return new Promise(function(m, b) {
|
|
975
|
-
if (l.src)
|
|
976
|
-
if (/^data\:/i.test(l.src))
|
|
977
|
-
f = function(u) {
|
|
978
|
-
u = u.replace(/^data\:([^\;]+)\;base64,/gim, "");
|
|
979
|
-
for (var p = atob(u), g = p.length, w = new ArrayBuffer(g), v = new Uint8Array(w), C = 0; C < g; C++)
|
|
980
|
-
v[C] = p.charCodeAt(C);
|
|
981
|
-
return w;
|
|
982
|
-
}(l.src), m(f);
|
|
983
|
-
else if (/^blob\:/i.test(l.src)) {
|
|
984
|
-
var x = new FileReader();
|
|
985
|
-
x.onload = function(u) {
|
|
986
|
-
f = u.target.result, m(f);
|
|
987
|
-
}, function(u, p) {
|
|
988
|
-
var g = new XMLHttpRequest();
|
|
989
|
-
g.open("GET", u, !0), g.responseType = "blob", g.onload = function(w) {
|
|
990
|
-
this.status != 200 && this.status !== 0 || p(this.response);
|
|
991
|
-
}, g.send();
|
|
992
|
-
}(l.src, function(u) {
|
|
993
|
-
x.readAsArrayBuffer(u);
|
|
994
|
-
});
|
|
995
|
-
} else {
|
|
996
|
-
var c = new XMLHttpRequest();
|
|
997
|
-
c.onload = function() {
|
|
998
|
-
if (this.status != 200 && this.status !== 0)
|
|
999
|
-
throw "Could not load image";
|
|
1000
|
-
f = c.response, m(f), c = null;
|
|
1001
|
-
}, c.open("GET", l.src, !0), c.responseType = "arraybuffer", c.send(null);
|
|
1002
|
-
}
|
|
1003
|
-
else
|
|
1004
|
-
b("img error");
|
|
1005
|
-
});
|
|
1006
|
-
})(n).then(function(l) {
|
|
1007
|
-
s.arrayBuffer = l, s.orientation = function(f) {
|
|
1008
|
-
var m, b, x, c, u, p, g, w, v, C = new DataView(f), _ = C.byteLength;
|
|
1009
|
-
if (C.getUint8(0) === 255 && C.getUint8(1) === 216)
|
|
1010
|
-
for (w = 2; w < _; ) {
|
|
1011
|
-
if (C.getUint8(w) === 255 && C.getUint8(w + 1) === 225) {
|
|
1012
|
-
p = w;
|
|
1013
|
-
break;
|
|
1014
|
-
}
|
|
1015
|
-
w++;
|
|
1016
|
-
}
|
|
1017
|
-
if (p && (b = p + 10, function(S, E, T) {
|
|
1018
|
-
var O, H = "";
|
|
1019
|
-
for (O = E, T += E; O < T; O++)
|
|
1020
|
-
H += String.fromCharCode(S.getUint8(O));
|
|
1021
|
-
return H;
|
|
1022
|
-
}(C, p + 4, 4) === "Exif" && (u = C.getUint16(b), ((c = u === 18761) || u === 19789) && C.getUint16(b + 2, c) === 42 && (x = C.getUint32(b + 4, c)) >= 8 && (g = b + x))), g) {
|
|
1023
|
-
for (_ = C.getUint16(g, c), v = 0; v < _; v++)
|
|
1024
|
-
if (w = g + 12 * v + 2, C.getUint16(w, c) === 274) {
|
|
1025
|
-
w += 8, m = C.getUint16(w, c);
|
|
1026
|
-
break;
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
return m;
|
|
1030
|
-
}(l), t(s);
|
|
1031
|
-
}).catch(function(l) {
|
|
1032
|
-
i(l);
|
|
1033
|
-
});
|
|
1034
|
-
});
|
|
1035
|
-
};
|
|
1036
|
-
var $ = y, I = { data: function() {
|
|
1037
|
-
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: 0.2, scaling: !1, scalingSet: "", coeStatus: "", isCanShow: !0 };
|
|
1038
|
-
}, 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() {
|
|
1039
|
-
return [1, 1];
|
|
1040
|
-
} }, 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() {
|
|
1041
|
-
return 10;
|
|
1042
|
-
} } }, computed: { cropInfo: function() {
|
|
1043
|
-
var n = {};
|
|
1044
|
-
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) {
|
|
1045
|
-
var t = 1;
|
|
1046
|
-
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);
|
|
1047
|
-
}
|
|
1048
|
-
return n.width = n.width.toFixed(0), n.height = n.height.toFixed(0), n;
|
|
1049
|
-
}, isIE: function() {
|
|
1050
|
-
var n = !!window.ActiveXObject || "ActiveXObject" in window;
|
|
1051
|
-
return n;
|
|
1052
|
-
}, passive: function() {
|
|
1053
|
-
return this.isIE ? null : { passive: !1 };
|
|
1054
|
-
} }, watch: { img: function() {
|
|
1055
|
-
this.checkedImg();
|
|
1056
|
-
}, imgs: function(n) {
|
|
1057
|
-
n !== "" && this.reload();
|
|
1058
|
-
}, cropW: function() {
|
|
1059
|
-
this.showPreview();
|
|
1060
|
-
}, cropH: function() {
|
|
1061
|
-
this.showPreview();
|
|
1062
|
-
}, cropOffsertX: function() {
|
|
1063
|
-
this.showPreview();
|
|
1064
|
-
}, cropOffsertY: function() {
|
|
1065
|
-
this.showPreview();
|
|
1066
|
-
}, scale: function(n, t) {
|
|
1067
|
-
this.showPreview();
|
|
1068
|
-
}, x: function() {
|
|
1069
|
-
this.showPreview();
|
|
1070
|
-
}, y: function() {
|
|
1071
|
-
this.showPreview();
|
|
1072
|
-
}, autoCrop: function(n) {
|
|
1073
|
-
n && this.goAutoCrop();
|
|
1074
|
-
}, autoCropWidth: function() {
|
|
1075
|
-
this.autoCrop && this.goAutoCrop();
|
|
1076
|
-
}, autoCropHeight: function() {
|
|
1077
|
-
this.autoCrop && this.goAutoCrop();
|
|
1078
|
-
}, mode: function() {
|
|
1079
|
-
this.checkedImg();
|
|
1080
|
-
}, rotate: function() {
|
|
1081
|
-
this.showPreview(), this.autoCrop ? this.goAutoCrop(this.cropW, this.cropH) : (this.cropW > 0 || this.cropH > 0) && this.goAutoCrop(this.cropW, this.cropH);
|
|
1082
|
-
} }, methods: { getVersion: function(n) {
|
|
1083
|
-
for (var t = navigator.userAgent.split(" "), i = "", s = new RegExp(n, "i"), l = 0; l < t.length; l++)
|
|
1084
|
-
s.test(t[l]) && (i = t[l]);
|
|
1085
|
-
return i ? i.split("/")[1].split(".") : ["0", "0", "0"];
|
|
1086
|
-
}, checkOrientationImage: function(n, t, i, s) {
|
|
1087
|
-
var l = this;
|
|
1088
|
-
if (this.getVersion("chrome")[0] >= 81)
|
|
1089
|
-
t = -1;
|
|
1090
|
-
else if (this.getVersion("safari")[0] >= 605) {
|
|
1091
|
-
var f = this.getVersion("version");
|
|
1092
|
-
f[0] > 13 && f[1] > 1 && (t = -1);
|
|
1093
|
-
} else {
|
|
1094
|
-
var m = navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);
|
|
1095
|
-
if (m) {
|
|
1096
|
-
var b = m[1];
|
|
1097
|
-
((b = b.split("_"))[0] > 13 || b[0] >= 13 && b[1] >= 4) && (t = -1);
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
var x = document.createElement("canvas"), c = x.getContext("2d");
|
|
1101
|
-
switch (c.save(), t) {
|
|
1102
|
-
case 2:
|
|
1103
|
-
x.width = i, x.height = s, c.translate(i, 0), c.scale(-1, 1);
|
|
1104
|
-
break;
|
|
1105
|
-
case 3:
|
|
1106
|
-
x.width = i, x.height = s, c.translate(i / 2, s / 2), c.rotate(180 * Math.PI / 180), c.translate(-i / 2, -s / 2);
|
|
1107
|
-
break;
|
|
1108
|
-
case 4:
|
|
1109
|
-
x.width = i, x.height = s, c.translate(0, s), c.scale(1, -1);
|
|
1110
|
-
break;
|
|
1111
|
-
case 5:
|
|
1112
|
-
x.height = i, x.width = s, c.rotate(0.5 * Math.PI), c.scale(1, -1);
|
|
1113
|
-
break;
|
|
1114
|
-
case 6:
|
|
1115
|
-
x.width = s, x.height = i, c.translate(s / 2, i / 2), c.rotate(90 * Math.PI / 180), c.translate(-i / 2, -s / 2);
|
|
1116
|
-
break;
|
|
1117
|
-
case 7:
|
|
1118
|
-
x.height = i, x.width = s, c.rotate(0.5 * Math.PI), c.translate(i, -s), c.scale(-1, 1);
|
|
1119
|
-
break;
|
|
1120
|
-
case 8:
|
|
1121
|
-
x.height = i, x.width = s, c.translate(s / 2, i / 2), c.rotate(-90 * Math.PI / 180), c.translate(-i / 2, -s / 2);
|
|
1122
|
-
break;
|
|
1123
|
-
default:
|
|
1124
|
-
x.width = i, x.height = s;
|
|
1125
|
-
}
|
|
1126
|
-
c.drawImage(n, 0, 0, i, s), c.restore(), x.toBlob(function(u) {
|
|
1127
|
-
var p = URL.createObjectURL(u);
|
|
1128
|
-
URL.revokeObjectURL(l.imgs), l.imgs = p;
|
|
1129
|
-
}, "image/" + this.outputType, 1);
|
|
1130
|
-
}, checkedImg: function() {
|
|
1131
|
-
var n = this;
|
|
1132
|
-
if (this.img === null || this.img === "")
|
|
1133
|
-
return this.imgs = "", void this.clearCrop();
|
|
1134
|
-
this.loading = !0, this.scale = 1, this.rotate = 0, this.clearCrop();
|
|
1135
|
-
var t = new Image();
|
|
1136
|
-
if (t.onload = function() {
|
|
1137
|
-
if (n.img === "")
|
|
1138
|
-
return n.$emit("imgLoad", "error"), n.$emit("img-load", "error"), !1;
|
|
1139
|
-
var s = t.width, l = t.height;
|
|
1140
|
-
$.getData(t).then(function(f) {
|
|
1141
|
-
n.orientation = f.orientation || 1;
|
|
1142
|
-
var m = n.maxImgSize;
|
|
1143
|
-
!n.orientation && s < m & l < m ? n.imgs = n.img : (s > m && (l = l / s * m, s = m), l > m && (s = s / l * m, l = m), n.checkOrientationImage(t, n.orientation, s, l));
|
|
1144
|
-
});
|
|
1145
|
-
}, t.onerror = function() {
|
|
1146
|
-
n.$emit("imgLoad", "error"), n.$emit("img-load", "error");
|
|
1147
|
-
}, this.img.substr(0, 4) !== "data" && (t.crossOrigin = ""), this.isIE) {
|
|
1148
|
-
var i = new XMLHttpRequest();
|
|
1149
|
-
i.onload = function() {
|
|
1150
|
-
var s = URL.createObjectURL(this.response);
|
|
1151
|
-
t.src = s;
|
|
1152
|
-
}, i.open("GET", this.img, !0), i.responseType = "blob", i.send();
|
|
1153
|
-
} else
|
|
1154
|
-
t.src = this.img;
|
|
1155
|
-
}, startMove: function(n) {
|
|
1156
|
-
if (n.preventDefault(), this.move && !this.crop) {
|
|
1157
|
-
if (!this.canMove)
|
|
1158
|
-
return !1;
|
|
1159
|
-
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() });
|
|
1160
|
-
} else
|
|
1161
|
-
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;
|
|
1162
|
-
}, touchScale: function(n) {
|
|
1163
|
-
var t = this;
|
|
1164
|
-
n.preventDefault();
|
|
1165
|
-
var i = this.scale, s = this.touches[0].clientX, l = this.touches[0].clientY, f = n.touches[0].clientX, m = n.touches[0].clientY, b = this.touches[1].clientX, x = this.touches[1].clientY, c = n.touches[1].clientX, u = n.touches[1].clientY, p = Math.sqrt(Math.pow(s - b, 2) + Math.pow(l - x, 2)), g = Math.sqrt(Math.pow(f - c, 2) + Math.pow(m - u, 2)) - p, w = 1, v = (w = (w = w / this.trueWidth > w / this.trueHeight ? w / this.trueHeight : w / this.trueWidth) > 0.1 ? 0.1 : w) * g;
|
|
1166
|
-
if (!this.touchNow) {
|
|
1167
|
-
if (this.touchNow = !0, g > 0 ? i += Math.abs(v) : g < 0 && i > Math.abs(v) && (i -= Math.abs(v)), this.touches = n.touches, setTimeout(function() {
|
|
1168
|
-
t.touchNow = !1;
|
|
1169
|
-
}, 8), !this.checkoutImgAxis(this.x, this.y, i))
|
|
1170
|
-
return !1;
|
|
1171
|
-
this.scale = i;
|
|
1172
|
-
}
|
|
1173
|
-
}, cancelTouchScale: function(n) {
|
|
1174
|
-
window.removeEventListener("touchmove", this.touchScale);
|
|
1175
|
-
}, moveImg: function(n) {
|
|
1176
|
-
var t = this;
|
|
1177
|
-
if (n.preventDefault(), n.touches && n.touches.length === 2)
|
|
1178
|
-
return this.touches = n.touches, window.addEventListener("touchmove", this.touchScale), window.addEventListener("touchend", this.cancelTouchScale), window.removeEventListener("touchmove", this.moveImg), !1;
|
|
1179
|
-
var i, s, l = n.clientX ? n.clientX : n.touches[0].clientX, f = n.clientY ? n.clientY : n.touches[0].clientY;
|
|
1180
|
-
i = l - this.moveX, s = f - this.moveY, this.$nextTick(function() {
|
|
1181
|
-
if (t.centerBox) {
|
|
1182
|
-
var m, b, x, c, u = t.getImgAxis(i, s, t.scale), p = t.getCropAxis(), g = t.trueHeight * t.scale, w = t.trueWidth * t.scale;
|
|
1183
|
-
switch (t.rotate) {
|
|
1184
|
-
case 1:
|
|
1185
|
-
case -1:
|
|
1186
|
-
case 3:
|
|
1187
|
-
case -3:
|
|
1188
|
-
m = t.cropOffsertX - t.trueWidth * (1 - t.scale) / 2 + (g - w) / 2, b = t.cropOffsertY - t.trueHeight * (1 - t.scale) / 2 + (w - g) / 2, x = m - g + t.cropW, c = b - w + t.cropH;
|
|
1189
|
-
break;
|
|
1190
|
-
default:
|
|
1191
|
-
m = t.cropOffsertX - t.trueWidth * (1 - t.scale) / 2, b = t.cropOffsertY - t.trueHeight * (1 - t.scale) / 2, x = m - w + t.cropW, c = b - g + t.cropH;
|
|
1192
|
-
}
|
|
1193
|
-
u.x1 >= p.x1 && (i = m), u.y1 >= p.y1 && (s = b), u.x2 <= p.x2 && (i = x), u.y2 <= p.y2 && (s = c);
|
|
1194
|
-
}
|
|
1195
|
-
t.x = i, t.y = s, t.$emit("imgMoving", { moving: !0, axis: t.getImgAxis() }), t.$emit("img-moving", { moving: !0, axis: t.getImgAxis() });
|
|
1196
|
-
});
|
|
1197
|
-
}, leaveImg: function(n) {
|
|
1198
|
-
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() });
|
|
1199
|
-
}, scaleImg: function() {
|
|
1200
|
-
this.canScale && window.addEventListener(this.support, this.changeSize, this.passive);
|
|
1201
|
-
}, cancelScale: function() {
|
|
1202
|
-
this.canScale && window.removeEventListener(this.support, this.changeSize);
|
|
1203
|
-
}, changeSize: function(n) {
|
|
1204
|
-
var t = this;
|
|
1205
|
-
n.preventDefault();
|
|
1206
|
-
var i = this.scale, s = n.deltaY || n.wheelDelta;
|
|
1207
|
-
s = navigator.userAgent.indexOf("Firefox") > 0 ? 30 * s : s, this.isIE && (s = -s);
|
|
1208
|
-
var l = this.coe, f = (l = l / this.trueWidth > l / this.trueHeight ? l / this.trueHeight : l / this.trueWidth) * s;
|
|
1209
|
-
f < 0 ? i += Math.abs(f) : i > Math.abs(f) && (i -= Math.abs(f));
|
|
1210
|
-
var m = f < 0 ? "add" : "reduce";
|
|
1211
|
-
if (m !== this.coeStatus && (this.coeStatus = m, this.coe = 0.2), this.scaling || (this.scalingSet = setTimeout(function() {
|
|
1212
|
-
t.scaling = !1, t.coe = t.coe += 0.01;
|
|
1213
|
-
}, 50)), this.scaling = !0, !this.checkoutImgAxis(this.x, this.y, i))
|
|
1214
|
-
return !1;
|
|
1215
|
-
this.scale = i;
|
|
1216
|
-
}, changeScale: function(n) {
|
|
1217
|
-
var t = this.scale;
|
|
1218
|
-
n = n || 1;
|
|
1219
|
-
var i = 20;
|
|
1220
|
-
if ((n *= i = i / this.trueWidth > i / this.trueHeight ? i / this.trueHeight : i / this.trueWidth) > 0 ? t += Math.abs(n) : t > Math.abs(n) && (t -= Math.abs(n)), !this.checkoutImgAxis(this.x, this.y, t))
|
|
1221
|
-
return !1;
|
|
1222
|
-
this.scale = t;
|
|
1223
|
-
}, createCrop: function(n) {
|
|
1224
|
-
var t = this;
|
|
1225
|
-
n.preventDefault();
|
|
1226
|
-
var i = n.clientX ? n.clientX : n.touches ? n.touches[0].clientX : 0, s = n.clientY ? n.clientY : n.touches ? n.touches[0].clientY : 0;
|
|
1227
|
-
this.$nextTick(function() {
|
|
1228
|
-
var l = i - t.cropX, f = s - t.cropY;
|
|
1229
|
-
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) {
|
|
1230
|
-
var m = t.cropW / t.fixedNumber[0] * t.fixedNumber[1];
|
|
1231
|
-
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;
|
|
1232
|
-
} else
|
|
1233
|
-
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);
|
|
1234
|
-
});
|
|
1235
|
-
}, changeCropSize: function(n, t, i, s, l) {
|
|
1236
|
-
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 = i, this.changeCropTypeX = s, 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 });
|
|
1237
|
-
}, changeCropNow: function(n) {
|
|
1238
|
-
var t = this;
|
|
1239
|
-
n.preventDefault();
|
|
1240
|
-
var i = n.clientX ? n.clientX : n.touches ? n.touches[0].clientX : 0, s = n.clientY ? n.clientY : n.touches ? n.touches[0].clientY : 0, l = this.w, f = this.h, m = 0, b = 0;
|
|
1241
|
-
if (this.centerBox) {
|
|
1242
|
-
var x = this.getImgAxis(), c = x.x2, u = x.y2;
|
|
1243
|
-
m = x.x1 > 0 ? x.x1 : 0, b = x.y1 > 0 ? x.y1 : 0, l > c && (l = c), f > u && (f = u);
|
|
1244
|
-
}
|
|
1245
|
-
this.$nextTick(function() {
|
|
1246
|
-
var p = i - t.cropX, g = s - t.cropY;
|
|
1247
|
-
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 - b ? t.cropOldH - g : t.cropOldH + t.cropChangeY - b, t.cropOffsertY = f - t.cropChangeY - g <= f - b ? t.cropChangeY + g : b) : (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 - b ? Math.abs(g + t.cropOldH) : t.cropChangeY - b, t.cropOffsertY = f - t.cropChangeY + Math.abs(g + t.cropOldH) <= f - b ? t.cropChangeY - Math.abs(g + t.cropOldH) : b))), t.canChangeX && t.fixed) {
|
|
1248
|
-
var w = t.cropW / t.fixedNumber[0] * t.fixedNumber[1];
|
|
1249
|
-
w + t.cropOffsertY > f ? (t.cropH = f - t.cropOffsertY, t.cropW = t.cropH / t.fixedNumber[1] * t.fixedNumber[0]) : t.cropH = w;
|
|
1250
|
-
}
|
|
1251
|
-
if (t.canChangeY && t.fixed) {
|
|
1252
|
-
var v = t.cropH / t.fixedNumber[1] * t.fixedNumber[0];
|
|
1253
|
-
v + t.cropOffsertX > l ? (t.cropW = l - t.cropOffsertX, t.cropH = t.cropW / t.fixedNumber[0] * t.fixedNumber[1]) : t.cropW = v;
|
|
1254
|
-
}
|
|
1255
|
-
});
|
|
1256
|
-
}, checkCropLimitSize: function() {
|
|
1257
|
-
this.cropW, this.cropH;
|
|
1258
|
-
var n = this.limitMinSize, t = new Array();
|
|
1259
|
-
return t = Array.isArray[n] ? n : [n, n], [parseFloat(t[0]), parseFloat(t[1])];
|
|
1260
|
-
}, changeCropEnd: function(n) {
|
|
1261
|
-
window.removeEventListener("mousemove", this.changeCropNow), window.removeEventListener("mouseup", this.changeCropEnd), window.removeEventListener("touchmove", this.changeCropNow), window.removeEventListener("touchend", this.changeCropEnd);
|
|
1262
|
-
}, endCrop: function() {
|
|
1263
|
-
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);
|
|
1264
|
-
}, startCrop: function() {
|
|
1265
|
-
this.crop = !0;
|
|
1266
|
-
}, stopCrop: function() {
|
|
1267
|
-
this.crop = !1;
|
|
1268
|
-
}, clearCrop: function() {
|
|
1269
|
-
this.cropping = !1, this.cropW = 0, this.cropH = 0;
|
|
1270
|
-
}, cropMove: function(n) {
|
|
1271
|
-
if (n.preventDefault(), !this.canMoveBox)
|
|
1272
|
-
return this.crop = !1, this.startMove(n), !1;
|
|
1273
|
-
if (n.touches && n.touches.length === 2)
|
|
1274
|
-
return this.crop = !1, this.startMove(n), this.leaveCrop(), !1;
|
|
1275
|
-
window.addEventListener("mousemove", this.moveCrop), window.addEventListener("mouseup", this.leaveCrop), window.addEventListener("touchmove", this.moveCrop), window.addEventListener("touchend", this.leaveCrop);
|
|
1276
|
-
var t, i, s = n.clientX ? n.clientX : n.touches[0].clientX, l = n.clientY ? n.clientY : n.touches[0].clientY;
|
|
1277
|
-
t = s - this.cropOffsertX, i = l - this.cropOffsertY, this.cropX = t, this.cropY = i, this.$emit("cropMoving", { moving: !0, axis: this.getCropAxis() }), this.$emit("crop-moving", { moving: !0, axis: this.getCropAxis() });
|
|
1278
|
-
}, moveCrop: function(n, t) {
|
|
1279
|
-
var i = this, s = 0, l = 0;
|
|
1280
|
-
n && (n.preventDefault(), s = n.clientX ? n.clientX : n.touches[0].clientX, l = n.clientY ? n.clientY : n.touches[0].clientY), this.$nextTick(function() {
|
|
1281
|
-
var f, m, b = s - i.cropX, x = l - i.cropY;
|
|
1282
|
-
if (t && (b = i.cropOffsertX, x = i.cropOffsertY), f = b <= 0 ? 0 : b + i.cropW > i.w ? i.w - i.cropW : b, m = x <= 0 ? 0 : x + i.cropH > i.h ? i.h - i.cropH : x, i.centerBox) {
|
|
1283
|
-
var c = i.getImgAxis();
|
|
1284
|
-
f <= c.x1 && (f = c.x1), f + i.cropW > c.x2 && (f = c.x2 - i.cropW), m <= c.y1 && (m = c.y1), m + i.cropH > c.y2 && (m = c.y2 - i.cropH);
|
|
1285
|
-
}
|
|
1286
|
-
i.cropOffsertX = f, i.cropOffsertY = m, i.$emit("cropMoving", { moving: !0, axis: i.getCropAxis() }), i.$emit("crop-moving", { moving: !0, axis: i.getCropAxis() });
|
|
1287
|
-
});
|
|
1288
|
-
}, getImgAxis: function(n, t, i) {
|
|
1289
|
-
n = n || this.x, t = t || this.y, i = i || this.scale;
|
|
1290
|
-
var s = { x1: 0, x2: 0, y1: 0, y2: 0 }, l = this.trueWidth * i, f = this.trueHeight * i;
|
|
1291
|
-
switch (this.rotate) {
|
|
1292
|
-
case 0:
|
|
1293
|
-
s.x1 = n + this.trueWidth * (1 - i) / 2, s.x2 = s.x1 + this.trueWidth * i, s.y1 = t + this.trueHeight * (1 - i) / 2, s.y2 = s.y1 + this.trueHeight * i;
|
|
1294
|
-
break;
|
|
1295
|
-
case 1:
|
|
1296
|
-
case -1:
|
|
1297
|
-
case 3:
|
|
1298
|
-
case -3:
|
|
1299
|
-
s.x1 = n + this.trueWidth * (1 - i) / 2 + (l - f) / 2, s.x2 = s.x1 + this.trueHeight * i, s.y1 = t + this.trueHeight * (1 - i) / 2 + (f - l) / 2, s.y2 = s.y1 + this.trueWidth * i;
|
|
1300
|
-
break;
|
|
1301
|
-
default:
|
|
1302
|
-
s.x1 = n + this.trueWidth * (1 - i) / 2, s.x2 = s.x1 + this.trueWidth * i, s.y1 = t + this.trueHeight * (1 - i) / 2, s.y2 = s.y1 + this.trueHeight * i;
|
|
1303
|
-
}
|
|
1304
|
-
return s;
|
|
1305
|
-
}, getCropAxis: function() {
|
|
1306
|
-
var n = { x1: 0, x2: 0, y1: 0, y2: 0 };
|
|
1307
|
-
return n.x1 = this.cropOffsertX, n.x2 = n.x1 + this.cropW, n.y1 = this.cropOffsertY, n.y2 = n.y1 + this.cropH, n;
|
|
1308
|
-
}, leaveCrop: function(n) {
|
|
1309
|
-
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() });
|
|
1310
|
-
}, getCropChecked: function(n) {
|
|
1311
|
-
var t = this, i = document.createElement("canvas"), s = new Image(), l = this.rotate, f = this.trueWidth, m = this.trueHeight, b = this.cropOffsertX, x = this.cropOffsertY;
|
|
1312
|
-
function c(u, p) {
|
|
1313
|
-
i.width = Math.round(u), i.height = Math.round(p);
|
|
1314
|
-
}
|
|
1315
|
-
s.onload = function() {
|
|
1316
|
-
if (t.cropW !== 0) {
|
|
1317
|
-
var u = i.getContext("2d"), p = 1;
|
|
1318
|
-
t.high & !t.full && (p = window.devicePixelRatio), t.enlarge !== 1 & !t.full && (p = Math.abs(Number(t.enlarge)));
|
|
1319
|
-
var g = t.cropW * p, w = t.cropH * p, v = f * t.scale * p, C = m * t.scale * p, _ = (t.x - b + t.trueWidth * (1 - t.scale) / 2) * p, S = (t.y - x + t.trueHeight * (1 - t.scale) / 2) * p;
|
|
1320
|
-
switch (c(g, w), u.save(), l) {
|
|
1321
|
-
case 0:
|
|
1322
|
-
t.full ? (c(g / t.scale, w / t.scale), u.drawImage(s, _ / t.scale, S / t.scale, v / t.scale, C / t.scale)) : u.drawImage(s, _, S, v, C);
|
|
1323
|
-
break;
|
|
1324
|
-
case 1:
|
|
1325
|
-
case -3:
|
|
1326
|
-
t.full ? (c(g / t.scale, w / t.scale), _ = _ / t.scale + (v / t.scale - C / t.scale) / 2, S = S / t.scale + (C / t.scale - v / t.scale) / 2, u.rotate(90 * l * Math.PI / 180), u.drawImage(s, S, -_ - C / t.scale, v / t.scale, C / t.scale)) : (_ += (v - C) / 2, S += (C - v) / 2, u.rotate(90 * l * Math.PI / 180), u.drawImage(s, S, -_ - C, v, C));
|
|
1327
|
-
break;
|
|
1328
|
-
case 2:
|
|
1329
|
-
case -2:
|
|
1330
|
-
t.full ? (c(g / t.scale, w / t.scale), u.rotate(90 * l * Math.PI / 180), _ /= t.scale, S /= t.scale, u.drawImage(s, -_ - v / t.scale, -S - C / t.scale, v / t.scale, C / t.scale)) : (u.rotate(90 * l * Math.PI / 180), u.drawImage(s, -_ - v, -S - C, v, C));
|
|
1331
|
-
break;
|
|
1332
|
-
case 3:
|
|
1333
|
-
case -1:
|
|
1334
|
-
t.full ? (c(g / t.scale, w / t.scale), _ = _ / t.scale + (v / t.scale - C / t.scale) / 2, S = S / t.scale + (C / t.scale - v / t.scale) / 2, u.rotate(90 * l * Math.PI / 180), u.drawImage(s, -S - v / t.scale, _, v / t.scale, C / t.scale)) : (_ += (v - C) / 2, S += (C - v) / 2, u.rotate(90 * l * Math.PI / 180), u.drawImage(s, -S - v, _, v, C));
|
|
1335
|
-
break;
|
|
1336
|
-
default:
|
|
1337
|
-
t.full ? (c(g / t.scale, w / t.scale), u.drawImage(s, _ / t.scale, S / t.scale, v / t.scale, C / t.scale)) : u.drawImage(s, _, S, v, C);
|
|
1338
|
-
}
|
|
1339
|
-
u.restore();
|
|
1340
|
-
} else {
|
|
1341
|
-
var E = f * t.scale, T = m * t.scale, O = i.getContext("2d");
|
|
1342
|
-
switch (O.save(), l) {
|
|
1343
|
-
case 0:
|
|
1344
|
-
c(E, T), O.drawImage(s, 0, 0, E, T);
|
|
1345
|
-
break;
|
|
1346
|
-
case 1:
|
|
1347
|
-
case -3:
|
|
1348
|
-
c(T, E), O.rotate(90 * l * Math.PI / 180), O.drawImage(s, 0, -T, E, T);
|
|
1349
|
-
break;
|
|
1350
|
-
case 2:
|
|
1351
|
-
case -2:
|
|
1352
|
-
c(E, T), O.rotate(90 * l * Math.PI / 180), O.drawImage(s, -E, -T, E, T);
|
|
1353
|
-
break;
|
|
1354
|
-
case 3:
|
|
1355
|
-
case -1:
|
|
1356
|
-
c(T, E), O.rotate(90 * l * Math.PI / 180), O.drawImage(s, -E, 0, E, T);
|
|
1357
|
-
break;
|
|
1358
|
-
default:
|
|
1359
|
-
c(E, T), O.drawImage(s, 0, 0, E, T);
|
|
1360
|
-
}
|
|
1361
|
-
O.restore();
|
|
1362
|
-
}
|
|
1363
|
-
n(i);
|
|
1364
|
-
}, this.img.substr(0, 4) !== "data" && (s.crossOrigin = "Anonymous"), s.src = this.imgs;
|
|
1365
|
-
}, getCropData: function(n) {
|
|
1366
|
-
var t = this;
|
|
1367
|
-
this.getCropChecked(function(i) {
|
|
1368
|
-
n(i.toDataURL("image/" + t.outputType, t.outputSize));
|
|
1369
|
-
});
|
|
1370
|
-
}, getCropBlob: function(n) {
|
|
1371
|
-
var t = this;
|
|
1372
|
-
this.getCropChecked(function(i) {
|
|
1373
|
-
i.toBlob(function(s) {
|
|
1374
|
-
return n(s);
|
|
1375
|
-
}, "image/" + t.outputType, t.outputSize);
|
|
1376
|
-
});
|
|
1377
|
-
}, showPreview: function() {
|
|
1378
|
-
var n = this;
|
|
1379
|
-
if (!this.isCanShow)
|
|
1380
|
-
return !1;
|
|
1381
|
-
this.isCanShow = !1, setTimeout(function() {
|
|
1382
|
-
n.isCanShow = !0;
|
|
1383
|
-
}, 16);
|
|
1384
|
-
var t = this.cropW, i = this.cropH, s = this.scale, l = {};
|
|
1385
|
-
l.div = { width: "".concat(t, "px"), height: "".concat(i, "px") };
|
|
1386
|
-
var f = (this.x - this.cropOffsertX) / s, m = (this.y - this.cropOffsertY) / s;
|
|
1387
|
-
l.w = t, l.h = i, l.url = this.imgs, l.img = { width: "".concat(this.trueWidth, "px"), height: "".concat(this.trueHeight, "px"), transform: "scale(".concat(s, ")translate3d(").concat(f, "px, ").concat(m, "px, ").concat(0, "px)rotateZ(").concat(90 * this.rotate, "deg)") }, l.html = `
|
|
1388
|
-
<div class="show-preview" style="width: `.concat(l.w, "px; height: ").concat(l.h, `px,; overflow: hidden">
|
|
1389
|
-
<div style="width: `).concat(t, "px; height: ").concat(i, `px">
|
|
1390
|
-
<img src=`).concat(l.url, ' style="width: ').concat(this.trueWidth, "px; height: ").concat(this.trueHeight, `px; transform:
|
|
1391
|
-
scale(`).concat(s, ")translate3d(").concat(f, "px, ").concat(m, "px, ").concat(0, "px)rotateZ(").concat(90 * this.rotate, `deg)">
|
|
1392
|
-
</div>
|
|
1393
|
-
</div>`), this.$emit("realTime", l), this.$emit("real-time", l);
|
|
1394
|
-
}, reload: function() {
|
|
1395
|
-
var n = this, t = new Image();
|
|
1396
|
-
t.onload = function() {
|
|
1397
|
-
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() {
|
|
1398
|
-
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() {
|
|
1399
|
-
n.showPreview();
|
|
1400
|
-
}, 20);
|
|
1401
|
-
});
|
|
1402
|
-
}, t.onerror = function() {
|
|
1403
|
-
n.$emit("imgLoad", "error"), n.$emit("img-load", "error");
|
|
1404
|
-
}, t.src = this.imgs;
|
|
1405
|
-
}, checkedMode: function() {
|
|
1406
|
-
var n = 1, t = (this.trueWidth, this.trueHeight), i = this.mode.split(" ");
|
|
1407
|
-
switch (i[0]) {
|
|
1408
|
-
case "contain":
|
|
1409
|
-
this.trueWidth > this.w && (n = this.w / this.trueWidth), this.trueHeight * n > this.h && (n = this.h / this.trueHeight);
|
|
1410
|
-
break;
|
|
1411
|
-
case "cover":
|
|
1412
|
-
(t *= n = this.w / this.trueWidth) < this.h && (n = (t = this.h) / this.trueHeight);
|
|
1413
|
-
break;
|
|
1414
|
-
default:
|
|
1415
|
-
try {
|
|
1416
|
-
var s = i[0];
|
|
1417
|
-
if (s.search("px") !== -1 && (s = s.replace("px", ""), n = parseFloat(s) / this.trueWidth), s.search("%") !== -1 && (s = s.replace("%", ""), n = parseFloat(s) / 100 * this.w / this.trueWidth), i.length === 2 && s === "auto") {
|
|
1418
|
-
var l = i[1];
|
|
1419
|
-
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);
|
|
1420
|
-
}
|
|
1421
|
-
} catch {
|
|
1422
|
-
n = 1;
|
|
1423
|
-
}
|
|
1424
|
-
}
|
|
1425
|
-
return n;
|
|
1426
|
-
}, goAutoCrop: function(n, t) {
|
|
1427
|
-
if (this.imgs !== "" && this.imgs !== null) {
|
|
1428
|
-
this.clearCrop(), this.cropping = !0;
|
|
1429
|
-
var i = this.w, s = this.h;
|
|
1430
|
-
if (this.centerBox) {
|
|
1431
|
-
var l = this.trueWidth * this.scale, f = this.trueHeight * this.scale;
|
|
1432
|
-
i = l < i ? l : i, s = f < s ? f : s;
|
|
1433
|
-
}
|
|
1434
|
-
var m = n || parseFloat(this.autoCropWidth), b = t || parseFloat(this.autoCropHeight);
|
|
1435
|
-
m !== 0 && b !== 0 || (m = 0.8 * i, b = 0.8 * s), m = m > i ? i : m, b = b > s ? s : b, this.fixed && (b = m / this.fixedNumber[0] * this.fixedNumber[1]), b > this.h && (m = (b = this.h) / this.fixedNumber[1] * this.fixedNumber[0]), this.changeCrop(m, b);
|
|
1436
|
-
}
|
|
1437
|
-
}, changeCrop: function(n, t) {
|
|
1438
|
-
var i = this;
|
|
1439
|
-
if (this.centerBox) {
|
|
1440
|
-
var s = this.getImgAxis();
|
|
1441
|
-
n > s.x2 - s.x1 && (t = (n = s.x2 - s.x1) / this.fixedNumber[0] * this.fixedNumber[1]), t > s.y2 - s.y1 && (n = (t = s.y2 - s.y1) / this.fixedNumber[1] * this.fixedNumber[0]);
|
|
1442
|
-
}
|
|
1443
|
-
this.cropW = n, this.cropH = t, this.checkCropLimitSize(), this.$nextTick(function() {
|
|
1444
|
-
i.cropOffsertX = (i.w - i.cropW) / 2, i.cropOffsertY = (i.h - i.cropH) / 2, i.centerBox && i.moveCrop(null, !0);
|
|
1445
|
-
});
|
|
1446
|
-
}, refresh: function() {
|
|
1447
|
-
var n = this;
|
|
1448
|
-
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() {
|
|
1449
|
-
n.checkedImg();
|
|
1450
|
-
});
|
|
1451
|
-
}, rotateLeft: function() {
|
|
1452
|
-
this.rotate = this.rotate <= -3 ? 0 : this.rotate - 1;
|
|
1453
|
-
}, rotateRight: function() {
|
|
1454
|
-
this.rotate = this.rotate >= 3 ? 0 : this.rotate + 1;
|
|
1455
|
-
}, rotateClear: function() {
|
|
1456
|
-
this.rotate = 0;
|
|
1457
|
-
}, checkoutImgAxis: function(n, t, i) {
|
|
1458
|
-
n = n || this.x, t = t || this.y, i = i || this.scale;
|
|
1459
|
-
var s = !0;
|
|
1460
|
-
if (this.centerBox) {
|
|
1461
|
-
var l = this.getImgAxis(n, t, i), f = this.getCropAxis();
|
|
1462
|
-
l.x1 >= f.x1 && (s = !1), l.x2 <= f.x2 && (s = !1), l.y1 >= f.y1 && (s = !1), l.y2 <= f.y2 && (s = !1);
|
|
1463
|
-
}
|
|
1464
|
-
return s;
|
|
1465
|
-
} }, mounted: function() {
|
|
1466
|
-
this.support = "onwheel" in document.createElement("div") ? "wheel" : document.onmousewheel !== void 0 ? "mousewheel" : "DOMMouseScroll";
|
|
1467
|
-
var n = this, t = navigator.userAgent;
|
|
1468
|
-
this.isIOS = !!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), HTMLCanvasElement.prototype.toBlob || Object.defineProperty(HTMLCanvasElement.prototype, "toBlob", { value: function(i, s, l) {
|
|
1469
|
-
for (var f = atob(this.toDataURL(s, l).split(",")[1]), m = f.length, b = new Uint8Array(m), x = 0; x < m; x++)
|
|
1470
|
-
b[x] = f.charCodeAt(x);
|
|
1471
|
-
i(new Blob([b], { type: n.type || "image/png" }));
|
|
1472
|
-
} }), this.showPreview(), this.checkedImg();
|
|
1473
|
-
}, destroyed: function() {
|
|
1474
|
-
window.removeEventListener("mousemove", this.moveCrop), window.removeEventListener("mouseup", this.leaveCrop), window.removeEventListener("touchmove", this.moveCrop), window.removeEventListener("touchend", this.leaveCrop);
|
|
1475
|
-
} };
|
|
1476
|
-
d(1);
|
|
1477
|
-
var A = function(n, t, i, s, l, f, m, b) {
|
|
1478
|
-
var x, c = typeof n == "function" ? n.options : n;
|
|
1479
|
-
if (t && (c.render = t, c.staticRenderFns = i, c._compiled = !0), s && (c.functional = !0), f && (c._scopeId = "data-v-" + f), m ? (x = function(g) {
|
|
1480
|
-
(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);
|
|
1481
|
-
}, c._ssrRegister = x) : l && (x = b ? function() {
|
|
1482
|
-
l.call(this, this.$root.$options.shadowRoot);
|
|
1483
|
-
} : l), x)
|
|
1484
|
-
if (c.functional) {
|
|
1485
|
-
c._injectStyles = x;
|
|
1486
|
-
var u = c.render;
|
|
1487
|
-
c.render = function(g, w) {
|
|
1488
|
-
return x.call(w), u(g, w);
|
|
1489
|
-
};
|
|
1490
|
-
} else {
|
|
1491
|
-
var p = c.beforeCreate;
|
|
1492
|
-
c.beforeCreate = p ? [].concat(p, x) : [x];
|
|
1493
|
-
}
|
|
1494
|
-
return { exports: n, options: c };
|
|
1495
|
-
}(I, h, [], !1, null, "6dae58fd", null);
|
|
1496
|
-
A.options.__file = "src/vue-cropper.vue";
|
|
1497
|
-
var k = A.exports;
|
|
1498
|
-
d.d(a, "VueCropper", function() {
|
|
1499
|
-
return k;
|
|
1500
|
-
});
|
|
1501
|
-
var L = function(n) {
|
|
1502
|
-
n.component("VueCropper", k);
|
|
1503
|
-
};
|
|
1504
|
-
typeof window < "u" && window.Vue && L(window.Vue), a.default = { version: "0.5.5", install: L, VueCropper: k, vueCropper: k };
|
|
1505
|
-
}]);
|
|
1506
|
-
});
|
|
1507
|
-
})(N);
|
|
1508
|
-
const ce = {
|
|
1509
|
-
data() {
|
|
1510
|
-
return {
|
|
1511
|
-
width: "800px",
|
|
1512
|
-
visible: !1,
|
|
1513
|
-
id: null,
|
|
1514
|
-
confirmLoading: !1,
|
|
1515
|
-
fileList: [],
|
|
1516
|
-
uploading: !1,
|
|
1517
|
-
options: {
|
|
1518
|
-
img: "",
|
|
1519
|
-
autoCrop: !0,
|
|
1520
|
-
autoCropWidth: 200,
|
|
1521
|
-
autoCropHeight: 200,
|
|
1522
|
-
fixedBox: !0
|
|
1523
|
-
},
|
|
1524
|
-
previews: {},
|
|
1525
|
-
fullscreen: !1
|
|
1526
|
-
};
|
|
1527
|
-
},
|
|
1528
|
-
computed: {
|
|
1529
|
-
modalStyle() {
|
|
1530
|
-
return this.fullscreen ? {
|
|
1531
|
-
width: "100%",
|
|
1532
|
-
dialogStyle: {
|
|
1533
|
-
top: "0px"
|
|
1534
|
-
}
|
|
1535
|
-
} : {
|
|
1536
|
-
width: this.width,
|
|
1537
|
-
dialogStyle: {
|
|
1538
|
-
top: "40px"
|
|
1539
|
-
}
|
|
1540
|
-
};
|
|
1541
|
-
}
|
|
1542
|
-
},
|
|
1543
|
-
components: {
|
|
1544
|
-
VueCropper: N.exports.VueCropper
|
|
1545
|
-
},
|
|
1546
|
-
methods: {
|
|
1547
|
-
toggleFullscreen() {
|
|
1548
|
-
this.fullscreen = !this.fullscreen;
|
|
1549
|
-
},
|
|
1550
|
-
edit(r) {
|
|
1551
|
-
this.fullscreen = !1, this.visible = !0, this.id = r;
|
|
1552
|
-
},
|
|
1553
|
-
close() {
|
|
1554
|
-
this.id = null, this.visible = !1;
|
|
1555
|
-
},
|
|
1556
|
-
cancelHandel() {
|
|
1557
|
-
this.close();
|
|
1558
|
-
},
|
|
1559
|
-
changeScale(r) {
|
|
1560
|
-
r = r || 1, this.$refs.cropper.changeScale(r);
|
|
1561
|
-
},
|
|
1562
|
-
rotateLeft() {
|
|
1563
|
-
this.$refs.cropper.rotateLeft();
|
|
1564
|
-
},
|
|
1565
|
-
rotateRight() {
|
|
1566
|
-
this.$refs.cropper.rotateRight();
|
|
1567
|
-
},
|
|
1568
|
-
beforeUpload(r) {
|
|
1569
|
-
this.fileList = r;
|
|
1570
|
-
const e = new FileReader();
|
|
1571
|
-
return e.readAsDataURL(r), e.onload = () => {
|
|
1572
|
-
this.options.img = e.result;
|
|
1573
|
-
}, !1;
|
|
1574
|
-
},
|
|
1575
|
-
finish(r) {
|
|
1576
|
-
r === "blob" ? (this.uploading = !0, this.$refs.cropper.getCropBlob((e) => {
|
|
1577
|
-
const o = new window.File([e], this.fileList.name, {
|
|
1578
|
-
type: this.fileList.type
|
|
1579
|
-
}), a = new FormData();
|
|
1580
|
-
a.append("file", o), V(a).then((d) => {
|
|
1581
|
-
d.success ? this.updateAvatar(d.data) : (this.uploading = !1, this.$message.error(d.message));
|
|
1582
|
-
});
|
|
1583
|
-
})) : this.$refs.cropper.getCropData((e) => {
|
|
1584
|
-
});
|
|
1585
|
-
},
|
|
1586
|
-
updateAvatar(r) {
|
|
1587
|
-
const e = {
|
|
1588
|
-
id: this.id,
|
|
1589
|
-
avatar: r
|
|
1590
|
-
};
|
|
1591
|
-
q(e).then((o) => {
|
|
1592
|
-
this.uploading = !1, o.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") + o.message), this.$emit("ok", r);
|
|
1593
|
-
}).catch((o) => {
|
|
1594
|
-
this.$emit("ok", r);
|
|
1595
|
-
});
|
|
1596
|
-
},
|
|
1597
|
-
realTime(r) {
|
|
1598
|
-
this.previews = r;
|
|
1599
|
-
},
|
|
1600
|
-
doEvent(r) {
|
|
1601
|
-
let e = r.item.functionName;
|
|
1602
|
-
this[e] && this[e]();
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
};
|
|
1606
|
-
var le = function() {
|
|
1607
|
-
var e = this, o = e._self._c;
|
|
1608
|
-
return o("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.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) {
|
|
1609
|
-
e.visible = a;
|
|
1610
|
-
}, closed: e.cancelHandel } }, [o("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" }), o("div", { staticClass: "gd-model-body", class: e.fullscreen ? "modal-bodyq" : "modal-body" }, [o("el-row", [o("el-col", { style: { height: "350px" }, attrs: { xs: 24, md: 12 } }, [o("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), o("el-col", { style: { height: "350px" }, attrs: { xs: 24, md: 12 } }, [o("div", { staticClass: "avatar-upload-preview" }, [o("img", { style: e.previews.img, attrs: { src: e.previews.url } })])])], 1), o("br"), o("el-row", [o("el-col", { attrs: { lg: 3, md: 3 } }, [o("el-upload", { attrs: { name: "file", action: "", beforeUpload: e.beforeUpload, showUploadList: !1 } }, [o("el-button", { staticClass: "el-icon-upload2" }, [e._v(e._s(e.$i18nt("gd.account.selectPicture", "\u9009\u62E9\u56FE\u7247")))])], 1)], 1), o("el-col", { attrs: { lg: { span: 1, offset: 2 }, md: 2 } }, [o("el-button", { staticClass: "el-icon-plus", on: { click: function(a) {
|
|
1611
|
-
return e.changeScale(1);
|
|
1612
|
-
} } })], 1), o("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [o("el-button", { staticClass: "el-icon-minus", on: { click: function(a) {
|
|
1613
|
-
return e.changeScale(-1);
|
|
1614
|
-
} } })], 1), o("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [o("el-button", { staticClass: "el-icon-refresh-left", on: { click: e.rotateLeft } })], 1), o("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [o("el-button", { staticClass: "el-icon-refresh-right", on: { click: e.rotateRight } })], 1), o("el-col", { attrs: { lg: { span: 2, offset: 6 }, md: 2 } }, [o("el-button", { attrs: { type: "primary", loading: e.uploading }, on: { click: function(a) {
|
|
1615
|
-
return e.finish("blob");
|
|
1616
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.save")) + " ")])], 1)], 1)], 1)], 1);
|
|
1617
|
-
}, ue = [], de = /* @__PURE__ */ M(
|
|
1618
|
-
ce,
|
|
1619
|
-
le,
|
|
1620
|
-
ue,
|
|
1621
|
-
!1,
|
|
1622
|
-
null,
|
|
1623
|
-
"1fe51f00",
|
|
1624
|
-
null,
|
|
1625
|
-
null
|
|
1626
|
-
);
|
|
1627
|
-
const he = de.exports;
|
|
1628
|
-
function pe(r) {
|
|
1629
|
-
return window.axios({
|
|
1630
|
-
url: "/sysLanguage/page",
|
|
1631
|
-
method: "get",
|
|
1632
|
-
params: r
|
|
1633
|
-
});
|
|
1634
|
-
}
|
|
1635
|
-
function ge(r) {
|
|
1636
|
-
return window.axios({
|
|
1637
|
-
url: "/sysCurrency/page",
|
|
1638
|
-
method: "get",
|
|
1639
|
-
params: r
|
|
1640
|
-
});
|
|
1641
|
-
}
|
|
1642
|
-
function fe(r) {
|
|
1643
|
-
return window.axios({
|
|
1644
|
-
url: "/sysTimezone/page",
|
|
1645
|
-
method: "get",
|
|
1646
|
-
params: r
|
|
1647
|
-
});
|
|
1648
|
-
}
|
|
1649
|
-
const me = {
|
|
1650
|
-
props: {
|
|
1651
|
-
height: {
|
|
1652
|
-
type: Number,
|
|
1653
|
-
default: 100
|
|
1654
|
-
}
|
|
1655
|
-
},
|
|
1656
|
-
name: "GdBaseSettings",
|
|
1657
|
-
components: {
|
|
1658
|
-
AvatarModal: he
|
|
1659
|
-
},
|
|
1660
|
-
data() {
|
|
1661
|
-
return {
|
|
1662
|
-
preview: {},
|
|
1663
|
-
sexData: [],
|
|
1664
|
-
langData: [
|
|
1665
|
-
{
|
|
1666
|
-
id: 1,
|
|
1667
|
-
name: "\u7B80\u4F53\u4E2D\u6587",
|
|
1668
|
-
transKey: "gd.settings.chineseLanguage"
|
|
1669
|
-
},
|
|
1670
|
-
{
|
|
1671
|
-
id: 2,
|
|
1672
|
-
name: "\u82F1\u8BED(\u7F8E\u56FD)",
|
|
1673
|
-
transKey: "gd.settings.englishLanguage"
|
|
1674
|
-
}
|
|
1675
|
-
],
|
|
1676
|
-
timezoneData: [],
|
|
1677
|
-
currencyData: [],
|
|
1678
|
-
option: {
|
|
1679
|
-
img: null,
|
|
1680
|
-
info: !0,
|
|
1681
|
-
size: 1,
|
|
1682
|
-
outputType: "jpeg",
|
|
1683
|
-
canScale: !1,
|
|
1684
|
-
autoCrop: !0,
|
|
1685
|
-
autoCropWidth: 180,
|
|
1686
|
-
autoCropHeight: 180,
|
|
1687
|
-
fixedBox: !0,
|
|
1688
|
-
fixed: !0,
|
|
1689
|
-
fixedNumber: [1, 1],
|
|
1690
|
-
birthdayString: ""
|
|
1691
|
-
},
|
|
1692
|
-
spinning: !1,
|
|
1693
|
-
ruleForm: {},
|
|
1694
|
-
rules: {}
|
|
1695
|
-
};
|
|
1696
|
-
},
|
|
1697
|
-
computed: {
|
|
1698
|
-
getHeight() {
|
|
1699
|
-
return this.height;
|
|
1700
|
-
},
|
|
1701
|
-
...W(["userInfo", "locale", "language"])
|
|
1702
|
-
},
|
|
1703
|
-
mounted() {
|
|
1704
|
-
this.initUserInfo();
|
|
1705
|
-
},
|
|
1706
|
-
methods: {
|
|
1707
|
-
changeLanguage(r) {
|
|
1708
|
-
let e = this.langData.filter((o) => o.id == r)[0];
|
|
1709
|
-
this.$store.dispatch("Language", e.code);
|
|
1710
|
-
},
|
|
1711
|
-
initUserInfo() {
|
|
1712
|
-
this.spinning = !0, setTimeout(() => {
|
|
1713
|
-
this.languageChange(), this.timezoneChange(), this.currencyChange(), this.ruleForm = {
|
|
1714
|
-
birthday: this.userInfo.birthday ? this.userInfo.birthday : void 0,
|
|
1715
|
-
nickName: this.userInfo.nickname,
|
|
1716
|
-
gender: this.userInfo.gender.toString(),
|
|
1717
|
-
email: this.userInfo.email,
|
|
1718
|
-
phone: this.userInfo.phone,
|
|
1719
|
-
tel: this.userInfo.tel,
|
|
1720
|
-
languageId: this.userInfo.languageid,
|
|
1721
|
-
currencyId: this.userInfo.currencyid,
|
|
1722
|
-
timezoneId: this.userInfo.timezoneid
|
|
1723
|
-
}, this.birthdayString = this.userInfo.birthday, this.userInfo.avatar != null ? X({
|
|
1724
|
-
id: this.userInfo.avatar
|
|
1725
|
-
}).then((r) => {
|
|
1726
|
-
this.option.img = window.URL.createObjectURL(new Blob([r]));
|
|
1727
|
-
}).catch((r) => {
|
|
1728
|
-
this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A" + r.message);
|
|
1729
|
-
}) : this.option.img = "/avatar2.jpg", this.getSexData(), this.spinning = !1;
|
|
1730
|
-
}, 100);
|
|
1731
|
-
},
|
|
1732
|
-
onChange(r, e) {
|
|
1733
|
-
console.log(r), this.birthdayString = r;
|
|
1734
|
-
},
|
|
1735
|
-
currencyChange() {
|
|
1736
|
-
ge().then((r) => {
|
|
1737
|
-
r.success && (this.currencyData = r.data.rows, j.ls.set("currencyData", r.data.rows));
|
|
1738
|
-
});
|
|
1739
|
-
},
|
|
1740
|
-
timezoneChange() {
|
|
1741
|
-
fe().then((r) => {
|
|
1742
|
-
r.success && (this.timezoneData = r.data.rows);
|
|
1743
|
-
});
|
|
1744
|
-
},
|
|
1745
|
-
languageChange() {
|
|
1746
|
-
pe().then((r) => {
|
|
1747
|
-
r.success && (this.langData = r.data.rows);
|
|
1748
|
-
});
|
|
1749
|
-
},
|
|
1750
|
-
submitUserInfo() {
|
|
1751
|
-
this.spinning || this.$refs.ruleForm.validate((r) => {
|
|
1752
|
-
r && (this.spinning = !0, this.ruleForm.birthday = this.birthdayString, this.ruleForm.id = this.userInfo.id, Z(this.ruleForm).then((e) => {
|
|
1753
|
-
if (e.success) {
|
|
1754
|
-
let o = this.langData.filter((a) => a.id == this.ruleForm.languageId)[0];
|
|
1755
|
-
this.$store.dispatch("Language", o.code), this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), setTimeout(() => {
|
|
1756
|
-
this.$store.dispatch("GetInfo").then(() => {
|
|
1757
|
-
});
|
|
1758
|
-
}, 500);
|
|
1759
|
-
} else
|
|
1760
|
-
this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message);
|
|
1761
|
-
this.spinning = !1;
|
|
1762
|
-
}));
|
|
1763
|
-
});
|
|
1764
|
-
},
|
|
1765
|
-
getSexData() {
|
|
1766
|
-
this.sexData = this.$options.filters.dictData("gender");
|
|
1767
|
-
},
|
|
1768
|
-
setavatar(r) {
|
|
1769
|
-
X({
|
|
1770
|
-
id: r
|
|
1771
|
-
}).then((e) => {
|
|
1772
|
-
this.option.img = window.URL.createObjectURL(new Blob([e]));
|
|
1773
|
-
}).catch((e) => {
|
|
1774
|
-
this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A" + e.message);
|
|
1775
|
-
}), this.$store.dispatch("GetInfo").then(() => {
|
|
1776
|
-
});
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1779
|
-
};
|
|
1780
|
-
var ve = function() {
|
|
1781
|
-
var e = this, o = e._self._c;
|
|
1782
|
-
return o("div", { staticClass: "account-settings-info-view", staticStyle: { height: "100px" } }, [o("el-row", { attrs: { gutter: 16 } }, [o("el-col", { attrs: { md: 24, lg: 16 } }, [o("el-form", { ref: "ruleForm", attrs: { model: e.ruleForm, "label-width": "110px", "label-position": "top" }, nativeOn: { submit: function(a) {
|
|
1783
|
-
a.preventDefault();
|
|
1784
|
-
} } }, [o("el-form-item", { attrs: { label: e.$i18nt("gd.account.nickname", "\u6635\u79F0"), prop: "nickName" } }, [o("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.nickName, callback: function(a) {
|
|
1785
|
-
e.$set(e.ruleForm, "nickName", a);
|
|
1786
|
-
}, expression: "ruleForm.nickName" } })], 1), o("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") }] } }, [o("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) {
|
|
1787
|
-
e.$set(e.ruleForm, "birthday", a);
|
|
1788
|
-
}, expression: "ruleForm.birthday" } })], 1), o("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") }] } }, [o("el-radio-group", { model: { value: e.ruleForm.gender, callback: function(a) {
|
|
1789
|
-
e.$set(e.ruleForm, "gender", a);
|
|
1790
|
-
}, expression: "ruleForm.gender" } }, e._l(e.sexData, function(a, d) {
|
|
1791
|
-
return o("el-radio", { key: d, attrs: { label: a.code } }, [e._v(" " + e._s(a.name) + " ")]);
|
|
1792
|
-
}), 1)], 1), o("el-form-item", { attrs: { label: e.$i18nt("gd.account.phone", "\u624B\u673A\u53F7"), prop: "phone", rules: [
|
|
1793
|
-
{ required: !0, message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") },
|
|
1794
|
-
{
|
|
1795
|
-
pattern: /^1[3-9]\d{9}$/,
|
|
1796
|
-
message: this.$i18nt("gd.account.phoneInvalid", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801"),
|
|
1797
|
-
trigger: "blur"
|
|
1798
|
-
}
|
|
1799
|
-
] } }, [o("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.phone, callback: function(a) {
|
|
1800
|
-
e.$set(e.ruleForm, "phone", a);
|
|
1801
|
-
}, expression: "ruleForm.phone" } })], 1), o("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.account.tel", "\u7535\u8BDD"), prop: "tel" } }, [o("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.tel, callback: function(a) {
|
|
1802
|
-
e.$set(e.ruleForm, "tel", a);
|
|
1803
|
-
}, expression: "ruleForm.tel" } })], 1), o("el-form-item", { attrs: { label: e.$i18nt("gd.account.email", "\u7535\u5B50\u90AE\u4EF6"), prop: "email", rules: [
|
|
1804
|
-
{ required: !0, message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), trigger: "blur" },
|
|
1805
|
-
{ type: "email", message: e.$i18nt("gd.account.emailTip", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!"), trigger: ["blur", "change"] }
|
|
1806
|
-
] } }, [o("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.email, callback: function(a) {
|
|
1807
|
-
e.$set(e.ruleForm, "email", a);
|
|
1808
|
-
}, expression: "ruleForm.email" } })], 1), o("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") }] } }, [o("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) {
|
|
1809
|
-
e.$set(e.ruleForm, "languageId", a);
|
|
1810
|
-
}, expression: "ruleForm.languageId" } }, e._l(e.langData, function(a, d) {
|
|
1811
|
-
return o("el-option", { key: d, attrs: { value: a.id, label: a.name } });
|
|
1812
|
-
}), 1)], 1), o("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") }] } }, [o("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleForm.currencyId, callback: function(a) {
|
|
1813
|
-
e.$set(e.ruleForm, "currencyId", a);
|
|
1814
|
-
}, expression: "ruleForm.currencyId" } }, e._l(e.currencyData, function(a, d) {
|
|
1815
|
-
return o("el-option", { key: d, attrs: { value: a.id, label: a.name } });
|
|
1816
|
-
}), 1)], 1), o("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") }] } }, [o("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleForm.timezoneId, callback: function(a) {
|
|
1817
|
-
e.$set(e.ruleForm, "timezoneId", a);
|
|
1818
|
-
}, expression: "ruleForm.timezoneId" } }, e._l(e.timezoneData, function(a, d) {
|
|
1819
|
-
return o("el-option", { key: d, attrs: { value: a.id, label: a.name } });
|
|
1820
|
-
}), 1)], 1), o("el-form-item", [o("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), o("el-col", { style: { minHeight: "180px" }, attrs: { md: 24, lg: 8 } }, [o("div", { staticClass: "ant-upload-preview", on: { click: function(a) {
|
|
1821
|
-
return e.$refs.modal.edit(e.userInfo.id);
|
|
1822
|
-
} } }, [o("i", { staticClass: "el-icon-upload upload-icon" }), o("div", { staticClass: "mask" }, [o("i", { staticClass: "el-icon-plus" })]), o("img", { attrs: { src: e.option.img } })])])], 1), o("avatar-modal", { ref: "modal", on: { ok: e.setavatar } })], 1);
|
|
1823
|
-
}, we = [], ye = /* @__PURE__ */ M(
|
|
1824
|
-
me,
|
|
1825
|
-
ve,
|
|
1826
|
-
we,
|
|
1827
|
-
!1,
|
|
1828
|
-
null,
|
|
1829
|
-
"685efc26",
|
|
1830
|
-
null,
|
|
1831
|
-
null
|
|
1832
|
-
);
|
|
1833
|
-
const P = ye.exports;
|
|
1834
|
-
P.install = function(r) {
|
|
1835
|
-
r.component(P.name, P);
|
|
1836
|
-
};
|
|
1837
|
-
function xe(r) {
|
|
1838
|
-
return window.axios({
|
|
1839
|
-
url: "/sysMenu/list",
|
|
1840
|
-
method: "get",
|
|
1841
|
-
params: r
|
|
1842
|
-
});
|
|
1843
|
-
}
|
|
1844
|
-
function _t(r) {
|
|
1845
|
-
return window.axios({
|
|
1846
|
-
url: "/sysMenu/v2/add",
|
|
1847
|
-
method: "post",
|
|
1848
|
-
data: r
|
|
1849
|
-
});
|
|
1850
|
-
}
|
|
1851
|
-
function $t(r) {
|
|
1852
|
-
return window.axios({
|
|
1853
|
-
url: "/sysMenu/delete",
|
|
1854
|
-
method: "post",
|
|
1855
|
-
data: r
|
|
1856
|
-
});
|
|
1857
|
-
}
|
|
1858
|
-
function It(r) {
|
|
1859
|
-
return window.axios({
|
|
1860
|
-
url: "/sysMenu/detail",
|
|
1861
|
-
method: "post",
|
|
1862
|
-
data: r
|
|
1863
|
-
});
|
|
1864
|
-
}
|
|
1865
|
-
function St(r) {
|
|
1866
|
-
return window.axios({
|
|
1867
|
-
url: "/sysMenu/edit",
|
|
1868
|
-
method: "post",
|
|
1869
|
-
data: r
|
|
1870
|
-
});
|
|
1871
|
-
}
|
|
1872
|
-
function kt(r) {
|
|
1873
|
-
return window.axios({
|
|
1874
|
-
url: "/sysMenu/treeForGrant",
|
|
1875
|
-
method: "get",
|
|
1876
|
-
params: r
|
|
1877
|
-
});
|
|
1878
|
-
}
|
|
1879
|
-
function Ce(r) {
|
|
1880
|
-
return window.axios({
|
|
1881
|
-
url: "/sysMenu/change",
|
|
1882
|
-
method: "post",
|
|
1883
|
-
data: r
|
|
1884
|
-
});
|
|
1885
|
-
}
|
|
1886
|
-
function At(r) {
|
|
1887
|
-
return window.axios({
|
|
1888
|
-
url: "/sysMenu/listByAppsId",
|
|
1889
|
-
method: "post",
|
|
1890
|
-
params: r
|
|
1891
|
-
});
|
|
1892
|
-
}
|
|
1893
|
-
const be = {
|
|
1894
|
-
name: "GdCustomSettings",
|
|
1895
|
-
data() {
|
|
1896
|
-
return {
|
|
1897
|
-
colorList: Y,
|
|
1898
|
-
options: [],
|
|
1899
|
-
homePage: ["uvgsxjpu", "ujhmcamph", "uwcscihbx"],
|
|
1900
|
-
account: "",
|
|
1901
|
-
echartsList: [],
|
|
1902
|
-
value: 0,
|
|
1903
|
-
primaryColors: this.primaryColor,
|
|
1904
|
-
propOptions: [],
|
|
1905
|
-
propOptionsOld: [],
|
|
1906
|
-
list: null,
|
|
1907
|
-
listOptions: [],
|
|
1908
|
-
listOptionsOld: [],
|
|
1909
|
-
presentText: []
|
|
1910
|
-
};
|
|
1911
|
-
},
|
|
1912
|
-
computed: {
|
|
1913
|
-
predefine() {
|
|
1914
|
-
let r = [];
|
|
1915
|
-
return Y.forEach((e) => {
|
|
1916
|
-
r.push(e.color);
|
|
1917
|
-
}), r;
|
|
1918
|
-
},
|
|
1919
|
-
...W(["userInfo", "addRouters", "theme", "primaryColor", "echartsColor", "systemInfo"])
|
|
1920
|
-
},
|
|
1921
|
-
watch: {
|
|
1922
|
-
primaryColor() {
|
|
1923
|
-
this.primaryColors = this.primaryColor;
|
|
1924
|
-
}
|
|
1925
|
-
},
|
|
1926
|
-
methods: {
|
|
1927
|
-
okColor(r) {
|
|
1928
|
-
this.$store.dispatch("EchartsColor", r), this.echartsList = [...r];
|
|
1929
|
-
},
|
|
1930
|
-
getColor() {
|
|
1931
|
-
this.echartsList = [...this.echartsColor];
|
|
1932
|
-
},
|
|
1933
|
-
renew() {
|
|
1934
|
-
let r = this, e = this.homePage, o = !1;
|
|
1935
|
-
if (e.length == 0 && (o = !0), e.length > 1 && (o = !0), !o) {
|
|
1936
|
-
r.$message.error(r.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
|
|
1937
|
-
return;
|
|
1938
|
-
}
|
|
1939
|
-
this.$confirm(
|
|
1940
|
-
this.$i18nt("gd.https.configThemeContent", "\u662F\u5426\u66F4\u65B0\u4E2A\u4EBA\u9996\u9875\u914D\u7F6E?"),
|
|
1941
|
-
this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"),
|
|
1942
|
-
{
|
|
1943
|
-
confirmButtonText: this.$i18nt("gd.https.saveOk", "\u786E\u5B9A\u4FDD\u5B58"),
|
|
1944
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
1945
|
-
showClose: !1,
|
|
1946
|
-
confirmButtonLoading: !1,
|
|
1947
|
-
cancelButtonLoading: !1,
|
|
1948
|
-
closeOnClickModal: !1,
|
|
1949
|
-
type: "warning",
|
|
1950
|
-
confirmButtonClass: "el-button--danger",
|
|
1951
|
-
customClass: "custom-alert",
|
|
1952
|
-
callback: () => {
|
|
1953
|
-
},
|
|
1954
|
-
beforeClose: (a, d, h) => {
|
|
1955
|
-
this.renewHand(a, d, h, this.homePage);
|
|
1956
|
-
}
|
|
1957
|
-
}
|
|
1958
|
-
);
|
|
1959
|
-
},
|
|
1960
|
-
renewHand(r, e, o, a) {
|
|
1961
|
-
if (r !== "confirm") {
|
|
1962
|
-
o();
|
|
1963
|
-
return;
|
|
1964
|
-
}
|
|
1965
|
-
let d = [], h = J({
|
|
1966
|
-
configTheme: a.join(",")
|
|
1967
|
-
}).then((y) => y);
|
|
1968
|
-
d.push(h), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(d).then((y) => {
|
|
1969
|
-
o(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
|
|
1970
|
-
const $ = y.filter((I) => !I.success);
|
|
1971
|
-
$.length === 0 ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$store.dispatch("GetInfo").then(() => {
|
|
1972
|
-
})) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + $[0].message);
|
|
1973
|
-
});
|
|
1974
|
-
},
|
|
1975
|
-
init() {
|
|
1976
|
-
this.value = this.theme == "dark" ? 1 : 0, this.homePage = this.userInfo.configtheme ? this.userInfo.configtheme.split(",") : [], this.systemInfo.id ? this.systemInfo : window.$systemInfo;
|
|
1977
|
-
},
|
|
1978
|
-
lazyLoad(r, e) {
|
|
1979
|
-
const { level: o, value: a } = r;
|
|
1980
|
-
if (this.options.length === 0) {
|
|
1981
|
-
this.geData().then(() => {
|
|
1982
|
-
if (this.presentText.length < this.homePage.length) {
|
|
1983
|
-
const d = this.options.filter((h) => h.code === this.homePage[0])[0];
|
|
1984
|
-
this.presentText = d ? this.presentText.concat([d.label]) : this.presentText;
|
|
1985
|
-
}
|
|
1986
|
-
e(this.options);
|
|
1987
|
-
});
|
|
1988
|
-
return;
|
|
1989
|
-
}
|
|
1990
|
-
this.getMenuListAll(a).then((d) => {
|
|
1991
|
-
if (this.presentText.length < this.homePage.length && o === 2) {
|
|
1992
|
-
this.presentText = this.presentText.concat([r.label]);
|
|
1993
|
-
const y = r.children.filter(($) => $.value === this.homePage[o])[0];
|
|
1994
|
-
this.presentText = y ? this.presentText.concat([y.label]) : this.presentText;
|
|
1995
|
-
}
|
|
1996
|
-
const h = this.$refs.cascader.presentText;
|
|
1997
|
-
this.presentText.length === this.homePage.length && h === null && (this.$refs.cascader.presentText = this.presentText.join(" / ")), e(d);
|
|
1998
|
-
});
|
|
1999
|
-
},
|
|
2000
|
-
geData() {
|
|
2001
|
-
return oe({}).then((r) => {
|
|
2002
|
-
if (r.success) {
|
|
2003
|
-
let e = r.data.map((o) => {
|
|
2004
|
-
let a = this.userInfo.apps.filter((d) => d.code == o.code)[0];
|
|
2005
|
-
if (a != null)
|
|
2006
|
-
return o.leaf = a == null, o.value = o.code, o.label = this.$i18nt(`Dynamics.${o.transkey}`, o.name), o.loading = !1, o;
|
|
2007
|
-
});
|
|
2008
|
-
return e = e.filter((o) => o !== void 0), this.options = [...e], this.listOptionsOld = JSON.stringify(e), new Promise((o) => {
|
|
2009
|
-
o();
|
|
2010
|
-
});
|
|
2011
|
-
}
|
|
2012
|
-
});
|
|
2013
|
-
},
|
|
2014
|
-
getMenuListAll(r) {
|
|
2015
|
-
return Promise.all([this.getMenuList({ application: r }), this.sysMenuChange({ application: r })]).then((e) => {
|
|
2016
|
-
let o = e[0].data, a = e[1].data;
|
|
2017
|
-
return o.map((d, h) => {
|
|
2018
|
-
let y = a.filter(($) => $.path == d.router);
|
|
2019
|
-
return o[h].value = d.router, o[h].label = this.$i18nt(`Dynamics.${d.transkey}`, d.name), o[h].leaf = d.children.length == 0, o[h].disabled = y.length == 0, d.children.length == 0 ? o[h].children = null : d.children.map(($, I) => {
|
|
2020
|
-
let A = a.filter((k) => k.path == $.router);
|
|
2021
|
-
o[h].children[I].value = $.router, o[h].children[I].label = this.$i18nt(`Dynamics.${$.transkey}`, $.name), o[h].children[I].children = [], o[h].children[I].leaf = !0, o[h].children[I].disabled = A.length == 0;
|
|
2022
|
-
}), d;
|
|
2023
|
-
}), o.map((d) => {
|
|
2024
|
-
d.children = d.children ? d.children.filter((h) => h.disabled == !1) : [];
|
|
2025
|
-
}), o;
|
|
2026
|
-
});
|
|
2027
|
-
},
|
|
2028
|
-
getMenuList(r) {
|
|
2029
|
-
return xe(r).then((e) => e);
|
|
2030
|
-
},
|
|
2031
|
-
sysMenuChange(r) {
|
|
2032
|
-
return Ce(r).then((e) => e);
|
|
2033
|
-
},
|
|
2034
|
-
onChangeCascader(r) {
|
|
2035
|
-
const e = this.$refs.cascader.presentText;
|
|
2036
|
-
this.presentText = e !== null ? e.split(" / ") : [];
|
|
2037
|
-
},
|
|
2038
|
-
onChange(r) {
|
|
2039
|
-
r ? this.$store.dispatch("ToggleTheme", "dark") : this.$store.dispatch("ToggleTheme", "light");
|
|
2040
|
-
},
|
|
2041
|
-
async changeColor(r) {
|
|
2042
|
-
const e = this, o = this.primaryColor;
|
|
2043
|
-
if (typeof r != "string")
|
|
2044
|
-
return;
|
|
2045
|
-
const a = this.$message({
|
|
2046
|
-
message: e.$i18nt("gd.theme.switchingTopics"),
|
|
2047
|
-
duration: 0,
|
|
2048
|
-
iconClass: "el-icon-loading"
|
|
2049
|
-
}), d = this.getThemeCluster(r.replace("#", "")), h = this.getThemeCluster(o.replace("#", "")), y = (A, k) => () => {
|
|
2050
|
-
const L = this.getThemeCluster(this.primaryColor.replace("#", "")), n = this.updateStyle(this[A], L, d);
|
|
2051
|
-
let t = document.getElementById(k);
|
|
2052
|
-
t || (t = document.createElement("style"), t.setAttribute("id", k), document.head.appendChild(t)), t.innerText = n;
|
|
2053
|
-
};
|
|
2054
|
-
this.chalk || await import("./element-theme-chalk.fbb1a631.mjs").then((A) => {
|
|
2055
|
-
this.chalk = A.default;
|
|
2056
|
-
}), y("chalk", "chalk-style")(), [].slice.call(document.querySelectorAll("style")).filter((A) => {
|
|
2057
|
-
const k = A.innerText;
|
|
2058
|
-
return new RegExp(o, "i").test(k) && !/Chalk Variables/.test(k);
|
|
2059
|
-
}).forEach((A) => {
|
|
2060
|
-
const { innerText: k } = A;
|
|
2061
|
-
typeof k == "string" && (A.innerText = this.updateStyle(k, h, d));
|
|
2062
|
-
}), this.$store.dispatch("ToggleColor", r), window.document.body.style = `--color:${r}`, this.$nextTick(() => {
|
|
2063
|
-
setTimeout(() => {
|
|
2064
|
-
a.close();
|
|
2065
|
-
}, 200);
|
|
2066
|
-
});
|
|
2067
|
-
},
|
|
2068
|
-
updateStyle(r, e, o) {
|
|
2069
|
-
let a = r;
|
|
2070
|
-
return e.forEach((d, h) => {
|
|
2071
|
-
a = a.replace(new RegExp(d, "ig"), o[h]);
|
|
2072
|
-
}), a;
|
|
2073
|
-
},
|
|
2074
|
-
getThemeCluster(r) {
|
|
2075
|
-
const e = (d, h) => {
|
|
2076
|
-
let y = parseInt(d.slice(0, 2), 16), $ = parseInt(d.slice(2, 4), 16), I = parseInt(d.slice(4, 6), 16);
|
|
2077
|
-
return h === 0 ? [y, $, I].join(",") : (y += Math.round(h * (255 - y)), $ += Math.round(h * (255 - $)), I += Math.round(h * (255 - I)), y = y.toString(16), $ = $.toString(16), I = I.toString(16), `#${y}${$}${I}`);
|
|
2078
|
-
}, o = (d, h) => {
|
|
2079
|
-
let y = parseInt(d.slice(0, 2), 16), $ = parseInt(d.slice(2, 4), 16), I = parseInt(d.slice(4, 6), 16);
|
|
2080
|
-
return y = Math.round((1 - h) * y), $ = Math.round((1 - h) * $), I = Math.round((1 - h) * I), y = y.toString(16), $ = $.toString(16), I = I.toString(16), `#${y}${$}${I}`;
|
|
2081
|
-
}, a = [r];
|
|
2082
|
-
for (let d = 0; d <= 9; d++)
|
|
2083
|
-
a.push(e(r, Number((d / 10).toFixed(2))));
|
|
2084
|
-
return a.push(o(r, 0.1)), a;
|
|
2085
|
-
},
|
|
2086
|
-
traverse(r, e) {
|
|
2087
|
-
let o = null;
|
|
2088
|
-
const a = (d) => (d = d.filter((h, y) => (h.children && h.children.length > 0 && a(h.children), h.value == r && (o = {
|
|
2089
|
-
...h
|
|
2090
|
-
}), !0)), d);
|
|
2091
|
-
return a(this.propOptions), o;
|
|
2092
|
-
}
|
|
2093
|
-
},
|
|
2094
|
-
mounted() {
|
|
2095
|
-
this.getColor(), this.init(), this.primaryColor && (this.primaryColors = this.primaryColor);
|
|
2096
|
-
}
|
|
2097
|
-
};
|
|
2098
|
-
var _e = function() {
|
|
2099
|
-
var e = this, o = e._self._c;
|
|
2100
|
-
return o("div", { staticStyle: { "padding-top": "12px" } }, [o("el-row", { attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 24 } }, [o("div", [e._v(e._s(e.$i18nt("gd.settings.overallStyle", "\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E")))])])], 1), o("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 8 } }, [o("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")) + " ")])]), o("el-col", { attrs: { span: 16 } }, [o("div", { staticClass: "grid-content paw grid-flex" }, [o("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) {
|
|
2101
|
-
e.value = a;
|
|
2102
|
-
}, expression: "value" } })], 1)])], 1), o("el-divider"), o("el-row", { attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 24 } }, [o("div", [e._v(e._s(e.$i18nt("gd.settings.theme", "\u4E3B\u9898\u8272")))])])], 1), o("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 8 } }, [o("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")) + " ")])]), o("el-col", { attrs: { span: 16 } }, [o("div", { staticClass: "grid-content paw grid-flex" }, [o("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) {
|
|
2103
|
-
e.primaryColors = a;
|
|
2104
|
-
}, expression: "primaryColors" } })], 1)])], 1), o("el-divider"), o("el-row", { attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 24 } }, [o("div", [e._v(e._s(e.$i18nt("gd.settings.echartsColor", "\u56FE\u8868\u8272")))])])], 1), o("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 8 } }, [o("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")) + " ")])]), o("el-col", { attrs: { span: 16 } }, [o("div", { staticClass: "grid-flex" }, [e._l(e.echartsList, function(a, d) {
|
|
2105
|
-
return [o("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 } }, [o("el-tag", { attrs: { color: a === 0 ? e.primaryColor : a } })], 1)];
|
|
2106
|
-
}), o("span", { staticClass: "active-color", staticStyle: { cursor: "pointer" }, on: { click: function(a) {
|
|
2107
|
-
return e.$refs.echartsTheme.open();
|
|
2108
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.edit", "\u7F16\u8F91")) + " ")])], 2)])], 1), o("el-divider"), o("el-row", { attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 24 } }, [o("div", [e._v(e._s(e.$i18nt("gd.settings.homepage", "\u4E2A\u4EBA\u9996\u9875")))])])], 1), o("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 8 } }, [o("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")) + " ")])]), o("el-col", { attrs: { span: 16 } }, [o("div", { staticClass: "grid-flex" }, [o("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) {
|
|
2109
|
-
e.homePage = a;
|
|
2110
|
-
}, expression: "homePage" } }), o("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), o("el-divider"), o("gd-color-editor", { ref: "echartsTheme", on: { ok: e.okColor } })], 1);
|
|
2111
|
-
}, $e = [], Ie = /* @__PURE__ */ M(
|
|
2112
|
-
be,
|
|
2113
|
-
_e,
|
|
2114
|
-
$e,
|
|
2115
|
-
!1,
|
|
2116
|
-
null,
|
|
2117
|
-
"b784faab",
|
|
2118
|
-
null,
|
|
2119
|
-
null
|
|
2120
|
-
);
|
|
2121
|
-
const F = Ie.exports;
|
|
2122
|
-
F.install = function(r) {
|
|
2123
|
-
r.component(F.name, F);
|
|
2124
|
-
};
|
|
2125
|
-
const Se = {
|
|
2126
|
-
props: {
|
|
2127
|
-
isShow: {
|
|
2128
|
-
type: Boolean,
|
|
2129
|
-
default() {
|
|
2130
|
-
return !1;
|
|
2131
|
-
}
|
|
2132
|
-
}
|
|
2133
|
-
},
|
|
2134
|
-
data() {
|
|
2135
|
-
return {
|
|
2136
|
-
sysViewButtons: [
|
|
2137
|
-
{
|
|
2138
|
-
displayName: "\u786E\u5B9A",
|
|
2139
|
-
functionName: "handleSubmit",
|
|
2140
|
-
show: !0,
|
|
2141
|
-
transKey: "gd.btn.confirm",
|
|
2142
|
-
icon: "el-icon-document-checked"
|
|
2143
|
-
}
|
|
2144
|
-
],
|
|
2145
|
-
confirmLoading: !1,
|
|
2146
|
-
visible: !1,
|
|
2147
|
-
userId: "",
|
|
2148
|
-
width: "600px",
|
|
2149
|
-
min: 0,
|
|
2150
|
-
messageTip: "",
|
|
2151
|
-
messageTipErr: "",
|
|
2152
|
-
lenMax: 0,
|
|
2153
|
-
lenMin: 0,
|
|
2154
|
-
maskValue: "",
|
|
2155
|
-
pattern: null,
|
|
2156
|
-
fullscreen: !1,
|
|
2157
|
-
disabled: !0,
|
|
2158
|
-
code: "",
|
|
2159
|
-
num: 0,
|
|
2160
|
-
ruleForm: {}
|
|
2161
|
-
};
|
|
2162
|
-
},
|
|
2163
|
-
computed: {
|
|
2164
|
-
modalStyle() {
|
|
2165
|
-
return this.fullscreen ? {
|
|
2166
|
-
width: "100%",
|
|
2167
|
-
dialogStyle: {
|
|
2168
|
-
top: "0px"
|
|
2169
|
-
}
|
|
2170
|
-
} : {
|
|
2171
|
-
width: this.width,
|
|
2172
|
-
dialogStyle: {
|
|
2173
|
-
top: "40px"
|
|
2174
|
-
}
|
|
2175
|
-
};
|
|
2176
|
-
},
|
|
2177
|
-
title() {
|
|
2178
|
-
return this.num == 1 ? this.$i18nt("gd.account.changePaw", "\u4FEE\u6539\u5BC6\u7801") : this.$i18nt("gd.account.userBinding", "\u7528\u6237\u7ED1\u5B9A");
|
|
2179
|
-
},
|
|
2180
|
-
...W(["labelPosition"])
|
|
2181
|
-
},
|
|
2182
|
-
methods: {
|
|
2183
|
-
toggleFullscreen() {
|
|
2184
|
-
this.fullscreen = !this.fullscreen;
|
|
2185
|
-
},
|
|
2186
|
-
open(r, e, o) {
|
|
2187
|
-
this.fullscreen = !1, this.userId = r, this.code = e, this.num = o, this.num == 1 ? this.getConfigInfo() : this.$nextTick(() => {
|
|
2188
|
-
this.formUpdPwd.setFieldsValue({
|
|
2189
|
-
account: this.userId
|
|
2190
|
-
});
|
|
2191
|
-
}), this.visible = !0;
|
|
2192
|
-
},
|
|
2193
|
-
getConfigInfo(r) {
|
|
2194
|
-
K().then((e) => {
|
|
2195
|
-
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(
|
|
2196
|
-
`^(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])(?=.*[~!@#$%^&*])[\\da-zA-Z~!@#$%^&*]{${this.lenMin},${this.lenMax}}$`
|
|
2197
|
-
) : 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;
|
|
2198
|
-
});
|
|
2199
|
-
},
|
|
2200
|
-
handleSubmit() {
|
|
2201
|
-
this.$refs.ruleForm.validate((r) => {
|
|
2202
|
-
if (r) {
|
|
2203
|
-
this.confirmLoading = !0;
|
|
2204
|
-
let e;
|
|
2205
|
-
this.num == 1 ? e = {
|
|
2206
|
-
accountName: this.userId,
|
|
2207
|
-
passWord: this.ruleForm.password,
|
|
2208
|
-
newPassword: this.ruleForm.newPassword
|
|
2209
|
-
} : e = {
|
|
2210
|
-
account: this.ruleForm.account,
|
|
2211
|
-
password: this.ruleForm.password,
|
|
2212
|
-
corpCode: this.code
|
|
2213
|
-
}, (this.num == 1 ? Q : te)(e).then((a) => {
|
|
2214
|
-
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);
|
|
2215
|
-
}).finally((a) => {
|
|
2216
|
-
this.confirmLoading = !1;
|
|
2217
|
-
});
|
|
2218
|
-
}
|
|
2219
|
-
});
|
|
2220
|
-
},
|
|
2221
|
-
handleCancel() {
|
|
2222
|
-
this.$refs.ruleForm.resetFields(), this.visible = !1;
|
|
2223
|
-
},
|
|
2224
|
-
compareToFirstPassword(r, e, o) {
|
|
2225
|
-
e && e !== this.ruleForm.newPassword ? o(this.$i18nt("gd.account.repeatPawTiperr", " \u8BF7\u786E\u8BA4\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u7684\u4E00\u81F4\u6027")) : o();
|
|
2226
|
-
},
|
|
2227
|
-
oldtPassword(r, e, o) {
|
|
2228
|
-
e && e === this.ruleForm.password ? o(this.$i18nt("gd.account.repeatPawTipodl", "\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E0E\u539F\u5BC6\u7801\u91CD\u590D")) : o();
|
|
2229
|
-
},
|
|
2230
|
-
doEvent(r) {
|
|
2231
|
-
let e = r.item.functionName;
|
|
2232
|
-
this[e] && this[e]();
|
|
2233
|
-
}
|
|
2234
|
-
}
|
|
2235
|
-
};
|
|
2236
|
-
var ke = function() {
|
|
2237
|
-
var e = this, o = e._self._c;
|
|
2238
|
-
return o("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.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) {
|
|
2239
|
-
e.visible = a;
|
|
2240
|
-
}, closed: e.handleCancel } }, [o("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" }), o("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" } }, [o("el-form", { ref: "ruleForm", attrs: { model: e.ruleForm, "label-width": "110px", "label-position": e.labelPosition }, nativeOn: { submit: function(a) {
|
|
2241
|
-
a.preventDefault();
|
|
2242
|
-
} } }, [e.num == 1 ? o("div", [o("el-form-item", { attrs: { label: e.$i18nt("gd.account.originalPaw", "\u539F\u5BC6\u7801"), prop: "password", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.input") }] } }, [o("el-input", { attrs: { maxlength: 18, "show-password": "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.password, callback: function(a) {
|
|
2243
|
-
e.$set(e.ruleForm, "password", a);
|
|
2244
|
-
}, expression: "ruleForm.password" } })], 1), o("el-form-item", { attrs: { label: e.$i18nt("gd.account.newPaw", "\u65B0\u5BC6\u7801"), prop: "newPassword", rules: [
|
|
2245
|
-
{ required: !0, min: e.min, message: e.messageTip },
|
|
2246
|
-
{
|
|
2247
|
-
pattern: e.pattern,
|
|
2248
|
-
message: e.messageTipErr
|
|
2249
|
-
},
|
|
2250
|
-
{ validator: e.oldtPassword }
|
|
2251
|
-
] } }, [o("el-input", { attrs: { maxlength: 18, "show-password": "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.newPassword, callback: function(a) {
|
|
2252
|
-
e.$set(e.ruleForm, "newPassword", a);
|
|
2253
|
-
}, expression: "ruleForm.newPassword" } })], 1), o("el-form-item", { attrs: { label: e.$i18nt("gd.account.repeatPaw", "\u91CD\u590D\u65B0\u5BC6\u7801"), prop: "confirm", rules: [
|
|
2254
|
-
{ required: !0, message: e.$i18nt("gd.account.repeatPawTip", "\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801") },
|
|
2255
|
-
{ validator: e.compareToFirstPassword }
|
|
2256
|
-
] } }, [o("el-input", { attrs: { maxlength: 18, "show-password": "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.confirm, callback: function(a) {
|
|
2257
|
-
e.$set(e.ruleForm, "confirm", a);
|
|
2258
|
-
}, expression: "ruleForm.confirm" } })], 1)], 1) : o("div", [o("el-form-item", { attrs: { label: e.$i18nt("gd.account.loginID", "\u8D26\u53F7"), prop: "account", rules: [
|
|
2259
|
-
{
|
|
2260
|
-
required: !0,
|
|
2261
|
-
message: this.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165")
|
|
2262
|
-
}
|
|
2263
|
-
] } }, [o("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) {
|
|
2264
|
-
e.$set(e.ruleForm, "account", a);
|
|
2265
|
-
}, expression: "ruleForm.account" } })], 1), o("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") }] } }, [o("el-input", { attrs: { maxlength: 18, placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), "show-password": "" }, model: { value: e.ruleForm.password, callback: function(a) {
|
|
2266
|
-
e.$set(e.ruleForm, "password", a);
|
|
2267
|
-
}, expression: "ruleForm.password" } })], 1)], 1)])], 1)], 1);
|
|
2268
|
-
}, Ae = [], Le = /* @__PURE__ */ M(
|
|
2269
|
-
Se,
|
|
2270
|
-
ke,
|
|
2271
|
-
Ae,
|
|
2272
|
-
!1,
|
|
2273
|
-
null,
|
|
2274
|
-
"1d4e1c11",
|
|
2275
|
-
null,
|
|
2276
|
-
null
|
|
2277
|
-
);
|
|
2278
|
-
const z = Le.exports;
|
|
2279
|
-
const Te = {
|
|
2280
|
-
props: {
|
|
2281
|
-
isClear: {
|
|
2282
|
-
type: Number,
|
|
2283
|
-
default: 1
|
|
2284
|
-
}
|
|
2285
|
-
},
|
|
2286
|
-
components: {
|
|
2287
|
-
UpdPwd: z
|
|
2288
|
-
},
|
|
2289
|
-
data() {
|
|
2290
|
-
return {
|
|
2291
|
-
visible: !1,
|
|
2292
|
-
qrCodeUrl: "//login.work.weixin.qq.com/wwlogin/sso/qrcode?key=ae88c122560120a2",
|
|
2293
|
-
code: "",
|
|
2294
|
-
logTitle: "",
|
|
2295
|
-
num: 1,
|
|
2296
|
-
wwLogin: null,
|
|
2297
|
-
confirmLoading: !1,
|
|
2298
|
-
isInitialize: null,
|
|
2299
|
-
pwdExpiration: "",
|
|
2300
|
-
setDate: void 0,
|
|
2301
|
-
currentTime: void 0,
|
|
2302
|
-
diff: void 0,
|
|
2303
|
-
diffDate: void 0,
|
|
2304
|
-
state: "",
|
|
2305
|
-
isWeComLogin: !1,
|
|
2306
|
-
wxUserId: null,
|
|
2307
|
-
appId: "",
|
|
2308
|
-
agentId: "",
|
|
2309
|
-
redirectURL: "",
|
|
2310
|
-
titleWidth: "504px",
|
|
2311
|
-
num1: 0
|
|
2312
|
-
};
|
|
2313
|
-
},
|
|
2314
|
-
computed: {
|
|
2315
|
-
style() {
|
|
2316
|
-
return {
|
|
2317
|
-
"--color": this.primaryColor
|
|
2318
|
-
};
|
|
2319
|
-
},
|
|
2320
|
-
titleTip() {
|
|
2321
|
-
return this.num == 1 ? $i18nt("gd.account.loading") : "";
|
|
2322
|
-
},
|
|
2323
|
-
...W(["userInfo", "language", "primaryColor"])
|
|
2324
|
-
},
|
|
2325
|
-
mounted() {
|
|
2326
|
-
},
|
|
2327
|
-
methods: {
|
|
2328
|
-
open(r, e) {
|
|
2329
|
-
this.num = e, this.visible = !0, this.titleWidth = this.language == "zh_CN" ? 350 + "px" : 504 + "px", this.num == 1 && this.getWeChat(r);
|
|
2330
|
-
},
|
|
2331
|
-
getWeChat(r) {
|
|
2332
|
-
let e = this;
|
|
2333
|
-
r.data.forEach((o, a) => {
|
|
2334
|
-
o.code == "GDS_ENTERPRISE_WECHAT_CropID" && (e.appId = o.value), o.code == "GDS_ENTERPRISE_WECHAT_AgentId" && (e.agentId = o.value), o.code == "GDS_ENTERPRISE_WECHAT_Redirect_URL" && (e.redirectURL = o.value);
|
|
2335
|
-
}), setTimeout(() => {
|
|
2336
|
-
e.wwLogin = ww.createWWLoginPanel({
|
|
2337
|
-
el: "#wx_qrcode",
|
|
2338
|
-
params: {
|
|
2339
|
-
login_type: "CorpApp",
|
|
2340
|
-
appid: e.appId,
|
|
2341
|
-
agentid: e.agentId,
|
|
2342
|
-
redirect_uri: e.redirectURL,
|
|
2343
|
-
state: "loginState",
|
|
2344
|
-
redirect_type: "callback",
|
|
2345
|
-
panel_size: e.language == "zh_CN" ? "small" : "middle",
|
|
2346
|
-
lang: e.language == "zh_CN" ? "zh" : "en"
|
|
2347
|
-
},
|
|
2348
|
-
onCheckWeComLogin({ isWeComLogin: o }) {
|
|
2349
|
-
e.isWeComLogin = o, e.num1 = e.isWeComLogin == !0 ? 1 : 0;
|
|
2350
|
-
},
|
|
2351
|
-
onLoginSuccess({ code: o }) {
|
|
2352
|
-
e.code = o, e.$refs.updPwd.open(e.userInfo.account, o, 2), e.visible = !1;
|
|
2353
|
-
},
|
|
2354
|
-
onLoginFail(o) {
|
|
2355
|
-
}
|
|
2356
|
-
});
|
|
2357
|
-
}, 500);
|
|
2358
|
-
},
|
|
2359
|
-
handleCancel() {
|
|
2360
|
-
this.confirmLoading = !1, this.visible = !1, this.$refs.wx_qrcode.innerHTML = "";
|
|
2361
|
-
}
|
|
2362
|
-
}
|
|
2363
|
-
};
|
|
2364
|
-
var Ee = function() {
|
|
2365
|
-
var e = this, o = e._self._c;
|
|
2366
|
-
return o("div", [o("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) {
|
|
2367
|
-
e.visible = a;
|
|
2368
|
-
}, closed: e.handleCancel } }, [o("div", { staticClass: "main", style: e.style }, [e.num == 1 ? o("div", [o("div", { ref: "wx_qrcode", style: e.num1 == 0 ? "height: 290px;" : "height: 290px", attrs: { id: "wx_qrcode" } }), o("div", { class: e.num1 == 0 ? "div_top" : "div_topno" }), o("div", { class: e.num1 == 0 ? "div_bottom" : "" })]) : e._e()])]), o("upd-pwd", { ref: "updPwd" })], 1);
|
|
2369
|
-
}, Oe = [], Me = /* @__PURE__ */ M(
|
|
2370
|
-
Te,
|
|
2371
|
-
Ee,
|
|
2372
|
-
Oe,
|
|
2373
|
-
!1,
|
|
2374
|
-
null,
|
|
2375
|
-
"55ede8aa",
|
|
2376
|
-
null,
|
|
2377
|
-
null
|
|
2378
|
-
);
|
|
2379
|
-
const We = Me.exports;
|
|
2380
|
-
const He = {
|
|
2381
|
-
name: "GdSecuritySettings",
|
|
2382
|
-
components: {
|
|
2383
|
-
UpdPwd: z,
|
|
2384
|
-
weChatBind: We
|
|
2385
|
-
},
|
|
2386
|
-
data() {
|
|
2387
|
-
return {
|
|
2388
|
-
isShow: !1,
|
|
2389
|
-
num: 0,
|
|
2390
|
-
wxUserId: null,
|
|
2391
|
-
obj: {},
|
|
2392
|
-
appId: "",
|
|
2393
|
-
agentId: "",
|
|
2394
|
-
redirectURL: "",
|
|
2395
|
-
enterpriseNum: 0,
|
|
2396
|
-
bindTitle: "\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1",
|
|
2397
|
-
dicsTitle: ""
|
|
2398
|
-
};
|
|
2399
|
-
},
|
|
2400
|
-
watch: {
|
|
2401
|
-
language(r, e) {
|
|
2402
|
-
this.changeLanguage();
|
|
2403
|
-
},
|
|
2404
|
-
userInfo(r, e) {
|
|
2405
|
-
this.changUserInfo();
|
|
2406
|
-
}
|
|
2407
|
-
},
|
|
2408
|
-
created() {
|
|
2409
|
-
this.init();
|
|
2410
|
-
},
|
|
2411
|
-
mounted() {
|
|
2412
|
-
},
|
|
2413
|
-
computed: {
|
|
2414
|
-
...W(["userInfo", "language"])
|
|
2415
|
-
},
|
|
2416
|
-
methods: {
|
|
2417
|
-
updPwd() {
|
|
2418
|
-
this.$refs.updPwd.open(this.userInfo.account, null, 1);
|
|
2419
|
-
},
|
|
2420
|
-
bind() {
|
|
2421
|
-
this.$refs.weChatBind.open(this.obj, 1);
|
|
2422
|
-
},
|
|
2423
|
-
getConfigInfo() {
|
|
2424
|
-
ee({
|
|
2425
|
-
code: "GDS_ENTERPRISE_WECHAT_LOGIN"
|
|
2426
|
-
}).then((e) => {
|
|
2427
|
-
this.enterpriseNum = e.data.value;
|
|
2428
|
-
});
|
|
2429
|
-
},
|
|
2430
|
-
getConfigsBy() {
|
|
2431
|
-
ne({
|
|
2432
|
-
strCodes: "GDS_ENTERPRISE_WECHAT_CropID,GDS_ENTERPRISE_WECHAT_AgentId,GDS_ENTERPRISE_WECHAT_Redirect_URL"
|
|
2433
|
-
}).then((e) => {
|
|
2434
|
-
e.success && (this.obj = e);
|
|
2435
|
-
});
|
|
2436
|
-
},
|
|
2437
|
-
getData() {
|
|
2438
|
-
G().then((r) => {
|
|
2439
|
-
this.wxuserid = r.data.wxuserid;
|
|
2440
|
-
});
|
|
2441
|
-
},
|
|
2442
|
-
changeLanguage() {
|
|
2443
|
-
this.init();
|
|
2444
|
-
},
|
|
2445
|
-
changUserInfo() {
|
|
2446
|
-
this.init();
|
|
2447
|
-
},
|
|
2448
|
-
init() {
|
|
2449
|
-
this.wxuserid = this.userInfo.wxuserid, this.getConfigInfo(), this.getData(), this.getConfigsBy();
|
|
2450
|
-
},
|
|
2451
|
-
getWeChat(r, e) {
|
|
2452
|
-
let o = this;
|
|
2453
|
-
r.data.forEach((a, d) => {
|
|
2454
|
-
a.code == "GDS_ENTERPRISE_WECHAT_CropID" && (o.appId = a.value), a.code == "GDS_ENTERPRISE_WECHAT_AgentId" && (o.agentId = a.value), a.code == "GDS_ENTERPRISE_WECHAT_Redirect_URL" && (o.redirectURL = a.value);
|
|
2455
|
-
}), setTimeout(() => {
|
|
2456
|
-
o.wwLogin = ww.createWWLoginPanel({
|
|
2457
|
-
el: "#wx_qrcode",
|
|
2458
|
-
params: {
|
|
2459
|
-
login_type: "CorpApp",
|
|
2460
|
-
appid: o.appId,
|
|
2461
|
-
agentid: o.agentId,
|
|
2462
|
-
redirect_uri: o.redirectURL,
|
|
2463
|
-
state: "loginState",
|
|
2464
|
-
redirect_type: "callback",
|
|
2465
|
-
panel_size: "middle",
|
|
2466
|
-
lang: e == "zh_CN" ? "zh" : "en"
|
|
2467
|
-
},
|
|
2468
|
-
onCheckWeComLogin({ isWeComLogin: a }) {
|
|
2469
|
-
console.log(a);
|
|
2470
|
-
},
|
|
2471
|
-
onLoginSuccess({ code: a }) {
|
|
2472
|
-
o.code = a, o.$refs.updPwd.open(o.userInfo.account, a, 2), console.log(a);
|
|
2473
|
-
},
|
|
2474
|
-
onLoginFail(a) {
|
|
2475
|
-
}
|
|
2476
|
-
});
|
|
2477
|
-
}, 500);
|
|
2478
|
-
},
|
|
2479
|
-
bindCode(r) {
|
|
2480
|
-
r == 1 || r == 0 ? this.getData() : r == -1 ? this.getConfigsBy() : r == 2 && this.getConfigsBy();
|
|
2481
|
-
}
|
|
2482
|
-
}
|
|
2483
|
-
};
|
|
2484
|
-
var Ue = function() {
|
|
2485
|
-
var e = this, o = e._self._c;
|
|
2486
|
-
return o("div", { staticStyle: { "padding-top": "12px" } }, [o("el-row", { attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 24 } }, [o("div", { staticClass: "grid-content bg-purple" }, [e._v(" " + e._s(e.$i18nt("gd.account.passWord", "\u8D26\u6237\u5BC6\u7801")) + " ")])])], 1), o("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 8 } }, [o("div", { staticClass: "grid-content strength", staticStyle: { color: "rgba(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")) + " ")])]), o("el-col", { attrs: { span: 16 } }, [o("div", { staticClass: "grid-content paw grid-flex" }, [o("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), o("el-divider"), o("el-row", { attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 24 } }, [o("div", { staticClass: "grid-content bd", staticStyle: { color: "rgba(0, 0, 0, .45)" } }, [e._v(" " + e._s(e.$i18nt("gd.account.bindenterpriseWechat", "\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1")) + " ")])])], 1), o("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 8 } }, [o("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 == "" ? o("el-col", { attrs: { span: 16 } }, [o("div", { staticClass: "grid-content paw grid-flex" }, [o("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), o("upd-pwd", { ref: "updPwd", attrs: { isShow: e.isShow }, on: { bindCode: e.bindCode } }), o("weChatBind", { ref: "weChatBind", on: { bindCode: e.bindCode } })], 1);
|
|
2487
|
-
}, Pe = [], Fe = /* @__PURE__ */ M(
|
|
2488
|
-
He,
|
|
2489
|
-
Ue,
|
|
2490
|
-
Pe,
|
|
2491
|
-
!1,
|
|
2492
|
-
null,
|
|
2493
|
-
"bab5209a",
|
|
2494
|
-
null,
|
|
2495
|
-
null
|
|
2496
|
-
);
|
|
2497
|
-
const B = Fe.exports;
|
|
2498
|
-
B.install = function(r) {
|
|
2499
|
-
r.component(B.name, B);
|
|
2500
|
-
};
|
|
2501
|
-
export {
|
|
2502
|
-
ze as A,
|
|
2503
|
-
Y as B,
|
|
2504
|
-
bt as C,
|
|
2505
|
-
P as D,
|
|
2506
|
-
B as E,
|
|
2507
|
-
F,
|
|
2508
|
-
U as G,
|
|
2509
|
-
Ge as H,
|
|
2510
|
-
qe as I,
|
|
2511
|
-
_t as J,
|
|
2512
|
-
It as K,
|
|
2513
|
-
St as L,
|
|
2514
|
-
wt as M,
|
|
2515
|
-
$t as N,
|
|
2516
|
-
vt as O,
|
|
2517
|
-
mt as P,
|
|
2518
|
-
yt as Q,
|
|
2519
|
-
ct as R,
|
|
2520
|
-
kt as S,
|
|
2521
|
-
Q as T,
|
|
2522
|
-
it as U,
|
|
2523
|
-
lt as V,
|
|
2524
|
-
ut as W,
|
|
2525
|
-
ne as X,
|
|
2526
|
-
Qe as a,
|
|
2527
|
-
At as b,
|
|
2528
|
-
xt as c,
|
|
2529
|
-
ft as d,
|
|
2530
|
-
ht as e,
|
|
2531
|
-
gt as f,
|
|
2532
|
-
Ze as g,
|
|
2533
|
-
ee as h,
|
|
2534
|
-
et as i,
|
|
2535
|
-
dt as j,
|
|
2536
|
-
Ct as k,
|
|
2537
|
-
at as l,
|
|
2538
|
-
st as m,
|
|
2539
|
-
rt as n,
|
|
2540
|
-
tt as o,
|
|
2541
|
-
pt as p,
|
|
2542
|
-
K as q,
|
|
2543
|
-
Ke as r,
|
|
2544
|
-
ot as s,
|
|
2545
|
-
Je as t,
|
|
2546
|
-
nt as u,
|
|
2547
|
-
Ye as v,
|
|
2548
|
-
Ve as w,
|
|
2549
|
-
Ne as x,
|
|
2550
|
-
je as y,
|
|
2551
|
-
De as z
|
|
2552
|
-
};
|