gds-plus-design-vue 1.2.63 → 1.2.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{addPermission.9fc97a47.mjs → addPermission.179a09f4.mjs} +127 -105
- package/lib/addPermission.c72ebbe0.js +1 -0
- package/lib/{approvalModel.51d07afe.mjs → approvalModel.7b550187.mjs} +7 -7
- package/lib/approvalModel.7cfcac3c.js +1 -0
- package/lib/attribute.3fed1dd9.js +1 -0
- package/lib/attribute.e9a8faa1.mjs +367 -0
- package/lib/businessRules.cf106f09.js +1 -0
- package/lib/{businessRules.db6ba874.mjs → businessRules.d7d35011.mjs} +191 -190
- package/lib/buttonRule.2afe380d.mjs +396 -0
- package/lib/buttonRule.737e8e3f.js +1 -0
- package/lib/chartDisplayRules.370065e8.mjs +288 -0
- package/lib/chartDisplayRules.c9162f81.js +1 -0
- package/lib/components.chartbi.3bbac955.js +8 -0
- package/lib/components.chartbi.571c5ff5.mjs +1813 -0
- package/lib/{components.coloreditor.044983d2.mjs → components.coloreditor.06cf0433.mjs} +2 -2
- package/lib/{components.coloreditor.779a9419.js → components.coloreditor.f81d322a.js} +1 -1
- package/lib/{components.dataassign.56632583.mjs → components.dataassign.21d3938b.mjs} +3 -3
- package/lib/{components.dataassign.1853ed5c.js → components.dataassign.565d22c0.js} +1 -1
- package/lib/{components.echarts.10d3ffe2.mjs → components.echarts.490abdfa.mjs} +416 -399
- package/lib/components.echarts.fe84f881.js +4 -0
- package/lib/{components.exception.3cc33e29.js → components.exception.374f2ad9.js} +1 -1
- package/lib/{components.exception.cc2f4ca3.mjs → components.exception.ee1c4f83.mjs} +1 -1
- package/lib/{components.form.91d5ed3e.js → components.form.5533a8c3.js} +19 -19
- package/lib/{components.form.3344c817.mjs → components.form.db8af727.mjs} +1118 -1090
- package/lib/{components.globalheader.07a90c4b.js → components.globalheader.2eb787a4.js} +1 -1
- package/lib/{components.globalheader.43fafa8c.mjs → components.globalheader.b3b35343.mjs} +3 -3
- package/lib/{components.iconselector.8caabeaa.mjs → components.iconselector.8940b1a9.mjs} +7 -3
- package/lib/components.iconselector.f5a58033.js +1 -0
- package/lib/{components.imgpreview.86bf7971.js → components.imgpreview.d97cf25c.js} +1 -1
- package/lib/{components.imgpreview.57290b54.mjs → components.imgpreview.f05b3e06.mjs} +4 -4
- package/lib/{components.lunccalendar.76159d2e.js → components.lunccalendar.18f84642.js} +1 -1
- package/lib/{components.lunccalendar.f6765c94.mjs → components.lunccalendar.2a097955.mjs} +1 -1
- package/lib/components.middleware.43b9b264.js +1 -0
- package/lib/{components.middleware.457b1182.mjs → components.middleware.de012955.mjs} +5 -4
- package/lib/{components.modaltitle.ae92f96c.mjs → components.modaltitle.5060623f.mjs} +1 -1
- package/lib/{components.modaltitle.e0b34fcb.js → components.modaltitle.957cab33.js} +1 -1
- package/lib/{components.multitab.8441aa6b.mjs → components.multitab.5eb6edff.mjs} +1 -1
- package/lib/{components.multitab.82fd0544.js → components.multitab.80eeb3ae.js} +1 -1
- package/lib/{components.selecttree.d710a362.js → components.selecttree.2fe70d88.js} +1 -1
- package/lib/{components.selecttree.85d940a9.mjs → components.selecttree.756c4d22.mjs} +1 -1
- package/lib/{components.settingdrawer.a6693034.mjs → components.settingdrawer.29dbc31e.mjs} +21 -21
- package/lib/{components.settingdrawer.779f6715.js → components.settingdrawer.8c12650b.js} +1 -1
- package/lib/{components.sidemenu.725677e3.mjs → components.sidemenu.0673fe0a.mjs} +2 -2
- package/lib/{components.sidemenu.80e46c2d.js → components.sidemenu.240dfde7.js} +1 -1
- package/lib/components.sidenavmenu.b1330d69.js +1 -0
- package/lib/{components.sidenavmenu.23b8edce.mjs → components.sidenavmenu.fa81ff82.mjs} +448 -632
- package/lib/{components.statuschange.ed1218a4.js → components.statuschange.858b72e8.js} +1 -1
- package/lib/{components.statuschange.15938660.mjs → components.statuschange.fae4adba.mjs} +3 -3
- package/lib/{components.table.17c02054.js → components.table.1e338902.js} +3 -3
- package/lib/{components.table.e3e5e3bc.mjs → components.table.9ed77207.mjs} +331 -316
- package/lib/components.tableumy.1d804d70.js +1 -0
- package/lib/{components.tableumy.2f5dfa12.mjs → components.tableumy.3e1c9a5b.mjs} +7 -4
- package/lib/{components.tablevirtual.ba03746e.mjs → components.tablevirtual.66890b2c.mjs} +7 -4
- package/lib/components.tablevirtual.8e21a6e7.js +1 -0
- package/lib/{components.teamsharing.fb4351ec.mjs → components.teamsharing.3a17ddc0.mjs} +3 -3
- package/lib/{components.teamsharing.05503821.js → components.teamsharing.89e668fd.js} +1 -1
- package/lib/{components.tooltip.a05d8dd1.js → components.tooltip.0ea7e2b1.js} +1 -1
- package/lib/{components.tooltip.950dc77b.mjs → components.tooltip.376d95fe.mjs} +1 -1
- package/lib/{components.uploadfile.10f6cb2a.mjs → components.uploadfile.0a5a1608.mjs} +2 -2
- package/lib/{components.uploadfile.5a9b6cc1.js → components.uploadfile.8e0e702c.js} +1 -1
- package/lib/{components.uploadimg.cce7452a.js → components.uploadimg.bc160e00.js} +1 -1
- package/lib/{components.uploadimg.f4fe4e77.mjs → components.uploadimg.decb0360.mjs} +2 -2
- package/lib/{components.verificationcode.d1946db4.js → components.verificationcode.140533c7.js} +1 -1
- package/lib/{components.verificationcode.afb9aa1a.mjs → components.verificationcode.7091b10b.mjs} +1 -1
- package/lib/components.viewformdetails.940addba.js +1 -0
- package/lib/{components.viewformdetails.f362d69e.mjs → components.viewformdetails.d241c652.mjs} +94 -61
- package/lib/components.viewloading.1e9f4b3c.js +1 -0
- package/lib/{components.viewloading.ea40b244.mjs → components.viewloading.aae3aab4.mjs} +54 -51
- package/lib/{components.watermark.1ffc66e0.mjs → components.watermark.2ec3260c.mjs} +1 -1
- package/lib/{components.watermark.da3d7220.js → components.watermark.d9ec8130.js} +1 -1
- package/lib/{components.xlsxexport.f5ace2cd.js → components.xlsxexport.0d1553b1.js} +1 -1
- package/lib/{components.xlsxexport.d98572f8.mjs → components.xlsxexport.c33f83ca.mjs} +4 -4
- package/lib/{components.xlsximport.cffa88fe.mjs → components.xlsximport.81df7841.mjs} +541 -532
- package/lib/components.xlsximport.8c209857.js +1 -0
- package/lib/copy.8db86d9f.mjs +572 -0
- package/lib/copy.a8753f38.js +1 -0
- package/lib/createFile.04a6b293.js +1 -0
- package/lib/createFile.4cac1673.mjs +439 -0
- package/lib/createSubfolders.e105fa86.js +1 -0
- package/lib/{createSubfolders.d35b97e9.mjs → createSubfolders.eac5ccae.mjs} +7 -7
- package/lib/{dialogLayout.c4bc3b55.mjs → dialogLayout.bf435838.mjs} +2 -2
- package/lib/{dialogLayout.08823bb7.js → dialogLayout.f0779aed.js} +1 -1
- package/lib/drawerContainer.6ab3df46.mjs +163 -0
- package/lib/drawerContainer.8f9df583.js +1 -0
- package/lib/{drawerLayout.36cf4d05.js → drawerLayout.b6c7c3c6.js} +1 -1
- package/lib/{drawerLayout.fb60950f.mjs → drawerLayout.e3c0164d.mjs} +2 -2
- package/lib/editForm.0f3fd3b0.js +1 -0
- package/lib/editForm.aef93ed0.mjs +434 -0
- package/lib/extendedAttributes.ea93dbaa.mjs +293 -0
- package/lib/extendedAttributes.ef3ead02.js +1 -0
- package/lib/fileSearch.43465e1c.js +1 -0
- package/lib/{fileSearch.86c356fe.mjs → fileSearch.5c8a883d.mjs} +140 -115
- package/lib/{flow.designer.6da03949.mjs → flow.designer.81c29f62.mjs} +3184 -3197
- package/lib/flow.designer.ffd0aa8b.js +1 -0
- package/lib/flow.list.4c05f2f0.js +1 -0
- package/lib/{flow.list.03694808.mjs → flow.list.ab420927.mjs} +234 -232
- package/lib/form.build.724d3357.js +1 -0
- package/lib/{form.build.b768d613.mjs → form.build.d04773f0.mjs} +22 -14
- package/lib/form.designer.build.c82cb559.mjs +2529 -0
- package/lib/form.designer.build.dac501fa.js +1 -0
- package/lib/formFiled.4b5062d7.js +1 -0
- package/lib/{formFiled.fe7d9df3.mjs → formFiled.c949a27f.mjs} +15 -13
- package/lib/gd-initial.js +1 -1
- package/lib/gd-initial.mjs +231 -207
- package/lib/{http.appmanage.4554a629.mjs → http.appmanage.e389782d.mjs} +3 -3
- package/lib/{http.codegeneratemanage.2f925b10.mjs → http.codegeneratemanage.b123bab3.mjs} +19 -11
- package/lib/{http.codegeneratemanage.aecadd5d.js → http.codegeneratemanage.e3db2f09.js} +1 -1
- package/lib/{http.dictdatamanage.4baf16c0.mjs → http.dictdatamanage.2583b5ae.mjs} +4 -4
- package/lib/{http.dictmanage.77c69971.mjs → http.dictmanage.d8fe18dc.mjs} +4 -4
- package/lib/{http.duplicatechecking.31964ce7.mjs → http.duplicatechecking.9b79ce21.mjs} +3 -3
- package/lib/http.filedocument.6fdfc693.js +1 -0
- package/lib/http.filedocument.8fa3fe2d.mjs +293 -0
- package/lib/{http.main.40657f51.mjs → http.main.aefea27d.mjs} +17 -17
- package/lib/{http.menumanage.3240ba0d.mjs → http.menumanage.3060f4c7.mjs} +5 -5
- package/lib/{http.message.5004bf60.mjs → http.message.ceb0a1c6.mjs} +19 -19
- package/lib/{http.noticemanage.e03bd5f3.mjs → http.noticemanage.2cdb23b8.mjs} +7 -7
- package/lib/{http.orgmanage.84e43edb.mjs → http.orgmanage.0b1df8d5.mjs} +2 -2
- package/lib/{http.pluginmanage.6bc6197f.mjs → http.pluginmanage.54720675.mjs} +7 -7
- package/lib/{http.promptmanagement.c7912f6c.mjs → http.promptmanagement.dad4c6a7.mjs} +3 -3
- package/lib/http.rolemanage.4d1101dd.js +1 -0
- package/lib/{http.rolemanage.dbf3fda1.mjs → http.rolemanage.da5c40e9.mjs} +51 -19
- package/lib/{http.solution.175d36c8.mjs → http.solution.b10d9197.mjs} +4 -4
- package/lib/{http.sumberrules.608a06d6.mjs → http.sumberrules.176d3d06.mjs} +4 -4
- package/lib/{http.sysapps.e294ceaf.mjs → http.sysapps.932ba43b.mjs} +4 -4
- package/lib/{http.tabledevelopment.1d370398.mjs → http.tabledevelopment.3dcb3e97.mjs} +40 -40
- package/lib/{http.team.c8487c0b.mjs → http.team.a9c609d5.mjs} +11 -11
- package/lib/{http.timersmanage.01dbc1a2.mjs → http.timersmanage.c79afb66.mjs} +18 -18
- package/lib/{http.translationmanage.a4640c9a.mjs → http.translationmanage.f8694b51.mjs} +11 -11
- package/lib/{http.useraffiliation.840741ed.mjs → http.useraffiliation.f2a29f92.mjs} +10 -10
- package/lib/{http.usermanage.3e5eff33.mjs → http.usermanage.f5491144.mjs} +16 -16
- package/lib/{http.webresource.5158b431.mjs → http.webresource.1a1a768f.mjs} +4 -4
- package/lib/index.9deaa991.mjs +25906 -0
- package/lib/index.d95c407c.js +8 -0
- package/lib/layoutBlocks.26e1b57b.js +1 -0
- package/lib/layoutBlocks.31454610.mjs +413 -0
- package/lib/layoutItem.c1c836a1.js +1 -0
- package/lib/layoutItem.cf18143e.mjs +71 -0
- package/lib/{layouts.a6a36612.js → layouts.2d06f3e9.js} +2 -2
- package/lib/{layouts.051a0bba.mjs → layouts.3b383d04.mjs} +19 -22
- package/lib/main.09d48801.js +1 -0
- package/lib/main.28b7c398.js +1 -0
- package/lib/main.29e204f9.mjs +166 -0
- package/lib/main.33443996.mjs +231 -0
- package/lib/main.357c50d2.js +1 -0
- package/lib/{main.7f44e3bf.mjs → main.3e886f21.mjs} +40 -50
- package/lib/{main.c1df94d8.mjs → main.419a7b42.mjs} +2 -2
- package/lib/main.4a38d5f8.js +1 -0
- package/lib/{main.70357352.mjs → main.60329866.mjs} +6 -6
- package/lib/{main.ad1e8d4d.js → main.60c2a1a2.js} +1 -1
- package/lib/main.61c9e5c6.mjs +537 -0
- package/lib/main.643d21a0.mjs +552 -0
- package/lib/main.64ddb5f6.mjs +189 -0
- package/lib/main.728eaf53.js +1 -0
- package/lib/{main.8a2a590d.js → main.892caa37.js} +1 -1
- package/lib/main.aea9b6a8.mjs +323 -0
- package/lib/main.b7a5a02b.js +1 -0
- package/lib/main.c71e5b11.js +1 -0
- package/lib/main.edc0b23b.js +1 -0
- package/lib/{main.b0e5e1b0.mjs → main.f520fcf5.mjs} +2 -2
- package/lib/manage.101f1aa9.js +1 -0
- package/lib/{manage.a1df9b88.mjs → manage.f4000654.mjs} +162 -140
- package/lib/messages.fieldconfiguration.0d98a290.mjs +1097 -0
- package/lib/messages.fieldconfiguration.ad4d11cf.js +1 -0
- package/lib/messages.messagetemplate.32273e00.js +7 -0
- package/lib/messages.messagetemplate.7adbbc58.mjs +1319 -0
- package/lib/messages.sendplan.7d0097c2.mjs +1054 -0
- package/lib/messages.sendplan.fbac188d.js +1 -0
- package/lib/messages.sendrecord.ef80d44a.js +2 -0
- package/lib/messages.sendrecord.f0d2fd54.mjs +651 -0
- package/lib/messages.templatelibrary.ec512390.js +2 -0
- package/lib/messages.templatelibrary.ff151513.mjs +808 -0
- package/lib/mobile.designer.componentstree.03f61105.js +1 -0
- package/lib/mobile.designer.componentstree.4a1442dc.mjs +2064 -0
- package/lib/mobile.designer.menutree.0a2f7911.mjs +1036 -0
- package/lib/mobile.designer.menutree.97bb4046.js +1 -0
- package/lib/moveFile.335ebc8d.js +1 -0
- package/lib/moveFile.d71c0824.mjs +276 -0
- package/lib/{page.build.685c1e15.mjs → page.build.376104d5.mjs} +607 -601
- package/lib/{page.build.846096e6.js → page.build.37b26617.js} +3 -3
- package/lib/page.designer.componentstree.0ffc933d.js +1 -0
- package/lib/page.designer.componentstree.b0ecddd8.mjs +2958 -0
- package/lib/page.designer.fieldfiltering.1ecd65a3.mjs +430 -0
- package/lib/page.designer.fieldfiltering.7e913256.js +1 -0
- package/lib/page.designer.menutree.2c1846bc.mjs +5952 -0
- package/lib/page.designer.menutree.c49d9ee6.js +1 -0
- package/lib/page.designer.operation.6179b661.js +1 -0
- package/lib/page.designer.operation.80b1a5d1.mjs +44 -0
- package/lib/page.designer.page.09402332.js +1 -0
- package/lib/page.designer.page.6d8232c7.mjs +10638 -0
- package/lib/personal.echarts.414b7e3d.mjs +268 -0
- package/lib/personal.echarts.b7ee86f4.js +1 -0
- package/lib/result.0c089066.mjs +639 -0
- package/lib/result.9282a717.js +1 -0
- package/lib/router.config.68077a12.js +1 -0
- package/lib/router.config.86225b11.mjs +1424 -0
- package/lib/solution.application.d459e382.js +1 -0
- package/lib/solution.application.e0d58df1.mjs +548 -0
- package/lib/solution.applicationmenu.71ef6b8e.mjs +508 -0
- package/lib/solution.applicationmenu.ae295083.js +1 -0
- package/lib/solution.approvalflow.436b3502.js +1 -0
- package/lib/solution.approvalflow.bef7fbdd.mjs +436 -0
- package/lib/solution.dict.acbe9c55.js +1 -0
- package/lib/solution.dict.ef98b194.mjs +769 -0
- package/lib/solution.menu.5c17348f.mjs +432 -0
- package/lib/solution.menu.cca5e1f9.js +1 -0
- package/lib/solution.plugin.90f8dcc1.mjs +347 -0
- package/lib/solution.plugin.f9a8063f.js +1 -0
- package/lib/solution.processflow.2692dac6.js +1 -0
- package/lib/solution.processflow.c1544b05.mjs +392 -0
- package/lib/solution.role.b1ab40dd.mjs +456 -0
- package/lib/solution.role.b28c4dbe.js +1 -0
- package/lib/solution.webresources.0b51beba.mjs +379 -0
- package/lib/solution.webresources.6961cc68.js +1 -0
- package/lib/solution.workflow.11e49e25.js +1 -0
- package/lib/solution.workflow.c48545d1.mjs +395 -0
- package/lib/{store.config.fff8a5a1.mjs → store.config.03dd7b19.mjs} +22 -17
- package/lib/store.config.556bd56b.js +1 -0
- package/lib/style.css +3 -3
- package/lib/{system.account.014f3e0b.mjs → system.account.1cadbf03.mjs} +877 -881
- package/lib/{system.account.0d4f1fdc.js → system.account.5cc9fe8d.js} +7 -7
- package/lib/{system.config.210f516c.js → system.config.a0b94e40.js} +1 -1
- package/lib/{system.config.0899edb8.mjs → system.config.a9a1ee96.mjs} +1 -1
- package/lib/{system.datasource.82492d27.js → system.datasource.6c30ce25.js} +1 -1
- package/lib/{system.datasource.986768c9.mjs → system.datasource.c103a9c2.mjs} +1 -1
- package/lib/{system.dict.ef24873d.mjs → system.dict.0c229d1c.mjs} +264 -260
- package/lib/system.dict.6b000092.js +1 -0
- package/lib/system.document.f67c2994.mjs +667 -0
- package/lib/system.document.f8fd7af0.js +1 -0
- package/lib/{system.duplicatechecking.dcf9f86b.mjs → system.duplicatechecking.94c7ce17.mjs} +245 -265
- package/lib/system.duplicatechecking.f4cab147.js +1 -0
- package/lib/system.email.11ab6f31.js +1 -0
- package/lib/{system.email.252fd642.mjs → system.email.13823361.mjs} +10 -15
- package/lib/system.fieldsecurity.2ef2881c.js +1 -0
- package/lib/{system.fieldsecurity.0234d390.mjs → system.fieldsecurity.d35acd97.mjs} +370 -361
- package/lib/{system.file.73eeb731.mjs → system.file.30d3e7bc.mjs} +81 -149
- package/lib/system.file.b9f8320c.js +1 -0
- package/lib/{system.log.fc60f5e6.js → system.log.470d3efd.js} +1 -1
- package/lib/{system.log.b86cf57f.mjs → system.log.815840d8.mjs} +1 -1
- package/lib/{system.machine.0114001b.mjs → system.machine.1665954f.mjs} +1 -1
- package/lib/{system.machine.f1d95c86.js → system.machine.f8aff893.js} +1 -1
- package/lib/{system.notice.25ea8dca.mjs → system.notice.bef6c23c.mjs} +994 -992
- package/lib/system.notice.db26f308.js +1 -0
- package/lib/{system.noticereceived.369f634c.mjs → system.noticereceived.0d293a87.mjs} +10 -11
- package/lib/system.noticereceived.84b88b9a.js +1 -0
- package/lib/system.onlineuser.985621a6.js +1 -0
- package/lib/{system.onlineuser.2dc284b1.mjs → system.onlineuser.bccb1cd9.mjs} +37 -26
- package/lib/{system.org.c20fe6b2.mjs → system.org.92f4d7f1.mjs} +2 -2
- package/lib/{system.org.79ee5bd6.js → system.org.9f87a010.js} +1 -1
- package/lib/system.permissions.15e6b8b7.js +1 -0
- package/lib/system.permissions.be9238ee.mjs +972 -0
- package/lib/system.plugin.0bccfec4.js +1 -0
- package/lib/{system.plugin.45a0f530.mjs → system.plugin.af27d7ac.mjs} +500 -479
- package/lib/{system.pos.0a3d2a37.js → system.pos.61e58a92.js} +1 -1
- package/lib/{system.pos.7946a99c.mjs → system.pos.fe067063.mjs} +1 -1
- package/lib/{system.promptmanagement.d7250932.mjs → system.promptmanagement.0b9083c5.mjs} +246 -243
- package/lib/system.promptmanagement.e750de82.js +1 -0
- package/lib/{system.role.75da7929.mjs → system.role.67f62146.mjs} +511 -488
- package/lib/system.role.e86b60f1.js +1 -0
- package/lib/{system.sumberrules.4a1376a6.mjs → system.sumberrules.093d998e.mjs} +168 -165
- package/lib/system.sumberrules.810f7b55.js +1 -0
- package/lib/system.team.58ee701b.js +1 -0
- package/lib/{system.team.e6a9608e.mjs → system.team.8911fd95.mjs} +163 -161
- package/lib/system.teammembers.1880f962.js +1 -0
- package/lib/{system.teammembers.4a7e7339.mjs → system.teammembers.35564a00.mjs} +203 -198
- package/lib/{system.timers.eb0b6f3e.mjs → system.timers.4b2d509f.mjs} +2261 -2213
- package/lib/system.timers.9e956553.js +38 -0
- package/lib/system.translation.26b6bb39.js +1 -0
- package/lib/{system.translation.e34f0891.mjs → system.translation.60ec676c.mjs} +435 -429
- package/lib/system.user.134a3988.js +14 -0
- package/lib/{system.user.fa2d2997.mjs → system.user.9a02295e.mjs} +1082 -1026
- package/lib/{system.useraffiliation.518e341e.mjs → system.useraffiliation.96695aeb.mjs} +418 -412
- package/lib/system.useraffiliation.c2421c7e.js +1 -0
- package/lib/{system.webresource.469db736.mjs → system.webresource.016d0000.mjs} +179 -179
- package/lib/system.webresource.e92e8a8f.js +1 -0
- package/lib/{system.welcome.191e98f5.mjs → system.welcome.127b5dd4.mjs} +1 -1
- package/lib/{system.welcome.f64e49f8.js → system.welcome.ff0c85e2.js} +1 -1
- package/lib/table.definition..btnconfig.9847cac5.mjs +938 -0
- package/lib/table.definition..btnconfig.ce57ed41.js +1 -0
- package/lib/table.definition..echartsconfig.625bce88.mjs +2150 -0
- package/lib/table.definition..echartsconfig.d2b65881.js +1 -0
- package/lib/tableDescriptions.a4196776.mjs +80 -0
- package/lib/tableDescriptions.b9b0d7fa.js +1 -0
- package/lib/tcheckboxs.7ea99d35.js +1 -0
- package/lib/{tcheckboxs.090e75eb.mjs → tcheckboxs.999b7c2e.mjs} +2 -2
- package/lib/tcurrency.4afb9192.mjs +85 -0
- package/lib/tcurrency.8a2361f2.js +1 -0
- package/lib/{tdatepicker.8fe48b1b.mjs → tdatepicker.606214fa.mjs} +2 -2
- package/lib/{tdatepicker.b19e689d.js → tdatepicker.8e94a60c.js} +1 -1
- package/lib/{tdictSwitch.2e07dc8a.js → tdictSwitch.ccbdd153.js} +1 -1
- package/lib/{tdictSwitch.43d882c7.mjs → tdictSwitch.e016d4cf.mjs} +2 -2
- package/lib/{tfile.72925615.mjs → tfile.3f39223d.mjs} +2 -2
- package/lib/{tfile.1bc381f9.js → tfile.b3ebdc71.js} +1 -1
- package/lib/{tparticipants.ca5b556c.mjs → tparticipants.5fe27540.mjs} +2 -2
- package/lib/{tparticipants.77b876e2.js → tparticipants.78c8c175.js} +1 -1
- package/lib/{translation.mains.278e4ba6.mjs → translation.mains.2688be5b.mjs} +7 -7
- package/lib/{translation.mains.1ce7e110.js → translation.mains.a6f19343.js} +1 -1
- package/lib/utils.datepicker.js.0a5a699e.js +1 -0
- package/lib/utils.datepicker.js.5549a741.mjs +70 -0
- package/lib/utils.plug.js.9313aead.mjs +31 -0
- package/lib/utils.plug.js.f62510ce.js +1 -0
- package/lib/utils.util.js.333daba2.mjs +439 -0
- package/lib/utils.util.js.c0ba699b.js +1 -0
- package/lib/versionControl.46a7f31a.js +1 -0
- package/lib/versionControl.c53bfb5d.mjs +488 -0
- package/lib/versionEdit.4246d5db.js +1 -0
- package/lib/versionEdit.5a8292ec.mjs +452 -0
- package/lib/view.build.85732408.mjs +1578 -0
- package/lib/view.build.e43a2077.js +1 -0
- package/lib/viewList.868edcd7.js +1 -0
- package/lib/{viewList.5a25c4b6.mjs → viewList.978b72c5.mjs} +70 -92
- package/lib/viewTree.7497ff90.js +1 -0
- package/lib/viewTree.bde43a3b.mjs +409 -0
- package/locale/en_US.js +45 -6
- package/locale/id_ID.js +45 -6
- package/locale/vi_VN.js +45 -6
- package/locale/zh_CN.js +45 -5
- package/package.json +1 -1
- package/lib/addPermission.5036013c.js +0 -1
- package/lib/approvalModel.66f49dfb.js +0 -1
- package/lib/attribute.318f485c.js +0 -1
- package/lib/attribute.a06ac9e7.mjs +0 -237
- package/lib/buildItem.6a834227.js +0 -1
- package/lib/buildItem.fd8634ab.mjs +0 -205
- package/lib/businessRules.0e4dbb3a.js +0 -1
- package/lib/components.chartbi.b043dcdc.mjs +0 -1729
- package/lib/components.chartbi.e4680eaa.js +0 -7
- package/lib/components.echarts.e4d6b13e.js +0 -3
- package/lib/components.iconselector.d712170f.js +0 -1
- package/lib/components.middleware.3bad5748.js +0 -1
- package/lib/components.sidenavmenu.b9bb9304.js +0 -1
- package/lib/components.tableumy.9cf33062.js +0 -1
- package/lib/components.tablevirtual.38d4d3d8.js +0 -1
- package/lib/components.viewformdetails.1621bc18.js +0 -1
- package/lib/components.viewloading.807bbf68.js +0 -1
- package/lib/components.xlsximport.dbd826bb.js +0 -1
- package/lib/createFile.6b37ecf2.js +0 -1
- package/lib/createFile.82d6e415.mjs +0 -239
- package/lib/createSubfolders.47af629c.js +0 -1
- package/lib/drawerContainer.604a1271.mjs +0 -146
- package/lib/drawerContainer.6a9813ce.js +0 -1
- package/lib/fileSearch.65311ded.js +0 -1
- package/lib/flow.designer.1ba3a90d.js +0 -1
- package/lib/flow.list.4eb10554.js +0 -1
- package/lib/form.build.51bd261e.js +0 -1
- package/lib/form.designer.build.5a950455.js +0 -1
- package/lib/form.designer.build.e521c9c6.mjs +0 -5091
- package/lib/formFiled.464856f5.js +0 -1
- package/lib/http.filedocument.7c656b91.js +0 -1
- package/lib/http.filedocument.d456d26a.mjs +0 -156
- package/lib/http.rolemanage.03363732.js +0 -1
- package/lib/index.69ad4631.mjs +0 -44291
- package/lib/index.cca024bf.js +0 -8
- package/lib/layoutBlocks.1a9e3e05.mjs +0 -204
- package/lib/layoutBlocks.5e6be06f.js +0 -1
- package/lib/main.457f4326.js +0 -1
- package/lib/main.4fff412e.js +0 -1
- package/lib/main.77373aa4.mjs +0 -441
- package/lib/main.c3726602.js +0 -1
- package/lib/manage.5bb4f719.js +0 -1
- package/lib/messages.7b74736f.js +0 -9
- package/lib/messages.ad082386.mjs +0 -4889
- package/lib/moveFile.0ce803e0.js +0 -1
- package/lib/moveFile.8310ea94.mjs +0 -254
- package/lib/personal.echarts.b22fba61.mjs +0 -701
- package/lib/personal.echarts.f77bfc9e.js +0 -1
- package/lib/result.19351665.mjs +0 -526
- package/lib/result.e59c0e40.js +0 -1
- package/lib/router.config.2501ec51.js +0 -1
- package/lib/router.config.98a73167.mjs +0 -3172
- package/lib/solution.58580123.js +0 -1
- package/lib/solution.890ff164.mjs +0 -6942
- package/lib/store.config.3cb11578.js +0 -1
- package/lib/system.dict.f5708400.js +0 -1
- package/lib/system.duplicatechecking.8e3a37c0.js +0 -1
- package/lib/system.email.070ab2be.js +0 -1
- package/lib/system.fieldsecurity.3ef07bf7.js +0 -1
- package/lib/system.file.17a7f2ed.js +0 -1
- package/lib/system.notice.96c770a6.js +0 -1
- package/lib/system.noticereceived.dfe4ecc7.js +0 -1
- package/lib/system.onlineuser.e2e39bdc.js +0 -1
- package/lib/system.permissions.90f73461.js +0 -9
- package/lib/system.permissions.c3d34921.mjs +0 -213
- package/lib/system.plugin.b34a3b47.js +0 -1
- package/lib/system.promptmanagement.b5fa6b2d.js +0 -1
- package/lib/system.role.03be0982.js +0 -1
- package/lib/system.sumberrules.bb228fce.js +0 -1
- package/lib/system.team.32183b63.js +0 -1
- package/lib/system.teammembers.847d8ea7.js +0 -1
- package/lib/system.timers.28691ce4.js +0 -38
- package/lib/system.translation.6237f071.js +0 -1
- package/lib/system.user.fca3f2d6.js +0 -14
- package/lib/system.useraffiliation.7547b9c7.js +0 -1
- package/lib/system.webresource.12712b90.js +0 -1
- package/lib/tcheckboxs.99361be3.js +0 -1
- package/lib/tcurrency.0ddac2f8.mjs +0 -92
- package/lib/tcurrency.62763c6d.js +0 -1
- package/lib/utils.datepicker.js.2076c2a2.mjs +0 -61
- package/lib/utils.datepicker.js.8576e2fc.js +0 -1
- package/lib/utils.util.js.50d1ec9c.js +0 -1
- package/lib/utils.util.js.82cd8447.mjs +0 -424
- package/lib/view.build.b44fd7d7.js +0 -1
- package/lib/view.build.f2a9fcfb.mjs +0 -2727
- package/lib/viewList.be5a5ec5.js +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { m as W, n as H } from "./components.chartbi.
|
|
1
|
+
import { m as W, n as H } from "./components.chartbi.571c5ff5.mjs";
|
|
2
2
|
import j from "vue";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { s as V, a as G, g as q, b as Z, c as J, d as K, u as Q, B as ee } from "./http.usermanage.f5491144.mjs";
|
|
4
|
+
import { a as B, c as te } from "./http.filemanage.c0de21d6.mjs";
|
|
5
5
|
import { s as ie } from "./http.languagemanage.2ef16159.mjs";
|
|
6
6
|
import { s as ne } from "./http.currencymanage.c25bd2e6.mjs";
|
|
7
7
|
import { s as re } from "./http.timezonemanage.b9deffe3.mjs";
|
|
8
|
-
import { c as
|
|
9
|
-
import {
|
|
10
|
-
import { g as
|
|
8
|
+
import { c as z } from "./components.settingdrawer.29dbc31e.mjs";
|
|
9
|
+
import { c as oe } from "./http.appmanage.e389782d.mjs";
|
|
10
|
+
import { g as se, e as ae } from "./http.menumanage.3060f4c7.mjs";
|
|
11
11
|
import { e as ce } from "./http.loginmanage.05500c29.mjs";
|
|
12
12
|
const le = {
|
|
13
13
|
props: {
|
|
@@ -56,8 +56,8 @@ const le = {
|
|
|
56
56
|
return "overflow:auto;height:" + (this.screenHeight - 24 - 20 - 10 - 5) + "px;";
|
|
57
57
|
},
|
|
58
58
|
getTitle() {
|
|
59
|
-
let
|
|
60
|
-
return e === "\u57FA\u672C\u8BBE\u7F6E" ?
|
|
59
|
+
let s = "", e = this.$route.meta.title;
|
|
60
|
+
return e === "\u57FA\u672C\u8BBE\u7F6E" ? s = "basicSettings" : e === "\u5B89\u5168\u8BBE\u7F6E" ? s = "securitySetting" : e === "\u4E2A\u6027\u5316\u8BBE\u7F6E" ? s = "personalization" : e === "\u65B0\u6D88\u606F\u901A\u77E5" ? s = "notify" : e === "\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1" && (s = "bindenterpriseWechat"), s === "" ? e : this.$i18nt("gd.account." + s);
|
|
61
61
|
},
|
|
62
62
|
...W(["userInfo", "screenHeight", "primaryColor", "multiTab"])
|
|
63
63
|
},
|
|
@@ -65,24 +65,24 @@ const le = {
|
|
|
65
65
|
this.updateMenu();
|
|
66
66
|
},
|
|
67
67
|
methods: {
|
|
68
|
-
onOpenChange(
|
|
68
|
+
onOpenChange(s, e) {
|
|
69
69
|
this.openKeys = openKeys;
|
|
70
70
|
},
|
|
71
71
|
updateMenu() {
|
|
72
|
-
const
|
|
73
|
-
this.activeIndex =
|
|
72
|
+
const s = this.$route.matched.concat();
|
|
73
|
+
this.activeIndex = s.pop().path;
|
|
74
74
|
},
|
|
75
|
-
clickWx(
|
|
75
|
+
clickWx(s, e) {
|
|
76
76
|
const n = this.$route.matched.concat();
|
|
77
77
|
this.activeIndex = n.pop().path;
|
|
78
78
|
},
|
|
79
|
-
fadeColor(
|
|
80
|
-
let n = parseInt(
|
|
79
|
+
fadeColor(s, e) {
|
|
80
|
+
let n = parseInt(s.substring(1, 3), 16), a = parseInt(s.substring(3, 5), 16), u = parseInt(s.substring(5, 7), 16);
|
|
81
81
|
return `rgba(${n},${a},${u},${e})`;
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
watch: {
|
|
85
|
-
$route(
|
|
85
|
+
$route(s) {
|
|
86
86
|
this.updateMenu();
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -100,14 +100,542 @@ var he = function() {
|
|
|
100
100
|
null,
|
|
101
101
|
null
|
|
102
102
|
);
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
const P = de.exports;
|
|
104
|
+
P.install = function(s) {
|
|
105
|
+
s.component(P.name, P);
|
|
106
106
|
};
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
const pe = {
|
|
108
|
+
props: {
|
|
109
|
+
height: {
|
|
110
|
+
type: Number,
|
|
111
|
+
default: 100
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
name: "GdBaseSettings",
|
|
115
|
+
components: {
|
|
116
|
+
AvatarModal: () => Promise.resolve().then(() => Ae)
|
|
117
|
+
},
|
|
118
|
+
data() {
|
|
119
|
+
return {
|
|
120
|
+
preview: {},
|
|
121
|
+
sexData: [],
|
|
122
|
+
langData: [],
|
|
123
|
+
timezoneData: [],
|
|
124
|
+
currencyData: [],
|
|
125
|
+
option: {
|
|
126
|
+
img: null,
|
|
127
|
+
info: !0,
|
|
128
|
+
size: 1,
|
|
129
|
+
outputType: "jpeg",
|
|
130
|
+
canScale: !1,
|
|
131
|
+
autoCrop: !0,
|
|
132
|
+
autoCropWidth: 180,
|
|
133
|
+
autoCropHeight: 180,
|
|
134
|
+
fixedBox: !0,
|
|
135
|
+
fixed: !0,
|
|
136
|
+
fixedNumber: [1, 1],
|
|
137
|
+
birthdayString: ""
|
|
138
|
+
},
|
|
139
|
+
spinning: !1,
|
|
140
|
+
ruleForm: {},
|
|
141
|
+
rules: {}
|
|
142
|
+
};
|
|
143
|
+
},
|
|
144
|
+
computed: {
|
|
145
|
+
getHeight() {
|
|
146
|
+
return this.height;
|
|
147
|
+
},
|
|
148
|
+
...W(["userInfo", "locale", "language"])
|
|
149
|
+
},
|
|
150
|
+
mounted() {
|
|
151
|
+
this.initUserInfo();
|
|
152
|
+
},
|
|
153
|
+
methods: {
|
|
154
|
+
changeLanguage(s) {
|
|
155
|
+
let e = this.langData.filter((n) => n.id == s)[0];
|
|
156
|
+
this.$store.dispatch("Language", e.code);
|
|
157
|
+
},
|
|
158
|
+
initUserInfo() {
|
|
159
|
+
this.spinning = !0, setTimeout(() => {
|
|
160
|
+
this.languageChange(), this.timezoneChange(), this.currencyChange(), this.ruleForm = {
|
|
161
|
+
birthday: this.userInfo.birthday ? this.userInfo.birthday : void 0,
|
|
162
|
+
nickName: this.userInfo.nickname,
|
|
163
|
+
gender: this.userInfo.gender.toString(),
|
|
164
|
+
email: this.userInfo.email,
|
|
165
|
+
phone: this.userInfo.phone,
|
|
166
|
+
tel: this.userInfo.tel,
|
|
167
|
+
languageId: this.userInfo.languageid,
|
|
168
|
+
currencyId: this.userInfo.currencyid,
|
|
169
|
+
timezoneId: this.userInfo.timezoneid
|
|
170
|
+
}, this.birthdayString = this.userInfo.birthday, this.userInfo.avatar != null ? B({
|
|
171
|
+
id: this.userInfo.avatar
|
|
172
|
+
}).then((s) => {
|
|
173
|
+
this.option.img = window.URL.createObjectURL(new Blob([s]));
|
|
174
|
+
}).catch((s) => {
|
|
175
|
+
this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A" + s.message);
|
|
176
|
+
}) : this.option.img = "/avatar2.jpg", this.getSexData(), this.spinning = !1;
|
|
177
|
+
}, 100);
|
|
178
|
+
},
|
|
179
|
+
onChange(s, e) {
|
|
180
|
+
console.log(s), this.birthdayString = s;
|
|
181
|
+
},
|
|
182
|
+
currencyChange() {
|
|
183
|
+
ne().then((s) => {
|
|
184
|
+
s.success && (this.currencyData = s.data.rows, j.ls.set("currencyData", s.data.rows));
|
|
185
|
+
});
|
|
186
|
+
},
|
|
187
|
+
timezoneChange() {
|
|
188
|
+
re().then((s) => {
|
|
189
|
+
s.success && (this.timezoneData = s.data.rows);
|
|
190
|
+
});
|
|
191
|
+
},
|
|
192
|
+
languageChange() {
|
|
193
|
+
ie().then((s) => {
|
|
194
|
+
s.success && (this.langData = s.data.rows);
|
|
195
|
+
});
|
|
196
|
+
},
|
|
197
|
+
submitUserInfo() {
|
|
198
|
+
this.spinning || this.$refs.ruleForm.validate((s) => {
|
|
199
|
+
s && (this.spinning = !0, this.ruleForm.birthday = this.birthdayString, this.ruleForm.id = this.userInfo.id, V(this.ruleForm).then((e) => {
|
|
200
|
+
if (e.success) {
|
|
201
|
+
let n = this.langData.filter((a) => a.id == this.ruleForm.languageId)[0];
|
|
202
|
+
this.$store.dispatch("Language", n.code), this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), setTimeout(() => {
|
|
203
|
+
this.$store.dispatch("GetInfo").then(() => {
|
|
204
|
+
});
|
|
205
|
+
}, 500);
|
|
206
|
+
} else
|
|
207
|
+
this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message);
|
|
208
|
+
this.spinning = !1;
|
|
209
|
+
}));
|
|
210
|
+
});
|
|
211
|
+
},
|
|
212
|
+
getSexData() {
|
|
213
|
+
this.sexData = this.$options.filters.dictData("gender");
|
|
214
|
+
},
|
|
215
|
+
setavatar(s) {
|
|
216
|
+
B({
|
|
217
|
+
id: s
|
|
218
|
+
}).then((e) => {
|
|
219
|
+
this.option.img = window.URL.createObjectURL(new Blob([e]));
|
|
220
|
+
}).catch((e) => {
|
|
221
|
+
this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A" + e.message);
|
|
222
|
+
}), this.$store.dispatch("GetInfo").then(() => {
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
var fe = function() {
|
|
228
|
+
var e = this, n = e._self._c;
|
|
229
|
+
return n("div", { staticClass: "account-settings-info-view", staticStyle: { height: "100px" } }, [n("el-row", { attrs: { gutter: 16 } }, [n("el-col", { attrs: { md: 24, lg: 16 } }, [n("el-form", { ref: "ruleForm", attrs: { model: e.ruleForm, "label-width": "110px", "label-position": "top" }, nativeOn: { submit: function(a) {
|
|
230
|
+
a.preventDefault();
|
|
231
|
+
} } }, [n("el-form-item", { attrs: { label: e.$i18nt("gd.account.nickname", "\u6635\u79F0"), prop: "nickName" } }, [n("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.nickName, callback: function(a) {
|
|
232
|
+
e.$set(e.ruleForm, "nickName", a);
|
|
233
|
+
}, expression: "ruleForm.nickName" } })], 1), n("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") }] } }, [n("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) {
|
|
234
|
+
e.$set(e.ruleForm, "birthday", a);
|
|
235
|
+
}, expression: "ruleForm.birthday" } })], 1), n("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") }] } }, [n("el-radio-group", { model: { value: e.ruleForm.gender, callback: function(a) {
|
|
236
|
+
e.$set(e.ruleForm, "gender", a);
|
|
237
|
+
}, expression: "ruleForm.gender" } }, e._l(e.sexData, function(a, u) {
|
|
238
|
+
return n("el-radio", { key: u, attrs: { label: a.code } }, [e._v(" " + e._s(a.name) + " ")]);
|
|
239
|
+
}), 1)], 1), n("el-form-item", { attrs: { label: e.$i18nt("gd.account.phone", "\u624B\u673A\u53F7"), prop: "phone", rules: [
|
|
240
|
+
{ required: !0, message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") },
|
|
241
|
+
{
|
|
242
|
+
pattern: /^1[3-9]\d{9}$/,
|
|
243
|
+
message: this.$i18nt("gd.account.phoneInvalid", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801"),
|
|
244
|
+
trigger: "blur"
|
|
245
|
+
}
|
|
246
|
+
] } }, [n("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.phone, callback: function(a) {
|
|
247
|
+
e.$set(e.ruleForm, "phone", a);
|
|
248
|
+
}, expression: "ruleForm.phone" } })], 1), n("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.account.tel", "\u7535\u8BDD"), prop: "tel" } }, [n("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.tel, callback: function(a) {
|
|
249
|
+
e.$set(e.ruleForm, "tel", a);
|
|
250
|
+
}, expression: "ruleForm.tel" } })], 1), n("el-form-item", { attrs: { label: e.$i18nt("gd.account.email", "\u7535\u5B50\u90AE\u4EF6"), prop: "email", rules: [
|
|
251
|
+
{ required: !0, message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), trigger: "blur" },
|
|
252
|
+
{ type: "email", message: e.$i18nt("gd.account.emailTip", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!"), trigger: ["blur", "change"] }
|
|
253
|
+
] } }, [n("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.email, callback: function(a) {
|
|
254
|
+
e.$set(e.ruleForm, "email", a);
|
|
255
|
+
}, expression: "ruleForm.email" } })], 1), n("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") }] } }, [n("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) {
|
|
256
|
+
e.$set(e.ruleForm, "languageId", a);
|
|
257
|
+
}, expression: "ruleForm.languageId" } }, e._l(e.langData, function(a, u) {
|
|
258
|
+
return n("el-option", { key: u, attrs: { value: a.id, label: a.name } });
|
|
259
|
+
}), 1)], 1), n("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") }] } }, [n("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleForm.currencyId, callback: function(a) {
|
|
260
|
+
e.$set(e.ruleForm, "currencyId", a);
|
|
261
|
+
}, expression: "ruleForm.currencyId" } }, e._l(e.currencyData, function(a, u) {
|
|
262
|
+
return n("el-option", { key: u, attrs: { value: a.id, label: a.name } });
|
|
263
|
+
}), 1)], 1), n("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") }] } }, [n("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleForm.timezoneId, callback: function(a) {
|
|
264
|
+
e.$set(e.ruleForm, "timezoneId", a);
|
|
265
|
+
}, expression: "ruleForm.timezoneId" } }, e._l(e.timezoneData, function(a, u) {
|
|
266
|
+
return n("el-option", { key: u, attrs: { value: a.id, label: a.name } });
|
|
267
|
+
}), 1)], 1), n("el-form-item", [n("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), n("el-col", { style: { minHeight: "180px" }, attrs: { md: 24, lg: 8 } }, [n("div", { staticClass: "ant-upload-preview", on: { click: function(a) {
|
|
268
|
+
return e.$refs.modal.edit(e.userInfo.id);
|
|
269
|
+
} } }, [n("i", { staticClass: "el-icon-upload upload-icon" }), n("div", { staticClass: "mask" }, [n("i", { staticClass: "el-icon-plus" })]), n("img", { attrs: { src: e.option.img } })])])], 1), n("avatar-modal", { ref: "modal", on: { ok: e.setavatar } })], 1);
|
|
270
|
+
}, ge = [], me = /* @__PURE__ */ H(
|
|
271
|
+
pe,
|
|
272
|
+
fe,
|
|
273
|
+
ge,
|
|
274
|
+
!1,
|
|
275
|
+
null,
|
|
276
|
+
"981e4d97",
|
|
277
|
+
null,
|
|
278
|
+
null
|
|
279
|
+
);
|
|
280
|
+
const X = me.exports;
|
|
281
|
+
X.install = function(s) {
|
|
282
|
+
s.component(X.name, X);
|
|
283
|
+
};
|
|
284
|
+
const ve = {
|
|
285
|
+
name: "GdCustomSettings",
|
|
286
|
+
data() {
|
|
287
|
+
return {
|
|
288
|
+
colorList: z,
|
|
289
|
+
options: [],
|
|
290
|
+
homePage: ["uvgsxjpu", "ujhmcamph", "uwcscihbx"],
|
|
291
|
+
account: "",
|
|
292
|
+
echartsList: [],
|
|
293
|
+
value: 0,
|
|
294
|
+
primaryColors: this.primaryColor,
|
|
295
|
+
propOptions: [],
|
|
296
|
+
propOptionsOld: [],
|
|
297
|
+
list: null,
|
|
298
|
+
listOptions: [],
|
|
299
|
+
listOptionsOld: [],
|
|
300
|
+
presentText: []
|
|
301
|
+
};
|
|
302
|
+
},
|
|
303
|
+
computed: {
|
|
304
|
+
predefine() {
|
|
305
|
+
let s = [];
|
|
306
|
+
return z.forEach((e) => {
|
|
307
|
+
s.push(e.color);
|
|
308
|
+
}), s;
|
|
309
|
+
},
|
|
310
|
+
...W(["userInfo", "addRouters", "theme", "primaryColor", "echartsColor", "systemInfo"])
|
|
311
|
+
},
|
|
312
|
+
watch: {
|
|
313
|
+
primaryColor() {
|
|
314
|
+
this.primaryColors = this.primaryColor;
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
methods: {
|
|
318
|
+
okColor(s) {
|
|
319
|
+
this.$store.dispatch("EchartsColor", s), this.echartsList = [...s];
|
|
320
|
+
},
|
|
321
|
+
getColor() {
|
|
322
|
+
this.echartsList = [...this.echartsColor];
|
|
323
|
+
},
|
|
324
|
+
renew() {
|
|
325
|
+
let s = this, e = this.homePage, n = !1;
|
|
326
|
+
if (e.length == 0 && (n = !0), e.length > 1 && (n = !0), !n) {
|
|
327
|
+
s.$message.error(s.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
this.$confirm(
|
|
331
|
+
this.$i18nt("gd.https.configThemeContent", "\u662F\u5426\u66F4\u65B0\u4E2A\u4EBA\u9996\u9875\u914D\u7F6E?"),
|
|
332
|
+
this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"),
|
|
333
|
+
{
|
|
334
|
+
confirmButtonText: this.$i18nt("gd.https.saveOk", "\u786E\u5B9A\u4FDD\u5B58"),
|
|
335
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
336
|
+
showClose: !1,
|
|
337
|
+
confirmButtonLoading: !1,
|
|
338
|
+
cancelButtonLoading: !1,
|
|
339
|
+
closeOnClickModal: !1,
|
|
340
|
+
type: "warning",
|
|
341
|
+
confirmButtonClass: "el-button--danger",
|
|
342
|
+
customClass: "custom-alert",
|
|
343
|
+
callback: () => {
|
|
344
|
+
},
|
|
345
|
+
beforeClose: (a, u, d) => {
|
|
346
|
+
this.renewHand(a, u, d, this.homePage);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
);
|
|
350
|
+
},
|
|
351
|
+
renewHand(s, e, n, a) {
|
|
352
|
+
if (s !== "confirm") {
|
|
353
|
+
n();
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
let u = [], d = G({
|
|
357
|
+
configTheme: a.join(",")
|
|
358
|
+
}).then((x) => x);
|
|
359
|
+
u.push(d), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(u).then((x) => {
|
|
360
|
+
n(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
|
|
361
|
+
const $ = x.filter((S) => !S.success);
|
|
362
|
+
$.length === 0 ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$store.dispatch("GetInfo").then(() => {
|
|
363
|
+
})) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + $[0].message);
|
|
364
|
+
});
|
|
365
|
+
},
|
|
366
|
+
init() {
|
|
367
|
+
this.value = this.theme == "dark" ? 1 : 0, this.homePage = this.userInfo.configtheme ? this.userInfo.configtheme.split(",") : [], this.systemInfo.id ? this.systemInfo : window.$systemInfo;
|
|
368
|
+
},
|
|
369
|
+
lazyLoad(s, e) {
|
|
370
|
+
const { level: n, value: a } = s;
|
|
371
|
+
if (this.options.length === 0) {
|
|
372
|
+
this.geData().then(() => {
|
|
373
|
+
if (this.presentText.length < this.homePage.length) {
|
|
374
|
+
const u = this.options.filter((d) => d.code === this.homePage[0])[0];
|
|
375
|
+
this.presentText = u ? this.presentText.concat([u.label]) : this.presentText;
|
|
376
|
+
}
|
|
377
|
+
e(this.options);
|
|
378
|
+
});
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
this.getMenuListAll(a).then((u) => {
|
|
382
|
+
if (this.presentText.length < this.homePage.length && n === 2) {
|
|
383
|
+
this.presentText = this.presentText.concat([s.label]);
|
|
384
|
+
const x = s.children.filter(($) => $.value === this.homePage[n])[0];
|
|
385
|
+
this.presentText = x ? this.presentText.concat([x.label]) : this.presentText;
|
|
386
|
+
}
|
|
387
|
+
const d = this.$refs.cascader.presentText;
|
|
388
|
+
this.presentText.length === this.homePage.length && d === null && (this.$refs.cascader.presentText = this.presentText.join(" / ")), e(u);
|
|
389
|
+
});
|
|
390
|
+
},
|
|
391
|
+
geData() {
|
|
392
|
+
return oe({}).then((s) => {
|
|
393
|
+
if (s.success) {
|
|
394
|
+
let e = s.data.map((n) => {
|
|
395
|
+
let a = this.userInfo.apps.filter((u) => u.code == n.code)[0];
|
|
396
|
+
if (a != null)
|
|
397
|
+
return n.leaf = a == null, n.value = n.code, n.label = this.$i18nt(`Dynamics.${n.transkey}`, n.name), n.loading = !1, n;
|
|
398
|
+
});
|
|
399
|
+
return e = e.filter((n) => n !== void 0), this.options = [...e], this.listOptionsOld = JSON.stringify(e), new Promise((n) => {
|
|
400
|
+
n();
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
},
|
|
405
|
+
getMenuListAll(s) {
|
|
406
|
+
return Promise.all([this.getMenuList({ application: s }), this.sysMenuChange({ application: s })]).then((e) => {
|
|
407
|
+
let n = e[0].data, a = e[1].data;
|
|
408
|
+
return n.map((u, d) => {
|
|
409
|
+
let x = a.filter(($) => $.path == u.router);
|
|
410
|
+
return n[d].value = u.router, n[d].label = this.$i18nt(`Dynamics.${u.transkey}`, u.name), n[d].leaf = u.children.length == 0, n[d].disabled = x.length == 0, u.children.length == 0 ? n[d].children = null : u.children.map(($, S) => {
|
|
411
|
+
let L = a.filter((k) => k.path == $.router);
|
|
412
|
+
n[d].children[S].value = $.router, n[d].children[S].label = this.$i18nt(`Dynamics.${$.transkey}`, $.name), n[d].children[S].children = [], n[d].children[S].leaf = !0, n[d].children[S].disabled = L.length == 0;
|
|
413
|
+
}), u;
|
|
414
|
+
}), n.map((u) => {
|
|
415
|
+
u.children = u.children ? u.children.filter((d) => d.disabled == !1) : [];
|
|
416
|
+
}), n;
|
|
417
|
+
});
|
|
418
|
+
},
|
|
419
|
+
getMenuList(s) {
|
|
420
|
+
return se(s).then((e) => e);
|
|
421
|
+
},
|
|
422
|
+
sysMenuChange(s) {
|
|
423
|
+
return ae(s).then((e) => e);
|
|
424
|
+
},
|
|
425
|
+
onChangeCascader(s) {
|
|
426
|
+
const e = this.$refs.cascader.presentText;
|
|
427
|
+
this.presentText = e !== null ? e.split(" / ") : [];
|
|
428
|
+
},
|
|
429
|
+
onChange(s) {
|
|
430
|
+
s ? this.$store.dispatch("ToggleTheme", "dark") : this.$store.dispatch("ToggleTheme", "light");
|
|
431
|
+
},
|
|
432
|
+
async changeColor(s) {
|
|
433
|
+
const e = this, n = this.primaryColor;
|
|
434
|
+
if (typeof s != "string")
|
|
435
|
+
return;
|
|
436
|
+
const a = this.$message({
|
|
437
|
+
message: e.$i18nt("gd.theme.switchingTopics"),
|
|
438
|
+
duration: 0,
|
|
439
|
+
iconClass: "el-icon-loading"
|
|
440
|
+
}), u = this.getThemeCluster(s.replace("#", "")), d = this.getThemeCluster(n.replace("#", "")), x = (L, k) => () => {
|
|
441
|
+
const T = this.getThemeCluster(this.primaryColor.replace("#", "")), i = this.updateStyle(this[L], T, u);
|
|
442
|
+
let t = document.getElementById(k);
|
|
443
|
+
t || (t = document.createElement("style"), t.setAttribute("id", k), document.head.appendChild(t)), t.innerText = i;
|
|
444
|
+
};
|
|
445
|
+
this.chalk || await import("./element-theme-chalk.fbb1a631.mjs").then((L) => {
|
|
446
|
+
this.chalk = L.default;
|
|
447
|
+
}), x("chalk", "chalk-style")(), [].slice.call(document.querySelectorAll("style")).filter((L) => {
|
|
448
|
+
const k = L.innerText;
|
|
449
|
+
return new RegExp(n, "i").test(k) && !/Chalk Variables/.test(k);
|
|
450
|
+
}).forEach((L) => {
|
|
451
|
+
const { innerText: k } = L;
|
|
452
|
+
typeof k == "string" && (L.innerText = this.updateStyle(k, d, u));
|
|
453
|
+
}), this.$store.dispatch("ToggleColor", s), window.document.body.style = `--color:${s}`, this.$nextTick(() => {
|
|
454
|
+
setTimeout(() => {
|
|
455
|
+
a.close();
|
|
456
|
+
}, 200);
|
|
457
|
+
});
|
|
458
|
+
},
|
|
459
|
+
updateStyle(s, e, n) {
|
|
460
|
+
let a = s;
|
|
461
|
+
return e.forEach((u, d) => {
|
|
462
|
+
a = a.replace(new RegExp(u, "ig"), n[d]);
|
|
463
|
+
}), a;
|
|
464
|
+
},
|
|
465
|
+
getThemeCluster(s) {
|
|
466
|
+
const e = (u, d) => {
|
|
467
|
+
let x = parseInt(u.slice(0, 2), 16), $ = parseInt(u.slice(2, 4), 16), S = parseInt(u.slice(4, 6), 16);
|
|
468
|
+
return d === 0 ? [x, $, S].join(",") : (x += Math.round(d * (255 - x)), $ += Math.round(d * (255 - $)), S += Math.round(d * (255 - S)), x = x.toString(16), $ = $.toString(16), S = S.toString(16), `#${x}${$}${S}`);
|
|
469
|
+
}, n = (u, d) => {
|
|
470
|
+
let x = parseInt(u.slice(0, 2), 16), $ = parseInt(u.slice(2, 4), 16), S = parseInt(u.slice(4, 6), 16);
|
|
471
|
+
return x = Math.round((1 - d) * x), $ = Math.round((1 - d) * $), S = Math.round((1 - d) * S), x = x.toString(16), $ = $.toString(16), S = S.toString(16), `#${x}${$}${S}`;
|
|
472
|
+
}, a = [s];
|
|
473
|
+
for (let u = 0; u <= 9; u++)
|
|
474
|
+
a.push(e(s, Number((u / 10).toFixed(2))));
|
|
475
|
+
return a.push(n(s, 0.1)), a;
|
|
476
|
+
},
|
|
477
|
+
traverse(s, e) {
|
|
478
|
+
let n = null;
|
|
479
|
+
const a = (u) => (u = u.filter((d, x) => (d.children && d.children.length > 0 && a(d.children), d.value == s && (n = {
|
|
480
|
+
...d
|
|
481
|
+
}), !0)), u);
|
|
482
|
+
return a(this.propOptions), n;
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
mounted() {
|
|
486
|
+
this.getColor(), this.init(), this.primaryColor && (this.primaryColors = this.primaryColor);
|
|
487
|
+
}
|
|
488
|
+
};
|
|
489
|
+
var we = function() {
|
|
490
|
+
var e = this, n = e._self._c;
|
|
491
|
+
return n("div", { staticStyle: { "padding-top": "12px" } }, [n("el-row", { attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 24 } }, [n("div", [e._v(e._s(e.$i18nt("gd.settings.overallStyle", "\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E")))])])], 1), n("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 8 } }, [n("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")) + " ")])]), n("el-col", { attrs: { span: 16 } }, [n("div", { staticClass: "grid-content paw grid-flex" }, [n("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) {
|
|
492
|
+
e.value = a;
|
|
493
|
+
}, expression: "value" } })], 1)])], 1), n("el-divider"), n("el-row", { attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 24 } }, [n("div", [e._v(e._s(e.$i18nt("gd.settings.theme", "\u4E3B\u9898\u8272")))])])], 1), n("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 8 } }, [n("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")) + " ")])]), n("el-col", { attrs: { span: 16 } }, [n("div", { staticClass: "grid-content paw grid-flex" }, [n("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) {
|
|
494
|
+
e.primaryColors = a;
|
|
495
|
+
}, expression: "primaryColors" } })], 1)])], 1), n("el-divider"), n("el-row", { attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 24 } }, [n("div", [e._v(e._s(e.$i18nt("gd.settings.echartsColor", "\u56FE\u8868\u8272")))])])], 1), n("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 8 } }, [n("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")) + " ")])]), n("el-col", { attrs: { span: 16 } }, [n("div", { staticClass: "grid-flex" }, [e._l(e.echartsList, function(a, u) {
|
|
496
|
+
return [n("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 } }, [n("el-tag", { attrs: { color: a === 0 ? e.primaryColor : a } })], 1)];
|
|
497
|
+
}), n("span", { staticClass: "active-color", staticStyle: { cursor: "pointer" }, on: { click: function(a) {
|
|
498
|
+
return e.$refs.echartsTheme.open();
|
|
499
|
+
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.edit", "\u7F16\u8F91")) + " ")])], 2)])], 1), n("el-divider"), n("el-row", { attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 24 } }, [n("div", [e._v(e._s(e.$i18nt("gd.settings.homepage", "\u4E2A\u4EBA\u9996\u9875")))])])], 1), n("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 8 } }, [n("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")) + " ")])]), n("el-col", { attrs: { span: 16 } }, [n("div", { staticClass: "grid-flex" }, [n("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) {
|
|
500
|
+
e.homePage = a;
|
|
501
|
+
}, expression: "homePage" } }), n("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), n("el-divider"), n("gd-color-editor", { ref: "echartsTheme", on: { ok: e.okColor } })], 1);
|
|
502
|
+
}, xe = [], Ce = /* @__PURE__ */ H(
|
|
503
|
+
ve,
|
|
504
|
+
we,
|
|
505
|
+
xe,
|
|
506
|
+
!1,
|
|
507
|
+
null,
|
|
508
|
+
"b784faab",
|
|
509
|
+
null,
|
|
510
|
+
null
|
|
511
|
+
);
|
|
512
|
+
const F = Ce.exports;
|
|
513
|
+
F.install = function(s) {
|
|
514
|
+
s.component(F.name, F);
|
|
515
|
+
};
|
|
516
|
+
const be = {
|
|
517
|
+
name: "GdSecuritySettings",
|
|
518
|
+
components: {
|
|
519
|
+
UpdPwd: () => Promise.resolve().then(() => Me),
|
|
520
|
+
weChatBind: () => Promise.resolve().then(() => Be)
|
|
521
|
+
},
|
|
522
|
+
data() {
|
|
523
|
+
return {
|
|
524
|
+
isShow: !1,
|
|
525
|
+
num: 0,
|
|
526
|
+
wxUserId: null,
|
|
527
|
+
obj: {},
|
|
528
|
+
appId: "",
|
|
529
|
+
agentId: "",
|
|
530
|
+
redirectURL: "",
|
|
531
|
+
enterpriseNum: 0,
|
|
532
|
+
bindTitle: "\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1",
|
|
533
|
+
dicsTitle: ""
|
|
534
|
+
};
|
|
535
|
+
},
|
|
536
|
+
watch: {
|
|
537
|
+
language(s, e) {
|
|
538
|
+
this.changeLanguage();
|
|
539
|
+
},
|
|
540
|
+
userInfo(s, e) {
|
|
541
|
+
this.changUserInfo();
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
mounted() {
|
|
545
|
+
this.init();
|
|
546
|
+
},
|
|
547
|
+
computed: {
|
|
548
|
+
...W(["userInfo", "language"])
|
|
549
|
+
},
|
|
550
|
+
methods: {
|
|
551
|
+
updPwd() {
|
|
552
|
+
this.$refs.updPwd.open(this.userInfo.account, null, 1);
|
|
553
|
+
},
|
|
554
|
+
bind() {
|
|
555
|
+
this.$refs.weChatBind.open(this.obj, 1);
|
|
556
|
+
},
|
|
557
|
+
getConfigInfo() {
|
|
558
|
+
q({
|
|
559
|
+
code: "GDS_ENTERPRISE_WECHAT_LOGIN"
|
|
560
|
+
}).then((e) => {
|
|
561
|
+
this.enterpriseNum = e.data.value;
|
|
562
|
+
});
|
|
563
|
+
},
|
|
564
|
+
getConfigsBy() {
|
|
565
|
+
Z({
|
|
566
|
+
strCodes: "GDS_ENTERPRISE_WECHAT_CropID,GDS_ENTERPRISE_WECHAT_AgentId,GDS_ENTERPRISE_WECHAT_Redirect_URL"
|
|
567
|
+
}).then((e) => {
|
|
568
|
+
e.success && (this.obj = e);
|
|
569
|
+
});
|
|
570
|
+
},
|
|
571
|
+
getData() {
|
|
572
|
+
ce().then((s) => {
|
|
573
|
+
this.wxuserid = s.data.wxuserid;
|
|
574
|
+
});
|
|
575
|
+
},
|
|
576
|
+
changeLanguage() {
|
|
577
|
+
this.init();
|
|
578
|
+
},
|
|
579
|
+
changUserInfo() {
|
|
580
|
+
this.init();
|
|
581
|
+
},
|
|
582
|
+
init() {
|
|
583
|
+
this.wxuserid = this.userInfo.wxuserid, this.getConfigInfo(), this.getData(), this.getConfigsBy();
|
|
584
|
+
},
|
|
585
|
+
getWeChat(s, e) {
|
|
586
|
+
let n = this;
|
|
587
|
+
s.data.forEach((a, u) => {
|
|
588
|
+
a.code == "GDS_ENTERPRISE_WECHAT_CropID" && (n.appId = a.value), a.code == "GDS_ENTERPRISE_WECHAT_AgentId" && (n.agentId = a.value), a.code == "GDS_ENTERPRISE_WECHAT_Redirect_URL" && (n.redirectURL = a.value);
|
|
589
|
+
}), setTimeout(() => {
|
|
590
|
+
n.wwLogin = ww.createWWLoginPanel({
|
|
591
|
+
el: "#wx_qrcode",
|
|
592
|
+
params: {
|
|
593
|
+
login_type: "CorpApp",
|
|
594
|
+
appid: n.appId,
|
|
595
|
+
agentid: n.agentId,
|
|
596
|
+
redirect_uri: n.redirectURL,
|
|
597
|
+
state: "loginState",
|
|
598
|
+
redirect_type: "callback",
|
|
599
|
+
panel_size: "middle",
|
|
600
|
+
lang: e == "zh_CN" ? "zh" : "en"
|
|
601
|
+
},
|
|
602
|
+
onCheckWeComLogin({ isWeComLogin: a }) {
|
|
603
|
+
console.log(a);
|
|
604
|
+
},
|
|
605
|
+
onLoginSuccess({ code: a }) {
|
|
606
|
+
n.code = a, n.$refs.updPwd.open(n.userInfo.account, a, 2), console.log(a);
|
|
607
|
+
},
|
|
608
|
+
onLoginFail(a) {
|
|
609
|
+
}
|
|
610
|
+
});
|
|
611
|
+
}, 500);
|
|
612
|
+
},
|
|
613
|
+
bindCode(s) {
|
|
614
|
+
s == 1 || s == 0 ? this.getData() : s == -1 ? this.getConfigsBy() : s == 2 && this.getConfigsBy();
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
};
|
|
618
|
+
var ye = function() {
|
|
619
|
+
var e = this, n = e._self._c;
|
|
620
|
+
return n("div", { staticStyle: { "padding-top": "12px" } }, [n("el-row", { attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 24 } }, [n("div", { staticClass: "grid-content bg-purple" }, [e._v(" " + e._s(e.$i18nt("gd.account.passWord", "\u8D26\u6237\u5BC6\u7801")) + " ")])])], 1), n("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 8 } }, [n("div", { staticClass: "grid-content strength", staticStyle: { color: "rgba(0, 0, 0, 0.45)" } }, [e._v(" " + e._s(e.$i18nt("gd.account.strength", "\u5F53\u524D\u5BC6\u7801\u5F3A\u5EA6")) + ":" + e._s(e.$i18nt("gd.account.strong", "\u5F3A")) + " ")])]), n("el-col", { attrs: { span: 16 } }, [n("div", { staticClass: "grid-content paw grid-flex" }, [n("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), n("el-divider"), n("el-row", { attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 24 } }, [n("div", { staticClass: "grid-content bd", staticStyle: { color: "rgba(0, 0, 0, 0.45)" } }, [e._v(" " + e._s(e.$i18nt("gd.account.bindenterpriseWechat", "\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1")) + " ")])])], 1), n("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 8 } }, [n("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 == "" ? n("el-col", { attrs: { span: 16 } }, [n("div", { staticClass: "grid-content paw grid-flex" }, [n("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), n("upd-pwd", { ref: "updPwd", attrs: { isShow: e.isShow }, on: { bindCode: e.bindCode } }), n("weChatBind", { ref: "weChatBind", on: { bindCode: e.bindCode } })], 1);
|
|
621
|
+
}, _e = [], $e = /* @__PURE__ */ H(
|
|
622
|
+
be,
|
|
623
|
+
ye,
|
|
624
|
+
_e,
|
|
625
|
+
!1,
|
|
626
|
+
null,
|
|
627
|
+
"21459f3a",
|
|
628
|
+
null,
|
|
629
|
+
null
|
|
630
|
+
);
|
|
631
|
+
const Y = $e.exports;
|
|
632
|
+
Y.install = function(s) {
|
|
633
|
+
s.component(Y.name, Y);
|
|
634
|
+
};
|
|
635
|
+
var N = { exports: {} };
|
|
636
|
+
(function(s, e) {
|
|
109
637
|
(function(n, a) {
|
|
110
|
-
|
|
638
|
+
s.exports = a();
|
|
111
639
|
})(window, function() {
|
|
112
640
|
return function(n) {
|
|
113
641
|
var a = {};
|
|
@@ -126,10 +654,10 @@ var U = { exports: {} };
|
|
|
126
654
|
return d;
|
|
127
655
|
var $ = /* @__PURE__ */ Object.create(null);
|
|
128
656
|
if (u.r($), Object.defineProperty($, "default", { enumerable: !0, value: d }), 2 & x && typeof d != "string")
|
|
129
|
-
for (var
|
|
130
|
-
u.d($,
|
|
657
|
+
for (var S in d)
|
|
658
|
+
u.d($, S, function(L) {
|
|
131
659
|
return d[L];
|
|
132
|
-
}.bind(null,
|
|
660
|
+
}.bind(null, S));
|
|
133
661
|
return $;
|
|
134
662
|
}, u.n = function(d) {
|
|
135
663
|
var x = d && d.__esModule ? function() {
|
|
@@ -356,15 +884,15 @@ var U = { exports: {} };
|
|
|
356
884
|
var d = [];
|
|
357
885
|
return d.toString = function() {
|
|
358
886
|
return this.map(function(x) {
|
|
359
|
-
var $ = function(
|
|
360
|
-
var k =
|
|
887
|
+
var $ = function(S, L) {
|
|
888
|
+
var k = S[1] || "", T = S[3];
|
|
361
889
|
if (!T)
|
|
362
890
|
return k;
|
|
363
891
|
if (L && typeof btoa == "function") {
|
|
364
|
-
var i = function(
|
|
365
|
-
return "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(
|
|
366
|
-
}(T), t = T.sources.map(function(
|
|
367
|
-
return "/*# sourceURL=" + T.sourceRoot +
|
|
892
|
+
var i = function(o) {
|
|
893
|
+
return "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(o)))) + " */";
|
|
894
|
+
}(T), t = T.sources.map(function(o) {
|
|
895
|
+
return "/*# sourceURL=" + T.sourceRoot + o + " */";
|
|
368
896
|
});
|
|
369
897
|
return [k].concat(t).concat([i]).join(`
|
|
370
898
|
`);
|
|
@@ -376,13 +904,13 @@ var U = { exports: {} };
|
|
|
376
904
|
}).join("");
|
|
377
905
|
}, d.i = function(x, $) {
|
|
378
906
|
typeof x == "string" && (x = [[null, x, ""]]);
|
|
379
|
-
for (var
|
|
907
|
+
for (var S = {}, L = 0; L < this.length; L++) {
|
|
380
908
|
var k = this[L][0];
|
|
381
|
-
typeof k == "number" && (
|
|
909
|
+
typeof k == "number" && (S[k] = !0);
|
|
382
910
|
}
|
|
383
911
|
for (L = 0; L < x.length; L++) {
|
|
384
912
|
var T = x[L];
|
|
385
|
-
typeof T[0] == "number" &&
|
|
913
|
+
typeof T[0] == "number" && S[T[0]] || ($ && !T[2] ? T[2] = $ : $ && (T[2] = "(" + T[2] + ") and (" + $ + ")"), d.push(T));
|
|
386
914
|
}
|
|
387
915
|
}, d;
|
|
388
916
|
};
|
|
@@ -396,13 +924,13 @@ var U = { exports: {} };
|
|
|
396
924
|
return window && document && document.all && !window.atob;
|
|
397
925
|
}), $ = function(c) {
|
|
398
926
|
var h = {};
|
|
399
|
-
return function(p,
|
|
927
|
+
return function(p, f) {
|
|
400
928
|
if (typeof p == "function")
|
|
401
929
|
return p();
|
|
402
930
|
if (h[p] === void 0) {
|
|
403
931
|
var w = function(v, b) {
|
|
404
932
|
return b ? b.querySelector(v) : document.querySelector(v);
|
|
405
|
-
}.call(this, p,
|
|
933
|
+
}.call(this, p, f);
|
|
406
934
|
if (window.HTMLIFrameElement && w instanceof window.HTMLIFrameElement)
|
|
407
935
|
try {
|
|
408
936
|
w = w.contentDocument.head;
|
|
@@ -413,38 +941,38 @@ var U = { exports: {} };
|
|
|
413
941
|
}
|
|
414
942
|
return h[p];
|
|
415
943
|
};
|
|
416
|
-
}(),
|
|
944
|
+
}(), S = null, L = 0, k = [], T = u(5);
|
|
417
945
|
function i(c, h) {
|
|
418
946
|
for (var p = 0; p < c.length; p++) {
|
|
419
|
-
var
|
|
947
|
+
var f = c[p], w = d[f.id];
|
|
420
948
|
if (w) {
|
|
421
949
|
w.refs++;
|
|
422
950
|
for (var v = 0; v < w.parts.length; v++)
|
|
423
|
-
w.parts[v](
|
|
424
|
-
for (; v <
|
|
425
|
-
w.parts.push(m(
|
|
951
|
+
w.parts[v](f.parts[v]);
|
|
952
|
+
for (; v < f.parts.length; v++)
|
|
953
|
+
w.parts.push(m(f.parts[v], h));
|
|
426
954
|
} else {
|
|
427
955
|
var b = [];
|
|
428
|
-
for (v = 0; v <
|
|
429
|
-
b.push(m(
|
|
430
|
-
d[
|
|
956
|
+
for (v = 0; v < f.parts.length; v++)
|
|
957
|
+
b.push(m(f.parts[v], h));
|
|
958
|
+
d[f.id] = { id: f.id, refs: 1, parts: b };
|
|
431
959
|
}
|
|
432
960
|
}
|
|
433
961
|
}
|
|
434
962
|
function t(c, h) {
|
|
435
|
-
for (var p = [],
|
|
963
|
+
for (var p = [], f = {}, w = 0; w < c.length; w++) {
|
|
436
964
|
var v = c[w], b = h.base ? v[0] + h.base : v[0], _ = { css: v[1], media: v[2], sourceMap: v[3] };
|
|
437
|
-
|
|
965
|
+
f[b] ? f[b].parts.push(_) : p.push(f[b] = { id: b, parts: [_] });
|
|
438
966
|
}
|
|
439
967
|
return p;
|
|
440
968
|
}
|
|
441
|
-
function
|
|
969
|
+
function o(c, h) {
|
|
442
970
|
var p = $(c.insertInto);
|
|
443
971
|
if (!p)
|
|
444
972
|
throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
|
|
445
|
-
var
|
|
973
|
+
var f = k[k.length - 1];
|
|
446
974
|
if (c.insertAt === "top")
|
|
447
|
-
|
|
975
|
+
f ? f.nextSibling ? p.insertBefore(h, f.nextSibling) : p.appendChild(h) : p.insertBefore(h, p.firstChild), k.push(h);
|
|
448
976
|
else if (c.insertAt === "bottom")
|
|
449
977
|
p.appendChild(h);
|
|
450
978
|
else {
|
|
@@ -474,15 +1002,15 @@ var U = { exports: {} };
|
|
|
474
1002
|
}();
|
|
475
1003
|
p && (c.attrs.nonce = p);
|
|
476
1004
|
}
|
|
477
|
-
return
|
|
1005
|
+
return g(h, c.attrs), o(c, h), h;
|
|
478
1006
|
}
|
|
479
|
-
function
|
|
1007
|
+
function g(c, h) {
|
|
480
1008
|
Object.keys(h).forEach(function(p) {
|
|
481
1009
|
c.setAttribute(p, h[p]);
|
|
482
1010
|
});
|
|
483
1011
|
}
|
|
484
1012
|
function m(c, h) {
|
|
485
|
-
var p,
|
|
1013
|
+
var p, f, w, v;
|
|
486
1014
|
if (h.transform && c.css) {
|
|
487
1015
|
if (!(v = typeof h.transform == "function" ? h.transform(c.css) : h.transform.default(c.css)))
|
|
488
1016
|
return function() {
|
|
@@ -491,21 +1019,21 @@ var U = { exports: {} };
|
|
|
491
1019
|
}
|
|
492
1020
|
if (h.singleton) {
|
|
493
1021
|
var b = L++;
|
|
494
|
-
p =
|
|
1022
|
+
p = S || (S = l(h)), f = C.bind(null, p, b, !1), w = C.bind(null, p, b, !0);
|
|
495
1023
|
} else
|
|
496
1024
|
c.sourceMap && typeof URL == "function" && typeof URL.createObjectURL == "function" && typeof URL.revokeObjectURL == "function" && typeof Blob == "function" && typeof btoa == "function" ? (p = function(_) {
|
|
497
|
-
var
|
|
498
|
-
return _.attrs.type === void 0 && (_.attrs.type = "text/css"), _.attrs.rel = "stylesheet",
|
|
499
|
-
}(h),
|
|
500
|
-
var A = E.css, O = E.sourceMap, M =
|
|
501
|
-
(
|
|
1025
|
+
var I = document.createElement("link");
|
|
1026
|
+
return _.attrs.type === void 0 && (_.attrs.type = "text/css"), _.attrs.rel = "stylesheet", g(I, _.attrs), o(_, I), I;
|
|
1027
|
+
}(h), f = function(_, I, E) {
|
|
1028
|
+
var A = E.css, O = E.sourceMap, M = I.convertToAbsoluteUrls === void 0 && O;
|
|
1029
|
+
(I.convertToAbsoluteUrls || M) && (A = T(A)), O && (A += `
|
|
502
1030
|
/*# sourceMappingURL=data:application/json;base64,` + btoa(unescape(encodeURIComponent(JSON.stringify(O)))) + " */");
|
|
503
1031
|
var D = new Blob([A], { type: "text/css" }), R = _.href;
|
|
504
1032
|
_.href = URL.createObjectURL(D), R && URL.revokeObjectURL(R);
|
|
505
1033
|
}.bind(null, p, h), w = function() {
|
|
506
1034
|
r(p), p.href && URL.revokeObjectURL(p.href);
|
|
507
|
-
}) : (p = l(h),
|
|
508
|
-
var E =
|
|
1035
|
+
}) : (p = l(h), f = function(_, I) {
|
|
1036
|
+
var E = I.css, A = I.media;
|
|
509
1037
|
if (A && _.setAttribute("media", A), _.styleSheet)
|
|
510
1038
|
_.styleSheet.cssText = E;
|
|
511
1039
|
else {
|
|
@@ -516,11 +1044,11 @@ var U = { exports: {} };
|
|
|
516
1044
|
}.bind(null, p), w = function() {
|
|
517
1045
|
r(p);
|
|
518
1046
|
});
|
|
519
|
-
return
|
|
1047
|
+
return f(c), function(_) {
|
|
520
1048
|
if (_) {
|
|
521
1049
|
if (_.css === c.css && _.media === c.media && _.sourceMap === c.sourceMap)
|
|
522
1050
|
return;
|
|
523
|
-
|
|
1051
|
+
f(c = _);
|
|
524
1052
|
} else
|
|
525
1053
|
w();
|
|
526
1054
|
};
|
|
@@ -530,16 +1058,16 @@ var U = { exports: {} };
|
|
|
530
1058
|
throw new Error("The style-loader cannot be used in a non-browser environment");
|
|
531
1059
|
(h = h || {}).attrs = typeof h.attrs == "object" ? h.attrs : {}, h.singleton || typeof h.singleton == "boolean" || (h.singleton = x()), h.insertInto || (h.insertInto = "head"), h.insertAt || (h.insertAt = "bottom");
|
|
532
1060
|
var p = t(c, h);
|
|
533
|
-
return i(p, h), function(
|
|
1061
|
+
return i(p, h), function(f) {
|
|
534
1062
|
for (var w = [], v = 0; v < p.length; v++) {
|
|
535
1063
|
var b = p[v];
|
|
536
1064
|
(_ = d[b.id]).refs--, w.push(_);
|
|
537
1065
|
}
|
|
538
|
-
for (
|
|
1066
|
+
for (f && i(t(f, h), h), v = 0; v < w.length; v++) {
|
|
539
1067
|
var _;
|
|
540
1068
|
if ((_ = w[v]).refs === 0) {
|
|
541
|
-
for (var
|
|
542
|
-
_.parts[
|
|
1069
|
+
for (var I = 0; I < _.parts.length; I++)
|
|
1070
|
+
_.parts[I]();
|
|
543
1071
|
delete d[_.id];
|
|
544
1072
|
}
|
|
545
1073
|
}
|
|
@@ -552,8 +1080,8 @@ var U = { exports: {} };
|
|
|
552
1080
|
`);
|
|
553
1081
|
};
|
|
554
1082
|
}();
|
|
555
|
-
function C(c, h, p,
|
|
556
|
-
var w = p ? "" :
|
|
1083
|
+
function C(c, h, p, f) {
|
|
1084
|
+
var w = p ? "" : f.css;
|
|
557
1085
|
if (c.styleSheet)
|
|
558
1086
|
c.styleSheet.cssText = y(h, w);
|
|
559
1087
|
else {
|
|
@@ -569,64 +1097,64 @@ var U = { exports: {} };
|
|
|
569
1097
|
if (!u || typeof u != "string")
|
|
570
1098
|
return u;
|
|
571
1099
|
var x = d.protocol + "//" + d.host, $ = x + d.pathname.replace(/\/[^\/]*$/, "/");
|
|
572
|
-
return u.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(
|
|
1100
|
+
return u.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(S, L) {
|
|
573
1101
|
var k, T = L.trim().replace(/^"(.*)"$/, function(i, t) {
|
|
574
1102
|
return t;
|
|
575
1103
|
}).replace(/^'(.*)'$/, function(i, t) {
|
|
576
1104
|
return t;
|
|
577
1105
|
});
|
|
578
|
-
return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(T) ?
|
|
1106
|
+
return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(T) ? S : (k = T.indexOf("//") === 0 ? T : T.indexOf("/") === 0 ? x + T : $ + T.replace(/^\.\//, ""), "url(" + JSON.stringify(k) + ")");
|
|
579
1107
|
});
|
|
580
1108
|
};
|
|
581
1109
|
}, function(n, a, u) {
|
|
582
1110
|
u.r(a);
|
|
583
1111
|
var d = function() {
|
|
584
|
-
var i = this, t = i.$createElement,
|
|
585
|
-
return
|
|
1112
|
+
var i = this, t = i.$createElement, o = i._self._c || t;
|
|
1113
|
+
return o("div", { ref: "cropper", staticClass: "vue-cropper", on: { mouseover: i.scaleImg, mouseout: i.cancelScale } }, [i.imgs ? o("div", { staticClass: "cropper-box" }, [o("div", { directives: [{ name: "show", rawName: "v-show", value: !i.loading, expression: "!loading" }], staticClass: "cropper-box-canvas", style: { width: i.trueWidth + "px", height: i.trueHeight + "px", transform: "scale(" + i.scale + "," + i.scale + ") translate3d(" + i.x / i.scale + "px," + i.y / i.scale + "px,0)rotateZ(" + 90 * i.rotate + "deg)" } }, [o("img", { ref: "cropperImg", attrs: { src: i.imgs, alt: "cropper-img" } })])]) : i._e(), i._v(" "), o("div", { staticClass: "cropper-drag-box", class: { "cropper-move": i.move && !i.crop, "cropper-crop": i.crop, "cropper-modal": i.cropping }, on: { mousedown: i.startMove, touchstart: i.startMove } }), i._v(" "), o("div", { directives: [{ name: "show", rawName: "v-show", value: i.cropping, expression: "cropping" }], staticClass: "cropper-crop-box", style: { width: i.cropW + "px", height: i.cropH + "px", transform: "translate3d(" + i.cropOffsertX + "px," + i.cropOffsertY + "px,0)" } }, [o("span", { staticClass: "cropper-view-box" }, [o("img", { style: { width: i.trueWidth + "px", height: i.trueHeight + "px", transform: "scale(" + i.scale + "," + i.scale + ") translate3d(" + (i.x - i.cropOffsertX) / i.scale + "px," + (i.y - i.cropOffsertY) / i.scale + "px,0)rotateZ(" + 90 * i.rotate + "deg)" }, attrs: { src: i.imgs, alt: "cropper-img" } })]), i._v(" "), o("span", { staticClass: "cropper-face cropper-move", on: { mousedown: i.cropMove, touchstart: i.cropMove } }), i._v(" "), i.info ? o("span", { staticClass: "crop-info", style: { top: i.cropInfo.top } }, [i._v(i._s(this.cropInfo.width) + " \xD7 " + i._s(this.cropInfo.height))]) : i._e(), i._v(" "), i.fixedBox ? i._e() : o("span", [o("span", { staticClass: "crop-line line-w", on: { mousedown: function(r) {
|
|
586
1114
|
i.changeCropSize(r, !1, !0, 0, 1);
|
|
587
1115
|
}, touchstart: function(r) {
|
|
588
1116
|
i.changeCropSize(r, !1, !0, 0, 1);
|
|
589
|
-
} } }), i._v(" "),
|
|
1117
|
+
} } }), i._v(" "), o("span", { staticClass: "crop-line line-a", on: { mousedown: function(r) {
|
|
590
1118
|
i.changeCropSize(r, !0, !1, 1, 0);
|
|
591
1119
|
}, touchstart: function(r) {
|
|
592
1120
|
i.changeCropSize(r, !0, !1, 1, 0);
|
|
593
|
-
} } }), i._v(" "),
|
|
1121
|
+
} } }), i._v(" "), o("span", { staticClass: "crop-line line-s", on: { mousedown: function(r) {
|
|
594
1122
|
i.changeCropSize(r, !1, !0, 0, 2);
|
|
595
1123
|
}, touchstart: function(r) {
|
|
596
1124
|
i.changeCropSize(r, !1, !0, 0, 2);
|
|
597
|
-
} } }), i._v(" "),
|
|
1125
|
+
} } }), i._v(" "), o("span", { staticClass: "crop-line line-d", on: { mousedown: function(r) {
|
|
598
1126
|
i.changeCropSize(r, !0, !1, 2, 0);
|
|
599
1127
|
}, touchstart: function(r) {
|
|
600
1128
|
i.changeCropSize(r, !0, !1, 2, 0);
|
|
601
|
-
} } }), i._v(" "),
|
|
1129
|
+
} } }), i._v(" "), o("span", { staticClass: "crop-point point1", on: { mousedown: function(r) {
|
|
602
1130
|
i.changeCropSize(r, !0, !0, 1, 1);
|
|
603
1131
|
}, touchstart: function(r) {
|
|
604
1132
|
i.changeCropSize(r, !0, !0, 1, 1);
|
|
605
|
-
} } }), i._v(" "),
|
|
1133
|
+
} } }), i._v(" "), o("span", { staticClass: "crop-point point2", on: { mousedown: function(r) {
|
|
606
1134
|
i.changeCropSize(r, !1, !0, 0, 1);
|
|
607
1135
|
}, touchstart: function(r) {
|
|
608
1136
|
i.changeCropSize(r, !1, !0, 0, 1);
|
|
609
|
-
} } }), i._v(" "),
|
|
1137
|
+
} } }), i._v(" "), o("span", { staticClass: "crop-point point3", on: { mousedown: function(r) {
|
|
610
1138
|
i.changeCropSize(r, !0, !0, 2, 1);
|
|
611
1139
|
}, touchstart: function(r) {
|
|
612
1140
|
i.changeCropSize(r, !0, !0, 2, 1);
|
|
613
|
-
} } }), i._v(" "),
|
|
1141
|
+
} } }), i._v(" "), o("span", { staticClass: "crop-point point4", on: { mousedown: function(r) {
|
|
614
1142
|
i.changeCropSize(r, !0, !1, 1, 0);
|
|
615
1143
|
}, touchstart: function(r) {
|
|
616
1144
|
i.changeCropSize(r, !0, !1, 1, 0);
|
|
617
|
-
} } }), i._v(" "),
|
|
1145
|
+
} } }), i._v(" "), o("span", { staticClass: "crop-point point5", on: { mousedown: function(r) {
|
|
618
1146
|
i.changeCropSize(r, !0, !1, 2, 0);
|
|
619
1147
|
}, touchstart: function(r) {
|
|
620
1148
|
i.changeCropSize(r, !0, !1, 2, 0);
|
|
621
|
-
} } }), i._v(" "),
|
|
1149
|
+
} } }), i._v(" "), o("span", { staticClass: "crop-point point6", on: { mousedown: function(r) {
|
|
622
1150
|
i.changeCropSize(r, !0, !0, 1, 2);
|
|
623
1151
|
}, touchstart: function(r) {
|
|
624
1152
|
i.changeCropSize(r, !0, !0, 1, 2);
|
|
625
|
-
} } }), i._v(" "),
|
|
1153
|
+
} } }), i._v(" "), o("span", { staticClass: "crop-point point7", on: { mousedown: function(r) {
|
|
626
1154
|
i.changeCropSize(r, !1, !0, 0, 2);
|
|
627
1155
|
}, touchstart: function(r) {
|
|
628
1156
|
i.changeCropSize(r, !1, !0, 0, 2);
|
|
629
|
-
} } }), i._v(" "),
|
|
1157
|
+
} } }), i._v(" "), o("span", { staticClass: "crop-point point8", on: { mousedown: function(r) {
|
|
630
1158
|
i.changeCropSize(r, !0, !0, 2, 2);
|
|
631
1159
|
}, touchstart: function(r) {
|
|
632
1160
|
i.changeCropSize(r, !0, !0, 2, 2);
|
|
@@ -635,28 +1163,28 @@ var U = { exports: {} };
|
|
|
635
1163
|
d._withStripped = !0;
|
|
636
1164
|
var x = {};
|
|
637
1165
|
x.getData = function(i) {
|
|
638
|
-
return new Promise(function(t,
|
|
1166
|
+
return new Promise(function(t, o) {
|
|
639
1167
|
var r = {};
|
|
640
1168
|
(function(l) {
|
|
641
|
-
var
|
|
1169
|
+
var g = null;
|
|
642
1170
|
return new Promise(function(m, y) {
|
|
643
1171
|
if (l.src)
|
|
644
1172
|
if (/^data\:/i.test(l.src))
|
|
645
|
-
|
|
1173
|
+
g = function(h) {
|
|
646
1174
|
h = h.replace(/^data\:([^\;]+)\;base64,/gim, "");
|
|
647
|
-
for (var p = atob(h),
|
|
1175
|
+
for (var p = atob(h), f = p.length, w = new ArrayBuffer(f), v = new Uint8Array(w), b = 0; b < f; b++)
|
|
648
1176
|
v[b] = p.charCodeAt(b);
|
|
649
1177
|
return w;
|
|
650
|
-
}(l.src), m(
|
|
1178
|
+
}(l.src), m(g);
|
|
651
1179
|
else if (/^blob\:/i.test(l.src)) {
|
|
652
1180
|
var C = new FileReader();
|
|
653
1181
|
C.onload = function(h) {
|
|
654
|
-
|
|
1182
|
+
g = h.target.result, m(g);
|
|
655
1183
|
}, function(h, p) {
|
|
656
|
-
var
|
|
657
|
-
|
|
1184
|
+
var f = new XMLHttpRequest();
|
|
1185
|
+
f.open("GET", h, !0), f.responseType = "blob", f.onload = function(w) {
|
|
658
1186
|
this.status != 200 && this.status !== 0 || p(this.response);
|
|
659
|
-
},
|
|
1187
|
+
}, f.send();
|
|
660
1188
|
}(l.src, function(h) {
|
|
661
1189
|
C.readAsArrayBuffer(h);
|
|
662
1190
|
});
|
|
@@ -665,15 +1193,15 @@ var U = { exports: {} };
|
|
|
665
1193
|
c.onload = function() {
|
|
666
1194
|
if (this.status != 200 && this.status !== 0)
|
|
667
1195
|
throw "Could not load image";
|
|
668
|
-
|
|
1196
|
+
g = c.response, m(g), c = null;
|
|
669
1197
|
}, c.open("GET", l.src, !0), c.responseType = "arraybuffer", c.send(null);
|
|
670
1198
|
}
|
|
671
1199
|
else
|
|
672
1200
|
y("img error");
|
|
673
1201
|
});
|
|
674
1202
|
})(i).then(function(l) {
|
|
675
|
-
r.arrayBuffer = l, r.orientation = function(
|
|
676
|
-
var m, y, C, c, h, p,
|
|
1203
|
+
r.arrayBuffer = l, r.orientation = function(g) {
|
|
1204
|
+
var m, y, C, c, h, p, f, w, v, b = new DataView(g), _ = b.byteLength;
|
|
677
1205
|
if (b.getUint8(0) === 255 && b.getUint8(1) === 216)
|
|
678
1206
|
for (w = 2; w < _; ) {
|
|
679
1207
|
if (b.getUint8(w) === 255 && b.getUint8(w + 1) === 225) {
|
|
@@ -682,14 +1210,14 @@ var U = { exports: {} };
|
|
|
682
1210
|
}
|
|
683
1211
|
w++;
|
|
684
1212
|
}
|
|
685
|
-
if (p && (y = p + 10, function(
|
|
1213
|
+
if (p && (y = p + 10, function(I, E, A) {
|
|
686
1214
|
var O, M = "";
|
|
687
1215
|
for (O = E, A += E; O < A; O++)
|
|
688
|
-
M += String.fromCharCode(
|
|
1216
|
+
M += String.fromCharCode(I.getUint8(O));
|
|
689
1217
|
return M;
|
|
690
|
-
}(b, p + 4, 4) === "Exif" && (h = b.getUint16(y), ((c = h === 18761) || h === 19789) && b.getUint16(y + 2, c) === 42 && (C = b.getUint32(y + 4, c)) >= 8 && (
|
|
691
|
-
for (_ = b.getUint16(
|
|
692
|
-
if (w =
|
|
1218
|
+
}(b, p + 4, 4) === "Exif" && (h = b.getUint16(y), ((c = h === 18761) || h === 19789) && b.getUint16(y + 2, c) === 42 && (C = b.getUint32(y + 4, c)) >= 8 && (f = y + C))), f) {
|
|
1219
|
+
for (_ = b.getUint16(f, c), v = 0; v < _; v++)
|
|
1220
|
+
if (w = f + 12 * v + 2, b.getUint16(w, c) === 274) {
|
|
693
1221
|
w += 8, m = b.getUint16(w, c);
|
|
694
1222
|
break;
|
|
695
1223
|
}
|
|
@@ -697,11 +1225,11 @@ var U = { exports: {} };
|
|
|
697
1225
|
return m;
|
|
698
1226
|
}(l), t(r);
|
|
699
1227
|
}).catch(function(l) {
|
|
700
|
-
|
|
1228
|
+
o(l);
|
|
701
1229
|
});
|
|
702
1230
|
});
|
|
703
1231
|
};
|
|
704
|
-
var $ = x,
|
|
1232
|
+
var $ = x, S = { data: function() {
|
|
705
1233
|
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 };
|
|
706
1234
|
}, 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() {
|
|
707
1235
|
return [1, 1];
|
|
@@ -748,16 +1276,16 @@ var U = { exports: {} };
|
|
|
748
1276
|
}, rotate: function() {
|
|
749
1277
|
this.showPreview(), this.autoCrop ? this.goAutoCrop(this.cropW, this.cropH) : (this.cropW > 0 || this.cropH > 0) && this.goAutoCrop(this.cropW, this.cropH);
|
|
750
1278
|
} }, methods: { getVersion: function(i) {
|
|
751
|
-
for (var t = navigator.userAgent.split(" "),
|
|
752
|
-
r.test(t[l]) && (
|
|
753
|
-
return
|
|
754
|
-
}, checkOrientationImage: function(i, t,
|
|
1279
|
+
for (var t = navigator.userAgent.split(" "), o = "", r = new RegExp(i, "i"), l = 0; l < t.length; l++)
|
|
1280
|
+
r.test(t[l]) && (o = t[l]);
|
|
1281
|
+
return o ? o.split("/")[1].split(".") : ["0", "0", "0"];
|
|
1282
|
+
}, checkOrientationImage: function(i, t, o, r) {
|
|
755
1283
|
var l = this;
|
|
756
1284
|
if (this.getVersion("chrome")[0] >= 81)
|
|
757
1285
|
t = -1;
|
|
758
1286
|
else if (this.getVersion("safari")[0] >= 605) {
|
|
759
|
-
var
|
|
760
|
-
|
|
1287
|
+
var g = this.getVersion("version");
|
|
1288
|
+
g[0] > 13 && g[1] > 1 && (t = -1);
|
|
761
1289
|
} else {
|
|
762
1290
|
var m = navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);
|
|
763
1291
|
if (m) {
|
|
@@ -768,30 +1296,30 @@ var U = { exports: {} };
|
|
|
768
1296
|
var C = document.createElement("canvas"), c = C.getContext("2d");
|
|
769
1297
|
switch (c.save(), t) {
|
|
770
1298
|
case 2:
|
|
771
|
-
C.width =
|
|
1299
|
+
C.width = o, C.height = r, c.translate(o, 0), c.scale(-1, 1);
|
|
772
1300
|
break;
|
|
773
1301
|
case 3:
|
|
774
|
-
C.width =
|
|
1302
|
+
C.width = o, C.height = r, c.translate(o / 2, r / 2), c.rotate(180 * Math.PI / 180), c.translate(-o / 2, -r / 2);
|
|
775
1303
|
break;
|
|
776
1304
|
case 4:
|
|
777
|
-
C.width =
|
|
1305
|
+
C.width = o, C.height = r, c.translate(0, r), c.scale(1, -1);
|
|
778
1306
|
break;
|
|
779
1307
|
case 5:
|
|
780
|
-
C.height =
|
|
1308
|
+
C.height = o, C.width = r, c.rotate(0.5 * Math.PI), c.scale(1, -1);
|
|
781
1309
|
break;
|
|
782
1310
|
case 6:
|
|
783
|
-
C.width = r, C.height =
|
|
1311
|
+
C.width = r, C.height = o, c.translate(r / 2, o / 2), c.rotate(90 * Math.PI / 180), c.translate(-o / 2, -r / 2);
|
|
784
1312
|
break;
|
|
785
1313
|
case 7:
|
|
786
|
-
C.height =
|
|
1314
|
+
C.height = o, C.width = r, c.rotate(0.5 * Math.PI), c.translate(o, -r), c.scale(-1, 1);
|
|
787
1315
|
break;
|
|
788
1316
|
case 8:
|
|
789
|
-
C.height =
|
|
1317
|
+
C.height = o, C.width = r, c.translate(r / 2, o / 2), c.rotate(-90 * Math.PI / 180), c.translate(-o / 2, -r / 2);
|
|
790
1318
|
break;
|
|
791
1319
|
default:
|
|
792
|
-
C.width =
|
|
1320
|
+
C.width = o, C.height = r;
|
|
793
1321
|
}
|
|
794
|
-
c.drawImage(i, 0, 0,
|
|
1322
|
+
c.drawImage(i, 0, 0, o, r), c.restore(), C.toBlob(function(h) {
|
|
795
1323
|
var p = URL.createObjectURL(h);
|
|
796
1324
|
URL.revokeObjectURL(l.imgs), l.imgs = p;
|
|
797
1325
|
}, "image/" + this.outputType, 1);
|
|
@@ -805,19 +1333,19 @@ var U = { exports: {} };
|
|
|
805
1333
|
if (i.img === "")
|
|
806
1334
|
return i.$emit("imgLoad", "error"), i.$emit("img-load", "error"), !1;
|
|
807
1335
|
var r = t.width, l = t.height;
|
|
808
|
-
$.getData(t).then(function(
|
|
809
|
-
i.orientation =
|
|
1336
|
+
$.getData(t).then(function(g) {
|
|
1337
|
+
i.orientation = g.orientation || 1;
|
|
810
1338
|
var m = i.maxImgSize;
|
|
811
1339
|
!i.orientation && r < m & l < m ? i.imgs = i.img : (r > m && (l = l / r * m, r = m), l > m && (r = r / l * m, l = m), i.checkOrientationImage(t, i.orientation, r, l));
|
|
812
1340
|
});
|
|
813
1341
|
}, t.onerror = function() {
|
|
814
1342
|
i.$emit("imgLoad", "error"), i.$emit("img-load", "error");
|
|
815
1343
|
}, this.img.substr(0, 4) !== "data" && (t.crossOrigin = ""), this.isIE) {
|
|
816
|
-
var
|
|
817
|
-
|
|
1344
|
+
var o = new XMLHttpRequest();
|
|
1345
|
+
o.onload = function() {
|
|
818
1346
|
var r = URL.createObjectURL(this.response);
|
|
819
1347
|
t.src = r;
|
|
820
|
-
},
|
|
1348
|
+
}, o.open("GET", this.img, !0), o.responseType = "blob", o.send();
|
|
821
1349
|
} else
|
|
822
1350
|
t.src = this.img;
|
|
823
1351
|
}, startMove: function(i) {
|
|
@@ -830,13 +1358,13 @@ var U = { exports: {} };
|
|
|
830
1358
|
}, touchScale: function(i) {
|
|
831
1359
|
var t = this;
|
|
832
1360
|
i.preventDefault();
|
|
833
|
-
var
|
|
1361
|
+
var o = this.scale, r = this.touches[0].clientX, l = this.touches[0].clientY, g = i.touches[0].clientX, m = i.touches[0].clientY, y = this.touches[1].clientX, C = this.touches[1].clientY, c = i.touches[1].clientX, h = i.touches[1].clientY, p = Math.sqrt(Math.pow(r - y, 2) + Math.pow(l - C, 2)), f = Math.sqrt(Math.pow(g - c, 2) + Math.pow(m - h, 2)) - p, w = 1, v = (w = (w = w / this.trueWidth > w / this.trueHeight ? w / this.trueHeight : w / this.trueWidth) > 0.1 ? 0.1 : w) * f;
|
|
834
1362
|
if (!this.touchNow) {
|
|
835
|
-
if (this.touchNow = !0,
|
|
1363
|
+
if (this.touchNow = !0, f > 0 ? o += Math.abs(v) : f < 0 && o > Math.abs(v) && (o -= Math.abs(v)), this.touches = i.touches, setTimeout(function() {
|
|
836
1364
|
t.touchNow = !1;
|
|
837
|
-
}, 8), !this.checkoutImgAxis(this.x, this.y,
|
|
1365
|
+
}, 8), !this.checkoutImgAxis(this.x, this.y, o))
|
|
838
1366
|
return !1;
|
|
839
|
-
this.scale =
|
|
1367
|
+
this.scale = o;
|
|
840
1368
|
}
|
|
841
1369
|
}, cancelTouchScale: function(i) {
|
|
842
1370
|
window.removeEventListener("touchmove", this.touchScale);
|
|
@@ -844,23 +1372,23 @@ var U = { exports: {} };
|
|
|
844
1372
|
var t = this;
|
|
845
1373
|
if (i.preventDefault(), i.touches && i.touches.length === 2)
|
|
846
1374
|
return this.touches = i.touches, window.addEventListener("touchmove", this.touchScale), window.addEventListener("touchend", this.cancelTouchScale), window.removeEventListener("touchmove", this.moveImg), !1;
|
|
847
|
-
var
|
|
848
|
-
|
|
1375
|
+
var o, r, l = i.clientX ? i.clientX : i.touches[0].clientX, g = i.clientY ? i.clientY : i.touches[0].clientY;
|
|
1376
|
+
o = l - this.moveX, r = g - this.moveY, this.$nextTick(function() {
|
|
849
1377
|
if (t.centerBox) {
|
|
850
|
-
var m, y, C, c, h = t.getImgAxis(
|
|
1378
|
+
var m, y, C, c, h = t.getImgAxis(o, r, t.scale), p = t.getCropAxis(), f = t.trueHeight * t.scale, w = t.trueWidth * t.scale;
|
|
851
1379
|
switch (t.rotate) {
|
|
852
1380
|
case 1:
|
|
853
1381
|
case -1:
|
|
854
1382
|
case 3:
|
|
855
1383
|
case -3:
|
|
856
|
-
m = t.cropOffsertX - t.trueWidth * (1 - t.scale) / 2 + (
|
|
1384
|
+
m = t.cropOffsertX - t.trueWidth * (1 - t.scale) / 2 + (f - w) / 2, y = t.cropOffsertY - t.trueHeight * (1 - t.scale) / 2 + (w - f) / 2, C = m - f + t.cropW, c = y - w + t.cropH;
|
|
857
1385
|
break;
|
|
858
1386
|
default:
|
|
859
|
-
m = t.cropOffsertX - t.trueWidth * (1 - t.scale) / 2, y = t.cropOffsertY - t.trueHeight * (1 - t.scale) / 2, C = m - w + t.cropW, c = y -
|
|
1387
|
+
m = t.cropOffsertX - t.trueWidth * (1 - t.scale) / 2, y = t.cropOffsertY - t.trueHeight * (1 - t.scale) / 2, C = m - w + t.cropW, c = y - f + t.cropH;
|
|
860
1388
|
}
|
|
861
|
-
h.x1 >= p.x1 && (
|
|
1389
|
+
h.x1 >= p.x1 && (o = m), h.y1 >= p.y1 && (r = y), h.x2 <= p.x2 && (o = C), h.y2 <= p.y2 && (r = c);
|
|
862
1390
|
}
|
|
863
|
-
t.x =
|
|
1391
|
+
t.x = o, t.y = r, t.$emit("imgMoving", { moving: !0, axis: t.getImgAxis() }), t.$emit("img-moving", { moving: !0, axis: t.getImgAxis() });
|
|
864
1392
|
});
|
|
865
1393
|
}, leaveImg: function(i) {
|
|
866
1394
|
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() });
|
|
@@ -871,50 +1399,50 @@ var U = { exports: {} };
|
|
|
871
1399
|
}, changeSize: function(i) {
|
|
872
1400
|
var t = this;
|
|
873
1401
|
i.preventDefault();
|
|
874
|
-
var
|
|
1402
|
+
var o = this.scale, r = i.deltaY || i.wheelDelta;
|
|
875
1403
|
r = navigator.userAgent.indexOf("Firefox") > 0 ? 30 * r : r, this.isIE && (r = -r);
|
|
876
|
-
var l = this.coe,
|
|
877
|
-
|
|
878
|
-
var m =
|
|
1404
|
+
var l = this.coe, g = (l = l / this.trueWidth > l / this.trueHeight ? l / this.trueHeight : l / this.trueWidth) * r;
|
|
1405
|
+
g < 0 ? o += Math.abs(g) : o > Math.abs(g) && (o -= Math.abs(g));
|
|
1406
|
+
var m = g < 0 ? "add" : "reduce";
|
|
879
1407
|
if (m !== this.coeStatus && (this.coeStatus = m, this.coe = 0.2), this.scaling || (this.scalingSet = setTimeout(function() {
|
|
880
1408
|
t.scaling = !1, t.coe = t.coe += 0.01;
|
|
881
|
-
}, 50)), this.scaling = !0, !this.checkoutImgAxis(this.x, this.y,
|
|
1409
|
+
}, 50)), this.scaling = !0, !this.checkoutImgAxis(this.x, this.y, o))
|
|
882
1410
|
return !1;
|
|
883
|
-
this.scale =
|
|
1411
|
+
this.scale = o;
|
|
884
1412
|
}, changeScale: function(i) {
|
|
885
1413
|
var t = this.scale;
|
|
886
1414
|
i = i || 1;
|
|
887
|
-
var
|
|
888
|
-
if ((i *=
|
|
1415
|
+
var o = 20;
|
|
1416
|
+
if ((i *= o = o / this.trueWidth > o / this.trueHeight ? o / this.trueHeight : o / this.trueWidth) > 0 ? t += Math.abs(i) : t > Math.abs(i) && (t -= Math.abs(i)), !this.checkoutImgAxis(this.x, this.y, t))
|
|
889
1417
|
return !1;
|
|
890
1418
|
this.scale = t;
|
|
891
1419
|
}, createCrop: function(i) {
|
|
892
1420
|
var t = this;
|
|
893
1421
|
i.preventDefault();
|
|
894
|
-
var
|
|
1422
|
+
var o = i.clientX ? i.clientX : i.touches ? i.touches[0].clientX : 0, r = i.clientY ? i.clientY : i.touches ? i.touches[0].clientY : 0;
|
|
895
1423
|
this.$nextTick(function() {
|
|
896
|
-
var l =
|
|
1424
|
+
var l = o - t.cropX, g = r - t.cropY;
|
|
897
1425
|
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) {
|
|
898
1426
|
var m = t.cropW / t.fixedNumber[0] * t.fixedNumber[1];
|
|
899
1427
|
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;
|
|
900
1428
|
} else
|
|
901
|
-
|
|
1429
|
+
g > 0 ? (t.cropH = g + t.cropChangeY > t.h ? t.h - t.cropChangeY : g, t.cropOffsertY = t.cropChangeY) : (t.cropH = t.h - t.cropChangeY + Math.abs(g) > t.h ? t.cropChangeY : Math.abs(g), t.cropOffsertY = t.cropChangeY + g > 0 ? t.cropChangeY + g : 0);
|
|
902
1430
|
});
|
|
903
|
-
}, changeCropSize: function(i, t,
|
|
904
|
-
i.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 =
|
|
1431
|
+
}, changeCropSize: function(i, t, o, r, l) {
|
|
1432
|
+
i.preventDefault(), window.addEventListener("mousemove", this.changeCropNow), window.addEventListener("mouseup", this.changeCropEnd), window.addEventListener("touchmove", this.changeCropNow), window.addEventListener("touchend", this.changeCropEnd), this.canChangeX = t, this.canChangeY = o, this.changeCropTypeX = r, this.changeCropTypeY = l, this.cropX = i.clientX ? i.clientX : i.touches[0].clientX, this.cropY = i.clientY ? i.clientY : i.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 });
|
|
905
1433
|
}, changeCropNow: function(i) {
|
|
906
1434
|
var t = this;
|
|
907
1435
|
i.preventDefault();
|
|
908
|
-
var
|
|
1436
|
+
var o = i.clientX ? i.clientX : i.touches ? i.touches[0].clientX : 0, r = i.clientY ? i.clientY : i.touches ? i.touches[0].clientY : 0, l = this.w, g = this.h, m = 0, y = 0;
|
|
909
1437
|
if (this.centerBox) {
|
|
910
1438
|
var C = this.getImgAxis(), c = C.x2, h = C.y2;
|
|
911
|
-
m = C.x1 > 0 ? C.x1 : 0, y = C.y1 > 0 ? C.y1 : 0, l > c && (l = c),
|
|
1439
|
+
m = C.x1 > 0 ? C.x1 : 0, y = C.y1 > 0 ? C.y1 : 0, l > c && (l = c), g > h && (g = h);
|
|
912
1440
|
}
|
|
913
1441
|
this.$nextTick(function() {
|
|
914
|
-
var p =
|
|
915
|
-
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 -
|
|
1442
|
+
var p = o - t.cropX, f = r - t.cropY;
|
|
1443
|
+
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 - f > 0 ? (t.cropH = g - t.cropChangeY - f <= g - y ? t.cropOldH - f : t.cropOldH + t.cropChangeY - y, t.cropOffsertY = g - t.cropChangeY - f <= g - y ? t.cropChangeY + f : y) : (t.cropH = Math.abs(f) + t.cropChangeY <= g ? Math.abs(f) - t.cropOldH : g - t.cropOldH - t.cropChangeY, t.cropOffsertY = t.cropChangeY + t.cropOldH) : t.changeCropTypeY === 2 && (t.cropOldH + f > 0 ? (t.cropH = t.cropOldH + f + t.cropOffsertY <= g ? t.cropOldH + f : g - t.cropOffsertY, t.cropOffsertY = t.cropChangeY) : (t.cropH = g - t.cropChangeY + Math.abs(f + t.cropOldH) <= g - y ? Math.abs(f + t.cropOldH) : t.cropChangeY - y, t.cropOffsertY = g - t.cropChangeY + Math.abs(f + t.cropOldH) <= g - y ? t.cropChangeY - Math.abs(f + t.cropOldH) : y))), t.canChangeX && t.fixed) {
|
|
916
1444
|
var w = t.cropW / t.fixedNumber[0] * t.fixedNumber[1];
|
|
917
|
-
w + t.cropOffsertY >
|
|
1445
|
+
w + t.cropOffsertY > g ? (t.cropH = g - t.cropOffsertY, t.cropW = t.cropH / t.fixedNumber[1] * t.fixedNumber[0]) : t.cropH = w;
|
|
918
1446
|
}
|
|
919
1447
|
if (t.canChangeY && t.fixed) {
|
|
920
1448
|
var v = t.cropH / t.fixedNumber[1] * t.fixedNumber[0];
|
|
@@ -941,33 +1469,33 @@ var U = { exports: {} };
|
|
|
941
1469
|
if (i.touches && i.touches.length === 2)
|
|
942
1470
|
return this.crop = !1, this.startMove(i), this.leaveCrop(), !1;
|
|
943
1471
|
window.addEventListener("mousemove", this.moveCrop), window.addEventListener("mouseup", this.leaveCrop), window.addEventListener("touchmove", this.moveCrop), window.addEventListener("touchend", this.leaveCrop);
|
|
944
|
-
var t,
|
|
945
|
-
t = r - this.cropOffsertX,
|
|
1472
|
+
var t, o, r = i.clientX ? i.clientX : i.touches[0].clientX, l = i.clientY ? i.clientY : i.touches[0].clientY;
|
|
1473
|
+
t = r - this.cropOffsertX, o = l - this.cropOffsertY, this.cropX = t, this.cropY = o, this.$emit("cropMoving", { moving: !0, axis: this.getCropAxis() }), this.$emit("crop-moving", { moving: !0, axis: this.getCropAxis() });
|
|
946
1474
|
}, moveCrop: function(i, t) {
|
|
947
|
-
var
|
|
1475
|
+
var o = this, r = 0, l = 0;
|
|
948
1476
|
i && (i.preventDefault(), r = i.clientX ? i.clientX : i.touches[0].clientX, l = i.clientY ? i.clientY : i.touches[0].clientY), this.$nextTick(function() {
|
|
949
|
-
var
|
|
950
|
-
if (t && (y =
|
|
951
|
-
var c =
|
|
952
|
-
|
|
1477
|
+
var g, m, y = r - o.cropX, C = l - o.cropY;
|
|
1478
|
+
if (t && (y = o.cropOffsertX, C = o.cropOffsertY), g = y <= 0 ? 0 : y + o.cropW > o.w ? o.w - o.cropW : y, m = C <= 0 ? 0 : C + o.cropH > o.h ? o.h - o.cropH : C, o.centerBox) {
|
|
1479
|
+
var c = o.getImgAxis();
|
|
1480
|
+
g <= c.x1 && (g = c.x1), g + o.cropW > c.x2 && (g = c.x2 - o.cropW), m <= c.y1 && (m = c.y1), m + o.cropH > c.y2 && (m = c.y2 - o.cropH);
|
|
953
1481
|
}
|
|
954
|
-
|
|
1482
|
+
o.cropOffsertX = g, o.cropOffsertY = m, o.$emit("cropMoving", { moving: !0, axis: o.getCropAxis() }), o.$emit("crop-moving", { moving: !0, axis: o.getCropAxis() });
|
|
955
1483
|
});
|
|
956
|
-
}, getImgAxis: function(i, t,
|
|
957
|
-
i = i || this.x, t = t || this.y,
|
|
958
|
-
var r = { x1: 0, x2: 0, y1: 0, y2: 0 }, l = this.trueWidth *
|
|
1484
|
+
}, getImgAxis: function(i, t, o) {
|
|
1485
|
+
i = i || this.x, t = t || this.y, o = o || this.scale;
|
|
1486
|
+
var r = { x1: 0, x2: 0, y1: 0, y2: 0 }, l = this.trueWidth * o, g = this.trueHeight * o;
|
|
959
1487
|
switch (this.rotate) {
|
|
960
1488
|
case 0:
|
|
961
|
-
r.x1 = i + this.trueWidth * (1 -
|
|
1489
|
+
r.x1 = i + this.trueWidth * (1 - o) / 2, r.x2 = r.x1 + this.trueWidth * o, r.y1 = t + this.trueHeight * (1 - o) / 2, r.y2 = r.y1 + this.trueHeight * o;
|
|
962
1490
|
break;
|
|
963
1491
|
case 1:
|
|
964
1492
|
case -1:
|
|
965
1493
|
case 3:
|
|
966
1494
|
case -3:
|
|
967
|
-
r.x1 = i + this.trueWidth * (1 -
|
|
1495
|
+
r.x1 = i + this.trueWidth * (1 - o) / 2 + (l - g) / 2, r.x2 = r.x1 + this.trueHeight * o, r.y1 = t + this.trueHeight * (1 - o) / 2 + (g - l) / 2, r.y2 = r.y1 + this.trueWidth * o;
|
|
968
1496
|
break;
|
|
969
1497
|
default:
|
|
970
|
-
r.x1 = i + this.trueWidth * (1 -
|
|
1498
|
+
r.x1 = i + this.trueWidth * (1 - o) / 2, r.x2 = r.x1 + this.trueWidth * o, r.y1 = t + this.trueHeight * (1 - o) / 2, r.y2 = r.y1 + this.trueHeight * o;
|
|
971
1499
|
}
|
|
972
1500
|
return r;
|
|
973
1501
|
}, getCropAxis: function() {
|
|
@@ -976,37 +1504,37 @@ var U = { exports: {} };
|
|
|
976
1504
|
}, leaveCrop: function(i) {
|
|
977
1505
|
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() });
|
|
978
1506
|
}, getCropChecked: function(i) {
|
|
979
|
-
var t = this,
|
|
1507
|
+
var t = this, o = document.createElement("canvas"), r = new Image(), l = this.rotate, g = this.trueWidth, m = this.trueHeight, y = this.cropOffsertX, C = this.cropOffsertY;
|
|
980
1508
|
function c(h, p) {
|
|
981
|
-
|
|
1509
|
+
o.width = Math.round(h), o.height = Math.round(p);
|
|
982
1510
|
}
|
|
983
1511
|
r.onload = function() {
|
|
984
1512
|
if (t.cropW !== 0) {
|
|
985
|
-
var h =
|
|
1513
|
+
var h = o.getContext("2d"), p = 1;
|
|
986
1514
|
t.high & !t.full && (p = window.devicePixelRatio), t.enlarge !== 1 & !t.full && (p = Math.abs(Number(t.enlarge)));
|
|
987
|
-
var
|
|
988
|
-
switch (c(
|
|
1515
|
+
var f = t.cropW * p, w = t.cropH * p, v = g * t.scale * p, b = m * t.scale * p, _ = (t.x - y + t.trueWidth * (1 - t.scale) / 2) * p, I = (t.y - C + t.trueHeight * (1 - t.scale) / 2) * p;
|
|
1516
|
+
switch (c(f, w), h.save(), l) {
|
|
989
1517
|
case 0:
|
|
990
|
-
t.full ? (c(
|
|
1518
|
+
t.full ? (c(f / t.scale, w / t.scale), h.drawImage(r, _ / t.scale, I / t.scale, v / t.scale, b / t.scale)) : h.drawImage(r, _, I, v, b);
|
|
991
1519
|
break;
|
|
992
1520
|
case 1:
|
|
993
1521
|
case -3:
|
|
994
|
-
t.full ? (c(
|
|
1522
|
+
t.full ? (c(f / t.scale, w / t.scale), _ = _ / t.scale + (v / t.scale - b / t.scale) / 2, I = I / t.scale + (b / t.scale - v / t.scale) / 2, h.rotate(90 * l * Math.PI / 180), h.drawImage(r, I, -_ - b / t.scale, v / t.scale, b / t.scale)) : (_ += (v - b) / 2, I += (b - v) / 2, h.rotate(90 * l * Math.PI / 180), h.drawImage(r, I, -_ - b, v, b));
|
|
995
1523
|
break;
|
|
996
1524
|
case 2:
|
|
997
1525
|
case -2:
|
|
998
|
-
t.full ? (c(
|
|
1526
|
+
t.full ? (c(f / t.scale, w / t.scale), h.rotate(90 * l * Math.PI / 180), _ /= t.scale, I /= t.scale, h.drawImage(r, -_ - v / t.scale, -I - b / t.scale, v / t.scale, b / t.scale)) : (h.rotate(90 * l * Math.PI / 180), h.drawImage(r, -_ - v, -I - b, v, b));
|
|
999
1527
|
break;
|
|
1000
1528
|
case 3:
|
|
1001
1529
|
case -1:
|
|
1002
|
-
t.full ? (c(
|
|
1530
|
+
t.full ? (c(f / t.scale, w / t.scale), _ = _ / t.scale + (v / t.scale - b / t.scale) / 2, I = I / t.scale + (b / t.scale - v / t.scale) / 2, h.rotate(90 * l * Math.PI / 180), h.drawImage(r, -I - v / t.scale, _, v / t.scale, b / t.scale)) : (_ += (v - b) / 2, I += (b - v) / 2, h.rotate(90 * l * Math.PI / 180), h.drawImage(r, -I - v, _, v, b));
|
|
1003
1531
|
break;
|
|
1004
1532
|
default:
|
|
1005
|
-
t.full ? (c(
|
|
1533
|
+
t.full ? (c(f / t.scale, w / t.scale), h.drawImage(r, _ / t.scale, I / t.scale, v / t.scale, b / t.scale)) : h.drawImage(r, _, I, v, b);
|
|
1006
1534
|
}
|
|
1007
1535
|
h.restore();
|
|
1008
1536
|
} else {
|
|
1009
|
-
var E =
|
|
1537
|
+
var E = g * t.scale, A = m * t.scale, O = o.getContext("2d");
|
|
1010
1538
|
switch (O.save(), l) {
|
|
1011
1539
|
case 0:
|
|
1012
1540
|
c(E, A), O.drawImage(r, 0, 0, E, A);
|
|
@@ -1028,17 +1556,17 @@ var U = { exports: {} };
|
|
|
1028
1556
|
}
|
|
1029
1557
|
O.restore();
|
|
1030
1558
|
}
|
|
1031
|
-
i(
|
|
1559
|
+
i(o);
|
|
1032
1560
|
}, this.img.substr(0, 4) !== "data" && (r.crossOrigin = "Anonymous"), r.src = this.imgs;
|
|
1033
1561
|
}, getCropData: function(i) {
|
|
1034
1562
|
var t = this;
|
|
1035
|
-
this.getCropChecked(function(
|
|
1036
|
-
i(
|
|
1563
|
+
this.getCropChecked(function(o) {
|
|
1564
|
+
i(o.toDataURL("image/" + t.outputType, t.outputSize));
|
|
1037
1565
|
});
|
|
1038
1566
|
}, getCropBlob: function(i) {
|
|
1039
1567
|
var t = this;
|
|
1040
|
-
this.getCropChecked(function(
|
|
1041
|
-
|
|
1568
|
+
this.getCropChecked(function(o) {
|
|
1569
|
+
o.toBlob(function(r) {
|
|
1042
1570
|
return i(r);
|
|
1043
1571
|
}, "image/" + t.outputType, t.outputSize);
|
|
1044
1572
|
});
|
|
@@ -1049,14 +1577,14 @@ var U = { exports: {} };
|
|
|
1049
1577
|
this.isCanShow = !1, setTimeout(function() {
|
|
1050
1578
|
i.isCanShow = !0;
|
|
1051
1579
|
}, 16);
|
|
1052
|
-
var t = this.cropW,
|
|
1053
|
-
l.div = { width: "".concat(t, "px"), height: "".concat(
|
|
1054
|
-
var
|
|
1055
|
-
l.w = t, l.h =
|
|
1580
|
+
var t = this.cropW, o = this.cropH, r = this.scale, l = {};
|
|
1581
|
+
l.div = { width: "".concat(t, "px"), height: "".concat(o, "px") };
|
|
1582
|
+
var g = (this.x - this.cropOffsertX) / r, m = (this.y - this.cropOffsertY) / r;
|
|
1583
|
+
l.w = t, l.h = o, l.url = this.imgs, l.img = { width: "".concat(this.trueWidth, "px"), height: "".concat(this.trueHeight, "px"), transform: "scale(".concat(r, ")translate3d(").concat(g, "px, ").concat(m, "px, ").concat(0, "px)rotateZ(").concat(90 * this.rotate, "deg)") }, l.html = `
|
|
1056
1584
|
<div class="show-preview" style="width: `.concat(l.w, "px; height: ").concat(l.h, `px,; overflow: hidden">
|
|
1057
|
-
<div style="width: `).concat(t, "px; height: ").concat(
|
|
1585
|
+
<div style="width: `).concat(t, "px; height: ").concat(o, `px">
|
|
1058
1586
|
<img src=`).concat(l.url, ' style="width: ').concat(this.trueWidth, "px; height: ").concat(this.trueHeight, `px; transform:
|
|
1059
|
-
scale(`).concat(r, ")translate3d(").concat(
|
|
1587
|
+
scale(`).concat(r, ")translate3d(").concat(g, "px, ").concat(m, "px, ").concat(0, "px)rotateZ(").concat(90 * this.rotate, `deg)">
|
|
1060
1588
|
</div>
|
|
1061
1589
|
</div>`), this.$emit("realTime", l), this.$emit("real-time", l);
|
|
1062
1590
|
}, reload: function() {
|
|
@@ -1071,8 +1599,8 @@ var U = { exports: {} };
|
|
|
1071
1599
|
i.$emit("imgLoad", "error"), i.$emit("img-load", "error");
|
|
1072
1600
|
}, t.src = this.imgs;
|
|
1073
1601
|
}, checkedMode: function() {
|
|
1074
|
-
var i = 1, t = (this.trueWidth, this.trueHeight),
|
|
1075
|
-
switch (
|
|
1602
|
+
var i = 1, t = (this.trueWidth, this.trueHeight), o = this.mode.split(" ");
|
|
1603
|
+
switch (o[0]) {
|
|
1076
1604
|
case "contain":
|
|
1077
1605
|
this.trueWidth > this.w && (i = this.w / this.trueWidth), this.trueHeight * i > this.h && (i = this.h / this.trueHeight);
|
|
1078
1606
|
break;
|
|
@@ -1081,9 +1609,9 @@ var U = { exports: {} };
|
|
|
1081
1609
|
break;
|
|
1082
1610
|
default:
|
|
1083
1611
|
try {
|
|
1084
|
-
var r =
|
|
1085
|
-
if (r.search("px") !== -1 && (r = r.replace("px", ""), i = parseFloat(r) / this.trueWidth), r.search("%") !== -1 && (r = r.replace("%", ""), i = parseFloat(r) / 100 * this.w / this.trueWidth),
|
|
1086
|
-
var l =
|
|
1612
|
+
var r = o[0];
|
|
1613
|
+
if (r.search("px") !== -1 && (r = r.replace("px", ""), i = parseFloat(r) / this.trueWidth), r.search("%") !== -1 && (r = r.replace("%", ""), i = parseFloat(r) / 100 * this.w / this.trueWidth), o.length === 2 && r === "auto") {
|
|
1614
|
+
var l = o[1];
|
|
1087
1615
|
l.search("px") !== -1 && (l = l.replace("px", ""), i = (t = parseFloat(l)) / this.trueHeight), l.search("%") !== -1 && (l = l.replace("%", ""), i = (t = parseFloat(l) / 100 * this.h) / this.trueHeight);
|
|
1088
1616
|
}
|
|
1089
1617
|
} catch {
|
|
@@ -1094,22 +1622,22 @@ var U = { exports: {} };
|
|
|
1094
1622
|
}, goAutoCrop: function(i, t) {
|
|
1095
1623
|
if (this.imgs !== "" && this.imgs !== null) {
|
|
1096
1624
|
this.clearCrop(), this.cropping = !0;
|
|
1097
|
-
var
|
|
1625
|
+
var o = this.w, r = this.h;
|
|
1098
1626
|
if (this.centerBox) {
|
|
1099
|
-
var l = this.trueWidth * this.scale,
|
|
1100
|
-
|
|
1627
|
+
var l = this.trueWidth * this.scale, g = this.trueHeight * this.scale;
|
|
1628
|
+
o = l < o ? l : o, r = g < r ? g : r;
|
|
1101
1629
|
}
|
|
1102
1630
|
var m = i || parseFloat(this.autoCropWidth), y = t || parseFloat(this.autoCropHeight);
|
|
1103
|
-
m !== 0 && y !== 0 || (m = 0.8 *
|
|
1631
|
+
m !== 0 && y !== 0 || (m = 0.8 * o, y = 0.8 * r), m = m > o ? o : m, y = y > r ? r : y, this.fixed && (y = m / this.fixedNumber[0] * this.fixedNumber[1]), y > this.h && (m = (y = this.h) / this.fixedNumber[1] * this.fixedNumber[0]), this.changeCrop(m, y);
|
|
1104
1632
|
}
|
|
1105
1633
|
}, changeCrop: function(i, t) {
|
|
1106
|
-
var
|
|
1634
|
+
var o = this;
|
|
1107
1635
|
if (this.centerBox) {
|
|
1108
1636
|
var r = this.getImgAxis();
|
|
1109
1637
|
i > r.x2 - r.x1 && (t = (i = r.x2 - r.x1) / this.fixedNumber[0] * this.fixedNumber[1]), t > r.y2 - r.y1 && (i = (t = r.y2 - r.y1) / this.fixedNumber[1] * this.fixedNumber[0]);
|
|
1110
1638
|
}
|
|
1111
1639
|
this.cropW = i, this.cropH = t, this.checkCropLimitSize(), this.$nextTick(function() {
|
|
1112
|
-
|
|
1640
|
+
o.cropOffsertX = (o.w - o.cropW) / 2, o.cropOffsertY = (o.h - o.cropH) / 2, o.centerBox && o.moveCrop(null, !0);
|
|
1113
1641
|
});
|
|
1114
1642
|
}, refresh: function() {
|
|
1115
1643
|
var i = this;
|
|
@@ -1122,598 +1650,181 @@ var U = { exports: {} };
|
|
|
1122
1650
|
this.rotate = this.rotate >= 3 ? 0 : this.rotate + 1;
|
|
1123
1651
|
}, rotateClear: function() {
|
|
1124
1652
|
this.rotate = 0;
|
|
1125
|
-
}, checkoutImgAxis: function(i, t,
|
|
1126
|
-
i = i || this.x, t = t || this.y,
|
|
1653
|
+
}, checkoutImgAxis: function(i, t, o) {
|
|
1654
|
+
i = i || this.x, t = t || this.y, o = o || this.scale;
|
|
1127
1655
|
var r = !0;
|
|
1128
1656
|
if (this.centerBox) {
|
|
1129
|
-
var l = this.getImgAxis(i, t,
|
|
1130
|
-
l.x1 >=
|
|
1657
|
+
var l = this.getImgAxis(i, t, o), g = this.getCropAxis();
|
|
1658
|
+
l.x1 >= g.x1 && (r = !1), l.x2 <= g.x2 && (r = !1), l.y1 >= g.y1 && (r = !1), l.y2 <= g.y2 && (r = !1);
|
|
1131
1659
|
}
|
|
1132
1660
|
return r;
|
|
1133
1661
|
} }, mounted: function() {
|
|
1134
1662
|
this.support = "onwheel" in document.createElement("div") ? "wheel" : document.onmousewheel !== void 0 ? "mousewheel" : "DOMMouseScroll";
|
|
1135
1663
|
var i = this, t = navigator.userAgent;
|
|
1136
|
-
this.isIOS = !!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), HTMLCanvasElement.prototype.toBlob || Object.defineProperty(HTMLCanvasElement.prototype, "toBlob", { value: function(
|
|
1137
|
-
for (var
|
|
1138
|
-
y[C] =
|
|
1139
|
-
|
|
1664
|
+
this.isIOS = !!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), HTMLCanvasElement.prototype.toBlob || Object.defineProperty(HTMLCanvasElement.prototype, "toBlob", { value: function(o, r, l) {
|
|
1665
|
+
for (var g = atob(this.toDataURL(r, l).split(",")[1]), m = g.length, y = new Uint8Array(m), C = 0; C < m; C++)
|
|
1666
|
+
y[C] = g.charCodeAt(C);
|
|
1667
|
+
o(new Blob([y], { type: i.type || "image/png" }));
|
|
1140
1668
|
} }), this.showPreview(), this.checkedImg();
|
|
1141
1669
|
}, destroyed: function() {
|
|
1142
1670
|
window.removeEventListener("mousemove", this.moveCrop), window.removeEventListener("mouseup", this.leaveCrop), window.removeEventListener("touchmove", this.moveCrop), window.removeEventListener("touchend", this.leaveCrop);
|
|
1143
1671
|
} };
|
|
1144
1672
|
u(1);
|
|
1145
|
-
var L = function(i, t,
|
|
1673
|
+
var L = function(i, t, o, r, l, g, m, y) {
|
|
1146
1674
|
var C, c = typeof i == "function" ? i.options : i;
|
|
1147
|
-
if (t && (c.render = t, c.staticRenderFns =
|
|
1148
|
-
(
|
|
1675
|
+
if (t && (c.render = t, c.staticRenderFns = o, c._compiled = !0), r && (c.functional = !0), g && (c._scopeId = "data-v-" + g), m ? (C = function(f) {
|
|
1676
|
+
(f = f || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || typeof __VUE_SSR_CONTEXT__ > "u" || (f = __VUE_SSR_CONTEXT__), l && l.call(this, f), f && f._registeredComponents && f._registeredComponents.add(m);
|
|
1149
1677
|
}, c._ssrRegister = C) : l && (C = y ? function() {
|
|
1150
1678
|
l.call(this, this.$root.$options.shadowRoot);
|
|
1151
1679
|
} : l), C)
|
|
1152
1680
|
if (c.functional) {
|
|
1153
1681
|
c._injectStyles = C;
|
|
1154
1682
|
var h = c.render;
|
|
1155
|
-
c.render = function(
|
|
1156
|
-
return C.call(w), h(
|
|
1683
|
+
c.render = function(f, w) {
|
|
1684
|
+
return C.call(w), h(f, w);
|
|
1157
1685
|
};
|
|
1158
1686
|
} else {
|
|
1159
1687
|
var p = c.beforeCreate;
|
|
1160
1688
|
c.beforeCreate = p ? [].concat(p, C) : [C];
|
|
1161
1689
|
}
|
|
1162
1690
|
return { exports: i, options: c };
|
|
1163
|
-
}(
|
|
1691
|
+
}(S, d, [], !1, null, "6dae58fd", null);
|
|
1164
1692
|
L.options.__file = "src/vue-cropper.vue";
|
|
1165
1693
|
var k = L.exports;
|
|
1166
|
-
u.d(a, "VueCropper", function() {
|
|
1167
|
-
return k;
|
|
1168
|
-
});
|
|
1169
|
-
var T = function(i) {
|
|
1170
|
-
i.component("VueCropper", k);
|
|
1171
|
-
};
|
|
1172
|
-
typeof window < "u" && window.Vue && T(window.Vue), a.default = { version: "0.5.5", install: T, VueCropper: k, vueCropper: k };
|
|
1173
|
-
}]);
|
|
1174
|
-
});
|
|
1175
|
-
})(U);
|
|
1176
|
-
const pe = {
|
|
1177
|
-
data() {
|
|
1178
|
-
return {
|
|
1179
|
-
width: "800px",
|
|
1180
|
-
visible: !1,
|
|
1181
|
-
id: null,
|
|
1182
|
-
confirmLoading: !1,
|
|
1183
|
-
fileList: [],
|
|
1184
|
-
uploading: !1,
|
|
1185
|
-
options: {
|
|
1186
|
-
img: "",
|
|
1187
|
-
autoCrop: !0,
|
|
1188
|
-
autoCropWidth: 200,
|
|
1189
|
-
autoCropHeight: 200,
|
|
1190
|
-
fixedBox: !0
|
|
1191
|
-
},
|
|
1192
|
-
previews: {},
|
|
1193
|
-
fullscreen: !1
|
|
1194
|
-
};
|
|
1195
|
-
},
|
|
1196
|
-
computed: {
|
|
1197
|
-
modalStyle() {
|
|
1198
|
-
return this.fullscreen ? {
|
|
1199
|
-
width: "100%",
|
|
1200
|
-
dialogStyle: {
|
|
1201
|
-
top: "0px"
|
|
1202
|
-
}
|
|
1203
|
-
} : {
|
|
1204
|
-
width: this.width,
|
|
1205
|
-
dialogStyle: {
|
|
1206
|
-
top: "40px"
|
|
1207
|
-
}
|
|
1208
|
-
};
|
|
1209
|
-
}
|
|
1210
|
-
},
|
|
1211
|
-
components: {
|
|
1212
|
-
VueCropper: U.exports.VueCropper
|
|
1213
|
-
},
|
|
1214
|
-
methods: {
|
|
1215
|
-
toggleFullscreen() {
|
|
1216
|
-
this.fullscreen = !this.fullscreen;
|
|
1217
|
-
},
|
|
1218
|
-
edit(o) {
|
|
1219
|
-
this.fullscreen = !1, this.visible = !0, this.id = o;
|
|
1220
|
-
},
|
|
1221
|
-
close() {
|
|
1222
|
-
this.id = null, this.visible = !1;
|
|
1223
|
-
},
|
|
1224
|
-
cancelHandel() {
|
|
1225
|
-
this.close();
|
|
1226
|
-
},
|
|
1227
|
-
changeScale(o) {
|
|
1228
|
-
o = o || 1, this.$refs.cropper.changeScale(o);
|
|
1229
|
-
},
|
|
1230
|
-
rotateLeft() {
|
|
1231
|
-
this.$refs.cropper.rotateLeft();
|
|
1232
|
-
},
|
|
1233
|
-
rotateRight() {
|
|
1234
|
-
this.$refs.cropper.rotateRight();
|
|
1235
|
-
},
|
|
1236
|
-
beforeUpload(o) {
|
|
1237
|
-
this.fileList = o;
|
|
1238
|
-
const e = new FileReader();
|
|
1239
|
-
return e.readAsDataURL(o), e.onload = () => {
|
|
1240
|
-
this.options.img = e.result;
|
|
1241
|
-
}, !1;
|
|
1242
|
-
},
|
|
1243
|
-
finish(o) {
|
|
1244
|
-
o === "blob" ? (this.uploading = !0, this.$refs.cropper.getCropBlob((e) => {
|
|
1245
|
-
const n = new window.File([e], this.fileList.name, {
|
|
1246
|
-
type: this.fileList.type
|
|
1247
|
-
}), a = new FormData();
|
|
1248
|
-
a.append("file", n), V(a).then((u) => {
|
|
1249
|
-
u.success ? this.updateAvatar(u.data) : (this.uploading = !1, this.$message.error(u.message));
|
|
1250
|
-
});
|
|
1251
|
-
})) : this.$refs.cropper.getCropData((e) => {
|
|
1694
|
+
u.d(a, "VueCropper", function() {
|
|
1695
|
+
return k;
|
|
1252
1696
|
});
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
const e = {
|
|
1256
|
-
id: this.id,
|
|
1257
|
-
avatar: o
|
|
1697
|
+
var T = function(i) {
|
|
1698
|
+
i.component("VueCropper", k);
|
|
1258
1699
|
};
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
},
|
|
1265
|
-
realTime(o) {
|
|
1266
|
-
this.previews = o;
|
|
1267
|
-
},
|
|
1268
|
-
doEvent(o) {
|
|
1269
|
-
let e = o.item.functionName;
|
|
1270
|
-
this[e] && this[e]();
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
};
|
|
1274
|
-
var ge = function() {
|
|
1275
|
-
var e = this, n = e._self._c;
|
|
1276
|
-
return n("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) {
|
|
1277
|
-
e.visible = a;
|
|
1278
|
-
}, closed: e.cancelHandel } }, [n("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" }), n("div", { staticClass: "gd-model-body", class: e.fullscreen ? "modal-bodyq" : "modal-body" }, [n("el-row", [n("el-col", { style: { height: "350px" }, attrs: { xs: 24, md: 12 } }, [n("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), n("el-col", { style: { height: "350px" }, attrs: { xs: 24, md: 12 } }, [n("div", { staticClass: "avatar-upload-preview" }, [n("img", { style: e.previews.img, attrs: { src: e.previews.url } })])])], 1), n("br"), n("el-row", [n("el-col", { attrs: { lg: 3, md: 3 } }, [n("el-upload", { attrs: { name: "file", action: "", beforeUpload: e.beforeUpload, showUploadList: !1 } }, [n("el-button", { staticClass: "el-icon-upload2" }, [e._v(e._s(e.$i18nt("gd.account.selectPicture", "\u9009\u62E9\u56FE\u7247")))])], 1)], 1), n("el-col", { attrs: { lg: { span: 1, offset: 2 }, md: 2 } }, [n("el-button", { staticClass: "el-icon-plus", on: { click: function(a) {
|
|
1279
|
-
return e.changeScale(1);
|
|
1280
|
-
} } })], 1), n("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [n("el-button", { staticClass: "el-icon-minus", on: { click: function(a) {
|
|
1281
|
-
return e.changeScale(-1);
|
|
1282
|
-
} } })], 1), n("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [n("el-button", { staticClass: "el-icon-refresh-left", on: { click: e.rotateLeft } })], 1), n("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [n("el-button", { staticClass: "el-icon-refresh-right", on: { click: e.rotateRight } })], 1), n("el-col", { attrs: { lg: { span: 2, offset: 6 }, md: 2 } }, [n("el-button", { attrs: { type: "primary", loading: e.uploading }, on: { click: function(a) {
|
|
1283
|
-
return e.finish("blob");
|
|
1284
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.save")) + " ")])], 1)], 1)], 1)], 1);
|
|
1285
|
-
}, fe = [], me = /* @__PURE__ */ H(
|
|
1286
|
-
pe,
|
|
1287
|
-
ge,
|
|
1288
|
-
fe,
|
|
1289
|
-
!1,
|
|
1290
|
-
null,
|
|
1291
|
-
"1fe51f00",
|
|
1292
|
-
null,
|
|
1293
|
-
null
|
|
1294
|
-
);
|
|
1295
|
-
const ve = me.exports;
|
|
1296
|
-
const we = {
|
|
1297
|
-
props: {
|
|
1298
|
-
height: {
|
|
1299
|
-
type: Number,
|
|
1300
|
-
default: 100
|
|
1301
|
-
}
|
|
1302
|
-
},
|
|
1303
|
-
name: "GdBaseSettings",
|
|
1304
|
-
components: {
|
|
1305
|
-
AvatarModal: ve
|
|
1306
|
-
},
|
|
1700
|
+
typeof window < "u" && window.Vue && T(window.Vue), a.default = { version: "0.5.5", install: T, VueCropper: k, vueCropper: k };
|
|
1701
|
+
}]);
|
|
1702
|
+
});
|
|
1703
|
+
})(N);
|
|
1704
|
+
const Se = {
|
|
1307
1705
|
data() {
|
|
1308
1706
|
return {
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
{
|
|
1318
|
-
id: 2,
|
|
1319
|
-
name: "\u82F1\u8BED(\u7F8E\u56FD)",
|
|
1320
|
-
transKey: "gd.settings.englishLanguage"
|
|
1321
|
-
}
|
|
1322
|
-
],
|
|
1323
|
-
timezoneData: [],
|
|
1324
|
-
currencyData: [],
|
|
1325
|
-
option: {
|
|
1326
|
-
img: null,
|
|
1327
|
-
info: !0,
|
|
1328
|
-
size: 1,
|
|
1329
|
-
outputType: "jpeg",
|
|
1330
|
-
canScale: !1,
|
|
1707
|
+
width: "800px",
|
|
1708
|
+
visible: !1,
|
|
1709
|
+
id: null,
|
|
1710
|
+
confirmLoading: !1,
|
|
1711
|
+
fileList: [],
|
|
1712
|
+
uploading: !1,
|
|
1713
|
+
options: {
|
|
1714
|
+
img: "",
|
|
1331
1715
|
autoCrop: !0,
|
|
1332
|
-
autoCropWidth:
|
|
1333
|
-
autoCropHeight:
|
|
1334
|
-
fixedBox: !0
|
|
1335
|
-
fixed: !0,
|
|
1336
|
-
fixedNumber: [1, 1],
|
|
1337
|
-
birthdayString: ""
|
|
1716
|
+
autoCropWidth: 200,
|
|
1717
|
+
autoCropHeight: 200,
|
|
1718
|
+
fixedBox: !0
|
|
1338
1719
|
},
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
rules: {}
|
|
1342
|
-
};
|
|
1343
|
-
},
|
|
1344
|
-
computed: {
|
|
1345
|
-
getHeight() {
|
|
1346
|
-
return this.height;
|
|
1347
|
-
},
|
|
1348
|
-
...W(["userInfo", "locale", "language"])
|
|
1349
|
-
},
|
|
1350
|
-
mounted() {
|
|
1351
|
-
this.initUserInfo();
|
|
1352
|
-
},
|
|
1353
|
-
methods: {
|
|
1354
|
-
changeLanguage(o) {
|
|
1355
|
-
let e = this.langData.filter((n) => n.id == o)[0];
|
|
1356
|
-
this.$store.dispatch("Language", e.code);
|
|
1357
|
-
},
|
|
1358
|
-
initUserInfo() {
|
|
1359
|
-
this.spinning = !0, setTimeout(() => {
|
|
1360
|
-
this.languageChange(), this.timezoneChange(), this.currencyChange(), this.ruleForm = {
|
|
1361
|
-
birthday: this.userInfo.birthday ? this.userInfo.birthday : void 0,
|
|
1362
|
-
nickName: this.userInfo.nickname,
|
|
1363
|
-
gender: this.userInfo.gender.toString(),
|
|
1364
|
-
email: this.userInfo.email,
|
|
1365
|
-
phone: this.userInfo.phone,
|
|
1366
|
-
tel: this.userInfo.tel,
|
|
1367
|
-
languageId: this.userInfo.languageid,
|
|
1368
|
-
currencyId: this.userInfo.currencyid,
|
|
1369
|
-
timezoneId: this.userInfo.timezoneid
|
|
1370
|
-
}, this.birthdayString = this.userInfo.birthday, this.userInfo.avatar != null ? B({
|
|
1371
|
-
id: this.userInfo.avatar
|
|
1372
|
-
}).then((o) => {
|
|
1373
|
-
this.option.img = window.URL.createObjectURL(new Blob([o]));
|
|
1374
|
-
}).catch((o) => {
|
|
1375
|
-
this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A" + o.message);
|
|
1376
|
-
}) : this.option.img = "/avatar2.jpg", this.getSexData(), this.spinning = !1;
|
|
1377
|
-
}, 100);
|
|
1378
|
-
},
|
|
1379
|
-
onChange(o, e) {
|
|
1380
|
-
console.log(o), this.birthdayString = o;
|
|
1381
|
-
},
|
|
1382
|
-
currencyChange() {
|
|
1383
|
-
ne().then((o) => {
|
|
1384
|
-
o.success && (this.currencyData = o.data.rows, j.ls.set("currencyData", o.data.rows));
|
|
1385
|
-
});
|
|
1386
|
-
},
|
|
1387
|
-
timezoneChange() {
|
|
1388
|
-
re().then((o) => {
|
|
1389
|
-
o.success && (this.timezoneData = o.data.rows);
|
|
1390
|
-
});
|
|
1391
|
-
},
|
|
1392
|
-
languageChange() {
|
|
1393
|
-
ie().then((o) => {
|
|
1394
|
-
o.success && (this.langData = o.data.rows);
|
|
1395
|
-
});
|
|
1396
|
-
},
|
|
1397
|
-
submitUserInfo() {
|
|
1398
|
-
this.spinning || this.$refs.ruleForm.validate((o) => {
|
|
1399
|
-
o && (this.spinning = !0, this.ruleForm.birthday = this.birthdayString, this.ruleForm.id = this.userInfo.id, q(this.ruleForm).then((e) => {
|
|
1400
|
-
if (e.success) {
|
|
1401
|
-
let n = this.langData.filter((a) => a.id == this.ruleForm.languageId)[0];
|
|
1402
|
-
this.$store.dispatch("Language", n.code), this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), setTimeout(() => {
|
|
1403
|
-
this.$store.dispatch("GetInfo").then(() => {
|
|
1404
|
-
});
|
|
1405
|
-
}, 500);
|
|
1406
|
-
} else
|
|
1407
|
-
this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message);
|
|
1408
|
-
this.spinning = !1;
|
|
1409
|
-
}));
|
|
1410
|
-
});
|
|
1411
|
-
},
|
|
1412
|
-
getSexData() {
|
|
1413
|
-
this.sexData = this.$options.filters.dictData("gender");
|
|
1414
|
-
},
|
|
1415
|
-
setavatar(o) {
|
|
1416
|
-
B({
|
|
1417
|
-
id: o
|
|
1418
|
-
}).then((e) => {
|
|
1419
|
-
this.option.img = window.URL.createObjectURL(new Blob([e]));
|
|
1420
|
-
}).catch((e) => {
|
|
1421
|
-
this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A" + e.message);
|
|
1422
|
-
}), this.$store.dispatch("GetInfo").then(() => {
|
|
1423
|
-
});
|
|
1424
|
-
}
|
|
1425
|
-
}
|
|
1426
|
-
};
|
|
1427
|
-
var xe = function() {
|
|
1428
|
-
var e = this, n = e._self._c;
|
|
1429
|
-
return n("div", { staticClass: "account-settings-info-view", staticStyle: { height: "100px" } }, [n("el-row", { attrs: { gutter: 16 } }, [n("el-col", { attrs: { md: 24, lg: 16 } }, [n("el-form", { ref: "ruleForm", attrs: { model: e.ruleForm, "label-width": "110px", "label-position": "top" }, nativeOn: { submit: function(a) {
|
|
1430
|
-
a.preventDefault();
|
|
1431
|
-
} } }, [n("el-form-item", { attrs: { label: e.$i18nt("gd.account.nickname", "\u6635\u79F0"), prop: "nickName" } }, [n("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.nickName, callback: function(a) {
|
|
1432
|
-
e.$set(e.ruleForm, "nickName", a);
|
|
1433
|
-
}, expression: "ruleForm.nickName" } })], 1), n("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") }] } }, [n("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) {
|
|
1434
|
-
e.$set(e.ruleForm, "birthday", a);
|
|
1435
|
-
}, expression: "ruleForm.birthday" } })], 1), n("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") }] } }, [n("el-radio-group", { model: { value: e.ruleForm.gender, callback: function(a) {
|
|
1436
|
-
e.$set(e.ruleForm, "gender", a);
|
|
1437
|
-
}, expression: "ruleForm.gender" } }, e._l(e.sexData, function(a, u) {
|
|
1438
|
-
return n("el-radio", { key: u, attrs: { label: a.code } }, [e._v(" " + e._s(a.name) + " ")]);
|
|
1439
|
-
}), 1)], 1), n("el-form-item", { attrs: { label: e.$i18nt("gd.account.phone", "\u624B\u673A\u53F7"), prop: "phone", rules: [
|
|
1440
|
-
{ required: !0, message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") },
|
|
1441
|
-
{
|
|
1442
|
-
pattern: /^1[3-9]\d{9}$/,
|
|
1443
|
-
message: this.$i18nt("gd.account.phoneInvalid", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801"),
|
|
1444
|
-
trigger: "blur"
|
|
1445
|
-
}
|
|
1446
|
-
] } }, [n("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.phone, callback: function(a) {
|
|
1447
|
-
e.$set(e.ruleForm, "phone", a);
|
|
1448
|
-
}, expression: "ruleForm.phone" } })], 1), n("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.account.tel", "\u7535\u8BDD"), prop: "tel" } }, [n("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.tel, callback: function(a) {
|
|
1449
|
-
e.$set(e.ruleForm, "tel", a);
|
|
1450
|
-
}, expression: "ruleForm.tel" } })], 1), n("el-form-item", { attrs: { label: e.$i18nt("gd.account.email", "\u7535\u5B50\u90AE\u4EF6"), prop: "email", rules: [
|
|
1451
|
-
{ required: !0, message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), trigger: "blur" },
|
|
1452
|
-
{ type: "email", message: e.$i18nt("gd.account.emailTip", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!"), trigger: ["blur", "change"] }
|
|
1453
|
-
] } }, [n("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.email, callback: function(a) {
|
|
1454
|
-
e.$set(e.ruleForm, "email", a);
|
|
1455
|
-
}, expression: "ruleForm.email" } })], 1), n("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") }] } }, [n("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) {
|
|
1456
|
-
e.$set(e.ruleForm, "languageId", a);
|
|
1457
|
-
}, expression: "ruleForm.languageId" } }, e._l(e.langData, function(a, u) {
|
|
1458
|
-
return n("el-option", { key: u, attrs: { value: a.id, label: a.name } });
|
|
1459
|
-
}), 1)], 1), n("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") }] } }, [n("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleForm.currencyId, callback: function(a) {
|
|
1460
|
-
e.$set(e.ruleForm, "currencyId", a);
|
|
1461
|
-
}, expression: "ruleForm.currencyId" } }, e._l(e.currencyData, function(a, u) {
|
|
1462
|
-
return n("el-option", { key: u, attrs: { value: a.id, label: a.name } });
|
|
1463
|
-
}), 1)], 1), n("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") }] } }, [n("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleForm.timezoneId, callback: function(a) {
|
|
1464
|
-
e.$set(e.ruleForm, "timezoneId", a);
|
|
1465
|
-
}, expression: "ruleForm.timezoneId" } }, e._l(e.timezoneData, function(a, u) {
|
|
1466
|
-
return n("el-option", { key: u, attrs: { value: a.id, label: a.name } });
|
|
1467
|
-
}), 1)], 1), n("el-form-item", [n("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), n("el-col", { style: { minHeight: "180px" }, attrs: { md: 24, lg: 8 } }, [n("div", { staticClass: "ant-upload-preview", on: { click: function(a) {
|
|
1468
|
-
return e.$refs.modal.edit(e.userInfo.id);
|
|
1469
|
-
} } }, [n("i", { staticClass: "el-icon-upload upload-icon" }), n("div", { staticClass: "mask" }, [n("i", { staticClass: "el-icon-plus" })]), n("img", { attrs: { src: e.option.img } })])])], 1), n("avatar-modal", { ref: "modal", on: { ok: e.setavatar } })], 1);
|
|
1470
|
-
}, Ce = [], be = /* @__PURE__ */ H(
|
|
1471
|
-
we,
|
|
1472
|
-
xe,
|
|
1473
|
-
Ce,
|
|
1474
|
-
!1,
|
|
1475
|
-
null,
|
|
1476
|
-
"685efc26",
|
|
1477
|
-
null,
|
|
1478
|
-
null
|
|
1479
|
-
);
|
|
1480
|
-
const F = be.exports;
|
|
1481
|
-
F.install = function(o) {
|
|
1482
|
-
o.component(F.name, F);
|
|
1483
|
-
};
|
|
1484
|
-
const ye = {
|
|
1485
|
-
name: "GdCustomSettings",
|
|
1486
|
-
data() {
|
|
1487
|
-
return {
|
|
1488
|
-
colorList: N,
|
|
1489
|
-
options: [],
|
|
1490
|
-
homePage: ["uvgsxjpu", "ujhmcamph", "uwcscihbx"],
|
|
1491
|
-
account: "",
|
|
1492
|
-
echartsList: [],
|
|
1493
|
-
value: 0,
|
|
1494
|
-
primaryColors: this.primaryColor,
|
|
1495
|
-
propOptions: [],
|
|
1496
|
-
propOptionsOld: [],
|
|
1497
|
-
list: null,
|
|
1498
|
-
listOptions: [],
|
|
1499
|
-
listOptionsOld: [],
|
|
1500
|
-
presentText: []
|
|
1720
|
+
previews: {},
|
|
1721
|
+
fullscreen: !1
|
|
1501
1722
|
};
|
|
1502
1723
|
},
|
|
1503
1724
|
computed: {
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
},
|
|
1510
|
-
...W(["userInfo", "addRouters", "theme", "primaryColor", "echartsColor", "systemInfo"])
|
|
1511
|
-
},
|
|
1512
|
-
watch: {
|
|
1513
|
-
primaryColor() {
|
|
1514
|
-
this.primaryColors = this.primaryColor;
|
|
1515
|
-
}
|
|
1516
|
-
},
|
|
1517
|
-
methods: {
|
|
1518
|
-
okColor(o) {
|
|
1519
|
-
this.$store.dispatch("EchartsColor", o), this.echartsList = [...o];
|
|
1520
|
-
},
|
|
1521
|
-
getColor() {
|
|
1522
|
-
this.echartsList = [...this.echartsColor];
|
|
1523
|
-
},
|
|
1524
|
-
renew() {
|
|
1525
|
-
let o = this, e = this.homePage, n = !1;
|
|
1526
|
-
if (e.length == 0 && (n = !0), e.length > 1 && (n = !0), !n) {
|
|
1527
|
-
o.$message.error(o.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
|
|
1528
|
-
return;
|
|
1529
|
-
}
|
|
1530
|
-
this.$confirm(
|
|
1531
|
-
this.$i18nt("gd.https.configThemeContent", "\u662F\u5426\u66F4\u65B0\u4E2A\u4EBA\u9996\u9875\u914D\u7F6E?"),
|
|
1532
|
-
this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"),
|
|
1533
|
-
{
|
|
1534
|
-
confirmButtonText: this.$i18nt("gd.https.saveOk", "\u786E\u5B9A\u4FDD\u5B58"),
|
|
1535
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
1536
|
-
showClose: !1,
|
|
1537
|
-
confirmButtonLoading: !1,
|
|
1538
|
-
cancelButtonLoading: !1,
|
|
1539
|
-
closeOnClickModal: !1,
|
|
1540
|
-
type: "warning",
|
|
1541
|
-
confirmButtonClass: "el-button--danger",
|
|
1542
|
-
customClass: "custom-alert",
|
|
1543
|
-
callback: () => {
|
|
1544
|
-
},
|
|
1545
|
-
beforeClose: (a, u, d) => {
|
|
1546
|
-
this.renewHand(a, u, d, this.homePage);
|
|
1547
|
-
}
|
|
1725
|
+
modalStyle() {
|
|
1726
|
+
return this.fullscreen ? {
|
|
1727
|
+
width: "100%",
|
|
1728
|
+
dialogStyle: {
|
|
1729
|
+
top: "0px"
|
|
1548
1730
|
}
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
})) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + $[0].message);
|
|
1564
|
-
});
|
|
1731
|
+
} : {
|
|
1732
|
+
width: this.width,
|
|
1733
|
+
dialogStyle: {
|
|
1734
|
+
top: "40px"
|
|
1735
|
+
}
|
|
1736
|
+
};
|
|
1737
|
+
}
|
|
1738
|
+
},
|
|
1739
|
+
components: {
|
|
1740
|
+
VueCropper: N.exports.VueCropper
|
|
1741
|
+
},
|
|
1742
|
+
methods: {
|
|
1743
|
+
toggleFullscreen() {
|
|
1744
|
+
this.fullscreen = !this.fullscreen;
|
|
1565
1745
|
},
|
|
1566
|
-
|
|
1567
|
-
this.
|
|
1746
|
+
edit(s) {
|
|
1747
|
+
this.fullscreen = !1, this.visible = !0, this.id = s;
|
|
1568
1748
|
},
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
if (this.options.length === 0) {
|
|
1572
|
-
this.geData().then(() => {
|
|
1573
|
-
if (this.presentText.length < this.homePage.length) {
|
|
1574
|
-
const u = this.options.filter((d) => d.code === this.homePage[0])[0];
|
|
1575
|
-
this.presentText = u ? this.presentText.concat([u.label]) : this.presentText;
|
|
1576
|
-
}
|
|
1577
|
-
e(this.options);
|
|
1578
|
-
});
|
|
1579
|
-
return;
|
|
1580
|
-
}
|
|
1581
|
-
this.getMenuListAll(a).then((u) => {
|
|
1582
|
-
if (this.presentText.length < this.homePage.length && n === 2) {
|
|
1583
|
-
this.presentText = this.presentText.concat([o.label]);
|
|
1584
|
-
const x = o.children.filter(($) => $.value === this.homePage[n])[0];
|
|
1585
|
-
this.presentText = x ? this.presentText.concat([x.label]) : this.presentText;
|
|
1586
|
-
}
|
|
1587
|
-
const d = this.$refs.cascader.presentText;
|
|
1588
|
-
this.presentText.length === this.homePage.length && d === null && (this.$refs.cascader.presentText = this.presentText.join(" / ")), e(u);
|
|
1589
|
-
});
|
|
1749
|
+
close() {
|
|
1750
|
+
this.id = null, this.visible = !1;
|
|
1590
1751
|
},
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
if (o.success) {
|
|
1594
|
-
let e = o.data.map((n) => {
|
|
1595
|
-
let a = this.userInfo.apps.filter((u) => u.code == n.code)[0];
|
|
1596
|
-
if (a != null)
|
|
1597
|
-
return n.leaf = a == null, n.value = n.code, n.label = this.$i18nt(`Dynamics.${n.transkey}`, n.name), n.loading = !1, n;
|
|
1598
|
-
});
|
|
1599
|
-
return e = e.filter((n) => n !== void 0), this.options = [...e], this.listOptionsOld = JSON.stringify(e), new Promise((n) => {
|
|
1600
|
-
n();
|
|
1601
|
-
});
|
|
1602
|
-
}
|
|
1603
|
-
});
|
|
1752
|
+
cancelHandel() {
|
|
1753
|
+
this.close();
|
|
1604
1754
|
},
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
let n = e[0].data, a = e[1].data;
|
|
1608
|
-
return n.map((u, d) => {
|
|
1609
|
-
let x = a.filter(($) => $.path == u.router);
|
|
1610
|
-
return n[d].value = u.router, n[d].label = this.$i18nt(`Dynamics.${u.transkey}`, u.name), n[d].leaf = u.children.length == 0, n[d].disabled = x.length == 0, u.children.length == 0 ? n[d].children = null : u.children.map(($, I) => {
|
|
1611
|
-
let L = a.filter((k) => k.path == $.router);
|
|
1612
|
-
n[d].children[I].value = $.router, n[d].children[I].label = this.$i18nt(`Dynamics.${$.transkey}`, $.name), n[d].children[I].children = [], n[d].children[I].leaf = !0, n[d].children[I].disabled = L.length == 0;
|
|
1613
|
-
}), u;
|
|
1614
|
-
}), n.map((u) => {
|
|
1615
|
-
u.children = u.children ? u.children.filter((d) => d.disabled == !1) : [];
|
|
1616
|
-
}), n;
|
|
1617
|
-
});
|
|
1755
|
+
changeScale(s) {
|
|
1756
|
+
s = s || 1, this.$refs.cropper.changeScale(s);
|
|
1618
1757
|
},
|
|
1619
|
-
|
|
1620
|
-
|
|
1758
|
+
rotateLeft() {
|
|
1759
|
+
this.$refs.cropper.rotateLeft();
|
|
1621
1760
|
},
|
|
1622
|
-
|
|
1623
|
-
|
|
1761
|
+
rotateRight() {
|
|
1762
|
+
this.$refs.cropper.rotateRight();
|
|
1624
1763
|
},
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1764
|
+
beforeUpload(s) {
|
|
1765
|
+
this.fileList = s;
|
|
1766
|
+
const e = new FileReader();
|
|
1767
|
+
return e.readAsDataURL(s), e.onload = () => {
|
|
1768
|
+
this.options.img = e.result;
|
|
1769
|
+
}, !1;
|
|
1628
1770
|
},
|
|
1629
|
-
|
|
1630
|
-
|
|
1771
|
+
finish(s) {
|
|
1772
|
+
s === "blob" ? (this.uploading = !0, this.$refs.cropper.getCropBlob((e) => {
|
|
1773
|
+
const n = new window.File([e], this.fileList.name, {
|
|
1774
|
+
type: this.fileList.type
|
|
1775
|
+
}), a = new FormData();
|
|
1776
|
+
a.append("file", n), te(a).then((u) => {
|
|
1777
|
+
u.success ? this.updateAvatar(u.data) : (this.uploading = !1, this.$message.error(u.message));
|
|
1778
|
+
});
|
|
1779
|
+
})) : this.$refs.cropper.getCropData((e) => {
|
|
1780
|
+
});
|
|
1631
1781
|
},
|
|
1632
|
-
|
|
1633
|
-
const e =
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
const a = this.$message({
|
|
1637
|
-
message: e.$i18nt("gd.theme.switchingTopics"),
|
|
1638
|
-
duration: 0,
|
|
1639
|
-
iconClass: "el-icon-loading"
|
|
1640
|
-
}), u = this.getThemeCluster(o.replace("#", "")), d = this.getThemeCluster(n.replace("#", "")), x = (L, k) => () => {
|
|
1641
|
-
const T = this.getThemeCluster(this.primaryColor.replace("#", "")), i = this.updateStyle(this[L], T, u);
|
|
1642
|
-
let t = document.getElementById(k);
|
|
1643
|
-
t || (t = document.createElement("style"), t.setAttribute("id", k), document.head.appendChild(t)), t.innerText = i;
|
|
1782
|
+
updateAvatar(s) {
|
|
1783
|
+
const e = {
|
|
1784
|
+
id: this.id,
|
|
1785
|
+
avatar: s
|
|
1644
1786
|
};
|
|
1645
|
-
|
|
1646
|
-
this.
|
|
1647
|
-
})
|
|
1648
|
-
|
|
1649
|
-
return new RegExp(n, "i").test(k) && !/Chalk Variables/.test(k);
|
|
1650
|
-
}).forEach((L) => {
|
|
1651
|
-
const { innerText: k } = L;
|
|
1652
|
-
typeof k == "string" && (L.innerText = this.updateStyle(k, d, u));
|
|
1653
|
-
}), this.$store.dispatch("ToggleColor", o), window.document.body.style = `--color:${o}`, this.$nextTick(() => {
|
|
1654
|
-
setTimeout(() => {
|
|
1655
|
-
a.close();
|
|
1656
|
-
}, 200);
|
|
1787
|
+
J(e).then((n) => {
|
|
1788
|
+
this.uploading = !1, n.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") + n.message), this.$emit("ok", s);
|
|
1789
|
+
}).catch((n) => {
|
|
1790
|
+
this.$emit("ok", s);
|
|
1657
1791
|
});
|
|
1658
1792
|
},
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
return e.forEach((u, d) => {
|
|
1662
|
-
a = a.replace(new RegExp(u, "ig"), n[d]);
|
|
1663
|
-
}), a;
|
|
1664
|
-
},
|
|
1665
|
-
getThemeCluster(o) {
|
|
1666
|
-
const e = (u, d) => {
|
|
1667
|
-
let x = parseInt(u.slice(0, 2), 16), $ = parseInt(u.slice(2, 4), 16), I = parseInt(u.slice(4, 6), 16);
|
|
1668
|
-
return d === 0 ? [x, $, I].join(",") : (x += Math.round(d * (255 - x)), $ += Math.round(d * (255 - $)), I += Math.round(d * (255 - I)), x = x.toString(16), $ = $.toString(16), I = I.toString(16), `#${x}${$}${I}`);
|
|
1669
|
-
}, n = (u, d) => {
|
|
1670
|
-
let x = parseInt(u.slice(0, 2), 16), $ = parseInt(u.slice(2, 4), 16), I = parseInt(u.slice(4, 6), 16);
|
|
1671
|
-
return x = Math.round((1 - d) * x), $ = Math.round((1 - d) * $), I = Math.round((1 - d) * I), x = x.toString(16), $ = $.toString(16), I = I.toString(16), `#${x}${$}${I}`;
|
|
1672
|
-
}, a = [o];
|
|
1673
|
-
for (let u = 0; u <= 9; u++)
|
|
1674
|
-
a.push(e(o, Number((u / 10).toFixed(2))));
|
|
1675
|
-
return a.push(n(o, 0.1)), a;
|
|
1793
|
+
realTime(s) {
|
|
1794
|
+
this.previews = s;
|
|
1676
1795
|
},
|
|
1677
|
-
|
|
1678
|
-
let
|
|
1679
|
-
|
|
1680
|
-
...d
|
|
1681
|
-
}), !0)), u);
|
|
1682
|
-
return a(this.propOptions), n;
|
|
1796
|
+
doEvent(s) {
|
|
1797
|
+
let e = s.item.functionName;
|
|
1798
|
+
this[e] && this[e]();
|
|
1683
1799
|
}
|
|
1684
|
-
},
|
|
1685
|
-
mounted() {
|
|
1686
|
-
this.getColor(), this.init(), this.primaryColor && (this.primaryColors = this.primaryColor);
|
|
1687
1800
|
}
|
|
1688
1801
|
};
|
|
1689
|
-
var
|
|
1802
|
+
var Ie = function() {
|
|
1690
1803
|
var e = this, n = e._self._c;
|
|
1691
|
-
return n("
|
|
1692
|
-
e.
|
|
1693
|
-
},
|
|
1694
|
-
e.
|
|
1695
|
-
}
|
|
1696
|
-
return
|
|
1697
|
-
}), n("span", { staticClass: "
|
|
1698
|
-
return e
|
|
1699
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
_e,
|
|
1705
|
-
$e,
|
|
1804
|
+
return n("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) {
|
|
1805
|
+
e.visible = a;
|
|
1806
|
+
}, closed: e.cancelHandel } }, [n("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" }), n("div", { staticClass: "gd-model-body", class: e.fullscreen ? "modal-bodyq" : "modal-body" }, [n("el-row", [n("el-col", { style: { height: "350px" }, attrs: { xs: 24, md: 12 } }, [n("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), n("el-col", { style: { height: "350px" }, attrs: { xs: 24, md: 12 } }, [n("div", { staticClass: "avatar-upload-preview" }, [n("img", { style: e.previews.img, attrs: { src: e.previews.url } })])])], 1), n("br"), n("el-row", [n("el-col", { attrs: { lg: 3, md: 3 } }, [n("el-upload", { attrs: { name: "file", action: "", beforeUpload: e.beforeUpload, showUploadList: !1 } }, [n("el-button", { staticClass: "el-icon-upload2" }, [e._v(e._s(e.$i18nt("gd.account.selectPicture", "\u9009\u62E9\u56FE\u7247")))])], 1)], 1), n("el-col", { attrs: { lg: { span: 1, offset: 2 }, md: 2 } }, [n("el-button", { staticClass: "el-icon-plus", on: { click: function(a) {
|
|
1807
|
+
return e.changeScale(1);
|
|
1808
|
+
} } })], 1), n("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [n("el-button", { staticClass: "el-icon-minus", on: { click: function(a) {
|
|
1809
|
+
return e.changeScale(-1);
|
|
1810
|
+
} } })], 1), n("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [n("el-button", { staticClass: "el-icon-refresh-left", on: { click: e.rotateLeft } })], 1), n("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [n("el-button", { staticClass: "el-icon-refresh-right", on: { click: e.rotateRight } })], 1), n("el-col", { attrs: { lg: { span: 2, offset: 6 }, md: 2 } }, [n("el-button", { attrs: { type: "primary", loading: e.uploading }, on: { click: function(a) {
|
|
1811
|
+
return e.finish("blob");
|
|
1812
|
+
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.save")) + " ")])], 1)], 1)], 1)], 1);
|
|
1813
|
+
}, ke = [], Le = /* @__PURE__ */ H(
|
|
1814
|
+
Se,
|
|
1815
|
+
Ie,
|
|
1816
|
+
ke,
|
|
1706
1817
|
!1,
|
|
1707
1818
|
null,
|
|
1708
|
-
"
|
|
1819
|
+
"1fe51f00",
|
|
1709
1820
|
null,
|
|
1710
1821
|
null
|
|
1711
1822
|
);
|
|
1712
|
-
const
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
};
|
|
1716
|
-
const
|
|
1823
|
+
const Te = Le.exports, Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1824
|
+
__proto__: null,
|
|
1825
|
+
default: Te
|
|
1826
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1827
|
+
const Ee = {
|
|
1717
1828
|
props: {
|
|
1718
1829
|
isShow: {
|
|
1719
1830
|
type: Boolean,
|
|
@@ -1774,14 +1885,14 @@ const Se = {
|
|
|
1774
1885
|
toggleFullscreen() {
|
|
1775
1886
|
this.fullscreen = !this.fullscreen;
|
|
1776
1887
|
},
|
|
1777
|
-
open(
|
|
1778
|
-
this.fullscreen = !1, this.userId =
|
|
1888
|
+
open(s, e, n) {
|
|
1889
|
+
this.fullscreen = !1, this.userId = s, this.code = e, this.num = n, this.num == 1 ? this.getConfigInfo() : this.$nextTick(() => {
|
|
1779
1890
|
this.formUpdPwd.setFieldsValue({
|
|
1780
1891
|
account: this.userId
|
|
1781
1892
|
});
|
|
1782
1893
|
}), this.visible = !0;
|
|
1783
1894
|
},
|
|
1784
|
-
getConfigInfo(
|
|
1895
|
+
getConfigInfo(s) {
|
|
1785
1896
|
K().then((e) => {
|
|
1786
1897
|
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(
|
|
1787
1898
|
`^(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])(?=.*[~!@#$%^&*])[\\da-zA-Z~!@#$%^&*]{${this.lenMin},${this.lenMax}}$`
|
|
@@ -1789,8 +1900,8 @@ const Se = {
|
|
|
1789
1900
|
});
|
|
1790
1901
|
},
|
|
1791
1902
|
handleSubmit() {
|
|
1792
|
-
this.$refs.ruleForm.validate((
|
|
1793
|
-
if (
|
|
1903
|
+
this.$refs.ruleForm.validate((s) => {
|
|
1904
|
+
if (s) {
|
|
1794
1905
|
this.confirmLoading = !0;
|
|
1795
1906
|
let e;
|
|
1796
1907
|
this.num == 1 ? e = {
|
|
@@ -1801,7 +1912,7 @@ const Se = {
|
|
|
1801
1912
|
account: this.ruleForm.account,
|
|
1802
1913
|
password: this.ruleForm.password,
|
|
1803
1914
|
corpCode: this.code
|
|
1804
|
-
}, (this.num == 1 ?
|
|
1915
|
+
}, (this.num == 1 ? Q : ee)(e).then((a) => {
|
|
1805
1916
|
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);
|
|
1806
1917
|
}).finally((a) => {
|
|
1807
1918
|
this.confirmLoading = !1;
|
|
@@ -1812,19 +1923,19 @@ const Se = {
|
|
|
1812
1923
|
handleCancel() {
|
|
1813
1924
|
this.$refs.ruleForm.resetFields(), this.visible = !1;
|
|
1814
1925
|
},
|
|
1815
|
-
compareToFirstPassword(
|
|
1926
|
+
compareToFirstPassword(s, e, n) {
|
|
1816
1927
|
e && e !== this.ruleForm.newPassword ? n(this.$i18nt("gd.account.repeatPawTiperr", " \u8BF7\u786E\u8BA4\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u7684\u4E00\u81F4\u6027")) : n();
|
|
1817
1928
|
},
|
|
1818
|
-
oldtPassword(
|
|
1929
|
+
oldtPassword(s, e, n) {
|
|
1819
1930
|
e && e === this.ruleForm.password ? n(this.$i18nt("gd.account.repeatPawTipodl", "\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E0E\u539F\u5BC6\u7801\u91CD\u590D")) : n();
|
|
1820
1931
|
},
|
|
1821
|
-
doEvent(
|
|
1822
|
-
let e =
|
|
1932
|
+
doEvent(s) {
|
|
1933
|
+
let e = s.item.functionName;
|
|
1823
1934
|
this[e] && this[e]();
|
|
1824
1935
|
}
|
|
1825
1936
|
}
|
|
1826
1937
|
};
|
|
1827
|
-
var
|
|
1938
|
+
var Oe = function() {
|
|
1828
1939
|
var e = this, n = e._self._c;
|
|
1829
1940
|
return n("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) {
|
|
1830
1941
|
e.visible = a;
|
|
@@ -1856,18 +1967,21 @@ var ke = function() {
|
|
|
1856
1967
|
}, expression: "ruleForm.account" } })], 1), n("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") }] } }, [n("el-input", { attrs: { maxlength: 18, placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), "show-password": "" }, model: { value: e.ruleForm.password, callback: function(a) {
|
|
1857
1968
|
e.$set(e.ruleForm, "password", a);
|
|
1858
1969
|
}, expression: "ruleForm.password" } })], 1)], 1)])], 1)], 1);
|
|
1859
|
-
},
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1970
|
+
}, He = [], We = /* @__PURE__ */ H(
|
|
1971
|
+
Ee,
|
|
1972
|
+
Oe,
|
|
1973
|
+
He,
|
|
1863
1974
|
!1,
|
|
1864
1975
|
null,
|
|
1865
1976
|
"1d4e1c11",
|
|
1866
1977
|
null,
|
|
1867
1978
|
null
|
|
1868
1979
|
);
|
|
1869
|
-
const
|
|
1870
|
-
|
|
1980
|
+
const U = We.exports, Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1981
|
+
__proto__: null,
|
|
1982
|
+
default: U
|
|
1983
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1984
|
+
const Pe = {
|
|
1871
1985
|
props: {
|
|
1872
1986
|
isClear: {
|
|
1873
1987
|
type: Number,
|
|
@@ -1875,7 +1989,7 @@ const Ae = {
|
|
|
1875
1989
|
}
|
|
1876
1990
|
},
|
|
1877
1991
|
components: {
|
|
1878
|
-
UpdPwd:
|
|
1992
|
+
UpdPwd: U
|
|
1879
1993
|
},
|
|
1880
1994
|
data() {
|
|
1881
1995
|
return {
|
|
@@ -1916,12 +2030,12 @@ const Ae = {
|
|
|
1916
2030
|
mounted() {
|
|
1917
2031
|
},
|
|
1918
2032
|
methods: {
|
|
1919
|
-
open(
|
|
1920
|
-
this.num = e, this.visible = !0, this.titleWidth = this.language == "zh_CN" ? 350 + "px" : 504 + "px", this.num == 1 && this.getWeChat(
|
|
2033
|
+
open(s, e) {
|
|
2034
|
+
this.num = e, this.visible = !0, this.titleWidth = this.language == "zh_CN" ? 350 + "px" : 504 + "px", this.num == 1 && this.getWeChat(s);
|
|
1921
2035
|
},
|
|
1922
|
-
getWeChat(
|
|
2036
|
+
getWeChat(s) {
|
|
1923
2037
|
let e = this;
|
|
1924
|
-
|
|
2038
|
+
s.data.forEach((n, a) => {
|
|
1925
2039
|
n.code == "GDS_ENTERPRISE_WECHAT_CropID" && (e.appId = n.value), n.code == "GDS_ENTERPRISE_WECHAT_AgentId" && (e.agentId = n.value), n.code == "GDS_ENTERPRISE_WECHAT_Redirect_URL" && (e.redirectURL = n.value);
|
|
1926
2040
|
}), setTimeout(() => {
|
|
1927
2041
|
e.wwLogin = ww.createWWLoginPanel({
|
|
@@ -1952,146 +2066,28 @@ const Ae = {
|
|
|
1952
2066
|
}
|
|
1953
2067
|
}
|
|
1954
2068
|
};
|
|
1955
|
-
var
|
|
2069
|
+
var Xe = function() {
|
|
1956
2070
|
var e = this, n = e._self._c;
|
|
1957
2071
|
return n("div", [n("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) {
|
|
1958
2072
|
e.visible = a;
|
|
1959
2073
|
}, closed: e.handleCancel } }, [n("div", { staticClass: "main", style: e.style }, [e.num == 1 ? n("div", [n("div", { ref: "wx_qrcode", style: e.num1 == 0 ? "height: 290px;" : "height: 290px", attrs: { id: "wx_qrcode" } }), n("div", { class: e.num1 == 0 ? "div_top" : "div_topno" }), n("div", { class: e.num1 == 0 ? "div_bottom" : "" })]) : e._e()])]), n("upd-pwd", { ref: "updPwd" })], 1);
|
|
1960
|
-
},
|
|
1961
|
-
|
|
1962
|
-
Ee,
|
|
1963
|
-
Oe,
|
|
1964
|
-
!1,
|
|
1965
|
-
null,
|
|
1966
|
-
"55ede8aa",
|
|
1967
|
-
null,
|
|
1968
|
-
null
|
|
1969
|
-
);
|
|
1970
|
-
const We = He.exports;
|
|
1971
|
-
const Me = {
|
|
1972
|
-
name: "GdSecuritySettings",
|
|
1973
|
-
components: {
|
|
1974
|
-
UpdPwd: z,
|
|
1975
|
-
weChatBind: We
|
|
1976
|
-
},
|
|
1977
|
-
data() {
|
|
1978
|
-
return {
|
|
1979
|
-
isShow: !1,
|
|
1980
|
-
num: 0,
|
|
1981
|
-
wxUserId: null,
|
|
1982
|
-
obj: {},
|
|
1983
|
-
appId: "",
|
|
1984
|
-
agentId: "",
|
|
1985
|
-
redirectURL: "",
|
|
1986
|
-
enterpriseNum: 0,
|
|
1987
|
-
bindTitle: "\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1",
|
|
1988
|
-
dicsTitle: ""
|
|
1989
|
-
};
|
|
1990
|
-
},
|
|
1991
|
-
watch: {
|
|
1992
|
-
language(o, e) {
|
|
1993
|
-
this.changeLanguage();
|
|
1994
|
-
},
|
|
1995
|
-
userInfo(o, e) {
|
|
1996
|
-
this.changUserInfo();
|
|
1997
|
-
}
|
|
1998
|
-
},
|
|
1999
|
-
created() {
|
|
2000
|
-
this.init();
|
|
2001
|
-
},
|
|
2002
|
-
mounted() {
|
|
2003
|
-
},
|
|
2004
|
-
computed: {
|
|
2005
|
-
...W(["userInfo", "language"])
|
|
2006
|
-
},
|
|
2007
|
-
methods: {
|
|
2008
|
-
updPwd() {
|
|
2009
|
-
this.$refs.updPwd.open(this.userInfo.account, null, 1);
|
|
2010
|
-
},
|
|
2011
|
-
bind() {
|
|
2012
|
-
this.$refs.weChatBind.open(this.obj, 1);
|
|
2013
|
-
},
|
|
2014
|
-
getConfigInfo() {
|
|
2015
|
-
ee({
|
|
2016
|
-
code: "GDS_ENTERPRISE_WECHAT_LOGIN"
|
|
2017
|
-
}).then((e) => {
|
|
2018
|
-
this.enterpriseNum = e.data.value;
|
|
2019
|
-
});
|
|
2020
|
-
},
|
|
2021
|
-
getConfigsBy() {
|
|
2022
|
-
te({
|
|
2023
|
-
strCodes: "GDS_ENTERPRISE_WECHAT_CropID,GDS_ENTERPRISE_WECHAT_AgentId,GDS_ENTERPRISE_WECHAT_Redirect_URL"
|
|
2024
|
-
}).then((e) => {
|
|
2025
|
-
e.success && (this.obj = e);
|
|
2026
|
-
});
|
|
2027
|
-
},
|
|
2028
|
-
getData() {
|
|
2029
|
-
ce().then((o) => {
|
|
2030
|
-
this.wxuserid = o.data.wxuserid;
|
|
2031
|
-
});
|
|
2032
|
-
},
|
|
2033
|
-
changeLanguage() {
|
|
2034
|
-
this.init();
|
|
2035
|
-
},
|
|
2036
|
-
changUserInfo() {
|
|
2037
|
-
this.init();
|
|
2038
|
-
},
|
|
2039
|
-
init() {
|
|
2040
|
-
this.wxuserid = this.userInfo.wxuserid, this.getConfigInfo(), this.getData(), this.getConfigsBy();
|
|
2041
|
-
},
|
|
2042
|
-
getWeChat(o, e) {
|
|
2043
|
-
let n = this;
|
|
2044
|
-
o.data.forEach((a, u) => {
|
|
2045
|
-
a.code == "GDS_ENTERPRISE_WECHAT_CropID" && (n.appId = a.value), a.code == "GDS_ENTERPRISE_WECHAT_AgentId" && (n.agentId = a.value), a.code == "GDS_ENTERPRISE_WECHAT_Redirect_URL" && (n.redirectURL = a.value);
|
|
2046
|
-
}), setTimeout(() => {
|
|
2047
|
-
n.wwLogin = ww.createWWLoginPanel({
|
|
2048
|
-
el: "#wx_qrcode",
|
|
2049
|
-
params: {
|
|
2050
|
-
login_type: "CorpApp",
|
|
2051
|
-
appid: n.appId,
|
|
2052
|
-
agentid: n.agentId,
|
|
2053
|
-
redirect_uri: n.redirectURL,
|
|
2054
|
-
state: "loginState",
|
|
2055
|
-
redirect_type: "callback",
|
|
2056
|
-
panel_size: "middle",
|
|
2057
|
-
lang: e == "zh_CN" ? "zh" : "en"
|
|
2058
|
-
},
|
|
2059
|
-
onCheckWeComLogin({ isWeComLogin: a }) {
|
|
2060
|
-
console.log(a);
|
|
2061
|
-
},
|
|
2062
|
-
onLoginSuccess({ code: a }) {
|
|
2063
|
-
n.code = a, n.$refs.updPwd.open(n.userInfo.account, a, 2), console.log(a);
|
|
2064
|
-
},
|
|
2065
|
-
onLoginFail(a) {
|
|
2066
|
-
}
|
|
2067
|
-
});
|
|
2068
|
-
}, 500);
|
|
2069
|
-
},
|
|
2070
|
-
bindCode(o) {
|
|
2071
|
-
o == 1 || o == 0 ? this.getData() : o == -1 ? this.getConfigsBy() : o == 2 && this.getConfigsBy();
|
|
2072
|
-
}
|
|
2073
|
-
}
|
|
2074
|
-
};
|
|
2075
|
-
var Xe = function() {
|
|
2076
|
-
var e = this, n = e._self._c;
|
|
2077
|
-
return n("div", { staticStyle: { "padding-top": "12px" } }, [n("el-row", { attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 24 } }, [n("div", { staticClass: "grid-content bg-purple" }, [e._v(" " + e._s(e.$i18nt("gd.account.passWord", "\u8D26\u6237\u5BC6\u7801")) + " ")])])], 1), n("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 8 } }, [n("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")) + " ")])]), n("el-col", { attrs: { span: 16 } }, [n("div", { staticClass: "grid-content paw grid-flex" }, [n("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), n("el-divider"), n("el-row", { attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 24 } }, [n("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), n("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 8 } }, [n("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 == "" ? n("el-col", { attrs: { span: 16 } }, [n("div", { staticClass: "grid-content paw grid-flex" }, [n("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), n("upd-pwd", { ref: "updPwd", attrs: { isShow: e.isShow }, on: { bindCode: e.bindCode } }), n("weChatBind", { ref: "weChatBind", on: { bindCode: e.bindCode } })], 1);
|
|
2078
|
-
}, Fe = [], Pe = /* @__PURE__ */ H(
|
|
2079
|
-
Me,
|
|
2074
|
+
}, Fe = [], Ye = /* @__PURE__ */ H(
|
|
2075
|
+
Pe,
|
|
2080
2076
|
Xe,
|
|
2081
2077
|
Fe,
|
|
2082
2078
|
!1,
|
|
2083
2079
|
null,
|
|
2084
|
-
"
|
|
2080
|
+
"55ede8aa",
|
|
2085
2081
|
null,
|
|
2086
2082
|
null
|
|
2087
2083
|
);
|
|
2088
|
-
const
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
};
|
|
2084
|
+
const Re = Ye.exports, Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2085
|
+
__proto__: null,
|
|
2086
|
+
default: Re
|
|
2087
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
2092
2088
|
export {
|
|
2093
|
-
|
|
2094
|
-
|
|
2089
|
+
P as G,
|
|
2090
|
+
X as a,
|
|
2095
2091
|
Y as b,
|
|
2096
|
-
|
|
2092
|
+
F as c
|
|
2097
2093
|
};
|